@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  20. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  21. package/src/aiballoon/aiballoon.js +1 -1
  22. package/src/aichat/aichat.js +1 -1
  23. package/src/aichat/aichatballoon.js +1 -1
  24. package/src/aichat/aichatcontroller.js +1 -1
  25. package/src/aichat/aichatui.js +1 -1
  26. package/src/aichat/model/aichatcontext.js +1 -1
  27. package/src/aichat/ui/aichatballoonview.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatheaderview.js +1 -1
  30. package/src/aichat/ui/aichatview.js +1 -1
  31. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  36. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  49. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  50. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  51. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aiinteraction.js +1 -1
  55. package/src/aicore/model/aimodels.js +1 -1
  56. package/src/aicore/model/aireply.js +1 -1
  57. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  58. package/src/aicore/pipeline/airesponseparser.js +2 -2
  59. package/src/aicore/ui/aidisclaimerview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  68. package/src/aicore/utils/createresizebutton.js +1 -1
  69. package/src/aicore/utils/documentrange.js +1 -1
  70. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  71. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  72. package/src/aicore/utils/htmlparser.js +1 -1
  73. package/src/aicore/utils/htmlstreamer.js +1 -1
  74. package/src/aieditorintegration/aieditorintegration.js +1 -1
  75. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  76. package/src/aiquickactions/aiquickactions.js +1 -1
  77. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  78. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  79. package/src/aiquickactions/aiquickactionsui.js +1 -1
  80. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  81. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  83. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  84. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  85. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  86. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  87. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  88. package/src/aireviewcore/aireviewcoreui.js +1 -1
  89. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  90. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  91. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  92. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  93. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  94. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  95. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  96. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  98. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  99. package/src/aireviewmode/aireviewmode.js +1 -1
  100. package/src/aireviewmode/aireviewmodeui.js +1 -1
  101. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  102. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  103. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  104. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  105. package/src/aitabs/aitabs.js +1 -1
  106. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  107. package/src/aitranslate/aitranslate.js +1 -1
  108. package/src/aitranslate/aitranslatecontroller.js +1 -1
  109. package/src/aitranslate/aitranslateui.js +1 -1
  110. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  111. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  112. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d2f03=_0x2ece;function _0x2ece(_0x27dfff,_0x13eb7b){const _0x10ffb6=_0x10ff();return _0x2ece=function(_0x2ece40,_0x52c9b7){_0x2ece40=_0x2ece40-0x177;let _0x1a4ab3=_0x10ffb6[_0x2ece40];return _0x1a4ab3;},_0x2ece(_0x27dfff,_0x13eb7b);}(function(_0x2a877f,_0x39a067){const _0x435792=_0x2ece,_0x127356=_0x2a877f();while(!![]){try{const _0x130a29=-parseInt(_0x435792(0x1a3))/0x1+-parseInt(_0x435792(0x193))/0x2*(parseInt(_0x435792(0x17a))/0x3)+parseInt(_0x435792(0x188))/0x4*(parseInt(_0x435792(0x1a2))/0x5)+parseInt(_0x435792(0x1a0))/0x6+parseInt(_0x435792(0x196))/0x7*(-parseInt(_0x435792(0x1a1))/0x8)+parseInt(_0x435792(0x187))/0x9*(parseInt(_0x435792(0x18b))/0xa)+-parseInt(_0x435792(0x17c))/0xb;if(_0x130a29===_0x39a067)break;else _0x127356['push'](_0x127356['shift']());}catch(_0x63e3e4){_0x127356['push'](_0x127356['shift']());}}}(_0x10ff,0xef6e9));import{Command as _0x14f36c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4c1630}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x14f36c{[_0x2d2f03(0x18c)];constructor(_0xbeb54d,_0x9984ce){const _0x2c061a=_0x2d2f03;super(_0xbeb54d),this[_0x2c061a(0x18c)]=_0x9984ce,this[_0x2c061a(0x179)](_0x2c061a(0x177),[]),this['on'](_0x2c061a(0x195),(_0x212ef8,_0x49b7d5,_0x5f4609)=>{const _0x30b059=_0x2c061a;this[_0x30b059(0x192)]&&(this[_0x30b059(0x177)]=ns(this[_0x30b059(0x18c)],_0x5f4609));}),this[_0x2c061a(0x179)](_0x2c061a(0x17f),!0x1),this['on'](_0x2c061a(0x18e),(_0x53d228,_0x381c67,_0x194f83)=>{const _0x2c0f02=_0x2c061a;this[_0x2c0f02(0x177)]=_0x194f83?ns(this[_0x2c0f02(0x18c)],this[_0x2c0f02(0x17f)]):[];});}[_0x2d2f03(0x18a)](){const _0x43d520=_0x2d2f03,_0x2f48d8=this[_0x43d520(0x190)][_0x43d520(0x185)];this[_0x43d520(0x17f)]=function(_0x4595a5){const _0x1d592e=_0x43d520,_0x5ed0c8=_0x4595a5[_0x1d592e(0x181)][_0x1d592e(0x19f)];return _0x5ed0c8[_0x1d592e(0x180)]?0x0!==[..._0x5ed0c8[_0x1d592e(0x178)]()][_0x1d592e(0x19d)]&&![..._0x5ed0c8[_0x1d592e(0x178)]()][0x0][_0x1d592e(0x17d)]:!!_0x4595a5[_0x1d592e(0x19b)](_0x5ed0c8[_0x1d592e(0x186)]());}(_0x2f48d8);const _0x3a5975=_0x2f48d8[_0x43d520(0x181)][_0x43d520(0x19f)],_0x3c2fbe=this[_0x43d520(0x190)][_0x43d520(0x183)][_0x43d520(0x197)](_0x43d520(0x19c));for(const _0x7baf49 of _0x3a5975[_0x43d520(0x184)]())for(const _0x1bd1be of _0x7baf49[_0x43d520(0x198)]())if(_0x1bd1be['is'](_0x43d520(0x199))&&_0x3c2fbe[_0x43d520(0x17b)](_0x1bd1be[_0x43d520(0x18f)]))return void(this[_0x43d520(0x192)]=!0x1);this[_0x43d520(0x192)]=!0x0;}[_0x2d2f03(0x194)](_0x32da08='',_0x52cf07='',_0x37a80a=_0x2d2f03(0x19e)){const _0x350419=_0x2d2f03;this[_0x350419(0x190)][_0x350419(0x18d)][_0x350419(0x197)](_0x4c1630)[_0x350419(0x182)](_0x32da08,_0x52cf07,_0x37a80a);}}function _0x10ff(){const _0x33cd6b=['624608vNcAel','enabledCommandsIds','getSelectedBlocks','set','18YbJZAX','includes','6542217vlrFBs','isEmpty','add','_hasContext','isCollapsed','document','showUI','config','getRanges','model','getFirstRange','9YHVmoN','96428wSywIo','from','refresh','12917540pXXmGH','_commandDefinitions','plugins','change:isEnabled','name','editor','values','isEnabled','314018dvRWBj','execute','change:_hasContext','221963sfCBfC','get','getItems','element','requiresContent','hasContent','ai.assistant.disabledElements','length','custom','selection','4821378esADXP','40dOAKeJ','250MbxxiM'];_0x10ff=function(){return _0x33cd6b;};return _0x10ff();}function ns(_0x3af300,_0x672f7c){const _0x23f4fe=_0x2d2f03,_0x1592be=new Set();for(const _0x3840c4 of _0x3af300[_0x23f4fe(0x191)]())(_0x672f7c||!0x1===_0x3840c4[_0x23f4fe(0x19a)])&&_0x1592be[_0x23f4fe(0x17e)](_0x3840c4['id']);return Array[_0x23f4fe(0x189)](_0x1592be);}
23
+ function _0x4b84(_0x2e47ed,_0x32ae84){const _0x132f0d=_0x132f();return _0x4b84=function(_0x4b84c2,_0x6f1738){_0x4b84c2=_0x4b84c2-0xfd;let _0x4015ab=_0x132f0d[_0x4b84c2];return _0x4015ab;},_0x4b84(_0x2e47ed,_0x32ae84);}function _0x132f(){const _0x4c73a9=['custom','change:_hasContext','getFirstRange','config','hasContent','from','4104640SPaHvk','1042022ztzUvA','plugins','values','4876295Csaurc','refresh','showUI','set','selection','getSelectedBlocks','length','7rSCszd','isEnabled','includes','get','model','editor','42851MrMsTH','56lbyNFh','_commandDefinitions','execute','enabledCommandsIds','ai.assistant.disabledElements','1160865rcDFCj','getRanges','add','isEmpty','element','getItems','3542808sHfTPa','change:isEnabled','_hasContext','isCollapsed','requiresContent','document','860580mtmCeR','name'];_0x132f=function(){return _0x4c73a9;};return _0x132f();}const _0x2fe448=_0x4b84;(function(_0x3ad04e,_0x3e3501){const _0x4a676f=_0x4b84,_0x149c5a=_0x3ad04e();while(!![]){try{const _0x682364=parseInt(_0x4a676f(0x111))/0x1+-parseInt(_0x4a676f(0x101))/0x2+-parseInt(_0x4a676f(0x123))/0x3+-parseInt(_0x4a676f(0x100))/0x4+parseInt(_0x4a676f(0x104))/0x5+-parseInt(_0x4a676f(0x11d))/0x6*(-parseInt(_0x4a676f(0x10b))/0x7)+parseInt(_0x4a676f(0x112))/0x8*(parseInt(_0x4a676f(0x117))/0x9);if(_0x682364===_0x3e3501)break;else _0x149c5a['push'](_0x149c5a['shift']());}catch(_0x3f1be8){_0x149c5a['push'](_0x149c5a['shift']());}}}(_0x132f,0xa5642));import{Command as _0x24024d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x543de0}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x24024d{[_0x2fe448(0x113)];constructor(_0x18c305,_0x3a9f2c){const _0x2d3aa4=_0x2fe448;super(_0x18c305),this[_0x2d3aa4(0x113)]=_0x3a9f2c,this[_0x2d3aa4(0x107)](_0x2d3aa4(0x115),[]),this['on'](_0x2d3aa4(0x126),(_0xc0b506,_0x48b445,_0x49ab34)=>{const _0x166821=_0x2d3aa4;this[_0x166821(0x10c)]&&(this[_0x166821(0x115)]=ns(this[_0x166821(0x113)],_0x49ab34));}),this[_0x2d3aa4(0x107)](_0x2d3aa4(0x11f),!0x1),this['on'](_0x2d3aa4(0x11e),(_0x218a1b,_0x2fe315,_0x3fe264)=>{const _0x5d6ac0=_0x2d3aa4;this[_0x5d6ac0(0x115)]=_0x3fe264?ns(this[_0x5d6ac0(0x113)],this[_0x5d6ac0(0x11f)]):[];});}[_0x2fe448(0x105)](){const _0x5e82ba=_0x2fe448,_0x286d74=this[_0x5e82ba(0x110)][_0x5e82ba(0x10f)];this[_0x5e82ba(0x11f)]=function(_0x56b55a){const _0x12a6b5=_0x5e82ba,_0x203cbf=_0x56b55a[_0x12a6b5(0x122)][_0x12a6b5(0x108)];return _0x203cbf[_0x12a6b5(0x120)]?0x0!==[..._0x203cbf[_0x12a6b5(0x109)]()][_0x12a6b5(0x10a)]&&![..._0x203cbf[_0x12a6b5(0x109)]()][0x0][_0x12a6b5(0x11a)]:!!_0x56b55a[_0x12a6b5(0xfe)](_0x203cbf[_0x12a6b5(0x127)]());}(_0x286d74);const _0x45ad71=_0x286d74[_0x5e82ba(0x122)][_0x5e82ba(0x108)],_0x3a36e0=this[_0x5e82ba(0x110)][_0x5e82ba(0xfd)][_0x5e82ba(0x10e)](_0x5e82ba(0x116));for(const _0x51fdb7 of _0x45ad71[_0x5e82ba(0x118)]())for(const _0x167fbf of _0x51fdb7[_0x5e82ba(0x11c)]())if(_0x167fbf['is'](_0x5e82ba(0x11b))&&_0x3a36e0[_0x5e82ba(0x10d)](_0x167fbf[_0x5e82ba(0x124)]))return void(this[_0x5e82ba(0x10c)]=!0x1);this[_0x5e82ba(0x10c)]=!0x0;}[_0x2fe448(0x114)](_0x5f28f1='',_0x3046c1='',_0x30f422=_0x2fe448(0x125)){const _0x2d9d01=_0x2fe448;this[_0x2d9d01(0x110)][_0x2d9d01(0x102)][_0x2d9d01(0x10e)](_0x543de0)[_0x2d9d01(0x106)](_0x5f28f1,_0x3046c1,_0x30f422);}}function ns(_0x235cee,_0x187941){const _0x3722fe=_0x2fe448,_0x3a26b1=new Set();for(const _0x1bdd35 of _0x235cee[_0x3722fe(0x103)]())(_0x187941||!0x1===_0x1bdd35[_0x3722fe(0x121)])&&_0x3a26b1[_0x3722fe(0x119)](_0x1bdd35['id']);return Array[_0x3722fe(0xff)](_0x3a26b1);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x512801=_0x5ccb;(function(_0x1ad338,_0x38e1e4){const _0x137fc3=_0x5ccb,_0x1d5571=_0x1ad338();while(!![]){try{const _0x316784=parseInt(_0x137fc3(0xc9))/0x1*(parseInt(_0x137fc3(0xea))/0x2)+parseInt(_0x137fc3(0xe8))/0x3+parseInt(_0x137fc3(0xad))/0x4+-parseInt(_0x137fc3(0xa2))/0x5*(parseInt(_0x137fc3(0xe5))/0x6)+parseInt(_0x137fc3(0xd6))/0x7*(parseInt(_0x137fc3(0xa1))/0x8)+-parseInt(_0x137fc3(0xa0))/0x9+parseInt(_0x137fc3(0xe9))/0xa*(parseInt(_0x137fc3(0xc8))/0xb);if(_0x316784===_0x38e1e4)break;else _0x1d5571['push'](_0x1d5571['shift']());}catch(_0x4e83ed){_0x1d5571['push'](_0x1d5571['shift']());}}}(_0xc2a3,0xbae2c));function _0x5ccb(_0x588e69,_0x37d2db){const _0xc2a34b=_0xc2a3();return _0x5ccb=function(_0x5ccbf9,_0x206384){_0x5ccbf9=_0x5ccbf9-0x98;let _0x697bb1=_0xc2a34b[_0x5ccbf9];return _0x697bb1;},_0x5ccb(_0x588e69,_0x37d2db);}import{ContextPlugin as _0x2ebfbb}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5328cb,AIEditing as _0x472640}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0xb53a9c}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x27f7ef,Rect as _0x3ea31e,scrollViewportToShowTarget as _0x517b1b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3af448}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x4b9b03}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x5e04c3}from'./ui/aiballoonview.js';function _0xc2a3(){const _0x2bf9e2=['_hideFakeVisualSelection','showFakeVisualSelection','isEqual','ai-balloon-','left','_getSelectionElements','index','root','7373772AONjoz','192aImbxK','128265mDGwDu','_calculateOptimalTopPosition','hide','editing','once','_showDialog','showBlockingError','window','map','height','hideFakeVisualSelection','2747152uxGDYq','length','_cleanupFakeVisualSelectionMarkerRemovalListener','change','open','view','AI_BALLOON_SELECTION_REMOVED_ERROR','ai-balloon-selection','getVisible','label','beforeDialogClosed','_updateDialog','iconView','Dialog','round','end','stopListening','high','context','updatePosition','$graveyard','_isUpdatingMarkers','_currentConfig','getMarkersGroup','getBoundingRect','close','markers','910855PAvmcy','1GyDfTQ','isOpen','selectionRemoved','locale','ai-selection','model','getChangedMarkers','plugins','content','width','getIntersection','_setupFakeVisualSelectionMarkerRemovalListener','AIBalloon','123599fjTrSH','mainView','bind','pluginName','max','delegate','_showFakeVisualSelection','_calculateDialogPosition','filter','document','ck-ai-balloon\x20','listenTo','start','show','isOfficialPlugin','150UicdpP','top','isPremiumPlugin','1890636HclMCe','50BmWPcd','142648WZXXgK','rootName','requires','dialogClosed','ranges','headerView','startsWith','get','bottom','fire','hideError','differ'];_0xc2a3=function(){return _0x2bf9e2;};return _0xc2a3();}export const AI_BALLOON_EVENT_NAMES=[..._0x5e04c3,_0x512801(0xed),_0x512801(0xcb)];const $=0xa;export class AIBalloon extends _0x2ebfbb{static get[_0x512801(0xec)](){return[_0x472640];}static get[_0x512801(0xd9)](){const _0x1f05b6=_0x512801;return _0x1f05b6(0xd5);}static get[_0x512801(0xe4)](){return!0x0;}static get[_0x512801(0xe7)](){return!0x0;}[_0x512801(0xca)]=!0x1;[_0x512801(0xc3)];[_0x512801(0xc2)]=!0x1;[_0x512801(0xb1)](_0xcdd84b){const _0x2d6f8a=_0x512801,{id:_0x16bbee}=this[_0x2d6f8a(0xc3)]??{};this[_0x2d6f8a(0xc3)]=_0xcdd84b;const {id:_0x4a00e7}=this[_0x2d6f8a(0xc3)];this[_0x2d6f8a(0xca)]&&_0x16bbee===_0x4a00e7?this[_0x2d6f8a(0xb8)]():this[_0x2d6f8a(0xa7)]();}[_0x512801(0xc6)](){const _0xf8abf8=_0x512801,_0x1e2346=_0x3af448(this[_0xf8abf8(0xbf)])[_0xf8abf8(0xd0)][_0xf8abf8(0xf1)](_0xf8abf8(0xba));_0x1e2346[_0xf8abf8(0xca)]&&this[_0xf8abf8(0xc3)]&&_0x1e2346['id']===this[_0xf8abf8(0xc3)]['id']&&_0x1e2346[_0xf8abf8(0xa4)]();}[_0x512801(0xb8)](){const _0x29117d=_0x512801,_0x4f0c0e=_0x3af448(this[_0x29117d(0xbf)])[_0x29117d(0xd0)][_0x29117d(0xf1)](_0x29117d(0xba)),{icon:_0xed2362,title:_0x300343}=this[_0x29117d(0xc3)];_0x4f0c0e[_0x29117d(0xb2)]?.[_0x29117d(0xef)]&&(_0x4f0c0e[_0x29117d(0xb2)][_0x29117d(0xef)][_0x29117d(0xb6)]=_0x300343,_0x4f0c0e[_0x29117d(0xb2)][_0x29117d(0xef)][_0x29117d(0xb9)]&&_0xed2362&&(_0x4f0c0e[_0x29117d(0xb2)][_0x29117d(0xef)][_0x29117d(0xb9)][_0x29117d(0xd1)]=_0xed2362)),this[_0x29117d(0xc2)]=!0x0,this[_0x29117d(0xdc)](),this[_0x29117d(0xc2)]=!0x1,_0x4f0c0e[_0x29117d(0xb2)]?.[_0x29117d(0xc0)]();}[_0x512801(0xdc)](){const _0x3d16f1=_0x512801;this[_0x3d16f1(0xbf)][_0x3d16f1(0xd0)][_0x3d16f1(0xf1)](_0x472640)[_0x3d16f1(0x99)](this[_0x3d16f1(0xc3)][_0x3d16f1(0xee)],_0x3d16f1(0x9b)+this[_0x3d16f1(0xc3)][_0x3d16f1(0x9e)],!0x0,!0x0);}[_0x512801(0x98)](_0x1d5aa7){const _0x2c27c2=_0x512801;this[_0x2c27c2(0xbf)][_0x2c27c2(0xd0)][_0x2c27c2(0xf1)](_0x472640)[_0x2c27c2(0xac)](_0x2c27c2(0x9b)+_0x1d5aa7);}[_0x512801(0xa7)](){const _0xb14020=_0x512801,_0x2ef1a1=_0x3af448(this[_0xb14020(0xbf)])[_0xb14020(0xd0)][_0xb14020(0xf1)](_0xb14020(0xba)),{id:_0x275384,title:_0x30160d,icon:_0x3eb1f7,class:_0x29543b,mainView:_0x12c794}=this[_0xb14020(0xc3)];_0x12c794[_0xb14020(0xdb)](..._0x5e04c3)['to'](this),_0x2ef1a1[_0xb14020(0xe3)]({'title':_0x30160d,'icon':_0x3eb1f7,'hasCloseButton':!0x0,'id':_0x275384,'position':this[_0xb14020(0xdd)][_0xb14020(0xd8)](this),'className':_0xb14020(0xe0)+(_0x29543b||''),'content':_0x12c794,'onShow':_0x597585=>{const _0xaaaf8a=_0xb14020;this[_0xaaaf8a(0xdc)](),this[_0xaaaf8a(0xd4)]();const _0x23c4b0=this[_0xaaaf8a(0x9d)]();_0x23c4b0&&_0x23c4b0[0x0]&&_0x517b1b({'target':_0x23c4b0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0xaaaf8a(0xca)]=!0x0,_0x597585[_0xaaaf8a(0xa6)](_0xaaaf8a(0xa4),()=>{const _0x1ca98a=_0xaaaf8a;this[_0x1ca98a(0xf3)](_0x1ca98a(0xb7),{'id':_0x275384});},{'priority':_0xaaaf8a(0xbe)});},'onHide':()=>{const _0x2ea89b=_0xb14020;this[_0x2ea89b(0x98)](this[_0x2ea89b(0xc3)][_0x2ea89b(0x9e)]),this[_0x2ea89b(0xaf)](),this[_0x2ea89b(0xf3)](_0x2ea89b(0xed),{'id':_0x275384}),this[_0x2ea89b(0xca)]=!0x1;}});}[_0x512801(0xdd)](_0x4d6649,_0x36823c){const _0x1b4a74=_0x512801;if(!_0x36823c)return null;const _0x4199c7=this[_0x1b4a74(0x9d)]();if(!_0x4199c7||0x0===_0x4199c7[_0x1b4a74(0xae)])return{'left':Math[_0x1b4a74(0xbb)](_0x36823c[_0x1b4a74(0x9c)]+_0x36823c[_0x1b4a74(0xd2)]/0x2-_0x4d6649[_0x1b4a74(0xd2)]/0x2),'top':Math[_0x1b4a74(0xbb)](_0x36823c[_0x1b4a74(0xe6)]+_0x36823c[_0x1b4a74(0xab)]/0x2-_0x4d6649[_0x1b4a74(0xab)]/0x2)};const _0x551270=Math[_0x1b4a74(0xbb)](_0x36823c[_0x1b4a74(0x9c)]+_0x36823c[_0x1b4a74(0xd2)]/0x2-_0x4d6649[_0x1b4a74(0xd2)]/0x2),_0x5902a3=_0x4199c7[_0x1b4a74(0xaa)](_0x1296dc=>new _0x3ea31e(_0x1296dc)),_0x4b3a3b=_0x4d6649[_0x1b4a74(0xab)];return{'left':_0x551270,'top':this[_0x1b4a74(0xa3)](_0x5902a3,_0x4b3a3b,_0x36823c)};}[_0x512801(0xa3)](_0xf60b3e,_0x440cd9,_0x1d7433){const _0x210f79=_0x512801,_0x44c679=new _0x3ea31e(_0x27f7ef[_0x210f79(0xa9)]),_0x528ac0=_0xf60b3e[_0x210f79(0xaa)](_0x2b80a7=>_0x2b80a7[_0x210f79(0xb5)]())[_0x210f79(0xde)](_0x21828f=>_0x21828f),_0x346ae9=_0x3ea31e[_0x210f79(0xc5)](_0x528ac0);if(!_0x346ae9)return Math[_0x210f79(0xbb)](_0x1d7433[_0x210f79(0xe6)]+_0x1d7433[_0x210f79(0xab)]/0x2);const _0x2cb0b3=_0x44c679[_0x210f79(0xd3)](_0x346ae9);if(!_0x2cb0b3)return Math[_0x210f79(0xbb)](_0x1d7433[_0x210f79(0xe6)]+_0x1d7433[_0x210f79(0xab)]/0x2);const _0x1c8288=_0x1d7433[_0x210f79(0xb5)](),_0x23e727=_0x1c8288&&_0x346ae9[_0x210f79(0xab)]>_0x1c8288[_0x210f79(0xab)],_0x59a14d=_0x2cb0b3[_0x210f79(0xe6)],_0x28eaaa=_0x2cb0b3[_0x210f79(0xf2)];if(_0x23e727){const _0x27bbe6=(_0x1c8288||_0x44c679)[_0x210f79(0xab)]/0x2-_0x440cd9/0x2,_0x15646d=_0x59a14d-$-_0x1d7433[_0x210f79(0xe6)],_0x58fb03=_0x1d7433[_0x210f79(0xf2)]-_0x28eaaa-$;return _0x15646d>=_0x440cd9?Math[_0x210f79(0xda)]($,_0x59a14d-_0x440cd9-$):_0x58fb03>=_0x440cd9?_0x28eaaa+$:Math[_0x210f79(0xda)]($,_0x27bbe6);}const _0x26ad2a=_0x59a14d-_0x440cd9,_0x402915=_0x1d7433[_0x210f79(0xf2)]-_0x28eaaa-$,_0x3eee81=_0x59a14d-$-_0x1d7433[_0x210f79(0xe6)];let _0x2fb949;if(_0x402915>=_0x440cd9)_0x2fb949=_0x28eaaa+$;else{if(_0x3eee81>=_0x440cd9)_0x2fb949=_0x26ad2a-$;else _0x2fb949=_0x59a14d+_0x346ae9[_0x210f79(0xab)]/0x2-_0x440cd9/0x2;}return _0x2fb949;}[_0x512801(0xd4)](){const _0x49f1c3=_0x512801,_0x5b94cb=_0x3af448(this[_0x49f1c3(0xbf)]);this[_0x49f1c3(0xe1)](_0x5b94cb[_0x49f1c3(0xce)][_0x49f1c3(0xdf)],_0x49f1c3(0xb0),()=>{const _0x3c4237=_0x49f1c3;if(!this[_0x3c4237(0xc2)]){for(const {name:_0x2922f6,data:{newRange:_0x37235a}}of _0x5b94cb[_0x3c4237(0xce)][_0x3c4237(0xdf)][_0x3c4237(0xf5)][_0x3c4237(0xcf)]())if(_0x2922f6[_0x3c4237(0xf0)](_0x5328cb+':')&&(_0x37235a&&(_0x37235a[_0x3c4237(0xe2)][_0x3c4237(0x9a)](_0x37235a[_0x3c4237(0xbc)])||_0x3c4237(0xc1)==_0x37235a[_0x3c4237(0x9f)][_0x3c4237(0xeb)])||null==_0x37235a)){const _0x59c0dc=_0x4b9b03(this[_0x3c4237(0xbf)][_0x3c4237(0xcc)],_0x3c4237(0xb3));this[_0x3c4237(0xc3)][_0x3c4237(0xd7)][_0x3c4237(0xa8)](_0x59c0dc),this[_0x3c4237(0xf3)](_0x3c4237(0xcb));}}});}[_0x512801(0xaf)](){const _0x343a6e=_0x512801,_0x4e9a41=_0x3af448(this[_0x343a6e(0xbf)]);this[_0x343a6e(0xc3)][_0x343a6e(0xd7)][_0x343a6e(0xf4)](),this[_0x343a6e(0xbd)](_0x4e9a41[_0x343a6e(0xce)][_0x343a6e(0xdf)]);}[_0x512801(0x9d)](){const _0x3b9a1f=_0x512801,_0x1a77fa=_0x3af448(this[_0x3b9a1f(0xbf)]);return _0xb53a9c(_0x1a77fa[_0x3b9a1f(0xa5)],[..._0x1a77fa[_0x3b9a1f(0xce)][_0x3b9a1f(0xc7)][_0x3b9a1f(0xc4)](_0x3b9a1f(0xcd)),..._0x1a77fa[_0x3b9a1f(0xce)][_0x3b9a1f(0xc7)][_0x3b9a1f(0xc4)](_0x3b9a1f(0xb4))]);}}
23
+ const _0x5e3973=_0x381f;(function(_0x43f92a,_0x3cf594){const _0x14487c=_0x381f,_0x32a5f3=_0x43f92a();while(!![]){try{const _0x54ac26=parseInt(_0x14487c(0xe1))/0x1*(parseInt(_0x14487c(0x100))/0x2)+-parseInt(_0x14487c(0xe6))/0x3*(parseInt(_0x14487c(0x101))/0x4)+-parseInt(_0x14487c(0xb1))/0x5+-parseInt(_0x14487c(0xb9))/0x6*(-parseInt(_0x14487c(0x109))/0x7)+-parseInt(_0x14487c(0xd9))/0x8+parseInt(_0x14487c(0x104))/0x9*(-parseInt(_0x14487c(0xef))/0xa)+-parseInt(_0x14487c(0xe0))/0xb*(-parseInt(_0x14487c(0xd8))/0xc);if(_0x54ac26===_0x3cf594)break;else _0x32a5f3['push'](_0x32a5f3['shift']());}catch(_0x23ccf8){_0x32a5f3['push'](_0x32a5f3['shift']());}}}(_0x546f,0x29b13));import{ContextPlugin as _0x805a39}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5880e6,AIEditing as _0x29bc32}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x509be8}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x54198a,Rect as _0x76d0fd,scrollViewportToShowTarget as _0x47119b}from'ckeditor5/src/utils.js';function _0x546f(){const _0x4f312a=['rootName','once','listenTo','filter','model','11yNCQaD','5lYVgOT','updatePosition','getMarkersGroup','delegate','getVisible','39789HHXbGf','ranges','hideFakeVisualSelection','differ','$graveyard','Dialog','beforeDialogClosed','_getSelectionElements','editing','14010qgwFhH','_isUpdatingMarkers','getIntersection','content','isPremiumPlugin','hideError','requires','context','open','high','map','showBlockingError','_updateDialog','left','round','_hideFakeVisualSelection','headerView','127782fprofc','48HUZRCo','getChangedMarkers','top','1449jcxeCa','height','isOfficialPlugin','label','ai-balloon-','30947GUQEJt','getBoundingRect','iconView','selectionRemoved','_showDialog','bind','index','1222250HSFsmS','show','dialogClosed','pluginName','_setupFakeVisualSelectionMarkerRemovalListener','ck-ai-balloon\x20','plugins','showFakeVisualSelection','180ruXSBl','document','_calculateOptimalTopPosition','_showFakeVisualSelection','ai-selection','_calculateDialogPosition','isOpen','max','change','bottom','AIBalloon','mainView','startsWith','length','locale','root','stopListening','hide','isEqual','_cleanupFakeVisualSelectionMarkerRemovalListener','ai-balloon-selection','_currentConfig','start','markers','AI_BALLOON_SELECTION_REMOVED_ERROR','fire','end','get','width','window','view','5422044cEsBav','831872ONQVCG','close'];_0x546f=function(){return _0x4f312a;};return _0x546f();}function _0x381f(_0x3fa1aa,_0x110533){const _0x546f9d=_0x546f();return _0x381f=function(_0x381fdd,_0x170545){_0x381fdd=_0x381fdd-0xae;let _0x5b583e=_0x546f9d[_0x381fdd];return _0x5b583e;},_0x381f(_0x3fa1aa,_0x110533);}import{getEditorFromContext as _0x56da33}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x4a87a7}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1121ee}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x1121ee,_0x5e3973(0xb3),_0x5e3973(0x10c)];const at=0xa;export class AIBalloon extends _0x805a39{static get[_0x5e3973(0xf5)](){return[_0x29bc32];}static get[_0x5e3973(0xb4)](){const _0x2eb4d1=_0x5e3973;return _0x2eb4d1(0xc3);}static get[_0x5e3973(0x106)](){return!0x0;}static get[_0x5e3973(0xf3)](){return!0x0;}[_0x5e3973(0xbf)]=!0x1;[_0x5e3973(0xce)];[_0x5e3973(0xf0)]=!0x1;[_0x5e3973(0xf7)](_0x2d3112){const _0x550e4a=_0x5e3973,{id:_0x353a62}=this[_0x550e4a(0xce)]??{};this[_0x550e4a(0xce)]=_0x2d3112;const {id:_0x166a12}=this[_0x550e4a(0xce)];this[_0x550e4a(0xbf)]&&_0x353a62===_0x166a12?this[_0x550e4a(0xfb)]():this[_0x550e4a(0xae)]();}[_0x5e3973(0xda)](){const _0x5eaf1d=_0x5e3973,_0x43a70d=_0x56da33(this[_0x5eaf1d(0xf6)])[_0x5eaf1d(0xb7)][_0x5eaf1d(0xd4)](_0x5eaf1d(0xeb));_0x43a70d[_0x5eaf1d(0xbf)]&&this[_0x5eaf1d(0xce)]&&_0x43a70d['id']===this[_0x5eaf1d(0xce)]['id']&&_0x43a70d[_0x5eaf1d(0xca)]();}[_0x5e3973(0xfb)](){const _0x419d6c=_0x5e3973,_0x54c392=_0x56da33(this[_0x419d6c(0xf6)])[_0x419d6c(0xb7)][_0x419d6c(0xd4)](_0x419d6c(0xeb)),{icon:_0x353d39,title:_0x874129}=this[_0x419d6c(0xce)];_0x54c392[_0x419d6c(0xd7)]?.[_0x419d6c(0xff)]&&(_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x107)]=_0x874129,_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x10b)]&&_0x353d39&&(_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x10b)][_0x419d6c(0xf2)]=_0x353d39)),this[_0x419d6c(0xf0)]=!0x0,this[_0x419d6c(0xbc)](),this[_0x419d6c(0xf0)]=!0x1,_0x54c392[_0x419d6c(0xd7)]?.[_0x419d6c(0xe2)]();}[_0x5e3973(0xbc)](){const _0x3173de=_0x5e3973;this[_0x3173de(0xf6)][_0x3173de(0xb7)][_0x3173de(0xd4)](_0x29bc32)[_0x3173de(0xb8)](this[_0x3173de(0xce)][_0x3173de(0xe7)],_0x3173de(0x108)+this[_0x3173de(0xce)][_0x3173de(0xb0)],!0x0,!0x0);}[_0x5e3973(0xfe)](_0x9fe682){const _0x1ee318=_0x5e3973;this[_0x1ee318(0xf6)][_0x1ee318(0xb7)][_0x1ee318(0xd4)](_0x29bc32)[_0x1ee318(0xe8)](_0x1ee318(0x108)+_0x9fe682);}[_0x5e3973(0xae)](){const _0x55eb76=_0x5e3973,_0xf92fd2=_0x56da33(this[_0x55eb76(0xf6)])[_0x55eb76(0xb7)][_0x55eb76(0xd4)](_0x55eb76(0xeb)),{id:_0x5a271c,title:_0x1698ff,icon:_0x212d88,class:_0x14a0f8,mainView:_0x307f56}=this[_0x55eb76(0xce)];_0x307f56[_0x55eb76(0xe4)](..._0x1121ee)['to'](this),_0xf92fd2[_0x55eb76(0xb2)]({'title':_0x1698ff,'icon':_0x212d88,'hasCloseButton':!0x0,'id':_0x5a271c,'position':this[_0x55eb76(0xbe)][_0x55eb76(0xaf)](this),'className':_0x55eb76(0xb6)+(_0x14a0f8||''),'content':_0x307f56,'onShow':_0x59d3b2=>{const _0x29923a=_0x55eb76;this[_0x29923a(0xbc)](),this[_0x29923a(0xb5)]();const _0x193444=this[_0x29923a(0xed)]();_0x193444&&_0x193444[0x0]&&_0x47119b({'target':_0x193444[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29923a(0xbf)]=!0x0,_0x59d3b2[_0x29923a(0xdc)](_0x29923a(0xca),()=>{const _0x1fca1e=_0x29923a;this[_0x1fca1e(0xd2)](_0x1fca1e(0xec),{'id':_0x5a271c});},{'priority':_0x29923a(0xf8)});},'onHide':()=>{const _0x18788b=_0x55eb76;this[_0x18788b(0xfe)](this[_0x18788b(0xce)][_0x18788b(0xb0)]),this[_0x18788b(0xcc)](),this[_0x18788b(0xd2)](_0x18788b(0xb3),{'id':_0x5a271c}),this[_0x18788b(0xbf)]=!0x1;}});}[_0x5e3973(0xbe)](_0x21a328,_0x597889){const _0x117ca2=_0x5e3973;if(!_0x597889)return null;const _0x15a05c=this[_0x117ca2(0xed)]();if(!_0x15a05c||0x0===_0x15a05c[_0x117ca2(0xc6)])return{'left':Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0xfc)]+_0x597889[_0x117ca2(0xd5)]/0x2-_0x21a328[_0x117ca2(0xd5)]/0x2),'top':Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0x103)]+_0x597889[_0x117ca2(0x105)]/0x2-_0x21a328[_0x117ca2(0x105)]/0x2)};const _0x4999f5=Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0xfc)]+_0x597889[_0x117ca2(0xd5)]/0x2-_0x21a328[_0x117ca2(0xd5)]/0x2),_0xaa683f=_0x15a05c[_0x117ca2(0xf9)](_0x4c4f92=>new _0x76d0fd(_0x4c4f92)),_0x2adf63=_0x21a328[_0x117ca2(0x105)];return{'left':_0x4999f5,'top':this[_0x117ca2(0xbb)](_0xaa683f,_0x2adf63,_0x597889)};}[_0x5e3973(0xbb)](_0x10652e,_0x435dbf,_0xb65beb){const _0x58d478=_0x5e3973,_0x12d62c=new _0x76d0fd(_0x54198a[_0x58d478(0xd6)]),_0x53df8e=_0x10652e[_0x58d478(0xf9)](_0x30e0a3=>_0x30e0a3[_0x58d478(0xe5)]())[_0x58d478(0xde)](_0x1b6786=>_0x1b6786),_0x102a73=_0x76d0fd[_0x58d478(0x10a)](_0x53df8e);if(!_0x102a73)return Math[_0x58d478(0xfd)](_0xb65beb[_0x58d478(0x103)]+_0xb65beb[_0x58d478(0x105)]/0x2);const _0x206869=_0x12d62c[_0x58d478(0xf1)](_0x102a73);if(!_0x206869)return Math[_0x58d478(0xfd)](_0xb65beb[_0x58d478(0x103)]+_0xb65beb[_0x58d478(0x105)]/0x2);const _0x6ec3e5=_0xb65beb[_0x58d478(0xe5)](),_0x55feb0=_0x6ec3e5&&_0x102a73[_0x58d478(0x105)]>_0x6ec3e5[_0x58d478(0x105)],_0x11f53f=_0x206869[_0x58d478(0x103)],_0x335ce4=_0x206869[_0x58d478(0xc2)];if(_0x55feb0){const _0x346433=(_0x6ec3e5||_0x12d62c)[_0x58d478(0x105)]/0x2-_0x435dbf/0x2,_0x30dbd6=_0x11f53f-at-_0xb65beb[_0x58d478(0x103)],_0x32e732=_0xb65beb[_0x58d478(0xc2)]-_0x335ce4-at;return _0x30dbd6>=_0x435dbf?Math[_0x58d478(0xc0)](at,_0x11f53f-_0x435dbf-at):_0x32e732>=_0x435dbf?_0x335ce4+at:Math[_0x58d478(0xc0)](at,_0x346433);}const _0x4bfb79=_0x11f53f-_0x435dbf,_0x1caf98=_0xb65beb[_0x58d478(0xc2)]-_0x335ce4-at,_0x1c8f8a=_0x11f53f-at-_0xb65beb[_0x58d478(0x103)];let _0x533d36;if(_0x1caf98>=_0x435dbf)_0x533d36=_0x335ce4+at;else{if(_0x1c8f8a>=_0x435dbf)_0x533d36=_0x4bfb79-at;else _0x533d36=_0x11f53f+_0x102a73[_0x58d478(0x105)]/0x2-_0x435dbf/0x2;}return _0x533d36;}[_0x5e3973(0xb5)](){const _0x2db013=_0x5e3973,_0x1880da=_0x56da33(this[_0x2db013(0xf6)]);this[_0x2db013(0xdd)](_0x1880da[_0x2db013(0xdf)][_0x2db013(0xba)],_0x2db013(0xc1),()=>{const _0x307caa=_0x2db013;if(!this[_0x307caa(0xf0)]){for(const {name:_0x20a336,data:{newRange:_0x153668}}of _0x1880da[_0x307caa(0xdf)][_0x307caa(0xba)][_0x307caa(0xe9)][_0x307caa(0x102)]())if(_0x20a336[_0x307caa(0xc5)](_0x5880e6+':')&&(_0x153668&&(_0x153668[_0x307caa(0xcf)][_0x307caa(0xcb)](_0x153668[_0x307caa(0xd3)])||_0x307caa(0xea)==_0x153668[_0x307caa(0xc8)][_0x307caa(0xdb)])||null==_0x153668)){const _0x151e58=_0x4a87a7(this[_0x307caa(0xf6)][_0x307caa(0xc7)],_0x307caa(0xd1));this[_0x307caa(0xce)][_0x307caa(0xc4)][_0x307caa(0xfa)](_0x151e58),this[_0x307caa(0xd2)](_0x307caa(0x10c));}}});}[_0x5e3973(0xcc)](){const _0x25ae00=_0x5e3973,_0x5074cf=_0x56da33(this[_0x25ae00(0xf6)]);this[_0x25ae00(0xce)][_0x25ae00(0xc4)][_0x25ae00(0xf4)](),this[_0x25ae00(0xc9)](_0x5074cf[_0x25ae00(0xdf)][_0x25ae00(0xba)]);}[_0x5e3973(0xed)](){const _0x246263=_0x5e3973,_0xb949ea=_0x56da33(this[_0x246263(0xf6)]);return _0x509be8(_0xb949ea[_0x246263(0xee)],[..._0xb949ea[_0x246263(0xdf)][_0x246263(0xd0)][_0x246263(0xe3)](_0x246263(0xbd)),..._0xb949ea[_0x246263(0xdf)][_0x246263(0xd0)][_0x246263(0xe3)](_0x246263(0xcd))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa49c12=_0x4922;function _0xb021(){var _0x260b45=['98500mwhxtm','_registerToolDataCallback','removeSelectionFromChatContext','ai.chat.context','AIChat','isPremiumPlugin','new','plugins','focusPromptInput','requires','8779270sZDKZd','sendMessage','160846xCMVxM','registerToolDataCallback','5FgWEhO','define','get','795596pcexXZ','31FSvISU','3118560TqfWhB','isOfficialPlugin','addSelectionToChatContext','3556308dPnBts','config','12LGFfJR','context','2110995OsymcU','ai.chat.initialConversation','pluginName','startConversation'];_0xb021=function(){return _0x260b45;};return _0xb021();}(function(_0x2750c5,_0x15b051){var _0x391f5e=_0x4922,_0x12c619=_0x2750c5();while(!![]){try{var _0x30ceb9=-parseInt(_0x391f5e(0xe1))/0x1*(parseInt(_0x391f5e(0xed))/0x2)+-parseInt(_0x391f5e(0xe7))/0x3*(-parseInt(_0x391f5e(0xe0))/0x4)+-parseInt(_0x391f5e(0xdd))/0x5*(-parseInt(_0x391f5e(0xe5))/0x6)+parseInt(_0x391f5e(0xdb))/0x7+parseInt(_0x391f5e(0xe2))/0x8+-parseInt(_0x391f5e(0xe9))/0x9+parseInt(_0x391f5e(0xf7))/0xa;if(_0x30ceb9===_0x15b051)break;else _0x12c619['push'](_0x12c619['shift']());}catch(_0x5272f5){_0x12c619['push'](_0x12c619['shift']());}}}(_0xb021,0xe00e6));import{ContextPlugin as _0x108d9a}from'ckeditor5/src/core.js';import{AIChatController as _0x143150}from'./aichatcontroller.js';function _0x4922(_0x1f50e,_0x12cd61){var _0xb0215d=_0xb021();return _0x4922=function(_0x492227,_0x10682b){_0x492227=_0x492227-0xdb;var _0xcb3cb2=_0xb0215d[_0x492227];return _0xcb3cb2;},_0x4922(_0x1f50e,_0x12cd61);}import{AIEditing as _0x5a786c}from'../aicore/aiediting.js';import{AIChatUI as _0x5dcd1e}from'./aichatui.js';import{AIChatHistory as _0x47d96f}from'../aichathistory/aichathistory.js';export class AIChat extends _0x108d9a{static get[_0xa49c12(0xf6)](){return[_0x143150,_0x5a786c,_0x5dcd1e,_0x47d96f];}static get[_0xa49c12(0xeb)](){var _0x126c09=_0xa49c12;return _0x126c09(0xf1);}static get[_0xa49c12(0xe3)](){return!0x0;}static get[_0xa49c12(0xf2)](){return!0x0;}constructor(_0x20e9ca){var _0x1ca10f=_0xa49c12;super(_0x20e9ca),this[_0x1ca10f(0xe8)][_0x1ca10f(0xe6)][_0x1ca10f(0xde)](_0x1ca10f(0xf0),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x1ca10f(0xe8)][_0x1ca10f(0xe6)][_0x1ca10f(0xde)](_0x1ca10f(0xea),_0x1ca10f(0xf3));}async[_0xa49c12(0xe4)](){var _0x2a6a3b=_0xa49c12;await this[_0x2a6a3b(0xe8)][_0x2a6a3b(0xf4)][_0x2a6a3b(0xdf)](_0x143150)[_0x2a6a3b(0xe4)]();}async[_0xa49c12(0xec)](){var _0x130084=_0xa49c12;await this[_0x130084(0xe8)][_0x130084(0xf4)][_0x130084(0xdf)](_0x143150)[_0x130084(0xec)]();}async[_0xa49c12(0xf8)]({message:_0x18ab35,attributes:_0x543a50}){var _0x3c0e59=_0xa49c12;await this[_0x3c0e59(0xe8)][_0x3c0e59(0xf4)][_0x3c0e59(0xdf)](_0x143150)[_0x3c0e59(0xf8)]({'message':_0x18ab35,'attributes':_0x543a50});}[_0xa49c12(0xef)](){var _0x2585c6=_0xa49c12;this[_0x2585c6(0xe8)][_0x2585c6(0xf4)][_0x2585c6(0xdf)](_0x143150)[_0x2585c6(0xef)]();}[_0xa49c12(0xf5)](){var _0x3a4023=_0xa49c12;this[_0x3a4023(0xe8)][_0x3a4023(0xf4)][_0x3a4023(0xdf)](_0x143150)[_0x3a4023(0xf5)]();}[_0xa49c12(0xdc)](_0x1f7c3a){var _0x435bdc=_0xa49c12;this[_0x435bdc(0xe8)][_0x435bdc(0xf4)][_0x435bdc(0xdf)](_0x143150)[_0x435bdc(0xee)](_0x1f7c3a);}}
23
+ function _0x221c(){var _0x155324=['new','ai.chat.context','AIChat','isPremiumPlugin','159fiPmlS','define','866920zrUdnU','get','ai.chat.initialConversation','context','config','plugins','1191700UDHOmd','requires','2229138DUqfpq','addSelectionToChatContext','pluginName','isOfficialPlugin','registerToolDataCallback','startConversation','292431mGAWOy','removeSelectionFromChatContext','35JljteK','4027455KiHAen','38212eBNGzc','focusPromptInput','539356OwUOIa','sendMessage','_registerToolDataCallback'];_0x221c=function(){return _0x155324;};return _0x221c();}function _0x565b(_0x404eff,_0x227c78){var _0x221cd9=_0x221c();return _0x565b=function(_0x565ba4,_0x4a7d4a){_0x565ba4=_0x565ba4-0x1de;var _0x3bd1df=_0x221cd9[_0x565ba4];return _0x3bd1df;},_0x565b(_0x404eff,_0x227c78);}var _0x5c9b9f=_0x565b;(function(_0x57dad0,_0x306a62){var _0x1d56db=_0x565b,_0x46448b=_0x57dad0();while(!![]){try{var _0x3b6262=parseInt(_0x1d56db(0x1ed))/0x1+parseInt(_0x1d56db(0x1f3))/0x2+parseInt(_0x1d56db(0x1fa))/0x3*(-parseInt(_0x1d56db(0x1f1))/0x4)+-parseInt(_0x1d56db(0x1e5))/0x5+parseInt(_0x1d56db(0x1e7))/0x6+parseInt(_0x1d56db(0x1ef))/0x7*(parseInt(_0x1d56db(0x1df))/0x8)+-parseInt(_0x1d56db(0x1f0))/0x9;if(_0x3b6262===_0x306a62)break;else _0x46448b['push'](_0x46448b['shift']());}catch(_0x5572a1){_0x46448b['push'](_0x46448b['shift']());}}}(_0x221c,0x452b1));import{ContextPlugin as _0x3d7b1f}from'ckeditor5/src/core.js';import{AIChatController as _0x54d2d2}from'./aichatcontroller.js';import{AIEditing as _0x56e663}from'../aicore/aiediting.js';import{AIChatUI as _0x1eebce}from'./aichatui.js';import{AIChatHistory as _0x2edff7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3d7b1f{static get[_0x5c9b9f(0x1e6)](){return[_0x54d2d2,_0x56e663,_0x1eebce,_0x2edff7];}static get[_0x5c9b9f(0x1e9)](){var _0x522ad4=_0x5c9b9f;return _0x522ad4(0x1f8);}static get[_0x5c9b9f(0x1ea)](){return!0x0;}static get[_0x5c9b9f(0x1f9)](){return!0x0;}constructor(_0x380556){var _0x5271a8=_0x5c9b9f;super(_0x380556),this[_0x5271a8(0x1e2)][_0x5271a8(0x1e3)][_0x5271a8(0x1de)](_0x5271a8(0x1f7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5271a8(0x1e2)][_0x5271a8(0x1e3)][_0x5271a8(0x1de)](_0x5271a8(0x1e1),_0x5271a8(0x1f6));}async[_0x5c9b9f(0x1e8)](){var _0x19c132=_0x5c9b9f;await this[_0x19c132(0x1e2)][_0x19c132(0x1e4)][_0x19c132(0x1e0)](_0x54d2d2)[_0x19c132(0x1e8)]();}async[_0x5c9b9f(0x1ec)](){var _0x3d7e94=_0x5c9b9f;await this[_0x3d7e94(0x1e2)][_0x3d7e94(0x1e4)][_0x3d7e94(0x1e0)](_0x54d2d2)[_0x3d7e94(0x1ec)]();}async[_0x5c9b9f(0x1f4)]({message:_0x57b2db,attributes:_0x58bc45}){var _0x53a32e=_0x5c9b9f;await this[_0x53a32e(0x1e2)][_0x53a32e(0x1e4)][_0x53a32e(0x1e0)](_0x54d2d2)[_0x53a32e(0x1f4)]({'message':_0x57b2db,'attributes':_0x58bc45});}[_0x5c9b9f(0x1ee)](){var _0x127c41=_0x5c9b9f;this[_0x127c41(0x1e2)][_0x127c41(0x1e4)][_0x127c41(0x1e0)](_0x54d2d2)[_0x127c41(0x1ee)]();}[_0x5c9b9f(0x1f2)](){var _0x9bab48=_0x5c9b9f;this[_0x9bab48(0x1e2)][_0x9bab48(0x1e4)][_0x9bab48(0x1e0)](_0x54d2d2)[_0x9bab48(0x1f2)]();}[_0x5c9b9f(0x1eb)](_0x4c213f){var _0x3d7030=_0x5c9b9f;this[_0x3d7030(0x1e2)][_0x3d7030(0x1e4)][_0x3d7030(0x1e0)](_0x54d2d2)[_0x3d7030(0x1f5)](_0x4c213f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca91c=_0x250c;(function(_0x1b39aa,_0x411ff7){const _0xe6601b=_0x250c,_0x567c09=_0x1b39aa();while(!![]){try{const _0x45ce6e=-parseInt(_0xe6601b(0x143))/0x1+parseInt(_0xe6601b(0x149))/0x2+-parseInt(_0xe6601b(0x11a))/0x3*(-parseInt(_0xe6601b(0x13c))/0x4)+parseInt(_0xe6601b(0x156))/0x5+-parseInt(_0xe6601b(0x14c))/0x6*(parseInt(_0xe6601b(0x138))/0x7)+parseInt(_0xe6601b(0x129))/0x8+parseInt(_0xe6601b(0x144))/0x9*(-parseInt(_0xe6601b(0x153))/0xa);if(_0x45ce6e===_0x411ff7)break;else _0x567c09['push'](_0x567c09['shift']());}catch(_0x12a1ad){_0x567c09['push'](_0x567c09['shift']());}}}(_0x195a,0xbf8ec));import{Plugin as _0x45f608}from'ckeditor5/src/core.js';import{AIBalloon as _0x8241d5}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x47c19d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x250c(_0x4262a9,_0xa75b8a){const _0x195afe=_0x195a();return _0x250c=function(_0x250c7c,_0x2b93c0){_0x250c7c=_0x250c7c-0x119;let _0x86f48b=_0x195afe[_0x250c7c];return _0x86f48b;},_0x250c(_0x4262a9,_0xa75b8a);}import{AIChatBalloonView as _0x1bcb68}from'./ui/aichatballoonview.js';function _0x195a(){const _0x3f05ca=['654655DvvYMn','updateContent','render','showNext','close','156gZfhAU','nextButtonView','ai.availableReplyActions','areActionsDisabled','isPremiumPlugin','aiChatBalloon','AIBalloon','AIChatBalloon','pluginName','bind','_toggleRotatorButtonsInDialogHeader','set','dialogClosed','editor','setState','3718696gUTCwB','Dialog','open','_createChatBalloonView','filter','applySuggestion','isTrackChangesOn','TrackChanges','headerView','focus','togglePartToolbarEnabled','showRotator','config','remove','beforeDialogClosed','274589bYEABt','toggleRotatorButtonsVisibility','trackChanges','_restoreDefaultViewFocus','87208PeeGBw','isOfficialPlugin','addMany','locale','children','delegate','_chatBalloonView','94957NhQDoU','7983KIaAHS','requires','ck-ai-chat-balloon','commands','previousButtonView','1479866cWNGfg','get','showPrevious','90OqWWkH','value','insertSuggestion','showDiff','has','rejectSuggestion','plugins','11290DxBsTl','view','once'];_0x195a=function(){return _0x3f05ca;};return _0x195a();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x359b59}from'../aicore/utils/eventnames.js';import{Dialog as _0x10f15a}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x45f608{static get[_0x5ca91c(0x145)](){return[_0x10f15a,_0x8241d5];}static get[_0x5ca91c(0x122)](){const _0x35e0c3=_0x5ca91c;return _0x35e0c3(0x121);}static get[_0x5ca91c(0x13d)](){return!0x0;}static get[_0x5ca91c(0x11e)](){return!0x0;}[_0x5ca91c(0x142)];constructor(_0x34dd4f){const _0x3cea17=_0x5ca91c;super(_0x34dd4f),this[_0x3cea17(0x125)](_0x3cea17(0x14f),!0x1);}[_0x5ca91c(0x12b)](_0x240934){const _0x5bdd49=_0x5ca91c,_0x56f143=this[_0x5bdd49(0x127)];this[_0x5bdd49(0x142)]||(this[_0x5bdd49(0x142)]=this[_0x5bdd49(0x12c)]()),_0x56f143[_0x5bdd49(0x152)][_0x5bdd49(0x14a)](_0x5bdd49(0x120))[_0x5bdd49(0x12b)]({..._0x240934,'id':_0x5bdd49(0x11f),'class':_0x5bdd49(0x146),'mainView':this[_0x5bdd49(0x142)]}),this[_0x5bdd49(0x124)](_0x240934[_0x5bdd49(0x134)]),this[_0x5bdd49(0x142)][_0x5bdd49(0x133)](!_0x240934[_0x5bdd49(0x11d)]),this[_0x5bdd49(0x13b)]();}[_0x5ca91c(0x119)](){const _0x4ebd75=_0x5ca91c;this[_0x4ebd75(0x127)][_0x4ebd75(0x152)][_0x4ebd75(0x14a)](_0x4ebd75(0x120))[_0x4ebd75(0x119)]();}[_0x5ca91c(0x157)](_0x44be5a){const _0x1ca107=_0x5ca91c;return this[_0x1ca107(0x142)]||(this[_0x1ca107(0x142)]=this[_0x1ca107(0x12c)]()),this[_0x1ca107(0x142)][_0x1ca107(0x157)](_0x44be5a);}[_0x5ca91c(0x128)](_0x510983){const _0x190d09=_0x5ca91c;this[_0x190d09(0x142)]&&this[_0x190d09(0x142)][_0x190d09(0x128)](_0x510983);}[_0x5ca91c(0x12c)](){const _0x19f632=_0x5ca91c,_0x49b209=this[_0x19f632(0x127)],_0x3cd883=_0x49b209[_0x19f632(0x152)][_0x19f632(0x14a)](_0x19f632(0x120)),_0x50b919=_0x49b209[_0x19f632(0x147)][_0x19f632(0x14a)](_0x19f632(0x13a));let _0x5791d7=_0x49b209[_0x19f632(0x135)][_0x19f632(0x14a)](_0x19f632(0x11c))||[..._0x47c19d];_0x49b209[_0x19f632(0x152)][_0x19f632(0x150)](_0x19f632(0x130))||(_0x5791d7=_0x5791d7[_0x19f632(0x12d)](_0x1b8719=>_0x19f632(0x14e)!=_0x1b8719));const _0x23f77d=new _0x1bcb68(_0x49b209[_0x19f632(0x13f)],{'availableActions':_0x5791d7,'showApplyButton':!0x0,'showSuggestButton':!!_0x50b919});return _0x23f77d[_0x19f632(0x123)](_0x19f632(0x14f))['to'](this),_0x23f77d[_0x19f632(0x141)](..._0x359b59)['to'](this),_0x23f77d[_0x19f632(0x141)](_0x19f632(0x14b),_0x19f632(0x159))['to'](this),_0x3cd883[_0x19f632(0x141)](_0x19f632(0x126))['to'](this),_0x23f77d['on'](_0x19f632(0x12e),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x23f77d['on'](_0x19f632(0x14e),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x23f77d['on'](_0x19f632(0x151),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x50b919&&_0x23f77d[_0x19f632(0x123)](_0x19f632(0x12f))['to'](_0x50b919,_0x19f632(0x14d)),_0x23f77d[_0x19f632(0x158)](),_0x23f77d;}[_0x5ca91c(0x124)](_0x2a816f){const _0x54d0bf=_0x5ca91c,_0x4caaa5=this[_0x54d0bf(0x127)],_0x51d517=_0x4caaa5[_0x54d0bf(0x152)][_0x54d0bf(0x14a)](_0x54d0bf(0x12a))[_0x54d0bf(0x154)][_0x54d0bf(0x131)][_0x54d0bf(0x140)];this[_0x54d0bf(0x142)][_0x54d0bf(0x139)](_0x2a816f),_0x51d517[_0x54d0bf(0x150)](this[_0x54d0bf(0x142)][_0x54d0bf(0x148)])||(_0x51d517[_0x54d0bf(0x13e)]([this[_0x54d0bf(0x142)][_0x54d0bf(0x148)],this[_0x54d0bf(0x142)][_0x54d0bf(0x11b)]],0x0),_0x4caaa5[_0x54d0bf(0x152)][_0x54d0bf(0x14a)](_0x54d0bf(0x120))[_0x54d0bf(0x155)](_0x54d0bf(0x137),()=>{const _0x5b7259=_0x54d0bf;_0x51d517[_0x5b7259(0x136)](this[_0x5b7259(0x142)][_0x5b7259(0x148)]),_0x51d517[_0x5b7259(0x136)](this[_0x5b7259(0x142)][_0x5b7259(0x11b)]);}));}[_0x5ca91c(0x13b)](){const _0x3f3e71=_0x5ca91c;this[_0x3f3e71(0x142)][_0x3f3e71(0x132)]();}}
23
+ function _0x8d09(_0x3730f8,_0x1e0eed){const _0x3c88f1=_0x3c88();return _0x8d09=function(_0x8d0920,_0x541700){_0x8d0920=_0x8d0920-0x195;let _0x54a99f=_0x3c88f1[_0x8d0920];return _0x54a99f;},_0x8d09(_0x3730f8,_0x1e0eed);}const _0x1f272c=_0x8d09;function _0x3c88(){const _0x284333=['has','focus','get','4UyIytS','nextButtonView','value','AIChatBalloon','requires','addMany','ck-ai-chat-balloon','14wNfJsj','Dialog','filter','_toggleRotatorButtonsInDialogHeader','showRotator','view','TrackChanges','287745soBhgd','children','open','updateContent','bind','_createChatBalloonView','render','showPrevious','plugins','aiChatBalloon','showNext','dialogClosed','insertSuggestion','isPremiumPlugin','4167368iTlOJO','trackChanges','699615bdGxhv','710512NkqkiS','703020gAFgKt','remove','_chatBalloonView','4214358BNKkXE','previousButtonView','setState','once','showDiff','967005HViCHa','isTrackChangesOn','set','rejectSuggestion','togglePartToolbarEnabled','ai.availableReplyActions','_restoreDefaultViewFocus','editor','pluginName','beforeDialogClosed','delegate','areActionsDisabled','isOfficialPlugin','locale','applySuggestion','close','commands','config','AIBalloon','toggleRotatorButtonsVisibility','headerView'];_0x3c88=function(){return _0x284333;};return _0x3c88();}(function(_0x6d7ed0,_0x5b982e){const _0x57279c=_0x8d09,_0x1bc39a=_0x6d7ed0();while(!![]){try{const _0x5a2eac=parseInt(_0x57279c(0x1ce))/0x1+parseInt(_0x57279c(0x1c5))/0x2+-parseInt(_0x57279c(0x1c9))/0x3+parseInt(_0x57279c(0x1a6))/0x4*(-parseInt(_0x57279c(0x1b4))/0x5)+-parseInt(_0x57279c(0x1c6))/0x6+parseInt(_0x57279c(0x1ad))/0x7*(parseInt(_0x57279c(0x1c2))/0x8)+-parseInt(_0x57279c(0x1c4))/0x9;if(_0x5a2eac===_0x5b982e)break;else _0x1bc39a['push'](_0x1bc39a['shift']());}catch(_0x3eec83){_0x1bc39a['push'](_0x1bc39a['shift']());}}}(_0x3c88,0xac92f));import{Plugin as _0x11d059}from'ckeditor5/src/core.js';import{AIBalloon as _0x50a5fd}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x3196f6}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x18d140}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x582d63}from'../aicore/utils/eventnames.js';import{Dialog as _0x1fc76e}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x11d059{static get[_0x1f272c(0x1aa)](){return[_0x1fc76e,_0x50a5fd];}static get[_0x1f272c(0x196)](){const _0x273eef=_0x1f272c;return _0x273eef(0x1a9);}static get[_0x1f272c(0x19a)](){return!0x0;}static get[_0x1f272c(0x1c1)](){return!0x0;}[_0x1f272c(0x1c8)];constructor(_0x341216){const _0x7eef8d=_0x1f272c;super(_0x341216),this[_0x7eef8d(0x1d0)](_0x7eef8d(0x1cd),!0x1);}[_0x1f272c(0x1b6)](_0x4b3134){const _0xab3bfb=_0x1f272c,_0x1a34aa=this[_0xab3bfb(0x195)];this[_0xab3bfb(0x1c8)]||(this[_0xab3bfb(0x1c8)]=this[_0xab3bfb(0x1b9)]()),_0x1a34aa[_0xab3bfb(0x1bc)][_0xab3bfb(0x1a5)](_0xab3bfb(0x1a0))[_0xab3bfb(0x1b6)]({..._0x4b3134,'id':_0xab3bfb(0x1bd),'class':_0xab3bfb(0x1ac),'mainView':this[_0xab3bfb(0x1c8)]}),this[_0xab3bfb(0x1b0)](_0x4b3134[_0xab3bfb(0x1b1)]),this[_0xab3bfb(0x1c8)][_0xab3bfb(0x1d2)](!_0x4b3134[_0xab3bfb(0x199)]),this[_0xab3bfb(0x1d4)]();}[_0x1f272c(0x19d)](){const _0xccea40=_0x1f272c;this[_0xccea40(0x195)][_0xccea40(0x1bc)][_0xccea40(0x1a5)](_0xccea40(0x1a0))[_0xccea40(0x19d)]();}[_0x1f272c(0x1b7)](_0x10db13){const _0x2214cc=_0x1f272c;return this[_0x2214cc(0x1c8)]||(this[_0x2214cc(0x1c8)]=this[_0x2214cc(0x1b9)]()),this[_0x2214cc(0x1c8)][_0x2214cc(0x1b7)](_0x10db13);}[_0x1f272c(0x1cb)](_0x5651c8){const _0x513907=_0x1f272c;this[_0x513907(0x1c8)]&&this[_0x513907(0x1c8)][_0x513907(0x1cb)](_0x5651c8);}[_0x1f272c(0x1b9)](){const _0x1e56da=_0x1f272c,_0xc854ab=this[_0x1e56da(0x195)],_0x4d3b49=_0xc854ab[_0x1e56da(0x1bc)][_0x1e56da(0x1a5)](_0x1e56da(0x1a0)),_0x1dce90=_0xc854ab[_0x1e56da(0x19e)][_0x1e56da(0x1a5)](_0x1e56da(0x1c3));let _0x736182=_0xc854ab[_0x1e56da(0x19f)][_0x1e56da(0x1a5)](_0x1e56da(0x1d3))||[..._0x3196f6];_0xc854ab[_0x1e56da(0x1bc)][_0x1e56da(0x1a3)](_0x1e56da(0x1b3))||(_0x736182=_0x736182[_0x1e56da(0x1af)](_0x435fe3=>_0x1e56da(0x1c0)!=_0x435fe3));const _0xbe981d=new _0x18d140(_0xc854ab[_0x1e56da(0x19b)],{'availableActions':_0x736182,'showApplyButton':!0x0,'showSuggestButton':!!_0x1dce90});return _0xbe981d[_0x1e56da(0x1b8)](_0x1e56da(0x1cd))['to'](this),_0xbe981d[_0x1e56da(0x198)](..._0x582d63)['to'](this),_0xbe981d[_0x1e56da(0x198)](_0x1e56da(0x1bb),_0x1e56da(0x1be))['to'](this),_0x4d3b49[_0x1e56da(0x198)](_0x1e56da(0x1bf))['to'](this),_0xbe981d['on'](_0x1e56da(0x19c),this[_0x1e56da(0x1d4)][_0x1e56da(0x1b8)](this)),_0xbe981d['on'](_0x1e56da(0x1c0),this[_0x1e56da(0x1d4)][_0x1e56da(0x1b8)](this)),_0xbe981d['on'](_0x1e56da(0x1d1),this[_0x1e56da(0x1d4)][_0x1e56da(0x1b8)](this)),_0x1dce90&&_0xbe981d[_0x1e56da(0x1b8)](_0x1e56da(0x1cf))['to'](_0x1dce90,_0x1e56da(0x1a8)),_0xbe981d[_0x1e56da(0x1ba)](),_0xbe981d;}[_0x1f272c(0x1b0)](_0x117bfb){const _0x4be926=_0x1f272c,_0x329116=this[_0x4be926(0x195)],_0x5c311c=_0x329116[_0x4be926(0x1bc)][_0x4be926(0x1a5)](_0x4be926(0x1ae))[_0x4be926(0x1b2)][_0x4be926(0x1a2)][_0x4be926(0x1b5)];this[_0x4be926(0x1c8)][_0x4be926(0x1a1)](_0x117bfb),_0x5c311c[_0x4be926(0x1a3)](this[_0x4be926(0x1c8)][_0x4be926(0x1ca)])||(_0x5c311c[_0x4be926(0x1ab)]([this[_0x4be926(0x1c8)][_0x4be926(0x1ca)],this[_0x4be926(0x1c8)][_0x4be926(0x1a7)]],0x0),_0x329116[_0x4be926(0x1bc)][_0x4be926(0x1a5)](_0x4be926(0x1a0))[_0x4be926(0x1cc)](_0x4be926(0x197),()=>{const _0x223431=_0x4be926;_0x5c311c[_0x223431(0x1c7)](this[_0x223431(0x1c8)][_0x223431(0x1ca)]),_0x5c311c[_0x223431(0x1c7)](this[_0x223431(0x1c8)][_0x223431(0x1a7)]);}));}[_0x1f272c(0x1d4)](){const _0x305587=_0x1f272c;this[_0x305587(0x1c8)][_0x305587(0x1a4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58d811=_0x229b;(function(_0x18fe88,_0x1189f0){const _0xd5451e=_0x229b,_0x34b318=_0x18fe88();while(!![]){try{const _0x37dff3=-parseInt(_0xd5451e(0x1fb))/0x1*(parseInt(_0xd5451e(0x279))/0x2)+parseInt(_0xd5451e(0x20f))/0x3*(-parseInt(_0xd5451e(0x166))/0x4)+-parseInt(_0xd5451e(0x27b))/0x5*(parseInt(_0xd5451e(0x109))/0x6)+-parseInt(_0xd5451e(0x27e))/0x7+parseInt(_0xd5451e(0x264))/0x8*(parseInt(_0xd5451e(0x176))/0x9)+parseInt(_0xd5451e(0x10f))/0xa+-parseInt(_0xd5451e(0x1ea))/0xb*(-parseInt(_0xd5451e(0x25c))/0xc);if(_0x37dff3===_0x1189f0)break;else _0x34b318['push'](_0x34b318['shift']());}catch(_0x228b57){_0x34b318['push'](_0x34b318['shift']());}}}(_0x3140,0x5e33b));function _0x229b(_0x309750,_0x3eca7a){const _0x31405b=_0x3140();return _0x229b=function(_0x229b7c,_0x1af33c){_0x229b7c=_0x229b7c-0xfe;let _0x28329b=_0x31405b[_0x229b7c];return _0x28329b;},_0x229b(_0x309750,_0x3eca7a);}import{ContextPlugin as _0x31d53c,Editor as _0x23a8c8}from'ckeditor5/src/core.js';function _0x3140(){const _0x3f90ea=['ai-chat-context-file-too-large','contextItem','data-id','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','selection','activeConversation','2YSxNHd','handleUserInteraction','35hoiKxw','_applySuggestion','_createFromRanges','4403651yBfusv','_getPresentableSiblingContentPartIndex','ai-chat-context-unsupported-file-type','toString','populateSourceResourceBalloon','static','ai.models.defaultModelId','startsWith','sourcePosition','removed','contextItems','enableControls','Disliked\x20response','_bodyCollection','editors','applySuggestion','selectModel','messageId','bind','getChildren','interactionId','ai.models','findIndex','_getAIChatInteractionAPI','find','645486BvgUBX','updateResourceState','open','toggleSuggestionDisplayMode','disableControls','partIndex','6662820POeras','type','pending','toolDataReceived','ai-chat-controller-mouse-over','isUploadInProgress','dislike','index','AI_CHAT_CONTEXT_FILE_TOO_LARGE','setFeedItemAIReplySuggestionPartActive','setAddContextOptions','addFeedItemStaticMessage','changes','replyId','Undo','addFeedInteractionHeader','_showConversationHistory','_rejectSuggestion','_toggleWebSearch','_setIsMaximized','view','rejected','ai-chat-invalid-request','split','addFileToContext','addFeedItemError','isOfficialPlugin','updateFeedItemAIReplyContent','executeCustomItemCallback','getTransformedByOperation','scrollFeedToSuggestion','_updateRatings','toggleLoadingSkeleton','updateConversationTitle','TrackChangesEditing','ai.chat.context','setConversationTitle','webSearchFinished','ai-chat-context-unsupported-type','dialogClosed','config','isCurrentDocumentInContext','data','root','main','addSelectionToChatContext','AI_CHAT_GENERIC_ERROR','_toggleReasoning','uiId','getConversations','addContextOptionsChanged','getAll','toggleWebSearch','activateTab','includes','remove','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','createRange','destroy','fetchConversations','ai-chat-context-invalid-data','contextItemRemoved','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','ai-chat-source-resources-load-failed','AIEditing','ai-chat-conversation-not-found','startAutoScroll','AI_CHAT_CONTEXT_INVALID_DATA','slice','addOperation','_applyOperationsAsSuggestions','_aiChatBalloon','showPrevious','sessionId','unshift','interactionCreated','requires','modification','addFeedItemAIReply','addResourceToContext','text','context','outdated','_aiConnector','setIsUploadInProgress','showChangeInText','8600KsltnH','ai-chat-file-upload-failed','alignToTop','interactionDestroyed','closeSourceResourceBalloon','chat','addFeedItemAISuggestion','uploadProgressChanged','baseVersion','AIChatUI','updateContent','showFakeVisualSelection','ai-chat-missing-channel-id','_getUserPresentableContentPartDocumentRange','add','insertSuggestion','1348632LFjbNW','setConversationContext','sources','_getLastCreatedConversationId','ai-chat-controller-no-active-conversation','filter','next','lastCreated','howMany','addFilesToContext','redo','_handleUIUserMessage','_aiEditing','domConverter','getRanges','upsertAIChatRating','addFeedItemUserMessage','anchorId','isStarted','current-document','close','resources','reasoningStarted','_stopLastInteraction','updateCurrentDocumentInContext','replyContentUpdated','undo','createReply','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','documentContextContent','indexOf','from','query','showDiff','AIChatBalloon','setContextItemLoading','prepareLoadingMessage','stop','rootName','ai-chat-url-upload-failed','updateFeedItemAIReplySuggestionPartState','marker','done','isDisabled','setModel','updateCapabilities','clearConversationContextUI','AIChatController','removeSelectionFromChatContext','content','getInteraction','rejectSuggestion','getSelectionText','Liked\x20response','isPremiumPlugin','AIConnector','ai-chat-context-file-too-many-pages','updateFeedItemAIReplySuggestionContent','editing','loadConversation','hasChanges','contextItemLoadingEnded','startConversation','plugins','lastInteraction','ai.chat.initialConversation','pluginName','changeGroups','range','handleRemovedConversation','message','_startConversationSafely','ai-no-track-changes','previous','addUrlToContext','resizedTabs','isCurrentDocumentInConversation','ready','_insertSuggestion','_batchToChanges','conversationInitialized','setState','set','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','callback','contextItemAdded','setFeedItemRenderingStrategy','createConversation','getDocumentContext','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','addFeedItemCustomElement','loadSourceResources','TrackChanges','resetMessageInput','load','version','sourceId','contextSent','resizeTabs','getChildAtOffset','getFirstRange','getPath','getGroupId','viewRangeToDom','accepted','source','isModelAvailable','hideFakeVisualSelection','getReply','listenTo','sourceResourcesLoaded','ai-conversation-','resetReasoningState','_aiChatModels','_registerToolDataCallback','_logError','77OSdzKy','_updateReplyContent','resetWebSearchState','sendUserMessage','createPositionAt','collaboration.channelId','AITabs','setChangeGroupState','getDocumentData','commands','isDocumentOperation','clearPendingContextUI','getOperations','createPositionFromPath','path','_handleStartConversation','selectedModel','513082UZbmsJ','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-resource-load-failed','isInContext','_currentPreviewedChangeGroup','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','Showing\x20conversation\x20history...','options','ai-chat-conversation-start-failed','revert','removeFeedInteraction','interactionStarted','removeFromContext','DocumentCompare','history','replyCreated','mapper','detachFromDom','ai-chat-context-form-data-size-limits-exceeded','locale','642cAdRNo','resource','applyOperation','parse','addSelectionToContext','map','interactionFinished','clearLoadingMessage','resize','document','children','addDocumentToContext','addCurrentDocumentToChatContext','like','capabilitiesUpdated','setSelectedModel','replyChangeGroupStateUpdated','nextSibling','state','_aiChatUi','ai-request-aborted','updateFeedItemAIReplySources','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','_getDocumentRangeForReplyChanges','model','ai-chat-conversation-init-failed','AI_CHAT_INVALID_REQUEST','log','toggleReasoning','sendMessage','streaming','attachToDom','_openBalloonFor','startInteraction','_aiChatBalloonShowDiff','createdAt','resourceId','push','fetchConversation','new','reasoningFinished','removeContextItem','getConversation','get','setIsMaximized','replies','showNext','addContextItem','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','getChild','forEach','getContentParts','delete','change','uid','modelSelected','AI_BALLOON_HEADER_TITLE','resourceStateChanged','getInteractionAndReplyById','toViewRange','_scrollToSuggestionRange','_removeFromContext','focusPromptInput','mouseOverSuggestion','_flushLastInteractionUI','webSearchStarted','maxOffset','stopInteraction','getDiff','setLoadingMessage','aiChatBalloon','batch','afterInit','node','removeSelectionFromContext','indexes','length','3300108zsFPEX','addCurrentDocumentToContext','abortPromptStream','init','getAttribute','isLoading','currentReply','$graveyard','8PimBhC','cloneNode','has','getRoot','finishInteraction','AI_CHAT_UNABLE_TO_START_CONVERSATION','_integrateEditor','delegate','AI_CHAT_RESOURCE_LOAD_FAILED','mouseLeaveSuggestion','error','end','resetConversationTitle','start','areActionsDisabled'];_0x3140=function(){return _0x3f90ea;};return _0x3140();}import{BodyCollection as _0x2a59a3}from'ckeditor5/src/ui.js';import{CKEditorError as _0x20e93a,logError as _0x1307b1,scrollViewportToShowTarget as _0x340917,uid as _0x2bfaa9}from'ckeditor5/src/utils.js';import{AIConnector as _0x471a92}from'../aicore/aiconnector.js';import{AITabs as _0x58715c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x343295}from'./model/aichatconversation.js';import{getTranslation as _0x91ff1d}from'../aicore/utils/common-translations.js';import{AIModels as _0x3e26cb}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x262618}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x5ed437,DATA_ID_MODEL_ATTRIBUTE as _0x325025}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x931cd4,getOperationsFromReply as _0x104b60}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x268d40,getMinimalSelection as _0x4385c6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x44a256,_DetachOperation as _0x205585}from'ckeditor5/src/engine.js';import{findOne as _0x43b466,getAttribute as _0x3ac1be,serialize as _0x2ac2e9,Document as _0x5c850d,findByAttribute as _0x286672}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x31d53c{[_0x58d811(0x182)];[_0x58d811(0x163)];[_0x58d811(0x222)];[_0x58d811(0x1e7)];[_0x58d811(0x157)];[_0x58d811(0x1c5)]=new Map();[_0x58d811(0x1ff)]=null;[_0x58d811(0x28b)];static get[_0x58d811(0x15c)](){return[_0x471a92,_0x5ed437];}static get[_0x58d811(0x1b8)](){const _0xc292cf=_0x58d811;return _0xc292cf(0x1a5);}static get[_0x58d811(0x129)](){return!0x0;}static get[_0x58d811(0x1ac)](){return!0x0;}[_0x58d811(0x25f)](){const _0x3cfe7c=_0x58d811;this[_0x3cfe7c(0x28b)]=new _0x2a59a3(this[_0x3cfe7c(0x161)][_0x3cfe7c(0x20e)]),this[_0x3cfe7c(0x28b)][_0x3cfe7c(0x22e)](),this[_0x3cfe7c(0x163)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x1ad)),this[_0x3cfe7c(0x222)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x16f)),this[_0x3cfe7c(0x182)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x150)),this[_0x3cfe7c(0x1e7)]=new _0x3e26cb({'connector':this[_0x3cfe7c(0x163)],'config':this[_0x3cfe7c(0x161)][_0x3cfe7c(0x137)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x105)),'locale':this[_0x3cfe7c(0x161)][_0x3cfe7c(0x20e)]});const _0x5a44e1=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x1f0));this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1b4),()=>{const _0x42da29=_0x3cfe7c;this[_0x42da29(0x1bd)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1ed),(_0x1753d5,_0x36772b)=>{const _0x4047b4=_0x3cfe7c;this[_0x4047b4(0x181)]({'userMessage':_0x36772b});}),this[_0x3cfe7c(0x1e3)](_0x5a44e1,_0x3cfe7c(0x1c1),(_0xa1dcb2,_0xd5df42)=>{const _0x4a532b=_0x3cfe7c;this[_0x4a532b(0x122)](_0xd5df42);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1d8),()=>{const _0x4fe99a=_0x3cfe7c;_0x5a44e1[_0x4fe99a(0x217)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x25e),async()=>{const _0x54b7cb=_0x3cfe7c;await this[_0x54b7cb(0x18d)](),await this[_0x54b7cb(0x24f)](),this[_0x54b7cb(0x1a6)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x21a),()=>{const _0x570481=_0x3cfe7c;this[_0x570481(0x21b)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x127),(_0x58aa1a,_0x129d9e)=>{const _0x4dcaed=_0x3cfe7c;this[_0x4dcaed(0x278)]?.[_0x4dcaed(0x17f)](Array[_0x4dcaed(0x195)](_0x129d9e));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1c0),(_0x1b3bcc,_0x261f16)=>{const _0x48d6a4=_0x3cfe7c;this[_0x48d6a4(0x278)]?.[_0x48d6a4(0x1c0)](_0x261f16);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x12b),(_0x29578c,_0x348e34)=>{const _0x292b69=_0x3cfe7c;_0x348e34[_0x292b69(0x1ca)](this[_0x292b69(0x161)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x15f),(_0x2ce1ce,_0x35a6c8)=>{const _0x258ba9=_0x3cfe7c;this[_0x258ba9(0x278)]?.[_0x258ba9(0x15f)](_0x35a6c8[_0x258ba9(0x1df)],_0x35a6c8[_0x258ba9(0x210)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x238),(_0x4f948e,_0x36fc66)=>{const _0xd8940d=_0x3cfe7c;this[_0xd8940d(0x24c)](_0x36fc66);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1d1),(_0x23817d,_0x360b76)=>{const _0x55be09=_0x3cfe7c;this[_0x55be09(0x278)]?.[_0x55be09(0x1d1)](_0x360b76[_0x55be09(0x1d6)],_0x360b76[_0x55be09(0x196)],_0x360b76[_0x55be09(0x245)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x143),()=>{const _0x11fb0a=_0x3cfe7c;this[_0x11fb0a(0x121)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x22b),()=>{const _0x55c9a1=_0x3cfe7c;this[_0x55c9a1(0x13e)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x100),(_0x1af615,_0x5caa88)=>{const _0x2fd252=_0x3cfe7c;this[_0x2fd252(0x278)]?.[_0x2fd252(0x1a2)](_0x5caa88);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x21c),(_0x5a4190,{replyId:_0x1f66f3})=>{const _0x5af751=_0x3cfe7c;console[_0x5af751(0x22a)](_0x5af751(0x1ab),_0x1f66f3);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x115),(_0x2293a2,{replyId:_0x345a37})=>{const _0x4ceaad=_0x3cfe7c;console[_0x4ceaad(0x22a)](_0x4ceaad(0x28a),_0x345a37);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x175),(_0x5e4680,_0x1b1ae9)=>{const _0x4ff2ea=_0x3cfe7c;this[_0x4ff2ea(0x1c4)](_0x1b1ae9);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x165),(_0x2e866e,{replyId:_0x3ea02e,partIndex:_0x36af57})=>{const _0x60cd32=_0x3cfe7c;this[_0x60cd32(0x231)]=this[_0x60cd32(0x222)][_0x60cd32(0x197)],this[_0x60cd32(0x22f)](_0x3ea02e,_0x36af57);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x24e),(_0x42c881,{replyId:_0x20d3b4,partIndex:_0x1cac2c})=>{const _0x2c87ab=_0x3cfe7c,_0x5d5715=this[_0x2c87ab(0x226)](_0x20d3b4,_0x1cac2c);_0x5d5715&&_0x2c87ab(0x263)!=_0x5d5715[_0x2c87ab(0x1ba)][_0x2c87ab(0x13a)][_0x2c87ab(0x19c)]&&this[_0x2c87ab(0x182)][_0x2c87ab(0x171)]([_0x5d5715[_0x2c87ab(0x1ba)]],_0x2c87ab(0x113));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x26d),()=>{const _0x57538b=_0x3cfe7c;this[_0x57538b(0x182)][_0x57538b(0x1e1)](_0x57538b(0x113));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0xff),(_0x2dcf7c,_0x3a60a1)=>{const _0x424374=_0x3cfe7c;this[_0x424374(0x182)][_0x424374(0x1e1)](_0x424374(0x113)),this[_0x424374(0x27c)](_0x3a60a1);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x10c),async(_0x4b845c,{replyId:_0x3210cf,showDiff:_0x23d90c})=>{const _0x5ed751=_0x3cfe7c,{reply:_0x11c73e}=this[_0x5ed751(0x249)](_0x3210cf),_0x5948ee=_0x11c73e[_0x5ed751(0x242)]({'showDiff':_0x23d90c});await this[_0x5ed751(0x222)][_0x5ed751(0x1af)]({'id':_0x11c73e['id'],'parts':_0x5948ee,'renderingStrategy':_0x5ed751(0x283)});}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1a9),(_0xff0010,{replyId:_0x326912,partIndex:_0x2e6106})=>{const _0x48d948=_0x3cfe7c;this[_0x48d948(0x120)]({'replyId':_0x326912,'partIndex':_0x2e6106}),this[_0x48d948(0x182)][_0x48d948(0x1e1)](_0x48d948(0x113));}),this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x266)](_0x3cfe7c(0x198))&&(this[_0x3cfe7c(0x157)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x198)),this[_0x3cfe7c(0x1c8)](_0x3cfe7c(0x231),!0x1),this[_0x3cfe7c(0x157)][_0x3cfe7c(0x102)](_0x3cfe7c(0x197))['to'](this,_0x3cfe7c(0x231)),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x10c),()=>{const _0x1a36a6=_0x3cfe7c,{replyId:_0x3b4f2a,partIndex:_0x1ff2db}=this[_0x1a36a6(0x1ff)];this[_0x1a36a6(0x231)]=!this[_0x1a36a6(0x231)];const {reply:_0x4c29bc}=this[_0x1a36a6(0x249)](_0x3b4f2a),_0x5a8b28=_0x4c29bc[_0x1a36a6(0x242)]({'showDiff':this[_0x1a36a6(0x231)],'groupIndex':_0x1ff2db});this[_0x1a36a6(0x157)][_0x1a36a6(0x170)]({'part':_0x5a8b28[0x0],'renderingStrategy':_0x1a36a6(0x283),'keepErrors':!0x0});}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0xff),()=>{const _0x200462=_0x3cfe7c,{replyId:_0x2890f7,partIndex:_0x342a8e}=this[_0x200462(0x1ff)];this[_0x200462(0x27c)]({'replyId':_0x2890f7,'partIndex':_0x342a8e}),this[_0x200462(0x157)][_0x200462(0x1c7)](_0x200462(0x1de));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x175),()=>{const _0x5527ab=_0x3cfe7c,{replyId:_0x1c719b,partIndex:_0x4c4ebd}=this[_0x5527ab(0x1ff)];this[_0x5527ab(0x1c4)]({'replyId':_0x1c719b,'partIndex':_0x4c4ebd}),this[_0x5527ab(0x157)][_0x5527ab(0x1c7)](_0x5527ab(0x1de));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x1a9),()=>{const _0x1258f1=_0x3cfe7c,{replyId:_0xade7a2,partIndex:_0xf39bb0}=this[_0x1258f1(0x1ff)];this[_0x1258f1(0x120)]({'replyId':_0xade7a2,'partIndex':_0xf39bb0}),this[_0x1258f1(0x157)][_0x1258f1(0x1c7)](_0x1258f1(0x124));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x23d),()=>{const _0x562a93=_0x3cfe7c,{replyId:_0x1ed71e,partIndex:_0x10fdd6}=this[_0x562a93(0x1ff)],_0x49322d=this[_0x562a93(0x27f)](_0x1ed71e,_0x10fdd6,_0x562a93(0x17c));null!==_0x49322d&&this[_0x562a93(0x22f)](_0x1ed71e,_0x49322d);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x158),()=>{const _0x5254bd=_0x3cfe7c,{replyId:_0x11008c,partIndex:_0x3268dc}=this[_0x5254bd(0x1ff)],_0x2ad233=this[_0x5254bd(0x27f)](_0x11008c,_0x3268dc,_0x5254bd(0x1bf));null!==_0x2ad233&&this[_0x5254bd(0x22f)](_0x11008c,_0x2ad233);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x136),(_0x504bf5,{id:_0x1f7034})=>{const _0x31e5c6=_0x3cfe7c;if(_0x31e5c6(0x255)!==_0x1f7034)return;const {replyId:_0x55774f,partIndex:_0x521664}=this[_0x31e5c6(0x1ff)];this[_0x31e5c6(0x1ff)]=null,this[_0x31e5c6(0x222)][_0x31e5c6(0x118)]({'id':_0x55774f,'index':_0x521664,'isActive':!0x1});}));}async[_0x58d811(0x257)](){const _0x137191=_0x58d811;this[_0x137191(0x161)]instanceof _0x23a8c8?this[_0x137191(0x26a)](this[_0x137191(0x161)]):this[_0x137191(0x1e3)](this[_0x137191(0x161)][_0x137191(0xfe)],_0x137191(0x174),(_0x5c7453,_0x1e84d6)=>{const _0x365230=_0x137191;_0x1e84d6['on'](_0x365230(0x1c3),()=>{const _0x14ec36=_0x365230;this[_0x14ec36(0x26a)](_0x1e84d6);});});const _0x1dd84a=this[_0x137191(0x161)][_0x137191(0x137)][_0x137191(0x23a)](_0x137191(0x1b7));let _0x21ed02=_0x1dd84a;if(_0x137191(0x17d)!=_0x1dd84a||(_0x21ed02=await this[_0x137191(0x179)](),_0x21ed02))return _0x137191(0x236)==_0x21ed02?this[_0x137191(0x1bd)]():this[_0x137191(0x1b1)](_0x21ed02);}async[_0x58d811(0x149)](){const _0x2e3377=_0x58d811;return await this[_0x2e3377(0x18d)](),this[_0x2e3377(0x28b)][_0x2e3377(0x20c)](),super[_0x2e3377(0x149)]();}[_0x58d811(0x1c4)](_0x539674){const _0x3d9b48=_0x58d811,_0x1f9b64=_0x262618(this[_0x3d9b48(0x161)]);if(!_0x1f9b64[_0x3d9b48(0x1b5)][_0x3d9b48(0x266)](_0x3d9b48(0x1d2)))throw new _0x20e93a(_0x3d9b48(0x1be),null);const _0x2dab3f=this[_0x3d9b48(0x161)][_0x3d9b48(0x1b5)][_0x3d9b48(0x23a)](_0x3d9b48(0x208)),{reply:_0x1ae636,interaction:_0x154f8c}=this[_0x3d9b48(0x249)](_0x539674[_0x3d9b48(0x11c)]),_0x2a075c=this[_0x3d9b48(0x226)](_0x539674[_0x3d9b48(0x11c)],_0x539674[_0x3d9b48(0x10e)]),_0x10b16a=void 0x0!==_0x539674[_0x3d9b48(0x10e)]?[_0x1ae636[_0x3d9b48(0x1b9)][_0x539674[_0x3d9b48(0x10e)]]]:_0x1ae636[_0x3d9b48(0x1b9)][_0x3d9b48(0x17b)](_0x30bd10=>_0x3d9b48(0x111)==_0x30bd10[_0x3d9b48(0x221)]),_0x1e2d29=_0x10b16a[_0x3d9b48(0x214)](_0x472124=>_0x1ae636[_0x3d9b48(0x1b9)][_0x3d9b48(0x194)](_0x472124));if(!_0x2a075c||_0x3d9b48(0x263)==_0x2a075c[_0x3d9b48(0x1ba)][_0x3d9b48(0x13a)][_0x3d9b48(0x19c)])return void _0x1e2d29[_0x3d9b48(0x241)](_0x3ef825=>_0x1ae636[_0x3d9b48(0x1f1)](_0x3ef825,_0x3d9b48(0x162)));_0x1e2d29[_0x3d9b48(0x241)](_0x529bd8=>_0x1ae636[_0x3d9b48(0x1f1)](_0x529bd8,_0x3d9b48(0x1de)));const _0x41b16a=_0x104b60({'editor':_0x1f9b64,'reply':_0x1ae636,'interaction':_0x154f8c,'groups':_0x10b16a,'transform':!0x0,'documentCompare':_0x2dab3f,'documentCompareOptions':{'anchor':_0x3d9b48(0x13b),'markDeletions':!0x0}});let _0x2b2b59;_0x2a075c&&this[_0x3d9b48(0x24b)](_0x2a075c[_0x3d9b48(0x1ba)]),_0x1f9b64[_0x3d9b48(0x227)][_0x3d9b48(0x244)](_0x37bc2e=>{const _0x3bf2b=_0x3d9b48;_0x2b2b59=_0x37bc2e[_0x3bf2b(0x256)],_0x1f9b64[_0x3bf2b(0x1b5)][_0x3bf2b(0x23a)](_0x3bf2b(0x131))[_0x3bf2b(0x156)](_0x41b16a),this[_0x3bf2b(0x182)][_0x3bf2b(0x1e1)](_0x3bf2b(0x113));}),this[_0x3d9b48(0x1c5)][_0x3d9b48(0x1c8)](_0x2b2b59,{'interactionId':_0x154f8c['id'],'replyId':_0x1ae636['id'],'indexes':_0x1e2d29[_0x3d9b48(0x154)]()}),this[_0x3d9b48(0x12e)](_0x1ae636);}[_0x58d811(0x27c)](_0x1de96a){const _0x207702=_0x58d811,_0x299bd9=_0x262618(this[_0x207702(0x161)]),_0x44f86e=this[_0x207702(0x161)][_0x207702(0x1b5)][_0x207702(0x23a)](_0x5ed437),{reply:_0x5f0417,interaction:_0x22c649}=this[_0x207702(0x249)](_0x1de96a[_0x207702(0x11c)]),_0x187697=this[_0x207702(0x226)](_0x1de96a[_0x207702(0x11c)],_0x1de96a[_0x207702(0x10e)]),_0x105cc0=void 0x0!==_0x1de96a[_0x207702(0x10e)]?[_0x5f0417[_0x207702(0x1b9)][_0x1de96a[_0x207702(0x10e)]]]:_0x5f0417[_0x207702(0x1b9)][_0x207702(0x17b)](_0x5a1b68=>_0x207702(0x111)==_0x5a1b68[_0x207702(0x221)]),_0x1b4d3f=_0x105cc0[_0x207702(0x214)](_0x543e16=>_0x5f0417[_0x207702(0x1b9)][_0x207702(0x194)](_0x543e16));if(!_0x187697||_0x207702(0x263)==_0x187697[_0x207702(0x1ba)][_0x207702(0x13a)][_0x207702(0x19c)])return void _0x1b4d3f[_0x207702(0x241)](_0x319538=>_0x5f0417[_0x207702(0x1f1)](_0x319538,_0x207702(0x162)));_0x1b4d3f[_0x207702(0x241)](_0x184d67=>_0x5f0417[_0x207702(0x1f1)](_0x184d67,_0x207702(0x1de)));const _0x29f2c5=_0x104b60({'editor':_0x299bd9,'reply':_0x5f0417,'interaction':_0x22c649,'groups':_0x105cc0,'transform':!0x0,'documentCompare':_0x44f86e,'documentCompareOptions':{'anchor':_0x207702(0x13b),'markDeletions':!0x1}});let _0x4b1e30;_0x187697&&this[_0x207702(0x24b)](_0x187697[_0x207702(0x1ba)]),_0x299bd9[_0x207702(0x227)][_0x207702(0x244)](_0x33c262=>{const _0x4dac81=_0x207702;_0x4b1e30=_0x33c262[_0x4dac81(0x256)];for(const _0x3b226a of _0x29f2c5)_0x3b226a[_0x4dac81(0x16e)]=_0x299bd9[_0x4dac81(0x227)][_0x4dac81(0x218)][_0x4dac81(0x1d5)],_0x931cd4(_0x299bd9,_0x3b226a),_0x33c262[_0x4dac81(0x256)][_0x4dac81(0x155)](_0x3b226a),_0x299bd9[_0x4dac81(0x227)][_0x4dac81(0x211)](_0x3b226a);}),this[_0x207702(0x1c5)][_0x207702(0x1c8)](_0x4b1e30,{'interactionId':_0x22c649['id'],'replyId':_0x5f0417['id'],'indexes':_0x1b4d3f[_0x207702(0x154)]()}),this[_0x207702(0x12e)](_0x5f0417);}[_0x58d811(0x120)](_0x2c39c5){const _0x241a52=_0x58d811,{reply:_0x1ad137}=this[_0x241a52(0x249)](_0x2c39c5[_0x241a52(0x11c)]);_0x1ad137[_0x241a52(0x1f1)](_0x2c39c5[_0x241a52(0x10e)],_0x241a52(0x124));}[_0x58d811(0x22f)](_0x5566d8,_0x63fb98){const _0x569489=_0x58d811;if(!this[_0x569489(0x157)])return;const {reply:_0x560a49}=this[_0x569489(0x249)](_0x5566d8),_0x290353=_0x560a49[_0x569489(0x242)]({'showDiff':this[_0x569489(0x231)]});let _0x4f8211,_0x13c060;if(void 0x0!==_0x63fb98?(_0x13c060=_0x290353[_0x569489(0x108)](_0x6e1c00=>_0x6e1c00[_0x569489(0x116)]==_0x63fb98),_0x4f8211=_0x13c060?.[_0x569489(0x116)]):(_0x13c060=_0x290353[0x0],_0x4f8211=_0x13c060[_0x569489(0x116)]),this[_0x569489(0x1ff)]?.[_0x569489(0x11c)]==_0x5566d8&&this[_0x569489(0x1ff)]?.[_0x569489(0x10e)]==_0x4f8211)return;const _0x210355=this[_0x569489(0x173)](_0x5566d8,_0x560a49,_0x13c060);if(!_0x210355)return void this[_0x569489(0x157)][_0x569489(0x18a)]();this[_0x569489(0x1ff)]={'replyId':_0x5566d8,'partIndex':_0x4f8211},this[_0x569489(0x24b)](_0x210355,!0x0);const _0x3c4131=this[_0x569489(0x27f)](_0x5566d8,_0x4f8211,_0x569489(0x17c));this[_0x569489(0x157)][_0x569489(0x170)]({'part':_0x13c060,'renderingStrategy':_0x569489(0x283)}),this[_0x569489(0x157)][_0x569489(0x10b)]({'index':_0x4f8211,'title':_0x91ff1d(this[_0x569489(0x161)][_0x569489(0x20e)],_0x569489(0x247),(_0x4f8211+0x1)[_0x569489(0x281)]()),'showRotator':null!==_0x3c4131,'ranges':[_0x210355],'areActionsDisabled':_0x560a49[_0x569489(0x272)]}),this[_0x569489(0x157)][_0x569489(0x1c7)](_0x569489(0x111)),this[_0x569489(0x222)][_0x569489(0x12d)](_0x5566d8,_0x4f8211),this[_0x569489(0x222)][_0x569489(0x118)]({'id':_0x5566d8,'index':_0x4f8211,'isActive':!0x0});}[_0x58d811(0x27f)](_0x2fa71f,_0x4889a0,_0x8b6795){const _0x599288=_0x58d811,{reply:_0x120e07}=this[_0x599288(0x249)](_0x2fa71f),_0x179818=_0x120e07[_0x599288(0x242)]({'showDiff':this[_0x599288(0x231)]});if(0x1==_0x179818[_0x599288(0x25b)])return null;const _0x3de5db=_0x179818[_0x599288(0x106)](_0x1fdba7=>_0x1fdba7[_0x599288(0x116)]==_0x4889a0),_0x3f63b3=_0x599288(0x17c)==_0x8b6795?0x1:-0x1;let _0x4e4b6e=_0x179818['at']((_0x3de5db+_0x3f63b3)%_0x179818[_0x599288(0x25b)])[_0x599288(0x116)],_0x23bff1=_0x179818[_0x4e4b6e];for(;!this[_0x599288(0x173)](_0x2fa71f,_0x120e07,_0x23bff1);){if(_0x4e4b6e=_0x179818['at']((_0x4e4b6e+_0x3f63b3)%_0x179818[_0x599288(0x25b)])[_0x599288(0x116)],_0x4e4b6e===_0x3de5db)return null;_0x23bff1=_0x179818[_0x4e4b6e];}return _0x4e4b6e;}[_0x58d811(0x173)](_0x5d142d,_0x2f22d6,_0x5c8b11){const _0x434d44=_0x58d811,_0xeccffa=_0x2f22d6[_0x434d44(0x1b9)];if(!_0x5c8b11[_0x434d44(0x1b2)])return null;const _0x29bbfb=_0xeccffa[_0x434d44(0x108)](_0xe8fe67=>_0xe8fe67[_0x434d44(0x116)]==_0x5c8b11[_0x434d44(0x116)]);if(_0x434d44(0x111)!==_0x29bbfb?.[_0x434d44(0x221)])return null;const _0x1f31df=this[_0x434d44(0x226)](_0x5d142d,_0x5c8b11[_0x434d44(0x116)]);if(!_0x1f31df)return null;const {range:_0x5e87ee,currentIndex:_0x282c38}=_0x1f31df;return _0x434d44(0x263)==_0x5e87ee[_0x434d44(0x13a)][_0x434d44(0x19c)]?(_0x2f22d6[_0x434d44(0x1f1)](_0x282c38,_0x434d44(0x162)),null):_0x1f31df[_0x434d44(0x1ba)];}[_0x58d811(0x226)](_0x23739f,_0x5e3673){const _0x2566a2=_0x58d811,_0x94f8d4=_0x262618(this[_0x2566a2(0x161)]),{reply:_0x13dbaf,interaction:_0x3adb84}=this[_0x2566a2(0x249)](_0x23739f),_0x4993b8=_0x13dbaf[_0x2566a2(0x1b9)][_0x2566a2(0x17b)](_0x557b4b=>_0x2566a2(0x111)==_0x557b4b[_0x2566a2(0x221)]),_0x231916=_0x4993b8[_0x2566a2(0x214)](_0x3d0317=>_0x13dbaf[_0x2566a2(0x1b9)][_0x2566a2(0x194)](_0x3d0317));void 0x0===_0x5e3673&&(_0x5e3673=_0x231916[0x0]);const _0x5e1930=_0x231916[_0x2566a2(0x194)](_0x5e3673);if(-0x1==_0x5e1930)return null;const _0x366844=_0x4993b8[_0x5e1930],_0x14b7dd=new _0x5c850d([]),_0x280d26=new _0x5c850d([]);for(const _0x50421d of _0x366844[_0x2566a2(0x11b)])if(_0x2566a2(0x287)!=_0x50421d[_0x2566a2(0x110)]&&_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x50421d[_0x2566a2(0x258)][_0x2566a2(0x265)](!0x0)),_0x2566a2(0x236)!=_0x50421d[_0x2566a2(0x110)]){const _0x95e5=_0x43b466(_0x2cb4c8=>_0x3ac1be(_0x2cb4c8,_0x2566a2(0x275))==_0x50421d['id'],_0x13dbaf[_0x2566a2(0x193)],!0x0);_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x95e5[_0x2566a2(0x265)](!0x0));}if(0x0==_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x25b)]){if(_0x366844[_0x2566a2(0x11b)][0x0][_0x2566a2(0x187)]){const _0x5b98ae=_0x286672(_0x2566a2(0x275),_0x366844[_0x2566a2(0x11b)][0x0][_0x2566a2(0x187)],_0x13dbaf[_0x2566a2(0x193)]);_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x15a)](_0x5b98ae[_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x15a)](_0x5b98ae[_0x2566a2(0x265)](!0x0)),_0x5b98ae[_0x2566a2(0x220)]&&(_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x5b98ae[_0x2566a2(0x220)][_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x5b98ae[_0x2566a2(0x220)][_0x2566a2(0x265)](!0x0)));}else{const _0x563cf0=_0x13dbaf[_0x2566a2(0x193)][_0x2566a2(0x219)][0x0];if(!_0x563cf0)return null;_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x563cf0[_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x563cf0[_0x2566a2(0x265)](!0x0));}}const _0x9006f0=_0x3adb84[_0x2566a2(0x1ce)](),_0x3372b7=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x9006f0[_0x2566a2(0x1a7)]),_0x3207b5=_0x2ac2e9(_0x14b7dd),_0x3c1266=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x3207b5),_0x1e3f94=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x3207b5),_0x4306a4=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1ee)](_0x3c1266,0x0),_0x570ae9=_0x2ac2e9(_0x280d26),_0x12f9cf={'anchor':_0x4306a4,'markDeletions':!0x1},_0x584b0e=_0x94f8d4[_0x2566a2(0x1b5)][_0x2566a2(0x23a)](_0x5ed437)[_0x2566a2(0x253)](_0x3207b5,_0x570ae9,_0x12f9cf)[_0x2566a2(0x1f6)]();if(!_0x584b0e[_0x2566a2(0x25b)])return null;_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x244)](_0x40492a=>{const _0x2c7fa0=_0x2566a2;for(const _0x42738b of _0x584b0e)if(_0x2c7fa0(0x146)==_0x42738b[_0x2c7fa0(0x110)]){const _0x16d928=_0x42738b[_0x2c7fa0(0x286)],_0x38702c=_0x42738b[_0x2c7fa0(0x17e)],_0x45057f=new _0x205585(_0x16d928,_0x38702c);_0x40492a[_0x2c7fa0(0x256)][_0x2c7fa0(0x155)](_0x45057f),_0x94f8d4[_0x2c7fa0(0x227)][_0x2c7fa0(0x211)](_0x45057f);}else _0x2c7fa0(0x19f)!==_0x42738b[_0x2c7fa0(0x110)]&&(_0x42738b[_0x2c7fa0(0x16e)]=null,_0x42738b[_0x2c7fa0(0x1f4)]=!0x1,_0x40492a[_0x2c7fa0(0x256)][_0x2c7fa0(0x155)](_0x42738b),_0x94f8d4[_0x2c7fa0(0x227)][_0x2c7fa0(0x211)](_0x42738b));});const _0x1ace12=_0x4385c6(_0x94f8d4,_0x584b0e,_0x3c1266);_0x268d40(_0x94f8d4[_0x2566a2(0x227)],_0x1ace12);const _0x4d8db5=_0x1ace12[_0x2566a2(0x1da)]()[_0x2566a2(0x271)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x59c151=_0x1ace12[_0x2566a2(0x1da)]()[_0x2566a2(0x26f)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x5c1479=[];let _0x82dba4=_0x3c1266,_0x2016d4=_0x1e3f94;for(let _0x4ebf0f=0x0;_0x4ebf0f<_0x59c151[_0x2566a2(0x25b)];_0x4ebf0f++){const _0x44ef69=_0x82dba4[_0x2566a2(0x251)]-_0x59c151[_0x4ebf0f];_0x5c1479[_0x4ebf0f]=_0x2016d4[_0x2566a2(0x251)]-_0x44ef69,_0x82dba4=_0x82dba4[_0x2566a2(0x1d9)](_0x59c151[_0x4ebf0f]),_0x2016d4=_0x2016d4[_0x2566a2(0x1d9)](_0x5c1479[_0x4ebf0f]);}const _0x1037c8=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x148)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x1e3f94,_0x4d8db5),_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x1e3f94,_0x5c1479)),_0x200576=_0x1e3f94[_0x2566a2(0x240)](0x0)[_0x2566a2(0x260)](_0x325025),_0x34140e=Array[_0x2566a2(0x195)](_0x3372b7[_0x2566a2(0x103)]())[_0x2566a2(0x108)](_0x4fca8b=>_0x4fca8b[_0x2566a2(0x260)](_0x325025)==_0x200576)[_0x2566a2(0x1db)](),_0x55e120=_0x1037c8[_0x2566a2(0x271)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x55be5d=_0x1037c8[_0x2566a2(0x26f)][_0x2566a2(0x1f8)][_0x2566a2(0x154)]();_0x55e120[0x0]=_0x34140e[0x0]+_0x55e120[0x0],_0x55be5d[0x0]=_0x34140e[0x0]+_0x55be5d[0x0];let _0x1bde1a=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x148)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x267)](),_0x55e120),_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x267)](),_0x55be5d));const _0x874031=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x209)][_0x2566a2(0x1f6)](_0x9006f0[_0x2566a2(0x1d5)]);for(const _0x2e9ad2 of _0x874031)_0x1bde1a=_0x44a256[_0x2566a2(0x27d)](_0x1bde1a[_0x2566a2(0x12c)](_0x2e9ad2));return{'range':_0x1bde1a,'currentIndex':_0x5e3673};}[_0x58d811(0x26a)](_0x51e0ed){const _0xf09629=_0x58d811;if(!_0x51e0ed[_0xf09629(0x1b5)][_0xf09629(0x266)](_0xf09629(0x11d)))return;const _0x5004d9=_0x51e0ed[_0xf09629(0x1f3)][_0xf09629(0x23a)](_0xf09629(0x190)),_0x530069=_0x51e0ed[_0xf09629(0x1f3)][_0xf09629(0x23a)](_0xf09629(0x180));this[_0xf09629(0x1e3)](_0x5004d9,_0xf09629(0x204),(_0xeb3ae2,_0x2c2393,_0x134f16)=>{const _0x18e498=_0xf09629,_0x1fbfc5=this[_0x18e498(0x1c5)][_0x18e498(0x23a)](_0x2c2393);if(!_0x1fbfc5)return;const _0x5d62dc=this[_0x18e498(0x278)][_0x18e498(0x1a8)](_0x1fbfc5[_0x18e498(0x104)])[_0x18e498(0x1e2)](_0x1fbfc5[_0x18e498(0x11c)]);_0x1fbfc5[_0x18e498(0x25a)][_0x18e498(0x241)](_0x50bdbc=>_0x5d62dc[_0x18e498(0x1f1)](_0x50bdbc,_0x18e498(0x111))),this[_0x18e498(0x1c5)][_0x18e498(0x243)](_0x2c2393),this[_0x18e498(0x1c5)][_0x18e498(0x1c8)](_0x134f16,_0x1fbfc5);}),this[_0xf09629(0x1e3)](_0x530069,_0xf09629(0x204),(_0x38ded4,_0x5eec87,_0x55e360)=>{const _0x55df48=_0xf09629,_0x4a2153=this[_0x55df48(0x1c5)][_0x55df48(0x23a)](_0x5eec87);if(!_0x4a2153)return;const _0x1d7f8e=this[_0x55df48(0x278)][_0x55df48(0x1a8)](_0x4a2153[_0x55df48(0x104)])[_0x55df48(0x1e2)](_0x4a2153[_0x55df48(0x11c)]);_0x4a2153[_0x55df48(0x25a)][_0x55df48(0x241)](_0x46fd33=>_0x1d7f8e[_0x55df48(0x1f1)](_0x46fd33,_0x55df48(0x1de))),this[_0x55df48(0x1c5)][_0x55df48(0x243)](_0x5eec87),this[_0x55df48(0x1c5)][_0x55df48(0x1c8)](_0x55e360,_0x4a2153);});}async[_0x58d811(0x1b1)](_0x2d9818){const _0x11d74f=_0x58d811;this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x266)](_0x11d74f(0x198))&&this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x23a)](_0x11d74f(0x198))[_0x11d74f(0x18a)](),(this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x23a)](_0x58715c)[_0x11d74f(0x123)][_0x11d74f(0x144)](_0x11d74f(0x16b)),this[_0x11d74f(0x222)][_0x11d74f(0x1cc)](_0x11d74f(0x283)),this[_0x11d74f(0x222)][_0x11d74f(0x12f)](!0x0),await this[_0x11d74f(0x18d)]());try{await this[_0x11d74f(0x163)][_0x11d74f(0x235)](_0x2d9818)[_0x11d74f(0x239)](),await this[_0x11d74f(0x1bd)](_0x2d9818),this[_0x11d74f(0x130)]('\x20'),await this[_0x11d74f(0x278)][_0x11d74f(0x1d4)](_0x2d9818,this[_0x11d74f(0x182)][_0x11d74f(0x159)]),this[_0x11d74f(0x278)][_0x11d74f(0x1c2)]()&&this[_0x11d74f(0x21b)]();}catch(_0x45a63a){this[_0x11d74f(0x222)][_0x11d74f(0x128)]({'errorMessage':_0x91ff1d(this[_0x11d74f(0x161)][_0x11d74f(0x20e)],_0x11d74f(0x23f)),'id':_0x2d9818}),this[_0x11d74f(0x1e9)](new _0x20e93a(_0x11d74f(0x151),this,{'error':_0x45a63a}));}finally{this[_0x11d74f(0x222)][_0x11d74f(0x152)](),this[_0x11d74f(0x222)][_0x11d74f(0x1cc)](_0x11d74f(0x22d)),this[_0x11d74f(0x222)][_0x11d74f(0x12f)](!0x1);}}async[_0x58d811(0x179)](){const _0x55fcab=_0x58d811,_0x306517=this[_0x55fcab(0x163)][_0x55fcab(0x14a)](this[_0x55fcab(0x1dc)](),{'limit':0x1,'sortBy':_0x55fcab(0x232)});try{const _0x2d6d73=await _0x306517[_0x55fcab(0x140)]();return _0x2d6d73[_0x55fcab(0x25b)]?_0x2d6d73[0x0]['id']:_0x55fcab(0x236);}catch(_0x19905f){return this[_0x55fcab(0x222)][_0x55fcab(0x128)]({'errorMessage':_0x91ff1d(this[_0x55fcab(0x161)][_0x55fcab(0x20e)],_0x55fcab(0x23f)),'id':_0x2bfaa9()}),this[_0x55fcab(0x1e9)](new _0x20e93a(_0x55fcab(0x228),this,{'error':_0x19905f})),this[_0x55fcab(0x222)][_0x55fcab(0x12f)](!0x1),this[_0x55fcab(0x222)][_0x55fcab(0x10d)](),null;}}[_0x58d811(0x1bb)](_0x22fa75){const _0x122e0b=_0x58d811;this[_0x122e0b(0x278)]['id']===_0x22fa75&&this[_0x122e0b(0x1bd)]();}[_0x58d811(0x21b)](){const _0xc57306=_0x58d811;this[_0xc57306(0x278)]?.[_0xc57306(0x25d)](_0x91ff1d(this[_0xc57306(0x161)][_0xc57306(0x20e)],_0xc57306(0x1c9)));}async[_0x58d811(0x13c)](){const _0xf76abe=_0x58d811,_0x56a410=this[_0xf76abe(0x182)][_0xf76abe(0x1aa)]();this[_0xf76abe(0x278)]?.[_0xf76abe(0x213)](_0x56a410),this[_0xf76abe(0x21b)]();}[_0x58d811(0x1a6)](){const _0x3bc56e=_0x58d811;this[_0x3bc56e(0x278)]?.[_0x3bc56e(0x259)]();}[_0x58d811(0x24d)](){const _0x5af828=_0x58d811;this[_0x5af828(0x222)][_0x5af828(0x24d)]();}async[_0x58d811(0x1b4)](){const _0x1e7881=_0x58d811;await this[_0x1e7881(0x1bd)]();}async[_0x58d811(0x22c)]({message:_0x419ef6,attributes:_0x901512}){const _0x6e80ca=_0x58d811;await this[_0x6e80ca(0x181)]({'userMessage':_0x419ef6,'attributes':_0x901512});}[_0x58d811(0x1dc)](){const _0x2dfd50=_0x58d811,_0x17978a=this[_0x2dfd50(0x161)][_0x2dfd50(0x137)][_0x2dfd50(0x23a)](_0x2dfd50(0x1ef));if(!_0x17978a)throw new _0x20e93a(_0x2dfd50(0x172),this);return _0x17978a;}async[_0x58d811(0x1bd)](_0x383adf){const _0x228b2d=_0x58d811;try{this[_0x228b2d(0x222)][_0x228b2d(0x289)](),await this[_0x228b2d(0x1f9)](_0x383adf);}catch(_0x5ccb33){this[_0x228b2d(0x222)][_0x228b2d(0x128)]({'errorMessage':_0x91ff1d(this[_0x228b2d(0x161)][_0x228b2d(0x20e)],_0x228b2d(0x269)),'id':_0x383adf||_0x2bfaa9()}),console[_0x228b2d(0x26e)](_0x5ccb33),this[_0x228b2d(0x278)]=void 0x0,this[_0x228b2d(0x222)][_0x228b2d(0x10d)]();}}async[_0x58d811(0x1f9)](_0x2cb9e4){const _0x334ac2=_0x58d811;let _0x416ed8;this[_0x334ac2(0x161)][_0x334ac2(0x1b5)][_0x334ac2(0x266)](_0x334ac2(0x198))&&this[_0x334ac2(0x161)][_0x334ac2(0x1b5)][_0x334ac2(0x23a)](_0x334ac2(0x198))[_0x334ac2(0x18a)](),_0x2cb9e4||!this[_0x334ac2(0x278)]?_0x416ed8=this[_0x334ac2(0x161)][_0x334ac2(0x137)][_0x334ac2(0x23a)](_0x334ac2(0x284)):this[_0x334ac2(0x222)][_0x334ac2(0x1e0)]&&(_0x416ed8=this[_0x334ac2(0x278)][_0x334ac2(0x1fa)]['id']),await this[_0x334ac2(0x18d)]();const _0x250a2f=this[_0x334ac2(0x1dc)](),_0x33a4cb=_0x2cb9e4||_0x2bfaa9();this[_0x334ac2(0x278)]=new _0x343295({'connector':this[_0x334ac2(0x163)],'chatModels':this[_0x334ac2(0x1e7)],'selectedModelId':_0x416ed8,'conversationId':_0x33a4cb,'group':_0x250a2f,'getEditor':()=>_0x262618(this[_0x334ac2(0x161)]),'isFromHistory':!!_0x2cb9e4}),this[_0x334ac2(0x278)][_0x334ac2(0x26b)](_0x334ac2(0x112),_0x334ac2(0x206))['to'](this),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1c6),(_0x54f5b2,_0x5c7f8b)=>{const _0xc489a7=_0x334ac2;this[_0xc489a7(0x222)][_0xc489a7(0x1cd)](_0x5c7f8b),this[_0xc489a7(0x222)][_0xc489a7(0x1d3)](),this[_0xc489a7(0x222)][_0xc489a7(0x1f5)](),this[_0xc489a7(0x222)][_0xc489a7(0x1a4)](),_0x2cb9e4||(this[_0xc489a7(0x222)][_0xc489a7(0x270)](),this[_0xc489a7(0x21b)]());}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x16d),(_0x2275c5,_0x17edac)=>{const _0x2b7ca3=_0x334ac2;this[_0x2b7ca3(0x222)][_0x2b7ca3(0x164)](_0x17edac[_0x2b7ca3(0x114)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x15b),(_0x50d674,_0x9b7bf0)=>{const _0x23a751=_0x334ac2;this[_0x23a751(0x222)][_0x23a751(0x186)](_0x9b7bf0);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x250),()=>{const _0x571422=_0x334ac2,_0x546580=this[_0x571422(0x222)][_0x571422(0x19a)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x571422(0x222)][_0x571422(0x254)](_0x546580);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x18c),()=>{const _0x248101=_0x334ac2,_0x20790b=this[_0x248101(0x222)][_0x248101(0x19a)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x248101(0x222)][_0x248101(0x254)](_0x20790b);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x134),(_0x171c72,_0x48679d)=>{const _0x311e6a=_0x334ac2;this[_0x311e6a(0x222)][_0x311e6a(0x11e)](_0x48679d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x237),(_0xaaf958,_0x4aa838)=>{const _0x395fe7=_0x334ac2;this[_0x395fe7(0x222)][_0x395fe7(0x11e)](_0x4aa838,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x206),()=>{const _0x584ef5=_0x334ac2;this[_0x584ef5(0x222)][_0x584ef5(0x230)]();}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x215),async()=>{const _0x425859=_0x334ac2;await this[_0x425859(0x222)][_0x425859(0x268)]();}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x169),(_0x544115,_0x516027)=>{const _0x13efb8=_0x334ac2;this[_0x13efb8(0x222)][_0x13efb8(0x205)](_0x516027['id']);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x133),(_0x1f9f48,_0x5a8c5b,_0x32608d)=>{const _0x203944=_0x334ac2;this[_0x203944(0x130)](_0x5a8c5b,_0x32608d);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x20a),(_0x360dc1,_0x4d9281)=>{const _0x422b1e=_0x334ac2;_0x422b1e(0x160)===_0x4d9281[_0x422b1e(0x110)]?this[_0x422b1e(0x222)][_0x422b1e(0x15e)](_0x4d9281):this[_0x422b1e(0x222)][_0x422b1e(0x16c)](_0x4d9281);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x18f),async(_0x1c14cb,_0x3ec062)=>{const _0x52a4bf=_0x334ac2;await this[_0x52a4bf(0x1eb)]({'reply':_0x3ec062});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x21f),(_0x53348d,{reply:_0x198a47,index:_0x56542e,state:_0x5f352f})=>{const _0x1af441=_0x334ac2;this[_0x1af441(0x222)][_0x1af441(0x19e)]({'id':_0x198a47['id'],'index':_0x56542e,'state':_0x5f352f}),this[_0x1af441(0x1ff)]?.[_0x1af441(0x11c)][_0x1af441(0x145)](_0x198a47['id'])&&this[_0x1af441(0x1ff)]?.[_0x1af441(0x10e)]==_0x56542e&&this[_0x1af441(0x157)]?.[_0x1af441(0x1c7)](_0x5f352f);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1cb),(_0x5eedc7,_0x523a59)=>{const _0x630d8d=_0x334ac2;if(this[_0x630d8d(0x222)][_0x630d8d(0x23e)](_0x523a59[_0x630d8d(0x274)],_0x523a59[_0x630d8d(0x261)]),_0x630d8d(0x277)===_0x523a59[_0x630d8d(0x274)][_0x630d8d(0x110)]){const _0x8b1e6a=[..._0x262618(this[_0x630d8d(0x161)])[_0x630d8d(0x227)][_0x630d8d(0x218)][_0x630d8d(0x277)][_0x630d8d(0x184)]()];this[_0x630d8d(0x182)][_0x630d8d(0x171)](_0x8b1e6a,_0x630d8d(0x1e5)+this[_0x630d8d(0x278)]?.['id']);}}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x14c),(_0x3c6107,_0x20e8dc)=>{const _0x1b6087=_0x334ac2;this[_0x1b6087(0x222)][_0x1b6087(0x238)](_0x20e8dc[_0x1b6087(0x13f)]),_0x1b6087(0x189)==_0x20e8dc[_0x1b6087(0x13f)]&&this[_0x1b6087(0x1a6)](),_0x1b6087(0x277)===_0x20e8dc[_0x1b6087(0x110)]&&this[_0x1b6087(0x182)][_0x1b6087(0x1e1)](_0x1b6087(0x1e5)+this[_0x1b6087(0x278)]?.['id']);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1b3),(_0x5602ac,_0x50c3a1)=>{const _0x1fb502=_0x334ac2;this[_0x1fb502(0x222)][_0x1fb502(0x199)](_0x50c3a1[_0x1fb502(0x274)][_0x1fb502(0x13f)],_0x50c3a1[_0x1fb502(0x261)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1d7),(_0x459be9,_0x3c8ca7)=>{const _0x2c5a1d=_0x334ac2;this[_0x2c5a1d(0x222)][_0x2c5a1d(0x177)](_0x3c8ca7[_0x2c5a1d(0x288)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x141),(_0x46c98f,_0x109ba5)=>{const _0x54a783=_0x334ac2;this[_0x54a783(0x222)][_0x54a783(0x119)](_0x109ba5[_0x54a783(0x202)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1e4),(_0x2e51f2,_0x1627ab)=>{const _0x2df647=_0x334ac2;this[_0x2df647(0x222)][_0x2df647(0x282)](_0x1627ab[_0x2df647(0x1d6)],_0x1627ab[_0x2df647(0x1df)],_0x1627ab[_0x2df647(0x18b)],_0x1627ab[_0x2df647(0x245)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x248),(_0x4230b4,_0x7f9182)=>{const _0x2ee7dc=_0x334ac2;this[_0x2ee7dc(0x222)][_0x2ee7dc(0x10a)](_0x7f9182[_0x2ee7dc(0x1d6)],_0x7f9182[_0x2ee7dc(0x233)],_0x7f9182[_0x2ee7dc(0x1fe)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x21d),(_0x3b0b17,_0x2e7735)=>{const _0x1ce3e1=_0x334ac2;this[_0x1ce3e1(0x222)][_0x1ce3e1(0x1a3)](_0x2e7735);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x246),async(_0x538763,_0x3eda57)=>{const _0x54dd6=_0x334ac2,_0x12c55b=(await this[_0x54dd6(0x1e7)][_0x54dd6(0x142)]())[_0x54dd6(0x108)](_0x2bfa94=>_0x2bfa94['id']===_0x3eda57[_0x54dd6(0x1fa)]?.['id'])||null;this[_0x54dd6(0x222)][_0x54dd6(0x21e)](_0x12c55b,_0x3eda57[_0x54dd6(0x1a1)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x26e),(_0x2ad7a8,{error:_0x5b001d,interactionId:_0x243049,fileName:_0x2d407c,url:_0x37d97a,sourceId:_0x46a1f2,sourceLabel:_0x506f29})=>{const _0x40a54b=_0x334ac2,_0x3c94d9=_0x243049?_0x243049+':'+_0x2bfaa9():_0x2bfaa9();_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x223))?this[_0x40a54b(0x222)][_0x40a54b(0x11a)]({'staticMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x14d)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x228))||_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x203))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x269)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x167))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x200),_0x2d407c),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x19d))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x147),_0x37d97a),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x14b))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x153)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x135))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x276)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x14f))?(_0x46a1f2&&this[_0x40a54b(0x222)][_0x40a54b(0x16a)](_0x46a1f2),this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x1fc),_0x506f29||_0x40a54b(0x1df)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x1fd))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x26c)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x125))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x229)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x280))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x1cf)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x273))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x117)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x1ae))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x192)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x20d))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x225)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x13d)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d));}),await this[_0x334ac2(0x278)][_0x334ac2(0x25f)](this[_0x334ac2(0x161)][_0x334ac2(0x137)][_0x334ac2(0x23a)](_0x334ac2(0x132))),_0x2cb9e4||await this[_0x334ac2(0x278)][_0x334ac2(0x271)]();}async[_0x58d811(0x181)]({userMessage:_0x5dc221,attributes:_0x4a6d5d}){const _0x5f0a07=_0x58d811;if(!this[_0x5f0a07(0x278)])throw new _0x20e93a(_0x5f0a07(0x17a));if(this[_0x5f0a07(0x278)][_0x5f0a07(0x138)]()){const _0x3e844f=await this[_0x5f0a07(0x182)][_0x5f0a07(0x1f2)]();await this[_0x5f0a07(0x278)][_0x5f0a07(0x18e)](_0x3e844f);}this[_0x5f0a07(0x278)]['id']&&this[_0x5f0a07(0x278)][_0x5f0a07(0x188)]&&await this[_0x5f0a07(0x278)][_0x5f0a07(0x27a)]({'userMessage':_0x5dc221,'attributes':_0x4a6d5d});}[_0x58d811(0x11f)](){const _0x275234=_0x58d811;console[_0x275234(0x22a)](_0x275234(0x201));}[_0x58d811(0x122)](_0xea5a2b){const _0x3dd235=_0x58d811;this[_0x3dd235(0x222)][_0x3dd235(0x23b)](_0xea5a2b);}[_0x58d811(0x1e9)](_0x4ea652){const _0x5ebb5b=_0x58d811;_0x1307b1(_0x4ea652[_0x5ebb5b(0x1bc)]);}[_0x58d811(0x24c)](_0x4a545d){const _0x332fcb=_0x58d811;this[_0x332fcb(0x278)]?.[_0x332fcb(0x207)](_0x4a545d);}[_0x58d811(0x121)](){const _0xe9467=_0x58d811;this[_0xe9467(0x278)]?.[_0xe9467(0x143)]();}[_0x58d811(0x13e)](){const _0xf46eae=_0x58d811;this[_0xf46eae(0x278)]?.[_0xf46eae(0x22b)]();}[_0x58d811(0x249)](_0x42a03e){const _0x27afb3=_0x58d811,[_0x1940ed,_0x4e8e37]=_0x42a03e[_0x27afb3(0x126)](':'),_0x2a9c93=this[_0x27afb3(0x278)][_0x27afb3(0x1a8)](_0x1940ed),_0x56665=_0x2a9c93[_0x27afb3(0x1e2)](_0x4e8e37);return{'interaction':_0x2a9c93,'reply':_0x56665};}[_0x58d811(0x24b)](_0x3a502f,_0x4ad5f4=!0x1){const _0x48367d=_0x58d811,_0x24207b=_0x262618(this[_0x48367d(0x161)]),_0x6681cc={'target':_0x24207b[_0x48367d(0x1b0)][_0x48367d(0x123)][_0x48367d(0x183)][_0x48367d(0x1dd)](_0x24207b[_0x48367d(0x1b0)][_0x48367d(0x20b)][_0x48367d(0x24a)](_0x3a502f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4ad5f4};_0x4ad5f4&&(_0x6681cc[_0x48367d(0x168)]=!0x0),_0x340917(_0x6681cc);}[_0x58d811(0x130)](_0x380fbd,_0x5d7ac4=!0x1){const _0xaf35eb=_0x58d811;this[_0xaf35eb(0x222)][_0xaf35eb(0x133)](_0x380fbd||_0x91ff1d(this[_0xaf35eb(0x161)][_0xaf35eb(0x20e)],_0xaf35eb(0x14e)),_0x5d7ac4);}async[_0x58d811(0x1eb)]({reply:_0x5b7f04,renderingStrategy:_0x3b279c}){const _0x5c0f2b=_0x58d811,{id:_0x27b999,interactionId:_0x48f2e5,isDone:_0x358dd0,type:_0x47e3ee,parsedContent:_0x17a7c5}=_0x5b7f04,_0x4ff29f=_0x48f2e5+':'+_0x27b999;if(_0x5c0f2b(0x15d)===_0x47e3ee){const _0x2216ef=_0x5b7f04[_0x5c0f2b(0x242)]({'showDiff':this[_0x5c0f2b(0x222)][_0x5c0f2b(0x197)]});await this[_0x5c0f2b(0x222)][_0x5c0f2b(0x1af)]({'id':_0x4ff29f,'parts':_0x2216ef,'renderingStrategy':_0x3b279c,'isDone':_0x358dd0});}else _0x5c0f2b(0x160)===_0x47e3ee&&await this[_0x5c0f2b(0x222)][_0x5c0f2b(0x12a)]({'id':_0x4ff29f,'parsedContent':_0x17a7c5,'renderingStrategy':_0x3b279c,'isDone':_0x358dd0});_0x358dd0&&_0x5b7f04[_0x5c0f2b(0x178)][_0x5c0f2b(0x25b)]>0x0&&this[_0x5c0f2b(0x222)][_0x5c0f2b(0x224)](_0x4ff29f,_0x5b7f04[_0x5c0f2b(0x178)]);}async[_0x58d811(0x18d)](){const _0x2c4a51=_0x58d811,_0x4e1dc6=this[_0x2c4a51(0x278)]?.[_0x2c4a51(0x1b6)];_0x4e1dc6&&(_0x4e1dc6[_0x2c4a51(0x19b)](),this[_0x2c4a51(0x222)][_0x2c4a51(0x252)](_0x4e1dc6));}async[_0x58d811(0x24f)](){const _0x13620b=_0x58d811,_0x4cf07d=this[_0x13620b(0x278)]?.[_0x13620b(0x1b6)];if(_0x4cf07d){for await(const _0x48d449 of _0x4cf07d[_0x13620b(0x23c)])await this[_0x13620b(0x1eb)]({'reply':_0x48d449,'renderingStrategy':_0x13620b(0x283)});}}[_0x58d811(0x12e)](_0x4f63b7){const _0xf76cda=_0x58d811,_0x25037a={'positiveCount':_0x4f63b7[_0xf76cda(0x1b9)][_0xf76cda(0x17b)](_0x511cc7=>_0xf76cda(0x1de)===_0x511cc7[_0xf76cda(0x221)])[_0xf76cda(0x25b)],'totalCount':_0x4f63b7[_0xf76cda(0x1b9)][_0xf76cda(0x25b)],'modificationId':_0x4f63b7['id']},_0x5d4147=this[_0xf76cda(0x278)][_0xf76cda(0x1a8)](_0x4f63b7[_0xf76cda(0x104)])[_0xf76cda(0x101)];_0x5d4147&&this[_0xf76cda(0x163)][_0xf76cda(0x185)](this[_0xf76cda(0x278)]['id'],_0x5d4147,_0x25037a);}[_0x58d811(0x1e8)](_0x5a2dcf){const _0x579b2a=_0x58d811;let _0x21c949=null,_0x4a498b=null;this['on'](_0x579b2a(0x112),(_0x2f05b8,_0x261347,_0x595c8f)=>{const _0x421201=_0x579b2a;_0x595c8f['id']!==_0x21c949&&(_0x21c949=_0x595c8f['id'],_0x4a498b=this[_0x421201(0x107)](_0x595c8f)),_0x5a2dcf(_0x261347,_0x4a498b);});}[_0x58d811(0x107)](_0x39260c){const _0x4915d1=_0x58d811,_0x566f55=this[_0x4915d1(0x222)],_0x8a3134=()=>{const _0x119994=_0x4915d1;_0x39260c[_0x119994(0x1ec)](),_0x39260c[_0x119994(0x1e6)](),_0x566f55[_0x119994(0x216)]();},_0x5dfe35=()=>{const _0x360bf6=_0x4915d1;_0x39260c[_0x360bf6(0x262)]&&(_0x39260c[_0x360bf6(0x262)][_0x360bf6(0x1a0)](),_0x39260c[_0x360bf6(0x262)]=void 0x0);};return{'insertTextReply':(_0x426bdb,_0x11e32f)=>{const _0x4c285c=_0x4915d1;_0x5dfe35(),_0x8a3134();const _0x575934=_0x39260c[_0x4c285c(0x262)]=_0x39260c[_0x4c285c(0x191)]({'type':_0x4c285c(0x160),'interactionId':_0x39260c['id'],'content':_0x426bdb,'id':_0x11e32f||_0x2bfaa9()});return _0x5dfe35(),_0x575934;},'insertCustomElement':async(_0x4ce13b,_0x2d3ab3)=>(_0x5dfe35(),_0x8a3134(),_0x566f55[_0x4915d1(0x1d0)](_0x4ce13b,_0x2d3ab3||_0x2bfaa9())),'setLoadingMessage':_0x35ab2e=>{const _0x353450=_0x4915d1;_0x566f55[_0x353450(0x254)](_0x35ab2e);},'clearLoadingMessage':()=>{const _0x48209f=_0x4915d1;_0x566f55[_0x48209f(0x216)]();}};}}
23
+ const _0x51392f=_0x3631;(function(_0x28a667,_0x592385){const _0x13632b=_0x3631,_0x13da3b=_0x28a667();while(!![]){try{const _0x591ca1=-parseInt(_0x13632b(0x1f0))/0x1+parseInt(_0x13632b(0x1a9))/0x2*(parseInt(_0x13632b(0x255))/0x3)+-parseInt(_0x13632b(0x297))/0x4+parseInt(_0x13632b(0x1dc))/0x5*(parseInt(_0x13632b(0x1bd))/0x6)+-parseInt(_0x13632b(0x169))/0x7+parseInt(_0x13632b(0x21b))/0x8*(parseInt(_0x13632b(0x228))/0x9)+parseInt(_0x13632b(0x237))/0xa*(parseInt(_0x13632b(0x2ac))/0xb);if(_0x591ca1===_0x592385)break;else _0x13da3b['push'](_0x13da3b['shift']());}catch(_0x152fa3){_0x13da3b['push'](_0x13da3b['shift']());}}}(_0x58b8,0xb9121));import{ContextPlugin as _0x5922a8,Editor as _0x5e54a1}from'ckeditor5/src/core.js';import{BodyCollection as _0x2f6ff1}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2bbafa,logError as _0x640bca,scrollViewportToShowTarget as _0x494017,uid as _0x1837bf}from'ckeditor5/src/utils.js';import{AIConnector as _0xa394c}from'../aicore/aiconnector.js';import{AITabs as _0x39f63c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5c1c02}from'./model/aichatconversation.js';import{getTranslation as _0x534e0f}from'../aicore/utils/common-translations.js';function _0x3631(_0x1809e3,_0x1f4ef4){const _0x58b8ad=_0x58b8();return _0x3631=function(_0x363138,_0x3bc37e){_0x363138=_0x363138-0x161;let _0x2fafaf=_0x58b8ad[_0x363138];return _0x2fafaf;},_0x3631(_0x1809e3,_0x1f4ef4);}function _0x58b8(){const _0x47f128=['setConversationTitle','outdated','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','startInteraction','enableControls','hasChanges','document','_showConversationHistory','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','log','reasoningStarted','streaming','areActionsDisabled','getFirstRange','clearPendingContextUI','config','_logError','addDocumentToContext','rootName','_handleUIUserMessage','domConverter','_flushLastInteractionUI','_stopLastInteraction','ai-chat-missing-channel-id','push','isModelAvailable','disableControls','init','createPositionFromPath','setIsUploadInProgress','updateFeedItemAIReplySources','_integrateEditor','sources','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','state','ai-chat-controller-no-active-conversation','accepted','data-id','uiId','ai-chat-conversation-not-found','handleUserInteraction','populateSourceResourceBalloon','setFeedItemAIReplySuggestionPartActive','getChild','toggleReasoning','contextItemAdded','isInContext','addSelectionToChatContext','done','addFeedItemStaticMessage','_aiEditing','addOperation','getChildAtOffset','has','3330000JhjtdM','updateContent','addResourceToContext','ai.chat.context','replyId','insertSuggestion','ai.chat.initialConversation','_handleStartConversation','contextItems','_openBalloonFor','isCurrentDocumentInContext','_updateRatings','isStarted','removeFeedInteraction','_currentPreviewedChangeGroup','scrollFeedToSuggestion','conversationInitialized','_startConversationSafely','resizedTabs','nextSibling','ready','99vxEspc','resetReasoningState','addFeedItemError','updateResourceState','AI_CHAT_UNABLE_TO_START_CONVERSATION','start','lastCreated','showDiff','updateConversationTitle','ai-request-aborted','upsertAIChatRating','addFeedInteractionHeader','_getPresentableSiblingContentPartIndex','ai-chat-source-resources-load-failed','_aiConnector','end','interactionStarted','_rejectSuggestion','Undo','from','interactionDestroyed','editing','setContextItemLoading','AI_CHAT_CONTEXT_INVALID_DATA','contextItemRemoved','updateCapabilities','createRange','alignToTop','messageId','AIEditing','createReply','marker','getContentParts','addContextItem','removeSelectionFromContext','isUploadInProgress','ai-chat-conversation-start-failed','version','forEach','AITabs','startConversation','batch','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','mouseLeaveSuggestion','index','resourceStateChanged','setIsMaximized','previous','showNext','collaboration.channelId','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','undo','addFileToContext','root','query','setFeedItemRenderingStrategy','aiChatBalloon','abortPromptStream','contextSent','applySuggestion','ai-chat-context-unsupported-file-type','getConversations','applyOperation','ai-chat-file-upload-failed','TrackChangesEditing','listenTo','delete','commands','_removeFromContext','addFeedItemAIReply','maxOffset','ai-chat-context-form-data-size-limits-exceeded','documentContextContent','8934891alysNc','getReply','close','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getGroupId','ai-chat-invalid-request','createdAt','getDocumentContext','dialogClosed','pluginName','loadConversation','ai-chat-context-invalid-data','modification','_scrollToSuggestionRange','setSelectedModel','hideFakeVisualSelection','length','set','replyChangeGroupStateUpdated','getRanges','toString','getRoot','load','getInteractionAndReplyById','get','node','TrackChanges','setLoadingMessage','AI_BALLOON_HEADER_TITLE','options','webSearchFinished','open','getPath','isPremiumPlugin','ai-chat-controller-mouse-over','contextItem','editors','resetWebSearchState','isOfficialPlugin','replyCreated','remove','callback','stop','attachToDom','startAutoScroll','AI_CHAT_GENERIC_ERROR','ai.models.defaultModelId','createConversation','removeFromContext','includes','resizeTabs','ai-chat-context-file-too-many-pages','setChangeGroupState','setConversationContext','new','ai-chat-conversation-init-failed','partIndex','model','message','executeCustomItemCallback','addFeedItemCustomElement','_batchToChanges','data','2PLXaVX','toggleLoadingSkeleton','mouseOverSuggestion','chat','getOperations','resourceId','addCurrentDocumentToChatContext','history','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','replyContentUpdated','AIChatUI','stopInteraction','lastInteraction','_getUserPresentableContentPartDocumentRange','context','ai-chat-url-upload-failed','_aiChatUi','split','_aiChatBalloon','22038OLJvjv','indexOf','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','uploadProgressChanged','range','view','selectedModel','startsWith','Showing\x20conversation\x20history...','Liked\x20response','removeContextItem','_bodyCollection','resize','sendUserMessage','_toggleWebSearch','text','handleRemovedConversation','sourceResourcesLoaded','dislike','_updateReplyContent','plugins','AIChatController','map','removed','sourceId','ai-chat-context-file-too-large','static','_aiChatModels','requires','children','interactionId','795dkCuhT','closeSourceResourceBalloon','loadSourceResources','updateCurrentDocumentInContext','getDocumentData','afterInit','type','setAddContextOptions','find','finishInteraction','rejectSuggestion','ai-chat-resource-load-failed','revert','ai.models','_toggleReasoning','updateFeedItemAIReplyContent','_aiChatBalloonShowDiff','changeGroups','prepareLoadingMessage','_getDocumentRangeForReplyChanges','320633jxMiYw','AI_CHAT_ABORTED_MESSAGE','error','next','baseVersion','contextItemLoadingEnded','viewRangeToDom','mapper','_applyOperationsAsSuggestions','getAttribute','AI_CHAT_CONTEXT_FILE_TOO_LARGE','Disliked\x20response','anchorId','changes','clearConversationContextUI','ai-conversation-','focusPromptInput','unshift','resources','_setIsMaximized','_getLastCreatedConversationId','_getAIChatInteractionAPI','getAll','toggleWebSearch','selectModel','$graveyard','addFilesToContext','removeSelectionFromChatContext','addCurrentDocumentToContext','_insertSuggestion','change','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','getTransformedByOperation','ai-chat-context-unsupported-type','fetchConversations','webSearchStarted','locale','addContextOptionsChanged','AI_CHAT_INVALID_REQUEST','parse','AIConnector','content','1391160JuEXYq','toViewRange','destroy','getInteraction','main','reasoningFinished','indexes','cloneNode','add','addSelectionToContext','bind','capabilitiesUpdated','howMany','9wruHMv','interactionFinished','currentReply','fetchConversation','showChangeInText','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateFeedItemAIReplySuggestionContent','isDocumentOperation','getDiff','like','resource','showFakeVisualSelection','isCurrentDocumentInConversation','sourcePosition','addUrlToContext','2345260eDXDCP','AIChatBalloon','source','addFeedItemAISuggestion','getConversation','interactionCreated','_createFromRanges','delegate','findIndex','DocumentCompare','detachFromDom','modelSelected','getChildren','sessionId','addFeedItemUserMessage','ai-no-track-changes','rejected','pending','isDisabled','redo','toggleSuggestionDisplayMode','getSelectionText','resetConversationTitle','current-document','uid','setState','activateTab','replies','AI_CHAT_RESOURCE_LOAD_FAILED','clearLoadingMessage','956877cDyAJh','setModel','isLoading','slice','_applySuggestion','activeConversation','sendMessage','resetMessageInput','path','createPositionAt','toolDataReceived','filter'];_0x58b8=function(){return _0x47f128;};return _0x58b8();}import{AIModels as _0x5adaeb}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3d3109}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4a99e6,DATA_ID_MODEL_ATTRIBUTE as _0x5eb965}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x21105c,getOperationsFromReply as _0x16e85b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3c2280,getMinimalSelection as _0x9507b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1173c7,_DetachOperation as _0x41f2fe}from'ckeditor5/src/engine.js';import{findOne as _0xd557f5,getAttribute as _0x297bf6,serialize as _0x330a70,Document as _0x35a8ec,findByAttribute as _0x1e9eb0}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x5922a8{[_0x51392f(0x293)];[_0x51392f(0x2ba)];[_0x51392f(0x1ba)];[_0x51392f(0x1d8)];[_0x51392f(0x1bc)];[_0x51392f(0x1a7)]=new Map();[_0x51392f(0x2a5)]=null;[_0x51392f(0x1c8)];static get[_0x51392f(0x1d9)](){return[_0xa394c,_0x4a99e6];}static get[_0x51392f(0x173)](){const _0x957464=_0x51392f;return _0x957464(0x1d2);}static get[_0x51392f(0x190)](){return!0x0;}static get[_0x51392f(0x18b)](){return!0x0;}[_0x51392f(0x27c)](){const _0x10d221=_0x51392f;this[_0x10d221(0x1c8)]=new _0x2f6ff1(this[_0x10d221(0x1b8)][_0x10d221(0x215)]),this[_0x10d221(0x1c8)][_0x10d221(0x195)](),this[_0x10d221(0x2ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x219)),this[_0x10d221(0x1ba)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x1b4)),this[_0x10d221(0x293)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2c9)),this[_0x10d221(0x1d8)]=new _0x5adaeb({'connector':this[_0x10d221(0x2ba)],'config':this[_0x10d221(0x1b8)][_0x10d221(0x270)][_0x10d221(0x182)](_0x10d221(0x1e9)),'locale':this[_0x10d221(0x1b8)][_0x10d221(0x215)]});const _0x3f89b7=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x2d3));this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d4),()=>{const _0x2a4993=_0x10d221;this[_0x2a4993(0x2a8)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ca),(_0x134dd4,_0x2750f7)=>{const _0x3917d0=_0x10d221;this[_0x3917d0(0x274)]({'userMessage':_0x2750f7});}),this[_0x10d221(0x161)](_0x3f89b7,_0x10d221(0x2a9),(_0x432f6a,_0x398d86)=>{const _0x57dc43=_0x10d221;this[_0x57dc43(0x203)](_0x398d86);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x19c),()=>{const _0x1af5a5=_0x10d221;_0x3f89b7[_0x1af5a5(0x1c9)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e6),async()=>{const _0x1bb70b=_0x10d221;await this[_0x1bb70b(0x277)](),await this[_0x1bb70b(0x276)](),this[_0x1bb70b(0x20b)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x272),()=>{const _0x1e2be8=_0x10d221;this[_0x1e2be8(0x1af)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e1),(_0xf0c3e5,_0x4e5bd0)=>{const _0x2e4e57=_0x10d221;this[_0x2e4e57(0x25a)]?.[_0x2e4e57(0x20a)](Array[_0x2e4e57(0x2bf)](_0x4e5bd0));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x236),(_0x568170,_0xc123d4)=>{const _0x2f0bfd=_0x10d221;this[_0x2f0bfd(0x25a)]?.[_0x2f0bfd(0x236)](_0xc123d4);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1a5),(_0x203ffb,_0x329bda)=>{const _0x4b9847=_0x10d221;_0x329bda[_0x4b9847(0x193)](this[_0x4b9847(0x1b8)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x299),(_0x364a71,_0x3d540e)=>{const _0x5d8f6c=_0x10d221;this[_0x5d8f6c(0x25a)]?.[_0x5d8f6c(0x299)](_0x3d540e[_0x5d8f6c(0x239)],_0x3d540e[_0x5d8f6c(0x232)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1c7),(_0x3337ce,_0x2e7aa6)=>{const _0x831ff5=_0x10d221;this[_0x831ff5(0x164)](_0x2e7aa6);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1de),(_0x2988e1,_0x3247c9)=>{const _0x242a9a=_0x10d221;this[_0x242a9a(0x25a)]?.[_0x242a9a(0x1de)](_0x3247c9[_0x242a9a(0x1d5)],_0x3247c9[_0x242a9a(0x2e3)],_0x3247c9[_0x242a9a(0x24f)]);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x207),()=>{const _0x28da45=_0x10d221;this[_0x28da45(0x1cb)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x28d),()=>{const _0x11a22d=_0x10d221;this[_0x11a22d(0x1ea)]();}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x208),(_0x4f7206,_0x4ac548)=>{const _0x1e71c2=_0x10d221;this[_0x1e71c2(0x25a)]?.[_0x1e71c2(0x256)](_0x4ac548);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x231),(_0x55ad19,{replyId:_0x20c71f})=>{const _0x3a7b62=_0x10d221;console[_0x3a7b62(0x26a)](_0x3a7b62(0x1c6),_0x20c71f);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1cf),(_0xea1571,{replyId:_0x14a326})=>{const _0x4e5e14=_0x10d221;console[_0x4e5e14(0x26a)](_0x4e5e14(0x1fb),_0x14a326);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x29c),(_0x2eaced,_0x246dea)=>{const _0x467f13=_0x10d221;this[_0x467f13(0x20d)](_0x246dea);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x22c),(_0x32521a,{replyId:_0x385baa,partIndex:_0x42641b})=>{const _0x57c3db=_0x10d221;this[_0x57c3db(0x1ec)]=this[_0x57c3db(0x1ba)][_0x57c3db(0x2b3)],this[_0x57c3db(0x2a0)](_0x385baa,_0x42641b);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1ab),(_0x1930c4,{replyId:_0x5ac99f,partIndex:_0x176718})=>{const _0x26ec31=_0x10d221,_0x303f8b=this[_0x26ec31(0x1ef)](_0x5ac99f,_0x176718);_0x303f8b&&_0x26ec31(0x209)!=_0x303f8b[_0x26ec31(0x1c1)][_0x26ec31(0x2e2)][_0x26ec31(0x273)]&&this[_0x26ec31(0x293)][_0x26ec31(0x233)]([_0x303f8b[_0x26ec31(0x1c1)]],_0x26ec31(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2d7),()=>{const _0x1cb565=_0x10d221;this[_0x1cb565(0x293)][_0x1cb565(0x179)](_0x1cb565(0x18c));}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x2e8),(_0x70698c,_0x2bdea9)=>{const _0x5a7c34=_0x10d221;this[_0x5a7c34(0x293)][_0x5a7c34(0x179)](_0x5a7c34(0x18c)),this[_0x5a7c34(0x259)](_0x2bdea9);}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x24b),async(_0xa25ac,{replyId:_0x599149,showDiff:_0x546b7d})=>{const _0x57bcd4=_0x10d221,{reply:_0x3c7024}=this[_0x57bcd4(0x181)](_0x599149),_0x2f8469=_0x3c7024[_0x57bcd4(0x2cc)]({'showDiff':_0x546b7d});await this[_0x57bcd4(0x1ba)][_0x57bcd4(0x22e)]({'id':_0x3c7024['id'],'parts':_0x2f8469,'renderingStrategy':_0x57bcd4(0x1d7)});}),this[_0x10d221(0x161)](this[_0x10d221(0x1ba)],_0x10d221(0x1e6),(_0x27a948,{replyId:_0x22d4da,partIndex:_0x1dd6a8})=>{const _0x348a03=_0x10d221;this[_0x348a03(0x2bd)]({'replyId':_0x22d4da,'partIndex':_0x1dd6a8}),this[_0x348a03(0x293)][_0x348a03(0x179)](_0x348a03(0x18c));}),this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x296)](_0x10d221(0x238))&&(this[_0x10d221(0x1bc)]=this[_0x10d221(0x1b8)][_0x10d221(0x1d1)][_0x10d221(0x182)](_0x10d221(0x238)),this[_0x10d221(0x17b)](_0x10d221(0x1ec),!0x1),this[_0x10d221(0x1bc)][_0x10d221(0x225)](_0x10d221(0x2b3))['to'](this,_0x10d221(0x1ec)),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x24b),()=>{const _0x6f1164=_0x10d221,{replyId:_0xfb24b,partIndex:_0x15a3ea}=this[_0x6f1164(0x2a5)];this[_0x6f1164(0x1ec)]=!this[_0x6f1164(0x1ec)];const {reply:_0xe19997}=this[_0x6f1164(0x181)](_0xfb24b),_0x73151d=_0xe19997[_0x6f1164(0x2cc)]({'showDiff':this[_0x6f1164(0x1ec)],'groupIndex':_0x15a3ea});this[_0x6f1164(0x1bc)][_0x6f1164(0x298)]({'part':_0x73151d[0x0],'renderingStrategy':_0x6f1164(0x1d7),'keepErrors':!0x0});}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2e8),()=>{const _0x55815b=_0x10d221,{replyId:_0x47ce42,partIndex:_0x55df99}=this[_0x55815b(0x2a5)];this[_0x55815b(0x259)]({'replyId':_0x47ce42,'partIndex':_0x55df99}),this[_0x55815b(0x1bc)][_0x55815b(0x250)](_0x55815b(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x29c),()=>{const _0x28777a=_0x10d221,{replyId:_0x227c7b,partIndex:_0xca066}=this[_0x28777a(0x2a5)];this[_0x28777a(0x20d)]({'replyId':_0x227c7b,'partIndex':_0xca066}),this[_0x28777a(0x1bc)][_0x28777a(0x250)](_0x28777a(0x285));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x1e6),()=>{const _0x59d6e5=_0x10d221,{replyId:_0x3aa89b,partIndex:_0x55d23b}=this[_0x59d6e5(0x2a5)];this[_0x59d6e5(0x2bd)]({'replyId':_0x3aa89b,'partIndex':_0x55d23b}),this[_0x59d6e5(0x1bc)][_0x59d6e5(0x250)](_0x59d6e5(0x247));}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x2dc),()=>{const _0x12fb8f=_0x10d221,{replyId:_0x50d9c5,partIndex:_0x43cd87}=this[_0x12fb8f(0x2a5)],_0x78cff7=this[_0x12fb8f(0x2b8)](_0x50d9c5,_0x43cd87,_0x12fb8f(0x1f3));null!==_0x78cff7&&this[_0x12fb8f(0x2a0)](_0x50d9c5,_0x78cff7);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x210),()=>{const _0x225955=_0x10d221,{replyId:_0x25ad30,partIndex:_0x4ea030}=this[_0x225955(0x2a5)],_0x5092ee=this[_0x225955(0x2b8)](_0x25ad30,_0x4ea030,_0x225955(0x2db));null!==_0x5092ee&&this[_0x225955(0x2a0)](_0x25ad30,_0x5092ee);}),this[_0x10d221(0x161)](this[_0x10d221(0x1bc)],_0x10d221(0x172),(_0x3f946e,{id:_0x4e6309})=>{const _0x4980d=_0x10d221;if(_0x4980d(0x2e5)!==_0x4e6309)return;const {replyId:_0x194cb8,partIndex:_0x72b390}=this[_0x4980d(0x2a5)];this[_0x4980d(0x2a5)]=null,this[_0x4980d(0x1ba)][_0x4980d(0x28b)]({'id':_0x194cb8,'index':_0x72b390,'isActive':!0x1});}));}async[_0x51392f(0x1e1)](){const _0x4c69b7=_0x51392f;this[_0x4c69b7(0x1b8)]instanceof _0x5e54a1?this[_0x4c69b7(0x280)](this[_0x4c69b7(0x1b8)]):this[_0x4c69b7(0x161)](this[_0x4c69b7(0x1b8)][_0x4c69b7(0x18e)],_0x4c69b7(0x223),(_0x3ca448,_0x15083f)=>{const _0x1d0aa2=_0x4c69b7;_0x15083f['on'](_0x1d0aa2(0x2ab),()=>{const _0x5f4e5e=_0x1d0aa2;this[_0x5f4e5e(0x280)](_0x15083f);});});const _0xdf01a5=this[_0x4c69b7(0x1b8)][_0x4c69b7(0x270)][_0x4c69b7(0x182)](_0x4c69b7(0x29d));let _0x215187=_0xdf01a5;if(_0x4c69b7(0x2b2)!=_0xdf01a5||(_0x215187=await this[_0x4c69b7(0x204)](),_0x215187))return _0x4c69b7(0x1a0)==_0x215187?this[_0x4c69b7(0x2a8)]():this[_0x4c69b7(0x174)](_0x215187);}async[_0x51392f(0x21d)](){const _0x577dd0=_0x51392f;return await this[_0x577dd0(0x277)](),this[_0x577dd0(0x1c8)][_0x577dd0(0x241)](),super[_0x577dd0(0x21d)]();}[_0x51392f(0x20d)](_0x8450f){const _0x1bc86e=_0x51392f,_0xdf25b4=_0x3d3109(this[_0x1bc86e(0x1b8)]);if(!_0xdf25b4[_0x1bc86e(0x1d1)][_0x1bc86e(0x296)](_0x1bc86e(0x184)))throw new _0x2bbafa(_0x1bc86e(0x246),null);const _0x52f7bc=this[_0x1bc86e(0x1b8)][_0x1bc86e(0x1d1)][_0x1bc86e(0x182)](_0x1bc86e(0x240)),{reply:_0x25b3ee,interaction:_0x4ef449}=this[_0x1bc86e(0x181)](_0x8450f[_0x1bc86e(0x29b)]),_0x449244=this[_0x1bc86e(0x1ef)](_0x8450f[_0x1bc86e(0x29b)],_0x8450f[_0x1bc86e(0x1a2)]),_0x536409=void 0x0!==_0x8450f[_0x1bc86e(0x1a2)]?[_0x25b3ee[_0x1bc86e(0x1ed)][_0x8450f[_0x1bc86e(0x1a2)]]]:_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x260)](_0x103937=>_0x1bc86e(0x248)==_0x103937[_0x1bc86e(0x283)]),_0x97d4c0=_0x536409[_0x1bc86e(0x1d3)](_0x196e65=>_0x25b3ee[_0x1bc86e(0x1ed)][_0x1bc86e(0x1be)](_0x196e65));if(!_0x449244||_0x1bc86e(0x209)==_0x449244[_0x1bc86e(0x1c1)][_0x1bc86e(0x2e2)][_0x1bc86e(0x273)])return void _0x97d4c0[_0x1bc86e(0x2d2)](_0x146935=>_0x25b3ee[_0x1bc86e(0x19e)](_0x146935,_0x1bc86e(0x262)));_0x97d4c0[_0x1bc86e(0x2d2)](_0x1385ed=>_0x25b3ee[_0x1bc86e(0x19e)](_0x1385ed,_0x1bc86e(0x285)));const _0x4ec403=_0x16e85b({'editor':_0xdf25b4,'reply':_0x25b3ee,'interaction':_0x4ef449,'groups':_0x536409,'transform':!0x0,'documentCompare':_0x52f7bc,'documentCompareOptions':{'anchor':_0x1bc86e(0x21f),'markDeletions':!0x0}});let _0x4d0093;_0x449244&&this[_0x1bc86e(0x177)](_0x449244[_0x1bc86e(0x1c1)]),_0xdf25b4[_0x1bc86e(0x1a3)][_0x1bc86e(0x20e)](_0xc33e73=>{const _0x552b55=_0x1bc86e;_0x4d0093=_0xc33e73[_0x552b55(0x2d5)],_0xdf25b4[_0x552b55(0x1d1)][_0x552b55(0x182)](_0x552b55(0x2ed))[_0x552b55(0x1f8)](_0x4ec403),this[_0x552b55(0x293)][_0x552b55(0x179)](_0x552b55(0x18c));}),this[_0x1bc86e(0x1a7)][_0x1bc86e(0x17b)](_0x4d0093,{'interactionId':_0x4ef449['id'],'replyId':_0x25b3ee['id'],'indexes':_0x97d4c0[_0x1bc86e(0x258)]()}),this[_0x1bc86e(0x2a2)](_0x25b3ee);}[_0x51392f(0x259)](_0x5899ca){const _0x28826e=_0x51392f,_0x43bde6=_0x3d3109(this[_0x28826e(0x1b8)]),_0x46e369=this[_0x28826e(0x1b8)][_0x28826e(0x1d1)][_0x28826e(0x182)](_0x4a99e6),{reply:_0x3d0e71,interaction:_0x1732bf}=this[_0x28826e(0x181)](_0x5899ca[_0x28826e(0x29b)]),_0x12df6a=this[_0x28826e(0x1ef)](_0x5899ca[_0x28826e(0x29b)],_0x5899ca[_0x28826e(0x1a2)]),_0x54af93=void 0x0!==_0x5899ca[_0x28826e(0x1a2)]?[_0x3d0e71[_0x28826e(0x1ed)][_0x5899ca[_0x28826e(0x1a2)]]]:_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x260)](_0x99749d=>_0x28826e(0x248)==_0x99749d[_0x28826e(0x283)]),_0x5ab239=_0x54af93[_0x28826e(0x1d3)](_0x5a62c1=>_0x3d0e71[_0x28826e(0x1ed)][_0x28826e(0x1be)](_0x5a62c1));if(!_0x12df6a||_0x28826e(0x209)==_0x12df6a[_0x28826e(0x1c1)][_0x28826e(0x2e2)][_0x28826e(0x273)])return void _0x5ab239[_0x28826e(0x2d2)](_0x392ff2=>_0x3d0e71[_0x28826e(0x19e)](_0x392ff2,_0x28826e(0x262)));_0x5ab239[_0x28826e(0x2d2)](_0x507581=>_0x3d0e71[_0x28826e(0x19e)](_0x507581,_0x28826e(0x285)));const _0x296780=_0x16e85b({'editor':_0x43bde6,'reply':_0x3d0e71,'interaction':_0x1732bf,'groups':_0x54af93,'transform':!0x0,'documentCompare':_0x46e369,'documentCompareOptions':{'anchor':_0x28826e(0x21f),'markDeletions':!0x1}});let _0x5f04fb;_0x12df6a&&this[_0x28826e(0x177)](_0x12df6a[_0x28826e(0x1c1)]),_0x43bde6[_0x28826e(0x1a3)][_0x28826e(0x20e)](_0x48354f=>{const _0x596dae=_0x28826e;_0x5f04fb=_0x48354f[_0x596dae(0x2d5)];for(const _0x38e915 of _0x296780)_0x38e915[_0x596dae(0x1f4)]=_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x267)][_0x596dae(0x2d1)],_0x21105c(_0x43bde6,_0x38e915),_0x48354f[_0x596dae(0x2d5)][_0x596dae(0x294)](_0x38e915),_0x43bde6[_0x596dae(0x1a3)][_0x596dae(0x2eb)](_0x38e915);}),this[_0x28826e(0x1a7)][_0x28826e(0x17b)](_0x5f04fb,{'interactionId':_0x1732bf['id'],'replyId':_0x3d0e71['id'],'indexes':_0x5ab239[_0x28826e(0x258)]()}),this[_0x28826e(0x2a2)](_0x3d0e71);}[_0x51392f(0x2bd)](_0x72c3df){const _0x4926ba=_0x51392f,{reply:_0x228591}=this[_0x4926ba(0x181)](_0x72c3df[_0x4926ba(0x29b)]);_0x228591[_0x4926ba(0x19e)](_0x72c3df[_0x4926ba(0x1a2)],_0x4926ba(0x247));}[_0x51392f(0x2a0)](_0xf2d8c3,_0x435992){const _0x28c441=_0x51392f;if(!this[_0x28c441(0x1bc)])return;const {reply:_0x3f065a}=this[_0x28c441(0x181)](_0xf2d8c3),_0x4f70aa=_0x3f065a[_0x28c441(0x2cc)]({'showDiff':this[_0x28c441(0x1ec)]});let _0x1a85b8,_0x56dd41;if(void 0x0!==_0x435992?(_0x56dd41=_0x4f70aa[_0x28c441(0x1e4)](_0x245ea4=>_0x245ea4[_0x28c441(0x2d8)]==_0x435992),_0x1a85b8=_0x56dd41?.[_0x28c441(0x2d8)]):(_0x56dd41=_0x4f70aa[0x0],_0x1a85b8=_0x56dd41[_0x28c441(0x2d8)]),this[_0x28c441(0x2a5)]?.[_0x28c441(0x29b)]==_0xf2d8c3&&this[_0x28c441(0x2a5)]?.[_0x28c441(0x1a2)]==_0x1a85b8)return;const _0x20123e=this[_0x28c441(0x1b7)](_0xf2d8c3,_0x3f065a,_0x56dd41);if(!_0x20123e)return void this[_0x28c441(0x1bc)][_0x28c441(0x16b)]();this[_0x28c441(0x2a5)]={'replyId':_0xf2d8c3,'partIndex':_0x1a85b8},this[_0x28c441(0x177)](_0x20123e,!0x0);const _0x1eb93e=this[_0x28c441(0x2b8)](_0xf2d8c3,_0x1a85b8,_0x28c441(0x1f3));this[_0x28c441(0x1bc)][_0x28c441(0x298)]({'part':_0x56dd41,'renderingStrategy':_0x28c441(0x1d7)}),this[_0x28c441(0x1bc)][_0x28c441(0x189)]({'index':_0x1a85b8,'title':_0x534e0f(this[_0x28c441(0x1b8)][_0x28c441(0x215)],_0x28c441(0x186),(_0x1a85b8+0x1)[_0x28c441(0x17e)]()),'showRotator':null!==_0x1eb93e,'ranges':[_0x20123e],'areActionsDisabled':_0x3f065a[_0x28c441(0x26d)]}),this[_0x28c441(0x1bc)][_0x28c441(0x250)](_0x28c441(0x248)),this[_0x28c441(0x1ba)][_0x28c441(0x2a6)](_0xf2d8c3,_0x1a85b8),this[_0x28c441(0x1ba)][_0x28c441(0x28b)]({'id':_0xf2d8c3,'index':_0x1a85b8,'isActive':!0x0});}[_0x51392f(0x2b8)](_0x11cfea,_0x5c5e75,_0x432de6){const _0xf7788d=_0x51392f,{reply:_0x267e9b}=this[_0xf7788d(0x181)](_0x11cfea),_0x1ce0f1=_0x267e9b[_0xf7788d(0x2cc)]({'showDiff':this[_0xf7788d(0x1ec)]});if(0x1==_0x1ce0f1[_0xf7788d(0x17a)])return null;const _0x18d93c=_0x1ce0f1[_0xf7788d(0x23f)](_0x41e72d=>_0x41e72d[_0xf7788d(0x2d8)]==_0x5c5e75),_0x38b00e=_0xf7788d(0x1f3)==_0x432de6?0x1:-0x1;let _0x3c02aa=_0x1ce0f1['at']((_0x18d93c+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x2ba79d=_0x1ce0f1[_0x3c02aa];for(;!this[_0xf7788d(0x1b7)](_0x11cfea,_0x267e9b,_0x2ba79d);){if(_0x3c02aa=_0x1ce0f1['at']((_0x3c02aa+_0x38b00e)%_0x1ce0f1[_0xf7788d(0x17a)])[_0xf7788d(0x2d8)],_0x3c02aa===_0x18d93c)return null;_0x2ba79d=_0x1ce0f1[_0x3c02aa];}return _0x3c02aa;}[_0x51392f(0x1b7)](_0x31b8f3,_0x1b6f55,_0x3b8ea7){const _0x13fd27=_0x51392f,_0xad9fb4=_0x1b6f55[_0x13fd27(0x1ed)];if(!_0x3b8ea7[_0x13fd27(0x266)])return null;const _0x378327=_0xad9fb4[_0x13fd27(0x1e4)](_0x34f8ec=>_0x34f8ec[_0x13fd27(0x2d8)]==_0x3b8ea7[_0x13fd27(0x2d8)]);if(_0x13fd27(0x248)!==_0x378327?.[_0x13fd27(0x283)])return null;const _0x5e6ca6=this[_0x13fd27(0x1ef)](_0x31b8f3,_0x3b8ea7[_0x13fd27(0x2d8)]);if(!_0x5e6ca6)return null;const {range:_0x590137,currentIndex:_0x589714}=_0x5e6ca6;return _0x13fd27(0x209)==_0x590137[_0x13fd27(0x2e2)][_0x13fd27(0x273)]?(_0x1b6f55[_0x13fd27(0x19e)](_0x589714,_0x13fd27(0x262)),null):_0x5e6ca6[_0x13fd27(0x1c1)];}[_0x51392f(0x1ef)](_0x33248b,_0x53feb3){const _0x529c5b=_0x51392f,_0x57b879=_0x3d3109(this[_0x529c5b(0x1b8)]),{reply:_0x28d259,interaction:_0x3f7653}=this[_0x529c5b(0x181)](_0x33248b),_0x19c0c4=_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x260)](_0x5125ff=>_0x529c5b(0x248)==_0x5125ff[_0x529c5b(0x283)]),_0x350583=_0x19c0c4[_0x529c5b(0x1d3)](_0x30f78f=>_0x28d259[_0x529c5b(0x1ed)][_0x529c5b(0x1be)](_0x30f78f));void 0x0===_0x53feb3&&(_0x53feb3=_0x350583[0x0]);const _0x32480e=_0x350583[_0x529c5b(0x1be)](_0x53feb3);if(-0x1==_0x32480e)return null;const _0x4a50ed=_0x19c0c4[_0x32480e],_0x2d2984=new _0x35a8ec([]),_0x330b2b=new _0x35a8ec([]);for(const _0x4f2f84 of _0x4a50ed[_0x529c5b(0x1fd)])if(_0x529c5b(0x1d4)!=_0x4f2f84[_0x529c5b(0x1e2)]&&_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x4f2f84[_0x529c5b(0x183)][_0x529c5b(0x222)](!0x0)),_0x529c5b(0x1a0)!=_0x4f2f84[_0x529c5b(0x1e2)]){const _0x5016f6=_0xd557f5(_0x49e951=>_0x297bf6(_0x49e951,_0x529c5b(0x286))==_0x4f2f84['id'],_0x28d259[_0x529c5b(0x168)],!0x0);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x5016f6[_0x529c5b(0x222)](!0x0));}if(0x0==_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x17a)]){if(_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)]){const _0x264ae4=_0x1e9eb0(_0x529c5b(0x286),_0x4a50ed[_0x529c5b(0x1fd)][0x0][_0x529c5b(0x1fc)],_0x28d259[_0x529c5b(0x168)]);_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x201)](_0x264ae4[_0x529c5b(0x222)](!0x0)),_0x264ae4[_0x529c5b(0x2aa)]&&(_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x264ae4[_0x529c5b(0x2aa)][_0x529c5b(0x222)](!0x0)));}else{const _0x1e5845=_0x28d259[_0x529c5b(0x168)][_0x529c5b(0x1da)][0x0];if(!_0x1e5845)return null;_0x2d2984[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0)),_0x330b2b[_0x529c5b(0x1da)][_0x529c5b(0x279)](_0x1e5845[_0x529c5b(0x222)](!0x0));}}const _0x363706=_0x3f7653[_0x529c5b(0x171)](),_0xb5c5aa=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x363706[_0x529c5b(0x21a)]),_0x5afb7c=_0x330a70(_0x2d2984),_0x58e16a=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x384792=_0x57b879[_0x529c5b(0x1a8)][_0x529c5b(0x218)](_0x5afb7c),_0x4ebcad=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x25e)](_0x58e16a,0x0),_0x15cee4=_0x330a70(_0x330b2b),_0x4f814d={'anchor':_0x4ebcad,'markDeletions':!0x1},_0x1962eb=_0x57b879[_0x529c5b(0x1d1)][_0x529c5b(0x182)](_0x4a99e6)[_0x529c5b(0x230)](_0x5afb7c,_0x15cee4,_0x4f814d)[_0x529c5b(0x1ad)]();if(!_0x1962eb[_0x529c5b(0x17a)])return null;_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x20e)](_0x50bad1=>{const _0xa734c5=_0x529c5b;for(const _0x2d068b of _0x1962eb)if(_0xa734c5(0x192)==_0x2d068b[_0xa734c5(0x1e2)]){const _0x429d28=_0x2d068b[_0xa734c5(0x235)],_0x1e7405=_0x2d068b[_0xa734c5(0x227)],_0x5ec3a9=new _0x41f2fe(_0x429d28,_0x1e7405);_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x5ec3a9),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x5ec3a9);}else _0xa734c5(0x2cb)!==_0x2d068b[_0xa734c5(0x1e2)]&&(_0x2d068b[_0xa734c5(0x1f4)]=null,_0x2d068b[_0xa734c5(0x22f)]=!0x1,_0x50bad1[_0xa734c5(0x2d5)][_0xa734c5(0x294)](_0x2d068b),_0x57b879[_0xa734c5(0x1a3)][_0xa734c5(0x2eb)](_0x2d068b));});const _0x3c72b8=_0x9507b(_0x57b879,_0x1962eb,_0x58e16a);_0x3c2280(_0x57b879[_0x529c5b(0x1a3)],_0x3c72b8);const _0x195fb7=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5712f1=_0x3c72b8[_0x529c5b(0x26e)]()[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x5c0ae1=[];let _0x4fedab=_0x58e16a,_0x42ffd5=_0x384792;for(let _0x59912b=0x0;_0x59912b<_0x5712f1[_0x529c5b(0x17a)];_0x59912b++){const _0x564914=_0x4fedab[_0x529c5b(0x166)]-_0x5712f1[_0x59912b];_0x5c0ae1[_0x59912b]=_0x42ffd5[_0x529c5b(0x166)]-_0x564914,_0x4fedab=_0x4fedab[_0x529c5b(0x295)](_0x5712f1[_0x59912b]),_0x42ffd5=_0x42ffd5[_0x529c5b(0x295)](_0x5c0ae1[_0x59912b]);}const _0x277edb=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x195fb7),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x384792,_0x5c0ae1)),_0x4f0fb6=_0x384792[_0x529c5b(0x28c)](0x0)[_0x529c5b(0x1f9)](_0x5eb965),_0x23d540=Array[_0x529c5b(0x2bf)](_0xb5c5aa[_0x529c5b(0x243)]())[_0x529c5b(0x1e4)](_0x41be13=>_0x41be13[_0x529c5b(0x1f9)](_0x5eb965)==_0x4f0fb6)[_0x529c5b(0x18a)](),_0x3889de=_0x277edb[_0x529c5b(0x2b1)][_0x529c5b(0x25d)][_0x529c5b(0x258)](),_0x2743a2=_0x277edb[_0x529c5b(0x2bb)][_0x529c5b(0x25d)][_0x529c5b(0x258)]();_0x3889de[0x0]=_0x23d540[0x0]+_0x3889de[0x0],_0x2743a2[0x0]=_0x23d540[0x0]+_0x2743a2[0x0];let _0x4e7db4=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x2c6)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x3889de),_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x27d)](_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x17f)](),_0x2743a2));const _0x384641=_0x57b879[_0x529c5b(0x1a3)][_0x529c5b(0x267)][_0x529c5b(0x1b0)][_0x529c5b(0x1ad)](_0x363706[_0x529c5b(0x2d1)]);for(const _0x392883 of _0x384641)_0x4e7db4=_0x1173c7[_0x529c5b(0x23d)](_0x4e7db4[_0x529c5b(0x211)](_0x392883));return{'range':_0x4e7db4,'currentIndex':_0x53feb3};}[_0x51392f(0x280)](_0x3d373e){const _0x4e6aa1=_0x51392f;if(!_0x3d373e[_0x4e6aa1(0x1d1)][_0x4e6aa1(0x296)](_0x4e6aa1(0x2be)))return;const _0x30968c=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x2e0)),_0x3737a7=_0x3d373e[_0x4e6aa1(0x163)][_0x4e6aa1(0x182)](_0x4e6aa1(0x24a));this[_0x4e6aa1(0x161)](_0x30968c,_0x4e6aa1(0x1e8),(_0x40fe44,_0x4e4422,_0x261b56)=>{const _0x1db024=_0x4e6aa1,_0x58862e=this[_0x1db024(0x1a7)][_0x1db024(0x182)](_0x4e4422);if(!_0x58862e)return;const _0x1601f6=this[_0x1db024(0x25a)][_0x1db024(0x21e)](_0x58862e[_0x1db024(0x1db)])[_0x1db024(0x16a)](_0x58862e[_0x1db024(0x29b)]);_0x58862e[_0x1db024(0x221)][_0x1db024(0x2d2)](_0x41348b=>_0x1601f6[_0x1db024(0x19e)](_0x41348b,_0x1db024(0x248))),this[_0x1db024(0x1a7)][_0x1db024(0x162)](_0x4e4422),this[_0x1db024(0x1a7)][_0x1db024(0x17b)](_0x261b56,_0x58862e);}),this[_0x4e6aa1(0x161)](_0x3737a7,_0x4e6aa1(0x1e8),(_0x408029,_0x257ac5,_0x34d799)=>{const _0x2ce3f3=_0x4e6aa1,_0x4b7bcc=this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x182)](_0x257ac5);if(!_0x4b7bcc)return;const _0x4310a9=this[_0x2ce3f3(0x25a)][_0x2ce3f3(0x21e)](_0x4b7bcc[_0x2ce3f3(0x1db)])[_0x2ce3f3(0x16a)](_0x4b7bcc[_0x2ce3f3(0x29b)]);_0x4b7bcc[_0x2ce3f3(0x221)][_0x2ce3f3(0x2d2)](_0x114404=>_0x4310a9[_0x2ce3f3(0x19e)](_0x114404,_0x2ce3f3(0x285))),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x162)](_0x257ac5),this[_0x2ce3f3(0x1a7)][_0x2ce3f3(0x17b)](_0x34d799,_0x4b7bcc);});}async[_0x51392f(0x174)](_0x4580d1){const _0x166768=_0x51392f;this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x296)](_0x166768(0x238))&&this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x166768(0x238))[_0x166768(0x16b)](),(this[_0x166768(0x1b8)][_0x166768(0x1d1)][_0x166768(0x182)](_0x39f63c)[_0x166768(0x1c2)][_0x166768(0x251)](_0x166768(0x1ac)),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x1d7)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x0),await this[_0x166768(0x277)]());try{await this[_0x166768(0x2ba)][_0x166768(0x22b)](_0x4580d1)[_0x166768(0x23b)](),await this[_0x166768(0x2a8)](_0x4580d1),this[_0x166768(0x2b4)]('\x20'),await this[_0x166768(0x25a)][_0x166768(0x180)](_0x4580d1,this[_0x166768(0x293)][_0x166768(0x244)]),this[_0x166768(0x25a)][_0x166768(0x234)]()&&this[_0x166768(0x1af)]();}catch(_0xeb460d){this[_0x166768(0x1ba)][_0x166768(0x2ae)]({'errorMessage':_0x534e0f(this[_0x166768(0x1b8)][_0x166768(0x215)],_0x166768(0x282)),'id':_0x4580d1}),this[_0x166768(0x271)](new _0x2bbafa(_0x166768(0x288),this,{'error':_0xeb460d}));}finally{this[_0x166768(0x1ba)][_0x166768(0x196)](),this[_0x166768(0x1ba)][_0x166768(0x2e4)](_0x166768(0x26c)),this[_0x166768(0x1ba)][_0x166768(0x1aa)](!0x1);}}async[_0x51392f(0x204)](){const _0x84ef70=_0x51392f,_0x282fd2=this[_0x84ef70(0x2ba)][_0x84ef70(0x213)](this[_0x84ef70(0x16e)](),{'limit':0x1,'sortBy':_0x84ef70(0x170)});try{const _0x547354=await _0x282fd2[_0x84ef70(0x2ea)]();return _0x547354[_0x84ef70(0x17a)]?_0x547354[0x0]['id']:_0x84ef70(0x1a0);}catch(_0x94627f){return this[_0x84ef70(0x1ba)][_0x84ef70(0x2ae)]({'errorMessage':_0x534e0f(this[_0x84ef70(0x1b8)][_0x84ef70(0x215)],_0x84ef70(0x282)),'id':_0x1837bf()}),this[_0x84ef70(0x271)](new _0x2bbafa(_0x84ef70(0x1a1),this,{'error':_0x94627f})),this[_0x84ef70(0x1ba)][_0x84ef70(0x1aa)](!0x1),this[_0x84ef70(0x1ba)][_0x84ef70(0x27b)](),null;}}[_0x51392f(0x1cd)](_0x2a0aca){const _0x3b3129=_0x51392f;this[_0x3b3129(0x25a)]['id']===_0x2a0aca&&this[_0x3b3129(0x2a8)]();}[_0x51392f(0x1af)](){const _0x504046=_0x51392f;this[_0x504046(0x25a)]?.[_0x504046(0x20c)](_0x534e0f(this[_0x504046(0x1b8)][_0x504046(0x215)],_0x504046(0x20f)));}async[_0x51392f(0x290)](){const _0x1db34d=_0x51392f,_0x4d6c75=this[_0x1db34d(0x293)][_0x1db34d(0x24c)]();this[_0x1db34d(0x25a)]?.[_0x1db34d(0x224)](_0x4d6c75),this[_0x1db34d(0x1af)]();}[_0x51392f(0x20b)](){const _0x1b419b=_0x51392f;this[_0x1b419b(0x25a)]?.[_0x1b419b(0x2ce)]();}[_0x51392f(0x200)](){const _0x1fe5ff=_0x51392f;this[_0x1fe5ff(0x1ba)][_0x1fe5ff(0x200)]();}async[_0x51392f(0x2d4)](){const _0x49038c=_0x51392f;await this[_0x49038c(0x2a8)]();}async[_0x51392f(0x25b)]({message:_0x1d1483,attributes:_0x3978de}){const _0x544cf8=_0x51392f;await this[_0x544cf8(0x274)]({'userMessage':_0x1d1483,'attributes':_0x3978de});}[_0x51392f(0x16e)](){const _0x2ca150=_0x51392f,_0x2894e6=this[_0x2ca150(0x1b8)][_0x2ca150(0x270)][_0x2ca150(0x182)](_0x2ca150(0x2dd));if(!_0x2894e6)throw new _0x2bbafa(_0x2ca150(0x278),this);return _0x2894e6;}async[_0x51392f(0x2a8)](_0x1d8ee3){const _0x281582=_0x51392f;try{this[_0x281582(0x1ba)][_0x281582(0x265)](),await this[_0x281582(0x29e)](_0x1d8ee3);}catch(_0x2002fd){this[_0x281582(0x1ba)][_0x281582(0x2ae)]({'errorMessage':_0x534e0f(this[_0x281582(0x1b8)][_0x281582(0x215)],_0x281582(0x2b0)),'id':_0x1d8ee3||_0x1837bf()}),console[_0x281582(0x1f2)](_0x2002fd),this[_0x281582(0x25a)]=void 0x0,this[_0x281582(0x1ba)][_0x281582(0x27b)]();}}async[_0x51392f(0x29e)](_0x2d152f){const _0x1fd608=_0x51392f;let _0xadffed;this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x296)](_0x1fd608(0x238))&&this[_0x1fd608(0x1b8)][_0x1fd608(0x1d1)][_0x1fd608(0x182)](_0x1fd608(0x238))[_0x1fd608(0x16b)](),_0x2d152f||!this[_0x1fd608(0x25a)]?_0xadffed=this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x198)):this[_0x1fd608(0x1ba)][_0x1fd608(0x27a)]&&(_0xadffed=this[_0x1fd608(0x25a)][_0x1fd608(0x1c3)]['id']),await this[_0x1fd608(0x277)]();const _0x4d1b4b=this[_0x1fd608(0x16e)](),_0x493f25=_0x2d152f||_0x1837bf();this[_0x1fd608(0x25a)]=new _0x5c1c02({'connector':this[_0x1fd608(0x2ba)],'chatModels':this[_0x1fd608(0x1d8)],'selectedModelId':_0xadffed,'conversationId':_0x493f25,'group':_0x4d1b4b,'getEditor':()=>_0x3d3109(this[_0x1fd608(0x1b8)]),'isFromHistory':!!_0x2d152f}),this[_0x1fd608(0x25a)][_0x1fd608(0x23e)](_0x1fd608(0x25f),_0x1fd608(0x2bc))['to'](this),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2a7),(_0x275913,_0x4c25b0)=>{const _0x414bfd=_0x1fd608;this[_0x414bfd(0x1ba)][_0x414bfd(0x199)](_0x4c25b0),this[_0x414bfd(0x1ba)][_0x414bfd(0x25c)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x26f)](),this[_0x414bfd(0x1ba)][_0x414bfd(0x1fe)](),_0x2d152f||(this[_0x414bfd(0x1ba)][_0x414bfd(0x24d)](),this[_0x414bfd(0x1af)]());}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1c0),(_0x29af94,_0x38c38a)=>{const _0x3a61d6=_0x1fd608;this[_0x3a61d6(0x1ba)][_0x3a61d6(0x27e)](_0x38c38a[_0x3a61d6(0x2cf)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x23c),(_0x50cf82,_0x2f3cb7)=>{const _0x53c757=_0x1fd608;this[_0x53c757(0x1ba)][_0x53c757(0x245)](_0x2f3cb7);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x214),()=>{const _0x245e9f=_0x1fd608,_0x221d9f=this[_0x245e9f(0x1ba)][_0x245e9f(0x1ee)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x245e9f(0x1ba)][_0x245e9f(0x185)](_0x221d9f);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x26b),()=>{const _0x196152=_0x1fd608,_0x4da855=this[_0x196152(0x1ba)][_0x196152(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x196152(0x1ba)][_0x196152(0x185)](_0x4da855);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x188),(_0x184058,_0x454767)=>{const _0xac5343=_0x1fd608;this[_0xac5343(0x1ba)][_0xac5343(0x2b7)](_0x454767,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x220),(_0x2474e3,_0x2b436a)=>{const _0xf07667=_0x1fd608;this[_0xf07667(0x1ba)][_0xf07667(0x2b7)](_0x2b436a,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2bc),()=>{const _0x367e2b=_0x1fd608;this[_0x367e2b(0x1ba)][_0x367e2b(0x264)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x229),async()=>{const _0x300bf2=_0x1fd608;await this[_0x300bf2(0x1ba)][_0x300bf2(0x1e5)]();}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c0),(_0x21297f,_0x1be87a)=>{const _0x54077d=_0x1fd608;this[_0x54077d(0x1ba)][_0x54077d(0x2a4)](_0x1be87a['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x261),(_0x39aa3e,_0x3de34a,_0x34b197)=>{const _0x5de465=_0x1fd608;this[_0x5de465(0x2b4)](_0x3de34a,_0x34b197);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x191),(_0x57c272,_0x39f8fc)=>{const _0x1fb378=_0x1fd608;_0x1fb378(0x1cc)===_0x39f8fc[_0x1fb378(0x1e2)]?this[_0x1fb378(0x1ba)][_0x1fb378(0x165)](_0x39f8fc):this[_0x1fb378(0x1ba)][_0x1fb378(0x23a)](_0x39f8fc);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1b3),async(_0x4931b4,_0x2dfe22)=>{const _0x55d17b=_0x1fd608;await this[_0x55d17b(0x1d0)]({'reply':_0x2dfe22});}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x17c),(_0x511620,{reply:_0x3d3608,index:_0x22f73f,state:_0x155ae0})=>{const _0x6f2717=_0x1fd608;this[_0x6f2717(0x1ba)][_0x6f2717(0x16d)]({'id':_0x3d3608['id'],'index':_0x22f73f,'state':_0x155ae0}),this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x29b)][_0x6f2717(0x19b)](_0x3d3608['id'])&&this[_0x6f2717(0x2a5)]?.[_0x6f2717(0x1a2)]==_0x22f73f&&this[_0x6f2717(0x1bc)]?.[_0x6f2717(0x250)](_0x155ae0);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x28e),(_0x17c7a5,_0x33725b)=>{const _0x4aebfc=_0x1fd608;if(this[_0x4aebfc(0x1ba)][_0x4aebfc(0x2cd)](_0x33725b[_0x4aebfc(0x18d)],_0x33725b[_0x4aebfc(0x257)]),_0x4aebfc(0x1b1)===_0x33725b[_0x4aebfc(0x18d)][_0x4aebfc(0x1e2)]){const _0x471cb4=[..._0x3d3109(this[_0x4aebfc(0x1b8)])[_0x4aebfc(0x1a3)][_0x4aebfc(0x267)][_0x4aebfc(0x1b1)][_0x4aebfc(0x17d)]()];this[_0x4aebfc(0x293)][_0x4aebfc(0x233)](_0x471cb4,_0x4aebfc(0x1ff)+this[_0x4aebfc(0x25a)]?.['id']);}}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2c4),(_0x40edf2,_0x5ab089)=>{const _0x34f51c=_0x1fd608;this[_0x34f51c(0x1ba)][_0x34f51c(0x1c7)](_0x5ab089[_0x34f51c(0x287)]),_0x34f51c(0x24e)==_0x5ab089[_0x34f51c(0x287)]&&this[_0x34f51c(0x20b)](),_0x34f51c(0x1b1)===_0x5ab089[_0x34f51c(0x1e2)]&&this[_0x34f51c(0x293)][_0x34f51c(0x179)](_0x34f51c(0x1ff)+this[_0x34f51c(0x25a)]?.['id']);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f5),(_0xecc1e8,_0x32ee1a)=>{const _0x5051ed=_0x1fd608;this[_0x5051ed(0x1ba)][_0x5051ed(0x2c2)](_0x32ee1a[_0x5051ed(0x18d)][_0x5051ed(0x287)],_0x32ee1a[_0x5051ed(0x257)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2e7),(_0x243fc7,_0x17874d)=>{const _0x5eb58c=_0x1fd608;this[_0x5eb58c(0x1ba)][_0x5eb58c(0x19f)](_0x17874d[_0x5eb58c(0x29f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x216),(_0x4ca8b0,_0x4ed5d1)=>{const _0x38d3c8=_0x1fd608;this[_0x38d3c8(0x1ba)][_0x38d3c8(0x1e3)](_0x4ed5d1[_0x38d3c8(0x187)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1ce),(_0x3586da,_0xbbc7d4)=>{const _0x27d237=_0x1fd608;this[_0x27d237(0x1ba)][_0x27d237(0x28a)](_0xbbc7d4[_0x27d237(0x1d5)],_0xbbc7d4[_0x27d237(0x239)],_0xbbc7d4[_0x27d237(0x202)],_0xbbc7d4[_0x27d237(0x24f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x2d9),(_0x5e3d4c,_0x4107af)=>{const _0x2e88ff=_0x1fd608;this[_0x2e88ff(0x1ba)][_0x2e88ff(0x2af)](_0x4107af[_0x2e88ff(0x1d5)],_0x4107af[_0x2e88ff(0x1ae)],_0x4107af[_0x2e88ff(0x28f)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x226),(_0x35d27c,_0x1d4069)=>{const _0x5a4071=_0x1fd608;this[_0x5a4071(0x1ba)][_0x5a4071(0x2c5)](_0x1d4069);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x242),async(_0x345580,_0x4afd1b)=>{const _0x15fedc=_0x1fd608,_0x44cb0f=(await this[_0x15fedc(0x1d8)][_0x15fedc(0x206)]())[_0x15fedc(0x1e4)](_0x1511d0=>_0x1511d0['id']===_0x4afd1b[_0x15fedc(0x1c3)]?.['id'])||null;this[_0x15fedc(0x1ba)][_0x15fedc(0x178)](_0x44cb0f,_0x4afd1b[_0x15fedc(0x249)]);}),this[_0x1fd608(0x25a)]['on'](_0x1fd608(0x1f2),(_0x46e9f5,{error:_0x51c50d,interactionId:_0x1c48a7,fileName:_0x52cfcc,url:_0x303218,sourceId:_0x424a18,sourceLabel:_0x44bca})=>{const _0x305a8d=_0x1fd608,_0x221243=_0x1c48a7?_0x1c48a7+':'+_0x1837bf():_0x1837bf();_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b5))?this[_0x305a8d(0x1ba)][_0x305a8d(0x292)]({'staticMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1f1)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1a1))||_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2d0))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2b0)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2ec))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x16c),_0x52cfcc),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1b9))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1b2),_0x303218),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x175))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2c3)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x212))?this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1bf)),'id':_0x221243}):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2b9))?(_0x424a18&&this[_0x305a8d(0x1ba)][_0x305a8d(0x1dd)](_0x424a18),this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x22d),_0x44bca||_0x305a8d(0x239)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1e7))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x253)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x16f))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x217)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x2e9))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x2d6)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x1d6))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x1fa)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x19d))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x263)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):_0x51c50d[_0x305a8d(0x1a4)][_0x305a8d(0x1c4)](_0x305a8d(0x167))?(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x269)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d)):(this[_0x305a8d(0x1ba)][_0x305a8d(0x2ae)]({'errorMessage':_0x534e0f(this[_0x305a8d(0x1b8)][_0x305a8d(0x215)],_0x305a8d(0x197)),'id':_0x221243}),this[_0x305a8d(0x271)](_0x51c50d));}),await this[_0x1fd608(0x25a)][_0x1fd608(0x27c)](this[_0x1fd608(0x1b8)][_0x1fd608(0x270)][_0x1fd608(0x182)](_0x1fd608(0x29a))),_0x2d152f||await this[_0x1fd608(0x25a)][_0x1fd608(0x2b1)]();}async[_0x51392f(0x274)]({userMessage:_0x384fd6,attributes:_0x34ba22}){const _0x446968=_0x51392f;if(!this[_0x446968(0x25a)])throw new _0x2bbafa(_0x446968(0x284));if(this[_0x446968(0x25a)][_0x446968(0x2a1)]()){const _0x364ac7=await this[_0x446968(0x293)][_0x446968(0x1e0)]();await this[_0x446968(0x25a)][_0x446968(0x1df)](_0x364ac7);}this[_0x446968(0x25a)]['id']&&this[_0x446968(0x25a)][_0x446968(0x2a3)]&&await this[_0x446968(0x25a)][_0x446968(0x289)]({'userMessage':_0x384fd6,'attributes':_0x34ba22});}[_0x51392f(0x268)](){const _0xef8c37=_0x51392f;console[_0xef8c37(0x26a)](_0xef8c37(0x1c5));}[_0x51392f(0x203)](_0x514739){const _0x1863dc=_0x51392f;this[_0x1863dc(0x1ba)][_0x1863dc(0x2da)](_0x514739);}[_0x51392f(0x271)](_0x3ed67a){const _0x14f70d=_0x51392f;_0x640bca(_0x3ed67a[_0x14f70d(0x1a4)]);}[_0x51392f(0x164)](_0x1a0b6e){const _0x21da86=_0x51392f;this[_0x21da86(0x25a)]?.[_0x21da86(0x19a)](_0x1a0b6e);}[_0x51392f(0x1cb)](){const _0x4acc99=_0x51392f;this[_0x4acc99(0x25a)]?.[_0x4acc99(0x207)]();}[_0x51392f(0x1ea)](){const _0x2bc608=_0x51392f;this[_0x2bc608(0x25a)]?.[_0x2bc608(0x28d)]();}[_0x51392f(0x181)](_0x5ad51b){const _0x2abedd=_0x51392f,[_0x4d2707,_0x561a71]=_0x5ad51b[_0x2abedd(0x1bb)](':'),_0x54d4e5=this[_0x2abedd(0x25a)][_0x2abedd(0x21e)](_0x4d2707),_0x32caeb=_0x54d4e5[_0x2abedd(0x16a)](_0x561a71);return{'interaction':_0x54d4e5,'reply':_0x32caeb};}[_0x51392f(0x177)](_0x5eefad,_0x91ffd0=!0x1){const _0x950d32=_0x51392f,_0x1f0b4d=_0x3d3109(this[_0x950d32(0x1b8)]),_0x49fdac={'target':_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1c2)][_0x950d32(0x275)][_0x950d32(0x1f6)](_0x1f0b4d[_0x950d32(0x2c1)][_0x950d32(0x1f7)][_0x950d32(0x21c)](_0x5eefad)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x91ffd0};_0x91ffd0&&(_0x49fdac[_0x950d32(0x2c7)]=!0x0),_0x494017(_0x49fdac);}[_0x51392f(0x2b4)](_0x494e49,_0x4a1558=!0x1){const _0x20e1f9=_0x51392f;this[_0x20e1f9(0x1ba)][_0x20e1f9(0x261)](_0x494e49||_0x534e0f(this[_0x20e1f9(0x1b8)][_0x20e1f9(0x215)],_0x20e1f9(0x2de)),_0x4a1558);}async[_0x51392f(0x1d0)]({reply:_0x3707df,renderingStrategy:_0x21b718}){const _0x454ef6=_0x51392f,{id:_0x3c7096,interactionId:_0x41be23,isDone:_0x26646c,type:_0x7b7dcb,parsedContent:_0x409010}=_0x3707df,_0x520abb=_0x41be23+':'+_0x3c7096;if(_0x454ef6(0x176)===_0x7b7dcb){const _0x44b900=_0x3707df[_0x454ef6(0x2cc)]({'showDiff':this[_0x454ef6(0x1ba)][_0x454ef6(0x2b3)]});await this[_0x454ef6(0x1ba)][_0x454ef6(0x22e)]({'id':_0x520abb,'parts':_0x44b900,'renderingStrategy':_0x21b718,'isDone':_0x26646c});}else _0x454ef6(0x1cc)===_0x7b7dcb&&await this[_0x454ef6(0x1ba)][_0x454ef6(0x1eb)]({'id':_0x520abb,'parsedContent':_0x409010,'renderingStrategy':_0x21b718,'isDone':_0x26646c});_0x26646c&&_0x3707df[_0x454ef6(0x281)][_0x454ef6(0x17a)]>0x0&&this[_0x454ef6(0x1ba)][_0x454ef6(0x27f)](_0x520abb,_0x3707df[_0x454ef6(0x281)]);}async[_0x51392f(0x277)](){const _0x5a1d84=_0x51392f,_0x3980e4=this[_0x5a1d84(0x25a)]?.[_0x5a1d84(0x1b6)];_0x3980e4&&(_0x3980e4[_0x5a1d84(0x194)](),this[_0x5a1d84(0x1ba)][_0x5a1d84(0x1b5)](_0x3980e4));}async[_0x51392f(0x276)](){const _0x215ddd=_0x51392f,_0x50a179=this[_0x215ddd(0x25a)]?.[_0x215ddd(0x1b6)];if(_0x50a179){for await(const _0x2619cb of _0x50a179[_0x215ddd(0x252)])await this[_0x215ddd(0x1d0)]({'reply':_0x2619cb,'renderingStrategy':_0x215ddd(0x1d7)});}}[_0x51392f(0x2a2)](_0x189fcc){const _0x5baa3=_0x51392f,_0x31e4da={'positiveCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x260)](_0x2de6ed=>_0x5baa3(0x285)===_0x2de6ed[_0x5baa3(0x283)])[_0x5baa3(0x17a)],'totalCount':_0x189fcc[_0x5baa3(0x1ed)][_0x5baa3(0x17a)],'modificationId':_0x189fcc['id']},_0x5189b3=this[_0x5baa3(0x25a)][_0x5baa3(0x21e)](_0x189fcc[_0x5baa3(0x1db)])[_0x5baa3(0x2c8)];_0x5189b3&&this[_0x5baa3(0x2ba)][_0x5baa3(0x2b6)](this[_0x5baa3(0x25a)]['id'],_0x5189b3,_0x31e4da);}[_0x51392f(0x2df)](_0x272a44){const _0x1172fa=_0x51392f;let _0x57aec3=null,_0xeb7aae=null;this['on'](_0x1172fa(0x25f),(_0x25e26b,_0x634325,_0xb852da)=>{const _0x312652=_0x1172fa;_0xb852da['id']!==_0x57aec3&&(_0x57aec3=_0xb852da['id'],_0xeb7aae=this[_0x312652(0x205)](_0xb852da)),_0x272a44(_0x634325,_0xeb7aae);});}[_0x51392f(0x205)](_0x297fd8){const _0x24d4c5=_0x51392f,_0x5019eb=this[_0x24d4c5(0x1ba)],_0x10b21f=()=>{const _0x147595=_0x24d4c5;_0x297fd8[_0x147595(0x18f)](),_0x297fd8[_0x147595(0x2ad)](),_0x5019eb[_0x147595(0x254)]();},_0x554314=()=>{const _0x1e72b2=_0x24d4c5;_0x297fd8[_0x1e72b2(0x22a)]&&(_0x297fd8[_0x1e72b2(0x22a)][_0x1e72b2(0x291)](),_0x297fd8[_0x1e72b2(0x22a)]=void 0x0);};return{'insertTextReply':(_0x55e754,_0x3995fe)=>{const _0x389ccb=_0x24d4c5;_0x554314(),_0x10b21f();const _0x1d06cd=_0x297fd8[_0x389ccb(0x22a)]=_0x297fd8[_0x389ccb(0x2ca)]({'type':_0x389ccb(0x1cc),'interactionId':_0x297fd8['id'],'content':_0x55e754,'id':_0x3995fe||_0x1837bf()});return _0x554314(),_0x1d06cd;},'insertCustomElement':async(_0x8a248e,_0x3196bf)=>(_0x554314(),_0x10b21f(),_0x5019eb[_0x24d4c5(0x1a6)](_0x8a248e,_0x3196bf||_0x1837bf())),'setLoadingMessage':_0x2598d9=>{const _0x51e90d=_0x24d4c5;_0x5019eb[_0x51e90d(0x185)](_0x2598d9);},'clearLoadingMessage':()=>{const _0x3ab352=_0x24d4c5;_0x5019eb[_0x3ab352(0x254)]();}};}}