@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.4

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.d.ts +8 -4
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2481b4=_0x1509;(function(_0x16753d,_0x13fb03){const _0x5c9994=_0x1509,_0x57ad06=_0x16753d();while(!![]){try{const _0x57fc08=parseInt(_0x5c9994(0x1b4))/0x1+-parseInt(_0x5c9994(0x1d4))/0x2*(-parseInt(_0x5c9994(0x1cd))/0x3)+-parseInt(_0x5c9994(0x1f7))/0x4+parseInt(_0x5c9994(0x1bc))/0x5+-parseInt(_0x5c9994(0x1ec))/0x6*(-parseInt(_0x5c9994(0x1ed))/0x7)+parseInt(_0x5c9994(0x1c7))/0x8*(-parseInt(_0x5c9994(0x1da))/0x9)+-parseInt(_0x5c9994(0x1e1))/0xa;if(_0x57fc08===_0x13fb03)break;else _0x57ad06['push'](_0x57ad06['shift']());}catch(_0x468c16){_0x57ad06['push'](_0x57ad06['shift']());}}}(_0xcf1c,0x1e324));import{ContextPlugin as _0x362306}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2e559f,AIEditing as _0x2b5af9}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5f9987}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xcf1c(){const _0x36f4f7=['hide','startsWith','_cleanupFakeVisualSelectionMarkerRemovalListener','1879010yOKIgd','_calculateDialogPosition','hideError','editing','view','show','high','getChangedMarkers','AIBalloon','$graveyard','left','6RMOTRR','1659707udpFiA','ck-ai-balloon\x20','ai-selection','_currentConfig','_showFakeVisualSelection','hideFakeVisualSelection','isEqual','fire','getVisible','once','516136ItFWli','Dialog','iconView','width','markers','locale','pluginName','isOfficialPlugin','max','rootName','document','showBlockingError','updatePosition','differ','close','ranges','_hideFakeVisualSelection','height','listenTo','getIntersection','round','map','getMarkersGroup','_calculateOptimalTopPosition','index','model','238786fQbloJ','headerView','get','_setupFakeVisualSelectionMarkerRemovalListener','_updateDialog','selectionRemoved','window','stopListening','161625zBcbuA','showFakeVisualSelection','AI_BALLOON_SELECTION_REMOVED_ERROR','end','_getSelectionElements','beforeDialogClosed','content','mainView','_isUpdatingMarkers','change','ai-balloon-','8nGhYMQ','bottom','bind','top','delegate','length','25386YjCNQU','open','isPremiumPlugin','label','context','requires','root','24MKPWxK','filter','getBoundingRect','ai-balloon-selection','isOpen','plugins','1522233YQgzxO','start','_showDialog','dialogClosed'];_0xcf1c=function(){return _0x36f4f7;};return _0xcf1c();}import{global as _0x181f64,Rect as _0x1adaf2,scrollViewportToShowTarget as _0x4fc274}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x4be4f2}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x562fd1}from'../aicore/utils/common-translations.js';function _0x1509(_0x37e29b,_0x5d29ca){const _0xcf1cc0=_0xcf1c();return _0x1509=function(_0x1509d0,_0x315a10){_0x1509d0=_0x1509d0-0x1ae;let _0x4cb095=_0xcf1cc0[_0x1509d0];return _0x4cb095;},_0x1509(_0x37e29b,_0x5d29ca);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x550ee4}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x550ee4,_0x2481b4(0x1dd),_0x2481b4(0x1b9)];const m=0xa;export class AIBalloon extends _0x362306{static get[_0x2481b4(0x1d2)](){return[_0x2b5af9];}static get[_0x2481b4(0x1fd)](){const _0x4fd687=_0x2481b4;return _0x4fd687(0x1e9);}static get[_0x2481b4(0x1fe)](){return!0x0;}static get[_0x2481b4(0x1cf)](){return!0x0;}[_0x2481b4(0x1d8)]=!0x1;[_0x2481b4(0x1f0)];[_0x2481b4(0x1c4)]=!0x1;[_0x2481b4(0x1ce)](_0x13c87b){const _0x440cac=_0x2481b4,{id:_0x264be6}=this[_0x440cac(0x1f0)]??{};this[_0x440cac(0x1f0)]=_0x13c87b;const {id:_0x3d8e06}=this[_0x440cac(0x1f0)];this[_0x440cac(0x1d8)]&&_0x264be6===_0x3d8e06?this[_0x440cac(0x1b8)]():this[_0x440cac(0x1dc)]();}[_0x2481b4(0x205)](){const _0x14e5de=_0x2481b4,_0x506e10=_0x4be4f2(this[_0x14e5de(0x1d1)])[_0x14e5de(0x1d9)][_0x14e5de(0x1b6)](_0x14e5de(0x1f8));_0x506e10[_0x14e5de(0x1d8)]&&this[_0x14e5de(0x1f0)]&&_0x506e10['id']===this[_0x14e5de(0x1f0)]['id']&&_0x506e10[_0x14e5de(0x1de)]();}[_0x2481b4(0x1b8)](){const _0x5ea496=_0x2481b4,_0x184da8=_0x4be4f2(this[_0x5ea496(0x1d1)])[_0x5ea496(0x1d9)][_0x5ea496(0x1b6)](_0x5ea496(0x1f8)),{icon:_0x5c6e65,title:_0x13de36}=this[_0x5ea496(0x1f0)];_0x184da8[_0x5ea496(0x1e5)]?.[_0x5ea496(0x1b5)]&&(_0x184da8[_0x5ea496(0x1e5)][_0x5ea496(0x1b5)][_0x5ea496(0x1d0)]=_0x13de36,_0x184da8[_0x5ea496(0x1e5)][_0x5ea496(0x1b5)][_0x5ea496(0x1f9)]&&_0x5c6e65&&(_0x184da8[_0x5ea496(0x1e5)][_0x5ea496(0x1b5)][_0x5ea496(0x1f9)][_0x5ea496(0x1c2)]=_0x5c6e65)),this[_0x5ea496(0x1c4)]=!0x0,this[_0x5ea496(0x1f1)](),this[_0x5ea496(0x1c4)]=!0x1,_0x184da8[_0x5ea496(0x1e5)]?.[_0x5ea496(0x203)]();}[_0x2481b4(0x1f1)](){const _0x53ee5b=_0x2481b4;this[_0x53ee5b(0x1d1)][_0x53ee5b(0x1d9)][_0x53ee5b(0x1b6)](_0x2b5af9)[_0x53ee5b(0x1bd)](this[_0x53ee5b(0x1f0)][_0x53ee5b(0x206)],_0x53ee5b(0x1c6)+this[_0x53ee5b(0x1f0)][_0x53ee5b(0x1b2)],!0x0,!0x0);}[_0x2481b4(0x207)](_0x490b7b){const _0xb469b8=_0x2481b4;this[_0xb469b8(0x1d1)][_0xb469b8(0x1d9)][_0xb469b8(0x1b6)](_0x2b5af9)[_0xb469b8(0x1f2)](_0xb469b8(0x1c6)+_0x490b7b);}[_0x2481b4(0x1dc)](){const _0x344a4b=_0x2481b4,_0x49928b=_0x4be4f2(this[_0x344a4b(0x1d1)])[_0x344a4b(0x1d9)][_0x344a4b(0x1b6)](_0x344a4b(0x1f8)),{id:_0x284b38,title:_0x110ba5,icon:_0x13bfb7,class:_0x170667,mainView:_0x5bf666}=this[_0x344a4b(0x1f0)];_0x5bf666[_0x344a4b(0x1cb)](..._0x550ee4)['to'](this),_0x49928b[_0x344a4b(0x1e6)]({'title':_0x110ba5,'icon':_0x13bfb7,'hasCloseButton':!0x0,'id':_0x284b38,'position':this[_0x344a4b(0x1e2)][_0x344a4b(0x1c9)](this),'className':_0x344a4b(0x1ee)+(_0x170667||''),'content':_0x5bf666,'onShow':_0x1d9c60=>{const _0x238e45=_0x344a4b;this[_0x238e45(0x1f1)](),this[_0x238e45(0x1b7)]();const _0x3f0280=this[_0x238e45(0x1c0)]();_0x3f0280&&_0x3f0280[0x0]&&_0x4fc274({'target':_0x3f0280[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x238e45(0x1d8)]=!0x0,_0x1d9c60[_0x238e45(0x1f6)](_0x238e45(0x1de),()=>{const _0xdccd75=_0x238e45;this[_0xdccd75(0x1f4)](_0xdccd75(0x1c1),{'id':_0x284b38});},{'priority':_0x238e45(0x1e7)});},'onHide':()=>{const _0x5267c1=_0x344a4b;this[_0x5267c1(0x207)](this[_0x5267c1(0x1f0)][_0x5267c1(0x1b2)]),this[_0x5267c1(0x1e0)](),this[_0x5267c1(0x1f4)](_0x5267c1(0x1dd),{'id':_0x284b38}),this[_0x5267c1(0x1d8)]=!0x1;}});}[_0x2481b4(0x1e2)](_0x23b6ac,_0x54e0b4){const _0x1b033b=_0x2481b4;if(!_0x54e0b4)return null;const _0x49549b=this[_0x1b033b(0x1c0)]();if(!_0x49549b||0x0===_0x49549b[_0x1b033b(0x1cc)])return{'left':Math[_0x1b033b(0x1ae)](_0x54e0b4[_0x1b033b(0x1eb)]+_0x54e0b4[_0x1b033b(0x1fa)]/0x2-_0x23b6ac[_0x1b033b(0x1fa)]/0x2),'top':Math[_0x1b033b(0x1ae)](_0x54e0b4[_0x1b033b(0x1ca)]+_0x54e0b4[_0x1b033b(0x208)]/0x2-_0x23b6ac[_0x1b033b(0x208)]/0x2)};const _0x1c9c47=Math[_0x1b033b(0x1ae)](_0x54e0b4[_0x1b033b(0x1eb)]+_0x54e0b4[_0x1b033b(0x1fa)]/0x2-_0x23b6ac[_0x1b033b(0x1fa)]/0x2),_0x1e3006=_0x49549b[_0x1b033b(0x1af)](_0xc2d4=>new _0x1adaf2(_0xc2d4)),_0x4f94ff=_0x23b6ac[_0x1b033b(0x208)];return{'left':_0x1c9c47,'top':this[_0x1b033b(0x1b1)](_0x1e3006,_0x4f94ff,_0x54e0b4)};}[_0x2481b4(0x1b1)](_0x2affb8,_0x2ca4fd,_0x309250){const _0x1e577b=_0x2481b4,_0x11b7ae=new _0x1adaf2(_0x181f64[_0x1e577b(0x1ba)]),_0x24205a=_0x2affb8[_0x1e577b(0x1af)](_0x365d9e=>_0x365d9e[_0x1e577b(0x1f5)]())[_0x1e577b(0x1d5)](_0x519a19=>_0x519a19),_0x571994=_0x1adaf2[_0x1e577b(0x1d6)](_0x24205a);if(!_0x571994)return Math[_0x1e577b(0x1ae)](_0x309250[_0x1e577b(0x1ca)]+_0x309250[_0x1e577b(0x208)]/0x2);const _0x45c626=_0x11b7ae[_0x1e577b(0x20a)](_0x571994);if(!_0x45c626)return Math[_0x1e577b(0x1ae)](_0x309250[_0x1e577b(0x1ca)]+_0x309250[_0x1e577b(0x208)]/0x2);const _0x52bf69=_0x309250[_0x1e577b(0x1f5)](),_0x3e130f=_0x52bf69&&_0x571994[_0x1e577b(0x208)]>_0x52bf69[_0x1e577b(0x208)],_0x1611dc=_0x45c626[_0x1e577b(0x1ca)],_0x4a5763=_0x45c626[_0x1e577b(0x1c8)];if(_0x3e130f){const _0x5dc831=(_0x52bf69||_0x11b7ae)[_0x1e577b(0x208)]/0x2-_0x2ca4fd/0x2,_0x29ef12=_0x1611dc-m-_0x309250[_0x1e577b(0x1ca)],_0x2e849d=_0x309250[_0x1e577b(0x1c8)]-_0x4a5763-m;return _0x29ef12>=_0x2ca4fd?Math[_0x1e577b(0x1ff)](m,_0x1611dc-_0x2ca4fd-m):_0x2e849d>=_0x2ca4fd?_0x4a5763+m:Math[_0x1e577b(0x1ff)](m,_0x5dc831);}const _0xd0d308=_0x1611dc-_0x2ca4fd,_0x56b931=_0x309250[_0x1e577b(0x1c8)]-_0x4a5763-m,_0x3b7e27=_0x1611dc-m-_0x309250[_0x1e577b(0x1ca)];let _0xb9b892;if(_0x56b931>=_0x2ca4fd)_0xb9b892=_0x4a5763+m;else{if(_0x3b7e27>=_0x2ca4fd)_0xb9b892=_0xd0d308-m;else _0xb9b892=_0x1611dc+_0x571994[_0x1e577b(0x208)]/0x2-_0x2ca4fd/0x2;}return _0xb9b892;}[_0x2481b4(0x1b7)](){const _0x20a3e4=_0x2481b4,_0x50b4c8=_0x4be4f2(this[_0x20a3e4(0x1d1)]);this[_0x20a3e4(0x209)](_0x50b4c8[_0x20a3e4(0x1b3)][_0x20a3e4(0x201)],_0x20a3e4(0x1c5),()=>{const _0x5115ed=_0x20a3e4;if(!this[_0x5115ed(0x1c4)]){for(const {name:_0x21997e,data:{newRange:_0x4072e4}}of _0x50b4c8[_0x5115ed(0x1b3)][_0x5115ed(0x201)][_0x5115ed(0x204)][_0x5115ed(0x1e8)]())if(_0x21997e[_0x5115ed(0x1df)](_0x2e559f+':')&&(_0x4072e4&&(_0x4072e4[_0x5115ed(0x1db)][_0x5115ed(0x1f3)](_0x4072e4[_0x5115ed(0x1bf)])||_0x5115ed(0x1ea)==_0x4072e4[_0x5115ed(0x1d3)][_0x5115ed(0x200)])||null==_0x4072e4)){const _0x420bf0=_0x562fd1(this[_0x5115ed(0x1d1)][_0x5115ed(0x1fc)],_0x5115ed(0x1be));this[_0x5115ed(0x1f0)][_0x5115ed(0x1c3)][_0x5115ed(0x202)](_0x420bf0),this[_0x5115ed(0x1f4)](_0x5115ed(0x1b9));}}});}[_0x2481b4(0x1e0)](){const _0x3684b1=_0x2481b4,_0x4cf6c2=_0x4be4f2(this[_0x3684b1(0x1d1)]);this[_0x3684b1(0x1f0)][_0x3684b1(0x1c3)][_0x3684b1(0x1e3)](),this[_0x3684b1(0x1bb)](_0x4cf6c2[_0x3684b1(0x1b3)][_0x3684b1(0x201)]);}[_0x2481b4(0x1c0)](){const _0xa6e937=_0x2481b4,_0x53ad1f=_0x4be4f2(this[_0xa6e937(0x1d1)]);return _0x5f9987(_0x53ad1f[_0xa6e937(0x1e4)],[..._0x53ad1f[_0xa6e937(0x1b3)][_0xa6e937(0x1fb)][_0xa6e937(0x1b0)](_0xa6e937(0x1ef)),..._0x53ad1f[_0xa6e937(0x1b3)][_0xa6e937(0x1fb)][_0xa6e937(0x1b0)](_0xa6e937(0x1d7))]);}}
23
+ const _0x2ef222=_0x1cba;(function(_0x3793ce,_0x33f3a2){const _0x2d6aea=_0x1cba,_0x25d054=_0x3793ce();while(!![]){try{const _0x17c4e4=parseInt(_0x2d6aea(0x1db))/0x1*(parseInt(_0x2d6aea(0x19d))/0x2)+parseInt(_0x2d6aea(0x19a))/0x3+-parseInt(_0x2d6aea(0x1cf))/0x4+-parseInt(_0x2d6aea(0x1a0))/0x5+-parseInt(_0x2d6aea(0x1b7))/0x6+-parseInt(_0x2d6aea(0x1be))/0x7*(-parseInt(_0x2d6aea(0x1d7))/0x8)+-parseInt(_0x2d6aea(0x1b5))/0x9;if(_0x17c4e4===_0x33f3a2)break;else _0x25d054['push'](_0x25d054['shift']());}catch(_0x447385){_0x25d054['push'](_0x25d054['shift']());}}}(_0x159c,0xcf7c2));import{ContextPlugin as _0x5eef14}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x497850,AIEditing as _0x60f014}from'../aicore/aiediting.js';function _0x1cba(_0xeb4c6,_0x207016){const _0x159ce8=_0x159c();return _0x1cba=function(_0x1cba46,_0x1f0aab){_0x1cba46=_0x1cba46-0x186;let _0x39db1c=_0x159ce8[_0x1cba46];return _0x39db1c;},_0x1cba(_0xeb4c6,_0x207016);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x417d78}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x406acc,Rect as _0x1502c1,scrollViewportToShowTarget as _0x582706}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x432856}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x21af97}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x38dbd9}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x38dbd9,_0x2ef222(0x18d),_0x2ef222(0x1dc)];const $=0xa;export class AIBalloon extends _0x5eef14{static get[_0x2ef222(0x19c)](){return[_0x60f014];}static get[_0x2ef222(0x196)](){const _0x5b18c2=_0x2ef222;return _0x5b18c2(0x1d3);}static get[_0x2ef222(0x195)](){return!0x0;}static get[_0x2ef222(0x1c3)](){return!0x0;}[_0x2ef222(0x1af)]=!0x1;[_0x2ef222(0x1a1)];[_0x2ef222(0x19e)]=!0x1;[_0x2ef222(0x1a3)](_0x50ced9){const _0x3835ec=_0x2ef222,{id:_0x3a78c5}=this[_0x3835ec(0x1a1)]??{};this[_0x3835ec(0x1a1)]=_0x50ced9;const {id:_0x236434}=this[_0x3835ec(0x1a1)];this[_0x3835ec(0x1af)]&&_0x3a78c5===_0x236434?this[_0x3835ec(0x19b)]():this[_0x3835ec(0x187)]();}[_0x2ef222(0x1a2)](){const _0x137195=_0x2ef222,_0x5ebbbb=_0x432856(this[_0x137195(0x1bc)])[_0x137195(0x1a6)][_0x137195(0x1d0)](_0x137195(0x1df));_0x5ebbbb[_0x137195(0x1af)]&&this[_0x137195(0x1a1)]&&_0x5ebbbb['id']===this[_0x137195(0x1a1)]['id']&&_0x5ebbbb[_0x137195(0x1ac)]();}[_0x2ef222(0x19b)](){const _0x2cc409=_0x2ef222,_0x1f3413=_0x432856(this[_0x2cc409(0x1bc)])[_0x2cc409(0x1a6)][_0x2cc409(0x1d0)](_0x2cc409(0x1df)),{icon:_0x10862b,title:_0x5991bb}=this[_0x2cc409(0x1a1)];_0x1f3413[_0x2cc409(0x1a8)]?.[_0x2cc409(0x1c0)]&&(_0x1f3413[_0x2cc409(0x1a8)][_0x2cc409(0x1c0)][_0x2cc409(0x1ab)]=_0x5991bb,_0x1f3413[_0x2cc409(0x1a8)][_0x2cc409(0x1c0)][_0x2cc409(0x1ae)]&&_0x10862b&&(_0x1f3413[_0x2cc409(0x1a8)][_0x2cc409(0x1c0)][_0x2cc409(0x1ae)][_0x2cc409(0x1b3)]=_0x10862b)),this[_0x2cc409(0x19e)]=!0x0,this[_0x2cc409(0x1c1)](),this[_0x2cc409(0x19e)]=!0x1,_0x1f3413[_0x2cc409(0x1a8)]?.[_0x2cc409(0x18c)]();}[_0x2ef222(0x1c1)](){const _0x2d8c19=_0x2ef222;this[_0x2d8c19(0x1bc)][_0x2d8c19(0x1a6)][_0x2d8c19(0x1d0)](_0x60f014)[_0x2d8c19(0x1ce)](this[_0x2d8c19(0x1a1)][_0x2d8c19(0x1b9)],_0x2d8c19(0x1c2)+this[_0x2d8c19(0x1a1)][_0x2d8c19(0x1b2)],!0x0,!0x0);}[_0x2ef222(0x190)](_0x5a52fc){const _0x351e41=_0x2ef222;this[_0x351e41(0x1bc)][_0x351e41(0x1a6)][_0x351e41(0x1d0)](_0x60f014)[_0x351e41(0x1d1)](_0x351e41(0x1c2)+_0x5a52fc);}[_0x2ef222(0x187)](){const _0x4e7bfb=_0x2ef222,_0x36987f=_0x432856(this[_0x4e7bfb(0x1bc)])[_0x4e7bfb(0x1a6)][_0x4e7bfb(0x1d0)](_0x4e7bfb(0x1df)),{id:_0xd9afae,title:_0x4e544d,icon:_0x5654b3,class:_0x5be292,mainView:_0x4b228c}=this[_0x4e7bfb(0x1a1)];_0x4b228c[_0x4e7bfb(0x1cd)](..._0x38dbd9)['to'](this),_0x36987f[_0x4e7bfb(0x198)]({'title':_0x4e544d,'icon':_0x5654b3,'hasCloseButton':!0x0,'id':_0xd9afae,'position':this[_0x4e7bfb(0x1e1)][_0x4e7bfb(0x1bd)](this),'className':_0x4e7bfb(0x19f)+(_0x5be292||''),'content':_0x4b228c,'onShow':_0x3c5599=>{const _0x4dfe71=_0x4e7bfb;this[_0x4dfe71(0x1c1)](),this[_0x4dfe71(0x1a4)]();const _0x174a98=this[_0x4dfe71(0x192)]();_0x174a98&&_0x174a98[0x0]&&_0x582706({'target':_0x174a98[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x4dfe71(0x1af)]=!0x0,_0x3c5599[_0x4dfe71(0x1aa)](_0x4dfe71(0x1ac),()=>{const _0x191843=_0x4dfe71;this[_0x191843(0x1c8)](_0x191843(0x1dd),{'id':_0xd9afae});},{'priority':_0x4dfe71(0x18a)});},'onHide':()=>{const _0x476215=_0x4e7bfb;this[_0x476215(0x190)](this[_0x476215(0x1a1)][_0x476215(0x1b2)]),this[_0x476215(0x191)](),this[_0x476215(0x1c8)](_0x476215(0x18d),{'id':_0xd9afae}),this[_0x476215(0x1af)]=!0x1;}});}[_0x2ef222(0x1e1)](_0x5a51c4,_0x1968f2){const _0x290c0c=_0x2ef222;if(!_0x1968f2)return null;const _0x5a0040=this[_0x290c0c(0x192)]();if(!_0x5a0040||0x0===_0x5a0040[_0x290c0c(0x1ba)])return{'left':Math[_0x290c0c(0x1b6)](_0x1968f2[_0x290c0c(0x194)]+_0x1968f2[_0x290c0c(0x1d6)]/0x2-_0x5a51c4[_0x290c0c(0x1d6)]/0x2),'top':Math[_0x290c0c(0x1b6)](_0x1968f2[_0x290c0c(0x1d8)]+_0x1968f2[_0x290c0c(0x1ad)]/0x2-_0x5a51c4[_0x290c0c(0x1ad)]/0x2)};const _0x4fe11f=Math[_0x290c0c(0x1b6)](_0x1968f2[_0x290c0c(0x194)]+_0x1968f2[_0x290c0c(0x1d6)]/0x2-_0x5a51c4[_0x290c0c(0x1d6)]/0x2),_0x4a6f79=_0x5a0040[_0x290c0c(0x186)](_0x4f416b=>new _0x1502c1(_0x4f416b)),_0x2f9a5a=_0x5a51c4[_0x290c0c(0x1ad)];return{'left':_0x4fe11f,'top':this[_0x290c0c(0x1c4)](_0x4a6f79,_0x2f9a5a,_0x1968f2)};}[_0x2ef222(0x1c4)](_0x14933b,_0x2d4f06,_0x4c5f13){const _0x3fec59=_0x2ef222,_0x56e164=new _0x1502c1(_0x406acc[_0x3fec59(0x1c5)]),_0x5a102d=_0x14933b[_0x3fec59(0x186)](_0xcef282=>_0xcef282[_0x3fec59(0x188)]())[_0x3fec59(0x1d2)](_0x451bd4=>_0x451bd4),_0x4ee68e=_0x1502c1[_0x3fec59(0x18f)](_0x5a102d);if(!_0x4ee68e)return Math[_0x3fec59(0x1b6)](_0x4c5f13[_0x3fec59(0x1d8)]+_0x4c5f13[_0x3fec59(0x1ad)]/0x2);const _0x35513c=_0x56e164[_0x3fec59(0x18e)](_0x4ee68e);if(!_0x35513c)return Math[_0x3fec59(0x1b6)](_0x4c5f13[_0x3fec59(0x1d8)]+_0x4c5f13[_0x3fec59(0x1ad)]/0x2);const _0xb1eae=_0x4c5f13[_0x3fec59(0x188)](),_0xba1bfe=_0xb1eae&&_0x4ee68e[_0x3fec59(0x1ad)]>_0xb1eae[_0x3fec59(0x1ad)],_0x403a49=_0x35513c[_0x3fec59(0x1d8)],_0x4a1146=_0x35513c[_0x3fec59(0x1cb)];if(_0xba1bfe){const _0x4118bd=(_0xb1eae||_0x56e164)[_0x3fec59(0x1ad)]/0x2-_0x2d4f06/0x2,_0x4dc839=_0x403a49-$-_0x4c5f13[_0x3fec59(0x1d8)],_0x38a3be=_0x4c5f13[_0x3fec59(0x1cb)]-_0x4a1146-$;return _0x4dc839>=_0x2d4f06?Math[_0x3fec59(0x1de)]($,_0x403a49-_0x2d4f06-$):_0x38a3be>=_0x2d4f06?_0x4a1146+$:Math[_0x3fec59(0x1de)]($,_0x4118bd);}const _0x752eed=_0x403a49-_0x2d4f06,_0xef2d94=_0x4c5f13[_0x3fec59(0x1cb)]-_0x4a1146-$,_0x2fdeca=_0x403a49-$-_0x4c5f13[_0x3fec59(0x1d8)];let _0x42faf0;if(_0xef2d94>=_0x2d4f06)_0x42faf0=_0x4a1146+$;else{if(_0x2fdeca>=_0x2d4f06)_0x42faf0=_0x752eed-$;else _0x42faf0=_0x403a49+_0x4ee68e[_0x3fec59(0x1ad)]/0x2-_0x2d4f06/0x2;}return _0x42faf0;}[_0x2ef222(0x1a4)](){const _0x34ef77=_0x2ef222,_0x5017d2=_0x432856(this[_0x34ef77(0x1bc)]);this[_0x34ef77(0x1d9)](_0x5017d2[_0x34ef77(0x1a9)][_0x34ef77(0x1ca)],_0x34ef77(0x193),()=>{const _0x36977e=_0x34ef77;if(!this[_0x36977e(0x19e)]){for(const {name:_0x450cc8,data:{newRange:_0x1e0380}}of _0x5017d2[_0x36977e(0x1a9)][_0x36977e(0x1ca)][_0x36977e(0x1e0)][_0x36977e(0x199)]())if(_0x450cc8[_0x36977e(0x1d5)](_0x497850+':')&&(_0x1e0380&&(_0x1e0380[_0x36977e(0x1bb)][_0x36977e(0x18b)](_0x1e0380[_0x36977e(0x189)])||_0x36977e(0x1cc)==_0x1e0380[_0x36977e(0x1bf)][_0x36977e(0x197)])||null==_0x1e0380)){const _0x39a0d3=_0x21af97(this[_0x36977e(0x1bc)][_0x36977e(0x1a7)],_0x36977e(0x1b0));this[_0x36977e(0x1a1)][_0x36977e(0x1c6)][_0x36977e(0x1d4)](_0x39a0d3),this[_0x36977e(0x1c8)](_0x36977e(0x1dc));}}});}[_0x2ef222(0x191)](){const _0x1fbd3f=_0x2ef222,_0x5f1d35=_0x432856(this[_0x1fbd3f(0x1bc)]);this[_0x1fbd3f(0x1a1)][_0x1fbd3f(0x1c6)][_0x1fbd3f(0x1c7)](),this[_0x1fbd3f(0x1b8)](_0x5f1d35[_0x1fbd3f(0x1a9)][_0x1fbd3f(0x1ca)]);}[_0x2ef222(0x192)](){const _0x368948=_0x2ef222,_0xbb181c=_0x432856(this[_0x368948(0x1bc)]);return _0x417d78(_0xbb181c[_0x368948(0x1b4)],[..._0xbb181c[_0x368948(0x1a9)][_0x368948(0x1b1)][_0x368948(0x1c9)](_0x368948(0x1a5)),..._0xbb181c[_0x368948(0x1a9)][_0x368948(0x1b1)][_0x368948(0x1c9)](_0x368948(0x1da))]);}}function _0x159c(){const _0x4b6ad9=['AIBalloon','showBlockingError','startsWith','width','6401320oNXuSO','top','listenTo','ai-balloon-selection','47TIZLtt','selectionRemoved','beforeDialogClosed','max','Dialog','differ','_calculateDialogPosition','map','_showDialog','getVisible','end','high','isEqual','updatePosition','dialogClosed','getIntersection','getBoundingRect','_hideFakeVisualSelection','_cleanupFakeVisualSelectionMarkerRemovalListener','_getSelectionElements','change','left','isOfficialPlugin','pluginName','rootName','show','getChangedMarkers','2793144zzDOjl','_updateDialog','requires','62556Azfmvi','_isUpdatingMarkers','ck-ai-balloon\x20','5081200jkJyXp','_currentConfig','close','open','_setupFakeVisualSelectionMarkerRemovalListener','ai-selection','plugins','locale','view','model','once','label','hide','height','iconView','isOpen','AI_BALLOON_SELECTION_REMOVED_ERROR','markers','index','content','editing','6000831brgQhI','round','2689902uNBefe','stopListening','ranges','length','start','context','bind','7CAgbgM','root','headerView','_showFakeVisualSelection','ai-balloon-','isPremiumPlugin','_calculateOptimalTopPosition','window','mainView','hideError','fire','getMarkersGroup','document','bottom','$graveyard','delegate','showFakeVisualSelection','880420RFPISz','get','hideFakeVisualSelection','filter'];_0x159c=function(){return _0x4b6ad9;};return _0x159c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd21cc3=_0x31c5;(function(_0x599ac4,_0x4db3e7){const _0x29ff1a=_0x31c5,_0x1b0e73=_0x599ac4();while(!![]){try{const _0x5c5cb8=-parseInt(_0x29ff1a(0x14a))/0x1+parseInt(_0x29ff1a(0x161))/0x2+-parseInt(_0x29ff1a(0x15e))/0x3*(-parseInt(_0x29ff1a(0x156))/0x4)+parseInt(_0x29ff1a(0x15c))/0x5*(-parseInt(_0x29ff1a(0x14d))/0x6)+-parseInt(_0x29ff1a(0x152))/0x7+-parseInt(_0x29ff1a(0x165))/0x8+parseInt(_0x29ff1a(0x15a))/0x9;if(_0x5c5cb8===_0x4db3e7)break;else _0x1b0e73['push'](_0x1b0e73['shift']());}catch(_0x1aae04){_0x1b0e73['push'](_0x1b0e73['shift']());}}}(_0x2256,0xd7958));function _0x31c5(_0x1bbd82,_0x4f89fe){const _0x2256f6=_0x2256();return _0x31c5=function(_0x31c558,_0x2511ab){_0x31c558=_0x31c558-0x149;let _0x28713f=_0x2256f6[_0x31c558];return _0x28713f;},_0x31c5(_0x1bbd82,_0x4f89fe);}import{View as _0x105470}from'ckeditor5/src/ui.js';function _0x2256(){const _0x49eab8=['6ijhUoX','showError','ck-ai-suggestion__error-text','268868PxUMoS','_errorView','ck-ai-suggestion__error','set','9695672CZZyQz','hideError','applySuggestion','1500020dkeMrj','setTemplate','_isErrorVisible','37392yAFjVI','ck-ai-balloon-error','_createErrorView','showNext','showPrevious','6320188YVGsyQ','locale','_errorMessage','showBlockingError','2472428DQNZMg','bindTemplate','div','ck-hidden','28930455IkBDRS','span','70LVvhjv','insertSuggestion'];_0x2256=function(){return _0x49eab8;};return _0x2256();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0xd21cc3(0x149),_0xd21cc3(0x15d),_0xd21cc3(0x150),_0xd21cc3(0x151)];export class AIBalloonView extends _0x105470{[_0xd21cc3(0x162)];constructor(_0x36fd11){const _0x24da86=_0xd21cc3;super(_0x36fd11),this[_0x24da86(0x164)](_0x24da86(0x154),''),this[_0x24da86(0x164)](_0x24da86(0x14c),!0x1);}[_0xd21cc3(0x155)](_0x92e2f0){const _0x4fae00=_0xd21cc3;this[_0x4fae00(0x15f)](_0x92e2f0);}[_0xd21cc3(0x15f)](_0x504e7f){const _0x1bbdc9=_0xd21cc3;this[_0x1bbdc9(0x162)]||(this[_0x1bbdc9(0x162)]=this[_0x1bbdc9(0x14f)]()),this[_0x1bbdc9(0x154)]=_0x504e7f,this[_0x1bbdc9(0x14c)]=!0x0;}[_0xd21cc3(0x166)](){const _0x2bfa1e=_0xd21cc3;this[_0x2bfa1e(0x14c)]=!0x1;}[_0xd21cc3(0x14f)](){const _0x3ec9b5=_0xd21cc3,_0x3b2852=new _0x105470(this[_0x3ec9b5(0x153)]),_0x230c6c=new _0x105470(this[_0x3ec9b5(0x153)]);return _0x230c6c[_0x3ec9b5(0x14b)]({'tag':_0x3ec9b5(0x15b),'attributes':{'class':['ck',_0x3ec9b5(0x160)]},'children':[{'text':this[_0x3ec9b5(0x157)]['to'](_0x3ec9b5(0x154))}]}),_0x3b2852[_0x3ec9b5(0x14b)]({'tag':_0x3ec9b5(0x158),'attributes':{'class':['ck',_0x3ec9b5(0x163),_0x3ec9b5(0x14e),this[_0x3ec9b5(0x157)]['if'](_0x3ec9b5(0x14c),_0x3ec9b5(0x159),_0x5de078=>!_0x5de078)]},'children':[_0x230c6c]}),_0x3b2852;}}
23
+ const _0x3bbf55=_0x7e47;(function(_0x33423a,_0x31ca09){const _0x23452d=_0x7e47,_0x1ddce5=_0x33423a();while(!![]){try{const _0xc67ce2=parseInt(_0x23452d(0xad))/0x1*(-parseInt(_0x23452d(0xa9))/0x2)+parseInt(_0x23452d(0x9d))/0x3+parseInt(_0x23452d(0xa1))/0x4*(-parseInt(_0x23452d(0xae))/0x5)+parseInt(_0x23452d(0xb5))/0x6*(parseInt(_0x23452d(0xa3))/0x7)+-parseInt(_0x23452d(0x9c))/0x8*(-parseInt(_0x23452d(0x9a))/0x9)+parseInt(_0x23452d(0x99))/0xa+-parseInt(_0x23452d(0x98))/0xb;if(_0xc67ce2===_0x31ca09)break;else _0x1ddce5['push'](_0x1ddce5['shift']());}catch(_0x2249a2){_0x1ddce5['push'](_0x1ddce5['shift']());}}}(_0x5527,0xa02c5));function _0x7e47(_0x26f249,_0x5de6cc){const _0x5527cc=_0x5527();return _0x7e47=function(_0x7e47fd,_0x285ca1){_0x7e47fd=_0x7e47fd-0x97;let _0x4bf439=_0x5527cc[_0x7e47fd];return _0x4bf439;},_0x7e47(_0x26f249,_0x5de6cc);}import{View as _0x3eea1e}from'ckeditor5/src/ui.js';function _0x5527(){const _0x9a59cd=['1035354DmFGQT','_errorView','showPrevious','showNext','1jgpoNl','6277445xJmUjC','_createErrorView','span','showBlockingError','_isErrorVisible','locale','div','247458WmciwI','ck-ai-suggestion__error','ck-hidden','9556822VEDGZZ','8595050mLSJQj','98451rLpIbu','bindTemplate','688fLvBKv','2637399Xjober','set','showError','applySuggestion','4pHhyRu','_errorMessage','105XWOnWn','ck-ai-suggestion__error-text','ck-ai-balloon-error','setTemplate','insertSuggestion','hideError'];_0x5527=function(){return _0x9a59cd;};return _0x5527();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3bbf55(0xa0),_0x3bbf55(0xa7),_0x3bbf55(0xac),_0x3bbf55(0xab)];export class AIBalloonView extends _0x3eea1e{[_0x3bbf55(0xaa)];constructor(_0x327713){const _0x321825=_0x3bbf55;super(_0x327713),this[_0x321825(0x9e)](_0x321825(0xa2),''),this[_0x321825(0x9e)](_0x321825(0xb2),!0x1);}[_0x3bbf55(0xb1)](_0x239969){const _0x380057=_0x3bbf55;this[_0x380057(0x9f)](_0x239969);}[_0x3bbf55(0x9f)](_0xe7f55d){const _0x141a25=_0x3bbf55;this[_0x141a25(0xaa)]||(this[_0x141a25(0xaa)]=this[_0x141a25(0xaf)]()),this[_0x141a25(0xa2)]=_0xe7f55d,this[_0x141a25(0xb2)]=!0x0;}[_0x3bbf55(0xa8)](){const _0x368cd6=_0x3bbf55;this[_0x368cd6(0xb2)]=!0x1;}[_0x3bbf55(0xaf)](){const _0x33c5d9=_0x3bbf55,_0x1e8f41=new _0x3eea1e(this[_0x33c5d9(0xb3)]),_0x58cafe=new _0x3eea1e(this[_0x33c5d9(0xb3)]);return _0x58cafe[_0x33c5d9(0xa6)]({'tag':_0x33c5d9(0xb0),'attributes':{'class':['ck',_0x33c5d9(0xa4)]},'children':[{'text':this[_0x33c5d9(0x9b)]['to'](_0x33c5d9(0xa2))}]}),_0x1e8f41[_0x33c5d9(0xa6)]({'tag':_0x33c5d9(0xb4),'attributes':{'class':['ck',_0x33c5d9(0xb6),_0x33c5d9(0xa5),this[_0x33c5d9(0x9b)]['if'](_0x33c5d9(0xb2),_0x33c5d9(0x97),_0x5cc3fb=>!_0x5cc3fb)]},'children':[_0x58cafe]}),_0x1e8f41;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x25f3a1=_0x1d7c;(function(_0x556484,_0x2b7063){var _0x3cbfbe=_0x1d7c,_0x5d8d63=_0x556484();while(!![]){try{var _0x123374=parseInt(_0x3cbfbe(0x8a))/0x1*(parseInt(_0x3cbfbe(0x7d))/0x2)+parseInt(_0x3cbfbe(0x83))/0x3+parseInt(_0x3cbfbe(0x94))/0x4*(-parseInt(_0x3cbfbe(0x8c))/0x5)+parseInt(_0x3cbfbe(0x7c))/0x6*(-parseInt(_0x3cbfbe(0x92))/0x7)+-parseInt(_0x3cbfbe(0x84))/0x8*(-parseInt(_0x3cbfbe(0x93))/0x9)+parseInt(_0x3cbfbe(0x8d))/0xa+-parseInt(_0x3cbfbe(0x82))/0xb;if(_0x123374===_0x2b7063)break;else _0x5d8d63['push'](_0x5d8d63['shift']());}catch(_0x320131){_0x5d8d63['push'](_0x5d8d63['shift']());}}}(_0x4038,0xa6a78));function _0x1d7c(_0x138ad6,_0x1f1d5c){var _0x40383c=_0x4038();return _0x1d7c=function(_0x1d7cd9,_0x35f29c){_0x1d7cd9=_0x1d7cd9-0x77;var _0x28fe5f=_0x40383c[_0x1d7cd9];return _0x28fe5f;},_0x1d7c(_0x138ad6,_0x1f1d5c);}import{ContextPlugin as _0x545d22}from'ckeditor5/src/core.js';import{AIChatController as _0x1a5674}from'./aichatcontroller.js';import{AIEditing as _0x5baec3}from'../aicore/aiediting.js';import{AIChatUI as _0x4271a7}from'./aichatui.js';import{AIChatHistory as _0xca619a}from'../aichathistory/aichathistory.js';function _0x4038(){var _0x5f04a4=['439107CnvqCs','removeSelectionFromChatContext','5mlsDJg','6224720IFhQxx','define','new','ai.chat.context','config','2463405lsYpeD','1118745tYwYWh','732256QftPfk','focusPromptInput','plugins','startConversation','addSelectionToChatContext','context','AIChat','6bPxBgR','6XMupvZ','ai.chat.initialConversation','pluginName','requires','get','20801968MOMCAO','2387925zlpsue','24IzEJxm','registerToolDataCallback','sendMessage','_registerToolDataCallback','isOfficialPlugin','isPremiumPlugin'];_0x4038=function(){return _0x5f04a4;};return _0x4038();}export class AIChat extends _0x545d22{static get[_0x25f3a1(0x80)](){return[_0x1a5674,_0x5baec3,_0x4271a7,_0xca619a];}static get[_0x25f3a1(0x7f)](){var _0x48c2bc=_0x25f3a1;return _0x48c2bc(0x7b);}static get[_0x25f3a1(0x88)](){return!0x0;}static get[_0x25f3a1(0x89)](){return!0x0;}constructor(_0x8328b7){var _0x3e5c2c=_0x25f3a1;super(_0x8328b7),this[_0x3e5c2c(0x7a)][_0x3e5c2c(0x91)][_0x3e5c2c(0x8e)](_0x3e5c2c(0x90),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3e5c2c(0x7a)][_0x3e5c2c(0x91)][_0x3e5c2c(0x8e)](_0x3e5c2c(0x7e),_0x3e5c2c(0x8f));}async[_0x25f3a1(0x79)](){var _0x53166f=_0x25f3a1;await this[_0x53166f(0x7a)][_0x53166f(0x77)][_0x53166f(0x81)](_0x1a5674)[_0x53166f(0x79)]();}async[_0x25f3a1(0x78)](){var _0x27a1ab=_0x25f3a1;await this[_0x27a1ab(0x7a)][_0x27a1ab(0x77)][_0x27a1ab(0x81)](_0x1a5674)[_0x27a1ab(0x78)]();}async[_0x25f3a1(0x86)]({message:_0x43343b,attributes:_0x3f55fd}){var _0x37ae78=_0x25f3a1;await this[_0x37ae78(0x7a)][_0x37ae78(0x77)][_0x37ae78(0x81)](_0x1a5674)[_0x37ae78(0x86)]({'message':_0x43343b,'attributes':_0x3f55fd});}[_0x25f3a1(0x8b)](){var _0x33ebfc=_0x25f3a1;this[_0x33ebfc(0x7a)][_0x33ebfc(0x77)][_0x33ebfc(0x81)](_0x1a5674)[_0x33ebfc(0x8b)]();}[_0x25f3a1(0x95)](){var _0x432958=_0x25f3a1;this[_0x432958(0x7a)][_0x432958(0x77)][_0x432958(0x81)](_0x1a5674)[_0x432958(0x95)]();}[_0x25f3a1(0x85)](_0x95096d){var _0x48cf06=_0x25f3a1;this[_0x48cf06(0x7a)][_0x48cf06(0x77)][_0x48cf06(0x81)](_0x1a5674)[_0x48cf06(0x87)](_0x95096d);}}
23
+ var _0xf043df=_0x2cfc;(function(_0x5e6278,_0x1c842b){var _0x41b7fa=_0x2cfc,_0x6f097a=_0x5e6278();while(!![]){try{var _0x28069b=parseInt(_0x41b7fa(0xdd))/0x1+-parseInt(_0x41b7fa(0xdc))/0x2+-parseInt(_0x41b7fa(0xd5))/0x3*(parseInt(_0x41b7fa(0xcc))/0x4)+-parseInt(_0x41b7fa(0xdf))/0x5+-parseInt(_0x41b7fa(0xd6))/0x6+-parseInt(_0x41b7fa(0xda))/0x7*(-parseInt(_0x41b7fa(0xcd))/0x8)+parseInt(_0x41b7fa(0xd3))/0x9;if(_0x28069b===_0x1c842b)break;else _0x6f097a['push'](_0x6f097a['shift']());}catch(_0x37accd){_0x6f097a['push'](_0x6f097a['shift']());}}}(_0x5b74,0x6c338));import{ContextPlugin as _0x22f432}from'ckeditor5/src/core.js';import{AIChatController as _0x3d3696}from'./aichatcontroller.js';function _0x5b74(){var _0x2bc443=['context','_registerToolDataCallback','12096909fWZEqM','requires','252UQxqPo','897108VIhSRw','startConversation','isOfficialPlugin','AIChat','29239GtifEn','plugins','541940DGnZjK','37695SwflkH','focusPromptInput','1983315htpLmn','pluginName','isPremiumPlugin','registerToolDataCallback','addSelectionToChatContext','get','removeSelectionFromChatContext','ai.chat.initialConversation','sendMessage','ai.chat.context','31840EokUjV','1048VdBlGJ','define','new','config'];_0x5b74=function(){return _0x2bc443;};return _0x5b74();}import{AIEditing as _0x4d7442}from'../aicore/aiediting.js';function _0x2cfc(_0x3ec8e3,_0x54578a){var _0x5b7404=_0x5b74();return _0x2cfc=function(_0x2cfca2,_0x3d889f){_0x2cfca2=_0x2cfca2-0xc4;var _0x254d28=_0x5b7404[_0x2cfca2];return _0x254d28;},_0x2cfc(_0x3ec8e3,_0x54578a);}import{AIChatUI as _0x1f8044}from'./aichatui.js';import{AIChatHistory as _0x498e97}from'../aichathistory/aichathistory.js';export class AIChat extends _0x22f432{static get[_0xf043df(0xd4)](){return[_0x3d3696,_0x4d7442,_0x1f8044,_0x498e97];}static get[_0xf043df(0xe0)](){var _0x8fa95b=_0xf043df;return _0x8fa95b(0xd9);}static get[_0xf043df(0xd8)](){return!0x0;}static get[_0xf043df(0xc4)](){return!0x0;}constructor(_0x4fa0a7){var _0x3374b2=_0xf043df;super(_0x4fa0a7),this[_0x3374b2(0xd1)][_0x3374b2(0xd0)][_0x3374b2(0xce)](_0x3374b2(0xcb),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3374b2(0xd1)][_0x3374b2(0xd0)][_0x3374b2(0xce)](_0x3374b2(0xc9),_0x3374b2(0xcf));}async[_0xf043df(0xc6)](){var _0x39b526=_0xf043df;await this[_0x39b526(0xd1)][_0x39b526(0xdb)][_0x39b526(0xc7)](_0x3d3696)[_0x39b526(0xc6)]();}async[_0xf043df(0xd7)](){var _0x4485d3=_0xf043df;await this[_0x4485d3(0xd1)][_0x4485d3(0xdb)][_0x4485d3(0xc7)](_0x3d3696)[_0x4485d3(0xd7)]();}async[_0xf043df(0xca)]({message:_0x108f21,attributes:_0xb35eb2}){var _0x5f041a=_0xf043df;await this[_0x5f041a(0xd1)][_0x5f041a(0xdb)][_0x5f041a(0xc7)](_0x3d3696)[_0x5f041a(0xca)]({'message':_0x108f21,'attributes':_0xb35eb2});}[_0xf043df(0xc8)](){var _0x1bc03b=_0xf043df;this[_0x1bc03b(0xd1)][_0x1bc03b(0xdb)][_0x1bc03b(0xc7)](_0x3d3696)[_0x1bc03b(0xc8)]();}[_0xf043df(0xde)](){var _0xaceea6=_0xf043df;this[_0xaceea6(0xd1)][_0xaceea6(0xdb)][_0xaceea6(0xc7)](_0x3d3696)[_0xaceea6(0xde)]();}[_0xf043df(0xc5)](_0x5c1e92){var _0x19a02d=_0xf043df;this[_0x19a02d(0xd1)][_0x19a02d(0xdb)][_0x19a02d(0xc7)](_0x3d3696)[_0x19a02d(0xd2)](_0x5c1e92);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2028(){const _0x498f9f=['30xplnjU','togglePartToolbarEnabled','ck-ai-chat-balloon','6hHUiXZ','previousButtonView','25kTXzVJ','open','13oOMYCY','isTrackChangesOn','AIChatBalloon','isPremiumPlugin','1494966yyvqvz','AIBalloon','trackChanges','3405906rnuuTI','rejectSuggestion','16621VgKHsH','4667896bhaMgO','value','addMany','plugins','remove','focus','delegate','isOfficialPlugin','showNext','children','showDiff','insertSuggestion','applySuggestion','showRotator','view','ai.availableReplyActions','requires','render','get','updateContent','dialogClosed','TrackChanges','pluginName','config','locale','close','areActionsDisabled','headerView','nextButtonView','_restoreDefaultViewFocus','toggleRotatorButtonsVisibility','aiChatBalloon','_createChatBalloonView','beforeDialogClosed','showPrevious','5256yhuqDW','setState','_chatBalloonView','48687QmstQA','284agaolM','once','bind','editor','14tsRxnR','_toggleRotatorButtonsInDialogHeader','210053XzXEbf','1679607VZOuHV','filter','Dialog','set','has','commands'];_0x2028=function(){return _0x498f9f;};return _0x2028();}const _0x5c6f6d=_0x1b82;function _0x1b82(_0x2a060b,_0x49baec){const _0x2028a4=_0x2028();return _0x1b82=function(_0x1b828d,_0x5cb8fe){_0x1b828d=_0x1b828d-0x18a;let _0x427738=_0x2028a4[_0x1b828d];return _0x427738;},_0x1b82(_0x2a060b,_0x49baec);}(function(_0x6cb466,_0x133aaa){const _0x192da7=_0x1b82,_0x225448=_0x6cb466();while(!![]){try{const _0x54ead5=-parseInt(_0x192da7(0x1a6))/0x1*(-parseInt(_0x192da7(0x1b0))/0x2)+parseInt(_0x192da7(0x19f))/0x3*(parseInt(_0x192da7(0x1a0))/0x4)+parseInt(_0x192da7(0x1b2))/0x5*(-parseInt(_0x192da7(0x1b8))/0x6)+-parseInt(_0x192da7(0x1a4))/0x7*(parseInt(_0x192da7(0x1be))/0x8)+-parseInt(_0x192da7(0x1a7))/0x9*(-parseInt(_0x192da7(0x1ad))/0xa)+-parseInt(_0x192da7(0x1bd))/0xb*(-parseInt(_0x192da7(0x19c))/0xc)+-parseInt(_0x192da7(0x1b4))/0xd*(-parseInt(_0x192da7(0x1bb))/0xe);if(_0x54ead5===_0x133aaa)break;else _0x225448['push'](_0x225448['shift']());}catch(_0x1520c5){_0x225448['push'](_0x225448['shift']());}}}(_0x2028,0xcbc2d));import{Plugin as _0x2b67bf}from'ckeditor5/src/core.js';import{AIBalloon as _0x3ba545}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x287fca}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x37e919}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x360772}from'../aicore/utils/eventnames.js';import{Dialog as _0x2cca69}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x2b67bf{static get[_0x5c6f6d(0x1ce)](){return[_0x2cca69,_0x3ba545];}static get[_0x5c6f6d(0x18f)](){const _0x156ff3=_0x5c6f6d;return _0x156ff3(0x1b6);}static get[_0x5c6f6d(0x1c5)](){return!0x0;}static get[_0x5c6f6d(0x1b7)](){return!0x0;}[_0x5c6f6d(0x19e)];constructor(_0x2b4607){const _0x48d2d5=_0x5c6f6d;super(_0x2b4607),this[_0x48d2d5(0x1aa)](_0x48d2d5(0x1c8),!0x1);}[_0x5c6f6d(0x1b3)](_0x305a43){const _0x19bbef=_0x5c6f6d,_0x43f8d8=this[_0x19bbef(0x1a3)];this[_0x19bbef(0x19e)]||(this[_0x19bbef(0x19e)]=this[_0x19bbef(0x199)]()),_0x43f8d8[_0x19bbef(0x1c1)][_0x19bbef(0x18b)](_0x19bbef(0x1b9))[_0x19bbef(0x1b3)]({..._0x305a43,'id':_0x19bbef(0x198),'class':_0x19bbef(0x1af),'mainView':this[_0x19bbef(0x19e)]}),this[_0x19bbef(0x1a5)](_0x305a43[_0x19bbef(0x1cb)]),this[_0x19bbef(0x19e)][_0x19bbef(0x1ae)](!_0x305a43[_0x19bbef(0x193)]),this[_0x19bbef(0x196)]();}[_0x5c6f6d(0x192)](){const _0x388222=_0x5c6f6d;this[_0x388222(0x1a3)][_0x388222(0x1c1)][_0x388222(0x18b)](_0x388222(0x1b9))[_0x388222(0x192)]();}[_0x5c6f6d(0x18c)](_0x1061fe){const _0x2d4c7e=_0x5c6f6d;return this[_0x2d4c7e(0x19e)]||(this[_0x2d4c7e(0x19e)]=this[_0x2d4c7e(0x199)]()),this[_0x2d4c7e(0x19e)][_0x2d4c7e(0x18c)](_0x1061fe);}[_0x5c6f6d(0x19d)](_0x1d921a){const _0x22a919=_0x5c6f6d;this[_0x22a919(0x19e)]&&this[_0x22a919(0x19e)][_0x22a919(0x19d)](_0x1d921a);}[_0x5c6f6d(0x199)](){const _0x310e16=_0x5c6f6d,_0x482aea=this[_0x310e16(0x1a3)],_0x35ebcf=_0x482aea[_0x310e16(0x1c1)][_0x310e16(0x18b)](_0x310e16(0x1b9)),_0x518cb1=_0x482aea[_0x310e16(0x1ac)][_0x310e16(0x18b)](_0x310e16(0x1ba));let _0x207fd7=_0x482aea[_0x310e16(0x190)][_0x310e16(0x18b)](_0x310e16(0x1cd))||[..._0x287fca];_0x482aea[_0x310e16(0x1c1)][_0x310e16(0x1ab)](_0x310e16(0x18e))||(_0x207fd7=_0x207fd7[_0x310e16(0x1a8)](_0xac672a=>_0x310e16(0x1c9)!=_0xac672a));const _0x17f6b8=new _0x37e919(_0x482aea[_0x310e16(0x191)],{'availableActions':_0x207fd7,'showApplyButton':!0x0,'showSuggestButton':!!_0x518cb1});return _0x17f6b8[_0x310e16(0x1a2)](_0x310e16(0x1c8))['to'](this),_0x17f6b8[_0x310e16(0x1c4)](..._0x360772)['to'](this),_0x17f6b8[_0x310e16(0x1c4)](_0x310e16(0x19b),_0x310e16(0x1c6))['to'](this),_0x35ebcf[_0x310e16(0x1c4)](_0x310e16(0x18d))['to'](this),_0x17f6b8['on'](_0x310e16(0x1ca),this[_0x310e16(0x196)][_0x310e16(0x1a2)](this)),_0x17f6b8['on'](_0x310e16(0x1c9),this[_0x310e16(0x196)][_0x310e16(0x1a2)](this)),_0x17f6b8['on'](_0x310e16(0x1bc),this[_0x310e16(0x196)][_0x310e16(0x1a2)](this)),_0x518cb1&&_0x17f6b8[_0x310e16(0x1a2)](_0x310e16(0x1b5))['to'](_0x518cb1,_0x310e16(0x1bf)),_0x17f6b8[_0x310e16(0x18a)](),_0x17f6b8;}[_0x5c6f6d(0x1a5)](_0x2a6f97){const _0x279f33=_0x5c6f6d,_0x156469=this[_0x279f33(0x1a3)],_0x1c2800=_0x156469[_0x279f33(0x1c1)][_0x279f33(0x18b)](_0x279f33(0x1a9))[_0x279f33(0x1cc)][_0x279f33(0x194)][_0x279f33(0x1c7)];this[_0x279f33(0x19e)][_0x279f33(0x197)](_0x2a6f97),_0x1c2800[_0x279f33(0x1ab)](this[_0x279f33(0x19e)][_0x279f33(0x1b1)])||(_0x1c2800[_0x279f33(0x1c0)]([this[_0x279f33(0x19e)][_0x279f33(0x1b1)],this[_0x279f33(0x19e)][_0x279f33(0x195)]],0x0),_0x156469[_0x279f33(0x1c1)][_0x279f33(0x18b)](_0x279f33(0x1b9))[_0x279f33(0x1a1)](_0x279f33(0x19a),()=>{const _0x5f190f=_0x279f33;_0x1c2800[_0x5f190f(0x1c2)](this[_0x5f190f(0x19e)][_0x5f190f(0x1b1)]),_0x1c2800[_0x5f190f(0x1c2)](this[_0x5f190f(0x19e)][_0x5f190f(0x195)]);}));}[_0x5c6f6d(0x196)](){const _0x50c0a0=_0x5c6f6d;this[_0x50c0a0(0x19e)][_0x50c0a0(0x1c3)]();}}
23
+ const _0x2edaf3=_0x4821;(function(_0x5570cc,_0x19d0bc){const _0x42ed04=_0x4821,_0x5ecbd2=_0x5570cc();while(!![]){try{const _0x46f710=-parseInt(_0x42ed04(0x118))/0x1+parseInt(_0x42ed04(0x126))/0x2*(parseInt(_0x42ed04(0x119))/0x3)+-parseInt(_0x42ed04(0x122))/0x4+-parseInt(_0x42ed04(0x12e))/0x5+-parseInt(_0x42ed04(0x125))/0x6*(-parseInt(_0x42ed04(0x10a))/0x7)+-parseInt(_0x42ed04(0x139))/0x8+parseInt(_0x42ed04(0x111))/0x9;if(_0x46f710===_0x19d0bc)break;else _0x5ecbd2['push'](_0x5ecbd2['shift']());}catch(_0x270870){_0x5ecbd2['push'](_0x5ecbd2['shift']());}}}(_0x374e,0x3a93e));import{Plugin as _0x2c91d4}from'ckeditor5/src/core.js';function _0x4821(_0x243589,_0x455006){const _0x374e63=_0x374e();return _0x4821=function(_0x4821f9,_0x118ade){_0x4821f9=_0x4821f9-0x101;let _0x14e0eb=_0x374e63[_0x4821f9];return _0x14e0eb;},_0x4821(_0x243589,_0x455006);}import{AIBalloon as _0xa9b9b}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x14acb7}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1df5e4}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x254381}from'../aicore/utils/eventnames.js';import{Dialog as _0xd27544}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x2c91d4{static get[_0x2edaf3(0x116)](){return[_0xd27544,_0xa9b9b];}static get[_0x2edaf3(0x13f)](){const _0x14b17e=_0x2edaf3;return _0x14b17e(0x12c);}static get[_0x2edaf3(0x128)](){return!0x0;}static get[_0x2edaf3(0x12f)](){return!0x0;}[_0x2edaf3(0x110)];constructor(_0xe8647d){const _0x263fbf=_0x2edaf3;super(_0xe8647d),this[_0x263fbf(0x12a)](_0x263fbf(0x134),!0x1);}[_0x2edaf3(0x104)](_0x24c31b){const _0x1beb86=_0x2edaf3,_0xe80d63=this[_0x1beb86(0x11a)];this[_0x1beb86(0x110)]||(this[_0x1beb86(0x110)]=this[_0x1beb86(0x108)]()),_0xe80d63[_0x1beb86(0x11c)][_0x1beb86(0x127)](_0x1beb86(0x117))[_0x1beb86(0x104)]({..._0x24c31b,'id':_0x1beb86(0x10e),'class':_0x1beb86(0x103),'mainView':this[_0x1beb86(0x110)]}),this[_0x1beb86(0x12d)](_0x24c31b[_0x1beb86(0x121)]),this[_0x1beb86(0x110)][_0x1beb86(0x137)](!_0x24c31b[_0x1beb86(0x10b)]),this[_0x1beb86(0x11b)]();}[_0x2edaf3(0x13d)](){const _0x370091=_0x2edaf3;this[_0x370091(0x11a)][_0x370091(0x11c)][_0x370091(0x127)](_0x370091(0x117))[_0x370091(0x13d)]();}[_0x2edaf3(0x13e)](_0x85e10e){const _0x1ea50c=_0x2edaf3;return this[_0x1ea50c(0x110)]||(this[_0x1ea50c(0x110)]=this[_0x1ea50c(0x108)]()),this[_0x1ea50c(0x110)][_0x1ea50c(0x13e)](_0x85e10e);}[_0x2edaf3(0x101)](_0x2ecf4a){const _0x334c33=_0x2edaf3;this[_0x334c33(0x110)]&&this[_0x334c33(0x110)][_0x334c33(0x101)](_0x2ecf4a);}[_0x2edaf3(0x108)](){const _0x5a291d=_0x2edaf3,_0x1f4471=this[_0x5a291d(0x11a)],_0x2e2323=_0x1f4471[_0x5a291d(0x11c)][_0x5a291d(0x127)](_0x5a291d(0x117)),_0x45d3c2=_0x1f4471[_0x5a291d(0x102)][_0x5a291d(0x127)](_0x5a291d(0x114));let _0x2fb7d0=_0x1f4471[_0x5a291d(0x138)][_0x5a291d(0x127)](_0x5a291d(0x12b))||[..._0x14acb7];_0x1f4471[_0x5a291d(0x11c)][_0x5a291d(0x11e)](_0x5a291d(0x123))||(_0x2fb7d0=_0x2fb7d0[_0x5a291d(0x131)](_0x4d2f1d=>_0x5a291d(0x112)!=_0x4d2f1d));const _0x227694=new _0x1df5e4(_0x1f4471[_0x5a291d(0x11d)],{'availableActions':_0x2fb7d0,'showApplyButton':!0x0,'showSuggestButton':!!_0x45d3c2});return _0x227694[_0x5a291d(0x107)](_0x5a291d(0x134))['to'](this),_0x227694[_0x5a291d(0x124)](..._0x254381)['to'](this),_0x227694[_0x5a291d(0x124)](_0x5a291d(0x106),_0x5a291d(0x140))['to'](this),_0x2e2323[_0x5a291d(0x124)](_0x5a291d(0x10d))['to'](this),_0x227694['on'](_0x5a291d(0x13c),this[_0x5a291d(0x11b)][_0x5a291d(0x107)](this)),_0x227694['on'](_0x5a291d(0x112),this[_0x5a291d(0x11b)][_0x5a291d(0x107)](this)),_0x227694['on'](_0x5a291d(0x115),this[_0x5a291d(0x11b)][_0x5a291d(0x107)](this)),_0x45d3c2&&_0x227694[_0x5a291d(0x107)](_0x5a291d(0x136))['to'](_0x45d3c2,_0x5a291d(0x133)),_0x227694[_0x5a291d(0x120)](),_0x227694;}[_0x2edaf3(0x12d)](_0x29d7ee){const _0x3aacd9=_0x2edaf3,_0x3eb42d=this[_0x3aacd9(0x11a)],_0x184407=_0x3eb42d[_0x3aacd9(0x11c)][_0x3aacd9(0x127)](_0x3aacd9(0x11f))[_0x3aacd9(0x10f)][_0x3aacd9(0x130)][_0x3aacd9(0x109)];this[_0x3aacd9(0x110)][_0x3aacd9(0x10c)](_0x29d7ee),_0x184407[_0x3aacd9(0x11e)](this[_0x3aacd9(0x110)][_0x3aacd9(0x13b)])||(_0x184407[_0x3aacd9(0x135)]([this[_0x3aacd9(0x110)][_0x3aacd9(0x13b)],this[_0x3aacd9(0x110)][_0x3aacd9(0x13a)]],0x0),_0x3eb42d[_0x3aacd9(0x11c)][_0x3aacd9(0x127)](_0x3aacd9(0x117))[_0x3aacd9(0x129)](_0x3aacd9(0x132),()=>{const _0x502eb4=_0x3aacd9;_0x184407[_0x502eb4(0x113)](this[_0x502eb4(0x110)][_0x502eb4(0x13b)]),_0x184407[_0x502eb4(0x113)](this[_0x502eb4(0x110)][_0x502eb4(0x13a)]);}));}[_0x2edaf3(0x11b)](){const _0x1190c7=_0x2edaf3;this[_0x1190c7(0x110)][_0x1190c7(0x105)]();}}function _0x374e(){const _0x2d5dbc=['open','focus','showPrevious','bind','_createChatBalloonView','children','60641UWcsBU','areActionsDisabled','toggleRotatorButtonsVisibility','dialogClosed','aiChatBalloon','view','_chatBalloonView','4779837MWnkhF','insertSuggestion','remove','trackChanges','rejectSuggestion','requires','AIBalloon','334443ABhxUh','318CTvqnW','editor','_restoreDefaultViewFocus','plugins','locale','has','Dialog','render','showRotator','1468576OxaFVn','TrackChanges','delegate','120KeObCw','8360HoKcMB','get','isOfficialPlugin','once','set','ai.availableReplyActions','AIChatBalloon','_toggleRotatorButtonsInDialogHeader','161395pYBubp','isPremiumPlugin','headerView','filter','beforeDialogClosed','value','showDiff','addMany','isTrackChangesOn','togglePartToolbarEnabled','config','1389064KuLJlh','nextButtonView','previousButtonView','applySuggestion','close','updateContent','pluginName','showNext','setState','commands','ck-ai-chat-balloon'];_0x374e=function(){return _0x2d5dbc;};return _0x374e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1775be=_0x2d98;(function(_0x11ed3b,_0x45d6d2){const _0x505382=_0x2d98,_0x30e189=_0x11ed3b();while(!![]){try{const _0x135f91=-parseInt(_0x505382(0x2a6))/0x1*(parseInt(_0x505382(0x2c2))/0x2)+parseInt(_0x505382(0x285))/0x3+-parseInt(_0x505382(0x293))/0x4*(parseInt(_0x505382(0x1bf))/0x5)+-parseInt(_0x505382(0x2d2))/0x6+parseInt(_0x505382(0x1f1))/0x7*(-parseInt(_0x505382(0x158))/0x8)+parseInt(_0x505382(0x190))/0x9*(parseInt(_0x505382(0x239))/0xa)+parseInt(_0x505382(0x22f))/0xb;if(_0x135f91===_0x45d6d2)break;else _0x30e189['push'](_0x30e189['shift']());}catch(_0x30148b){_0x30e189['push'](_0x30e189['shift']());}}}(_0x2254,0xde6aa));import{ContextPlugin as _0x262ab6,Editor as _0x26c198}from'ckeditor5/src/core.js';import{BodyCollection as _0x41bd33}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3f2057,logError as _0x3bd9b5,scrollViewportToShowTarget as _0xd132a8,uid as _0x2a93b7}from'ckeditor5/src/utils.js';import{AIConnector as _0x30a88f}from'../aicore/aiconnector.js';import{AITabs as _0x891449}from'../aitabs/aitabs.js';import{AIChatConversation as _0xf38ae}from'./model/aichatconversation.js';import{getTranslation as _0x29d8c2}from'../aicore/utils/common-translations.js';import{AIModels as _0x53d1a7}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x492549}from'../aicore/utils/geteditorfromcontext.js';function _0x2d98(_0x3aa177,_0x59d766){const _0x225451=_0x2254();return _0x2d98=function(_0x2d982,_0x1954cf){_0x2d982=_0x2d982-0x153;let _0x1062fc=_0x225451[_0x2d982];return _0x1062fc;},_0x2d98(_0x3aa177,_0x59d766);}import{DocumentCompare as _0x18edb7,DATA_ID_MODEL_ATTRIBUTE as _0x13775e}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x301587,getOperationsFromReply as _0x16d706}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x70fb0c,getMinimalSelection as _0x378f79}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2bad35,_DetachOperation as _0x109653}from'ckeditor5/src/engine.js';function _0x2254(){const _0x6255ae=['afterInit','getAll','toViewRange','requires','addOperation','AITabs','next','getChild','editors','Undo','AIEditing','like','setState','setSelectedModel','addFilesToContext','index','init','filter','resource','content','setModel','ai.chat.context','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','sourceId','_scrollToSuggestionRange','addFeedItemUserMessage','setConversationTitle','populateSourceResourceBalloon','interactionFinished','updateFeedItemAIReplySuggestionPartState','replyCreated','_flushLastInteractionUI','resourceId','path','options','ai-chat-context-unsupported-type','activeConversation','data','load','36607472mPQiWz','from','dialogClosed','replies','ai.models','updateFeedItemAIReplyContent','interactionDestroyed','selectedModel','nextSibling','isModelAvailable','10WcrLKU','reasoningFinished','Showing\x20conversation\x20history...','toolDataReceived','insertSuggestion','fetchConversation','history','redo','_handleStartConversation','isCurrentDocumentInContext','capabilitiesUpdated','alignToTop','slice','getDocumentContext','changes','_setIsMaximized','interactionCreated','_aiChatBalloon','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateContent','showDiff','maxOffset','sourcePosition','get','clearConversationContextUI','locale','updateResourceState','uid','_stopLastInteraction','mapper','abortPromptStream','disableControls','findIndex','partIndex','updateCapabilities','isUploadInProgress','ai.models.defaultModelId','_aiEditing','_rejectSuggestion','_updateReplyContent','upsertAIChatRating','finishInteraction','_updateRatings','addCurrentDocumentToChatContext','state','ai-chat-source-resources-load-failed','getConversation','ai-chat-resource-load-failed','addResourceToContext','addFeedInteractionHeader','root','getAttribute','replyContentUpdated','config','batch','enableControls','remove','AI_CHAT_CONTEXT_INVALID_DATA','selectModel','getPath','_getLastCreatedConversationId','hasChanges','addFeedItemAIReply','range','removeFromContext','currentReply','loadSourceResources','areActionsDisabled','prepareLoadingMessage','ai-chat-controller-no-active-conversation','push','collaboration.channelId','ai-chat-context-form-data-size-limits-exceeded','_applySuggestion','updateFeedItemAIReplySuggestionContent','interactionId','95256GnSEGA','resources','AI_CHAT_CONTEXT_FILE_TOO_LARGE','getDocumentData','sources','modification','ai-chat-conversation-not-found','type','_registerToolDataCallback','forEach','dislike','rootName','isDocumentOperation','_openBalloonFor','776BIRKst','isCurrentDocumentInConversation','conversationInitialized','ai-chat-context-unsupported-file-type','AIChatController','contextItemRemoved','includes','domConverter','showNext','addFileToContext','map','removeSelectionFromContext','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','parse','addSelectionToChatContext','getContentParts','resetReasoningState','_integrateEditor','ai-chat-context-file-too-many-pages','16YHjONl','resizeTabs','AI_CHAT_UNTITLED_CONVERSATION','contextItems','node','addUrlToContext','documentContextContent','uploadProgressChanged','getRanges','mouseLeaveSuggestion','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','view','sourceResourcesLoaded','find','rejectSuggestion','source','data-id','sendUserMessage','resetMessageInput','ai-chat-file-upload-failed','setAddContextOptions','updateFeedItemAIReplySources','$graveyard','end','selection','_createFromRanges','isInContext','getGroupId','62344KsHMEY','open','error','_getDocumentRangeForReplyChanges','commands','changeGroups','_aiChatUi','removeContextItem','setIsUploadInProgress','resize','_logError','_bodyCollection','main','startConversation','showPrevious','executeCustomItemCallback','5501040FXYRdp','aiChatBalloon','indexes','plugins','removeFeedInteraction','viewRangeToDom','pending','messageId','setLoadingMessage','ai-request-aborted','anchorId','getOperations','ai-chat-url-upload-failed','focusPromptInput','addSelectionToContext','getChildren','bind','AIConnector','applySuggestion','3412784ujBpRq','split','addCurrentDocumentToContext','_getPresentableSiblingContentPartIndex','change','setContextItemLoading','new','showFakeVisualSelection','delegate','addContextItem','_showConversationHistory','detachFromDom','setConversationContext','isPremiumPlugin','replyId','toggleLoadingSkeleton','stop','resizedTabs','webSearchStarted','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','streaming','clearPendingContextUI','applyOperation','resetConversationTitle','context','closeSourceResourceBalloon','accepted','toString','unshift','text','query','AI_CHAT_ABORTED_MESSAGE','getConversations','addFeedItemStaticMessage','setIsMaximized','getTransformedByOperation','previous','resetWebSearchState','ai-no-track-changes','Liked\x20response','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','document','isOfficialPlugin','scrollFeedToSuggestion','mouseOverSuggestion','toggleWebSearch','marker','_toggleWebSearch','createRange','setChangeGroupState','clearLoadingMessage','chat','Disliked\x20response','reasoningStarted','toggleSuggestionDisplayMode','getInteraction','2173302rijyxQ','destroy','resourceStateChanged','setFeedItemRenderingStrategy','indexOf','revert','_removeFromContext','addContextOptionsChanged','activateTab','AI_CHAT_RESOURCE_LOAD_FAILED','loadConversation','createPositionAt','start','webSearchFinished','createReply','getRoot','uiId','createdAt','updateConversationTitle','addDocumentToContext','contextItemAdded','isDisabled','_insertSuggestion','_aiConnector','hideFakeVisualSelection','getChildAtOffset','handleUserInteraction','getReply','add','version','AI_CHAT_GENERIC_ERROR','static','AI_BALLOON_HEADER_TITLE','model','_startConversationSafely','listenTo','length','TrackChanges','current-document','_toggleReasoning','_aiChatModels','showChangeInText','ai-chat-context-file-too-large','addFeedItemCustomElement','TrackChangesEditing','ai-chat-context-invalid-data','undo','21855RABJbG','toggleReasoning','ai-chat-conversation-start-failed','AIChatUI','setFeedItemAIReplySuggestionPartActive','log','contextSent','ai-chat-conversation-init-failed','ai-chat-controller-mouse-over','DocumentCompare','AIChatBalloon','getSelectionText','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','has','ai.chat.initialConversation','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','addFeedItemError','startInteraction','AI_CHAT_UNABLE_TO_START_CONVERSATION','_aiChatBalloonShowDiff','howMany','close','set','callback','baseVersion','replyChangeGroupStateUpdated','lastCreated','isLoading','message','handleRemovedConversation','lastInteraction','startsWith','updateCurrentDocumentInContext','contextItem','pluginName','createPositionFromPath','startAutoScroll','_handleUIUserMessage','ready','cloneNode','sessionId','_getAIChatInteractionAPI','contextItemLoadingEnded','getInteractionAndReplyById','removed','_getUserPresentableContentPartDocumentRange','removeSelectionFromChatContext','rejected','_batchToChanges','_currentPreviewedChangeGroup','7cHAqEl','children','ai-conversation-','modelSelected','isStarted','fetchConversations','sendMessage','ai-chat-invalid-request','getFirstRange','attachToDom','_applyOperationsAsSuggestions','delete','interactionStarted','getDiff','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','createConversation','done','AI_CHAT_INVALID_REQUEST','stopInteraction','ai-chat-missing-channel-id','outdated','editing','addFeedItemAISuggestion'];_0x2254=function(){return _0x6255ae;};return _0x2254();}import{findOne as _0x3690c7,getAttribute as _0x1ddc41,serialize as _0x26e053,Document as _0x30afc6,findByAttribute as _0x53f05f}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x262ab6{[_0x1775be(0x25e)];[_0x1775be(0x1a7)];[_0x1775be(0x2c8)];[_0x1775be(0x1b8)];[_0x1775be(0x24a)];[_0x1775be(0x1ef)]=new Map();[_0x1775be(0x1f0)]=null;[_0x1775be(0x2cd)];static get[_0x1775be(0x20b)](){return[_0x30a88f,_0x18edb7];}static get[_0x1775be(0x1e1)](){const _0xf06ec9=_0x1775be;return _0xf06ec9(0x297);}static get[_0x1775be(0x182)](){return!0x0;}static get[_0x1775be(0x165)](){return!0x0;}[_0x1775be(0x218)](){const _0x3799ac=_0x1775be;this[_0x3799ac(0x2cd)]=new _0x41bd33(this[_0x3799ac(0x170)][_0x3799ac(0x252)]),this[_0x3799ac(0x2cd)][_0x3799ac(0x1fa)](),this[_0x3799ac(0x1a7)]=this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x250)](_0x3799ac(0x156)),this[_0x3799ac(0x2c8)]=this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x250)](_0x3799ac(0x1c2)),this[_0x3799ac(0x25e)]=this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x250)](_0x3799ac(0x212)),this[_0x3799ac(0x1b8)]=new _0x53d1a7({'connector':this[_0x3799ac(0x1a7)],'config':this[_0x3799ac(0x170)][_0x3799ac(0x26e)][_0x3799ac(0x250)](_0x3799ac(0x233)),'locale':this[_0x3799ac(0x170)][_0x3799ac(0x252)]});const _0x4c6b42=this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x250)](_0x3799ac(0x20d));this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2cf),()=>{const _0x4bb81f=_0x3799ac;this[_0x4bb81f(0x1b2)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2b7),(_0x344141,_0x41464d)=>{const _0x3577d5=_0x3799ac;this[_0x3577d5(0x1e4)]({'userMessage':_0x41464d});}),this[_0x3799ac(0x1b3)](_0x4c6b42,_0x3799ac(0x169),(_0x1150e3,_0x1e6710)=>{const _0x39bd2c=_0x3799ac;this[_0x39bd2c(0x248)](_0x1e6710);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2a7),()=>{const _0x37e023=_0x3799ac;_0x4c6b42[_0x37e023(0x2cb)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x257),async()=>{const _0x3c1a8c=_0x3799ac;await this[_0x3c1a8c(0x255)](),await this[_0x3c1a8c(0x227)](),this[_0x3c1a8c(0x1ed)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x1a3),()=>{const _0xc16ce1=_0x3799ac;this[_0xc16ce1(0x264)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x29c),(_0x28e1a2,_0x4225d0)=>{const _0x4ddca1=_0x3799ac;this[_0x4ddca1(0x22c)]?.[_0x4ddca1(0x216)](Array[_0x4ddca1(0x230)](_0x4225d0));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2ab),(_0x57af6d,_0x41ef43)=>{const _0x503876=_0x3799ac;this[_0x503876(0x22c)]?.[_0x503876(0x2ab)](_0x41ef43);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2d1),(_0x2a6132,_0x4b174b)=>{const _0x5adc80=_0x3799ac;_0x4b174b[_0x5adc80(0x1d6)](this[_0x5adc80(0x170)]);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x269),(_0x22d6d9,_0x5ccb9b)=>{const _0x182d08=_0x3799ac;this[_0x182d08(0x22c)]?.[_0x182d08(0x269)](_0x5ccb9b[_0x182d08(0x2b5)],_0x5ccb9b[_0x182d08(0x21a)]);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2c9),(_0x4f27bd,_0x12c4c0)=>{const _0x2d13ee=_0x3799ac;this[_0x2d13ee(0x196)](_0x12c4c0);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x27b),(_0x4ea16b,_0x48c836)=>{const _0x39a5d8=_0x3799ac;this[_0x39a5d8(0x22c)]?.[_0x39a5d8(0x27b)](_0x48c836[_0x39a5d8(0x21f)],_0x48c836[_0x39a5d8(0x176)],_0x48c836[_0x39a5d8(0x254)]);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x185),()=>{const _0x51a3f7=_0x3799ac;this[_0x51a3f7(0x187)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x1c0),()=>{const _0x226704=_0x3799ac;this[_0x226704(0x1b7)]();}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x273),(_0x6da1bc,_0x1e66cf)=>{const _0x476bc4=_0x3799ac;this[_0x476bc4(0x22c)]?.[_0x476bc4(0x21c)](_0x1e66cf);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x213),(_0x5450ca,{replyId:_0x4359d3})=>{const _0x47faed=_0x3799ac;console[_0x47faed(0x1c4)](_0x47faed(0x17f),_0x4359d3);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x28f),(_0xe7e068,{replyId:_0x2a710d})=>{const _0x459b3f=_0x3799ac;console[_0x459b3f(0x1c4)](_0x459b3f(0x18c),_0x2a710d);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x23d),(_0x5e933f,_0x38bbd2)=>{const _0xde56e4=_0x3799ac;this[_0xde56e4(0x1a6)](_0x38bbd2);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x1b9),(_0x56ebe1,{replyId:_0x20eab1,partIndex:_0x30109d})=>{const _0x432a91=_0x3799ac;this[_0x432a91(0x1d2)]=this[_0x432a91(0x2c8)][_0x432a91(0x24d)],this[_0x432a91(0x292)](_0x20eab1,_0x30109d);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x184),(_0x4130fa,{replyId:_0x2972b0,partIndex:_0xe2eb5a})=>{const _0x1f37d0=_0x3799ac,_0x17a3e6=this[_0x1f37d0(0x2c5)](_0x2972b0,_0xe2eb5a);_0x17a3e6&&_0x1f37d0(0x2bc)!=_0x17a3e6[_0x1f37d0(0x278)][_0x1f37d0(0x26b)][_0x1f37d0(0x290)]&&this[_0x1f37d0(0x25e)][_0x1f37d0(0x15f)]([_0x17a3e6[_0x1f37d0(0x278)]],_0x1f37d0(0x1c7));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2af),()=>{const _0x56c385=_0x3799ac;this[_0x56c385(0x25e)][_0x56c385(0x1a8)](_0x56c385(0x1c7));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x157),(_0x17939f,_0x47f5c7)=>{const _0x591b02=_0x3799ac;this[_0x591b02(0x25e)][_0x591b02(0x1a8)](_0x591b02(0x1c7)),this[_0x591b02(0x282)](_0x47f5c7);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x18e),async(_0x1f9b89,{replyId:_0x7797e7,showDiff:_0x217623})=>{const _0x5c9c72=_0x3799ac,{reply:_0x2521fc}=this[_0x5c9c72(0x1ea)](_0x7797e7),_0x4c7862=_0x2521fc[_0x5c9c72(0x2a2)]({'showDiff':_0x217623});await this[_0x5c9c72(0x2c8)][_0x5c9c72(0x283)]({'id':_0x2521fc['id'],'parts':_0x4c7862,'renderingStrategy':_0x5c9c72(0x1af)});}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x2c8)],_0x3799ac(0x2b4),(_0x1b90ae,{replyId:_0xbcc839,partIndex:_0x306eea})=>{const _0x528b38=_0x3799ac;this[_0x528b38(0x25f)]({'replyId':_0xbcc839,'partIndex':_0x306eea}),this[_0x528b38(0x25e)][_0x528b38(0x1a8)](_0x528b38(0x1c7));}),this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x1cc)](_0x3799ac(0x1c9))&&(this[_0x3799ac(0x24a)]=this[_0x3799ac(0x170)][_0x3799ac(0x2d5)][_0x3799ac(0x250)](_0x3799ac(0x1c9)),this[_0x3799ac(0x1d5)](_0x3799ac(0x1d2),!0x1),this[_0x3799ac(0x24a)][_0x3799ac(0x155)](_0x3799ac(0x24d))['to'](this,_0x3799ac(0x1d2)),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x18e),()=>{const _0x3e063c=_0x3799ac,{replyId:_0xfdd62a,partIndex:_0x5a2355}=this[_0x3e063c(0x1f0)];this[_0x3e063c(0x1d2)]=!this[_0x3e063c(0x1d2)];const {reply:_0x3cb404}=this[_0x3e063c(0x1ea)](_0xfdd62a),_0x53bec1=_0x3cb404[_0x3e063c(0x2a2)]({'showDiff':this[_0x3e063c(0x1d2)],'groupIndex':_0x5a2355});this[_0x3e063c(0x24a)][_0x3e063c(0x24c)]({'part':_0x53bec1[0x0],'renderingStrategy':_0x3e063c(0x1af),'keepErrors':!0x0});}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x157),()=>{const _0x2f09a0=_0x3799ac,{replyId:_0x525caf,partIndex:_0x107a7e}=this[_0x2f09a0(0x1f0)];this[_0x2f09a0(0x282)]({'replyId':_0x525caf,'partIndex':_0x107a7e}),this[_0x2f09a0(0x24a)][_0x2f09a0(0x214)](_0x2f09a0(0x172));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x23d),()=>{const _0x208c13=_0x3799ac,{replyId:_0x46449e,partIndex:_0x3ada6a}=this[_0x208c13(0x1f0)];this[_0x208c13(0x1a6)]({'replyId':_0x46449e,'partIndex':_0x3ada6a}),this[_0x208c13(0x24a)][_0x208c13(0x214)](_0x208c13(0x172));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x2b4),()=>{const _0x1a992b=_0x3799ac,{replyId:_0x4bd1a9,partIndex:_0xacd883}=this[_0x1a992b(0x1f0)];this[_0x1a992b(0x25f)]({'replyId':_0x4bd1a9,'partIndex':_0xacd883}),this[_0x1a992b(0x24a)][_0x1a992b(0x214)](_0x1a992b(0x1ee));}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x29b),()=>{const _0x5c916c=_0x3799ac,{replyId:_0x25cea2,partIndex:_0x508090}=this[_0x5c916c(0x1f0)],_0x4ffacf=this[_0x5c916c(0x15b)](_0x25cea2,_0x508090,_0x5c916c(0x20e));null!==_0x4ffacf&&this[_0x5c916c(0x292)](_0x25cea2,_0x4ffacf);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x2d0),()=>{const _0x1db18f=_0x3799ac,{replyId:_0x4d55d9,partIndex:_0x455712}=this[_0x1db18f(0x1f0)],_0x2aab79=this[_0x1db18f(0x15b)](_0x4d55d9,_0x455712,_0x1db18f(0x17c));null!==_0x2aab79&&this[_0x1db18f(0x292)](_0x4d55d9,_0x2aab79);}),this[_0x3799ac(0x1b3)](this[_0x3799ac(0x24a)],_0x3799ac(0x231),(_0x47a873,{id:_0x238f9a})=>{const _0x5183e6=_0x3799ac;if(_0x5183e6(0x2d3)!==_0x238f9a)return;const {replyId:_0x3597dc,partIndex:_0x3cebf0}=this[_0x5183e6(0x1f0)];this[_0x5183e6(0x1f0)]=null,this[_0x5183e6(0x2c8)][_0x5183e6(0x1c3)]({'id':_0x3597dc,'index':_0x3cebf0,'isActive':!0x1});}));}async[_0x1775be(0x208)](){const _0x22419d=_0x1775be;this[_0x22419d(0x170)]instanceof _0x26c198?this[_0x22419d(0x2a4)](this[_0x22419d(0x170)]):this[_0x22419d(0x1b3)](this[_0x22419d(0x170)][_0x22419d(0x210)],_0x22419d(0x1ac),(_0x1dae1b,_0x90275)=>{const _0x2cd057=_0x22419d;_0x90275['on'](_0x2cd057(0x1e5),()=>{const _0x1bfa16=_0x2cd057;this[_0x1bfa16(0x2a4)](_0x90275);});});const _0x339d66=this[_0x22419d(0x170)][_0x22419d(0x26e)][_0x22419d(0x250)](_0x22419d(0x1cd));let _0x4df90d=_0x339d66;if(_0x22419d(0x1d9)!=_0x339d66||(_0x4df90d=await this[_0x22419d(0x275)](),_0x4df90d))return _0x22419d(0x15e)==_0x4df90d?this[_0x22419d(0x1b2)]():this[_0x22419d(0x19a)](_0x4df90d);}async[_0x1775be(0x191)](){const _0x2de58d=_0x1775be;return await this[_0x2de58d(0x255)](),this[_0x2de58d(0x2cd)][_0x2de58d(0x163)](),super[_0x2de58d(0x191)]();}[_0x1775be(0x1a6)](_0x3c166a){const _0x588d6f=_0x1775be,_0x4912a7=_0x492549(this[_0x588d6f(0x170)]);if(!_0x4912a7[_0x588d6f(0x2d5)][_0x588d6f(0x1cc)](_0x588d6f(0x1b5)))throw new _0x3f2057(_0x588d6f(0x17e),null);const _0x2a5ef1=this[_0x588d6f(0x170)][_0x588d6f(0x2d5)][_0x588d6f(0x250)](_0x588d6f(0x1c8)),{reply:_0x53b566,interaction:_0x56cbd0}=this[_0x588d6f(0x1ea)](_0x3c166a[_0x588d6f(0x166)]),_0x3e13c2=this[_0x588d6f(0x2c5)](_0x3c166a[_0x588d6f(0x166)],_0x3c166a[_0x588d6f(0x25a)]),_0x4f1807=void 0x0!==_0x3c166a[_0x588d6f(0x25a)]?[_0x53b566[_0x588d6f(0x2c7)][_0x3c166a[_0x588d6f(0x25a)]]]:_0x53b566[_0x588d6f(0x2c7)][_0x588d6f(0x219)](_0x3f82ee=>_0x588d6f(0x2d8)==_0x3f82ee[_0x588d6f(0x265)]),_0x2ba504=_0x4f1807[_0x588d6f(0x29d)](_0x1eb40a=>_0x53b566[_0x588d6f(0x2c7)][_0x588d6f(0x194)](_0x1eb40a));if(!_0x3e13c2||_0x588d6f(0x2bc)==_0x3e13c2[_0x588d6f(0x278)][_0x588d6f(0x26b)][_0x588d6f(0x290)])return void _0x2ba504[_0x588d6f(0x28e)](_0x59c8b7=>_0x53b566[_0x588d6f(0x189)](_0x59c8b7,_0x588d6f(0x205)));_0x2ba504[_0x588d6f(0x28e)](_0x11e1a4=>_0x53b566[_0x588d6f(0x189)](_0x11e1a4,_0x588d6f(0x172)));const _0x239876=_0x16d706({'editor':_0x4912a7,'reply':_0x53b566,'interaction':_0x56cbd0,'groups':_0x4f1807,'transform':!0x0,'documentCompare':_0x2a5ef1,'documentCompareOptions':{'anchor':_0x588d6f(0x2ce),'markDeletions':!0x0}});let _0x50c7f3;_0x3e13c2&&this[_0x588d6f(0x220)](_0x3e13c2[_0x588d6f(0x278)]),_0x4912a7[_0x588d6f(0x1b1)][_0x588d6f(0x15c)](_0x330651=>{const _0x1f17b4=_0x588d6f;_0x50c7f3=_0x330651[_0x1f17b4(0x26f)],_0x4912a7[_0x1f17b4(0x2d5)][_0x1f17b4(0x250)](_0x1f17b4(0x1bc))[_0x1f17b4(0x1fb)](_0x239876),this[_0x1f17b4(0x25e)][_0x1f17b4(0x1a8)](_0x1f17b4(0x1c7));}),this[_0x588d6f(0x1ef)][_0x588d6f(0x1d5)](_0x50c7f3,{'interactionId':_0x56cbd0['id'],'replyId':_0x53b566['id'],'indexes':_0x2ba504[_0x588d6f(0x245)]()}),this[_0x588d6f(0x263)](_0x53b566);}[_0x1775be(0x282)](_0x4d2622){const _0x19d35e=_0x1775be,_0x8fcabb=_0x492549(this[_0x19d35e(0x170)]),_0x4ed8ba=this[_0x19d35e(0x170)][_0x19d35e(0x2d5)][_0x19d35e(0x250)](_0x18edb7),{reply:_0x4af97b,interaction:_0xbc5143}=this[_0x19d35e(0x1ea)](_0x4d2622[_0x19d35e(0x166)]),_0x4869aa=this[_0x19d35e(0x2c5)](_0x4d2622[_0x19d35e(0x166)],_0x4d2622[_0x19d35e(0x25a)]),_0x2a1b3a=void 0x0!==_0x4d2622[_0x19d35e(0x25a)]?[_0x4af97b[_0x19d35e(0x2c7)][_0x4d2622[_0x19d35e(0x25a)]]]:_0x4af97b[_0x19d35e(0x2c7)][_0x19d35e(0x219)](_0x1e972b=>_0x19d35e(0x2d8)==_0x1e972b[_0x19d35e(0x265)]),_0x5cb57d=_0x2a1b3a[_0x19d35e(0x29d)](_0x9678b2=>_0x4af97b[_0x19d35e(0x2c7)][_0x19d35e(0x194)](_0x9678b2));if(!_0x4869aa||_0x19d35e(0x2bc)==_0x4869aa[_0x19d35e(0x278)][_0x19d35e(0x26b)][_0x19d35e(0x290)])return void _0x5cb57d[_0x19d35e(0x28e)](_0x6bff1f=>_0x4af97b[_0x19d35e(0x189)](_0x6bff1f,_0x19d35e(0x205)));_0x5cb57d[_0x19d35e(0x28e)](_0x152175=>_0x4af97b[_0x19d35e(0x189)](_0x152175,_0x19d35e(0x172)));const _0xc2eb6b=_0x16d706({'editor':_0x8fcabb,'reply':_0x4af97b,'interaction':_0xbc5143,'groups':_0x2a1b3a,'transform':!0x0,'documentCompare':_0x4ed8ba,'documentCompareOptions':{'anchor':_0x19d35e(0x2ce),'markDeletions':!0x1}});let _0x33fb79;_0x4869aa&&this[_0x19d35e(0x220)](_0x4869aa[_0x19d35e(0x278)]),_0x8fcabb[_0x19d35e(0x1b1)][_0x19d35e(0x15c)](_0x4b000d=>{const _0x2e3581=_0x19d35e;_0x33fb79=_0x4b000d[_0x2e3581(0x26f)];for(const _0xac3307 of _0xc2eb6b)_0xac3307[_0x2e3581(0x1d7)]=_0x8fcabb[_0x2e3581(0x1b1)][_0x2e3581(0x181)][_0x2e3581(0x1ad)],_0x301587(_0x8fcabb,_0xac3307),_0x4b000d[_0x2e3581(0x26f)][_0x2e3581(0x20c)](_0xac3307),_0x8fcabb[_0x2e3581(0x1b1)][_0x2e3581(0x16e)](_0xac3307);}),this[_0x19d35e(0x1ef)][_0x19d35e(0x1d5)](_0x33fb79,{'interactionId':_0xbc5143['id'],'replyId':_0x4af97b['id'],'indexes':_0x5cb57d[_0x19d35e(0x245)]()}),this[_0x19d35e(0x263)](_0x4af97b);}[_0x1775be(0x25f)](_0x2bfd71){const _0x282882=_0x1775be,{reply:_0x542aa5}=this[_0x282882(0x1ea)](_0x2bfd71[_0x282882(0x166)]);_0x542aa5[_0x282882(0x189)](_0x2bfd71[_0x282882(0x25a)],_0x282882(0x1ee));}[_0x1775be(0x292)](_0x35ff7c,_0x596268){const _0x10dea3=_0x1775be;if(!this[_0x10dea3(0x24a)])return;const {reply:_0x5d98e8}=this[_0x10dea3(0x1ea)](_0x35ff7c),_0x2c67b2=_0x5d98e8[_0x10dea3(0x2a2)]({'showDiff':this[_0x10dea3(0x1d2)]});let _0x1f6392,_0x377de1;if(void 0x0!==_0x596268?(_0x377de1=_0x2c67b2[_0x10dea3(0x2b3)](_0x2b8778=>_0x2b8778[_0x10dea3(0x217)]==_0x596268),_0x1f6392=_0x377de1?.[_0x10dea3(0x217)]):(_0x377de1=_0x2c67b2[0x0],_0x1f6392=_0x377de1[_0x10dea3(0x217)]),this[_0x10dea3(0x1f0)]?.[_0x10dea3(0x166)]==_0x35ff7c&&this[_0x10dea3(0x1f0)]?.[_0x10dea3(0x25a)]==_0x1f6392)return;const _0x25c9df=this[_0x10dea3(0x1ec)](_0x35ff7c,_0x5d98e8,_0x377de1);if(!_0x25c9df)return void this[_0x10dea3(0x24a)][_0x10dea3(0x1d4)]();this[_0x10dea3(0x1f0)]={'replyId':_0x35ff7c,'partIndex':_0x1f6392},this[_0x10dea3(0x220)](_0x25c9df,!0x0);const _0xe6d502=this[_0x10dea3(0x15b)](_0x35ff7c,_0x1f6392,_0x10dea3(0x20e));this[_0x10dea3(0x24a)][_0x10dea3(0x24c)]({'part':_0x377de1,'renderingStrategy':_0x10dea3(0x1af)}),this[_0x10dea3(0x24a)][_0x10dea3(0x2c3)]({'index':_0x1f6392,'title':_0x29d8c2(this[_0x10dea3(0x170)][_0x10dea3(0x252)],_0x10dea3(0x1b0),(_0x1f6392+0x1)[_0x10dea3(0x173)]()),'showRotator':null!==_0xe6d502,'ranges':[_0x25c9df],'areActionsDisabled':_0x5d98e8[_0x10dea3(0x27c)]}),this[_0x10dea3(0x24a)][_0x10dea3(0x214)](_0x10dea3(0x2d8)),this[_0x10dea3(0x2c8)][_0x10dea3(0x183)](_0x35ff7c,_0x1f6392),this[_0x10dea3(0x2c8)][_0x10dea3(0x1c3)]({'id':_0x35ff7c,'index':_0x1f6392,'isActive':!0x0});}[_0x1775be(0x15b)](_0x3ab993,_0x44f89e,_0x2a4cf2){const _0x34be66=_0x1775be,{reply:_0x27a67}=this[_0x34be66(0x1ea)](_0x3ab993),_0x33b71a=_0x27a67[_0x34be66(0x2a2)]({'showDiff':this[_0x34be66(0x1d2)]});if(0x1==_0x33b71a[_0x34be66(0x1b4)])return null;const _0x25c7e4=_0x33b71a[_0x34be66(0x259)](_0x9401c7=>_0x9401c7[_0x34be66(0x217)]==_0x44f89e),_0x326880=_0x34be66(0x20e)==_0x2a4cf2?0x1:-0x1;let _0x2690fb=_0x33b71a['at']((_0x25c7e4+_0x326880)%_0x33b71a[_0x34be66(0x1b4)])[_0x34be66(0x217)],_0x20a8b1=_0x33b71a[_0x2690fb];for(;!this[_0x34be66(0x1ec)](_0x3ab993,_0x27a67,_0x20a8b1);){if(_0x2690fb=_0x33b71a['at']((_0x2690fb+_0x326880)%_0x33b71a[_0x34be66(0x1b4)])[_0x34be66(0x217)],_0x2690fb===_0x25c7e4)return null;_0x20a8b1=_0x33b71a[_0x2690fb];}return _0x2690fb;}[_0x1775be(0x1ec)](_0x51fc8d,_0x3c1372,_0x3f596b){const _0x5a1287=_0x1775be,_0x4cd1d5=_0x3c1372[_0x5a1287(0x2c7)];if(!_0x3f596b[_0x5a1287(0x276)])return null;const _0x2f407a=_0x4cd1d5[_0x5a1287(0x2b3)](_0x2fa190=>_0x2fa190[_0x5a1287(0x217)]==_0x3f596b[_0x5a1287(0x217)]);if(_0x5a1287(0x2d8)!==_0x2f407a?.[_0x5a1287(0x265)])return null;const _0xbd3cba=this[_0x5a1287(0x2c5)](_0x51fc8d,_0x3f596b[_0x5a1287(0x217)]);if(!_0xbd3cba)return null;const {range:_0x14ed88,currentIndex:_0x47755c}=_0xbd3cba;return _0x5a1287(0x2bc)==_0x14ed88[_0x5a1287(0x26b)][_0x5a1287(0x290)]?(_0x3c1372[_0x5a1287(0x189)](_0x47755c,_0x5a1287(0x205)),null):_0xbd3cba[_0x5a1287(0x278)];}[_0x1775be(0x2c5)](_0x2ade77,_0x1c82de){const _0x57f5d9=_0x1775be,_0x14eba2=_0x492549(this[_0x57f5d9(0x170)]),{reply:_0x5b9154,interaction:_0x3617e7}=this[_0x57f5d9(0x1ea)](_0x2ade77),_0x5eca21=_0x5b9154[_0x57f5d9(0x2c7)][_0x57f5d9(0x219)](_0x5ae1b6=>_0x57f5d9(0x2d8)==_0x5ae1b6[_0x57f5d9(0x265)]),_0x217d14=_0x5eca21[_0x57f5d9(0x29d)](_0x2d501d=>_0x5b9154[_0x57f5d9(0x2c7)][_0x57f5d9(0x194)](_0x2d501d));void 0x0===_0x1c82de&&(_0x1c82de=_0x217d14[0x0]);const _0x41a355=_0x217d14[_0x57f5d9(0x194)](_0x1c82de);if(-0x1==_0x41a355)return null;const _0x2f4fb3=_0x5eca21[_0x41a355],_0x425d55=new _0x30afc6([]),_0x35e44a=new _0x30afc6([]);for(const _0x194a41 of _0x2f4fb3[_0x57f5d9(0x247)])if(_0x57f5d9(0x1eb)!=_0x194a41[_0x57f5d9(0x28c)]&&_0x35e44a[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x194a41[_0x57f5d9(0x2aa)][_0x57f5d9(0x1e6)](!0x0)),_0x57f5d9(0x15e)!=_0x194a41[_0x57f5d9(0x28c)]){const _0x153f32=_0x3690c7(_0x37e73e=>_0x1ddc41(_0x37e73e,_0x57f5d9(0x2b6))==_0x194a41['id'],_0x5b9154[_0x57f5d9(0x2ac)],!0x0);_0x425d55[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x153f32[_0x57f5d9(0x1e6)](!0x0));}if(0x0==_0x425d55[_0x57f5d9(0x1f2)][_0x57f5d9(0x1b4)]){if(_0x2f4fb3[_0x57f5d9(0x247)][0x0][_0x57f5d9(0x2dc)]){const _0x21bd98=_0x53f05f(_0x57f5d9(0x2b6),_0x2f4fb3[_0x57f5d9(0x247)][0x0][_0x57f5d9(0x2dc)],_0x5b9154[_0x57f5d9(0x2ac)]);_0x425d55[_0x57f5d9(0x1f2)][_0x57f5d9(0x174)](_0x21bd98[_0x57f5d9(0x1e6)](!0x0)),_0x35e44a[_0x57f5d9(0x1f2)][_0x57f5d9(0x174)](_0x21bd98[_0x57f5d9(0x1e6)](!0x0)),_0x21bd98[_0x57f5d9(0x237)]&&(_0x425d55[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x21bd98[_0x57f5d9(0x237)][_0x57f5d9(0x1e6)](!0x0)),_0x35e44a[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x21bd98[_0x57f5d9(0x237)][_0x57f5d9(0x1e6)](!0x0)));}else{const _0x9e40c5=_0x5b9154[_0x57f5d9(0x2ac)][_0x57f5d9(0x1f2)][0x0];if(!_0x9e40c5)return null;_0x425d55[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x9e40c5[_0x57f5d9(0x1e6)](!0x0)),_0x35e44a[_0x57f5d9(0x1f2)][_0x57f5d9(0x27f)](_0x9e40c5[_0x57f5d9(0x1e6)](!0x0));}}const _0x5e3ce8=_0x3617e7[_0x57f5d9(0x246)](),_0x85fbdc=_0x14eba2[_0x57f5d9(0x22d)][_0x57f5d9(0x2a0)](_0x5e3ce8[_0x57f5d9(0x21b)]),_0x26af26=_0x26e053(_0x425d55),_0x58f06d=_0x14eba2[_0x57f5d9(0x22d)][_0x57f5d9(0x2a0)](_0x26af26),_0x423b22=_0x14eba2[_0x57f5d9(0x22d)][_0x57f5d9(0x2a0)](_0x26af26),_0x36ac48=_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x19b)](_0x58f06d,0x0),_0x59a583=_0x26e053(_0x35e44a),_0xdc3140={'anchor':_0x36ac48,'markDeletions':!0x1},_0x45254d=_0x14eba2[_0x57f5d9(0x2d5)][_0x57f5d9(0x250)](_0x18edb7)[_0x57f5d9(0x1fe)](_0x26af26,_0x59a583,_0xdc3140)[_0x57f5d9(0x2dd)]();if(!_0x45254d[_0x57f5d9(0x1b4)])return null;_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x15c)](_0xf646e1=>{const _0x5b0204=_0x57f5d9;for(const _0x52cb43 of _0x45254d)if(_0x5b0204(0x271)==_0x52cb43[_0x5b0204(0x28c)]){const _0x1ddae1=_0x52cb43[_0x5b0204(0x24f)],_0x41d8ba=_0x52cb43[_0x5b0204(0x1d3)],_0x4a02c8=new _0x109653(_0x1ddae1,_0x41d8ba);_0xf646e1[_0x5b0204(0x26f)][_0x5b0204(0x20c)](_0x4a02c8),_0x14eba2[_0x5b0204(0x1b1)][_0x5b0204(0x16e)](_0x4a02c8);}else _0x5b0204(0x186)!==_0x52cb43[_0x5b0204(0x28c)]&&(_0x52cb43[_0x5b0204(0x1d7)]=null,_0x52cb43[_0x5b0204(0x291)]=!0x1,_0xf646e1[_0x5b0204(0x26f)][_0x5b0204(0x20c)](_0x52cb43),_0x14eba2[_0x5b0204(0x1b1)][_0x5b0204(0x16e)](_0x52cb43));});const _0x48a987=_0x378f79(_0x14eba2,_0x45254d,_0x58f06d);_0x70fb0c(_0x14eba2[_0x57f5d9(0x1b1)],_0x48a987);const _0x20d2f0=_0x48a987[_0x57f5d9(0x1f9)]()[_0x57f5d9(0x19c)][_0x57f5d9(0x229)][_0x57f5d9(0x245)](),_0x85d466=_0x48a987[_0x57f5d9(0x1f9)]()[_0x57f5d9(0x2bd)][_0x57f5d9(0x229)][_0x57f5d9(0x245)](),_0x355ef0=[];let _0x5a0c11=_0x58f06d,_0x16c561=_0x423b22;for(let _0x2151ec=0x0;_0x2151ec<_0x85d466[_0x57f5d9(0x1b4)];_0x2151ec++){const _0xfca688=_0x5a0c11[_0x57f5d9(0x24e)]-_0x85d466[_0x2151ec];_0x355ef0[_0x2151ec]=_0x16c561[_0x57f5d9(0x24e)]-_0xfca688,_0x5a0c11=_0x5a0c11[_0x57f5d9(0x1a9)](_0x85d466[_0x2151ec]),_0x16c561=_0x16c561[_0x57f5d9(0x1a9)](_0x355ef0[_0x2151ec]);}const _0x5980d1=_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x188)](_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x1e2)](_0x423b22,_0x20d2f0),_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x1e2)](_0x423b22,_0x355ef0)),_0xa54b9d=_0x423b22[_0x57f5d9(0x20f)](0x0)[_0x57f5d9(0x26c)](_0x13775e),_0x2f32dd=Array[_0x57f5d9(0x230)](_0x85fbdc[_0x57f5d9(0x154)]())[_0x57f5d9(0x2b3)](_0x45d3a9=>_0x45d3a9[_0x57f5d9(0x26c)](_0x13775e)==_0xa54b9d)[_0x57f5d9(0x274)](),_0x2fb17c=_0x5980d1[_0x57f5d9(0x19c)][_0x57f5d9(0x229)][_0x57f5d9(0x245)](),_0x24246a=_0x5980d1[_0x57f5d9(0x2bd)][_0x57f5d9(0x229)][_0x57f5d9(0x245)]();_0x2fb17c[0x0]=_0x2f32dd[0x0]+_0x2fb17c[0x0],_0x24246a[0x0]=_0x2f32dd[0x0]+_0x24246a[0x0];let _0x1a6634=_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x188)](_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x1e2)](_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x181)][_0x57f5d9(0x19f)](),_0x2fb17c),_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x1e2)](_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x181)][_0x57f5d9(0x19f)](),_0x24246a));const _0x3bd3a1=_0x14eba2[_0x57f5d9(0x1b1)][_0x57f5d9(0x181)][_0x57f5d9(0x23f)][_0x57f5d9(0x2dd)](_0x5e3ce8[_0x57f5d9(0x1ad)]);for(const _0x457a2b of _0x3bd3a1)_0x1a6634=_0x2bad35[_0x57f5d9(0x2bf)](_0x1a6634[_0x57f5d9(0x17b)](_0x457a2b));return{'range':_0x1a6634,'currentIndex':_0x1c82de};}[_0x1775be(0x2a4)](_0x323266){const _0x4363e5=_0x1775be;if(!_0x323266[_0x4363e5(0x2d5)][_0x4363e5(0x1cc)](_0x4363e5(0x211)))return;const _0x51f85c=_0x323266[_0x4363e5(0x2c6)][_0x4363e5(0x250)](_0x4363e5(0x1be)),_0x497496=_0x323266[_0x4363e5(0x2c6)][_0x4363e5(0x250)](_0x4363e5(0x240));this[_0x4363e5(0x1b3)](_0x51f85c,_0x4363e5(0x195),(_0x34f452,_0x5648e8,_0x2451ee)=>{const _0x502c80=_0x4363e5,_0x1b74d6=this[_0x502c80(0x1ef)][_0x502c80(0x250)](_0x5648e8);if(!_0x1b74d6)return;const _0x185354=this[_0x502c80(0x22c)][_0x502c80(0x18f)](_0x1b74d6[_0x502c80(0x284)])[_0x502c80(0x1ab)](_0x1b74d6[_0x502c80(0x166)]);_0x1b74d6[_0x502c80(0x2d4)][_0x502c80(0x28e)](_0x4990a5=>_0x185354[_0x502c80(0x189)](_0x4990a5,_0x502c80(0x2d8))),this[_0x502c80(0x1ef)][_0x502c80(0x1fc)](_0x5648e8),this[_0x502c80(0x1ef)][_0x502c80(0x1d5)](_0x2451ee,_0x1b74d6);}),this[_0x4363e5(0x1b3)](_0x497496,_0x4363e5(0x195),(_0x33baab,_0x112972,_0x140efc)=>{const _0xa8626=_0x4363e5,_0x14da0b=this[_0xa8626(0x1ef)][_0xa8626(0x250)](_0x112972);if(!_0x14da0b)return;const _0x6cf474=this[_0xa8626(0x22c)][_0xa8626(0x18f)](_0x14da0b[_0xa8626(0x284)])[_0xa8626(0x1ab)](_0x14da0b[_0xa8626(0x166)]);_0x14da0b[_0xa8626(0x2d4)][_0xa8626(0x28e)](_0x1c5b4c=>_0x6cf474[_0xa8626(0x189)](_0x1c5b4c,_0xa8626(0x172))),this[_0xa8626(0x1ef)][_0xa8626(0x1fc)](_0x112972),this[_0xa8626(0x1ef)][_0xa8626(0x1d5)](_0x140efc,_0x14da0b);});}async[_0x1775be(0x19a)](_0x202e50){const _0x470433=_0x1775be;this[_0x470433(0x170)][_0x470433(0x2d5)][_0x470433(0x1cc)](_0x470433(0x1c9))&&this[_0x470433(0x170)][_0x470433(0x2d5)][_0x470433(0x250)](_0x470433(0x1c9))[_0x470433(0x1d4)](),(this[_0x470433(0x170)][_0x470433(0x2d5)][_0x470433(0x250)](_0x891449)[_0x470433(0x2b1)][_0x470433(0x198)](_0x470433(0x18b)),this[_0x470433(0x2c8)][_0x470433(0x193)](_0x470433(0x1af)),this[_0x470433(0x2c8)][_0x470433(0x167)](!0x0),await this[_0x470433(0x255)]());try{await this[_0x470433(0x1a7)][_0x470433(0x23e)](_0x202e50)[_0x470433(0x267)](),await this[_0x470433(0x1b2)](_0x202e50),this[_0x470433(0x1a2)]('\x20'),await this[_0x470433(0x22c)][_0x470433(0x22e)](_0x202e50,this[_0x470433(0x25e)][_0x470433(0x1e7)]),this[_0x470433(0x22c)][_0x470433(0x294)]()&&this[_0x470433(0x264)]();}catch(_0x458a43){this[_0x470433(0x2c8)][_0x470433(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x470433(0x170)][_0x470433(0x252)],_0x470433(0x1ce)),'id':_0x202e50}),this[_0x470433(0x2cc)](new _0x3f2057(_0x470433(0x28b),this,{'error':_0x458a43}));}finally{this[_0x470433(0x2c8)][_0x470433(0x1e3)](),this[_0x470433(0x2c8)][_0x470433(0x193)](_0x470433(0x16c)),this[_0x470433(0x2c8)][_0x470433(0x167)](!0x1);}}async[_0x1775be(0x275)](){const _0xd1ca40=_0x1775be,_0x44e7dd=this[_0xd1ca40(0x1a7)][_0xd1ca40(0x1f6)](this[_0xd1ca40(0x2c1)](),{'limit':0x1,'sortBy':_0xd1ca40(0x1a1)});try{const _0x422da6=await _0x44e7dd[_0xd1ca40(0x178)]();return _0x422da6[_0xd1ca40(0x1b4)]?_0x422da6[0x0]['id']:_0xd1ca40(0x15e);}catch(_0x39cfec){return this[_0xd1ca40(0x2c8)][_0xd1ca40(0x1cf)]({'errorMessage':_0x29d8c2(this[_0xd1ca40(0x170)][_0xd1ca40(0x252)],_0xd1ca40(0x1ce)),'id':_0x2a93b7()}),this[_0xd1ca40(0x2cc)](new _0x3f2057(_0xd1ca40(0x1c6),this,{'error':_0x39cfec})),this[_0xd1ca40(0x2c8)][_0xd1ca40(0x167)](!0x1),this[_0xd1ca40(0x2c8)][_0xd1ca40(0x258)](),null;}}[_0x1775be(0x1dc)](_0x1ff232){const _0x29f708=_0x1775be;this[_0x29f708(0x22c)]['id']===_0x1ff232&&this[_0x29f708(0x1b2)]();}[_0x1775be(0x264)](){const _0x509977=_0x1775be;this[_0x509977(0x22c)]?.[_0x509977(0x15a)](_0x29d8c2(this[_0x509977(0x170)][_0x509977(0x252)],_0x509977(0x180)));}async[_0x1775be(0x2a1)](){const _0xf52ae4=_0x1775be,_0x156d99=this[_0xf52ae4(0x25e)][_0xf52ae4(0x1ca)]();this[_0xf52ae4(0x22c)]?.[_0xf52ae4(0x153)](_0x156d99),this[_0xf52ae4(0x264)]();}[_0x1775be(0x1ed)](){const _0x19b528=_0x1775be;this[_0x19b528(0x22c)]?.[_0x19b528(0x29e)]();}[_0x1775be(0x2df)](){const _0x375acb=_0x1775be;this[_0x375acb(0x2c8)][_0x375acb(0x2df)]();}async[_0x1775be(0x2cf)](){const _0x5e49f0=_0x1775be;await this[_0x5e49f0(0x1b2)]();}async[_0x1775be(0x1f7)]({message:_0x281f72,attributes:_0x549fc5}){const _0x428bfc=_0x1775be;await this[_0x428bfc(0x1e4)]({'userMessage':_0x281f72,'attributes':_0x549fc5});}[_0x1775be(0x2c1)](){const _0x4f3000=_0x1775be,_0x18b68a=this[_0x4f3000(0x170)][_0x4f3000(0x26e)][_0x4f3000(0x250)](_0x4f3000(0x280));if(!_0x18b68a)throw new _0x3f2057(_0x4f3000(0x204),this);return _0x18b68a;}async[_0x1775be(0x1b2)](_0x5e1dca){const _0x28f048=_0x1775be;try{this[_0x28f048(0x2c8)][_0x28f048(0x270)](),await this[_0x28f048(0x241)](_0x5e1dca);}catch(_0x59fa23){this[_0x28f048(0x2c8)][_0x28f048(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x28f048(0x170)][_0x28f048(0x252)],_0x28f048(0x1d1)),'id':_0x5e1dca||_0x2a93b7()}),console[_0x28f048(0x2c4)](_0x59fa23),this[_0x28f048(0x22c)]=void 0x0,this[_0x28f048(0x2c8)][_0x28f048(0x258)]();}}async[_0x1775be(0x241)](_0x43c1a6){const _0x80711c=_0x1775be;let _0x22d69b;this[_0x80711c(0x170)][_0x80711c(0x2d5)][_0x80711c(0x1cc)](_0x80711c(0x1c9))&&this[_0x80711c(0x170)][_0x80711c(0x2d5)][_0x80711c(0x250)](_0x80711c(0x1c9))[_0x80711c(0x1d4)](),_0x43c1a6||!this[_0x80711c(0x22c)]?_0x22d69b=this[_0x80711c(0x170)][_0x80711c(0x26e)][_0x80711c(0x250)](_0x80711c(0x25d)):this[_0x80711c(0x2c8)][_0x80711c(0x238)]&&(_0x22d69b=this[_0x80711c(0x22c)][_0x80711c(0x236)]['id']),await this[_0x80711c(0x255)]();const _0x49f79e=this[_0x80711c(0x2c1)](),_0x126329=_0x43c1a6||_0x2a93b7();this[_0x80711c(0x22c)]=new _0xf38ae({'connector':this[_0x80711c(0x1a7)],'chatModels':this[_0x80711c(0x1b8)],'selectedModelId':_0x22d69b,'conversationId':_0x126329,'group':_0x49f79e,'getEditor':()=>_0x492549(this[_0x80711c(0x170)]),'isFromHistory':!!_0x43c1a6}),this[_0x80711c(0x22c)][_0x80711c(0x160)](_0x80711c(0x23c),_0x80711c(0x1fd))['to'](this),this[_0x80711c(0x22c)]['on'](_0x80711c(0x295),(_0x4f0693,_0xba8ee9)=>{const _0x44e53b=_0x80711c;this[_0x44e53b(0x2c8)][_0x44e53b(0x200)](_0xba8ee9),this[_0x44e53b(0x2c8)][_0x44e53b(0x2b8)](),this[_0x44e53b(0x2c8)][_0x44e53b(0x16d)](),this[_0x44e53b(0x2c8)][_0x44e53b(0x251)](),_0x43c1a6||(this[_0x44e53b(0x2c8)][_0x44e53b(0x16f)](),this[_0x44e53b(0x264)]());}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x2ad),(_0x10cbc4,_0x2f2df9)=>{const _0x75ead0=_0x80711c;this[_0x75ead0(0x2c8)][_0x75ead0(0x2ca)](_0x2f2df9[_0x75ead0(0x25c)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x249),(_0x5dc49d,_0xc4f320)=>{const _0x466788=_0x80711c;this[_0x466788(0x2c8)][_0x466788(0x221)](_0xc4f320);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x16a),()=>{const _0x2d04eb=_0x80711c,_0x576eae=this[_0x2d04eb(0x2c8)][_0x2d04eb(0x27d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x2d04eb(0x2c8)][_0x2d04eb(0x2da)](_0x576eae);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x18d),()=>{const _0x105691=_0x80711c,_0x2ab68f=this[_0x105691(0x2c8)][_0x105691(0x27d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x105691(0x2c8)][_0x105691(0x2da)](_0x2ab68f);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x19d),(_0x258c92,_0x4fa96f)=>{const _0x604f07=_0x80711c;this[_0x604f07(0x2c8)][_0x604f07(0x26a)](_0x4fa96f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x23a),(_0x1268dc,_0x2b7174)=>{const _0x57fbe9=_0x80711c;this[_0x57fbe9(0x2c8)][_0x57fbe9(0x26a)](_0x2b7174,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1fd),()=>{const _0x5daa35=_0x80711c;this[_0x5daa35(0x2c8)][_0x5daa35(0x1d0)]();}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x224),async()=>{const _0x4c8d48=_0x80711c;await this[_0x4c8d48(0x2c8)][_0x4c8d48(0x262)]();}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x235),(_0x4c3fcb,_0x585428)=>{const _0x482807=_0x80711c;this[_0x482807(0x2c8)][_0x482807(0x2d6)](_0x585428['id']);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x222),(_0x5c1ed9,_0x5300b2,_0x914275)=>{const _0x4fcb84=_0x80711c;this[_0x4fcb84(0x1a2)](_0x5300b2,_0x914275);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x226),(_0x1a64fd,_0x447113)=>{const _0x2530c9=_0x80711c;_0x2530c9(0x175)===_0x447113[_0x2530c9(0x28c)]?this[_0x2530c9(0x2c8)][_0x2530c9(0x277)](_0x447113):this[_0x2530c9(0x2c8)][_0x2530c9(0x207)](_0x447113);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x26d),async(_0x58ece7,_0x18d811)=>{const _0x2563f4=_0x80711c;await this[_0x2563f4(0x260)]({'reply':_0x18d811});}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1d8),(_0x1af767,{reply:_0x35438d,index:_0x4d9002,state:_0x137e13})=>{const _0x1465a5=_0x80711c;this[_0x1465a5(0x2c8)][_0x1465a5(0x225)]({'id':_0x35438d['id'],'index':_0x4d9002,'state':_0x137e13}),this[_0x1465a5(0x1f0)]?.[_0x1465a5(0x166)][_0x1465a5(0x299)](_0x35438d['id'])&&this[_0x1465a5(0x1f0)]?.[_0x1465a5(0x25a)]==_0x4d9002&&this[_0x1465a5(0x24a)]?.[_0x1465a5(0x214)](_0x137e13);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1a4),(_0x55c322,_0x44d2eb)=>{const _0x3a9abb=_0x80711c;if(this[_0x3a9abb(0x2c8)][_0x3a9abb(0x161)](_0x44d2eb[_0x3a9abb(0x1e0)],_0x44d2eb[_0x3a9abb(0x1da)]),_0x3a9abb(0x2be)===_0x44d2eb[_0x3a9abb(0x1e0)][_0x3a9abb(0x28c)]){const _0x3db225=[..._0x492549(this[_0x3a9abb(0x170)])[_0x3a9abb(0x1b1)][_0x3a9abb(0x181)][_0x3a9abb(0x2be)][_0x3a9abb(0x2ae)]()];this[_0x3a9abb(0x25e)][_0x3a9abb(0x15f)](_0x3db225,_0x3a9abb(0x1f3)+this[_0x3a9abb(0x22c)]?.['id']);}}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x298),(_0x443136,_0x410938)=>{const _0x4bd508=_0x80711c;this[_0x4bd508(0x2c8)][_0x4bd508(0x2c9)](_0x410938[_0x4bd508(0x1a0)]),_0x4bd508(0x1b6)==_0x410938[_0x4bd508(0x1a0)]&&this[_0x4bd508(0x1ed)](),_0x4bd508(0x2be)===_0x410938[_0x4bd508(0x28c)]&&this[_0x4bd508(0x25e)][_0x4bd508(0x1a8)](_0x4bd508(0x1f3)+this[_0x4bd508(0x22c)]?.['id']);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1e9),(_0x149c2b,_0x9b47)=>{const _0x54d8e6=_0x80711c;this[_0x54d8e6(0x2c8)][_0x54d8e6(0x15d)](_0x9b47[_0x54d8e6(0x1e0)][_0x54d8e6(0x1a0)],_0x9b47[_0x54d8e6(0x1da)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1c5),(_0x5b6c9b,_0x1133df)=>{const _0x2e1406=_0x80711c;this[_0x2e1406(0x2c8)][_0x2e1406(0x164)](_0x1133df[_0x2e1406(0x2a9)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x197),(_0x50fb81,_0x16e6b7)=>{const _0x5ad377=_0x80711c;this[_0x5ad377(0x2c8)][_0x5ad377(0x2ba)](_0x16e6b7[_0x5ad377(0x22a)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x2b2),(_0x42a94a,_0x4403f0)=>{const _0x56e748=_0x80711c;this[_0x56e748(0x2c8)][_0x56e748(0x223)](_0x4403f0[_0x56e748(0x21f)],_0x4403f0[_0x56e748(0x2b5)],_0x4403f0[_0x56e748(0x286)],_0x4403f0[_0x56e748(0x254)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x192),(_0x4373b0,_0x26fd7f)=>{const _0x4f4df3=_0x80711c;this[_0x4f4df3(0x2c8)][_0x4f4df3(0x253)](_0x26fd7f[_0x4f4df3(0x21f)],_0x26fd7f[_0x4f4df3(0x228)],_0x26fd7f[_0x4f4df3(0x2c0)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x243),(_0x2521a3,_0x426cc1)=>{const _0x247b6a=_0x80711c;this[_0x247b6a(0x2c8)][_0x247b6a(0x25b)](_0x426cc1);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x1f4),async(_0x222a5f,_0x7b66dc)=>{const _0x1a23ad=_0x80711c,_0x1a97e7=(await this[_0x1a23ad(0x1b8)][_0x1a23ad(0x209)]())[_0x1a23ad(0x2b3)](_0xd02976=>_0xd02976['id']===_0x7b66dc[_0x1a23ad(0x236)]['id'])||null;this[_0x1a23ad(0x2c8)][_0x1a23ad(0x215)](_0x1a97e7,_0x7b66dc[_0x1a23ad(0x1a5)]);}),this[_0x80711c(0x22c)]['on'](_0x80711c(0x2c4),(_0x558cf0,{error:_0x47b42f,interactionId:_0x58b07c,fileName:_0x53ec81,url:_0x4de110,sourceId:_0x501d85,sourceLabel:_0x1f66d4})=>{const _0x5557e4=_0x80711c,_0x36ae01=_0x58b07c?_0x58b07c+':'+_0x2a93b7():_0x2a93b7();_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x2db))?this[_0x5557e4(0x2c8)][_0x5557e4(0x179)]({'staticMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x177)),'id':_0x36ae01}):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x1c6))||_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x1c1))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x1d1)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x2b9))?this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x24b),_0x53ec81),'id':_0x36ae01}):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x2de))?this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x1cb),_0x4de110),'id':_0x36ae01}):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x1bd))?this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x272)),'id':_0x36ae01}):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x22b))?this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x2b0)),'id':_0x36ae01}):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x266))?(_0x501d85&&this[_0x5557e4(0x2c8)][_0x5557e4(0x171)](_0x501d85),this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x1ff),_0x1f66d4||_0x5557e4(0x2b5)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x268))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x199)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x1f8))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x202)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x296))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x16b)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x1ba))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x287)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x2a5))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x21e)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):_0x47b42f[_0x5557e4(0x1db)][_0x5557e4(0x1de)](_0x5557e4(0x281))?(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x29f)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f)):(this[_0x5557e4(0x2c8)][_0x5557e4(0x1cf)]({'errorMessage':_0x29d8c2(this[_0x5557e4(0x170)][_0x5557e4(0x252)],_0x5557e4(0x1ae)),'id':_0x36ae01}),this[_0x5557e4(0x2cc)](_0x47b42f));}),await this[_0x80711c(0x22c)][_0x80711c(0x218)](this[_0x80711c(0x170)][_0x80711c(0x26e)][_0x80711c(0x250)](_0x80711c(0x21d))),_0x43c1a6||await this[_0x80711c(0x22c)][_0x80711c(0x19c)]();}async[_0x1775be(0x1e4)]({userMessage:_0x322066,attributes:_0x17b096}){const _0x460e91=_0x1775be;if(!this[_0x460e91(0x22c)])throw new _0x3f2057(_0x460e91(0x27e));if(this[_0x460e91(0x22c)][_0x460e91(0x242)]()){const _0x1bc4f9=await this[_0x460e91(0x25e)][_0x460e91(0x288)]();await this[_0x460e91(0x22c)][_0x460e91(0x1df)](_0x1bc4f9);}this[_0x460e91(0x22c)]['id']&&this[_0x460e91(0x22c)][_0x460e91(0x1f5)]&&await this[_0x460e91(0x22c)][_0x460e91(0x1aa)]({'userMessage':_0x322066,'attributes':_0x17b096});}[_0x1775be(0x162)](){const _0x53b54c=_0x1775be;console[_0x53b54c(0x1c4)](_0x53b54c(0x23b));}[_0x1775be(0x248)](_0x45e4fb){const _0x5ceaa3=_0x1775be;this[_0x5ceaa3(0x2c8)][_0x5ceaa3(0x17a)](_0x45e4fb);}[_0x1775be(0x2cc)](_0x7e2003){const _0x5b7444=_0x1775be;_0x3bd9b5(_0x7e2003[_0x5b7444(0x1db)]);}[_0x1775be(0x196)](_0x39af5b){const _0x80ad6=_0x1775be;this[_0x80ad6(0x22c)]?.[_0x80ad6(0x279)](_0x39af5b);}[_0x1775be(0x187)](){const _0x5901c2=_0x1775be;this[_0x5901c2(0x22c)]?.[_0x5901c2(0x185)]();}[_0x1775be(0x1b7)](){const _0x3a76ae=_0x1775be;this[_0x3a76ae(0x22c)]?.[_0x3a76ae(0x1c0)]();}[_0x1775be(0x1ea)](_0x1fd484){const _0x281c89=_0x1775be,[_0x1388c2,_0x1bb3a5]=_0x1fd484[_0x281c89(0x159)](':'),_0x2bbbca=this[_0x281c89(0x22c)][_0x281c89(0x18f)](_0x1388c2),_0x5df48d=_0x2bbbca[_0x281c89(0x1ab)](_0x1bb3a5);return{'interaction':_0x2bbbca,'reply':_0x5df48d};}[_0x1775be(0x220)](_0x11dcdf,_0x4ff453=!0x1){const _0x4d3483=_0x1775be,_0x1a66e5=_0x492549(this[_0x4d3483(0x170)]),_0x19faa8={'target':_0x1a66e5[_0x4d3483(0x206)][_0x4d3483(0x2b1)][_0x4d3483(0x29a)][_0x4d3483(0x2d7)](_0x1a66e5[_0x4d3483(0x206)][_0x4d3483(0x256)][_0x4d3483(0x20a)](_0x11dcdf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4ff453};_0x4ff453&&(_0x19faa8[_0x4d3483(0x244)]=!0x0),_0xd132a8(_0x19faa8);}[_0x1775be(0x1a2)](_0x4c550a,_0x419a6b=!0x1){const _0xf5877a=_0x1775be;this[_0xf5877a(0x2c8)][_0xf5877a(0x222)](_0x4c550a||_0x29d8c2(this[_0xf5877a(0x170)][_0xf5877a(0x252)],_0xf5877a(0x2a8)),_0x419a6b);}async[_0x1775be(0x260)]({reply:_0x52afcc,renderingStrategy:_0x20552a}){const _0x2b170c=_0x1775be,{id:_0x72fd83,interactionId:_0x5874ec,isDone:_0x3538fa,type:_0x4bf7c6,parsedContent:_0x4bc9b2}=_0x52afcc,_0x4393fc=_0x5874ec+':'+_0x72fd83;if(_0x2b170c(0x28a)===_0x4bf7c6){const _0x35c2d9=_0x52afcc[_0x2b170c(0x2a2)]({'showDiff':this[_0x2b170c(0x2c8)][_0x2b170c(0x24d)]});await this[_0x2b170c(0x2c8)][_0x2b170c(0x283)]({'id':_0x4393fc,'parts':_0x35c2d9,'renderingStrategy':_0x20552a,'isDone':_0x3538fa});}else _0x2b170c(0x175)===_0x4bf7c6&&await this[_0x2b170c(0x2c8)][_0x2b170c(0x234)]({'id':_0x4393fc,'parsedContent':_0x4bc9b2,'renderingStrategy':_0x20552a,'isDone':_0x3538fa});_0x3538fa&&_0x52afcc[_0x2b170c(0x289)][_0x2b170c(0x1b4)]>0x0&&this[_0x2b170c(0x2c8)][_0x2b170c(0x2bb)](_0x4393fc,_0x52afcc[_0x2b170c(0x289)]);}async[_0x1775be(0x255)](){const _0x5269c1=_0x1775be,_0x1e93ee=this[_0x5269c1(0x22c)]?.[_0x5269c1(0x1dd)];_0x1e93ee&&(_0x1e93ee[_0x5269c1(0x168)](),this[_0x5269c1(0x2c8)][_0x5269c1(0x203)](_0x1e93ee));}async[_0x1775be(0x227)](){const _0x3dc21d=_0x1775be,_0x52dfef=this[_0x3dc21d(0x22c)]?.[_0x3dc21d(0x1dd)];if(_0x52dfef){for await(const _0x14af3f of _0x52dfef[_0x3dc21d(0x232)])await this[_0x3dc21d(0x260)]({'reply':_0x14af3f,'renderingStrategy':_0x3dc21d(0x1af)});}}[_0x1775be(0x263)](_0x25b5cd){const _0x1744d4=_0x1775be,_0x5d3509={'positiveCount':_0x25b5cd[_0x1744d4(0x2c7)][_0x1744d4(0x219)](_0x3dff07=>_0x1744d4(0x172)===_0x3dff07[_0x1744d4(0x265)])[_0x1744d4(0x1b4)],'totalCount':_0x25b5cd[_0x1744d4(0x2c7)][_0x1744d4(0x1b4)],'modificationId':_0x25b5cd['id']},_0x5f3311=this[_0x1744d4(0x22c)][_0x1744d4(0x18f)](_0x25b5cd[_0x1744d4(0x284)])[_0x1744d4(0x2d9)];_0x5f3311&&this[_0x1744d4(0x1a7)][_0x1744d4(0x261)](this[_0x1744d4(0x22c)]['id'],_0x5f3311,_0x5d3509);}[_0x1775be(0x28d)](_0x478a03){const _0x67daf9=_0x1775be;let _0x48a814=null,_0x1d3f2d=null;this['on'](_0x67daf9(0x23c),(_0x38f3a1,_0x51755d,_0x4355ed)=>{const _0x46e3ab=_0x67daf9;_0x4355ed['id']!==_0x48a814&&(_0x48a814=_0x4355ed['id'],_0x1d3f2d=this[_0x46e3ab(0x1e8)](_0x4355ed)),_0x478a03(_0x51755d,_0x1d3f2d);});}[_0x1775be(0x1e8)](_0x39b3dc){const _0x1a1a1c=_0x1775be,_0x2ba958=this[_0x1a1a1c(0x2c8)],_0x20c853=()=>{const _0x1da1de=_0x1a1a1c;_0x39b3dc[_0x1da1de(0x17d)](),_0x39b3dc[_0x1da1de(0x2a3)](),_0x2ba958[_0x1da1de(0x18a)]();},_0x138ef7=()=>{const _0x1ca712=_0x1a1a1c;_0x39b3dc[_0x1ca712(0x27a)]&&(_0x39b3dc[_0x1ca712(0x27a)][_0x1ca712(0x201)](),_0x39b3dc[_0x1ca712(0x27a)]=void 0x0);};return{'insertTextReply':(_0x1b7b58,_0x1c864b)=>{const _0x390e5c=_0x1a1a1c;_0x138ef7(),_0x20c853();const _0x28f987=_0x39b3dc[_0x390e5c(0x27a)]=_0x39b3dc[_0x390e5c(0x19e)]({'type':_0x390e5c(0x175),'interactionId':_0x39b3dc['id'],'content':_0x1b7b58,'id':_0x1c864b||_0x2a93b7()});return _0x138ef7(),_0x28f987;},'insertCustomElement':async(_0x44410f,_0x4d8932)=>(_0x138ef7(),_0x20c853(),_0x2ba958[_0x1a1a1c(0x1bb)](_0x44410f,_0x4d8932||_0x2a93b7())),'setLoadingMessage':_0x2d3a79=>{const _0x5d1ca3=_0x1a1a1c;_0x2ba958[_0x5d1ca3(0x2da)](_0x2d3a79);},'clearLoadingMessage':()=>{const _0x42f0f1=_0x1a1a1c;_0x2ba958[_0x42f0f1(0x18a)]();}};}}
23
+ const _0x3b742f=_0x263b;function _0x4507(){const _0x2ebbed=['documentContextContent','Showing\x20conversation\x20history...','removeSelectionFromContext','indexOf','delete','collaboration.channelId','addFeedItemCustomElement','getDocumentData','options','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','range','Liked\x20response','delegate','uploadProgressChanged','ai-chat-conversation-start-failed','toggleLoadingSkeleton','howMany','isCurrentDocumentInConversation','node','stop','789042LDcohz','domConverter','editing','includes','_aiChatBalloon','set','toggleReasoning','getPath','currentReply','document','outdated','reasoningStarted','ai-conversation-','_getUserPresentableContentPartDocumentRange','applyOperation','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ai-chat-controller-mouse-over','current-document','ready','previous','loadConversation','modelSelected','batch','version','_logError','open','AI_CHAT_GENERIC_ERROR','21XLrzrm','config','alignToTop','getChildAtOffset','messageId','resourceStateChanged','createPositionAt','ai-chat-context-form-data-size-limits-exceeded','isInContext','map','_startConversationSafely','createPositionFromPath','selectedModel','contextItemAdded','streaming','getOperations','_flushLastInteractionUI','showNext','ai-chat-context-unsupported-file-type','updateConversationTitle','ai-chat-invalid-request','init','getInteractionAndReplyById','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','110342HIGGqL','closeSourceResourceBalloon','sources','AIChatController','addOperation','1085398TcHqrw','hideFakeVisualSelection','fetchConversations','get','isStarted','updateFeedItemAIReplySuggestionContent','isUploadInProgress','plugins','removeSelectionFromChatContext','setIsMaximized','_toggleWebSearch','marker','forEach','selection','like','setContextItemLoading','_aiChatBalloonShowDiff','length','addFeedItemStaticMessage','resetMessageInput','clearLoadingMessage','toString','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','resize','AI_CHAT_CONTEXT_FILE_TOO_LARGE','next','_aiChatUi','AI_BALLOON_HEADER_TITLE','addUrlToContext','loadSourceResources','ai-chat-url-upload-failed','resourceId','replyContentUpdated','isCurrentDocumentInContext','interactionId','replyChangeGroupStateUpdated','_aiConnector','baseVersion','_getPresentableSiblingContentPartIndex','path','DocumentCompare','isOfficialPlugin','_getAIChatInteractionAPI','uiId','_showConversationHistory','startsWith','startAutoScroll','AI_CHAT_ABORTED_MESSAGE','resizedTabs','_toggleReasoning','_handleUIUserMessage','text','static','enableControls','resources','prepareLoadingMessage','Undo','commands','stopInteraction','query','push','requires','AI_CHAT_RESOURCE_LOAD_FAILED','rejectSuggestion','addFeedItemUserMessage','addFeedItemAIReply','destroy','remove','setSelectedModel','maxOffset','dislike','upsertAIChatRating','message','accepted','_batchToChanges','fetchConversation','_updateReplyContent','addContextOptionsChanged','toggleSuggestionDisplayMode','ai.chat.initialConversation','replyId','AI_CHAT_INVALID_REQUEST','_scrollToSuggestionRange','addFeedInteractionHeader','addFilesToContext','ai.models.defaultModelId','ai-chat-resource-load-failed','sourceResourcesLoaded','reasoningFinished','updateCurrentDocumentInContext','editors','pluginName','capabilitiesUpdated','end','addFeedItemError','setConversationTitle','context','add','undo','split','_getLastCreatedConversationId','AI_CHAT_UNTITLED_CONVERSATION','areActionsDisabled','showPrevious','activeConversation','$graveyard','setConversationContext','getReply','isLoading','_setIsMaximized','resource','start','sourceId','finishInteraction','clearPendingContextUI','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','AITabs','focusPromptInput','type','_bodyCollection','handleRemovedConversation','updateResourceState','sendMessage','history','addFeedItemAISuggestion','done','pending','AIChatBalloon','lastInteraction','abortPromptStream','sendUserMessage','filter','_insertSuggestion','changeGroups','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai-chat-missing-channel-id','bind','_integrateEditor','contextItemLoadingEnded','ai-chat-context-file-too-many-pages','addSelectionToChatContext','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','has','data-id','addDocumentToContext','interactionDestroyed','getInteraction','getConversations','_createFromRanges','getAll','ai.chat.context','interactionCreated','AI_CHAT_CONTEXT_INVALID_DATA','getTransformedByOperation','setIsUploadInProgress','disableControls','main','state','mapper','updateFeedItemAIReplyContent','contextItemRemoved','getChildren','close','content','callback','ai.models','parse','_removeFromContext','getAttribute','getContentParts','unshift','locale','sessionId','nextSibling','addFileToContext','9YoPcKo','_rejectSuggestion','webSearchFinished','afterInit','uid','TrackChangesEditing','ai-chat-conversation-init-failed','createRange','addCurrentDocumentToContext','error','toolDataReceived','view','startInteraction','updateFeedItemAIReplySources','applySuggestion','interactionStarted','interactionFinished','toViewRange','getGroupId','createConversation','sourcePosition','root','_aiEditing','showDiff','data','activateTab','ai-chat-context-file-too-large','revert','ai-chat-source-resources-load-failed','partIndex','resetWebSearchState','removed','addContextItem','scrollFeedToSuggestion','setFeedItemRenderingStrategy','AIEditing','ai-chat-conversation-not-found','load','isModelAvailable','setChangeGroupState','source','ai-chat-file-upload-failed','setState','contextSent','setLoadingMessage','chat','1862412RlrKOi','changes','modification','TrackChanges','updateContent','AI_CHAT_UNABLE_TO_START_CONVERSATION','index','replyCreated','webSearchStarted','setModel','_currentPreviewedChangeGroup','Disliked\x20response','viewRangeToDom','isDisabled','_stopLastInteraction','populateSourceResourceBalloon','attachToDom','getConversation','log','_registerToolDataCallback','clearConversationContextUI','mouseLeaveSuggestion','resetConversationTitle','isDocumentOperation','replies','_handleStartConversation','change','redo','AIChatUI','new','ai-chat-context-unsupported-type','executeCustomItemCallback','getDocumentContext','contextItems','_updateRatings','find','getChild','rootName','cloneNode','insertSuggestion','createdAt','resizeTabs','addCurrentDocumentToChatContext','ai-chat-context-invalid-data','_applySuggestion','getDiff','selectModel','setAddContextOptions','toggleWebSearch','getSelectionText','AIConnector','model','lastCreated','_aiChatModels','findIndex','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','aiChatBalloon','setFeedItemAIReplySuggestionPartActive','handleUserInteraction','hasChanges','9704277iHLSyN','updateCapabilities','slice','contextItem','conversationInitialized','removeFromContext','ai-request-aborted','removeContextItem','isPremiumPlugin','getFirstRange','_applyOperationsAsSuggestions','rejected','addResourceToContext','dialogClosed','showFakeVisualSelection','removeFeedInteraction','getRanges','detachFromDom','_getDocumentRangeForReplyChanges','resetReasoningState','startConversation','children','143350ARYbYi','indexes','addSelectionToContext','mouseOverSuggestion','from','anchorId','ai-chat-controller-no-active-conversation','createReply','ai-no-track-changes','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_openBalloonFor','showChangeInText','listenTo','getRoot','6600288wYgjjk'];_0x4507=function(){return _0x2ebbed;};return _0x4507();}(function(_0x2af35a,_0x46ed03){const _0x350869=_0x263b,_0x21bf3a=_0x2af35a();while(!![]){try{const _0xfde9b2=-parseInt(_0x350869(0x247))/0x1+parseInt(_0x350869(0x242))/0x2*(-parseInt(_0x350869(0x16c))/0x3)+parseInt(_0x350869(0x19a))/0x4+parseInt(_0x350869(0x1ec))/0x5+parseInt(_0x350869(0x20f))/0x6*(-parseInt(_0x350869(0x22a))/0x7)+parseInt(_0x350869(0x1fa))/0x8+parseInt(_0x350869(0x1d6))/0x9;if(_0xfde9b2===_0x46ed03)break;else _0x21bf3a['push'](_0x21bf3a['shift']());}catch(_0x160c4a){_0x21bf3a['push'](_0x21bf3a['shift']());}}}(_0x4507,0xb7a02));import{ContextPlugin as _0x2f71a9,Editor as _0x3938a8}from'ckeditor5/src/core.js';import{BodyCollection as _0x10c46b}from'ckeditor5/src/ui.js';import{CKEditorError as _0x7864a9,logError as _0x3efaeb,scrollViewportToShowTarget as _0x527ded,uid as _0x20589e}from'ckeditor5/src/utils.js';import{AIConnector as _0x452e82}from'../aicore/aiconnector.js';import{AITabs as _0x2fe81f}from'../aitabs/aitabs.js';import{AIChatConversation as _0x190ed6}from'./model/aichatconversation.js';import{getTranslation as _0x2351b5}from'../aicore/utils/common-translations.js';import{AIModels as _0x233e28}from'../aicore/model/aimodels.js';function _0x263b(_0x31ba69,_0x2a6642){const _0x45072a=_0x4507();return _0x263b=function(_0x263b64,_0x368da9){_0x263b64=_0x263b64-0x12d;let _0x3c187f=_0x45072a[_0x263b64];return _0x3c187f;},_0x263b(_0x31ba69,_0x2a6642);}import{getEditorFromContext as _0x244498}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1e2163,DATA_ID_MODEL_ATTRIBUTE as _0x577449}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2fbe0c,getOperationsFromReply as _0x59e309}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x59e0ad,getMinimalSelection as _0x59f47b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2820e8,_DetachOperation as _0x5e4237}from'ckeditor5/src/engine.js';import{findOne as _0x4e525a,getAttribute as _0x441122,serialize as _0x4f3803,Document as _0x403306,findByAttribute as _0x2212d5}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x2f71a9{[_0x3b742f(0x182)];[_0x3b742f(0x26b)];[_0x3b742f(0x261)];[_0x3b742f(0x1cf)];[_0x3b742f(0x213)];[_0x3b742f(0x291)]=new Map();[_0x3b742f(0x1a4)]=null;[_0x3b742f(0x134)];static get[_0x3b742f(0x284)](){return[_0x452e82,_0x1e2163];}static get[_0x3b742f(0x2a2)](){const _0x578d3e=_0x3b742f;return _0x578d3e(0x245);}static get[_0x3b742f(0x270)](){return!0x0;}static get[_0x3b742f(0x1de)](){return!0x0;}[_0x3b742f(0x23f)](){const _0xd9efed=_0x3b742f;this[_0xd9efed(0x134)]=new _0x10c46b(this[_0xd9efed(0x2a7)][_0xd9efed(0x168)]),this[_0xd9efed(0x134)][_0xd9efed(0x1aa)](),this[_0xd9efed(0x26b)]=this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x24a)](_0xd9efed(0x1cc)),this[_0xd9efed(0x261)]=this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x24a)](_0xd9efed(0x1b6)),this[_0xd9efed(0x182)]=this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x24a)](_0xd9efed(0x18f)),this[_0xd9efed(0x1cf)]=new _0x233e28({'connector':this[_0xd9efed(0x26b)],'config':this[_0xd9efed(0x2a7)][_0xd9efed(0x22b)][_0xd9efed(0x24a)](_0xd9efed(0x162)),'locale':this[_0xd9efed(0x2a7)][_0xd9efed(0x168)]});const _0x1fab9a=this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x24a)](_0xd9efed(0x131));this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1ea),()=>{const _0x4726db=_0xd9efed;this[_0x4726db(0x234)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x13f),(_0x5b74c5,_0x423195)=>{const _0x27149e=_0xd9efed;this[_0x27149e(0x279)]({'userMessage':_0x423195});}),this[_0xd9efed(0x1f8)](_0x1fab9a,_0xd9efed(0x277),(_0x1242a5,_0x257133)=>{const _0x528a1a=_0xd9efed;this[_0x528a1a(0x2b4)](_0x257133);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1c3),()=>{const _0xfd814b=_0xd9efed;_0x1fab9a[_0xfd814b(0x25e)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x13e),async()=>{const _0x16f424=_0xd9efed;await this[_0x16f424(0x1a8)](),await this[_0x16f424(0x23a)](),this[_0x16f424(0x24f)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x14d),()=>{const _0x6a6ebb=_0xd9efed;this[_0x6a6ebb(0x1c4)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x16b),(_0x7d2e72,_0x42707e)=>{const _0x501c64=_0xd9efed;this[_0x501c64(0x2af)]?.[_0x501c64(0x29b)](Array[_0x501c64(0x1f0)](_0x42707e));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x263),(_0x647069,_0x62e223)=>{const _0x2331d6=_0xd9efed;this[_0x2331d6(0x2af)]?.[_0x2331d6(0x263)](_0x62e223);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1b9),(_0x4a0092,_0x51e2d6)=>{const _0x169567=_0xd9efed;_0x51e2d6[_0x169567(0x161)](this[_0x169567(0x2a7)]);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1e2),(_0x321691,_0x5a37a4)=>{const _0xc17a57=_0xd9efed;this[_0xc17a57(0x2af)]?.[_0xc17a57(0x1e2)](_0x5a37a4[_0xc17a57(0x194)],_0x5a37a4[_0xc17a57(0x2b5)]);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1dd),(_0x343c86,_0x2e6d85)=>{const _0x102968=_0xd9efed;this[_0x102968(0x164)](_0x2e6d85);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x264),(_0x287876,_0x47451a)=>{const _0x401d05=_0xd9efed;this[_0x401d05(0x2af)]?.[_0x401d05(0x264)](_0x47451a[_0x401d05(0x2b7)],_0x47451a[_0x401d05(0x282)],_0x47451a[_0x401d05(0x170)]);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1ca),()=>{const _0x57114a=_0xd9efed;this[_0x57114a(0x251)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x215),()=>{const _0x2939f5=_0xd9efed;this[_0x2939f5(0x278)]();}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1c8),(_0x5020c9,_0x336559)=>{const _0x8b60e=_0xd9efed;this[_0x8b60e(0x2af)]?.[_0x8b60e(0x1a3)](_0x336559);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x255),(_0x4a4097,{replyId:_0x372b64})=>{const _0x108ac9=_0xd9efed;console[_0x108ac9(0x1ac)](_0x108ac9(0x206),_0x372b64);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x28d),(_0xeb43d2,{replyId:_0x2d800e})=>{const _0x14b2ed=_0xd9efed;console[_0x14b2ed(0x1ac)](_0x14b2ed(0x1a5),_0x2d800e);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1c1),(_0x5ab6ef,_0x2472f1)=>{const _0xd12243=_0xd9efed;this[_0xd12243(0x141)](_0x2472f1);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1f7),(_0xd40666,{replyId:_0x4fec6d,partIndex:_0x5c0ab2})=>{const _0x69c417=_0xd9efed;this[_0x69c417(0x257)]=this[_0x69c417(0x261)][_0x69c417(0x183)],this[_0x69c417(0x1f6)](_0x4fec6d,_0x5c0ab2);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1ef),(_0x367c99,{replyId:_0x22603d,partIndex:_0x434bed})=>{const _0x19e927=_0xd9efed,_0x542953=this[_0x19e927(0x1e8)](_0x22603d,_0x434bed);_0x542953&&_0x19e927(0x2b0)!=_0x542953[_0x19e927(0x205)][_0x19e927(0x181)][_0x19e927(0x1bf)]&&this[_0x19e927(0x182)][_0x19e927(0x1e4)]([_0x542953[_0x19e927(0x205)]],_0x19e927(0x21f));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x1af),()=>{const _0xbcd1db=_0xd9efed;this[_0xbcd1db(0x182)][_0xbcd1db(0x248)](_0xbcd1db(0x21f));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x17a),(_0x581466,_0x3cfb2d)=>{const _0x26f31d=_0xd9efed;this[_0x26f31d(0x182)][_0x26f31d(0x248)](_0x26f31d(0x21f)),this[_0x26f31d(0x1c6)](_0x3cfb2d);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x295),async(_0x3089b8,{replyId:_0x409d5f,showDiff:_0x51782f})=>{const _0x8cd8c2=_0xd9efed,{reply:_0xcfad8d}=this[_0x8cd8c2(0x240)](_0x409d5f),_0x31a59e=_0xcfad8d[_0x8cd8c2(0x166)]({'showDiff':_0x51782f});await this[_0x8cd8c2(0x261)][_0x8cd8c2(0x24c)]({'id':_0xcfad8d['id'],'parts':_0x31a59e,'renderingStrategy':_0x8cd8c2(0x27b)});}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x261)],_0xd9efed(0x286),(_0x1ffa24,{replyId:_0x1c0e4e,partIndex:_0x37957b})=>{const _0x5187ae=_0xd9efed;this[_0x5187ae(0x16d)]({'replyId':_0x1c0e4e,'partIndex':_0x37957b}),this[_0x5187ae(0x182)][_0x5187ae(0x248)](_0x5187ae(0x21f));}),this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x14b)](_0xd9efed(0x13c))&&(this[_0xd9efed(0x213)]=this[_0xd9efed(0x2a7)][_0xd9efed(0x24e)][_0xd9efed(0x24a)](_0xd9efed(0x13c)),this[_0xd9efed(0x214)](_0xd9efed(0x257),!0x1),this[_0xd9efed(0x213)][_0xd9efed(0x145)](_0xd9efed(0x183))['to'](this,_0xd9efed(0x257)),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x295),()=>{const _0x2d07e2=_0xd9efed,{replyId:_0x417c4e,partIndex:_0x3ee5b6}=this[_0x2d07e2(0x1a4)];this[_0x2d07e2(0x257)]=!this[_0x2d07e2(0x257)];const {reply:_0x24740f}=this[_0x2d07e2(0x240)](_0x417c4e),_0x1eee57=_0x24740f[_0x2d07e2(0x166)]({'showDiff':this[_0x2d07e2(0x257)],'groupIndex':_0x3ee5b6});this[_0x2d07e2(0x213)][_0x2d07e2(0x19e)]({'part':_0x1eee57[0x0],'renderingStrategy':_0x2d07e2(0x27b),'keepErrors':!0x0});}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x17a),()=>{const _0x34ae09=_0xd9efed,{replyId:_0x282084,partIndex:_0x406e02}=this[_0x34ae09(0x1a4)];this[_0x34ae09(0x1c6)]({'replyId':_0x282084,'partIndex':_0x406e02}),this[_0x34ae09(0x213)][_0x34ae09(0x196)](_0x34ae09(0x290));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x1c1),()=>{const _0x5ceefb=_0xd9efed,{replyId:_0x3bf00b,partIndex:_0x57cce3}=this[_0x5ceefb(0x1a4)];this[_0x5ceefb(0x141)]({'replyId':_0x3bf00b,'partIndex':_0x57cce3}),this[_0x5ceefb(0x213)][_0x5ceefb(0x196)](_0x5ceefb(0x290));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x286),()=>{const _0x5d3f65=_0xd9efed,{replyId:_0x1b0a00,partIndex:_0x28bfd1}=this[_0x5d3f65(0x1a4)];this[_0x5d3f65(0x16d)]({'replyId':_0x1b0a00,'partIndex':_0x28bfd1}),this[_0x5d3f65(0x213)][_0x5d3f65(0x196)](_0x5d3f65(0x1e1));}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x23b),()=>{const _0x4f8f51=_0xd9efed,{replyId:_0x8a8a67,partIndex:_0x480101}=this[_0x4f8f51(0x1a4)],_0x1350c4=this[_0x4f8f51(0x26d)](_0x8a8a67,_0x480101,_0x4f8f51(0x260));null!==_0x1350c4&&this[_0x4f8f51(0x1f6)](_0x8a8a67,_0x1350c4);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x2ae),()=>{const _0x864143=_0xd9efed,{replyId:_0x28b0a7,partIndex:_0x8b4fad}=this[_0x864143(0x1a4)],_0xeee9d7=this[_0x864143(0x26d)](_0x28b0a7,_0x8b4fad,_0x864143(0x222));null!==_0xeee9d7&&this[_0x864143(0x1f6)](_0x28b0a7,_0xeee9d7);}),this[_0xd9efed(0x1f8)](this[_0xd9efed(0x213)],_0xd9efed(0x1e3),(_0x433af2,{id:_0x3bb585})=>{const _0x38456f=_0xd9efed;if(_0x38456f(0x1d2)!==_0x3bb585)return;const {replyId:_0x4199e0,partIndex:_0x355a6d}=this[_0x38456f(0x1a4)];this[_0x38456f(0x1a4)]=null,this[_0x38456f(0x261)][_0x38456f(0x1d3)]({'id':_0x4199e0,'index':_0x355a6d,'isActive':!0x1});}));}async[_0x3b742f(0x16f)](){const _0x20542f=_0x3b742f;this[_0x20542f(0x2a7)]instanceof _0x3938a8?this[_0x20542f(0x146)](this[_0x20542f(0x2a7)]):this[_0x20542f(0x1f8)](this[_0x20542f(0x2a7)][_0x20542f(0x2a1)],_0x20542f(0x2a8),(_0xd55c54,_0x80a365)=>{const _0x38bdfa=_0x20542f;_0x80a365['on'](_0x38bdfa(0x221),()=>{const _0x48cf36=_0x38bdfa;this[_0x48cf36(0x146)](_0x80a365);});});const _0x591747=this[_0x20542f(0x2a7)][_0x20542f(0x22b)][_0x20542f(0x24a)](_0x20542f(0x296));let _0x2e9ac7=_0x591747;if(_0x20542f(0x1ce)!=_0x591747||(_0x2e9ac7=await this[_0x20542f(0x2ab)](),_0x2e9ac7))return _0x20542f(0x1b7)==_0x2e9ac7?this[_0x20542f(0x234)]():this[_0x20542f(0x223)](_0x2e9ac7);}async[_0x3b742f(0x289)](){const _0x142841=_0x3b742f;return await this[_0x142841(0x1a8)](),this[_0x142841(0x134)][_0x142841(0x1e7)](),super[_0x142841(0x289)]();}[_0x3b742f(0x141)](_0x974d62){const _0x473093=_0x3b742f,_0xd4b24b=_0x244498(this[_0x473093(0x2a7)]);if(!_0xd4b24b[_0x473093(0x24e)][_0x473093(0x14b)](_0x473093(0x19d)))throw new _0x7864a9(_0x473093(0x1f4),null);const _0x12f13b=this[_0x473093(0x2a7)][_0x473093(0x24e)][_0x473093(0x24a)](_0x473093(0x26f)),{reply:_0xa36bd5,interaction:_0xae3df7}=this[_0x473093(0x240)](_0x974d62[_0x473093(0x297)]),_0x63063d=this[_0x473093(0x1e8)](_0x974d62[_0x473093(0x297)],_0x974d62[_0x473093(0x189)]),_0x3f56bc=void 0x0!==_0x974d62[_0x473093(0x189)]?[_0xa36bd5[_0x473093(0x142)][_0x974d62[_0x473093(0x189)]]]:_0xa36bd5[_0x473093(0x142)][_0x473093(0x140)](_0x86d9b6=>_0x473093(0x13b)==_0x86d9b6[_0x473093(0x15a)]),_0x2b0705=_0x3f56bc[_0x473093(0x233)](_0x387f65=>_0xa36bd5[_0x473093(0x142)][_0x473093(0x1fe)](_0x387f65));if(!_0x63063d||_0x473093(0x2b0)==_0x63063d[_0x473093(0x205)][_0x473093(0x181)][_0x473093(0x1bf)])return void _0x2b0705[_0x473093(0x253)](_0x12c1c6=>_0xa36bd5[_0x473093(0x193)](_0x12c1c6,_0x473093(0x219)));_0x2b0705[_0x473093(0x253)](_0x4e7240=>_0xa36bd5[_0x473093(0x193)](_0x4e7240,_0x473093(0x290)));const _0x27c9ec=_0x59e309({'editor':_0xd4b24b,'reply':_0xa36bd5,'interaction':_0xae3df7,'groups':_0x3f56bc,'transform':!0x0,'documentCompare':_0x12f13b,'documentCompareOptions':{'anchor':_0x473093(0x159),'markDeletions':!0x0}});let _0x1b1890;_0x63063d&&this[_0x473093(0x299)](_0x63063d[_0x473093(0x205)]),_0xd4b24b[_0x473093(0x1cd)][_0x473093(0x1b4)](_0x4edeb5=>{const _0x46976d=_0x473093;_0x1b1890=_0x4edeb5[_0x46976d(0x225)],_0xd4b24b[_0x46976d(0x24e)][_0x46976d(0x24a)](_0x46976d(0x171))[_0x46976d(0x1e0)](_0x27c9ec),this[_0x46976d(0x182)][_0x46976d(0x248)](_0x46976d(0x21f));}),this[_0x473093(0x291)][_0x473093(0x214)](_0x1b1890,{'interactionId':_0xae3df7['id'],'replyId':_0xa36bd5['id'],'indexes':_0x2b0705[_0x473093(0x1d8)]()}),this[_0x473093(0x1bc)](_0xa36bd5);}[_0x3b742f(0x1c6)](_0x47adc5){const _0x2db1f1=_0x3b742f,_0x38045c=_0x244498(this[_0x2db1f1(0x2a7)]),_0x168214=this[_0x2db1f1(0x2a7)][_0x2db1f1(0x24e)][_0x2db1f1(0x24a)](_0x1e2163),{reply:_0x2250c9,interaction:_0x278ec1}=this[_0x2db1f1(0x240)](_0x47adc5[_0x2db1f1(0x297)]),_0x325238=this[_0x2db1f1(0x1e8)](_0x47adc5[_0x2db1f1(0x297)],_0x47adc5[_0x2db1f1(0x189)]),_0x4dbcc5=void 0x0!==_0x47adc5[_0x2db1f1(0x189)]?[_0x2250c9[_0x2db1f1(0x142)][_0x47adc5[_0x2db1f1(0x189)]]]:_0x2250c9[_0x2db1f1(0x142)][_0x2db1f1(0x140)](_0x3c16b7=>_0x2db1f1(0x13b)==_0x3c16b7[_0x2db1f1(0x15a)]),_0x528d17=_0x4dbcc5[_0x2db1f1(0x233)](_0xdd440b=>_0x2250c9[_0x2db1f1(0x142)][_0x2db1f1(0x1fe)](_0xdd440b));if(!_0x325238||_0x2db1f1(0x2b0)==_0x325238[_0x2db1f1(0x205)][_0x2db1f1(0x181)][_0x2db1f1(0x1bf)])return void _0x528d17[_0x2db1f1(0x253)](_0x4aadff=>_0x2250c9[_0x2db1f1(0x193)](_0x4aadff,_0x2db1f1(0x219)));_0x528d17[_0x2db1f1(0x253)](_0x825564=>_0x2250c9[_0x2db1f1(0x193)](_0x825564,_0x2db1f1(0x290)));const _0x35b0b6=_0x59e309({'editor':_0x38045c,'reply':_0x2250c9,'interaction':_0x278ec1,'groups':_0x4dbcc5,'transform':!0x0,'documentCompare':_0x168214,'documentCompareOptions':{'anchor':_0x2db1f1(0x159),'markDeletions':!0x1}});let _0x116e3c;_0x325238&&this[_0x2db1f1(0x299)](_0x325238[_0x2db1f1(0x205)]),_0x38045c[_0x2db1f1(0x1cd)][_0x2db1f1(0x1b4)](_0x5d6130=>{const _0x19fdf2=_0x2db1f1;_0x116e3c=_0x5d6130[_0x19fdf2(0x225)];for(const _0x4b36df of _0x35b0b6)_0x4b36df[_0x19fdf2(0x26c)]=_0x38045c[_0x19fdf2(0x1cd)][_0x19fdf2(0x218)][_0x19fdf2(0x226)],_0x2fbe0c(_0x38045c,_0x4b36df),_0x5d6130[_0x19fdf2(0x225)][_0x19fdf2(0x246)](_0x4b36df),_0x38045c[_0x19fdf2(0x1cd)][_0x19fdf2(0x21d)](_0x4b36df);}),this[_0x2db1f1(0x291)][_0x2db1f1(0x214)](_0x116e3c,{'interactionId':_0x278ec1['id'],'replyId':_0x2250c9['id'],'indexes':_0x528d17[_0x2db1f1(0x1d8)]()}),this[_0x2db1f1(0x1bc)](_0x2250c9);}[_0x3b742f(0x16d)](_0x3e4bb7){const _0x27407a=_0x3b742f,{reply:_0x179293}=this[_0x27407a(0x240)](_0x3e4bb7[_0x27407a(0x297)]);_0x179293[_0x27407a(0x193)](_0x3e4bb7[_0x27407a(0x189)],_0x27407a(0x1e1));}[_0x3b742f(0x1f6)](_0x5237dc,_0x4b4578){const _0x5b5abb=_0x3b742f;if(!this[_0x5b5abb(0x213)])return;const {reply:_0x1cbe76}=this[_0x5b5abb(0x240)](_0x5237dc),_0x4441fc=_0x1cbe76[_0x5b5abb(0x166)]({'showDiff':this[_0x5b5abb(0x257)]});let _0x979186,_0x9d7226;if(void 0x0!==_0x4b4578?(_0x9d7226=_0x4441fc[_0x5b5abb(0x1bd)](_0x1e2558=>_0x1e2558[_0x5b5abb(0x1a0)]==_0x4b4578),_0x979186=_0x9d7226?.[_0x5b5abb(0x1a0)]):(_0x9d7226=_0x4441fc[0x0],_0x979186=_0x9d7226[_0x5b5abb(0x1a0)]),this[_0x5b5abb(0x1a4)]?.[_0x5b5abb(0x297)]==_0x5237dc&&this[_0x5b5abb(0x1a4)]?.[_0x5b5abb(0x189)]==_0x979186)return;const _0x3c5607=this[_0x5b5abb(0x21c)](_0x5237dc,_0x1cbe76,_0x9d7226);if(!_0x3c5607)return void this[_0x5b5abb(0x213)][_0x5b5abb(0x15f)]();this[_0x5b5abb(0x1a4)]={'replyId':_0x5237dc,'partIndex':_0x979186},this[_0x5b5abb(0x299)](_0x3c5607,!0x0);const _0x4eb140=this[_0x5b5abb(0x26d)](_0x5237dc,_0x979186,_0x5b5abb(0x260));this[_0x5b5abb(0x213)][_0x5b5abb(0x19e)]({'part':_0x9d7226,'renderingStrategy':_0x5b5abb(0x27b)}),this[_0x5b5abb(0x213)][_0x5b5abb(0x228)]({'index':_0x979186,'title':_0x2351b5(this[_0x5b5abb(0x2a7)][_0x5b5abb(0x168)],_0x5b5abb(0x262),(_0x979186+0x1)[_0x5b5abb(0x25c)]()),'showRotator':null!==_0x4eb140,'ranges':[_0x3c5607],'areActionsDisabled':_0x1cbe76[_0x5b5abb(0x2ad)]}),this[_0x5b5abb(0x213)][_0x5b5abb(0x196)](_0x5b5abb(0x13b)),this[_0x5b5abb(0x261)][_0x5b5abb(0x18d)](_0x5237dc,_0x979186),this[_0x5b5abb(0x261)][_0x5b5abb(0x1d3)]({'id':_0x5237dc,'index':_0x979186,'isActive':!0x0});}[_0x3b742f(0x26d)](_0x3020db,_0x1ecf77,_0x5b3c7a){const _0x211e2d=_0x3b742f,{reply:_0x12a275}=this[_0x211e2d(0x240)](_0x3020db),_0x1f3d44=_0x12a275[_0x211e2d(0x166)]({'showDiff':this[_0x211e2d(0x257)]});if(0x1==_0x1f3d44[_0x211e2d(0x258)])return null;const _0x2c0c8f=_0x1f3d44[_0x211e2d(0x1d0)](_0x26d19d=>_0x26d19d[_0x211e2d(0x1a0)]==_0x1ecf77),_0x4dbc61=_0x211e2d(0x260)==_0x5b3c7a?0x1:-0x1;let _0x42bb4d=_0x1f3d44['at']((_0x2c0c8f+_0x4dbc61)%_0x1f3d44[_0x211e2d(0x258)])[_0x211e2d(0x1a0)],_0x32a67b=_0x1f3d44[_0x42bb4d];for(;!this[_0x211e2d(0x21c)](_0x3020db,_0x12a275,_0x32a67b);){if(_0x42bb4d=_0x1f3d44['at']((_0x42bb4d+_0x4dbc61)%_0x1f3d44[_0x211e2d(0x258)])[_0x211e2d(0x1a0)],_0x42bb4d===_0x2c0c8f)return null;_0x32a67b=_0x1f3d44[_0x42bb4d];}return _0x42bb4d;}[_0x3b742f(0x21c)](_0x3eb48,_0x4c79a9,_0x174e92){const _0x194091=_0x3b742f,_0x4d6690=_0x4c79a9[_0x194091(0x142)];if(!_0x174e92[_0x194091(0x1d5)])return null;const _0x36ca97=_0x4d6690[_0x194091(0x1bd)](_0x177a76=>_0x177a76[_0x194091(0x1a0)]==_0x174e92[_0x194091(0x1a0)]);if(_0x194091(0x13b)!==_0x36ca97?.[_0x194091(0x15a)])return null;const _0x13d18f=this[_0x194091(0x1e8)](_0x3eb48,_0x174e92[_0x194091(0x1a0)]);if(!_0x13d18f)return null;const {range:_0x4ad7ea,currentIndex:_0x25fabb}=_0x13d18f;return _0x194091(0x2b0)==_0x4ad7ea[_0x194091(0x181)][_0x194091(0x1bf)]?(_0x4c79a9[_0x194091(0x193)](_0x25fabb,_0x194091(0x219)),null):_0x13d18f[_0x194091(0x205)];}[_0x3b742f(0x1e8)](_0x42a4bb,_0x11eae0){const _0x4354c1=_0x3b742f,_0x55f056=_0x244498(this[_0x4354c1(0x2a7)]),{reply:_0xc0ff20,interaction:_0x4d7b50}=this[_0x4354c1(0x240)](_0x42a4bb),_0x5bf8ab=_0xc0ff20[_0x4354c1(0x142)][_0x4354c1(0x140)](_0x8cdc89=>_0x4354c1(0x13b)==_0x8cdc89[_0x4354c1(0x15a)]),_0x5c2cf0=_0x5bf8ab[_0x4354c1(0x233)](_0x457784=>_0xc0ff20[_0x4354c1(0x142)][_0x4354c1(0x1fe)](_0x457784));void 0x0===_0x11eae0&&(_0x11eae0=_0x5c2cf0[0x0]);const _0x1b0da1=_0x5c2cf0[_0x4354c1(0x1fe)](_0x11eae0);if(-0x1==_0x1b0da1)return null;const _0x365982=_0x5bf8ab[_0x1b0da1],_0x150c07=new _0x403306([]),_0x48d94b=new _0x403306([]);for(const _0x35b8eb of _0x365982[_0x4354c1(0x19b)])if(_0x4354c1(0x18b)!=_0x35b8eb[_0x4354c1(0x133)]&&_0x48d94b[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0x35b8eb[_0x4354c1(0x20d)][_0x4354c1(0x1c0)](!0x0)),_0x4354c1(0x1b7)!=_0x35b8eb[_0x4354c1(0x133)]){const _0x4c0fe1=_0x4e525a(_0x54e9fc=>_0x441122(_0x54e9fc,_0x4354c1(0x14c))==_0x35b8eb['id'],_0xc0ff20[_0x4354c1(0x1fb)],!0x0);_0x150c07[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0x4c0fe1[_0x4354c1(0x1c0)](!0x0));}if(0x0==_0x150c07[_0x4354c1(0x1eb)][_0x4354c1(0x258)]){if(_0x365982[_0x4354c1(0x19b)][0x0][_0x4354c1(0x1f1)]){const _0xa8f960=_0x2212d5(_0x4354c1(0x14c),_0x365982[_0x4354c1(0x19b)][0x0][_0x4354c1(0x1f1)],_0xc0ff20[_0x4354c1(0x1fb)]);_0x150c07[_0x4354c1(0x1eb)][_0x4354c1(0x167)](_0xa8f960[_0x4354c1(0x1c0)](!0x0)),_0x48d94b[_0x4354c1(0x1eb)][_0x4354c1(0x167)](_0xa8f960[_0x4354c1(0x1c0)](!0x0)),_0xa8f960[_0x4354c1(0x16a)]&&(_0x150c07[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0xa8f960[_0x4354c1(0x16a)][_0x4354c1(0x1c0)](!0x0)),_0x48d94b[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0xa8f960[_0x4354c1(0x16a)][_0x4354c1(0x1c0)](!0x0)));}else{const _0x28136a=_0xc0ff20[_0x4354c1(0x1fb)][_0x4354c1(0x1eb)][0x0];if(!_0x28136a)return null;_0x150c07[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0x28136a[_0x4354c1(0x1c0)](!0x0)),_0x48d94b[_0x4354c1(0x1eb)][_0x4354c1(0x283)](_0x28136a[_0x4354c1(0x1c0)](!0x0));}}const _0x34ec95=_0x4d7b50[_0x4354c1(0x1ba)](),_0x5a2edc=_0x55f056[_0x4354c1(0x184)][_0x4354c1(0x163)](_0x34ec95[_0x4354c1(0x160)]),_0x87db8a=_0x4f3803(_0x150c07),_0x252663=_0x55f056[_0x4354c1(0x184)][_0x4354c1(0x163)](_0x87db8a),_0x4a9ce9=_0x55f056[_0x4354c1(0x184)][_0x4354c1(0x163)](_0x87db8a),_0x1f2b0f=_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x230)](_0x252663,0x0),_0x59e7ab=_0x4f3803(_0x48d94b),_0x272701={'anchor':_0x1f2b0f,'markDeletions':!0x1},_0x27adf1=_0x55f056[_0x4354c1(0x24e)][_0x4354c1(0x24a)](_0x1e2163)[_0x4354c1(0x1c7)](_0x87db8a,_0x59e7ab,_0x272701)[_0x4354c1(0x239)]();if(!_0x27adf1[_0x4354c1(0x258)])return null;_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x1b4)](_0x3f195f=>{const _0x27500d=_0x4354c1;for(const _0x1f828f of _0x27adf1)if(_0x27500d(0x28a)==_0x1f828f[_0x27500d(0x133)]){const _0x5a4e81=_0x1f828f[_0x27500d(0x180)],_0x2f19e6=_0x1f828f[_0x27500d(0x20b)],_0x539af7=new _0x5e4237(_0x5a4e81,_0x2f19e6);_0x3f195f[_0x27500d(0x225)][_0x27500d(0x246)](_0x539af7),_0x55f056[_0x27500d(0x1cd)][_0x27500d(0x21d)](_0x539af7);}else _0x27500d(0x252)!==_0x1f828f[_0x27500d(0x133)]&&(_0x1f828f[_0x27500d(0x26c)]=null,_0x1f828f[_0x27500d(0x1b1)]=!0x1,_0x3f195f[_0x27500d(0x225)][_0x27500d(0x246)](_0x1f828f),_0x55f056[_0x27500d(0x1cd)][_0x27500d(0x21d)](_0x1f828f));});const _0x502ef2=_0x59f47b(_0x55f056,_0x27adf1,_0x252663);_0x59e0ad(_0x55f056[_0x4354c1(0x1cd)],_0x502ef2);const _0x270830=_0x502ef2[_0x4354c1(0x1df)]()[_0x4354c1(0x2b6)][_0x4354c1(0x26e)][_0x4354c1(0x1d8)](),_0x5e8357=_0x502ef2[_0x4354c1(0x1df)]()[_0x4354c1(0x2a4)][_0x4354c1(0x26e)][_0x4354c1(0x1d8)](),_0x2f0c7c=[];let _0x1e232f=_0x252663,_0x4a3778=_0x4a9ce9;for(let _0x3d67f4=0x0;_0x3d67f4<_0x5e8357[_0x4354c1(0x258)];_0x3d67f4++){const _0x51506b=_0x1e232f[_0x4354c1(0x28c)]-_0x5e8357[_0x3d67f4];_0x2f0c7c[_0x3d67f4]=_0x4a3778[_0x4354c1(0x28c)]-_0x51506b,_0x1e232f=_0x1e232f[_0x4354c1(0x22d)](_0x5e8357[_0x3d67f4]),_0x4a3778=_0x4a3778[_0x4354c1(0x22d)](_0x2f0c7c[_0x3d67f4]);}const _0x1639d0=_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x173)](_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x235)](_0x4a9ce9,_0x270830),_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x235)](_0x4a9ce9,_0x2f0c7c)),_0x3759e1=_0x4a9ce9[_0x4354c1(0x1be)](0x0)[_0x4354c1(0x165)](_0x577449),_0x15a6b0=Array[_0x4354c1(0x1f0)](_0x5a2edc[_0x4354c1(0x15e)]())[_0x4354c1(0x1bd)](_0x116e73=>_0x116e73[_0x4354c1(0x165)](_0x577449)==_0x3759e1)[_0x4354c1(0x216)](),_0x3d8a98=_0x1639d0[_0x4354c1(0x2b6)][_0x4354c1(0x26e)][_0x4354c1(0x1d8)](),_0x5679bd=_0x1639d0[_0x4354c1(0x2a4)][_0x4354c1(0x26e)][_0x4354c1(0x1d8)]();_0x3d8a98[0x0]=_0x15a6b0[0x0]+_0x3d8a98[0x0],_0x5679bd[0x0]=_0x15a6b0[0x0]+_0x5679bd[0x0];let _0x921704=_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x173)](_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x235)](_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x218)][_0x4354c1(0x1f9)](),_0x3d8a98),_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x235)](_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x218)][_0x4354c1(0x1f9)](),_0x5679bd));const _0x531660=_0x55f056[_0x4354c1(0x1cd)][_0x4354c1(0x218)][_0x4354c1(0x138)][_0x4354c1(0x239)](_0x34ec95[_0x4354c1(0x226)]);for(const _0x52d732 of _0x531660)_0x921704=_0x2820e8[_0x4354c1(0x151)](_0x921704[_0x4354c1(0x156)](_0x52d732));return{'range':_0x921704,'currentIndex':_0x11eae0};}[_0x3b742f(0x146)](_0xb73409){const _0x18ceda=_0x3b742f;if(!_0xb73409[_0x18ceda(0x24e)][_0x18ceda(0x14b)](_0x18ceda(0x27f)))return;const _0x83cd08=_0xb73409[_0x18ceda(0x280)][_0x18ceda(0x24a)](_0x18ceda(0x2a9)),_0x32941b=_0xb73409[_0x18ceda(0x280)][_0x18ceda(0x24a)](_0x18ceda(0x1b5));this[_0x18ceda(0x1f8)](_0x83cd08,_0x18ceda(0x187),(_0x28e458,_0x332629,_0x111bd1)=>{const _0x469035=_0x18ceda,_0x54bd72=this[_0x469035(0x291)][_0x469035(0x24a)](_0x332629);if(!_0x54bd72)return;const _0x2305b0=this[_0x469035(0x2af)][_0x469035(0x14f)](_0x54bd72[_0x469035(0x269)])[_0x469035(0x2b2)](_0x54bd72[_0x469035(0x297)]);_0x54bd72[_0x469035(0x1ed)][_0x469035(0x253)](_0x3d9533=>_0x2305b0[_0x469035(0x193)](_0x3d9533,_0x469035(0x13b))),this[_0x469035(0x291)][_0x469035(0x1ff)](_0x332629),this[_0x469035(0x291)][_0x469035(0x214)](_0x111bd1,_0x54bd72);}),this[_0x18ceda(0x1f8)](_0x32941b,_0x18ceda(0x187),(_0x3639d6,_0x4c5539,_0xca9bd6)=>{const _0x138e07=_0x18ceda,_0x3fa67e=this[_0x138e07(0x291)][_0x138e07(0x24a)](_0x4c5539);if(!_0x3fa67e)return;const _0x28f46e=this[_0x138e07(0x2af)][_0x138e07(0x14f)](_0x3fa67e[_0x138e07(0x269)])[_0x138e07(0x2b2)](_0x3fa67e[_0x138e07(0x297)]);_0x3fa67e[_0x138e07(0x1ed)][_0x138e07(0x253)](_0x5f3950=>_0x28f46e[_0x138e07(0x193)](_0x5f3950,_0x138e07(0x290))),this[_0x138e07(0x291)][_0x138e07(0x1ff)](_0x4c5539),this[_0x138e07(0x291)][_0x138e07(0x214)](_0xca9bd6,_0x3fa67e);});}async[_0x3b742f(0x223)](_0x5450bb){const _0x5062aa=_0x3b742f;this[_0x5062aa(0x2a7)][_0x5062aa(0x24e)][_0x5062aa(0x14b)](_0x5062aa(0x13c))&&this[_0x5062aa(0x2a7)][_0x5062aa(0x24e)][_0x5062aa(0x24a)](_0x5062aa(0x13c))[_0x5062aa(0x15f)](),(this[_0x5062aa(0x2a7)][_0x5062aa(0x24e)][_0x5062aa(0x24a)](_0x2fe81f)[_0x5062aa(0x177)][_0x5062aa(0x185)](_0x5062aa(0x199)),this[_0x5062aa(0x261)][_0x5062aa(0x18e)](_0x5062aa(0x27b)),this[_0x5062aa(0x261)][_0x5062aa(0x20a)](!0x0),await this[_0x5062aa(0x1a8)]());try{await this[_0x5062aa(0x26b)][_0x5062aa(0x292)](_0x5450bb)[_0x5062aa(0x1ab)](),await this[_0x5062aa(0x234)](_0x5450bb),this[_0x5062aa(0x23d)]('\x20'),await this[_0x5062aa(0x2af)][_0x5062aa(0x191)](_0x5450bb,this[_0x5062aa(0x182)][_0x5062aa(0x169)]),this[_0x5062aa(0x2af)][_0x5062aa(0x20c)]()&&this[_0x5062aa(0x1c4)]();}catch(_0x4eb27b){this[_0x5062aa(0x261)][_0x5062aa(0x2a5)]({'errorMessage':_0x2351b5(this[_0x5062aa(0x2a7)][_0x5062aa(0x168)],_0x5062aa(0x14a)),'id':_0x5450bb}),this[_0x5062aa(0x227)](new _0x7864a9(_0x5062aa(0x190),this,{'error':_0x4eb27b}));}finally{this[_0x5062aa(0x261)][_0x5062aa(0x275)](),this[_0x5062aa(0x261)][_0x5062aa(0x18e)](_0x5062aa(0x238)),this[_0x5062aa(0x261)][_0x5062aa(0x20a)](!0x1);}}async[_0x3b742f(0x2ab)](){const _0x446e53=_0x3b742f,_0xec77e1=this[_0x446e53(0x26b)][_0x446e53(0x249)](this[_0x446e53(0x17e)](),{'limit':0x1,'sortBy':_0x446e53(0x1c2)});try{const _0x18ec3a=await _0xec77e1[_0x446e53(0x150)]();return _0x18ec3a[_0x446e53(0x258)]?_0x18ec3a[0x0]['id']:_0x446e53(0x1b7);}catch(_0x39d63d){return this[_0x446e53(0x261)][_0x446e53(0x2a5)]({'errorMessage':_0x2351b5(this[_0x446e53(0x2a7)][_0x446e53(0x168)],_0x446e53(0x14a)),'id':_0x20589e()}),this[_0x446e53(0x227)](new _0x7864a9(_0x446e53(0x172),this,{'error':_0x39d63d})),this[_0x446e53(0x261)][_0x446e53(0x20a)](!0x1),this[_0x446e53(0x261)][_0x446e53(0x158)](),null;}}[_0x3b742f(0x135)](_0xc2fe1b){const _0x523470=_0x3b742f;this[_0x523470(0x2af)]['id']===_0xc2fe1b&&this[_0x523470(0x234)]();}[_0x3b742f(0x1c4)](){const _0x228cf4=_0x3b742f;this[_0x228cf4(0x2af)]?.[_0x228cf4(0x174)](_0x2351b5(this[_0x228cf4(0x2a7)][_0x228cf4(0x168)],_0x228cf4(0x21e)));}async[_0x3b742f(0x149)](){const _0x2b951d=_0x3b742f,_0x41c31a=this[_0x2b951d(0x182)][_0x2b951d(0x1cb)]();this[_0x2b951d(0x2af)]?.[_0x2b951d(0x1ee)](_0x41c31a),this[_0x2b951d(0x1c4)]();}[_0x3b742f(0x24f)](){const _0x4ae284=_0x3b742f;this[_0x4ae284(0x2af)]?.[_0x4ae284(0x1fd)]();}[_0x3b742f(0x132)](){const _0x393647=_0x3b742f;this[_0x393647(0x261)][_0x393647(0x132)]();}async[_0x3b742f(0x1ea)](){const _0x217c02=_0x3b742f;await this[_0x217c02(0x234)]();}async[_0x3b742f(0x137)]({message:_0x217692,attributes:_0x5ab145}){const _0x5bc04a=_0x3b742f;await this[_0x5bc04a(0x279)]({'userMessage':_0x217692,'attributes':_0x5ab145});}[_0x3b742f(0x17e)](){const _0x4d088c=_0x3b742f,_0x35ce5a=this[_0x4d088c(0x2a7)][_0x4d088c(0x22b)][_0x4d088c(0x24a)](_0x4d088c(0x200));if(!_0x35ce5a)throw new _0x7864a9(_0x4d088c(0x144),this);return _0x35ce5a;}async[_0x3b742f(0x234)](_0x37a223){const _0x32e6b6=_0x3b742f;try{this[_0x32e6b6(0x261)][_0x32e6b6(0x27c)](),await this[_0x32e6b6(0x1b3)](_0x37a223);}catch(_0xe66432){this[_0x32e6b6(0x261)][_0x32e6b6(0x2a5)]({'errorMessage':_0x2351b5(this[_0x32e6b6(0x2a7)][_0x32e6b6(0x168)],_0x32e6b6(0x19f)),'id':_0x37a223||_0x20589e()}),console[_0x32e6b6(0x175)](_0xe66432),this[_0x32e6b6(0x2af)]=void 0x0,this[_0x32e6b6(0x261)][_0x32e6b6(0x158)]();}}async[_0x3b742f(0x1b3)](_0xd8280b){const _0x30efae=_0x3b742f;let _0x3b9d61;this[_0x30efae(0x2a7)][_0x30efae(0x24e)][_0x30efae(0x14b)](_0x30efae(0x13c))&&this[_0x30efae(0x2a7)][_0x30efae(0x24e)][_0x30efae(0x24a)](_0x30efae(0x13c))[_0x30efae(0x15f)](),_0xd8280b||!this[_0x30efae(0x2af)]?_0x3b9d61=this[_0x30efae(0x2a7)][_0x30efae(0x22b)][_0x30efae(0x24a)](_0x30efae(0x29c)):this[_0x30efae(0x261)][_0x30efae(0x192)]&&(_0x3b9d61=this[_0x30efae(0x2af)][_0x30efae(0x236)]['id']),await this[_0x30efae(0x1a8)]();const _0x50f866=this[_0x30efae(0x17e)](),_0xe42ed8=_0xd8280b||_0x20589e();this[_0x30efae(0x2af)]=new _0x190ed6({'connector':this[_0x30efae(0x26b)],'chatModels':this[_0x30efae(0x1cf)],'selectedModelId':_0x3b9d61,'conversationId':_0xe42ed8,'group':_0x50f866,'getEditor':()=>_0x244498(this[_0x30efae(0x2a7)]),'isFromHistory':!!_0xd8280b}),this[_0x30efae(0x2af)][_0x30efae(0x207)](_0x30efae(0x176),_0x30efae(0x17b))['to'](this),this[_0x30efae(0x2af)]['on'](_0x30efae(0x1da),(_0x3f2221,_0x389c29)=>{const _0x3e620a=_0x30efae;this[_0x3e620a(0x261)][_0x3e620a(0x17f)](_0x389c29),this[_0x3e620a(0x261)][_0x3e620a(0x25a)](),this[_0x3e620a(0x261)][_0x3e620a(0x12e)](),this[_0x3e620a(0x261)][_0x3e620a(0x1ae)](),_0xd8280b||(this[_0x3e620a(0x261)][_0x3e620a(0x1b0)](),this[_0x3e620a(0x1c4)]());}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x208),(_0x4ec3fd,_0x6ad28a)=>{const _0x32baf0=_0x30efae;this[_0x32baf0(0x261)][_0x32baf0(0x157)](_0x6ad28a[_0x32baf0(0x24d)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x154),(_0x1bb63,_0xdbd8ca)=>{const _0x252f47=_0x30efae;this[_0x252f47(0x261)][_0x252f47(0x287)](_0xdbd8ca);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x1a2),()=>{const _0x3a30fc=_0x30efae,_0x17d64f=this[_0x3a30fc(0x261)][_0x3a30fc(0x27e)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x3a30fc(0x261)][_0x3a30fc(0x198)](_0x17d64f);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x21a),()=>{const _0x46be4e=_0x30efae,_0x47ce53=this[_0x46be4e(0x261)][_0x46be4e(0x27e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x46be4e(0x261)][_0x46be4e(0x198)](_0x47ce53);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x16e),(_0x55f546,_0x354d5f)=>{const _0x168229=_0x30efae;this[_0x168229(0x261)][_0x168229(0x29a)](_0x354d5f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x29f),(_0x4ea8e6,_0x304ed3)=>{const _0x2b8929=_0x30efae;this[_0x2b8929(0x261)][_0x2b8929(0x29a)](_0x304ed3,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x17b),()=>{const _0x449eb5=_0x30efae;this[_0x449eb5(0x261)][_0x449eb5(0x178)]();}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x17c),async()=>{const _0x3a58ac=_0x30efae;await this[_0x3a58ac(0x261)][_0x3a58ac(0x12d)]();}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x14e),(_0x4a973f,_0x31012e)=>{const _0x15d2b0=_0x30efae;this[_0x15d2b0(0x261)][_0x15d2b0(0x1e5)](_0x31012e['id']);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x2a6),(_0x319b60,_0x134ef2,_0x1bef4f)=>{const _0x3f21dc=_0x30efae;this[_0x3f21dc(0x23d)](_0x134ef2,_0x1bef4f);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x1a1),(_0x83e543,_0x30a205)=>{const _0x40cae1=_0x30efae;_0x40cae1(0x27a)===_0x30a205[_0x40cae1(0x133)]?this[_0x40cae1(0x261)][_0x40cae1(0x288)](_0x30a205):this[_0x40cae1(0x261)][_0x40cae1(0x139)](_0x30a205);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x267),async(_0x2c0cd7,_0x1358db)=>{const _0x53e46a=_0x30efae;await this[_0x53e46a(0x293)]({'reply':_0x1358db});}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x26a),(_0x103144,{reply:_0x14a6af,index:_0x176a28,state:_0xe401cf})=>{const _0x2aa95e=_0x30efae;this[_0x2aa95e(0x261)][_0x2aa95e(0x12f)]({'id':_0x14a6af['id'],'index':_0x176a28,'state':_0xe401cf}),this[_0x2aa95e(0x1a4)]?.[_0x2aa95e(0x297)][_0x2aa95e(0x212)](_0x14a6af['id'])&&this[_0x2aa95e(0x1a4)]?.[_0x2aa95e(0x189)]==_0x176a28&&this[_0x2aa95e(0x213)]?.[_0x2aa95e(0x196)](_0xe401cf);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x237),(_0x21f9c7,_0x19d87b)=>{const _0x36b185=_0x30efae;if(this[_0x36b185(0x261)][_0x36b185(0x18c)](_0x19d87b[_0x36b185(0x1d9)],_0x19d87b[_0x36b185(0x2b3)]),_0x36b185(0x254)===_0x19d87b[_0x36b185(0x1d9)][_0x36b185(0x133)]){const _0x112ccc=[..._0x244498(this[_0x36b185(0x2a7)])[_0x36b185(0x1cd)][_0x36b185(0x218)][_0x36b185(0x254)][_0x36b185(0x1e6)]()];this[_0x36b185(0x182)][_0x36b185(0x1e4)](_0x112ccc,_0x36b185(0x21b)+this[_0x36b185(0x2af)]?.['id']);}}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x15d),(_0x1417cb,_0x2b8212)=>{const _0x2dba30=_0x30efae;this[_0x2dba30(0x261)][_0x2dba30(0x1dd)](_0x2b8212[_0x2dba30(0x272)]),_0x2dba30(0x220)==_0x2b8212[_0x2dba30(0x272)]&&this[_0x2dba30(0x24f)](),_0x2dba30(0x254)===_0x2b8212[_0x2dba30(0x133)]&&this[_0x2dba30(0x182)][_0x2dba30(0x248)](_0x2dba30(0x21b)+this[_0x2dba30(0x2af)]?.['id']);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x147),(_0x149d81,_0x4ac39a)=>{const _0x340370=_0x30efae;this[_0x340370(0x261)][_0x340370(0x256)](_0x4ac39a[_0x340370(0x1d9)][_0x340370(0x272)],_0x4ac39a[_0x340370(0x2b3)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x197),(_0x39a9d2,_0x7d017)=>{const _0x1989aa=_0x30efae;this[_0x1989aa(0x261)][_0x1989aa(0x2b1)](_0x7d017[_0x1989aa(0x1bb)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x294),(_0x1a537d,_0xb3296d)=>{const _0x3e1edf=_0x30efae;this[_0x3e1edf(0x261)][_0x3e1edf(0x1c9)](_0xb3296d[_0x3e1edf(0x203)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x29e),(_0x4a96f1,_0x4c399b)=>{const _0x20b5b4=_0x30efae;this[_0x20b5b4(0x261)][_0x20b5b4(0x1a9)](_0x4c399b[_0x20b5b4(0x2b7)],_0x4c399b[_0x20b5b4(0x194)],_0x4c399b[_0x20b5b4(0x27d)],_0x4c399b[_0x20b5b4(0x170)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x22f),(_0x955356,_0x1fa0f0)=>{const _0x5555a9=_0x30efae;this[_0x5555a9(0x261)][_0x5555a9(0x136)](_0x1fa0f0[_0x5555a9(0x2b7)],_0x1fa0f0[_0x5555a9(0x266)],_0x1fa0f0[_0x5555a9(0x232)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x2a3),(_0x176884,_0xa76c55)=>{const _0x3d793e=_0x30efae;this[_0x3d793e(0x261)][_0x3d793e(0x1d7)](_0xa76c55);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x224),async(_0x53cd5e,_0x4a523c)=>{const _0x1c825b=_0x30efae,_0x470c4a=(await this[_0x1c825b(0x1cf)][_0x1c825b(0x152)]())[_0x1c825b(0x1bd)](_0x5c4303=>_0x5c4303['id']===_0x4a523c[_0x1c825b(0x236)]['id'])||null;this[_0x1c825b(0x261)][_0x1c825b(0x28b)](_0x470c4a,_0x4a523c[_0x1c825b(0x1a7)]);}),this[_0x30efae(0x2af)]['on'](_0x30efae(0x175),(_0x57a2aa,{error:_0x1da8be,interactionId:_0x5ccf56,fileName:_0xf893e0,url:_0x158a3b,sourceId:_0xd5cd65,sourceLabel:_0x37947d})=>{const _0x595c1f=_0x30efae,_0x665771=_0x5ccf56?_0x5ccf56+':'+_0x20589e():_0x20589e();_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x1dc))?this[_0x595c1f(0x261)][_0x595c1f(0x259)]({'staticMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x276)),'id':_0x665771}):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x172))||_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x209))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x19f)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x195))?this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x1f5),_0xf893e0),'id':_0x665771}):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x265))?this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x143),_0x158a3b),'id':_0x665771}):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x1c5))?this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x155)),'id':_0x665771}):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x1b8))?this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x25d)),'id':_0x665771}):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x188))?(_0xd5cd65&&this[_0x595c1f(0x261)][_0x595c1f(0x243)](_0xd5cd65),this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x204),_0x37947d||_0x595c1f(0x194)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x29d))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x285)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x23e))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x298)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x23c))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x130)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x186))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x25f)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x148))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x241)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):_0x1da8be[_0x595c1f(0x28f)][_0x595c1f(0x274)](_0x595c1f(0x231))?(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x1d1)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be)):(this[_0x595c1f(0x261)][_0x595c1f(0x2a5)]({'errorMessage':_0x2351b5(this[_0x595c1f(0x2a7)][_0x595c1f(0x168)],_0x595c1f(0x229)),'id':_0x665771}),this[_0x595c1f(0x227)](_0x1da8be));}),await this[_0x30efae(0x2af)][_0x30efae(0x23f)](this[_0x30efae(0x2a7)][_0x30efae(0x22b)][_0x30efae(0x24a)](_0x30efae(0x153))),_0xd8280b||await this[_0x30efae(0x2af)][_0x30efae(0x2b6)]();}async[_0x3b742f(0x279)]({userMessage:_0x5da0e2,attributes:_0x279549}){const _0x647180=_0x3b742f;if(!this[_0x647180(0x2af)])throw new _0x7864a9(_0x647180(0x1f2));if(this[_0x647180(0x2af)][_0x647180(0x268)]()){const _0x42a8fc=await this[_0x647180(0x182)][_0x647180(0x202)]();await this[_0x647180(0x2af)][_0x647180(0x2a0)](_0x42a8fc);}this[_0x647180(0x2af)]['id']&&this[_0x647180(0x2af)][_0x647180(0x24b)]&&await this[_0x647180(0x2af)][_0x647180(0x1d4)]({'userMessage':_0x5da0e2,'attributes':_0x279549});}[_0x3b742f(0x273)](){const _0xe042c4=_0x3b742f;console[_0xe042c4(0x1ac)](_0xe042c4(0x1fc));}[_0x3b742f(0x2b4)](_0x10e175){const _0x2005f6=_0x3b742f;this[_0x2005f6(0x261)][_0x2005f6(0x250)](_0x10e175);}[_0x3b742f(0x227)](_0x334093){const _0x2385c2=_0x3b742f;_0x3efaeb(_0x334093[_0x2385c2(0x28f)]);}[_0x3b742f(0x164)](_0x5dfdff){const _0x2e6627=_0x3b742f;this[_0x2e6627(0x2af)]?.[_0x2e6627(0x1db)](_0x5dfdff);}[_0x3b742f(0x251)](){const _0x37fa48=_0x3b742f;this[_0x37fa48(0x2af)]?.[_0x37fa48(0x1ca)]();}[_0x3b742f(0x278)](){const _0x3553fd=_0x3b742f;this[_0x3553fd(0x2af)]?.[_0x3553fd(0x215)]();}[_0x3b742f(0x240)](_0x340951){const _0x12601e=_0x3b742f,[_0x939c34,_0x5d2b44]=_0x340951[_0x12601e(0x2aa)](':'),_0x887e09=this[_0x12601e(0x2af)][_0x12601e(0x14f)](_0x939c34),_0x40ee34=_0x887e09[_0x12601e(0x2b2)](_0x5d2b44);return{'interaction':_0x887e09,'reply':_0x40ee34};}[_0x3b742f(0x299)](_0x51e611,_0x5bdd66=!0x1){const _0x1368a8=_0x3b742f,_0x189da5=_0x244498(this[_0x1368a8(0x2a7)]),_0x25df48={'target':_0x189da5[_0x1368a8(0x211)][_0x1368a8(0x177)][_0x1368a8(0x210)][_0x1368a8(0x1a6)](_0x189da5[_0x1368a8(0x211)][_0x1368a8(0x15b)][_0x1368a8(0x17d)](_0x51e611)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5bdd66};_0x5bdd66&&(_0x25df48[_0x1368a8(0x22c)]=!0x0),_0x527ded(_0x25df48);}[_0x3b742f(0x23d)](_0x3a4144,_0xc0df4=!0x1){const _0x351c1a=_0x3b742f;this[_0x351c1a(0x261)][_0x351c1a(0x2a6)](_0x3a4144||_0x2351b5(this[_0x351c1a(0x2a7)][_0x351c1a(0x168)],_0x351c1a(0x2ac)),_0xc0df4);}async[_0x3b742f(0x293)]({reply:_0x43f323,renderingStrategy:_0xe3ba1a}){const _0x25dd33=_0x3b742f,{id:_0x1adc50,interactionId:_0x80b636,isDone:_0x173926,type:_0x50912c,parsedContent:_0x49076a}=_0x43f323,_0x90de49=_0x80b636+':'+_0x1adc50;if(_0x25dd33(0x19c)===_0x50912c){const _0x139e0f=_0x43f323[_0x25dd33(0x166)]({'showDiff':this[_0x25dd33(0x261)][_0x25dd33(0x183)]});await this[_0x25dd33(0x261)][_0x25dd33(0x24c)]({'id':_0x90de49,'parts':_0x139e0f,'renderingStrategy':_0xe3ba1a,'isDone':_0x173926});}else _0x25dd33(0x27a)===_0x50912c&&await this[_0x25dd33(0x261)][_0x25dd33(0x15c)]({'id':_0x90de49,'parsedContent':_0x49076a,'renderingStrategy':_0xe3ba1a,'isDone':_0x173926});_0x173926&&_0x43f323[_0x25dd33(0x244)][_0x25dd33(0x258)]>0x0&&this[_0x25dd33(0x261)][_0x25dd33(0x179)](_0x90de49,_0x43f323[_0x25dd33(0x244)]);}async[_0x3b742f(0x1a8)](){const _0x49bd54=_0x3b742f,_0x25b857=this[_0x49bd54(0x2af)]?.[_0x49bd54(0x13d)];_0x25b857&&(_0x25b857[_0x49bd54(0x20e)](),this[_0x49bd54(0x261)][_0x49bd54(0x281)](_0x25b857));}async[_0x3b742f(0x23a)](){const _0x4cf444=_0x3b742f,_0x191a36=this[_0x4cf444(0x2af)]?.[_0x4cf444(0x13d)];if(_0x191a36){for await(const _0x5f25b1 of _0x191a36[_0x4cf444(0x1b2)])await this[_0x4cf444(0x293)]({'reply':_0x5f25b1,'renderingStrategy':_0x4cf444(0x27b)});}}[_0x3b742f(0x1bc)](_0x1555df){const _0x4e7cd1=_0x3b742f,_0x7f0fa9={'positiveCount':_0x1555df[_0x4e7cd1(0x142)][_0x4e7cd1(0x140)](_0x11f853=>_0x4e7cd1(0x290)===_0x11f853[_0x4e7cd1(0x15a)])[_0x4e7cd1(0x258)],'totalCount':_0x1555df[_0x4e7cd1(0x142)][_0x4e7cd1(0x258)],'modificationId':_0x1555df['id']},_0x287e7b=this[_0x4e7cd1(0x2af)][_0x4e7cd1(0x14f)](_0x1555df[_0x4e7cd1(0x269)])[_0x4e7cd1(0x22e)];_0x287e7b&&this[_0x4e7cd1(0x26b)][_0x4e7cd1(0x28e)](this[_0x4e7cd1(0x2af)]['id'],_0x287e7b,_0x7f0fa9);}[_0x3b742f(0x1ad)](_0x18b9d3){const _0x44d386=_0x3b742f;let _0x5c3bae=null,_0x7b4d00=null;this['on'](_0x44d386(0x176),(_0x469be5,_0x45ae44,_0xdcd3a5)=>{const _0x2b38ab=_0x44d386;_0xdcd3a5['id']!==_0x5c3bae&&(_0x5c3bae=_0xdcd3a5['id'],_0x7b4d00=this[_0x2b38ab(0x271)](_0xdcd3a5)),_0x18b9d3(_0x45ae44,_0x7b4d00);});}[_0x3b742f(0x271)](_0x62272c){const _0x55d83f=_0x3b742f,_0x491941=this[_0x55d83f(0x261)],_0x9da521=()=>{const _0x17e454=_0x55d83f;_0x62272c[_0x17e454(0x18a)](),_0x62272c[_0x17e454(0x1e9)](),_0x491941[_0x17e454(0x25b)]();},_0x268149=()=>{const _0x1db600=_0x55d83f;_0x62272c[_0x1db600(0x217)]&&(_0x62272c[_0x1db600(0x217)][_0x1db600(0x13a)](),_0x62272c[_0x1db600(0x217)]=void 0x0);};return{'insertTextReply':(_0x12d3b6,_0x24449c)=>{const _0x3a803b=_0x55d83f;_0x268149(),_0x9da521();const _0x575429=_0x62272c[_0x3a803b(0x217)]=_0x62272c[_0x3a803b(0x1f3)]({'type':_0x3a803b(0x27a),'interactionId':_0x62272c['id'],'content':_0x12d3b6,'id':_0x24449c||_0x20589e()});return _0x268149(),_0x575429;},'insertCustomElement':async(_0xab8276,_0x51920b)=>(_0x268149(),_0x9da521(),_0x491941[_0x55d83f(0x201)](_0xab8276,_0x51920b||_0x20589e())),'setLoadingMessage':_0x2af995=>{const _0x49bbca=_0x55d83f;_0x491941[_0x49bbca(0x198)](_0x2af995);},'clearLoadingMessage':()=>{const _0x3a5cc7=_0x55d83f;_0x491941[_0x3a5cc7(0x25b)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4da626=_0x3fee;(function(_0x369099,_0x316eb8){const _0x3f0c96=_0x3fee,_0x32cb81=_0x369099();while(!![]){try{const _0x31d732=-parseInt(_0x3f0c96(0x247))/0x1*(parseInt(_0x3f0c96(0x225))/0x2)+-parseInt(_0x3f0c96(0x1d0))/0x3+-parseInt(_0x3f0c96(0x265))/0x4*(parseInt(_0x3f0c96(0x1ed))/0x5)+parseInt(_0x3f0c96(0x208))/0x6*(-parseInt(_0x3f0c96(0x209))/0x7)+-parseInt(_0x3f0c96(0x271))/0x8+parseInt(_0x3f0c96(0x1f5))/0x9*(parseInt(_0x3f0c96(0x206))/0xa)+-parseInt(_0x3f0c96(0x276))/0xb*(-parseInt(_0x3f0c96(0x22e))/0xc);if(_0x31d732===_0x316eb8)break;else _0x32cb81['push'](_0x32cb81['shift']());}catch(_0x1bec49){_0x32cb81['push'](_0x32cb81['shift']());}}}(_0x29c3,0x2a19b));import{ContextPlugin as _0xcadc3e}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x41b9f7}from'ckeditor5/src/utils.js';import{AIChatView as _0x3e42df}from'./ui/aichatview.js';import{AITabs as _0x245332}from'../aitabs/aitabs.js';import{getTranslation as _0x4b7d71}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2ea95c}from'ckeditor5/src/icons.js';function _0x29c3(){const _0x2c600d=['interaction-header','<p>','setSelectedModel','removeItem','addFeedItemUserMessage','stopAutoScroll','updateCapabilities','capabilities','createConversation','length','custom-element','chatFeed','fire','displayedPrompt','466834mQtlHV','isDisabled','user-message','updateResourceState','addTab','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','config','from','disableControls','5820EIilmT','setModelList','options','queueEmptyPromise','enableControls','AITabs','clearConversationContextUI','last','stopInteraction','ai-suggestion-reply','children','updateFeedItemAIReplySuggestionContent','removeFeedItem','isTrackChangesOn','contextItems','requires','conversation-start','addContextItem','scrollToSuggestion','setPromptInputValue','</p>','setFeedItemAIReplySuggestionPartActive','AI_CHAT_WELCOME_MESSAGE','insertSuggestion','markItemAsDone','1LYrqiK','setIsMaximized','finishInteraction','abort','context','userMessage','updateSuggestionItem','setModel','plugins','startAutoScroll','forEach','toggleLoadingSkeleton','startInteraction','addFeedItemStaticMessage','setIsUploadInProgress','showResizeButton','ai.availableReplyActions','feedItemRenderingStrategy','addFeedItemError','set','resetMessageInput','find','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','delegate','areActionsDisabled','prepareLoadingMessage','addFeedItemCustomElement','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','clearPendingContextUI','setSuggestionPartActive','20KIUPXl','setContextItemLoading','addItem','trackChanges','_getInputPlaceholder','isPending','clearLoadingMessage','isOfficialPlugin','_animateConversationTitle','updateSuggestionPartState','_titleAnimationInterval','setConversationTitle','1305136SJbJGO','clear','isVisible','values','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','22957BofgCi','hasItem','addFeedItemAIReply','chatHeader','TrackChanges','isBusy','toggleSuggestionDisplayMode','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','startsWith','updateFeedItemAIReplySuggestionPartState','availableModels','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_promiseQueue','setConversationContext','62274wLYkRV','then','enqueue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isPremiumPlugin','setWebSearch','scrollFeedToSuggestion','remove','get','getItemIds','addFeedItemAISuggestion','updateFeedItemAIReplySources','destroy','updateFeedItemAIReplyContent','setInputPlaceholder','hasFeedItem','showDiff','updateWebSources','conversationCreated','isWebSearchEnabled','removeContextItem','streaming','commands','isLoading','ai.chat.context.searchInputVisibleFrom','AIChatUI','isReasoningEnabled','markFeedItemAsDone','chatControls','151115qeNFoN','_view','disableModelSelector','enableModelSelector','isModelAvailable','filter','removeFeedInteraction','isMaximized','255222URcZjj','error-message','locale','isDone','focusPromptInput','view','has','_interactionPromiseResolver','chat','label','setAddContextOptions','renderingStrategy','populateSourceResourceBalloon','setReasoning','interactionId','closeSourceResourceBalloon','pluginName','10OSoBLO','AI_CHAT_HEADING','1798068UYzkTu','7GBVGKV','bind','resetConversationTitle','ai-reply','value','setFeedItemRenderingStrategy','addFeedInteractionHeader','attributes','setLoadingMessage','ai.models.showModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','ai.chat.welcomeMessage','_isTrackChangesCommandValueBound','updateFeedInteractionHeader'];_0x29c3=function(){return _0x2c600d;};return _0x29c3();}import{AIChatFeedInteractionHeaderView as _0x2c94ac}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x30e721}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x50bca0}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x38ca54}from'../aicore/utils/geteditorfromcontext.js';function _0x3fee(_0x5aa390,_0x1d2145){const _0x29c3ee=_0x29c3();return _0x3fee=function(_0x3fee8e,_0x418d82){_0x3fee8e=_0x3fee8e-0x1c6;let _0x229879=_0x29c3ee[_0x3fee8e];return _0x229879;},_0x3fee(_0x5aa390,_0x1d2145);}import{AI_REPLY_ACTIONS as _0x4c7c6d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xcadc3e{static get[_0x4da626(0x23d)](){return[_0x245332];}[_0x4da626(0x1ee)];static get[_0x4da626(0x205)](){const _0x5a22d6=_0x4da626;return _0x5a22d6(0x1e9);}static get[_0x4da626(0x26c)](){return!0x0;}static get[_0x4da626(0x1d4)](){return!0x0;}[_0x4da626(0x258)]=_0x4da626(0x1e5);[_0x4da626(0x1e0)]=!0x0;[_0x4da626(0x1ce)];[_0x4da626(0x1fc)];[_0x4da626(0x26f)]=void 0x0;[_0x4da626(0x215)]=!0x1;constructor(_0x5ec737){const _0x363b33=_0x4da626;super(_0x5ec737);const _0x5b2a19=this[_0x363b33(0x24b)][_0x363b33(0x24f)][_0x363b33(0x1d8)](_0x363b33(0x233));this[_0x363b33(0x25a)](_0x363b33(0x1c6),!0x1),this[_0x363b33(0x1ce)]=new _0x30e721(),this[_0x363b33(0x1ee)]=new _0x3e42df(this[_0x363b33(0x24b)][_0x363b33(0x1f7)],{'showResizeButton':_0x5b2a19[_0x363b33(0x256)],'contextResourcesSearchInputVisibleFrom':this[_0x363b33(0x24b)][_0x363b33(0x22b)][_0x363b33(0x1d8)](_0x363b33(0x1e8))}),this[_0x363b33(0x1ee)][_0x363b33(0x25e)](..._0x50bca0)['to'](this),this[_0x363b33(0x1ee)]['on'](_0x363b33(0x1c7),(_0x13e01c,{showDiff:_0xad7a45})=>{const _0x20b8b4=_0x363b33;this[_0x20b8b4(0x1e0)]=_0xad7a45;}),_0x5b2a19[_0x363b33(0x1fa)][_0x363b33(0x229)]({'id':_0x363b33(0x1fd),'buttonLabel':_0x4b7d71(this[_0x363b33(0x24b)][_0x363b33(0x1f7)],_0x363b33(0x207)),'buttonIcon':_0x2ea95c,'order':0x0,'content':this[_0x363b33(0x1ee)]}),this[_0x363b33(0x1ee)][_0x363b33(0x1ec)][_0x363b33(0x20a)](_0x363b33(0x1e7))['to'](this,_0x363b33(0x1c6),_0x5bec1a=>_0x5bec1a),this[_0x363b33(0x1ee)][_0x363b33(0x222)][_0x363b33(0x20a)](_0x363b33(0x26a))['to'](this,_0x363b33(0x1c6),_0x34f467=>_0x34f467),this[_0x363b33(0x1ee)][_0x363b33(0x1ec)][_0x363b33(0x1de)](this[_0x363b33(0x269)]()),this[_0x363b33(0x20a)](_0x363b33(0x1f1))['to'](this[_0x363b33(0x1ee)][_0x363b33(0x1ec)],_0x363b33(0x1f1));}[_0x4da626(0x1dc)](){const _0x2b405f=_0x4da626;super[_0x2b405f(0x1dc)](),this[_0x2b405f(0x26f)]&&clearInterval(this[_0x2b405f(0x26f)]);}[_0x4da626(0x21f)](_0x7957e9){const _0x411974=_0x4da626,_0x49b33b=this[_0x411974(0x24b)][_0x411974(0x22b)][_0x411974(0x1d8)](_0x411974(0x214))??_0x4b7d71(this[_0x411974(0x24b)][_0x411974(0x1f7)],_0x411974(0x244));this[_0x411974(0x1ee)][_0x411974(0x222)][_0x411974(0x272)](),this[_0x411974(0x1ee)][_0x411974(0x1ec)][_0x411974(0x1f0)](),this[_0x411974(0x1ee)][_0x411974(0x1ec)][_0x411974(0x22f)](_0x7957e9[_0x411974(0x1cc)],!this[_0x411974(0x24b)][_0x411974(0x22b)][_0x411974(0x1d8)](_0x411974(0x212))),this[_0x411974(0x254)]({'id':_0x411974(0x23e),'staticMessage':_0x49b33b}),this[_0x411974(0x223)](_0x411974(0x1e2));}[_0x4da626(0x254)]({id:_0x12c2cf,staticMessage:_0x2159c0}){const _0x171238=_0x4da626;this[_0x171238(0x1ee)][_0x171238(0x222)][_0x171238(0x267)](_0x171238(0x20c),{'id':_0x12c2cf,'initialContent':_0x171238(0x218)+_0x2159c0+_0x171238(0x242)});}[_0x4da626(0x21b)](_0x2ec525){const _0x1d507c=_0x4da626,_0x31102c=_0x2ec525[_0x1d507c(0x210)]?.[_0x1d507c(0x224)]||_0x2ec525[_0x1d507c(0x24c)];this[_0x1d507c(0x1ee)][_0x1d507c(0x222)][_0x1d507c(0x267)](_0x1d507c(0x227),{'contextItems':Array[_0x1d507c(0x22c)](_0x2ec525[_0x1d507c(0x23c)][_0x1d507c(0x274)]()),'initialContent':_0x1d507c(0x218)+_0x31102c+_0x1d507c(0x242),'id':_0x2ec525['id']});}[_0x4da626(0x259)]({errorMessage:_0x4df0e5,id:_0x13fbb1}){const _0x4a16e2=_0x4da626;this[_0x4a16e2(0x1ee)][_0x4a16e2(0x222)][_0x4a16e2(0x267)](_0x4a16e2(0x1f6),{'initialContent':_0x4a16e2(0x218)+_0x4df0e5+_0x4a16e2(0x242),'id':_0x13fbb1});}[_0x4da626(0x278)](_0x1a5b1a){const _0x25ca42=_0x4da626;return this[_0x25ca42(0x1ce)][_0x25ca42(0x1d2)](async()=>{const _0x125269=_0x25ca42;this[_0x125269(0x1ee)][_0x125269(0x222)][_0x125269(0x267)](_0x125269(0x20c),{'id':_0x1a5b1a[_0x125269(0x203)]+':'+_0x1a5b1a['id']}),this[_0x125269(0x26b)]();});}async[_0x4da626(0x1da)](_0x2b3935){const _0x405c2f=_0x4da626,_0x4e66dc=_0x38ca54(this[_0x405c2f(0x24b)]);let _0x13f2ea=_0x4e66dc[_0x405c2f(0x22b)][_0x405c2f(0x1d8)](_0x405c2f(0x257))||[..._0x4c7c6d];if(_0x4e66dc[_0x405c2f(0x24f)][_0x405c2f(0x1fb)](_0x405c2f(0x27a))){if(!this[_0x405c2f(0x215)]){this[_0x405c2f(0x215)]=!0x0;const _0x2366ac=_0x4e66dc[_0x405c2f(0x1e6)][_0x405c2f(0x1d8)](_0x405c2f(0x268));this[_0x405c2f(0x1ee)][_0x405c2f(0x222)][_0x405c2f(0x20a)](_0x405c2f(0x23b))['to'](_0x2366ac,_0x405c2f(0x20d));}}else _0x13f2ea=_0x13f2ea[_0x405c2f(0x1f2)](_0x435c3f=>_0x405c2f(0x245)!=_0x435c3f);return this[_0x405c2f(0x1ce)][_0x405c2f(0x1d2)](async()=>{const _0x50d102=_0x405c2f;this[_0x50d102(0x1ee)][_0x50d102(0x222)][_0x50d102(0x267)](_0x50d102(0x237),{'id':_0x2b3935[_0x50d102(0x203)]+':'+_0x2b3935['id'],'areActionsDisabled':_0x2b3935[_0x50d102(0x25f)],'showDiff':this[_0x50d102(0x1e0)],'availableActions':_0x13f2ea}),this[_0x50d102(0x26b)]();});}[_0x4da626(0x20f)](_0x3e7ee9,_0x238fb9){const _0x308b37=_0x4da626,_0x141032=this[_0x308b37(0x1ee)][_0x308b37(0x222)][_0x308b37(0x238)][_0x308b37(0x235)];if(_0x141032 instanceof _0x2c94ac)return this[_0x308b37(0x1ee)][_0x308b37(0x222)][_0x308b37(0x238)][_0x308b37(0x1d7)](_0x141032),void this[_0x308b37(0x1ee)][_0x308b37(0x222)][_0x308b37(0x267)](_0x308b37(0x217),{'id':_0x3e7ee9['id'],'capabilities':{'isWebSearchEnabled':_0x141032[_0x308b37(0x21e)][_0x308b37(0x1e3)]||_0x238fb9[_0x308b37(0x1e3)],'isReasoningEnabled':_0x141032[_0x308b37(0x21e)][_0x308b37(0x1ea)]||_0x238fb9[_0x308b37(0x1ea)]}});this[_0x308b37(0x1ee)][_0x308b37(0x222)][_0x308b37(0x267)](_0x308b37(0x217),{'id':_0x3e7ee9['id'],'capabilities':_0x238fb9});}async[_0x4da626(0x261)](_0x3bf9b2,_0x21529f){const _0x40ffb1=_0x4da626;let _0x4c8a0c;return await this[_0x40ffb1(0x1ce)][_0x40ffb1(0x1d2)](async()=>{const _0x2c6d89=_0x40ffb1;_0x4c8a0c=this[_0x2c6d89(0x1ee)][_0x2c6d89(0x222)][_0x2c6d89(0x267)](_0x2c6d89(0x221),{'content':_0x3bf9b2,'id':_0x21529f});}),_0x4c8a0c;}[_0x4da626(0x23a)](_0x36192a){const _0x501bd8=_0x4da626;this[_0x501bd8(0x1ee)][_0x501bd8(0x222)][_0x501bd8(0x21a)](_0x36192a);}[_0x4da626(0x1df)](_0x2563df){const _0x18ab0c=_0x4da626;return this[_0x18ab0c(0x1ee)][_0x18ab0c(0x222)][_0x18ab0c(0x277)](_0x2563df);}[_0x4da626(0x216)](_0x2026ec){const _0x459199=_0x4da626,_0x3b060b=this[_0x459199(0x1ee)][_0x459199(0x222)][_0x459199(0x238)][_0x459199(0x25c)](_0x3f65be=>_0x3f65be[_0x459199(0x230)]['id']==_0x2026ec['id']&&_0x3f65be instanceof _0x2c94ac);_0x3b060b&&_0x3b060b[_0x459199(0x25a)](_0x459199(0x273),_0x2026ec[_0x459199(0x273)]);}async[_0x4da626(0x1dd)](_0x198328){const _0x41a132=_0x4da626,_0xc29e71=_0x198328[_0x41a132(0x200)]||this[_0x41a132(0x258)];return this[_0x41a132(0x1ce)][_0x41a132(0x1d2)](async _0xdb951a=>{const _0x5ef8c0=_0x41a132;await this[_0x5ef8c0(0x1ee)][_0x5ef8c0(0x222)][_0x5ef8c0(0x1c8)]({..._0x198328,'abortSignal':_0xdb951a,'renderingStrategy':_0xc29e71}),_0x198328[_0x5ef8c0(0x1f8)]&&this[_0x5ef8c0(0x1eb)](_0x198328['id']);});}[_0x4da626(0x1db)](_0x2b649f,_0x5d995a){const _0x27ebe5=_0x4da626;this[_0x27ebe5(0x1ee)][_0x27ebe5(0x222)][_0x27ebe5(0x1e1)](_0x2b649f,_0x5d995a);}async[_0x4da626(0x239)](_0x322138){const _0x9f4872=_0x4da626,_0x430788=_0x322138[_0x9f4872(0x200)]||this[_0x9f4872(0x258)];return this[_0x9f4872(0x1ce)][_0x9f4872(0x1d2)](async _0x33814e=>{const _0x5d9c0a=_0x9f4872;await this[_0x5d9c0a(0x1ee)][_0x5d9c0a(0x222)][_0x5d9c0a(0x24d)]({..._0x322138,'abortSignal':_0x33814e,'renderingStrategy':_0x430788}),_0x322138[_0x5d9c0a(0x1f8)]&&this[_0x5d9c0a(0x1eb)](_0x322138['id']);});}[_0x4da626(0x1cb)](_0x552a76){const _0x5b82f6=_0x4da626;this[_0x5b82f6(0x1ee)][_0x5b82f6(0x222)][_0x5b82f6(0x26e)](_0x552a76);}[_0x4da626(0x243)](_0x4d775d){const _0x5044d2=_0x4da626;this[_0x5044d2(0x1ee)][_0x5044d2(0x222)][_0x5044d2(0x264)](_0x4d775d);}[_0x4da626(0x1eb)](_0x256ad2){const _0x849913=_0x4da626;this[_0x849913(0x1ee)][_0x849913(0x222)][_0x849913(0x246)](_0x256ad2);}[_0x4da626(0x1f3)](_0x448199){const _0x338fff=_0x4da626;this[_0x338fff(0x1ee)][_0x338fff(0x222)][_0x338fff(0x1d9)]()[_0x338fff(0x1f2)](_0x59f5cb=>_0x59f5cb[_0x338fff(0x1ca)](_0x448199))[_0x338fff(0x251)](_0x2259e3=>this[_0x338fff(0x1ee)][_0x338fff(0x222)][_0x338fff(0x21a)](_0x2259e3));}[_0x4da626(0x253)](){const _0x6869c6=_0x4da626,_0x4b1cd3=this[_0x6869c6(0x260)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x6869c6(0x211)](_0x4b1cd3),this[_0x6869c6(0x1ee)][_0x6869c6(0x1ec)][_0x6869c6(0x1ef)](!this[_0x6869c6(0x24b)][_0x6869c6(0x22b)][_0x6869c6(0x1d8)](_0x6869c6(0x212))),this[_0x6869c6(0x1c6)]=!0x0,this[_0x6869c6(0x1ee)][_0x6869c6(0x222)][_0x6869c6(0x250)]();}[_0x4da626(0x236)](_0x1291d1){const _0x2e4701=_0x4da626;this[_0x2e4701(0x1ce)][_0x2e4701(0x24a)](),this[_0x2e4701(0x1ee)][_0x2e4701(0x222)][_0x2e4701(0x1d9)]()[_0x2e4701(0x1f2)](_0x48dd14=>_0x48dd14[_0x2e4701(0x1ca)](_0x1291d1['id']))[_0x2e4701(0x251)](_0x12712e=>this[_0x2e4701(0x1eb)](_0x12712e)),this[_0x2e4701(0x1c6)]=!0x1,this[_0x2e4701(0x1ee)][_0x2e4701(0x222)][_0x2e4701(0x21c)]();}async[_0x4da626(0x249)](){const _0x2f9393=_0x4da626;return this[_0x2f9393(0x1ce)][_0x2f9393(0x231)][_0x2f9393(0x1d1)](()=>{const _0xa02e05=_0x2f9393;this[_0xa02e05(0x1c6)]=!0x1,this[_0xa02e05(0x1ee)][_0xa02e05(0x222)][_0xa02e05(0x21c)]();});}[_0x4da626(0x23f)](_0x131b2a,_0x1dbc82){const _0xb95bf0=_0x4da626;this[_0xb95bf0(0x1ee)][_0xb95bf0(0x1ec)][_0xb95bf0(0x23f)](_0x131b2a,_0x1dbc82);}[_0x4da626(0x1e4)](_0x1ad31b){const _0x1db826=_0x4da626;this[_0x1db826(0x1ee)][_0x1db826(0x1ec)][_0x1db826(0x1e4)](_0x1ad31b);}[_0x4da626(0x266)](_0x15a227,_0x3f3e73){const _0x1c04ee=_0x4da626;this[_0x1c04ee(0x1ee)][_0x1c04ee(0x1ec)][_0x1c04ee(0x266)](_0x15a227,_0x3f3e73);}[_0x4da626(0x255)](_0x3b40ad){const _0x57ace5=_0x4da626;this[_0x57ace5(0x1ee)][_0x57ace5(0x1ec)][_0x57ace5(0x255)](_0x3b40ad);}[_0x4da626(0x1cf)](_0x43aef2){const _0x46481e=_0x4da626;this[_0x46481e(0x1ee)][_0x46481e(0x1ec)][_0x46481e(0x1cf)](_0x43aef2);}[_0x4da626(0x263)](){const _0x4666f8=_0x4da626;this[_0x4666f8(0x1ee)][_0x4666f8(0x1ec)][_0x4666f8(0x263)]();}[_0x4da626(0x234)](){const _0x90a3ee=_0x4da626;this[_0x90a3ee(0x1ee)][_0x90a3ee(0x1ec)][_0x90a3ee(0x234)]();}[_0x4da626(0x228)](_0x48d722,_0x2f1df2,_0x5f97fe){const _0x82f26b=_0x4da626;this[_0x82f26b(0x1ee)][_0x82f26b(0x1ec)][_0x82f26b(0x228)](_0x48d722,_0x2f1df2,_0x5f97fe);}[_0x4da626(0x25b)](){const _0x1f6254=_0x4da626;this[_0x1f6254(0x1ee)][_0x1f6254(0x1ec)][_0x1f6254(0x25b)](),this[_0x1f6254(0x1ee)][_0x1f6254(0x1ec)][_0x1f6254(0x1de)](this[_0x1f6254(0x269)]());}[_0x4da626(0x1ff)](_0x226d17){const _0x3dcee4=_0x4da626;this[_0x3dcee4(0x1ee)][_0x3dcee4(0x1ec)][_0x3dcee4(0x1ff)](_0x226d17);}[_0x4da626(0x21d)](_0x2f8c49){const _0x458a97=_0x4da626;this[_0x458a97(0x1ee)][_0x458a97(0x1ec)][_0x458a97(0x1d5)](_0x2f8c49[_0x458a97(0x1e3)]),this[_0x458a97(0x1ee)][_0x458a97(0x1ec)][_0x458a97(0x202)](_0x2f8c49[_0x458a97(0x1ea)]),this[_0x458a97(0x1ee)][_0x458a97(0x1ec)][_0x458a97(0x1de)](this[_0x458a97(0x269)](_0x2f8c49));}[_0x4da626(0x219)](_0x34c2d7,_0x5e7356){const _0x50c0ca=_0x4da626;this[_0x50c0ca(0x1ee)][_0x50c0ca(0x1ec)][_0x50c0ca(0x24e)](_0x34c2d7),_0x5e7356&&this[_0x50c0ca(0x1ee)][_0x50c0ca(0x1ec)][_0x50c0ca(0x1ef)](!0x1);}[_0x4da626(0x20e)](_0x5a8939){const _0x4a1cc7=_0x4da626;this[_0x4a1cc7(0x258)]=_0x5a8939;}[_0x4da626(0x252)](_0x236bc6){const _0x19cc2c=_0x4da626;this[_0x19cc2c(0x1ee)][_0x19cc2c(0x222)][_0x19cc2c(0x252)](_0x236bc6);}[_0x4da626(0x20b)](){const _0x3e6bce=_0x4da626;this[_0x3e6bce(0x270)](_0x4b7d71(this[_0x3e6bce(0x24b)][_0x3e6bce(0x1f7)],_0x3e6bce(0x207)));}[_0x4da626(0x270)](_0x49d998,_0xdde3b4=!0x1){const _0x1f93c4=_0x4da626;if(_0xdde3b4&&!_0x41b9f7()&&_0x49d998[_0x1f93c4(0x220)])return this[_0x1f93c4(0x1ee)][_0x1f93c4(0x279)][_0x1f93c4(0x1fe)]='',void this[_0x1f93c4(0x26d)](_0x49d998);this[_0x1f93c4(0x1ee)][_0x1f93c4(0x279)][_0x1f93c4(0x1fe)]=_0x49d998;}[_0x4da626(0x211)](_0x49546d){const _0x27e61d=_0x4da626;this[_0x27e61d(0x1ee)][_0x27e61d(0x222)][_0x27e61d(0x211)](_0x49546d);}[_0x4da626(0x26b)](){const _0x2bd272=_0x4da626;this[_0x2bd272(0x1ee)][_0x2bd272(0x222)][_0x2bd272(0x211)]('');}[_0x4da626(0x26d)](_0x561e86){const _0xf6446d=_0x4da626;let _0x164ac7=0x0;clearInterval(this[_0xf6446d(0x26f)]),this[_0xf6446d(0x26f)]=setInterval(()=>{const _0x385e59=_0xf6446d;this[_0x385e59(0x1ee)][_0x385e59(0x279)][_0x385e59(0x1fe)]=this[_0x385e59(0x1ee)][_0x385e59(0x279)][_0x385e59(0x1fe)]+_0x561e86[_0x164ac7],_0x164ac7++,_0x164ac7===_0x561e86[_0x385e59(0x220)]&&clearInterval(this[_0x385e59(0x26f)]);},0x1e);}[_0x4da626(0x248)](_0x5f1fd0){const _0x3df58f=_0x4da626;this[_0x3df58f(0x1ee)][_0x3df58f(0x279)][_0x3df58f(0x1f4)]=_0x5f1fd0;}[_0x4da626(0x260)](_0x37b9b3){const _0x1d8e35=_0x4da626;return _0x37b9b3[_0x1d8e35(0x1e3)]&&_0x37b9b3[_0x1d8e35(0x1ea)]?_0x4b7d71(this[_0x1d8e35(0x24b)][_0x1d8e35(0x1f7)],_0x1d8e35(0x1c9)):_0x37b9b3[_0x1d8e35(0x1e3)]?_0x4b7d71(this[_0x1d8e35(0x24b)][_0x1d8e35(0x1f7)],_0x1d8e35(0x213)):_0x37b9b3[_0x1d8e35(0x1ea)]?_0x4b7d71(this[_0x1d8e35(0x24b)][_0x1d8e35(0x1f7)],_0x1d8e35(0x1cd)):_0x4b7d71(this[_0x1d8e35(0x24b)][_0x1d8e35(0x1f7)],_0x1d8e35(0x22a));}[_0x4da626(0x269)](_0x13a230){const _0x10c279=_0x4da626;return _0x13a230?_0x13a230[_0x10c279(0x1e3)]&&_0x13a230[_0x10c279(0x1ea)]?_0x4b7d71(this[_0x10c279(0x24b)][_0x10c279(0x1f7)],_0x10c279(0x262)):_0x13a230[_0x10c279(0x1e3)]?_0x4b7d71(this[_0x10c279(0x24b)][_0x10c279(0x1f7)],_0x10c279(0x25d)):_0x13a230[_0x10c279(0x1ea)]?_0x4b7d71(this[_0x10c279(0x24b)][_0x10c279(0x1f7)],_0x10c279(0x275)):_0x4b7d71(this[_0x10c279(0x24b)][_0x10c279(0x1f7)],_0x10c279(0x1d3)):_0x4b7d71(this[_0x10c279(0x24b)][_0x10c279(0x1f7)],_0x10c279(0x1d3));}[_0x4da626(0x201)](_0x26bc1f,_0x58cd25,_0x48715e,_0x3ddce0){const _0xd64027=_0x4da626;this[_0xd64027(0x1ee)][_0xd64027(0x201)](_0x26bc1f,_0x58cd25,_0x48715e,_0x3ddce0);}[_0x4da626(0x204)](_0x45ba5b){const _0x517376=_0x4da626;this[_0x517376(0x1ee)][_0x517376(0x204)](_0x45ba5b);}[_0x4da626(0x241)](_0x55cbd9){const _0x240edf=_0x4da626;this[_0x240edf(0x1ee)][_0x240edf(0x1ec)][_0x240edf(0x241)](_0x55cbd9);}[_0x4da626(0x1f9)](_0x536d21=!0x1){const _0x5cd478=_0x4da626;this[_0x5cd478(0x1ee)][_0x5cd478(0x1ec)][_0x5cd478(0x1f9)](_0x536d21);}[_0x4da626(0x1d6)](_0x1c9660,_0x1458c6){const _0x3fcd8d=_0x4da626;this[_0x3fcd8d(0x1ee)][_0x3fcd8d(0x222)][_0x3fcd8d(0x240)](_0x1c9660,_0x1458c6);}[_0x4da626(0x250)](){const _0x1e7e48=_0x4da626;this[_0x1e7e48(0x1ee)][_0x1e7e48(0x222)][_0x1e7e48(0x250)]();}[_0x4da626(0x22d)](){const _0xd4331b=_0x4da626;this[_0xd4331b(0x1ee)][_0xd4331b(0x1ec)][_0xd4331b(0x226)]=!0x0;}[_0x4da626(0x232)](){const _0x33feb3=_0x4da626;this[_0x33feb3(0x1ee)][_0x33feb3(0x1ec)][_0x33feb3(0x226)]=!0x1;}}
23
+ const _0xbd8d3e=_0x2e78;(function(_0x1de0ab,_0x3eb36f){const _0x43ba57=_0x2e78,_0x10ede8=_0x1de0ab();while(!![]){try{const _0x51a87d=parseInt(_0x43ba57(0x1f4))/0x1+-parseInt(_0x43ba57(0x268))/0x2+parseInt(_0x43ba57(0x247))/0x3+parseInt(_0x43ba57(0x1fd))/0x4*(parseInt(_0x43ba57(0x23b))/0x5)+-parseInt(_0x43ba57(0x22e))/0x6*(-parseInt(_0x43ba57(0x1d0))/0x7)+-parseInt(_0x43ba57(0x1e0))/0x8+-parseInt(_0x43ba57(0x234))/0x9;if(_0x51a87d===_0x3eb36f)break;else _0x10ede8['push'](_0x10ede8['shift']());}catch(_0x295545){_0x10ede8['push'](_0x10ede8['shift']());}}}(_0x4bcc,0x5c59c));import{ContextPlugin as _0x4ade66}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x6d0c39}from'ckeditor5/src/utils.js';import{AIChatView as _0x39ecf6}from'./ui/aichatview.js';import{AITabs as _0x48a1ae}from'../aitabs/aitabs.js';import{getTranslation as _0x547834}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x406841}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4604f8}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xfc52e2}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x291411}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xf5a882}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1e23ae}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4ade66{static get[_0xbd8d3e(0x211)](){return[_0x48a1ae];}[_0xbd8d3e(0x20d)];static get[_0xbd8d3e(0x1f0)](){const _0x38b89e=_0xbd8d3e;return _0x38b89e(0x1db);}static get[_0xbd8d3e(0x223)](){return!0x0;}static get[_0xbd8d3e(0x245)](){return!0x0;}[_0xbd8d3e(0x1fb)]=_0xbd8d3e(0x26f);[_0xbd8d3e(0x1ee)]=!0x0;[_0xbd8d3e(0x23c)];[_0xbd8d3e(0x1f2)];[_0xbd8d3e(0x214)]=void 0x0;[_0xbd8d3e(0x1d1)]=!0x1;constructor(_0x37b861){const _0x13a291=_0xbd8d3e;super(_0x37b861);const _0x45a823=this[_0x13a291(0x1ce)][_0x13a291(0x1e7)][_0x13a291(0x256)](_0x13a291(0x251));this[_0x13a291(0x278)](_0x13a291(0x224),!0x1),this[_0x13a291(0x23c)]=new _0xfc52e2(),this[_0x13a291(0x20d)]=new _0x39ecf6(this[_0x13a291(0x1ce)][_0x13a291(0x249)],{'showResizeButton':_0x45a823[_0x13a291(0x1e4)],'contextResourcesSearchInputVisibleFrom':this[_0x13a291(0x1ce)][_0x13a291(0x266)][_0x13a291(0x256)](_0x13a291(0x279))}),this[_0x13a291(0x20d)][_0x13a291(0x20c)](..._0x291411)['to'](this),this[_0x13a291(0x20d)]['on'](_0x13a291(0x1dd),(_0x2e4e08,{showDiff:_0x390c29})=>{const _0x5df98b=_0x13a291;this[_0x5df98b(0x1ee)]=_0x390c29;}),_0x45a823[_0x13a291(0x228)][_0x13a291(0x1d5)]({'id':_0x13a291(0x23f),'buttonLabel':_0x547834(this[_0x13a291(0x1ce)][_0x13a291(0x249)],_0x13a291(0x262)),'buttonIcon':_0x406841,'order':0x0,'content':this[_0x13a291(0x20d)]}),this[_0x13a291(0x20d)][_0x13a291(0x242)][_0x13a291(0x25d)](_0x13a291(0x25f))['to'](this,_0x13a291(0x224),_0x117266=>_0x117266),this[_0x13a291(0x20d)][_0x13a291(0x1d7)][_0x13a291(0x25d)](_0x13a291(0x207))['to'](this,_0x13a291(0x224),_0xc0d396=>_0xc0d396),this[_0x13a291(0x20d)][_0x13a291(0x242)][_0x13a291(0x221)](this[_0x13a291(0x1df)]()),this[_0x13a291(0x25d)](_0x13a291(0x1e2))['to'](this[_0x13a291(0x20d)][_0x13a291(0x242)],_0x13a291(0x1e2));}[_0xbd8d3e(0x238)](){const _0x33216a=_0xbd8d3e;super[_0x33216a(0x238)](),this[_0x33216a(0x214)]&&clearInterval(this[_0x33216a(0x214)]);}[_0xbd8d3e(0x1d4)](_0x29c27e){const _0x584dd9=_0xbd8d3e,_0x25ed2e=this[_0x584dd9(0x1ce)][_0x584dd9(0x266)][_0x584dd9(0x256)](_0x584dd9(0x219))??_0x547834(this[_0x584dd9(0x1ce)][_0x584dd9(0x249)],_0x584dd9(0x26d));this[_0x584dd9(0x20d)][_0x584dd9(0x1d7)][_0x584dd9(0x206)](),this[_0x584dd9(0x20d)][_0x584dd9(0x242)][_0x584dd9(0x264)](),this[_0x584dd9(0x20d)][_0x584dd9(0x242)][_0x584dd9(0x1e8)](_0x29c27e[_0x584dd9(0x22d)],!this[_0x584dd9(0x1ce)][_0x584dd9(0x266)][_0x584dd9(0x256)](_0x584dd9(0x1eb))),this[_0x584dd9(0x202)]({'id':_0x584dd9(0x260),'staticMessage':_0x25ed2e}),this[_0x584dd9(0x1ea)](_0x584dd9(0x20a));}[_0xbd8d3e(0x202)]({id:_0x4f189a,staticMessage:_0x6ebea2}){const _0x1528b0=_0xbd8d3e;this[_0x1528b0(0x20d)][_0x1528b0(0x1d7)][_0x1528b0(0x21a)](_0x1528b0(0x20b),{'id':_0x4f189a,'initialContent':_0x1528b0(0x1dc)+_0x6ebea2+_0x1528b0(0x26a)});}[_0xbd8d3e(0x203)](_0x1cebd7){const _0x346a56=_0xbd8d3e,_0x447de3=_0x1cebd7[_0x346a56(0x1f8)]?.[_0x346a56(0x1ed)]||_0x1cebd7[_0x346a56(0x277)];this[_0x346a56(0x20d)][_0x346a56(0x1d7)][_0x346a56(0x21a)](_0x346a56(0x243),{'contextItems':Array[_0x346a56(0x205)](_0x1cebd7[_0x346a56(0x226)][_0x346a56(0x21d)]()),'initialContent':_0x346a56(0x1dc)+_0x447de3+_0x346a56(0x26a),'id':_0x1cebd7['id']});}[_0xbd8d3e(0x237)]({errorMessage:_0x301548,id:_0x5dca61}){const _0x4767a8=_0xbd8d3e;this[_0x4767a8(0x20d)][_0x4767a8(0x1d7)][_0x4767a8(0x21a)](_0x4767a8(0x1de),{'initialContent':_0x4767a8(0x1dc)+_0x301548+_0x4767a8(0x26a),'id':_0x5dca61});}[_0xbd8d3e(0x1d2)](_0x472c65){const _0x50fdbc=_0xbd8d3e;return this[_0x50fdbc(0x23c)][_0x50fdbc(0x1cf)](async()=>{const _0x3a8997=_0x50fdbc;this[_0x3a8997(0x20d)][_0x3a8997(0x1d7)][_0x3a8997(0x21a)](_0x3a8997(0x20b),{'id':_0x472c65[_0x3a8997(0x1ec)]+':'+_0x472c65['id']}),this[_0x3a8997(0x200)]();});}async[_0xbd8d3e(0x25b)](_0x4caa1c){const _0x19cf28=_0xbd8d3e,_0x328be0=_0xf5a882(this[_0x19cf28(0x1ce)]);let _0x13d398=_0x328be0[_0x19cf28(0x266)][_0x19cf28(0x256)](_0x19cf28(0x273))||[..._0x1e23ae];if(_0x328be0[_0x19cf28(0x1e7)][_0x19cf28(0x239)](_0x19cf28(0x27a))){if(!this[_0x19cf28(0x1d1)]){this[_0x19cf28(0x1d1)]=!0x0;const _0x170527=_0x328be0[_0x19cf28(0x1f3)][_0x19cf28(0x256)](_0x19cf28(0x253));this[_0x19cf28(0x20d)][_0x19cf28(0x1d7)][_0x19cf28(0x25d)](_0x19cf28(0x225))['to'](_0x170527,_0x19cf28(0x257));}}else _0x13d398=_0x13d398[_0x19cf28(0x21e)](_0x2b82c8=>_0x19cf28(0x210)!=_0x2b82c8);return this[_0x19cf28(0x23c)][_0x19cf28(0x1cf)](async()=>{const _0x2a1c8a=_0x19cf28;this[_0x2a1c8a(0x20d)][_0x2a1c8a(0x1d7)][_0x2a1c8a(0x21a)](_0x2a1c8a(0x1f6),{'id':_0x4caa1c[_0x2a1c8a(0x1ec)]+':'+_0x4caa1c['id'],'areActionsDisabled':_0x4caa1c[_0x2a1c8a(0x26c)],'showDiff':this[_0x2a1c8a(0x1ee)],'availableActions':_0x13d398}),this[_0x2a1c8a(0x200)]();});}[_0xbd8d3e(0x23e)](_0x558f16,_0x1c67af){const _0x11a7f7=_0xbd8d3e,_0x390216=this[_0x11a7f7(0x20d)][_0x11a7f7(0x1d7)][_0x11a7f7(0x269)][_0x11a7f7(0x217)];if(_0x390216 instanceof _0x4604f8)return this[_0x11a7f7(0x20d)][_0x11a7f7(0x1d7)][_0x11a7f7(0x269)][_0x11a7f7(0x230)](_0x390216),void this[_0x11a7f7(0x20d)][_0x11a7f7(0x1d7)][_0x11a7f7(0x21a)](_0x11a7f7(0x276),{'id':_0x558f16['id'],'capabilities':{'isWebSearchEnabled':_0x390216[_0x11a7f7(0x21b)][_0x11a7f7(0x241)]||_0x1c67af[_0x11a7f7(0x241)],'isReasoningEnabled':_0x390216[_0x11a7f7(0x21b)][_0x11a7f7(0x254)]||_0x1c67af[_0x11a7f7(0x254)]}});this[_0x11a7f7(0x20d)][_0x11a7f7(0x1d7)][_0x11a7f7(0x21a)](_0x11a7f7(0x276),{'id':_0x558f16['id'],'capabilities':_0x1c67af});}async[_0xbd8d3e(0x27d)](_0xf28474,_0x345dec){const _0x482d0c=_0xbd8d3e;let _0x443bad;return await this[_0x482d0c(0x23c)][_0x482d0c(0x1cf)](async()=>{const _0x4510fe=_0x482d0c;_0x443bad=this[_0x4510fe(0x20d)][_0x4510fe(0x1d7)][_0x4510fe(0x21a)](_0x4510fe(0x25c),{'content':_0xf28474,'id':_0x345dec});}),_0x443bad;}[_0xbd8d3e(0x21c)](_0x4f8946){const _0x4a1248=_0xbd8d3e;this[_0x4a1248(0x20d)][_0x4a1248(0x1d7)][_0x4a1248(0x1e9)](_0x4f8946);}[_0xbd8d3e(0x1e3)](_0x492b11){const _0x4ce061=_0xbd8d3e;return this[_0x4ce061(0x20d)][_0x4ce061(0x1d7)][_0x4ce061(0x244)](_0x492b11);}[_0xbd8d3e(0x1ef)](_0x32b506){const _0xe648ea=_0xbd8d3e,_0x297c83=this[_0xe648ea(0x20d)][_0xe648ea(0x1d7)][_0xe648ea(0x269)][_0xe648ea(0x22c)](_0x43d4b0=>_0x43d4b0[_0xe648ea(0x1d8)]['id']==_0x32b506['id']&&_0x43d4b0 instanceof _0x4604f8);_0x297c83&&_0x297c83[_0xe648ea(0x278)](_0xe648ea(0x27c),_0x32b506[_0xe648ea(0x27c)]);}async[_0xbd8d3e(0x22b)](_0x54a62c){const _0x4c2cd2=_0xbd8d3e,_0x1e6cda=_0x54a62c[_0x4c2cd2(0x208)]||this[_0x4c2cd2(0x1fb)];return this[_0x4c2cd2(0x23c)][_0x4c2cd2(0x1cf)](async _0x4af6a0=>{const _0x527ee8=_0x4c2cd2;await this[_0x527ee8(0x20d)][_0x527ee8(0x1d7)][_0x527ee8(0x272)]({..._0x54a62c,'abortSignal':_0x4af6a0,'renderingStrategy':_0x1e6cda}),_0x54a62c[_0x527ee8(0x222)]&&this[_0x527ee8(0x227)](_0x54a62c['id']);});}[_0xbd8d3e(0x261)](_0x2103f1,_0x3ccf1c){const _0x1b45f2=_0xbd8d3e;this[_0x1b45f2(0x20d)][_0x1b45f2(0x1d7)][_0x1b45f2(0x1f5)](_0x2103f1,_0x3ccf1c);}async[_0xbd8d3e(0x1d3)](_0x1d2559){const _0x3acbe7=_0xbd8d3e,_0x1c405b=_0x1d2559[_0x3acbe7(0x208)]||this[_0x3acbe7(0x1fb)];return this[_0x3acbe7(0x23c)][_0x3acbe7(0x1cf)](async _0x3ede38=>{const _0x323942=_0x3acbe7;await this[_0x323942(0x20d)][_0x323942(0x1d7)][_0x323942(0x1ff)]({..._0x1d2559,'abortSignal':_0x3ede38,'renderingStrategy':_0x1c405b}),_0x1d2559[_0x323942(0x222)]&&this[_0x323942(0x227)](_0x1d2559['id']);});}[_0xbd8d3e(0x25e)](_0x361e12){const _0xb5f1c=_0xbd8d3e;this[_0xb5f1c(0x20d)][_0xb5f1c(0x1d7)][_0xb5f1c(0x1fa)](_0x361e12);}[_0xbd8d3e(0x270)](_0x391730){const _0x1509d2=_0xbd8d3e;this[_0x1509d2(0x20d)][_0x1509d2(0x1d7)][_0x1509d2(0x24b)](_0x391730);}[_0xbd8d3e(0x227)](_0x20a6f4){const _0x55972c=_0xbd8d3e;this[_0x55972c(0x20d)][_0x55972c(0x1d7)][_0x55972c(0x213)](_0x20a6f4);}[_0xbd8d3e(0x265)](_0x3d2558){const _0x45d68d=_0xbd8d3e;this[_0x45d68d(0x20d)][_0x45d68d(0x1d7)][_0x45d68d(0x209)]()[_0x45d68d(0x21e)](_0x2c0555=>_0x2c0555[_0x45d68d(0x22f)](_0x3d2558))[_0x45d68d(0x240)](_0x19745b=>this[_0x45d68d(0x20d)][_0x45d68d(0x1d7)][_0x45d68d(0x1e9)](_0x19745b));}[_0xbd8d3e(0x215)](){const _0x10d926=_0xbd8d3e,_0x2a27cb=this[_0x10d926(0x21f)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x10d926(0x271)](_0x2a27cb),this[_0x10d926(0x20d)][_0x10d926(0x242)][_0x10d926(0x22a)](!this[_0x10d926(0x1ce)][_0x10d926(0x266)][_0x10d926(0x256)](_0x10d926(0x1eb))),this[_0x10d926(0x224)]=!0x0,this[_0x10d926(0x20d)][_0x10d926(0x1d7)][_0x10d926(0x246)]();}[_0xbd8d3e(0x1e6)](_0x4b2c0f){const _0x112db4=_0xbd8d3e;this[_0x112db4(0x23c)][_0x112db4(0x27f)](),this[_0x112db4(0x20d)][_0x112db4(0x1d7)][_0x112db4(0x209)]()[_0x112db4(0x21e)](_0x101a54=>_0x101a54[_0x112db4(0x22f)](_0x4b2c0f['id']))[_0x112db4(0x240)](_0x2235aa=>this[_0x112db4(0x227)](_0x2235aa)),this[_0x112db4(0x224)]=!0x1,this[_0x112db4(0x20d)][_0x112db4(0x1d7)][_0x112db4(0x250)]();}async[_0xbd8d3e(0x204)](){const _0x5972b1=_0xbd8d3e;return this[_0x5972b1(0x23c)][_0x5972b1(0x24d)][_0x5972b1(0x259)](()=>{const _0x4750af=_0x5972b1;this[_0x4750af(0x224)]=!0x1,this[_0x4750af(0x20d)][_0x4750af(0x1d7)][_0x4750af(0x250)]();});}[_0xbd8d3e(0x1e5)](_0x37f0ab,_0x25303e){const _0x8c074c=_0xbd8d3e;this[_0x8c074c(0x20d)][_0x8c074c(0x242)][_0x8c074c(0x1e5)](_0x37f0ab,_0x25303e);}[_0xbd8d3e(0x274)](_0x3aac9b){const _0x2059c3=_0xbd8d3e;this[_0x2059c3(0x20d)][_0x2059c3(0x242)][_0x2059c3(0x274)](_0x3aac9b);}[_0xbd8d3e(0x263)](_0x72a437,_0x48f841){const _0x151a34=_0xbd8d3e;this[_0x151a34(0x20d)][_0x151a34(0x242)][_0x151a34(0x263)](_0x72a437,_0x48f841);}[_0xbd8d3e(0x267)](_0x183b6c){const _0x845f81=_0xbd8d3e;this[_0x845f81(0x20d)][_0x845f81(0x242)][_0x845f81(0x267)](_0x183b6c);}[_0xbd8d3e(0x232)](_0x5ee673){const _0x2a58df=_0xbd8d3e;this[_0x2a58df(0x20d)][_0x2a58df(0x242)][_0x2a58df(0x232)](_0x5ee673);}[_0xbd8d3e(0x1e1)](){const _0x3d4ac5=_0xbd8d3e;this[_0x3d4ac5(0x20d)][_0x3d4ac5(0x242)][_0x3d4ac5(0x1e1)]();}[_0xbd8d3e(0x201)](){const _0x16aca5=_0xbd8d3e;this[_0x16aca5(0x20d)][_0x16aca5(0x242)][_0x16aca5(0x201)]();}[_0xbd8d3e(0x27b)](_0x3b9c51,_0x102ba3,_0x11b352){const _0x56de47=_0xbd8d3e;this[_0x56de47(0x20d)][_0x56de47(0x242)][_0x56de47(0x27b)](_0x3b9c51,_0x102ba3,_0x11b352);}[_0xbd8d3e(0x1fc)](){const _0x438f53=_0xbd8d3e;this[_0x438f53(0x20d)][_0x438f53(0x242)][_0x438f53(0x1fc)](),this[_0x438f53(0x20d)][_0x438f53(0x242)][_0x438f53(0x221)](this[_0x438f53(0x1df)]());}[_0xbd8d3e(0x26e)](_0xedef64){const _0x65ecf4=_0xbd8d3e;this[_0x65ecf4(0x20d)][_0x65ecf4(0x242)][_0x65ecf4(0x26e)](_0xedef64);}[_0xbd8d3e(0x24c)](_0x4bd29a){const _0x5c7d83=_0xbd8d3e;this[_0x5c7d83(0x20d)][_0x5c7d83(0x242)][_0x5c7d83(0x231)](_0x4bd29a[_0x5c7d83(0x241)]),this[_0x5c7d83(0x20d)][_0x5c7d83(0x242)][_0x5c7d83(0x252)](_0x4bd29a[_0x5c7d83(0x254)]),this[_0x5c7d83(0x20d)][_0x5c7d83(0x242)][_0x5c7d83(0x221)](this[_0x5c7d83(0x1df)](_0x4bd29a));}[_0xbd8d3e(0x212)](_0x42cebc,_0x241641){const _0x25bbd4=_0xbd8d3e;this[_0x25bbd4(0x20d)][_0x25bbd4(0x242)][_0x25bbd4(0x24e)](_0x42cebc),_0x241641&&this[_0x25bbd4(0x20d)][_0x25bbd4(0x242)][_0x25bbd4(0x22a)](!0x1);}[_0xbd8d3e(0x218)](_0x2e08a8){const _0x3042f9=_0xbd8d3e;this[_0x3042f9(0x1fb)]=_0x2e08a8;}[_0xbd8d3e(0x1da)](_0x9fef0e){const _0xaff6c8=_0xbd8d3e;this[_0xaff6c8(0x20d)][_0xaff6c8(0x1d7)][_0xaff6c8(0x1da)](_0x9fef0e);}[_0xbd8d3e(0x1f9)](){const _0xeb833f=_0xbd8d3e;this[_0xeb833f(0x26b)](_0x547834(this[_0xeb833f(0x1ce)][_0xeb833f(0x249)],_0xeb833f(0x262)));}[_0xbd8d3e(0x26b)](_0x2b9ae8,_0x134a63=!0x1){const _0x517cfc=_0xbd8d3e;if(_0x134a63&&!_0x6d0c39()&&_0x2b9ae8[_0x517cfc(0x236)])return this[_0x517cfc(0x20d)][_0x517cfc(0x20f)][_0x517cfc(0x1d6)]='',void this[_0x517cfc(0x1fe)](_0x2b9ae8);this[_0x517cfc(0x20d)][_0x517cfc(0x20f)][_0x517cfc(0x1d6)]=_0x2b9ae8;}[_0xbd8d3e(0x271)](_0x56edf7){const _0x2a53b3=_0xbd8d3e;this[_0x2a53b3(0x20d)][_0x2a53b3(0x1d7)][_0x2a53b3(0x271)](_0x56edf7);}[_0xbd8d3e(0x200)](){const _0x220d98=_0xbd8d3e;this[_0x220d98(0x20d)][_0x220d98(0x1d7)][_0x220d98(0x271)]('');}[_0xbd8d3e(0x1fe)](_0x506e4b){const _0x23a9d8=_0xbd8d3e;let _0x28221d=0x0;clearInterval(this[_0x23a9d8(0x214)]),this[_0x23a9d8(0x214)]=setInterval(()=>{const _0xe9c78d=_0x23a9d8;this[_0xe9c78d(0x20d)][_0xe9c78d(0x20f)][_0xe9c78d(0x1d6)]=this[_0xe9c78d(0x20d)][_0xe9c78d(0x20f)][_0xe9c78d(0x1d6)]+_0x506e4b[_0x28221d],_0x28221d++,_0x28221d===_0x506e4b[_0xe9c78d(0x236)]&&clearInterval(this[_0xe9c78d(0x214)]);},0x1e);}[_0xbd8d3e(0x255)](_0x1ba8a0){const _0x300d45=_0xbd8d3e;this[_0x300d45(0x20d)][_0x300d45(0x20f)][_0x300d45(0x220)]=_0x1ba8a0;}[_0xbd8d3e(0x21f)](_0x15562d){const _0x288150=_0xbd8d3e;return _0x15562d[_0x288150(0x241)]&&_0x15562d[_0x288150(0x254)]?_0x547834(this[_0x288150(0x1ce)][_0x288150(0x249)],_0x288150(0x20e)):_0x15562d[_0x288150(0x241)]?_0x547834(this[_0x288150(0x1ce)][_0x288150(0x249)],_0x288150(0x233)):_0x15562d[_0x288150(0x254)]?_0x547834(this[_0x288150(0x1ce)][_0x288150(0x249)],_0x288150(0x23d)):_0x547834(this[_0x288150(0x1ce)][_0x288150(0x249)],_0x288150(0x1f7));}[_0xbd8d3e(0x1df)](_0x5a1577){const _0x30c14d=_0xbd8d3e;return _0x5a1577?_0x5a1577[_0x30c14d(0x241)]&&_0x5a1577[_0x30c14d(0x254)]?_0x547834(this[_0x30c14d(0x1ce)][_0x30c14d(0x249)],_0x30c14d(0x24f)):_0x5a1577[_0x30c14d(0x241)]?_0x547834(this[_0x30c14d(0x1ce)][_0x30c14d(0x249)],_0x30c14d(0x235)):_0x5a1577[_0x30c14d(0x254)]?_0x547834(this[_0x30c14d(0x1ce)][_0x30c14d(0x249)],_0x30c14d(0x1f1)):_0x547834(this[_0x30c14d(0x1ce)][_0x30c14d(0x249)],_0x30c14d(0x275)):_0x547834(this[_0x30c14d(0x1ce)][_0x30c14d(0x249)],_0x30c14d(0x275));}[_0xbd8d3e(0x248)](_0x57820c,_0x25d660,_0x4e789a,_0x1e49b8){const _0x47492b=_0xbd8d3e;this[_0x47492b(0x20d)][_0x47492b(0x248)](_0x57820c,_0x25d660,_0x4e789a,_0x1e49b8);}[_0xbd8d3e(0x229)](_0x56c313){const _0x57cf0c=_0xbd8d3e;this[_0x57cf0c(0x20d)][_0x57cf0c(0x229)](_0x56c313);}[_0xbd8d3e(0x258)](_0x93392f){const _0x54a69b=_0xbd8d3e;this[_0x54a69b(0x20d)][_0x54a69b(0x242)][_0x54a69b(0x258)](_0x93392f);}[_0xbd8d3e(0x1d9)](_0x26e926=!0x1){const _0x28781e=_0xbd8d3e;this[_0x28781e(0x20d)][_0x28781e(0x242)][_0x28781e(0x1d9)](_0x26e926);}[_0xbd8d3e(0x23a)](_0xd22c15,_0x16fdb2){const _0x48a35a=_0xbd8d3e;this[_0x48a35a(0x20d)][_0x48a35a(0x1d7)][_0x48a35a(0x24a)](_0xd22c15,_0x16fdb2);}[_0xbd8d3e(0x246)](){const _0x45bf66=_0xbd8d3e;this[_0x45bf66(0x20d)][_0x45bf66(0x1d7)][_0x45bf66(0x246)]();}[_0xbd8d3e(0x25a)](){const _0x47bfff=_0xbd8d3e;this[_0x47bfff(0x20d)][_0x47bfff(0x242)][_0x47bfff(0x27e)]=!0x0;}[_0xbd8d3e(0x216)](){const _0x18b87c=_0xbd8d3e;this[_0x18b87c(0x20d)][_0x18b87c(0x242)][_0x18b87c(0x27e)]=!0x1;}}function _0x2e78(_0x504fdc,_0x385352){const _0x4bcc8b=_0x4bcc();return _0x2e78=function(_0x2e78c8,_0x5f064e){_0x2e78c8=_0x2e78c8-0x1ce;let _0x3d3401=_0x4bcc8b[_0x2e78c8];return _0x3d3401;},_0x2e78(_0x504fdc,_0x385352);}function _0x4bcc(){const _0x3e6c22=['then','disableControls','addFeedItemAISuggestion','custom-element','bind','updateFeedItemAIReplySuggestionPartState','isLoading','conversation-start','updateFeedItemAIReplySources','AI_CHAT_HEADING','setContextItemLoading','enableModelSelector','removeFeedInteraction','config','setIsUploadInProgress','352304jTLDPN','children','</p>','setConversationTitle','areActionsDisabled','AI_CHAT_WELCOME_MESSAGE','setAddContextOptions','streaming','setFeedItemAIReplySuggestionPartActive','setLoadingMessage','updateReplyItem','ai.availableReplyActions','removeContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','interaction-header','userMessage','set','ai.chat.context.searchInputVisibleFrom','TrackChanges','updateResourceState','isVisible','addFeedItemCustomElement','isDisabled','abort','context','enqueue','246589GIPbUH','_isTrackChangesCommandValueBound','addFeedItemAIReply','updateFeedItemAIReplySuggestionContent','createConversation','addTab','label','chatFeed','options','focusPromptInput','toggleLoadingSkeleton','AIChatUI','<p>','toggleSuggestionDisplayMode','error-message','_getInputPlaceholder','1606768LoCJmc','clearPendingContextUI','isModelAvailable','hasFeedItem','showResizeButton','addContextItem','stopInteraction','plugins','setModelList','removeItem','fire','ai.models.showModelSelector','interactionId','displayedPrompt','showDiff','updateFeedInteractionHeader','pluginName','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_interactionPromiseResolver','commands','192333bmekvV','updateWebSources','ai-suggestion-reply','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','attributes','resetConversationTitle','updateSuggestionPartState','feedItemRenderingStrategy','resetMessageInput','1794008qMZfAI','_animateConversationTitle','updateSuggestionItem','clearLoadingMessage','clearConversationContextUI','addFeedItemStaticMessage','addFeedItemUserMessage','finishInteraction','from','clear','isPending','renderingStrategy','getItemIds','conversationCreated','ai-reply','delegate','_view','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','chatHeader','insertSuggestion','requires','setSelectedModel','markItemAsDone','_titleAnimationInterval','startInteraction','enableControls','last','setFeedItemRenderingStrategy','ai.chat.welcomeMessage','addItem','capabilities','removeFeedItem','values','filter','prepareLoadingMessage','isMaximized','setInputPlaceholder','isDone','isOfficialPlugin','isBusy','isTrackChangesOn','contextItems','markFeedItemAsDone','view','closeSourceResourceBalloon','disableModelSelector','updateFeedItemAIReplyContent','find','availableModels','114kLckBK','startsWith','remove','setWebSearch','setConversationContext','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','9573066Amhuje','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','length','addFeedItemError','destroy','has','scrollFeedToSuggestion','5dpepXW','_promiseQueue','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','addFeedInteractionHeader','chat','forEach','isWebSearchEnabled','chatControls','user-message','hasItem','isPremiumPlugin','startAutoScroll','1526376tJVKCC','populateSourceResourceBalloon','locale','scrollToSuggestion','setSuggestionPartActive','updateCapabilities','queueEmptyPromise','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','stopAutoScroll','AITabs','setReasoning','trackChanges','isReasoningEnabled','setIsMaximized','get','value','setPromptInputValue'];_0x4bcc=function(){return _0x3e6c22;};return _0x4bcc();}