@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.4.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 (701) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/ai.js +3 -3
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  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-content.css +1 -1
  77. package/dist/index-editor.css +67 -4
  78. package/dist/index.css +117 -54
  79. package/dist/index.js +6 -6
  80. package/dist/translations/af.d.ts +1 -1
  81. package/dist/translations/af.js +2 -2
  82. package/dist/translations/af.umd.js +2 -2
  83. package/dist/translations/ar.d.ts +1 -1
  84. package/dist/translations/ar.js +2 -2
  85. package/dist/translations/ar.umd.js +2 -2
  86. package/dist/translations/ast.d.ts +1 -1
  87. package/dist/translations/ast.js +2 -2
  88. package/dist/translations/ast.umd.js +2 -2
  89. package/dist/translations/az.d.ts +1 -1
  90. package/dist/translations/az.js +2 -2
  91. package/dist/translations/az.umd.js +2 -2
  92. package/dist/translations/be.d.ts +1 -1
  93. package/dist/translations/be.js +2 -2
  94. package/dist/translations/be.umd.js +2 -2
  95. package/dist/translations/bg.d.ts +1 -1
  96. package/dist/translations/bg.js +2 -2
  97. package/dist/translations/bg.umd.js +2 -2
  98. package/dist/translations/bn.d.ts +1 -1
  99. package/dist/translations/bn.js +2 -2
  100. package/dist/translations/bn.umd.js +2 -2
  101. package/dist/translations/bs.d.ts +1 -1
  102. package/dist/translations/bs.js +2 -2
  103. package/dist/translations/bs.umd.js +2 -2
  104. package/dist/translations/ca.d.ts +1 -1
  105. package/dist/translations/ca.js +2 -2
  106. package/dist/translations/ca.umd.js +2 -2
  107. package/dist/translations/cs.d.ts +1 -1
  108. package/dist/translations/cs.js +2 -2
  109. package/dist/translations/cs.umd.js +2 -2
  110. package/dist/translations/da.d.ts +1 -1
  111. package/dist/translations/da.js +2 -2
  112. package/dist/translations/da.umd.js +2 -2
  113. package/dist/translations/de-ch.d.ts +1 -1
  114. package/dist/translations/de-ch.js +2 -2
  115. package/dist/translations/de-ch.umd.js +2 -2
  116. package/dist/translations/de.d.ts +1 -1
  117. package/dist/translations/de.js +2 -2
  118. package/dist/translations/de.umd.js +2 -2
  119. package/dist/translations/el.d.ts +1 -1
  120. package/dist/translations/el.js +2 -2
  121. package/dist/translations/el.umd.js +2 -2
  122. package/dist/translations/en-au.d.ts +1 -1
  123. package/dist/translations/en-au.js +2 -2
  124. package/dist/translations/en-au.umd.js +2 -2
  125. package/dist/translations/en-gb.d.ts +1 -1
  126. package/dist/translations/en-gb.js +2 -2
  127. package/dist/translations/en-gb.umd.js +2 -2
  128. package/dist/translations/en.d.ts +1 -1
  129. package/dist/translations/en.js +2 -2
  130. package/dist/translations/en.umd.js +2 -2
  131. package/dist/translations/eo.d.ts +1 -1
  132. package/dist/translations/eo.js +2 -2
  133. package/dist/translations/eo.umd.js +2 -2
  134. package/dist/translations/es-co.d.ts +1 -1
  135. package/dist/translations/es-co.js +2 -2
  136. package/dist/translations/es-co.umd.js +2 -2
  137. package/dist/translations/es.d.ts +1 -1
  138. package/dist/translations/es.js +2 -2
  139. package/dist/translations/es.umd.js +2 -2
  140. package/dist/translations/et.d.ts +1 -1
  141. package/dist/translations/et.js +2 -2
  142. package/dist/translations/et.umd.js +2 -2
  143. package/dist/translations/eu.d.ts +1 -1
  144. package/dist/translations/eu.js +2 -2
  145. package/dist/translations/eu.umd.js +2 -2
  146. package/dist/translations/fa.d.ts +1 -1
  147. package/dist/translations/fa.js +2 -2
  148. package/dist/translations/fa.umd.js +2 -2
  149. package/dist/translations/fi.d.ts +1 -1
  150. package/dist/translations/fi.js +2 -2
  151. package/dist/translations/fi.umd.js +2 -2
  152. package/dist/translations/fr.d.ts +1 -1
  153. package/dist/translations/fr.js +2 -2
  154. package/dist/translations/fr.umd.js +2 -2
  155. package/dist/translations/gl.d.ts +1 -1
  156. package/dist/translations/gl.js +2 -2
  157. package/dist/translations/gl.umd.js +2 -2
  158. package/dist/translations/gu.d.ts +1 -1
  159. package/dist/translations/gu.js +2 -2
  160. package/dist/translations/gu.umd.js +2 -2
  161. package/dist/translations/he.d.ts +1 -1
  162. package/dist/translations/he.js +2 -2
  163. package/dist/translations/he.umd.js +2 -2
  164. package/dist/translations/hi.d.ts +1 -1
  165. package/dist/translations/hi.js +2 -2
  166. package/dist/translations/hi.umd.js +2 -2
  167. package/dist/translations/hr.d.ts +1 -1
  168. package/dist/translations/hr.js +2 -2
  169. package/dist/translations/hr.umd.js +2 -2
  170. package/dist/translations/hu.d.ts +1 -1
  171. package/dist/translations/hu.js +2 -2
  172. package/dist/translations/hu.umd.js +2 -2
  173. package/dist/translations/hy.d.ts +1 -1
  174. package/dist/translations/hy.js +2 -2
  175. package/dist/translations/hy.umd.js +2 -2
  176. package/dist/translations/id.d.ts +1 -1
  177. package/dist/translations/id.js +2 -2
  178. package/dist/translations/id.umd.js +2 -2
  179. package/dist/translations/it.d.ts +1 -1
  180. package/dist/translations/it.js +2 -2
  181. package/dist/translations/it.umd.js +2 -2
  182. package/dist/translations/ja.d.ts +1 -1
  183. package/dist/translations/ja.js +2 -2
  184. package/dist/translations/ja.umd.js +2 -2
  185. package/dist/translations/jv.d.ts +1 -1
  186. package/dist/translations/jv.js +2 -2
  187. package/dist/translations/jv.umd.js +2 -2
  188. package/dist/translations/kk.d.ts +1 -1
  189. package/dist/translations/kk.js +2 -2
  190. package/dist/translations/kk.umd.js +2 -2
  191. package/dist/translations/km.d.ts +1 -1
  192. package/dist/translations/km.js +2 -2
  193. package/dist/translations/km.umd.js +2 -2
  194. package/dist/translations/kn.d.ts +1 -1
  195. package/dist/translations/kn.js +2 -2
  196. package/dist/translations/kn.umd.js +2 -2
  197. package/dist/translations/ko.d.ts +1 -1
  198. package/dist/translations/ko.js +2 -2
  199. package/dist/translations/ko.umd.js +2 -2
  200. package/dist/translations/ku.d.ts +1 -1
  201. package/dist/translations/ku.js +2 -2
  202. package/dist/translations/ku.umd.js +2 -2
  203. package/dist/translations/lt.d.ts +1 -1
  204. package/dist/translations/lt.js +2 -2
  205. package/dist/translations/lt.umd.js +2 -2
  206. package/dist/translations/lv.d.ts +1 -1
  207. package/dist/translations/lv.js +2 -2
  208. package/dist/translations/lv.umd.js +2 -2
  209. package/dist/translations/ms.d.ts +1 -1
  210. package/dist/translations/ms.js +2 -2
  211. package/dist/translations/ms.umd.js +2 -2
  212. package/dist/translations/nb.d.ts +1 -1
  213. package/dist/translations/nb.js +2 -2
  214. package/dist/translations/nb.umd.js +2 -2
  215. package/dist/translations/ne.d.ts +1 -1
  216. package/dist/translations/ne.js +2 -2
  217. package/dist/translations/ne.umd.js +2 -2
  218. package/dist/translations/nl.d.ts +1 -1
  219. package/dist/translations/nl.js +2 -2
  220. package/dist/translations/nl.umd.js +2 -2
  221. package/dist/translations/no.d.ts +1 -1
  222. package/dist/translations/no.js +2 -2
  223. package/dist/translations/no.umd.js +2 -2
  224. package/dist/translations/oc.d.ts +1 -1
  225. package/dist/translations/oc.js +2 -2
  226. package/dist/translations/oc.umd.js +2 -2
  227. package/dist/translations/pl.d.ts +1 -1
  228. package/dist/translations/pl.js +2 -2
  229. package/dist/translations/pl.umd.js +2 -2
  230. package/dist/translations/pt-br.d.ts +1 -1
  231. package/dist/translations/pt-br.js +2 -2
  232. package/dist/translations/pt-br.umd.js +2 -2
  233. package/dist/translations/pt.d.ts +1 -1
  234. package/dist/translations/pt.js +2 -2
  235. package/dist/translations/pt.umd.js +2 -2
  236. package/dist/translations/ro.d.ts +1 -1
  237. package/dist/translations/ro.js +2 -2
  238. package/dist/translations/ro.umd.js +2 -2
  239. package/dist/translations/ru.d.ts +1 -1
  240. package/dist/translations/ru.js +2 -2
  241. package/dist/translations/ru.umd.js +2 -2
  242. package/dist/translations/si.d.ts +1 -1
  243. package/dist/translations/si.js +2 -2
  244. package/dist/translations/si.umd.js +2 -2
  245. package/dist/translations/sk.d.ts +1 -1
  246. package/dist/translations/sk.js +2 -2
  247. package/dist/translations/sk.umd.js +2 -2
  248. package/dist/translations/sl.d.ts +1 -1
  249. package/dist/translations/sl.js +2 -2
  250. package/dist/translations/sl.umd.js +2 -2
  251. package/dist/translations/sq.d.ts +1 -1
  252. package/dist/translations/sq.js +2 -2
  253. package/dist/translations/sq.umd.js +2 -2
  254. package/dist/translations/sr-latn.d.ts +1 -1
  255. package/dist/translations/sr-latn.js +2 -2
  256. package/dist/translations/sr-latn.umd.js +2 -2
  257. package/dist/translations/sr.d.ts +1 -1
  258. package/dist/translations/sr.js +2 -2
  259. package/dist/translations/sr.umd.js +2 -2
  260. package/dist/translations/sv.d.ts +1 -1
  261. package/dist/translations/sv.js +2 -2
  262. package/dist/translations/sv.umd.js +2 -2
  263. package/dist/translations/th.d.ts +1 -1
  264. package/dist/translations/th.js +2 -2
  265. package/dist/translations/th.umd.js +2 -2
  266. package/dist/translations/ti.d.ts +1 -1
  267. package/dist/translations/ti.js +2 -2
  268. package/dist/translations/ti.umd.js +2 -2
  269. package/dist/translations/tk.d.ts +1 -1
  270. package/dist/translations/tk.js +2 -2
  271. package/dist/translations/tk.umd.js +2 -2
  272. package/dist/translations/tr.d.ts +1 -1
  273. package/dist/translations/tr.js +2 -2
  274. package/dist/translations/tr.umd.js +2 -2
  275. package/dist/translations/tt.d.ts +1 -1
  276. package/dist/translations/tt.js +2 -2
  277. package/dist/translations/tt.umd.js +2 -2
  278. package/dist/translations/ug.d.ts +1 -1
  279. package/dist/translations/ug.js +2 -2
  280. package/dist/translations/ug.umd.js +2 -2
  281. package/dist/translations/uk.d.ts +1 -1
  282. package/dist/translations/uk.js +2 -2
  283. package/dist/translations/uk.umd.js +2 -2
  284. package/dist/translations/ur.d.ts +1 -1
  285. package/dist/translations/ur.js +2 -2
  286. package/dist/translations/ur.umd.js +2 -2
  287. package/dist/translations/uz.d.ts +1 -1
  288. package/dist/translations/uz.js +2 -2
  289. package/dist/translations/uz.umd.js +2 -2
  290. package/dist/translations/vi.d.ts +1 -1
  291. package/dist/translations/vi.js +2 -2
  292. package/dist/translations/vi.umd.js +2 -2
  293. package/dist/translations/zh-cn.d.ts +1 -1
  294. package/dist/translations/zh-cn.js +2 -2
  295. package/dist/translations/zh-cn.umd.js +2 -2
  296. package/dist/translations/zh.d.ts +1 -1
  297. package/dist/translations/zh.js +2 -2
  298. package/dist/translations/zh.umd.js +2 -2
  299. package/lang/contexts.json +0 -11
  300. package/lang/translations/af.po +1 -45
  301. package/lang/translations/ar.po +1 -45
  302. package/lang/translations/ast.po +1 -45
  303. package/lang/translations/az.po +1 -45
  304. package/lang/translations/be.po +1 -45
  305. package/lang/translations/bg.po +1 -45
  306. package/lang/translations/bn.po +1 -45
  307. package/lang/translations/bs.po +1 -45
  308. package/lang/translations/ca.po +1 -45
  309. package/lang/translations/cs.po +1 -45
  310. package/lang/translations/da.po +1 -45
  311. package/lang/translations/de-ch.po +1 -45
  312. package/lang/translations/de.po +1 -45
  313. package/lang/translations/el.po +1 -45
  314. package/lang/translations/en-au.po +1 -45
  315. package/lang/translations/en-gb.po +1 -45
  316. package/lang/translations/en.po +1 -45
  317. package/lang/translations/eo.po +1 -45
  318. package/lang/translations/es-co.po +1 -45
  319. package/lang/translations/es.po +1 -45
  320. package/lang/translations/et.po +1 -45
  321. package/lang/translations/eu.po +1 -45
  322. package/lang/translations/fa.po +1 -45
  323. package/lang/translations/fi.po +1 -45
  324. package/lang/translations/fr.po +1 -45
  325. package/lang/translations/gl.po +1 -45
  326. package/lang/translations/gu.po +1 -45
  327. package/lang/translations/he.po +1 -45
  328. package/lang/translations/hi.po +1 -45
  329. package/lang/translations/hr.po +1 -45
  330. package/lang/translations/hu.po +1 -45
  331. package/lang/translations/hy.po +1 -45
  332. package/lang/translations/id.po +1 -45
  333. package/lang/translations/it.po +1 -45
  334. package/lang/translations/ja.po +1 -45
  335. package/lang/translations/jv.po +1 -45
  336. package/lang/translations/kk.po +1 -45
  337. package/lang/translations/km.po +1 -45
  338. package/lang/translations/kn.po +1 -45
  339. package/lang/translations/ko.po +1 -45
  340. package/lang/translations/ku.po +1 -45
  341. package/lang/translations/lt.po +1 -45
  342. package/lang/translations/lv.po +1 -45
  343. package/lang/translations/ms.po +1 -45
  344. package/lang/translations/nb.po +1 -45
  345. package/lang/translations/ne.po +1 -45
  346. package/lang/translations/nl.po +1 -45
  347. package/lang/translations/no.po +1 -45
  348. package/lang/translations/oc.po +1 -45
  349. package/lang/translations/pl.po +1 -45
  350. package/lang/translations/pt-br.po +1 -45
  351. package/lang/translations/pt.po +1 -45
  352. package/lang/translations/ro.po +1 -45
  353. package/lang/translations/ru.po +1 -45
  354. package/lang/translations/si.po +1 -45
  355. package/lang/translations/sk.po +1 -45
  356. package/lang/translations/sl.po +1 -45
  357. package/lang/translations/sq.po +1 -45
  358. package/lang/translations/sr-latn.po +1 -45
  359. package/lang/translations/sr.po +1 -45
  360. package/lang/translations/sv.po +1 -45
  361. package/lang/translations/th.po +1 -45
  362. package/lang/translations/ti.po +1 -45
  363. package/lang/translations/tk.po +1 -45
  364. package/lang/translations/tr.po +1 -45
  365. package/lang/translations/tt.po +1 -45
  366. package/lang/translations/ug.po +1 -45
  367. package/lang/translations/uk.po +1 -45
  368. package/lang/translations/ur.po +1 -45
  369. package/lang/translations/uz.po +1 -45
  370. package/lang/translations/vi.po +1 -45
  371. package/lang/translations/zh-cn.po +1 -45
  372. package/lang/translations/zh.po +1 -45
  373. package/package.json +16 -16
  374. package/src/aiactions/aiactions.d.ts +5 -1
  375. package/src/aiactions/aiactions.js +2 -2
  376. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
  377. package/src/aiactions/model/aiactionsinteraction.js +2 -2
  378. package/src/aiactions/model/aiactionsreply.d.ts +1 -1
  379. package/src/aiactions/model/aiactionsreply.js +2 -2
  380. package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
  381. package/src/aiassistant/adapters/aiadapter.js +2 -2
  382. package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
  383. package/src/aiassistant/adapters/aitextadapter.js +2 -2
  384. package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
  385. package/src/aiassistant/adapters/awstextadapter.js +2 -2
  386. package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
  387. package/src/aiassistant/adapters/openaitextadapter.js +2 -2
  388. package/src/aiassistant/aiassistant.d.ts +1 -1
  389. package/src/aiassistant/aiassistant.js +2 -2
  390. package/src/aiassistant/aiassistantediting.d.ts +1 -1
  391. package/src/aiassistant/aiassistantediting.js +2 -2
  392. package/src/aiassistant/aiassistantui.d.ts +1 -1
  393. package/src/aiassistant/aiassistantui.js +2 -2
  394. package/src/aiassistant/legacyerrors.d.ts +1 -1
  395. package/src/aiassistant/legacyerrors.js +2 -2
  396. package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
  397. package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
  398. package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
  399. package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
  400. package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
  401. package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
  402. package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
  403. package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
  404. package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
  405. package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
  406. package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
  407. package/src/aiassistant/ui/form/aiformview.js +2 -2
  408. package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
  409. package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
  410. package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
  411. package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
  412. package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
  413. package/src/aiassistant/ui/form/prompthistory.js +2 -2
  414. package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
  415. package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
  416. package/src/aiassistant/utils/common-translations.d.ts +1 -1
  417. package/src/aiassistant/utils/common-translations.js +2 -2
  418. package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
  419. package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
  420. package/src/aiballoon/aiballoon.d.ts +1 -1
  421. package/src/aiballoon/aiballoon.js +2 -2
  422. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
  423. package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
  424. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
  425. package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
  426. package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
  427. package/src/aiballoon/ui/aiballoonview.js +2 -2
  428. package/src/aichat/aichat.d.ts +38 -4
  429. package/src/aichat/aichat.js +2 -2
  430. package/src/aichat/aichatcontroller.d.ts +5 -1
  431. package/src/aichat/aichatcontroller.js +2 -2
  432. package/src/aichat/aichatui.d.ts +3 -3
  433. package/src/aichat/aichatui.js +2 -2
  434. package/src/aichat/model/aichatcontext.d.ts +1 -1
  435. package/src/aichat/model/aichatcontext.js +2 -2
  436. package/src/aichat/model/aichatconversation.d.ts +10 -10
  437. package/src/aichat/model/aichatconversation.js +2 -2
  438. package/src/aichat/model/aichatinteraction.d.ts +1 -1
  439. package/src/aichat/model/aichatinteraction.js +2 -2
  440. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
  441. package/src/aichat/ui/aichatcontrolsview.js +2 -2
  442. package/src/aichat/ui/aichatfeedview.d.ts +1 -1
  443. package/src/aichat/ui/aichatfeedview.js +2 -2
  444. package/src/aichat/ui/aichatheaderview.d.ts +1 -1
  445. package/src/aichat/ui/aichatheaderview.js +2 -2
  446. package/src/aichat/ui/aichatview.d.ts +1 -1
  447. package/src/aichat/ui/aichatview.js +2 -2
  448. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
  449. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
  450. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
  451. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
  452. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
  453. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
  454. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
  455. package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
  456. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
  457. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
  458. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
  459. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
  460. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
  461. package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
  462. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
  463. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
  464. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
  465. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
  466. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
  467. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
  468. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
  469. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
  470. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
  471. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
  472. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
  473. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
  474. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
  475. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
  476. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
  477. package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
  478. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
  479. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
  480. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
  481. package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
  482. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
  483. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
  484. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
  485. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
  486. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
  487. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
  488. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
  489. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
  490. package/src/aichat/utils/eventnames.d.ts +1 -1
  491. package/src/aichat/utils/eventnames.js +2 -2
  492. package/src/aichat/utils/promisequeue.d.ts +1 -1
  493. package/src/aichat/utils/promisequeue.js +2 -2
  494. package/src/aichathistory/aichathistory.d.ts +1 -1
  495. package/src/aichathistory/aichathistory.js +2 -2
  496. package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
  497. package/src/aichathistory/aichathistorycontroller.js +2 -2
  498. package/src/aichathistory/aichathistoryui.d.ts +1 -1
  499. package/src/aichathistory/aichathistoryui.js +2 -2
  500. package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
  501. package/src/aichathistory/model/aichathistoryconversations.js +2 -2
  502. package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
  503. package/src/aichathistory/model/aichathistoryitem.js +2 -2
  504. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  505. package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
  506. package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
  507. package/src/aichathistory/ui/aichathistorylistview.js +2 -2
  508. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
  509. package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
  510. package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
  511. package/src/aichathistory/ui/aichathistoryview.js +2 -2
  512. package/src/aiconfig.d.ts +1 -1
  513. package/src/aiconfig.js +1 -1
  514. package/src/aicore/aiconnector.d.ts +4 -2
  515. package/src/aicore/aiconnector.js +2 -2
  516. package/src/aicore/aiediting.d.ts +1 -1
  517. package/src/aicore/aiediting.js +2 -2
  518. package/src/aicore/model/aicapabilities.d.ts +1 -1
  519. package/src/aicore/model/aicapabilities.js +2 -2
  520. package/src/aicore/model/aicontext.d.ts +1 -1
  521. package/src/aicore/model/aicontext.js +2 -2
  522. package/src/aicore/model/aiinteraction.d.ts +1 -1
  523. package/src/aicore/model/aiinteraction.js +2 -2
  524. package/src/aicore/model/aimodels.d.ts +3 -12
  525. package/src/aicore/model/aimodels.js +2 -2
  526. package/src/aicore/model/aireply.d.ts +1 -1
  527. package/src/aicore/model/aireply.js +2 -2
  528. package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
  529. package/src/aicore/pipeline/airesponseapplier.js +3 -3
  530. package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
  531. package/src/aicore/pipeline/airesponseparser.js +3 -3
  532. package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
  533. package/src/aicore/ui/aidisclaimerview.js +2 -2
  534. package/src/aicore/ui/aiskeleton.d.ts +1 -1
  535. package/src/aicore/ui/aiskeleton.js +2 -2
  536. package/src/aicore/ui/aispinner.d.ts +1 -1
  537. package/src/aicore/ui/aispinner.js +2 -2
  538. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
  539. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
  540. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
  541. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
  542. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
  543. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
  544. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
  545. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
  546. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
  547. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
  548. package/src/aicore/utils/common-translations.d.ts +1 -1
  549. package/src/aicore/utils/common-translations.js +2 -2
  550. package/src/aicore/utils/createresizebutton.d.ts +1 -1
  551. package/src/aicore/utils/createresizebutton.js +2 -2
  552. package/src/aicore/utils/documentposition.d.ts +1 -1
  553. package/src/aicore/utils/documentposition.js +2 -2
  554. package/src/aicore/utils/documentrange.d.ts +1 -1
  555. package/src/aicore/utils/documentrange.js +2 -2
  556. package/src/aicore/utils/eventnames.d.ts +1 -1
  557. package/src/aicore/utils/eventnames.js +2 -2
  558. package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
  559. package/src/aicore/utils/geteditorfromcontext.js +2 -2
  560. package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
  561. package/src/aicore/utils/getoperationsfromreply.js +2 -2
  562. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
  563. package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
  564. package/src/aicore/utils/htmlparser.d.ts +1 -1
  565. package/src/aicore/utils/htmlparser.js +2 -2
  566. package/src/aicore/utils/htmlstreamer.d.ts +1 -1
  567. package/src/aicore/utils/htmlstreamer.js +2 -2
  568. package/src/aicore/utils/scrollmanager.d.ts +1 -1
  569. package/src/aicore/utils/scrollmanager.js +2 -2
  570. package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
  571. package/src/aieditorintegration/aieditorintegration.js +2 -2
  572. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
  573. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
  574. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
  575. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
  576. package/src/aiquickactions/aiquickactions.d.ts +1 -1
  577. package/src/aiquickactions/aiquickactions.js +2 -2
  578. package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
  579. package/src/aiquickactions/aiquickactionscommand.js +2 -2
  580. package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
  581. package/src/aiquickactions/aiquickactionsediting.js +2 -2
  582. package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
  583. package/src/aiquickactions/aiquickactionsui.js +2 -2
  584. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
  585. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
  586. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
  587. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
  588. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
  589. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
  590. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
  591. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
  592. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
  593. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
  594. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
  595. package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
  596. package/src/aireviewmode/aireviewmode.d.ts +1 -1
  597. package/src/aireviewmode/aireviewmode.js +2 -2
  598. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  599. package/src/aireviewmode/aireviewmodecontroller.js +2 -2
  600. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  601. package/src/aireviewmode/aireviewmodeediting.js +2 -2
  602. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  603. package/src/aireviewmode/aireviewmodeui.js +2 -2
  604. package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
  605. package/src/aireviewmode/model/aireviewcheck.js +2 -2
  606. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
  607. package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
  608. package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
  609. package/src/aireviewmode/model/aireviewchecklist.js +2 -2
  610. package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
  611. package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
  612. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  613. package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
  614. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
  615. package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
  616. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  617. package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
  618. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
  619. package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
  620. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
  621. package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
  622. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
  623. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
  624. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
  625. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
  626. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
  627. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
  628. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
  629. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
  630. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
  631. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
  632. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
  633. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
  634. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
  635. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
  636. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
  637. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
  638. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
  639. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
  640. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
  641. package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
  642. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  643. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
  644. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  645. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
  646. package/src/aitabs/aitabs.d.ts +1 -1
  647. package/src/aitabs/aitabs.js +2 -2
  648. package/src/aitabs/aitabsmainview.d.ts +1 -1
  649. package/src/aitabs/aitabsmainview.js +2 -2
  650. package/src/aitabs/tabs/aitabsview.d.ts +1 -1
  651. package/src/aitabs/tabs/aitabsview.js +2 -2
  652. package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
  653. package/src/aitabs/tabs/tabbuttonview.js +2 -2
  654. package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
  655. package/src/aitabs/tabs/tabpanelview.js +2 -2
  656. package/src/augmentation.d.ts +1 -1
  657. package/src/augmentation.js +1 -1
  658. package/src/errors.d.ts +1 -1
  659. package/src/errors.js +2 -2
  660. package/src/errorsmap.d.ts +1 -1
  661. package/src/errorsmap.js +2 -2
  662. package/src/index.d.ts +1 -2
  663. package/src/index.js +2 -2
  664. package/theme/aiassistant/ai-dropdown.css +1 -1
  665. package/theme/aiassistant/ai-form.css +1 -1
  666. package/theme/aiassistant/ai.css +1 -1
  667. package/theme/aiballoon/aiballoon.css +1 -1
  668. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  669. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
  670. package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
  671. package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
  672. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  673. package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
  674. package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
  675. package/theme/aichat/aichat-controls/prompt-input.css +1 -1
  676. package/theme/aichat/aichat-controls.css +1 -1
  677. package/theme/aichat/aichat.css +1 -1
  678. package/theme/aichat/aichatfeed.css +55 -1
  679. package/theme/aichat/aichathistory.css +1 -1
  680. package/theme/aichat/aiminitoolbar.css +1 -1
  681. package/theme/aichat/aisuggestioncontainer.css +1 -1
  682. package/theme/aieditorintegration/aitogglebutton.css +1 -1
  683. package/theme/aiquickactions/aiquickactions.css +1 -1
  684. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
  685. package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
  686. package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
  687. package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
  688. package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
  689. package/theme/aireviewmode/aireviewmode.css +9 -4
  690. package/theme/aitabs/aitabsview.css +1 -1
  691. package/theme/aitabs/tabs/tabbuttonview.css +1 -1
  692. package/theme/aitabs/tabs/tabsview.css +1 -1
  693. package/theme/common/aibutton.css +1 -1
  694. package/theme/common/aidisclaimer.css +1 -1
  695. package/theme/common/aiheader.css +1 -1
  696. package/theme/common/ainotification.css +1 -1
  697. package/theme/common/aiskeleton.css +1 -1
  698. package/theme/common/aispinner.css +1 -1
  699. package/theme/common/aitrackchanges.css +1 -1
  700. package/src/aichat/model/aichatmodels.d.ts +0 -63
  701. package/src/aichat/model/aichatmodels.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x549580=_0x3cb5;(function(_0x1a02ef,_0x5d4e54){const _0x363766=_0x3cb5,_0x175337=_0x1a02ef();while(!![]){try{const _0xd9ffc4=-parseInt(_0x363766(0x74))/0x1*(parseInt(_0x363766(0x6f))/0x2)+parseInt(_0x363766(0x66))/0x3*(-parseInt(_0x363766(0x7d))/0x4)+parseInt(_0x363766(0x72))/0x5+-parseInt(_0x363766(0x79))/0x6+-parseInt(_0x363766(0x65))/0x7*(parseInt(_0x363766(0x7a))/0x8)+parseInt(_0x363766(0x7e))/0x9*(-parseInt(_0x363766(0x75))/0xa)+-parseInt(_0x363766(0x6b))/0xb*(-parseInt(_0x363766(0x76))/0xc);if(_0xd9ffc4===_0x5d4e54)break;else _0x175337['push'](_0x175337['shift']());}catch(_0x412bb2){_0x175337['push'](_0x175337['shift']());}}}(_0x2990,0xc0363));import{ToolbarView as _0x37a976,ButtonView as _0x3d3d42}from'ckeditor5/src/ui.js';import{getTranslation as _0x58ada5}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x37a976{constructor(_0x3bf407,_0x455ce8=!0x0,_0x4e39fd=!0x0){const _0x458974=_0x3cb5;super(_0x3bf407),this[_0x458974(0x7c)](_0x458974(0x77),!0x1),_0x455ce8&&(this[_0x458974(0x6e)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x7b)),_0x458974(0x67)),this[_0x458974(0x6e)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x486a7d=>!_0x486a7d),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x6e)])),_0x4e39fd&&(this[_0x458974(0x69)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x6d)),_0x455ce8?_0x458974(0x7f):_0x458974(0x67)),this[_0x458974(0x69)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x37fc94=>!_0x37fc94),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x69)])),this[_0x458974(0x6a)]({'attributes':{'class':[_0x458974(0x6c)]}});}[_0x549580(0x68)](_0x198251,_0x3a859e){const _0x1fc60d=_0x549580,_0x3950f5=new _0x3d3d42(this[_0x1fc60d(0x80)]);return _0x3950f5[_0x1fc60d(0x7c)]({'label':_0x198251,'class':_0x3a859e||'','isVisible':!0x0,'withText':!0x0}),_0x3950f5;}}function _0x3cb5(_0x4282e9,_0x48ba00){const _0x29903c=_0x2990();return _0x3cb5=function(_0x3cb5ca,_0x1da667){_0x3cb5ca=_0x3cb5ca-0x65;let _0x5474bb=_0x29903c[_0x3cb5ca];return _0x5474bb;},_0x3cb5(_0x4282e9,_0x48ba00);}function _0x2990(){const _0x5558c2=['extendTemplate','11fosKHB','ck-ai-balloon__toolbar','AI_BALLOON_SUGGEST_BUTTON','applyButton','434136mLrOyR','isEnabled','add','524430HdlnGp','bind','2gSXNpM','2008810NxcjCc','54404124WMgCqS','isLoading','items','1566510QiaCdf','8UcZAfR','AI_BALLOON_APPLY_BUTTON','set','86332lReNfC','54smYWEI','ck-ai-button-secondary','locale','10331517fsnQnk','66gCRmcy','ck-ai-button-primary','_createButton','suggestButton'];_0x2990=function(){return _0x5558c2;};return _0x2990();}
23
+ const _0x3e4787=_0x229b;function _0x5d96(){const _0x3df467=['isEnabled','add','items','134735RcvhEK','3ocHlDx','applyButton','ck-ai-button-secondary','12coogUE','6695143Qrovep','ck-ai-button-primary','bind','locale','3585050ojEdRd','set','isLoading','extendTemplate','274393krADEG','8078032oCVeIf','2XgSNvY','AI_BALLOON_APPLY_BUTTON','4699971EghCqN','_createButton','ck-ai-balloon__toolbar','AI_BALLOON_SUGGEST_BUTTON','suggestButton','1801252ILmXGd'];_0x5d96=function(){return _0x3df467;};return _0x5d96();}function _0x229b(_0x1c803a,_0x3f1780){const _0x5d96c4=_0x5d96();return _0x229b=function(_0x229b32,_0x4a6dc7){_0x229b32=_0x229b32-0x170;let _0x3d32c7=_0x5d96c4[_0x229b32];return _0x3d32c7;},_0x229b(_0x1c803a,_0x3f1780);}(function(_0x21c463,_0x46ae13){const _0x3c9442=_0x229b,_0x1854f5=_0x21c463();while(!![]){try{const _0x54f51e=parseInt(_0x3c9442(0x178))/0x1*(parseInt(_0x3c9442(0x17a))/0x2)+-parseInt(_0x3c9442(0x186))/0x3*(-parseInt(_0x3c9442(0x181))/0x4)+parseInt(_0x3c9442(0x185))/0x5*(parseInt(_0x3c9442(0x189))/0x6)+-parseInt(_0x3c9442(0x170))/0x7+parseInt(_0x3c9442(0x179))/0x8+-parseInt(_0x3c9442(0x17c))/0x9+parseInt(_0x3c9442(0x174))/0xa;if(_0x54f51e===_0x46ae13)break;else _0x1854f5['push'](_0x1854f5['shift']());}catch(_0x5c00cc){_0x1854f5['push'](_0x1854f5['shift']());}}}(_0x5d96,0xa321f));import{ToolbarView as _0x5b5f22,ButtonView as _0x3900fe}from'ckeditor5/src/ui.js';import{getTranslation as _0x26024f}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x5b5f22{constructor(_0x3befad,_0x222a23=!0x0,_0x1c008d=!0x0){const _0x11f900=_0x229b;super(_0x3befad),this[_0x11f900(0x175)](_0x11f900(0x176),!0x1),_0x222a23&&(this[_0x11f900(0x187)]=this[_0x11f900(0x17d)](_0x26024f(_0x3befad,_0x11f900(0x17b)),_0x11f900(0x171)),this[_0x11f900(0x187)][_0x11f900(0x172)](_0x11f900(0x182))['to'](this,_0x11f900(0x176),_0x5bd4dd=>!_0x5bd4dd),this[_0x11f900(0x184)][_0x11f900(0x183)](this[_0x11f900(0x187)])),_0x1c008d&&(this[_0x11f900(0x180)]=this[_0x11f900(0x17d)](_0x26024f(_0x3befad,_0x11f900(0x17f)),_0x222a23?_0x11f900(0x188):_0x11f900(0x171)),this[_0x11f900(0x180)][_0x11f900(0x172)](_0x11f900(0x182))['to'](this,_0x11f900(0x176),_0x184b94=>!_0x184b94),this[_0x11f900(0x184)][_0x11f900(0x183)](this[_0x11f900(0x180)])),this[_0x11f900(0x177)]({'attributes':{'class':[_0x11f900(0x17e)]}});}[_0x3e4787(0x17d)](_0x4b2332,_0x33fc8e){const _0x40b3ce=_0x3e4787,_0x3d8dc2=new _0x3900fe(this[_0x40b3ce(0x173)]);return _0x3d8dc2[_0x40b3ce(0x175)]({'label':_0x4b2332,'class':_0x33fc8e||'','isVisible':!0x0,'withText':!0x0}),_0x3d8dc2;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { type Dialog, View, FocusCycler, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1573e0=_0x19ac;function _0x19ac(_0x1ef5cf,_0x43509f){const _0x173296=_0x1732();return _0x19ac=function(_0x19acb9,_0x4f301f){_0x19acb9=_0x19acb9-0x188;let _0x1146fb=_0x173296[_0x19acb9];return _0x1146fb;},_0x19ac(_0x1ef5cf,_0x43509f);}(function(_0x53f496,_0x2176a3){const _0x86b532=_0x19ac,_0x274ce7=_0x53f496();while(!![]){try{const _0x26ab7f=parseInt(_0x86b532(0x1c2))/0x1*(parseInt(_0x86b532(0x197))/0x2)+-parseInt(_0x86b532(0x18a))/0x3+parseInt(_0x86b532(0x18d))/0x4*(-parseInt(_0x86b532(0x1ba))/0x5)+-parseInt(_0x86b532(0x1e3))/0x6*(parseInt(_0x86b532(0x1bb))/0x7)+-parseInt(_0x86b532(0x1ae))/0x8+-parseInt(_0x86b532(0x1dc))/0x9*(parseInt(_0x86b532(0x1a2))/0xa)+-parseInt(_0x86b532(0x191))/0xb*(-parseInt(_0x86b532(0x1bc))/0xc);if(_0x26ab7f===_0x2176a3)break;else _0x274ce7['push'](_0x274ce7['shift']());}catch(_0x3cedde){_0x274ce7['push'](_0x274ce7['shift']());}}}(_0x1732,0xbd2ac));import{ButtonView as _0x12c99f,View as _0x26ef86,ViewCollection as _0x1ec540,FocusCycler as _0x1bee75}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5da652,KeystrokeHandler as _0xfee0bc}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xffe363,IconPreviousArrow as _0xdda64d}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0xb064d3}from'./aiballoontoolbarview.js';function _0x1732(){const _0x301b84=['getIndex','198670onpYNR','189kPrryb','43691112bmlors','_addContentView','hideError','_dialogContent','setupRotator','stopAutoScroll','1RlNszv','AI_BALLOON_NEXT_TOOLTIP','_addToolbar','bind','applyButton','destroy','focusCycler','listenTo','showSuggestButton','errorMessage','render','createCollection','children','view','bindTemplate','disclaimerView','ck-hidden','isLoading','ai-balloon-content','shift\x20+\x20tab','showApplyButton','stop','focusTracker','_addDisclaimerView','execute','_createNextButtonView','18hhAgIY','change:isTrackChangesOn','locale','focus','toolbar','setTemplate','suggestButton','123996WdtjQP','scrollManager','showRecoverableError','showPrevious','ck-ai-suggestion__error-text','905922cZWISM','_availableActions','_mainView','48MynniV','remove','showNext','ai-balloon-error','11vCmvyL','isEnabled','set','clear','mainView','add','1252346GDrCgO','applySuggestion','_errorView','div','includes','showBlockingError','bodyView','setLoading','_focusables','_initializeScrollManager','_createErrorView','6840230bxiFlm','insertSuggestion','_getScrollableElement','focusLast','clearLoading','span','startAutoScroll','headerView','element','AI_BALLOON_PREVIOUS_TOOLTIP','keystrokes','showError','6299688lQUTNq','focusFirst','isTrackChangesOn','ck-ai-suggestion__error','updateContent','isErrorVisible','start','_createPreviousButtonView','tab','fire','addMany'];_0x1732=function(){return _0x301b84;};return _0x1732();}import{AIBalloonDisclaimerView as _0x592807}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4eff51}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x49e0ea}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0xd91d72}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1573e0(0x198),_0x1573e0(0x1a3),_0x1573e0(0x18f),_0x1573e0(0x188)];export class AIBalloonView extends _0x26ef86{[_0x1573e0(0x1d8)];[_0x1573e0(0x1ac)];[_0x1573e0(0x1c8)];[_0x1573e0(0x18b)];[_0x1573e0(0x19f)];[_0x1573e0(0x199)];[_0x1573e0(0x1e4)];constructor(_0x2018d9,_0x56a332,_0xe83fa2,_0x5da162){const _0x1f2b2c=_0x1573e0;super(_0x2018d9),this[_0x1f2b2c(0x18b)]=_0xe83fa2,this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1d3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b0),_0x5da162),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1cb),''),this[_0x1f2b2c(0x1d8)]=new _0x5da652(),this[_0x1f2b2c(0x1ac)]=new _0xfee0bc(),this[_0x1f2b2c(0x19f)]=this[_0x1f2b2c(0x1cd)](),this[_0x1f2b2c(0x1c8)]=new _0x1bee75({'focusables':this[_0x1f2b2c(0x19f)],'focusTracker':this[_0x1f2b2c(0x1d8)],'keystrokeHandler':this[_0x1f2b2c(0x1ac)],'actions':{'focusPrevious':_0x1f2b2c(0x1d5),'focusNext':_0x1f2b2c(0x1b6)}}),this[_0x1f2b2c(0x1bf)]=new _0x1ec540(),this[_0x1f2b2c(0x1bd)](_0x56a332[_0x1f2b2c(0x195)]),this[_0x1f2b2c(0x1d9)](),this[_0x1f2b2c(0x1c4)](_0x56a332[_0x1f2b2c(0x1d6)],_0x56a332[_0x1f2b2c(0x1ca)]),this[_0x1f2b2c(0x1e0)][_0x1f2b2c(0x1c5)](_0x1f2b2c(0x1d3))['to'](this),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x194)](),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x1b8)]([this[_0x1f2b2c(0x1e0)]]),this[_0x1f2b2c(0x1e1)]({'tag':_0x1f2b2c(0x19a),'attributes':{'class':_0x1f2b2c(0x1d4)},'children':this[_0x1f2b2c(0x1bf)]}),this['on'](_0x1f2b2c(0x1dd),()=>{const _0x261672=_0x1f2b2c;this[_0x261672(0x1bf)][_0x261672(0x18e)](this[_0x261672(0x1e0)]),this[_0x261672(0x1c4)](_0x56a332[_0x261672(0x1d6)],_0x56a332[_0x261672(0x1ca)]);});}[_0x1573e0(0x1cc)](){const _0x3d9994=_0x1573e0;super[_0x3d9994(0x1cc)]();for(const _0x2f1ae6 of this[_0x3d9994(0x19f)])this[_0x3d9994(0x1d8)][_0x3d9994(0x196)](_0x2f1ae6[_0x3d9994(0x1aa)]);this[_0x3d9994(0x1ac)][_0x3d9994(0x1c9)](this[_0x3d9994(0x1aa)]),this[_0x3d9994(0x1a0)]();}[_0x1573e0(0x1c7)](){const _0x341125=_0x1573e0;super[_0x341125(0x1c7)](),this[_0x341125(0x1e4)]&&this[_0x341125(0x1e4)][_0x341125(0x1c7)]();}[_0x1573e0(0x1df)](_0x48dfad){const _0x29b688=_0x1573e0;-0x1===_0x48dfad?this[_0x29b688(0x1c8)][_0x29b688(0x1a5)]():this[_0x29b688(0x1c8)][_0x29b688(0x1af)]();}[_0x1573e0(0x19e)](){const _0x578619=_0x1573e0;this[_0x578619(0x1d3)]=!0x0;}[_0x1573e0(0x1a6)](){const _0x3c069c=_0x1573e0;this[_0x3c069c(0x1d3)]=!0x1;}[_0x1573e0(0x1ad)](_0x4fd17b){const _0x1711d3=_0x1573e0;this[_0x1711d3(0x199)]||(this[_0x1711d3(0x199)]=this[_0x1711d3(0x1a1)](),this[_0x1711d3(0x1bf)][_0x1711d3(0x1b8)]([this[_0x1711d3(0x199)]],0x0)),this[_0x1711d3(0x1cb)]=_0x4fd17b,this[_0x1711d3(0x1b3)]=!0x0;}[_0x1573e0(0x1be)](){const _0x1c0af3=_0x1573e0;this[_0x1c0af3(0x1b3)]=!0x1;}[_0x1573e0(0x1e5)](_0x3a55da){const _0x4e1135=_0x1573e0;this[_0x4e1135(0x1ad)](_0x3a55da);}[_0x1573e0(0x19c)](_0xedcf7){const _0x3f0a84=_0x1573e0;this[_0x3f0a84(0x1ad)](_0xedcf7),this[_0x3f0a84(0x1e0)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)][_0x3f0a84(0x192)]=!0x1),this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)][_0x3f0a84(0x192)]=!0x1));}[_0x1573e0(0x1c0)](_0x20e3c9){const _0x37756e=_0x1573e0,_0xa9da45=this[_0x37756e(0x1db)](),_0x275182=this[_0x37756e(0x1b5)]();_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0xa9da45,0x2),_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0x275182,0x0),this[_0x37756e(0x19f)][_0x37756e(0x1b8)]([_0xa9da45,_0x275182]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0xa9da45[_0x37756e(0x1aa)]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0x275182[_0x37756e(0x1aa)]);}[_0x1573e0(0x1bd)](_0x23037b){const _0x25cbe7=_0x1573e0;this[_0x25cbe7(0x18c)]=_0x23037b,this[_0x25cbe7(0x1bf)][_0x25cbe7(0x196)](this[_0x25cbe7(0x18c)]);}[_0x1573e0(0x1b2)](_0x516742){const _0xda9279=_0x1573e0,_0x35e0eb=this[_0xda9279(0x1bf)][_0xda9279(0x1b9)](this[_0xda9279(0x18c)]);this[_0xda9279(0x1bf)][_0xda9279(0x18e)](this[_0xda9279(0x18c)]),this[_0xda9279(0x18c)]=_0x516742,this[_0xda9279(0x1bf)][_0xda9279(0x196)](this[_0xda9279(0x18c)],_0x35e0eb),this[_0xda9279(0x1be)](),this[_0xda9279(0x1e4)]&&this[_0xda9279(0x1e4)][_0xda9279(0x1c7)](),this[_0xda9279(0x1a0)]();}[_0x1573e0(0x1d9)](){const _0x3b2e36=_0x1573e0;this[_0x3b2e36(0x1d1)]=new _0x592807(this[_0x3b2e36(0x1de)]),this[_0x3b2e36(0x1bf)][_0x3b2e36(0x196)](this[_0x3b2e36(0x1d1)]);}[_0x1573e0(0x1c4)](_0x1e3525=!0x0,_0x520255=!0x0){const _0x32f3e4=_0x1573e0;_0x1e3525=_0x1e3525&&!this[_0x32f3e4(0x1b0)]&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x198)),_0x520255=_0x520255&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x1a3)),this[_0x32f3e4(0x1e0)]=new _0xb064d3(this[_0x32f3e4(0x1de)],_0x1e3525,_0x520255),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1c6)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x1ab830=_0x32f3e4;this[_0x1ab830(0x1b7)](_0x1ab830(0x198));}),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1e2)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x25bd8e=_0x32f3e4;this[_0x25bd8e(0x1b7)](_0x25bd8e(0x1a3));}),this[_0x32f3e4(0x1bf)][_0x32f3e4(0x196)](this[_0x32f3e4(0x1e0)]);}[_0x1573e0(0x1db)](){const _0x540eef=_0x1573e0,_0xe8a6b5=new _0x12c99f(this[_0x540eef(0x1de)]);return _0xe8a6b5[_0x540eef(0x193)]({'icon':_0xffe363,'tooltip':_0x4eff51(this[_0x540eef(0x1de)],_0x540eef(0x1c3))}),_0xe8a6b5['on'](_0x540eef(0x1da),()=>{const _0x24857b=_0x540eef;this[_0x24857b(0x1b7)](_0x24857b(0x18f));}),_0xe8a6b5;}[_0x1573e0(0x1b5)](){const _0x436ed7=_0x1573e0,_0x362510=new _0x12c99f(this[_0x436ed7(0x1de)]);return _0x362510[_0x436ed7(0x193)]({'icon':_0xdda64d,'tooltip':_0x4eff51(this[_0x436ed7(0x1de)],_0x436ed7(0x1ab))}),_0x362510['on'](_0x436ed7(0x1da),()=>{const _0x3811d0=_0x436ed7;this[_0x3811d0(0x1b7)](_0x3811d0(0x188));}),_0x362510;}[_0x1573e0(0x1a1)](){const _0x3af806=_0x1573e0,_0x38a87a=new _0x26ef86(this[_0x3af806(0x1de)]),_0x1617fd=new _0x26ef86(this[_0x3af806(0x1de)]);return _0x1617fd[_0x3af806(0x1e1)]({'tag':_0x3af806(0x1a7),'attributes':{'class':['ck',_0x3af806(0x189)]},'children':[{'text':this[_0x3af806(0x1d0)]['to'](_0x3af806(0x1cb))}]}),_0x38a87a[_0x3af806(0x1e1)]({'tag':_0x3af806(0x19a),'attributes':{'class':['ck',_0x3af806(0x1b1),_0x3af806(0x190),this[_0x3af806(0x1d0)]['if'](_0x3af806(0x1b3),_0x3af806(0x1d2),_0x3ff930=>!_0x3ff930)]},'children':[_0x1617fd]}),_0x38a87a;}[_0x1573e0(0x1a8)](){const _0x1b8ba1=_0x1573e0;this[_0x1b8ba1(0x1a0)](),this[_0x1b8ba1(0x1e4)]&&this[_0x1b8ba1(0x1e4)][_0x1b8ba1(0x1b4)]();}[_0x1573e0(0x1c1)](){const _0x519bdc=_0x1573e0;this[_0x519bdc(0x1e4)]&&this[_0x519bdc(0x1e4)][_0x519bdc(0x1d7)]();}[_0x1573e0(0x1a0)](){const _0x194b13=_0x1573e0,_0x1faa49=this[_0x194b13(0x1a4)]();_0x1faa49&&!this[_0x194b13(0x1e4)]&&(this[_0x194b13(0x1e4)]=new _0x49e0ea(_0x1faa49));}[_0x1573e0(0x1a4)](){const _0x1f3f6b=_0x1573e0;return this[_0x1f3f6b(0x18c)]instanceof _0xd91d72&&this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]?this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]:null;}}
23
+ const _0x876952=_0x5b58;(function(_0x5551ef,_0x29c8bd){const _0x3165e2=_0x5b58,_0x3eb4ba=_0x5551ef();while(!![]){try{const _0x4599a4=-parseInt(_0x3165e2(0x9c))/0x1*(-parseInt(_0x3165e2(0xb1))/0x2)+-parseInt(_0x3165e2(0xa5))/0x3+-parseInt(_0x3165e2(0xd7))/0x4*(-parseInt(_0x3165e2(0x8c))/0x5)+parseInt(_0x3165e2(0x89))/0x6+-parseInt(_0x3165e2(0xbb))/0x7*(parseInt(_0x3165e2(0x8d))/0x8)+-parseInt(_0x3165e2(0x8a))/0x9*(-parseInt(_0x3165e2(0xe1))/0xa)+parseInt(_0x3165e2(0x94))/0xb;if(_0x4599a4===_0x29c8bd)break;else _0x3eb4ba['push'](_0x3eb4ba['shift']());}catch(_0x30829e){_0x3eb4ba['push'](_0x3eb4ba['shift']());}}}(_0x2401,0x64625));import{ButtonView as _0x1bee3f,View as _0x2891ea,ViewCollection as _0x321c21,FocusCycler as _0x1eaeeb}from'ckeditor5/src/ui.js';import{FocusTracker as _0xf8474c,KeystrokeHandler as _0x323db5}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x59c86c,IconPreviousArrow as _0x12f884}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x307759}from'./aiballoontoolbarview.js';function _0x2401(){const _0x2c177e=['_mainView','AI_BALLOON_PREVIOUS_TOOLTIP','focusFirst','disclaimerView','ai-balloon-error','setTemplate','focusCycler','isErrorVisible','getIndex','headerView','createCollection','start','showRecoverableError','_createNextButtonView','shift\x20+\x20tab','applySuggestion','_addDisclaimerView','tab','focusTracker','_createPreviousButtonView','19132biwEWo','showSuggestButton','hideError','scrollManager','_dialogContent','includes','fire','stop','render','_initializeScrollManager','55900mdQxWk','focusLast','keystrokes','suggestButton','ck-hidden','3294666mpIrgB','144puAbKz','applyButton','125NzDLZt','72ExHrQM','setLoading','ck-ai-suggestion__error','AI_BALLOON_NEXT_TOOLTIP','isLoading','bind','showBlockingError','504570iRYgtJ','focus','isEnabled','add','_focusables','remove','updateContent','destroy','1VvKmaP','showNext','errorMessage','bodyView','view','execute','insertSuggestion','showPrevious','_availableActions','1645212AHOsds','span','clearLoading','locale','_createErrorView','bindTemplate','change:isTrackChangesOn','listenTo','stopAutoScroll','toolbar','_addContentView','ai-balloon-content','348044naUGMJ','showError','children','setupRotator','addMany','element','showApplyButton','clear','mainView','isTrackChangesOn','14343dWZvGq','set','_getScrollableElement','ck-ai-suggestion__error-text','_addToolbar','_errorView','div','startAutoScroll'];_0x2401=function(){return _0x2c177e;};return _0x2401();}import{AIBalloonDisclaimerView as _0x24728b}from'./aiballoondisclaimerview.js';import{getTranslation as _0x9eebff}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x3ab49d}from'../../aicore/utils/scrollmanager.js';function _0x5b58(_0x4892a0,_0x4da544){const _0x2401f1=_0x2401();return _0x5b58=function(_0x5b5883,_0x12bbb3){_0x5b5883=_0x5b5883-0x88;let _0x3ac3ee=_0x2401f1[_0x5b5883];return _0x3ac3ee;},_0x5b58(_0x4892a0,_0x4da544);}import{AISuggestionContainerView as _0x150e9b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x876952(0xd2),_0x876952(0xa2),_0x876952(0x9d),_0x876952(0xa3)];export class AIBalloonView extends _0x2891ea{[_0x876952(0xd5)];[_0x876952(0xe3)];[_0x876952(0xc9)];[_0x876952(0xa4)];[_0x876952(0x98)];[_0x876952(0xc0)];[_0x876952(0xda)];constructor(_0x30bdd2,_0x1157dd,_0x3f2a18,_0x4bf619){const _0x48aa2b=_0x876952;super(_0x30bdd2),this[_0x48aa2b(0xa4)]=_0x3f2a18,this[_0x48aa2b(0xbc)](_0x48aa2b(0x91),!0x1),this[_0x48aa2b(0xbc)](_0x48aa2b(0xba),_0x4bf619),this[_0x48aa2b(0xbc)](_0x48aa2b(0xca),!0x1),this[_0x48aa2b(0xbc)](_0x48aa2b(0x9e),''),this[_0x48aa2b(0xd5)]=new _0xf8474c(),this[_0x48aa2b(0xe3)]=new _0x323db5(),this[_0x48aa2b(0x98)]=this[_0x48aa2b(0xcd)](),this[_0x48aa2b(0xc9)]=new _0x1eaeeb({'focusables':this[_0x48aa2b(0x98)],'focusTracker':this[_0x48aa2b(0xd5)],'keystrokeHandler':this[_0x48aa2b(0xe3)],'actions':{'focusPrevious':_0x48aa2b(0xd1),'focusNext':_0x48aa2b(0xd4)}}),this[_0x48aa2b(0xdb)]=new _0x321c21(),this[_0x48aa2b(0xaf)](_0x1157dd[_0x48aa2b(0xb9)]),this[_0x48aa2b(0xd3)](),this[_0x48aa2b(0xbf)](_0x1157dd[_0x48aa2b(0xb7)],_0x1157dd[_0x48aa2b(0xd8)]),this[_0x48aa2b(0xae)][_0x48aa2b(0x92)](_0x48aa2b(0x91))['to'](this),this[_0x48aa2b(0x98)][_0x48aa2b(0xb8)](),this[_0x48aa2b(0x98)][_0x48aa2b(0xb5)]([this[_0x48aa2b(0xae)]]),this[_0x48aa2b(0xc8)]({'tag':_0x48aa2b(0xc1),'attributes':{'class':_0x48aa2b(0xb0)},'children':this[_0x48aa2b(0xdb)]}),this['on'](_0x48aa2b(0xab),()=>{const _0x4b06e8=_0x48aa2b;this[_0x4b06e8(0xdb)][_0x4b06e8(0x99)](this[_0x4b06e8(0xae)]),this[_0x4b06e8(0xbf)](_0x1157dd[_0x4b06e8(0xb7)],_0x1157dd[_0x4b06e8(0xd8)]);});}[_0x876952(0xdf)](){const _0x28378a=_0x876952;super[_0x28378a(0xdf)]();for(const _0x52c92e of this[_0x28378a(0x98)])this[_0x28378a(0xd5)][_0x28378a(0x97)](_0x52c92e[_0x28378a(0xb6)]);this[_0x28378a(0xe3)][_0x28378a(0xac)](this[_0x28378a(0xb6)]),this[_0x28378a(0xe0)]();}[_0x876952(0x9b)](){const _0xe9ce70=_0x876952;super[_0xe9ce70(0x9b)](),this[_0xe9ce70(0xda)]&&this[_0xe9ce70(0xda)][_0xe9ce70(0x9b)]();}[_0x876952(0x95)](_0x1d7fe0){const _0x5614dd=_0x876952;-0x1===_0x1d7fe0?this[_0x5614dd(0xc9)][_0x5614dd(0xe2)]():this[_0x5614dd(0xc9)][_0x5614dd(0xc5)]();}[_0x876952(0x8e)](){const _0x3e5266=_0x876952;this[_0x3e5266(0x91)]=!0x0;}[_0x876952(0xa7)](){const _0x39d1b1=_0x876952;this[_0x39d1b1(0x91)]=!0x1;}[_0x876952(0xb2)](_0x412ac3){const _0x4a9194=_0x876952;this[_0x4a9194(0xc0)]||(this[_0x4a9194(0xc0)]=this[_0x4a9194(0xa9)](),this[_0x4a9194(0xdb)][_0x4a9194(0xb5)]([this[_0x4a9194(0xc0)]],0x0)),this[_0x4a9194(0x9e)]=_0x412ac3,this[_0x4a9194(0xca)]=!0x0;}[_0x876952(0xd9)](){const _0x638acd=_0x876952;this[_0x638acd(0xca)]=!0x1;}[_0x876952(0xcf)](_0x57a8da){const _0x481262=_0x876952;this[_0x481262(0xb2)](_0x57a8da);}[_0x876952(0x93)](_0xb1d1d7){const _0x17db26=_0x876952;this[_0x17db26(0xb2)](_0xb1d1d7),this[_0x17db26(0xae)]&&(this[_0x17db26(0xae)][_0x17db26(0x8b)]&&(this[_0x17db26(0xae)][_0x17db26(0x8b)][_0x17db26(0x96)]=!0x1),this[_0x17db26(0xae)][_0x17db26(0xe4)]&&(this[_0x17db26(0xae)][_0x17db26(0xe4)][_0x17db26(0x96)]=!0x1));}[_0x876952(0xb4)](_0x2c4253){const _0x23d56d=_0x876952,_0x58d42d=this[_0x23d56d(0xd0)](),_0x584ef7=this[_0x23d56d(0xd6)]();_0x2c4253[_0x23d56d(0xa0)][_0x23d56d(0xcc)][_0x23d56d(0xb3)][_0x23d56d(0x97)](_0x58d42d,0x2),_0x2c4253[_0x23d56d(0xa0)][_0x23d56d(0xcc)][_0x23d56d(0xb3)][_0x23d56d(0x97)](_0x584ef7,0x0),this[_0x23d56d(0x98)][_0x23d56d(0xb5)]([_0x58d42d,_0x584ef7]),this[_0x23d56d(0xd5)][_0x23d56d(0x97)](_0x58d42d[_0x23d56d(0xb6)]),this[_0x23d56d(0xd5)][_0x23d56d(0x97)](_0x584ef7[_0x23d56d(0xb6)]);}[_0x876952(0xaf)](_0x3cc8b8){const _0x121c82=_0x876952;this[_0x121c82(0xc3)]=_0x3cc8b8,this[_0x121c82(0xdb)][_0x121c82(0x97)](this[_0x121c82(0xc3)]);}[_0x876952(0x9a)](_0x3f4979){const _0x5c9274=_0x876952,_0x5a3b60=this[_0x5c9274(0xdb)][_0x5c9274(0xcb)](this[_0x5c9274(0xc3)]);this[_0x5c9274(0xdb)][_0x5c9274(0x99)](this[_0x5c9274(0xc3)]),this[_0x5c9274(0xc3)]=_0x3f4979,this[_0x5c9274(0xdb)][_0x5c9274(0x97)](this[_0x5c9274(0xc3)],_0x5a3b60),this[_0x5c9274(0xd9)](),this[_0x5c9274(0xda)]&&this[_0x5c9274(0xda)][_0x5c9274(0x9b)](),this[_0x5c9274(0xe0)]();}[_0x876952(0xd3)](){const _0x7b8467=_0x876952;this[_0x7b8467(0xc6)]=new _0x24728b(this[_0x7b8467(0xa8)]),this[_0x7b8467(0xdb)][_0x7b8467(0x97)](this[_0x7b8467(0xc6)]);}[_0x876952(0xbf)](_0xbfbb97=!0x0,_0x2a1f2a=!0x0){const _0x52d504=_0x876952;_0xbfbb97=_0xbfbb97&&!this[_0x52d504(0xba)]&&this[_0x52d504(0xa4)][_0x52d504(0xdc)](_0x52d504(0xd2)),_0x2a1f2a=_0x2a1f2a&&this[_0x52d504(0xa4)][_0x52d504(0xdc)](_0x52d504(0xa2)),this[_0x52d504(0xae)]=new _0x307759(this[_0x52d504(0xa8)],_0xbfbb97,_0x2a1f2a),this[_0x52d504(0xae)][_0x52d504(0x8b)]?.['on'](_0x52d504(0xa1),()=>{const _0x1a985c=_0x52d504;this[_0x1a985c(0xdd)](_0x1a985c(0xd2));}),this[_0x52d504(0xae)][_0x52d504(0xe4)]?.['on'](_0x52d504(0xa1),()=>{const _0x2924e7=_0x52d504;this[_0x2924e7(0xdd)](_0x2924e7(0xa2));}),this[_0x52d504(0xdb)][_0x52d504(0x97)](this[_0x52d504(0xae)]);}[_0x876952(0xd0)](){const _0x2da951=_0x876952,_0x58c034=new _0x1bee3f(this[_0x2da951(0xa8)]);return _0x58c034[_0x2da951(0xbc)]({'icon':_0x59c86c,'tooltip':_0x9eebff(this[_0x2da951(0xa8)],_0x2da951(0x90))}),_0x58c034['on'](_0x2da951(0xa1),()=>{const _0x4015bd=_0x2da951;this[_0x4015bd(0xdd)](_0x4015bd(0x9d));}),_0x58c034;}[_0x876952(0xd6)](){const _0xb8c5b8=_0x876952,_0x30793c=new _0x1bee3f(this[_0xb8c5b8(0xa8)]);return _0x30793c[_0xb8c5b8(0xbc)]({'icon':_0x12f884,'tooltip':_0x9eebff(this[_0xb8c5b8(0xa8)],_0xb8c5b8(0xc4))}),_0x30793c['on'](_0xb8c5b8(0xa1),()=>{const _0x10b8af=_0xb8c5b8;this[_0x10b8af(0xdd)](_0x10b8af(0xa3));}),_0x30793c;}[_0x876952(0xa9)](){const _0x2e3006=_0x876952,_0x2fd9ec=new _0x2891ea(this[_0x2e3006(0xa8)]),_0x5cc50a=new _0x2891ea(this[_0x2e3006(0xa8)]);return _0x5cc50a[_0x2e3006(0xc8)]({'tag':_0x2e3006(0xa6),'attributes':{'class':['ck',_0x2e3006(0xbe)]},'children':[{'text':this[_0x2e3006(0xaa)]['to'](_0x2e3006(0x9e))}]}),_0x2fd9ec[_0x2e3006(0xc8)]({'tag':_0x2e3006(0xc1),'attributes':{'class':['ck',_0x2e3006(0x8f),_0x2e3006(0xc7),this[_0x2e3006(0xaa)]['if'](_0x2e3006(0xca),_0x2e3006(0x88),_0x40ff04=>!_0x40ff04)]},'children':[_0x5cc50a]}),_0x2fd9ec;}[_0x876952(0xc2)](){const _0x193927=_0x876952;this[_0x193927(0xe0)](),this[_0x193927(0xda)]&&this[_0x193927(0xda)][_0x193927(0xce)]();}[_0x876952(0xad)](){const _0x3e21fa=_0x876952;this[_0x3e21fa(0xda)]&&this[_0x3e21fa(0xda)][_0x3e21fa(0xde)]();}[_0x876952(0xe0)](){const _0x4fd5d9=_0x876952,_0x4cc82a=this[_0x4fd5d9(0xbd)]();_0x4cc82a&&!this[_0x4fd5d9(0xda)]&&(this[_0x4fd5d9(0xda)]=new _0x3ab49d(_0x4cc82a));}[_0x876952(0xbd)](){const _0x525faa=_0x876952;return this[_0x525faa(0xc3)]instanceof _0x150e9b&&this[_0x525faa(0xc3)][_0x525faa(0x9f)][_0x525faa(0xb6)]?this[_0x525faa(0xc3)][_0x525faa(0x9f)][_0x525faa(0xb6)]:null;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -11,7 +11,6 @@ import { AIChatController } from './aichatcontroller.js';
11
11
  import { AIEditing } from '../aicore/aiediting.js';
12
12
  import { AIChatUI } from './aichatui.js';
13
13
  import { type AIChatContextConfig } from './model/aichatcontext.js';
14
- import { type AIChatModelsConfig } from './model/aichatmodels.js';
15
14
  import { AIChatHistory } from '../aichathistory/aichathistory.js';
16
15
  import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
17
16
  /**
@@ -81,7 +80,42 @@ export interface AIChatConfig {
81
80
  /**
82
81
  * The configuration of the AI Chat models selection feature.
83
82
  *
84
- * Read more in {@link module:ai/aichat/model/aichatmodels~AIChatModelsConfig}.
83
+ * ```ts
84
+ * ClassicEditor.create( {
85
+ * ai: {
86
+ * chat: {
87
+ * models: {
88
+ * defaultModelId: ...,
89
+ * modelSelectorAlwaysVisible: ...,
90
+ * displayedModels: ...
91
+ * }
92
+ * }
93
+ * }
94
+ * } )
95
+ * .then( ... )
96
+ * .catch( ... );
97
+ * ```
85
98
  */
86
- models?: AIChatModelsConfig;
99
+ models?: {
100
+ /**
101
+ * Decides which model is selected by default when the AI Chat is initialized or when user starts a new conversation.
102
+ */
103
+ defaultModelId?: string;
104
+ /**
105
+ * Decides whether the model selector dropdown is always visible. It is `true` by default, which means
106
+ * the selector will be always visible in the UI. Setting it to `false`, hides the model selector dropdown when:
107
+ *
108
+ * * Only one model is available.
109
+ * * User has selected a model and send first message (which is the point when model cannot be changed).
110
+ */
111
+ modelSelectorAlwaysVisible?: boolean;
112
+ /**
113
+ * Decides which models are visible in the model selector dropdown. It can be a string or an array of strings.
114
+ *
115
+ * * It is optional and if not provided, all models are supported.
116
+ * * If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
117
+ * is later reflected in the model selector dropdown.
118
+ */
119
+ displayedModels?: string | Array<string>;
120
+ };
87
121
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x58b1a6=_0x1e2f;function _0x24b0(){var _0x5e8eb7=['AIChat','focusPromptInput','8264wEmaFi','91LOsWTn','ai.chat.context','get','isPremiumPlugin','removeSelectionFromChatContext','696ScpSAg','15126914KyZMuc','startConversation','9015htaPMd','318YKUOTY','ai.chat.models','8334684eNRlWX','2140BQHIko','requires','addSelectionToChatContext','1266euuFai','10nVLeQR','9459MEUNzF','context','plugins','sendMessage','isOfficialPlugin','187859wANmuw','196901okjvpw','config','define','pluginName'];_0x24b0=function(){return _0x5e8eb7;};return _0x24b0();}(function(_0x821c26,_0x52930d){var _0x1692e8=_0x1e2f,_0x2500ee=_0x821c26();while(!![]){try{var _0x62d359=-parseInt(_0x1692e8(0x11b))/0x1+-parseInt(_0x1692e8(0x113))/0x2*(parseInt(_0x1692e8(0x10c))/0x3)+-parseInt(_0x1692e8(0x109))/0x4*(parseInt(_0x1692e8(0x110))/0x5)+-parseInt(_0x1692e8(0x10d))/0x6*(parseInt(_0x1692e8(0x11a))/0x7)+parseInt(_0x1692e8(0x103))/0x8*(parseInt(_0x1692e8(0x115))/0x9)+parseInt(_0x1692e8(0x114))/0xa*(-parseInt(_0x1692e8(0x10a))/0xb)+parseInt(_0x1692e8(0x10f))/0xc*(parseInt(_0x1692e8(0x104))/0xd);if(_0x62d359===_0x52930d)break;else _0x2500ee['push'](_0x2500ee['shift']());}catch(_0x372152){_0x2500ee['push'](_0x2500ee['shift']());}}}(_0x24b0,0xee67d));import{ContextPlugin as _0x3a5c8b}from'ckeditor5/src/core.js';import{AIChatController as _0x50928a}from'./aichatcontroller.js';function _0x1e2f(_0x2c31ba,_0x179270){var _0x24b028=_0x24b0();return _0x1e2f=function(_0x1e2f51,_0x28dbc4){_0x1e2f51=_0x1e2f51-0xfe;var _0x3e9254=_0x24b028[_0x1e2f51];return _0x3e9254;},_0x1e2f(_0x2c31ba,_0x179270);}import{AIEditing as _0x5cf4d8}from'../aicore/aiediting.js';import{AIChatUI as _0x370704}from'./aichatui.js';import{AIChatHistory as _0x3f40f5}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3a5c8b{static get[_0x58b1a6(0x111)](){return[_0x50928a,_0x5cf4d8,_0x370704,_0x3f40f5];}static get[_0x58b1a6(0x100)](){var _0x578108=_0x58b1a6;return _0x578108(0x101);}static get[_0x58b1a6(0x119)](){return!0x0;}static get[_0x58b1a6(0x107)](){return!0x0;}constructor(_0x1b8b66){var _0x2e8242=_0x58b1a6;super(_0x1b8b66),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x105),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x10e),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x58b1a6(0x112)](){var _0x4bf8e3=_0x58b1a6;await this[_0x4bf8e3(0x116)][_0x4bf8e3(0x117)][_0x4bf8e3(0x106)](_0x50928a)[_0x4bf8e3(0x112)]();}async[_0x58b1a6(0x10b)](){var _0x2a2ea1=_0x58b1a6;await this[_0x2a2ea1(0x116)][_0x2a2ea1(0x117)][_0x2a2ea1(0x106)](_0x50928a)[_0x2a2ea1(0x10b)]();}async[_0x58b1a6(0x118)]({message:_0x214f60,quickActionData:_0x12a9ab}){var _0x2b7b64=_0x58b1a6;await this[_0x2b7b64(0x116)][_0x2b7b64(0x117)][_0x2b7b64(0x106)](_0x50928a)[_0x2b7b64(0x118)]({'message':_0x214f60,'quickActionData':_0x12a9ab});}[_0x58b1a6(0x108)](){var _0x15ef69=_0x58b1a6;this[_0x15ef69(0x116)][_0x15ef69(0x117)][_0x15ef69(0x106)](_0x50928a)[_0x15ef69(0x108)]();}[_0x58b1a6(0x102)](){var _0x4a7af2=_0x58b1a6;this[_0x4a7af2(0x116)][_0x4a7af2(0x117)][_0x4a7af2(0x106)](_0x50928a)[_0x4a7af2(0x102)]();}}
23
+ var _0x997db0=_0x3ea7;(function(_0x5a873e,_0x368851){var _0xdd39cf=_0x3ea7,_0x4f0bea=_0x5a873e();while(!![]){try{var _0x108d38=parseInt(_0xdd39cf(0x18a))/0x1+parseInt(_0xdd39cf(0x175))/0x2*(parseInt(_0xdd39cf(0x18d))/0x3)+parseInt(_0xdd39cf(0x179))/0x4*(parseInt(_0xdd39cf(0x17e))/0x5)+-parseInt(_0xdd39cf(0x17d))/0x6*(-parseInt(_0xdd39cf(0x178))/0x7)+-parseInt(_0xdd39cf(0x185))/0x8+-parseInt(_0xdd39cf(0x176))/0x9*(-parseInt(_0xdd39cf(0x186))/0xa)+-parseInt(_0xdd39cf(0x17a))/0xb;if(_0x108d38===_0x368851)break;else _0x4f0bea['push'](_0x4f0bea['shift']());}catch(_0xa8a33e){_0x4f0bea['push'](_0x4f0bea['shift']());}}}(_0xa6d3,0x7b3a6));import{ContextPlugin as _0x18cfca}from'ckeditor5/src/core.js';function _0xa6d3(){var _0x334e29=['ai.chat.models','startConversation','743824gQJXDi','5513470xBrOlA','plugins','config','pluginName','251684EslbIG','addSelectionToChatContext','requires','153vULkSK','context','ai.chat.context','isOfficialPlugin','36054ippEhS','9KwMcXx','focusPromptInput','1343083MLaMfr','24452hzyrCu','24366848cWhQqn','isPremiumPlugin','define','6wyEAnd','735VEZSLI','sendMessage','get','removeSelectionFromChatContext','AIChat'];_0xa6d3=function(){return _0x334e29;};return _0xa6d3();}import{AIChatController as _0x107a4c}from'./aichatcontroller.js';import{AIEditing as _0x16b8b2}from'../aicore/aiediting.js';import{AIChatUI as _0x4caa96}from'./aichatui.js';import{AIChatHistory as _0x45e518}from'../aichathistory/aichathistory.js';function _0x3ea7(_0x1fa57e,_0x9a409d){var _0xa6d3eb=_0xa6d3();return _0x3ea7=function(_0x3ea75d,_0x4a7c49){_0x3ea75d=_0x3ea75d-0x175;var _0x59daf3=_0xa6d3eb[_0x3ea75d];return _0x59daf3;},_0x3ea7(_0x1fa57e,_0x9a409d);}export class AIChat extends _0x18cfca{static get[_0x997db0(0x18c)](){return[_0x107a4c,_0x16b8b2,_0x4caa96,_0x45e518];}static get[_0x997db0(0x189)](){var _0x496567=_0x997db0;return _0x496567(0x182);}static get[_0x997db0(0x190)](){return!0x0;}static get[_0x997db0(0x17b)](){return!0x0;}constructor(_0x45ad72){var _0x25ea1c=_0x997db0;super(_0x45ad72),this[_0x25ea1c(0x18e)][_0x25ea1c(0x188)][_0x25ea1c(0x17c)](_0x25ea1c(0x18f),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x25ea1c(0x18e)][_0x25ea1c(0x188)][_0x25ea1c(0x17c)](_0x25ea1c(0x183),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x997db0(0x18b)](){var _0x451cdb=_0x997db0;await this[_0x451cdb(0x18e)][_0x451cdb(0x187)][_0x451cdb(0x180)](_0x107a4c)[_0x451cdb(0x18b)]();}async[_0x997db0(0x184)](){var _0x59e41a=_0x997db0;await this[_0x59e41a(0x18e)][_0x59e41a(0x187)][_0x59e41a(0x180)](_0x107a4c)[_0x59e41a(0x184)]();}async[_0x997db0(0x17f)]({message:_0xa56d24,quickActionData:_0x354960}){var _0x505a29=_0x997db0;await this[_0x505a29(0x18e)][_0x505a29(0x187)][_0x505a29(0x180)](_0x107a4c)[_0x505a29(0x17f)]({'message':_0xa56d24,'quickActionData':_0x354960});}[_0x997db0(0x181)](){var _0x176994=_0x997db0;this[_0x176994(0x18e)][_0x176994(0x187)][_0x176994(0x180)](_0x107a4c)[_0x176994(0x181)]();}[_0x997db0(0x177)](){var _0x2222ef=_0x997db0;this[_0x2222ef(0x18e)][_0x2222ef(0x187)][_0x2222ef(0x180)](_0x107a4c)[_0x2222ef(0x177)]();}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -42,6 +42,10 @@ export declare class AIChatController extends ContextPlugin {
42
42
  * @inheritDoc
43
43
  */
44
44
  afterInit(): Promise<void>;
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ destroy(): void;
45
49
  /**
46
50
  * Loads a conversation by its ID and sets it as the active conversation.
47
51
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32f9e9=_0x1a1c;(function(_0x403cfb,_0x5842ec){const _0x505420=_0x1a1c,_0x55b1fb=_0x403cfb();while(!![]){try{const _0x2c9135=-parseInt(_0x505420(0x10e))/0x1*(-parseInt(_0x505420(0xb7))/0x2)+-parseInt(_0x505420(0x124))/0x3*(parseInt(_0x505420(0x192))/0x4)+parseInt(_0x505420(0xe5))/0x5*(-parseInt(_0x505420(0xd1))/0x6)+parseInt(_0x505420(0x12b))/0x7*(parseInt(_0x505420(0x152))/0x8)+-parseInt(_0x505420(0x1d0))/0x9+-parseInt(_0x505420(0x133))/0xa*(parseInt(_0x505420(0xb2))/0xb)+parseInt(_0x505420(0xbd))/0xc;if(_0x2c9135===_0x5842ec)break;else _0x55b1fb['push'](_0x55b1fb['shift']());}catch(_0x2d569b){_0x55b1fb['push'](_0x55b1fb['shift']());}}}(_0x434b,0x9c37a));import{ContextPlugin as _0x160e9f,Editor as _0x5c9320}from'ckeditor5/src/core.js';import{CKEditorError as _0x4f662e,logError as _0x402656,scrollViewportToShowTarget as _0x4d71d9,uid as _0x53bca2}from'ckeditor5/src/utils.js';import{AIConnector as _0x4da528}from'../aicore/aiconnector.js';import{AITabs as _0x18e5e0}from'../aitabs/aitabs.js';function _0x1a1c(_0x23520a,_0x255263){const _0x434b30=_0x434b();return _0x1a1c=function(_0x1a1ce4,_0xdeee1a){_0x1a1ce4=_0x1a1ce4-0x95;let _0x4cbaf6=_0x434b30[_0x1a1ce4];return _0x4cbaf6;},_0x1a1c(_0x23520a,_0x255263);}import{AIChatConversation as _0x3dfc61}from'./model/aichatconversation.js';import{getTranslation as _0x293a47}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4452cb}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54810b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x373b10}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2fb4d2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x45a94c,DATA_ID_MODEL_ATTRIBUTE as _0x1de6ee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x96fa53,getOperationsFromReply as _0x35d81a}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2d8db0,getMinimalSelection as _0x3c6251}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xa4175c,_DetachOperation as _0x5a552b}from'ckeditor5/src/engine.js';import{findOne as _0x2682e8,getAttribute as _0x582ccb,serialize as _0x4229f4,Document as _0x30b153,findByAttribute as _0x1082e2}from'../aicore/utils/htmlparser.js';import{IconAI as _0x230613}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x30c4c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22f8df}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x160e9f{[_0x32f9e9(0x1b9)];[_0x32f9e9(0x1c2)];[_0x32f9e9(0xb6)];[_0x32f9e9(0xdd)];[_0x32f9e9(0x117)]=new Map();[_0x32f9e9(0x179)]=null;[_0x32f9e9(0x112)]=!0x1;static get[_0x32f9e9(0x17c)](){return[_0x4da528,_0x22f8df,_0x45a94c];}static get[_0x32f9e9(0xdc)](){const _0x3e5d26=_0x32f9e9;return _0x3e5d26(0x1c6);}static get[_0x32f9e9(0xf6)](){return!0x0;}static get[_0x32f9e9(0xcf)](){return!0x0;}[_0x32f9e9(0x1ff)](){const _0x5ed0cc=_0x32f9e9;this[_0x5ed0cc(0x1c2)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0xb0)),this[_0x5ed0cc(0xb6)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x12d)),this[_0x5ed0cc(0x1b9)]=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x19a)),this[_0x5ed0cc(0xdd)]=new _0x373b10({'connector':this[_0x5ed0cc(0x1c2)],'availableModels':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0x123)),'defaultModelId':this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x156)][_0x5ed0cc(0x190)](_0x5ed0cc(0xa0))});const _0x1c1316=this[_0x5ed0cc(0x11a)][_0x5ed0cc(0x167)][_0x5ed0cc(0x190)](_0x5ed0cc(0x1a3));this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x15a),()=>{const _0x12530a=_0x5ed0cc;this[_0x12530a(0x149)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x139),(_0x5df8d3,_0x44282e)=>{const _0x52edf7=_0x5ed0cc;this[_0x52edf7(0x1b4)]({'userMessage':_0x44282e});}),this[_0x5ed0cc(0x1b8)](_0x1c1316,_0x5ed0cc(0xa1),(_0xea4b7d,_0x4506bd)=>{const _0x33f2a1=_0x5ed0cc;this[_0x33f2a1(0x108)](_0x4506bd);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1a1),()=>{const _0x3d4817=_0x5ed0cc;_0x1c1316[_0x3d4817(0x103)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1fb),async()=>{const _0x2959cb=_0x5ed0cc;await this[_0x2959cb(0xfb)](),await this[_0x2959cb(0xa9)](),this[_0x2959cb(0x155)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa6),()=>{const _0x478ff9=_0x5ed0cc;this[_0x478ff9(0x1bf)]?.[_0x478ff9(0x1f8)](_0x293a47(this[_0x478ff9(0x11a)][_0x478ff9(0xf9)],_0x478ff9(0x107)));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x12f),(_0x1db14f,_0x9dbc4)=>{const _0x2145f6=_0x5ed0cc;this[_0x2145f6(0x1bf)]?.[_0x2145f6(0xc8)](Array[_0x2145f6(0x18a)](_0x9dbc4));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x170),(_0x4938c9,_0x1c3c24)=>{const _0x5ecda5=_0x5ed0cc;this[_0x5ecda5(0x1bf)]?.[_0x5ecda5(0x170)](_0x1c3c24);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x127),(_0x11f501,_0x9fd166)=>{const _0x2a2592=_0x5ed0cc;this[_0x2a2592(0x1bf)]?.[_0x2a2592(0x127)](_0x9fd166[_0x2a2592(0x119)],_0x9fd166[_0x2a2592(0xc1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x95),(_0x406fae,_0xfe2e96)=>{const _0x27d782=_0x5ed0cc;this[_0x27d782(0xde)](_0xfe2e96);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1b0),(_0x5e7e9d,_0x5442d9)=>{const _0x358a4a=_0x5ed0cc;this[_0x358a4a(0x1bf)]?.[_0x358a4a(0x1b0)](_0x5442d9[_0x358a4a(0x15d)],_0x5442d9[_0x358a4a(0xec)],_0x5442d9[_0x358a4a(0x1f1)]);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe8),()=>{const _0x830bf2=_0x5ed0cc;this[_0x830bf2(0x172)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x13f),()=>{const _0x49cabe=_0x5ed0cc;this[_0x49cabe(0x194)]();}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x199),(_0x1fefff,_0x40025a)=>{const _0x5b6a23=_0x5ed0cc;this[_0x5b6a23(0x1bf)]?.[_0x5b6a23(0xc0)](_0x40025a);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe0),(_0x5237fc,{replyId:_0x45ef48})=>{const _0xe1cc1f=_0x5ed0cc;console[_0xe1cc1f(0x171)](_0xe1cc1f(0xd7),_0x45ef48);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9b),(_0x305241,{replyId:_0x24b007})=>{const _0x158926=_0x5ed0cc;console[_0x158926(0x171)](_0x158926(0xbf),_0x24b007);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x1d2),(_0x4f7822,_0x53fa9c)=>{const _0x4a5053=_0x5ed0cc;this[_0x4a5053(0x11a)][_0x4a5053(0x167)][_0x4a5053(0x190)](_0x22f8df)[_0x4a5053(0x1ae)](),this[_0x4a5053(0x148)](_0x53fa9c);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x145),(_0x164307,{replyId:_0x631187,partIndex:_0x1f1965})=>{const _0x1895e7=_0x5ed0cc;this[_0x1895e7(0x112)]=this[_0x1895e7(0xb6)][_0x1895e7(0x189)],this[_0x1895e7(0x110)](_0x631187,_0x1f1965);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa5),(_0x472c00,{replyId:_0x228133,partIndex:_0x583b7b})=>{const _0x54f4c3=_0x5ed0cc,_0x579dfe=this[_0x54f4c3(0x1ea)](_0x228133,_0x583b7b);_0x579dfe&&_0x54f4c3(0xb5)!=_0x579dfe[_0x54f4c3(0x128)][_0x54f4c3(0x1ab)][_0x54f4c3(0x1d7)]&&this[_0x54f4c3(0x1b9)][_0x54f4c3(0x1d1)]([_0x579dfe[_0x54f4c3(0x128)]],_0x54f4c3(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xa4),()=>{const _0x4b6eaa=_0x5ed0cc;this[_0x4b6eaa(0x1b9)][_0x4b6eaa(0x144)](_0x4b6eaa(0xd2));}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x147),(_0x25572d,_0x146a18)=>{const _0x526c81=_0x5ed0cc;this[_0x526c81(0x11a)][_0x526c81(0x167)][_0x526c81(0x190)](_0x22f8df)[_0x526c81(0x1ae)](),this[_0x526c81(0x1e2)](_0x146a18);}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0x9c),async(_0x2a8a33,{replyId:_0xf613f4,showDiff:_0x402253})=>{const _0x21ed25=_0x5ed0cc,{reply:_0x183b5a}=this[_0x21ed25(0x9f)](_0xf613f4),_0x2f80f0=_0x183b5a[_0x21ed25(0x104)]({'showDiff':_0x402253});await this[_0x21ed25(0xb6)][_0x21ed25(0x1c8)]({'id':_0x183b5a['id'],'parts':_0x2f80f0,'renderingStrategy':_0x21ed25(0xbb)});}),this[_0x5ed0cc(0x1b8)](this[_0x5ed0cc(0xb6)],_0x5ed0cc(0xe6),(_0x2e544d,{replyId:_0x16643d,partIndex:_0x475b79})=>{const _0x2fd448=_0x5ed0cc;this[_0x2fd448(0x179)]?.[_0x2fd448(0xdf)]==_0x16643d&&this[_0x2fd448(0x179)]?.[_0x2fd448(0x19e)]==_0x475b79&&this[_0x2fd448(0x11a)][_0x2fd448(0x167)][_0x2fd448(0x190)](_0x22f8df)[_0x2fd448(0x1ae)]();const {reply:_0x46a2b1}=this[_0x2fd448(0x9f)](_0x16643d);_0x46a2b1[_0x2fd448(0x14d)](_0x475b79,_0x2fd448(0x15f)),this[_0x2fd448(0x1b9)][_0x2fd448(0x144)](_0x2fd448(0xd2));});}async[_0x32f9e9(0x1d3)](){const _0x1d87e9=_0x32f9e9;this[_0x1d87e9(0x11a)]instanceof _0x5c9320?this[_0x1d87e9(0x1f4)](this[_0x1d87e9(0x11a)]):this[_0x1d87e9(0x1b8)](this[_0x1d87e9(0x11a)][_0x1d87e9(0xd6)],_0x1d87e9(0xef),(_0x3df279,_0x248598)=>{const _0x550825=_0x1d87e9;_0x248598['on'](_0x550825(0x1d8),()=>{const _0x466d7c=_0x550825;this[_0x466d7c(0x1f4)](_0x248598);});}),await this[_0x1d87e9(0x149)]();}[_0x32f9e9(0x148)](_0x31194c){const _0x26359d=_0x32f9e9,_0x2bc6a0=_0x2fb4d2(this[_0x26359d(0x11a)]);if(!_0x2bc6a0[_0x26359d(0x167)][_0x26359d(0x1ba)](_0x26359d(0x14b)))throw new _0x4f662e(_0x26359d(0x137),null);const _0x1b7c62=this[_0x26359d(0x11a)][_0x26359d(0x167)][_0x26359d(0x190)](_0x26359d(0xeb)),{reply:_0x4d0f51,interaction:_0x518445}=this[_0x26359d(0x9f)](_0x31194c[_0x26359d(0xdf)]),_0xdb7311=this[_0x26359d(0x1ea)](_0x31194c[_0x26359d(0xdf)],_0x31194c[_0x26359d(0x19e)]),_0x35bcb3=void 0x0!==_0x31194c[_0x26359d(0x19e)]?[_0x4d0f51[_0x26359d(0xab)][_0x31194c[_0x26359d(0x19e)]]]:_0x4d0f51[_0x26359d(0xab)][_0x26359d(0xc7)](_0xdee74c=>_0x26359d(0x159)==_0xdee74c[_0x26359d(0x132)]),_0x40371f=_0x35bcb3[_0x26359d(0x114)](_0x2c0c93=>_0x4d0f51[_0x26359d(0xab)][_0x26359d(0x105)](_0x2c0c93));if(!_0xdb7311||_0x26359d(0xb5)==_0xdb7311[_0x26359d(0x128)][_0x26359d(0x1ab)][_0x26359d(0x1d7)])return void _0x40371f[_0x26359d(0x10b)](_0xa05894=>_0x4d0f51[_0x26359d(0x14d)](_0xa05894,_0x26359d(0x13a)));_0x40371f[_0x26359d(0x10b)](_0x543267=>_0x4d0f51[_0x26359d(0x14d)](_0x543267,_0x26359d(0xcc)));const _0xa5f620=_0x35d81a({'editor':_0x2bc6a0,'reply':_0x4d0f51,'interaction':_0x518445,'groups':_0x35bcb3,'transform':!0x0,'documentCompare':_0x1b7c62,'documentCompareOptions':{'anchor':_0x26359d(0x11d),'markDeletions':!0x0}});let _0x5eb937;_0xdb7311&&this[_0x26359d(0x166)](_0xdb7311[_0x26359d(0x128)]),_0x2bc6a0[_0x26359d(0xfe)][_0x26359d(0x1a9)](_0x101aa7=>{const _0x474654=_0x26359d;_0x5eb937=_0x101aa7[_0x474654(0x1a8)],_0x2bc6a0[_0x474654(0x167)][_0x474654(0x190)](_0x474654(0xb9))[_0x474654(0x11f)](_0xa5f620),this[_0x474654(0x1b9)][_0x474654(0x144)](_0x474654(0xd2));}),this[_0x26359d(0x117)][_0x26359d(0x16a)](_0x5eb937,{'interactionId':_0x518445['id'],'replyId':_0x4d0f51['id'],'indexes':_0x40371f[_0x26359d(0x17a)]()}),this[_0x26359d(0x14a)](_0x4d0f51);}[_0x32f9e9(0x1e2)](_0xfab59c){const _0x3acdf2=_0x32f9e9,_0x4d81a3=_0x2fb4d2(this[_0x3acdf2(0x11a)]),_0x5aefd7=this[_0x3acdf2(0x11a)][_0x3acdf2(0x167)][_0x3acdf2(0x190)](_0x45a94c),{reply:_0x5afff5,interaction:_0x188790}=this[_0x3acdf2(0x9f)](_0xfab59c[_0x3acdf2(0xdf)]),_0x2ed696=this[_0x3acdf2(0x1ea)](_0xfab59c[_0x3acdf2(0xdf)],_0xfab59c[_0x3acdf2(0x19e)]),_0x1b5983=void 0x0!==_0xfab59c[_0x3acdf2(0x19e)]?[_0x5afff5[_0x3acdf2(0xab)][_0xfab59c[_0x3acdf2(0x19e)]]]:_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0xc7)](_0x938059=>_0x3acdf2(0x159)==_0x938059[_0x3acdf2(0x132)]),_0x40831b=_0x1b5983[_0x3acdf2(0x114)](_0x39011f=>_0x5afff5[_0x3acdf2(0xab)][_0x3acdf2(0x105)](_0x39011f));if(!_0x2ed696||_0x3acdf2(0xb5)==_0x2ed696[_0x3acdf2(0x128)][_0x3acdf2(0x1ab)][_0x3acdf2(0x1d7)])return void _0x40831b[_0x3acdf2(0x10b)](_0x45bede=>_0x5afff5[_0x3acdf2(0x14d)](_0x45bede,_0x3acdf2(0x13a)));_0x40831b[_0x3acdf2(0x10b)](_0x186b18=>_0x5afff5[_0x3acdf2(0x14d)](_0x186b18,_0x3acdf2(0xcc)));const _0x3aad44=_0x35d81a({'editor':_0x4d81a3,'reply':_0x5afff5,'interaction':_0x188790,'groups':_0x1b5983,'transform':!0x0,'documentCompare':_0x5aefd7,'documentCompareOptions':{'anchor':_0x3acdf2(0x11d),'markDeletions':!0x1}});let _0x3df717;_0x2ed696&&this[_0x3acdf2(0x166)](_0x2ed696[_0x3acdf2(0x128)]),_0x4d81a3[_0x3acdf2(0xfe)][_0x3acdf2(0x1a9)](_0x1070b5=>{const _0x2be9e9=_0x3acdf2;_0x3df717=_0x1070b5[_0x2be9e9(0x1a8)];for(const _0x3aa8a7 of _0x3aad44)_0x3aa8a7[_0x2be9e9(0xb3)]=_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x1a0)][_0x2be9e9(0x183)],_0x96fa53(_0x4d81a3,_0x3aa8a7),_0x1070b5[_0x2be9e9(0x1a8)][_0x2be9e9(0xf0)](_0x3aa8a7),_0x4d81a3[_0x2be9e9(0xfe)][_0x2be9e9(0x168)](_0x3aa8a7);}),this[_0x3acdf2(0x117)][_0x3acdf2(0x16a)](_0x3df717,{'interactionId':_0x188790['id'],'replyId':_0x5afff5['id'],'indexes':_0x40831b[_0x3acdf2(0x17a)]()}),this[_0x3acdf2(0x14a)](_0x5afff5);}[_0x32f9e9(0x110)](_0x4567f2,_0x3f77bc){const _0x7139e=_0x32f9e9,_0x7493b1=_0x2fb4d2(this[_0x7139e(0x11a)]),_0x104d92=this[_0x7139e(0x1ea)](_0x4567f2,_0x3f77bc),_0x3783aa=this[_0x7139e(0x11a)][_0x7139e(0x167)][_0x7139e(0x190)](_0x22f8df);if(!_0x104d92)return void _0x3783aa[_0x7139e(0x1ae)]();const {range:_0x551a0b,currentIndex:_0x85c36b}=_0x104d92;if(_0x7139e(0xb5)==_0x551a0b[_0x7139e(0x1ab)][_0x7139e(0x1d7)]){const {reply:_0x510304}=this[_0x7139e(0x9f)](_0x4567f2);return _0x510304[_0x7139e(0x14d)](_0x85c36b,_0x7139e(0x13a)),void _0x3783aa[_0x7139e(0x1ae)]();}if(this[_0x7139e(0x179)]?.[_0x7139e(0xdf)]==_0x4567f2&&this[_0x7139e(0x179)]?.[_0x7139e(0x19e)]==_0x85c36b)return;this[_0x7139e(0xc6)](_0x3783aa),this[_0x7139e(0x179)]={'replyId':_0x4567f2,'partIndex':_0x85c36b};let _0x2d1bca=_0x7493b1[_0x7139e(0x156)][_0x7139e(0x190)](_0x7139e(0xce))||[..._0x54810b];_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b))||(_0x2d1bca=_0x2d1bca[_0x7139e(0xc7)](_0x4a2af9=>_0x7139e(0x1d2)!=_0x4a2af9));const _0x2592e0=new _0x30c4c1(_0x7493b1[_0x7139e(0xf9)],{'showDiff':this[_0x7139e(0x112)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x7139e(0x1cf)},'hideHeader':!0x0,'availableActions':_0x2d1bca});this[_0x7139e(0xc6)](_0x2592e0);const {reply:_0x3557c3}=this[_0x7139e(0x9f)](_0x4567f2),_0x858b07=_0x3557c3[_0x7139e(0x104)]({'showDiff':this[_0x7139e(0x112)]})[_0x7139e(0xc7)](_0x4007e9=>_0x4007e9[_0x7139e(0x1d4)]),_0x42d217=_0x858b07[_0x7139e(0xe1)](_0x4802e0=>_0x4802e0[_0x7139e(0x1e4)]==_0x85c36b);if(-0x1==_0x42d217)return;const _0x3e0fbc=_0x858b07[_0x42d217],_0x234d49=_0x858b07['at']((_0x42d217-0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)],_0x4321cb=_0x858b07['at']((_0x42d217+0x1)%_0x858b07[_0x7139e(0x1e1)])?.[_0x7139e(0x1e4)];_0x2592e0[_0x7139e(0x1f0)]({'parts':[_0x3e0fbc],'renderingStrategy':_0x7139e(0xbb)});const _0xc566af=_0x85c36b!==_0x234d49;this[_0x7139e(0x166)](_0x551a0b,!0x0),_0x3783aa[_0x7139e(0x10a)]({'index':_0x85c36b,'title':_0x293a47(this[_0x7139e(0x11a)][_0x7139e(0xf9)],_0x7139e(0xbc),(_0x42d217+0x1)[_0x7139e(0xb4)]()),'icon':_0x230613,'mainView':_0x2592e0,'showRotator':_0xc566af,'showApplyButton':!0x0,'showSuggestButton':_0x7493b1[_0x7139e(0x167)][_0x7139e(0x1ba)](_0x7139e(0x14b)),'ranges':[_0x551a0b]}),this[_0x7139e(0xb6)][_0x7139e(0x10d)](_0x4567f2,_0x85c36b),this[_0x7139e(0x1b8)](_0x2592e0,_0x7139e(0x9c),(_0x15b850,{showDiff:_0x33d99c})=>{const _0x1e969e=_0x7139e;this[_0x1e969e(0x112)]=_0x33d99c;const {reply:_0x1cff89}=this[_0x1e969e(0x9f)](_0x4567f2),_0x39b829=_0x1cff89[_0x1e969e(0x104)]({'showDiff':_0x33d99c,'groupIndex':_0x85c36b});_0x2592e0[_0x1e969e(0x1f0)]({'parts':_0x39b829,'renderingStrategy':_0x1e969e(0xbb)});}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x147),()=>{const _0x302dae=_0x7139e;this[_0x302dae(0x1e2)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x302dae(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x302dae(0x1ae)]();}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x1d2),()=>{const _0x4294e3=_0x7139e;this[_0x4294e3(0x148)]({'replyId':_0x4567f2,'partIndex':_0x85c36b}),_0xc566af?this[_0x4294e3(0x110)](_0x4567f2,_0x4321cb):_0x3783aa[_0x4294e3(0x1ae)]();}),_0xc566af&&(this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x173),()=>{const _0x307d1a=_0x7139e;this[_0x307d1a(0x110)](_0x4567f2,_0x4321cb);}),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x18c),()=>{const _0x8b05c5=_0x7139e;this[_0x8b05c5(0x110)](_0x4567f2,_0x234d49);})),this[_0x7139e(0x1b8)](_0x3783aa,_0x7139e(0x120),()=>{const _0x5843f0=_0x7139e;this[_0x5843f0(0xc6)](_0x3783aa),this[_0x5843f0(0xc6)](_0x2592e0),this[_0x5843f0(0x179)]=null;});}[_0x32f9e9(0x1ea)](_0x21f80c,_0x5e895e){const _0xa1cea6=_0x32f9e9,_0x800cd5=_0x2fb4d2(this[_0xa1cea6(0x11a)]),{reply:_0x30c464,interaction:_0x87906e}=this[_0xa1cea6(0x9f)](_0x21f80c),_0x17f7ce=_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0xc7)](_0x40efd5=>_0xa1cea6(0x159)==_0x40efd5[_0xa1cea6(0x132)]),_0x299a13=_0x17f7ce[_0xa1cea6(0x114)](_0xd2f051=>_0x30c464[_0xa1cea6(0xab)][_0xa1cea6(0x105)](_0xd2f051));void 0x0===_0x5e895e&&(_0x5e895e=_0x299a13[0x0]);const _0x499bd4=_0x299a13[_0xa1cea6(0x105)](_0x5e895e);if(-0x1==_0x499bd4)return null;const _0x4b0e98=_0x17f7ce[_0x499bd4],_0x26ec43=new _0x30b153([]),_0x2f5416=new _0x30b153([]);for(const _0x253aa7 of _0x4b0e98[_0xa1cea6(0x165)])if(_0xa1cea6(0x181)!=_0x253aa7[_0xa1cea6(0x184)]&&_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x253aa7[_0xa1cea6(0xee)][_0xa1cea6(0x1bd)](!0x0)),_0xa1cea6(0x13c)!=_0x253aa7[_0xa1cea6(0x184)]){const _0xd51655=_0x2682e8(_0x36de38=>_0x582ccb(_0x36de38,_0xa1cea6(0x14f))==_0x253aa7['id'],_0x30c464[_0xa1cea6(0x1bb)],!0x0);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0xd51655[_0xa1cea6(0x1bd)](!0x0));}if(0x0==_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x1e1)]){if(_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)]){const _0x2ea799=_0x1082e2(_0xa1cea6(0x14f),_0x4b0e98[_0xa1cea6(0x165)][0x0][_0xa1cea6(0x1bc)],_0x30c464[_0xa1cea6(0x1bb)]);_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x195)](_0x2ea799[_0xa1cea6(0x1bd)](!0x0)),_0x2ea799[_0xa1cea6(0x121)]&&(_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2ea799[_0xa1cea6(0x121)][_0xa1cea6(0x1bd)](!0x0)));}else{const _0x2f489a=_0x30c464[_0xa1cea6(0x1bb)][_0xa1cea6(0x1af)][0x0];if(!_0x2f489a)return null;_0x26ec43[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0)),_0x2f5416[_0xa1cea6(0x1af)][_0xa1cea6(0x154)](_0x2f489a[_0xa1cea6(0x1bd)](!0x0));}}const _0x50d59a=_0x87906e[_0xa1cea6(0xf5)](),_0x1eccf5=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x50d59a[_0xa1cea6(0xda)]),_0x588f94=_0x4229f4(_0x26ec43),_0x3f0b35=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x18ef41=_0x800cd5[_0xa1cea6(0xb1)][_0xa1cea6(0x1f7)](_0x588f94),_0x21a2e7=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x11c)](_0x3f0b35,0x0),_0xe72e12=_0x4229f4(_0x2f5416),_0x2dc7d6={'anchor':_0x21a2e7,'markDeletions':!0x1},_0x445ff3=_0x800cd5[_0xa1cea6(0x167)][_0xa1cea6(0x190)](_0x45a94c)[_0xa1cea6(0x101)](_0x588f94,_0xe72e12,_0x2dc7d6)[_0xa1cea6(0x19f)]();if(!_0x445ff3[_0xa1cea6(0x1e1)])return null;_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a9)](_0x2f42c4=>{const _0x252a41=_0xa1cea6;for(const _0xba971f of _0x445ff3)if(_0x252a41(0xad)==_0xba971f[_0x252a41(0x184)]){const _0xd9b304=_0xba971f[_0x252a41(0xa7)],_0x383bf3=_0xba971f[_0x252a41(0x1ce)],_0x47821c=new _0x5a552b(_0xd9b304,_0x383bf3);_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0x47821c),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0x47821c);}else _0x252a41(0xac)!==_0xba971f[_0x252a41(0x184)]&&(_0xba971f[_0x252a41(0xb3)]=null,_0xba971f[_0x252a41(0x11e)]=!0x1,_0x2f42c4[_0x252a41(0x1a8)][_0x252a41(0xf0)](_0xba971f),_0x800cd5[_0x252a41(0xfe)][_0x252a41(0x168)](_0xba971f));});const _0x5ddbd2=_0x3c6251(_0x800cd5,_0x445ff3,_0x3f0b35);_0x2d8db0(_0x800cd5[_0xa1cea6(0xfe)],_0x5ddbd2);const _0x5cdae0=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x42962c=_0x5ddbd2[_0xa1cea6(0x1c5)]()[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x17553f=[];let _0x381db3=_0x3f0b35,_0xc695a8=_0x18ef41;for(let _0x1dbd8c=0x0;_0x1dbd8c<_0x42962c[_0xa1cea6(0x1e1)];_0x1dbd8c++){const _0x2687f6=_0x381db3[_0xa1cea6(0x198)]-_0x42962c[_0x1dbd8c];_0x17553f[_0x1dbd8c]=_0xc695a8[_0xa1cea6(0x198)]-_0x2687f6,_0x381db3=_0x381db3[_0xa1cea6(0x1eb)](_0x42962c[_0x1dbd8c]),_0xc695a8=_0xc695a8[_0xa1cea6(0x1eb)](_0x17553f[_0x1dbd8c]);}const _0x4aca38=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x5cdae0),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x18ef41,_0x17553f)),_0x387b02=_0x18ef41[_0xa1cea6(0x1fe)](0x0)[_0xa1cea6(0x135)](_0x1de6ee),_0x33b9de=Array[_0xa1cea6(0x18a)](_0x1eccf5[_0xa1cea6(0x1d9)]())[_0xa1cea6(0xa2)](_0x4a481e=>_0x4a481e[_0xa1cea6(0x135)](_0x1de6ee)==_0x387b02)[_0xa1cea6(0x141)](),_0x58c549=_0x4aca38[_0xa1cea6(0x113)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)](),_0x53ee6b=_0x4aca38[_0xa1cea6(0x13d)][_0xa1cea6(0x1ee)][_0xa1cea6(0x17a)]();_0x58c549[0x0]=_0x33b9de[0x0]+_0x58c549[0x0],_0x53ee6b[0x0]=_0x33b9de[0x0]+_0x53ee6b[0x0];let _0x3bc8eb=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x111)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x58c549),_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0xc4)](_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0x187)](),_0x53ee6b));const _0x213892=_0x800cd5[_0xa1cea6(0xfe)][_0xa1cea6(0x1a0)][_0xa1cea6(0xa8)][_0xa1cea6(0x19f)](_0x50d59a[_0xa1cea6(0x183)]);for(const _0x110599 of _0x213892)_0x3bc8eb=_0xa4175c[_0xa1cea6(0x186)](_0x3bc8eb[_0xa1cea6(0x201)](_0x110599));return{'range':_0x3bc8eb,'currentIndex':_0x5e895e};}[_0x32f9e9(0x1f4)](_0x390375){const _0x4e96fb=_0x32f9e9;if(!_0x390375[_0x4e96fb(0x167)][_0x4e96fb(0x1ba)](_0x4e96fb(0x16d)))return;const _0x42c250=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0x98)),_0x1fc142=_0x390375[_0x4e96fb(0x12e)][_0x4e96fb(0x190)](_0x4e96fb(0xdb));this[_0x4e96fb(0x1b8)](_0x42c250,_0x4e96fb(0xf8),(_0xc9d956,_0x1d8daa,_0x333382)=>{const _0x56048f=_0x4e96fb,_0xd52e84=this[_0x56048f(0x117)][_0x56048f(0x190)](_0x1d8daa);if(!_0xd52e84)return;const _0x1e9cae=this[_0x56048f(0x1bf)][_0x56048f(0x1e0)](_0xd52e84[_0x56048f(0x19c)])[_0x56048f(0xfa)](_0xd52e84[_0x56048f(0xdf)]);_0xd52e84[_0x56048f(0x1dd)][_0x56048f(0x10b)](_0xe9299f=>_0x1e9cae[_0x56048f(0x14d)](_0xe9299f,_0x56048f(0x159))),this[_0x56048f(0x117)][_0x56048f(0x1c1)](_0x1d8daa),this[_0x56048f(0x117)][_0x56048f(0x16a)](_0x333382,_0xd52e84);}),this[_0x4e96fb(0x1b8)](_0x1fc142,_0x4e96fb(0xf8),(_0x565824,_0x5f5219,_0x2b2108)=>{const _0x6e3f7e=_0x4e96fb,_0x4949f4=this[_0x6e3f7e(0x117)][_0x6e3f7e(0x190)](_0x5f5219);if(!_0x4949f4)return;const _0x46ae1b=this[_0x6e3f7e(0x1bf)][_0x6e3f7e(0x1e0)](_0x4949f4[_0x6e3f7e(0x19c)])[_0x6e3f7e(0xfa)](_0x4949f4[_0x6e3f7e(0xdf)]);_0x4949f4[_0x6e3f7e(0x1dd)][_0x6e3f7e(0x10b)](_0x34b13c=>_0x46ae1b[_0x6e3f7e(0x14d)](_0x34b13c,_0x6e3f7e(0xcc))),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x1c1)](_0x5f5219),this[_0x6e3f7e(0x117)][_0x6e3f7e(0x16a)](_0x2b2108,_0x4949f4);});}async[_0x32f9e9(0x1e8)](_0x2ef91e){const _0x24793a=_0x32f9e9;this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x22f8df)[_0x24793a(0x1ae)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0xbb)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x0),await this[_0x24793a(0xfb)]();try{await this[_0x24793a(0x1c2)][_0x24793a(0x118)](_0x2ef91e)[_0x24793a(0x1be)](),await this[_0x24793a(0x149)](_0x2ef91e),this[_0x24793a(0x163)]('\x20');const {sessionId:_0x52a45d}=this[_0x24793a(0x1b9)][_0x24793a(0x1e7)]();await this[_0x24793a(0x1bf)][_0x24793a(0xae)](_0x2ef91e,_0x52a45d),this[_0x24793a(0x1bf)][_0x24793a(0x1ac)]()&&this[_0x24793a(0x1bf)][_0x24793a(0x1f8)](_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x107)));}catch(_0x576299){this[_0x24793a(0xb6)][_0x24793a(0x136)]({'errorMessage':_0x293a47(this[_0x24793a(0x11a)][_0x24793a(0xf9)],_0x24793a(0x1b6)),'id':_0x2ef91e}),this[_0x24793a(0x197)](new _0x4f662e(_0x24793a(0x1e6),this,{'error':_0x576299}));}finally{this[_0x24793a(0x11a)][_0x24793a(0x167)][_0x24793a(0x190)](_0x18e5e0)[_0x24793a(0x1a5)][_0x24793a(0x174)](_0x24793a(0x1e9)),this[_0x24793a(0xb6)][_0x24793a(0xe9)](),this[_0x24793a(0xb6)][_0x24793a(0x18b)](_0x24793a(0x17e)),this[_0x24793a(0xb6)][_0x24793a(0x1a7)](!0x1);}}[_0x32f9e9(0x142)](_0x4726d4){const _0x1babe=_0x32f9e9;this[_0x1babe(0x1bf)]['id']===_0x4726d4&&this[_0x1babe(0x149)]();}async[_0x32f9e9(0xfc)](){const _0x63c7ea=_0x32f9e9,_0x55e52c=this[_0x63c7ea(0x1b9)][_0x63c7ea(0x1b5)]();this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0xc9)](_0x55e52c),this[_0x63c7ea(0x1bf)]?.[_0x63c7ea(0x1f8)](_0x293a47(this[_0x63c7ea(0x11a)][_0x63c7ea(0xf9)],_0x63c7ea(0x107)));}[_0x32f9e9(0x155)](){const _0x36e45d=_0x32f9e9;this[_0x36e45d(0x1bf)]?.[_0x36e45d(0xf4)]();}[_0x32f9e9(0x1cc)](){const _0x431c6f=_0x32f9e9;this[_0x431c6f(0xb6)][_0x431c6f(0x1cc)]();}async[_0x32f9e9(0x15a)](){const _0xb795b6=_0x32f9e9;await this[_0xb795b6(0x149)]();}async[_0x32f9e9(0x9a)]({message:_0x348676,quickActionData:_0x760c3d}){const _0x46dfb1=_0x32f9e9;await this[_0x46dfb1(0x1b4)]({'userMessage':_0x348676,'quickActionData':_0x760c3d});}[_0x32f9e9(0xd8)](){const _0x19652b=_0x32f9e9,_0x342356=this[_0x19652b(0x11a)][_0x19652b(0x156)][_0x19652b(0x190)](_0x19652b(0x138));if(!_0x342356)throw new _0x4f662e(_0x19652b(0x1b3),this);return _0x342356;}async[_0x32f9e9(0x149)](_0x1c08c0){const _0x321bb0=_0x32f9e9;try{this[_0x321bb0(0xb6)][_0x321bb0(0x191)](),await this[_0x321bb0(0x164)](_0x1c08c0);}catch(_0x4e103d){this[_0x321bb0(0xb6)][_0x321bb0(0x136)]({'errorMessage':_0x293a47(this[_0x321bb0(0x11a)][_0x321bb0(0xf9)],_0x321bb0(0x129)),'id':_0x1c08c0||_0x53bca2()}),console[_0x321bb0(0xd5)](_0x4e103d),this[_0x321bb0(0x1bf)]=void 0x0,this[_0x321bb0(0xb6)][_0x321bb0(0x1a4)]();}}async[_0x32f9e9(0x164)](_0x21cd6e){const _0x4a365e=_0x32f9e9,_0x59c459=this[_0x4a365e(0x11a)][_0x4a365e(0x167)][_0x4a365e(0x190)](_0x22f8df);let _0x48caa6;_0x59c459[_0x4a365e(0x13e)]&&_0x59c459[_0x4a365e(0x1ae)](),_0x21cd6e||!this[_0x4a365e(0x1bf)]?_0x48caa6=this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0xa0)):this[_0x4a365e(0xb6)][_0x4a365e(0x17d)]&&(_0x48caa6=this[_0x4a365e(0x1bf)][_0x4a365e(0x14c)]['id']),await this[_0x4a365e(0xfb)]();const _0x115889=this[_0x4a365e(0xd8)](),_0x3b5b63=_0x21cd6e||_0x53bca2();this[_0x4a365e(0x1bf)]=new _0x3dfc61({'connector':this[_0x4a365e(0x1c2)],'chatModels':this[_0x4a365e(0xdd)],'selectedModelId':_0x48caa6,'conversationId':_0x3b5b63,'group':_0x115889,'getEditor':()=>_0x2fb4d2(this[_0x4a365e(0x11a)])}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xba),(_0x157398,_0x351898)=>{const _0x7574ad=_0x4a365e;this[_0x7574ad(0xb6)][_0x7574ad(0x1e5)](_0x351898),this[_0x7574ad(0xb6)][_0x7574ad(0x188)](),this[_0x7574ad(0xb6)][_0x7574ad(0x106)](),this[_0x7574ad(0xb6)][_0x7574ad(0x162)](),_0x21cd6e||(this[_0x7574ad(0xb6)][_0x7574ad(0x140)](),this[_0x7574ad(0x1bf)]?.[_0x7574ad(0x1f8)](_0x293a47(this[_0x7574ad(0x11a)][_0x7574ad(0xf9)],_0x7574ad(0x107))));}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xc5),(_0x1406e6,_0x1ef51d)=>{const _0x281bed=_0x4a365e;this[_0x281bed(0xb6)][_0x281bed(0xbe)](_0x1ef51d[_0x281bed(0xe7)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1aa),(_0x320968,_0x243258)=>{const _0x1c5c06=_0x4a365e;this[_0x1c5c06(0xb6)][_0x1c5c06(0x153)](_0x243258);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1da),()=>{const _0x422ca0=_0x4a365e;this[_0x422ca0(0xb6)][_0x422ca0(0x202)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c7),()=>{const _0x5343a0=_0x4a365e;this[_0x5343a0(0xb6)][_0x5343a0(0x202)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1a6),(_0x417a58,_0x2224eb)=>{const _0x114d9b=_0x4a365e;this[_0x114d9b(0xb6)][_0x114d9b(0x1db)](_0x2224eb,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x182),(_0xa2d69c,_0x42bad9)=>{const _0xaf86e3=_0x4a365e;this[_0xaf86e3(0xb6)][_0xaf86e3(0x1db)](_0x42bad9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x16e),()=>{const _0x2ba7da=_0x4a365e;this[_0x2ba7da(0xb6)][_0x2ba7da(0xea)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x17f),async()=>{const _0x2a3be9=_0x4a365e;await this[_0x2a3be9(0xb6)][_0x2a3be9(0x18d)]();}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c9),(_0xafdb84,_0x213527)=>{const _0x5dc8d3=_0x4a365e;this[_0x5dc8d3(0xb6)][_0x5dc8d3(0x1cd)](_0x213527['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x134),(_0x133742,_0xcc921,_0x33aab3)=>{const _0x1ba7ab=_0x4a365e;this[_0x1ba7ab(0x163)](_0xcc921,_0x33aab3);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x160),(_0x10e535,_0x1cc8a7)=>{const _0x50337b=_0x4a365e;_0x50337b(0x1fd)===_0x1cc8a7[_0x50337b(0x184)]?this[_0x50337b(0xb6)][_0x50337b(0x102)](_0x1cc8a7):this[_0x50337b(0xb6)][_0x50337b(0x157)](_0x1cc8a7);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd4),async(_0x374515,_0xd6a922)=>{const _0x5a4a67=_0x4a365e;await this[_0x5a4a67(0x131)]({'reply':_0xd6a922});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1f6),(_0x2ccdbf,{reply:_0x217359,index:_0x589d0a,state:_0x459095})=>{const _0x3f4c56=_0x4a365e;this[_0x3f4c56(0xb6)][_0x3f4c56(0x180)]({'id':_0x217359['id'],'index':_0x589d0a,'state':_0x459095});}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x19d),(_0x1f4923,_0x2c4f1b)=>{const _0x575aaa=_0x4a365e;if(this[_0x575aaa(0xb6)][_0x575aaa(0x1f2)](_0x2c4f1b[_0x575aaa(0xc3)],_0x2c4f1b[_0x575aaa(0x151)]),_0x575aaa(0x17b)===_0x2c4f1b[_0x575aaa(0xc3)][_0x575aaa(0x184)]){const _0x43091f=[..._0x2fb4d2(this[_0x575aaa(0x11a)])[_0x575aaa(0xfe)][_0x575aaa(0x1a0)][_0x575aaa(0x17b)][_0x575aaa(0x99)]()];this[_0x575aaa(0x1b9)][_0x575aaa(0x1d1)](_0x43091f,_0x575aaa(0xd9)+this[_0x575aaa(0x1bf)]?.['id']);}}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1cb),(_0x589c52,_0x59858d)=>{const _0x2a0152=_0x4a365e;this[_0x2a0152(0xb6)][_0x2a0152(0x95)](_0x59858d[_0x2a0152(0x1f9)]),_0x2a0152(0x14e)==_0x59858d[_0x2a0152(0x1f9)]&&this[_0x2a0152(0x155)](),_0x2a0152(0x17b)===_0x59858d[_0x2a0152(0x184)]&&this[_0x2a0152(0x1b9)][_0x2a0152(0x144)](_0x2a0152(0xd9)+this[_0x2a0152(0x1bf)]?.['id']);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1ad),(_0x4bf7c1,_0x2610b7)=>{const _0x472131=_0x4a365e;this[_0x472131(0xb6)][_0x472131(0x12a)](_0x2610b7[_0x472131(0xc3)][_0x472131(0x1f9)],_0x2610b7[_0x472131(0x151)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1d6),(_0x69c0,_0x7eacf2)=>{const _0x14f2c3=_0x4a365e;this[_0x14f2c3(0xb6)][_0x14f2c3(0x15e)](_0x7eacf2[_0x14f2c3(0x100)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd0),(_0x19460d,_0x2cb975)=>{const _0x7e07f3=_0x4a365e;this[_0x7e07f3(0xb6)][_0x7e07f3(0x10c)](_0x2cb975[_0x7e07f3(0x176)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xfd),(_0x5bb55f,_0x43f0c2)=>{const _0x492899=_0x4a365e;this[_0x492899(0xb6)][_0x492899(0xb8)](_0x43f0c2[_0x492899(0x15d)],_0x43f0c2[_0x492899(0x119)],_0x43f0c2[_0x492899(0x1a2)],_0x43f0c2[_0x492899(0x1f1)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xaa),(_0x46dcfb,_0x3ee352)=>{const _0x25f699=_0x4a365e;this[_0x25f699(0xb6)][_0x25f699(0xcd)](_0x3ee352[_0x25f699(0x15d)],_0x3ee352[_0x25f699(0xf3)],_0x3ee352[_0x25f699(0x1ec)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x158),(_0xd848d1,_0x337a1c)=>{const _0x1edf38=_0x4a365e;this[_0x1edf38(0xb6)][_0x1edf38(0xd3)](_0x337a1c);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0x1c0),(_0x42b549,_0x55a80f)=>{const _0x563b97=_0x4a365e;this[_0x563b97(0xb6)][_0x563b97(0x1ef)](_0x55a80f[_0x563b97(0x14c)],_0x55a80f[_0x563b97(0x9e)]);}),this[_0x4a365e(0x1bf)]['on'](_0x4a365e(0xd5),(_0xab4d1f,{error:_0x1b1993,interactionId:_0x1edf63,fileName:_0x19d4a7,url:_0x331383,sourceId:_0x859444,sourceLabel:_0x4133d5})=>{const _0x10b5f1=_0x4a365e,_0x21caf7=_0x1edf63?_0x1edf63+':'+_0x53bca2():_0x53bca2();_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1b7))?this[_0x10b5f1(0xb6)][_0x10b5f1(0xff)]({'staticMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1f3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xe2))||_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x146))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x129)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x126))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x177),_0x19d4a7),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1df))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18f),_0x331383),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x115))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xa3)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xcb))?this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1dc)),'id':_0x21caf7}):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0xf1))?(_0x859444&&this[_0x10b5f1(0xb6)][_0x10b5f1(0x16b)](_0x859444),this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x18e),_0x4133d5||_0x10b5f1(0x119)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1d5))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xca)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x116))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x1de)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x11b))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xed)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x1c4))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xe4)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x9d))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xf7)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):_0x1b1993[_0x10b5f1(0x175)][_0x10b5f1(0x161)](_0x10b5f1(0x196))?(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0xaf)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993)):(this[_0x10b5f1(0xb6)][_0x10b5f1(0x136)]({'errorMessage':_0x293a47(this[_0x10b5f1(0x11a)][_0x10b5f1(0xf9)],_0x10b5f1(0x97)),'id':_0x21caf7}),this[_0x10b5f1(0x197)](_0x1b1993));}),await this[_0x4a365e(0x1bf)][_0x4a365e(0x1ff)](this[_0x4a365e(0x11a)][_0x4a365e(0x156)][_0x4a365e(0x190)](_0x4a365e(0x193))),_0x21cd6e||await this[_0x4a365e(0x1bf)][_0x4a365e(0x113)]();}async[_0x32f9e9(0x1b4)]({userMessage:_0xe98774,quickActionData:_0x50136b}){const _0x20e20b=_0x32f9e9;if(!this[_0x20e20b(0x1bf)])throw new _0x4f662e(_0x20e20b(0x1c3));this[_0x20e20b(0x1bf)][_0x20e20b(0x1b1)]()&&await this[_0x20e20b(0x1bf)][_0x20e20b(0x185)](this[_0x20e20b(0x1b9)][_0x20e20b(0x1e7)]()),this[_0x20e20b(0x1bf)]['id']&&this[_0x20e20b(0x1bf)][_0x20e20b(0x200)]&&await this[_0x20e20b(0x1bf)][_0x20e20b(0xf2)]({'userMessage':_0xe98774,'quickActionData':_0x50136b}),this[_0x20e20b(0x150)]();}[_0x32f9e9(0x150)](){const _0x24d952=_0x32f9e9,_0x5dab0e=_0x2fb4d2(this[_0x24d952(0x11a)])[_0x24d952(0xfe)],_0x34dd6f=Array[_0x24d952(0x18a)](_0x5dab0e[_0x24d952(0x12c)][_0x24d952(0x96)](_0x4452cb));_0x5dab0e[_0x24d952(0x1a9)](_0x1f981d=>{const _0x4bb638=_0x24d952;_0x34dd6f[_0x4bb638(0x10b)](_0x3ca3d5=>_0x1f981d[_0x4bb638(0x13b)](_0x3ca3d5));});}[_0x32f9e9(0x1e3)](){const _0x3a1ebb=_0x32f9e9;console[_0x3a1ebb(0x171)](_0x3a1ebb(0x19b));}[_0x32f9e9(0x108)](_0x88cdbb){const _0x2dccf3=_0x32f9e9;this[_0x2dccf3(0xb6)][_0x2dccf3(0x122)](_0x88cdbb);}[_0x32f9e9(0x197)](_0x9e7b08){const _0x58384d=_0x32f9e9;_0x402656(_0x9e7b08[_0x58384d(0x175)]);}[_0x32f9e9(0xde)](_0x537c52){const _0x54b05c=_0x32f9e9;this[_0x54b05c(0x1bf)]?.[_0x54b05c(0x169)](_0x537c52);}[_0x32f9e9(0x172)](){const _0x3a5943=_0x32f9e9;this[_0x3a5943(0x1bf)]?.[_0x3a5943(0xe8)]();}[_0x32f9e9(0x194)](){const _0x42f6ea=_0x32f9e9;this[_0x42f6ea(0x1bf)]?.[_0x42f6ea(0x13f)]();}[_0x32f9e9(0x9f)](_0x4e0df3){const _0x3a7d1c=_0x32f9e9,[_0x3dae6b,_0x2d56eb]=_0x4e0df3[_0x3a7d1c(0x1fc)](':'),_0x51ee12=this[_0x3a7d1c(0x1bf)][_0x3a7d1c(0x1e0)](_0x3dae6b),_0x4a7349=_0x51ee12[_0x3a7d1c(0xfa)](_0x2d56eb);return{'interaction':_0x51ee12,'reply':_0x4a7349};}[_0x32f9e9(0x166)](_0x10888a,_0x1fbfaf=!0x1){const _0x36eed8=_0x32f9e9,_0x4e028a=_0x2fb4d2(this[_0x36eed8(0x11a)]),_0x3ef968={'target':_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x1a5)][_0x36eed8(0x125)][_0x36eed8(0x130)](_0x4e028a[_0x36eed8(0x143)][_0x36eed8(0x10f)][_0x36eed8(0xc2)](_0x10888a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1fbfaf};_0x1fbfaf&&(_0x3ef968[_0x36eed8(0x178)]=!0x0),_0x4d71d9(_0x3ef968);}[_0x32f9e9(0x163)](_0x4b3ff2,_0x39d61f=!0x1){const _0x581714=_0x32f9e9;this[_0x581714(0xb6)][_0x581714(0x134)](_0x4b3ff2||_0x293a47(this[_0x581714(0x11a)][_0x581714(0xf9)],_0x581714(0x16f)),_0x39d61f);}async[_0x32f9e9(0x131)]({reply:_0x4df877,renderingStrategy:_0x44f19e}){const _0x26ce6b=_0x32f9e9,{id:_0x1cc209,isDone:_0x40c1e3,type:_0x521003,parsedContent:_0x11ad92}=_0x4df877;if(_0x26ce6b(0x1ca)===_0x521003){const _0x18007b=_0x4df877[_0x26ce6b(0x104)]({'showDiff':this[_0x26ce6b(0xb6)][_0x26ce6b(0x189)]});await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1c8)]({'id':_0x1cc209,'parts':_0x18007b,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});}else _0x26ce6b(0x1fd)===_0x521003&&await this[_0x26ce6b(0xb6)][_0x26ce6b(0x1fa)]({'id':_0x1cc209,'parsedContent':_0x11ad92,'renderingStrategy':_0x44f19e,'isDone':_0x40c1e3});_0x40c1e3&&_0x4df877[_0x26ce6b(0x1f5)][_0x26ce6b(0x1e1)]>0x0&&this[_0x26ce6b(0xb6)][_0x26ce6b(0x109)](_0x1cc209,_0x4df877[_0x26ce6b(0x1f5)]);}async[_0x32f9e9(0xfb)](){const _0x5b7d48=_0x32f9e9,_0x2c861f=this[_0x5b7d48(0x1bf)]?.[_0x5b7d48(0x15b)];_0x2c861f&&(_0x2c861f[_0x5b7d48(0xe3)](),this[_0x5b7d48(0xb6)][_0x5b7d48(0x1ed)](_0x2c861f));}async[_0x32f9e9(0xa9)](){const _0x136919=_0x32f9e9,_0x495e0a=this[_0x136919(0x1bf)]?.[_0x136919(0x15b)];if(_0x495e0a){for await(const _0x3106d6 of _0x495e0a[_0x136919(0x16c)])await this[_0x136919(0x131)]({'reply':_0x3106d6,'renderingStrategy':_0x136919(0xbb)});}}[_0x32f9e9(0x14a)](_0x26679c){const _0x24ace5=_0x32f9e9,_0x261638={'positiveCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0xc7)](_0x543c59=>_0x24ace5(0xcc)===_0x543c59[_0x24ace5(0x132)])[_0x24ace5(0x1e1)],'totalCount':_0x26679c[_0x24ace5(0xab)][_0x24ace5(0x1e1)],'modificationId':_0x26679c['id']},_0x4c7703=this[_0x24ace5(0x1bf)][_0x24ace5(0x1e0)](_0x26679c[_0x24ace5(0x19c)])[_0x24ace5(0x1b2)];this[_0x24ace5(0x1c2)][_0x24ace5(0x15c)](this[_0x24ace5(0x1bf)]['id'],_0x4c7703,_0x261638);}}function _0x434b(){const _0x5a5eb6=['_removeAISelectionMarkers','isLoading','2295416KbjpeD','addFeedItemUserMessage','push','removeSelectionFromChatContext','config','addFeedItemAISuggestion','capabilitiesUpdated','pending','startConversation','lastInteraction','upsertAIChatRating','sourceId','setConversationContext','rejected','replyCreated','startsWith','clearConversationContextUI','updateConversationTitle','_handleStartConversation','changes','_scrollToSuggestionRange','plugins','applyOperation','removeFromContext','set','closeSourceResourceBalloon','replies','Undo','interactionStarted','AI_CHAT_UNTITLED_CONVERSATION','addUrlToContext','log','_toggleWebSearch','showNext','activateTab','message','options','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','alignToTop','_previewedChangeGroup','slice','selection','requires','isModelAvailable','streaming','interactionFinished','updateFeedItemAIReplySuggestionPartState','removed','reasoningFinished','version','type','updateCurrentDocumentInContext','_createFromRanges','getRoot','resetMessageInput','showDiff','from','setFeedItemRenderingStrategy','showPrevious','finishInteraction','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','get','enableControls','316sWzidB','ai.chat.context','_toggleReasoning','unshift','ai-chat-context-form-data-size-limits-exceeded','_logError','maxOffset','selectModel','AIEditing','Showing\x20conversation\x20history...','interactionId','contextItemAdded','partIndex','getOperations','document','resizeTabs','resources','AITabs','disableControls','view','webSearchFinished','toggleLoadingSkeleton','batch','change','interactionCreated','root','isCurrentDocumentInConversation','contextItemLoadingEnded','close','children','loadSourceResources','isCurrentDocumentInContext','messageId','ai-chat-missing-channel-id','_handleUIUserMessage','getSelectionText','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-request-aborted','listenTo','_aiEditing','has','documentContextContent','anchorId','cloneNode','getConversation','activeConversation','modelSelected','delete','_aiConnector','ai-chat-controller-no-active-conversation','ai-chat-context-file-too-large','getFirstRange','AIChatController','reasoningStarted','updateFeedItemAIReplySuggestionContent','interactionDestroyed','modification-delta','contextItemRemoved','focusPromptInput','removeFeedInteraction','howMany','full','8025237pJNRBL','showFakeVisualSelection','insertSuggestion','afterInit','hasChanges','ai-chat-resource-load-failed','contextSent','rootName','ready','getChildren','webSearchStarted','addFeedInteractionHeader','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','indexes','AI_CHAT_INVALID_REQUEST','ai-chat-url-upload-failed','getInteraction','length','_applySuggestion','_showConversationHistory','index','createConversation','ai-chat-conversation-not-found','getDocumentData','loadConversation','chat','_getDocumentRangeForReplyChanges','getChildAtOffset','isInContext','stopInteraction','path','setSelectedModel','updateContent','uid','addContextItem','AI_CHAT_ABORTED_MESSAGE','_integrateEditor','sources','replyChangeGroupStateUpdated','parse','addCurrentDocumentToContext','uiId','updateFeedItemAIReplyContent','abortPromptStream','split','text-delta','getChild','init','isStarted','getTransformedByOperation','setLoadingMessage','removeContextItem','getMarkersGroup','AI_CHAT_GENERIC_ERROR','undo','getRanges','sendMessage','dislike','toggleSuggestionDisplayMode','ai-chat-context-file-too-many-pages','isDisabled','getInteractionAndReplyById','ai.chat.models.defaultModelId','resizedTabs','find','AI_CHAT_CONTEXT_INVALID_DATA','mouseLeaveSuggestion','mouseOverSuggestion','addDocumentToContext','sourcePosition','history','_flushLastInteractionUI','resourceStateChanged','changeGroups','marker','remove','load','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','AIConnector','data','85558FTLPqO','baseVersion','toString','$graveyard','_aiChatUi','46974laPLzM','populateSourceResourceBalloon','TrackChangesEditing','conversationInitialized','static','AI_BALLOON_HEADER_TITLE','34372296ELWEYD','setIsUploadInProgress','Disliked\x20response','setModel','resource','toViewRange','contextItem','createPositionFromPath','uploadProgressChanged','stopListening','filter','addFilesToContext','addSelectionToContext','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-context-unsupported-type','accepted','updateResourceState','ai.availableReplyActions','isPremiumPlugin','addContextOptionsChanged','315624kzTmMq','ai-chat-controller-mouse-over','updateCapabilities','replyContentUpdated','error','editors','Liked\x20response','getGroupId','ai-conversation-','content','redo','pluginName','_aiChatModels','_removeFromContext','replyId','like','findIndex','ai-chat-conversation-init-failed','stop','AI_CHAT_CONTEXT_FILE_TOO_LARGE','50AqFObq','rejectSuggestion','isUploadInProgress','toggleWebSearch','startAutoScroll','startInteraction','DocumentCompare','query','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','node','add','addOperation','ai-chat-source-resources-load-failed','handleUserInteraction','resourceId','removeSelectionFromContext','getDocumentContext','isOfficialPlugin','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','revert','locale','getReply','_stopLastInteraction','addSelectionToChatContext','sourceResourcesLoaded','model','addFeedItemStaticMessage','contextItems','getDiff','addFeedItemAIReply','resize','getContentParts','indexOf','clearPendingContextUI','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_setIsMaximized','updateFeedItemAIReplySources','open','forEach','setAddContextOptions','scrollFeedToSuggestion','5eojETa','mapper','_openBalloonFor','createRange','_balloonShowDiff','start','map','ai-chat-context-invalid-data','ai-chat-invalid-request','_batchToChanges','fetchConversation','source','context','ai-chat-context-unsupported-file-type','createPositionAt','main','isDocumentOperation','_applyOperationsAsSuggestions','dialogClosed','nextSibling','setIsMaximized','ai.chat.models.displayedModels','43629UlkHEo','domConverter','ai-chat-file-upload-failed','addResourceToContext','range','AI_CHAT_UNABLE_TO_START_CONVERSATION','setContextItemLoading','7AtcLEz','markers','AIChatUI','commands','addFileToContext','viewRangeToDom','_updateReplyContent','state','80crgjri','setConversationTitle','getAttribute','addFeedItemError','ai-no-track-changes','collaboration.channelId','sendUserMessage','outdated','removeMarker','new','end','isOpen','toggleReasoning','resetConversationTitle','getPath','handleRemovedConversation','editing','hideFakeVisualSelection','showChangeInText','ai-chat-conversation-start-failed','applySuggestion','_insertSuggestion','_startConversationSafely','_updateRatings','TrackChanges','selectedModel','setChangeGroupState','current-document','data-id'];_0x434b=function(){return _0x5a5eb6;};return _0x434b();}
23
+ const _0x380a5b=_0x2578;(function(_0x18d22d,_0x94c1cd){const _0x52ad06=_0x2578,_0x4e7903=_0x18d22d();while(!![]){try{const _0x42851=-parseInt(_0x52ad06(0x245))/0x1*(-parseInt(_0x52ad06(0x1b1))/0x2)+parseInt(_0x52ad06(0x262))/0x3+-parseInt(_0x52ad06(0x22b))/0x4+parseInt(_0x52ad06(0x1e8))/0x5*(parseInt(_0x52ad06(0x282))/0x6)+parseInt(_0x52ad06(0x2a1))/0x7+parseInt(_0x52ad06(0x273))/0x8+-parseInt(_0x52ad06(0x1c5))/0x9*(parseInt(_0x52ad06(0x21f))/0xa);if(_0x42851===_0x94c1cd)break;else _0x4e7903['push'](_0x4e7903['shift']());}catch(_0x153ecc){_0x4e7903['push'](_0x4e7903['shift']());}}}(_0x5e7c,0x3cb6f));import{ContextPlugin as _0x5d6eb1,Editor as _0x268d61}from'ckeditor5/src/core.js';import{BodyCollection as _0x2e7136}from'ckeditor5/src/ui.js';import{CKEditorError as _0xb8924f,logError as _0x1eb88a,scrollViewportToShowTarget as _0x59bc32,uid as _0x31c287}from'ckeditor5/src/utils.js';import{AIConnector as _0x3d8712}from'../aicore/aiconnector.js';import{AITabs as _0x29b001}from'../aitabs/aitabs.js';import{AIChatConversation as _0x49fb89}from'./model/aichatconversation.js';import{getTranslation as _0x3c35c3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5a2f18}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x37616d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x36e4f1}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x260be3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1fcfbc,DATA_ID_MODEL_ATTRIBUTE as _0x54cb6e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2578(_0x50b514,_0x4a97d7){const _0x5e7cc6=_0x5e7c();return _0x2578=function(_0x25780b,_0x5526f9){_0x25780b=_0x25780b-0x17f;let _0x59b420=_0x5e7cc6[_0x25780b];return _0x59b420;},_0x2578(_0x50b514,_0x4a97d7);}import{fixMarkerOperationOldRange as _0xec59ff,getOperationsFromReply as _0x2556e1}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x42ac67,getMinimalSelection as _0x4ab0b5}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x30994b,_DetachOperation as _0x4d8793}from'ckeditor5/src/engine.js';import{findOne as _0x3ca4fe,getAttribute as _0x2a6712,serialize as _0x3acb67,Document as _0x554c05,findByAttribute as _0x48bf17}from'../aicore/utils/htmlparser.js';import{IconAI as _0x15e824}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x52a448}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x24b349}from'../aiballoon/aiballoon.js';function _0x5e7c(){const _0x4f704d=['_batchToChanges','addSelectionToContext','_logError','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','sources','interactionCreated','reasoningFinished','ai-request-aborted','AIChatUI','showFakeVisualSelection','error','alignToTop','editing','setLoadingMessage','start','message','_handleStartConversation','580350xmoCyC','contextItemAdded','batch','interactionStarted','ai-chat-context-invalid-data','like','ai.chat.context','_scrollToSuggestionRange','addContextOptionsChanged','createPositionAt','replyCreated','getContentParts','1283900rKEhLN','AITabs','interactionFinished','clearPendingContextUI','addFeedItemError','nextSibling','resource','AI_CHAT_CONTEXT_INVALID_DATA','uploadProgressChanged','addOperation','AI_CHAT_ABORTED_MESSAGE','findIndex','_openBalloonFor','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','toString','setIsUploadInProgress','getDocumentContext','_handleUIUserMessage','afterInit','_insertSuggestion','messageId','ai.chat.models.displayedModels','Showing\x20conversation\x20history...','removeSelectionFromContext','rejectSuggestion','8191tvWgRh','ai-chat-conversation-start-failed','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','context','pending','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_flushLastInteractionUI','updateContent','attachToDom','_aiChatUi','toggleWebSearch','domConverter','redo','ai-chat-invalid-request','log','add','get','replyContentUpdated','TrackChanges','ai-chat-context-unsupported-file-type','AI_CHAT_INVALID_REQUEST','_balloonShowDiff','range','contextItemLoadingEnded','_setIsMaximized','closeSourceResourceBalloon','getChildren','ai-chat-missing-channel-id','selection','41148hImLIZ','isPremiumPlugin','query','contextItemRemoved','finishInteraction','_integrateEditor','maxOffset','getConversation','setConversationTitle','webSearchFinished','rootName','indexOf','updateFeedItemAIReplySuggestionContent','conversationInitialized','showChangeInText','requires','updateFeedItemAIReplyContent','3414824LCElwJ','ai-chat-conversation-init-failed','text-delta','getGroupId','current-document','remove','type','ai-chat-context-file-too-large','_toggleReasoning','chat','modification-delta','disableControls','split','_updateRatings','new','233652fphFGx','resourceStateChanged','getOperations','slice','sendUserMessage','node','baseVersion','AIEditing','length','changes','close','addFileToContext','ai-chat-controller-mouse-over','updateCurrentDocumentInContext','startConversation','addFeedInteractionHeader','$graveyard','AI_CHAT_UNTITLED_CONVERSATION','addCurrentDocumentToContext','focusPromptInput','_bodyCollection','filter','push','getAttribute','addFeedItemAISuggestion','_aiEditing','loadConversation','isOpen','stopInteraction','map','history','1687714tMcger','version','updateFeedItemAIReplySuggestionPartState','addUrlToContext','contextItem','getFirstRange','toggleSuggestionDisplayMode','marker','createRange','load','setFeedItemRenderingStrategy','insertSuggestion','getChild','upsertAIChatRating','resize','_removeAISelectionMarkers','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','selectModel','find','streaming','view','getInteractionAndReplyById','capabilitiesUpdated','collaboration.channelId','toggleReasoning','createConversation','static','config','changeGroups','populateSourceResourceBalloon','getMarkersGroup','modelSelected','ai.availableReplyActions','addSelectionToChatContext','Disliked\x20response','root','interactionDestroyed','_stopLastInteraction','content','ai-chat-controller-no-active-conversation','removeContextItem','sourceResourcesLoaded','addResourceToContext','children','_aiChatModels','getPath','addFilesToContext','activateTab','addFeedItemStaticMessage','$root','unshift','ai-chat-context-unsupported-type','Undo','editors','handleRemovedConversation','AI_CHAT_GENERIC_ERROR','open','ai-chat-url-upload-failed','setAddContextOptions','main','isLoading','startInteraction','path','viewRangeToDom','removed','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','forEach','_previewedChangeGroup','index','handleUserInteraction','getTransformedByOperation','document','contextItems','setSelectedModel','delete','Liked\x20response','isModelAvailable','_startConversationSafely','anchorId','AI_CHAT_UNABLE_TO_START_CONVERSATION','_applySuggestion','state','isUploadInProgress','accepted','source','pluginName','enableControls','showPrevious','hasChanges','model','resizedTabs','resources','loadSourceResources','stop','isCurrentDocumentInConversation','init','hideFakeVisualSelection','DocumentCompare','sourceId','setIsMaximized','toViewRange','getDiff','documentContextContent','ai-chat-resource-load-failed','removeMarker','setContextItemLoading','startAutoScroll','applySuggestion','updateFeedItemAIReplySources','getReply','mouseLeaveSuggestion','isCurrentDocumentInContext','setChangeGroupState','isDocumentOperation','data-id','isInContext','AI_CHAT_CONTEXT_FILE_TOO_LARGE','_getDocumentRangeForReplyChanges','addDocumentToContext','end','replies','sendMessage','_applyOperationsAsSuggestions','_toggleWebSearch','indexes','isStarted','isDisabled','markers','100GBJDxL','getDocumentData','detachFromDom','startsWith','AIChatController','change','replyChangeGroupStateUpdated','updateResourceState','showNext','plugins','has','getRoot','_removeFromContext','fetchConversation','cloneNode','destroy','data','lastInteraction','getChildAtOffset','getSelectionText','99BIiziD','mouseOverSuggestion','from','uiId','isOfficialPlugin','showDiff','sourcePosition','resizeTabs','stopListening','activeConversation','ai-chat-context-form-data-size-limits-exceeded','resourceId','ready','scrollFeedToSuggestion','_createFromRanges','resetMessageInput','parse','createPositionFromPath','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai.chat.models.defaultModelId','ai-conversation-','getInteraction','contextSent','webSearchStarted','updateCapabilities','setConversationContext','addFeedItemUserMessage','reasoningStarted','addContextItem','_showConversationHistory','removeFeedInteraction','addFeedItemAIReply','partIndex','rejected','ai-no-track-changes','15hYEsXx','selectedModel','clearConversationContextUI','howMany','applyOperation','ai-chat-conversation-not-found','undo','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getRanges','_updateReplyContent','ai-chat-file-upload-failed','replyId','mapper','uid','options','AI_CHAT_RESOURCE_LOAD_FAILED','AI_BALLOON_HEADER_TITLE','full','abortPromptStream','commands','removeFromContext','updateConversationTitle','dialogClosed','setModel','revert','outdated','ai-chat-context-file-too-many-pages','locale','set','removeSelectionFromChatContext','listenTo','AIConnector','ai-chat-source-resources-load-failed','dislike','TrackChangesEditing','_aiConnector','interactionId','resetConversationTitle'];_0x5e7c=function(){return _0x4f704d;};return _0x5e7c();}export class AIChatController extends _0x5d6eb1{[_0x380a5b(0x29b)];[_0x380a5b(0x20b)];[_0x380a5b(0x24e)];[_0x380a5b(0x2cd)];[_0x380a5b(0x20e)]=new Map();[_0x380a5b(0x2e5)]=null;[_0x380a5b(0x25a)]=!0x1;[_0x380a5b(0x296)];static get[_0x380a5b(0x271)](){return[_0x3d8712,_0x24b349,_0x1fcfbc];}static get[_0x380a5b(0x186)](){const _0x1efe8b=_0x380a5b;return _0x1efe8b(0x1b5);}static get[_0x380a5b(0x1c9)](){return!0x0;}static get[_0x380a5b(0x263)](){return!0x0;}[_0x380a5b(0x190)](){const _0x4ff454=_0x380a5b;this[_0x4ff454(0x296)]=new _0x2e7136(this[_0x4ff454(0x248)][_0x4ff454(0x203)]),this[_0x4ff454(0x296)][_0x4ff454(0x24d)](),this[_0x4ff454(0x20b)]=this[_0x4ff454(0x248)][_0x4ff454(0x1ba)][_0x4ff454(0x255)](_0x4ff454(0x207)),this[_0x4ff454(0x24e)]=this[_0x4ff454(0x248)][_0x4ff454(0x1ba)][_0x4ff454(0x255)](_0x4ff454(0x216)),this[_0x4ff454(0x29b)]=this[_0x4ff454(0x248)][_0x4ff454(0x1ba)][_0x4ff454(0x255)](_0x4ff454(0x289)),this[_0x4ff454(0x2cd)]=new _0x36e4f1({'connector':this[_0x4ff454(0x20b)],'availableModels':this[_0x4ff454(0x248)][_0x4ff454(0x2bc)][_0x4ff454(0x255)](_0x4ff454(0x241)),'defaultModelId':this[_0x4ff454(0x248)][_0x4ff454(0x2bc)][_0x4ff454(0x255)](_0x4ff454(0x1d8)),'locale':this[_0x4ff454(0x248)][_0x4ff454(0x203)]});const _0x40603b=this[_0x4ff454(0x248)][_0x4ff454(0x1ba)][_0x4ff454(0x255)](_0x4ff454(0x22c));this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x290),()=>{const _0xeecb75=_0x4ff454;this[_0xeecb75(0x2ef)]();}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x286),(_0x25ee8f,_0x1000c4)=>{const _0x3c814c=_0x4ff454;this[_0x3c814c(0x23d)]({'userMessage':_0x1000c4});}),this[_0x4ff454(0x206)](_0x40603b,_0x4ff454(0x18b),(_0x1c6417,_0x3ecf2b)=>{const _0x5df022=_0x4ff454;this[_0x5df022(0x25d)](_0x3ecf2b);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x1cc),()=>{const _0x4ab61e=_0x4ff454;_0x40603b[_0x4ab61e(0x2af)]();}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x1fa),async()=>{const _0x1f2f82=_0x4ff454;await this[_0x1f2f82(0x2c6)](),await this[_0x1f2f82(0x24b)](),this[_0x1f2f82(0x205)]();}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x1a7),()=>{const _0x132f8c=_0x4ff454;this[_0x132f8c(0x1ce)]?.[_0x132f8c(0x294)](_0x3c35c3(this[_0x132f8c(0x248)][_0x132f8c(0x203)],_0x132f8c(0x247)));}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x28d),(_0x5e8463,_0x34df28)=>{const _0x3dd0dd=_0x4ff454;this[_0x3dd0dd(0x1ce)]?.[_0x3dd0dd(0x2cf)](Array[_0x3dd0dd(0x1c7)](_0x34df28));}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2a4),(_0xda9bb,_0xe6a369)=>{const _0x38a068=_0x4ff454;this[_0x38a068(0x1ce)]?.[_0x38a068(0x2a4)](_0xe6a369);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2cb),(_0x2fee23,_0x39946e)=>{const _0x823782=_0x4ff454;this[_0x823782(0x1ce)]?.[_0x823782(0x2cb)](_0x39946e[_0x823782(0x185)],_0x39946e[_0x823782(0x231)]);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2c9),(_0x53b420,_0x3edb38)=>{const _0x53007a=_0x4ff454;this[_0x53007a(0x1bd)](_0x3edb38);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x18d),(_0x3e5437,_0x20f586)=>{const _0x34f0e2=_0x4ff454;this[_0x34f0e2(0x1ce)]?.[_0x34f0e2(0x18d)](_0x20f586[_0x34f0e2(0x193)],_0x20f586[_0x34f0e2(0x264)],_0x20f586[_0x34f0e2(0x1f5)]);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x24f),()=>{const _0x375128=_0x4ff454;this[_0x375128(0x1ac)]();}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2b9),()=>{const _0x46a6c2=_0x4ff454;this[_0x46a6c2(0x27b)]();}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2b2),(_0x1b91d,_0x116394)=>{const _0x1c0605=_0x4ff454;this[_0x1c0605(0x1ce)]?.[_0x1c0605(0x1ff)](_0x116394);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x224),(_0x5e9c0c,{replyId:_0xa4fdc7})=>{const _0x405f2f=_0x4ff454;console[_0x405f2f(0x253)](_0x405f2f(0x2ed),_0xa4fdc7);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x209),(_0xceedbf,{replyId:_0x110315})=>{const _0x5d6145=_0x4ff454;console[_0x5d6145(0x253)](_0x5d6145(0x2c3),_0x110315);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2ac),(_0x4e15ff,_0x48e4cc)=>{const _0x534464=_0x4ff454;this[_0x534464(0x248)][_0x534464(0x1ba)][_0x534464(0x255)](_0x24b349)[_0x534464(0x28c)](),this[_0x534464(0x23f)](_0x48e4cc);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x270),(_0x33c772,{replyId:_0x11426c,partIndex:_0x3a81c2})=>{const _0x1dbe46=_0x4ff454;this[_0x1dbe46(0x25a)]=this[_0x1dbe46(0x24e)][_0x1dbe46(0x1ca)],this[_0x1dbe46(0x237)](_0x11426c,_0x3a81c2);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x1c6),(_0x5d3eb4,{replyId:_0xc8d3f6,partIndex:_0xa79564})=>{const _0x4164dc=_0x4ff454,_0x5b09dd=this[_0x4164dc(0x1a6)](_0xc8d3f6,_0xa79564);_0x5b09dd&&_0x4164dc(0x292)!=_0x5b09dd[_0x4164dc(0x25b)][_0x4164dc(0x2c4)][_0x4164dc(0x26c)]&&this[_0x4164dc(0x29b)][_0x4164dc(0x217)]([_0x5b09dd[_0x4164dc(0x25b)]],_0x4164dc(0x28e));}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x19f),()=>{const _0x19ba33=_0x4ff454;this[_0x19ba33(0x29b)][_0x19ba33(0x191)](_0x19ba33(0x28e));}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x19c),(_0xe1e7ca,_0x22ef90)=>{const _0x57b6a5=_0x4ff454;this[_0x57b6a5(0x248)][_0x57b6a5(0x1ba)][_0x57b6a5(0x255)](_0x24b349)[_0x57b6a5(0x28c)](),this[_0x57b6a5(0x181)](_0x22ef90);}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x2a7),async(_0x495244,{replyId:_0x36f26c,showDiff:_0xaddf03})=>{const _0x30ad45=_0x4ff454,{reply:_0x18ff86}=this[_0x30ad45(0x2b6)](_0x36f26c),_0x4155e4=_0x18ff86[_0x30ad45(0x22a)]({'showDiff':_0xaddf03});await this[_0x30ad45(0x24e)][_0x30ad45(0x26e)]({'id':_0x18ff86['id'],'parts':_0x4155e4,'renderingStrategy':_0x30ad45(0x2bb)});}),this[_0x4ff454(0x206)](this[_0x4ff454(0x24e)],_0x4ff454(0x244),(_0x1c707b,{replyId:_0x3596a5,partIndex:_0x2ae9cf})=>{const _0x57e2a1=_0x4ff454;this[_0x57e2a1(0x2e5)]?.[_0x57e2a1(0x1f3)]==_0x3596a5&&this[_0x57e2a1(0x2e5)]?.[_0x57e2a1(0x1e5)]==_0x2ae9cf&&this[_0x57e2a1(0x248)][_0x57e2a1(0x1ba)][_0x57e2a1(0x255)](_0x24b349)[_0x57e2a1(0x28c)]();const {reply:_0x1d0aea}=this[_0x57e2a1(0x2b6)](_0x3596a5);_0x1d0aea[_0x57e2a1(0x1a1)](_0x2ae9cf,_0x57e2a1(0x1e6)),this[_0x57e2a1(0x29b)][_0x57e2a1(0x191)](_0x57e2a1(0x28e));});}async[_0x380a5b(0x23e)](){const _0x1bcd19=_0x380a5b;this[_0x1bcd19(0x248)]instanceof _0x268d61?this[_0x1bcd19(0x267)](this[_0x1bcd19(0x248)]):this[_0x1bcd19(0x206)](this[_0x1bcd19(0x248)][_0x1bcd19(0x2d6)],_0x1bcd19(0x254),(_0x220f7a,_0x5b9509)=>{const _0x349c4e=_0x1bcd19;_0x5b9509['on'](_0x349c4e(0x1d1),()=>{const _0x3da119=_0x349c4e;this[_0x3da119(0x267)](_0x5b9509);});}),await this[_0x1bcd19(0x2ef)]();}[_0x380a5b(0x1c0)](){const _0x465172=_0x380a5b;this[_0x465172(0x296)][_0x465172(0x1b3)](),super[_0x465172(0x1c0)]();}[_0x380a5b(0x23f)](_0x4bafc6){const _0x12d13c=_0x380a5b,_0x5c4b63=_0x260be3(this[_0x12d13c(0x248)]);if(!_0x5c4b63[_0x12d13c(0x1ba)][_0x12d13c(0x1bb)](_0x12d13c(0x257)))throw new _0xb8924f(_0x12d13c(0x1e7),null);const _0x4ba7ee=this[_0x12d13c(0x248)][_0x12d13c(0x1ba)][_0x12d13c(0x255)](_0x12d13c(0x192)),{reply:_0x9ce45a,interaction:_0x565792}=this[_0x12d13c(0x2b6)](_0x4bafc6[_0x12d13c(0x1f3)]),_0x5b6c31=this[_0x12d13c(0x1a6)](_0x4bafc6[_0x12d13c(0x1f3)],_0x4bafc6[_0x12d13c(0x1e5)]),_0x1cc014=void 0x0!==_0x4bafc6[_0x12d13c(0x1e5)]?[_0x9ce45a[_0x12d13c(0x2bd)][_0x4bafc6[_0x12d13c(0x1e5)]]]:_0x9ce45a[_0x12d13c(0x2bd)][_0x12d13c(0x297)](_0x5de9d9=>_0x12d13c(0x249)==_0x5de9d9[_0x12d13c(0x182)]),_0x151aee=_0x1cc014[_0x12d13c(0x29f)](_0x3c41f3=>_0x9ce45a[_0x12d13c(0x2bd)][_0x12d13c(0x26d)](_0x3c41f3));if(!_0x5b6c31||_0x12d13c(0x292)==_0x5b6c31[_0x12d13c(0x25b)][_0x12d13c(0x2c4)][_0x12d13c(0x26c)])return void _0x151aee[_0x12d13c(0x2e4)](_0x347c86=>_0x9ce45a[_0x12d13c(0x1a1)](_0x347c86,_0x12d13c(0x201)));_0x151aee[_0x12d13c(0x2e4)](_0x3e26bf=>_0x9ce45a[_0x12d13c(0x1a1)](_0x3e26bf,_0x12d13c(0x184)));const _0x2990f6=_0x2556e1({'editor':_0x5c4b63,'reply':_0x9ce45a,'interaction':_0x565792,'groups':_0x1cc014,'transform':!0x0,'documentCompare':_0x4ba7ee,'documentCompareOptions':{'anchor':_0x12d13c(0x2dc),'markDeletions':!0x0}});let _0x6a7004;_0x5b6c31&&this[_0x12d13c(0x226)](_0x5b6c31[_0x12d13c(0x25b)]),_0x5c4b63[_0x12d13c(0x18a)][_0x12d13c(0x1b6)](_0x2ea6b7=>{const _0x1ea2cb=_0x12d13c;_0x6a7004=_0x2ea6b7[_0x1ea2cb(0x221)],_0x5c4b63[_0x1ea2cb(0x1ba)][_0x1ea2cb(0x255)](_0x1ea2cb(0x20a))[_0x1ea2cb(0x1ab)](_0x2990f6),this[_0x1ea2cb(0x29b)][_0x1ea2cb(0x191)](_0x1ea2cb(0x28e));}),this[_0x12d13c(0x20e)][_0x12d13c(0x204)](_0x6a7004,{'interactionId':_0x565792['id'],'replyId':_0x9ce45a['id'],'indexes':_0x151aee[_0x12d13c(0x285)]()}),this[_0x12d13c(0x280)](_0x9ce45a);}[_0x380a5b(0x181)](_0x173ff6){const _0x19d8b5=_0x380a5b,_0x53e34a=_0x260be3(this[_0x19d8b5(0x248)]),_0x5277c3=this[_0x19d8b5(0x248)][_0x19d8b5(0x1ba)][_0x19d8b5(0x255)](_0x1fcfbc),{reply:_0x123f54,interaction:_0x43ab94}=this[_0x19d8b5(0x2b6)](_0x173ff6[_0x19d8b5(0x1f3)]),_0x17edbe=this[_0x19d8b5(0x1a6)](_0x173ff6[_0x19d8b5(0x1f3)],_0x173ff6[_0x19d8b5(0x1e5)]),_0x1e06c5=void 0x0!==_0x173ff6[_0x19d8b5(0x1e5)]?[_0x123f54[_0x19d8b5(0x2bd)][_0x173ff6[_0x19d8b5(0x1e5)]]]:_0x123f54[_0x19d8b5(0x2bd)][_0x19d8b5(0x297)](_0x3d318c=>_0x19d8b5(0x249)==_0x3d318c[_0x19d8b5(0x182)]),_0x2aa56e=_0x1e06c5[_0x19d8b5(0x29f)](_0x40296b=>_0x123f54[_0x19d8b5(0x2bd)][_0x19d8b5(0x26d)](_0x40296b));if(!_0x17edbe||_0x19d8b5(0x292)==_0x17edbe[_0x19d8b5(0x25b)][_0x19d8b5(0x2c4)][_0x19d8b5(0x26c)])return void _0x2aa56e[_0x19d8b5(0x2e4)](_0x5ed2ab=>_0x123f54[_0x19d8b5(0x1a1)](_0x5ed2ab,_0x19d8b5(0x201)));_0x2aa56e[_0x19d8b5(0x2e4)](_0x3554e4=>_0x123f54[_0x19d8b5(0x1a1)](_0x3554e4,_0x19d8b5(0x184)));const _0x116480=_0x2556e1({'editor':_0x53e34a,'reply':_0x123f54,'interaction':_0x43ab94,'groups':_0x1e06c5,'transform':!0x0,'documentCompare':_0x5277c3,'documentCompareOptions':{'anchor':_0x19d8b5(0x2dc),'markDeletions':!0x1}});let _0x3cb626;_0x17edbe&&this[_0x19d8b5(0x226)](_0x17edbe[_0x19d8b5(0x25b)]),_0x53e34a[_0x19d8b5(0x18a)][_0x19d8b5(0x1b6)](_0x14d638=>{const _0x47d883=_0x19d8b5;_0x3cb626=_0x14d638[_0x47d883(0x221)];for(const _0x3524ca of _0x116480)_0x3524ca[_0x47d883(0x288)]=_0x53e34a[_0x47d883(0x18a)][_0x47d883(0x2e9)][_0x47d883(0x2a2)],_0xec59ff(_0x53e34a,_0x3524ca),_0x14d638[_0x47d883(0x221)][_0x47d883(0x234)](_0x3524ca),_0x53e34a[_0x47d883(0x18a)][_0x47d883(0x1ec)](_0x3524ca);}),this[_0x19d8b5(0x20e)][_0x19d8b5(0x204)](_0x3cb626,{'interactionId':_0x43ab94['id'],'replyId':_0x123f54['id'],'indexes':_0x2aa56e[_0x19d8b5(0x285)]()}),this[_0x19d8b5(0x280)](_0x123f54);}[_0x380a5b(0x237)](_0x5a6908,_0x1b594a){const _0x1ad5c0=_0x380a5b,_0x24e3d7=_0x260be3(this[_0x1ad5c0(0x248)]),_0x1fdbc2=this[_0x1ad5c0(0x1a6)](_0x5a6908,_0x1b594a),_0x46152a=this[_0x1ad5c0(0x248)][_0x1ad5c0(0x1ba)][_0x1ad5c0(0x255)](_0x24b349);if(!_0x1fdbc2)return void _0x46152a[_0x1ad5c0(0x28c)]();const {range:_0x4ca1dd,currentIndex:_0x24ae19}=_0x1fdbc2;if(_0x1ad5c0(0x292)==_0x4ca1dd[_0x1ad5c0(0x2c4)][_0x1ad5c0(0x26c)]){const {reply:_0x224f53}=this[_0x1ad5c0(0x2b6)](_0x5a6908);return _0x224f53[_0x1ad5c0(0x1a1)](_0x24ae19,_0x1ad5c0(0x201)),void _0x46152a[_0x1ad5c0(0x28c)]();}if(this[_0x1ad5c0(0x2e5)]?.[_0x1ad5c0(0x1f3)]==_0x5a6908&&this[_0x1ad5c0(0x2e5)]?.[_0x1ad5c0(0x1e5)]==_0x24ae19)return;this[_0x1ad5c0(0x1cd)](_0x46152a),this[_0x1ad5c0(0x2e5)]={'replyId':_0x5a6908,'partIndex':_0x24ae19};let _0x5cdedf=_0x24e3d7[_0x1ad5c0(0x2bc)][_0x1ad5c0(0x255)](_0x1ad5c0(0x2c1))||[..._0x37616d];_0x24e3d7[_0x1ad5c0(0x1ba)][_0x1ad5c0(0x1bb)](_0x1ad5c0(0x257))||(_0x5cdedf=_0x5cdedf[_0x1ad5c0(0x297)](_0x4d7648=>_0x1ad5c0(0x2ac)!=_0x4d7648));const _0x1d92b6=new _0x52a448(_0x24e3d7[_0x1ad5c0(0x203)],{'showDiff':this[_0x1ad5c0(0x25a)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1ad5c0(0x1f9)},'hideHeader':!0x0,'availableActions':_0x5cdedf},this[_0x1ad5c0(0x296)]);this[_0x1ad5c0(0x1cd)](_0x1d92b6);const {reply:_0x467a7c}=this[_0x1ad5c0(0x2b6)](_0x5a6908),_0x19b6d7=_0x467a7c[_0x1ad5c0(0x22a)]({'showDiff':this[_0x1ad5c0(0x25a)]})[_0x1ad5c0(0x297)](_0x3203db=>_0x3203db[_0x1ad5c0(0x189)]),_0x67bf50=_0x19b6d7[_0x1ad5c0(0x236)](_0x5ab349=>_0x5ab349[_0x1ad5c0(0x2e6)]==_0x24ae19);if(-0x1==_0x67bf50)return;const _0x528030=_0x19b6d7[_0x67bf50],_0x213030=_0x19b6d7['at']((_0x67bf50-0x1)%_0x19b6d7[_0x1ad5c0(0x28a)])?.[_0x1ad5c0(0x2e6)],_0x21aff0=_0x19b6d7['at']((_0x67bf50+0x1)%_0x19b6d7[_0x1ad5c0(0x28a)])?.[_0x1ad5c0(0x2e6)];_0x1d92b6[_0x1ad5c0(0x24c)]({'parts':[_0x528030],'renderingStrategy':_0x1ad5c0(0x2bb)});const _0x39cd71=_0x24ae19!==_0x213030;this[_0x1ad5c0(0x226)](_0x4ca1dd,!0x0),_0x46152a[_0x1ad5c0(0x2d9)]({'index':_0x24ae19,'title':_0x3c35c3(this[_0x1ad5c0(0x248)][_0x1ad5c0(0x203)],_0x1ad5c0(0x1f8),(_0x67bf50+0x1)[_0x1ad5c0(0x23a)]()),'icon':_0x15e824,'mainView':_0x1d92b6,'showRotator':_0x39cd71,'showApplyButton':!0x0,'showSuggestButton':_0x24e3d7[_0x1ad5c0(0x1ba)][_0x1ad5c0(0x1bb)](_0x1ad5c0(0x257)),'ranges':[_0x4ca1dd]}),this[_0x1ad5c0(0x24e)][_0x1ad5c0(0x1d2)](_0x5a6908,_0x24ae19),this[_0x1ad5c0(0x206)](_0x1d92b6,_0x1ad5c0(0x2a7),(_0x5b4fb9,{showDiff:_0x4ae9d9})=>{const _0xf55f0f=_0x1ad5c0;this[_0xf55f0f(0x25a)]=_0x4ae9d9;const {reply:_0x494b75}=this[_0xf55f0f(0x2b6)](_0x5a6908),_0xbddcf7=_0x494b75[_0xf55f0f(0x22a)]({'showDiff':_0x4ae9d9,'groupIndex':_0x24ae19});_0x1d92b6[_0xf55f0f(0x24c)]({'parts':_0xbddcf7,'renderingStrategy':_0xf55f0f(0x2bb)});}),this[_0x1ad5c0(0x206)](_0x46152a,_0x1ad5c0(0x19c),()=>{const _0xea5852=_0x1ad5c0;this[_0xea5852(0x181)]({'replyId':_0x5a6908,'partIndex':_0x24ae19}),_0x39cd71?this[_0xea5852(0x237)](_0x5a6908,_0x21aff0):_0x46152a[_0xea5852(0x28c)]();}),this[_0x1ad5c0(0x206)](_0x46152a,_0x1ad5c0(0x2ac),()=>{const _0x57bb39=_0x1ad5c0;this[_0x57bb39(0x23f)]({'replyId':_0x5a6908,'partIndex':_0x24ae19}),_0x39cd71?this[_0x57bb39(0x237)](_0x5a6908,_0x21aff0):_0x46152a[_0x57bb39(0x28c)]();}),_0x39cd71&&(this[_0x1ad5c0(0x206)](_0x46152a,_0x1ad5c0(0x1b9),()=>{const _0x357adb=_0x1ad5c0;this[_0x357adb(0x237)](_0x5a6908,_0x21aff0);}),this[_0x1ad5c0(0x206)](_0x46152a,_0x1ad5c0(0x188),()=>{const _0x1a24e5=_0x1ad5c0;this[_0x1a24e5(0x237)](_0x5a6908,_0x213030);})),this[_0x1ad5c0(0x206)](_0x46152a,_0x1ad5c0(0x1fe),()=>{const _0x5dff68=_0x1ad5c0;this[_0x5dff68(0x1cd)](_0x46152a),this[_0x5dff68(0x1cd)](_0x1d92b6),this[_0x5dff68(0x2e5)]=null;});}[_0x380a5b(0x1a6)](_0x3e5c1a,_0x2ee292){const _0x485b7a=_0x380a5b,_0x4ee51d=_0x260be3(this[_0x485b7a(0x248)]),{reply:_0xb39533,interaction:_0x44f1e2}=this[_0x485b7a(0x2b6)](_0x3e5c1a),_0x1b0da2=_0xb39533[_0x485b7a(0x2bd)][_0x485b7a(0x297)](_0x17e6e2=>_0x485b7a(0x249)==_0x17e6e2[_0x485b7a(0x182)]),_0x487081=_0x1b0da2[_0x485b7a(0x29f)](_0x28dbfe=>_0xb39533[_0x485b7a(0x2bd)][_0x485b7a(0x26d)](_0x28dbfe));void 0x0===_0x2ee292&&(_0x2ee292=_0x487081[0x0]);const _0x1000f4=_0x487081[_0x485b7a(0x26d)](_0x2ee292);if(-0x1==_0x1000f4)return null;const _0x4bd086=_0x1b0da2[_0x1000f4],_0x37ab71=new _0x554c05([]),_0xf6c0ca=new _0x554c05([]);for(const _0x2100a2 of _0x4bd086[_0x485b7a(0x28b)])if(_0x485b7a(0x2e1)!=_0x2100a2[_0x485b7a(0x279)]&&_0xf6c0ca[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x2100a2[_0x485b7a(0x287)][_0x485b7a(0x1bf)](!0x0)),_0x485b7a(0x281)!=_0x2100a2[_0x485b7a(0x279)]){const _0x5df56d=_0x3ca4fe(_0x13c14b=>_0x2a6712(_0x13c14b,_0x485b7a(0x1a3))==_0x2100a2['id'],_0xb39533[_0x485b7a(0x197)],!0x0);_0x37ab71[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x5df56d[_0x485b7a(0x1bf)](!0x0));}if(0x0==_0x37ab71[_0x485b7a(0x2cc)][_0x485b7a(0x28a)]){if(_0x4bd086[_0x485b7a(0x28b)][0x0][_0x485b7a(0x17f)]){const _0x2e82b4=_0x48bf17(_0x485b7a(0x1a3),_0x4bd086[_0x485b7a(0x28b)][0x0][_0x485b7a(0x17f)],_0xb39533[_0x485b7a(0x197)]);_0x37ab71[_0x485b7a(0x2cc)][_0x485b7a(0x2d3)](_0x2e82b4[_0x485b7a(0x1bf)](!0x0)),_0xf6c0ca[_0x485b7a(0x2cc)][_0x485b7a(0x2d3)](_0x2e82b4[_0x485b7a(0x1bf)](!0x0)),_0x2e82b4[_0x485b7a(0x230)]&&(_0x37ab71[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x2e82b4[_0x485b7a(0x230)][_0x485b7a(0x1bf)](!0x0)),_0xf6c0ca[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x2e82b4[_0x485b7a(0x230)][_0x485b7a(0x1bf)](!0x0)));}else{const _0x3e99cc=_0xb39533[_0x485b7a(0x197)][_0x485b7a(0x2cc)][0x0];if(!_0x3e99cc)return null;_0x37ab71[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x3e99cc[_0x485b7a(0x1bf)](!0x0)),_0xf6c0ca[_0x485b7a(0x2cc)][_0x485b7a(0x298)](_0x3e99cc[_0x485b7a(0x1bf)](!0x0));}}const _0x54eeda=_0x44f1e2[_0x485b7a(0x23c)](),_0x19cc12=_0x4ee51d[_0x485b7a(0x1c1)][_0x485b7a(0x1d5)](_0x54eeda[_0x485b7a(0x2c7)],_0x485b7a(0x2d2)),_0x114398=_0x3acb67(_0x37ab71),_0x524754=_0x4ee51d[_0x485b7a(0x1c1)][_0x485b7a(0x1d5)](_0x114398),_0x1a0651=_0x4ee51d[_0x485b7a(0x1c1)][_0x485b7a(0x1d5)](_0x114398),_0x94382=_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x228)](_0x524754,0x0),_0x3d0b68=_0x3acb67(_0xf6c0ca),_0x4e9559={'anchor':_0x94382,'markDeletions':!0x1,'context':_0x485b7a(0x2d2)},_0x2d69b8=_0x4ee51d[_0x485b7a(0x1ba)][_0x485b7a(0x255)](_0x1fcfbc)[_0x485b7a(0x196)](_0x114398,_0x3d0b68,_0x4e9559)[_0x485b7a(0x284)]();if(!_0x2d69b8[_0x485b7a(0x28a)])return null;_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x1b6)](_0x3c3f06=>{const _0x286bd4=_0x485b7a;for(const _0x220271 of _0x2d69b8)if(_0x286bd4(0x278)==_0x220271[_0x286bd4(0x279)]){const _0xe9435a=_0x220271[_0x286bd4(0x1cb)],_0x2e21ba=_0x220271[_0x286bd4(0x1eb)],_0xc0270=new _0x4d8793(_0xe9435a,_0x2e21ba);_0x3c3f06[_0x286bd4(0x221)][_0x286bd4(0x234)](_0xc0270),_0x4ee51d[_0x286bd4(0x18a)][_0x286bd4(0x1ec)](_0xc0270);}else _0x286bd4(0x2a8)!==_0x220271[_0x286bd4(0x279)]&&(_0x220271[_0x286bd4(0x288)]=null,_0x220271[_0x286bd4(0x1a2)]=!0x1,_0x3c3f06[_0x286bd4(0x221)][_0x286bd4(0x234)](_0x220271),_0x4ee51d[_0x286bd4(0x18a)][_0x286bd4(0x1ec)](_0x220271));});const _0x1901a5=_0x4ab0b5(_0x4ee51d,_0x2d69b8,_0x524754);_0x42ac67(_0x4ee51d[_0x485b7a(0x18a)],_0x1901a5);const _0x5d1c1f=_0x1901a5[_0x485b7a(0x2a6)]()[_0x485b7a(0x21c)][_0x485b7a(0x2df)][_0x485b7a(0x285)](),_0x124619=_0x1901a5[_0x485b7a(0x2a6)]()[_0x485b7a(0x1a8)][_0x485b7a(0x2df)][_0x485b7a(0x285)](),_0x4366d0=[];let _0x3372f0=_0x524754,_0x5be970=_0x1a0651;for(let _0x37459b=0x0;_0x37459b<_0x124619[_0x485b7a(0x28a)];_0x37459b++){const _0xf23949=_0x3372f0[_0x485b7a(0x268)]-_0x124619[_0x37459b];_0x4366d0[_0x37459b]=_0x5be970[_0x485b7a(0x268)]-_0xf23949,_0x3372f0=_0x3372f0[_0x485b7a(0x1c3)](_0x124619[_0x37459b]),_0x5be970=_0x5be970[_0x485b7a(0x1c3)](_0x4366d0[_0x37459b]);}const _0xed5392=_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x2a9)](_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x1d6)](_0x1a0651,_0x5d1c1f),_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x1d6)](_0x1a0651,_0x4366d0)),_0xbb733f=_0x1a0651[_0x485b7a(0x2ad)](0x0)[_0x485b7a(0x299)](_0x54cb6e),_0x49e760=Array[_0x485b7a(0x1c7)](_0x19cc12[_0x485b7a(0x25f)]())[_0x485b7a(0x2b3)](_0x16cb60=>_0x16cb60[_0x485b7a(0x299)](_0x54cb6e)==_0xbb733f)[_0x485b7a(0x2ce)](),_0x468b9d=_0xed5392[_0x485b7a(0x21c)][_0x485b7a(0x2df)][_0x485b7a(0x285)](),_0x13f54e=_0xed5392[_0x485b7a(0x1a8)][_0x485b7a(0x2df)][_0x485b7a(0x285)]();_0x468b9d[0x0]=_0x49e760[0x0]+_0x468b9d[0x0],_0x13f54e[0x0]=_0x49e760[0x0]+_0x13f54e[0x0];let _0x5b0b49=_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x2a9)](_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x1d6)](_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x2e9)][_0x485b7a(0x1bc)](),_0x468b9d),_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x1d6)](_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x2e9)][_0x485b7a(0x1bc)](),_0x13f54e));const _0x5583f9=_0x4ee51d[_0x485b7a(0x18a)][_0x485b7a(0x2e9)][_0x485b7a(0x2a0)][_0x485b7a(0x284)](_0x54eeda[_0x485b7a(0x2a2)]);for(const _0x3d56f0 of _0x5583f9)_0x5b0b49=_0x30994b[_0x485b7a(0x1d3)](_0x5b0b49[_0x485b7a(0x2e8)](_0x3d56f0));return{'range':_0x5b0b49,'currentIndex':_0x2ee292};}[_0x380a5b(0x267)](_0x87e0c1){const _0x5d2670=_0x380a5b;if(!_0x87e0c1[_0x5d2670(0x1ba)][_0x5d2670(0x1bb)](_0x5d2670(0x2d5)))return;const _0x51ef1f=_0x87e0c1[_0x5d2670(0x1fb)][_0x5d2670(0x255)](_0x5d2670(0x1ee)),_0x532db5=_0x87e0c1[_0x5d2670(0x1fb)][_0x5d2670(0x255)](_0x5d2670(0x251));this[_0x5d2670(0x206)](_0x51ef1f,_0x5d2670(0x200),(_0x433fcf,_0x3eeb30,_0xfe39b2)=>{const _0xa271d2=_0x5d2670,_0x3178dc=this[_0xa271d2(0x20e)][_0xa271d2(0x255)](_0x3eeb30);if(!_0x3178dc)return;const _0x363cef=this[_0xa271d2(0x1ce)][_0xa271d2(0x1da)](_0x3178dc[_0xa271d2(0x20c)])[_0xa271d2(0x19e)](_0x3178dc[_0xa271d2(0x1f3)]);_0x3178dc[_0xa271d2(0x1ad)][_0xa271d2(0x2e4)](_0x579665=>_0x363cef[_0xa271d2(0x1a1)](_0x579665,_0xa271d2(0x249))),this[_0xa271d2(0x20e)][_0xa271d2(0x2ec)](_0x3eeb30),this[_0xa271d2(0x20e)][_0xa271d2(0x204)](_0xfe39b2,_0x3178dc);}),this[_0x5d2670(0x206)](_0x532db5,_0x5d2670(0x200),(_0x55cba4,_0x26a79c,_0x4285aa)=>{const _0x1dde81=_0x5d2670,_0xe08681=this[_0x1dde81(0x20e)][_0x1dde81(0x255)](_0x26a79c);if(!_0xe08681)return;const _0x373413=this[_0x1dde81(0x1ce)][_0x1dde81(0x1da)](_0xe08681[_0x1dde81(0x20c)])[_0x1dde81(0x19e)](_0xe08681[_0x1dde81(0x1f3)]);_0xe08681[_0x1dde81(0x1ad)][_0x1dde81(0x2e4)](_0x4f4402=>_0x373413[_0x1dde81(0x1a1)](_0x4f4402,_0x1dde81(0x184))),this[_0x1dde81(0x20e)][_0x1dde81(0x2ec)](_0x26a79c),this[_0x1dde81(0x20e)][_0x1dde81(0x204)](_0x4285aa,_0xe08681);});}async[_0x380a5b(0x29c)](_0x1d5b1e){const _0x50a81d=_0x380a5b;this[_0x50a81d(0x248)][_0x50a81d(0x1ba)][_0x50a81d(0x255)](_0x24b349)[_0x50a81d(0x28c)](),this[_0x50a81d(0x24e)][_0x50a81d(0x2ab)](_0x50a81d(0x2bb)),this[_0x50a81d(0x24e)][_0x50a81d(0x2e2)](!0x0),await this[_0x50a81d(0x2c6)]();try{await this[_0x50a81d(0x20b)][_0x50a81d(0x1be)](_0x1d5b1e)[_0x50a81d(0x269)](),await this[_0x50a81d(0x2ef)](_0x1d5b1e),this[_0x50a81d(0x1fd)]('\x20');const {sessionId:_0x967187}=this[_0x50a81d(0x29b)][_0x50a81d(0x1b2)]();await this[_0x50a81d(0x1ce)][_0x50a81d(0x2aa)](_0x1d5b1e,_0x967187),this[_0x50a81d(0x1ce)][_0x50a81d(0x18f)]()&&this[_0x50a81d(0x1ce)][_0x50a81d(0x294)](_0x3c35c3(this[_0x50a81d(0x248)][_0x50a81d(0x203)],_0x50a81d(0x247)));}catch(_0x35e162){this[_0x50a81d(0x24e)][_0x50a81d(0x22f)]({'errorMessage':_0x3c35c3(this[_0x50a81d(0x248)][_0x50a81d(0x203)],_0x50a81d(0x238)),'id':_0x1d5b1e}),this[_0x50a81d(0x210)](new _0xb8924f(_0x50a81d(0x1ed),this,{'error':_0x35e162}));}finally{this[_0x50a81d(0x248)][_0x50a81d(0x1ba)][_0x50a81d(0x255)](_0x29b001)[_0x50a81d(0x2b5)][_0x50a81d(0x2d0)](_0x50a81d(0x27c)),this[_0x50a81d(0x24e)][_0x50a81d(0x19b)](),this[_0x50a81d(0x24e)][_0x50a81d(0x2ab)](_0x50a81d(0x2b4)),this[_0x50a81d(0x24e)][_0x50a81d(0x2e2)](!0x1);}}[_0x380a5b(0x2d7)](_0x38d68a){const _0xafaca1=_0x380a5b;this[_0xafaca1(0x1ce)]['id']===_0x38d68a&&this[_0xafaca1(0x2ef)]();}async[_0x380a5b(0x2c2)](){const _0x69716d=_0x380a5b,_0x111fca=this[_0x69716d(0x29b)][_0x69716d(0x1c4)]();this[_0x69716d(0x1ce)]?.[_0x69716d(0x20f)](_0x111fca),this[_0x69716d(0x1ce)]?.[_0x69716d(0x294)](_0x3c35c3(this[_0x69716d(0x248)][_0x69716d(0x203)],_0x69716d(0x247)));}[_0x380a5b(0x205)](){const _0x32d70e=_0x380a5b;this[_0x32d70e(0x1ce)]?.[_0x32d70e(0x243)]();}[_0x380a5b(0x295)](){const _0x5cd3c2=_0x380a5b;this[_0x5cd3c2(0x24e)][_0x5cd3c2(0x295)]();}async[_0x380a5b(0x290)](){const _0x31dde5=_0x380a5b;await this[_0x31dde5(0x2ef)]();}async[_0x380a5b(0x1aa)]({message:_0x204e8f,quickActionData:_0x249aae}){const _0x32cc46=_0x380a5b;await this[_0x32cc46(0x23d)]({'userMessage':_0x204e8f,'quickActionData':_0x249aae});}[_0x380a5b(0x276)](){const _0x3695a6=_0x380a5b,_0x5e7825=this[_0x3695a6(0x248)][_0x3695a6(0x2bc)][_0x3695a6(0x255)](_0x3695a6(0x2b8));if(!_0x5e7825)throw new _0xb8924f(_0x3695a6(0x260),this);return _0x5e7825;}async[_0x380a5b(0x2ef)](_0x3cd0a1){const _0x10ea76=_0x380a5b;try{this[_0x10ea76(0x24e)][_0x10ea76(0x187)](),await this[_0x10ea76(0x21e)](_0x3cd0a1);}catch(_0x2acfa9){this[_0x10ea76(0x24e)][_0x10ea76(0x22f)]({'errorMessage':_0x3c35c3(this[_0x10ea76(0x248)][_0x10ea76(0x203)],_0x10ea76(0x180)),'id':_0x3cd0a1||_0x31c287()}),console[_0x10ea76(0x218)](_0x2acfa9),this[_0x10ea76(0x1ce)]=void 0x0,this[_0x10ea76(0x24e)][_0x10ea76(0x27e)]();}}async[_0x380a5b(0x21e)](_0x183999){const _0x4e7ada=_0x380a5b,_0x59e5d4=this[_0x4e7ada(0x248)][_0x4e7ada(0x1ba)][_0x4e7ada(0x255)](_0x24b349);let _0x3426e5;_0x59e5d4[_0x4e7ada(0x29d)]&&_0x59e5d4[_0x4e7ada(0x28c)](),_0x183999||!this[_0x4e7ada(0x1ce)]?_0x3426e5=this[_0x4e7ada(0x248)][_0x4e7ada(0x2bc)][_0x4e7ada(0x255)](_0x4e7ada(0x1d8)):this[_0x4e7ada(0x24e)][_0x4e7ada(0x2ee)]&&(_0x3426e5=this[_0x4e7ada(0x1ce)][_0x4e7ada(0x1e9)]['id']),await this[_0x4e7ada(0x2c6)]();const _0x23447a=this[_0x4e7ada(0x276)](),_0x39d277=_0x183999||_0x31c287();this[_0x4e7ada(0x1ce)]=new _0x49fb89({'connector':this[_0x4e7ada(0x20b)],'chatModels':this[_0x4e7ada(0x2cd)],'selectedModelId':_0x3426e5,'conversationId':_0x39d277,'group':_0x23447a,'getEditor':()=>_0x260be3(this[_0x4e7ada(0x248)])}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x26f),(_0x3581ca,_0x13cf41)=>{const _0x689cb8=_0x4e7ada;this[_0x689cb8(0x24e)][_0x689cb8(0x2ba)](_0x13cf41),this[_0x689cb8(0x24e)][_0x689cb8(0x1d4)](),this[_0x689cb8(0x24e)][_0x689cb8(0x22e)](),this[_0x689cb8(0x24e)][_0x689cb8(0x1ea)](),_0x183999||(this[_0x689cb8(0x24e)][_0x689cb8(0x20d)](),this[_0x689cb8(0x1ce)]?.[_0x689cb8(0x294)](_0x3c35c3(this[_0x689cb8(0x248)][_0x689cb8(0x203)],_0x689cb8(0x247))));}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x233),(_0x4b9247,_0x31b51d)=>{const _0x19f082=_0x4e7ada;this[_0x19f082(0x24e)][_0x19f082(0x23b)](_0x31b51d[_0x19f082(0x183)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x213),(_0x115b2d,_0x1c4fbb)=>{const _0x444895=_0x4e7ada;this[_0x444895(0x24e)][_0x444895(0x1df)](_0x1c4fbb);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x1dc),()=>{const _0x4a6b98=_0x4e7ada;this[_0x4a6b98(0x24e)][_0x4a6b98(0x21b)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x1e0),()=>{const _0x19fb35=_0x4e7ada;this[_0x19fb35(0x24e)][_0x19fb35(0x21b)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x26b),(_0x3720df,_0x15b69c)=>{const _0x11d7f3=_0x4e7ada;this[_0x11d7f3(0x24e)][_0x11d7f3(0x291)](_0x15b69c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x214),(_0x1d8abc,_0x5d3857)=>{const _0x126440=_0x4e7ada;this[_0x126440(0x24e)][_0x126440(0x291)](_0x5d3857,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x222),()=>{const _0x292e7a=_0x4e7ada;this[_0x292e7a(0x24e)][_0x292e7a(0x2de)]();}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x22d),async()=>{const _0x5ca0e6=_0x4e7ada;await this[_0x5ca0e6(0x24e)][_0x5ca0e6(0x266)]();}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x2c5),(_0x3a3873,_0x40e640)=>{const _0xd83900=_0x4e7ada;this[_0xd83900(0x24e)][_0xd83900(0x1e3)](_0x40e640['id']);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x26a),(_0xfe3ee1,_0x20cc47,_0x401214)=>{const _0x4fa541=_0x4e7ada;this[_0x4fa541(0x1fd)](_0x20cc47,_0x401214);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x229),(_0x325ff0,_0x51910d)=>{const _0x2433a8=_0x4e7ada;_0x2433a8(0x275)===_0x51910d[_0x2433a8(0x279)]?this[_0x2433a8(0x24e)][_0x2433a8(0x1e4)](_0x51910d):this[_0x2433a8(0x24e)][_0x2433a8(0x29a)](_0x51910d);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x256),async(_0x1e831d,_0x3b020c)=>{const _0x13f2d2=_0x4e7ada;await this[_0x13f2d2(0x1f1)]({'reply':_0x3b020c});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x1b7),(_0x2ce86d,{reply:_0x4596f8,index:_0x135c33,state:_0x23e30d})=>{const _0x1d5fcb=_0x4e7ada;this[_0x1d5fcb(0x24e)][_0x1d5fcb(0x2a3)]({'id':_0x4596f8['id'],'index':_0x135c33,'state':_0x23e30d});}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x220),(_0x5ed33f,_0x30e8c9)=>{const _0x2d43bb=_0x4e7ada;if(this[_0x2d43bb(0x24e)][_0x2d43bb(0x1e1)](_0x30e8c9[_0x2d43bb(0x2a5)],_0x30e8c9[_0x2d43bb(0x2dd)]),_0x2d43bb(0x261)===_0x30e8c9[_0x2d43bb(0x2a5)][_0x2d43bb(0x279)]){const _0x8c0de3=[..._0x260be3(this[_0x2d43bb(0x248)])[_0x2d43bb(0x18a)][_0x2d43bb(0x2e9)][_0x2d43bb(0x261)][_0x2d43bb(0x1f0)]()];this[_0x2d43bb(0x29b)][_0x2d43bb(0x217)](_0x8c0de3,_0x2d43bb(0x1d9)+this[_0x2d43bb(0x1ce)]?.['id']);}}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x265),(_0x416488,_0x25a038)=>{const _0x4ff678=_0x4e7ada;this[_0x4ff678(0x24e)][_0x4ff678(0x2c9)](_0x25a038[_0x4ff678(0x1c8)]),_0x4ff678(0x277)==_0x25a038[_0x4ff678(0x1c8)]&&this[_0x4ff678(0x205)](),_0x4ff678(0x261)===_0x25a038[_0x4ff678(0x279)]&&this[_0x4ff678(0x29b)][_0x4ff678(0x191)](_0x4ff678(0x1d9)+this[_0x4ff678(0x1ce)]?.['id']);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x25c),(_0x522c44,_0x11451b)=>{const _0x4626db=_0x4e7ada;this[_0x4626db(0x24e)][_0x4626db(0x19a)](_0x11451b[_0x4626db(0x2a5)][_0x4626db(0x1c8)],_0x11451b[_0x4626db(0x2dd)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x1db),(_0x222f6e,_0x3ccea4)=>{const _0x3d51c1=_0x4e7ada;this[_0x3d51c1(0x24e)][_0x3d51c1(0x1de)](_0x3ccea4[_0x3d51c1(0x2ea)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x227),(_0x48708a,_0x2f9a4d)=>{const _0x561edc=_0x4e7ada;this[_0x561edc(0x24e)][_0x561edc(0x2db)](_0x2f9a4d[_0x561edc(0x1f6)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x2ca),(_0xbd0981,_0x76b496)=>{const _0x5d4440=_0x4e7ada;this[_0x5d4440(0x24e)][_0x5d4440(0x2be)](_0x76b496[_0x5d4440(0x193)],_0x76b496[_0x5d4440(0x185)],_0x76b496[_0x5d4440(0x18c)],_0x76b496[_0x5d4440(0x1f5)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x283),(_0x420d47,_0x389e06)=>{const _0x3cd2bc=_0x4e7ada;this[_0x3cd2bc(0x24e)][_0x3cd2bc(0x1b8)](_0x389e06[_0x3cd2bc(0x193)],_0x389e06[_0x3cd2bc(0x1d0)],_0x389e06[_0x3cd2bc(0x1a4)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x2b7),(_0x1fd3c9,_0x580de5)=>{const _0x47d1db=_0x4e7ada;this[_0x47d1db(0x24e)][_0x47d1db(0x1dd)](_0x580de5);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x2c0),(_0x50b41a,_0x58936d)=>{const _0x2d1814=_0x4e7ada;this[_0x2d1814(0x24e)][_0x2d1814(0x2eb)](_0x58936d[_0x2d1814(0x1e9)],_0x58936d[_0x2d1814(0x1af)]);}),this[_0x4e7ada(0x1ce)]['on'](_0x4e7ada(0x218),(_0x30c541,{error:_0x56d85e,interactionId:_0x53735f,fileName:_0x36c02d,url:_0x4df199,sourceId:_0x4dec1e,sourceLabel:_0x288a2d})=>{const _0x3e0480=_0x4e7ada,_0x266aba=_0x53735f?_0x53735f+':'+_0x31c287():_0x31c287();_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x215))?this[_0x3e0480(0x24e)][_0x3e0480(0x2d1)]({'staticMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x235)),'id':_0x266aba}):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x274))||_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x246))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x180)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x1f2))?this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x1ef),_0x36c02d),'id':_0x266aba}):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x2da))?this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x1d7),_0x4df199),'id':_0x266aba}):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x223))?this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x232)),'id':_0x266aba}):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x2d4))?this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x211)),'id':_0x266aba}):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x208))?(_0x4dec1e&&this[_0x3e0480(0x24e)][_0x3e0480(0x25e)](_0x4dec1e),this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x2e3),_0x288a2d||_0x3e0480(0x185)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x198))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x1f7)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x252))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x259)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x258))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x24a)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x27a))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x1a5)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x202))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x2b1)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):_0x56d85e[_0x3e0480(0x21d)][_0x3e0480(0x1b4)](_0x3e0480(0x1cf))?(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x239)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e)):(this[_0x3e0480(0x24e)][_0x3e0480(0x22f)]({'errorMessage':_0x3c35c3(this[_0x3e0480(0x248)][_0x3e0480(0x203)],_0x3e0480(0x2d8)),'id':_0x266aba}),this[_0x3e0480(0x210)](_0x56d85e));}),await this[_0x4e7ada(0x1ce)][_0x4e7ada(0x190)](this[_0x4e7ada(0x248)][_0x4e7ada(0x2bc)][_0x4e7ada(0x255)](_0x4e7ada(0x225))),_0x183999||await this[_0x4e7ada(0x1ce)][_0x4e7ada(0x21c)]();}async[_0x380a5b(0x23d)]({userMessage:_0x5d417f,quickActionData:_0x35a227}){const _0x4fa060=_0x380a5b;if(!this[_0x4fa060(0x1ce)])throw new _0xb8924f(_0x4fa060(0x2c8));this[_0x4fa060(0x1ce)][_0x4fa060(0x1a0)]()&&await this[_0x4fa060(0x1ce)][_0x4fa060(0x28f)](this[_0x4fa060(0x29b)][_0x4fa060(0x1b2)]()),this[_0x4fa060(0x1ce)]['id']&&this[_0x4fa060(0x1ce)][_0x4fa060(0x1ae)]&&await this[_0x4fa060(0x1ce)][_0x4fa060(0x2e7)]({'userMessage':_0x5d417f,'quickActionData':_0x35a227}),this[_0x4fa060(0x2b0)]();}[_0x380a5b(0x2b0)](){const _0x3b89ce=_0x380a5b,_0x3a2d65=_0x260be3(this[_0x3b89ce(0x248)])[_0x3b89ce(0x18a)],_0x282232=Array[_0x3b89ce(0x1c7)](_0x3a2d65[_0x3b89ce(0x1b0)][_0x3b89ce(0x2bf)](_0x5a2f18));_0x3a2d65[_0x3b89ce(0x1b6)](_0x4e2ed5=>{const _0x3ad550=_0x3b89ce;_0x282232[_0x3ad550(0x2e4)](_0xb67edc=>_0x4e2ed5[_0x3ad550(0x199)](_0xb67edc));});}[_0x380a5b(0x1e2)](){const _0x2cbce8=_0x380a5b;console[_0x2cbce8(0x253)](_0x2cbce8(0x242));}[_0x380a5b(0x25d)](_0x5eb1c3){const _0x28003b=_0x380a5b;this[_0x28003b(0x24e)][_0x28003b(0x194)](_0x5eb1c3);}[_0x380a5b(0x210)](_0x4d5fd4){const _0x6decf0=_0x380a5b;_0x1eb88a(_0x4d5fd4[_0x6decf0(0x21d)]);}[_0x380a5b(0x1bd)](_0xac5e77){const _0x576745=_0x380a5b;this[_0x576745(0x1ce)]?.[_0x576745(0x1fc)](_0xac5e77);}[_0x380a5b(0x1ac)](){const _0x185a4d=_0x380a5b;this[_0x185a4d(0x1ce)]?.[_0x185a4d(0x24f)]();}[_0x380a5b(0x27b)](){const _0x352c47=_0x380a5b;this[_0x352c47(0x1ce)]?.[_0x352c47(0x2b9)]();}[_0x380a5b(0x2b6)](_0x1d1ed8){const _0x3cb641=_0x380a5b,[_0x26db5b,_0x304667]=_0x1d1ed8[_0x3cb641(0x27f)](':'),_0x3a9fbd=this[_0x3cb641(0x1ce)][_0x3cb641(0x1da)](_0x26db5b),_0x9e9e9=_0x3a9fbd[_0x3cb641(0x19e)](_0x304667);return{'interaction':_0x3a9fbd,'reply':_0x9e9e9};}[_0x380a5b(0x226)](_0xb5fac8,_0x1d2e6c=!0x1){const _0x3170ed=_0x380a5b,_0x4aac99=_0x260be3(this[_0x3170ed(0x248)]),_0x44fd11={'target':_0x4aac99[_0x3170ed(0x21a)][_0x3170ed(0x2b5)][_0x3170ed(0x250)][_0x3170ed(0x2e0)](_0x4aac99[_0x3170ed(0x21a)][_0x3170ed(0x1f4)][_0x3170ed(0x195)](_0xb5fac8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1d2e6c};_0x1d2e6c&&(_0x44fd11[_0x3170ed(0x219)]=!0x0),_0x59bc32(_0x44fd11);}[_0x380a5b(0x1fd)](_0xb82e9a,_0x1dc49a=!0x1){const _0x4b649e=_0x380a5b;this[_0x4b649e(0x24e)][_0x4b649e(0x26a)](_0xb82e9a||_0x3c35c3(this[_0x4b649e(0x248)][_0x4b649e(0x203)],_0x4b649e(0x293)),_0x1dc49a);}async[_0x380a5b(0x1f1)]({reply:_0x241e82,renderingStrategy:_0x5d0306}){const _0x3c5ebe=_0x380a5b,{id:_0x4040bd,isDone:_0x3b5061,type:_0x264d16,parsedContent:_0xb67df8}=_0x241e82;if(_0x3c5ebe(0x27d)===_0x264d16){const _0x5647ec=_0x241e82[_0x3c5ebe(0x22a)]({'showDiff':this[_0x3c5ebe(0x24e)][_0x3c5ebe(0x1ca)]});await this[_0x3c5ebe(0x24e)][_0x3c5ebe(0x26e)]({'id':_0x4040bd,'parts':_0x5647ec,'renderingStrategy':_0x5d0306,'isDone':_0x3b5061});}else _0x3c5ebe(0x275)===_0x264d16&&await this[_0x3c5ebe(0x24e)][_0x3c5ebe(0x272)]({'id':_0x4040bd,'parsedContent':_0xb67df8,'renderingStrategy':_0x5d0306,'isDone':_0x3b5061});_0x3b5061&&_0x241e82[_0x3c5ebe(0x212)][_0x3c5ebe(0x28a)]>0x0&&this[_0x3c5ebe(0x24e)][_0x3c5ebe(0x19d)](_0x4040bd,_0x241e82[_0x3c5ebe(0x212)]);}async[_0x380a5b(0x2c6)](){const _0x16a980=_0x380a5b,_0x4c3df9=this[_0x16a980(0x1ce)]?.[_0x16a980(0x1c2)];_0x4c3df9&&(_0x4c3df9[_0x16a980(0x18e)](),this[_0x16a980(0x24e)][_0x16a980(0x29e)](_0x4c3df9));}async[_0x380a5b(0x24b)](){const _0x56e4f9=_0x380a5b,_0x3bed24=this[_0x56e4f9(0x1ce)]?.[_0x56e4f9(0x1c2)];if(_0x3bed24){for await(const _0x14b857 of _0x3bed24[_0x56e4f9(0x1a9)])await this[_0x56e4f9(0x1f1)]({'reply':_0x14b857,'renderingStrategy':_0x56e4f9(0x2bb)});}}[_0x380a5b(0x280)](_0x8a3758){const _0x248d20=_0x380a5b,_0x155607={'positiveCount':_0x8a3758[_0x248d20(0x2bd)][_0x248d20(0x297)](_0x1ed89b=>_0x248d20(0x184)===_0x1ed89b[_0x248d20(0x182)])[_0x248d20(0x28a)],'totalCount':_0x8a3758[_0x248d20(0x2bd)][_0x248d20(0x28a)],'modificationId':_0x8a3758['id']},_0x3d7939=this[_0x248d20(0x1ce)][_0x248d20(0x1da)](_0x8a3758[_0x248d20(0x20c)])[_0x248d20(0x240)];this[_0x248d20(0x20b)][_0x248d20(0x2ae)](this[_0x248d20(0x1ce)]['id'],_0x3d7939,_0x155607);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -14,7 +14,7 @@ import { type AICapabilitiesConfig } from '../aicore/model/aicapabilities.js';
14
14
  import { type AIReplySource, type AIReply, type AIReplyChangeGroupState } from '../aicore/model/aireply.js';
15
15
  import { type AISuggestionContentPartDefinition } from '../aicore/utils/getsuggestionpartsfromreply.js';
16
16
  import { type AIChatConversationInitializedEvent } from './model/aichatconversation.js';
17
- import { type AIChatModel } from './model/aichatmodels.js';
17
+ import { type AIModelData } from '../aicore/aiconnector.js';
18
18
  import { type AIChatInteraction } from './model/aichatinteraction.js';
19
19
  import { type AIContentRenderingStrategy } from '../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
20
20
  import '../../theme/aichat/aichat.css';
@@ -184,7 +184,7 @@ export declare class AIChatUI extends ContextPlugin {
184
184
  /**
185
185
  * Updates selected AI model in the controls view.
186
186
  */
187
- setSelectedModel(model: AIChatModel, isDisabled?: boolean): void;
187
+ setSelectedModel(model: AIModelData, isDisabled?: boolean): void;
188
188
  /**
189
189
  * Sets the rendering strategy for the feed items. Streaming is default and uses HTMLStreamer to stream the content.
190
190
  *