@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb798fa=_0x4bbb;function _0xe262(){const _0x1e4713=['ai-chat-interaction-error','replyCreated','_isWebSearching','callId','splice','stopListening','setConversationTitle','replies','createReply','find','webSearchFinished','interactionCreated','getStream','getDocumentContext','replyChangeGroupStateUpdated','7025298bdAcSZ','appendContent','reasoning','stop','reasoningFinished','conversationTitle','connector','getReply','isDestroyed','3873975HEvPeb','1243681TxUQpG','length','332108zcfKAx','interactionStarted','push','event','delegate','editor','sources','message-metadata','webSearchStarted','textDelta','replyContentUpdated','2987844XVBJTZ','currentRequest','start','content','isStopped','interactionStopped','ai-interaction-invalid-event-type','24152744PtnqrP','abort','_isReasoning','6exarXq','actionCallId','destroy','error','1512910CxTBNg','sendRequest','_finalizeInteraction','currentReply','interactionDestroyed','modification-delta','forEach','source','abortController','fire','interactionFinished','action-metadata','web-search','done','data','messageId','reasoningStarted'];_0xe262=function(){return _0x1e4713;};return _0xe262();}(function(_0x4d17ec,_0x562db7){const _0x14f027=_0x4bbb,_0x3d01b0=_0x4d17ec();while(!![]){try{const _0x17e523=parseInt(_0x14f027(0xc7))/0x1+-parseInt(_0x14f027(0xc9))/0x2+-parseInt(_0x14f027(0xc6))/0x3+-parseInt(_0x14f027(0xd4))/0x4+parseInt(_0x14f027(0xe2))/0x5*(-parseInt(_0x14f027(0xde))/0x6)+-parseInt(_0x14f027(0xbd))/0x7+parseInt(_0x14f027(0xdb))/0x8;if(_0x17e523===_0x562db7)break;else _0x3d01b0['push'](_0x3d01b0['shift']());}catch(_0x167dba){_0x3d01b0['push'](_0x3d01b0['shift']());}}}(_0xe262,0xb7a6e));import{CKEditorError as _0x138bd2,EmitterMixin as _0x567a7b,logWarning as _0x10789e,uid as _0x2451c8}from'ckeditor5/src/utils.js';import{AIReply as _0x386ec0,isIgnoredReplyType as _0x5b92f8,isValidReplyType as _0x538c6e,isReplyTitleType as _0x3ee21b,isSourceType as _0x405c0f}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0xb798fa(0xb9),_0xb798fa(0xca),_0xb798fa(0xd9),_0xb798fa(0xec),_0xb798fa(0xe6),_0xb798fa(0xf4),_0xb798fa(0xd3),_0xb798fa(0xbc),_0xb798fa(0xb4),_0xb798fa(0xd1),_0xb798fa(0xb8),_0xb798fa(0xf2),_0xb798fa(0xc1),_0xb798fa(0xe1)];function _0x4bbb(_0x1188c5,_0x5de7c4){const _0xe26244=_0xe262();return _0x4bbb=function(_0x4bbb16,_0xd3faf0){_0x4bbb16=_0x4bbb16-0xb4;let _0x3dc6fd=_0xe26244[_0x4bbb16];return _0x3dc6fd;},_0x4bbb(_0x1188c5,_0x5de7c4);}export class AIInteraction extends _0x567a7b(){['id'];[_0xb798fa(0xb5)]=[];[_0xb798fa(0xe5)];[_0xb798fa(0xf1)];[_0xb798fa(0xdf)];[_0xb798fa(0xd5)];[_0xb798fa(0xc3)];[_0xb798fa(0xd8)]=!0x1;[_0xb798fa(0xc5)]=!0x1;[_0xb798fa(0xce)];[_0xb798fa(0xdd)]=!0x1;[_0xb798fa(0xf5)]=!0x1;constructor({connector:_0x1303c4,editor:_0x3d26d0}){const _0x187c47=_0xb798fa;super(),this['id']=_0x2451c8(),this[_0x187c47(0xc3)]=_0x1303c4,this[_0x187c47(0xd8)]=!0x0,this[_0x187c47(0xce)]=_0x3d26d0;}async[_0xb798fa(0xd6)](){const _0x4fbce0=_0xb798fa;let _0x3a6f46;const _0x9d5f8e=[];this[_0x4fbce0(0xd8)]=!0x1;try{this[_0x4fbce0(0xd5)]=await this[_0x4fbce0(0xe3)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xca),this);const _0x290ab3=await this[_0x4fbce0(0xd5)][_0x4fbce0(0xba)]();for await(const _0x152917 of _0x290ab3){if(this[_0x4fbce0(0xd8)])return;if(_0x4fbce0(0xe1)===_0x152917[_0x4fbce0(0xcc)])return void this[_0x4fbce0(0xeb)](_0x4fbce0(0xe1),{'error':new _0x138bd2(_0x4fbce0(0xf3),this)});if(_0x4fbce0(0xd0)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x4fbce0(0xed)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x3ee21b(_0x152917[_0x4fbce0(0xcc)])&&this[_0x4fbce0(0xb4)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xc2)],!0x0),_0x405c0f(_0x152917[_0x4fbce0(0xcc)]))_0x9d5f8e[_0x4fbce0(0xcb)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xe9)]);else{if(_0x538c6e(_0x152917[_0x4fbce0(0xcc)])){if(_0x152917[_0x4fbce0(0xcc)]!==_0x3a6f46){if(_0x3a6f46=_0x152917[_0x4fbce0(0xcc)],_0x4fbce0(0xee)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xf5)]||(this[_0x4fbce0(0xf5)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xd1),this));continue;}if(_0x4fbce0(0xbf)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xdd)]||(this[_0x4fbce0(0xdd)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xf2),this));continue;}this[_0x4fbce0(0xdd)]&&(this[_0x4fbce0(0xdd)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xc1),this)),this[_0x4fbce0(0xf5)]&&(this[_0x4fbce0(0xf5)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xb8),this)),this[_0x4fbce0(0xe5)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xef)](),this[_0x4fbce0(0xe5)]=this[_0x4fbce0(0xb6)]({'type':_0x152917[_0x4fbce0(0xcc)],'interactionId':this['id']}),_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&_0x4fbce0(0xe7)===_0x152917[_0x4fbce0(0xcc)]&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0));}_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xbe)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]);}else _0x5b92f8(_0x152917[_0x4fbce0(0xcc)])||_0x10789e(_0x4fbce0(0xda),{'chunk':_0x152917});}}else this[_0x4fbce0(0xdf)]=_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xf6)];}else this[_0x4fbce0(0xf1)]=_0x152917[_0x4fbce0(0xf0)]['id'];}}finally{this[_0x4fbce0(0xd8)]||(_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0)),this[_0x4fbce0(0xe4)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xec),this));}}[_0xb798fa(0xc0)](){const _0x2223d7=_0xb798fa;this[_0x2223d7(0xd8)]||(this[_0x2223d7(0xe4)](),this[_0x2223d7(0xeb)](_0x2223d7(0xd9),this));}[_0xb798fa(0xc4)](_0x3c41ea){const _0x200702=_0xb798fa;return this[_0x200702(0xb5)][_0x200702(0xb7)](_0x51f5ff=>_0x51f5ff['id']===_0x3c41ea);}[_0xb798fa(0xe0)](){const _0x1acc88=_0xb798fa;this[_0x1acc88(0xc5)]||(this[_0x1acc88(0xc0)](),this[_0x1acc88(0xb5)][_0x1acc88(0xe8)](_0xc40faa=>_0xc40faa[_0x1acc88(0xe0)]()),this[_0x1acc88(0xb5)]=[],this[_0x1acc88(0xc5)]=!0x0,this[_0x1acc88(0xeb)](_0x1acc88(0xe6),this),this[_0x1acc88(0xf8)]());}[_0xb798fa(0xb6)](_0x540f65){const _0x2c634d=_0xb798fa,_0x1f9589=new _0x386ec0({'editor':this[_0x2c634d(0xce)],'documentContextContent':this[_0x2c634d(0xbb)]()?.[_0x2c634d(0xd7)],..._0x540f65});return this[_0x2c634d(0xb5)][_0x2c634d(0xcb)](_0x1f9589),_0x1f9589[_0x2c634d(0xcd)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2c634d(0xeb)](_0x2c634d(0xf4),_0x1f9589),_0x1f9589;}[_0xb798fa(0xb4)](_0x2f6373,_0x48a194=!0x1){const _0x10b538=_0xb798fa;this[_0x10b538(0xeb)](_0x10b538(0xb4),_0x2f6373,_0x48a194);}[_0xb798fa(0xe4)](){const _0x45a374=_0xb798fa;this[_0x45a374(0xd8)]=!0x0,this[_0x45a374(0xd5)]&&this[_0x45a374(0xd5)][_0x45a374(0xea)][_0x45a374(0xdc)](),this[_0x45a374(0xe5)]&&this[_0x45a374(0xe5)][_0x45a374(0xef)](),this[_0x45a374(0xd5)]=this[_0x45a374(0xe5)]=void 0x0;}}
23
+ const _0x45d5f6=_0xd85b;(function(_0x4744aa,_0x2fd40c){const _0x283507=_0xd85b,_0x2101aa=_0x4744aa();while(!![]){try{const _0xf2b0db=-parseInt(_0x283507(0x132))/0x1+-parseInt(_0x283507(0x13d))/0x2*(parseInt(_0x283507(0x148))/0x3)+-parseInt(_0x283507(0x137))/0x4*(-parseInt(_0x283507(0x128))/0x5)+parseInt(_0x283507(0x140))/0x6+-parseInt(_0x283507(0x112))/0x7+-parseInt(_0x283507(0x117))/0x8*(-parseInt(_0x283507(0x111))/0x9)+parseInt(_0x283507(0x136))/0xa*(parseInt(_0x283507(0x149))/0xb);if(_0xf2b0db===_0x2fd40c)break;else _0x2101aa['push'](_0x2101aa['shift']());}catch(_0x2b42a1){_0x2101aa['push'](_0x2101aa['shift']());}}}(_0xb2a2,0x995c5));import{CKEditorError as _0x1849fc,EmitterMixin as _0x2a4cec,logWarning as _0x144baf,uid as _0x431a21}from'ckeditor5/src/utils.js';import{AIReply as _0x4f1ff7,isIgnoredReplyType as _0x59e578,isValidReplyType as _0x4e10fe,isReplyTitleType as _0x8b6651,isSourceType as _0x4ceecf}from'./aireply.js';function _0xb2a2(){const _0x31771b=['26732nyafsA','actionCallId','replyChangeGroupStateUpdated','done','find','getDocumentContext','6622jtAuoq','replyCreated','abortController','598260avCVDn','reasoningStarted','data','abort','source','event','stopListening','reasoningFinished','834AROIBb','11hskOlP','webSearchStarted','error','getStream','splice','reasoning','delegate','push','createReply','interactionCreated','getReply','callId','textDelta','messageId','content','length','9iSNyHV','504994gFYzfw','_finalizeInteraction','destroy','message-metadata','ai-chat-interaction-error','573256KCWvjK','interactionStarted','interactionStopped','replies','currentRequest','sources','start','modification-delta','replyContentUpdated','conversationTitle','_isReasoning','connector','stop','appendContent','web-search','forEach','isDestroyed','595SpdQrn','_isWebSearching','webSearchFinished','sendRequest','currentReply','fire','action-metadata','setConversationTitle','ai-interaction-invalid-event-type','interactionDestroyed','900059kiWtlQ','interactionFinished','editor','isStopped','15541800PbDCnp'];_0xb2a2=function(){return _0x31771b;};return _0xb2a2();}function _0xd85b(_0xc302e9,_0x1120da){const _0xb2a2b=_0xb2a2();return _0xd85b=function(_0xd85bf,_0x3e9763){_0xd85bf=_0xd85bf-0x103;let _0x4575b9=_0xb2a2b[_0xd85bf];return _0x4575b9;},_0xd85b(_0xc302e9,_0x1120da);}export const AI_MODEL_EVENT_NAMES=[_0x45d5f6(0x10a),_0x45d5f6(0x118),_0x45d5f6(0x119),_0x45d5f6(0x133),_0x45d5f6(0x131),_0x45d5f6(0x13e),_0x45d5f6(0x11f),_0x45d5f6(0x139),_0x45d5f6(0x12f),_0x45d5f6(0x14a),_0x45d5f6(0x12a),_0x45d5f6(0x141),_0x45d5f6(0x147),_0x45d5f6(0x103)];export class AIInteraction extends _0x2a4cec(){['id'];[_0x45d5f6(0x11a)]=[];[_0x45d5f6(0x12c)];[_0x45d5f6(0x10e)];[_0x45d5f6(0x138)];[_0x45d5f6(0x11b)];[_0x45d5f6(0x122)];[_0x45d5f6(0x135)]=!0x1;[_0x45d5f6(0x127)]=!0x1;[_0x45d5f6(0x134)];[_0x45d5f6(0x121)]=!0x1;[_0x45d5f6(0x129)]=!0x1;constructor({connector:_0x1dde6a,editor:_0xebc625}){const _0x466ff7=_0x45d5f6;super(),this['id']=_0x431a21(),this[_0x466ff7(0x122)]=_0x1dde6a,this[_0x466ff7(0x135)]=!0x0,this[_0x466ff7(0x134)]=_0xebc625;}async[_0x45d5f6(0x11d)](){const _0x4502ae=_0x45d5f6;let _0x29f5b2;const _0x1ce166=[];this[_0x4502ae(0x135)]=!0x1;try{this[_0x4502ae(0x11b)]=await this[_0x4502ae(0x12b)](),this[_0x4502ae(0x12d)](_0x4502ae(0x118),this);const _0x140a1c=await this[_0x4502ae(0x11b)][_0x4502ae(0x104)]();for await(const _0x225d2a of _0x140a1c){if(this[_0x4502ae(0x135)])return;if(_0x4502ae(0x103)===_0x225d2a[_0x4502ae(0x145)])return void this[_0x4502ae(0x12d)](_0x4502ae(0x103),{'error':new _0x1849fc(_0x4502ae(0x116),this)});if(_0x4502ae(0x115)!==_0x225d2a[_0x4502ae(0x145)]){if(_0x4502ae(0x12e)!==_0x225d2a[_0x4502ae(0x145)]){if(_0x8b6651(_0x225d2a[_0x4502ae(0x145)])&&this[_0x4502ae(0x12f)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x120)],!0x0),_0x4ceecf(_0x225d2a[_0x4502ae(0x145)]))_0x1ce166[_0x4502ae(0x108)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x144)]);else{if(_0x4e10fe(_0x225d2a[_0x4502ae(0x145)])){if(_0x225d2a[_0x4502ae(0x145)]!==_0x29f5b2){if(_0x29f5b2=_0x225d2a[_0x4502ae(0x145)],_0x4502ae(0x125)===_0x225d2a[_0x4502ae(0x145)]){this[_0x4502ae(0x129)]||(this[_0x4502ae(0x129)]=!0x0,this[_0x4502ae(0x12d)](_0x4502ae(0x14a),this));continue;}if(_0x4502ae(0x106)===_0x225d2a[_0x4502ae(0x145)]){this[_0x4502ae(0x121)]||(this[_0x4502ae(0x121)]=!0x0,this[_0x4502ae(0x12d)](_0x4502ae(0x141),this));continue;}this[_0x4502ae(0x121)]&&(this[_0x4502ae(0x121)]=!0x1,this[_0x4502ae(0x12d)](_0x4502ae(0x147),this)),this[_0x4502ae(0x129)]&&(this[_0x4502ae(0x129)]=!0x1,this[_0x4502ae(0x12d)](_0x4502ae(0x12a),this)),this[_0x4502ae(0x12c)]&&this[_0x4502ae(0x12c)][_0x4502ae(0x13a)](),this[_0x4502ae(0x12c)]=this[_0x4502ae(0x109)]({'type':_0x225d2a[_0x4502ae(0x145)],'interactionId':this['id'],'id':_0x225d2a[_0x4502ae(0x142)]?.['id']}),_0x1ce166[_0x4502ae(0x110)]>0x0&&_0x4502ae(0x11e)===_0x225d2a[_0x4502ae(0x145)]&&(this[_0x4502ae(0x12c)][_0x4502ae(0x11c)]=_0x1ce166[_0x4502ae(0x105)](0x0));}_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10d)]&&this[_0x4502ae(0x12c)][_0x4502ae(0x124)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10d)]);}else _0x59e578(_0x225d2a[_0x4502ae(0x145)])||_0x144baf(_0x4502ae(0x130),{'chunk':_0x225d2a});}}else this[_0x4502ae(0x138)]=_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10c)];}else this[_0x4502ae(0x10e)]=_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10e)];}}finally{this[_0x4502ae(0x135)]||(_0x1ce166[_0x4502ae(0x110)]>0x0&&(this[_0x4502ae(0x12c)][_0x4502ae(0x11c)]=_0x1ce166[_0x4502ae(0x105)](0x0)),this[_0x4502ae(0x113)](),this[_0x4502ae(0x12d)](_0x4502ae(0x133),this));}}[_0x45d5f6(0x123)](){const _0x3a77d9=_0x45d5f6;this[_0x3a77d9(0x135)]||(this[_0x3a77d9(0x113)](),this[_0x3a77d9(0x12d)](_0x3a77d9(0x119),this));}[_0x45d5f6(0x10b)](_0x312d0d){const _0x5d2ad5=_0x45d5f6;return this[_0x5d2ad5(0x11a)][_0x5d2ad5(0x13b)](_0x47dc8f=>_0x47dc8f['id']===_0x312d0d);}[_0x45d5f6(0x114)](){const _0x98a118=_0x45d5f6;this[_0x98a118(0x127)]||(this[_0x98a118(0x123)](),this[_0x98a118(0x11a)][_0x98a118(0x126)](_0x37da03=>_0x37da03[_0x98a118(0x114)]()),this[_0x98a118(0x11a)]=[],this[_0x98a118(0x127)]=!0x0,this[_0x98a118(0x12d)](_0x98a118(0x131),this),this[_0x98a118(0x146)]());}[_0x45d5f6(0x109)](_0x418872){const _0x1ff848=_0x45d5f6,_0x81de37=new _0x4f1ff7({'editor':this[_0x1ff848(0x134)],'documentContextContent':this[_0x1ff848(0x13c)]()?.[_0x1ff848(0x10f)],..._0x418872});return this[_0x1ff848(0x11a)][_0x1ff848(0x108)](_0x81de37),_0x81de37[_0x1ff848(0x107)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1ff848(0x12d)](_0x1ff848(0x13e),_0x81de37),_0x81de37;}[_0x45d5f6(0x12f)](_0x371532,_0x1d9101=!0x1){const _0x234142=_0x45d5f6;this[_0x234142(0x12d)](_0x234142(0x12f),_0x371532,_0x1d9101);}[_0x45d5f6(0x113)](){const _0x1550c4=_0x45d5f6;this[_0x1550c4(0x135)]=!0x0,this[_0x1550c4(0x11b)]&&this[_0x1550c4(0x11b)][_0x1550c4(0x13f)][_0x1550c4(0x143)](),this[_0x1550c4(0x12c)]&&this[_0x1550c4(0x12c)][_0x1550c4(0x13a)](),this[_0x1550c4(0x11b)]=this[_0x1550c4(0x12c)]=void 0x0;}}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/model/aimodels
7
+ * @publicApi
8
+ */
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
11
+ declare const AIModels_base: {
12
+ new (): import("ckeditor5/src/utils.js").Emitter;
13
+ prototype: import("ckeditor5/src/utils.js").Emitter;
14
+ };
15
+ /**
16
+ * Stores the list of available AI models acquired from the AI connector.
17
+ */
18
+ export declare class AIModels extends /* #__PURE__ */ AIModels_base {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor({ connector, availableModels, defaultModelId }: {
23
+ connector: AIConnector;
24
+ availableModels?: string | Array<string>;
25
+ defaultModelId?: string;
26
+ });
27
+ /**
28
+ * Returns a list of available models.
29
+ */
30
+ getAll(): Promise<Array<AIModelData>>;
31
+ /**
32
+ * Returns a list of available models, which corresponds to {@link #getAll all models} narrowed down
33
+ * by the `availableModels` passed to the {@link #constructor}.
34
+ *
35
+ * **Note:** `availableModels` may include ids, names, and/or providers.
36
+ */
37
+ getAvailableModels(): Promise<Array<AIModelData>>;
38
+ /**
39
+ * Returns a specific AI model from among {@link #getAll all models} by its id.
40
+ *
41
+ * **Note:** `'auto'` id always matches the `'agent*'` model.
42
+ */
43
+ getModel(modelId?: string): Promise<AIModelData | null>;
44
+ /**
45
+ * Returns default AI model among the {@link #getAvailableModels available models} accounting for the
46
+ * `defaultModelId` passed to the {@link #constructor}.
47
+ *
48
+ * **Note**: If `'auto'` id was specified as `defaultModelId` in the {@link #constructor}, it will match the `'agent*'` model.
49
+ */
50
+ getDefault(): Promise<AIModelData | null>;
51
+ /**
52
+ * Checks whether the given model is available among the {@link #getAvailableModels available models}.
53
+ */
54
+ isAvailable(model: AIModelData): Promise<boolean>;
55
+ /**
56
+ * Translates an arbitrary list of models using the given {@link module:utils/locale~Locale} instance.
57
+ *
58
+ * **Note:**
59
+ * * Models with `id`s starting with "agent" will be named "Auto" (localized) in the user interface and get a localized description.
60
+ * * The rest of models known to the translation service keep their original name but still get a localized description.
61
+ * * Models unknown to the translation service keep their original name and description.
62
+ */
63
+ static getLocalized(locale: Locale, models: Array<AIModelData>): Array<LocalizedAIModelData>;
64
+ }
65
+ export type LocalizedAIModelData = AIModelData;
66
+ export {};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x39524f=_0x10b9;(function(_0x13f4e8,_0x47cab6){const _0x4c4186=_0x10b9,_0x54e150=_0x13f4e8();while(!![]){try{const _0x3082c2=-parseInt(_0x4c4186(0x1c1))/0x1+parseInt(_0x4c4186(0x1a1))/0x2+-parseInt(_0x4c4186(0x1c5))/0x3*(parseInt(_0x4c4186(0x1ae))/0x4)+-parseInt(_0x4c4186(0x1c0))/0x5+parseInt(_0x4c4186(0x1a8))/0x6+-parseInt(_0x4c4186(0x1ab))/0x7*(-parseInt(_0x4c4186(0x1c3))/0x8)+-parseInt(_0x4c4186(0x1b4))/0x9*(-parseInt(_0x4c4186(0x1b9))/0xa);if(_0x3082c2===_0x47cab6)break;else _0x54e150['push'](_0x54e150['shift']());}catch(_0xf81db4){_0x54e150['push'](_0x54e150['shift']());}}}(_0xdfe7,0x4f356));import{CKEditorError as _0x2bd73a,EmitterMixin as _0x23b162,logWarning as _0x5462a6}from'ckeditor5/src/utils.js';function _0xdfe7(){const _0x591d0b=['ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_AUTO','items','_availableModels','10nRfPEy','toUpperCase','ai-chat-model-id-unrecognized','length','provider','AI_MODEL_DESCRIPTION_','_modelList','2206490ZLvRAF','30530IBevno','getModels','144efRgKR','_defaultModelId','183mxuIeV','some','ai-chat-default-model-id-unrecognized','_filterModels','name','getModel','getAll','startsWith','getDefault','378630Ypgaqp','toLocaleLowerCase','_getModelById','_connector','push','AI_MODEL_NAME_AUTO','map','3005538VeJDgQ','string','find','31451XBSuOi','getAvailableModels','list','31532WKGWEx','isAvailable','auto','agent','getLocalized','description','4554153NEGWcN'];_0xdfe7=function(){return _0x591d0b;};return _0xdfe7();}import{getTranslation as _0x499d47}from'../utils/common-translations.js';function _0x10b9(_0x37c5bf,_0xe9e514){const _0xdfe71a=_0xdfe7();return _0x10b9=function(_0x10b99e,_0x14531d){_0x10b99e=_0x10b99e-0x19f;let _0x4ad5ee=_0xdfe71a[_0x10b99e];return _0x4ad5ee;},_0x10b9(_0x37c5bf,_0xe9e514);}export class AIModels extends _0x23b162(){[_0x39524f(0x1a4)];[_0x39524f(0x1b8)];[_0x39524f(0x1c4)];[_0x39524f(0x1bf)]=[];constructor({connector:_0x4a5d0e,availableModels:_0x2cf6ba,defaultModelId:_0x9aa429}){const _0x1fc0ae=_0x39524f;super(),this[_0x1fc0ae(0x1a4)]=_0x4a5d0e,this[_0x1fc0ae(0x1b8)]=_0x2cf6ba,this[_0x1fc0ae(0x1c4)]=_0x9aa429;}async[_0x39524f(0x1cb)](){const _0x356ad0=_0x39524f;if(!this[_0x356ad0(0x1bf)][_0x356ad0(0x1bc)])try{const _0x53d2fc=this[_0x356ad0(0x1a4)][_0x356ad0(0x1c2)](),_0x412d3d=await _0x53d2fc[_0x356ad0(0x1ad)]();this[_0x356ad0(0x1bf)]=_0x412d3d[_0x356ad0(0x1b7)];}catch(_0x17acac){throw new _0x2bd73a(_0x356ad0(0x1b5),null,{'error':_0x17acac});}return[...this[_0x356ad0(0x1bf)]];}async[_0x39524f(0x1ac)](){const _0x3d7ae2=_0x39524f,_0x1212da=await this[_0x3d7ae2(0x1cb)]();return this[_0x3d7ae2(0x1c8)](_0x1212da,this[_0x3d7ae2(0x1b8)]);}async[_0x39524f(0x1ca)](_0x4577fc){const _0x490285=_0x39524f,_0x335b63=await this[_0x490285(0x1cb)]();if(!_0x335b63[_0x490285(0x1bc)])return null;if(_0x4577fc){const _0x20f132=this[_0x490285(0x1a3)](_0x335b63,_0x4577fc);if(_0x20f132)return _0x20f132;_0x5462a6(_0x490285(0x1bb),{'modelId':_0x4577fc,'fallBackModelId':this[_0x490285(0x1c4)]});}return this[_0x490285(0x1a0)]();}async[_0x39524f(0x1a0)](){const _0xbfa537=_0x39524f,_0x5cbb6a=await this[_0xbfa537(0x1ac)]();if(!_0x5cbb6a[_0xbfa537(0x1bc)])return null;if(this[_0xbfa537(0x1c4)]){const _0xa0069c=this[_0xbfa537(0x1a3)](_0x5cbb6a,this[_0xbfa537(0x1c4)]);if(_0xa0069c)return _0xa0069c;_0x5462a6(_0xbfa537(0x1c7),{'defaultModelId':this[_0xbfa537(0x1c4)],'fallBackModelId':_0x5cbb6a[0x0]['id']});}return _0x5cbb6a[0x0];}async[_0x39524f(0x1af)](_0x219123){const _0x2fd10f=_0x39524f;return(await this[_0x2fd10f(0x1ac)]())[_0x2fd10f(0x1c6)](_0x205f0c=>_0x205f0c[_0x2fd10f(0x1c9)]===_0x219123[_0x2fd10f(0x1c9)]&&_0x205f0c[_0x2fd10f(0x1bd)]===_0x219123[_0x2fd10f(0x1bd)]);}[_0x39524f(0x1c8)](_0xcf4be5,_0x53d320){const _0x2d8031=_0x39524f;let _0x366aa7;if(_0x53d320){_0x366aa7=[];const _0x4c4ab2=_0x2d8031(0x1a9)==typeof _0x53d320?[_0x53d320[_0x2d8031(0x1a2)]()]:_0x53d320[_0x2d8031(0x1a7)](_0x108e9e=>_0x108e9e[_0x2d8031(0x1a2)]());for(const _0x2f46ba of _0x4c4ab2)for(const _0x11b08f of _0xcf4be5)(_0x11b08f['id'][_0x2d8031(0x1a2)]()===_0x2f46ba||_0x11b08f[_0x2d8031(0x1c9)][_0x2d8031(0x1a2)]()===_0x2f46ba||Ne(_0x11b08f)&&_0x2d8031(0x1b0)===_0x2f46ba||_0x11b08f[_0x2d8031(0x1bd)][_0x2d8031(0x1a2)]()===_0x2f46ba||_0x11b08f['id'][_0x2d8031(0x1a2)]()[_0x2d8031(0x19f)](_0x2f46ba))&&_0x366aa7[_0x2d8031(0x1a5)](_0x11b08f);}else _0x366aa7=_0xcf4be5;return _0x366aa7;}[_0x39524f(0x1a3)](_0x4d0586,_0x2038d4){const _0x3e3ce6=_0x39524f;return _0x4d0586[_0x3e3ce6(0x1aa)](_0xc17cd6=>Ne(_0xc17cd6)&&_0x3e3ce6(0x1b0)===_0x2038d4?_0xc17cd6:_0xc17cd6['id']===_0x2038d4)||null;}static[_0x39524f(0x1b2)](_0x40589d,_0x51fc7a){const _0x129ed3=_0x39524f;return _0x51fc7a[_0x129ed3(0x1a7)](_0x1e64b7=>{const _0x282a18=_0x129ed3;if(Ne(_0x1e64b7))_0x1e64b7[_0x282a18(0x1c9)]=_0x499d47(_0x40589d,_0x282a18(0x1a6)),_0x1e64b7[_0x282a18(0x1b3)]=_0x499d47(_0x40589d,_0x282a18(0x1b6));else _0x499d47(_0x40589d,_0x282a18(0x1be)+_0x1e64b7['id'][_0x282a18(0x1ba)]())[_0x282a18(0x19f)](_0x282a18(0x1be))||(_0x1e64b7[_0x282a18(0x1b3)]=_0x499d47(_0x40589d,_0x282a18(0x1be)+_0x1e64b7['id'][_0x282a18(0x1ba)]()));return _0x1e64b7;});}}function Ne(_0x4946e7){const _0x275655=_0x39524f;return _0x4946e7['id'][_0x275655(0x19f)](_0x275655(0x1b1));}
@@ -79,7 +79,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
79
79
  /**
80
80
  * @inheritDoc
81
81
  */
82
- constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor }: {
82
+ constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor, id }: {
83
83
  type: AIReplyType;
84
84
  interactionId: string;
85
85
  areActionsDisabled?: boolean;
@@ -87,6 +87,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
87
87
  isDone?: boolean;
88
88
  documentContextContent?: string;
89
89
  editor?: Editor;
90
+ id?: string;
90
91
  });
91
92
  /**
92
93
  * Appends new content to the reply.
@@ -110,6 +111,13 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
110
111
  * Fires event.
111
112
  */
112
113
  setChangeGroupState(index: number, state: AIReplyChangeGroupState): void;
114
+ /**
115
+ * Returns the content parts of the reply that correspond to {@link #changeGroups}.
116
+ */
117
+ getContentParts({ showDiff, groupIndex }: {
118
+ showDiff: boolean;
119
+ groupIndex?: number;
120
+ }): Array<AISuggestionContentPartDefinition>;
113
121
  }
114
122
  /**
115
123
  * Validates if the given reply type (SSE type) is a valid reply type.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e8312=_0xb32d;(function(_0x568367,_0x523757){const _0x57cc26=_0xb32d,_0x2332a6=_0x568367();while(!![]){try{const _0x4503f2=-parseInt(_0x57cc26(0x1bc))/0x1*(parseInt(_0x57cc26(0x1db))/0x2)+parseInt(_0x57cc26(0x1de))/0x3*(parseInt(_0x57cc26(0x19d))/0x4)+-parseInt(_0x57cc26(0x1a5))/0x5+-parseInt(_0x57cc26(0x1b3))/0x6+-parseInt(_0x57cc26(0x1a2))/0x7+parseInt(_0x57cc26(0x1da))/0x8+parseInt(_0x57cc26(0x1c8))/0x9;if(_0x4503f2===_0x523757)break;else _0x2332a6['push'](_0x2332a6['shift']());}catch(_0x5a26b9){_0x2332a6['push'](_0x2332a6['shift']());}}}(_0x57a5,0xbcb02));import{ObservableMixin as _0xe18198,uid as _0x141224}from'ckeditor5/src/utils.js';function _0xb32d(_0x4f544a,_0x58e8d4){const _0x57a573=_0x57a5();return _0xb32d=function(_0xb32de1,_0x26728a){_0xb32de1=_0xb32de1-0x198;let _0x33b37f=_0x57a573[_0xb32de1];return _0x33b37f;},_0xb32d(_0x4f544a,_0x58e8d4);}import{Element as _0x3bc5af,findAll as _0x3eae01,getAttribute as _0x230838,getParents as _0x2ca6bd,Document as _0x259dfa,parse as _0x36d8c9,Text as _0x15ef74}from'../utils/htmlparser.js';import{AIResponseParser as _0x58c20c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34cfdb}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4aba17}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5e8312(0x198),_0x5e8312(0x1c1),_0x5e8312(0x1a4),_0x5e8312(0x1e1)];export const AI_REPLY_TYPES_IGNORED=[_0x5e8312(0x19f)];export const AI_REPLY_TITLE_TYPE=_0x5e8312(0x19f);export class AIReply extends _0xe18198(){['id'];[_0x5e8312(0x1cc)];[_0x5e8312(0x1c0)];[_0x5e8312(0x1d8)]=[];[_0x5e8312(0x1c4)]=new _0x259dfa([]);[_0x5e8312(0x1a7)]=new _0x259dfa([]);[_0x5e8312(0x19b)]=[];[_0x5e8312(0x1ab)]=!0x1;[_0x5e8312(0x1c7)];[_0x5e8312(0x1ae)];[_0x5e8312(0x1cb)];[_0x5e8312(0x1b5)];constructor({type:_0x27a0ca,content:_0x551f9e='',isDone:_0x1ee3a1=!0x1,interactionId:_0x26006e,areActionsDisabled:_0x38fd10,documentContextContent:_0x19557e,editor:_0x50d8c2}){const _0xeef2bb=_0x5e8312;super(),this['id']=_0x141224(),this[_0xeef2bb(0x1cc)]=_0x26006e,this[_0xeef2bb(0x1c0)]=_0x27a0ca,this[_0xeef2bb(0x1ab)]=!!_0x38fd10,this[_0xeef2bb(0x1b5)]=_0x50d8c2,this[_0xeef2bb(0x1ae)]=new _0x58c20c(),this[_0xeef2bb(0x1cb)]=new _0x34cfdb(),this[_0xeef2bb(0x1c7)]=_0x36d8c9(_0x19557e||''),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1b9),_0x1ee3a1),this['on'](_0xeef2bb(0x1d7),()=>{const _0x19eebc=_0xeef2bb;this[_0x19eebc(0x199)]();}),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1a6),_0x551f9e);}[_0x5e8312(0x1d6)](_0x4344fd){const _0x137371=_0x5e8312;this[_0x137371(0x1c9)](_0x137371(0x1a6),this[_0x137371(0x1a6)]+_0x4344fd);}[_0x5e8312(0x1a0)](){const _0x387352=_0x5e8312;this[_0x387352(0x1b9)]||(this[_0x387352(0x1c9)](_0x387352(0x1b9),!0x0),this[_0x387352(0x199)]());}[_0x5e8312(0x1d4)](){const _0x46df0d=_0x5e8312;this[_0x46df0d(0x1a8)]();}[_0x5e8312(0x1ad)](_0x5a8651,_0x2552e3){const _0x2df9bb=_0x5e8312;this[_0x2df9bb(0x19b)][_0x5a8651][_0x2df9bb(0x1b7)]=_0x2552e3,this[_0x2df9bb(0x1b6)](_0x2df9bb(0x1dd),{'reply':this,'index':_0x5a8651,'state':_0x2552e3});}[_0x5e8312(0x199)](){const _0x329d26=_0x5e8312;if(_0x329d26(0x198)===this[_0x329d26(0x1c0)]){this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1cf)](this[_0x329d26(0x1a6)]);const _0x322428=this[_0x329d26(0x19b)];this[_0x329d26(0x1bd)]();const _0x511d74=this[_0x329d26(0x1ac)](_0x322428,this[_0x329d26(0x19b)]);(_0x511d74[_0x329d26(0x1df)]||this[_0x329d26(0x1b9)])&&this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this,_0x511d74);}else this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1ba)](this[_0x329d26(0x1a6)]),this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this);}[_0x5e8312(0x1ac)](_0x48a48a,_0x4147d8){const _0x45df0f=_0x5e8312,_0xe2f9a1=[];for(const _0x46a7a3 of _0x4147d8){const _0x4a5c55=_0x48a48a[_0x46a7a3[_0x45df0f(0x1c6)]];_0x4a5c55?_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]!==_0x46a7a3[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]?_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3):_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1d3)]((_0x4c6f7f,_0x190263)=>{const _0x3c8bd4=_0x45df0f,_0x540db6=_0x46a7a3[_0x3c8bd4(0x1cd)][_0x190263];_0x4c6f7f['id']!==_0x540db6['id']&&_0xe2f9a1[_0x3c8bd4(0x1b8)](_0x46a7a3);}):_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3);}return _0xe2f9a1;}[_0x5e8312(0x1bd)](){const _0x5836cd=_0x5e8312,_0x6d197e=new _0x3bc5af('p',{},[new _0x3bc5af(_0x5836cd(0x1c3),{'style':_0x5836cd(0x19c)},[new _0x15ef74(_0x4aba17(this[_0x5836cd(0x1b5)][_0x5836cd(0x1ca)],_0x5836cd(0x1be)))])]),_0x5cc022=this[_0x5836cd(0x1cb)][_0x5836cd(0x1bf)](this[_0x5836cd(0x1c4)],this[_0x5836cd(0x1c7)][_0x5836cd(0x1d5)](!0x0),{'markUnstableElements':!this[_0x5836cd(0x1b9)],'replaceRemovedWith':_0x6d197e,'cutAfterLastChange':!this[_0x5836cd(0x1b9)]});if(!_0x5cc022[_0x5836cd(0x1ce)][_0x5836cd(0x1df)]&&!this[_0x5836cd(0x1b9)])return;this[_0x5836cd(0x1a7)]=_0x5cc022[_0x5836cd(0x1c4)];let _0x237157=[];if(_0x3eae01(_0x1e68c0=>{const _0x20b06f=_0x5836cd,_0x5ddbdc=_0x230838(_0x1e68c0,_0x20b06f(0x1a1));if(!_0x5ddbdc||!_0x2c5381(_0x5ddbdc))return!0x1;const _0x14d4c6=[_0x1e68c0,..._0x2ca6bd(_0x1e68c0)]['at'](-0x2);if(_0x1e68c0!=_0x14d4c6){const _0x238533=_0x230838(_0x14d4c6,_0x20b06f(0x1a1));_0x2c5381(_0x238533)||(_0x237157[_0x20b06f(0x1b8)]({'node':_0x14d4c6,'id':_0x238533,'type':_0x20b06f(0x19a)}),_0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x1b8)](_0x238533));}else _0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x19a),'id':_0x5ddbdc}):_0x5cc022[_0x20b06f(0x1a9)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1b4),'id':_0x5ddbdc,'anchorId':_0x230838(_0x1e68c0[_0x20b06f(0x1d2)],_0x20b06f(0x1a1))}):_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1c5),'id':_0x5ddbdc});return!0x0;},this[_0x5836cd(0x1a7)]),_0x237157=_0x237157[_0x5836cd(0x1d9)](({node:_0x1339a6})=>[..._0x2ca6bd(_0x1339a6),_0x1339a6][_0x5836cd(0x1b0)](_0x498f10=>!_0x230838(_0x498f10,_0x5836cd(0x1b1)))),0x0==_0x237157[_0x5836cd(0x1df)])return;const _0x46010e=[[_0x237157[0x0]]];for(let _0x3d602f=0x1;_0x3d602f<_0x237157[_0x5836cd(0x1df)];_0x3d602f++){const _0x3c6646=_0x46010e[_0x46010e[_0x5836cd(0x1df)]-0x1],_0x195caa=_0x3c6646[_0x3c6646[_0x5836cd(0x1df)]-0x1];_0x237157[_0x3d602f][_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]==_0x195caa[_0x5836cd(0x1c2)]&&_0x5836cd(0x19a)!=_0x237157[_0x3d602f][_0x5836cd(0x1c0)]&&_0x5836cd(0x19a)!=_0x195caa[_0x5836cd(0x1c0)]?_0x3c6646[_0x5836cd(0x1b8)](_0x237157[_0x3d602f]):_0x46010e[_0x5836cd(0x1b8)]([_0x237157[_0x3d602f]]);}for(const _0x945e16 of _0x46010e){const _0x201bcf=_0x945e16[0x0],_0x970878=_0x945e16[_0x945e16[_0x5836cd(0x1df)]-0x1],_0x4e14ea=_0x273d3c(_0x201bcf[_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]);_0x4e14ea&&_0x945e16[_0x5836cd(0x1af)](_0x4e14ea);const _0x4a4ae9=_0x273d3c(_0x970878[_0x5836cd(0x1c2)][_0x5836cd(0x1d1)]);_0x4a4ae9&&_0x945e16[_0x5836cd(0x1b8)](_0x4a4ae9);}function _0x2c5381(_0x22f9e2){const _0x581f19=_0x5836cd;return _0x5cc022[_0x581f19(0x1ce)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1a9)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1bb)][_0x581f19(0x19e)](_0x22f9e2);}function _0x273d3c(_0x1aaba9){const _0xe15e7a=_0x5836cd;if(_0x1aaba9&&_0x230838(_0x1aaba9,_0xe15e7a(0x1a1))&&!_0x230838(_0x1aaba9,_0xe15e7a(0x1b1))){const _0x435247=_0x230838(_0x1aaba9,_0xe15e7a(0x1a1));if(!_0x2c5381(_0x435247))return{'node':_0x1aaba9,'type':_0xe15e7a(0x1a3),'id':_0x435247};}return null;}this[_0x5836cd(0x19b)]=_0x46010e[_0x5836cd(0x1d0)]((_0x9f821d,_0x5b2ce0)=>({'changes':_0x9f821d,'state':_0x5836cd(0x1aa),'index':_0x5b2ce0}));}}export function isValidReplyType(_0xdf695e){const _0x2c8f0e=_0x5e8312;return Object[_0x2c8f0e(0x1e0)](AI_REPLY_TYPES)[_0x2c8f0e(0x19e)](_0xdf695e);}function _0x57a5(){const _0x1a93b2=['isDone','convertMarkdownToHTML','removedNodeIds','271zxNvUH','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','type','text-delta','node','span','parsedContent','removed','index','documentContextContent','22208634owNdwy','set','locale','aiResponseApplier','interactionId','changes','modifiedNodeIds','parseAndNormalizeHTML','map','nextSibling','previousSibling','forEach','destroy','cloneNode','appendContent','change:content','sources','filter','10743064iIECIz','4966PKfaIN','replyContentUpdated','replyChangeGroupStateUpdated','45VwkMKR','length','values','reasoning','modification-delta','onContentChange','modified','changeGroups','color:\x20#808080;\x20font-style:\x20italic','31468xpEcuU','includes','conversation-title','done','data-id','4541719LLRcdv','context','web-search','2271535oCHPDm','content','parsedMergedContent','stopListening','newNodeIds','pending','areActionsDisabled','_getDifferentChangeGroups','setChangeGroupState','aiResponseParser','unshift','every','data-unstable','source','8277786tretct','new','editor','fire','state','push'];_0x57a5=function(){return _0x1a93b2;};return _0x57a5();}export function isIgnoredReplyType(_0x2f11aa){const _0x2f9ebc=_0x5e8312;return AI_REPLY_TYPES_IGNORED[_0x2f9ebc(0x19e)](_0x2f11aa);}export function isReplyTitleType(_0x55fc5c){return _0x55fc5c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x51b46c){const _0x11300f=_0x5e8312;return _0x11300f(0x1b2)===_0x51b46c;}
23
+ const _0x13f60d=_0x384c;(function(_0x4a4cdb,_0x471075){const _0x5ba438=_0x384c,_0x395af2=_0x4a4cdb();while(!![]){try{const _0x3fb2df=-parseInt(_0x5ba438(0xcd))/0x1+parseInt(_0x5ba438(0xf0))/0x2*(-parseInt(_0x5ba438(0xd7))/0x3)+parseInt(_0x5ba438(0xd4))/0x4+-parseInt(_0x5ba438(0xd5))/0x5*(-parseInt(_0x5ba438(0xd2))/0x6)+parseInt(_0x5ba438(0xec))/0x7+-parseInt(_0x5ba438(0xde))/0x8*(parseInt(_0x5ba438(0xc9))/0x9)+parseInt(_0x5ba438(0xc5))/0xa;if(_0x3fb2df===_0x471075)break;else _0x395af2['push'](_0x395af2['shift']());}catch(_0x4788bd){_0x395af2['push'](_0x395af2['shift']());}}}(_0x3cc1,0x4f8b4));import{CKEditorError as _0x33f035,ObservableMixin as _0x3c6092,uid as _0x537489}from'ckeditor5/src/utils.js';import{Element as _0xcaff6d,findAll as _0x307a86,getAttribute as _0xc5f579,getParents as _0x34c83b,Document as _0x4f5ab6,parse as _0x113494,Text as _0x35cf97}from'../utils/htmlparser.js';import{AIResponseParser as _0x4a0224}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2e9cef}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1afaac}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x428f98}from'../utils/common-translations.js';import{cloneDeep as _0x1d2873}from'es-toolkit';function _0x384c(_0x4820b6,_0x23bf16){const _0x3cc1a0=_0x3cc1();return _0x384c=function(_0x384c3c,_0x3601b2){_0x384c3c=_0x384c3c-0xc5;let _0x200def=_0x3cc1a0[_0x384c3c];return _0x200def;},_0x384c(_0x4820b6,_0x23bf16);}function _0x3cc1(){const _0x4ca59b=['source','context','changes','unshift','text-delta','changeGroups','forEach','getContentParts','appendContent','2976141xXOqDp','sources','cachedSuggestionContentParts','color:\x20#808080;\x20font-style:\x20italic','2hIpvwQ','replyContentUpdated','conversation-title','content','withoutDiff','locale','type','node','interactionId','stopListening','includes','data-id','every','fire','updateChangeGroups','newNodeIds','removed','destroy','editor','filter','aiResponseParser','areActionsDisabled','AI_SUGGESTION_CONTENT_PART_REMOVED','splice','indexOf','push','parsedMergedContent','replyChangeGroupStateUpdated','merge','withDiff','data-unstable','state','change:content','web-search','removedNodeIds','map','previousSibling','documentContextContent','_setCachedContentParts','isDone','modification-delta','values','cloneNode','2478480VfjlHT','span','index','_getCachedContentParts','18mTegXT','done','parseAndNormalizeHTML','new','555416qqPAOA','reasoning','modified','onContentChange','ai-get-editor-from-context-no-editor','4380Zrzqei','modifiedNodeIds','1517424vMpTQq','250ApCfns','convertMarkdownToHTML','80877baEZSe','aiResponseApplier','_getDifferentChangeGroups','parsedContent','find','length','nextSibling','722720Kjtmcz','setChangeGroupState','ai-reply-get-content-parts-group-not-found','pending','set'];_0x3cc1=function(){return _0x4ca59b;};return _0x3cc1();}export const AI_REPLY_TYPES=[_0x13f60d(0x118),_0x13f60d(0xe7),_0x13f60d(0x111),_0x13f60d(0xce)];export const AI_REPLY_TYPES_IGNORED=[_0x13f60d(0xf2)];export const AI_REPLY_TITLE_TYPE=_0x13f60d(0xf2);export class AIReply extends _0x3c6092(){['id'];[_0x13f60d(0xf8)];[_0x13f60d(0xf6)];[_0x13f60d(0xed)]=[];[_0x13f60d(0xda)]=new _0x4f5ab6([]);[_0x13f60d(0x10a)]=new _0x4f5ab6([]);[_0x13f60d(0xe8)]=[];[_0x13f60d(0x105)]=!0x1;[_0x13f60d(0x115)];[_0x13f60d(0x104)];[_0x13f60d(0xd8)];[_0x13f60d(0x102)];[_0x13f60d(0xee)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x328c69,content:_0x44dedb='',isDone:_0x37ee2d=!0x1,interactionId:_0x5ef03c,areActionsDisabled:_0x3ea292,documentContextContent:_0x4c12eb,editor:_0x521330,id:_0xb4340c}){const _0x3f06c8=_0x13f60d;super(),this['id']=_0xb4340c||_0x537489(),this[_0x3f06c8(0xf8)]=_0x5ef03c,this[_0x3f06c8(0xf6)]=_0x328c69,this[_0x3f06c8(0x105)]=!!_0x3ea292,this[_0x3f06c8(0x102)]=_0x521330,this[_0x3f06c8(0x104)]=new _0x4a0224(),this[_0x3f06c8(0xd8)]=new _0x2e9cef(),this[_0x3f06c8(0x115)]=_0x113494(_0x4c12eb||''),this[_0x3f06c8(0xe2)](_0x3f06c8(0x117),_0x37ee2d),this['on'](_0x3f06c8(0x110),()=>{const _0x427caa=_0x3f06c8;this[_0x427caa(0xd0)]();}),this[_0x3f06c8(0xe2)](_0x3f06c8(0xf3),_0x44dedb);}[_0x13f60d(0xeb)](_0x3298f3){const _0x597aa2=_0x13f60d;this[_0x597aa2(0xe2)](_0x597aa2(0xf3),this[_0x597aa2(0xf3)]+_0x3298f3);}[_0x13f60d(0xca)](){const _0x6caba9=_0x13f60d;this[_0x6caba9(0x117)]||(this[_0x6caba9(0xe2)](_0x6caba9(0x117),!0x0),this[_0x6caba9(0xd0)]());}[_0x13f60d(0x101)](){const _0x49978f=_0x13f60d;this[_0x49978f(0xf9)]();}[_0x13f60d(0xdf)](_0x5788b4,_0x4b6389){const _0x5ac2c6=_0x13f60d;this[_0x5ac2c6(0xe8)][_0x5788b4][_0x5ac2c6(0x10f)]=_0x4b6389,this[_0x5ac2c6(0xfd)](_0x5ac2c6(0x10b),{'reply':this,'index':_0x5788b4,'state':_0x4b6389});}[_0x13f60d(0xea)]({showDiff:_0x2c984d,groupIndex:_0x5e5dbe}){const _0x2bcd4e=_0x13f60d;if(!this[_0x2bcd4e(0x102)])throw new _0x33f035(_0x2bcd4e(0xd1),null,{'aiReply':this});const _0x31124e=this[_0x2bcd4e(0xc8)](_0x2c984d,_0x5e5dbe);if(_0x31124e)return _0x31124e;let _0x2613f4=[];if(void 0x0===_0x5e5dbe)_0x2613f4=this[_0x2bcd4e(0xe8)];else{const _0x53fadd=this[_0x2bcd4e(0xe8)][_0x2bcd4e(0xdb)](({index:_0x3c487d})=>_0x3c487d===_0x5e5dbe);if(!_0x53fadd)throw new _0x33f035(_0x2bcd4e(0xe0),null,{'aiReply':this,'groupIndex':_0x5e5dbe});_0x2613f4=[_0x53fadd];}const _0x55928c=_0x1afaac({'editor':this[_0x2bcd4e(0x102)],'showDiff':_0x2c984d,'changeGroups':_0x2613f4,'documentContextContent':this[_0x2bcd4e(0x115)]});return this[_0x2bcd4e(0x116)](_0x2c984d,_0x55928c),_0x55928c;}[_0x13f60d(0xc8)](_0x2b8f74,_0x5ccade){const _0x1de5c9=_0x13f60d,_0x534b3b=_0x2b8f74?_0x1de5c9(0x10d):_0x1de5c9(0xf4);if(!this[_0x1de5c9(0xee)][_0x534b3b][_0x1de5c9(0xdc)])return null;const _0x35832b=this[_0x1de5c9(0xee)][_0x534b3b];if(void 0x0===_0x5ccade)return _0x1d2873(_0x35832b);{const _0x5095dc=_0x35832b[_0x1de5c9(0xdb)](({index:_0x120d02})=>_0x120d02===_0x5ccade);if(_0x5095dc)return[_0x1d2873(_0x5095dc)];}return null;}[_0x13f60d(0x116)](_0x12471d,_0x1eb305){const _0x3b9dda=_0x13f60d,_0x387c84=_0x12471d?_0x3b9dda(0x10d):_0x3b9dda(0xf4);_0x1eb305[_0x3b9dda(0xe9)](_0x4fed7a=>{const _0x6135fb=_0x3b9dda,_0x2e51fe=this[_0x6135fb(0xee)][_0x387c84],_0x55a6c8=_0x2e51fe[_0x6135fb(0xdb)](({index:_0x23b8cd})=>_0x23b8cd===_0x4fed7a[_0x6135fb(0xc7)]);if(_0x55a6c8){const _0xba7531=_0x2e51fe[_0x6135fb(0x108)](_0x55a6c8);_0x2e51fe[_0x6135fb(0x107)](_0xba7531,0x1,_0x4fed7a);}else _0x2e51fe[_0x6135fb(0x109)](_0x4fed7a);});}[_0x13f60d(0xd0)](){const _0x13ed7e=_0x13f60d;if(_0x13ed7e(0x118)===this[_0x13ed7e(0xf6)]){this[_0x13ed7e(0xda)]=this[_0x13ed7e(0x104)][_0x13ed7e(0xcb)](this[_0x13ed7e(0xf3)]);const _0x252ee0=this[_0x13ed7e(0xe8)];this[_0x13ed7e(0xfe)]();const _0x4d15fa=this[_0x13ed7e(0xd9)](_0x252ee0,this[_0x13ed7e(0xe8)]);(_0x4d15fa[_0x13ed7e(0xdc)]||this[_0x13ed7e(0x117)])&&(this[_0x13ed7e(0xfd)](_0x13ed7e(0xf1),this,_0x4d15fa),this[_0x13ed7e(0xee)][_0x13ed7e(0x10d)][_0x13ed7e(0xdc)]=this[_0x13ed7e(0xee)][_0x13ed7e(0xf4)][_0x13ed7e(0xdc)]=0x0);}else this[_0x13ed7e(0xda)]=this[_0x13ed7e(0x104)][_0x13ed7e(0xd6)](this[_0x13ed7e(0xf3)]),this[_0x13ed7e(0xfd)](_0x13ed7e(0xf1),this);}[_0x13f60d(0xd9)](_0x4420a6,_0x60744c){const _0x41c163=_0x13f60d,_0x3a2552=[];for(const _0xfec401 of _0x60744c){const _0xa79224=_0x4420a6[_0xfec401[_0x41c163(0xc7)]];_0xa79224?_0xa79224[_0x41c163(0xe5)][_0x41c163(0xdc)]!==_0xfec401[_0x41c163(0xe5)][_0x41c163(0xdc)]?_0x3a2552[_0x41c163(0x109)](_0xfec401):_0xa79224[_0x41c163(0xe5)][_0x41c163(0xe9)]((_0x22ad34,_0x487c37)=>{const _0x23735e=_0x41c163,_0x22c6ae=_0xfec401[_0x23735e(0xe5)][_0x487c37];_0x22ad34['id']!==_0x22c6ae['id']&&_0x3a2552[_0x23735e(0x109)](_0xfec401);}):_0x3a2552[_0x41c163(0x109)](_0xfec401);}return _0x3a2552;}[_0x13f60d(0xfe)](){const _0x11e480=_0x13f60d,_0x1ce16b=new _0xcaff6d('p',{},[new _0xcaff6d(_0x11e480(0xc6),{'style':_0x11e480(0xef)},[new _0x35cf97(_0x428f98(this[_0x11e480(0x102)][_0x11e480(0xf5)],_0x11e480(0x106)))])]),_0x4a0fdd=this[_0x11e480(0xd8)][_0x11e480(0x10c)](this[_0x11e480(0xda)],this[_0x11e480(0x115)][_0x11e480(0x11a)](!0x0),{'markUnstableElements':!this[_0x11e480(0x117)],'replaceRemovedWith':_0x1ce16b,'cutAfterLastChange':!this[_0x11e480(0x117)]});if(!_0x4a0fdd[_0x11e480(0xd3)][_0x11e480(0xdc)]&&!this[_0x11e480(0x117)])return;this[_0x11e480(0x10a)]=_0x4a0fdd[_0x11e480(0xda)];let _0x22468f=[];if(_0x307a86(_0x370c62=>{const _0xdcdc71=_0x11e480,_0x200954=_0xc5f579(_0x370c62,_0xdcdc71(0xfb));if(!_0x200954||!_0x1e38ab(_0x200954))return!0x1;const _0x565ec8=[_0x370c62,..._0x34c83b(_0x370c62)]['at'](-0x2);if(_0x370c62!=_0x565ec8){const _0x4866de=_0xc5f579(_0x565ec8,_0xdcdc71(0xfb));_0x1e38ab(_0x4866de)||(_0x22468f[_0xdcdc71(0x109)]({'node':_0x565ec8,'id':_0x4866de,'type':_0xdcdc71(0xcf)}),_0x4a0fdd[_0xdcdc71(0xd3)][_0xdcdc71(0x109)](_0x4866de));}else _0x4a0fdd[_0xdcdc71(0xd3)][_0xdcdc71(0xfa)](_0x200954)?_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0xcf),'id':_0x200954}):_0x4a0fdd[_0xdcdc71(0xff)][_0xdcdc71(0xfa)](_0x200954)?_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0xcc),'id':_0x200954,'anchorId':_0xc5f579(_0x370c62[_0xdcdc71(0x114)],_0xdcdc71(0xfb))}):_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0x100),'id':_0x200954});return!0x0;},this[_0x11e480(0x10a)]),_0x22468f=_0x22468f[_0x11e480(0x103)](({node:_0x54cfc7})=>[..._0x34c83b(_0x54cfc7),_0x54cfc7][_0x11e480(0xfc)](_0x2d91b8=>!_0xc5f579(_0x2d91b8,_0x11e480(0x10e)))),0x0==_0x22468f[_0x11e480(0xdc)])return;const _0x9adff8=[[_0x22468f[0x0]]];for(let _0x42645d=0x1;_0x42645d<_0x22468f[_0x11e480(0xdc)];_0x42645d++){const _0x4a9030=_0x9adff8[_0x9adff8[_0x11e480(0xdc)]-0x1],_0x300852=_0x4a9030[_0x4a9030[_0x11e480(0xdc)]-0x1];_0x22468f[_0x42645d][_0x11e480(0xf7)][_0x11e480(0x114)]==_0x300852[_0x11e480(0xf7)]&&_0x11e480(0xcf)!=_0x22468f[_0x42645d][_0x11e480(0xf6)]&&_0x11e480(0xcf)!=_0x300852[_0x11e480(0xf6)]?_0x4a9030[_0x11e480(0x109)](_0x22468f[_0x42645d]):_0x9adff8[_0x11e480(0x109)]([_0x22468f[_0x42645d]]);}for(const _0x5c7bc3 of _0x9adff8){const _0x668006=_0x5c7bc3[0x0],_0x1b2782=_0x5c7bc3[_0x5c7bc3[_0x11e480(0xdc)]-0x1],_0x4a23a4=_0x172124(_0x668006[_0x11e480(0xf7)][_0x11e480(0x114)]);_0x4a23a4&&_0x5c7bc3[_0x11e480(0xe6)](_0x4a23a4);const _0x4ae4ed=_0x172124(_0x1b2782[_0x11e480(0xf7)][_0x11e480(0xdd)]);_0x4ae4ed&&_0x5c7bc3[_0x11e480(0x109)](_0x4ae4ed);}function _0x1e38ab(_0x32b690){const _0x18a3ed=_0x11e480;return _0x4a0fdd[_0x18a3ed(0xd3)][_0x18a3ed(0xfa)](_0x32b690)||_0x4a0fdd[_0x18a3ed(0xff)][_0x18a3ed(0xfa)](_0x32b690)||_0x4a0fdd[_0x18a3ed(0x112)][_0x18a3ed(0xfa)](_0x32b690);}function _0x172124(_0x317017){const _0x460147=_0x11e480;if(_0x317017&&_0xc5f579(_0x317017,_0x460147(0xfb))&&!_0xc5f579(_0x317017,_0x460147(0x10e))){const _0x1a050c=_0xc5f579(_0x317017,_0x460147(0xfb));if(!_0x1e38ab(_0x1a050c))return{'node':_0x317017,'type':_0x460147(0xe4),'id':_0x1a050c};}return null;}this[_0x11e480(0xe8)]=_0x9adff8[_0x11e480(0x113)]((_0x3c12bb,_0x55ad6b)=>({'changes':_0x3c12bb,'state':_0x11e480(0xe1),'index':_0x55ad6b}));}}export function isValidReplyType(_0x35ea69){const _0x49444e=_0x13f60d;return Object[_0x49444e(0x119)](AI_REPLY_TYPES)[_0x49444e(0xfa)](_0x35ea69);}export function isIgnoredReplyType(_0x146981){const _0x478301=_0x13f60d;return AI_REPLY_TYPES_IGNORED[_0x478301(0xfa)](_0x146981);}export function isReplyTitleType(_0x28697d){return _0x28697d===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x244c65){const _0x1836d1=_0x13f60d;return _0x1836d1(0xe3)===_0x244c65;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53e9b3=_0xfdf1;(function(_0x46cc36,_0x37feca){const _0x44827c=_0xfdf1,_0x4377bb=_0x46cc36();while(!![]){try{const _0x2e55f2=-parseInt(_0x44827c(0x1eb))/0x1*(parseInt(_0x44827c(0x1d9))/0x2)+-parseInt(_0x44827c(0x1db))/0x3*(-parseInt(_0x44827c(0x21b))/0x4)+parseInt(_0x44827c(0x218))/0x5*(parseInt(_0x44827c(0x209))/0x6)+-parseInt(_0x44827c(0x1d8))/0x7+parseInt(_0x44827c(0x201))/0x8+-parseInt(_0x44827c(0x208))/0x9+-parseInt(_0x44827c(0x20e))/0xa*(-parseInt(_0x44827c(0x219))/0xb);if(_0x2e55f2===_0x37feca)break;else _0x4377bb['push'](_0x4377bb['shift']());}catch(_0x51d54f){_0x4377bb['push'](_0x4377bb['shift']());}}}(_0x5b42,0xd05e6));import{ObservableMixin as _0x31e9ad,uid as _0x1fe7d7}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x21474a,findByAttribute as _0x57a16a,getAttribute as _0x3fdc9a,isComment as _0x167826,isTag as _0x424e03,insertElement as _0x15f7b0,moveElement as _0x2e3c39,removeElement as _0x18910e,replaceElement as _0x4cf0df,serialize as _0x2ea88e,setAttribute as _0x7f5f65,clone as _0x4fd544,findAllComments as _0x3efd16,getParents as _0x3937aa,getNodeNestingLevel as _0x55121a,areNodesSame as _0x3b433b,removeElementsAfter as _0x39759e}from'../utils/htmlparser.js';function _0x5b42(){const _0x3bae62=['markUnstableElementsDepth','filter','match','nodeType','8175112QRRGTV','merge','_removeSpecialComments','_storeDeletedElementIds','indexOf','cloneNode','push','11184777dRRdsF','12aWIGYs','true','includes','map','forEach','33850pPAkZw','previousSibling','afterend','_generateUid','splice','lastChild','_isExistingNode','_touchedNodesState','new-element','trim','613385CuvEAm','8129ievyMX','markUnstableElements','28qeqIrz','data-removed','slice','removedIds','_hasWrappedParent','6844124qvDSAm','2SqhYuW','replaceRemovedWith','242832eGxzDv','_getNodeDataId','_findReferenceNode','from','invalidIds','cutAfterLastChange','has','_isNewNode','beforebegin','childNodes','_replaceNode','data-unstable','_existingDataIds','newIds','afterbegin','_markLastTagElementUnstable','1261403XbkdPe','_isExistingContentComment','_findFallbackReferenceNode','data-wrapped-id','reverse','_findPrevElementWithDataId','length','_markWrappedElements','nextSibling','_isDelNode','data-id','_markUnstableElements','lastTouchedId','modifiedIds','_getUid','_findNextElementWithDataId','parentNode','_insertNodes'];_0x5b42=function(){return _0x3bae62;};return _0x5b42();}function _0xfdf1(_0x594f1a,_0xbe79ab){const _0x5b4224=_0x5b42();return _0xfdf1=function(_0xfdf139,_0x183288){_0xfdf139=_0xfdf139-0x1d8;let _0xc85e49=_0x5b4224[_0xfdf139];return _0xc85e49;},_0xfdf1(_0x594f1a,_0xbe79ab);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x31e9ad(){[_0x53e9b3(0x211)];[_0x53e9b3(0x215)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x53e9b3(0x1e7)]=new Set();constructor(_0x45b7ce){const _0x432129=_0x53e9b3;super(),this[_0x432129(0x211)]=_0x45b7ce||_0x1fe7d7;}[_0x53e9b3(0x202)](_0x2f9fe1,_0x2c8e0c,_0x3569f6){const _0x4e61ca=_0x53e9b3,_0x1994d3=_0x4fd544(_0x2f9fe1);if(0x0===_0x2c8e0c[_0x4e61ca(0x1e4)][_0x4e61ca(0x1f1)]){const _0x5656b6=[];return _0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x1994d3)[_0x4e61ca(0x20d)](_0x15b074=>{const _0x4ea810=_0x4e61ca,_0x426e12=this[_0x4ea810(0x211)]();_0x7f5f65(_0x15b074,_0x4ea810(0x1f5),_0x426e12),_0x5656b6[_0x4ea810(0x207)](_0x426e12);}),this[_0x4e61ca(0x203)](_0x1994d3),{'parsedContent':_0x1994d3,'newNodeIds':_0x5656b6,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1ea)](_0x1994d3),this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1df)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=null,this[_0x4e61ca(0x1e7)]=new Set(_0x21474a(_0x4e61ca(0x1f5),null,_0x2c8e0c)[_0x4e61ca(0x20c)](_0x5795bd=>_0x3fdc9a(_0x5795bd,_0x4e61ca(0x1f5)))[_0x4e61ca(0x1fe)](_0x542995=>!!_0x542995));let _0x12d81d=-0x1,_0x544f84=!0x1;const _0x5b49a9=_0x1994d3[_0x4e61ca(0x1e4)],_0x17650e=Array[_0x4e61ca(0x1de)](_0x5b49a9)[_0x4e61ca(0x1fe)](_0x4b05cd=>!(0x3===_0x4b05cd[_0x4e61ca(0x200)]&&''===_0x2ea88e(_0x4b05cd)[_0x4e61ca(0x217)]())),_0x204a99=_0x17650e[_0x4e61ca(0x1f1)];for(let _0x5410b2=0x0;_0x5410b2<_0x204a99;_0x5410b2++){const _0x28b394=_0x17650e[_0x5410b2],_0x2f7e68=_0x17650e[_0x5410b2+0x1];if(this[_0x4e61ca(0x1e2)](_0x28b394)){if(-0x1===_0x12d81d&&(_0x12d81d=_0x5410b2),this[_0x4e61ca(0x1f2)](_0x28b394),!this[_0x4e61ca(0x1e2)](_0x2f7e68)){const [_0x3580c7,_0x52df17]=this[_0x4e61ca(0x1dd)](_0x28b394,_0x544f84,_0x2c8e0c);if(_0x3580c7){const _0x4ff944=Array[_0x4e61ca(0x1de)](_0x17650e)[_0x4e61ca(0x21d)](_0x12d81d,_0x5410b2+0x1);this[_0x4e61ca(0x1fc)](_0x3580c7,_0x4ff944,_0x52df17),_0x12d81d=-0x1;}}}else{if(this[_0x4e61ca(0x1ec)](_0x28b394))_0x544f84=!0x0;else{if(this[_0x4e61ca(0x214)](_0x28b394)){const _0x34edb5=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));if(_0x34edb5&&this[_0x4e61ca(0x1e7)][_0x4e61ca(0x1e1)](_0x34edb5)){const _0x3c6056=_0x57a16a(_0x4e61ca(0x1f5),_0x34edb5,_0x2c8e0c);this[_0x4e61ca(0x1e5)](_0x3c6056,_0x28b394);}if(this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x20b)](_0x34edb5)){const _0x39dab3=this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x205)](_0x34edb5);this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x212)](_0x39dab3,0x1);}}else{if(this[_0x4e61ca(0x1f4)](_0x28b394)){const _0x27c944=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)][_0x4e61ca(0x20b)](_0x27c944)||this[_0x4e61ca(0x204)](_0x28b394);}}}}}for(const _0x1af400 of this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]){const _0x17d3d4=_0x57a16a(_0x4e61ca(0x1f5),_0x1af400,_0x2c8e0c);if(_0x17d3d4){if(_0x3569f6&&_0x3569f6[_0x4e61ca(0x1da)]){this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=_0x1af400;const _0x251251=_0x3569f6[_0x4e61ca(0x1da)][_0x4e61ca(0x206)](!0x0);_0x7f5f65(_0x251251,_0x4e61ca(0x1f5),_0x1af400),_0x7f5f65(_0x251251,_0x4e61ca(0x21c),_0x4e61ca(0x20a)),_0x4cf0df(_0x17d3d4,_0x251251);}else _0x18910e(_0x17d3d4);}}if(_0x21474a(_0x4e61ca(0x1ee),null,_0x2c8e0c)[_0x4e61ca(0x20d)](_0x17174a=>{const _0x876d18=_0x4e61ca,_0x575dee=_0x3fdc9a(_0x17174a,_0x876d18(0x1ee)),_0x3fac4c=_0x57a16a(_0x876d18(0x1f5),_0x575dee,_0x2c8e0c);_0x3fac4c&&_0x2e3c39(_0x3fac4c,_0x17174a);}),_0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x2c8e0c)[_0x4e61ca(0x20d)](_0x11d383=>{const _0x426ad3=_0x4e61ca,_0x3ee3a7=this[_0x426ad3(0x1f9)](_0x11d383);_0x7f5f65(_0x11d383,_0x426ad3(0x1f5),_0x3ee3a7),this[_0x426ad3(0x215)][_0x426ad3(0x1e8)][_0x426ad3(0x207)](_0x3ee3a7);}),this[_0x4e61ca(0x203)](_0x2c8e0c),_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1f6)](_0x2c8e0c,_0x3569f6[_0x4e61ca(0x1fd)]||0x0),_0x3569f6&&_0x3569f6[_0x4e61ca(0x1e0)]&&this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]){let _0x4f1486=_0x57a16a(_0x4e61ca(0x1f5),this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)],_0x2c8e0c);for(;_0x4f1486;)_0x39759e(_0x4f1486),_0x4f1486=_0x4f1486[_0x4e61ca(0x1fb)];}return{'parsedContent':_0x2c8e0c,'newNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)],'modifiedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)],'removedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]};}[_0x53e9b3(0x1fc)](_0x445bcf,_0x141feb,_0x3d9c6e){const _0x5e89f3=_0x53e9b3;for(const _0x341351 of _0x141feb){const _0x4402e6=this[_0x5e89f3(0x1f9)](_0x341351);_0x7f5f65(_0x341351,_0x5e89f3(0x1f5),_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1e8)][_0x5e89f3(0x207)](_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1f7)]=_0x4402e6;}const _0x3ae653=_0x5e89f3(0x1e9)===_0x3d9c6e||_0x5e89f3(0x210)===_0x3d9c6e?_0x141feb[_0x5e89f3(0x1ef)]():_0x141feb;for(const _0x393c21 of _0x3ae653)_0x15f7b0(_0x445bcf,_0x393c21,_0x3d9c6e);}[_0x53e9b3(0x1e5)](_0x2688ff,_0x4247af){const _0xed1397=_0x53e9b3;if(!_0x2688ff)return;if(_0x3b433b(_0x2688ff,_0x4247af))return;const _0x2260fe=this[_0xed1397(0x1f9)](_0x2688ff);_0x7f5f65(_0x4247af,_0xed1397(0x1f5),_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f8)][_0xed1397(0x207)](_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f7)]=_0x2260fe,_0x4cf0df(_0x2688ff,_0x4247af[_0xed1397(0x206)](!0x0));}[_0x53e9b3(0x1dd)](_0x3f9380,_0x220930,_0x1e5ae3){const _0x528fd9=_0x53e9b3,_0xd69bb6=this[_0x528fd9(0x1f0)](_0x3f9380,!0x1);if(_0xd69bb6){const _0x737b99=this[_0x528fd9(0x1dc)](_0xd69bb6),_0x132faa=_0x57a16a(_0x528fd9(0x1f5),_0x737b99,_0x1e5ae3);if(_0x132faa)return[_0x132faa,_0x528fd9(0x210)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x737b99);}const _0x5a1001=this[_0x528fd9(0x1fa)](_0x3f9380,!0x1);if(_0x5a1001){const _0x56080b=this[_0x528fd9(0x1dc)](_0x5a1001),_0x4930bd=_0x57a16a(_0x528fd9(0x1f5),_0x56080b,_0x1e5ae3);if(_0x4930bd)return[_0x4930bd,_0x528fd9(0x1e3)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x56080b);}return _0x220930?_0x3f9380[_0x528fd9(0x1f3)]?this[_0x528fd9(0x1ed)](_0x3f9380,_0x1e5ae3):[_0x1e5ae3[_0x528fd9(0x1e4)][_0x1e5ae3[_0x528fd9(0x1e4)][_0x528fd9(0x1f1)]-0x1],_0x528fd9(0x210)]:[_0x1e5ae3[_0x528fd9(0x1e4)][0x0],_0x528fd9(0x1e3)];}[_0x53e9b3(0x1ed)](_0xd7384b,_0x3b312e){const _0x1a6196=_0x53e9b3,_0x205fd3=[],_0x45d264=this[_0x1a6196(0x1f0)](_0xd7384b,!0x0);if(_0x45d264){const _0x4c9702=this[_0x1a6196(0x1dc)](_0x45d264),_0x48d941=_0x57a16a(_0x1a6196(0x1f5),_0x4c9702,_0x3b312e);_0x48d941&&_0x205fd3[_0x1a6196(0x207)]([_0x48d941,_0x1a6196(0x210)]);}const _0x2dcd74=this[_0x1a6196(0x1fa)](_0xd7384b,!0x0);if(_0x2dcd74){const _0x390113=this[_0x1a6196(0x1dc)](_0x2dcd74),_0x1f0e59=_0x57a16a(_0x1a6196(0x1f5),_0x390113,_0x3b312e);_0x1f0e59&&_0x205fd3[_0x1a6196(0x207)]([_0x1f0e59,_0x1a6196(0x1e3)]);}if(_0x205fd3[_0x1a6196(0x1f1)]>0x1)return _0x55121a(_0x205fd3[0x0][0x0])<=_0x55121a(_0x205fd3[0x1][0x0])?_0x205fd3[0x0]:_0x205fd3[0x1];return 0x1===_0x205fd3[_0x1a6196(0x1f1)]?_0x205fd3[0x0]:[_0x3b312e[_0x1a6196(0x213)],_0x1a6196(0x210)];}[_0x53e9b3(0x1fa)](_0x26429d,_0x565d3e){const _0x2aaf1b=_0x53e9b3;let _0x1247ed=_0x26429d[_0x2aaf1b(0x1f3)],_0x1aab7b=null,_0x12226b=!0x1;for(;_0x1247ed;){if(_0x167826(_0x1247ed)){if(this[_0x2aaf1b(0x1f4)](_0x1247ed)&&(_0x1aab7b=_0x1247ed),this[_0x2aaf1b(0x1ec)](_0x1247ed)&&_0x565d3e&&!_0x12226b){_0x12226b=!0x0,_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];continue;}break;}const _0xe4898a=_0x3fdc9a(_0x1247ed,_0x2aaf1b(0x1f5));if(_0xe4898a&&_0x2aaf1b(0x216)!==_0xe4898a&&this[_0x2aaf1b(0x1e7)][_0x2aaf1b(0x1e1)](_0xe4898a)){_0x1aab7b=_0x1247ed;break;}_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];}return _0x1aab7b;}[_0x53e9b3(0x1f0)](_0x12eb55,_0x167b5b){const _0x592fe9=_0x53e9b3;let _0x2ca944=_0x12eb55[_0x592fe9(0x20f)],_0x2d8ef9=null,_0x38f4c6=!0x1;for(;_0x2ca944;){if(_0x167826(_0x2ca944)){if(this[_0x592fe9(0x1f4)](_0x2ca944)&&(_0x2d8ef9=_0x2ca944),this[_0x592fe9(0x1ec)](_0x2ca944)&&_0x167b5b&&!_0x38f4c6){_0x38f4c6=!0x0,_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];continue;}break;}const _0x4ac1d4=_0x3fdc9a(_0x2ca944,_0x592fe9(0x1f5));if(_0x4ac1d4&&_0x592fe9(0x216)!==_0x4ac1d4&&this[_0x592fe9(0x1e7)][_0x592fe9(0x1e1)](_0x4ac1d4)){_0x2d8ef9=_0x2ca944;break;}_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];}return _0x2d8ef9;}[_0x53e9b3(0x1f2)](_0x4856c9){const _0x275387=_0x53e9b3;_0x424e03(_0x4856c9)&&_0x21474a(_0x275387(0x1f5),null,_0x4856c9)[_0x275387(0x20d)](_0xc421e7=>{const _0xbbb066=_0x275387;if(this[_0xbbb066(0x214)](_0xc421e7)&&!this[_0xbbb066(0x21f)](_0xc421e7)){const _0x360b7b=_0x3fdc9a(_0xc421e7,_0xbbb066(0x1f5));_0x7f5f65(_0xc421e7,_0xbbb066(0x1ee),_0x360b7b),_0x7f5f65(_0xc421e7,_0xbbb066(0x1f5),null);}});}[_0x53e9b3(0x1dc)](_0x19a61a){const _0x156afc=_0x53e9b3;if(!_0x19a61a)return null;if(_0x424e03(_0x19a61a))return _0x3fdc9a(_0x19a61a,_0x156afc(0x1f5));if(_0x167826(_0x19a61a)){const _0x1cac9b=_0x2ea88e(_0x19a61a)[_0x156afc(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cac9b&&_0x1cac9b[0x1])return _0x1cac9b[0x1];}return null;}[_0x53e9b3(0x204)](_0x2f7d42){const _0x595e48=_0x53e9b3;if(_0x167826(_0x2f7d42)){const _0x1574ec=_0x2ea88e(_0x2f7d42)[_0x595e48(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);_0x1574ec&&_0x1574ec[0x1]&&this[_0x595e48(0x215)][_0x595e48(0x21e)][_0x595e48(0x207)](_0x1574ec[0x1]);}}[_0x53e9b3(0x1f9)](_0x4dd8b3){const _0x70498b=_0x53e9b3;return this[_0x70498b(0x214)](_0x4dd8b3)?_0x3fdc9a(_0x4dd8b3,_0x70498b(0x1f5)):this[_0x70498b(0x211)]();}[_0x53e9b3(0x203)](_0x1a7e4a){const _0x1499ca=_0x53e9b3;_0x3efd16(_0x1a7e4a)[_0x1499ca(0x1fe)](_0x3310bd=>this[_0x1499ca(0x1f4)](_0x3310bd)||this[_0x1499ca(0x1ec)](_0x3310bd))[_0x1499ca(0x20d)](_0x183737=>{_0x18910e(_0x183737);});}[_0x53e9b3(0x1ea)](_0x4d98ea){const _0x3099be=_0x53e9b3,_0x1b76fd=_0x4d98ea[_0x3099be(0x1e4)],_0x429fb0=_0x1b76fd[_0x1b76fd[_0x3099be(0x1f1)]-0x1];_0x429fb0&&_0x424e03(_0x429fb0)&&_0x7f5f65(_0x429fb0,_0x3099be(0x1e6),_0x3099be(0x20a));}[_0x53e9b3(0x1f6)](_0x172d71,_0x1d7afc){const _0x8e3d33=_0x53e9b3,_0xda42dc=_0x57a16a(_0x8e3d33(0x1e6),_0x8e3d33(0x20a),_0x172d71);if(!_0xda42dc)return;const _0x42c7d9=_0x3937aa(_0xda42dc)[_0x8e3d33(0x21d)](0x0,-0x1),_0x42b397=_0x42c7d9[_0x8e3d33(0x1f1)];let _0x455023=_0xda42dc;if(_0x42b397>_0x1d7afc){let _0x26c2a5=_0x42b397,_0x6a0243=null;for(;_0x26c2a5>_0x1d7afc&&_0x26c2a5>=0x0;)_0x26c2a5--,_0x6a0243=_0x42c7d9[_0x26c2a5];_0x6a0243&&(_0x455023=_0x6a0243,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x6a0243,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}else{if(_0x42b397<_0x1d7afc){let _0x3f3941=_0x42b397,_0x157260=_0xda42dc;for(;_0x3f3941<_0x1d7afc;){const _0x1b75ca=_0x157260[_0x8e3d33(0x1e4)][_0x8e3d33(0x1fe)](_0x57f59a=>_0x424e03(_0x57f59a));if(0x0===_0x1b75ca[_0x8e3d33(0x1f1)])break;_0x3f3941++,_0x157260=_0x1b75ca[_0x1b75ca[_0x8e3d33(0x1f1)]-0x1];}_0x157260&&(_0x455023=_0x157260,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x157260,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}}let _0x101763=_0x455023;for(;_0x101763;){for(;_0x101763[_0x8e3d33(0x1f3)];)_0x101763=_0x101763[_0x8e3d33(0x1f3)],_0x424e03(_0x101763)&&_0x7f5f65(_0x101763,_0x8e3d33(0x1e6),_0x8e3d33(0x20a));_0x101763=_0x101763[_0x8e3d33(0x1fb)];}}[_0x53e9b3(0x1e2)](_0x48fadf){const _0x14fdb0=_0x53e9b3;return Boolean(_0x14fdb0(0x216)===_0x3fdc9a(_0x48fadf,_0x14fdb0(0x1f5)));}[_0x53e9b3(0x214)](_0x218c18){const _0x3c418d=_0x53e9b3;return Boolean((_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5))||'')[_0x3c418d(0x1f1)]>0x0&&_0x3c418d(0x216)!==_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5)));}[_0x53e9b3(0x1f4)](_0x1c812f){const _0x1e4d4e=_0x53e9b3;return!!_0x1c812f&&Boolean(_0x167826(_0x1c812f)&&_0x2ea88e(_0x1c812f)[_0x1e4d4e(0x1ff)](/removed[\s*-]data-id="[^"]+"/));}[_0x53e9b3(0x21f)](_0x558fcb){const _0x254299=_0x53e9b3;let _0x5d2d19=_0x558fcb[_0x254299(0x1fb)];for(;_0x5d2d19;){if(_0x3fdc9a(_0x5d2d19,_0x254299(0x1ee)))return!0x0;_0x5d2d19=_0x5d2d19[_0x254299(0x1fb)];}return!0x1;}[_0x53e9b3(0x1ec)](_0x3a3aa8){const _0x327aa4=_0x53e9b3;return Boolean(_0x167826(_0x3a3aa8)&&_0x2ea88e(_0x3a3aa8)[_0x327aa4(0x1ff)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x4174(){const _0x5ec76d=['newIds','has','nodeType','_isExistingNode','markUnstableElementsDepth','trim','new-element','modifiedIds','childNodes','markUnstableElements','5BQdguK','filter','includes','replaceRemovedWith','slice','6593416lJpbQE','forEach','afterend','_markUnstableElements','28RnKGOz','_markLastTagElementUnstable','_existingDataIds','_markWrappedElements','_storeDeletedElementIds','cutAfterLastChange','lastChild','data-unstable','_removeSpecialComments','afterbegin','data-wrapped-id','102018bPiXmb','4378038IsvvnI','_getNodeDataId','1858941yHdopX','push','_isExistingContentComment','reverse','19304310JRBKPb','_isDelNode','154258uVrJDl','indexOf','parentNode','merge','_insertNodes','from','_findNextElementWithDataId','10iNmsgF','_getUid','true','cloneNode','_replaceNode','data-removed','nextSibling','_findFallbackReferenceNode','splice','previousSibling','data-id','match','_generateUid','_findPrevElementWithDataId','removedIds','_touchedNodesState','_isNewNode','1729494pnzXfM','invalidIds','length','lastTouchedId','_findReferenceNode','_hasWrappedParent','map','beforebegin'];_0x4174=function(){return _0x5ec76d;};return _0x4174();}const _0x147f2e=_0x4313;(function(_0x1fdb69,_0x179813){const _0x368436=_0x4313,_0x4c6151=_0x1fdb69();while(!![]){try{const _0x2e2058=-parseInt(_0x368436(0xdb))/0x1*(parseInt(_0x368436(0xd4))/0x2)+parseInt(_0x368436(0xcb))/0x3*(parseInt(_0x368436(0xc0))/0x4)+parseInt(_0x368436(0xb7))/0x5*(parseInt(_0x368436(0xa5))/0x6)+-parseInt(_0x368436(0xcc))/0x7+-parseInt(_0x368436(0xbc))/0x8+parseInt(_0x368436(0xce))/0x9+parseInt(_0x368436(0xd2))/0xa;if(_0x2e2058===_0x179813)break;else _0x4c6151['push'](_0x4c6151['shift']());}catch(_0x4537c1){_0x4c6151['push'](_0x4c6151['shift']());}}}(_0x4174,0x6c002));import{ObservableMixin as _0x3456c5,uid as _0x2ccc5a}from'ckeditor5/src/utils.js';function _0x4313(_0x15cd59,_0x15319c){const _0x417467=_0x4174();return _0x4313=function(_0x43130c,_0xcec71f){_0x43130c=_0x43130c-0xa0;let _0x37740b=_0x417467[_0x43130c];return _0x37740b;},_0x4313(_0x15cd59,_0x15319c);}import{findAllByAttribute as _0x3bdabb,findByAttribute as _0x5285b9,getAttribute as _0x1e4764,isComment as _0xc090df,isTag as _0x11c97b,insertElement as _0x48f4cd,moveElement as _0x3836b8,removeElement as _0x271e4a,replaceElement as _0x53c549,serialize as _0x36cb8d,setAttribute as _0x574449,clone as _0x37f4c7,findAllComments as _0x50e9bf,getParents as _0x45df39,getNodeNestingLevel as _0x4d6003,areNodesSame as _0x397fee,removeElementsAfter as _0x23c0ec}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x3456c5(){[_0x147f2e(0xa0)];[_0x147f2e(0xa3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x147f2e(0xc2)]=new Set();constructor(_0x3f9e19){const _0x231527=_0x147f2e;super(),this[_0x231527(0xa0)]=_0x3f9e19||_0x2ccc5a;}[_0x147f2e(0xd7)](_0x66120c,_0x103c3b,_0x52d1be){const _0x517eed=_0x147f2e,_0x2254bb=_0x37f4c7(_0x66120c);if(0x0===_0x103c3b[_0x517eed(0xb5)][_0x517eed(0xa7)]){const _0x1b361c=[];return _0x3bdabb(_0x517eed(0xe5),_0x517eed(0xb3),_0x2254bb)[_0x517eed(0xbd)](_0x2e63c7=>{const _0x543fa6=_0x517eed,_0x3b7d3d=this[_0x543fa6(0xa0)]();_0x574449(_0x2e63c7,_0x543fa6(0xe5),_0x3b7d3d),_0x1b361c[_0x543fa6(0xcf)](_0x3b7d3d);}),this[_0x517eed(0xc8)](_0x2254bb),{'parsedContent':_0x2254bb,'newNodeIds':_0x1b361c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x52d1be&&_0x52d1be[_0x517eed(0xb6)]&&this[_0x517eed(0xc1)](_0x2254bb),this[_0x517eed(0xa3)][_0x517eed(0xad)]=[],this[_0x517eed(0xa3)][_0x517eed(0xb4)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa2)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa6)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa8)]=null,this[_0x517eed(0xc2)]=new Set(_0x3bdabb(_0x517eed(0xe5),null,_0x103c3b)[_0x517eed(0xab)](_0x16b344=>_0x1e4764(_0x16b344,_0x517eed(0xe5)))[_0x517eed(0xb8)](_0x592506=>!!_0x592506));let _0x2b358c=-0x1,_0x34a7df=!0x1;const _0x1444bd=_0x2254bb[_0x517eed(0xb5)],_0x126d9d=Array[_0x517eed(0xd9)](_0x1444bd)[_0x517eed(0xb8)](_0x2a833a=>!(0x3===_0x2a833a[_0x517eed(0xaf)]&&''===_0x36cb8d(_0x2a833a)[_0x517eed(0xb2)]())),_0x274d4b=_0x126d9d[_0x517eed(0xa7)];for(let _0x26fe42=0x0;_0x26fe42<_0x274d4b;_0x26fe42++){const _0x4e3bfc=_0x126d9d[_0x26fe42],_0x3d1134=_0x126d9d[_0x26fe42+0x1];if(this[_0x517eed(0xa4)](_0x4e3bfc)){if(-0x1===_0x2b358c&&(_0x2b358c=_0x26fe42),this[_0x517eed(0xc3)](_0x4e3bfc),!this[_0x517eed(0xa4)](_0x3d1134)){const [_0x18c1a7,_0x1d7feb]=this[_0x517eed(0xa9)](_0x4e3bfc,_0x34a7df,_0x103c3b);if(_0x18c1a7){const _0x1cf141=Array[_0x517eed(0xd9)](_0x126d9d)[_0x517eed(0xbb)](_0x2b358c,_0x26fe42+0x1);this[_0x517eed(0xd8)](_0x18c1a7,_0x1cf141,_0x1d7feb),_0x2b358c=-0x1;}}}else{if(this[_0x517eed(0xd0)](_0x4e3bfc))_0x34a7df=!0x0;else{if(this[_0x517eed(0xb0)](_0x4e3bfc)){const _0x4a7ede=_0x1e4764(_0x4e3bfc,_0x517eed(0xe5));if(_0x4a7ede&&this[_0x517eed(0xc2)][_0x517eed(0xae)](_0x4a7ede)){const _0x14cf5b=_0x5285b9(_0x517eed(0xe5),_0x4a7ede,_0x103c3b);this[_0x517eed(0xdf)](_0x14cf5b,_0x4e3bfc);}if(this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xb9)](_0x4a7ede)){const _0x22d08a=this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xd5)](_0x4a7ede);this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xe3)](_0x22d08a,0x1);}}else{if(this[_0x517eed(0xd3)](_0x4e3bfc)){const _0x51151a=_0x1e4764(_0x4e3bfc,_0x517eed(0xe5));this[_0x517eed(0xa3)][_0x517eed(0xb4)][_0x517eed(0xb9)](_0x51151a)||this[_0x517eed(0xc4)](_0x4e3bfc);}}}}}for(const _0xff5757 of this[_0x517eed(0xa3)][_0x517eed(0xa2)]){const _0x33f145=_0x5285b9(_0x517eed(0xe5),_0xff5757,_0x103c3b);if(_0x33f145){if(_0x52d1be&&_0x52d1be[_0x517eed(0xba)]){this[_0x517eed(0xa3)][_0x517eed(0xa8)]=_0xff5757;const _0x5bf1c6=_0x52d1be[_0x517eed(0xba)][_0x517eed(0xde)](!0x0);_0x574449(_0x5bf1c6,_0x517eed(0xe5),_0xff5757),_0x574449(_0x5bf1c6,_0x517eed(0xe0),_0x517eed(0xdd)),_0x53c549(_0x33f145,_0x5bf1c6);}else _0x271e4a(_0x33f145);}}if(_0x3bdabb(_0x517eed(0xca),null,_0x103c3b)[_0x517eed(0xbd)](_0x5a41f7=>{const _0x449a20=_0x517eed,_0x53bb33=_0x1e4764(_0x5a41f7,_0x449a20(0xca)),_0x149b2f=_0x5285b9(_0x449a20(0xe5),_0x53bb33,_0x103c3b);_0x149b2f&&_0x3836b8(_0x149b2f,_0x5a41f7);}),_0x3bdabb(_0x517eed(0xe5),_0x517eed(0xb3),_0x103c3b)[_0x517eed(0xbd)](_0x2506a5=>{const _0x4dffc4=_0x517eed,_0x1ae3a5=this[_0x4dffc4(0xdc)](_0x2506a5);_0x574449(_0x2506a5,_0x4dffc4(0xe5),_0x1ae3a5),this[_0x4dffc4(0xa3)][_0x4dffc4(0xad)][_0x4dffc4(0xcf)](_0x1ae3a5);}),this[_0x517eed(0xc8)](_0x103c3b),_0x52d1be&&_0x52d1be[_0x517eed(0xb6)]&&this[_0x517eed(0xbf)](_0x103c3b,_0x52d1be[_0x517eed(0xb1)]||0x0),_0x52d1be&&_0x52d1be[_0x517eed(0xc5)]&&this[_0x517eed(0xa3)][_0x517eed(0xa8)]){let _0x500660=_0x5285b9(_0x517eed(0xe5),this[_0x517eed(0xa3)][_0x517eed(0xa8)],_0x103c3b);for(;_0x500660;)_0x23c0ec(_0x500660),_0x500660=_0x500660[_0x517eed(0xd6)];}return{'parsedContent':_0x103c3b,'newNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xad)],'modifiedNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xb4)],'removedNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xa2)]};}[_0x147f2e(0xd8)](_0x1edb62,_0x532bb9,_0x11dc29){const _0x3dce58=_0x147f2e;for(const _0xbe4075 of _0x532bb9){const _0x2b438b=this[_0x3dce58(0xdc)](_0xbe4075);_0x574449(_0xbe4075,_0x3dce58(0xe5),_0x2b438b),this[_0x3dce58(0xa3)][_0x3dce58(0xad)][_0x3dce58(0xcf)](_0x2b438b),this[_0x3dce58(0xa3)][_0x3dce58(0xa8)]=_0x2b438b;}const _0x396772=_0x3dce58(0xc9)===_0x11dc29||_0x3dce58(0xbe)===_0x11dc29?_0x532bb9[_0x3dce58(0xd1)]():_0x532bb9;for(const _0x92a9b4 of _0x396772)_0x48f4cd(_0x1edb62,_0x92a9b4,_0x11dc29);}[_0x147f2e(0xdf)](_0x18fea2,_0x15a95a){const _0x153e25=_0x147f2e;if(!_0x18fea2)return;if(_0x397fee(_0x18fea2,_0x15a95a))return;const _0x6056b7=this[_0x153e25(0xdc)](_0x18fea2);_0x574449(_0x15a95a,_0x153e25(0xe5),_0x6056b7),this[_0x153e25(0xa3)][_0x153e25(0xb4)][_0x153e25(0xcf)](_0x6056b7),this[_0x153e25(0xa3)][_0x153e25(0xa8)]=_0x6056b7,_0x53c549(_0x18fea2,_0x15a95a[_0x153e25(0xde)](!0x0));}[_0x147f2e(0xa9)](_0x4f09cb,_0x17ab07,_0x3f965b){const _0x12b641=_0x147f2e,_0x2795aa=this[_0x12b641(0xa1)](_0x4f09cb,!0x1);if(_0x2795aa){const _0xbb80fb=this[_0x12b641(0xcd)](_0x2795aa),_0x181d3e=_0x5285b9(_0x12b641(0xe5),_0xbb80fb,_0x3f965b);if(_0x181d3e)return[_0x181d3e,_0x12b641(0xbe)];this[_0x12b641(0xa3)][_0x12b641(0xa6)][_0x12b641(0xcf)](_0xbb80fb);}const _0x3a6dac=this[_0x12b641(0xda)](_0x4f09cb,!0x1);if(_0x3a6dac){const _0x532457=this[_0x12b641(0xcd)](_0x3a6dac),_0x21126a=_0x5285b9(_0x12b641(0xe5),_0x532457,_0x3f965b);if(_0x21126a)return[_0x21126a,_0x12b641(0xac)];this[_0x12b641(0xa3)][_0x12b641(0xa6)][_0x12b641(0xcf)](_0x532457);}return _0x17ab07?_0x4f09cb[_0x12b641(0xe1)]?this[_0x12b641(0xe2)](_0x4f09cb,_0x3f965b):[_0x3f965b[_0x12b641(0xb5)][_0x3f965b[_0x12b641(0xb5)][_0x12b641(0xa7)]-0x1],_0x12b641(0xbe)]:[_0x3f965b[_0x12b641(0xb5)][0x0],_0x12b641(0xac)];}[_0x147f2e(0xe2)](_0x556746,_0xa522d1){const _0x28eaa0=_0x147f2e,_0x48ef01=[],_0xf5485e=this[_0x28eaa0(0xa1)](_0x556746,!0x0);if(_0xf5485e){const _0x47695e=this[_0x28eaa0(0xcd)](_0xf5485e),_0x53ff81=_0x5285b9(_0x28eaa0(0xe5),_0x47695e,_0xa522d1);_0x53ff81&&_0x48ef01[_0x28eaa0(0xcf)]([_0x53ff81,_0x28eaa0(0xbe)]);}const _0x16fadb=this[_0x28eaa0(0xda)](_0x556746,!0x0);if(_0x16fadb){const _0x171f4d=this[_0x28eaa0(0xcd)](_0x16fadb),_0x187b8d=_0x5285b9(_0x28eaa0(0xe5),_0x171f4d,_0xa522d1);_0x187b8d&&_0x48ef01[_0x28eaa0(0xcf)]([_0x187b8d,_0x28eaa0(0xac)]);}if(_0x48ef01[_0x28eaa0(0xa7)]>0x1)return _0x4d6003(_0x48ef01[0x0][0x0])<=_0x4d6003(_0x48ef01[0x1][0x0])?_0x48ef01[0x0]:_0x48ef01[0x1];return 0x1===_0x48ef01[_0x28eaa0(0xa7)]?_0x48ef01[0x0]:[_0xa522d1[_0x28eaa0(0xc6)],_0x28eaa0(0xbe)];}[_0x147f2e(0xda)](_0x15db30,_0x2a46ff){const _0x4e9150=_0x147f2e;let _0x538828=_0x15db30[_0x4e9150(0xe1)],_0x192d71=null,_0x4a1201=!0x1;for(;_0x538828;){if(_0xc090df(_0x538828)){if(this[_0x4e9150(0xd3)](_0x538828)&&(_0x192d71=_0x538828),this[_0x4e9150(0xd0)](_0x538828)&&_0x2a46ff&&!_0x4a1201){_0x4a1201=!0x0,_0x538828=_0x538828[_0x4e9150(0xe1)];continue;}break;}const _0x5a0c3d=_0x1e4764(_0x538828,_0x4e9150(0xe5));if(_0x5a0c3d&&_0x4e9150(0xb3)!==_0x5a0c3d&&this[_0x4e9150(0xc2)][_0x4e9150(0xae)](_0x5a0c3d)){_0x192d71=_0x538828;break;}_0x538828=_0x538828[_0x4e9150(0xe1)];}return _0x192d71;}[_0x147f2e(0xa1)](_0x31effc,_0x42f54a){const _0x2d9dfa=_0x147f2e;let _0x120030=_0x31effc[_0x2d9dfa(0xe4)],_0x16adf5=null,_0x17820e=!0x1;for(;_0x120030;){if(_0xc090df(_0x120030)){if(this[_0x2d9dfa(0xd3)](_0x120030)&&(_0x16adf5=_0x120030),this[_0x2d9dfa(0xd0)](_0x120030)&&_0x42f54a&&!_0x17820e){_0x17820e=!0x0,_0x120030=_0x120030[_0x2d9dfa(0xe4)];continue;}break;}const _0xcf8363=_0x1e4764(_0x120030,_0x2d9dfa(0xe5));if(_0xcf8363&&_0x2d9dfa(0xb3)!==_0xcf8363&&this[_0x2d9dfa(0xc2)][_0x2d9dfa(0xae)](_0xcf8363)){_0x16adf5=_0x120030;break;}_0x120030=_0x120030[_0x2d9dfa(0xe4)];}return _0x16adf5;}[_0x147f2e(0xc3)](_0x14700e){const _0x28f1fc=_0x147f2e;_0x11c97b(_0x14700e)&&_0x3bdabb(_0x28f1fc(0xe5),null,_0x14700e)[_0x28f1fc(0xbd)](_0x37a25a=>{const _0x58a08a=_0x28f1fc;if(this[_0x58a08a(0xb0)](_0x37a25a)&&!this[_0x58a08a(0xaa)](_0x37a25a)){const _0x4cf140=_0x1e4764(_0x37a25a,_0x58a08a(0xe5));_0x574449(_0x37a25a,_0x58a08a(0xca),_0x4cf140),_0x574449(_0x37a25a,_0x58a08a(0xe5),null);}});}[_0x147f2e(0xcd)](_0x189cd7){const _0x1eb494=_0x147f2e;if(!_0x189cd7)return null;if(_0x11c97b(_0x189cd7))return _0x1e4764(_0x189cd7,_0x1eb494(0xe5));if(_0xc090df(_0x189cd7)){const _0x56838b=_0x36cb8d(_0x189cd7)[_0x1eb494(0xe6)](/removed[\s*-]data-id="([^"]+)"/);if(_0x56838b&&_0x56838b[0x1])return _0x56838b[0x1];}return null;}[_0x147f2e(0xc4)](_0x158909){const _0x1e6d69=_0x147f2e;if(_0xc090df(_0x158909)){const _0x4297be=_0x36cb8d(_0x158909)[_0x1e6d69(0xe6)](/removed[\s*-]data-id="([^"]+)"/);_0x4297be&&_0x4297be[0x1]&&this[_0x1e6d69(0xa3)][_0x1e6d69(0xa2)][_0x1e6d69(0xcf)](_0x4297be[0x1]);}}[_0x147f2e(0xdc)](_0x3bbbdd){const _0xf928d5=_0x147f2e;return this[_0xf928d5(0xb0)](_0x3bbbdd)?_0x1e4764(_0x3bbbdd,_0xf928d5(0xe5)):this[_0xf928d5(0xa0)]();}[_0x147f2e(0xc8)](_0x530eb7){const _0x4fec19=_0x147f2e;_0x50e9bf(_0x530eb7)[_0x4fec19(0xb8)](_0x4be650=>this[_0x4fec19(0xd3)](_0x4be650)||this[_0x4fec19(0xd0)](_0x4be650))[_0x4fec19(0xbd)](_0x21b170=>{_0x271e4a(_0x21b170);});}[_0x147f2e(0xc1)](_0x5503c9){const _0x20f106=_0x147f2e,_0x56ef94=_0x5503c9[_0x20f106(0xb5)],_0x402f93=_0x56ef94[_0x56ef94[_0x20f106(0xa7)]-0x1];_0x402f93&&_0x11c97b(_0x402f93)&&_0x574449(_0x402f93,_0x20f106(0xc7),_0x20f106(0xdd));}[_0x147f2e(0xbf)](_0x1b442a,_0x44b3b1){const _0x4debd0=_0x147f2e,_0x14f4b3=_0x5285b9(_0x4debd0(0xc7),_0x4debd0(0xdd),_0x1b442a);if(!_0x14f4b3)return;const _0x878843=_0x45df39(_0x14f4b3)[_0x4debd0(0xbb)](0x0,-0x1),_0x21b0ee=_0x878843[_0x4debd0(0xa7)];let _0x491761=_0x14f4b3;if(_0x21b0ee>_0x44b3b1){let _0xda6a4a=_0x21b0ee,_0x5692fe=null;for(;_0xda6a4a>_0x44b3b1&&_0xda6a4a>=0x0;)_0xda6a4a--,_0x5692fe=_0x878843[_0xda6a4a];_0x5692fe&&(_0x491761=_0x5692fe,_0x574449(_0x14f4b3,_0x4debd0(0xc7),null),_0x574449(_0x5692fe,_0x4debd0(0xc7),_0x4debd0(0xdd)));}else{if(_0x21b0ee<_0x44b3b1){let _0x3c7e6e=_0x21b0ee,_0x20f944=_0x14f4b3;for(;_0x3c7e6e<_0x44b3b1;){const _0x1d9fcb=_0x20f944[_0x4debd0(0xb5)][_0x4debd0(0xb8)](_0x1d3b9d=>_0x11c97b(_0x1d3b9d));if(0x0===_0x1d9fcb[_0x4debd0(0xa7)])break;_0x3c7e6e++,_0x20f944=_0x1d9fcb[_0x1d9fcb[_0x4debd0(0xa7)]-0x1];}_0x20f944&&(_0x491761=_0x20f944,_0x574449(_0x14f4b3,_0x4debd0(0xc7),null),_0x574449(_0x20f944,_0x4debd0(0xc7),_0x4debd0(0xdd)));}}let _0x1c14ea=_0x491761;for(;_0x1c14ea;){for(;_0x1c14ea[_0x4debd0(0xe1)];)_0x1c14ea=_0x1c14ea[_0x4debd0(0xe1)],_0x11c97b(_0x1c14ea)&&_0x574449(_0x1c14ea,_0x4debd0(0xc7),_0x4debd0(0xdd));_0x1c14ea=_0x1c14ea[_0x4debd0(0xd6)];}}[_0x147f2e(0xa4)](_0x380ab3){const _0x380b7d=_0x147f2e;return Boolean(_0x380b7d(0xb3)===_0x1e4764(_0x380ab3,_0x380b7d(0xe5)));}[_0x147f2e(0xb0)](_0x495d33){const _0x59df07=_0x147f2e;return Boolean((_0x1e4764(_0x495d33,_0x59df07(0xe5))||'')[_0x59df07(0xa7)]>0x0&&_0x59df07(0xb3)!==_0x1e4764(_0x495d33,_0x59df07(0xe5)));}[_0x147f2e(0xd3)](_0x1fddd5){const _0x2d3689=_0x147f2e;return!!_0x1fddd5&&Boolean(_0xc090df(_0x1fddd5)&&_0x36cb8d(_0x1fddd5)[_0x2d3689(0xe6)](/removed[\s*-]data-id="[^"]+"/));}[_0x147f2e(0xaa)](_0x2b82ad){const _0xa3009c=_0x147f2e;let _0x36834d=_0x2b82ad[_0xa3009c(0xd6)];for(;_0x36834d;){if(_0x1e4764(_0x36834d,_0xa3009c(0xca)))return!0x0;_0x36834d=_0x36834d[_0xa3009c(0xd6)];}return!0x1;}[_0x147f2e(0xd0)](_0x357673){const _0x8ecb25=_0x147f2e;return Boolean(_0xc090df(_0x357673)&&_0x36cb8d(_0x357673)[_0x8ecb25(0xe6)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1580eb=_0x4ec0;function _0x4ec0(_0x535531,_0x4257dd){const _0x4c9028=_0x4c90();return _0x4ec0=function(_0x4ec047,_0x817af1){_0x4ec047=_0x4ec047-0x1ec;let _0x3d485c=_0x4c9028[_0x4ec047];return _0x3d485c;},_0x4ec0(_0x535531,_0x4257dd);}(function(_0x251092,_0x5265b7){const _0x3c69c5=_0x4ec0,_0x412fa0=_0x251092();while(!![]){try{const _0x98dc98=-parseInt(_0x3c69c5(0x1fc))/0x1*(-parseInt(_0x3c69c5(0x1fb))/0x2)+-parseInt(_0x3c69c5(0x1f1))/0x3+-parseInt(_0x3c69c5(0x1fe))/0x4+parseInt(_0x3c69c5(0x1ec))/0x5+parseInt(_0x3c69c5(0x1fa))/0x6*(parseInt(_0x3c69c5(0x1ef))/0x7)+parseInt(_0x3c69c5(0x1ff))/0x8*(parseInt(_0x3c69c5(0x1f6))/0x9)+-parseInt(_0x3c69c5(0x1fd))/0xa*(parseInt(_0x3c69c5(0x1ed))/0xb);if(_0x98dc98===_0x5265b7)break;else _0x412fa0['push'](_0x412fa0['shift']());}catch(_0x12e72f){_0x412fa0['push'](_0x412fa0['shift']());}}}(_0x4c90,0x1ad75));function _0x4c90(){const _0x4a219d=['children','28635SralZh','<dummy>','convertMarkdownToHTML','parseAndNormalizeHTML','_m2html','5931RURThO','</dummy>','replace','_parseHTML','12xTpgkB','2462FAEaLY','159tLsJwI','2690wtuxgh','176276WCUJZz','488fZyZZC','114100hDbiXO','9449bmekPJ','parse','475573NcXntw'];_0x4c90=function(){return _0x4a219d;};return _0x4c90();}import{ObservableMixin as _0x245374}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x27ef87}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x124df2}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x245374(){[_0x1580eb(0x1f5)];constructor(){const _0x4f8206=_0x1580eb;super(),this[_0x4f8206(0x1f5)]=new _0x27ef87();}[_0x1580eb(0x1f3)](_0xa61788){const _0x333be3=_0x1580eb,_0x4040b2=this[_0x333be3(0x1f5)][_0x333be3(0x1ee)](_0xa61788);return this[_0x333be3(0x1f4)](_0x4040b2);}[_0x1580eb(0x1f4)](_0x26169f){const _0x31d4e4=_0x1580eb;return this[_0x31d4e4(0x1f9)](_0x26169f);}[_0x1580eb(0x1f9)](_0x20e250){const _0x432d13=_0x1580eb,_0x13515c=_0x20e250[_0x432d13(0x1f8)](/^\t+/gm,'\x20')[_0x432d13(0x1f8)](/\n*/g,'')[_0x432d13(0x1f8)](/\s+/g,'\x20')[_0x432d13(0x1f8)](/<[^>]*?$/g,''),_0x4d6bf2=_0x124df2(_0x432d13(0x1f2)+_0x13515c+_0x432d13(0x1f7));return _0x4d6bf2[_0x432d13(0x1f0)]=_0x4d6bf2[_0x432d13(0x1f0)][0x0][_0x432d13(0x1f0)],_0x4d6bf2;}}
23
+ const _0x116980=_0x5548;function _0x5548(_0x1a8cdd,_0x4e5d8f){const _0x5a9147=_0x5a91();return _0x5548=function(_0x55488b,_0x1d8b3f){_0x55488b=_0x55488b-0xcc;let _0x18f6b9=_0x5a9147[_0x55488b];return _0x18f6b9;},_0x5548(_0x1a8cdd,_0x4e5d8f);}(function(_0x47ad93,_0x3ce586){const _0xab0af1=_0x5548,_0x5afb06=_0x47ad93();while(!![]){try{const _0xd58698=-parseInt(_0xab0af1(0xd2))/0x1*(-parseInt(_0xab0af1(0xd9))/0x2)+-parseInt(_0xab0af1(0xd3))/0x3+-parseInt(_0xab0af1(0xcc))/0x4*(parseInt(_0xab0af1(0xd4))/0x5)+-parseInt(_0xab0af1(0xd7))/0x6+parseInt(_0xab0af1(0xcf))/0x7*(-parseInt(_0xab0af1(0xde))/0x8)+-parseInt(_0xab0af1(0xd0))/0x9+parseInt(_0xab0af1(0xd6))/0xa;if(_0xd58698===_0x3ce586)break;else _0x5afb06['push'](_0x5afb06['shift']());}catch(_0x559de2){_0x5afb06['push'](_0x5afb06['shift']());}}}(_0x5a91,0x36824));import{ObservableMixin as _0x52cfa3}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3fb4f5}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5a91(){const _0x149826=['3njEWSs','415959LQnLUu','180470XmzfGL','children','14529130QzBUJg','1777710fzcEzV','_m2html','27278GAqXTJ','replace','parse','parseAndNormalizeHTML','<dummy>','24AcgCym','12jHMLjz','</dummy>','convertMarkdownToHTML','745276xqNufm','3671442DfwnZm','_parseHTML'];_0x5a91=function(){return _0x149826;};return _0x5a91();}import{parse as _0x3f218f}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x52cfa3(){[_0x116980(0xd8)];constructor(){const _0x21e04c=_0x116980;super(),this[_0x21e04c(0xd8)]=new _0x3fb4f5();}[_0x116980(0xce)](_0x1d2070){const _0x161876=_0x116980,_0x655725=this[_0x161876(0xd8)][_0x161876(0xdb)](_0x1d2070);return this[_0x161876(0xdc)](_0x655725);}[_0x116980(0xdc)](_0x167f88){const _0x4c51d2=_0x116980;return this[_0x4c51d2(0xd1)](_0x167f88);}[_0x116980(0xd1)](_0x143eaf){const _0x4762d0=_0x116980,_0x1b1f5b=_0x143eaf[_0x4762d0(0xda)](/^\t+/gm,'\x20')[_0x4762d0(0xda)](/\n*/g,'')[_0x4762d0(0xda)](/\s+/g,'\x20')[_0x4762d0(0xda)](/<[^>]*?$/g,''),_0x2f5d23=_0x3f218f(_0x4762d0(0xdd)+_0x1b1f5b+_0x4762d0(0xcd));return _0x2f5d23[_0x4762d0(0xd5)]=_0x2f5d23[_0x4762d0(0xd5)][0x0][_0x4762d0(0xd5)],_0x2f5d23;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5ca4a8,_0x79ffe2){var _0x79dd2a=_0x5aa8,_0x1f7c76=_0x5ca4a8();while(!![]){try{var _0x33b7d8=-parseInt(_0x79dd2a(0xb7))/0x1+-parseInt(_0x79dd2a(0xb4))/0x2+parseInt(_0x79dd2a(0xba))/0x3+parseInt(_0x79dd2a(0xbc))/0x4*(-parseInt(_0x79dd2a(0xb9))/0x5)+-parseInt(_0x79dd2a(0xbb))/0x6*(-parseInt(_0x79dd2a(0xbd))/0x7)+parseInt(_0x79dd2a(0xb5))/0x8+parseInt(_0x79dd2a(0xb3))/0x9*(parseInt(_0x79dd2a(0xb8))/0xa);if(_0x33b7d8===_0x79ffe2)break;else _0x1f7c76['push'](_0x1f7c76['shift']());}catch(_0x2bd34e){_0x1f7c76['push'](_0x1f7c76['shift']());}}}(_0x393a,0x9424b));function _0x5aa8(_0x1dcc40,_0x536b65){var _0x393ab3=_0x393a();return _0x5aa8=function(_0x5aa855,_0x3524a8){_0x5aa855=_0x5aa855-0xb0;var _0xb2bb0e=_0x393ab3[_0x5aa855];return _0xb2bb0e;},_0x5aa8(_0x1dcc40,_0x536b65);}import{View as _0x5dd399}from'ckeditor5/src/ui.js';import{getTranslation as _0x2562a0}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x5dd399{constructor(_0x3a80ea){var _0xc990ed=_0x5aa8;super(_0x3a80ea),this[_0xc990ed(0xbe)]({'tag':_0xc990ed(0xb0),'attributes':{'class':['ck',_0xc990ed(0xb1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xc990ed(0xb6)]},'children':[{'text':_0x2562a0(_0x3a80ea,_0xc990ed(0xb2))}]}]});}}function _0x393a(){var _0x5a6821=['div','ck-ai-disclaimer','AI_DISCLAIMER_TEXT','1749528NbnCtA','2210686dqIfzx','6706984wIrPba','ck-ai-disclaimer__content','608854thoWmC','60louHOe','2837035GlkBYd','508263yPTnDp','6DyojSE','4BPBBdl','4999771eWvFaT','setTemplate'];_0x393a=function(){return _0x5a6821;};return _0x393a();}
23
+ (function(_0x1fe57f,_0x11b979){var _0x44ac87=_0x1e84,_0x2557b3=_0x1fe57f();while(!![]){try{var _0x1fdd86=parseInt(_0x44ac87(0x1a1))/0x1+-parseInt(_0x44ac87(0x19c))/0x2+parseInt(_0x44ac87(0x19d))/0x3+parseInt(_0x44ac87(0x19e))/0x4+parseInt(_0x44ac87(0x1a7))/0x5*(-parseInt(_0x44ac87(0x1a5))/0x6)+parseInt(_0x44ac87(0x1a4))/0x7*(parseInt(_0x44ac87(0x1a0))/0x8)+parseInt(_0x44ac87(0x1a3))/0x9*(-parseInt(_0x44ac87(0x1a6))/0xa);if(_0x1fdd86===_0x11b979)break;else _0x2557b3['push'](_0x2557b3['shift']());}catch(_0x12137c){_0x2557b3['push'](_0x2557b3['shift']());}}}(_0x19d5,0x2d0d0));function _0x19d5(){var _0xe637b0=['555980bhvJTS','84288rfImwd','710796nNHDLg','setTemplate','29576qmhkTg','293086QdCbLT','ck-ai-disclaimer__content','251037NqAVik','469fAEILx','5538zjzUOb','80UTBzYC','330TutxcG','ck-ai-disclaimer','div','AI_DISCLAIMER_TEXT'];_0x19d5=function(){return _0xe637b0;};return _0x19d5();}import{View as _0x2318d2}from'ckeditor5/src/ui.js';function _0x1e84(_0x175d0d,_0x24ec6c){var _0x19d56b=_0x19d5();return _0x1e84=function(_0x1e84d2,_0x53794b){_0x1e84d2=_0x1e84d2-0x19c;var _0x2accea=_0x19d56b[_0x1e84d2];return _0x2accea;},_0x1e84(_0x175d0d,_0x24ec6c);}import{getTranslation as _0x5173a}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x2318d2{constructor(_0x148418){var _0x1adca1=_0x1e84;super(_0x148418),this[_0x1adca1(0x19f)]({'tag':_0x1adca1(0x1a9),'attributes':{'class':['ck',_0x1adca1(0x1a8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1adca1(0x1a2)]},'children':[{'text':_0x5173a(_0x148418,_0x1adca1(0x1aa))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x572f(){const _0x3a90d1=['52HRrdzt','fill','ck-ai-skeleton__item','55fxKpLZ','map','6NoPUSW','5890836sWMKes','align',';\x20height:\x20','128px','_createSkeletonItems','left','250px','setTemplate','1601ZNOBzc','width:\x20','2397171BDJmsQ','attributes','40px','width','1163834pnNjMv','ck-ai-skeleton','right','center','5908312cgQErn','7209915gPQenh','24px','150px','tag','44px','4uKzVyj','9YqtqPw','88px','height','140px','1180EkIWCP','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','72px','div','class','2866130pRoxxT','100%','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;'];_0x572f=function(){return _0x3a90d1;};return _0x572f();}const _0x96cfa1=_0x2159;(function(_0x11bab8,_0x4b287a){const _0x3230d7=_0x2159,_0x2688b8=_0x11bab8();while(!![]){try{const _0x358e46=-parseInt(_0x3230d7(0x170))/0x1*(parseInt(_0x3230d7(0x159))/0x2)+parseInt(_0x3230d7(0x172))/0x3+parseInt(_0x3230d7(0x180))/0x4*(-parseInt(_0x3230d7(0x17b))/0x5)+parseInt(_0x3230d7(0x167))/0x6*(-parseInt(_0x3230d7(0x176))/0x7)+-parseInt(_0x3230d7(0x17a))/0x8*(parseInt(_0x3230d7(0x181))/0x9)+-parseInt(_0x3230d7(0x15f))/0xa*(-parseInt(_0x3230d7(0x165))/0xb)+parseInt(_0x3230d7(0x168))/0xc*(parseInt(_0x3230d7(0x162))/0xd);if(_0x358e46===_0x4b287a)break;else _0x2688b8['push'](_0x2688b8['shift']());}catch(_0x50e747){_0x2688b8['push'](_0x2688b8['shift']());}}}(_0x572f,0xdcca8));import{View as _0x4cd209}from'ckeditor5/src/ui.js';function _0x2159(_0x3ace1c,_0x1f2cee){const _0x572fd6=_0x572f();return _0x2159=function(_0x2159c5,_0x425ff8){_0x2159c5=_0x2159c5-0x157;let _0x2c82cd=_0x572fd6[_0x2159c5];return _0x2c82cd;},_0x2159(_0x3ace1c,_0x1f2cee);}export class AISkeletonView extends _0x4cd209{constructor(_0x47bfce,_0x3608ee){const _0x5aedf9=_0x2159;super(_0x47bfce),this[_0x5aedf9(0x16f)]({'tag':_0x5aedf9(0x15d),'attributes':{'class':['ck',_0x5aedf9(0x177)]},'children':this[_0x5aedf9(0x16c)](_0x3608ee)});}[_0x96cfa1(0x16c)](_0x3eb79c){const _0x5066d8=_0x96cfa1,_0x49ef7d=['ck',_0x5066d8(0x164)];return _0x3eb79c[_0x5066d8(0x166)](_0x287a55=>{const _0x2235d4=_0x5066d8;let _0x1f6188='';switch(_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x169)]){case _0x2235d4(0x178):_0x1f6188=_0x2235d4(0x15a);break;case _0x2235d4(0x179):_0x1f6188=_0x2235d4(0x15b);break;case _0x2235d4(0x16d):_0x1f6188=_0x2235d4(0x161);}return{'tag':_0x287a55[_0x2235d4(0x17e)],'attributes':{'class':[..._0x49ef7d,_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x15e)]?_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x15e)]:''],'style':_0x2235d4(0x171)+_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x175)]+_0x2235d4(0x16a)+_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x157)]+';'+_0x1f6188}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x15c),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16e),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x182),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x17d),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x158),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16e),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x182),'align':_0x96cfa1(0x178)}}],'aiHistory':$i(0x5,_0x96cfa1(0x160),_0x96cfa1(0x17f),_0x96cfa1(0x178)),'aiChatResources':$i(0x8,_0x96cfa1(0x160),_0x96cfa1(0x17c),_0x96cfa1(0x178)),'aiReviewChecks':[{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16b),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16b),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}}]};function $i(_0x264f91,_0x583269,_0x1c5af2,_0x124efe){const _0xe9bb65=_0x96cfa1;return new Array(_0x264f91)[_0xe9bb65(0x163)](null)[_0xe9bb65(0x166)](()=>({'tag':_0xe9bb65(0x15d),'attributes':{'width':_0x583269,'height':_0x1c5af2,'align':_0x124efe}}));}
23
+ const _0x44c64f=_0x1efc;(function(_0x241a05,_0x368981){const _0x4af5e7=_0x1efc,_0x2f43ef=_0x241a05();while(!![]){try{const _0x11350b=parseInt(_0x4af5e7(0x102))/0x1+-parseInt(_0x4af5e7(0x106))/0x2+-parseInt(_0x4af5e7(0x125))/0x3*(-parseInt(_0x4af5e7(0x124))/0x4)+parseInt(_0x4af5e7(0x122))/0x5*(parseInt(_0x4af5e7(0x11b))/0x6)+-parseInt(_0x4af5e7(0x118))/0x7+parseInt(_0x4af5e7(0x120))/0x8*(parseInt(_0x4af5e7(0x121))/0x9)+parseInt(_0x4af5e7(0x112))/0xa*(parseInt(_0x4af5e7(0x115))/0xb);if(_0x11350b===_0x368981)break;else _0x2f43ef['push'](_0x2f43ef['shift']());}catch(_0x37943e){_0x2f43ef['push'](_0x2f43ef['shift']());}}}(_0x211f,0xa9532));function _0x1efc(_0x10e469,_0x3bce25){const _0x211f88=_0x211f();return _0x1efc=function(_0x1efc8a,_0x4393e9){_0x1efc8a=_0x1efc8a-0xfe;let _0x4a4b28=_0x211f88[_0x1efc8a];return _0x4a4b28;},_0x1efc(_0x10e469,_0x3bce25);}import{View as _0x4023da}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x4023da{constructor(_0x5a4233,_0x18e78e){const _0x7d901c=_0x1efc;super(_0x5a4233),this[_0x7d901c(0x11e)]({'tag':_0x7d901c(0xfe),'attributes':{'class':['ck',_0x7d901c(0x11d)]},'children':this[_0x7d901c(0x103)](_0x18e78e)});}[_0x44c64f(0x103)](_0x133417){const _0x4006cc=_0x44c64f,_0x2c7924=['ck',_0x4006cc(0x10d)];return _0x133417[_0x4006cc(0x10f)](_0x2749cc=>{const _0x461eb8=_0x4006cc;let _0x5a5644='';switch(_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x117)]){case _0x461eb8(0x104):_0x5a5644=_0x461eb8(0x126);break;case _0x461eb8(0x101):_0x5a5644=_0x461eb8(0x111);break;case _0x461eb8(0x109):_0x5a5644=_0x461eb8(0x10c);}return{'tag':_0x2749cc[_0x461eb8(0x11a)],'attributes':{'class':[..._0x2c7924,_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x105)]?_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x105)]:''],'style':_0x461eb8(0x116)+_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x108)]+_0x461eb8(0x119)+_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x10b)]+';'+_0x5a5644}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0xff),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x127),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x113),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x11c),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x10a),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x127),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x113),'align':_0x44c64f(0x104)}}],'aiHistory':ta(0x5,_0x44c64f(0x100),_0x44c64f(0x11f),_0x44c64f(0x104)),'aiChatResources':ta(0x8,_0x44c64f(0x100),_0x44c64f(0x114),_0x44c64f(0x104)),'aiReviewChecks':[{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x10e),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x10e),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}}]};function ta(_0x2e659d,_0x5048c2,_0x239377,_0x2ed625){const _0x1d54c1=_0x44c64f;return new Array(_0x2e659d)[_0x1d54c1(0x110)](null)[_0x1d54c1(0x10f)](()=>({'tag':_0x1d54c1(0xfe),'attributes':{'width':_0x5048c2,'height':_0x239377,'align':_0x2ed625}}));}function _0x211f(){const _0x475f3f=['height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','ck-ai-skeleton__item','128px','map','fill','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','10KXaqJm','88px','24px','471988ZCFPuN','width:\x20','align','1106028fEGwMn',';\x20height:\x20','tag','4692570nMglVw','150px','ck-ai-skeleton','setTemplate','44px','624JhKNXM','243lphcRJ','5fiIUuf','40px','2936yczMZe','2622KBMzng','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','250px','div','72px','100%','center','480070bKVuYS','_createSkeletonItems','right','class','2194274IQpDMt','attributes','width','left','140px'];_0x211f=function(){return _0x475f3f;};return _0x211f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x23b8ec,_0x5001fb){const _0x27785e=_0x4f4e,_0x523790=_0x23b8ec();while(!![]){try{const _0x17dd36=parseInt(_0x27785e(0xe3))/0x1+-parseInt(_0x27785e(0xd9))/0x2+parseInt(_0x27785e(0xde))/0x3*(parseInt(_0x27785e(0xdc))/0x4)+-parseInt(_0x27785e(0xdd))/0x5+-parseInt(_0x27785e(0xe5))/0x6*(parseInt(_0x27785e(0xe1))/0x7)+-parseInt(_0x27785e(0xe4))/0x8+parseInt(_0x27785e(0xda))/0x9*(parseInt(_0x27785e(0xe0))/0xa);if(_0x17dd36===_0x5001fb)break;else _0x523790['push'](_0x523790['shift']());}catch(_0x57fd6b){_0x523790['push'](_0x523790['shift']());}}}(_0x528a,0xc6e3f));import{SpinnerView as _0x294127}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x294127{constructor(_0x3e499a=void 0x0){const _0x182039=_0x4f4e;super();const _0x35dd4a=_0x3e499a?_0x182039(0xdf)+_0x3e499a:'';this[_0x182039(0xe2)]({'tag':_0x182039(0xe6),'attributes':{'class':[_0x182039(0xdb),_0x35dd4a]}});}}function _0x4f4e(_0x5a44e4,_0x5330a0){const _0x528a9a=_0x528a();return _0x4f4e=function(_0x4f4e7b,_0x2a2912){_0x4f4e7b=_0x4f4e7b-0xd9;let _0x1815b3=_0x528a9a[_0x4f4e7b];return _0x1815b3;},_0x4f4e(_0x5a44e4,_0x5330a0);}function _0x528a(){const _0x25054b=['610374FHShAV','span','700034WACTtz','8361unIgJd','ck-ai-spinner','1761332CNJAuT','7745950zTSYwH','3dgEDgM','ck-ai-spinner_','22690BHkKoV','35iwCKnC','extendTemplate','1015893HaAWMS','2732960yOjusK'];_0x528a=function(){return _0x25054b;};return _0x528a();}
23
+ (function(_0x5bce8a,_0x211fce){const _0x288721=_0x46a0,_0x4c3b31=_0x5bce8a();while(!![]){try{const _0x43afaa=-parseInt(_0x288721(0x123))/0x1+-parseInt(_0x288721(0x11f))/0x2*(-parseInt(_0x288721(0x120))/0x3)+-parseInt(_0x288721(0x125))/0x4*(-parseInt(_0x288721(0x124))/0x5)+parseInt(_0x288721(0x118))/0x6+parseInt(_0x288721(0x122))/0x7*(parseInt(_0x288721(0x11b))/0x8)+-parseInt(_0x288721(0x126))/0x9*(-parseInt(_0x288721(0x11c))/0xa)+-parseInt(_0x288721(0x119))/0xb*(parseInt(_0x288721(0x11a))/0xc);if(_0x43afaa===_0x211fce)break;else _0x4c3b31['push'](_0x4c3b31['shift']());}catch(_0x4b3ee7){_0x4c3b31['push'](_0x4c3b31['shift']());}}}(_0x1893,0xb43a9));function _0x46a0(_0x314838,_0x53f276){const _0x1893f8=_0x1893();return _0x46a0=function(_0x46a0ce,_0x2b014f){_0x46a0ce=_0x46a0ce-0x117;let _0x1a1b65=_0x1893f8[_0x46a0ce];return _0x1a1b65;},_0x46a0(_0x314838,_0x53f276);}import{SpinnerView as _0x5be226}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x5be226{constructor(_0x11986d=void 0x0){const _0x12f569=_0x46a0;super();const _0x18b056=_0x11986d?_0x12f569(0x117)+_0x11986d:'';this[_0x12f569(0x11e)]({'tag':_0x12f569(0x11d),'attributes':{'class':[_0x12f569(0x121),_0x18b056]}});}}function _0x1893(){const _0x2ac560=['4660752ybEkGM','1560376SYnJIZ','9277810wsDTgh','span','extendTemplate','2742zaWJcE','1530tIHvRd','ck-ai-spinner','14KtTHsq','840221iknimn','5dwcDaD','900892uAdSpG','9VOFfPz','ck-ai-spinner_','5338284KBBqkA','44TAmDYt'];_0x1893=function(){return _0x2ac560;};return _0x1893();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x451c09=_0x2026;function _0x2183(){const _0x306a9a=['execute','class','likeButton','showCopy','full','isEnabled','isLoading','ck-ai-mini-toolbar-copy-button','543792bKajKi','ck-ai-mini-toolbar','isOn','showLike','showDislike','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','AI_MINI_TOOLBAR_COPY','2810850nCXeno','locale','64361HcdmCq','copyButton','customView','50WbkiGi','_setupShowChangesButton','AI_MINI_TOOLBAR_DISLIKE','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','like','bind','fire','children','ck-ai-mini-toolbar\x20ck-hidden','2pwfcFc','length','_config','561212RLlRtV','extendTemplate','showChangesButton','ck-ai-mini-toolbar-copy-button__check-mark','1940709KSkNke','18nupGEB','_setupCopyButton','6194140kYUVmM','dislikeButton','showChanges','add','set','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','9505888dwGtdb','items','6uIpiuj','4164gPMvzY','toggleShowChanges','addMany'];_0x2183=function(){return _0x306a9a;};return _0x2183();}(function(_0x633b61,_0x19e5a8){const _0x2f11d0=_0x2026,_0x49c6d6=_0x633b61();while(!![]){try{const _0x3a8410=-parseInt(_0x2f11d0(0xec))/0x1+-parseInt(_0x2f11d0(0x103))/0x2*(-parseInt(_0x2f11d0(0xd5))/0x3)+parseInt(_0x2f11d0(0xd1))/0x4*(parseInt(_0x2f11d0(0xf9))/0x5)+parseInt(_0x2f11d0(0xe0))/0x6*(-parseInt(_0x2f11d0(0xf4))/0x7)+-parseInt(_0x2f11d0(0xde))/0x8+-parseInt(_0x2f11d0(0xd6))/0x9*(parseInt(_0x2f11d0(0xd8))/0xa)+-parseInt(_0x2f11d0(0xf6))/0xb*(-parseInt(_0x2f11d0(0xe1))/0xc);if(_0x3a8410===_0x19e5a8)break;else _0x49c6d6['push'](_0x49c6d6['shift']());}catch(_0x1c062a){_0x49c6d6['push'](_0x49c6d6['shift']());}}}(_0x2183,0xaccf0));function _0x2026(_0x5e71c6,_0xc4022b){const _0x2183e6=_0x2183();return _0x2026=function(_0x20260e,_0x608ffb){_0x20260e=_0x20260e-0xd0;let _0x1657ad=_0x2183e6[_0x20260e];return _0x1657ad;},_0x2026(_0x5e71c6,_0xc4022b);}import{ButtonView as _0x4e6370,IconView as _0x3eedc7,ToolbarView as _0x15c42a}from'ckeditor5/src/ui.js';import{IconCheck as _0x109e13,IconCopy as _0x4f56a8,IconShowChangesOff as _0x509616,IconShowChangesOn as _0x1b4857,IconThumbDown as _0x7421cc,IconThumbUp as _0x57b45e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x470e3a}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x15c42a{[_0x451c09(0xf7)];[_0x451c09(0xe6)];[_0x451c09(0xd9)];[_0x451c09(0xd3)];[_0x451c09(0xd0)];constructor(_0x2b3911,_0x5ef077={},_0x1eae67){const _0x4d2901=_0x451c09;super(_0x2b3911),this[_0x4d2901(0xdc)](_0x4d2901(0xea),!0x1),this[_0x4d2901(0xd0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5ef077};const _0x45ced3=!(this[_0x4d2901(0xd0)][_0x4d2901(0xe7)]||this[_0x4d2901(0xd0)][_0x4d2901(0xda)]||this[_0x4d2901(0xd0)][_0x4d2901(0xef)]||this[_0x4d2901(0xd0)][_0x4d2901(0xf0)]||this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]?.[_0x4d2901(0x104)]);this[_0x4d2901(0xe5)]=_0x45ced3?_0x4d2901(0x102):_0x4d2901(0xed),this[_0x4d2901(0xd0)][_0x4d2901(0xe7)]&&(this[_0x4d2901(0xd7)](),this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xf7)])),this[_0x4d2901(0xd0)][_0x4d2901(0xda)]&&(this[_0x4d2901(0xfa)](_0x1eae67),this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xd3)])),this[_0x4d2901(0xf1)](),this[_0x4d2901(0xd0)][_0x4d2901(0xef)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xe6)]),this[_0x4d2901(0xd0)][_0x4d2901(0xf0)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xd9)]),this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xe3)](this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]);}[_0x451c09(0xf1)](){const _0x3b5a89=_0x451c09;this[_0x3b5a89(0xe6)]=new _0x4e6370(this[_0x3b5a89(0xf5)]),this[_0x3b5a89(0xe6)][_0x3b5a89(0xdc)]({'icon':_0x57b45e,'label':_0x470e3a(this[_0x3b5a89(0xf5)],_0x3b5a89(0xf2)),'tooltip':!0x0}),this[_0x3b5a89(0xe6)][_0x3b5a89(0xff)](_0x3b5a89(0xe9))['to'](this,_0x3b5a89(0xea),_0x106693=>!_0x106693),this[_0x3b5a89(0xe6)]['on'](_0x3b5a89(0xe4),()=>{const _0x3e1508=_0x3b5a89;this[_0x3e1508(0x100)](_0x3e1508(0xfe));}),this[_0x3b5a89(0xd9)]=new _0x4e6370(this[_0x3b5a89(0xf5)]),this[_0x3b5a89(0xd9)][_0x3b5a89(0xdc)]({'icon':_0x7421cc,'label':_0x470e3a(this[_0x3b5a89(0xf5)],_0x3b5a89(0xfb)),'tooltip':!0x0}),this[_0x3b5a89(0xd9)][_0x3b5a89(0xff)](_0x3b5a89(0xe9))['to'](this,_0x3b5a89(0xea),_0x3ccea7=>!_0x3ccea7),this[_0x3b5a89(0xd9)]['on'](_0x3b5a89(0xe4),()=>{const _0x36403c=_0x3b5a89;this[_0x36403c(0x100)](_0x36403c(0xfd));});}[_0x451c09(0xd7)](){const _0x441571=_0x451c09;this[_0x441571(0xf7)]=new _0x4e6370(this[_0x441571(0xf5)]),this[_0x441571(0xf7)][_0x441571(0xdc)]({'icon':_0x4f56a8,'label':_0x470e3a(this[_0x441571(0xf5)],_0x441571(0xf3)),'class':_0x441571(0xeb),'tooltip':!0x0}),this[_0x441571(0xf7)][_0x441571(0xff)](_0x441571(0xe9))['to'](this,_0x441571(0xea),_0x4b8aac=>!_0x4b8aac);const _0x4bf236=new _0x3eedc7();_0x4bf236[_0x441571(0xdc)]({'content':_0x109e13}),_0x4bf236[_0x441571(0xd2)]({'attributes':{'class':[_0x441571(0xd4)]}}),this[_0x441571(0xf7)]['on'](_0x441571(0xe4),()=>{const _0xd1c9d0=_0x441571;this[_0xd1c9d0(0xf7)][_0xd1c9d0(0xe5)]=_0xd1c9d0(0xdd),setTimeout(()=>{const _0x5d9cda=_0xd1c9d0;this[_0x5d9cda(0xf7)][_0x5d9cda(0xe5)]=_0x5d9cda(0xeb);},0x7d0);}),this[_0x441571(0xf7)][_0x441571(0x101)][_0x441571(0xdb)](_0x4bf236);}[_0x451c09(0xfa)](_0x14e818){const _0x33892c=_0x451c09;this[_0x33892c(0xd3)]=new _0x4e6370(this[_0x33892c(0xf5)]),this[_0x33892c(0xd3)][_0x33892c(0xdc)]({'icon':_0x509616,'label':_0x470e3a(this[_0x33892c(0xf5)],_0x33892c(0xfc)),'withText':_0x33892c(0xe8)==this[_0x33892c(0xd0)][_0x33892c(0xda)],'tooltip':_0x33892c(0xe8)!=this[_0x33892c(0xd0)][_0x33892c(0xda)],'isOn':_0x14e818}),this[_0x33892c(0xd3)][_0x33892c(0xff)](_0x33892c(0xe9))['to'](this,_0x33892c(0xea),_0x45237f=>!_0x45237f),this[_0x33892c(0xd3)]['on'](_0x33892c(0xe4),()=>{const _0x279adb=_0x33892c,_0xea90b7=!this[_0x279adb(0xd3)][_0x279adb(0xee)];this[_0x279adb(0xd3)][_0x279adb(0xdc)]({'isOn':_0xea90b7,'icon':_0xea90b7?_0x1b4857:_0x509616}),this[_0x279adb(0x100)](_0x279adb(0xe2),_0xea90b7);});}}
23
+ const _0x2c2a0b=_0x5911;(function(_0x9b7fc2,_0x174ff6){const _0x5234af=_0x5911,_0x5dd301=_0x9b7fc2();while(!![]){try{const _0x2ed12f=parseInt(_0x5234af(0xb2))/0x1*(parseInt(_0x5234af(0x9d))/0x2)+-parseInt(_0x5234af(0xab))/0x3+-parseInt(_0x5234af(0xb5))/0x4+parseInt(_0x5234af(0xa5))/0x5*(-parseInt(_0x5234af(0xbd))/0x6)+-parseInt(_0x5234af(0xa7))/0x7*(-parseInt(_0x5234af(0xaf))/0x8)+-parseInt(_0x5234af(0x95))/0x9*(parseInt(_0x5234af(0xb0))/0xa)+-parseInt(_0x5234af(0xbb))/0xb*(-parseInt(_0x5234af(0xa8))/0xc);if(_0x2ed12f===_0x174ff6)break;else _0x5dd301['push'](_0x5dd301['shift']());}catch(_0x3c6108){_0x5dd301['push'](_0x5dd301['shift']());}}}(_0xd688,0x312e7));function _0xd688(){const _0x33784e=['showCopy','locale','dislike','2337003zSUmiw','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button','execute','showChangesButton','add','_setupCopyButton','AI_MINI_TOOLBAR_DISLIKE','2siMhQs','AI_SUGGESTION_BUTTON_SHOW_CHANGES','_setupRatingButtons','likeButton','isOn','class','isLoading','showLike','511310oBWmRA','like','258398PVUGpc','12dQZqpf','children','set','70185mZVHXv','customView','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','16uquiIx','10ELDnsv','addMany','26833iIafxp','ck-ai-mini-toolbar-copy-button__check-mark','copyButton','888348HCLeVo','ck-ai-mini-toolbar','items','toggleShowChanges','full','_setupShowChangesButton','7790167tjGLFE','extendTemplate','6QSxEPV','fire','_config','showChanges','showDislike','isEnabled','dislikeButton','length','AI_MINI_TOOLBAR_LIKE','bind'];_0xd688=function(){return _0x33784e;};return _0xd688();}import{ButtonView as _0x509ad2,IconView as _0x3011b4,ToolbarView as _0x25f3e1}from'ckeditor5/src/ui.js';import{IconCheck as _0x44cd7f,IconCopy as _0x4387d0,IconShowChangesOff as _0x2bfdf4,IconShowChangesOn as _0x3c2a04,IconThumbDown as _0x5204d8,IconThumbUp as _0x370c3d}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x102b33}from'../../utils/common-translations.js';function _0x5911(_0x3161af,_0x12b01c){const _0xd688eb=_0xd688();return _0x5911=function(_0x591134,_0x1a010b){_0x591134=_0x591134-0x8f;let _0x4f89cb=_0xd688eb[_0x591134];return _0x4f89cb;},_0x5911(_0x3161af,_0x12b01c);}export class AIMiniToolbarView extends _0x25f3e1{[_0x2c2a0b(0xb4)];[_0x2c2a0b(0xa0)];[_0x2c2a0b(0xc3)];[_0x2c2a0b(0x99)];[_0x2c2a0b(0xbf)];constructor(_0x5a1171,_0x5d1be3={},_0x542705){const _0x5d22fe=_0x2c2a0b;super(_0x5a1171),this[_0x5d22fe(0xaa)](_0x5d22fe(0xa3),!0x1),this[_0x5d22fe(0xbf)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5d1be3};const _0x27c9cd=!(this[_0x5d22fe(0xbf)][_0x5d22fe(0x92)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xc0)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xa4)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xc1)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]?.[_0x5d22fe(0x8f)]);this[_0x5d22fe(0xa2)]=_0x27c9cd?_0x5d22fe(0xad):_0x5d22fe(0xb6),this[_0x5d22fe(0xbf)][_0x5d22fe(0x92)]&&(this[_0x5d22fe(0x9b)](),this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xb4)])),this[_0x5d22fe(0xbf)][_0x5d22fe(0xc0)]&&(this[_0x5d22fe(0xba)](_0x542705),this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0x99)])),this[_0x5d22fe(0x9f)](),this[_0x5d22fe(0xbf)][_0x5d22fe(0xa4)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xa0)]),this[_0x5d22fe(0xbf)][_0x5d22fe(0xc1)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xc3)]),this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0xb1)](this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]);}[_0x2c2a0b(0x9f)](){const _0x4d8b68=_0x2c2a0b;this[_0x4d8b68(0xa0)]=new _0x509ad2(this[_0x4d8b68(0x93)]),this[_0x4d8b68(0xa0)][_0x4d8b68(0xaa)]({'icon':_0x370c3d,'label':_0x102b33(this[_0x4d8b68(0x93)],_0x4d8b68(0x90)),'tooltip':!0x0}),this[_0x4d8b68(0xa0)][_0x4d8b68(0x91)](_0x4d8b68(0xc2))['to'](this,_0x4d8b68(0xa3),_0x4e822f=>!_0x4e822f),this[_0x4d8b68(0xa0)]['on'](_0x4d8b68(0x98),()=>{const _0x24b7cb=_0x4d8b68;this[_0x24b7cb(0xbe)](_0x24b7cb(0xa6));}),this[_0x4d8b68(0xc3)]=new _0x509ad2(this[_0x4d8b68(0x93)]),this[_0x4d8b68(0xc3)][_0x4d8b68(0xaa)]({'icon':_0x5204d8,'label':_0x102b33(this[_0x4d8b68(0x93)],_0x4d8b68(0x9c)),'tooltip':!0x0}),this[_0x4d8b68(0xc3)][_0x4d8b68(0x91)](_0x4d8b68(0xc2))['to'](this,_0x4d8b68(0xa3),_0x1e3a6d=>!_0x1e3a6d),this[_0x4d8b68(0xc3)]['on'](_0x4d8b68(0x98),()=>{const _0x5630ee=_0x4d8b68;this[_0x5630ee(0xbe)](_0x5630ee(0x94));});}[_0x2c2a0b(0x9b)](){const _0x1b8c90=_0x2c2a0b;this[_0x1b8c90(0xb4)]=new _0x509ad2(this[_0x1b8c90(0x93)]),this[_0x1b8c90(0xb4)][_0x1b8c90(0xaa)]({'icon':_0x4387d0,'label':_0x102b33(this[_0x1b8c90(0x93)],_0x1b8c90(0x96)),'class':_0x1b8c90(0x97),'tooltip':!0x0}),this[_0x1b8c90(0xb4)][_0x1b8c90(0x91)](_0x1b8c90(0xc2))['to'](this,_0x1b8c90(0xa3),_0x2b63a9=>!_0x2b63a9);const _0x4bde46=new _0x3011b4();_0x4bde46[_0x1b8c90(0xaa)]({'content':_0x44cd7f}),_0x4bde46[_0x1b8c90(0xbc)]({'attributes':{'class':[_0x1b8c90(0xb3)]}}),this[_0x1b8c90(0xb4)]['on'](_0x1b8c90(0x98),()=>{const _0x3899bf=_0x1b8c90;this[_0x3899bf(0xb4)][_0x3899bf(0xa2)]=_0x3899bf(0xae),setTimeout(()=>{const _0x442298=_0x3899bf;this[_0x442298(0xb4)][_0x442298(0xa2)]=_0x442298(0x97);},0x7d0);}),this[_0x1b8c90(0xb4)][_0x1b8c90(0xa9)][_0x1b8c90(0x9a)](_0x4bde46);}[_0x2c2a0b(0xba)](_0x262feb){const _0x591679=_0x2c2a0b;this[_0x591679(0x99)]=new _0x509ad2(this[_0x591679(0x93)]),this[_0x591679(0x99)][_0x591679(0xaa)]({'icon':_0x2bfdf4,'label':_0x102b33(this[_0x591679(0x93)],_0x591679(0x9e)),'withText':_0x591679(0xb9)==this[_0x591679(0xbf)][_0x591679(0xc0)],'tooltip':_0x591679(0xb9)!=this[_0x591679(0xbf)][_0x591679(0xc0)],'isOn':_0x262feb}),this[_0x591679(0x99)][_0x591679(0x91)](_0x591679(0xc2))['to'](this,_0x591679(0xa3),_0x515cda=>!_0x515cda),this[_0x591679(0x99)]['on'](_0x591679(0x98),()=>{const _0x5baeb0=_0x591679,_0x47e830=!this[_0x5baeb0(0x99)][_0x5baeb0(0xa1)];this[_0x5baeb0(0x99)][_0x5baeb0(0xaa)]({'isOn':_0x47e830,'icon':_0x47e830?_0x3c2a04:_0x2bfdf4}),this[_0x5baeb0(0xbe)](_0x5baeb0(0xb8),_0x47e830);});}}
@@ -9,14 +9,17 @@ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View } from 'ckeditor5/src/ui.js';
10
10
  import { AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
11
11
  import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
12
+ import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
13
+ import { type AIReplyChangeGroupState } from '../../model/aireply.js';
12
14
  /**
13
15
  * The inner view of the suggestion container that displays the content of the suggestion (or multiple parts of it).
14
16
  */
15
17
  export declare class AISuggestionBodyView extends View<HTMLDivElement> {
16
18
  hasPendingParts: boolean;
17
- constructor(locale: Locale, { areActionsDisabled, showUnchangedParts }: {
19
+ constructor(locale: Locale, options: {
18
20
  areActionsDisabled: boolean;
19
21
  showUnchangedParts: boolean;
22
+ availableActions: Array<AISuggestionActionName>;
20
23
  });
21
24
  get partsCount(): number;
22
25
  updateContentParts({ parts, renderingStrategy, abortSignal }: {
@@ -24,7 +27,7 @@ export declare class AISuggestionBodyView extends View<HTMLDivElement> {
24
27
  renderingStrategy: AIContentRenderingStrategy;
25
28
  abortSignal?: AbortSignal;
26
29
  }): Promise<void>;
27
- updatePartState(index: number, state: string): void;
30
+ updatePartState(index: number, state: AIReplyChangeGroupState): void;
28
31
  getPartView(index: number): AISuggestionBodyViewContentPartView | null;
29
32
  /**
30
33
  * Marks the body view as done.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fc041=_0x1b48;(function(_0x10227b,_0xc967ef){const _0x2fe699=_0x1b48,_0xbca02=_0x10227b();while(!![]){try{const _0x9712a6=parseInt(_0x2fe699(0xc4))/0x1+parseInt(_0x2fe699(0xc7))/0x2+-parseInt(_0x2fe699(0xc2))/0x3+parseInt(_0x2fe699(0xed))/0x4+-parseInt(_0x2fe699(0xd3))/0x5*(-parseInt(_0x2fe699(0xc5))/0x6)+parseInt(_0x2fe699(0xcd))/0x7+-parseInt(_0x2fe699(0xe0))/0x8*(parseInt(_0x2fe699(0xee))/0x9);if(_0x9712a6===_0xc967ef)break;else _0xbca02['push'](_0xbca02['shift']());}catch(_0x238f88){_0xbca02['push'](_0xbca02['shift']());}}}(_0x50c3,0xd5fd8));import{View as _0xd8553b}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x1c184a}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x19a27c}from'../../utils/eventnames.js';function _0x1b48(_0x5ad986,_0x511adc){const _0x50c30a=_0x50c3();return _0x1b48=function(_0x1b484b,_0x2b7f88){_0x1b484b=_0x1b484b-0xbf;let _0x4e0c49=_0x50c30a[_0x1b484b];return _0x4e0c49;},_0x1b48(_0x5ad986,_0x511adc);}import{PromiseQueue as _0x395db7}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x696e95}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x10bf6e}from'../../utils/common-translations.js';function _0x50c3(){const _0x467299=['createCollection','enqueue','abort','hasPendingParts','addEventListener','AI_SUGGESTION_NO_PARTS_WARNING','AI_SUGGESTION_EMPTY_PART_WARNING','3113844DVgzQa','2271339MrttJK','from','_areActionsDisabled','empty-parts-warning','_updateContentPartsPromiseQueue','setTemplate','_children','div','index','1305138sTRoor','updateContentParts','1539047jXdyPG','54BQCgDy','updateContent','1485666tbSSkw','delegate','partsCount','pending','ck-ai-suggestion__body','locale','5979834mDCbXU','find','get','some','ck-ai-suggestion__body__content-parts','warning','516745sVJZSD','_showUnchangedParts','add','hasNonEmptyParts','state','toggleHeader','getPartView','first','partDefinition','queueEmptyPromise','hasChanges','isVisible','set','112tpGhJW','length','_emptyPartsWarningView','setContent','updatePartState','markAsDone'];_0x50c3=function(){return _0x467299;};return _0x50c3();}export class AISuggestionBodyView extends _0xd8553b{[_0x1fc041(0xbf)];[_0x1fc041(0xf0)];[_0x1fc041(0xd4)];[_0x1fc041(0xf2)];[_0x1fc041(0xe2)];constructor(_0x69762e,{areActionsDisabled:_0x584cf2,showUnchangedParts:_0x1f3108}){const _0x33a833=_0x1fc041;super(_0x69762e),this[_0x33a833(0xf0)]=_0x584cf2,this[_0x33a833(0xd4)]=_0x1f3108,this[_0x33a833(0xdf)](_0x33a833(0xe9),!0x1),this[_0x33a833(0xbf)]=this[_0x33a833(0xe6)](),this[_0x33a833(0xf2)]=new _0x395db7(),this[_0x33a833(0xe2)]=new _0x696e95({'id':_0x33a833(0xf1),'initialContent':_0x10bf6e(_0x69762e,_0x33a833(0xec)),'level':_0x33a833(0xd2)}),this[_0x33a833(0xe2)][_0x33a833(0xde)]=!0x1,this[_0x33a833(0xf3)]({'tag':_0x33a833(0xc0),'attributes':{'class':['ck',_0x33a833(0xcb)]},'children':[{'tag':_0x33a833(0xc0),'attributes':{'class':['ck',_0x33a833(0xd1)]},'children':this[_0x33a833(0xbf)]},this[_0x33a833(0xe2)]]});}get[_0x1fc041(0xc9)](){const _0xab513e=_0x1fc041;return this[_0xab513e(0xbf)][_0xab513e(0xe1)];}async[_0x1fc041(0xc3)]({parts:_0x2dfe76,renderingStrategy:_0x3a985d,abortSignal:_0x344df6}){const _0x2337a8=_0x1fc041;for(const _0x6639d0 of _0x2dfe76)this[_0x2337a8(0xf2)][_0x2337a8(0xe7)](async _0x279c95=>{const _0x2a0c28=_0x2337a8;let _0x2662d6=this[_0x2a0c28(0xbf)][_0x2a0c28(0xce)](_0xe96f8f=>_0xe96f8f[_0x2a0c28(0xdb)][_0x2a0c28(0xc1)]==_0x6639d0[_0x2a0c28(0xc1)]);_0x2662d6||(_0x2662d6=new _0x1c184a(this[_0x2a0c28(0xcc)],{'part':_0x6639d0,'areActionsDisabled':this[_0x2a0c28(0xf0)]}),_0x2662d6[_0x2a0c28(0xc8)](..._0x19a27c)['to'](this),this[_0x2a0c28(0xbf)][_0x2a0c28(0xd5)](_0x2662d6),this[_0x2a0c28(0xe9)]=!0x0),0x2===this[_0x2a0c28(0xbf)][_0x2a0c28(0xe1)]&&this[_0x2a0c28(0xbf)][_0x2a0c28(0xda)][_0x2a0c28(0xd8)](!0x0),_0x2662d6[_0x2a0c28(0xd8)](this[_0x2a0c28(0xbf)][_0x2a0c28(0xe1)]>0x1),await _0x2662d6[_0x2a0c28(0xc6)]({'part':_0x6639d0,'renderingStrategy':_0x3a985d,'showUnchangedParts':this[_0x2a0c28(0xd4)],'abortSignal':_0x279c95});});return _0x344df6?.[_0x2337a8(0xea)](_0x2337a8(0xe8),()=>{const _0x43dd42=_0x2337a8;this[_0x43dd42(0xf2)][_0x43dd42(0xe8)]();}),this[_0x2337a8(0xf2)][_0x2337a8(0xdc)];}[_0x1fc041(0xe4)](_0x390fd8,_0x4ebfad){const _0x41f423=_0x1fc041;this[_0x41f423(0xbf)][_0x41f423(0xcf)](_0x390fd8)[_0x41f423(0xd7)]=_0x4ebfad,this[_0x41f423(0xe9)]=_0x41f423(0xca)==_0x4ebfad||Array[_0x41f423(0xef)](this[_0x41f423(0xbf)])[_0x41f423(0xd0)](_0x4cc9d=>_0x41f423(0xca)==_0x4cc9d[_0x41f423(0xd7)]);}[_0x1fc041(0xd9)](_0x1cba38){const _0x4daf4e=_0x1fc041;return this[_0x4daf4e(0xbf)][_0x4daf4e(0xcf)](_0x1cba38);}[_0x1fc041(0xe5)](){const _0x2a98f0=_0x1fc041;if(!this[_0x2a98f0(0xd4)]){const _0x570c2d=!this[_0x2a98f0(0xbf)][_0x2a98f0(0xce)](_0x4f9d26=>_0x4f9d26[_0x2a98f0(0xdb)][_0x2a98f0(0xdd)]),_0x5c0e51=!!this[_0x2a98f0(0xbf)][_0x2a98f0(0xce)](_0x52b384=>!_0x52b384[_0x2a98f0(0xdb)][_0x2a98f0(0xdd)]);this[_0x2a98f0(0xe2)][_0x2a98f0(0xde)]=0x0==this[_0x2a98f0(0xbf)][_0x2a98f0(0xe1)]||_0x5c0e51,_0x570c2d?this[_0x2a98f0(0xe2)][_0x2a98f0(0xe3)](_0x10bf6e(this[_0x2a98f0(0xcc)],_0x2a98f0(0xeb))):this[_0x2a98f0(0xe2)][_0x2a98f0(0xe3)](_0x10bf6e(this[_0x2a98f0(0xcc)],_0x2a98f0(0xec)));}}get[_0x1fc041(0xd6)](){const _0x172fea=_0x1fc041;return!!this[_0x172fea(0xbf)][_0x172fea(0xce)](_0x111280=>_0x111280[_0x172fea(0xdb)][_0x172fea(0xdd)]);}}
23
+ function _0x1fb4(){const _0xf3d770=['partsCount','isVisible','137155PcGTWY','delegate','269564vuJObJ','hasPendingParts','length','index','filter','_emptyPartsWarningView','addEventListener','partDefinition','2VMgxEY','findIndex','div','_availableActions','hasChanges','_cachedContentParts','_updateContentPartsPromiseQueue','304wzhLsn','hasNonEmptyParts','getPartView','3590172nDvfjj','updateContentParts','markAsDone','setContent','pending','15fOlFwH','createCollection','470976qFhlCN','_showUnchangedParts','_children','abort','ck-ai-suggestion__body__content-parts','some','push','_areActionsDisabled','ck-ai-suggestion__body','updatePartState','enqueue','add','first','forEach','state','empty-parts-warning','5vyYaEt','warning','7487730pSmKBy','AI_SUGGESTION_NO_PARTS_WARNING','queueEmptyPromise','252fAmXdr','2794610CsRgqa','set','AI_SUGGESTION_EMPTY_PART_WARNING','182502RtTFsj','toggleHeader','setTemplate','updateContent','find','from','locale'];_0x1fb4=function(){return _0xf3d770;};return _0x1fb4();}const _0x4d0863=_0x155a;(function(_0x263efb,_0x2f6ba6){const _0x2f1d69=_0x155a,_0x40c7f6=_0x263efb();while(!![]){try{const _0x49f9ca=-parseInt(_0x2f1d69(0x124))/0x1*(parseInt(_0x2f1d69(0x12e))/0x2)+parseInt(_0x2f1d69(0x13d))/0x3*(parseInt(_0x2f1d69(0x126))/0x4)+parseInt(_0x2f1d69(0x14f))/0x5*(parseInt(_0x2f1d69(0x138))/0x6)+parseInt(_0x2f1d69(0x155))/0x7+-parseInt(_0x2f1d69(0x135))/0x8*(parseInt(_0x2f1d69(0x158))/0x9)+-parseInt(_0x2f1d69(0x151))/0xa+-parseInt(_0x2f1d69(0x13f))/0xb*(-parseInt(_0x2f1d69(0x154))/0xc);if(_0x49f9ca===_0x2f6ba6)break;else _0x40c7f6['push'](_0x40c7f6['shift']());}catch(_0x270db4){_0x40c7f6['push'](_0x40c7f6['shift']());}}}(_0x1fb4,0x8cea7));function _0x155a(_0x374e16,_0x3d970f){const _0x1fb435=_0x1fb4();return _0x155a=function(_0x155ac3,_0xf4f0c7){_0x155ac3=_0x155ac3-0x11e;let _0x1f40e6=_0x1fb435[_0x155ac3];return _0x1f40e6;},_0x155a(_0x374e16,_0x3d970f);}import{View as _0x54d45b}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5138ba}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ef850}from'../../utils/eventnames.js';import{PromiseQueue as _0x1d4b0f}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x11032a}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x545927}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x54d45b{[_0x4d0863(0x141)];[_0x4d0863(0x146)];[_0x4d0863(0x140)];[_0x4d0863(0x134)];[_0x4d0863(0x12b)];[_0x4d0863(0x131)];[_0x4d0863(0x133)]=[];constructor(_0x511c17,_0x595ea4){const _0x100e08=_0x4d0863;super(_0x511c17);const {areActionsDisabled:_0xf29348,showUnchangedParts:_0x582550,availableActions:_0x19a30b}=_0x595ea4;this[_0x100e08(0x146)]=_0xf29348,this[_0x100e08(0x140)]=_0x582550,this[_0x100e08(0x131)]=_0x19a30b,this[_0x100e08(0x156)](_0x100e08(0x127),!0x1),this[_0x100e08(0x141)]=this[_0x100e08(0x13e)](),this[_0x100e08(0x134)]=new _0x1d4b0f(),this[_0x100e08(0x12b)]=new _0x11032a({'id':_0x100e08(0x14e),'initialContent':_0x545927(_0x511c17,_0x100e08(0x157)),'level':_0x100e08(0x150)}),this[_0x100e08(0x12b)][_0x100e08(0x123)]=!0x1,this[_0x100e08(0x15a)]({'tag':_0x100e08(0x130),'attributes':{'class':['ck',_0x100e08(0x147)]},'children':[{'tag':_0x100e08(0x130),'attributes':{'class':['ck',_0x100e08(0x143)]},'children':this[_0x100e08(0x141)]},this[_0x100e08(0x12b)]]});}get[_0x4d0863(0x122)](){const _0x54a9c0=_0x4d0863;return this[_0x54a9c0(0x141)][_0x54a9c0(0x128)];}async[_0x4d0863(0x139)]({parts:_0x5b28d1,renderingStrategy:_0x2461c0,abortSignal:_0x110450}){const _0x1a5b8c=_0x4d0863;this[_0x1a5b8c(0x141)][_0x1a5b8c(0x128)]?_0x5b28d1[_0x1a5b8c(0x14c)](_0x5d7a83=>{const _0x18b75e=_0x1a5b8c,_0x57f9bd=this[_0x18b75e(0x133)][_0x18b75e(0x12f)](_0x3e9a18=>_0x3e9a18[_0x18b75e(0x129)]==_0x5d7a83[_0x18b75e(0x129)]);-0x1===_0x57f9bd?this[_0x18b75e(0x133)][_0x18b75e(0x145)](_0x5d7a83):this[_0x18b75e(0x133)][_0x57f9bd]=_0x5d7a83;}):this[_0x1a5b8c(0x133)]=_0x5b28d1;for(const _0x1a0e35 of _0x5b28d1[_0x1a5b8c(0x12a)](_0x2ece8e=>_0x2ece8e[_0x1a5b8c(0x132)]))this[_0x1a5b8c(0x134)][_0x1a5b8c(0x149)](async _0x4c1e40=>{const _0x1b50f1=_0x1a5b8c;let _0x17f580=this[_0x1b50f1(0x137)](_0x1a0e35[_0x1b50f1(0x129)]);_0x17f580||(_0x17f580=new _0x5138ba(this[_0x1b50f1(0x121)],{'part':_0x1a0e35,'uiIndex':this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]+0x1,'areActionsDisabled':this[_0x1b50f1(0x146)],'availableActions':this[_0x1b50f1(0x131)]}),_0x17f580[_0x1b50f1(0x125)](..._0x2ef850)['to'](this),this[_0x1b50f1(0x141)][_0x1b50f1(0x14a)](_0x17f580),this[_0x1b50f1(0x127)]=!0x0),0x2===this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]&&this[_0x1b50f1(0x141)][_0x1b50f1(0x14b)][_0x1b50f1(0x159)](!0x0),_0x17f580[_0x1b50f1(0x159)](this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]>0x1),await _0x17f580[_0x1b50f1(0x11e)]({'part':_0x1a0e35,'renderingStrategy':_0x2461c0,'showUnchangedParts':this[_0x1b50f1(0x140)],'abortSignal':_0x4c1e40});});return _0x110450?.[_0x1a5b8c(0x12c)](_0x1a5b8c(0x142),()=>{const _0xd3ec14=_0x1a5b8c;this[_0xd3ec14(0x134)][_0xd3ec14(0x142)]();}),this[_0x1a5b8c(0x134)][_0x1a5b8c(0x153)];}[_0x4d0863(0x148)](_0x4d4241,_0x7dda2e){const _0x1c2951=_0x4d0863,_0x15b1b5=this[_0x1c2951(0x137)](_0x4d4241);_0x15b1b5&&(_0x15b1b5[_0x1c2951(0x14d)]=_0x7dda2e),this[_0x1c2951(0x127)]=_0x1c2951(0x13c)==_0x7dda2e||Array[_0x1c2951(0x120)](this[_0x1c2951(0x141)])[_0x1c2951(0x144)](_0x3f3cd=>_0x1c2951(0x13c)==_0x3f3cd[_0x1c2951(0x14d)]);}[_0x4d0863(0x137)](_0x319e0c){const _0x13c95d=_0x4d0863;return this[_0x13c95d(0x141)][_0x13c95d(0x11f)](_0x43de0b=>_0x43de0b[_0x13c95d(0x12d)][_0x13c95d(0x129)]==_0x319e0c)??null;}[_0x4d0863(0x13a)](){const _0x223fa1=_0x4d0863;if(!this[_0x223fa1(0x140)]){const _0xbce4ac=!this[_0x223fa1(0x133)][_0x223fa1(0x11f)](({hasChanges:_0x59cbc2})=>_0x59cbc2),_0x57e297=!!this[_0x223fa1(0x133)][_0x223fa1(0x11f)](({hasChanges:_0x33fe36})=>!_0x33fe36);this[_0x223fa1(0x12b)][_0x223fa1(0x123)]=0x0==this[_0x223fa1(0x141)][_0x223fa1(0x128)]||_0x57e297,_0xbce4ac?this[_0x223fa1(0x12b)][_0x223fa1(0x13b)](_0x545927(this[_0x223fa1(0x121)],_0x223fa1(0x152))):this[_0x223fa1(0x12b)][_0x223fa1(0x13b)](_0x545927(this[_0x223fa1(0x121)],_0x223fa1(0x157)));}}get[_0x4d0863(0x136)](){const _0x3d22dd=_0x4d0863;return!!this[_0x3d22dd(0x141)][_0x3d22dd(0x11f)](_0x4f73a1=>_0x4f73a1[_0x3d22dd(0x12d)][_0x3d22dd(0x132)]);}}