@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.1

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 (114) 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/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  14. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/ui/aichatballoonview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  44. package/src/aichat/utils/eventnames.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  49. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  50. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  51. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  52. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  53. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  54. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  55. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  56. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  57. package/src/aicore/aiconnector.js +1 -1
  58. package/src/aicore/aiediting.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  74. package/src/aicore/utils/documentrange.js +1 -1
  75. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  76. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  77. package/src/aicore/utils/htmlparser.js +1 -1
  78. package/src/aicore/utils/htmlstreamer.js +1 -1
  79. package/src/aicore/utils/scrollmanager.js +1 -1
  80. package/src/aieditorintegration/aieditorintegration.js +1 -1
  81. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  82. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  83. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  84. package/src/aiquickactions/aiquickactionsui.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  87. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  88. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  89. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  90. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  91. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  92. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  93. package/src/aireviewcore/aireviewcoreui.js +1 -1
  94. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  95. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  96. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  104. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  105. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  106. package/src/aireviewmode/aireviewmode.js +1 -1
  107. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  110. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  111. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitranslate/aitranslate.js +1 -1
  114. package/src/aitranslate/model/aitranslatecheck.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x102c9d=_0x77c5;(function(_0x5b62b1,_0x22aa55){const _0x5c419a=_0x77c5,_0x5f02a2=_0x5b62b1();while(!![]){try{const _0x287fed=-parseInt(_0x5c419a(0x23e))/0x1*(-parseInt(_0x5c419a(0x250))/0x2)+parseInt(_0x5c419a(0x2c1))/0x3+parseInt(_0x5c419a(0x2be))/0x4+-parseInt(_0x5c419a(0x1fe))/0x5+-parseInt(_0x5c419a(0x212))/0x6+parseInt(_0x5c419a(0x373))/0x7*(-parseInt(_0x5c419a(0x20d))/0x8)+-parseInt(_0x5c419a(0x348))/0x9*(-parseInt(_0x5c419a(0x210))/0xa);if(_0x287fed===_0x22aa55)break;else _0x5f02a2['push'](_0x5f02a2['shift']());}catch(_0x47b5fa){_0x5f02a2['push'](_0x5f02a2['shift']());}}}(_0x1ed0,0x34737));import{ContextPlugin as _0x31d929,Editor as _0xb49bf1}from'ckeditor5/src/core.js';import{BodyCollection as _0xaa0105}from'ckeditor5/src/ui.js';import{CKEditorError as _0x302247,logError as _0x5bf06e,scrollViewportToShowTarget as _0x5dad21,uid as _0x31ba12}from'ckeditor5/src/utils.js';import{AIConnector as _0x14f9fd}from'../aicore/aiconnector.js';import{AITabs as _0x367c5c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x460b3a}from'./model/aichatconversation.js';import{getTranslation as _0x394fc2}from'../aicore/utils/common-translations.js';function _0x1ed0(){const _0x4a7d63=['collaboration.channelId','removed','_startConversationSafely','AI_CHAT_GENERIC_ERROR','webSearchFinished','from','data','delegate','dialogClosed','getOperations','setFeedItemAIReplySuggestionPartActive','requires','createPositionFromPath','parse','ai-chat-context-unsupported-file-type','insertSuggestion','lastInteraction','1bpjbyd','listenTo','getChildren','_aiEditing','commands','index','_currentPreviewedChangeGroup','resourceId','toggleSuggestionDisplayMode','resource','clearLoadingMessage','rejected','TrackChangesEditing','getInteractionAndReplyById','interactionDestroyed','load','removeFeedInteraction','sendMessage','3914RZLlgL','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','_createFromRanges','plugins','_handleUIUserMessage','howMany','revert','version','message','disableControls','webSearchStarted','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','locale','undo','isOfficialPlugin','addDocumentToContext','editors','view','getRoot','contextItemLoadingEnded','conversationInitialized','like','loadConversation','populateSourceResourceBalloon','getDocumentData','mouseOverSuggestion','setIsMaximized','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','detachFromDom','AIChatBalloon','resources','interactionFinished','log','maxOffset','showDiff','updateFeedItemAIReplyContent','setConversationTitle','uiId','lastCreated','startInteraction','_applyOperationsAsSuggestions','addUrlToContext','replyContentUpdated','replyCreated','forEach','ai-conversation-','_stopLastInteraction','addResourceToContext','applySuggestion','error','set','afterInit','sendUserMessage','enableControls','toggleReasoning','_insertSuggestion','_openBalloonFor','rootName','previous','addSelectionToChatContext','_flushLastInteractionUI','AIEditing','messageId','isDisabled','range','ai-chat-context-file-too-many-pages','_getUserPresentableContentPartDocumentRange','addFeedItemError','getChild','_batchToChanges','TrackChanges','getAttribute','ai-chat-conversation-start-failed','destroy','partIndex','push','_showConversationHistory','_aiChatUi','isCurrentDocumentInContext','nextSibling','showNext','ai-chat-controller-mouse-over','end','state','AI_CHAT_RESOURCE_LOAD_FAILED','includes','loadSourceResources','_toggleReasoning','setLoadingMessage','main','model','ai-request-aborted','resizedTabs','selection','_rejectSuggestion','_aiChatModels','AI_BALLOON_HEADER_TITLE','cloneNode','start','getGroupId','contextItem','data-id','createReply','history','AIConnector','contextItemRemoved','upsertAIChatRating','getRanges','baseVersion','ai.models.defaultModelId','397024migPxJ','capabilitiesUpdated','getChildAtOffset','98250hRFVsN','abortPromptStream','attachToDom','replies','ai-no-track-changes','addFilesToContext','AI_CHAT_CONTEXT_FILE_TOO_LARGE','toViewRange','_getLastCreatedConversationId','reasoningStarted','clearPendingContextUI','addSelectionToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai-chat-context-file-too-large','getConversation','getConversations','toggleWebSearch','Liked\x20response','mapper','resetMessageInput','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_registerToolDataCallback','startConversation','selectModel','map','stopInteraction','updateFeedItemAIReplySuggestionContent','addFeedItemUserMessage','open','currentReply','addFeedItemAIReply','showChangeInText','getPath','_bodyCollection','hasChanges','fetchConversation','batch','slice','ai-chat-file-upload-failed','isStarted','filter','static','AI_CHAT_ABORTED_MESSAGE','alignToTop','Undo','anchorId','_getAIChatInteractionAPI','updateContent','removeSelectionFromContext','_getPresentableSiblingContentPartIndex','accepted','_logError','setState','text','finishInteraction','AI_CHAT_INVALID_REQUEST','updateConversationTitle','getAll','activeConversation','source','removeContextItem','_updateReplyContent','applyOperation','get','showPrevious','ai.models','contextItemAdded','ready','isCurrentDocumentInConversation','$graveyard','next','addFileToContext','_scrollToSuggestionRange','ai-chat-source-resources-load-failed','pluginName','delete','getSelectionText','sourceResourcesLoaded','domConverter','type','remove','setConversationContext','addContextOptionsChanged','new','setContextItemLoading','addFeedItemStaticMessage','find','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','viewRangeToDom','indexes','documentContextContent','add','interactionId','change','marker','handleUserInteraction','getDiff','_removeFromContext','mouseLeaveSuggestion','clearConversationContextUI','findIndex','activateTab','replyId','setAddContextOptions','ai-chat-resource-load-failed','sourcePosition','interactionCreated','ai-chat-url-upload-failed','ai-chat-context-form-data-size-limits-exceeded','indexOf','ai-chat-controller-no-active-conversation','editing','resizeTabs','toolDataReceived','uid','modelSelected','sourceId','AIChatUI','_integrateEditor','isPremiumPlugin','DocumentCompare','modification','addCurrentDocumentToContext','AI_CHAT_UNTITLED_CONVERSATION','document','getContentParts','bind','updateCapabilities','setSelectedModel','AI_CHAT_CONTEXT_INVALID_DATA','addFeedInteractionHeader','removeFromContext','pending','interactionStarted','6567741RXLdPi','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-invalid-request','AITabs','isLoading','root','_aiChatBalloonShowDiff','redo','aiChatBalloon','startsWith','path','addCurrentDocumentToChatContext','_updateRatings','resize','Disliked\x20response','toggleLoadingSkeleton','getDocumentContext','prepareLoadingMessage','createConversation','current-document','getTransformedByOperation','scrollFeedToSuggestion','removeSelectionFromChatContext','dislike','split','options','_applySuggestion','closeSourceResourceBalloon','isDocumentOperation','resetConversationTitle','focusPromptInput','getReply','rejectSuggestion','getFirstRange','createPositionAt','sessionId','_handleStartConversation','config','executeCustomItemCallback','toString','length','_aiConnector','updateCurrentDocumentInContext','39179LpckDf','_getDocumentRangeForReplyChanges','close','Showing\x20conversation\x20history...','getInteraction','node','hideFakeVisualSelection','chat','addFeedItemAISuggestion','setFeedItemRenderingStrategy','reasoningFinished','fetchConversations','ai-chat-conversation-init-failed','_setIsMaximized','children','_toggleWebSearch','addContextItem','changes','setIsUploadInProgress','addOperation','setChangeGroupState','callback','isUploadInProgress','764675TFNGET','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateFeedItemAIReplySources','stop','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai-chat-conversation-not-found','unshift','setModel','createdAt','has','ai-chat-context-invalid-data','streaming','updateResourceState','startAutoScroll','handleRemovedConversation','368lQtMse','ai.chat.context','content','10arFwSv','selectedModel','1430856vGaPLx','areActionsDisabled','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isInContext','ai-chat-missing-channel-id','resourceStateChanged','resetWebSearchState','sources','AIChatController','showFakeVisualSelection','_aiChatBalloon','createRange','replyChangeGroupStateUpdated','contextItems','query','ai-chat-context-unsupported-type','init','uploadProgressChanged','isModelAvailable','addFeedItemCustomElement','outdated','ai.chat.initialConversation','resetReasoningState','context','done','changeGroups','contextSent'];_0x1ed0=function(){return _0x4a7d63;};return _0x1ed0();}import{AIModels as _0x29f6a7}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x16921b}from'../aicore/utils/geteditorfromcontext.js';function _0x77c5(_0x17ebc6,_0x29d426){const _0x1ed03f=_0x1ed0();return _0x77c5=function(_0x77c569,_0x156738){_0x77c569=_0x77c569-0x1e9;let _0x2b55e8=_0x1ed03f[_0x77c569];return _0x2b55e8;},_0x77c5(_0x17ebc6,_0x29d426);}import{DocumentCompare as _0x15cd3d,DATA_ID_MODEL_ATTRIBUTE as _0x533f4e}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x289b77,getOperationsFromReply as _0x4f62e2}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x527f56,getMinimalSelection as _0x43ab2c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x55b05b,_DetachOperation as _0x151737}from'ckeditor5/src/engine.js';import{findOne as _0x1ac4c7,getAttribute as _0x529fa7,serialize as _0x2bf49a,Document as _0x4f64f6,findByAttribute as _0x564a3e}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x31d929{[_0x102c9d(0x241)];[_0x102c9d(0x371)];[_0x102c9d(0x29d)];[_0x102c9d(0x2af)];[_0x102c9d(0x21c)];[_0x102c9d(0x295)]=new Map();[_0x102c9d(0x244)]=null;[_0x102c9d(0x2e2)];static get[_0x102c9d(0x238)](){return[_0x14f9fd,_0x15cd3d];}static get[_0x102c9d(0x30b)](){const _0x2670c0=_0x102c9d;return _0x2670c0(0x21a);}static get[_0x102c9d(0x25e)](){return!0x0;}static get[_0x102c9d(0x339)](){return!0x0;}[_0x102c9d(0x222)](){const _0x266443=_0x102c9d;this[_0x266443(0x2e2)]=new _0xaa0105(this[_0x266443(0x229)][_0x266443(0x25c)]),this[_0x266443(0x2e2)][_0x266443(0x2c3)](),this[_0x266443(0x371)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x2b8)),this[_0x266443(0x29d)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x337)),this[_0x266443(0x241)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x28d)),this[_0x266443(0x2af)]=new _0x29f6a7({'connector':this[_0x266443(0x371)],'config':this[_0x266443(0x229)][_0x266443(0x36d)][_0x266443(0x300)](_0x266443(0x302)),'locale':this[_0x266443(0x229)][_0x266443(0x25c)]});const _0xa481b7=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x34b));this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d7),()=>{const _0x3900f0=_0x266443;this[_0x3900f0(0x22f)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x284),(_0x1d8799,_0x193916)=>{const _0x36d60e=_0x266443;this[_0x36d60e(0x254)]({'userMessage':_0x193916});}),this[_0x266443(0x23f)](_0xa481b7,_0x266443(0x2ac),(_0x3be252,_0x70c09e)=>{const _0x2310ac=_0x266443;this[_0x2310ac(0x1f4)](_0x70c09e);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x332),()=>{const _0x4f73f6=_0x266443;_0xa481b7[_0x4f73f6(0x355)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2c2),async()=>{const _0x44fbcb=_0x266443;await this[_0x44fbcb(0x27e)](),await this[_0x44fbcb(0x28c)](),this[_0x44fbcb(0x35e)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x25f),()=>{const _0x4b6757=_0x266443;this[_0x4b6757(0x353)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x308),(_0x39b65b,_0x577531)=>{const _0x671f53=_0x266443;this[_0x671f53(0x2fb)]?.[_0x671f53(0x2c6)](Array[_0x671f53(0x232)](_0x577531));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x279),(_0x123109,_0x109f46)=>{const _0x5ef306=_0x266443;this[_0x5ef306(0x2fb)]?.[_0x5ef306(0x279)](_0x109f46);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x36e),(_0x505634,_0x17e818)=>{const _0x3921b6=_0x266443;_0x17e818[_0x3921b6(0x1fc)](this[_0x3921b6(0x229)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x27f),(_0x1f9401,_0x17b779)=>{const _0x5be2c9=_0x266443;this[_0x5be2c9(0x2fb)]?.[_0x5be2c9(0x27f)](_0x17b779[_0x5be2c9(0x2fc)],_0x17b779[_0x5be2c9(0x247)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2fd),(_0x1ba95a,_0x310859)=>{const _0x5386fe=_0x266443;this[_0x5386fe(0x323)](_0x310859);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2a6),(_0x4e7282,_0x115dcd)=>{const _0x590df9=_0x266443;this[_0x590df9(0x2fb)]?.[_0x590df9(0x2a6)](_0x115dcd[_0x590df9(0x336)],_0x115dcd[_0x590df9(0x220)],_0x115dcd[_0x590df9(0x334)]);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d1),()=>{const _0x1c4c0b=_0x266443;this[_0x1c4c0b(0x1f6)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x286),()=>{const _0x530e11=_0x266443;this[_0x530e11(0x2a7)]();}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2d8),(_0x181d11,_0x2b811c)=>{const _0x547373=_0x266443;this[_0x547373(0x2fb)]?.[_0x547373(0x205)](_0x2b811c);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x265),(_0xc1e828,{replyId:_0x2af49f})=>{const _0x57c422=_0x266443;console[_0x57c422(0x270)](_0x57c422(0x2d2),_0x2af49f);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x35f),(_0x5ab0fd,{replyId:_0x54040b})=>{const _0x41163c=_0x266443;console[_0x41163c(0x270)](_0x41163c(0x356),_0x54040b);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x23c),(_0x4188d4,_0x36376c)=>{const _0xeaaf3c=_0x266443;this[_0xeaaf3c(0x287)](_0x36376c);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x2e0),(_0x1c89eb,{replyId:_0x3fd2cc,partIndex:_0xddbe9b})=>{const _0x10e16d=_0x266443;this[_0x10e16d(0x34e)]=this[_0x10e16d(0x29d)][_0x10e16d(0x272)],this[_0x10e16d(0x288)](_0x3fd2cc,_0xddbe9b);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x269),(_0xd27cbe,{replyId:_0x34597f,partIndex:_0x342b6b})=>{const _0x139d05=_0x266443,_0x12aa5d=this[_0x139d05(0x374)](_0x34597f,_0x342b6b);_0x12aa5d&&_0x139d05(0x306)!=_0x12aa5d[_0x139d05(0x290)][_0x139d05(0x34d)][_0x139d05(0x289)]&&this[_0x139d05(0x241)][_0x139d05(0x21b)]([_0x12aa5d[_0x139d05(0x290)]],_0x139d05(0x2a1));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x324),()=>{const _0x4b407e=_0x266443;this[_0x4b407e(0x241)][_0x4b407e(0x1ed)](_0x4b407e(0x2a1));}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x280),(_0x5c7007,_0x3854db)=>{const _0x59b47b=_0x266443;this[_0x59b47b(0x241)][_0x59b47b(0x1ed)](_0x59b47b(0x2a1)),this[_0x59b47b(0x362)](_0x3854db);}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x246),async(_0x257ca4,{replyId:_0x89546,showDiff:_0x5b5f99})=>{const _0x55234a=_0x266443,{reply:_0x2ac6b3}=this[_0x55234a(0x24b)](_0x89546),_0x20ee1f=_0x2ac6b3[_0x55234a(0x33f)]({'showDiff':_0x5b5f99});await this[_0x55234a(0x29d)][_0x55234a(0x2db)]({'id':_0x2ac6b3['id'],'parts':_0x20ee1f,'renderingStrategy':_0x55234a(0x2ea)});}),this[_0x266443(0x23f)](this[_0x266443(0x29d)],_0x266443(0x368),(_0x17d2bb,{replyId:_0x1acc64,partIndex:_0xd67d05})=>{const _0x205c4a=_0x266443;this[_0x205c4a(0x2ae)]({'replyId':_0x1acc64,'partIndex':_0xd67d05}),this[_0x205c4a(0x241)][_0x205c4a(0x1ed)](_0x205c4a(0x2a1));}),this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x207)](_0x266443(0x26d))&&(this[_0x266443(0x21c)]=this[_0x266443(0x229)][_0x266443(0x253)][_0x266443(0x300)](_0x266443(0x26d)),this[_0x266443(0x282)](_0x266443(0x34e),!0x1),this[_0x266443(0x21c)][_0x266443(0x340)](_0x266443(0x272))['to'](this,_0x266443(0x34e)),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x246),()=>{const _0x443925=_0x266443,{replyId:_0x5019b3,partIndex:_0x2f768a}=this[_0x443925(0x244)];this[_0x443925(0x34e)]=!this[_0x443925(0x34e)];const {reply:_0xfc40f1}=this[_0x443925(0x24b)](_0x5019b3),_0x1b0482=_0xfc40f1[_0x443925(0x33f)]({'showDiff':this[_0x443925(0x34e)],'groupIndex':_0x2f768a});this[_0x443925(0x21c)][_0x443925(0x2f0)]({'part':_0x1b0482[0x0],'renderingStrategy':_0x443925(0x2ea),'keepErrors':!0x0});}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x280),()=>{const _0x5b35a7=_0x266443,{replyId:_0x5375bf,partIndex:_0x1f45c3}=this[_0x5b35a7(0x244)];this[_0x5b35a7(0x362)]({'replyId':_0x5375bf,'partIndex':_0x1f45c3}),this[_0x5b35a7(0x21c)][_0x5b35a7(0x2f5)](_0x5b35a7(0x2f3));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x23c),()=>{const _0x12ba62=_0x266443,{replyId:_0x48753e,partIndex:_0x4940ca}=this[_0x12ba62(0x244)];this[_0x12ba62(0x287)]({'replyId':_0x48753e,'partIndex':_0x4940ca}),this[_0x12ba62(0x21c)][_0x12ba62(0x2f5)](_0x12ba62(0x2f3));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x368),()=>{const _0x2148dc=_0x266443,{replyId:_0x37854b,partIndex:_0x1ba292}=this[_0x2148dc(0x244)];this[_0x2148dc(0x2ae)]({'replyId':_0x37854b,'partIndex':_0x1ba292}),this[_0x2148dc(0x21c)][_0x2148dc(0x2f5)](_0x2148dc(0x249));}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x2a0),()=>{const _0x40f96c=_0x266443,{replyId:_0x5b9d3d,partIndex:_0x2a157e}=this[_0x40f96c(0x244)],_0x4d0b50=this[_0x40f96c(0x2f2)](_0x5b9d3d,_0x2a157e,_0x40f96c(0x307));null!==_0x4d0b50&&this[_0x40f96c(0x288)](_0x5b9d3d,_0x4d0b50);}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x301),()=>{const _0xa8f27c=_0x266443,{replyId:_0x2d8633,partIndex:_0x299c45}=this[_0xa8f27c(0x244)],_0x457d42=this[_0xa8f27c(0x2f2)](_0x2d8633,_0x299c45,_0xa8f27c(0x28a));null!==_0x457d42&&this[_0xa8f27c(0x288)](_0x2d8633,_0x457d42);}),this[_0x266443(0x23f)](this[_0x266443(0x21c)],_0x266443(0x235),(_0x3adf3c,{id:_0x4dc695})=>{const _0x52089d=_0x266443;if(_0x52089d(0x350)!==_0x4dc695)return;const {replyId:_0x2d824c,partIndex:_0x58c491}=this[_0x52089d(0x244)];this[_0x52089d(0x244)]=null,this[_0x52089d(0x29d)][_0x52089d(0x237)]({'id':_0x2d824c,'index':_0x58c491,'isActive':!0x1});}));}async[_0x102c9d(0x283)](){const _0x5eddca=_0x102c9d;this[_0x5eddca(0x229)]instanceof _0xb49bf1?this[_0x5eddca(0x338)](this[_0x5eddca(0x229)]):this[_0x5eddca(0x23f)](this[_0x5eddca(0x229)][_0x5eddca(0x260)],_0x5eddca(0x31d),(_0x21c47d,_0x602ba3)=>{const _0x2048ba=_0x5eddca;_0x602ba3['on'](_0x2048ba(0x304),()=>{const _0x23cf9d=_0x2048ba;this[_0x23cf9d(0x338)](_0x602ba3);});});const _0xb218a=this[_0x5eddca(0x229)][_0x5eddca(0x36d)][_0x5eddca(0x300)](_0x5eddca(0x227));let _0x2832b2=_0xb218a;if(_0x5eddca(0x276)!=_0xb218a||(_0x2832b2=await this[_0x5eddca(0x2c9)](),_0x2832b2))return _0x5eddca(0x314)==_0x2832b2?this[_0x5eddca(0x22f)]():this[_0x5eddca(0x266)](_0x2832b2);}async[_0x102c9d(0x299)](){const _0x1c8e48=_0x102c9d;return await this[_0x1c8e48(0x27e)](),this[_0x1c8e48(0x2e2)][_0x1c8e48(0x26c)](),super[_0x1c8e48(0x299)]();}[_0x102c9d(0x287)](_0x12a340){const _0x2212a4=_0x102c9d,_0x5e924b=_0x16921b(this[_0x2212a4(0x229)]);if(!_0x5e924b[_0x2212a4(0x253)][_0x2212a4(0x207)](_0x2212a4(0x296)))throw new _0x302247(_0x2212a4(0x2c5),null);const _0x37c998=this[_0x2212a4(0x229)][_0x2212a4(0x253)][_0x2212a4(0x300)](_0x2212a4(0x33a)),{reply:_0x207a76,interaction:_0x3799e8}=this[_0x2212a4(0x24b)](_0x12a340[_0x2212a4(0x328)]),_0x1f1eda=this[_0x2212a4(0x374)](_0x12a340[_0x2212a4(0x328)],_0x12a340[_0x2212a4(0x29a)]),_0x1089ff=void 0x0!==_0x12a340[_0x2212a4(0x29a)]?[_0x207a76[_0x2212a4(0x22b)][_0x12a340[_0x2212a4(0x29a)]]]:_0x207a76[_0x2212a4(0x22b)][_0x2212a4(0x2e9)](_0x541eca=>_0x2212a4(0x346)==_0x541eca[_0x2212a4(0x2a3)]),_0x38557d=_0x1089ff[_0x2212a4(0x2d9)](_0x1f3e15=>_0x207a76[_0x2212a4(0x22b)][_0x2212a4(0x32f)](_0x1f3e15));if(!_0x1f1eda||_0x2212a4(0x306)==_0x1f1eda[_0x2212a4(0x290)][_0x2212a4(0x34d)][_0x2212a4(0x289)])return void _0x38557d[_0x2212a4(0x27c)](_0x294b24=>_0x207a76[_0x2212a4(0x1fb)](_0x294b24,_0x2212a4(0x226)));_0x38557d[_0x2212a4(0x27c)](_0x2b5fde=>_0x207a76[_0x2212a4(0x1fb)](_0x2b5fde,_0x2212a4(0x2f3)));const _0x3d76bf=_0x4f62e2({'editor':_0x5e924b,'reply':_0x207a76,'interaction':_0x3799e8,'groups':_0x1089ff,'transform':!0x0,'documentCompare':_0x37c998,'documentCompareOptions':{'anchor':_0x2212a4(0x2a9),'markDeletions':!0x0}});let _0x3d4356;_0x1f1eda&&this[_0x2212a4(0x309)](_0x1f1eda[_0x2212a4(0x290)]),_0x5e924b[_0x2212a4(0x2aa)][_0x2212a4(0x31f)](_0x9784bb=>{const _0xf20a59=_0x2212a4;_0x3d4356=_0x9784bb[_0xf20a59(0x2e5)],_0x5e924b[_0xf20a59(0x253)][_0xf20a59(0x300)](_0xf20a59(0x24a))[_0xf20a59(0x278)](_0x3d76bf),this[_0xf20a59(0x241)][_0xf20a59(0x1ed)](_0xf20a59(0x2a1));}),this[_0x2212a4(0x295)][_0x2212a4(0x282)](_0x3d4356,{'interactionId':_0x3799e8['id'],'replyId':_0x207a76['id'],'indexes':_0x38557d[_0x2212a4(0x2e6)]()}),this[_0x2212a4(0x354)](_0x207a76);}[_0x102c9d(0x362)](_0x45abd6){const _0x32fe27=_0x102c9d,_0x123d57=_0x16921b(this[_0x32fe27(0x229)]),_0x157245=this[_0x32fe27(0x229)][_0x32fe27(0x253)][_0x32fe27(0x300)](_0x15cd3d),{reply:_0x363053,interaction:_0x30c16d}=this[_0x32fe27(0x24b)](_0x45abd6[_0x32fe27(0x328)]),_0x118fd8=this[_0x32fe27(0x374)](_0x45abd6[_0x32fe27(0x328)],_0x45abd6[_0x32fe27(0x29a)]),_0x2c4e55=void 0x0!==_0x45abd6[_0x32fe27(0x29a)]?[_0x363053[_0x32fe27(0x22b)][_0x45abd6[_0x32fe27(0x29a)]]]:_0x363053[_0x32fe27(0x22b)][_0x32fe27(0x2e9)](_0xaa2e94=>_0x32fe27(0x346)==_0xaa2e94[_0x32fe27(0x2a3)]),_0x1128c9=_0x2c4e55[_0x32fe27(0x2d9)](_0x4b7db0=>_0x363053[_0x32fe27(0x22b)][_0x32fe27(0x32f)](_0x4b7db0));if(!_0x118fd8||_0x32fe27(0x306)==_0x118fd8[_0x32fe27(0x290)][_0x32fe27(0x34d)][_0x32fe27(0x289)])return void _0x1128c9[_0x32fe27(0x27c)](_0x398511=>_0x363053[_0x32fe27(0x1fb)](_0x398511,_0x32fe27(0x226)));_0x1128c9[_0x32fe27(0x27c)](_0x54d16c=>_0x363053[_0x32fe27(0x1fb)](_0x54d16c,_0x32fe27(0x2f3)));const _0x54fb69=_0x4f62e2({'editor':_0x123d57,'reply':_0x363053,'interaction':_0x30c16d,'groups':_0x2c4e55,'transform':!0x0,'documentCompare':_0x157245,'documentCompareOptions':{'anchor':_0x32fe27(0x2a9),'markDeletions':!0x1}});let _0x3670fb;_0x118fd8&&this[_0x32fe27(0x309)](_0x118fd8[_0x32fe27(0x290)]),_0x123d57[_0x32fe27(0x2aa)][_0x32fe27(0x31f)](_0x1382d7=>{const _0x21f7bb=_0x32fe27;_0x3670fb=_0x1382d7[_0x21f7bb(0x2e5)];for(const _0x238fc8 of _0x54fb69)_0x238fc8[_0x21f7bb(0x2bc)]=_0x123d57[_0x21f7bb(0x2aa)][_0x21f7bb(0x33e)][_0x21f7bb(0x257)],_0x289b77(_0x123d57,_0x238fc8),_0x1382d7[_0x21f7bb(0x2e5)][_0x21f7bb(0x1fa)](_0x238fc8),_0x123d57[_0x21f7bb(0x2aa)][_0x21f7bb(0x2ff)](_0x238fc8);}),this[_0x32fe27(0x295)][_0x32fe27(0x282)](_0x3670fb,{'interactionId':_0x30c16d['id'],'replyId':_0x363053['id'],'indexes':_0x1128c9[_0x32fe27(0x2e6)]()}),this[_0x32fe27(0x354)](_0x363053);}[_0x102c9d(0x2ae)](_0x578d5b){const _0x598b4c=_0x102c9d,{reply:_0x1fc87d}=this[_0x598b4c(0x24b)](_0x578d5b[_0x598b4c(0x328)]);_0x1fc87d[_0x598b4c(0x1fb)](_0x578d5b[_0x598b4c(0x29a)],_0x598b4c(0x249));}[_0x102c9d(0x288)](_0x32f50c,_0x3db501){const _0x3befbf=_0x102c9d;if(!this[_0x3befbf(0x21c)])return;const {reply:_0x2f1c07}=this[_0x3befbf(0x24b)](_0x32f50c),_0xce11cf=_0x2f1c07[_0x3befbf(0x33f)]({'showDiff':this[_0x3befbf(0x34e)]});let _0x3e3a4b,_0x573451;if(void 0x0!==_0x3db501?(_0x573451=_0xce11cf[_0x3befbf(0x317)](_0x32406c=>_0x32406c[_0x3befbf(0x243)]==_0x3db501),_0x3e3a4b=_0x573451?.[_0x3befbf(0x243)]):(_0x573451=_0xce11cf[0x0],_0x3e3a4b=_0x573451[_0x3befbf(0x243)]),this[_0x3befbf(0x244)]?.[_0x3befbf(0x328)]==_0x32f50c&&this[_0x3befbf(0x244)]?.[_0x3befbf(0x29a)]==_0x3e3a4b)return;const _0x5201c3=this[_0x3befbf(0x292)](_0x32f50c,_0x2f1c07,_0x573451);if(!_0x5201c3)return void this[_0x3befbf(0x21c)][_0x3befbf(0x1e9)]();this[_0x3befbf(0x244)]={'replyId':_0x32f50c,'partIndex':_0x3e3a4b},this[_0x3befbf(0x309)](_0x5201c3,!0x0);const _0x2b381d=this[_0x3befbf(0x2f2)](_0x32f50c,_0x3e3a4b,_0x3befbf(0x307));this[_0x3befbf(0x21c)][_0x3befbf(0x2f0)]({'part':_0x573451,'renderingStrategy':_0x3befbf(0x2ea)}),this[_0x3befbf(0x21c)][_0x3befbf(0x2dd)]({'index':_0x3e3a4b,'title':_0x394fc2(this[_0x3befbf(0x229)][_0x3befbf(0x25c)],_0x3befbf(0x2b0),(_0x3e3a4b+0x1)[_0x3befbf(0x36f)]()),'showRotator':null!==_0x2b381d,'ranges':[_0x5201c3],'areActionsDisabled':_0x2f1c07[_0x3befbf(0x213)]}),this[_0x3befbf(0x21c)][_0x3befbf(0x2f5)](_0x3befbf(0x346)),this[_0x3befbf(0x29d)][_0x3befbf(0x35d)](_0x32f50c,_0x3e3a4b),this[_0x3befbf(0x29d)][_0x3befbf(0x237)]({'id':_0x32f50c,'index':_0x3e3a4b,'isActive':!0x0});}[_0x102c9d(0x2f2)](_0x2c213d,_0x17df30,_0x2e9fa5){const _0x4dc3f7=_0x102c9d,{reply:_0x44af38}=this[_0x4dc3f7(0x24b)](_0x2c213d),_0x33f9f7=_0x44af38[_0x4dc3f7(0x33f)]({'showDiff':this[_0x4dc3f7(0x34e)]});if(0x1==_0x33f9f7[_0x4dc3f7(0x370)])return null;const _0x49d9d2=_0x33f9f7[_0x4dc3f7(0x326)](_0x268c51=>_0x268c51[_0x4dc3f7(0x243)]==_0x17df30),_0x7b4800=_0x4dc3f7(0x307)==_0x2e9fa5?0x1:-0x1;let _0xedfae3=_0x33f9f7['at']((_0x49d9d2+_0x7b4800)%_0x33f9f7[_0x4dc3f7(0x370)])[_0x4dc3f7(0x243)],_0x5eebe5=_0x33f9f7[_0xedfae3];for(;!this[_0x4dc3f7(0x292)](_0x2c213d,_0x44af38,_0x5eebe5);){if(_0xedfae3=_0x33f9f7['at']((_0xedfae3+_0x7b4800)%_0x33f9f7[_0x4dc3f7(0x370)])[_0x4dc3f7(0x243)],_0xedfae3===_0x49d9d2)return null;_0x5eebe5=_0x33f9f7[_0xedfae3];}return _0xedfae3;}[_0x102c9d(0x292)](_0x5c084e,_0x544811,_0x32c8d6){const _0x2aa94c=_0x102c9d,_0x5a420c=_0x544811[_0x2aa94c(0x22b)];if(!_0x32c8d6[_0x2aa94c(0x2e3)])return null;const _0x2165a5=_0x5a420c[_0x2aa94c(0x317)](_0x1583f6=>_0x1583f6[_0x2aa94c(0x243)]==_0x32c8d6[_0x2aa94c(0x243)]);if(_0x2aa94c(0x346)!==_0x2165a5?.[_0x2aa94c(0x2a3)])return null;const _0x2fb53a=this[_0x2aa94c(0x374)](_0x5c084e,_0x32c8d6[_0x2aa94c(0x243)]);if(!_0x2fb53a)return null;const {range:_0x58f85f,currentIndex:_0x1a17fa}=_0x2fb53a;return _0x2aa94c(0x306)==_0x58f85f[_0x2aa94c(0x34d)][_0x2aa94c(0x289)]?(_0x544811[_0x2aa94c(0x1fb)](_0x1a17fa,_0x2aa94c(0x226)),null):_0x2fb53a[_0x2aa94c(0x290)];}[_0x102c9d(0x374)](_0x210b93,_0x4c3f75){const _0x34c68f=_0x102c9d,_0x10d4c6=_0x16921b(this[_0x34c68f(0x229)]),{reply:_0x441411,interaction:_0x8802be}=this[_0x34c68f(0x24b)](_0x210b93),_0x3f4c02=_0x441411[_0x34c68f(0x22b)][_0x34c68f(0x2e9)](_0x3f4d36=>_0x34c68f(0x346)==_0x3f4d36[_0x34c68f(0x2a3)]),_0x5db061=_0x3f4c02[_0x34c68f(0x2d9)](_0x22b1d7=>_0x441411[_0x34c68f(0x22b)][_0x34c68f(0x32f)](_0x22b1d7));void 0x0===_0x4c3f75&&(_0x4c3f75=_0x5db061[0x0]);const _0x516d01=_0x5db061[_0x34c68f(0x32f)](_0x4c3f75);if(-0x1==_0x516d01)return null;const _0x585bd8=_0x3f4c02[_0x516d01],_0x42934e=new _0x4f64f6([]),_0x574831=new _0x4f64f6([]);for(const _0x47ad3b of _0x585bd8[_0x34c68f(0x1f8)])if(_0x34c68f(0x22e)!=_0x47ad3b[_0x34c68f(0x310)]&&_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x47ad3b[_0x34c68f(0x1ec)][_0x34c68f(0x2b1)](!0x0)),_0x34c68f(0x314)!=_0x47ad3b[_0x34c68f(0x310)]){const _0x2d7b60=_0x1ac4c7(_0x2a9007=>_0x529fa7(_0x2a9007,_0x34c68f(0x2b5))==_0x47ad3b['id'],_0x441411[_0x34c68f(0x31c)],!0x0);_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x2d7b60[_0x34c68f(0x2b1)](!0x0));}if(0x0==_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x370)]){if(_0x585bd8[_0x34c68f(0x1f8)][0x0][_0x34c68f(0x2ee)]){const _0x4038d4=_0x564a3e(_0x34c68f(0x2b5),_0x585bd8[_0x34c68f(0x1f8)][0x0][_0x34c68f(0x2ee)],_0x441411[_0x34c68f(0x31c)]);_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x204)](_0x4038d4[_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x204)](_0x4038d4[_0x34c68f(0x2b1)](!0x0)),_0x4038d4[_0x34c68f(0x29f)]&&(_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x4038d4[_0x34c68f(0x29f)][_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x4038d4[_0x34c68f(0x29f)][_0x34c68f(0x2b1)](!0x0)));}else{const _0x179c54=_0x441411[_0x34c68f(0x31c)][_0x34c68f(0x1f5)][0x0];if(!_0x179c54)return null;_0x42934e[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x179c54[_0x34c68f(0x2b1)](!0x0)),_0x574831[_0x34c68f(0x1f5)][_0x34c68f(0x29b)](_0x179c54[_0x34c68f(0x2b1)](!0x0));}}const _0x35ad26=_0x8802be[_0x34c68f(0x358)](),_0x233b67=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x35ad26[_0x34c68f(0x20f)]),_0x3715a2=_0x2bf49a(_0x42934e),_0x9f69c8=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x3715a2),_0x1491b1=_0x10d4c6[_0x34c68f(0x233)][_0x34c68f(0x23a)](_0x3715a2),_0x4b700c=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x36a)](_0x9f69c8,0x0),_0x33e8f2=_0x2bf49a(_0x574831),_0xe5409d={'anchor':_0x4b700c,'markDeletions':!0x1},_0x104a3b=_0x10d4c6[_0x34c68f(0x253)][_0x34c68f(0x300)](_0x15cd3d)[_0x34c68f(0x322)](_0x3715a2,_0x33e8f2,_0xe5409d)[_0x34c68f(0x236)]();if(!_0x104a3b[_0x34c68f(0x370)])return null;_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x31f)](_0x5c11c2=>{const _0x950e51=_0x34c68f;for(const _0x2d4b46 of _0x104a3b)if(_0x950e51(0x311)==_0x2d4b46[_0x950e51(0x310)]){const _0x57f395=_0x2d4b46[_0x950e51(0x32b)],_0x4bba9c=_0x2d4b46[_0x950e51(0x255)],_0x187253=new _0x151737(_0x57f395,_0x4bba9c);_0x5c11c2[_0x950e51(0x2e5)][_0x950e51(0x1fa)](_0x187253),_0x10d4c6[_0x950e51(0x2aa)][_0x950e51(0x2ff)](_0x187253);}else _0x950e51(0x320)!==_0x2d4b46[_0x950e51(0x310)]&&(_0x2d4b46[_0x950e51(0x2bc)]=null,_0x2d4b46[_0x950e51(0x364)]=!0x1,_0x5c11c2[_0x950e51(0x2e5)][_0x950e51(0x1fa)](_0x2d4b46),_0x10d4c6[_0x950e51(0x2aa)][_0x950e51(0x2ff)](_0x2d4b46));});const _0x84bb3=_0x43ab2c(_0x10d4c6,_0x104a3b,_0x9f69c8);_0x527f56(_0x10d4c6[_0x34c68f(0x2aa)],_0x84bb3);const _0x2f2be0=_0x84bb3[_0x34c68f(0x369)]()[_0x34c68f(0x2b2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x87ce3e=_0x84bb3[_0x34c68f(0x369)]()[_0x34c68f(0x2a2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x420df2=[];let _0x1d7023=_0x9f69c8,_0x19c669=_0x1491b1;for(let _0x16baa6=0x0;_0x16baa6<_0x87ce3e[_0x34c68f(0x370)];_0x16baa6++){const _0x40339d=_0x1d7023[_0x34c68f(0x271)]-_0x87ce3e[_0x16baa6];_0x420df2[_0x16baa6]=_0x19c669[_0x34c68f(0x271)]-_0x40339d,_0x1d7023=_0x1d7023[_0x34c68f(0x2c0)](_0x87ce3e[_0x16baa6]),_0x19c669=_0x19c669[_0x34c68f(0x2c0)](_0x420df2[_0x16baa6]);}const _0x31080b=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x21d)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x1491b1,_0x2f2be0),_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x1491b1,_0x420df2)),_0x2fa0a4=_0x1491b1[_0x34c68f(0x294)](0x0)[_0x34c68f(0x297)](_0x533f4e),_0x40b5f4=Array[_0x34c68f(0x232)](_0x233b67[_0x34c68f(0x240)]())[_0x34c68f(0x317)](_0x4a357b=>_0x4a357b[_0x34c68f(0x297)](_0x533f4e)==_0x2fa0a4)[_0x34c68f(0x2e1)](),_0xc8e5a3=_0x31080b[_0x34c68f(0x2b2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)](),_0x39e94=_0x31080b[_0x34c68f(0x2a2)][_0x34c68f(0x352)][_0x34c68f(0x2e6)]();_0xc8e5a3[0x0]=_0x40b5f4[0x0]+_0xc8e5a3[0x0],_0x39e94[0x0]=_0x40b5f4[0x0]+_0x39e94[0x0];let _0x1fee57=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x21d)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x262)](),_0xc8e5a3),_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x239)](_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x262)](),_0x39e94));const _0x1c4fab=_0x10d4c6[_0x34c68f(0x2aa)][_0x34c68f(0x33e)][_0x34c68f(0x2b7)][_0x34c68f(0x236)](_0x35ad26[_0x34c68f(0x257)]);for(const _0x12a85a of _0x1c4fab)_0x1fee57=_0x55b05b[_0x34c68f(0x252)](_0x1fee57[_0x34c68f(0x35c)](_0x12a85a));return{'range':_0x1fee57,'currentIndex':_0x4c3f75};}[_0x102c9d(0x338)](_0x4b0798){const _0x44c9be=_0x102c9d;if(!_0x4b0798[_0x44c9be(0x253)][_0x44c9be(0x207)](_0x44c9be(0x2ed)))return;const _0x25d6bb=_0x4b0798[_0x44c9be(0x242)][_0x44c9be(0x300)](_0x44c9be(0x25d)),_0x46716e=_0x4b0798[_0x44c9be(0x242)][_0x44c9be(0x300)](_0x44c9be(0x34f));this[_0x44c9be(0x23f)](_0x25d6bb,_0x44c9be(0x256),(_0x25771f,_0x12a693,_0x47c597)=>{const _0xa14773=_0x44c9be,_0x2b1c87=this[_0xa14773(0x295)][_0xa14773(0x300)](_0x12a693);if(!_0x2b1c87)return;const _0x3f4007=this[_0xa14773(0x2fb)][_0xa14773(0x1eb)](_0x2b1c87[_0xa14773(0x31e)])[_0xa14773(0x367)](_0x2b1c87[_0xa14773(0x328)]);_0x2b1c87[_0xa14773(0x31b)][_0xa14773(0x27c)](_0x1c7c9b=>_0x3f4007[_0xa14773(0x1fb)](_0x1c7c9b,_0xa14773(0x346))),this[_0xa14773(0x295)][_0xa14773(0x30c)](_0x12a693),this[_0xa14773(0x295)][_0xa14773(0x282)](_0x47c597,_0x2b1c87);}),this[_0x44c9be(0x23f)](_0x46716e,_0x44c9be(0x256),(_0x50dfac,_0x1fdc0c,_0x475ff3)=>{const _0x25cf92=_0x44c9be,_0x15e792=this[_0x25cf92(0x295)][_0x25cf92(0x300)](_0x1fdc0c);if(!_0x15e792)return;const _0x2c62d3=this[_0x25cf92(0x2fb)][_0x25cf92(0x1eb)](_0x15e792[_0x25cf92(0x31e)])[_0x25cf92(0x367)](_0x15e792[_0x25cf92(0x328)]);_0x15e792[_0x25cf92(0x31b)][_0x25cf92(0x27c)](_0x3313f1=>_0x2c62d3[_0x25cf92(0x1fb)](_0x3313f1,_0x25cf92(0x2f3))),this[_0x25cf92(0x295)][_0x25cf92(0x30c)](_0x1fdc0c),this[_0x25cf92(0x295)][_0x25cf92(0x282)](_0x475ff3,_0x15e792);});}async[_0x102c9d(0x266)](_0x228875){const _0x503fbb=_0x102c9d;this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x207)](_0x503fbb(0x26d))&&this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x300)](_0x503fbb(0x26d))[_0x503fbb(0x1e9)](),(this[_0x503fbb(0x229)][_0x503fbb(0x253)][_0x503fbb(0x300)](_0x367c5c)[_0x503fbb(0x261)][_0x503fbb(0x327)](_0x503fbb(0x1ee)),this[_0x503fbb(0x29d)][_0x503fbb(0x1f0)](_0x503fbb(0x2ea)),this[_0x503fbb(0x29d)][_0x503fbb(0x357)](!0x0),await this[_0x503fbb(0x27e)]());try{await this[_0x503fbb(0x371)][_0x503fbb(0x2e4)](_0x228875)[_0x503fbb(0x2cf)](),await this[_0x503fbb(0x22f)](_0x228875),this[_0x503fbb(0x2f9)]('\x20'),await this[_0x503fbb(0x2fb)][_0x503fbb(0x24d)](_0x228875,this[_0x503fbb(0x241)][_0x503fbb(0x36b)]),this[_0x503fbb(0x2fb)][_0x503fbb(0x305)]()&&this[_0x503fbb(0x353)]();}catch(_0x3453e3){this[_0x503fbb(0x29d)][_0x503fbb(0x293)]({'errorMessage':_0x394fc2(this[_0x503fbb(0x229)][_0x503fbb(0x25c)],_0x503fbb(0x25b)),'id':_0x228875}),this[_0x503fbb(0x2f4)](new _0x302247(_0x503fbb(0x203),this,{'error':_0x3453e3}));}finally{this[_0x503fbb(0x29d)][_0x503fbb(0x20b)](),this[_0x503fbb(0x29d)][_0x503fbb(0x1f0)](_0x503fbb(0x209)),this[_0x503fbb(0x29d)][_0x503fbb(0x357)](!0x1);}}async[_0x102c9d(0x2c9)](){const _0x2550f2=_0x102c9d,_0x3bc019=this[_0x2550f2(0x371)][_0x2550f2(0x1f2)](this[_0x2550f2(0x2b3)](),{'limit':0x1,'sortBy':_0x2550f2(0x206)});try{const _0x1ef9e1=await _0x3bc019[_0x2550f2(0x2d0)]();return _0x1ef9e1[_0x2550f2(0x370)]?_0x1ef9e1[0x0]['id']:_0x2550f2(0x314);}catch(_0x41989b){return this[_0x2550f2(0x29d)][_0x2550f2(0x293)]({'errorMessage':_0x394fc2(this[_0x2550f2(0x229)][_0x2550f2(0x25c)],_0x2550f2(0x25b)),'id':_0x31ba12()}),this[_0x2550f2(0x2f4)](new _0x302247(_0x2550f2(0x1f3),this,{'error':_0x41989b})),this[_0x2550f2(0x29d)][_0x2550f2(0x357)](!0x1),this[_0x2550f2(0x29d)][_0x2550f2(0x259)](),null;}}[_0x102c9d(0x20c)](_0x1c5e14){const _0x3a096a=_0x102c9d;this[_0x3a096a(0x2fb)]['id']===_0x1c5e14&&this[_0x3a096a(0x22f)]();}[_0x102c9d(0x353)](){const _0x1ce072=_0x102c9d;this[_0x1ce072(0x2fb)]?.[_0x1ce072(0x33c)](_0x394fc2(this[_0x1ce072(0x229)][_0x1ce072(0x25c)],_0x1ce072(0x214)));}async[_0x102c9d(0x28b)](){const _0x5a17ce=_0x102c9d,_0x92d97=this[_0x5a17ce(0x241)][_0x5a17ce(0x30d)]();this[_0x5a17ce(0x2fb)]?.[_0x5a17ce(0x2cc)](_0x92d97),this[_0x5a17ce(0x353)]();}[_0x102c9d(0x35e)](){const _0x4feda2=_0x102c9d;this[_0x4feda2(0x2fb)]?.[_0x4feda2(0x2f1)]();}[_0x102c9d(0x366)](){const _0x58a173=_0x102c9d;this[_0x58a173(0x29d)][_0x58a173(0x366)]();}async[_0x102c9d(0x2d7)](){const _0x4d6850=_0x102c9d;await this[_0x4d6850(0x22f)]();}async[_0x102c9d(0x24f)]({message:_0x296e01,attributes:_0x41b4b3}){const _0x59cb12=_0x102c9d;await this[_0x59cb12(0x254)]({'userMessage':_0x296e01,'attributes':_0x41b4b3});}[_0x102c9d(0x2b3)](){const _0x53a5c6=_0x102c9d,_0x2e55a2=this[_0x53a5c6(0x229)][_0x53a5c6(0x36d)][_0x53a5c6(0x300)](_0x53a5c6(0x22d));if(!_0x2e55a2)throw new _0x302247(_0x53a5c6(0x216),this);return _0x2e55a2;}async[_0x102c9d(0x22f)](_0x43706f){const _0x2eef2f=_0x102c9d;try{this[_0x2eef2f(0x29d)][_0x2eef2f(0x285)](),await this[_0x2eef2f(0x36c)](_0x43706f);}catch(_0x2be21e){this[_0x2eef2f(0x29d)][_0x2eef2f(0x293)]({'errorMessage':_0x394fc2(this[_0x2eef2f(0x229)][_0x2eef2f(0x25c)],_0x2eef2f(0x349)),'id':_0x43706f||_0x31ba12()}),console[_0x2eef2f(0x281)](_0x2be21e),this[_0x2eef2f(0x2fb)]=void 0x0,this[_0x2eef2f(0x29d)][_0x2eef2f(0x259)]();}}async[_0x102c9d(0x36c)](_0x480a55){const _0x233588=_0x102c9d;let _0x1199ad;this[_0x233588(0x229)][_0x233588(0x253)][_0x233588(0x207)](_0x233588(0x26d))&&this[_0x233588(0x229)][_0x233588(0x253)][_0x233588(0x300)](_0x233588(0x26d))[_0x233588(0x1e9)](),_0x480a55||!this[_0x233588(0x2fb)]?_0x1199ad=this[_0x233588(0x229)][_0x233588(0x36d)][_0x233588(0x300)](_0x233588(0x2bd)):this[_0x233588(0x29d)][_0x233588(0x224)]&&(_0x1199ad=this[_0x233588(0x2fb)][_0x233588(0x211)]['id']),await this[_0x233588(0x27e)]();const _0x121353=this[_0x233588(0x2b3)](),_0x5c98cf=_0x480a55||_0x31ba12();this[_0x233588(0x2fb)]=new _0x460b3a({'connector':this[_0x233588(0x371)],'chatModels':this[_0x233588(0x2af)],'selectedModelId':_0x1199ad,'conversationId':_0x5c98cf,'group':_0x121353,'getEditor':()=>_0x16921b(this[_0x233588(0x229)]),'isFromHistory':!!_0x480a55}),this[_0x233588(0x2fb)][_0x233588(0x234)](_0x233588(0x333),_0x233588(0x347))['to'](this),this[_0x233588(0x2fb)]['on'](_0x233588(0x264),(_0x51433a,_0x2cbc3f)=>{const _0x360d12=_0x233588;this[_0x360d12(0x29d)][_0x360d12(0x35a)](_0x2cbc3f),this[_0x360d12(0x29d)][_0x360d12(0x2d4)](),this[_0x360d12(0x29d)][_0x360d12(0x2cb)](),this[_0x360d12(0x29d)][_0x360d12(0x325)](),_0x480a55||(this[_0x360d12(0x29d)][_0x360d12(0x365)](),this[_0x360d12(0x353)]());}),this[_0x233588(0x2fb)]['on'](_0x233588(0x223),(_0x45f78c,_0x1f566e)=>{const _0x347879=_0x233588;this[_0x347879(0x29d)][_0x347879(0x1f9)](_0x1f566e[_0x347879(0x1fd)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x32c),(_0x540fed,_0x493cbb)=>{const _0x521634=_0x233588;this[_0x521634(0x29d)][_0x521634(0x2dc)](_0x493cbb);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x25a),()=>{const _0x22e626=_0x233588,_0x1dd878=this[_0x22e626(0x29d)][_0x22e626(0x359)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x22e626(0x29d)][_0x22e626(0x2a8)](_0x1dd878);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2ca),()=>{const _0x594912=_0x233588,_0x4f4fc7=this[_0x594912(0x29d)][_0x594912(0x359)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x594912(0x29d)][_0x594912(0x2a8)](_0x4f4fc7);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x231),(_0x4879f9,_0x3526f5)=>{const _0x2f8a48=_0x233588;this[_0x2f8a48(0x29d)][_0x2f8a48(0x344)](_0x3526f5,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x1f1),(_0x4157c3,_0x1ce903)=>{const _0x5f5423=_0x233588;this[_0x5f5423(0x29d)][_0x5f5423(0x344)](_0x1ce903,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x347),()=>{const _0x40a000=_0x233588;this[_0x40a000(0x29d)][_0x40a000(0x277)]();}),this[_0x233588(0x2fb)]['on'](_0x233588(0x26f),async()=>{const _0x788f6=_0x233588;await this[_0x788f6(0x29d)][_0x788f6(0x2f7)]();}),this[_0x233588(0x2fb)]['on'](_0x233588(0x24c),(_0x28753d,_0x5e1732)=>{const _0x423645=_0x233588;this[_0x423645(0x29d)][_0x423645(0x24e)](_0x5e1732['id']);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x274),(_0x486ea5,_0x5956f3,_0x4d2760)=>{const _0x4d51cd=_0x233588;this[_0x4d51cd(0x2f9)](_0x5956f3,_0x4d2760);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x27b),(_0x444b9f,_0x561b0c)=>{const _0x35e758=_0x233588;_0x35e758(0x2f6)===_0x561b0c[_0x35e758(0x310)]?this[_0x35e758(0x29d)][_0x35e758(0x2df)](_0x561b0c):this[_0x35e758(0x29d)][_0x35e758(0x1ef)](_0x561b0c);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x27a),async(_0x4e2e3e,_0x3c13c9)=>{const _0x570e9f=_0x233588;await this[_0x570e9f(0x2fe)]({'reply':_0x3c13c9});}),this[_0x233588(0x2fb)]['on'](_0x233588(0x21e),(_0x208598,{reply:_0x5ad359,index:_0x5355fe,state:_0x5e3092})=>{const _0x1b480b=_0x233588;this[_0x1b480b(0x29d)][_0x1b480b(0x318)]({'id':_0x5ad359['id'],'index':_0x5355fe,'state':_0x5e3092}),this[_0x1b480b(0x244)]?.[_0x1b480b(0x328)][_0x1b480b(0x2a5)](_0x5ad359['id'])&&this[_0x1b480b(0x244)]?.[_0x1b480b(0x29a)]==_0x5355fe&&this[_0x1b480b(0x21c)]?.[_0x1b480b(0x2f5)](_0x5e3092);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x303),(_0x142e58,_0x3a0be7)=>{const _0x25aac2=_0x233588;if(this[_0x25aac2(0x29d)][_0x25aac2(0x1f7)](_0x3a0be7[_0x25aac2(0x2b4)],_0x3a0be7[_0x25aac2(0x34c)]),_0x25aac2(0x2ad)===_0x3a0be7[_0x25aac2(0x2b4)][_0x25aac2(0x310)]){const _0x2be3fa=[..._0x16921b(this[_0x25aac2(0x229)])[_0x25aac2(0x2aa)][_0x25aac2(0x33e)][_0x25aac2(0x2ad)][_0x25aac2(0x2bb)]()];this[_0x25aac2(0x241)][_0x25aac2(0x21b)](_0x2be3fa,_0x25aac2(0x27d)+this[_0x25aac2(0x2fb)]?.['id']);}}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2b9),(_0x177024,_0xa587c5)=>{const _0x1ef40e=_0x233588;this[_0x1ef40e(0x29d)][_0x1ef40e(0x2fd)](_0xa587c5[_0x1ef40e(0x275)]),_0x1ef40e(0x35b)==_0xa587c5[_0x1ef40e(0x275)]&&this[_0x1ef40e(0x35e)](),_0x1ef40e(0x2ad)===_0xa587c5[_0x1ef40e(0x310)]&&this[_0x1ef40e(0x241)][_0x1ef40e(0x1ed)](_0x1ef40e(0x27d)+this[_0x1ef40e(0x2fb)]?.['id']);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x263),(_0x586d13,_0x456e0a)=>{const _0x283e6c=_0x233588;this[_0x283e6c(0x29d)][_0x283e6c(0x315)](_0x456e0a[_0x283e6c(0x2b4)][_0x283e6c(0x275)],_0x456e0a[_0x283e6c(0x34c)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x22c),(_0x490b02,_0x50f075)=>{const _0x3cdd21=_0x233588;this[_0x3cdd21(0x29d)][_0x3cdd21(0x312)](_0x50f075[_0x3cdd21(0x21f)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x313),(_0x128344,_0x3deccd)=>{const _0x55ba8d=_0x233588;this[_0x55ba8d(0x29d)][_0x55ba8d(0x329)](_0x3deccd[_0x55ba8d(0x361)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x30e),(_0x21c485,_0x213758)=>{const _0x2fd4eb=_0x233588;this[_0x2fd4eb(0x29d)][_0x2fd4eb(0x267)](_0x213758[_0x2fd4eb(0x336)],_0x213758[_0x2fd4eb(0x2fc)],_0x213758[_0x2fd4eb(0x26e)],_0x213758[_0x2fd4eb(0x334)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x217),(_0x48ae34,_0x40eec8)=>{const _0x241e1e=_0x233588;this[_0x241e1e(0x29d)][_0x241e1e(0x20a)](_0x40eec8[_0x241e1e(0x336)],_0x40eec8[_0x241e1e(0x245)],_0x40eec8[_0x241e1e(0x215)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x2bf),(_0x3a95eb,_0x51df56)=>{const _0x4fa144=_0x233588;this[_0x4fa144(0x29d)][_0x4fa144(0x341)](_0x51df56);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x335),async(_0x10759c,_0x1e2a4a)=>{const _0xaf9ec6=_0x233588,_0x3c510a=(await this[_0xaf9ec6(0x2af)][_0xaf9ec6(0x2fa)]())[_0xaf9ec6(0x317)](_0x2717e2=>_0x2717e2['id']===_0x1e2a4a[_0xaf9ec6(0x211)]?.['id'])||null;this[_0xaf9ec6(0x29d)][_0xaf9ec6(0x342)](_0x3c510a,_0x1e2a4a[_0xaf9ec6(0x28f)]);}),this[_0x233588(0x2fb)]['on'](_0x233588(0x281),(_0x3aae51,{error:_0x3ad286,interactionId:_0xb149ca,fileName:_0x35e2be,url:_0x4d1cb0,sourceId:_0x142574,sourceLabel:_0x34cb3a})=>{const _0x2049d7=_0x233588,_0x406d41=_0xb149ca?_0xb149ca+':'+_0x31ba12():_0x31ba12();_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2ab))?this[_0x2049d7(0x29d)][_0x2049d7(0x316)]({'staticMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2eb)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x1f3))||_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x298))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x349)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2e7))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2d5),_0x35e2be),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32d))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2cd),_0x4d1cb0),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x208))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x343)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x221))?this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x1ff)),'id':_0x406d41}):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x30a))?(_0x142574&&this[_0x2049d7(0x29d)][_0x2049d7(0x363)](_0x142574),this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x319),_0x34cb3a||_0x2049d7(0x2fc)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32a))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2a4)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x34a))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2f8)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x23b))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x202)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x2ce))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x2c7)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x291))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x251)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):_0x3ad286[_0x2049d7(0x258)][_0x2049d7(0x351)](_0x2049d7(0x32e))?(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x26b)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286)):(this[_0x2049d7(0x29d)][_0x2049d7(0x293)]({'errorMessage':_0x394fc2(this[_0x2049d7(0x229)][_0x2049d7(0x25c)],_0x2049d7(0x230)),'id':_0x406d41}),this[_0x2049d7(0x2f4)](_0x3ad286));}),await this[_0x233588(0x2fb)][_0x233588(0x222)](this[_0x233588(0x229)][_0x233588(0x36d)][_0x233588(0x300)](_0x233588(0x20e))),_0x480a55||await this[_0x233588(0x2fb)][_0x233588(0x2b2)]();}async[_0x102c9d(0x254)]({userMessage:_0x45c593,attributes:_0x5c77c0}){const _0xeb4ce8=_0x102c9d;if(!this[_0xeb4ce8(0x2fb)])throw new _0x302247(_0xeb4ce8(0x330));if(this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x29e)]()){const _0x50d1f6=await this[_0xeb4ce8(0x241)][_0xeb4ce8(0x268)]();await this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x372)](_0x50d1f6);}this[_0xeb4ce8(0x2fb)]['id']&&this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x2e8)]&&await this[_0xeb4ce8(0x2fb)][_0xeb4ce8(0x321)]({'userMessage':_0x45c593,'attributes':_0x5c77c0});}[_0x102c9d(0x29c)](){const _0x569728=_0x102c9d;console[_0x569728(0x270)](_0x569728(0x1ea));}[_0x102c9d(0x1f4)](_0x33a7f9){const _0x50b489=_0x102c9d;this[_0x50b489(0x29d)][_0x50b489(0x26a)](_0x33a7f9);}[_0x102c9d(0x2f4)](_0x41a4e2){const _0x659b08=_0x102c9d;_0x5bf06e(_0x41a4e2[_0x659b08(0x258)]);}[_0x102c9d(0x323)](_0x5e0332){const _0x3bbb77=_0x102c9d;this[_0x3bbb77(0x2fb)]?.[_0x3bbb77(0x345)](_0x5e0332);}[_0x102c9d(0x1f6)](){const _0x29133b=_0x102c9d;this[_0x29133b(0x2fb)]?.[_0x29133b(0x2d1)]();}[_0x102c9d(0x2a7)](){const _0x5e41e5=_0x102c9d;this[_0x5e41e5(0x2fb)]?.[_0x5e41e5(0x286)]();}[_0x102c9d(0x24b)](_0x12d679){const _0x51adc9=_0x102c9d,[_0x47112b,_0x548769]=_0x12d679[_0x51adc9(0x360)](':'),_0x547edd=this[_0x51adc9(0x2fb)][_0x51adc9(0x1eb)](_0x47112b),_0x2500cd=_0x547edd[_0x51adc9(0x367)](_0x548769);return{'interaction':_0x547edd,'reply':_0x2500cd};}[_0x102c9d(0x309)](_0x446648,_0x5051a1=!0x1){const _0x170bbd=_0x102c9d,_0x24aafb=_0x16921b(this[_0x170bbd(0x229)]),_0x2adb92={'target':_0x24aafb[_0x170bbd(0x331)][_0x170bbd(0x261)][_0x170bbd(0x30f)][_0x170bbd(0x31a)](_0x24aafb[_0x170bbd(0x331)][_0x170bbd(0x2d3)][_0x170bbd(0x2c8)](_0x446648)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5051a1};_0x5051a1&&(_0x2adb92[_0x170bbd(0x2ec)]=!0x0),_0x5dad21(_0x2adb92);}[_0x102c9d(0x2f9)](_0x5db940,_0xdef926=!0x1){const _0x565bbb=_0x102c9d;this[_0x565bbb(0x29d)][_0x565bbb(0x274)](_0x5db940||_0x394fc2(this[_0x565bbb(0x229)][_0x565bbb(0x25c)],_0x565bbb(0x33d)),_0xdef926);}async[_0x102c9d(0x2fe)]({reply:_0x251666,renderingStrategy:_0x4fe23e}){const _0x3695df=_0x102c9d,{id:_0x21e5c3,interactionId:_0x3c3450,isDone:_0x5f1d3d,type:_0x4cf923,parsedContent:_0x369ca1}=_0x251666,_0xca74c6=_0x3c3450+':'+_0x21e5c3;if(_0x3695df(0x33b)===_0x4cf923){const _0x2f467a=_0x251666[_0x3695df(0x33f)]({'showDiff':this[_0x3695df(0x29d)][_0x3695df(0x272)]});await this[_0x3695df(0x29d)][_0x3695df(0x2db)]({'id':_0xca74c6,'parts':_0x2f467a,'renderingStrategy':_0x4fe23e,'isDone':_0x5f1d3d});}else _0x3695df(0x2f6)===_0x4cf923&&await this[_0x3695df(0x29d)][_0x3695df(0x273)]({'id':_0xca74c6,'parsedContent':_0x369ca1,'renderingStrategy':_0x4fe23e,'isDone':_0x5f1d3d});_0x5f1d3d&&_0x251666[_0x3695df(0x219)][_0x3695df(0x370)]>0x0&&this[_0x3695df(0x29d)][_0x3695df(0x200)](_0xca74c6,_0x251666[_0x3695df(0x219)]);}async[_0x102c9d(0x27e)](){const _0x504df7=_0x102c9d,_0x19e3fc=this[_0x504df7(0x2fb)]?.[_0x504df7(0x23d)];_0x19e3fc&&(_0x19e3fc[_0x504df7(0x201)](),this[_0x504df7(0x29d)][_0x504df7(0x2da)](_0x19e3fc));}async[_0x102c9d(0x28c)](){const _0x3674cc=_0x102c9d,_0x55aef2=this[_0x3674cc(0x2fb)]?.[_0x3674cc(0x23d)];if(_0x55aef2){for await(const _0x553147 of _0x55aef2[_0x3674cc(0x2c4)])await this[_0x3674cc(0x2fe)]({'reply':_0x553147,'renderingStrategy':_0x3674cc(0x2ea)});}}[_0x102c9d(0x354)](_0x3952f4){const _0x458993=_0x102c9d,_0x5ab835={'positiveCount':_0x3952f4[_0x458993(0x22b)][_0x458993(0x2e9)](_0x115ecf=>_0x458993(0x2f3)===_0x115ecf[_0x458993(0x2a3)])[_0x458993(0x370)],'totalCount':_0x3952f4[_0x458993(0x22b)][_0x458993(0x370)],'modificationId':_0x3952f4['id']},_0x4e7d72=this[_0x458993(0x2fb)][_0x458993(0x1eb)](_0x3952f4[_0x458993(0x31e)])[_0x458993(0x28e)];_0x4e7d72&&this[_0x458993(0x371)][_0x458993(0x2ba)](this[_0x458993(0x2fb)]['id'],_0x4e7d72,_0x5ab835);}[_0x102c9d(0x2d6)](_0x22d48f){const _0x53f8d8=_0x102c9d;let _0x40e726=null,_0x2d5697=null;this['on'](_0x53f8d8(0x333),(_0x52638a,_0x2fede5,_0x1b5848)=>{const _0x2badba=_0x53f8d8;_0x1b5848['id']!==_0x40e726&&(_0x40e726=_0x1b5848['id'],_0x2d5697=this[_0x2badba(0x2ef)](_0x1b5848)),_0x22d48f(_0x2fede5,_0x2d5697);});}[_0x102c9d(0x2ef)](_0x44ab33){const _0x348f02=_0x102c9d,_0x4270f9=this[_0x348f02(0x29d)],_0x137ca3=()=>{const _0x42fbfd=_0x348f02;_0x44ab33[_0x42fbfd(0x218)](),_0x44ab33[_0x42fbfd(0x228)](),_0x4270f9[_0x42fbfd(0x248)]();},_0x5bf415=()=>{const _0x9c1fe9=_0x348f02;_0x44ab33[_0x9c1fe9(0x2de)]&&(_0x44ab33[_0x9c1fe9(0x2de)][_0x9c1fe9(0x22a)](),_0x44ab33[_0x9c1fe9(0x2de)]=void 0x0);};return{'insertTextReply':(_0x51cb79,_0x40de36)=>{const _0x55836a=_0x348f02;_0x5bf415(),_0x137ca3();const _0x13ec93=_0x44ab33[_0x55836a(0x2de)]=_0x44ab33[_0x55836a(0x2b6)]({'type':_0x55836a(0x2f6),'interactionId':_0x44ab33['id'],'content':_0x51cb79,'id':_0x40de36||_0x31ba12()});return _0x5bf415(),_0x13ec93;},'insertCustomElement':async(_0x16d92b,_0x40b1d7)=>(_0x5bf415(),_0x137ca3(),_0x4270f9[_0x348f02(0x225)](_0x16d92b,_0x40b1d7||_0x31ba12())),'setLoadingMessage':_0x275ccd=>{const _0x342322=_0x348f02;_0x4270f9[_0x342322(0x2a8)](_0x275ccd);},'clearLoadingMessage':()=>{const _0x24ccee=_0x348f02;_0x4270f9[_0x24ccee(0x248)]();}};}}
23
+ const _0x4f0be9=_0x462d;(function(_0x5e9a44,_0x512c76){const _0x106408=_0x462d,_0x47d6b9=_0x5e9a44();while(!![]){try{const _0x5210c6=-parseInt(_0x106408(0x262))/0x1+-parseInt(_0x106408(0x240))/0x2+-parseInt(_0x106408(0x2ac))/0x3*(-parseInt(_0x106408(0x18e))/0x4)+-parseInt(_0x106408(0x25d))/0x5*(parseInt(_0x106408(0x1fd))/0x6)+parseInt(_0x106408(0x2b4))/0x7+parseInt(_0x106408(0x2f7))/0x8+parseInt(_0x106408(0x2bb))/0x9;if(_0x5210c6===_0x512c76)break;else _0x47d6b9['push'](_0x47d6b9['shift']());}catch(_0x13e588){_0x47d6b9['push'](_0x47d6b9['shift']());}}}(_0x2d80,0x385b8));import{ContextPlugin as _0x579fa9,Editor as _0x4c7e88}from'ckeditor5/src/core.js';import{BodyCollection as _0x5c7a70}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5e0114,logError as _0x2a8800,scrollViewportToShowTarget as _0x17172b,uid as _0x38ac82}from'ckeditor5/src/utils.js';function _0x2d80(){const _0x577600=['setState','insertSuggestion','done','showChangeInText','isOfficialPlugin','removeFromContext','disableControls','removeSelectionFromContext','_integrateEditor','indexes','ai-chat-conversation-start-failed','change','start','ai.chat.initialConversation','AI_BALLOON_HEADER_TITLE','lastInteraction','ready','document','addResourceToContext','getAttribute','_getAIChatInteractionAPI','DocumentCompare','_getDocumentRangeForReplyChanges','toggleLoadingSkeleton','_openBalloonFor','isDisabled','_getLastCreatedConversationId','populateSourceResourceBalloon','bind','selectedModel','ai-no-track-changes','replyContentUpdated','getChild','current-document','locale','static','572880qcRmSV','$graveyard','_aiEditing','addDocumentToContext','history','ai-chat-controller-no-active-conversation','ai-request-aborted','commands','type','marker','_updateRatings','like','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInContext','AI_CHAT_GENERIC_ERROR','mapper','updateFeedItemAIReplySources','includes','ai-chat-file-upload-failed','sessionId','AI_CHAT_UNTITLED_CONVERSATION','getSelectionText','push','load','ai-chat-conversation-init-failed','getInteractionAndReplyById','maxOffset','baseVersion','removeSelectionFromChatContext','85ohaGLo','node','interactionFinished','addSelectionToChatContext','_aiChatUi','391983kKlENl','replyChangeGroupStateUpdated','root','resetMessageInput','_bodyCollection','split','upsertAIChatRating','toString','next','ai.models','batch','showPrevious','config','aiChatBalloon','AITabs','enableControls','set','handleUserInteraction','undo','sources','length','_aiChatModels','reasoningFinished','startInteraction','_showConversationHistory','ai-chat-context-invalid-data','options','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','interactionDestroyed','AIChatController','content','detachFromDom','addContextItem','afterInit','addFeedItemStaticMessage','_handleUIUserMessage','removeContextItem','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_CONTEXT_INVALID_DATA','chat','isUploadInProgress','AIChatUI','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getInteraction','removed','howMany','delete','lastCreated','ai-chat-url-upload-failed','mouseLeaveSuggestion','_removeFromContext','_currentPreviewedChangeGroup','hasChanges','mouseOverSuggestion','isCurrentDocumentInConversation','cloneNode','startsWith','toViewRange','getGroupId','addCurrentDocumentToChatContext','dislike','contextSent','modelSelected','resize','currentReply','_getPresentableSiblingContentPartIndex','path','AI_CHAT_INVALID_REQUEST','ai-conversation-','TrackChangesEditing','documentContextContent','isLoading','setModel','add','12AHgSGj','getDocumentData','destroy','sourceResourcesLoaded','_flushLastInteractionUI','ai-chat-source-resources-load-failed','source','_createFromRanges','1100764IfYKGb','addFeedItemAIReply','startConversation','resizedTabs','addFeedInteractionHeader','_handleStartConversation','_batchToChanges','3646854UEUceq','Showing\x20conversation\x20history...','state','Undo','updateContent','createPositionAt','showDiff','setIsUploadInProgress','dialogClosed','data','slice','indexOf','changes','contextItemLoadingEnded','callback','ai-chat-context-form-data-size-limits-exceeded','remove','addFileToContext','fetchConversation','messageId','modification','getDiff','streaming','setSelectedModel','find','selectModel','resourceStateChanged','updateConversationTitle','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','toolDataReceived','AI_CHAT_UNABLE_TO_START_CONVERSATION','addUrlToContext','ai-chat-context-unsupported-type','interactionCreated','TrackChanges','activateTab','ai-chat-missing-channel-id','getPath','ai-chat-resource-load-failed','contextItems','createPositionFromPath','_registerToolDataCallback','applySuggestion','requires','setAddContextOptions','webSearchFinished','getConversations','ai-chat-conversation-not-found','addContextOptionsChanged','interactionId','getContentParts','createdAt','getConversation','finishInteraction','plugins','fetchConversations','anchorId','partIndex','updateCurrentDocumentInContext','init','3514704tfWSsz','stop','collaboration.channelId','get','_aiChatBalloon','end','rejected','from','prepareLoadingMessage','interactionStarted','_applyOperationsAsSuggestions','addFeedItemAISuggestion','setChangeGroupState','updateResourceState','contextItemAdded','uploadProgressChanged','log','changeGroups','listenTo','webSearchStarted','_startConversationSafely','attachToDom','addFeedItemUserMessage','clearPendingContextUI','startAutoScroll','showNext','getOperations','getRoot','replyId','hideFakeVisualSelection','isStarted','resources','addFeedItemCustomElement','redo','117196HOJPhA','conversationInitialized','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','resource','closeSourceResourceBalloon','addCurrentDocumentToContext','contextItem','getReply','Disliked\x20response','AI_CHAT_CONTEXT_FILE_TOO_LARGE','unshift','ai.models.defaultModelId','filter','addOperation','ai-chat-context-unsupported-file-type','scrollFeedToSuggestion','_aiChatBalloonShowDiff','loadConversation','rootName','_insertSuggestion','stopInteraction','pending','clearConversationContextUI','focusPromptInput','reasoningStarted','setConversationContext','map','AIEditing','capabilitiesUpdated','resourceId','main','AIConnector','sourcePosition','sendUserMessage','createConversation','_toggleReasoning','removeFeedInteraction','getAll','executeCustomItemCallback','editing','AI_CHAT_ABORTED_MESSAGE','resetReasoningState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','pluginName','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','version','applyOperation','ai-chat-context-file-too-many-pages','setFeedItemAIReplySuggestionPartActive','sourceId','revert','toggleWebSearch','_getUserPresentableContentPartDocumentRange','view','resizeTabs','resetConversationTitle','showFakeVisualSelection','getTransformedByOperation','handleRemovedConversation','resetWebSearchState','_stopLastInteraction','data-id','message','parse','model','addFeedItemError','_updateReplyContent','error','replyCreated','has','updateFeedItemAIReplyContent','rejectSuggestion','findIndex','setIsMaximized','Liked\x20response','contextItemRemoved','toggleReasoning','nextSibling','accepted','ai-chat-context-file-too-large','getChildAtOffset','_applySuggestion','viewRangeToDom','new','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','index','children','_logError','isInContext','_scrollToSuggestionRange','isDocumentOperation','toggleSuggestionDisplayMode','forEach','getDocumentContext','setConversationTitle','AI_CHAT_RESOURCE_LOAD_FAILED','addSelectionToContext','updateFeedItemAIReplySuggestionPartState','domConverter','abortPromptStream','replies','_setIsMaximized','alignToTop','setLoadingMessage','createReply','ai-chat-controller-mouse-over','range','close','activeConversation','_rejectSuggestion','ai-chat-invalid-request','74022BIalcd','updateCapabilities','clearLoadingMessage','context','previous','uiId','isModelAvailable','AIChatBalloon','isPremiumPlugin','query','_toggleWebSearch','loadSourceResources','ai.chat.context','getRanges','addFilesToContext','text','open','sendMessage','selection','getFirstRange','setContextItemLoading','createRange','uid','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','delegate','setFeedItemRenderingStrategy','getChildren','areActionsDisabled','outdated','_aiConnector','editors'];_0x2d80=function(){return _0x577600;};return _0x2d80();}import{AIConnector as _0x260f64}from'../aicore/aiconnector.js';function _0x462d(_0x244c72,_0x278529){const _0x2d80ad=_0x2d80();return _0x462d=function(_0x462de1,_0x561e3d){_0x462de1=_0x462de1-0x184;let _0x1fe2fb=_0x2d80ad[_0x462de1];return _0x1fe2fb;},_0x462d(_0x244c72,_0x278529);}import{AITabs as _0x10af84}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5b18f6}from'./model/aichatconversation.js';import{getTranslation as _0x2f5f52}from'../aicore/utils/common-translations.js';import{AIModels as _0x39ac94}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x11e5e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x46b224,DATA_ID_MODEL_ATTRIBUTE as _0x35e592}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x53f672,getOperationsFromReply as _0x397cbf}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3bf8dd,getMinimalSelection as _0x1a2567}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x548b39,_DetachOperation as _0x2375cc}from'ckeditor5/src/engine.js';import{findOne as _0x2e91ba,getAttribute as _0x50768f,serialize as _0x29993e,Document as _0x1e4dd4,findByAttribute as _0x4a5ad3}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x579fa9{[_0x4f0be9(0x242)];[_0x4f0be9(0x21a)];[_0x4f0be9(0x261)];[_0x4f0be9(0x277)];[_0x4f0be9(0x2fb)];[_0x4f0be9(0x2ba)]=new Map();[_0x4f0be9(0x295)]=null;[_0x4f0be9(0x266)];static get[_0x4f0be9(0x2e6)](){return[_0x260f64,_0x46b224];}static get[_0x4f0be9(0x1b9)](){const _0x52fda4=_0x4f0be9;return _0x52fda4(0x27f);}static get[_0x4f0be9(0x220)](){return!0x0;}static get[_0x4f0be9(0x205)](){return!0x0;}[_0x4f0be9(0x2f6)](){const _0x468ced=_0x4f0be9;this[_0x468ced(0x266)]=new _0x5c7a70(this[_0x468ced(0x200)][_0x468ced(0x23e)]),this[_0x468ced(0x266)][_0x468ced(0x30c)](),this[_0x468ced(0x21a)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1ad)),this[_0x468ced(0x261)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x28b)),this[_0x468ced(0x242)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x1a9)),this[_0x468ced(0x277)]=new _0x39ac94({'connector':this[_0x468ced(0x21a)],'config':this[_0x468ced(0x200)][_0x468ced(0x26e)][_0x468ced(0x2fa)](_0x468ced(0x26b)),'locale':this[_0x468ced(0x200)][_0x468ced(0x23e)]});const _0x369c13=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x270));this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2b6),()=>{const _0x1fcd1c=_0x468ced;this[_0x1fcd1c(0x30b)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1af),(_0x19b5a0,_0x5ce5b0)=>{const _0x3c6b30=_0x468ced;this[_0x3c6b30(0x285)]({'userMessage':_0x5ce5b0});}),this[_0x468ced(0x309)](_0x369c13,_0x468ced(0x2b7),(_0x51d1b8,_0x111288)=>{const _0x17de55=_0x468ced;this[_0x17de55(0x1f3)](_0x111288);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c4),()=>{const _0x3242d4=_0x468ced;_0x369c13[_0x3242d4(0x2a1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1f1),async()=>{const _0x3f8eb2=_0x468ced;await this[_0x3f8eb2(0x1ca)](),await this[_0x3f8eb2(0x2b0)](),this[_0x3f8eb2(0x25c)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x243),()=>{const _0x386460=_0x468ced;this[_0x386460(0x29d)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2cc),(_0x3a1e3c,_0x44ac27)=>{const _0x2f9368=_0x468ced;this[_0x2f9368(0x1fa)]?.[_0x2f9368(0x20b)](Array[_0x2f9368(0x2fe)](_0x44ac27));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2da),(_0x564b24,_0x284639)=>{const _0x95f40a=_0x468ced;this[_0x95f40a(0x1fa)]?.[_0x95f40a(0x2da)](_0x284639);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1b4),(_0x174618,_0xa34930)=>{const _0x2211b5=_0x468ced;_0xa34930[_0x2211b5(0x2c9)](this[_0x2211b5(0x200)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x22e),(_0x4d4eb0,_0x1f66f3)=>{const _0x559924=_0x468ced;this[_0x559924(0x1fa)]?.[_0x559924(0x22e)](_0x1f66f3[_0x559924(0x2b2)],_0x1f66f3[_0x559924(0x191)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x286),(_0x261a24,_0x298052)=>{const _0x35ac52=_0x468ced;this[_0x35ac52(0x294)](_0x298052);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x208),(_0x2254d0,_0x4edd5a)=>{const _0x244b7d=_0x468ced;this[_0x244b7d(0x1fa)]?.[_0x244b7d(0x208)](_0x4edd5a[_0x244b7d(0x1bf)],_0x4edd5a[_0x244b7d(0x206)],_0x4edd5a[_0x244b7d(0x213)]);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1c1),()=>{const _0xdfac33=_0x468ced;this[_0xdfac33(0x207)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1da),()=>{const _0x139273=_0x468ced;this[_0x139273(0x1b1)]();}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2d4),(_0x4d2729,_0x3e576f)=>{const _0x3e31f4=_0x468ced;this[_0x3e31f4(0x1fa)]?.[_0x3e31f4(0x2aa)](_0x3e576f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x24b),(_0x4415ff,{replyId:_0x41c9d4})=>{const _0x1bbb78=_0x468ced;console[_0x1bbb78(0x307)](_0x1bbb78(0x1d8),_0x41c9d4);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x29e),(_0x192ed3,{replyId:_0x1c3fd7})=>{const _0x585426=_0x468ced;console[_0x585426(0x307)](_0x585426(0x196),_0x1c3fd7);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21d),(_0x567ea7,_0x8daf5e)=>{const _0x105308=_0x468ced;this[_0x105308(0x1a1)](_0x8daf5e);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x21f),(_0x2307f6,{replyId:_0x59909d,partIndex:_0x4929a2})=>{const _0x5b65ed=_0x468ced;this[_0x5b65ed(0x19e)]=this[_0x5b65ed(0x261)][_0x5b65ed(0x2c1)],this[_0x5b65ed(0x234)](_0x59909d,_0x4929a2);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x297),(_0x16af87,{replyId:_0x332689,partIndex:_0x2291c7})=>{const _0x4716e2=_0x468ced,_0xab4a04=this[_0x4716e2(0x232)](_0x332689,_0x2291c7);_0xab4a04&&_0x4716e2(0x241)!=_0xab4a04[_0x4716e2(0x1f8)][_0x4716e2(0x264)][_0x4716e2(0x1a0)]&&this[_0x4716e2(0x242)][_0x4716e2(0x1c6)]([_0xab4a04[_0x4716e2(0x1f8)]],_0x4716e2(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x293),()=>{const _0x394299=_0x468ced;this[_0x394299(0x242)][_0x394299(0x189)](_0x394299(0x1f7));}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x2e5),(_0x5353c7,_0x5e388f)=>{const _0x1b363b=_0x468ced;this[_0x1b363b(0x242)][_0x1b363b(0x189)](_0x1b363b(0x1f7)),this[_0x1b363b(0x1df)](_0x5e388f);}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1e9),async(_0x400574,{replyId:_0x42bff5,showDiff:_0x589b9d})=>{const _0x42ad8a=_0x468ced,{reply:_0x53e252}=this[_0x42ad8a(0x259)](_0x42bff5),_0x121116=_0x53e252[_0x42ad8a(0x2ed)]({'showDiff':_0x589b9d});await this[_0x42ad8a(0x261)][_0x42ad8a(0x24c)]({'id':_0x53e252['id'],'parts':_0x121116,'renderingStrategy':_0x42ad8a(0x23f)});}),this[_0x468ced(0x309)](this[_0x468ced(0x261)],_0x468ced(0x1d5),(_0x50f8d3,{replyId:_0x2093a8,partIndex:_0x1953b4})=>{const _0x4951fd=_0x468ced;this[_0x4951fd(0x1fb)]({'replyId':_0x2093a8,'partIndex':_0x1953b4}),this[_0x4951fd(0x242)][_0x4951fd(0x189)](_0x4951fd(0x1f7));}),this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x1d3)](_0x468ced(0x204))&&(this[_0x468ced(0x2fb)]=this[_0x468ced(0x200)][_0x468ced(0x2f1)][_0x468ced(0x2fa)](_0x468ced(0x204)),this[_0x468ced(0x272)](_0x468ced(0x19e),!0x1),this[_0x468ced(0x2fb)][_0x468ced(0x238)](_0x468ced(0x2c1))['to'](this,_0x468ced(0x19e)),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1e9),()=>{const _0x50c8ed=_0x468ced,{replyId:_0x314bee,partIndex:_0x42459b}=this[_0x50c8ed(0x295)];this[_0x50c8ed(0x19e)]=!this[_0x50c8ed(0x19e)];const {reply:_0x4ca3c3}=this[_0x50c8ed(0x259)](_0x314bee),_0x956e9=_0x4ca3c3[_0x50c8ed(0x2ed)]({'showDiff':this[_0x50c8ed(0x19e)],'groupIndex':_0x42459b});this[_0x50c8ed(0x2fb)][_0x50c8ed(0x2bf)]({'part':_0x956e9[0x0],'renderingStrategy':_0x50c8ed(0x23f),'keepErrors':!0x0});}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2e5),()=>{const _0x57ff21=_0x468ced,{replyId:_0x50aa6a,partIndex:_0xd8073d}=this[_0x57ff21(0x295)];this[_0x57ff21(0x1df)]({'replyId':_0x50aa6a,'partIndex':_0xd8073d}),this[_0x57ff21(0x2fb)][_0x57ff21(0x21c)](_0x57ff21(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x21d),()=>{const _0x39f3b4=_0x468ced,{replyId:_0x583d9f,partIndex:_0x30b85f}=this[_0x39f3b4(0x295)];this[_0x39f3b4(0x1a1)]({'replyId':_0x583d9f,'partIndex':_0x30b85f}),this[_0x39f3b4(0x2fb)][_0x39f3b4(0x21c)](_0x39f3b4(0x1dc));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x1d5),()=>{const _0x42e9cf=_0x468ced,{replyId:_0x1cbec5,partIndex:_0x50c8cd}=this[_0x42e9cf(0x295)];this[_0x42e9cf(0x1fb)]({'replyId':_0x1cbec5,'partIndex':_0x50c8cd}),this[_0x42e9cf(0x2fb)][_0x42e9cf(0x21c)](_0x42e9cf(0x2fd));}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x185),()=>{const _0x1bdfc0=_0x468ced,{replyId:_0x31c3bc,partIndex:_0xb9cbaf}=this[_0x1bdfc0(0x295)],_0x42f1d3=this[_0x1bdfc0(0x2a3)](_0x31c3bc,_0xb9cbaf,_0x1bdfc0(0x26a));null!==_0x42f1d3&&this[_0x1bdfc0(0x234)](_0x31c3bc,_0x42f1d3);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x26d),()=>{const _0x1c5d65=_0x468ced,{replyId:_0xf2a7ec,partIndex:_0x1156a2}=this[_0x1c5d65(0x295)],_0x15382=this[_0x1c5d65(0x2a3)](_0xf2a7ec,_0x1156a2,_0x1c5d65(0x201));null!==_0x15382&&this[_0x1c5d65(0x234)](_0xf2a7ec,_0x15382);}),this[_0x468ced(0x309)](this[_0x468ced(0x2fb)],_0x468ced(0x2c3),(_0x330cd7,{id:_0x530bdc})=>{const _0x484b28=_0x468ced;if(_0x484b28(0x26f)!==_0x530bdc)return;const {replyId:_0x5a865d,partIndex:_0x4d1013}=this[_0x484b28(0x295)];this[_0x484b28(0x295)]=null,this[_0x484b28(0x261)][_0x484b28(0x1be)]({'id':_0x5a865d,'index':_0x4d1013,'isActive':!0x1});}));}async[_0x4f0be9(0x283)](){const _0x229344=_0x4f0be9;this[_0x229344(0x200)]instanceof _0x4c7e88?this[_0x229344(0x224)](this[_0x229344(0x200)]):this[_0x229344(0x309)](this[_0x229344(0x200)][_0x229344(0x21b)],_0x229344(0x2ab),(_0x37e746,_0x16a443)=>{const _0x3bafd3=_0x229344;_0x16a443['on'](_0x3bafd3(0x22c),()=>{const _0x1adbf1=_0x3bafd3;this[_0x1adbf1(0x224)](_0x16a443);});});const _0x41288f=this[_0x229344(0x200)][_0x229344(0x26e)][_0x229344(0x2fa)](_0x229344(0x229));let _0x5ee54e=_0x41288f;if(_0x229344(0x291)!=_0x41288f||(_0x5ee54e=await this[_0x229344(0x236)](),_0x5ee54e))return _0x229344(0x1e1)==_0x5ee54e?this[_0x229344(0x30b)]():this[_0x229344(0x19f)](_0x5ee54e);}async[_0x4f0be9(0x2ae)](){const _0x50f2e4=_0x4f0be9;return await this[_0x50f2e4(0x1ca)](),this[_0x50f2e4(0x266)][_0x50f2e4(0x281)](),super[_0x50f2e4(0x2ae)]();}[_0x4f0be9(0x1a1)](_0x4c1c8a){const _0x2d33c1=_0x4f0be9,_0x35fcbe=_0x11e5e4(this[_0x2d33c1(0x200)]);if(!_0x35fcbe[_0x2d33c1(0x2f1)][_0x2d33c1(0x1d3)](_0x2d33c1(0x2dd)))throw new _0x5e0114(_0x2d33c1(0x23a),null);const _0x362a5f=this[_0x2d33c1(0x200)][_0x2d33c1(0x2f1)][_0x2d33c1(0x2fa)](_0x2d33c1(0x231)),{reply:_0x1891be,interaction:_0x60f927}=this[_0x2d33c1(0x259)](_0x4c1c8a[_0x2d33c1(0x188)]),_0x4a356a=this[_0x2d33c1(0x232)](_0x4c1c8a[_0x2d33c1(0x188)],_0x4c1c8a[_0x2d33c1(0x2f4)]),_0x170615=void 0x0!==_0x4c1c8a[_0x2d33c1(0x2f4)]?[_0x1891be[_0x2d33c1(0x308)][_0x4c1c8a[_0x2d33c1(0x2f4)]]]:_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x19a)](_0x47af64=>_0x2d33c1(0x1a3)==_0x47af64[_0x2d33c1(0x2bd)]),_0x1a4bea=_0x170615[_0x2d33c1(0x1a8)](_0x378547=>_0x1891be[_0x2d33c1(0x308)][_0x2d33c1(0x2c6)](_0x378547));if(!_0x4a356a||_0x2d33c1(0x241)==_0x4a356a[_0x2d33c1(0x1f8)][_0x2d33c1(0x264)][_0x2d33c1(0x1a0)])return void _0x1a4bea[_0x2d33c1(0x1ea)](_0x36f9c1=>_0x1891be[_0x2d33c1(0x303)](_0x36f9c1,_0x2d33c1(0x219)));_0x1a4bea[_0x2d33c1(0x1ea)](_0x3d53f1=>_0x1891be[_0x2d33c1(0x303)](_0x3d53f1,_0x2d33c1(0x1dc)));const _0x5ca13b=_0x397cbf({'editor':_0x35fcbe,'reply':_0x1891be,'interaction':_0x60f927,'groups':_0x170615,'transform':!0x0,'documentCompare':_0x362a5f,'documentCompareOptions':{'anchor':_0x2d33c1(0x1ac),'markDeletions':!0x0}});let _0x11e90c;_0x4a356a&&this[_0x2d33c1(0x1e7)](_0x4a356a[_0x2d33c1(0x1f8)]),_0x35fcbe[_0x2d33c1(0x1ce)][_0x2d33c1(0x227)](_0x3492bf=>{const _0x425207=_0x2d33c1;_0x11e90c=_0x3492bf[_0x425207(0x26c)],_0x35fcbe[_0x425207(0x2f1)][_0x425207(0x2fa)](_0x425207(0x2a7))[_0x425207(0x301)](_0x5ca13b),this[_0x425207(0x242)][_0x425207(0x189)](_0x425207(0x1f7));}),this[_0x2d33c1(0x2ba)][_0x2d33c1(0x272)](_0x11e90c,{'interactionId':_0x60f927['id'],'replyId':_0x1891be['id'],'indexes':_0x1a4bea[_0x2d33c1(0x2c5)]()}),this[_0x2d33c1(0x24a)](_0x1891be);}[_0x4f0be9(0x1df)](_0x124b86){const _0x3b9a09=_0x4f0be9,_0x844662=_0x11e5e4(this[_0x3b9a09(0x200)]),_0x204ed5=this[_0x3b9a09(0x200)][_0x3b9a09(0x2f1)][_0x3b9a09(0x2fa)](_0x46b224),{reply:_0x32c70e,interaction:_0x399bbf}=this[_0x3b9a09(0x259)](_0x124b86[_0x3b9a09(0x188)]),_0xcca067=this[_0x3b9a09(0x232)](_0x124b86[_0x3b9a09(0x188)],_0x124b86[_0x3b9a09(0x2f4)]),_0x51fde3=void 0x0!==_0x124b86[_0x3b9a09(0x2f4)]?[_0x32c70e[_0x3b9a09(0x308)][_0x124b86[_0x3b9a09(0x2f4)]]]:_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x19a)](_0x337ac6=>_0x3b9a09(0x1a3)==_0x337ac6[_0x3b9a09(0x2bd)]),_0x475971=_0x51fde3[_0x3b9a09(0x1a8)](_0x429a77=>_0x32c70e[_0x3b9a09(0x308)][_0x3b9a09(0x2c6)](_0x429a77));if(!_0xcca067||_0x3b9a09(0x241)==_0xcca067[_0x3b9a09(0x1f8)][_0x3b9a09(0x264)][_0x3b9a09(0x1a0)])return void _0x475971[_0x3b9a09(0x1ea)](_0x525347=>_0x32c70e[_0x3b9a09(0x303)](_0x525347,_0x3b9a09(0x219)));_0x475971[_0x3b9a09(0x1ea)](_0x2bbbff=>_0x32c70e[_0x3b9a09(0x303)](_0x2bbbff,_0x3b9a09(0x1dc)));const _0x4364cc=_0x397cbf({'editor':_0x844662,'reply':_0x32c70e,'interaction':_0x399bbf,'groups':_0x51fde3,'transform':!0x0,'documentCompare':_0x204ed5,'documentCompareOptions':{'anchor':_0x3b9a09(0x1ac),'markDeletions':!0x1}});let _0x1871d1;_0xcca067&&this[_0x3b9a09(0x1e7)](_0xcca067[_0x3b9a09(0x1f8)]),_0x844662[_0x3b9a09(0x1ce)][_0x3b9a09(0x227)](_0x54283d=>{const _0x5cc779=_0x3b9a09;_0x1871d1=_0x54283d[_0x5cc779(0x26c)];for(const _0x3c6b60 of _0x4364cc)_0x3c6b60[_0x5cc779(0x25b)]=_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x22d)][_0x5cc779(0x1bb)],_0x53f672(_0x844662,_0x3c6b60),_0x54283d[_0x5cc779(0x26c)][_0x5cc779(0x19b)](_0x3c6b60),_0x844662[_0x5cc779(0x1ce)][_0x5cc779(0x1bc)](_0x3c6b60);}),this[_0x3b9a09(0x2ba)][_0x3b9a09(0x272)](_0x1871d1,{'interactionId':_0x399bbf['id'],'replyId':_0x32c70e['id'],'indexes':_0x475971[_0x3b9a09(0x2c5)]()}),this[_0x3b9a09(0x24a)](_0x32c70e);}[_0x4f0be9(0x1fb)](_0x67cb0e){const _0xefbe1=_0x4f0be9,{reply:_0x426d22}=this[_0xefbe1(0x259)](_0x67cb0e[_0xefbe1(0x188)]);_0x426d22[_0xefbe1(0x303)](_0x67cb0e[_0xefbe1(0x2f4)],_0xefbe1(0x2fd));}[_0x4f0be9(0x234)](_0x44318e,_0x55fd96){const _0x3f9a53=_0x4f0be9;if(!this[_0x3f9a53(0x2fb)])return;const {reply:_0x1fbc4f}=this[_0x3f9a53(0x259)](_0x44318e),_0x50540a=_0x1fbc4f[_0x3f9a53(0x2ed)]({'showDiff':this[_0x3f9a53(0x19e)]});let _0x5f2cbc,_0x2cf065;if(void 0x0!==_0x55fd96?(_0x2cf065=_0x50540a[_0x3f9a53(0x2d3)](_0x318da8=>_0x318da8[_0x3f9a53(0x1e3)]==_0x55fd96),_0x5f2cbc=_0x2cf065?.[_0x3f9a53(0x1e3)]):(_0x2cf065=_0x50540a[0x0],_0x5f2cbc=_0x2cf065[_0x3f9a53(0x1e3)]),this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x188)]==_0x44318e&&this[_0x3f9a53(0x295)]?.[_0x3f9a53(0x2f4)]==_0x5f2cbc)return;const _0x4d2989=this[_0x3f9a53(0x1c2)](_0x44318e,_0x1fbc4f,_0x2cf065);if(!_0x4d2989)return void this[_0x3f9a53(0x2fb)][_0x3f9a53(0x1f9)]();this[_0x3f9a53(0x295)]={'replyId':_0x44318e,'partIndex':_0x5f2cbc},this[_0x3f9a53(0x1e7)](_0x4d2989,!0x0);const _0x350dd6=this[_0x3f9a53(0x2a3)](_0x44318e,_0x5f2cbc,_0x3f9a53(0x26a));this[_0x3f9a53(0x2fb)][_0x3f9a53(0x2bf)]({'part':_0x2cf065,'renderingStrategy':_0x3f9a53(0x23f)}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x20d)]({'index':_0x5f2cbc,'title':_0x2f5f52(this[_0x3f9a53(0x200)][_0x3f9a53(0x23e)],_0x3f9a53(0x22a),(_0x5f2cbc+0x1)[_0x3f9a53(0x269)]()),'showRotator':null!==_0x350dd6,'ranges':[_0x4d2989],'areActionsDisabled':_0x1fbc4f[_0x3f9a53(0x218)]}),this[_0x3f9a53(0x2fb)][_0x3f9a53(0x21c)](_0x3f9a53(0x1a3)),this[_0x3f9a53(0x261)][_0x3f9a53(0x19d)](_0x44318e,_0x5f2cbc),this[_0x3f9a53(0x261)][_0x3f9a53(0x1be)]({'id':_0x44318e,'index':_0x5f2cbc,'isActive':!0x0});}[_0x4f0be9(0x2a3)](_0x272151,_0xe8a4b9,_0x5cb888){const _0x11f156=_0x4f0be9,{reply:_0x1a5d0f}=this[_0x11f156(0x259)](_0x272151),_0x1bd9eb=_0x1a5d0f[_0x11f156(0x2ed)]({'showDiff':this[_0x11f156(0x19e)]});if(0x1==_0x1bd9eb[_0x11f156(0x276)])return null;const _0x1d12d4=_0x1bd9eb[_0x11f156(0x1d6)](_0x3d1f65=>_0x3d1f65[_0x11f156(0x1e3)]==_0xe8a4b9),_0x1001d8=_0x11f156(0x26a)==_0x5cb888?0x1:-0x1;let _0x3fca33=_0x1bd9eb['at']((_0x1d12d4+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x12f498=_0x1bd9eb[_0x3fca33];for(;!this[_0x11f156(0x1c2)](_0x272151,_0x1a5d0f,_0x12f498);){if(_0x3fca33=_0x1bd9eb['at']((_0x3fca33+_0x1001d8)%_0x1bd9eb[_0x11f156(0x276)])[_0x11f156(0x1e3)],_0x3fca33===_0x1d12d4)return null;_0x12f498=_0x1bd9eb[_0x3fca33];}return _0x3fca33;}[_0x4f0be9(0x1c2)](_0x19ce71,_0x3384e3,_0x5ea34b){const _0x1b239d=_0x4f0be9,_0x4148c9=_0x3384e3[_0x1b239d(0x308)];if(!_0x5ea34b[_0x1b239d(0x296)])return null;const _0x48a618=_0x4148c9[_0x1b239d(0x2d3)](_0x5662b1=>_0x5662b1[_0x1b239d(0x1e3)]==_0x5ea34b[_0x1b239d(0x1e3)]);if(_0x1b239d(0x1a3)!==_0x48a618?.[_0x1b239d(0x2bd)])return null;const _0x26e12e=this[_0x1b239d(0x232)](_0x19ce71,_0x5ea34b[_0x1b239d(0x1e3)]);if(!_0x26e12e)return null;const {range:_0x3e3213,currentIndex:_0x3304a2}=_0x26e12e;return _0x1b239d(0x241)==_0x3e3213[_0x1b239d(0x264)][_0x1b239d(0x1a0)]?(_0x3384e3[_0x1b239d(0x303)](_0x3304a2,_0x1b239d(0x219)),null):_0x26e12e[_0x1b239d(0x1f8)];}[_0x4f0be9(0x232)](_0x46db94,_0x27c527){const _0x729657=_0x4f0be9,_0x2f3529=_0x11e5e4(this[_0x729657(0x200)]),{reply:_0x3ad0d6,interaction:_0x9fbd2f}=this[_0x729657(0x259)](_0x46db94),_0x3fed3c=_0x3ad0d6[_0x729657(0x308)][_0x729657(0x19a)](_0x463014=>_0x729657(0x1a3)==_0x463014[_0x729657(0x2bd)]),_0x292bc9=_0x3fed3c[_0x729657(0x1a8)](_0x42ff6e=>_0x3ad0d6[_0x729657(0x308)][_0x729657(0x2c6)](_0x42ff6e));void 0x0===_0x27c527&&(_0x27c527=_0x292bc9[0x0]);const _0x3127ea=_0x292bc9[_0x729657(0x2c6)](_0x27c527);if(-0x1==_0x3127ea)return null;const _0x4bb7bb=_0x3fed3c[_0x3127ea],_0x53a5f7=new _0x1e4dd4([]),_0x49c114=new _0x1e4dd4([]);for(const _0xbe6ac0 of _0x4bb7bb[_0x729657(0x2c7)])if(_0x729657(0x28e)!=_0xbe6ac0[_0x729657(0x248)]&&_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0xbe6ac0[_0x729657(0x25e)][_0x729657(0x299)](!0x0)),_0x729657(0x1e1)!=_0xbe6ac0[_0x729657(0x248)]){const _0x13b827=_0x2e91ba(_0x3e3fae=>_0x50768f(_0x3e3fae,_0x729657(0x1cb))==_0xbe6ac0['id'],_0x3ad0d6[_0x729657(0x2a8)],!0x0);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x13b827[_0x729657(0x299)](!0x0));}if(0x0==_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x276)]){if(_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)]){const _0x2bf097=_0x4a5ad3(_0x729657(0x1cb),_0x4bb7bb[_0x729657(0x2c7)][0x0][_0x729657(0x2f3)],_0x3ad0d6[_0x729657(0x2a8)]);_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x198)](_0x2bf097[_0x729657(0x299)](!0x0)),_0x2bf097[_0x729657(0x1db)]&&(_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x2bf097[_0x729657(0x1db)][_0x729657(0x299)](!0x0)));}else{const _0x17ba19=_0x3ad0d6[_0x729657(0x2a8)][_0x729657(0x1e4)][0x0];if(!_0x17ba19)return null;_0x53a5f7[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0)),_0x49c114[_0x729657(0x1e4)][_0x729657(0x256)](_0x17ba19[_0x729657(0x299)](!0x0));}}const _0xee3b32=_0x9fbd2f[_0x729657(0x1eb)](),_0x82e527=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0xee3b32[_0x729657(0x280)]),_0x67f69a=_0x29993e(_0x53a5f7),_0xe6979b=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x51e507=_0x2f3529[_0x729657(0x2c4)][_0x729657(0x1cd)](_0x67f69a),_0x30871e=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2c0)](_0xe6979b,0x0),_0x4fa3ff=_0x29993e(_0x49c114),_0x337680={'anchor':_0x30871e,'markDeletions':!0x1},_0x4f8e33=_0x2f3529[_0x729657(0x2f1)][_0x729657(0x2fa)](_0x46b224)[_0x729657(0x2d0)](_0x67f69a,_0x4fa3ff,_0x337680)[_0x729657(0x186)]();if(!_0x4f8e33[_0x729657(0x276)])return null;_0x2f3529[_0x729657(0x1ce)][_0x729657(0x227)](_0x554e17=>{const _0x2af65d=_0x729657;for(const _0x4c8bfa of _0x4f8e33)if(_0x2af65d(0x2cb)==_0x4c8bfa[_0x2af65d(0x248)]){const _0x5ec15a=_0x4c8bfa[_0x2af65d(0x1ae)],_0x585a0c=_0x4c8bfa[_0x2af65d(0x28f)],_0x283a45=new _0x2375cc(_0x5ec15a,_0x585a0c);_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x283a45),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x283a45);}else _0x2af65d(0x249)!==_0x4c8bfa[_0x2af65d(0x248)]&&(_0x4c8bfa[_0x2af65d(0x25b)]=null,_0x4c8bfa[_0x2af65d(0x1e8)]=!0x1,_0x554e17[_0x2af65d(0x26c)][_0x2af65d(0x19b)](_0x4c8bfa),_0x2f3529[_0x2af65d(0x1ce)][_0x2af65d(0x1bc)](_0x4c8bfa));});const _0x43e7d9=_0x1a2567(_0x2f3529,_0x4f8e33,_0xe6979b);_0x3bf8dd(_0x2f3529[_0x729657(0x1ce)],_0x43e7d9);const _0x1b93ee=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x573c69=_0x43e7d9[_0x729657(0x210)]()[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x2e3673=[];let _0x11ce41=_0xe6979b,_0x5a8468=_0x51e507;for(let _0xd5e4d0=0x0;_0xd5e4d0<_0x573c69[_0x729657(0x276)];_0xd5e4d0++){const _0x3817aa=_0x11ce41[_0x729657(0x25a)]-_0x573c69[_0xd5e4d0];_0x2e3673[_0xd5e4d0]=_0x5a8468[_0x729657(0x25a)]-_0x3817aa,_0x11ce41=_0x11ce41[_0x729657(0x1de)](_0x573c69[_0xd5e4d0]),_0x5a8468=_0x5a8468[_0x729657(0x1de)](_0x2e3673[_0xd5e4d0]);}const _0x1a869c=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x1b93ee),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x51e507,_0x2e3673)),_0x48dc63=_0x51e507[_0x729657(0x23c)](0x0)[_0x729657(0x22f)](_0x35e592),_0x2a7b04=Array[_0x729657(0x2fe)](_0x82e527[_0x729657(0x217)]())[_0x729657(0x2d3)](_0x583732=>_0x583732[_0x729657(0x22f)](_0x35e592)==_0x48dc63)[_0x729657(0x2e0)](),_0x2c215b=_0x1a869c[_0x729657(0x228)][_0x729657(0x2a4)][_0x729657(0x2c5)](),_0x34da4e=_0x1a869c[_0x729657(0x2fc)][_0x729657(0x2a4)][_0x729657(0x2c5)]();_0x2c215b[0x0]=_0x2a7b04[0x0]+_0x2c215b[0x0],_0x34da4e[0x0]=_0x2a7b04[0x0]+_0x34da4e[0x0];let _0xeb6525=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x212)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x2c215b),_0x2f3529[_0x729657(0x1ce)][_0x729657(0x2e3)](_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x187)](),_0x34da4e));const _0x5389d5=_0x2f3529[_0x729657(0x1ce)][_0x729657(0x22d)][_0x729657(0x244)][_0x729657(0x186)](_0xee3b32[_0x729657(0x1bb)]);for(const _0x141e68 of _0x5389d5)_0xeb6525=_0x548b39[_0x729657(0x2b3)](_0xeb6525[_0x729657(0x1c7)](_0x141e68));return{'range':_0xeb6525,'currentIndex':_0x27c527};}[_0x4f0be9(0x224)](_0x23e6b4){const _0x2162f8=_0x4f0be9;if(!_0x23e6b4[_0x2162f8(0x2f1)][_0x2162f8(0x1d3)](_0x2162f8(0x2be)))return;const _0x3dc433=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x274)),_0xbbc663=_0x23e6b4[_0x2162f8(0x247)][_0x2162f8(0x2fa)](_0x2162f8(0x18d));this[_0x2162f8(0x309)](_0x3dc433,_0x2162f8(0x1c0),(_0x4b73f5,_0x557cb4,_0x5dac4e)=>{const _0x1c9960=_0x2162f8,_0x39ce6d=this[_0x1c9960(0x2ba)][_0x1c9960(0x2fa)](_0x557cb4);if(!_0x39ce6d)return;const _0x333209=this[_0x1c9960(0x1fa)][_0x1c9960(0x28d)](_0x39ce6d[_0x1c9960(0x2ec)])[_0x1c9960(0x195)](_0x39ce6d[_0x1c9960(0x188)]);_0x39ce6d[_0x1c9960(0x225)][_0x1c9960(0x1ea)](_0x1a6179=>_0x333209[_0x1c9960(0x303)](_0x1a6179,_0x1c9960(0x1a3))),this[_0x1c9960(0x2ba)][_0x1c9960(0x290)](_0x557cb4),this[_0x1c9960(0x2ba)][_0x1c9960(0x272)](_0x5dac4e,_0x39ce6d);}),this[_0x2162f8(0x309)](_0xbbc663,_0x2162f8(0x1c0),(_0x38ef50,_0x50fcab,_0x527147)=>{const _0x21fbe9=_0x2162f8,_0x2d54f8=this[_0x21fbe9(0x2ba)][_0x21fbe9(0x2fa)](_0x50fcab);if(!_0x2d54f8)return;const _0x573615=this[_0x21fbe9(0x1fa)][_0x21fbe9(0x28d)](_0x2d54f8[_0x21fbe9(0x2ec)])[_0x21fbe9(0x195)](_0x2d54f8[_0x21fbe9(0x188)]);_0x2d54f8[_0x21fbe9(0x225)][_0x21fbe9(0x1ea)](_0x463a27=>_0x573615[_0x21fbe9(0x303)](_0x463a27,_0x21fbe9(0x1dc))),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x290)](_0x50fcab),this[_0x21fbe9(0x2ba)][_0x21fbe9(0x272)](_0x527147,_0x2d54f8);});}async[_0x4f0be9(0x19f)](_0x21ab6b){const _0x12730a=_0x4f0be9;this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x1d3)](_0x12730a(0x204))&&this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x12730a(0x204))[_0x12730a(0x1f9)](),(this[_0x12730a(0x200)][_0x12730a(0x2f1)][_0x12730a(0x2fa)](_0x10af84)[_0x12730a(0x1c3)][_0x12730a(0x2de)](_0x12730a(0x289)),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x23f)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x0),await this[_0x12730a(0x1ca)]());try{await this[_0x12730a(0x21a)][_0x12730a(0x2cd)](_0x21ab6b)[_0x12730a(0x2ef)](),await this[_0x12730a(0x30b)](_0x21ab6b),this[_0x12730a(0x2d6)]('\x20'),await this[_0x12730a(0x1fa)][_0x12730a(0x257)](_0x21ab6b,this[_0x12730a(0x242)][_0x12730a(0x253)]),this[_0x12730a(0x1fa)][_0x12730a(0x298)]()&&this[_0x12730a(0x29d)]();}catch(_0x46f64f){this[_0x12730a(0x261)][_0x12730a(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x12730a(0x200)][_0x12730a(0x23e)],_0x12730a(0x287)),'id':_0x21ab6b}),this[_0x12730a(0x1e5)](new _0x5e0114(_0x12730a(0x2ea),this,{'error':_0x46f64f}));}finally{this[_0x12730a(0x261)][_0x12730a(0x184)](),this[_0x12730a(0x261)][_0x12730a(0x216)](_0x12730a(0x2d1)),this[_0x12730a(0x261)][_0x12730a(0x233)](!0x1);}}async[_0x4f0be9(0x236)](){const _0x1bba74=_0x4f0be9,_0x5833f3=this[_0x1bba74(0x21a)][_0x1bba74(0x2f2)](this[_0x1bba74(0x29c)](),{'limit':0x1,'sortBy':_0x1bba74(0x2ee)});try{const _0x34c156=await _0x5833f3[_0x1bba74(0x2e9)]();return _0x34c156[_0x1bba74(0x276)]?_0x34c156[0x0]['id']:_0x1bba74(0x1e1);}catch(_0x55362a){return this[_0x1bba74(0x261)][_0x1bba74(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x1bba74(0x200)][_0x1bba74(0x23e)],_0x1bba74(0x287)),'id':_0x38ac82()}),this[_0x1bba74(0x1e5)](new _0x5e0114(_0x1bba74(0x258),this,{'error':_0x55362a})),this[_0x1bba74(0x261)][_0x1bba74(0x233)](!0x1),this[_0x1bba74(0x261)][_0x1bba74(0x222)](),null;}}[_0x4f0be9(0x1c8)](_0x447f67){const _0x6c7c9a=_0x4f0be9;this[_0x6c7c9a(0x1fa)]['id']===_0x447f67&&this[_0x6c7c9a(0x30b)]();}[_0x4f0be9(0x29d)](){const _0x1dc347=_0x4f0be9;this[_0x1dc347(0x1fa)]?.[_0x1dc347(0x193)](_0x2f5f52(this[_0x1dc347(0x200)][_0x1dc347(0x23e)],_0x1dc347(0x1e2)));}async[_0x4f0be9(0x260)](){const _0x67d122=_0x4f0be9,_0x449edc=this[_0x67d122(0x242)][_0x67d122(0x255)]();this[_0x67d122(0x1fa)]?.[_0x67d122(0x1ee)](_0x449edc),this[_0x67d122(0x29d)]();}[_0x4f0be9(0x25c)](){const _0x30721c=_0x4f0be9;this[_0x30721c(0x1fa)]?.[_0x30721c(0x223)]();}[_0x4f0be9(0x1a5)](){const _0x525e7f=_0x4f0be9;this[_0x525e7f(0x261)][_0x525e7f(0x1a5)]();}async[_0x4f0be9(0x2b6)](){const _0x3698dc=_0x4f0be9;await this[_0x3698dc(0x30b)]();}async[_0x4f0be9(0x20e)]({message:_0xe2e82c,attributes:_0x2c3eb2}){const _0x12c9da=_0x4f0be9;await this[_0x12c9da(0x285)]({'userMessage':_0xe2e82c,'attributes':_0x2c3eb2});}[_0x4f0be9(0x29c)](){const _0x3ee0c5=_0x4f0be9,_0x1b3a20=this[_0x3ee0c5(0x200)][_0x3ee0c5(0x26e)][_0x3ee0c5(0x2fa)](_0x3ee0c5(0x2f9));if(!_0x1b3a20)throw new _0x5e0114(_0x3ee0c5(0x2df),this);return _0x1b3a20;}async[_0x4f0be9(0x30b)](_0x36db2d){const _0x25a8c3=_0x4f0be9;try{this[_0x25a8c3(0x261)][_0x25a8c3(0x271)](),await this[_0x25a8c3(0x2b9)](_0x36db2d);}catch(_0x253944){this[_0x25a8c3(0x261)][_0x25a8c3(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x25a8c3(0x200)][_0x25a8c3(0x23e)],_0x25a8c3(0x2d9)),'id':_0x36db2d||_0x38ac82()}),console[_0x25a8c3(0x1d1)](_0x253944),this[_0x25a8c3(0x1fa)]=void 0x0,this[_0x25a8c3(0x261)][_0x25a8c3(0x222)]();}}async[_0x4f0be9(0x2b9)](_0x3f009e){const _0x5f12a6=_0x4f0be9;let _0x3d4bab;this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x1d3)](_0x5f12a6(0x204))&&this[_0x5f12a6(0x200)][_0x5f12a6(0x2f1)][_0x5f12a6(0x2fa)](_0x5f12a6(0x204))[_0x5f12a6(0x1f9)](),_0x3f009e||!this[_0x5f12a6(0x1fa)]?_0x3d4bab=this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x199)):this[_0x5f12a6(0x261)][_0x5f12a6(0x203)]&&(_0x3d4bab=this[_0x5f12a6(0x1fa)][_0x5f12a6(0x239)]['id']),await this[_0x5f12a6(0x1ca)]();const _0x47d4eb=this[_0x5f12a6(0x29c)](),_0x171eb7=_0x3f009e||_0x38ac82();this[_0x5f12a6(0x1fa)]=new _0x5b18f6({'connector':this[_0x5f12a6(0x21a)],'chatModels':this[_0x5f12a6(0x277)],'selectedModelId':_0x3d4bab,'conversationId':_0x171eb7,'group':_0x47d4eb,'getEditor':()=>_0x11e5e4(this[_0x5f12a6(0x200)]),'isFromHistory':!!_0x3f009e}),this[_0x5f12a6(0x1fa)][_0x5f12a6(0x215)](_0x5f12a6(0x2d8),_0x5f12a6(0x300))['to'](this),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x18f),(_0x475869,_0x3de9ad)=>{const _0x4bcf61=_0x5f12a6;this[_0x4bcf61(0x261)][_0x4bcf61(0x1b0)](_0x3de9ad),this[_0x4bcf61(0x261)][_0x4bcf61(0x265)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x30e)](),this[_0x4bcf61(0x261)][_0x4bcf61(0x1a4)](),_0x3f009e||(this[_0x4bcf61(0x261)][_0x4bcf61(0x1c5)](),this[_0x4bcf61(0x29d)]());}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x306),(_0x212c38,_0x57be37)=>{const _0x2ae88a=_0x5f12a6;this[_0x2ae88a(0x261)][_0x2ae88a(0x2c2)](_0x57be37[_0x2ae88a(0x28a)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2dc),(_0x3e742e,_0x3d27ee)=>{const _0x1c7faa=_0x5f12a6;this[_0x1c7faa(0x261)][_0x1c7faa(0x30d)](_0x3d27ee);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x30a),()=>{const _0x5a038f=_0x5f12a6,_0x432884=this[_0x5a038f(0x261)][_0x5a038f(0x2ff)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x5a038f(0x261)][_0x5a038f(0x1f5)](_0x432884);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1a6),()=>{const _0x34ddba=_0x5f12a6,_0x71c64d=this[_0x34ddba(0x261)][_0x34ddba(0x2ff)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x34ddba(0x261)][_0x34ddba(0x1f5)](_0x71c64d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2e8),(_0x3f0c8a,_0x115fd3)=>{const _0x4aa261=_0x5f12a6;this[_0x4aa261(0x261)][_0x4aa261(0x2b8)](_0x115fd3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x278),(_0x3fa27f,_0x3111cf)=>{const _0x1e40f8=_0x5f12a6;this[_0x1e40f8(0x261)][_0x1e40f8(0x2b8)](_0x3111cf,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x300),()=>{const _0x511e48=_0x5f12a6;this[_0x511e48(0x261)][_0x511e48(0x279)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x25f),async()=>{const _0x4a0b15=_0x5f12a6;await this[_0x4a0b15(0x261)][_0x4a0b15(0x2f0)]();}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x27e),(_0x162e21,_0x19aa9e)=>{const _0x572636=_0x5f12a6;this[_0x572636(0x261)][_0x572636(0x1b2)](_0x19aa9e['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1ec),(_0x1c84c3,_0x1031ee,_0xcec95d)=>{const _0x209a50=_0x5f12a6;this[_0x209a50(0x2d6)](_0x1031ee,_0xcec95d);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d2),(_0x3ea448,_0x113fdc)=>{const _0x304e90=_0x5f12a6;_0x304e90(0x20c)===_0x113fdc[_0x304e90(0x248)]?this[_0x304e90(0x261)][_0x304e90(0x2b5)](_0x113fdc):this[_0x304e90(0x261)][_0x304e90(0x302)](_0x113fdc);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x23b),async(_0x16a9e0,_0x263106)=>{const _0x22fe8d=_0x5f12a6;await this[_0x22fe8d(0x1d0)]({'reply':_0x263106});}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x263),(_0x4d3a2d,{reply:_0x2a138c,index:_0x2aa296,state:_0x13e419})=>{const _0x37b562=_0x5f12a6;this[_0x37b562(0x261)][_0x37b562(0x1ef)]({'id':_0x2a138c['id'],'index':_0x2aa296,'state':_0x13e419}),this[_0x37b562(0x295)]?.[_0x37b562(0x188)][_0x37b562(0x251)](_0x2a138c['id'])&&this[_0x37b562(0x295)]?.[_0x37b562(0x2f4)]==_0x2aa296&&this[_0x37b562(0x2fb)]?.[_0x37b562(0x21c)](_0x13e419);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x305),(_0x30449e,_0x43775d)=>{const _0x5112ef=_0x5f12a6;if(this[_0x5112ef(0x261)][_0x5112ef(0x282)](_0x43775d[_0x5112ef(0x194)],_0x43775d[_0x5112ef(0x2a9)]),_0x5112ef(0x20f)===_0x43775d[_0x5112ef(0x194)][_0x5112ef(0x248)]){const _0x2fdd85=[..._0x11e5e4(this[_0x5112ef(0x200)])[_0x5112ef(0x1ce)][_0x5112ef(0x22d)][_0x5112ef(0x20f)][_0x5112ef(0x20a)]()];this[_0x5112ef(0x242)][_0x5112ef(0x1c6)](_0x2fdd85,_0x5112ef(0x2a6)+this[_0x5112ef(0x1fa)]?.['id']);}}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d9),(_0x1229c5,_0x4725e0)=>{const _0x4d33dd=_0x5f12a6;this[_0x4d33dd(0x261)][_0x4d33dd(0x286)](_0x4725e0[_0x4d33dd(0x202)]),_0x4d33dd(0x23d)==_0x4725e0[_0x4d33dd(0x202)]&&this[_0x4d33dd(0x25c)](),_0x4d33dd(0x20f)===_0x4725e0[_0x4d33dd(0x248)]&&this[_0x4d33dd(0x242)][_0x4d33dd(0x189)](_0x4d33dd(0x2a6)+this[_0x4d33dd(0x1fa)]?.['id']);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2c8),(_0x4d9f34,_0x1767d5)=>{const _0x2e30a8=_0x5f12a6;this[_0x2e30a8(0x261)][_0x2e30a8(0x211)](_0x1767d5[_0x2e30a8(0x194)][_0x2e30a8(0x202)],_0x1767d5[_0x2e30a8(0x2a9)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x29f),(_0x3d1f51,_0x510979)=>{const _0x33bdae=_0x5f12a6;this[_0x33bdae(0x261)][_0x33bdae(0x1a7)](_0x510979[_0x33bdae(0x2e2)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2eb),(_0x33f6f6,_0x2b3784)=>{const _0x1800f9=_0x5f12a6;this[_0x1800f9(0x261)][_0x1800f9(0x2e7)](_0x2b3784[_0x1800f9(0x27c)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2af),(_0x10c766,_0x2592bf)=>{const _0x26ae42=_0x5f12a6;this[_0x26ae42(0x261)][_0x26ae42(0x237)](_0x2592bf[_0x26ae42(0x1bf)],_0x2592bf[_0x26ae42(0x2b2)],_0x2592bf[_0x26ae42(0x18b)],_0x2592bf[_0x26ae42(0x213)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2d5),(_0xcea0db,_0x13bcdc)=>{const _0x3154e6=_0x5f12a6;this[_0x3154e6(0x261)][_0x3154e6(0x304)](_0x13bcdc[_0x3154e6(0x1bf)],_0x13bcdc[_0x3154e6(0x1ab)],_0x13bcdc[_0x3154e6(0x1e6)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1aa),(_0x655e6e,_0x1ad267)=>{const _0x1fa9e4=_0x5f12a6;this[_0x1fa9e4(0x261)][_0x1fa9e4(0x1fe)](_0x1ad267);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x2a0),async(_0x473e4e,_0x19c028)=>{const _0x48363b=_0x5f12a6,_0xb87f14=(await this[_0x48363b(0x277)][_0x48363b(0x1b3)]())[_0x48363b(0x2d3)](_0x594565=>_0x594565['id']===_0x19c028[_0x48363b(0x239)]?.['id'])||null;this[_0x48363b(0x261)][_0x48363b(0x2d2)](_0xb87f14,_0x19c028[_0x48363b(0x235)]);}),this[_0x5f12a6(0x1fa)]['on'](_0x5f12a6(0x1d1),(_0x278c15,{error:_0x1da92d,interactionId:_0x87539f,fileName:_0x4065a2,url:_0x17c622,sourceId:_0x2d1c56,sourceLabel:_0x405878})=>{const _0x19fc54=_0x5f12a6,_0x16a317=_0x87539f?_0x87539f+':'+_0x38ac82():_0x38ac82();_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x246))?this[_0x19fc54(0x261)][_0x19fc54(0x284)]({'staticMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b6)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x258))||_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x226))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d9)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x252))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1b8),_0x4065a2),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x292))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x190),_0x17c622),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x27b))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x288)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2db))?this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x214)),'id':_0x16a317}):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2b1))?(_0x2d1c56&&this[_0x19fc54(0x261)][_0x19fc54(0x192)](_0x2d1c56),this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x27d),_0x405878||_0x19fc54(0x2b2)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2e1))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ed)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1fc))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2a5)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x19c))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x2d7)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1dd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x197)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x1bd))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x1ba)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):_0x1da92d[_0x19fc54(0x1cc)][_0x19fc54(0x29a)](_0x19fc54(0x2ca))?(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x28c)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d)):(this[_0x19fc54(0x261)][_0x19fc54(0x1cf)]({'errorMessage':_0x2f5f52(this[_0x19fc54(0x200)][_0x19fc54(0x23e)],_0x19fc54(0x24e)),'id':_0x16a317}),this[_0x19fc54(0x1e5)](_0x1da92d));}),await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x2f6)](this[_0x5f12a6(0x200)][_0x5f12a6(0x26e)][_0x5f12a6(0x2fa)](_0x5f12a6(0x209))),_0x3f009e||await this[_0x5f12a6(0x1fa)][_0x5f12a6(0x228)]();}async[_0x4f0be9(0x285)]({userMessage:_0x2cf90e,attributes:_0x50631e}){const _0x26e29f=_0x4f0be9;if(!this[_0x26e29f(0x1fa)])throw new _0x5e0114(_0x26e29f(0x245));if(this[_0x26e29f(0x1fa)][_0x26e29f(0x24d)]()){const _0x270b99=await this[_0x26e29f(0x242)][_0x26e29f(0x2ad)]();await this[_0x26e29f(0x1fa)][_0x26e29f(0x2f5)](_0x270b99);}this[_0x26e29f(0x1fa)]['id']&&this[_0x26e29f(0x1fa)][_0x26e29f(0x18a)]&&await this[_0x26e29f(0x1fa)][_0x26e29f(0x273)]({'userMessage':_0x2cf90e,'attributes':_0x50631e});}[_0x4f0be9(0x27a)](){const _0x3d3898=_0x4f0be9;console[_0x3d3898(0x307)](_0x3d3898(0x2bc));}[_0x4f0be9(0x1f3)](_0x450ccb){const _0x3f52f5=_0x4f0be9;this[_0x3f52f5(0x261)][_0x3f52f5(0x1d7)](_0x450ccb);}[_0x4f0be9(0x1e5)](_0x3c63ca){const _0x126b90=_0x4f0be9;_0x2a8800(_0x3c63ca[_0x126b90(0x1cc)]);}[_0x4f0be9(0x294)](_0x47be9b){const _0x1a16db=_0x4f0be9;this[_0x1a16db(0x1fa)]?.[_0x1a16db(0x221)](_0x47be9b);}[_0x4f0be9(0x207)](){const _0xb138cd=_0x4f0be9;this[_0xb138cd(0x1fa)]?.[_0xb138cd(0x1c1)]();}[_0x4f0be9(0x1b1)](){const _0x24f747=_0x4f0be9;this[_0x24f747(0x1fa)]?.[_0x24f747(0x1da)]();}[_0x4f0be9(0x259)](_0x45c4a6){const _0x38c12b=_0x4f0be9,[_0x15d91f,_0x40912c]=_0x45c4a6[_0x38c12b(0x267)](':'),_0x3e4c5c=this[_0x38c12b(0x1fa)][_0x38c12b(0x28d)](_0x15d91f),_0x3cc1e9=_0x3e4c5c[_0x38c12b(0x195)](_0x40912c);return{'interaction':_0x3e4c5c,'reply':_0x3cc1e9};}[_0x4f0be9(0x1e7)](_0x44a5f1,_0x1eea04=!0x1){const _0x5af378=_0x4f0be9,_0x4cccee=_0x11e5e4(this[_0x5af378(0x200)]),_0x3489b4={'target':_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x1c3)][_0x5af378(0x1f0)][_0x5af378(0x1e0)](_0x4cccee[_0x5af378(0x1b5)][_0x5af378(0x24f)][_0x5af378(0x29b)](_0x44a5f1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1eea04};_0x1eea04&&(_0x3489b4[_0x5af378(0x1f4)]=!0x0),_0x17172b(_0x3489b4);}[_0x4f0be9(0x2d6)](_0x3ae5c0,_0x4700b0=!0x1){const _0x12bc94=_0x4f0be9;this[_0x12bc94(0x261)][_0x12bc94(0x1ec)](_0x3ae5c0||_0x2f5f52(this[_0x12bc94(0x200)][_0x12bc94(0x23e)],_0x12bc94(0x254)),_0x4700b0);}async[_0x4f0be9(0x1d0)]({reply:_0x43c559,renderingStrategy:_0x193f9b}){const _0x9c2640=_0x4f0be9,{id:_0xd306ce,interactionId:_0x5ccbb0,isDone:_0x1d8631,type:_0x579b59,parsedContent:_0x3e1f6a}=_0x43c559,_0x51e2e1=_0x5ccbb0+':'+_0xd306ce;if(_0x9c2640(0x2cf)===_0x579b59){const _0x4b87ab=_0x43c559[_0x9c2640(0x2ed)]({'showDiff':this[_0x9c2640(0x261)][_0x9c2640(0x2c1)]});await this[_0x9c2640(0x261)][_0x9c2640(0x24c)]({'id':_0x51e2e1,'parts':_0x4b87ab,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});}else _0x9c2640(0x20c)===_0x579b59&&await this[_0x9c2640(0x261)][_0x9c2640(0x1d4)]({'id':_0x51e2e1,'parsedContent':_0x3e1f6a,'renderingStrategy':_0x193f9b,'isDone':_0x1d8631});_0x1d8631&&_0x43c559[_0x9c2640(0x275)][_0x9c2640(0x276)]>0x0&&this[_0x9c2640(0x261)][_0x9c2640(0x250)](_0x51e2e1,_0x43c559[_0x9c2640(0x275)]);}async[_0x4f0be9(0x1ca)](){const _0x385dac=_0x4f0be9,_0x48ca48=this[_0x385dac(0x1fa)]?.[_0x385dac(0x22b)];_0x48ca48&&(_0x48ca48[_0x385dac(0x2f8)](),this[_0x385dac(0x261)][_0x385dac(0x1a2)](_0x48ca48));}async[_0x4f0be9(0x2b0)](){const _0x513977=_0x4f0be9,_0x27f873=this[_0x513977(0x1fa)]?.[_0x513977(0x22b)];if(_0x27f873){for await(const _0xc9823b of _0x27f873[_0x513977(0x1f2)])await this[_0x513977(0x1d0)]({'reply':_0xc9823b,'renderingStrategy':_0x513977(0x23f)});}}[_0x4f0be9(0x24a)](_0x291d10){const _0xe197df=_0x4f0be9,_0x503710={'positiveCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x19a)](_0x26685e=>_0xe197df(0x1dc)===_0x26685e[_0xe197df(0x2bd)])[_0xe197df(0x276)],'totalCount':_0x291d10[_0xe197df(0x308)][_0xe197df(0x276)],'modificationId':_0x291d10['id']},_0x27f851=this[_0xe197df(0x1fa)][_0xe197df(0x28d)](_0x291d10[_0xe197df(0x2ec)])[_0xe197df(0x2ce)];_0x27f851&&this[_0xe197df(0x21a)][_0xe197df(0x268)](this[_0xe197df(0x1fa)]['id'],_0x27f851,_0x503710);}[_0x4f0be9(0x2e4)](_0x10c9fe){const _0x25e647=_0x4f0be9;let _0x2be67e=null,_0x20f572=null;this['on'](_0x25e647(0x2d8),(_0x58004f,_0x34ce84,_0x32ffee)=>{const _0x501302=_0x25e647;_0x32ffee['id']!==_0x2be67e&&(_0x2be67e=_0x32ffee['id'],_0x20f572=this[_0x501302(0x230)](_0x32ffee)),_0x10c9fe(_0x34ce84,_0x20f572);});}[_0x4f0be9(0x230)](_0x498d75){const _0x20684f=_0x4f0be9,_0x2d8b1d=this[_0x20684f(0x261)],_0x431ded=()=>{const _0xa7138e=_0x20684f;_0x498d75[_0xa7138e(0x1c9)](),_0x498d75[_0xa7138e(0x1b7)](),_0x2d8b1d[_0xa7138e(0x1ff)]();},_0x692d74=()=>{const _0x2e0d29=_0x20684f;_0x498d75[_0x2e0d29(0x2a2)]&&(_0x498d75[_0x2e0d29(0x2a2)][_0x2e0d29(0x21e)](),_0x498d75[_0x2e0d29(0x2a2)]=void 0x0);};return{'insertTextReply':(_0x331a81,_0x2a40a2)=>{const _0x184093=_0x20684f;_0x692d74(),_0x431ded();const _0x1d7aed=_0x498d75[_0x184093(0x2a2)]=_0x498d75[_0x184093(0x1f6)]({'type':_0x184093(0x20c),'interactionId':_0x498d75['id'],'content':_0x331a81,'id':_0x2a40a2||_0x38ac82()});return _0x692d74(),_0x1d7aed;},'insertCustomElement':async(_0x5a6ef1,_0x2229ce)=>(_0x692d74(),_0x431ded(),_0x2d8b1d[_0x20684f(0x18c)](_0x5a6ef1,_0x2229ce||_0x38ac82())),'setLoadingMessage':_0x134154=>{const _0x1721bc=_0x20684f;_0x2d8b1d[_0x1721bc(0x1f5)](_0x134154);},'clearLoadingMessage':()=>{const _0x1f4ae2=_0x20684f;_0x2d8b1d[_0x1f4ae2(0x1ff)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27346e=_0x42fa;(function(_0x5deaaa,_0x4bd1f9){const _0x281b80=_0x42fa,_0x9b407e=_0x5deaaa();while(!![]){try{const _0x1f3b3f=-parseInt(_0x281b80(0x14a))/0x1+parseInt(_0x281b80(0x105))/0x2+parseInt(_0x281b80(0xb9))/0x3*(-parseInt(_0x281b80(0xfd))/0x4)+-parseInt(_0x281b80(0x10e))/0x5+parseInt(_0x281b80(0xb2))/0x6+-parseInt(_0x281b80(0xea))/0x7+parseInt(_0x281b80(0x147))/0x8;if(_0x1f3b3f===_0x4bd1f9)break;else _0x9b407e['push'](_0x9b407e['shift']());}catch(_0x411a6a){_0x9b407e['push'](_0x9b407e['shift']());}}}(_0x1b51,0xc032c));function _0x42fa(_0x3e1df3,_0x3c0443){const _0x1b51e3=_0x1b51();return _0x42fa=function(_0x42fa5a,_0x16609c){_0x42fa5a=_0x42fa5a-0xb2;let _0x3a3920=_0x1b51e3[_0x42fa5a];return _0x3a3920;},_0x42fa(_0x3e1df3,_0x3c0443);}import{ContextPlugin as _0xb484d8}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1c9dbc}from'ckeditor5/src/utils.js';import{AIChatView as _0x3bfe09}from'./ui/aichatview.js';import{AITabs as _0x4bfb6f}from'../aitabs/aitabs.js';import{getTranslation as _0x472d9f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2d93b1}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x471c57}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x65460}from'./utils/promisequeue.js';function _0x1b51(){const _0x2a4e7e=['_view','setFeedItemAIReplySuggestionPartActive','1074657EDooEQ','fire','isReasoningEnabled','removeContextItem','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','from','attributes','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','commands','setWebSearch','enableControls','hasItem','user-message','values','interactionId','has','isModelAvailable','queueEmptyPromise','showResizeButton','disableControls','setReasoning','setIsMaximized','isTrackChangesOn','setFeedItemRenderingStrategy','addFeedItemAIReply','AI_CHAT_WELCOME_MESSAGE','setConversationTitle','hasFeedItem','updateSuggestionItem','isMaximized','areActionsDisabled','updateFeedItemAIReplyContent','setSuggestionPartActive','contextItems','capabilities','view','isWebSearchEnabled','setPromptInputValue','bind','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','pluginName','clearConversationContextUI','delegate','prepareLoadingMessage','isOfficialPlugin','removeItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemCustomElement','698362hwefbn','find','insertSuggestion','ai.availableReplyActions','addFeedItemError','populateSourceResourceBalloon','ai-reply','createConversation','disableModelSelector','AITabs','setConversationContext','stopAutoScroll','toggleSuggestionDisplayMode','trackChanges','clearPendingContextUI','custom-element','scrollFeedToSuggestion','renderingStrategy','chatFeed','4NDuykP','ai.models.showModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.chat.welcomeMessage','toggleLoadingSkeleton','availableModels','updateSuggestionPartState','getItemIds','540370UUVcEU','displayedPrompt','setModelList','resetMessageInput','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','_titleAnimationInterval','value','label','filter','3652160pxYeHC','resetConversationTitle','isDone','showDiff','addFeedInteractionHeader','addTab','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','updateResourceState','_interactionPromiseResolver','destroy','get','setIsUploadInProgress','abort','isLoading','locale','clear','clearLoadingMessage','length','updateWebSources','last','startInteraction','updateFeedInteractionHeader','isVisible','removeFeedItem','updateFeedItemAIReplySources','markFeedItemAsDone','remove','chatControls','isPending','setModel','conversationCreated','setLoadingMessage','startAutoScroll','ai.chat.context.searchInputVisibleFrom','isBusy','closeSourceResourceBalloon','addContextItem','options','finishInteraction','isPremiumPlugin','feedItemRenderingStrategy','setInputPlaceholder','then','ai-suggestion-reply','scrollToSuggestion','addItem','_getInputPlaceholder','addFeedItemUserMessage','setContextItemLoading','error-message','interaction-header','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','enqueue','enableModelSelector','addFeedItemStaticMessage','set','16242936xtjbyF','setAddContextOptions','TrackChanges','1159193MjuBSI','_promiseQueue','</p>','config','AI_CHAT_HEADING','markItemAsDone','<p>','requires','focusPromptInput','streaming','AIChatUI','addFeedItemAISuggestion','userMessage','conversation-start','isDisabled','plugins','chat','_isTrackChangesCommandValueBound','stopInteraction','forEach','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','removeFeedInteraction','children','setSelectedModel','5005812FUbSNi','context','updateCapabilities','updateReplyItem','startsWith'];_0x1b51=function(){return _0x2a4e7e;};return _0x1b51();}import{AI_CHAT_UI_EVENT_NAMES as _0x442c9a}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x9db47a}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x12ca3d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xb484d8{static get[_0x27346e(0x151)](){return[_0x4bfb6f];}[_0x27346e(0xb7)];static get[_0x27346e(0xe2)](){const _0x4efc9d=_0x27346e;return _0x4efc9d(0x154);}static get[_0x27346e(0xe6)](){return!0x0;}static get[_0x27346e(0x136)](){return!0x0;}[_0x27346e(0x137)]=_0x27346e(0x153);[_0x27346e(0x111)]=!0x0;[_0x27346e(0x14b)];[_0x27346e(0x117)];[_0x27346e(0x10a)]=void 0x0;[_0x27346e(0x15b)]=!0x1;constructor(_0x41c0f9){const _0x4323e4=_0x27346e;super(_0x41c0f9);const _0x50a075=this[_0x4323e4(0xb3)][_0x4323e4(0x159)][_0x4323e4(0x119)](_0x4323e4(0xf3));this[_0x4323e4(0x146)](_0x4323e4(0x131),!0x1),this[_0x4323e4(0x14b)]=new _0x65460(),this[_0x4323e4(0xb7)]=new _0x3bfe09(this[_0x4323e4(0xb3)][_0x4323e4(0x11d)],{'showResizeButton':_0x50a075[_0x4323e4(0xcc)],'contextResourcesSearchInputVisibleFrom':this[_0x4323e4(0xb3)][_0x4323e4(0x14d)][_0x4323e4(0x119)](_0x4323e4(0x130))}),this[_0x4323e4(0xb7)][_0x4323e4(0xe4)](..._0x442c9a)['to'](this),this[_0x4323e4(0xb7)]['on'](_0x4323e4(0xf6),(_0x422f0d,{showDiff:_0x3f4dff})=>{const _0x3ac9dd=_0x4323e4;this[_0x3ac9dd(0x111)]=_0x3f4dff;}),_0x50a075[_0x4323e4(0xdd)][_0x4323e4(0x113)]({'id':_0x4323e4(0x15a),'buttonLabel':_0x472d9f(this[_0x4323e4(0xb3)][_0x4323e4(0x11d)],_0x4323e4(0x14e)),'buttonIcon':_0x2d93b1,'order':0x0,'content':this[_0x4323e4(0xb7)]}),this[_0x4323e4(0xb7)][_0x4323e4(0x12a)][_0x4323e4(0xe0)](_0x4323e4(0x11c))['to'](this,_0x4323e4(0x131),_0x22a332=>_0x22a332),this[_0x4323e4(0xb7)][_0x4323e4(0xfc)][_0x4323e4(0xe0)](_0x4323e4(0x12b))['to'](this,_0x4323e4(0x131),_0x1a045b=>_0x1a045b),this[_0x4323e4(0xb7)][_0x4323e4(0x12a)][_0x4323e4(0x138)](this[_0x4323e4(0x13d)]()),this[_0x4323e4(0xe0)](_0x4323e4(0xca))['to'](this[_0x4323e4(0xb7)][_0x4323e4(0x12a)],_0x4323e4(0xca));}[_0x27346e(0x118)](){const _0x3b37f4=_0x27346e;super[_0x3b37f4(0x118)](),this[_0x3b37f4(0x10a)]&&clearInterval(this[_0x3b37f4(0x10a)]);}[_0x27346e(0xf1)](_0x670c58){const _0x1a8f20=_0x27346e,_0x36d37a=this[_0x1a8f20(0xb3)][_0x1a8f20(0x14d)][_0x1a8f20(0x119)](_0x1a8f20(0x100))??_0x472d9f(this[_0x1a8f20(0xb3)][_0x1a8f20(0x11d)],_0x1a8f20(0xd3));this[_0x1a8f20(0xb7)][_0x1a8f20(0xfc)][_0x1a8f20(0x11e)](),this[_0x1a8f20(0xb7)][_0x1a8f20(0x12a)][_0x1a8f20(0x144)](),this[_0x1a8f20(0xb7)][_0x1a8f20(0x12a)][_0x1a8f20(0x107)](_0x670c58[_0x1a8f20(0x102)],!this[_0x1a8f20(0xb3)][_0x1a8f20(0x14d)][_0x1a8f20(0x119)](_0x1a8f20(0xfe))),this[_0x1a8f20(0x145)]({'id':_0x1a8f20(0x157),'staticMessage':_0x36d37a}),this[_0x1a8f20(0xba)](_0x1a8f20(0x12d));}[_0x27346e(0x145)]({id:_0x51ab49,staticMessage:_0x410bfe}){const _0x378ca2=_0x27346e;this[_0x378ca2(0xb7)][_0x378ca2(0xfc)][_0x378ca2(0x13c)](_0x378ca2(0xf0),{'id':_0x51ab49,'initialContent':_0x378ca2(0x150)+_0x410bfe+_0x378ca2(0x14c)});}[_0x27346e(0x13e)](_0x22e0b6){const _0x30b8f2=_0x27346e,_0x42d61c=_0x22e0b6[_0x30b8f2(0xbf)]?.[_0x30b8f2(0x106)]||_0x22e0b6[_0x30b8f2(0x156)];this[_0x30b8f2(0xb7)][_0x30b8f2(0xfc)][_0x30b8f2(0x13c)](_0x30b8f2(0xc6),{'contextItems':Array[_0x30b8f2(0xbe)](_0x22e0b6[_0x30b8f2(0xdb)][_0x30b8f2(0xc7)]()),'initialContent':_0x30b8f2(0x150)+_0x42d61c+_0x30b8f2(0x14c),'id':_0x22e0b6['id']});}[_0x27346e(0xee)]({errorMessage:_0x2173d9,id:_0x5b1b21}){const _0x235b46=_0x27346e;this[_0x235b46(0xb7)][_0x235b46(0xfc)][_0x235b46(0x13c)](_0x235b46(0x140),{'initialContent':_0x235b46(0x150)+_0x2173d9+_0x235b46(0x14c),'id':_0x5b1b21});}[_0x27346e(0xd2)](_0x425515){const _0x21ab02=_0x27346e;return this[_0x21ab02(0x14b)][_0x21ab02(0x143)](async()=>{const _0x370b84=_0x21ab02;this[_0x370b84(0xb7)][_0x370b84(0xfc)][_0x370b84(0x13c)](_0x370b84(0xf0),{'id':_0x425515[_0x370b84(0xc8)]+':'+_0x425515['id']}),this[_0x370b84(0x11f)]();});}async[_0x27346e(0x155)](_0x2b764a){const _0x58038c=_0x27346e,_0x2c9c0b=_0x9db47a(this[_0x58038c(0xb3)]);let _0x4c1cf4=_0x2c9c0b[_0x58038c(0x14d)][_0x58038c(0x119)](_0x58038c(0xed))||[..._0x12ca3d];if(_0x2c9c0b[_0x58038c(0x159)][_0x58038c(0xc9)](_0x58038c(0x149))){if(!this[_0x58038c(0x15b)]){this[_0x58038c(0x15b)]=!0x0;const _0x2df11b=_0x2c9c0b[_0x58038c(0xc2)][_0x58038c(0x119)](_0x58038c(0xf7));this[_0x58038c(0xb7)][_0x58038c(0xfc)][_0x58038c(0xe0)](_0x58038c(0xd0))['to'](_0x2df11b,_0x58038c(0x10b));}}else _0x4c1cf4=_0x4c1cf4[_0x58038c(0x10d)](_0x2e1c4c=>_0x58038c(0xec)!=_0x2e1c4c);return this[_0x58038c(0x14b)][_0x58038c(0x143)](async()=>{const _0x537556=_0x58038c;this[_0x537556(0xb7)][_0x537556(0xfc)][_0x537556(0x13c)](_0x537556(0x13a),{'id':_0x2b764a[_0x537556(0xc8)]+':'+_0x2b764a['id'],'areActionsDisabled':_0x2b764a[_0x537556(0xd8)],'showDiff':this[_0x537556(0x111)],'availableActions':_0x4c1cf4}),this[_0x537556(0x11f)]();});}[_0x27346e(0x112)](_0x4ac7f7,_0x17a344){const _0x4c31dc=_0x27346e,_0x125a92=this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x161)][_0x4c31dc(0x122)];if(_0x125a92 instanceof _0x471c57)return this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x161)][_0x4c31dc(0x129)](_0x125a92),void this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x13c)](_0x4c31dc(0x141),{'id':_0x4ac7f7['id'],'capabilities':{'isWebSearchEnabled':_0x125a92[_0x4c31dc(0xdc)][_0x4c31dc(0xde)]||_0x17a344[_0x4c31dc(0xde)],'isReasoningEnabled':_0x125a92[_0x4c31dc(0xdc)][_0x4c31dc(0xbb)]||_0x17a344[_0x4c31dc(0xbb)]}});this[_0x4c31dc(0xb7)][_0x4c31dc(0xfc)][_0x4c31dc(0x13c)](_0x4c31dc(0x141),{'id':_0x4ac7f7['id'],'capabilities':_0x17a344});}async[_0x27346e(0xe9)](_0x4c2e64,_0x435b92){const _0x271fae=_0x27346e;let _0x920628;return await this[_0x271fae(0x14b)][_0x271fae(0x143)](async()=>{const _0x2922c0=_0x271fae;_0x920628=this[_0x2922c0(0xb7)][_0x2922c0(0xfc)][_0x2922c0(0x13c)](_0x2922c0(0xf9),{'content':_0x4c2e64,'id':_0x435b92});}),_0x920628;}[_0x27346e(0x126)](_0xe03101){const _0x5538b2=_0x27346e;this[_0x5538b2(0xb7)][_0x5538b2(0xfc)][_0x5538b2(0xe7)](_0xe03101);}[_0x27346e(0xd5)](_0x50cec3){const _0x21ea3b=_0x27346e;return this[_0x21ea3b(0xb7)][_0x21ea3b(0xfc)][_0x21ea3b(0xc5)](_0x50cec3);}[_0x27346e(0x124)](_0x139b00){const _0x394af7=_0x27346e,_0x15f3c7=this[_0x394af7(0xb7)][_0x394af7(0xfc)][_0x394af7(0x161)][_0x394af7(0xeb)](_0x442f78=>_0x442f78[_0x394af7(0x134)]['id']==_0x139b00['id']&&_0x442f78 instanceof _0x471c57);_0x15f3c7&&_0x15f3c7[_0x394af7(0x146)](_0x394af7(0x125),_0x139b00[_0x394af7(0x125)]);}async[_0x27346e(0xd9)](_0x44e961){const _0x57db71=_0x27346e,_0x4d5597=_0x44e961[_0x57db71(0xfb)]||this[_0x57db71(0x137)];return this[_0x57db71(0x14b)][_0x57db71(0x143)](async _0x3e71d3=>{const _0x2286d2=_0x57db71;await this[_0x2286d2(0xb7)][_0x2286d2(0xfc)][_0x2286d2(0xb5)]({..._0x44e961,'abortSignal':_0x3e71d3,'renderingStrategy':_0x4d5597}),_0x44e961[_0x2286d2(0x110)]&&this[_0x2286d2(0x128)](_0x44e961['id']);});}[_0x27346e(0x127)](_0x1784c8,_0x50cd35){const _0x5c16c2=_0x27346e;this[_0x5c16c2(0xb7)][_0x5c16c2(0xfc)][_0x5c16c2(0x121)](_0x1784c8,_0x50cd35);}async[_0x27346e(0x15e)](_0x3469a6){const _0xcbe623=_0x27346e,_0x294f0a=_0x3469a6[_0xcbe623(0xfb)]||this[_0xcbe623(0x137)];return this[_0xcbe623(0x14b)][_0xcbe623(0x143)](async _0x29321a=>{const _0x2af865=_0xcbe623;await this[_0x2af865(0xb7)][_0x2af865(0xfc)][_0x2af865(0xd6)]({..._0x3469a6,'abortSignal':_0x29321a,'renderingStrategy':_0x294f0a}),_0x3469a6[_0x2af865(0x110)]&&this[_0x2af865(0x128)](_0x3469a6['id']);});}[_0x27346e(0x15f)](_0x106760){const _0x73561e=_0x27346e;this[_0x73561e(0xb7)][_0x73561e(0xfc)][_0x73561e(0x103)](_0x106760);}[_0x27346e(0xb8)](_0x555c95){const _0x451626=_0x27346e;this[_0x451626(0xb7)][_0x451626(0xfc)][_0x451626(0xda)](_0x555c95);}[_0x27346e(0x128)](_0x24dbd5){const _0x2a140e=_0x27346e;this[_0x2a140e(0xb7)][_0x2a140e(0xfc)][_0x2a140e(0x14f)](_0x24dbd5);}[_0x27346e(0x160)](_0xcc3f88){const _0x2eb25b=_0x27346e;this[_0x2eb25b(0xb7)][_0x2eb25b(0xfc)][_0x2eb25b(0x104)]()[_0x2eb25b(0x10d)](_0xdabc03=>_0xdabc03[_0x2eb25b(0xb6)](_0xcc3f88))[_0x2eb25b(0x15d)](_0x3adcb7=>this[_0x2eb25b(0xb7)][_0x2eb25b(0xfc)][_0x2eb25b(0xe7)](_0x3adcb7));}[_0x27346e(0x123)](){const _0x118a96=_0x27346e,_0x276347=this[_0x118a96(0xe5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x118a96(0x12e)](_0x276347),this[_0x118a96(0xb7)][_0x118a96(0x12a)][_0x118a96(0xf2)](!this[_0x118a96(0xb3)][_0x118a96(0x14d)][_0x118a96(0x119)](_0x118a96(0xfe))),this[_0x118a96(0x131)]=!0x0,this[_0x118a96(0xb7)][_0x118a96(0xfc)][_0x118a96(0x12f)]();}[_0x27346e(0x15c)](_0x59d970){const _0x4013bf=_0x27346e;this[_0x4013bf(0x14b)][_0x4013bf(0x11b)](),this[_0x4013bf(0xb7)][_0x4013bf(0xfc)][_0x4013bf(0x104)]()[_0x4013bf(0x10d)](_0x3913fa=>_0x3913fa[_0x4013bf(0xb6)](_0x59d970['id']))[_0x4013bf(0x15d)](_0xd4848f=>this[_0x4013bf(0x128)](_0xd4848f)),this[_0x4013bf(0x131)]=!0x1,this[_0x4013bf(0xb7)][_0x4013bf(0xfc)][_0x4013bf(0xf5)]();}async[_0x27346e(0x135)](){const _0x535e6f=_0x27346e;return this[_0x535e6f(0x14b)][_0x535e6f(0xcb)][_0x535e6f(0x139)](()=>{const _0x10948b=_0x535e6f;this[_0x10948b(0x131)]=!0x1,this[_0x10948b(0xb7)][_0x10948b(0xfc)][_0x10948b(0xf5)]();});}[_0x27346e(0x133)](_0x55652c,_0x289661){const _0x34c0f0=_0x27346e;this[_0x34c0f0(0xb7)][_0x34c0f0(0x12a)][_0x34c0f0(0x133)](_0x55652c,_0x289661);}[_0x27346e(0xbc)](_0x485c17){const _0x385277=_0x27346e;this[_0x385277(0xb7)][_0x385277(0x12a)][_0x385277(0xbc)](_0x485c17);}[_0x27346e(0x13f)](_0x515475,_0x9753cf){const _0x3dfad7=_0x27346e;this[_0x3dfad7(0xb7)][_0x3dfad7(0x12a)][_0x3dfad7(0x13f)](_0x515475,_0x9753cf);}[_0x27346e(0x11a)](_0x199d73){const _0x15c1a0=_0x27346e;this[_0x15c1a0(0xb7)][_0x15c1a0(0x12a)][_0x15c1a0(0x11a)](_0x199d73);}[_0x27346e(0xf4)](_0x128ac3){const _0x784994=_0x27346e;this[_0x784994(0xb7)][_0x784994(0x12a)][_0x784994(0xf4)](_0x128ac3);}[_0x27346e(0xf8)](){const _0x1aab4f=_0x27346e;this[_0x1aab4f(0xb7)][_0x1aab4f(0x12a)][_0x1aab4f(0xf8)]();}[_0x27346e(0xe3)](){const _0x25f5c7=_0x27346e;this[_0x25f5c7(0xb7)][_0x25f5c7(0x12a)][_0x25f5c7(0xe3)]();}[_0x27346e(0x116)](_0x28f7c0,_0x5e8256,_0x596a28){const _0x489ea8=_0x27346e;this[_0x489ea8(0xb7)][_0x489ea8(0x12a)][_0x489ea8(0x116)](_0x28f7c0,_0x5e8256,_0x596a28);}[_0x27346e(0x108)](){const _0x11ada1=_0x27346e;this[_0x11ada1(0xb7)][_0x11ada1(0x12a)][_0x11ada1(0x108)](),this[_0x11ada1(0xb7)][_0x11ada1(0x12a)][_0x11ada1(0x138)](this[_0x11ada1(0x13d)]());}[_0x27346e(0x148)](_0x33e74f){const _0x42d74f=_0x27346e;this[_0x42d74f(0xb7)][_0x42d74f(0x12a)][_0x42d74f(0x148)](_0x33e74f);}[_0x27346e(0xb4)](_0x5ab5c6){const _0x38b922=_0x27346e;this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0xc3)](_0x5ab5c6[_0x38b922(0xde)]),this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0xce)](_0x5ab5c6[_0x38b922(0xbb)]),this[_0x38b922(0xb7)][_0x38b922(0x12a)][_0x38b922(0x138)](this[_0x38b922(0x13d)](_0x5ab5c6));}[_0x27346e(0x162)](_0x517cf9,_0x45ea1a){const _0xb6afd1=_0x27346e;this[_0xb6afd1(0xb7)][_0xb6afd1(0x12a)][_0xb6afd1(0x12c)](_0x517cf9),_0x45ea1a&&this[_0xb6afd1(0xb7)][_0xb6afd1(0x12a)][_0xb6afd1(0xf2)](!0x1);}[_0x27346e(0xd1)](_0x44a8c7){const _0x271d20=_0x27346e;this[_0x271d20(0x137)]=_0x44a8c7;}[_0x27346e(0x101)](_0x58e01e){const _0x2ca91b=_0x27346e;this[_0x2ca91b(0xb7)][_0x2ca91b(0xfc)][_0x2ca91b(0x101)](_0x58e01e);}[_0x27346e(0x10f)](){const _0x5d73ef=_0x27346e;this[_0x5d73ef(0xd4)](_0x472d9f(this[_0x5d73ef(0xb3)][_0x5d73ef(0x11d)],_0x5d73ef(0x14e)));}[_0x27346e(0xd4)](_0x1afdfa,_0x2d9071=!0x1){const _0x151e76=_0x27346e;if(_0x2d9071&&!_0x1c9dbc()&&_0x1afdfa[_0x151e76(0x120)])return this[_0x151e76(0xb7)][_0x151e76(0xc0)][_0x151e76(0x10c)]='',void this[_0x151e76(0x115)](_0x1afdfa);this[_0x151e76(0xb7)][_0x151e76(0xc0)][_0x151e76(0x10c)]=_0x1afdfa;}[_0x27346e(0x12e)](_0x192862){const _0xc26a97=_0x27346e;this[_0xc26a97(0xb7)][_0xc26a97(0xfc)][_0xc26a97(0x12e)](_0x192862);}[_0x27346e(0x11f)](){const _0x29cc53=_0x27346e;this[_0x29cc53(0xb7)][_0x29cc53(0xfc)][_0x29cc53(0x12e)]('');}[_0x27346e(0x115)](_0x2af4ad){const _0x36975a=_0x27346e;let _0x3daa91=0x0;clearInterval(this[_0x36975a(0x10a)]),this[_0x36975a(0x10a)]=setInterval(()=>{const _0x39adcf=_0x36975a;this[_0x39adcf(0xb7)][_0x39adcf(0xc0)][_0x39adcf(0x10c)]=this[_0x39adcf(0xb7)][_0x39adcf(0xc0)][_0x39adcf(0x10c)]+_0x2af4ad[_0x3daa91],_0x3daa91++,_0x3daa91===_0x2af4ad[_0x39adcf(0x120)]&&clearInterval(this[_0x39adcf(0x10a)]);},0x1e);}[_0x27346e(0xcf)](_0x2d7ae5){const _0x211a13=_0x27346e;this[_0x211a13(0xb7)][_0x211a13(0xc0)][_0x211a13(0xd7)]=_0x2d7ae5;}[_0x27346e(0xe5)](_0x49e531){const _0x43e252=_0x27346e;return _0x49e531[_0x43e252(0xde)]&&_0x49e531[_0x43e252(0xbb)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0x109)):_0x49e531[_0x43e252(0xde)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xc1)):_0x49e531[_0x43e252(0xbb)]?_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xbd)):_0x472d9f(this[_0x43e252(0xb3)][_0x43e252(0x11d)],_0x43e252(0xe8));}[_0x27346e(0x13d)](_0x57c405){const _0x3b16e6=_0x27346e;return _0x57c405?_0x57c405[_0x3b16e6(0xde)]&&_0x57c405[_0x3b16e6(0xbb)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0xe1)):_0x57c405[_0x3b16e6(0xde)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0xff)):_0x57c405[_0x3b16e6(0xbb)]?_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x114)):_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x142)):_0x472d9f(this[_0x3b16e6(0xb3)][_0x3b16e6(0x11d)],_0x3b16e6(0x142));}[_0x27346e(0xef)](_0x3ad1cf,_0x52f7b3,_0xe7311,_0x53ab4f){const _0x41d842=_0x27346e;this[_0x41d842(0xb7)][_0x41d842(0xef)](_0x3ad1cf,_0x52f7b3,_0xe7311,_0x53ab4f);}[_0x27346e(0x132)](_0x3eba7c){const _0x595921=_0x27346e;this[_0x595921(0xb7)][_0x595921(0x132)](_0x3eba7c);}[_0x27346e(0xdf)](_0x380137){const _0x2dc93d=_0x27346e;this[_0x2dc93d(0xb7)][_0x2dc93d(0x12a)][_0x2dc93d(0xdf)](_0x380137);}[_0x27346e(0x152)](_0x398f90=!0x1){const _0x4f73cb=_0x27346e;this[_0x4f73cb(0xb7)][_0x4f73cb(0x12a)][_0x4f73cb(0x152)](_0x398f90);}[_0x27346e(0xfa)](_0x2b1c5b,_0x397899){const _0x169f11=_0x27346e;this[_0x169f11(0xb7)][_0x169f11(0xfc)][_0x169f11(0x13b)](_0x2b1c5b,_0x397899);}[_0x27346e(0x12f)](){const _0x8cf56b=_0x27346e;this[_0x8cf56b(0xb7)][_0x8cf56b(0xfc)][_0x8cf56b(0x12f)]();}[_0x27346e(0xcd)](){const _0x23e44d=_0x27346e;this[_0x23e44d(0xb7)][_0x23e44d(0x12a)][_0x23e44d(0x158)]=!0x0;}[_0x27346e(0xc4)](){const _0x5bbd7=_0x27346e;this[_0x5bbd7(0xb7)][_0x5bbd7(0x12a)][_0x5bbd7(0x158)]=!0x1;}}
23
+ const _0x2772de=_0x1557;(function(_0x2bfc4a,_0x1b63e9){const _0xa9096d=_0x1557,_0x4138bc=_0x2bfc4a();while(!![]){try{const _0x1a1c18=parseInt(_0xa9096d(0x1e3))/0x1+-parseInt(_0xa9096d(0x191))/0x2+-parseInt(_0xa9096d(0x1c6))/0x3*(-parseInt(_0xa9096d(0x148))/0x4)+-parseInt(_0xa9096d(0x189))/0x5*(-parseInt(_0xa9096d(0x1d2))/0x6)+parseInt(_0xa9096d(0x171))/0x7*(parseInt(_0xa9096d(0x175))/0x8)+parseInt(_0xa9096d(0x1a2))/0x9+-parseInt(_0xa9096d(0x1e5))/0xa;if(_0x1a1c18===_0x1b63e9)break;else _0x4138bc['push'](_0x4138bc['shift']());}catch(_0x3a11a1){_0x4138bc['push'](_0x4138bc['shift']());}}}(_0x24c1,0x35055));import{ContextPlugin as _0x39dd8e}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4bba6b}from'ckeditor5/src/utils.js';import{AIChatView as _0x264b1d}from'./ui/aichatview.js';import{AITabs as _0x2bc030}from'../aitabs/aitabs.js';import{getTranslation as _0x2b970a}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4729de}from'ckeditor5/src/icons.js';function _0x1557(_0x55ee47,_0x38305e){const _0x24c1e7=_0x24c1();return _0x1557=function(_0x15578c,_0x5d2675){_0x15578c=_0x15578c-0x138;let _0x5528a9=_0x24c1e7[_0x15578c];return _0x5528a9;},_0x1557(_0x55ee47,_0x38305e);}import{AIChatFeedInteractionHeaderView as _0x124dce}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x260953}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x57d422}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x24c1(){const _0x4a8970=['abort','AI_CHAT_HEADING','setLoadingMessage','insertSuggestion','startsWith','config','setFeedItemAIReplySuggestionPartActive','get','removeFeedInteraction','clearPendingContextUI','updateReplyItem','isDone','addFeedItemUserMessage','isOfficialPlugin','chatFeed','chatHeader','set','updateFeedItemAIReplyContent','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySources','feedItemRenderingStrategy','locale','clearLoadingMessage','scrollToSuggestion','disableModelSelector','stopAutoScroll','chatControls','isLoading','values','bind','39cXPSWQ','remove','updateFeedItemAIReplySuggestionPartState','_getInputPlaceholder','showDiff','enableControls','isDisabled','availableModels','filter','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','showResizeButton','ai-suggestion-reply','1471212pXtQwf','addFeedItemCustomElement','TrackChanges','prepareLoadingMessage','setInputPlaceholder','clear','hasFeedItem','chat','view','has','populateSourceResourceBalloon','destroy','</p>','updateResourceState','setModelList','removeItem','setIsUploadInProgress','184256lulzVd','updateCapabilities','5109690ZUwOkN','forEach','setWebSearch','queueEmptyPromise','ai.availableReplyActions','ai-reply','value','disableControls','then','updateFeedItemAIReplySuggestionContent','resetConversationTitle','conversation-start','scrollFeedToSuggestion','<p>','custom-element','addTab','isTrackChangesOn','AIChatUI','focusPromptInput','streaming','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','13916gIpHJY','label','enqueue','resetMessageInput','enableModelSelector','_view','setSelectedModel','updateSuggestionPartState','_interactionPromiseResolver','hasItem','addFeedItemError','delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','startAutoScroll','fire','AITabs','setReasoning','user-message','capabilities','getItemIds','setSuggestionPartActive','_isTrackChangesCommandValueBound','isPending','updateWebSources','ai.chat.welcomeMessage','updateFeedInteractionHeader','isModelAvailable','setConversationTitle','displayedPrompt','setContextItemLoading','removeContextItem','from','closeSourceResourceBalloon','markItemAsDone','context','removeFeedItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setFeedItemRenderingStrategy','contextItems','_animateConversationTitle','children','14NLHmdj','addContextItem','isReasoningEnabled','setConversationContext','454952HeoMkr','addFeedItemAIReply','last','AI_CHAT_WELCOME_MESSAGE','markFeedItemAsDone','addFeedInteractionHeader','interaction-header','renderingStrategy','commands','length','_titleAnimationInterval','isPremiumPlugin','isMaximized','areActionsDisabled','plugins','ai.models.showModelSelector','ai.chat.context.searchInputVisibleFrom','addFeedItemStaticMessage','updateSuggestionItem','trackChanges','5YcCFmM','setPromptInputValue','stopInteraction','setAddContextOptions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addItem','clearConversationContextUI','conversationCreated','298090EUbbxL','_promiseQueue','addFeedItemAISuggestion','finishInteraction','requires','interactionId','toggleSuggestionDisplayMode','startInteraction','setIsMaximized','toggleLoadingSkeleton','userMessage','pluginName','error-message','isBusy','options','attributes','setModel','2598876XDkHzi','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isWebSearchEnabled'];_0x24c1=function(){return _0x4a8970;};return _0x24c1();}import{getEditorFromContext as _0x4efd13}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x31f2ae}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x39dd8e{static get[_0x2772de(0x195)](){return[_0x2bc030];}[_0x2772de(0x14d)];static get[_0x2772de(0x19c)](){const _0x15722e=_0x2772de;return _0x15722e(0x143);}static get[_0x2772de(0x1b5)](){return!0x0;}static get[_0x2772de(0x180)](){return!0x0;}[_0x2772de(0x1bc)]=_0x2772de(0x145);[_0x2772de(0x1ca)]=!0x0;[_0x2772de(0x192)];[_0x2772de(0x150)];[_0x2772de(0x17f)]=void 0x0;[_0x2772de(0x15d)]=!0x1;constructor(_0x130e92){const _0xfc0b2=_0x2772de;super(_0x130e92);const _0x4e75fb=this[_0xfc0b2(0x16a)][_0xfc0b2(0x183)][_0xfc0b2(0x1af)](_0xfc0b2(0x157));this[_0xfc0b2(0x1b8)](_0xfc0b2(0x19e),!0x1),this[_0xfc0b2(0x192)]=new _0x260953(),this[_0xfc0b2(0x14d)]=new _0x264b1d(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],{'showResizeButton':_0x4e75fb[_0xfc0b2(0x1d0)],'contextResourcesSearchInputVisibleFrom':this[_0xfc0b2(0x16a)][_0xfc0b2(0x1ad)][_0xfc0b2(0x1af)](_0xfc0b2(0x185))}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x153)](..._0x57d422)['to'](this),this[_0xfc0b2(0x14d)]['on'](_0xfc0b2(0x197),(_0x3839b5,{showDiff:_0x3133a5})=>{const _0x281c24=_0xfc0b2;this[_0x281c24(0x1ca)]=_0x3133a5;}),_0x4e75fb[_0xfc0b2(0x1da)][_0xfc0b2(0x141)]({'id':_0xfc0b2(0x1d9),'buttonLabel':_0x2b970a(this[_0xfc0b2(0x16a)][_0xfc0b2(0x1bd)],_0xfc0b2(0x1a9)),'buttonIcon':_0x4729de,'order':0x0,'content':this[_0xfc0b2(0x14d)]}),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1c5)](_0xfc0b2(0x1c3))['to'](this,_0xfc0b2(0x19e),_0x1fafa8=>_0x1fafa8),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1b6)][_0xfc0b2(0x1c5)](_0xfc0b2(0x15e))['to'](this,_0xfc0b2(0x19e),_0x49bfad=>_0x49bfad),this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)][_0xfc0b2(0x1d6)](this[_0xfc0b2(0x1c9)]()),this[_0xfc0b2(0x1c5)](_0xfc0b2(0x162))['to'](this[_0xfc0b2(0x14d)][_0xfc0b2(0x1c2)],_0xfc0b2(0x162));}[_0x2772de(0x1dd)](){const _0x3ae3fc=_0x2772de;super[_0x3ae3fc(0x1dd)](),this[_0x3ae3fc(0x17f)]&&clearInterval(this[_0x3ae3fc(0x17f)]);}[_0x2772de(0x1a3)](_0xf3b8d3){const _0xd986aa=_0x2772de,_0x423cf9=this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x160))??_0x2b970a(this[_0xd986aa(0x16a)][_0xd986aa(0x1bd)],_0xd986aa(0x178));this[_0xd986aa(0x14d)][_0xd986aa(0x1b6)][_0xd986aa(0x1d7)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x14c)](),this[_0xd986aa(0x14d)][_0xd986aa(0x1c2)][_0xd986aa(0x1e0)](_0xf3b8d3[_0xd986aa(0x1cd)],!this[_0xd986aa(0x16a)][_0xd986aa(0x1ad)][_0xd986aa(0x1af)](_0xd986aa(0x184))),this[_0xd986aa(0x186)]({'id':_0xd986aa(0x13d),'staticMessage':_0x423cf9}),this[_0xd986aa(0x156)](_0xd986aa(0x190));}[_0x2772de(0x186)]({id:_0x121522,staticMessage:_0x54219c}){const _0x5c55a6=_0x2772de;this[_0x5c55a6(0x14d)][_0x5c55a6(0x1b6)][_0x5c55a6(0x18e)](_0x5c55a6(0x1ea),{'id':_0x121522,'initialContent':_0x5c55a6(0x13f)+_0x54219c+_0x5c55a6(0x1de)});}[_0x2772de(0x1b4)](_0x1c6bea){const _0x1e1d37=_0x2772de,_0x587881=_0x1c6bea[_0x1e1d37(0x1a0)]?.[_0x1e1d37(0x164)]||_0x1c6bea[_0x1e1d37(0x19b)];this[_0x1e1d37(0x14d)][_0x1e1d37(0x1b6)][_0x1e1d37(0x18e)](_0x1e1d37(0x159),{'contextItems':Array[_0x1e1d37(0x167)](_0x1c6bea[_0x1e1d37(0x16e)][_0x1e1d37(0x1c4)]()),'initialContent':_0x1e1d37(0x13f)+_0x587881+_0x1e1d37(0x1de),'id':_0x1c6bea['id']});}[_0x2772de(0x152)]({errorMessage:_0x229d5a,id:_0x3faaec}){const _0x322424=_0x2772de;this[_0x322424(0x14d)][_0x322424(0x1b6)][_0x322424(0x18e)](_0x322424(0x19d),{'initialContent':_0x322424(0x13f)+_0x229d5a+_0x322424(0x1de),'id':_0x3faaec});}[_0x2772de(0x176)](_0x245e6f){const _0xb0e060=_0x2772de;return this[_0xb0e060(0x192)][_0xb0e060(0x14a)](async()=>{const _0x1aa3b5=_0xb0e060;this[_0x1aa3b5(0x14d)][_0x1aa3b5(0x1b6)][_0x1aa3b5(0x18e)](_0x1aa3b5(0x1ea),{'id':_0x245e6f[_0x1aa3b5(0x196)]+':'+_0x245e6f['id']}),this[_0x1aa3b5(0x1be)]();});}async[_0x2772de(0x193)](_0x183781){const _0x2db476=_0x2772de,_0x37d53d=_0x4efd13(this[_0x2db476(0x16a)]);let _0x2114d4=_0x37d53d[_0x2db476(0x1ad)][_0x2db476(0x1af)](_0x2db476(0x1e9))||[..._0x31f2ae];if(_0x37d53d[_0x2db476(0x183)][_0x2db476(0x1db)](_0x2db476(0x1d4))){if(!this[_0x2db476(0x15d)]){this[_0x2db476(0x15d)]=!0x0;const _0x1d5923=_0x37d53d[_0x2db476(0x17d)][_0x2db476(0x1af)](_0x2db476(0x188));this[_0x2db476(0x14d)][_0x2db476(0x1b6)][_0x2db476(0x1c5)](_0x2db476(0x142))['to'](_0x1d5923,_0x2db476(0x138));}}else _0x2114d4=_0x2114d4[_0x2db476(0x1ce)](_0x24bedb=>_0x2db476(0x1ab)!=_0x24bedb);return this[_0x2db476(0x192)][_0x2db476(0x14a)](async()=>{const _0x3664a0=_0x2db476;this[_0x3664a0(0x14d)][_0x3664a0(0x1b6)][_0x3664a0(0x18e)](_0x3664a0(0x1d1),{'id':_0x183781[_0x3664a0(0x196)]+':'+_0x183781['id'],'areActionsDisabled':_0x183781[_0x3664a0(0x182)],'showDiff':this[_0x3664a0(0x1ca)],'availableActions':_0x2114d4}),this[_0x3664a0(0x1be)]();});}[_0x2772de(0x17a)](_0x49b17d,_0x35a04e){const _0x2d6920=_0x2772de,_0x1d7152=this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x177)];if(_0x1d7152 instanceof _0x124dce)return this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x170)][_0x2d6920(0x1c7)](_0x1d7152),void this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':{'isWebSearchEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x1a7)]||_0x35a04e[_0x2d6920(0x1a7)],'isReasoningEnabled':_0x1d7152[_0x2d6920(0x15a)][_0x2d6920(0x173)]||_0x35a04e[_0x2d6920(0x173)]}});this[_0x2d6920(0x14d)][_0x2d6920(0x1b6)][_0x2d6920(0x18e)](_0x2d6920(0x17b),{'id':_0x49b17d['id'],'capabilities':_0x35a04e});}async[_0x2772de(0x1d3)](_0x17bc9f,_0x4602ca){const _0x38937d=_0x2772de;let _0x81695;return await this[_0x38937d(0x192)][_0x38937d(0x14a)](async()=>{const _0xa829b3=_0x38937d;_0x81695=this[_0xa829b3(0x14d)][_0xa829b3(0x1b6)][_0xa829b3(0x18e)](_0xa829b3(0x140),{'content':_0x17bc9f,'id':_0x4602ca});}),_0x81695;}[_0x2772de(0x16b)](_0x2ce1d4){const _0x4e58c1=_0x2772de;this[_0x4e58c1(0x14d)][_0x4e58c1(0x1b6)][_0x4e58c1(0x1e1)](_0x2ce1d4);}[_0x2772de(0x1d8)](_0x4ca5ac){const _0x15aed9=_0x2772de;return this[_0x15aed9(0x14d)][_0x15aed9(0x1b6)][_0x15aed9(0x151)](_0x4ca5ac);}[_0x2772de(0x161)](_0x5b800c){const _0x3e3ff4=_0x2772de,_0x253169=this[_0x3e3ff4(0x14d)][_0x3e3ff4(0x1b6)][_0x3e3ff4(0x170)][_0x3e3ff4(0x147)](_0x3b0ab3=>_0x3b0ab3[_0x3e3ff4(0x19f)]['id']==_0x5b800c['id']&&_0x3b0ab3 instanceof _0x124dce);_0x253169&&_0x253169[_0x3e3ff4(0x1b8)](_0x3e3ff4(0x1a5),_0x5b800c[_0x3e3ff4(0x1a5)]);}async[_0x2772de(0x1b9)](_0xf5f0a7){const _0x6e5b03=_0x2772de,_0xe5736=_0xf5f0a7[_0x6e5b03(0x17c)]||this[_0x6e5b03(0x1bc)];return this[_0x6e5b03(0x192)][_0x6e5b03(0x14a)](async _0x1ea1fb=>{const _0x1ce7d6=_0x6e5b03;await this[_0x1ce7d6(0x14d)][_0x1ce7d6(0x1b6)][_0x1ce7d6(0x1b2)]({..._0xf5f0a7,'abortSignal':_0x1ea1fb,'renderingStrategy':_0xe5736}),_0xf5f0a7[_0x1ce7d6(0x1b3)]&&this[_0x1ce7d6(0x179)](_0xf5f0a7['id']);});}[_0x2772de(0x1bb)](_0x4e2d9c,_0x51f815){const _0x1585ba=_0x2772de;this[_0x1585ba(0x14d)][_0x1585ba(0x1b6)][_0x1585ba(0x15f)](_0x4e2d9c,_0x51f815);}async[_0x2772de(0x13b)](_0x31b67b){const _0x183d68=_0x2772de,_0x5201a9=_0x31b67b[_0x183d68(0x17c)]||this[_0x183d68(0x1bc)];return this[_0x183d68(0x192)][_0x183d68(0x14a)](async _0x2163b9=>{const _0x4473f3=_0x183d68;await this[_0x4473f3(0x14d)][_0x4473f3(0x1b6)][_0x4473f3(0x187)]({..._0x31b67b,'abortSignal':_0x2163b9,'renderingStrategy':_0x5201a9}),_0x31b67b[_0x4473f3(0x1b3)]&&this[_0x4473f3(0x179)](_0x31b67b['id']);});}[_0x2772de(0x1c8)](_0x26984e){const _0x119fd8=_0x2772de;this[_0x119fd8(0x14d)][_0x119fd8(0x1b6)][_0x119fd8(0x14f)](_0x26984e);}[_0x2772de(0x1ae)](_0x17b8d6){const _0x59bcb4=_0x2772de;this[_0x59bcb4(0x14d)][_0x59bcb4(0x1b6)][_0x59bcb4(0x15c)](_0x17b8d6);}[_0x2772de(0x179)](_0x105aa6){const _0x32be2a=_0x2772de;this[_0x32be2a(0x14d)][_0x32be2a(0x1b6)][_0x32be2a(0x169)](_0x105aa6);}[_0x2772de(0x1b0)](_0x3143d5){const _0x55927c=_0x2772de;this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x15b)]()[_0x55927c(0x1ce)](_0x3f106c=>_0x3f106c[_0x55927c(0x1ac)](_0x3143d5))[_0x55927c(0x1e6)](_0x320b1a=>this[_0x55927c(0x14d)][_0x55927c(0x1b6)][_0x55927c(0x1e1)](_0x320b1a));}[_0x2772de(0x198)](){const _0x2e5f70=_0x2772de,_0x26c187=this[_0x2e5f70(0x1d5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x2e5f70(0x1aa)](_0x26c187),this[_0x2e5f70(0x14d)][_0x2e5f70(0x1c2)][_0x2e5f70(0x1c0)](!this[_0x2e5f70(0x16a)][_0x2e5f70(0x1ad)][_0x2e5f70(0x1af)](_0x2e5f70(0x184))),this[_0x2e5f70(0x19e)]=!0x0,this[_0x2e5f70(0x14d)][_0x2e5f70(0x1b6)][_0x2e5f70(0x155)]();}[_0x2772de(0x18b)](_0x1f3113){const _0x4cdee6=_0x2772de;this[_0x4cdee6(0x192)][_0x4cdee6(0x1a8)](),this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x15b)]()[_0x4cdee6(0x1ce)](_0x24ca00=>_0x24ca00[_0x4cdee6(0x1ac)](_0x1f3113['id']))[_0x4cdee6(0x1e6)](_0x13f782=>this[_0x4cdee6(0x179)](_0x13f782)),this[_0x4cdee6(0x19e)]=!0x1,this[_0x4cdee6(0x14d)][_0x4cdee6(0x1b6)][_0x4cdee6(0x1c1)]();}async[_0x2772de(0x194)](){const _0x26d474=_0x2772de;return this[_0x26d474(0x192)][_0x26d474(0x1e8)][_0x26d474(0x13a)](()=>{const _0xecb4a3=_0x26d474;this[_0xecb4a3(0x19e)]=!0x1,this[_0xecb4a3(0x14d)][_0xecb4a3(0x1b6)][_0xecb4a3(0x1c1)]();});}[_0x2772de(0x172)](_0x489b99,_0x5b440e){const _0x2107be=_0x2772de;this[_0x2107be(0x14d)][_0x2107be(0x1c2)][_0x2107be(0x172)](_0x489b99,_0x5b440e);}[_0x2772de(0x166)](_0x45c89b){const _0x476808=_0x2772de;this[_0x476808(0x14d)][_0x476808(0x1c2)][_0x476808(0x166)](_0x45c89b);}[_0x2772de(0x165)](_0x29268c,_0x3e4861){const _0x4ee976=_0x2772de;this[_0x4ee976(0x14d)][_0x4ee976(0x1c2)][_0x4ee976(0x165)](_0x29268c,_0x3e4861);}[_0x2772de(0x1e2)](_0x357805){const _0x3081a8=_0x2772de;this[_0x3081a8(0x14d)][_0x3081a8(0x1c2)][_0x3081a8(0x1e2)](_0x357805);}[_0x2772de(0x174)](_0x163a9b){const _0x4b5fea=_0x2772de;this[_0x4b5fea(0x14d)][_0x4b5fea(0x1c2)][_0x4b5fea(0x174)](_0x163a9b);}[_0x2772de(0x1b1)](){const _0x176d82=_0x2772de;this[_0x176d82(0x14d)][_0x176d82(0x1c2)][_0x176d82(0x1b1)]();}[_0x2772de(0x18f)](){const _0x3467d6=_0x2772de;this[_0x3467d6(0x14d)][_0x3467d6(0x1c2)][_0x3467d6(0x18f)]();}[_0x2772de(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3){const _0x5209f1=_0x2772de;this[_0x5209f1(0x14d)][_0x5209f1(0x1c2)][_0x5209f1(0x1df)](_0x41ab77,_0x5cfefe,_0x3d74f3);}[_0x2772de(0x14b)](){const _0x3017c0=_0x2772de;this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x14b)](),this[_0x3017c0(0x14d)][_0x3017c0(0x1c2)][_0x3017c0(0x1d6)](this[_0x3017c0(0x1c9)]());}[_0x2772de(0x18c)](_0x4317a9){const _0x54b205=_0x2772de;this[_0x54b205(0x14d)][_0x54b205(0x1c2)][_0x54b205(0x18c)](_0x4317a9);}[_0x2772de(0x1e4)](_0x101a34){const _0x53e812=_0x2772de;this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1e7)](_0x101a34[_0x53e812(0x1a7)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x158)](_0x101a34[_0x53e812(0x173)]),this[_0x53e812(0x14d)][_0x53e812(0x1c2)][_0x53e812(0x1d6)](this[_0x53e812(0x1c9)](_0x101a34));}[_0x2772de(0x14e)](_0xb0d7cc,_0x1f5341){const _0x38cb33=_0x2772de;this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1a1)](_0xb0d7cc),_0x1f5341&&this[_0x38cb33(0x14d)][_0x38cb33(0x1c2)][_0x38cb33(0x1c0)](!0x1);}[_0x2772de(0x16d)](_0x42efae){const _0x103641=_0x2772de;this[_0x103641(0x1bc)]=_0x42efae;}[_0x2772de(0x19a)](_0xc5ecc8){const _0x2024a6=_0x2772de;this[_0x2024a6(0x14d)][_0x2024a6(0x1b6)][_0x2024a6(0x19a)](_0xc5ecc8);}[_0x2772de(0x13c)](){const _0xdfc235=_0x2772de;this[_0xdfc235(0x163)](_0x2b970a(this[_0xdfc235(0x16a)][_0xdfc235(0x1bd)],_0xdfc235(0x1a9)));}[_0x2772de(0x163)](_0x83270f,_0x2a2e50=!0x1){const _0x5a737c=_0x2772de;if(_0x2a2e50&&!_0x4bba6b()&&_0x83270f[_0x5a737c(0x17e)])return this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]='',void this[_0x5a737c(0x16f)](_0x83270f);this[_0x5a737c(0x14d)][_0x5a737c(0x1b7)][_0x5a737c(0x149)]=_0x83270f;}[_0x2772de(0x1aa)](_0xf4c8f9){const _0x9a5432=_0x2772de;this[_0x9a5432(0x14d)][_0x9a5432(0x1b6)][_0x9a5432(0x1aa)](_0xf4c8f9);}[_0x2772de(0x1be)](){const _0x103099=_0x2772de;this[_0x103099(0x14d)][_0x103099(0x1b6)][_0x103099(0x1aa)]('');}[_0x2772de(0x16f)](_0xbcf25c){const _0x3e426e=_0x2772de;let _0x5e5384=0x0;clearInterval(this[_0x3e426e(0x17f)]),this[_0x3e426e(0x17f)]=setInterval(()=>{const _0x515118=_0x3e426e;this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]=this[_0x515118(0x14d)][_0x515118(0x1b7)][_0x515118(0x149)]+_0xbcf25c[_0x5e5384],_0x5e5384++,_0x5e5384===_0xbcf25c[_0x515118(0x17e)]&&clearInterval(this[_0x515118(0x17f)]);},0x1e);}[_0x2772de(0x199)](_0x469577){const _0x43f93e=_0x2772de;this[_0x43f93e(0x14d)][_0x43f93e(0x1b7)][_0x43f93e(0x181)]=_0x469577;}[_0x2772de(0x1d5)](_0x335d19){const _0x12c571=_0x2772de;return _0x335d19[_0x12c571(0x1a7)]&&_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x146)):_0x335d19[_0x12c571(0x1a7)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x16c)):_0x335d19[_0x12c571(0x173)]?_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x154)):_0x2b970a(this[_0x12c571(0x16a)][_0x12c571(0x1bd)],_0x12c571(0x1cf));}[_0x2772de(0x1c9)](_0x4008ef){const _0x1fc52a=_0x2772de;return _0x4008ef?_0x4008ef[_0x1fc52a(0x1a7)]&&_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1ba)):_0x4008ef[_0x1fc52a(0x1a7)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x18d)):_0x4008ef[_0x1fc52a(0x173)]?_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a6)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4)):_0x2b970a(this[_0x1fc52a(0x16a)][_0x1fc52a(0x1bd)],_0x1fc52a(0x1a4));}[_0x2772de(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c){const _0x231680=_0x2772de;this[_0x231680(0x14d)][_0x231680(0x1dc)](_0x1397f8,_0x596815,_0x43aeb3,_0x32ba0c);}[_0x2772de(0x168)](_0x230392){const _0xc3e4ad=_0x2772de;this[_0xc3e4ad(0x14d)][_0xc3e4ad(0x168)](_0x230392);}[_0x2772de(0x18a)](_0x4cd6ee){const _0x139ee5=_0x2772de;this[_0x139ee5(0x14d)][_0x139ee5(0x1c2)][_0x139ee5(0x18a)](_0x4cd6ee);}[_0x2772de(0x144)](_0x31cf5e=!0x1){const _0x10470c=_0x2772de;this[_0x10470c(0x14d)][_0x10470c(0x1c2)][_0x10470c(0x144)](_0x31cf5e);}[_0x2772de(0x13e)](_0x17cda0,_0x3e06ba){const _0x3ebf9f=_0x2772de;this[_0x3ebf9f(0x14d)][_0x3ebf9f(0x1b6)][_0x3ebf9f(0x1bf)](_0x17cda0,_0x3e06ba);}[_0x2772de(0x155)](){const _0x35d955=_0x2772de;this[_0x35d955(0x14d)][_0x35d955(0x1b6)][_0x35d955(0x155)]();}[_0x2772de(0x139)](){const _0x5d0ff4=_0x2772de;this[_0x5d0ff4(0x14d)][_0x5d0ff4(0x1c2)][_0x5d0ff4(0x1cc)]=!0x0;}[_0x2772de(0x1cb)](){const _0x2c774f=_0x2772de;this[_0x2c774f(0x14d)][_0x2c774f(0x1c2)][_0x2c774f(0x1cc)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x493bbe=_0xeaed;(function(_0x57dfe2,_0xf75e18){const _0x1adc85=_0xeaed,_0x5b0928=_0x57dfe2();while(!![]){try{const _0x1a5d5f=parseInt(_0x1adc85(0x222))/0x1+parseInt(_0x1adc85(0x21f))/0x2+-parseInt(_0x1adc85(0x21d))/0x3*(-parseInt(_0x1adc85(0x1f6))/0x4)+parseInt(_0x1adc85(0x23f))/0x5+-parseInt(_0x1adc85(0x219))/0x6+-parseInt(_0x1adc85(0x212))/0x7+-parseInt(_0x1adc85(0x23d))/0x8;if(_0x1a5d5f===_0xf75e18)break;else _0x5b0928['push'](_0x5b0928['shift']());}catch(_0x59f623){_0x5b0928['push'](_0x5b0928['shift']());}}}(_0x3078,0x1d6e5));import{CKEditorError as _0x2c910a,ObservableMixin as _0x12fd7c,uid as _0x1be409}from'ckeditor5/src/utils.js';function _0x3078(){const _0x393bb8=['files','filter','_finishContextItemLoading','object\x20with\x20content\x20and\x20type\x20properties','isCurrentDocumentInContext','_finishUploadOperation','_connector','type','_setAddContextOptionsDefaultState','uploadFile','find','contextSent','push','isHidden','ai-chat-url-upload-failed','abortController','init','attributes','fire','_convertTextResourceToFile','length','fetchDocument','addSelectionToContext','abort','startsWith','_mapContextItemToRequestData','text/html','updateCurrentDocument','804clCORq','_config','from','forEach','addToolItemToContext','FILE','ai-chat-resource-no-data','ai-chat-context-unsupported-type','TEXT','_addToConversationContextItem','loadSourceResources','addResourceToContext','_ownerId','isInContext','current-document','code','_updateResourceInContextState','getId','ai-chat-resource-load-failed','values','sources','isCurrentDocumentInConversation','URL','Current\x20document','isSelectionInContext','error','message','_addContextItem','310905akLysw','_createContextItemFromContent','data','document','substring','DOCUMENT','resourceStateChanged','321816NKDKQQ','object','_isResourceInContext','ai-chat-context-invalid-data','186sPuOnC','selection','439328qzrEmA','toolName','clearPendingContextItems','121193yRmYiP','removeFromContext','uploadUrl','uiId','_removeContextItem','version','getData','label','resources','start','mcpServerName','addContextOptionsChanged','resourceId','sourceResourcesLoaded','customItems','name','stack','text/plain','getSentContextItems','addUrlToContext','getPendingContextItems','_pendingContextItems','set','urls','contextItemRemoved','_toggleAddCurrentDocumentOptionVisibility','url','2914016qzUZZV','all','1147665XIvWvB','addCurrentDocumentToContext','text/markdown','HTML','TOOL','sessionId','ai-request-aborted','ai-chat-source-not-found','_findSourceIdsByResourceId','_ongoingUploads','getDocument','delete','ai-chat-document-upload-failed','file-','uploadProgressChanged','removeSelectionFromContext','map','content','get','hidden','SELECTION','_ongoingUploadOperations','_addContextOptionsState','end','contextItemAdded','_getCustomSourcesInitialState','_conversationContextItems','size','contextItemLoadingEnded','populateFromMessage','url-','isReadOnly','addFilesToContext','uploadDocument','MARKDOWN','mapContextItemsToRequestData','has','addToConversationContext','ai-chat-source-resources-load-failed','ai-chat-file-upload-failed','files-','_startUploadOperation','string','File','enabled','getResources'];_0x3078=function(){return _0x393bb8;};return _0x3078();}import{AIContextItemType as _0x35783e,AIContextTextResourceType as _0xde5a2}from'../../aicore/model/aicontext.js';import{escape as _0x5fc93e}from'es-toolkit/compat';import{errorsMap as _0x41d6a6}from'../../errorsmap.js';function _0xeaed(_0x1e6111,_0x11f2f8){const _0x3078bf=_0x3078();return _0xeaed=function(_0xeaedb2,_0x14e910){_0xeaedb2=_0xeaedb2-0x1c0;let _0x125e72=_0x3078bf[_0xeaedb2];return _0x125e72;},_0xeaed(_0x1e6111,_0x11f2f8);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x493bbe(0x1c4),_0x493bbe(0x23a),_0x493bbe(0x1c8),_0x493bbe(0x1e5),_0x493bbe(0x20f),_0x493bbe(0x22d),_0x493bbe(0x22f),_0x493bbe(0x218),_0x493bbe(0x24d)];export class AIChatContext extends _0x12fd7c(){[_0x493bbe(0x1e0)];[_0x493bbe(0x1f7)];[_0x493bbe(0x202)];constructor({connector:_0x268c28,config:_0x534c31,ownerId:_0x2aca78}){const _0xf46996=_0x493bbe;super(),this[_0xf46996(0x1e0)]=_0x268c28,this[_0xf46996(0x1f7)]=_0x534c31,this[_0xf46996(0x202)]=_0x2aca78;}[_0x493bbe(0x1ea)](){const _0x2adea9=_0x493bbe;this[_0x2adea9(0x237)]=new Map(),this[_0x2adea9(0x1c6)]=new Map(),this[_0x2adea9(0x248)]=new Map(),this[_0x2adea9(0x1c1)]=new Map(),this[_0x2adea9(0x1e2)]();}[_0x493bbe(0x236)](){const _0x79f4e6=_0x493bbe;return this[_0x79f4e6(0x237)];}async[_0x493bbe(0x1c9)](_0xd0380a){const _0x2320e5=_0x493bbe,_0x167b3c=await this[_0x2320e5(0x213)](_0xd0380a);return this[_0x2320e5(0x1ff)](_0x167b3c),_0x2320e5(0x204)===_0x167b3c[_0x2320e5(0x225)]&&this[_0x2320e5(0x23b)](),_0x167b3c;}async[_0x493bbe(0x213)](_0xdcd53){const _0x5406fa=_0x493bbe;if(_0xdcd53[_0x5406fa(0x1e1)]===_0x35783e[_0x5406fa(0x217)]){const _0xb29e6=await this[_0x5406fa(0x1e0)][_0x5406fa(0x1ef)](this[_0x5406fa(0x202)],_0xdcd53['id'])[_0x5406fa(0x249)]();return{'id':_0x5406fa(0x204),'uiId':_0x5406fa(0x204),'label':_0x5406fa(0x20d),'type':_0xdcd53[_0x5406fa(0x1e1)],'content':_0xb29e6[_0x5406fa(0x250)],'hidden':this[_0x5406fa(0x1c6)][_0x5406fa(0x1d0)](_0x5406fa(0x204)),'version':_0xb29e6[_0x5406fa(0x1eb)]?.[_0x5406fa(0x227)],'sessionId':_0xb29e6[_0x5406fa(0x1eb)]?.[_0x5406fa(0x244)]};}if(_0xdcd53[_0x5406fa(0x1e1)]===_0x35783e[_0x5406fa(0x243)])return{'id':_0xdcd53['id'],'uiId':_0xdcd53['id'],'label':_0xdcd53[_0x5406fa(0x214)]?.[_0x5406fa(0x229)]||_0xdcd53['id'],'type':_0x35783e[_0x5406fa(0x243)],'mcpServerName':_0xdcd53[_0x5406fa(0x22c)],'toolName':_0xdcd53[_0x5406fa(0x220)],'data':_0xdcd53[_0x5406fa(0x214)]||{}};return{'id':_0xdcd53['id'],'uiId':_0xdcd53['id'],'label':_0xdcd53[_0x5406fa(0x1eb)]?.[_0x5406fa(0x229)]||_0xdcd53[_0x5406fa(0x231)]||_0xdcd53[_0x5406fa(0x23c)]||_0xdcd53['id'],'type':_0xdcd53[_0x5406fa(0x1e1)],..._0xdcd53?.[_0x5406fa(0x1eb)]?.[_0x5406fa(0x22e)]?{'resourceId':_0xdcd53[_0x5406fa(0x1eb)]?.[_0x5406fa(0x22e)]}:{}};}[_0x493bbe(0x234)](){const _0x21df9f=_0x493bbe;return new Map(this[_0x21df9f(0x1c6)]);}[_0x493bbe(0x223)](_0xa1d258){const _0xf5c6b5=_0x493bbe,_0x407af5=this[_0xf5c6b5(0x237)][_0xf5c6b5(0x251)](_0xa1d258);_0x407af5?.[_0xf5c6b5(0x1cb)]||this[_0xf5c6b5(0x226)](_0xa1d258);}[_0x493bbe(0x221)](){const _0x262f47=_0x493bbe;if(0x0===this[_0x262f47(0x237)][_0x262f47(0x1c7)])return;for(const _0x720e4 of this[_0x262f47(0x237)][_0x262f47(0x209)]())this[_0x262f47(0x226)](_0x720e4[_0x262f47(0x225)]);const _0x38febd=this[_0x262f47(0x1c6)][_0x262f47(0x251)](_0x262f47(0x204))||this[_0x262f47(0x237)][_0x262f47(0x251)](_0x262f47(0x204));_0x38febd&&this[_0x262f47(0x211)]({..._0x38febd,'isReadOnly':!0x0,'hidden':!0x0});}[_0x493bbe(0x1d1)](_0x46f6b7){const _0xadaa68=_0x493bbe;for(const _0x2a9cf1 of _0x46f6b7[_0xadaa68(0x209)]())this[_0xadaa68(0x1ff)](_0x2a9cf1);this[_0xadaa68(0x221)](),this[_0xadaa68(0x1ec)](_0xadaa68(0x1e5),{'contextItems':Array[_0xadaa68(0x1f8)](this[_0xadaa68(0x234)]()[_0xadaa68(0x209)]())});}[_0x493bbe(0x1de)](){const _0x18eee6=_0x493bbe;return this[_0x18eee6(0x237)][_0x18eee6(0x1d0)](_0x18eee6(0x204));}[_0x493bbe(0x20e)](){const _0x171904=_0x493bbe;return this[_0x171904(0x237)][_0x171904(0x1d0)](_0x171904(0x21e));}[_0x493bbe(0x20b)](){const _0x260a12=_0x493bbe;return this[_0x260a12(0x1c6)][_0x260a12(0x1d0)](_0x260a12(0x204));}static[_0x493bbe(0x1cf)](_0x374cd7){const _0x55c56a=_0x493bbe;return Array[_0x55c56a(0x1f8)](_0x374cd7[_0x55c56a(0x209)]())[_0x55c56a(0x24f)](_0xb0c833=>this[_0x55c56a(0x1f3)](_0xb0c833))[_0x55c56a(0x1db)](_0x1ad40e=>null!==_0x1ad40e);}async[_0x493bbe(0x1cc)](_0x258f55,_0x5a007c,_0x27997f=_0x35783e[_0x493bbe(0x1fb)]){const _0x6d42e9=_0x493bbe,_0x1e6e3c=_0x6d42e9(0x1d4)+_0x1be409();this[_0x6d42e9(0x1d5)](_0x1e6e3c);try{await Promise[_0x6d42e9(0x23e)](_0x258f55[_0x6d42e9(0x24f)](async _0x197177=>{const _0x4757a6=_0x6d42e9,_0x24d535=_0x4757a6(0x24c)+_0x1be409(),_0x130a50=_0x5fc93e(_0x197177[_0x4757a6(0x231)]);try{this[_0x4757a6(0x211)]({'type':_0x27997f,'label':_0x5a007c?.[_0x4757a6(0x229)]||_0x130a50,'uiId':_0x24d535,'resourceId':_0x5a007c?.[_0x4757a6(0x22e)]},!0x0);const _0x4b2fe6=this[_0x4757a6(0x1e0)][_0x4757a6(0x1e3)](this[_0x4757a6(0x202)],_0x197177,_0x5a007c);this[_0x4757a6(0x248)][_0x4757a6(0x238)](_0x24d535,_0x4b2fe6[_0x4757a6(0x1e9)]);const {id:_0x4a81ab}=await _0x4b2fe6[_0x4757a6(0x207)]();this[_0x4757a6(0x248)][_0x4757a6(0x24a)](_0x24d535),this[_0x4757a6(0x1dc)]({'type':_0x27997f,'id':_0x4a81ab,'label':_0x5a007c?.[_0x4757a6(0x229)]||_0x130a50,'uiId':_0x24d535,'resourceId':_0x5a007c?.[_0x4757a6(0x22e)]},!0x1);}catch(_0x171aa1){this[_0x4757a6(0x248)][_0x4757a6(0x24a)](_0x24d535);if(!(_0x171aa1 instanceof _0x2c910a&&_0x171aa1[_0x4757a6(0x210)][_0x4757a6(0x1f2)](_0x4757a6(0x245)))){const _0x45aae3=_0x41d6a6[_0x4757a6(0x251)](_0x171aa1[_0x4757a6(0x205)])||_0x4757a6(0x1d3),_0x566e87=new _0x2c910a(_0x45aae3,null,{'fileName':_0x130a50,..._0x171aa1});_0x566e87[_0x4757a6(0x232)]=_0x171aa1[_0x4757a6(0x232)],this[_0x4757a6(0x1ec)](_0x4757a6(0x20f),{'error':_0x566e87});}this[_0x4757a6(0x226)](_0x24d535);}}));}finally{this[_0x6d42e9(0x1df)](_0x1e6e3c);}}[_0x493bbe(0x240)](_0x41e677){const _0x18ae15=_0x493bbe;if(this[_0x18ae15(0x1de)]()||!this[_0x18ae15(0x1c2)][_0x18ae15(0x215)][_0x18ae15(0x1d8)])return;const _0x2bc0a2={'type':_0x35783e[_0x18ae15(0x217)],'uiId':_0x18ae15(0x204),'label':_0x41e677,'isReadOnly':this[_0x18ae15(0x1c6)][_0x18ae15(0x1d0)](_0x18ae15(0x204)),'hidden':this[_0x18ae15(0x1c6)][_0x18ae15(0x1d0)](_0x18ae15(0x204))};this[_0x18ae15(0x211)](_0x2bc0a2);}async[_0x493bbe(0x1f5)](_0x246b9b,_0x50834b,_0x30bcde,_0x5b80c9){const _0x516a43=_0x493bbe,_0x78d633=this[_0x516a43(0x237)][_0x516a43(0x251)](_0x516a43(0x204));if(_0x78d633&&_0x246b9b){_0x78d633[_0x516a43(0x21e)]=_0x5b80c9?_0x5b80c9[_0x516a43(0x24f)](_0x4419b5=>({'start':_0x4419b5[_0x516a43(0x22b)],'end':_0x4419b5[_0x516a43(0x1c3)]})):[];try{if(_0x78d633[_0x516a43(0x227)]===_0x50834b)return;const {id:_0x300319}=await this[_0x516a43(0x1e0)][_0x516a43(0x1cd)](this[_0x516a43(0x202)],_0x246b9b,{'version':_0x50834b,'sessionId':_0x30bcde})[_0x516a43(0x207)]();_0x78d633['id']=_0x300319,_0x78d633[_0x516a43(0x250)]=_0x246b9b,_0x78d633[_0x516a43(0x227)]=_0x50834b,_0x78d633[_0x516a43(0x244)]=_0x30bcde;}catch(_0x3b666e){const _0x180960=new _0x2c910a(_0x516a43(0x24b),null);_0x180960[_0x516a43(0x232)]=_0x3b666e[_0x516a43(0x232)],this[_0x516a43(0x1ec)](_0x516a43(0x20f),{'error':_0x180960});}}}[_0x493bbe(0x1f0)](_0x55c87d){const _0x31958c=_0x493bbe;this[_0x31958c(0x211)]({'type':_0x35783e[_0x31958c(0x1c0)],'label':_0x55c87d,'uiId':_0x31958c(0x21e),'content':_0x55c87d});}[_0x493bbe(0x24e)](){const _0x1ae772=_0x493bbe;this[_0x1ae772(0x226)](_0x1ae772(0x21e));}async[_0x493bbe(0x235)](_0x517851,_0x5e833b){const _0x425e3e=_0x493bbe,_0xec71b5=_0x425e3e(0x1ca)+_0x1be409();this[_0x425e3e(0x1d5)](_0xec71b5);const _0x2dac1a=_0x425e3e(0x1ca)+_0x1be409();try{this[_0x425e3e(0x211)]({'type':_0x35783e[_0x425e3e(0x20c)],'label':_0x5e833b?.[_0x425e3e(0x229)]||_0x517851,'uiId':_0x2dac1a,'resourceId':_0x5e833b?.[_0x425e3e(0x22e)]},!0x0);const _0xd490ca=this[_0x425e3e(0x1e0)][_0x425e3e(0x224)](this[_0x425e3e(0x202)],_0x517851,_0x5e833b);this[_0x425e3e(0x248)][_0x425e3e(0x238)](_0x2dac1a,_0xd490ca[_0x425e3e(0x1e9)]);const {id:_0x591db3}=await _0xd490ca[_0x425e3e(0x207)]();this[_0x425e3e(0x248)][_0x425e3e(0x24a)](_0x2dac1a),this[_0x425e3e(0x1dc)]({'type':_0x35783e[_0x425e3e(0x20c)],'id':_0x591db3,'label':_0x5e833b?.[_0x425e3e(0x229)]||_0x517851,'uiId':_0x2dac1a,'resourceId':_0x5e833b?.[_0x425e3e(0x22e)]},!0x1);}catch(_0x680ef1){this[_0x425e3e(0x248)][_0x425e3e(0x24a)](_0x2dac1a),(_0x680ef1[_0x425e3e(0x210)][_0x425e3e(0x1f2)](_0x425e3e(0x245))||this[_0x425e3e(0x1ec)](_0x425e3e(0x20f),{'error':new _0x2c910a(_0x425e3e(0x1e8),this,{'url':_0x517851,'originalError':_0x680ef1}),'url':_0x517851}),this[_0x425e3e(0x226)](_0x2dac1a));}finally{this[_0x425e3e(0x1df)](_0xec71b5);}}[_0x493bbe(0x1fa)](_0x56822d){const _0x465585=_0x493bbe;_0x56822d['id']=_0x56822d['id']??_0x1be409()[_0x465585(0x216)](0x0,0x15),this[_0x465585(0x237)][_0x465585(0x238)](_0x56822d[_0x465585(0x225)],_0x56822d),this[_0x465585(0x1ec)](_0x465585(0x1c4),{'contextItem':_0x56822d,'isLoading':!0x1});}async[_0x493bbe(0x200)](_0x185436,_0x4cd7f1,_0x3a9b12){const _0x5d543e=_0x493bbe,_0x3df85f=this[_0x5d543e(0x1c2)][_0x5d543e(0x20a)][_0x5d543e(0x1e4)](_0x20535a=>_0x20535a['id']===_0x185436);if(!_0x3df85f)return this[_0x5d543e(0x1ec)](_0x5d543e(0x20f),{'error':new _0x2c910a(_0x5d543e(0x246),this,{'sourceId':_0x185436}),'sourceId':_0x185436}),[];try{const _0x38a7ef=(await _0x3df85f[_0x5d543e(0x1d9)](_0x4cd7f1))[_0x5d543e(0x24f)](_0x2cf10f=>{const _0x1331fe=_0x5d543e,_0x2a0784=this[_0x1331fe(0x21b)](_0x2cf10f['id']);return{..._0x2cf10f,'isInContext':_0x2a0784};});return _0x3df85f[_0x5d543e(0x22a)]=_0x38a7ef,this[_0x5d543e(0x1ec)](_0x5d543e(0x22f),{'sourceId':_0x185436,'source':_0x3df85f,'resources':_0x38a7ef,'uid':_0x3a9b12}),_0x38a7ef;}catch(_0x24d4e1){return this[_0x5d543e(0x1ec)](_0x5d543e(0x20f),{'error':new _0x2c910a(_0x5d543e(0x1d2),this,{'sourceId':_0x185436,'originalError':_0x24d4e1}),'sourceId':_0x185436,'sourceLabel':_0x3df85f[_0x5d543e(0x229)]}),[];}}async[_0x493bbe(0x201)](_0x44ec27,_0x2038a7){const _0x591f8e=_0x493bbe;if(this[_0x591f8e(0x21b)](_0x2038a7['id']))return;let _0x54fadd=_0x2038a7[_0x591f8e(0x214)];if(!_0x54fadd&&_0x44ec27[_0x591f8e(0x228)])try{_0x54fadd=await _0x44ec27[_0x591f8e(0x228)](_0x2038a7['id']);}catch(_0x2c03b6){return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x208),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'originalError':_0x2c03b6}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}if(_0x54fadd)switch(_0x2038a7[_0x591f8e(0x1e1)]){case _0x35783e[_0x591f8e(0x20c)]:if(_0x591f8e(0x1d6)!=typeof _0x54fadd)return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1d6),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});await this[_0x591f8e(0x235)](_0x54fadd,{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']});break;case _0x35783e[_0x591f8e(0x1fb)]:if(!(_0x54fadd instanceof File))return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1d7),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});await this[_0x591f8e(0x1cc)]([_0x54fadd],{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']});break;case _0x35783e[_0x591f8e(0x1fe)]:if(_0x591f8e(0x21a)!=typeof _0x54fadd||!(_0x591f8e(0x250)in _0x54fadd)||!(_0x591f8e(0x1e1)in _0x54fadd))return void this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x21c),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'expectedType':_0x591f8e(0x1dd),'actualType':typeof _0x54fadd}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});_0x54fadd=AIChatContext[_0x591f8e(0x1ed)](_0x54fadd,_0x2038a7[_0x591f8e(0x229)]),await this[_0x591f8e(0x1cc)]([_0x54fadd],{'label':_0x2038a7[_0x591f8e(0x229)],'resourceId':_0x2038a7['id']},_0x35783e[_0x591f8e(0x1fe)]);break;case _0x35783e[_0x591f8e(0x243)]:break;default:this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x1fd),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id'],'resourceType':_0x2038a7[_0x591f8e(0x1e1)]}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}else this[_0x591f8e(0x1ec)](_0x591f8e(0x20f),{'error':new _0x2c910a(_0x591f8e(0x1fc),this,{'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']}),'resourceId':_0x2038a7['id'],'sourceId':_0x44ec27['id']});}static[_0x493bbe(0x1ed)](_0x16f088,_0x4c7708){const _0x1d69b9=_0x493bbe;switch(_0x16f088[_0x1d69b9(0x1e1)]){case _0xde5a2[_0x1d69b9(0x1ce)]:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x241)});case _0xde5a2[_0x1d69b9(0x242)]:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x1f4)});default:return new File([_0x16f088[_0x1d69b9(0x250)]],_0x4c7708,{'type':_0x1d69b9(0x233)});}}static[_0x493bbe(0x1f3)](_0x1c2d9e){const _0x25ad5a=_0x493bbe;switch(_0x1c2d9e[_0x25ad5a(0x1e1)]){case _0x35783e[_0x25ad5a(0x1fb)]:return{'type':_0x35783e[_0x25ad5a(0x1fb)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x20c)]:return{'type':_0x35783e[_0x25ad5a(0x20c)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x217)]:return{'type':_0x35783e[_0x25ad5a(0x217)],'id':_0x1c2d9e['id'],..._0x1c2d9e[_0x25ad5a(0x21e)]?.[_0x25ad5a(0x1ee)]&&{'selection':_0x1c2d9e[_0x25ad5a(0x21e)]}};case _0x35783e[_0x25ad5a(0x1fe)]:return{'type':_0x35783e[_0x25ad5a(0x1fb)],'id':_0x1c2d9e['id']};case _0x35783e[_0x25ad5a(0x243)]:{const _0x1ccfe0=_0x1c2d9e;return{'type':_0x35783e[_0x25ad5a(0x243)],'mcpServerName':_0x1ccfe0[_0x25ad5a(0x22c)],'toolName':_0x1ccfe0[_0x25ad5a(0x220)],'data':_0x1ccfe0[_0x25ad5a(0x214)],'id':_0x1ccfe0['id']};}default:return null;}}[_0x493bbe(0x211)](_0x26ebea,_0x4f00a4=!0x1){const _0x193068=_0x493bbe;if(this[_0x193068(0x237)][_0x193068(0x238)](_0x26ebea[_0x193068(0x225)],_0x26ebea),_0x26ebea[_0x193068(0x252)]||this[_0x193068(0x1ec)](_0x193068(0x1c4),{'contextItem':_0x26ebea,'isLoading':_0x4f00a4}),_0x193068(0x204)===_0x26ebea[_0x193068(0x225)]&&this[_0x193068(0x23b)](),_0x26ebea[_0x193068(0x22e)]){const _0x6b0400=this[_0x193068(0x247)](_0x26ebea[_0x193068(0x22e)]);_0x6b0400&&_0x6b0400[_0x193068(0x1f9)](_0x32585c=>{const _0x58e5bb=_0x193068;this[_0x58e5bb(0x206)](_0x32585c,_0x26ebea[_0x58e5bb(0x22e)],!0x0);});}}[_0x493bbe(0x226)](_0x39a985){const _0x2e71fe=_0x493bbe,_0x4efa6a=this[_0x2e71fe(0x237)][_0x2e71fe(0x251)](_0x39a985),_0x323d35=this[_0x2e71fe(0x248)][_0x2e71fe(0x251)](_0x39a985);if(_0x323d35&&(_0x323d35[_0x2e71fe(0x1f1)](),this[_0x2e71fe(0x248)][_0x2e71fe(0x24a)](_0x39a985)),_0x4efa6a?.[_0x2e71fe(0x22e)]){const _0x2458f0=this[_0x2e71fe(0x247)](_0x4efa6a[_0x2e71fe(0x22e)]);_0x2458f0&&_0x2458f0[_0x2e71fe(0x1f9)](_0x27975c=>{const _0x47f031=_0x2e71fe;this[_0x47f031(0x206)](_0x27975c,_0x4efa6a[_0x47f031(0x22e)],!0x1);});}this[_0x2e71fe(0x237)][_0x2e71fe(0x24a)](_0x39a985),this[_0x2e71fe(0x1ec)](_0x2e71fe(0x23a),{'uiId':_0x39a985,'type':_0x4efa6a?.[_0x2e71fe(0x1e1)]}),_0x2e71fe(0x204)===_0x39a985&&this[_0x2e71fe(0x23b)]();}[_0x493bbe(0x1dc)](_0x17ca79,_0x5a4f59){const _0x5a82c1=_0x493bbe;if(this[_0x5a82c1(0x237)][_0x5a82c1(0x1d0)](_0x17ca79[_0x5a82c1(0x225)])&&(this[_0x5a82c1(0x237)][_0x5a82c1(0x238)](_0x17ca79[_0x5a82c1(0x225)],_0x17ca79),this[_0x5a82c1(0x1ec)](_0x5a82c1(0x1c8),{'contextItem':_0x17ca79,'isLoading':_0x5a4f59}),_0x17ca79[_0x5a82c1(0x22e)])){const _0x37c029=this[_0x5a82c1(0x247)](_0x17ca79[_0x5a82c1(0x22e)]);_0x37c029&&_0x37c029[_0x5a82c1(0x1f9)](_0x4b66c6=>{const _0x19d845=_0x5a82c1;this[_0x19d845(0x206)](_0x4b66c6,_0x17ca79[_0x19d845(0x22e)],!0x0);});}}[_0x493bbe(0x1ff)](_0x34ef19){const _0x3d29ec=_0x493bbe;this[_0x3d29ec(0x1c6)][_0x3d29ec(0x238)](_0x34ef19[_0x3d29ec(0x225)],_0x34ef19);}[_0x493bbe(0x1e2)](){const _0x1fa86a=_0x493bbe;this[_0x1fa86a(0x1c2)]={'document':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x215)]?.[_0x1fa86a(0x1d8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x239)]?.[_0x1fa86a(0x1d8)]},'files':{'enabled':!0x1!==this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x1da)]?.[_0x1fa86a(0x1d8)]},'sources':this[_0x1fa86a(0x1c5)](),'customItems':this[_0x1fa86a(0x1f7)]?.[_0x1fa86a(0x230)]?.[_0x1fa86a(0x24f)](_0x5bce5b=>({..._0x5bce5b,'enabled':!0x0}))??[]},this[_0x1fa86a(0x1ec)](_0x1fa86a(0x22d),{'options':this[_0x1fa86a(0x1c2)]});}[_0x493bbe(0x1c5)](){const _0x26da0a=_0x493bbe;return this[_0x26da0a(0x1f7)]?.[_0x26da0a(0x20a)]?.[_0x26da0a(0x24f)](_0x442944=>({..._0x442944,'resources':[]}))??[];}[_0x493bbe(0x23b)](){const _0x5d390d=_0x493bbe,_0x19325e=this[_0x5d390d(0x1de)]()||this[_0x5d390d(0x20b)]();this[_0x5d390d(0x1c2)][_0x5d390d(0x215)][_0x5d390d(0x1e7)]=_0x19325e,this[_0x5d390d(0x1ec)](_0x5d390d(0x22d),{'options':this[_0x5d390d(0x1c2)]});}[_0x493bbe(0x21b)](_0x5e3801){const _0xd89e57=_0x493bbe;for(const _0x4883c5 of this[_0xd89e57(0x237)][_0xd89e57(0x209)]())if(_0x4883c5[_0xd89e57(0x22e)]===_0x5e3801)return!0x0;for(const _0x204c05 of this[_0xd89e57(0x1c6)][_0xd89e57(0x209)]())if(_0x204c05[_0xd89e57(0x22e)]===_0x5e3801)return!0x0;return!0x1;}[_0x493bbe(0x247)](_0x5efa79){const _0x1806a5=_0x493bbe,_0x26131e=[];for(const _0x206988 of this[_0x1806a5(0x1c2)][_0x1806a5(0x20a)]){_0x206988[_0x1806a5(0x22a)][_0x1806a5(0x1e4)](_0x35c22d=>_0x35c22d['id']===_0x5efa79)&&_0x26131e[_0x1806a5(0x1e6)](_0x206988['id']);}return 0x0===_0x26131e[_0x1806a5(0x1ee)]?null:_0x26131e;}[_0x493bbe(0x206)](_0x4a3f10,_0x4e4678,_0x4dbb0a){const _0x4496e9=_0x493bbe,_0x48cc72=this[_0x4496e9(0x1c2)][_0x4496e9(0x20a)][_0x4496e9(0x1e4)](_0xafb8=>_0xafb8['id']===_0x4a3f10);if(!_0x48cc72)return;const _0x1f7b53=_0x48cc72[_0x4496e9(0x22a)][_0x4496e9(0x1e4)](_0x28c526=>_0x28c526['id']===_0x4e4678);_0x1f7b53&&(_0x1f7b53[_0x4496e9(0x203)]=_0x4dbb0a,this[_0x4496e9(0x1ec)](_0x4496e9(0x218),{'sourceId':_0x4a3f10,'resourceId':_0x4e4678,'isInContext':_0x4dbb0a}));}[_0x493bbe(0x1d5)](_0x33cdef){const _0xf3f5d3=_0x493bbe;this[_0xf3f5d3(0x1c1)][_0xf3f5d3(0x238)](_0x33cdef,!0x0),this[_0xf3f5d3(0x1c1)][_0xf3f5d3(0x1c7)]&&this[_0xf3f5d3(0x1ec)](_0xf3f5d3(0x24d),{'isUploadInProgress':!0x0});}[_0x493bbe(0x1df)](_0xfd11){const _0x40b74d=_0x493bbe;this[_0x40b74d(0x1c1)][_0x40b74d(0x24a)](_0xfd11),0x0===this[_0x40b74d(0x1c1)][_0x40b74d(0x1c7)]&&this[_0x40b74d(0x1ec)](_0x40b74d(0x24d),{'isUploadInProgress':!0x1});}}
23
+ const _0x1c7482=_0x196f;(function(_0xf3df01,_0x388a1a){const _0x320645=_0x196f,_0x4febed=_0xf3df01();while(!![]){try{const _0x315019=-parseInt(_0x320645(0x1f7))/0x1+-parseInt(_0x320645(0x276))/0x2*(parseInt(_0x320645(0x208))/0x3)+parseInt(_0x320645(0x254))/0x4*(parseInt(_0x320645(0x265))/0x5)+-parseInt(_0x320645(0x271))/0x6*(parseInt(_0x320645(0x268))/0x7)+parseInt(_0x320645(0x1ff))/0x8+parseInt(_0x320645(0x231))/0x9+parseInt(_0x320645(0x1e2))/0xa;if(_0x315019===_0x388a1a)break;else _0x4febed['push'](_0x4febed['shift']());}catch(_0x422dbf){_0x4febed['push'](_0x4febed['shift']());}}}(_0x27fd,0xa8405));import{CKEditorError as _0x3020fd,ObservableMixin as _0x51b5c0,uid as _0x47606b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x12c384,AIContextTextResourceType as _0x1f3675}from'../../aicore/model/aicontext.js';import{escape as _0x1199bb}from'es-toolkit/compat';function _0x196f(_0x2abfe1,_0x976967){const _0x27fdb1=_0x27fd();return _0x196f=function(_0x196f2d,_0xa6c640){_0x196f2d=_0x196f2d-0x1e2;let _0xd5e517=_0x27fdb1[_0x196f2d];return _0xd5e517;},_0x196f(_0x2abfe1,_0x976967);}import{errorsMap as _0x2096e4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1c7482(0x251),_0x1c7482(0x263),_0x1c7482(0x24a),_0x1c7482(0x200),_0x1c7482(0x26b),_0x1c7482(0x239),_0x1c7482(0x253),_0x1c7482(0x1e6),_0x1c7482(0x26d)];function _0x27fd(){const _0x1daef5=['3GWksIm','_pendingContextItems','text/html','current-document','label','version','enabled','size','name','toolName','get','push','FILE','_removeContextItem','abortController','HTML','urls','_connector','ai-chat-context-unsupported-type','removeFromContext','type','_convertTextResourceToFile','hidden','TOOL','ai-chat-context-invalid-data','text/plain','_ongoingUploads','files-','map','addSelectionToContext','_startUploadOperation','_toggleAddCurrentDocumentOptionVisibility','isHidden','substring','object','forEach','ai-chat-document-upload-failed','delete','_ongoingUploadOperations','getId','getPendingContextItems','9071802LvmPho','stack','loadSourceResources','start','isCurrentDocumentInConversation','isSelectionInContext','length','selection','addContextOptionsChanged','_mapContextItemToRequestData','has','addToConversationContext','text/markdown','_addToConversationContextItem','MARKDOWN','_getCustomSourcesInitialState','_isResourceInContext','_findSourceIdsByResourceId','_finishContextItemLoading','attributes','clearPendingContextItems','files','customItems','sessionId','url','contextItemLoadingEnded','isCurrentDocumentInContext','getData','find','uploadUrl','File','getSentContextItems','contextItemAdded','fire','sourceResourcesLoaded','5438380uvvklV','resources','addFilesToContext','string','data','removeSelectionFromContext','sources','uiId','init','_config','code','end','values','_createContextItemFromContent','uploadDocument','contextItemRemoved','isReadOnly','5hBLguD','set','ai-chat-url-upload-failed','1589434dVVMhr','addResourceToContext','addToolItemToContext','error','abort','uploadProgressChanged','content','getResources','mapContextItemsToRequestData','12APukff','addUrlToContext','from','fetchDocument','DOCUMENT','474178qXTjvU','2013460xIfTFF','file-','populateFromMessage','ai-chat-source-resources-load-failed','resourceStateChanged','uploadFile','_addContextOptionsState','Current\x20document','ai-request-aborted','TEXT','resourceId','ai-chat-file-upload-failed','_conversationContextItems','_updateResourceInContextState','addCurrentDocumentToContext','getDocument','filter','URL','all','object\x20with\x20content\x20and\x20type\x20properties','url-','1197799OwqscW','document','ai-chat-source-not-found','updateCurrentDocument','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','_addContextItem','_finishUploadOperation','74000qJKKQe','contextSent','message','isInContext','mcpServerName','ai-chat-resource-load-failed','startsWith','_ownerId','SELECTION'];_0x27fd=function(){return _0x1daef5;};return _0x27fd();}export class AIChatContext extends _0x51b5c0(){[_0x1c7482(0x219)];[_0x1c7482(0x25d)];[_0x1c7482(0x206)];constructor({connector:_0x4a21bc,config:_0x39185d,ownerId:_0x5191b3}){const _0x1e39ed=_0x1c7482;super(),this[_0x1e39ed(0x219)]=_0x4a21bc,this[_0x1e39ed(0x25d)]=_0x39185d,this[_0x1e39ed(0x206)]=_0x5191b3;}[_0x1c7482(0x25c)](){const _0x4042d9=_0x1c7482;this[_0x4042d9(0x209)]=new Map(),this[_0x4042d9(0x1ee)]=new Map(),this[_0x4042d9(0x222)]=new Map(),this[_0x4042d9(0x22e)]=new Map(),this[_0x4042d9(0x1fc)]();}[_0x1c7482(0x230)](){const _0x2b981a=_0x1c7482;return this[_0x2b981a(0x209)];}async[_0x1c7482(0x1e4)](_0x508e6d){const _0x2f4cd7=_0x1c7482,_0x15d3bc=await this[_0x2f4cd7(0x261)](_0x508e6d);return this[_0x2f4cd7(0x23e)](_0x15d3bc),_0x2f4cd7(0x20b)===_0x15d3bc[_0x2f4cd7(0x25b)]&&this[_0x2f4cd7(0x227)](),_0x15d3bc;}async[_0x1c7482(0x261)](_0x1fff8e){const _0x2cd197=_0x1c7482;if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x275)]){const _0x55c7d3=await this[_0x2cd197(0x219)][_0x2cd197(0x274)](this[_0x2cd197(0x206)],_0x1fff8e['id'])[_0x2cd197(0x1f1)]();return{'id':_0x2cd197(0x20b),'uiId':_0x2cd197(0x20b),'label':_0x2cd197(0x1e9),'type':_0x1fff8e[_0x2cd197(0x21c)],'content':_0x55c7d3[_0x2cd197(0x26e)],'hidden':this[_0x2cd197(0x1ee)][_0x2cd197(0x23b)](_0x2cd197(0x20b)),'version':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x20d)],'sessionId':_0x55c7d3[_0x2cd197(0x244)]?.[_0x2cd197(0x248)]};}if(_0x1fff8e[_0x2cd197(0x21c)]===_0x12c384[_0x2cd197(0x21f)])return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x258)]?.[_0x2cd197(0x20c)]||_0x1fff8e['id'],'type':_0x12c384[_0x2cd197(0x21f)],'mcpServerName':_0x1fff8e[_0x2cd197(0x203)],'toolName':_0x1fff8e[_0x2cd197(0x211)],'data':_0x1fff8e[_0x2cd197(0x258)]||{}};return{'id':_0x1fff8e['id'],'uiId':_0x1fff8e['id'],'label':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x20c)]||_0x1fff8e[_0x2cd197(0x210)]||_0x1fff8e[_0x2cd197(0x249)]||_0x1fff8e['id'],'type':_0x1fff8e[_0x2cd197(0x21c)],..._0x1fff8e?.[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]?{'resourceId':_0x1fff8e[_0x2cd197(0x244)]?.[_0x2cd197(0x1ec)]}:{}};}[_0x1c7482(0x250)](){const _0x2a40cc=_0x1c7482;return new Map(this[_0x2a40cc(0x1ee)]);}[_0x1c7482(0x21b)](_0x1f56c8){const _0x6495f8=_0x1c7482,_0x2555e9=this[_0x6495f8(0x209)][_0x6495f8(0x212)](_0x1f56c8);_0x2555e9?.[_0x6495f8(0x264)]||this[_0x6495f8(0x215)](_0x1f56c8);}[_0x1c7482(0x245)](){const _0x3216f2=_0x1c7482;if(0x0===this[_0x3216f2(0x209)][_0x3216f2(0x20f)])return;for(const _0x5b6d82 of this[_0x3216f2(0x209)][_0x3216f2(0x260)]())this[_0x3216f2(0x215)](_0x5b6d82[_0x3216f2(0x25b)]);const _0x4589e6=this[_0x3216f2(0x1ee)][_0x3216f2(0x212)](_0x3216f2(0x20b))||this[_0x3216f2(0x209)][_0x3216f2(0x212)](_0x3216f2(0x20b));_0x4589e6&&this[_0x3216f2(0x1fd)]({..._0x4589e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1c7482(0x23c)](_0x173c2f){const _0x43a98b=_0x1c7482;for(const _0x585888 of _0x173c2f[_0x43a98b(0x260)]())this[_0x43a98b(0x23e)](_0x585888);this[_0x43a98b(0x245)](),this[_0x43a98b(0x252)](_0x43a98b(0x200),{'contextItems':Array[_0x43a98b(0x273)](this[_0x43a98b(0x250)]()[_0x43a98b(0x260)]())});}[_0x1c7482(0x24b)](){const _0x1ac4d4=_0x1c7482;return this[_0x1ac4d4(0x209)][_0x1ac4d4(0x23b)](_0x1ac4d4(0x20b));}[_0x1c7482(0x236)](){const _0x121995=_0x1c7482;return this[_0x121995(0x209)][_0x121995(0x23b)](_0x121995(0x238));}[_0x1c7482(0x235)](){const _0x39955e=_0x1c7482;return this[_0x39955e(0x1ee)][_0x39955e(0x23b)](_0x39955e(0x20b));}static[_0x1c7482(0x270)](_0x57d930){const _0x201539=_0x1c7482;return Array[_0x201539(0x273)](_0x57d930[_0x201539(0x260)]())[_0x201539(0x224)](_0x1823d4=>this[_0x201539(0x23a)](_0x1823d4))[_0x201539(0x1f2)](_0xaa33a1=>null!==_0xaa33a1);}async[_0x1c7482(0x256)](_0x183d11,_0x30306f,_0x4733b1=_0x12c384[_0x1c7482(0x214)]){const _0x4f0555=_0x1c7482,_0x55c8fd=_0x4f0555(0x223)+_0x47606b();this[_0x4f0555(0x226)](_0x55c8fd);try{await Promise[_0x4f0555(0x1f4)](_0x183d11[_0x4f0555(0x224)](async _0x5d6908=>{const _0x290386=_0x4f0555,_0x51e79a=_0x290386(0x1e3)+_0x47606b(),_0x48b5f8=_0x1199bb(_0x5d6908[_0x290386(0x210)]);try{this[_0x290386(0x1fd)]({'type':_0x4733b1,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x0);const _0x15fd97=this[_0x290386(0x219)][_0x290386(0x1e7)](this[_0x290386(0x206)],_0x5d6908,_0x30306f);this[_0x290386(0x222)][_0x290386(0x266)](_0x51e79a,_0x15fd97[_0x290386(0x216)]);const {id:_0x377056}=await _0x15fd97[_0x290386(0x22f)]();this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a),this[_0x290386(0x243)]({'type':_0x4733b1,'id':_0x377056,'label':_0x30306f?.[_0x290386(0x20c)]||_0x48b5f8,'uiId':_0x51e79a,'resourceId':_0x30306f?.[_0x290386(0x1ec)]},!0x1);}catch(_0xefb67b){this[_0x290386(0x222)][_0x290386(0x22d)](_0x51e79a);if(!(_0xefb67b instanceof _0x3020fd&&_0xefb67b[_0x290386(0x201)][_0x290386(0x205)](_0x290386(0x1ea)))){const _0x1c7c23=_0x2096e4[_0x290386(0x212)](_0xefb67b[_0x290386(0x25e)])||_0x290386(0x1ed),_0xdd34dc=new _0x3020fd(_0x1c7c23,null,{'fileName':_0x48b5f8,..._0xefb67b});_0xdd34dc[_0x290386(0x232)]=_0xefb67b[_0x290386(0x232)],this[_0x290386(0x252)](_0x290386(0x26b),{'error':_0xdd34dc});}this[_0x290386(0x215)](_0x51e79a);}}));}finally{this[_0x4f0555(0x1fe)](_0x55c8fd);}}[_0x1c7482(0x1f0)](_0x380904){const _0x3fe847=_0x1c7482;if(this[_0x3fe847(0x24b)]()||!this[_0x3fe847(0x1e8)][_0x3fe847(0x1f8)][_0x3fe847(0x20e)])return;const _0x5ddef4={'type':_0x12c384[_0x3fe847(0x275)],'uiId':_0x3fe847(0x20b),'label':_0x380904,'isReadOnly':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b)),'hidden':this[_0x3fe847(0x1ee)][_0x3fe847(0x23b)](_0x3fe847(0x20b))};this[_0x3fe847(0x1fd)](_0x5ddef4);}async[_0x1c7482(0x1fa)](_0x238c88,_0x566f89,_0x4ac2a8,_0x1d2ea7){const _0x27a6e0=_0x1c7482,_0x94fc33=this[_0x27a6e0(0x209)][_0x27a6e0(0x212)](_0x27a6e0(0x20b));if(_0x94fc33&&_0x238c88){_0x94fc33[_0x27a6e0(0x238)]=_0x1d2ea7?_0x1d2ea7[_0x27a6e0(0x224)](_0x3dd630=>({'start':_0x3dd630[_0x27a6e0(0x234)],'end':_0x3dd630[_0x27a6e0(0x25f)]})):[];try{if(_0x94fc33[_0x27a6e0(0x20d)]===_0x566f89)return;const {id:_0x20c2cd}=await this[_0x27a6e0(0x219)][_0x27a6e0(0x262)](this[_0x27a6e0(0x206)],_0x238c88,{'version':_0x566f89,'sessionId':_0x4ac2a8})[_0x27a6e0(0x22f)]();_0x94fc33['id']=_0x20c2cd,_0x94fc33[_0x27a6e0(0x26e)]=_0x238c88,_0x94fc33[_0x27a6e0(0x20d)]=_0x566f89,_0x94fc33[_0x27a6e0(0x248)]=_0x4ac2a8;}catch(_0x4cff72){const _0x2c8eff=new _0x3020fd(_0x27a6e0(0x22c),null);_0x2c8eff[_0x27a6e0(0x232)]=_0x4cff72[_0x27a6e0(0x232)],this[_0x27a6e0(0x252)](_0x27a6e0(0x26b),{'error':_0x2c8eff});}}}[_0x1c7482(0x225)](_0x17d8db){const _0xc246a0=_0x1c7482;this[_0xc246a0(0x1fd)]({'type':_0x12c384[_0xc246a0(0x207)],'label':_0x17d8db,'uiId':_0xc246a0(0x238),'content':_0x17d8db});}[_0x1c7482(0x259)](){const _0x46727d=_0x1c7482;this[_0x46727d(0x215)](_0x46727d(0x238));}async[_0x1c7482(0x272)](_0xf784a8,_0x428649){const _0x4b037e=_0x1c7482,_0x52dffd=_0x4b037e(0x1f6)+_0x47606b();this[_0x4b037e(0x226)](_0x52dffd);const _0x35d4db=_0x4b037e(0x1f6)+_0x47606b();try{this[_0x4b037e(0x1fd)]({'type':_0x12c384[_0x4b037e(0x1f3)],'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x0);const _0x43ff9a=this[_0x4b037e(0x219)][_0x4b037e(0x24e)](this[_0x4b037e(0x206)],_0xf784a8,_0x428649);this[_0x4b037e(0x222)][_0x4b037e(0x266)](_0x35d4db,_0x43ff9a[_0x4b037e(0x216)]);const {id:_0x94526f}=await _0x43ff9a[_0x4b037e(0x22f)]();this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),this[_0x4b037e(0x243)]({'type':_0x12c384[_0x4b037e(0x1f3)],'id':_0x94526f,'label':_0x428649?.[_0x4b037e(0x20c)]||_0xf784a8,'uiId':_0x35d4db,'resourceId':_0x428649?.[_0x4b037e(0x1ec)]},!0x1);}catch(_0x341090){this[_0x4b037e(0x222)][_0x4b037e(0x22d)](_0x35d4db),(_0x341090[_0x4b037e(0x201)][_0x4b037e(0x205)](_0x4b037e(0x1ea))||this[_0x4b037e(0x252)](_0x4b037e(0x26b),{'error':new _0x3020fd(_0x4b037e(0x267),this,{'url':_0xf784a8,'originalError':_0x341090}),'url':_0xf784a8}),this[_0x4b037e(0x215)](_0x35d4db));}finally{this[_0x4b037e(0x1fe)](_0x52dffd);}}[_0x1c7482(0x26a)](_0x94f52c){const _0x4c4f90=_0x1c7482;_0x94f52c['id']=_0x94f52c['id']??_0x47606b()[_0x4c4f90(0x229)](0x0,0x15),this[_0x4c4f90(0x209)][_0x4c4f90(0x266)](_0x94f52c[_0x4c4f90(0x25b)],_0x94f52c),this[_0x4c4f90(0x252)](_0x4c4f90(0x251),{'contextItem':_0x94f52c,'isLoading':!0x1});}async[_0x1c7482(0x233)](_0x3332fe,_0x2f5860,_0x4d3479){const _0x595d4a=_0x1c7482,_0x38185a=this[_0x595d4a(0x1e8)][_0x595d4a(0x25a)][_0x595d4a(0x24d)](_0x3172b4=>_0x3172b4['id']===_0x3332fe);if(!_0x38185a)return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1f9),this,{'sourceId':_0x3332fe}),'sourceId':_0x3332fe}),[];try{const _0x5cd65a=(await _0x38185a[_0x595d4a(0x26f)](_0x2f5860))[_0x595d4a(0x224)](_0x862a22=>{const _0x3a1a13=_0x595d4a,_0x3d3684=this[_0x3a1a13(0x241)](_0x862a22['id']);return{..._0x862a22,'isInContext':_0x3d3684};});return _0x38185a[_0x595d4a(0x255)]=_0x5cd65a,this[_0x595d4a(0x252)](_0x595d4a(0x253),{'sourceId':_0x3332fe,'source':_0x38185a,'resources':_0x5cd65a,'uid':_0x4d3479}),_0x5cd65a;}catch(_0x54c518){return this[_0x595d4a(0x252)](_0x595d4a(0x26b),{'error':new _0x3020fd(_0x595d4a(0x1e5),this,{'sourceId':_0x3332fe,'originalError':_0x54c518}),'sourceId':_0x3332fe,'sourceLabel':_0x38185a[_0x595d4a(0x20c)]}),[];}}async[_0x1c7482(0x269)](_0xe81ecc,_0x5b2696){const _0x1679b9=_0x1c7482;if(this[_0x1679b9(0x241)](_0x5b2696['id']))return;let _0x143298=_0x5b2696[_0x1679b9(0x258)];if(!_0x143298&&_0xe81ecc[_0x1679b9(0x24c)])try{_0x143298=await _0xe81ecc[_0x1679b9(0x24c)](_0x5b2696['id']);}catch(_0x3d9ab7){return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x204),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'originalError':_0x3d9ab7}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}if(_0x143298)switch(_0x5b2696[_0x1679b9(0x21c)]){case _0x12c384[_0x1679b9(0x1f3)]:if(_0x1679b9(0x257)!=typeof _0x143298)return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x257),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x272)](_0x143298,{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x214)]:if(!(_0x143298 instanceof File))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x24f),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']});break;case _0x12c384[_0x1679b9(0x1eb)]:if(_0x1679b9(0x22a)!=typeof _0x143298||!(_0x1679b9(0x26e)in _0x143298)||!(_0x1679b9(0x21c)in _0x143298))return void this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x220),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'expectedType':_0x1679b9(0x1f5),'actualType':typeof _0x143298}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});_0x143298=AIChatContext[_0x1679b9(0x21d)](_0x143298,_0x5b2696[_0x1679b9(0x20c)]),await this[_0x1679b9(0x256)]([_0x143298],{'label':_0x5b2696[_0x1679b9(0x20c)],'resourceId':_0x5b2696['id']},_0x12c384[_0x1679b9(0x1eb)]);break;case _0x12c384[_0x1679b9(0x21f)]:break;default:this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x21a),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id'],'resourceType':_0x5b2696[_0x1679b9(0x21c)]}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}else this[_0x1679b9(0x252)](_0x1679b9(0x26b),{'error':new _0x3020fd(_0x1679b9(0x1fb),this,{'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']}),'resourceId':_0x5b2696['id'],'sourceId':_0xe81ecc['id']});}static[_0x1c7482(0x21d)](_0x57ab0c,_0x4b2d56){const _0x82a56a=_0x1c7482;switch(_0x57ab0c[_0x82a56a(0x21c)]){case _0x1f3675[_0x82a56a(0x23f)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x23d)});case _0x1f3675[_0x82a56a(0x217)]:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x20a)});default:return new File([_0x57ab0c[_0x82a56a(0x26e)]],_0x4b2d56,{'type':_0x82a56a(0x221)});}}static[_0x1c7482(0x23a)](_0x909e6f){const _0x1c5c93=_0x1c7482;switch(_0x909e6f[_0x1c5c93(0x21c)]){case _0x12c384[_0x1c5c93(0x214)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x1f3)]:return{'type':_0x12c384[_0x1c5c93(0x1f3)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x275)]:return{'type':_0x12c384[_0x1c5c93(0x275)],'id':_0x909e6f['id'],..._0x909e6f[_0x1c5c93(0x238)]?.[_0x1c5c93(0x237)]&&{'selection':_0x909e6f[_0x1c5c93(0x238)]}};case _0x12c384[_0x1c5c93(0x1eb)]:return{'type':_0x12c384[_0x1c5c93(0x214)],'id':_0x909e6f['id']};case _0x12c384[_0x1c5c93(0x21f)]:{const _0x22cab6=_0x909e6f;return{'type':_0x12c384[_0x1c5c93(0x21f)],'mcpServerName':_0x22cab6[_0x1c5c93(0x203)],'toolName':_0x22cab6[_0x1c5c93(0x211)],'data':_0x22cab6[_0x1c5c93(0x258)],'id':_0x22cab6['id']};}default:return null;}}[_0x1c7482(0x1fd)](_0x5b7229,_0x236ffa=!0x1){const _0x1c8ce2=_0x1c7482;if(this[_0x1c8ce2(0x209)][_0x1c8ce2(0x266)](_0x5b7229[_0x1c8ce2(0x25b)],_0x5b7229),_0x5b7229[_0x1c8ce2(0x21e)]||this[_0x1c8ce2(0x252)](_0x1c8ce2(0x251),{'contextItem':_0x5b7229,'isLoading':_0x236ffa}),_0x1c8ce2(0x20b)===_0x5b7229[_0x1c8ce2(0x25b)]&&this[_0x1c8ce2(0x227)](),_0x5b7229[_0x1c8ce2(0x1ec)]){const _0x49d34e=this[_0x1c8ce2(0x242)](_0x5b7229[_0x1c8ce2(0x1ec)]);_0x49d34e&&_0x49d34e[_0x1c8ce2(0x22b)](_0x214820=>{const _0x255f04=_0x1c8ce2;this[_0x255f04(0x1ef)](_0x214820,_0x5b7229[_0x255f04(0x1ec)],!0x0);});}}[_0x1c7482(0x215)](_0x1bf646){const _0x40ec05=_0x1c7482,_0x1cd47f=this[_0x40ec05(0x209)][_0x40ec05(0x212)](_0x1bf646),_0x5355b2=this[_0x40ec05(0x222)][_0x40ec05(0x212)](_0x1bf646);if(_0x5355b2&&(_0x5355b2[_0x40ec05(0x26c)](),this[_0x40ec05(0x222)][_0x40ec05(0x22d)](_0x1bf646)),_0x1cd47f?.[_0x40ec05(0x1ec)]){const _0xea5ef0=this[_0x40ec05(0x242)](_0x1cd47f[_0x40ec05(0x1ec)]);_0xea5ef0&&_0xea5ef0[_0x40ec05(0x22b)](_0x4a8d22=>{const _0x17cff4=_0x40ec05;this[_0x17cff4(0x1ef)](_0x4a8d22,_0x1cd47f[_0x17cff4(0x1ec)],!0x1);});}this[_0x40ec05(0x209)][_0x40ec05(0x22d)](_0x1bf646),this[_0x40ec05(0x252)](_0x40ec05(0x263),{'uiId':_0x1bf646,'type':_0x1cd47f?.[_0x40ec05(0x21c)]}),_0x40ec05(0x20b)===_0x1bf646&&this[_0x40ec05(0x227)]();}[_0x1c7482(0x243)](_0xe94f7,_0x57c763){const _0xadc9ca=_0x1c7482;if(this[_0xadc9ca(0x209)][_0xadc9ca(0x23b)](_0xe94f7[_0xadc9ca(0x25b)])&&(this[_0xadc9ca(0x209)][_0xadc9ca(0x266)](_0xe94f7[_0xadc9ca(0x25b)],_0xe94f7),this[_0xadc9ca(0x252)](_0xadc9ca(0x24a),{'contextItem':_0xe94f7,'isLoading':_0x57c763}),_0xe94f7[_0xadc9ca(0x1ec)])){const _0x32d6ab=this[_0xadc9ca(0x242)](_0xe94f7[_0xadc9ca(0x1ec)]);_0x32d6ab&&_0x32d6ab[_0xadc9ca(0x22b)](_0xd290e2=>{const _0x365536=_0xadc9ca;this[_0x365536(0x1ef)](_0xd290e2,_0xe94f7[_0x365536(0x1ec)],!0x0);});}}[_0x1c7482(0x23e)](_0x25148e){const _0x5eb961=_0x1c7482;this[_0x5eb961(0x1ee)][_0x5eb961(0x266)](_0x25148e[_0x5eb961(0x25b)],_0x25148e);}[_0x1c7482(0x1fc)](){const _0x3e31d0=_0x1c7482;this[_0x3e31d0(0x1e8)]={'document':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x1f8)]?.[_0x3e31d0(0x20e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x218)]?.[_0x3e31d0(0x20e)]},'files':{'enabled':!0x1!==this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x246)]?.[_0x3e31d0(0x20e)]},'sources':this[_0x3e31d0(0x240)](),'customItems':this[_0x3e31d0(0x25d)]?.[_0x3e31d0(0x247)]?.[_0x3e31d0(0x224)](_0x41c653=>({..._0x41c653,'enabled':!0x0}))??[]},this[_0x3e31d0(0x252)](_0x3e31d0(0x239),{'options':this[_0x3e31d0(0x1e8)]});}[_0x1c7482(0x240)](){const _0x264e4e=_0x1c7482;return this[_0x264e4e(0x25d)]?.[_0x264e4e(0x25a)]?.[_0x264e4e(0x224)](_0x1aebf1=>({..._0x1aebf1,'resources':[]}))??[];}[_0x1c7482(0x227)](){const _0x5eee95=_0x1c7482,_0xb5e343=this[_0x5eee95(0x24b)]()||this[_0x5eee95(0x235)]();this[_0x5eee95(0x1e8)][_0x5eee95(0x1f8)][_0x5eee95(0x228)]=_0xb5e343,this[_0x5eee95(0x252)](_0x5eee95(0x239),{'options':this[_0x5eee95(0x1e8)]});}[_0x1c7482(0x241)](_0x1d7ee4){const _0x35816d=_0x1c7482;for(const _0x5b6aa1 of this[_0x35816d(0x209)][_0x35816d(0x260)]())if(_0x5b6aa1[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;for(const _0x4e22ba of this[_0x35816d(0x1ee)][_0x35816d(0x260)]())if(_0x4e22ba[_0x35816d(0x1ec)]===_0x1d7ee4)return!0x0;return!0x1;}[_0x1c7482(0x242)](_0x5b638d){const _0x7d778a=_0x1c7482,_0x4373fe=[];for(const _0x13fbe4 of this[_0x7d778a(0x1e8)][_0x7d778a(0x25a)]){_0x13fbe4[_0x7d778a(0x255)][_0x7d778a(0x24d)](_0x5f59db=>_0x5f59db['id']===_0x5b638d)&&_0x4373fe[_0x7d778a(0x213)](_0x13fbe4['id']);}return 0x0===_0x4373fe[_0x7d778a(0x237)]?null:_0x4373fe;}[_0x1c7482(0x1ef)](_0x76d620,_0x582be5,_0x34de7a){const _0x5da970=_0x1c7482,_0x27ae59=this[_0x5da970(0x1e8)][_0x5da970(0x25a)][_0x5da970(0x24d)](_0x1e44ee=>_0x1e44ee['id']===_0x76d620);if(!_0x27ae59)return;const _0x12b703=_0x27ae59[_0x5da970(0x255)][_0x5da970(0x24d)](_0x8b641b=>_0x8b641b['id']===_0x582be5);_0x12b703&&(_0x12b703[_0x5da970(0x202)]=_0x34de7a,this[_0x5da970(0x252)](_0x5da970(0x1e6),{'sourceId':_0x76d620,'resourceId':_0x582be5,'isInContext':_0x34de7a}));}[_0x1c7482(0x226)](_0x4986fc){const _0x4cd3fd=_0x1c7482;this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x266)](_0x4986fc,!0x0),this[_0x4cd3fd(0x22e)][_0x4cd3fd(0x20f)]&&this[_0x4cd3fd(0x252)](_0x4cd3fd(0x26d),{'isUploadInProgress':!0x0});}[_0x1c7482(0x1fe)](_0x4036fd){const _0x4c8740=_0x1c7482;this[_0x4c8740(0x22e)][_0x4c8740(0x22d)](_0x4036fd),0x0===this[_0x4c8740(0x22e)][_0x4c8740(0x20f)]&&this[_0x4c8740(0x252)](_0x4c8740(0x26d),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29c944=_0x6196;function _0x6196(_0x511e96,_0x167183){const _0x5b1910=_0x5b19();return _0x6196=function(_0x6196f,_0x2b79da){_0x6196f=_0x6196f-0xae;let _0x30ef69=_0x5b1910[_0x6196f];return _0x30ef69;},_0x6196(_0x511e96,_0x167183);}(function(_0x5635e9,_0x5d7939){const _0x26c3f3=_0x6196,_0x4d9bee=_0x5635e9();while(!![]){try{const _0x221076=-parseInt(_0x26c3f3(0xca))/0x1+parseInt(_0x26c3f3(0xdf))/0x2+parseInt(_0x26c3f3(0xd9))/0x3*(-parseInt(_0x26c3f3(0xde))/0x4)+-parseInt(_0x26c3f3(0xe4))/0x5+parseInt(_0x26c3f3(0xd5))/0x6*(parseInt(_0x26c3f3(0x10a))/0x7)+parseInt(_0x26c3f3(0xf5))/0x8+parseInt(_0x26c3f3(0xe7))/0x9*(parseInt(_0x26c3f3(0xc5))/0xa);if(_0x221076===_0x5d7939)break;else _0x4d9bee['push'](_0x4d9bee['shift']());}catch(_0x295224){_0x4d9bee['push'](_0x4d9bee['shift']());}}}(_0x5b19,0x68d1c));import{CKEditorError as _0xc44658,EmitterMixin as _0x33588d,logWarning as _0xc1c3e7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4c09b0}from'../../aicore/model/aiinteraction.js';function _0x5b19(){const _0x52e03d=['indexOf','stop','conversationInitialized','populateFromMessage','lastInteraction','isSelectionInContext','getModel','modelSelected','toggleWebSearch','hasOwn','currentInteraction','addResourceToContext','parse','set','addFilesToContext','getEditor','ai-chat-conversation-start-failed','chatCapabilities','splice','removeFromContext','startConversation','fetchConversationMessages','prompt','modification','interactions','capabilities','ai-chat-conversation-start-no-model-selected','content','conversationId','addUrlToContext','_extractContextItems','text','attributes','setWebSearch','find','ai-chat-conversation-set-model-not-available','type','url','destroy','push','30aNXmbU','interactionCreated','selectedModelId','setReasoning','loadSourceResources','593920IxsGyL','ai-chat-conversation-init-from-id-failed','group','stack','_processMessagesToInteractions','toggleReasoning','length','sessionId','fire','mcp-tool-result','getMessages','6RasQcZ','getDocumentContext','updateCurrentDocumentInContext','ai-chat-handle-user-interaction-start-failed','69297gAhTlg','getAvailableModels','user','init','role','108rLKXTO','1174562CXWYLf','ai-chat-handle-user-conversation-not-initialized','handleUserInteraction','assistant','removeSelectionFromContext','760915jPsEkP','ai-chat-conversation-already-started','selectedModel','3022470psPVFw','getCurrentDocumentContext','isAvailable','model','isCurrentDocumentInContext','isCurrentDocumentInConversation','get','currentReply','contextItems','delegate','load','isFromHistory','addToConversationContext','title','609208daXssL','ai-chat-conversation-init-failed','updateCurrentDocument','getConversation','conversationStarted','getPendingContextItems','error','reasoning','addSelectionToContext','ai-chat-handle-user-interaction-already-in-progress','code','webSearch','connector','_handleToolResultData','getCapabilitiesConfig','chatContext','start','ai-chat-conversation-set-model-null','sources','removeInteraction','createReply','897358GiAjGo','setConversationTitle','chatModels','addToolItemToContext','toolName','setModel','message','toLowerCase','getInteraction','isStarted','appendContent','reset','createInteraction','getAll','addCurrentDocumentToContext','fetchConversation','options'];_0x5b19=function(){return _0x52e03d;};return _0x5b19();}import{AIChatContext as _0x13091f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xdccf30}from'./aichatcontext.js';import{AICapabilities as _0x268377,CAPABILITIES_MODEL_EVENT_NAMES as _0xe87694}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3f78ca}from'./aichatinteraction.js';import{errorsMap as _0x3872fb}from'../../errorsmap.js';export class AIChatConversation extends _0x33588d(){['id'];[_0x29c944(0x113)]=!0x1;[_0x29c944(0xf2)];[_0x29c944(0xb5)]=[];[_0x29c944(0x125)];[_0x29c944(0xe6)];[_0x29c944(0x101)];[_0x29c944(0x11a)];constructor(_0x3fcebe){const _0x4566cc=_0x29c944;super(),this[_0x4566cc(0x11a)]=_0x3fcebe,this[_0x4566cc(0x101)]=_0x3fcebe[_0x4566cc(0x101)],this[_0x4566cc(0x10c)]=_0x3fcebe[_0x4566cc(0x10c)],this['id']=_0x3fcebe[_0x4566cc(0xb9)],this[_0x4566cc(0xf2)]=_0x3fcebe[_0x4566cc(0xf2)];}async[_0x29c944(0xdc)](_0x408977){const _0x5a9d91=_0x29c944;try{this[_0x5a9d91(0x104)]=new _0x13091f({'connector':this[_0x5a9d91(0x101)],'config':_0x408977,'ownerId':this['id']}),this[_0x5a9d91(0x104)][_0x5a9d91(0xf0)](..._0xdccf30)['to'](this),this[_0x5a9d91(0x104)][_0x5a9d91(0xdc)](),this[_0x5a9d91(0xae)]=new _0x268377(),this[_0x5a9d91(0xae)][_0x5a9d91(0xf0)](..._0xe87694)['to'](this),this[_0x5a9d91(0xae)][_0x5a9d91(0xdc)]();const _0x1879be=await this[_0x5a9d91(0x10c)][_0x5a9d91(0xda)]();this[_0x5a9d91(0xd2)](_0x5a9d91(0x11d),{'availableModels':_0x1879be});const _0x2d8b9a=await this[_0x5a9d91(0x10c)][_0x5a9d91(0x121)](this[_0x5a9d91(0x11a)][_0x5a9d91(0xc7)]);_0x2d8b9a&&await this[_0x5a9d91(0x10f)](_0x2d8b9a);}catch(_0x156dc2){const _0x5f92c8=new _0xc44658(_0x5a9d91(0xf6),null,{'message':_0x156dc2[_0x5a9d91(0x110)]||_0x156dc2});_0x5f92c8[_0x5a9d91(0xcd)]=_0x156dc2[_0x5a9d91(0xcd)],this[_0x5a9d91(0xd2)](_0x5a9d91(0xfb),{'error':_0x5f92c8});}}async[_0x29c944(0x105)](){const _0x1a6c43=_0x29c944;if(this[_0x1a6c43(0x113)])throw new _0xc44658(_0x1a6c43(0xe5),null,{'conversation':this});if(!this[_0x1a6c43(0xe6)])throw new _0xc44658(_0x1a6c43(0xb7),null,{'conversation':this});try{const {id:_0x16fefc}=await this[_0x1a6c43(0x101)][_0x1a6c43(0xb1)](this['id'],this[_0x1a6c43(0x11a)][_0x1a6c43(0xcc)])[_0x1a6c43(0xf8)]();this['id']=_0x16fefc,this[_0x1a6c43(0x113)]=!0x0,this[_0x1a6c43(0xd2)](_0x1a6c43(0xf9),{'conversationId':this['id'],'selectedModel':this[_0x1a6c43(0xe6)]});}catch(_0x49952d){const _0x1d6f2c=new _0xc44658(_0x1a6c43(0x12b),null,{'message':_0x49952d[_0x1a6c43(0x110)],'conversationId':this['id']});throw _0x1d6f2c[_0x1a6c43(0xcd)]=_0x49952d[_0x1a6c43(0xcd)],this[_0x1a6c43(0xd2)](_0x1a6c43(0xfb),{'error':_0x1d6f2c}),_0x1d6f2c;}}async[_0x29c944(0xf1)](_0x56a8e6,_0x54dad9){const _0x11768d=_0x29c944;try{const _0x470ff8=await this[_0x11768d(0x101)][_0x11768d(0x119)](_0x56a8e6)[_0x11768d(0xf8)](),_0x1e41cd=await this[_0x11768d(0x101)][_0x11768d(0xb2)](_0x56a8e6)[_0x11768d(0xd4)](),_0x56f026=_0x1e41cd[0x0][_0x11768d(0xea)];this[_0x11768d(0x113)]=!0x0,this['id']=_0x470ff8['id'],_0x11768d(0xf4)in _0x470ff8?this[_0x11768d(0xd2)](_0x11768d(0x10b),_0x470ff8[_0x11768d(0xf4)],!0x0):this[_0x11768d(0xd2)](_0x11768d(0x10b),'',!0x0);const _0x1f2463=(await this[_0x11768d(0x10c)][_0x11768d(0x117)]())[_0x11768d(0xbf)](_0x5358a8=>_0x5358a8['id'][_0x11768d(0x111)]()===_0x56f026[_0x11768d(0x111)]());return this[_0x11768d(0xe6)]=_0x1f2463,this[_0x11768d(0xd2)](_0x11768d(0x122),{'selectedModel':_0x1f2463,'isDisabled':!0x0}),await this[_0x11768d(0xce)](_0x1e41cd,_0x54dad9,_0x56f026),this[_0x11768d(0x125)]=void 0x0,this;}catch(_0x354fe7){const _0x50f869=new _0xc44658(_0x11768d(0xcb),null,{'message':_0x354fe7[_0x11768d(0x110)],'conversationId':_0x56a8e6});throw _0x50f869[_0x11768d(0xcd)]=_0x354fe7[_0x11768d(0xcd)],this[_0x11768d(0xd2)](_0x11768d(0xfb),{'error':_0x50f869}),_0x50f869;}}async[_0x29c944(0xce)](_0x38ad25,_0x3214c3,_0x4711ed){const _0x29f76c=_0x29c944;let _0x207ef7;for(const _0x1f4740 of _0x38ad25)if(_0x29f76c(0xdb)===_0x1f4740[_0x29f76c(0xdd)]){const _0x179d19=await this[_0x29f76c(0xbb)](_0x1f4740),_0x459bce={'isReasoningEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0xfc)),'isWebSearchEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0x100))};_0x207ef7=this[_0x29f76c(0x116)]({'userMessage':_0x1f4740[_0x29f76c(0xb3)],'contextItems':_0x179d19,'capabilities':_0x459bce,'modelId':_0x4711ed,'attributes':_0x1f4740[_0x29f76c(0xbd)]}),this[_0x29f76c(0x125)]=_0x207ef7,this[_0x29f76c(0x104)][_0x29f76c(0xf3)](this[_0x29f76c(0x125)][_0x29f76c(0xef)]);}else{if(_0x29f76c(0xe2)===_0x1f4740[_0x29f76c(0xdd)]&&_0x207ef7){const _0x132dfb=[];for(const _0x2fc861 of _0x1f4740[_0x29f76c(0xb8)])switch(_0x2fc861[_0x29f76c(0xc1)]){case _0x29f76c(0xbc):case _0x29f76c(0xb4):{const _0x43fb91=_0x207ef7[_0x29f76c(0xd6)]()?.[_0x29f76c(0xd1)]!==_0x3214c3;_0x207ef7[_0x29f76c(0xee)]=_0x207ef7[_0x29f76c(0x109)]({'type':_0x2fc861[_0x29f76c(0xc1)],'isDone':!0x0,'interactionId':_0x207ef7['id'],'areActionsDisabled':_0x43fb91}),_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x114)](_0x2fc861[_0x29f76c(0xb8)]),_0x132dfb[_0x29f76c(0xd0)]>0x0&&(_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x107)]=_0x132dfb[_0x29f76c(0xaf)](0x0));break;}case _0x29f76c(0xc2):_0x132dfb[_0x29f76c(0xc4)](_0x2fc861);break;case _0x29f76c(0xd3):{const {data:_0x57c421,attributes:_0xa175aa}=JSON[_0x29f76c(0x127)](_0x2fc861[_0x29f76c(0xb8)]);_0x207ef7[_0x29f76c(0x102)]({'toolName':_0x2fc861[_0x29f76c(0x10e)],'data':_0x57c421,'attributes':_0xa175aa});break;}}}}}async[_0x29c944(0xbb)](_0x2fa12e){const _0x3a6899=_0x29c944,_0xc76ad9=new Map();if(!_0x2fa12e[_0x3a6899(0xb8)])return _0xc76ad9;for(const _0x4c2e57 of _0x2fa12e[_0x3a6899(0xb8)]){const _0xb25bfa=await this[_0x3a6899(0x104)][_0x3a6899(0x11e)](_0x4c2e57);_0xb25bfa&&_0xc76ad9[_0x3a6899(0x128)](_0xb25bfa['id'],_0xb25bfa);}return _0xc76ad9;}async[_0x29c944(0xe1)]({userMessage:_0x29ff3e,attributes:_0x507364}){const _0x2bd811=_0x29c944;if(!this[_0x2bd811(0x113)])throw new _0xc44658(_0x2bd811(0xe0),null,{'conversation':this});if(this[_0x2bd811(0x125)])throw new _0xc44658(_0x2bd811(0xfe),null,{'conversation':this});try{const _0x2f1cb6=this[_0x2bd811(0x104)][_0x2bd811(0xfa)](),_0x27e640=this[_0x2bd811(0xae)][_0x2bd811(0x103)](),_0x2dc7ff=this[_0x2bd811(0xe6)]['id'];this[_0x2bd811(0x125)]=this[_0x2bd811(0x116)]({'userMessage':_0x29ff3e,'contextItems':_0x2f1cb6,'capabilities':_0x27e640,'modelId':_0x2dc7ff,'attributes':_0x507364}),await this[_0x2bd811(0x125)][_0x2bd811(0x105)](),this[_0x2bd811(0x104)][_0x2bd811(0xf3)](this[_0x2bd811(0x125)][_0x2bd811(0xef)]);}catch(_0x17d67b){if(_0x17d67b instanceof _0xc44658)this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':_0x17d67b});else{const _0x515098=_0x3872fb[_0x2bd811(0xed)](_0x17d67b[_0x2bd811(0xff)])||_0x2bd811(0xd8);this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':new _0xc44658(_0x515098,null,{'error':_0x17d67b})});}}finally{this[_0x2bd811(0x125)]?.[_0x2bd811(0x11c)](),this[_0x2bd811(0x125)]=void 0x0;}}[_0x29c944(0x116)]({userMessage:_0x131542,contextItems:_0x4259d7,capabilities:_0xd1d12f,modelId:_0x3507d8,attributes:_0x37c76}){const _0x5a148f=_0x29c944,_0x5e6c8b=new _0x3f78ca({'userMessage':_0x131542,'contextItems':_0x4259d7,'capabilities':_0xd1d12f,'conversationId':this['id'],'connector':this[_0x5a148f(0x101)],'editor':this[_0x5a148f(0x11a)][_0x5a148f(0x12a)]&&this[_0x5a148f(0x11a)][_0x5a148f(0x12a)](),'model':_0x3507d8,'attributes':_0x37c76});return _0x5e6c8b[_0x5a148f(0xf0)](..._0x4c09b0)['to'](this),this[_0x5a148f(0xb5)][_0x5a148f(0xc4)](_0x5e6c8b),this[_0x5a148f(0xd2)](_0x5a148f(0xc6),_0x5e6c8b),_0x5e6c8b;}[_0x29c944(0x112)](_0x19ce91){const _0xfdca83=_0x29c944;return this[_0xfdca83(0xb5)][_0xfdca83(0xbf)](_0xe1bdc1=>_0xe1bdc1['id']===_0x19ce91);}[_0x29c944(0x108)](_0x5810a2){const _0x5836ba=_0x29c944,_0x386896=this[_0x5836ba(0x112)](_0x5810a2);_0x386896&&(_0x386896[_0x5836ba(0xc3)](),this[_0x5836ba(0xb5)][_0x5836ba(0xaf)](this[_0x5836ba(0xb5)][_0x5836ba(0x11b)](_0x386896),0x1));}get[_0x29c944(0x11f)](){const _0x5e5c57=_0x29c944;return this[_0x5e5c57(0xb5)][this[_0x5e5c57(0xb5)][_0x5e5c57(0xd0)]-0x1];}[_0x29c944(0x118)](_0x299306){const _0x2e8a2b=_0x29c944;this[_0x2e8a2b(0x104)][_0x2e8a2b(0x118)](_0x299306);}async[_0x29c944(0xd7)]({content:_0x57be18,version:_0x4dd76f,sessionId:_0x5839ca,selections:_0x38c8e7}){const _0x2812e8=_0x29c944;await this[_0x2812e8(0x104)][_0x2812e8(0xf7)](_0x57be18,_0x4dd76f,_0x5839ca,_0x38c8e7);}[_0x29c944(0xe8)](){const _0x5b92cd=_0x29c944;return this[_0x5b92cd(0x125)]?.[_0x5b92cd(0xd6)]()?.[_0x5b92cd(0xb8)]||'';}[_0x29c944(0xfd)](_0x4310a5){const _0x41dc9a=_0x29c944;this[_0x41dc9a(0x104)][_0x41dc9a(0xfd)](_0x4310a5);}[_0x29c944(0xe3)](){const _0x5c5334=_0x29c944;this[_0x5c5334(0x104)][_0x5c5334(0xe3)]();}[_0x29c944(0x129)](_0xca1e35){const _0xfec85f=_0x29c944;this[_0xfec85f(0x104)][_0xfec85f(0x129)](_0xca1e35);}[_0x29c944(0xba)](_0x515225){const _0x255156=_0x29c944;this[_0x255156(0x104)][_0x255156(0xba)](_0x515225);}[_0x29c944(0x10d)](_0x28df54){const _0x196a72=_0x29c944;this[_0x196a72(0x104)][_0x196a72(0x10d)](_0x28df54);}[_0x29c944(0x126)](_0x31c9b5,_0x1fcc2a){const _0x5d65ff=_0x29c944;this[_0x5d65ff(0x104)][_0x5d65ff(0x126)](_0x31c9b5,_0x1fcc2a);}[_0x29c944(0xc9)](_0x44e923,_0x1f50e9,_0x497b81){const _0x2b74a0=_0x29c944;return this[_0x2b74a0(0x104)][_0x2b74a0(0xc9)](_0x44e923,_0x1f50e9,_0x497b81);}[_0x29c944(0xb0)](_0xa4fef7){const _0xfc19f5=_0x29c944;this[_0xfc19f5(0x104)][_0xfc19f5(0xb0)](_0xa4fef7);}[_0x29c944(0xbe)](_0x524f90){const _0x77a96e=_0x29c944;this[_0x77a96e(0xae)][_0x77a96e(0xbe)](_0x524f90);}[_0x29c944(0x123)](){const _0x5a7cd1=_0x29c944;this[_0x5a7cd1(0xae)][_0x5a7cd1(0x123)]();}[_0x29c944(0xc8)](_0xedb170){const _0x25072e=_0x29c944;this[_0x25072e(0xae)][_0x25072e(0xc8)](_0xedb170);}[_0x29c944(0xcf)](){const _0x25cccd=_0x29c944;this[_0x25cccd(0xae)][_0x25cccd(0xcf)]();}[_0x29c944(0xeb)](){const _0x27ed7c=_0x29c944;return this[_0x27ed7c(0x104)][_0x27ed7c(0xeb)]();}[_0x29c944(0xec)](){const _0x5ed7b3=_0x29c944;return this[_0x5ed7b3(0x104)][_0x5ed7b3(0xec)]();}[_0x29c944(0x120)](){const _0x652adb=_0x29c944;return this[_0x652adb(0x104)][_0x652adb(0x120)]();}async[_0x29c944(0x10f)](_0x5559e5){const _0x1a39ed=_0x29c944;_0x5559e5?!0x1===await this[_0x1a39ed(0x10c)][_0x1a39ed(0xe9)](_0x5559e5)&&(_0xc1c3e7(_0x1a39ed(0xc0),{'conversation':this,'model':_0x5559e5}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]):(_0xc1c3e7(_0x1a39ed(0x106),{'conversation':this}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]),_0x5559e5['id']!==this[_0x1a39ed(0xe6)]?.['id']&&(this[_0x1a39ed(0xe6)]=_0x5559e5,this[_0x1a39ed(0xae)][_0x1a39ed(0x115)](),this[_0x1a39ed(0xd2)](_0x1a39ed(0x122),{'selectedModel':_0x5559e5}));}}
23
+ const _0x227eb3=_0x54ec;(function(_0x14f0d5,_0x1ba811){const _0x279f3e=_0x54ec,_0x36ab5f=_0x14f0d5();while(!![]){try{const _0x507f0c=-parseInt(_0x279f3e(0x115))/0x1+-parseInt(_0x279f3e(0x152))/0x2+parseInt(_0x279f3e(0x113))/0x3*(parseInt(_0x279f3e(0x11f))/0x4)+parseInt(_0x279f3e(0x107))/0x5+parseInt(_0x279f3e(0x103))/0x6+-parseInt(_0x279f3e(0x14c))/0x7+-parseInt(_0x279f3e(0x148))/0x8*(-parseInt(_0x279f3e(0x165))/0x9);if(_0x507f0c===_0x1ba811)break;else _0x36ab5f['push'](_0x36ab5f['shift']());}catch(_0x2f2450){_0x36ab5f['push'](_0x36ab5f['shift']());}}}(_0x211b,0xef88e));import{CKEditorError as _0x11caed,EmitterMixin as _0xe556ce,logWarning as _0x24f1f1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0xe864cf}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3048ee,AI_CONTEXT_MODEL_EVENT_NAMES as _0x407828}from'./aichatcontext.js';function _0x211b(){const _0x1007e8=['interactions','getModel','modification','splice','appendContent','indexOf','get','group','assistant','stack','addUrlToContext','content','reset','text','getEditor','setReasoning','user','addResourceToContext','_handleToolResultData','ai-chat-conversation-start-failed','error','stop','lastInteraction','modelSelected','isFromHistory','_extractContextItems','set','ai-chat-handle-user-interaction-start-failed','addToolItemToContext','title','connector','getAvailableModels','currentInteraction','hasOwn','loadSourceResources','56QvTFqd','options','setModel','ai-chat-conversation-init-failed','9206960mxDFsF','fetchConversationMessages','parse','push','createReply','chatModels','212522ZmkbFK','handleUserInteraction','conversationInitialized','isSelectionInContext','attributes','type','getPendingContextItems','toggleReasoning','conversationId','init','selectedModelId','isCurrentDocumentInConversation','isCurrentDocumentInContext','find','reasoning','ai-chat-conversation-already-started','getMessages','fetchConversation','role','1568619dqoduo','addToConversationContext','addFilesToContext','webSearch','addSelectionToContext','_processMessagesToInteractions','prompt','sessionId','capabilities','ai-chat-conversation-set-model-not-available','conversationStarted','ai-chat-conversation-start-no-model-selected','getAll','toLowerCase','currentReply','startConversation','interactionCreated','contextItems','selectedModel','removeFromContext','toggleWebSearch','setConversationTitle','getCapabilitiesConfig','chatCapabilities','getCurrentDocumentContext','getDocumentContext','removeInteraction','6333462givBID','mcp-tool-result','isStarted','fire','1189025PKfuMU','sources','createInteraction','destroy','getConversation','updateCurrentDocumentInContext','url','load','delegate','ai-chat-conversation-init-from-id-failed','setWebSearch','start','3wCsPFI','chatContext','1748713pOiFPZ','addCurrentDocumentToContext','populateFromMessage','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','isAvailable','updateCurrentDocument','getInteraction','length','code','6551876ndMmhZ','message','toolName','model','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext'];_0x211b=function(){return _0x1007e8;};return _0x211b();}import{AICapabilities as _0x306931,CAPABILITIES_MODEL_EVENT_NAMES as _0x3d2f1f}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f14c6}from'./aichatinteraction.js';function _0x54ec(_0x5120e2,_0x1049f4){const _0x211b4d=_0x211b();return _0x54ec=function(_0x54ecf7,_0x1a20f9){_0x54ecf7=_0x54ecf7-0xf8;let _0x1db3ce=_0x211b4d[_0x54ecf7];return _0x1db3ce;},_0x54ec(_0x5120e2,_0x1049f4);}import{errorsMap as _0x193fa7}from'../../errorsmap.js';export class AIChatConversation extends _0xe556ce(){['id'];[_0x227eb3(0x105)]=!0x1;[_0x227eb3(0x13d)];[_0x227eb3(0x125)]=[];[_0x227eb3(0x145)];[_0x227eb3(0xfa)];[_0x227eb3(0x143)];[_0x227eb3(0x149)];constructor(_0x30cfd8){const _0x505e1d=_0x227eb3;super(),this[_0x505e1d(0x149)]=_0x30cfd8,this[_0x505e1d(0x143)]=_0x30cfd8[_0x505e1d(0x143)],this[_0x505e1d(0x151)]=_0x30cfd8[_0x505e1d(0x151)],this['id']=_0x30cfd8[_0x505e1d(0x15a)],this[_0x505e1d(0x13d)]=_0x30cfd8[_0x505e1d(0x13d)];}async[_0x227eb3(0x15b)](_0x33de94){const _0x5bea3c=_0x227eb3;try{this[_0x5bea3c(0x114)]=new _0x3048ee({'connector':this[_0x5bea3c(0x143)],'config':_0x33de94,'ownerId':this['id']}),this[_0x5bea3c(0x114)][_0x5bea3c(0x10f)](..._0x407828)['to'](this),this[_0x5bea3c(0x114)][_0x5bea3c(0x15b)](),this[_0x5bea3c(0xff)]=new _0x306931(),this[_0x5bea3c(0xff)][_0x5bea3c(0x10f)](..._0x3d2f1f)['to'](this),this[_0x5bea3c(0xff)][_0x5bea3c(0x15b)]();const _0x53ee68=await this[_0x5bea3c(0x151)][_0x5bea3c(0x144)]();this[_0x5bea3c(0x106)](_0x5bea3c(0x154),{'availableModels':_0x53ee68});const _0x4535dd=await this[_0x5bea3c(0x151)][_0x5bea3c(0x126)](this[_0x5bea3c(0x149)][_0x5bea3c(0x15c)]);_0x4535dd&&await this[_0x5bea3c(0x14a)](_0x4535dd);}catch(_0x3367ac){const _0x1359ce=new _0x11caed(_0x5bea3c(0x14b),null,{'message':_0x3367ac[_0x5bea3c(0x120)]||_0x3367ac});_0x1359ce[_0x5bea3c(0x12e)]=_0x3367ac[_0x5bea3c(0x12e)],this[_0x5bea3c(0x106)](_0x5bea3c(0x139),{'error':_0x1359ce});}}async[_0x227eb3(0x112)](){const _0x211054=_0x227eb3;if(this[_0x211054(0x105)])throw new _0x11caed(_0x211054(0x161),null,{'conversation':this});if(!this[_0x211054(0xfa)])throw new _0x11caed(_0x211054(0x170),null,{'conversation':this});try{const {id:_0x4f62e3}=await this[_0x211054(0x143)][_0x211054(0x174)](this['id'],this[_0x211054(0x149)][_0x211054(0x12c)])[_0x211054(0x10b)]();this['id']=_0x4f62e3,this[_0x211054(0x105)]=!0x0,this[_0x211054(0x106)](_0x211054(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x211054(0xfa)]});}catch(_0x3659e5){const _0x50a5b1=new _0x11caed(_0x211054(0x138),null,{'message':_0x3659e5[_0x211054(0x120)],'conversationId':this['id']});throw _0x50a5b1[_0x211054(0x12e)]=_0x3659e5[_0x211054(0x12e)],this[_0x211054(0x106)](_0x211054(0x139),{'error':_0x50a5b1}),_0x50a5b1;}}async[_0x227eb3(0x10e)](_0x2254ff,_0x35dede){const _0x169d1c=_0x227eb3;try{const _0x20af88=await this[_0x169d1c(0x143)][_0x169d1c(0x163)](_0x2254ff)[_0x169d1c(0x10b)](),_0x251d96=await this[_0x169d1c(0x143)][_0x169d1c(0x14d)](_0x2254ff)[_0x169d1c(0x162)](),_0x5ae853=_0x251d96[0x0][_0x169d1c(0x122)];this[_0x169d1c(0x105)]=!0x0,this['id']=_0x20af88['id'],_0x169d1c(0x142)in _0x20af88?this[_0x169d1c(0x106)](_0x169d1c(0xfd),_0x20af88[_0x169d1c(0x142)],!0x0):this[_0x169d1c(0x106)](_0x169d1c(0xfd),'',!0x0);const _0xc0369b=(await this[_0x169d1c(0x151)][_0x169d1c(0x171)]())[_0x169d1c(0x15f)](_0x4098e5=>_0x4098e5['id'][_0x169d1c(0x172)]()===_0x5ae853[_0x169d1c(0x172)]());return this[_0x169d1c(0xfa)]=_0xc0369b,this[_0x169d1c(0x106)](_0x169d1c(0x13c),{'selectedModel':_0xc0369b,'isDisabled':!0x0}),await this[_0x169d1c(0x16a)](_0x251d96,_0x35dede,_0x5ae853),this[_0x169d1c(0x145)]=void 0x0,this;}catch(_0x17a699){const _0x533e6=new _0x11caed(_0x169d1c(0x110),null,{'message':_0x17a699[_0x169d1c(0x120)],'conversationId':_0x2254ff});throw _0x533e6[_0x169d1c(0x12e)]=_0x17a699[_0x169d1c(0x12e)],this[_0x169d1c(0x106)](_0x169d1c(0x139),{'error':_0x533e6}),_0x533e6;}}async[_0x227eb3(0x16a)](_0x4c6c86,_0x4f2c0b,_0x4ea6a0){const _0x355f4f=_0x227eb3;let _0xd0434b;for(const _0x18c8d2 of _0x4c6c86)if(_0x355f4f(0x135)===_0x18c8d2[_0x355f4f(0x164)]){const _0x4c85c1=await this[_0x355f4f(0x13e)](_0x18c8d2),_0xe4b1c6={'isReasoningEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x160)),'isWebSearchEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x168))};_0xd0434b=this[_0x355f4f(0x109)]({'userMessage':_0x18c8d2[_0x355f4f(0x16b)],'contextItems':_0x4c85c1,'capabilities':_0xe4b1c6,'modelId':_0x4ea6a0,'attributes':_0x18c8d2[_0x355f4f(0x156)]}),this[_0x355f4f(0x145)]=_0xd0434b,this[_0x355f4f(0x114)][_0x355f4f(0x166)](this[_0x355f4f(0x145)][_0x355f4f(0xf9)]);}else{if(_0x355f4f(0x12d)===_0x18c8d2[_0x355f4f(0x164)]&&_0xd0434b){const _0x490521=[];for(const _0x4ab66f of _0x18c8d2[_0x355f4f(0x130)])switch(_0x4ab66f[_0x355f4f(0x157)]){case _0x355f4f(0x132):case _0x355f4f(0x127):{const _0x4b62a0=_0xd0434b[_0x355f4f(0x101)]()?.[_0x355f4f(0x16c)]!==_0x4f2c0b;_0xd0434b[_0x355f4f(0x173)]=_0xd0434b[_0x355f4f(0x150)]({'type':_0x4ab66f[_0x355f4f(0x157)],'isDone':!0x0,'interactionId':_0xd0434b['id'],'areActionsDisabled':_0x4b62a0}),_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x129)](_0x4ab66f[_0x355f4f(0x130)]),_0x490521[_0x355f4f(0x11d)]>0x0&&(_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x108)]=_0x490521[_0x355f4f(0x128)](0x0));break;}case _0x355f4f(0x10d):_0x490521[_0x355f4f(0x14f)](_0x4ab66f);break;case _0x355f4f(0x104):{const {data:_0x45d3a0,attributes:_0x1ebaba}=JSON[_0x355f4f(0x14e)](_0x4ab66f[_0x355f4f(0x130)]);_0xd0434b[_0x355f4f(0x137)]({'toolName':_0x4ab66f[_0x355f4f(0x121)],'data':_0x45d3a0,'attributes':_0x1ebaba});break;}}}}}async[_0x227eb3(0x13e)](_0x5a43ae){const _0xfca846=_0x227eb3,_0x242410=new Map();if(!_0x5a43ae[_0xfca846(0x130)])return _0x242410;for(const _0x12fde3 of _0x5a43ae[_0xfca846(0x130)]){const _0x515314=await this[_0xfca846(0x114)][_0xfca846(0x117)](_0x12fde3);_0x515314&&_0x242410[_0xfca846(0x13f)](_0x515314['id'],_0x515314);}return _0x242410;}async[_0x227eb3(0x153)]({userMessage:_0x5574ea,attributes:_0x3e8215}){const _0x1a7050=_0x227eb3;if(!this[_0x1a7050(0x105)])throw new _0x11caed(_0x1a7050(0x119),null,{'conversation':this});if(this[_0x1a7050(0x145)])throw new _0x11caed(_0x1a7050(0x123),null,{'conversation':this});try{const _0x109924=this[_0x1a7050(0x114)][_0x1a7050(0x158)](),_0x46daf6=this[_0x1a7050(0xff)][_0x1a7050(0xfe)](),_0x476af2=this[_0x1a7050(0xfa)]['id'];this[_0x1a7050(0x145)]=this[_0x1a7050(0x109)]({'userMessage':_0x5574ea,'contextItems':_0x109924,'capabilities':_0x46daf6,'modelId':_0x476af2,'attributes':_0x3e8215}),await this[_0x1a7050(0x145)][_0x1a7050(0x112)](),this[_0x1a7050(0x114)][_0x1a7050(0x166)](this[_0x1a7050(0x145)][_0x1a7050(0xf9)]);}catch(_0x51a560){if(_0x51a560 instanceof _0x11caed)this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':_0x51a560});else{const _0x1ae333=_0x193fa7[_0x1a7050(0x12b)](_0x51a560[_0x1a7050(0x11e)])||_0x1a7050(0x140);this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':new _0x11caed(_0x1ae333,null,{'error':_0x51a560})});}}finally{this[_0x1a7050(0x145)]?.[_0x1a7050(0x13a)](),this[_0x1a7050(0x145)]=void 0x0;}}[_0x227eb3(0x109)]({userMessage:_0xbd40aa,contextItems:_0x4fc430,capabilities:_0xdb0733,modelId:_0x17e4ba,attributes:_0x2d1810}){const _0x3ac7ae=_0x227eb3,_0x4a5c76=new _0x5f14c6({'userMessage':_0xbd40aa,'contextItems':_0x4fc430,'capabilities':_0xdb0733,'conversationId':this['id'],'connector':this[_0x3ac7ae(0x143)],'editor':this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)]&&this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)](),'model':_0x17e4ba,'attributes':_0x2d1810});return _0x4a5c76[_0x3ac7ae(0x10f)](..._0xe864cf)['to'](this),this[_0x3ac7ae(0x125)][_0x3ac7ae(0x14f)](_0x4a5c76),this[_0x3ac7ae(0x106)](_0x3ac7ae(0xf8),_0x4a5c76),_0x4a5c76;}[_0x227eb3(0x11c)](_0x26b331){const _0x4b98bc=_0x227eb3;return this[_0x4b98bc(0x125)][_0x4b98bc(0x15f)](_0x18ee77=>_0x18ee77['id']===_0x26b331);}[_0x227eb3(0x102)](_0x238295){const _0x3a8a93=_0x227eb3,_0x38eb46=this[_0x3a8a93(0x11c)](_0x238295);_0x38eb46&&(_0x38eb46[_0x3a8a93(0x10a)](),this[_0x3a8a93(0x125)][_0x3a8a93(0x128)](this[_0x3a8a93(0x125)][_0x3a8a93(0x12a)](_0x38eb46),0x1));}get[_0x227eb3(0x13b)](){const _0x264577=_0x227eb3;return this[_0x264577(0x125)][this[_0x264577(0x125)][_0x264577(0x11d)]-0x1];}[_0x227eb3(0x116)](_0x28b0f6){const _0xc16a21=_0x227eb3;this[_0xc16a21(0x114)][_0xc16a21(0x116)](_0x28b0f6);}async[_0x227eb3(0x10c)]({content:_0x5a2404,version:_0x28bb1a,sessionId:_0xb8a592,selections:_0x28fa3e}){const _0x146fcb=_0x227eb3;await this[_0x146fcb(0x114)][_0x146fcb(0x11b)](_0x5a2404,_0x28bb1a,_0xb8a592,_0x28fa3e);}[_0x227eb3(0x100)](){const _0x367450=_0x227eb3;return this[_0x367450(0x145)]?.[_0x367450(0x101)]()?.[_0x367450(0x130)]||'';}[_0x227eb3(0x169)](_0x389889){const _0x1423dd=_0x227eb3;this[_0x1423dd(0x114)][_0x1423dd(0x169)](_0x389889);}[_0x227eb3(0x124)](){const _0x1fb2c0=_0x227eb3;this[_0x1fb2c0(0x114)][_0x1fb2c0(0x124)]();}[_0x227eb3(0x167)](_0x158abe){const _0x362991=_0x227eb3;this[_0x362991(0x114)][_0x362991(0x167)](_0x158abe);}[_0x227eb3(0x12f)](_0x2978b0){const _0x4637ed=_0x227eb3;this[_0x4637ed(0x114)][_0x4637ed(0x12f)](_0x2978b0);}[_0x227eb3(0x141)](_0x30684e){const _0x11afb9=_0x227eb3;this[_0x11afb9(0x114)][_0x11afb9(0x141)](_0x30684e);}[_0x227eb3(0x136)](_0x321428,_0x66c011){const _0x561b92=_0x227eb3;this[_0x561b92(0x114)][_0x561b92(0x136)](_0x321428,_0x66c011);}[_0x227eb3(0x147)](_0x403298,_0x29eb0c,_0x28fb45){const _0xb01973=_0x227eb3;return this[_0xb01973(0x114)][_0xb01973(0x147)](_0x403298,_0x29eb0c,_0x28fb45);}[_0x227eb3(0xfb)](_0x2cf6f3){const _0x2530e5=_0x227eb3;this[_0x2530e5(0x114)][_0x2530e5(0xfb)](_0x2cf6f3);}[_0x227eb3(0x111)](_0x158240){const _0x4e3eab=_0x227eb3;this[_0x4e3eab(0xff)][_0x4e3eab(0x111)](_0x158240);}[_0x227eb3(0xfc)](){const _0x3862aa=_0x227eb3;this[_0x3862aa(0xff)][_0x3862aa(0xfc)]();}[_0x227eb3(0x134)](_0x5bfedf){const _0x3df5b0=_0x227eb3;this[_0x3df5b0(0xff)][_0x3df5b0(0x134)](_0x5bfedf);}[_0x227eb3(0x159)](){const _0x10929d=_0x227eb3;this[_0x10929d(0xff)][_0x10929d(0x159)]();}[_0x227eb3(0x15e)](){const _0x2688a4=_0x227eb3;return this[_0x2688a4(0x114)][_0x2688a4(0x15e)]();}[_0x227eb3(0x15d)](){const _0x2fc778=_0x227eb3;return this[_0x2fc778(0x114)][_0x2fc778(0x15d)]();}[_0x227eb3(0x155)](){const _0xa9c3a8=_0x227eb3;return this[_0xa9c3a8(0x114)][_0xa9c3a8(0x155)]();}async[_0x227eb3(0x14a)](_0x7e6ebc){const _0xa469b2=_0x227eb3;_0x7e6ebc?!0x1===await this[_0xa469b2(0x151)][_0xa469b2(0x11a)](_0x7e6ebc)&&(_0x24f1f1(_0xa469b2(0x16e),{'conversation':this,'model':_0x7e6ebc}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]):(_0x24f1f1(_0xa469b2(0x118),{'conversation':this}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]),_0x7e6ebc['id']!==this[_0xa469b2(0xfa)]?.['id']&&(this[_0xa469b2(0xfa)]=_0x7e6ebc,this[_0xa469b2(0xff)][_0xa469b2(0x131)](),this[_0xa469b2(0x106)](_0xa469b2(0x13c),{'selectedModel':_0x7e6ebc}));}}