@ckeditor/ckeditor5-ai 47.3.0 → 47.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- * 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 _0x3a6e57=_0x10a2;function _0x10a2(_0x498731,_0x533df0){const _0x177d5f=_0x177d();return _0x10a2=function(_0x10a255,_0x16b73e){_0x10a255=_0x10a255-0x1d9;let _0x403028=_0x177d5f[_0x10a255];return _0x403028;},_0x10a2(_0x498731,_0x533df0);}(function(_0x8e3836,_0x501c56){const _0x73237e=_0x10a2,_0x570288=_0x8e3836();while(!![]){try{const _0x4413d7=-parseInt(_0x73237e(0x1f3))/0x1*(parseInt(_0x73237e(0x24d))/0x2)+parseInt(_0x73237e(0x1ec))/0x3*(-parseInt(_0x73237e(0x234))/0x4)+parseInt(_0x73237e(0x1f9))/0x5+parseInt(_0x73237e(0x211))/0x6+-parseInt(_0x73237e(0x262))/0x7*(-parseInt(_0x73237e(0x25d))/0x8)+-parseInt(_0x73237e(0x20e))/0x9+-parseInt(_0x73237e(0x1db))/0xa;if(_0x4413d7===_0x501c56)break;else _0x570288['push'](_0x570288['shift']());}catch(_0x394644){_0x570288['push'](_0x570288['shift']());}}}(_0x177d,0xe4d09));import{createParser as _0x35f40b}from'eventsource-parser';function _0x177d(){const _0x57e975=['deleteDocument','117974tiIbRt','/documents','/calls/','/actions/custom/calls','/documents/','_apiUrl','deleteConversation','updateConversation','AbortError','/models/1','MAKE_SHORTER','push','excludeEmpty','feed','AIConnector','Content-Type','247096fKtrpj','_handleError','/files','items','/reviews/custom/calls/','217ASgtIo','message','parse','abortController','data','/web-resources/','FIX_GRAMMAR','https://ai.cke-cs.com/v1','executeAction','/conversations?','5996650wpDMCQ','getReader','PUT','uploadDocument','releaseLock','positiveCount','IMPROVE_WRITING','fetchConversationMessages','application/json','upsertCustomAIActionRating','upsertAIActionRating','getModels','decode','DELETE','fetchConversation','MAKE_TONE_FORMAL','upsertAIReviewRating','84PGtikV','code','POST','body','request','search','limit','13oAiSPD','fix-grammar','callCustomReview','improve-writing','MAKE_TONE_CASUAL','ai-request-aborted','4244125CEnket','Bearer\x20','read','/messages','make-longer','upsertCustomAIReviewRating','CONTINUE','signal','make-tone-casual','statusText','get','true','json','GET','attributes','executeCustomAction','fetchDocument','define','_getStreamReader','ai.serviceUrl','plugins','3370023yXxqGe','/files/','/web-resources','8401068sWAmTw','translate','deleteWebResource','modificationId','deleteFile','callSystemReview','append','/ratings','startConversation','value','pluginName','CloudServices','group','status','init','context','/reviews/system/','continue','totalCount','100','fetchConversations','token','ai-missing-token','make-tone-formal','text','PATCH','isOfficialPlugin','keys','/conversations','catch','_decoder','name','length','/messages/','/reviews/custom/calls','75476vQaVnO','toString','/calls','make-shorter','then','requires','MAKE_LONGER','uploadUrl','_token','stringify','file','queryAssistant','TRANSLATE','/actions/system/','config','upsertAIChatRating','traceId','/actions/custom/calls/','isPremiumPlugin','_sendApiRequest','/conversations/','uploadFile','ai-request-failed','reset'];_0x177d=function(){return _0x57e975;};return _0x177d();}import{ContextPlugin as _0x2d5a08}from'ckeditor5/src/core.js';import{CKEditorError as _0x43d357}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x375b51){const _0x4eb5ba=_0x10a2;_0x375b51[_0x4eb5ba(0x1ff)]=_0x4eb5ba(0x222),_0x375b51[_0x4eb5ba(0x268)]=_0x4eb5ba(0x1f4),_0x375b51[_0x4eb5ba(0x1e1)]=_0x4eb5ba(0x1f6),_0x375b51[_0x4eb5ba(0x23a)]=_0x4eb5ba(0x1fd),_0x375b51[_0x4eb5ba(0x257)]=_0x4eb5ba(0x237),_0x375b51[_0x4eb5ba(0x1f7)]=_0x4eb5ba(0x201),_0x375b51[_0x4eb5ba(0x1ea)]=_0x4eb5ba(0x228),_0x375b51[_0x4eb5ba(0x240)]=_0x4eb5ba(0x212);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2d5a08{[_0x3a6e57(0x252)];[_0x3a6e57(0x23c)];[_0x3a6e57(0x22f)];static get[_0x3a6e57(0x239)](){const _0x216a0c=_0x3a6e57;return[_0x216a0c(0x21c)];}static get[_0x3a6e57(0x21b)](){const _0x17f151=_0x3a6e57;return _0x17f151(0x25b);}static get[_0x3a6e57(0x22b)](){return!0x0;}static get[_0x3a6e57(0x246)](){return!0x0;}constructor(_0x4b9a64){const _0x2a2f01=_0x3a6e57;super(_0x4b9a64),this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x20a)](_0x2a2f01(0x20c),_0x2a2f01(0x269)),this[_0x2a2f01(0x252)]=this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x203)](_0x2a2f01(0x20c)),this[_0x2a2f01(0x23c)]=null,this[_0x2a2f01(0x22f)]=new TextDecoder();}[_0x3a6e57(0x21f)](){const _0x1ecda1=_0x3a6e57,_0x3043c1=this[_0x1ecda1(0x220)][_0x1ecda1(0x20d)][_0x1ecda1(0x203)](_0x1ecda1(0x21c));if(!_0x3043c1[_0x1ecda1(0x226)])throw new _0x43d357(_0x1ecda1(0x227),this);this[_0x1ecda1(0x23c)]=_0x3043c1[_0x1ecda1(0x226)];}[_0x3a6e57(0x219)](_0x2caa8f,_0x37f2ec){const _0x63c7ac=_0x3a6e57,_0x51916c=this[_0x63c7ac(0x247)](_0x63c7ac(0x22d),_0x63c7ac(0x1ee),{'id':_0x2caa8f,'group':_0x37f2ec});return{'getConversation':async()=>(await _0x51916c[_0x63c7ac(0x1f0)])[_0x63c7ac(0x205)](),'abortController':_0x51916c[_0x63c7ac(0x265)]};}[_0x3a6e57(0x23f)]({message:_0x104094,conversationId:_0x386b57,parts:_0x147ce2,capabilities:_0xb82247,model:_0x193ce1,quickActionData:_0x1d4c1d}){const _0x4b929a=_0x3a6e57,_0x129b18={..._0x1d4c1d&&{'quickActionData':_0x1d4c1d}},_0x10bd5f={'prompt':_0x104094,'content':_0x147ce2,'model':_0x193ce1,..._0xb82247&&{'capabilities':_0xb82247},...Object[_0x4b929a(0x22c)](_0x129b18)[_0x4b929a(0x231)]>0x0&&{'attributes':_0x129b18}},_0x5b0b92=this[_0x4b929a(0x247)](_0x4b929a(0x248)+_0x386b57+_0x4b929a(0x1fc),_0x4b929a(0x1ee),_0x10bd5f);return{'getStream':async()=>{const _0x247116=_0x4b929a,_0x533daa=(await _0x5b0b92[_0x247116(0x1f0)])[_0x247116(0x1ef)];return this[_0x247116(0x20b)](_0x533daa);},'abortController':_0x5b0b92[_0x4b929a(0x265)]};}[_0x3a6e57(0x208)]({content:_0x5797d5,message:_0x29bd7e,model:_0x501e4d,outputFormat:_0x11b565}){const _0x22280b=_0x3a6e57,_0x61a535={'content':[{'type':_0x22280b(0x229),'content':_0x5797d5}],'prompt':_0x29bd7e,'model':_0x501e4d,'outputFormat':_0x11b565},_0xd5d285=this[_0x22280b(0x247)](_0x22280b(0x250),_0x22280b(0x1ee),_0x61a535);return{'getStream':async()=>{const _0xcaa84c=_0x22280b,_0x337b39=(await _0xd5d285[_0xcaa84c(0x1f0)])[_0xcaa84c(0x1ef)];return this[_0xcaa84c(0x20b)](_0x337b39);},'abortController':_0xd5d285[_0x22280b(0x265)]};}[_0x3a6e57(0x1d9)]({actionName:_0x5fc5a4,content:_0x14c8af,args:_0x48f4a2}){const _0x4b58c1=_0x3a6e57,_0x4c75d0={'content':[{'type':_0x4b58c1(0x229),'content':_0x14c8af}],'args':_0x48f4a2},_0xf92de8=this[_0x4b58c1(0x247)](_0x4b58c1(0x241)+_0x5fc5a4+_0x4b58c1(0x236),_0x4b58c1(0x1ee),_0x4c75d0);return{'getStream':async()=>{const _0x4ef0df=_0x4b58c1,_0x4e885d=(await _0xf92de8[_0x4ef0df(0x1f0)])[_0x4ef0df(0x1ef)];return this[_0x4ef0df(0x20b)](_0x4e885d);},'abortController':_0xf92de8[_0x4b58c1(0x265)]};}[_0x3a6e57(0x249)](_0x5eaa4e,_0x340c78,_0x249869){const _0x20be20=_0x3a6e57,_0x483d04=new FormData();_0x483d04[_0x20be20(0x217)](_0x20be20(0x23e),_0x340c78,_0x340c78[_0x20be20(0x230)]),_0x249869&&_0x483d04[_0x20be20(0x217)](_0x20be20(0x207),JSON[_0x20be20(0x23d)](_0x249869));const _0x11434e=this[_0x20be20(0x247)](_0x20be20(0x248)+_0x5eaa4e+_0x20be20(0x25f),_0x20be20(0x1ee),_0x483d04);return{'getId':async()=>(await _0x11434e[_0x20be20(0x1f0)])[_0x20be20(0x205)](),'abortController':_0x11434e[_0x20be20(0x265)]};}[_0x3a6e57(0x209)](_0x34035b,_0x28490a){const _0x36a517=_0x3a6e57,_0x359000=this[_0x36a517(0x247)](_0x36a517(0x248)+_0x34035b+_0x36a517(0x251)+_0x28490a,_0x36a517(0x206));return{'getDocument':async()=>(await _0x359000[_0x36a517(0x1f0)])[_0x36a517(0x205)](),'abortController':_0x359000[_0x36a517(0x265)]};}[_0x3a6e57(0x1de)](_0x3fa52b,_0x1f9b7d,_0x56a961){const _0x3e262b=_0x3a6e57,_0x1295bf={'content':_0x1f9b7d};_0x56a961&&(_0x1295bf[_0x3e262b(0x207)]=_0x56a961);const _0x105dd8=this[_0x3e262b(0x247)](_0x3e262b(0x248)+_0x3fa52b+_0x3e262b(0x24e),_0x3e262b(0x1ee),_0x1295bf);return{'getId':async()=>(await _0x105dd8[_0x3e262b(0x1f0)])[_0x3e262b(0x205)](),'abortController':_0x105dd8[_0x3e262b(0x265)]};}[_0x3a6e57(0x225)](_0x112636,_0x3e7ad7){const _0x24d7d9=_0x3a6e57,_0x35e20b=new URLSearchParams();_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x259),_0x24d7d9(0x204)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f2),_0x24d7d9(0x224)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x21d),_0x112636),_0x3e7ad7&&_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f1),_0x3e7ad7);const _0x162f1b=this[_0x24d7d9(0x247)](_0x24d7d9(0x1da)+_0x35e20b[_0x24d7d9(0x235)](),_0x24d7d9(0x206));return{'getConversations':async()=>{const _0x2de69d=_0x24d7d9,_0x58f5e0=await _0x162f1b[_0x2de69d(0x1f0)];return(await _0x58f5e0[_0x2de69d(0x205)]())[_0x2de69d(0x260)];},'abortController':_0x162f1b[_0x24d7d9(0x265)]};}[_0x3a6e57(0x253)](_0x47cd7b){const _0x1bd96f=_0x3a6e57,_0x3ece06=this[_0x1bd96f(0x247)](_0x1bd96f(0x248)+_0x47cd7b,_0x1bd96f(0x1e8));return{'execute':async()=>{const _0x137354=_0x1bd96f;await _0x3ece06[_0x137354(0x1f0)];},'abortController':_0x3ece06[_0x1bd96f(0x265)]};}[_0x3a6e57(0x254)](_0x3047bc,_0xceff9c){const _0x272092=_0x3a6e57,_0xe29010=this[_0x272092(0x247)](_0x272092(0x248)+_0x3047bc,_0x272092(0x22a),_0xceff9c);return{'getResult':async()=>(await _0xe29010[_0x272092(0x1f0)],_0xceff9c),'abortController':_0xe29010[_0x272092(0x265)]};}[_0x3a6e57(0x1e9)](_0xf7c655){const _0x25073a=_0x3a6e57,_0x2dbefb=this[_0x25073a(0x247)](_0x25073a(0x248)+_0xf7c655,_0x25073a(0x206));return{'getConversation':async()=>(await _0x2dbefb[_0x25073a(0x1f0)])[_0x25073a(0x205)](),'abortController':_0x2dbefb[_0x25073a(0x265)]};}[_0x3a6e57(0x1e2)](_0x2bacee){const _0x3e2299=_0x3a6e57,_0x4627d5=this[_0x3e2299(0x247)](_0x3e2299(0x248)+_0x2bacee+_0x3e2299(0x1fc),_0x3e2299(0x206));return{'getMessages':async()=>{const _0x4fd037=_0x3e2299,_0x5b7349=await _0x4627d5[_0x4fd037(0x1f0)];return(await _0x5b7349[_0x4fd037(0x205)]())[_0x4fd037(0x260)];},'abortController':_0x4627d5[_0x3e2299(0x265)]};}[_0x3a6e57(0x23b)](_0xd8ddc6,_0x572f93,_0x1ac859){const _0x566aab=_0x3a6e57,_0x4a4dbb=this[_0x566aab(0x247)](_0x566aab(0x248)+_0xd8ddc6+_0x566aab(0x210),_0x566aab(0x1ee),{'url':_0x572f93,'attributes':_0x1ac859});return{'getId':async()=>(await _0x4a4dbb[_0x566aab(0x1f0)])[_0x566aab(0x205)](),'abortController':_0x4a4dbb[_0x566aab(0x265)]};}[_0x3a6e57(0x1e6)](){const _0x5b8b42=_0x3a6e57,_0x2e2174=this[_0x5b8b42(0x247)](_0x5b8b42(0x256),_0x5b8b42(0x206));return{'list':async()=>await(await _0x2e2174[_0x5b8b42(0x1f0)])[_0x5b8b42(0x205)](),'abortController':_0x2e2174[_0x5b8b42(0x265)]};}[_0x3a6e57(0x215)](_0x430a8,_0x14066e){const _0x3e271a=_0x3a6e57,_0x12899d=this[_0x3e271a(0x247)](_0x3e271a(0x248)+_0x430a8+_0x3e271a(0x20f)+_0x14066e,_0x3e271a(0x1e8));return{'execute':async()=>{const _0x66d0cc=_0x3e271a;await _0x12899d[_0x66d0cc(0x1f0)];},'abortController':_0x12899d[_0x3e271a(0x265)]};}[_0x3a6e57(0x24c)](_0x43aa15,_0x538423){const _0x5e5385=_0x3a6e57,_0x1bb8c6=this[_0x5e5385(0x247)](_0x5e5385(0x248)+_0x43aa15+_0x5e5385(0x251)+_0x538423,_0x5e5385(0x1e8));return{'execute':async()=>{const _0x4dd3df=_0x5e5385;await _0x1bb8c6[_0x4dd3df(0x1f0)];},'abortController':_0x1bb8c6[_0x5e5385(0x265)]};}[_0x3a6e57(0x213)](_0x246eaf,_0x6a2907){const _0x3a9fb6=_0x3a6e57,_0x3e17de=this[_0x3a9fb6(0x247)](_0x3a9fb6(0x248)+_0x246eaf+_0x3a9fb6(0x267)+_0x6a2907,_0x3a9fb6(0x1e8));return{'execute':async()=>{const _0x3e6bad=_0x3a9fb6;await _0x3e17de[_0x3e6bad(0x1f0)];},'abortController':_0x3e17de[_0x3a9fb6(0x265)]};}[_0x3a6e57(0x216)]({reviewName:_0x16b83f,content:_0x543a7f,args:_0x4d544a}){const _0x3805a5=_0x3a6e57,_0x3b5a55=this[_0x3805a5(0x247)](_0x3805a5(0x221)+_0x16b83f+_0x3805a5(0x236),_0x3805a5(0x1ee),{'content':[{'type':_0x3805a5(0x229),'content':_0x543a7f}],'args':_0x4d544a});return{'getStream':async()=>{const _0x4437b9=_0x3805a5,_0x667535=(await _0x3b5a55[_0x4437b9(0x1f0)])[_0x4437b9(0x1ef)];return this[_0x4437b9(0x20b)](_0x667535);},'abortController':_0x3b5a55[_0x3805a5(0x265)]};}[_0x3a6e57(0x1f5)]({content:_0x1fbfbb,prompt:_0x3ed9ae,model:_0x5f3f04}){const _0x192bfc=_0x3a6e57,_0x8e223c=this[_0x192bfc(0x247)](_0x192bfc(0x233),_0x192bfc(0x1ee),{'content':[{'type':_0x192bfc(0x229),'content':_0x1fbfbb}],'prompt':_0x3ed9ae,'model':_0x5f3f04});return{'getStream':async()=>{const _0x21caf3=_0x192bfc,_0x41d14d=(await _0x8e223c[_0x21caf3(0x1f0)])[_0x21caf3(0x1ef)];return this[_0x21caf3(0x20b)](_0x41d14d);},'abortController':_0x8e223c[_0x192bfc(0x265)]};}[_0x3a6e57(0x243)](_0x3282e6,_0x5e70e8,_0x4f1e0f){const _0x23dcd7=_0x3a6e57,_0x1d1e6c=this[_0x23dcd7(0x247)](_0x23dcd7(0x248)+_0x3282e6+_0x23dcd7(0x232)+_0x5e70e8+_0x23dcd7(0x218),_0x23dcd7(0x1dd),{'positiveCount':_0x4f1e0f[_0x23dcd7(0x1e0)],'totalCount':_0x4f1e0f[_0x23dcd7(0x223)],'modificationId':_0x4f1e0f[_0x23dcd7(0x214)]});return{'execute':async()=>{const _0x4cad4b=_0x23dcd7;await _0x1d1e6c[_0x4cad4b(0x1f0)];},'abortController':_0x1d1e6c[_0x23dcd7(0x265)]};}[_0x3a6e57(0x1e5)](_0x46f45c,_0x6e28a2,_0x4cceda){const _0x4a38a5=_0x3a6e57,_0x38672e=this[_0x4a38a5(0x247)](_0x4a38a5(0x241)+_0x46f45c+_0x4a38a5(0x24f)+_0x6e28a2+_0x4a38a5(0x218),_0x4a38a5(0x1dd),{'positiveCount':_0x4cceda[_0x4a38a5(0x1e0)],'totalCount':_0x4cceda[_0x4a38a5(0x223)]});return{'execute':async()=>{const _0x5444a4=_0x4a38a5;await _0x38672e[_0x5444a4(0x1f0)];},'abortController':_0x38672e[_0x4a38a5(0x265)]};}[_0x3a6e57(0x1e4)](_0x22035a,_0x1d2ace){const _0x4b8033=_0x3a6e57,_0x813976=this[_0x4b8033(0x247)](_0x4b8033(0x245)+_0x22035a+_0x4b8033(0x218),_0x4b8033(0x1dd),{'positiveCount':_0x1d2ace[_0x4b8033(0x1e0)],'totalCount':_0x1d2ace[_0x4b8033(0x223)]});return{'execute':async()=>{const _0x3eaa29=_0x4b8033;await _0x813976[_0x3eaa29(0x1f0)];},'abortController':_0x813976[_0x4b8033(0x265)]};}[_0x3a6e57(0x1eb)](_0x14b13b,_0x1df089,_0x4b8044,_0xa84aa1){const _0x3cf59b=_0x3a6e57,_0x5495cd=this[_0x3cf59b(0x247)](_0x3cf59b(0x221)+_0x14b13b+_0x3cf59b(0x24f)+_0x1df089+_0x3cf59b(0x218),_0x3cf59b(0x1dd),{'positiveCount':_0x4b8044[_0x3cf59b(0x1e0)],'totalCount':_0x4b8044[_0x3cf59b(0x223)],'dataId':_0xa84aa1});return{'execute':async()=>{const _0x3fa4d6=_0x3cf59b;await _0x5495cd[_0x3fa4d6(0x1f0)];},'abortController':_0x5495cd[_0x3cf59b(0x265)]};}[_0x3a6e57(0x1fe)](_0x3105bc,_0x1e392a,_0x57d385){const _0x2bdc28=_0x3a6e57,_0x379fc8=this[_0x2bdc28(0x247)](_0x2bdc28(0x261)+_0x3105bc+_0x2bdc28(0x218),_0x2bdc28(0x1dd),{'positiveCount':_0x1e392a[_0x2bdc28(0x1e0)],'totalCount':_0x1e392a[_0x2bdc28(0x223)],'dataId':_0x57d385});return{'execute':async()=>{const _0x539f05=_0x2bdc28;await _0x379fc8[_0x539f05(0x1f0)];},'abortController':_0x379fc8[_0x2bdc28(0x265)]};}[_0x3a6e57(0x247)](_0x30096f,_0x2a1dec,_0x101571){const _0x432ff1=_0x3a6e57,_0x40c080=new AbortController(),_0x1356c9=_0x101571 instanceof FormData,_0x17185e={'Authorization':_0x432ff1(0x1fa)+this[_0x432ff1(0x23c)]?.[_0x432ff1(0x21a)]};_0x101571&&!_0x1356c9&&(_0x17185e[_0x432ff1(0x25c)]=_0x432ff1(0x1e3));const _0x331091={'method':_0x2a1dec,'headers':_0x17185e,'signal':_0x40c080[_0x432ff1(0x200)]};return _0x101571&&(_0x331091[_0x432ff1(0x1ef)]=_0x1356c9?_0x101571:JSON[_0x432ff1(0x23d)](_0x101571)),{'request':fetch(''+this[_0x432ff1(0x252)]+_0x30096f,_0x331091)[_0x432ff1(0x22e)](_0x475785=>{const _0x235e59=_0x432ff1;this[_0x235e59(0x25e)](_0x475785);})[_0x432ff1(0x238)](_0x1c7740=>_0x1c7740['ok']?_0x1c7740:_0x1c7740[_0x432ff1(0x205)]()[_0x432ff1(0x238)](_0x51bac8=>{const _0x4d209a=_0x432ff1;throw{'url':this[_0x4d209a(0x252)],'path':_0x30096f,'method':_0x2a1dec,'body':_0x101571,'status':(_0x1c7740||{})[_0x4d209a(0x21e)],'statusText':(_0x1c7740||{})[_0x4d209a(0x202)],'code':_0x51bac8[_0x4d209a(0x1ed)],'message':_0x51bac8[_0x4d209a(0x263)],'traceId':_0x51bac8[_0x4d209a(0x244)]};})),'abortController':_0x40c080};}async*[_0x3a6e57(0x20b)](_0x5c07a1){const _0x3194e5=_0x3a6e57,_0x9605b5=[],_0x2b6e6b=_0x5c07a1[_0x3194e5(0x1dc)](),_0x15b54e=_0x35f40b({'onError':_0x4f2498=>{const _0x538394=_0x3194e5;this[_0x538394(0x25e)](_0x4f2498);},'onEvent':_0x3478e5=>{const _0x43eb03=_0x3194e5;_0x3478e5[_0x43eb03(0x266)]=JSON[_0x43eb03(0x264)](_0x3478e5[_0x43eb03(0x266)]),_0x9605b5[_0x43eb03(0x258)](_0x3478e5);}});try{let _0x17b6de=!0x1;for(;!_0x17b6de;){const {done:_0xc5ca72,value:_0x42872f}=await _0x2b6e6b[_0x3194e5(0x1fb)]();_0xc5ca72&&(_0x17b6de=!0x0),_0x15b54e[_0x3194e5(0x25a)](this[_0x3194e5(0x22f)][_0x3194e5(0x1e7)](_0x42872f,{'stream':!0x0})),yield*_0x9605b5,_0x9605b5[_0x3194e5(0x231)]=0x0;}}catch(_0x4f6675){this[_0x3194e5(0x25e)](_0x4f6675);}finally{_0x2b6e6b[_0x3194e5(0x1df)](),_0x15b54e[_0x3194e5(0x24b)]();}}[_0x3a6e57(0x25e)](_0x3ab467){const _0x53f89b=_0x3a6e57;if(_0x3ab467 instanceof _0x43d357)throw _0x3ab467;if(_0x3ab467 instanceof Error&&_0x53f89b(0x255)===_0x3ab467[_0x53f89b(0x230)])throw new _0x43d357(_0x53f89b(0x1f8),this,{'originalError':_0x3ab467});throw new _0x43d357(_0x53f89b(0x24a),this,{'originalError':_0x3ab467});}}
23
+ const _0x434aec=_0x4ed9;(function(_0x43d24f,_0x395c7c){const _0x5eb627=_0x4ed9,_0x1daccb=_0x43d24f();while(!![]){try{const _0x44300e=-parseInt(_0x5eb627(0x1fa))/0x1*(-parseInt(_0x5eb627(0x22c))/0x2)+-parseInt(_0x5eb627(0x205))/0x3*(-parseInt(_0x5eb627(0x1da))/0x4)+-parseInt(_0x5eb627(0x207))/0x5*(parseInt(_0x5eb627(0x1b7))/0x6)+parseInt(_0x5eb627(0x219))/0x7+parseInt(_0x5eb627(0x1b2))/0x8*(parseInt(_0x5eb627(0x239))/0x9)+-parseInt(_0x5eb627(0x1be))/0xa*(parseInt(_0x5eb627(0x213))/0xb)+-parseInt(_0x5eb627(0x1ce))/0xc*(parseInt(_0x5eb627(0x229))/0xd);if(_0x44300e===_0x395c7c)break;else _0x1daccb['push'](_0x1daccb['shift']());}catch(_0x1fd9b1){_0x1daccb['push'](_0x1daccb['shift']());}}}(_0x1420,0x75fbe));import{createParser as _0x370d58}from'eventsource-parser';import{ContextPlugin as _0x707907}from'ckeditor5/src/core.js';function _0x4ed9(_0x3a62d3,_0x3010a6){const _0x142087=_0x1420();return _0x4ed9=function(_0x4ed922,_0x596f50){_0x4ed922=_0x4ed922-0x1b2;let _0x4d5a8b=_0x142087[_0x4ed922];return _0x4d5a8b;},_0x4ed9(_0x3a62d3,_0x3010a6);}import{CKEditorError as _0x5e2134}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2e7659){const _0x16221f=_0x4ed9;_0x2e7659[_0x16221f(0x1e1)]=_0x16221f(0x21e),_0x2e7659[_0x16221f(0x1dd)]=_0x16221f(0x22b),_0x2e7659[_0x16221f(0x234)]=_0x16221f(0x221),_0x2e7659[_0x16221f(0x1b8)]=_0x16221f(0x240),_0x2e7659[_0x16221f(0x231)]=_0x16221f(0x1ff),_0x2e7659[_0x16221f(0x246)]=_0x16221f(0x1ef),_0x2e7659[_0x16221f(0x23e)]=_0x16221f(0x23f),_0x2e7659[_0x16221f(0x233)]=_0x16221f(0x1f7);}(AIActionsNames||(AIActionsNames={}));function _0x1420(){const _0x3d2890=['value','totalCount','get','_apiUrl','language','/reviews/custom/calls/','PATCH','isOfficialPlugin','upsertCustomAIReviewRating','_sendApiRequest','decode','getModels','920796lcksrH','ai.serviceUrl','/actions/custom/calls/','executeCustomAction','data','excludeEmpty','message','/files/','updateConversation','getReader','GET','Bearer\x20','4mdAIEQ','request','/messages','FIX_GRAMMAR','fetchConversationMessages','fetchDocument','deleteConversation','CONTINUE','file','name','requires','token','length','reset','items','/documents/','uploadDocument','true','callCustomReview','json','search','make-tone-casual','100','fetchConversations','fetchConversation','/ratings','releaseLock','abortController','/web-resources/','translate','keys','/models/1?','757Jlvvyx','ai-missing-token','/conversations','body','attributes','make-shorter','init','uploadFile','/calls','isPremiumPlugin','CloudServices','33591cKNoeo','/actions/custom/calls','549150VABKHH','deleteDocument','define','deleteWebResource','/reviews/custom/calls','/actions/system/','_token','upsertAIActionRating','signal','AbortError','upsertCustomAIActionRating','application/json','6127lerqpN','DELETE','stringify','feed','config','callSystemReview','4293296bZGITe','toString','queryAssistant','text','uploadUrl','continue','upsertAIChatRating','parse','improve-writing','/files','then','/conversations/','startConversation','pluginName','_decoder','code','13ejmbCC','append','fix-grammar','146wHcGmE','context','/reviews/system/','/conversations?','push','MAKE_SHORTER','https://ai.cke-cs.com/v1','TRANSLATE','IMPROVE_WRITING','/messages/','_getStreamReader','ai-request-failed','/documents','2727drFsDc','group','positiveCount','modificationId','_handleError','MAKE_TONE_FORMAL','make-tone-formal','make-longer','traceId','status','/calls/','PUT','POST','MAKE_TONE_CASUAL','16696tLVIzV','limit','ai-request-aborted','plugins','catch','12GpQJpK','MAKE_LONGER','read','/web-resources','Content-Type','executeAction','AIConnector','9560gDmBNS','statusText','deleteFile','upsertAIReviewRating'];_0x1420=function(){return _0x3d2890;};return _0x1420();}export class AIConnector extends _0x707907{[_0x434aec(0x1c5)];[_0x434aec(0x20d)];[_0x434aec(0x227)];static get[_0x434aec(0x1e4)](){const _0x3f9585=_0x434aec;return[_0x3f9585(0x204)];}static get[_0x434aec(0x226)](){const _0x56d23d=_0x434aec;return _0x56d23d(0x1bd);}static get[_0x434aec(0x1c9)](){return!0x0;}static get[_0x434aec(0x203)](){return!0x0;}constructor(_0x4cdf72){const _0x157b74=_0x434aec;super(_0x4cdf72),this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x209)](_0x157b74(0x1cf),_0x157b74(0x232)),this[_0x157b74(0x1c5)]=this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x1c4)](_0x157b74(0x1cf)),this[_0x157b74(0x20d)]=null,this[_0x157b74(0x227)]=new TextDecoder();}[_0x434aec(0x200)](){const _0x3960e9=_0x434aec,_0x3d8893=this[_0x3960e9(0x22d)][_0x3960e9(0x1b5)][_0x3960e9(0x1c4)](_0x3960e9(0x204));if(!_0x3d8893[_0x3960e9(0x1e5)])throw new _0x5e2134(_0x3960e9(0x1fb),this);this[_0x3960e9(0x20d)]=_0x3d8893[_0x3960e9(0x1e5)];}[_0x434aec(0x225)](_0x5d152,_0x45e30c){const _0x5b94f6=_0x434aec,_0x556cf3=this[_0x5b94f6(0x1cb)](_0x5b94f6(0x1fc),_0x5b94f6(0x245),{'id':_0x5d152,'group':_0x45e30c});return{'getConversation':async()=>(await _0x556cf3[_0x5b94f6(0x1db)])[_0x5b94f6(0x1ed)](),'abortController':_0x556cf3[_0x5b94f6(0x1f5)]};}[_0x434aec(0x21b)]({message:_0x210714,conversationId:_0x123c8e,parts:_0x54950c,capabilities:_0xd5149c,model:_0x2536b0,quickActionData:_0x49b04d}){const _0xcd49a0=_0x434aec,_0xc00178={..._0x49b04d&&{'quickActionData':_0x49b04d}},_0x57478e={'prompt':_0x210714,'content':_0x54950c,'model':_0x2536b0,..._0xd5149c&&{'capabilities':_0xd5149c},...Object[_0xcd49a0(0x1f8)](_0xc00178)[_0xcd49a0(0x1e6)]>0x0&&{'attributes':_0xc00178}},_0x3fc8ab=this[_0xcd49a0(0x1cb)](_0xcd49a0(0x224)+_0x123c8e+_0xcd49a0(0x1dc),_0xcd49a0(0x245),_0x57478e);return{'getStream':async()=>{const _0xd6f34c=_0xcd49a0,_0x20eac9=(await _0x3fc8ab[_0xd6f34c(0x1db)])[_0xd6f34c(0x1fd)];return this[_0xd6f34c(0x236)](_0x20eac9);},'abortController':_0x3fc8ab[_0xcd49a0(0x1f5)]};}[_0x434aec(0x1d1)]({content:_0x243694,message:_0x74b251,model:_0x35be41,outputFormat:_0xf60c16}){const _0x2bb081=_0x434aec,_0x27a0b1={'content':[{'type':_0x2bb081(0x21c),'content':_0x243694}],'prompt':_0x74b251,'model':_0x35be41,'outputFormat':_0xf60c16},_0x2c2644=this[_0x2bb081(0x1cb)](_0x2bb081(0x206),_0x2bb081(0x245),_0x27a0b1);return{'getStream':async()=>{const _0x3ed843=_0x2bb081,_0x3ccb4a=(await _0x2c2644[_0x3ed843(0x1db)])[_0x3ed843(0x1fd)];return this[_0x3ed843(0x236)](_0x3ccb4a);},'abortController':_0x2c2644[_0x2bb081(0x1f5)]};}[_0x434aec(0x1bc)]({actionName:_0x342824,content:_0x5e1f26,args:_0x38f652}){const _0x41c243=_0x434aec,_0x1d7588={'content':[{'type':_0x41c243(0x21c),'content':_0x5e1f26}],'args':_0x38f652},_0x22b49c=this[_0x41c243(0x1cb)](_0x41c243(0x20c)+_0x342824+_0x41c243(0x202),_0x41c243(0x245),_0x1d7588);return{'getStream':async()=>{const _0x34bba8=_0x41c243,_0x2e96f7=(await _0x22b49c[_0x34bba8(0x1db)])[_0x34bba8(0x1fd)];return this[_0x34bba8(0x236)](_0x2e96f7);},'abortController':_0x22b49c[_0x41c243(0x1f5)]};}[_0x434aec(0x201)](_0x58a15e,_0xc2dd36,_0x1d1482){const _0x4ef8b2=_0x434aec,_0x19151d=new FormData();_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1e2),_0xc2dd36,_0xc2dd36[_0x4ef8b2(0x1e3)]),_0x1d1482&&_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1fe),JSON[_0x4ef8b2(0x215)](_0x1d1482));const _0x234b66=this[_0x4ef8b2(0x1cb)](_0x4ef8b2(0x224)+_0x58a15e+_0x4ef8b2(0x222),_0x4ef8b2(0x245),_0x19151d);return{'getId':async()=>(await _0x234b66[_0x4ef8b2(0x1db)])[_0x4ef8b2(0x1ed)](),'abortController':_0x234b66[_0x4ef8b2(0x1f5)]};}[_0x434aec(0x1df)](_0x2ad0e8,_0x1228d1){const _0x3a5e25=_0x434aec,_0xa17e4b=this[_0x3a5e25(0x1cb)](_0x3a5e25(0x224)+_0x2ad0e8+_0x3a5e25(0x1e9)+_0x1228d1,_0x3a5e25(0x1d8));return{'getDocument':async()=>(await _0xa17e4b[_0x3a5e25(0x1db)])[_0x3a5e25(0x1ed)](),'abortController':_0xa17e4b[_0x3a5e25(0x1f5)]};}[_0x434aec(0x1ea)](_0x3edfdd,_0x2e676c,_0x408dba){const _0x46c281=_0x434aec,_0x59ca8f={'content':_0x2e676c};_0x408dba&&(_0x59ca8f[_0x46c281(0x1fe)]=_0x408dba);const _0x49b343=this[_0x46c281(0x1cb)](_0x46c281(0x224)+_0x3edfdd+_0x46c281(0x238),_0x46c281(0x245),_0x59ca8f);return{'getId':async()=>(await _0x49b343[_0x46c281(0x1db)])[_0x46c281(0x1ed)](),'abortController':_0x49b343[_0x46c281(0x1f5)]};}[_0x434aec(0x1f1)](_0x18b5d4,_0x129101){const _0x41a6c3=_0x434aec,_0xfd9f3f=new URLSearchParams();_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1d3),_0x41a6c3(0x1eb)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1b3),_0x41a6c3(0x1f0)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x23a),_0x18b5d4),_0x129101&&_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1ee),_0x129101);const _0x18fadd=this[_0x41a6c3(0x1cb)](_0x41a6c3(0x22f)+_0xfd9f3f[_0x41a6c3(0x21a)](),_0x41a6c3(0x1d8));return{'getConversations':async()=>{const _0xf51b54=_0x41a6c3,_0x4a537c=await _0x18fadd[_0xf51b54(0x1db)];return(await _0x4a537c[_0xf51b54(0x1ed)]())[_0xf51b54(0x1e8)];},'abortController':_0x18fadd[_0x41a6c3(0x1f5)]};}[_0x434aec(0x1e0)](_0x47eb3f){const _0x72baa6=_0x434aec,_0x4dd250=this[_0x72baa6(0x1cb)](_0x72baa6(0x224)+_0x47eb3f,_0x72baa6(0x214));return{'execute':async()=>{const _0x30b513=_0x72baa6;await _0x4dd250[_0x30b513(0x1db)];},'abortController':_0x4dd250[_0x72baa6(0x1f5)]};}[_0x434aec(0x1d6)](_0x11c2d3,_0x7e5ac9){const _0x4ba3f9=_0x434aec,_0x454477=this[_0x4ba3f9(0x1cb)](_0x4ba3f9(0x224)+_0x11c2d3,_0x4ba3f9(0x1c8),_0x7e5ac9);return{'getResult':async()=>(await _0x454477[_0x4ba3f9(0x1db)],_0x7e5ac9),'abortController':_0x454477[_0x4ba3f9(0x1f5)]};}[_0x434aec(0x1f2)](_0x361e23){const _0x58afc1=_0x434aec,_0x37cb9d=this[_0x58afc1(0x1cb)](_0x58afc1(0x224)+_0x361e23,_0x58afc1(0x1d8));return{'getConversation':async()=>(await _0x37cb9d[_0x58afc1(0x1db)])[_0x58afc1(0x1ed)](),'abortController':_0x37cb9d[_0x58afc1(0x1f5)]};}[_0x434aec(0x1de)](_0x31dce1){const _0x4eff3a=_0x434aec,_0x547898=this[_0x4eff3a(0x1cb)](_0x4eff3a(0x224)+_0x31dce1+_0x4eff3a(0x1dc),_0x4eff3a(0x1d8));return{'getMessages':async()=>{const _0x1acf03=_0x4eff3a,_0x4f44bc=await _0x547898[_0x1acf03(0x1db)];return(await _0x4f44bc[_0x1acf03(0x1ed)]())[_0x1acf03(0x1e8)];},'abortController':_0x547898[_0x4eff3a(0x1f5)]};}[_0x434aec(0x21d)](_0x21765f,_0x561040,_0x578aab){const _0x5df51f=_0x434aec,_0x4c0f2c=this[_0x5df51f(0x1cb)](_0x5df51f(0x224)+_0x21765f+_0x5df51f(0x1ba),_0x5df51f(0x245),{'url':_0x561040,'attributes':_0x578aab});return{'getId':async()=>(await _0x4c0f2c[_0x5df51f(0x1db)])[_0x5df51f(0x1ed)](),'abortController':_0x4c0f2c[_0x5df51f(0x1f5)]};}[_0x434aec(0x1cd)](_0x3a6d26='en'){const _0x2f043f=_0x434aec,_0x4d1f3b=new URLSearchParams();_0x4d1f3b[_0x2f043f(0x22a)](_0x2f043f(0x1c6),_0x3a6d26);const _0x427bfd=_0x2f043f(0x1f9)+_0x4d1f3b[_0x2f043f(0x21a)](),_0x22dc84=this[_0x2f043f(0x1cb)](_0x427bfd,_0x2f043f(0x1d8));return{'list':async()=>await(await _0x22dc84[_0x2f043f(0x1db)])[_0x2f043f(0x1ed)](),'abortController':_0x22dc84[_0x2f043f(0x1f5)]};}[_0x434aec(0x1c0)](_0x3307cb,_0x9fdcf9){const _0x2fac29=_0x434aec,_0x98ace5=this[_0x2fac29(0x1cb)](_0x2fac29(0x224)+_0x3307cb+_0x2fac29(0x1d5)+_0x9fdcf9,_0x2fac29(0x214));return{'execute':async()=>{const _0x152594=_0x2fac29;await _0x98ace5[_0x152594(0x1db)];},'abortController':_0x98ace5[_0x2fac29(0x1f5)]};}[_0x434aec(0x208)](_0x56f7da,_0x1beb1b){const _0x2f985e=_0x434aec,_0x546896=this[_0x2f985e(0x1cb)](_0x2f985e(0x224)+_0x56f7da+_0x2f985e(0x1e9)+_0x1beb1b,_0x2f985e(0x214));return{'execute':async()=>{const _0x170bba=_0x2f985e;await _0x546896[_0x170bba(0x1db)];},'abortController':_0x546896[_0x2f985e(0x1f5)]};}[_0x434aec(0x20a)](_0x5f4d74,_0x215a97){const _0x1b3c64=_0x434aec,_0x19c627=this[_0x1b3c64(0x1cb)](_0x1b3c64(0x224)+_0x5f4d74+_0x1b3c64(0x1f6)+_0x215a97,_0x1b3c64(0x214));return{'execute':async()=>{const _0x4ab993=_0x1b3c64;await _0x19c627[_0x4ab993(0x1db)];},'abortController':_0x19c627[_0x1b3c64(0x1f5)]};}[_0x434aec(0x218)]({reviewName:_0x570e0d,content:_0x31d2dd,args:_0x319f87}){const _0x45ecaa=_0x434aec,_0x449dcf=this[_0x45ecaa(0x1cb)](_0x45ecaa(0x22e)+_0x570e0d+_0x45ecaa(0x202),_0x45ecaa(0x245),{'content':[{'type':_0x45ecaa(0x21c),'content':_0x31d2dd}],'args':_0x319f87});return{'getStream':async()=>{const _0x220bfa=_0x45ecaa,_0x3feecc=(await _0x449dcf[_0x220bfa(0x1db)])[_0x220bfa(0x1fd)];return this[_0x220bfa(0x236)](_0x3feecc);},'abortController':_0x449dcf[_0x45ecaa(0x1f5)]};}[_0x434aec(0x1ec)]({content:_0x162166,prompt:_0x7f6bbe,model:_0x12d6ce}){const _0x11502e=_0x434aec,_0x33a6ff=this[_0x11502e(0x1cb)](_0x11502e(0x20b),_0x11502e(0x245),{'content':[{'type':_0x11502e(0x21c),'content':_0x162166}],'prompt':_0x7f6bbe,'model':_0x12d6ce});return{'getStream':async()=>{const _0x2b57fc=_0x11502e,_0x1de921=(await _0x33a6ff[_0x2b57fc(0x1db)])[_0x2b57fc(0x1fd)];return this[_0x2b57fc(0x236)](_0x1de921);},'abortController':_0x33a6ff[_0x11502e(0x1f5)]};}[_0x434aec(0x21f)](_0x45dc2d,_0x3b3f15,_0xf49826){const _0x494b1d=_0x434aec,_0x45da3a=this[_0x494b1d(0x1cb)](_0x494b1d(0x224)+_0x45dc2d+_0x494b1d(0x235)+_0x3b3f15+_0x494b1d(0x1f3),_0x494b1d(0x244),{'positiveCount':_0xf49826[_0x494b1d(0x23b)],'totalCount':_0xf49826[_0x494b1d(0x1c3)],'modificationId':_0xf49826[_0x494b1d(0x23c)]});return{'execute':async()=>{const _0x2ff74d=_0x494b1d;await _0x45da3a[_0x2ff74d(0x1db)];},'abortController':_0x45da3a[_0x494b1d(0x1f5)]};}[_0x434aec(0x20e)](_0xfca40e,_0x5d49d1,_0x593824){const _0x195105=_0x434aec,_0x75a94b=this[_0x195105(0x1cb)](_0x195105(0x20c)+_0xfca40e+_0x195105(0x243)+_0x5d49d1+_0x195105(0x1f3),_0x195105(0x244),{'positiveCount':_0x593824[_0x195105(0x23b)],'totalCount':_0x593824[_0x195105(0x1c3)]});return{'execute':async()=>{const _0x3e2513=_0x195105;await _0x75a94b[_0x3e2513(0x1db)];},'abortController':_0x75a94b[_0x195105(0x1f5)]};}[_0x434aec(0x211)](_0xbef930,_0x30bf65){const _0xd1d20a=_0x434aec,_0x49460a=this[_0xd1d20a(0x1cb)](_0xd1d20a(0x1d0)+_0xbef930+_0xd1d20a(0x1f3),_0xd1d20a(0x244),{'positiveCount':_0x30bf65[_0xd1d20a(0x23b)],'totalCount':_0x30bf65[_0xd1d20a(0x1c3)]});return{'execute':async()=>{const _0x259541=_0xd1d20a;await _0x49460a[_0x259541(0x1db)];},'abortController':_0x49460a[_0xd1d20a(0x1f5)]};}[_0x434aec(0x1c1)](_0x27352a,_0x24eae1,_0x35700c,_0x409c4b){const _0xa6c1dd=_0x434aec,_0x1befe6=this[_0xa6c1dd(0x1cb)](_0xa6c1dd(0x22e)+_0x27352a+_0xa6c1dd(0x243)+_0x24eae1+_0xa6c1dd(0x1f3),_0xa6c1dd(0x244),{'positiveCount':_0x35700c[_0xa6c1dd(0x23b)],'totalCount':_0x35700c[_0xa6c1dd(0x1c3)],'dataId':_0x409c4b});return{'execute':async()=>{const _0xeffd=_0xa6c1dd;await _0x1befe6[_0xeffd(0x1db)];},'abortController':_0x1befe6[_0xa6c1dd(0x1f5)]};}[_0x434aec(0x1ca)](_0x252e7b,_0x435b30,_0x1edd04){const _0x514eba=_0x434aec,_0x14be86=this[_0x514eba(0x1cb)](_0x514eba(0x1c7)+_0x252e7b+_0x514eba(0x1f3),_0x514eba(0x244),{'positiveCount':_0x435b30[_0x514eba(0x23b)],'totalCount':_0x435b30[_0x514eba(0x1c3)],'dataId':_0x1edd04});return{'execute':async()=>{const _0x303f4b=_0x514eba;await _0x14be86[_0x303f4b(0x1db)];},'abortController':_0x14be86[_0x514eba(0x1f5)]};}[_0x434aec(0x1cb)](_0x2ed347,_0x2a1876,_0x1476da){const _0x509983=_0x434aec,_0x305aaf=new AbortController(),_0x155ed2=_0x1476da instanceof FormData,_0xf9714b={'Authorization':_0x509983(0x1d9)+this[_0x509983(0x20d)]?.[_0x509983(0x1c2)]};_0x1476da&&!_0x155ed2&&(_0xf9714b[_0x509983(0x1bb)]=_0x509983(0x212));const _0x9b9d26={'method':_0x2a1876,'headers':_0xf9714b,'signal':_0x305aaf[_0x509983(0x20f)]};return _0x1476da&&(_0x9b9d26[_0x509983(0x1fd)]=_0x155ed2?_0x1476da:JSON[_0x509983(0x215)](_0x1476da)),{'request':fetch(''+this[_0x509983(0x1c5)]+_0x2ed347,_0x9b9d26)[_0x509983(0x1b6)](_0x4d1aeb=>{const _0x26fa3d=_0x509983;this[_0x26fa3d(0x23d)](_0x4d1aeb);})[_0x509983(0x223)](_0x1fc697=>_0x1fc697['ok']?_0x1fc697:_0x1fc697[_0x509983(0x1ed)]()[_0x509983(0x223)](_0x3f3c1d=>{const _0x2d93dc=_0x509983;throw{'url':this[_0x2d93dc(0x1c5)],'path':_0x2ed347,'method':_0x2a1876,'body':_0x1476da,'status':(_0x1fc697||{})[_0x2d93dc(0x242)],'statusText':(_0x1fc697||{})[_0x2d93dc(0x1bf)],'code':_0x3f3c1d[_0x2d93dc(0x228)],'message':_0x3f3c1d[_0x2d93dc(0x1d4)],'traceId':_0x3f3c1d[_0x2d93dc(0x241)]};})),'abortController':_0x305aaf};}async*[_0x434aec(0x236)](_0x3438e0){const _0x3faedc=_0x434aec,_0x539703=[],_0x5d257d=_0x3438e0[_0x3faedc(0x1d7)](),_0x94f51c=_0x370d58({'onError':_0x1b057d=>{const _0x1d912b=_0x3faedc;this[_0x1d912b(0x23d)](_0x1b057d);},'onEvent':_0x40f1ee=>{const _0x23ae60=_0x3faedc;_0x40f1ee[_0x23ae60(0x1d2)]=JSON[_0x23ae60(0x220)](_0x40f1ee[_0x23ae60(0x1d2)]),_0x539703[_0x23ae60(0x230)](_0x40f1ee);}});try{let _0x38a868=!0x1;for(;!_0x38a868;){const {done:_0x8fc58a,value:_0x402d05}=await _0x5d257d[_0x3faedc(0x1b9)]();_0x8fc58a&&(_0x38a868=!0x0),_0x94f51c[_0x3faedc(0x216)](this[_0x3faedc(0x227)][_0x3faedc(0x1cc)](_0x402d05,{'stream':!0x0})),yield*_0x539703,_0x539703[_0x3faedc(0x1e6)]=0x0;}}catch(_0x4e752e){this[_0x3faedc(0x23d)](_0x4e752e);}finally{_0x5d257d[_0x3faedc(0x1f4)](),_0x94f51c[_0x3faedc(0x1e7)]();}}[_0x434aec(0x23d)](_0x311563){const _0x3c3e6a=_0x434aec;if(_0x311563 instanceof _0x5e2134)throw _0x311563;if(_0x311563 instanceof Error&&_0x3c3e6a(0x210)===_0x311563[_0x3c3e6a(0x1e3)])throw new _0x5e2134(_0x3c3e6a(0x1b4),this,{'originalError':_0x311563});throw new _0x5e2134(_0x3c3e6a(0x237),this,{'originalError':_0x311563});}}
@@ -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 _0x111b5c=_0x15c8;(function(_0x196690,_0x3c2783){const _0x565f46=_0x15c8,_0x3c13dc=_0x196690();while(!![]){try{const _0x4cc48c=-parseInt(_0x565f46(0x163))/0x1*(parseInt(_0x565f46(0x16a))/0x2)+-parseInt(_0x565f46(0x15f))/0x3+parseInt(_0x565f46(0x196))/0x4+-parseInt(_0x565f46(0x154))/0x5+parseInt(_0x565f46(0x167))/0x6*(parseInt(_0x565f46(0x174))/0x7)+-parseInt(_0x565f46(0x19e))/0x8*(-parseInt(_0x565f46(0x181))/0x9)+-parseInt(_0x565f46(0x183))/0xa;if(_0x4cc48c===_0x3c2783)break;else _0x3c13dc['push'](_0x3c13dc['shift']());}catch(_0x2b9e0a){_0x3c13dc['push'](_0x3c13dc['shift']());}}}(_0x274a,0xb7263));import{ViewDowncastWriter as _0x1ee6f7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2da618,Editor as _0x2196ed}from'ckeditor5/src/core.js';function _0x15c8(_0x21bebb,_0x219569){const _0x274a96=_0x274a();return _0x15c8=function(_0x15c88f,_0x2ab487){_0x15c88f=_0x15c88f-0x150;let _0x5b1a5a=_0x274a96[_0x15c88f];return _0x5b1a5a;},_0x15c8(_0x21bebb,_0x219569);}import{uid as _0x56895e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x261efa}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x111b5c(0x171);export class AIEditing extends _0x2da618{[_0x111b5c(0x15a)]=null;[_0x111b5c(0x160)]=!0x1;[_0x111b5c(0x182)];static get[_0x111b5c(0x15d)](){const _0x4f8824=_0x111b5c;return _0x4f8824(0x1a4);}static get[_0x111b5c(0x19a)](){return!0x0;}static get[_0x111b5c(0x15b)](){return!0x0;}get[_0x111b5c(0x17d)](){const _0x8492e=_0x111b5c;if(!this[_0x8492e(0x182)]){const _0x4d2be8=_0x261efa(this[_0x8492e(0x1b4)]),_0x22eedc=_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x194)](_0x8492e(0x157))&&_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x186)](_0x8492e(0x157))[_0x8492e(0x17d)];this[_0x8492e(0x182)]=_0x22eedc||_0x56895e();}return this[_0x8492e(0x182)];}[_0x111b5c(0x164)](){const _0x5ee3c8=_0x111b5c,_0x255023=_0x261efa(this[_0x5ee3c8(0x1b4)]),_0x1536e7=_0x255023[_0x5ee3c8(0x170)],_0x449c71=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x187)](_0x1536e7[_0x5ee3c8(0x1b1)][_0x5ee3c8(0x1a9)](),{'convertAiChatSelectionMarker':!0x0}),_0x1a80bd=new _0x1ee6f7(_0x255023[_0x5ee3c8(0x1b3)][_0x5ee3c8(0x179)][_0x5ee3c8(0x1b1)]);this[_0x5ee3c8(0x1b6)](_0x449c71,_0x1a80bd);let _0x3e9a2d=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x1ae)][_0x5ee3c8(0x166)](_0x449c71);const _0x5ac97c=this[_0x5ee3c8(0x168)](),_0x297602=[];for(const _0x506eb3 of _0x5ac97c){const _0x5ccc9b='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x169)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x198),_0x52fd4c=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x5ccc9b);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x52fd4c)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c+_0x5ccc9b[_0x5ee3c8(0x1b7)]);const _0x3f9117='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x17c)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x19d),_0x1c73d9=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x3f9117);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x1c73d9)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x1c73d9+_0x3f9117[_0x5ee3c8(0x1b7)]),_0x297602[_0x5ee3c8(0x1a3)]({'markerName':_0x506eb3[_0x5ee3c8(0x155)],'start':_0x52fd4c,'end':_0x1c73d9,'htmlFragment':_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c,_0x1c73d9)});}return{'content':_0x3e9a2d,'version':_0x255023[_0x5ee3c8(0x170)][_0x5ee3c8(0x1b1)][_0x5ee3c8(0x17b)],'sessionId':this[_0x5ee3c8(0x17d)],'selections':_0x297602};}async[_0x111b5c(0x19b)](){const _0x553914=_0x111b5c;this[_0x553914(0x1b4)]instanceof _0x2196ed?this[_0x553914(0x16c)](this[_0x553914(0x1b4)]):this[_0x553914(0x192)](this[_0x553914(0x1b4)][_0x553914(0x1b5)],_0x553914(0x1ad),(_0x7816b9,_0x508dda)=>{const _0x4edf0d=_0x553914;_0x508dda['on'](_0x4edf0d(0x18f),()=>{const _0x32d010=_0x4edf0d;this[_0x32d010(0x16c)](_0x508dda);});});}[_0x111b5c(0x16c)](_0x528d33){const _0x32f8dd=_0x111b5c;_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x17f))[_0x32f8dd(0x151)]({'model':_0x32f8dd(0x171),'view':{'classes':[_0x32f8dd(0x1a2),_0x32f8dd(0x189)],'priority':0xc}}),_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x172))[_0x32f8dd(0x18b)]({'model':_0x32f8dd(0x171),'view':(_0xb16425,{writer:_0x587faf,options:_0x244c6b})=>_0x244c6b[_0x32f8dd(0x176)]?_0x587faf[_0x32f8dd(0x152)](_0xb16425[_0x32f8dd(0x1aa)]+':'+(_0xb16425[_0x32f8dd(0x1af)]?_0x32f8dd(0x153):_0x32f8dd(0x1a7))):null});}[_0x111b5c(0x16b)](_0xbbe1c0,_0x3bd22f,_0x4fe0db=!0x1,_0x1a5ea5=!0x1){const _0x4ef2e2=_0x111b5c;if(this[_0x4ef2e2(0x160)]&&!_0x1a5ea5)return!0x1;const _0x21434a=_0x261efa(this[_0x4ef2e2(0x1b4)])[_0x4ef2e2(0x170)];return _0x21434a[_0x4ef2e2(0x184)](_0x44c15c=>{const _0x31cdbe=_0x4ef2e2;this[_0x31cdbe(0x15a)]&&this[_0x31cdbe(0x175)](this[_0x31cdbe(0x15a)]),this[_0x31cdbe(0x15a)]=_0x3bd22f,this[_0x31cdbe(0x160)]=_0x4fe0db;let _0x1fae63=0x0;for(let _0x100e88 of _0xbbe1c0){const _0x4d2957=_0x31cdbe(0x1a8)+_0x1fae63;if(_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x159)]){const _0x3d252f=_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x150)](({item:_0x51dcb8})=>!_0x21434a[_0x31cdbe(0x197)][_0x31cdbe(0x18e)](_0x51dcb8),{'boundaries':_0x100e88});_0x100e88=_0x44c15c[_0x31cdbe(0x1b8)](_0x3d252f,_0x100e88[_0x31cdbe(0x1a7)]);}_0x44c15c[_0x31cdbe(0x161)](_0x4d2957,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x100e88}),_0x1fae63++;}}),window[_0x4ef2e2(0x178)]()?.[_0x4ef2e2(0x185)](),!0x0;}[_0x111b5c(0x175)](_0x4c9773){const _0x526246=_0x111b5c;if(this[_0x526246(0x15a)]!=_0x4c9773)return!0x1;this[_0x526246(0x15a)]=null,this[_0x526246(0x160)]=!0x1;const _0x338b5d=_0x261efa(this[_0x526246(0x1b4)]),_0x12ff85=_0x338b5d[_0x526246(0x170)][_0x526246(0x1a5)][_0x526246(0x18c)](_0x526246(0x171));return _0x338b5d[_0x526246(0x170)][_0x526246(0x184)](_0x3803f3=>{const _0x1b15c8=_0x526246;for(const _0x2ba6a1 of _0x12ff85)_0x3803f3[_0x1b15c8(0x173)](_0x2ba6a1);}),!0x0;}[_0x111b5c(0x195)](_0x198105){const _0x2e2076=_0x111b5c,_0x4349f5=_0x261efa(this[_0x2e2076(0x1b4)]),_0x36ea8a=_0x4349f5[_0x2e2076(0x162)][_0x2e2076(0x187)](_0x198105),_0x2e0863=new _0x1ee6f7(_0x4349f5[_0x2e2076(0x1b3)][_0x2e2076(0x179)][_0x2e2076(0x1b1)]);return this[_0x2e2076(0x1b6)](_0x36ea8a,_0x2e0863),_0x36ea8a;}[_0x111b5c(0x1b6)](_0x43cff5,_0x179f23){const _0x5a1e1e=_0x111b5c;let _0x19bfc5=!0x1;const _0x2ade4f=new Set();for(const _0x24b622 of _0x43cff5[_0x5a1e1e(0x1a0)]()){const _0x1ba733=_0x24b622['is'](_0x5a1e1e(0x1a6))||_0x24b622['is'](_0x5a1e1e(0x177));if(!_0x24b622['is'](_0x5a1e1e(0x165)))continue;(this[_0x5a1e1e(0x1b6)](_0x24b622,_0x179f23)||_0x1ba733)&&(_0x179f23[_0x5a1e1e(0x18a)](_0x5a1e1e(0x16e),this[_0x5a1e1e(0x1ab)](_0x2ade4f),_0x24b622),_0x19bfc5=!0x0);}return _0x19bfc5;}[_0x111b5c(0x1ab)](_0x56302c){const _0x2a05b9=_0x111b5c;let _0x1d2f8b;do{_0x1d2f8b='';for(let _0x42ed67=0x0;_0x42ed67<0x4;_0x42ed67++)_0x1d2f8b+=String[_0x2a05b9(0x158)](0x61+Math[_0x2a05b9(0x16d)](0x1a*Math[_0x2a05b9(0x180)]()));}while(_0x56302c[_0x2a05b9(0x194)](_0x1d2f8b));return _0x56302c[_0x2a05b9(0x1ad)](_0x1d2f8b),_0x1d2f8b;}[_0x111b5c(0x1ac)](){const _0x1817ba=_0x111b5c,{model:_0x555a6e}=_0x261efa(this[_0x1817ba(0x1b4)]),_0x394e75=_0x555a6e[_0x1817ba(0x1b1)][_0x1817ba(0x19f)],_0x44ed93=_0x555a6e[_0x1817ba(0x1b0)](_0x394e75),_0x4f6453=[],_0xc9f024=_0x555a6e[_0x1817ba(0x156)](_0x44ed93)[_0x1817ba(0x188)]();for(const {item:_0xb4694e}of _0xc9f024)_0xb4694e['is'](_0x1817ba(0x199))?_0x4f6453[_0x1817ba(0x1a3)](_0xb4694e[_0x1817ba(0x162)]):_0xb4694e['is'](_0x1817ba(0x165))&&_0x4f6453[_0x1817ba(0x1b7)]>0x0&&'\x20'!==_0x4f6453[_0x4f6453[_0x1817ba(0x1b7)]-0x1]&&_0x4f6453[_0x1817ba(0x1a3)]('\x20');return'\x22'+_0x4f6453[_0x1817ba(0x19c)]('')[_0x1817ba(0x190)]()+'\x22';}[_0x111b5c(0x168)](){const _0x64565d=_0x111b5c,_0x338b77=_0x261efa(this[_0x64565d(0x1b4)])[_0x64565d(0x170)];return Array[_0x64565d(0x16f)](_0x338b77[_0x64565d(0x1a5)][_0x64565d(0x18c)](_0x64565d(0x171)))[_0x64565d(0x191)]((_0x4f1d05,_0x2783c4)=>_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x193)](_0x2783c4[_0x64565d(0x15c)]())?-0x1:_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x1b2)](_0x2783c4[_0x64565d(0x15c)]())?0x1:0x0);}}function _0x274a(){const _0x4606cc=['push','AIEditing','markers','emptyElement','end','ai-selection:','getRoot','markerName','_nextDataId','getSelectionText','add','processor','isOpening','getSelectedContent','document','isAfter','editing','context','editors','_setDataIdsOnChildren','length','createRange','getLastMatchingPosition','markerToHighlight','createUIElement','start','736485KsHnBz','name','createRangeIn','RealTimeCollaborationClient','fromCharCode','isAtEnd','_displayedFakeSelectionId','isPremiumPlugin','getStart','pluginName','plugins','694404mBbQXw','_displayedFakeSelectionLocked','addMarker','data','4803SUoGjm','getDocumentData','element','toData','2577792OAXUic','_getMarkersInDocumentOrder',':start></','196wPtrbu','showFakeVisualSelection','_integrateEditor','floor','data-id','from','model','ai-selection','dataDowncast','removeMarker','21cgBwjM','hideFakeVisualSelection','convertAiChatSelectionMarker','containerElement','getSelection','view','substring','version',':end></','sessionId','for','editingDowncast','random','738IyjAjE','_sessionId','14139580ReBrow','change','removeAllRanges','get','toView','getWalker','ck-ai-assistant-ui_theme','setAttribute','markerToElement','getMarkersGroup','indexOf','isContent','ready','trim','sort','listenTo','isBefore','has','modelToViewWithIds','1684912vRMSHA','schema',':start>','$textProxy','isOfficialPlugin','afterInit','join',':end>','127168vpJNEu','selection','getChildren','conversion','ck-fake-ai-selection'];_0x274a=function(){return _0x4606cc;};return _0x274a();}
23
+ const _0x97337f=_0x308c;(function(_0x583ce2,_0x4fb11b){const _0x383d9c=_0x308c,_0x5b8d58=_0x583ce2();while(!![]){try{const _0x53313f=parseInt(_0x383d9c(0xa7))/0x1*(-parseInt(_0x383d9c(0xed))/0x2)+-parseInt(_0x383d9c(0xef))/0x3+parseInt(_0x383d9c(0xee))/0x4*(parseInt(_0x383d9c(0xd7))/0x5)+-parseInt(_0x383d9c(0xba))/0x6*(-parseInt(_0x383d9c(0xde))/0x7)+-parseInt(_0x383d9c(0xb1))/0x8*(-parseInt(_0x383d9c(0xb8))/0x9)+parseInt(_0x383d9c(0xe9))/0xa+parseInt(_0x383d9c(0xc1))/0xb*(-parseInt(_0x383d9c(0xd9))/0xc);if(_0x53313f===_0x4fb11b)break;else _0x5b8d58['push'](_0x5b8d58['shift']());}catch(_0x4e497a){_0x5b8d58['push'](_0x5b8d58['shift']());}}}(_0x35ae,0xb782e));import{ViewDowncastWriter as _0x14def9}from'ckeditor5/src/engine.js';function _0x308c(_0x72da9a,_0x1f3a35){const _0x35aef8=_0x35ae();return _0x308c=function(_0x308c0a,_0x517929){_0x308c0a=_0x308c0a-0x9c;let _0x23c756=_0x35aef8[_0x308c0a];return _0x23c756;},_0x308c(_0x72da9a,_0x1f3a35);}import{ContextPlugin as _0x12e3c7,Editor as _0x56ad01}from'ckeditor5/src/core.js';import{uid as _0x2fce2d}from'ckeditor5/src/utils.js';function _0x35ae(){const _0x4a797d=['136PDRwUf','544092DPkBBE','afterInit','convertAiChatSelectionMarker','showFakeVisualSelection','processor','conversion','dataDowncast','getMarkersGroup','sessionId','isAfter',':end></','isOpening','pluginName','isBefore','context','get','getWalker','createRange','getStart','getLastMatchingPosition','getChildren','createRangeIn','model','_displayedFakeSelectionLocked','name',':start>','length','has','getRoot','editingDowncast','fromCharCode',':start></','editing','markerToElement','isOfficialPlugin','737zpwgHO','ck-fake-ai-selection','addMarker','change','isPremiumPlugin','_setDataIdsOnChildren','ai-selection:','selection','getSelectedContent','isContent','5758408zRcbNG','ck-ai-assistant-ui_theme','from','substring','_getMarkersInDocumentOrder','getDocumentData','schema','18SYdNdH','_nextDataId','162WtvJgn','hideFakeVisualSelection','markers','emptyElement','toView','indexOf','toData','737YImxGc','trim','data','start','createUIElement','push','isAtEnd','removeAllRanges','RealTimeCollaborationClient','getSelection','modelToViewWithIds','ready','add','editors','$textProxy','element','plugins','markerToHighlight','_sessionId',':end>','containerElement','data-id','44095zKZltt','document','566316dmafos','join','floor','ai-selection','listenTo','352639Tzwiak','end','version','getSelectionText','removeMarker','random','AIEditing','view','for','setAttribute','_integrateEditor','10867180BGgmVn','_displayedFakeSelectionId','markerName','sort','248UGUMFh'];_0x35ae=function(){return _0x4a797d;};return _0x35ae();}import{getEditorFromContext as _0x568da4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x97337f(0xdc);export class AIEditing extends _0x12e3c7{[_0x97337f(0xea)]=null;[_0x97337f(0x106)]=!0x1;[_0x97337f(0xd3)];static get[_0x97337f(0xfb)](){const _0x70f850=_0x97337f;return _0x70f850(0xe4);}static get[_0x97337f(0xa6)](){return!0x0;}static get[_0x97337f(0xab)](){return!0x0;}get[_0x97337f(0xf7)](){const _0x2e62a5=_0x97337f;if(!this[_0x2e62a5(0xd3)]){const _0x26204e=_0x568da4(this[_0x2e62a5(0xfd)]),_0x6789a5=_0x26204e[_0x2e62a5(0xd1)][_0x2e62a5(0x9f)](_0x2e62a5(0xc9))&&_0x26204e[_0x2e62a5(0xd1)][_0x2e62a5(0xfe)](_0x2e62a5(0xc9))[_0x2e62a5(0xf7)];this[_0x2e62a5(0xd3)]=_0x6789a5||_0x2fce2d();}return this[_0x2e62a5(0xd3)];}[_0x97337f(0xb6)](){const _0xfc4f61=_0x97337f,_0x531213=_0x568da4(this[_0xfc4f61(0xfd)]),_0x7ce53f=_0x531213[_0xfc4f61(0x105)],_0xd27477=_0x531213[_0xfc4f61(0xc3)][_0xfc4f61(0xbe)](_0x7ce53f[_0xfc4f61(0xd8)][_0xfc4f61(0xa0)](),{'convertAiChatSelectionMarker':!0x0}),_0x22c08c=new _0x14def9(_0x531213[_0xfc4f61(0xa4)][_0xfc4f61(0xe5)][_0xfc4f61(0xd8)]);this[_0xfc4f61(0xac)](_0xd27477,_0x22c08c);let _0x39644a=_0x531213[_0xfc4f61(0xc3)][_0xfc4f61(0xf3)][_0xfc4f61(0xc0)](_0xd27477);const _0x5cc7c3=this[_0xfc4f61(0xb5)](),_0x4b3d24=[];for(const _0x394a04 of _0x5cc7c3){const _0x2875a1='<'+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xa3)+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0x9d),_0x3d117f=_0x39644a[_0xfc4f61(0xbf)](_0x2875a1);_0x39644a=_0x39644a[_0xfc4f61(0xb4)](0x0,_0x3d117f)+_0x39644a[_0xfc4f61(0xb4)](_0x3d117f+_0x2875a1[_0xfc4f61(0x9e)]);const _0x1e8741='<'+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xf9)+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xd4),_0x286a55=_0x39644a[_0xfc4f61(0xbf)](_0x1e8741);_0x39644a=_0x39644a[_0xfc4f61(0xb4)](0x0,_0x286a55)+_0x39644a[_0xfc4f61(0xb4)](_0x286a55+_0x1e8741[_0xfc4f61(0x9e)]),_0x4b3d24[_0xfc4f61(0xc6)]({'markerName':_0x394a04[_0xfc4f61(0x9c)],'start':_0x3d117f,'end':_0x286a55,'htmlFragment':_0x39644a[_0xfc4f61(0xb4)](_0x3d117f,_0x286a55)});}return{'content':_0x39644a,'version':_0x531213[_0xfc4f61(0x105)][_0xfc4f61(0xd8)][_0xfc4f61(0xe0)],'sessionId':this[_0xfc4f61(0xf7)],'selections':_0x4b3d24};}async[_0x97337f(0xf0)](){const _0x4b55bf=_0x97337f;this[_0x4b55bf(0xfd)]instanceof _0x56ad01?this[_0x4b55bf(0xe8)](this[_0x4b55bf(0xfd)]):this[_0x4b55bf(0xdd)](this[_0x4b55bf(0xfd)][_0x4b55bf(0xce)],_0x4b55bf(0xcd),(_0x246ab0,_0x71694d)=>{const _0x3a5ef3=_0x4b55bf;_0x71694d['on'](_0x3a5ef3(0xcc),()=>{const _0x5013b0=_0x3a5ef3;this[_0x5013b0(0xe8)](_0x71694d);});});}[_0x97337f(0xe8)](_0x51981f){const _0x361d55=_0x97337f;_0x51981f[_0x361d55(0xf4)][_0x361d55(0xe6)](_0x361d55(0xa1))[_0x361d55(0xd2)]({'model':_0x361d55(0xdc),'view':{'classes':[_0x361d55(0xa8),_0x361d55(0xb2)],'priority':0xc}}),_0x51981f[_0x361d55(0xf4)][_0x361d55(0xe6)](_0x361d55(0xf5))[_0x361d55(0xa5)]({'model':_0x361d55(0xdc),'view':(_0x186e51,{writer:_0x15a176,options:_0x1f82d7})=>_0x1f82d7[_0x361d55(0xf1)]?_0x15a176[_0x361d55(0xc5)](_0x186e51[_0x361d55(0xeb)]+':'+(_0x186e51[_0x361d55(0xfa)]?_0x361d55(0xc4):_0x361d55(0xdf))):null});}[_0x97337f(0xf2)](_0x280add,_0x2b2b25,_0x1e1d60=!0x1,_0x3d11c7=!0x1){const _0x24ebd1=_0x97337f;if(this[_0x24ebd1(0x106)]&&!_0x3d11c7)return!0x1;const _0x287e7f=_0x568da4(this[_0x24ebd1(0xfd)])[_0x24ebd1(0x105)];return _0x287e7f[_0x24ebd1(0xaa)](_0x390d96=>{const _0x5315fb=_0x24ebd1;this[_0x5315fb(0xea)]&&this[_0x5315fb(0xbb)](this[_0x5315fb(0xea)]),this[_0x5315fb(0xea)]=_0x2b2b25,this[_0x5315fb(0x106)]=_0x1e1d60;let _0x49e434=0x0;for(let _0x49dc6b of _0x280add){const _0x2feed1=_0x5315fb(0xad)+_0x49e434;if(_0x49dc6b[_0x5315fb(0xc4)][_0x5315fb(0xc7)]){const _0x25f24a=_0x49dc6b[_0x5315fb(0xc4)][_0x5315fb(0x102)](({item:_0x2fad30})=>!_0x287e7f[_0x5315fb(0xb7)][_0x5315fb(0xb0)](_0x2fad30),{'boundaries':_0x49dc6b});_0x49dc6b=_0x390d96[_0x5315fb(0x100)](_0x25f24a,_0x49dc6b[_0x5315fb(0xdf)]);}_0x390d96[_0x5315fb(0xa9)](_0x2feed1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x49dc6b}),_0x49e434++;}}),window[_0x24ebd1(0xca)]()?.[_0x24ebd1(0xc8)](),!0x0;}[_0x97337f(0xbb)](_0x30c206){const _0x28a2a8=_0x97337f;if(this[_0x28a2a8(0xea)]!=_0x30c206)return!0x1;this[_0x28a2a8(0xea)]=null,this[_0x28a2a8(0x106)]=!0x1;const _0x4e3903=_0x568da4(this[_0x28a2a8(0xfd)]),_0x132649=_0x4e3903[_0x28a2a8(0x105)][_0x28a2a8(0xbc)][_0x28a2a8(0xf6)](_0x28a2a8(0xdc));return _0x4e3903[_0x28a2a8(0x105)][_0x28a2a8(0xaa)](_0x24da92=>{const _0x1b3d84=_0x28a2a8;for(const _0x2dd101 of _0x132649)_0x24da92[_0x1b3d84(0xe2)](_0x2dd101);}),!0x0;}[_0x97337f(0xcb)](_0x312beb){const _0x3f72d3=_0x97337f,_0x12e7c0=_0x568da4(this[_0x3f72d3(0xfd)]),_0x56816c=_0x12e7c0[_0x3f72d3(0xc3)][_0x3f72d3(0xbe)](_0x312beb),_0x477b37=new _0x14def9(_0x12e7c0[_0x3f72d3(0xa4)][_0x3f72d3(0xe5)][_0x3f72d3(0xd8)]);return this[_0x3f72d3(0xac)](_0x56816c,_0x477b37),_0x56816c;}[_0x97337f(0xac)](_0x248d2e,_0x22cd69){const _0xca5829=_0x97337f;let _0x56ddad=!0x1;const _0x79c6b6=new Set();for(const _0x205f99 of _0x248d2e[_0xca5829(0x103)]()){const _0x3ebc23=_0x205f99['is'](_0xca5829(0xbd))||_0x205f99['is'](_0xca5829(0xd5));if(!_0x205f99['is'](_0xca5829(0xd0)))continue;(this[_0xca5829(0xac)](_0x205f99,_0x22cd69)||_0x3ebc23)&&(_0x22cd69[_0xca5829(0xe7)](_0xca5829(0xd6),this[_0xca5829(0xb9)](_0x79c6b6),_0x205f99),_0x56ddad=!0x0);}return _0x56ddad;}[_0x97337f(0xb9)](_0x153b75){const _0x33af58=_0x97337f;let _0x499146;do{_0x499146='';for(let _0x4d06f6=0x0;_0x4d06f6<0x4;_0x4d06f6++)_0x499146+=String[_0x33af58(0xa2)](0x61+Math[_0x33af58(0xdb)](0x1a*Math[_0x33af58(0xe3)]()));}while(_0x153b75[_0x33af58(0x9f)](_0x499146));return _0x153b75[_0x33af58(0xcd)](_0x499146),_0x499146;}[_0x97337f(0xe1)](){const _0x1f74ce=_0x97337f,{model:_0x5cd93c}=_0x568da4(this[_0x1f74ce(0xfd)]),_0x450f8b=_0x5cd93c[_0x1f74ce(0xd8)][_0x1f74ce(0xae)],_0x2ceac3=_0x5cd93c[_0x1f74ce(0xaf)](_0x450f8b),_0x3781f4=[],_0x1403a4=_0x5cd93c[_0x1f74ce(0x104)](_0x2ceac3)[_0x1f74ce(0xff)]();for(const {item:_0x430b3a}of _0x1403a4)_0x430b3a['is'](_0x1f74ce(0xcf))?_0x3781f4[_0x1f74ce(0xc6)](_0x430b3a[_0x1f74ce(0xc3)]):_0x430b3a['is'](_0x1f74ce(0xd0))&&_0x3781f4[_0x1f74ce(0x9e)]>0x0&&'\x20'!==_0x3781f4[_0x3781f4[_0x1f74ce(0x9e)]-0x1]&&_0x3781f4[_0x1f74ce(0xc6)]('\x20');return'\x22'+_0x3781f4[_0x1f74ce(0xda)]('')[_0x1f74ce(0xc2)]()+'\x22';}[_0x97337f(0xb5)](){const _0x8abed3=_0x97337f,_0x3f8bd1=_0x568da4(this[_0x8abed3(0xfd)])[_0x8abed3(0x105)];return Array[_0x8abed3(0xb3)](_0x3f8bd1[_0x8abed3(0xbc)][_0x8abed3(0xf6)](_0x8abed3(0xdc)))[_0x8abed3(0xec)]((_0x526e6e,_0x14a538)=>_0x526e6e[_0x8abed3(0x101)]()[_0x8abed3(0xfc)](_0x14a538[_0x8abed3(0x101)]())?-0x1:_0x526e6e[_0x8abed3(0x101)]()[_0x8abed3(0xf8)](_0x14a538[_0x8abed3(0x101)]())?0x1:0x0);}}
@@ -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
  export declare const CAPABILITIES_MODEL_EVENT_NAMES: readonly ["capabilitiesUpdated"];
@@ -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 _0x26ee63=_0x4acf;function _0x4acf(_0x130c22,_0x4434b1){const _0x5ccdf6=_0x5ccd();return _0x4acf=function(_0x4acfdc,_0x39ec96){_0x4acfdc=_0x4acfdc-0x125;let _0x2e04ba=_0x5ccdf6[_0x4acfdc];return _0x2e04ba;},_0x4acf(_0x130c22,_0x4434b1);}(function(_0x2c3df7,_0x48915e){const _0x255a7d=_0x4acf,_0x477d3f=_0x2c3df7();while(!![]){try{const _0x8a98c6=parseInt(_0x255a7d(0x13f))/0x1*(-parseInt(_0x255a7d(0x132))/0x2)+parseInt(_0x255a7d(0x139))/0x3*(-parseInt(_0x255a7d(0x12b))/0x4)+parseInt(_0x255a7d(0x138))/0x5+-parseInt(_0x255a7d(0x128))/0x6*(parseInt(_0x255a7d(0x129))/0x7)+-parseInt(_0x255a7d(0x12e))/0x8+-parseInt(_0x255a7d(0x12f))/0x9*(-parseInt(_0x255a7d(0x13d))/0xa)+parseInt(_0x255a7d(0x12a))/0xb;if(_0x8a98c6===_0x48915e)break;else _0x477d3f['push'](_0x477d3f['shift']());}catch(_0x34299f){_0x477d3f['push'](_0x477d3f['shift']());}}}(_0x5ccd,0xc0ee4));import{EmitterMixin as _0x30b531}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x26ee63(0x13c)];export class AICapabilities extends _0x30b531(){[_0x26ee63(0x137)];[_0x26ee63(0x13e)];constructor(){const _0x49c90c=_0x26ee63;super(),this[_0x49c90c(0x137)]=!0x1,this[_0x49c90c(0x13e)]=!0x1;}[_0x26ee63(0x136)](){const _0x47e567=_0x26ee63;this[_0x47e567(0x126)]();}[_0x26ee63(0x126)](){const _0x127e0d=_0x26ee63;this[_0x127e0d(0x125)](!0x1),this[_0x127e0d(0x134)](!0x1);}[_0x26ee63(0x13a)](){const _0x5bbfd1=_0x26ee63;return{'isWebSearchEnabled':this[_0x5bbfd1(0x137)],'isReasoningEnabled':this[_0x5bbfd1(0x13e)]};}static[_0x26ee63(0x12d)](_0x1450ce){const _0x472e46=_0x26ee63,_0x289588={};return _0x1450ce&&_0x1450ce[_0x472e46(0x131)]&&(_0x289588[_0x472e46(0x12c)]={}),_0x1450ce&&_0x1450ce[_0x472e46(0x13b)]&&(_0x289588[_0x472e46(0x130)]={}),_0x289588;}[_0x26ee63(0x133)](){const _0x2c80bd=_0x26ee63;this[_0x2c80bd(0x125)](!this[_0x2c80bd(0x137)]);}[_0x26ee63(0x135)](){const _0x49a240=_0x26ee63;this[_0x49a240(0x134)](!this[_0x49a240(0x13e)]);}[_0x26ee63(0x125)](_0x13040c){const _0x5dd4d5=_0x26ee63;_0x13040c!==this[_0x5dd4d5(0x137)]&&(this[_0x5dd4d5(0x137)]=_0x13040c,this[_0x5dd4d5(0x127)](_0x5dd4d5(0x13c),this[_0x5dd4d5(0x13a)]()));}[_0x26ee63(0x134)](_0xb3dbd8){const _0x3768fc=_0x26ee63;_0xb3dbd8!==this[_0x3768fc(0x13e)]&&(this[_0x3768fc(0x13e)]=_0xb3dbd8,this[_0x3768fc(0x127)](_0x3768fc(0x13c),this[_0x3768fc(0x13a)]()));}}function _0x5ccd(){const _0xa8a2c7=['setWebSearch','reset','fire','8901492tBERMy','7kjaXej','36648832kxYPSi','457784RsPccg','webSearch','getCapabilitiesRequestData','9718376TAvkfc','18JmNxIK','reasoning','isWebSearchEnabled','692haMRFm','toggleWebSearch','setReasoning','toggleReasoning','init','_isWebSearchEnabled','6467955ATAIBz','21DWuwQl','getCapabilitiesConfig','isReasoningEnabled','capabilitiesUpdated','2039980yxKSOz','_isReasoningEnabled','2149rmAOFN'];_0x5ccd=function(){return _0xa8a2c7;};return _0x5ccd();}
23
+ const _0x4899c5=_0x43c6;(function(_0xb1935d,_0x4190cd){const _0x1feb5b=_0x43c6,_0xb8c0b1=_0xb1935d();while(!![]){try{const _0x4a39ea=parseInt(_0x1feb5b(0x124))/0x1*(parseInt(_0x1feb5b(0x125))/0x2)+parseInt(_0x1feb5b(0x12b))/0x3*(parseInt(_0x1feb5b(0x131))/0x4)+parseInt(_0x1feb5b(0x134))/0x5*(-parseInt(_0x1feb5b(0x126))/0x6)+-parseInt(_0x1feb5b(0x12c))/0x7*(parseInt(_0x1feb5b(0x13e))/0x8)+parseInt(_0x1feb5b(0x128))/0x9+-parseInt(_0x1feb5b(0x13d))/0xa*(parseInt(_0x1feb5b(0x135))/0xb)+parseInt(_0x1feb5b(0x137))/0xc;if(_0x4a39ea===_0x4190cd)break;else _0xb8c0b1['push'](_0xb8c0b1['shift']());}catch(_0x4e3cae){_0xb8c0b1['push'](_0xb8c0b1['shift']());}}}(_0x35b5,0x6c0ba));function _0x35b5(){const _0x20f539=['fire','60vfLKbC','getCapabilitiesRequestData','_isWebSearchEnabled','925265EMLDmW','33glTTUl','toggleWebSearch','1019724sQpFpz','webSearch','capabilitiesUpdated','setWebSearch','isReasoningEnabled','reasoning','2786510PORPBK','290712fTPcpe','_isReasoningEnabled','20847eJrQFa','74GJacKH','6lHwRYW','isWebSearchEnabled','7798104VzONdT','getCapabilitiesConfig','setReasoning','115317osBskt','161ZmNUWZ','init','reset','toggleReasoning'];_0x35b5=function(){return _0x20f539;};return _0x35b5();}function _0x43c6(_0x1cf9a0,_0x479610){const _0x35b5e5=_0x35b5();return _0x43c6=function(_0x43c6c1,_0x6478de){_0x43c6c1=_0x43c6c1-0x124;let _0x4d30a7=_0x35b5e5[_0x43c6c1];return _0x4d30a7;},_0x43c6(_0x1cf9a0,_0x479610);}import{EmitterMixin as _0x19f791}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4899c5(0x139)];export class AICapabilities extends _0x19f791(){[_0x4899c5(0x133)];[_0x4899c5(0x13f)];constructor(){const _0x34f101=_0x4899c5;super(),this[_0x34f101(0x133)]=!0x1,this[_0x34f101(0x13f)]=!0x1;}[_0x4899c5(0x12d)](){const _0x17b538=_0x4899c5;this[_0x17b538(0x12e)]();}[_0x4899c5(0x12e)](){const _0x202787=_0x4899c5;this[_0x202787(0x13a)](!0x1),this[_0x202787(0x12a)](!0x1);}[_0x4899c5(0x129)](){const _0x30d7c8=_0x4899c5;return{'isWebSearchEnabled':this[_0x30d7c8(0x133)],'isReasoningEnabled':this[_0x30d7c8(0x13f)]};}static[_0x4899c5(0x132)](_0x4f2a6c){const _0x246b73=_0x4899c5,_0x4bf4a5={};return _0x4f2a6c&&_0x4f2a6c[_0x246b73(0x127)]&&(_0x4bf4a5[_0x246b73(0x138)]={}),_0x4f2a6c&&_0x4f2a6c[_0x246b73(0x13b)]&&(_0x4bf4a5[_0x246b73(0x13c)]={}),_0x4bf4a5;}[_0x4899c5(0x136)](){const _0x1b21bd=_0x4899c5;this[_0x1b21bd(0x13a)](!this[_0x1b21bd(0x133)]);}[_0x4899c5(0x12f)](){const _0x4d2bf5=_0x4899c5;this[_0x4d2bf5(0x12a)](!this[_0x4d2bf5(0x13f)]);}[_0x4899c5(0x13a)](_0x24c678){const _0x35bcdd=_0x4899c5;_0x24c678!==this[_0x35bcdd(0x133)]&&(this[_0x35bcdd(0x133)]=_0x24c678,this[_0x35bcdd(0x130)](_0x35bcdd(0x139),this[_0x35bcdd(0x129)]()));}[_0x4899c5(0x12a)](_0x1a8b5d){const _0x16af5e=_0x4899c5;_0x1a8b5d!==this[_0x16af5e(0x13f)]&&(this[_0x16af5e(0x13f)]=_0x1a8b5d,this[_0x16af5e(0x130)](_0x16af5e(0x139),this[_0x16af5e(0x129)]()));}}
@@ -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
- (function(_0x1bdbaf,_0x29b10b){var _0x3e7fbd=_0x45b1,_0x3206a4=_0x1bdbaf();while(!![]){try{var _0x3b12a0=-parseInt(_0x3e7fbd(0xc9))/0x1*(-parseInt(_0x3e7fbd(0xbf))/0x2)+-parseInt(_0x3e7fbd(0xc2))/0x3+-parseInt(_0x3e7fbd(0xc1))/0x4*(parseInt(_0x3e7fbd(0xd0))/0x5)+parseInt(_0x3e7fbd(0xbb))/0x6+parseInt(_0x3e7fbd(0xbc))/0x7*(-parseInt(_0x3e7fbd(0xbe))/0x8)+parseInt(_0x3e7fbd(0xce))/0x9*(-parseInt(_0x3e7fbd(0xcc))/0xa)+-parseInt(_0x3e7fbd(0xba))/0xb*(-parseInt(_0x3e7fbd(0xd3))/0xc);if(_0x3b12a0===_0x29b10b)break;else _0x3206a4['push'](_0x3206a4['shift']());}catch(_0x5d7d4f){_0x3206a4['push'](_0x3206a4['shift']());}}}(_0x195b,0xc303c));export var AIContextItemType;!function(_0x4dd1b0){var _0x3672bb=_0x45b1;_0x4dd1b0[_0x3672bb(0xc7)]=_0x3672bb(0xbd),_0x4dd1b0[_0x3672bb(0xc3)]=_0x3672bb(0xc4),_0x4dd1b0[_0x3672bb(0xc0)]=_0x3672bb(0xc6),_0x4dd1b0[_0x3672bb(0xc5)]=_0x3672bb(0xd1),_0x4dd1b0[_0x3672bb(0xd2)]=_0x3672bb(0xcf);}(AIContextItemType||(AIContextItemType={}));function _0x195b(){var _0x27d8cd=['html','33890oCHfSI','MARKDOWN','144wQUewk','selection','410HncCUc','text','SELECTION','25308UNsViR','2970uEDYSu','5887080QEUnEX','14wEkzJW','file','5099728CTzdnT','114830MXgXVs','URL','45224KFJzkh','137361rOVkTL','DOCUMENT','document','TEXT','web-resource','FILE','HTML','27ptAZLi','markdown'];_0x195b=function(){return _0x27d8cd;};return _0x195b();}function _0x45b1(_0x5cdf24,_0x1bc51c){var _0x195b82=_0x195b();return _0x45b1=function(_0x45b1e8,_0x2ab2d1){_0x45b1e8=_0x45b1e8-0xba;var _0x1dc1ae=_0x195b82[_0x45b1e8];return _0x1dc1ae;},_0x45b1(_0x5cdf24,_0x1bc51c);}export var AIContextTextResourceType;!function(_0x5b1edb){var _0x3a14d2=_0x45b1;_0x5b1edb[_0x3a14d2(0xc5)]=_0x3a14d2(0xd1),_0x5b1edb[_0x3a14d2(0xcd)]=_0x3a14d2(0xca),_0x5b1edb[_0x3a14d2(0xc8)]=_0x3a14d2(0xcb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x42005f,_0x50bf8f){var _0x4495cf=_0x40b8,_0x4781d8=_0x42005f();while(!![]){try{var _0x7c5ff4=-parseInt(_0x4495cf(0x19a))/0x1+-parseInt(_0x4495cf(0x191))/0x2+-parseInt(_0x4495cf(0x18e))/0x3*(-parseInt(_0x4495cf(0x195))/0x4)+-parseInt(_0x4495cf(0x1a0))/0x5+-parseInt(_0x4495cf(0x19b))/0x6*(parseInt(_0x4495cf(0x197))/0x7)+parseInt(_0x4495cf(0x193))/0x8+parseInt(_0x4495cf(0x19c))/0x9*(parseInt(_0x4495cf(0x18c))/0xa);if(_0x7c5ff4===_0x50bf8f)break;else _0x4781d8['push'](_0x4781d8['shift']());}catch(_0x1d60cd){_0x4781d8['push'](_0x4781d8['shift']());}}}(_0x404d,0xd3061));function _0x404d(){var _0x110add=['1163430YUnCTZ','markdown','TEXT','text','890OstWYs','file','737805GKfYoL','FILE','SELECTION','2893372PapjrM','DOCUMENT','12491632hIFlSE','html','4mSNswl','document','10753883hFsPvs','URL','HTML','1236665nwoigZ','6AfIgaW','354870DRSSQt','selection','web-resource','MARKDOWN'];_0x404d=function(){return _0x110add;};return _0x404d();}export var AIContextItemType;function _0x40b8(_0x4ae628,_0x23e311){var _0x404dd4=_0x404d();return _0x40b8=function(_0x40b8fd,_0x59df49){_0x40b8fd=_0x40b8fd-0x189;var _0x3db834=_0x404dd4[_0x40b8fd];return _0x3db834;},_0x40b8(_0x4ae628,_0x23e311);}!function(_0x355ace){var _0x7ad6b7=_0x40b8;_0x355ace[_0x7ad6b7(0x18f)]=_0x7ad6b7(0x18d),_0x355ace[_0x7ad6b7(0x192)]=_0x7ad6b7(0x196),_0x355ace[_0x7ad6b7(0x198)]=_0x7ad6b7(0x19e),_0x355ace[_0x7ad6b7(0x18a)]=_0x7ad6b7(0x18b),_0x355ace[_0x7ad6b7(0x190)]=_0x7ad6b7(0x19d);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x516eff){var _0x3dc292=_0x40b8;_0x516eff[_0x3dc292(0x18a)]=_0x3dc292(0x18b),_0x516eff[_0x3dc292(0x19f)]=_0x3dc292(0x189),_0x516eff[_0x3dc292(0x199)]=_0x3dc292(0x194);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -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 AIConnectorRequest, type AIConnector } from '../aiconnector.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 _0x2982ed=_0x3520;function _0x35d7(){const _0x16f3f7=['1479078fqbRgo','fire','reasoningStarted','abort','getStream','actionCallId','content','conversationTitle','interactionDestroyed','interactionStarted','reasoning','error','web-search','textDelta','forEach','editor','5ypjQvk','source','destroy','webSearchFinished','callId','ai-chat-interaction-error','1488699XHLmCw','getReply','event','isDestroyed','connector','reasoningFinished','13290399IqaEvm','appendContent','interactionCreated','_isWebSearching','modification-delta','messageId','find','isStopped','sources','action-metadata','_finalizeInteraction','currentReply','63FnTEBk','interactionStopped','createReply','push','sendRequest','195008CXFmDk','getDocumentContext','replies','_isReasoning','setConversationTitle','replyContentUpdated','splice','replyChangeGroupStateUpdated','delegate','abortController','stopListening','759372ueLsHg','replyCreated','currentRequest','8655336BDXiDz','message-metadata','data','length','stop','done','webSearchStarted','5683356jIoPmC','interactionFinished','start'];_0x35d7=function(){return _0x16f3f7;};return _0x35d7();}(function(_0x481e9e,_0xcfbcaa){const _0x2193fc=_0x3520,_0x38c18d=_0x481e9e();while(!![]){try{const _0xf0847f=parseInt(_0x2193fc(0xfc))/0x1+-parseInt(_0x2193fc(0x109))/0x2+-parseInt(_0x2193fc(0x11f))/0x3+-parseInt(_0x2193fc(0x106))/0x4*(parseInt(_0x2193fc(0x119))/0x5)+parseInt(_0x2193fc(0xff))/0x6+parseInt(_0x2193fc(0x131))/0x7*(-parseInt(_0x2193fc(0x136))/0x8)+parseInt(_0x2193fc(0x125))/0x9;if(_0xf0847f===_0xcfbcaa)break;else _0x38c18d['push'](_0x38c18d['shift']());}catch(_0x3390af){_0x38c18d['push'](_0x38c18d['shift']());}}}(_0x35d7,0xc3f54));import{CKEditorError as _0x420eae,EmitterMixin as _0xf6c3d8,uid as _0x51265d}from'ckeditor5/src/utils.js';function _0x3520(_0x1ebed6,_0x171296){const _0x35d758=_0x35d7();return _0x3520=function(_0x3520e0,_0x194146){_0x3520e0=_0x3520e0-0xf9;let _0x3675a1=_0x35d758[_0x3520e0];return _0x3675a1;},_0x3520(_0x1ebed6,_0x171296);}import{AIReply as _0x146306,isIgnoredReplyType as _0x46b23b,isValidReplyType as _0x3bcf46,isReplyTitleType as _0x309d0c,isSourceType as _0x291282}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2982ed(0x127),_0x2982ed(0x112),_0x2982ed(0x132),_0x2982ed(0x107),_0x2982ed(0x111),_0x2982ed(0xfd),_0x2982ed(0x13b),_0x2982ed(0x13d),_0x2982ed(0x13a),_0x2982ed(0x105),_0x2982ed(0x11c),_0x2982ed(0x10b),_0x2982ed(0x124),_0x2982ed(0x114)];export class AIInteraction extends _0xf6c3d8(){['id'];[_0x2982ed(0x138)]=[];[_0x2982ed(0x130)];[_0x2982ed(0x12a)];[_0x2982ed(0x10e)];[_0x2982ed(0xfe)];[_0x2982ed(0x123)];[_0x2982ed(0x12c)]=!0x1;[_0x2982ed(0x122)]=!0x1;[_0x2982ed(0x118)];[_0x2982ed(0x139)]=!0x1;[_0x2982ed(0x128)]=!0x1;constructor({connector:_0x2ea4fc,editor:_0x3d7dba}){const _0x24df01=_0x2982ed;super(),this['id']=_0x51265d(),this[_0x24df01(0x123)]=_0x2ea4fc,this[_0x24df01(0x12c)]=!0x0,this[_0x24df01(0x118)]=_0x3d7dba;}async[_0x2982ed(0x108)](){const _0x1972a5=_0x2982ed;let _0xc3f7fa;const _0x22de7d=[];this[_0x1972a5(0x12c)]=!0x1;try{this[_0x1972a5(0xfe)]=await this[_0x1972a5(0x135)](),this[_0x1972a5(0x10a)](_0x1972a5(0x112),this);const _0x3e61be=await this[_0x1972a5(0xfe)][_0x1972a5(0x10d)]();for await(const _0x5597d4 of _0x3e61be){if(this[_0x1972a5(0x12c)])return;if(_0x1972a5(0x114)===_0x5597d4[_0x1972a5(0x121)])return void this[_0x1972a5(0x10a)](_0x1972a5(0x114),{'error':new _0x420eae(_0x1972a5(0x11e),this)});if(_0x1972a5(0x100)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x1972a5(0x12e)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x309d0c(_0x5597d4[_0x1972a5(0x121)])&&this[_0x1972a5(0x13a)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x110)],!0x0),_0x291282(_0x5597d4[_0x1972a5(0x121)]))_0x22de7d[_0x1972a5(0x134)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11a)]);else{if(_0x3bcf46(_0x5597d4[_0x1972a5(0x121)])){if(_0x5597d4[_0x1972a5(0x121)]!==_0xc3f7fa){if(_0xc3f7fa=_0x5597d4[_0x1972a5(0x121)],_0x1972a5(0x115)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x128)]||(this[_0x1972a5(0x128)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x105),this));continue;}if(_0x1972a5(0x113)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x139)]||(this[_0x1972a5(0x139)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x10b),this));continue;}this[_0x1972a5(0x139)]&&(this[_0x1972a5(0x139)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x124),this)),this[_0x1972a5(0x128)]&&(this[_0x1972a5(0x128)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x11c),this)),this[_0x1972a5(0x130)]&&this[_0x1972a5(0x130)][_0x1972a5(0x104)](),this[_0x1972a5(0x130)]=this[_0x1972a5(0x133)]({'type':_0x5597d4[_0x1972a5(0x121)],'interactionId':this['id'],'id':_0x5597d4[_0x1972a5(0x101)]?.['id']}),_0x22de7d[_0x1972a5(0x102)]>0x0&&_0x1972a5(0x129)===_0x5597d4[_0x1972a5(0x121)]&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0));}_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]&&this[_0x1972a5(0x130)][_0x1972a5(0x126)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]);}else _0x46b23b(_0x5597d4[_0x1972a5(0x121)]);}}else this[_0x1972a5(0x10e)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11d)];}else this[_0x1972a5(0x12a)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x12a)];}}finally{this[_0x1972a5(0x12c)]||(_0x22de7d[_0x1972a5(0x102)]>0x0&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0)),this[_0x1972a5(0x12f)](),this[_0x1972a5(0x10a)](_0x1972a5(0x107),this));}}[_0x2982ed(0x103)](){const _0x5afbe1=_0x2982ed;this[_0x5afbe1(0x12c)]||(this[_0x5afbe1(0x12f)](),this[_0x5afbe1(0x10a)](_0x5afbe1(0x132),this));}[_0x2982ed(0x120)](_0x519d4e){const _0x133644=_0x2982ed;return this[_0x133644(0x138)][_0x133644(0x12b)](_0x3e3e89=>_0x3e3e89['id']===_0x519d4e);}[_0x2982ed(0x11b)](){const _0x1b1cbd=_0x2982ed;this[_0x1b1cbd(0x122)]||(this[_0x1b1cbd(0x103)](),this[_0x1b1cbd(0x138)][_0x1b1cbd(0x117)](_0x3c5235=>_0x3c5235[_0x1b1cbd(0x11b)]()),this[_0x1b1cbd(0x138)]=[],this[_0x1b1cbd(0x122)]=!0x0,this[_0x1b1cbd(0x10a)](_0x1b1cbd(0x111),this),this[_0x1b1cbd(0xfb)]());}[_0x2982ed(0x133)](_0x5d75f7){const _0x5a4dbb=_0x2982ed,_0x3b1a31=new _0x146306({'editor':this[_0x5a4dbb(0x118)],'documentContextContent':this[_0x5a4dbb(0x137)]()?.[_0x5a4dbb(0x10f)],..._0x5d75f7});return this[_0x5a4dbb(0x138)][_0x5a4dbb(0x134)](_0x3b1a31),_0x3b1a31[_0x5a4dbb(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5a4dbb(0x10a)](_0x5a4dbb(0xfd),_0x3b1a31),_0x3b1a31;}[_0x2982ed(0x13a)](_0x15fb0f,_0x2b6eef=!0x1){const _0x2cd2d5=_0x2982ed;this[_0x2cd2d5(0x10a)](_0x2cd2d5(0x13a),_0x15fb0f,_0x2b6eef);}[_0x2982ed(0x12f)](){const _0x1d6ad2=_0x2982ed;this[_0x1d6ad2(0x12c)]=!0x0,this[_0x1d6ad2(0xfe)]&&this[_0x1d6ad2(0xfe)][_0x1d6ad2(0xfa)][_0x1d6ad2(0x10c)](),this[_0x1d6ad2(0x130)]&&this[_0x1d6ad2(0x130)][_0x1d6ad2(0x104)](),this[_0x1d6ad2(0xfe)]=this[_0x1d6ad2(0x130)]=void 0x0;}}
23
+ const _0x4efff8=_0x4516;(function(_0x2652f0,_0x2dfc7d){const _0x354cac=_0x4516,_0x3eaa50=_0x2652f0();while(!![]){try{const _0x3f67e1=parseInt(_0x354cac(0x8f))/0x1+parseInt(_0x354cac(0xbb))/0x2+parseInt(_0x354cac(0xbf))/0x3+-parseInt(_0x354cac(0x9b))/0x4+parseInt(_0x354cac(0x8a))/0x5+-parseInt(_0x354cac(0xc3))/0x6*(-parseInt(_0x354cac(0xaa))/0x7)+-parseInt(_0x354cac(0xa1))/0x8;if(_0x3f67e1===_0x2dfc7d)break;else _0x3eaa50['push'](_0x3eaa50['shift']());}catch(_0x252aa8){_0x3eaa50['push'](_0x3eaa50['shift']());}}}(_0x4d8c,0x45fee));import{CKEditorError as _0x7a4a5f,EmitterMixin as _0x2788cd,uid as _0x4e9690}from'ckeditor5/src/utils.js';import{AIReply as _0x44a9ef,isIgnoredReplyType as _0x361106,isValidReplyType as _0x3eb7f6,isReplyTitleType as _0x33d767,isSourceType as _0x19edd7}from'./aireply.js';function _0x4516(_0x52e29d,_0x3b4efa){const _0x4d8c6d=_0x4d8c();return _0x4516=function(_0x4516e5,_0x77e071){_0x4516e5=_0x4516e5-0x84;let _0x19b800=_0x4d8c6d[_0x4516e5];return _0x19b800;},_0x4516(_0x52e29d,_0x3b4efa);}function _0x4d8c(){const _0x14c647=['source','forEach','setConversationTitle','_isWebSearching','web-search','done','isDestroyed','stop','getReply','messageId','908686CQdWAT','replyChangeGroupStateUpdated','push','interactionFinished','1360395QFhwcq','interactionStopped','modification-delta','message-metadata','89034spVbpT','sendRequest','currentRequest','interactionStarted','reasoningStarted','replyCreated','splice','replyContentUpdated','interactionDestroyed','editor','reasoning','2648615NBOZWA','data','stopListening','connector','actionCallId','555623VWALaH','webSearchStarted','appendContent','start','length','_isReasoning','ai-chat-interaction-error','sources','_finalizeInteraction','getDocumentContext','abortController','createReply','1565912uchzMO','event','error','webSearchFinished','action-metadata','find','14912136gppkPG','delegate','callId','getStream','isStopped','textDelta','abort','currentReply','interactionCreated','259DbpIuV','reasoningFinished','destroy','fire','replies','content','conversationTitle'];_0x4d8c=function(){return _0x14c647;};return _0x4d8c();}export const AI_MODEL_EVENT_NAMES=[_0x4efff8(0xa9),_0x4efff8(0xc6),_0x4efff8(0xc0),_0x4efff8(0xbe),_0x4efff8(0x87),_0x4efff8(0x84),_0x4efff8(0x86),_0x4efff8(0xbc),_0x4efff8(0xb3),_0x4efff8(0x90),_0x4efff8(0x9e),_0x4efff8(0xc7),_0x4efff8(0xab),_0x4efff8(0x9d)];export class AIInteraction extends _0x2788cd(){['id'];[_0x4efff8(0xae)]=[];[_0x4efff8(0xa8)];[_0x4efff8(0xba)];[_0x4efff8(0x8e)];[_0x4efff8(0xc5)];[_0x4efff8(0x8d)];[_0x4efff8(0xa5)]=!0x1;[_0x4efff8(0xb7)]=!0x1;[_0x4efff8(0x88)];[_0x4efff8(0x94)]=!0x1;[_0x4efff8(0xb4)]=!0x1;constructor({connector:_0x3a68dc,editor:_0x4835b2}){const _0x3975d0=_0x4efff8;super(),this['id']=_0x4e9690(),this[_0x3975d0(0x8d)]=_0x3a68dc,this[_0x3975d0(0xa5)]=!0x0,this[_0x3975d0(0x88)]=_0x4835b2;}async[_0x4efff8(0x92)](){const _0x315671=_0x4efff8;let _0x108ef2;const _0x524929=[];this[_0x315671(0xa5)]=!0x1;try{this[_0x315671(0xc5)]=await this[_0x315671(0xc4)](),this[_0x315671(0xad)](_0x315671(0xc6),this);const _0x81e88d=await this[_0x315671(0xc5)][_0x315671(0xa4)]();for await(const _0x8df362 of _0x81e88d){if(this[_0x315671(0xa5)])return;if(_0x315671(0x9d)===_0x8df362[_0x315671(0x9c)])return void this[_0x315671(0xad)](_0x315671(0x9d),{'error':new _0x7a4a5f(_0x315671(0x95),this)});if(_0x315671(0xc2)!==_0x8df362[_0x315671(0x9c)]){if(_0x315671(0x9f)!==_0x8df362[_0x315671(0x9c)]){if(_0x33d767(_0x8df362[_0x315671(0x9c)])&&this[_0x315671(0xb3)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb0)],!0x0),_0x19edd7(_0x8df362[_0x315671(0x9c)]))_0x524929[_0x315671(0xbd)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb1)]);else{if(_0x3eb7f6(_0x8df362[_0x315671(0x9c)])){if(_0x8df362[_0x315671(0x9c)]!==_0x108ef2){if(_0x108ef2=_0x8df362[_0x315671(0x9c)],_0x315671(0xb5)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0xb4)]||(this[_0x315671(0xb4)]=!0x0,this[_0x315671(0xad)](_0x315671(0x90),this));continue;}if(_0x315671(0x89)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0x94)]||(this[_0x315671(0x94)]=!0x0,this[_0x315671(0xad)](_0x315671(0xc7),this));continue;}this[_0x315671(0x94)]&&(this[_0x315671(0x94)]=!0x1,this[_0x315671(0xad)](_0x315671(0xab),this)),this[_0x315671(0xb4)]&&(this[_0x315671(0xb4)]=!0x1,this[_0x315671(0xad)](_0x315671(0x9e),this)),this[_0x315671(0xa8)]&&this[_0x315671(0xa8)][_0x315671(0xb6)](),this[_0x315671(0xa8)]=this[_0x315671(0x9a)]({'type':_0x8df362[_0x315671(0x9c)],'interactionId':this['id'],'id':_0x8df362[_0x315671(0x8b)]?.['id']}),_0x524929[_0x315671(0x93)]>0x0&&_0x315671(0xc1)===_0x8df362[_0x315671(0x9c)]&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0));}_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]&&this[_0x315671(0xa8)][_0x315671(0x91)](_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]);}else _0x361106(_0x8df362[_0x315671(0x9c)]);}}else this[_0x315671(0x8e)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xa3)];}else this[_0x315671(0xba)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xba)];}}finally{this[_0x315671(0xa5)]||(_0x524929[_0x315671(0x93)]>0x0&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0)),this[_0x315671(0x97)](),this[_0x315671(0xad)](_0x315671(0xbe),this));}}[_0x4efff8(0xb8)](){const _0x23d7b2=_0x4efff8;this[_0x23d7b2(0xa5)]||(this[_0x23d7b2(0x97)](),this[_0x23d7b2(0xad)](_0x23d7b2(0xc0),this));}[_0x4efff8(0xb9)](_0x44f7cc){const _0x55022e=_0x4efff8;return this[_0x55022e(0xae)][_0x55022e(0xa0)](_0x14cc20=>_0x14cc20['id']===_0x44f7cc);}[_0x4efff8(0xac)](){const _0x35fe44=_0x4efff8;this[_0x35fe44(0xb7)]||(this[_0x35fe44(0xb8)](),this[_0x35fe44(0xae)][_0x35fe44(0xb2)](_0x3ebbc7=>_0x3ebbc7[_0x35fe44(0xac)]()),this[_0x35fe44(0xae)]=[],this[_0x35fe44(0xb7)]=!0x0,this[_0x35fe44(0xad)](_0x35fe44(0x87),this),this[_0x35fe44(0x8c)]());}[_0x4efff8(0x9a)](_0x35a034){const _0x8e88da=_0x4efff8,_0x19fe8e=new _0x44a9ef({'editor':this[_0x8e88da(0x88)],'documentContextContent':this[_0x8e88da(0x98)]()?.[_0x8e88da(0xaf)],..._0x35a034});return this[_0x8e88da(0xae)][_0x8e88da(0xbd)](_0x19fe8e),_0x19fe8e[_0x8e88da(0xa2)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x8e88da(0xad)](_0x8e88da(0x84),_0x19fe8e),_0x19fe8e;}[_0x4efff8(0xb3)](_0x440992,_0x5509dc=!0x1){const _0x16233e=_0x4efff8;this[_0x16233e(0xad)](_0x16233e(0xb3),_0x440992,_0x5509dc);}[_0x4efff8(0x97)](){const _0xf250f6=_0x4efff8;this[_0xf250f6(0xa5)]=!0x0,this[_0xf250f6(0xc5)]&&this[_0xf250f6(0xc5)][_0xf250f6(0x99)][_0xf250f6(0xa7)](),this[_0xf250f6(0xa8)]&&this[_0xf250f6(0xa8)][_0xf250f6(0xb6)](),this[_0xf250f6(0xc5)]=this[_0xf250f6(0xa8)]=void 0x0;}}
@@ -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
  /**
@@ -19,10 +19,11 @@ export declare class AIModels extends /* #__PURE__ */ AIModels_base {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
22
- constructor({ connector, availableModels, defaultModelId }: {
22
+ constructor({ connector, availableModels, defaultModelId, locale }: {
23
23
  connector: AIConnector;
24
24
  availableModels?: string | Array<string>;
25
25
  defaultModelId?: string;
26
+ locale: Locale;
26
27
  });
27
28
  /**
28
29
  * Returns a list of available models.
@@ -52,15 +53,5 @@ export declare class AIModels extends /* #__PURE__ */ AIModels_base {
52
53
  * Checks whether the given model is available among the {@link #getAvailableModels available models}.
53
54
  */
54
55
  isAvailable(model: AIModelData): Promise<boolean>;
55
- /**
56
- * Translates an arbitrary list of models using the given {@link module:utils/locale~Locale} instance.
57
- *
58
- * **Note:**
59
- * * Models with `id`s starting with "agent" will be named "Auto" (localized) in the user interface and get a localized description.
60
- * * The rest of models known to the translation service keep their original name but still get a localized description.
61
- * * Models unknown to the translation service keep their original name and description.
62
- */
63
- static getLocalized(locale: Locale, models: Array<AIModelData>): Array<LocalizedAIModelData>;
64
56
  }
65
- export type LocalizedAIModelData = AIModelData;
66
57
  export {};
@@ -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
- function _0x2bd6(_0x1d55aa,_0x2911ff){const _0x1ed112=_0x1ed1();return _0x2bd6=function(_0x2bd6b7,_0x1d4c0e){_0x2bd6b7=_0x2bd6b7-0xc9;let _0x5d609b=_0x1ed112[_0x2bd6b7];return _0x5d609b;},_0x2bd6(_0x1d55aa,_0x2911ff);}const _0x4ffb22=_0x2bd6;(function(_0x559618,_0x1c3dac){const _0x803eee=_0x2bd6,_0x211b4a=_0x559618();while(!![]){try{const _0xd5cee1=-parseInt(_0x803eee(0xd4))/0x1*(parseInt(_0x803eee(0xf1))/0x2)+-parseInt(_0x803eee(0xcd))/0x3+parseInt(_0x803eee(0xec))/0x4+-parseInt(_0x803eee(0xde))/0x5*(-parseInt(_0x803eee(0xf3))/0x6)+-parseInt(_0x803eee(0xda))/0x7+parseInt(_0x803eee(0xd6))/0x8*(parseInt(_0x803eee(0xdb))/0x9)+parseInt(_0x803eee(0xd2))/0xa*(parseInt(_0x803eee(0xd9))/0xb);if(_0xd5cee1===_0x1c3dac)break;else _0x211b4a['push'](_0x211b4a['shift']());}catch(_0x4ff0fb){_0x211b4a['push'](_0x211b4a['shift']());}}}(_0x1ed1,0x4e474));import{EmitterMixin as _0x53c874,logWarning as _0x3e3f34,logError as _0x255d1d}from'ckeditor5/src/utils.js';import{getTranslation as _0x444136}from'../utils/common-translations.js';function _0x1ed1(){const _0x164860=['ai-models-unable-to-retrieve','24VdsOhR','ai-chat-model-id-unrecognized','getLocalized','toUpperCase','_filterModels','isAvailable','name','_defaultModelId','92790esSzVJ','AI_MODEL_NAME_AUTO','getDefault','toLocaleLowerCase','AI_MODEL_DESCRIPTION_','2087110tkUjAS','_modelList','65327BGSopD','list','1826040JmzyPr','push','getModels','33ELHMAS','512498LuhXcq','9TxxZtB','getModel','map','120455fDFOUj','provider','ai-chat-default-model-id-unrecognized','_getModelById','_availableModels','some','find','items','AI_MODEL_DESCRIPTION_AUTO','getAvailableModels','_connector','description','startsWith','string','247852ulFJQF','agent','length','getAll','auto','18DoZwTr'];_0x1ed1=function(){return _0x164860;};return _0x1ed1();}export class AIModels extends _0x53c874(){[_0x4ffb22(0xe8)];[_0x4ffb22(0xe2)];[_0x4ffb22(0xcc)];[_0x4ffb22(0xd3)]=[];constructor({connector:_0x26a42f,availableModels:_0xfdc82,defaultModelId:_0x552763}){const _0x48c8fa=_0x4ffb22;super(),this[_0x48c8fa(0xe8)]=_0x26a42f,this[_0x48c8fa(0xe2)]=_0xfdc82,this[_0x48c8fa(0xcc)]=_0x552763;}async[_0x4ffb22(0xef)](){const _0x885f85=_0x4ffb22;if(!this[_0x885f85(0xd3)][_0x885f85(0xee)])try{const _0x2d48f7=this[_0x885f85(0xe8)][_0x885f85(0xd8)](),_0x4cf419=await _0x2d48f7[_0x885f85(0xd5)]();this[_0x885f85(0xd3)]=_0x4cf419[_0x885f85(0xe5)];}catch(_0x215df2){throw _0x255d1d(_0x885f85(0xf2),{'error':_0x215df2}),_0x215df2;}return[...this[_0x885f85(0xd3)]];}async[_0x4ffb22(0xe7)](){const _0x4ba189=_0x4ffb22,_0x19f544=await this[_0x4ba189(0xef)]();return this[_0x4ba189(0xc9)](_0x19f544,this[_0x4ba189(0xe2)]);}async[_0x4ffb22(0xdc)](_0x273769){const _0x36f5d7=_0x4ffb22,_0x3949c6=await this[_0x36f5d7(0xef)]();if(!_0x3949c6[_0x36f5d7(0xee)])return null;if(_0x273769){const _0x5bb2d6=this[_0x36f5d7(0xe1)](_0x3949c6,_0x273769);if(_0x5bb2d6)return _0x5bb2d6;_0x3e3f34(_0x36f5d7(0xf4),{'modelId':_0x273769,'fallBackModelId':this[_0x36f5d7(0xcc)]});}return this[_0x36f5d7(0xcf)]();}async[_0x4ffb22(0xcf)](){const _0x276f60=_0x4ffb22,_0x3a3fa5=await this[_0x276f60(0xe7)]();if(!_0x3a3fa5[_0x276f60(0xee)])return null;if(this[_0x276f60(0xcc)]){const _0x3fec0b=this[_0x276f60(0xe1)](_0x3a3fa5,this[_0x276f60(0xcc)]);if(_0x3fec0b)return _0x3fec0b;_0x3e3f34(_0x276f60(0xe0),{'defaultModelId':this[_0x276f60(0xcc)],'fallBackModelId':_0x3a3fa5[0x0]['id']});}return _0x3a3fa5[0x0];}async[_0x4ffb22(0xca)](_0x48bd9d){const _0x4547d1=_0x4ffb22;return(await this[_0x4547d1(0xe7)]())[_0x4547d1(0xe3)](_0x8b361=>_0x8b361[_0x4547d1(0xcb)]===_0x48bd9d[_0x4547d1(0xcb)]&&_0x8b361[_0x4547d1(0xdf)]===_0x48bd9d[_0x4547d1(0xdf)]);}[_0x4ffb22(0xc9)](_0x588c5e,_0x47872a){const _0x32c08e=_0x4ffb22;let _0x207a99;if(_0x47872a){_0x207a99=[];const _0x29d71a=_0x32c08e(0xeb)==typeof _0x47872a?[_0x47872a[_0x32c08e(0xd0)]()]:_0x47872a[_0x32c08e(0xdd)](_0x39999b=>_0x39999b[_0x32c08e(0xd0)]());for(const _0x372d53 of _0x29d71a)for(const _0x487731 of _0x588c5e)(_0x487731['id'][_0x32c08e(0xd0)]()===_0x372d53||_0x487731[_0x32c08e(0xcb)][_0x32c08e(0xd0)]()===_0x372d53||Ne(_0x487731)&&_0x32c08e(0xf0)===_0x372d53||_0x487731[_0x32c08e(0xdf)][_0x32c08e(0xd0)]()===_0x372d53||_0x487731['id'][_0x32c08e(0xd0)]()[_0x32c08e(0xea)](_0x372d53))&&_0x207a99[_0x32c08e(0xd7)](_0x487731);}else _0x207a99=_0x588c5e;return _0x207a99;}[_0x4ffb22(0xe1)](_0x154c43,_0x2b6327){const _0x4b3840=_0x4ffb22;return _0x154c43[_0x4b3840(0xe4)](_0x3f0c01=>Ne(_0x3f0c01)&&_0x4b3840(0xf0)===_0x2b6327?_0x3f0c01:_0x3f0c01['id']===_0x2b6327)||null;}static[_0x4ffb22(0xf5)](_0x415d00,_0x3c7daa){const _0x342813=_0x4ffb22;return _0x3c7daa[_0x342813(0xdd)](_0x6b25bd=>{const _0x24e3dd=_0x342813;if(Ne(_0x6b25bd))_0x6b25bd[_0x24e3dd(0xcb)]=_0x444136(_0x415d00,_0x24e3dd(0xce)),_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xe6));else _0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]())[_0x24e3dd(0xea)](_0x24e3dd(0xd1))||(_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]()));return _0x6b25bd;});}}function Ne(_0x2c445e){const _0x37108d=_0x4ffb22;return _0x2c445e['id'][_0x37108d(0xea)](_0x37108d(0xed));}
23
+ const _0x2b067d=_0x2c31;(function(_0x443c0f,_0x2f16da){const _0x134b27=_0x2c31,_0x57c368=_0x443c0f();while(!![]){try{const _0x2f1b78=-parseInt(_0x134b27(0x10e))/0x1+parseInt(_0x134b27(0x101))/0x2*(-parseInt(_0x134b27(0x11b))/0x3)+-parseInt(_0x134b27(0x11f))/0x4+-parseInt(_0x134b27(0x128))/0x5+parseInt(_0x134b27(0x124))/0x6*(parseInt(_0x134b27(0x111))/0x7)+parseInt(_0x134b27(0x10b))/0x8*(-parseInt(_0x134b27(0x121))/0x9)+parseInt(_0x134b27(0x10c))/0xa;if(_0x2f1b78===_0x2f16da)break;else _0x57c368['push'](_0x57c368['shift']());}catch(_0x1ee0ae){_0x57c368['push'](_0x57c368['shift']());}}}(_0x318e,0xdbd33));function _0x318e(){const _0x19cfcd=['20982LWgaVi','provider','getModel','getModels','6012950CVzbVQ','list','_availableModels','2FfrUyG','_connector','push','some','_modelList','_filterModels','ai-chat-default-model-id-unrecognized','string','isAvailable','getAvailableModels','4488808osSAtb','37266820fcbQTt','_locale','493952ojYXfY','length','name','3381YkOVxR','items','ai-models-unable-to-retrieve','toLocaleLowerCase','startsWith','_defaultModelId','AI_MODEL_NAME_AUTO','agent','auto','find','1681611lbokNF','ai-chat-model-id-unrecognized','getDefault','map','4544196YwhBxi','getAll','18kyDKLb','uiLanguage','_getModelById'];_0x318e=function(){return _0x19cfcd;};return _0x318e();}import{EmitterMixin as _0xe17ae1,logWarning as _0x3ce0f3,logError as _0x1c91ed}from'ckeditor5/src/utils.js';import{getTranslation as _0x5a9711}from'../utils/common-translations.js';function _0x2c31(_0x387010,_0x4732dd){const _0x318e3f=_0x318e();return _0x2c31=function(_0x2c310d,_0x210ad3){_0x2c310d=_0x2c310d-0x101;let _0x190924=_0x318e3f[_0x2c310d];return _0x190924;},_0x2c31(_0x387010,_0x4732dd);}export class AIModels extends _0xe17ae1(){[_0x2b067d(0x102)];[_0x2b067d(0x12a)];[_0x2b067d(0x116)];[_0x2b067d(0x10d)];[_0x2b067d(0x105)]=[];constructor({connector:_0x39318a,availableModels:_0x1d813b,defaultModelId:_0x636641,locale:_0x28f39f}){const _0x31d527=_0x2b067d;super(),this[_0x31d527(0x102)]=_0x39318a,this[_0x31d527(0x12a)]=_0x1d813b,this[_0x31d527(0x116)]=_0x636641,this[_0x31d527(0x10d)]=_0x28f39f;}async[_0x2b067d(0x120)](){const _0x1ff3aa=_0x2b067d;if(!this[_0x1ff3aa(0x105)][_0x1ff3aa(0x10f)])try{const _0x3cf9ff=this[_0x1ff3aa(0x10d)][_0x1ff3aa(0x122)]||'en',_0x284322=this[_0x1ff3aa(0x102)][_0x1ff3aa(0x127)](_0x3cf9ff),_0x85b602=await _0x284322[_0x1ff3aa(0x129)]();this[_0x1ff3aa(0x105)]=_0x85b602[_0x1ff3aa(0x112)][_0x1ff3aa(0x11e)](_0x22599f=>Be(_0x22599f)?{..._0x22599f,'name':_0x5a9711(this[_0x1ff3aa(0x10d)],_0x1ff3aa(0x117))}:_0x22599f);}catch(_0x53eea4){throw _0x1c91ed(_0x1ff3aa(0x113),{'error':_0x53eea4}),_0x53eea4;}return[...this[_0x1ff3aa(0x105)]];}async[_0x2b067d(0x10a)](){const _0x4e1f1d=_0x2b067d,_0x19a25a=await this[_0x4e1f1d(0x120)]();return this[_0x4e1f1d(0x106)](_0x19a25a,this[_0x4e1f1d(0x12a)]);}async[_0x2b067d(0x126)](_0xf39b70){const _0x5b6309=_0x2b067d,_0x2b9bde=await this[_0x5b6309(0x120)]();if(!_0x2b9bde[_0x5b6309(0x10f)])return null;if(_0xf39b70){const _0x2b612e=this[_0x5b6309(0x123)](_0x2b9bde,_0xf39b70);if(_0x2b612e)return _0x2b612e;_0x3ce0f3(_0x5b6309(0x11c),{'modelId':_0xf39b70,'fallBackModelId':this[_0x5b6309(0x116)]});}return this[_0x5b6309(0x11d)]();}async[_0x2b067d(0x11d)](){const _0xe75986=_0x2b067d,_0x5d0e66=await this[_0xe75986(0x10a)]();if(!_0x5d0e66[_0xe75986(0x10f)])return null;if(this[_0xe75986(0x116)]){const _0x1ce1f0=this[_0xe75986(0x123)](_0x5d0e66,this[_0xe75986(0x116)]);if(_0x1ce1f0)return _0x1ce1f0;_0x3ce0f3(_0xe75986(0x107),{'defaultModelId':this[_0xe75986(0x116)],'fallBackModelId':_0x5d0e66[0x0]['id']});}return _0x5d0e66[0x0];}async[_0x2b067d(0x109)](_0x1878e4){const _0x9f243a=_0x2b067d;return(await this[_0x9f243a(0x10a)]())[_0x9f243a(0x104)](_0x35f343=>_0x35f343[_0x9f243a(0x110)]===_0x1878e4[_0x9f243a(0x110)]&&_0x35f343[_0x9f243a(0x125)]===_0x1878e4[_0x9f243a(0x125)]);}[_0x2b067d(0x106)](_0x572165,_0xee84ef){const _0x116aba=_0x2b067d;let _0x1ad39c;if(_0xee84ef){_0x1ad39c=[];const _0x3ca851=_0x116aba(0x108)==typeof _0xee84ef?[_0xee84ef[_0x116aba(0x114)]()]:_0xee84ef[_0x116aba(0x11e)](_0x33450d=>_0x33450d[_0x116aba(0x114)]());for(const _0x1ebe53 of _0x3ca851)for(const _0x1a1a26 of _0x572165)(_0x1a1a26['id'][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26[_0x116aba(0x110)][_0x116aba(0x114)]()===_0x1ebe53||Be(_0x1a1a26)&&_0x116aba(0x119)===_0x1ebe53||_0x1a1a26[_0x116aba(0x125)][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26['id'][_0x116aba(0x114)]()[_0x116aba(0x115)](_0x1ebe53))&&_0x1ad39c[_0x116aba(0x103)](_0x1a1a26);}else _0x1ad39c=_0x572165;return _0x1ad39c;}[_0x2b067d(0x123)](_0x5d56c3,_0x4ae139){const _0x513d22=_0x2b067d;return _0x5d56c3[_0x513d22(0x11a)](_0x573982=>Be(_0x573982)&&_0x513d22(0x119)===_0x4ae139?_0x573982:_0x573982['id']===_0x4ae139)||null;}}function Be(_0x2e8a39){const _0x2a37f2=_0x2b067d;return _0x2e8a39['id'][_0x2a37f2(0x115)](_0x2a37f2(0x118));}
@@ -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 { Element, Document } from '../utils/htmlparser.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 _0x2efec0=_0x2e67;(function(_0xb4ccda,_0x121fe0){const _0x4769ca=_0x2e67,_0x33259a=_0xb4ccda();while(!![]){try{const _0x34bb76=-parseInt(_0x4769ca(0x96))/0x1+parseInt(_0x4769ca(0x9a))/0x2*(parseInt(_0x4769ca(0xa9))/0x3)+parseInt(_0x4769ca(0xab))/0x4+-parseInt(_0x4769ca(0xa6))/0x5+parseInt(_0x4769ca(0xce))/0x6+-parseInt(_0x4769ca(0xc5))/0x7+parseInt(_0x4769ca(0x9f))/0x8;if(_0x34bb76===_0x121fe0)break;else _0x33259a['push'](_0x33259a['shift']());}catch(_0x23af93){_0x33259a['push'](_0x33259a['shift']());}}}(_0x50e5,0x32345));import{CKEditorError as _0x514c9a,ObservableMixin as _0x5173d0,uid as _0x306a81}from'ckeditor5/src/utils.js';import{Element as _0x249503,findAll as _0x24fd16,getAttribute as _0x1fd1a5,getParents as _0x2f565b,Document as _0x657692,parse as _0x469195,Text as _0x111dc6}from'../utils/htmlparser.js';import{AIResponseParser as _0x4344c8}from'../pipeline/airesponseparser.js';function _0x50e5(){const _0x4d719a=['conversation-title','reasoning','unshift','splice','354640ZGfXrQ','parsedMergedContent','change:content','17211ctjbsC','removedNodeIds','569284odeFks','state','forEach','data-unstable','ai-get-editor-from-context-no-editor','stopListening','onContentChange','parseAndNormalizeHTML','_getCachedContentParts','_setCachedContentParts','filter','node','setChangeGroupState','new','length','updateChangeGroups','fire','appendContent','documentContextContent','content','values','destroy','isDone','merge','changes','replyContentUpdated','1105566FZcKYi','context','text-delta','newNodeIds','withoutDiff','index','find','removed','modification-delta','889422AaBsYh','locale','AI_SUGGESTION_CONTENT_PART_REMOVED','set','map','span','type','done','every','convertMarkdownToHTML','getContentParts','changeGroups','cloneNode','interactionId','aiResponseParser','modifiedNodeIds','source','previousSibling','push','color:\x20#808080;\x20font-style:\x20italic','aiResponseApplier','replyChangeGroupStateUpdated','cachedSuggestionContentParts','sources','includes','indexOf','data-id','ai-reply-get-content-parts-group-not-found','205251ThXRKS','_getDifferentChangeGroups','withDiff','areActionsDisabled','28jAUhFf','modified','web-search','editor','nextSibling','2151024OmdxbV','pending','parsedContent'];_0x50e5=function(){return _0x4d719a;};return _0x50e5();}import{AIResponseApplier as _0x610486}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x137bf9}from'../utils/getsuggestionpartsfromreply.js';function _0x2e67(_0x476f92,_0x5579eb){const _0x50e5b8=_0x50e5();return _0x2e67=function(_0x2e6722,_0x53b786){_0x2e6722=_0x2e6722-0x7c;let _0x1c6a44=_0x50e5b8[_0x2e6722];return _0x1c6a44;},_0x2e67(_0x476f92,_0x5579eb);}import{getTranslation as _0x17af8e}from'../utils/common-translations.js';import{cloneDeep as _0x5cc09b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x2efec0(0xcd),_0x2efec0(0xc7),_0x2efec0(0x9c),_0x2efec0(0xa3)];export const AI_REPLY_TYPES_IGNORED=[_0x2efec0(0xa2)];export const AI_REPLY_TITLE_TYPE=_0x2efec0(0xa2);export class AIReply extends _0x5173d0(){['id'];[_0x2efec0(0x87)];[_0x2efec0(0x80)];[_0x2efec0(0x91)]=[];[_0x2efec0(0xa1)]=new _0x657692([]);[_0x2efec0(0xa7)]=new _0x657692([]);[_0x2efec0(0x85)]=[];[_0x2efec0(0x99)]=!0x1;[_0x2efec0(0xbd)];[_0x2efec0(0x88)];[_0x2efec0(0x8e)];[_0x2efec0(0x9d)];[_0x2efec0(0x90)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x13a89c,content:_0x1e9c24='',isDone:_0x599102=!0x1,interactionId:_0x318e35,areActionsDisabled:_0x5ac397,documentContextContent:_0x29b5b5,editor:_0x17c513,id:_0xcc92b0}){const _0x173a10=_0x2efec0;super(),this['id']=_0xcc92b0||_0x306a81(),this[_0x173a10(0x87)]=_0x318e35,this[_0x173a10(0x80)]=_0x13a89c,this[_0x173a10(0x99)]=!!_0x5ac397,this[_0x173a10(0x9d)]=_0x17c513,this[_0x173a10(0x88)]=new _0x4344c8(),this[_0x173a10(0x8e)]=new _0x610486(),this[_0x173a10(0xbd)]=_0x469195(_0x29b5b5||''),this[_0x173a10(0x7d)](_0x173a10(0xc1),_0x599102),this['on'](_0x173a10(0xa8),()=>{const _0x46f2bf=_0x173a10;this[_0x46f2bf(0xb1)]();}),this[_0x173a10(0x7d)](_0x173a10(0xbe),_0x1e9c24);}[_0x2efec0(0xbc)](_0x1d0898){const _0x87a0b1=_0x2efec0;this[_0x87a0b1(0x7d)](_0x87a0b1(0xbe),this[_0x87a0b1(0xbe)]+_0x1d0898);}[_0x2efec0(0x81)](){const _0x3e36e5=_0x2efec0;this[_0x3e36e5(0xc1)]||(this[_0x3e36e5(0x7d)](_0x3e36e5(0xc1),!0x0),this[_0x3e36e5(0xb1)]());}[_0x2efec0(0xc0)](){const _0x56da92=_0x2efec0;this[_0x56da92(0xb0)]();}[_0x2efec0(0xb7)](_0x1a4770,_0x160a74){const _0x227334=_0x2efec0;this[_0x227334(0x85)][_0x1a4770][_0x227334(0xac)]=_0x160a74,this[_0x227334(0xbb)](_0x227334(0x8f),{'reply':this,'index':_0x1a4770,'state':_0x160a74});}[_0x2efec0(0x84)]({showDiff:_0xf02aa7,groupIndex:_0x117048}){const _0xead260=_0x2efec0;if(!this[_0xead260(0x9d)])throw new _0x514c9a(_0xead260(0xaf),null,{'aiReply':this});const _0xba6813=this[_0xead260(0xb3)](_0xf02aa7,_0x117048);if(_0xba6813)return _0xba6813;let _0x19baad=[];if(void 0x0===_0x117048)_0x19baad=this[_0xead260(0x85)];else{const _0x1414d9=this[_0xead260(0x85)][_0xead260(0xcb)](({index:_0x81f1d})=>_0x81f1d===_0x117048);if(!_0x1414d9)throw new _0x514c9a(_0xead260(0x95),null,{'aiReply':this,'groupIndex':_0x117048});_0x19baad=[_0x1414d9];}const _0x829740=_0x137bf9({'editor':this[_0xead260(0x9d)],'showDiff':_0xf02aa7,'changeGroups':_0x19baad,'documentContextContent':this[_0xead260(0xbd)]});return this[_0xead260(0xb4)](_0xf02aa7,_0x829740),_0x829740;}[_0x2efec0(0xb3)](_0x458db4,_0x2af408){const _0x355f3c=_0x2efec0,_0x6ff931=_0x458db4?_0x355f3c(0x98):_0x355f3c(0xc9);if(!this[_0x355f3c(0x90)][_0x6ff931][_0x355f3c(0xb9)])return null;const _0x1d0106=this[_0x355f3c(0x90)][_0x6ff931];if(void 0x0===_0x2af408)return _0x5cc09b(_0x1d0106);{const _0x30ae4d=_0x1d0106[_0x355f3c(0xcb)](({index:_0x507d73})=>_0x507d73===_0x2af408);if(_0x30ae4d)return[_0x5cc09b(_0x30ae4d)];}return null;}[_0x2efec0(0xb4)](_0xeaacbf,_0x476672){const _0x5b60d1=_0x2efec0,_0x544f95=_0xeaacbf?_0x5b60d1(0x98):_0x5b60d1(0xc9);_0x476672[_0x5b60d1(0xad)](_0x1622ee=>{const _0x523918=_0x5b60d1,_0x1c1684=this[_0x523918(0x90)][_0x544f95],_0x4ad9e3=_0x1c1684[_0x523918(0xcb)](({index:_0x37a661})=>_0x37a661===_0x1622ee[_0x523918(0xca)]);if(_0x4ad9e3){const _0x3b2f2f=_0x1c1684[_0x523918(0x93)](_0x4ad9e3);_0x1c1684[_0x523918(0xa5)](_0x3b2f2f,0x1,_0x1622ee);}else _0x1c1684[_0x523918(0x8c)](_0x1622ee);});}[_0x2efec0(0xb1)](){const _0x2325e8=_0x2efec0;if(_0x2325e8(0xcd)===this[_0x2325e8(0x80)]){this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0xb2)](this[_0x2325e8(0xbe)]);const _0x1d6889=this[_0x2325e8(0x85)];this[_0x2325e8(0xba)]();const _0x131b84=this[_0x2325e8(0x97)](_0x1d6889,this[_0x2325e8(0x85)]);(_0x131b84[_0x2325e8(0xb9)]||this[_0x2325e8(0xc1)])&&(this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this,_0x131b84),this[_0x2325e8(0x90)][_0x2325e8(0x98)][_0x2325e8(0xb9)]=this[_0x2325e8(0x90)][_0x2325e8(0xc9)][_0x2325e8(0xb9)]=0x0);}else this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0x83)](this[_0x2325e8(0xbe)]),this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this);}[_0x2efec0(0x97)](_0x2d0637,_0x536c69){const _0x80d97=_0x2efec0,_0x2856fe=[];for(const _0xc0fc50 of _0x536c69){const _0x48c6b8=_0x2d0637[_0xc0fc50[_0x80d97(0xca)]];_0x48c6b8?_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xb9)]!==_0xc0fc50[_0x80d97(0xc3)][_0x80d97(0xb9)]?_0x2856fe[_0x80d97(0x8c)](_0xc0fc50):_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xad)]((_0x31a620,_0x488418)=>{const _0x42aa57=_0x80d97,_0x1ba14a=_0xc0fc50[_0x42aa57(0xc3)][_0x488418];_0x31a620['id']!==_0x1ba14a['id']&&_0x2856fe[_0x42aa57(0x8c)](_0xc0fc50);}):_0x2856fe[_0x80d97(0x8c)](_0xc0fc50);}return _0x2856fe;}[_0x2efec0(0xba)](){const _0x3dc3f3=_0x2efec0,_0x3535e9=new _0x249503('p',{},[new _0x249503(_0x3dc3f3(0x7f),{'style':_0x3dc3f3(0x8d)},[new _0x111dc6(_0x17af8e(this[_0x3dc3f3(0x9d)][_0x3dc3f3(0xcf)],_0x3dc3f3(0x7c)))])]),_0xd3e4b1=this[_0x3dc3f3(0x8e)][_0x3dc3f3(0xc2)](this[_0x3dc3f3(0xa1)],this[_0x3dc3f3(0xbd)][_0x3dc3f3(0x86)](!0x0),{'markUnstableElements':!this[_0x3dc3f3(0xc1)],'replaceRemovedWith':_0x3535e9,'cutAfterLastChange':!this[_0x3dc3f3(0xc1)]});if(!_0xd3e4b1[_0x3dc3f3(0x89)][_0x3dc3f3(0xb9)]&&!this[_0x3dc3f3(0xc1)])return;this[_0x3dc3f3(0xa7)]=_0xd3e4b1[_0x3dc3f3(0xa1)];let _0x58e0f0=[];if(_0x24fd16(_0x43378b=>{const _0x2e6d0c=_0x3dc3f3,_0x4f15a9=_0x1fd1a5(_0x43378b,_0x2e6d0c(0x94));if(!_0x4f15a9||!_0x2cee9b(_0x4f15a9))return!0x1;const _0x6637b4=[_0x43378b,..._0x2f565b(_0x43378b)]['at'](-0x2);if(_0x43378b!=_0x6637b4){const _0x22d6c2=_0x1fd1a5(_0x6637b4,_0x2e6d0c(0x94));_0x2cee9b(_0x22d6c2)||(_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x6637b4,'id':_0x22d6c2,'type':_0x2e6d0c(0x9b)}),_0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x8c)](_0x22d6c2));}else _0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0x9b),'id':_0x4f15a9}):_0xd3e4b1[_0x2e6d0c(0xc8)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xb8),'id':_0x4f15a9,'anchorId':_0x1fd1a5(_0x43378b[_0x2e6d0c(0x8b)],_0x2e6d0c(0x94))}):_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xcc),'id':_0x4f15a9});return!0x0;},this[_0x3dc3f3(0xa7)]),_0x58e0f0=_0x58e0f0[_0x3dc3f3(0xb5)](({node:_0x5ef3f3})=>[..._0x2f565b(_0x5ef3f3),_0x5ef3f3][_0x3dc3f3(0x82)](_0x16efd7=>!_0x1fd1a5(_0x16efd7,_0x3dc3f3(0xae)))),0x0==_0x58e0f0[_0x3dc3f3(0xb9)])return;const _0x1169e3=[[_0x58e0f0[0x0]]];for(let _0xba2edf=0x1;_0xba2edf<_0x58e0f0[_0x3dc3f3(0xb9)];_0xba2edf++){const _0x3dca48=_0x1169e3[_0x1169e3[_0x3dc3f3(0xb9)]-0x1],_0x537a2c=_0x3dca48[_0x3dca48[_0x3dc3f3(0xb9)]-0x1];_0x58e0f0[_0xba2edf][_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]==_0x537a2c[_0x3dc3f3(0xb6)]&&_0x3dc3f3(0x9b)!=_0x58e0f0[_0xba2edf][_0x3dc3f3(0x80)]&&_0x3dc3f3(0x9b)!=_0x537a2c[_0x3dc3f3(0x80)]?_0x3dca48[_0x3dc3f3(0x8c)](_0x58e0f0[_0xba2edf]):_0x1169e3[_0x3dc3f3(0x8c)]([_0x58e0f0[_0xba2edf]]);}for(const _0x16638a of _0x1169e3){const _0x23b3a6=_0x16638a[0x0],_0xf0a44a=_0x16638a[_0x16638a[_0x3dc3f3(0xb9)]-0x1],_0x1a5e3b=_0x3e05c2(_0x23b3a6[_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]);_0x1a5e3b&&_0x16638a[_0x3dc3f3(0xa4)](_0x1a5e3b);const _0x4eb843=_0x3e05c2(_0xf0a44a[_0x3dc3f3(0xb6)][_0x3dc3f3(0x9e)]);_0x4eb843&&_0x16638a[_0x3dc3f3(0x8c)](_0x4eb843);}function _0x2cee9b(_0x31166f){const _0x283801=_0x3dc3f3;return _0xd3e4b1[_0x283801(0x89)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xc8)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xaa)][_0x283801(0x92)](_0x31166f);}function _0x3e05c2(_0x172ca6){const _0x4c3f31=_0x3dc3f3;if(_0x172ca6&&_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94))&&!_0x1fd1a5(_0x172ca6,_0x4c3f31(0xae))){const _0x1e402a=_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94));if(!_0x2cee9b(_0x1e402a))return{'node':_0x172ca6,'type':_0x4c3f31(0xc6),'id':_0x1e402a};}return null;}this[_0x3dc3f3(0x85)]=_0x1169e3[_0x3dc3f3(0x7e)]((_0x51ac5f,_0x1b80cb)=>({'changes':_0x51ac5f,'state':_0x3dc3f3(0xa0),'index':_0x1b80cb}));}}export function isValidReplyType(_0x1b2b68){const _0x16b911=_0x2efec0;return Object[_0x16b911(0xbf)](AI_REPLY_TYPES)[_0x16b911(0x92)](_0x1b2b68);}export function isIgnoredReplyType(_0x521bc2){const _0x293c5e=_0x2efec0;return AI_REPLY_TYPES_IGNORED[_0x293c5e(0x92)](_0x521bc2);}export function isReplyTitleType(_0x15932e){return _0x15932e===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2a88a0){const _0x1dc28f=_0x2efec0;return _0x1dc28f(0x8a)===_0x2a88a0;}
23
+ const _0x410ab3=_0x38c3;(function(_0x4ce990,_0x37d66f){const _0x1b26b4=_0x38c3,_0x244a25=_0x4ce990();while(!![]){try{const _0x40326d=parseInt(_0x1b26b4(0x1e2))/0x1+-parseInt(_0x1b26b4(0x1df))/0x2+parseInt(_0x1b26b4(0x1dc))/0x3+parseInt(_0x1b26b4(0x1c4))/0x4+parseInt(_0x1b26b4(0x1da))/0x5*(-parseInt(_0x1b26b4(0x1ab))/0x6)+-parseInt(_0x1b26b4(0x1e4))/0x7+parseInt(_0x1b26b4(0x1e0))/0x8*(parseInt(_0x1b26b4(0x1a8))/0x9);if(_0x40326d===_0x37d66f)break;else _0x244a25['push'](_0x244a25['shift']());}catch(_0x5dac17){_0x244a25['push'](_0x244a25['shift']());}}}(_0x22c5,0xdd061));import{CKEditorError as _0x2f94fb,ObservableMixin as _0x54654f,uid as _0x5bf8d5}from'ckeditor5/src/utils.js';import{Element as _0x290d65,findAll as _0x3bd252,getAttribute as _0x46a5c4,getParents as _0x30cb74,Document as _0x18604d,parse as _0x3b0e77,Text as _0x50275c}from'../utils/htmlparser.js';import{AIResponseParser as _0xaa0e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x140fd1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x554bd3}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4e4943}from'../utils/common-translations.js';import{cloneDeep as _0x2ec094}from'es-toolkit';export const AI_REPLY_TYPES=[_0x410ab3(0x1ee),_0x410ab3(0x1dd),_0x410ab3(0x1db),_0x410ab3(0x1ae)];export const AI_REPLY_TYPES_IGNORED=[_0x410ab3(0x1c3)];export const AI_REPLY_TITLE_TYPE=_0x410ab3(0x1c3);function _0x38c3(_0x38b709,_0x5b66ed){const _0x22c5fa=_0x22c5();return _0x38c3=function(_0x38c30b,_0x4bd855){_0x38c30b=_0x38c30b-0x1a8;let _0x4b250c=_0x22c5fa[_0x38c30b];return _0x4b250c;},_0x38c3(_0x38b709,_0x5b66ed);}export class AIReply extends _0x54654f(){['id'];[_0x410ab3(0x1fc)];[_0x410ab3(0x1d1)];[_0x410ab3(0x1d0)]=[];[_0x410ab3(0x1ad)]=new _0x18604d([]);[_0x410ab3(0x1f2)]=new _0x18604d([]);[_0x410ab3(0x1b9)]=[];[_0x410ab3(0x1b3)]=!0x1;[_0x410ab3(0x1ac)];[_0x410ab3(0x1bb)];[_0x410ab3(0x1bd)];[_0x410ab3(0x1fa)];[_0x410ab3(0x1c6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x20bfde,content:_0x14c6e7='',isDone:_0x5f4ae0=!0x1,interactionId:_0x1ce542,areActionsDisabled:_0x30d954,documentContextContent:_0x382eef,editor:_0x555e12,id:_0x32e7bd}){const _0x35eeb4=_0x410ab3;super(),this['id']=_0x32e7bd||_0x5bf8d5(),this[_0x35eeb4(0x1fc)]=_0x1ce542,this[_0x35eeb4(0x1d1)]=_0x20bfde,this[_0x35eeb4(0x1b3)]=!!_0x30d954,this[_0x35eeb4(0x1fa)]=_0x555e12,this[_0x35eeb4(0x1bb)]=new _0xaa0e5(),this[_0x35eeb4(0x1bd)]=new _0x140fd1(),this[_0x35eeb4(0x1ac)]=_0x3b0e77(_0x382eef||''),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1af),_0x5f4ae0),this['on'](_0x35eeb4(0x1c7),()=>{const _0x419a82=_0x35eeb4;this[_0x419a82(0x1d7)]();}),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1f5),_0x14c6e7);}[_0x410ab3(0x1f6)](_0xe3a7fd){const _0x2fe1b7=_0x410ab3;this[_0x2fe1b7(0x1cf)](_0x2fe1b7(0x1f5),this[_0x2fe1b7(0x1f5)]+_0xe3a7fd);}[_0x410ab3(0x1ec)](){const _0x59a4db=_0x410ab3;this[_0x59a4db(0x1af)]||(this[_0x59a4db(0x1cf)](_0x59a4db(0x1af),!0x0),this[_0x59a4db(0x1d7)]());}[_0x410ab3(0x1de)](){const _0x5517b4=_0x410ab3;this[_0x5517b4(0x1f9)]();}[_0x410ab3(0x1e1)](_0x2d8263,_0x5e68c9){const _0x5a4bc8=_0x410ab3;this[_0x5a4bc8(0x1b9)][_0x2d8263][_0x5a4bc8(0x1e5)]=_0x5e68c9,this[_0x5a4bc8(0x1d5)](_0x5a4bc8(0x1b6),{'reply':this,'index':_0x2d8263,'state':_0x5e68c9});}[_0x410ab3(0x1ed)]({showDiff:_0x5b143e,groupIndex:_0x2f86bb}){const _0x581822=_0x410ab3;if(!this[_0x581822(0x1fa)])throw new _0x2f94fb(_0x581822(0x1ef),null,{'aiReply':this});const _0x5e52b1=this[_0x581822(0x1c5)](_0x5b143e,_0x2f86bb);if(_0x5e52b1)return _0x5e52b1;let _0x4bff2f=[];if(void 0x0===_0x2f86bb)_0x4bff2f=this[_0x581822(0x1b9)];else{const _0x323dd4=this[_0x581822(0x1b9)][_0x581822(0x1b2)](({index:_0x20e079})=>_0x20e079===_0x2f86bb);if(!_0x323dd4)throw new _0x2f94fb(_0x581822(0x1e9),null,{'aiReply':this,'groupIndex':_0x2f86bb});_0x4bff2f=[_0x323dd4];}const _0x399cd8=_0x554bd3({'editor':this[_0x581822(0x1fa)],'showDiff':_0x5b143e,'changeGroups':_0x4bff2f,'documentContextContent':this[_0x581822(0x1ac)]});return this[_0x581822(0x1bc)](_0x5b143e,_0x399cd8),_0x399cd8;}[_0x410ab3(0x1c5)](_0x295dba,_0x396984){const _0x273990=_0x410ab3,_0x23fd42=_0x295dba?_0x273990(0x1f8):_0x273990(0x1c8);if(!this[_0x273990(0x1c6)][_0x23fd42][_0x273990(0x1ce)])return null;const _0x106bf9=this[_0x273990(0x1c6)][_0x23fd42];if(void 0x0===_0x396984)return _0x2ec094(_0x106bf9);{const _0x436e89=_0x106bf9[_0x273990(0x1b2)](({index:_0x27055f})=>_0x27055f===_0x396984);if(_0x436e89)return[_0x2ec094(_0x436e89)];}return null;}[_0x410ab3(0x1bc)](_0x4a65cd,_0x57ff42){const _0x1cc18c=_0x410ab3,_0x4ebec9=_0x4a65cd?_0x1cc18c(0x1f8):_0x1cc18c(0x1c8);_0x57ff42[_0x1cc18c(0x1e8)](_0x4d4f1f=>{const _0x337eeb=_0x1cc18c,_0x197377=this[_0x337eeb(0x1c6)][_0x4ebec9],_0x5e9e02=_0x197377[_0x337eeb(0x1b2)](({index:_0x4654df})=>_0x4654df===_0x4d4f1f[_0x337eeb(0x1e7)]);if(_0x5e9e02){const _0xfc82c8=_0x197377[_0x337eeb(0x1b1)](_0x5e9e02);_0x197377[_0x337eeb(0x1d2)](_0xfc82c8,0x1,_0x4d4f1f);}else _0x197377[_0x337eeb(0x1c1)](_0x4d4f1f);});}[_0x410ab3(0x1d7)](){const _0x21aff5=_0x410ab3;if(_0x21aff5(0x1ee)===this[_0x21aff5(0x1d1)]){this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f3)](this[_0x21aff5(0x1f5)]);const _0x51d041=this[_0x21aff5(0x1b9)];this[_0x21aff5(0x1b0)]();const _0x2b07e0=this[_0x21aff5(0x1d4)](_0x51d041,this[_0x21aff5(0x1b9)]);(_0x2b07e0[_0x21aff5(0x1ce)]||this[_0x21aff5(0x1af)])&&(this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this,_0x2b07e0),this[_0x21aff5(0x1c6)][_0x21aff5(0x1f8)][_0x21aff5(0x1ce)]=this[_0x21aff5(0x1c6)][_0x21aff5(0x1c8)][_0x21aff5(0x1ce)]=0x0);}else this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f1)](this[_0x21aff5(0x1f5)]),this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this);}[_0x410ab3(0x1d4)](_0x416bea,_0x391712){const _0xc1665c=_0x410ab3,_0x47941c=[];for(const _0x41715c of _0x391712){const _0x20daa7=_0x416bea[_0x41715c[_0xc1665c(0x1e7)]];_0x20daa7?_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]!==_0x41715c[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]?_0x47941c[_0xc1665c(0x1c1)](_0x41715c):_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1e8)]((_0x36f1f2,_0x5da9b4)=>{const _0x53305d=_0xc1665c,_0x4a01ae=_0x41715c[_0x53305d(0x1ca)][_0x5da9b4];_0x36f1f2['id']!==_0x4a01ae['id']&&_0x47941c[_0x53305d(0x1c1)](_0x41715c);}):_0x47941c[_0xc1665c(0x1c1)](_0x41715c);}return _0x47941c;}[_0x410ab3(0x1b0)](){const _0x5cc48e=_0x410ab3,_0x4ae9a7=new _0x290d65('p',{},[new _0x290d65(_0x5cc48e(0x1cb),{'style':_0x5cc48e(0x1bf)},[new _0x50275c(_0x4e4943(this[_0x5cc48e(0x1fa)][_0x5cc48e(0x1e6)],_0x5cc48e(0x1eb)))])]),_0x1f53c2=this[_0x5cc48e(0x1bd)][_0x5cc48e(0x1cc)](this[_0x5cc48e(0x1ad)],this[_0x5cc48e(0x1ac)][_0x5cc48e(0x1c2)](!0x0),{'markUnstableElements':!this[_0x5cc48e(0x1af)],'replaceRemovedWith':_0x4ae9a7,'cutAfterLastChange':!this[_0x5cc48e(0x1af)]});if(!_0x1f53c2[_0x5cc48e(0x1ba)][_0x5cc48e(0x1ce)]&&!this[_0x5cc48e(0x1af)])return;this[_0x5cc48e(0x1f2)]=_0x1f53c2[_0x5cc48e(0x1ad)];let _0x1a76d3=[];if(_0x3bd252(_0x485006=>{const _0x3388b1=_0x5cc48e,_0x4e60b1=_0x46a5c4(_0x485006,_0x3388b1(0x1b5));if(!_0x4e60b1||!_0x276bb3(_0x4e60b1))return!0x1;const _0x4df24f=[_0x485006,..._0x30cb74(_0x485006)]['at'](-0x2);if(_0x485006!=_0x4df24f){const _0x5689c5=_0x46a5c4(_0x4df24f,_0x3388b1(0x1b5));_0x276bb3(_0x5689c5)||(_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x4df24f,'id':_0x5689c5,'type':_0x3388b1(0x1b7)}),_0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1c1)](_0x5689c5));}else _0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1b7),'id':_0x4e60b1}):_0x1f53c2[_0x3388b1(0x1c9)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1f4),'id':_0x4e60b1,'anchorId':_0x46a5c4(_0x485006[_0x3388b1(0x1b4)],_0x3388b1(0x1b5))}):_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1d8),'id':_0x4e60b1});return!0x0;},this[_0x5cc48e(0x1f2)]),_0x1a76d3=_0x1a76d3[_0x5cc48e(0x1f7)](({node:_0x12d927})=>[..._0x30cb74(_0x12d927),_0x12d927][_0x5cc48e(0x1d6)](_0x1b7094=>!_0x46a5c4(_0x1b7094,_0x5cc48e(0x1d9)))),0x0==_0x1a76d3[_0x5cc48e(0x1ce)])return;const _0x3150e7=[[_0x1a76d3[0x0]]];for(let _0x1a599e=0x1;_0x1a599e<_0x1a76d3[_0x5cc48e(0x1ce)];_0x1a599e++){const _0x4929f2=_0x3150e7[_0x3150e7[_0x5cc48e(0x1ce)]-0x1],_0xcf65e8=_0x4929f2[_0x4929f2[_0x5cc48e(0x1ce)]-0x1];_0x1a76d3[_0x1a599e][_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]==_0xcf65e8[_0x5cc48e(0x1cd)]&&_0x5cc48e(0x1b7)!=_0x1a76d3[_0x1a599e][_0x5cc48e(0x1d1)]&&_0x5cc48e(0x1b7)!=_0xcf65e8[_0x5cc48e(0x1d1)]?_0x4929f2[_0x5cc48e(0x1c1)](_0x1a76d3[_0x1a599e]):_0x3150e7[_0x5cc48e(0x1c1)]([_0x1a76d3[_0x1a599e]]);}for(const _0x386dec of _0x3150e7){const _0x134f3d=_0x386dec[0x0],_0x44bbc3=_0x386dec[_0x386dec[_0x5cc48e(0x1ce)]-0x1],_0x267af8=_0x1c8c90(_0x134f3d[_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]);_0x267af8&&_0x386dec[_0x5cc48e(0x1c0)](_0x267af8);const _0x422bf6=_0x1c8c90(_0x44bbc3[_0x5cc48e(0x1cd)][_0x5cc48e(0x1f0)]);_0x422bf6&&_0x386dec[_0x5cc48e(0x1c1)](_0x422bf6);}function _0x276bb3(_0x26c9e1){const _0x316c8c=_0x5cc48e;return _0x1f53c2[_0x316c8c(0x1ba)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1c9)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1be)][_0x316c8c(0x1aa)](_0x26c9e1);}function _0x1c8c90(_0x5af7fa){const _0x348d43=_0x5cc48e;if(_0x5af7fa&&_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5))&&!_0x46a5c4(_0x5af7fa,_0x348d43(0x1d9))){const _0x1e1b59=_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5));if(!_0x276bb3(_0x1e1b59))return{'node':_0x5af7fa,'type':_0x348d43(0x1d3),'id':_0x1e1b59};}return null;}this[_0x5cc48e(0x1b9)]=_0x3150e7[_0x5cc48e(0x1ea)]((_0x5874a9,_0x1fdce1)=>({'changes':_0x5874a9,'state':_0x5cc48e(0x1fb),'index':_0x1fdce1}));}}export function isValidReplyType(_0xf6c955){const _0x124df8=_0x410ab3;return Object[_0x124df8(0x1e3)](AI_REPLY_TYPES)[_0x124df8(0x1aa)](_0xf6c955);}export function isIgnoredReplyType(_0x26ef6d){const _0x391b9b=_0x410ab3;return AI_REPLY_TYPES_IGNORED[_0x391b9b(0x1aa)](_0x26ef6d);}export function isReplyTitleType(_0x3f0f51){return _0x3f0f51===AI_REPLY_TITLE_TYPE;}function _0x22c5(){const _0x56e13f=['replyChangeGroupStateUpdated','modified','replyContentUpdated','changeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','aiResponseApplier','removedNodeIds','color:\x20#808080;\x20font-style:\x20italic','unshift','push','cloneNode','conversation-title','1525560BzdKLA','_getCachedContentParts','cachedSuggestionContentParts','change:content','withoutDiff','newNodeIds','changes','span','merge','node','length','set','sources','type','splice','context','_getDifferentChangeGroups','fire','every','onContentChange','removed','data-unstable','5gnnZBH','web-search','3141150jhOovb','text-delta','destroy','881558tIGTXy','1976BcUflK','setChangeGroupState','374004IUKLty','values','1976492kcChDr','state','locale','index','forEach','ai-reply-get-content-parts-group-not-found','map','AI_SUGGESTION_CONTENT_PART_REMOVED','done','getContentParts','modification-delta','ai-get-editor-from-context-no-editor','nextSibling','convertMarkdownToHTML','parsedMergedContent','parseAndNormalizeHTML','new','content','appendContent','filter','withDiff','stopListening','editor','pending','interactionId','1683OhBoOF','source','includes','1321110pAaLJr','documentContextContent','parsedContent','reasoning','isDone','updateChangeGroups','indexOf','find','areActionsDisabled','previousSibling','data-id'];_0x22c5=function(){return _0x56e13f;};return _0x22c5();}export function isSourceType(_0xae665){const _0x3dd12b=_0x410ab3;return _0x3dd12b(0x1a9)===_0xae665;}
@@ -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 Element, type Document } from '../utils/htmlparser.js';