@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27acf0=_0x25d0;(function(_0x12c426,_0x4221a6){const _0x21cf10=_0x25d0,_0x30793c=_0x12c426();while(!![]){try{const _0x982e27=parseInt(_0x21cf10(0x127))/0x1+-parseInt(_0x21cf10(0x135))/0x2+parseInt(_0x21cf10(0x128))/0x3*(parseInt(_0x21cf10(0x146))/0x4)+-parseInt(_0x21cf10(0x12f))/0x5*(parseInt(_0x21cf10(0x125))/0x6)+parseInt(_0x21cf10(0x119))/0x7+parseInt(_0x21cf10(0x10c))/0x8+-parseInt(_0x21cf10(0x145))/0x9*(parseInt(_0x21cf10(0x116))/0xa);if(_0x982e27===_0x4221a6)break;else _0x30793c['push'](_0x30793c['shift']());}catch(_0x30d2b2){_0x30793c['push'](_0x30793c['shift']());}}}(_0x20d9,0x4eb86));import{Plugin as _0x5edb04}from'ckeditor5/src/core.js';import{AIBalloon as _0x1e776b}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x5dff16}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1202a1}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3768ff}from'../aicore/utils/eventnames.js';function _0x25d0(_0x1a96d8,_0x3bac39){const _0x20d93c=_0x20d9();return _0x25d0=function(_0x25d0ca,_0x3eeab6){_0x25d0ca=_0x25d0ca-0x108;let _0x47ecbd=_0x20d93c[_0x25d0ca];return _0x47ecbd;},_0x25d0(_0x1a96d8,_0x3bac39);}import{Dialog as _0x2d7c3c}from'ckeditor5/src/ui.js';function _0x20d9(){const _0x174ea1=['318140pfeLvi','_toggleRotatorButtonsInDialogHeader','view','3409525iFSQta','requires','updateContent','close','set','areActionsDisabled','focus','children','addMany','showPrevious','previousButtonView','Dialog','30516JmGjme','applySuggestion','225653jNKoxX','39IUnpzj','get','beforeDialogClosed','toggleRotatorButtonsVisibility','_restoreDefaultViewFocus','togglePartToolbarEnabled','nextButtonView','110KhJqAd','trackChanges','editor','config','locale','isOfficialPlugin','590804GJPlhC','delegate','plugins','aiChatBalloon','isTrackChangesOn','open','TrackChanges','AIChatBalloon','insertSuggestion','_createChatBalloonView','setState','ck-ai-chat-balloon','rejectSuggestion','AIBalloon','dialogClosed','showNext','108FrxrNT','118472AjtHHF','has','showRotator','once','ai.availableReplyActions','value','filter','109904ePLoSf','_chatBalloonView','pluginName','showDiff','remove','commands','headerView','bind','isPremiumPlugin','render'];_0x20d9=function(){return _0x174ea1;};return _0x20d9();}export class AIChatBalloon extends _0x5edb04{static get[_0x27acf0(0x11a)](){return[_0x2d7c3c,_0x1e776b];}static get[_0x27acf0(0x10e)](){const _0x2409b2=_0x27acf0;return _0x2409b2(0x13c);}static get[_0x27acf0(0x134)](){return!0x0;}static get[_0x27acf0(0x114)](){return!0x0;}[_0x27acf0(0x10d)];constructor(_0x18c843){const _0x22e6b7=_0x27acf0;super(_0x18c843),this[_0x22e6b7(0x11d)](_0x22e6b7(0x10f),!0x1);}[_0x27acf0(0x13a)](_0x1d0da6){const _0x251ceb=_0x27acf0,_0x4b24ce=this[_0x251ceb(0x131)];this[_0x251ceb(0x10d)]||(this[_0x251ceb(0x10d)]=this[_0x251ceb(0x13e)]()),_0x4b24ce[_0x251ceb(0x137)][_0x251ceb(0x129)](_0x251ceb(0x142))[_0x251ceb(0x13a)]({..._0x1d0da6,'id':_0x251ceb(0x138),'class':_0x251ceb(0x140),'mainView':this[_0x251ceb(0x10d)]}),this[_0x251ceb(0x117)](_0x1d0da6[_0x251ceb(0x148)]),this[_0x251ceb(0x10d)][_0x251ceb(0x12d)](!_0x1d0da6[_0x251ceb(0x11e)]),this[_0x251ceb(0x12c)]();}[_0x27acf0(0x11c)](){const _0xa0b40e=_0x27acf0;this[_0xa0b40e(0x131)][_0xa0b40e(0x137)][_0xa0b40e(0x129)](_0xa0b40e(0x142))[_0xa0b40e(0x11c)]();}[_0x27acf0(0x11b)](_0x1e4839){const _0x15db4d=_0x27acf0;return this[_0x15db4d(0x10d)]||(this[_0x15db4d(0x10d)]=this[_0x15db4d(0x13e)]()),this[_0x15db4d(0x10d)][_0x15db4d(0x11b)](_0x1e4839);}[_0x27acf0(0x13f)](_0x42c262){const _0x4ee80b=_0x27acf0;this[_0x4ee80b(0x10d)]&&this[_0x4ee80b(0x10d)][_0x4ee80b(0x13f)](_0x42c262);}[_0x27acf0(0x13e)](){const _0x42f00e=_0x27acf0,_0x49bfbc=this[_0x42f00e(0x131)],_0x59a066=_0x49bfbc[_0x42f00e(0x137)][_0x42f00e(0x129)](_0x42f00e(0x142)),_0x439005=_0x49bfbc[_0x42f00e(0x111)][_0x42f00e(0x129)](_0x42f00e(0x130));let _0x31a80b=_0x49bfbc[_0x42f00e(0x132)][_0x42f00e(0x129)](_0x42f00e(0x109))||[..._0x5dff16];_0x49bfbc[_0x42f00e(0x137)][_0x42f00e(0x147)](_0x42f00e(0x13b))||(_0x31a80b=_0x31a80b[_0x42f00e(0x10b)](_0x1ea067=>_0x42f00e(0x13d)!=_0x1ea067));const _0x5cfb80=new _0x1202a1(_0x49bfbc[_0x42f00e(0x133)],{'availableActions':_0x31a80b,'showApplyButton':!0x0,'showSuggestButton':!!_0x439005});return _0x5cfb80[_0x42f00e(0x113)](_0x42f00e(0x10f))['to'](this),_0x5cfb80[_0x42f00e(0x136)](..._0x3768ff)['to'](this),_0x5cfb80[_0x42f00e(0x136)](_0x42f00e(0x122),_0x42f00e(0x144))['to'](this),_0x59a066[_0x42f00e(0x136)](_0x42f00e(0x143))['to'](this),_0x5cfb80['on'](_0x42f00e(0x126),this[_0x42f00e(0x12c)][_0x42f00e(0x113)](this)),_0x5cfb80['on'](_0x42f00e(0x13d),this[_0x42f00e(0x12c)][_0x42f00e(0x113)](this)),_0x5cfb80['on'](_0x42f00e(0x141),this[_0x42f00e(0x12c)][_0x42f00e(0x113)](this)),_0x439005&&_0x5cfb80[_0x42f00e(0x113)](_0x42f00e(0x139))['to'](_0x439005,_0x42f00e(0x10a)),_0x5cfb80[_0x42f00e(0x115)](),_0x5cfb80;}[_0x27acf0(0x117)](_0x33632d){const _0x5e7cb1=_0x27acf0,_0x490527=this[_0x5e7cb1(0x131)],_0x312092=_0x490527[_0x5e7cb1(0x137)][_0x5e7cb1(0x129)](_0x5e7cb1(0x124))[_0x5e7cb1(0x118)][_0x5e7cb1(0x112)][_0x5e7cb1(0x120)];this[_0x5e7cb1(0x10d)][_0x5e7cb1(0x12b)](_0x33632d),_0x312092[_0x5e7cb1(0x147)](this[_0x5e7cb1(0x10d)][_0x5e7cb1(0x123)])||(_0x312092[_0x5e7cb1(0x121)]([this[_0x5e7cb1(0x10d)][_0x5e7cb1(0x123)],this[_0x5e7cb1(0x10d)][_0x5e7cb1(0x12e)]],0x0),_0x490527[_0x5e7cb1(0x137)][_0x5e7cb1(0x129)](_0x5e7cb1(0x142))[_0x5e7cb1(0x108)](_0x5e7cb1(0x12a),()=>{const _0x2785e2=_0x5e7cb1;_0x312092[_0x2785e2(0x110)](this[_0x2785e2(0x10d)][_0x2785e2(0x123)]),_0x312092[_0x2785e2(0x110)](this[_0x2785e2(0x10d)][_0x2785e2(0x12e)]);}));}[_0x27acf0(0x12c)](){const _0x34f83a=_0x27acf0;this[_0x34f83a(0x10d)][_0x34f83a(0x11f)]();}}
23
+ const _0x1e96a0=_0x5562;(function(_0x3e318f,_0x5aed1b){const _0x4c819f=_0x5562,_0x9bc900=_0x3e318f();while(!![]){try{const _0x59e925=-parseInt(_0x4c819f(0x1c3))/0x1*(-parseInt(_0x4c819f(0x1f6))/0x2)+parseInt(_0x4c819f(0x1fa))/0x3+-parseInt(_0x4c819f(0x1f3))/0x4+parseInt(_0x4c819f(0x1c9))/0x5*(-parseInt(_0x4c819f(0x1de))/0x6)+-parseInt(_0x4c819f(0x1e5))/0x7*(parseInt(_0x4c819f(0x1e3))/0x8)+-parseInt(_0x4c819f(0x1c4))/0x9+-parseInt(_0x4c819f(0x1be))/0xa*(-parseInt(_0x4c819f(0x1c7))/0xb);if(_0x59e925===_0x5aed1b)break;else _0x9bc900['push'](_0x9bc900['shift']());}catch(_0xddb7fe){_0x9bc900['push'](_0x9bc900['shift']());}}}(_0x5d53,0xb0f53));import{Plugin as _0x52aa70}from'ckeditor5/src/core.js';import{AIBalloon as _0x279035}from'../aiballoon/aiballoon.js';function _0x5d53(){const _0xd1de71=['isOfficialPlugin','_toggleRotatorButtonsInDialogHeader','52836aRbhQO','filter','_createChatBalloonView','336934EHBsIF','remove','beforeDialogClosed','once','1359738FlWdXY','showDiff','showPrevious','showRotator','TrackChanges','view','30ByJKdG','config','previousButtonView','open','AIBalloon','7QQDyCR','12898197ebngYP','rejectSuggestion','insertSuggestion','11416196ustMoM','headerView','6583340IPZTHm','ck-ai-chat-balloon','ai.availableReplyActions','commands','updateContent','isPremiumPlugin','close','dialogClosed','AIChatBalloon','aiChatBalloon','addMany','value','set','togglePartToolbarEnabled','children','nextButtonView','editor','toggleRotatorButtonsVisibility','areActionsDisabled','_chatBalloonView','applySuggestion','6ycHWxT','render','get','bind','requires','24ExAhvS','trackChanges','2935786yuGnat','delegate','has','locale','pluginName','showNext','Dialog','_restoreDefaultViewFocus','focus','plugins','isTrackChangesOn','setState'];_0x5d53=function(){return _0xd1de71;};return _0x5d53();}import{AI_REPLY_ACTIONS as _0x2adfa0}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x21d441}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x87311d}from'../aicore/utils/eventnames.js';function _0x5562(_0x2afa51,_0x366291){const _0x5d535d=_0x5d53();return _0x5562=function(_0x55620c,_0x227097){_0x55620c=_0x55620c-0x1bc;let _0x396cab=_0x5d535d[_0x55620c];return _0x396cab;},_0x5562(_0x2afa51,_0x366291);}import{Dialog as _0x20fec4}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x52aa70{static get[_0x1e96a0(0x1e2)](){return[_0x20fec4,_0x279035];}static get[_0x1e96a0(0x1e9)](){const _0x2c1d2b=_0x1e96a0;return _0x2c1d2b(0x1d1);}static get[_0x1e96a0(0x1f1)](){return!0x0;}static get[_0x1e96a0(0x1ce)](){return!0x0;}[_0x1e96a0(0x1dc)];constructor(_0x416e16){const _0x5c8e9f=_0x1e96a0;super(_0x416e16),this[_0x5c8e9f(0x1d5)](_0x5c8e9f(0x1fb),!0x1);}[_0x1e96a0(0x1c1)](_0x41a889){const _0x99f4a=_0x1e96a0,_0x3a4f9d=this[_0x99f4a(0x1d9)];this[_0x99f4a(0x1dc)]||(this[_0x99f4a(0x1dc)]=this[_0x99f4a(0x1f5)]()),_0x3a4f9d[_0x99f4a(0x1ee)][_0x99f4a(0x1e0)](_0x99f4a(0x1c2))[_0x99f4a(0x1c1)]({..._0x41a889,'id':_0x99f4a(0x1d2),'class':_0x99f4a(0x1ca),'mainView':this[_0x99f4a(0x1dc)]}),this[_0x99f4a(0x1f2)](_0x41a889[_0x99f4a(0x1fd)]),this[_0x99f4a(0x1dc)][_0x99f4a(0x1d6)](!_0x41a889[_0x99f4a(0x1db)]),this[_0x99f4a(0x1ec)]();}[_0x1e96a0(0x1cf)](){const _0x3ac88c=_0x1e96a0;this[_0x3ac88c(0x1d9)][_0x3ac88c(0x1ee)][_0x3ac88c(0x1e0)](_0x3ac88c(0x1c2))[_0x3ac88c(0x1cf)]();}[_0x1e96a0(0x1cd)](_0x30b989){const _0x3df971=_0x1e96a0;return this[_0x3df971(0x1dc)]||(this[_0x3df971(0x1dc)]=this[_0x3df971(0x1f5)]()),this[_0x3df971(0x1dc)][_0x3df971(0x1cd)](_0x30b989);}[_0x1e96a0(0x1f0)](_0x57e864){const _0x1a74e0=_0x1e96a0;this[_0x1a74e0(0x1dc)]&&this[_0x1a74e0(0x1dc)][_0x1a74e0(0x1f0)](_0x57e864);}[_0x1e96a0(0x1f5)](){const _0x44967e=_0x1e96a0,_0x291bbf=this[_0x44967e(0x1d9)],_0x46e2de=_0x291bbf[_0x44967e(0x1ee)][_0x44967e(0x1e0)](_0x44967e(0x1c2)),_0x50302d=_0x291bbf[_0x44967e(0x1cc)][_0x44967e(0x1e0)](_0x44967e(0x1e4));let _0xed3993=_0x291bbf[_0x44967e(0x1bf)][_0x44967e(0x1e0)](_0x44967e(0x1cb))||[..._0x2adfa0];_0x291bbf[_0x44967e(0x1ee)][_0x44967e(0x1e7)](_0x44967e(0x1bc))||(_0xed3993=_0xed3993[_0x44967e(0x1f4)](_0x370abe=>_0x44967e(0x1c6)!=_0x370abe));const _0x51c538=new _0x21d441(_0x291bbf[_0x44967e(0x1e8)],{'availableActions':_0xed3993,'showApplyButton':!0x0,'showSuggestButton':!!_0x50302d});return _0x51c538[_0x44967e(0x1e1)](_0x44967e(0x1fb))['to'](this),_0x51c538[_0x44967e(0x1e6)](..._0x87311d)['to'](this),_0x51c538[_0x44967e(0x1e6)](_0x44967e(0x1fc),_0x44967e(0x1ea))['to'](this),_0x46e2de[_0x44967e(0x1e6)](_0x44967e(0x1d0))['to'](this),_0x51c538['on'](_0x44967e(0x1dd),this[_0x44967e(0x1ec)][_0x44967e(0x1e1)](this)),_0x51c538['on'](_0x44967e(0x1c6),this[_0x44967e(0x1ec)][_0x44967e(0x1e1)](this)),_0x51c538['on'](_0x44967e(0x1c5),this[_0x44967e(0x1ec)][_0x44967e(0x1e1)](this)),_0x50302d&&_0x51c538[_0x44967e(0x1e1)](_0x44967e(0x1ef))['to'](_0x50302d,_0x44967e(0x1d4)),_0x51c538[_0x44967e(0x1df)](),_0x51c538;}[_0x1e96a0(0x1f2)](_0x5433c3){const _0x44969c=_0x1e96a0,_0x5d3cf2=this[_0x44969c(0x1d9)],_0x57f8f4=_0x5d3cf2[_0x44969c(0x1ee)][_0x44969c(0x1e0)](_0x44969c(0x1eb))[_0x44969c(0x1bd)][_0x44969c(0x1c8)][_0x44969c(0x1d7)];this[_0x44969c(0x1dc)][_0x44969c(0x1da)](_0x5433c3),_0x57f8f4[_0x44969c(0x1e7)](this[_0x44969c(0x1dc)][_0x44969c(0x1c0)])||(_0x57f8f4[_0x44969c(0x1d3)]([this[_0x44969c(0x1dc)][_0x44969c(0x1c0)],this[_0x44969c(0x1dc)][_0x44969c(0x1d8)]],0x0),_0x5d3cf2[_0x44969c(0x1ee)][_0x44969c(0x1e0)](_0x44969c(0x1c2))[_0x44969c(0x1f9)](_0x44969c(0x1f8),()=>{const _0x2aa324=_0x44969c;_0x57f8f4[_0x2aa324(0x1f7)](this[_0x2aa324(0x1dc)][_0x2aa324(0x1c0)]),_0x57f8f4[_0x2aa324(0x1f7)](this[_0x2aa324(0x1dc)][_0x2aa324(0x1d8)]);}));}[_0x1e96a0(0x1ec)](){const _0x419f95=_0x1e96a0;this[_0x419f95(0x1dc)][_0x419f95(0x1ed)]();}}
@@ -53,6 +53,10 @@ export declare class AIChatController extends ContextPlugin {
53
53
  * If the removed conversation is currently active, it starts a new conversation.
54
54
  */
55
55
  handleRemovedConversation(conversationId: string): void;
56
+ /**
57
+ * Adds the current document to the chat context.
58
+ */
59
+ addCurrentDocumentToChatContext(): void;
56
60
  addSelectionToChatContext(): Promise<void>;
57
61
  removeSelectionFromChatContext(): void;
58
62
  focusPromptInput(): void;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dfd08=_0x1c39;function _0x4377(){const _0x5dcef8=['outdated','updateFeedItemAIReplySuggestionPartState','ai.models.defaultModelId','_getUserPresentableContentPartDocumentRange','sourceId','push','open','scrollFeedToSuggestion','selectModel','removed','init','focusPromptInput','setContextItemLoading','delegate','partIndex','ai-chat-context-invalid-data','interactionId','interactionDestroyed','unshift','prepareLoadingMessage','_getDocumentRangeForReplyChanges','AIEditing','pluginName','done','startsWith','DocumentCompare','98461kpJIOj','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','load','root','setState','messageId','loadConversation','addFeedItemAIReply','close','TrackChanges','loadSourceResources','ai-conversation-','sourcePosition','end','aiChatBalloon','isStarted','pending','domConverter','finishInteraction','webSearchFinished','interactionFinished','removeSelectionFromContext','revert','howMany','destroy','dislike','config','parse','_handleStartConversation','_getPresentableSiblingContentPartIndex','addOperation','interactionCreated','from','rejected','isDisabled','history','_aiChatUi','clearPendingContextUI','ai-chat-context-unsupported-type','_aiChatBalloonShowDiff','_removeFromContext','indexOf','getReply','showFakeVisualSelection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplyContent','viewRangeToDom','interactionStarted','model','attachToDom','createConversation','collaboration.channelId','sessionId','new','requires','query','data-id','6RMGyVn','next','addSelectionToChatContext','_insertSuggestion','setFeedItemRenderingStrategy','showPrevious','nextSibling','data','_currentPreviewedChangeGroup','showChangeInText','undo','AIChatBalloon','ai-chat-context-unsupported-file-type','sourceResourcesLoaded','updateConversationTitle','setAddContextOptions','setIsUploadInProgress','Disliked\x20response','replies','updateContent','start','ai.chat.context','toggleSuggestionDisplayMode','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','addFeedInteractionHeader','document','_showConversationHistory','map','addFeedItemUserMessage','addContextOptionsChanged','updateResourceState','view','AI_CHAT_UNTITLED_CONVERSATION','getChild','resourceId','getAttribute','stop','children','static','8ESXHex','startInteraction','main','isModelAvailable','selectedModel','findIndex','addDocumentToContext','resizedTabs','conversationInitialized','6974360DPLEIx','mouseOverSuggestion','resourceStateChanged','addSelectionToContext','clearConversationContextUI','_setIsMaximized','Undo','alignToTop','_scrollToSuggestionRange','_updateReplyContent','error','_updateRatings','addFeedItemCustomElement','forEach','_toggleWebSearch','getChildAtOffset','uploadProgressChanged','isInContext','AITabs','_aiEditing','mapper','_aiChatBalloon','_stopLastInteraction','_aiChatModels','addUrlToContext','version','getContentParts','toggleReasoning','getOperations','addFilesToContext','resize','editing','type','hasChanges','ready','cloneNode','ai.chat.initialConversation','current-document','ai-chat-context-file-too-large','ai-chat-invalid-request','getConversation','accepted','resetConversationTitle','toggleLoadingSkeleton','populateSourceResourceBalloon','addFeedItemError','indexes','getPath','slice','maxOffset','resource','uid','length','index','startAutoScroll','resetReasoningState','dialogClosed','options','ai-chat-file-upload-failed','createPositionAt','webSearchStarted','remove','_bodyCollection','replyChangeGroupStateUpdated','streaming','editors','resizeTabs','setConversationContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','activateTab','getDiff','getRanges','abortPromptStream','hideFakeVisualSelection','setFeedItemAIReplySuggestionPartActive','isLoading','commands','_logError','createReply','createRange','setChangeGroupState','source','applySuggestion','removeFeedInteraction','text','replyId','ai-chat-source-resources-load-failed','modification','Liked\x20response','sendUserMessage','_rejectSuggestion','_handleUIUserMessage','areActionsDisabled','executeCustomItemCallback','getChildren','isUploadInProgress','showDiff','marker','modelSelected','ai-chat-controller-mouse-over','updateCapabilities','_openBalloonFor','ai-chat-conversation-start-failed','filter','rootName','sendMessage','ai-chat-resource-load-failed','stopInteraction','contextItemLoadingEnded','setModel','find','getSelectionText','fetchConversations','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','isDocumentOperation','TrackChangesEditing','changeGroups','_batchToChanges','2913966koLIDG','uiId','addFeedItemStaticMessage','afterInit','getDocumentData','message','3790rXvkeb','AI_BALLOON_HEADER_TITLE','fetchConversation','ai-chat-conversation-init-failed','503432RZgiBi','lastInteraction','_aiConnector','previous','ai-no-track-changes','12TzLfql','plugins','toString','AIConnector','applyOperation','split','toViewRange','_registerToolDataCallback','getDocumentContext','AI_CHAT_INVALID_REQUEST','_getAIChatInteractionAPI','changes','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','createdAt','replyCreated','bind','redo','ai-request-aborted','removeContextItem','AIChatUI','batch','change','startConversation','contextItem','node','enableControls','3548685zuDIRK','AI_CHAT_CONTEXT_INVALID_DATA','detachFromDom','getGroupId','set','delete','getRoot','removeFromContext','sources','_getLastCreatedConversationId','updateFeedItemAIReplySuggestionContent','context','setSelectedModel','AI_CHAT_CONTEXT_FILE_TOO_LARGE','listenTo','ai-chat-url-upload-failed','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','setConversationTitle','get','getFirstRange','rejectSuggestion','ai-chat-missing-channel-id','resetMessageInput','lastCreated','isPremiumPlugin','addContextItem','AIChatController','resources','ai-chat-conversation-not-found','addFeedItemAISuggestion','includes','baseVersion','locale','getTransformedByOperation','contextSent','clearLoadingMessage','capabilitiesUpdated','1227149AvUTNo','setLoadingMessage','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','contextItemAdded','toggleWebSearch','handleUserInteraction','showNext','isOfficialPlugin','getInteraction','getAll','replyContentUpdated','addCurrentDocumentToContext','_toggleReasoning','log','_createFromRanges','getInteractionAndReplyById','ai-chat-context-form-data-size-limits-exceeded','has','isCurrentDocumentInConversation','$graveyard','add','isCurrentDocumentInContext','setIsMaximized','upsertAIChatRating','Showing\x20conversation\x20history...','path','_applyOperationsAsSuggestions','addResourceToContext','toolDataReceived','_flushLastInteractionUI','AI_CHAT_ABORTED_MESSAGE','like','closeSourceResourceBalloon','chat','state','content','ai-chat-controller-no-active-conversation','currentReply','AI_CHAT_GENERIC_ERROR','activeConversation','reasoningFinished','removeSelectionFromChatContext','disableControls','2249156uNOpDf','_integrateEditor','ai.models','_startConversationSafely','createPositionFromPath','contextItemRemoved','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','selection','range','AI_CHAT_RESOURCE_LOAD_FAILED','callback','mouseLeaveSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','contextItems','addFileToContext','ai-chat-context-file-too-many-pages','updateFeedItemAIReplySources','insertSuggestion','_applySuggestion','reasoningStarted','handleRemovedConversation','anchorId','documentContextContent','resetWebSearchState','updateCurrentDocumentInContext','getConversations'];_0x4377=function(){return _0x5dcef8;};return _0x4377();}(function(_0x46fc12,_0x5ba092){const _0x39e7cc=_0x1c39,_0x49e4ec=_0x46fc12();while(!![]){try{const _0x57a4cc=parseInt(_0x39e7cc(0x17b))/0x1+-parseInt(_0x39e7cc(0x1a6))/0x2+parseInt(_0x39e7cc(0x2c8))/0x3*(-parseInt(_0x39e7cc(0x2c3))/0x4)+-parseInt(_0x39e7cc(0x243))/0x5+parseInt(_0x39e7cc(0x213))/0x6*(-parseInt(_0x39e7cc(0x2e2))/0x7)+-parseInt(_0x39e7cc(0x23a))/0x8*(parseInt(_0x39e7cc(0x2b9))/0x9)+-parseInt(_0x39e7cc(0x2bf))/0xa*(-parseInt(_0x39e7cc(0x1da))/0xb);if(_0x57a4cc===_0x5ba092)break;else _0x49e4ec['push'](_0x49e4ec['shift']());}catch(_0x25b151){_0x49e4ec['push'](_0x49e4ec['shift']());}}}(_0x4377,0xbb00f));import{ContextPlugin as _0x28e023,Editor as _0x42320b}from'ckeditor5/src/core.js';function _0x1c39(_0x510168,_0xf010b6){const _0x437781=_0x4377();return _0x1c39=function(_0x1c3923,_0x3c35e7){_0x1c3923=_0x1c3923-0x15d;let _0x36d2c7=_0x437781[_0x1c3923];return _0x36d2c7;},_0x1c39(_0x510168,_0xf010b6);}import{BodyCollection as _0x5def1e}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3c44ac,logError as _0x6010c0,scrollViewportToShowTarget as _0x3a9d9b,uid as _0x51db44}from'ckeditor5/src/utils.js';import{AIConnector as _0x2ddac5}from'../aicore/aiconnector.js';import{AITabs as _0x4331f6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3b4bcc}from'./model/aichatconversation.js';import{getTranslation as _0x20b84e}from'../aicore/utils/common-translations.js';import{AIModels as _0x588792}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x3e1b46}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x294ad6,DATA_ID_MODEL_ATTRIBUTE as _0xe52103}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2b9886,getOperationsFromReply as _0x266afd}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x131f14,getMinimalSelection as _0xe9ce05}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x3d6220,_DetachOperation as _0x2898a8}from'ckeditor5/src/engine.js';import{findOne as _0x5024a7,getAttribute as _0x33a4cb,serialize as _0x27f831,Document as _0x3decbf,findByAttribute as _0x6aa6ab}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x28e023{[_0x2dfd08(0x256)];[_0x2dfd08(0x2c5)];[_0x2dfd08(0x1fe)];[_0x2dfd08(0x25a)];[_0x2dfd08(0x258)];[_0x2dfd08(0x2b8)]=new Map();[_0x2dfd08(0x21b)]=null;[_0x2dfd08(0x281)];static get[_0x2dfd08(0x210)](){return[_0x2ddac5,_0x294ad6];}static get[_0x2dfd08(0x1d6)](){const _0x2daf1=_0x2dfd08;return _0x2daf1(0x170);}static get[_0x2dfd08(0x182)](){return!0x0;}static get[_0x2dfd08(0x16e)](){return!0x0;}[_0x2dfd08(0x1ca)](){const _0x5b90e1=_0x2dfd08;this[_0x5b90e1(0x281)]=new _0x5def1e(this[_0x5b90e1(0x161)][_0x5b90e1(0x176)]),this[_0x5b90e1(0x281)][_0x5b90e1(0x20b)](),this[_0x5b90e1(0x2c5)]=this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x168)](_0x5b90e1(0x2cb)),this[_0x5b90e1(0x1fe)]=this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x168)](_0x5b90e1(0x2db)),this[_0x5b90e1(0x256)]=this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x168)](_0x5b90e1(0x1d5)),this[_0x5b90e1(0x25a)]=new _0x588792({'connector':this[_0x5b90e1(0x2c5)],'config':this[_0x5b90e1(0x161)][_0x5b90e1(0x1f4)][_0x5b90e1(0x168)](_0x5b90e1(0x1a8)),'locale':this[_0x5b90e1(0x161)][_0x5b90e1(0x176)]});const _0xd82642=this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x168)](_0x5b90e1(0x255));this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x2de),()=>{const _0x271948=_0x5b90e1;this[_0x271948(0x1a9)]();}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x29c),(_0x5e2aae,_0x24a5df)=>{const _0x959936=_0x5b90e1;this[_0x959936(0x29e)]({'userMessage':_0x24a5df});}),this[_0x5b90e1(0x164)](_0xd82642,_0x5b90e1(0x241),(_0x5fdb7c,_0x7ddcd9)=>{const _0x3d4ccc=_0x5b90e1;this[_0x3d4ccc(0x248)](_0x7ddcd9);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x285),()=>{const _0x369808=_0x5b90e1;_0xd82642[_0x369808(0x261)]();}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x28b),async()=>{const _0x2f2edf=_0x5b90e1;await this[_0x2f2edf(0x259)](),await this[_0x2f2edf(0x198)](),this[_0x2f2edf(0x1a4)]();}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x240),()=>{const _0x4fdeb7=_0x5b90e1;this[_0x4fdeb7(0x1a2)]?.[_0x4fdeb7(0x186)](_0x20b84e(this[_0x4fdeb7(0x161)][_0x4fdeb7(0x176)],_0x4fdeb7(0x1db)));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1b4),(_0x633a0c,_0xdc1721)=>{const _0x11d1d8=_0x5b90e1;this[_0x11d1d8(0x1a2)]?.[_0x11d1d8(0x260)](Array[_0x11d1d8(0x1fa)](_0xdc1721));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x25b),(_0x46b568,_0x219c85)=>{const _0xc1c54a=_0x5b90e1;this[_0xc1c54a(0x1a2)]?.[_0xc1c54a(0x25b)](_0x219c85);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x2a0),(_0x2144e4,_0x16687b)=>{const _0x5801b4=_0x5b90e1;_0x16687b[_0x5801b4(0x1b0)](this[_0x5801b4(0x161)]);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x196),(_0xd376ce,_0x4c4380)=>{const _0x6a833f=_0x5b90e1;this[_0x6a833f(0x1a2)]?.[_0x6a833f(0x196)](_0x4c4380[_0x6a833f(0x294)],_0x4c4380[_0x6a833f(0x275)]);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x2da),(_0x18f2e2,_0x13119b)=>{const _0x3949ec=_0x5b90e1;this[_0x3949ec(0x202)](_0x13119b);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1e4),(_0x3c7130,_0x2f15d3)=>{const _0x1815ac=_0x5b90e1;this[_0x1815ac(0x1a2)]?.[_0x1815ac(0x1e4)](_0x2f15d3[_0x1815ac(0x1c4)],_0x2f15d3[_0x1815ac(0x211)],_0x2f15d3[_0x1815ac(0x276)]);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x17f),()=>{const _0x36a995=_0x5b90e1;this[_0x36a995(0x251)]();}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x25e),()=>{const _0x317dec=_0x5b90e1;this[_0x317dec(0x187)]();}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1c8),(_0x21816c,_0x4ac142)=>{const _0x29d867=_0x5b90e1;this[_0x29d867(0x1a2)]?.[_0x29d867(0x2b0)](_0x4ac142);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x19a),(_0x5bfc81,{replyId:_0x4d7e79})=>{const _0x1aaa69=_0x5b90e1;console[_0x1aaa69(0x188)](_0x1aaa69(0x29b),_0x4d7e79);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1f3),(_0xfceafb,{replyId:_0x5c3adc})=>{const _0x593155=_0x5b90e1;console[_0x593155(0x188)](_0x593155(0x224),_0x5c3adc);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1b7),(_0x2488fd,_0xf9e2a8)=>{const _0x2f14fa=_0x5b90e1;this[_0x2f14fa(0x216)](_0xf9e2a8);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x21c),(_0x3573ef,{replyId:_0x14cdd3,partIndex:_0x47431c})=>{const _0x1f0b29=_0x5b90e1;this[_0x1f0b29(0x201)]=this[_0x1f0b29(0x1fe)][_0x1f0b29(0x2a3)],this[_0x1f0b29(0x2a8)](_0x14cdd3,_0x47431c);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x244),(_0x2c74eb,{replyId:_0x403f56,partIndex:_0x58b537})=>{const _0x1fb7b3=_0x5b90e1,_0x26e2e5=this[_0x1fb7b3(0x1d4)](_0x403f56,_0x58b537);_0x26e2e5&&_0x1fb7b3(0x18e)!=_0x26e2e5[_0x1fb7b3(0x1ae)][_0x1fb7b3(0x1dd)][_0x1fb7b3(0x2ab)]&&this[_0x1fb7b3(0x256)][_0x1fb7b3(0x205)]([_0x26e2e5[_0x1fb7b3(0x1ae)]],_0x1fb7b3(0x2a6));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x1b1),()=>{const _0x213dc3=_0x5b90e1;this[_0x213dc3(0x256)][_0x213dc3(0x28c)](_0x213dc3(0x2a6));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x295),(_0x21a0d4,_0x59a4da)=>{const _0x3426f2=_0x5b90e1;this[_0x3426f2(0x256)][_0x3426f2(0x28c)](_0x3426f2(0x2a6)),this[_0x3426f2(0x1b8)](_0x59a4da);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x229),async(_0x317fe4,{replyId:_0x16e4d9,showDiff:_0x269513})=>{const _0x127665=_0x5b90e1,{reply:_0x5303a8}=this[_0x127665(0x18a)](_0x16e4d9),_0x432d44=_0x5303a8[_0x127665(0x25d)]({'showDiff':_0x269513});await this[_0x127665(0x1fe)][_0x127665(0x160)]({'id':_0x5303a8['id'],'parts':_0x432d44,'renderingStrategy':_0x127665(0x239)});}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x1fe)],_0x5b90e1(0x16a),(_0x1d1fd1,{replyId:_0x1a2dc2,partIndex:_0x242db3})=>{const _0x495f0c=_0x5b90e1;this[_0x495f0c(0x29d)]({'replyId':_0x1a2dc2,'partIndex':_0x242db3}),this[_0x495f0c(0x256)][_0x495f0c(0x28c)](_0x495f0c(0x2a6));}),this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x18c)](_0x5b90e1(0x21e))&&(this[_0x5b90e1(0x258)]=this[_0x5b90e1(0x161)][_0x5b90e1(0x2c9)][_0x5b90e1(0x168)](_0x5b90e1(0x21e)),this[_0x5b90e1(0x2e6)](_0x5b90e1(0x201),!0x1),this[_0x5b90e1(0x258)][_0x5b90e1(0x2d7)](_0x5b90e1(0x2a3))['to'](this,_0x5b90e1(0x201)),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x229),()=>{const _0x50584a=_0x5b90e1,{replyId:_0xa96f58,partIndex:_0x4ace28}=this[_0x50584a(0x21b)];this[_0x50584a(0x201)]=!this[_0x50584a(0x201)];const {reply:_0x45b6d3}=this[_0x50584a(0x18a)](_0xa96f58),_0x38748e=_0x45b6d3[_0x50584a(0x25d)]({'showDiff':this[_0x50584a(0x201)],'groupIndex':_0x4ace28});this[_0x50584a(0x258)][_0x50584a(0x226)]({'part':_0x38748e[0x0],'renderingStrategy':_0x50584a(0x239),'keepErrors':!0x0});}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x295),()=>{const _0x54dc6b=_0x5b90e1,{replyId:_0x168f06,partIndex:_0xe7207}=this[_0x54dc6b(0x21b)];this[_0x54dc6b(0x1b8)]({'replyId':_0x168f06,'partIndex':_0xe7207}),this[_0x54dc6b(0x258)][_0x54dc6b(0x1de)](_0x54dc6b(0x26c));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x1b7),()=>{const _0x5b4390=_0x5b90e1,{replyId:_0x1483de,partIndex:_0xb4b10a}=this[_0x5b4390(0x21b)];this[_0x5b4390(0x216)]({'replyId':_0x1483de,'partIndex':_0xb4b10a}),this[_0x5b4390(0x258)][_0x5b4390(0x1de)](_0x5b4390(0x26c));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x16a),()=>{const _0x4076e0=_0x5b90e1,{replyId:_0x751309,partIndex:_0x218e3b}=this[_0x4076e0(0x21b)];this[_0x4076e0(0x29d)]({'replyId':_0x751309,'partIndex':_0x218e3b}),this[_0x4076e0(0x258)][_0x4076e0(0x1de)](_0x4076e0(0x1fb));}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x181),()=>{const _0x49a528=_0x5b90e1,{replyId:_0x598343,partIndex:_0x941677}=this[_0x49a528(0x21b)],_0x39a37a=this[_0x49a528(0x1f7)](_0x598343,_0x941677,_0x49a528(0x214));null!==_0x39a37a&&this[_0x49a528(0x2a8)](_0x598343,_0x39a37a);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x218),()=>{const _0x13b749=_0x5b90e1,{replyId:_0x2f585a,partIndex:_0x314aef}=this[_0x13b749(0x21b)],_0x207427=this[_0x13b749(0x1f7)](_0x2f585a,_0x314aef,_0x13b749(0x2c6));null!==_0x207427&&this[_0x13b749(0x2a8)](_0x2f585a,_0x207427);}),this[_0x5b90e1(0x164)](this[_0x5b90e1(0x258)],_0x5b90e1(0x27b),(_0x2e1205,{id:_0x41fbe2})=>{const _0x5d7984=_0x5b90e1;if(_0x5d7984(0x1e8)!==_0x41fbe2)return;const {replyId:_0x1bc43e,partIndex:_0x24ba53}=this[_0x5d7984(0x21b)];this[_0x5d7984(0x21b)]=null,this[_0x5d7984(0x1fe)][_0x5d7984(0x28d)]({'id':_0x1bc43e,'index':_0x24ba53,'isActive':!0x1});}));}async[_0x2dfd08(0x2bc)](){const _0x91765e=_0x2dfd08;this[_0x91765e(0x161)]instanceof _0x42320b?this[_0x91765e(0x1a7)](this[_0x91765e(0x161)]):this[_0x91765e(0x164)](this[_0x91765e(0x161)][_0x91765e(0x284)],_0x91765e(0x18f),(_0x524481,_0x222e69)=>{const _0x5692d8=_0x91765e;_0x222e69['on'](_0x5692d8(0x265),()=>{const _0x2f3a0b=_0x5692d8;this[_0x2f3a0b(0x1a7)](_0x222e69);});});const _0x501ccd=this[_0x91765e(0x161)][_0x91765e(0x1f4)][_0x91765e(0x168)](_0x91765e(0x267));let _0x2530a6=_0x501ccd;if(_0x91765e(0x16d)!=_0x501ccd||(_0x2530a6=await this[_0x91765e(0x15f)](),_0x2530a6))return _0x91765e(0x20f)==_0x2530a6?this[_0x91765e(0x1a9)]():this[_0x91765e(0x1e0)](_0x2530a6);}async[_0x2dfd08(0x1f2)](){const _0x506cbc=_0x2dfd08;return await this[_0x506cbc(0x259)](),this[_0x506cbc(0x281)][_0x506cbc(0x2e4)](),super[_0x506cbc(0x1f2)]();}[_0x2dfd08(0x216)](_0x5cd12f){const _0x26370a=_0x2dfd08,_0x1970f8=_0x3e1b46(this[_0x26370a(0x161)]);if(!_0x1970f8[_0x26370a(0x2c9)][_0x26370a(0x18c)](_0x26370a(0x1e3)))throw new _0x3c44ac(_0x26370a(0x2c7),null);const _0x2887bd=this[_0x26370a(0x161)][_0x26370a(0x2c9)][_0x26370a(0x168)](_0x26370a(0x1d9)),{reply:_0x56de26,interaction:_0x409dc9}=this[_0x26370a(0x18a)](_0x5cd12f[_0x26370a(0x298)]),_0x5b534b=this[_0x26370a(0x1d4)](_0x5cd12f[_0x26370a(0x298)],_0x5cd12f[_0x26370a(0x1ce)]),_0x5635a9=void 0x0!==_0x5cd12f[_0x26370a(0x1ce)]?[_0x56de26[_0x26370a(0x2b7)][_0x5cd12f[_0x26370a(0x1ce)]]]:_0x56de26[_0x26370a(0x2b7)][_0x26370a(0x2aa)](_0x48da4e=>_0x26370a(0x1ea)==_0x48da4e[_0x26370a(0x19d)]),_0x29ce05=_0x5635a9[_0x26370a(0x22e)](_0x44cb95=>_0x56de26[_0x26370a(0x2b7)][_0x26370a(0x203)](_0x44cb95));if(!_0x5b534b||_0x26370a(0x18e)==_0x5b534b[_0x26370a(0x1ae)][_0x26370a(0x1dd)][_0x26370a(0x2ab)])return void _0x29ce05[_0x26370a(0x250)](_0x13c9e3=>_0x56de26[_0x26370a(0x293)](_0x13c9e3,_0x26370a(0x1c0)));_0x29ce05[_0x26370a(0x250)](_0x462e68=>_0x56de26[_0x26370a(0x293)](_0x462e68,_0x26370a(0x26c)));const _0x154159=_0x266afd({'editor':_0x1970f8,'reply':_0x56de26,'interaction':_0x409dc9,'groups':_0x5635a9,'transform':!0x0,'documentCompare':_0x2887bd,'documentCompareOptions':{'anchor':_0x26370a(0x23c),'markDeletions':!0x0}});let _0x24cafd;_0x5b534b&&this[_0x26370a(0x24b)](_0x5b534b[_0x26370a(0x1ae)]),_0x1970f8[_0x26370a(0x20a)][_0x26370a(0x2dd)](_0x28db3d=>{const _0x316eed=_0x26370a;_0x24cafd=_0x28db3d[_0x316eed(0x2dc)],_0x1970f8[_0x316eed(0x2c9)][_0x316eed(0x168)](_0x316eed(0x2b6))[_0x316eed(0x195)](_0x154159),this[_0x316eed(0x256)][_0x316eed(0x28c)](_0x316eed(0x2a6));}),this[_0x26370a(0x2b8)][_0x26370a(0x2e6)](_0x24cafd,{'interactionId':_0x409dc9['id'],'replyId':_0x56de26['id'],'indexes':_0x29ce05[_0x26370a(0x273)]()}),this[_0x26370a(0x24e)](_0x56de26);}[_0x2dfd08(0x1b8)](_0x1f0cf4){const _0xefaf48=_0x2dfd08,_0x48ffb5=_0x3e1b46(this[_0xefaf48(0x161)]),_0x1be2b2=this[_0xefaf48(0x161)][_0xefaf48(0x2c9)][_0xefaf48(0x168)](_0x294ad6),{reply:_0x6da609,interaction:_0x3ccd58}=this[_0xefaf48(0x18a)](_0x1f0cf4[_0xefaf48(0x298)]),_0x4ff7c4=this[_0xefaf48(0x1d4)](_0x1f0cf4[_0xefaf48(0x298)],_0x1f0cf4[_0xefaf48(0x1ce)]),_0x11ebd7=void 0x0!==_0x1f0cf4[_0xefaf48(0x1ce)]?[_0x6da609[_0xefaf48(0x2b7)][_0x1f0cf4[_0xefaf48(0x1ce)]]]:_0x6da609[_0xefaf48(0x2b7)][_0xefaf48(0x2aa)](_0x1dc176=>_0xefaf48(0x1ea)==_0x1dc176[_0xefaf48(0x19d)]),_0x40ada1=_0x11ebd7[_0xefaf48(0x22e)](_0x4770ea=>_0x6da609[_0xefaf48(0x2b7)][_0xefaf48(0x203)](_0x4770ea));if(!_0x4ff7c4||_0xefaf48(0x18e)==_0x4ff7c4[_0xefaf48(0x1ae)][_0xefaf48(0x1dd)][_0xefaf48(0x2ab)])return void _0x40ada1[_0xefaf48(0x250)](_0x32d2f2=>_0x6da609[_0xefaf48(0x293)](_0x32d2f2,_0xefaf48(0x1c0)));_0x40ada1[_0xefaf48(0x250)](_0x388eb4=>_0x6da609[_0xefaf48(0x293)](_0x388eb4,_0xefaf48(0x26c)));const _0x3756ad=_0x266afd({'editor':_0x48ffb5,'reply':_0x6da609,'interaction':_0x3ccd58,'groups':_0x11ebd7,'transform':!0x0,'documentCompare':_0x1be2b2,'documentCompareOptions':{'anchor':_0xefaf48(0x23c),'markDeletions':!0x1}});let _0xb09396;_0x4ff7c4&&this[_0xefaf48(0x24b)](_0x4ff7c4[_0xefaf48(0x1ae)]),_0x48ffb5[_0xefaf48(0x20a)][_0xefaf48(0x2dd)](_0x44b610=>{const _0xd2abc4=_0xefaf48;_0xb09396=_0x44b610[_0xd2abc4(0x2dc)];for(const _0x3520b8 of _0x3756ad)_0x3520b8[_0xd2abc4(0x175)]=_0x48ffb5[_0xd2abc4(0x20a)][_0xd2abc4(0x22c)][_0xd2abc4(0x25c)],_0x2b9886(_0x48ffb5,_0x3520b8),_0x44b610[_0xd2abc4(0x2dc)][_0xd2abc4(0x1f8)](_0x3520b8),_0x48ffb5[_0xd2abc4(0x20a)][_0xd2abc4(0x2cc)](_0x3520b8);}),this[_0xefaf48(0x2b8)][_0xefaf48(0x2e6)](_0xb09396,{'interactionId':_0x3ccd58['id'],'replyId':_0x6da609['id'],'indexes':_0x40ada1[_0xefaf48(0x273)]()}),this[_0xefaf48(0x24e)](_0x6da609);}[_0x2dfd08(0x29d)](_0x15a211){const _0x5c8cd1=_0x2dfd08,{reply:_0x563db4}=this[_0x5c8cd1(0x18a)](_0x15a211[_0x5c8cd1(0x298)]);_0x563db4[_0x5c8cd1(0x293)](_0x15a211[_0x5c8cd1(0x1ce)],_0x5c8cd1(0x1fb));}[_0x2dfd08(0x2a8)](_0x27ffe4,_0x483dc1){const _0x4c81f6=_0x2dfd08;if(!this[_0x4c81f6(0x258)])return;const {reply:_0x3d7297}=this[_0x4c81f6(0x18a)](_0x27ffe4),_0x3c1e34=_0x3d7297[_0x4c81f6(0x25d)]({'showDiff':this[_0x4c81f6(0x201)]});let _0x14cdaa,_0xad7ba;if(void 0x0!==_0x483dc1?(_0xad7ba=_0x3c1e34[_0x4c81f6(0x2b1)](_0x4106f1=>_0x4106f1[_0x4c81f6(0x278)]==_0x483dc1),_0x14cdaa=_0xad7ba?.[_0x4c81f6(0x278)]):(_0xad7ba=_0x3c1e34[0x0],_0x14cdaa=_0xad7ba[_0x4c81f6(0x278)]),this[_0x4c81f6(0x21b)]?.[_0x4c81f6(0x298)]==_0x27ffe4&&this[_0x4c81f6(0x21b)]?.[_0x4c81f6(0x1ce)]==_0x14cdaa)return;const _0x576899=this[_0x4c81f6(0x1c3)](_0x27ffe4,_0x3d7297,_0xad7ba);if(!_0x576899)return void this[_0x4c81f6(0x258)][_0x4c81f6(0x1e2)]();this[_0x4c81f6(0x21b)]={'replyId':_0x27ffe4,'partIndex':_0x14cdaa},this[_0x4c81f6(0x24b)](_0x576899,!0x0);const _0x118837=this[_0x4c81f6(0x1f7)](_0x27ffe4,_0x14cdaa,_0x4c81f6(0x214));this[_0x4c81f6(0x258)][_0x4c81f6(0x226)]({'part':_0xad7ba,'renderingStrategy':_0x4c81f6(0x239)}),this[_0x4c81f6(0x258)][_0x4c81f6(0x1c6)]({'index':_0x14cdaa,'title':_0x20b84e(this[_0x4c81f6(0x161)][_0x4c81f6(0x176)],_0x4c81f6(0x2c0),(_0x14cdaa+0x1)[_0x4c81f6(0x2ca)]()),'showRotator':null!==_0x118837,'ranges':[_0x576899],'areActionsDisabled':_0x3d7297[_0x4c81f6(0x29f)]}),this[_0x4c81f6(0x258)][_0x4c81f6(0x1de)](_0x4c81f6(0x1ea)),this[_0x4c81f6(0x1fe)][_0x4c81f6(0x1c7)](_0x27ffe4,_0x14cdaa),this[_0x4c81f6(0x1fe)][_0x4c81f6(0x28d)]({'id':_0x27ffe4,'index':_0x14cdaa,'isActive':!0x0});}[_0x2dfd08(0x1f7)](_0x4af1f0,_0x532c7d,_0x3c03a2){const _0x319b41=_0x2dfd08,{reply:_0x4c8c08}=this[_0x319b41(0x18a)](_0x4af1f0),_0x4b25b3=_0x4c8c08[_0x319b41(0x25d)]({'showDiff':this[_0x319b41(0x201)]});if(0x1==_0x4b25b3[_0x319b41(0x277)])return null;const _0xfc976d=_0x4b25b3[_0x319b41(0x23f)](_0x34952a=>_0x34952a[_0x319b41(0x278)]==_0x532c7d),_0x5bd796=_0x319b41(0x214)==_0x3c03a2?0x1:-0x1;let _0x3c8c4c=_0x4b25b3['at']((_0xfc976d+_0x5bd796)%_0x4b25b3[_0x319b41(0x277)])[_0x319b41(0x278)],_0xdca344=_0x4b25b3[_0x3c8c4c];for(;!this[_0x319b41(0x1c3)](_0x4af1f0,_0x4c8c08,_0xdca344);){if(_0x3c8c4c=_0x4b25b3['at']((_0x3c8c4c+_0x5bd796)%_0x4b25b3[_0x319b41(0x277)])[_0x319b41(0x278)],_0x3c8c4c===_0xfc976d)return null;_0xdca344=_0x4b25b3[_0x3c8c4c];}return _0x3c8c4c;}[_0x2dfd08(0x1c3)](_0x9e4be6,_0x329f21,_0x495476){const _0x2cb669=_0x2dfd08,_0x5a5227=_0x329f21[_0x2cb669(0x2b7)];if(!_0x495476[_0x2cb669(0x264)])return null;const _0x25a098=_0x5a5227[_0x2cb669(0x2b1)](_0x521934=>_0x521934[_0x2cb669(0x278)]==_0x495476[_0x2cb669(0x278)]);if(_0x2cb669(0x1ea)!==_0x25a098?.[_0x2cb669(0x19d)])return null;const _0x4e447e=this[_0x2cb669(0x1d4)](_0x9e4be6,_0x495476[_0x2cb669(0x278)]);if(!_0x4e447e)return null;const {range:_0x2f3e5e,currentIndex:_0x46d6de}=_0x4e447e;return _0x2cb669(0x18e)==_0x2f3e5e[_0x2cb669(0x1dd)][_0x2cb669(0x2ab)]?(_0x329f21[_0x2cb669(0x293)](_0x46d6de,_0x2cb669(0x1c0)),null):_0x4e447e[_0x2cb669(0x1ae)];}[_0x2dfd08(0x1d4)](_0x29de0f,_0x117963){const _0xbd609e=_0x2dfd08,_0x596c18=_0x3e1b46(this[_0xbd609e(0x161)]),{reply:_0x2a242c,interaction:_0x3683a1}=this[_0xbd609e(0x18a)](_0x29de0f),_0x560b49=_0x2a242c[_0xbd609e(0x2b7)][_0xbd609e(0x2aa)](_0x2313c7=>_0xbd609e(0x1ea)==_0x2313c7[_0xbd609e(0x19d)]),_0x460ec8=_0x560b49[_0xbd609e(0x22e)](_0x208522=>_0x2a242c[_0xbd609e(0x2b7)][_0xbd609e(0x203)](_0x208522));void 0x0===_0x117963&&(_0x117963=_0x460ec8[0x0]);const _0x1216f1=_0x460ec8[_0xbd609e(0x203)](_0x117963);if(-0x1==_0x1216f1)return null;const _0x1159fe=_0x560b49[_0x1216f1],_0x510f5c=new _0x3decbf([]),_0x374706=new _0x3decbf([]);for(const _0x4b9d7a of _0x1159fe[_0xbd609e(0x2d3)])if(_0xbd609e(0x1c9)!=_0x4b9d7a[_0xbd609e(0x263)]&&_0x374706[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0x4b9d7a[_0xbd609e(0x2e0)][_0xbd609e(0x266)](!0x0)),_0xbd609e(0x20f)!=_0x4b9d7a[_0xbd609e(0x263)]){const _0x293934=_0x5024a7(_0x3cefd7=>_0x33a4cb(_0x3cefd7,_0xbd609e(0x212))==_0x4b9d7a['id'],_0x2a242c[_0xbd609e(0x1bc)],!0x0);_0x510f5c[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0x293934[_0xbd609e(0x266)](!0x0));}if(0x0==_0x510f5c[_0xbd609e(0x238)][_0xbd609e(0x277)]){if(_0x1159fe[_0xbd609e(0x2d3)][0x0][_0xbd609e(0x1bb)]){const _0xea0251=_0x6aa6ab(_0xbd609e(0x212),_0x1159fe[_0xbd609e(0x2d3)][0x0][_0xbd609e(0x1bb)],_0x2a242c[_0xbd609e(0x1bc)]);_0x510f5c[_0xbd609e(0x238)][_0xbd609e(0x1d2)](_0xea0251[_0xbd609e(0x266)](!0x0)),_0x374706[_0xbd609e(0x238)][_0xbd609e(0x1d2)](_0xea0251[_0xbd609e(0x266)](!0x0)),_0xea0251[_0xbd609e(0x219)]&&(_0x510f5c[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0xea0251[_0xbd609e(0x219)][_0xbd609e(0x266)](!0x0)),_0x374706[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0xea0251[_0xbd609e(0x219)][_0xbd609e(0x266)](!0x0)));}else{const _0x5099e7=_0x2a242c[_0xbd609e(0x1bc)][_0xbd609e(0x238)][0x0];if(!_0x5099e7)return null;_0x510f5c[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0x5099e7[_0xbd609e(0x266)](!0x0)),_0x374706[_0xbd609e(0x238)][_0xbd609e(0x1c5)](_0x5099e7[_0xbd609e(0x266)](!0x0));}}const _0x32b8d5=_0x3683a1[_0xbd609e(0x2d0)](),_0x237394=_0x596c18[_0xbd609e(0x21a)][_0xbd609e(0x1f5)](_0x32b8d5[_0xbd609e(0x19e)]),_0x3b2ee9=_0x27f831(_0x510f5c),_0x191785=_0x596c18[_0xbd609e(0x21a)][_0xbd609e(0x1f5)](_0x3b2ee9),_0x3ed9f7=_0x596c18[_0xbd609e(0x21a)][_0xbd609e(0x1f5)](_0x3b2ee9),_0x592d59=_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x27e)](_0x191785,0x0),_0x2afeab=_0x27f831(_0x374706),_0x23c093={'anchor':_0x592d59,'markDeletions':!0x1},_0x44ac8f=_0x596c18[_0xbd609e(0x2c9)][_0xbd609e(0x168)](_0x294ad6)[_0xbd609e(0x289)](_0x3b2ee9,_0x2afeab,_0x23c093)[_0xbd609e(0x25f)]();if(!_0x44ac8f[_0xbd609e(0x277)])return null;_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x2dd)](_0x3f966f=>{const _0x4a3e03=_0xbd609e;for(const _0xc13dea of _0x44ac8f)if(_0x4a3e03(0x280)==_0xc13dea[_0x4a3e03(0x263)]){const _0x1a9a7a=_0xc13dea[_0x4a3e03(0x1e6)],_0x189384=_0xc13dea[_0x4a3e03(0x1f1)],_0x1c381a=new _0x2898a8(_0x1a9a7a,_0x189384);_0x3f966f[_0x4a3e03(0x2dc)][_0x4a3e03(0x1f8)](_0x1c381a),_0x596c18[_0x4a3e03(0x20a)][_0x4a3e03(0x2cc)](_0x1c381a);}else _0x4a3e03(0x2a4)!==_0xc13dea[_0x4a3e03(0x263)]&&(_0xc13dea[_0x4a3e03(0x175)]=null,_0xc13dea[_0x4a3e03(0x2b5)]=!0x1,_0x3f966f[_0x4a3e03(0x2dc)][_0x4a3e03(0x1f8)](_0xc13dea),_0x596c18[_0x4a3e03(0x20a)][_0x4a3e03(0x2cc)](_0xc13dea));});const _0x3757b8=_0xe9ce05(_0x596c18,_0x44ac8f,_0x191785);_0x131f14(_0x596c18[_0xbd609e(0x20a)],_0x3757b8);const _0x4f98fc=_0x3757b8[_0xbd609e(0x169)]()[_0xbd609e(0x227)][_0xbd609e(0x194)][_0xbd609e(0x273)](),_0x502f7a=_0x3757b8[_0xbd609e(0x169)]()[_0xbd609e(0x1e7)][_0xbd609e(0x194)][_0xbd609e(0x273)](),_0x28fa0e=[];let _0x247e05=_0x191785,_0x2a26b5=_0x3ed9f7;for(let _0x10c4ef=0x0;_0x10c4ef<_0x502f7a[_0xbd609e(0x277)];_0x10c4ef++){const _0x4bfe2c=_0x247e05[_0xbd609e(0x274)]-_0x502f7a[_0x10c4ef];_0x28fa0e[_0x10c4ef]=_0x2a26b5[_0xbd609e(0x274)]-_0x4bfe2c,_0x247e05=_0x247e05[_0xbd609e(0x252)](_0x502f7a[_0x10c4ef]),_0x2a26b5=_0x2a26b5[_0xbd609e(0x252)](_0x28fa0e[_0x10c4ef]);}const _0x2e7766=_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x292)](_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x1aa)](_0x3ed9f7,_0x4f98fc),_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x1aa)](_0x3ed9f7,_0x28fa0e)),_0x2def07=_0x3ed9f7[_0xbd609e(0x234)](0x0)[_0xbd609e(0x236)](_0xe52103),_0x273c40=Array[_0xbd609e(0x1fa)](_0x237394[_0xbd609e(0x2a1)]())[_0xbd609e(0x2b1)](_0x487d6b=>_0x487d6b[_0xbd609e(0x236)](_0xe52103)==_0x2def07)[_0xbd609e(0x272)](),_0x2ad159=_0x2e7766[_0xbd609e(0x227)][_0xbd609e(0x194)][_0xbd609e(0x273)](),_0x655bb9=_0x2e7766[_0xbd609e(0x1e7)][_0xbd609e(0x194)][_0xbd609e(0x273)]();_0x2ad159[0x0]=_0x273c40[0x0]+_0x2ad159[0x0],_0x655bb9[0x0]=_0x273c40[0x0]+_0x655bb9[0x0];let _0x125c88=_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x292)](_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x1aa)](_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x22c)][_0xbd609e(0x2e8)](),_0x2ad159),_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x1aa)](_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x22c)][_0xbd609e(0x2e8)](),_0x655bb9));const _0x4e1c3b=_0x596c18[_0xbd609e(0x20a)][_0xbd609e(0x22c)][_0xbd609e(0x1fd)][_0xbd609e(0x25f)](_0x32b8d5[_0xbd609e(0x25c)]);for(const _0x216394 of _0x4e1c3b)_0x125c88=_0x3d6220[_0xbd609e(0x189)](_0x125c88[_0xbd609e(0x177)](_0x216394));return{'range':_0x125c88,'currentIndex':_0x117963};}[_0x2dfd08(0x1a7)](_0x36cd45){const _0x5ac361=_0x2dfd08;if(!_0x36cd45[_0x5ac361(0x2c9)][_0x5ac361(0x18c)](_0x5ac361(0x249)))return;const _0x373dec=_0x36cd45[_0x5ac361(0x28f)][_0x5ac361(0x168)](_0x5ac361(0x21d)),_0x291a08=_0x36cd45[_0x5ac361(0x28f)][_0x5ac361(0x168)](_0x5ac361(0x2d8));this[_0x5ac361(0x164)](_0x373dec,_0x5ac361(0x1f0),(_0x9f8fba,_0x3601d0,_0x57be8d)=>{const _0x54bd71=_0x5ac361,_0x2c7fcf=this[_0x54bd71(0x2b8)][_0x54bd71(0x168)](_0x3601d0);if(!_0x2c7fcf)return;const _0x153f6f=this[_0x54bd71(0x1a2)][_0x54bd71(0x183)](_0x2c7fcf[_0x54bd71(0x1d0)])[_0x54bd71(0x204)](_0x2c7fcf[_0x54bd71(0x298)]);_0x2c7fcf[_0x54bd71(0x271)][_0x54bd71(0x250)](_0x1a4bef=>_0x153f6f[_0x54bd71(0x293)](_0x1a4bef,_0x54bd71(0x1ea))),this[_0x54bd71(0x2b8)][_0x54bd71(0x2e7)](_0x3601d0),this[_0x54bd71(0x2b8)][_0x54bd71(0x2e6)](_0x57be8d,_0x2c7fcf);}),this[_0x5ac361(0x164)](_0x291a08,_0x5ac361(0x1f0),(_0x1f0d3e,_0x2076a3,_0x19715d)=>{const _0x3149be=_0x5ac361,_0x590dea=this[_0x3149be(0x2b8)][_0x3149be(0x168)](_0x2076a3);if(!_0x590dea)return;const _0x3d5119=this[_0x3149be(0x1a2)][_0x3149be(0x183)](_0x590dea[_0x3149be(0x1d0)])[_0x3149be(0x204)](_0x590dea[_0x3149be(0x298)]);_0x590dea[_0x3149be(0x271)][_0x3149be(0x250)](_0x544b86=>_0x3d5119[_0x3149be(0x293)](_0x544b86,_0x3149be(0x26c))),this[_0x3149be(0x2b8)][_0x3149be(0x2e7)](_0x2076a3),this[_0x3149be(0x2b8)][_0x3149be(0x2e6)](_0x19715d,_0x590dea);});}async[_0x2dfd08(0x1e0)](_0x39cf64){const _0x9294d6=_0x2dfd08;this[_0x9294d6(0x161)][_0x9294d6(0x2c9)][_0x9294d6(0x18c)](_0x9294d6(0x21e))&&this[_0x9294d6(0x161)][_0x9294d6(0x2c9)][_0x9294d6(0x168)](_0x9294d6(0x21e))[_0x9294d6(0x1e2)](),(this[_0x9294d6(0x161)][_0x9294d6(0x2c9)][_0x9294d6(0x168)](_0x4331f6)[_0x9294d6(0x232)][_0x9294d6(0x288)](_0x9294d6(0x19c)),this[_0x9294d6(0x1fe)][_0x9294d6(0x217)](_0x9294d6(0x239)),this[_0x9294d6(0x1fe)][_0x9294d6(0x26e)](!0x0),await this[_0x9294d6(0x259)]());try{await this[_0x9294d6(0x2c5)][_0x9294d6(0x2c1)](_0x39cf64)[_0x9294d6(0x26b)](),await this[_0x9294d6(0x1a9)](_0x39cf64),this[_0x9294d6(0x221)]('\x20'),await this[_0x9294d6(0x1a2)][_0x9294d6(0x1dc)](_0x39cf64,this[_0x9294d6(0x256)][_0x9294d6(0x20e)]),this[_0x9294d6(0x1a2)][_0x9294d6(0x18d)]()&&this[_0x9294d6(0x1a2)][_0x9294d6(0x186)](_0x20b84e(this[_0x9294d6(0x161)][_0x9294d6(0x176)],_0x9294d6(0x1db)));}catch(_0x4c3f48){this[_0x9294d6(0x1fe)][_0x9294d6(0x270)]({'errorMessage':_0x20b84e(this[_0x9294d6(0x161)][_0x9294d6(0x176)],_0x9294d6(0x166)),'id':_0x39cf64}),this[_0x9294d6(0x290)](new _0x3c44ac(_0x9294d6(0x172),this,{'error':_0x4c3f48}));}finally{this[_0x9294d6(0x1fe)][_0x9294d6(0x279)](),this[_0x9294d6(0x1fe)][_0x9294d6(0x217)](_0x9294d6(0x283)),this[_0x9294d6(0x1fe)][_0x9294d6(0x26e)](!0x1);}}async[_0x2dfd08(0x15f)](){const _0x129af7=_0x2dfd08,_0x4cb3ca=this[_0x129af7(0x2c5)][_0x129af7(0x2b3)](this[_0x129af7(0x2e5)](),{'limit':0x1,'sortBy':_0x129af7(0x2d5)});try{const _0x583bbe=await _0x4cb3ca[_0x129af7(0x1bf)]();return _0x583bbe[_0x129af7(0x277)]?_0x583bbe[0x0]['id']:_0x129af7(0x20f);}catch(_0x4765c5){return this[_0x129af7(0x1fe)][_0x129af7(0x270)]({'errorMessage':_0x20b84e(this[_0x129af7(0x161)][_0x129af7(0x176)],_0x129af7(0x166)),'id':_0x51db44()}),this[_0x129af7(0x290)](new _0x3c44ac(_0x129af7(0x2c2),this,{'error':_0x4765c5})),this[_0x129af7(0x1fe)][_0x129af7(0x26e)](!0x1),this[_0x129af7(0x1fe)][_0x129af7(0x1a5)](),null;}}[_0x2dfd08(0x1ba)](_0x223cef){const _0x244238=_0x2dfd08;this[_0x244238(0x1a2)]['id']===_0x223cef&&this[_0x244238(0x1a9)]();}async[_0x2dfd08(0x215)](){const _0x1f3fe1=_0x2dfd08,_0x51814b=this[_0x1f3fe1(0x256)][_0x1f3fe1(0x2b2)]();this[_0x1f3fe1(0x1a2)]?.[_0x1f3fe1(0x246)](_0x51814b),this[_0x1f3fe1(0x1a2)]?.[_0x1f3fe1(0x186)](_0x20b84e(this[_0x1f3fe1(0x161)][_0x1f3fe1(0x176)],_0x1f3fe1(0x1db)));}[_0x2dfd08(0x1a4)](){const _0x94216a=_0x2dfd08;this[_0x94216a(0x1a2)]?.[_0x94216a(0x1ef)]();}[_0x2dfd08(0x1cb)](){const _0x366a3c=_0x2dfd08;this[_0x366a3c(0x1fe)][_0x366a3c(0x1cb)]();}async[_0x2dfd08(0x2de)](){const _0x51046c=_0x2dfd08;await this[_0x51046c(0x1a9)]();}async[_0x2dfd08(0x2ac)]({message:_0x1c9c9a,attributes:_0x3ac620}){const _0xe2ecb1=_0x2dfd08;await this[_0xe2ecb1(0x29e)]({'userMessage':_0x1c9c9a,'attributes':_0x3ac620});}[_0x2dfd08(0x2e5)](){const _0x724796=_0x2dfd08,_0x37b2a9=this[_0x724796(0x161)][_0x724796(0x1f4)][_0x724796(0x168)](_0x724796(0x20d));if(!_0x37b2a9)throw new _0x3c44ac(_0x724796(0x16b),this);return _0x37b2a9;}async[_0x2dfd08(0x1a9)](_0x26117c){const _0x59faba=_0x2dfd08;try{this[_0x59faba(0x1fe)][_0x59faba(0x2e1)](),await this[_0x59faba(0x1f6)](_0x26117c);}catch(_0x14ee4d){this[_0x59faba(0x1fe)][_0x59faba(0x270)]({'errorMessage':_0x20b84e(this[_0x59faba(0x161)][_0x59faba(0x176)],_0x59faba(0x1b2)),'id':_0x26117c||_0x51db44()}),console[_0x59faba(0x24d)](_0x14ee4d),this[_0x59faba(0x1a2)]=void 0x0,this[_0x59faba(0x1fe)][_0x59faba(0x1a5)]();}}async[_0x2dfd08(0x1f6)](_0xf654b2){const _0x20ab39=_0x2dfd08;let _0x4e4e3b;this[_0x20ab39(0x161)][_0x20ab39(0x2c9)][_0x20ab39(0x18c)](_0x20ab39(0x21e))&&this[_0x20ab39(0x161)][_0x20ab39(0x2c9)][_0x20ab39(0x168)](_0x20ab39(0x21e))[_0x20ab39(0x1e2)](),_0xf654b2||!this[_0x20ab39(0x1a2)]?_0x4e4e3b=this[_0x20ab39(0x161)][_0x20ab39(0x1f4)][_0x20ab39(0x168)](_0x20ab39(0x1c2)):this[_0x20ab39(0x1fe)][_0x20ab39(0x23d)]&&(_0x4e4e3b=this[_0x20ab39(0x1a2)][_0x20ab39(0x23e)]['id']),await this[_0x20ab39(0x259)]();const _0x5a5948=this[_0x20ab39(0x2e5)](),_0x1c6702=_0xf654b2||_0x51db44();this[_0x20ab39(0x1a2)]=new _0x3b4bcc({'connector':this[_0x20ab39(0x2c5)],'chatModels':this[_0x20ab39(0x25a)],'selectedModelId':_0x4e4e3b,'conversationId':_0x1c6702,'group':_0x5a5948,'getEditor':()=>_0x3e1b46(this[_0x20ab39(0x161)])}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x242),(_0x3e6ec5,_0x2804aa)=>{const _0x5ef040=_0x20ab39;this[_0x5ef040(0x1fe)][_0x5ef040(0x20c)](_0x2804aa),this[_0x5ef040(0x1fe)][_0x5ef040(0x16c)](),this[_0x5ef040(0x1fe)][_0x5ef040(0x1ff)](),this[_0x5ef040(0x1fe)][_0x5ef040(0x247)](),_0xf654b2||(this[_0x5ef040(0x1fe)][_0x5ef040(0x26d)](),this[_0x5ef040(0x1a2)]?.[_0x5ef040(0x186)](_0x20b84e(this[_0x5ef040(0x161)][_0x5ef040(0x176)],_0x5ef040(0x1db))));}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x253),(_0x259e96,_0xc80748)=>{const _0x334016=_0x20ab39;this[_0x334016(0x1fe)][_0x334016(0x223)](_0xc80748[_0x334016(0x2a2)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1f9),(_0x43a563,_0x5b6e10)=>{const _0x1675a6=_0x20ab39;this[_0x1675a6(0x1fe)][_0x1675a6(0x22f)](_0x5b6e10);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x27f),()=>{const _0xb813bd=_0x20ab39,_0x39a7d5=this[_0xb813bd(0x1fe)][_0xb813bd(0x1d3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0xb813bd(0x1fe)][_0xb813bd(0x17c)](_0x39a7d5);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1b9),()=>{const _0x3c7ee9=_0x20ab39,_0x32a85a=this[_0x3c7ee9(0x1fe)][_0x3c7ee9(0x1d3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3c7ee9(0x1fe)][_0x3c7ee9(0x17c)](_0x32a85a);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1ed),(_0x191b4d,_0x442e01)=>{const _0x124a2b=_0x20ab39;this[_0x124a2b(0x1fe)][_0x124a2b(0x22b)](_0x442e01,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1a3),(_0x3cdd73,_0x5cd67c)=>{const _0xe82a16=_0x20ab39;this[_0xe82a16(0x1fe)][_0xe82a16(0x22b)](_0x5cd67c,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x209),()=>{const _0x42b3bc=_0x20ab39;this[_0x42b3bc(0x1fe)][_0x42b3bc(0x23b)]();}),this[_0x20ab39(0x1a2)][_0x20ab39(0x1cd)](_0x20ab39(0x197))['to'](this),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1ee),async()=>{const _0x3b8a2e=_0x20ab39;await this[_0x3b8a2e(0x1fe)][_0x3b8a2e(0x1ec)]();}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1d1),(_0x3f9507,_0x3faeae)=>{const _0x5c75c1=_0x20ab39;this[_0x5c75c1(0x1fe)][_0x5c75c1(0x296)](_0x3faeae['id']);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x167),(_0x57407d,_0x3b715c,_0x1faaa1)=>{const _0x4a37b3=_0x20ab39;this[_0x4a37b3(0x221)](_0x3b715c,_0x1faaa1);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x2d6),(_0x12b73a,_0x5f332d)=>{const _0x35351d=_0x20ab39;_0x35351d(0x297)===_0x5f332d[_0x35351d(0x263)]?this[_0x35351d(0x1fe)][_0x35351d(0x1e1)](_0x5f332d):this[_0x35351d(0x1fe)][_0x35351d(0x173)](_0x5f332d);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x185),async(_0x244794,_0x3e43cf)=>{const _0x3b5654=_0x20ab39;await this[_0x3b5654(0x24c)]({'reply':_0x3e43cf});}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x282),(_0x49ec0f,{reply:_0x413a5c,index:_0xe3f404,state:_0x549ad7})=>{const _0x49991a=_0x20ab39;this[_0x49991a(0x1fe)][_0x49991a(0x1c1)]({'id':_0x413a5c['id'],'index':_0xe3f404,'state':_0x549ad7}),this[_0x49991a(0x21b)]?.[_0x49991a(0x298)][_0x49991a(0x174)](_0x413a5c['id'])&&this[_0x49991a(0x21b)]?.[_0x49991a(0x1ce)]==_0xe3f404&&this[_0x49991a(0x258)]?.[_0x49991a(0x1de)](_0x549ad7);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x17e),(_0x25228c,_0x25a731)=>{const _0x3ebe7f=_0x20ab39;if(this[_0x3ebe7f(0x1fe)][_0x3ebe7f(0x16f)](_0x25a731[_0x3ebe7f(0x2df)],_0x25a731[_0x3ebe7f(0x28e)]),_0x3ebe7f(0x1ad)===_0x25a731[_0x3ebe7f(0x2df)][_0x3ebe7f(0x263)]){const _0x428f9a=[..._0x3e1b46(this[_0x3ebe7f(0x161)])[_0x3ebe7f(0x20a)][_0x3ebe7f(0x22c)][_0x3ebe7f(0x1ad)][_0x3ebe7f(0x28a)]()];this[_0x3ebe7f(0x256)][_0x3ebe7f(0x205)](_0x428f9a,_0x3ebe7f(0x1e5)+this[_0x3ebe7f(0x1a2)]?.['id']);}}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x1ab),(_0x30f2df,_0x279d05)=>{const _0x2736ab=_0x20ab39;this[_0x2736ab(0x1fe)][_0x2736ab(0x2da)](_0x279d05[_0x2736ab(0x2ba)]),_0x2736ab(0x268)==_0x279d05[_0x2736ab(0x2ba)]&&this[_0x2736ab(0x1a4)](),_0x2736ab(0x1ad)===_0x279d05[_0x2736ab(0x263)]&&this[_0x2736ab(0x256)][_0x2736ab(0x28c)](_0x2736ab(0x1e5)+this[_0x2736ab(0x1a2)]?.['id']);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x2af),(_0x231504,_0x49b809)=>{const _0x542f84=_0x20ab39;this[_0x542f84(0x1fe)][_0x542f84(0x1cc)](_0x49b809[_0x542f84(0x2df)][_0x542f84(0x2ba)],_0x49b809[_0x542f84(0x28e)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x178),(_0x4aa8b4,_0x219491)=>{const _0x117861=_0x20ab39;this[_0x117861(0x1fe)][_0x117861(0x286)](_0x219491[_0x117861(0x1b3)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x230),(_0x3b1de7,_0x167161)=>{const _0x491316=_0x20ab39;this[_0x491316(0x1fe)][_0x491316(0x222)](_0x167161[_0x491316(0x27c)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x220),(_0x7bcb12,_0x507da6)=>{const _0x381f38=_0x20ab39;this[_0x381f38(0x1fe)][_0x381f38(0x26f)](_0x507da6[_0x381f38(0x1c4)],_0x507da6[_0x381f38(0x294)],_0x507da6[_0x381f38(0x171)],_0x507da6[_0x381f38(0x276)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x245),(_0x24bfcc,_0x29bd5f)=>{const _0x332d94=_0x20ab39;this[_0x332d94(0x1fe)][_0x332d94(0x231)](_0x29bd5f[_0x332d94(0x1c4)],_0x29bd5f[_0x332d94(0x235)],_0x29bd5f[_0x332d94(0x254)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x17a),(_0x2d8ad7,_0x396101)=>{const _0x57b86d=_0x20ab39;this[_0x57b86d(0x1fe)][_0x57b86d(0x2a7)](_0x396101);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x2a5),async(_0x3f2cd2,_0x38816a)=>{const _0x313c79=_0x20ab39,_0x44f091=(await this[_0x313c79(0x25a)][_0x313c79(0x184)]())[_0x313c79(0x2b1)](_0x28de3a=>_0x28de3a['id']===_0x38816a[_0x313c79(0x23e)]['id'])||null;this[_0x313c79(0x1fe)][_0x313c79(0x162)](_0x44f091,_0x38816a[_0x313c79(0x1fc)]);}),this[_0x20ab39(0x1a2)]['on'](_0x20ab39(0x24d),(_0x6bc13a,{error:_0x585336,interactionId:_0xc79a13,fileName:_0x5b007f,url:_0x4dea2a,sourceId:_0xd314e,sourceLabel:_0x3f02f6})=>{const _0x371408=_0x20ab39,_0x474515=_0xc79a13?_0xc79a13+':'+_0x51db44():_0x51db44();_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x2d9))?this[_0x371408(0x1fe)][_0x371408(0x2bb)]({'staticMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x199)),'id':_0x474515}):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x2c2))||_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x2a9))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x1b2)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x27d))?this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x206),_0x5b007f),'id':_0x474515}):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x165))?this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x22a),_0x4dea2a),'id':_0x474515}):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x1cf))?this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x2e3)),'id':_0x474515}):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x200))?this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x17d)),'id':_0x474515}):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x299))?(_0xd314e&&this[_0x371408(0x1fe)][_0x371408(0x19b)](_0xd314e),this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x287),_0x3f02f6||_0x371408(0x294)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x2ad))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x1af)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x26a))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x2d1)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x21f))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x2b4)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x269))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x163)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x1b5))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x2d4)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):_0x585336[_0x371408(0x2be)][_0x371408(0x1d8)](_0x371408(0x18b))?(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x1ac)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336)):(this[_0x371408(0x1fe)][_0x371408(0x270)]({'errorMessage':_0x20b84e(this[_0x371408(0x161)][_0x371408(0x176)],_0x371408(0x1a1)),'id':_0x474515}),this[_0x371408(0x290)](_0x585336));}),await this[_0x20ab39(0x1a2)][_0x20ab39(0x1ca)](this[_0x20ab39(0x161)][_0x20ab39(0x1f4)][_0x20ab39(0x168)](_0x20ab39(0x228))),_0xf654b2||await this[_0x20ab39(0x1a2)][_0x20ab39(0x227)]();}async[_0x2dfd08(0x29e)]({userMessage:_0x510028,attributes:_0x2978f9}){const _0x3615b6=_0x2dfd08;if(!this[_0x3615b6(0x1a2)])throw new _0x3c44ac(_0x3615b6(0x19f));if(this[_0x3615b6(0x1a2)][_0x3615b6(0x190)]()){const _0x1447fd=await this[_0x3615b6(0x256)][_0x3615b6(0x2bd)]();await this[_0x3615b6(0x1a2)][_0x3615b6(0x1be)](_0x1447fd);}this[_0x3615b6(0x1a2)]['id']&&this[_0x3615b6(0x1a2)][_0x3615b6(0x1e9)]&&await this[_0x3615b6(0x1a2)][_0x3615b6(0x180)]({'userMessage':_0x510028,'attributes':_0x2978f9});}[_0x2dfd08(0x22d)](){const _0x572199=_0x2dfd08;console[_0x572199(0x188)](_0x572199(0x193));}[_0x2dfd08(0x248)](_0x518d96){const _0x4bdb94=_0x2dfd08;this[_0x4bdb94(0x1fe)][_0x4bdb94(0x191)](_0x518d96);}[_0x2dfd08(0x290)](_0x252500){const _0x46107d=_0x2dfd08;_0x6010c0(_0x252500[_0x46107d(0x2be)]);}[_0x2dfd08(0x202)](_0x3f90a4){const _0x8adf12=_0x2dfd08;this[_0x8adf12(0x1a2)]?.[_0x8adf12(0x15d)](_0x3f90a4);}[_0x2dfd08(0x251)](){const _0x56d70f=_0x2dfd08;this[_0x56d70f(0x1a2)]?.[_0x56d70f(0x17f)]();}[_0x2dfd08(0x187)](){const _0x5b67a0=_0x2dfd08;this[_0x5b67a0(0x1a2)]?.[_0x5b67a0(0x25e)]();}[_0x2dfd08(0x18a)](_0x1dec4c){const _0xff4d8f=_0x2dfd08,[_0x42117e,_0x207231]=_0x1dec4c[_0xff4d8f(0x2cd)](':'),_0x537aa8=this[_0xff4d8f(0x1a2)][_0xff4d8f(0x183)](_0x42117e),_0x59be75=_0x537aa8[_0xff4d8f(0x204)](_0x207231);return{'interaction':_0x537aa8,'reply':_0x59be75};}[_0x2dfd08(0x24b)](_0x12e57a,_0x284956=!0x1){const _0x366fd8=_0x2dfd08,_0x55d3bd=_0x3e1b46(this[_0x366fd8(0x161)]),_0x59df43={'target':_0x55d3bd[_0x366fd8(0x262)][_0x366fd8(0x232)][_0x366fd8(0x1eb)][_0x366fd8(0x208)](_0x55d3bd[_0x366fd8(0x262)][_0x366fd8(0x257)][_0x366fd8(0x2ce)](_0x12e57a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x284956};_0x284956&&(_0x59df43[_0x366fd8(0x24a)]=!0x0),_0x3a9d9b(_0x59df43);}[_0x2dfd08(0x221)](_0x554c66,_0x50789e=!0x1){const _0x3fea67=_0x2dfd08;this[_0x3fea67(0x1fe)][_0x3fea67(0x167)](_0x554c66||_0x20b84e(this[_0x3fea67(0x161)][_0x3fea67(0x176)],_0x3fea67(0x233)),_0x50789e);}async[_0x2dfd08(0x24c)]({reply:_0x1c3771,renderingStrategy:_0x3af327}){const _0x1a1f19=_0x2dfd08,{id:_0x6022b0,interactionId:_0x1a97e5,isDone:_0x561e20,type:_0x28ec11,parsedContent:_0x45baf3}=_0x1c3771,_0x44b368=_0x1a97e5+':'+_0x6022b0;if(_0x1a1f19(0x29a)===_0x28ec11){const _0x2af074=_0x1c3771[_0x1a1f19(0x25d)]({'showDiff':this[_0x1a1f19(0x1fe)][_0x1a1f19(0x2a3)]});await this[_0x1a1f19(0x1fe)][_0x1a1f19(0x160)]({'id':_0x44b368,'parts':_0x2af074,'renderingStrategy':_0x3af327,'isDone':_0x561e20});}else _0x1a1f19(0x297)===_0x28ec11&&await this[_0x1a1f19(0x1fe)][_0x1a1f19(0x207)]({'id':_0x44b368,'parsedContent':_0x45baf3,'renderingStrategy':_0x3af327,'isDone':_0x561e20});_0x561e20&&_0x1c3771[_0x1a1f19(0x15e)][_0x1a1f19(0x277)]>0x0&&this[_0x1a1f19(0x1fe)][_0x1a1f19(0x1b6)](_0x44b368,_0x1c3771[_0x1a1f19(0x15e)]);}async[_0x2dfd08(0x259)](){const _0x49f292=_0x2dfd08,_0x55d2f9=this[_0x49f292(0x1a2)]?.[_0x49f292(0x2c4)];_0x55d2f9&&(_0x55d2f9[_0x49f292(0x237)](),this[_0x49f292(0x1fe)][_0x49f292(0x2ae)](_0x55d2f9));}async[_0x2dfd08(0x198)](){const _0x1680a3=_0x2dfd08,_0x33b968=this[_0x1680a3(0x1a2)]?.[_0x1680a3(0x2c4)];if(_0x33b968){for await(const _0x3d0764 of _0x33b968[_0x1680a3(0x225)])await this[_0x1680a3(0x24c)]({'reply':_0x3d0764,'renderingStrategy':_0x1680a3(0x239)});}}[_0x2dfd08(0x24e)](_0x591606){const _0x1ea51c=_0x2dfd08,_0x28d5fb={'positiveCount':_0x591606[_0x1ea51c(0x2b7)][_0x1ea51c(0x2aa)](_0x3ad360=>_0x1ea51c(0x26c)===_0x3ad360[_0x1ea51c(0x19d)])[_0x1ea51c(0x277)],'totalCount':_0x591606[_0x1ea51c(0x2b7)][_0x1ea51c(0x277)],'modificationId':_0x591606['id']},_0x125a6f=this[_0x1ea51c(0x1a2)][_0x1ea51c(0x183)](_0x591606[_0x1ea51c(0x1d0)])[_0x1ea51c(0x1df)];_0x125a6f&&this[_0x1ea51c(0x2c5)][_0x1ea51c(0x192)](this[_0x1ea51c(0x1a2)]['id'],_0x125a6f,_0x28d5fb);}[_0x2dfd08(0x2cf)](_0xd9f0fd){const _0x2faa50=_0x2dfd08;let _0x568bf7=null,_0x4bb2fc=null;this['on'](_0x2faa50(0x197),(_0x337ac2,_0x46c2fe,_0x458ec7)=>{const _0x1600b8=_0x2faa50;_0x458ec7['id']!==_0x568bf7&&(_0x568bf7=_0x458ec7['id'],_0x4bb2fc=this[_0x1600b8(0x2d2)](_0x458ec7)),_0xd9f0fd(_0x46c2fe,_0x4bb2fc);});}[_0x2dfd08(0x2d2)](_0x14a70d){const _0x2a56d5=_0x2dfd08,_0x274fe4=this[_0x2a56d5(0x1fe)],_0x4937bb=()=>{const _0x41fdc5=_0x2a56d5;_0x14a70d[_0x41fdc5(0x1bd)](),_0x14a70d[_0x41fdc5(0x27a)](),_0x274fe4[_0x41fdc5(0x179)]();},_0x4615be=()=>{const _0x566eba=_0x2a56d5;_0x14a70d[_0x566eba(0x1a0)]&&(_0x14a70d[_0x566eba(0x1a0)][_0x566eba(0x1d7)](),_0x14a70d[_0x566eba(0x1a0)]=void 0x0);};return{'insertTextReply':(_0x1e1d84,_0xf19928)=>{const _0x251705=_0x2a56d5;_0x4615be(),_0x4937bb();const _0x3ddead=_0x14a70d[_0x251705(0x1a0)]=_0x14a70d[_0x251705(0x291)]({'type':_0x251705(0x297),'interactionId':_0x14a70d['id'],'content':_0x1e1d84,'id':_0xf19928||_0x51db44()});return _0x4615be(),_0x3ddead;},'insertCustomElement':async(_0x142148,_0x194ca8)=>(_0x4615be(),_0x4937bb(),_0x274fe4[_0x2a56d5(0x24f)](_0x142148,_0x194ca8||_0x51db44())),'setLoadingMessage':_0x337808=>{const _0x3906a=_0x2a56d5;_0x274fe4[_0x3906a(0x17c)](_0x337808);},'clearLoadingMessage':()=>{const _0x324576=_0x2a56d5;_0x274fe4[_0x324576(0x179)]();}};}}
23
+ const _0x3cce95=_0x1c9c;(function(_0x4c5e9c,_0x5ccdf3){const _0x41e8d0=_0x1c9c,_0x146df7=_0x4c5e9c();while(!![]){try{const _0x21cae4=-parseInt(_0x41e8d0(0x239))/0x1*(parseInt(_0x41e8d0(0x12b))/0x2)+parseInt(_0x41e8d0(0x10c))/0x3+parseInt(_0x41e8d0(0x1e6))/0x4*(parseInt(_0x41e8d0(0x13f))/0x5)+parseInt(_0x41e8d0(0x1b8))/0x6+-parseInt(_0x41e8d0(0x17c))/0x7*(parseInt(_0x41e8d0(0x139))/0x8)+parseInt(_0x41e8d0(0x224))/0x9*(-parseInt(_0x41e8d0(0x1aa))/0xa)+parseInt(_0x41e8d0(0x110))/0xb;if(_0x21cae4===_0x5ccdf3)break;else _0x146df7['push'](_0x146df7['shift']());}catch(_0x430af1){_0x146df7['push'](_0x146df7['shift']());}}}(_0x5eae,0xb3361));import{ContextPlugin as _0x4a12a6,Editor as _0x361004}from'ckeditor5/src/core.js';import{BodyCollection as _0x1f0861}from'ckeditor5/src/ui.js';function _0x1c9c(_0xab44d8,_0x11ebfe){const _0x5eae82=_0x5eae();return _0x1c9c=function(_0x1c9c1f,_0x5f1089){_0x1c9c1f=_0x1c9c1f-0x103;let _0xeeb32d=_0x5eae82[_0x1c9c1f];return _0xeeb32d;},_0x1c9c(_0xab44d8,_0x11ebfe);}import{CKEditorError as _0x398f1a,logError as _0x3d4d3a,scrollViewportToShowTarget as _0x13999e,uid as _0x3fcf59}from'ckeditor5/src/utils.js';import{AIConnector as _0x310078}from'../aicore/aiconnector.js';import{AITabs as _0x28a85c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x54780a}from'./model/aichatconversation.js';import{getTranslation as _0x23957a}from'../aicore/utils/common-translations.js';import{AIModels as _0x121d67}from'../aicore/model/aimodels.js';function _0x5eae(){const _0x14a1be=['next','resourceStateChanged','addFilesToContext','contextSent','301572AeMcXi','changeGroups','getChild','ai-chat-context-file-too-large','isStarted','_flushLastInteractionUI','activateTab','_getPresentableSiblingContentPartIndex','addFeedItemError','text','_getLastCreatedConversationId','ai-chat-controller-no-active-conversation','aiChatBalloon','data-id','partIndex','ai-conversation-','createPositionFromPath','fetchConversations','setConversationTitle','updateFeedItemAIReplySuggestionPartState','getAll','resource','activeConversation','destroy','AI_BALLOON_HEADER_TITLE','pluginName','ai-chat-url-upload-failed','has','startsWith','reasoningStarted','root','showNext','ai-chat-context-unsupported-type','getOperations','addUrlToContext','TrackChanges','_aiConnector','addOperation','createRange','streaming','hasChanges','startConversation','clearConversationContextUI','getDiff','mapper','_setIsMaximized','$graveyard','addSelectionToChatContext','setChangeGroupState','bind','ai-chat-context-invalid-data','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','_aiChatBalloonShowDiff','howMany','isDisabled','executeCustomItemCallback','focusPromptInput','new','removed','resize','_toggleReasoning','ai-request-aborted','1762281KHSwQs','nextSibling','_currentPreviewedChangeGroup','ai-chat-source-resources-load-failed','isCurrentDocumentInConversation','updateResourceState','DocumentCompare','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_scrollToSuggestionRange','getGroupId','setSelectedModel','toString','find','message','model','selectedModel','ai.chat.initialConversation','alignToTop','commands','setState','enableControls','408522aKTnsX','sessionId','setContextItemLoading','Liked\x20response','sourceId','disableControls','addFeedItemStaticMessage','query','resizeTabs','toggleSuggestionDisplayMode','includes','ai-chat-missing-channel-id','uploadProgressChanged','_integrateEditor','reasoningFinished','like','options','removeFromContext','createConversation','getAttribute','toolDataReceived','conversationInitialized','_startConversationSafely','add','ai-no-track-changes','load','AIChatUI','interactionStarted','modification','resetReasoningState','_handleUIUserMessage','createReply','document','webSearchStarted','_updateRatings','applyOperation','log','getPath','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai-chat-conversation-init-failed','_aiChatUi','documentContextContent','selectModel','updateCapabilities','parse','AI_CHAT_UNABLE_TO_START_CONVERSATION','uid','closeSourceResourceBalloon','findIndex','config','_batchToChanges','start','ai-chat-conversation-not-found','AI_CHAT_CONTEXT_INVALID_DATA','getConversations','attachToDom','updateFeedItemAIReplyContent','setIsMaximized','contextItemRemoved','resizedTabs','setModel','close','AIConnector','clearPendingContextUI','resourceId','AI_CHAT_INVALID_REQUEST','applySuggestion','unshift','lastInteraction','currentReply','open','indexes','ai-chat-resource-load-failed','updateConversationTitle','_applySuggestion','capabilitiesUpdated','set','replyCreated','selection','rejectSuggestion','sources','AI_CHAT_ABORTED_MESSAGE','isUploadInProgress','index','AI_CHAT_UNTITLED_CONVERSATION','_logError','getDocumentData','contextItemAdded','AIEditing','ready','resetMessageInput','replies','data','interactionDestroyed','end','_stopLastInteraction','3220851cufQlT','dialogClosed','isOfficialPlugin','showDiff','18192273iYPTzL','getFirstRange','batch','removeSelectionFromChatContext','done','sendUserMessage','from','undo','startAutoScroll','webSearchFinished','getChildren','fetchConversation','_openBalloonFor','addFeedItemAISuggestion','ai.models.defaultModelId','marker','interactionFinished','_getUserPresentableContentPartDocumentRange','_registerToolDataCallback','loadConversation','removeSelectionFromContext','addResourceToContext','ai-chat-context-unsupported-file-type','handleRemovedConversation','showFakeVisualSelection','Disliked\x20response','Showing\x20conversation\x20history...','2eRVSyi','addSelectionToContext','current-document','rootName','ai.models','isDocumentOperation','version','isLoading','error','updateFeedItemAIReplySuggestionContent','contextItemLoadingEnded','dislike','setLoadingMessage','delete','1720mjzHST','accepted','domConverter','path','get','_getDocumentRangeForReplyChanges','5wzljaI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_getAIChatInteractionAPI','ai.chat.context','replyChangeGroupStateUpdated','viewRangeToDom','sourceResourcesLoaded','resetConversationTitle','history','_removeFromContext','maxOffset','_aiChatModels','init','isInContext','setFeedItemAIReplySuggestionPartActive','addCurrentDocumentToChatContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','locale','children','addDocumentToContext','setFeedItemRenderingStrategy','requires','toggleWebSearch','addFeedInteractionHeader','filter','resources','resetWebSearchState','getInteraction','setAddContextOptions','_updateReplyContent','mouseOverSuggestion','getRoot','AI_CHAT_CONTEXT_FILE_TOO_LARGE','isCurrentDocumentInContext','isModelAvailable','slice','Undo','getTransformedByOperation','getContentParts','finishInteraction','lastCreated','contextItem','source','upsertAIChatRating','detachFromDom','ai-chat-context-form-data-size-limits-exceeded','addContextOptionsChanged','showChangeInText','setConversationContext','_handleStartConversation','getInteractionAndReplyById','addContextItem','outdated','stop','plugins','collaboration.channelId','getSelectionText','ai-chat-context-file-too-many-pages','indexOf','contextItems','cloneNode','34391hwhtFR','baseVersion','setIsUploadInProgress','insertSuggestion','AITabs','areActionsDisabled','updateContent','handleUserInteraction','sourcePosition','forEach','TrackChangesEditing','context','remove','_toggleWebSearch','removeFeedInteraction','getDocumentContext','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isPremiumPlugin','interactionCreated','editing','changes','pending','startInteraction','type','ai-chat-file-upload-failed','node','createdAt','_insertSuggestion','getRanges','AIChatBalloon','sendMessage','updateFeedItemAIReplySources','stopInteraction','toViewRange','push','showPrevious','AI_CHAT_RESOURCE_LOAD_FAILED','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','map','_aiEditing','addCurrentDocumentToContext','editors','_applyOperationsAsSuggestions','_aiChatBalloon','length','removeContextItem','70QjWyHw','_createFromRanges','AI_CHAT_GENERIC_ERROR','previous','revert','replyContentUpdated','prepareLoadingMessage','ai-chat-invalid-request','addFeedItemCustomElement','toggleLoadingSkeleton','populateSourceResourceBalloon','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-chat-conversation-start-failed','anchorId','4600056tRdZRi','_rejectSuggestion','rejected','AIChatController','static','addFeedItemAIReply','clearLoadingMessage','callback','uiId','mouseLeaveSuggestion','chat','loadSourceResources','ai-chat-controller-mouse-over','interactionId','getReply','main','getChildAtOffset','change','addFileToContext','updateCurrentDocumentInContext','_showConversationHistory','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','state','getConversation','createPositionAt','abortPromptStream','content','afterInit','modelSelected','addFeedItemUserMessage','view','messageId','redo','_bodyCollection','replyId','scrollFeedToSuggestion','hideFakeVisualSelection','delegate','listenTo','toggleReasoning','split','range'];_0x5eae=function(){return _0x14a1be;};return _0x5eae();}import{getEditorFromContext as _0x241765}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x42c306,DATA_ID_MODEL_ATTRIBUTE as _0x6a99f2}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4eb078,getOperationsFromReply as _0x4c5b79}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x22ea41,getMinimalSelection as _0x33a107}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x297fb4,_DetachOperation as _0xff320a}from'ckeditor5/src/engine.js';import{findOne as _0x360782,getAttribute as _0x14e8ec,serialize as _0x4ddbdf,Document as _0x24132c,findByAttribute as _0x511799}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x4a12a6{[_0x3cce95(0x1a3)];[_0x3cce95(0x20a)];[_0x3cce95(0x261)];[_0x3cce95(0x14a)];[_0x3cce95(0x1a7)];[_0x3cce95(0x26b)]=new Map();[_0x3cce95(0x226)]=null;[_0x3cce95(0x1d9)];static get[_0x3cce95(0x154)](){return[_0x310078,_0x42c306];}static get[_0x3cce95(0x1ff)](){const _0x4f139a=_0x3cce95;return _0x4f139a(0x1bb);}static get[_0x3cce95(0x10e)](){return!0x0;}static get[_0x3cce95(0x18d)](){return!0x0;}[_0x3cce95(0x14b)](){const _0x32d82d=_0x3cce95;this[_0x32d82d(0x1d9)]=new _0x1f0861(this[_0x32d82d(0x187)][_0x32d82d(0x150)]),this[_0x32d82d(0x1d9)][_0x32d82d(0x270)](),this[_0x32d82d(0x20a)]=this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x13d)](_0x32d82d(0x277)),this[_0x32d82d(0x261)]=this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x13d)](_0x32d82d(0x253)),this[_0x32d82d(0x1a3)]=this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x13d)](_0x32d82d(0x104)),this[_0x32d82d(0x14a)]=new _0x121d67({'connector':this[_0x32d82d(0x20a)],'config':this[_0x32d82d(0x187)][_0x32d82d(0x26a)][_0x32d82d(0x13d)](_0x32d82d(0x12f)),'locale':this[_0x32d82d(0x187)][_0x32d82d(0x150)]});const _0x32da2d=this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x13d)](_0x32d82d(0x180));this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x20f),()=>{const _0x5eedcf=_0x32d82d;this[_0x5eedcf(0x24f)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x115),(_0x2e510d,_0x2386f0)=>{const _0x56ce28=_0x32d82d;this[_0x56ce28(0x257)]({'userMessage':_0x2386f0});}),this[_0x32d82d(0x1de)](_0x32da2d,_0x32d82d(0x274),(_0x4542cd,_0x412571)=>{const _0x3b6367=_0x32d82d;this[_0x3b6367(0x213)](_0x412571);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x241),()=>{const _0x3c44df=_0x32d82d;_0x32da2d[_0x3c44df(0x221)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1d1),async()=>{const _0x49dcf9=_0x32d82d;await this[_0x49dcf9(0x10b)](),await this[_0x49dcf9(0x1eb)](),this[_0x49dcf9(0x113)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x152),()=>{const _0x438cda=_0x32d82d;this[_0x438cda(0x14e)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1ca),(_0x17cfd9,_0x139caf)=>{const _0x5a8e60=_0x32d82d;this[_0x5a8e60(0x1fc)]?.[_0x5a8e60(0x1e4)](Array[_0x5a8e60(0x116)](_0x139caf));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x208),(_0x1ced21,_0x2a705f)=>{const _0x42ab89=_0x32d82d;this[_0x42ab89(0x1fc)]?.[_0x42ab89(0x208)](_0x2a705f);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x21d),(_0x553d8d,_0x3a6e00)=>{const _0x57c1c=_0x32d82d;_0x3a6e00[_0x57c1c(0x1bf)](this[_0x57c1c(0x187)]);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x125),(_0x115728,_0x286603)=>{const _0x79ec87=_0x32d82d;this[_0x79ec87(0x1fc)]?.[_0x79ec87(0x125)](_0x286603[_0x79ec87(0x169)],_0x286603[_0x79ec87(0x1fb)]);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1a9),(_0x3b4890,_0x3afe6d)=>{const _0xc38241=_0x32d82d;this[_0xc38241(0x148)](_0x3afe6d);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1c3),(_0x41f5eb,_0x5251b5)=>{const _0x608d64=_0x32d82d;this[_0x608d64(0x1fc)]?.[_0x608d64(0x1c3)](_0x5251b5[_0x608d64(0x23d)],_0x5251b5[_0x608d64(0x240)],_0x5251b5[_0x608d64(0x267)]);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x155),()=>{const _0x5e8aaf=_0x32d82d;this[_0x5e8aaf(0x189)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1df),()=>{const _0x3f6689=_0x32d82d;this[_0x3f6689(0x222)]();}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x263),(_0x4bb7b8,_0x3208af)=>{const _0x302579=_0x32d82d;this[_0x302579(0x1fc)]?.[_0x302579(0x275)](_0x3208af);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x248),(_0x45e3cc,{replyId:_0x241d44})=>{const _0x406c22=_0x32d82d;console[_0x406c22(0x25d)](_0x406c22(0x23c),_0x241d44);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x136),(_0x58c60d,{replyId:_0x139280})=>{const _0x4e2fd5=_0x32d82d;console[_0x4e2fd5(0x25d)](_0x4e2fd5(0x129),_0x139280);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x17f),(_0x13a70d,_0x34da60)=>{const _0x367172=_0x32d82d;this[_0x367172(0x197)](_0x34da60);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x16e),(_0x5dcc7d,{replyId:_0x5ddc21,partIndex:_0x4cf18a})=>{const _0x4a1628=_0x32d82d;this[_0x4a1628(0x21a)]=this[_0x4a1628(0x261)][_0x4a1628(0x10f)],this[_0x4a1628(0x11c)](_0x5ddc21,_0x4cf18a);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x15d),(_0x441382,{replyId:_0x354047,partIndex:_0x4659e4})=>{const _0x2451aa=_0x32d82d,_0x586b95=this[_0x2451aa(0x13e)](_0x354047,_0x4659e4);_0x586b95&&_0x2451aa(0x214)!=_0x586b95[_0x2451aa(0x1e1)][_0x2451aa(0x204)][_0x2451aa(0x12e)]&&this[_0x2451aa(0x1a3)][_0x2451aa(0x128)]([_0x586b95[_0x2451aa(0x1e1)]],_0x2451aa(0x1c4));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x1c1),()=>{const _0x4fbbbd=_0x32d82d;this[_0x4fbbbd(0x1a3)][_0x4fbbbd(0x1dc)](_0x4fbbbd(0x1c4));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x27b),(_0x50205f,_0x58388e)=>{const _0x2c159f=_0x32d82d;this[_0x2c159f(0x1a3)][_0x2c159f(0x1dc)](_0x2c159f(0x1c4)),this[_0x2c159f(0x283)](_0x58388e);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x242),async(_0x598fdf,{replyId:_0x4f757e,showDiff:_0x339d15})=>{const _0x4b6c6a=_0x32d82d,{reply:_0x57254d}=this[_0x4b6c6a(0x171)](_0x4f757e),_0x566ec1=_0x57254d[_0x4b6c6a(0x165)]({'showDiff':_0x339d15});await this[_0x4b6c6a(0x261)][_0x4b6c6a(0x134)]({'id':_0x57254d['id'],'parts':_0x566ec1,'renderingStrategy':_0x4b6c6a(0x1bc)});}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x261)],_0x32d82d(0x288),(_0x5937c4,{replyId:_0x52fe85,partIndex:_0x5ada67})=>{const _0x223f7f=_0x32d82d;this[_0x223f7f(0x1b9)]({'replyId':_0x52fe85,'partIndex':_0x5ada67}),this[_0x223f7f(0x1a3)][_0x223f7f(0x1dc)](_0x223f7f(0x1c4));}),this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x201)](_0x32d82d(0x199))&&(this[_0x32d82d(0x1a7)]=this[_0x32d82d(0x187)][_0x32d82d(0x175)][_0x32d82d(0x13d)](_0x32d82d(0x199)),this[_0x32d82d(0x285)](_0x32d82d(0x21a),!0x1),this[_0x32d82d(0x1a7)][_0x32d82d(0x217)](_0x32d82d(0x10f))['to'](this,_0x32d82d(0x21a)),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x242),()=>{const _0x703107=_0x32d82d,{replyId:_0x434c79,partIndex:_0x3a1fe1}=this[_0x703107(0x226)];this[_0x703107(0x21a)]=!this[_0x703107(0x21a)];const {reply:_0x4d2939}=this[_0x703107(0x171)](_0x434c79),_0x29ce1e=_0x4d2939[_0x703107(0x165)]({'showDiff':this[_0x703107(0x21a)],'groupIndex':_0x3a1fe1});this[_0x703107(0x1a7)][_0x703107(0x182)]({'part':_0x29ce1e[0x0],'renderingStrategy':_0x703107(0x1bc),'keepErrors':!0x0});}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x27b),()=>{const _0x5b4db1=_0x32d82d,{replyId:_0x44cec3,partIndex:_0x425fc1}=this[_0x5b4db1(0x226)];this[_0x5b4db1(0x283)]({'replyId':_0x44cec3,'partIndex':_0x425fc1}),this[_0x5b4db1(0x1a7)][_0x5b4db1(0x237)](_0x5b4db1(0x13a));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x17f),()=>{const _0x36c5ba=_0x32d82d,{replyId:_0x5a0e0c,partIndex:_0x4504ca}=this[_0x36c5ba(0x226)];this[_0x36c5ba(0x197)]({'replyId':_0x5a0e0c,'partIndex':_0x4504ca}),this[_0x36c5ba(0x1a7)][_0x36c5ba(0x237)](_0x36c5ba(0x13a));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x288),()=>{const _0x4727ef=_0x32d82d,{replyId:_0x397e55,partIndex:_0x42aa23}=this[_0x4727ef(0x226)];this[_0x4727ef(0x1b9)]({'replyId':_0x397e55,'partIndex':_0x42aa23}),this[_0x4727ef(0x1a7)][_0x4727ef(0x237)](_0x4727ef(0x1ba));}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x205),()=>{const _0x2e022a=_0x32d82d,{replyId:_0x4d6320,partIndex:_0x399359}=this[_0x2e022a(0x226)],_0x55666b=this[_0x2e022a(0x1ed)](_0x4d6320,_0x399359,_0x2e022a(0x1e2));null!==_0x55666b&&this[_0x2e022a(0x11c)](_0x4d6320,_0x55666b);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x19f),()=>{const _0x39cd45=_0x32d82d,{replyId:_0x2f3dff,partIndex:_0x12022b}=this[_0x39cd45(0x226)],_0x559262=this[_0x39cd45(0x1ed)](_0x2f3dff,_0x12022b,_0x39cd45(0x1ad));null!==_0x559262&&this[_0x39cd45(0x11c)](_0x2f3dff,_0x559262);}),this[_0x32d82d(0x1de)](this[_0x32d82d(0x1a7)],_0x32d82d(0x10d),(_0x2defd6,{id:_0xd02006})=>{const _0x13d79c=_0x32d82d;if(_0x13d79c(0x1f2)!==_0xd02006)return;const {replyId:_0x107892,partIndex:_0x264e18}=this[_0x13d79c(0x226)];this[_0x13d79c(0x226)]=null,this[_0x13d79c(0x261)][_0x13d79c(0x14d)]({'id':_0x107892,'index':_0x264e18,'isActive':!0x1});}));}async[_0x3cce95(0x1d3)](){const _0x4b3cca=_0x3cce95;this[_0x4b3cca(0x187)]instanceof _0x361004?this[_0x4b3cca(0x246)](this[_0x4b3cca(0x187)]):this[_0x4b3cca(0x1de)](this[_0x4b3cca(0x187)][_0x4b3cca(0x1a5)],_0x4b3cca(0x250),(_0x12a40e,_0x22fbc4)=>{const _0x202387=_0x4b3cca;_0x22fbc4['on'](_0x202387(0x105),()=>{const _0x810058=_0x202387;this[_0x810058(0x246)](_0x22fbc4);});});const _0x4bf970=this[_0x4b3cca(0x187)][_0x4b3cca(0x26a)][_0x4b3cca(0x13d)](_0x4b3cca(0x234));let _0x40fb75=_0x4bf970;if(_0x4b3cca(0x167)!=_0x4bf970||(_0x40fb75=await this[_0x4b3cca(0x1f0)](),_0x40fb75))return _0x4b3cca(0x21f)==_0x40fb75?this[_0x4b3cca(0x24f)]():this[_0x4b3cca(0x123)](_0x40fb75);}async[_0x3cce95(0x1fd)](){const _0x57b217=_0x3cce95;return await this[_0x57b217(0x10b)](),this[_0x57b217(0x1d9)][_0x57b217(0x16b)](),super[_0x57b217(0x1fd)]();}[_0x3cce95(0x197)](_0xfe5476){const _0x354acb=_0x3cce95,_0x16b23a=_0x241765(this[_0x354acb(0x187)]);if(!_0x16b23a[_0x354acb(0x175)][_0x354acb(0x201)](_0x354acb(0x209)))throw new _0x398f1a(_0x354acb(0x251),null);const _0x164bcd=this[_0x354acb(0x187)][_0x354acb(0x175)][_0x354acb(0x13d)](_0x354acb(0x22a)),{reply:_0x1bdae4,interaction:_0x31cce4}=this[_0x354acb(0x171)](_0xfe5476[_0x354acb(0x1da)]),_0x18e2d0=this[_0x354acb(0x13e)](_0xfe5476[_0x354acb(0x1da)],_0xfe5476[_0x354acb(0x1f4)]),_0x1347c2=void 0x0!==_0xfe5476[_0x354acb(0x1f4)]?[_0x1bdae4[_0x354acb(0x1e7)][_0xfe5476[_0x354acb(0x1f4)]]]:_0x1bdae4[_0x354acb(0x1e7)][_0x354acb(0x157)](_0x2d5322=>_0x354acb(0x191)==_0x2d5322[_0x354acb(0x1ce)]),_0x487c3c=_0x1347c2[_0x354acb(0x1a2)](_0x39ea62=>_0x1bdae4[_0x354acb(0x1e7)][_0x354acb(0x179)](_0x39ea62));if(!_0x18e2d0||_0x354acb(0x214)==_0x18e2d0[_0x354acb(0x1e1)][_0x354acb(0x204)][_0x354acb(0x12e)])return void _0x487c3c[_0x354acb(0x185)](_0x551e89=>_0x1bdae4[_0x354acb(0x216)](_0x551e89,_0x354acb(0x173)));_0x487c3c[_0x354acb(0x185)](_0x1ea18d=>_0x1bdae4[_0x354acb(0x216)](_0x1ea18d,_0x354acb(0x13a)));const _0x4c9aea=_0x4c5b79({'editor':_0x16b23a,'reply':_0x1bdae4,'interaction':_0x31cce4,'groups':_0x1347c2,'transform':!0x0,'documentCompare':_0x164bcd,'documentCompareOptions':{'anchor':_0x354acb(0x1c7),'markDeletions':!0x0}});let _0x4acc25;_0x18e2d0&&this[_0x354acb(0x22c)](_0x18e2d0[_0x354acb(0x1e1)]),_0x16b23a[_0x354acb(0x232)][_0x354acb(0x1c9)](_0x3952ce=>{const _0x488269=_0x354acb;_0x4acc25=_0x3952ce[_0x488269(0x112)],_0x16b23a[_0x488269(0x175)][_0x488269(0x13d)](_0x488269(0x186))[_0x488269(0x1a6)](_0x4c9aea),this[_0x488269(0x1a3)][_0x488269(0x1dc)](_0x488269(0x1c4));}),this[_0x354acb(0x26b)][_0x354acb(0x285)](_0x4acc25,{'interactionId':_0x31cce4['id'],'replyId':_0x1bdae4['id'],'indexes':_0x487c3c[_0x354acb(0x162)]()}),this[_0x354acb(0x25b)](_0x1bdae4);}[_0x3cce95(0x283)](_0xec68cf){const _0x124164=_0x3cce95,_0xe1a8c9=_0x241765(this[_0x124164(0x187)]),_0x233422=this[_0x124164(0x187)][_0x124164(0x175)][_0x124164(0x13d)](_0x42c306),{reply:_0x42216e,interaction:_0x4b39a3}=this[_0x124164(0x171)](_0xec68cf[_0x124164(0x1da)]),_0x36cdf2=this[_0x124164(0x13e)](_0xec68cf[_0x124164(0x1da)],_0xec68cf[_0x124164(0x1f4)]),_0x290a3a=void 0x0!==_0xec68cf[_0x124164(0x1f4)]?[_0x42216e[_0x124164(0x1e7)][_0xec68cf[_0x124164(0x1f4)]]]:_0x42216e[_0x124164(0x1e7)][_0x124164(0x157)](_0x263c8e=>_0x124164(0x191)==_0x263c8e[_0x124164(0x1ce)]),_0x5635f9=_0x290a3a[_0x124164(0x1a2)](_0x538da8=>_0x42216e[_0x124164(0x1e7)][_0x124164(0x179)](_0x538da8));if(!_0x36cdf2||_0x124164(0x214)==_0x36cdf2[_0x124164(0x1e1)][_0x124164(0x204)][_0x124164(0x12e)])return void _0x5635f9[_0x124164(0x185)](_0x4d826d=>_0x42216e[_0x124164(0x216)](_0x4d826d,_0x124164(0x173)));_0x5635f9[_0x124164(0x185)](_0x232146=>_0x42216e[_0x124164(0x216)](_0x232146,_0x124164(0x13a)));const _0x5968b4=_0x4c5b79({'editor':_0xe1a8c9,'reply':_0x42216e,'interaction':_0x4b39a3,'groups':_0x290a3a,'transform':!0x0,'documentCompare':_0x233422,'documentCompareOptions':{'anchor':_0x124164(0x1c7),'markDeletions':!0x1}});let _0x5bf1d1;_0x36cdf2&&this[_0x124164(0x22c)](_0x36cdf2[_0x124164(0x1e1)]),_0xe1a8c9[_0x124164(0x232)][_0x124164(0x1c9)](_0x520c57=>{const _0x3bba43=_0x124164;_0x5bf1d1=_0x520c57[_0x3bba43(0x112)];for(const _0x56dbeb of _0x5968b4)_0x56dbeb[_0x3bba43(0x17d)]=_0xe1a8c9[_0x3bba43(0x232)][_0x3bba43(0x259)][_0x3bba43(0x131)],_0x4eb078(_0xe1a8c9,_0x56dbeb),_0x520c57[_0x3bba43(0x112)][_0x3bba43(0x20b)](_0x56dbeb),_0xe1a8c9[_0x3bba43(0x232)][_0x3bba43(0x25c)](_0x56dbeb);}),this[_0x124164(0x26b)][_0x124164(0x285)](_0x5bf1d1,{'interactionId':_0x4b39a3['id'],'replyId':_0x42216e['id'],'indexes':_0x5635f9[_0x124164(0x162)]()}),this[_0x124164(0x25b)](_0x42216e);}[_0x3cce95(0x1b9)](_0x24e6a2){const _0x3ba71d=_0x3cce95,{reply:_0xb645f2}=this[_0x3ba71d(0x171)](_0x24e6a2[_0x3ba71d(0x1da)]);_0xb645f2[_0x3ba71d(0x216)](_0x24e6a2[_0x3ba71d(0x1f4)],_0x3ba71d(0x1ba));}[_0x3cce95(0x11c)](_0x4dae1d,_0x17bcc0){const _0x152b19=_0x3cce95;if(!this[_0x152b19(0x1a7)])return;const {reply:_0x25bc7e}=this[_0x152b19(0x171)](_0x4dae1d),_0x324317=_0x25bc7e[_0x152b19(0x165)]({'showDiff':this[_0x152b19(0x21a)]});let _0x544d82,_0x514797;if(void 0x0!==_0x17bcc0?(_0x514797=_0x324317[_0x152b19(0x230)](_0x2c04e1=>_0x2c04e1[_0x152b19(0x28c)]==_0x17bcc0),_0x544d82=_0x514797?.[_0x152b19(0x28c)]):(_0x514797=_0x324317[0x0],_0x544d82=_0x514797[_0x152b19(0x28c)]),this[_0x152b19(0x226)]?.[_0x152b19(0x1da)]==_0x4dae1d&&this[_0x152b19(0x226)]?.[_0x152b19(0x1f4)]==_0x544d82)return;const _0xb2f2d6=this[_0x152b19(0x121)](_0x4dae1d,_0x25bc7e,_0x514797);if(!_0xb2f2d6)return void this[_0x152b19(0x1a7)][_0x152b19(0x276)]();this[_0x152b19(0x226)]={'replyId':_0x4dae1d,'partIndex':_0x544d82},this[_0x152b19(0x22c)](_0xb2f2d6,!0x0);const _0x144b1d=this[_0x152b19(0x1ed)](_0x4dae1d,_0x544d82,_0x152b19(0x1e2));this[_0x152b19(0x1a7)][_0x152b19(0x182)]({'part':_0x514797,'renderingStrategy':_0x152b19(0x1bc)}),this[_0x152b19(0x1a7)][_0x152b19(0x27f)]({'index':_0x544d82,'title':_0x23957a(this[_0x152b19(0x187)][_0x152b19(0x150)],_0x152b19(0x1fe),(_0x544d82+0x1)[_0x152b19(0x22f)]()),'showRotator':null!==_0x144b1d,'ranges':[_0xb2f2d6],'areActionsDisabled':_0x25bc7e[_0x152b19(0x181)]}),this[_0x152b19(0x1a7)][_0x152b19(0x237)](_0x152b19(0x191)),this[_0x152b19(0x261)][_0x152b19(0x1db)](_0x4dae1d,_0x544d82),this[_0x152b19(0x261)][_0x152b19(0x14d)]({'id':_0x4dae1d,'index':_0x544d82,'isActive':!0x0});}[_0x3cce95(0x1ed)](_0x2d52fe,_0x3828c5,_0xb3aae5){const _0x29d273=_0x3cce95,{reply:_0xd174aa}=this[_0x29d273(0x171)](_0x2d52fe),_0x27ec5f=_0xd174aa[_0x29d273(0x165)]({'showDiff':this[_0x29d273(0x21a)]});if(0x1==_0x27ec5f[_0x29d273(0x1a8)])return null;const _0x1d90aa=_0x27ec5f[_0x29d273(0x269)](_0x439647=>_0x439647[_0x29d273(0x28c)]==_0x3828c5),_0x468f47=_0x29d273(0x1e2)==_0xb3aae5?0x1:-0x1;let _0x153fd6=_0x27ec5f['at']((_0x1d90aa+_0x468f47)%_0x27ec5f[_0x29d273(0x1a8)])[_0x29d273(0x28c)],_0x4eadd2=_0x27ec5f[_0x153fd6];for(;!this[_0x29d273(0x121)](_0x2d52fe,_0xd174aa,_0x4eadd2);){if(_0x153fd6=_0x27ec5f['at']((_0x153fd6+_0x468f47)%_0x27ec5f[_0x29d273(0x1a8)])[_0x29d273(0x28c)],_0x153fd6===_0x1d90aa)return null;_0x4eadd2=_0x27ec5f[_0x153fd6];}return _0x153fd6;}[_0x3cce95(0x121)](_0x109753,_0x47a5c1,_0x45b64b){const _0x411809=_0x3cce95,_0xc1801a=_0x47a5c1[_0x411809(0x1e7)];if(!_0x45b64b[_0x411809(0x20e)])return null;const _0xc9341d=_0xc1801a[_0x411809(0x230)](_0x3d5fe3=>_0x3d5fe3[_0x411809(0x28c)]==_0x45b64b[_0x411809(0x28c)]);if(_0x411809(0x191)!==_0xc9341d?.[_0x411809(0x1ce)])return null;const _0x3da7d4=this[_0x411809(0x13e)](_0x109753,_0x45b64b[_0x411809(0x28c)]);if(!_0x3da7d4)return null;const {range:_0x1ec045,currentIndex:_0x49607a}=_0x3da7d4;return _0x411809(0x214)==_0x1ec045[_0x411809(0x204)][_0x411809(0x12e)]?(_0x47a5c1[_0x411809(0x216)](_0x49607a,_0x411809(0x173)),null):_0x3da7d4[_0x411809(0x1e1)];}[_0x3cce95(0x13e)](_0x554f12,_0x36e30a){const _0x36ce0b=_0x3cce95,_0x3c16f6=_0x241765(this[_0x36ce0b(0x187)]),{reply:_0x3b1f35,interaction:_0x41ea5e}=this[_0x36ce0b(0x171)](_0x554f12),_0x20e9ff=_0x3b1f35[_0x36ce0b(0x1e7)][_0x36ce0b(0x157)](_0x205592=>_0x36ce0b(0x191)==_0x205592[_0x36ce0b(0x1ce)]),_0x2566cd=_0x20e9ff[_0x36ce0b(0x1a2)](_0x4fe384=>_0x3b1f35[_0x36ce0b(0x1e7)][_0x36ce0b(0x179)](_0x4fe384));void 0x0===_0x36e30a&&(_0x36e30a=_0x2566cd[0x0]);const _0x255b93=_0x2566cd[_0x36ce0b(0x179)](_0x36e30a);if(-0x1==_0x255b93)return null;const _0x3e34b7=_0x20e9ff[_0x255b93],_0x5616b0=new _0x24132c([]),_0x427dac=new _0x24132c([]);for(const _0x22e49a of _0x3e34b7[_0x36ce0b(0x190)])if(_0x36ce0b(0x220)!=_0x22e49a[_0x36ce0b(0x193)]&&_0x427dac[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x22e49a[_0x36ce0b(0x195)][_0x36ce0b(0x17b)](!0x0)),_0x36ce0b(0x21f)!=_0x22e49a[_0x36ce0b(0x193)]){const _0x31e8fc=_0x360782(_0x57fa2f=>_0x14e8ec(_0x57fa2f,_0x36ce0b(0x1f3))==_0x22e49a['id'],_0x3b1f35[_0x36ce0b(0x262)],!0x0);_0x5616b0[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x31e8fc[_0x36ce0b(0x17b)](!0x0));}if(0x0==_0x5616b0[_0x36ce0b(0x151)][_0x36ce0b(0x1a8)]){if(_0x3e34b7[_0x36ce0b(0x190)][0x0][_0x36ce0b(0x1b7)]){const _0x293fe4=_0x511799(_0x36ce0b(0x1f3),_0x3e34b7[_0x36ce0b(0x190)][0x0][_0x36ce0b(0x1b7)],_0x3b1f35[_0x36ce0b(0x262)]);_0x5616b0[_0x36ce0b(0x151)][_0x36ce0b(0x27c)](_0x293fe4[_0x36ce0b(0x17b)](!0x0)),_0x427dac[_0x36ce0b(0x151)][_0x36ce0b(0x27c)](_0x293fe4[_0x36ce0b(0x17b)](!0x0)),_0x293fe4[_0x36ce0b(0x225)]&&(_0x5616b0[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x293fe4[_0x36ce0b(0x225)][_0x36ce0b(0x17b)](!0x0)),_0x427dac[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x293fe4[_0x36ce0b(0x225)][_0x36ce0b(0x17b)](!0x0)));}else{const _0x4ac207=_0x3b1f35[_0x36ce0b(0x262)][_0x36ce0b(0x151)][0x0];if(!_0x4ac207)return null;_0x5616b0[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x4ac207[_0x36ce0b(0x17b)](!0x0)),_0x427dac[_0x36ce0b(0x151)][_0x36ce0b(0x19e)](_0x4ac207[_0x36ce0b(0x17b)](!0x0));}}const _0x4316f6=_0x41ea5e[_0x36ce0b(0x18b)](),_0x59de3d=_0x3c16f6[_0x36ce0b(0x108)][_0x36ce0b(0x265)](_0x4316f6[_0x36ce0b(0x1d2)]),_0x5e8869=_0x4ddbdf(_0x5616b0),_0x239d45=_0x3c16f6[_0x36ce0b(0x108)][_0x36ce0b(0x265)](_0x5e8869),_0x16a724=_0x3c16f6[_0x36ce0b(0x108)][_0x36ce0b(0x265)](_0x5e8869),_0x315182=_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1d0)](_0x239d45,0x0),_0x1a0574=_0x4ddbdf(_0x427dac),_0x117d5a={'anchor':_0x315182,'markDeletions':!0x1},_0x28b16e=_0x3c16f6[_0x36ce0b(0x175)][_0x36ce0b(0x13d)](_0x42c306)[_0x36ce0b(0x211)](_0x5e8869,_0x1a0574,_0x117d5a)[_0x36ce0b(0x207)]();if(!_0x28b16e[_0x36ce0b(0x1a8)])return null;_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1c9)](_0x17112e=>{const _0x5d571f=_0x36ce0b;for(const _0x2cb3c2 of _0x28b16e)if(_0x5d571f(0x188)==_0x2cb3c2[_0x5d571f(0x193)]){const _0x2e8ddd=_0x2cb3c2[_0x5d571f(0x184)],_0x210c6e=_0x2cb3c2[_0x5d571f(0x21b)],_0x108309=new _0xff320a(_0x2e8ddd,_0x210c6e);_0x17112e[_0x5d571f(0x112)][_0x5d571f(0x20b)](_0x108309),_0x3c16f6[_0x5d571f(0x232)][_0x5d571f(0x25c)](_0x108309);}else _0x5d571f(0x11f)!==_0x2cb3c2[_0x5d571f(0x193)]&&(_0x2cb3c2[_0x5d571f(0x17d)]=null,_0x2cb3c2[_0x5d571f(0x130)]=!0x1,_0x17112e[_0x5d571f(0x112)][_0x5d571f(0x20b)](_0x2cb3c2),_0x3c16f6[_0x5d571f(0x232)][_0x5d571f(0x25c)](_0x2cb3c2));});const _0x8ba002=_0x33a107(_0x3c16f6,_0x28b16e,_0x239d45);_0x22ea41(_0x3c16f6[_0x36ce0b(0x232)],_0x8ba002);const _0x2f780f=_0x8ba002[_0x36ce0b(0x111)]()[_0x36ce0b(0x26c)][_0x36ce0b(0x13c)][_0x36ce0b(0x162)](),_0x1f3ad2=_0x8ba002[_0x36ce0b(0x111)]()[_0x36ce0b(0x10a)][_0x36ce0b(0x13c)][_0x36ce0b(0x162)](),_0x489213=[];let _0x2e2810=_0x239d45,_0x3d4d01=_0x16a724;for(let _0x164598=0x0;_0x164598<_0x1f3ad2[_0x36ce0b(0x1a8)];_0x164598++){const _0x46662d=_0x2e2810[_0x36ce0b(0x149)]-_0x1f3ad2[_0x164598];_0x489213[_0x164598]=_0x3d4d01[_0x36ce0b(0x149)]-_0x46662d,_0x2e2810=_0x2e2810[_0x36ce0b(0x1c8)](_0x1f3ad2[_0x164598]),_0x3d4d01=_0x3d4d01[_0x36ce0b(0x1c8)](_0x489213[_0x164598]);}const _0x21de7c=_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x20c)](_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1f6)](_0x16a724,_0x2f780f),_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1f6)](_0x16a724,_0x489213)),_0x21f7d1=_0x16a724[_0x36ce0b(0x1e8)](0x0)[_0x36ce0b(0x24c)](_0x6a99f2),_0x17694c=Array[_0x36ce0b(0x116)](_0x59de3d[_0x36ce0b(0x11a)]())[_0x36ce0b(0x230)](_0x2dfb0e=>_0x2dfb0e[_0x36ce0b(0x24c)](_0x6a99f2)==_0x21f7d1)[_0x36ce0b(0x25e)](),_0x36b56f=_0x21de7c[_0x36ce0b(0x26c)][_0x36ce0b(0x13c)][_0x36ce0b(0x162)](),_0x3a535a=_0x21de7c[_0x36ce0b(0x10a)][_0x36ce0b(0x13c)][_0x36ce0b(0x162)]();_0x36b56f[0x0]=_0x17694c[0x0]+_0x36b56f[0x0],_0x3a535a[0x0]=_0x17694c[0x0]+_0x3a535a[0x0];let _0x20b625=_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x20c)](_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1f6)](_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x259)][_0x36ce0b(0x15e)](),_0x36b56f),_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x1f6)](_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x259)][_0x36ce0b(0x15e)](),_0x3a535a));const _0x36e265=_0x3c16f6[_0x36ce0b(0x232)][_0x36ce0b(0x259)][_0x36ce0b(0x147)][_0x36ce0b(0x207)](_0x4316f6[_0x36ce0b(0x131)]);for(const _0xb298c4 of _0x36e265)_0x20b625=_0x297fb4[_0x36ce0b(0x1ab)](_0x20b625[_0x36ce0b(0x164)](_0xb298c4));return{'range':_0x20b625,'currentIndex':_0x36e30a};}[_0x3cce95(0x246)](_0x35b8ab){const _0x27e677=_0x3cce95;if(!_0x35b8ab[_0x27e677(0x175)][_0x27e677(0x201)](_0x27e677(0x163)))return;const _0x59bc38=_0x35b8ab[_0x27e677(0x236)][_0x27e677(0x13d)](_0x27e677(0x117)),_0x3ffe7e=_0x35b8ab[_0x27e677(0x236)][_0x27e677(0x13d)](_0x27e677(0x1d8));this[_0x27e677(0x1de)](_0x59bc38,_0x27e677(0x1ae),(_0x509dd7,_0x522b83,_0x22368e)=>{const _0x101267=_0x27e677,_0x1d58e4=this[_0x101267(0x26b)][_0x101267(0x13d)](_0x522b83);if(!_0x1d58e4)return;const _0x4a1880=this[_0x101267(0x1fc)][_0x101267(0x15a)](_0x1d58e4[_0x101267(0x1c5)])[_0x101267(0x1c6)](_0x1d58e4[_0x101267(0x1da)]);_0x1d58e4[_0x101267(0x280)][_0x101267(0x185)](_0x1a479b=>_0x4a1880[_0x101267(0x216)](_0x1a479b,_0x101267(0x191))),this[_0x101267(0x26b)][_0x101267(0x138)](_0x522b83),this[_0x101267(0x26b)][_0x101267(0x285)](_0x22368e,_0x1d58e4);}),this[_0x27e677(0x1de)](_0x3ffe7e,_0x27e677(0x1ae),(_0xf5d312,_0x44f155,_0x2b753e)=>{const _0x118b26=_0x27e677,_0x467d36=this[_0x118b26(0x26b)][_0x118b26(0x13d)](_0x44f155);if(!_0x467d36)return;const _0x681452=this[_0x118b26(0x1fc)][_0x118b26(0x15a)](_0x467d36[_0x118b26(0x1c5)])[_0x118b26(0x1c6)](_0x467d36[_0x118b26(0x1da)]);_0x467d36[_0x118b26(0x280)][_0x118b26(0x185)](_0x518d57=>_0x681452[_0x118b26(0x216)](_0x518d57,_0x118b26(0x13a))),this[_0x118b26(0x26b)][_0x118b26(0x138)](_0x44f155),this[_0x118b26(0x26b)][_0x118b26(0x285)](_0x2b753e,_0x467d36);});}async[_0x3cce95(0x123)](_0x1af4e7){const _0x175877=_0x3cce95;this[_0x175877(0x187)][_0x175877(0x175)][_0x175877(0x201)](_0x175877(0x199))&&this[_0x175877(0x187)][_0x175877(0x175)][_0x175877(0x13d)](_0x175877(0x199))[_0x175877(0x276)](),(this[_0x175877(0x187)][_0x175877(0x175)][_0x175877(0x13d)](_0x28a85c)[_0x175877(0x1d6)][_0x175877(0x1ec)](_0x175877(0x1c2)),this[_0x175877(0x261)][_0x175877(0x153)](_0x175877(0x1bc)),this[_0x175877(0x261)][_0x175877(0x1b3)](!0x0),await this[_0x175877(0x10b)]());try{await this[_0x175877(0x20a)][_0x175877(0x11b)](_0x1af4e7)[_0x175877(0x1cf)](),await this[_0x175877(0x24f)](_0x1af4e7),this[_0x175877(0x282)]('\x20'),await this[_0x175877(0x1fc)][_0x175877(0x252)](_0x1af4e7,this[_0x175877(0x1a3)][_0x175877(0x23a)]),this[_0x175877(0x1fc)][_0x175877(0x228)]()&&this[_0x175877(0x14e)]();}catch(_0x280714){this[_0x175877(0x261)][_0x175877(0x1ee)]({'errorMessage':_0x23957a(this[_0x175877(0x187)][_0x175877(0x150)],_0x175877(0x1b5)),'id':_0x1af4e7}),this[_0x175877(0x28e)](new _0x398f1a(_0x175877(0x26d),this,{'error':_0x280714}));}finally{this[_0x175877(0x261)][_0x175877(0x118)](),this[_0x175877(0x261)][_0x175877(0x153)](_0x175877(0x20d)),this[_0x175877(0x261)][_0x175877(0x1b3)](!0x1);}}async[_0x3cce95(0x1f0)](){const _0x468534=_0x3cce95,_0x4aa4dc=this[_0x468534(0x20a)][_0x468534(0x1f7)](this[_0x468534(0x22d)](),{'limit':0x1,'sortBy':_0x468534(0x196)});try{const _0x35120f=await _0x4aa4dc[_0x468534(0x26f)]();return _0x35120f[_0x468534(0x1a8)]?_0x35120f[0x0]['id']:_0x468534(0x21f);}catch(_0x5525cf){return this[_0x468534(0x261)][_0x468534(0x1ee)]({'errorMessage':_0x23957a(this[_0x468534(0x187)][_0x468534(0x150)],_0x468534(0x1b5)),'id':_0x3fcf59()}),this[_0x468534(0x28e)](new _0x398f1a(_0x468534(0x260),this,{'error':_0x5525cf})),this[_0x468534(0x261)][_0x468534(0x1b3)](!0x1),this[_0x468534(0x261)][_0x468534(0x23e)](),null;}}[_0x3cce95(0x127)](_0x402c02){const _0x14ce0c=_0x3cce95;this[_0x14ce0c(0x1fc)]['id']===_0x402c02&&this[_0x14ce0c(0x24f)]();}[_0x3cce95(0x14e)](){const _0x47b1ab=_0x3cce95;this[_0x47b1ab(0x1fc)]?.[_0x47b1ab(0x1a4)](_0x23957a(this[_0x47b1ab(0x187)][_0x47b1ab(0x150)],_0x47b1ab(0x1cd)));}async[_0x3cce95(0x215)](){const _0xceaf7f=_0x3cce95,_0x53bef8=this[_0xceaf7f(0x1a3)][_0xceaf7f(0x177)]();this[_0xceaf7f(0x1fc)]?.[_0xceaf7f(0x12c)](_0x53bef8),this[_0xceaf7f(0x14e)]();}[_0x3cce95(0x113)](){const _0x3b83d2=_0x3cce95;this[_0x3b83d2(0x1fc)]?.[_0x3b83d2(0x124)]();}[_0x3cce95(0x21e)](){const _0x3d2730=_0x3cce95;this[_0x3d2730(0x261)][_0x3d2730(0x21e)]();}async[_0x3cce95(0x20f)](){const _0x2bc6ba=_0x3cce95;await this[_0x2bc6ba(0x24f)]();}async[_0x3cce95(0x19a)]({message:_0x3b58cf,attributes:_0x505f44}){const _0x4a7d1f=_0x3cce95;await this[_0x4a7d1f(0x257)]({'userMessage':_0x3b58cf,'attributes':_0x505f44});}[_0x3cce95(0x22d)](){const _0x2cd760=_0x3cce95,_0x2e4285=this[_0x2cd760(0x187)][_0x2cd760(0x26a)][_0x2cd760(0x13d)](_0x2cd760(0x176));if(!_0x2e4285)throw new _0x398f1a(_0x2cd760(0x244),this);return _0x2e4285;}async[_0x3cce95(0x24f)](_0x41d507){const _0x3570f2=_0x3cce95;try{this[_0x3570f2(0x261)][_0x3570f2(0x238)](),await this[_0x3570f2(0x170)](_0x41d507);}catch(_0x402f79){this[_0x3570f2(0x261)][_0x3570f2(0x1ee)]({'errorMessage':_0x23957a(this[_0x3570f2(0x187)][_0x3570f2(0x150)],_0x3570f2(0x266)),'id':_0x41d507||_0x3fcf59()}),console[_0x3570f2(0x133)](_0x402f79),this[_0x3570f2(0x1fc)]=void 0x0,this[_0x3570f2(0x261)][_0x3570f2(0x23e)]();}}async[_0x3cce95(0x170)](_0x241796){const _0xbb36fe=_0x3cce95;let _0x310e77;this[_0xbb36fe(0x187)][_0xbb36fe(0x175)][_0xbb36fe(0x201)](_0xbb36fe(0x199))&&this[_0xbb36fe(0x187)][_0xbb36fe(0x175)][_0xbb36fe(0x13d)](_0xbb36fe(0x199))[_0xbb36fe(0x276)](),_0x241796||!this[_0xbb36fe(0x1fc)]?_0x310e77=this[_0xbb36fe(0x187)][_0xbb36fe(0x26a)][_0xbb36fe(0x13d)](_0xbb36fe(0x11e)):this[_0xbb36fe(0x261)][_0xbb36fe(0x161)]&&(_0x310e77=this[_0xbb36fe(0x1fc)][_0xbb36fe(0x233)]['id']),await this[_0xbb36fe(0x10b)]();const _0x16c9f6=this[_0xbb36fe(0x22d)](),_0x1fa9de=_0x241796||_0x3fcf59();this[_0xbb36fe(0x1fc)]=new _0x54780a({'connector':this[_0xbb36fe(0x20a)],'chatModels':this[_0xbb36fe(0x14a)],'selectedModelId':_0x310e77,'conversationId':_0x1fa9de,'group':_0x16c9f6,'getEditor':()=>_0x241765(this[_0xbb36fe(0x187)]),'isFromHistory':!!_0x241796}),this[_0xbb36fe(0x1fc)][_0xbb36fe(0x1dd)](_0xbb36fe(0x24d),_0xbb36fe(0x254))['to'](this),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x24e),(_0x44cd4d,_0x1c8575)=>{const _0x54eb09=_0xbb36fe;this[_0x54eb09(0x261)][_0x54eb09(0x24b)](_0x1c8575),this[_0x54eb09(0x261)][_0x54eb09(0x106)](),this[_0x54eb09(0x261)][_0x54eb09(0x278)](),this[_0x54eb09(0x261)][_0x54eb09(0x210)](),_0x241796||(this[_0x54eb09(0x261)][_0x54eb09(0x146)](),this[_0x54eb09(0x14e)]());}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x245),(_0x4b4901,_0x4bcd4b)=>{const _0x17fbf6=_0xbb36fe;this[_0x17fbf6(0x261)][_0x17fbf6(0x17e)](_0x4bcd4b[_0x17fbf6(0x28b)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x18e),(_0x185780,_0x41e730)=>{const _0x30ea21=_0xbb36fe;this[_0x30ea21(0x261)][_0x30ea21(0x1d5)](_0x41e730);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x25a),()=>{const _0x345bbf=_0xbb36fe,_0x350438=this[_0x345bbf(0x261)][_0x345bbf(0x1b0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x345bbf(0x261)][_0x345bbf(0x137)](_0x350438);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x203),()=>{const _0x10b067=_0xbb36fe,_0x4f3eb0=this[_0x10b067(0x261)][_0x10b067(0x1b0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x10b067(0x261)][_0x10b067(0x137)](_0x4f3eb0);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x119),(_0x90962e,_0x1af0c1)=>{const _0x3a8cad=_0xbb36fe;this[_0x3a8cad(0x261)][_0x3a8cad(0x156)](_0x1af0c1,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x247),(_0x263b8c,_0x48b75e)=>{const _0x4fcc83=_0xbb36fe;this[_0x4fcc83(0x261)][_0x4fcc83(0x156)](_0x48b75e,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x254),()=>{const _0x41a95f=_0xbb36fe;this[_0x41a95f(0x261)][_0x41a95f(0x192)]();}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x120),async()=>{const _0x416e0b=_0xbb36fe;await this[_0x416e0b(0x261)][_0x416e0b(0x166)]();}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x109),(_0x127763,_0x42a85e)=>{const _0x40dd6e=_0xbb36fe;this[_0x40dd6e(0x261)][_0x40dd6e(0x18a)](_0x42a85e['id']);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x1f8),(_0x1642c2,_0x38b711,_0x1a9935)=>{const _0x50add7=_0xbb36fe;this[_0x50add7(0x282)](_0x38b711,_0x1a9935);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x286),(_0x3b3b91,_0x331cdc)=>{const _0x54d1e0=_0xbb36fe;_0x54d1e0(0x1ef)===_0x331cdc[_0x54d1e0(0x193)]?this[_0x54d1e0(0x261)][_0x54d1e0(0x1bd)](_0x331cdc):this[_0x54d1e0(0x261)][_0x54d1e0(0x11d)](_0x331cdc);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x1af),async(_0x1b5303,_0x1fdeb7)=>{const _0x14ea11=_0xbb36fe;await this[_0x14ea11(0x15c)]({'reply':_0x1fdeb7});}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x143),(_0x34e0ad,{reply:_0x5ad340,index:_0x2a4c74,state:_0x1849c7})=>{const _0x389163=_0xbb36fe;this[_0x389163(0x261)][_0x389163(0x1f9)]({'id':_0x5ad340['id'],'index':_0x2a4c74,'state':_0x1849c7}),this[_0x389163(0x226)]?.[_0x389163(0x1da)][_0x389163(0x243)](_0x5ad340['id'])&&this[_0x389163(0x226)]?.[_0x389163(0x1f4)]==_0x2a4c74&&this[_0x389163(0x1a7)]?.[_0x389163(0x237)](_0x1849c7);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x103),(_0x3a442e,_0x47609e)=>{const _0x1dd41b=_0xbb36fe;if(this[_0x1dd41b(0x261)][_0x1dd41b(0x172)](_0x47609e[_0x1dd41b(0x168)],_0x47609e[_0x1dd41b(0x132)]),_0x1dd41b(0x287)===_0x47609e[_0x1dd41b(0x168)][_0x1dd41b(0x193)]){const _0x17dee2=[..._0x241765(this[_0x1dd41b(0x187)])[_0x1dd41b(0x232)][_0x1dd41b(0x259)][_0x1dd41b(0x287)][_0x1dd41b(0x198)]()];this[_0x1dd41b(0x1a3)][_0x1dd41b(0x128)](_0x17dee2,_0x1dd41b(0x1f5)+this[_0x1dd41b(0x1fc)]?.['id']);}}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x273),(_0x50c03a,_0x36aef6)=>{const _0x530ab9=_0xbb36fe;this[_0x530ab9(0x261)][_0x530ab9(0x1a9)](_0x36aef6[_0x530ab9(0x1c0)]),_0x530ab9(0x12d)==_0x36aef6[_0x530ab9(0x1c0)]&&this[_0x530ab9(0x113)](),_0x530ab9(0x287)===_0x36aef6[_0x530ab9(0x193)]&&this[_0x530ab9(0x1a3)][_0x530ab9(0x1dc)](_0x530ab9(0x1f5)+this[_0x530ab9(0x1fc)]?.['id']);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x135),(_0x58fec4,_0xb27138)=>{const _0x30f228=_0xbb36fe;this[_0x30f228(0x261)][_0x30f228(0x23b)](_0xb27138[_0x30f228(0x168)][_0x30f228(0x1c0)],_0xb27138[_0x30f228(0x132)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x1e5),(_0xb161fd,_0x8744b9)=>{const _0x552b76=_0xbb36fe;this[_0x552b76(0x261)][_0x552b76(0x16f)](_0x8744b9[_0x552b76(0x17a)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x16d),(_0x22f610,_0x67d4e1)=>{const _0x44859b=_0xbb36fe;this[_0x44859b(0x261)][_0x44859b(0x15b)](_0x67d4e1[_0x44859b(0x249)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x145),(_0x15c59d,_0x27bdea)=>{const _0x21b8fd=_0xbb36fe;this[_0x21b8fd(0x261)][_0x21b8fd(0x1b4)](_0x27bdea[_0x21b8fd(0x23d)],_0x27bdea[_0x21b8fd(0x169)],_0x27bdea[_0x21b8fd(0x158)],_0x27bdea[_0x21b8fd(0x267)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x1e3),(_0x480594,_0x31e557)=>{const _0x3dbdc3=_0xbb36fe;this[_0x3dbdc3(0x261)][_0x3dbdc3(0x229)](_0x31e557[_0x3dbdc3(0x23d)],_0x31e557[_0x3dbdc3(0x279)],_0x31e557[_0x3dbdc3(0x14c)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x284),(_0x45e6ff,_0x5d4c7e)=>{const _0x54528f=_0xbb36fe;this[_0x54528f(0x261)][_0x54528f(0x264)](_0x5d4c7e);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x1d4),async(_0x106030,_0x9cfe61)=>{const _0x22de24=_0xbb36fe,_0x1e2ff0=(await this[_0x22de24(0x14a)][_0x22de24(0x1fa)]())[_0x22de24(0x230)](_0x4e32b9=>_0x4e32b9['id']===_0x9cfe61[_0x22de24(0x233)]['id'])||null;this[_0x22de24(0x261)][_0x22de24(0x22e)](_0x1e2ff0,_0x9cfe61[_0x22de24(0x21c)]);}),this[_0xbb36fe(0x1fc)]['on'](_0xbb36fe(0x133),(_0x1b8b22,{error:_0x53c249,interactionId:_0x2d7081,fileName:_0x5bfe6f,url:_0x34b629,sourceId:_0x18d791,sourceLabel:_0x676e04})=>{const _0x185b60=_0xbb36fe,_0x35c477=_0x2d7081?_0x2d7081+':'+_0x3fcf59():_0x3fcf59();_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x223))?this[_0x185b60(0x261)][_0x185b60(0x23f)]({'staticMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x28a)),'id':_0x35c477}):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x260))||_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x1b6))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x266)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x194))?this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x140),_0x5bfe6f),'id':_0x35c477}):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x200))?this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x22b),_0x34b629),'id':_0x35c477}):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x218))?this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x26e)),'id':_0x35c477}):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x206))?this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x18c)),'id':_0x35c477}):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x227))?(_0x18d791&&this[_0x185b60(0x261)][_0x185b60(0x268)](_0x18d791),this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x14f),_0x676e04||_0x185b60(0x169)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x281))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x1a0)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x1b1))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x27a)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x126))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x25f)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x1e9))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x15f)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x178))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x1a1)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):_0x53c249[_0x185b60(0x231)][_0x185b60(0x202)](_0x185b60(0x16c))?(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x219)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249)):(this[_0x185b60(0x261)][_0x185b60(0x1ee)]({'errorMessage':_0x23957a(this[_0x185b60(0x187)][_0x185b60(0x150)],_0x185b60(0x1ac)),'id':_0x35c477}),this[_0x185b60(0x28e)](_0x53c249));}),await this[_0xbb36fe(0x1fc)][_0xbb36fe(0x14b)](this[_0xbb36fe(0x187)][_0xbb36fe(0x26a)][_0xbb36fe(0x13d)](_0xbb36fe(0x142))),_0x241796||await this[_0xbb36fe(0x1fc)][_0xbb36fe(0x26c)]();}async[_0x3cce95(0x257)]({userMessage:_0x5a3b65,attributes:_0x25de6f}){const _0x1c2e11=_0x3cce95;if(!this[_0x1c2e11(0x1fc)])throw new _0x398f1a(_0x1c2e11(0x1f1));if(this[_0x1c2e11(0x1fc)][_0x1c2e11(0x160)]()){const _0x2a5377=await this[_0x1c2e11(0x1a3)][_0x1c2e11(0x28f)]();await this[_0x1c2e11(0x1fc)][_0x1c2e11(0x1cb)](_0x2a5377);}this[_0x1c2e11(0x1fc)]['id']&&this[_0x1c2e11(0x1fc)][_0x1c2e11(0x1ea)]&&await this[_0x1c2e11(0x1fc)][_0x1c2e11(0x183)]({'userMessage':_0x5a3b65,'attributes':_0x25de6f});}[_0x3cce95(0x1cc)](){const _0xd930b1=_0x3cce95;console[_0xd930b1(0x25d)](_0xd930b1(0x12a));}[_0x3cce95(0x213)](_0x52631d){const _0x54e914=_0x3cce95;this[_0x54e914(0x261)][_0x54e914(0x272)](_0x52631d);}[_0x3cce95(0x28e)](_0x3e3d0f){const _0x54251c=_0x3cce95;_0x3d4d3a(_0x3e3d0f[_0x54251c(0x231)]);}[_0x3cce95(0x148)](_0x2835ea){const _0x43a490=_0x3cce95;this[_0x43a490(0x1fc)]?.[_0x43a490(0x24a)](_0x2835ea);}[_0x3cce95(0x189)](){const _0x16b4e2=_0x3cce95;this[_0x16b4e2(0x1fc)]?.[_0x16b4e2(0x155)]();}[_0x3cce95(0x222)](){const _0x5e476e=_0x3cce95;this[_0x5e476e(0x1fc)]?.[_0x5e476e(0x1df)]();}[_0x3cce95(0x171)](_0x3cefd4){const _0x4f16a4=_0x3cce95,[_0x21ddf9,_0x578d8b]=_0x3cefd4[_0x4f16a4(0x1e0)](':'),_0x3955df=this[_0x4f16a4(0x1fc)][_0x4f16a4(0x15a)](_0x21ddf9),_0x57b80a=_0x3955df[_0x4f16a4(0x1c6)](_0x578d8b);return{'interaction':_0x3955df,'reply':_0x57b80a};}[_0x3cce95(0x22c)](_0x23c8fa,_0x45bb41=!0x1){const _0x769195=_0x3cce95,_0x227261=_0x241765(this[_0x769195(0x187)]),_0x2a47e6={'target':_0x227261[_0x769195(0x18f)][_0x769195(0x1d6)][_0x769195(0x13b)][_0x769195(0x144)](_0x227261[_0x769195(0x18f)][_0x769195(0x212)][_0x769195(0x19d)](_0x23c8fa)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x45bb41};_0x45bb41&&(_0x2a47e6[_0x769195(0x235)]=!0x0),_0x13999e(_0x2a47e6);}[_0x3cce95(0x282)](_0x58d22f,_0x5bfd14=!0x1){const _0x48aa7e=_0x3cce95;this[_0x48aa7e(0x261)][_0x48aa7e(0x1f8)](_0x58d22f||_0x23957a(this[_0x48aa7e(0x187)][_0x48aa7e(0x150)],_0x48aa7e(0x28d)),_0x5bfd14);}async[_0x3cce95(0x15c)]({reply:_0x479a44,renderingStrategy:_0xa9098a}){const _0x809b59=_0x3cce95,{id:_0x11b00a,interactionId:_0x641faa,isDone:_0x562d98,type:_0x3751b7,parsedContent:_0x49d6d7}=_0x479a44,_0x1e31f9=_0x641faa+':'+_0x11b00a;if(_0x809b59(0x255)===_0x3751b7){const _0xa4e758=_0x479a44[_0x809b59(0x165)]({'showDiff':this[_0x809b59(0x261)][_0x809b59(0x10f)]});await this[_0x809b59(0x261)][_0x809b59(0x134)]({'id':_0x1e31f9,'parts':_0xa4e758,'renderingStrategy':_0xa9098a,'isDone':_0x562d98});}else _0x809b59(0x1ef)===_0x3751b7&&await this[_0x809b59(0x261)][_0x809b59(0x271)]({'id':_0x1e31f9,'parsedContent':_0x49d6d7,'renderingStrategy':_0xa9098a,'isDone':_0x562d98});_0x562d98&&_0x479a44[_0x809b59(0x289)][_0x809b59(0x1a8)]>0x0&&this[_0x809b59(0x261)][_0x809b59(0x19b)](_0x1e31f9,_0x479a44[_0x809b59(0x289)]);}async[_0x3cce95(0x10b)](){const _0x5e2c04=_0x3cce95,_0x42726b=this[_0x5e2c04(0x1fc)]?.[_0x5e2c04(0x27d)];_0x42726b&&(_0x42726b[_0x5e2c04(0x174)](),this[_0x5e2c04(0x261)][_0x5e2c04(0x19c)](_0x42726b));}async[_0x3cce95(0x1eb)](){const _0x2ebcaf=_0x3cce95,_0x2e8e90=this[_0x2ebcaf(0x1fc)]?.[_0x2ebcaf(0x27d)];if(_0x2e8e90){for await(const _0x1c0577 of _0x2e8e90[_0x2ebcaf(0x107)])await this[_0x2ebcaf(0x15c)]({'reply':_0x1c0577,'renderingStrategy':_0x2ebcaf(0x1bc)});}}[_0x3cce95(0x25b)](_0x210384){const _0x58f8b9=_0x3cce95,_0x3dee5d={'positiveCount':_0x210384[_0x58f8b9(0x1e7)][_0x58f8b9(0x157)](_0x2fd852=>_0x58f8b9(0x13a)===_0x2fd852[_0x58f8b9(0x1ce)])[_0x58f8b9(0x1a8)],'totalCount':_0x210384[_0x58f8b9(0x1e7)][_0x58f8b9(0x1a8)],'modificationId':_0x210384['id']},_0x46dc66=this[_0x58f8b9(0x1fc)][_0x58f8b9(0x15a)](_0x210384[_0x58f8b9(0x1c5)])[_0x58f8b9(0x1d7)];_0x46dc66&&this[_0x58f8b9(0x20a)][_0x58f8b9(0x16a)](this[_0x58f8b9(0x1fc)]['id'],_0x46dc66,_0x3dee5d);}[_0x3cce95(0x122)](_0x151644){const _0x3f8e05=_0x3cce95;let _0x40e61b=null,_0x5c5087=null;this['on'](_0x3f8e05(0x24d),(_0x3e959d,_0x57e318,_0x21f665)=>{const _0x518717=_0x3f8e05;_0x21f665['id']!==_0x40e61b&&(_0x40e61b=_0x21f665['id'],_0x5c5087=this[_0x518717(0x141)](_0x21f665)),_0x151644(_0x57e318,_0x5c5087);});}[_0x3cce95(0x141)](_0x586ab3){const _0x62c6f5=_0x3cce95,_0x402120=this[_0x62c6f5(0x261)],_0x145bfe=()=>{const _0x416e58=_0x62c6f5;_0x586ab3[_0x416e58(0x159)](),_0x586ab3[_0x416e58(0x256)](),_0x402120[_0x416e58(0x1be)]();},_0xa854b0=()=>{const _0x3e1eab=_0x62c6f5;_0x586ab3[_0x3e1eab(0x27e)]&&(_0x586ab3[_0x3e1eab(0x27e)][_0x3e1eab(0x114)](),_0x586ab3[_0x3e1eab(0x27e)]=void 0x0);};return{'insertTextReply':(_0x2d1385,_0x42c64d)=>{const _0x2c57bf=_0x62c6f5;_0xa854b0(),_0x145bfe();const _0x205e7=_0x586ab3[_0x2c57bf(0x27e)]=_0x586ab3[_0x2c57bf(0x258)]({'type':_0x2c57bf(0x1ef),'interactionId':_0x586ab3['id'],'content':_0x2d1385,'id':_0x42c64d||_0x3fcf59()});return _0xa854b0(),_0x205e7;},'insertCustomElement':async(_0x31f14d,_0x36da01)=>(_0xa854b0(),_0x145bfe(),_0x402120[_0x62c6f5(0x1b2)](_0x31f14d,_0x36da01||_0x3fcf59())),'setLoadingMessage':_0xcd1459=>{const _0x459620=_0x62c6f5;_0x402120[_0x459620(0x137)](_0xcd1459);},'clearLoadingMessage':()=>{const _0x529a77=_0x62c6f5;_0x402120[_0x529a77(0x1be)]();}};}}
@@ -93,6 +93,14 @@ export declare class AIChatUI extends ContextPlugin {
93
93
  * Adds a custom element to the chat feed.
94
94
  */
95
95
  addFeedItemCustomElement(element: HTMLElement | string, id: string): Promise<AIChatFeedCustomElementView>;
96
+ /**
97
+ * Removes an item from the feed.
98
+ */
99
+ removeFeedItem(id: string): void;
100
+ /**
101
+ * Checks if an item exists in the feed.
102
+ */
103
+ hasFeedItem(id: string): boolean;
96
104
  /**
97
105
  * Updates the visibility of the interaction header in the chat feed.
98
106
  */
@@ -239,7 +247,14 @@ export declare class AIChatUI extends ContextPlugin {
239
247
  * Closes the source resource balloon and cleans up its state.
240
248
  */
241
249
  closeSourceResourceBalloon(sourceId: string): void;
242
- focusPromptInput(): void;
250
+ /**
251
+ * Sets the value of the prompt input.
252
+ */
253
+ setPromptInputValue(value: string): void;
254
+ /**
255
+ * Focuses the prompt input.
256
+ */
257
+ focusPromptInput(useHighlight?: boolean): void;
243
258
  scrollFeedToSuggestion(replyId: string, partIndex: number): void;
244
259
  startAutoScroll(): void;
245
260
  disableControls(): void;
@@ -339,3 +354,11 @@ export type AIChatUILoadSourceResourcesEvent = {
339
354
  }
340
355
  ];
341
356
  };
357
+ /**
358
+ * An event fired when a new conversation is created, the chat feed is empty and the welcome message has been
359
+ * displayed.
360
+ */
361
+ export type AIChatUIConversationCreatedEvent = {
362
+ name: 'conversationCreated';
363
+ args: [];
364
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4750b9=_0xb5ac;(function(_0x1f2f78,_0x539555){const _0x4da4c5=_0xb5ac,_0x108bae=_0x1f2f78();while(!![]){try{const _0x45aaf2=-parseInt(_0x4da4c5(0x160))/0x1*(-parseInt(_0x4da4c5(0x1e0))/0x2)+parseInt(_0x4da4c5(0x16a))/0x3*(-parseInt(_0x4da4c5(0x1d4))/0x4)+-parseInt(_0x4da4c5(0x1b5))/0x5*(-parseInt(_0x4da4c5(0x1b8))/0x6)+-parseInt(_0x4da4c5(0x17f))/0x7+-parseInt(_0x4da4c5(0x1e5))/0x8*(-parseInt(_0x4da4c5(0x14d))/0x9)+parseInt(_0x4da4c5(0x17d))/0xa*(parseInt(_0x4da4c5(0x1e2))/0xb)+-parseInt(_0x4da4c5(0x179))/0xc;if(_0x45aaf2===_0x539555)break;else _0x108bae['push'](_0x108bae['shift']());}catch(_0x410be3){_0x108bae['push'](_0x108bae['shift']());}}}(_0xdad6,0xa1e12));import{ContextPlugin as _0x141df4}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5832a4}from'ckeditor5/src/utils.js';import{AIChatView as _0x305b0a}from'./ui/aichatview.js';import{AITabs as _0x2f4c5e}from'../aitabs/aitabs.js';import{getTranslation as _0x550196}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xb76d15}from'ckeditor5/src/icons.js';function _0xb5ac(_0xa0264,_0x2b1e88){const _0xdad60=_0xdad6();return _0xb5ac=function(_0xb5acd6,_0x3d9ffd){_0xb5acd6=_0xb5acd6-0x143;let _0x5a6721=_0xdad60[_0xb5acd6];return _0x5a6721;},_0xb5ac(_0xa0264,_0x2b1e88);}import{AIChatFeedInteractionHeaderView as _0x1f62ba}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2a3379}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35af80}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0xdad6(){const _0x527fd7=['length','setContextItemLoading','has','plugins','clearPendingContextUI','_isTrackChangesCommandValueBound','feedItemRenderingStrategy','setConversationTitle','<p>','isModelAvailable','chatControls','areActionsDisabled','setModel','isLoading','setIsMaximized','setLoadingMessage','startInteraction','toggleSuggestionDisplayMode','AIChatUI','setConversationContext','96975LcCIIP','updateCapabilities','isTrackChangesOn','addFeedItemError','setIsUploadInProgress','focusPromptInput','disableControls','setAddContextOptions','ai.availableReplyActions','addFeedItemCustomElement','addContextItem','startAutoScroll','addFeedItemUserMessage','isOfficialPlugin','finishInteraction','addFeedItemAISuggestion','getItemIds','isWebSearchEnabled','ai-suggestion-reply','1qUxzJU','attributes','destroy','remove','stopInteraction','contextItems','setInputPlaceholder','resetMessageInput','config','userMessage','3EcMNau','populateSourceResourceBalloon','locale','_titleAnimationInterval','interactionId','isReasoningEnabled','addFeedItemStaticMessage','updateFeedItemAIReplySources','isBusy','bind','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isPremiumPlugin','enableControls','addItem','setFeedItemAIReplySuggestionPartActive','25984668yxpMpR','updateFeedItemAIReplyContent','error-message','renderingStrategy','10DxmCWG','requires','2697905WmMazL','prepareLoadingMessage','streaming','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','TrackChanges','_promiseQueue','resetConversationTitle','isMaximized','disableModelSelector','conversation-start','ai-reply','children','get','clear','updateReplyItem','_animateConversationTitle','updateFeedInteractionHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','_getInputPlaceholder','label','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','trackChanges','ai.chat.context.searchInputVisibleFrom','setReasoning','isDone','scrollFeedToSuggestion','ai.models.showModelSelector','_interactionPromiseResolver','addFeedItemAIReply','setModelList','markItemAsDone','displayedPrompt','AITabs','scrollToSuggestion','removeContextItem','interaction-header','updateFeedItemAIReplySuggestionContent','value','view','updateResourceState','commands','addFeedInteractionHeader','user-message','_view','set','setSuggestionPartActive','updateSuggestionItem','context','forEach','last','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','AI_CHAT_WELCOME_MESSAGE','custom-element','chat','5959165OWkslH','queueEmptyPromise','chatFeed','6eWxtBL','values','from','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','abort','find','removeItem','AI_CHAT_HEADING','options','pluginName','then','closeSourceResourceBalloon','toggleLoadingSkeleton','capabilities','delegate','setFeedItemRenderingStrategy','clearConversationContextUI','stopAutoScroll','chatHeader','startsWith','addTab','createConversation','updateWebSources','clearLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','availableModels','isVisible','showResizeButton','1396828EYEtCA','filter','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','</p>','markFeedItemAsDone','insertSuggestion','setWebSearch','updateFeedItemAIReplySuggestionPartState','enqueue','isDisabled','updateSuggestionPartState','setSelectedModel','1975574OwZuOB','isPending','5143314qxQQMG','removeFeedInteraction','showDiff','680fCfFlZ','enableModelSelector'];_0xdad6=function(){return _0x527fd7;};return _0xdad6();}import{getEditorFromContext as _0x288057}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xc2816b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x141df4{static get[_0x4750b9(0x17e)](){return[_0x2f4c5e];}[_0x4750b9(0x1aa)];static get[_0x4750b9(0x1c1)](){const _0x1454f8=_0x4750b9;return _0x1454f8(0x14b);}static get[_0x4750b9(0x15a)](){return!0x0;}static get[_0x4750b9(0x175)](){return!0x0;}[_0x4750b9(0x1ed)]=_0x4750b9(0x181);[_0x4750b9(0x1e4)]=!0x0;[_0x4750b9(0x184)];[_0x4750b9(0x19a)];[_0x4750b9(0x16d)]=void 0x0;[_0x4750b9(0x1ec)]=!0x1;constructor(_0x2a26d9){const _0x20a4d5=_0x4750b9;super(_0x2a26d9);const _0x3817d5=this[_0x20a4d5(0x1ae)][_0x20a4d5(0x1ea)][_0x20a4d5(0x18b)](_0x20a4d5(0x19f));this[_0x20a4d5(0x1ab)](_0x20a4d5(0x172),!0x1),this[_0x20a4d5(0x184)]=new _0x2a3379(),this[_0x20a4d5(0x1aa)]=new _0x305b0a(this[_0x20a4d5(0x1ae)][_0x20a4d5(0x16c)],{'showResizeButton':_0x3817d5[_0x20a4d5(0x1d3)],'contextResourcesSearchInputVisibleFrom':this[_0x20a4d5(0x1ae)][_0x20a4d5(0x168)][_0x20a4d5(0x18b)](_0x20a4d5(0x195))}),this[_0x20a4d5(0x1aa)][_0x20a4d5(0x1c6)](..._0x35af80)['to'](this),this[_0x20a4d5(0x1aa)]['on'](_0x20a4d5(0x14a),(_0xc63729,{showDiff:_0x162dfc})=>{const _0x1856c6=_0x20a4d5;this[_0x1856c6(0x1e4)]=_0x162dfc;}),_0x3817d5[_0x20a4d5(0x1a5)][_0x20a4d5(0x1cc)]({'id':_0x20a4d5(0x1b4),'buttonLabel':_0x550196(this[_0x20a4d5(0x1ae)][_0x20a4d5(0x16c)],_0x20a4d5(0x1bf)),'buttonIcon':_0xb76d15,'order':0x0,'content':this[_0x20a4d5(0x1aa)]}),this[_0x20a4d5(0x1aa)][_0x20a4d5(0x143)][_0x20a4d5(0x173)](_0x20a4d5(0x146))['to'](this,_0x20a4d5(0x172),_0xb92f9a=>_0xb92f9a),this[_0x20a4d5(0x1aa)][_0x20a4d5(0x1b7)][_0x20a4d5(0x173)](_0x20a4d5(0x1e1))['to'](this,_0x20a4d5(0x172),_0x28eb9a=>_0x28eb9a),this[_0x20a4d5(0x1aa)][_0x20a4d5(0x143)][_0x20a4d5(0x166)](this[_0x20a4d5(0x191)]()),this[_0x20a4d5(0x173)](_0x20a4d5(0x1f0))['to'](this[_0x20a4d5(0x1aa)][_0x20a4d5(0x143)],_0x20a4d5(0x1f0));}[_0x4750b9(0x162)](){const _0xb9f9a3=_0x4750b9;super[_0xb9f9a3(0x162)](),this[_0xb9f9a3(0x16d)]&&clearInterval(this[_0xb9f9a3(0x16d)]);}[_0x4750b9(0x1cd)](_0x5ed517){const _0x5cf3a8=_0x4750b9;this[_0x5cf3a8(0x1aa)][_0x5cf3a8(0x1b7)][_0x5cf3a8(0x18c)](),this[_0x5cf3a8(0x1aa)][_0x5cf3a8(0x143)][_0x5cf3a8(0x1e6)](),this[_0x5cf3a8(0x1aa)][_0x5cf3a8(0x143)][_0x5cf3a8(0x19c)](_0x5ed517[_0x5cf3a8(0x1d1)],!this[_0x5cf3a8(0x1ae)][_0x5cf3a8(0x168)][_0x5cf3a8(0x18b)](_0x5cf3a8(0x199))),this[_0x5cf3a8(0x170)]({'id':_0x5cf3a8(0x188),'staticMessage':_0x550196(this[_0x5cf3a8(0x1ae)][_0x5cf3a8(0x16c)],_0x5cf3a8(0x1b2))});}[_0x4750b9(0x170)]({id:_0x336f08,staticMessage:_0x319692}){const _0x58f5da=_0x4750b9;this[_0x58f5da(0x1aa)][_0x58f5da(0x1b7)][_0x58f5da(0x177)](_0x58f5da(0x189),{'id':_0x336f08,'initialContent':_0x58f5da(0x1ef)+_0x319692+_0x58f5da(0x1d7)});}[_0x4750b9(0x159)](_0x1f2b52){const _0x53319b=_0x4750b9,_0x40a937=_0x1f2b52[_0x53319b(0x161)]?.[_0x53319b(0x19e)]||_0x1f2b52[_0x53319b(0x169)];this[_0x53319b(0x1aa)][_0x53319b(0x1b7)][_0x53319b(0x177)](_0x53319b(0x1a9),{'contextItems':Array[_0x53319b(0x1ba)](_0x1f2b52[_0x53319b(0x165)][_0x53319b(0x1b9)]()),'initialContent':_0x53319b(0x1ef)+_0x40a937+_0x53319b(0x1d7),'id':_0x1f2b52['id']});}[_0x4750b9(0x150)]({errorMessage:_0x465a0b,id:_0x3a108e}){const _0xf50dd7=_0x4750b9;this[_0xf50dd7(0x1aa)][_0xf50dd7(0x1b7)][_0xf50dd7(0x177)](_0xf50dd7(0x17b),{'initialContent':_0xf50dd7(0x1ef)+_0x465a0b+_0xf50dd7(0x1d7),'id':_0x3a108e});}[_0x4750b9(0x19b)](_0x2e29b8){const _0x347acf=_0x4750b9;return this[_0x347acf(0x184)][_0x347acf(0x1dc)](async()=>{const _0x2c4d65=_0x347acf;this[_0x2c4d65(0x1aa)][_0x2c4d65(0x1b7)][_0x2c4d65(0x177)](_0x2c4d65(0x189),{'id':_0x2e29b8[_0x2c4d65(0x16e)]+':'+_0x2e29b8['id']}),this[_0x2c4d65(0x1cf)]();});}async[_0x4750b9(0x15c)](_0x524246){const _0x130e45=_0x4750b9,_0x1ecd69=_0x288057(this[_0x130e45(0x1ae)]);let _0x53e9cc=_0x1ecd69[_0x130e45(0x168)][_0x130e45(0x18b)](_0x130e45(0x155))||[..._0xc2816b];if(_0x1ecd69[_0x130e45(0x1ea)][_0x130e45(0x1e9)](_0x130e45(0x183))){if(!this[_0x130e45(0x1ec)]){this[_0x130e45(0x1ec)]=!0x0;const _0x5036f5=_0x1ecd69[_0x130e45(0x1a7)][_0x130e45(0x18b)](_0x130e45(0x194));this[_0x130e45(0x1aa)][_0x130e45(0x1b7)][_0x130e45(0x173)](_0x130e45(0x14f))['to'](_0x5036f5,_0x130e45(0x1a4));}}else _0x53e9cc=_0x53e9cc[_0x130e45(0x1d5)](_0x5be15f=>_0x130e45(0x1d9)!=_0x5be15f);return this[_0x130e45(0x184)][_0x130e45(0x1dc)](async()=>{const _0x500144=_0x130e45;this[_0x500144(0x1aa)][_0x500144(0x1b7)][_0x500144(0x177)](_0x500144(0x15f),{'id':_0x524246[_0x500144(0x16e)]+':'+_0x524246['id'],'areActionsDisabled':_0x524246[_0x500144(0x144)],'showDiff':this[_0x500144(0x1e4)],'availableActions':_0x53e9cc}),this[_0x500144(0x1cf)]();});}[_0x4750b9(0x1a8)](_0x5f4106,_0x5a5eb3){const _0x85cb70=_0x4750b9,_0x1e1553=this[_0x85cb70(0x1aa)][_0x85cb70(0x1b7)][_0x85cb70(0x18a)][_0x85cb70(0x1b0)];if(_0x1e1553 instanceof _0x1f62ba)return this[_0x85cb70(0x1aa)][_0x85cb70(0x1b7)][_0x85cb70(0x18a)][_0x85cb70(0x163)](_0x1e1553),void this[_0x85cb70(0x1aa)][_0x85cb70(0x1b7)][_0x85cb70(0x177)](_0x85cb70(0x1a2),{'id':_0x5f4106['id'],'capabilities':{'isWebSearchEnabled':_0x1e1553[_0x85cb70(0x1c5)][_0x85cb70(0x15e)]||_0x5a5eb3[_0x85cb70(0x15e)],'isReasoningEnabled':_0x1e1553[_0x85cb70(0x1c5)][_0x85cb70(0x16f)]||_0x5a5eb3[_0x85cb70(0x16f)]}});this[_0x85cb70(0x1aa)][_0x85cb70(0x1b7)][_0x85cb70(0x177)](_0x85cb70(0x1a2),{'id':_0x5f4106['id'],'capabilities':_0x5a5eb3});}async[_0x4750b9(0x156)](_0x473877,_0xe4d7dc){const _0x6ecb4a=_0x4750b9;let _0x5a6079;return await this[_0x6ecb4a(0x184)][_0x6ecb4a(0x1dc)](async()=>{const _0x18932d=_0x6ecb4a;_0x5a6079=this[_0x18932d(0x1aa)][_0x18932d(0x1b7)][_0x18932d(0x177)](_0x18932d(0x1b3),{'content':_0x473877,'id':_0xe4d7dc});}),_0x5a6079;}[_0x4750b9(0x18f)](_0x584d9d){const _0x308ddf=_0x4750b9,_0x45b08f=this[_0x308ddf(0x1aa)][_0x308ddf(0x1b7)][_0x308ddf(0x18a)][_0x308ddf(0x1bd)](_0x1a3b60=>_0x1a3b60[_0x308ddf(0x1c0)]['id']==_0x584d9d['id']&&_0x1a3b60 instanceof _0x1f62ba);_0x45b08f&&_0x45b08f[_0x308ddf(0x1ab)](_0x308ddf(0x1d2),_0x584d9d[_0x308ddf(0x1d2)]);}async[_0x4750b9(0x17a)](_0x2e2bed){const _0x1416c2=_0x4750b9,_0x569897=_0x2e2bed[_0x1416c2(0x17c)]||this[_0x1416c2(0x1ed)];return this[_0x1416c2(0x184)][_0x1416c2(0x1dc)](async _0x1c45f2=>{const _0x28b915=_0x1416c2;await this[_0x28b915(0x1aa)][_0x28b915(0x1b7)][_0x28b915(0x18d)]({..._0x2e2bed,'abortSignal':_0x1c45f2,'renderingStrategy':_0x569897}),_0x2e2bed[_0x28b915(0x197)]&&this[_0x28b915(0x1d8)](_0x2e2bed['id']);});}[_0x4750b9(0x171)](_0x307012,_0x55d2a5){const _0x1c34b9=_0x4750b9;this[_0x1c34b9(0x1aa)][_0x1c34b9(0x1b7)][_0x1c34b9(0x1ce)](_0x307012,_0x55d2a5);}async[_0x4750b9(0x1a3)](_0x306b0c){const _0x444f3e=_0x4750b9,_0x3a1536=_0x306b0c[_0x444f3e(0x17c)]||this[_0x444f3e(0x1ed)];return this[_0x444f3e(0x184)][_0x444f3e(0x1dc)](async _0xe7678e=>{const _0x34aa8a=_0x444f3e;await this[_0x34aa8a(0x1aa)][_0x34aa8a(0x1b7)][_0x34aa8a(0x1ad)]({..._0x306b0c,'abortSignal':_0xe7678e,'renderingStrategy':_0x3a1536}),_0x306b0c[_0x34aa8a(0x197)]&&this[_0x34aa8a(0x1d8)](_0x306b0c['id']);});}[_0x4750b9(0x1db)](_0x3a2731){const _0x61ff9f=_0x4750b9;this[_0x61ff9f(0x1aa)][_0x61ff9f(0x1b7)][_0x61ff9f(0x1de)](_0x3a2731);}[_0x4750b9(0x178)](_0x43f9e7){const _0xa1d99c=_0x4750b9;this[_0xa1d99c(0x1aa)][_0xa1d99c(0x1b7)][_0xa1d99c(0x1ac)](_0x43f9e7);}[_0x4750b9(0x1d8)](_0x4e6c4a){const _0x3c650a=_0x4750b9;this[_0x3c650a(0x1aa)][_0x3c650a(0x1b7)][_0x3c650a(0x19d)](_0x4e6c4a);}[_0x4750b9(0x1e3)](_0x26697c){const _0x8ac9f=_0x4750b9;this[_0x8ac9f(0x1aa)][_0x8ac9f(0x1b7)][_0x8ac9f(0x15d)]()[_0x8ac9f(0x1d5)](_0x33d356=>_0x33d356[_0x8ac9f(0x1cb)](_0x26697c))[_0x8ac9f(0x1af)](_0x150753=>this[_0x8ac9f(0x1aa)][_0x8ac9f(0x1b7)][_0x8ac9f(0x1be)](_0x150753));}[_0x4750b9(0x149)](){const _0x5d2669=_0x4750b9,_0x500338=this[_0x5d2669(0x180)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x5d2669(0x148)](_0x500338),this[_0x5d2669(0x1aa)][_0x5d2669(0x143)][_0x5d2669(0x187)](!this[_0x5d2669(0x1ae)][_0x5d2669(0x168)][_0x5d2669(0x18b)](_0x5d2669(0x199))),this[_0x5d2669(0x172)]=!0x0,this[_0x5d2669(0x1aa)][_0x5d2669(0x1b7)][_0x5d2669(0x158)]();}[_0x4750b9(0x164)](_0x129e57){const _0x5cde88=_0x4750b9;this[_0x5cde88(0x184)][_0x5cde88(0x1bc)](),this[_0x5cde88(0x1aa)][_0x5cde88(0x1b7)][_0x5cde88(0x15d)]()[_0x5cde88(0x1d5)](_0x1bd13a=>_0x1bd13a[_0x5cde88(0x1cb)](_0x129e57['id']))[_0x5cde88(0x1af)](_0x10d82e=>this[_0x5cde88(0x1d8)](_0x10d82e)),this[_0x5cde88(0x172)]=!0x1,this[_0x5cde88(0x1aa)][_0x5cde88(0x1b7)][_0x5cde88(0x1c9)]();}async[_0x4750b9(0x15b)](){const _0x3bf614=_0x4750b9;return this[_0x3bf614(0x184)][_0x3bf614(0x1b6)][_0x3bf614(0x1c2)](()=>{const _0x59cdf2=_0x3bf614;this[_0x59cdf2(0x172)]=!0x1,this[_0x59cdf2(0x1aa)][_0x59cdf2(0x1b7)][_0x59cdf2(0x1c9)]();});}[_0x4750b9(0x157)](_0x12a780,_0x15950b){const _0x1fe4c5=_0x4750b9;this[_0x1fe4c5(0x1aa)][_0x1fe4c5(0x143)][_0x1fe4c5(0x157)](_0x12a780,_0x15950b);}[_0x4750b9(0x1a1)](_0x4e3493){const _0x316fec=_0x4750b9;this[_0x316fec(0x1aa)][_0x316fec(0x143)][_0x316fec(0x1a1)](_0x4e3493);}[_0x4750b9(0x1e8)](_0xd35f08,_0x13abfc){const _0x2c7377=_0x4750b9;this[_0x2c7377(0x1aa)][_0x2c7377(0x143)][_0x2c7377(0x1e8)](_0xd35f08,_0x13abfc);}[_0x4750b9(0x151)](_0x57f590){const _0x2208e5=_0x4750b9;this[_0x2208e5(0x1aa)][_0x2208e5(0x143)][_0x2208e5(0x151)](_0x57f590);}[_0x4750b9(0x14c)](_0xb5303b){const _0x3256f6=_0x4750b9;this[_0x3256f6(0x1aa)][_0x3256f6(0x143)][_0x3256f6(0x14c)](_0xb5303b);}[_0x4750b9(0x1eb)](){const _0x5d7af1=_0x4750b9;this[_0x5d7af1(0x1aa)][_0x5d7af1(0x143)][_0x5d7af1(0x1eb)]();}[_0x4750b9(0x1c8)](){const _0x2a2fb8=_0x4750b9;this[_0x2a2fb8(0x1aa)][_0x2a2fb8(0x143)][_0x2a2fb8(0x1c8)]();}[_0x4750b9(0x1a6)](_0x303463,_0x529849,_0x485856){const _0x28fa8e=_0x4750b9;this[_0x28fa8e(0x1aa)][_0x28fa8e(0x143)][_0x28fa8e(0x1a6)](_0x303463,_0x529849,_0x485856);}[_0x4750b9(0x167)](){const _0x190b26=_0x4750b9;this[_0x190b26(0x1aa)][_0x190b26(0x143)][_0x190b26(0x167)](),this[_0x190b26(0x1aa)][_0x190b26(0x143)][_0x190b26(0x166)](this[_0x190b26(0x191)]());}[_0x4750b9(0x154)](_0x4613f8){const _0x49c4bd=_0x4750b9;this[_0x49c4bd(0x1aa)][_0x49c4bd(0x143)][_0x49c4bd(0x154)](_0x4613f8);}[_0x4750b9(0x14e)](_0x31add1){const _0x21df3d=_0x4750b9;this[_0x21df3d(0x1aa)][_0x21df3d(0x143)][_0x21df3d(0x1da)](_0x31add1[_0x21df3d(0x15e)]),this[_0x21df3d(0x1aa)][_0x21df3d(0x143)][_0x21df3d(0x196)](_0x31add1[_0x21df3d(0x16f)]),this[_0x21df3d(0x1aa)][_0x21df3d(0x143)][_0x21df3d(0x166)](this[_0x21df3d(0x191)](_0x31add1));}[_0x4750b9(0x1df)](_0x58be51,_0x367928){const _0x1d2c4c=_0x4750b9;this[_0x1d2c4c(0x1aa)][_0x1d2c4c(0x143)][_0x1d2c4c(0x145)](_0x58be51),_0x367928&&this[_0x1d2c4c(0x1aa)][_0x1d2c4c(0x143)][_0x1d2c4c(0x187)](!0x1);}[_0x4750b9(0x1c7)](_0x467723){const _0x58759b=_0x4750b9;this[_0x58759b(0x1ed)]=_0x467723;}[_0x4750b9(0x1c4)](_0x507660){const _0x657199=_0x4750b9;this[_0x657199(0x1aa)][_0x657199(0x1b7)][_0x657199(0x1c4)](_0x507660);}[_0x4750b9(0x185)](){const _0x43d1f=_0x4750b9;this[_0x43d1f(0x1ee)](_0x550196(this[_0x43d1f(0x1ae)][_0x43d1f(0x16c)],_0x43d1f(0x1bf)));}[_0x4750b9(0x1ee)](_0x19caf6,_0x444b14=!0x1){const _0x203a28=_0x4750b9;if(_0x444b14&&!_0x5832a4()&&_0x19caf6[_0x203a28(0x1e7)])return this[_0x203a28(0x1aa)][_0x203a28(0x1ca)][_0x203a28(0x192)]='',void this[_0x203a28(0x18e)](_0x19caf6);this[_0x203a28(0x1aa)][_0x203a28(0x1ca)][_0x203a28(0x192)]=_0x19caf6;}[_0x4750b9(0x148)](_0x1484de){const _0x20396a=_0x4750b9;this[_0x20396a(0x1aa)][_0x20396a(0x1b7)][_0x20396a(0x148)](_0x1484de);}[_0x4750b9(0x1cf)](){const _0x1417f4=_0x4750b9;this[_0x1417f4(0x1aa)][_0x1417f4(0x1b7)][_0x1417f4(0x148)]('');}[_0x4750b9(0x18e)](_0x574ef5){const _0x490f31=_0x4750b9;let _0x405d08=0x0;clearInterval(this[_0x490f31(0x16d)]),this[_0x490f31(0x16d)]=setInterval(()=>{const _0x1464bd=_0x490f31;this[_0x1464bd(0x1aa)][_0x1464bd(0x1ca)][_0x1464bd(0x192)]=this[_0x1464bd(0x1aa)][_0x1464bd(0x1ca)][_0x1464bd(0x192)]+_0x574ef5[_0x405d08],_0x405d08++,_0x405d08===_0x574ef5[_0x1464bd(0x1e7)]&&clearInterval(this[_0x1464bd(0x16d)]);},0x1e);}[_0x4750b9(0x147)](_0x5aa258){const _0x8c6c55=_0x4750b9;this[_0x8c6c55(0x1aa)][_0x8c6c55(0x1ca)][_0x8c6c55(0x186)]=_0x5aa258;}[_0x4750b9(0x180)](_0x54799b){const _0x158caa=_0x4750b9;return _0x54799b[_0x158caa(0x15e)]&&_0x54799b[_0x158caa(0x16f)]?_0x550196(this[_0x158caa(0x1ae)][_0x158caa(0x16c)],_0x158caa(0x193)):_0x54799b[_0x158caa(0x15e)]?_0x550196(this[_0x158caa(0x1ae)][_0x158caa(0x16c)],_0x158caa(0x190)):_0x54799b[_0x158caa(0x16f)]?_0x550196(this[_0x158caa(0x1ae)][_0x158caa(0x16c)],_0x158caa(0x182)):_0x550196(this[_0x158caa(0x1ae)][_0x158caa(0x16c)],_0x158caa(0x1bb));}[_0x4750b9(0x191)](_0x26d23e){const _0x3e3a55=_0x4750b9;return _0x26d23e?_0x26d23e[_0x3e3a55(0x15e)]&&_0x26d23e[_0x3e3a55(0x16f)]?_0x550196(this[_0x3e3a55(0x1ae)][_0x3e3a55(0x16c)],_0x3e3a55(0x174)):_0x26d23e[_0x3e3a55(0x15e)]?_0x550196(this[_0x3e3a55(0x1ae)][_0x3e3a55(0x16c)],_0x3e3a55(0x1b1)):_0x26d23e[_0x3e3a55(0x16f)]?_0x550196(this[_0x3e3a55(0x1ae)][_0x3e3a55(0x16c)],_0x3e3a55(0x1d0)):_0x550196(this[_0x3e3a55(0x1ae)][_0x3e3a55(0x16c)],_0x3e3a55(0x1d6)):_0x550196(this[_0x3e3a55(0x1ae)][_0x3e3a55(0x16c)],_0x3e3a55(0x1d6));}[_0x4750b9(0x16b)](_0x4104ad,_0x15a6ee,_0x2af59a,_0x49376b){const _0x2bf7df=_0x4750b9;this[_0x2bf7df(0x1aa)][_0x2bf7df(0x16b)](_0x4104ad,_0x15a6ee,_0x2af59a,_0x49376b);}[_0x4750b9(0x1c3)](_0x4ff2d5){const _0x322052=_0x4750b9;this[_0x322052(0x1aa)][_0x322052(0x1c3)](_0x4ff2d5);}[_0x4750b9(0x152)](){const _0x4aa305=_0x4750b9;this[_0x4aa305(0x1aa)][_0x4aa305(0x143)][_0x4aa305(0x152)]();}[_0x4750b9(0x198)](_0x5f3a99,_0x4078f5){const _0x17b126=_0x4750b9;this[_0x17b126(0x1aa)][_0x17b126(0x1b7)][_0x17b126(0x1a0)](_0x5f3a99,_0x4078f5);}[_0x4750b9(0x158)](){const _0x4e0c52=_0x4750b9;this[_0x4e0c52(0x1aa)][_0x4e0c52(0x1b7)][_0x4e0c52(0x158)]();}[_0x4750b9(0x153)](){const _0x355fcb=_0x4750b9;this[_0x355fcb(0x1aa)][_0x355fcb(0x143)][_0x355fcb(0x1dd)]=!0x0;}[_0x4750b9(0x176)](){const _0x30d907=_0x4750b9;this[_0x30d907(0x1aa)][_0x30d907(0x143)][_0x30d907(0x1dd)]=!0x1;}}
23
+ const _0x40028e=_0x21d4;(function(_0x114e7f,_0x253801){const _0x1ae93e=_0x21d4,_0x64d8f8=_0x114e7f();while(!![]){try{const _0xfbfc38=-parseInt(_0x1ae93e(0x1bd))/0x1*(parseInt(_0x1ae93e(0x1a4))/0x2)+parseInt(_0x1ae93e(0x165))/0x3+-parseInt(_0x1ae93e(0x209))/0x4*(-parseInt(_0x1ae93e(0x1de))/0x5)+-parseInt(_0x1ae93e(0x160))/0x6*(parseInt(_0x1ae93e(0x1d5))/0x7)+parseInt(_0x1ae93e(0x1ec))/0x8+-parseInt(_0x1ae93e(0x1cb))/0x9+-parseInt(_0x1ae93e(0x202))/0xa*(-parseInt(_0x1ae93e(0x1c8))/0xb);if(_0xfbfc38===_0x253801)break;else _0x64d8f8['push'](_0x64d8f8['shift']());}catch(_0x14e0c7){_0x64d8f8['push'](_0x64d8f8['shift']());}}}(_0x5a1e,0x92f3c));import{ContextPlugin as _0x1d7091}from'ckeditor5/src/core.js';function _0x21d4(_0x13769e,_0x14c07a){const _0x5a1e08=_0x5a1e();return _0x21d4=function(_0x21d403,_0x452509){_0x21d403=_0x21d403-0x15e;let _0x525912=_0x5a1e08[_0x21d403];return _0x525912;},_0x21d4(_0x13769e,_0x14c07a);}import{_isMotionReduced as _0x262e80}from'ckeditor5/src/utils.js';import{AIChatView as _0xe37001}from'./ui/aichatview.js';import{AITabs as _0x1013e6}from'../aitabs/aitabs.js';import{getTranslation as _0x5f4adc}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x10da76}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x10fed5}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x13854d}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xe38e8b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x19f9f5}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2de473}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1d7091{static get[_0x40028e(0x172)](){return[_0x1013e6];}[_0x40028e(0x1a2)];static get[_0x40028e(0x208)](){const _0x8a7fc7=_0x40028e;return _0x8a7fc7(0x1b3);}static get[_0x40028e(0x1dd)](){return!0x0;}static get[_0x40028e(0x16a)](){return!0x0;}[_0x40028e(0x17e)]=_0x40028e(0x1cd);[_0x40028e(0x1e4)]=!0x0;[_0x40028e(0x195)];[_0x40028e(0x175)];[_0x40028e(0x1c5)]=void 0x0;[_0x40028e(0x19b)]=!0x1;constructor(_0x55b625){const _0x2529c7=_0x40028e;super(_0x55b625);const _0x7caebd=this[_0x2529c7(0x1c0)][_0x2529c7(0x186)][_0x2529c7(0x198)](_0x2529c7(0x178));this[_0x2529c7(0x1e8)](_0x2529c7(0x194),!0x1),this[_0x2529c7(0x195)]=new _0x13854d(),this[_0x2529c7(0x1a2)]=new _0xe37001(this[_0x2529c7(0x1c0)][_0x2529c7(0x20d)],{'showResizeButton':_0x7caebd[_0x2529c7(0x1a3)],'contextResourcesSearchInputVisibleFrom':this[_0x2529c7(0x1c0)][_0x2529c7(0x1b4)][_0x2529c7(0x198)](_0x2529c7(0x18a))}),this[_0x2529c7(0x1a2)][_0x2529c7(0x16b)](..._0xe38e8b)['to'](this),this[_0x2529c7(0x1a2)]['on'](_0x2529c7(0x1b0),(_0x53bf15,{showDiff:_0x1c62b0})=>{const _0x2615dd=_0x2529c7;this[_0x2615dd(0x1e4)]=_0x1c62b0;}),_0x7caebd[_0x2529c7(0x1a1)][_0x2529c7(0x17c)]({'id':_0x2529c7(0x1fa),'buttonLabel':_0x5f4adc(this[_0x2529c7(0x1c0)][_0x2529c7(0x20d)],_0x2529c7(0x1c9)),'buttonIcon':_0x10da76,'order':0x0,'content':this[_0x2529c7(0x1a2)]}),this[_0x2529c7(0x1a2)][_0x2529c7(0x1f1)][_0x2529c7(0x1da)](_0x2529c7(0x1d0))['to'](this,_0x2529c7(0x194),_0x2a0488=>_0x2a0488),this[_0x2529c7(0x1a2)][_0x2529c7(0x1ca)][_0x2529c7(0x1da)](_0x2529c7(0x20b))['to'](this,_0x2529c7(0x194),_0x53a6e3=>_0x53a6e3),this[_0x2529c7(0x1a2)][_0x2529c7(0x1f1)][_0x2529c7(0x1d1)](this[_0x2529c7(0x1d4)]()),this[_0x2529c7(0x1da)](_0x2529c7(0x1f2))['to'](this[_0x2529c7(0x1a2)][_0x2529c7(0x1f1)],_0x2529c7(0x1f2));}[_0x40028e(0x1ee)](){const _0x329e41=_0x40028e;super[_0x329e41(0x1ee)](),this[_0x329e41(0x1c5)]&&clearInterval(this[_0x329e41(0x1c5)]);}[_0x40028e(0x166)](_0x2e3757){const _0xcac250=_0x40028e,_0x2e0e2e=this[_0xcac250(0x1c0)][_0xcac250(0x1b4)][_0xcac250(0x198)](_0xcac250(0x16c))??_0x5f4adc(this[_0xcac250(0x1c0)][_0xcac250(0x20d)],_0xcac250(0x183));this[_0xcac250(0x1a2)][_0xcac250(0x1ca)][_0xcac250(0x18f)](),this[_0xcac250(0x1a2)][_0xcac250(0x1f1)][_0xcac250(0x1e3)](),this[_0xcac250(0x1a2)][_0xcac250(0x1f1)][_0xcac250(0x1df)](_0x2e3757[_0xcac250(0x193)],!this[_0xcac250(0x1c0)][_0xcac250(0x1b4)][_0xcac250(0x198)](_0xcac250(0x191))),this[_0xcac250(0x161)]({'id':_0xcac250(0x1c2),'staticMessage':_0x2e0e2e}),this[_0xcac250(0x207)](_0xcac250(0x18c));}[_0x40028e(0x161)]({id:_0x5a1aaf,staticMessage:_0x58b554}){const _0x8b307a=_0x40028e;this[_0x8b307a(0x1a2)][_0x8b307a(0x1ca)][_0x8b307a(0x1d3)](_0x8b307a(0x206),{'id':_0x5a1aaf,'initialContent':_0x8b307a(0x205)+_0x58b554+_0x8b307a(0x1e0)});}[_0x40028e(0x18d)](_0x3438f3){const _0x174cfd=_0x40028e,_0x27abb4=_0x3438f3[_0x174cfd(0x1c3)]?.[_0x174cfd(0x17b)]||_0x3438f3[_0x174cfd(0x1eb)];this[_0x174cfd(0x1a2)][_0x174cfd(0x1ca)][_0x174cfd(0x1d3)](_0x174cfd(0x1a5),{'contextItems':Array[_0x174cfd(0x1db)](_0x3438f3[_0x174cfd(0x1ae)][_0x174cfd(0x1b1)]()),'initialContent':_0x174cfd(0x205)+_0x27abb4+_0x174cfd(0x1e0),'id':_0x3438f3['id']});}[_0x40028e(0x173)]({errorMessage:_0x2210e2,id:_0x537685}){const _0x2412b6=_0x40028e;this[_0x2412b6(0x1a2)][_0x2412b6(0x1ca)][_0x2412b6(0x1d3)](_0x2412b6(0x1a6),{'initialContent':_0x2412b6(0x205)+_0x2210e2+_0x2412b6(0x1e0),'id':_0x537685});}[_0x40028e(0x170)](_0x3fd5e8){const _0x527842=_0x40028e;return this[_0x527842(0x195)][_0x527842(0x19e)](async()=>{const _0x2e1466=_0x527842;this[_0x2e1466(0x1a2)][_0x2e1466(0x1ca)][_0x2e1466(0x1d3)](_0x2e1466(0x206),{'id':_0x3fd5e8[_0x2e1466(0x1b5)]+':'+_0x3fd5e8['id']}),this[_0x2e1466(0x1f9)]();});}async[_0x40028e(0x1ef)](_0x11bbff){const _0xee5b28=_0x40028e,_0x477348=_0x19f9f5(this[_0xee5b28(0x1c0)]);let _0x106bb5=_0x477348[_0xee5b28(0x1b4)][_0xee5b28(0x198)](_0xee5b28(0x164))||[..._0x2de473];if(_0x477348[_0xee5b28(0x186)][_0xee5b28(0x16e)](_0xee5b28(0x177))){if(!this[_0xee5b28(0x19b)]){this[_0xee5b28(0x19b)]=!0x0;const _0x5ee2c7=_0x477348[_0xee5b28(0x199)][_0xee5b28(0x198)](_0xee5b28(0x168));this[_0xee5b28(0x1a2)][_0xee5b28(0x1ca)][_0xee5b28(0x1da)](_0xee5b28(0x189))['to'](_0x5ee2c7,_0xee5b28(0x16f));}}else _0x106bb5=_0x106bb5[_0xee5b28(0x203)](_0x543ca4=>_0xee5b28(0x1ad)!=_0x543ca4);return this[_0xee5b28(0x195)][_0xee5b28(0x19e)](async()=>{const _0x584ecd=_0xee5b28;this[_0x584ecd(0x1a2)][_0x584ecd(0x1ca)][_0x584ecd(0x1d3)](_0x584ecd(0x1a7),{'id':_0x11bbff[_0x584ecd(0x1b5)]+':'+_0x11bbff['id'],'areActionsDisabled':_0x11bbff[_0x584ecd(0x1d7)],'showDiff':this[_0x584ecd(0x1e4)],'availableActions':_0x106bb5}),this[_0x584ecd(0x1f9)]();});}[_0x40028e(0x1bc)](_0x3d06e6,_0x12945c){const _0x58ad19=_0x40028e,_0x5d4471=this[_0x58ad19(0x1a2)][_0x58ad19(0x1ca)][_0x58ad19(0x1a8)][_0x58ad19(0x196)];if(_0x5d4471 instanceof _0x10fed5)return this[_0x58ad19(0x1a2)][_0x58ad19(0x1ca)][_0x58ad19(0x1a8)][_0x58ad19(0x18e)](_0x5d4471),void this[_0x58ad19(0x1a2)][_0x58ad19(0x1ca)][_0x58ad19(0x1d3)](_0x58ad19(0x1cf),{'id':_0x3d06e6['id'],'capabilities':{'isWebSearchEnabled':_0x5d4471[_0x58ad19(0x1c7)][_0x58ad19(0x1a0)]||_0x12945c[_0x58ad19(0x1a0)],'isReasoningEnabled':_0x5d4471[_0x58ad19(0x1c7)][_0x58ad19(0x1cc)]||_0x12945c[_0x58ad19(0x1cc)]}});this[_0x58ad19(0x1a2)][_0x58ad19(0x1ca)][_0x58ad19(0x1d3)](_0x58ad19(0x1cf),{'id':_0x3d06e6['id'],'capabilities':_0x12945c});}async[_0x40028e(0x200)](_0x593c5c,_0x46bf82){const _0x171b37=_0x40028e;let _0x233cbb;return await this[_0x171b37(0x195)][_0x171b37(0x19e)](async()=>{const _0xa662cf=_0x171b37;_0x233cbb=this[_0xa662cf(0x1a2)][_0xa662cf(0x1ca)][_0xa662cf(0x1d3)](_0xa662cf(0x169),{'content':_0x593c5c,'id':_0x46bf82});}),_0x233cbb;}[_0x40028e(0x171)](_0x30319d){const _0x11de55=_0x40028e;this[_0x11de55(0x1a2)][_0x11de55(0x1ca)][_0x11de55(0x1f0)](_0x30319d);}[_0x40028e(0x20e)](_0x3f34c2){const _0x229c1e=_0x40028e;return this[_0x229c1e(0x1a2)][_0x229c1e(0x1ca)][_0x229c1e(0x15f)](_0x3f34c2);}[_0x40028e(0x1d2)](_0x43888e){const _0x1455e6=_0x40028e,_0x342644=this[_0x1455e6(0x1a2)][_0x1455e6(0x1ca)][_0x1455e6(0x1a8)][_0x1455e6(0x18b)](_0x3e9966=>_0x3e9966[_0x1455e6(0x1e6)]['id']==_0x43888e['id']&&_0x3e9966 instanceof _0x10fed5);_0x342644&&_0x342644[_0x1455e6(0x1e8)](_0x1455e6(0x17d),_0x43888e[_0x1455e6(0x17d)]);}async[_0x40028e(0x185)](_0x1e1307){const _0x1a2dcb=_0x40028e,_0x478048=_0x1e1307[_0x1a2dcb(0x1bf)]||this[_0x1a2dcb(0x17e)];return this[_0x1a2dcb(0x195)][_0x1a2dcb(0x19e)](async _0x68299f=>{const _0x5e666e=_0x1a2dcb;await this[_0x5e666e(0x1a2)][_0x5e666e(0x1ca)][_0x5e666e(0x184)]({..._0x1e1307,'abortSignal':_0x68299f,'renderingStrategy':_0x478048}),_0x1e1307[_0x5e666e(0x19f)]&&this[_0x5e666e(0x197)](_0x1e1307['id']);});}[_0x40028e(0x1b2)](_0x23b3a8,_0x107529){const _0x3b929c=_0x40028e;this[_0x3b929c(0x1a2)][_0x3b929c(0x1ca)][_0x3b929c(0x1fc)](_0x23b3a8,_0x107529);}async[_0x40028e(0x1f8)](_0x12055d){const _0x190a2a=_0x40028e,_0x42d773=_0x12055d[_0x190a2a(0x1bf)]||this[_0x190a2a(0x17e)];return this[_0x190a2a(0x195)][_0x190a2a(0x19e)](async _0x7fbd85=>{const _0x458ac4=_0x190a2a;await this[_0x458ac4(0x1a2)][_0x458ac4(0x1ca)][_0x458ac4(0x162)]({..._0x12055d,'abortSignal':_0x7fbd85,'renderingStrategy':_0x42d773}),_0x12055d[_0x458ac4(0x19f)]&&this[_0x458ac4(0x197)](_0x12055d['id']);});}[_0x40028e(0x1f6)](_0x24e0c2){const _0x463881=_0x40028e;this[_0x463881(0x1a2)][_0x463881(0x1ca)][_0x463881(0x1dc)](_0x24e0c2);}[_0x40028e(0x201)](_0x361182){const _0x40d1dc=_0x40028e;this[_0x40d1dc(0x1a2)][_0x40d1dc(0x1ca)][_0x40d1dc(0x1bb)](_0x361182);}[_0x40028e(0x197)](_0x3263be){const _0x38d17b=_0x40028e;this[_0x38d17b(0x1a2)][_0x38d17b(0x1ca)][_0x38d17b(0x192)](_0x3263be);}[_0x40028e(0x19a)](_0x29e7af){const _0x1646e7=_0x40028e;this[_0x1646e7(0x1a2)][_0x1646e7(0x1ca)][_0x1646e7(0x20c)]()[_0x1646e7(0x203)](_0x35267c=>_0x35267c[_0x1646e7(0x181)](_0x29e7af))[_0x1646e7(0x176)](_0x401e69=>this[_0x1646e7(0x1a2)][_0x1646e7(0x1ca)][_0x1646e7(0x1f0)](_0x401e69));}[_0x40028e(0x180)](){const _0x38e106=_0x40028e,_0x38c13b=this[_0x38e106(0x1aa)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x38e106(0x1f5)](_0x38c13b),this[_0x38e106(0x1a2)][_0x38e106(0x1f1)][_0x38e106(0x17f)](!this[_0x38e106(0x1c0)][_0x38e106(0x1b4)][_0x38e106(0x198)](_0x38e106(0x191))),this[_0x38e106(0x194)]=!0x0,this[_0x38e106(0x1a2)][_0x38e106(0x1ca)][_0x38e106(0x17a)]();}[_0x40028e(0x1ff)](_0x5d2e56){const _0x3dce6e=_0x40028e;this[_0x3dce6e(0x195)][_0x3dce6e(0x163)](),this[_0x3dce6e(0x1a2)][_0x3dce6e(0x1ca)][_0x3dce6e(0x20c)]()[_0x3dce6e(0x203)](_0x18247a=>_0x18247a[_0x3dce6e(0x181)](_0x5d2e56['id']))[_0x3dce6e(0x176)](_0x4a7c41=>this[_0x3dce6e(0x197)](_0x4a7c41)),this[_0x3dce6e(0x194)]=!0x1,this[_0x3dce6e(0x1a2)][_0x3dce6e(0x1ca)][_0x3dce6e(0x1f4)]();}async[_0x40028e(0x1ea)](){const _0xa1c43c=_0x40028e;return this[_0xa1c43c(0x195)][_0xa1c43c(0x15e)][_0xa1c43c(0x1d8)](()=>{const _0x1b03e5=_0xa1c43c;this[_0x1b03e5(0x194)]=!0x1,this[_0x1b03e5(0x1a2)][_0x1b03e5(0x1ca)][_0x1b03e5(0x1f4)]();});}[_0x40028e(0x1fb)](_0x14deb4,_0x1e61db){const _0x1a2fcf=_0x40028e;this[_0x1a2fcf(0x1a2)][_0x1a2fcf(0x1f1)][_0x1a2fcf(0x1fb)](_0x14deb4,_0x1e61db);}[_0x40028e(0x1f3)](_0x136a3d){const _0x418116=_0x40028e;this[_0x418116(0x1a2)][_0x418116(0x1f1)][_0x418116(0x1f3)](_0x136a3d);}[_0x40028e(0x1c4)](_0x52e43f,_0x7e12e){const _0x43d768=_0x40028e;this[_0x43d768(0x1a2)][_0x43d768(0x1f1)][_0x43d768(0x1c4)](_0x52e43f,_0x7e12e);}[_0x40028e(0x210)](_0xef2c41){const _0x3c3f6a=_0x40028e;this[_0x3c3f6a(0x1a2)][_0x3c3f6a(0x1f1)][_0x3c3f6a(0x210)](_0xef2c41);}[_0x40028e(0x1d6)](_0x22bf98){const _0x2b7a64=_0x40028e;this[_0x2b7a64(0x1a2)][_0x2b7a64(0x1f1)][_0x2b7a64(0x1d6)](_0x22bf98);}[_0x40028e(0x1fd)](){const _0x5c7a4d=_0x40028e;this[_0x5c7a4d(0x1a2)][_0x5c7a4d(0x1f1)][_0x5c7a4d(0x1fd)]();}[_0x40028e(0x1e2)](){const _0x17f178=_0x40028e;this[_0x17f178(0x1a2)][_0x17f178(0x1f1)][_0x17f178(0x1e2)]();}[_0x40028e(0x1f7)](_0x326d7a,_0x410fce,_0x57be05){const _0x20614f=_0x40028e;this[_0x20614f(0x1a2)][_0x20614f(0x1f1)][_0x20614f(0x1f7)](_0x326d7a,_0x410fce,_0x57be05);}[_0x40028e(0x182)](){const _0x5a5b09=_0x40028e;this[_0x5a5b09(0x1a2)][_0x5a5b09(0x1f1)][_0x5a5b09(0x182)](),this[_0x5a5b09(0x1a2)][_0x5a5b09(0x1f1)][_0x5a5b09(0x1d1)](this[_0x5a5b09(0x1d4)]());}[_0x40028e(0x20a)](_0x4e0d9a){const _0x29793c=_0x40028e;this[_0x29793c(0x1a2)][_0x29793c(0x1f1)][_0x29793c(0x20a)](_0x4e0d9a);}[_0x40028e(0x1be)](_0x42e0df){const _0x2cef67=_0x40028e;this[_0x2cef67(0x1a2)][_0x2cef67(0x1f1)][_0x2cef67(0x1e7)](_0x42e0df[_0x2cef67(0x1a0)]),this[_0x2cef67(0x1a2)][_0x2cef67(0x1f1)][_0x2cef67(0x1b6)](_0x42e0df[_0x2cef67(0x1cc)]),this[_0x2cef67(0x1a2)][_0x2cef67(0x1f1)][_0x2cef67(0x1d1)](this[_0x2cef67(0x1d4)](_0x42e0df));}[_0x40028e(0x1a9)](_0x14c2ba,_0x290656){const _0x388c57=_0x40028e;this[_0x388c57(0x1a2)][_0x388c57(0x1f1)][_0x388c57(0x1b8)](_0x14c2ba),_0x290656&&this[_0x388c57(0x1a2)][_0x388c57(0x1f1)][_0x388c57(0x17f)](!0x1);}[_0x40028e(0x187)](_0x19a9d2){const _0x427186=_0x40028e;this[_0x427186(0x17e)]=_0x19a9d2;}[_0x40028e(0x1c1)](_0x7d3f66){const _0xb92afe=_0x40028e;this[_0xb92afe(0x1a2)][_0xb92afe(0x1ca)][_0xb92afe(0x1c1)](_0x7d3f66);}[_0x40028e(0x211)](){const _0x5e13a5=_0x40028e;this[_0x5e13a5(0x190)](_0x5f4adc(this[_0x5e13a5(0x1c0)][_0x5e13a5(0x20d)],_0x5e13a5(0x1c9)));}[_0x40028e(0x190)](_0x1144c6,_0x2701d5=!0x1){const _0x26875f=_0x40028e;if(_0x2701d5&&!_0x262e80()&&_0x1144c6[_0x26875f(0x174)])return this[_0x26875f(0x1a2)][_0x26875f(0x1af)][_0x26875f(0x19d)]='',void this[_0x26875f(0x19c)](_0x1144c6);this[_0x26875f(0x1a2)][_0x26875f(0x1af)][_0x26875f(0x19d)]=_0x1144c6;}[_0x40028e(0x1f5)](_0x5489b0){const _0x41246e=_0x40028e;this[_0x41246e(0x1a2)][_0x41246e(0x1ca)][_0x41246e(0x1f5)](_0x5489b0);}[_0x40028e(0x1f9)](){const _0xf608e4=_0x40028e;this[_0xf608e4(0x1a2)][_0xf608e4(0x1ca)][_0xf608e4(0x1f5)]('');}[_0x40028e(0x19c)](_0x12b600){const _0x49b669=_0x40028e;let _0x938690=0x0;clearInterval(this[_0x49b669(0x1c5)]),this[_0x49b669(0x1c5)]=setInterval(()=>{const _0x4ea0d9=_0x49b669;this[_0x4ea0d9(0x1a2)][_0x4ea0d9(0x1af)][_0x4ea0d9(0x19d)]=this[_0x4ea0d9(0x1a2)][_0x4ea0d9(0x1af)][_0x4ea0d9(0x19d)]+_0x12b600[_0x938690],_0x938690++,_0x938690===_0x12b600[_0x4ea0d9(0x174)]&&clearInterval(this[_0x4ea0d9(0x1c5)]);},0x1e);}[_0x40028e(0x204)](_0x304359){const _0x107d30=_0x40028e;this[_0x107d30(0x1a2)][_0x107d30(0x1af)][_0x107d30(0x1ce)]=_0x304359;}[_0x40028e(0x1aa)](_0x5361d4){const _0x28f0bb=_0x40028e;return _0x5361d4[_0x28f0bb(0x1a0)]&&_0x5361d4[_0x28f0bb(0x1cc)]?_0x5f4adc(this[_0x28f0bb(0x1c0)][_0x28f0bb(0x20d)],_0x28f0bb(0x1ac)):_0x5361d4[_0x28f0bb(0x1a0)]?_0x5f4adc(this[_0x28f0bb(0x1c0)][_0x28f0bb(0x20d)],_0x28f0bb(0x1c6)):_0x5361d4[_0x28f0bb(0x1cc)]?_0x5f4adc(this[_0x28f0bb(0x1c0)][_0x28f0bb(0x20d)],_0x28f0bb(0x167)):_0x5f4adc(this[_0x28f0bb(0x1c0)][_0x28f0bb(0x20d)],_0x28f0bb(0x1b9));}[_0x40028e(0x1d4)](_0x2028fa){const _0x3e0d7a=_0x40028e;return _0x2028fa?_0x2028fa[_0x3e0d7a(0x1a0)]&&_0x2028fa[_0x3e0d7a(0x1cc)]?_0x5f4adc(this[_0x3e0d7a(0x1c0)][_0x3e0d7a(0x20d)],_0x3e0d7a(0x1e9)):_0x2028fa[_0x3e0d7a(0x1a0)]?_0x5f4adc(this[_0x3e0d7a(0x1c0)][_0x3e0d7a(0x20d)],_0x3e0d7a(0x20f)):_0x2028fa[_0x3e0d7a(0x1cc)]?_0x5f4adc(this[_0x3e0d7a(0x1c0)][_0x3e0d7a(0x20d)],_0x3e0d7a(0x179)):_0x5f4adc(this[_0x3e0d7a(0x1c0)][_0x3e0d7a(0x20d)],_0x3e0d7a(0x16d)):_0x5f4adc(this[_0x3e0d7a(0x1c0)][_0x3e0d7a(0x20d)],_0x3e0d7a(0x16d));}[_0x40028e(0x1ba)](_0x17947f,_0x514710,_0x53651a,_0x56ef8a){const _0x306ecc=_0x40028e;this[_0x306ecc(0x1a2)][_0x306ecc(0x1ba)](_0x17947f,_0x514710,_0x53651a,_0x56ef8a);}[_0x40028e(0x1ab)](_0x43cdc1){const _0x558b77=_0x40028e;this[_0x558b77(0x1a2)][_0x558b77(0x1ab)](_0x43cdc1);}[_0x40028e(0x1e5)](_0x3567a1){const _0x37fb7d=_0x40028e;this[_0x37fb7d(0x1a2)][_0x37fb7d(0x1f1)][_0x37fb7d(0x1e5)](_0x3567a1);}[_0x40028e(0x1b7)](_0x1ed609=!0x1){const _0x99c9a6=_0x40028e;this[_0x99c9a6(0x1a2)][_0x99c9a6(0x1f1)][_0x99c9a6(0x1b7)](_0x1ed609);}[_0x40028e(0x1d9)](_0x468cc5,_0x4ed203){const _0x2edd27=_0x40028e;this[_0x2edd27(0x1a2)][_0x2edd27(0x1ca)][_0x2edd27(0x1e1)](_0x468cc5,_0x4ed203);}[_0x40028e(0x17a)](){const _0x1f7e4e=_0x40028e;this[_0x1f7e4e(0x1a2)][_0x1f7e4e(0x1ca)][_0x1f7e4e(0x17a)]();}[_0x40028e(0x188)](){const _0x27deec=_0x40028e;this[_0x27deec(0x1a2)][_0x27deec(0x1f1)][_0x27deec(0x1fe)]=!0x0;}[_0x40028e(0x1ed)](){const _0x33b0b1=_0x40028e;this[_0x33b0b1(0x1a2)][_0x33b0b1(0x1f1)][_0x33b0b1(0x1fe)]=!0x1;}}function _0x5a1e(){const _0x11bf38=['commands','removeFeedInteraction','_isTrackChangesCommandValueBound','_animateConversationTitle','label','enqueue','isDone','isWebSearchEnabled','view','_view','showResizeButton','398LOpRMJ','user-message','error-message','ai-suggestion-reply','children','setSelectedModel','prepareLoadingMessage','closeSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','insertSuggestion','contextItems','chatHeader','toggleSuggestionDisplayMode','values','updateFeedItemAIReplySources','AIChatUI','config','interactionId','setReasoning','focusPromptInput','setModel','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','populateSourceResourceBalloon','setSuggestionPartActive','addFeedInteractionHeader','2153UDbiso','updateCapabilities','renderingStrategy','context','toggleLoadingSkeleton','conversation-start','attributes','setContextItemLoading','_titleAnimationInterval','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','capabilities','33Bahhwu','AI_CHAT_HEADING','chatFeed','10833291PnCGtG','isReasoningEnabled','streaming','isMaximized','interaction-header','isLoading','setInputPlaceholder','updateFeedInteractionHeader','addItem','_getInputPlaceholder','35SjKioi','setConversationContext','areActionsDisabled','then','scrollFeedToSuggestion','bind','from','updateSuggestionPartState','isOfficialPlugin','5mSYHrs','setModelList','</p>','scrollToSuggestion','clearConversationContextUI','enableModelSelector','showDiff','setPromptInputValue','options','setWebSearch','set','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','finishInteraction','userMessage','122032swdmtQ','enableControls','destroy','addFeedItemAISuggestion','removeItem','chatControls','isModelAvailable','removeContextItem','stopAutoScroll','setLoadingMessage','updateFeedItemAIReplySuggestionPartState','updateResourceState','updateFeedItemAIReplySuggestionContent','clearLoadingMessage','chat','addContextItem','updateWebSources','clearPendingContextUI','isDisabled','stopInteraction','addFeedItemCustomElement','setFeedItemAIReplySuggestionPartActive','2861710wEkDRt','filter','setIsMaximized','<p>','ai-reply','fire','pluginName','3157368PLlphu','setAddContextOptions','isPending','getItemIds','locale','hasFeedItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setIsUploadInProgress','resetConversationTitle','queueEmptyPromise','hasItem','107628EWJcmh','addFeedItemStaticMessage','updateSuggestionItem','abort','ai.availableReplyActions','1981929bQDFVs','createConversation','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','trackChanges','custom-element','isPremiumPlugin','delegate','ai.chat.welcomeMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','has','value','addFeedItemAIReply','removeFeedItem','requires','addFeedItemError','length','_interactionPromiseResolver','forEach','TrackChanges','AITabs','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','startAutoScroll','displayedPrompt','addTab','isVisible','feedItemRenderingStrategy','disableModelSelector','startInteraction','startsWith','resetMessageInput','AI_CHAT_WELCOME_MESSAGE','updateReplyItem','updateFeedItemAIReplyContent','plugins','setFeedItemRenderingStrategy','disableControls','isTrackChangesOn','ai.chat.context.searchInputVisibleFrom','find','conversationCreated','addFeedItemUserMessage','remove','clear','setConversationTitle','ai.models.showModelSelector','markItemAsDone','availableModels','isBusy','_promiseQueue','last','markFeedItemAsDone','get'];_0x5a1e=function(){return _0x11bf38;};return _0x5a1e();}