@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
- function _0x9f90(){const _0x106f5c=['first','execute','position','getLimitElement','TrackChangesEditing','setErrorState','replies','TableSelection','focus','bind','batch','message','version','_clone','mainView','45WjKwCA','AIConnector','getAncestors','end','_createInteraction','$graveyard','showLoader','slice','isDocumentOperation','_displayInteractionAtIndex','history','_interactionParams','_balloonShowDiff','getOperations','areChangesVisible','isEnabled','735942QijEDw','isBusy','push','applySuggestion','editor','ck-ai-interaction-counter','createRange','_clearSuggestionContent','852490Emgnse','getRoot','createPositionAfter','data','actionName','processor','howMany','isLoading','miniToolbarView','remove','sourcePosition','rejected','state','42583892vDCLNJ','replyCreated','showError','8gzNWwJ','_isNavigationNextButtonInView','_navigationPreviousButton','_stopInteraction','addNavigationItem','listenTo','_getExecuteDataInTable','_anchorOperation','_isNavigationPreviousButtonInView','stickiness','_executeAction','includes','_updateNavigationUI','getSelectedBlocks','clearErrorState','_interaction','queueEmptyPromise','indexOf','_execute','catch','527628mFdmzB','type','194531PcDblj','ck-ai-navigation-button\x20ck-ai-next-button','rename','_clearErrorState','forEach','ck-ai-custom-action-button','reinsert','startAutoScroll','insertSuggestion','ck-ai-navigation-button\x20ck-ai-previous-button','AI_ACTIONS_PREVIOUS_INTERACTION','add','_applyChanges','Error\x20refreshing\x20interaction:','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','6gPMAJU','isPremiumPlugin','root','model','_clearInteractionHistory','rootName','getChild','_isAbortError','merge','interactionFinished','locale','map','_setupCustomViews','Attribute','get','baseVersion','hideError','84472rOSDMO','textContent','close','hasError','executeAction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','icon','_aiConnector','469gpQcTC','change','toolbar','modelToViewWithIds','setChangeGroupState','getFirstRange','AIBalloon','pending','_navigationNextButton','clone','aiBalloon','getRanges','hideLoader','element','clearLoading','enqueue','_interactions','nodeAfter','createPositionAt','length','addOperation','upsertAIActionRating','replyContentUpdated','path','documentFragment','_customViews','config','split','AI_ACTIONS_GENERIC_ERROR','_navigationCounter','actionCallId','_refreshInteraction','startsWith','requires','_setErrorState','range','getSelectionAsFragment','ai.availableReplyActions','parent','documentContextContent','TrackChanges','insert','accepted','nextSibling','selectionRemoved','AI_ACTIONS_TRY_AGAIN','start','document','random','_promiseQueue','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','applyOperation','schema','_currentInteractionIndex','723264DfHIeS','getChildAtOffset','_disableCustomViews','changeGroups','stopInteraction','toggleSuggestionDisplayMode','getDocumentContext','streaming','_filterOperationsOutsideRange','signal','open','110Tjfnar','getSelectedContent','createPositionBefore','_clearLoadingState','set','Error\x20updating\x20content\x20in\x20replyCreated:','_navigateToNext','_applyOperationsAsSuggestions','AIActions','getSelectedTableCells','static','balloonView','move','replyChangeGroupStateUpdated','_wrapWithCommonAncestors','35vlUDPo','dialogClosed','bodyView','pluginName','ai-request-aborted','error','_children','upsertCustomAIActionRating','abort','getCommonAncestor','_setLoadingState','updateContent','toData','stopAutoScroll','filter','AI_ACTIONS_NEXT_INTERACTION','isCollapsed','removeNavigationItem','selection','_getExecuteDataRegular','showChangesButton','hasPendingParts','span','_isNavigationCounterInView','_navigateToPrevious','ai-no-track-changes','setLoading','setSelection','1/1','stop','_appendChild','stopListening','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setTemplate','plugins','operationsA','has'];_0x9f90=function(){return _0x106f5c;};return _0x9f90();}const _0x560db3=_0x1176;(function(_0x2d4673,_0x558328){const _0x40160c=_0x1176,_0x36fb28=_0x2d4673();while(!![]){try{const _0x46944a=-parseInt(_0x40160c(0x1b1))/0x1*(parseInt(_0x40160c(0x1c1))/0x2)+-parseInt(_0x40160c(0x1af))/0x3*(-parseInt(_0x40160c(0x19b))/0x4)+-parseInt(_0x40160c(0x13f))/0x5*(parseInt(_0x40160c(0x183))/0x6)+parseInt(_0x40160c(0xef))/0x7*(-parseInt(_0x40160c(0xe7))/0x8)+-parseInt(_0x40160c(0x173))/0x9*(parseInt(_0x40160c(0x18b))/0xa)+parseInt(_0x40160c(0x130))/0xb*(-parseInt(_0x40160c(0x125))/0xc)+parseInt(_0x40160c(0x198))/0xd;if(_0x46944a===_0x558328)break;else _0x36fb28['push'](_0x36fb28['shift']());}catch(_0x6d09c){_0x36fb28['push'](_0x36fb28['shift']());}}}(_0x9f90,0x6d93a));import{Plugin as _0x155a29}from'ckeditor5/src/core.js';import{AIConnector as _0x22fa35}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1cc655}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3ccbb4,ButtonView as _0x45fc67,ViewCollection as _0x4d9151,View as _0x2a0efa}from'ckeditor5/src/ui.js';import{AIEditing as _0x4fd8af}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4e902f}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x159e3f,first as _0xf706e5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x512262,IconRefresh as _0x4b2471,IconNextArrow as _0x49f0b5,IconPreviousArrow as _0x561973,IconShowChangesOff as _0x1fa255}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1b1b23}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x21a9e1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x45d4d1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x44374e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x523407}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x342f4b,getOperationsFromReply as _0x24bfd0}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5c421e,ModelRange as _0x1fbe8e,ModelPosition as _0x5ef448,_DetachOperation as _0x2f80fb,transformOperationSets as _0x249a0d}from'ckeditor5/src/engine.js';function _0x1176(_0x495fbd,_0x15731d){const _0x9f904e=_0x9f90();return _0x1176=function(_0x117628,_0x26db90){_0x117628=_0x117628-0xe6;let _0x1cf67c=_0x9f904e[_0x117628];return _0x1cf67c;},_0x1176(_0x495fbd,_0x15731d);}import{AI_REPLY_ACTIONS as _0x140a47}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x155a29{static get[_0x560db3(0x110)](){return[_0x22fa35,_0x3ccbb4,_0x4fd8af,_0x1b1b23,_0x523407];}static get[_0x560db3(0x142)](){const _0x1271fa=_0x560db3;return _0x1271fa(0x138);}static get[_0x560db3(0x1bf)](){return!0x0;}static get[_0x560db3(0x1c2)](){return!0x0;}[_0x560db3(0xee)];[_0x560db3(0xff)]=[];[_0x560db3(0x124)]=0x0;[_0x560db3(0x17e)];[_0x560db3(0x17f)]=!0x1;[_0x560db3(0x108)]=new _0x4d9151();[_0x560db3(0x19d)];[_0x560db3(0x10c)];[_0x560db3(0x156)]=!0x1;[_0x560db3(0xf7)];[_0x560db3(0x1a3)]=!0x1;[_0x560db3(0x19c)]=!0x1;[_0x560db3(0x120)];get[_0x560db3(0x1aa)](){const _0x1749f2=_0x560db3;return this[_0x1749f2(0xff)][this[_0x1749f2(0xff)][_0x1749f2(0x102)]-0x1];}constructor(_0x2f4d68){const _0x4c880c=_0x560db3;super(_0x2f4d68),this[_0x4c880c(0xee)]=this[_0x4c880c(0x187)][_0x4c880c(0x161)][_0x4c880c(0x1cf)](_0x4c880c(0x174)),this[_0x4c880c(0x134)](_0x4c880c(0x184),!0x1),this[_0x4c880c(0x120)]=new _0x21a9e1(),this[_0x4c880c(0x1cd)]();}[_0x560db3(0x129)](){const _0x2ecba8=_0x560db3;this[_0x2ecba8(0x19e)]();}async[_0x560db3(0xeb)](_0x33607d,_0x569ece,_0x105b74){const _0xf76808=_0x560db3;if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x163)](_0xf76808(0x16b))){if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x1cf)](_0xf76808(0x16b))[_0xf76808(0x139)]()){const {modelFragment:_0x379380,anchorData:_0x5a9924}=this[_0xf76808(0x1a1)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x379380,_0x5a9924,_0x569ece,_0x105b74);}}const {modelFragment:_0x1de179,anchorData:_0x2f0b08}=this[_0xf76808(0x152)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x1de179,_0x2f0b08,_0x569ece,_0x105b74);}[_0x560db3(0x152)](){const _0x219931=_0x560db3,_0x4fb3d2=this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x11e)][_0x219931(0x151)];if(_0x4fb3d2[_0x219931(0x14f)]){const _0x511adb=_0xf706e5(_0x4fb3d2[_0x219931(0x1a8)]())||this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x123)][_0x219931(0x167)](_0x4fb3d2);this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0xf0)](_0x27ffb9=>{const _0x20c759=_0x219931;_0x27ffb9[_0x20c759(0x15a)](_0x511adb,'in');});}const _0x1037ad=_0x4fb3d2[_0x219931(0xf4)](),_0x11b693=this[_0x219931(0x13e)](this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x131)](_0x4fb3d2),_0x1037ad[_0x219931(0x11d)],_0x1037ad[_0x219931(0x176)]),_0x370994=_0x4fb3d2[_0x219931(0xf4)]()[_0x219931(0x11d)],_0x329695=new Map();let _0x5df5bb=_0x11b693;for(let _0x3f0ff4=0x0;_0x3f0ff4<_0x370994[_0x219931(0x106)][_0x219931(0x102)];_0x3f0ff4++)_0x329695[_0x219931(0x134)](_0x5df5bb,_0x370994[_0x219931(0x106)][_0x3f0ff4]),_0x5df5bb=_0x5df5bb[_0x219931(0x1c7)](0x0);return{'modelFragment':_0x11b693,'anchorData':_0x329695};}[_0x560db3(0x1a1)](){const _0x16fc1c=_0x560db3,_0x230e8e=this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x11e)][_0x16fc1c(0x151)],_0x7c4b67=this[_0x16fc1c(0x187)][_0x16fc1c(0x161)][_0x16fc1c(0x1cf)](_0x16fc1c(0x16b))[_0x16fc1c(0x113)](),_0x2b6c96=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)][_0x16fc1c(0x115)][_0x16fc1c(0x115)],_0x3f8361=this[_0x16fc1c(0x13e)](_0x7c4b67,this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x132)](_0x2b6c96),this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x18d)](_0x2b6c96)),_0x3f7832=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)],_0x248d16=new Map();let _0x2b8add=_0x3f8361;for(let _0x574005=0x0;_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)];_0x574005++)if(_0x248d16[_0x16fc1c(0x134)](_0x2b8add,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)]-0x1)_0x2b8add=_0x2b8add[_0x16fc1c(0x1c7)](0x0);else{let _0x1a477f=_0x2b8add[_0x16fc1c(0x11a)];for(;_0x1a477f;)_0x248d16[_0x16fc1c(0x134)](_0x1a477f,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x1a477f=_0x1a477f[_0x16fc1c(0x11a)];}return{'modelFragment':_0x3f8361,'anchorData':_0x248d16};}[_0x560db3(0x1a5)](_0x5c896b,_0x5939b6,_0x5b64ed,_0x5e1bc5,_0xa0cce6){const _0x378b75=_0x560db3,_0x4bf18e=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x4fd8af),_0x43e898=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x1b1b23),_0x21d787=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x151)],_0x4e4e27=_0x4bf18e[_0x378b75(0xf2)](_0x5939b6),_0xa82277=this[_0x378b75(0x187)][_0x378b75(0x18e)][_0x378b75(0x190)][_0x378b75(0x14b)](_0x4e4e27),_0x13de40=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x170)],_0x5b8090=[..._0x21d787[_0x378b75(0xfa)]()];let _0x58abb7=this[_0x378b75(0x187)][_0x378b75(0x109)][_0x378b75(0x1cf)](_0x378b75(0x114))||[..._0x140a47];this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117))||(_0x58abb7=_0x58abb7[_0x378b75(0x14d)](_0x22ca8c=>_0x378b75(0x1b9)!=_0x22ca8c));const _0x20d6a5=new _0x1cc655(this[_0x378b75(0x187)][_0x378b75(0x1cb)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x378b75(0xed),'customView':this[_0x378b75(0x108)]},'showUnchangedParts':!0x0,'availableActions':_0x58abb7});return _0x43e898[_0x378b75(0x12f)]({'index':0x3e8*Math[_0x378b75(0x11f)]()%0x3e8,'title':_0x5e1bc5,'icon':_0xa0cce6||_0x512262,'mainView':_0x20d6a5,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117)),'ranges':_0x5b8090}),this[_0x378b75(0x149)](_0x20d6a5,_0x43e898),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x186),()=>{const _0x10c755=_0x378b75;this[_0x10c755(0x1bd)](_0x5939b6,_0x5b64ed,!0x1);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x1b9),()=>{const _0x353030=_0x378b75;this[_0x353030(0x1bd)](_0x5939b6,_0x5b64ed,!0x0);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x11b),()=>{const _0x17363c=_0x378b75;this[_0x17363c(0x19e)](),this[_0x17363c(0x127)]();}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x140),()=>{const _0x48f798=_0x378b75;if(this[_0x48f798(0x1aa)]&&this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]>0x0){const _0xd54cc0=this[_0x48f798(0x1aa)][_0x48f798(0x16a)][this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]-0x1],_0x1426a0=_0xd54cc0[_0x48f798(0x128)][0x0];_0x1426a0&&_0x48f798(0xf6)===_0x1426a0[_0x48f798(0x197)]&&_0xd54cc0[_0x48f798(0xf3)](0x0,_0x48f798(0x196));}this[_0x48f798(0x19e)](),this[_0x48f798(0x1c5)](),this[_0x48f798(0x15e)](_0x43e898);}),this[_0x378b75(0x177)](_0xa82277,_0x13de40,_0x20d6a5,_0x43e898,_0x5c896b);}[_0x560db3(0x13e)](_0x57b985,_0x30e578,_0x3c197f){const _0x1d7b5c=_0x560db3,_0xb7b8f4=this[_0x1d7b5c(0x187)][_0x1d7b5c(0x1c4)][_0x1d7b5c(0x189)](_0x30e578,_0x3c197f)[_0x1d7b5c(0x148)](),_0x4de996=_0xb7b8f4['is'](_0x1d7b5c(0x107))?[]:_0xb7b8f4[_0x1d7b5c(0x175)]({'includeSelf':!0x0})[_0x1d7b5c(0x17a)](0x1);if(_0x4de996[_0x1d7b5c(0x102)]){const _0x556756=_0x4de996[_0x1d7b5c(0x1cc)](_0x3f506b=>_0x3f506b[_0x1d7b5c(0x171)](!0x1));for(let _0x242336=0x1;_0x242336<_0x556756[_0x1d7b5c(0x102)];_0x242336++)_0x556756[_0x242336-0x1][_0x1d7b5c(0x15d)](_0x556756[_0x242336]);return _0x556756[_0x556756[_0x1d7b5c(0x102)]-0x1][_0x1d7b5c(0x15d)](_0x57b985),new _0x5c421e(_0x556756[0x0]);}return _0x57b985;}async[_0x560db3(0x177)](_0x253094,_0x46795a,_0x57cca5,_0x154fa6,_0x551eb4){const _0x30886d=_0x560db3,_0x347581=this[_0x30886d(0x187)];this[_0x30886d(0x17e)]={'action':_0x551eb4,'content':_0x253094,'version':_0x46795a,'mainView':_0x57cca5,'aiBalloon':_0x154fa6};const _0x2654bf=new _0x4e902f({'connector':this[_0x30886d(0xee)],'editor':_0x347581,'content':_0x253094,'version':_0x46795a,..._0x551eb4});this[_0x30886d(0xff)][_0x30886d(0x185)](_0x2654bf),_0x57cca5[_0x30886d(0xe6)]();const _0x1a2bc8=(_0x1e32e3,_0xcb3d1f,_0x18b2fd=!0x1,_0x479518=_0x30886d(0x12c))=>this[_0x30886d(0x120)][_0x30886d(0xfe)](async _0x4200b3=>{const _0x542ef8=_0x30886d;try{const _0x3ec8c5=_0x44374e({'editor':_0x347581,'changeGroups':_0x1e32e3[_0x542ef8(0x128)],'documentContextContent':_0x1e32e3[_0x542ef8(0x116)],'showDiff':_0x18b2fd,'trimUnchanged':!0x1});await _0xcb3d1f[_0x542ef8(0x14a)]({'parts':_0x3ec8c5,'renderingStrategy':_0x479518,'abortSignal':_0x4200b3});}catch(_0x282b30){if(this[_0x542ef8(0x1c8)](_0x282b30))return;throw _0x282b30;}});this[_0x30886d(0x1aa)]['on'](_0x30886d(0x199),(_0x4c8dd8,_0x1780dc)=>{const _0x5f3b1a=_0x30886d;_0x57cca5[_0x5f3b1a(0xfb)](),_0x154fa6[_0x5f3b1a(0x1b8)](),_0x1a2bc8(_0x1780dc,_0x57cca5)[_0x5f3b1a(0x1ae)](_0x108716=>{const _0x6235ce=_0x5f3b1a;this[_0x6235ce(0x1c8)](_0x108716)||(console[_0x6235ce(0x144)](_0x6235ce(0x135),_0x108716),this[_0x6235ce(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x105),(_0x29926b,_0x232aaf)=>{const _0x1252cf=_0x30886d;_0x1a2bc8(_0x232aaf,_0x57cca5)[_0x1252cf(0x1ae)](_0x257f19=>{const _0x2d85b1=_0x1252cf;this[_0x2d85b1(0x1c8)](_0x257f19)||(console[_0x2d85b1(0x144)](_0x2d85b1(0xec),_0x257f19),this[_0x2d85b1(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x1ca),async()=>{const _0x4e7352=_0x30886d;try{await this[_0x4e7352(0x133)](_0x57cca5,_0x154fa6),this[_0x4e7352(0x1a7)](),await this[_0x4e7352(0x120)][_0x4e7352(0x1ab)];}catch(_0x3ad823){this[_0x4e7352(0x1c8)](_0x3ad823)||(console[_0x4e7352(0x144)](_0x4e7352(0x121),_0x3ad823),this[_0x4e7352(0x111)](_0x2654bf,_0x57cca5));}finally{_0x154fa6[_0x4e7352(0x14c)]();}}),this[_0x30886d(0x1a0)](_0x57cca5,_0x30886d(0x12a),async(_0x17e1c8,{showDiff:_0x2f33c6})=>{const _0x5b73ac=_0x30886d;try{this[_0x5b73ac(0x17f)]=_0x2f33c6;const _0x90c3ec=this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][_0x5b73ac(0x102)]-0x1];_0x90c3ec&&await _0x1a2bc8(_0x90c3ec,_0x57cca5,_0x2f33c6,_0x5b73ac(0x13a));}catch(_0x15df0a){this[_0x5b73ac(0x1c8)](_0x15df0a)||(console[_0x5b73ac(0x144)](_0x5b73ac(0x15f),_0x15df0a),this[_0x5b73ac(0x111)](_0x2654bf,_0x57cca5));}}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x13d),(_0x3362d7,{reply:_0x2aadbb})=>{const _0x5c85c8=_0x30886d,_0x5e3425={'positiveCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x14d)](_0xda5c54=>_0x5c85c8(0x119)===_0xda5c54[_0x5c85c8(0x197)])[_0x5c85c8(0x102)],'totalCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x102)]},_0x38e225=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x10d)],_0x386f9c=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x18f)];_0x386f9c?this[_0x5c85c8(0xee)][_0x5c85c8(0x104)](_0x386f9c,_0x38e225,_0x5e3425):this[_0x5c85c8(0xee)][_0x5c85c8(0x146)](_0x38e225,_0x5e3425);}),this[_0x30886d(0x149)](_0x57cca5,_0x154fa6);try{const _0x14e663=await this[_0x30886d(0x1aa)][_0x30886d(0x11d)]();return this[_0x30886d(0x1a7)](),_0x14e663;}catch(_0x4d1804){if(this[_0x30886d(0x1c8)](_0x4d1804))return;_0x57cca5[_0x30886d(0xfb)](),this[_0x30886d(0x111)](_0x2654bf,_0x57cca5);}}[_0x560db3(0x1bd)](_0x522d91,_0x38ff84,_0x56dc48){const _0x4f8f6a=_0x560db3,_0x3de26f=this[_0x4f8f6a(0x187)];if(_0x56dc48&&!_0x3de26f[_0x4f8f6a(0x161)][_0x4f8f6a(0x163)](_0x4f8f6a(0x117)))throw new _0x159e3f(_0x4f8f6a(0x158),null);const _0x1a5f70=this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x523407),_0x3b6730=this[_0x4f8f6a(0x1aa)],_0x44fb69=this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][_0x4f8f6a(0x102)]-0x1],_0x3d9599=_0x44fb69[_0x4f8f6a(0x128)];_0x44fb69[_0x4f8f6a(0xf3)](0x0,_0x4f8f6a(0x119));let _0x7050f9=_0x24bfd0({'editor':_0x3de26f,'reply':_0x44fb69,'interaction':_0x3b6730,'groups':_0x3d9599,'transform':!0x1,'documentCompare':_0x1a5f70,'documentCompareOptions':{'anchor':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x101)](_0x522d91,0x0),'markDeletions':_0x56dc48}});_0x7050f9=this[_0x4f8f6a(0x12d)](_0x7050f9,_0x38ff84);for(const _0x543e37 of _0x7050f9)this[_0x4f8f6a(0x1a2)](_0x38ff84,_0x543e37,_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x18c)]());const _0xe5316d=_0x3b6730[_0x4f8f6a(0x12b)]()[_0x4f8f6a(0x170)],_0x10cd69=_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x17d)][_0x4f8f6a(0x180)](_0xe5316d),_0x5332d1={'document':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x970c01=_0x249a0d(_0x7050f9,_0x10cd69,_0x5332d1)[_0x4f8f6a(0x162)];_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0xf0)](_0x5a8797=>{const _0x110fee=_0x4f8f6a;if(_0x5a8797[_0x110fee(0x15a)](_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x151)][_0x110fee(0x16c)]),_0x56dc48)_0x3de26f[_0x110fee(0x161)][_0x110fee(0x1cf)](_0x110fee(0x168))[_0x110fee(0x137)](_0x970c01);else{for(const _0x4bef40 of _0x970c01)_0x4bef40[_0x110fee(0x1d0)]=_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x170)],_0x342f4b(_0x3de26f,_0x4bef40),_0x5a8797[_0x110fee(0x16e)][_0x110fee(0x103)](_0x4bef40),_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x122)](_0x4bef40);}}),this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x4f8f6a(0xf5))[_0x4f8f6a(0xe9)]();}[_0x560db3(0x12d)](_0x364130,_0x5a76fe){const _0x376620=_0x560db3;return _0x364130[_0x376620(0x14d)](_0x4be65e=>{const _0x20fc58=_0x376620;if(_0x20fc58(0x1b3)==_0x4be65e[_0x20fc58(0x1b0)]){const _0x102f0f=_0x4be65e[_0x20fc58(0x166)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x102f0f);}if(_0x4be65e[_0x20fc58(0x1b0)][_0x20fc58(0x1ac)](_0x20fc58(0x1ce))>-0x1){const _0x3cc92d=_0x4be65e[_0x20fc58(0x112)][_0x20fc58(0x11d)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x3cc92d);}return!0x0;});}[_0x560db3(0x1a2)](_0x424aab,_0x7935f4,_0x51938f){const _0x433aec=_0x560db3,_0x24d00d=_0x7935f4[_0x433aec(0xf8)]();for(const _0x1aa9a3 in _0x7935f4){const _0x16c272=_0x7935f4[_0x1aa9a3];_0x16c272 instanceof _0x1fbe8e?_0x7935f4[_0x1aa9a3]=new _0x1fbe8e(_0x5c9d59(_0x16c272[_0x433aec(0x11d)]),_0x5c9d59(_0x16c272[_0x433aec(0x176)])):_0x16c272 instanceof _0x5ef448&&(_0x7935f4[_0x1aa9a3]=_0x5c9d59(_0x16c272));}if([_0x433aec(0x118),_0x433aec(0x13c),_0x433aec(0x194),_0x433aec(0x1b7),_0x433aec(0x10a),_0x433aec(0x1c9)][_0x433aec(0x1a6)](_0x24d00d[_0x433aec(0x1b0)])){if(_0x24d00d[_0x433aec(0x17b)]=!0x1,_0x24d00d[_0x433aec(0x1d0)]=null,_0x433aec(0x194)==_0x24d00d[_0x433aec(0x1b0)]){const _0x2e347d=_0x24d00d[_0x433aec(0x195)],_0x28a016=_0x24d00d[_0x433aec(0x191)];new _0x2f80fb(_0x2e347d,_0x28a016)[_0x433aec(0x1ad)]();}else _0x24d00d[_0x433aec(0x1ad)]();}function _0x5c9d59(_0x26a6db){const _0x490a1e=_0x433aec;if(_0x490a1e(0x178)==_0x26a6db[_0x490a1e(0x1c3)][_0x490a1e(0x1c6)])return _0x26a6db;const _0x42292e=[];let _0x268c17=_0x26a6db[_0x490a1e(0x1c3)];for(let _0x35c874=0x0;_0x35c874<_0x26a6db[_0x490a1e(0x106)][_0x490a1e(0x102)];_0x35c874++){const _0x39bdc2=_0x424aab[_0x490a1e(0x1cf)](_0x268c17)||0x0;_0x42292e[_0x35c874]=_0x26a6db[_0x490a1e(0x106)][_0x35c874]+_0x39bdc2,_0x268c17=_0x268c17[_0x490a1e(0x126)](_0x26a6db[_0x490a1e(0x106)][_0x35c874]);}return new _0x5ef448(_0x51938f,_0x42292e,_0x26a6db[_0x490a1e(0x1a4)]);}}[_0x560db3(0x10e)](){const _0xf740e3=_0x560db3;if(!this[_0xf740e3(0x17e)])return;this[_0xf740e3(0xff)][_0xf740e3(0x102)]>0x0&&this[_0xf740e3(0x19e)](),this[_0xf740e3(0x124)]=0x0,this[_0xf740e3(0x17f)]=!0x1;const {action:_0x505b2c,content:_0x4f02fc,version:_0xf6c7d9,mainView:_0x2cab65,aiBalloon:_0x1d3369}=this[_0xf740e3(0x17e)];_0x2cab65[_0xf740e3(0x181)]=!0x1,_0x2cab65[_0xf740e3(0xe6)](),this[_0xf740e3(0x1b4)](_0x2cab65,_0x1d3369);const _0x63f64a=_0x2cab65;_0x63f64a[_0xf740e3(0x193)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)][_0xf740e3(0x134)]({'isOn':!0x1,'icon':_0x1fa255}),this[_0xf740e3(0x18a)](_0x2cab65),_0x2cab65[_0xf740e3(0x179)](),this[_0xf740e3(0x1a7)](),this[_0xf740e3(0x15e)](_0x2cab65),this[_0xf740e3(0x177)](_0x4f02fc,_0xf6c7d9,_0x2cab65,_0x1d3369,_0x505b2c)[_0xf740e3(0x1ae)](_0x20c73f=>{const _0x105e05=_0xf740e3;this[_0x105e05(0x1c8)](_0x20c73f)||console[_0x105e05(0x144)](_0x105e05(0x1be),_0x20c73f);});}[_0x560db3(0x18a)](_0x52a897){const _0x4f3d25=_0x560db3,_0x4a8e31=_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x145)];for(;_0x4a8e31[_0x4f3d25(0x102)]>0x0;)_0x4a8e31[_0x4f3d25(0x194)](_0x4a8e31[_0x4f3d25(0x164)]);_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x154)]=!0x1;}[_0x560db3(0x1c8)](_0x354c91){const _0x4611af=_0x560db3;return!!_0x354c91[_0x4611af(0x16f)]&&_0x354c91[_0x4611af(0x16f)][_0x4611af(0x10f)](_0x4611af(0x143));}[_0x560db3(0x1c5)](){const _0x38951c=_0x560db3;this[_0x38951c(0xff)]=[],this[_0x38951c(0x17e)]=void 0x0,this[_0x38951c(0x124)]=0x0,this[_0x38951c(0x1a7)]();}[_0x560db3(0x19e)](){const _0x2b3495=_0x560db3;this[_0x2b3495(0x1aa)]&&this[_0x2b3495(0x1aa)][_0x2b3495(0x15c)](),this[_0x2b3495(0x120)][_0x2b3495(0x147)](),this[_0x2b3495(0x184)]=!0x1,this[_0x2b3495(0x17e)]&&this[_0x2b3495(0x17e)][_0x2b3495(0xf9)][_0x2b3495(0x14c)]();}[_0x560db3(0x1cd)](){const _0x17b757=_0x560db3,_0x37e370=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0xd735f5=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x22d912=new _0x2a0efa(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x5189ed=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]);_0x37e370[_0x17b757(0x134)]({'icon':_0x4b2471,'label':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x11c)),'tooltip':!0x0,'class':_0x17b757(0x1b6)}),_0xd735f5[_0x17b757(0x134)]({'icon':_0x561973,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x1bb)),'class':_0x17b757(0x1ba)}),_0x22d912[_0x17b757(0x160)]({'tag':_0x17b757(0x155),'attributes':{'class':[_0x17b757(0x188)]},'children':[_0x17b757(0x15b)]}),_0x5189ed[_0x17b757(0x134)]({'icon':_0x49f0b5,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x14e)),'class':_0x17b757(0x1b2)}),_0x37e370[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x1feae3=>!_0x1feae3),_0x37e370['on'](_0x17b757(0x165),()=>{const _0x3f860c=_0x17b757;this[_0x3f860c(0x10e)]();}),_0xd735f5[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x4a8efd=>!_0x4a8efd),_0xd735f5['on'](_0x17b757(0x165),()=>{const _0x11a201=_0x17b757;this[_0x11a201(0x157)]();}),_0x5189ed[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x5f1b93=>!_0x5f1b93),_0x5189ed['on'](_0x17b757(0x165),()=>{const _0x176872=_0x17b757;this[_0x176872(0x136)]();}),this[_0x17b757(0x19d)]=_0xd735f5,this[_0x17b757(0x10c)]=_0x22d912,this[_0x17b757(0xf7)]=_0x5189ed,this[_0x17b757(0x108)][_0x17b757(0x1bc)](_0x37e370);}[_0x560db3(0x157)](){const _0x3aaacf=_0x560db3,_0x2d3182=this[_0x3aaacf(0xff)][_0x3aaacf(0x102)];this[_0x3aaacf(0x124)]<_0x2d3182-0x1&&this[_0x3aaacf(0x17c)](this[_0x3aaacf(0x124)]+0x1);}[_0x560db3(0x136)](){const _0x407e26=_0x560db3;this[_0x407e26(0x124)]>0x0&&this[_0x407e26(0x17c)](this[_0x407e26(0x124)]-0x1);}async[_0x560db3(0x17c)](_0x2248ae){const _0x430b8c=_0x560db3;if(!this[_0x430b8c(0x17e)])return;this[_0x430b8c(0x124)]=_0x2248ae;const {mainView:_0x1bc0d8}=this[_0x430b8c(0x17e)],_0x235c89=this[_0x430b8c(0xff)][this[_0x430b8c(0xff)][_0x430b8c(0x102)]-0x1-this[_0x430b8c(0x124)]];if(!_0x235c89)return;if(_0x235c89[_0x430b8c(0xea)])return this[_0x430b8c(0x111)](_0x235c89,_0x1bc0d8),void this[_0x430b8c(0x1a7)]();if(!_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)])return;_0x1bc0d8[_0x430b8c(0xe6)](),this[_0x430b8c(0x17e)]&&this[_0x430b8c(0x1b4)](_0x1bc0d8,this[_0x430b8c(0x17e)][_0x430b8c(0xf9)]);const _0x3a415a=_0x235c89[_0x430b8c(0x16a)][_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)]-0x1];if(_0x3a415a){const _0x30da4a=this[_0x430b8c(0x187)];this[_0x430b8c(0x18a)](_0x1bc0d8);try{const _0x6a392a=_0x44374e({'editor':_0x30da4a,'changeGroups':_0x3a415a[_0x430b8c(0x128)],'documentContextContent':_0x3a415a[_0x430b8c(0x116)],'showDiff':this[_0x430b8c(0x17f)],'trimUnchanged':!0x1});this[_0x430b8c(0x18a)](_0x1bc0d8),await new Promise(_0x204129=>setTimeout(_0x204129,0x32)),await _0x1bc0d8[_0x430b8c(0x14a)]({'parts':_0x6a392a,'renderingStrategy':_0x430b8c(0x13a),'abortSignal':new AbortController()[_0x430b8c(0x12e)]});}catch(_0x5b69ad){this[_0x430b8c(0x1c8)](_0x5b69ad)||console[_0x430b8c(0x144)](_0x430b8c(0x1c0),_0x5b69ad);}}this[_0x430b8c(0x1a7)]();}[_0x560db3(0x1a7)](){const _0x4201f3=_0x560db3;if(!this[_0x4201f3(0x19d)]||!this[_0x4201f3(0x10c)]||!this[_0x4201f3(0xf7)])return;const _0x417048=this[_0x4201f3(0xff)][_0x4201f3(0x102)],_0x45685d=_0x417048>0x1,_0x5ed0f2=this[_0x4201f3(0x17e)]?.[_0x4201f3(0x172)];if(_0x45685d){this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)]||(this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x0);const _0x5c1370=_0x417048-this[_0x4201f3(0x124)];this[_0x4201f3(0x10c)][_0x4201f3(0xfc)]&&(this[_0x4201f3(0x10c)][_0x4201f3(0xfc)][_0x4201f3(0xe8)]=_0x5c1370+'/'+_0x417048),this[_0x4201f3(0x19d)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]<_0x417048-0x1,this[_0x4201f3(0xf7)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]>0x0;}else(this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)])&&(this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x1);}[_0x560db3(0x149)](_0x22ffd3,_0x2f3460){const _0x543293=_0x560db3;_0x22ffd3[_0x543293(0x159)](),_0x2f3460[_0x543293(0x13b)][_0x543293(0x159)](),this[_0x543293(0x184)]=!0x0;}async[_0x560db3(0x111)](_0x4d120d,_0x52e830){const _0x3f0ee8=_0x560db3,_0x1dae51=_0x45d4d1(this[_0x3f0ee8(0x187)][_0x3f0ee8(0x1cb)],_0x3f0ee8(0x10b));_0x52e830[_0x3f0ee8(0x19a)](_0x1dae51),_0x4d120d[_0x3f0ee8(0xea)]=!0x0,await this[_0x3f0ee8(0x120)][_0x3f0ee8(0x1ab)],_0x52e830[_0x3f0ee8(0x169)](),this[_0x3f0ee8(0x17e)]?.[_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)]&&(this[_0x3f0ee8(0x17e)][_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)][_0x3f0ee8(0x192)]=!0x0);}[_0x560db3(0x1b4)](_0x457fcb,_0x392fee){const _0x358620=_0x560db3;_0x457fcb[_0x358620(0x1a9)](),_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)]&&(_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)][_0x358620(0x192)]=!0x1);}async[_0x560db3(0x133)](_0x27828a,_0x6213c2){const _0x12c804=_0x560db3;await this[_0x12c804(0x120)][_0x12c804(0x1ab)],this[_0x12c804(0x184)]=!0x1,_0x27828a[_0x12c804(0xfd)](),_0x6213c2[_0x12c804(0x13b)][_0x12c804(0xfd)]();}[_0x560db3(0x127)](){const _0x569595=_0x560db3;this[_0x569595(0x108)][_0x569595(0x1b5)](_0x59014b=>{const _0x1216c7=_0x569595;_0x1216c7(0x182)in _0x59014b&&(_0x59014b[_0x1216c7(0x182)]=!0x1);});}}
23
+ const _0x17feb6=_0x3587;(function(_0x1e5206,_0x5ad71e){const _0x3d10dc=_0x3587,_0x2cad30=_0x1e5206();while(!![]){try{const _0x3b60bc=parseInt(_0x3d10dc(0x16b))/0x1*(parseInt(_0x3d10dc(0x1a8))/0x2)+parseInt(_0x3d10dc(0x168))/0x3+-parseInt(_0x3d10dc(0x165))/0x4*(parseInt(_0x3d10dc(0xf4))/0x5)+-parseInt(_0x3d10dc(0x1d4))/0x6+-parseInt(_0x3d10dc(0x1c2))/0x7*(-parseInt(_0x3d10dc(0x1ab))/0x8)+-parseInt(_0x3d10dc(0x12b))/0x9+parseInt(_0x3d10dc(0x167))/0xa;if(_0x3b60bc===_0x5ad71e)break;else _0x2cad30['push'](_0x2cad30['shift']());}catch(_0x41f79e){_0x2cad30['push'](_0x2cad30['shift']());}}}(_0x5392,0xb7702));import{Plugin as _0x5d78e2}from'ckeditor5/src/core.js';import{AIConnector as _0x523ff8}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xf748d2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1947cf,ButtonView as _0x2b05ed,ViewCollection as _0x1a26e2,View as _0x456041,BodyCollection as _0x1ba3bb}from'ckeditor5/src/ui.js';function _0x5392(){const _0x396009=['focus','2627224KrnjOY','element','2436970QsAGQH','2612859PGJYvx','nodeAfter','Error\x20updating\x20content\x20during\x20navigation:','2462JjTnQw','interactionFinished','ck-ai-interaction-counter','history','indexOf','stopListening','execute','1/1','rename','first','isEnabled','replyCreated','_isNavigationCounterInView','_updateNavigationUI','_interactionParams','Error\x20updating\x20content\x20in\x20replyContentUpdated:','stop','parent','AI_ACTIONS_GENERIC_ERROR','rejected','path','position','_getExecuteDataRegular','TableSelection','balloonView','start','showChangesButton','upsertCustomAIActionRating','_execute','accepted','_clearInteractionHistory','selectionRemoved','map','hasPendingParts','AIActions','Error\x20updating\x20content\x20in\x20replyCreated:','mainView','TrackChanges','showLoader','config','processor','showError','open','documentContextContent','document','_filterOperationsOutsideRange','replies','_navigateToNext','range','getSelectedContent','replyContentUpdated','_isNavigationPreviousButtonInView','streaming','getDocumentContext','listenTo','icon','miniToolbarView','AIConnector','sourcePosition','clearErrorState','get','1172tXigwc','attachToDom','executeAction','16haUbGL','type','applySuggestion','toggleSuggestionDisplayMode','stopAutoScroll','random','pending','_createInteraction','AI_ACTIONS_TRY_AGAIN','createRange','clearLoading','removeNavigationItem','addOperation','abort','getAncestors','aiBalloon','isPremiumPlugin','ai-request-aborted','_promiseQueue','editor','getRoot','message','rootName','2232216MbIZTU','batch','_getExecuteDataInTable','_disableCustomViews','_setupCustomViews','catch','set','setChangeGroupState','getRanges','documentFragment','pluginName','plugins','_executeAction','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','toData','Error\x20refreshing\x20interaction:','getSelectedBlocks','locale','1900482QjykWO','modelToViewWithIds','_applyChanges','_interaction','_customViews','add','setTemplate','push','_applyOperationsAsSuggestions','isDocumentOperation','baseVersion','_clearErrorState','5ExBklS','length','clone','ck-ai-navigation-button\x20ck-ai-next-button','changeGroups','_navigationNextButton','_isNavigationNextButtonInView','setErrorState','selection','model','_refreshInteraction','_interactions','stickiness','createPositionAfter','updateContent','_anchorOperation','destroy','isOfficialPlugin','isBusy','_navigationPreviousButton','ai-no-track-changes','_setLoadingState','has','getSelectedTableCells','enqueue','_clearSuggestionContent','hideLoader','ck-ai-custom-action-button','requires','ai.availableReplyActions','_aiConnector','insertSuggestion','reinsert','getCommonAncestor','actionCallId','_children','change','hideError','includes','howMany','end','bodyView','signal','startAutoScroll','_clone','getFirstRange','startsWith','static','AI_ACTIONS_PREVIOUS_INTERACTION','_appendChild','_setErrorState','textContent','_displayInteractionAtIndex','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','applyOperation','13232187CoUjpy','remove','_navigationCounter','_balloonShowDiff','AIBalloon','filter','AI_ACTIONS_NEXT_INTERACTION','nextSibling','getLimitElement','upsertAIActionRating','_currentInteractionIndex','_stopInteraction','Attribute','schema','isCollapsed','_clearLoadingState','forEach','ck-ai-navigation-button\x20ck-ai-previous-button','queueEmptyPromise','toolbar','getChild','state','dialogClosed','areChangesVisible','getChildAtOffset','merge','stopInteraction','replyChangeGroupStateUpdated','getSelectionAsFragment','setLoading','_bodyCollection','operationsA','_wrapWithCommonAncestors','close','detachFromDom','isLoading','actionName','move','slice','insert','bind','root','version','addNavigationItem','_navigateToPrevious','TrackChangesEditing','setSelection','createPositionBefore','error','hasError','getOperations','$graveyard','_isAbortError','createPositionAt','span','split','data'];_0x5392=function(){return _0x396009;};return _0x5392();}import{AIEditing as _0x3a06a5}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5623ed}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x293dbe,first as _0x5a0931}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3df9ff,IconRefresh as _0x4dc9e4,IconNextArrow as _0x586592,IconPreviousArrow as _0x47d573,IconShowChangesOff as _0x5a480a}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x28e18e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x46eaf0}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x52b860}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x59b572}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x380023}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3342f6,getOperationsFromReply as _0x1bf5ef}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5dde1e,ModelRange as _0x1f6cab,ModelPosition as _0x3e0772,_DetachOperation as _0x27c19c,transformOperationSets as _0x556fc3}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5a32bd}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3587(_0x4409c5,_0x103d79){const _0x5392e5=_0x5392();return _0x3587=function(_0x3587be,_0x3c130e){_0x3587be=_0x3587be-0xe9;let _0x34dba6=_0x5392e5[_0x3587be];return _0x34dba6;},_0x3587(_0x4409c5,_0x103d79);}export class AIActions extends _0x5d78e2{static get[_0x17feb6(0x110)](){return[_0x523ff8,_0x1947cf,_0x3a06a5,_0x28e18e,_0x380023];}static get[_0x17feb6(0x1cc)](){const _0x4f8309=_0x17feb6;return _0x4f8309(0x18d);}static get[_0x17feb6(0x105)](){return!0x0;}static get[_0x17feb6(0x1bb)](){return!0x0;}[_0x17feb6(0x112)];[_0x17feb6(0xff)]=[];[_0x17feb6(0x135)]=0x0;[_0x17feb6(0x179)];[_0x17feb6(0x12e)]=!0x1;[_0x17feb6(0xec)]=new _0x1a26e2();[_0x17feb6(0x107)];[_0x17feb6(0x12d)];[_0x17feb6(0x177)]=!0x1;[_0x17feb6(0xf9)];[_0x17feb6(0x19e)]=!0x1;[_0x17feb6(0xfa)]=!0x1;[_0x17feb6(0x1bd)];[_0x17feb6(0x149)];get[_0x17feb6(0xeb)](){const _0x2c9756=_0x17feb6;return this[_0x2c9756(0xff)][this[_0x2c9756(0xff)][_0x2c9756(0xf5)]-0x1];}constructor(_0x18206c){const _0x37b327=_0x17feb6;super(_0x18206c),this[_0x37b327(0x149)]=new _0x1ba3bb(this[_0x37b327(0x1be)][_0x37b327(0x1d3)]),this[_0x37b327(0x149)][_0x37b327(0x1a9)](),this[_0x37b327(0x112)]=this[_0x37b327(0x1be)][_0x37b327(0x1cd)][_0x37b327(0x1a7)](_0x37b327(0x1a4)),this[_0x37b327(0x1c8)](_0x37b327(0x106),!0x1),this[_0x37b327(0x1bd)]=new _0x46eaf0(),this[_0x37b327(0x1c6)]();}[_0x17feb6(0x145)](){const _0x52e3d7=_0x17feb6;this[_0x52e3d7(0x136)]();}async[_0x17feb6(0x1aa)](_0x15fce0,_0x4e1f28,_0x1a4906){const _0x4f361d=_0x17feb6;if(this[_0x4f361d(0x1be)][_0x4f361d(0x1cd)][_0x4f361d(0x10a)](_0x4f361d(0x182))){if(this[_0x4f361d(0x1be)][_0x4f361d(0x1cd)][_0x4f361d(0x1a7)](_0x4f361d(0x182))[_0x4f361d(0x10b)]()){const {modelFragment:_0x1fc45b,anchorData:_0x2769aa}=this[_0x4f361d(0x1c4)]();return this[_0x4f361d(0x1ce)](_0x15fce0,_0x1fc45b,_0x2769aa,_0x4e1f28,_0x1a4906);}}const {modelFragment:_0x1d8f98,anchorData:_0x4a4385}=this[_0x4f361d(0x181)]();return this[_0x4f361d(0x1ce)](_0x15fce0,_0x1d8f98,_0x4a4385,_0x4e1f28,_0x1a4906);}[_0x17feb6(0x104)](){const _0x3ae95e=_0x17feb6;this[_0x3ae95e(0x149)][_0x3ae95e(0x14d)](),super[_0x3ae95e(0x104)]();}[_0x17feb6(0x181)](){const _0x171d2d=_0x17feb6,_0x115fb4=this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x197)][_0x171d2d(0xfc)];if(_0x115fb4[_0x171d2d(0x139)]){const _0x2d6f64=_0x5a0931(_0x115fb4[_0x171d2d(0x1d2)]())||this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x138)][_0x171d2d(0x133)](_0x115fb4);this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x118)](_0x3bc7a1=>{const _0x3ed17c=_0x171d2d;_0x3bc7a1[_0x3ed17c(0x159)](_0x2d6f64,'in');});}const _0x36ab41=_0x115fb4[_0x171d2d(0x121)](),_0x5c68fa=this[_0x171d2d(0x14b)](this[_0x171d2d(0x1be)][_0x171d2d(0xfd)][_0x171d2d(0x19c)](_0x115fb4),_0x36ab41[_0x171d2d(0x184)],_0x36ab41[_0x171d2d(0x11c)]),_0x4066dc=_0x115fb4[_0x171d2d(0x121)]()[_0x171d2d(0x184)],_0x5c3c70=new Map();let _0x2c9277=_0x5c68fa;for(let _0x230b9d=0x0;_0x230b9d<_0x4066dc[_0x171d2d(0x17f)][_0x171d2d(0xf5)];_0x230b9d++)_0x5c3c70[_0x171d2d(0x1c8)](_0x2c9277,_0x4066dc[_0x171d2d(0x17f)][_0x230b9d]),_0x2c9277=_0x2c9277[_0x171d2d(0x13f)](0x0);return{'modelFragment':_0x5c68fa,'anchorData':_0x5c3c70};}[_0x17feb6(0x1c4)](){const _0x1cc293=_0x17feb6,_0xb655bd=this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x197)][_0x1cc293(0xfc)],_0x585d02=this[_0x1cc293(0x1be)][_0x1cc293(0x1cd)][_0x1cc293(0x1a7)](_0x1cc293(0x182))[_0x1cc293(0x147)](),_0x46de81=_0xb655bd[_0x1cc293(0x121)]()[_0x1cc293(0x184)][_0x1cc293(0x17c)][_0x1cc293(0x17c)],_0x4b0324=this[_0x1cc293(0x14b)](_0x585d02,this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x15a)](_0x46de81),this[_0x1cc293(0x1be)][_0x1cc293(0xfd)][_0x1cc293(0x101)](_0x46de81)),_0x50d07c=_0xb655bd[_0x1cc293(0x121)]()[_0x1cc293(0x184)],_0x26d051=new Map();let _0x3c1099=_0x4b0324;for(let _0x1414f2=0x0;_0x1414f2<_0x50d07c[_0x1cc293(0x17f)][_0x1cc293(0xf5)];_0x1414f2++)if(_0x26d051[_0x1cc293(0x1c8)](_0x3c1099,_0x50d07c[_0x1cc293(0x17f)][_0x1414f2]),_0x1414f2<_0x50d07c[_0x1cc293(0x17f)][_0x1cc293(0xf5)]-0x1)_0x3c1099=_0x3c1099[_0x1cc293(0x13f)](0x0);else{let _0x3799cb=_0x3c1099[_0x1cc293(0x132)];for(;_0x3799cb;)_0x26d051[_0x1cc293(0x1c8)](_0x3799cb,_0x50d07c[_0x1cc293(0x17f)][_0x1414f2]),_0x3799cb=_0x3799cb[_0x1cc293(0x132)];}return{'modelFragment':_0x4b0324,'anchorData':_0x26d051};}[_0x17feb6(0x1ce)](_0x30001e,_0x1a8030,_0x408fba,_0x4a6243,_0x4c847a){const _0x2b7b30=_0x17feb6,_0x633e18=this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x1a7)](_0x3a06a5),_0x486feb=this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x1a7)](_0x28e18e),_0x2ee27d=this[_0x2b7b30(0x1be)][_0x2b7b30(0xfd)][_0x2b7b30(0x197)][_0x2b7b30(0xfc)],_0x495da8=_0x633e18[_0x2b7b30(0xe9)](_0x1a8030),_0x317837=this[_0x2b7b30(0x1be)][_0x2b7b30(0x163)][_0x2b7b30(0x193)][_0x2b7b30(0x1d0)](_0x495da8),_0x1c0a29=this[_0x2b7b30(0x1be)][_0x2b7b30(0xfd)][_0x2b7b30(0x197)][_0x2b7b30(0x155)],_0x30a51f=[..._0x2ee27d[_0x2b7b30(0x1ca)]()];let _0x406475=this[_0x2b7b30(0x1be)][_0x2b7b30(0x192)][_0x2b7b30(0x1a7)](_0x2b7b30(0x111))||[..._0x5a32bd];this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x10a)](_0x2b7b30(0x190))||(_0x406475=_0x406475[_0x2b7b30(0x130)](_0x24393a=>_0x2b7b30(0x113)!=_0x24393a));const _0x51ddc1=new _0xf748d2(this[_0x2b7b30(0x1be)][_0x2b7b30(0x1d3)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2b7b30(0x1a2),'customView':this[_0x2b7b30(0xec)]},'showUnchangedParts':!0x0,'availableActions':_0x406475},this[_0x2b7b30(0x149)]);return _0x486feb[_0x2b7b30(0x195)]({'index':0x3e8*Math[_0x2b7b30(0x1b0)]()%0x3e8,'title':_0x4a6243,'icon':_0x4c847a||_0x3df9ff,'mainView':_0x51ddc1,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x2b7b30(0x1be)][_0x2b7b30(0x1cd)][_0x2b7b30(0x10a)](_0x2b7b30(0x190)),'ranges':_0x30a51f}),this[_0x2b7b30(0x109)](_0x51ddc1,_0x486feb),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x1ad),()=>{const _0x2000fb=_0x2b7b30;this[_0x2000fb(0xea)](_0x1a8030,_0x408fba,!0x1);}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x113),()=>{const _0x25fc08=_0x2b7b30;this[_0x25fc08(0xea)](_0x1a8030,_0x408fba,!0x0);}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x18a),()=>{const _0x1d1a56=_0x2b7b30;this[_0x1d1a56(0x136)](),this[_0x1d1a56(0x1c5)]();}),this[_0x2b7b30(0x1a1)](_0x486feb,_0x2b7b30(0x141),()=>{const _0x396a82=_0x2b7b30;if(this[_0x396a82(0xeb)]&&this[_0x396a82(0xeb)][_0x396a82(0x199)][_0x396a82(0xf5)]>0x0){const _0x1493c0=this[_0x396a82(0xeb)][_0x396a82(0x199)][this[_0x396a82(0xeb)][_0x396a82(0x199)][_0x396a82(0xf5)]-0x1],_0x304a81=_0x1493c0[_0x396a82(0xf8)][0x0];_0x304a81&&_0x396a82(0x1b1)===_0x304a81[_0x396a82(0x140)]&&_0x1493c0[_0x396a82(0x1c9)](0x0,_0x396a82(0x17e));}this[_0x396a82(0x136)](),this[_0x396a82(0x189)](),this[_0x396a82(0x170)](_0x486feb);}),this[_0x2b7b30(0x1b2)](_0x317837,_0x1c0a29,_0x51ddc1,_0x486feb,_0x30001e);}[_0x17feb6(0x14b)](_0x4e5ac6,_0x2a6d2f,_0x24fffa){const _0x5a72b9=_0x17feb6,_0x209292=this[_0x5a72b9(0x1be)][_0x5a72b9(0xfd)][_0x5a72b9(0x1b4)](_0x2a6d2f,_0x24fffa)[_0x5a72b9(0x115)](),_0x105d87=_0x209292['is'](_0x5a72b9(0x1cb))?[]:_0x209292[_0x5a72b9(0x1b9)]({'includeSelf':!0x0})[_0x5a72b9(0x151)](0x1);if(_0x105d87[_0x5a72b9(0xf5)]){const _0xdbcda1=_0x105d87[_0x5a72b9(0x18b)](_0x3425b1=>_0x3425b1[_0x5a72b9(0x120)](!0x1));for(let _0x542307=0x1;_0x542307<_0xdbcda1[_0x5a72b9(0xf5)];_0x542307++)_0xdbcda1[_0x542307-0x1][_0x5a72b9(0x125)](_0xdbcda1[_0x542307]);return _0xdbcda1[_0xdbcda1[_0x5a72b9(0xf5)]-0x1][_0x5a72b9(0x125)](_0x4e5ac6),new _0x5dde1e(_0xdbcda1[0x0]);}return _0x4e5ac6;}async[_0x17feb6(0x1b2)](_0x1cc82c,_0x41a721,_0x36b2ec,_0x63b659,_0x318c30){const _0x504b1b=_0x17feb6,_0x1cf0e8=this[_0x504b1b(0x1be)];this[_0x504b1b(0x179)]={'action':_0x318c30,'content':_0x1cc82c,'version':_0x41a721,'mainView':_0x36b2ec,'aiBalloon':_0x63b659};const _0x5eed5b=new _0x5623ed({'connector':this[_0x504b1b(0x112)],'editor':_0x1cf0e8,'content':_0x1cc82c,'version':_0x41a721,..._0x318c30});this[_0x504b1b(0xff)][_0x504b1b(0xef)](_0x5eed5b),_0x36b2ec[_0x504b1b(0x119)]();const _0x3e8003=(_0xee4353,_0x4706fd,_0x9930e6=!0x1,_0x4c6dea=_0x504b1b(0x19f))=>this[_0x504b1b(0x1bd)][_0x504b1b(0x10c)](async _0x21aa8e=>{const _0x4d5ea8=_0x504b1b;try{const _0x23e045=_0x59b572({'editor':_0x1cf0e8,'changeGroups':_0xee4353[_0x4d5ea8(0xf8)],'documentContextContent':_0xee4353[_0x4d5ea8(0x196)],'showDiff':_0x9930e6,'trimUnchanged':!0x1});await _0x4706fd[_0x4d5ea8(0x102)]({'parts':_0x23e045,'renderingStrategy':_0x4c6dea,'abortSignal':_0x21aa8e});}catch(_0x2323f5){if(this[_0x4d5ea8(0x15f)](_0x2323f5))return;throw _0x2323f5;}});this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x176),(_0x50ccf1,_0x3a8347)=>{const _0x5828eb=_0x504b1b;_0x36b2ec[_0x5828eb(0x10e)](),_0x63b659[_0x5828eb(0x11f)](),_0x3e8003(_0x3a8347,_0x36b2ec)[_0x5828eb(0x1c7)](_0x39105a=>{const _0xd20632=_0x5828eb;this[_0xd20632(0x15f)](_0x39105a)||(console[_0xd20632(0x15b)](_0xd20632(0x18e),_0x39105a),this[_0xd20632(0x126)](_0x5eed5b,_0x36b2ec));});}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x19d),(_0x3a75d3,_0x27810c)=>{const _0x35ea63=_0x504b1b;_0x3e8003(_0x27810c,_0x36b2ec)[_0x35ea63(0x1c7)](_0x5f2302=>{const _0x29f271=_0x35ea63;this[_0x29f271(0x15f)](_0x5f2302)||(console[_0x29f271(0x15b)](_0x29f271(0x17a),_0x5f2302),this[_0x29f271(0x126)](_0x5eed5b,_0x36b2ec));});}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x16c),async()=>{const _0x82618a=_0x504b1b;try{await this[_0x82618a(0x13a)](_0x36b2ec,_0x63b659),this[_0x82618a(0x178)](),await this[_0x82618a(0x1bd)][_0x82618a(0x13d)];}catch(_0x5512d1){this[_0x82618a(0x15f)](_0x5512d1)||(console[_0x82618a(0x15b)](_0x82618a(0x1cf),_0x5512d1),this[_0x82618a(0x126)](_0x5eed5b,_0x36b2ec));}finally{_0x63b659[_0x82618a(0x1af)]();}}),this[_0x504b1b(0x1a1)](_0x36b2ec,_0x504b1b(0x1ae),async(_0x2396f4,{showDiff:_0x18a34f})=>{const _0x323600=_0x504b1b;try{this[_0x323600(0x12e)]=_0x18a34f;const _0x5c00b8=this[_0x323600(0xeb)][_0x323600(0x199)][this[_0x323600(0xeb)][_0x323600(0x199)][_0x323600(0xf5)]-0x1];_0x5c00b8&&await _0x3e8003(_0x5c00b8,_0x36b2ec,_0x18a34f,_0x323600(0x123));}catch(_0x1693af){this[_0x323600(0x15f)](_0x1693af)||(console[_0x323600(0x15b)](_0x323600(0x129),_0x1693af),this[_0x323600(0x126)](_0x5eed5b,_0x36b2ec));}}),this[_0x504b1b(0xeb)]['on'](_0x504b1b(0x146),(_0x845bff,{reply:_0x2e92a1})=>{const _0x132f86=_0x504b1b,_0x48d452={'positiveCount':_0x2e92a1[_0x132f86(0xf8)][_0x132f86(0x130)](_0x5a65fb=>_0x132f86(0x188)===_0x5a65fb[_0x132f86(0x140)])[_0x132f86(0xf5)],'totalCount':_0x2e92a1[_0x132f86(0xf8)][_0x132f86(0xf5)]},_0x3e3c9a=this[_0x132f86(0xeb)][_0x132f86(0x116)],_0xf611b5=this[_0x132f86(0xeb)][_0x132f86(0x14f)];_0xf611b5?this[_0x132f86(0x112)][_0x132f86(0x134)](_0xf611b5,_0x3e3c9a,_0x48d452):this[_0x132f86(0x112)][_0x132f86(0x186)](_0x3e3c9a,_0x48d452);}),this[_0x504b1b(0x109)](_0x36b2ec,_0x63b659);try{const _0x27e9f8=await this[_0x504b1b(0xeb)][_0x504b1b(0x184)]();return this[_0x504b1b(0x178)](),_0x27e9f8;}catch(_0xd87731){if(this[_0x504b1b(0x15f)](_0xd87731))return;_0x36b2ec[_0x504b1b(0x10e)](),this[_0x504b1b(0x126)](_0x5eed5b,_0x36b2ec);}}[_0x17feb6(0xea)](_0x5e079f,_0xe35a72,_0x4f4dc4){const _0x1b1471=_0x17feb6,_0x2ada70=this[_0x1b1471(0x1be)];if(_0x4f4dc4&&!_0x2ada70[_0x1b1471(0x1cd)][_0x1b1471(0x10a)](_0x1b1471(0x190)))throw new _0x293dbe(_0x1b1471(0x108),null);const _0x290d5e=this[_0x1b1471(0x1be)][_0x1b1471(0x1cd)][_0x1b1471(0x1a7)](_0x380023),_0x40718b=this[_0x1b1471(0xeb)],_0x1feced=this[_0x1b1471(0xeb)][_0x1b1471(0x199)][this[_0x1b1471(0xeb)][_0x1b1471(0x199)][_0x1b1471(0xf5)]-0x1],_0x1b36fd=_0x1feced[_0x1b1471(0xf8)];_0x1feced[_0x1b1471(0x1c9)](0x0,_0x1b1471(0x188));let _0x5dbee2=_0x1bf5ef({'editor':_0x2ada70,'reply':_0x1feced,'interaction':_0x40718b,'groups':_0x1b36fd,'transform':!0x1,'documentCompare':_0x290d5e,'documentCompareOptions':{'anchor':_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x160)](_0x5e079f,0x0),'markDeletions':_0x4f4dc4}});_0x5dbee2=this[_0x1b1471(0x198)](_0x5dbee2,_0xe35a72);for(const _0x8880fd of _0x5dbee2)this[_0x1b1471(0x103)](_0xe35a72,_0x8880fd,_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)][_0x1b1471(0x1bf)]());const _0x314fa3=_0x40718b[_0x1b1471(0x1a0)]()[_0x1b1471(0x155)],_0x307064=_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)][_0x1b1471(0x16e)][_0x1b1471(0x15d)](_0x314fa3),_0xe96dd9={'document':_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x197)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3b0c21=_0x556fc3(_0x5dbee2,_0x307064,_0xe96dd9)[_0x1b1471(0x14a)];_0x2ada70[_0x1b1471(0xfd)][_0x1b1471(0x118)](_0x5ed430=>{const _0x57584e=_0x1b1471;if(_0x5ed430[_0x57584e(0x159)](_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x197)][_0x57584e(0xfc)][_0x57584e(0x164)]),_0x4f4dc4)_0x2ada70[_0x57584e(0x1cd)][_0x57584e(0x1a7)](_0x57584e(0x158))[_0x57584e(0xf0)](_0x3b0c21);else{for(const _0x2177a3 of _0x3b0c21)_0x2177a3[_0x57584e(0xf2)]=_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x197)][_0x57584e(0x155)],_0x3342f6(_0x2ada70,_0x2177a3),_0x5ed430[_0x57584e(0x1c3)][_0x57584e(0x1b7)](_0x2177a3),_0x2ada70[_0x57584e(0xfd)][_0x57584e(0x12a)](_0x2177a3);}}),this[_0x1b1471(0x1be)][_0x1b1471(0x1cd)][_0x1b1471(0x1a7)](_0x1b1471(0x12f))[_0x1b1471(0x14c)]();}[_0x17feb6(0x198)](_0x2186c6,_0x4ec0fb){const _0x2d5584=_0x17feb6;return _0x2186c6[_0x2d5584(0x130)](_0x156afd=>{const _0x8305ce=_0x2d5584;if(_0x8305ce(0x173)==_0x156afd[_0x8305ce(0x1ac)]){const _0x17b387=_0x156afd[_0x8305ce(0x180)][_0x8305ce(0x169)];return!_0x4ec0fb[_0x8305ce(0x10a)](_0x17b387);}if(_0x156afd[_0x8305ce(0x1ac)][_0x8305ce(0x16f)](_0x8305ce(0x137))>-0x1){const _0x5141d8=_0x156afd[_0x8305ce(0x19b)][_0x8305ce(0x184)][_0x8305ce(0x169)];return!_0x4ec0fb[_0x8305ce(0x10a)](_0x5141d8);}return!0x0;});}[_0x17feb6(0x103)](_0x582d67,_0x325d3a,_0x323e13){const _0x45092f=_0x17feb6,_0x4b05d9=_0x325d3a[_0x45092f(0xf6)]();for(const _0x29fbd1 in _0x325d3a){const _0x119f6d=_0x325d3a[_0x29fbd1];_0x119f6d instanceof _0x1f6cab?_0x325d3a[_0x29fbd1]=new _0x1f6cab(_0x2c1eb4(_0x119f6d[_0x45092f(0x184)]),_0x2c1eb4(_0x119f6d[_0x45092f(0x11c)])):_0x119f6d instanceof _0x3e0772&&(_0x325d3a[_0x29fbd1]=_0x2c1eb4(_0x119f6d));}if([_0x45092f(0x152),_0x45092f(0x150),_0x45092f(0x12c),_0x45092f(0x114),_0x45092f(0x162),_0x45092f(0x144)][_0x45092f(0x11a)](_0x4b05d9[_0x45092f(0x1ac)])){if(_0x4b05d9[_0x45092f(0xf1)]=!0x1,_0x4b05d9[_0x45092f(0xf2)]=null,_0x45092f(0x12c)==_0x4b05d9[_0x45092f(0x1ac)]){const _0x4c9fa7=_0x4b05d9[_0x45092f(0x1a5)],_0x51893c=_0x4b05d9[_0x45092f(0x11b)];new _0x27c19c(_0x4c9fa7,_0x51893c)[_0x45092f(0x187)]();}else _0x4b05d9[_0x45092f(0x187)]();}function _0x2c1eb4(_0x19fbbe){const _0x37441a=_0x45092f;if(_0x37441a(0x15e)==_0x19fbbe[_0x37441a(0x154)][_0x37441a(0x1c1)])return _0x19fbbe;const _0x4e1b77=[];let _0x525ac7=_0x19fbbe[_0x37441a(0x154)];for(let _0x330558=0x0;_0x330558<_0x19fbbe[_0x37441a(0x17f)][_0x37441a(0xf5)];_0x330558++){const _0x1ce7da=_0x582d67[_0x37441a(0x1a7)](_0x525ac7)||0x0;_0x4e1b77[_0x330558]=_0x19fbbe[_0x37441a(0x17f)][_0x330558]+_0x1ce7da,_0x525ac7=_0x525ac7[_0x37441a(0x143)](_0x19fbbe[_0x37441a(0x17f)][_0x330558]);}return new _0x3e0772(_0x323e13,_0x4e1b77,_0x19fbbe[_0x37441a(0x100)]);}}[_0x17feb6(0xfe)](){const _0x33e44a=_0x17feb6;if(!this[_0x33e44a(0x179)])return;this[_0x33e44a(0xff)][_0x33e44a(0xf5)]>0x0&&this[_0x33e44a(0x136)](),this[_0x33e44a(0x135)]=0x0,this[_0x33e44a(0x12e)]=!0x1;const {action:_0x1067e8,content:_0x5dc12b,version:_0x4caf93,mainView:_0x18e563,aiBalloon:_0x3e424e}=this[_0x33e44a(0x179)];_0x18e563[_0x33e44a(0x142)]=!0x1,_0x18e563[_0x33e44a(0x119)](),this[_0x33e44a(0xf3)](_0x18e563,_0x3e424e);const _0x70ba2e=_0x18e563;_0x70ba2e[_0x33e44a(0x1a3)]&&_0x70ba2e[_0x33e44a(0x1a3)][_0x33e44a(0x185)]&&_0x70ba2e[_0x33e44a(0x1a3)][_0x33e44a(0x185)][_0x33e44a(0x1c8)]({'isOn':!0x1,'icon':_0x5a480a}),this[_0x33e44a(0x10d)](_0x18e563),_0x18e563[_0x33e44a(0x191)](),this[_0x33e44a(0x178)](),this[_0x33e44a(0x170)](_0x18e563),this[_0x33e44a(0x1b2)](_0x5dc12b,_0x4caf93,_0x18e563,_0x3e424e,_0x1067e8)[_0x33e44a(0x1c7)](_0x2e7080=>{const _0x41452f=_0x33e44a;this[_0x41452f(0x15f)](_0x2e7080)||console[_0x41452f(0x15b)](_0x41452f(0x1d1),_0x2e7080);});}[_0x17feb6(0x10d)](_0x2935ae){const _0x28d982=_0x17feb6,_0x2fe9d7=_0x2935ae[_0x28d982(0x11d)][_0x28d982(0x117)];for(;_0x2fe9d7[_0x28d982(0xf5)]>0x0;)_0x2fe9d7[_0x28d982(0x12c)](_0x2fe9d7[_0x28d982(0x174)]);_0x2935ae[_0x28d982(0x11d)][_0x28d982(0x18c)]=!0x1;}[_0x17feb6(0x15f)](_0x47062c){const _0x9b0afd=_0x17feb6;return!!_0x47062c[_0x9b0afd(0x1c0)]&&_0x47062c[_0x9b0afd(0x1c0)][_0x9b0afd(0x122)](_0x9b0afd(0x1bc));}[_0x17feb6(0x189)](){const _0x73e40=_0x17feb6;this[_0x73e40(0xff)]=[],this[_0x73e40(0x179)]=void 0x0,this[_0x73e40(0x135)]=0x0,this[_0x73e40(0x178)]();}[_0x17feb6(0x136)](){const _0x58798a=_0x17feb6;this[_0x58798a(0xeb)]&&this[_0x58798a(0xeb)][_0x58798a(0x17b)](),this[_0x58798a(0x1bd)][_0x58798a(0x1b8)](),this[_0x58798a(0x106)]=!0x1,this[_0x58798a(0x179)]&&this[_0x58798a(0x179)][_0x58798a(0x1ba)][_0x58798a(0x1af)]();}[_0x17feb6(0x1c6)](){const _0x4b4f5b=_0x17feb6,_0xe9dece=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x59290c=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x57e3d4=new _0x456041(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]),_0x3afc38=new _0x2b05ed(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)]);_0xe9dece[_0x4b4f5b(0x1c8)]({'icon':_0x4dc9e4,'label':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x1b3)),'tooltip':!0x0,'class':_0x4b4f5b(0x10f)}),_0x59290c[_0x4b4f5b(0x1c8)]({'icon':_0x47d573,'tooltip':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x124)),'class':_0x4b4f5b(0x13c)}),_0x57e3d4[_0x4b4f5b(0xee)]({'tag':_0x4b4f5b(0x161),'attributes':{'class':[_0x4b4f5b(0x16d)]},'children':[_0x4b4f5b(0x172)]}),_0x3afc38[_0x4b4f5b(0x1c8)]({'icon':_0x586592,'tooltip':_0x52b860(this[_0x4b4f5b(0x1be)][_0x4b4f5b(0x1d3)],_0x4b4f5b(0x131)),'class':_0x4b4f5b(0xf7)}),_0xe9dece[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x4d75a7=>!_0x4d75a7),_0xe9dece['on'](_0x4b4f5b(0x171),()=>{const _0x2716c8=_0x4b4f5b;this[_0x2716c8(0xfe)]();}),_0x59290c[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x29e6d6=>!_0x29e6d6),_0x59290c['on'](_0x4b4f5b(0x171),()=>{const _0x477fdc=_0x4b4f5b;this[_0x477fdc(0x157)]();}),_0x3afc38[_0x4b4f5b(0x153)](_0x4b4f5b(0x175))['to'](this,_0x4b4f5b(0x106),_0x1f5cd7=>!_0x1f5cd7),_0x3afc38['on'](_0x4b4f5b(0x171),()=>{const _0x1c069e=_0x4b4f5b;this[_0x1c069e(0x19a)]();}),this[_0x4b4f5b(0x107)]=_0x59290c,this[_0x4b4f5b(0x12d)]=_0x57e3d4,this[_0x4b4f5b(0xf9)]=_0x3afc38,this[_0x4b4f5b(0xec)][_0x4b4f5b(0xed)](_0xe9dece);}[_0x17feb6(0x157)](){const _0x12f2d5=_0x17feb6,_0x2a53f0=this[_0x12f2d5(0xff)][_0x12f2d5(0xf5)];this[_0x12f2d5(0x135)]<_0x2a53f0-0x1&&this[_0x12f2d5(0x128)](this[_0x12f2d5(0x135)]+0x1);}[_0x17feb6(0x19a)](){const _0x1cc97a=_0x17feb6;this[_0x1cc97a(0x135)]>0x0&&this[_0x1cc97a(0x128)](this[_0x1cc97a(0x135)]-0x1);}async[_0x17feb6(0x128)](_0x3f618c){const _0x15d6c3=_0x17feb6;if(!this[_0x15d6c3(0x179)])return;this[_0x15d6c3(0x135)]=_0x3f618c;const {mainView:_0x2134cf}=this[_0x15d6c3(0x179)],_0x377a63=this[_0x15d6c3(0xff)][this[_0x15d6c3(0xff)][_0x15d6c3(0xf5)]-0x1-this[_0x15d6c3(0x135)]];if(!_0x377a63)return;if(_0x377a63[_0x15d6c3(0x15c)])return this[_0x15d6c3(0x126)](_0x377a63,_0x2134cf),void this[_0x15d6c3(0x178)]();if(!_0x377a63[_0x15d6c3(0x199)][_0x15d6c3(0xf5)])return;_0x2134cf[_0x15d6c3(0x119)](),this[_0x15d6c3(0x179)]&&this[_0x15d6c3(0xf3)](_0x2134cf,this[_0x15d6c3(0x179)][_0x15d6c3(0x1ba)]);const _0x5ea0f1=_0x377a63[_0x15d6c3(0x199)][_0x377a63[_0x15d6c3(0x199)][_0x15d6c3(0xf5)]-0x1];if(_0x5ea0f1){const _0x13a150=this[_0x15d6c3(0x1be)];this[_0x15d6c3(0x10d)](_0x2134cf);try{const _0x2ee75f=_0x59b572({'editor':_0x13a150,'changeGroups':_0x5ea0f1[_0x15d6c3(0xf8)],'documentContextContent':_0x5ea0f1[_0x15d6c3(0x196)],'showDiff':this[_0x15d6c3(0x12e)],'trimUnchanged':!0x1});this[_0x15d6c3(0x10d)](_0x2134cf),await new Promise(_0x15b32e=>setTimeout(_0x15b32e,0x32)),await _0x2134cf[_0x15d6c3(0x102)]({'parts':_0x2ee75f,'renderingStrategy':_0x15d6c3(0x123),'abortSignal':new AbortController()[_0x15d6c3(0x11e)]});}catch(_0x48228e){this[_0x15d6c3(0x15f)](_0x48228e)||console[_0x15d6c3(0x15b)](_0x15d6c3(0x16a),_0x48228e);}}this[_0x15d6c3(0x178)]();}[_0x17feb6(0x178)](){const _0x4c91c1=_0x17feb6;if(!this[_0x4c91c1(0x107)]||!this[_0x4c91c1(0x12d)]||!this[_0x4c91c1(0xf9)])return;const _0x3adeb5=this[_0x4c91c1(0xff)][_0x4c91c1(0xf5)],_0xdb41f9=_0x3adeb5>0x1,_0x26879c=this[_0x4c91c1(0x179)]?.[_0x4c91c1(0x18f)];if(_0xdb41f9){this[_0x4c91c1(0x19e)]||this[_0x4c91c1(0x177)]||this[_0x4c91c1(0xfa)]||(this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0x107)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0x107)]),this[_0x4c91c1(0x19e)]=!0x0,this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0x12d)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0x12d)]),this[_0x4c91c1(0x177)]=!0x0,this[_0x4c91c1(0xec)][_0x4c91c1(0xed)](this[_0x4c91c1(0xf9)]),_0x26879c?.[_0x4c91c1(0x156)](this[_0x4c91c1(0xf9)]),this[_0x4c91c1(0xfa)]=!0x0);const _0x1d825d=_0x3adeb5-this[_0x4c91c1(0x135)];this[_0x4c91c1(0x12d)][_0x4c91c1(0x166)]&&(this[_0x4c91c1(0x12d)][_0x4c91c1(0x166)][_0x4c91c1(0x127)]=_0x1d825d+'/'+_0x3adeb5),this[_0x4c91c1(0x107)][_0x4c91c1(0x175)]=this[_0x4c91c1(0x135)]<_0x3adeb5-0x1,this[_0x4c91c1(0xf9)][_0x4c91c1(0x175)]=this[_0x4c91c1(0x135)]>0x0;}else(this[_0x4c91c1(0x19e)]||this[_0x4c91c1(0x177)]||this[_0x4c91c1(0xfa)])&&(this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0x107)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0x107)]),this[_0x4c91c1(0x19e)]=!0x1,this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0x12d)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0x12d)]),this[_0x4c91c1(0x177)]=!0x1,this[_0x4c91c1(0xec)][_0x4c91c1(0x12c)](this[_0x4c91c1(0xf9)]),_0x26879c?.[_0x4c91c1(0x1b6)](this[_0x4c91c1(0xf9)]),this[_0x4c91c1(0xfa)]=!0x1);}[_0x17feb6(0x109)](_0x25411c,_0x295301){const _0x29ca2c=_0x17feb6;_0x25411c[_0x29ca2c(0x148)](),_0x295301[_0x29ca2c(0x183)][_0x29ca2c(0x148)](),this[_0x29ca2c(0x106)]=!0x0;}async[_0x17feb6(0x126)](_0x46bf2f,_0x4b5a53){const _0x1f3da5=_0x17feb6,_0x4d24a7=_0x52b860(this[_0x1f3da5(0x1be)][_0x1f3da5(0x1d3)],_0x1f3da5(0x17d));_0x4b5a53[_0x1f3da5(0x194)](_0x4d24a7),_0x46bf2f[_0x1f3da5(0x15c)]=!0x0,await this[_0x1f3da5(0x1bd)][_0x1f3da5(0x13d)],_0x4b5a53[_0x1f3da5(0xfb)](),this[_0x1f3da5(0x179)]?.[_0x1f3da5(0x1ba)][_0x1f3da5(0x183)][_0x1f3da5(0x13e)]&&(this[_0x1f3da5(0x179)][_0x1f3da5(0x1ba)][_0x1f3da5(0x183)][_0x1f3da5(0x13e)][_0x1f3da5(0x14e)]=!0x0);}[_0x17feb6(0xf3)](_0x12e976,_0xb5e9dd){const _0xd7384d=_0x17feb6;_0x12e976[_0xd7384d(0x1a6)](),_0xb5e9dd[_0xd7384d(0x183)][_0xd7384d(0x13e)]&&(_0xb5e9dd[_0xd7384d(0x183)][_0xd7384d(0x13e)][_0xd7384d(0x14e)]=!0x1);}async[_0x17feb6(0x13a)](_0x47bef7,_0x5df1df){const _0xc38682=_0x17feb6;await this[_0xc38682(0x1bd)][_0xc38682(0x13d)],this[_0xc38682(0x106)]=!0x1,_0x47bef7[_0xc38682(0x1b5)](),_0x5df1df[_0xc38682(0x183)][_0xc38682(0x1b5)]();}[_0x17feb6(0x1c5)](){const _0x22c790=_0x17feb6;this[_0x22c790(0xec)][_0x22c790(0x13b)](_0x2d913e=>{const _0x5e6a09=_0x22c790;_0x5e6a09(0x175)in _0x2d913e&&(_0x2d913e[_0x5e6a09(0x175)]=!0x1);});}}
@@ -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 { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.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 _0x39ccd2=_0x248a;function _0xee5a(){const _0x21f23c=['connector','84380QKpZXj','2111160XHbXpH','21foQONA','model','Current\x20document','83032pzRkAy','editor','1251CRHfeX','TEXT','hasError','4832135NRglst','1348460FqUPlZ','current-document','actionName','args','5772438FvvfNU','html','getDocumentContext','executeCustomAction','content','sendRequest','push','replies','executeAction','126772TDNOyl','replyCreated','userMessage','version','delegate','createReply','fire'];_0xee5a=function(){return _0x21f23c;};return _0xee5a();}(function(_0x4acd85,_0x1344b1){const _0x5e77b4=_0x248a,_0x3f54bf=_0x4acd85();while(!![]){try{const _0x26338d=-parseInt(_0x5e77b4(0xd2))/0x1+parseInt(_0x5e77b4(0xba))/0x2*(parseInt(_0x5e77b4(0xbc))/0x3)+parseInt(_0x5e77b4(0xbb))/0x4+-parseInt(_0x5e77b4(0xc5))/0x5+parseInt(_0x5e77b4(0xc9))/0x6+parseInt(_0x5e77b4(0xc4))/0x7+parseInt(_0x5e77b4(0xbf))/0x8*(-parseInt(_0x5e77b4(0xc1))/0x9);if(_0x26338d===_0x1344b1)break;else _0x3f54bf['push'](_0x3f54bf['shift']());}catch(_0x2e05a5){_0x3f54bf['push'](_0x3f54bf['shift']());}}}(_0xee5a,0x9b5c1));import{AIInteraction as _0x326939,AI_MODEL_EVENT_NAMES as _0x40dc8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ac8df}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5da522}from'./aiactionsreply.js';function _0x248a(_0x15618f,_0x209dab){const _0xee5aba=_0xee5a();return _0x248a=function(_0x248a29,_0x40ac6a){_0x248a29=_0x248a29-0xb7;let _0x188a43=_0xee5aba[_0x248a29];return _0x188a43;},_0x248a(_0x15618f,_0x209dab);}export class AIActionsInteraction extends _0x326939{[_0x39ccd2(0xcd)];[_0x39ccd2(0xd5)];[_0x39ccd2(0xc7)];[_0x39ccd2(0xc8)];[_0x39ccd2(0xd4)];[_0x39ccd2(0xbd)];[_0x39ccd2(0xc3)]=!0x1;constructor(_0x37e629){const _0x172043=_0x39ccd2;super(_0x37e629),this[_0x172043(0xcd)]=_0x37e629[_0x172043(0xcd)],this[_0x172043(0xd5)]=_0x37e629[_0x172043(0xd5)],this[_0x172043(0xc7)]=_0x37e629[_0x172043(0xc7)],this[_0x172043(0xc8)]=_0x37e629[_0x172043(0xc8)],this[_0x172043(0xd4)]=_0x37e629[_0x172043(0xd4)],this[_0x172043(0xbd)]=_0x37e629[_0x172043(0xbd)];}async[_0x39ccd2(0xce)](){const _0x4d4fe5=_0x39ccd2;return this[_0x4d4fe5(0xc7)]?this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xd1)]({'content':this[_0x4d4fe5(0xcd)],'actionName':this[_0x4d4fe5(0xc7)],'args':this[_0x4d4fe5(0xc8)]}):this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xcc)]({'content':this[_0x4d4fe5(0xcd)],'message':this[_0x4d4fe5(0xd4)],'model':this[_0x4d4fe5(0xbd)],'outputFormat':_0x4d4fe5(0xca)});}[_0x39ccd2(0xcb)](){const _0x20b789=_0x39ccd2;return{'type':_0x4ac8df[_0x20b789(0xc2)],'content':this[_0x20b789(0xcd)],'version':this[_0x20b789(0xd5)],'label':_0x20b789(0xbe),'uiId':_0x20b789(0xc6)};}[_0x39ccd2(0xb7)](_0x5c0808){const _0x2c2b23=_0x39ccd2,_0x1a0198=new _0x5da522({'editor':this[_0x2c2b23(0xc0)],'documentContextContent':this[_0x2c2b23(0xcd)],..._0x5c0808});return this[_0x2c2b23(0xd0)][_0x2c2b23(0xcf)](_0x1a0198),_0x1a0198[_0x2c2b23(0xd6)](..._0x40dc8c)['to'](this),this[_0x2c2b23(0xb8)](_0x2c2b23(0xd3),_0x1a0198),_0x1a0198;}}
23
+ const _0x4c9761=_0x52b4;function _0x435a(){const _0x17af4d=['sendRequest','model','4848645OQQsga','4713376TWSnnH','html','current-document','6826112QUdCwW','fire','createReply','3seEyae','hasError','209356AQvTMk','delegate','userMessage','getDocumentContext','TEXT','1727228QFoHaR','1bnOiPV','connector','actionName','executeCustomAction','args','executeAction','32663340MeSgTG','content','6557688wPOZBK','replyCreated','replies','version','push','editor','Current\x20document'];_0x435a=function(){return _0x17af4d;};return _0x435a();}(function(_0x194df0,_0x43c5e8){const _0x3a9245=_0x52b4,_0x287a94=_0x194df0();while(!![]){try{const _0x4b5671=parseInt(_0x3a9245(0x140))/0x1*(-parseInt(_0x3a9245(0x13f))/0x2)+-parseInt(_0x3a9245(0x138))/0x3*(parseInt(_0x3a9245(0x132))/0x4)+-parseInt(_0x3a9245(0x131))/0x5+parseInt(_0x3a9245(0x128))/0x6+parseInt(_0x3a9245(0x13a))/0x7+-parseInt(_0x3a9245(0x135))/0x8+parseInt(_0x3a9245(0x146))/0x9;if(_0x4b5671===_0x43c5e8)break;else _0x287a94['push'](_0x287a94['shift']());}catch(_0x3965fc){_0x287a94['push'](_0x287a94['shift']());}}}(_0x435a,0xd897d));import{AIInteraction as _0x1a870c,AI_MODEL_EVENT_NAMES as _0x495988}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x35cd84}from'../../aicore/model/aicontext.js';function _0x52b4(_0x4b43ff,_0x1163bb){const _0x435aa6=_0x435a();return _0x52b4=function(_0x52b42b,_0x147ff6){_0x52b42b=_0x52b42b-0x127;let _0x3f902b=_0x435aa6[_0x52b42b];return _0x3f902b;},_0x52b4(_0x4b43ff,_0x1163bb);}import{AIActionsReply as _0xa60ecb}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x1a870c{[_0x4c9761(0x127)];[_0x4c9761(0x12b)];[_0x4c9761(0x142)];[_0x4c9761(0x144)];[_0x4c9761(0x13c)];[_0x4c9761(0x130)];[_0x4c9761(0x139)]=!0x1;constructor(_0x1f14e3){const _0x182760=_0x4c9761;super(_0x1f14e3),this[_0x182760(0x127)]=_0x1f14e3[_0x182760(0x127)],this[_0x182760(0x12b)]=_0x1f14e3[_0x182760(0x12b)],this[_0x182760(0x142)]=_0x1f14e3[_0x182760(0x142)],this[_0x182760(0x144)]=_0x1f14e3[_0x182760(0x144)],this[_0x182760(0x13c)]=_0x1f14e3[_0x182760(0x13c)],this[_0x182760(0x130)]=_0x1f14e3[_0x182760(0x130)];}async[_0x4c9761(0x12f)](){const _0x188ddf=_0x4c9761;return this[_0x188ddf(0x142)]?this[_0x188ddf(0x141)][_0x188ddf(0x145)]({'content':this[_0x188ddf(0x127)],'actionName':this[_0x188ddf(0x142)],'args':this[_0x188ddf(0x144)]}):this[_0x188ddf(0x141)][_0x188ddf(0x143)]({'content':this[_0x188ddf(0x127)],'message':this[_0x188ddf(0x13c)],'model':this[_0x188ddf(0x130)],'outputFormat':_0x188ddf(0x133)});}[_0x4c9761(0x13d)](){const _0x553356=_0x4c9761;return{'type':_0x35cd84[_0x553356(0x13e)],'content':this[_0x553356(0x127)],'version':this[_0x553356(0x12b)],'label':_0x553356(0x12e),'uiId':_0x553356(0x134)};}[_0x4c9761(0x137)](_0x229c16){const _0x3535cc=_0x4c9761,_0x4cac60=new _0xa60ecb({'editor':this[_0x3535cc(0x12d)],'documentContextContent':this[_0x3535cc(0x127)],..._0x229c16});return this[_0x3535cc(0x12a)][_0x3535cc(0x12c)](_0x4cac60),_0x4cac60[_0x3535cc(0x13b)](..._0x495988)['to'](this),this[_0x3535cc(0x136)](_0x3535cc(0x129),_0x4cac60),_0x4cac60;}}
@@ -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 _0x12df8c=_0x5574;(function(_0x17925f,_0x4a5a45){const _0x54a63f=_0x5574,_0x38fd35=_0x17925f();while(!![]){try{const _0x2a5965=parseInt(_0x54a63f(0x9f))/0x1*(parseInt(_0x54a63f(0xa1))/0x2)+parseInt(_0x54a63f(0xb0))/0x3+parseInt(_0x54a63f(0xa5))/0x4*(parseInt(_0x54a63f(0xb3))/0x5)+-parseInt(_0x54a63f(0x9c))/0x6+parseInt(_0x54a63f(0x98))/0x7*(parseInt(_0x54a63f(0xa2))/0x8)+parseInt(_0x54a63f(0xa3))/0x9+parseInt(_0x54a63f(0x9b))/0xa*(-parseInt(_0x54a63f(0x97))/0xb);if(_0x2a5965===_0x4a5a45)break;else _0x38fd35['push'](_0x38fd35['shift']());}catch(_0x50ee5e){_0x38fd35['push'](_0x38fd35['shift']());}}}(_0x28a2,0xd76de));import{AIReply as _0x10af95}from'../../aicore/model/aireply.js';function _0x5574(_0x5ab435,_0x4a5b15){const _0x28a25c=_0x28a2();return _0x5574=function(_0x55745f,_0x356c72){_0x55745f=_0x55745f-0x97;let _0x45487a=_0x28a25c[_0x55745f];return _0x45487a;},_0x5574(_0x5ab435,_0x4a5b15);}import{getAttribute as _0x36b44e}from'../../aicore/utils/htmlparser.js';import{uid as _0x4de7ab}from'ckeditor5/src/utils.js';function _0x28a2(){const _0x418fac=['pop','145050wWswPM','children','updateChangeGroups','77295uhkAqI','_getDifferentChangeGroups','parsedContent','documentContextContent','36361996MAToxZ','5784163AowZHx','node','added','10lROzbk','4731492uEfbQH','data-id','map','2073QFaVgu','parsedMergedContent','1594PgPjQo','8ITeSkU','14395779IUziWL','childNodes','220pMPQDj','new','length','cloneNode','isDone','changeGroups','value','pending','removed','modified'];_0x28a2=function(){return _0x418fac;};return _0x28a2();}import{diffArrays as _0xb2308b}from'diff';export class AIActionsReply extends _0x10af95{[_0x12df8c(0xb2)](){const _0x4ccf98=_0x12df8c;if(this[_0x4ccf98(0xa0)]=this[_0x4ccf98(0xb5)][_0x4ccf98(0xa8)](!0x0),0x0==this[_0x4ccf98(0xa0)][_0x4ccf98(0xa4)][_0x4ccf98(0xa7)])return void(this[_0x4ccf98(0xaa)]=[]);const _0x2ec9a7=this[_0x4ccf98(0xb6)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x3cfb0f=>({'node':_0x3cfb0f,'id':_0x36b44e(_0x3cfb0f,_0x4ccf98(0x9d))})),_0x6e729=this[_0x4ccf98(0xa0)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x5a09c=>({'node':_0x5a09c,'id':_0x36b44e(_0x5a09c,_0x4ccf98(0x9d))||_0x4de7ab()})),_0x3767ab=_0xb2308b(_0x2ec9a7,_0x6e729,{'comparator':(_0x4efd33,_0x54c66f)=>_0x4efd33['id']==_0x54c66f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ccf98(0xa9)]){for(;_0x3767ab[_0x4ccf98(0xa7)]&&_0x3767ab[_0x3767ab[_0x4ccf98(0xa7)]-0x1][_0x4ccf98(0xad)];)_0x3767ab[_0x4ccf98(0xaf)]();}const _0x54dc2e=_0x3767ab[_0x4ccf98(0x9e)](_0x25d7e6=>{const _0x51bcae=_0x4ccf98,_0x2db012=_0x25d7e6[_0x51bcae(0x9a)]?_0x51bcae(0xa6):_0x25d7e6[_0x51bcae(0xad)]?_0x51bcae(0xad):_0x51bcae(0xae);return{'node':_0x25d7e6[_0x51bcae(0xab)][0x0][_0x51bcae(0x99)],'type':_0x2db012,'id':_0x25d7e6[_0x51bcae(0xab)][0x0]['id']};});this[_0x4ccf98(0xaa)]=[{'changes':_0x54dc2e,'state':_0x4ccf98(0xac),'index':0x0}];}[_0x12df8c(0xb4)](_0x475068,_0x993c1){return _0x993c1;}}
23
+ const _0x18cb44=_0x26b2;(function(_0x202547,_0x681c6e){const _0x186d44=_0x26b2,_0x4256aa=_0x202547();while(!![]){try{const _0x5f6349=parseInt(_0x186d44(0x117))/0x1*(parseInt(_0x186d44(0x112))/0x2)+-parseInt(_0x186d44(0x11b))/0x3+-parseInt(_0x186d44(0x116))/0x4*(-parseInt(_0x186d44(0x126))/0x5)+-parseInt(_0x186d44(0x10a))/0x6*(-parseInt(_0x186d44(0x122))/0x7)+parseInt(_0x186d44(0x113))/0x8+parseInt(_0x186d44(0x120))/0x9*(-parseInt(_0x186d44(0x11a))/0xa)+-parseInt(_0x186d44(0x114))/0xb*(parseInt(_0x186d44(0x10d))/0xc);if(_0x5f6349===_0x681c6e)break;else _0x4256aa['push'](_0x4256aa['shift']());}catch(_0xb806d8){_0x4256aa['push'](_0x4256aa['shift']());}}}(_0x2142,0xe0e86));import{AIReply as _0x4809fa}from'../../aicore/model/aireply.js';function _0x2142(){const _0x359e9c=['1247080LciFTy','1463aaIQIh','removed','5161028amhIDD','484QbDgni','length','new','2595040SIXtNE','2252502GouTED','children','updateChangeGroups','added','pop','36vuJlCI','value','56dAbCfj','cloneNode','node','_getDifferentChangeGroups','5oWIhES','pending','documentContextContent','childNodes','map','892176AuEhAH','modified','parsedMergedContent','57528QQzjit','isDone','data-id','parsedContent','changeGroups','2942EeWZRH'];_0x2142=function(){return _0x359e9c;};return _0x2142();}function _0x26b2(_0x5301f2,_0x35f0d3){const _0x2142ed=_0x2142();return _0x26b2=function(_0x26b21d,_0x187d96){_0x26b21d=_0x26b21d-0x10a;let _0x227161=_0x2142ed[_0x26b21d];return _0x227161;},_0x26b2(_0x5301f2,_0x35f0d3);}import{getAttribute as _0x392de2}from'../../aicore/utils/htmlparser.js';import{uid as _0xf2b186}from'ckeditor5/src/utils.js';import{diffArrays as _0x2468ad}from'diff';export class AIActionsReply extends _0x4809fa{[_0x18cb44(0x11d)](){const _0x2f0756=_0x18cb44;if(this[_0x2f0756(0x10c)]=this[_0x2f0756(0x110)][_0x2f0756(0x123)](!0x0),0x0==this[_0x2f0756(0x10c)][_0x2f0756(0x129)][_0x2f0756(0x118)])return void(this[_0x2f0756(0x111)]=[]);const _0x495e54=this[_0x2f0756(0x128)][_0x2f0756(0x11c)][_0x2f0756(0x12a)](_0x3513a5=>({'node':_0x3513a5,'id':_0x392de2(_0x3513a5,_0x2f0756(0x10f))})),_0x6d1ed5=this[_0x2f0756(0x10c)][_0x2f0756(0x11c)][_0x2f0756(0x12a)](_0xe116fe=>({'node':_0xe116fe,'id':_0x392de2(_0xe116fe,_0x2f0756(0x10f))||_0xf2b186()})),_0x4cf417=_0x2468ad(_0x495e54,_0x6d1ed5,{'comparator':(_0x1edd84,_0x23d0dd)=>_0x1edd84['id']==_0x23d0dd['id'],'oneChangePerToken':!0x0});if(!this[_0x2f0756(0x10e)]){for(;_0x4cf417[_0x2f0756(0x118)]&&_0x4cf417[_0x4cf417[_0x2f0756(0x118)]-0x1][_0x2f0756(0x115)];)_0x4cf417[_0x2f0756(0x11f)]();}const _0x5eaf65=_0x4cf417[_0x2f0756(0x12a)](_0x4b62d1=>{const _0x4a5887=_0x2f0756,_0x15d543=_0x4b62d1[_0x4a5887(0x11e)]?_0x4a5887(0x119):_0x4b62d1[_0x4a5887(0x115)]?_0x4a5887(0x115):_0x4a5887(0x10b);return{'node':_0x4b62d1[_0x4a5887(0x121)][0x0][_0x4a5887(0x124)],'type':_0x15d543,'id':_0x4b62d1[_0x4a5887(0x121)][0x0]['id']};});this[_0x2f0756(0x111)]=[{'changes':_0x5eaf65,'state':_0x2f0756(0x127),'index':0x0}];}[_0x18cb44(0x125)](_0x47c016,_0x3cbcc1){return _0x3cbcc1;}}
@@ -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
- var _0x42d897=_0x277d;(function(_0x2ce39a,_0x16c94b){var _0x1358f4=_0x277d,_0x58d4e0=_0x2ce39a();while(!![]){try{var _0x506bfd=-parseInt(_0x1358f4(0x161))/0x1+-parseInt(_0x1358f4(0x15f))/0x2+parseInt(_0x1358f4(0x15d))/0x3+-parseInt(_0x1358f4(0x162))/0x4*(parseInt(_0x1358f4(0x159))/0x5)+parseInt(_0x1358f4(0x160))/0x6*(parseInt(_0x1358f4(0x165))/0x7)+parseInt(_0x1358f4(0x154))/0x8+parseInt(_0x1358f4(0x15a))/0x9*(-parseInt(_0x1358f4(0x15e))/0xa);if(_0x506bfd===_0x16c94b)break;else _0x58d4e0['push'](_0x58d4e0['shift']());}catch(_0x542fef){_0x58d4e0['push'](_0x58d4e0['shift']());}}}(_0x1189,0xf2a00));function _0x1189(){var _0x2d970b=['490406GHrfwh','2190MDHYpR','654848xIjfoA','140jHNuLi','textAdapter','AIAdapter','12796Lwsmas','afterInit','14572936MByMvI','name','pluginName','isPremiumPlugin','isOfficialPlugin','123990XbrQKo','2481786SlUYro','aiadapter-text-adapter-not-set','AIRequestError','2473332VzLzGe','20DEBMGk'];_0x1189=function(){return _0x2d970b;};return _0x1189();}import{Plugin as _0x5378d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x33c517}from'ckeditor5/src/utils.js';function _0x277d(_0x36ce40,_0x462e3f){var _0x11891f=_0x1189();return _0x277d=function(_0x277d58,_0x5b8fa7){_0x277d58=_0x277d58-0x154;var _0x61f5d7=_0x11891f[_0x277d58];return _0x61f5d7;},_0x277d(_0x36ce40,_0x462e3f);}export class AIAdapter extends _0x5378d0{static get[_0x42d897(0x156)](){var _0x1582ba=_0x42d897;return _0x1582ba(0x164);}static get[_0x42d897(0x158)](){return!0x0;}static get[_0x42d897(0x157)](){return!0x0;}[_0x42d897(0x166)](){var _0x548cae=_0x42d897;if(!this[_0x548cae(0x163)])throw new _0x33c517(_0x548cae(0x15b),null);}}export class AIRequestError extends Error{constructor(_0x4ef3e7){var _0xc519d0=_0x42d897;super(_0x4ef3e7),this[_0xc519d0(0x155)]=_0xc519d0(0x15c);}}
23
+ var _0x4bf8fc=_0x5d2a;function _0x3d1d(){var _0x26aa80=['afterInit','textAdapter','1yhUqmP','1269596hplgJi','2636282YvqEBW','pluginName','aiadapter-text-adapter-not-set','2824458kEzQLN','567020vUWIzh','17287362BIydNh','isPremiumPlugin','46271460oczYNh','isOfficialPlugin','6IAUJqr','name','AIAdapter','21pNqKru','AIRequestError','4304816nrIzqB'];_0x3d1d=function(){return _0x26aa80;};return _0x3d1d();}function _0x5d2a(_0x4a775a,_0x45ca2c){var _0x3d1d6d=_0x3d1d();return _0x5d2a=function(_0x5d2aaf,_0x4cebcf){_0x5d2aaf=_0x5d2aaf-0x1d7;var _0x7a8a84=_0x3d1d6d[_0x5d2aaf];return _0x7a8a84;},_0x5d2a(_0x4a775a,_0x45ca2c);}(function(_0x23a0b6,_0x37391b){var _0x454955=_0x5d2a,_0x40b785=_0x23a0b6();while(!![]){try{var _0x5c765e=-parseInt(_0x454955(0x1d8))/0x1*(-parseInt(_0x454955(0x1da))/0x2)+parseInt(_0x454955(0x1dd))/0x3+-parseInt(_0x454955(0x1d9))/0x4+-parseInt(_0x454955(0x1de))/0x5*(-parseInt(_0x454955(0x1e3))/0x6)+parseInt(_0x454955(0x1e6))/0x7*(parseInt(_0x454955(0x1e8))/0x8)+parseInt(_0x454955(0x1df))/0x9+-parseInt(_0x454955(0x1e1))/0xa;if(_0x5c765e===_0x37391b)break;else _0x40b785['push'](_0x40b785['shift']());}catch(_0x4b3e5c){_0x40b785['push'](_0x40b785['shift']());}}}(_0x3d1d,0xeb41a));import{Plugin as _0x49c821}from'ckeditor5/src/core.js';import{CKEditorError as _0x272b30}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x49c821{static get[_0x4bf8fc(0x1db)](){var _0x14ba0=_0x4bf8fc;return _0x14ba0(0x1e5);}static get[_0x4bf8fc(0x1e2)](){return!0x0;}static get[_0x4bf8fc(0x1e0)](){return!0x0;}[_0x4bf8fc(0x1e9)](){var _0x411bb8=_0x4bf8fc;if(!this[_0x411bb8(0x1d7)])throw new _0x272b30(_0x411bb8(0x1dc),null);}}export class AIRequestError extends Error{constructor(_0x53af82){var _0x24ca0b=_0x4bf8fc;super(_0x53af82),this[_0x24ca0b(0x1e4)]=_0x24ca0b(0x1e7);}}
@@ -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 _0x3c06f7=_0x2ef4;function _0x2ef4(_0x47099c,_0x1cce9e){const _0x21dbd5=_0x21db();return _0x2ef4=function(_0x2ef439,_0x2eda87){_0x2ef439=_0x2ef439-0x84;let _0x4a0e7c=_0x21dbd5[_0x2ef439];return _0x4a0e7c;},_0x2ef4(_0x47099c,_0x1cce9e);}(function(_0x5a6519,_0xcf4bca){const _0x2b0b93=_0x2ef4,_0xe9149a=_0x5a6519();while(!![]){try{const _0x351319=-parseInt(_0x2b0b93(0x85))/0x1+-parseInt(_0x2b0b93(0x84))/0x2+parseInt(_0x2b0b93(0xa5))/0x3*(-parseInt(_0x2b0b93(0x9a))/0x4)+-parseInt(_0x2b0b93(0x87))/0x5+-parseInt(_0x2b0b93(0xa4))/0x6+-parseInt(_0x2b0b93(0x8f))/0x7+-parseInt(_0x2b0b93(0x96))/0x8*(-parseInt(_0x2b0b93(0x9b))/0x9);if(_0x351319===_0xcf4bca)break;else _0xe9149a['push'](_0xe9149a['shift']());}catch(_0x248970){_0xe9149a['push'](_0xe9149a['shift']());}}}(_0x21db,0x52659));import{Plugin as _0x5b64a2}from'ckeditor5/src/core.js';import{CKEditorError as _0x466e38}from'ckeditor5/src/utils.js';function _0x21db(){const _0x33fb58=['AI_ERROR_GET_HEADERS','makeRequest','resolve','assign','catch','signal','3545654BvgFFQ','name','_prepareRequestParameters','plugins','aitextadapter-send-request-failed','object','requires','8PjzkVt','locale','error','get','528PRYexD','20985273lhfCSg','abort','_prepareRequestHeaders','application/json','abortController','init','AI_ERROR_GET_PARAMETERS','editor','textAdapter','3225318XsPZqp','1605iayhiV','reject','aborted','165764uKhmQa','556692UggJbf','AbortError','1199655ubfPTY','sendRequest'];_0x21db=function(){return _0x33fb58;};return _0x21db();}import{AIAdapter as _0x4c57fa,AIRequestError as _0x595db6}from'./aiadapter.js';import{getTranslation as _0x3348a5}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b64a2{[_0x3c06f7(0x9f)];static get[_0x3c06f7(0x95)](){return[_0x4c57fa];}constructor(_0x421fc5){const _0x4c4ade=_0x3c06f7;super(_0x421fc5),this[_0x4c4ade(0x9f)]=new AbortController();}[_0x3c06f7(0xa0)](){const _0x409cfb=_0x3c06f7;this[_0x409cfb(0xa2)][_0x409cfb(0x92)][_0x409cfb(0x99)](_0x4c57fa)[_0x409cfb(0xa3)]=this;}[_0x3c06f7(0x9c)](){const _0x30f802=_0x3c06f7;this[_0x30f802(0x9f)][_0x30f802(0x8e)][_0x30f802(0xa7)]||(this[_0x30f802(0x9f)][_0x30f802(0x9c)](),this[_0x30f802(0x9f)]=new AbortController());}async[_0x3c06f7(0x8a)](_0x322a9b){const _0x19d1f0=_0x3c06f7;return this[_0x19d1f0(0x88)](_0x322a9b)[_0x19d1f0(0x8d)](_0x2d77da=>{const _0x488a32=_0x19d1f0;if(_0x2d77da instanceof _0x595db6)return Promise[_0x488a32(0xa6)](_0x2d77da);if(_0x488a32(0x86)==_0x2d77da[_0x488a32(0x90)])return Promise[_0x488a32(0x8b)]();throw console[_0x488a32(0x98)](_0x2d77da),new _0x466e38(_0x488a32(0x93),null);});}async[_0x3c06f7(0x9d)](_0x32fbb3,_0x1eb41e){const _0x31b533=_0x3c06f7,_0xd78a4a=this[_0x31b533(0xa2)][_0x31b533(0x97)],_0x56196e={'Content-Type':_0x31b533(0x9e)};if(_0x31b533(0x94)==typeof _0x32fbb3)Object[_0x31b533(0x8c)](_0x56196e,_0x32fbb3);else{if(_0x32fbb3)try{const _0x5427d9=await _0x32fbb3(_0x1eb41e);Object[_0x31b533(0x8c)](_0x56196e,_0x5427d9);}catch{return Promise[_0x31b533(0xa6)](new _0x595db6(_0x3348a5(_0xd78a4a,_0x31b533(0x89))));}}return _0x56196e;}async[_0x3c06f7(0x91)](_0x5161a8,_0x36f3a7){const _0x478832=_0x3c06f7,_0x5946d1=this[_0x478832(0xa2)][_0x478832(0x97)];if(_0x478832(0x94)==typeof _0x5161a8)return _0x5161a8;try{return await _0x5161a8(_0x36f3a7);}catch{return Promise[_0x478832(0xa6)](new _0x595db6(_0x3348a5(_0x5946d1,_0x478832(0xa1))));}}}
23
+ const _0x51d8de=_0x367e;function _0x315b(){const _0x9b4ffa=['aitextadapter-send-request-failed','requires','2169044wpUzrq','textAdapter','AI_ERROR_GET_PARAMETERS','AI_ERROR_GET_HEADERS','51364LzXKTn','4897256tvErgd','catch','reject','signal','344382gMgwXo','1616580lZYQbJ','_prepareRequestHeaders','application/json','error','init','abort','assign','16722567xuynGV','aborted','3qrOovt','10rtrRQQ','abortController','name','object','makeRequest','editor','AbortError','locale','5fyRJAA','plugins','get','sendRequest','resolve','1553595rkmCko','_prepareRequestParameters'];_0x315b=function(){return _0x9b4ffa;};return _0x315b();}(function(_0x374dbd,_0x19f902){const _0xa1b606=_0x367e,_0x14f400=_0x374dbd();while(!![]){try{const _0x2cb924=parseInt(_0xa1b606(0x1fb))/0x1*(parseInt(_0xa1b606(0x1e3))/0x2)+parseInt(_0xa1b606(0x1f2))/0x3*(-parseInt(_0xa1b606(0x1df))/0x4)+-parseInt(_0xa1b606(0x1db))/0x5+parseInt(_0xa1b606(0x1e8))/0x6+-parseInt(_0xa1b606(0x1e9))/0x7+-parseInt(_0xa1b606(0x1e4))/0x8+-parseInt(_0xa1b606(0x1f0))/0x9*(-parseInt(_0xa1b606(0x1f3))/0xa);if(_0x2cb924===_0x19f902)break;else _0x14f400['push'](_0x14f400['shift']());}catch(_0x449b42){_0x14f400['push'](_0x14f400['shift']());}}}(_0x315b,0x54e91));function _0x367e(_0x1c1703,_0x2a944e){const _0x315b57=_0x315b();return _0x367e=function(_0x367ed5,_0x48b121){_0x367ed5=_0x367ed5-0x1d7;let _0x3bf5ce=_0x315b57[_0x367ed5];return _0x3bf5ce;},_0x367e(_0x1c1703,_0x2a944e);}import{Plugin as _0x4947f6}from'ckeditor5/src/core.js';import{CKEditorError as _0x545c19}from'ckeditor5/src/utils.js';import{AIAdapter as _0x7cda00,AIRequestError as _0x174462}from'./aiadapter.js';import{getTranslation as _0x2b4097}from'../utils/common-translations.js';export class AITextAdapter extends _0x4947f6{[_0x51d8de(0x1f4)];static get[_0x51d8de(0x1de)](){return[_0x7cda00];}constructor(_0x20630d){const _0x597788=_0x51d8de;super(_0x20630d),this[_0x597788(0x1f4)]=new AbortController();}[_0x51d8de(0x1ed)](){const _0x34dcee=_0x51d8de;this[_0x34dcee(0x1f8)][_0x34dcee(0x1d7)][_0x34dcee(0x1d8)](_0x7cda00)[_0x34dcee(0x1e0)]=this;}[_0x51d8de(0x1ee)](){const _0x394eda=_0x51d8de;this[_0x394eda(0x1f4)][_0x394eda(0x1e7)][_0x394eda(0x1f1)]||(this[_0x394eda(0x1f4)][_0x394eda(0x1ee)](),this[_0x394eda(0x1f4)]=new AbortController());}async[_0x51d8de(0x1f7)](_0x304142){const _0x1f08fa=_0x51d8de;return this[_0x1f08fa(0x1d9)](_0x304142)[_0x1f08fa(0x1e5)](_0x4b3d3d=>{const _0x11c767=_0x1f08fa;if(_0x4b3d3d instanceof _0x174462)return Promise[_0x11c767(0x1e6)](_0x4b3d3d);if(_0x11c767(0x1f9)==_0x4b3d3d[_0x11c767(0x1f5)])return Promise[_0x11c767(0x1da)]();throw console[_0x11c767(0x1ec)](_0x4b3d3d),new _0x545c19(_0x11c767(0x1dd),null);});}async[_0x51d8de(0x1ea)](_0x42755f,_0xdac252){const _0x1babd3=_0x51d8de,_0x38b1f6=this[_0x1babd3(0x1f8)][_0x1babd3(0x1fa)],_0x56c27d={'Content-Type':_0x1babd3(0x1eb)};if(_0x1babd3(0x1f6)==typeof _0x42755f)Object[_0x1babd3(0x1ef)](_0x56c27d,_0x42755f);else{if(_0x42755f)try{const _0x4d14b8=await _0x42755f(_0xdac252);Object[_0x1babd3(0x1ef)](_0x56c27d,_0x4d14b8);}catch{return Promise[_0x1babd3(0x1e6)](new _0x174462(_0x2b4097(_0x38b1f6,_0x1babd3(0x1e2))));}}return _0x56c27d;}async[_0x51d8de(0x1dc)](_0x234e0e,_0x4a777d){const _0x7bc8c9=_0x51d8de,_0x1787de=this[_0x7bc8c9(0x1f8)][_0x7bc8c9(0x1fa)];if(_0x7bc8c9(0x1f6)==typeof _0x234e0e)return _0x234e0e;try{return await _0x234e0e(_0x4a777d);}catch{return Promise[_0x7bc8c9(0x1e6)](new _0x174462(_0x2b4097(_0x1787de,_0x7bc8c9(0x1e1))));}}}
@@ -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 _0x2bc041=_0x5a2b;(function(_0x5b0ec1,_0x47e9a8){const _0x28b6ba=_0x5a2b,_0x2ff03e=_0x5b0ec1();while(!![]){try{const _0x48d873=-parseInt(_0x28b6ba(0xfb))/0x1*(-parseInt(_0x28b6ba(0x129))/0x2)+parseInt(_0x28b6ba(0x10d))/0x3*(-parseInt(_0x28b6ba(0x127))/0x4)+-parseInt(_0x28b6ba(0x114))/0x5*(-parseInt(_0x28b6ba(0xda))/0x6)+parseInt(_0x28b6ba(0xde))/0x7*(-parseInt(_0x28b6ba(0x10a))/0x8)+parseInt(_0x28b6ba(0x108))/0x9*(-parseInt(_0x28b6ba(0x107))/0xa)+parseInt(_0x28b6ba(0x11c))/0xb*(parseInt(_0x28b6ba(0xe8))/0xc)+parseInt(_0x28b6ba(0xfc))/0xd;if(_0x48d873===_0x47e9a8)break;else _0x2ff03e['push'](_0x2ff03e['shift']());}catch(_0x2a60cf){_0x2ff03e['push'](_0x2ff03e['shift']());}}}(_0x1f03,0xe34ca));import{AITextAdapter as _0x13fcff}from'./aitextadapter.js';import{AIRequestError as _0x55b63a}from'./aiadapter.js';function _0x1f03(){const _0xd7faa1=['meta.llama','generations','decode','stringify','anthropic.claude','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','locale','cohere.command','body','editor','get','read','1197305sXqErX','27733511ZpGppB','ai.assistant.adapter.aws.requestParameters','test','anthropic.claude-v2','_apiUrl','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_processProxyRequest','getReader','completion','2042320vritXQ','72SPeXdx','resolve','56qDfLlA','parse','split','51933CXuZZG','filter','text','Human:\x0a','_requestParameters','_requestHeaders','application/json','7288475ayMIes','Instruction:\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AWSTextAdapter','\x0a[/INST]','config','preparePrompt','_getGeneratedText','1596826oGJBAY','ai21.j2','json','_readStaticResponse','AI_ERROR_UNSUPPORTED_MODEL','bytes','ai.assistant.adapter.aws.apiUrl','_prepareRequestHeaders','signal','map','join','408WhQqwJ','send','2GxFUTM','_bedrockClientConfig','ai.assistant.adapter.aws.requestHeaders','utf-8','6kfowIO','\x0a<</SYS>>\x0a[INST]\x0a','POST','_readStreamableResponse','602917Vhizdq','_prepareRequestParameters','<<SYS>>\x0a','length','_processAWSRequest','pluginName','abortController','define','chunk','\x0a\x0aAssistant:','12DFrxLg','data','sendRequest','bedrock-2023-05-31','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','completions'];_0x1f03=function(){return _0xd7faa1;};return _0x1f03();}import{BedrockRuntimeClient as _0x31d2f1,InvokeModelCommand as _0x24333e,InvokeModelWithResponseStreamCommand as _0x363e10}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x45b253}from'../utils/common-translations.js';function _0x5a2b(_0x540a48,_0x2a43df){const _0x1f03a9=_0x1f03();return _0x5a2b=function(_0x5a2b16,_0x2d7547){_0x5a2b16=_0x5a2b16-0xda;let _0x44a8b2=_0x1f03a9[_0x5a2b16];return _0x44a8b2;},_0x5a2b(_0x540a48,_0x2a43df);}export class AWSTextAdapter extends _0x13fcff{[_0x2bc041(0x100)];[_0x2bc041(0x112)];[_0x2bc041(0x12a)];[_0x2bc041(0x111)];static get[_0x2bc041(0xe3)](){const _0x3b3f15=_0x2bc041;return _0x3b3f15(0x117);}constructor(_0x44b1fc){const _0x3e0c2d=_0x2bc041;super(_0x44b1fc),_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd))||_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xe5)](_0x3e0c2d(0xfd),{'model':_0x3e0c2d(0xff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3e0c2d(0xeb),'stream':!0x0}),this[_0x3e0c2d(0x100)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x122)),this[_0x3e0c2d(0x12a)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xf3)),this[_0x3e0c2d(0x112)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x12b)),this[_0x3e0c2d(0x111)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd));}async[_0x2bc041(0xea)]({query:_0xcf9830,context:_0x9b37b7,onData:_0x48dd55,actionId:_0x45fa9d}){const _0x139408=_0x2bc041,{model:_0x2f8523,stream:_0x51e122,..._0x5c92cc}=await this[_0x139408(0xdf)](this[_0x139408(0x111)],_0x45fa9d),_0x51a951={'prompt':await this[_0x139408(0x11a)](_0xcf9830,_0x9b37b7,_0x2f8523,_0x45fa9d),..._0x5c92cc};this[_0x139408(0x100)]?await this[_0x139408(0x104)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55,_0x45fa9d):await this[_0x139408(0xe2)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55);}async[_0x2bc041(0x11a)](_0x14b6dd,_0x187cb2,_0x2c1cad,_0x58f0b5){const _0x41781e=_0x2bc041;let _0x4afbc4,_0x18faf0;return _0x187cb2?(_0x4afbc4=_0x41781e(0xec),_0x18faf0=_0x41781e(0x115)+_0x14b6dd+_0x41781e(0x102)+_0x187cb2):(_0x4afbc4=_0x41781e(0x116),_0x18faf0=_0x14b6dd),_0x41781e(0xee)==this[_0x41781e(0x103)](_0x2c1cad)?_0x41781e(0xe0)+_0x4afbc4+_0x41781e(0xdb)+_0x18faf0+_0x41781e(0x118):_0x41781e(0x110)+_0x4afbc4+'\x0a'+_0x18faf0+_0x41781e(0xe7);}[_0x2bc041(0x103)](_0x1c502c){const _0x48f937=_0x2bc041;if(/^anthropic\.claude/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf2);if(/^ai21\.j2/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0x11d);if(/^cohere\.command/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf6);if(/^meta\.llama/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xee);throw new _0x55b63a(_0x45b253(this[_0x48f937(0xf8)][_0x48f937(0xf5)],_0x48f937(0x120),_0x1c502c));}async[_0x2bc041(0x104)](_0x1703ac,_0x58187b,_0x31845b,_0x1e6938,_0x479df4){const _0x321ab7=_0x2bc041,_0x2d9dc6={'method':_0x321ab7(0xdc),'headers':await this[_0x321ab7(0x123)](this[_0x321ab7(0x112)],_0x479df4),'body':JSON[_0x321ab7(0xf1)]({..._0x1703ac,'model':_0x58187b,'stream':_0x31845b}),'signal':this[_0x321ab7(0xe4)][_0x321ab7(0x124)]},_0x321edb=await fetch(this[_0x321ab7(0x100)],_0x2d9dc6);_0x31845b?await this[_0x321ab7(0xdd)](_0x321edb,_0x58187b,_0x1e6938):await this[_0x321ab7(0x11f)](_0x321edb,_0x58187b,_0x1e6938);}async[_0x2bc041(0xe2)](_0x35e6b1,_0x2c3d59,_0x1874af,_0x316f55){const _0x381eb3=_0x2bc041,_0x2327b7=new _0x31d2f1(this[_0x381eb3(0x12a)]),_0x252978={'body':JSON[_0x381eb3(0xf1)](_0x35e6b1),'contentType':_0x381eb3(0x113),'accept':_0x381eb3(0x113),'modelId':_0x2c3d59};let _0x8a79d3;if(_0x1874af){const _0x480cd3=new _0x363e10(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x480cd3,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0xf4)](_0x8a79d3,_0x2c3d59,_0x316f55);}else{const _0x7dc49=new _0x24333e(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x7dc49,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0x11f)](_0x8a79d3,_0x2c3d59,_0x316f55);}}async[_0x2bc041(0xf4)](_0x2e180a,_0x2c12f7,_0x16ac1d){const _0x48e927=_0x2bc041,_0x384137=_0x2e180a[_0x48e927(0xf7)],_0x3339d1=new TextDecoder(_0x48e927(0x12c));let _0x194bbe='';for await(const _0x5c6e0f of _0x384137)if(_0x5c6e0f[_0x48e927(0xe6)]){const _0x26aaa2=_0x3339d1[_0x48e927(0xf0)](_0x5c6e0f[_0x48e927(0xe6)][_0x48e927(0x121)]),_0x4854eb=JSON[_0x48e927(0x10b)](_0x26aaa2);_0x194bbe+=this[_0x48e927(0x11b)](_0x4854eb,_0x2c12f7),_0x16ac1d(_0x194bbe);}return Promise[_0x48e927(0x109)]();}async[_0x2bc041(0xdd)](_0x245d2e,_0x4b9dae,_0x267406){const _0x522e30=_0x2bc041,_0x228dff=_0x245d2e[_0x522e30(0xf7)],_0x34074c=new TextDecoder(_0x522e30(0x12c)),_0x355201=_0x228dff[_0x522e30(0x105)]();let _0x1c7bee='',_0x1918c8='',_0x5a4c83=!0x1;for(;!_0x5a4c83;){const {done:_0x11f309,value:_0x1e3151}=await _0x355201[_0x522e30(0xfa)]();if(_0x5a4c83=_0x11f309,_0x5a4c83)break;const _0x3bfe96=(_0x1c7bee+_0x34074c[_0x522e30(0xf0)](_0x1e3151))[_0x522e30(0x10c)]('\x0a')[_0x522e30(0x125)](_0x532068=>{const _0x35abe2=_0x522e30;try{return _0x1c7bee='',JSON[_0x35abe2(0x10b)](_0x532068);}catch{return _0x1c7bee=_0x532068,null;}})[_0x522e30(0x10e)](_0x138ea9=>null!==_0x138ea9);_0x3bfe96[_0x522e30(0xe1)]&&(_0x1918c8+=_0x3bfe96[_0x522e30(0x125)](_0x1a04bd=>this[_0x522e30(0x11b)](_0x1a04bd,_0x4b9dae))[_0x522e30(0x126)](''),_0x267406(_0x1918c8));}return Promise[_0x522e30(0x109)]();}async[_0x2bc041(0x11f)](_0x48d2f2,_0x4d2d1e,_0x44f26c){const _0x1f8dd6=_0x2bc041;let _0x4d31d5;return _0x4d31d5=_0x48d2f2 instanceof Response?await _0x48d2f2[_0x1f8dd6(0x11e)]():JSON[_0x1f8dd6(0x10b)](new TextDecoder(_0x1f8dd6(0x12c))[_0x1f8dd6(0xf0)](_0x48d2f2[_0x1f8dd6(0xf7)])),(_0x44f26c(this[_0x1f8dd6(0x11b)](_0x4d31d5,_0x4d2d1e)),Promise[_0x1f8dd6(0x109)]());}[_0x2bc041(0x11b)](_0x9b1131,_0x17e3b4){const _0x5c9c15=_0x2bc041;switch(this[_0x5c9c15(0x103)](_0x17e3b4)){case _0x5c9c15(0xf2):return _0x9b1131[_0x5c9c15(0x106)];case _0x5c9c15(0x11d):return _0x9b1131[_0x5c9c15(0xed)][0x0][_0x5c9c15(0xe9)][_0x5c9c15(0x10f)];case _0x5c9c15(0xf6):return _0x9b1131[_0x5c9c15(0xef)][0x0][_0x5c9c15(0x10f)];case _0x5c9c15(0xee):return _0x9b1131[_0x5c9c15(0x101)];}}}
23
+ const _0x456733=_0x259d;(function(_0x325a41,_0x12946a){const _0x1143f2=_0x259d,_0x4b2c25=_0x325a41();while(!![]){try{const _0x12ba5d=-parseInt(_0x1143f2(0xaf))/0x1*(parseInt(_0x1143f2(0xbe))/0x2)+parseInt(_0x1143f2(0xaa))/0x3+parseInt(_0x1143f2(0xa1))/0x4*(parseInt(_0x1143f2(0x90))/0x5)+-parseInt(_0x1143f2(0x9f))/0x6+parseInt(_0x1143f2(0xd8))/0x7+-parseInt(_0x1143f2(0xa2))/0x8*(parseInt(_0x1143f2(0xcd))/0x9)+parseInt(_0x1143f2(0xb2))/0xa*(-parseInt(_0x1143f2(0x8e))/0xb);if(_0x12ba5d===_0x12946a)break;else _0x4b2c25['push'](_0x4b2c25['shift']());}catch(_0x29bdc3){_0x4b2c25['push'](_0x4b2c25['shift']());}}}(_0x3de5,0x80f93));import{AITextAdapter as _0x31e91e}from'./aitextadapter.js';import{AIRequestError as _0x16bd1b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x36b50b,InvokeModelCommand as _0x1cb2c7,InvokeModelWithResponseStreamCommand as _0x2d7e9c}from'@aws-sdk/client-bedrock-runtime';function _0x259d(_0x284815,_0x22eb92){const _0x3de592=_0x3de5();return _0x259d=function(_0x259dc5,_0x4ae07f){_0x259dc5=_0x259dc5-0x8b;let _0x22abcd=_0x3de592[_0x259dc5];return _0x22abcd;},_0x259d(_0x284815,_0x22eb92);}import{getTranslation as _0x23067b}from'../utils/common-translations.js';function _0x3de5(){const _0x523fdd=['config','test','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','Human:\x0a','_apiUrl','define','5730363PRogEr','editor','getModelFamily','AI_ERROR_UNSUPPORTED_MODEL','_processAWSRequest','ai.assistant.adapter.aws.bedrockClientConfig','utf-8','filter','preparePrompt','\x0a[/INST]','bedrock-2023-05-31','5865776WdSGiH','meta.llama','pluginName','chunk','application/json','read','bytes','4285699xdcchd','_processProxyRequest','1253095YSDGsu','get','_requestHeaders','cohere.command','decode','_readStreamableResponse','join','_readStaticResponse','signal','ai.assistant.adapter.aws.requestParameters','locale','sendRequest','AWSTextAdapter','generations','ai.assistant.adapter.aws.apiUrl','973806iQEXlq','Instruction:\x0a','12zTPLBi','8KHToMZ','anthropic.claude-v2','completions','_readAsyncIterableResponse','length','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','_prepareRequestParameters','2999400uXEYkg','send','completion','generation','anthropic.claude','295DxgInZ','\x0a\x0aAssistant:','json','30zKYdlb','\x0a<</SYS>>\x0a[INST]\x0a','<<SYS>>\x0a','ai21.j2','text','abortController','_getGeneratedText','parse','ai.assistant.adapter.aws.requestHeaders','stringify','_prepareRequestHeaders','resolve','634qjfKZS','split','_requestParameters','POST','getReader','data','body','_bedrockClientConfig','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'];_0x3de5=function(){return _0x523fdd;};return _0x3de5();}export class AWSTextAdapter extends _0x31e91e{[_0x456733(0xcb)];[_0x456733(0x92)];[_0x456733(0xc5)];[_0x456733(0xc0)];static get[_0x456733(0xda)](){const _0x504c63=_0x456733;return _0x504c63(0x9c);}constructor(_0x522d95){const _0x5a4c18=_0x456733;super(_0x522d95),_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x99))||_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0xcc)](_0x5a4c18(0x99),{'model':_0x5a4c18(0xa3),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5a4c18(0xd7),'stream':!0x0}),this[_0x5a4c18(0xcb)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x9e)),this[_0x5a4c18(0xc5)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0xd2)),this[_0x5a4c18(0x92)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0xba)),this[_0x5a4c18(0xc0)]=_0x522d95[_0x5a4c18(0xc7)][_0x5a4c18(0x91)](_0x5a4c18(0x99));}async[_0x456733(0x9b)]({query:_0x3cd440,context:_0x3bd202,onData:_0x28a9a5,actionId:_0x75f431}){const _0x49e688=_0x456733,{model:_0x58af07,stream:_0x6bf84c,..._0x3cdfb1}=await this[_0x49e688(0xa9)](this[_0x49e688(0xc0)],_0x75f431),_0x39dcca={'prompt':await this[_0x49e688(0xd5)](_0x3cd440,_0x3bd202,_0x58af07,_0x75f431),..._0x3cdfb1};this[_0x49e688(0xcb)]?await this[_0x49e688(0x8f)](_0x39dcca,_0x58af07,_0x6bf84c,_0x28a9a5,_0x75f431):await this[_0x49e688(0xd1)](_0x39dcca,_0x58af07,_0x6bf84c,_0x28a9a5);}async[_0x456733(0xd5)](_0x35850c,_0x31ac91,_0x5216b5,_0x3de78f){const _0x4f5f3b=_0x456733;let _0x1a64b1,_0x106375;return _0x31ac91?(_0x1a64b1=_0x4f5f3b(0xa7),_0x106375=_0x4f5f3b(0xa0)+_0x35850c+_0x4f5f3b(0xc6)+_0x31ac91):(_0x1a64b1=_0x4f5f3b(0xc9),_0x106375=_0x35850c),_0x4f5f3b(0xd9)==this[_0x4f5f3b(0xcf)](_0x5216b5)?_0x4f5f3b(0xb4)+_0x1a64b1+_0x4f5f3b(0xb3)+_0x106375+_0x4f5f3b(0xd6):_0x4f5f3b(0xca)+_0x1a64b1+'\x0a'+_0x106375+_0x4f5f3b(0xb0);}[_0x456733(0xcf)](_0x4f070f){const _0x475d3a=_0x456733;if(/^anthropic\.claude/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xae);if(/^ai21\.j2/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xb5);if(/^cohere\.command/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0x93);if(/^meta\.llama/[_0x475d3a(0xc8)](_0x4f070f))return _0x475d3a(0xd9);throw new _0x16bd1b(_0x23067b(this[_0x475d3a(0xce)][_0x475d3a(0x9a)],_0x475d3a(0xd0),_0x4f070f));}async[_0x456733(0x8f)](_0x1dd994,_0x3be364,_0x2fa62c,_0x23f3b1,_0x2e1f6f){const _0x44236c=_0x456733,_0x101646={'method':_0x44236c(0xc1),'headers':await this[_0x44236c(0xbc)](this[_0x44236c(0x92)],_0x2e1f6f),'body':JSON[_0x44236c(0xbb)]({..._0x1dd994,'model':_0x3be364,'stream':_0x2fa62c}),'signal':this[_0x44236c(0xb7)][_0x44236c(0x98)]},_0x1b8a89=await fetch(this[_0x44236c(0xcb)],_0x101646);_0x2fa62c?await this[_0x44236c(0x95)](_0x1b8a89,_0x3be364,_0x23f3b1):await this[_0x44236c(0x97)](_0x1b8a89,_0x3be364,_0x23f3b1);}async[_0x456733(0xd1)](_0x559110,_0x1c5e9d,_0x967f40,_0x5b939e){const _0x22cd69=_0x456733,_0x38f6c1=new _0x36b50b(this[_0x22cd69(0xc5)]),_0x1149f0={'body':JSON[_0x22cd69(0xbb)](_0x559110),'contentType':_0x22cd69(0x8b),'accept':_0x22cd69(0x8b),'modelId':_0x1c5e9d};let _0x47be68;if(_0x967f40){const _0x3a4ebf=new _0x2d7e9c(_0x1149f0);_0x47be68=await _0x38f6c1[_0x22cd69(0xab)](_0x3a4ebf,{'abortSignal':this[_0x22cd69(0xb7)][_0x22cd69(0x98)]}),await this[_0x22cd69(0xa5)](_0x47be68,_0x1c5e9d,_0x5b939e);}else{const _0x291a17=new _0x1cb2c7(_0x1149f0);_0x47be68=await _0x38f6c1[_0x22cd69(0xab)](_0x291a17,{'abortSignal':this[_0x22cd69(0xb7)][_0x22cd69(0x98)]}),await this[_0x22cd69(0x97)](_0x47be68,_0x1c5e9d,_0x5b939e);}}async[_0x456733(0xa5)](_0x46ddb8,_0x51f972,_0x27e25a){const _0x533eba=_0x456733,_0x20e11c=_0x46ddb8[_0x533eba(0xc4)],_0x42cadc=new TextDecoder(_0x533eba(0xd3));let _0x253e19='';for await(const _0xf143e1 of _0x20e11c)if(_0xf143e1[_0x533eba(0xdb)]){const _0x31b2ba=_0x42cadc[_0x533eba(0x94)](_0xf143e1[_0x533eba(0xdb)][_0x533eba(0x8d)]),_0x282f56=JSON[_0x533eba(0xb9)](_0x31b2ba);_0x253e19+=this[_0x533eba(0xb8)](_0x282f56,_0x51f972),_0x27e25a(_0x253e19);}return Promise[_0x533eba(0xbd)]();}async[_0x456733(0x95)](_0x5440ad,_0x538707,_0x55373c){const _0x14be0e=_0x456733,_0x3ed116=_0x5440ad[_0x14be0e(0xc4)],_0x3f5bec=new TextDecoder(_0x14be0e(0xd3)),_0x382426=_0x3ed116[_0x14be0e(0xc2)]();let _0x4e7f53='',_0x2131d0='',_0x416c83=!0x1;for(;!_0x416c83;){const {done:_0x29b299,value:_0x17dbc2}=await _0x382426[_0x14be0e(0x8c)]();if(_0x416c83=_0x29b299,_0x416c83)break;const _0x52ed66=(_0x4e7f53+_0x3f5bec[_0x14be0e(0x94)](_0x17dbc2))[_0x14be0e(0xbf)]('\x0a')[_0x14be0e(0xa8)](_0x9a2ae1=>{const _0x43d196=_0x14be0e;try{return _0x4e7f53='',JSON[_0x43d196(0xb9)](_0x9a2ae1);}catch{return _0x4e7f53=_0x9a2ae1,null;}})[_0x14be0e(0xd4)](_0x186e77=>null!==_0x186e77);_0x52ed66[_0x14be0e(0xa6)]&&(_0x2131d0+=_0x52ed66[_0x14be0e(0xa8)](_0x1f2e83=>this[_0x14be0e(0xb8)](_0x1f2e83,_0x538707))[_0x14be0e(0x96)](''),_0x55373c(_0x2131d0));}return Promise[_0x14be0e(0xbd)]();}async[_0x456733(0x97)](_0x4072c8,_0x2a1cc0,_0x1c98ba){const _0x35f26b=_0x456733;let _0x3cb9bb;return _0x3cb9bb=_0x4072c8 instanceof Response?await _0x4072c8[_0x35f26b(0xb1)]():JSON[_0x35f26b(0xb9)](new TextDecoder(_0x35f26b(0xd3))[_0x35f26b(0x94)](_0x4072c8[_0x35f26b(0xc4)])),(_0x1c98ba(this[_0x35f26b(0xb8)](_0x3cb9bb,_0x2a1cc0)),Promise[_0x35f26b(0xbd)]());}[_0x456733(0xb8)](_0x4808aa,_0x844e85){const _0x40412c=_0x456733;switch(this[_0x40412c(0xcf)](_0x844e85)){case _0x40412c(0xae):return _0x4808aa[_0x40412c(0xac)];case _0x40412c(0xb5):return _0x4808aa[_0x40412c(0xa4)][0x0][_0x40412c(0xc3)][_0x40412c(0xb6)];case _0x40412c(0x93):return _0x4808aa[_0x40412c(0x9d)][0x0][_0x40412c(0xb6)];case _0x40412c(0xd9):return _0x4808aa[_0x40412c(0xad)];}}}
@@ -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 _0x4ee92e=_0x2835;(function(_0x326fee,_0x4f15d8){const _0xaf97a6=_0x2835,_0x34bff5=_0x326fee();while(!![]){try{const _0x4805df=-parseInt(_0xaf97a6(0xbc))/0x1*(parseInt(_0xaf97a6(0xe1))/0x2)+-parseInt(_0xaf97a6(0xe6))/0x3*(-parseInt(_0xaf97a6(0xc6))/0x4)+parseInt(_0xaf97a6(0xc8))/0x5*(parseInt(_0xaf97a6(0xb0))/0x6)+parseInt(_0xaf97a6(0xb8))/0x7*(parseInt(_0xaf97a6(0xf2))/0x8)+-parseInt(_0xaf97a6(0xbe))/0x9*(-parseInt(_0xaf97a6(0xc3))/0xa)+-parseInt(_0xaf97a6(0xbb))/0xb*(parseInt(_0xaf97a6(0xd5))/0xc)+parseInt(_0xaf97a6(0xe2))/0xd;if(_0x4805df===_0x4f15d8)break;else _0x34bff5['push'](_0x34bff5['shift']());}catch(_0x2cfb5b){_0x34bff5['push'](_0x34bff5['shift']());}}}(_0x2b2d,0xe9d6e));import{AITextAdapter as _0x1aeee1}from'./aitextadapter.js';function _0x2835(_0x2dff34,_0x4d71e7){const _0x2b2d7f=_0x2b2d();return _0x2835=function(_0x283541,_0x4eca0b){_0x283541=_0x283541-0xb0;let _0x17613c=_0x2b2d7f[_0x283541];return _0x17613c;},_0x2835(_0x2dff34,_0x4d71e7);}import{AIRequestError as _0x43adc0}from'./aiadapter.js';function _0x2b2d(){const _0x37cb73=['join','choices','gpt-4o','6vrAcUs','_readStaticResponse','https://api.openai.com/v1/chat/completions','abortController','split','parse','pluginName','_prepareRequestHeaders','1978151GFhGpI','data:\x20','stringify','1235179uyVqGx','1864orEevA','define','171duRVHm','body','Moderation','resolve','AI_ERROR_CONTEXT_LENGTH','760570WOYTws','content','reject','3184kzdvFD','_readStreamableResponse','6224505SFBCuN','read','signal','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','decode','[DONE]','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_apiUrl','editor','204JcsHpP','context_length_exceeded','_cleanUpData','json','_prepareRequestParameters','stream','includes','_requestParameters','user','config','locale','ai.assistant.adapter.openAI.apiUrl','1052SShuCW','959790EbGhYB','POST','delta','system','3018vbkJcM','length','ai.assistant.adapter.openAI.requestHeaders','AI_ERROR_MODERATION','_requestHeaders','Instruction:\x0a','message','filter','ai.assistant.adapter.openAI.requestParameters','text','prepareMessages','replace','8gfwjma','map','_isBufferIncomplete','sendRequest'];_0x2b2d=function(){return _0x37cb73;};return _0x2b2d();}import{getTranslation as _0x28dba0}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1aeee1{[_0x4ee92e(0xd3)];[_0x4ee92e(0xea)];[_0x4ee92e(0xdc)];static get[_0x4ee92e(0xb6)](){const _0x20a709=_0x4ee92e;return _0x20a709(0xcb);}constructor(_0x223afd){const _0x27d768=_0x4ee92e;super(_0x223afd),_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xe0),_0x27d768(0xb2)),_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee))||_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xee),{'model':_0x27d768(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x27d768(0xd3)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe0)),this[_0x27d768(0xea)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe8))||{},this[_0x27d768(0xdc)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee));}async[_0x4ee92e(0xf5)]({query:_0x42a337,context:_0x25ea8b,onData:_0x19ab93,actionId:_0x39278c}){const _0x2e819e=_0x4ee92e,_0x6d2a5c=this[_0x2e819e(0xd4)][_0x2e819e(0xdf)],_0x365397=await this[_0x2e819e(0xf0)](_0x42a337,_0x25ea8b,_0x39278c),_0x14b724=await this[_0x2e819e(0xb7)](this[_0x2e819e(0xea)],_0x39278c),_0x4c7def=await this[_0x2e819e(0xd9)](this[_0x2e819e(0xdc)],_0x39278c),_0x5f4b03={'messages':_0x365397,..._0x4c7def},_0xc846={'method':_0x2e819e(0xe3),'headers':_0x14b724,'body':JSON[_0x2e819e(0xba)](_0x5f4b03),'signal':this[_0x2e819e(0xb3)][_0x2e819e(0xca)]},_0x5eeaab=await fetch(this[_0x2e819e(0xd3)],_0xc846);if(_0x5eeaab['ok'])return _0x4c7def[_0x2e819e(0xda)]?await this[_0x2e819e(0xc7)](_0x5eeaab,_0x19ab93):await this[_0x2e819e(0xb1)](_0x5eeaab,_0x19ab93),Promise[_0x2e819e(0xc1)]();{const _0x4cbd91=await _0x5eeaab[_0x2e819e(0xef)]();return _0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xd6))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xc2)))):_0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xc0))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xe9)))):Promise[_0x2e819e(0xc5)](new Error(_0x4cbd91));}}async[_0x4ee92e(0xf0)](_0x11c0d5,_0x21070b,_0xc5ae7b){const _0x4c895c=_0x4ee92e;let _0x3b77a4,_0x24cc42;return _0x21070b?(_0x3b77a4=_0x4c895c(0xd2),_0x24cc42=_0x4c895c(0xeb)+_0x11c0d5+_0x4c895c(0xce)+_0x21070b):(_0x3b77a4=_0x4c895c(0xcc),_0x24cc42=_0x11c0d5),[{'role':_0x4c895c(0xe5),'content':_0x3b77a4},{'role':_0x4c895c(0xdd),'content':_0x24cc42}];}async[_0x4ee92e(0xc7)](_0x3a8511,_0x3d48d5){const _0x53dc92=_0x4ee92e,_0x4152e2=_0x3a8511[_0x53dc92(0xbf)][_0x53dc92(0xcf)](),_0x386838=new TextDecoder();let _0x624328='',_0xb3bb77='',_0x578abb='',_0x1a86e5=!0x1;for(;!_0x1a86e5;){const {done:_0x686f19,value:_0x24a6d6}=await _0x4152e2[_0x53dc92(0xc9)](),_0x261d2a=_0x624328+_0x386838[_0x53dc92(0xd0)](_0x24a6d6);let _0x1d589a='';_0x1a86e5=_0x686f19;try{_0x1d589a=this[_0x53dc92(0xd7)](_0x261d2a),_0x624328='';}catch{_0x624328=_0x261d2a;continue;}_0xb3bb77+=_0x1d589a,!_0x1a86e5&&this[_0x53dc92(0xf4)](_0xb3bb77)||_0xb3bb77&&(_0x578abb+=_0xb3bb77,_0xb3bb77='',_0x3d48d5(_0x578abb));}return Promise[_0x53dc92(0xc1)]();}async[_0x4ee92e(0xb1)](_0x3042d9,_0x26c179){const _0x2f82f0=_0x4ee92e;return _0x26c179((await _0x3042d9[_0x2f82f0(0xd8)]())[_0x2f82f0(0xf7)][0x0][_0x2f82f0(0xec)][_0x2f82f0(0xc4)]),Promise[_0x2f82f0(0xc1)]();}[_0x4ee92e(0xf4)](_0x393454){const _0x5ccbd6=_0x4ee92e,_0x4b22e6=_0x393454[_0x5ccbd6(0xb4)]('<')[_0x5ccbd6(0xe7)]!==_0x393454[_0x5ccbd6(0xb4)]('>')[_0x5ccbd6(0xe7)],_0x1b3f52=_0x393454[_0x5ccbd6(0xe7)]<0x1e;return _0x4b22e6&&_0x1b3f52;}[_0x4ee92e(0xd7)](_0x1d7408){const _0x4fe7f2=_0x4ee92e;return _0x1d7408[_0x4fe7f2(0xb4)](/\n(?![^{]*\})/g)[_0x4fe7f2(0xf3)](_0x25faf5=>_0x25faf5[_0x4fe7f2(0xf1)](_0x4fe7f2(0xb9),''))[_0x4fe7f2(0xed)](_0x921ccf=>_0x921ccf&&_0x921ccf[_0x4fe7f2(0xe7)]>0x0&&_0x4fe7f2(0xd1)!==_0x921ccf)[_0x4fe7f2(0xf3)](_0x351606=>{const _0x2878fc=_0x4fe7f2,{choices:_0x49d2d0}=JSON[_0x2878fc(0xb5)](_0x351606);if(_0x49d2d0[0x0]?.[_0x2878fc(0xe4)]?.[_0x2878fc(0xc4)])return _0x49d2d0[0x0][_0x2878fc(0xe4)][_0x2878fc(0xc4)];})[_0x4fe7f2(0xed)](_0x4f1862=>_0x4f1862)[_0x4fe7f2(0xf6)]('');}}
23
+ const _0x41cab7=_0x493d;(function(_0xed6bac,_0x44020d){const _0x1cb59f=_0x493d,_0x460bf0=_0xed6bac();while(!![]){try{const _0x4ed0c5=-parseInt(_0x1cb59f(0x1db))/0x1*(parseInt(_0x1cb59f(0x1c5))/0x2)+-parseInt(_0x1cb59f(0x1bc))/0x3*(-parseInt(_0x1cb59f(0x1e1))/0x4)+-parseInt(_0x1cb59f(0x1c7))/0x5*(parseInt(_0x1cb59f(0x1dd))/0x6)+parseInt(_0x1cb59f(0x1b6))/0x7+-parseInt(_0x1cb59f(0x1b8))/0x8*(parseInt(_0x1cb59f(0x1b1))/0x9)+-parseInt(_0x1cb59f(0x1f4))/0xa*(-parseInt(_0x1cb59f(0x1e9))/0xb)+-parseInt(_0x1cb59f(0x1ba))/0xc*(-parseInt(_0x1cb59f(0x1b2))/0xd);if(_0x4ed0c5===_0x44020d)break;else _0x460bf0['push'](_0x460bf0['shift']());}catch(_0x49e2ab){_0x460bf0['push'](_0x460bf0['shift']());}}}(_0x170b,0xb00d9));function _0x493d(_0x1318b8,_0x4f3c22){const _0x170b0c=_0x170b();return _0x493d=function(_0x493d70,_0xcd0517){_0x493d70=_0x493d70-0x1ae;let _0x64be2b=_0x170b0c[_0x493d70];return _0x64be2b;},_0x493d(_0x1318b8,_0x4f3c22);}function _0x170b(){const _0x5e3d3a=['parse','user','split','10fuoBaC','text','Moderation','_prepareRequestHeaders','resolve','_readStaticResponse','6801552ikEeYN','13QqIkhQ','data:\x20','replace','getReader','2815295ECzVvz','_isBufferIncomplete','8tClcHT','OpenAITextAdapter','12205848QyQwYI','AI_ERROR_CONTEXT_LENGTH','15UKiGYp','sendRequest','_cleanUpData','get','read','reject','Instruction:\x0a','ai.assistant.adapter.openAI.apiUrl','_apiUrl','2ZeulOd','stream','20230QSKNAn','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','locale','decode','delta','message','context_length_exceeded','AI_ERROR_MODERATION','abortController','content','editor','[DONE]','_readStreamableResponse','stringify','POST','signal','gpt-4o','pluginName','ai.assistant.adapter.openAI.requestHeaders','filter','638908UNUmCV','_requestHeaders','1698gAPgJS','includes','length','config','632444qdkQzK','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_requestParameters','join','prepareMessages','map','body','choices','11559603pvHTsd','ai.assistant.adapter.openAI.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','json','define','system','_prepareRequestParameters','https://api.openai.com/v1/chat/completions'];_0x170b=function(){return _0x5e3d3a;};return _0x170b();}import{AITextAdapter as _0x528399}from'./aitextadapter.js';import{AIRequestError as _0xf173eb}from'./aiadapter.js';import{getTranslation as _0x4e4069}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x528399{[_0x41cab7(0x1c4)];[_0x41cab7(0x1dc)];[_0x41cab7(0x1e3)];static get[_0x41cab7(0x1d8)](){const _0x478d56=_0x41cab7;return _0x478d56(0x1b9);}constructor(_0x2e5aad){const _0x2c9e83=_0x41cab7;super(_0x2e5aad),_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1ed)](_0x2c9e83(0x1c3),_0x2c9e83(0x1f0)),_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1ea))||_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1ed)](_0x2c9e83(0x1ea),{'model':_0x2c9e83(0x1d7),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x2c9e83(0x1c4)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1c3)),this[_0x2c9e83(0x1dc)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1d9))||{},this[_0x2c9e83(0x1e3)]=_0x2e5aad[_0x2c9e83(0x1e0)][_0x2c9e83(0x1bf)](_0x2c9e83(0x1ea));}async[_0x41cab7(0x1bd)]({query:_0x36a46b,context:_0x100a0c,onData:_0x15fd4d,actionId:_0x5896ec}){const _0x473416=_0x41cab7,_0x5daebc=this[_0x473416(0x1d1)][_0x473416(0x1c9)],_0x558063=await this[_0x473416(0x1e5)](_0x36a46b,_0x100a0c,_0x5896ec),_0x4f58f4=await this[_0x473416(0x1ae)](this[_0x473416(0x1dc)],_0x5896ec),_0x5d10f6=await this[_0x473416(0x1ef)](this[_0x473416(0x1e3)],_0x5896ec),_0x323243={'messages':_0x558063,..._0x5d10f6},_0x32835e={'method':_0x473416(0x1d5),'headers':_0x4f58f4,'body':JSON[_0x473416(0x1d4)](_0x323243),'signal':this[_0x473416(0x1cf)][_0x473416(0x1d6)]},_0x5a9a2b=await fetch(this[_0x473416(0x1c4)],_0x32835e);if(_0x5a9a2b['ok'])return _0x5d10f6[_0x473416(0x1c6)]?await this[_0x473416(0x1d3)](_0x5a9a2b,_0x15fd4d):await this[_0x473416(0x1b0)](_0x5a9a2b,_0x15fd4d),Promise[_0x473416(0x1af)]();{const _0x9b5415=await _0x5a9a2b[_0x473416(0x1f5)]();return _0x9b5415[_0x473416(0x1de)](_0x473416(0x1cd))?Promise[_0x473416(0x1c1)](new _0xf173eb(_0x4e4069(_0x5daebc,_0x473416(0x1bb)))):_0x9b5415[_0x473416(0x1de)](_0x473416(0x1f6))?Promise[_0x473416(0x1c1)](new _0xf173eb(_0x4e4069(_0x5daebc,_0x473416(0x1ce)))):Promise[_0x473416(0x1c1)](new Error(_0x9b5415));}}async[_0x41cab7(0x1e5)](_0x40b9f6,_0xdef750,_0x278f25){const _0x4fc0cf=_0x41cab7;let _0x18f57e,_0x45c3e5;return _0xdef750?(_0x18f57e=_0x4fc0cf(0x1c8),_0x45c3e5=_0x4fc0cf(0x1c2)+_0x40b9f6+_0x4fc0cf(0x1eb)+_0xdef750):(_0x18f57e=_0x4fc0cf(0x1e2),_0x45c3e5=_0x40b9f6),[{'role':_0x4fc0cf(0x1ee),'content':_0x18f57e},{'role':_0x4fc0cf(0x1f2),'content':_0x45c3e5}];}async[_0x41cab7(0x1d3)](_0x4f55b0,_0x1bd6f8){const _0x27c216=_0x41cab7,_0x222645=_0x4f55b0[_0x27c216(0x1e7)][_0x27c216(0x1b5)](),_0x57c50e=new TextDecoder();let _0x306fb8='',_0x49c75c='',_0x23d241='',_0x4be72b=!0x1;for(;!_0x4be72b;){const {done:_0x273e4c,value:_0xac9368}=await _0x222645[_0x27c216(0x1c0)](),_0x4ba71c=_0x306fb8+_0x57c50e[_0x27c216(0x1ca)](_0xac9368);let _0x379320='';_0x4be72b=_0x273e4c;try{_0x379320=this[_0x27c216(0x1be)](_0x4ba71c),_0x306fb8='';}catch{_0x306fb8=_0x4ba71c;continue;}_0x49c75c+=_0x379320,!_0x4be72b&&this[_0x27c216(0x1b7)](_0x49c75c)||_0x49c75c&&(_0x23d241+=_0x49c75c,_0x49c75c='',_0x1bd6f8(_0x23d241));}return Promise[_0x27c216(0x1af)]();}async[_0x41cab7(0x1b0)](_0x12fdfe,_0x459061){const _0x29a241=_0x41cab7;return _0x459061((await _0x12fdfe[_0x29a241(0x1ec)]())[_0x29a241(0x1e8)][0x0][_0x29a241(0x1cc)][_0x29a241(0x1d0)]),Promise[_0x29a241(0x1af)]();}[_0x41cab7(0x1b7)](_0x4a1d2c){const _0xb9acf9=_0x41cab7,_0x437118=_0x4a1d2c[_0xb9acf9(0x1f3)]('<')[_0xb9acf9(0x1df)]!==_0x4a1d2c[_0xb9acf9(0x1f3)]('>')[_0xb9acf9(0x1df)],_0x58e5b0=_0x4a1d2c[_0xb9acf9(0x1df)]<0x1e;return _0x437118&&_0x58e5b0;}[_0x41cab7(0x1be)](_0x5ca195){const _0x14c6cd=_0x41cab7;return _0x5ca195[_0x14c6cd(0x1f3)](/\n(?![^{]*\})/g)[_0x14c6cd(0x1e6)](_0xd9b846=>_0xd9b846[_0x14c6cd(0x1b4)](_0x14c6cd(0x1b3),''))[_0x14c6cd(0x1da)](_0x34a62f=>_0x34a62f&&_0x34a62f[_0x14c6cd(0x1df)]>0x0&&_0x14c6cd(0x1d2)!==_0x34a62f)[_0x14c6cd(0x1e6)](_0x486785=>{const _0x2afb60=_0x14c6cd,{choices:_0x164b2b}=JSON[_0x2afb60(0x1f1)](_0x486785);if(_0x164b2b[0x0]?.[_0x2afb60(0x1cb)]?.[_0x2afb60(0x1d0)])return _0x164b2b[0x0][_0x2afb60(0x1cb)][_0x2afb60(0x1d0)];})[_0x14c6cd(0x1da)](_0x28a0e3=>_0x28a0e3)[_0x14c6cd(0x1e4)]('');}}
@@ -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
  /**