@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x16c24=_0x5a47;(function(_0x5189ac,_0x52fd95){const _0x59c99e=_0x5a47,_0x5e4d21=_0x5189ac();while(!![]){try{const _0x3d001e=-parseInt(_0x59c99e(0x1b6))/0x1*(parseInt(_0x59c99e(0x1ab))/0x2)+-parseInt(_0x59c99e(0x1fc))/0x3+parseInt(_0x59c99e(0x1cf))/0x4+-parseInt(_0x59c99e(0x1b4))/0x5*(parseInt(_0x59c99e(0x1ef))/0x6)+-parseInt(_0x59c99e(0x1e4))/0x7*(-parseInt(_0x59c99e(0x201))/0x8)+parseInt(_0x59c99e(0x1aa))/0x9+parseInt(_0x59c99e(0x1ad))/0xa;if(_0x3d001e===_0x52fd95)break;else _0x5e4d21['push'](_0x5e4d21['shift']());}catch(_0x2bf281){_0x5e4d21['push'](_0x5e4d21['shift']());}}}(_0x50b6,0x4b3d4));import{ContextPlugin as _0x1e7e70}from'ckeditor5/src/core.js';import{AIConnector as _0x183cf1}from'../aicore/aiconnector.js';import{AIEditing as _0x465d98}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfa1061,AIBalloonView as _0x5ee291}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x948e32}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4cb6bf,Rect as _0x2be817,scrollViewportToShowTarget as _0x5a331e}from'ckeditor5/src/utils.js';function _0x5a47(_0x39ac69,_0x551594){const _0x50b674=_0x50b6();return _0x5a47=function(_0x5a47de,_0x3cd1f9){_0x5a47de=_0x5a47de-0x19c;let _0x2f0940=_0x50b674[_0x5a47de];return _0x2f0940;},_0x5a47(_0x39ac69,_0x551594);}import{getEditorFromContext as _0x2ce5b7}from'../aicore/utils/geteditorfromcontext.js';function _0x50b6(){const _0x46463c=['close','locale','stopListening','getIntersection','left','998588EyLIit','startAutoScroll','getVisible','ranges','editing','stopAutoScroll','bottom','ai-selection','height','showFakeVisualSelection','model','value','getChangedMarkers','markers','ai-selection:','window','isOpen','_getSelectionElements','updateContent','$graveyard','startsWith','14OJfvyw','_cleanupMarkerRemovalListener','get','\x20ai-balloon-rotator','open','headerView','getMarkersGroup','top','index','hideFakeVisualSelection','icon','579786nOfIMU','pluginName','selectionRemoved','end','ai-balloon-selection','_setupVisualSelection','ai-balloon-','trackChanges','AI_ACTIONS_SELECTION_REMOVED_ERROR','balloonView','AIEditing','context','change','1170270OCtXDv','_calculateOptimalTopPosition','commands','dialogClosed','requires','1107160NbLsHP','aiBalloon','once','showBlockingError','iconView','AIBalloon','_updateBalloon','getBoundingRect','_pendingRenderCallback','start','setupRotator','width','isOfficialPlugin','_isUpdatingMarkers','view','listenTo','delegate','bind','render','isPremiumPlugin','ai.availableReplyActions','filter','4913442hmbphF','398QfmzDK','isTrackChangesOn','7927310kZaflK','root','_config','Dialog','content','_showDialog','_calculateDialogPosition','30hSnYTk','fire','2950ZSvCOs','off','hide','rootName','mainView','round','length','_setupMarkerRemovalListener','isEqual','ai-balloon','document','differ','label','config','plugins','show','max','showRotator','updatePosition','title'];_0x50b6=function(){return _0x46463c;};return _0x50b6();}import{AI_REPLY_ACTIONS as _0x2bd733}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4819ab}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfa1061,_0x16c24(0x1ff),_0x16c24(0x1f1)];const z=0xa;export class AIBalloon extends _0x1e7e70{static get[_0x16c24(0x200)](){return[_0x183cf1,_0x465d98];}static get[_0x16c24(0x1f0)](){const _0x2ef6ae=_0x16c24;return _0x2ef6ae(0x206);}static get[_0x16c24(0x1a0)](){return!0x0;}static get[_0x16c24(0x1a7)](){return!0x0;}[_0x16c24(0x1df)]=!0x1;[_0x16c24(0x1af)];[_0x16c24(0x1a1)]=!0x1;[_0x16c24(0x19c)]=null;[_0x16c24(0x1e8)](_0x3b36b7){const _0x155f5f=_0x16c24,_0x13bb80=_0x2ce5b7(this[_0x155f5f(0x1fa)]);if(this[_0x155f5f(0x1af)]=_0x3b36b7,this[_0x155f5f(0x1df)])return void this[_0x155f5f(0x207)](_0x3b36b7);const _0x1f26ae=this[_0x155f5f(0x1fa)][_0x155f5f(0x1c3)][_0x155f5f(0x1e6)](_0x155f5f(0x1a8))||[..._0x2bd733],_0x17c1b9=_0x13bb80?.[_0x155f5f(0x1fe)][_0x155f5f(0x1e6)](_0x155f5f(0x1f6)),_0x3f3be1=_0x17c1b9?.[_0x155f5f(0x1da)];this[_0x155f5f(0x1f8)]=new _0x5ee291(_0x13bb80[_0x155f5f(0x1cb)],_0x3b36b7,_0x1f26ae,!!_0x3f3be1),this[_0x155f5f(0x1f8)][_0x155f5f(0x1a4)](..._0xfa1061)['to'](this),_0x17c1b9&&this[_0x155f5f(0x1f8)][_0x155f5f(0x1a5)](_0x155f5f(0x1ac))['to'](_0x17c1b9,_0x155f5f(0x1da)),this[_0x155f5f(0x1b2)](_0x3b36b7);}[_0x16c24(0x1ca)](){const _0x3bba4a=_0x16c24;_0x2ce5b7(this[_0x3bba4a(0x1fa)])[_0x3bba4a(0x1c4)][_0x3bba4a(0x1e6)](_0x3bba4a(0x1b0))[_0x3bba4a(0x1b8)]();}[_0x16c24(0x1d0)](){const _0x2d4de7=_0x16c24;this[_0x2d4de7(0x1f8)]&&this[_0x2d4de7(0x1f8)][_0x2d4de7(0x1d0)]();}[_0x16c24(0x1d4)](){const _0xde7007=_0x16c24;this[_0xde7007(0x1f8)]&&this[_0xde7007(0x1f8)][_0xde7007(0x1d4)]();}[_0x16c24(0x207)](_0x313f16){const _0x5b3598=_0x16c24,_0x39ceb2=_0x2ce5b7(this[_0x5b3598(0x1fa)]),_0x1619f9=_0x39ceb2[_0x5b3598(0x1c4)][_0x5b3598(0x1e6)](_0x5b3598(0x1b0));this[_0x5b3598(0x19c)]&&(_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x1b7)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]),this[_0x5b3598(0x19c)]=null),this[_0x5b3598(0x1a1)]=!0x0,_0x1619f9[_0x5b3598(0x1a2)]?.[_0x5b3598(0x1e9)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x1c2)]=_0x313f16[_0x5b3598(0x1c9)],_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)]&&_0x313f16[_0x5b3598(0x1ee)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)][_0x5b3598(0x1b1)]=_0x313f16[_0x5b3598(0x1ee)])),this[_0x5b3598(0x1f8)][_0x5b3598(0x1e1)](_0x313f16[_0x5b3598(0x1ba)]),this[_0x5b3598(0x1f4)](_0x313f16[_0x5b3598(0x1d2)],_0x313f16[_0x5b3598(0x1ec)]),this[_0x5b3598(0x19c)]=()=>{const _0x12986e=_0x5b3598;this[_0x12986e(0x1a1)]=!0x1,this[_0x12986e(0x19c)]=null,_0x1619f9[_0x12986e(0x1a2)]&&_0x1619f9[_0x12986e(0x1a2)][_0x12986e(0x1c8)]();},_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x203)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]);}[_0x16c24(0x1f4)](_0x205756,_0x17cbdc){const _0x3a1e84=_0x16c24;this[_0x3a1e84(0x1fa)][_0x3a1e84(0x1c4)][_0x3a1e84(0x1e6)](_0x465d98)[_0x3a1e84(0x1d8)](_0x205756,_0x3a1e84(0x1f5)+_0x17cbdc,!0x0,!0x0);}[_0x16c24(0x1b2)](_0x392837){const _0x589a64=_0x16c24,_0x2ae398=_0x2ce5b7(this[_0x589a64(0x1fa)]);this[_0x589a64(0x1f4)](_0x392837[_0x589a64(0x1d2)],_0x392837[_0x589a64(0x1ec)]);const _0x1c51e3=this[_0x589a64(0x1e0)]();_0x1c51e3&&_0x1c51e3[0x0]&&_0x5a331e({'target':_0x1c51e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2ae398[_0x589a64(0x1c4)][_0x589a64(0x1e6)](_0x589a64(0x1b0))[_0x589a64(0x1c5)]({'title':_0x392837[_0x589a64(0x1c9)],'icon':_0x392837[_0x589a64(0x1ee)],'hasCloseButton':!0x0,'id':_0x589a64(0x202),'position':this[_0x589a64(0x1b3)][_0x589a64(0x1a5)](this),'className':_0x589a64(0x1bf)+(_0x392837[_0x589a64(0x1c7)]?_0x589a64(0x1e7):''),'content':this[_0x589a64(0x1f8)],'onShow':_0x9c78f4=>{const _0x34b74b=_0x589a64;_0x392837[_0x34b74b(0x1c7)]&&this[_0x34b74b(0x1f8)][_0x34b74b(0x19e)](_0x9c78f4),this[_0x34b74b(0x1bd)](),this[_0x34b74b(0x1df)]=!0x0;},'onHide':()=>{const _0x2e15d4=_0x589a64;this[_0x2e15d4(0x1fa)][_0x2e15d4(0x1c4)][_0x2e15d4(0x1e6)](_0x2e15d4(0x1f9))[_0x2e15d4(0x1ed)](_0x2e15d4(0x1f5)+this[_0x2e15d4(0x1af)][_0x2e15d4(0x1ec)]),this[_0x2e15d4(0x1e5)](),this[_0x2e15d4(0x1b5)](_0x2e15d4(0x1ff)),this[_0x2e15d4(0x1df)]=!0x1;}});}[_0x16c24(0x1b3)](_0x2c69cb,_0xd2cde5){const _0x44ee04=_0x16c24;if(!_0xd2cde5)return null;const _0x25279b=this[_0x44ee04(0x1e0)]();if(!_0x25279b||0x0===_0x25279b[_0x44ee04(0x1bc)])return{'left':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),'top':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1eb)]+_0xd2cde5[_0x44ee04(0x1d7)]/0x2-_0x2c69cb[_0x44ee04(0x1d7)]/0x2)};const _0x396366=Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),_0x280edf=new _0x2be817(_0x25279b[0x0]),_0x51d868=new _0x2be817(_0x25279b[_0x25279b[_0x44ee04(0x1bc)]-0x1]),_0x4ec5c6=_0x2c69cb[_0x44ee04(0x1d7)],_0x265736=this[_0x44ee04(0x1af)][_0x44ee04(0x1c7)]?0x8:0x0;return{'left':_0x396366,'top':this[_0x44ee04(0x1fd)](_0x280edf,_0x51d868,_0x4ec5c6,_0x265736,_0xd2cde5)};}[_0x16c24(0x1fd)](_0x22a6f0,_0x30cc2b,_0x1610ad,_0x403349=0x0,_0x5a3b02){const _0x39f91f=_0x16c24,_0x3d4709=_0x1610ad+_0x403349,_0x46b0ae=new _0x2be817(_0x4cb6bf[_0x39f91f(0x1de)]),_0x225114=[_0x22a6f0[_0x39f91f(0x1d1)](),_0x30cc2b[_0x39f91f(0x1d1)]()][_0x39f91f(0x1a9)](_0x28f1cc=>_0x28f1cc),_0xaaf492=_0x2be817[_0x39f91f(0x208)](_0x225114);if(!_0xaaf492)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x171150=_0x46b0ae[_0x39f91f(0x1cd)](_0xaaf492);if(!_0x171150)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x2f47d0=_0x5a3b02[_0x39f91f(0x1d1)](),_0x41440d=_0x2f47d0&&_0xaaf492[_0x39f91f(0x1d7)]>_0x2f47d0[_0x39f91f(0x1d7)],_0x3df6e7=_0x171150[_0x39f91f(0x1eb)],_0x276744=_0x171150[_0x39f91f(0x1d5)];if(_0x41440d){const _0x2aa47a=(_0x2f47d0||_0x46b0ae)[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2,_0x16fb5f=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)],_0x1488c7=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z;return _0x16fb5f>=_0x3d4709?Math[_0x39f91f(0x1c6)](z,_0x3df6e7-_0x3d4709-z):_0x1488c7>=_0x3d4709?_0x276744+z:Math[_0x39f91f(0x1c6)](z,_0x2aa47a);}const _0x2d4f1e=_0x3df6e7-_0x3d4709,_0x47184e=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z,_0x4f59b5=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)];let _0x10a700;if(_0x47184e>=_0x3d4709)_0x10a700=_0x276744+z;else{if(_0x4f59b5>=_0x3d4709)_0x10a700=_0x2d4f1e-z;else _0x10a700=_0x3df6e7+_0xaaf492[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2;}return _0x10a700;}[_0x16c24(0x1bd)](){const _0x3cf975=_0x16c24,_0x4cc44a=_0x2ce5b7(this[_0x3cf975(0x1fa)]);this[_0x3cf975(0x1a3)](_0x4cc44a[_0x3cf975(0x1d9)][_0x3cf975(0x1c0)],_0x3cf975(0x1fb),()=>{const _0x3f740a=_0x3cf975;if(this[_0x3f740a(0x1a1)])return;for(const {name:_0x5c4e17,data:{newRange:_0x515bbb}}of _0x4cc44a[_0x3f740a(0x1d9)][_0x3f740a(0x1c0)][_0x3f740a(0x1c1)][_0x3f740a(0x1db)]())if(_0x5c4e17[_0x3f740a(0x1e3)](_0x3f740a(0x1dd))&&(_0x515bbb&&(_0x515bbb[_0x3f740a(0x19d)][_0x3f740a(0x1be)](_0x515bbb[_0x3f740a(0x1f2)])||_0x3f740a(0x1e2)==_0x515bbb[_0x3f740a(0x1ae)][_0x3f740a(0x1b9)])||null==_0x515bbb)){const _0x21bca4=_0x4819ab(this[_0x3f740a(0x1fa)][_0x3f740a(0x1cb)],_0x3f740a(0x1f7));this[_0x3f740a(0x1f8)][_0x3f740a(0x204)](_0x21bca4),this[_0x3f740a(0x1b5)](_0x3f740a(0x1f1));}});}[_0x16c24(0x1e5)](){const _0x10def7=_0x16c24,_0x29efd9=_0x2ce5b7(this[_0x10def7(0x1fa)]);this[_0x10def7(0x1cc)](_0x29efd9[_0x10def7(0x1d9)][_0x10def7(0x1c0)]);}[_0x16c24(0x1e0)](){const _0x1fb326=_0x16c24,_0x5e47f5=_0x2ce5b7(this[_0x1fb326(0x1fa)]);return _0x948e32(_0x5e47f5[_0x1fb326(0x1d3)],[..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1d6)),..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1f3))]);}}
|
|
23
|
+
const _0x23a8c7=_0x34e6;(function(_0x5122f1,_0x521127){const _0x277f77=_0x34e6,_0x4e87ec=_0x5122f1();while(!![]){try{const _0x39477f=-parseInt(_0x277f77(0x15a))/0x1*(-parseInt(_0x277f77(0x193))/0x2)+-parseInt(_0x277f77(0x14d))/0x3*(-parseInt(_0x277f77(0x17a))/0x4)+parseInt(_0x277f77(0x176))/0x5*(-parseInt(_0x277f77(0x166))/0x6)+-parseInt(_0x277f77(0x18f))/0x7+-parseInt(_0x277f77(0x180))/0x8*(-parseInt(_0x277f77(0x169))/0x9)+-parseInt(_0x277f77(0x14c))/0xa+parseInt(_0x277f77(0x179))/0xb;if(_0x39477f===_0x521127)break;else _0x4e87ec['push'](_0x4e87ec['shift']());}catch(_0x2532f3){_0x4e87ec['push'](_0x4e87ec['shift']());}}}(_0x40ae,0x9da93));import{ContextPlugin as _0x25e319}from'ckeditor5/src/core.js';import{AIConnector as _0x3a5fb2}from'../aicore/aiconnector.js';import{AIEditing as _0x3662a5}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1de6a1,AIBalloonView as _0x32344d}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x34e6(_0x5200e7,_0x1379e1){const _0x40aee9=_0x40ae();return _0x34e6=function(_0x34e6c9,_0x10170a){_0x34e6c9=_0x34e6c9-0x130;let _0x14c295=_0x40aee9[_0x34e6c9];return _0x14c295;},_0x34e6(_0x5200e7,_0x1379e1);}import{getAllMarkersDomElementsSorted as _0x1c08af}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x89170a,Rect as _0x4db63e,scrollViewportToShowTarget as _0x588e1b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x42e812}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3b31d4}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x126373}from'../aicore/utils/common-translations.js';function _0x40ae(){const _0xb7764f=['content','markers','label','fire','getBoundingRect','ai-selection','root','getMarkersGroup','5BVduio','requires','getChangedMarkers','2551021spfwpD','11860earmyc','commands','view','_config','window','headerView','548072GpcSAW','document','plugins','isEqual','hideFakeVisualSelection','dialogClosed','isTrackChangesOn','height','ai.availableReplyActions','show','_setupMarkerRemovalListener','title','updatePosition','index','rootName','5391456KFOtoK','differ','startAutoScroll','_calculateOptimalTopPosition','16586dnKncp','selectionRemoved','getIntersection','AIEditing','stopAutoScroll','\x20ai-balloon-rotator','showFakeVisualSelection','setupRotator','mainView','close','editing','ai-balloon-selection','render','trackChanges','max','delegate','filter','_isUpdatingMarkers','balloonView','hide','get','_getSelectionElements','isOfficialPlugin','context','_calculateDialogPosition','_updateBalloon','end','ai-balloon-','locale','ranges','iconView','off','isOpen','Dialog','pluginName','aiBalloon','_setupVisualSelection','config','AI_ACTIONS_SELECTION_REMOVED_ERROR','6069220bNdmfF','939FRmBaS','start','getVisible','ai-balloon','left','length','showRotator','model','_showDialog','_cleanupMarkerRemovalListener','$graveyard','value','AIBalloon','130cWiGID','stopListening','top','open','startsWith','isPremiumPlugin','bind','icon','width','change','_pendingRenderCallback','showBlockingError','6634524PlDnxZ','bottom','ai-selection:','117WAXyGh','updateContent','once','round','listenTo'];_0x40ae=function(){return _0xb7764f;};return _0x40ae();}export const AI_BALLOON_EVENT_NAMES=[..._0x1de6a1,_0x23a8c7(0x185),_0x23a8c7(0x194)];const mt=0xa;export class AIBalloon extends _0x25e319{static get[_0x23a8c7(0x177)](){return[_0x3a5fb2,_0x3662a5];}static get[_0x23a8c7(0x147)](){const _0x564509=_0x23a8c7;return _0x564509(0x159);}static get[_0x23a8c7(0x13b)](){return!0x0;}static get[_0x23a8c7(0x15f)](){return!0x0;}[_0x23a8c7(0x145)]=!0x1;[_0x23a8c7(0x17d)];[_0x23a8c7(0x136)]=!0x1;[_0x23a8c7(0x164)]=null;[_0x23a8c7(0x15d)](_0x3bd4bd){const _0x41b978=_0x23a8c7,_0xead4ee=_0x42e812(this[_0x41b978(0x13c)]);if(this[_0x41b978(0x17d)]=_0x3bd4bd,this[_0x41b978(0x145)])return void this[_0x41b978(0x13e)](_0x3bd4bd);const _0x488cd3=this[_0x41b978(0x13c)][_0x41b978(0x14a)][_0x41b978(0x139)](_0x41b978(0x188))||[..._0x3b31d4],_0x424d76=_0xead4ee?.[_0x41b978(0x17b)][_0x41b978(0x139)](_0x41b978(0x132)),_0x4cc68e=_0x424d76?.[_0x41b978(0x158)];this[_0x41b978(0x137)]=new _0x32344d(_0xead4ee[_0x41b978(0x141)],_0x3bd4bd,_0x488cd3,!!_0x4cc68e),this[_0x41b978(0x137)][_0x41b978(0x134)](..._0x1de6a1)['to'](this),_0x424d76&&this[_0x41b978(0x137)][_0x41b978(0x160)](_0x41b978(0x186))['to'](_0x424d76,_0x41b978(0x158)),this[_0x41b978(0x155)](_0x3bd4bd);}[_0x23a8c7(0x19c)](){const _0x17fe7f=_0x23a8c7;_0x42e812(this[_0x17fe7f(0x13c)])[_0x17fe7f(0x182)][_0x17fe7f(0x139)](_0x17fe7f(0x146))[_0x17fe7f(0x138)]();}[_0x23a8c7(0x191)](){const _0x1e42e5=_0x23a8c7;this[_0x1e42e5(0x137)]&&this[_0x1e42e5(0x137)][_0x1e42e5(0x191)]();}[_0x23a8c7(0x197)](){const _0x242473=_0x23a8c7;this[_0x242473(0x137)]&&this[_0x242473(0x137)][_0x242473(0x197)]();}[_0x23a8c7(0x13e)](_0x437af4){const _0x5098f1=_0x23a8c7,_0x2ff1d7=_0x42e812(this[_0x5098f1(0x13c)]),_0x2c368a=_0x2ff1d7[_0x5098f1(0x182)][_0x5098f1(0x139)](_0x5098f1(0x146));this[_0x5098f1(0x164)]&&(_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x144)](_0x5098f1(0x131),this[_0x5098f1(0x164)]),this[_0x5098f1(0x164)]=null),this[_0x5098f1(0x136)]=!0x0,_0x2c368a[_0x5098f1(0x17c)]?.[_0x5098f1(0x17f)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x170)]=_0x437af4[_0x5098f1(0x18b)],_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)]&&_0x437af4[_0x5098f1(0x161)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)][_0x5098f1(0x16e)]=_0x437af4[_0x5098f1(0x161)])),this[_0x5098f1(0x137)][_0x5098f1(0x16a)](_0x437af4[_0x5098f1(0x19b)]),this[_0x5098f1(0x149)](_0x437af4[_0x5098f1(0x142)],_0x437af4[_0x5098f1(0x18d)]),this[_0x5098f1(0x164)]=()=>{const _0x4bf0f2=_0x5098f1;this[_0x4bf0f2(0x136)]=!0x1,this[_0x4bf0f2(0x164)]=null,_0x2c368a[_0x4bf0f2(0x17c)]&&_0x2c368a[_0x4bf0f2(0x17c)][_0x4bf0f2(0x18c)]();},_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x16b)](_0x5098f1(0x131),this[_0x5098f1(0x164)]);}[_0x23a8c7(0x149)](_0x35ecd8,_0x5180a8){const _0x15bea8=_0x23a8c7;this[_0x15bea8(0x13c)][_0x15bea8(0x182)][_0x15bea8(0x139)](_0x3662a5)[_0x15bea8(0x199)](_0x35ecd8,_0x15bea8(0x140)+_0x5180a8,!0x0,!0x0);}[_0x23a8c7(0x155)](_0x17bb4b){const _0x804615=_0x23a8c7,_0x462143=_0x42e812(this[_0x804615(0x13c)]);this[_0x804615(0x149)](_0x17bb4b[_0x804615(0x142)],_0x17bb4b[_0x804615(0x18d)]);const _0x2284b3=this[_0x804615(0x13a)]();_0x2284b3&&_0x2284b3[0x0]&&_0x588e1b({'target':_0x2284b3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x462143[_0x804615(0x182)][_0x804615(0x139)](_0x804615(0x146))[_0x804615(0x189)]({'title':_0x17bb4b[_0x804615(0x18b)],'icon':_0x17bb4b[_0x804615(0x161)],'hasCloseButton':!0x0,'id':_0x804615(0x148),'position':this[_0x804615(0x13d)][_0x804615(0x160)](this),'className':_0x804615(0x150)+(_0x17bb4b[_0x804615(0x153)]?_0x804615(0x198):''),'content':this[_0x804615(0x137)],'onShow':_0x19ffb7=>{const _0x145581=_0x804615;_0x17bb4b[_0x145581(0x153)]&&this[_0x145581(0x137)][_0x145581(0x19a)](_0x19ffb7),this[_0x145581(0x18a)](),this[_0x145581(0x145)]=!0x0;},'onHide':()=>{const _0x3f89c4=_0x804615;this[_0x3f89c4(0x13c)][_0x3f89c4(0x182)][_0x3f89c4(0x139)](_0x3f89c4(0x196))[_0x3f89c4(0x184)](_0x3f89c4(0x140)+this[_0x3f89c4(0x17d)][_0x3f89c4(0x18d)]),this[_0x3f89c4(0x156)](),this[_0x3f89c4(0x171)](_0x3f89c4(0x185)),this[_0x3f89c4(0x145)]=!0x1;}});}[_0x23a8c7(0x13d)](_0x2037bf,_0x53432){const _0x2c6467=_0x23a8c7;if(!_0x53432)return null;const _0x258090=this[_0x2c6467(0x13a)]();if(!_0x258090||0x0===_0x258090[_0x2c6467(0x152)])return{'left':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),'top':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x15c)]+_0x53432[_0x2c6467(0x187)]/0x2-_0x2037bf[_0x2c6467(0x187)]/0x2)};const _0x50d6e4=Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),_0xaab431=new _0x4db63e(_0x258090[0x0]),_0x1e081c=new _0x4db63e(_0x258090[_0x258090[_0x2c6467(0x152)]-0x1]),_0x426b3b=_0x2037bf[_0x2c6467(0x187)],_0x159d8c=this[_0x2c6467(0x17d)][_0x2c6467(0x153)]?0x8:0x0;return{'left':_0x50d6e4,'top':this[_0x2c6467(0x192)](_0xaab431,_0x1e081c,_0x426b3b,_0x159d8c,_0x53432)};}[_0x23a8c7(0x192)](_0x305acd,_0x2ad698,_0x4c313f,_0x4d0569=0x0,_0x2a4965){const _0x1a94bb=_0x23a8c7,_0x4dc66e=_0x4c313f+_0x4d0569,_0x15993b=new _0x4db63e(_0x89170a[_0x1a94bb(0x17e)]),_0x1ee3ea=[_0x305acd[_0x1a94bb(0x14f)](),_0x2ad698[_0x1a94bb(0x14f)]()][_0x1a94bb(0x135)](_0x1bccf7=>_0x1bccf7),_0x3ee98a=_0x4db63e[_0x1a94bb(0x172)](_0x1ee3ea);if(!_0x3ee98a)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x123c8c=_0x15993b[_0x1a94bb(0x195)](_0x3ee98a);if(!_0x123c8c)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x5ce7d9=_0x2a4965[_0x1a94bb(0x14f)](),_0x560655=_0x5ce7d9&&_0x3ee98a[_0x1a94bb(0x187)]>_0x5ce7d9[_0x1a94bb(0x187)],_0xe64a7=_0x123c8c[_0x1a94bb(0x15c)],_0x93a7d1=_0x123c8c[_0x1a94bb(0x167)];if(_0x560655){const _0x15dfdd=(_0x5ce7d9||_0x15993b)[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2,_0xd3bf86=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)],_0x2d9e89=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt;return _0xd3bf86>=_0x4dc66e?Math[_0x1a94bb(0x133)](mt,_0xe64a7-_0x4dc66e-mt):_0x2d9e89>=_0x4dc66e?_0x93a7d1+mt:Math[_0x1a94bb(0x133)](mt,_0x15dfdd);}const _0x469f32=_0xe64a7-_0x4dc66e,_0x453bff=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt,_0x4f8cf4=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)];let _0x1f4491;if(_0x453bff>=_0x4dc66e)_0x1f4491=_0x93a7d1+mt;else{if(_0x4f8cf4>=_0x4dc66e)_0x1f4491=_0x469f32-mt;else _0x1f4491=_0xe64a7+_0x3ee98a[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2;}return _0x1f4491;}[_0x23a8c7(0x18a)](){const _0x386a3d=_0x23a8c7,_0x8deed4=_0x42e812(this[_0x386a3d(0x13c)]);this[_0x386a3d(0x16d)](_0x8deed4[_0x386a3d(0x154)][_0x386a3d(0x181)],_0x386a3d(0x163),()=>{const _0x4cadd7=_0x386a3d;if(this[_0x4cadd7(0x136)])return;for(const {name:_0x3b4799,data:{newRange:_0x5e4d0c}}of _0x8deed4[_0x4cadd7(0x154)][_0x4cadd7(0x181)][_0x4cadd7(0x190)][_0x4cadd7(0x178)]())if(_0x3b4799[_0x4cadd7(0x15e)](_0x4cadd7(0x168))&&(_0x5e4d0c&&(_0x5e4d0c[_0x4cadd7(0x14e)][_0x4cadd7(0x183)](_0x5e4d0c[_0x4cadd7(0x13f)])||_0x4cadd7(0x157)==_0x5e4d0c[_0x4cadd7(0x174)][_0x4cadd7(0x18e)])||null==_0x5e4d0c)){const _0x2bf59f=_0x126373(this[_0x4cadd7(0x13c)][_0x4cadd7(0x141)],_0x4cadd7(0x14b));this[_0x4cadd7(0x137)][_0x4cadd7(0x165)](_0x2bf59f),this[_0x4cadd7(0x171)](_0x4cadd7(0x194));}});}[_0x23a8c7(0x156)](){const _0xf3e2bc=_0x23a8c7,_0x208a08=_0x42e812(this[_0xf3e2bc(0x13c)]);this[_0xf3e2bc(0x15b)](_0x208a08[_0xf3e2bc(0x154)][_0xf3e2bc(0x181)]);}[_0x23a8c7(0x13a)](){const _0x3450bb=_0x23a8c7,_0xd13e6a=_0x42e812(this[_0x3450bb(0x13c)]);return _0x1c08af(_0xd13e6a[_0x3450bb(0x19d)],[..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x173)),..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x130))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xc9f8ed,_0x6e97d7){var _0x1d56fc=_0x4084,_0x5c15fe=_0xc9f8ed();while(!![]){try{var _0x289ad3=parseInt(_0x1d56fc(0xb6))/0x1*(-parseInt(_0x1d56fc(0xbe))/0x2)+-parseInt(_0x1d56fc(0xb8))/0x3*(parseInt(_0x1d56fc(0xbb))/0x4)+-parseInt(_0x1d56fc(0xbd))/0x5+parseInt(_0x1d56fc(0xb5))/0x6+-parseInt(_0x1d56fc(0xb4))/0x7+parseInt(_0x1d56fc(0xc0))/0x8+parseInt(_0x1d56fc(0xba))/0x9;if(_0x289ad3===_0x6e97d7)break;else _0x5c15fe['push'](_0x5c15fe['shift']());}catch(_0x4dd8d5){_0x5c15fe['push'](_0x5c15fe['shift']());}}}(_0x58f0,0x9c24d));function _0x4084(_0x394371,_0x15a9dc){var _0x58f0b3=_0x58f0();return _0x4084=function(_0x40841d,_0x598643){_0x40841d=_0x40841d-0xb4;var _0x34aa87=_0x58f0b3[_0x40841d];return _0x34aa87;},_0x4084(_0x394371,_0x15a9dc);}import{View as _0x491ecc}from'ckeditor5/src/ui.js';import{getTranslation as _0x5840c9}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x491ecc{constructor(_0x2c1272){var _0x35b362=_0x4084;super(_0x2c1272),this[_0x35b362(0xb7)]({'tag':_0x35b362(0xb9),'attributes':{'class':['ck',_0x35b362(0xbc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x35b362(0xc1)]},'children':[{'text':_0x5840c9(_0x2c1272,_0x35b362(0xbf))}]}]});}}function _0x58f0(){var _0x327d34=['ck-ai-balloon__disclaimer-content','4579722slXmGJ','6292296cIaJUb','60149WCjhWt','setTemplate','3tdZuRq','div','23420835orEAMw','2467048GGMdsb','ck-ai-balloon__disclaimer','5525635iWTuMj','38yrxMEQ','AI_DISCLAIMER_TEXT','4060000gUhYCy'];_0x58f0=function(){return _0x327d34;};return _0x58f0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45f398=_0x1bd8;(function(_0x1a4fdc,_0x571ace){const _0x38c271=_0x1bd8,_0x2d9f75=_0x1a4fdc();while(!![]){try{const _0x1513cd=-parseInt(_0x38c271(0x1d2))/0x1+-parseInt(_0x38c271(0x1fc))/0x2*(parseInt(_0x38c271(0x1dd))/0x3)+-parseInt(_0x38c271(0x1ee))/0x4+parseInt(_0x38c271(0x1d0))/0x5*(-parseInt(_0x38c271(0x1e4))/0x6)+-parseInt(_0x38c271(0x204))/0x7+-parseInt(_0x38c271(0x1c9))/0x8*(-parseInt(_0x38c271(0x1e3))/0x9)+parseInt(_0x38c271(0x1da))/0xa;if(_0x1513cd===_0x571ace)break;else _0x2d9f75['push'](_0x2d9f75['shift']());}catch(_0x35ea8b){_0x2d9f75['push'](_0x2d9f75['shift']());}}}(_0x1b88,0xb3eab));function _0x1bd8(_0x3a47f0,_0x3af969){const _0x1b88e2=_0x1b88();return _0x1bd8=function(_0x1bd842,_0x1f3533){_0x1bd842=_0x1bd842-0x1b4;let _0x4291bd=_0x1b88e2[_0x1bd842];return _0x4291bd;},_0x1bd8(_0x3a47f0,_0x3af969);}import{ButtonView as _0x494627,View as _0x32caa1,ViewCollection as _0x49fc71,FocusCycler as _0x3b8985}from'ckeditor5/src/ui.js';import{FocusTracker as _0x486f3f,KeystrokeHandler as _0x393f82}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4c3a0a,IconPreviousArrow as _0x302e34}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5f3fa6}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x3857f3}from'./aiballoondisclaimerview.js';import{getTranslation as _0x5d6567}from'../../aicore/utils/common-translations.js';function _0x1b88(){const _0x2a649b=['showPrevious','focusFirst','ai-balloon-content','clearLoading','showApplyButton','applyButton','startAutoScroll','_initializeScrollManager','5474868pQdGOT','updateContent','_availableActions','bodyView','scrollManager','toolbar','destroy','tab','_addContentView','focusLast','_dialogContent','isErrorVisible','createCollection','_createPreviousButtonView','2379514oKvgCz','ck-ai-suggestion__error-text','setLoading','view','isTrackChangesOn','change:isTrackChangesOn','render','ck-hidden','6873027gPkbpN','focusCycler','start','listenTo','showRecoverableError','showSuggestButton','getIndex','focus','isLoading','remove','showError','fire','applySuggestion','_addDisclaimerView','suggestButton','ck-ai-suggestion__error','insertSuggestion','AI_BALLOON_NEXT_TOOLTIP','children','bindTemplate','span','keystrokes','hideError','disclaimerView','execute','includes','_mainView','showBlockingError','add','headerView','_createNextButtonView','AI_BALLOON_PREVIOUS_TOOLTIP','mainView','8HsWGoV','shift\x20+\x20tab','errorMessage','set','_addToolbar','_createErrorView','_focusables','125nACuwv','isEnabled','1423319WmEZgH','focusTracker','stop','setTemplate','setupRotator','ai-balloon-error','clear','stopAutoScroll','56815290ehXICh','element','bind','3AdbzLy','div','_getScrollableElement','locale','addMany','showNext','12354876UQFYuq','324888Reibvu','_errorView'];_0x1b88=function(){return _0x2a649b;};return _0x1b88();}import{ScrollManager as _0xb26aa3}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x3cc910}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x45f398(0x1b4),_0x45f398(0x1b8),_0x45f398(0x1e2),_0x45f398(0x1e6)];export class AIBalloonView extends _0x32caa1{[_0x45f398(0x1d3)];[_0x45f398(0x1bd)];[_0x45f398(0x205)];[_0x45f398(0x1f0)];[_0x45f398(0x1cf)];[_0x45f398(0x1e5)];[_0x45f398(0x1f2)];constructor(_0x5009a3,_0x218fdf,_0x1d4946,_0xcd8200){const _0x308424=_0x45f398;super(_0x5009a3),this[_0x308424(0x1f0)]=_0x1d4946,this[_0x308424(0x1cc)](_0x308424(0x20c),!0x1),this[_0x308424(0x1cc)](_0x308424(0x200),_0xcd8200),this[_0x308424(0x1cc)](_0x308424(0x1f9),!0x1),this[_0x308424(0x1cc)](_0x308424(0x1cb),''),this[_0x308424(0x1d3)]=new _0x486f3f(),this[_0x308424(0x1bd)]=new _0x393f82(),this[_0x308424(0x1cf)]=this[_0x308424(0x1fa)](),this[_0x308424(0x205)]=new _0x3b8985({'focusables':this[_0x308424(0x1cf)],'focusTracker':this[_0x308424(0x1d3)],'keystrokeHandler':this[_0x308424(0x1bd)],'actions':{'focusPrevious':_0x308424(0x1ca),'focusNext':_0x308424(0x1f5)}}),this[_0x308424(0x1f8)]=new _0x49fc71(),this[_0x308424(0x1f6)](_0x218fdf[_0x308424(0x1c8)]),this[_0x308424(0x1b5)](),this[_0x308424(0x1cd)](_0x218fdf[_0x308424(0x1ea)],_0x218fdf[_0x308424(0x209)]),this[_0x308424(0x1f3)][_0x308424(0x1dc)](_0x308424(0x20c))['to'](this),this[_0x308424(0x1cf)][_0x308424(0x1d8)](),this[_0x308424(0x1cf)][_0x308424(0x1e1)]([this[_0x308424(0x1f3)]]),this[_0x308424(0x1d5)]({'tag':_0x308424(0x1de),'attributes':{'class':_0x308424(0x1e8)},'children':this[_0x308424(0x1f8)]}),this['on'](_0x308424(0x201),()=>{const _0x2863d9=_0x308424;this[_0x2863d9(0x1f8)][_0x2863d9(0x20d)](this[_0x2863d9(0x1f3)]),this[_0x2863d9(0x1cd)](_0x218fdf[_0x2863d9(0x1ea)],_0x218fdf[_0x2863d9(0x209)]);});}[_0x45f398(0x202)](){const _0x54afa1=_0x45f398;super[_0x54afa1(0x202)]();for(const _0x5512a8 of this[_0x54afa1(0x1cf)])this[_0x54afa1(0x1d3)][_0x54afa1(0x1c4)](_0x5512a8[_0x54afa1(0x1db)]);this[_0x54afa1(0x1bd)][_0x54afa1(0x207)](this[_0x54afa1(0x1db)]),this[_0x54afa1(0x1ed)]();}[_0x45f398(0x1f4)](){const _0x2f78fb=_0x45f398;super[_0x2f78fb(0x1f4)](),this[_0x2f78fb(0x1f2)]&&this[_0x2f78fb(0x1f2)][_0x2f78fb(0x1f4)]();}[_0x45f398(0x20b)](_0xc9a76a){const _0x228a5=_0x45f398;-0x1===_0xc9a76a?this[_0x228a5(0x205)][_0x228a5(0x1f7)]():this[_0x228a5(0x205)][_0x228a5(0x1e7)]();}[_0x45f398(0x1fe)](){const _0x572303=_0x45f398;this[_0x572303(0x20c)]=!0x0;}[_0x45f398(0x1e9)](){const _0x3ef931=_0x45f398;this[_0x3ef931(0x20c)]=!0x1;}[_0x45f398(0x20e)](_0x4c01d6){const _0x115809=_0x45f398;this[_0x115809(0x1e5)]||(this[_0x115809(0x1e5)]=this[_0x115809(0x1ce)](),this[_0x115809(0x1f8)][_0x115809(0x1e1)]([this[_0x115809(0x1e5)]],0x0)),this[_0x115809(0x1cb)]=_0x4c01d6,this[_0x115809(0x1f9)]=!0x0;}[_0x45f398(0x1be)](){const _0x2c467b=_0x45f398;this[_0x2c467b(0x1f9)]=!0x1;}[_0x45f398(0x208)](_0x39166d){const _0x2f59f9=_0x45f398;this[_0x2f59f9(0x20e)](_0x39166d);}[_0x45f398(0x1c3)](_0x44ea2f){const _0x1c30c5=_0x45f398;this[_0x1c30c5(0x20e)](_0x44ea2f),this[_0x1c30c5(0x1f3)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1eb)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1eb)][_0x1c30c5(0x1d1)]=!0x1),this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1b6)]&&(this[_0x1c30c5(0x1f3)][_0x1c30c5(0x1b6)][_0x1c30c5(0x1d1)]=!0x1));}[_0x45f398(0x1d6)](_0x4fb029){const _0x4acc2b=_0x45f398,_0x1d599e=this[_0x4acc2b(0x1c6)](),_0x5d87dc=this[_0x4acc2b(0x1fb)]();_0x4fb029[_0x4acc2b(0x1ff)][_0x4acc2b(0x1c5)][_0x4acc2b(0x1ba)][_0x4acc2b(0x1c4)](_0x1d599e,0x2),_0x4fb029[_0x4acc2b(0x1ff)][_0x4acc2b(0x1c5)][_0x4acc2b(0x1ba)][_0x4acc2b(0x1c4)](_0x5d87dc,0x0),this[_0x4acc2b(0x1cf)][_0x4acc2b(0x1e1)]([_0x1d599e,_0x5d87dc]),this[_0x4acc2b(0x1d3)][_0x4acc2b(0x1c4)](_0x1d599e[_0x4acc2b(0x1db)]),this[_0x4acc2b(0x1d3)][_0x4acc2b(0x1c4)](_0x5d87dc[_0x4acc2b(0x1db)]);}[_0x45f398(0x1f6)](_0x45e426){const _0x415047=_0x45f398;this[_0x415047(0x1c2)]=_0x45e426,this[_0x415047(0x1f8)][_0x415047(0x1c4)](this[_0x415047(0x1c2)]);}[_0x45f398(0x1ef)](_0x5055c4){const _0x2f3f68=_0x45f398,_0xed376c=this[_0x2f3f68(0x1f8)][_0x2f3f68(0x20a)](this[_0x2f3f68(0x1c2)]);this[_0x2f3f68(0x1f8)][_0x2f3f68(0x20d)](this[_0x2f3f68(0x1c2)]),this[_0x2f3f68(0x1c2)]=_0x5055c4,this[_0x2f3f68(0x1f8)][_0x2f3f68(0x1c4)](this[_0x2f3f68(0x1c2)],_0xed376c),this[_0x2f3f68(0x1be)](),this[_0x2f3f68(0x1f2)]&&this[_0x2f3f68(0x1f2)][_0x2f3f68(0x1f4)](),this[_0x2f3f68(0x1ed)]();}[_0x45f398(0x1b5)](){const _0x21f00e=_0x45f398;this[_0x21f00e(0x1bf)]=new _0x3857f3(this[_0x21f00e(0x1e0)]),this[_0x21f00e(0x1f8)][_0x21f00e(0x1c4)](this[_0x21f00e(0x1bf)]);}[_0x45f398(0x1cd)](_0x2fe077=!0x0,_0x4fd2ac=!0x0){const _0x5a92a9=_0x45f398;_0x2fe077=_0x2fe077&&!this[_0x5a92a9(0x200)]&&this[_0x5a92a9(0x1f0)][_0x5a92a9(0x1c1)](_0x5a92a9(0x1b4)),_0x4fd2ac=_0x4fd2ac&&this[_0x5a92a9(0x1f0)][_0x5a92a9(0x1c1)](_0x5a92a9(0x1b8)),this[_0x5a92a9(0x1f3)]=new _0x5f3fa6(this[_0x5a92a9(0x1e0)],_0x2fe077,_0x4fd2ac),this[_0x5a92a9(0x1f3)][_0x5a92a9(0x1eb)]?.['on'](_0x5a92a9(0x1c0),()=>{const _0x493adc=_0x5a92a9;this[_0x493adc(0x20f)](_0x493adc(0x1b4));}),this[_0x5a92a9(0x1f3)][_0x5a92a9(0x1b6)]?.['on'](_0x5a92a9(0x1c0),()=>{const _0x19cee7=_0x5a92a9;this[_0x19cee7(0x20f)](_0x19cee7(0x1b8));}),this[_0x5a92a9(0x1f8)][_0x5a92a9(0x1c4)](this[_0x5a92a9(0x1f3)]);}[_0x45f398(0x1c6)](){const _0x3883a=_0x45f398,_0x12ad3e=new _0x494627(this[_0x3883a(0x1e0)]);return _0x12ad3e[_0x3883a(0x1cc)]({'icon':_0x4c3a0a,'tooltip':_0x5d6567(this[_0x3883a(0x1e0)],_0x3883a(0x1b9))}),_0x12ad3e['on'](_0x3883a(0x1c0),()=>{const _0x297416=_0x3883a;this[_0x297416(0x20f)](_0x297416(0x1e2));}),_0x12ad3e;}[_0x45f398(0x1fb)](){const _0x508e2c=_0x45f398,_0x120aa7=new _0x494627(this[_0x508e2c(0x1e0)]);return _0x120aa7[_0x508e2c(0x1cc)]({'icon':_0x302e34,'tooltip':_0x5d6567(this[_0x508e2c(0x1e0)],_0x508e2c(0x1c7))}),_0x120aa7['on'](_0x508e2c(0x1c0),()=>{const _0x5bc3ce=_0x508e2c;this[_0x5bc3ce(0x20f)](_0x5bc3ce(0x1e6));}),_0x120aa7;}[_0x45f398(0x1ce)](){const _0x4517b0=_0x45f398,_0x72f47b=new _0x32caa1(this[_0x4517b0(0x1e0)]),_0x386aa4=new _0x32caa1(this[_0x4517b0(0x1e0)]);return _0x386aa4[_0x4517b0(0x1d5)]({'tag':_0x4517b0(0x1bc),'attributes':{'class':['ck',_0x4517b0(0x1fd)]},'children':[{'text':this[_0x4517b0(0x1bb)]['to'](_0x4517b0(0x1cb))}]}),_0x72f47b[_0x4517b0(0x1d5)]({'tag':_0x4517b0(0x1de),'attributes':{'class':['ck',_0x4517b0(0x1b7),_0x4517b0(0x1d7),this[_0x4517b0(0x1bb)]['if'](_0x4517b0(0x1f9),_0x4517b0(0x203),_0x1dceef=>!_0x1dceef)]},'children':[_0x386aa4]}),_0x72f47b;}[_0x45f398(0x1ec)](){const _0x24428f=_0x45f398;this[_0x24428f(0x1ed)](),this[_0x24428f(0x1f2)]&&this[_0x24428f(0x1f2)][_0x24428f(0x206)]();}[_0x45f398(0x1d9)](){const _0x48f071=_0x45f398;this[_0x48f071(0x1f2)]&&this[_0x48f071(0x1f2)][_0x48f071(0x1d4)]();}[_0x45f398(0x1ed)](){const _0x5fa94d=_0x45f398,_0x2a34bf=this[_0x5fa94d(0x1df)]();_0x2a34bf&&!this[_0x5fa94d(0x1f2)]&&(this[_0x5fa94d(0x1f2)]=new _0xb26aa3(_0x2a34bf));}[_0x45f398(0x1df)](){const _0x5d5a02=_0x45f398;return this[_0x5d5a02(0x1c2)]instanceof _0x3cc910&&this[_0x5d5a02(0x1c2)][_0x5d5a02(0x1f1)][_0x5d5a02(0x1db)]?this[_0x5d5a02(0x1c2)][_0x5d5a02(0x1f1)][_0x5d5a02(0x1db)]:null;}}
|
|
23
|
+
const _0x5ea080=_0x2e1f;(function(_0x21048e,_0xcef4aa){const _0x41d6a2=_0x2e1f,_0x4b9680=_0x21048e();while(!![]){try{const _0x47d9c1=parseInt(_0x41d6a2(0x143))/0x1+parseInt(_0x41d6a2(0x168))/0x2+parseInt(_0x41d6a2(0x142))/0x3*(-parseInt(_0x41d6a2(0x14a))/0x4)+parseInt(_0x41d6a2(0x146))/0x5+-parseInt(_0x41d6a2(0x16b))/0x6+parseInt(_0x41d6a2(0x130))/0x7+parseInt(_0x41d6a2(0x16a))/0x8*(-parseInt(_0x41d6a2(0x15f))/0x9);if(_0x47d9c1===_0xcef4aa)break;else _0x4b9680['push'](_0x4b9680['shift']());}catch(_0x38b264){_0x4b9680['push'](_0x4b9680['shift']());}}}(_0x78f7,0x92333));import{ButtonView as _0x105646,View as _0x39d77c,ViewCollection as _0x15fcce,FocusCycler as _0x2d8454}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31b937,KeystrokeHandler as _0x174e4d}from'ckeditor5/src/utils.js';function _0x78f7(){const _0x130bad=['clearLoading','applySuggestion','focusLast','element','setLoading','disclaimerView','div','createCollection','showBlockingError','ai-balloon-error','bind','errorMessage','view','scrollManager','29091qYdMFC','125590DtpWzs','_errorView','AI_BALLOON_PREVIOUS_TOOLTIP','833875BIVYXA','isErrorVisible','listenTo','locale','92ItHgpu','remove','add','_addContentView','focus','_mainView','destroy','showError','_addToolbar','ck-hidden','fire','_focusables','showSuggestButton','ck-ai-suggestion__error-text','ck-ai-suggestion__error','_getScrollableElement','showPrevious','setupRotator','stop','isEnabled','addMany','405WSBLlB','_addDisclaimerView','_dialogContent','isTrackChangesOn','_createPreviousButtonView','showApplyButton','shift\x20+\x20tab','bodyView','toolbar','2018852SPimoh','_initializeScrollManager','44904ySzzza','7100976HkTSMg','render','execute','showRecoverableError','_createNextButtonView','applyButton','span','_availableActions','focusTracker','showNext','clear','AI_BALLOON_NEXT_TOOLTIP','suggestButton','updateContent','startAutoScroll','children','bindTemplate','hideError','_createErrorView','insertSuggestion','setTemplate','includes','stopAutoScroll','change:isTrackChangesOn','set','headerView','focusCycler','start','isLoading','keystrokes','getIndex','mainView','6693092DPcCUu','ai-balloon-content','tab','focusFirst'];_0x78f7=function(){return _0x130bad;};return _0x78f7();}import{IconNextArrow as _0x327951,IconPreviousArrow as _0x38d5d1}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x21ebda}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x4df7ed}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4216e1}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x213329}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1698e7}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5ea080(0x135),_0x5ea080(0x17e),_0x5ea080(0x174),_0x5ea080(0x15a)];function _0x2e1f(_0x540d8e,_0x43e9c5){const _0x78f7cb=_0x78f7();return _0x2e1f=function(_0x2e1fd8,_0x38f608){_0x2e1fd8=_0x2e1fd8-0x127;let _0x26d03b=_0x78f7cb[_0x2e1fd8];return _0x26d03b;},_0x2e1f(_0x540d8e,_0x43e9c5);}export class AIBalloonView extends _0x39d77c{[_0x5ea080(0x173)];[_0x5ea080(0x12d)];[_0x5ea080(0x12a)];[_0x5ea080(0x172)];[_0x5ea080(0x155)];[_0x5ea080(0x144)];[_0x5ea080(0x141)];constructor(_0xd0fffa,_0xb7b765,_0x2fdb61,_0x3ff104){const _0x3acf11=_0x5ea080;super(_0xd0fffa),this[_0x3acf11(0x172)]=_0x2fdb61,this[_0x3acf11(0x128)](_0x3acf11(0x12c),!0x1),this[_0x3acf11(0x128)](_0x3acf11(0x162),_0x3ff104),this[_0x3acf11(0x128)](_0x3acf11(0x147),!0x1),this[_0x3acf11(0x128)](_0x3acf11(0x13f),''),this[_0x3acf11(0x173)]=new _0x31b937(),this[_0x3acf11(0x12d)]=new _0x174e4d(),this[_0x3acf11(0x155)]=this[_0x3acf11(0x13b)](),this[_0x3acf11(0x12a)]=new _0x2d8454({'focusables':this[_0x3acf11(0x155)],'focusTracker':this[_0x3acf11(0x173)],'keystrokeHandler':this[_0x3acf11(0x12d)],'actions':{'focusPrevious':_0x3acf11(0x165),'focusNext':_0x3acf11(0x132)}}),this[_0x3acf11(0x161)]=new _0x15fcce(),this[_0x3acf11(0x14d)](_0xb7b765[_0x3acf11(0x12f)]),this[_0x3acf11(0x160)](),this[_0x3acf11(0x152)](_0xb7b765[_0x3acf11(0x164)],_0xb7b765[_0x3acf11(0x156)]),this[_0x3acf11(0x167)][_0x3acf11(0x13e)](_0x3acf11(0x12c))['to'](this),this[_0x3acf11(0x155)][_0x3acf11(0x175)](),this[_0x3acf11(0x155)][_0x3acf11(0x15e)]([this[_0x3acf11(0x167)]]),this[_0x3acf11(0x17f)]({'tag':_0x3acf11(0x13a),'attributes':{'class':_0x3acf11(0x131)},'children':this[_0x3acf11(0x161)]}),this['on'](_0x3acf11(0x127),()=>{const _0x3352f6=_0x3acf11;this[_0x3352f6(0x161)][_0x3352f6(0x14b)](this[_0x3352f6(0x167)]),this[_0x3352f6(0x152)](_0xb7b765[_0x3352f6(0x164)],_0xb7b765[_0x3352f6(0x156)]);});}[_0x5ea080(0x16c)](){const _0xdc99b3=_0x5ea080;super[_0xdc99b3(0x16c)]();for(const _0x4fd248 of this[_0xdc99b3(0x155)])this[_0xdc99b3(0x173)][_0xdc99b3(0x14c)](_0x4fd248[_0xdc99b3(0x137)]);this[_0xdc99b3(0x12d)][_0xdc99b3(0x148)](this[_0xdc99b3(0x137)]),this[_0xdc99b3(0x169)]();}[_0x5ea080(0x150)](){const _0x474897=_0x5ea080;super[_0x474897(0x150)](),this[_0x474897(0x141)]&&this[_0x474897(0x141)][_0x474897(0x150)]();}[_0x5ea080(0x14e)](_0x44aadc){const _0x2d59db=_0x5ea080;-0x1===_0x44aadc?this[_0x2d59db(0x12a)][_0x2d59db(0x136)]():this[_0x2d59db(0x12a)][_0x2d59db(0x133)]();}[_0x5ea080(0x138)](){const _0x5b2d58=_0x5ea080;this[_0x5b2d58(0x12c)]=!0x0;}[_0x5ea080(0x134)](){const _0x383000=_0x5ea080;this[_0x383000(0x12c)]=!0x1;}[_0x5ea080(0x151)](_0x401c27){const _0x5e2533=_0x5ea080;this[_0x5e2533(0x144)]||(this[_0x5e2533(0x144)]=this[_0x5e2533(0x17d)](),this[_0x5e2533(0x161)][_0x5e2533(0x15e)]([this[_0x5e2533(0x144)]],0x0)),this[_0x5e2533(0x13f)]=_0x401c27,this[_0x5e2533(0x147)]=!0x0;}[_0x5ea080(0x17c)](){const _0x41c6dc=_0x5ea080;this[_0x41c6dc(0x147)]=!0x1;}[_0x5ea080(0x16e)](_0x5b7dc1){const _0xe37b52=_0x5ea080;this[_0xe37b52(0x151)](_0x5b7dc1);}[_0x5ea080(0x13c)](_0x63911d){const _0x1b404c=_0x5ea080;this[_0x1b404c(0x151)](_0x63911d),this[_0x1b404c(0x167)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x170)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x170)][_0x1b404c(0x15d)]=!0x1),this[_0x1b404c(0x167)][_0x1b404c(0x177)]&&(this[_0x1b404c(0x167)][_0x1b404c(0x177)][_0x1b404c(0x15d)]=!0x1));}[_0x5ea080(0x15b)](_0x5eb794){const _0x2b8426=_0x5ea080,_0x149612=this[_0x2b8426(0x16f)](),_0x396d43=this[_0x2b8426(0x163)]();_0x5eb794[_0x2b8426(0x140)][_0x2b8426(0x129)][_0x2b8426(0x17a)][_0x2b8426(0x14c)](_0x149612,0x2),_0x5eb794[_0x2b8426(0x140)][_0x2b8426(0x129)][_0x2b8426(0x17a)][_0x2b8426(0x14c)](_0x396d43,0x0),this[_0x2b8426(0x155)][_0x2b8426(0x15e)]([_0x149612,_0x396d43]),this[_0x2b8426(0x173)][_0x2b8426(0x14c)](_0x149612[_0x2b8426(0x137)]),this[_0x2b8426(0x173)][_0x2b8426(0x14c)](_0x396d43[_0x2b8426(0x137)]);}[_0x5ea080(0x14d)](_0x702bdb){const _0x142158=_0x5ea080;this[_0x142158(0x14f)]=_0x702bdb,this[_0x142158(0x161)][_0x142158(0x14c)](this[_0x142158(0x14f)]);}[_0x5ea080(0x178)](_0x20208e){const _0x51aac2=_0x5ea080,_0x1e39db=this[_0x51aac2(0x161)][_0x51aac2(0x12e)](this[_0x51aac2(0x14f)]);this[_0x51aac2(0x161)][_0x51aac2(0x14b)](this[_0x51aac2(0x14f)]),this[_0x51aac2(0x14f)]=_0x20208e,this[_0x51aac2(0x161)][_0x51aac2(0x14c)](this[_0x51aac2(0x14f)],_0x1e39db),this[_0x51aac2(0x17c)](),this[_0x51aac2(0x141)]&&this[_0x51aac2(0x141)][_0x51aac2(0x150)](),this[_0x51aac2(0x169)]();}[_0x5ea080(0x160)](){const _0x637970=_0x5ea080;this[_0x637970(0x139)]=new _0x4df7ed(this[_0x637970(0x149)]),this[_0x637970(0x161)][_0x637970(0x14c)](this[_0x637970(0x139)]);}[_0x5ea080(0x152)](_0x132ee5=!0x0,_0x48fd34=!0x0){const _0x35171f=_0x5ea080;_0x132ee5=_0x132ee5&&!this[_0x35171f(0x162)]&&this[_0x35171f(0x172)][_0x35171f(0x180)](_0x35171f(0x135)),_0x48fd34=_0x48fd34&&this[_0x35171f(0x172)][_0x35171f(0x180)](_0x35171f(0x17e)),this[_0x35171f(0x167)]=new _0x21ebda(this[_0x35171f(0x149)],_0x132ee5,_0x48fd34),this[_0x35171f(0x167)][_0x35171f(0x170)]?.['on'](_0x35171f(0x16d),()=>{const _0x365644=_0x35171f;this[_0x365644(0x154)](_0x365644(0x135));}),this[_0x35171f(0x167)][_0x35171f(0x177)]?.['on'](_0x35171f(0x16d),()=>{const _0x2a3492=_0x35171f;this[_0x2a3492(0x154)](_0x2a3492(0x17e));}),this[_0x35171f(0x161)][_0x35171f(0x14c)](this[_0x35171f(0x167)]);}[_0x5ea080(0x16f)](){const _0x261f92=_0x5ea080,_0x217ac2=new _0x105646(this[_0x261f92(0x149)]);return _0x217ac2[_0x261f92(0x128)]({'icon':_0x327951,'tooltip':_0x4216e1(this[_0x261f92(0x149)],_0x261f92(0x176))}),_0x217ac2['on'](_0x261f92(0x16d),()=>{const _0x4bd7f7=_0x261f92;this[_0x4bd7f7(0x154)](_0x4bd7f7(0x174));}),_0x217ac2;}[_0x5ea080(0x163)](){const _0xbfb989=_0x5ea080,_0x50c83f=new _0x105646(this[_0xbfb989(0x149)]);return _0x50c83f[_0xbfb989(0x128)]({'icon':_0x38d5d1,'tooltip':_0x4216e1(this[_0xbfb989(0x149)],_0xbfb989(0x145))}),_0x50c83f['on'](_0xbfb989(0x16d),()=>{const _0x4eaa5e=_0xbfb989;this[_0x4eaa5e(0x154)](_0x4eaa5e(0x15a));}),_0x50c83f;}[_0x5ea080(0x17d)](){const _0xfe9592=_0x5ea080,_0x34b342=new _0x39d77c(this[_0xfe9592(0x149)]),_0x273530=new _0x39d77c(this[_0xfe9592(0x149)]);return _0x273530[_0xfe9592(0x17f)]({'tag':_0xfe9592(0x171),'attributes':{'class':['ck',_0xfe9592(0x157)]},'children':[{'text':this[_0xfe9592(0x17b)]['to'](_0xfe9592(0x13f))}]}),_0x34b342[_0xfe9592(0x17f)]({'tag':_0xfe9592(0x13a),'attributes':{'class':['ck',_0xfe9592(0x158),_0xfe9592(0x13d),this[_0xfe9592(0x17b)]['if'](_0xfe9592(0x147),_0xfe9592(0x153),_0xbfd2ce=>!_0xbfd2ce)]},'children':[_0x273530]}),_0x34b342;}[_0x5ea080(0x179)](){const _0x3c9ac9=_0x5ea080;this[_0x3c9ac9(0x169)](),this[_0x3c9ac9(0x141)]&&this[_0x3c9ac9(0x141)][_0x3c9ac9(0x12b)]();}[_0x5ea080(0x181)](){const _0x3449fa=_0x5ea080;this[_0x3449fa(0x141)]&&this[_0x3449fa(0x141)][_0x3449fa(0x15c)]();}[_0x5ea080(0x169)](){const _0x56d367=_0x5ea080,_0x1d624c=this[_0x56d367(0x159)]();_0x1d624c&&!this[_0x56d367(0x141)]&&(this[_0x56d367(0x141)]=new _0x213329(_0x1d624c));}[_0x5ea080(0x159)](){const _0x1c51db=_0x5ea080;return this[_0x1c51db(0x14f)]instanceof _0x1698e7&&this[_0x1c51db(0x14f)][_0x1c51db(0x166)][_0x1c51db(0x137)]?this[_0x1c51db(0x14f)][_0x1c51db(0x166)][_0x1c51db(0x137)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x59c870=_0xecb8;function _0xecb8(_0x238b7d,_0x47665e){var _0x179199=_0x1791();return _0xecb8=function(_0xecb8db,_0x37f2e9){_0xecb8db=_0xecb8db-0xaa;var _0xd72aeb=_0x179199[_0xecb8db];return _0xd72aeb;},_0xecb8(_0x238b7d,_0x47665e);}(function(_0x55ab2b,_0x553ffc){var _0x525a5d=_0xecb8,_0x21df45=_0x55ab2b();while(!![]){try{var _0x598e64=parseInt(_0x525a5d(0xbc))/0x1+-parseInt(_0x525a5d(0xac))/0x2+-parseInt(_0x525a5d(0xae))/0x3*(parseInt(_0x525a5d(0xb4))/0x4)+-parseInt(_0x525a5d(0xaa))/0x5+-parseInt(_0x525a5d(0xb2))/0x6+-parseInt(_0x525a5d(0xc0))/0x7+parseInt(_0x525a5d(0xc1))/0x8;if(_0x598e64===_0x553ffc)break;else _0x21df45['push'](_0x21df45['shift']());}catch(_0x1c238c){_0x21df45['push'](_0x21df45['shift']());}}}(_0x1791,0x19441));import{ContextPlugin as _0x190951}from'ckeditor5/src/core.js';import{AIChatController as _0xd46c91}from'./aichatcontroller.js';import{AIEditing as _0x2a05b8}from'../aicore/aiediting.js';function _0x1791(){var _0x88b336=['config','21FYqfVn','requires','addSelectionToChatContext','removeSelectionFromChatContext','1200054uIQQKn','context','48336PUEeia','isPremiumPlugin','sendMessage','define','ai.chat.context','isOfficialPlugin','startConversation','pluginName','168946EVbJaB','AIChat','focusPromptInput','plugins','1356054SihYOK','4335896BvuPaY','ai.chat.models','415415FanjoP','get','92084CwCjLi'];_0x1791=function(){return _0x88b336;};return _0x1791();}import{AIChatUI as _0x21a2ee}from'./aichatui.js';import{AIChatHistory as _0x2c2809}from'../aichathistory/aichathistory.js';export class AIChat extends _0x190951{static get[_0x59c870(0xaf)](){return[_0xd46c91,_0x2a05b8,_0x21a2ee,_0x2c2809];}static get[_0x59c870(0xbb)](){var _0x102dc6=_0x59c870;return _0x102dc6(0xbd);}static get[_0x59c870(0xb9)](){return!0x0;}static get[_0x59c870(0xb5)](){return!0x0;}constructor(_0x4669a5){var _0x3f5c8a=_0x59c870;super(_0x4669a5),this[_0x3f5c8a(0xb3)][_0x3f5c8a(0xad)][_0x3f5c8a(0xb7)](_0x3f5c8a(0xb8),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f5c8a(0xb3)][_0x3f5c8a(0xad)][_0x3f5c8a(0xb7)](_0x3f5c8a(0xc2),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x59c870(0xb0)](){var _0x9b5aff=_0x59c870;await this[_0x9b5aff(0xb3)][_0x9b5aff(0xbf)][_0x9b5aff(0xab)](_0xd46c91)[_0x9b5aff(0xb0)]();}async[_0x59c870(0xba)](){var _0x218880=_0x59c870;await this[_0x218880(0xb3)][_0x218880(0xbf)][_0x218880(0xab)](_0xd46c91)[_0x218880(0xba)]();}async[_0x59c870(0xb6)]({message:_0x502fd4,quickActionData:_0x4345d4}){var _0x2d2b97=_0x59c870;await this[_0x2d2b97(0xb3)][_0x2d2b97(0xbf)][_0x2d2b97(0xab)](_0xd46c91)[_0x2d2b97(0xb6)]({'message':_0x502fd4,'quickActionData':_0x4345d4});}[_0x59c870(0xb1)](){var _0x4e094f=_0x59c870;this[_0x4e094f(0xb3)][_0x4e094f(0xbf)][_0x4e094f(0xab)](_0xd46c91)[_0x4e094f(0xb1)]();}[_0x59c870(0xbe)](){var _0x32bca6=_0x59c870;this[_0x32bca6(0xb3)][_0x32bca6(0xbf)][_0x32bca6(0xab)](_0xd46c91)[_0x32bca6(0xbe)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bf42f=_0x1f53;(function(_0x48eb0e,_0x25d015){const _0x5c3a53=_0x1f53,_0x43d40f=_0x48eb0e();while(!![]){try{const _0x53569e=-parseInt(_0x5c3a53(0x231))/0x1+-parseInt(_0x5c3a53(0x1bd))/0x2+-parseInt(_0x5c3a53(0x295))/0x3*(parseInt(_0x5c3a53(0x234))/0x4)+-parseInt(_0x5c3a53(0x28a))/0x5+parseInt(_0x5c3a53(0x29a))/0x6*(parseInt(_0x5c3a53(0x21f))/0x7)+-parseInt(_0x5c3a53(0x2ee))/0x8+parseInt(_0x5c3a53(0x1a3))/0x9*(parseInt(_0x5c3a53(0x1d6))/0xa);if(_0x53569e===_0x25d015)break;else _0x43d40f['push'](_0x43d40f['shift']());}catch(_0x562e24){_0x43d40f['push'](_0x43d40f['shift']());}}}(_0x24eb,0xa6898));import{ContextPlugin as _0x2146e0,Editor as _0x1042e5}from'ckeditor5/src/core.js';import{BodyCollection as _0x230456}from'ckeditor5/src/ui.js';import{CKEditorError as _0x43f47e,logError as _0x4e7c88,scrollViewportToShowTarget as _0x125cfd,uid as _0x546e7d}from'ckeditor5/src/utils.js';import{AIConnector as _0xf168d5}from'../aicore/aiconnector.js';import{AITabs as _0x1b079d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2e1a0e}from'./model/aichatconversation.js';function _0x24eb(){const _0x5cc477=['rootName','_scrollToSuggestionRange','conversationInitialized','destroy','resetMessageInput','isUploadInProgress','parse','like','ai-chat-context-unsupported-file-type','getDocumentContext','_removeAISelectionMarkers','createRange','$graveyard','rejected','7OJsJdF','ai-no-track-changes','isCurrentDocumentInContext','_handleUIUserMessage','node','AI_CHAT_UNTITLED_CONVERSATION','populateSourceResourceBalloon','partIndex','resizeTabs','removed','applySuggestion','howMany','options','Showing\x20conversation\x20history...','isPremiumPlugin','setLoadingMessage','full','attachToDom','440162NVgmKE','ai-chat-controller-mouse-over','setSelectedModel','2988sVNUkr','batch','_setIsMaximized','_balloonShowDiff','removeMarker','stopListening','slice','ai-chat-file-upload-failed','changeGroups','contextItemRemoved','showChangeInText','ai.chat.context','message','_getDocumentRangeForReplyChanges','version','stop','showDiff','disableControls','getSelectionText','getReply','setModel','ai-chat-url-upload-failed','add','index','getConversation','addFileToContext','addFeedItemUserMessage','domConverter','interactionDestroyed','clearPendingContextUI','fetchConversation','remove','accepted','end','addFilesToContext','removeSelectionFromChatContext','updateConversationTitle','_logError','viewRangeToDom','handleRemovedConversation','sourceResourcesLoaded','dislike','ai-chat-context-file-too-many-pages','isInContext','addFeedInteractionHeader','DocumentCompare','loadConversation','from','ai-request-aborted','updateFeedItemAIReplyContent','enableControls','AIConnector','getGroupId','log','view','isDocumentOperation','_createFromRanges','toggleLoadingSkeleton','interactionId','reasoningStarted','isDisabled','replyId','Liked\x20response','_updateReplyContent','contextSent','text-delta','revert','getOperations','baseVersion','showFakeVisualSelection','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','children','resourceStateChanged','getChild','contextItemLoadingEnded','AI_CHAT_ABORTED_MESSAGE','locale','AI_BALLOON_HEADER_TITLE','listenTo','setConversationTitle','new','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','finishInteraction','messageId','sendUserMessage','error','2294215zfPleh','ai.chat.models.defaultModelId','getRanges','startsWith','startConversation','updateFeedItemAIReplySuggestionPartState','toViewRange','contextItemAdded','getFirstRange','_aiEditing','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','3318biETqR','commands','AI_CHAT_CONTEXT_INVALID_DATA','_batchToChanges','uid','6728790tpSZUV','data-id','config','_removeFromContext','isModelAvailable','_applySuggestion','lastInteraction','delete','TrackChanges','setConversationContext','addFeedItemAIReply','selection','load','marker','addFeedItemAISuggestion','_updateRatings','addFeedItemStaticMessage','createConversation','sources','showNext','AI_CHAT_RESOURCE_LOAD_FAILED','range','updateFeedItemAIReplySources','ai-chat-context-unsupported-type','ai-chat-invalid-request','outdated','setChangeGroupState','AIChatController','removeFeedInteraction','addContextOptionsChanged','undo','map','createPositionFromPath','updateFeedItemAIReplySuggestionContent','interactionStarted','content','stopInteraction','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','document','history','updateCapabilities','nextSibling','AIEditing','type','getInteractionAndReplyById','toggleWebSearch','alignToTop','rejectSuggestion','ai-chat-conversation-not-found','start','_applyOperationsAsSuggestions','current-document','cloneNode','contextItem','query','toString','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','indexes','AI_CHAT_INVALID_REQUEST','set','getContentParts','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','maxOffset','AITabs','_aiConnector','closeSourceResourceBalloon','loadSourceResources','modelSelected','resize','changes','resizedTabs','replyChangeGroupStateUpdated','data','path','webSearchStarted','static','addDocumentToContext','setAddContextOptions','redo','setIsMaximized','interactionFinished','getDiff','getChildAtOffset','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','89704gJDwHb','sourcePosition','unshift','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','_flushLastInteractionUI','afterInit','context','getInteraction','find','updateContent','mouseLeaveSuggestion','indexOf','reasoningFinished','contextItems','_showConversationHistory','$root','createPositionAt','markers','isLoading','_handleStartConversation','ready','addUrlToContext','focusPromptInput','AI_CHAT_UNABLE_TO_START_CONVERSATION','selectModel','_aiChatUi','anchorId','ai-chat-conversation-init-failed','sendMessage','collaboration.channelId','getChildren','handleUserInteraction','sourceId','insertSuggestion','setIsUploadInProgress','open','mouseOverSuggestion','55899rPkOMH','Undo','Disliked\x20response','mapper','uploadProgressChanged','ai-chat-source-resources-load-failed','_startConversationSafely','ai-chat-controller-no-active-conversation','ai.chat.models.displayedModels','_previewedChangeGroup','replies','editing','startInteraction','_stopLastInteraction','root','resources','_bodyCollection','capabilitiesUpdated','_aiChatModels','activateTab','state','showPrevious','_toggleWebSearch','chat','isCurrentDocumentInConversation','isStarted','995816DJievT','split','push','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','source','removeContextItem','resetConversationTitle','setContextItemLoading','detachFromDom','updateResourceState','_insertSuggestion','AIChatUI','addContextItem','addSelectionToChatContext','_toggleReasoning','model','requires','webSearchFinished','interactionCreated','AI_CHAT_CONTEXT_FILE_TOO_LARGE','getAttribute','isOfficialPlugin','dialogClosed','getDocumentData','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','2890LDKENf','toggleSuggestionDisplayMode','addOperation','uiId','hasChanges','AI_CHAT_GENERIC_ERROR','replyContentUpdated','_integrateEditor','getRoot','streaming','findIndex','ai.availableReplyActions','plugins','upsertAIChatRating','getMarkersGroup','abortPromptStream','TrackChangesEditing','addCurrentDocumentToContext','ai-chat-missing-channel-id','forEach','resource','getTransformedByOperation','get','_openBalloonFor','close','removeFromContext','modification-delta','toggleReasoning','documentContextContent','getPath','init','filter','removeSelectionFromContext','pending','ai-chat-context-form-data-size-limits-exceeded','addResourceToContext','replyCreated','clearConversationContextUI','updateCurrentDocumentInContext','scrollFeedToSuggestion','pluginName','activeConversation','ai-chat-context-file-too-large','addSelectionToContext','main','editors','resourceId','isOpen','addFeedItemError','ai-conversation-','has','length','change','ai-chat-context-invalid-data','hideFakeVisualSelection','selectedModel','startAutoScroll','applyOperation','setFeedItemRenderingStrategy'];_0x24eb=function(){return _0x5cc477;};return _0x24eb();}import{getTranslation as _0x1eefe7}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1e4817}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1509e4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x404cc5}from'../aicore/model/aimodels.js';function _0x1f53(_0x2af64e,_0x3e56b6){const _0x24eb55=_0x24eb();return _0x1f53=function(_0x1f537b,_0x4891cc){_0x1f537b=_0x1f537b-0x17f;let _0x270ca7=_0x24eb55[_0x1f537b];return _0x270ca7;},_0x1f53(_0x2af64e,_0x3e56b6);}import{getEditorFromContext as _0x199540}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1ae707,DATA_ID_MODEL_ATTRIBUTE as _0x289cba}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1b792a,getOperationsFromReply as _0x1128ed}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x26de45,getMinimalSelection as _0x45e851}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4dc44b,_DetachOperation as _0x31c239}from'ckeditor5/src/engine.js';import{findOne as _0x2eb438,getAttribute as _0x4b068a,serialize as _0xb94479,Document as _0x25a14d,findByAttribute as _0x36a78e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x189519}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x574457}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0xb76b26}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2146e0{[_0x3bf42f(0x293)];[_0x3bf42f(0x2da)];[_0x3bf42f(0x197)];[_0x3bf42f(0x1b5)];[_0x3bf42f(0x298)]=new Map();[_0x3bf42f(0x1ac)]=null;[_0x3bf42f(0x237)]=!0x1;[_0x3bf42f(0x1b3)];static get[_0x3bf42f(0x1cd)](){return[_0xf168d5,_0xb76b26,_0x1ae707];}static get[_0x3bf42f(0x1fe)](){const _0x407524=_0x3bf42f;return _0x407524(0x2b5);}static get[_0x3bf42f(0x1d2)](){return!0x0;}static get[_0x3bf42f(0x22d)](){return!0x0;}[_0x3bf42f(0x1f4)](){const _0x239480=_0x3bf42f;this[_0x239480(0x1b3)]=new _0x230456(this[_0x239480(0x184)][_0x239480(0x280)]),this[_0x239480(0x1b3)][_0x239480(0x230)](),this[_0x239480(0x2da)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x267)),this[_0x239480(0x197)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x1c8)),this[_0x239480(0x293)]=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x2c4)),this[_0x239480(0x1b5)]=new _0x404cc5({'connector':this[_0x239480(0x2da)],'availableModels':this[_0x239480(0x184)][_0x239480(0x29c)][_0x239480(0x1ec)](_0x239480(0x1ab)),'defaultModelId':this[_0x239480(0x184)][_0x239480(0x29c)][_0x239480(0x1ec)](_0x239480(0x28b)),'locale':this[_0x239480(0x184)][_0x239480(0x280)]});const _0x419ec8=this[_0x239480(0x184)][_0x239480(0x1e2)][_0x239480(0x1ec)](_0x239480(0x2d9));this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x28e),()=>{const _0x251fb6=_0x239480;this[_0x251fb6(0x1a9)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x288),(_0x4e414d,_0x383442)=>{const _0x26a8d4=_0x239480;this[_0x26a8d4(0x222)]({'userMessage':_0x383442});}),this[_0x239480(0x282)](_0x419ec8,_0x239480(0x2e0),(_0x44b2c4,_0x102ae0)=>{const _0x34e4c3=_0x239480;this[_0x34e4c3(0x236)](_0x102ae0);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x227),()=>{const _0x370a6a=_0x239480;_0x419ec8[_0x370a6a(0x2de)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1e5),async()=>{const _0xf599a=_0x239480;await this[_0xf599a(0x1b0)](),await this[_0xf599a(0x182)](),this[_0xf599a(0x257)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2e6),()=>{const _0x425052=_0x239480;this[_0x425052(0x1ff)]?.[_0x425052(0x1e7)](_0x1eefe7(this[_0x425052(0x184)][_0x425052(0x280)],_0x425052(0x2d2)));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x24d),(_0x36673d,_0x1dc2f0)=>{const _0x4c5dc1=_0x239480;this[_0x4c5dc1(0x1ff)]?.[_0x4c5dc1(0x256)](Array[_0x4c5dc1(0x263)](_0x1dc2f0));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x193),(_0x17d44c,_0x36a815)=>{const _0x4eb451=_0x239480;this[_0x4eb451(0x1ff)]?.[_0x4eb451(0x193)](_0x36a815);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1f9),(_0xb1fc13,_0x348e4a)=>{const _0x3cd40a=_0x239480;this[_0x3cd40a(0x1ff)]?.[_0x3cd40a(0x1f9)](_0x348e4a[_0x3cd40a(0x1c1)],_0x348e4a[_0x3cd40a(0x1ea)]);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1c2),(_0x1a83c0,_0x32d526)=>{const _0x26aacc=_0x239480;this[_0x26aacc(0x29d)](_0x32d526);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2dc),(_0x11ae97,_0x280965)=>{const _0x3e2721=_0x239480;this[_0x3e2721(0x1ff)]?.[_0x3e2721(0x2dc)](_0x280965[_0x3e2721(0x19e)],_0x280965[_0x3e2721(0x2d0)],_0x280965[_0x3e2721(0x299)]);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2c7),()=>{const _0x196bf7=_0x239480;this[_0x196bf7(0x1b9)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1f1),()=>{const _0x1d4c82=_0x239480;this[_0x1d4c82(0x1cb)]();}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x196),(_0x28d744,_0x18eff4)=>{const _0x205961=_0x239480;this[_0x205961(0x1ff)]?.[_0x205961(0x248)](_0x18eff4);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x218),(_0x32347f,{replyId:_0x31359a})=>{const _0x3e29e5=_0x239480;console[_0x3e29e5(0x269)](_0x3e29e5(0x272),_0x31359a);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x25d),(_0x4cc108,{replyId:_0x93fe19})=>{const _0x3c61b4=_0x239480;console[_0x3c61b4(0x269)](_0x3c61b4(0x1a5),_0x93fe19);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x19f),(_0xb02b1e,_0x19ddf8)=>{const _0x2e5763=_0x239480;this[_0x2e5763(0x184)][_0x2e5763(0x1e2)][_0x2e5763(0x1ec)](_0xb76b26)[_0x2e5763(0x1ee)](),this[_0x2e5763(0x1c7)](_0x19ddf8);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x23e),(_0x56c601,{replyId:_0x4d685a,partIndex:_0x510866})=>{const _0x29f38b=_0x239480;this[_0x29f38b(0x237)]=this[_0x29f38b(0x197)][_0x29f38b(0x244)],this[_0x29f38b(0x1ed)](_0x4d685a,_0x510866);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1a2),(_0x2053f1,{replyId:_0x357602,partIndex:_0x4a1cb4})=>{const _0x3b3010=_0x239480,_0x39d0b2=this[_0x3b3010(0x241)](_0x357602,_0x4a1cb4);_0x39d0b2&&_0x3b3010(0x21d)!=_0x39d0b2[_0x3b3010(0x2af)][_0x3b3010(0x1b1)][_0x3b3010(0x211)]&&this[_0x3b3010(0x293)][_0x3b3010(0x279)]([_0x39d0b2[_0x3b3010(0x2af)]],_0x3b3010(0x232));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x188),()=>{const _0x2bd14e=_0x239480;this[_0x2bd14e(0x293)][_0x2bd14e(0x20c)](_0x2bd14e(0x232));}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x229),(_0x26f084,_0x20a899)=>{const _0x4dbdf1=_0x239480;this[_0x4dbdf1(0x184)][_0x4dbdf1(0x1e2)][_0x4dbdf1(0x1ec)](_0xb76b26)[_0x4dbdf1(0x1ee)](),this[_0x4dbdf1(0x29f)](_0x20a899);}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x1d7),async(_0x23341c,{replyId:_0x15eca2,showDiff:_0x4b75ed})=>{const _0x3640ee=_0x239480,{reply:_0x281197}=this[_0x3640ee(0x2c6)](_0x15eca2),_0xf8573b=_0x281197[_0x3640ee(0x2d6)]({'showDiff':_0x4b75ed});await this[_0x3640ee(0x197)][_0x3640ee(0x2bb)]({'id':_0x281197['id'],'parts':_0xf8573b,'renderingStrategy':_0x3640ee(0x2e5)});}),this[_0x239480(0x282)](this[_0x239480(0x197)],_0x239480(0x2c9),(_0x4fbd2e,{replyId:_0xa0b8b3,partIndex:_0x2b9019})=>{const _0x14e08c=_0x239480;this[_0x14e08c(0x1ac)]?.[_0x14e08c(0x271)]==_0xa0b8b3&&this[_0x14e08c(0x1ac)]?.[_0x14e08c(0x226)]==_0x2b9019&&this[_0x14e08c(0x184)][_0x14e08c(0x1e2)][_0x14e08c(0x1ec)](_0xb76b26)[_0x14e08c(0x1ee)]();const {reply:_0x5b6e10}=this[_0x14e08c(0x2c6)](_0xa0b8b3);_0x5b6e10[_0x14e08c(0x2b4)](_0x2b9019,_0x14e08c(0x21e)),this[_0x14e08c(0x293)][_0x14e08c(0x20c)](_0x14e08c(0x232));});}async[_0x3bf42f(0x183)](){const _0x193bf7=_0x3bf42f;this[_0x193bf7(0x184)]instanceof _0x1042e5?this[_0x193bf7(0x1dd)](this[_0x193bf7(0x184)]):this[_0x193bf7(0x282)](this[_0x193bf7(0x184)][_0x193bf7(0x203)],_0x193bf7(0x24a),(_0x3cc358,_0x563ba5)=>{const _0x7d5d68=_0x193bf7;_0x563ba5['on'](_0x7d5d68(0x192),()=>{const _0x51d5a1=_0x7d5d68;this[_0x51d5a1(0x1dd)](_0x563ba5);});}),await this[_0x193bf7(0x1a9)]();}[_0x3bf42f(0x214)](){const _0x2800f9=_0x3bf42f;this[_0x2800f9(0x1b3)][_0x2800f9(0x1c5)](),super[_0x2800f9(0x214)]();}[_0x3bf42f(0x1c7)](_0x525a53){const _0x1345ed=_0x3bf42f,_0x1dbbd4=_0x199540(this[_0x1345ed(0x184)]);if(!_0x1dbbd4[_0x1345ed(0x1e2)][_0x1345ed(0x208)](_0x1345ed(0x2a2)))throw new _0x43f47e(_0x1345ed(0x220),null);const _0x4ffb96=this[_0x1345ed(0x184)][_0x1345ed(0x1e2)][_0x1345ed(0x1ec)](_0x1345ed(0x261)),{reply:_0x4da2c1,interaction:_0x4e87c3}=this[_0x1345ed(0x2c6)](_0x525a53[_0x1345ed(0x271)]),_0x4c6929=this[_0x1345ed(0x241)](_0x525a53[_0x1345ed(0x271)],_0x525a53[_0x1345ed(0x226)]),_0x137e2=void 0x0!==_0x525a53[_0x1345ed(0x226)]?[_0x4da2c1[_0x1345ed(0x23c)][_0x525a53[_0x1345ed(0x226)]]]:_0x4da2c1[_0x1345ed(0x23c)][_0x1345ed(0x1f5)](_0x1e1a3d=>_0x1345ed(0x1f7)==_0x1e1a3d[_0x1345ed(0x1b7)]),_0x598947=_0x137e2[_0x1345ed(0x2b9)](_0x3991f9=>_0x4da2c1[_0x1345ed(0x23c)][_0x1345ed(0x189)](_0x3991f9));if(!_0x4c6929||_0x1345ed(0x21d)==_0x4c6929[_0x1345ed(0x2af)][_0x1345ed(0x1b1)][_0x1345ed(0x211)])return void _0x598947[_0x1345ed(0x1e9)](_0x39d134=>_0x4da2c1[_0x1345ed(0x2b4)](_0x39d134,_0x1345ed(0x2b3)));_0x598947[_0x1345ed(0x1e9)](_0x1131b9=>_0x4da2c1[_0x1345ed(0x2b4)](_0x1131b9,_0x1345ed(0x254)));const _0x3ad4cd=_0x1128ed({'editor':_0x1dbbd4,'reply':_0x4da2c1,'interaction':_0x4e87c3,'groups':_0x137e2,'transform':!0x0,'documentCompare':_0x4ffb96,'documentCompareOptions':{'anchor':_0x1345ed(0x202),'markDeletions':!0x0}});let _0x5b927;_0x4c6929&&this[_0x1345ed(0x212)](_0x4c6929[_0x1345ed(0x2af)]),_0x1dbbd4[_0x1345ed(0x1cc)][_0x1345ed(0x20a)](_0x214458=>{const _0x257aac=_0x1345ed;_0x5b927=_0x214458[_0x257aac(0x235)],_0x1dbbd4[_0x257aac(0x1e2)][_0x257aac(0x1ec)](_0x257aac(0x1e6))[_0x257aac(0x2cc)](_0x3ad4cd),this[_0x257aac(0x293)][_0x257aac(0x20c)](_0x257aac(0x232));}),this[_0x1345ed(0x298)][_0x1345ed(0x2d5)](_0x5b927,{'interactionId':_0x4e87c3['id'],'replyId':_0x4da2c1['id'],'indexes':_0x598947[_0x1345ed(0x23a)]()}),this[_0x1345ed(0x2a9)](_0x4da2c1);}[_0x3bf42f(0x29f)](_0x3c8399){const _0x52d6a9=_0x3bf42f,_0x19704b=_0x199540(this[_0x52d6a9(0x184)]),_0x59a619=this[_0x52d6a9(0x184)][_0x52d6a9(0x1e2)][_0x52d6a9(0x1ec)](_0x1ae707),{reply:_0x51011a,interaction:_0x3dcc9a}=this[_0x52d6a9(0x2c6)](_0x3c8399[_0x52d6a9(0x271)]),_0x11de3f=this[_0x52d6a9(0x241)](_0x3c8399[_0x52d6a9(0x271)],_0x3c8399[_0x52d6a9(0x226)]),_0x1e8e63=void 0x0!==_0x3c8399[_0x52d6a9(0x226)]?[_0x51011a[_0x52d6a9(0x23c)][_0x3c8399[_0x52d6a9(0x226)]]]:_0x51011a[_0x52d6a9(0x23c)][_0x52d6a9(0x1f5)](_0x32319d=>_0x52d6a9(0x1f7)==_0x32319d[_0x52d6a9(0x1b7)]),_0x1780c5=_0x1e8e63[_0x52d6a9(0x2b9)](_0x3c19db=>_0x51011a[_0x52d6a9(0x23c)][_0x52d6a9(0x189)](_0x3c19db));if(!_0x11de3f||_0x52d6a9(0x21d)==_0x11de3f[_0x52d6a9(0x2af)][_0x52d6a9(0x1b1)][_0x52d6a9(0x211)])return void _0x1780c5[_0x52d6a9(0x1e9)](_0x56eeda=>_0x51011a[_0x52d6a9(0x2b4)](_0x56eeda,_0x52d6a9(0x2b3)));_0x1780c5[_0x52d6a9(0x1e9)](_0x247273=>_0x51011a[_0x52d6a9(0x2b4)](_0x247273,_0x52d6a9(0x254)));const _0x11f99f=_0x1128ed({'editor':_0x19704b,'reply':_0x51011a,'interaction':_0x3dcc9a,'groups':_0x1e8e63,'transform':!0x0,'documentCompare':_0x59a619,'documentCompareOptions':{'anchor':_0x52d6a9(0x202),'markDeletions':!0x1}});let _0x14aeed;_0x11de3f&&this[_0x52d6a9(0x212)](_0x11de3f[_0x52d6a9(0x2af)]),_0x19704b[_0x52d6a9(0x1cc)][_0x52d6a9(0x20a)](_0x1b2444=>{const _0x314a41=_0x52d6a9;_0x14aeed=_0x1b2444[_0x314a41(0x235)];for(const _0x2666dd of _0x11f99f)_0x2666dd[_0x314a41(0x278)]=_0x19704b[_0x314a41(0x1cc)][_0x314a41(0x2c0)][_0x314a41(0x242)],_0x1b792a(_0x19704b,_0x2666dd),_0x1b2444[_0x314a41(0x235)][_0x314a41(0x1d8)](_0x2666dd),_0x19704b[_0x314a41(0x1cc)][_0x314a41(0x20f)](_0x2666dd);}),this[_0x52d6a9(0x298)][_0x52d6a9(0x2d5)](_0x14aeed,{'interactionId':_0x3dcc9a['id'],'replyId':_0x51011a['id'],'indexes':_0x1780c5[_0x52d6a9(0x23a)]()}),this[_0x52d6a9(0x2a9)](_0x51011a);}[_0x3bf42f(0x1ed)](_0x4acb46,_0x142b7e){const _0x44c3b1=_0x3bf42f,_0x179fc5=_0x199540(this[_0x44c3b1(0x184)]),_0x30088c=this[_0x44c3b1(0x241)](_0x4acb46,_0x142b7e),_0x46342d=this[_0x44c3b1(0x184)][_0x44c3b1(0x1e2)][_0x44c3b1(0x1ec)](_0xb76b26);if(!_0x30088c)return void _0x46342d[_0x44c3b1(0x1ee)]();const {range:_0x5b4a04,currentIndex:_0x3ed6f5}=_0x30088c;if(_0x44c3b1(0x21d)==_0x5b4a04[_0x44c3b1(0x1b1)][_0x44c3b1(0x211)]){const {reply:_0x586ee1}=this[_0x44c3b1(0x2c6)](_0x4acb46);return _0x586ee1[_0x44c3b1(0x2b4)](_0x3ed6f5,_0x44c3b1(0x2b3)),void _0x46342d[_0x44c3b1(0x1ee)]();}if(this[_0x44c3b1(0x1ac)]?.[_0x44c3b1(0x271)]==_0x4acb46&&this[_0x44c3b1(0x1ac)]?.[_0x44c3b1(0x226)]==_0x3ed6f5)return;this[_0x44c3b1(0x239)](_0x46342d),this[_0x44c3b1(0x1ac)]={'replyId':_0x4acb46,'partIndex':_0x3ed6f5};let _0x5afced=_0x179fc5[_0x44c3b1(0x29c)][_0x44c3b1(0x1ec)](_0x44c3b1(0x1e1))||[..._0x1509e4];_0x179fc5[_0x44c3b1(0x1e2)][_0x44c3b1(0x208)](_0x44c3b1(0x2a2))||(_0x5afced=_0x5afced[_0x44c3b1(0x1f5)](_0x49f4b5=>_0x44c3b1(0x19f)!=_0x49f4b5));const _0x16c00e=new _0x574457(_0x179fc5[_0x44c3b1(0x280)],{'showDiff':this[_0x44c3b1(0x237)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x44c3b1(0x22f)},'hideHeader':!0x0,'availableActions':_0x5afced},this[_0x44c3b1(0x1b3)]);this[_0x44c3b1(0x239)](_0x16c00e);const {reply:_0x53aefe}=this[_0x44c3b1(0x2c6)](_0x4acb46),_0x2d2913=_0x53aefe[_0x44c3b1(0x2d6)]({'showDiff':this[_0x44c3b1(0x237)]})[_0x44c3b1(0x1f5)](_0x1cf921=>_0x1cf921[_0x44c3b1(0x1da)]),_0x5ae01b=_0x2d2913[_0x44c3b1(0x1e0)](_0x2b12c0=>_0x2b12c0[_0x44c3b1(0x24b)]==_0x3ed6f5);if(-0x1==_0x5ae01b)return;const _0x39a6cd=_0x2d2913[_0x5ae01b],_0xf8c6f7=_0x2d2913['at']((_0x5ae01b-0x1)%_0x2d2913[_0x44c3b1(0x209)])?.[_0x44c3b1(0x24b)],_0x5ccb4d=_0x2d2913['at']((_0x5ae01b+0x1)%_0x2d2913[_0x44c3b1(0x209)])?.[_0x44c3b1(0x24b)];_0x16c00e[_0x44c3b1(0x187)]({'parts':[_0x39a6cd],'renderingStrategy':_0x44c3b1(0x2e5)});const _0x13ff32=_0x3ed6f5!==_0xf8c6f7;this[_0x44c3b1(0x212)](_0x5b4a04,!0x0),_0x46342d[_0x44c3b1(0x1a1)]({'index':_0x3ed6f5,'title':_0x1eefe7(this[_0x44c3b1(0x184)][_0x44c3b1(0x280)],_0x44c3b1(0x281),(_0x5ae01b+0x1)[_0x44c3b1(0x2d1)]()),'icon':_0x189519,'mainView':_0x16c00e,'showRotator':_0x13ff32,'showApplyButton':!0x0,'showSuggestButton':_0x179fc5[_0x44c3b1(0x1e2)][_0x44c3b1(0x208)](_0x44c3b1(0x2a2)),'ranges':[_0x5b4a04]}),this[_0x44c3b1(0x197)][_0x44c3b1(0x1fd)](_0x4acb46,_0x3ed6f5),this[_0x44c3b1(0x282)](_0x16c00e,_0x44c3b1(0x1d7),(_0x23b70,{showDiff:_0x2c89d1})=>{const _0x457957=_0x44c3b1;this[_0x457957(0x237)]=_0x2c89d1;const {reply:_0x197b4d}=this[_0x457957(0x2c6)](_0x4acb46),_0x5152e3=_0x197b4d[_0x457957(0x2d6)]({'showDiff':_0x2c89d1,'groupIndex':_0x3ed6f5});_0x16c00e[_0x457957(0x187)]({'parts':_0x5152e3,'renderingStrategy':_0x457957(0x2e5)});}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x229),()=>{const _0xdd91cb=_0x44c3b1;this[_0xdd91cb(0x29f)]({'replyId':_0x4acb46,'partIndex':_0x3ed6f5}),_0x13ff32?this[_0xdd91cb(0x1ed)](_0x4acb46,_0x5ccb4d):_0x46342d[_0xdd91cb(0x1ee)]();}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x19f),()=>{const _0x3c9adf=_0x44c3b1;this[_0x3c9adf(0x1c7)]({'replyId':_0x4acb46,'partIndex':_0x3ed6f5}),_0x13ff32?this[_0x3c9adf(0x1ed)](_0x4acb46,_0x5ccb4d):_0x46342d[_0x3c9adf(0x1ee)]();}),_0x13ff32&&(this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x2ad),()=>{const _0x14c5c6=_0x44c3b1;this[_0x14c5c6(0x1ed)](_0x4acb46,_0x5ccb4d);}),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x1b8),()=>{const _0x4fb1c4=_0x44c3b1;this[_0x4fb1c4(0x1ed)](_0x4acb46,_0xf8c6f7);})),this[_0x44c3b1(0x282)](_0x46342d,_0x44c3b1(0x1d3),()=>{const _0x1a55ba=_0x44c3b1;this[_0x1a55ba(0x239)](_0x46342d),this[_0x1a55ba(0x239)](_0x16c00e),this[_0x1a55ba(0x1ac)]=null;});}[_0x3bf42f(0x241)](_0x3fde95,_0x43eb0a){const _0xcd7f2c=_0x3bf42f,_0x27cdf2=_0x199540(this[_0xcd7f2c(0x184)]),{reply:_0x5dd9b0,interaction:_0x46fd70}=this[_0xcd7f2c(0x2c6)](_0x3fde95),_0x256e80=_0x5dd9b0[_0xcd7f2c(0x23c)][_0xcd7f2c(0x1f5)](_0x3918ac=>_0xcd7f2c(0x1f7)==_0x3918ac[_0xcd7f2c(0x1b7)]),_0x2e88eb=_0x256e80[_0xcd7f2c(0x2b9)](_0x118327=>_0x5dd9b0[_0xcd7f2c(0x23c)][_0xcd7f2c(0x189)](_0x118327));void 0x0===_0x43eb0a&&(_0x43eb0a=_0x2e88eb[0x0]);const _0xea1a54=_0x2e88eb[_0xcd7f2c(0x189)](_0x43eb0a);if(-0x1==_0xea1a54)return null;const _0x22aa71=_0x256e80[_0xea1a54],_0x2a4544=new _0x25a14d([]),_0x5b513c=new _0x25a14d([]);for(const _0x28a40a of _0x22aa71[_0xcd7f2c(0x2df)])if(_0xcd7f2c(0x228)!=_0x28a40a[_0xcd7f2c(0x2c5)]&&_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x28a40a[_0xcd7f2c(0x223)][_0xcd7f2c(0x2ce)](!0x0)),_0xcd7f2c(0x284)!=_0x28a40a[_0xcd7f2c(0x2c5)]){const _0xf3e563=_0x2eb438(_0x5304b4=>_0x4b068a(_0x5304b4,_0xcd7f2c(0x29b))==_0x28a40a['id'],_0x5dd9b0[_0xcd7f2c(0x1f2)],!0x0);_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0xf3e563[_0xcd7f2c(0x2ce)](!0x0));}if(0x0==_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x209)]){if(_0x22aa71[_0xcd7f2c(0x2df)][0x0][_0xcd7f2c(0x198)]){const _0x552a86=_0x36a78e(_0xcd7f2c(0x29b),_0x22aa71[_0xcd7f2c(0x2df)][0x0][_0xcd7f2c(0x198)],_0x5dd9b0[_0xcd7f2c(0x1f2)]);_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x17f)](_0x552a86[_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x17f)](_0x552a86[_0xcd7f2c(0x2ce)](!0x0)),_0x552a86[_0xcd7f2c(0x2c3)]&&(_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x552a86[_0xcd7f2c(0x2c3)][_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x552a86[_0xcd7f2c(0x2c3)][_0xcd7f2c(0x2ce)](!0x0)));}else{const _0x287e6a=_0x5dd9b0[_0xcd7f2c(0x1f2)][_0xcd7f2c(0x27b)][0x0];if(!_0x287e6a)return null;_0x2a4544[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x287e6a[_0xcd7f2c(0x2ce)](!0x0)),_0x5b513c[_0xcd7f2c(0x27b)][_0xcd7f2c(0x1bf)](_0x287e6a[_0xcd7f2c(0x2ce)](!0x0));}}const _0x5f3573=_0x46fd70[_0xcd7f2c(0x21a)](),_0x1fd531=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x5f3573[_0xcd7f2c(0x2bd)],_0xcd7f2c(0x18d)),_0x50d13a=_0xb94479(_0x2a4544),_0x2bf92b=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x50d13a),_0x17aec2=_0x27cdf2[_0xcd7f2c(0x2e2)][_0xcd7f2c(0x217)](_0x50d13a),_0x138d77=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x18e)](_0x2bf92b,0x0),_0x3964f7=_0xb94479(_0x5b513c),_0x409ae5={'anchor':_0x138d77,'markDeletions':!0x1,'context':_0xcd7f2c(0x18d)},_0x33ed52=_0x27cdf2[_0xcd7f2c(0x1e2)][_0xcd7f2c(0x1ec)](_0x1ae707)[_0xcd7f2c(0x2eb)](_0x50d13a,_0x3964f7,_0x409ae5)[_0xcd7f2c(0x277)]();if(!_0x33ed52[_0xcd7f2c(0x209)])return null;_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x20a)](_0x2215d4=>{const _0x26c462=_0xcd7f2c;for(const _0x10183d of _0x33ed52)if(_0x26c462(0x253)==_0x10183d[_0x26c462(0x2c5)]){const _0x54049e=_0x10183d[_0x26c462(0x2ef)],_0x37358f=_0x10183d[_0x26c462(0x22a)],_0x214112=new _0x31c239(_0x54049e,_0x37358f);_0x2215d4[_0x26c462(0x235)][_0x26c462(0x1d8)](_0x214112),_0x27cdf2[_0x26c462(0x1cc)][_0x26c462(0x20f)](_0x214112);}else _0x26c462(0x2a7)!==_0x10183d[_0x26c462(0x2c5)]&&(_0x10183d[_0x26c462(0x278)]=null,_0x10183d[_0x26c462(0x26b)]=!0x1,_0x2215d4[_0x26c462(0x235)][_0x26c462(0x1d8)](_0x10183d),_0x27cdf2[_0x26c462(0x1cc)][_0x26c462(0x20f)](_0x10183d));});const _0xfe6f56=_0x45e851(_0x27cdf2,_0x33ed52,_0x2bf92b);_0x26de45(_0x27cdf2[_0xcd7f2c(0x1cc)],_0xfe6f56);const _0x13eef1=_0xfe6f56[_0xcd7f2c(0x292)]()[_0xcd7f2c(0x2cb)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x130310=_0xfe6f56[_0xcd7f2c(0x292)]()[_0xcd7f2c(0x255)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x278b26=[];let _0x20aa4f=_0x2bf92b,_0x3765da=_0x17aec2;for(let _0x4971f9=0x0;_0x4971f9<_0x130310[_0xcd7f2c(0x209)];_0x4971f9++){const _0x317a91=_0x20aa4f[_0xcd7f2c(0x2d8)]-_0x130310[_0x4971f9];_0x278b26[_0x4971f9]=_0x3765da[_0xcd7f2c(0x2d8)]-_0x317a91,_0x20aa4f=_0x20aa4f[_0xcd7f2c(0x2ec)](_0x130310[_0x4971f9]),_0x3765da=_0x3765da[_0xcd7f2c(0x2ec)](_0x278b26[_0x4971f9]);}const _0x4cd895=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x21c)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x17aec2,_0x13eef1),_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x17aec2,_0x278b26)),_0x3278fe=_0x17aec2[_0xcd7f2c(0x27d)](0x0)[_0xcd7f2c(0x1d1)](_0x289cba),_0x532eee=Array[_0xcd7f2c(0x263)](_0x1fd531[_0xcd7f2c(0x19c)]())[_0xcd7f2c(0x186)](_0x163a3f=>_0x163a3f[_0xcd7f2c(0x1d1)](_0x289cba)==_0x3278fe)[_0xcd7f2c(0x1f3)](),_0x4f6ced=_0x4cd895[_0xcd7f2c(0x2cb)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)](),_0x26e700=_0x4cd895[_0xcd7f2c(0x255)][_0xcd7f2c(0x2e3)][_0xcd7f2c(0x23a)]();_0x4f6ced[0x0]=_0x532eee[0x0]+_0x4f6ced[0x0],_0x26e700[0x0]=_0x532eee[0x0]+_0x26e700[0x0];let _0x3caceb=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x21c)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x1de)](),_0x4f6ced),_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2ba)](_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x1de)](),_0x26e700));const _0x4f7add=_0x27cdf2[_0xcd7f2c(0x1cc)][_0xcd7f2c(0x2c0)][_0xcd7f2c(0x2c1)][_0xcd7f2c(0x277)](_0x5f3573[_0xcd7f2c(0x242)]);for(const _0xc066c2 of _0x4f7add)_0x3caceb=_0x4dc44b[_0xcd7f2c(0x26c)](_0x3caceb[_0xcd7f2c(0x1eb)](_0xc066c2));return{'range':_0x3caceb,'currentIndex':_0x43eb0a};}[_0x3bf42f(0x1dd)](_0x3e82e7){const _0x3250e9=_0x3bf42f;if(!_0x3e82e7[_0x3250e9(0x1e2)][_0x3250e9(0x208)](_0x3250e9(0x1a4)))return;const _0x2860c7=_0x3e82e7[_0x3250e9(0x296)][_0x3250e9(0x1ec)](_0x3250e9(0x2b8)),_0x199667=_0x3e82e7[_0x3250e9(0x296)][_0x3250e9(0x1ec)](_0x3250e9(0x2e8));this[_0x3250e9(0x282)](_0x2860c7,_0x3250e9(0x276),(_0x4d4474,_0x3b2eef,_0x3669b7)=>{const _0x21a7c1=_0x3250e9,_0xbc9a99=this[_0x21a7c1(0x298)][_0x21a7c1(0x1ec)](_0x3b2eef);if(!_0xbc9a99)return;const _0x2b45e6=this[_0x21a7c1(0x1ff)][_0x21a7c1(0x185)](_0xbc9a99[_0x21a7c1(0x26e)])[_0x21a7c1(0x247)](_0xbc9a99[_0x21a7c1(0x271)]);_0xbc9a99[_0x21a7c1(0x2d3)][_0x21a7c1(0x1e9)](_0x140d20=>_0x2b45e6[_0x21a7c1(0x2b4)](_0x140d20,_0x21a7c1(0x1f7))),this[_0x21a7c1(0x298)][_0x21a7c1(0x2a1)](_0x3b2eef),this[_0x21a7c1(0x298)][_0x21a7c1(0x2d5)](_0x3669b7,_0xbc9a99);}),this[_0x3250e9(0x282)](_0x199667,_0x3250e9(0x276),(_0x4a9ee0,_0xa03709,_0x526449)=>{const _0x33bf35=_0x3250e9,_0x18000e=this[_0x33bf35(0x298)][_0x33bf35(0x1ec)](_0xa03709);if(!_0x18000e)return;const _0x350d9f=this[_0x33bf35(0x1ff)][_0x33bf35(0x185)](_0x18000e[_0x33bf35(0x26e)])[_0x33bf35(0x247)](_0x18000e[_0x33bf35(0x271)]);_0x18000e[_0x33bf35(0x2d3)][_0x33bf35(0x1e9)](_0x26c883=>_0x350d9f[_0x33bf35(0x2b4)](_0x26c883,_0x33bf35(0x254))),this[_0x33bf35(0x298)][_0x33bf35(0x2a1)](_0xa03709),this[_0x33bf35(0x298)][_0x33bf35(0x2d5)](_0x526449,_0x18000e);});}async[_0x3bf42f(0x262)](_0x110eaf){const _0x4e8dad=_0x3bf42f;this[_0x4e8dad(0x184)][_0x4e8dad(0x1e2)][_0x4e8dad(0x1ec)](_0xb76b26)[_0x4e8dad(0x1ee)](),this[_0x4e8dad(0x197)][_0x4e8dad(0x210)](_0x4e8dad(0x2e5)),this[_0x4e8dad(0x197)][_0x4e8dad(0x26d)](!0x0),await this[_0x4e8dad(0x1b0)]();try{await this[_0x4e8dad(0x2da)][_0x4e8dad(0x252)](_0x110eaf)[_0x4e8dad(0x24c)](),await this[_0x4e8dad(0x1a9)](_0x110eaf),this[_0x4e8dad(0x258)]('\x20');const {sessionId:_0x497d35}=this[_0x4e8dad(0x293)][_0x4e8dad(0x1d4)]();await this[_0x4e8dad(0x1ff)][_0x4e8dad(0x2a6)](_0x110eaf,_0x497d35),this[_0x4e8dad(0x1ff)][_0x4e8dad(0x1bb)]()&&this[_0x4e8dad(0x1ff)][_0x4e8dad(0x1e7)](_0x1eefe7(this[_0x4e8dad(0x184)][_0x4e8dad(0x280)],_0x4e8dad(0x2d2)));}catch(_0x1f349c){this[_0x4e8dad(0x197)][_0x4e8dad(0x206)]({'errorMessage':_0x1eefe7(this[_0x4e8dad(0x184)][_0x4e8dad(0x280)],_0x4e8dad(0x2d7)),'id':_0x110eaf}),this[_0x4e8dad(0x259)](new _0x43f47e(_0x4e8dad(0x2ca),this,{'error':_0x1f349c}));}finally{this[_0x4e8dad(0x184)][_0x4e8dad(0x1e2)][_0x4e8dad(0x1ec)](_0x1b079d)[_0x4e8dad(0x26a)][_0x4e8dad(0x1b6)](_0x4e8dad(0x1ba)),this[_0x4e8dad(0x197)][_0x4e8dad(0x20e)](),this[_0x4e8dad(0x197)][_0x4e8dad(0x210)](_0x4e8dad(0x1df)),this[_0x4e8dad(0x197)][_0x4e8dad(0x26d)](!0x1);}}[_0x3bf42f(0x25b)](_0x174097){const _0x5b5cda=_0x3bf42f;this[_0x5b5cda(0x1ff)]['id']===_0x174097&&this[_0x5b5cda(0x1a9)]();}async[_0x3bf42f(0x1ca)](){const _0x527309=_0x3bf42f,_0x4d1b7d=this[_0x527309(0x293)][_0x527309(0x246)]();this[_0x527309(0x1ff)]?.[_0x527309(0x201)](_0x4d1b7d),this[_0x527309(0x1ff)]?.[_0x527309(0x1e7)](_0x1eefe7(this[_0x527309(0x184)][_0x527309(0x280)],_0x527309(0x2d2)));}[_0x3bf42f(0x257)](){const _0x226b3a=_0x3bf42f;this[_0x226b3a(0x1ff)]?.[_0x226b3a(0x1f6)]();}[_0x3bf42f(0x194)](){const _0x2f1ef4=_0x3bf42f;this[_0x2f1ef4(0x197)][_0x2f1ef4(0x194)]();}async[_0x3bf42f(0x28e)](){const _0x503217=_0x3bf42f;await this[_0x503217(0x1a9)]();}async[_0x3bf42f(0x19a)]({message:_0x388932,quickActionData:_0x22fda4}){const _0xdb0640=_0x3bf42f;await this[_0xdb0640(0x222)]({'userMessage':_0x388932,'quickActionData':_0x22fda4});}[_0x3bf42f(0x268)](){const _0x5a1e4f=_0x3bf42f,_0x3b4a55=this[_0x5a1e4f(0x184)][_0x5a1e4f(0x29c)][_0x5a1e4f(0x1ec)](_0x5a1e4f(0x19b));if(!_0x3b4a55)throw new _0x43f47e(_0x5a1e4f(0x1e8),this);return _0x3b4a55;}async[_0x3bf42f(0x1a9)](_0xba5e10){const _0x16eba3=_0x3bf42f;try{this[_0x16eba3(0x197)][_0x16eba3(0x266)](),await this[_0x16eba3(0x191)](_0xba5e10);}catch(_0x1a94e4){this[_0x16eba3(0x197)][_0x16eba3(0x206)]({'errorMessage':_0x1eefe7(this[_0x16eba3(0x184)][_0x16eba3(0x280)],_0x16eba3(0x195)),'id':_0xba5e10||_0x546e7d()}),console[_0x16eba3(0x289)](_0x1a94e4),this[_0x16eba3(0x1ff)]=void 0x0,this[_0x16eba3(0x197)][_0x16eba3(0x245)]();}}async[_0x3bf42f(0x191)](_0x689eeb){const _0x1d7276=_0x3bf42f,_0x4ab3ba=this[_0x1d7276(0x184)][_0x1d7276(0x1e2)][_0x1d7276(0x1ec)](_0xb76b26);let _0x44d84e;_0x4ab3ba[_0x1d7276(0x205)]&&_0x4ab3ba[_0x1d7276(0x1ee)](),_0x689eeb||!this[_0x1d7276(0x1ff)]?_0x44d84e=this[_0x1d7276(0x184)][_0x1d7276(0x29c)][_0x1d7276(0x1ec)](_0x1d7276(0x28b)):this[_0x1d7276(0x197)][_0x1d7276(0x29e)]&&(_0x44d84e=this[_0x1d7276(0x1ff)][_0x1d7276(0x20d)]['id']),await this[_0x1d7276(0x1b0)]();const _0x459a79=this[_0x1d7276(0x268)](),_0x3fae1d=_0x689eeb||_0x546e7d();this[_0x1d7276(0x1ff)]=new _0x2e1a0e({'connector':this[_0x1d7276(0x2da)],'chatModels':this[_0x1d7276(0x1b5)],'selectedModelId':_0x44d84e,'conversationId':_0x3fae1d,'group':_0x459a79,'getEditor':()=>_0x199540(this[_0x1d7276(0x184)])}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x213),(_0x10490b,_0x3ac826)=>{const _0x2c8534=_0x1d7276;this[_0x2c8534(0x197)][_0x2c8534(0x2ab)](_0x3ac826),this[_0x2c8534(0x197)][_0x2c8534(0x215)](),this[_0x2c8534(0x197)][_0x2c8534(0x251)](),this[_0x2c8534(0x197)][_0x2c8534(0x1fb)](),_0x689eeb||(this[_0x2c8534(0x197)][_0x2c8534(0x1c3)](),this[_0x2c8534(0x1ff)]?.[_0x2c8534(0x1e7)](_0x1eefe7(this[_0x2c8534(0x184)][_0x2c8534(0x280)],_0x2c8534(0x2d2))));}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1a7),(_0x1e7cfa,_0x191461)=>{const _0x2037e3=_0x1d7276;this[_0x2037e3(0x197)][_0x2037e3(0x1a0)](_0x191461[_0x2037e3(0x216)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1cf),(_0x57812b,_0x999d38)=>{const _0x1387ee=_0x1d7276;this[_0x1387ee(0x197)][_0x1387ee(0x24e)](_0x999d38);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2e4),()=>{const _0x5bd004=_0x1d7276;this[_0x5bd004(0x197)][_0x5bd004(0x22e)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x26f),()=>{const _0x225bc2=_0x1d7276;this[_0x225bc2(0x197)][_0x225bc2(0x22e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1ce),(_0x4340c9,_0x5c25cd)=>{const _0x1f3827=_0x1d7276;this[_0x1f3827(0x197)][_0x1f3827(0x260)](_0x5c25cd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x18a),(_0x55293d,_0x2328d6)=>{const _0x75109b=_0x1d7276;this[_0x75109b(0x197)][_0x75109b(0x260)](_0x2328d6,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2bc),()=>{const _0x3f8a88=_0x1d7276;this[_0x3f8a88(0x197)][_0x3f8a88(0x1af)]();}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2ea),async()=>{const _0x1d0d48=_0x1d7276;await this[_0x1d0d48(0x197)][_0x1d0d48(0x286)]();}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x250),(_0xaac431,_0x4eec5f)=>{const _0x52da08=_0x1d7276;this[_0x52da08(0x197)][_0x52da08(0x2b6)](_0x4eec5f['id']);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x283),(_0x416810,_0x12392b,_0x974353)=>{const _0x1f45bc=_0x1d7276;this[_0x1f45bc(0x258)](_0x12392b,_0x974353);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1fa),(_0x7e3cea,_0x53b64d)=>{const _0x4c6467=_0x1d7276;_0x4c6467(0x275)===_0x53b64d[_0x4c6467(0x2c5)]?this[_0x4c6467(0x197)][_0x4c6467(0x2a4)](_0x53b64d):this[_0x4c6467(0x197)][_0x4c6467(0x2a8)](_0x53b64d);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1dc),async(_0x5dbb38,_0x153540)=>{const _0x2b6b6e=_0x1d7276;await this[_0x2b6b6e(0x273)]({'reply':_0x153540});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2e1),(_0x1febb7,{reply:_0x240bf2,index:_0xa3f156,state:_0x36eff9})=>{const _0x47b443=_0x1d7276;this[_0x47b443(0x197)][_0x47b443(0x28f)]({'id':_0x240bf2['id'],'index':_0xa3f156,'state':_0x36eff9});}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x291),(_0x380cfd,_0x1d236c)=>{const _0x3649c9=_0x1d7276;if(this[_0x3649c9(0x197)][_0x3649c9(0x1c9)](_0x1d236c[_0x3649c9(0x2cf)],_0x1d236c[_0x3649c9(0x190)]),_0x3649c9(0x2a5)===_0x1d236c[_0x3649c9(0x2cf)][_0x3649c9(0x2c5)]){const _0x390072=[..._0x199540(this[_0x3649c9(0x184)])[_0x3649c9(0x1cc)][_0x3649c9(0x2c0)][_0x3649c9(0x2a5)][_0x3649c9(0x28c)]()];this[_0x3649c9(0x293)][_0x3649c9(0x279)](_0x390072,_0x3649c9(0x207)+this[_0x3649c9(0x1ff)]?.['id']);}}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x23d),(_0x456eba,_0x2a0610)=>{const _0x2887f4=_0x1d7276;this[_0x2887f4(0x197)][_0x2887f4(0x1c2)](_0x2a0610[_0x2887f4(0x1d9)]),_0x2887f4(0x2cd)==_0x2a0610[_0x2887f4(0x1d9)]&&this[_0x2887f4(0x257)](),_0x2887f4(0x2a5)===_0x2a0610[_0x2887f4(0x2c5)]&&this[_0x2887f4(0x293)][_0x2887f4(0x20c)](_0x2887f4(0x207)+this[_0x2887f4(0x1ff)]?.['id']);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x27e),(_0x585c83,_0x1f7ab8)=>{const _0x494ca8=_0x1d7276;this[_0x494ca8(0x197)][_0x494ca8(0x1c4)](_0x1f7ab8[_0x494ca8(0x2cf)][_0x494ca8(0x1d9)],_0x1f7ab8[_0x494ca8(0x190)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x274),(_0x2fff17,_0xa08a0e)=>{const _0x1a3cc2=_0x1d7276;this[_0x1a3cc2(0x197)][_0x1a3cc2(0x2a3)](_0xa08a0e[_0x1a3cc2(0x18b)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2b7),(_0xf811f8,_0x467e0e)=>{const _0x5bc901=_0x1d7276;this[_0x5bc901(0x197)][_0x5bc901(0x2e7)](_0x467e0e[_0x5bc901(0x22b)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x25c),(_0x372e88,_0x2d96b3)=>{const _0x2e1b15=_0x1d7276;this[_0x2e1b15(0x197)][_0x2e1b15(0x225)](_0x2d96b3[_0x2e1b15(0x19e)],_0x2d96b3[_0x2e1b15(0x1c1)],_0x2d96b3[_0x2e1b15(0x1b2)],_0x2d96b3[_0x2e1b15(0x299)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x27c),(_0x4cd18c,_0x1f0237)=>{const _0x15da61=_0x1d7276;this[_0x15da61(0x197)][_0x15da61(0x1c6)](_0x1f0237[_0x15da61(0x19e)],_0x1f0237[_0x15da61(0x204)],_0x1f0237[_0x15da61(0x25f)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x1b4),(_0x471ada,_0x2ab3a3)=>{const _0x3b10e9=_0x1d7276;this[_0x3b10e9(0x197)][_0x3b10e9(0x2c2)](_0x2ab3a3);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x2dd),(_0x43ce7f,_0x2f163e)=>{const _0x122756=_0x1d7276;this[_0x122756(0x197)][_0x122756(0x233)](_0x2f163e[_0x122756(0x20d)],_0x2f163e[_0x122756(0x270)]);}),this[_0x1d7276(0x1ff)]['on'](_0x1d7276(0x289),(_0x26a07c,{error:_0x39f6a1,interactionId:_0x36fc05,fileName:_0x3b5db1,url:_0x8b9aa5,sourceId:_0x2c047e,sourceLabel:_0x5901ce})=>{const _0x13f387=_0x1d7276,_0x40adff=_0x36fc05?_0x36fc05+':'+_0x546e7d():_0x546e7d();_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x264))?this[_0x13f387(0x197)][_0x13f387(0x2aa)]({'staticMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x27f)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x199))||_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x181))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x195)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x23b))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2ed),_0x3b5db1),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x249))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x285),_0x8b9aa5),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x20b))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x297)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x2b1))?this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1d5)),'id':_0x40adff}):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x1a8))?(_0x2c047e&&this[_0x13f387(0x197)][_0x13f387(0x2db)](_0x2c047e),this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x27a),_0x5901ce||_0x13f387(0x1c1)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x180))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2ae)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x2b2))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2d4)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x219))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x294)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x200))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1d0)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x25e))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x2bf)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):_0x39f6a1[_0x13f387(0x240)][_0x13f387(0x28d)](_0x13f387(0x1f8))?(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1c0)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1)):(this[_0x13f387(0x197)][_0x13f387(0x206)]({'errorMessage':_0x1eefe7(this[_0x13f387(0x184)][_0x13f387(0x280)],_0x13f387(0x1db)),'id':_0x40adff}),this[_0x13f387(0x259)](_0x39f6a1));}),await this[_0x1d7276(0x1ff)][_0x1d7276(0x1f4)](this[_0x1d7276(0x184)][_0x1d7276(0x29c)][_0x1d7276(0x1ec)](_0x1d7276(0x23f))),_0x689eeb||await this[_0x1d7276(0x1ff)][_0x1d7276(0x2cb)]();}async[_0x3bf42f(0x222)]({userMessage:_0x452c02,quickActionData:_0x24e355}){const _0x216cdd=_0x3bf42f;if(!this[_0x216cdd(0x1ff)])throw new _0x43f47e(_0x216cdd(0x1aa));this[_0x216cdd(0x1ff)][_0x216cdd(0x221)]()&&await this[_0x216cdd(0x1ff)][_0x216cdd(0x1fc)](this[_0x216cdd(0x293)][_0x216cdd(0x1d4)]()),this[_0x216cdd(0x1ff)]['id']&&this[_0x216cdd(0x1ff)][_0x216cdd(0x1bc)]&&await this[_0x216cdd(0x1ff)][_0x216cdd(0x19d)]({'userMessage':_0x452c02,'quickActionData':_0x24e355}),this[_0x216cdd(0x21b)]();}[_0x3bf42f(0x21b)](){const _0x53b141=_0x3bf42f,_0x427772=_0x199540(this[_0x53b141(0x184)])[_0x53b141(0x1cc)],_0x4f7463=Array[_0x53b141(0x263)](_0x427772[_0x53b141(0x18f)][_0x53b141(0x1e4)](_0x1e4817));_0x427772[_0x53b141(0x20a)](_0x215923=>{const _0x352309=_0x53b141;_0x4f7463[_0x352309(0x1e9)](_0x3a1c2a=>_0x215923[_0x352309(0x238)](_0x3a1c2a));});}[_0x3bf42f(0x18c)](){const _0x2ae066=_0x3bf42f;console[_0x2ae066(0x269)](_0x2ae066(0x22c));}[_0x3bf42f(0x236)](_0x51e775){const _0x32fab2=_0x3bf42f;this[_0x32fab2(0x197)][_0x32fab2(0x2e9)](_0x51e775);}[_0x3bf42f(0x259)](_0x3cf5f7){const _0x1b5ad7=_0x3bf42f;_0x4e7c88(_0x3cf5f7[_0x1b5ad7(0x240)]);}[_0x3bf42f(0x29d)](_0x57b6e6){const _0x36a050=_0x3bf42f;this[_0x36a050(0x1ff)]?.[_0x36a050(0x1ef)](_0x57b6e6);}[_0x3bf42f(0x1b9)](){const _0x566984=_0x3bf42f;this[_0x566984(0x1ff)]?.[_0x566984(0x2c7)]();}[_0x3bf42f(0x1cb)](){const _0x244711=_0x3bf42f;this[_0x244711(0x1ff)]?.[_0x244711(0x1f1)]();}[_0x3bf42f(0x2c6)](_0x410f4d){const _0x45ddd6=_0x3bf42f,[_0x2410da,_0x4facd3]=_0x410f4d[_0x45ddd6(0x1be)](':'),_0x3e2eaf=this[_0x45ddd6(0x1ff)][_0x45ddd6(0x185)](_0x2410da),_0x3b1a81=_0x3e2eaf[_0x45ddd6(0x247)](_0x4facd3);return{'interaction':_0x3e2eaf,'reply':_0x3b1a81};}[_0x3bf42f(0x212)](_0x44fd5a,_0x37f2db=!0x1){const _0x4e3ba5=_0x3bf42f,_0x421694=_0x199540(this[_0x4e3ba5(0x184)]),_0x1df321={'target':_0x421694[_0x4e3ba5(0x1ae)][_0x4e3ba5(0x26a)][_0x4e3ba5(0x24f)][_0x4e3ba5(0x25a)](_0x421694[_0x4e3ba5(0x1ae)][_0x4e3ba5(0x1a6)][_0x4e3ba5(0x290)](_0x44fd5a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x37f2db};_0x37f2db&&(_0x1df321[_0x4e3ba5(0x2c8)]=!0x0),_0x125cfd(_0x1df321);}[_0x3bf42f(0x258)](_0x5deede,_0x46adf9=!0x1){const _0x35dcf1=_0x3bf42f;this[_0x35dcf1(0x197)][_0x35dcf1(0x283)](_0x5deede||_0x1eefe7(this[_0x35dcf1(0x184)][_0x35dcf1(0x280)],_0x35dcf1(0x224)),_0x46adf9);}async[_0x3bf42f(0x273)]({reply:_0x281926,renderingStrategy:_0x4eef65}){const _0x56f7db=_0x3bf42f,{id:_0x2565fd,isDone:_0x255763,type:_0x379264,parsedContent:_0x488eda}=_0x281926;if(_0x56f7db(0x1f0)===_0x379264){const _0x31c2e3=_0x281926[_0x56f7db(0x2d6)]({'showDiff':this[_0x56f7db(0x197)][_0x56f7db(0x244)]});await this[_0x56f7db(0x197)][_0x56f7db(0x2bb)]({'id':_0x2565fd,'parts':_0x31c2e3,'renderingStrategy':_0x4eef65,'isDone':_0x255763});}else _0x56f7db(0x275)===_0x379264&&await this[_0x56f7db(0x197)][_0x56f7db(0x265)]({'id':_0x2565fd,'parsedContent':_0x488eda,'renderingStrategy':_0x4eef65,'isDone':_0x255763});_0x255763&&_0x281926[_0x56f7db(0x2ac)][_0x56f7db(0x209)]>0x0&&this[_0x56f7db(0x197)][_0x56f7db(0x2b0)](_0x2565fd,_0x281926[_0x56f7db(0x2ac)]);}async[_0x3bf42f(0x1b0)](){const _0x22f5ae=_0x3bf42f,_0x2f7a80=this[_0x22f5ae(0x1ff)]?.[_0x22f5ae(0x2a0)];_0x2f7a80&&(_0x2f7a80[_0x22f5ae(0x243)](),this[_0x22f5ae(0x197)][_0x22f5ae(0x2be)](_0x2f7a80));}async[_0x3bf42f(0x182)](){const _0x1deb67=_0x3bf42f,_0x119c1c=this[_0x1deb67(0x1ff)]?.[_0x1deb67(0x2a0)];if(_0x119c1c){for await(const _0x288de4 of _0x119c1c[_0x1deb67(0x1ad)])await this[_0x1deb67(0x273)]({'reply':_0x288de4,'renderingStrategy':_0x1deb67(0x2e5)});}}[_0x3bf42f(0x2a9)](_0xb1e532){const _0x7b8818=_0x3bf42f,_0x190712={'positiveCount':_0xb1e532[_0x7b8818(0x23c)][_0x7b8818(0x1f5)](_0x1c9fce=>_0x7b8818(0x254)===_0x1c9fce[_0x7b8818(0x1b7)])[_0x7b8818(0x209)],'totalCount':_0xb1e532[_0x7b8818(0x23c)][_0x7b8818(0x209)],'modificationId':_0xb1e532['id']},_0x273e2a=this[_0x7b8818(0x1ff)][_0x7b8818(0x185)](_0xb1e532[_0x7b8818(0x26e)])[_0x7b8818(0x287)];this[_0x7b8818(0x2da)][_0x7b8818(0x1e3)](this[_0x7b8818(0x1ff)]['id'],_0x273e2a,_0x190712);}}
|
|
23
|
+
const _0x8c2602=_0x4186;(function(_0x25c7aa,_0xb70bcb){const _0x1a3abe=_0x4186,_0x563426=_0x25c7aa();while(!![]){try{const _0x34e005=-parseInt(_0x1a3abe(0x149))/0x1+-parseInt(_0x1a3abe(0x1da))/0x2*(parseInt(_0x1a3abe(0x16a))/0x3)+parseInt(_0x1a3abe(0x191))/0x4*(-parseInt(_0x1a3abe(0x1f2))/0x5)+-parseInt(_0x1a3abe(0x12a))/0x6*(parseInt(_0x1a3abe(0x18a))/0x7)+parseInt(_0x1a3abe(0x23d))/0x8+-parseInt(_0x1a3abe(0xfe))/0x9+parseInt(_0x1a3abe(0x11d))/0xa;if(_0x34e005===_0xb70bcb)break;else _0x563426['push'](_0x563426['shift']());}catch(_0x2f4db8){_0x563426['push'](_0x563426['shift']());}}}(_0x424e,0xb138d));import{ContextPlugin as _0x2c9326,Editor as _0x5bc23b}from'ckeditor5/src/core.js';import{BodyCollection as _0x2bcdab}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2a84dd,logError as _0x2d378d,scrollViewportToShowTarget as _0x5de7b5,uid as _0xa18360}from'ckeditor5/src/utils.js';import{AIConnector as _0x47ceb5}from'../aicore/aiconnector.js';import{AITabs as _0x1d4d68}from'../aitabs/aitabs.js';import{AIChatConversation as _0xf13ee3}from'./model/aichatconversation.js';import{getTranslation as _0x3092a6}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x189cfc}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x261985}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x424e(){const _0x308154=['destroy','ai-chat-conversation-not-found','webSearchFinished','ai-chat-conversation-init-failed','$graveyard','document','getInteraction','ai-chat-invalid-request','AIConnector','removeContextItem','insertSuggestion','updateContent','_aiEditing','156737ziRJSz','startConversation','resizedTabs','like','_handleUIUserMessage','addFileToContext','isOfficialPlugin','4uVIxNB','path','resourceId','stop','updateConversationTitle','getDiff','documentContextContent','stopInteraction','getGroupId','populateSourceResourceBalloon','interactionCreated','version','replyCreated','detachFromDom','AI_CHAT_CONTEXT_INVALID_DATA','hideFakeVisualSelection','handleRemovedConversation','updateCapabilities','markers','query','root','replyId','current-document','model','getFirstRange','rejected','createConversation','domConverter','resources','setSelectedModel','ai.chat.context','ai-chat-context-form-data-size-limits-exceeded','$root','updateResourceState','change','indexes','changes','reasoningStarted','startAutoScroll','AI_CHAT_ABORTED_MESSAGE','resize','ai-chat-controller-no-active-conversation','addContextOptionsChanged','addFeedItemError','view','lastInteraction','_scrollToSuggestionRange','startsWith','setChangeGroupState','addFeedItemAISuggestion','loadSourceResources','addSelectionToContext','_aiChatModels','toString','isLoading','_setIsMaximized','setLoadingMessage','contextItemAdded','main','addContextItem','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','unshift','isPremiumPlugin','disableControls','partIndex','setModel','ai-chat-resource-load-failed','setConversationTitle','loadConversation','context','pending','add','_aiConnector','8Qiviwz','AI_CHAT_UNTITLED_CONVERSATION','start','getChildAtOffset','requires','options','dislike','AIChatController','_applyOperationsAsSuggestions','editing','_createFromRanges','type','cloneNode','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','activateTab','clearConversationContextUI','showChangeInText','reasoningFinished','pluginName','toggleLoadingSkeleton','index','_applySuggestion','addResourceToContext','Undo','5204725JxcCwS','_batchToChanges','ai-chat-context-file-too-large','history','DocumentCompare','toViewRange','scrollFeedToSuggestion','applyOperation','revert','findIndex','_previewedChangeGroup','ai-chat-url-upload-failed','Liked\x20response','_balloonShowDiff','_updateRatings','showPrevious','showNext','accepted','listenTo','chat','rootName','end','_removeFromContext','outdated','uid','anchorId','data','_flushLastInteractionUI','getDocumentData','ai-chat-controller-mouse-over','updateFeedItemAIReplySources','sourceId','delete','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','contextItems','toggleWebSearch','selectedModel','clearPendingContextUI','interactionId','getMarkersGroup','replyChangeGroupStateUpdated','_removeAISelectionMarkers','AI_BALLOON_HEADER_TITLE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','get','focusPromptInput','closeSourceResourceBalloon','ai-chat-context-file-too-many-pages','createRange','sourcePosition','applySuggestion','length','error','_openBalloonFor','full','editors','stopListening','_updateReplyContent','config','maxOffset','set','parse','_stopLastInteraction','forEach','howMany','contextItem','rejectSuggestion','webSearchStarted','ai-chat-context-invalid-data','removeFromContext','setConversationContext','map','find','source','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','5959744rMOJID','addSelectionToChatContext','node','addUrlToContext','ai.chat.models.displayedModels','setContextItemLoading','_handleStartConversation','setIsMaximized','redo','uploadProgressChanged','activeConversation','marker','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-context-unsupported-type','createPositionAt','updateFeedItemAIReplySuggestionContent','static','interactionFinished','replyContentUpdated','ai-chat-file-upload-failed','isCurrentDocumentInContext','AITabs','mouseOverSuggestion','getChild','removeFeedInteraction','ai-request-aborted','abortPromptStream','getReply','getRanges','conversationInitialized','showFakeVisualSelection','getChildren','contextItemLoadingEnded','_showConversationHistory','changeGroups','viewRangeToDom','getAttribute','interactionDestroyed','slice','addFilesToContext','TrackChangesEditing','selectModel','uiId','AI_CHAT_INVALID_REQUEST','ai-no-track-changes','removeSelectionFromChatContext','ai.availableReplyActions','addOperation','isModelAvailable','resource','6238413HRgkXk','state','interactionStarted','_toggleReasoning','sendMessage','isDocumentOperation','resizeTabs','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getInteractionAndReplyById','getConversation','_toggleWebSearch','enableControls','isOpen','contextSent','data-id','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateFeedItemAIReplySuggestionPartState','startInteraction','Showing\x20conversation\x20history...','addFeedItemStaticMessage','getContentParts','ai.chat.models.defaultModelId','getRoot','AIEditing','ai-chat-context-unsupported-file-type','locale','ai-chat-source-resources-load-failed','init','setAddContextOptions','capabilitiesUpdated','isCurrentDocumentInConversation','42020870FzZSyO','_bodyCollection','sourceResourcesLoaded','remove','_insertSuggestion','close','from','setFeedItemRenderingStrategy','addFeedItemAIReply','upsertAIChatRating','resourceStateChanged','indexOf','contextItemRemoved','246QUocDV','content','removeSelectionFromContext','afterInit','isStarted','ai-conversation-','handleUserInteraction','collaboration.channelId','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','getDocumentContext','new','open','getPath','addDocumentToContext','selection','isUploadInProgress','AI_CHAT_RESOURCE_LOAD_FAILED','getSelectionText','replies','setIsUploadInProgress','AIChatUI','addCurrentDocumentToContext','TrackChanges','range','message','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getOperations','ready','nextSibling','streaming','_logError','711453WnnPRZ','resetConversationTitle','AI_CHAT_GENERIC_ERROR','ai-chat-missing-channel-id','baseVersion','_aiChatUi','removed','finishInteraction','addFeedItemUserMessage','addFeedInteractionHeader','createPositionFromPath','alignToTop','attachToDom','_startConversationSafely','resetMessageInput','showDiff','mouseLeaveSuggestion','_getDocumentRangeForReplyChanges','load','split','isInContext','updateFeedItemAIReplyContent','log','push','getTransformedByOperation','Disliked\x20response','ai-chat-conversation-start-failed','_integrateEditor','messageId','modelSelected','fetchConversation','undo','AI_CHAT_CONTEXT_FILE_TOO_LARGE','643176oTblvI','has','dialogClosed','mapper','children','plugins','updateCurrentDocumentInContext','filter','batch','toggleReasoning','hasChanges','modification-delta','toggleSuggestionDisplayMode','isDisabled','commands','text-delta','removeMarker','sources','sendUserMessage'];_0x424e=function(){return _0x308154;};return _0x424e();}import{AIModels as _0x148d51}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3fa301}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x42bdb4,DATA_ID_MODEL_ATTRIBUTE as _0x4e6a79}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x393cf8,getOperationsFromReply as _0x1a1d19}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x5830fc,getMinimalSelection as _0x283eab}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1d0bbd,_DetachOperation as _0x20bbc9}from'ckeditor5/src/engine.js';import{findOne as _0x336fc3,getAttribute as _0x5270e7,serialize as _0x1a5111,Document as _0xdab3ce,findByAttribute as _0x2de233}from'../aicore/utils/htmlparser.js';import{IconAI as _0x320133}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x128223}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x50f0cf}from'../aiballoon/aiballoon.js';function _0x4186(_0x561bf2,_0x22dab2){const _0x424e39=_0x424e();return _0x4186=function(_0x4186cd,_0x118a7b){_0x4186cd=_0x4186cd-0xf7;let _0x3dce74=_0x424e39[_0x4186cd];return _0x3dce74;},_0x4186(_0x561bf2,_0x22dab2);}export class AIChatController extends _0x2c9326{[_0x8c2602(0x189)];[_0x8c2602(0x1d9)];[_0x8c2602(0x14e)];[_0x8c2602(0x1c5)];[_0x8c2602(0x1f3)]=new Map();[_0x8c2602(0x1fc)]=null;[_0x8c2602(0x1ff)]=!0x1;[_0x8c2602(0x11e)];static get[_0x8c2602(0x1de)](){return[_0x47ceb5,_0x50f0cf,_0x42bdb4];}static get[_0x8c2602(0x1ec)](){const _0x1efdff=_0x8c2602;return _0x1efdff(0x1e1);}static get[_0x8c2602(0x190)](){return!0x0;}static get[_0x8c2602(0x1cf)](){return!0x0;}[_0x8c2602(0x119)](){const _0x1e4aee=_0x8c2602;this[_0x1e4aee(0x11e)]=new _0x2bcdab(this[_0x1e4aee(0x1d6)][_0x1e4aee(0x117)]),this[_0x1e4aee(0x11e)][_0x1e4aee(0x155)](),this[_0x1e4aee(0x1d9)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x185)),this[_0x1e4aee(0x14e)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x13e)),this[_0x1e4aee(0x189)]=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x115)),this[_0x1e4aee(0x1c5)]=new _0x148d51({'connector':this[_0x1e4aee(0x1d9)],'availableModels':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x22c)][_0x1e4aee(0x21e)](_0x1e4aee(0x241)),'defaultModelId':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x22c)][_0x1e4aee(0x21e)](_0x1e4aee(0x113)),'locale':this[_0x1e4aee(0x1d6)][_0x1e4aee(0x117)]});const _0x41145e=this[_0x1e4aee(0x1d6)][_0x1e4aee(0x16f)][_0x1e4aee(0x21e)](_0x1e4aee(0x252));this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18b),()=>{const _0x438c24=_0x1e4aee;this[_0x438c24(0x156)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x17c),(_0x1804d8,_0x5443f3)=>{const _0x5a8657=_0x1e4aee;this[_0x5a8657(0x18e)]({'userMessage':_0x5443f3});}),this[_0x1e4aee(0x204)](_0x41145e,_0x1e4aee(0x18c),(_0x5538e1,_0x41be27)=>{const _0x473fa6=_0x1e4aee;this[_0x473fa6(0x1c8)](_0x41be27);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x104),()=>{const _0x464677=_0x1e4aee;_0x41145e[_0x464677(0x1b9)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x257),async()=>{const _0x209771=_0x1e4aee;await this[_0x209771(0x230)](),await this[_0x209771(0x20d)](),this[_0x209771(0xf9)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x137),()=>{const _0x55fcbf=_0x1e4aee;this[_0x55fcbf(0x247)]?.[_0x55fcbf(0x13f)](_0x3092a6(this[_0x55fcbf(0x1d6)][_0x55fcbf(0x117)],_0x55fcbf(0x1e7)));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18f),(_0x123b58,_0x3754e8)=>{const _0x13cd2a=_0x1e4aee;this[_0x13cd2a(0x247)]?.[_0x13cd2a(0x264)](Array[_0x13cd2a(0x123)](_0x3754e8));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x240),(_0x3faa28,_0x5ed820)=>{const _0x20148e=_0x1e4aee;this[_0x20148e(0x247)]?.[_0x20148e(0x240)](_0x5ed820);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1f0),(_0x2f1029,_0x575f6b)=>{const _0x49e0fb=_0x1e4aee;this[_0x49e0fb(0x247)]?.[_0x49e0fb(0x1f0)](_0x575f6b[_0x49e0fb(0x23b)],_0x575f6b[_0x49e0fb(0xfd)]);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x186),(_0x18ce2d,_0x5082eb)=>{const _0x334fe2=_0x1e4aee;this[_0x334fe2(0x208)](_0x5082eb);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1c3),(_0x3088d0,_0x1479d7)=>{const _0x2056f6=_0x1e4aee;this[_0x2056f6(0x247)]?.[_0x2056f6(0x1c3)](_0x1479d7[_0x2056f6(0x211)],_0x1479d7[_0x2056f6(0x1a4)],_0x1479d7[_0x2056f6(0x20a)]);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x215),()=>{const _0x3bbc88=_0x1e4aee;this[_0x3bbc88(0x108)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x173),()=>{const _0x266afd=_0x1e4aee;this[_0x266afd(0x101)]();}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x266),(_0x38676f,_0x552c33)=>{const _0x2faaac=_0x1e4aee;this[_0x2faaac(0x247)]?.[_0x2faaac(0x1d2)](_0x552c33);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x18d),(_0x2ed433,{replyId:_0x403944})=>{const _0xc8daac=_0x1e4aee;console[_0xc8daac(0x15f)](_0xc8daac(0x1fe),_0x403944);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1e0),(_0x3614d1,{replyId:_0x25f576})=>{const _0x139fa0=_0x1e4aee;console[_0x139fa0(0x15f)](_0x139fa0(0x162),_0x25f576);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x187),(_0x106ce7,_0x4136cd)=>{const _0x1374b0=_0x1e4aee;this[_0x1374b0(0x1d6)][_0x1374b0(0x16f)][_0x1374b0(0x21e)](_0x50f0cf)[_0x1374b0(0x122)](),this[_0x1374b0(0x121)](_0x4136cd);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x1ea),(_0x597569,{replyId:_0x580a7b,partIndex:_0x5c1f85})=>{const _0x3aeaac=_0x1e4aee;this[_0x3aeaac(0x1ff)]=this[_0x3aeaac(0x14e)][_0x3aeaac(0x158)],this[_0x3aeaac(0x227)](_0x580a7b,_0x5c1f85);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x253),(_0x3ab3b8,{replyId:_0xd11fe1,partIndex:_0x574c60})=>{const _0x150cce=_0x1e4aee,_0x2514dd=this[_0x150cce(0x15a)](_0xd11fe1,_0x574c60);_0x2514dd&&_0x150cce(0x181)!=_0x2514dd[_0x150cce(0x141)][_0x150cce(0x1a5)][_0x150cce(0x206)]&&this[_0x150cce(0x189)][_0x150cce(0x25b)]([_0x2514dd[_0x150cce(0x141)]],_0x150cce(0x20f));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x159),()=>{const _0x482c41=_0x1e4aee;this[_0x482c41(0x189)][_0x482c41(0x1a0)](_0x482c41(0x20f));}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x224),(_0x4e4eb6,_0x232fc5)=>{const _0x8e140e=_0x1e4aee;this[_0x8e140e(0x1d6)][_0x8e140e(0x16f)][_0x8e140e(0x21e)](_0x50f0cf)[_0x8e140e(0x122)](),this[_0x8e140e(0x1ef)](_0x232fc5);}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x176),async(_0x14bbb4,{replyId:_0xf0e28d,showDiff:_0x3a95ee})=>{const _0x19baa5=_0x1e4aee,{reply:_0x391af5}=this[_0x19baa5(0x106)](_0xf0e28d),_0x9468e6=_0x391af5[_0x19baa5(0x112)]({'showDiff':_0x3a95ee});await this[_0x19baa5(0x14e)][_0x19baa5(0x24c)]({'id':_0x391af5['id'],'parts':_0x9468e6,'renderingStrategy':_0x19baa5(0x24d)});}),this[_0x1e4aee(0x204)](this[_0x1e4aee(0x14e)],_0x1e4aee(0x234),(_0x1da5c4,{replyId:_0xc86f6a,partIndex:_0x2011e8})=>{const _0x133d1a=_0x1e4aee;this[_0x133d1a(0x1fc)]?.[_0x133d1a(0x1a6)]==_0xc86f6a&&this[_0x133d1a(0x1fc)]?.[_0x133d1a(0x1d1)]==_0x2011e8&&this[_0x133d1a(0x1d6)][_0x133d1a(0x16f)][_0x133d1a(0x21e)](_0x50f0cf)[_0x133d1a(0x122)]();const {reply:_0x423b9b}=this[_0x133d1a(0x106)](_0xc86f6a);_0x423b9b[_0x133d1a(0x1c1)](_0x2011e8,_0x133d1a(0x1aa)),this[_0x133d1a(0x189)][_0x133d1a(0x1a0)](_0x133d1a(0x20f));});}async[_0x8c2602(0x12d)](){const _0x5f8e1b=_0x8c2602;this[_0x5f8e1b(0x1d6)]instanceof _0x5bc23b?this[_0x5f8e1b(0x164)](this[_0x5f8e1b(0x1d6)]):this[_0x5f8e1b(0x204)](this[_0x5f8e1b(0x1d6)][_0x5f8e1b(0x229)],_0x5f8e1b(0x1d8),(_0x4ffc62,_0x95efe)=>{const _0x33d353=_0x5f8e1b;_0x95efe['on'](_0x33d353(0x145),()=>{const _0x5752d0=_0x33d353;this[_0x5752d0(0x164)](_0x95efe);});}),await this[_0x5f8e1b(0x156)]();}[_0x8c2602(0x17d)](){const _0x5dd2d6=_0x8c2602;this[_0x5dd2d6(0x11e)][_0x5dd2d6(0x19e)](),super[_0x5dd2d6(0x17d)]();}[_0x8c2602(0x121)](_0x2ef43b){const _0x102f55=_0x8c2602,_0x4832d1=_0x3fa301(this[_0x102f55(0x1d6)]);if(!_0x4832d1[_0x102f55(0x16f)][_0x102f55(0x16b)](_0x102f55(0x140)))throw new _0x2a84dd(_0x102f55(0xf8),null);const _0x89c6bb=this[_0x102f55(0x1d6)][_0x102f55(0x16f)][_0x102f55(0x21e)](_0x102f55(0x1f6)),{reply:_0x5cdec2,interaction:_0x2ccf2c}=this[_0x102f55(0x106)](_0x2ef43b[_0x102f55(0x1a6)]),_0x141793=this[_0x102f55(0x15a)](_0x2ef43b[_0x102f55(0x1a6)],_0x2ef43b[_0x102f55(0x1d1)]),_0x4afbc2=void 0x0!==_0x2ef43b[_0x102f55(0x1d1)]?[_0x5cdec2[_0x102f55(0x25f)][_0x2ef43b[_0x102f55(0x1d1)]]]:_0x5cdec2[_0x102f55(0x25f)][_0x102f55(0x171)](_0x543747=>_0x102f55(0x1d7)==_0x543747[_0x102f55(0xff)]),_0x41b10a=_0x4afbc2[_0x102f55(0x239)](_0x5da67a=>_0x5cdec2[_0x102f55(0x25f)][_0x102f55(0x128)](_0x5da67a));if(!_0x141793||_0x102f55(0x181)==_0x141793[_0x102f55(0x141)][_0x102f55(0x1a5)][_0x102f55(0x206)])return void _0x41b10a[_0x102f55(0x231)](_0x3d1022=>_0x5cdec2[_0x102f55(0x1c1)](_0x3d1022,_0x102f55(0x209)));_0x41b10a[_0x102f55(0x231)](_0x44b04e=>_0x5cdec2[_0x102f55(0x1c1)](_0x44b04e,_0x102f55(0x203)));const _0x3451cb=_0x1a1d19({'editor':_0x4832d1,'reply':_0x5cdec2,'interaction':_0x2ccf2c,'groups':_0x4afbc2,'transform':!0x0,'documentCompare':_0x89c6bb,'documentCompareOptions':{'anchor':_0x102f55(0x1cb),'markDeletions':!0x0}});let _0x225faf;_0x141793&&this[_0x102f55(0x1bf)](_0x141793[_0x102f55(0x141)]),_0x4832d1[_0x102f55(0x1a8)][_0x102f55(0x1b3)](_0x3da30e=>{const _0xc3614=_0x102f55;_0x225faf=_0x3da30e[_0xc3614(0x172)],_0x4832d1[_0xc3614(0x16f)][_0xc3614(0x21e)](_0xc3614(0x265))[_0xc3614(0x1e2)](_0x3451cb),this[_0xc3614(0x189)][_0xc3614(0x1a0)](_0xc3614(0x20f));}),this[_0x102f55(0x1f3)][_0x102f55(0x22e)](_0x225faf,{'interactionId':_0x2ccf2c['id'],'replyId':_0x5cdec2['id'],'indexes':_0x41b10a[_0x102f55(0x263)]()}),this[_0x102f55(0x200)](_0x5cdec2);}[_0x8c2602(0x1ef)](_0x1f9062){const _0x461748=_0x8c2602,_0x3784fc=_0x3fa301(this[_0x461748(0x1d6)]),_0x225775=this[_0x461748(0x1d6)][_0x461748(0x16f)][_0x461748(0x21e)](_0x42bdb4),{reply:_0x3c5362,interaction:_0x34712b}=this[_0x461748(0x106)](_0x1f9062[_0x461748(0x1a6)]),_0x515858=this[_0x461748(0x15a)](_0x1f9062[_0x461748(0x1a6)],_0x1f9062[_0x461748(0x1d1)]),_0x367b64=void 0x0!==_0x1f9062[_0x461748(0x1d1)]?[_0x3c5362[_0x461748(0x25f)][_0x1f9062[_0x461748(0x1d1)]]]:_0x3c5362[_0x461748(0x25f)][_0x461748(0x171)](_0x2d1c21=>_0x461748(0x1d7)==_0x2d1c21[_0x461748(0xff)]),_0x44e691=_0x367b64[_0x461748(0x239)](_0x3af3f1=>_0x3c5362[_0x461748(0x25f)][_0x461748(0x128)](_0x3af3f1));if(!_0x515858||_0x461748(0x181)==_0x515858[_0x461748(0x141)][_0x461748(0x1a5)][_0x461748(0x206)])return void _0x44e691[_0x461748(0x231)](_0x5435fa=>_0x3c5362[_0x461748(0x1c1)](_0x5435fa,_0x461748(0x209)));_0x44e691[_0x461748(0x231)](_0x348351=>_0x3c5362[_0x461748(0x1c1)](_0x348351,_0x461748(0x203)));const _0x3e2861=_0x1a1d19({'editor':_0x3784fc,'reply':_0x3c5362,'interaction':_0x34712b,'groups':_0x367b64,'transform':!0x0,'documentCompare':_0x225775,'documentCompareOptions':{'anchor':_0x461748(0x1cb),'markDeletions':!0x1}});let _0x5d332a;_0x515858&&this[_0x461748(0x1bf)](_0x515858[_0x461748(0x141)]),_0x3784fc[_0x461748(0x1a8)][_0x461748(0x1b3)](_0x2149cd=>{const _0x661e09=_0x461748;_0x5d332a=_0x2149cd[_0x661e09(0x172)];for(const _0xa8dd8c of _0x3e2861)_0xa8dd8c[_0x661e09(0x14d)]=_0x3784fc[_0x661e09(0x1a8)][_0x661e09(0x182)][_0x661e09(0x19c)],_0x393cf8(_0x3784fc,_0xa8dd8c),_0x2149cd[_0x661e09(0x172)][_0x661e09(0xfb)](_0xa8dd8c),_0x3784fc[_0x661e09(0x1a8)][_0x661e09(0x1f9)](_0xa8dd8c);}),this[_0x461748(0x1f3)][_0x461748(0x22e)](_0x5d332a,{'interactionId':_0x34712b['id'],'replyId':_0x3c5362['id'],'indexes':_0x44e691[_0x461748(0x263)]()}),this[_0x461748(0x200)](_0x3c5362);}[_0x8c2602(0x227)](_0x30c771,_0x855ab7){const _0x1bc5d3=_0x8c2602,_0x5d27a1=_0x3fa301(this[_0x1bc5d3(0x1d6)]),_0x447222=this[_0x1bc5d3(0x15a)](_0x30c771,_0x855ab7),_0x95fd79=this[_0x1bc5d3(0x1d6)][_0x1bc5d3(0x16f)][_0x1bc5d3(0x21e)](_0x50f0cf);if(!_0x447222)return void _0x95fd79[_0x1bc5d3(0x122)]();const {range:_0x19e9db,currentIndex:_0xe68d15}=_0x447222;if(_0x1bc5d3(0x181)==_0x19e9db[_0x1bc5d3(0x1a5)][_0x1bc5d3(0x206)]){const {reply:_0x1b5066}=this[_0x1bc5d3(0x106)](_0x30c771);return _0x1b5066[_0x1bc5d3(0x1c1)](_0xe68d15,_0x1bc5d3(0x209)),void _0x95fd79[_0x1bc5d3(0x122)]();}if(this[_0x1bc5d3(0x1fc)]?.[_0x1bc5d3(0x1a6)]==_0x30c771&&this[_0x1bc5d3(0x1fc)]?.[_0x1bc5d3(0x1d1)]==_0xe68d15)return;this[_0x1bc5d3(0x22a)](_0x95fd79),this[_0x1bc5d3(0x1fc)]={'replyId':_0x30c771,'partIndex':_0xe68d15};let _0x190f46=_0x5d27a1[_0x1bc5d3(0x22c)][_0x1bc5d3(0x21e)](_0x1bc5d3(0xfa))||[..._0x261985];_0x5d27a1[_0x1bc5d3(0x16f)][_0x1bc5d3(0x16b)](_0x1bc5d3(0x140))||(_0x190f46=_0x190f46[_0x1bc5d3(0x171)](_0x31443a=>_0x1bc5d3(0x187)!=_0x31443a));const _0x151383=new _0x128223(_0x5d27a1[_0x1bc5d3(0x117)],{'showDiff':this[_0x1bc5d3(0x1ff)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1bc5d3(0x228)},'hideHeader':!0x0,'availableActions':_0x190f46},this[_0x1bc5d3(0x11e)]);this[_0x1bc5d3(0x22a)](_0x151383);const {reply:_0x156fed}=this[_0x1bc5d3(0x106)](_0x30c771),_0x593c66=_0x156fed[_0x1bc5d3(0x112)]({'showDiff':this[_0x1bc5d3(0x1ff)]})[_0x1bc5d3(0x171)](_0x159529=>_0x159529[_0x1bc5d3(0x174)]),_0x3edeea=_0x593c66[_0x1bc5d3(0x1fb)](_0x5d2d75=>_0x5d2d75[_0x1bc5d3(0x1ee)]==_0xe68d15);if(-0x1==_0x3edeea)return;const _0x3a0357=_0x593c66[_0x3edeea],_0x44ab77=_0x593c66['at']((_0x3edeea-0x1)%_0x593c66[_0x1bc5d3(0x225)])?.[_0x1bc5d3(0x1ee)],_0x4e532a=_0x593c66['at']((_0x3edeea+0x1)%_0x593c66[_0x1bc5d3(0x225)])?.[_0x1bc5d3(0x1ee)];_0x151383[_0x1bc5d3(0x188)]({'parts':[_0x3a0357],'renderingStrategy':_0x1bc5d3(0x24d)});const _0x13f53a=_0xe68d15!==_0x44ab77;this[_0x1bc5d3(0x1bf)](_0x19e9db,!0x0),_0x95fd79[_0x1bc5d3(0x135)]({'index':_0xe68d15,'title':_0x3092a6(this[_0x1bc5d3(0x1d6)][_0x1bc5d3(0x117)],_0x1bc5d3(0x21c),(_0x3edeea+0x1)[_0x1bc5d3(0x1c6)]()),'icon':_0x320133,'mainView':_0x151383,'showRotator':_0x13f53a,'showApplyButton':!0x0,'showSuggestButton':_0x5d27a1[_0x1bc5d3(0x16f)][_0x1bc5d3(0x16b)](_0x1bc5d3(0x140)),'ranges':[_0x19e9db]}),this[_0x1bc5d3(0x14e)][_0x1bc5d3(0x1f8)](_0x30c771,_0xe68d15),this[_0x1bc5d3(0x204)](_0x151383,_0x1bc5d3(0x176),(_0x39414d,{showDiff:_0x7fa6c3})=>{const _0xc9e148=_0x1bc5d3;this[_0xc9e148(0x1ff)]=_0x7fa6c3;const {reply:_0x8a6278}=this[_0xc9e148(0x106)](_0x30c771),_0x1dce5c=_0x8a6278[_0xc9e148(0x112)]({'showDiff':_0x7fa6c3,'groupIndex':_0xe68d15});_0x151383[_0xc9e148(0x188)]({'parts':_0x1dce5c,'renderingStrategy':_0xc9e148(0x24d)});}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x224),()=>{const _0x232389=_0x1bc5d3;this[_0x232389(0x1ef)]({'replyId':_0x30c771,'partIndex':_0xe68d15}),_0x13f53a?this[_0x232389(0x227)](_0x30c771,_0x4e532a):_0x95fd79[_0x232389(0x122)]();}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x187),()=>{const _0x1e7414=_0x1bc5d3;this[_0x1e7414(0x121)]({'replyId':_0x30c771,'partIndex':_0xe68d15}),_0x13f53a?this[_0x1e7414(0x227)](_0x30c771,_0x4e532a):_0x95fd79[_0x1e7414(0x122)]();}),_0x13f53a&&(this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x202),()=>{const _0x3a3e56=_0x1bc5d3;this[_0x3a3e56(0x227)](_0x30c771,_0x4e532a);}),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x201),()=>{const _0x4a9a55=_0x1bc5d3;this[_0x4a9a55(0x227)](_0x30c771,_0x44ab77);})),this[_0x1bc5d3(0x204)](_0x95fd79,_0x1bc5d3(0x16c),()=>{const _0x37eb1c=_0x1bc5d3;this[_0x37eb1c(0x22a)](_0x95fd79),this[_0x37eb1c(0x22a)](_0x151383),this[_0x37eb1c(0x1fc)]=null;});}[_0x8c2602(0x15a)](_0x2f60d7,_0x96ad60){const _0x536c9e=_0x8c2602,_0x57db58=_0x3fa301(this[_0x536c9e(0x1d6)]),{reply:_0x15e1c4,interaction:_0x4de4eb}=this[_0x536c9e(0x106)](_0x2f60d7),_0x1bb0c9=_0x15e1c4[_0x536c9e(0x25f)][_0x536c9e(0x171)](_0x3e2d75=>_0x536c9e(0x1d7)==_0x3e2d75[_0x536c9e(0xff)]),_0x1fd5e4=_0x1bb0c9[_0x536c9e(0x239)](_0x3432b0=>_0x15e1c4[_0x536c9e(0x25f)][_0x536c9e(0x128)](_0x3432b0));void 0x0===_0x96ad60&&(_0x96ad60=_0x1fd5e4[0x0]);const _0x58290d=_0x1fd5e4[_0x536c9e(0x128)](_0x96ad60);if(-0x1==_0x58290d)return null;const _0x13df2f=_0x1bb0c9[_0x58290d],_0x5e3185=new _0xdab3ce([]),_0x39329a=new _0xdab3ce([]);for(const _0x820725 of _0x13df2f[_0x536c9e(0x1b5)])if(_0x536c9e(0x14f)!=_0x820725[_0x536c9e(0x1e5)]&&_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x820725[_0x536c9e(0x23f)][_0x536c9e(0x1e6)](!0x0)),_0x536c9e(0x134)!=_0x820725[_0x536c9e(0x1e5)]){const _0x23d6f6=_0x336fc3(_0x3b63ed=>_0x5270e7(_0x3b63ed,_0x536c9e(0x10c))==_0x820725['id'],_0x15e1c4[_0x536c9e(0x197)],!0x0);_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x23d6f6[_0x536c9e(0x1e6)](!0x0));}if(0x0==_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x225)]){if(_0x13df2f[_0x536c9e(0x1b5)][0x0][_0x536c9e(0x20b)]){const _0x1517f8=_0x2de233(_0x536c9e(0x10c),_0x13df2f[_0x536c9e(0x1b5)][0x0][_0x536c9e(0x20b)],_0x15e1c4[_0x536c9e(0x197)]);_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x1ce)](_0x1517f8[_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x1ce)](_0x1517f8[_0x536c9e(0x1e6)](!0x0)),_0x1517f8[_0x536c9e(0x146)]&&(_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x1517f8[_0x536c9e(0x146)][_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x1517f8[_0x536c9e(0x146)][_0x536c9e(0x1e6)](!0x0)));}else{const _0x4b3fbd=_0x15e1c4[_0x536c9e(0x197)][_0x536c9e(0x16e)][0x0];if(!_0x4b3fbd)return null;_0x5e3185[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x4b3fbd[_0x536c9e(0x1e6)](!0x0)),_0x39329a[_0x536c9e(0x16e)][_0x536c9e(0x160)](_0x4b3fbd[_0x536c9e(0x1e6)](!0x0));}}const _0xb5a2b5=_0x4de4eb[_0x536c9e(0x133)](),_0x43a847=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0xb5a2b5[_0x536c9e(0x12b)],_0x536c9e(0x1b1)),_0x11e356=_0x1a5111(_0x5e3185),_0x5460d8=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0x11e356),_0x168b13=_0x57db58[_0x536c9e(0x20c)][_0x536c9e(0x22f)](_0x11e356),_0x4487f8=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x24b)](_0x5460d8,0x0),_0x334b5e=_0x1a5111(_0x39329a),_0x5d17ed={'anchor':_0x4487f8,'markDeletions':!0x1,'context':_0x536c9e(0x1b1)},_0x217790=_0x57db58[_0x536c9e(0x16f)][_0x536c9e(0x21e)](_0x42bdb4)[_0x536c9e(0x196)](_0x11e356,_0x334b5e,_0x5d17ed)[_0x536c9e(0x144)]();if(!_0x217790[_0x536c9e(0x225)])return null;_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x1b3)](_0x43225f=>{const _0x53855f=_0x536c9e;for(const _0x5424f6 of _0x217790)if(_0x53855f(0x120)==_0x5424f6[_0x53855f(0x1e5)]){const _0x369ff6=_0x5424f6[_0x53855f(0x223)],_0x1d1a44=_0x5424f6[_0x53855f(0x232)],_0x1aa6df=new _0x20bbc9(_0x369ff6,_0x1d1a44);_0x43225f[_0x53855f(0x172)][_0x53855f(0xfb)](_0x1aa6df),_0x57db58[_0x53855f(0x1a8)][_0x53855f(0x1f9)](_0x1aa6df);}else _0x53855f(0x248)!==_0x5424f6[_0x53855f(0x1e5)]&&(_0x5424f6[_0x53855f(0x14d)]=null,_0x5424f6[_0x53855f(0x103)]=!0x1,_0x43225f[_0x53855f(0x172)][_0x53855f(0xfb)](_0x5424f6),_0x57db58[_0x53855f(0x1a8)][_0x53855f(0x1f9)](_0x5424f6));});const _0x4449c9=_0x283eab(_0x57db58,_0x217790,_0x5460d8);_0x5830fc(_0x57db58[_0x536c9e(0x1a8)],_0x4449c9);const _0x186a4c=_0x4449c9[_0x536c9e(0x1a9)]()[_0x536c9e(0x1dc)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0xfc4005=_0x4449c9[_0x536c9e(0x1a9)]()[_0x536c9e(0x207)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0x82fa52=[];let _0x5281e9=_0x5460d8,_0x3fdcc6=_0x168b13;for(let _0x6287dd=0x0;_0x6287dd<_0xfc4005[_0x536c9e(0x225)];_0x6287dd++){const _0x77a35=_0x5281e9[_0x536c9e(0x22d)]-_0xfc4005[_0x6287dd];_0x82fa52[_0x6287dd]=_0x3fdcc6[_0x536c9e(0x22d)]-_0x77a35,_0x5281e9=_0x5281e9[_0x536c9e(0x1dd)](_0xfc4005[_0x6287dd]),_0x3fdcc6=_0x3fdcc6[_0x536c9e(0x1dd)](_0x82fa52[_0x6287dd]);}const _0x7ad698=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x222)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x168b13,_0x186a4c),_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x168b13,_0x82fa52)),_0x51eeed=_0x168b13[_0x536c9e(0x254)](0x0)[_0x536c9e(0x261)](_0x4e6a79),_0x3a1ca5=Array[_0x536c9e(0x123)](_0x43a847[_0x536c9e(0x25c)]())[_0x536c9e(0x23a)](_0x243699=>_0x243699[_0x536c9e(0x261)](_0x4e6a79)==_0x51eeed)[_0x536c9e(0x136)](),_0x15e374=_0x7ad698[_0x536c9e(0x1dc)][_0x536c9e(0x192)][_0x536c9e(0x263)](),_0x2d5a74=_0x7ad698[_0x536c9e(0x207)][_0x536c9e(0x192)][_0x536c9e(0x263)]();_0x15e374[0x0]=_0x3a1ca5[0x0]+_0x15e374[0x0],_0x2d5a74[0x0]=_0x3a1ca5[0x0]+_0x2d5a74[0x0];let _0x3e93d0=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x222)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x114)](),_0x15e374),_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x153)](_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x114)](),_0x2d5a74));const _0x5a15bc=_0x57db58[_0x536c9e(0x1a8)][_0x536c9e(0x182)][_0x536c9e(0x1f5)][_0x536c9e(0x144)](_0xb5a2b5[_0x536c9e(0x19c)]);for(const _0xd6a948 of _0x5a15bc)_0x3e93d0=_0x1d0bbd[_0x536c9e(0x1e4)](_0x3e93d0[_0x536c9e(0x161)](_0xd6a948));return{'range':_0x3e93d0,'currentIndex':_0x96ad60};}[_0x8c2602(0x164)](_0x15cd5b){const _0x234e89=_0x8c2602;if(!_0x15cd5b[_0x234e89(0x16f)][_0x234e89(0x16b)](_0x234e89(0x1f1)))return;const _0x226052=_0x15cd5b[_0x234e89(0x178)][_0x234e89(0x21e)](_0x234e89(0x168)),_0x49ce3f=_0x15cd5b[_0x234e89(0x178)][_0x234e89(0x21e)](_0x234e89(0x245));this[_0x234e89(0x204)](_0x226052,_0x234e89(0x1fa),(_0xbe7a7e,_0x1cff65,_0x49fed4)=>{const _0x1d0cfe=_0x234e89,_0x159902=this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x21e)](_0x1cff65);if(!_0x159902)return;const _0x8053=this[_0x1d0cfe(0x247)][_0x1d0cfe(0x183)](_0x159902[_0x1d0cfe(0x218)])[_0x1d0cfe(0x258)](_0x159902[_0x1d0cfe(0x1a6)]);_0x159902[_0x1d0cfe(0x1b4)][_0x1d0cfe(0x231)](_0x2c7a82=>_0x8053[_0x1d0cfe(0x1c1)](_0x2c7a82,_0x1d0cfe(0x1d7))),this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x212)](_0x1cff65),this[_0x1d0cfe(0x1f3)][_0x1d0cfe(0x22e)](_0x49fed4,_0x159902);}),this[_0x234e89(0x204)](_0x49ce3f,_0x234e89(0x1fa),(_0x240e85,_0x12c5a3,_0x4af30d)=>{const _0x583104=_0x234e89,_0x5010ae=this[_0x583104(0x1f3)][_0x583104(0x21e)](_0x12c5a3);if(!_0x5010ae)return;const _0x5940e2=this[_0x583104(0x247)][_0x583104(0x183)](_0x5010ae[_0x583104(0x218)])[_0x583104(0x258)](_0x5010ae[_0x583104(0x1a6)]);_0x5010ae[_0x583104(0x1b4)][_0x583104(0x231)](_0x521cdb=>_0x5940e2[_0x583104(0x1c1)](_0x521cdb,_0x583104(0x203))),this[_0x583104(0x1f3)][_0x583104(0x212)](_0x12c5a3),this[_0x583104(0x1f3)][_0x583104(0x22e)](_0x4af30d,_0x5010ae);});}async[_0x8c2602(0x1d5)](_0x3bf0fa){const _0x45ca6d=_0x8c2602;this[_0x45ca6d(0x1d6)][_0x45ca6d(0x16f)][_0x45ca6d(0x21e)](_0x50f0cf)[_0x45ca6d(0x122)](),this[_0x45ca6d(0x14e)][_0x45ca6d(0x124)](_0x45ca6d(0x24d)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1ed)](!0x0),await this[_0x45ca6d(0x230)]();try{await this[_0x45ca6d(0x1d9)][_0x45ca6d(0x167)](_0x3bf0fa)[_0x45ca6d(0x107)](),await this[_0x45ca6d(0x156)](_0x3bf0fa),this[_0x45ca6d(0x195)]('\x20');const {sessionId:_0x3d582a}=this[_0x45ca6d(0x189)][_0x45ca6d(0x20e)]();await this[_0x45ca6d(0x247)][_0x45ca6d(0x15b)](_0x3bf0fa,_0x3d582a),this[_0x45ca6d(0x247)][_0x45ca6d(0x11c)]()&&this[_0x45ca6d(0x247)][_0x45ca6d(0x13f)](_0x3092a6(this[_0x45ca6d(0x1d6)][_0x45ca6d(0x117)],_0x45ca6d(0x1e7)));}catch(_0x39bec2){this[_0x45ca6d(0x14e)][_0x45ca6d(0x1bc)]({'errorMessage':_0x3092a6(this[_0x45ca6d(0x1d6)][_0x45ca6d(0x117)],_0x45ca6d(0x132)),'id':_0x3bf0fa}),this[_0x45ca6d(0x148)](new _0x2a84dd(_0x45ca6d(0x17e),this,{'error':_0x39bec2}));}finally{this[_0x45ca6d(0x1d6)][_0x45ca6d(0x16f)][_0x45ca6d(0x21e)](_0x1d4d68)[_0x45ca6d(0x1bd)][_0x45ca6d(0x1e8)](_0x45ca6d(0x205)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1b7)](),this[_0x45ca6d(0x14e)][_0x45ca6d(0x124)](_0x45ca6d(0x147)),this[_0x45ca6d(0x14e)][_0x45ca6d(0x1ed)](!0x1);}}[_0x8c2602(0x1a1)](_0x4a6fc5){const _0x1f1b09=_0x8c2602;this[_0x1f1b09(0x247)]['id']===_0x4a6fc5&&this[_0x1f1b09(0x156)]();}async[_0x8c2602(0x23e)](){const _0x5ebdce=_0x8c2602,_0x17988a=this[_0x5ebdce(0x189)][_0x5ebdce(0x13b)]();this[_0x5ebdce(0x247)]?.[_0x5ebdce(0x1c4)](_0x17988a),this[_0x5ebdce(0x247)]?.[_0x5ebdce(0x13f)](_0x3092a6(this[_0x5ebdce(0x1d6)][_0x5ebdce(0x117)],_0x5ebdce(0x1e7)));}[_0x8c2602(0xf9)](){const _0x5f228e=_0x8c2602;this[_0x5f228e(0x247)]?.[_0x5f228e(0x12c)]();}[_0x8c2602(0x21f)](){const _0x2b4d2f=_0x8c2602;this[_0x2b4d2f(0x14e)][_0x2b4d2f(0x21f)]();}async[_0x8c2602(0x18b)](){const _0x16fdd7=_0x8c2602;await this[_0x16fdd7(0x156)]();}async[_0x8c2602(0x102)]({message:_0x4dc785,quickActionData:_0x272a03}){const _0x191d81=_0x8c2602;await this[_0x191d81(0x18e)]({'userMessage':_0x4dc785,'quickActionData':_0x272a03});}[_0x8c2602(0x199)](){const _0x2e07b8=_0x8c2602,_0x4dd364=this[_0x2e07b8(0x1d6)][_0x2e07b8(0x22c)][_0x2e07b8(0x21e)](_0x2e07b8(0x131));if(!_0x4dd364)throw new _0x2a84dd(_0x2e07b8(0x14c),this);return _0x4dd364;}async[_0x8c2602(0x156)](_0x442b3f){const _0x44a809=_0x8c2602;try{this[_0x44a809(0x14e)][_0x44a809(0x109)](),await this[_0x44a809(0x243)](_0x442b3f);}catch(_0x16d1b1){this[_0x44a809(0x14e)][_0x44a809(0x1bc)]({'errorMessage':_0x3092a6(this[_0x44a809(0x1d6)][_0x44a809(0x117)],_0x44a809(0x249)),'id':_0x442b3f||_0xa18360()}),console[_0x44a809(0x226)](_0x16d1b1),this[_0x44a809(0x247)]=void 0x0,this[_0x44a809(0x14e)][_0x44a809(0x1d0)]();}}async[_0x8c2602(0x243)](_0x3212a3){const _0x38b159=_0x8c2602,_0x4794a1=this[_0x38b159(0x1d6)][_0x38b159(0x16f)][_0x38b159(0x21e)](_0x50f0cf);let _0x307d21;_0x4794a1[_0x38b159(0x10a)]&&_0x4794a1[_0x38b159(0x122)](),_0x3212a3||!this[_0x38b159(0x247)]?_0x307d21=this[_0x38b159(0x1d6)][_0x38b159(0x22c)][_0x38b159(0x21e)](_0x38b159(0x113)):this[_0x38b159(0x14e)][_0x38b159(0xfc)]&&(_0x307d21=this[_0x38b159(0x247)][_0x38b159(0x216)]['id']),await this[_0x38b159(0x230)]();const _0x415722=this[_0x38b159(0x199)](),_0x236efd=_0x3212a3||_0xa18360();this[_0x38b159(0x247)]=new _0xf13ee3({'connector':this[_0x38b159(0x1d9)],'chatModels':this[_0x38b159(0x1c5)],'selectedModelId':_0x307d21,'conversationId':_0x236efd,'group':_0x415722,'getEditor':()=>_0x3fa301(this[_0x38b159(0x1d6)])}),this[_0x38b159(0x247)]['on'](_0x38b159(0x25a),(_0x1a55d9,_0x30b842)=>{const _0x51d202=_0x38b159;this[_0x51d202(0x14e)][_0x51d202(0x1ab)](_0x30b842),this[_0x51d202(0x14e)][_0x51d202(0x157)](),this[_0x51d202(0x14e)][_0x51d202(0x217)](),this[_0x51d202(0x14e)][_0x51d202(0x1e9)](),_0x3212a3||(this[_0x51d202(0x14e)][_0x51d202(0x14a)](),this[_0x51d202(0x247)]?.[_0x51d202(0x13f)](_0x3092a6(this[_0x51d202(0x1d6)][_0x51d202(0x117)],_0x51d202(0x1e7))));}),this[_0x38b159(0x247)]['on'](_0x38b159(0x246),(_0x3dd034,_0x3b29fc)=>{const _0x539d29=_0x38b159;this[_0x539d29(0x14e)][_0x539d29(0x13d)](_0x3b29fc[_0x539d29(0x139)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x19b),(_0x515533,_0x1a3b5d)=>{const _0x5d2ac6=_0x38b159;this[_0x5d2ac6(0x14e)][_0x5d2ac6(0x151)](_0x1a3b5d);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x235),()=>{const _0x2908c5=_0x38b159;this[_0x2908c5(0x14e)][_0x2908c5(0x1c9)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1b6),()=>{const _0x2afc52=_0x38b159;this[_0x2afc52(0x14e)][_0x2afc52(0x1c9)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x17f),(_0x2e82b6,_0x35cfc5)=>{const _0x5246f1=_0x38b159;this[_0x5246f1(0x14e)][_0x5246f1(0x152)](_0x35cfc5,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1eb),(_0xfb4245,_0x28ba69)=>{const _0x89e7b3=_0x38b159;this[_0x89e7b3(0x14e)][_0x89e7b3(0x152)](_0x28ba69,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x100),()=>{const _0x17cee6=_0x38b159;this[_0x17cee6(0x14e)][_0x17cee6(0x10f)]();}),this[_0x38b159(0x247)]['on'](_0x38b159(0x24e),async()=>{const _0x15f546=_0x38b159;await this[_0x15f546(0x14e)][_0x15f546(0x150)]();}),this[_0x38b159(0x247)]['on'](_0x38b159(0x262),(_0x49cd4c,_0x5977eb)=>{const _0x166ae7=_0x38b159;this[_0x166ae7(0x14e)][_0x166ae7(0x255)](_0x5977eb['id']);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1d4),(_0x22f62e,_0x4f211d,_0x3b505b)=>{const _0x54508f=_0x38b159;this[_0x54508f(0x195)](_0x4f211d,_0x3b505b);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x19d),(_0x320cdc,_0x2488e0)=>{const _0x571c4e=_0x38b159;_0x571c4e(0x179)===_0x2488e0[_0x571c4e(0x1e5)]?this[_0x571c4e(0x14e)][_0x571c4e(0x125)](_0x2488e0):this[_0x571c4e(0x14e)][_0x571c4e(0x1c2)](_0x2488e0);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x24f),async(_0x4b504d,_0x3afe62)=>{const _0x43671b=_0x38b159;await this[_0x43671b(0x22b)]({'reply':_0x3afe62});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x21a),(_0x1926d3,{reply:_0x524576,index:_0x5f0264,state:_0x3089b0})=>{const _0x2f6221=_0x38b159;this[_0x2f6221(0x14e)][_0x2f6221(0x10e)]({'id':_0x524576['id'],'index':_0x5f0264,'state':_0x3089b0});}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1ca),(_0x5beb04,_0x1da290)=>{const _0x1931e4=_0x38b159;if(this[_0x1931e4(0x14e)][_0x1931e4(0x1cc)](_0x1da290[_0x1931e4(0x233)],_0x1da290[_0x1931e4(0x1c7)]),_0x1931e4(0x138)===_0x1da290[_0x1931e4(0x233)][_0x1931e4(0x1e5)]){const _0xaa708f=[..._0x3fa301(this[_0x1931e4(0x1d6)])[_0x1931e4(0x1a8)][_0x1931e4(0x182)][_0x1931e4(0x138)][_0x1931e4(0x259)]()];this[_0x1931e4(0x189)][_0x1931e4(0x25b)](_0xaa708f,_0x1931e4(0x12f)+this[_0x1931e4(0x247)]?.['id']);}}),this[_0x38b159(0x247)]['on'](_0x38b159(0x129),(_0x86eca0,_0x1058bf)=>{const _0x52fb27=_0x38b159;this[_0x52fb27(0x14e)][_0x52fb27(0x186)](_0x1058bf[_0x52fb27(0x267)]),_0x52fb27(0x1a7)==_0x1058bf[_0x52fb27(0x267)]&&this[_0x52fb27(0xf9)](),_0x52fb27(0x138)===_0x1058bf[_0x52fb27(0x1e5)]&&this[_0x52fb27(0x189)][_0x52fb27(0x1a0)](_0x52fb27(0x12f)+this[_0x52fb27(0x247)]?.['id']);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x25d),(_0x4ace90,_0x3d460e)=>{const _0x25e2a7=_0x38b159;this[_0x25e2a7(0x14e)][_0x25e2a7(0x242)](_0x3d460e[_0x25e2a7(0x233)][_0x25e2a7(0x267)],_0x3d460e[_0x25e2a7(0x1c7)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x10b),(_0x163a48,_0x481f38)=>{const _0x55df55=_0x38b159;this[_0x55df55(0x14e)][_0x55df55(0x238)](_0x481f38[_0x55df55(0x214)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x1bb),(_0x39fae6,_0x277bc6)=>{const _0x553280=_0x38b159;this[_0x553280(0x14e)][_0x553280(0x11a)](_0x277bc6[_0x553280(0x1df)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x11f),(_0x4d7fa9,_0x4b310b)=>{const _0x476244=_0x38b159;this[_0x476244(0x14e)][_0x476244(0x19a)](_0x4b310b[_0x476244(0x211)],_0x4b310b[_0x476244(0x23b)],_0x4b310b[_0x476244(0x1ad)],_0x4b310b[_0x476244(0x20a)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x127),(_0x10378c,_0x27ae71)=>{const _0x4085f7=_0x38b159;this[_0x4085f7(0x14e)][_0x4085f7(0x1b2)](_0x27ae71[_0x4085f7(0x211)],_0x27ae71[_0x4085f7(0x193)],_0x27ae71[_0x4085f7(0x15d)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x11b),(_0x5a94b4,_0x296205)=>{const _0x37eebd=_0x38b159;this[_0x37eebd(0x14e)][_0x37eebd(0x1a2)](_0x296205);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x166),(_0x3504a7,_0x2851ac)=>{const _0x1959b5=_0x38b159;this[_0x1959b5(0x14e)][_0x1959b5(0x1ae)](_0x2851ac[_0x1959b5(0x216)],_0x2851ac[_0x1959b5(0x177)]);}),this[_0x38b159(0x247)]['on'](_0x38b159(0x226),(_0x412528,{error:_0x38c127,interactionId:_0x558d4f,fileName:_0x57bbca,url:_0x3e13b6,sourceId:_0x3ba300,sourceLabel:_0x3bd018})=>{const _0x47cddb=_0x38b159,_0xf0b54b=_0x558d4f?_0x558d4f+':'+_0xa18360():_0xa18360();_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x256))?this[_0x47cddb(0x14e)][_0x47cddb(0x111)]({'staticMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x1b8)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x180))||_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x163))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x249)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x250))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x21d),_0x57bbca),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1fd))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x213),_0x3e13b6),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x236))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x19f)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x24a))?this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x105)),'id':_0xf0b54b}):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x118))?(_0x3ba300&&this[_0x47cddb(0x14e)][_0x47cddb(0x220)](_0x3ba300),this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x10d),_0x3bd018||_0x47cddb(0x23b)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1d3))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x13a)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x184))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0xf7)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x116))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x1cd)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1f4))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x169)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x221))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x23c)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):_0x38c127[_0x47cddb(0x142)][_0x47cddb(0x1c0)](_0x47cddb(0x1b0))?(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x143)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127)):(this[_0x47cddb(0x14e)][_0x47cddb(0x1bc)]({'errorMessage':_0x3092a6(this[_0x47cddb(0x1d6)][_0x47cddb(0x117)],_0x47cddb(0x14b)),'id':_0xf0b54b}),this[_0x47cddb(0x148)](_0x38c127));}),await this[_0x38b159(0x247)][_0x38b159(0x119)](this[_0x38b159(0x1d6)][_0x38b159(0x22c)][_0x38b159(0x21e)](_0x38b159(0x1af))),_0x3212a3||await this[_0x38b159(0x247)][_0x38b159(0x1dc)]();}async[_0x8c2602(0x18e)]({userMessage:_0x10c039,quickActionData:_0x449486}){const _0x5c7e63=_0x8c2602;if(!this[_0x5c7e63(0x247)])throw new _0x2a84dd(_0x5c7e63(0x1ba));this[_0x5c7e63(0x247)][_0x5c7e63(0x251)]()&&await this[_0x5c7e63(0x247)][_0x5c7e63(0x170)](this[_0x5c7e63(0x189)][_0x5c7e63(0x20e)]()),this[_0x5c7e63(0x247)]['id']&&this[_0x5c7e63(0x247)][_0x5c7e63(0x12e)]&&await this[_0x5c7e63(0x247)][_0x5c7e63(0x130)]({'userMessage':_0x10c039,'quickActionData':_0x449486}),this[_0x5c7e63(0x21b)]();}[_0x8c2602(0x21b)](){const _0x312d9c=_0x8c2602,_0x1691e3=_0x3fa301(this[_0x312d9c(0x1d6)])[_0x312d9c(0x1a8)],_0x22c07c=Array[_0x312d9c(0x123)](_0x1691e3[_0x312d9c(0x1a3)][_0x312d9c(0x219)](_0x189cfc));_0x1691e3[_0x312d9c(0x1b3)](_0x31185c=>{const _0x23555f=_0x312d9c;_0x22c07c[_0x23555f(0x231)](_0x5412f8=>_0x31185c[_0x23555f(0x17a)](_0x5412f8));});}[_0x8c2602(0x25e)](){const _0x16d1f0=_0x8c2602;console[_0x16d1f0(0x15f)](_0x16d1f0(0x110));}[_0x8c2602(0x1c8)](_0xe99205){const _0x26f163=_0x8c2602;this[_0x26f163(0x14e)][_0x26f163(0x244)](_0xe99205);}[_0x8c2602(0x148)](_0x45d9f1){const _0x5d4976=_0x8c2602;_0x2d378d(_0x45d9f1[_0x5d4976(0x142)]);}[_0x8c2602(0x208)](_0x4e8fd2){const _0x2acbdd=_0x8c2602;this[_0x2acbdd(0x247)]?.[_0x2acbdd(0x237)](_0x4e8fd2);}[_0x8c2602(0x108)](){const _0x5d6687=_0x8c2602;this[_0x5d6687(0x247)]?.[_0x5d6687(0x215)]();}[_0x8c2602(0x101)](){const _0x56c592=_0x8c2602;this[_0x56c592(0x247)]?.[_0x56c592(0x173)]();}[_0x8c2602(0x106)](_0x1ebe7a){const _0x4221cc=_0x8c2602,[_0x1cedc9,_0x31ed85]=_0x1ebe7a[_0x4221cc(0x15c)](':'),_0x28d0b7=this[_0x4221cc(0x247)][_0x4221cc(0x183)](_0x1cedc9),_0x55b438=_0x28d0b7[_0x4221cc(0x258)](_0x31ed85);return{'interaction':_0x28d0b7,'reply':_0x55b438};}[_0x8c2602(0x1bf)](_0x4e6e6b,_0xb9f9a2=!0x1){const _0x17c0b9=_0x8c2602,_0x52279f=_0x3fa301(this[_0x17c0b9(0x1d6)]),_0x447a6a={'target':_0x52279f[_0x17c0b9(0x1e3)][_0x17c0b9(0x1bd)][_0x17c0b9(0x1ac)][_0x17c0b9(0x260)](_0x52279f[_0x17c0b9(0x1e3)][_0x17c0b9(0x16d)][_0x17c0b9(0x1f7)](_0x4e6e6b)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xb9f9a2};_0xb9f9a2&&(_0x447a6a[_0x17c0b9(0x154)]=!0x0),_0x5de7b5(_0x447a6a);}[_0x8c2602(0x195)](_0x1b9ba4,_0xb1a2a5=!0x1){const _0xe865d5=_0x8c2602;this[_0xe865d5(0x14e)][_0xe865d5(0x1d4)](_0x1b9ba4||_0x3092a6(this[_0xe865d5(0x1d6)][_0xe865d5(0x117)],_0xe865d5(0x1db)),_0xb1a2a5);}async[_0x8c2602(0x22b)]({reply:_0x165618,renderingStrategy:_0x48e0e9}){const _0x5586ba=_0x8c2602,{id:_0x45952b,isDone:_0x16122e,type:_0x3cbd29,parsedContent:_0x1add5f}=_0x165618;if(_0x5586ba(0x175)===_0x3cbd29){const _0x3f8bd3=_0x165618[_0x5586ba(0x112)]({'showDiff':this[_0x5586ba(0x14e)][_0x5586ba(0x158)]});await this[_0x5586ba(0x14e)][_0x5586ba(0x24c)]({'id':_0x45952b,'parts':_0x3f8bd3,'renderingStrategy':_0x48e0e9,'isDone':_0x16122e});}else _0x5586ba(0x179)===_0x3cbd29&&await this[_0x5586ba(0x14e)][_0x5586ba(0x15e)]({'id':_0x45952b,'parsedContent':_0x1add5f,'renderingStrategy':_0x48e0e9,'isDone':_0x16122e});_0x16122e&&_0x165618[_0x5586ba(0x17b)][_0x5586ba(0x225)]>0x0&&this[_0x5586ba(0x14e)][_0x5586ba(0x210)](_0x45952b,_0x165618[_0x5586ba(0x17b)]);}async[_0x8c2602(0x230)](){const _0xe30f1b=_0x8c2602,_0x312003=this[_0xe30f1b(0x247)]?.[_0xe30f1b(0x1be)];_0x312003&&(_0x312003[_0xe30f1b(0x194)](),this[_0xe30f1b(0x14e)][_0xe30f1b(0x198)](_0x312003));}async[_0x8c2602(0x20d)](){const _0x242ec7=_0x8c2602,_0xfe1aa2=this[_0x242ec7(0x247)]?.[_0x242ec7(0x1be)];if(_0xfe1aa2){for await(const _0x39761f of _0xfe1aa2[_0x242ec7(0x13c)])await this[_0x242ec7(0x22b)]({'reply':_0x39761f,'renderingStrategy':_0x242ec7(0x24d)});}}[_0x8c2602(0x200)](_0x5049cb){const _0x670bcc=_0x8c2602,_0x7eb812={'positiveCount':_0x5049cb[_0x670bcc(0x25f)][_0x670bcc(0x171)](_0x32f303=>_0x670bcc(0x203)===_0x32f303[_0x670bcc(0xff)])[_0x670bcc(0x225)],'totalCount':_0x5049cb[_0x670bcc(0x25f)][_0x670bcc(0x225)],'modificationId':_0x5049cb['id']},_0x253595=this[_0x670bcc(0x247)][_0x670bcc(0x183)](_0x5049cb[_0x670bcc(0x218)])[_0x670bcc(0x165)];this[_0x670bcc(0x1d9)][_0x670bcc(0x126)](this[_0x670bcc(0x247)]['id'],_0x253595,_0x7eb812);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b7ac7=_0x5879;(function(_0xef6f3,_0x3f5d4f){const _0x31e4d9=_0x5879,_0x1b0d50=_0xef6f3();while(!![]){try{const _0x22f68d=-parseInt(_0x31e4d9(0xe2))/0x1*(-parseInt(_0x31e4d9(0xaf))/0x2)+-parseInt(_0x31e4d9(0xf7))/0x3+-parseInt(_0x31e4d9(0xf5))/0x4*(-parseInt(_0x31e4d9(0xd9))/0x5)+-parseInt(_0x31e4d9(0xcc))/0x6*(parseInt(_0x31e4d9(0xfd))/0x7)+-parseInt(_0x31e4d9(0x8a))/0x8+-parseInt(_0x31e4d9(0xde))/0x9*(-parseInt(_0x31e4d9(0xfa))/0xa)+parseInt(_0x31e4d9(0xb9))/0xb*(parseInt(_0x31e4d9(0xa9))/0xc);if(_0x22f68d===_0x3f5d4f)break;else _0x1b0d50['push'](_0x1b0d50['shift']());}catch(_0x1b314e){_0x1b0d50['push'](_0x1b0d50['shift']());}}}(_0x5353,0xbf70b));import{ContextPlugin as _0x258788}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2cccc6}from'ckeditor5/src/utils.js';function _0x5353(){const _0x35db0a=['updateSuggestionItem','chatFeed','values','createConversation','has','markFeedItemAsDone','addFeedItemAIReply','startsWith','_titleAnimationInterval','TrackChanges','addFeedItemError','setModelList','9883104Htmqgq','_getLoadingMessage','chatControls','isLoading','abort','isPremiumPlugin','ai-suggestion-reply','children','setWebSearch','removeFeedInteraction','removeContextItem','isDisabled','updateFeedItemAIReplySuggestionPartState','last','disableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','areActionsDisabled','populateSourceResourceBalloon','clear','updateFeedItemAIReplySuggestionContent','setAddContextOptions','addTab','closeSourceResourceBalloon','isModelAvailable','updateFeedInteractionHeader','value','scrollFeedToSuggestion','</p>','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','72ivHsnJ','_interactionPromiseResolver','conversation-start','resetConversationTitle','locale','setSelectedModel','58qruexN','updateFeedItemAIReplySources','removeItem','then','setConversationTitle','context','interactionId','quickActionData','getItemIds','enableModelSelector','2440570EDoURU','find','ai.chat.context.searchInputVisibleFrom','setLoadingMessage','AI_CHAT_WELCOME_MESSAGE','ai-reply','addItem','renderingStrategy','showDiff','setInputPlaceholder','availableModels','feedItemRenderingStrategy','stopAutoScroll','addFeedItemStaticMessage','stopInteraction','updateCapabilities','displayedPrompt','commands','label','10014SbEsGc','isBusy','updateWebSources','isOfficialPlugin','<p>','_isTrackChangesCommandValueBound','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setModel','isMaximized','forEach','options','isDone','isWebSearchEnabled','10NBHjXC','updateResourceState','filter','disableControls','focusPromptInput','63trdsfb','config','setIsMaximized','setIsUploadInProgress','45181QQuutq','updateSuggestionPartState','startInteraction','error-message','finishInteraction','isVisible','addContextItem','AIChatUI','enableControls','startAutoScroll','capabilities','setConversationContext','enqueue','contextItems','userMessage','resetMessageInput','markItemAsDone','queueEmptyPromise','ai.chat.models.modelSelectorAlwaysVisible','1837912pHogIG','addFeedInteractionHeader','4200318CnbkZR','bind','_animateConversationTitle','11070kwURqr','toggleLoadingSkeleton','isPending','623kMCQJh','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','chat','clearPendingContextUI','isReasoningEnabled','scrollToSuggestion','setContextItemLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','insertSuggestion','user-message','updateFeedItemAIReplyContent','requires','pluginName','set','showResizeButton','trackChanges','streaming','get','toggleSuggestionDisplayMode','remove','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setReasoning','ai.availableReplyActions','view','updateReplyItem','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setFeedItemRenderingStrategy','_getInputPlaceholder','delegate','_view','from','addFeedItemUserMessage','AITabs','destroy','interaction-header','_promiseQueue','length','AI_CHAT_HEADING','chatHeader','isTrackChangesOn','plugins'];_0x5353=function(){return _0x35db0a;};return _0x5353();}import{AIChatView as _0x328fd9}from'./ui/aichatview.js';import{AITabs as _0x8b4893}from'../aitabs/aitabs.js';import{getTranslation as _0x1dc508}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2deb04}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x8be7fa}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x5879(_0x1add57,_0x4efd66){const _0x53537d=_0x5353();return _0x5879=function(_0x58796c,_0x4e0be5){_0x58796c=_0x58796c-0x64;let _0x16cd92=_0x53537d[_0x58796c];return _0x16cd92;},_0x5879(_0x1add57,_0x4efd66);}import{PromiseQueue as _0x1297b0}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3db798}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x208884}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2c0081}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x258788{static get[_0x5b7ac7(0x108)](){return[_0x8b4893];}[_0x5b7ac7(0x72)];static get[_0x5b7ac7(0x109)](){const _0x52b570=_0x5b7ac7;return _0x52b570(0xe9);}static get[_0x5b7ac7(0xcf)](){return!0x0;}static get[_0x5b7ac7(0x8f)](){return!0x0;}[_0x5b7ac7(0xc4)]=_0x5b7ac7(0x64);[_0x5b7ac7(0xc1)]=!0x0;[_0x5b7ac7(0x78)];[_0x5b7ac7(0xaa)];[_0x5b7ac7(0x86)]=void 0x0;[_0x5b7ac7(0xd1)]=!0x1;constructor(_0x3c9d9b){const _0x3dd25f=_0x5b7ac7;super(_0x3c9d9b);const _0x5260b5=this[_0x3dd25f(0xb4)][_0x3dd25f(0x7d)][_0x3dd25f(0x65)](_0x3dd25f(0x75));this[_0x3dd25f(0x10a)](_0x3dd25f(0xcd),!0x1),this[_0x3dd25f(0x78)]=new _0x1297b0(),this[_0x3dd25f(0x72)]=new _0x328fd9(this[_0x3dd25f(0xb4)][_0x3dd25f(0xad)],{'showResizeButton':_0x5260b5[_0x3dd25f(0x10b)],'contextResourcesSearchInputVisibleFrom':this[_0x3dd25f(0xb4)][_0x3dd25f(0xdf)][_0x3dd25f(0x65)](_0x3dd25f(0xbb))}),this[_0x3dd25f(0x72)][_0x3dd25f(0x71)](..._0x3db798)['to'](this),this[_0x3dd25f(0x72)]['on'](_0x3dd25f(0x66),(_0x2516ba,{showDiff:_0x12d6ac})=>{const _0x1fb3d3=_0x3dd25f;this[_0x1fb3d3(0xc1)]=_0x12d6ac;}),_0x5260b5[_0x3dd25f(0x6b)][_0x3dd25f(0x9f)]({'id':_0x3dd25f(0xff),'buttonLabel':_0x1dc508(this[_0x3dd25f(0xb4)][_0x3dd25f(0xad)],_0x3dd25f(0x7a)),'buttonIcon':_0x2deb04,'order':0x0,'content':this[_0x3dd25f(0x72)]}),this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)][_0x3dd25f(0xf8)](_0x3dd25f(0x8d))['to'](this,_0x3dd25f(0xcd),_0x3709d1=>_0x3709d1),this[_0x3dd25f(0x72)][_0x3dd25f(0x7f)][_0x3dd25f(0xf8)](_0x3dd25f(0xfc))['to'](this,_0x3dd25f(0xcd),_0x45f513=>_0x45f513),this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)][_0x3dd25f(0xc2)](this[_0x3dd25f(0x70)]()),this[_0x3dd25f(0xf8)](_0x3dd25f(0xa1))['to'](this[_0x3dd25f(0x72)][_0x3dd25f(0x8c)],_0x3dd25f(0xa1));}[_0x5b7ac7(0x76)](){const _0x168f24=_0x5b7ac7;super[_0x168f24(0x76)](),this[_0x168f24(0x86)]&&clearInterval(this[_0x168f24(0x86)]);}[_0x5b7ac7(0x81)](_0x3fadcf){const _0xcf9906=_0x5b7ac7;this[_0xcf9906(0x72)][_0xcf9906(0x7f)][_0xcf9906(0x9c)](),this[_0xcf9906(0x72)][_0xcf9906(0x8c)][_0xcf9906(0xb8)](),this[_0xcf9906(0x72)][_0xcf9906(0x8c)][_0xcf9906(0x89)](_0x3fadcf[_0xcf9906(0xc3)],!this[_0xcf9906(0xb4)][_0xcf9906(0xdf)][_0xcf9906(0x65)](_0xcf9906(0xf4))),this[_0xcf9906(0xc6)]({'id':_0xcf9906(0xab),'staticMessage':_0x1dc508(this[_0xcf9906(0xb4)][_0xcf9906(0xad)],_0xcf9906(0xbd))});}[_0x5b7ac7(0xc6)]({id:_0x41e839,staticMessage:_0x6caa0d}){const _0x37d52e=_0x5b7ac7;this[_0x37d52e(0x72)][_0x37d52e(0x7f)][_0x37d52e(0xbf)](_0x37d52e(0xbe),{'id':_0x41e839,'initialContent':_0x37d52e(0xd0)+_0x6caa0d+_0x37d52e(0xa5)});}[_0x5b7ac7(0x74)](_0x492f2c){const _0x416ea8=_0x5b7ac7,_0x194686=_0x492f2c[_0x416ea8(0xb6)]?.[_0x416ea8(0xc9)]||_0x492f2c[_0x416ea8(0xf0)];this[_0x416ea8(0x72)][_0x416ea8(0x7f)][_0x416ea8(0xbf)](_0x416ea8(0x106),{'contextItems':Array[_0x416ea8(0x73)](_0x492f2c[_0x416ea8(0xef)][_0x416ea8(0x80)]()),'initialContent':_0x416ea8(0xd0)+_0x194686+_0x416ea8(0xa5),'id':_0x492f2c['id']});}[_0x5b7ac7(0x88)]({errorMessage:_0xfb1870,id:_0x40e0e4}){const _0x5a1b15=_0x5b7ac7;this[_0x5a1b15(0x72)][_0x5a1b15(0x7f)][_0x5a1b15(0xbf)](_0x5a1b15(0xe5),{'initialContent':_0x5a1b15(0xd0)+_0xfb1870+_0x5a1b15(0xa5),'id':_0x40e0e4});}[_0x5b7ac7(0x84)](_0x4689af){const _0x26dc87=_0x5b7ac7;return this[_0x26dc87(0x78)][_0x26dc87(0xee)](async()=>{const _0x2342b3=_0x26dc87;this[_0x2342b3(0x72)][_0x2342b3(0x7f)][_0x2342b3(0xbf)](_0x2342b3(0xbe),{'id':_0x4689af[_0x2342b3(0xb5)]+':'+_0x4689af['id']}),this[_0x2342b3(0xbc)](null);});}async[_0x5b7ac7(0xa6)](_0x39b7fc){const _0x56a63a=_0x5b7ac7,_0x2e6f27=_0x208884(this[_0x56a63a(0xb4)]);let _0x6e21ad=_0x2e6f27[_0x56a63a(0xdf)][_0x56a63a(0x65)](_0x56a63a(0x6a))||[..._0x2c0081];if(_0x2e6f27[_0x56a63a(0x7d)][_0x56a63a(0x82)](_0x56a63a(0x87))){if(!this[_0x56a63a(0xd1)]){this[_0x56a63a(0xd1)]=!0x0;const _0x2406ef=_0x2e6f27[_0x56a63a(0xca)][_0x56a63a(0x65)](_0x56a63a(0x10c));this[_0x56a63a(0x72)][_0x56a63a(0x7f)][_0x56a63a(0xf8)](_0x56a63a(0x7c))['to'](_0x2406ef,_0x56a63a(0xa3));}}else _0x6e21ad=_0x6e21ad[_0x56a63a(0xdb)](_0x509ae5=>_0x56a63a(0x105)!=_0x509ae5);return this[_0x56a63a(0x78)][_0x56a63a(0xee)](async()=>{const _0x3157e3=_0x56a63a;this[_0x3157e3(0x72)][_0x3157e3(0x7f)][_0x3157e3(0xbf)](_0x3157e3(0x90),{'id':_0x39b7fc[_0x3157e3(0xb5)]+':'+_0x39b7fc['id'],'areActionsDisabled':_0x39b7fc[_0x3157e3(0x9a)],'showDiff':this[_0x3157e3(0xc1)],'availableActions':_0x6e21ad}),this[_0x3157e3(0xbc)](null);});}[_0x5b7ac7(0xf6)](_0x16548b,_0x307ab3){const _0x2c7595=_0x5b7ac7,_0xf3d4a7=this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0x91)][_0x2c7595(0x97)];if(_0xf3d4a7 instanceof _0x8be7fa)return this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0x91)][_0x2c7595(0x67)](_0xf3d4a7),void this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0xbf)](_0x2c7595(0x77),{'id':_0x16548b['id'],'capabilities':{'isWebSearchEnabled':_0xf3d4a7[_0x2c7595(0xec)][_0x2c7595(0xd8)]||_0x307ab3[_0x2c7595(0xd8)],'isReasoningEnabled':_0xf3d4a7[_0x2c7595(0xec)][_0x2c7595(0x101)]||_0x307ab3[_0x2c7595(0x101)]}});this[_0x2c7595(0x72)][_0x2c7595(0x7f)][_0x2c7595(0xbf)](_0x2c7595(0x77),{'id':_0x16548b['id'],'capabilities':_0x307ab3});}[_0x5b7ac7(0xa2)](_0x4b912b){const _0x201d67=_0x5b7ac7,_0x2243f0=this[_0x201d67(0x72)][_0x201d67(0x7f)][_0x201d67(0x91)][_0x201d67(0xba)](_0x48494e=>_0x48494e[_0x201d67(0xd6)]['id']==_0x4b912b['id']&&_0x48494e instanceof _0x8be7fa);_0x2243f0&&_0x2243f0[_0x201d67(0x10a)](_0x201d67(0xe7),_0x4b912b[_0x201d67(0xe7)]);}async[_0x5b7ac7(0x107)](_0x36e3a1){const _0x5cbaad=_0x5b7ac7,_0x124878=_0x36e3a1[_0x5cbaad(0xc0)]||this[_0x5cbaad(0xc4)];return this[_0x5cbaad(0x78)][_0x5cbaad(0xee)](async _0x2092ee=>{const _0x289a46=_0x5cbaad;await this[_0x289a46(0x72)][_0x289a46(0x7f)][_0x289a46(0x6c)]({..._0x36e3a1,'abortSignal':_0x2092ee,'renderingStrategy':_0x124878}),_0x36e3a1[_0x289a46(0xd7)]&&this[_0x289a46(0x83)](_0x36e3a1['id']);});}[_0x5b7ac7(0xb0)](_0x48b48a,_0x5e98b0){const _0x5ef134=_0x5b7ac7;this[_0x5ef134(0x72)][_0x5ef134(0x7f)][_0x5ef134(0xce)](_0x48b48a,_0x5e98b0);}async[_0x5b7ac7(0x9d)](_0x57ee46){const _0x4a3b1c=_0x5b7ac7,_0xa73cf5=_0x57ee46[_0x4a3b1c(0xc0)]||this[_0x4a3b1c(0xc4)];return this[_0x4a3b1c(0x78)][_0x4a3b1c(0xee)](async _0x5d6f0c=>{const _0x35c170=_0x4a3b1c;await this[_0x35c170(0x72)][_0x35c170(0x7f)][_0x35c170(0x7e)]({..._0x57ee46,'abortSignal':_0x5d6f0c,'renderingStrategy':_0xa73cf5}),_0x57ee46[_0x35c170(0xd7)]&&this[_0x35c170(0x83)](_0x57ee46['id']);});}[_0x5b7ac7(0x96)](_0x48ef31){const _0xdf411e=_0x5b7ac7;this[_0xdf411e(0x72)][_0xdf411e(0x7f)][_0xdf411e(0xe3)](_0x48ef31);}[_0x5b7ac7(0x83)](_0x2856bf){const _0x56a2c1=_0x5b7ac7;this[_0x56a2c1(0x72)][_0x56a2c1(0x7f)][_0x56a2c1(0xf2)](_0x2856bf);}[_0x5b7ac7(0x93)](_0x592974){const _0x4f03b7=_0x5b7ac7;this[_0x4f03b7(0x72)][_0x4f03b7(0x7f)][_0x4f03b7(0xb7)]()[_0x4f03b7(0xdb)](_0x3af23e=>_0x3af23e[_0x4f03b7(0x85)](_0x592974))[_0x4f03b7(0xd5)](_0x3dec71=>this[_0x4f03b7(0x72)][_0x4f03b7(0x7f)][_0x4f03b7(0xb1)](_0x3dec71));}[_0x5b7ac7(0xe4)](){const _0x5e6996=_0x5b7ac7;this[_0x5e6996(0xbc)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5e6996(0x72)][_0x5e6996(0x8c)][_0x5e6996(0x98)](!this[_0x5e6996(0xb4)][_0x5e6996(0xdf)][_0x5e6996(0x65)](_0x5e6996(0xf4))),this[_0x5e6996(0xcd)]=!0x0,this[_0x5e6996(0x72)][_0x5e6996(0x7f)][_0x5e6996(0xeb)]();}[_0x5b7ac7(0xc7)](_0x27ddb4){const _0x55b7c5=_0x5b7ac7;this[_0x55b7c5(0x78)][_0x55b7c5(0x8e)](),this[_0x55b7c5(0x72)][_0x55b7c5(0x7f)][_0x55b7c5(0xb7)]()[_0x55b7c5(0xdb)](_0x209f64=>_0x209f64[_0x55b7c5(0x85)](_0x27ddb4['id']))[_0x55b7c5(0xd5)](_0x511787=>this[_0x55b7c5(0x83)](_0x511787)),this[_0x55b7c5(0xcd)]=!0x1,this[_0x55b7c5(0x72)][_0x55b7c5(0x7f)][_0x55b7c5(0xc5)]();}async[_0x5b7ac7(0xe6)](){const _0x58974b=_0x5b7ac7;return this[_0x58974b(0x78)][_0x58974b(0xf3)][_0x58974b(0xb2)](()=>{const _0xe5c97=_0x58974b;this[_0xe5c97(0xcd)]=!0x1,this[_0xe5c97(0x72)][_0xe5c97(0x7f)][_0xe5c97(0xc5)]();});}[_0x5b7ac7(0xe8)](_0x19f817,_0x327078){const _0x55ff36=_0x5b7ac7;this[_0x55ff36(0x72)][_0x55ff36(0x8c)][_0x55ff36(0xe8)](_0x19f817,_0x327078);}[_0x5b7ac7(0x94)](_0x2e4009){const _0x16aedd=_0x5b7ac7;this[_0x16aedd(0x72)][_0x16aedd(0x8c)][_0x16aedd(0x94)](_0x2e4009);}[_0x5b7ac7(0x103)](_0x38528d,_0x3ca9cc){const _0x3ac5b3=_0x5b7ac7;this[_0x3ac5b3(0x72)][_0x3ac5b3(0x8c)][_0x3ac5b3(0x103)](_0x38528d,_0x3ca9cc);}[_0x5b7ac7(0xe1)](_0x5159a5){const _0x5ce103=_0x5b7ac7;this[_0x5ce103(0x72)][_0x5ce103(0x8c)][_0x5ce103(0xe1)](_0x5159a5);}[_0x5b7ac7(0xed)](_0x237dc2){const _0x46e3cb=_0x5b7ac7;this[_0x46e3cb(0x72)][_0x46e3cb(0x8c)][_0x46e3cb(0xed)](_0x237dc2);}[_0x5b7ac7(0x100)](){const _0x49f78f=_0x5b7ac7;this[_0x49f78f(0x72)][_0x49f78f(0x8c)][_0x49f78f(0x100)]();}[_0x5b7ac7(0x6d)](){const _0x11834e=_0x5b7ac7;this[_0x11834e(0x72)][_0x11834e(0x8c)][_0x11834e(0x6d)]();}[_0x5b7ac7(0xda)](_0x15adb8,_0x2c3ee6,_0x57faa8){const _0x322299=_0x5b7ac7;this[_0x322299(0x72)][_0x322299(0x8c)][_0x322299(0xda)](_0x15adb8,_0x2c3ee6,_0x57faa8);}[_0x5b7ac7(0xf1)](){const _0x33a528=_0x5b7ac7;this[_0x33a528(0x72)][_0x33a528(0x8c)][_0x33a528(0xf1)](),this[_0x33a528(0x72)][_0x33a528(0x8c)][_0x33a528(0xc2)](this[_0x33a528(0x70)]());}[_0x5b7ac7(0x9e)](_0x184a2b){const _0x1163bc=_0x5b7ac7;this[_0x1163bc(0x72)][_0x1163bc(0x8c)][_0x1163bc(0x9e)](_0x184a2b);}[_0x5b7ac7(0xc8)](_0x17d76a){const _0x591470=_0x5b7ac7;this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0x92)](_0x17d76a[_0x591470(0xd8)]),this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0x69)](_0x17d76a[_0x591470(0x101)]),this[_0x591470(0x72)][_0x591470(0x8c)][_0x591470(0xc2)](this[_0x591470(0x70)](_0x17d76a));}[_0x5b7ac7(0xae)](_0x49c19c,_0x60bf18){const _0x57908d=_0x5b7ac7;this[_0x57908d(0x72)][_0x57908d(0x8c)][_0x57908d(0xd3)](_0x49c19c),_0x60bf18&&this[_0x57908d(0x72)][_0x57908d(0x8c)][_0x57908d(0x98)](!0x1);}[_0x5b7ac7(0x6f)](_0x5d979f){const _0x176fa1=_0x5b7ac7;this[_0x176fa1(0xc4)]=_0x5d979f;}[_0x5b7ac7(0xfb)](_0x1ae1d6){const _0x339ec4=_0x5b7ac7;this[_0x339ec4(0x72)][_0x339ec4(0x7f)][_0x339ec4(0xfb)](_0x1ae1d6);}[_0x5b7ac7(0xac)](){const _0x4d149e=_0x5b7ac7;this[_0x4d149e(0xb3)](_0x1dc508(this[_0x4d149e(0xb4)][_0x4d149e(0xad)],_0x4d149e(0x7a)));}[_0x5b7ac7(0xb3)](_0x3a85e0,_0xf5c4ab=!0x1){const _0x46bda4=_0x5b7ac7;if(_0xf5c4ab&&!_0x2cccc6()&&_0x3a85e0[_0x46bda4(0x79)])return this[_0x46bda4(0x72)][_0x46bda4(0x7b)][_0x46bda4(0xcb)]='',void this[_0x46bda4(0xf9)](_0x3a85e0);this[_0x46bda4(0x72)][_0x46bda4(0x7b)][_0x46bda4(0xcb)]=_0x3a85e0;}[_0x5b7ac7(0xbc)](_0x1bb1a3){const _0x2e5954=_0x5b7ac7,_0x583945=this[_0x2e5954(0x8b)](_0x1bb1a3);this[_0x2e5954(0x72)][_0x2e5954(0x7f)][_0x2e5954(0xbc)](_0x583945);}[_0x5b7ac7(0xf9)](_0x4bd544){const _0xd1f24f=_0x5b7ac7;let _0x58df4a=0x0;clearInterval(this[_0xd1f24f(0x86)]),this[_0xd1f24f(0x86)]=setInterval(()=>{const _0xa0552b=_0xd1f24f;this[_0xa0552b(0x72)][_0xa0552b(0x7b)][_0xa0552b(0xcb)]=this[_0xa0552b(0x72)][_0xa0552b(0x7b)][_0xa0552b(0xcb)]+_0x4bd544[_0x58df4a],_0x58df4a++,_0x58df4a===_0x4bd544[_0xa0552b(0x79)]&&clearInterval(this[_0xa0552b(0x86)]);},0x1e);}[_0x5b7ac7(0xe0)](_0x5c92ce){const _0x2fe7f8=_0x5b7ac7;this[_0x2fe7f8(0x72)][_0x2fe7f8(0x7b)][_0x2fe7f8(0xd4)]=_0x5c92ce;}[_0x5b7ac7(0x8b)](_0x381607){const _0xda447a=_0x5b7ac7;return _0x381607?_0x381607[_0xda447a(0xd8)]&&_0x381607[_0xda447a(0x101)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xa8)):_0x381607[_0xda447a(0xd8)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xd2)):_0x381607[_0xda447a(0x101)]?_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0x6e)):_0x1dc508(this[_0xda447a(0xb4)][_0xda447a(0xad)],_0xda447a(0xa7)):'';}[_0x5b7ac7(0x70)](_0x52fd34){const _0x544589=_0x5b7ac7;return _0x52fd34?_0x52fd34[_0x544589(0xd8)]&&_0x52fd34[_0x544589(0x101)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x104)):_0x52fd34[_0x544589(0xd8)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x99)):_0x52fd34[_0x544589(0x101)]?_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0xfe)):_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x68)):_0x1dc508(this[_0x544589(0xb4)][_0x544589(0xad)],_0x544589(0x68));}[_0x5b7ac7(0x9b)](_0x16bbb9,_0xce0b9e,_0x5e42c9,_0x442935){const _0x218710=_0x5b7ac7;this[_0x218710(0x72)][_0x218710(0x9b)](_0x16bbb9,_0xce0b9e,_0x5e42c9,_0x442935);}[_0x5b7ac7(0xa0)](_0x173591){const _0x337440=_0x5b7ac7;this[_0x337440(0x72)][_0x337440(0xa0)](_0x173591);}[_0x5b7ac7(0xdd)](){const _0x3e90aa=_0x5b7ac7;this[_0x3e90aa(0x72)][_0x3e90aa(0x8c)][_0x3e90aa(0xdd)]();}[_0x5b7ac7(0xa4)](_0x53ffd3,_0x567225){const _0x26f9f9=_0x5b7ac7;this[_0x26f9f9(0x72)][_0x26f9f9(0x7f)][_0x26f9f9(0x102)](_0x53ffd3,_0x567225);}[_0x5b7ac7(0xeb)](){const _0x40a979=_0x5b7ac7;this[_0x40a979(0x72)][_0x40a979(0x7f)][_0x40a979(0xeb)]();}[_0x5b7ac7(0xdc)](){const _0x115c47=_0x5b7ac7;this[_0x115c47(0x72)][_0x115c47(0x8c)][_0x115c47(0x95)]=!0x0;}[_0x5b7ac7(0xea)](){const _0x2dfd70=_0x5b7ac7;this[_0x2dfd70(0x72)][_0x2dfd70(0x8c)][_0x2dfd70(0x95)]=!0x1;}}
|
|
23
|
+
const _0x1aef1a=_0x171f;(function(_0x2e8ef0,_0x4abe5e){const _0x445fbc=_0x171f,_0x43b163=_0x2e8ef0();while(!![]){try{const _0x4677f1=parseInt(_0x445fbc(0x1b2))/0x1+-parseInt(_0x445fbc(0x18f))/0x2*(-parseInt(_0x445fbc(0x18c))/0x3)+parseInt(_0x445fbc(0x187))/0x4*(-parseInt(_0x445fbc(0x1cf))/0x5)+parseInt(_0x445fbc(0x1aa))/0x6*(-parseInt(_0x445fbc(0x1b7))/0x7)+-parseInt(_0x445fbc(0x1c6))/0x8*(-parseInt(_0x445fbc(0x150))/0x9)+-parseInt(_0x445fbc(0x1d0))/0xa*(-parseInt(_0x445fbc(0x1c3))/0xb)+-parseInt(_0x445fbc(0x191))/0xc;if(_0x4677f1===_0x4abe5e)break;else _0x43b163['push'](_0x43b163['shift']());}catch(_0x1209e9){_0x43b163['push'](_0x43b163['shift']());}}}(_0x4902,0x3b3b8));import{ContextPlugin as _0x174f40}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1428bd}from'ckeditor5/src/utils.js';function _0x4902(){const _0x44c771=['1319725lGxKkx','640ThnQuI','resetMessageInput','get','ai.chat.models.modelSelectorAlwaysVisible','ai-reply','set','children','locale','insertSuggestion','userMessage','find','enqueue','TrackChanges','config','remove','scrollFeedToSuggestion','updateSuggestionItem','_promiseQueue','_getLoadingMessage','clearPendingContextUI','setIsMaximized','AITabs','startInteraction','from','updateFeedInteractionHeader','isTrackChangesOn','error-message','plugins','setAddContextOptions','markItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','createConversation','isDisabled','length','updateWebSources','destroy','conversation-start','delegate','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','areActionsDisabled','isLoading','3998034CeGLuW','chatFeed','abort','options','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','quickActionData','showResizeButton','updateResourceState','view','addFeedInteractionHeader','updateFeedItemAIReplySuggestionContent','commands','label','interactionId','trackChanges','addTab','startsWith','availableModels','clear','finishInteraction','AI_CHAT_WELCOME_MESSAGE','setModel','updateFeedItemAIReplyContent','removeItem','setSelectedModel','addFeedItemStaticMessage','then','stopInteraction','feedItemRenderingStrategy','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setReasoning','capabilities','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','pluginName','isBusy','setFeedItemRenderingStrategy','startAutoScroll','populateSourceResourceBalloon','clearConversationContextUI','chatHeader','filter','requires','<p>','streaming','setInputPlaceholder','showDiff','_titleAnimationInterval','closeSourceResourceBalloon','chatControls','getItemIds','forEach','ai.availableReplyActions','last','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','scrollToSuggestion','4pVPQgh','displayedPrompt','queueEmptyPromise','context','isOfficialPlugin','267GLZaPX','bind','_isTrackChangesCommandValueBound','5702nxekGu','updateReplyItem','5886252XAzhNS','updateFeedItemAIReplySuggestionPartState','values','toggleLoadingSkeleton','setIsUploadInProgress','_getInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setWebSearch','isMaximized','setConversationContext','_view','removeFeedInteraction','AIChatUI','setContextItemLoading','setLoadingMessage','value','addFeedItemAISuggestion','stopAutoScroll','isModelAvailable','markFeedItemAsDone','toggleSuggestionDisplayMode','updateFeedItemAIReplySources','renderingStrategy','addItem','isVisible','1986ijDWzo','enableModelSelector','isPending','isPremiumPlugin','isWebSearchEnabled','removeContextItem','addFeedItemAIReply','setModelList','223914gmVOHp','resetConversationTitle','disableControls','isReasoningEnabled','user-message','4193jjnkdb','addFeedItemUserMessage','disableModelSelector','updateSuggestionPartState','addFeedItemError','AI_CHAT_HEADING','_animateConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateCapabilities','_interactionPromiseResolver','ai-suggestion-reply','isDone','47003cjBDHg','focusPromptInput','interaction-header','8dFwQDG','setConversationTitle','</p>','addContextItem','enableControls','chat','contextItems','has','ai.chat.context.searchInputVisibleFrom'];_0x4902=function(){return _0x44c771;};return _0x4902();}import{AIChatView as _0x5863ed}from'./ui/aichatview.js';import{AITabs as _0x4edc76}from'../aitabs/aitabs.js';import{getTranslation as _0xa3933}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x94549f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x59e5ab}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x51bcef}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1fcdcc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x171f(_0x3e92f4,_0x42f51a){const _0x4902a8=_0x4902();return _0x171f=function(_0x171f80,_0x3c66e9){_0x171f80=_0x171f80-0x131;let _0x2d56e3=_0x4902a8[_0x171f80];return _0x2d56e3;},_0x171f(_0x3e92f4,_0x42f51a);}import{getEditorFromContext as _0x1419cb}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x314583}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x174f40{static get[_0x1aef1a(0x179)](){return[_0x4edc76];}[_0x1aef1a(0x19b)];static get[_0x1aef1a(0x171)](){const _0x1d7a59=_0x1aef1a;return _0x1d7a59(0x19d);}static get[_0x1aef1a(0x18b)](){return!0x0;}static get[_0x1aef1a(0x1ad)](){return!0x0;}[_0x1aef1a(0x16c)]=_0x1aef1a(0x17b);[_0x1aef1a(0x17d)]=!0x0;[_0x1aef1a(0x138)];[_0x1aef1a(0x1c0)];[_0x1aef1a(0x17e)]=void 0x0;[_0x1aef1a(0x18e)]=!0x1;constructor(_0x331aca){const _0x332cd7=_0x1aef1a;super(_0x331aca);const _0x43e063=this[_0x332cd7(0x18a)][_0x332cd7(0x142)][_0x332cd7(0x1d2)](_0x332cd7(0x13c));this[_0x332cd7(0x1d5)](_0x332cd7(0x172),!0x1),this[_0x332cd7(0x138)]=new _0x51bcef(),this[_0x332cd7(0x19b)]=new _0x5863ed(this[_0x332cd7(0x18a)][_0x332cd7(0x1d7)],{'showResizeButton':_0x43e063[_0x332cd7(0x156)],'contextResourcesSearchInputVisibleFrom':this[_0x332cd7(0x18a)][_0x332cd7(0x134)][_0x332cd7(0x1d2)](_0x332cd7(0x1ce))}),this[_0x332cd7(0x19b)][_0x332cd7(0x14c)](..._0x1fcdcc)['to'](this),this[_0x332cd7(0x19b)]['on'](_0x332cd7(0x1a5),(_0x29fadd,{showDiff:_0x56519e})=>{const _0x436596=_0x332cd7;this[_0x436596(0x17d)]=_0x56519e;}),_0x43e063[_0x332cd7(0x158)][_0x332cd7(0x15f)]({'id':_0x332cd7(0x1cb),'buttonLabel':_0xa3933(this[_0x332cd7(0x18a)][_0x332cd7(0x1d7)],_0x332cd7(0x1bc)),'buttonIcon':_0x94549f,'order':0x0,'content':this[_0x332cd7(0x19b)]}),this[_0x332cd7(0x19b)][_0x332cd7(0x180)][_0x332cd7(0x18d)](_0x332cd7(0x14f))['to'](this,_0x332cd7(0x172),_0x38dcf6=>_0x38dcf6),this[_0x332cd7(0x19b)][_0x332cd7(0x151)][_0x332cd7(0x18d)](_0x332cd7(0x1ac))['to'](this,_0x332cd7(0x172),_0x5f1b8b=>_0x5f1b8b),this[_0x332cd7(0x19b)][_0x332cd7(0x180)][_0x332cd7(0x17c)](this[_0x332cd7(0x196)]()),this[_0x332cd7(0x18d)](_0x332cd7(0x1a3))['to'](this[_0x332cd7(0x19b)][_0x332cd7(0x180)],_0x332cd7(0x1a3));}[_0x1aef1a(0x14a)](){const _0x4b7b70=_0x1aef1a;super[_0x4b7b70(0x14a)](),this[_0x4b7b70(0x17e)]&&clearInterval(this[_0x4b7b70(0x17e)]);}[_0x1aef1a(0x146)](_0x32e807){const _0x8d5d0e=_0x1aef1a;this[_0x8d5d0e(0x19b)][_0x8d5d0e(0x151)][_0x8d5d0e(0x162)](),this[_0x8d5d0e(0x19b)][_0x8d5d0e(0x180)][_0x8d5d0e(0x1ab)](),this[_0x8d5d0e(0x19b)][_0x8d5d0e(0x180)][_0x8d5d0e(0x1b1)](_0x32e807[_0x8d5d0e(0x161)],!this[_0x8d5d0e(0x18a)][_0x8d5d0e(0x134)][_0x8d5d0e(0x1d2)](_0x8d5d0e(0x1d3))),this[_0x8d5d0e(0x169)]({'id':_0x8d5d0e(0x14b),'staticMessage':_0xa3933(this[_0x8d5d0e(0x18a)][_0x8d5d0e(0x1d7)],_0x8d5d0e(0x164))});}[_0x1aef1a(0x169)]({id:_0x3bd981,staticMessage:_0x2b507d}){const _0x46b2b0=_0x1aef1a;this[_0x46b2b0(0x19b)][_0x46b2b0(0x151)][_0x46b2b0(0x1a8)](_0x46b2b0(0x1d4),{'id':_0x3bd981,'initialContent':_0x46b2b0(0x17a)+_0x2b507d+_0x46b2b0(0x1c8)});}[_0x1aef1a(0x1b8)](_0x232db8){const _0x2020ab=_0x1aef1a,_0x3b6216=_0x232db8[_0x2020ab(0x155)]?.[_0x2020ab(0x188)]||_0x232db8[_0x2020ab(0x1d9)];this[_0x2020ab(0x19b)][_0x2020ab(0x151)][_0x2020ab(0x1a8)](_0x2020ab(0x1b6),{'contextItems':Array[_0x2020ab(0x13e)](_0x232db8[_0x2020ab(0x1cc)][_0x2020ab(0x193)]()),'initialContent':_0x2020ab(0x17a)+_0x3b6216+_0x2020ab(0x1c8),'id':_0x232db8['id']});}[_0x1aef1a(0x1bb)]({errorMessage:_0x418fd8,id:_0x496898}){const _0x455a89=_0x1aef1a;this[_0x455a89(0x19b)][_0x455a89(0x151)][_0x455a89(0x1a8)](_0x455a89(0x141),{'initialContent':_0x455a89(0x17a)+_0x418fd8+_0x455a89(0x1c8),'id':_0x496898});}[_0x1aef1a(0x1b0)](_0x442a45){const _0x1df75d=_0x1aef1a;return this[_0x1df75d(0x138)][_0x1df75d(0x132)](async()=>{const _0x4dc8b8=_0x1df75d;this[_0x4dc8b8(0x19b)][_0x4dc8b8(0x151)][_0x4dc8b8(0x1a8)](_0x4dc8b8(0x1d4),{'id':_0x442a45[_0x4dc8b8(0x15d)]+':'+_0x442a45['id']}),this[_0x4dc8b8(0x19f)](null);});}async[_0x1aef1a(0x1a1)](_0x1bbfaa){const _0x1019a4=_0x1aef1a,_0x8d622c=_0x1419cb(this[_0x1019a4(0x18a)]);let _0x2bb500=_0x8d622c[_0x1019a4(0x134)][_0x1019a4(0x1d2)](_0x1019a4(0x183))||[..._0x314583];if(_0x8d622c[_0x1019a4(0x142)][_0x1019a4(0x1cd)](_0x1019a4(0x133))){if(!this[_0x1019a4(0x18e)]){this[_0x1019a4(0x18e)]=!0x0;const _0x445dd5=_0x8d622c[_0x1019a4(0x15b)][_0x1019a4(0x1d2)](_0x1019a4(0x15e));this[_0x1019a4(0x19b)][_0x1019a4(0x151)][_0x1019a4(0x18d)](_0x1019a4(0x140))['to'](_0x445dd5,_0x1019a4(0x1a0));}}else _0x2bb500=_0x2bb500[_0x1019a4(0x178)](_0x2c8853=>_0x1019a4(0x1d8)!=_0x2c8853);return this[_0x1019a4(0x138)][_0x1019a4(0x132)](async()=>{const _0x1379f4=_0x1019a4;this[_0x1379f4(0x19b)][_0x1379f4(0x151)][_0x1379f4(0x1a8)](_0x1379f4(0x1c1),{'id':_0x1bbfaa[_0x1379f4(0x15d)]+':'+_0x1bbfaa['id'],'areActionsDisabled':_0x1bbfaa[_0x1379f4(0x14e)],'showDiff':this[_0x1379f4(0x17d)],'availableActions':_0x2bb500}),this[_0x1379f4(0x19f)](null);});}[_0x1aef1a(0x159)](_0x6d0ce2,_0x2305f5){const _0x15ebce=_0x1aef1a,_0x137f63=this[_0x15ebce(0x19b)][_0x15ebce(0x151)][_0x15ebce(0x1d6)][_0x15ebce(0x184)];if(_0x137f63 instanceof _0x59e5ab)return this[_0x15ebce(0x19b)][_0x15ebce(0x151)][_0x15ebce(0x1d6)][_0x15ebce(0x135)](_0x137f63),void this[_0x15ebce(0x19b)][_0x15ebce(0x151)][_0x15ebce(0x1a8)](_0x15ebce(0x1c5),{'id':_0x6d0ce2['id'],'capabilities':{'isWebSearchEnabled':_0x137f63[_0x15ebce(0x16f)][_0x15ebce(0x1ae)]||_0x2305f5[_0x15ebce(0x1ae)],'isReasoningEnabled':_0x137f63[_0x15ebce(0x16f)][_0x15ebce(0x1b5)]||_0x2305f5[_0x15ebce(0x1b5)]}});this[_0x15ebce(0x19b)][_0x15ebce(0x151)][_0x15ebce(0x1a8)](_0x15ebce(0x1c5),{'id':_0x6d0ce2['id'],'capabilities':_0x2305f5});}[_0x1aef1a(0x13f)](_0x20bbea){const _0x25740b=_0x1aef1a,_0x54e893=this[_0x25740b(0x19b)][_0x25740b(0x151)][_0x25740b(0x1d6)][_0x25740b(0x131)](_0x365fd7=>_0x365fd7[_0x25740b(0x153)]['id']==_0x20bbea['id']&&_0x365fd7 instanceof _0x59e5ab);_0x54e893&&_0x54e893[_0x25740b(0x1d5)](_0x25740b(0x1a9),_0x20bbea[_0x25740b(0x1a9)]);}async[_0x1aef1a(0x166)](_0xaf484c){const _0x4bc2b9=_0x1aef1a,_0x55b1ff=_0xaf484c[_0x4bc2b9(0x1a7)]||this[_0x4bc2b9(0x16c)];return this[_0x4bc2b9(0x138)][_0x4bc2b9(0x132)](async _0x30e3e5=>{const _0x531549=_0x4bc2b9;await this[_0x531549(0x19b)][_0x531549(0x151)][_0x531549(0x190)]({..._0xaf484c,'abortSignal':_0x30e3e5,'renderingStrategy':_0x55b1ff}),_0xaf484c[_0x531549(0x1c2)]&&this[_0x531549(0x1a4)](_0xaf484c['id']);});}[_0x1aef1a(0x1a6)](_0xbfeda2,_0x1863a5){const _0x2ee002=_0x1aef1a;this[_0x2ee002(0x19b)][_0x2ee002(0x151)][_0x2ee002(0x149)](_0xbfeda2,_0x1863a5);}async[_0x1aef1a(0x15a)](_0x301d65){const _0x373a9e=_0x1aef1a,_0x53570c=_0x301d65[_0x373a9e(0x1a7)]||this[_0x373a9e(0x16c)];return this[_0x373a9e(0x138)][_0x373a9e(0x132)](async _0x4272dc=>{const _0x321a8f=_0x373a9e;await this[_0x321a8f(0x19b)][_0x321a8f(0x151)][_0x321a8f(0x137)]({..._0x301d65,'abortSignal':_0x4272dc,'renderingStrategy':_0x53570c}),_0x301d65[_0x321a8f(0x1c2)]&&this[_0x321a8f(0x1a4)](_0x301d65['id']);});}[_0x1aef1a(0x192)](_0x50edfa){const _0x58b793=_0x1aef1a;this[_0x58b793(0x19b)][_0x58b793(0x151)][_0x58b793(0x1ba)](_0x50edfa);}[_0x1aef1a(0x1a4)](_0x1b2d3b){const _0x30decb=_0x1aef1a;this[_0x30decb(0x19b)][_0x30decb(0x151)][_0x30decb(0x144)](_0x1b2d3b);}[_0x1aef1a(0x19c)](_0x2d1c2f){const _0x4350f2=_0x1aef1a;this[_0x4350f2(0x19b)][_0x4350f2(0x151)][_0x4350f2(0x181)]()[_0x4350f2(0x178)](_0x382609=>_0x382609[_0x4350f2(0x160)](_0x2d1c2f))[_0x4350f2(0x182)](_0x151243=>this[_0x4350f2(0x19b)][_0x4350f2(0x151)][_0x4350f2(0x167)](_0x151243));}[_0x1aef1a(0x13d)](){const _0x19c2ba=_0x1aef1a;this[_0x19c2ba(0x19f)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x19c2ba(0x19b)][_0x19c2ba(0x180)][_0x19c2ba(0x1b9)](!this[_0x19c2ba(0x18a)][_0x19c2ba(0x134)][_0x19c2ba(0x1d2)](_0x19c2ba(0x1d3))),this[_0x19c2ba(0x172)]=!0x0,this[_0x19c2ba(0x19b)][_0x19c2ba(0x151)][_0x19c2ba(0x174)]();}[_0x1aef1a(0x16b)](_0x2682b5){const _0x262445=_0x1aef1a;this[_0x262445(0x138)][_0x262445(0x152)](),this[_0x262445(0x19b)][_0x262445(0x151)][_0x262445(0x181)]()[_0x262445(0x178)](_0x3dca84=>_0x3dca84[_0x262445(0x160)](_0x2682b5['id']))[_0x262445(0x182)](_0x13700a=>this[_0x262445(0x1a4)](_0x13700a)),this[_0x262445(0x172)]=!0x1,this[_0x262445(0x19b)][_0x262445(0x151)][_0x262445(0x1a2)]();}async[_0x1aef1a(0x163)](){const _0x42f23b=_0x1aef1a;return this[_0x42f23b(0x138)][_0x42f23b(0x189)][_0x42f23b(0x16a)](()=>{const _0xbfcd33=_0x42f23b;this[_0xbfcd33(0x172)]=!0x1,this[_0xbfcd33(0x19b)][_0xbfcd33(0x151)][_0xbfcd33(0x1a2)]();});}[_0x1aef1a(0x1c9)](_0x3e9df9,_0x17376b){const _0x44db88=_0x1aef1a;this[_0x44db88(0x19b)][_0x44db88(0x180)][_0x44db88(0x1c9)](_0x3e9df9,_0x17376b);}[_0x1aef1a(0x1af)](_0x336a29){const _0x2a13aa=_0x1aef1a;this[_0x2a13aa(0x19b)][_0x2a13aa(0x180)][_0x2a13aa(0x1af)](_0x336a29);}[_0x1aef1a(0x19e)](_0x4534b9,_0x29a9c3){const _0x2073b2=_0x1aef1a;this[_0x2073b2(0x19b)][_0x2073b2(0x180)][_0x2073b2(0x19e)](_0x4534b9,_0x29a9c3);}[_0x1aef1a(0x195)](_0x23c99f){const _0x19484d=_0x1aef1a;this[_0x19484d(0x19b)][_0x19484d(0x180)][_0x19484d(0x195)](_0x23c99f);}[_0x1aef1a(0x19a)](_0x265d8b){const _0x23cbe5=_0x1aef1a;this[_0x23cbe5(0x19b)][_0x23cbe5(0x180)][_0x23cbe5(0x19a)](_0x265d8b);}[_0x1aef1a(0x13a)](){const _0x583f00=_0x1aef1a;this[_0x583f00(0x19b)][_0x583f00(0x180)][_0x583f00(0x13a)]();}[_0x1aef1a(0x176)](){const _0xe30cd5=_0x1aef1a;this[_0xe30cd5(0x19b)][_0xe30cd5(0x180)][_0xe30cd5(0x176)]();}[_0x1aef1a(0x157)](_0x185644,_0x106ed6,_0x2c494c){const _0x229cfb=_0x1aef1a;this[_0x229cfb(0x19b)][_0x229cfb(0x180)][_0x229cfb(0x157)](_0x185644,_0x106ed6,_0x2c494c);}[_0x1aef1a(0x1d1)](){const _0x5b50a2=_0x1aef1a;this[_0x5b50a2(0x19b)][_0x5b50a2(0x180)][_0x5b50a2(0x1d1)](),this[_0x5b50a2(0x19b)][_0x5b50a2(0x180)][_0x5b50a2(0x17c)](this[_0x5b50a2(0x196)]());}[_0x1aef1a(0x143)](_0xc6fe6b){const _0xe777c=_0x1aef1a;this[_0xe777c(0x19b)][_0xe777c(0x180)][_0xe777c(0x143)](_0xc6fe6b);}[_0x1aef1a(0x1bf)](_0x5883c6){const _0x294de1=_0x1aef1a;this[_0x294de1(0x19b)][_0x294de1(0x180)][_0x294de1(0x198)](_0x5883c6[_0x294de1(0x1ae)]),this[_0x294de1(0x19b)][_0x294de1(0x180)][_0x294de1(0x16e)](_0x5883c6[_0x294de1(0x1b5)]),this[_0x294de1(0x19b)][_0x294de1(0x180)][_0x294de1(0x17c)](this[_0x294de1(0x196)](_0x5883c6));}[_0x1aef1a(0x168)](_0x104f59,_0x52f19e){const _0xd877b0=_0x1aef1a;this[_0xd877b0(0x19b)][_0xd877b0(0x180)][_0xd877b0(0x165)](_0x104f59),_0x52f19e&&this[_0xd877b0(0x19b)][_0xd877b0(0x180)][_0xd877b0(0x1b9)](!0x1);}[_0x1aef1a(0x173)](_0x25c93c){const _0x4dfce6=_0x1aef1a;this[_0x4dfce6(0x16c)]=_0x25c93c;}[_0x1aef1a(0x194)](_0x20b026){const _0x24845c=_0x1aef1a;this[_0x24845c(0x19b)][_0x24845c(0x151)][_0x24845c(0x194)](_0x20b026);}[_0x1aef1a(0x1b3)](){const _0x4fcc06=_0x1aef1a;this[_0x4fcc06(0x1c7)](_0xa3933(this[_0x4fcc06(0x18a)][_0x4fcc06(0x1d7)],_0x4fcc06(0x1bc)));}[_0x1aef1a(0x1c7)](_0x3b5288,_0x244351=!0x1){const _0x318427=_0x1aef1a;if(_0x244351&&!_0x1428bd()&&_0x3b5288[_0x318427(0x148)])return this[_0x318427(0x19b)][_0x318427(0x177)][_0x318427(0x15c)]='',void this[_0x318427(0x1bd)](_0x3b5288);this[_0x318427(0x19b)][_0x318427(0x177)][_0x318427(0x15c)]=_0x3b5288;}[_0x1aef1a(0x19f)](_0x58c4c4){const _0x3864bd=_0x1aef1a,_0x422606=this[_0x3864bd(0x139)](_0x58c4c4);this[_0x3864bd(0x19b)][_0x3864bd(0x151)][_0x3864bd(0x19f)](_0x422606);}[_0x1aef1a(0x1bd)](_0x3a9e7f){const _0x47437d=_0x1aef1a;let _0x1620f0=0x0;clearInterval(this[_0x47437d(0x17e)]),this[_0x47437d(0x17e)]=setInterval(()=>{const _0x3b870c=_0x47437d;this[_0x3b870c(0x19b)][_0x3b870c(0x177)][_0x3b870c(0x15c)]=this[_0x3b870c(0x19b)][_0x3b870c(0x177)][_0x3b870c(0x15c)]+_0x3a9e7f[_0x1620f0],_0x1620f0++,_0x1620f0===_0x3a9e7f[_0x3b870c(0x148)]&&clearInterval(this[_0x3b870c(0x17e)]);},0x1e);}[_0x1aef1a(0x13b)](_0x21dd1f){const _0x453984=_0x1aef1a;this[_0x453984(0x19b)][_0x453984(0x177)][_0x453984(0x199)]=_0x21dd1f;}[_0x1aef1a(0x139)](_0x2d6929){const _0x10b05a=_0x1aef1a;return _0x2d6929?_0x2d6929[_0x10b05a(0x1ae)]&&_0x2d6929[_0x10b05a(0x1b5)]?_0xa3933(this[_0x10b05a(0x18a)][_0x10b05a(0x1d7)],_0x10b05a(0x16d)):_0x2d6929[_0x10b05a(0x1ae)]?_0xa3933(this[_0x10b05a(0x18a)][_0x10b05a(0x1d7)],_0x10b05a(0x185)):_0x2d6929[_0x10b05a(0x1b5)]?_0xa3933(this[_0x10b05a(0x18a)][_0x10b05a(0x1d7)],_0x10b05a(0x197)):_0xa3933(this[_0x10b05a(0x18a)][_0x10b05a(0x1d7)],_0x10b05a(0x14d)):'';}[_0x1aef1a(0x196)](_0x17a6d7){const _0x39361a=_0x1aef1a;return _0x17a6d7?_0x17a6d7[_0x39361a(0x1ae)]&&_0x17a6d7[_0x39361a(0x1b5)]?_0xa3933(this[_0x39361a(0x18a)][_0x39361a(0x1d7)],_0x39361a(0x154)):_0x17a6d7[_0x39361a(0x1ae)]?_0xa3933(this[_0x39361a(0x18a)][_0x39361a(0x1d7)],_0x39361a(0x1be)):_0x17a6d7[_0x39361a(0x1b5)]?_0xa3933(this[_0x39361a(0x18a)][_0x39361a(0x1d7)],_0x39361a(0x145)):_0xa3933(this[_0x39361a(0x18a)][_0x39361a(0x1d7)],_0x39361a(0x170)):_0xa3933(this[_0x39361a(0x18a)][_0x39361a(0x1d7)],_0x39361a(0x170));}[_0x1aef1a(0x175)](_0xcfdd5b,_0x138381,_0x4d1126,_0x4bdc58){const _0x387ade=_0x1aef1a;this[_0x387ade(0x19b)][_0x387ade(0x175)](_0xcfdd5b,_0x138381,_0x4d1126,_0x4bdc58);}[_0x1aef1a(0x17f)](_0x32ff47){const _0xb492e8=_0x1aef1a;this[_0xb492e8(0x19b)][_0xb492e8(0x17f)](_0x32ff47);}[_0x1aef1a(0x1c4)](){const _0x1ca629=_0x1aef1a;this[_0x1ca629(0x19b)][_0x1ca629(0x180)][_0x1ca629(0x1c4)]();}[_0x1aef1a(0x136)](_0x5b0b3f,_0x6a6e30){const _0x30f291=_0x1aef1a;this[_0x30f291(0x19b)][_0x30f291(0x151)][_0x30f291(0x186)](_0x5b0b3f,_0x6a6e30);}[_0x1aef1a(0x174)](){const _0x48352c=_0x1aef1a;this[_0x48352c(0x19b)][_0x48352c(0x151)][_0x48352c(0x174)]();}[_0x1aef1a(0x1b4)](){const _0x57e715=_0x1aef1a;this[_0x57e715(0x19b)][_0x57e715(0x180)][_0x57e715(0x147)]=!0x0;}[_0x1aef1a(0x1ca)](){const _0x2d7778=_0x1aef1a;this[_0x2d7778(0x19b)][_0x2d7778(0x180)][_0x2d7778(0x147)]=!0x1;}}
|