@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5-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 (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x258f13=_0x4c70;function _0x4c70(_0x49dc75,_0x50c8fb){const _0x352aa3=_0x352a();return _0x4c70=function(_0x4c70c6,_0x1d0437){_0x4c70c6=_0x4c70c6-0xc5;let _0x5966ab=_0x352aa3[_0x4c70c6];return _0x5966ab;},_0x4c70(_0x49dc75,_0x50c8fb);}(function(_0x3eeaac,_0x399316){const _0x32dbb6=_0x4c70,_0x3b4ff0=_0x3eeaac();while(!![]){try{const _0x3280ae=-parseInt(_0x32dbb6(0x10d))/0x1*(parseInt(_0x32dbb6(0xe7))/0x2)+-parseInt(_0x32dbb6(0xfc))/0x3*(-parseInt(_0x32dbb6(0x102))/0x4)+-parseInt(_0x32dbb6(0xd5))/0x5+parseInt(_0x32dbb6(0xde))/0x6*(-parseInt(_0x32dbb6(0xf9))/0x7)+-parseInt(_0x32dbb6(0xd9))/0x8+-parseInt(_0x32dbb6(0xd0))/0x9+parseInt(_0x32dbb6(0xd4))/0xa;if(_0x3280ae===_0x399316)break;else _0x3b4ff0['push'](_0x3b4ff0['shift']());}catch(_0x5087c9){_0x3b4ff0['push'](_0x3b4ff0['shift']());}}}(_0x352a,0xb7949));function _0x352a(){const _0xd6854b=['sendRequest','start','messageId','attributes','toolDataReceived','parse','connector','mcp-tool-result','error','210620dHuxdj','data','content','interactionDestroyed','find','abort','editor','reasoningFinished','isStopped','interactionCreated','_isWebSearching','reasoningStarted','toolName','notification','_handleToolResultData','forEach','webSearchFinished','destroy','conversation-title','getDocumentContext','stop','stopListening','message-metadata','push','result','text-delta','3351339mfWsFy','interactionStopped','isDestroyed','action-metadata','13669610FPHoxr','1095690joQvZn','replyContentUpdated','webSearchStarted','currentRequest','8299272eHhxhU','text','splice','fire','modification','46356fEyxJi','actionCallId','_handleToolNotificationData','resetWebSearchState','abortController','_finalizeInteraction','callId','source','reasoning','2yPRsvU','resetReasoningState','event','interactionFinished','modification-delta','length','setConversationTitle','web-search','delegate','appendContent','type','done','sources','getStream','replyChangeGroupStateUpdated','conversationTitle','replies','currentReply','77wSKYrI','ai-chat-interaction-error','textDelta','1329aeSLmA','replyCreated','mcp-tool-notification','getReply','_isReasoning','createReply','11824rkWHvS','interactionStarted'];_0x352a=function(){return _0xd6854b;};return _0x352a();}import{CKEditorError as _0xee183e,EmitterMixin as _0x1a2161,uid as _0xca30e0}from'ckeditor5/src/utils.js';import{AIReply as _0x3a470c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x258f13(0x116),_0x258f13(0x103),_0x258f13(0xd1),_0x258f13(0xea),_0x258f13(0x110),_0x258f13(0xfd),_0x258f13(0xd6),_0x258f13(0xf5),_0x258f13(0xed),_0x258f13(0xd7),_0x258f13(0xc6),_0x258f13(0x118),_0x258f13(0x114),_0x258f13(0x108),_0x258f13(0x10c)];export class AIInteraction extends _0x1a2161(){['id'];[_0x258f13(0xf7)]=[];[_0x258f13(0xf8)];[_0x258f13(0x106)];[_0x258f13(0xdf)];[_0x258f13(0xd8)];[_0x258f13(0x10a)];[_0x258f13(0x115)]=!0x1;[_0x258f13(0xd2)]=!0x1;[_0x258f13(0x113)];[_0x258f13(0x100)]=!0x1;[_0x258f13(0x117)]=!0x1;constructor({connector:_0x51abf9,editor:_0x65cb61}){const _0x5e276b=_0x258f13;super(),this['id']=_0xca30e0(),this[_0x5e276b(0x10a)]=_0x51abf9,this[_0x5e276b(0x115)]=!0x0,this[_0x5e276b(0x113)]=_0x65cb61;}async[_0x258f13(0x105)](){const _0x4b1932=_0x258f13,_0x812df3=[];let _0x3eb8a1,_0x4c7d9b,_0x44832e;this[_0x4b1932(0x115)]=!0x1;try{this[_0x4b1932(0xd8)]=await this[_0x4b1932(0x104)](),this[_0x4b1932(0xdc)](_0x4b1932(0x103),this);const _0x2733be=await this[_0x4b1932(0xd8)][_0x4b1932(0xf4)]();for await(const _0x52e30d of _0x2733be){if(this[_0x4b1932(0x115)])return;if(_0x4b1932(0x10c)==_0x52e30d[_0x4b1932(0xe9)])return void this[_0x4b1932(0xdc)](_0x4b1932(0x10c),{'error':new _0xee183e(_0x4b1932(0xfa),this)});switch(_0x52e30d[_0x4b1932(0xe9)]){case _0x4b1932(0xcc):this[_0x4b1932(0x106)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x106)];break;case _0x4b1932(0xd3):this[_0x4b1932(0xdf)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe4)];break;case _0x4b1932(0xc8):this[_0x4b1932(0xed)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xf6)],!0x0);break;case _0x4b1932(0xe5):_0x812df3[_0x4b1932(0xcd)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe5)]);break;case _0x4b1932(0xee):this[_0x4b1932(0x117)]||(this[_0x4b1932(0x117)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0xd7),this));break;case _0x4b1932(0xe6):this[_0x4b1932(0x100)]||(this[_0x4b1932(0x100)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0x118),this));break;case _0x4b1932(0xeb):case _0x4b1932(0xcf):this[_0x4b1932(0xe8)](),this[_0x4b1932(0xe1)](),_0x3eb8a1=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x4b1932(0xdd):_0x4b1932(0xda),_0x4c7d9b=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x52e30d[_0x4b1932(0x10e)]['id']:void 0x0,this[_0x4b1932(0xf8)]&&this[_0x4b1932(0xf8)][_0x4b1932(0xf1)]!=_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf2)](),this[_0x4b1932(0xf8)]=void 0x0),this[_0x4b1932(0xf8)]||(this[_0x4b1932(0xf8)]=this[_0x4b1932(0x101)]({'type':_0x3eb8a1,'interactionId':this['id'],'id':_0x4c7d9b}),_0x4b1932(0xdd)==_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0))),this[_0x4b1932(0xf8)][_0x4b1932(0xf0)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xfb)]);break;case _0x4b1932(0x10b):_0x44832e=JSON[_0x4b1932(0x109)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xce)]),this[_0x4b1932(0x11b)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x44832e[_0x4b1932(0x10e)],'attributes':_0x44832e[_0x4b1932(0x107)]});break;case _0x4b1932(0xfe):this[_0x4b1932(0xe0)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x10e)]});}}}finally{this[_0x4b1932(0x115)]||(this[_0x4b1932(0xf8)]&&_0x812df3[_0x4b1932(0xec)]>0x0&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0)),this[_0x4b1932(0xe3)](),this[_0x4b1932(0xdc)](_0x4b1932(0xea),this));}}[_0x258f13(0xca)](){const _0x1f0c24=_0x258f13;this[_0x1f0c24(0x115)]||(this[_0x1f0c24(0xe3)](),this[_0x1f0c24(0xdc)](_0x1f0c24(0xd1),this));}[_0x258f13(0xff)](_0xd04daa){const _0xfbe221=_0x258f13;return this[_0xfbe221(0xf7)][_0xfbe221(0x111)](_0x55dc92=>_0x55dc92['id']===_0xd04daa);}[_0x258f13(0xc7)](){const _0x10347b=_0x258f13;this[_0x10347b(0xd2)]||(this[_0x10347b(0xca)](),this[_0x10347b(0xf7)][_0x10347b(0xc5)](_0x861183=>_0x861183[_0x10347b(0xc7)]()),this[_0x10347b(0xf7)]=[],this[_0x10347b(0xd2)]=!0x0,this[_0x10347b(0xdc)](_0x10347b(0x110),this),this[_0x10347b(0xcb)]());}[_0x258f13(0x101)](_0x50f9dd){const _0x2739a4=_0x258f13,_0x2b75df=new _0x3a470c({'editor':this[_0x2739a4(0x113)],'documentContextContent':this[_0x2739a4(0xc9)]()?.[_0x2739a4(0x10f)],..._0x50f9dd});return this[_0x2739a4(0xf7)][_0x2739a4(0xcd)](_0x2b75df),_0x2b75df[_0x2739a4(0xef)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2739a4(0xdc)](_0x2739a4(0xfd),_0x2b75df),_0x2b75df;}[_0x258f13(0xed)](_0x15d84e,_0x1d2c48=!0x1){const _0x4236af=_0x258f13;this[_0x4236af(0xdc)](_0x4236af(0xed),_0x15d84e,_0x1d2c48);}[_0x258f13(0xe1)](){const _0x30b503=_0x258f13;this[_0x30b503(0x117)]&&(this[_0x30b503(0x117)]=!0x1,this[_0x30b503(0xdc)](_0x30b503(0xc6),this));}[_0x258f13(0xe8)](){const _0x1e8f79=_0x258f13;this[_0x1e8f79(0x100)]&&(this[_0x1e8f79(0x100)]=!0x1,this[_0x1e8f79(0xdc)](_0x1e8f79(0x114),this));}[_0x258f13(0x11b)](_0x3141f3){const _0x572509=_0x258f13;this[_0x572509(0xdc)](_0x572509(0x108),{'type':_0x572509(0xce),'toolName':_0x3141f3[_0x572509(0x119)],'data':structuredClone(_0x3141f3[_0x572509(0x10e)]||{}),'attributes':structuredClone(_0x3141f3[_0x572509(0x107)]||{})},this);}[_0x258f13(0xe0)](_0x1b9734){const _0x548262=_0x258f13;this[_0x548262(0xdc)](_0x548262(0x108),{'type':_0x548262(0x11a),'toolName':_0x1b9734[_0x548262(0x119)],'data':structuredClone(_0x1b9734[_0x548262(0x10e)])},this);}[_0x258f13(0xe3)](){const _0x144db4=_0x258f13;this[_0x144db4(0x115)]=!0x0,this[_0x144db4(0xd8)]&&this[_0x144db4(0xd8)][_0x144db4(0xe2)][_0x144db4(0x112)](),this[_0x144db4(0xf8)]&&this[_0x144db4(0xf8)][_0x144db4(0xf2)](),this[_0x144db4(0xd8)]=this[_0x144db4(0xf8)]=void 0x0;}}
23
+ const _0x4d04bc=_0x3cf1;function _0x3cf1(_0x85ffb6,_0x1227dd){const _0x4b36e7=_0x4b36();return _0x3cf1=function(_0x3cf1e0,_0x4aed37){_0x3cf1e0=_0x3cf1e0-0x172;let _0x5b6d5e=_0x4b36e7[_0x3cf1e0];return _0x5b6d5e;},_0x3cf1(_0x85ffb6,_0x1227dd);}(function(_0x2486ae,_0x551b1f){const _0x465393=_0x3cf1,_0x180d61=_0x2486ae();while(!![]){try{const _0x5465de=-parseInt(_0x465393(0x1ab))/0x1+parseInt(_0x465393(0x197))/0x2*(-parseInt(_0x465393(0x1b1))/0x3)+-parseInt(_0x465393(0x1a9))/0x4+-parseInt(_0x465393(0x1b8))/0x5+-parseInt(_0x465393(0x189))/0x6*(-parseInt(_0x465393(0x18a))/0x7)+-parseInt(_0x465393(0x1b6))/0x8*(parseInt(_0x465393(0x19a))/0x9)+parseInt(_0x465393(0x179))/0xa;if(_0x5465de===_0x551b1f)break;else _0x180d61['push'](_0x180d61['shift']());}catch(_0x516223){_0x180d61['push'](_0x180d61['shift']());}}}(_0x4b36,0x9a95a));import{CKEditorError as _0x4eedfb,EmitterMixin as _0x3c94d9,uid as _0x2edeb7}from'ckeditor5/src/utils.js';import{AIReply as _0x2680f0}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4d04bc(0x1a6),_0x4d04bc(0x1a7),_0x4d04bc(0x182),_0x4d04bc(0x17e),_0x4d04bc(0x177),_0x4d04bc(0x18c),_0x4d04bc(0x183),_0x4d04bc(0x1c5),_0x4d04bc(0x192),_0x4d04bc(0x18d),_0x4d04bc(0x175),_0x4d04bc(0x1c2),_0x4d04bc(0x185),_0x4d04bc(0x1c6),_0x4d04bc(0x17d)];function _0x4b36(){const _0x3c5abb=['3408640EIoRDZ','_finalizeInteraction','1224799fUkdeX','getStream','modification-delta','length','stop','sendRequest','1448358OikLqM','web-search','_handleToolNotificationData','messageId','getReply','162008xgWIFT','getDocumentContext','5185700qDONIu','message-metadata','delegate','currentRequest','splice','toolName','event','abortController','replies','editor','reasoningStarted','destroy','isStopped','replyChangeGroupStateUpdated','toolDataReceived','text-delta','modification','result','notification','callId','webSearchFinished','connector','interactionDestroyed','resetWebSearchState','36221380nPYpBH','ai-chat-interaction-error','conversationTitle','source','error','interactionFinished','forEach','text','content','interactionStopped','replyContentUpdated','done','reasoningFinished','_handleToolResultData','isDestroyed','stopListening','12GNSnXR','2623887LZbNhq','action-metadata','replyCreated','webSearchStarted','createReply','data','appendContent','mcp-tool-notification','setConversationTitle','fire','_isWebSearching','type','attributes','2KdRogV','resetReasoningState','conversation-title','63qkFsMn','mcp-tool-result','find','start','sources','push','parse','textDelta','currentReply','actionCallId','abort','_isReasoning','interactionCreated','interactionStarted','reasoning'];_0x4b36=function(){return _0x3c5abb;};return _0x4b36();}export class AIInteraction extends _0x3c94d9(){['id'];[_0x4d04bc(0x1c0)]=[];[_0x4d04bc(0x1a2)];[_0x4d04bc(0x1b4)];[_0x4d04bc(0x1a3)];[_0x4d04bc(0x1bb)];[_0x4d04bc(0x176)];[_0x4d04bc(0x1c4)]=!0x1;[_0x4d04bc(0x187)]=!0x1;[_0x4d04bc(0x1c1)];[_0x4d04bc(0x1a5)]=!0x1;[_0x4d04bc(0x194)]=!0x1;constructor({connector:_0x3b9996,editor:_0x879e3a}){const _0x2d5be6=_0x4d04bc;super(),this['id']=_0x2edeb7(),this[_0x2d5be6(0x176)]=_0x3b9996,this[_0x2d5be6(0x1c4)]=!0x0,this[_0x2d5be6(0x1c1)]=_0x879e3a;}async[_0x4d04bc(0x19d)](){const _0x26ecad=_0x4d04bc,_0x564461=[];let _0x99a2c2,_0x23a8ee,_0x2d9fda;this[_0x26ecad(0x1c4)]=!0x1;try{this[_0x26ecad(0x1bb)]=await this[_0x26ecad(0x1b0)](),this[_0x26ecad(0x193)](_0x26ecad(0x1a7),this);const _0x34148f=await this[_0x26ecad(0x1bb)][_0x26ecad(0x1ac)]();for await(const _0x150ae4 of _0x34148f){if(this[_0x26ecad(0x1c4)])return;if(_0x26ecad(0x17d)==_0x150ae4[_0x26ecad(0x1be)])return void this[_0x26ecad(0x193)](_0x26ecad(0x17d),{'error':new _0x4eedfb(_0x26ecad(0x17a),this)});switch(_0x150ae4[_0x26ecad(0x1be)]){case _0x26ecad(0x1b9):this[_0x26ecad(0x1b4)]=_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1b4)];break;case _0x26ecad(0x18b):this[_0x26ecad(0x1a3)]=_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x174)];break;case _0x26ecad(0x199):this[_0x26ecad(0x192)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x17b)],!0x0);break;case _0x26ecad(0x17c):_0x564461[_0x26ecad(0x19f)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x17c)]);break;case _0x26ecad(0x1b2):this[_0x26ecad(0x194)]||(this[_0x26ecad(0x194)]=!0x0,this[_0x26ecad(0x193)](_0x26ecad(0x18d),this));break;case _0x26ecad(0x1a8):this[_0x26ecad(0x1a5)]||(this[_0x26ecad(0x1a5)]=!0x0,this[_0x26ecad(0x193)](_0x26ecad(0x1c2),this));break;case _0x26ecad(0x1ad):case _0x26ecad(0x1c7):this[_0x26ecad(0x198)](),this[_0x26ecad(0x178)](),_0x99a2c2=_0x26ecad(0x1ad)==_0x150ae4[_0x26ecad(0x1be)]?_0x26ecad(0x1c8):_0x26ecad(0x180),_0x23a8ee=_0x26ecad(0x1ad)==_0x150ae4[_0x26ecad(0x1be)]?_0x150ae4[_0x26ecad(0x18f)]['id']:void 0x0,this[_0x26ecad(0x1a2)]&&this[_0x26ecad(0x1a2)][_0x26ecad(0x195)]!=_0x99a2c2&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x184)](),this[_0x26ecad(0x1a2)]=void 0x0),this[_0x26ecad(0x1a2)]||(this[_0x26ecad(0x1a2)]=this[_0x26ecad(0x18e)]({'type':_0x99a2c2,'interactionId':this['id'],'id':_0x23a8ee}),_0x26ecad(0x1c8)==_0x99a2c2&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x19e)]=_0x564461[_0x26ecad(0x1bc)](0x0))),this[_0x26ecad(0x1a2)][_0x26ecad(0x190)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1a1)]);break;case _0x26ecad(0x19b):_0x2d9fda=JSON[_0x26ecad(0x1a0)](_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x172)]),this[_0x26ecad(0x186)]({'toolName':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1bd)],'data':_0x2d9fda[_0x26ecad(0x18f)],'attributes':_0x2d9fda[_0x26ecad(0x196)]});break;case _0x26ecad(0x191):this[_0x26ecad(0x1b3)]({'toolName':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x1bd)],'data':_0x150ae4[_0x26ecad(0x18f)][_0x26ecad(0x18f)]});}}}finally{this[_0x26ecad(0x1c4)]||(this[_0x26ecad(0x1a2)]&&_0x564461[_0x26ecad(0x1ae)]>0x0&&(this[_0x26ecad(0x1a2)][_0x26ecad(0x19e)]=_0x564461[_0x26ecad(0x1bc)](0x0)),this[_0x26ecad(0x1aa)](),this[_0x26ecad(0x193)](_0x26ecad(0x17e),this));}}[_0x4d04bc(0x1af)](){const _0x4a0777=_0x4d04bc;this[_0x4a0777(0x1c4)]||(this[_0x4a0777(0x1aa)](),this[_0x4a0777(0x193)](_0x4a0777(0x182),this));}[_0x4d04bc(0x1b5)](_0x5ce452){const _0x956f78=_0x4d04bc;return this[_0x956f78(0x1c0)][_0x956f78(0x19c)](_0x356b7d=>_0x356b7d['id']===_0x5ce452);}[_0x4d04bc(0x1c3)](){const _0x5bef38=_0x4d04bc;this[_0x5bef38(0x187)]||(this[_0x5bef38(0x1af)](),this[_0x5bef38(0x1c0)][_0x5bef38(0x17f)](_0x335d97=>_0x335d97[_0x5bef38(0x1c3)]()),this[_0x5bef38(0x1c0)]=[],this[_0x5bef38(0x187)]=!0x0,this[_0x5bef38(0x193)](_0x5bef38(0x177),this),this[_0x5bef38(0x188)]());}[_0x4d04bc(0x18e)](_0x203154){const _0x58c7d9=_0x4d04bc,_0x47b46d=new _0x2680f0({'editor':this[_0x58c7d9(0x1c1)],'documentContextContent':this[_0x58c7d9(0x1b7)]()?.[_0x58c7d9(0x181)],..._0x203154});return this[_0x58c7d9(0x1c0)][_0x58c7d9(0x19f)](_0x47b46d),_0x47b46d[_0x58c7d9(0x1ba)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x58c7d9(0x193)](_0x58c7d9(0x18c),_0x47b46d),_0x47b46d;}[_0x4d04bc(0x192)](_0x58bfd9,_0x3cb6b5=!0x1){const _0x1f36ac=_0x4d04bc;this[_0x1f36ac(0x193)](_0x1f36ac(0x192),_0x58bfd9,_0x3cb6b5);}[_0x4d04bc(0x178)](){const _0x458a38=_0x4d04bc;this[_0x458a38(0x194)]&&(this[_0x458a38(0x194)]=!0x1,this[_0x458a38(0x193)](_0x458a38(0x175),this));}[_0x4d04bc(0x198)](){const _0x3df9f4=_0x4d04bc;this[_0x3df9f4(0x1a5)]&&(this[_0x3df9f4(0x1a5)]=!0x1,this[_0x3df9f4(0x193)](_0x3df9f4(0x185),this));}[_0x4d04bc(0x186)](_0x53c655){const _0x2ac0f7=_0x4d04bc;this[_0x2ac0f7(0x193)](_0x2ac0f7(0x1c6),{'type':_0x2ac0f7(0x172),'toolName':_0x53c655[_0x2ac0f7(0x1bd)],'data':structuredClone(_0x53c655[_0x2ac0f7(0x18f)]||{}),'attributes':structuredClone(_0x53c655[_0x2ac0f7(0x196)]||{})},this);}[_0x4d04bc(0x1b3)](_0xc940e6){const _0x349ec1=_0x4d04bc;this[_0x349ec1(0x193)](_0x349ec1(0x1c6),{'type':_0x349ec1(0x173),'toolName':_0xc940e6[_0x349ec1(0x1bd)],'data':structuredClone(_0xc940e6[_0x349ec1(0x18f)])},this);}[_0x4d04bc(0x1aa)](){const _0x479ada=_0x4d04bc;this[_0x479ada(0x1c4)]=!0x0,this[_0x479ada(0x1bb)]&&this[_0x479ada(0x1bb)][_0x479ada(0x1bf)][_0x479ada(0x1a4)](),this[_0x479ada(0x1a2)]&&this[_0x479ada(0x1a2)][_0x479ada(0x184)](),this[_0x479ada(0x1bb)]=this[_0x479ada(0x1a2)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58f1c2=_0xd0a2;(function(_0xa71ec,_0x7c50ed){const _0x40d4ae=_0xd0a2,_0x593597=_0xa71ec();while(!![]){try{const _0x1211d9=parseInt(_0x40d4ae(0x8f))/0x1+parseInt(_0x40d4ae(0x7e))/0x2+-parseInt(_0x40d4ae(0x7d))/0x3+parseInt(_0x40d4ae(0x67))/0x4+parseInt(_0x40d4ae(0x8c))/0x5*(-parseInt(_0x40d4ae(0x85))/0x6)+-parseInt(_0x40d4ae(0x8a))/0x7*(-parseInt(_0x40d4ae(0x86))/0x8)+-parseInt(_0x40d4ae(0x65))/0x9;if(_0x1211d9===_0x7c50ed)break;else _0x593597['push'](_0x593597['shift']());}catch(_0x13dfc7){_0x593597['push'](_0x593597['shift']());}}}(_0x5a08,0x51cac));function _0xd0a2(_0x282e41,_0x4b69e2){const _0x5a0852=_0x5a08();return _0xd0a2=function(_0xd0a25e,_0x1e6175){_0xd0a25e=_0xd0a25e-0x65;let _0x5cfc53=_0x5a0852[_0xd0a25e];return _0x5cfc53;},_0xd0a2(_0x282e41,_0x4b69e2);}import{EmitterMixin as _0x5afee6,logWarning as _0x56f134,logError as _0x523e96}from'ckeditor5/src/utils.js';import{getTranslation as _0x40972f}from'../utils/common-translations.js';function _0x5a08(){const _0x314ab1=['AI_MODEL_NAME_AUTO','isAvailable','749UXjRTn','startsWith','791085wCzjSM','agent','_isMatchingFilter','374628hJWTdY','getModel','getDefault','length','_modelList','ai-chat-model-id-unrecognized','ai-models-unable-to-retrieve','recommended','toLocaleLowerCase','3698010QWYutz','name','1450688mIqLPC','items','_locale','_retrieveModels','_modelsRequest','some','getAvailableModels','find','_availableModels','string','provider','defaultModelId','_connector','push','add','displayedModels','has','getAll','filter','_config','ai-chat-default-model-id-unrecognized','_getModelById','805254fYfSTU','761492bufjJH','getModels','_filterModels','uiLanguage','list','map','auto','12wEwzWK','15904gAFxIt','_defaultModelId'];_0x5a08=function(){return _0x314ab1;};return _0x5a08();}export class AIModels extends _0x5afee6(){[_0x58f1c2(0x73)];[_0x58f1c2(0x7a)];[_0x58f1c2(0x69)];[_0x58f1c2(0x93)]=[];[_0x58f1c2(0x6b)]=null;constructor({connector:_0x2ed283,config:_0x2024bf,locale:_0x8486b4}){const _0x1ea99b=_0x58f1c2;super(),this[_0x1ea99b(0x73)]=_0x2ed283,this[_0x1ea99b(0x7a)]=_0x2024bf,this[_0x1ea99b(0x69)]=_0x8486b4;}get[_0x58f1c2(0x6f)](){const _0x501950=_0x58f1c2;return this[_0x501950(0x7a)]?.[_0x501950(0x76)];}get[_0x58f1c2(0x87)](){const _0x2bfc91=_0x58f1c2;return this[_0x2bfc91(0x7a)]?.[_0x2bfc91(0x72)];}async[_0x58f1c2(0x78)](){const _0x182826=_0x58f1c2;return this[_0x182826(0x6b)]||(this[_0x182826(0x6b)]=this[_0x182826(0x6a)]()),this[_0x182826(0x6b)];}async[_0x58f1c2(0x6d)](){const _0x58e290=_0x58f1c2,_0x1411eb=await this[_0x58e290(0x78)]();let _0x3913d2;return _0x3913d2=this[_0x58e290(0x6f)]?this[_0x58e290(0x80)](_0x1411eb,this[_0x58e290(0x6f)]):_0x1411eb[_0x58e290(0x79)](_0x37c68b=>_0x37c68b[_0x58e290(0x96)]),_0x3913d2;}async[_0x58f1c2(0x90)](_0x3a1427){const _0x240b61=_0x58f1c2,_0x55410a=await this[_0x240b61(0x78)]();if(!_0x55410a[_0x240b61(0x92)])return null;if(_0x3a1427){const _0x12937e=this[_0x240b61(0x7c)](_0x55410a,_0x3a1427);if(_0x12937e)return _0x12937e;_0x56f134(_0x240b61(0x94),{'modelId':_0x3a1427,'fallBackModelId':this[_0x240b61(0x87)]});}return this[_0x240b61(0x91)]();}async[_0x58f1c2(0x91)](){const _0x1be782=_0x58f1c2,_0xc8129a=await this[_0x1be782(0x6d)]();if(!_0xc8129a[_0x1be782(0x92)])return null;if(this[_0x1be782(0x87)]){const _0x50827c=this[_0x1be782(0x7c)](_0xc8129a,this[_0x1be782(0x87)]);if(_0x50827c)return _0x50827c;_0x56f134(_0x1be782(0x7b),{'defaultModelId':this[_0x1be782(0x87)],'fallBackModelId':_0xc8129a[0x0]['id']});}return _0xc8129a[0x0];}async[_0x58f1c2(0x89)](_0x2e362){const _0x2c869d=_0x58f1c2;return(await this[_0x2c869d(0x6d)]())[_0x2c869d(0x6c)](_0x312dac=>_0x312dac[_0x2c869d(0x66)]===_0x2e362[_0x2c869d(0x66)]&&_0x312dac[_0x2c869d(0x71)]===_0x2e362[_0x2c869d(0x71)]);}async[_0x58f1c2(0x6a)](){const _0x838fa0=_0x58f1c2;if(!this[_0x838fa0(0x93)][_0x838fa0(0x92)])try{const _0x31e4c4=this[_0x838fa0(0x69)][_0x838fa0(0x81)]||'en',_0x4ab14e=this[_0x838fa0(0x73)][_0x838fa0(0x7f)](_0x31e4c4),_0x25809c=await _0x4ab14e[_0x838fa0(0x82)]();this[_0x838fa0(0x93)]=_0x25809c[_0x838fa0(0x68)][_0x838fa0(0x83)](_0x411c2a=>Bi(_0x411c2a)?{..._0x411c2a,'name':_0x40972f(this[_0x838fa0(0x69)],_0x838fa0(0x88))}:_0x411c2a);}catch(_0x3be836){throw _0x523e96(_0x838fa0(0x95),{'error':_0x3be836}),_0x3be836;}return[...this[_0x838fa0(0x93)]];}[_0x58f1c2(0x80)](_0x848977,_0x8057d5){const _0x3b2cfc=_0x58f1c2;let _0x288da9;if(_0x8057d5){_0x288da9=[];const _0x15bcc6=new Set(),_0x5377cc=_0x3b2cfc(0x70)==typeof _0x8057d5?[_0x8057d5[_0x3b2cfc(0x97)]()]:_0x8057d5[_0x3b2cfc(0x83)](_0x256563=>_0x256563[_0x3b2cfc(0x97)]());for(const _0x576236 of _0x5377cc)for(const _0x14ac7f of _0x848977)!_0x15bcc6[_0x3b2cfc(0x77)](_0x14ac7f['id'])&&this[_0x3b2cfc(0x8e)](_0x14ac7f,_0x576236)&&(_0x288da9[_0x3b2cfc(0x74)](_0x14ac7f),_0x15bcc6[_0x3b2cfc(0x75)](_0x14ac7f['id']));}else _0x288da9=_0x848977;return _0x288da9;}[_0x58f1c2(0x8e)](_0x3dee41,_0x223b42){const _0x32f0ce=_0x58f1c2,_0x17cb4c=_0x3dee41['id'][_0x32f0ce(0x97)](),_0x3596ff=_0x3dee41[_0x32f0ce(0x66)][_0x32f0ce(0x97)](),_0x178933=_0x3dee41[_0x32f0ce(0x71)][_0x32f0ce(0x97)]();return _0x17cb4c===_0x223b42||_0x3596ff===_0x223b42||Bi(_0x3dee41)&&_0x32f0ce(0x84)===_0x223b42||_0x178933===_0x223b42||_0x17cb4c[_0x32f0ce(0x8b)](_0x223b42);}[_0x58f1c2(0x7c)](_0x4083d9,_0x36a718){const _0x416dfc=_0x58f1c2;return _0x4083d9[_0x416dfc(0x6e)](_0x41438a=>Bi(_0x41438a)&&_0x416dfc(0x84)===_0x36a718?_0x41438a:_0x41438a['id']===_0x36a718)||null;}}function Bi(_0x4c587e){const _0x36cf7a=_0x58f1c2;return _0x4c587e['id'][_0x36cf7a(0x8b)](_0x36cf7a(0x8d));}
23
+ const _0xb6832=_0x5848;function _0x5848(_0x2cafbd,_0x647f98){const _0x4e7173=_0x4e71();return _0x5848=function(_0x5848ee,_0x1ebba1){_0x5848ee=_0x5848ee-0x1ef;let _0x2719f3=_0x4e7173[_0x5848ee];return _0x2719f3;},_0x5848(_0x2cafbd,_0x647f98);}(function(_0x3e3b46,_0x4bc6b0){const _0x498c00=_0x5848,_0x3ad6ff=_0x3e3b46();while(!![]){try{const _0x85553d=parseInt(_0x498c00(0x211))/0x1+parseInt(_0x498c00(0x214))/0x2+parseInt(_0x498c00(0x21a))/0x3+-parseInt(_0x498c00(0x1f4))/0x4*(parseInt(_0x498c00(0x216))/0x5)+-parseInt(_0x498c00(0x1fd))/0x6*(parseInt(_0x498c00(0x1f2))/0x7)+-parseInt(_0x498c00(0x222))/0x8+-parseInt(_0x498c00(0x200))/0x9*(-parseInt(_0x498c00(0x20c))/0xa);if(_0x85553d===_0x4bc6b0)break;else _0x3ad6ff['push'](_0x3ad6ff['shift']());}catch(_0x2bd88f){_0x3ad6ff['push'](_0x3ad6ff['shift']());}}}(_0x4e71,0xc131f));import{EmitterMixin as _0x11b40b,logWarning as _0x1c801b,logError as _0x17a64d}from'ckeditor5/src/utils.js';import{getTranslation as _0x16e3b3}from'../utils/common-translations.js';export class AIModels extends _0x11b40b(){[_0xb6832(0x213)];[_0xb6832(0x215)];[_0xb6832(0x21f)];[_0xb6832(0x1f6)]=[];[_0xb6832(0x1f5)]=null;constructor({connector:_0x5e781c,config:_0x37438,locale:_0x517fe0}){const _0x5e17a=_0xb6832;super(),this[_0x5e17a(0x213)]=_0x5e781c,this[_0x5e17a(0x215)]=_0x37438,this[_0x5e17a(0x21f)]=_0x517fe0;}get[_0xb6832(0x1fb)](){const _0x591aa9=_0xb6832;return this[_0x591aa9(0x215)]?.[_0x591aa9(0x212)];}get[_0xb6832(0x1f7)](){const _0x73e757=_0xb6832;return this[_0x73e757(0x215)]?.[_0x73e757(0x1ef)];}async[_0xb6832(0x20f)](){const _0x79aae8=_0xb6832;return this[_0x79aae8(0x1f5)]||(this[_0x79aae8(0x1f5)]=this[_0x79aae8(0x205)]()),this[_0x79aae8(0x1f5)];}async[_0xb6832(0x21b)](){const _0x1197f2=_0xb6832,_0x268631=await this[_0x1197f2(0x20f)]();let _0x4f5b78;return _0x4f5b78=this[_0x1197f2(0x1fb)]?this[_0x1197f2(0x1f8)](_0x268631,this[_0x1197f2(0x1fb)]):_0x268631[_0x1197f2(0x1fa)](_0x5954c1=>_0x5954c1[_0x1197f2(0x21e)]),_0x4f5b78;}async[_0xb6832(0x203)](_0x52de5d){const _0xa8c766=_0xb6832,_0x400c1e=await this[_0xa8c766(0x20f)]();if(!_0x400c1e[_0xa8c766(0x218)])return null;if(_0x52de5d){const _0x5c1b43=this[_0xa8c766(0x204)](_0x400c1e,_0x52de5d);if(_0x5c1b43)return _0x5c1b43;_0x1c801b(_0xa8c766(0x21d),{'modelId':_0x52de5d,'fallBackModelId':this[_0xa8c766(0x1f7)]});}return this[_0xa8c766(0x1f1)]();}async[_0xb6832(0x1f1)](){const _0x193718=_0xb6832,_0x2cfafa=await this[_0x193718(0x21b)]();if(!_0x2cfafa[_0x193718(0x218)])return null;if(this[_0x193718(0x1f7)]){const _0x4ca64b=this[_0x193718(0x204)](_0x2cfafa,this[_0x193718(0x1f7)]);if(_0x4ca64b)return _0x4ca64b;_0x1c801b(_0x193718(0x220),{'defaultModelId':this[_0x193718(0x1f7)],'fallBackModelId':_0x2cfafa[0x0]['id']});}return _0x2cfafa[0x0];}async[_0xb6832(0x21c)](_0xc5c815){const _0x4507e3=_0xb6832;return(await this[_0x4507e3(0x21b)]())[_0x4507e3(0x20d)](_0x3335a3=>_0x3335a3[_0x4507e3(0x210)]===_0xc5c815[_0x4507e3(0x210)]&&_0x3335a3[_0x4507e3(0x201)]===_0xc5c815[_0x4507e3(0x201)]);}async[_0xb6832(0x205)](){const _0x1d5f0b=_0xb6832;if(!this[_0x1d5f0b(0x1f6)][_0x1d5f0b(0x218)])try{const _0x23f35d=this[_0x1d5f0b(0x21f)][_0x1d5f0b(0x206)]||'en',_0xd4800=this[_0x1d5f0b(0x213)][_0x1d5f0b(0x20b)](_0x23f35d),_0x95317b=await _0xd4800[_0x1d5f0b(0x1fc)]();this[_0x1d5f0b(0x1f6)]=_0x95317b[_0x1d5f0b(0x20e)][_0x1d5f0b(0x219)](_0x6f2f7c=>ze(_0x6f2f7c)?{..._0x6f2f7c,'name':_0x16e3b3(this[_0x1d5f0b(0x21f)],_0x1d5f0b(0x221))}:_0x6f2f7c);}catch(_0x6ee569){throw _0x17a64d(_0x1d5f0b(0x1f0),{'error':_0x6ee569}),_0x6ee569;}return[...this[_0x1d5f0b(0x1f6)]];}[_0xb6832(0x1f8)](_0x1b9370,_0x5043ef){const _0x389d03=_0xb6832;let _0x53849a;if(_0x5043ef){_0x53849a=[];const _0x24efdf=new Set(),_0x9999c1=_0x389d03(0x1f9)==typeof _0x5043ef?[_0x5043ef[_0x389d03(0x1f3)]()]:_0x5043ef[_0x389d03(0x219)](_0x58c029=>_0x58c029[_0x389d03(0x1f3)]());for(const _0x305e43 of _0x9999c1)for(const _0x537dba of _0x1b9370)!_0x24efdf[_0x389d03(0x1fe)](_0x537dba['id'])&&this[_0x389d03(0x217)](_0x537dba,_0x305e43)&&(_0x53849a[_0x389d03(0x1ff)](_0x537dba),_0x24efdf[_0x389d03(0x202)](_0x537dba['id']));}else _0x53849a=_0x1b9370;return _0x53849a;}[_0xb6832(0x217)](_0x19ecdd,_0x5d5a05){const _0x3f70b2=_0xb6832,_0x28549a=_0x19ecdd['id'][_0x3f70b2(0x1f3)](),_0x18c9e2=_0x19ecdd[_0x3f70b2(0x210)][_0x3f70b2(0x1f3)](),_0x41a368=_0x19ecdd[_0x3f70b2(0x201)][_0x3f70b2(0x1f3)]();return _0x28549a===_0x5d5a05||_0x18c9e2===_0x5d5a05||ze(_0x19ecdd)&&_0x3f70b2(0x209)===_0x5d5a05||_0x41a368===_0x5d5a05||_0x28549a[_0x3f70b2(0x20a)](_0x5d5a05);}[_0xb6832(0x204)](_0x4568b9,_0x37f0dc){const _0xd83cd=_0xb6832;return _0x4568b9[_0xd83cd(0x208)](_0x43941a=>ze(_0x43941a)&&_0xd83cd(0x209)===_0x37f0dc?_0x43941a:_0x43941a['id']===_0x37f0dc)||null;}}function _0x4e71(){const _0x45edbf=['isAvailable','ai-chat-model-id-unrecognized','recommended','_locale','ai-chat-default-model-id-unrecognized','AI_MODEL_NAME_AUTO','4211328ycrpia','defaultModelId','ai-models-unable-to-retrieve','getDefault','5479089hWCdei','toLocaleLowerCase','76Zcejhf','_modelsRequest','_modelList','_defaultModelId','_filterModels','string','filter','_availableModels','list','12LtjPmj','has','push','9LUIxDA','provider','add','getModel','_getModelById','_retrieveModels','uiLanguage','agent','find','auto','startsWith','getModels','13779130NrrNrX','some','items','getAll','name','200694SrwYxF','displayedModels','_connector','2157494UoEJOb','_config','343595ENbcuG','_isMatchingFilter','length','map','4594512yQkGYF','getAvailableModels'];_0x4e71=function(){return _0x45edbf;};return _0x4e71();}function ze(_0x56a914){const _0x2f801f=_0xb6832;return _0x56a914['id'][_0x2f801f(0x20a)](_0x2f801f(0x207));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1521d7=_0xe07f;function _0xe07f(_0x5d572e,_0x3b5437){const _0x1c7a0a=_0x1c7a();return _0xe07f=function(_0xe07f4a,_0x37ad4){_0xe07f4a=_0xe07f4a-0x1af;let _0x10ee1d=_0x1c7a0a[_0xe07f4a];return _0x10ee1d;},_0xe07f(_0x5d572e,_0x3b5437);}function _0x1c7a(){const _0x3d089f=['filter','span','content','modified','cachedSuggestionContentParts','locale','fire','index','AI_SUGGESTION_CONTENT_PART_REMOVED','parsedMergedContent','splice','indexOf','interactionId','setChangeGroupState','958752udYXzC','sources','ai-get-editor-from-context-no-editor','withDiff','state','replyContentUpdated','set','cloneNode','context','603752bOcCgq','includes','replyChangeGroupStateUpdated','_getCachedContentParts','142823bxzWus','onContentChange','parsedContent','newNodeIds','node','done','_setCachedContentParts','type','isDone','every','data-id','areActionsDisabled','nextSibling','pending','getContentParts','_getDifferentChangeGroups','aiResponseApplier','611242DZPPTe','850808fMhWnx','forEach','data-unstable','3nEhkks','unshift','merge','removedNodeIds','changeGroups','10DUxhUn','modification','aiResponseParser','length','modifiedNodeIds','236724VhCsdl','ai-reply-get-content-parts-group-not-found','changes','map','appendContent','previousSibling','withoutDiff','7674876TJbxcU','convertMarkdownToHTML','find','destroy','5REQXZT','removed','14qIeEaC','updateChangeGroups','push','documentContextContent','new','parseAndNormalizeHTML','color:\x20#808080;\x20font-style:\x20italic','editor','change:content','stopListening'];_0x1c7a=function(){return _0x3d089f;};return _0x1c7a();}(function(_0x2ac0d5,_0x2d9886){const _0x273635=_0xe07f,_0x2f5afb=_0x2ac0d5();while(!![]){try{const _0x7c5556=parseInt(_0x273635(0x1d5))/0x1+parseInt(_0x273635(0x1e6))/0x2+parseInt(_0x273635(0x1ea))/0x3*(parseInt(_0x273635(0x1e7))/0x4)+-parseInt(_0x273635(0x1ff))/0x5*(parseInt(_0x273635(0x1f4))/0x6)+-parseInt(_0x273635(0x1b0))/0x7*(-parseInt(_0x273635(0x1d1))/0x8)+-parseInt(_0x273635(0x1c8))/0x9*(-parseInt(_0x273635(0x1ef))/0xa)+-parseInt(_0x273635(0x1fb))/0xb;if(_0x7c5556===_0x2d9886)break;else _0x2f5afb['push'](_0x2f5afb['shift']());}catch(_0x545940){_0x2f5afb['push'](_0x2f5afb['shift']());}}}(_0x1c7a,0x2c4c2));import{CKEditorError as _0x172f69,ObservableMixin as _0x53be14,uid as _0x3b5248}from'ckeditor5/src/utils.js';import{Element as _0x5cc01c,findAll as _0x4b4d08,getAttribute as _0xb17580,getParents as _0x55b6da,Document as _0x59cf5c,parse as _0x3e9c84,Text as _0x2a05a9}from'../utils/htmlparser.js';import{AIResponseParser as _0x99baab}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3294f7}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x12996c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x458dfe}from'../utils/common-translations.js';import{cloneDeep as _0x4efaf6}from'es-toolkit';export class AIReply extends _0x53be14(){['id'];[_0x1521d7(0x1c6)];[_0x1521d7(0x1dc)];[_0x1521d7(0x1c9)]=[];[_0x1521d7(0x1d7)]=new _0x59cf5c([]);[_0x1521d7(0x1c3)]=new _0x59cf5c([]);[_0x1521d7(0x1ee)]=[];[_0x1521d7(0x1e0)]=!0x1;[_0x1521d7(0x1b3)];[_0x1521d7(0x1f1)];[_0x1521d7(0x1e5)];[_0x1521d7(0x1b7)];[_0x1521d7(0x1be)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x10d45b,content:_0x57e73d='',isDone:_0x51bee3=!0x1,interactionId:_0x4b91a0,areActionsDisabled:_0xd5b441,documentContextContent:_0x32cc4a,editor:_0xeebda1,id:_0x4e0db7}){const _0x599072=_0x1521d7;super(),this['id']=_0x4e0db7||_0x3b5248(),this[_0x599072(0x1c6)]=_0x4b91a0,this[_0x599072(0x1dc)]=_0x10d45b,this[_0x599072(0x1e0)]=!!_0xd5b441,this[_0x599072(0x1b7)]=_0xeebda1,this[_0x599072(0x1f1)]=new _0x99baab(),this[_0x599072(0x1e5)]=new _0x3294f7(),this[_0x599072(0x1b3)]=_0x3e9c84(_0x32cc4a||''),this[_0x599072(0x1ce)](_0x599072(0x1dd),_0x51bee3),this['on'](_0x599072(0x1b8),()=>{const _0x4b7536=_0x599072;this[_0x4b7536(0x1d6)]();}),this[_0x599072(0x1ce)](_0x599072(0x1bc),_0x57e73d);}[_0x1521d7(0x1f8)](_0x26f454){const _0x5a029a=_0x1521d7;this[_0x5a029a(0x1ce)](_0x5a029a(0x1bc),this[_0x5a029a(0x1bc)]+_0x26f454);}[_0x1521d7(0x1da)](){const _0x5e8640=_0x1521d7;this[_0x5e8640(0x1dd)]||(this[_0x5e8640(0x1ce)](_0x5e8640(0x1dd),!0x0),this[_0x5e8640(0x1d6)]());}[_0x1521d7(0x1fe)](){const _0x10f6e9=_0x1521d7;this[_0x10f6e9(0x1b9)]();}[_0x1521d7(0x1c7)](_0x5ba590,_0x2364e9){const _0x4c87e6=_0x1521d7;this[_0x4c87e6(0x1ee)][_0x5ba590][_0x4c87e6(0x1cc)]=_0x2364e9,this[_0x4c87e6(0x1c0)](_0x4c87e6(0x1d3),{'reply':this,'index':_0x5ba590,'state':_0x2364e9});}[_0x1521d7(0x1e3)]({showDiff:_0x32c8c5,groupIndex:_0x50da68}){const _0x14819c=_0x1521d7;if(!this[_0x14819c(0x1b7)])throw new _0x172f69(_0x14819c(0x1ca),null,{'aiReply':this});const _0x31fa13=this[_0x14819c(0x1d4)](_0x32c8c5,_0x50da68);if(_0x31fa13)return _0x31fa13;let _0x5b13cd=[];if(void 0x0===_0x50da68)_0x5b13cd=this[_0x14819c(0x1ee)];else{const _0x16c34d=this[_0x14819c(0x1ee)][_0x14819c(0x1fd)](({index:_0x485a9e})=>_0x485a9e===_0x50da68);if(!_0x16c34d)throw new _0x172f69(_0x14819c(0x1f5),null,{'aiReply':this,'groupIndex':_0x50da68});_0x5b13cd=[_0x16c34d];}const _0x272236=_0x12996c({'editor':this[_0x14819c(0x1b7)],'showDiff':_0x32c8c5,'changeGroups':_0x5b13cd,'documentContextContent':this[_0x14819c(0x1b3)]});return this[_0x14819c(0x1db)](_0x32c8c5,_0x272236),_0x272236;}[_0x1521d7(0x1d4)](_0x1aaa59,_0x2b57e2){const _0x206c36=_0x1521d7,_0x55565b=_0x1aaa59?_0x206c36(0x1cb):_0x206c36(0x1fa);if(!this[_0x206c36(0x1be)][_0x55565b][_0x206c36(0x1f2)])return null;const _0x5072f5=this[_0x206c36(0x1be)][_0x55565b];if(void 0x0===_0x2b57e2)return _0x5072f5[_0x206c36(0x1f2)]>0x0&&_0x5072f5[_0x206c36(0x1f2)]!==this[_0x206c36(0x1ee)][_0x206c36(0x1f2)]?(this[_0x206c36(0x1db)](_0x1aaa59,null),null):_0x4efaf6(_0x5072f5);{const _0x46104a=_0x5072f5[_0x206c36(0x1fd)](({index:_0x47705b})=>_0x47705b===_0x2b57e2);if(_0x46104a)return[_0x4efaf6(_0x46104a)];}return null;}[_0x1521d7(0x1db)](_0xed5d2e,_0x2526df){const _0x477b8a=_0x1521d7,_0x1e6c69=_0xed5d2e?_0x477b8a(0x1cb):_0x477b8a(0x1fa);_0x2526df?_0x2526df[_0x477b8a(0x1e8)](_0x42d338=>{const _0xe9926c=_0x477b8a,_0x2ae695=this[_0xe9926c(0x1be)][_0x1e6c69],_0x5575e5=_0x2ae695[_0xe9926c(0x1fd)](({index:_0x3a3c63})=>_0x3a3c63===_0x42d338[_0xe9926c(0x1c1)]);if(_0x5575e5){const _0x3dc125=_0x2ae695[_0xe9926c(0x1c5)](_0x5575e5);_0x2ae695[_0xe9926c(0x1c4)](_0x3dc125,0x1,_0x42d338);}else _0x2ae695[_0xe9926c(0x1b2)](_0x42d338);}):this[_0x477b8a(0x1be)][_0x1e6c69][_0x477b8a(0x1f2)]=0x0;}[_0x1521d7(0x1d6)](){const _0x467d49=_0x1521d7;if(_0x467d49(0x1f0)===this[_0x467d49(0x1dc)]){this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1b5)](this[_0x467d49(0x1bc)]);const _0x588dda=this[_0x467d49(0x1ee)];this[_0x467d49(0x1b1)]();const _0x42a0ad=this[_0x467d49(0x1e4)](_0x588dda,this[_0x467d49(0x1ee)]);(_0x42a0ad[_0x467d49(0x1f2)]||this[_0x467d49(0x1dd)])&&(this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this,_0x42a0ad),this[_0x467d49(0x1be)][_0x467d49(0x1cb)][_0x467d49(0x1f2)]=this[_0x467d49(0x1be)][_0x467d49(0x1fa)][_0x467d49(0x1f2)]=0x0);}else this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1fc)](this[_0x467d49(0x1bc)]),this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this);}[_0x1521d7(0x1e4)](_0x102aa2,_0x3c2059){const _0x44c8b7=_0x1521d7,_0x39caf6=[];for(const _0x3b9923 of _0x3c2059){const _0x3b9de3=_0x102aa2[_0x3b9923[_0x44c8b7(0x1c1)]];_0x3b9de3?_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]!==_0x3b9923[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]?_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923):_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1e8)]((_0x2469cf,_0x4b6eda)=>{const _0x4ce3e4=_0x44c8b7,_0x38fc4b=_0x3b9923[_0x4ce3e4(0x1f6)][_0x4b6eda];_0x2469cf['id']!==_0x38fc4b['id']&&_0x39caf6[_0x4ce3e4(0x1b2)](_0x3b9923);}):_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923);}return _0x39caf6;}[_0x1521d7(0x1b1)](){const _0x54ed4a=_0x1521d7,_0x3cf3f8=new _0x5cc01c('p',{},[new _0x5cc01c(_0x54ed4a(0x1bb),{'style':_0x54ed4a(0x1b6)},[new _0x2a05a9(_0x458dfe(this[_0x54ed4a(0x1b7)][_0x54ed4a(0x1bf)],_0x54ed4a(0x1c2)))])]),_0x24e1e5=this[_0x54ed4a(0x1e5)][_0x54ed4a(0x1ec)](this[_0x54ed4a(0x1d7)],this[_0x54ed4a(0x1b3)][_0x54ed4a(0x1cf)](!0x0),{'markUnstableElements':!this[_0x54ed4a(0x1dd)],'replaceRemovedWith':_0x3cf3f8,'cutAfterLastChange':!this[_0x54ed4a(0x1dd)]});if(!_0x24e1e5[_0x54ed4a(0x1f3)][_0x54ed4a(0x1f2)]&&!this[_0x54ed4a(0x1dd)])return;this[_0x54ed4a(0x1c3)]=_0x24e1e5[_0x54ed4a(0x1d7)];let _0x30ba45=[];if(_0x4b4d08(_0x220d03=>{const _0x391779=_0x54ed4a,_0xe9b4ff=_0xb17580(_0x220d03,_0x391779(0x1df));if(!_0xe9b4ff||!_0x3b7164(_0xe9b4ff))return!0x1;const _0x11a54e=[_0x220d03,..._0x55b6da(_0x220d03)]['at'](-0x2);if(_0x220d03!=_0x11a54e){const _0x2c40bf=_0xb17580(_0x11a54e,_0x391779(0x1df));_0x3b7164(_0x2c40bf)||(_0x30ba45[_0x391779(0x1b2)]({'node':_0x11a54e,'id':_0x2c40bf,'type':_0x391779(0x1bd)}),_0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1b2)](_0x2c40bf));}else _0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1bd),'id':_0xe9b4ff}):_0x24e1e5[_0x391779(0x1d8)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1b4),'id':_0xe9b4ff,'anchorId':_0xb17580(_0x220d03[_0x391779(0x1f9)],_0x391779(0x1df))}):_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1af),'id':_0xe9b4ff});return!0x0;},this[_0x54ed4a(0x1c3)]),_0x30ba45=_0x30ba45[_0x54ed4a(0x1ba)](({node:_0x5a5f20})=>[..._0x55b6da(_0x5a5f20),_0x5a5f20][_0x54ed4a(0x1de)](_0x2e1cd0=>!_0xb17580(_0x2e1cd0,_0x54ed4a(0x1e9)))),0x0==_0x30ba45[_0x54ed4a(0x1f2)])return;const _0x2ad93e=[[_0x30ba45[0x0]]];for(let _0x5a328d=0x1;_0x5a328d<_0x30ba45[_0x54ed4a(0x1f2)];_0x5a328d++){const _0x2b26fb=_0x2ad93e[_0x2ad93e[_0x54ed4a(0x1f2)]-0x1],_0x37a625=_0x2b26fb[_0x2b26fb[_0x54ed4a(0x1f2)]-0x1];_0x30ba45[_0x5a328d][_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]==_0x37a625[_0x54ed4a(0x1d9)]&&_0x54ed4a(0x1bd)!=_0x30ba45[_0x5a328d][_0x54ed4a(0x1dc)]&&_0x54ed4a(0x1bd)!=_0x37a625[_0x54ed4a(0x1dc)]?_0x2b26fb[_0x54ed4a(0x1b2)](_0x30ba45[_0x5a328d]):_0x2ad93e[_0x54ed4a(0x1b2)]([_0x30ba45[_0x5a328d]]);}for(const _0x58f603 of _0x2ad93e){const _0x56b664=_0x58f603[0x0],_0x45a887=_0x58f603[_0x58f603[_0x54ed4a(0x1f2)]-0x1],_0x34f4b2=_0x2ee11d(_0x56b664[_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]);_0x34f4b2&&_0x58f603[_0x54ed4a(0x1eb)](_0x34f4b2);const _0x135769=_0x2ee11d(_0x45a887[_0x54ed4a(0x1d9)][_0x54ed4a(0x1e1)]);_0x135769&&_0x58f603[_0x54ed4a(0x1b2)](_0x135769);}function _0x3b7164(_0x254b26){const _0x10e821=_0x54ed4a;return _0x24e1e5[_0x10e821(0x1f3)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1d8)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1ed)][_0x10e821(0x1d2)](_0x254b26);}function _0x2ee11d(_0x195cda){const _0x41d381=_0x54ed4a;if(_0x195cda&&_0xb17580(_0x195cda,_0x41d381(0x1df))&&!_0xb17580(_0x195cda,_0x41d381(0x1e9))){const _0xc9d68c=_0xb17580(_0x195cda,_0x41d381(0x1df));if(!_0x3b7164(_0xc9d68c))return{'node':_0x195cda,'type':_0x41d381(0x1d0),'id':_0xc9d68c};}return null;}this[_0x54ed4a(0x1ee)]=_0x2ad93e[_0x54ed4a(0x1f7)]((_0x15ad8f,_0x110336)=>({'changes':_0x15ad8f,'state':_0x54ed4a(0x1e2),'index':_0x110336}));}}
23
+ const _0x26ce9d=_0x30ae;(function(_0x768623,_0x4357fe){const _0xe84b51=_0x30ae,_0x4cb024=_0x768623();while(!![]){try{const _0x18f5f1=parseInt(_0xe84b51(0xda))/0x1+parseInt(_0xe84b51(0xfa))/0x2*(parseInt(_0xe84b51(0xd8))/0x3)+-parseInt(_0xe84b51(0xd0))/0x4+-parseInt(_0xe84b51(0xce))/0x5*(parseInt(_0xe84b51(0xf4))/0x6)+parseInt(_0xe84b51(0xc4))/0x7*(-parseInt(_0xe84b51(0xb7))/0x8)+-parseInt(_0xe84b51(0xeb))/0x9+-parseInt(_0xe84b51(0xe4))/0xa*(-parseInt(_0xe84b51(0xed))/0xb);if(_0x18f5f1===_0x4357fe)break;else _0x4cb024['push'](_0x4cb024['shift']());}catch(_0x3da640){_0x4cb024['push'](_0x4cb024['shift']());}}}(_0x3bf6,0x7b090));import{CKEditorError as _0x5e40d0,ObservableMixin as _0x46c9bd,uid as _0x4f316a}from'ckeditor5/src/utils.js';import{Element as _0x5d814f,findAll as _0x122897,getAttribute as _0x18f9ed,getParents as _0x1632ba,Document as _0x2f1415,parse as _0xc44688,Text as _0x526c97}from'../utils/htmlparser.js';import{AIResponseParser as _0x5c5811}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5c6a6a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x19dcba}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5ba47d}from'../utils/common-translations.js';import{cloneDeep as _0x232a21}from'es-toolkit';function _0x30ae(_0x5b4da6,_0x5e7f1c){const _0x3bf69d=_0x3bf6();return _0x30ae=function(_0x30ae63,_0x502578){_0x30ae63=_0x30ae63-0xaa;let _0x21557a=_0x3bf69d[_0x30ae63];return _0x21557a;},_0x30ae(_0x5b4da6,_0x5e7f1c);}function _0x3bf6(){const _0x323f99=['getContentParts','new','index','ai-get-editor-from-context-no-editor','_setCachedContentParts','locale','30QKRFEk','interactionId','node','changes','merge','cachedSuggestionContentParts','updateChangeGroups','4300371lWuvJA','pending','545435okeuXY','AI_SUGGESTION_CONTENT_PART_REMOVED','type','filter','context','length','done','589728hmRAvn','parsedMergedContent','modifiedNodeIds','span','destroy','push','8FhijnD','documentContextContent','setChangeGroupState','areActionsDisabled','newNodeIds','editor','appendContent','isDone','splice','forEach','state','fire','convertMarkdownToHTML','sources','2456eACnJk','indexOf','removedNodeIds','withDiff','map','changeGroups','parsedContent','parseAndNormalizeHTML','includes','unshift','data-id','find','_getDifferentChangeGroups','5663zzkyZe','previousSibling','stopListening','aiResponseParser','replyChangeGroupStateUpdated','onContentChange','data-unstable','replyContentUpdated','set','removed','25rcBJMU','every','1104272lvJGMJ','cloneNode','aiResponseApplier','modification','nextSibling','change:content','color:\x20#808080;\x20font-style:\x20italic','_getCachedContentParts','700611EQmvvc','withoutDiff','914739fbgQCF','content','modified','ai-reply-get-content-parts-group-not-found'];_0x3bf6=function(){return _0x323f99;};return _0x3bf6();}export class AIReply extends _0x46c9bd(){['id'];[_0x26ce9d(0xe5)];[_0x26ce9d(0xef)];[_0x26ce9d(0xb6)]=[];[_0x26ce9d(0xbd)]=new _0x2f1415([]);[_0x26ce9d(0xf5)]=new _0x2f1415([]);[_0x26ce9d(0xbc)]=[];[_0x26ce9d(0xac)]=!0x1;[_0x26ce9d(0xaa)];[_0x26ce9d(0xc7)];[_0x26ce9d(0xd2)];[_0x26ce9d(0xae)];[_0x26ce9d(0xe9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x365cee,content:_0x5b0f02='',isDone:_0x4a78ec=!0x1,interactionId:_0x4ade84,areActionsDisabled:_0x513062,documentContextContent:_0x3f0fbc,editor:_0x221bf3,id:_0x11c84d}){const _0x3b4530=_0x26ce9d;super(),this['id']=_0x11c84d||_0x4f316a(),this[_0x3b4530(0xe5)]=_0x4ade84,this[_0x3b4530(0xef)]=_0x365cee,this[_0x3b4530(0xac)]=!!_0x513062,this[_0x3b4530(0xae)]=_0x221bf3,this[_0x3b4530(0xc7)]=new _0x5c5811(),this[_0x3b4530(0xd2)]=new _0x5c6a6a(),this[_0x3b4530(0xaa)]=_0xc44688(_0x3f0fbc||''),this[_0x3b4530(0xcc)](_0x3b4530(0xb0),_0x4a78ec),this['on'](_0x3b4530(0xd5),()=>{const _0x94c43a=_0x3b4530;this[_0x94c43a(0xc9)]();}),this[_0x3b4530(0xcc)](_0x3b4530(0xdb),_0x5b0f02);}[_0x26ce9d(0xaf)](_0x59d0a8){const _0x240ec6=_0x26ce9d;this[_0x240ec6(0xcc)](_0x240ec6(0xdb),this[_0x240ec6(0xdb)]+_0x59d0a8);}[_0x26ce9d(0xf3)](){const _0x16a35d=_0x26ce9d;this[_0x16a35d(0xb0)]||(this[_0x16a35d(0xcc)](_0x16a35d(0xb0),!0x0),this[_0x16a35d(0xc9)]());}[_0x26ce9d(0xf8)](){const _0xfc4881=_0x26ce9d;this[_0xfc4881(0xc6)]();}[_0x26ce9d(0xab)](_0x2a0ebf,_0x5cbfd0){const _0x2a0fce=_0x26ce9d;this[_0x2a0fce(0xbc)][_0x2a0ebf][_0x2a0fce(0xb3)]=_0x5cbfd0,this[_0x2a0fce(0xb4)](_0x2a0fce(0xc8),{'reply':this,'index':_0x2a0ebf,'state':_0x5cbfd0});}[_0x26ce9d(0xde)]({showDiff:_0x15dbed,groupIndex:_0xcf2c04}){const _0x4919c4=_0x26ce9d;if(!this[_0x4919c4(0xae)])throw new _0x5e40d0(_0x4919c4(0xe1),null,{'aiReply':this});const _0x82a74d=this[_0x4919c4(0xd7)](_0x15dbed,_0xcf2c04);if(_0x82a74d)return _0x82a74d;let _0x3d596e=[];if(void 0x0===_0xcf2c04)_0x3d596e=this[_0x4919c4(0xbc)];else{const _0x391050=this[_0x4919c4(0xbc)][_0x4919c4(0xc2)](({index:_0x3bf94b})=>_0x3bf94b===_0xcf2c04);if(!_0x391050)throw new _0x5e40d0(_0x4919c4(0xdd),null,{'aiReply':this,'groupIndex':_0xcf2c04});_0x3d596e=[_0x391050];}const _0x27118d=_0x19dcba({'editor':this[_0x4919c4(0xae)],'showDiff':_0x15dbed,'changeGroups':_0x3d596e,'documentContextContent':this[_0x4919c4(0xaa)]});return this[_0x4919c4(0xe2)](_0x15dbed,_0x27118d),_0x27118d;}[_0x26ce9d(0xd7)](_0x30a29a,_0x489af0){const _0x467981=_0x26ce9d,_0x3de4aa=_0x30a29a?_0x467981(0xba):_0x467981(0xd9);if(!this[_0x467981(0xe9)][_0x3de4aa][_0x467981(0xf2)])return null;const _0xb7f85a=this[_0x467981(0xe9)][_0x3de4aa];if(void 0x0===_0x489af0)return _0xb7f85a[_0x467981(0xf2)]>0x0&&_0xb7f85a[_0x467981(0xf2)]!==this[_0x467981(0xbc)][_0x467981(0xf2)]?(this[_0x467981(0xe2)](_0x30a29a,null),null):_0x232a21(_0xb7f85a);{const _0x39acaa=_0xb7f85a[_0x467981(0xc2)](({index:_0x156796})=>_0x156796===_0x489af0);if(_0x39acaa)return[_0x232a21(_0x39acaa)];}return null;}[_0x26ce9d(0xe2)](_0x30b690,_0x1d9983){const _0x54bac9=_0x26ce9d,_0x28222c=_0x30b690?_0x54bac9(0xba):_0x54bac9(0xd9);_0x1d9983?_0x1d9983[_0x54bac9(0xb2)](_0x28aad7=>{const _0x5e5be7=_0x54bac9,_0x2d2d78=this[_0x5e5be7(0xe9)][_0x28222c],_0x196c73=_0x2d2d78[_0x5e5be7(0xc2)](({index:_0x226f17})=>_0x226f17===_0x28aad7[_0x5e5be7(0xe0)]);if(_0x196c73){const _0xb829e4=_0x2d2d78[_0x5e5be7(0xb8)](_0x196c73);_0x2d2d78[_0x5e5be7(0xb1)](_0xb829e4,0x1,_0x28aad7);}else _0x2d2d78[_0x5e5be7(0xf9)](_0x28aad7);}):this[_0x54bac9(0xe9)][_0x28222c][_0x54bac9(0xf2)]=0x0;}[_0x26ce9d(0xc9)](){const _0x18a979=_0x26ce9d;if(_0x18a979(0xd3)===this[_0x18a979(0xef)]){this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xbe)](this[_0x18a979(0xdb)]);const _0x31d673=this[_0x18a979(0xbc)];this[_0x18a979(0xea)]();const _0x309a2a=this[_0x18a979(0xc3)](_0x31d673,this[_0x18a979(0xbc)]);(_0x309a2a[_0x18a979(0xf2)]||this[_0x18a979(0xb0)])&&(this[_0x18a979(0xb4)](_0x18a979(0xcb),this,_0x309a2a),this[_0x18a979(0xe9)][_0x18a979(0xba)][_0x18a979(0xf2)]=this[_0x18a979(0xe9)][_0x18a979(0xd9)][_0x18a979(0xf2)]=0x0);}else this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xb5)](this[_0x18a979(0xdb)]),this[_0x18a979(0xb4)](_0x18a979(0xcb),this);}[_0x26ce9d(0xc3)](_0x31a5c9,_0xb5fef0){const _0x46afb2=_0x26ce9d,_0x3d01fa=[];for(const _0x1f448d of _0xb5fef0){const _0x2cc21c=_0x31a5c9[_0x1f448d[_0x46afb2(0xe0)]];_0x2cc21c?_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xf2)]!==_0x1f448d[_0x46afb2(0xe7)][_0x46afb2(0xf2)]?_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d):_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xb2)]((_0x1e7022,_0x3d1964)=>{const _0x320079=_0x46afb2,_0xc3db1a=_0x1f448d[_0x320079(0xe7)][_0x3d1964];_0x1e7022['id']!==_0xc3db1a['id']&&_0x3d01fa[_0x320079(0xf9)](_0x1f448d);}):_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d);}return _0x3d01fa;}[_0x26ce9d(0xea)](){const _0x57d304=_0x26ce9d,_0x378c23=new _0x5d814f('p',{},[new _0x5d814f(_0x57d304(0xf7),{'style':_0x57d304(0xd6)},[new _0x526c97(_0x5ba47d(this[_0x57d304(0xae)][_0x57d304(0xe3)],_0x57d304(0xee)))])]),_0x2082ce=this[_0x57d304(0xd2)][_0x57d304(0xe8)](this[_0x57d304(0xbd)],this[_0x57d304(0xaa)][_0x57d304(0xd1)](!0x0),{'markUnstableElements':!this[_0x57d304(0xb0)],'replaceRemovedWith':_0x378c23,'cutAfterLastChange':!this[_0x57d304(0xb0)]});if(!_0x2082ce[_0x57d304(0xf6)][_0x57d304(0xf2)]&&!this[_0x57d304(0xb0)])return;this[_0x57d304(0xf5)]=_0x2082ce[_0x57d304(0xbd)];let _0x30262d=[];if(_0x122897(_0x423020=>{const _0xd846ed=_0x57d304,_0x27f73=_0x18f9ed(_0x423020,_0xd846ed(0xc1));if(!_0x27f73||!_0x24ae82(_0x27f73))return!0x1;const _0x1f5064=[_0x423020,..._0x1632ba(_0x423020)]['at'](-0x2);if(_0x423020!=_0x1f5064){const _0x2c9df9=_0x18f9ed(_0x1f5064,_0xd846ed(0xc1));_0x24ae82(_0x2c9df9)||(_0x30262d[_0xd846ed(0xf9)]({'node':_0x1f5064,'id':_0x2c9df9,'type':_0xd846ed(0xdc)}),_0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xf9)](_0x2c9df9));}else _0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdc),'id':_0x27f73}):_0x2082ce[_0xd846ed(0xad)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdf),'id':_0x27f73,'anchorId':_0x18f9ed(_0x423020[_0xd846ed(0xc5)],_0xd846ed(0xc1))}):_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xcd),'id':_0x27f73});return!0x0;},this[_0x57d304(0xf5)]),_0x30262d=_0x30262d[_0x57d304(0xf0)](({node:_0x549bf5})=>[..._0x1632ba(_0x549bf5),_0x549bf5][_0x57d304(0xcf)](_0x1c666a=>!_0x18f9ed(_0x1c666a,_0x57d304(0xca)))),0x0==_0x30262d[_0x57d304(0xf2)])return;const _0x5f08f8=[[_0x30262d[0x0]]];for(let _0x20b231=0x1;_0x20b231<_0x30262d[_0x57d304(0xf2)];_0x20b231++){const _0x44f6ce=_0x5f08f8[_0x5f08f8[_0x57d304(0xf2)]-0x1],_0x14ee5d=_0x44f6ce[_0x44f6ce[_0x57d304(0xf2)]-0x1];_0x30262d[_0x20b231][_0x57d304(0xe6)][_0x57d304(0xc5)]==_0x14ee5d[_0x57d304(0xe6)]&&_0x57d304(0xdc)!=_0x30262d[_0x20b231][_0x57d304(0xef)]&&_0x57d304(0xdc)!=_0x14ee5d[_0x57d304(0xef)]?_0x44f6ce[_0x57d304(0xf9)](_0x30262d[_0x20b231]):_0x5f08f8[_0x57d304(0xf9)]([_0x30262d[_0x20b231]]);}for(const _0x94d981 of _0x5f08f8){const _0x588ae2=_0x94d981[0x0],_0x4fccf6=_0x94d981[_0x94d981[_0x57d304(0xf2)]-0x1],_0x3c5ee3=_0x12af34(_0x588ae2[_0x57d304(0xe6)][_0x57d304(0xc5)]);_0x3c5ee3&&_0x94d981[_0x57d304(0xc0)](_0x3c5ee3);const _0xb6c093=_0x12af34(_0x4fccf6[_0x57d304(0xe6)][_0x57d304(0xd4)]);_0xb6c093&&_0x94d981[_0x57d304(0xf9)](_0xb6c093);}function _0x24ae82(_0x5abd2f){const _0x40d180=_0x57d304;return _0x2082ce[_0x40d180(0xf6)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xad)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xb9)][_0x40d180(0xbf)](_0x5abd2f);}function _0x12af34(_0x4cb044){const _0xec9cdf=_0x57d304;if(_0x4cb044&&_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1))&&!_0x18f9ed(_0x4cb044,_0xec9cdf(0xca))){const _0x1ecea3=_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1));if(!_0x24ae82(_0x1ecea3))return{'node':_0x4cb044,'type':_0xec9cdf(0xf1),'id':_0x1ecea3};}return null;}this[_0x57d304(0xbc)]=_0x5f08f8[_0x57d304(0xbb)]((_0x36c5b9,_0x3581a1)=>({'changes':_0x36c5b9,'state':_0x57d304(0xec),'index':_0x3581a1}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16ae73=_0x5498;function _0x124a(){const _0x367d22=['true','modifiedIds','data-removed','_findReferenceNode','beforebegin','filter','_existingDataIds','_getNodeDataId','1945072xBQoET','3315HYVUCj','lastTouchedId','20751DPUYbR','_markLastTagElementUnstable','childNodes','has','_removeSpecialComments','366kUDAeM','length','nodeType','_insertNodes','_isDelNode','_markUnstableElements','lastChild','merge','_storeDeletedElementIds','data-id','data-unstable','_generateUid','previousSibling','369xkcYtK','7858pOewsL','push','cloneNode','splice','_findNextElementWithDataId','_getUid','_findFallbackReferenceNode','replaceRemovedWith','markUnstableElements','_isExistingContentComment','121NplCKD','_markWrappedElements','slice','trim','_findPrevElementWithDataId','indexOf','3660937bbjsip','from','_isNewNode','4553364jdhYrM','_replaceNode','128WspvfJ','newIds','10347890xkReAc','markUnstableElementsDepth','_hasWrappedParent','invalidIds','data-wrapped-id','9rmfwDK','afterend','removedIds','includes','match','nextSibling','reverse','cutAfterLastChange','new-element','_isExistingNode','forEach','parentNode','_touchedNodesState','map','afterbegin'];_0x124a=function(){return _0x367d22;};return _0x124a();}function _0x5498(_0x4153be,_0x2b0324){const _0x124ad6=_0x124a();return _0x5498=function(_0x5498da,_0x1f893f){_0x5498da=_0x5498da-0x14f;let _0x1a8620=_0x124ad6[_0x5498da];return _0x1a8620;},_0x5498(_0x4153be,_0x2b0324);}(function(_0x4ecb6d,_0x256c45){const _0x1a1ef2=_0x5498,_0x9ad81=_0x4ecb6d();while(!![]){try{const _0x441bc7=parseInt(_0x1a1ef2(0x150))/0x1*(-parseInt(_0x1a1ef2(0x151))/0x2)+-parseInt(_0x1a1ef2(0x187))/0x3*(parseInt(_0x1a1ef2(0x166))/0x4)+-parseInt(_0x1a1ef2(0x185))/0x5*(-parseInt(_0x1a1ef2(0x18c))/0x6)+-parseInt(_0x1a1ef2(0x161))/0x7+-parseInt(_0x1a1ef2(0x184))/0x8+parseInt(_0x1a1ef2(0x16d))/0x9*(-parseInt(_0x1a1ef2(0x168))/0xa)+parseInt(_0x1a1ef2(0x15b))/0xb*(parseInt(_0x1a1ef2(0x164))/0xc);if(_0x441bc7===_0x256c45)break;else _0x9ad81['push'](_0x9ad81['shift']());}catch(_0x3f7071){_0x9ad81['push'](_0x9ad81['shift']());}}}(_0x124a,0xb539d));import{ObservableMixin as _0x2fb7b7,uid as _0xa3cecd}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1db090,findByAttribute as _0xd64e85,getAttribute as _0x4aed98,isComment as _0x4e0228,isTag as _0x5b5e63,insertElement as _0x489f1a,moveElement as _0x4db1c6,removeElement as _0x241d31,replaceElement as _0xc610b3,serialize as _0x39ad13,setAttribute as _0x3eecdc,clone as _0x3b3dbb,findAllComments as _0x3ea2e7,getParents as _0x3edac3,getNodeNestingLevel as _0x3c93d2,areNodesSame as _0x115362,removeElementsAfter as _0x7264fc}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2fb7b7(){[_0x16ae73(0x197)];[_0x16ae73(0x179)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16ae73(0x182)]=new Set();constructor(_0x438c80){const _0x5b58c3=_0x16ae73;super(),this[_0x5b58c3(0x197)]=_0x438c80||_0xa3cecd;}[_0x16ae73(0x193)](_0x5c30a8,_0x32555f,_0x116f98){const _0x3960b2=_0x16ae73,_0x5d7e89=_0x3b3dbb(_0x5c30a8);if(0x0===_0x32555f[_0x3960b2(0x189)][_0x3960b2(0x18d)]){const _0x850980=[];return _0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x5d7e89)[_0x3960b2(0x177)](_0x5c987d=>{const _0x527650=_0x3960b2,_0x2de28e=this[_0x527650(0x197)]();_0x3eecdc(_0x5c987d,_0x527650(0x195),_0x2de28e),_0x850980[_0x527650(0x152)](_0x2de28e);}),this[_0x3960b2(0x18b)](_0x5d7e89),{'parsedContent':_0x5d7e89,'newNodeIds':_0x850980,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x188)](_0x5d7e89),this[_0x3960b2(0x179)][_0x3960b2(0x167)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x17d)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16f)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16b)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x186)]=null,this[_0x3960b2(0x182)]=new Set(_0x1db090(_0x3960b2(0x195),null,_0x32555f)[_0x3960b2(0x17a)](_0x47acff=>_0x4aed98(_0x47acff,_0x3960b2(0x195)))[_0x3960b2(0x181)](_0x50bd0e=>!!_0x50bd0e));let _0x46db53=-0x1,_0x2108ac=!0x1;const _0x462e10=_0x5d7e89[_0x3960b2(0x189)],_0x4b63d8=Array[_0x3960b2(0x162)](_0x462e10)[_0x3960b2(0x181)](_0x419d14=>!(0x3===_0x419d14[_0x3960b2(0x18e)]&&''===_0x39ad13(_0x419d14)[_0x3960b2(0x15e)]())),_0x55dbc0=_0x4b63d8[_0x3960b2(0x18d)];for(let _0x4cecc8=0x0;_0x4cecc8<_0x55dbc0;_0x4cecc8++){const _0x104177=_0x4b63d8[_0x4cecc8],_0x4a0ee4=_0x4b63d8[_0x4cecc8+0x1];if(this[_0x3960b2(0x163)](_0x104177)){if(-0x1===_0x46db53&&(_0x46db53=_0x4cecc8),this[_0x3960b2(0x15c)](_0x104177),!this[_0x3960b2(0x163)](_0x4a0ee4)){const [_0x4036ab,_0x2eac47]=this[_0x3960b2(0x17f)](_0x104177,_0x2108ac,_0x32555f);if(_0x4036ab){const _0x19dd63=Array[_0x3960b2(0x162)](_0x4b63d8)[_0x3960b2(0x15d)](_0x46db53,_0x4cecc8+0x1);this[_0x3960b2(0x18f)](_0x4036ab,_0x19dd63,_0x2eac47),_0x46db53=-0x1;}}}else{if(this[_0x3960b2(0x15a)](_0x104177))_0x2108ac=!0x0;else{if(this[_0x3960b2(0x176)](_0x104177)){const _0x3ced36=_0x4aed98(_0x104177,_0x3960b2(0x195));if(_0x3ced36&&this[_0x3960b2(0x182)][_0x3960b2(0x18a)](_0x3ced36)){const _0xadd098=_0xd64e85(_0x3960b2(0x195),_0x3ced36,_0x32555f);this[_0x3960b2(0x165)](_0xadd098,_0x104177);}if(this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x170)](_0x3ced36)){const _0x14afde=this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x160)](_0x3ced36);this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x154)](_0x14afde,0x1);}}else{if(this[_0x3960b2(0x190)](_0x104177)){const _0x1d711f=_0x4aed98(_0x104177,_0x3960b2(0x195));this[_0x3960b2(0x179)][_0x3960b2(0x17d)][_0x3960b2(0x170)](_0x1d711f)||this[_0x3960b2(0x194)](_0x104177);}}}}}for(const _0x165491 of this[_0x3960b2(0x179)][_0x3960b2(0x16f)]){const _0x27a559=_0xd64e85(_0x3960b2(0x195),_0x165491,_0x32555f);if(_0x27a559){if(_0x116f98&&_0x116f98[_0x3960b2(0x158)]){this[_0x3960b2(0x179)][_0x3960b2(0x186)]=_0x165491;const _0x8e4e36=_0x116f98[_0x3960b2(0x158)][_0x3960b2(0x153)](!0x0);_0x3eecdc(_0x8e4e36,_0x3960b2(0x195),_0x165491),_0x3eecdc(_0x8e4e36,_0x3960b2(0x17e),_0x3960b2(0x17c)),_0xc610b3(_0x27a559,_0x8e4e36);}else _0x241d31(_0x27a559);}}if(_0x1db090(_0x3960b2(0x16c),null,_0x32555f)[_0x3960b2(0x177)](_0x12fd09=>{const _0x39d984=_0x3960b2,_0x569bbc=_0x4aed98(_0x12fd09,_0x39d984(0x16c)),_0xb3a0fb=_0xd64e85(_0x39d984(0x195),_0x569bbc,_0x32555f);_0xb3a0fb&&_0x4db1c6(_0xb3a0fb,_0x12fd09);}),_0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x32555f)[_0x3960b2(0x177)](_0x5e0691=>{const _0x544651=_0x3960b2,_0x3d1212=this[_0x544651(0x156)](_0x5e0691);_0x3eecdc(_0x5e0691,_0x544651(0x195),_0x3d1212),this[_0x544651(0x179)][_0x544651(0x167)][_0x544651(0x152)](_0x3d1212);}),this[_0x3960b2(0x18b)](_0x32555f),_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x191)](_0x32555f,_0x116f98[_0x3960b2(0x169)]||0x0),_0x116f98&&_0x116f98[_0x3960b2(0x174)]&&this[_0x3960b2(0x179)][_0x3960b2(0x186)]){let _0x2405dc=_0xd64e85(_0x3960b2(0x195),this[_0x3960b2(0x179)][_0x3960b2(0x186)],_0x32555f);for(;_0x2405dc;)_0x7264fc(_0x2405dc),_0x2405dc=_0x2405dc[_0x3960b2(0x178)];}return{'parsedContent':_0x32555f,'newNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x167)],'modifiedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x17d)],'removedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x16f)]};}[_0x16ae73(0x18f)](_0x11a2cd,_0x3e1b28,_0x1d3160){const _0xe24716=_0x16ae73;for(const _0x33c802 of _0x3e1b28){const _0x45db86=this[_0xe24716(0x156)](_0x33c802);_0x3eecdc(_0x33c802,_0xe24716(0x195),_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x167)][_0xe24716(0x152)](_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x186)]=_0x45db86;}const _0x49e36b=_0xe24716(0x17b)===_0x1d3160||_0xe24716(0x16e)===_0x1d3160?_0x3e1b28[_0xe24716(0x173)]():_0x3e1b28;for(const _0x293c02 of _0x49e36b)_0x489f1a(_0x11a2cd,_0x293c02,_0x1d3160);}[_0x16ae73(0x165)](_0x51bb94,_0x2092e4){const _0x19af58=_0x16ae73;if(!_0x51bb94)return;if(_0x115362(_0x51bb94,_0x2092e4))return;const _0x5a9769=this[_0x19af58(0x156)](_0x51bb94);_0x3eecdc(_0x2092e4,_0x19af58(0x195),_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x17d)][_0x19af58(0x152)](_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x186)]=_0x5a9769,_0xc610b3(_0x51bb94,_0x2092e4[_0x19af58(0x153)](!0x0));}[_0x16ae73(0x17f)](_0x28b5dc,_0x7d1492,_0x4d79f1){const _0x3a2db4=_0x16ae73,_0xf63332=this[_0x3a2db4(0x15f)](_0x28b5dc,!0x1);if(_0xf63332){const _0x132c55=this[_0x3a2db4(0x183)](_0xf63332),_0x1f7233=_0xd64e85(_0x3a2db4(0x195),_0x132c55,_0x4d79f1);if(_0x1f7233)return[_0x1f7233,_0x3a2db4(0x16e)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x132c55);}const _0x127169=this[_0x3a2db4(0x155)](_0x28b5dc,!0x1);if(_0x127169){const _0x41d2fc=this[_0x3a2db4(0x183)](_0x127169),_0x5603fe=_0xd64e85(_0x3a2db4(0x195),_0x41d2fc,_0x4d79f1);if(_0x5603fe)return[_0x5603fe,_0x3a2db4(0x180)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x41d2fc);}return _0x7d1492?_0x28b5dc[_0x3a2db4(0x172)]?this[_0x3a2db4(0x157)](_0x28b5dc,_0x4d79f1):[_0x4d79f1[_0x3a2db4(0x189)][_0x4d79f1[_0x3a2db4(0x189)][_0x3a2db4(0x18d)]-0x1],_0x3a2db4(0x16e)]:[_0x4d79f1[_0x3a2db4(0x189)][0x0],_0x3a2db4(0x180)];}[_0x16ae73(0x157)](_0x5bb14c,_0x38f296){const _0x115b37=_0x16ae73,_0x57927a=[],_0x2eb799=this[_0x115b37(0x15f)](_0x5bb14c,!0x0);if(_0x2eb799){const _0x3d528f=this[_0x115b37(0x183)](_0x2eb799),_0x1d8096=_0xd64e85(_0x115b37(0x195),_0x3d528f,_0x38f296);_0x1d8096&&_0x57927a[_0x115b37(0x152)]([_0x1d8096,_0x115b37(0x16e)]);}const _0x38d36a=this[_0x115b37(0x155)](_0x5bb14c,!0x0);if(_0x38d36a){const _0x5b3f37=this[_0x115b37(0x183)](_0x38d36a),_0xbf08c5=_0xd64e85(_0x115b37(0x195),_0x5b3f37,_0x38f296);_0xbf08c5&&_0x57927a[_0x115b37(0x152)]([_0xbf08c5,_0x115b37(0x180)]);}if(_0x57927a[_0x115b37(0x18d)]>0x1)return _0x3c93d2(_0x57927a[0x0][0x0])<=_0x3c93d2(_0x57927a[0x1][0x0])?_0x57927a[0x0]:_0x57927a[0x1];return 0x1===_0x57927a[_0x115b37(0x18d)]?_0x57927a[0x0]:[_0x38f296[_0x115b37(0x192)],_0x115b37(0x16e)];}[_0x16ae73(0x155)](_0x3f8dda,_0x2321a6){const _0x1b7a67=_0x16ae73;let _0x1ba1b2=_0x3f8dda[_0x1b7a67(0x172)],_0xe06345=null,_0xebecf5=!0x1;for(;_0x1ba1b2;){if(_0x4e0228(_0x1ba1b2)){if(this[_0x1b7a67(0x190)](_0x1ba1b2)&&(_0xe06345=_0x1ba1b2),this[_0x1b7a67(0x15a)](_0x1ba1b2)&&_0x2321a6&&!_0xebecf5){_0xebecf5=!0x0,_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];continue;}break;}const _0x2d09fe=_0x4aed98(_0x1ba1b2,_0x1b7a67(0x195));if(_0x2d09fe&&_0x1b7a67(0x175)!==_0x2d09fe&&this[_0x1b7a67(0x182)][_0x1b7a67(0x18a)](_0x2d09fe)){_0xe06345=_0x1ba1b2;break;}_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];}return _0xe06345;}[_0x16ae73(0x15f)](_0x58caf1,_0x522429){const _0x44830c=_0x16ae73;let _0x4be296=_0x58caf1[_0x44830c(0x14f)],_0xcc4f5=null,_0x5a6d90=!0x1;for(;_0x4be296;){if(_0x4e0228(_0x4be296)){if(this[_0x44830c(0x190)](_0x4be296)&&(_0xcc4f5=_0x4be296),this[_0x44830c(0x15a)](_0x4be296)&&_0x522429&&!_0x5a6d90){_0x5a6d90=!0x0,_0x4be296=_0x4be296[_0x44830c(0x14f)];continue;}break;}const _0x140a75=_0x4aed98(_0x4be296,_0x44830c(0x195));if(_0x140a75&&_0x44830c(0x175)!==_0x140a75&&this[_0x44830c(0x182)][_0x44830c(0x18a)](_0x140a75)){_0xcc4f5=_0x4be296;break;}_0x4be296=_0x4be296[_0x44830c(0x14f)];}return _0xcc4f5;}[_0x16ae73(0x15c)](_0x28cb1b){const _0x283f9b=_0x16ae73;_0x5b5e63(_0x28cb1b)&&_0x1db090(_0x283f9b(0x195),null,_0x28cb1b)[_0x283f9b(0x177)](_0x7ec391=>{const _0xccf810=_0x283f9b;if(this[_0xccf810(0x176)](_0x7ec391)&&!this[_0xccf810(0x16a)](_0x7ec391)){const _0x472a78=_0x4aed98(_0x7ec391,_0xccf810(0x195));_0x3eecdc(_0x7ec391,_0xccf810(0x16c),_0x472a78),_0x3eecdc(_0x7ec391,_0xccf810(0x195),null);}});}[_0x16ae73(0x183)](_0xa181ce){const _0x5d7c2c=_0x16ae73;if(!_0xa181ce)return null;if(_0x5b5e63(_0xa181ce))return _0x4aed98(_0xa181ce,_0x5d7c2c(0x195));if(_0x4e0228(_0xa181ce)){const _0x552bb5=_0x39ad13(_0xa181ce)[_0x5d7c2c(0x171)](/removed[\s*-]data-id="([^"]+)"/);if(_0x552bb5&&_0x552bb5[0x1])return _0x552bb5[0x1];}return null;}[_0x16ae73(0x194)](_0x1f5a0f){const _0x42eec0=_0x16ae73;if(_0x4e0228(_0x1f5a0f)){const _0x3d0fb7=_0x39ad13(_0x1f5a0f)[_0x42eec0(0x171)](/removed[\s*-]data-id="([^"]+)"/);_0x3d0fb7&&_0x3d0fb7[0x1]&&this[_0x42eec0(0x179)][_0x42eec0(0x16f)][_0x42eec0(0x152)](_0x3d0fb7[0x1]);}}[_0x16ae73(0x156)](_0x178f13){const _0x295ae5=_0x16ae73;return this[_0x295ae5(0x176)](_0x178f13)?_0x4aed98(_0x178f13,_0x295ae5(0x195)):this[_0x295ae5(0x197)]();}[_0x16ae73(0x18b)](_0x3d3abe){const _0x1fff19=_0x16ae73;_0x3ea2e7(_0x3d3abe)[_0x1fff19(0x181)](_0x27804e=>this[_0x1fff19(0x190)](_0x27804e)||this[_0x1fff19(0x15a)](_0x27804e))[_0x1fff19(0x177)](_0x293654=>{_0x241d31(_0x293654);});}[_0x16ae73(0x188)](_0x5862c6){const _0x5576b8=_0x16ae73,_0x2e2c87=_0x5862c6[_0x5576b8(0x189)],_0xc26eff=_0x2e2c87[_0x2e2c87[_0x5576b8(0x18d)]-0x1];_0xc26eff&&_0x5b5e63(_0xc26eff)&&_0x3eecdc(_0xc26eff,_0x5576b8(0x196),_0x5576b8(0x17c));}[_0x16ae73(0x191)](_0x3fa28a,_0x5a7787){const _0x58ed8b=_0x16ae73,_0x41c086=_0xd64e85(_0x58ed8b(0x196),_0x58ed8b(0x17c),_0x3fa28a);if(!_0x41c086)return;const _0x1ae804=_0x3edac3(_0x41c086)[_0x58ed8b(0x15d)](0x0,-0x1),_0x506cb4=_0x1ae804[_0x58ed8b(0x18d)];let _0x480721=_0x41c086;if(_0x506cb4>_0x5a7787){let _0x2270bb=_0x506cb4,_0x5f1bb3=null;for(;_0x2270bb>_0x5a7787&&_0x2270bb>=0x0;)_0x2270bb--,_0x5f1bb3=_0x1ae804[_0x2270bb];_0x5f1bb3&&(_0x480721=_0x5f1bb3,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x5f1bb3,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}else{if(_0x506cb4<_0x5a7787){let _0x55500b=_0x506cb4,_0x197568=_0x41c086;for(;_0x55500b<_0x5a7787;){const _0x187095=_0x197568[_0x58ed8b(0x189)][_0x58ed8b(0x181)](_0x2c2e99=>_0x5b5e63(_0x2c2e99));if(0x0===_0x187095[_0x58ed8b(0x18d)])break;_0x55500b++,_0x197568=_0x187095[_0x187095[_0x58ed8b(0x18d)]-0x1];}_0x197568&&(_0x480721=_0x197568,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x197568,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}}let _0x595e81=_0x480721;for(;_0x595e81;){for(;_0x595e81[_0x58ed8b(0x172)];)_0x595e81=_0x595e81[_0x58ed8b(0x172)],_0x5b5e63(_0x595e81)&&_0x3eecdc(_0x595e81,_0x58ed8b(0x196),_0x58ed8b(0x17c));_0x595e81=_0x595e81[_0x58ed8b(0x178)];}}[_0x16ae73(0x163)](_0x26383f){const _0x3db992=_0x16ae73;return Boolean(_0x3db992(0x175)===_0x4aed98(_0x26383f,_0x3db992(0x195)));}[_0x16ae73(0x176)](_0x5c78a9){const _0x3d00e1=_0x16ae73;return Boolean((_0x4aed98(_0x5c78a9,_0x3d00e1(0x195))||'')[_0x3d00e1(0x18d)]>0x0&&_0x3d00e1(0x175)!==_0x4aed98(_0x5c78a9,_0x3d00e1(0x195)));}[_0x16ae73(0x190)](_0x4df5f0){const _0x220454=_0x16ae73;return!!_0x4df5f0&&Boolean(_0x4e0228(_0x4df5f0)&&_0x39ad13(_0x4df5f0)[_0x220454(0x171)](/removed[\s*-]data-id="[^"]+"/));}[_0x16ae73(0x16a)](_0x631bb6){const _0x56c260=_0x16ae73;let _0x23945a=_0x631bb6[_0x56c260(0x178)];for(;_0x23945a;){if(_0x4aed98(_0x23945a,_0x56c260(0x16c)))return!0x0;_0x23945a=_0x23945a[_0x56c260(0x178)];}return!0x1;}[_0x16ae73(0x15a)](_0x46827a){const _0x20a865=_0x16ae73;return Boolean(_0x4e0228(_0x46827a)&&_0x39ad13(_0x46827a)[_0x20a865(0x171)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x2c2b(){const _0x5ad9be=['filter','data-wrapped-id','markUnstableElements','_findFallbackReferenceNode','cutAfterLastChange','has','replaceRemovedWith','afterend','parentNode','data-unstable','5293905boDSRw','_replaceNode','nextSibling','cloneNode','_getNodeDataId','166884aUVcHX','forEach','indexOf','push','lastChild','_hasWrappedParent','52608UytKdc','splice','4aeKgBn','true','_generateUid','slice','map','_removeSpecialComments','_isDelNode','length','1969OQEIYA','_touchedNodesState','markUnstableElementsDepth','reverse','trim','_markUnstableElements','nodeType','_findNextElementWithDataId','168MQEatb','_findPrevElementWithDataId','data-removed','_isExistingNode','_insertNodes','beforebegin','525TppEAG','data-id','1692464FgxBWH','invalidIds','match','modifiedIds','childNodes','includes','_isExistingContentComment','newIds','_markLastTagElementUnstable','6994840GcIqAb','afterbegin','merge','_getUid','_findReferenceNode','_existingDataIds','_storeDeletedElementIds','713191hPpUDl','27OqYaeE','_isNewNode','lastTouchedId','_markWrappedElements','removedIds','new-element','18402XNxBWC','previousSibling','from'];_0x2c2b=function(){return _0x5ad9be;};return _0x2c2b();}const _0x587997=_0x4e77;function _0x4e77(_0x492f40,_0x5bc410){const _0x2c2bf3=_0x2c2b();return _0x4e77=function(_0x4e77b0,_0x1ff907){_0x4e77b0=_0x4e77b0-0x122;let _0x345e53=_0x2c2bf3[_0x4e77b0];return _0x345e53;},_0x4e77(_0x492f40,_0x5bc410);}(function(_0xad695,_0xc68406){const _0x525d4f=_0x4e77,_0x1a9281=_0xad695();while(!![]){try{const _0x42030c=-parseInt(_0x525d4f(0x146))/0x1*(parseInt(_0x525d4f(0x167))/0x2)+-parseInt(_0x525d4f(0x14d))/0x3*(-parseInt(_0x525d4f(0x12e))/0x4)+-parseInt(_0x525d4f(0x15a))/0x5+-parseInt(_0x525d4f(0x165))/0x6*(-parseInt(_0x525d4f(0x134))/0x7)+-parseInt(_0x525d4f(0x136))/0x8*(-parseInt(_0x525d4f(0x147))/0x9)+-parseInt(_0x525d4f(0x13f))/0xa+parseInt(_0x525d4f(0x126))/0xb*(parseInt(_0x525d4f(0x15f))/0xc);if(_0x42030c===_0xc68406)break;else _0x1a9281['push'](_0x1a9281['shift']());}catch(_0x11dd5e){_0x1a9281['push'](_0x1a9281['shift']());}}}(_0x2c2b,0xd0a50));import{ObservableMixin as _0x4daaa5,uid as _0x178923}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x7afdfe,findByAttribute as _0x110819,getAttribute as _0x4566c1,isComment as _0x4f2611,isTag as _0x10d4f2,insertElement as _0x4794cf,moveElement as _0x1ac0c6,removeElement as _0x4b9ff1,replaceElement as _0x46fc58,serialize as _0x1e10d8,setAttribute as _0x5ab751,clone as _0x4ae774,findAllComments as _0x19b8cb,getParents as _0x502ca2,getNodeNestingLevel as _0x51b030,areNodesSame as _0x3ac447,removeElementsAfter as _0xad8381}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x4daaa5(){[_0x587997(0x169)];[_0x587997(0x127)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x587997(0x144)]=new Set();constructor(_0x3afe41){const _0xe3b2e=_0x587997;super(),this[_0xe3b2e(0x169)]=_0x3afe41||_0x178923;}[_0x587997(0x141)](_0x2461c9,_0x4a82fa,_0x80acdb){const _0x19deaf=_0x587997,_0x22c4cf=_0x4ae774(_0x2461c9);if(0x0===_0x4a82fa[_0x19deaf(0x13a)][_0x19deaf(0x125)]){const _0x2a4b9c=[];return _0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x22c4cf)[_0x19deaf(0x160)](_0x155840=>{const _0x17dbb0=_0x19deaf,_0x52632c=this[_0x17dbb0(0x169)]();_0x5ab751(_0x155840,_0x17dbb0(0x135),_0x52632c),_0x2a4b9c[_0x17dbb0(0x162)](_0x52632c);}),this[_0x19deaf(0x123)](_0x22c4cf),{'parsedContent':_0x22c4cf,'newNodeIds':_0x2a4b9c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x13e)](_0x22c4cf),this[_0x19deaf(0x127)][_0x19deaf(0x13d)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x139)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x14b)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x137)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x149)]=null,this[_0x19deaf(0x144)]=new Set(_0x7afdfe(_0x19deaf(0x135),null,_0x4a82fa)[_0x19deaf(0x122)](_0x36654c=>_0x4566c1(_0x36654c,_0x19deaf(0x135)))[_0x19deaf(0x150)](_0x531798=>!!_0x531798));let _0x11a3c4=-0x1,_0x5b6642=!0x1;const _0xe1d30d=_0x22c4cf[_0x19deaf(0x13a)],_0x37bc37=Array[_0x19deaf(0x14f)](_0xe1d30d)[_0x19deaf(0x150)](_0x5a15fa=>!(0x3===_0x5a15fa[_0x19deaf(0x12c)]&&''===_0x1e10d8(_0x5a15fa)[_0x19deaf(0x12a)]())),_0x5df4d6=_0x37bc37[_0x19deaf(0x125)];for(let _0xe241a3=0x0;_0xe241a3<_0x5df4d6;_0xe241a3++){const _0x3e7ad5=_0x37bc37[_0xe241a3],_0x1ebb79=_0x37bc37[_0xe241a3+0x1];if(this[_0x19deaf(0x148)](_0x3e7ad5)){if(-0x1===_0x11a3c4&&(_0x11a3c4=_0xe241a3),this[_0x19deaf(0x14a)](_0x3e7ad5),!this[_0x19deaf(0x148)](_0x1ebb79)){const [_0x539d6c,_0x36ec8f]=this[_0x19deaf(0x143)](_0x3e7ad5,_0x5b6642,_0x4a82fa);if(_0x539d6c){const _0x49974e=Array[_0x19deaf(0x14f)](_0x37bc37)[_0x19deaf(0x16a)](_0x11a3c4,_0xe241a3+0x1);this[_0x19deaf(0x132)](_0x539d6c,_0x49974e,_0x36ec8f),_0x11a3c4=-0x1;}}}else{if(this[_0x19deaf(0x13c)](_0x3e7ad5))_0x5b6642=!0x0;else{if(this[_0x19deaf(0x131)](_0x3e7ad5)){const _0x14c457=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));if(_0x14c457&&this[_0x19deaf(0x144)][_0x19deaf(0x155)](_0x14c457)){const _0x6727c1=_0x110819(_0x19deaf(0x135),_0x14c457,_0x4a82fa);this[_0x19deaf(0x15b)](_0x6727c1,_0x3e7ad5);}if(this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x13b)](_0x14c457)){const _0x5ecc17=this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x161)](_0x14c457);this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x166)](_0x5ecc17,0x1);}}else{if(this[_0x19deaf(0x124)](_0x3e7ad5)){const _0x41c329=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));this[_0x19deaf(0x127)][_0x19deaf(0x139)][_0x19deaf(0x13b)](_0x41c329)||this[_0x19deaf(0x145)](_0x3e7ad5);}}}}}for(const _0x4d9591 of this[_0x19deaf(0x127)][_0x19deaf(0x14b)]){const _0x376da7=_0x110819(_0x19deaf(0x135),_0x4d9591,_0x4a82fa);if(_0x376da7){if(_0x80acdb&&_0x80acdb[_0x19deaf(0x156)]){this[_0x19deaf(0x127)][_0x19deaf(0x149)]=_0x4d9591;const _0x175bc1=_0x80acdb[_0x19deaf(0x156)][_0x19deaf(0x15d)](!0x0);_0x5ab751(_0x175bc1,_0x19deaf(0x135),_0x4d9591),_0x5ab751(_0x175bc1,_0x19deaf(0x130),_0x19deaf(0x168)),_0x46fc58(_0x376da7,_0x175bc1);}else _0x4b9ff1(_0x376da7);}}if(_0x7afdfe(_0x19deaf(0x151),null,_0x4a82fa)[_0x19deaf(0x160)](_0xefb23f=>{const _0x1ab9be=_0x19deaf,_0x892960=_0x4566c1(_0xefb23f,_0x1ab9be(0x151)),_0x520a7d=_0x110819(_0x1ab9be(0x135),_0x892960,_0x4a82fa);_0x520a7d&&_0x1ac0c6(_0x520a7d,_0xefb23f);}),_0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x4a82fa)[_0x19deaf(0x160)](_0x15d796=>{const _0x1f04fa=_0x19deaf,_0x8f2bed=this[_0x1f04fa(0x142)](_0x15d796);_0x5ab751(_0x15d796,_0x1f04fa(0x135),_0x8f2bed),this[_0x1f04fa(0x127)][_0x1f04fa(0x13d)][_0x1f04fa(0x162)](_0x8f2bed);}),this[_0x19deaf(0x123)](_0x4a82fa),_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x12b)](_0x4a82fa,_0x80acdb[_0x19deaf(0x128)]||0x0),_0x80acdb&&_0x80acdb[_0x19deaf(0x154)]&&this[_0x19deaf(0x127)][_0x19deaf(0x149)]){let _0x23d845=_0x110819(_0x19deaf(0x135),this[_0x19deaf(0x127)][_0x19deaf(0x149)],_0x4a82fa);for(;_0x23d845;)_0xad8381(_0x23d845),_0x23d845=_0x23d845[_0x19deaf(0x158)];}return{'parsedContent':_0x4a82fa,'newNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x13d)],'modifiedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x139)],'removedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x14b)]};}[_0x587997(0x132)](_0x3b50b2,_0x53a2a4,_0x46163a){const _0x58f960=_0x587997;for(const _0x511107 of _0x53a2a4){const _0x269e8d=this[_0x58f960(0x142)](_0x511107);_0x5ab751(_0x511107,_0x58f960(0x135),_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x13d)][_0x58f960(0x162)](_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x149)]=_0x269e8d;}const _0xcb6f48=_0x58f960(0x140)===_0x46163a||_0x58f960(0x157)===_0x46163a?_0x53a2a4[_0x58f960(0x129)]():_0x53a2a4;for(const _0xc4563a of _0xcb6f48)_0x4794cf(_0x3b50b2,_0xc4563a,_0x46163a);}[_0x587997(0x15b)](_0xc2fa5,_0x2405b2){const _0x53cc93=_0x587997;if(!_0xc2fa5)return;if(_0x3ac447(_0xc2fa5,_0x2405b2))return;const _0xbe2248=this[_0x53cc93(0x142)](_0xc2fa5);_0x5ab751(_0x2405b2,_0x53cc93(0x135),_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x139)][_0x53cc93(0x162)](_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x149)]=_0xbe2248,_0x46fc58(_0xc2fa5,_0x2405b2[_0x53cc93(0x15d)](!0x0));}[_0x587997(0x143)](_0x3e88b4,_0x21f6a5,_0x537a4f){const _0x5f3be5=_0x587997,_0x33eb6d=this[_0x5f3be5(0x12f)](_0x3e88b4,!0x1);if(_0x33eb6d){const _0x14408a=this[_0x5f3be5(0x15e)](_0x33eb6d),_0x175bc3=_0x110819(_0x5f3be5(0x135),_0x14408a,_0x537a4f);if(_0x175bc3)return[_0x175bc3,_0x5f3be5(0x157)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x14408a);}const _0x4aa635=this[_0x5f3be5(0x12d)](_0x3e88b4,!0x1);if(_0x4aa635){const _0x2e4989=this[_0x5f3be5(0x15e)](_0x4aa635),_0x2c815a=_0x110819(_0x5f3be5(0x135),_0x2e4989,_0x537a4f);if(_0x2c815a)return[_0x2c815a,_0x5f3be5(0x133)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x2e4989);}return _0x21f6a5?_0x3e88b4[_0x5f3be5(0x15c)]?this[_0x5f3be5(0x153)](_0x3e88b4,_0x537a4f):[_0x537a4f[_0x5f3be5(0x13a)][_0x537a4f[_0x5f3be5(0x13a)][_0x5f3be5(0x125)]-0x1],_0x5f3be5(0x157)]:[_0x537a4f[_0x5f3be5(0x13a)][0x0],_0x5f3be5(0x133)];}[_0x587997(0x153)](_0x16b5b5,_0x571644){const _0x55dbe6=_0x587997,_0x2eddcf=[],_0x1ff93d=this[_0x55dbe6(0x12f)](_0x16b5b5,!0x0);if(_0x1ff93d){const _0x444ab7=this[_0x55dbe6(0x15e)](_0x1ff93d),_0x46fe90=_0x110819(_0x55dbe6(0x135),_0x444ab7,_0x571644);_0x46fe90&&_0x2eddcf[_0x55dbe6(0x162)]([_0x46fe90,_0x55dbe6(0x157)]);}const _0x2c85e8=this[_0x55dbe6(0x12d)](_0x16b5b5,!0x0);if(_0x2c85e8){const _0x5b461c=this[_0x55dbe6(0x15e)](_0x2c85e8),_0x194fe6=_0x110819(_0x55dbe6(0x135),_0x5b461c,_0x571644);_0x194fe6&&_0x2eddcf[_0x55dbe6(0x162)]([_0x194fe6,_0x55dbe6(0x133)]);}if(_0x2eddcf[_0x55dbe6(0x125)]>0x1)return _0x51b030(_0x2eddcf[0x0][0x0])<=_0x51b030(_0x2eddcf[0x1][0x0])?_0x2eddcf[0x0]:_0x2eddcf[0x1];return 0x1===_0x2eddcf[_0x55dbe6(0x125)]?_0x2eddcf[0x0]:[_0x571644[_0x55dbe6(0x163)],_0x55dbe6(0x157)];}[_0x587997(0x12d)](_0x5e975c,_0x4eff47){const _0x3702b0=_0x587997;let _0xf3908a=_0x5e975c[_0x3702b0(0x15c)],_0x416d90=null,_0x1a53c0=!0x1;for(;_0xf3908a;){if(_0x4f2611(_0xf3908a)){if(this[_0x3702b0(0x124)](_0xf3908a)&&(_0x416d90=_0xf3908a),this[_0x3702b0(0x13c)](_0xf3908a)&&_0x4eff47&&!_0x1a53c0){_0x1a53c0=!0x0,_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];continue;}break;}const _0x2d342d=_0x4566c1(_0xf3908a,_0x3702b0(0x135));if(_0x2d342d&&_0x3702b0(0x14c)!==_0x2d342d&&this[_0x3702b0(0x144)][_0x3702b0(0x155)](_0x2d342d)){_0x416d90=_0xf3908a;break;}_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];}return _0x416d90;}[_0x587997(0x12f)](_0x1c5230,_0x1a217c){const _0x1976c0=_0x587997;let _0x39ff3f=_0x1c5230[_0x1976c0(0x14e)],_0x3d293a=null,_0x2d865e=!0x1;for(;_0x39ff3f;){if(_0x4f2611(_0x39ff3f)){if(this[_0x1976c0(0x124)](_0x39ff3f)&&(_0x3d293a=_0x39ff3f),this[_0x1976c0(0x13c)](_0x39ff3f)&&_0x1a217c&&!_0x2d865e){_0x2d865e=!0x0,_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];continue;}break;}const _0xf63890=_0x4566c1(_0x39ff3f,_0x1976c0(0x135));if(_0xf63890&&_0x1976c0(0x14c)!==_0xf63890&&this[_0x1976c0(0x144)][_0x1976c0(0x155)](_0xf63890)){_0x3d293a=_0x39ff3f;break;}_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];}return _0x3d293a;}[_0x587997(0x14a)](_0x11bf4a){const _0x242e30=_0x587997;_0x10d4f2(_0x11bf4a)&&_0x7afdfe(_0x242e30(0x135),null,_0x11bf4a)[_0x242e30(0x160)](_0x535a47=>{const _0x50931f=_0x242e30;if(this[_0x50931f(0x131)](_0x535a47)&&!this[_0x50931f(0x164)](_0x535a47)){const _0x416a5a=_0x4566c1(_0x535a47,_0x50931f(0x135));_0x5ab751(_0x535a47,_0x50931f(0x151),_0x416a5a),_0x5ab751(_0x535a47,_0x50931f(0x135),null);}});}[_0x587997(0x15e)](_0x2519ae){const _0x284fb8=_0x587997;if(!_0x2519ae)return null;if(_0x10d4f2(_0x2519ae))return _0x4566c1(_0x2519ae,_0x284fb8(0x135));if(_0x4f2611(_0x2519ae)){const _0x55d841=_0x1e10d8(_0x2519ae)[_0x284fb8(0x138)](/removed[\s*-]data-id="([^"]+)"/);if(_0x55d841&&_0x55d841[0x1])return _0x55d841[0x1];}return null;}[_0x587997(0x145)](_0x13d84f){const _0x106566=_0x587997;if(_0x4f2611(_0x13d84f)){const _0x3ca39e=_0x1e10d8(_0x13d84f)[_0x106566(0x138)](/removed[\s*-]data-id="([^"]+)"/);_0x3ca39e&&_0x3ca39e[0x1]&&this[_0x106566(0x127)][_0x106566(0x14b)][_0x106566(0x162)](_0x3ca39e[0x1]);}}[_0x587997(0x142)](_0x1e73b5){const _0x90d037=_0x587997;return this[_0x90d037(0x131)](_0x1e73b5)?_0x4566c1(_0x1e73b5,_0x90d037(0x135)):this[_0x90d037(0x169)]();}[_0x587997(0x123)](_0x296856){const _0x5b6675=_0x587997;_0x19b8cb(_0x296856)[_0x5b6675(0x150)](_0x44b2ce=>this[_0x5b6675(0x124)](_0x44b2ce)||this[_0x5b6675(0x13c)](_0x44b2ce))[_0x5b6675(0x160)](_0x10ac8a=>{_0x4b9ff1(_0x10ac8a);});}[_0x587997(0x13e)](_0x28ca5b){const _0x1b8ac9=_0x587997,_0x29d2f9=_0x28ca5b[_0x1b8ac9(0x13a)],_0xad91ac=_0x29d2f9[_0x29d2f9[_0x1b8ac9(0x125)]-0x1];_0xad91ac&&_0x10d4f2(_0xad91ac)&&_0x5ab751(_0xad91ac,_0x1b8ac9(0x159),_0x1b8ac9(0x168));}[_0x587997(0x12b)](_0x2612c0,_0x1b9502){const _0x33d2be=_0x587997,_0x560705=_0x110819(_0x33d2be(0x159),_0x33d2be(0x168),_0x2612c0);if(!_0x560705)return;const _0x31938d=_0x502ca2(_0x560705)[_0x33d2be(0x16a)](0x0,-0x1),_0x25b0aa=_0x31938d[_0x33d2be(0x125)];let _0x2ad31f=_0x560705;if(_0x25b0aa>_0x1b9502){let _0x5b2704=_0x25b0aa,_0x1d402c=null;for(;_0x5b2704>_0x1b9502&&_0x5b2704>=0x0;)_0x5b2704--,_0x1d402c=_0x31938d[_0x5b2704];_0x1d402c&&(_0x2ad31f=_0x1d402c,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x1d402c,_0x33d2be(0x159),_0x33d2be(0x168)));}else{if(_0x25b0aa<_0x1b9502){let _0x1beb30=_0x25b0aa,_0x5177b4=_0x560705;for(;_0x1beb30<_0x1b9502;){const _0x3690b8=_0x5177b4[_0x33d2be(0x13a)][_0x33d2be(0x150)](_0x6d89fa=>_0x10d4f2(_0x6d89fa));if(0x0===_0x3690b8[_0x33d2be(0x125)])break;_0x1beb30++,_0x5177b4=_0x3690b8[_0x3690b8[_0x33d2be(0x125)]-0x1];}_0x5177b4&&(_0x2ad31f=_0x5177b4,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x5177b4,_0x33d2be(0x159),_0x33d2be(0x168)));}}let _0x4c4ddc=_0x2ad31f;for(;_0x4c4ddc;){for(;_0x4c4ddc[_0x33d2be(0x15c)];)_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x15c)],_0x10d4f2(_0x4c4ddc)&&_0x5ab751(_0x4c4ddc,_0x33d2be(0x159),_0x33d2be(0x168));_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x158)];}}[_0x587997(0x148)](_0x55f866){const _0x12da05=_0x587997;return Boolean(_0x12da05(0x14c)===_0x4566c1(_0x55f866,_0x12da05(0x135)));}[_0x587997(0x131)](_0x39f28e){const _0x3d6e7e=_0x587997;return Boolean((_0x4566c1(_0x39f28e,_0x3d6e7e(0x135))||'')[_0x3d6e7e(0x125)]>0x0&&_0x3d6e7e(0x14c)!==_0x4566c1(_0x39f28e,_0x3d6e7e(0x135)));}[_0x587997(0x124)](_0xcfc92f){const _0x899a79=_0x587997;return!!_0xcfc92f&&Boolean(_0x4f2611(_0xcfc92f)&&_0x1e10d8(_0xcfc92f)[_0x899a79(0x138)](/removed[\s*-]data-id="[^"]+"/));}[_0x587997(0x164)](_0x450040){const _0x4d33bc=_0x587997;let _0x1871c2=_0x450040[_0x4d33bc(0x158)];for(;_0x1871c2;){if(_0x4566c1(_0x1871c2,_0x4d33bc(0x151)))return!0x0;_0x1871c2=_0x1871c2[_0x4d33bc(0x158)];}return!0x1;}[_0x587997(0x13c)](_0x28c7f7){const _0x4e8caf=_0x587997;return Boolean(_0x4f2611(_0x28c7f7)&&_0x1e10d8(_0x28c7f7)[_0x4e8caf(0x138)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5739dd=_0x10af;(function(_0x2b2f1f,_0xcb0f98){const _0x5a118f=_0x10af,_0x2308c3=_0x2b2f1f();while(!![]){try{const _0x4e24b1=-parseInt(_0x5a118f(0x1fd))/0x1*(parseInt(_0x5a118f(0x1ef))/0x2)+parseInt(_0x5a118f(0x1fb))/0x3*(-parseInt(_0x5a118f(0x1fa))/0x4)+-parseInt(_0x5a118f(0x1f1))/0x5*(parseInt(_0x5a118f(0x1ea))/0x6)+-parseInt(_0x5a118f(0x1ee))/0x7+-parseInt(_0x5a118f(0x1fc))/0x8*(-parseInt(_0x5a118f(0x1ed))/0x9)+parseInt(_0x5a118f(0x1f4))/0xa+parseInt(_0x5a118f(0x1f3))/0xb*(parseInt(_0x5a118f(0x1f5))/0xc);if(_0x4e24b1===_0xcb0f98)break;else _0x2308c3['push'](_0x2308c3['shift']());}catch(_0x1a3cce){_0x2308c3['push'](_0x2308c3['shift']());}}}(_0x46c0,0xe2308));import{ObservableMixin as _0x28f684}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5a8958}from'@ckeditor/ckeditor5-markdown-gfm';function _0x46c0(){const _0xc73d4a=['6236RBYgzF','convertMarkdownToHTML','50UeOtLm','parseAndNormalizeHTML','38195773XaxEqU','12563750FMkhGZ','12JaKxJU','<dummy>','children','replace','parse','16pkzOxV','1355622egaCks','10771560bvFkhR','512uxLfvH','_parseHTML','818316rgaRlv','</dummy>','_m2html','9VqPQdh','2666433PjNWPm'];_0x46c0=function(){return _0xc73d4a;};return _0x46c0();}import{parse as _0x31074e}from'../utils/htmlparser.js';function _0x10af(_0x580ff8,_0x11cc18){const _0x46c0a3=_0x46c0();return _0x10af=function(_0x10afd4,_0x505275){_0x10afd4=_0x10afd4-0x1e9;let _0x6893b8=_0x46c0a3[_0x10afd4];return _0x6893b8;},_0x10af(_0x580ff8,_0x11cc18);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x28f684(){[_0x5739dd(0x1ec)];constructor(){const _0x3ff1db=_0x5739dd;super(),this[_0x3ff1db(0x1ec)]=new _0x5a8958();}[_0x5739dd(0x1f0)](_0xe80293){const _0x2153ce=_0x5739dd,_0x22fbdc=this[_0x2153ce(0x1ec)][_0x2153ce(0x1f9)](_0xe80293);return this[_0x2153ce(0x1f2)](_0x22fbdc);}[_0x5739dd(0x1f2)](_0x494226){const _0x390cfb=_0x5739dd;return this[_0x390cfb(0x1e9)](_0x494226);}[_0x5739dd(0x1e9)](_0x503260){const _0x48a509=_0x5739dd,_0x2ee483=_0x503260[_0x48a509(0x1f8)](/^\t+/gm,'\x20')[_0x48a509(0x1f8)](/\n*/g,'')[_0x48a509(0x1f8)](/\s+/g,'\x20')[_0x48a509(0x1f8)](/<[^>]*?$/g,''),_0x1451c4=_0x31074e(_0x48a509(0x1f6)+_0x2ee483+_0x48a509(0x1eb));return _0x1451c4[_0x48a509(0x1f7)]=_0x1451c4[_0x48a509(0x1f7)][0x0][_0x48a509(0x1f7)],_0x1451c4;}}
23
+ const _0x289ae9=_0x4221;(function(_0x135d68,_0x3c1e1d){const _0x3d3d00=_0x4221,_0x535245=_0x135d68();while(!![]){try{const _0x4a74af=-parseInt(_0x3d3d00(0xad))/0x1*(-parseInt(_0x3d3d00(0xb9))/0x2)+parseInt(_0x3d3d00(0xb4))/0x3*(-parseInt(_0x3d3d00(0xa8))/0x4)+parseInt(_0x3d3d00(0xba))/0x5*(parseInt(_0x3d3d00(0xb5))/0x6)+-parseInt(_0x3d3d00(0xb3))/0x7*(parseInt(_0x3d3d00(0xaa))/0x8)+-parseInt(_0x3d3d00(0xac))/0x9+-parseInt(_0x3d3d00(0xbb))/0xa*(parseInt(_0x3d3d00(0xb8))/0xb)+parseInt(_0x3d3d00(0xaf))/0xc;if(_0x4a74af===_0x3c1e1d)break;else _0x535245['push'](_0x535245['shift']());}catch(_0x34c265){_0x535245['push'](_0x535245['shift']());}}}(_0x7115,0xdef0f));import{ObservableMixin as _0x4a5825}from'ckeditor5/src/utils.js';function _0x4221(_0xce0914,_0x5d697b){const _0x7115ab=_0x7115();return _0x4221=function(_0x422144,_0x503093){_0x422144=_0x422144-0xa8;let _0x2a438e=_0x7115ab[_0x422144];return _0x2a438e;},_0x4221(_0xce0914,_0x5d697b);}import{MarkdownGfmMdToHtml as _0x2c8f66}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x3d3be2}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x4a5825(){[_0x289ae9(0xab)];constructor(){const _0x2a6888=_0x289ae9;super(),this[_0x2a6888(0xab)]=new _0x2c8f66();}[_0x289ae9(0xae)](_0x331039){const _0x2a69b7=_0x289ae9,_0x1fa092=this[_0x2a69b7(0xab)][_0x2a69b7(0xb2)](_0x331039);return this[_0x2a69b7(0xb1)](_0x1fa092);}[_0x289ae9(0xb1)](_0x44be9f){const _0x239f9f=_0x289ae9;return this[_0x239f9f(0xbc)](_0x44be9f);}[_0x289ae9(0xbc)](_0x138dd8){const _0x2315dd=_0x289ae9,_0x5b226d=_0x138dd8[_0x2315dd(0xb0)](/^\t+/gm,'\x20')[_0x2315dd(0xb0)](/\n*/g,'')[_0x2315dd(0xb0)](/\s+/g,'\x20')[_0x2315dd(0xb0)](/<[^>]*?$/g,''),_0x3aa567=_0x3d3be2(_0x2315dd(0xa9)+_0x5b226d+_0x2315dd(0xb7));return _0x3aa567[_0x2315dd(0xb6)]=_0x3aa567[_0x2315dd(0xb6)][0x0][_0x2315dd(0xb6)],_0x3aa567;}}function _0x7115(){const _0x42e2af=['</dummy>','11Uonrcb','200542PZvAzX','95UjPeOU','389290trariG','_parseHTML','2364RHHNdO','<dummy>','8DYeFQJ','_m2html','12081159xjBhVr','11sEvzpq','convertMarkdownToHTML','23212632HRfKTN','replace','parseAndNormalizeHTML','parse','4565981mANrvC','8703hoWGTQ','512796RWntlJ','children'];_0x7115=function(){return _0x42e2af;};return _0x7115();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x251111,_0x592ab3){var _0x512166=_0xa747,_0x5d85be=_0x251111();while(!![]){try{var _0x4b90e9=parseInt(_0x512166(0x1ac))/0x1+-parseInt(_0x512166(0x1b1))/0x2*(-parseInt(_0x512166(0x1ab))/0x3)+parseInt(_0x512166(0x1b3))/0x4*(parseInt(_0x512166(0x1b0))/0x5)+parseInt(_0x512166(0x1b2))/0x6+parseInt(_0x512166(0x1a9))/0x7+parseInt(_0x512166(0x1ad))/0x8*(parseInt(_0x512166(0x1a4))/0x9)+-parseInt(_0x512166(0x1aa))/0xa*(parseInt(_0x512166(0x1a6))/0xb);if(_0x4b90e9===_0x592ab3)break;else _0x5d85be['push'](_0x5d85be['shift']());}catch(_0x1fb6b9){_0x5d85be['push'](_0x5d85be['shift']());}}}(_0x4d3a,0xb5e27));function _0xa747(_0x481f1b,_0x1aec44){var _0x4d3a9a=_0x4d3a();return _0xa747=function(_0xa74773,_0x1d63dc){_0xa74773=_0xa74773-0x1a4;var _0x40269d=_0x4d3a9a[_0xa74773];return _0x40269d;},_0xa747(_0x481f1b,_0x1aec44);}function _0x4d3a(){var _0x5d3bd4=['ck-ai-disclaimer','3091599vLyrRF','10moXHWn','87hwcbek','1231506HaaVgW','8vccnPQ','AI_DISCLAIMER_TEXT','div','442980IGixKl','69634FVdcto','5894328tPwhMV','28AJnItx','12605877PbBqOX','setTemplate','54351770pqmvSM','ck-ai-disclaimer__content'];_0x4d3a=function(){return _0x5d3bd4;};return _0x4d3a();}import{View as _0xcf0c07}from'ckeditor5/src/ui.js';import{getTranslation as _0x441712}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0xcf0c07{constructor(_0x516fe7){var _0x4c31fb=_0xa747;super(_0x516fe7),this[_0x4c31fb(0x1a5)]({'tag':_0x4c31fb(0x1af),'attributes':{'class':['ck',_0x4c31fb(0x1a8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4c31fb(0x1a7)]},'children':[{'text':_0x441712(_0x516fe7,_0x4c31fb(0x1ae))}]}]});}}
23
+ (function(_0x79db51,_0x309286){var _0x49ad1c=_0x5996,_0x139ef3=_0x79db51();while(!![]){try{var _0x1dc3b5=parseInt(_0x49ad1c(0x17e))/0x1*(-parseInt(_0x49ad1c(0x17c))/0x2)+parseInt(_0x49ad1c(0x181))/0x3+-parseInt(_0x49ad1c(0x184))/0x4*(parseInt(_0x49ad1c(0x18c))/0x5)+parseInt(_0x49ad1c(0x180))/0x6+parseInt(_0x49ad1c(0x185))/0x7*(parseInt(_0x49ad1c(0x187))/0x8)+parseInt(_0x49ad1c(0x183))/0x9*(-parseInt(_0x49ad1c(0x186))/0xa)+-parseInt(_0x49ad1c(0x188))/0xb*(parseInt(_0x49ad1c(0x189))/0xc);if(_0x1dc3b5===_0x309286)break;else _0x139ef3['push'](_0x139ef3['shift']());}catch(_0x3605cf){_0x139ef3['push'](_0x139ef3['shift']());}}}(_0x382d,0xccc6b));function _0x5996(_0x3a6dc2,_0x50d23e){var _0x382d85=_0x382d();return _0x5996=function(_0x5996d3,_0x2577ef){_0x5996d3=_0x5996d3-0x17c;var _0x465f05=_0x382d85[_0x5996d3];return _0x465f05;},_0x5996(_0x3a6dc2,_0x50d23e);}import{View as _0x360853}from'ckeditor5/src/ui.js';function _0x382d(){var _0x1a60f5=['AI_DISCLAIMER_TEXT','ck-ai-disclaimer','20Yaxvxm','934UllMit','setTemplate','1159pgckxq','ck-ai-disclaimer__content','100446vgOKzt','2573823FBigHT','div','506871zdRmbp','29528DUuhgc','1507513pDfKKV','20HoAvdp','56UUVJCB','9460143INfWsk','12EzTimW'];_0x382d=function(){return _0x1a60f5;};return _0x382d();}import{getTranslation as _0x75aa26}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x360853{constructor(_0x3cb831){var _0x20cb65=_0x5996;super(_0x3cb831),this[_0x20cb65(0x17d)]({'tag':_0x20cb65(0x182),'attributes':{'class':['ck',_0x20cb65(0x18b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x20cb65(0x17f)]},'children':[{'text':_0x75aa26(_0x3cb831,_0x20cb65(0x18a))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15fc4c=_0x4b03;(function(_0x5ada3c,_0x11aedf){const _0x10d8b0=_0x4b03,_0x3ba531=_0x5ada3c();while(!![]){try{const _0x113b8b=parseInt(_0x10d8b0(0x160))/0x1*(-parseInt(_0x10d8b0(0x14d))/0x2)+-parseInt(_0x10d8b0(0x164))/0x3*(parseInt(_0x10d8b0(0x16f))/0x4)+-parseInt(_0x10d8b0(0x148))/0x5*(parseInt(_0x10d8b0(0x153))/0x6)+-parseInt(_0x10d8b0(0x14b))/0x7+-parseInt(_0x10d8b0(0x147))/0x8*(-parseInt(_0x10d8b0(0x14a))/0x9)+parseInt(_0x10d8b0(0x155))/0xa+parseInt(_0x10d8b0(0x157))/0xb*(parseInt(_0x10d8b0(0x168))/0xc);if(_0x113b8b===_0x11aedf)break;else _0x3ba531['push'](_0x3ba531['shift']());}catch(_0x50cf26){_0x3ba531['push'](_0x3ba531['shift']());}}}(_0xe7e8,0xcd038));import{View as _0x1f2df5}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0xe7e8(){const _0x1aba5e=['height','100%','5190630KYhsqz','width','7087570FoYXKx','40px','11ZrdJjC','ck-ai-skeleton__item','24px','div',';\x20height:\x20','128px','72px','align','tag','778130ZMvpwp','44px','140px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','60603XkCLEt','right','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','15153396hkeFDV','ck-ai-skeleton','width:\x20','center','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','24ceCNCX','250px','fill','15064gwnitd','5oWVlqs','_createSkeletonItems','6291nXEOfm','4785060fovAeO','88px','2tcsfNb','attributes','setTemplate','map'];_0xe7e8=function(){return _0x1aba5e;};return _0xe7e8();}export class AISkeletonView extends _0x1f2df5{constructor(_0x783832,_0x54c268){const _0xaa634f=_0x4b03;super(_0x783832),this[_0xaa634f(0x14f)]({'tag':_0xaa634f(0x15a),'attributes':{'class':['ck',_0xaa634f(0x169)]},'children':this[_0xaa634f(0x149)](_0x54c268)});}[_0x15fc4c(0x149)](_0x1f8619){const _0x2951ba=_0x15fc4c,_0x31b630=['ck',_0x2951ba(0x158)];return _0x1f8619[_0x2951ba(0x150)](_0x4106dd=>{const _0x158eea=_0x2951ba;let _0x3a0048='';switch(_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x15e)]){case _0x158eea(0x165):_0x3a0048=_0x158eea(0x167);break;case _0x158eea(0x16b):_0x3a0048=_0x158eea(0x16d);break;case _0x158eea(0x16e):_0x3a0048=_0x158eea(0x163);}return{'tag':_0x4106dd[_0x158eea(0x15f)],'attributes':{'class':[..._0x31b630,_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]?_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]:''],'style':_0x158eea(0x16a)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x154)]+_0x158eea(0x15b)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x151)]+';'+_0x3a0048}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x15d),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x166),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x162),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}}],'aiHistory':ta(0x5,_0x15fc4c(0x152),_0x15fc4c(0x161),_0x15fc4c(0x165)),'aiChatResources':ta(0x8,_0x15fc4c(0x152),_0x15fc4c(0x159),_0x15fc4c(0x165)),'aiReviewChecks':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}}]};function _0x4b03(_0x44ceeb,_0x58cfd9){const _0xe7e8a0=_0xe7e8();return _0x4b03=function(_0x4b0331,_0x2e1421){_0x4b0331=_0x4b0331-0x146;let _0x26bc7e=_0xe7e8a0[_0x4b0331];return _0x26bc7e;},_0x4b03(_0x44ceeb,_0x58cfd9);}function ta(_0x222327,_0x5f59e3,_0x3ac0bb,_0x531202){const _0xc25ce4=_0x15fc4c;return new Array(_0x222327)[_0xc25ce4(0x146)](null)[_0xc25ce4(0x150)](()=>({'tag':_0xc25ce4(0x15a),'attributes':{'width':_0x5f59e3,'height':_0x3ac0bb,'align':_0x531202}}));}
23
+ const _0x2f7ca8=_0x2a56;(function(_0x115683,_0x1867c5){const _0x5f489f=_0x2a56,_0x302bed=_0x115683();while(!![]){try{const _0x4df632=-parseInt(_0x5f489f(0x1b0))/0x1*(parseInt(_0x5f489f(0x1b9))/0x2)+-parseInt(_0x5f489f(0x1ae))/0x3*(parseInt(_0x5f489f(0x1a0))/0x4)+parseInt(_0x5f489f(0x1b2))/0x5+-parseInt(_0x5f489f(0x1c5))/0x6+-parseInt(_0x5f489f(0x1c3))/0x7*(parseInt(_0x5f489f(0x1ba))/0x8)+-parseInt(_0x5f489f(0x1a4))/0x9*(parseInt(_0x5f489f(0x1b3))/0xa)+parseInt(_0x5f489f(0x19e))/0xb*(parseInt(_0x5f489f(0x1be))/0xc);if(_0x4df632===_0x1867c5)break;else _0x302bed['push'](_0x302bed['shift']());}catch(_0xe7d0b2){_0x302bed['push'](_0x302bed['shift']());}}}(_0x1313,0x4ec3c));import{View as _0x16054a}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0x1313(){const _0x517b73=['right','140px','4389301fnCVUm','width:\x20','3851934RLZzKf','_createSkeletonItems','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','539bktqDf','72px','110412zTjDCS','ck-ai-skeleton','150px','24px','277533lGEHys','44px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','map','250px','88px','128px','attributes','fill','width','63mWOHwG','center','116hRzPSG','40px','1036715VGyzkQ','70JVdSDc',';\x20height:\x20','100%','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','ck-ai-skeleton__item','2410NvRTUg','8VOHITn','left','div','tag','568068BNOhfQ','setTemplate','align'];_0x1313=function(){return _0x517b73;};return _0x1313();}export class AISkeletonView extends _0x16054a{constructor(_0x125d03,_0xcaa514){const _0x1f1b62=_0x2a56;super(_0x125d03),this[_0x1f1b62(0x1bf)]({'tag':_0x1f1b62(0x1bc),'attributes':{'class':['ck',_0x1f1b62(0x1a1)]},'children':this[_0x1f1b62(0x1c6)](_0xcaa514)});}[_0x2f7ca8(0x1c6)](_0x17f168){const _0xff6180=_0x2f7ca8,_0x51e3f2=['ck',_0xff6180(0x1b8)];return _0x17f168[_0xff6180(0x1a7)](_0x4c2348=>{const _0x4db2ed=_0xff6180;let _0x390230='';switch(_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c0)]){case _0x4db2ed(0x1c1):_0x390230=_0x4db2ed(0x1a6);break;case _0x4db2ed(0x1af):_0x390230=_0x4db2ed(0x19d);break;case _0x4db2ed(0x1bb):_0x390230=_0x4db2ed(0x1b6);}return{'tag':_0x4c2348[_0x4db2ed(0x1bd)],'attributes':{'class':[..._0x51e3f2,_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c7)]?_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1c7)]:''],'style':_0x4db2ed(0x1c4)+_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1ad)]+_0x4db2ed(0x1b4)+_0x4c2348[_0x4db2ed(0x1ab)][_0x4db2ed(0x1b7)]+';'+_0x390230}};});}}function _0x2a56(_0x4ab0c7,_0xa04558){const _0x13132d=_0x1313();return _0x2a56=function(_0x2a56f5,_0xd9c629){_0x2a56f5=_0x2a56f5-0x19d;let _0x4f2d28=_0x13132d[_0x2a56f5];return _0x4f2d28;},_0x2a56(_0x4ab0c7,_0xa04558);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x19f),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a8),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a9),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a2),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1c2),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1a8),'height':_0x2f7ca8(0x1b1),'align':_0x2f7ca8(0x1c1)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a9),'align':_0x2f7ca8(0x1c1)}}],'aiHistory':$e(0x5,_0x2f7ca8(0x1b5),_0x2f7ca8(0x1a5),_0x2f7ca8(0x1c1)),'aiChatResources':$e(0x8,_0x2f7ca8(0x1b5),_0x2f7ca8(0x1a3),_0x2f7ca8(0x1c1)),'aiReviewChecks':[{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1aa),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1b5),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}},{'tag':_0x2f7ca8(0x1bc),'attributes':{'width':_0x2f7ca8(0x1aa),'height':_0x2f7ca8(0x1a3),'align':_0x2f7ca8(0x1bb)}}]};function $e(_0x28f63f,_0x5bd9b4,_0x10bffd,_0x5422dc){const _0x25dc84=_0x2f7ca8;return new Array(_0x28f63f)[_0x25dc84(0x1ac)](null)[_0x25dc84(0x1a7)](()=>({'tag':_0x25dc84(0x1bc),'attributes':{'width':_0x5bd9b4,'height':_0x10bffd,'align':_0x5422dc}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x574295,_0x5d122b){const _0x2dce6c=_0x56c1,_0xfef663=_0x574295();while(!![]){try{const _0xf2ce81=-parseInt(_0x2dce6c(0x1bf))/0x1*(-parseInt(_0x2dce6c(0x1bb))/0x2)+-parseInt(_0x2dce6c(0x1c0))/0x3+-parseInt(_0x2dce6c(0x1c4))/0x4+parseInt(_0x2dce6c(0x1bc))/0x5*(parseInt(_0x2dce6c(0x1c2))/0x6)+-parseInt(_0x2dce6c(0x1b9))/0x7*(parseInt(_0x2dce6c(0x1be))/0x8)+parseInt(_0x2dce6c(0x1bd))/0x9*(-parseInt(_0x2dce6c(0x1c6))/0xa)+parseInt(_0x2dce6c(0x1c7))/0xb;if(_0xf2ce81===_0x5d122b)break;else _0xfef663['push'](_0xfef663['shift']());}catch(_0x27464b){_0xfef663['push'](_0xfef663['shift']());}}}(_0x104e,0xb16b0));import{SpinnerView as _0x30309f}from'ckeditor5/src/ui.js';function _0x104e(){const _0x55c955=['395930rllwai','13594361PFeONO','14896VPjnIX','ck-ai-spinner_','2OwrNho','1803620VnIfMK','207LaJPDR','392gTZlMC','1371926RBvEde','1817871EWBjQs','extendTemplate','12GmLbGQ','span','3926612WwYkNK','ck-ai-spinner'];_0x104e=function(){return _0x55c955;};return _0x104e();}import'../../../theme/common/aispinner.css';function _0x56c1(_0x4d3a07,_0x3132ba){const _0x104e5e=_0x104e();return _0x56c1=function(_0x56c1f4,_0x1c6e5c){_0x56c1f4=_0x56c1f4-0x1b9;let _0x6c8f07=_0x104e5e[_0x56c1f4];return _0x6c8f07;},_0x56c1(_0x4d3a07,_0x3132ba);}export class AISpinnerView extends _0x30309f{constructor(_0x17bf6c=void 0x0){const _0x45f0ed=_0x56c1;super();const _0x179840=_0x17bf6c?_0x45f0ed(0x1ba)+_0x17bf6c:'';this[_0x45f0ed(0x1c1)]({'tag':_0x45f0ed(0x1c3),'attributes':{'class':[_0x45f0ed(0x1c5),_0x179840]}});}}
23
+ (function(_0x395340,_0x44762e){const _0x1760cd=_0x3421,_0x19088c=_0x395340();while(!![]){try{const _0x1f636f=parseInt(_0x1760cd(0xd5))/0x1+-parseInt(_0x1760cd(0xcf))/0x2*(parseInt(_0x1760cd(0xd0))/0x3)+-parseInt(_0x1760cd(0xd1))/0x4+parseInt(_0x1760cd(0xd3))/0x5+-parseInt(_0x1760cd(0xd4))/0x6*(-parseInt(_0x1760cd(0xd2))/0x7)+-parseInt(_0x1760cd(0xd6))/0x8+-parseInt(_0x1760cd(0xd7))/0x9*(-parseInt(_0x1760cd(0xcd))/0xa);if(_0x1f636f===_0x44762e)break;else _0x19088c['push'](_0x19088c['shift']());}catch(_0x54e9b2){_0x19088c['push'](_0x19088c['shift']());}}}(_0x5872,0xf1372));function _0x3421(_0x2de956,_0x23bafe){const _0x58728b=_0x5872();return _0x3421=function(_0x3421ee,_0x24a2fc){_0x3421ee=_0x3421ee-0xcb;let _0x340835=_0x58728b[_0x3421ee];return _0x340835;},_0x3421(_0x2de956,_0x23bafe);}import{SpinnerView as _0x4dfdee}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x5872(){const _0x19dc41=['ck-ai-spinner_','ck-ai-spinner','extendTemplate','10nhboye','span','3398998ciSQHD','3gFHRrp','2523192XcDofM','536669GZyDjE','5514070IIxDZi','120LvUMtw','939346OuriqN','5247424ZwWxIR','3588687zHWoMH'];_0x5872=function(){return _0x19dc41;};return _0x5872();}export class AISpinnerView extends _0x4dfdee{constructor(_0x2fec93=void 0x0){const _0x16457f=_0x3421;super();const _0x3a3f9f=_0x2fec93?_0x16457f(0xd8)+_0x2fec93:'';this[_0x16457f(0xcc)]({'tag':_0x16457f(0xce),'attributes':{'class':[_0x16457f(0xcb),_0x3a3f9f]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ac27e=_0x3b6c;(function(_0x198ad2,_0x4fceac){const _0x586b5a=_0x3b6c,_0x2ef5bb=_0x198ad2();while(!![]){try{const _0x1bfd95=parseInt(_0x586b5a(0xdb))/0x1*(parseInt(_0x586b5a(0xc0))/0x2)+-parseInt(_0x586b5a(0xc1))/0x3*(parseInt(_0x586b5a(0xbc))/0x4)+-parseInt(_0x586b5a(0xc3))/0x5*(-parseInt(_0x586b5a(0xd7))/0x6)+parseInt(_0x586b5a(0xc9))/0x7+-parseInt(_0x586b5a(0xd1))/0x8+-parseInt(_0x586b5a(0xe0))/0x9+parseInt(_0x586b5a(0xbd))/0xa;if(_0x1bfd95===_0x4fceac)break;else _0x2ef5bb['push'](_0x2ef5bb['shift']());}catch(_0x31595b){_0x2ef5bb['push'](_0x2ef5bb['shift']());}}}(_0x37c9,0x68426));function _0x3b6c(_0x13984c,_0x579bb7){const _0x37c9f6=_0x37c9();return _0x3b6c=function(_0x3b6c7f,_0x1bc6e6){_0x3b6c7f=_0x3b6c7f-0xb3;let _0x608984=_0x37c9f6[_0x3b6c7f];return _0x608984;},_0x3b6c(_0x13984c,_0x579bb7);}function _0x37c9(){const _0x960afe=['showCopy','showLike','3ZUbEXM','dislike','children','items','ck-ai-mini-toolbar','7190370jpnmAR','customView','bind','execute','set','AI_MINI_TOOLBAR_DISLIKE','full','like','copyButton','fire','likeButton','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_LIKE','_setupShowChangesButton','toggleShowChanges','icon','dislikeButton','_config','1827068rbpYsq','18089010BNlNQx','toggleShowChangesEnabled','_setupCopyButton','41698FIyUhx','3elDorz','addMany','20UEnyfB','length','_setupRatingButtons','ck-ai-mini-toolbar\x20ck-hidden','AI_MINI_TOOLBAR_COPY','showChangesButton','280567LajLmZ','showDislike','showChanges','ck-ai-mini-toolbar-copy-button','isShowChangesOn','isEnabled','ck-ai-button-tertiary','class','4893584KMHaZT','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','locale','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isOn','extendTemplate','574368bKGskG','add'];_0x37c9=function(){return _0x960afe;};return _0x37c9();}import{ButtonView as _0x468382,IconView as _0x3b0c13,ToolbarView as _0x18cbc3}from'ckeditor5/src/ui.js';import{IconCheck as _0xda13fc,IconCopy as _0x30088c,IconShowChangesOff as _0x5d2e23,IconShowChangesOn as _0x5303d7,IconThumbDown as _0x2fe6ab,IconThumbUp as _0x5baf30}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4645db}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x18cbc3{[_0x5ac27e(0xe8)];[_0x5ac27e(0xb4)];[_0x5ac27e(0xba)];[_0x5ac27e(0xc8)];[_0x5ac27e(0xbb)];constructor(_0x328b54,_0x35e51f={}){const _0x294fa8=_0x5ac27e;super(_0x328b54),this[_0x294fa8(0xe4)](_0x294fa8(0xce),!0x0),this[_0x294fa8(0xe4)](_0x294fa8(0xcd),!0x1),this[_0x294fa8(0xbb)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x35e51f};const _0xc9faca=!(this[_0x294fa8(0xbb)][_0x294fa8(0xd9)]||this[_0x294fa8(0xbb)][_0x294fa8(0xcb)]||this[_0x294fa8(0xbb)][_0x294fa8(0xda)]||this[_0x294fa8(0xbb)][_0x294fa8(0xca)]||this[_0x294fa8(0xbb)][_0x294fa8(0xe1)]?.[_0x294fa8(0xc4)]);this[_0x294fa8(0xd0)]=_0xc9faca?_0x294fa8(0xc6):_0x294fa8(0xdf),this[_0x294fa8(0xbb)][_0x294fa8(0xd9)]&&(this[_0x294fa8(0xbf)](),this[_0x294fa8(0xde)][_0x294fa8(0xd8)](this[_0x294fa8(0xe8)])),this[_0x294fa8(0xbb)][_0x294fa8(0xcb)]&&(this[_0x294fa8(0xb7)](),this[_0x294fa8(0xde)][_0x294fa8(0xd8)](this[_0x294fa8(0xc8)])),this[_0x294fa8(0xc5)](),this[_0x294fa8(0xbb)][_0x294fa8(0xda)]&&this[_0x294fa8(0xde)][_0x294fa8(0xd8)](this[_0x294fa8(0xb4)]),this[_0x294fa8(0xbb)][_0x294fa8(0xca)]&&this[_0x294fa8(0xde)][_0x294fa8(0xd8)](this[_0x294fa8(0xba)]),this[_0x294fa8(0xbb)][_0x294fa8(0xe1)]&&this[_0x294fa8(0xde)][_0x294fa8(0xc2)](this[_0x294fa8(0xbb)][_0x294fa8(0xe1)]);}[_0x5ac27e(0xbe)](_0x50535f){const _0x18a9b5=_0x5ac27e;this[_0x18a9b5(0xc8)][_0x18a9b5(0xce)]=_0x50535f;}[_0x5ac27e(0xc5)](){const _0x135793=_0x5ac27e;this[_0x135793(0xb4)]=new _0x468382(this[_0x135793(0xd3)]),this[_0x135793(0xb4)][_0x135793(0xe4)]({'icon':_0x5baf30,'label':_0x4645db(this[_0x135793(0xd3)],_0x135793(0xb6)),'tooltip':!0x0}),this[_0x135793(0xb4)][_0x135793(0xe2)](_0x135793(0xce))['to'](this),this[_0x135793(0xb4)]['on'](_0x135793(0xe3),()=>{const _0x50e41c=_0x135793;this[_0x50e41c(0xb3)](_0x50e41c(0xe7));}),this[_0x135793(0xba)]=new _0x468382(this[_0x135793(0xd3)]),this[_0x135793(0xba)][_0x135793(0xe4)]({'icon':_0x2fe6ab,'label':_0x4645db(this[_0x135793(0xd3)],_0x135793(0xe5)),'tooltip':!0x0}),this[_0x135793(0xba)][_0x135793(0xe2)](_0x135793(0xce))['to'](this),this[_0x135793(0xba)]['on'](_0x135793(0xe3),()=>{const _0x12edda=_0x135793;this[_0x12edda(0xb3)](_0x12edda(0xdc));});}[_0x5ac27e(0xbf)](){const _0x2d074a=_0x5ac27e;this[_0x2d074a(0xe8)]=new _0x468382(this[_0x2d074a(0xd3)]),this[_0x2d074a(0xe8)][_0x2d074a(0xe4)]({'icon':_0x30088c,'label':_0x4645db(this[_0x2d074a(0xd3)],_0x2d074a(0xc7)),'class':_0x2d074a(0xcc),'tooltip':!0x0}),this[_0x2d074a(0xe8)][_0x2d074a(0xe2)](_0x2d074a(0xce))['to'](this);const _0x5cb657=new _0x3b0c13();_0x5cb657[_0x2d074a(0xe4)]({'content':_0xda13fc}),_0x5cb657[_0x2d074a(0xd6)]({'attributes':{'class':[_0x2d074a(0xb5)]}}),this[_0x2d074a(0xe8)]['on'](_0x2d074a(0xe3),()=>{const _0x19ccd0=_0x2d074a;this[_0x19ccd0(0xe8)][_0x19ccd0(0xd0)]=_0x19ccd0(0xd2),setTimeout(()=>{const _0x215c0b=_0x19ccd0;this[_0x215c0b(0xe8)][_0x215c0b(0xd0)]=_0x215c0b(0xcc);},0x7d0);}),this[_0x2d074a(0xe8)][_0x2d074a(0xdd)][_0x2d074a(0xd8)](_0x5cb657);}[_0x5ac27e(0xb7)](){const _0xd4a200=_0x5ac27e;this[_0xd4a200(0xc8)]=new _0x468382(this[_0xd4a200(0xd3)]),this[_0xd4a200(0xc8)][_0xd4a200(0xe4)]({'icon':_0x5d2e23,'label':_0x4645db(this[_0xd4a200(0xd3)],_0xd4a200(0xd4)),'withText':_0xd4a200(0xe6)==this[_0xd4a200(0xbb)][_0xd4a200(0xcb)],'tooltip':_0xd4a200(0xe6)!=this[_0xd4a200(0xbb)][_0xd4a200(0xcb)],'class':_0xd4a200(0xcf)}),this[_0xd4a200(0xc8)][_0xd4a200(0xe2)](_0xd4a200(0xd5))['to'](this,_0xd4a200(0xcd)),this[_0xd4a200(0xc8)][_0xd4a200(0xe2)](_0xd4a200(0xce))['to'](this),this[_0xd4a200(0xc8)][_0xd4a200(0xe2)](_0xd4a200(0xb9))['to'](this,_0xd4a200(0xcd),_0x5c3b33=>_0x5c3b33?_0x5303d7:_0x5d2e23),this[_0xd4a200(0xc8)]['on'](_0xd4a200(0xe3),()=>{const _0x38d8ac=_0xd4a200;this[_0x38d8ac(0xb3)](_0x38d8ac(0xb8));});}}
23
+ const _0x106958=_0x1377;(function(_0x197cfd,_0xbaeeb){const _0x467aad=_0x1377,_0x3afbdb=_0x197cfd();while(!![]){try{const _0x39fb7c=parseInt(_0x467aad(0xc1))/0x1*(-parseInt(_0x467aad(0xdb))/0x2)+-parseInt(_0x467aad(0xcb))/0x3*(-parseInt(_0x467aad(0xab))/0x4)+-parseInt(_0x467aad(0xd3))/0x5*(parseInt(_0x467aad(0xcd))/0x6)+parseInt(_0x467aad(0xaf))/0x7*(parseInt(_0x467aad(0xda))/0x8)+parseInt(_0x467aad(0xb5))/0x9+parseInt(_0x467aad(0xb0))/0xa+-parseInt(_0x467aad(0xd7))/0xb;if(_0x39fb7c===_0xbaeeb)break;else _0x3afbdb['push'](_0x3afbdb['shift']());}catch(_0x2e9fee){_0x3afbdb['push'](_0x3afbdb['shift']());}}}(_0x4780,0xe2298));import{ButtonView as _0xca3628,IconView as _0x42c9d7,ToolbarView as _0x346ee7}from'ckeditor5/src/ui.js';function _0x4780(){const _0x5f5707=['isEnabled','AI_MINI_TOOLBAR_COPY','class','addMany','8141535EcSHqM','showChanges','length','extendTemplate','AI_SUGGESTION_BUTTON_SHOW_CHANGES','showDislike','dislikeButton','isShowChangesOn','customView','full','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','add','1djFKLm','AI_MINI_TOOLBAR_DISLIKE','toggleShowChangesEnabled','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar','ck-ai-button-tertiary','items','children','isOn','12fqxzUU','set','603042BckvDp','likeButton','_setupRatingButtons','showLike','showChangesButton','_config','55DZJizg','execute','toggleShowChanges','ck-ai-mini-toolbar-copy-button','4365768Rhfamt','bind','_setupCopyButton','41656lQNguZ','1890582khlNva','fire','copyButton','icon','_setupShowChangesButton','dislike','showCopy','292216jeSbns','locale','like','AI_MINI_TOOLBAR_LIKE','1687EfjGPR','9223980GnDDTA'];_0x4780=function(){return _0x5f5707;};return _0x4780();}import{IconCheck as _0x546f28,IconCopy as _0x588c9e,IconShowChangesOff as _0xffa59e,IconShowChangesOn as _0x19caec,IconThumbDown as _0x5efb6a,IconThumbUp as _0x5a865d}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x57855c}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x1377(_0x1f4fcd,_0x31281d){const _0x478010=_0x4780();return _0x1377=function(_0x13773c,_0x1554d9){_0x13773c=_0x13773c-0xab;let _0x4ef859=_0x478010[_0x13773c];return _0x4ef859;},_0x1377(_0x1f4fcd,_0x31281d);}export class AIMiniToolbarView extends _0x346ee7{[_0x106958(0xdd)];[_0x106958(0xce)];[_0x106958(0xbb)];[_0x106958(0xd1)];[_0x106958(0xd2)];constructor(_0x2c7984,_0x5a427b={}){const _0x3e2a81=_0x106958;super(_0x2c7984),this[_0x3e2a81(0xcc)](_0x3e2a81(0xb1),!0x0),this[_0x3e2a81(0xcc)](_0x3e2a81(0xbc),!0x1),this[_0x3e2a81(0xd2)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5a427b};const _0x27bfbe=!(this[_0x3e2a81(0xd2)][_0x3e2a81(0xe1)]||this[_0x3e2a81(0xd2)][_0x3e2a81(0xb6)]||this[_0x3e2a81(0xd2)][_0x3e2a81(0xd0)]||this[_0x3e2a81(0xd2)][_0x3e2a81(0xba)]||this[_0x3e2a81(0xd2)][_0x3e2a81(0xbd)]?.[_0x3e2a81(0xb7)]);this[_0x3e2a81(0xb3)]=_0x27bfbe?_0x3e2a81(0xc4):_0x3e2a81(0xc6),this[_0x3e2a81(0xd2)][_0x3e2a81(0xe1)]&&(this[_0x3e2a81(0xd9)](),this[_0x3e2a81(0xc8)][_0x3e2a81(0xc0)](this[_0x3e2a81(0xdd)])),this[_0x3e2a81(0xd2)][_0x3e2a81(0xb6)]&&(this[_0x3e2a81(0xdf)](),this[_0x3e2a81(0xc8)][_0x3e2a81(0xc0)](this[_0x3e2a81(0xd1)])),this[_0x3e2a81(0xcf)](),this[_0x3e2a81(0xd2)][_0x3e2a81(0xd0)]&&this[_0x3e2a81(0xc8)][_0x3e2a81(0xc0)](this[_0x3e2a81(0xce)]),this[_0x3e2a81(0xd2)][_0x3e2a81(0xba)]&&this[_0x3e2a81(0xc8)][_0x3e2a81(0xc0)](this[_0x3e2a81(0xbb)]),this[_0x3e2a81(0xd2)][_0x3e2a81(0xbd)]&&this[_0x3e2a81(0xc8)][_0x3e2a81(0xb4)](this[_0x3e2a81(0xd2)][_0x3e2a81(0xbd)]);}[_0x106958(0xc3)](_0x493edb){const _0x42bffa=_0x106958;this[_0x42bffa(0xd1)][_0x42bffa(0xb1)]=_0x493edb;}[_0x106958(0xcf)](){const _0x1b73b8=_0x106958;this[_0x1b73b8(0xce)]=new _0xca3628(this[_0x1b73b8(0xac)]),this[_0x1b73b8(0xce)][_0x1b73b8(0xcc)]({'icon':_0x5a865d,'label':_0x57855c(this[_0x1b73b8(0xac)],_0x1b73b8(0xae)),'tooltip':!0x0}),this[_0x1b73b8(0xce)][_0x1b73b8(0xd8)](_0x1b73b8(0xb1))['to'](this),this[_0x1b73b8(0xce)]['on'](_0x1b73b8(0xd4),()=>{const _0x2c62d2=_0x1b73b8;this[_0x2c62d2(0xdc)](_0x2c62d2(0xad));}),this[_0x1b73b8(0xbb)]=new _0xca3628(this[_0x1b73b8(0xac)]),this[_0x1b73b8(0xbb)][_0x1b73b8(0xcc)]({'icon':_0x5efb6a,'label':_0x57855c(this[_0x1b73b8(0xac)],_0x1b73b8(0xc2)),'tooltip':!0x0}),this[_0x1b73b8(0xbb)][_0x1b73b8(0xd8)](_0x1b73b8(0xb1))['to'](this),this[_0x1b73b8(0xbb)]['on'](_0x1b73b8(0xd4),()=>{const _0x58244e=_0x1b73b8;this[_0x58244e(0xdc)](_0x58244e(0xe0));});}[_0x106958(0xd9)](){const _0x556ffd=_0x106958;this[_0x556ffd(0xdd)]=new _0xca3628(this[_0x556ffd(0xac)]),this[_0x556ffd(0xdd)][_0x556ffd(0xcc)]({'icon':_0x588c9e,'label':_0x57855c(this[_0x556ffd(0xac)],_0x556ffd(0xb2)),'class':_0x556ffd(0xd6),'tooltip':!0x0}),this[_0x556ffd(0xdd)][_0x556ffd(0xd8)](_0x556ffd(0xb1))['to'](this);const _0x4c67fa=new _0x42c9d7();_0x4c67fa[_0x556ffd(0xcc)]({'content':_0x546f28}),_0x4c67fa[_0x556ffd(0xb8)]({'attributes':{'class':[_0x556ffd(0xc5)]}}),this[_0x556ffd(0xdd)]['on'](_0x556ffd(0xd4),()=>{const _0x111ef5=_0x556ffd;this[_0x111ef5(0xdd)][_0x111ef5(0xb3)]=_0x111ef5(0xbf),setTimeout(()=>{const _0x88d8c6=_0x111ef5;this[_0x88d8c6(0xdd)][_0x88d8c6(0xb3)]=_0x88d8c6(0xd6);},0x7d0);}),this[_0x556ffd(0xdd)][_0x556ffd(0xc9)][_0x556ffd(0xc0)](_0x4c67fa);}[_0x106958(0xdf)](){const _0x2a2677=_0x106958;this[_0x2a2677(0xd1)]=new _0xca3628(this[_0x2a2677(0xac)]),this[_0x2a2677(0xd1)][_0x2a2677(0xcc)]({'icon':_0xffa59e,'label':_0x57855c(this[_0x2a2677(0xac)],_0x2a2677(0xb9)),'withText':_0x2a2677(0xbe)==this[_0x2a2677(0xd2)][_0x2a2677(0xb6)],'tooltip':_0x2a2677(0xbe)!=this[_0x2a2677(0xd2)][_0x2a2677(0xb6)],'class':_0x2a2677(0xc7)}),this[_0x2a2677(0xd1)][_0x2a2677(0xd8)](_0x2a2677(0xca))['to'](this,_0x2a2677(0xbc)),this[_0x2a2677(0xd1)][_0x2a2677(0xd8)](_0x2a2677(0xb1))['to'](this),this[_0x2a2677(0xd1)][_0x2a2677(0xd8)](_0x2a2677(0xde))['to'](this,_0x2a2677(0xbc),_0x1699bb=>_0x1699bb?_0x19caec:_0xffa59e),this[_0x2a2677(0xd1)]['on'](_0x2a2677(0xd4),()=>{const _0xcf2b41=_0x2a2677;this[_0xcf2b41(0xdc)](_0xcf2b41(0xd5));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x811c(_0x15cbf0,_0xa401ab){const _0x240f35=_0x240f();return _0x811c=function(_0x811cbd,_0x3cc3f1){_0x811cbd=_0x811cbd-0xb2;let _0x4f1a80=_0x240f35[_0x811cbd];return _0x4f1a80;},_0x811c(_0x15cbf0,_0xa401ab);}const _0x4f2a46=_0x811c;function _0x240f(){const _0x2165b0=['AI_SUGGESTION_EMPTY_PART_WARNING','filter','_sourcesView','isActive','AI_SUGGESTION_NO_PARTS_WARNING','isTrackChangesOn','isEnabled','bind','partDefinition','623122WYQJBi','queueEmptyPromise','from','some','ck-ai-suggestion__body','updatePartState','_showUnchangedParts','2553988pEGcND','hasPendingParts','_cachedContentParts','add','hasNonEmptyParts','pending','isVisible','_switchButtonLabelsPlurality','set','_children','updateContentParts','forEach','14BDAfyi','24VizHEU','updateSources','markAsDone','_availableActions','getPartView','bodyCollection','delegate','areActionsDisabled','length','setContent','div','hasChanges','findIndex','updateVisibility','createCollection','addEventListener','state','empty-parts-warning','72wqnBlx','index','enqueue','8157616nhNVTK','2624020iqvlDk','_areActionsDisabled','locale','422391TAHqkN','warning','partsCount','push','_actionsView','find','availableActions','ck-ai-suggestion__body__content-parts','setTemplate','1314635VGzfqX','_updateContentPartsPromiseQueue','1115605mffkXP','abort','_emptyPartsWarningView','setPartActive','updateContent','addSource'];_0x240f=function(){return _0x2165b0;};return _0x240f();}(function(_0x431fa6,_0x2d25af){const _0x45ddce=_0x811c,_0xa19d97=_0x431fa6();while(!![]){try{const _0x52dd7c=-parseInt(_0x45ddce(0xbd))/0x1+parseInt(_0x45ddce(0xd0))/0x2*(-parseInt(_0x45ddce(0xea))/0x3)+parseInt(_0x45ddce(0xc4))/0x4+-parseInt(_0x45ddce(0xf5))/0x5+parseInt(_0x45ddce(0xd1))/0x6*(parseInt(_0x45ddce(0xf3))/0x7)+-parseInt(_0x45ddce(0xe6))/0x8+-parseInt(_0x45ddce(0xe3))/0x9*(-parseInt(_0x45ddce(0xe7))/0xa);if(_0x52dd7c===_0x2d25af)break;else _0xa19d97['push'](_0xa19d97['shift']());}catch(_0x594a63){_0xa19d97['push'](_0xa19d97['shift']());}}}(_0x240f,0x9b9e1));import{View as _0x3ef994}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x399b82}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3d56c4}from'../../utils/eventnames.js';import{PromiseQueue as _0x5335ca}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x13ea42}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x161235}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x489f43}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x37abef}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x3ef994{[_0x4f2a46(0xee)];[_0x4f2a46(0xb6)];[_0x4f2a46(0xcd)];[_0x4f2a46(0xe8)];[_0x4f2a46(0xc3)];[_0x4f2a46(0xf4)];[_0x4f2a46(0xf7)];[_0x4f2a46(0xd4)];[_0x4f2a46(0xc6)]=[];constructor(_0x1beaf2,_0x21bad7){const _0x15ad19=_0x4f2a46;super(_0x1beaf2);const {areActionsDisabled:_0x1d3bcf,showUnchangedParts:_0x822766,availableActions:_0x42e8c6}=_0x21bad7;this[_0x15ad19(0xe8)]=_0x1d3bcf,this[_0x15ad19(0xc3)]=_0x822766,this[_0x15ad19(0xd4)]=_0x42e8c6,this[_0x15ad19(0xcc)](_0x15ad19(0xc5),!0x1),this[_0x15ad19(0xcc)](_0x15ad19(0xb9),!0x1),this[_0x15ad19(0xcd)]=this[_0x15ad19(0xdf)](),this[_0x15ad19(0xf4)]=new _0x5335ca(),this[_0x15ad19(0xf7)]=new _0x13ea42({'id':_0x15ad19(0xe2),'initialContent':_0x161235(_0x1beaf2,_0x15ad19(0xb4)),'level':_0x15ad19(0xeb)}),this[_0x15ad19(0xf7)][_0x15ad19(0xca)]=!0x1,this[_0x15ad19(0xee)]=new _0x489f43(_0x1beaf2,_0x21bad7[_0x15ad19(0xf0)],this[_0x15ad19(0xe8)]),this[_0x15ad19(0xee)][_0x15ad19(0xbb)](_0x15ad19(0xb9))['to'](this),this[_0x15ad19(0xb6)]=new _0x37abef(this[_0x15ad19(0xe9)],_0x21bad7[_0x15ad19(0xd6)]),_0x21bad7[_0x15ad19(0xd8)]?this[_0x15ad19(0xee)][_0x15ad19(0xba)]=!0x1:this[_0x15ad19(0xee)][_0x15ad19(0xbb)](_0x15ad19(0xba))['to'](this,_0x15ad19(0xc5)),this[_0x15ad19(0xee)][_0x15ad19(0xd7)](..._0x3d56c4)['to'](this),this[_0x15ad19(0xf2)]({'tag':_0x15ad19(0xdb),'attributes':{'class':['ck',_0x15ad19(0xc1)]},'children':[{'tag':_0x15ad19(0xdb),'attributes':{'class':['ck',_0x15ad19(0xf1)]},'children':this[_0x15ad19(0xcd)]},this[_0x15ad19(0xf7)],this[_0x15ad19(0xee)],this[_0x15ad19(0xb6)]]});}get[_0x4f2a46(0xec)](){const _0x561309=_0x4f2a46;return this[_0x561309(0xcd)][_0x561309(0xd9)];}async[_0x4f2a46(0xce)]({parts:_0x218380,renderingStrategy:_0x8f7f96,abortSignal:_0x3d0137}){const _0x56ce32=_0x4f2a46;this[_0x56ce32(0xcd)][_0x56ce32(0xd9)]?_0x218380[_0x56ce32(0xcf)](_0x39f7c4=>{const _0x582d4e=_0x56ce32,_0x558bef=this[_0x582d4e(0xc6)][_0x582d4e(0xdd)](_0x5f04b2=>_0x5f04b2[_0x582d4e(0xe4)]==_0x39f7c4[_0x582d4e(0xe4)]);-0x1===_0x558bef?this[_0x582d4e(0xc6)][_0x582d4e(0xed)](_0x39f7c4):this[_0x582d4e(0xc6)][_0x558bef]=_0x39f7c4;}):this[_0x56ce32(0xc6)]=_0x218380;const _0xf40ec3=this[_0x56ce32(0xc3)]?_0x218380:_0x218380[_0x56ce32(0xb5)](_0x36f71c=>_0x36f71c[_0x56ce32(0xdc)]);this[_0x56ce32(0xee)][_0x56ce32(0xcb)](_0xf40ec3[_0x56ce32(0xd9)]>0x1);for(const _0x1904a1 of _0xf40ec3)this[_0x56ce32(0xf4)][_0x56ce32(0xe5)](async _0x12e11a=>{const _0x18cc00=_0x56ce32;let _0x1e1ec2=this[_0x18cc00(0xd5)](_0x1904a1[_0x18cc00(0xe4)]);_0x1e1ec2||(_0x1e1ec2=new _0x399b82(this[_0x18cc00(0xe9)],{'part':_0x1904a1,'uiIndex':this[_0x18cc00(0xcd)][_0x18cc00(0xd9)]+0x1,'areActionsDisabled':this[_0x18cc00(0xe8)],'availableActions':this[_0x18cc00(0xd4)]}),_0x1e1ec2[_0x18cc00(0xd7)](..._0x3d56c4)['to'](this),this[_0x18cc00(0xcd)][_0x18cc00(0xc7)](_0x1e1ec2),this[_0x18cc00(0xc5)]=!0x0),await _0x1e1ec2[_0x18cc00(0xb2)]({'part':_0x1904a1,'renderingStrategy':_0x8f7f96,'showUnchangedParts':this[_0x18cc00(0xc3)],'abortSignal':_0x12e11a}),_0x1e1ec2[_0x18cc00(0xd3)]();});return _0x3d0137?.[_0x56ce32(0xe0)](_0x56ce32(0xf6),()=>{const _0x4a4d49=_0x56ce32;this[_0x4a4d49(0xf4)][_0x4a4d49(0xf6)]();}),this[_0x56ce32(0xf4)][_0x56ce32(0xbe)];}[_0x4f2a46(0xc2)](_0x1043bd,_0x19d04d){const _0x29df94=_0x4f2a46,_0x17b7e7=this[_0x29df94(0xd5)](_0x1043bd);_0x17b7e7&&(_0x17b7e7[_0x29df94(0xe1)]=_0x19d04d),this[_0x29df94(0xc5)]=_0x29df94(0xc9)==_0x19d04d||Array[_0x29df94(0xbf)](this[_0x29df94(0xcd)])[_0x29df94(0xc0)](_0x4a021e=>_0x29df94(0xc9)==_0x4a021e[_0x29df94(0xe1)]);}[_0x4f2a46(0xf8)](_0x57fe09,_0x2258cf){const _0x207352=_0x4f2a46;if(!0x1===_0x57fe09){for(const _0x560b2d of this[_0x207352(0xcd)])_0x560b2d[_0x207352(0xb7)]=!0x1;}else{const _0x4de2f5=this[_0x207352(0xd5)](_0x57fe09);_0x4de2f5&&(_0x4de2f5[_0x207352(0xb7)]=_0x2258cf);}}[_0x4f2a46(0xd2)](_0x385160){const _0x3b08dd=_0x4f2a46;_0x385160[_0x3b08dd(0xcf)](_0x1e9288=>this[_0x3b08dd(0xb6)][_0x3b08dd(0xb3)](_0x1e9288)),this[_0x3b08dd(0xb6)][_0x3b08dd(0xca)]=!0x0;}[_0x4f2a46(0xd5)](_0x236aca){const _0x5a6cc5=_0x4f2a46;return this[_0x5a6cc5(0xcd)][_0x5a6cc5(0xef)](_0x454fc6=>_0x454fc6[_0x5a6cc5(0xbc)][_0x5a6cc5(0xe4)]==_0x236aca)??null;}[_0x4f2a46(0xd3)](){const _0x4aa72f=_0x4f2a46;if(!this[_0x4aa72f(0xc3)]){const _0x4fd19e=!this[_0x4aa72f(0xc6)][_0x4aa72f(0xef)](({hasChanges:_0x214863})=>_0x214863),_0x42618c=!!this[_0x4aa72f(0xc6)][_0x4aa72f(0xef)](({hasChanges:_0x320bdd})=>!_0x320bdd);this[_0x4aa72f(0xf7)][_0x4aa72f(0xca)]=0x0==this[_0x4aa72f(0xcd)][_0x4aa72f(0xd9)]||_0x42618c,_0x4fd19e?this[_0x4aa72f(0xf7)][_0x4aa72f(0xda)](_0x161235(this[_0x4aa72f(0xe9)],_0x4aa72f(0xb8))):this[_0x4aa72f(0xf7)][_0x4aa72f(0xda)](_0x161235(this[_0x4aa72f(0xe9)],_0x4aa72f(0xb4)));}this[_0x4aa72f(0xcd)][_0x4aa72f(0xcf)](_0x2c613b=>_0x2c613b[_0x4aa72f(0xd3)]()),this[_0x4aa72f(0xee)][_0x4aa72f(0xde)](this[_0x4aa72f(0xc8)]);}get[_0x4f2a46(0xc8)](){const _0x2940c9=_0x4f2a46;return this[_0x2940c9(0xcd)][_0x2940c9(0xb5)](_0xe7a0c5=>_0xe7a0c5[_0x2940c9(0xbc)][_0x2940c9(0xdc)])[_0x2940c9(0xd9)]>0x0;}}
23
+ function _0x4a59(){const _0x51822a=['hasChanges','markAsDone','length','_showUnchangedParts','_children','358799wzxHdH','forEach','updateVisibility','108645jvUaHw','13uFryiO','updatePartState','bind','enqueue','setTemplate','_areActionsDisabled','bodyCollection','index','locale','set','isEnabled','some','add','from','partsCount','empty-parts-warning','5090094eMkQKV','addSource','state','hasPendingParts','AI_SUGGESTION_EMPTY_PART_WARNING','_cachedContentParts','8tZdNxf','availableActions','_emptyPartsWarningView','push','partDefinition','updateContentParts','_actionsView','div','findIndex','1739757MthbCs','setContent','ck-ai-suggestion__body','_availableActions','AI_SUGGESTION_NO_PARTS_WARNING','206060ZUnafm','_sourcesView','297xRAhkv','hasNonEmptyParts','isVisible','abort','_updateContentPartsPromiseQueue','15EbRZui','isTrackChangesOn','createCollection','isActive','areActionsDisabled','23921640YnjuUk','delegate','filter','queueEmptyPromise','setPartActive','12CCELjd','find','6kVEQct','ck-ai-suggestion__body__content-parts','addEventListener','updateContent','_switchButtonLabelsPlurality','652152maxPlQ','getPartView','updateSources','warning','pending'];_0x4a59=function(){return _0x51822a;};return _0x4a59();}const _0x555322=_0x42dc;(function(_0x4b97a8,_0x4066ce){const _0x50733=_0x42dc,_0x496888=_0x4b97a8();while(!![]){try{const _0x2c6034=-parseInt(_0x50733(0x162))/0x1*(-parseInt(_0x50733(0x14e))/0x2)+-parseInt(_0x50733(0x138))/0x3+parseInt(_0x50733(0x155))/0x4*(-parseInt(_0x50733(0x144))/0x5)+-parseInt(_0x50733(0x150))/0x6*(-parseInt(_0x50733(0x15f))/0x7)+parseInt(_0x50733(0x12f))/0x8*(-parseInt(_0x50733(0x129))/0x9)+-parseInt(_0x50733(0x13d))/0xa*(parseInt(_0x50733(0x13f))/0xb)+-parseInt(_0x50733(0x149))/0xc*(-parseInt(_0x50733(0x163))/0xd);if(_0x2c6034===_0x4066ce)break;else _0x496888['push'](_0x496888['shift']());}catch(_0x4113e8){_0x496888['push'](_0x496888['shift']());}}}(_0x4a59,0x7b724));function _0x42dc(_0xf5445d,_0x56c5bf){const _0x4a594b=_0x4a59();return _0x42dc=function(_0x42dc80,_0x500d30){_0x42dc80=_0x42dc80-0x121;let _0x4a3041=_0x4a594b[_0x42dc80];return _0x4a3041;},_0x42dc(_0xf5445d,_0x56c5bf);}import{View as _0x1a6a47}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x383b32}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ce3fa}from'../../utils/eventnames.js';import{PromiseQueue as _0x2d00f0}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2d802b}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x295616}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x3bd03e}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x364673}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x1a6a47{[_0x555322(0x135)];[_0x555322(0x13e)];[_0x555322(0x15e)];[_0x555322(0x168)];[_0x555322(0x15d)];[_0x555322(0x143)];[_0x555322(0x131)];[_0x555322(0x13b)];[_0x555322(0x12e)]=[];constructor(_0x40cef9,_0x3dcbfa){const _0x4f7395=_0x555322;super(_0x40cef9);const {areActionsDisabled:_0x572cf7,showUnchangedParts:_0x3c03a9,availableActions:_0x50595f}=_0x3dcbfa;this[_0x4f7395(0x168)]=_0x572cf7,this[_0x4f7395(0x15d)]=_0x3c03a9,this[_0x4f7395(0x13b)]=_0x50595f,this[_0x4f7395(0x122)](_0x4f7395(0x12c),!0x1),this[_0x4f7395(0x122)](_0x4f7395(0x145),!0x1),this[_0x4f7395(0x15e)]=this[_0x4f7395(0x146)](),this[_0x4f7395(0x143)]=new _0x2d00f0(),this[_0x4f7395(0x131)]=new _0x2d802b({'id':_0x4f7395(0x128),'initialContent':_0x295616(_0x40cef9,_0x4f7395(0x12d)),'level':_0x4f7395(0x158)}),this[_0x4f7395(0x131)][_0x4f7395(0x141)]=!0x1,this[_0x4f7395(0x135)]=new _0x3bd03e(_0x40cef9,_0x3dcbfa[_0x4f7395(0x130)],this[_0x4f7395(0x168)]),this[_0x4f7395(0x135)][_0x4f7395(0x165)](_0x4f7395(0x145))['to'](this),this[_0x4f7395(0x13e)]=new _0x364673(this[_0x4f7395(0x121)],_0x3dcbfa[_0x4f7395(0x169)]),_0x3dcbfa[_0x4f7395(0x148)]?this[_0x4f7395(0x135)][_0x4f7395(0x123)]=!0x1:this[_0x4f7395(0x135)][_0x4f7395(0x165)](_0x4f7395(0x123))['to'](this,_0x4f7395(0x12c)),this[_0x4f7395(0x135)][_0x4f7395(0x14a)](..._0x2ce3fa)['to'](this),this[_0x4f7395(0x167)]({'tag':_0x4f7395(0x136),'attributes':{'class':['ck',_0x4f7395(0x13a)]},'children':[{'tag':_0x4f7395(0x136),'attributes':{'class':['ck',_0x4f7395(0x151)]},'children':this[_0x4f7395(0x15e)]},this[_0x4f7395(0x131)],this[_0x4f7395(0x135)],this[_0x4f7395(0x13e)]]});}get[_0x555322(0x127)](){const _0x2faa93=_0x555322;return this[_0x2faa93(0x15e)][_0x2faa93(0x15c)];}async[_0x555322(0x134)]({parts:_0xa22fa7,renderingStrategy:_0x1b837c,abortSignal:_0x49eca9}){const _0x3ae784=_0x555322;this[_0x3ae784(0x15e)][_0x3ae784(0x15c)]?_0xa22fa7[_0x3ae784(0x160)](_0x214226=>{const _0x45b9b7=_0x3ae784,_0x4f737b=this[_0x45b9b7(0x12e)][_0x45b9b7(0x137)](_0x12c837=>_0x12c837[_0x45b9b7(0x16a)]==_0x214226[_0x45b9b7(0x16a)]);-0x1===_0x4f737b?this[_0x45b9b7(0x12e)][_0x45b9b7(0x132)](_0x214226):this[_0x45b9b7(0x12e)][_0x4f737b]=_0x214226;}):this[_0x3ae784(0x12e)]=_0xa22fa7;const _0x44cd73=this[_0x3ae784(0x15d)]?_0xa22fa7:_0xa22fa7[_0x3ae784(0x14b)](_0x420f07=>_0x420f07[_0x3ae784(0x15a)]);this[_0x3ae784(0x135)][_0x3ae784(0x154)](_0x44cd73[_0x3ae784(0x15c)]>0x1);for(const _0x43d947 of _0x44cd73)this[_0x3ae784(0x143)][_0x3ae784(0x166)](async _0x4fb02a=>{const _0x1a7d8d=_0x3ae784;let _0x8bf85d=this[_0x1a7d8d(0x156)](_0x43d947[_0x1a7d8d(0x16a)]);_0x8bf85d||(_0x8bf85d=new _0x383b32(this[_0x1a7d8d(0x121)],{'part':_0x43d947,'uiIndex':this[_0x1a7d8d(0x15e)][_0x1a7d8d(0x15c)]+0x1,'areActionsDisabled':this[_0x1a7d8d(0x168)],'availableActions':this[_0x1a7d8d(0x13b)]}),_0x8bf85d[_0x1a7d8d(0x14a)](..._0x2ce3fa)['to'](this),this[_0x1a7d8d(0x15e)][_0x1a7d8d(0x125)](_0x8bf85d),this[_0x1a7d8d(0x12c)]=!0x0),await _0x8bf85d[_0x1a7d8d(0x153)]({'part':_0x43d947,'renderingStrategy':_0x1b837c,'showUnchangedParts':this[_0x1a7d8d(0x15d)],'abortSignal':_0x4fb02a}),_0x8bf85d[_0x1a7d8d(0x15b)]();});return _0x49eca9?.[_0x3ae784(0x152)](_0x3ae784(0x142),()=>{const _0x1f46d7=_0x3ae784;this[_0x1f46d7(0x143)][_0x1f46d7(0x142)]();}),this[_0x3ae784(0x143)][_0x3ae784(0x14c)];}[_0x555322(0x164)](_0x2a0e8b,_0x5029dc){const _0x1b6379=_0x555322,_0x3aeff7=this[_0x1b6379(0x156)](_0x2a0e8b);_0x3aeff7&&(_0x3aeff7[_0x1b6379(0x12b)]=_0x5029dc),this[_0x1b6379(0x12c)]=_0x1b6379(0x159)==_0x5029dc||Array[_0x1b6379(0x126)](this[_0x1b6379(0x15e)])[_0x1b6379(0x124)](_0x1ca820=>_0x1b6379(0x159)==_0x1ca820[_0x1b6379(0x12b)]);}[_0x555322(0x14d)](_0x19423e,_0x2975e7){const _0x574cdd=_0x555322;if(!0x1===_0x19423e){for(const _0x279eca of this[_0x574cdd(0x15e)])_0x279eca[_0x574cdd(0x147)]=!0x1;}else{const _0x271560=this[_0x574cdd(0x156)](_0x19423e);_0x271560&&(_0x271560[_0x574cdd(0x147)]=_0x2975e7);}}[_0x555322(0x157)](_0x3f7448){const _0x3563ea=_0x555322;_0x3f7448[_0x3563ea(0x160)](_0x33a68e=>this[_0x3563ea(0x13e)][_0x3563ea(0x12a)](_0x33a68e)),this[_0x3563ea(0x13e)][_0x3563ea(0x141)]=!0x0;}[_0x555322(0x156)](_0x26cba8){const _0x36f335=_0x555322;return this[_0x36f335(0x15e)][_0x36f335(0x14f)](_0x56b4c9=>_0x56b4c9[_0x36f335(0x133)][_0x36f335(0x16a)]==_0x26cba8)??null;}[_0x555322(0x15b)](){const _0x456867=_0x555322;if(!this[_0x456867(0x15d)]){const _0x2347aa=!this[_0x456867(0x12e)][_0x456867(0x14f)](({hasChanges:_0x307aa0})=>_0x307aa0),_0xc29e1a=!!this[_0x456867(0x12e)][_0x456867(0x14f)](({hasChanges:_0x255f72})=>!_0x255f72);this[_0x456867(0x131)][_0x456867(0x141)]=0x0==this[_0x456867(0x15e)][_0x456867(0x15c)]||_0xc29e1a,_0x2347aa?this[_0x456867(0x131)][_0x456867(0x139)](_0x295616(this[_0x456867(0x121)],_0x456867(0x13c))):this[_0x456867(0x131)][_0x456867(0x139)](_0x295616(this[_0x456867(0x121)],_0x456867(0x12d)));}this[_0x456867(0x15e)][_0x456867(0x160)](_0x2ae92d=>_0x2ae92d[_0x456867(0x15b)]()),this[_0x456867(0x135)][_0x456867(0x161)](this[_0x456867(0x140)]);}get[_0x555322(0x140)](){const _0x5050b1=_0x555322;return this[_0x5050b1(0x15e)][_0x5050b1(0x14b)](_0x8d337d=>_0x8d337d[_0x5050b1(0x133)][_0x5050b1(0x15a)])[_0x5050b1(0x15c)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b9242=_0x2a90;(function(_0x508a85,_0x26e7a6){const _0x583f3c=_0x2a90,_0x453446=_0x508a85();while(!![]){try{const _0x3fe2f1=parseInt(_0x583f3c(0x150))/0x1+-parseInt(_0x583f3c(0x153))/0x2+parseInt(_0x583f3c(0x14f))/0x3*(parseInt(_0x583f3c(0x15b))/0x4)+parseInt(_0x583f3c(0x141))/0x5+parseInt(_0x583f3c(0x14e))/0x6*(-parseInt(_0x583f3c(0x155))/0x7)+parseInt(_0x583f3c(0x158))/0x8*(-parseInt(_0x583f3c(0x143))/0x9)+parseInt(_0x583f3c(0x159))/0xa;if(_0x3fe2f1===_0x26e7a6)break;else _0x453446['push'](_0x453446['shift']());}catch(_0x167ade){_0x453446['push'](_0x453446['shift']());}}}(_0x3d92,0xf223a));function _0x3d92(){const _0x3a1ca1=['496254nmMMOH','add','878542SYyrbI','headerView','delegate','8HsPdLb','6579530REvbIp','updateContent','4TEJrGC','fire','updateSources','isTrackChangesOn','isOn','ck-ai-suggestion__container','bind','hasNonEmptyParts','4184365LUaPRs','div','16677603pzIXSZ','createCollection','toggleSuggestionDisplayMode','areChangesVisible','bodyView','set','markAsDone','isShowChangesToggleVisible','children','setTemplate','ck-rounded-corners','48OMYNUX','2770233fzNasA','1678807mfXyFD','toggleShowChanges','updateContentParts'];_0x3d92=function(){return _0x3a1ca1;};return _0x3d92();}import{View as _0x4b563a}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x53fca9}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x493227}from'./aisuggestionbodyview.js';function _0x2a90(_0x50aea6,_0x544571){const _0x3d9252=_0x3d92();return _0x2a90=function(_0x2a9035,_0x170311){_0x2a9035=_0x2a9035-0x13c;let _0x42370b=_0x3d9252[_0x2a9035];return _0x42370b;},_0x2a90(_0x50aea6,_0x544571);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x502248}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x4b563a{[_0x2b9242(0x147)];[_0x2b9242(0x14b)];[_0x2b9242(0x156)];constructor(_0x14350c,_0x45ac8e,_0x182044){const _0x2953ed=_0x2b9242;super(_0x14350c);const {showDiff:_0xc5e56b,areActionsDisabled:_0x281123,showUnchangedParts:_0xefd9e4,availableActions:_0x112cbc}=_0x45ac8e;this[_0x2953ed(0x148)](_0x2953ed(0x13c),!0x1),this[_0x2953ed(0x148)](_0x2953ed(0x146),!0x1),this[_0x2953ed(0x14b)]=this[_0x2953ed(0x144)](),this[_0x2953ed(0x156)]=new _0x53fca9(_0x14350c,{'showDiff':_0xc5e56b}),this[_0x2953ed(0x156)]['on'](_0x2953ed(0x151),(_0x40b4bd,_0x2a2811)=>{const _0x431593=_0x2953ed;this[_0x431593(0x146)]=_0x2a2811[_0x431593(0x13d)],this[_0x431593(0x15c)](_0x431593(0x145),{'showDiff':_0x2a2811[_0x431593(0x13d)]});}),this[_0x2953ed(0x14b)][_0x2953ed(0x154)](this[_0x2953ed(0x156)]),this[_0x2953ed(0x147)]=new _0x493227(_0x14350c,{'areActionsDisabled':_0x281123,'showUnchangedParts':!!_0xefd9e4,'availableActions':_0x112cbc,'bodyCollection':_0x182044}),this[_0x2953ed(0x147)][_0x2953ed(0x157)](..._0x502248)['to'](this),this[_0x2953ed(0x147)][_0x2953ed(0x13f)](_0x2953ed(0x13c))['to'](this),this[_0x2953ed(0x14b)][_0x2953ed(0x154)](this[_0x2953ed(0x147)]),this[_0x2953ed(0x14c)]({'tag':_0x2953ed(0x142),'attributes':{'class':['ck',_0x2953ed(0x13e),_0x2953ed(0x14d)]},'children':this[_0x2953ed(0x14b)]});}async[_0x2b9242(0x15a)](_0xf106b){const _0x30d26c=_0x2b9242;await this[_0x30d26c(0x147)][_0x30d26c(0x152)](_0xf106b);}[_0x2b9242(0x15d)](_0x359758){const _0x117b07=_0x2b9242;this[_0x117b07(0x147)][_0x117b07(0x15d)](_0x359758);}[_0x2b9242(0x149)](){const _0x13d85b=_0x2b9242;this[_0x13d85b(0x147)][_0x13d85b(0x149)](),this[_0x13d85b(0x156)]&&(this[_0x13d85b(0x156)][_0x13d85b(0x14a)]=this[_0x13d85b(0x147)][_0x13d85b(0x140)]);}}
23
+ function _0x1c87(){const _0x1bd473=['626502tAUQiz','updateContent','isOn','children','fire','isShowChangesToggleVisible','ck-rounded-corners','48962hkFENs','hasNonEmptyParts','add','createCollection','updateContentParts','5705126AExpOY','toggleSuggestionDisplayMode','2124890fjVjzf','updateSources','ck-ai-suggestion__container','div','delegate','3161370sHdcce','headerView','toggleShowChanges','markAsDone','bind','isTrackChangesOn','setTemplate','12603560MHBSbT','286796vRWmiH','5IwOgLF','areChangesVisible','bodyView','set'];_0x1c87=function(){return _0x1bd473;};return _0x1c87();}const _0x4faed7=_0x3cf8;(function(_0x15b8a5,_0x1cd4b7){const _0x4c7605=_0x3cf8,_0x6d3515=_0x15b8a5();while(!![]){try{const _0x5e0c3f=-parseInt(_0x4c7605(0x9c))/0x1+parseInt(_0x4c7605(0xa3))/0x2+-parseInt(_0x4c7605(0xa8))/0x3+-parseInt(_0x4c7605(0x90))/0x4+parseInt(_0x4c7605(0x91))/0x5*(-parseInt(_0x4c7605(0x95))/0x6)+-parseInt(_0x4c7605(0xa1))/0x7+parseInt(_0x4c7605(0x8f))/0x8;if(_0x5e0c3f===_0x1cd4b7)break;else _0x6d3515['push'](_0x6d3515['shift']());}catch(_0x308be3){_0x6d3515['push'](_0x6d3515['shift']());}}}(_0x1c87,0x84d04));import{View as _0x30abb2}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x111c42}from'./aisuggestionheaderview.js';function _0x3cf8(_0x5dec6c,_0x3feee7){const _0x1c87b8=_0x1c87();return _0x3cf8=function(_0x3cf8f9,_0x13718d){_0x3cf8f9=_0x3cf8f9-0x8e;let _0x7ced07=_0x1c87b8[_0x3cf8f9];return _0x7ced07;},_0x3cf8(_0x5dec6c,_0x3feee7);}import{AISuggestionBodyView as _0x20fa59}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2b5991}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x30abb2{[_0x4faed7(0x93)];[_0x4faed7(0x98)];[_0x4faed7(0xa9)];constructor(_0x206c6c,_0x3c2149,_0x4604e5){const _0x254c04=_0x4faed7;super(_0x206c6c);const {showDiff:_0x210878,areActionsDisabled:_0x4e597e,showUnchangedParts:_0x5af070,availableActions:_0x1d53f1}=_0x3c2149;this[_0x254c04(0x94)](_0x254c04(0xad),!0x1),this[_0x254c04(0x94)](_0x254c04(0x92),!0x1),this[_0x254c04(0x98)]=this[_0x254c04(0x9f)](),this[_0x254c04(0xa9)]=new _0x111c42(_0x206c6c,{'showDiff':_0x210878}),this[_0x254c04(0xa9)]['on'](_0x254c04(0xaa),(_0x213991,_0x5efd70)=>{const _0x516642=_0x254c04;this[_0x516642(0x92)]=_0x5efd70[_0x516642(0x97)],this[_0x516642(0x99)](_0x516642(0xa2),{'showDiff':_0x5efd70[_0x516642(0x97)]});}),this[_0x254c04(0x98)][_0x254c04(0x9e)](this[_0x254c04(0xa9)]),this[_0x254c04(0x93)]=new _0x20fa59(_0x206c6c,{'areActionsDisabled':_0x4e597e,'showUnchangedParts':!!_0x5af070,'availableActions':_0x1d53f1,'bodyCollection':_0x4604e5}),this[_0x254c04(0x93)][_0x254c04(0xa7)](..._0x2b5991)['to'](this),this[_0x254c04(0x93)][_0x254c04(0xac)](_0x254c04(0xad))['to'](this),this[_0x254c04(0x98)][_0x254c04(0x9e)](this[_0x254c04(0x93)]),this[_0x254c04(0x8e)]({'tag':_0x254c04(0xa6),'attributes':{'class':['ck',_0x254c04(0xa5),_0x254c04(0x9b)]},'children':this[_0x254c04(0x98)]});}async[_0x4faed7(0x96)](_0x42dad5){const _0x1239a8=_0x4faed7;await this[_0x1239a8(0x93)][_0x1239a8(0xa0)](_0x42dad5);}[_0x4faed7(0xa4)](_0xcd3e54){const _0x1e10ee=_0x4faed7;this[_0x1e10ee(0x93)][_0x1e10ee(0xa4)](_0xcd3e54);}[_0x4faed7(0xab)](){const _0x4b18a7=_0x4faed7;this[_0x4b18a7(0x93)][_0x4b18a7(0xab)](),this[_0x4b18a7(0xa9)]&&(this[_0x4b18a7(0xa9)][_0x4b18a7(0x9a)]=this[_0x4b18a7(0x93)][_0x4b18a7(0x9d)]);}}