@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  15. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  22. package/src/aiballoon/aiballoon.js +1 -1
  23. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  24. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  25. package/src/aiballoon/ui/aiballoonview.js +1 -1
  26. package/src/aichat/aichat.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/model/aichatmodels.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichat/utils/scrollmanager.js +1 -1
  60. package/src/aichathistory/aichathistory.js +1 -1
  61. package/src/aichathistory/aichathistorycontroller.js +1 -1
  62. package/src/aichathistory/aichathistoryui.js +1 -1
  63. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  64. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  65. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentposition.js +1 -1
  85. package/src/aicore/utils/documentrange.js +1 -1
  86. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  87. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  88. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  89. package/src/aicore/utils/htmlparser.js +1 -1
  90. package/src/aicore/utils/htmlstreamer.js +1 -1
  91. package/src/aieditorintegration/aieditorintegration.js +1 -1
  92. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  94. package/src/aiquickactions/aiquickactions.js +1 -1
  95. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  96. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  97. package/src/aiquickactions/aiquickactionsui.js +1 -1
  98. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  101. package/src/aireviewmode/aireviewmode.js +1 -1
  102. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  103. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  104. package/src/aireviewmode/aireviewmodeui.js +1 -1
  105. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  106. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  107. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  108. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  117. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  118. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  119. package/src/aitabs/aitabs.js +1 -1
  120. package/src/aitabs/tabs/aitabsview.js +1 -1
  121. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  122. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xae2f93=_0xd680;function _0xd680(_0x1726e3,_0x19a15e){const _0x39440c=_0x3944();return _0xd680=function(_0xd6807,_0x3e189a){_0xd6807=_0xd6807-0x171;let _0x164169=_0x39440c[_0xd6807];return _0x164169;},_0xd680(_0x1726e3,_0x19a15e);}(function(_0x401e59,_0x526e88){const _0x38f932=_0xd680,_0x21577e=_0x401e59();while(!![]){try{const _0x3895d0=parseInt(_0x38f932(0x19e))/0x1+parseInt(_0x38f932(0x177))/0x2*(-parseInt(_0x38f932(0x194))/0x3)+parseInt(_0x38f932(0x181))/0x4*(parseInt(_0x38f932(0x189))/0x5)+-parseInt(_0x38f932(0x19a))/0x6+-parseInt(_0x38f932(0x196))/0x7*(-parseInt(_0x38f932(0x18d))/0x8)+-parseInt(_0x38f932(0x172))/0x9*(-parseInt(_0x38f932(0x171))/0xa)+-parseInt(_0x38f932(0x18c))/0xb*(parseInt(_0x38f932(0x190))/0xc);if(_0x3895d0===_0x526e88)break;else _0x21577e['push'](_0x21577e['shift']());}catch(_0xa7b4e3){_0x21577e['push'](_0x21577e['shift']());}}}(_0x3944,0x91a95));import{Command as _0x4e51c4}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2c8a8d}from'../aiassistantui.js';function _0x3944(){const _0x5f4111=['refresh','966607FLWjfL','100rngibs','255321eJgGFc','showUI','model','name','change:isEnabled','138rfCBfT','_hasContext','isEnabled','from','getFirstRange','ai.assistant.disabledElements','change:_hasContext','custom','set','getSelectedBlocks','1616RTBIJT','includes','getItems','plugins','hasContent','selection','element','requiresContent','2155jWXhkg','enabledCommandsIds','config','11FfTGtq','6126784OrVWxd','execute','isEmpty','9107244fIxBBU','values','add','get','14769ATzKjx','_commandDefinitions','7HfyKjP','document','getRanges','length','2970096SnujNx','isCollapsed','editor'];_0x3944=function(){return _0x5f4111;};return _0x3944();}export class ShowAIAssistantCommand extends _0x4e51c4{[_0xae2f93(0x195)];constructor(_0x434563,_0x42b193){const _0x1336bd=_0xae2f93;super(_0x434563),this[_0x1336bd(0x195)]=_0x42b193,this[_0x1336bd(0x17f)](_0x1336bd(0x18a),[]),this['on'](_0x1336bd(0x17d),(_0x3a110f,_0xa32fbe,_0x163580)=>{const _0xce57b9=_0x1336bd;this[_0xce57b9(0x179)]&&(this[_0xce57b9(0x18a)]=ns(this[_0xce57b9(0x195)],_0x163580));}),this[_0x1336bd(0x17f)](_0x1336bd(0x178),!0x1),this['on'](_0x1336bd(0x176),(_0xa95c0,_0x1a0d27,_0x1a18ac)=>{const _0x3fa903=_0x1336bd;this[_0x3fa903(0x18a)]=_0x1a18ac?ns(this[_0x3fa903(0x195)],this[_0x3fa903(0x178)]):[];});}[_0xae2f93(0x19d)](){const _0x1942da=_0xae2f93,_0x1d6ea4=this[_0x1942da(0x19c)][_0x1942da(0x174)];this[_0x1942da(0x178)]=function(_0x529a65){const _0x329c19=_0x1942da,_0x220d8c=_0x529a65[_0x329c19(0x197)][_0x329c19(0x186)];return _0x220d8c[_0x329c19(0x19b)]?0x0!==[..._0x220d8c[_0x329c19(0x180)]()][_0x329c19(0x199)]&&![..._0x220d8c[_0x329c19(0x180)]()][0x0][_0x329c19(0x18f)]:!!_0x529a65[_0x329c19(0x185)](_0x220d8c[_0x329c19(0x17b)]());}(_0x1d6ea4);const _0x48dddd=_0x1d6ea4[_0x1942da(0x197)][_0x1942da(0x186)],_0x49bec=this[_0x1942da(0x19c)][_0x1942da(0x18b)][_0x1942da(0x193)](_0x1942da(0x17c));for(const _0x2c5f75 of _0x48dddd[_0x1942da(0x198)]())for(const _0x46eeac of _0x2c5f75[_0x1942da(0x183)]())if(_0x46eeac['is'](_0x1942da(0x187))&&_0x49bec[_0x1942da(0x182)](_0x46eeac[_0x1942da(0x175)]))return void(this[_0x1942da(0x179)]=!0x1);this[_0x1942da(0x179)]=!0x0;}[_0xae2f93(0x18e)](_0x3ab914='',_0x35f2db='',_0x1a7bff=_0xae2f93(0x17e)){const _0x2be808=_0xae2f93;this[_0x2be808(0x19c)][_0x2be808(0x184)][_0x2be808(0x193)](_0x2c8a8d)[_0x2be808(0x173)](_0x3ab914,_0x35f2db,_0x1a7bff);}}function ns(_0x3e46fb,_0x5265c4){const _0x2003a3=_0xae2f93,_0x868273=new Set();for(const _0x325b10 of _0x3e46fb[_0x2003a3(0x191)]())(_0x5265c4||!0x1===_0x325b10[_0x2003a3(0x188)])&&_0x868273[_0x2003a3(0x192)](_0x325b10['id']);return Array[_0x2003a3(0x17a)](_0x868273);}
23
+ const _0xc44153=_0xb910;function _0xb910(_0x974d31,_0x45b02f){const _0x2f1eca=_0x2f1e();return _0xb910=function(_0xb910bb,_0x495fb1){_0xb910bb=_0xb910bb-0x190;let _0x514571=_0x2f1eca[_0xb910bb];return _0x514571;},_0xb910(_0x974d31,_0x45b02f);}(function(_0x388744,_0x3cb6cb){const _0x345410=_0xb910,_0x2113c2=_0x388744();while(!![]){try{const _0x4d7834=-parseInt(_0x345410(0x1a6))/0x1+-parseInt(_0x345410(0x1b6))/0x2+-parseInt(_0x345410(0x198))/0x3*(parseInt(_0x345410(0x1ad))/0x4)+parseInt(_0x345410(0x19e))/0x5*(parseInt(_0x345410(0x19f))/0x6)+parseInt(_0x345410(0x193))/0x7*(parseInt(_0x345410(0x19a))/0x8)+parseInt(_0x345410(0x1a1))/0x9*(parseInt(_0x345410(0x1a7))/0xa)+parseInt(_0x345410(0x1a2))/0xb*(parseInt(_0x345410(0x192))/0xc);if(_0x4d7834===_0x3cb6cb)break;else _0x2113c2['push'](_0x2113c2['shift']());}catch(_0x9994b4){_0x2113c2['push'](_0x2113c2['shift']());}}}(_0x2f1e,0x73606));import{Command as _0x33cf11}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x27ed1c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x33cf11{[_0xc44153(0x1bb)];constructor(_0x57f060,_0xdd833c){const _0x40a802=_0xc44153;super(_0x57f060),this[_0x40a802(0x1bb)]=_0xdd833c,this[_0x40a802(0x194)](_0x40a802(0x1a4),[]),this['on'](_0x40a802(0x1a0),(_0x4d7d42,_0x28daab,_0x43cf0a)=>{const _0x14b4f7=_0x40a802;this[_0x14b4f7(0x1ba)]&&(this[_0x14b4f7(0x1a4)]=ns(this[_0x14b4f7(0x1bb)],_0x43cf0a));}),this[_0x40a802(0x194)](_0x40a802(0x190),!0x1),this['on'](_0x40a802(0x1b4),(_0x1cac1b,_0x43a6ff,_0x45832e)=>{const _0x1298be=_0x40a802;this[_0x1298be(0x1a4)]=_0x45832e?ns(this[_0x1298be(0x1bb)],this[_0x1298be(0x190)]):[];});}[_0xc44153(0x191)](){const _0x1a0041=_0xc44153,_0x54fe96=this[_0x1a0041(0x1b7)][_0x1a0041(0x1b3)];this[_0x1a0041(0x190)]=function(_0x1ed1d2){const _0x4ade50=_0x1a0041,_0x2e2191=_0x1ed1d2[_0x4ade50(0x1bd)][_0x4ade50(0x1ae)];return _0x2e2191[_0x4ade50(0x1a5)]?0x0!==[..._0x2e2191[_0x4ade50(0x19c)]()][_0x4ade50(0x1a3)]&&![..._0x2e2191[_0x4ade50(0x19c)]()][0x0][_0x4ade50(0x1b2)]:!!_0x1ed1d2[_0x4ade50(0x19b)](_0x2e2191[_0x4ade50(0x1ab)]());}(_0x54fe96);const _0x1cebd2=_0x54fe96[_0x1a0041(0x1bd)][_0x1a0041(0x1ae)],_0x528d29=this[_0x1a0041(0x1b7)][_0x1a0041(0x1bc)][_0x1a0041(0x196)](_0x1a0041(0x1a8));for(const _0xb4c84f of _0x1cebd2[_0x1a0041(0x197)]())for(const _0xe11fd8 of _0xb4c84f[_0x1a0041(0x1b8)]())if(_0xe11fd8['is'](_0x1a0041(0x1b1))&&_0x528d29[_0x1a0041(0x1a9)](_0xe11fd8[_0x1a0041(0x1b0)]))return void(this[_0x1a0041(0x1ba)]=!0x1);this[_0x1a0041(0x1ba)]=!0x0;}[_0xc44153(0x195)](_0x3be505='',_0x39d610='',_0x305638=_0xc44153(0x19d)){const _0x4bfbf3=_0xc44153;this[_0x4bfbf3(0x1b7)][_0x4bfbf3(0x199)][_0x4bfbf3(0x196)](_0x27ed1c)[_0x4bfbf3(0x1b9)](_0x3be505,_0x39d610,_0x305638);}}function _0x2f1e(){const _0x4b64bf=['getFirstRange','add','1067716PtnlmY','selection','requiresContent','name','element','isEmpty','model','change:isEnabled','from','1444816HktzOp','editor','getItems','showUI','isEnabled','_commandDefinitions','config','document','_hasContext','refresh','468564PdPGJw','2425801CoBfAP','set','execute','get','getRanges','9AUzsWF','plugins','8AQTeSL','hasContent','getSelectedBlocks','custom','190WzRQUk','100266PNjmiV','change:_hasContext','5071824YlGCmt','385zcUIuP','length','enabledCommandsIds','isCollapsed','915965HIGbdJ','10jMwRNj','ai.assistant.disabledElements','includes','values'];_0x2f1e=function(){return _0x4b64bf;};return _0x2f1e();}function ns(_0x10da67,_0x48c3e1){const _0x227669=_0xc44153,_0x12fcb9=new Set();for(const _0x59dded of _0x10da67[_0x227669(0x1aa)]())(_0x48c3e1||!0x1===_0x59dded[_0x227669(0x1af)])&&_0x12fcb9[_0x227669(0x1ac)](_0x59dded['id']);return Array[_0x227669(0x1b5)](_0x12fcb9);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x506009=_0x133b;(function(_0x495a25,_0x55e78b){const _0x2087c5=_0x133b,_0xf5ee1=_0x495a25();while(!![]){try{const _0x577a22=parseInt(_0x2087c5(0xc9))/0x1*(parseInt(_0x2087c5(0xb4))/0x2)+parseInt(_0x2087c5(0xcc))/0x3*(-parseInt(_0x2087c5(0xd5))/0x4)+parseInt(_0x2087c5(0xa1))/0x5+parseInt(_0x2087c5(0xb6))/0x6+parseInt(_0x2087c5(0x99))/0x7+-parseInt(_0x2087c5(0xd7))/0x8+parseInt(_0x2087c5(0xa0))/0x9*(-parseInt(_0x2087c5(0xbf))/0xa);if(_0x577a22===_0x55e78b)break;else _0xf5ee1['push'](_0xf5ee1['shift']());}catch(_0x35422a){_0xf5ee1['push'](_0xf5ee1['shift']());}}}(_0x35a0,0x22a11));import{ContextPlugin as _0x3b5846}from'ckeditor5/src/core.js';import{AIConnector as _0x2d8062}from'../aicore/aiconnector.js';import{AIEditing as _0x854368}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2f4f12,AIBalloonView as _0xae4e0b}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x228ddc}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x5bb570}from'../aicore/utils/geteditorfromcontext.js';function _0x133b(_0xca0f51,_0xb19880){const _0x35a0e4=_0x35a0();return _0x133b=function(_0x133b06,_0x252610){_0x133b06=_0x133b06-0x98;let _0x2c31ab=_0x35a0e4[_0x133b06];return _0x2c31ab;},_0x133b(_0xca0f51,_0xb19880);}function _0x35a0(){const _0xea8cf9=['pluginName','_config','length','ai.availableReplyActions','_calculateOptimalTopPosition','fire','524324wiVaQZ','innerHeight','1007704ckcgUt','_setupVisualSelection','ai-balloon-','delegate','model','requires','1421182zDjiBq','AIEditing','close','getMarkersGroup','value','locale','isOpen','63zcckMK','1264505doJPom','isOfficialPlugin','dialogClosed','ai-selection','editing','aiBalloon','ai-balloon','title','showRotator','_calculateDialogPosition','bind','config','isPremiumPlugin','showFakeVisualSelection','height','AIBalloon','context','isTrackChangesOn','ai-balloon-selection','2SFFRrA','get','163044fqKCbc','left','commands','getBoundingClientRect','\x20ai-balloon-rotator','top','plugins','ranges','setupRotator','195410OWArev','width','balloonView','Dialog','open','hide','show','hideFakeVisualSelection','index','trackChanges','52571edZryi','markers','round','3VbhJNS','_showDialog','icon'];_0x35a0=function(){return _0xea8cf9;};return _0x35a0();}import{ACTIONS as _0xb6711d}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2f4f12,_0x506009(0xa3)];export class AIBalloon extends _0x3b5846{static get[_0x506009(0x98)](){return[_0x2d8062,_0x854368];}static get[_0x506009(0xcf)](){const _0x45d754=_0x506009;return _0x45d754(0xb0);}static get[_0x506009(0xa2)](){return!0x0;}static get[_0x506009(0xad)](){return!0x0;}[_0x506009(0x9f)]=!0x1;[_0x506009(0xd0)];[_0x506009(0xc3)](_0xd61acf){const _0x5ee484=_0x506009,_0x3ddeb5=_0x5bb570(this[_0x5ee484(0xb1)]);this[_0x5ee484(0xd0)]=_0xd61acf;const _0x95ee10=this[_0x5ee484(0xb1)][_0x5ee484(0xac)][_0x5ee484(0xb5)](_0x5ee484(0xd2))||[..._0xb6711d],_0x28e64c=_0x3ddeb5?.[_0x5ee484(0xb8)][_0x5ee484(0xb5)](_0x5ee484(0xc8)),_0x21c778=_0x28e64c?.[_0x5ee484(0x9d)];this[_0x5ee484(0xc1)]=new _0xae4e0b(_0x3ddeb5[_0x5ee484(0x9e)],_0xd61acf,_0x95ee10,!!_0x21c778),this[_0x5ee484(0xc1)][_0x5ee484(0xda)](..._0x2f4f12)['to'](this),_0x28e64c&&this[_0x5ee484(0xc1)][_0x5ee484(0xab)](_0x5ee484(0xb2))['to'](_0x28e64c,_0x5ee484(0x9d)),this[_0x5ee484(0xcd)](_0xd61acf);}[_0x506009(0x9b)](){const _0x4690ec=_0x506009;_0x5bb570(this[_0x4690ec(0xb1)])[_0x4690ec(0xbc)][_0x4690ec(0xb5)](_0x4690ec(0xc2))[_0x4690ec(0xc4)]();}[_0x506009(0xd8)](_0xf0c1f7,_0x412b28){const _0x5a9d62=_0x506009;this[_0x5a9d62(0xb1)][_0x5a9d62(0xbc)][_0x5a9d62(0xb5)](_0x854368)[_0x5a9d62(0xae)](_0xf0c1f7,_0x5a9d62(0xd9)+_0x412b28,!0x0,!0x0);}[_0x506009(0xcd)](_0x5b2d31){const _0x45a914=_0x506009,_0x3aa72c=_0x5bb570(this[_0x45a914(0xb1)]);this[_0x45a914(0xd8)](_0x5b2d31[_0x45a914(0xbd)],_0x5b2d31[_0x45a914(0xc7)]),_0x3aa72c[_0x45a914(0xbc)][_0x45a914(0xb5)](_0x45a914(0xc2))[_0x45a914(0xc5)]({'title':_0x5b2d31[_0x45a914(0xa8)],'icon':_0x5b2d31[_0x45a914(0xce)],'hasCloseButton':!0x0,'id':_0x45a914(0xa6),'position':this[_0x45a914(0xaa)][_0x45a914(0xab)](this),'className':_0x45a914(0xa7)+(_0x5b2d31[_0x45a914(0xa9)]?_0x45a914(0xba):''),'content':this[_0x45a914(0xc1)],'onShow':_0x2dbb12=>{const _0x2c089f=_0x45a914;_0x5b2d31[_0x2c089f(0xa9)]&&this[_0x2c089f(0xc1)][_0x2c089f(0xbe)](_0x2dbb12),this[_0x2c089f(0x9f)]=!0x0;},'onHide':()=>{const _0x30427b=_0x45a914;this[_0x30427b(0xb1)][_0x30427b(0xbc)][_0x30427b(0xb5)](_0x30427b(0x9a))[_0x30427b(0xc6)](_0x30427b(0xd9)+_0x5b2d31[_0x30427b(0xc7)]),this[_0x30427b(0xd4)](_0x30427b(0xa3)),this[_0x30427b(0x9f)]=!0x1;}});}[_0x506009(0xaa)](_0x4396c8,_0x1397c4){const _0x2507ae=_0x506009,_0x2238d6=_0x5bb570(this[_0x2507ae(0xb1)]);if(!_0x1397c4)return null;const _0x4a8239=_0x228ddc(_0x2238d6[_0x2507ae(0xa5)],[..._0x2238d6[_0x2507ae(0xdb)][_0x2507ae(0xca)][_0x2507ae(0x9c)](_0x2507ae(0xa4)),..._0x2238d6[_0x2507ae(0xdb)][_0x2507ae(0xca)][_0x2507ae(0x9c)](_0x2507ae(0xb3))]);if(!_0x4a8239||0x0===_0x4a8239[_0x2507ae(0xd1)])return{'left':Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xb7)]+_0x1397c4[_0x2507ae(0xc0)]/0x2-_0x4396c8[_0x2507ae(0xc0)]/0x2),'top':Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xbb)]+_0x1397c4[_0x2507ae(0xaf)]/0x2-_0x4396c8[_0x2507ae(0xaf)]/0x2)};const _0x485b3e=Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xb7)]+_0x1397c4[_0x2507ae(0xc0)]/0x2-_0x4396c8[_0x2507ae(0xc0)]/0x2),_0x285a1e=_0x4a8239[0x0][_0x2507ae(0xb9)](),_0x58ad85=_0x4a8239[_0x4a8239[_0x2507ae(0xd1)]-0x1][_0x2507ae(0xb9)](),_0x2d8198=_0x4396c8[_0x2507ae(0xaf)],_0x46ec10=this[_0x2507ae(0xd0)][_0x2507ae(0xa9)]?0x8:0x0;return{'left':_0x485b3e,'top':this[_0x2507ae(0xd3)](_0x285a1e,_0x58ad85,_0x2d8198,_0x46ec10)};}[_0x506009(0xd3)](_0xbcde69,_0x2868f0,_0x5f074c,_0x3d1f8c=0x0){const _0x547f64=_0x506009,_0x2ce4ec=_0x2868f0[_0x547f64(0xbb)]+_0x2868f0[_0x547f64(0xaf)],_0x519dfb=_0xbcde69[_0x547f64(0xbb)]-_0x5f074c-_0x3d1f8c,_0x549208=window[_0x547f64(0xd6)]-_0x2ce4ec-0xa,_0x12faba=_0xbcde69[_0x547f64(0xbb)]-_0x3d1f8c-0xa;let _0x3fe19d;if(_0x549208>=_0x5f074c)_0x3fe19d=_0x2ce4ec+0xa;else{if(_0x12faba>=_0x5f074c)_0x3fe19d=_0x519dfb-0xa;else _0x3fe19d=_0xbcde69[_0x547f64(0xbb)]+(_0x2868f0[_0x547f64(0xbb)]+_0x2868f0[_0x547f64(0xaf)])/0x2-(_0x5f074c+_0x3d1f8c)/0x2;}return _0x3fe19d;}}
23
+ const _0x425afe=_0x24dc;(function(_0x4b40ec,_0x220452){const _0x1165db=_0x24dc,_0x4ec043=_0x4b40ec();while(!![]){try{const _0x1a5bb2=-parseInt(_0x1165db(0xb9))/0x1+parseInt(_0x1165db(0xcb))/0x2*(-parseInt(_0x1165db(0xa7))/0x3)+parseInt(_0x1165db(0xaf))/0x4+-parseInt(_0x1165db(0xa1))/0x5+parseInt(_0x1165db(0xa0))/0x6+parseInt(_0x1165db(0xd4))/0x7+parseInt(_0x1165db(0xa5))/0x8;if(_0x1a5bb2===_0x220452)break;else _0x4ec043['push'](_0x4ec043['shift']());}catch(_0x4c87ba){_0x4ec043['push'](_0x4ec043['shift']());}}}(_0xadfc,0xb97d7));import{ContextPlugin as _0x56be98}from'ckeditor5/src/core.js';import{AIConnector as _0x5be4e6}from'../aicore/aiconnector.js';import{AIEditing as _0x5894df}from'../aicore/aiediting.js';function _0xadfc(){const _0x528eb7=['index','icon','2nbVNqJ','open','get','model','length','showRotator','fire','pluginName','_showDialog','6842563KiHlsS','top','isOfficialPlugin','Dialog','requires','hide','show','plugins','\x20ai-balloon-rotator','getBoundingClientRect','getMarkersGroup','commands','left','_calculateOptimalTopPosition','878274CcFxQl','140975hkNnXL','dialogClosed','ai-selection','width','3655360bstzEd','aiBalloon','4352619WrglOd','close','isTrackChangesOn','locale','bind','_config','height','value','5224332StRbwk','AIEditing','_setupVisualSelection','isPremiumPlugin','ranges','AIBalloon','hideFakeVisualSelection','round','isOpen','ai-balloon-selection','648056ybstZY','context','config','ai-balloon-','setupRotator','editing','markers','balloonView','ai.availableReplyActions','_calculateDialogPosition','ai-balloon','trackChanges','innerHeight','showFakeVisualSelection','delegate','title'];_0xadfc=function(){return _0x528eb7;};return _0xadfc();}function _0x24dc(_0x57f674,_0x439f56){const _0xadfc37=_0xadfc();return _0x24dc=function(_0x24dcf0,_0x49e095){_0x24dcf0=_0x24dcf0-0x9e;let _0x1955ec=_0xadfc37[_0x24dcf0];return _0x1955ec;},_0x24dc(_0x57f674,_0x439f56);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfbdde7,AIBalloonView as _0x2166f0}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0xa18fff}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x415d71}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x1ba587}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfbdde7,_0x425afe(0xa2)];export class AIBalloon extends _0x56be98{static get[_0x425afe(0xd8)](){return[_0x5be4e6,_0x5894df];}static get[_0x425afe(0xd2)](){const _0x57bb37=_0x425afe;return _0x57bb37(0xb4);}static get[_0x425afe(0xd6)](){return!0x0;}static get[_0x425afe(0xb2)](){return!0x0;}[_0x425afe(0xb7)]=!0x1;[_0x425afe(0xac)];[_0x425afe(0xcc)](_0x14e077){const _0x3cc451=_0x425afe,_0x43bf31=_0x415d71(this[_0x3cc451(0xba)]);this[_0x3cc451(0xac)]=_0x14e077;const _0x2264ee=this[_0x3cc451(0xba)][_0x3cc451(0xbb)][_0x3cc451(0xcd)](_0x3cc451(0xc1))||[..._0x1ba587],_0x52d512=_0x43bf31?.[_0x3cc451(0xdf)][_0x3cc451(0xcd)](_0x3cc451(0xc4)),_0x45d876=_0x52d512?.[_0x3cc451(0xae)];this[_0x3cc451(0xc0)]=new _0x2166f0(_0x43bf31[_0x3cc451(0xaa)],_0x14e077,_0x2264ee,!!_0x45d876),this[_0x3cc451(0xc0)][_0x3cc451(0xc7)](..._0xfbdde7)['to'](this),_0x52d512&&this[_0x3cc451(0xc0)][_0x3cc451(0xab)](_0x3cc451(0xa9))['to'](_0x52d512,_0x3cc451(0xae)),this[_0x3cc451(0xd3)](_0x14e077);}[_0x425afe(0xa8)](){const _0x113d69=_0x425afe;_0x415d71(this[_0x113d69(0xba)])[_0x113d69(0xdb)][_0x113d69(0xcd)](_0x113d69(0xd7))[_0x113d69(0xd9)]();}[_0x425afe(0xb1)](_0x5f1b63,_0x33bb5f){const _0x2eff00=_0x425afe;this[_0x2eff00(0xba)][_0x2eff00(0xdb)][_0x2eff00(0xcd)](_0x5894df)[_0x2eff00(0xc6)](_0x5f1b63,_0x2eff00(0xbc)+_0x33bb5f,!0x0,!0x0);}[_0x425afe(0xd3)](_0x500959){const _0x1474dc=_0x425afe,_0x27208b=_0x415d71(this[_0x1474dc(0xba)]);this[_0x1474dc(0xb1)](_0x500959[_0x1474dc(0xb3)],_0x500959[_0x1474dc(0xc9)]),_0x27208b[_0x1474dc(0xdb)][_0x1474dc(0xcd)](_0x1474dc(0xd7))[_0x1474dc(0xda)]({'title':_0x500959[_0x1474dc(0xc8)],'icon':_0x500959[_0x1474dc(0xca)],'hasCloseButton':!0x0,'id':_0x1474dc(0xa6),'position':this[_0x1474dc(0xc2)][_0x1474dc(0xab)](this),'className':_0x1474dc(0xc3)+(_0x500959[_0x1474dc(0xd0)]?_0x1474dc(0xdc):''),'content':this[_0x1474dc(0xc0)],'onShow':_0x42c6e0=>{const _0x48bff7=_0x1474dc;_0x500959[_0x48bff7(0xd0)]&&this[_0x48bff7(0xc0)][_0x48bff7(0xbd)](_0x42c6e0),this[_0x48bff7(0xb7)]=!0x0;},'onHide':()=>{const _0x44670f=_0x1474dc;this[_0x44670f(0xba)][_0x44670f(0xdb)][_0x44670f(0xcd)](_0x44670f(0xb0))[_0x44670f(0xb5)](_0x44670f(0xbc)+_0x500959[_0x44670f(0xc9)]),this[_0x44670f(0xd1)](_0x44670f(0xa2)),this[_0x44670f(0xb7)]=!0x1;}});}[_0x425afe(0xc2)](_0x2f8022,_0x4985cd){const _0x4adf34=_0x425afe,_0x164f25=_0x415d71(this[_0x4adf34(0xba)]);if(!_0x4985cd)return null;const _0x5b4aae=_0xa18fff(_0x164f25[_0x4adf34(0xbe)],[..._0x164f25[_0x4adf34(0xce)][_0x4adf34(0xbf)][_0x4adf34(0xde)](_0x4adf34(0xa3)),..._0x164f25[_0x4adf34(0xce)][_0x4adf34(0xbf)][_0x4adf34(0xde)](_0x4adf34(0xb8))]);if(!_0x5b4aae||0x0===_0x5b4aae[_0x4adf34(0xcf)])return{'left':Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0x9e)]+_0x4985cd[_0x4adf34(0xa4)]/0x2-_0x2f8022[_0x4adf34(0xa4)]/0x2),'top':Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0xd5)]+_0x4985cd[_0x4adf34(0xad)]/0x2-_0x2f8022[_0x4adf34(0xad)]/0x2)};const _0xef0e49=Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0x9e)]+_0x4985cd[_0x4adf34(0xa4)]/0x2-_0x2f8022[_0x4adf34(0xa4)]/0x2),_0x133307=_0x5b4aae[0x0][_0x4adf34(0xdd)](),_0x1a12e1=_0x5b4aae[_0x5b4aae[_0x4adf34(0xcf)]-0x1][_0x4adf34(0xdd)](),_0xe650e8=_0x2f8022[_0x4adf34(0xad)],_0xb00a1e=this[_0x4adf34(0xac)][_0x4adf34(0xd0)]?0x8:0x0;return{'left':_0xef0e49,'top':this[_0x4adf34(0x9f)](_0x133307,_0x1a12e1,_0xe650e8,_0xb00a1e)};}[_0x425afe(0x9f)](_0x55523a,_0x2bdc6c,_0x13c9f9,_0x3dce8=0x0){const _0x120282=_0x425afe,_0xc0e88=_0x2bdc6c[_0x120282(0xd5)]+_0x2bdc6c[_0x120282(0xad)],_0x5f4210=_0x55523a[_0x120282(0xd5)]-_0x13c9f9-_0x3dce8,_0x4ec8cf=window[_0x120282(0xc5)]-_0xc0e88-0xa,_0x4180a6=_0x55523a[_0x120282(0xd5)]-_0x3dce8-0xa;let _0x59ad65;if(_0x4ec8cf>=_0x13c9f9)_0x59ad65=_0xc0e88+0xa;else{if(_0x4180a6>=_0x13c9f9)_0x59ad65=_0x5f4210-0xa;else _0x59ad65=_0x55523a[_0x120282(0xd5)]+(_0x2bdc6c[_0x120282(0xd5)]+_0x2bdc6c[_0x120282(0xad)])/0x2-(_0x13c9f9+_0x3dce8)/0x2;}return _0x59ad65;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xe356c4,_0xd8cd03){var _0x2f11ee=_0x2689,_0x11c669=_0xe356c4();while(!![]){try{var _0x428519=parseInt(_0x2f11ee(0x1b0))/0x1*(parseInt(_0x2f11ee(0x1b8))/0x2)+-parseInt(_0x2f11ee(0x1af))/0x3+-parseInt(_0x2f11ee(0x1ac))/0x4*(-parseInt(_0x2f11ee(0x1ab))/0x5)+parseInt(_0x2f11ee(0x1b5))/0x6*(-parseInt(_0x2f11ee(0x1b3))/0x7)+parseInt(_0x2f11ee(0x1ae))/0x8*(-parseInt(_0x2f11ee(0x1a8))/0x9)+-parseInt(_0x2f11ee(0x1aa))/0xa+-parseInt(_0x2f11ee(0x1b6))/0xb*(-parseInt(_0x2f11ee(0x1b2))/0xc);if(_0x428519===_0xd8cd03)break;else _0x11c669['push'](_0x11c669['shift']());}catch(_0x4f0d17){_0x11c669['push'](_0x11c669['shift']());}}}(_0x44b5,0xeb489));function _0x2689(_0x5b6734,_0x45eaaa){var _0x44b58d=_0x44b5();return _0x2689=function(_0x26894d,_0x194e04){_0x26894d=_0x26894d-0x1a8;var _0x47cab7=_0x44b58d[_0x26894d];return _0x47cab7;},_0x2689(_0x5b6734,_0x45eaaa);}function _0x44b5(){var _0x24326e=['ck-ai-balloon__disclaimer-content','65292xIhdmf','7FqAcBR','setTemplate','8156514sbHKIh','8239egDdPD','div','8vFpTDN','2531097BHNYHG','ck-ai-balloon__disclaimer','13123510bqxLSU','82445xvJtUg','244fEIzDf','AI_DISCLAIMER_TEXT','32aWqbfM','2029137jPmqlU','88916GWzSAp'];_0x44b5=function(){return _0x24326e;};return _0x44b5();}import{View as _0x123346}from'ckeditor5/src/ui.js';import{getTranslation as _0xe2de31}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x123346{constructor(_0x2c316d){var _0x5cc937=_0x2689;super(_0x2c316d),this[_0x5cc937(0x1b4)]({'tag':_0x5cc937(0x1b7),'attributes':{'class':['ck',_0x5cc937(0x1a9)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5cc937(0x1b1)]},'children':[{'text':_0xe2de31(_0x2c316d,_0x5cc937(0x1ad))}]}]});}}
23
+ function _0x4bf8(_0xf2af6c,_0x4e43e3){var _0xd1c768=_0xd1c7();return _0x4bf8=function(_0x4bf848,_0x288403){_0x4bf848=_0x4bf848-0xe5;var _0x3e62cf=_0xd1c768[_0x4bf848];return _0x3e62cf;},_0x4bf8(_0xf2af6c,_0x4e43e3);}(function(_0x116de9,_0x3157a0){var _0x3ae1b9=_0x4bf8,_0x2dc085=_0x116de9();while(!![]){try{var _0x52906a=parseInt(_0x3ae1b9(0xec))/0x1*(parseInt(_0x3ae1b9(0xf0))/0x2)+parseInt(_0x3ae1b9(0xe7))/0x3*(-parseInt(_0x3ae1b9(0xed))/0x4)+-parseInt(_0x3ae1b9(0xe9))/0x5+-parseInt(_0x3ae1b9(0xef))/0x6+-parseInt(_0x3ae1b9(0xe6))/0x7*(parseInt(_0x3ae1b9(0xf3))/0x8)+-parseInt(_0x3ae1b9(0xe5))/0x9+parseInt(_0x3ae1b9(0xea))/0xa;if(_0x52906a===_0x3157a0)break;else _0x2dc085['push'](_0x2dc085['shift']());}catch(_0x59698f){_0x2dc085['push'](_0x2dc085['shift']());}}}(_0xd1c7,0xc4d37));function _0xd1c7(){var _0x369ad9=['8eadeLr','ck-ai-balloon__disclaimer-content','8012154LeMHVd','2sGMTCi','div','ck-ai-balloon__disclaimer','8pprosP','5071734yqBoEa','10150091IQIrNY','1347wPmgWI','setTemplate','6248865MDmdrl','48047990AljBkX','AI_DISCLAIMER_TEXT','600969nqffDM'];_0xd1c7=function(){return _0x369ad9;};return _0xd1c7();}import{View as _0x201ab9}from'ckeditor5/src/ui.js';import{getTranslation as _0x20156e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x201ab9{constructor(_0x41641d){var _0x855286=_0x4bf8;super(_0x41641d),this[_0x855286(0xe8)]({'tag':_0x855286(0xf1),'attributes':{'class':['ck',_0x855286(0xf2)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x855286(0xee)]},'children':[{'text':_0x20156e(_0x41641d,_0x855286(0xeb))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x6edd(){const _0x1cc7b5=['ck-ai-button-secondary','1838802ryWnYC','isEnabled','1147917kAFqOS','865314rVZzuK','AI_BALLOON_SUGGEST_BUTTON','_createButton','1725988wVfvYj','isLoading','ck-ai-balloon__toolbar','set','suggestButton','AI_BALLOON_APPLY_BUTTON','211VgjOiQ','items','1314NbnyJU','locale','applyButton','bind','add','687415EXeuBv','ck-ai-button-primary','extendTemplate','213912YcMPpD'];_0x6edd=function(){return _0x1cc7b5;};return _0x6edd();}const _0x55c66d=_0x39ec;(function(_0x3e24e9,_0x298593){const _0x31ca4e=_0x39ec,_0x3e0ee9=_0x3e24e9();while(!![]){try{const _0x2f899b=-parseInt(_0x31ca4e(0x19b))/0x1*(-parseInt(_0x31ca4e(0x19d))/0x2)+-parseInt(_0x31ca4e(0x1a9))/0x3+parseInt(_0x31ca4e(0x1ad))/0x4+parseInt(_0x31ca4e(0x1a2))/0x5+parseInt(_0x31ca4e(0x1aa))/0x6+-parseInt(_0x31ca4e(0x1a7))/0x7+parseInt(_0x31ca4e(0x1a5))/0x8;if(_0x2f899b===_0x298593)break;else _0x3e0ee9['push'](_0x3e0ee9['shift']());}catch(_0x59b480){_0x3e0ee9['push'](_0x3e0ee9['shift']());}}}(_0x6edd,0x38f18));import{ToolbarView as _0x8a3d1,ButtonView as _0x3b37ce}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e2633}from'../../aicore/utils/common-translations.js';function _0x39ec(_0x5ec863,_0x44f1d6){const _0x6edd79=_0x6edd();return _0x39ec=function(_0x39ec64,_0x21af3a){_0x39ec64=_0x39ec64-0x197;let _0x5ca08d=_0x6edd79[_0x39ec64];return _0x5ca08d;},_0x39ec(_0x5ec863,_0x44f1d6);}export class AIBalloonToolbarView extends _0x8a3d1{constructor(_0xd169d8,_0x51831d=!0x0,_0x55d88a=!0x0){const _0x39cd02=_0x39ec;super(_0xd169d8),this[_0x39cd02(0x198)](_0x39cd02(0x1ae),!0x1),_0x51831d&&(this[_0x39cd02(0x19f)]=this[_0x39cd02(0x1ac)](_0x5e2633(_0xd169d8,_0x39cd02(0x19a)),_0x39cd02(0x1a3)),this[_0x39cd02(0x19f)][_0x39cd02(0x1a0)](_0x39cd02(0x1a8))['to'](this,_0x39cd02(0x1ae),_0x15f70f=>!_0x15f70f),this[_0x39cd02(0x19c)][_0x39cd02(0x1a1)](this[_0x39cd02(0x19f)])),_0x55d88a&&(this[_0x39cd02(0x199)]=this[_0x39cd02(0x1ac)](_0x5e2633(_0xd169d8,_0x39cd02(0x1ab)),_0x51831d?_0x39cd02(0x1a6):_0x39cd02(0x1a3)),this[_0x39cd02(0x199)][_0x39cd02(0x1a0)](_0x39cd02(0x1a8))['to'](this,_0x39cd02(0x1ae),_0x267c4a=>!_0x267c4a),this[_0x39cd02(0x19c)][_0x39cd02(0x1a1)](this[_0x39cd02(0x199)])),this[_0x39cd02(0x1a4)]({'attributes':{'class':[_0x39cd02(0x197)]}});}[_0x55c66d(0x1ac)](_0x54fc74,_0xb437ee){const _0x83b7dc=_0x55c66d,_0x4f5f63=new _0x3b37ce(this[_0x83b7dc(0x19e)]);return _0x4f5f63[_0x83b7dc(0x198)]({'label':_0x54fc74,'class':_0xb437ee||'','isVisible':!0x0,'withText':!0x0}),_0x4f5f63;}}
23
+ const _0x12f4bd=_0x1cf2;(function(_0x22414d,_0x41f369){const _0x1c97cd=_0x1cf2,_0x568ca6=_0x22414d();while(!![]){try{const _0x434e35=parseInt(_0x1c97cd(0x148))/0x1+-parseInt(_0x1c97cd(0x15a))/0x2*(-parseInt(_0x1c97cd(0x158))/0x3)+-parseInt(_0x1c97cd(0x153))/0x4+parseInt(_0x1c97cd(0x14b))/0x5*(parseInt(_0x1c97cd(0x161))/0x6)+parseInt(_0x1c97cd(0x15d))/0x7*(-parseInt(_0x1c97cd(0x14d))/0x8)+-parseInt(_0x1c97cd(0x149))/0x9+parseInt(_0x1c97cd(0x15b))/0xa;if(_0x434e35===_0x41f369)break;else _0x568ca6['push'](_0x568ca6['shift']());}catch(_0x2a07cf){_0x568ca6['push'](_0x568ca6['shift']());}}}(_0x4f62,0x2928a));import{ToolbarView as _0x3268b6,ButtonView as _0x385ae6}from'ckeditor5/src/ui.js';import{getTranslation as _0x4fbd84}from'../../aicore/utils/common-translations.js';function _0x4f62(){const _0x316db6=['set','8560GEfRPK','extendTemplate','8LqeRSm','add','_createButton','ck-ai-balloon__toolbar','applyButton','suggestButton','123052khbTMz','items','locale','isEnabled','ck-ai-button-secondary','87IpjglD','AI_BALLOON_APPLY_BUTTON','550zNIAmA','784180CgtHPC','isLoading','393659vrdPZS','ck-ai-button-primary','AI_BALLOON_SUGGEST_BUTTON','bind','894kxpxCh','139756MmUSuV','2030859zyZnro'];_0x4f62=function(){return _0x316db6;};return _0x4f62();}function _0x1cf2(_0x13a7b7,_0x1029a6){const _0x4f62c1=_0x4f62();return _0x1cf2=function(_0x1cf2be,_0x55cbb8){_0x1cf2be=_0x1cf2be-0x148;let _0x3b6578=_0x4f62c1[_0x1cf2be];return _0x3b6578;},_0x1cf2(_0x13a7b7,_0x1029a6);}export class AIBalloonToolbarView extends _0x3268b6{constructor(_0x5be119,_0x46a7e0=!0x0,_0x5e910b=!0x0){const _0x344b98=_0x1cf2;super(_0x5be119),this[_0x344b98(0x14a)](_0x344b98(0x15c),!0x1),_0x46a7e0&&(this[_0x344b98(0x151)]=this[_0x344b98(0x14f)](_0x4fbd84(_0x5be119,_0x344b98(0x159)),_0x344b98(0x15e)),this[_0x344b98(0x151)][_0x344b98(0x160)](_0x344b98(0x156))['to'](this,_0x344b98(0x15c),_0x9434f4=>!_0x9434f4),this[_0x344b98(0x154)][_0x344b98(0x14e)](this[_0x344b98(0x151)])),_0x5e910b&&(this[_0x344b98(0x152)]=this[_0x344b98(0x14f)](_0x4fbd84(_0x5be119,_0x344b98(0x15f)),_0x46a7e0?_0x344b98(0x157):_0x344b98(0x15e)),this[_0x344b98(0x152)][_0x344b98(0x160)](_0x344b98(0x156))['to'](this,_0x344b98(0x15c),_0x4b213=>!_0x4b213),this[_0x344b98(0x154)][_0x344b98(0x14e)](this[_0x344b98(0x152)])),this[_0x344b98(0x14c)]({'attributes':{'class':[_0x344b98(0x150)]}});}[_0x12f4bd(0x14f)](_0xc673c5,_0x57db7d){const _0x366f97=_0x12f4bd,_0x2dd4a6=new _0x385ae6(this[_0x366f97(0x155)]);return _0x2dd4a6[_0x366f97(0x14a)]({'label':_0xc673c5,'class':_0x57db7d||'','isVisible':!0x0,'withText':!0x0}),_0x2dd4a6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2190f9=_0x3547;(function(_0x356e33,_0x1c8782){const _0x583e0b=_0x3547,_0x14eff7=_0x356e33();while(!![]){try{const _0xdab924=-parseInt(_0x583e0b(0x171))/0x1+parseInt(_0x583e0b(0x14a))/0x2+-parseInt(_0x583e0b(0x150))/0x3+parseInt(_0x583e0b(0x167))/0x4+parseInt(_0x583e0b(0x16a))/0x5+-parseInt(_0x583e0b(0x177))/0x6*(-parseInt(_0x583e0b(0x14f))/0x7)+-parseInt(_0x583e0b(0x17c))/0x8*(parseInt(_0x583e0b(0x168))/0x9);if(_0xdab924===_0x1c8782)break;else _0x14eff7['push'](_0x14eff7['shift']());}catch(_0x365a67){_0x14eff7['push'](_0x14eff7['shift']());}}}(_0xd2a3,0x4e5ad));function _0xd2a3(){const _0x801243=['251112DWizEq','children','set','focusCycler','focusTracker','91aatURT','587274UbTVll','view','AI_BALLOON_NEXT_TOOLTIP','setTemplate','focusLast','showApplyButton','mainView','locale','headerView','element','showSuggestButton','addMany','listenTo','ai-balloon-content','_createNextButtonView','_addDisclaimerView','showPrevious','_dialogContent','createCollection','fire','bind','clearLoading','tab','943868KwRSZJ','63vfmVIR','isTrackChangesOn','2356160crkivB','keystrokes','add','AI_BALLOON_PREVIOUS_TOOLTIP','_createPreviousButtonView','applySuggestion','toolbar','277330vZVNXZ','_mainView','_focusables','disclaimerView','change:isTrackChangesOn','setLoading','117696eLFpiR','suggestButton','setupRotator','focusFirst','remove','335696FTrsYb','insertSuggestion','_addContentView','_dropdownConfig','includes','isLoading','clear','focus','applyButton','showNext','render','shift\x20+\x20tab','div','execute','_addToolbar'];_0xd2a3=function(){return _0x801243;};return _0xd2a3();}import{ButtonView as _0x24e733,View as _0x274d32,ViewCollection as _0x7ab7c6,FocusCycler as _0x28d1fa}from'ckeditor5/src/ui.js';import{FocusTracker as _0x48051e,KeystrokeHandler as _0x4fb8cc}from'ckeditor5/src/utils.js';function _0x3547(_0x37997b,_0x1c0c4a){const _0xd2a3a6=_0xd2a3();return _0x3547=function(_0x3547b3,_0x5ebaf7){_0x3547b3=_0x3547b3-0x13d;let _0x37c880=_0xd2a3a6[_0x3547b3];return _0x37c880;},_0x3547(_0x37997b,_0x1c0c4a);}import{IconNextArrow as _0x1f209e,IconPreviousArrow as _0x190ede}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x3405da}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5dfd9c}from'./aiballoondisclaimerview.js';import{getTranslation as _0x59a1b8}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2190f9(0x16f),_0x2190f9(0x17d),_0x2190f9(0x144),_0x2190f9(0x160)];export class AIBalloonView extends _0x274d32{[_0x2190f9(0x14e)];[_0x2190f9(0x16b)];[_0x2190f9(0x14d)];[_0x2190f9(0x13e)];[_0x2190f9(0x173)];constructor(_0x41e797,_0x3367c8,_0x4b2caf,_0xe7f6e3){const _0x62761a=_0x2190f9;super(_0x41e797),this[_0x62761a(0x13e)]=_0x4b2caf,this[_0x62761a(0x14c)](_0x62761a(0x140),!0x1),this[_0x62761a(0x14c)](_0x62761a(0x169),_0xe7f6e3),this[_0x62761a(0x14e)]=new _0x48051e(),this[_0x62761a(0x16b)]=new _0x4fb8cc(),this[_0x62761a(0x173)]=this[_0x62761a(0x162)](),this[_0x62761a(0x14d)]=new _0x28d1fa({'focusables':this[_0x62761a(0x173)],'focusTracker':this[_0x62761a(0x14e)],'keystrokeHandler':this[_0x62761a(0x16b)],'actions':{'focusPrevious':_0x62761a(0x146),'focusNext':_0x62761a(0x166)}}),this[_0x62761a(0x161)]=new _0x7ab7c6(),this[_0x62761a(0x13d)](_0x3367c8[_0x62761a(0x156)]),this[_0x62761a(0x15f)](),this[_0x62761a(0x149)](_0x3367c8[_0x62761a(0x155)],_0x3367c8[_0x62761a(0x15a)]),this[_0x62761a(0x170)][_0x62761a(0x164)](_0x62761a(0x140))['to'](this),this[_0x62761a(0x173)][_0x62761a(0x141)](),this[_0x62761a(0x173)][_0x62761a(0x15b)]([this[_0x62761a(0x170)]]),this[_0x62761a(0x153)]({'tag':_0x62761a(0x147),'attributes':{'class':_0x62761a(0x15d)},'children':this[_0x62761a(0x161)]}),this[_0x62761a(0x15c)](this,_0x62761a(0x175),()=>{const _0x23c0dd=_0x62761a;this[_0x23c0dd(0x161)][_0x23c0dd(0x17b)](this[_0x23c0dd(0x170)]),this[_0x23c0dd(0x149)](_0x3367c8[_0x23c0dd(0x155)],_0x3367c8[_0x23c0dd(0x15a)]);});}[_0x2190f9(0x145)](){const _0x1af26e=_0x2190f9;super[_0x1af26e(0x145)]();for(const _0x4c10b0 of this[_0x1af26e(0x173)])this[_0x1af26e(0x14e)][_0x1af26e(0x16c)](_0x4c10b0[_0x1af26e(0x159)]);this[_0x1af26e(0x16b)][_0x1af26e(0x15c)](this[_0x1af26e(0x159)]);}[_0x2190f9(0x142)](_0x51bac3){const _0x382dec=_0x2190f9;-0x1===_0x51bac3?this[_0x382dec(0x14d)][_0x382dec(0x154)]():this[_0x382dec(0x14d)][_0x382dec(0x17a)]();}[_0x2190f9(0x176)](){const _0x51ae78=_0x2190f9;this[_0x51ae78(0x140)]=!0x0;}[_0x2190f9(0x165)](){const _0x3c3df9=_0x2190f9;this[_0x3c3df9(0x140)]=!0x1;}[_0x2190f9(0x179)](_0x25684c){const _0x140105=_0x2190f9,_0x3c5447=this[_0x140105(0x15e)](),_0x31dcca=this[_0x140105(0x16e)]();_0x25684c[_0x140105(0x151)][_0x140105(0x158)][_0x140105(0x14b)][_0x140105(0x16c)](_0x3c5447,0x2),_0x25684c[_0x140105(0x151)][_0x140105(0x158)][_0x140105(0x14b)][_0x140105(0x16c)](_0x31dcca,0x0),this[_0x140105(0x173)][_0x140105(0x15b)]([_0x3c5447,_0x31dcca]),this[_0x140105(0x14e)][_0x140105(0x16c)](_0x3c5447[_0x140105(0x159)]),this[_0x140105(0x14e)][_0x140105(0x16c)](_0x31dcca[_0x140105(0x159)]);}[_0x2190f9(0x13d)](_0xb944ee){const _0xcda4b5=_0x2190f9;this[_0xcda4b5(0x172)]=_0xb944ee,this[_0xcda4b5(0x161)][_0xcda4b5(0x16c)](this[_0xcda4b5(0x172)]);}[_0x2190f9(0x15f)](){const _0x1494d9=_0x2190f9;this[_0x1494d9(0x174)]=new _0x5dfd9c(this[_0x1494d9(0x157)]),this[_0x1494d9(0x161)][_0x1494d9(0x16c)](this[_0x1494d9(0x174)]);}[_0x2190f9(0x149)](_0x594102=!0x0,_0xcdeea9=!0x0){const _0x166a64=_0x2190f9;_0x594102=_0x594102&&!this[_0x166a64(0x169)]&&this[_0x166a64(0x13e)][_0x166a64(0x13f)](_0x166a64(0x16f)),_0xcdeea9=_0xcdeea9&&this[_0x166a64(0x13e)][_0x166a64(0x13f)](_0x166a64(0x17d)),this[_0x166a64(0x170)]=new _0x3405da(this[_0x166a64(0x157)],_0x594102,_0xcdeea9),this[_0x166a64(0x170)][_0x166a64(0x143)]?.['on'](_0x166a64(0x148),()=>{const _0x58ab14=_0x166a64;this[_0x58ab14(0x163)](_0x58ab14(0x16f));}),this[_0x166a64(0x170)][_0x166a64(0x178)]?.['on'](_0x166a64(0x148),()=>{const _0x376c7f=_0x166a64;this[_0x376c7f(0x163)](_0x376c7f(0x17d));}),this[_0x166a64(0x161)][_0x166a64(0x16c)](this[_0x166a64(0x170)]);}[_0x2190f9(0x15e)](){const _0x5bed64=_0x2190f9,_0xa4906e=new _0x24e733(this[_0x5bed64(0x157)]);return _0xa4906e[_0x5bed64(0x14c)]({'icon':_0x1f209e,'tooltip':_0x59a1b8(this[_0x5bed64(0x157)],_0x5bed64(0x152))}),_0xa4906e['on'](_0x5bed64(0x148),()=>{const _0x1293fb=_0x5bed64;this[_0x1293fb(0x163)](_0x1293fb(0x144));}),_0xa4906e;}[_0x2190f9(0x16e)](){const _0x5b204e=_0x2190f9,_0xfda692=new _0x24e733(this[_0x5b204e(0x157)]);return _0xfda692[_0x5b204e(0x14c)]({'icon':_0x190ede,'tooltip':_0x59a1b8(this[_0x5b204e(0x157)],_0x5b204e(0x16d))}),_0xfda692['on'](_0x5b204e(0x148),()=>{const _0x14cb39=_0x5b204e;this[_0x14cb39(0x163)](_0x14cb39(0x160));}),_0xfda692;}}
23
+ const _0x2d2658=_0x2d24;function _0x4a27(){const _0x27eede=['createCollection','_addToolbar','disclaimerView','listenTo','addMany','focus','div','_focusables','setLoading','2BnNmhP','toolbar','suggestButton','includes','applyButton','_addContentView','isLoading','_createNextButtonView','insertSuggestion','1702672kEDzCu','focusLast','children','applySuggestion','487392CGzuNi','5416726ynPUxN','set','shift\x20+\x20tab','15218199WquosI','clearLoading','change:isTrackChangesOn','_dropdownConfig','view','372780Kmgeid','headerView','showNext','setTemplate','AI_BALLOON_NEXT_TOOLTIP','showSuggestButton','showPrevious','setupRotator','clear','tab','showApplyButton','583900hpTlRK','focusTracker','_createPreviousButtonView','_mainView','isTrackChangesOn','_dialogContent','remove','focusFirst','5HjuMJU','_addDisclaimerView','execute','add','render','focusCycler','ai-balloon-content','fire','element','locale','113914jdZjAW','bind','AI_BALLOON_PREVIOUS_TOOLTIP','mainView','keystrokes'];_0x4a27=function(){return _0x27eede;};return _0x4a27();}(function(_0x1e9986,_0x422708){const _0x45e2cc=_0x2d24,_0x283a25=_0x1e9986();while(!![]){try{const _0x3599b6=-parseInt(_0x45e2cc(0xa3))/0x1*(parseInt(_0x45e2cc(0xb1))/0x2)+-parseInt(_0x45e2cc(0xc7))/0x3+-parseInt(_0x45e2cc(0xd2))/0x4*(parseInt(_0x45e2cc(0x99))/0x5)+parseInt(_0x45e2cc(0xbe))/0x6+-parseInt(_0x45e2cc(0xbf))/0x7+-parseInt(_0x45e2cc(0xba))/0x8+parseInt(_0x45e2cc(0xc2))/0x9;if(_0x3599b6===_0x422708)break;else _0x283a25['push'](_0x283a25['shift']());}catch(_0x56b6ed){_0x283a25['push'](_0x283a25['shift']());}}}(_0x4a27,0x61fbe));import{ButtonView as _0x292a7b,View as _0x2adb83,ViewCollection as _0x25e067,FocusCycler as _0x2e7d89}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1a251b,KeystrokeHandler as _0x36f943}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2a77b7,IconPreviousArrow as _0x385981}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x375ff7}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x50be0e}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4ee114}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2d2658(0xbd),_0x2d2658(0xb9),_0x2d2658(0xc9),_0x2d2658(0xcd)];function _0x2d24(_0xcdd022,_0x81cd9e){const _0x4a2783=_0x4a27();return _0x2d24=function(_0x2d2460,_0x382ed8){_0x2d2460=_0x2d2460-0x95;let _0x5f5d3a=_0x4a2783[_0x2d2460];return _0x5f5d3a;},_0x2d24(_0xcdd022,_0x81cd9e);}export class AIBalloonView extends _0x2adb83{[_0x2d2658(0xd3)];[_0x2d2658(0xa7)];[_0x2d2658(0x9e)];[_0x2d2658(0xc5)];[_0x2d2658(0xaf)];constructor(_0x420aaa,_0x1dcc12,_0x2eae0a,_0x1e9a26){const _0x1e368c=_0x2d2658;super(_0x420aaa),this[_0x1e368c(0xc5)]=_0x2eae0a,this[_0x1e368c(0xc0)](_0x1e368c(0xb7),!0x1),this[_0x1e368c(0xc0)](_0x1e368c(0x95),_0x1e9a26),this[_0x1e368c(0xd3)]=new _0x1a251b(),this[_0x1e368c(0xa7)]=new _0x36f943(),this[_0x1e368c(0xaf)]=this[_0x1e368c(0xa8)](),this[_0x1e368c(0x9e)]=new _0x2e7d89({'focusables':this[_0x1e368c(0xaf)],'focusTracker':this[_0x1e368c(0xd3)],'keystrokeHandler':this[_0x1e368c(0xa7)],'actions':{'focusPrevious':_0x1e368c(0xc1),'focusNext':_0x1e368c(0xd0)}}),this[_0x1e368c(0x96)]=new _0x25e067(),this[_0x1e368c(0xb6)](_0x1dcc12[_0x1e368c(0xa6)]),this[_0x1e368c(0x9a)](),this[_0x1e368c(0xa9)](_0x1dcc12[_0x1e368c(0xd1)],_0x1dcc12[_0x1e368c(0xcc)]),this[_0x1e368c(0xb2)][_0x1e368c(0xa4)](_0x1e368c(0xb7))['to'](this),this[_0x1e368c(0xaf)][_0x1e368c(0xcf)](),this[_0x1e368c(0xaf)][_0x1e368c(0xac)]([this[_0x1e368c(0xb2)]]),this[_0x1e368c(0xca)]({'tag':_0x1e368c(0xae),'attributes':{'class':_0x1e368c(0x9f)},'children':this[_0x1e368c(0x96)]}),this[_0x1e368c(0xab)](this,_0x1e368c(0xc4),()=>{const _0x1acf81=_0x1e368c;this[_0x1acf81(0x96)][_0x1acf81(0x97)](this[_0x1acf81(0xb2)]),this[_0x1acf81(0xa9)](_0x1dcc12[_0x1acf81(0xd1)],_0x1dcc12[_0x1acf81(0xcc)]);});}[_0x2d2658(0x9d)](){const _0x444c64=_0x2d2658;super[_0x444c64(0x9d)]();for(const _0x34bc5a of this[_0x444c64(0xaf)])this[_0x444c64(0xd3)][_0x444c64(0x9c)](_0x34bc5a[_0x444c64(0xa1)]);this[_0x444c64(0xa7)][_0x444c64(0xab)](this[_0x444c64(0xa1)]);}[_0x2d2658(0xad)](_0x262956){const _0x8794a1=_0x2d2658;-0x1===_0x262956?this[_0x8794a1(0x9e)][_0x8794a1(0xbb)]():this[_0x8794a1(0x9e)][_0x8794a1(0x98)]();}[_0x2d2658(0xb0)](){const _0x28f8a2=_0x2d2658;this[_0x28f8a2(0xb7)]=!0x0;}[_0x2d2658(0xc3)](){const _0x56911b=_0x2d2658;this[_0x56911b(0xb7)]=!0x1;}[_0x2d2658(0xce)](_0x3e71fb){const _0x32de0a=_0x2d2658,_0x1f45d8=this[_0x32de0a(0xb8)](),_0xa9b381=this[_0x32de0a(0xd4)]();_0x3e71fb[_0x32de0a(0xc6)][_0x32de0a(0xc8)][_0x32de0a(0xbc)][_0x32de0a(0x9c)](_0x1f45d8,0x2),_0x3e71fb[_0x32de0a(0xc6)][_0x32de0a(0xc8)][_0x32de0a(0xbc)][_0x32de0a(0x9c)](_0xa9b381,0x0),this[_0x32de0a(0xaf)][_0x32de0a(0xac)]([_0x1f45d8,_0xa9b381]),this[_0x32de0a(0xd3)][_0x32de0a(0x9c)](_0x1f45d8[_0x32de0a(0xa1)]),this[_0x32de0a(0xd3)][_0x32de0a(0x9c)](_0xa9b381[_0x32de0a(0xa1)]);}[_0x2d2658(0xb6)](_0x11b86b){const _0x525a46=_0x2d2658;this[_0x525a46(0xd5)]=_0x11b86b,this[_0x525a46(0x96)][_0x525a46(0x9c)](this[_0x525a46(0xd5)]);}[_0x2d2658(0x9a)](){const _0x5c7fd6=_0x2d2658;this[_0x5c7fd6(0xaa)]=new _0x50be0e(this[_0x5c7fd6(0xa2)]),this[_0x5c7fd6(0x96)][_0x5c7fd6(0x9c)](this[_0x5c7fd6(0xaa)]);}[_0x2d2658(0xa9)](_0x5154ac=!0x0,_0x3502a9=!0x0){const _0x14949e=_0x2d2658;_0x5154ac=_0x5154ac&&!this[_0x14949e(0x95)]&&this[_0x14949e(0xc5)][_0x14949e(0xb4)](_0x14949e(0xbd)),_0x3502a9=_0x3502a9&&this[_0x14949e(0xc5)][_0x14949e(0xb4)](_0x14949e(0xb9)),this[_0x14949e(0xb2)]=new _0x375ff7(this[_0x14949e(0xa2)],_0x5154ac,_0x3502a9),this[_0x14949e(0xb2)][_0x14949e(0xb5)]?.['on'](_0x14949e(0x9b),()=>{const _0x495104=_0x14949e;this[_0x495104(0xa0)](_0x495104(0xbd));}),this[_0x14949e(0xb2)][_0x14949e(0xb3)]?.['on'](_0x14949e(0x9b),()=>{const _0x3cdc27=_0x14949e;this[_0x3cdc27(0xa0)](_0x3cdc27(0xb9));}),this[_0x14949e(0x96)][_0x14949e(0x9c)](this[_0x14949e(0xb2)]);}[_0x2d2658(0xb8)](){const _0x454092=_0x2d2658,_0x25fcc0=new _0x292a7b(this[_0x454092(0xa2)]);return _0x25fcc0[_0x454092(0xc0)]({'icon':_0x2a77b7,'tooltip':_0x4ee114(this[_0x454092(0xa2)],_0x454092(0xcb))}),_0x25fcc0['on'](_0x454092(0x9b),()=>{const _0xa216f0=_0x454092;this[_0xa216f0(0xa0)](_0xa216f0(0xc9));}),_0x25fcc0;}[_0x2d2658(0xd4)](){const _0x557796=_0x2d2658,_0x5aecdb=new _0x292a7b(this[_0x557796(0xa2)]);return _0x5aecdb[_0x557796(0xc0)]({'icon':_0x385981,'tooltip':_0x4ee114(this[_0x557796(0xa2)],_0x557796(0xa5))}),_0x5aecdb['on'](_0x557796(0x9b),()=>{const _0xfb6700=_0x557796;this[_0xfb6700(0xa0)](_0xfb6700(0xcd));}),_0x5aecdb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x595dfb=_0x3b02;(function(_0x12ee00,_0x5480c8){var _0x540595=_0x3b02,_0x7acac8=_0x12ee00();while(!![]){try{var _0x579d3b=parseInt(_0x540595(0x1e9))/0x1*(parseInt(_0x540595(0x1d6))/0x2)+parseInt(_0x540595(0x1ee))/0x3+-parseInt(_0x540595(0x1dd))/0x4+-parseInt(_0x540595(0x1de))/0x5*(-parseInt(_0x540595(0x1e2))/0x6)+-parseInt(_0x540595(0x1e0))/0x7+parseInt(_0x540595(0x1e7))/0x8*(-parseInt(_0x540595(0x1dc))/0x9)+-parseInt(_0x540595(0x1d7))/0xa*(-parseInt(_0x540595(0x1eb))/0xb);if(_0x579d3b===_0x5480c8)break;else _0x7acac8['push'](_0x7acac8['shift']());}catch(_0x15a7dd){_0x7acac8['push'](_0x7acac8['shift']());}}}(_0x46c3,0xc0c73));import{ContextPlugin as _0x431a9a}from'ckeditor5/src/core.js';import{AIChatController as _0x14a58c}from'./aichatcontroller.js';import{AIEditing as _0x3b59f8}from'../aicore/aiediting.js';function _0x46c3(){var _0x507148=['config','pluginName','isOfficialPlugin','5719576fxVqql','sendMessage','352666necqdT','requires','7571927bVGQlx','define','AIChat','667470msxzMS','isPremiumPlugin','removeSelectionFromChatContext','get','6puYKoS','30Ckfkbh','startConversation','plugins','addSelectionToChatContext','ai.chat.models','9gOVtdD','4011312ZAUjLv','6865SLrMBz','ai.chat.context','10268993dhXtXH','focusPromptInput','2748TZpfaj','context'];_0x46c3=function(){return _0x507148;};return _0x46c3();}import{AIChatUI as _0x5e9a00}from'./aichatui.js';import{AIChatHistory as _0x248be0}from'../aichathistory/aichathistory.js';function _0x3b02(_0x560d1a,_0x1677e6){var _0x46c3b4=_0x46c3();return _0x3b02=function(_0x3b0249,_0x4a7d2e){_0x3b0249=_0x3b0249-0x1d3;var _0x26cc2a=_0x46c3b4[_0x3b0249];return _0x26cc2a;},_0x3b02(_0x560d1a,_0x1677e6);}export class AIChat extends _0x431a9a{static get[_0x595dfb(0x1ea)](){return[_0x14a58c,_0x3b59f8,_0x5e9a00,_0x248be0];}static get[_0x595dfb(0x1e5)](){var _0x5a72ba=_0x595dfb;return _0x5a72ba(0x1ed);}static get[_0x595dfb(0x1e6)](){return!0x0;}static get[_0x595dfb(0x1d3)](){return!0x0;}constructor(_0x222ba1){var _0x36b51b=_0x595dfb;super(_0x222ba1),this[_0x36b51b(0x1e3)][_0x36b51b(0x1e4)][_0x36b51b(0x1ec)](_0x36b51b(0x1df),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x36b51b(0x1e3)][_0x36b51b(0x1e4)][_0x36b51b(0x1ec)](_0x36b51b(0x1db),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x595dfb(0x1da)](){var _0x37e9e9=_0x595dfb;await this[_0x37e9e9(0x1e3)][_0x37e9e9(0x1d9)][_0x37e9e9(0x1d5)](_0x14a58c)[_0x37e9e9(0x1da)]();}async[_0x595dfb(0x1d8)](){var _0x40ae54=_0x595dfb;await this[_0x40ae54(0x1e3)][_0x40ae54(0x1d9)][_0x40ae54(0x1d5)](_0x14a58c)[_0x40ae54(0x1d8)]();}async[_0x595dfb(0x1e8)]({message:_0x4afc2e,quickActionData:_0x18166d}){var _0x4de7e4=_0x595dfb;await this[_0x4de7e4(0x1e3)][_0x4de7e4(0x1d9)][_0x4de7e4(0x1d5)](_0x14a58c)[_0x4de7e4(0x1e8)]({'message':_0x4afc2e,'quickActionData':_0x18166d});}[_0x595dfb(0x1d4)](){var _0x526bdc=_0x595dfb;this[_0x526bdc(0x1e3)][_0x526bdc(0x1d9)][_0x526bdc(0x1d5)](_0x14a58c)[_0x526bdc(0x1d4)]();}[_0x595dfb(0x1e1)](){var _0x2ba164=_0x595dfb;this[_0x2ba164(0x1e3)][_0x2ba164(0x1d9)][_0x2ba164(0x1d5)](_0x14a58c)[_0x2ba164(0x1e1)]();}}
23
+ var _0x44421a=_0x4d59;(function(_0x413e1d,_0x5b6e76){var _0x56af7d=_0x4d59,_0x5dee0e=_0x413e1d();while(!![]){try{var _0x44ef18=-parseInt(_0x56af7d(0x1f2))/0x1+parseInt(_0x56af7d(0x1f0))/0x2*(parseInt(_0x56af7d(0x1f5))/0x3)+-parseInt(_0x56af7d(0x1e4))/0x4*(-parseInt(_0x56af7d(0x1ef))/0x5)+parseInt(_0x56af7d(0x1e5))/0x6*(parseInt(_0x56af7d(0x1e6))/0x7)+parseInt(_0x56af7d(0x1f6))/0x8*(parseInt(_0x56af7d(0x1eb))/0x9)+parseInt(_0x56af7d(0x1f8))/0xa*(-parseInt(_0x56af7d(0x1f4))/0xb)+-parseInt(_0x56af7d(0x1ed))/0xc;if(_0x44ef18===_0x5b6e76)break;else _0x5dee0e['push'](_0x5dee0e['shift']());}catch(_0x2192a6){_0x5dee0e['push'](_0x5dee0e['shift']());}}}(_0x28f5,0xabce8));function _0x4d59(_0x56a567,_0x51bd01){var _0x28f594=_0x28f5();return _0x4d59=function(_0x4d59e7,_0x147f54){_0x4d59e7=_0x4d59e7-0x1dc;var _0x2cf4cf=_0x28f594[_0x4d59e7];return _0x2cf4cf;},_0x4d59(_0x56a567,_0x51bd01);}import{ContextPlugin as _0x4d2ce0}from'ckeditor5/src/core.js';import{AIChatController as _0x2ba55d}from'./aichatcontroller.js';function _0x28f5(){var _0x161dab=['define','context','focusPromptInput','config','602091pyhRNZ','get','2423340cUIICG','isOfficialPlugin','90FcUwxR','2PuRKid','startConversation','763474KqmCpk','removeSelectionFromChatContext','1121230SZGKOw','3417711rdbiwK','56WtVBtN','pluginName','60peTRFz','AIChat','ai.chat.models','plugins','sendMessage','addSelectionToChatContext','ai.chat.context','isPremiumPlugin','requires','23780vwJKuY','6HvuQOs','3963253DRyIUz'];_0x28f5=function(){return _0x161dab;};return _0x28f5();}import{AIEditing as _0x152d6c}from'../aicore/aiediting.js';import{AIChatUI as _0x282ffb}from'./aichatui.js';import{AIChatHistory as _0x10d152}from'../aichathistory/aichathistory.js';export class AIChat extends _0x4d2ce0{static get[_0x44421a(0x1e3)](){return[_0x2ba55d,_0x152d6c,_0x282ffb,_0x10d152];}static get[_0x44421a(0x1f7)](){var _0x34ee4e=_0x44421a;return _0x34ee4e(0x1dc);}static get[_0x44421a(0x1ee)](){return!0x0;}static get[_0x44421a(0x1e2)](){return!0x0;}constructor(_0x281bff){var _0x16b463=_0x44421a;super(_0x281bff),this[_0x16b463(0x1e8)][_0x16b463(0x1ea)][_0x16b463(0x1e7)](_0x16b463(0x1e1),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x16b463(0x1e8)][_0x16b463(0x1ea)][_0x16b463(0x1e7)](_0x16b463(0x1dd),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x44421a(0x1e0)](){var _0x125eb6=_0x44421a;await this[_0x125eb6(0x1e8)][_0x125eb6(0x1de)][_0x125eb6(0x1ec)](_0x2ba55d)[_0x125eb6(0x1e0)]();}async[_0x44421a(0x1f1)](){var _0x3b7968=_0x44421a;await this[_0x3b7968(0x1e8)][_0x3b7968(0x1de)][_0x3b7968(0x1ec)](_0x2ba55d)[_0x3b7968(0x1f1)]();}async[_0x44421a(0x1df)]({message:_0x166017,quickActionData:_0x51eaa1}){var _0x10d60e=_0x44421a;await this[_0x10d60e(0x1e8)][_0x10d60e(0x1de)][_0x10d60e(0x1ec)](_0x2ba55d)[_0x10d60e(0x1df)]({'message':_0x166017,'quickActionData':_0x51eaa1});}[_0x44421a(0x1f3)](){var _0x5bab8d=_0x44421a;this[_0x5bab8d(0x1e8)][_0x5bab8d(0x1de)][_0x5bab8d(0x1ec)](_0x2ba55d)[_0x5bab8d(0x1f3)]();}[_0x44421a(0x1e9)](){var _0x104cbe=_0x44421a;this[_0x104cbe(0x1e8)][_0x104cbe(0x1de)][_0x104cbe(0x1ec)](_0x2ba55d)[_0x104cbe(0x1e9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x555e54=_0x1725;(function(_0x273f78,_0x120c5d){const _0x19a427=_0x1725,_0x470d9d=_0x273f78();while(!![]){try{const _0x4b285a=parseInt(_0x19a427(0x6e))/0x1+parseInt(_0x19a427(0xbd))/0x2+parseInt(_0x19a427(0xbf))/0x3*(parseInt(_0x19a427(0x181))/0x4)+-parseInt(_0x19a427(0x18b))/0x5*(-parseInt(_0x19a427(0x1a7))/0x6)+-parseInt(_0x19a427(0x169))/0x7*(parseInt(_0x19a427(0x120))/0x8)+parseInt(_0x19a427(0x91))/0x9+-parseInt(_0x19a427(0x80))/0xa;if(_0x4b285a===_0x120c5d)break;else _0x470d9d['push'](_0x470d9d['shift']());}catch(_0x2512e5){_0x470d9d['push'](_0x470d9d['shift']());}}}(_0x1a9f,0xf2f1c));import{ContextPlugin as _0x11e54c,Editor as _0xf79b2d}from'ckeditor5/src/core.js';function _0x1725(_0x5502f9,_0x68972f){const _0x1a9f2a=_0x1a9f();return _0x1725=function(_0x17254b,_0x3c43f8){_0x17254b=_0x17254b-0x6b;let _0x1992d0=_0x1a9f2a[_0x17254b];return _0x1992d0;},_0x1725(_0x5502f9,_0x68972f);}import{CKEditorError as _0x2db741,logError as _0x224fdf,scrollViewportToShowTarget as _0x3a00cc,uid as _0x1748d5}from'ckeditor5/src/utils.js';import{AIConnector as _0x23a5c2}from'../aicore/aiconnector.js';import{AITabs as _0x2efbc4}from'../aitabs/aitabs.js';import{AIChatConversation as _0x12da7f}from'./model/aichatconversation.js';import{getTranslation as _0xe1cad0}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x51d958}from'../aicore/aiediting.js';import{AIChatModels as _0x241b19}from'./model/aichatmodels.js';import{getEditorFromContext as _0x41f855}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x21cae1,DATA_ID_MODEL_ATTRIBUTE as _0x1d2c17}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x14293f}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x18ef92,getMinimalSelection as _0xa78144,getSuggestionPartsFromReply as _0x31c5f2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2f7680,_DetachOperation as _0x3d2d1f}from'ckeditor5/src/engine.js';function _0x1a9f(){const _0x596232=['20656180kGusyd','push','updateFeedItemAIReplySources','view','change','commands','startInteraction','clearConversationContextUI','AI_CHAT_GENERIC_ERROR','Undo','isDocumentOperation','_previewedChangeGroup','getChildren','changes','isCurrentDocumentInContext','text-delta','indexes','6549921nQkqvD','ai-chat-file-upload-failed','dialogClosed','sendUserMessage','isUploadInProgress','resource','stop','updateFeedItemAIReplySuggestionPartState','contextItem','focusPromptInput','setSelectedModel','isDisabled','baseVersion','sourceResourcesLoaded','root','contextSent','webSearchFinished','_createFromRanges','insertSuggestion','_applyOperationsAsSuggestions','getRanges','replies','remove','ai-chat-controller-no-active-conversation','isInContext','ai.chat.context','getAttribute','setAddContextOptions','addDocumentToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','model','maxOffset','removeMarker','config','removed','addFeedItemAIReply','sendMessage','resizedTabs','resize','removeFeedInteraction','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','replyId','reasoningStarted','upsertAIChatRating','1472620lLAcnc','contextItemAdded','36483dFphxP','replyContentUpdated','_batchToChanges','selection','documentContextContent','_openBalloonFor','enableControls','changeGroups','rejectSuggestion','ai-chat-context-invalid-data','type','updateContent','contextItems','editing','ai-chat-source-resources-load-failed','activateTab','addSelectionToChatContext','sourcePosition','$graveyard','_aiEditing','interactionStarted','AI_CHAT_ABORTED_MESSAGE','cloneNode','new','isOfficialPlugin','updateFeedItemAIReplyContent','find','replyChangeGroupStateUpdated','Showing\x20conversation\x20history...','_aiChatUi','AI_CHAT_UNTITLED_CONVERSATION','_flushLastInteractionUI','partIndex','_aiConnector','ai.chat.models.displayedModels','getGroupId','addFilesToContext','content','marker','addOperation','batch','context','mapper','disableControls','add','resourceStateChanged','ai-chat-controller-mouse-over','addFeedItemStaticMessage','handleUserInteraction','toggleSuggestionDisplayMode','indexOf','AI_BALLOON_HEADER_TITLE','AIConnector','loadConversation','load','toViewRange','history','viewRangeToDom','_updateRatings','showNext','_handleUIUserMessage','getMarkersGroup','createRange','error','getChildAtOffset','getRoot','clearPendingContextUI','unshift','path','toString','version','updateCapabilities','createPositionFromPath','isPremiumPlugin','locale','contextItemRemoved','get','interactionDestroyed','resetConversationTitle','setConversationContext','delete','rootName','addContextItem','revert','log','split','toggleReasoning','howMany','_integrateEditor','node','getTransformedByOperation','ready','dislike','capabilitiesUpdated','setChangeGroupState','data','ai-chat-resource-load-failed','573080oNmJiS','DocumentCompare','conversationInitialized','parse','addSelectionToContext','removeFromContext','resources','message','addFeedItemAISuggestion','rejected','_setIsMaximized','AIChatController','startConversation','streaming','getInteractionAndReplyById','static','closeSourceResourceBalloon','removeSelectionFromChatContext','selectModel','_toggleReasoning','ai-chat-url-upload-failed','main','removeContextItem','setContextItemLoading','showChangeInText','anchorId','getChild','setFeedItemRenderingStrategy','showPrevious','data-id','addUrlToContext','handleRemovedConversation','setModel','resizeTabs','isLoading','lastInteraction','modelSelected','scrollFeedToSuggestion','markers','addCurrentDocumentToContext','ai-request-aborted','pluginName','slice','toggleLoadingSkeleton','getDocumentContext','undo','AITabs','alignToTop','requires','afterInit','collaboration.channelId','setConversationTitle','activeConversation','accepted','_getDocumentRangeForReplyChanges','mouseLeaveSuggestion','updateFeedItemAIReplySuggestionContent','AIChatUI','toggleWebSearch','close','from','getDiff','source','ai-conversation-','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current-document','init','_showConversationHistory','showDiff','selectedModel','getOperations','TrackChangesEditing','query','91PvTCLv','pending','loadSourceResources','_handleStartConversation','_startConversationSafely','AIEditing','startsWith','state','Failed\x20to\x20load\x20conversation','interactionCreated','domConverter','createConversation','ai-chat-missing-channel-id','setLoadingMessage','replyCreated','getPath','finishInteraction','removeSelectionFromContext','getFirstRange','contextItemLoadingEnded','_updateReplyContent','full','applySuggestion','_stopLastInteraction','580EXuEGA','set','hideFakeVisualSelection','_insertSuggestion','uid','isOpen','_balloonShowDiff','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','abortPromptStream','showFakeVisualSelection','87590kaMFYi','_scrollToSuggestionRange','children','length','resetMessageInput','reasoningFinished','open','editors','applyOperation','addContextOptionsChanged','_removeFromContext','stopListening','map','options','uiId','nextSibling','start','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','filter','document','ai-chat-conversation-start-failed','stopInteraction','_aiChatModels','Liked\x20response','updateResourceState','AI_CHAT_RESOURCE_LOAD_FAILED','plugins','chat','252IEkVzf','getReply','webSearchStarted','redo','AI_CHAT_CONTEXT_INVALID_DATA','mouseOverSuggestion','Disliked\x20response','addResourceToContext','listenTo','messageId','setIsUploadInProgress','addFileToContext','ai-chat-context-unsupported-type','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateCurrentDocumentInContext','sources','outdated','isCurrentDocumentInConversation','interactionId','_toggleWebSearch','sourceId','setIsMaximized','range','getSelectionText','interactionFinished','resourceId','createPositionAt','addFeedInteractionHeader','populateSourceResourceBalloon','isStarted','28793IFFbsP','_removeAISelectionMarkers','end','modification-delta','isModelAvailable','ai-chat-conversation-init-failed','_applySuggestion','updateConversationTitle','forEach','_logError','addFeedItemUserMessage','uploadProgressChanged','getInteraction','has','ai.chat.models.defaultModelId','getDocumentData','like','addFeedItemError'];_0x1a9f=function(){return _0x596232;};return _0x1a9f();}import{findOne as _0x34ca8c,getAttribute as _0x2600da,serialize as _0x11046c,Document as _0x376fef,findByAttribute as _0x39a0ed}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2cf943}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49ed11}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x335532}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x11e54c{[_0x555e54(0xd2)];[_0x555e54(0xe0)];[_0x555e54(0xdc)];[_0x555e54(0x1a1)];[_0x555e54(0xc1)]=new Map();[_0x555e54(0x8b)]=null;[_0x555e54(0x187)]=!0x1;static get[_0x555e54(0x150)](){return[_0x23a5c2,_0x335532,_0x21cae1];}static get[_0x555e54(0x149)](){const _0x1dcf17=_0x555e54;return _0x1dcf17(0x12b);}static get[_0x555e54(0xd7)](){return!0x0;}static get[_0x555e54(0x108)](){return!0x0;}[_0x555e54(0x162)](){const _0x4c87a2=_0x555e54;this[_0x4c87a2(0xe0)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0xf3)),this[_0x4c87a2(0xdc)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x159)),this[_0x4c87a2(0xd2)]=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x16e)),this[_0x4c87a2(0x1a1)]=new _0x241b19({'connector':this[_0x4c87a2(0xe0)],'displayedModels':this[_0x4c87a2(0xe8)][_0x4c87a2(0xb2)][_0x4c87a2(0x10b)](_0x4c87a2(0xe1)),'defaultModelId':this[_0x4c87a2(0xe8)][_0x4c87a2(0xb2)][_0x4c87a2(0x10b)](_0x4c87a2(0x7c))});const _0x18b13d=this[_0x4c87a2(0xe8)][_0x4c87a2(0x1a5)][_0x4c87a2(0x10b)](_0x4c87a2(0x14e));this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x12c),()=>{const _0x363ccb=_0x4c87a2;this[_0x363ccb(0x16d)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x94),(_0x51a352,_0xbef083)=>{const _0x442ea8=_0x4c87a2;this[_0x442ea8(0xfb)]({'userMessage':_0xbef083});}),this[_0x4c87a2(0x1af)](_0x18b13d,_0x4c87a2(0xb6),(_0x4f1e51,_0x13d170)=>{const _0x2e9369=_0x4c87a2;this[_0x2e9369(0x12a)](_0x13d170);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x141),()=>{const _0x26da27=_0x4c87a2;_0x18b13d[_0x26da27(0xb7)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x189),async()=>{const _0x315327=_0x4c87a2;await this[_0x315327(0x180)](),await this[_0x315327(0xde)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xad),()=>{const _0x1b7319=_0x4c87a2;this[_0x1b7319(0x154)]?.[_0x1b7319(0x147)](_0xe1cad0(this[_0x1b7319(0xe8)][_0x1b7319(0x109)],_0x1b7319(0x160)));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1b2),(_0x2a84c1,_0x43d03a)=>{const _0x358049=_0x4c87a2;this[_0x358049(0x154)]?.[_0x358049(0xe3)](Array[_0x358049(0x15c)](_0x43d03a));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x13e),(_0x27c969,_0x584c17)=>{const _0x322120=_0x4c87a2;this[_0x322120(0x154)]?.[_0x322120(0x13e)](_0x584c17);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1ae),(_0x5f090c,_0xd607)=>{const _0x4eecbf=_0x4c87a2;this[_0x4eecbf(0x154)]?.[_0x4eecbf(0x1ae)](_0xd607[_0x4eecbf(0x15e)],_0xd607[_0x4eecbf(0x96)]);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x136),(_0xbae6d3,_0x24a58b)=>{const _0x459040=_0x4c87a2;this[_0x459040(0x195)](_0x24a58b);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x16b),(_0x2b2f33,_0x16bb13)=>{const _0x2608b3=_0x4c87a2;this[_0x2608b3(0x154)]?.[_0x2608b3(0x16b)](_0x16bb13[_0x2608b3(0x1bb)],_0x16bb13[_0x2608b3(0x168)],_0x16bb13[_0x2608b3(0x185)]);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x15a),()=>{const _0x10570c=_0x4c87a2;this[_0x10570c(0x1ba)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x115),()=>{const _0x53b8bb=_0x4c87a2;this[_0x53b8bb(0x133)]();}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x132),(_0x137f61,_0x4d9c7e)=>{const _0x3ff4f2=_0x4c87a2;this[_0x3ff4f2(0x154)]?.[_0x3ff4f2(0x140)](_0x4d9c7e);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x7e),(_0x66d5db,{replyId:_0x471cfe})=>{const _0x307b6d=_0x4c87a2;console[_0x307b6d(0x113)](_0x307b6d(0x1a2),_0x471cfe);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x11b),(_0x10d306,{replyId:_0x2e30e2})=>{const _0x5444b8=_0x4c87a2;console[_0x5444b8(0x113)](_0x5444b8(0x1ad),_0x2e30e2);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xa3),(_0x225deb,_0x3691fd)=>{const _0x2f3a8d=_0x4c87a2;this[_0x2f3a8d(0xe8)][_0x2f3a8d(0x1a5)][_0x2f3a8d(0x10b)](_0x335532)[_0x2f3a8d(0x15b)](),this[_0x2f3a8d(0x184)](_0x3691fd);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x138),(_0x14e648,{replyId:_0x660acd,partIndex:_0x3b818d})=>{const _0x12f846=_0x4c87a2;this[_0x12f846(0x187)]=this[_0x12f846(0xdc)][_0x12f846(0x164)],this[_0x12f846(0xc4)](_0x660acd,_0x3b818d);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x1ac),(_0x4fe084,{replyId:_0x1220ce,partIndex:_0x236fdb})=>{const _0x1e25ae=_0x4c87a2,_0x2910f9=this[_0x1e25ae(0x156)](_0x1220ce,_0x236fdb);_0x2910f9&&_0x1e25ae(0xd1)!=_0x2910f9[_0x1e25ae(0x1bd)][_0x1e25ae(0x9f)][_0x1e25ae(0x110)]&&this[_0x1e25ae(0xd2)][_0x1e25ae(0x18a)]([_0x2910f9[_0x1e25ae(0x1bd)]],_0x1e25ae(0xed));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x157),()=>{const _0x19d017=_0x4c87a2;this[_0x19d017(0xd2)][_0x19d017(0x183)](_0x19d017(0xed));}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0x17f),(_0x30ff11,_0x41d499)=>{const _0x14fe3b=_0x4c87a2;this[_0x14fe3b(0xe8)][_0x14fe3b(0x1a5)][_0x14fe3b(0x10b)](_0x335532)[_0x14fe3b(0x15b)](),this[_0x14fe3b(0x74)](_0x41d499);}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xf0),async(_0x47cfb5,_0x160c88)=>{const _0x56bc50=_0x4c87a2,{reply:_0x3ce8dd}=this[_0x56bc50(0x12e)](_0x160c88[_0x56bc50(0xba)]),_0x359aa0=_0x41f855(this[_0x56bc50(0xe8)]),_0x534512=_0x31c5f2({'editor':_0x359aa0,'changeGroups':_0x3ce8dd[_0x56bc50(0xc6)],'documentContextContent':_0x3ce8dd[_0x56bc50(0xc3)],'showDiff':_0x160c88[_0x56bc50(0x164)]});await this[_0x56bc50(0xdc)][_0x56bc50(0x158)]({'id':_0x3ce8dd['id'],'parts':_0x534512,'renderingStrategy':_0x56bc50(0x12f)});}),this[_0x4c87a2(0x1af)](this[_0x4c87a2(0xdc)],_0x4c87a2(0xc7),(_0x370c8e,{replyId:_0x18751e,partIndex:_0x284d12})=>{const _0xe4b96f=_0x4c87a2;this[_0xe4b96f(0x8b)]?.[_0xe4b96f(0xba)]==_0x18751e&&this[_0xe4b96f(0x8b)]?.[_0xe4b96f(0xdf)]==_0x284d12&&this[_0xe4b96f(0xe8)][_0xe4b96f(0x1a5)][_0xe4b96f(0x10b)](_0x335532)[_0xe4b96f(0x15b)]();const {reply:_0x171b34}=this[_0xe4b96f(0x12e)](_0x18751e);_0x171b34[_0xe4b96f(0x11d)](_0x284d12,_0xe4b96f(0x129)),this[_0xe4b96f(0xd2)][_0xe4b96f(0x183)](_0xe4b96f(0xed));});}async[_0x555e54(0x151)](){const _0x567f85=_0x555e54;this[_0x567f85(0xe8)]instanceof _0xf79b2d?this[_0x567f85(0x117)](this[_0x567f85(0xe8)]):this[_0x567f85(0x1af)](this[_0x567f85(0xe8)][_0x567f85(0x192)],_0x567f85(0xeb),(_0x3ca147,_0x471423)=>{const _0x14bba6=_0x567f85;_0x471423['on'](_0x14bba6(0x11a),()=>{const _0x4d8f11=_0x14bba6;this[_0x4d8f11(0x117)](_0x471423);});}),await this[_0x567f85(0x16d)]();}[_0x555e54(0x184)](_0x407fd2){const _0x504e14=_0x555e54,_0x5c236f=_0x41f855(this[_0x504e14(0xe8)]);if(!_0x5c236f[_0x504e14(0x1a5)][_0x504e14(0x7b)](_0x504e14(0x167)))return;const _0x4feea1=this[_0x504e14(0xe8)][_0x504e14(0x1a5)][_0x504e14(0x10b)](_0x504e14(0x121)),{reply:_0x53ec1b,interaction:_0x33b0c0}=this[_0x504e14(0x12e)](_0x407fd2[_0x504e14(0xba)]),_0x39c6e1=this[_0x504e14(0x156)](_0x407fd2[_0x504e14(0xba)],_0x407fd2[_0x504e14(0xdf)]),_0xd604e2=void 0x0!==_0x407fd2[_0x504e14(0xdf)]?[_0x53ec1b[_0x504e14(0xc6)][_0x407fd2[_0x504e14(0xdf)]]]:_0x53ec1b[_0x504e14(0xc6)][_0x504e14(0x19d)](_0x3be1ac=>_0x504e14(0x16a)==_0x3be1ac[_0x504e14(0x170)]),_0x3c23fa=_0xd604e2[_0x504e14(0x197)](_0x1ea450=>_0x53ec1b[_0x504e14(0xc6)][_0x504e14(0xf1)](_0x1ea450));if(!_0x39c6e1||_0x504e14(0xd1)==_0x39c6e1[_0x504e14(0x1bd)][_0x504e14(0x9f)][_0x504e14(0x110)])return void _0x3c23fa[_0x504e14(0x76)](_0x1c24f5=>_0x53ec1b[_0x504e14(0x11d)](_0x1c24f5,_0x504e14(0x1b7)));_0x3c23fa[_0x504e14(0x76)](_0x386083=>_0x53ec1b[_0x504e14(0x11d)](_0x386083,_0x504e14(0x155)));const _0x3ae98a=_0x14293f({'editor':_0x5c236f,'reply':_0x53ec1b,'interaction':_0x33b0c0,'groups':_0xd604e2,'transform':!0x0,'documentCompare':_0x4feea1,'documentCompareOptions':{'anchor':_0x504e14(0x135),'markDeletions':!0x0}});let _0x6fabc8;_0x39c6e1&&this[_0x504e14(0x18c)](_0x39c6e1[_0x504e14(0x1bd)]),_0x5c236f[_0x504e14(0xaf)][_0x504e14(0x84)](_0x46cbdf=>{const _0x278419=_0x504e14;_0x6fabc8=_0x46cbdf[_0x278419(0xe7)],_0x5c236f[_0x278419(0x1a5)][_0x278419(0x10b)](_0x278419(0x167))[_0x278419(0xa4)](_0x3ae98a),this[_0x278419(0xd2)][_0x278419(0x183)](_0x278419(0xed));}),this[_0x504e14(0xc1)][_0x504e14(0x182)](_0x6fabc8,{'interactionId':_0x33b0c0['id'],'replyId':_0x53ec1b['id'],'indexes':_0x3c23fa[_0x504e14(0x14a)]()}),this[_0x504e14(0xf9)](_0x53ec1b);}[_0x555e54(0x74)](_0x38eddb){const _0x336338=_0x555e54,_0x27e85f=_0x41f855(this[_0x336338(0xe8)]),_0x2ebde0=this[_0x336338(0xe8)][_0x336338(0x1a5)][_0x336338(0x10b)](_0x21cae1),{reply:_0xa3c543,interaction:_0xb04b65}=this[_0x336338(0x12e)](_0x38eddb[_0x336338(0xba)]),_0x3fe7df=this[_0x336338(0x156)](_0x38eddb[_0x336338(0xba)],_0x38eddb[_0x336338(0xdf)]),_0x3da6da=void 0x0!==_0x38eddb[_0x336338(0xdf)]?[_0xa3c543[_0x336338(0xc6)][_0x38eddb[_0x336338(0xdf)]]]:_0xa3c543[_0x336338(0xc6)][_0x336338(0x19d)](_0xac883=>_0x336338(0x16a)==_0xac883[_0x336338(0x170)]),_0x521f17=_0x3da6da[_0x336338(0x197)](_0x11e575=>_0xa3c543[_0x336338(0xc6)][_0x336338(0xf1)](_0x11e575));if(!_0x3fe7df||_0x336338(0xd1)==_0x3fe7df[_0x336338(0x1bd)][_0x336338(0x9f)][_0x336338(0x110)])return void _0x521f17[_0x336338(0x76)](_0x249ba4=>_0xa3c543[_0x336338(0x11d)](_0x249ba4,_0x336338(0x1b7)));_0x521f17[_0x336338(0x76)](_0x3dff7a=>_0xa3c543[_0x336338(0x11d)](_0x3dff7a,_0x336338(0x155)));const _0x351e7c=_0x14293f({'editor':_0x27e85f,'reply':_0xa3c543,'interaction':_0xb04b65,'groups':_0x3da6da,'transform':!0x0,'documentCompare':_0x2ebde0,'documentCompareOptions':{'anchor':_0x336338(0x135),'markDeletions':!0x1}});let _0x58be3e;_0x3fe7df&&this[_0x336338(0x18c)](_0x3fe7df[_0x336338(0x1bd)]),_0x27e85f[_0x336338(0xaf)][_0x336338(0x84)](_0xe27e27=>{const _0x3553c2=_0x336338;_0x58be3e=_0xe27e27[_0x3553c2(0xe7)];for(const _0xc7e438 of _0x351e7c)_0xc7e438[_0x3553c2(0x9d)]=_0x27e85f[_0x3553c2(0xaf)][_0x3553c2(0x19e)][_0x3553c2(0x105)],_0xe27e27[_0x3553c2(0xe7)][_0x3553c2(0xe6)](_0xc7e438),_0x27e85f[_0x3553c2(0xaf)][_0x3553c2(0x193)](_0xc7e438);}),this[_0x336338(0xc1)][_0x336338(0x182)](_0x58be3e,{'interactionId':_0xb04b65['id'],'replyId':_0xa3c543['id'],'indexes':_0x521f17[_0x336338(0x14a)]()}),this[_0x336338(0xf9)](_0xa3c543);}[_0x555e54(0xc4)](_0x30d0d5,_0x17dba2){const _0x44cc6c=_0x555e54,_0x38e6a8=_0x41f855(this[_0x44cc6c(0xe8)]),_0x4ae22e=this[_0x44cc6c(0x156)](_0x30d0d5,_0x17dba2),_0x4cf465=this[_0x44cc6c(0xe8)][_0x44cc6c(0x1a5)][_0x44cc6c(0x10b)](_0x335532);if(!_0x4ae22e)return void _0x4cf465[_0x44cc6c(0x15b)]();const {range:_0x4ac626,currentIndex:_0x6e1f09,previousIndex:_0x315a89,nextIndex:_0x3b44ec}=_0x4ae22e;if(_0x44cc6c(0xd1)==_0x4ac626[_0x44cc6c(0x9f)][_0x44cc6c(0x110)]){const {reply:_0x329d27}=this[_0x44cc6c(0x12e)](_0x30d0d5);return _0x329d27[_0x44cc6c(0x11d)](_0x6e1f09,_0x44cc6c(0x1b7)),void _0x4cf465[_0x44cc6c(0x15b)]();}if(this[_0x44cc6c(0x8b)]?.[_0x44cc6c(0xba)]==_0x30d0d5&&this[_0x44cc6c(0x8b)]?.[_0x44cc6c(0xdf)]==_0x6e1f09)return;this[_0x44cc6c(0x8b)]={'replyId':_0x30d0d5,'partIndex':_0x6e1f09};const _0x2bf75f=new _0x49ed11(_0x38e6a8[_0x44cc6c(0x109)],{'showDiff':this[_0x44cc6c(0x187)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x44cc6c(0x17e)},'hideHeader':!0x0}),{reply:_0x548ebf}=this[_0x44cc6c(0x12e)](_0x30d0d5),_0x288b1a=_0x31c5f2({'editor':_0x38e6a8,'changeGroups':[_0x548ebf[_0x44cc6c(0xc6)][_0x6e1f09]],'documentContextContent':_0x548ebf[_0x44cc6c(0xc3)],'showDiff':this[_0x44cc6c(0x187)]});_0x2bf75f[_0x44cc6c(0xca)]({'parts':_0x288b1a,'renderingStrategy':_0x44cc6c(0x12f)});const _0x1c6e4d=_0x6e1f09!==_0x315a89;this[_0x44cc6c(0x18c)](_0x4ac626,!0x0),_0x4cf465[_0x44cc6c(0x191)]({'index':_0x6e1f09,'title':_0xe1cad0(this[_0x44cc6c(0xe8)][_0x44cc6c(0x109)],_0x44cc6c(0xf2),(_0x6e1f09+0x1)[_0x44cc6c(0x104)]()),'icon':_0x2cf943,'mainView':_0x2bf75f,'showRotator':_0x1c6e4d,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4ac626]}),this[_0x44cc6c(0xdc)][_0x44cc6c(0x145)](_0x30d0d5,_0x6e1f09),this[_0x44cc6c(0x1af)](_0x2bf75f,_0x44cc6c(0xf0),(_0x254f13,{showDiff:_0x3ec8a6})=>{const _0x1d1670=_0x44cc6c;this[_0x1d1670(0x187)]=_0x3ec8a6;const {reply:_0x15d41e}=this[_0x1d1670(0x12e)](_0x30d0d5),_0x3ab0d4=_0x31c5f2({'editor':_0x38e6a8,'changeGroups':[_0x15d41e[_0x1d1670(0xc6)][_0x6e1f09]],'documentContextContent':_0x15d41e[_0x1d1670(0xc3)],'showDiff':_0x3ec8a6});_0x2bf75f[_0x1d1670(0xca)]({'parts':_0x3ab0d4,'renderingStrategy':_0x1d1670(0x12f)});}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x17f),()=>{const _0x4b5bd2=_0x44cc6c;this[_0x4b5bd2(0x74)]({'replyId':_0x30d0d5,'partIndex':_0x6e1f09}),_0x1c6e4d?this[_0x4b5bd2(0xc4)](_0x30d0d5,_0x3b44ec):_0x4cf465[_0x4b5bd2(0x15b)]();}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0xa3),()=>{const _0x134dd4=_0x44cc6c;this[_0x134dd4(0x184)]({'replyId':_0x30d0d5,'partIndex':_0x6e1f09}),_0x1c6e4d?this[_0x134dd4(0xc4)](_0x30d0d5,_0x3b44ec):_0x4cf465[_0x134dd4(0x15b)]();}),_0x1c6e4d&&(this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0xfa),()=>{const _0x183c13=_0x44cc6c;this[_0x183c13(0xc4)](_0x30d0d5,_0x3b44ec);}),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x13c),()=>{const _0x205ef8=_0x44cc6c;this[_0x205ef8(0xc4)](_0x30d0d5,_0x315a89);})),this[_0x44cc6c(0x1af)](_0x4cf465,_0x44cc6c(0x93),()=>{const _0x34f077=_0x44cc6c;this[_0x34f077(0x196)](_0x4cf465),this[_0x34f077(0x196)](_0x2bf75f),this[_0x34f077(0x8b)]=null;});}[_0x555e54(0x156)](_0x360233,_0x521450){const _0x47167b=_0x555e54,_0xc0d718=_0x41f855(this[_0x47167b(0xe8)]),{reply:_0x4b16e5,interaction:_0x1a9c94}=this[_0x47167b(0x12e)](_0x360233),_0x44e26c=_0x4b16e5[_0x47167b(0xc6)][_0x47167b(0x19d)](_0x588163=>_0x47167b(0x16a)==_0x588163[_0x47167b(0x170)]),_0x3c299a=_0x44e26c[_0x47167b(0x197)](_0x34b3b1=>_0x4b16e5[_0x47167b(0xc6)][_0x47167b(0xf1)](_0x34b3b1));void 0x0===_0x521450&&(_0x521450=_0x3c299a[0x0]);const _0x37d0fa=_0x3c299a[_0x47167b(0xf1)](_0x521450);if(-0x1==_0x37d0fa)return null;const _0x13b681=0x0==_0x37d0fa?_0x3c299a[_0x3c299a[_0x47167b(0x18e)]-0x1]:_0x3c299a[_0x37d0fa-0x1],_0xfda8de=_0x37d0fa==_0x3c299a[_0x47167b(0x18e)]-0x1?_0x3c299a[0x0]:_0x3c299a[_0x37d0fa+0x1],_0x2a1fe4=_0x44e26c[_0x37d0fa],_0x132e62=new _0x376fef([]),_0x7268af=new _0x376fef([]);for(const _0x18495c of _0x2a1fe4[_0x47167b(0x8d)])if(_0x47167b(0xb3)!=_0x18495c[_0x47167b(0xc9)]&&_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0x18495c[_0x47167b(0x118)][_0x47167b(0xd5)](!0x0)),_0x47167b(0xd6)!=_0x18495c[_0x47167b(0xc9)]){const _0x35b5c8=_0x34ca8c(_0x10890f=>_0x2600da(_0x10890f,_0x47167b(0x13d))==_0x18495c['id'],_0x4b16e5[_0x47167b(0xc3)],!0x0);_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0x35b5c8[_0x47167b(0xd5)](!0x0));}if(0x0==_0x132e62[_0x47167b(0x18d)][_0x47167b(0x18e)]){if(_0x2a1fe4[_0x47167b(0x8d)][0x0][_0x47167b(0x139)]){const _0xe6f353=_0x39a0ed(_0x47167b(0x13d),_0x2a1fe4[_0x47167b(0x8d)][0x0][_0x47167b(0x139)],_0x4b16e5[_0x47167b(0xc3)]);_0x132e62[_0x47167b(0x18d)][_0x47167b(0x102)](_0xe6f353[_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x102)](_0xe6f353[_0x47167b(0xd5)](!0x0)),_0xe6f353[_0x47167b(0x19a)]&&(_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0xe6f353[_0x47167b(0x19a)][_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0xe6f353[_0x47167b(0x19a)][_0x47167b(0xd5)](!0x0)));}else{const _0x1ca595=_0x4b16e5[_0x47167b(0xc3)][_0x47167b(0x18d)][0x0];if(!_0x1ca595)return null;_0x132e62[_0x47167b(0x18d)][_0x47167b(0x81)](_0x1ca595[_0x47167b(0xd5)](!0x0)),_0x7268af[_0x47167b(0x18d)][_0x47167b(0x81)](_0x1ca595[_0x47167b(0xd5)](!0x0));}}const _0x371793=_0x1a9c94[_0x47167b(0x14c)](),_0x23420c=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x371793[_0x47167b(0xe4)]),_0x14d80c=_0x11046c(_0x132e62),_0x37dd85=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x14d80c),_0x5f39ba=_0xc0d718[_0x47167b(0x11e)][_0x47167b(0x123)](_0x14d80c),_0x58a8e6=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x1c1)](_0x37dd85,0x0),_0x4e75da=_0x11046c(_0x7268af),_0x3cf8d7={'anchor':_0x58a8e6,'markDeletions':!0x1},_0x241887=_0xc0d718[_0x47167b(0x1a5)][_0x47167b(0x10b)](_0x21cae1)[_0x47167b(0x15d)](_0x14d80c,_0x4e75da,_0x3cf8d7)[_0x47167b(0x166)]();if(!_0x241887[_0x47167b(0x18e)])return null;_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x84)](_0x2cfe2f=>{const _0x30622b=_0x47167b;for(const _0x3415b1 of _0x241887)if(_0x30622b(0xa7)==_0x3415b1[_0x30622b(0xc9)]){const _0x563b4d=_0x3415b1[_0x30622b(0xd0)],_0x1ceac5=_0x3415b1[_0x30622b(0x116)],_0x253088=new _0x3d2d1f(_0x563b4d,_0x1ceac5);_0x2cfe2f[_0x30622b(0xe7)][_0x30622b(0xe6)](_0x253088),_0xc0d718[_0x30622b(0xaf)][_0x30622b(0x193)](_0x253088);}else _0x30622b(0xe5)!==_0x3415b1[_0x30622b(0xc9)]&&(_0x3415b1[_0x30622b(0x9d)]=null,_0x3415b1[_0x30622b(0x8a)]=!0x1,_0x2cfe2f[_0x30622b(0xe7)][_0x30622b(0xe6)](_0x3415b1),_0xc0d718[_0x30622b(0xaf)][_0x30622b(0x193)](_0x3415b1));});const _0x2c90c1=_0xa78144(_0xc0d718,_0x241887,_0x37dd85);_0x18ef92(_0xc0d718[_0x47167b(0xaf)],_0x2c90c1);const _0x178b9a=_0x2c90c1[_0x47167b(0x17b)]()[_0x47167b(0x19b)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x1e3d63=_0x2c90c1[_0x47167b(0x17b)]()[_0x47167b(0x70)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x657ab=[];let _0x39e170=_0x37dd85,_0x3d0860=_0x5f39ba;for(let _0x463f6f=0x0;_0x463f6f<_0x1e3d63[_0x47167b(0x18e)];_0x463f6f++){const _0x567a89=_0x39e170[_0x47167b(0xb0)]-_0x1e3d63[_0x463f6f];_0x657ab[_0x463f6f]=_0x3d0860[_0x47167b(0xb0)]-_0x567a89,_0x39e170=_0x39e170[_0x47167b(0xff)](_0x1e3d63[_0x463f6f]),_0x3d0860=_0x3d0860[_0x47167b(0xff)](_0x657ab[_0x463f6f]);}const _0x14fad2=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0xfd)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0x5f39ba,_0x178b9a),_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0x5f39ba,_0x657ab)),_0x400e91=_0x5f39ba[_0x47167b(0x13a)](0x0)[_0x47167b(0xab)](_0x1d2c17),_0x164fd2=Array[_0x47167b(0x15c)](_0x23420c[_0x47167b(0x8c)]())[_0x47167b(0xd9)](_0x1229e2=>_0x1229e2[_0x47167b(0xab)](_0x1d2c17)==_0x400e91)[_0x47167b(0x178)](),_0x11a347=_0x14fad2[_0x47167b(0x19b)][_0x47167b(0x103)][_0x47167b(0x14a)](),_0x25a0a0=_0x14fad2[_0x47167b(0x70)][_0x47167b(0x103)][_0x47167b(0x14a)]();_0x11a347[0x0]=_0x164fd2[0x0]+_0x11a347[0x0],_0x25a0a0[0x0]=_0x164fd2[0x0]+_0x25a0a0[0x0];let _0x3dcec4=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0xfd)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0x100)](),_0x11a347),_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x107)](_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0x100)](),_0x25a0a0));const _0x40a886=_0xc0d718[_0x47167b(0xaf)][_0x47167b(0x19e)][_0x47167b(0xf7)][_0x47167b(0x166)](_0x371793[_0x47167b(0x105)]);for(const _0x590eb0 of _0x40a886)_0x3dcec4=_0x2f7680[_0x47167b(0xa2)](_0x3dcec4[_0x47167b(0x119)](_0x590eb0));return{'range':_0x3dcec4,'previousIndex':_0x13b681,'nextIndex':_0xfda8de,'currentIndex':_0x521450};}[_0x555e54(0x117)](_0x65095e){const _0x4af8a5=_0x555e54;if(!_0x65095e[_0x4af8a5(0x1a5)][_0x4af8a5(0x7b)](_0x4af8a5(0x89)))return;const _0x1bd1d4=_0x65095e[_0x4af8a5(0x85)][_0x4af8a5(0x10b)](_0x4af8a5(0x14d)),_0x48eb3c=_0x65095e[_0x4af8a5(0x85)][_0x4af8a5(0x10b)](_0x4af8a5(0x1aa));this[_0x4af8a5(0x1af)](_0x1bd1d4,_0x4af8a5(0x112),(_0x3e6c10,_0x5051e6,_0x367f8a)=>{const _0x5b0f67=_0x4af8a5,_0x3b73e8=this[_0x5b0f67(0xc1)][_0x5b0f67(0x10b)](_0x5051e6);if(!_0x3b73e8)return;const _0x3b1080=this[_0x5b0f67(0x154)][_0x5b0f67(0x7a)](_0x3b73e8[_0x5b0f67(0x1b9)])[_0x5b0f67(0x1a8)](_0x3b73e8[_0x5b0f67(0xba)]);_0x3b73e8[_0x5b0f67(0x90)][_0x5b0f67(0x76)](_0x452ed8=>_0x3b1080[_0x5b0f67(0x11d)](_0x452ed8,_0x5b0f67(0x16a))),this[_0x5b0f67(0xc1)][_0x5b0f67(0x10f)](_0x5051e6),this[_0x5b0f67(0xc1)][_0x5b0f67(0x182)](_0x367f8a,_0x3b73e8);}),this[_0x4af8a5(0x1af)](_0x48eb3c,_0x4af8a5(0x112),(_0x297a1a,_0x32b8db,_0x507075)=>{const _0x176112=_0x4af8a5,_0x651103=this[_0x176112(0xc1)][_0x176112(0x10b)](_0x32b8db);if(!_0x651103)return;const _0x396d65=this[_0x176112(0x154)][_0x176112(0x7a)](_0x651103[_0x176112(0x1b9)])[_0x176112(0x1a8)](_0x651103[_0x176112(0xba)]);_0x651103[_0x176112(0x90)][_0x176112(0x76)](_0x1c1c68=>_0x396d65[_0x176112(0x11d)](_0x1c1c68,_0x176112(0x155))),this[_0x176112(0xc1)][_0x176112(0x10f)](_0x32b8db),this[_0x176112(0xc1)][_0x176112(0x182)](_0x507075,_0x651103);});}async[_0x555e54(0xf4)](_0x2bde88){const _0x5d0854=_0x555e54;this[_0x5d0854(0xe8)][_0x5d0854(0x1a5)][_0x5d0854(0x10b)](_0x335532)[_0x5d0854(0x15b)](),this[_0x5d0854(0xdc)][_0x5d0854(0x13b)](_0x5d0854(0x12f)),this[_0x5d0854(0xdc)][_0x5d0854(0x14b)](!0x0),await this[_0x5d0854(0x180)]();try{const _0x5d7834=this[_0x5d0854(0xe8)][_0x5d0854(0x1a5)][_0x5d0854(0x10b)](_0x2efbc4);this[_0x5d0854(0x75)]('\x20'),_0x5d7834[_0x5d0854(0x83)][_0x5d0854(0xce)](_0x5d0854(0x1a6)),await this[_0x5d0854(0x16d)](_0x2bde88);const {sessionId:_0x3ef430}=this[_0x5d0854(0xd2)][_0x5d0854(0x7d)]();await this[_0x5d0854(0x154)][_0x5d0854(0xf5)](_0x2bde88,_0x3ef430),this[_0x5d0854(0x154)][_0x5d0854(0x1b8)]()&&this[_0x5d0854(0x154)][_0x5d0854(0x147)](_0xe1cad0(this[_0x5d0854(0xe8)][_0x5d0854(0x109)],_0x5d0854(0x160)));}catch(_0x307a3f){console[_0x5d0854(0xfe)](_0x5d0854(0x171),_0x307a3f);}finally{this[_0x5d0854(0xdc)][_0x5d0854(0x13b)](_0x5d0854(0x12d)),this[_0x5d0854(0xdc)][_0x5d0854(0x14b)](!0x1);}}[_0x555e54(0x13f)](_0x781f00){const _0x301f01=_0x555e54;this[_0x301f01(0x154)]['id']===_0x781f00&&this[_0x301f01(0x16d)]();}async[_0x555e54(0xcf)](){const _0x3d0f39=_0x555e54,_0x4af594=this[_0x3d0f39(0xd2)][_0x3d0f39(0x1be)]();this[_0x3d0f39(0x154)]?.[_0x3d0f39(0x124)](_0x4af594),this[_0x3d0f39(0x154)]?.[_0x3d0f39(0x147)](_0xe1cad0(this[_0x3d0f39(0xe8)][_0x3d0f39(0x109)],_0x3d0f39(0x160)));}[_0x555e54(0x131)](){const _0x5cc8b3=_0x555e54;this[_0x5cc8b3(0x154)]?.[_0x5cc8b3(0x17a)]();}[_0x555e54(0x9a)](){const _0x391fb0=_0x555e54;this[_0x391fb0(0xdc)][_0x391fb0(0x9a)]();}async[_0x555e54(0x12c)](){const _0xa4cb18=_0x555e54;await this[_0xa4cb18(0x16d)]();}async[_0x555e54(0xb5)]({message:_0xf294bf,quickActionData:_0x15bfcf}){const _0x271b77=_0x555e54;await this[_0x271b77(0xfb)]({'userMessage':_0xf294bf,'quickActionData':_0x15bfcf});}[_0x555e54(0xe2)](){const _0x1b21c0=_0x555e54,_0x5d9ae4=this[_0x1b21c0(0xe8)][_0x1b21c0(0xb2)][_0x1b21c0(0x10b)](_0x1b21c0(0x152));if(!_0x5d9ae4)throw new _0x2db741(_0x1b21c0(0x175),this);return _0x5d9ae4;}async[_0x555e54(0x16d)](_0x31ee4b){const _0x37bd99=_0x555e54;try{this[_0x37bd99(0xdc)][_0x37bd99(0xc5)](),await this[_0x37bd99(0x16c)](_0x31ee4b);}catch(_0x3a24ce){_0x224fdf(_0x37bd99(0x19f),_0x3a24ce),this[_0x37bd99(0x154)]=void 0x0,this[_0x37bd99(0xdc)][_0x37bd99(0xea)]();}}async[_0x555e54(0x16c)](_0x5b66c0){const _0xf943f0=_0x555e54,_0x2870d6=this[_0xf943f0(0xe8)][_0xf943f0(0x1a5)][_0xf943f0(0x10b)](_0x335532);let _0x1ceb20;_0x2870d6[_0xf943f0(0x186)]&&_0x2870d6[_0xf943f0(0x15b)](),_0x5b66c0||!this[_0xf943f0(0x154)]?_0x1ceb20=this[_0xf943f0(0xe8)][_0xf943f0(0xb2)][_0xf943f0(0x10b)](_0xf943f0(0x7c)):this[_0xf943f0(0xdc)][_0xf943f0(0x72)]&&(_0x1ceb20=this[_0xf943f0(0x154)][_0xf943f0(0x165)]['id']),await this[_0xf943f0(0x180)]();const _0xa2a4a7=this[_0xf943f0(0xe2)](),_0x3b06c5=_0x5b66c0||_0x1748d5();this[_0xf943f0(0x154)]=new _0x12da7f({'connector':this[_0xf943f0(0xe0)],'chatModels':this[_0xf943f0(0x1a1)],'selectedModelId':_0x1ceb20,'conversationId':_0x3b06c5,'group':_0xa2a4a7,'getEditor':()=>_0x41f855(this[_0xf943f0(0xe8)])}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x122),(_0xe2df5,_0x346998)=>{const _0x13476e=_0xf943f0;this[_0x13476e(0xdc)][_0x13476e(0x174)](_0x346998),this[_0x13476e(0xdc)][_0x13476e(0x18f)](),this[_0x13476e(0xdc)][_0x13476e(0x101)](),this[_0x13476e(0xdc)][_0x13476e(0x87)](),_0x5b66c0||(this[_0x13476e(0xdc)][_0x13476e(0x10d)](),this[_0x13476e(0x154)]?.[_0x13476e(0x147)](_0xe1cad0(this[_0x13476e(0xe8)][_0x13476e(0x109)],_0x13476e(0x160))));}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x79),(_0x6cf3a9,_0x262288)=>{const _0x19e75d=_0xf943f0;this[_0x19e75d(0xdc)][_0x19e75d(0x1b1)](_0x262288[_0x19e75d(0x95)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x172),(_0x52c7cf,_0xc9b98f)=>{const _0x538ee8=_0xf943f0;this[_0x538ee8(0xdc)][_0x538ee8(0x78)](_0xc9b98f);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x1a9),()=>{const _0x35f617=_0xf943f0;this[_0x35f617(0xdc)][_0x35f617(0x176)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xbb),()=>{const _0xce0d13=_0xf943f0;this[_0xce0d13(0xdc)][_0xce0d13(0x176)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xa1),(_0x31b18a,_0x18fb05)=>{const _0x32c4e4=_0xf943f0;this[_0x32c4e4(0xdc)][_0x32c4e4(0x6b)](_0x18fb05,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x190),(_0x1722d7,_0x290643)=>{const _0x40f6d4=_0xf943f0;this[_0x40f6d4(0xdc)][_0x40f6d4(0x6b)](_0x290643,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xd3),()=>{const _0x1285af=_0xf943f0;this[_0x1285af(0xdc)][_0x1285af(0x86)]();}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x1bf),async()=>{const _0x203c08=_0xf943f0;await this[_0x203c08(0xdc)][_0x203c08(0x179)]();}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x10c),(_0x2b8d1c,_0x4289cb)=>{const _0xca573f=_0xf943f0;this[_0xca573f(0xdc)][_0xca573f(0xb8)](_0x4289cb['id']);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x153),(_0xccccac,_0x310d64,_0x9d72e6)=>{const _0xfc4526=_0xf943f0;this[_0xfc4526(0x75)](_0x310d64,_0x9d72e6);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x177),(_0x32d5a9,_0x2ddd94)=>{const _0x4f70b6=_0xf943f0;_0x4f70b6(0x8f)===_0x2ddd94[_0x4f70b6(0xc9)]?this[_0x4f70b6(0xdc)][_0x4f70b6(0xb4)](_0x2ddd94):this[_0x4f70b6(0xdc)][_0x4f70b6(0x128)](_0x2ddd94);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xc0),async(_0x57da63,_0x29bdc0,_0x338832)=>{const _0x56aa1e=_0xf943f0;await this[_0x56aa1e(0x17d)]({'reply':_0x29bdc0,'changeGroups':_0x338832});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xda),(_0x429299,{reply:_0x56cc6e,index:_0x49613e,state:_0x178036})=>{const _0x4291f5=_0xf943f0;this[_0x4291f5(0xdc)][_0x4291f5(0x98)]({'id':_0x56cc6e['id'],'index':_0x49613e,'state':_0x178036});}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xbe),(_0x43608b,_0x5eecba)=>{const _0x3c85f1=_0xf943f0;if(this[_0x3c85f1(0xdc)][_0x3c85f1(0x111)](_0x5eecba[_0x3c85f1(0x99)],_0x5eecba[_0x3c85f1(0x142)]),_0x3c85f1(0xc2)===_0x5eecba[_0x3c85f1(0x99)][_0x3c85f1(0xc9)]){const _0x242193=[..._0x41f855(this[_0x3c85f1(0xe8)])[_0x3c85f1(0xaf)][_0x3c85f1(0x19e)][_0x3c85f1(0xc2)][_0x3c85f1(0xa5)]()];this[_0x3c85f1(0xd2)][_0x3c85f1(0x18a)](_0x242193,_0x3c85f1(0x15f)+this[_0x3c85f1(0x154)]?.['id']);}}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x10a),(_0x3653f0,_0x2b2351)=>{const _0x27c4c4=_0xf943f0;this[_0x27c4c4(0xdc)][_0x27c4c4(0x136)](_0x2b2351[_0x27c4c4(0x199)]),_0x27c4c4(0x161)==_0x2b2351[_0x27c4c4(0x199)]&&this[_0x27c4c4(0x131)](),_0x27c4c4(0xc2)===_0x2b2351[_0x27c4c4(0xc9)]&&this[_0x27c4c4(0xd2)][_0x27c4c4(0x183)](_0x27c4c4(0x15f)+this[_0x27c4c4(0x154)]?.['id']);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x17c),(_0x5453cd,_0x513e47)=>{const _0x46fc38=_0xf943f0;this[_0x46fc38(0xdc)][_0x46fc38(0x137)](_0x513e47[_0x46fc38(0x99)][_0x46fc38(0x199)],_0x513e47[_0x46fc38(0x142)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xa0),(_0xe72735,_0x2a0b82)=>{const _0x27d813=_0xf943f0;this[_0x27d813(0xdc)][_0x27d813(0x10e)](_0x2a0b82[_0x27d813(0xcb)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x194),(_0x1ec048,_0x1b3663)=>{const _0x5900f1=_0xf943f0;this[_0x5900f1(0xdc)][_0x5900f1(0xac)](_0x1b3663[_0x5900f1(0x198)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x9e),(_0x589c77,_0x19062a)=>{const _0x5c6460=_0xf943f0;this[_0x5c6460(0xdc)][_0x5c6460(0x6c)](_0x19062a[_0x5c6460(0x1bb)],_0x19062a[_0x5c6460(0x15e)],_0x19062a[_0x5c6460(0x126)],_0x19062a[_0x5c6460(0x185)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xec),(_0x39baee,_0x16e89a)=>{const _0x543a3e=_0xf943f0;this[_0x543a3e(0xdc)][_0x543a3e(0x1a3)](_0x16e89a[_0x543a3e(0x1bb)],_0x16e89a[_0x543a3e(0x1c0)],_0x16e89a[_0x543a3e(0xa9)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x11c),(_0x1b1854,_0x2f257c)=>{const _0x3a85a6=_0xf943f0;this[_0x3a85a6(0xdc)][_0x3a85a6(0x106)](_0x2f257c);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0x144),(_0x88695,_0x46be5f)=>{const _0x3929c4=_0xf943f0;this[_0x3929c4(0xdc)][_0x3929c4(0x9b)](_0x46be5f[_0x3929c4(0x165)],_0x46be5f[_0x3929c4(0x9c)]);}),this[_0xf943f0(0x154)]['on'](_0xf943f0(0xfe),(_0x107ac5,{error:_0x247fbd,interactionId:_0x6ab05d,fileName:_0x45dd9b,url:_0x1b94e8,sourceId:_0x8382c0,sourceLabel:_0x456ca6})=>{const _0x37224b=_0xf943f0,_0x37dc42=_0x6ab05d?_0x6ab05d+':'+_0x1748d5():_0x1748d5();_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x148))?this[_0x37224b(0xdc)][_0x37224b(0xee)]({'staticMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xd4)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x73))||_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x19f))?(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1b4)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x92))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xae),_0x45dd9b),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x134))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x188),_0x1b94e8),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0xc8))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1ab)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x1b3))?this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0xb9)),'id':_0x37dc42}):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0xcd))?(_0x8382c0&&this[_0x37224b(0xdc)][_0x37224b(0x130)](_0x8382c0),this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x19c),_0x456ca6||_0x37224b(0x15e)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):_0x247fbd[_0x37224b(0x127)][_0x37224b(0x16f)](_0x37224b(0x11f))?(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x1a4)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd)):(this[_0x37224b(0xdc)][_0x37224b(0x7f)]({'errorMessage':_0xe1cad0(this[_0x37224b(0xe8)][_0x37224b(0x109)],_0x37224b(0x88)),'id':_0x37dc42}),this[_0x37224b(0x77)](_0x247fbd));}),await this[_0xf943f0(0x154)][_0xf943f0(0x162)](this[_0xf943f0(0xe8)][_0xf943f0(0xb2)][_0xf943f0(0x10b)](_0xf943f0(0xaa))),_0x5b66c0||await this[_0xf943f0(0x154)][_0xf943f0(0x19b)]();}async[_0x555e54(0xfb)]({userMessage:_0x70f32a,quickActionData:_0x291490}){const _0x3cc05f=_0x555e54;if(!this[_0x3cc05f(0x154)])throw new _0x2db741(_0x3cc05f(0xa8));this[_0x3cc05f(0x154)][_0x3cc05f(0x8e)]()&&await this[_0x3cc05f(0x154)][_0x3cc05f(0x1b5)](this[_0x3cc05f(0xd2)][_0x3cc05f(0x7d)]()),this[_0x3cc05f(0x154)]['id']&&this[_0x3cc05f(0x154)][_0x3cc05f(0x6d)]&&await this[_0x3cc05f(0x154)][_0x3cc05f(0xef)]({'userMessage':_0x70f32a,'quickActionData':_0x291490}),this[_0x3cc05f(0x6f)]();}[_0x555e54(0x6f)](){const _0x290f10=_0x555e54,_0x29ad22=_0x41f855(this[_0x290f10(0xe8)])[_0x290f10(0xaf)],_0x5e842b=Array[_0x290f10(0x15c)](_0x29ad22[_0x290f10(0x146)][_0x290f10(0xfc)](_0x51d958));_0x29ad22[_0x290f10(0x84)](_0x40477b=>{const _0x360302=_0x290f10;_0x5e842b[_0x360302(0x76)](_0x958db0=>_0x40477b[_0x360302(0xb1)](_0x958db0));});}[_0x555e54(0x163)](){const _0x5867bc=_0x555e54;console[_0x5867bc(0x113)](_0x5867bc(0xdb));}[_0x555e54(0x12a)](_0x16c793){const _0x11bcc8=_0x555e54;this[_0x11bcc8(0xdc)][_0x11bcc8(0x1bc)](_0x16c793);}[_0x555e54(0x77)](_0x27a74c){const _0x1e33c0=_0x555e54;_0x224fdf(_0x27a74c[_0x1e33c0(0x127)]);}[_0x555e54(0x195)](_0x3eefd4){const _0x58bd32=_0x555e54;this[_0x58bd32(0x154)]?.[_0x58bd32(0x125)](_0x3eefd4);}[_0x555e54(0x1ba)](){const _0x37ed34=_0x555e54;this[_0x37ed34(0x154)]?.[_0x37ed34(0x15a)]();}[_0x555e54(0x133)](){const _0xb93cfa=_0x555e54;this[_0xb93cfa(0x154)]?.[_0xb93cfa(0x115)]();}[_0x555e54(0x12e)](_0x5128a2){const _0x5e1870=_0x555e54,[_0x57eddd,_0x5a8805]=_0x5128a2[_0x5e1870(0x114)](':'),_0x45af1b=this[_0x5e1870(0x154)][_0x5e1870(0x7a)](_0x57eddd),_0x215f4c=_0x45af1b[_0x5e1870(0x1a8)](_0x5a8805);return{'interaction':_0x45af1b,'reply':_0x215f4c};}[_0x555e54(0x18c)](_0x2a0c1c,_0x1f0b15=!0x1){const _0x13d5bd=_0x555e54,_0x2402bb=_0x41f855(this[_0x13d5bd(0xe8)]),_0x1a0564={'target':_0x2402bb[_0x13d5bd(0xcc)][_0x13d5bd(0x83)][_0x13d5bd(0x173)][_0x13d5bd(0xf8)](_0x2402bb[_0x13d5bd(0xcc)][_0x13d5bd(0xe9)][_0x13d5bd(0xf6)](_0x2a0c1c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1f0b15};_0x1f0b15&&(_0x1a0564[_0x13d5bd(0x14f)]=!0x0),_0x3a00cc(_0x1a0564);}[_0x555e54(0x75)](_0x226ee4,_0x152824=!0x1){const _0x165573=_0x555e54;this[_0x165573(0xdc)][_0x165573(0x153)](_0x226ee4||_0xe1cad0(this[_0x165573(0xe8)][_0x165573(0x109)],_0x165573(0xdd)),_0x152824);}async[_0x555e54(0x17d)]({reply:_0x455c62,changeGroups:_0x41d9e9,renderingStrategy:_0x19960e}){const _0x3f32db=_0x555e54,{id:_0x18d4b5,isDone:_0x504ca2,type:_0x24816b,parsedContent:_0x2d089b}=_0x455c62;if(_0x3f32db(0x71)===_0x24816b){const _0x57351f=_0x41f855(this[_0x3f32db(0xe8)]),_0x56a1e6=_0x31c5f2({'editor':_0x57351f,'showDiff':this[_0x3f32db(0xdc)][_0x3f32db(0x164)],'changeGroups':_0x41d9e9,'documentContextContent':_0x455c62[_0x3f32db(0xc3)]});await this[_0x3f32db(0xdc)][_0x3f32db(0x158)]({'id':_0x18d4b5,'parts':_0x56a1e6,'renderingStrategy':_0x19960e,'isDone':_0x504ca2});}else _0x3f32db(0x8f)===_0x24816b&&await this[_0x3f32db(0xdc)][_0x3f32db(0xd8)]({'id':_0x18d4b5,'parsedContent':_0x2d089b,'renderingStrategy':_0x19960e,'isDone':_0x504ca2});_0x504ca2&&_0x455c62[_0x3f32db(0x1b6)][_0x3f32db(0x18e)]>0x0&&this[_0x3f32db(0xdc)][_0x3f32db(0x82)](_0x18d4b5,_0x455c62[_0x3f32db(0x1b6)]);}async[_0x555e54(0x180)](){const _0x11c2f5=_0x555e54,_0x4705c7=this[_0x11c2f5(0x154)]?.[_0x11c2f5(0x143)];_0x4705c7&&(_0x4705c7[_0x11c2f5(0x97)](),this[_0x11c2f5(0xdc)][_0x11c2f5(0x1a0)](_0x4705c7));}async[_0x555e54(0xde)](){const _0x1ceb60=_0x555e54,_0x3dc915=this[_0x1ceb60(0x154)]?.[_0x1ceb60(0x143)];if(_0x3dc915){for await(const _0x180fcb of _0x3dc915[_0x1ceb60(0xa6)])await this[_0x1ceb60(0x17d)]({'reply':_0x180fcb,'changeGroups':_0x180fcb[_0x1ceb60(0xc6)],'renderingStrategy':_0x1ceb60(0x12f)});}}[_0x555e54(0xf9)](_0x5ec0e9){const _0x54ad0a=_0x555e54,_0xcfb8b8={'positiveCount':_0x5ec0e9[_0x54ad0a(0xc6)][_0x54ad0a(0x19d)](_0x24e0f1=>_0x54ad0a(0x155)===_0x24e0f1[_0x54ad0a(0x170)])[_0x54ad0a(0x18e)],'totalCount':_0x5ec0e9[_0x54ad0a(0xc6)][_0x54ad0a(0x18e)]},_0xe4e43f=this[_0x54ad0a(0x154)][_0x54ad0a(0x7a)](_0x5ec0e9[_0x54ad0a(0x1b9)])[_0x54ad0a(0x1b0)];this[_0x54ad0a(0xe0)][_0x54ad0a(0xbc)](this[_0x54ad0a(0x154)]['id'],_0xe4e43f,_0xcfb8b8);}}
23
+ const _0x9b0b9b=_0x7e98;(function(_0x543868,_0x5c7126){const _0x55ce83=_0x7e98,_0x4672ce=_0x543868();while(!![]){try{const _0x14c7a9=parseInt(_0x55ce83(0x1cd))/0x1+parseInt(_0x55ce83(0x1f1))/0x2+parseInt(_0x55ce83(0xf2))/0x3*(-parseInt(_0x55ce83(0xd6))/0x4)+-parseInt(_0x55ce83(0x1b4))/0x5+parseInt(_0x55ce83(0x1c5))/0x6+-parseInt(_0x55ce83(0x1c1))/0x7*(parseInt(_0x55ce83(0x15b))/0x8)+parseInt(_0x55ce83(0x222))/0x9*(-parseInt(_0x55ce83(0x178))/0xa);if(_0x14c7a9===_0x5c7126)break;else _0x4672ce['push'](_0x4672ce['shift']());}catch(_0x2d7b69){_0x4672ce['push'](_0x4672ce['shift']());}}}(_0x2b6f,0xda0cd));import{ContextPlugin as _0x242be3,Editor as _0x5a1dd2}from'ckeditor5/src/core.js';import{CKEditorError as _0x30fa1e,logError as _0xd99304,scrollViewportToShowTarget as _0x33a9d6,uid as _0x4a61b3}from'ckeditor5/src/utils.js';import{AIConnector as _0xa160f8}from'../aicore/aiconnector.js';import{AITabs as _0x43e068}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1a8029}from'./model/aichatconversation.js';import{getTranslation as _0x19ae4a}from'../aicore/utils/common-translations.js';function _0x7e98(_0x177fc2,_0x485ac4){const _0x2b6f68=_0x2b6f();return _0x7e98=function(_0x7e98a2,_0x10f2ea){_0x7e98a2=_0x7e98a2-0xd1;let _0x77ec09=_0x2b6f68[_0x7e98a2];return _0x77ec09;},_0x7e98(_0x177fc2,_0x485ac4);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f37cf}from'../aicore/aiediting.js';import{AIChatModels as _0x50164e}from'./model/aichatmodels.js';import{getEditorFromContext as _0x652de9}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x581471,DATA_ID_MODEL_ATTRIBUTE as _0x21d2ae}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1775d9}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x371dd3,getMinimalSelection as _0x171b69,getSuggestionPartsFromReply as _0x5d6e00}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2d44c0,_DetachOperation as _0x4b1e68}from'ckeditor5/src/engine.js';import{findOne as _0x4c173d,getAttribute as _0x57bbe4,serialize as _0x3e5089,Document as _0x2a273e,findByAttribute as _0x41407c}from'../aicore/utils/htmlparser.js';import{IconAI as _0xe41b23}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4b29c4}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x82d960}from'../aiballoon/aiballoon.js';function _0x2b6f(){const _0xe037a3=['error','document','Disliked\x20response','AI_CHAT_UNTITLED_CONVERSATION','createConversation','ai-chat-controller-no-active-conversation','_updateReplyContent','updateFeedItemAIReplySources','setAddContextOptions','indexes','range','webSearchFinished','locale','contextItemAdded','isCurrentDocumentInContext','node','removeFeedInteraction','push','close','addDocumentToContext','getGroupId','isModelAvailable','options','Undo','reasoningFinished','source','getChild','text-delta','_aiChatUi','editing','init','isDisabled','getRoot','updateContent','setIsUploadInProgress','resources','current-document','ai-chat-source-resources-load-failed','message','updateConversationTitle','children','addContextItem','ai-chat-resource-load-failed','_getDocumentRangeForReplyChanges','replyContentUpdated','data-id','toggleLoadingSkeleton','partIndex','removeMarker','getDocumentContext','isPremiumPlugin','getPath','setLoadingMessage','Liked\x20response','3390400tjCxAz','insertSuggestion','createPositionFromPath','mouseLeaveSuggestion','activateTab','commands','sourceId','loadSourceResources','split','isCurrentDocumentInConversation','model','startConversation','uiId','7ATEUqj','toggleSuggestionDisplayMode','getChildAtOffset','setIsMaximized','10259322EJuVns','setConversationTitle','plugins','setContextItemLoading','getFirstRange','uid','toggleWebSearch','_showConversationHistory','1720456HmsmsB','type','addOperation','AI_CHAT_RESOURCE_LOAD_FAILED','editors','resourceId','updateFeedItemAIReplySuggestionPartState','_scrollToSuggestionRange','AIConnector','resizeTabs','AIChatController','dialogClosed','isOfficialPlugin','_previewedChangeGroup','_setIsMaximized','uploadProgressChanged','addFeedItemStaticMessage','getAttribute','contextSent','maxOffset','sourceResourcesLoaded','rejectSuggestion','toggleReasoning','end','interactionStarted','focusPromptInput','getRanges','domConverter','getChildren','replyCreated','updateCapabilities','dislike','_batchToChanges','Failed\x20to\x20load\x20conversation','getDocumentData','stopListening','640068iseoMG','get','remove','log','setChangeGroupState','stop','addFeedInteractionHeader','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','revert','rootName','ai-chat-context-unsupported-type','addCurrentDocumentToContext','removeSelectionFromContext','sources','getMarkersGroup','DocumentCompare','ai-chat-conversation-start-failed','addResourceToContext','getReply','Showing\x20conversation\x20history...','resize','createRange','afterInit','delete','resetConversationTitle','add','sendUserMessage','unshift','setModel','AIEditing','ai-chat-controller-mouse-over','upsertAIChatRating','open','ai-chat-missing-channel-id','parse','load','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','context','startInteraction','removeContextItem','pending','ai-chat-file-upload-failed','_removeFromContext','resourceStateChanged','populateSourceResourceBalloon','pluginName','isUploadInProgress','_aiConnector','_toggleWebSearch','216JJBDTy','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','path','resetMessageInput','from','query','removeFromContext','AITabs','interactionCreated','applyOperation','addContextOptionsChanged','400128VTodCG','showDiff','webSearchStarted','interactionId','showPrevious','_createFromRanges','resource','has','setSelectedModel','_openBalloonFor','set','_applyOperationsAsSuggestions','createPositionAt','modification-delta','indexOf','listenTo','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNABLE_TO_START_CONVERSATION','hideFakeVisualSelection','redo','_integrateEditor','reasoningStarted','getInteractionAndReplyById','conversationInitialized','resizedTabs','undo','selectModel','_toggleReasoning','3aFaVhV','updateFeedItemAIReplySuggestionContent','isStarted','_applySuggestion','removeSelectionFromChatContext','slice','addFileToContext','getOperations','AI_BALLOON_HEADER_TITLE','ready','scrollFeedToSuggestion','ai.chat.models.defaultModelId','_handleStartConversation','lastInteraction','contextItem','contextItemLoadingEnded','cloneNode','enableControls','requires','_flushLastInteractionUI','getTransformedByOperation','interactionDestroyed','$graveyard','showNext','like','ai-chat-context-invalid-data','map','loadConversation','filter','addFeedItemAIReply','anchorId','_insertSuggestion','alignToTop','mouseOverSuggestion','root','content','markers','batch','ai-chat-url-upload-failed','addFeedItemUserMessage','contextItemRemoved','ai-chat-conversation-init-failed','getSelectionText','new','_aiEditing','handleUserInteraction','closeSourceResourceBalloon','interactionFinished','selectedModel','isLoading','static','TrackChangesEditing','isOpen','collaboration.channelId','clearPendingContextUI','isDocumentOperation','disableControls','updateResourceState','addUrlToContext','_balloonShowDiff','addSelectionToChatContext','mapper','updateFeedItemAIReplyContent','startsWith','setFeedItemRenderingStrategy','rejected','stopInteraction','modelSelected','replies','getInteraction','accepted','removed','ai-request-aborted','_aiChatModels','showChangeInText','messageId','addFeedItemError','ai.chat.models.displayedModels','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','howMany','documentContextContent','toViewRange','data','baseVersion','length','outdated','showFakeVisualSelection','streaming','state','history','_startConversationSafely','change','marker','clearConversationContextUI','find','addFilesToContext','toString','addSelectionToContext','_logError','_handleUIUserMessage','forEach','activeConversation','replyId','selection','main','12113952Qfrjar','changes','version','handleRemovedConversation','changeGroups','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','capabilitiesUpdated','updateCurrentDocumentInContext','finishInteraction','ai.chat.context','config','replyChangeGroupStateUpdated','addFeedItemAISuggestion','contextItems','AI_CHAT_GENERIC_ERROR','nextSibling','viewRangeToDom','_updateRatings','AIChatUI','view','_stopLastInteraction','start','getDiff','_removeAISelectionMarkers','abortPromptStream','setConversationContext','sourcePosition','full','AI_CHAT_CONTEXT_INVALID_DATA','235370rozRSh','isInContext','ai-conversation-','sendMessage','chat','applySuggestion'];_0x2b6f=function(){return _0xe037a3;};return _0x2b6f();}export class AIChatController extends _0x242be3{[_0x9b0b9b(0x11e)];[_0x9b0b9b(0x220)];[_0x9b0b9b(0x19a)];[_0x9b0b9b(0x13b)];[_0x9b0b9b(0x1ed)]=new Map();[_0x9b0b9b(0x1da)]=null;[_0x9b0b9b(0x12d)]=!0x1;static get[_0x9b0b9b(0x104)](){return[_0xa160f8,_0x82d960,_0x581471];}static get[_0x9b0b9b(0x21e)](){const _0x5a2a2e=_0x9b0b9b;return _0x5a2a2e(0x1d7);}static get[_0x9b0b9b(0x1d9)](){return!0x0;}static get[_0x9b0b9b(0x1b0)](){return!0x0;}[_0x9b0b9b(0x19c)](){const _0xf47f86=_0x9b0b9b;this[_0xf47f86(0x220)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x1d5)),this[_0xf47f86(0x19a)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x16d)),this[_0xf47f86(0x11e)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x20e)),this[_0xf47f86(0x13b)]=new _0x50164e({'connector':this[_0xf47f86(0x220)],'displayedModels':this[_0xf47f86(0x216)][_0xf47f86(0x165)][_0xf47f86(0x1f2)](_0xf47f86(0x13f)),'defaultModelId':this[_0xf47f86(0x216)][_0xf47f86(0x165)][_0xf47f86(0x1f2)](_0xf47f86(0xfd))});const _0x281a5f=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0xd2));this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1bf),()=>{const _0x5bbe05=_0xf47f86;this[_0x5bbe05(0x14c)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x20b),(_0x2edb9b,_0x4d48ea)=>{const _0x5e5be9=_0xf47f86;this[_0x5e5be9(0x155)]({'userMessage':_0x4d48ea});}),this[_0xf47f86(0xe5)](_0x281a5f,_0xf47f86(0xee),(_0x5447b7,_0x2e99e6)=>{const _0x423f32=_0xf47f86;this[_0x423f32(0x1db)](_0x2e99e6);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1d6),()=>{const _0x5da2c2=_0xf47f86;_0x281a5f[_0x5da2c2(0x205)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x173),async()=>{const _0x1aea9d=_0xf47f86;await this[_0x1aea9d(0x16f)](),await this[_0x1aea9d(0x105)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x191),()=>{const _0x2f0182=_0xf47f86;this[_0x2f0182(0x157)]?.[_0x2f0182(0x1fc)](_0x19ae4a(this[_0x2f0182(0x216)][_0x2f0182(0x18a)],_0x2f0182(0x140)));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0xf8),(_0x264de5,_0x990f7a)=>{const _0x34cf24=_0xf47f86;this[_0x34cf24(0x157)]?.[_0x34cf24(0x151)](Array[_0x34cf24(0x226)](_0x990f7a));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x12c),(_0x129bb4,_0x1df3d1)=>{const _0x1f96fc=_0xf47f86;this[_0x1f96fc(0x157)]?.[_0x1f96fc(0x12c)](_0x1df3d1);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x202),(_0x59b930,_0x3823e9)=>{const _0x4abc18=_0xf47f86;this[_0x4abc18(0x157)]?.[_0x4abc18(0x202)](_0x3823e9[_0x4abc18(0x197)],_0x3823e9[_0x4abc18(0xdc)]);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x218),(_0x1b3415,_0x22344f)=>{const _0x1883f5=_0xf47f86;this[_0x1883f5(0x21b)](_0x22344f);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1bb),(_0xa21bcf,_0x3938af)=>{const _0x5df0af=_0xf47f86;this[_0x5df0af(0x157)]?.[_0x5df0af(0x1bb)](_0x3938af[_0x5df0af(0x1ba)],_0x3938af[_0x5df0af(0x227)],_0x3938af[_0x5df0af(0x1ca)]);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1cb),()=>{const _0x5cb443=_0xf47f86;this[_0x5cb443(0x221)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1e3),()=>{const _0x39f42b=_0xf47f86;this[_0x39f42b(0xf1)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0xf0),(_0x1d2694,_0x317526)=>{const _0x5f13a6=_0xf47f86;this[_0x5f13a6(0x157)]?.[_0x5f13a6(0x20d)](_0x317526);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x10a),(_0x4cc17e,{replyId:_0x160f84})=>{const _0x5edc13=_0xf47f86;console[_0x5edc13(0x1f4)](_0x5edc13(0x1b3),_0x160f84);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1ec),(_0x149ac2,{replyId:_0x4c100d})=>{const _0x264757=_0xf47f86;console[_0x264757(0x1f4)](_0x264757(0x180),_0x4c100d);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1b5),(_0x28c9d2,_0x629f5e)=>{const _0x41bbe6=_0xf47f86;this[_0x41bbe6(0x216)][_0x41bbe6(0x1c7)][_0x41bbe6(0x1f2)](_0x82d960)[_0x41bbe6(0x190)](),this[_0x41bbe6(0x111)](_0x629f5e);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x13c),(_0x433bef,{replyId:_0x5ca117,partIndex:_0x830c0})=>{const _0x47ef7d=_0xf47f86;this[_0x47ef7d(0x12d)]=this[_0x47ef7d(0x19a)][_0x47ef7d(0xd7)],this[_0x47ef7d(0xdf)](_0x5ca117,_0x830c0);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x113),(_0x33ec48,{replyId:_0x4e231a,partIndex:_0xd73238})=>{const _0x4d960b=_0xf47f86,_0x4b130e=this[_0x4d960b(0x1a9)](_0x4e231a,_0xd73238);_0x4b130e&&_0x4d960b(0x108)!=_0x4b130e[_0x4d960b(0x188)][_0x4d960b(0x114)][_0x4d960b(0x1fa)]&&this[_0x4d960b(0x11e)][_0x4d960b(0x148)]([_0x4b130e[_0x4d960b(0x188)]],_0x4d960b(0x20f));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1b7),()=>{const _0x5420ff=_0xf47f86;this[_0x5420ff(0x11e)][_0x5420ff(0xe8)](_0x5420ff(0x20f));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x17d),(_0x4da3ba,_0x3e6801)=>{const _0x417776=_0xf47f86;this[_0x417776(0x216)][_0x417776(0x1c7)][_0x417776(0x1f2)](_0x82d960)[_0x417776(0x190)](),this[_0x417776(0xf5)](_0x3e6801);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1c2),async(_0x50def6,_0x3c1d6d)=>{const _0x4a16f6=_0xf47f86,{reply:_0x4060f1}=this[_0x4a16f6(0xec)](_0x3c1d6d[_0x4a16f6(0x158)]),_0x29d381=_0x652de9(this[_0x4a16f6(0x216)]),_0x58ee35=_0x5d6e00({'editor':_0x29d381,'changeGroups':_0x4060f1[_0x4a16f6(0x15f)],'documentContextContent':_0x4060f1[_0x4a16f6(0x142)],'showDiff':_0x3c1d6d[_0x4a16f6(0xd7)]});await this[_0x4a16f6(0x19a)][_0x4a16f6(0xf3)]({'id':_0x4060f1['id'],'parts':_0x58ee35,'renderingStrategy':_0x4a16f6(0x124)});}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1e2),(_0x12d9af,{replyId:_0x499b4e,partIndex:_0x1a4102})=>{const _0xfc7888=_0xf47f86;this[_0xfc7888(0x1da)]?.[_0xfc7888(0x158)]==_0x499b4e&&this[_0xfc7888(0x1da)]?.[_0xfc7888(0x1ad)]==_0x1a4102&&this[_0xfc7888(0x216)][_0xfc7888(0x1c7)][_0xfc7888(0x1f2)](_0x82d960)[_0xfc7888(0x190)]();const {reply:_0x26bab9}=this[_0xfc7888(0xec)](_0x499b4e);_0x26bab9[_0xfc7888(0x1f5)](_0x1a4102,_0xfc7888(0x133)),this[_0xfc7888(0x11e)][_0xfc7888(0xe8)](_0xfc7888(0x20f));});}async[_0x9b0b9b(0x207)](){const _0x97d577=_0x9b0b9b;this[_0x97d577(0x216)]instanceof _0x5a1dd2?this[_0x97d577(0xea)](this[_0x97d577(0x216)]):this[_0x97d577(0xe5)](this[_0x97d577(0x216)][_0x97d577(0x1d1)],_0x97d577(0x20a),(_0x33e221,_0x58bcb9)=>{const _0x18336b=_0x97d577;_0x58bcb9['on'](_0x18336b(0xfb),()=>{const _0x44585a=_0x18336b;this[_0x44585a(0xea)](_0x58bcb9);});}),await this[_0x97d577(0x14c)]();}[_0x9b0b9b(0x111)](_0x5926b6){const _0x5439aa=_0x9b0b9b,_0x52af67=_0x652de9(this[_0x5439aa(0x216)]);if(!_0x52af67[_0x5439aa(0x1c7)][_0x5439aa(0xdd)](_0x5439aa(0x125)))return;const _0x15b8a0=this[_0x5439aa(0x216)][_0x5439aa(0x1c7)][_0x5439aa(0x1f2)](_0x5439aa(0x200)),{reply:_0x3d1bc4,interaction:_0x562b27}=this[_0x5439aa(0xec)](_0x5926b6[_0x5439aa(0x158)]),_0x538913=this[_0x5439aa(0x1a9)](_0x5926b6[_0x5439aa(0x158)],_0x5926b6[_0x5439aa(0x1ad)]),_0x5d4e5f=void 0x0!==_0x5926b6[_0x5439aa(0x1ad)]?[_0x3d1bc4[_0x5439aa(0x15f)][_0x5926b6[_0x5439aa(0x1ad)]]]:_0x3d1bc4[_0x5439aa(0x15f)][_0x5439aa(0x10e)](_0x5c3dcc=>_0x5439aa(0x219)==_0x5c3dcc[_0x5439aa(0x14a)]),_0x3e854b=_0x5d4e5f[_0x5439aa(0x10c)](_0x1adf1=>_0x3d1bc4[_0x5439aa(0x15f)][_0x5439aa(0xe4)](_0x1adf1));if(!_0x538913||_0x5439aa(0x108)==_0x538913[_0x5439aa(0x188)][_0x5439aa(0x114)][_0x5439aa(0x1fa)])return void _0x3e854b[_0x5439aa(0x156)](_0x5ae590=>_0x3d1bc4[_0x5439aa(0x1f5)](_0x5ae590,_0x5439aa(0x147)));_0x3e854b[_0x5439aa(0x156)](_0x127b0f=>_0x3d1bc4[_0x5439aa(0x1f5)](_0x127b0f,_0x5439aa(0x138)));const _0x4a2b15=_0x1775d9({'editor':_0x52af67,'reply':_0x3d1bc4,'interaction':_0x562b27,'groups':_0x5d4e5f,'transform':!0x0,'documentCompare':_0x15b8a0,'documentCompareOptions':{'anchor':_0x5439aa(0x15a),'markDeletions':!0x0}});let _0x3ba953;_0x538913&&this[_0x5439aa(0x1d4)](_0x538913[_0x5439aa(0x188)]),_0x52af67[_0x5439aa(0x1be)][_0x5439aa(0x14d)](_0x46c2c1=>{const _0xc36a61=_0x5439aa;_0x3ba953=_0x46c2c1[_0xc36a61(0x117)],_0x52af67[_0xc36a61(0x1c7)][_0xc36a61(0x1f2)](_0xc36a61(0x125))[_0xc36a61(0xe1)](_0x4a2b15),this[_0xc36a61(0x11e)][_0xc36a61(0xe8)](_0xc36a61(0x20f));}),this[_0x5439aa(0x1ed)][_0x5439aa(0xe0)](_0x3ba953,{'interactionId':_0x562b27['id'],'replyId':_0x3d1bc4['id'],'indexes':_0x3e854b[_0x5439aa(0xf7)]()}),this[_0x5439aa(0x16c)](_0x3d1bc4);}[_0x9b0b9b(0xf5)](_0x5039d3){const _0x24c897=_0x9b0b9b,_0x334bff=_0x652de9(this[_0x24c897(0x216)]),_0x3d3a32=this[_0x24c897(0x216)][_0x24c897(0x1c7)][_0x24c897(0x1f2)](_0x581471),{reply:_0x38947d,interaction:_0x45c9aa}=this[_0x24c897(0xec)](_0x5039d3[_0x24c897(0x158)]),_0x9b3f82=this[_0x24c897(0x1a9)](_0x5039d3[_0x24c897(0x158)],_0x5039d3[_0x24c897(0x1ad)]),_0x282ba9=void 0x0!==_0x5039d3[_0x24c897(0x1ad)]?[_0x38947d[_0x24c897(0x15f)][_0x5039d3[_0x24c897(0x1ad)]]]:_0x38947d[_0x24c897(0x15f)][_0x24c897(0x10e)](_0x425a64=>_0x24c897(0x219)==_0x425a64[_0x24c897(0x14a)]),_0x45208a=_0x282ba9[_0x24c897(0x10c)](_0x2de95c=>_0x38947d[_0x24c897(0x15f)][_0x24c897(0xe4)](_0x2de95c));if(!_0x9b3f82||_0x24c897(0x108)==_0x9b3f82[_0x24c897(0x188)][_0x24c897(0x114)][_0x24c897(0x1fa)])return void _0x45208a[_0x24c897(0x156)](_0x1b79bc=>_0x38947d[_0x24c897(0x1f5)](_0x1b79bc,_0x24c897(0x147)));_0x45208a[_0x24c897(0x156)](_0xb365b=>_0x38947d[_0x24c897(0x1f5)](_0xb365b,_0x24c897(0x138)));const _0x49bbe8=_0x1775d9({'editor':_0x334bff,'reply':_0x38947d,'interaction':_0x45c9aa,'groups':_0x282ba9,'transform':!0x0,'documentCompare':_0x3d3a32,'documentCompareOptions':{'anchor':_0x24c897(0x15a),'markDeletions':!0x1}});let _0x13b143;_0x9b3f82&&this[_0x24c897(0x1d4)](_0x9b3f82[_0x24c897(0x188)]),_0x334bff[_0x24c897(0x1be)][_0x24c897(0x14d)](_0x8213bd=>{const _0x39bd0a=_0x24c897;_0x13b143=_0x8213bd[_0x39bd0a(0x117)];for(const _0x2a8158 of _0x49bbe8)_0x2a8158[_0x39bd0a(0x145)]=_0x334bff[_0x39bd0a(0x1be)][_0x39bd0a(0x17f)][_0x39bd0a(0x15d)],_0x8213bd[_0x39bd0a(0x117)][_0x39bd0a(0x1cf)](_0x2a8158),_0x334bff[_0x39bd0a(0x1be)][_0x39bd0a(0xd4)](_0x2a8158);}),this[_0x24c897(0x1ed)][_0x24c897(0xe0)](_0x13b143,{'interactionId':_0x45c9aa['id'],'replyId':_0x38947d['id'],'indexes':_0x45208a[_0x24c897(0xf7)]()}),this[_0x24c897(0x16c)](_0x38947d);}[_0x9b0b9b(0xdf)](_0x1b22f3,_0x4b3691){const _0x53f31=_0x9b0b9b,_0x4f3097=_0x652de9(this[_0x53f31(0x216)]),_0x7e55d9=this[_0x53f31(0x1a9)](_0x1b22f3,_0x4b3691),_0x18da6f=this[_0x53f31(0x216)][_0x53f31(0x1c7)][_0x53f31(0x1f2)](_0x82d960);if(!_0x7e55d9)return void _0x18da6f[_0x53f31(0x190)]();const {range:_0x56b2ca,currentIndex:_0x3a7fab,previousIndex:_0x4fa83b,nextIndex:_0x2efc39}=_0x7e55d9;if(_0x53f31(0x108)==_0x56b2ca[_0x53f31(0x114)][_0x53f31(0x1fa)]){const {reply:_0x26f597}=this[_0x53f31(0xec)](_0x1b22f3);return _0x26f597[_0x53f31(0x1f5)](_0x3a7fab,_0x53f31(0x147)),void _0x18da6f[_0x53f31(0x190)]();}if(this[_0x53f31(0x1da)]?.[_0x53f31(0x158)]==_0x1b22f3&&this[_0x53f31(0x1da)]?.[_0x53f31(0x1ad)]==_0x3a7fab)return;this[_0x53f31(0x1da)]={'replyId':_0x1b22f3,'partIndex':_0x3a7fab};const _0x594318=new _0x4b29c4(_0x4f3097[_0x53f31(0x18a)],{'showDiff':this[_0x53f31(0x12d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x53f31(0x176)},'hideHeader':!0x0}),{reply:_0x28c1c2}=this[_0x53f31(0xec)](_0x1b22f3),_0x5b0335=_0x5d6e00({'editor':_0x4f3097,'changeGroups':[_0x28c1c2[_0x53f31(0x15f)][_0x3a7fab]],'documentContextContent':_0x28c1c2[_0x53f31(0x142)],'showDiff':this[_0x53f31(0x12d)]});_0x594318[_0x53f31(0x19f)]({'parts':_0x5b0335,'renderingStrategy':_0x53f31(0x124)});const _0x51efad=_0x3a7fab!==_0x4fa83b;this[_0x53f31(0x1d4)](_0x56b2ca,!0x0),_0x18da6f[_0x53f31(0x211)]({'index':_0x3a7fab,'title':_0x19ae4a(this[_0x53f31(0x216)][_0x53f31(0x18a)],_0x53f31(0xfa),(_0x3a7fab+0x1)[_0x53f31(0x152)]()),'icon':_0xe41b23,'mainView':_0x594318,'showRotator':_0x51efad,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x56b2ca]}),this[_0x53f31(0x19a)][_0x53f31(0xfc)](_0x1b22f3,_0x3a7fab),this[_0x53f31(0xe5)](_0x594318,_0x53f31(0x1c2),(_0x2b8e64,{showDiff:_0xdbbc49})=>{const _0x5076be=_0x53f31;this[_0x5076be(0x12d)]=_0xdbbc49;const {reply:_0x5ca674}=this[_0x5076be(0xec)](_0x1b22f3),_0x37262b=_0x5d6e00({'editor':_0x4f3097,'changeGroups':[_0x5ca674[_0x5076be(0x15f)][_0x3a7fab]],'documentContextContent':_0x5ca674[_0x5076be(0x142)],'showDiff':_0xdbbc49});_0x594318[_0x5076be(0x19f)]({'parts':_0x37262b,'renderingStrategy':_0x5076be(0x124)});}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x17d),()=>{const _0x2549fc=_0x53f31;this[_0x2549fc(0xf5)]({'replyId':_0x1b22f3,'partIndex':_0x3a7fab}),_0x51efad?this[_0x2549fc(0xdf)](_0x1b22f3,_0x2efc39):_0x18da6f[_0x2549fc(0x190)]();}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x1b5),()=>{const _0x201089=_0x53f31;this[_0x201089(0x111)]({'replyId':_0x1b22f3,'partIndex':_0x3a7fab}),_0x51efad?this[_0x201089(0xdf)](_0x1b22f3,_0x2efc39):_0x18da6f[_0x201089(0x190)]();}),_0x51efad&&(this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x109),()=>{const _0x545060=_0x53f31;this[_0x545060(0xdf)](_0x1b22f3,_0x2efc39);}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0xda),()=>{const _0x3a87b3=_0x53f31;this[_0x3a87b3(0xdf)](_0x1b22f3,_0x4fa83b);})),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x1d8),()=>{const _0x145456=_0x53f31;this[_0x145456(0x1f0)](_0x18da6f),this[_0x145456(0x1f0)](_0x594318),this[_0x145456(0x1da)]=null;});}[_0x9b0b9b(0x1a9)](_0x4da299,_0x282c9e){const _0x3982f3=_0x9b0b9b,_0x19b3a4=_0x652de9(this[_0x3982f3(0x216)]),{reply:_0x3cf7f2,interaction:_0x124d44}=this[_0x3982f3(0xec)](_0x4da299),_0x2fcc3c=_0x3cf7f2[_0x3982f3(0x15f)][_0x3982f3(0x10e)](_0x1285b6=>_0x3982f3(0x219)==_0x1285b6[_0x3982f3(0x14a)]),_0x29706a=_0x2fcc3c[_0x3982f3(0x10c)](_0x3edffd=>_0x3cf7f2[_0x3982f3(0x15f)][_0x3982f3(0xe4)](_0x3edffd));void 0x0===_0x282c9e&&(_0x282c9e=_0x29706a[0x0]);const _0x4f9bb0=_0x29706a[_0x3982f3(0xe4)](_0x282c9e);if(-0x1==_0x4f9bb0)return null;const _0x2e5ef6=0x0==_0x4f9bb0?_0x29706a[_0x29706a[_0x3982f3(0x146)]-0x1]:_0x29706a[_0x4f9bb0-0x1],_0x3b46e3=_0x4f9bb0==_0x29706a[_0x3982f3(0x146)]-0x1?_0x29706a[0x0]:_0x29706a[_0x4f9bb0+0x1],_0x527d97=_0x2fcc3c[_0x4f9bb0],_0x1ad06e=new _0x2a273e([]),_0x4ba0dc=new _0x2a273e([]);for(const _0x2af511 of _0x527d97[_0x3982f3(0x15c)])if(_0x3982f3(0x139)!=_0x2af511[_0x3982f3(0x1ce)]&&_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x2af511[_0x3982f3(0x18d)][_0x3982f3(0x102)](!0x0)),_0x3982f3(0x11d)!=_0x2af511[_0x3982f3(0x1ce)]){const _0x9c434d=_0x4c173d(_0x5dc033=>_0x57bbe4(_0x5dc033,_0x3982f3(0x1ab))==_0x2af511['id'],_0x3cf7f2[_0x3982f3(0x142)],!0x0);_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x9c434d[_0x3982f3(0x102)](!0x0));}if(0x0==_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x146)]){if(_0x527d97[_0x3982f3(0x15c)][0x0][_0x3982f3(0x110)]){const _0x4f943c=_0x41407c(_0x3982f3(0x1ab),_0x527d97[_0x3982f3(0x15c)][0x0][_0x3982f3(0x110)],_0x3cf7f2[_0x3982f3(0x142)]);_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x20c)](_0x4f943c[_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x20c)](_0x4f943c[_0x3982f3(0x102)](!0x0)),_0x4f943c[_0x3982f3(0x16a)]&&(_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x4f943c[_0x3982f3(0x16a)][_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x4f943c[_0x3982f3(0x16a)][_0x3982f3(0x102)](!0x0)));}else{const _0x42fe0c=_0x3cf7f2[_0x3982f3(0x142)][_0x3982f3(0x1a6)][0x0];if(!_0x42fe0c)return null;_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x42fe0c[_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x42fe0c[_0x3982f3(0x102)](!0x0));}}const _0x44bd2b=_0x124d44[_0x3982f3(0x1af)](),_0x5818d6=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x44bd2b[_0x3982f3(0x115)]),_0x4c0282=_0x3e5089(_0x1ad06e),_0x28ae71=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x4c0282),_0x1d9364=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x4c0282),_0xebb229=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0xe2)](_0x28ae71,0x0),_0x52c322=_0x3e5089(_0x4ba0dc),_0x786ff4={'anchor':_0xebb229,'markDeletions':!0x1},_0x8956e6=_0x19b3a4[_0x3982f3(0x1c7)][_0x3982f3(0x1f2)](_0x581471)[_0x3982f3(0x171)](_0x4c0282,_0x52c322,_0x786ff4)[_0x3982f3(0xf9)]();if(!_0x8956e6[_0x3982f3(0x146)])return null;_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x14d)](_0x560e01=>{const _0x22ec6c=_0x3982f3;for(const _0x513a1a of _0x8956e6)if(_0x22ec6c(0x1f3)==_0x513a1a[_0x22ec6c(0x1ce)]){const _0x51ad4f=_0x513a1a[_0x22ec6c(0x175)],_0x2563d5=_0x513a1a[_0x22ec6c(0x141)],_0x57cc65=new _0x4b1e68(_0x51ad4f,_0x2563d5);_0x560e01[_0x22ec6c(0x117)][_0x22ec6c(0x1cf)](_0x57cc65),_0x19b3a4[_0x22ec6c(0x1be)][_0x22ec6c(0xd4)](_0x57cc65);}else _0x22ec6c(0x14e)!==_0x513a1a[_0x22ec6c(0x1ce)]&&(_0x513a1a[_0x22ec6c(0x145)]=null,_0x513a1a[_0x22ec6c(0x129)]=!0x1,_0x560e01[_0x22ec6c(0x117)][_0x22ec6c(0x1cf)](_0x513a1a),_0x19b3a4[_0x22ec6c(0x1be)][_0x22ec6c(0xd4)](_0x513a1a));});const _0x20e043=_0x171b69(_0x19b3a4,_0x8956e6,_0x28ae71);_0x371dd3(_0x19b3a4[_0x3982f3(0x1be)],_0x20e043);const _0x23cedb=_0x20e043[_0x3982f3(0x1c9)]()[_0x3982f3(0x170)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x559920=_0x20e043[_0x3982f3(0x1c9)]()[_0x3982f3(0x1e4)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x533c35=[];let _0x4b6d8d=_0x28ae71,_0x1fd734=_0x1d9364;for(let _0x453c9f=0x0;_0x453c9f<_0x559920[_0x3982f3(0x146)];_0x453c9f++){const _0x38ef78=_0x4b6d8d[_0x3982f3(0x1e0)]-_0x559920[_0x453c9f];_0x533c35[_0x453c9f]=_0x1fd734[_0x3982f3(0x1e0)]-_0x38ef78,_0x4b6d8d=_0x4b6d8d[_0x3982f3(0x1c3)](_0x559920[_0x453c9f]),_0x1fd734=_0x1fd734[_0x3982f3(0x1c3)](_0x533c35[_0x453c9f]);}const _0x30a449=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x206)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x1d9364,_0x23cedb),_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x1d9364,_0x533c35)),_0x1418d7=_0x1d9364[_0x3982f3(0x198)](0x0)[_0x3982f3(0x1de)](_0x21d2ae),_0x371772=Array[_0x3982f3(0x226)](_0x5818d6[_0x3982f3(0x1e9)]())[_0x3982f3(0x150)](_0xa87234=>_0xa87234[_0x3982f3(0x1de)](_0x21d2ae)==_0x1418d7)[_0x3982f3(0x1b1)](),_0x3301e7=_0x30a449[_0x3982f3(0x170)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x264f55=_0x30a449[_0x3982f3(0x1e4)][_0x3982f3(0x224)][_0x3982f3(0xf7)]();_0x3301e7[0x0]=_0x371772[0x0]+_0x3301e7[0x0],_0x264f55[0x0]=_0x371772[0x0]+_0x264f55[0x0];let _0x40ec8b=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x206)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x19e)](),_0x3301e7),_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x19e)](),_0x264f55));const _0x18be06=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x14b)][_0x3982f3(0xf9)](_0x44bd2b[_0x3982f3(0x15d)]);for(const _0x597207 of _0x18be06)_0x40ec8b=_0x2d44c0[_0x3982f3(0xdb)](_0x40ec8b[_0x3982f3(0x106)](_0x597207));return{'range':_0x40ec8b,'previousIndex':_0x2e5ef6,'nextIndex':_0x3b46e3,'currentIndex':_0x282c9e};}[_0x9b0b9b(0xea)](_0x5ec951){const _0x57cbda=_0x9b0b9b;if(!_0x5ec951[_0x57cbda(0x1c7)][_0x57cbda(0xdd)](_0x57cbda(0x195)))return;const _0x3caa40=_0x5ec951[_0x57cbda(0x1b9)][_0x57cbda(0x1f2)](_0x57cbda(0xef)),_0x16c6f8=_0x5ec951[_0x57cbda(0x1b9)][_0x57cbda(0x1f2)](_0x57cbda(0xe9));this[_0x57cbda(0xe5)](_0x3caa40,_0x57cbda(0x1f9),(_0x3c0bc3,_0x9d2df9,_0x54a4ee)=>{const _0x28c189=_0x57cbda,_0x2d0671=this[_0x28c189(0x1ed)][_0x28c189(0x1f2)](_0x9d2df9);if(!_0x2d0671)return;const _0x1bd8c6=this[_0x28c189(0x157)][_0x28c189(0x137)](_0x2d0671[_0x28c189(0xd9)])[_0x28c189(0x203)](_0x2d0671[_0x28c189(0x158)]);_0x2d0671[_0x28c189(0x187)][_0x28c189(0x156)](_0x1f248c=>_0x1bd8c6[_0x28c189(0x1f5)](_0x1f248c,_0x28c189(0x219))),this[_0x28c189(0x1ed)][_0x28c189(0x208)](_0x9d2df9),this[_0x28c189(0x1ed)][_0x28c189(0xe0)](_0x54a4ee,_0x2d0671);}),this[_0x57cbda(0xe5)](_0x16c6f8,_0x57cbda(0x1f9),(_0x29ba53,_0x31c993,_0x5efb7f)=>{const _0xee0532=_0x57cbda,_0x43ed7f=this[_0xee0532(0x1ed)][_0xee0532(0x1f2)](_0x31c993);if(!_0x43ed7f)return;const _0x2f7633=this[_0xee0532(0x157)][_0xee0532(0x137)](_0x43ed7f[_0xee0532(0xd9)])[_0xee0532(0x203)](_0x43ed7f[_0xee0532(0x158)]);_0x43ed7f[_0xee0532(0x187)][_0xee0532(0x156)](_0x2e9db8=>_0x2f7633[_0xee0532(0x1f5)](_0x2e9db8,_0xee0532(0x138))),this[_0xee0532(0x1ed)][_0xee0532(0x208)](_0x31c993),this[_0xee0532(0x1ed)][_0xee0532(0xe0)](_0x5efb7f,_0x43ed7f);});}async[_0x9b0b9b(0x10d)](_0x5aa50c){const _0x40daef=_0x9b0b9b;this[_0x40daef(0x216)][_0x40daef(0x1c7)][_0x40daef(0x1f2)](_0x82d960)[_0x40daef(0x190)](),this[_0x40daef(0x19a)][_0x40daef(0x132)](_0x40daef(0x124)),this[_0x40daef(0x19a)][_0x40daef(0x1ac)](!0x0),await this[_0x40daef(0x16f)]();try{const _0x4ece92=this[_0x40daef(0x216)][_0x40daef(0x1c7)][_0x40daef(0x1f2)](_0x43e068);this[_0x40daef(0x1a5)]('\x20'),_0x4ece92[_0x40daef(0x16e)][_0x40daef(0x1b8)](_0x40daef(0x17c)),await this[_0x40daef(0x14c)](_0x5aa50c);const {sessionId:_0x4f0999}=this[_0x40daef(0x11e)][_0x40daef(0x1ef)]();await this[_0x40daef(0x157)][_0x40daef(0x214)](_0x5aa50c,_0x4f0999),this[_0x40daef(0x157)][_0x40daef(0x1bd)]()&&this[_0x40daef(0x157)][_0x40daef(0x1fc)](_0x19ae4a(this[_0x40daef(0x216)][_0x40daef(0x18a)],_0x40daef(0x140)));}catch(_0x42b1a7){console[_0x40daef(0x17e)](_0x40daef(0x1ee),_0x42b1a7);}finally{this[_0x40daef(0x19a)][_0x40daef(0x132)](_0x40daef(0x149)),this[_0x40daef(0x19a)][_0x40daef(0x1ac)](!0x1);}}[_0x9b0b9b(0x15e)](_0x25a9c6){const _0x283797=_0x9b0b9b;this[_0x283797(0x157)]['id']===_0x25a9c6&&this[_0x283797(0x14c)]();}async[_0x9b0b9b(0x12e)](){const _0x3b96fc=_0x9b0b9b,_0x572ce0=this[_0x3b96fc(0x11e)][_0x3b96fc(0x11c)]();this[_0x3b96fc(0x157)]?.[_0x3b96fc(0x153)](_0x572ce0),this[_0x3b96fc(0x157)]?.[_0x3b96fc(0x1fc)](_0x19ae4a(this[_0x3b96fc(0x216)][_0x3b96fc(0x18a)],_0x3b96fc(0x140)));}[_0x9b0b9b(0xf6)](){const _0x3b4bf2=_0x9b0b9b;this[_0x3b4bf2(0x157)]?.[_0x3b4bf2(0x1fd)]();}[_0x9b0b9b(0x1e6)](){const _0x1fba5b=_0x9b0b9b;this[_0x1fba5b(0x19a)][_0x1fba5b(0x1e6)]();}async[_0x9b0b9b(0x1bf)](){const _0x1c1f15=_0x9b0b9b;await this[_0x1c1f15(0x14c)]();}async[_0x9b0b9b(0x17b)]({message:_0x3a21fa,quickActionData:_0x43e9cc}){const _0x5cc8e7=_0x9b0b9b;await this[_0x5cc8e7(0x155)]({'userMessage':_0x3a21fa,'quickActionData':_0x43e9cc});}[_0x9b0b9b(0x192)](){const _0x3454bf=_0x9b0b9b,_0x16992b=this[_0x3454bf(0x216)][_0x3454bf(0x165)][_0x3454bf(0x1f2)](_0x3454bf(0x127));if(!_0x16992b)throw new _0x30fa1e(_0x3454bf(0x212),this);return _0x16992b;}async[_0x9b0b9b(0x14c)](_0x3a6b45){const _0x668a0b=_0x9b0b9b;try{this[_0x668a0b(0x19a)][_0x668a0b(0x103)](),await this[_0x668a0b(0xfe)](_0x3a6b45);}catch(_0x2776e3){_0xd99304(_0x668a0b(0x201),_0x2776e3),this[_0x668a0b(0x157)]=void 0x0,this[_0x668a0b(0x19a)][_0x668a0b(0x12a)]();}}async[_0x9b0b9b(0xfe)](_0x50040b){const _0x37a2c6=_0x9b0b9b,_0x1325a3=this[_0x37a2c6(0x216)][_0x37a2c6(0x1c7)][_0x37a2c6(0x1f2)](_0x82d960);let _0x191e72;_0x1325a3[_0x37a2c6(0x126)]&&_0x1325a3[_0x37a2c6(0x190)](),_0x50040b||!this[_0x37a2c6(0x157)]?_0x191e72=this[_0x37a2c6(0x216)][_0x37a2c6(0x165)][_0x37a2c6(0x1f2)](_0x37a2c6(0xfd)):this[_0x37a2c6(0x19a)][_0x37a2c6(0x193)]&&(_0x191e72=this[_0x37a2c6(0x157)][_0x37a2c6(0x122)]['id']),await this[_0x37a2c6(0x16f)]();const _0x4d0b93=this[_0x37a2c6(0x192)](),_0x29edf8=_0x50040b||_0x4a61b3();this[_0x37a2c6(0x157)]=new _0x1a8029({'connector':this[_0x37a2c6(0x220)],'chatModels':this[_0x37a2c6(0x13b)],'selectedModelId':_0x191e72,'conversationId':_0x29edf8,'group':_0x4d0b93,'getEditor':()=>_0x652de9(this[_0x37a2c6(0x216)])}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xed),(_0x30af37,_0x3b4200)=>{const _0x50fd27=_0x37a2c6;this[_0x50fd27(0x19a)][_0x50fd27(0x182)](_0x3b4200),this[_0x50fd27(0x19a)][_0x50fd27(0x225)](),this[_0x50fd27(0x19a)][_0x50fd27(0x128)](),this[_0x50fd27(0x19a)][_0x50fd27(0x14f)](),_0x50040b||(this[_0x50fd27(0x19a)][_0x50fd27(0x209)](),this[_0x50fd27(0x157)]?.[_0x50fd27(0x1fc)](_0x19ae4a(this[_0x50fd27(0x216)][_0x50fd27(0x18a)],_0x50fd27(0x140))));}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1dc),(_0x44375a,_0x2e43d9)=>{const _0x35f0c9=_0x37a2c6;this[_0x35f0c9(0x19a)][_0x35f0c9(0x1a0)](_0x2e43d9[_0x35f0c9(0x21f)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd3),(_0x5cfe42,_0x29fed3)=>{const _0x165173=_0x37a2c6;this[_0x165173(0x19a)][_0x165173(0x119)](_0x29fed3);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd8),()=>{const _0x388f78=_0x37a2c6;this[_0x388f78(0x19a)][_0x388f78(0x1b2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xeb),()=>{const _0x5658b6=_0x37a2c6;this[_0x5658b6(0x19a)][_0x5658b6(0x1b2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x189),(_0x143879,_0x2da495)=>{const _0x5ae694=_0x37a2c6;this[_0x5ae694(0x19a)][_0x5ae694(0x1f7)](_0x2da495,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x196),(_0x592c34,_0x242655)=>{const _0x2a5e7e=_0x37a2c6;this[_0x2a5e7e(0x19a)][_0x2a5e7e(0x1f7)](_0x242655,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1e5),()=>{const _0x5bd149=_0x37a2c6;this[_0x5bd149(0x19a)][_0x5bd149(0x217)]();}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x121),async()=>{const _0x4a03fe=_0x37a2c6;await this[_0x4a03fe(0x19a)][_0x4a03fe(0x163)]();}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x107),(_0x24d453,_0x342653)=>{const _0x566955=_0x37a2c6;this[_0x566955(0x19a)][_0x566955(0x18e)](_0x342653['id']);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1c6),(_0x47f2b3,_0x3fa995,_0x47d81e)=>{const _0x5aa7fc=_0x37a2c6;this[_0x5aa7fc(0x1a5)](_0x3fa995,_0x47d81e);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1ea),(_0x3110ed,_0x4e6eba)=>{const _0x55d0f9=_0x37a2c6;_0x55d0f9(0x199)===_0x4e6eba[_0x55d0f9(0x1ce)]?this[_0x55d0f9(0x19a)][_0x55d0f9(0x10f)](_0x4e6eba):this[_0x55d0f9(0x19a)][_0x55d0f9(0x167)](_0x4e6eba);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1aa),async(_0x101ec4,_0x55554d,_0x355ae3)=>{const _0x3c45ce=_0x37a2c6;await this[_0x3c45ce(0x184)]({'reply':_0x55554d,'changeGroups':_0x355ae3});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x166),(_0x26bcd3,{reply:_0x536ef1,index:_0x4a0e33,state:_0x388c14})=>{const _0x9205=_0x37a2c6;this[_0x9205(0x19a)][_0x9205(0x1d3)]({'id':_0x536ef1['id'],'index':_0x4a0e33,'state':_0x388c14});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x18b),(_0x21284b,_0x3cbab7)=>{const _0xb65771=_0x37a2c6;if(this[_0xb65771(0x19a)][_0xb65771(0x1a7)](_0x3cbab7[_0xb65771(0x100)],_0x3cbab7[_0xb65771(0x123)]),_0xb65771(0x159)===_0x3cbab7[_0xb65771(0x100)][_0xb65771(0x1ce)]){const _0x22f275=[..._0x652de9(this[_0xb65771(0x216)])[_0xb65771(0x1be)][_0xb65771(0x17f)][_0xb65771(0x159)][_0xb65771(0x1e7)]()];this[_0xb65771(0x11e)][_0xb65771(0x148)](_0x22f275,_0xb65771(0x17a)+this[_0xb65771(0x157)]?.['id']);}}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x11a),(_0x106732,_0x5497b4)=>{const _0xa547d8=_0x37a2c6;this[_0xa547d8(0x19a)][_0xa547d8(0x218)](_0x5497b4[_0xa547d8(0x1c0)]),_0xa547d8(0x1a2)==_0x5497b4[_0xa547d8(0x1c0)]&&this[_0xa547d8(0xf6)](),_0xa547d8(0x159)===_0x5497b4[_0xa547d8(0x1ce)]&&this[_0xa547d8(0x11e)][_0xa547d8(0xe8)](_0xa547d8(0x17a)+this[_0xa547d8(0x157)]?.['id']);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x101),(_0x2bc266,_0x3e239e)=>{const _0x129455=_0x37a2c6;this[_0x129455(0x19a)][_0x129455(0x1c8)](_0x3e239e[_0x129455(0x100)][_0x129455(0x1c0)],_0x3e239e[_0x129455(0x123)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1df),(_0x2a2cbf,_0x2767d3)=>{const _0x250bfa=_0x37a2c6;this[_0x250bfa(0x19a)][_0x250bfa(0x174)](_0x2767d3[_0x250bfa(0x168)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd5),(_0x36055b,_0x58f863)=>{const _0x150062=_0x37a2c6;this[_0x150062(0x19a)][_0x150062(0x186)](_0x58f863[_0x150062(0x194)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1e1),(_0x5e4135,_0x12ac1e)=>{const _0x354ad6=_0x37a2c6;this[_0x354ad6(0x19a)][_0x354ad6(0x21d)](_0x12ac1e[_0x354ad6(0x1ba)],_0x12ac1e[_0x354ad6(0x197)],_0x12ac1e[_0x354ad6(0x1a1)],_0x12ac1e[_0x354ad6(0x1ca)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x21c),(_0x2361bb,_0x5ef8aa)=>{const _0xb86b60=_0x37a2c6;this[_0xb86b60(0x19a)][_0xb86b60(0x12b)](_0x5ef8aa[_0xb86b60(0x1ba)],_0x5ef8aa[_0xb86b60(0x1d2)],_0x5ef8aa[_0xb86b60(0x179)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x161),(_0x20fc93,_0x409c0c)=>{const _0x1f0cec=_0x37a2c6;this[_0x1f0cec(0x19a)][_0x1f0cec(0x1eb)](_0x409c0c);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x135),(_0x5c3b98,_0x25094e)=>{const _0x141732=_0x37a2c6;this[_0x141732(0x19a)][_0x141732(0xde)](_0x25094e[_0x141732(0x122)],_0x25094e[_0x141732(0x19d)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x17e),(_0xa5b21d,{error:_0x2a5062,interactionId:_0x67b7eb,fileName:_0x1a60a5,url:_0x5d37cb,sourceId:_0x5d9280,sourceLabel:_0x47bf4c})=>{const _0x48b664=_0x37a2c6,_0x3f14bb=_0x67b7eb?_0x67b7eb+':'+_0x4a61b3():_0x4a61b3();_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x13a))?this[_0x48b664(0x19a)][_0x48b664(0x1dd)]({'staticMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0xe6)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x11b))||_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x201))?(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0xe7)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x21a))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x160),_0x1a60a5),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x118))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x223),_0x5d37cb),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x10b))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x177)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1fb))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x1f8)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1a3))?(_0x5d9280&&this[_0x48b664(0x19a)][_0x48b664(0x120)](_0x5d9280),this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x215),_0x47bf4c||_0x48b664(0x197)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1a8))?(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x1d0)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x169)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062));}),await this[_0x37a2c6(0x157)][_0x37a2c6(0x19c)](this[_0x37a2c6(0x216)][_0x37a2c6(0x165)][_0x37a2c6(0x1f2)](_0x37a2c6(0x164))),_0x50040b||await this[_0x37a2c6(0x157)][_0x37a2c6(0x170)]();}async[_0x9b0b9b(0x155)]({userMessage:_0x241391,quickActionData:_0x13a09f}){const _0x472784=_0x9b0b9b;if(!this[_0x472784(0x157)])throw new _0x30fa1e(_0x472784(0x183));this[_0x472784(0x157)][_0x472784(0x18c)]()&&await this[_0x472784(0x157)][_0x472784(0x162)](this[_0x472784(0x11e)][_0x472784(0x1ef)]()),this[_0x472784(0x157)]['id']&&this[_0x472784(0x157)][_0x472784(0xf4)]&&await this[_0x472784(0x157)][_0x472784(0x11f)]({'userMessage':_0x241391,'quickActionData':_0x13a09f}),this[_0x472784(0x172)]();}[_0x9b0b9b(0x172)](){const _0x2d487b=_0x9b0b9b,_0xf97b6f=_0x652de9(this[_0x2d487b(0x216)])[_0x2d487b(0x1be)],_0xc2056d=Array[_0x2d487b(0x226)](_0xf97b6f[_0x2d487b(0x116)][_0x2d487b(0x1ff)](_0x3f37cf));_0xf97b6f[_0x2d487b(0x14d)](_0x348107=>{const _0x1f1ef9=_0x2d487b;_0xc2056d[_0x1f1ef9(0x156)](_0x9e45a2=>_0x348107[_0x1f1ef9(0x1ae)](_0x9e45a2));});}[_0x9b0b9b(0x1cc)](){const _0x48da9e=_0x9b0b9b;console[_0x48da9e(0x1f4)](_0x48da9e(0x204));}[_0x9b0b9b(0x1db)](_0x47a94e){const _0x67ebab=_0x9b0b9b;this[_0x67ebab(0x19a)][_0x67ebab(0x1c4)](_0x47a94e);}[_0x9b0b9b(0x154)](_0x432ec3){const _0x593453=_0x9b0b9b;_0xd99304(_0x432ec3[_0x593453(0x1a4)]);}[_0x9b0b9b(0x21b)](_0x57eec0){const _0x4c1d90=_0x9b0b9b;this[_0x4c1d90(0x157)]?.[_0x4c1d90(0xd1)](_0x57eec0);}[_0x9b0b9b(0x221)](){const _0x3c81ba=_0x9b0b9b;this[_0x3c81ba(0x157)]?.[_0x3c81ba(0x1cb)]();}[_0x9b0b9b(0xf1)](){const _0x291815=_0x9b0b9b;this[_0x291815(0x157)]?.[_0x291815(0x1e3)]();}[_0x9b0b9b(0xec)](_0x226f1b){const _0xbcf59d=_0x9b0b9b,[_0x1464a7,_0x19dffd]=_0x226f1b[_0xbcf59d(0x1bc)](':'),_0xb8f470=this[_0xbcf59d(0x157)][_0xbcf59d(0x137)](_0x1464a7),_0x447c34=_0xb8f470[_0xbcf59d(0x203)](_0x19dffd);return{'interaction':_0xb8f470,'reply':_0x447c34};}[_0x9b0b9b(0x1d4)](_0x5f06a8,_0x17e948=!0x1){const _0x4fd99f=_0x9b0b9b,_0x47299e=_0x652de9(this[_0x4fd99f(0x216)]),_0x5efa9c={'target':_0x47299e[_0x4fd99f(0x19b)][_0x4fd99f(0x16e)][_0x4fd99f(0x1e8)][_0x4fd99f(0x16b)](_0x47299e[_0x4fd99f(0x19b)][_0x4fd99f(0x12f)][_0x4fd99f(0x143)](_0x5f06a8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x17e948};_0x17e948&&(_0x5efa9c[_0x4fd99f(0x112)]=!0x0),_0x33a9d6(_0x5efa9c);}[_0x9b0b9b(0x1a5)](_0x3d0a14,_0x42b438=!0x1){const _0x3a9645=_0x9b0b9b;this[_0x3a9645(0x19a)][_0x3a9645(0x1c6)](_0x3d0a14||_0x19ae4a(this[_0x3a9645(0x216)][_0x3a9645(0x18a)],_0x3a9645(0x181)),_0x42b438);}async[_0x9b0b9b(0x184)]({reply:_0x312fb8,changeGroups:_0x18ca17,renderingStrategy:_0x1f561d}){const _0x47571e=_0x9b0b9b,{id:_0x33cbcd,isDone:_0xb38812,type:_0x40adb8,parsedContent:_0x288e46}=_0x312fb8;if(_0x47571e(0xe3)===_0x40adb8){const _0x2ed284=_0x652de9(this[_0x47571e(0x216)]),_0x4b1fa1=_0x5d6e00({'editor':_0x2ed284,'showDiff':this[_0x47571e(0x19a)][_0x47571e(0xd7)],'changeGroups':_0x18ca17,'documentContextContent':_0x312fb8[_0x47571e(0x142)]});await this[_0x47571e(0x19a)][_0x47571e(0xf3)]({'id':_0x33cbcd,'parts':_0x4b1fa1,'renderingStrategy':_0x1f561d,'isDone':_0xb38812});}else _0x47571e(0x199)===_0x40adb8&&await this[_0x47571e(0x19a)][_0x47571e(0x130)]({'id':_0x33cbcd,'parsedContent':_0x288e46,'renderingStrategy':_0x1f561d,'isDone':_0xb38812});_0xb38812&&_0x312fb8[_0x47571e(0x1fe)][_0x47571e(0x146)]>0x0&&this[_0x47571e(0x19a)][_0x47571e(0x185)](_0x33cbcd,_0x312fb8[_0x47571e(0x1fe)]);}async[_0x9b0b9b(0x16f)](){const _0x5b7af7=_0x9b0b9b,_0x944079=this[_0x5b7af7(0x157)]?.[_0x5b7af7(0xff)];_0x944079&&(_0x944079[_0x5b7af7(0x1f6)](),this[_0x5b7af7(0x19a)][_0x5b7af7(0x134)](_0x944079));}async[_0x9b0b9b(0x105)](){const _0x27890f=_0x9b0b9b,_0x23a164=this[_0x27890f(0x157)]?.[_0x27890f(0xff)];if(_0x23a164){for await(const _0x5b5cfc of _0x23a164[_0x27890f(0x136)])await this[_0x27890f(0x184)]({'reply':_0x5b5cfc,'changeGroups':_0x5b5cfc[_0x27890f(0x15f)],'renderingStrategy':_0x27890f(0x124)});}}[_0x9b0b9b(0x16c)](_0x50be0c){const _0x406ba3=_0x9b0b9b,_0x2f1018={'positiveCount':_0x50be0c[_0x406ba3(0x15f)][_0x406ba3(0x10e)](_0x37fef5=>_0x406ba3(0x138)===_0x37fef5[_0x406ba3(0x14a)])[_0x406ba3(0x146)],'totalCount':_0x50be0c[_0x406ba3(0x15f)][_0x406ba3(0x146)]},_0x3e02da=this[_0x406ba3(0x157)][_0x406ba3(0x137)](_0x50be0c[_0x406ba3(0xd9)])[_0x406ba3(0x13d)];this[_0x406ba3(0x220)][_0x406ba3(0x210)](this[_0x406ba3(0x157)]['id'],_0x3e02da,_0x2f1018);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x96ee03=_0x5da8;(function(_0x55c0e0,_0x4ee2da){const _0x5153af=_0x5da8,_0x28ffb7=_0x55c0e0();while(!![]){try{const _0x3e6c81=-parseInt(_0x5153af(0x230))/0x1+-parseInt(_0x5153af(0x249))/0x2*(-parseInt(_0x5153af(0x20d))/0x3)+parseInt(_0x5153af(0x1b6))/0x4*(-parseInt(_0x5153af(0x1c3))/0x5)+-parseInt(_0x5153af(0x1e3))/0x6*(-parseInt(_0x5153af(0x234))/0x7)+-parseInt(_0x5153af(0x1c8))/0x8+-parseInt(_0x5153af(0x1e6))/0x9*(-parseInt(_0x5153af(0x1ab))/0xa)+parseInt(_0x5153af(0x1c0))/0xb;if(_0x3e6c81===_0x4ee2da)break;else _0x28ffb7['push'](_0x28ffb7['shift']());}catch(_0x16e4d5){_0x28ffb7['push'](_0x28ffb7['shift']());}}}(_0x3b66,0x77137));function _0x5da8(_0x1bf337,_0x2436a4){const _0x3b66fe=_0x3b66();return _0x5da8=function(_0x5da85a,_0x2a9386){_0x5da85a=_0x5da85a-0x1a8;let _0x4440c5=_0x3b66fe[_0x5da85a];return _0x4440c5;},_0x5da8(_0x1bf337,_0x2436a4);}import{ContextPlugin as _0x2db6d2}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5ae8f3}from'ckeditor5/src/utils.js';import{AIChatView as _0xfd39a8}from'./ui/aichatview.js';import{AITabs as _0x1ee438}from'../aitabs/aitabs.js';import{getTranslation as _0x583fee}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x547b2f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1bd4c9}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2f323a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f74b4}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x3b66(){const _0x30058e=['disableModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','bind','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AI_CHAT_WELCOME_MESSAGE','capabilities','isDisabled','isReasoningEnabled','last','toggleLoadingSkeleton','setLoadingMessage','_interactionPromiseResolver','chatFeed','isVisible','setIsUploadInProgress','isDone','_view','markItemAsDone','setWebSearch','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','length','213dJLOjx','streaming','_titleAnimationInterval','focusPromptInput','areActionsDisabled','_isTrackChangesCommandValueBound','user-message','setContextItemLoading','_animateConversationTitle','error-message','setSelectedModel','pluginName','isTrackChangesOn','setConversationTitle','updateResourceState','abort','options','showDiff','stopInteraction','chatControls','removeItem','resetConversationTitle','find','removeFeedInteraction','<p>','setAddContextOptions','ai.availableReplyActions','updateFeedItemAIReplySuggestionPartState','showResizeButton','isOfficialPlugin','startsWith','addItem','updateWebSources','setReasoning','get','832552mEhlbu','quickActionData','isBusy','locale','1057mNnvEW','delegate','scrollToSuggestion','addFeedItemAISuggestion','conversation-start','addFeedItemAIReply','requires','startInteraction','clear','setConversationContext','scrollFeedToSuggestion','updateCapabilities','label','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_promiseQueue','queueEmptyPromise','isWebSearchEnabled','trackChanges','isModelAvailable','isMaximized','10078lzjDnL','resetMessageInput','updateSuggestionItem','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','updateFeedItemAIReplySuggestionContent','160TyFKul','clearPendingContextUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','then','AIChatUI','createConversation','forEach','startAutoScroll','updateSuggestionPartState','ai-reply','closeSourceResourceBalloon','12mXPiOv','filter','setIsMaximized','value','availableModels','ai.chat.models.modelSelectorAlwaysVisible','interactionId','AI_CHAT_HEADING','addContextItem','populateSourceResourceBalloon','7858345DGpHZv','enqueue','addFeedInteractionHeader','1320055oMeQoL','renderingStrategy','setModel','from','updateFeedItemAIReplySources','20976DWRYbP','_getLoadingMessage','enableControls','addFeedItemStaticMessage','isPending','set','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateFeedItemAIReplyContent','destroy','addFeedItemError','setFeedItemRenderingStrategy','markFeedItemAsDone','setModelList','updateFeedInteractionHeader','plugins','ai-suggestion-reply','chatHeader','displayedPrompt','context','addTab','getItemIds','view','</p>','removeContextItem','setInputPlaceholder','stopAutoScroll','14244kdnDcE','toggleSuggestionDisplayMode','isLoading','384921lAwwNk','remove','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','children','chat','addFeedItemUserMessage','interaction-header','clearConversationContextUI','AITabs','feedItemRenderingStrategy','contextItems','values','isPremiumPlugin','disableControls','_getInputPlaceholder','config'];_0x3b66=function(){return _0x30058e;};return _0x3b66();}import{getEditorFromContext as _0x5c9005}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x2db6d2{static get[_0x96ee03(0x23a)](){return[_0x1ee438];}[_0x96ee03(0x206)];static get[_0x96ee03(0x218)](){const _0x11d963=_0x96ee03;return _0x11d963(0x1af);}static get[_0x96ee03(0x22a)](){return!0x0;}static get[_0x96ee03(0x1f2)](){return!0x0;}[_0x96ee03(0x1ef)]=_0x96ee03(0x20e);[_0x96ee03(0x21e)]=!0x0;[_0x96ee03(0x243)];[_0x96ee03(0x201)];[_0x96ee03(0x20f)]=void 0x0;[_0x96ee03(0x212)]=!0x1;constructor(_0xf7cbf3){const _0x50b0a7=_0x96ee03;super(_0xf7cbf3);const _0x5cbe22=this[_0x50b0a7(0x1db)][_0x50b0a7(0x1d7)][_0x50b0a7(0x22f)](_0x50b0a7(0x1ee));this[_0x50b0a7(0x1cd)](_0x50b0a7(0x232),!0x1),this[_0x50b0a7(0x243)]=new _0x2f323a(),this[_0x50b0a7(0x206)]=new _0xfd39a8(this[_0x50b0a7(0x1db)][_0x50b0a7(0x233)],_0x5cbe22[_0x50b0a7(0x229)]),this[_0x50b0a7(0x206)][_0x50b0a7(0x235)](..._0x3f74b4)['to'](this),this[_0x50b0a7(0x206)]['on'](_0x50b0a7(0x1e4),(_0x3ba778,{showDiff:_0x2a07ff})=>{const _0x577df4=_0x50b0a7;this[_0x577df4(0x21e)]=_0x2a07ff;}),_0x5cbe22[_0x50b0a7(0x1de)][_0x50b0a7(0x1dc)]({'id':_0x50b0a7(0x1ea),'buttonLabel':_0x583fee(this[_0x50b0a7(0x1db)][_0x50b0a7(0x233)],_0x50b0a7(0x1bd)),'buttonIcon':_0x547b2f,'order':0x0,'content':this[_0x50b0a7(0x206)]}),this[_0x50b0a7(0x206)][_0x50b0a7(0x220)][_0x50b0a7(0x1f8)](_0x50b0a7(0x1e5))['to'](this,_0x50b0a7(0x232),_0x18a8b7=>_0x18a8b7),this[_0x50b0a7(0x206)][_0x50b0a7(0x202)][_0x50b0a7(0x1f8)](_0x50b0a7(0x1cc))['to'](this,_0x50b0a7(0x232),_0x563d2a=>_0x563d2a),this[_0x50b0a7(0x206)][_0x50b0a7(0x220)][_0x50b0a7(0x1e1)](this[_0x50b0a7(0x1f4)]()),this[_0x50b0a7(0x1f8)](_0x50b0a7(0x247))['to'](this[_0x50b0a7(0x206)][_0x50b0a7(0x220)],_0x50b0a7(0x247));}[_0x96ee03(0x1d1)](){const _0xe0d1fd=_0x96ee03;super[_0xe0d1fd(0x1d1)](),this[_0xe0d1fd(0x20f)]&&clearInterval(this[_0xe0d1fd(0x20f)]);}[_0x96ee03(0x1b0)](_0xb35c6c){const _0x36c4fa=_0x96ee03;this[_0x36c4fa(0x206)][_0x36c4fa(0x202)][_0x36c4fa(0x23c)](),this[_0x36c4fa(0x206)][_0x36c4fa(0x220)][_0x36c4fa(0x209)](),this[_0x36c4fa(0x206)][_0x36c4fa(0x220)][_0x36c4fa(0x1d5)](_0xb35c6c[_0x36c4fa(0x1ba)],!this[_0x36c4fa(0x1db)][_0x36c4fa(0x1f5)][_0x36c4fa(0x22f)](_0x36c4fa(0x1bb))),this[_0x36c4fa(0x1cb)]({'id':_0x36c4fa(0x238),'staticMessage':_0x583fee(this[_0x36c4fa(0x1db)][_0x36c4fa(0x233)],_0x36c4fa(0x1fa))});}[_0x96ee03(0x1cb)]({id:_0x47ebdb,staticMessage:_0x1ebf44}){const _0x269063=_0x96ee03;this[_0x269063(0x206)][_0x269063(0x202)][_0x269063(0x22c)](_0x269063(0x1b4),{'id':_0x47ebdb,'initialContent':_0x269063(0x225)+_0x1ebf44+_0x269063(0x1df)});}[_0x96ee03(0x1eb)](_0x29cec3){const _0xf6324f=_0x96ee03,_0x4ea37a=_0x29cec3[_0xf6324f(0x231)]?.[_0xf6324f(0x1da)]||_0x29cec3[_0xf6324f(0x1a8)];this[_0xf6324f(0x206)][_0xf6324f(0x202)][_0xf6324f(0x22c)](_0xf6324f(0x213),{'contextItems':Array[_0xf6324f(0x1c6)](_0x29cec3[_0xf6324f(0x1f0)][_0xf6324f(0x1f1)]()),'initialContent':_0xf6324f(0x225)+_0x4ea37a+_0xf6324f(0x1df),'id':_0x29cec3['id']});}[_0x96ee03(0x1d2)]({errorMessage:_0x27b757,id:_0x5e1018}){const _0x3e4fb9=_0x96ee03;this[_0x3e4fb9(0x206)][_0x3e4fb9(0x202)][_0x3e4fb9(0x22c)](_0x3e4fb9(0x216),{'initialContent':_0x3e4fb9(0x225)+_0x27b757+_0x3e4fb9(0x1df),'id':_0x5e1018});}[_0x96ee03(0x239)](_0x1850a1){const _0x4bdd02=_0x96ee03;return this[_0x4bdd02(0x243)][_0x4bdd02(0x1c1)](async()=>{const _0x1e5eec=_0x4bdd02;this[_0x1e5eec(0x206)][_0x1e5eec(0x202)][_0x1e5eec(0x22c)](_0x1e5eec(0x1b4),{'id':_0x1850a1[_0x1e5eec(0x1bc)]+':'+_0x1850a1['id']}),this[_0x1e5eec(0x200)](null);});}async[_0x96ee03(0x237)](_0x40b253){const _0x4a53e5=_0x96ee03,_0x3e5e8f=_0x5c9005(this[_0x4a53e5(0x1db)]);if(_0x3e5e8f){const _0xbb842f=_0x3e5e8f[_0x4a53e5(0x20b)][_0x4a53e5(0x22f)](_0x4a53e5(0x246));_0xbb842f&&!this[_0x4a53e5(0x212)]&&(this[_0x4a53e5(0x212)]=!0x0,this[_0x4a53e5(0x206)][_0x4a53e5(0x202)][_0x4a53e5(0x1f8)](_0x4a53e5(0x219))['to'](_0xbb842f,_0x4a53e5(0x1b9)));}return this[_0x4a53e5(0x243)][_0x4a53e5(0x1c1)](async()=>{const _0x2f3fa0=_0x4a53e5;this[_0x2f3fa0(0x206)][_0x2f3fa0(0x202)][_0x2f3fa0(0x22c)](_0x2f3fa0(0x1d8),{'id':_0x40b253[_0x2f3fa0(0x1bc)]+':'+_0x40b253['id'],'areActionsDisabled':_0x40b253[_0x2f3fa0(0x211)],'showDiff':this[_0x2f3fa0(0x21e)],'dropdownConfig':this[_0x2f3fa0(0x1db)][_0x2f3fa0(0x1f5)][_0x2f3fa0(0x22f)](_0x2f3fa0(0x227))}),this[_0x2f3fa0(0x200)](null);});}[_0x96ee03(0x1c2)](_0x2a8385,_0x2aabfe){const _0x4778d6=_0x96ee03,_0x5b5984=this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x1e9)][_0x4778d6(0x1fe)];if(_0x5b5984 instanceof _0x1bd4c9)return this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x1e9)][_0x4778d6(0x1e7)](_0x5b5984),void this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x22c)](_0x4778d6(0x1ec),{'id':_0x2a8385['id'],'capabilities':{'isWebSearchEnabled':_0x5b5984[_0x4778d6(0x1fb)][_0x4778d6(0x245)]||_0x2aabfe[_0x4778d6(0x245)],'isReasoningEnabled':_0x5b5984[_0x4778d6(0x1fb)][_0x4778d6(0x1fd)]||_0x2aabfe[_0x4778d6(0x1fd)]}});this[_0x4778d6(0x206)][_0x4778d6(0x202)][_0x4778d6(0x22c)](_0x4778d6(0x1ec),{'id':_0x2a8385['id'],'capabilities':_0x2aabfe});}[_0x96ee03(0x1d6)](_0x3fc664){const _0x21bd3f=_0x96ee03,_0xddfe37=this[_0x21bd3f(0x206)][_0x21bd3f(0x202)][_0x21bd3f(0x1e9)][_0x21bd3f(0x223)](_0x2c1138=>_0x2c1138[_0x21bd3f(0x21d)]['id']==_0x3fc664['id']&&_0x2c1138 instanceof _0x1bd4c9);_0xddfe37&&_0xddfe37[_0x21bd3f(0x1cd)](_0x21bd3f(0x203),_0x3fc664[_0x21bd3f(0x203)]);}async[_0x96ee03(0x1d0)](_0x6ec4fb){const _0x18450c=_0x96ee03,_0x20f52b=_0x6ec4fb[_0x18450c(0x1c4)]||this[_0x18450c(0x1ef)];return this[_0x18450c(0x243)][_0x18450c(0x1c1)](async _0x402c4a=>{const _0x526f0d=_0x18450c;await this[_0x526f0d(0x206)][_0x526f0d(0x202)][_0x526f0d(0x241)]({..._0x6ec4fb,'abortSignal':_0x402c4a,'renderingStrategy':_0x20f52b}),_0x6ec4fb[_0x526f0d(0x205)]&&this[_0x526f0d(0x1d4)](_0x6ec4fb['id']);});}[_0x96ee03(0x1c7)](_0x50fad2,_0x10fb99){const _0x5a807a=_0x96ee03;this[_0x5a807a(0x206)][_0x5a807a(0x202)][_0x5a807a(0x22d)](_0x50fad2,_0x10fb99);}async[_0x96ee03(0x1aa)](_0x5cb161){const _0x310b4a=_0x96ee03,_0x24ee11=_0x5cb161[_0x310b4a(0x1c4)]||this[_0x310b4a(0x1ef)];return this[_0x310b4a(0x243)][_0x310b4a(0x1c1)](async _0x9bc1f4=>{const _0x287d3c=_0x310b4a;await this[_0x287d3c(0x206)][_0x287d3c(0x202)][_0x287d3c(0x24b)]({..._0x5cb161,'abortSignal':_0x9bc1f4,'renderingStrategy':_0x24ee11}),_0x5cb161[_0x287d3c(0x205)]&&this[_0x287d3c(0x1d4)](_0x5cb161['id']);});}[_0x96ee03(0x228)](_0x4f4a64){const _0x5c0fae=_0x96ee03;this[_0x5c0fae(0x206)][_0x5c0fae(0x202)][_0x5c0fae(0x1b3)](_0x4f4a64);}[_0x96ee03(0x1d4)](_0x1dafa6){const _0x42f1dc=_0x96ee03;this[_0x42f1dc(0x206)][_0x42f1dc(0x202)][_0x42f1dc(0x207)](_0x1dafa6);}[_0x96ee03(0x224)](_0xbd6ff1){const _0x474b28=_0x96ee03;this[_0x474b28(0x206)][_0x474b28(0x202)][_0x474b28(0x1dd)]()[_0x474b28(0x1b7)](_0x2da1ab=>_0x2da1ab[_0x474b28(0x22b)](_0xbd6ff1))[_0x474b28(0x1b1)](_0x364346=>this[_0x474b28(0x206)][_0x474b28(0x202)][_0x474b28(0x221)](_0x364346));}[_0x96ee03(0x23b)](){const _0x304d7c=_0x96ee03;this[_0x304d7c(0x200)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x304d7c(0x206)][_0x304d7c(0x220)][_0x304d7c(0x1f6)](!this[_0x304d7c(0x1db)][_0x304d7c(0x1f5)][_0x304d7c(0x22f)](_0x304d7c(0x1bb))),this[_0x304d7c(0x232)]=!0x0,this[_0x304d7c(0x206)][_0x304d7c(0x202)][_0x304d7c(0x1b2)]();}[_0x96ee03(0x21f)](_0x5498e7){const _0x3bcf76=_0x96ee03;this[_0x3bcf76(0x243)][_0x3bcf76(0x21c)](),this[_0x3bcf76(0x206)][_0x3bcf76(0x202)][_0x3bcf76(0x1dd)]()[_0x3bcf76(0x1b7)](_0x1cba3e=>_0x1cba3e[_0x3bcf76(0x22b)](_0x5498e7['id']))[_0x3bcf76(0x1b1)](_0x4a0a0e=>this[_0x3bcf76(0x1d4)](_0x4a0a0e)),this[_0x3bcf76(0x232)]=!0x1,this[_0x3bcf76(0x206)][_0x3bcf76(0x202)][_0x3bcf76(0x1e2)]();}async[_0x96ee03(0x1ce)](){const _0x4adccc=_0x96ee03;return this[_0x4adccc(0x243)][_0x4adccc(0x244)][_0x4adccc(0x1ae)](()=>{const _0x5253e2=_0x4adccc;this[_0x5253e2(0x232)]=!0x1,this[_0x5253e2(0x206)][_0x5253e2(0x202)][_0x5253e2(0x1e2)]();});}[_0x96ee03(0x1be)](_0x1c2c94,_0x50f2d5){const _0x16036b=_0x96ee03;this[_0x16036b(0x206)][_0x16036b(0x220)][_0x16036b(0x1be)](_0x1c2c94,_0x50f2d5);}[_0x96ee03(0x1e0)](_0xf9f492){const _0x1c881d=_0x96ee03;this[_0x1c881d(0x206)][_0x1c881d(0x220)][_0x1c881d(0x1e0)](_0xf9f492);}[_0x96ee03(0x214)](_0x250c4a,_0x23af1f){const _0x47b0c0=_0x96ee03;this[_0x47b0c0(0x206)][_0x47b0c0(0x220)][_0x47b0c0(0x214)](_0x250c4a,_0x23af1f);}[_0x96ee03(0x204)](_0x53a774){const _0x5a420b=_0x96ee03;this[_0x5a420b(0x206)][_0x5a420b(0x220)][_0x5a420b(0x204)](_0x53a774);}[_0x96ee03(0x23d)](_0x2641b0){const _0xd6dffa=_0x96ee03;this[_0xd6dffa(0x206)][_0xd6dffa(0x220)][_0xd6dffa(0x23d)](_0x2641b0);}[_0x96ee03(0x1ac)](){const _0x9abed9=_0x96ee03;this[_0x9abed9(0x206)][_0x9abed9(0x220)][_0x9abed9(0x1ac)]();}[_0x96ee03(0x1ed)](){const _0x4bc075=_0x96ee03;this[_0x4bc075(0x206)][_0x4bc075(0x220)][_0x4bc075(0x1ed)]();}[_0x96ee03(0x21b)](_0x587c58,_0x549956,_0x25c3e8){const _0xc4438e=_0x96ee03;this[_0xc4438e(0x206)][_0xc4438e(0x220)][_0xc4438e(0x21b)](_0x587c58,_0x549956,_0x25c3e8);}[_0x96ee03(0x24a)](){const _0x390f2a=_0x96ee03;this[_0x390f2a(0x206)][_0x390f2a(0x220)][_0x390f2a(0x24a)](),this[_0x390f2a(0x206)][_0x390f2a(0x220)][_0x390f2a(0x1e1)](this[_0x390f2a(0x1f4)]());}[_0x96ee03(0x226)](_0x1c65ab){const _0x2110e1=_0x96ee03;this[_0x2110e1(0x206)][_0x2110e1(0x220)][_0x2110e1(0x226)](_0x1c65ab);}[_0x96ee03(0x23f)](_0x27b050){const _0x554cd9=_0x96ee03;this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x208)](_0x27b050[_0x554cd9(0x245)]),this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x22e)](_0x27b050[_0x554cd9(0x1fd)]),this[_0x554cd9(0x206)][_0x554cd9(0x220)][_0x554cd9(0x1e1)](this[_0x554cd9(0x1f4)](_0x27b050));}[_0x96ee03(0x217)](_0x1ebd15,_0x367b94){const _0x7224e=_0x96ee03;this[_0x7224e(0x206)][_0x7224e(0x220)][_0x7224e(0x1c5)](_0x1ebd15),_0x367b94&&this[_0x7224e(0x206)][_0x7224e(0x220)][_0x7224e(0x1f6)](!0x1);}[_0x96ee03(0x1d3)](_0x1a1155){const _0x45696b=_0x96ee03;this[_0x45696b(0x1ef)]=_0x1a1155;}[_0x96ee03(0x1ff)](_0x66bc02){const _0x15b963=_0x96ee03;this[_0x15b963(0x206)][_0x15b963(0x202)][_0x15b963(0x1ff)](_0x66bc02);}[_0x96ee03(0x222)](){const _0x39496a=_0x96ee03;this[_0x39496a(0x21a)](_0x583fee(this[_0x39496a(0x1db)][_0x39496a(0x233)],_0x39496a(0x1bd)));}[_0x96ee03(0x21a)](_0x264681,_0x175bde=!0x1){const _0x52c8eb=_0x96ee03;if(_0x175bde&&!_0x5ae8f3()&&_0x264681[_0x52c8eb(0x20c)])return this[_0x52c8eb(0x206)][_0x52c8eb(0x1d9)][_0x52c8eb(0x240)]='',void this[_0x52c8eb(0x215)](_0x264681);this[_0x52c8eb(0x206)][_0x52c8eb(0x1d9)][_0x52c8eb(0x240)]=_0x264681;}[_0x96ee03(0x200)](_0x9ce72b){const _0x320f09=_0x96ee03,_0x1b2d5d=this[_0x320f09(0x1c9)](_0x9ce72b);this[_0x320f09(0x206)][_0x320f09(0x202)][_0x320f09(0x200)](_0x1b2d5d);}[_0x96ee03(0x215)](_0x56781e){const _0xfdc72d=_0x96ee03;let _0xb6c1d6=0x0;clearInterval(this[_0xfdc72d(0x20f)]),this[_0xfdc72d(0x20f)]=setInterval(()=>{const _0xce2df8=_0xfdc72d;this[_0xce2df8(0x206)][_0xce2df8(0x1d9)][_0xce2df8(0x240)]=this[_0xce2df8(0x206)][_0xce2df8(0x1d9)][_0xce2df8(0x240)]+_0x56781e[_0xb6c1d6],_0xb6c1d6++,_0xb6c1d6===_0x56781e[_0xce2df8(0x20c)]&&clearInterval(this[_0xce2df8(0x20f)]);},0x1e);}[_0x96ee03(0x1b8)](_0x18551a){const _0x9d2b5=_0x96ee03;this[_0x9d2b5(0x206)][_0x9d2b5(0x1d9)][_0x9d2b5(0x248)]=_0x18551a;}[_0x96ee03(0x1c9)](_0x357eb7){const _0x16a2cd=_0x96ee03;return _0x357eb7?_0x357eb7[_0x16a2cd(0x245)]&&_0x357eb7[_0x16a2cd(0x1fd)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1f7)):_0x357eb7[_0x16a2cd(0x245)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1a9)):_0x357eb7[_0x16a2cd(0x1fd)]?_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x242)):_0x583fee(this[_0x16a2cd(0x1db)][_0x16a2cd(0x233)],_0x16a2cd(0x1cf)):'';}[_0x96ee03(0x1f4)](_0x11dc40){const _0x2db913=_0x96ee03;return _0x11dc40?_0x11dc40[_0x2db913(0x245)]&&_0x11dc40[_0x2db913(0x1fd)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1f9)):_0x11dc40[_0x2db913(0x245)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1ad)):_0x11dc40[_0x2db913(0x1fd)]?_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x20a)):_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1e8)):_0x583fee(this[_0x2db913(0x1db)][_0x2db913(0x233)],_0x2db913(0x1e8));}[_0x96ee03(0x1bf)](_0x4f31b4,_0x13516b,_0x5bba3e,_0xb03ca1){const _0x3cbcce=_0x96ee03;this[_0x3cbcce(0x206)][_0x3cbcce(0x1bf)](_0x4f31b4,_0x13516b,_0x5bba3e,_0xb03ca1);}[_0x96ee03(0x1b5)](_0x13fd53){const _0x18867f=_0x96ee03;this[_0x18867f(0x206)][_0x18867f(0x1b5)](_0x13fd53);}[_0x96ee03(0x210)](){const _0x3d38ae=_0x96ee03;this[_0x3d38ae(0x206)][_0x3d38ae(0x220)][_0x3d38ae(0x210)]();}[_0x96ee03(0x23e)](_0x291038,_0x51c05a){const _0x5c6a4e=_0x96ee03;this[_0x5c6a4e(0x206)][_0x5c6a4e(0x202)][_0x5c6a4e(0x236)](_0x291038,_0x51c05a);}[_0x96ee03(0x1f3)](){const _0x52cb5b=_0x96ee03;this[_0x52cb5b(0x206)][_0x52cb5b(0x220)][_0x52cb5b(0x1fc)]=!0x0;}[_0x96ee03(0x1ca)](){const _0x22d8e5=_0x96ee03;this[_0x22d8e5(0x206)][_0x22d8e5(0x220)][_0x22d8e5(0x1fc)]=!0x1;}}
23
+ const _0x8335a5=_0xfb73;(function(_0x4c3fcb,_0x3b55d6){const _0x1eabc5=_0xfb73,_0x17ebfe=_0x4c3fcb();while(!![]){try{const _0x2195ed=-parseInt(_0x1eabc5(0x18b))/0x1*(parseInt(_0x1eabc5(0x1ae))/0x2)+parseInt(_0x1eabc5(0x1aa))/0x3+parseInt(_0x1eabc5(0x1d5))/0x4+-parseInt(_0x1eabc5(0x182))/0x5+-parseInt(_0x1eabc5(0x17b))/0x6*(parseInt(_0x1eabc5(0x1ef))/0x7)+parseInt(_0x1eabc5(0x1ba))/0x8+parseInt(_0x1eabc5(0x1b7))/0x9*(parseInt(_0x1eabc5(0x1e0))/0xa);if(_0x2195ed===_0x3b55d6)break;else _0x17ebfe['push'](_0x17ebfe['shift']());}catch(_0x92e46e){_0x17ebfe['push'](_0x17ebfe['shift']());}}}(_0x10fe,0x88bf9));import{ContextPlugin as _0x2fe490}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x34a077}from'ckeditor5/src/utils.js';import{AIChatView as _0x314bd8}from'./ui/aichatview.js';import{AITabs as _0x445f08}from'../aitabs/aitabs.js';import{getTranslation as _0x5d54c6}from'../aicore/utils/common-translations.js';function _0xfb73(_0x4ff307,_0x35930d){const _0x10fe4e=_0x10fe();return _0xfb73=function(_0xfb7343,_0xa0b90a){_0xfb7343=_0xfb7343-0x179;let _0x5daae1=_0x10fe4e[_0xfb7343];return _0x5daae1;},_0xfb73(_0x4ff307,_0x35930d);}import{IconAIChat as _0x1583eb}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x3c9dd0}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x34f880}from'./utils/promisequeue.js';function _0x10fe(){const _0x73012=['chatHeader','destroy','setReasoning','addFeedItemUserMessage','showResizeButton','filter','trackChanges','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateFeedInteractionHeader','conversation-start','queueEmptyPromise','addFeedItemAIReply','setLoadingMessage','error-message','availableModels','ai-reply','from','setAddContextOptions','3560564nxScui','removeContextItem','setConversationTitle','showDiff','scrollToSuggestion','get','requires','ai.chat.models.modelSelectorAlwaysVisible','setIsMaximized','isBusy','addContextItem','10XHZjET','disableControls','updateCapabilities','updateFeedItemAIReplySuggestionContent','isVisible','isPremiumPlugin','<p>','AIChatUI','addTab','isWebSearchEnabled','abort','isReasoningEnabled','clear','_animateConversationTitle','areActionsDisabled','658679PASpCi','enableModelSelector','isDone','pluginName','enqueue','markItemAsDone','removeFeedInteraction','children','config','addFeedInteractionHeader','AITabs','isDisabled','stopInteraction','resetConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','stopAutoScroll','user-message','chatControls','contextItems','getItemIds','resetMessageInput','AI_CHAT_WELCOME_MESSAGE','toggleLoadingSkeleton','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','displayedPrompt','values','clearPendingContextUI','updateSuggestionPartState','value','scrollFeedToSuggestion','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','addFeedItemError','interactionId','plugins','startsWith','isMaximized','setModelList','startInteraction','updateSuggestionItem','_getLoadingMessage','_view','ai-suggestion-reply','setInputPlaceholder','isLoading','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','6uURYPC','setWebSearch','addItem','userMessage','locale','createConversation','updateFeedItemAIReplySuggestionPartState','4660655fLdwtJ','_getInputPlaceholder','disableModelSelector','context','enableControls','_isTrackChangesCommandValueBound','startAutoScroll','feedItemRenderingStrategy','commands','452xhMnKF','chatFeed','ai.availableReplyActions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','markFeedItemAsDone','options','updateFeedItemAIReplyContent','_interactionPromiseResolver','isOfficialPlugin','closeSourceResourceBalloon','setSelectedModel','quickActionData','setContextItemLoading','populateSourceResourceBalloon','capabilities','clearConversationContextUI','AI_CHAT_HEADING','label','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','isModelAvailable','finishInteraction','updateWebSources','setModel','delegate','addFeedItemAISuggestion','_promiseQueue','length','</p>','renderingStrategy','remove','553503vSEBpe','forEach','find','streaming','3622ZWPYiL','updateFeedItemAIReplySources','chat','last','removeItem','_titleAnimationInterval','then','setConversationContext','setIsUploadInProgress','7432119OZSmiR','isTrackChangesOn','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','4035904LFSHDt','set','addFeedItemStaticMessage','bind','updateReplyItem','interaction-header','updateResourceState','view','setFeedItemRenderingStrategy'];_0x10fe=function(){return _0x73012;};return _0x10fe();}import{AI_CHAT_UI_EVENT_NAMES as _0x52ff38}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x5a994f}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x2fe490{static get[_0x8335a5(0x1db)](){return[_0x445f08];}[_0x8335a5(0x218)];static get[_0x8335a5(0x1f2)](){const _0x1043a7=_0x8335a5;return _0x1043a7(0x1e7);}static get[_0x8335a5(0x193)](){return!0x0;}static get[_0x8335a5(0x1e5)](){return!0x0;}[_0x8335a5(0x189)]=_0x8335a5(0x1ad);[_0x8335a5(0x1d8)]=!0x0;[_0x8335a5(0x1a5)];[_0x8335a5(0x192)];[_0x8335a5(0x1b3)]=void 0x0;[_0x8335a5(0x187)]=!0x1;constructor(_0x3dccc2){const _0x445fc0=_0x8335a5;super(_0x3dccc2);const _0x12fd09=this[_0x445fc0(0x185)][_0x445fc0(0x211)][_0x445fc0(0x1da)](_0x445fc0(0x1f9));this[_0x445fc0(0x1bb)](_0x445fc0(0x1de),!0x1),this[_0x445fc0(0x1a5)]=new _0x34f880(),this[_0x445fc0(0x218)]=new _0x314bd8(this[_0x445fc0(0x185)][_0x445fc0(0x17f)],_0x12fd09[_0x445fc0(0x1c7)]),this[_0x445fc0(0x218)][_0x445fc0(0x1a3)](..._0x52ff38)['to'](this),this[_0x445fc0(0x218)]['on'](_0x445fc0(0x20d),(_0x400555,{showDiff:_0x5675e9})=>{const _0x53248e=_0x445fc0;this[_0x53248e(0x1d8)]=_0x5675e9;}),_0x12fd09[_0x445fc0(0x1c1)][_0x445fc0(0x1e8)]({'id':_0x445fc0(0x1b0),'buttonLabel':_0x5d54c6(this[_0x445fc0(0x185)][_0x445fc0(0x17f)],_0x445fc0(0x19b)),'buttonIcon':_0x1583eb,'order':0x0,'content':this[_0x445fc0(0x218)]}),this[_0x445fc0(0x218)][_0x445fc0(0x200)][_0x445fc0(0x1bd)](_0x445fc0(0x21b))['to'](this,_0x445fc0(0x1de),_0x40c7d5=>_0x40c7d5),this[_0x445fc0(0x218)][_0x445fc0(0x18c)][_0x445fc0(0x1bd)](_0x445fc0(0x179))['to'](this,_0x445fc0(0x1de),_0x45671a=>_0x45671a),this[_0x445fc0(0x218)][_0x445fc0(0x200)][_0x445fc0(0x21a)](this[_0x445fc0(0x183)]()),this[_0x445fc0(0x1bd)](_0x445fc0(0x19f))['to'](this[_0x445fc0(0x218)][_0x445fc0(0x200)],_0x445fc0(0x19f));}[_0x8335a5(0x1c4)](){const _0x3c2901=_0x8335a5;super[_0x3c2901(0x1c4)](),this[_0x3c2901(0x1b3)]&&clearInterval(this[_0x3c2901(0x1b3)]);}[_0x8335a5(0x180)](_0x190e0b){const _0x419135=_0x8335a5;this[_0x419135(0x218)][_0x419135(0x18c)][_0x419135(0x1ec)](),this[_0x419135(0x218)][_0x419135(0x200)][_0x419135(0x1f0)](),this[_0x419135(0x218)][_0x419135(0x200)][_0x419135(0x214)](_0x190e0b[_0x419135(0x1d1)],!this[_0x419135(0x185)][_0x419135(0x1f7)][_0x419135(0x1da)](_0x419135(0x1dc))),this[_0x419135(0x1bc)]({'id':_0x419135(0x1cc),'staticMessage':_0x5d54c6(this[_0x419135(0x185)][_0x419135(0x17f)],_0x419135(0x204))});}[_0x8335a5(0x1bc)]({id:_0x5c8e13,staticMessage:_0x34ae5e}){const _0x2e8dda=_0x8335a5;this[_0x2e8dda(0x218)][_0x2e8dda(0x18c)][_0x2e8dda(0x17d)](_0x2e8dda(0x1d2),{'id':_0x5c8e13,'initialContent':_0x2e8dda(0x1e6)+_0x34ae5e+_0x2e8dda(0x1a7)});}[_0x8335a5(0x1c6)](_0x39067f){const _0x32212b=_0x8335a5,_0x935db3=_0x39067f[_0x32212b(0x196)]?.[_0x32212b(0x207)]||_0x39067f[_0x32212b(0x17e)];this[_0x32212b(0x218)][_0x32212b(0x18c)][_0x32212b(0x17d)](_0x32212b(0x1ff),{'contextItems':Array[_0x32212b(0x1d3)](_0x39067f[_0x32212b(0x201)][_0x32212b(0x208)]()),'initialContent':_0x32212b(0x1e6)+_0x935db3+_0x32212b(0x1a7),'id':_0x39067f['id']});}[_0x8335a5(0x20f)]({errorMessage:_0x253060,id:_0x4c281a}){const _0x57af3c=_0x8335a5;this[_0x57af3c(0x218)][_0x57af3c(0x18c)][_0x57af3c(0x17d)](_0x57af3c(0x1d0),{'initialContent':_0x57af3c(0x1e6)+_0x253060+_0x57af3c(0x1a7),'id':_0x4c281a});}[_0x8335a5(0x1ce)](_0x58e923){const _0x2a6ca0=_0x8335a5;return this[_0x2a6ca0(0x1a5)][_0x2a6ca0(0x1f3)](async()=>{const _0x2c3cb1=_0x2a6ca0;this[_0x2c3cb1(0x218)][_0x2c3cb1(0x18c)][_0x2c3cb1(0x17d)](_0x2c3cb1(0x1d2),{'id':_0x58e923[_0x2c3cb1(0x210)]+':'+_0x58e923['id']}),this[_0x2c3cb1(0x1cf)](null);});}async[_0x8335a5(0x1a4)](_0x3a0fe6){const _0x37bf7e=_0x8335a5,_0x3887e2=_0x5a994f(this[_0x37bf7e(0x185)]);if(_0x3887e2){const _0x558508=_0x3887e2[_0x37bf7e(0x18a)][_0x37bf7e(0x1da)](_0x37bf7e(0x1c9));_0x558508&&!this[_0x37bf7e(0x187)]&&(this[_0x37bf7e(0x187)]=!0x0,this[_0x37bf7e(0x218)][_0x37bf7e(0x18c)][_0x37bf7e(0x1bd)](_0x37bf7e(0x1b8))['to'](_0x558508,_0x37bf7e(0x20b)));}return this[_0x37bf7e(0x1a5)][_0x37bf7e(0x1f3)](async()=>{const _0x24ce96=_0x37bf7e;this[_0x24ce96(0x218)][_0x24ce96(0x18c)][_0x24ce96(0x17d)](_0x24ce96(0x219),{'id':_0x3a0fe6[_0x24ce96(0x210)]+':'+_0x3a0fe6['id'],'areActionsDisabled':_0x3a0fe6[_0x24ce96(0x1ee)],'showDiff':this[_0x24ce96(0x1d8)],'dropdownConfig':this[_0x24ce96(0x185)][_0x24ce96(0x1f7)][_0x24ce96(0x1da)](_0x24ce96(0x18d))}),this[_0x24ce96(0x1cf)](null);});}[_0x8335a5(0x1f8)](_0x3b61fe,_0x1c41d4){const _0x4c7ea8=_0x8335a5,_0x2226a7=this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x1f6)][_0x4c7ea8(0x1b1)];if(_0x2226a7 instanceof _0x3c9dd0)return this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x1f6)][_0x4c7ea8(0x1a9)](_0x2226a7),void this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x17d)](_0x4c7ea8(0x1bf),{'id':_0x3b61fe['id'],'capabilities':{'isWebSearchEnabled':_0x2226a7[_0x4c7ea8(0x199)][_0x4c7ea8(0x1e9)]||_0x1c41d4[_0x4c7ea8(0x1e9)],'isReasoningEnabled':_0x2226a7[_0x4c7ea8(0x199)][_0x4c7ea8(0x1eb)]||_0x1c41d4[_0x4c7ea8(0x1eb)]}});this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x17d)](_0x4c7ea8(0x1bf),{'id':_0x3b61fe['id'],'capabilities':_0x1c41d4});}[_0x8335a5(0x1cb)](_0x3353be){const _0x1c18da=_0x8335a5,_0x48a7e0=this[_0x1c18da(0x218)][_0x1c18da(0x18c)][_0x1c18da(0x1f6)][_0x1c18da(0x1ac)](_0x6262de=>_0x6262de[_0x1c18da(0x190)]['id']==_0x3353be['id']&&_0x6262de instanceof _0x3c9dd0);_0x48a7e0&&_0x48a7e0[_0x1c18da(0x1bb)](_0x1c18da(0x1e4),_0x3353be[_0x1c18da(0x1e4)]);}async[_0x8335a5(0x191)](_0x605ab){const _0x5a7615=_0x8335a5,_0x4ce29f=_0x605ab[_0x5a7615(0x1a8)]||this[_0x5a7615(0x189)];return this[_0x5a7615(0x1a5)][_0x5a7615(0x1f3)](async _0x285628=>{const _0x3e5d0b=_0x5a7615;await this[_0x3e5d0b(0x218)][_0x3e5d0b(0x18c)][_0x3e5d0b(0x1be)]({..._0x605ab,'abortSignal':_0x285628,'renderingStrategy':_0x4ce29f}),_0x605ab[_0x3e5d0b(0x1f1)]&&this[_0x3e5d0b(0x18f)](_0x605ab['id']);});}[_0x8335a5(0x1af)](_0x11fd6b,_0x4878a2){const _0x4efeba=_0x8335a5;this[_0x4efeba(0x218)][_0x4efeba(0x18c)][_0x4efeba(0x1a1)](_0x11fd6b,_0x4878a2);}async[_0x8335a5(0x1e3)](_0x5d8fd8){const _0x5101e8=_0x8335a5,_0x49a5a8=_0x5d8fd8[_0x5101e8(0x1a8)]||this[_0x5101e8(0x189)];return this[_0x5101e8(0x1a5)][_0x5101e8(0x1f3)](async _0x504512=>{const _0x50c911=_0x5101e8;await this[_0x50c911(0x218)][_0x50c911(0x18c)][_0x50c911(0x216)]({..._0x5d8fd8,'abortSignal':_0x504512,'renderingStrategy':_0x49a5a8}),_0x5d8fd8[_0x50c911(0x1f1)]&&this[_0x50c911(0x18f)](_0x5d8fd8['id']);});}[_0x8335a5(0x181)](_0x2f43c5){const _0x5a0b92=_0x8335a5;this[_0x5a0b92(0x218)][_0x5a0b92(0x18c)][_0x5a0b92(0x20a)](_0x2f43c5);}[_0x8335a5(0x18f)](_0x3e16ae){const _0x59cc11=_0x8335a5;this[_0x59cc11(0x218)][_0x59cc11(0x18c)][_0x59cc11(0x1f4)](_0x3e16ae);}[_0x8335a5(0x1f5)](_0x407cbc){const _0x81393f=_0x8335a5;this[_0x81393f(0x218)][_0x81393f(0x18c)][_0x81393f(0x202)]()[_0x81393f(0x1c8)](_0x412760=>_0x412760[_0x81393f(0x212)](_0x407cbc))[_0x81393f(0x1ab)](_0x557a73=>this[_0x81393f(0x218)][_0x81393f(0x18c)][_0x81393f(0x1b2)](_0x557a73));}[_0x8335a5(0x215)](){const _0x38cd6f=_0x8335a5;this[_0x38cd6f(0x1cf)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x38cd6f(0x218)][_0x38cd6f(0x200)][_0x38cd6f(0x184)](!this[_0x38cd6f(0x185)][_0x38cd6f(0x1f7)][_0x38cd6f(0x1da)](_0x38cd6f(0x1dc))),this[_0x38cd6f(0x1de)]=!0x0,this[_0x38cd6f(0x218)][_0x38cd6f(0x18c)][_0x38cd6f(0x188)]();}[_0x8335a5(0x1fb)](_0x402836){const _0x130209=_0x8335a5;this[_0x130209(0x1a5)][_0x130209(0x1ea)](),this[_0x130209(0x218)][_0x130209(0x18c)][_0x130209(0x202)]()[_0x130209(0x1c8)](_0x3a610c=>_0x3a610c[_0x130209(0x212)](_0x402836['id']))[_0x130209(0x1ab)](_0x247469=>this[_0x130209(0x18f)](_0x247469)),this[_0x130209(0x1de)]=!0x1,this[_0x130209(0x218)][_0x130209(0x18c)][_0x130209(0x1fe)]();}async[_0x8335a5(0x1a0)](){const _0x1df4d2=_0x8335a5;return this[_0x1df4d2(0x1a5)][_0x1df4d2(0x1cd)][_0x1df4d2(0x1b4)](()=>{const _0x27271a=_0x1df4d2;this[_0x27271a(0x1de)]=!0x1,this[_0x27271a(0x218)][_0x27271a(0x18c)][_0x27271a(0x1fe)]();});}[_0x8335a5(0x1df)](_0x26052b,_0x3522f6){const _0x1590b7=_0x8335a5;this[_0x1590b7(0x218)][_0x1590b7(0x200)][_0x1590b7(0x1df)](_0x26052b,_0x3522f6);}[_0x8335a5(0x1d6)](_0x3c3491){const _0x1caeac=_0x8335a5;this[_0x1caeac(0x218)][_0x1caeac(0x200)][_0x1caeac(0x1d6)](_0x3c3491);}[_0x8335a5(0x197)](_0x36be1d,_0x2b63c1){const _0x936a35=_0x8335a5;this[_0x936a35(0x218)][_0x936a35(0x200)][_0x936a35(0x197)](_0x36be1d,_0x2b63c1);}[_0x8335a5(0x1b6)](_0x527e86){const _0x53d8ab=_0x8335a5;this[_0x53d8ab(0x218)][_0x53d8ab(0x200)][_0x53d8ab(0x1b6)](_0x527e86);}[_0x8335a5(0x1b5)](_0xbb230d){const _0x5a947a=_0x8335a5;this[_0x5a947a(0x218)][_0x5a947a(0x200)][_0x5a947a(0x1b5)](_0xbb230d);}[_0x8335a5(0x209)](){const _0x319bfe=_0x8335a5;this[_0x319bfe(0x218)][_0x319bfe(0x200)][_0x319bfe(0x209)]();}[_0x8335a5(0x19a)](){const _0x1c6a86=_0x8335a5;this[_0x1c6a86(0x218)][_0x1c6a86(0x200)][_0x1c6a86(0x19a)]();}[_0x8335a5(0x1c0)](_0x5d065a,_0x4666fb,_0x1c0df1){const _0x3bc747=_0x8335a5;this[_0x3bc747(0x218)][_0x3bc747(0x200)][_0x3bc747(0x1c0)](_0x5d065a,_0x4666fb,_0x1c0df1);}[_0x8335a5(0x203)](){const _0x53d446=_0x8335a5;this[_0x53d446(0x218)][_0x53d446(0x200)][_0x53d446(0x203)](),this[_0x53d446(0x218)][_0x53d446(0x200)][_0x53d446(0x21a)](this[_0x53d446(0x183)]());}[_0x8335a5(0x1d4)](_0xab27df){const _0xf5b3ab=_0x8335a5;this[_0xf5b3ab(0x218)][_0xf5b3ab(0x200)][_0xf5b3ab(0x1d4)](_0xab27df);}[_0x8335a5(0x1e2)](_0x358f2d){const _0x534106=_0x8335a5;this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x17c)](_0x358f2d[_0x534106(0x1e9)]),this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x1c5)](_0x358f2d[_0x534106(0x1eb)]),this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x21a)](this[_0x534106(0x183)](_0x358f2d));}[_0x8335a5(0x195)](_0x38b56d,_0x61e6cc){const _0x586148=_0x8335a5;this[_0x586148(0x218)][_0x586148(0x200)][_0x586148(0x1a2)](_0x38b56d),_0x61e6cc&&this[_0x586148(0x218)][_0x586148(0x200)][_0x586148(0x184)](!0x1);}[_0x8335a5(0x1c2)](_0x471fc4){const _0xf7b249=_0x8335a5;this[_0xf7b249(0x189)]=_0x471fc4;}[_0x8335a5(0x205)](_0x5b39e5){const _0x13ec81=_0x8335a5;this[_0x13ec81(0x218)][_0x13ec81(0x18c)][_0x13ec81(0x205)](_0x5b39e5);}[_0x8335a5(0x1fc)](){const _0x439f8e=_0x8335a5;this[_0x439f8e(0x1d7)](_0x5d54c6(this[_0x439f8e(0x185)][_0x439f8e(0x17f)],_0x439f8e(0x19b)));}[_0x8335a5(0x1d7)](_0x57abe9,_0x4d7e99=!0x1){const _0x1692d7=_0x8335a5;if(_0x4d7e99&&!_0x34a077()&&_0x57abe9[_0x1692d7(0x1a6)])return this[_0x1692d7(0x218)][_0x1692d7(0x1c3)][_0x1692d7(0x19c)]='',void this[_0x1692d7(0x1ed)](_0x57abe9);this[_0x1692d7(0x218)][_0x1692d7(0x1c3)][_0x1692d7(0x19c)]=_0x57abe9;}[_0x8335a5(0x1cf)](_0x9c3bac){const _0x2b658c=_0x8335a5,_0x47d639=this[_0x2b658c(0x217)](_0x9c3bac);this[_0x2b658c(0x218)][_0x2b658c(0x18c)][_0x2b658c(0x1cf)](_0x47d639);}[_0x8335a5(0x1ed)](_0xa0e11d){const _0x2e3c4c=_0x8335a5;let _0x4c2e1d=0x0;clearInterval(this[_0x2e3c4c(0x1b3)]),this[_0x2e3c4c(0x1b3)]=setInterval(()=>{const _0x28abbf=_0x2e3c4c;this[_0x28abbf(0x218)][_0x28abbf(0x1c3)][_0x28abbf(0x19c)]=this[_0x28abbf(0x218)][_0x28abbf(0x1c3)][_0x28abbf(0x19c)]+_0xa0e11d[_0x4c2e1d],_0x4c2e1d++,_0x4c2e1d===_0xa0e11d[_0x28abbf(0x1a6)]&&clearInterval(this[_0x28abbf(0x1b3)]);},0x1e);}[_0x8335a5(0x1dd)](_0x1dccab){const _0x4e4afa=_0x8335a5;this[_0x4e4afa(0x218)][_0x4e4afa(0x1c3)][_0x4e4afa(0x213)]=_0x1dccab;}[_0x8335a5(0x217)](_0x58e0f0){const _0x3cd335=_0x8335a5;return _0x58e0f0?_0x58e0f0[_0x3cd335(0x1e9)]&&_0x58e0f0[_0x3cd335(0x1eb)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x19d)):_0x58e0f0[_0x3cd335(0x1e9)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x1fd)):_0x58e0f0[_0x3cd335(0x1eb)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x17a)):_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x1ca)):'';}[_0x8335a5(0x183)](_0x4c3bdb){const _0x4fe9ce=_0x8335a5;return _0x4c3bdb?_0x4c3bdb[_0x4fe9ce(0x1e9)]&&_0x4c3bdb[_0x4fe9ce(0x1eb)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x206)):_0x4c3bdb[_0x4fe9ce(0x1e9)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x1b9)):_0x4c3bdb[_0x4fe9ce(0x1eb)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x20e)):_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x18e)):_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x18e));}[_0x8335a5(0x198)](_0x5bd901,_0x182478,_0x5ba364,_0x49f5bc){const _0x20b03a=_0x8335a5;this[_0x20b03a(0x218)][_0x20b03a(0x198)](_0x5bd901,_0x182478,_0x5ba364,_0x49f5bc);}[_0x8335a5(0x194)](_0x1df26b){const _0x57c2cf=_0x8335a5;this[_0x57c2cf(0x218)][_0x57c2cf(0x194)](_0x1df26b);}[_0x8335a5(0x19e)](){const _0x31bfee=_0x8335a5;this[_0x31bfee(0x218)][_0x31bfee(0x200)][_0x31bfee(0x19e)]();}[_0x8335a5(0x20c)](_0x252b94,_0x35911a){const _0x215b6d=_0x8335a5;this[_0x215b6d(0x218)][_0x215b6d(0x18c)][_0x215b6d(0x1d9)](_0x252b94,_0x35911a);}[_0x8335a5(0x1e1)](){const _0x14ea8d=_0x8335a5;this[_0x14ea8d(0x218)][_0x14ea8d(0x200)][_0x14ea8d(0x1fa)]=!0x0;}[_0x8335a5(0x186)](){const _0x5cc749=_0x8335a5;this[_0x5cc749(0x218)][_0x5cc749(0x200)][_0x5cc749(0x1fa)]=!0x1;}}