@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x4289e6=_0x42c5;(function(_0x34bf3b,_0x5c0d75){const _0x4055ef=_0x42c5,_0x53bb09=_0x34bf3b();while(!![]){try{const _0x197431=-parseInt(_0x4055ef(0x140))/0x1+parseInt(_0x4055ef(0x150))/0x2+-parseInt(_0x4055ef(0x131))/0x3+parseInt(_0x4055ef(0x16e))/0x4*(-parseInt(_0x4055ef(0x171))/0x5)+parseInt(_0x4055ef(0x155))/0x6+-parseInt(_0x4055ef(0x147))/0x7*(parseInt(_0x4055ef(0x13f))/0x8)+parseInt(_0x4055ef(0x163))/0x9;if(_0x197431===_0x5c0d75)break;else _0x53bb09['push'](_0x53bb09['shift']());}catch(_0x558bd7){_0x53bb09['push'](_0x53bb09['shift']());}}}(_0x4f32,0xbfd2b));import{CKEditorError as _0x220c76,EmitterMixin as _0x19d123,uid as _0x278a49}from'ckeditor5/src/utils.js';function _0x42c5(_0xcaaab2,_0x3e225c){const _0x4f32e9=_0x4f32();return _0x42c5=function(_0x42c56a,_0x94df7e){_0x42c56a=_0x42c56a-0x125;let _0x4daa0d=_0x4f32e9[_0x42c56a];return _0x4daa0d;},_0x42c5(_0xcaaab2,_0x3e225c);}import{AIReply as _0x43518c}from'./aireply.js';function _0x4f32(){const _0x579f56=['notification','callId','result','parse','8hiBsAX','1151241eLnspa','interactionCreated','editor','type','reasoningStarted','text-delta','message-metadata','6351793BNYcCs','data','appendContent','reasoning','currentRequest','destroy','textDelta','webSearchFinished','delegate','1945200XodmBE','_isReasoning','actionCallId','replyContentUpdated','push','4743198bPkEPu','ai-chat-interaction-error','_finalizeInteraction','done','setConversationTitle','content','sendRequest','conversationTitle','length','source','abort','replyCreated','interactionStarted','_handleToolNotificationData','21198564EDZvWr','replyChangeGroupStateUpdated','conversation-title','toolName','interactionFinished','modification-delta','abortController','forEach','error','mcp-tool-notification','event','38104MmVbcV','fire','attributes','60LQhtvJ','resetReasoningState','toolDataReceived','replies','_handleToolResultData','messageId','stop','resetWebSearchState','interactionStopped','mcp-tool-result','text','stopListening','getReply','find','splice','createReply','modification','getDocumentContext','interactionDestroyed','isDestroyed','action-metadata','connector','3479610wGJGqa','isStopped','webSearchStarted','getStream','reasoningFinished','start','sources','web-search','currentReply','_isWebSearching'];_0x4f32=function(){return _0x579f56;};return _0x4f32();}export const AI_MODEL_EVENT_NAMES=[_0x4289e6(0x141),_0x4289e6(0x161),_0x4289e6(0x179),_0x4289e6(0x167),_0x4289e6(0x12d),_0x4289e6(0x160),_0x4289e6(0x153),_0x4289e6(0x164),_0x4289e6(0x159),_0x4289e6(0x133),_0x4289e6(0x14e),_0x4289e6(0x144),_0x4289e6(0x135),_0x4289e6(0x173),_0x4289e6(0x16b)];export class AIInteraction extends _0x19d123(){['id'];[_0x4289e6(0x174)]=[];[_0x4289e6(0x139)];[_0x4289e6(0x176)];[_0x4289e6(0x152)];[_0x4289e6(0x14b)];[_0x4289e6(0x130)];[_0x4289e6(0x132)]=!0x1;[_0x4289e6(0x12e)]=!0x1;[_0x4289e6(0x142)];[_0x4289e6(0x151)]=!0x1;[_0x4289e6(0x13a)]=!0x1;constructor({connector:_0x61fe09,editor:_0x4ad5b0}){const _0x596a7c=_0x4289e6;super(),this['id']=_0x278a49(),this[_0x596a7c(0x130)]=_0x61fe09,this[_0x596a7c(0x132)]=!0x0,this[_0x596a7c(0x142)]=_0x4ad5b0;}async[_0x4289e6(0x136)](){const _0x59bb9d=_0x4289e6,_0x322a7d=[];let _0x1fdacf,_0x49c987,_0x928289;this[_0x59bb9d(0x132)]=!0x1;try{this[_0x59bb9d(0x14b)]=await this[_0x59bb9d(0x15b)](),this[_0x59bb9d(0x16f)](_0x59bb9d(0x161),this);const _0xc0e8e7=await this[_0x59bb9d(0x14b)][_0x59bb9d(0x134)]();for await(const _0x4b6445 of _0xc0e8e7){if(this[_0x59bb9d(0x132)])return;if(_0x59bb9d(0x16b)==_0x4b6445[_0x59bb9d(0x16d)])return void this[_0x59bb9d(0x16f)](_0x59bb9d(0x16b),{'error':new _0x220c76(_0x59bb9d(0x156),this)});switch(_0x4b6445[_0x59bb9d(0x16d)]){case _0x59bb9d(0x146):this[_0x59bb9d(0x176)]=_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x176)];break;case _0x59bb9d(0x12f):this[_0x59bb9d(0x152)]=_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x13c)];break;case _0x59bb9d(0x165):this[_0x59bb9d(0x159)](_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x15c)],!0x0);break;case _0x59bb9d(0x15e):_0x322a7d[_0x59bb9d(0x154)](_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x15e)]);break;case _0x59bb9d(0x138):this[_0x59bb9d(0x13a)]||(this[_0x59bb9d(0x13a)]=!0x0,this[_0x59bb9d(0x16f)](_0x59bb9d(0x133),this));break;case _0x59bb9d(0x14a):this[_0x59bb9d(0x151)]||(this[_0x59bb9d(0x151)]=!0x0,this[_0x59bb9d(0x16f)](_0x59bb9d(0x144),this));break;case _0x59bb9d(0x168):case _0x59bb9d(0x145):this[_0x59bb9d(0x172)](),this[_0x59bb9d(0x178)](),_0x1fdacf=_0x59bb9d(0x168)==_0x4b6445[_0x59bb9d(0x16d)]?_0x59bb9d(0x12b):_0x59bb9d(0x125),_0x49c987=_0x59bb9d(0x168)==_0x4b6445[_0x59bb9d(0x16d)]?_0x4b6445[_0x59bb9d(0x148)]['id']:void 0x0,this[_0x59bb9d(0x139)]&&this[_0x59bb9d(0x139)][_0x59bb9d(0x143)]!=_0x1fdacf&&(this[_0x59bb9d(0x139)][_0x59bb9d(0x158)](),this[_0x59bb9d(0x139)]=void 0x0),this[_0x59bb9d(0x139)]||(this[_0x59bb9d(0x139)]=this[_0x59bb9d(0x12a)]({'type':_0x1fdacf,'interactionId':this['id'],'id':_0x49c987}),_0x59bb9d(0x12b)==_0x1fdacf&&(this[_0x59bb9d(0x139)][_0x59bb9d(0x137)]=_0x322a7d[_0x59bb9d(0x129)](0x0))),this[_0x59bb9d(0x139)][_0x59bb9d(0x149)](_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x14d)]);break;case _0x59bb9d(0x17a):_0x928289=JSON[_0x59bb9d(0x13e)](_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x13d)]),this[_0x59bb9d(0x175)]({'toolName':_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x166)],'data':_0x928289[_0x59bb9d(0x148)],'attributes':_0x928289[_0x59bb9d(0x170)]});break;case _0x59bb9d(0x16c):this[_0x59bb9d(0x162)]({'toolName':_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x166)],'data':_0x4b6445[_0x59bb9d(0x148)][_0x59bb9d(0x148)]});}}}finally{this[_0x59bb9d(0x132)]||(this[_0x59bb9d(0x139)]&&_0x322a7d[_0x59bb9d(0x15d)]>0x0&&(this[_0x59bb9d(0x139)][_0x59bb9d(0x137)]=_0x322a7d[_0x59bb9d(0x129)](0x0)),this[_0x59bb9d(0x157)](),this[_0x59bb9d(0x16f)](_0x59bb9d(0x167),this));}}[_0x4289e6(0x177)](){const _0x770dcd=_0x4289e6;this[_0x770dcd(0x132)]||(this[_0x770dcd(0x157)](),this[_0x770dcd(0x16f)](_0x770dcd(0x179),this));}[_0x4289e6(0x127)](_0x3b6f78){const _0x91d4af=_0x4289e6;return this[_0x91d4af(0x174)][_0x91d4af(0x128)](_0x2a6e8f=>_0x2a6e8f['id']===_0x3b6f78);}[_0x4289e6(0x14c)](){const _0x134460=_0x4289e6;this[_0x134460(0x12e)]||(this[_0x134460(0x177)](),this[_0x134460(0x174)][_0x134460(0x16a)](_0x1e0cea=>_0x1e0cea[_0x134460(0x14c)]()),this[_0x134460(0x174)]=[],this[_0x134460(0x12e)]=!0x0,this[_0x134460(0x16f)](_0x134460(0x12d),this),this[_0x134460(0x126)]());}[_0x4289e6(0x12a)](_0x37aa1b){const _0x38a616=_0x4289e6,_0x49d5b8=new _0x43518c({'editor':this[_0x38a616(0x142)],'documentContextContent':this[_0x38a616(0x12c)]()?.[_0x38a616(0x15a)],..._0x37aa1b});return this[_0x38a616(0x174)][_0x38a616(0x154)](_0x49d5b8),_0x49d5b8[_0x38a616(0x14f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x38a616(0x16f)](_0x38a616(0x160),_0x49d5b8),_0x49d5b8;}[_0x4289e6(0x159)](_0x4dd1d1,_0x2bad60=!0x1){const _0x1c5af6=_0x4289e6;this[_0x1c5af6(0x16f)](_0x1c5af6(0x159),_0x4dd1d1,_0x2bad60);}[_0x4289e6(0x178)](){const _0x1fc6fc=_0x4289e6;this[_0x1fc6fc(0x13a)]&&(this[_0x1fc6fc(0x13a)]=!0x1,this[_0x1fc6fc(0x16f)](_0x1fc6fc(0x14e),this));}[_0x4289e6(0x172)](){const _0x330181=_0x4289e6;this[_0x330181(0x151)]&&(this[_0x330181(0x151)]=!0x1,this[_0x330181(0x16f)](_0x330181(0x135),this));}[_0x4289e6(0x175)](_0xcabd57){const _0x15e082=_0x4289e6;this[_0x15e082(0x16f)](_0x15e082(0x173),{'type':_0x15e082(0x13d),'toolName':_0xcabd57[_0x15e082(0x166)],'data':structuredClone(_0xcabd57[_0x15e082(0x148)]||{}),'attributes':structuredClone(_0xcabd57[_0x15e082(0x170)]||{})},this);}[_0x4289e6(0x162)](_0x3f8217){const _0x152b2c=_0x4289e6;this[_0x152b2c(0x16f)](_0x152b2c(0x173),{'type':_0x152b2c(0x13b),'toolName':_0x3f8217[_0x152b2c(0x166)],'data':structuredClone(_0x3f8217[_0x152b2c(0x148)])},this);}[_0x4289e6(0x157)](){const _0x3e5650=_0x4289e6;this[_0x3e5650(0x132)]=!0x0,this[_0x3e5650(0x14b)]&&this[_0x3e5650(0x14b)][_0x3e5650(0x169)][_0x3e5650(0x15f)](),this[_0x3e5650(0x139)]&&this[_0x3e5650(0x139)][_0x3e5650(0x158)](),this[_0x3e5650(0x14b)]=this[_0x3e5650(0x139)]=void 0x0;}}
23
+ const _0x3bbbca=_0x4e9f;(function(_0x1fb34e,_0x5ac3cc){const _0x2486ec=_0x4e9f,_0x400ba0=_0x1fb34e();while(!![]){try{const _0x41c8da=parseInt(_0x2486ec(0x100))/0x1*(parseInt(_0x2486ec(0xf6))/0x2)+parseInt(_0x2486ec(0xcf))/0x3*(-parseInt(_0x2486ec(0xd1))/0x4)+-parseInt(_0x2486ec(0x101))/0x5*(parseInt(_0x2486ec(0xc7))/0x6)+-parseInt(_0x2486ec(0xda))/0x7+parseInt(_0x2486ec(0x10d))/0x8+parseInt(_0x2486ec(0xfd))/0x9+parseInt(_0x2486ec(0xd9))/0xa*(parseInt(_0x2486ec(0xec))/0xb);if(_0x41c8da===_0x5ac3cc)break;else _0x400ba0['push'](_0x400ba0['shift']());}catch(_0x105ecb){_0x400ba0['push'](_0x400ba0['shift']());}}}(_0x3526,0x3af08));import{CKEditorError as _0x452652,EmitterMixin as _0x3fdf9b,uid as _0xe7dad6}from'ckeditor5/src/utils.js';function _0x3526(){const _0x49258c=['isDestroyed','888363zXXIlG','reasoning','reasoningFinished','10eSenNC','572255MsombX','content','_isWebSearching','callId','splice','text','replies','source','replyCreated','webSearchFinished','abortController','resetWebSearchState','1258856AHGWjX','conversationTitle','webSearchStarted','interactionStarted','data','actionCallId','interactionDestroyed','web-search','interactionCreated','error','start','appendContent','connector','getDocumentContext','replyChangeGroupStateUpdated','modification-delta','ai-chat-interaction-error','currentReply','18Mznmeq','createReply','destroy','stopListening','abort','action-metadata','setConversationTitle','push','51501NlkOuq','parse','96JRxBIG','sources','text-delta','conversation-title','interactionFinished','_finalizeInteraction','interactionStopped','editor','1311230wNVgBx','2984506AqHPch','fire','resetReasoningState','forEach','message-metadata','event','modification','notification','replyContentUpdated','result','toolName','messageId','_handleToolNotificationData','mcp-tool-notification','find','getReply','sendRequest','currentRequest','77OkniqX','_isReasoning','stop','mcp-tool-result','isStopped','length','reasoningStarted','getStream','toolDataReceived','attributes','49842Iktapt','delegate','done','textDelta','type','_handleToolResultData'];_0x3526=function(){return _0x49258c;};return _0x3526();}import{AIReply as _0x235828}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3bbbca(0xbd),_0x3bbbca(0xb8),_0x3bbbca(0xd7),_0x3bbbca(0xd5),_0x3bbbca(0xbb),_0x3bbbca(0x109),_0x3bbbca(0xe2),_0x3bbbca(0xc3),_0x3bbbca(0xcd),_0x3bbbca(0xb7),_0x3bbbca(0x10a),_0x3bbbca(0xf2),_0x3bbbca(0xff),_0x3bbbca(0xf4),_0x3bbbca(0xbe)];function _0x4e9f(_0x423d55,_0x31118f){const _0x352629=_0x3526();return _0x4e9f=function(_0x4e9f83,_0x4c2516){_0x4e9f83=_0x4e9f83-0xb7;let _0x51cb20=_0x352629[_0x4e9f83];return _0x51cb20;},_0x4e9f(_0x423d55,_0x31118f);}export class AIInteraction extends _0x3fdf9b(){['id'];[_0x3bbbca(0x107)]=[];[_0x3bbbca(0xc6)];[_0x3bbbca(0xe5)];[_0x3bbbca(0xba)];[_0x3bbbca(0xeb)];[_0x3bbbca(0xc1)];[_0x3bbbca(0xf0)]=!0x1;[_0x3bbbca(0xfc)]=!0x1;[_0x3bbbca(0xd8)];[_0x3bbbca(0xed)]=!0x1;[_0x3bbbca(0x103)]=!0x1;constructor({connector:_0x349f8e,editor:_0x5380b1}){const _0x4b64cb=_0x3bbbca;super(),this['id']=_0xe7dad6(),this[_0x4b64cb(0xc1)]=_0x349f8e,this[_0x4b64cb(0xf0)]=!0x0,this[_0x4b64cb(0xd8)]=_0x5380b1;}async[_0x3bbbca(0xbf)](){const _0x1d7979=_0x3bbbca,_0x223ddc=[];let _0x69b9ed,_0x426b41,_0x4135b5;this[_0x1d7979(0xf0)]=!0x1;try{this[_0x1d7979(0xeb)]=await this[_0x1d7979(0xea)](),this[_0x1d7979(0xdb)](_0x1d7979(0xb8),this);const _0x6d0dc4=await this[_0x1d7979(0xeb)][_0x1d7979(0xf3)]();for await(const _0x1bba60 of _0x6d0dc4){if(this[_0x1d7979(0xf0)])return;if(_0x1d7979(0xbe)==_0x1bba60[_0x1d7979(0xdf)])return void this[_0x1d7979(0xdb)](_0x1d7979(0xbe),{'error':new _0x452652(_0x1d7979(0xc5),this)});switch(_0x1bba60[_0x1d7979(0xdf)]){case _0x1d7979(0xde):this[_0x1d7979(0xe5)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe5)];break;case _0x1d7979(0xcc):this[_0x1d7979(0xba)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x104)];break;case _0x1d7979(0xd4):this[_0x1d7979(0xcd)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x10e)],!0x0);break;case _0x1d7979(0x108):_0x223ddc[_0x1d7979(0xce)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x108)]);break;case _0x1d7979(0xbc):this[_0x1d7979(0x103)]||(this[_0x1d7979(0x103)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xb7),this));break;case _0x1d7979(0xfe):this[_0x1d7979(0xed)]||(this[_0x1d7979(0xed)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xf2),this));break;case _0x1d7979(0xc4):case _0x1d7979(0xd3):this[_0x1d7979(0xdc)](),this[_0x1d7979(0x10c)](),_0x69b9ed=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1d7979(0xe0):_0x1d7979(0x106),_0x426b41=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1bba60[_0x1d7979(0xb9)]['id']:void 0x0,this[_0x1d7979(0xc6)]&&this[_0x1d7979(0xc6)][_0x1d7979(0xfa)]!=_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xf8)](),this[_0x1d7979(0xc6)]=void 0x0),this[_0x1d7979(0xc6)]||(this[_0x1d7979(0xc6)]=this[_0x1d7979(0xc8)]({'type':_0x69b9ed,'interactionId':this['id'],'id':_0x426b41}),_0x1d7979(0xe0)==_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0))),this[_0x1d7979(0xc6)][_0x1d7979(0xc0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xf9)]);break;case _0x1d7979(0xef):_0x4135b5=JSON[_0x1d7979(0xd0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe3)]),this[_0x1d7979(0xfb)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x4135b5[_0x1d7979(0xb9)],'attributes':_0x4135b5[_0x1d7979(0xf5)]});break;case _0x1d7979(0xe7):this[_0x1d7979(0xe6)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xb9)]});}}}finally{this[_0x1d7979(0xf0)]||(this[_0x1d7979(0xc6)]&&_0x223ddc[_0x1d7979(0xf1)]>0x0&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0)),this[_0x1d7979(0xd6)](),this[_0x1d7979(0xdb)](_0x1d7979(0xd5),this));}}[_0x3bbbca(0xee)](){const _0x4bd502=_0x3bbbca;this[_0x4bd502(0xf0)]||(this[_0x4bd502(0xd6)](),this[_0x4bd502(0xdb)](_0x4bd502(0xd7),this));}[_0x3bbbca(0xe9)](_0x7995b5){const _0x153350=_0x3bbbca;return this[_0x153350(0x107)][_0x153350(0xe8)](_0x2b6081=>_0x2b6081['id']===_0x7995b5);}[_0x3bbbca(0xc9)](){const _0x4d3381=_0x3bbbca;this[_0x4d3381(0xfc)]||(this[_0x4d3381(0xee)](),this[_0x4d3381(0x107)][_0x4d3381(0xdd)](_0x9e27d5=>_0x9e27d5[_0x4d3381(0xc9)]()),this[_0x4d3381(0x107)]=[],this[_0x4d3381(0xfc)]=!0x0,this[_0x4d3381(0xdb)](_0x4d3381(0xbb),this),this[_0x4d3381(0xca)]());}[_0x3bbbca(0xc8)](_0x3f0cc6){const _0xe9e2ee=_0x3bbbca,_0x253e71=new _0x235828({'editor':this[_0xe9e2ee(0xd8)],'documentContextContent':this[_0xe9e2ee(0xc2)]()?.[_0xe9e2ee(0x102)],..._0x3f0cc6});return this[_0xe9e2ee(0x107)][_0xe9e2ee(0xce)](_0x253e71),_0x253e71[_0xe9e2ee(0xf7)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe9e2ee(0xdb)](_0xe9e2ee(0x109),_0x253e71),_0x253e71;}[_0x3bbbca(0xcd)](_0xb1e4a,_0x52c7b3=!0x1){const _0x5c856c=_0x3bbbca;this[_0x5c856c(0xdb)](_0x5c856c(0xcd),_0xb1e4a,_0x52c7b3);}[_0x3bbbca(0x10c)](){const _0x46e9b9=_0x3bbbca;this[_0x46e9b9(0x103)]&&(this[_0x46e9b9(0x103)]=!0x1,this[_0x46e9b9(0xdb)](_0x46e9b9(0x10a),this));}[_0x3bbbca(0xdc)](){const _0x3d3e24=_0x3bbbca;this[_0x3d3e24(0xed)]&&(this[_0x3d3e24(0xed)]=!0x1,this[_0x3d3e24(0xdb)](_0x3d3e24(0xff),this));}[_0x3bbbca(0xfb)](_0x525322){const _0x21f596=_0x3bbbca;this[_0x21f596(0xdb)](_0x21f596(0xf4),{'type':_0x21f596(0xe3),'toolName':_0x525322[_0x21f596(0xe4)],'data':structuredClone(_0x525322[_0x21f596(0xb9)]||{}),'attributes':structuredClone(_0x525322[_0x21f596(0xf5)]||{})},this);}[_0x3bbbca(0xe6)](_0x54e687){const _0x3b700c=_0x3bbbca;this[_0x3b700c(0xdb)](_0x3b700c(0xf4),{'type':_0x3b700c(0xe1),'toolName':_0x54e687[_0x3b700c(0xe4)],'data':structuredClone(_0x54e687[_0x3b700c(0xb9)])},this);}[_0x3bbbca(0xd6)](){const _0x5b3407=_0x3bbbca;this[_0x5b3407(0xf0)]=!0x0,this[_0x5b3407(0xeb)]&&this[_0x5b3407(0xeb)][_0x5b3407(0x10b)][_0x5b3407(0xcb)](),this[_0x5b3407(0xc6)]&&this[_0x5b3407(0xc6)][_0x5b3407(0xf8)](),this[_0x5b3407(0xeb)]=this[_0x5b3407(0xc6)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3461b9=_0x37d0;(function(_0x50951d,_0x5112ad){const _0x4b630f=_0x37d0,_0x3b14aa=_0x50951d();while(!![]){try{const _0x3a63a2=parseInt(_0x4b630f(0x214))/0x1*(parseInt(_0x4b630f(0x216))/0x2)+parseInt(_0x4b630f(0x1f6))/0x3*(-parseInt(_0x4b630f(0x226))/0x4)+-parseInt(_0x4b630f(0x217))/0x5+-parseInt(_0x4b630f(0x1fa))/0x6+parseInt(_0x4b630f(0x1f8))/0x7*(parseInt(_0x4b630f(0x1fd))/0x8)+-parseInt(_0x4b630f(0x201))/0x9+parseInt(_0x4b630f(0x227))/0xa;if(_0x3a63a2===_0x5112ad)break;else _0x3b14aa['push'](_0x3b14aa['shift']());}catch(_0x32ac36){_0x3b14aa['push'](_0x3b14aa['shift']());}}}(_0x2ac4,0x7e713));import{EmitterMixin as _0x57be17,logWarning as _0x2ddc76,logError as _0x4a184f}from'ckeditor5/src/utils.js';function _0x2ac4(){const _0x383133=['recommended','name','agent','17555GwCzow','provider','34XmypcD','4866105ZglfaL','getModels','_retrieveModels','length','_config','uiLanguage','map','getAll','find','_availableModels','ai-chat-model-id-unrecognized','auto','add','_locale','filter','17816dlsSHk','23213580qhmTVc','_getModelById','ai-models-unable-to-retrieve','579DtytmH','getModel','4627SjqMMT','_modelList','4731990igSXbM','isAvailable','defaultModelId','7928cGVsVy','_isMatchingFilter','ai-chat-default-model-id-unrecognized','some','1218861Omkpwv','toLocaleLowerCase','has','startsWith','getAvailableModels','_defaultModelId','AI_MODEL_NAME_AUTO','items','_connector','_modelsRequest','displayedModels','_filterModels','push','list','string','getDefault'];_0x2ac4=function(){return _0x383133;};return _0x2ac4();}import{getTranslation as _0x479504}from'../utils/common-translations.js';export class AIModels extends _0x57be17(){[_0x3461b9(0x209)];[_0x3461b9(0x21b)];[_0x3461b9(0x224)];[_0x3461b9(0x1f9)]=[];[_0x3461b9(0x20a)]=null;constructor({connector:_0x597525,config:_0x3d7366,locale:_0x5a1af8}){const _0x5b0431=_0x3461b9;super(),this[_0x5b0431(0x209)]=_0x597525,this[_0x5b0431(0x21b)]=_0x3d7366,this[_0x5b0431(0x224)]=_0x5a1af8;}get[_0x3461b9(0x220)](){const _0x24f9a3=_0x3461b9;return this[_0x24f9a3(0x21b)]?.[_0x24f9a3(0x20b)];}get[_0x3461b9(0x206)](){const _0x162e7b=_0x3461b9;return this[_0x162e7b(0x21b)]?.[_0x162e7b(0x1fc)];}async[_0x3461b9(0x21e)](){const _0x4fea0d=_0x3461b9;return this[_0x4fea0d(0x20a)]||(this[_0x4fea0d(0x20a)]=this[_0x4fea0d(0x219)]()),this[_0x4fea0d(0x20a)];}async[_0x3461b9(0x205)](){const _0x1d164d=_0x3461b9,_0x27878a=await this[_0x1d164d(0x21e)]();let _0x193ba2;return _0x193ba2=this[_0x1d164d(0x220)]?this[_0x1d164d(0x20c)](_0x27878a,this[_0x1d164d(0x220)]):_0x27878a[_0x1d164d(0x225)](_0x45fb17=>_0x45fb17[_0x1d164d(0x211)]),_0x193ba2;}async[_0x3461b9(0x1f7)](_0x2753ac){const _0x3d8c15=_0x3461b9,_0x35e489=await this[_0x3d8c15(0x21e)]();if(!_0x35e489[_0x3d8c15(0x21a)])return null;if(_0x2753ac){const _0x24115a=this[_0x3d8c15(0x1f4)](_0x35e489,_0x2753ac);if(_0x24115a)return _0x24115a;_0x2ddc76(_0x3d8c15(0x221),{'modelId':_0x2753ac,'fallBackModelId':this[_0x3d8c15(0x206)]});}return this[_0x3d8c15(0x210)]();}async[_0x3461b9(0x210)](){const _0x2cf4b9=_0x3461b9,_0x46024a=await this[_0x2cf4b9(0x205)]();if(!_0x46024a[_0x2cf4b9(0x21a)])return null;if(this[_0x2cf4b9(0x206)]){const _0x431771=this[_0x2cf4b9(0x1f4)](_0x46024a,this[_0x2cf4b9(0x206)]);if(_0x431771)return _0x431771;_0x2ddc76(_0x2cf4b9(0x1ff),{'defaultModelId':this[_0x2cf4b9(0x206)],'fallBackModelId':_0x46024a[0x0]['id']});}return _0x46024a[0x0];}async[_0x3461b9(0x1fb)](_0x5ab4b2){const _0x4a8136=_0x3461b9;return(await this[_0x4a8136(0x205)]())[_0x4a8136(0x200)](_0x542250=>_0x542250[_0x4a8136(0x212)]===_0x5ab4b2[_0x4a8136(0x212)]&&_0x542250[_0x4a8136(0x215)]===_0x5ab4b2[_0x4a8136(0x215)]);}async[_0x3461b9(0x219)](){const _0x48e6b8=_0x3461b9;if(!this[_0x48e6b8(0x1f9)][_0x48e6b8(0x21a)])try{const _0x1fb341=this[_0x48e6b8(0x224)][_0x48e6b8(0x21c)]||'en',_0x366619=this[_0x48e6b8(0x209)][_0x48e6b8(0x218)](_0x1fb341),_0x3e637a=await _0x366619[_0x48e6b8(0x20e)]();this[_0x48e6b8(0x1f9)]=_0x3e637a[_0x48e6b8(0x208)][_0x48e6b8(0x21d)](_0x50fd7a=>Mi(_0x50fd7a)?{..._0x50fd7a,'name':_0x479504(this[_0x48e6b8(0x224)],_0x48e6b8(0x207))}:_0x50fd7a);}catch(_0x2d2e6f){throw _0x4a184f(_0x48e6b8(0x1f5),{'error':_0x2d2e6f}),_0x2d2e6f;}return[...this[_0x48e6b8(0x1f9)]];}[_0x3461b9(0x20c)](_0x5996aa,_0x5dc4cb){const _0x14eb91=_0x3461b9;let _0x2a410c;if(_0x5dc4cb){_0x2a410c=[];const _0x1062ec=new Set(),_0x40f471=_0x14eb91(0x20f)==typeof _0x5dc4cb?[_0x5dc4cb[_0x14eb91(0x202)]()]:_0x5dc4cb[_0x14eb91(0x21d)](_0x13748d=>_0x13748d[_0x14eb91(0x202)]());for(const _0x11abaa of _0x40f471)for(const _0x55f40f of _0x5996aa)!_0x1062ec[_0x14eb91(0x203)](_0x55f40f['id'])&&this[_0x14eb91(0x1fe)](_0x55f40f,_0x11abaa)&&(_0x2a410c[_0x14eb91(0x20d)](_0x55f40f),_0x1062ec[_0x14eb91(0x223)](_0x55f40f['id']));}else _0x2a410c=_0x5996aa;return _0x2a410c;}[_0x3461b9(0x1fe)](_0x58ce9f,_0x33e12e){const _0x195bf5=_0x3461b9,_0x1ee8aa=_0x58ce9f['id'][_0x195bf5(0x202)](),_0x19b38d=_0x58ce9f[_0x195bf5(0x212)][_0x195bf5(0x202)](),_0x1c6abf=_0x58ce9f[_0x195bf5(0x215)][_0x195bf5(0x202)]();return _0x1ee8aa===_0x33e12e||_0x19b38d===_0x33e12e||Mi(_0x58ce9f)&&_0x195bf5(0x222)===_0x33e12e||_0x1c6abf===_0x33e12e||_0x1ee8aa[_0x195bf5(0x204)](_0x33e12e);}[_0x3461b9(0x1f4)](_0x2bd955,_0x3d5b93){const _0x53eded=_0x3461b9;return _0x2bd955[_0x53eded(0x21f)](_0xaf351d=>Mi(_0xaf351d)&&_0x53eded(0x222)===_0x3d5b93?_0xaf351d:_0xaf351d['id']===_0x3d5b93)||null;}}function _0x37d0(_0x367ee8,_0x19d4af){const _0x2ac49f=_0x2ac4();return _0x37d0=function(_0x37d0b5,_0x57dd6c){_0x37d0b5=_0x37d0b5-0x1f4;let _0x2fa6c9=_0x2ac49f[_0x37d0b5];return _0x2fa6c9;},_0x37d0(_0x367ee8,_0x19d4af);}function Mi(_0xfc023a){const _0x48df76=_0x3461b9;return _0xfc023a['id'][_0x48df76(0x204)](_0x48df76(0x213));}
23
+ const _0x3263fb=_0x210c;(function(_0x22d58,_0x375b23){const _0x4c371d=_0x210c,_0x4b37a9=_0x22d58();while(!![]){try{const _0x33d42b=-parseInt(_0x4c371d(0x196))/0x1+-parseInt(_0x4c371d(0x18d))/0x2*(parseInt(_0x4c371d(0x1a1))/0x3)+parseInt(_0x4c371d(0x19b))/0x4*(parseInt(_0x4c371d(0x197))/0x5)+parseInt(_0x4c371d(0x1a6))/0x6+parseInt(_0x4c371d(0x193))/0x7+parseInt(_0x4c371d(0x199))/0x8*(-parseInt(_0x4c371d(0x194))/0x9)+parseInt(_0x4c371d(0x186))/0xa;if(_0x33d42b===_0x375b23)break;else _0x4b37a9['push'](_0x4b37a9['shift']());}catch(_0x2430a0){_0x4b37a9['push'](_0x4b37a9['shift']());}}}(_0x3b05,0x8b078));function _0x210c(_0x42c1ea,_0x52d307){const _0x3b057f=_0x3b05();return _0x210c=function(_0x210cb7,_0x59947f){_0x210cb7=_0x210cb7-0x173;let _0x15d83b=_0x3b057f[_0x210cb7];return _0x15d83b;},_0x210c(_0x42c1ea,_0x52d307);}import{EmitterMixin as _0x47fefe,logWarning as _0x22f5b6,logError as _0x566aba}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e4ede}from'../utils/common-translations.js';export class AIModels extends _0x47fefe(){[_0x3263fb(0x18a)];[_0x3263fb(0x17c)];[_0x3263fb(0x173)];[_0x3263fb(0x17e)]=[];[_0x3263fb(0x184)]=null;constructor({connector:_0x52bf00,config:_0x42b7bb,locale:_0x12dd25}){const _0x3417e9=_0x3263fb;super(),this[_0x3417e9(0x18a)]=_0x52bf00,this[_0x3417e9(0x17c)]=_0x42b7bb,this[_0x3417e9(0x173)]=_0x12dd25;}get[_0x3263fb(0x182)](){const _0x5a5ba4=_0x3263fb;return this[_0x5a5ba4(0x17c)]?.[_0x5a5ba4(0x180)];}get[_0x3263fb(0x19c)](){const _0x5e551d=_0x3263fb;return this[_0x5e551d(0x17c)]?.[_0x5e551d(0x192)];}async[_0x3263fb(0x1a3)](){const _0x319a82=_0x3263fb;return this[_0x319a82(0x184)]||(this[_0x319a82(0x184)]=this[_0x319a82(0x17b)]()),this[_0x319a82(0x184)];}async[_0x3263fb(0x18c)](){const _0xdaf700=_0x3263fb,_0x5155f7=await this[_0xdaf700(0x1a3)]();let _0x13d8d2;return _0x13d8d2=this[_0xdaf700(0x182)]?this[_0xdaf700(0x18e)](_0x5155f7,this[_0xdaf700(0x182)]):_0x5155f7[_0xdaf700(0x19e)](_0x3dfcfe=>_0x3dfcfe[_0xdaf700(0x1a4)]),_0x13d8d2;}async[_0x3263fb(0x175)](_0x550f80){const _0x93ea98=_0x3263fb,_0x3608cb=await this[_0x93ea98(0x1a3)]();if(!_0x3608cb[_0x93ea98(0x195)])return null;if(_0x550f80){const _0x44c189=this[_0x93ea98(0x189)](_0x3608cb,_0x550f80);if(_0x44c189)return _0x44c189;_0x22f5b6(_0x93ea98(0x18b),{'modelId':_0x550f80,'fallBackModelId':this[_0x93ea98(0x19c)]});}return this[_0x93ea98(0x1a0)]();}async[_0x3263fb(0x1a0)](){const _0x139984=_0x3263fb,_0xf8c862=await this[_0x139984(0x18c)]();if(!_0xf8c862[_0x139984(0x195)])return null;if(this[_0x139984(0x19c)]){const _0x31e442=this[_0x139984(0x189)](_0xf8c862,this[_0x139984(0x19c)]);if(_0x31e442)return _0x31e442;_0x22f5b6(_0x139984(0x174),{'defaultModelId':this[_0x139984(0x19c)],'fallBackModelId':_0xf8c862[0x0]['id']});}return _0xf8c862[0x0];}async[_0x3263fb(0x17a)](_0x156969){const _0x4b0017=_0x3263fb;return(await this[_0x4b0017(0x18c)]())[_0x4b0017(0x17d)](_0x18786b=>_0x18786b[_0x4b0017(0x190)]===_0x156969[_0x4b0017(0x190)]&&_0x18786b[_0x4b0017(0x179)]===_0x156969[_0x4b0017(0x179)]);}async[_0x3263fb(0x17b)](){const _0x2312ad=_0x3263fb;if(!this[_0x2312ad(0x17e)][_0x2312ad(0x195)])try{const _0x404f18=this[_0x2312ad(0x173)][_0x2312ad(0x18f)]||'en',_0x4c915a=this[_0x2312ad(0x18a)][_0x2312ad(0x177)](_0x404f18),_0x1f2336=await _0x4c915a[_0x2312ad(0x1a2)]();this[_0x2312ad(0x17e)]=_0x1f2336[_0x2312ad(0x19a)][_0x2312ad(0x183)](_0x1535a6=>ze(_0x1535a6)?{..._0x1535a6,'name':_0x3e4ede(this[_0x2312ad(0x173)],_0x2312ad(0x198))}:_0x1535a6);}catch(_0x14f0e9){throw _0x566aba(_0x2312ad(0x176),{'error':_0x14f0e9}),_0x14f0e9;}return[...this[_0x2312ad(0x17e)]];}[_0x3263fb(0x18e)](_0x28c869,_0x2ed42c){const _0x1928c2=_0x3263fb;let _0x4128aa;if(_0x2ed42c){_0x4128aa=[];const _0x34c85c=new Set(),_0x1c505b=_0x1928c2(0x178)==typeof _0x2ed42c?[_0x2ed42c[_0x1928c2(0x185)]()]:_0x2ed42c[_0x1928c2(0x183)](_0x18f1cc=>_0x18f1cc[_0x1928c2(0x185)]());for(const _0x2e571c of _0x1c505b)for(const _0x58ae37 of _0x28c869)!_0x34c85c[_0x1928c2(0x17f)](_0x58ae37['id'])&&this[_0x1928c2(0x19d)](_0x58ae37,_0x2e571c)&&(_0x4128aa[_0x1928c2(0x187)](_0x58ae37),_0x34c85c[_0x1928c2(0x191)](_0x58ae37['id']));}else _0x4128aa=_0x28c869;return _0x4128aa;}[_0x3263fb(0x19d)](_0x20646e,_0xc8694c){const _0xdbdcba=_0x3263fb,_0x386fc0=_0x20646e['id'][_0xdbdcba(0x185)](),_0x545355=_0x20646e[_0xdbdcba(0x190)][_0xdbdcba(0x185)](),_0x4d9099=_0x20646e[_0xdbdcba(0x179)][_0xdbdcba(0x185)]();return _0x386fc0===_0xc8694c||_0x545355===_0xc8694c||ze(_0x20646e)&&_0xdbdcba(0x181)===_0xc8694c||_0x4d9099===_0xc8694c||_0x386fc0[_0xdbdcba(0x1a5)](_0xc8694c);}[_0x3263fb(0x189)](_0x4a1bce,_0x3e36c6){const _0x588292=_0x3263fb;return _0x4a1bce[_0x588292(0x19f)](_0x4b212d=>ze(_0x4b212d)&&_0x588292(0x181)===_0x3e36c6?_0x4b212d:_0x4b212d['id']===_0x3e36c6)||null;}}function _0x3b05(){const _0x3fea71=['getModel','ai-models-unable-to-retrieve','getModels','string','provider','isAvailable','_retrieveModels','_config','some','_modelList','has','displayedModels','auto','_availableModels','map','_modelsRequest','toLocaleLowerCase','8606000XIQSLZ','push','agent','_getModelById','_connector','ai-chat-model-id-unrecognized','getAvailableModels','1877218TdMHly','_filterModels','uiLanguage','name','add','defaultModelId','4591699ceIXrF','1683lmmLSR','length','364747ioCYJb','5FvCbpq','AI_MODEL_NAME_AUTO','44080SPAwDl','items','2637960UGugBr','_defaultModelId','_isMatchingFilter','filter','find','getDefault','3NmweiD','list','getAll','recommended','startsWith','4362858FtCTKP','_locale','ai-chat-default-model-id-unrecognized'];_0x3b05=function(){return _0x3fea71;};return _0x3b05();}function ze(_0x71220c){const _0x30d1d2=_0x3263fb;return _0x71220c['id'][_0x30d1d2(0x1a5)](_0x30d1d2(0x188));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa043e6=_0x5699;(function(_0x549a53,_0x4a5b84){const _0x5b6abb=_0x5699,_0x578cdd=_0x549a53();while(!![]){try{const _0x17c6da=parseInt(_0x5b6abb(0x1a3))/0x1*(parseInt(_0x5b6abb(0x1ba))/0x2)+-parseInt(_0x5b6abb(0x1e5))/0x3*(-parseInt(_0x5b6abb(0x1ea))/0x4)+-parseInt(_0x5b6abb(0x1eb))/0x5+-parseInt(_0x5b6abb(0x1cc))/0x6+-parseInt(_0x5b6abb(0x1a7))/0x7*(-parseInt(_0x5b6abb(0x1ab))/0x8)+-parseInt(_0x5b6abb(0x1d1))/0x9+parseInt(_0x5b6abb(0x1a0))/0xa*(parseInt(_0x5b6abb(0x1b0))/0xb);if(_0x17c6da===_0x4a5b84)break;else _0x578cdd['push'](_0x578cdd['shift']());}catch(_0x236b7a){_0x578cdd['push'](_0x578cdd['shift']());}}}(_0x4bd6,0x4c4ff));import{CKEditorError as _0x13bf89,ObservableMixin as _0x30607b,uid as _0x3a4970}from'ckeditor5/src/utils.js';import{Element as _0x158042,findAll as _0x192198,getAttribute as _0x4e3334,getParents as _0x95013d,Document as _0x10b70b,parse as _0x2a9ea2,Text as _0x19117a}from'../utils/htmlparser.js';import{AIResponseParser as _0x50a6e8}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ec513}from'../pipeline/airesponseapplier.js';function _0x5699(_0x126393,_0x1365a1){const _0x4bd656=_0x4bd6();return _0x5699=function(_0x5699e9,_0x24fae1){_0x5699e9=_0x5699e9-0x19d;let _0x261d7f=_0x4bd656[_0x5699e9];return _0x261d7f;},_0x5699(_0x126393,_0x1365a1);}import{getSuggestionPartsFromReply as _0x25c559}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x1171ee}from'../utils/common-translations.js';import{cloneDeep as _0x5311a0}from'es-toolkit';function _0x4bd6(){const _0x34ad60=['fire','set','locale','setChangeGroupState','ai-get-editor-from-context-no-editor','cachedSuggestionContentParts','index','includes','appendContent','parseAndNormalizeHTML','splice','AI_SUGGESTION_CONTENT_PART_REMOVED','areActionsDisabled','3YEppqg','data-id','stopListening','forEach','replyChangeGroupStateUpdated','2379752RhVOrI','1030865JJQapV','getContentParts','span','context','new','unshift','1115430RIVtgP','data-unstable','withoutDiff','6700CYvSdn','modified','documentContextContent','cloneNode','2842091RFSapV','find','_getCachedContentParts','modifiedNodeIds','8fUxyzq','parsedMergedContent','indexOf','filter','updateChangeGroups','11psPjEy','changeGroups','state','convertMarkdownToHTML','aiResponseParser','isDone','onContentChange','aiResponseApplier','modification','color:\x20#808080;\x20font-style:\x20italic','98pUAvHA','destroy','replyContentUpdated','withDiff','removedNodeIds','length','content','done','previousSibling','ai-reply-get-content-parts-group-not-found','node','push','parsedContent','changes','map','sources','pending','removed','2981916SLvsSR','type','editor','merge','nextSibling','3825540zCpvNy','newNodeIds','_setCachedContentParts','interactionId','_getDifferentChangeGroups','change:content','every'];_0x4bd6=function(){return _0x34ad60;};return _0x4bd6();}export class AIReply extends _0x30607b(){['id'];[_0xa043e6(0x1d4)];[_0xa043e6(0x1cd)];[_0xa043e6(0x1c9)]=[];[_0xa043e6(0x1c6)]=new _0x10b70b([]);[_0xa043e6(0x1ac)]=new _0x10b70b([]);[_0xa043e6(0x1b1)]=[];[_0xa043e6(0x1e4)]=!0x1;[_0xa043e6(0x1a5)];[_0xa043e6(0x1b4)];[_0xa043e6(0x1b7)];[_0xa043e6(0x1ce)];[_0xa043e6(0x1dd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2bb556,content:_0x50bc97='',isDone:_0x47e95e=!0x1,interactionId:_0x35dd5d,areActionsDisabled:_0x40fd67,documentContextContent:_0x3713ca,editor:_0x572d56,id:_0x552cef}){const _0x56a097=_0xa043e6;super(),this['id']=_0x552cef||_0x3a4970(),this[_0x56a097(0x1d4)]=_0x35dd5d,this[_0x56a097(0x1cd)]=_0x2bb556,this[_0x56a097(0x1e4)]=!!_0x40fd67,this[_0x56a097(0x1ce)]=_0x572d56,this[_0x56a097(0x1b4)]=new _0x50a6e8(),this[_0x56a097(0x1b7)]=new _0x1ec513(),this[_0x56a097(0x1a5)]=_0x2a9ea2(_0x3713ca||''),this[_0x56a097(0x1d9)](_0x56a097(0x1b5),_0x47e95e),this['on'](_0x56a097(0x1d6),()=>{const _0x4e5762=_0x56a097;this[_0x4e5762(0x1b6)]();}),this[_0x56a097(0x1d9)](_0x56a097(0x1c0),_0x50bc97);}[_0xa043e6(0x1e0)](_0x1726ee){const _0x936a3a=_0xa043e6;this[_0x936a3a(0x1d9)](_0x936a3a(0x1c0),this[_0x936a3a(0x1c0)]+_0x1726ee);}[_0xa043e6(0x1c1)](){const _0x57ce83=_0xa043e6;this[_0x57ce83(0x1b5)]||(this[_0x57ce83(0x1d9)](_0x57ce83(0x1b5),!0x0),this[_0x57ce83(0x1b6)]());}[_0xa043e6(0x1bb)](){const _0x48c805=_0xa043e6;this[_0x48c805(0x1e7)]();}[_0xa043e6(0x1db)](_0x382366,_0x99a584){const _0x45e54=_0xa043e6;this[_0x45e54(0x1b1)][_0x382366][_0x45e54(0x1b2)]=_0x99a584,this[_0x45e54(0x1d8)](_0x45e54(0x1e9),{'reply':this,'index':_0x382366,'state':_0x99a584});}[_0xa043e6(0x1ec)]({showDiff:_0x94b84d,groupIndex:_0x5f32e7}){const _0x553b87=_0xa043e6;if(!this[_0x553b87(0x1ce)])throw new _0x13bf89(_0x553b87(0x1dc),null,{'aiReply':this});const _0x4a7c32=this[_0x553b87(0x1a9)](_0x94b84d,_0x5f32e7);if(_0x4a7c32)return _0x4a7c32;let _0x42bee5=[];if(void 0x0===_0x5f32e7)_0x42bee5=this[_0x553b87(0x1b1)];else{const _0x5e62d2=this[_0x553b87(0x1b1)][_0x553b87(0x1a8)](({index:_0x7e9bd8})=>_0x7e9bd8===_0x5f32e7);if(!_0x5e62d2)throw new _0x13bf89(_0x553b87(0x1c3),null,{'aiReply':this,'groupIndex':_0x5f32e7});_0x42bee5=[_0x5e62d2];}const _0x4c2fa3=_0x25c559({'editor':this[_0x553b87(0x1ce)],'showDiff':_0x94b84d,'changeGroups':_0x42bee5,'documentContextContent':this[_0x553b87(0x1a5)]});return this[_0x553b87(0x1d3)](_0x94b84d,_0x4c2fa3),_0x4c2fa3;}[_0xa043e6(0x1a9)](_0x4a68f9,_0x3c6a26){const _0x3cd915=_0xa043e6,_0x27488a=_0x4a68f9?_0x3cd915(0x1bd):_0x3cd915(0x1a2);if(!this[_0x3cd915(0x1dd)][_0x27488a][_0x3cd915(0x1bf)])return null;const _0xb6be1=this[_0x3cd915(0x1dd)][_0x27488a];if(void 0x0===_0x3c6a26)return _0xb6be1[_0x3cd915(0x1bf)]>0x0&&_0xb6be1[_0x3cd915(0x1bf)]!==this[_0x3cd915(0x1b1)][_0x3cd915(0x1bf)]?(this[_0x3cd915(0x1d3)](_0x4a68f9,null),null):_0x5311a0(_0xb6be1);{const _0x32dff9=_0xb6be1[_0x3cd915(0x1a8)](({index:_0x44438d})=>_0x44438d===_0x3c6a26);if(_0x32dff9)return[_0x5311a0(_0x32dff9)];}return null;}[_0xa043e6(0x1d3)](_0x4b620b,_0x4f8a1a){const _0xcf8aa5=_0xa043e6,_0x2b8e63=_0x4b620b?_0xcf8aa5(0x1bd):_0xcf8aa5(0x1a2);_0x4f8a1a?_0x4f8a1a[_0xcf8aa5(0x1e8)](_0x3d76e2=>{const _0x2108f7=_0xcf8aa5,_0x13d0e2=this[_0x2108f7(0x1dd)][_0x2b8e63],_0x18183e=_0x13d0e2[_0x2108f7(0x1a8)](({index:_0x5adec6})=>_0x5adec6===_0x3d76e2[_0x2108f7(0x1de)]);if(_0x18183e){const _0x2f9f35=_0x13d0e2[_0x2108f7(0x1ad)](_0x18183e);_0x13d0e2[_0x2108f7(0x1e2)](_0x2f9f35,0x1,_0x3d76e2);}else _0x13d0e2[_0x2108f7(0x1c5)](_0x3d76e2);}):this[_0xcf8aa5(0x1dd)][_0x2b8e63][_0xcf8aa5(0x1bf)]=0x0;}[_0xa043e6(0x1b6)](){const _0x106129=_0xa043e6;if(_0x106129(0x1b8)===this[_0x106129(0x1cd)]){this[_0x106129(0x1c6)]=this[_0x106129(0x1b4)][_0x106129(0x1e1)](this[_0x106129(0x1c0)]);const _0x124392=this[_0x106129(0x1b1)];this[_0x106129(0x1af)]();const _0x3489d4=this[_0x106129(0x1d5)](_0x124392,this[_0x106129(0x1b1)]);(_0x3489d4[_0x106129(0x1bf)]||this[_0x106129(0x1b5)])&&(this[_0x106129(0x1d8)](_0x106129(0x1bc),this,_0x3489d4),this[_0x106129(0x1dd)][_0x106129(0x1bd)][_0x106129(0x1bf)]=this[_0x106129(0x1dd)][_0x106129(0x1a2)][_0x106129(0x1bf)]=0x0);}else this[_0x106129(0x1c6)]=this[_0x106129(0x1b4)][_0x106129(0x1b3)](this[_0x106129(0x1c0)]),this[_0x106129(0x1d8)](_0x106129(0x1bc),this);}[_0xa043e6(0x1d5)](_0x46130d,_0x392fc5){const _0x2f2fb5=_0xa043e6,_0x2f518d=[];for(const _0x23826e of _0x392fc5){const _0x4b6baa=_0x46130d[_0x23826e[_0x2f2fb5(0x1de)]];_0x4b6baa?_0x4b6baa[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1bf)]!==_0x23826e[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1bf)]?_0x2f518d[_0x2f2fb5(0x1c5)](_0x23826e):_0x4b6baa[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1e8)]((_0xa5dc5,_0x3f9617)=>{const _0x14583d=_0x2f2fb5,_0x163c03=_0x23826e[_0x14583d(0x1c7)][_0x3f9617];_0xa5dc5['id']!==_0x163c03['id']&&_0x2f518d[_0x14583d(0x1c5)](_0x23826e);}):_0x2f518d[_0x2f2fb5(0x1c5)](_0x23826e);}return _0x2f518d;}[_0xa043e6(0x1af)](){const _0xa3a849=_0xa043e6,_0x55637e=new _0x158042('p',{},[new _0x158042(_0xa3a849(0x1ed),{'style':_0xa3a849(0x1b9)},[new _0x19117a(_0x1171ee(this[_0xa3a849(0x1ce)][_0xa3a849(0x1da)],_0xa3a849(0x1e3)))])]),_0x1725f9=this[_0xa3a849(0x1b7)][_0xa3a849(0x1cf)](this[_0xa3a849(0x1c6)],this[_0xa3a849(0x1a5)][_0xa3a849(0x1a6)](!0x0),{'markUnstableElements':!this[_0xa3a849(0x1b5)],'replaceRemovedWith':_0x55637e,'cutAfterLastChange':!this[_0xa3a849(0x1b5)]});if(!_0x1725f9[_0xa3a849(0x1aa)][_0xa3a849(0x1bf)]&&!this[_0xa3a849(0x1b5)])return;this[_0xa3a849(0x1ac)]=_0x1725f9[_0xa3a849(0x1c6)];let _0x4c75eb=[];if(_0x192198(_0x555f22=>{const _0x393e96=_0xa3a849,_0x26b07e=_0x4e3334(_0x555f22,_0x393e96(0x1e6));if(!_0x26b07e||!_0x24a6bc(_0x26b07e))return!0x1;const _0x4eb4b7=[_0x555f22,..._0x95013d(_0x555f22)]['at'](-0x2);if(_0x555f22!=_0x4eb4b7){const _0x1fe722=_0x4e3334(_0x4eb4b7,_0x393e96(0x1e6));_0x24a6bc(_0x1fe722)||(_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x4eb4b7,'id':_0x1fe722,'type':_0x393e96(0x1a4)}),_0x1725f9[_0x393e96(0x1aa)][_0x393e96(0x1c5)](_0x1fe722));}else _0x1725f9[_0x393e96(0x1aa)][_0x393e96(0x1df)](_0x26b07e)?_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x1a4),'id':_0x26b07e}):_0x1725f9[_0x393e96(0x1d2)][_0x393e96(0x1df)](_0x26b07e)?_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x19e),'id':_0x26b07e,'anchorId':_0x4e3334(_0x555f22[_0x393e96(0x1c2)],_0x393e96(0x1e6))}):_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x1cb),'id':_0x26b07e});return!0x0;},this[_0xa3a849(0x1ac)]),_0x4c75eb=_0x4c75eb[_0xa3a849(0x1ae)](({node:_0x1dee76})=>[..._0x95013d(_0x1dee76),_0x1dee76][_0xa3a849(0x1d7)](_0x2f087b=>!_0x4e3334(_0x2f087b,_0xa3a849(0x1a1)))),0x0==_0x4c75eb[_0xa3a849(0x1bf)])return;const _0x4f159a=[[_0x4c75eb[0x0]]];for(let _0x5deaac=0x1;_0x5deaac<_0x4c75eb[_0xa3a849(0x1bf)];_0x5deaac++){const _0x313d4c=_0x4f159a[_0x4f159a[_0xa3a849(0x1bf)]-0x1],_0x10db57=_0x313d4c[_0x313d4c[_0xa3a849(0x1bf)]-0x1];_0x4c75eb[_0x5deaac][_0xa3a849(0x1c4)][_0xa3a849(0x1c2)]==_0x10db57[_0xa3a849(0x1c4)]&&_0xa3a849(0x1a4)!=_0x4c75eb[_0x5deaac][_0xa3a849(0x1cd)]&&_0xa3a849(0x1a4)!=_0x10db57[_0xa3a849(0x1cd)]?_0x313d4c[_0xa3a849(0x1c5)](_0x4c75eb[_0x5deaac]):_0x4f159a[_0xa3a849(0x1c5)]([_0x4c75eb[_0x5deaac]]);}for(const _0x2bb3d9 of _0x4f159a){const _0x238299=_0x2bb3d9[0x0],_0x41d413=_0x2bb3d9[_0x2bb3d9[_0xa3a849(0x1bf)]-0x1],_0x3ab2a7=_0x5afc88(_0x238299[_0xa3a849(0x1c4)][_0xa3a849(0x1c2)]);_0x3ab2a7&&_0x2bb3d9[_0xa3a849(0x19f)](_0x3ab2a7);const _0x5b6499=_0x5afc88(_0x41d413[_0xa3a849(0x1c4)][_0xa3a849(0x1d0)]);_0x5b6499&&_0x2bb3d9[_0xa3a849(0x1c5)](_0x5b6499);}function _0x24a6bc(_0x117ace){const _0x2e75bc=_0xa3a849;return _0x1725f9[_0x2e75bc(0x1aa)][_0x2e75bc(0x1df)](_0x117ace)||_0x1725f9[_0x2e75bc(0x1d2)][_0x2e75bc(0x1df)](_0x117ace)||_0x1725f9[_0x2e75bc(0x1be)][_0x2e75bc(0x1df)](_0x117ace);}function _0x5afc88(_0xbf39b8){const _0x3af03e=_0xa3a849;if(_0xbf39b8&&_0x4e3334(_0xbf39b8,_0x3af03e(0x1e6))&&!_0x4e3334(_0xbf39b8,_0x3af03e(0x1a1))){const _0x47ea4b=_0x4e3334(_0xbf39b8,_0x3af03e(0x1e6));if(!_0x24a6bc(_0x47ea4b))return{'node':_0xbf39b8,'type':_0x3af03e(0x19d),'id':_0x47ea4b};}return null;}this[_0xa3a849(0x1b1)]=_0x4f159a[_0xa3a849(0x1c8)]((_0x4674e5,_0x4737aa)=>({'changes':_0x4674e5,'state':_0xa3a849(0x1ca),'index':_0x4737aa}));}}
23
+ const _0x133240=_0x1276;function _0x2366(){const _0x3864d2=['unshift','editor','8DfVpbI','content','previousSibling','changes','612733BEJExI','aiResponseApplier','new','change:content','_getDifferentChangeGroups','1430DMOvNK','node','removedNodeIds','newNodeIds','aiResponseParser','_setCachedContentParts','map','modifiedNodeIds','582804CsBvZg','filter','locale','_getCachedContentParts','14481blGYWd','includes','setChangeGroupState','index','cachedSuggestionContentParts','span','updateChangeGroups','modification','done','2849130iXlbjm','state','interactionId','modified','removed','1988gCmNOx','replyChangeGroupStateUpdated','merge','ai-reply-get-content-parts-group-not-found','isDone','length','getContentParts','sources','convertMarkdownToHTML','areActionsDisabled','changeGroups','find','nextSibling','pending','ai-get-editor-from-context-no-editor','10JVtHTp','destroy','1455513yCENRs','replyContentUpdated','push','every','withoutDiff','12576JOOtbb','type','parsedContent','stopListening','indexOf','forEach','onContentChange','data-unstable','splice','parsedMergedContent','appendContent','color:\x20#808080;\x20font-style:\x20italic','withDiff','cloneNode','parseAndNormalizeHTML','documentContextContent','data-id','set','AI_SUGGESTION_CONTENT_PART_REMOVED','4633518LyyFUd','fire','context'];_0x2366=function(){return _0x3864d2;};return _0x2366();}(function(_0x2ee95e,_0x351a78){const _0x4312e9=_0x1276,_0xb7795d=_0x2ee95e();while(!![]){try{const _0x2c494d=-parseInt(_0x4312e9(0xc1))/0x1+parseInt(_0x4312e9(0xce))/0x2+parseInt(_0x4312e9(0x93))/0x3*(parseInt(_0x4312e9(0xb0))/0x4)+parseInt(_0x4312e9(0x91))/0x5*(-parseInt(_0x4312e9(0xab))/0x6)+-parseInt(_0x4312e9(0xd3))/0x7*(-parseInt(_0x4312e9(0x98))/0x8)+-parseInt(_0x4312e9(0xc5))/0x9*(-parseInt(_0x4312e9(0xb9))/0xa)+-parseInt(_0x4312e9(0xb4))/0xb;if(_0x2c494d===_0x351a78)break;else _0xb7795d['push'](_0xb7795d['shift']());}catch(_0x562cf9){_0xb7795d['push'](_0xb7795d['shift']());}}}(_0x2366,0xd8e6d));import{CKEditorError as _0x35bd97,ObservableMixin as _0x3378d9,uid as _0x184f65}from'ckeditor5/src/utils.js';function _0x1276(_0x23c05b,_0x1e1fd0){const _0x236614=_0x2366();return _0x1276=function(_0x127660,_0x3db56a){_0x127660=_0x127660-0x88;let _0x1d76cb=_0x236614[_0x127660];return _0x1d76cb;},_0x1276(_0x23c05b,_0x1e1fd0);}import{Element as _0x1b7a25,findAll as _0x53c501,getAttribute as _0x1b5aca,getParents as _0x3ddae2,Document as _0x5f4863,parse as _0x30d067,Text as _0x21caf2}from'../utils/htmlparser.js';import{AIResponseParser as _0x69afc0}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x547365}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5ee9af}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4401d9}from'../utils/common-translations.js';import{cloneDeep as _0x1ed1eb}from'es-toolkit';export class AIReply extends _0x3378d9(){['id'];[_0x133240(0xd0)];[_0x133240(0x99)];[_0x133240(0x89)]=[];[_0x133240(0x9a)]=new _0x5f4863([]);[_0x133240(0xa1)]=new _0x5f4863([]);[_0x133240(0x8c)]=[];[_0x133240(0x8b)]=!0x1;[_0x133240(0xa7)];[_0x133240(0xbd)];[_0x133240(0xb5)];[_0x133240(0xaf)];[_0x133240(0xc9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x321266,content:_0x2dd8d7='',isDone:_0x4bbf61=!0x1,interactionId:_0x5d6447,areActionsDisabled:_0xcafcfb,documentContextContent:_0x3b4477,editor:_0x52e1e3,id:_0xda752f}){const _0x1e4424=_0x133240;super(),this['id']=_0xda752f||_0x184f65(),this[_0x1e4424(0xd0)]=_0x5d6447,this[_0x1e4424(0x99)]=_0x321266,this[_0x1e4424(0x8b)]=!!_0xcafcfb,this[_0x1e4424(0xaf)]=_0x52e1e3,this[_0x1e4424(0xbd)]=new _0x69afc0(),this[_0x1e4424(0xb5)]=new _0x547365(),this[_0x1e4424(0xa7)]=_0x30d067(_0x3b4477||''),this[_0x1e4424(0xa9)](_0x1e4424(0xd7),_0x4bbf61),this['on'](_0x1e4424(0xb7),()=>{const _0x23fd89=_0x1e4424;this[_0x23fd89(0x9e)]();}),this[_0x1e4424(0xa9)](_0x1e4424(0xb1),_0x2dd8d7);}[_0x133240(0xa2)](_0x9df1ee){const _0x5d9683=_0x133240;this[_0x5d9683(0xa9)](_0x5d9683(0xb1),this[_0x5d9683(0xb1)]+_0x9df1ee);}[_0x133240(0xcd)](){const _0x4e8e93=_0x133240;this[_0x4e8e93(0xd7)]||(this[_0x4e8e93(0xa9)](_0x4e8e93(0xd7),!0x0),this[_0x4e8e93(0x9e)]());}[_0x133240(0x92)](){const _0x450079=_0x133240;this[_0x450079(0x9b)]();}[_0x133240(0xc7)](_0x14e4ad,_0x46d727){const _0x1a330c=_0x133240;this[_0x1a330c(0x8c)][_0x14e4ad][_0x1a330c(0xcf)]=_0x46d727,this[_0x1a330c(0xac)](_0x1a330c(0xd4),{'reply':this,'index':_0x14e4ad,'state':_0x46d727});}[_0x133240(0x88)]({showDiff:_0x273b0b,groupIndex:_0x4159a5}){const _0x23367b=_0x133240;if(!this[_0x23367b(0xaf)])throw new _0x35bd97(_0x23367b(0x90),null,{'aiReply':this});const _0xb9347f=this[_0x23367b(0xc4)](_0x273b0b,_0x4159a5);if(_0xb9347f)return _0xb9347f;let _0x14971b=[];if(void 0x0===_0x4159a5)_0x14971b=this[_0x23367b(0x8c)];else{const _0x1eb19b=this[_0x23367b(0x8c)][_0x23367b(0x8d)](({index:_0x5cff17})=>_0x5cff17===_0x4159a5);if(!_0x1eb19b)throw new _0x35bd97(_0x23367b(0xd6),null,{'aiReply':this,'groupIndex':_0x4159a5});_0x14971b=[_0x1eb19b];}const _0x17941e=_0x5ee9af({'editor':this[_0x23367b(0xaf)],'showDiff':_0x273b0b,'changeGroups':_0x14971b,'documentContextContent':this[_0x23367b(0xa7)]});return this[_0x23367b(0xbe)](_0x273b0b,_0x17941e),_0x17941e;}[_0x133240(0xc4)](_0x28adb,_0x3a11d6){const _0x311772=_0x133240,_0x59da44=_0x28adb?_0x311772(0xa4):_0x311772(0x97);if(!this[_0x311772(0xc9)][_0x59da44][_0x311772(0xd8)])return null;const _0x3ba1ca=this[_0x311772(0xc9)][_0x59da44];if(void 0x0===_0x3a11d6)return _0x3ba1ca[_0x311772(0xd8)]>0x0&&_0x3ba1ca[_0x311772(0xd8)]!==this[_0x311772(0x8c)][_0x311772(0xd8)]?(this[_0x311772(0xbe)](_0x28adb,null),null):_0x1ed1eb(_0x3ba1ca);{const _0x2f09d8=_0x3ba1ca[_0x311772(0x8d)](({index:_0x147a43})=>_0x147a43===_0x3a11d6);if(_0x2f09d8)return[_0x1ed1eb(_0x2f09d8)];}return null;}[_0x133240(0xbe)](_0x18d0ec,_0x12aa5d){const _0x40f735=_0x133240,_0x12a4a6=_0x18d0ec?_0x40f735(0xa4):_0x40f735(0x97);_0x12aa5d?_0x12aa5d[_0x40f735(0x9d)](_0x32b34d=>{const _0x197ebe=_0x40f735,_0x2ecbc1=this[_0x197ebe(0xc9)][_0x12a4a6],_0x5882cd=_0x2ecbc1[_0x197ebe(0x8d)](({index:_0x539f97})=>_0x539f97===_0x32b34d[_0x197ebe(0xc8)]);if(_0x5882cd){const _0x1b5dd0=_0x2ecbc1[_0x197ebe(0x9c)](_0x5882cd);_0x2ecbc1[_0x197ebe(0xa0)](_0x1b5dd0,0x1,_0x32b34d);}else _0x2ecbc1[_0x197ebe(0x95)](_0x32b34d);}):this[_0x40f735(0xc9)][_0x12a4a6][_0x40f735(0xd8)]=0x0;}[_0x133240(0x9e)](){const _0x113af4=_0x133240;if(_0x113af4(0xcc)===this[_0x113af4(0x99)]){this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0xa6)](this[_0x113af4(0xb1)]);const _0x28212f=this[_0x113af4(0x8c)];this[_0x113af4(0xcb)]();const _0x6ea48f=this[_0x113af4(0xb8)](_0x28212f,this[_0x113af4(0x8c)]);(_0x6ea48f[_0x113af4(0xd8)]||this[_0x113af4(0xd7)])&&(this[_0x113af4(0xac)](_0x113af4(0x94),this,_0x6ea48f),this[_0x113af4(0xc9)][_0x113af4(0xa4)][_0x113af4(0xd8)]=this[_0x113af4(0xc9)][_0x113af4(0x97)][_0x113af4(0xd8)]=0x0);}else this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0x8a)](this[_0x113af4(0xb1)]),this[_0x113af4(0xac)](_0x113af4(0x94),this);}[_0x133240(0xb8)](_0x57733b,_0x17c09e){const _0x212398=_0x133240,_0x3ed0b3=[];for(const _0x1bbfd1 of _0x17c09e){const _0x2230fc=_0x57733b[_0x1bbfd1[_0x212398(0xc8)]];_0x2230fc?_0x2230fc[_0x212398(0xb3)][_0x212398(0xd8)]!==_0x1bbfd1[_0x212398(0xb3)][_0x212398(0xd8)]?_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1):_0x2230fc[_0x212398(0xb3)][_0x212398(0x9d)]((_0x38e251,_0x1c7e97)=>{const _0x149395=_0x212398,_0x1fd4f8=_0x1bbfd1[_0x149395(0xb3)][_0x1c7e97];_0x38e251['id']!==_0x1fd4f8['id']&&_0x3ed0b3[_0x149395(0x95)](_0x1bbfd1);}):_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1);}return _0x3ed0b3;}[_0x133240(0xcb)](){const _0x143f33=_0x133240,_0x282d31=new _0x1b7a25('p',{},[new _0x1b7a25(_0x143f33(0xca),{'style':_0x143f33(0xa3)},[new _0x21caf2(_0x4401d9(this[_0x143f33(0xaf)][_0x143f33(0xc3)],_0x143f33(0xaa)))])]),_0x24925c=this[_0x143f33(0xb5)][_0x143f33(0xd5)](this[_0x143f33(0x9a)],this[_0x143f33(0xa7)][_0x143f33(0xa5)](!0x0),{'markUnstableElements':!this[_0x143f33(0xd7)],'replaceRemovedWith':_0x282d31,'cutAfterLastChange':!this[_0x143f33(0xd7)]});if(!_0x24925c[_0x143f33(0xc0)][_0x143f33(0xd8)]&&!this[_0x143f33(0xd7)])return;this[_0x143f33(0xa1)]=_0x24925c[_0x143f33(0x9a)];let _0x53f16f=[];if(_0x53c501(_0x434d43=>{const _0x3cba3e=_0x143f33,_0x39aceb=_0x1b5aca(_0x434d43,_0x3cba3e(0xa8));if(!_0x39aceb||!_0x197229(_0x39aceb))return!0x1;const _0x190771=[_0x434d43,..._0x3ddae2(_0x434d43)]['at'](-0x2);if(_0x434d43!=_0x190771){const _0x1e4029=_0x1b5aca(_0x190771,_0x3cba3e(0xa8));_0x197229(_0x1e4029)||(_0x53f16f[_0x3cba3e(0x95)]({'node':_0x190771,'id':_0x1e4029,'type':_0x3cba3e(0xd1)}),_0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0x95)](_0x1e4029));}else _0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd1),'id':_0x39aceb}):_0x24925c[_0x3cba3e(0xbc)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xb6),'id':_0x39aceb,'anchorId':_0x1b5aca(_0x434d43[_0x3cba3e(0xb2)],_0x3cba3e(0xa8))}):_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd2),'id':_0x39aceb});return!0x0;},this[_0x143f33(0xa1)]),_0x53f16f=_0x53f16f[_0x143f33(0xc2)](({node:_0xc62b01})=>[..._0x3ddae2(_0xc62b01),_0xc62b01][_0x143f33(0x96)](_0x3d3d6b=>!_0x1b5aca(_0x3d3d6b,_0x143f33(0x9f)))),0x0==_0x53f16f[_0x143f33(0xd8)])return;const _0x2a4f97=[[_0x53f16f[0x0]]];for(let _0x50d227=0x1;_0x50d227<_0x53f16f[_0x143f33(0xd8)];_0x50d227++){const _0x1d7da1=_0x2a4f97[_0x2a4f97[_0x143f33(0xd8)]-0x1],_0x4b09e4=_0x1d7da1[_0x1d7da1[_0x143f33(0xd8)]-0x1];_0x53f16f[_0x50d227][_0x143f33(0xba)][_0x143f33(0xb2)]==_0x4b09e4[_0x143f33(0xba)]&&_0x143f33(0xd1)!=_0x53f16f[_0x50d227][_0x143f33(0x99)]&&_0x143f33(0xd1)!=_0x4b09e4[_0x143f33(0x99)]?_0x1d7da1[_0x143f33(0x95)](_0x53f16f[_0x50d227]):_0x2a4f97[_0x143f33(0x95)]([_0x53f16f[_0x50d227]]);}for(const _0xfa927a of _0x2a4f97){const _0x326a7c=_0xfa927a[0x0],_0x51717e=_0xfa927a[_0xfa927a[_0x143f33(0xd8)]-0x1],_0x3e0291=_0x3a6fc4(_0x326a7c[_0x143f33(0xba)][_0x143f33(0xb2)]);_0x3e0291&&_0xfa927a[_0x143f33(0xae)](_0x3e0291);const _0xc2f32e=_0x3a6fc4(_0x51717e[_0x143f33(0xba)][_0x143f33(0x8e)]);_0xc2f32e&&_0xfa927a[_0x143f33(0x95)](_0xc2f32e);}function _0x197229(_0x123fe6){const _0x91b125=_0x143f33;return _0x24925c[_0x91b125(0xc0)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbc)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbb)][_0x91b125(0xc6)](_0x123fe6);}function _0x3a6fc4(_0x161414){const _0x593cae=_0x143f33;if(_0x161414&&_0x1b5aca(_0x161414,_0x593cae(0xa8))&&!_0x1b5aca(_0x161414,_0x593cae(0x9f))){const _0x1e2ee6=_0x1b5aca(_0x161414,_0x593cae(0xa8));if(!_0x197229(_0x1e2ee6))return{'node':_0x161414,'type':_0x593cae(0xad),'id':_0x1e2ee6};}return null;}this[_0x143f33(0x8c)]=_0x2a4f97[_0x143f33(0xbf)]((_0x19c7f3,_0x33304f)=>({'changes':_0x19c7f3,'state':_0x143f33(0x8f),'index':_0x33304f}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a2e37=_0x4dce;(function(_0x263ae6,_0x36a4c8){const _0xa3d0a5=_0x4dce,_0x5f3ed1=_0x263ae6();while(!![]){try{const _0x19c2d4=-parseInt(_0xa3d0a5(0xa6))/0x1+-parseInt(_0xa3d0a5(0xa2))/0x2+-parseInt(_0xa3d0a5(0xb1))/0x3*(-parseInt(_0xa3d0a5(0xb3))/0x4)+-parseInt(_0xa3d0a5(0xdc))/0x5*(-parseInt(_0xa3d0a5(0xb9))/0x6)+-parseInt(_0xa3d0a5(0xac))/0x7+-parseInt(_0xa3d0a5(0xab))/0x8+-parseInt(_0xa3d0a5(0xda))/0x9*(-parseInt(_0xa3d0a5(0xc5))/0xa);if(_0x19c2d4===_0x36a4c8)break;else _0x5f3ed1['push'](_0x5f3ed1['shift']());}catch(_0x2999ae){_0x5f3ed1['push'](_0x5f3ed1['shift']());}}}(_0x12f9,0x1abac));import{ObservableMixin as _0x226427,uid as _0x10a4d1}from'ckeditor5/src/utils.js';function _0x4dce(_0x2f79c4,_0x455519){const _0x12f9cb=_0x12f9();return _0x4dce=function(_0x4dce94,_0x4c2c7e){_0x4dce94=_0x4dce94-0x99;let _0x4995cc=_0x12f9cb[_0x4dce94];return _0x4995cc;},_0x4dce(_0x2f79c4,_0x455519);}function _0x12f9(){const _0x2d8bca=['cloneNode','_existingDataIds','parentNode','childNodes','lastChild','data-removed','_markLastTagElementUnstable','169770ZrSqkT','_markWrappedElements','includes','beforebegin','_removeSpecialComments','_findPrevElementWithDataId','markUnstableElementsDepth','from','data-unstable','removedIds','_generateUid','modifiedIds','map','_getUid','afterend','nextSibling','length','replaceRemovedWith','merge','_findFallbackReferenceNode','_storeDeletedElementIds','171HYxYRa','reverse','385GKlCND','forEach','slice','invalidIds','_isExistingNode','markUnstableElements','lastTouchedId','_markUnstableElements','previousSibling','newIds','_touchedNodesState','_isNewNode','match','262946QDbzln','true','_findReferenceNode','indexOf','200351XNIGKP','_replaceNode','filter','_isExistingContentComment','data-id','70368hoocFh','1110683FihymU','nodeType','_insertNodes','_hasWrappedParent','has','74094qlnCpQ','trim','16KvavMt','new-element','afterbegin','cutAfterLastChange','push','data-wrapped-id','14604cYwiaR','splice','_getNodeDataId','_isDelNode','_findNextElementWithDataId'];_0x12f9=function(){return _0x2d8bca;};return _0x12f9();}import{findAllByAttribute as _0x174e3c,findByAttribute as _0x26639a,getAttribute as _0x5e686a,isComment as _0x2d0259,isTag as _0x2c1bf9,insertElement as _0x214e03,moveElement as _0x3a7ad9,removeElement as _0xa6ac68,replaceElement as _0x3ec306,serialize as _0x236338,setAttribute as _0x156962,clone as _0x29270f,findAllComments as _0xcb15ca,getParents as _0x38e67e,getNodeNestingLevel as _0x14dd26,areNodesSame as _0x548837,removeElementsAfter as _0x2b90e6}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x226427(){[_0x4a2e37(0xcf)];[_0x4a2e37(0x9f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4a2e37(0xbf)]=new Set();constructor(_0xf33811){const _0x5de80b=_0x4a2e37;super(),this[_0x5de80b(0xcf)]=_0xf33811||_0x10a4d1;}[_0x4a2e37(0xd7)](_0x19a533,_0x293af8,_0x5701c8){const _0x3dd7da=_0x4a2e37,_0xcc30f7=_0x29270f(_0x19a533);if(0x0===_0x293af8[_0x3dd7da(0xc1)][_0x3dd7da(0xd5)]){const _0x45be75=[];return _0x174e3c(_0x3dd7da(0xaa),_0x3dd7da(0xb4),_0xcc30f7)[_0x3dd7da(0xdd)](_0x5ef951=>{const _0x5362ce=_0x3dd7da,_0x240d8c=this[_0x5362ce(0xcf)]();_0x156962(_0x5ef951,_0x5362ce(0xaa),_0x240d8c),_0x45be75[_0x5362ce(0xb7)](_0x240d8c);}),this[_0x3dd7da(0xc9)](_0xcc30f7),{'parsedContent':_0xcc30f7,'newNodeIds':_0x45be75,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5701c8&&_0x5701c8[_0x3dd7da(0x9a)]&&this[_0x3dd7da(0xc4)](_0xcc30f7),this[_0x3dd7da(0x9f)][_0x3dd7da(0x9e)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xdf)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]=null,this[_0x3dd7da(0xbf)]=new Set(_0x174e3c(_0x3dd7da(0xaa),null,_0x293af8)[_0x3dd7da(0xd1)](_0x3cb163=>_0x5e686a(_0x3cb163,_0x3dd7da(0xaa)))[_0x3dd7da(0xa8)](_0x56c722=>!!_0x56c722));let _0x5eb303=-0x1,_0x48ca57=!0x1;const _0x3f36ee=_0xcc30f7[_0x3dd7da(0xc1)],_0x274bc6=Array[_0x3dd7da(0xcc)](_0x3f36ee)[_0x3dd7da(0xa8)](_0x2ae2c6=>!(0x3===_0x2ae2c6[_0x3dd7da(0xad)]&&''===_0x236338(_0x2ae2c6)[_0x3dd7da(0xb2)]())),_0x2af873=_0x274bc6[_0x3dd7da(0xd5)];for(let _0x9dbbc0=0x0;_0x9dbbc0<_0x2af873;_0x9dbbc0++){const _0x4859a4=_0x274bc6[_0x9dbbc0],_0x1fa35f=_0x274bc6[_0x9dbbc0+0x1];if(this[_0x3dd7da(0xa0)](_0x4859a4)){if(-0x1===_0x5eb303&&(_0x5eb303=_0x9dbbc0),this[_0x3dd7da(0xc6)](_0x4859a4),!this[_0x3dd7da(0xa0)](_0x1fa35f)){const [_0x9ba5ff,_0x1253d8]=this[_0x3dd7da(0xa4)](_0x4859a4,_0x48ca57,_0x293af8);if(_0x9ba5ff){const _0x1b8c55=Array[_0x3dd7da(0xcc)](_0x274bc6)[_0x3dd7da(0xde)](_0x5eb303,_0x9dbbc0+0x1);this[_0x3dd7da(0xae)](_0x9ba5ff,_0x1b8c55,_0x1253d8),_0x5eb303=-0x1;}}}else{if(this[_0x3dd7da(0xa9)](_0x4859a4))_0x48ca57=!0x0;else{if(this[_0x3dd7da(0x99)](_0x4859a4)){const _0x405eec=_0x5e686a(_0x4859a4,_0x3dd7da(0xaa));if(_0x405eec&&this[_0x3dd7da(0xbf)][_0x3dd7da(0xb0)](_0x405eec)){const _0x2d44a3=_0x26639a(_0x3dd7da(0xaa),_0x405eec,_0x293af8);this[_0x3dd7da(0xa7)](_0x2d44a3,_0x4859a4);}if(this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xc7)](_0x405eec)){const _0x5aaec5=this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xa5)](_0x405eec);this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xba)](_0x5aaec5,0x1);}}else{if(this[_0x3dd7da(0xbc)](_0x4859a4)){const _0x47d93d=_0x5e686a(_0x4859a4,_0x3dd7da(0xaa));this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)][_0x3dd7da(0xc7)](_0x47d93d)||this[_0x3dd7da(0xd9)](_0x4859a4);}}}}}for(const _0x1172e0 of this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]){const _0x338d34=_0x26639a(_0x3dd7da(0xaa),_0x1172e0,_0x293af8);if(_0x338d34){if(_0x5701c8&&_0x5701c8[_0x3dd7da(0xd6)]){this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]=_0x1172e0;const _0x42f3e5=_0x5701c8[_0x3dd7da(0xd6)][_0x3dd7da(0xbe)](!0x0);_0x156962(_0x42f3e5,_0x3dd7da(0xaa),_0x1172e0),_0x156962(_0x42f3e5,_0x3dd7da(0xc3),_0x3dd7da(0xa3)),_0x3ec306(_0x338d34,_0x42f3e5);}else _0xa6ac68(_0x338d34);}}if(_0x174e3c(_0x3dd7da(0xb8),null,_0x293af8)[_0x3dd7da(0xdd)](_0xeec3bb=>{const _0x193acc=_0x3dd7da,_0x4f68d7=_0x5e686a(_0xeec3bb,_0x193acc(0xb8)),_0x4be916=_0x26639a(_0x193acc(0xaa),_0x4f68d7,_0x293af8);_0x4be916&&_0x3a7ad9(_0x4be916,_0xeec3bb);}),_0x174e3c(_0x3dd7da(0xaa),_0x3dd7da(0xb4),_0x293af8)[_0x3dd7da(0xdd)](_0xc48f82=>{const _0x56871a=_0x3dd7da,_0x32b844=this[_0x56871a(0xd2)](_0xc48f82);_0x156962(_0xc48f82,_0x56871a(0xaa),_0x32b844),this[_0x56871a(0x9f)][_0x56871a(0x9e)][_0x56871a(0xb7)](_0x32b844);}),this[_0x3dd7da(0xc9)](_0x293af8),_0x5701c8&&_0x5701c8[_0x3dd7da(0x9a)]&&this[_0x3dd7da(0x9c)](_0x293af8,_0x5701c8[_0x3dd7da(0xcb)]||0x0),_0x5701c8&&_0x5701c8[_0x3dd7da(0xb6)]&&this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]){let _0x421bfe=_0x26639a(_0x3dd7da(0xaa),this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)],_0x293af8);for(;_0x421bfe;)_0x2b90e6(_0x421bfe),_0x421bfe=_0x421bfe[_0x3dd7da(0xc0)];}return{'parsedContent':_0x293af8,'newNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0x9e)],'modifiedNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)],'removedNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]};}[_0x4a2e37(0xae)](_0x550881,_0x1beb6c,_0x42d8fb){const _0x2ca3ed=_0x4a2e37;for(const _0x1d7c6a of _0x1beb6c){const _0x3c267a=this[_0x2ca3ed(0xd2)](_0x1d7c6a);_0x156962(_0x1d7c6a,_0x2ca3ed(0xaa),_0x3c267a),this[_0x2ca3ed(0x9f)][_0x2ca3ed(0x9e)][_0x2ca3ed(0xb7)](_0x3c267a),this[_0x2ca3ed(0x9f)][_0x2ca3ed(0x9b)]=_0x3c267a;}const _0x526f19=_0x2ca3ed(0xb5)===_0x42d8fb||_0x2ca3ed(0xd3)===_0x42d8fb?_0x1beb6c[_0x2ca3ed(0xdb)]():_0x1beb6c;for(const _0x17dcc7 of _0x526f19)_0x214e03(_0x550881,_0x17dcc7,_0x42d8fb);}[_0x4a2e37(0xa7)](_0x3ff6b9,_0x598fc3){const _0x1c58d7=_0x4a2e37;if(!_0x3ff6b9)return;if(_0x548837(_0x3ff6b9,_0x598fc3))return;const _0x52cfeb=this[_0x1c58d7(0xd2)](_0x3ff6b9);_0x156962(_0x598fc3,_0x1c58d7(0xaa),_0x52cfeb),this[_0x1c58d7(0x9f)][_0x1c58d7(0xd0)][_0x1c58d7(0xb7)](_0x52cfeb),this[_0x1c58d7(0x9f)][_0x1c58d7(0x9b)]=_0x52cfeb,_0x3ec306(_0x3ff6b9,_0x598fc3[_0x1c58d7(0xbe)](!0x0));}[_0x4a2e37(0xa4)](_0x5b909a,_0x32beed,_0x17f87b){const _0x3fc283=_0x4a2e37,_0x538439=this[_0x3fc283(0xca)](_0x5b909a,!0x1);if(_0x538439){const _0x2b3a09=this[_0x3fc283(0xbb)](_0x538439),_0xabd62d=_0x26639a(_0x3fc283(0xaa),_0x2b3a09,_0x17f87b);if(_0xabd62d)return[_0xabd62d,_0x3fc283(0xd3)];this[_0x3fc283(0x9f)][_0x3fc283(0xdf)][_0x3fc283(0xb7)](_0x2b3a09);}const _0x1ee279=this[_0x3fc283(0xbd)](_0x5b909a,!0x1);if(_0x1ee279){const _0x54101c=this[_0x3fc283(0xbb)](_0x1ee279),_0x69ccc7=_0x26639a(_0x3fc283(0xaa),_0x54101c,_0x17f87b);if(_0x69ccc7)return[_0x69ccc7,_0x3fc283(0xc8)];this[_0x3fc283(0x9f)][_0x3fc283(0xdf)][_0x3fc283(0xb7)](_0x54101c);}return _0x32beed?_0x5b909a[_0x3fc283(0xd4)]?this[_0x3fc283(0xd8)](_0x5b909a,_0x17f87b):[_0x17f87b[_0x3fc283(0xc1)][_0x17f87b[_0x3fc283(0xc1)][_0x3fc283(0xd5)]-0x1],_0x3fc283(0xd3)]:[_0x17f87b[_0x3fc283(0xc1)][0x0],_0x3fc283(0xc8)];}[_0x4a2e37(0xd8)](_0x4d2f33,_0x72e03b){const _0x2d2891=_0x4a2e37,_0x455d7a=[],_0x515400=this[_0x2d2891(0xca)](_0x4d2f33,!0x0);if(_0x515400){const _0xe5f3a1=this[_0x2d2891(0xbb)](_0x515400),_0xc4a183=_0x26639a(_0x2d2891(0xaa),_0xe5f3a1,_0x72e03b);_0xc4a183&&_0x455d7a[_0x2d2891(0xb7)]([_0xc4a183,_0x2d2891(0xd3)]);}const _0x53e6b1=this[_0x2d2891(0xbd)](_0x4d2f33,!0x0);if(_0x53e6b1){const _0x1a781b=this[_0x2d2891(0xbb)](_0x53e6b1),_0x4a86b6=_0x26639a(_0x2d2891(0xaa),_0x1a781b,_0x72e03b);_0x4a86b6&&_0x455d7a[_0x2d2891(0xb7)]([_0x4a86b6,_0x2d2891(0xc8)]);}if(_0x455d7a[_0x2d2891(0xd5)]>0x1)return _0x14dd26(_0x455d7a[0x0][0x0])<=_0x14dd26(_0x455d7a[0x1][0x0])?_0x455d7a[0x0]:_0x455d7a[0x1];return 0x1===_0x455d7a[_0x2d2891(0xd5)]?_0x455d7a[0x0]:[_0x72e03b[_0x2d2891(0xc2)],_0x2d2891(0xd3)];}[_0x4a2e37(0xbd)](_0x547b0f,_0x124b0a){const _0x538624=_0x4a2e37;let _0x3ca291=_0x547b0f[_0x538624(0xd4)],_0x2ecf7b=null,_0x3b6766=!0x1;for(;_0x3ca291;){if(_0x2d0259(_0x3ca291)){if(this[_0x538624(0xbc)](_0x3ca291)&&(_0x2ecf7b=_0x3ca291),this[_0x538624(0xa9)](_0x3ca291)&&_0x124b0a&&!_0x3b6766){_0x3b6766=!0x0,_0x3ca291=_0x3ca291[_0x538624(0xd4)];continue;}break;}const _0x1aa286=_0x5e686a(_0x3ca291,_0x538624(0xaa));if(_0x1aa286&&_0x538624(0xb4)!==_0x1aa286&&this[_0x538624(0xbf)][_0x538624(0xb0)](_0x1aa286)){_0x2ecf7b=_0x3ca291;break;}_0x3ca291=_0x3ca291[_0x538624(0xd4)];}return _0x2ecf7b;}[_0x4a2e37(0xca)](_0x2fa87b,_0x3b54a3){const _0x38e916=_0x4a2e37;let _0x221379=_0x2fa87b[_0x38e916(0x9d)],_0x159697=null,_0x1d28ac=!0x1;for(;_0x221379;){if(_0x2d0259(_0x221379)){if(this[_0x38e916(0xbc)](_0x221379)&&(_0x159697=_0x221379),this[_0x38e916(0xa9)](_0x221379)&&_0x3b54a3&&!_0x1d28ac){_0x1d28ac=!0x0,_0x221379=_0x221379[_0x38e916(0x9d)];continue;}break;}const _0x41891f=_0x5e686a(_0x221379,_0x38e916(0xaa));if(_0x41891f&&_0x38e916(0xb4)!==_0x41891f&&this[_0x38e916(0xbf)][_0x38e916(0xb0)](_0x41891f)){_0x159697=_0x221379;break;}_0x221379=_0x221379[_0x38e916(0x9d)];}return _0x159697;}[_0x4a2e37(0xc6)](_0x550336){const _0x495a44=_0x4a2e37;_0x2c1bf9(_0x550336)&&_0x174e3c(_0x495a44(0xaa),null,_0x550336)[_0x495a44(0xdd)](_0x403eaf=>{const _0x8172a7=_0x495a44;if(this[_0x8172a7(0x99)](_0x403eaf)&&!this[_0x8172a7(0xaf)](_0x403eaf)){const _0x1f7ea4=_0x5e686a(_0x403eaf,_0x8172a7(0xaa));_0x156962(_0x403eaf,_0x8172a7(0xb8),_0x1f7ea4),_0x156962(_0x403eaf,_0x8172a7(0xaa),null);}});}[_0x4a2e37(0xbb)](_0x41330d){const _0x435c53=_0x4a2e37;if(!_0x41330d)return null;if(_0x2c1bf9(_0x41330d))return _0x5e686a(_0x41330d,_0x435c53(0xaa));if(_0x2d0259(_0x41330d)){const _0x1d8a4e=_0x236338(_0x41330d)[_0x435c53(0xa1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1d8a4e&&_0x1d8a4e[0x1])return _0x1d8a4e[0x1];}return null;}[_0x4a2e37(0xd9)](_0x19c67e){const _0x3b6603=_0x4a2e37;if(_0x2d0259(_0x19c67e)){const _0x189438=_0x236338(_0x19c67e)[_0x3b6603(0xa1)](/removed[\s*-]data-id="([^"]+)"/);_0x189438&&_0x189438[0x1]&&this[_0x3b6603(0x9f)][_0x3b6603(0xce)][_0x3b6603(0xb7)](_0x189438[0x1]);}}[_0x4a2e37(0xd2)](_0x23cb5c){const _0x5716ae=_0x4a2e37;return this[_0x5716ae(0x99)](_0x23cb5c)?_0x5e686a(_0x23cb5c,_0x5716ae(0xaa)):this[_0x5716ae(0xcf)]();}[_0x4a2e37(0xc9)](_0x599656){const _0x3fd684=_0x4a2e37;_0xcb15ca(_0x599656)[_0x3fd684(0xa8)](_0x5cdb1d=>this[_0x3fd684(0xbc)](_0x5cdb1d)||this[_0x3fd684(0xa9)](_0x5cdb1d))[_0x3fd684(0xdd)](_0x118cb1=>{_0xa6ac68(_0x118cb1);});}[_0x4a2e37(0xc4)](_0x2ceff9){const _0x1bf035=_0x4a2e37,_0x5955e4=_0x2ceff9[_0x1bf035(0xc1)],_0x4a8997=_0x5955e4[_0x5955e4[_0x1bf035(0xd5)]-0x1];_0x4a8997&&_0x2c1bf9(_0x4a8997)&&_0x156962(_0x4a8997,_0x1bf035(0xcd),_0x1bf035(0xa3));}[_0x4a2e37(0x9c)](_0x286959,_0x35d683){const _0xb7d0a1=_0x4a2e37,_0x1e0e6c=_0x26639a(_0xb7d0a1(0xcd),_0xb7d0a1(0xa3),_0x286959);if(!_0x1e0e6c)return;const _0x252ab5=_0x38e67e(_0x1e0e6c)[_0xb7d0a1(0xde)](0x0,-0x1),_0x4f9b52=_0x252ab5[_0xb7d0a1(0xd5)];let _0x3719f3=_0x1e0e6c;if(_0x4f9b52>_0x35d683){let _0x354632=_0x4f9b52,_0x56ee49=null;for(;_0x354632>_0x35d683&&_0x354632>=0x0;)_0x354632--,_0x56ee49=_0x252ab5[_0x354632];_0x56ee49&&(_0x3719f3=_0x56ee49,_0x156962(_0x1e0e6c,_0xb7d0a1(0xcd),null),_0x156962(_0x56ee49,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3)));}else{if(_0x4f9b52<_0x35d683){let _0x4ed183=_0x4f9b52,_0x2bda91=_0x1e0e6c;for(;_0x4ed183<_0x35d683;){const _0x1b5984=_0x2bda91[_0xb7d0a1(0xc1)][_0xb7d0a1(0xa8)](_0x38fdad=>_0x2c1bf9(_0x38fdad));if(0x0===_0x1b5984[_0xb7d0a1(0xd5)])break;_0x4ed183++,_0x2bda91=_0x1b5984[_0x1b5984[_0xb7d0a1(0xd5)]-0x1];}_0x2bda91&&(_0x3719f3=_0x2bda91,_0x156962(_0x1e0e6c,_0xb7d0a1(0xcd),null),_0x156962(_0x2bda91,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3)));}}let _0x16baad=_0x3719f3;for(;_0x16baad;){for(;_0x16baad[_0xb7d0a1(0xd4)];)_0x16baad=_0x16baad[_0xb7d0a1(0xd4)],_0x2c1bf9(_0x16baad)&&_0x156962(_0x16baad,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3));_0x16baad=_0x16baad[_0xb7d0a1(0xc0)];}}[_0x4a2e37(0xa0)](_0x5f39a6){const _0x1d05cb=_0x4a2e37;return Boolean(_0x1d05cb(0xb4)===_0x5e686a(_0x5f39a6,_0x1d05cb(0xaa)));}[_0x4a2e37(0x99)](_0xcbf8e5){const _0xa4d9ad=_0x4a2e37;return Boolean((_0x5e686a(_0xcbf8e5,_0xa4d9ad(0xaa))||'')[_0xa4d9ad(0xd5)]>0x0&&_0xa4d9ad(0xb4)!==_0x5e686a(_0xcbf8e5,_0xa4d9ad(0xaa)));}[_0x4a2e37(0xbc)](_0xb93dbd){const _0x2fd9bb=_0x4a2e37;return!!_0xb93dbd&&Boolean(_0x2d0259(_0xb93dbd)&&_0x236338(_0xb93dbd)[_0x2fd9bb(0xa1)](/removed[\s*-]data-id="[^"]+"/));}[_0x4a2e37(0xaf)](_0x5a2902){const _0x35b992=_0x4a2e37;let _0x4f7fe8=_0x5a2902[_0x35b992(0xc0)];for(;_0x4f7fe8;){if(_0x5e686a(_0x4f7fe8,_0x35b992(0xb8)))return!0x0;_0x4f7fe8=_0x4f7fe8[_0x35b992(0xc0)];}return!0x1;}[_0x4a2e37(0xa9)](_0xefb910){const _0x1cfcb4=_0x4a2e37;return Boolean(_0x2d0259(_0xefb910)&&_0x236338(_0xefb910)[_0x1cfcb4(0xa1)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x2fb9aa=_0x42aa;(function(_0x1cbdc4,_0x435651){const _0x17fb1f=_0x42aa,_0x286f4b=_0x1cbdc4();while(!![]){try{const _0xc50e0=parseInt(_0x17fb1f(0x1c2))/0x1*(-parseInt(_0x17fb1f(0x1d9))/0x2)+parseInt(_0x17fb1f(0x1cb))/0x3*(parseInt(_0x17fb1f(0x1dc))/0x4)+-parseInt(_0x17fb1f(0x1ef))/0x5+parseInt(_0x17fb1f(0x1e6))/0x6+-parseInt(_0x17fb1f(0x1d5))/0x7*(-parseInt(_0x17fb1f(0x1b1))/0x8)+parseInt(_0x17fb1f(0x1dd))/0x9*(parseInt(_0x17fb1f(0x1bf))/0xa)+-parseInt(_0x17fb1f(0x1cd))/0xb;if(_0xc50e0===_0x435651)break;else _0x286f4b['push'](_0x286f4b['shift']());}catch(_0x1b8d7d){_0x286f4b['push'](_0x286f4b['shift']());}}}(_0x177e,0x6c2f8));function _0x42aa(_0x21c908,_0x2edb70){const _0x177efd=_0x177e();return _0x42aa=function(_0x42aadb,_0x4af54c){_0x42aadb=_0x42aadb-0x1a9;let _0x445882=_0x177efd[_0x42aadb];return _0x445882;},_0x42aa(_0x21c908,_0x2edb70);}import{ObservableMixin as _0x5c429e,uid as _0x39de47}from'ckeditor5/src/utils.js';function _0x177e(){const _0x52c8c3=['map','new-element','slice','664728erQtma','_existingDataIds','_insertNodes','_generateUid','markUnstableElementsDepth','_storeDeletedElementIds','afterbegin','_findPrevElementWithDataId','_findNextElementWithDataId','1634100vMFbbi','data-removed','nodeType','data-unstable','includes','_isExistingNode','_markUnstableElements','match','_findReferenceNode','lastChild','8lhDFBS','beforebegin','removedIds','invalidIds','indexOf','merge','_touchedNodesState','_markLastTagElementUnstable','afterend','length','has','_findFallbackReferenceNode','_isDelNode','cloneNode','249950SGJvGJ','_removeSpecialComments','from','190367wPCHbi','_hasWrappedParent','replaceRemovedWith','reverse','_markWrappedElements','forEach','data-wrapped-id','nextSibling','_isExistingContentComment','1108284dUCNOs','trim','5550248pcUNDM','childNodes','newIds','lastTouchedId','true','markUnstableElements','modifiedIds','cutAfterLastChange','4793089XaPgxy','data-id','splice','_getNodeDataId','2RxqFXv','filter','previousSibling','4WZULZr','108wRAIqF','parentNode','_isNewNode','_getUid','push','_replaceNode'];_0x177e=function(){return _0x52c8c3;};return _0x177e();}import{findAllByAttribute as _0x36c99f,findByAttribute as _0x357e2d,getAttribute as _0x2ad3fd,isComment as _0x36eef7,isTag as _0x328a22,insertElement as _0x466d82,moveElement as _0x574358,removeElement as _0x149f9c,replaceElement as _0x2ef022,serialize as _0x5a9b3b,setAttribute as _0x8dee3c,clone as _0x3880b6,findAllComments as _0x10a01b,getParents as _0x5ace6b,getNodeNestingLevel as _0x58d003,areNodesSame as _0x43e662,removeElementsAfter as _0x159905}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5c429e(){[_0x2fb9aa(0x1e9)];[_0x2fb9aa(0x1b7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2fb9aa(0x1e7)]=new Set();constructor(_0x29124b){const _0x16a889=_0x2fb9aa;super(),this[_0x16a889(0x1e9)]=_0x29124b||_0x39de47;}[_0x2fb9aa(0x1b6)](_0x3215ab,_0xf33d81,_0x423b85){const _0x3fb2de=_0x2fb9aa,_0x1e74ba=_0x3880b6(_0x3215ab);if(0x0===_0xf33d81[_0x3fb2de(0x1ce)][_0x3fb2de(0x1ba)]){const _0x393375=[];return _0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0x1e74ba)[_0x3fb2de(0x1c7)](_0x13ac02=>{const _0x1371f9=_0x3fb2de,_0xd91d63=this[_0x1371f9(0x1e9)]();_0x8dee3c(_0x13ac02,_0x1371f9(0x1d6),_0xd91d63),_0x393375[_0x1371f9(0x1e1)](_0xd91d63);}),this[_0x3fb2de(0x1c0)](_0x1e74ba),{'parsedContent':_0x1e74ba,'newNodeIds':_0x393375,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1b8)](_0x1e74ba),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b4)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=null,this[_0x3fb2de(0x1e7)]=new Set(_0x36c99f(_0x3fb2de(0x1d6),null,_0xf33d81)[_0x3fb2de(0x1e3)](_0x50787f=>_0x2ad3fd(_0x50787f,_0x3fb2de(0x1d6)))[_0x3fb2de(0x1da)](_0x1e9167=>!!_0x1e9167));let _0x28a153=-0x1,_0x443618=!0x1;const _0x500c25=_0x1e74ba[_0x3fb2de(0x1ce)],_0x167230=Array[_0x3fb2de(0x1c1)](_0x500c25)[_0x3fb2de(0x1da)](_0x3cf47b=>!(0x3===_0x3cf47b[_0x3fb2de(0x1a9)]&&''===_0x5a9b3b(_0x3cf47b)[_0x3fb2de(0x1cc)]())),_0x4a2335=_0x167230[_0x3fb2de(0x1ba)];for(let _0x53a65a=0x0;_0x53a65a<_0x4a2335;_0x53a65a++){const _0x33b615=_0x167230[_0x53a65a],_0x24cacd=_0x167230[_0x53a65a+0x1];if(this[_0x3fb2de(0x1df)](_0x33b615)){if(-0x1===_0x28a153&&(_0x28a153=_0x53a65a),this[_0x3fb2de(0x1c6)](_0x33b615),!this[_0x3fb2de(0x1df)](_0x24cacd)){const [_0x4f5ee2,_0x541e1e]=this[_0x3fb2de(0x1af)](_0x33b615,_0x443618,_0xf33d81);if(_0x4f5ee2){const _0x458df6=Array[_0x3fb2de(0x1c1)](_0x167230)[_0x3fb2de(0x1e5)](_0x28a153,_0x53a65a+0x1);this[_0x3fb2de(0x1e8)](_0x4f5ee2,_0x458df6,_0x541e1e),_0x28a153=-0x1;}}}else{if(this[_0x3fb2de(0x1ca)](_0x33b615))_0x443618=!0x0;else{if(this[_0x3fb2de(0x1ac)](_0x33b615)){const _0x36aa24=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));if(_0x36aa24&&this[_0x3fb2de(0x1e7)][_0x3fb2de(0x1bb)](_0x36aa24)){const _0xe62f5f=_0x357e2d(_0x3fb2de(0x1d6),_0x36aa24,_0xf33d81);this[_0x3fb2de(0x1e2)](_0xe62f5f,_0x33b615);}if(this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1ab)](_0x36aa24)){const _0x28700a=this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1b5)](_0x36aa24);this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1d7)](_0x28700a,0x1);}}else{if(this[_0x3fb2de(0x1bd)](_0x33b615)){const _0x2231e8=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)][_0x3fb2de(0x1ab)](_0x2231e8)||this[_0x3fb2de(0x1eb)](_0x33b615);}}}}}for(const _0x5abcd6 of this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]){const _0x397475=_0x357e2d(_0x3fb2de(0x1d6),_0x5abcd6,_0xf33d81);if(_0x397475){if(_0x423b85&&_0x423b85[_0x3fb2de(0x1c4)]){this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=_0x5abcd6;const _0x170b70=_0x423b85[_0x3fb2de(0x1c4)][_0x3fb2de(0x1be)](!0x0);_0x8dee3c(_0x170b70,_0x3fb2de(0x1d6),_0x5abcd6),_0x8dee3c(_0x170b70,_0x3fb2de(0x1f0),_0x3fb2de(0x1d1)),_0x2ef022(_0x397475,_0x170b70);}else _0x149f9c(_0x397475);}}if(_0x36c99f(_0x3fb2de(0x1c8),null,_0xf33d81)[_0x3fb2de(0x1c7)](_0x1cb67d=>{const _0x48d2a2=_0x3fb2de,_0x3a86ab=_0x2ad3fd(_0x1cb67d,_0x48d2a2(0x1c8)),_0x5d4c19=_0x357e2d(_0x48d2a2(0x1d6),_0x3a86ab,_0xf33d81);_0x5d4c19&&_0x574358(_0x5d4c19,_0x1cb67d);}),_0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0xf33d81)[_0x3fb2de(0x1c7)](_0x52323a=>{const _0x348e81=_0x3fb2de,_0x3eec3f=this[_0x348e81(0x1e0)](_0x52323a);_0x8dee3c(_0x52323a,_0x348e81(0x1d6),_0x3eec3f),this[_0x348e81(0x1b7)][_0x348e81(0x1cf)][_0x348e81(0x1e1)](_0x3eec3f);}),this[_0x3fb2de(0x1c0)](_0xf33d81),_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1ad)](_0xf33d81,_0x423b85[_0x3fb2de(0x1ea)]||0x0),_0x423b85&&_0x423b85[_0x3fb2de(0x1d4)]&&this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]){let _0x4fa3ab=_0x357e2d(_0x3fb2de(0x1d6),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)],_0xf33d81);for(;_0x4fa3ab;)_0x159905(_0x4fa3ab),_0x4fa3ab=_0x4fa3ab[_0x3fb2de(0x1de)];}return{'parsedContent':_0xf33d81,'newNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)],'modifiedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)],'removedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]};}[_0x2fb9aa(0x1e8)](_0x51ea49,_0x17a60d,_0x3f2240){const _0x3ecb8f=_0x2fb9aa;for(const _0xe03194 of _0x17a60d){const _0x190284=this[_0x3ecb8f(0x1e0)](_0xe03194);_0x8dee3c(_0xe03194,_0x3ecb8f(0x1d6),_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1cf)][_0x3ecb8f(0x1e1)](_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1d0)]=_0x190284;}const _0x24fbe9=_0x3ecb8f(0x1ec)===_0x3f2240||_0x3ecb8f(0x1b9)===_0x3f2240?_0x17a60d[_0x3ecb8f(0x1c5)]():_0x17a60d;for(const _0xd4a2dd of _0x24fbe9)_0x466d82(_0x51ea49,_0xd4a2dd,_0x3f2240);}[_0x2fb9aa(0x1e2)](_0xacbd92,_0x2fb5e2){const _0x2eff93=_0x2fb9aa;if(!_0xacbd92)return;if(_0x43e662(_0xacbd92,_0x2fb5e2))return;const _0x275a6a=this[_0x2eff93(0x1e0)](_0xacbd92);_0x8dee3c(_0x2fb5e2,_0x2eff93(0x1d6),_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d3)][_0x2eff93(0x1e1)](_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d0)]=_0x275a6a,_0x2ef022(_0xacbd92,_0x2fb5e2[_0x2eff93(0x1be)](!0x0));}[_0x2fb9aa(0x1af)](_0x16c52e,_0x13e639,_0x3f5154){const _0x362dbe=_0x2fb9aa,_0x80903a=this[_0x362dbe(0x1ed)](_0x16c52e,!0x1);if(_0x80903a){const _0x2396bb=this[_0x362dbe(0x1d8)](_0x80903a),_0x49b439=_0x357e2d(_0x362dbe(0x1d6),_0x2396bb,_0x3f5154);if(_0x49b439)return[_0x49b439,_0x362dbe(0x1b9)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x2396bb);}const _0x5f3859=this[_0x362dbe(0x1ee)](_0x16c52e,!0x1);if(_0x5f3859){const _0x1fd63e=this[_0x362dbe(0x1d8)](_0x5f3859),_0x28b3e9=_0x357e2d(_0x362dbe(0x1d6),_0x1fd63e,_0x3f5154);if(_0x28b3e9)return[_0x28b3e9,_0x362dbe(0x1b2)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x1fd63e);}return _0x13e639?_0x16c52e[_0x362dbe(0x1c9)]?this[_0x362dbe(0x1bc)](_0x16c52e,_0x3f5154):[_0x3f5154[_0x362dbe(0x1ce)][_0x3f5154[_0x362dbe(0x1ce)][_0x362dbe(0x1ba)]-0x1],_0x362dbe(0x1b9)]:[_0x3f5154[_0x362dbe(0x1ce)][0x0],_0x362dbe(0x1b2)];}[_0x2fb9aa(0x1bc)](_0x302b2b,_0x3fd188){const _0x44ff4a=_0x2fb9aa,_0x3c1ae4=[],_0x1c73a9=this[_0x44ff4a(0x1ed)](_0x302b2b,!0x0);if(_0x1c73a9){const _0x17ce32=this[_0x44ff4a(0x1d8)](_0x1c73a9),_0x10a23f=_0x357e2d(_0x44ff4a(0x1d6),_0x17ce32,_0x3fd188);_0x10a23f&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x10a23f,_0x44ff4a(0x1b9)]);}const _0x30d5a5=this[_0x44ff4a(0x1ee)](_0x302b2b,!0x0);if(_0x30d5a5){const _0x530940=this[_0x44ff4a(0x1d8)](_0x30d5a5),_0x3b8dc3=_0x357e2d(_0x44ff4a(0x1d6),_0x530940,_0x3fd188);_0x3b8dc3&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x3b8dc3,_0x44ff4a(0x1b2)]);}if(_0x3c1ae4[_0x44ff4a(0x1ba)]>0x1)return _0x58d003(_0x3c1ae4[0x0][0x0])<=_0x58d003(_0x3c1ae4[0x1][0x0])?_0x3c1ae4[0x0]:_0x3c1ae4[0x1];return 0x1===_0x3c1ae4[_0x44ff4a(0x1ba)]?_0x3c1ae4[0x0]:[_0x3fd188[_0x44ff4a(0x1b0)],_0x44ff4a(0x1b9)];}[_0x2fb9aa(0x1ee)](_0x28240a,_0x58ec6b){const _0x1b507a=_0x2fb9aa;let _0x42eff=_0x28240a[_0x1b507a(0x1c9)],_0x5ceb86=null,_0x42e855=!0x1;for(;_0x42eff;){if(_0x36eef7(_0x42eff)){if(this[_0x1b507a(0x1bd)](_0x42eff)&&(_0x5ceb86=_0x42eff),this[_0x1b507a(0x1ca)](_0x42eff)&&_0x58ec6b&&!_0x42e855){_0x42e855=!0x0,_0x42eff=_0x42eff[_0x1b507a(0x1c9)];continue;}break;}const _0x1a53dc=_0x2ad3fd(_0x42eff,_0x1b507a(0x1d6));if(_0x1a53dc&&_0x1b507a(0x1e4)!==_0x1a53dc&&this[_0x1b507a(0x1e7)][_0x1b507a(0x1bb)](_0x1a53dc)){_0x5ceb86=_0x42eff;break;}_0x42eff=_0x42eff[_0x1b507a(0x1c9)];}return _0x5ceb86;}[_0x2fb9aa(0x1ed)](_0x52c262,_0x302f12){const _0x5ebb7a=_0x2fb9aa;let _0x238715=_0x52c262[_0x5ebb7a(0x1db)],_0x1bc8a1=null,_0x3aae12=!0x1;for(;_0x238715;){if(_0x36eef7(_0x238715)){if(this[_0x5ebb7a(0x1bd)](_0x238715)&&(_0x1bc8a1=_0x238715),this[_0x5ebb7a(0x1ca)](_0x238715)&&_0x302f12&&!_0x3aae12){_0x3aae12=!0x0,_0x238715=_0x238715[_0x5ebb7a(0x1db)];continue;}break;}const _0x599c25=_0x2ad3fd(_0x238715,_0x5ebb7a(0x1d6));if(_0x599c25&&_0x5ebb7a(0x1e4)!==_0x599c25&&this[_0x5ebb7a(0x1e7)][_0x5ebb7a(0x1bb)](_0x599c25)){_0x1bc8a1=_0x238715;break;}_0x238715=_0x238715[_0x5ebb7a(0x1db)];}return _0x1bc8a1;}[_0x2fb9aa(0x1c6)](_0x3419e7){const _0x2eca8f=_0x2fb9aa;_0x328a22(_0x3419e7)&&_0x36c99f(_0x2eca8f(0x1d6),null,_0x3419e7)[_0x2eca8f(0x1c7)](_0x13ee5e=>{const _0x2debd6=_0x2eca8f;if(this[_0x2debd6(0x1ac)](_0x13ee5e)&&!this[_0x2debd6(0x1c3)](_0x13ee5e)){const _0x291729=_0x2ad3fd(_0x13ee5e,_0x2debd6(0x1d6));_0x8dee3c(_0x13ee5e,_0x2debd6(0x1c8),_0x291729),_0x8dee3c(_0x13ee5e,_0x2debd6(0x1d6),null);}});}[_0x2fb9aa(0x1d8)](_0x373510){const _0x1687a7=_0x2fb9aa;if(!_0x373510)return null;if(_0x328a22(_0x373510))return _0x2ad3fd(_0x373510,_0x1687a7(0x1d6));if(_0x36eef7(_0x373510)){const _0x3b8981=_0x5a9b3b(_0x373510)[_0x1687a7(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3b8981&&_0x3b8981[0x1])return _0x3b8981[0x1];}return null;}[_0x2fb9aa(0x1eb)](_0x3fb016){const _0x2097df=_0x2fb9aa;if(_0x36eef7(_0x3fb016)){const _0x141558=_0x5a9b3b(_0x3fb016)[_0x2097df(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);_0x141558&&_0x141558[0x1]&&this[_0x2097df(0x1b7)][_0x2097df(0x1b3)][_0x2097df(0x1e1)](_0x141558[0x1]);}}[_0x2fb9aa(0x1e0)](_0x348353){const _0x1b0b6f=_0x2fb9aa;return this[_0x1b0b6f(0x1ac)](_0x348353)?_0x2ad3fd(_0x348353,_0x1b0b6f(0x1d6)):this[_0x1b0b6f(0x1e9)]();}[_0x2fb9aa(0x1c0)](_0x2e3c11){const _0x54fec4=_0x2fb9aa;_0x10a01b(_0x2e3c11)[_0x54fec4(0x1da)](_0x127637=>this[_0x54fec4(0x1bd)](_0x127637)||this[_0x54fec4(0x1ca)](_0x127637))[_0x54fec4(0x1c7)](_0x2c0c1f=>{_0x149f9c(_0x2c0c1f);});}[_0x2fb9aa(0x1b8)](_0x4109a4){const _0x59f71f=_0x2fb9aa,_0x20d254=_0x4109a4[_0x59f71f(0x1ce)],_0x46c707=_0x20d254[_0x20d254[_0x59f71f(0x1ba)]-0x1];_0x46c707&&_0x328a22(_0x46c707)&&_0x8dee3c(_0x46c707,_0x59f71f(0x1aa),_0x59f71f(0x1d1));}[_0x2fb9aa(0x1ad)](_0x353b50,_0x57f344){const _0xfcbef6=_0x2fb9aa,_0x5e0c82=_0x357e2d(_0xfcbef6(0x1aa),_0xfcbef6(0x1d1),_0x353b50);if(!_0x5e0c82)return;const _0x4c10be=_0x5ace6b(_0x5e0c82)[_0xfcbef6(0x1e5)](0x0,-0x1),_0x5ba3b1=_0x4c10be[_0xfcbef6(0x1ba)];let _0x4f34a9=_0x5e0c82;if(_0x5ba3b1>_0x57f344){let _0x256aab=_0x5ba3b1,_0x56bf95=null;for(;_0x256aab>_0x57f344&&_0x256aab>=0x0;)_0x256aab--,_0x56bf95=_0x4c10be[_0x256aab];_0x56bf95&&(_0x4f34a9=_0x56bf95,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0x56bf95,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}else{if(_0x5ba3b1<_0x57f344){let _0x277292=_0x5ba3b1,_0xcfd737=_0x5e0c82;for(;_0x277292<_0x57f344;){const _0x17e2e5=_0xcfd737[_0xfcbef6(0x1ce)][_0xfcbef6(0x1da)](_0x4b9b43=>_0x328a22(_0x4b9b43));if(0x0===_0x17e2e5[_0xfcbef6(0x1ba)])break;_0x277292++,_0xcfd737=_0x17e2e5[_0x17e2e5[_0xfcbef6(0x1ba)]-0x1];}_0xcfd737&&(_0x4f34a9=_0xcfd737,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0xcfd737,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}}let _0x4af2dd=_0x4f34a9;for(;_0x4af2dd;){for(;_0x4af2dd[_0xfcbef6(0x1c9)];)_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1c9)],_0x328a22(_0x4af2dd)&&_0x8dee3c(_0x4af2dd,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1));_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1de)];}}[_0x2fb9aa(0x1df)](_0x6a67){const _0x4c1850=_0x2fb9aa;return Boolean(_0x4c1850(0x1e4)===_0x2ad3fd(_0x6a67,_0x4c1850(0x1d6)));}[_0x2fb9aa(0x1ac)](_0x3d667a){const _0x347163=_0x2fb9aa;return Boolean((_0x2ad3fd(_0x3d667a,_0x347163(0x1d6))||'')[_0x347163(0x1ba)]>0x0&&_0x347163(0x1e4)!==_0x2ad3fd(_0x3d667a,_0x347163(0x1d6)));}[_0x2fb9aa(0x1bd)](_0x71d5ff){const _0x4afe2b=_0x2fb9aa;return!!_0x71d5ff&&Boolean(_0x36eef7(_0x71d5ff)&&_0x5a9b3b(_0x71d5ff)[_0x4afe2b(0x1ae)](/removed[\s*-]data-id="[^"]+"/));}[_0x2fb9aa(0x1c3)](_0x11e7f7){const _0xa36288=_0x2fb9aa;let _0x32a2b9=_0x11e7f7[_0xa36288(0x1de)];for(;_0x32a2b9;){if(_0x2ad3fd(_0x32a2b9,_0xa36288(0x1c8)))return!0x0;_0x32a2b9=_0x32a2b9[_0xa36288(0x1de)];}return!0x1;}[_0x2fb9aa(0x1ca)](_0x44f1ee){const _0x16af98=_0x2fb9aa;return Boolean(_0x36eef7(_0x44f1ee)&&_0x5a9b3b(_0x44f1ee)[_0x16af98(0x1ae)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b871b=_0x431b;function _0x431b(_0x371126,_0x1cc7c2){const _0x2875dc=_0x2875();return _0x431b=function(_0x431b03,_0x29c6bf){_0x431b03=_0x431b03-0xce;let _0x1773b6=_0x2875dc[_0x431b03];return _0x1773b6;},_0x431b(_0x371126,_0x1cc7c2);}(function(_0x1cc02c,_0x2ba57d){const _0xcd2d6c=_0x431b,_0x2047b5=_0x1cc02c();while(!![]){try{const _0x378b6a=parseInt(_0xcd2d6c(0xdc))/0x1*(parseInt(_0xcd2d6c(0xce))/0x2)+-parseInt(_0xcd2d6c(0xd2))/0x3*(-parseInt(_0xcd2d6c(0xd1))/0x4)+-parseInt(_0xcd2d6c(0xd3))/0x5*(-parseInt(_0xcd2d6c(0xd4))/0x6)+parseInt(_0xcd2d6c(0xdd))/0x7+parseInt(_0xcd2d6c(0xdb))/0x8+parseInt(_0xcd2d6c(0xdf))/0x9+parseInt(_0xcd2d6c(0xd7))/0xa*(-parseInt(_0xcd2d6c(0xe1))/0xb);if(_0x378b6a===_0x2ba57d)break;else _0x2047b5['push'](_0x2047b5['shift']());}catch(_0x223149){_0x2047b5['push'](_0x2047b5['shift']());}}}(_0x2875,0x8cb6a));import{ObservableMixin as _0x348bb1}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x32c1c6}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x28b068}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x348bb1(){[_0x1b871b(0xcf)];constructor(){const _0x53fb0e=_0x1b871b;super(),this[_0x53fb0e(0xcf)]=new _0x32c1c6();}[_0x1b871b(0xd8)](_0x21647c){const _0x54849d=_0x1b871b,_0x262f4a=this[_0x54849d(0xcf)][_0x54849d(0xd5)](_0x21647c);return this[_0x54849d(0xda)](_0x262f4a);}[_0x1b871b(0xda)](_0x59bdc8){const _0x40eb60=_0x1b871b;return this[_0x40eb60(0xd9)](_0x59bdc8);}[_0x1b871b(0xd9)](_0x54163c){const _0x1a641e=_0x1b871b,_0x36e099=_0x54163c[_0x1a641e(0xd0)](/^\t+/gm,'\x20')[_0x1a641e(0xd0)](/\n*/g,'')[_0x1a641e(0xd0)](/\s+/g,'\x20')[_0x1a641e(0xd0)](/<[^>]*?$/g,''),_0x35b4c7=_0x28b068(_0x1a641e(0xe0)+_0x36e099+_0x1a641e(0xd6));return _0x35b4c7[_0x1a641e(0xde)]=_0x35b4c7[_0x1a641e(0xde)][0x0][_0x1a641e(0xde)],_0x35b4c7;}}function _0x2875(){const _0x13282e=['20965qnqzPz','1272mbwIlu','parse','</dummy>','10bwYlge','convertMarkdownToHTML','_parseHTML','parseAndNormalizeHTML','6963112brgnhO','163zZPdin','1992809hswcLV','children','6039729QmRqeX','<dummy>','35747690imTfWM','1654oPXaug','_m2html','replace','12pnqYkp','976278rfMNWs'];_0x2875=function(){return _0x13282e;};return _0x2875();}
23
+ function _0x4cd3(_0x56e982,_0x522628){const _0x2a6325=_0x2a63();return _0x4cd3=function(_0x4cd34a,_0xa13325){_0x4cd34a=_0x4cd34a-0x1e0;let _0x5f0231=_0x2a6325[_0x4cd34a];return _0x5f0231;},_0x4cd3(_0x56e982,_0x522628);}const _0x329b22=_0x4cd3;function _0x2a63(){const _0x4b5649=['9652860qqkoPm','replace','</dummy>','28JuouqC','parseAndNormalizeHTML','children','2984527aBYtzF','parse','<dummy>','1685325HqLWhq','215536zBMOCJ','23665zVwyvf','1398glzjnZ','_parseHTML','_m2html','8QRaHSp','convertMarkdownToHTML','3221307OWfYnR','43691qHYxSB'];_0x2a63=function(){return _0x4b5649;};return _0x2a63();}(function(_0x2437e0,_0x118ad3){const _0x2a17d2=_0x4cd3,_0x4392e7=_0x2437e0();while(!![]){try{const _0x311e83=-parseInt(_0x2a17d2(0x1e3))/0x1*(parseInt(_0x2a17d2(0x1e7))/0x2)+parseInt(_0x2a17d2(0x1ed))/0x3+parseInt(_0x2a17d2(0x1ee))/0x4+parseInt(_0x2a17d2(0x1ef))/0x5*(-parseInt(_0x2a17d2(0x1f0))/0x6)+parseInt(_0x2a17d2(0x1ea))/0x7+-parseInt(_0x2a17d2(0x1e0))/0x8*(-parseInt(_0x2a17d2(0x1e2))/0x9)+parseInt(_0x2a17d2(0x1e4))/0xa;if(_0x311e83===_0x118ad3)break;else _0x4392e7['push'](_0x4392e7['shift']());}catch(_0x57b4a){_0x4392e7['push'](_0x4392e7['shift']());}}}(_0x2a63,0x9ee0e));import{ObservableMixin as _0x574c7f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x17fb03}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4984d4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x574c7f(){[_0x329b22(0x1f2)];constructor(){const _0x30daa1=_0x329b22;super(),this[_0x30daa1(0x1f2)]=new _0x17fb03();}[_0x329b22(0x1e1)](_0x2c341a){const _0x4e35e3=_0x329b22,_0xddb7fc=this[_0x4e35e3(0x1f2)][_0x4e35e3(0x1eb)](_0x2c341a);return this[_0x4e35e3(0x1e8)](_0xddb7fc);}[_0x329b22(0x1e8)](_0x28b26b){const _0x4c2ced=_0x329b22;return this[_0x4c2ced(0x1f1)](_0x28b26b);}[_0x329b22(0x1f1)](_0x49b8af){const _0x7ace22=_0x329b22,_0x1bd74c=_0x49b8af[_0x7ace22(0x1e5)](/^\t+/gm,'\x20')[_0x7ace22(0x1e5)](/\n*/g,'')[_0x7ace22(0x1e5)](/\s+/g,'\x20')[_0x7ace22(0x1e5)](/<[^>]*?$/g,''),_0x51c0dc=_0x4984d4(_0x7ace22(0x1ec)+_0x1bd74c+_0x7ace22(0x1e6));return _0x51c0dc[_0x7ace22(0x1e9)]=_0x51c0dc[_0x7ace22(0x1e9)][0x0][_0x7ace22(0x1e9)],_0x51c0dc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3f99(_0xbf465f,_0x388e0d){var _0x2bf15a=_0x2bf1();return _0x3f99=function(_0x3f9904,_0x5eddcb){_0x3f9904=_0x3f9904-0x126;var _0x496106=_0x2bf15a[_0x3f9904];return _0x496106;},_0x3f99(_0xbf465f,_0x388e0d);}(function(_0x308ad4,_0x18b2b9){var _0x3de81d=_0x3f99,_0x2271b0=_0x308ad4();while(!![]){try{var _0x25a7e4=-parseInt(_0x3de81d(0x131))/0x1+parseInt(_0x3de81d(0x132))/0x2*(parseInt(_0x3de81d(0x12b))/0x3)+parseInt(_0x3de81d(0x12a))/0x4+-parseInt(_0x3de81d(0x128))/0x5*(parseInt(_0x3de81d(0x126))/0x6)+-parseInt(_0x3de81d(0x127))/0x7+parseInt(_0x3de81d(0x12e))/0x8+parseInt(_0x3de81d(0x134))/0x9*(parseInt(_0x3de81d(0x129))/0xa);if(_0x25a7e4===_0x18b2b9)break;else _0x2271b0['push'](_0x2271b0['shift']());}catch(_0x4864d5){_0x2271b0['push'](_0x2271b0['shift']());}}}(_0x2bf1,0x973fd));import{View as _0x58c63e}from'ckeditor5/src/ui.js';import{getTranslation as _0x1727a6}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x2bf1(){var _0x226bb9=['25710vxUTwy','3318520tzBRyz','3489iYEhbc','ck-ai-disclaimer__content','div','3215584OwkWCX','AI_DISCLAIMER_TEXT','ck-ai-disclaimer','906666zTtRyX','24uOgDml','setTemplate','6669kPcUlF','520008wPvvSr','7124502hFPxcL','35vujjTk'];_0x2bf1=function(){return _0x226bb9;};return _0x2bf1();}export class AIDisclaimerView extends _0x58c63e{constructor(_0x19f422){var _0x192a32=_0x3f99;super(_0x19f422),this[_0x192a32(0x133)]({'tag':_0x192a32(0x12d),'attributes':{'class':['ck',_0x192a32(0x130)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x192a32(0x12c)]},'children':[{'text':_0x1727a6(_0x19f422,_0x192a32(0x12f))}]}]});}}
23
+ function _0x40c9(_0x3dd440,_0x79887f){var _0x34fed8=_0x34fe();return _0x40c9=function(_0x40c919,_0x2db29d){_0x40c919=_0x40c919-0x89;var _0x1d6f44=_0x34fed8[_0x40c919];return _0x1d6f44;},_0x40c9(_0x3dd440,_0x79887f);}(function(_0x499ac6,_0x1cdc99){var _0x33b264=_0x40c9,_0x1f07ba=_0x499ac6();while(!![]){try{var _0x4ff172=parseInt(_0x33b264(0x8f))/0x1+-parseInt(_0x33b264(0x8d))/0x2+parseInt(_0x33b264(0x8c))/0x3+parseInt(_0x33b264(0x90))/0x4*(parseInt(_0x33b264(0x8b))/0x5)+-parseInt(_0x33b264(0x95))/0x6*(-parseInt(_0x33b264(0x96))/0x7)+-parseInt(_0x33b264(0x91))/0x8+parseInt(_0x33b264(0x89))/0x9;if(_0x4ff172===_0x1cdc99)break;else _0x1f07ba['push'](_0x1f07ba['shift']());}catch(_0x1ab635){_0x1f07ba['push'](_0x1f07ba['shift']());}}}(_0x34fe,0xc9223));import{View as _0x2d7884}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d2612}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2d7884{constructor(_0x35b081){var _0xd52287=_0x40c9;super(_0x35b081),this[_0xd52287(0x8a)]({'tag':_0xd52287(0x93),'attributes':{'class':['ck',_0xd52287(0x94)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xd52287(0x92)]},'children':[{'text':_0x2d2612(_0x35b081,_0xd52287(0x8e))}]}]});}}function _0x34fe(){var _0x5bb71a=['119fVnMFH','8737911YCLZOG','setTemplate','2789435fMxJow','1744503YaBOHg','2279974IUUvxs','AI_DISCLAIMER_TEXT','141537omLqhB','8uNKOyF','9215976NDQFjJ','ck-ai-disclaimer__content','div','ck-ai-disclaimer','108048IMNqdB'];_0x34fe=function(){return _0x5bb71a;};return _0x34fe();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x239e5c=_0x47dd;(function(_0xd0cd76,_0x3edfa8){const _0x3f6923=_0x47dd,_0x389135=_0xd0cd76();while(!![]){try{const _0x5db8bd=-parseInt(_0x3f6923(0x17e))/0x1*(-parseInt(_0x3f6923(0x168))/0x2)+parseInt(_0x3f6923(0x171))/0x3*(parseInt(_0x3f6923(0x185))/0x4)+parseInt(_0x3f6923(0x17c))/0x5*(parseInt(_0x3f6923(0x178))/0x6)+parseInt(_0x3f6923(0x169))/0x7+-parseInt(_0x3f6923(0x174))/0x8*(parseInt(_0x3f6923(0x181))/0x9)+-parseInt(_0x3f6923(0x164))/0xa+parseInt(_0x3f6923(0x176))/0xb*(-parseInt(_0x3f6923(0x162))/0xc);if(_0x5db8bd===_0x3edfa8)break;else _0x389135['push'](_0x389135['shift']());}catch(_0x4efba3){_0x389135['push'](_0x389135['shift']());}}}(_0x1f02,0x4a77d));function _0x47dd(_0x600592,_0x2979c7){const _0x1f027e=_0x1f02();return _0x47dd=function(_0x47dd3c,_0x4997b8){_0x47dd3c=_0x47dd3c-0x15f;let _0x5e6c60=_0x1f027e[_0x47dd3c];return _0x5e6c60;},_0x47dd(_0x600592,_0x2979c7);}import{View as _0x5129c1}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x5129c1{constructor(_0x4326b8,_0x4d4ea1){const _0x20dd34=_0x47dd;super(_0x4326b8),this[_0x20dd34(0x166)]({'tag':_0x20dd34(0x175),'attributes':{'class':['ck',_0x20dd34(0x187)]},'children':this[_0x20dd34(0x188)](_0x4d4ea1)});}[_0x239e5c(0x188)](_0x2a8914){const _0x39d9fd=_0x239e5c,_0x4efbc8=['ck',_0x39d9fd(0x189)];return _0x2a8914[_0x39d9fd(0x186)](_0x4647e1=>{const _0x26306d=_0x39d9fd;let _0x45f7f4='';switch(_0x4647e1[_0x26306d(0x177)][_0x26306d(0x167)]){case _0x26306d(0x184):_0x45f7f4=_0x26306d(0x180);break;case _0x26306d(0x16d):_0x45f7f4=_0x26306d(0x16e);break;case _0x26306d(0x16f):_0x45f7f4=_0x26306d(0x16c);}return{'tag':_0x4647e1[_0x26306d(0x179)],'attributes':{'class':[..._0x4efbc8,_0x4647e1[_0x26306d(0x177)][_0x26306d(0x183)]?_0x4647e1[_0x26306d(0x177)][_0x26306d(0x183)]:''],'style':_0x26306d(0x16a)+_0x4647e1[_0x26306d(0x177)][_0x26306d(0x16b)]+_0x26306d(0x173)+_0x4647e1[_0x26306d(0x177)][_0x26306d(0x161)]+';'+_0x45f7f4}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17b),'height':_0x239e5c(0x182),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17f),'height':_0x239e5c(0x15f),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17b),'height':_0x239e5c(0x17a),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17d),'height':_0x239e5c(0x15f),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17b),'height':_0x239e5c(0x170),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17f),'height':_0x239e5c(0x15f),'align':_0x239e5c(0x184)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17b),'height':_0x239e5c(0x17a),'align':_0x239e5c(0x184)}}],'aiHistory':ta(0x5,_0x239e5c(0x17b),_0x239e5c(0x172),_0x239e5c(0x184)),'aiChatResources':ta(0x8,_0x239e5c(0x17b),_0x239e5c(0x165),_0x239e5c(0x184)),'aiReviewChecks':[{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x160),'height':_0x239e5c(0x165),'align':_0x239e5c(0x16f)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x17b),'height':_0x239e5c(0x165),'align':_0x239e5c(0x16f)}},{'tag':_0x239e5c(0x175),'attributes':{'width':_0x239e5c(0x160),'height':_0x239e5c(0x165),'align':_0x239e5c(0x16f)}}]};function _0x1f02(){const _0x5c7f8e=['fill','821830PzzUAt','24px','setTemplate','align','1294rFIwFM','1180893QBgxuo','width:\x20','width','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','center','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','140px','2031WtSspB','44px',';\x20height:\x20','32XHuyJn','div','351802zepwvl','attributes','4104LbqNEF','tag','88px','100%','590bReOdV','150px','610mBZblv','250px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','702315oCqJIQ','72px','class','right','2972SigeQa','map','ck-ai-skeleton','_createSkeletonItems','ck-ai-skeleton__item','40px','128px','height','168EcbiRs'];_0x1f02=function(){return _0x5c7f8e;};return _0x1f02();}function ta(_0x142ae7,_0x2b5ee2,_0x1672f4,_0x2baaaf){const _0x27be9f=_0x239e5c;return new Array(_0x142ae7)[_0x27be9f(0x163)](null)[_0x27be9f(0x186)](()=>({'tag':_0x27be9f(0x175),'attributes':{'width':_0x2b5ee2,'height':_0x1672f4,'align':_0x2baaaf}}));}
23
+ const _0x9804cb=_0x7e9d;(function(_0x5cf9b2,_0x4a6e99){const _0x9adf33=_0x7e9d,_0x4d4019=_0x5cf9b2();while(!![]){try{const _0x153d0e=parseInt(_0x9adf33(0x101))/0x1+parseInt(_0x9adf33(0x120))/0x2+parseInt(_0x9adf33(0x11d))/0x3+parseInt(_0x9adf33(0x115))/0x4+parseInt(_0x9adf33(0x112))/0x5+parseInt(_0x9adf33(0x104))/0x6+-parseInt(_0x9adf33(0xff))/0x7*(parseInt(_0x9adf33(0x118))/0x8);if(_0x153d0e===_0x4a6e99)break;else _0x4d4019['push'](_0x4d4019['shift']());}catch(_0x50f692){_0x4d4019['push'](_0x4d4019['shift']());}}}(_0x2df7,0x57777));function _0x2df7(){const _0x5a81e7=['16806056TttfPb','height','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','fill','140px','687480hZASSx','attributes','class','757662UmoeHx','40px','_createSkeletonItems','ck-ai-skeleton__item','center','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7nyTfET','div','340845uKFfbJ','map','100%','2972832FeNoQp','150px','align',';\x20height:\x20','24px','right','ck-ai-skeleton','128px','72px','44px','88px','setTemplate','left','width','1829595diAskA','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','250px','2595172NjIDyJ','tag','width:\x20'];_0x2df7=function(){return _0x5a81e7;};return _0x2df7();}import{View as _0x2f317d}from'ckeditor5/src/ui.js';function _0x7e9d(_0x3ecc65,_0x4948ae){const _0x2df7c8=_0x2df7();return _0x7e9d=function(_0x7e9d97,_0x348ada){_0x7e9d97=_0x7e9d97-0xfb;let _0x5ef8b4=_0x2df7c8[_0x7e9d97];return _0x5ef8b4;},_0x7e9d(_0x3ecc65,_0x4948ae);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2f317d{constructor(_0x2e96c7,_0x196183){const _0x467422=_0x7e9d;super(_0x2e96c7),this[_0x467422(0x10f)]({'tag':_0x467422(0x100),'attributes':{'class':['ck',_0x467422(0x10a)]},'children':this[_0x467422(0xfb)](_0x196183)});}[_0x9804cb(0xfb)](_0x386be0){const _0x29874e=_0x9804cb,_0x4e5c7a=['ck',_0x29874e(0xfc)];return _0x386be0[_0x29874e(0x102)](_0x216fe5=>{const _0x53f81a=_0x29874e;let _0x1e1f42='';switch(_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x106)]){case _0x53f81a(0x109):_0x1e1f42=_0x53f81a(0x11a);break;case _0x53f81a(0xfd):_0x1e1f42=_0x53f81a(0xfe);break;case _0x53f81a(0x110):_0x1e1f42=_0x53f81a(0x113);}return{'tag':_0x216fe5[_0x53f81a(0x116)],'attributes':{'class':[..._0x4e5c7a,_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]?_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]:''],'style':_0x53f81a(0x117)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x111)]+_0x53f81a(0x107)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x119)]+';'+_0x1e1f42}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x105),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x11c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}}],'aiHistory':ta(0x5,_0x9804cb(0x103),_0x9804cb(0x10d),_0x9804cb(0x109)),'aiChatResources':ta(0x8,_0x9804cb(0x103),_0x9804cb(0x108),_0x9804cb(0x109)),'aiReviewChecks':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}}]};function ta(_0x1a1c47,_0x44b279,_0x515acd,_0x36b7a9){const _0x3f1e28=_0x9804cb;return new Array(_0x1a1c47)[_0x3f1e28(0x11b)](null)[_0x3f1e28(0x102)](()=>({'tag':_0x3f1e28(0x100),'attributes':{'width':_0x44b279,'height':_0x515acd,'align':_0x36b7a9}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2833d1,_0x11084b){const _0x2060d1=_0x3607,_0x500bf7=_0x2833d1();while(!![]){try{const _0x36bea6=parseInt(_0x2060d1(0x1aa))/0x1+-parseInt(_0x2060d1(0x1a1))/0x2+parseInt(_0x2060d1(0x1a9))/0x3*(-parseInt(_0x2060d1(0x1ad))/0x4)+parseInt(_0x2060d1(0x1a7))/0x5+-parseInt(_0x2060d1(0x1a3))/0x6*(parseInt(_0x2060d1(0x1a6))/0x7)+-parseInt(_0x2060d1(0x1ab))/0x8+-parseInt(_0x2060d1(0x1a5))/0x9*(-parseInt(_0x2060d1(0x1a8))/0xa);if(_0x36bea6===_0x11084b)break;else _0x500bf7['push'](_0x500bf7['shift']());}catch(_0xfd9f56){_0x500bf7['push'](_0x500bf7['shift']());}}}(_0x42ea,0xb90a1));function _0x3607(_0x5bd04f,_0x50a424){const _0x42ea01=_0x42ea();return _0x3607=function(_0x360797,_0x3025f6){_0x360797=_0x360797-0x1a0;let _0x3d99f8=_0x42ea01[_0x360797];return _0x3d99f8;},_0x3607(_0x5bd04f,_0x50a424);}import{SpinnerView as _0xde7768}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0xde7768{constructor(_0x50ff68=void 0x0){const _0x14cfb4=_0x3607;super();const _0xa30ea1=_0x50ff68?_0x14cfb4(0x1ac)+_0x50ff68:'';this[_0x14cfb4(0x1a0)]({'tag':_0x14cfb4(0x1a2),'attributes':{'class':[_0x14cfb4(0x1a4),_0xa30ea1]}});}}function _0x42ea(){const _0x2666f4=['436737nbfKKA','6346475FaHbUn','14060kUFgmh','6873vUoQCe','975247IvICjL','9591040IYRvwn','ck-ai-spinner_','616ERTbsm','extendTemplate','726460HhlPhw','span','6VwRXqm','ck-ai-spinner','3141TQcrLc'];_0x42ea=function(){return _0x2666f4;};return _0x42ea();}
23
+ (function(_0x1ec2fd,_0x5f3e3e){const _0x47cd8a=_0x56aa,_0x156c0d=_0x1ec2fd();while(!![]){try{const _0x5e68a3=-parseInt(_0x47cd8a(0x120))/0x1+-parseInt(_0x47cd8a(0x11c))/0x2+-parseInt(_0x47cd8a(0x117))/0x3*(parseInt(_0x47cd8a(0x118))/0x4)+parseInt(_0x47cd8a(0x115))/0x5*(-parseInt(_0x47cd8a(0x11f))/0x6)+-parseInt(_0x47cd8a(0x11b))/0x7+parseInt(_0x47cd8a(0x11a))/0x8+-parseInt(_0x47cd8a(0x116))/0x9*(-parseInt(_0x47cd8a(0x113))/0xa);if(_0x5e68a3===_0x5f3e3e)break;else _0x156c0d['push'](_0x156c0d['shift']());}catch(_0x35b8f4){_0x156c0d['push'](_0x156c0d['shift']());}}}(_0x2406,0xd935b));function _0x56aa(_0x3fc3ce,_0x81fef2){const _0x24061d=_0x2406();return _0x56aa=function(_0x56aa90,_0x32d673){_0x56aa90=_0x56aa90-0x113;let _0x510cbf=_0x24061d[_0x56aa90];return _0x510cbf;},_0x56aa(_0x3fc3ce,_0x81fef2);}import{SpinnerView as _0x147ea4}from'ckeditor5/src/ui.js';function _0x2406(){const _0x27490a=['10629080UKTQIU','7640794LkpBvp','1471086SXgHdd','extendTemplate','span','42oWvreT','961123WBxFdh','56645050cGmimR','ck-ai-spinner_','1125830LOpZFF','9PULnGY','579693UmUFtB','36euTftT','ck-ai-spinner'];_0x2406=function(){return _0x27490a;};return _0x2406();}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x147ea4{constructor(_0x10c22e=void 0x0){const _0x54df05=_0x56aa;super();const _0x3bc179=_0x10c22e?_0x54df05(0x114)+_0x10c22e:'';this[_0x54df05(0x11d)]({'tag':_0x54df05(0x11e),'attributes':{'class':[_0x54df05(0x119),_0x3bc179]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d5333=_0x2f2f;(function(_0x4f080b,_0x57476e){const _0x3c561f=_0x2f2f,_0x568c5d=_0x4f080b();while(!![]){try{const _0x2d470c=parseInt(_0x3c561f(0xa9))/0x1*(parseInt(_0x3c561f(0xce))/0x2)+parseInt(_0x3c561f(0xa8))/0x3+-parseInt(_0x3c561f(0xb0))/0x4*(-parseInt(_0x3c561f(0xcf))/0x5)+parseInt(_0x3c561f(0xa6))/0x6*(parseInt(_0x3c561f(0xd6))/0x7)+parseInt(_0x3c561f(0xa7))/0x8+parseInt(_0x3c561f(0xca))/0x9+-parseInt(_0x3c561f(0xd4))/0xa;if(_0x2d470c===_0x57476e)break;else _0x568c5d['push'](_0x568c5d['shift']());}catch(_0x3d274a){_0x568c5d['push'](_0x568c5d['shift']());}}}(_0x4d06,0x4f8a2));function _0x2f2f(_0x5364df,_0x3cc914){const _0x4d0631=_0x4d06();return _0x2f2f=function(_0x2f2f66,_0x4f8ba3){_0x2f2f66=_0x2f2f66-0xa5;let _0x2e97d8=_0x4d0631[_0x2f2f66];return _0x2e97d8;},_0x2f2f(_0x5364df,_0x3cc914);}import{ButtonView as _0x307eb8,IconView as _0x4b8f04,ToolbarView as _0x2a2580}from'ckeditor5/src/ui.js';import{IconCheck as _0x53f122,IconCopy as _0x4f3914,IconShowChangesOff as _0x2e2e62,IconShowChangesOn as _0x176885,IconThumbDown as _0x3ab8b8,IconThumbUp as _0x59a916}from'@ckeditor/ckeditor5-icons';function _0x4d06(){const _0x502be2=['69870JFAyAw','113070dhRhud','_config','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','icon','_setupShowChangesButton','7612670bFnIbD','length','49LtNxjI','execute','AI_MINI_TOOLBAR_DISLIKE','full','children','bind','50658nucAmN','764608TbTDwY','221217kCSCEe','11RuJujZ','ck-ai-mini-toolbar-copy-button','items','locale','ck-ai-mini-toolbar\x20ck-hidden','AI_MINI_TOOLBAR_LIKE','extendTemplate','56WdVoUs','showChanges','showChangesButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','toggleShowChanges','isOn','showLike','_setupRatingButtons','ck-ai-mini-toolbar','add','isShowChangesOn','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_COPY','fire','ck-ai-button-tertiary','showCopy','copyButton','likeButton','dislikeButton','customView','dislike','_setupCopyButton','isEnabled','addMany','set','toggleShowChangesEnabled','1419876njpPmI','class','like','showDislike'];_0x4d06=function(){return _0x502be2;};return _0x4d06();}import{getTranslation as _0x20bb20}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x2a2580{[_0x2d5333(0xc0)];[_0x2d5333(0xc1)];[_0x2d5333(0xc2)];[_0x2d5333(0xb2)];[_0x2d5333(0xd0)];constructor(_0x1313cc,_0x368dd4={}){const _0x454883=_0x2d5333;super(_0x1313cc),this[_0x454883(0xc8)](_0x454883(0xc6),!0x0),this[_0x454883(0xc8)](_0x454883(0xba),!0x1),this[_0x454883(0xd0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x368dd4};const _0x43bd3b=!(this[_0x454883(0xd0)][_0x454883(0xbf)]||this[_0x454883(0xd0)][_0x454883(0xb1)]||this[_0x454883(0xd0)][_0x454883(0xb6)]||this[_0x454883(0xd0)][_0x454883(0xcd)]||this[_0x454883(0xd0)][_0x454883(0xc3)]?.[_0x454883(0xd5)]);this[_0x454883(0xcb)]=_0x43bd3b?_0x454883(0xad):_0x454883(0xb8),this[_0x454883(0xd0)][_0x454883(0xbf)]&&(this[_0x454883(0xc5)](),this[_0x454883(0xab)][_0x454883(0xb9)](this[_0x454883(0xc0)])),this[_0x454883(0xd0)][_0x454883(0xb1)]&&(this[_0x454883(0xd3)](),this[_0x454883(0xab)][_0x454883(0xb9)](this[_0x454883(0xb2)])),this[_0x454883(0xb7)](),this[_0x454883(0xd0)][_0x454883(0xb6)]&&this[_0x454883(0xab)][_0x454883(0xb9)](this[_0x454883(0xc1)]),this[_0x454883(0xd0)][_0x454883(0xcd)]&&this[_0x454883(0xab)][_0x454883(0xb9)](this[_0x454883(0xc2)]),this[_0x454883(0xd0)][_0x454883(0xc3)]&&this[_0x454883(0xab)][_0x454883(0xc7)](this[_0x454883(0xd0)][_0x454883(0xc3)]);}[_0x2d5333(0xc9)](_0x25f64f){const _0x5ba3d6=_0x2d5333;this[_0x5ba3d6(0xb2)][_0x5ba3d6(0xc6)]=_0x25f64f;}[_0x2d5333(0xb7)](){const _0xc10ca9=_0x2d5333;this[_0xc10ca9(0xc1)]=new _0x307eb8(this[_0xc10ca9(0xac)]),this[_0xc10ca9(0xc1)][_0xc10ca9(0xc8)]({'icon':_0x59a916,'label':_0x20bb20(this[_0xc10ca9(0xac)],_0xc10ca9(0xae)),'tooltip':!0x0}),this[_0xc10ca9(0xc1)][_0xc10ca9(0xa5)](_0xc10ca9(0xc6))['to'](this),this[_0xc10ca9(0xc1)]['on'](_0xc10ca9(0xd7),()=>{const _0x5f45d5=_0xc10ca9;this[_0x5f45d5(0xbd)](_0x5f45d5(0xcc));}),this[_0xc10ca9(0xc2)]=new _0x307eb8(this[_0xc10ca9(0xac)]),this[_0xc10ca9(0xc2)][_0xc10ca9(0xc8)]({'icon':_0x3ab8b8,'label':_0x20bb20(this[_0xc10ca9(0xac)],_0xc10ca9(0xd8)),'tooltip':!0x0}),this[_0xc10ca9(0xc2)][_0xc10ca9(0xa5)](_0xc10ca9(0xc6))['to'](this),this[_0xc10ca9(0xc2)]['on'](_0xc10ca9(0xd7),()=>{const _0x52f4ca=_0xc10ca9;this[_0x52f4ca(0xbd)](_0x52f4ca(0xc4));});}[_0x2d5333(0xc5)](){const _0x3c40c8=_0x2d5333;this[_0x3c40c8(0xc0)]=new _0x307eb8(this[_0x3c40c8(0xac)]),this[_0x3c40c8(0xc0)][_0x3c40c8(0xc8)]({'icon':_0x4f3914,'label':_0x20bb20(this[_0x3c40c8(0xac)],_0x3c40c8(0xbc)),'class':_0x3c40c8(0xaa),'tooltip':!0x0}),this[_0x3c40c8(0xc0)][_0x3c40c8(0xa5)](_0x3c40c8(0xc6))['to'](this);const _0x1effbd=new _0x4b8f04();_0x1effbd[_0x3c40c8(0xc8)]({'content':_0x53f122}),_0x1effbd[_0x3c40c8(0xaf)]({'attributes':{'class':[_0x3c40c8(0xbb)]}}),this[_0x3c40c8(0xc0)]['on'](_0x3c40c8(0xd7),()=>{const _0x505bcc=_0x3c40c8;this[_0x505bcc(0xc0)][_0x505bcc(0xcb)]=_0x505bcc(0xd1),setTimeout(()=>{const _0x3ed8c2=_0x505bcc;this[_0x3ed8c2(0xc0)][_0x3ed8c2(0xcb)]=_0x3ed8c2(0xaa);},0x7d0);}),this[_0x3c40c8(0xc0)][_0x3c40c8(0xda)][_0x3c40c8(0xb9)](_0x1effbd);}[_0x2d5333(0xd3)](){const _0xb52701=_0x2d5333;this[_0xb52701(0xb2)]=new _0x307eb8(this[_0xb52701(0xac)]),this[_0xb52701(0xb2)][_0xb52701(0xc8)]({'icon':_0x2e2e62,'label':_0x20bb20(this[_0xb52701(0xac)],_0xb52701(0xb3)),'withText':_0xb52701(0xd9)==this[_0xb52701(0xd0)][_0xb52701(0xb1)],'tooltip':_0xb52701(0xd9)!=this[_0xb52701(0xd0)][_0xb52701(0xb1)],'class':_0xb52701(0xbe)}),this[_0xb52701(0xb2)][_0xb52701(0xa5)](_0xb52701(0xb5))['to'](this,_0xb52701(0xba)),this[_0xb52701(0xb2)][_0xb52701(0xa5)](_0xb52701(0xc6))['to'](this),this[_0xb52701(0xb2)][_0xb52701(0xa5)](_0xb52701(0xd2))['to'](this,_0xb52701(0xba),_0x5d94b3=>_0x5d94b3?_0x176885:_0x2e2e62),this[_0xb52701(0xb2)]['on'](_0xb52701(0xd7),()=>{const _0x51817f=_0xb52701;this[_0x51817f(0xbd)](_0x51817f(0xb4));});}}
23
+ const _0x4bbf0a=_0x2bbf;(function(_0x516307,_0x2799aa){const _0x3e2833=_0x2bbf,_0x51383d=_0x516307();while(!![]){try{const _0x5cbb7f=-parseInt(_0x3e2833(0x179))/0x1+-parseInt(_0x3e2833(0x17d))/0x2*(parseInt(_0x3e2833(0x187))/0x3)+-parseInt(_0x3e2833(0x1a2))/0x4+parseInt(_0x3e2833(0x1a5))/0x5+parseInt(_0x3e2833(0x18a))/0x6*(-parseInt(_0x3e2833(0x173))/0x7)+parseInt(_0x3e2833(0x190))/0x8*(-parseInt(_0x3e2833(0x180))/0x9)+-parseInt(_0x3e2833(0x18d))/0xa*(-parseInt(_0x3e2833(0x1a1))/0xb);if(_0x5cbb7f===_0x2799aa)break;else _0x51383d['push'](_0x51383d['shift']());}catch(_0x5c679b){_0x51383d['push'](_0x51383d['shift']());}}}(_0xf313,0xace8f));function _0xf313(){const _0x19bac9=['361298MhsWQa','length','isOn','ck-ai-mini-toolbar','1265586foWwNz','set','AI_MINI_TOOLBAR_DISLIKE','81myCXMH','full','showChanges','customView','isEnabled','icon','_setupRatingButtons','3CMrbfE','fire','showChangesButton','1254GTMgcK','_setupCopyButton','locale','11432080FXEQjY','showDislike','_setupShowChangesButton','906424KUlphF','bind','extendTemplate','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','add','class','dislikeButton','toggleShowChanges','like','toggleShowChangesEnabled','showCopy','copyButton','AI_MINI_TOOLBAR_COPY','children','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button','44LbHmbB','3303628VSUPnS','ck-ai-button-tertiary','addMany','1080870wTctyh','execute','AI_MINI_TOOLBAR_LIKE','items','likeButton','41566nQzTXz','showLike','_config','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','ck-ai-mini-toolbar\x20ck-hidden'];_0xf313=function(){return _0x19bac9;};return _0xf313();}import{ButtonView as _0x25f86a,IconView as _0x549260,ToolbarView as _0x5a9d3b}from'ckeditor5/src/ui.js';import{IconCheck as _0x891f94,IconCopy as _0x4538eb,IconShowChangesOff as _0x11dd25,IconShowChangesOn as _0x5c1256,IconThumbDown as _0x1e2860,IconThumbUp as _0x5f53d3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d081f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x2bbf(_0x12a531,_0x59ec4a){const _0xf31325=_0xf313();return _0x2bbf=function(_0x2bbf4a,_0x39fb5a){_0x2bbf4a=_0x2bbf4a-0x173;let _0x1bf279=_0xf31325[_0x2bbf4a];return _0x1bf279;},_0x2bbf(_0x12a531,_0x59ec4a);}export class AIMiniToolbarView extends _0x5a9d3b{[_0x4bbf0a(0x19c)];[_0x4bbf0a(0x1a9)];[_0x4bbf0a(0x197)];[_0x4bbf0a(0x189)];[_0x4bbf0a(0x175)];constructor(_0x39ec93,_0x14dfdd={}){const _0xc07a0d=_0x4bbf0a;super(_0x39ec93),this[_0xc07a0d(0x17e)](_0xc07a0d(0x184),!0x0),this[_0xc07a0d(0x17e)](_0xc07a0d(0x194),!0x1),this[_0xc07a0d(0x175)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x14dfdd};const _0x2923bc=!(this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]?.[_0xc07a0d(0x17a)]);this[_0xc07a0d(0x196)]=_0x2923bc?_0xc07a0d(0x178):_0xc07a0d(0x17c),this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]&&(this[_0xc07a0d(0x18b)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x19c)])),this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]&&(this[_0xc07a0d(0x18f)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x189)])),this[_0xc07a0d(0x186)](),this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x1a9)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x197)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x1a4)](this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]);}[_0x4bbf0a(0x19a)](_0x5ad758){const _0x53ad2a=_0x4bbf0a;this[_0x53ad2a(0x189)][_0x53ad2a(0x184)]=_0x5ad758;}[_0x4bbf0a(0x186)](){const _0x7970f0=_0x4bbf0a;this[_0x7970f0(0x1a9)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x1a9)][_0x7970f0(0x17e)]({'icon':_0x5f53d3,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x1a7)),'tooltip':!0x0}),this[_0x7970f0(0x1a9)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x1a9)]['on'](_0x7970f0(0x1a6),()=>{const _0x5f174e=_0x7970f0;this[_0x5f174e(0x188)](_0x5f174e(0x199));}),this[_0x7970f0(0x197)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x197)][_0x7970f0(0x17e)]({'icon':_0x1e2860,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x17f)),'tooltip':!0x0}),this[_0x7970f0(0x197)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x197)]['on'](_0x7970f0(0x1a6),()=>{const _0x1abce8=_0x7970f0;this[_0x1abce8(0x188)](_0x1abce8(0x177));});}[_0x4bbf0a(0x18b)](){const _0x1299cf=_0x4bbf0a;this[_0x1299cf(0x19c)]=new _0x25f86a(this[_0x1299cf(0x18c)]),this[_0x1299cf(0x19c)][_0x1299cf(0x17e)]({'icon':_0x4538eb,'label':_0x4d081f(this[_0x1299cf(0x18c)],_0x1299cf(0x19d)),'class':_0x1299cf(0x1a0),'tooltip':!0x0}),this[_0x1299cf(0x19c)][_0x1299cf(0x191)](_0x1299cf(0x184))['to'](this);const _0x21488b=new _0x549260();_0x21488b[_0x1299cf(0x17e)]({'content':_0x891f94}),_0x21488b[_0x1299cf(0x192)]({'attributes':{'class':[_0x1299cf(0x19f)]}}),this[_0x1299cf(0x19c)]['on'](_0x1299cf(0x1a6),()=>{const _0x4c8e61=_0x1299cf;this[_0x4c8e61(0x19c)][_0x4c8e61(0x196)]=_0x4c8e61(0x193),setTimeout(()=>{const _0xeff223=_0x4c8e61;this[_0xeff223(0x19c)][_0xeff223(0x196)]=_0xeff223(0x1a0);},0x7d0);}),this[_0x1299cf(0x19c)][_0x1299cf(0x19e)][_0x1299cf(0x195)](_0x21488b);}[_0x4bbf0a(0x18f)](){const _0x5b9ef6=_0x4bbf0a;this[_0x5b9ef6(0x189)]=new _0x25f86a(this[_0x5b9ef6(0x18c)]),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x17e)]({'icon':_0x11dd25,'label':_0x4d081f(this[_0x5b9ef6(0x18c)],_0x5b9ef6(0x176)),'withText':_0x5b9ef6(0x181)==this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'tooltip':_0x5b9ef6(0x181)!=this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'class':_0x5b9ef6(0x1a3)}),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x17b))['to'](this,_0x5b9ef6(0x194)),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x184))['to'](this),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x185))['to'](this,_0x5b9ef6(0x194),_0x178bd7=>_0x178bd7?_0x5c1256:_0x11dd25),this[_0x5b9ef6(0x189)]['on'](_0x5b9ef6(0x1a6),()=>{const _0x4ab9b0=_0x5b9ef6;this[_0x4ab9b0(0x188)](_0x4ab9b0(0x198));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43bf1c=_0x1c8d;(function(_0x566ac2,_0x5c3a7a){const _0x2e93af=_0x1c8d,_0x30c598=_0x566ac2();while(!![]){try{const _0x2b2891=parseInt(_0x2e93af(0x191))/0x1+parseInt(_0x2e93af(0x1be))/0x2*(parseInt(_0x2e93af(0x18f))/0x3)+-parseInt(_0x2e93af(0x1af))/0x4*(-parseInt(_0x2e93af(0x1ae))/0x5)+parseInt(_0x2e93af(0x19f))/0x6*(parseInt(_0x2e93af(0x1a7))/0x7)+-parseInt(_0x2e93af(0x1ba))/0x8*(parseInt(_0x2e93af(0x19d))/0x9)+-parseInt(_0x2e93af(0x19c))/0xa+-parseInt(_0x2e93af(0x1b1))/0xb;if(_0x2b2891===_0x5c3a7a)break;else _0x30c598['push'](_0x30c598['shift']());}catch(_0x10c5ad){_0x30c598['push'](_0x30c598['shift']());}}}(_0x204b,0x430cd));import{View as _0x2eab80}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5cf976}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2315ad}from'../../utils/eventnames.js';import{PromiseQueue as _0x21359d}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2a8310}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x204b(){const _0x3e6582=['filter','AI_SUGGESTION_EMPTY_PART_WARNING','309711ZaTHvG','queueEmptyPromise','331000SSwPuE','setTemplate','ck-ai-suggestion__body','set','markAsDone','abort','updatePartState','updateVisibility','from','createCollection','hasPendingParts','844480uKcKmc','23517YNCxna','partsCount','520734qVxkYu','isTrackChangesOn','isVisible','pending','_sourcesView','isEnabled','length','enqueue','42uFGDkP','findIndex','updateContent','forEach','getPartView','_cachedContentParts','updateSources','15ilNSDs','555356nekupZ','state','5531548pMxuoU','availableActions','_updateContentPartsPromiseQueue','ck-ai-suggestion__body__content-parts','_children','find','_switchButtonLabelsPlurality','areActionsDisabled','addSource','1560laCuAg','setContent','setPartActive','_showUnchangedParts','2fpwsRJ','div','index','some','add','push','isActive','_areActionsDisabled','empty-parts-warning','updateContentParts','AI_SUGGESTION_NO_PARTS_WARNING','bind','_availableActions','addEventListener','bodyCollection','partDefinition','warning','hasChanges','locale','hasNonEmptyParts','delegate','_emptyPartsWarningView','_actionsView'];_0x204b=function(){return _0x3e6582;};return _0x204b();}import{getTranslation as _0xf8ca2d}from'../../utils/common-translations.js';function _0x1c8d(_0x3c1e2d,_0x49610a){const _0x204b8f=_0x204b();return _0x1c8d=function(_0x1c8d1f,_0x16d52e){_0x1c8d1f=_0x1c8d1f-0x189;let _0x532e15=_0x204b8f[_0x1c8d1f];return _0x532e15;},_0x1c8d(_0x3c1e2d,_0x49610a);}import{AIChatFeedSuggestionItemActionsView as _0x11bb9a}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1405e6}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x2eab80{[_0x43bf1c(0x18c)];[_0x43bf1c(0x1a3)];[_0x43bf1c(0x1b5)];[_0x43bf1c(0x1c5)];[_0x43bf1c(0x1bd)];[_0x43bf1c(0x1b3)];[_0x43bf1c(0x18b)];[_0x43bf1c(0x1ca)];[_0x43bf1c(0x1ac)]=[];constructor(_0x287d55,_0x477c62){const _0x231272=_0x43bf1c;super(_0x287d55);const {areActionsDisabled:_0x179550,showUnchangedParts:_0x313af6,availableActions:_0x2bd64c}=_0x477c62;this[_0x231272(0x1c5)]=_0x179550,this[_0x231272(0x1bd)]=_0x313af6,this[_0x231272(0x1ca)]=_0x2bd64c,this[_0x231272(0x194)](_0x231272(0x19b),!0x1),this[_0x231272(0x194)](_0x231272(0x1a0),!0x1),this[_0x231272(0x1b5)]=this[_0x231272(0x19a)](),this[_0x231272(0x1b3)]=new _0x21359d(),this[_0x231272(0x18b)]=new _0x2a8310({'id':_0x231272(0x1c6),'initialContent':_0xf8ca2d(_0x287d55,_0x231272(0x18e)),'level':_0x231272(0x1ce)}),this[_0x231272(0x18b)][_0x231272(0x1a1)]=!0x1,this[_0x231272(0x18c)]=new _0x11bb9a(_0x287d55,_0x477c62[_0x231272(0x1b2)],this[_0x231272(0x1c5)]),this[_0x231272(0x18c)][_0x231272(0x1c9)](_0x231272(0x1a0))['to'](this),this[_0x231272(0x1a3)]=new _0x1405e6(this[_0x231272(0x1d0)],_0x477c62[_0x231272(0x1cc)]),_0x477c62[_0x231272(0x1b8)]?this[_0x231272(0x18c)][_0x231272(0x1a4)]=!0x1:this[_0x231272(0x18c)][_0x231272(0x1c9)](_0x231272(0x1a4))['to'](this,_0x231272(0x19b)),this[_0x231272(0x18c)][_0x231272(0x18a)](..._0x2315ad)['to'](this),this[_0x231272(0x192)]({'tag':_0x231272(0x1bf),'attributes':{'class':['ck',_0x231272(0x193)]},'children':[{'tag':_0x231272(0x1bf),'attributes':{'class':['ck',_0x231272(0x1b4)]},'children':this[_0x231272(0x1b5)]},this[_0x231272(0x18b)],this[_0x231272(0x18c)],this[_0x231272(0x1a3)]]});}get[_0x43bf1c(0x19e)](){const _0x4abe00=_0x43bf1c;return this[_0x4abe00(0x1b5)][_0x4abe00(0x1a5)];}async[_0x43bf1c(0x1c7)]({parts:_0x286eee,renderingStrategy:_0x447732,abortSignal:_0x2da6d4}){const _0x11c518=_0x43bf1c;this[_0x11c518(0x1b5)][_0x11c518(0x1a5)]?_0x286eee[_0x11c518(0x1aa)](_0x518b16=>{const _0x3aff55=_0x11c518,_0x8b64d7=this[_0x3aff55(0x1ac)][_0x3aff55(0x1a8)](_0x1d6dd9=>_0x1d6dd9[_0x3aff55(0x1c0)]==_0x518b16[_0x3aff55(0x1c0)]);-0x1===_0x8b64d7?this[_0x3aff55(0x1ac)][_0x3aff55(0x1c3)](_0x518b16):this[_0x3aff55(0x1ac)][_0x8b64d7]=_0x518b16;}):this[_0x11c518(0x1ac)]=_0x286eee;const _0x3c2e49=this[_0x11c518(0x1bd)]?_0x286eee:_0x286eee[_0x11c518(0x18d)](_0x3d4f4b=>_0x3d4f4b[_0x11c518(0x1cf)]);this[_0x11c518(0x18c)][_0x11c518(0x1b7)](_0x3c2e49[_0x11c518(0x1a5)]>0x1);for(const _0x197cf of _0x3c2e49)this[_0x11c518(0x1b3)][_0x11c518(0x1a6)](async _0x48d338=>{const _0x4d803f=_0x11c518;let _0x342cf4=this[_0x4d803f(0x1ab)](_0x197cf[_0x4d803f(0x1c0)]);_0x342cf4||(_0x342cf4=new _0x5cf976(this[_0x4d803f(0x1d0)],{'part':_0x197cf,'uiIndex':this[_0x4d803f(0x1b5)][_0x4d803f(0x1a5)]+0x1,'areActionsDisabled':this[_0x4d803f(0x1c5)],'availableActions':this[_0x4d803f(0x1ca)]}),_0x342cf4[_0x4d803f(0x18a)](..._0x2315ad)['to'](this),this[_0x4d803f(0x1b5)][_0x4d803f(0x1c2)](_0x342cf4),this[_0x4d803f(0x19b)]=!0x0),await _0x342cf4[_0x4d803f(0x1a9)]({'part':_0x197cf,'renderingStrategy':_0x447732,'showUnchangedParts':this[_0x4d803f(0x1bd)],'abortSignal':_0x48d338}),_0x342cf4[_0x4d803f(0x195)]();});return _0x2da6d4?.[_0x11c518(0x1cb)](_0x11c518(0x196),()=>{const _0x12f672=_0x11c518;this[_0x12f672(0x1b3)][_0x12f672(0x196)]();}),this[_0x11c518(0x1b3)][_0x11c518(0x190)];}[_0x43bf1c(0x197)](_0x16ee6c,_0x3819cd){const _0x254dfd=_0x43bf1c,_0x3f0785=this[_0x254dfd(0x1ab)](_0x16ee6c);_0x3f0785&&(_0x3f0785[_0x254dfd(0x1b0)]=_0x3819cd),this[_0x254dfd(0x19b)]=_0x254dfd(0x1a2)==_0x3819cd||Array[_0x254dfd(0x199)](this[_0x254dfd(0x1b5)])[_0x254dfd(0x1c1)](_0x14c3ad=>_0x254dfd(0x1a2)==_0x14c3ad[_0x254dfd(0x1b0)]);}[_0x43bf1c(0x1bc)](_0x3a3cc3,_0x4f9ed4){const _0x5d1422=_0x43bf1c;if(!0x1===_0x3a3cc3){for(const _0x41af9f of this[_0x5d1422(0x1b5)])_0x41af9f[_0x5d1422(0x1c4)]=!0x1;}else{const _0x291890=this[_0x5d1422(0x1ab)](_0x3a3cc3);_0x291890&&(_0x291890[_0x5d1422(0x1c4)]=_0x4f9ed4);}}[_0x43bf1c(0x1ad)](_0x4c3fcb){const _0x49ebf7=_0x43bf1c;_0x4c3fcb[_0x49ebf7(0x1aa)](_0x5a6691=>this[_0x49ebf7(0x1a3)][_0x49ebf7(0x1b9)](_0x5a6691)),this[_0x49ebf7(0x1a3)][_0x49ebf7(0x1a1)]=!0x0;}[_0x43bf1c(0x1ab)](_0x24d84c){const _0x1c7811=_0x43bf1c;return this[_0x1c7811(0x1b5)][_0x1c7811(0x1b6)](_0x2969d1=>_0x2969d1[_0x1c7811(0x1cd)][_0x1c7811(0x1c0)]==_0x24d84c)??null;}[_0x43bf1c(0x195)](){const _0x4049eb=_0x43bf1c;if(!this[_0x4049eb(0x1bd)]){const _0x1fb175=!this[_0x4049eb(0x1ac)][_0x4049eb(0x1b6)](({hasChanges:_0x2a79d})=>_0x2a79d),_0x1cabf6=!!this[_0x4049eb(0x1ac)][_0x4049eb(0x1b6)](({hasChanges:_0x4a3147})=>!_0x4a3147);this[_0x4049eb(0x18b)][_0x4049eb(0x1a1)]=0x0==this[_0x4049eb(0x1b5)][_0x4049eb(0x1a5)]||_0x1cabf6,_0x1fb175?this[_0x4049eb(0x18b)][_0x4049eb(0x1bb)](_0xf8ca2d(this[_0x4049eb(0x1d0)],_0x4049eb(0x1c8))):this[_0x4049eb(0x18b)][_0x4049eb(0x1bb)](_0xf8ca2d(this[_0x4049eb(0x1d0)],_0x4049eb(0x18e)));}this[_0x4049eb(0x1b5)][_0x4049eb(0x1aa)](_0x1fb2fa=>_0x1fb2fa[_0x4049eb(0x195)]()),this[_0x4049eb(0x18c)][_0x4049eb(0x198)](this[_0x4049eb(0x189)]);}get[_0x43bf1c(0x189)](){const _0x4aaeff=_0x43bf1c;return this[_0x4aaeff(0x1b5)][_0x4aaeff(0x18d)](_0x4372ae=>_0x4372ae[_0x4aaeff(0x1cd)][_0x4aaeff(0x1cf)])[_0x4aaeff(0x1a5)]>0x0;}}
23
+ const _0x5551db=_0x3a4c;(function(_0x2ffe6b,_0x469084){const _0x58f162=_0x3a4c,_0x1f9007=_0x2ffe6b();while(!![]){try{const _0x8dde4f=-parseInt(_0x58f162(0x169))/0x1*(parseInt(_0x58f162(0x17c))/0x2)+parseInt(_0x58f162(0x174))/0x3+parseInt(_0x58f162(0x195))/0x4+-parseInt(_0x58f162(0x17e))/0x5+parseInt(_0x58f162(0x167))/0x6+-parseInt(_0x58f162(0x171))/0x7+parseInt(_0x58f162(0x16f))/0x8;if(_0x8dde4f===_0x469084)break;else _0x1f9007['push'](_0x1f9007['shift']());}catch(_0x57d484){_0x1f9007['push'](_0x1f9007['shift']());}}}(_0x4370,0x21da1));import{View as _0x53e3dc}from'ckeditor5/src/ui.js';function _0x4370(){const _0x2a052c=['index','ck-ai-suggestion__body','bind','state','_actionsView','find','length','from','addEventListener','hasNonEmptyParts','queueEmptyPromise','updateVisibility','areActionsDisabled','793680lEhdyI','warning','13zOqNOj','markAsDone','createCollection','setTemplate','_updateContentPartsPromiseQueue','_children','1951504RKZSVO','_areActionsDisabled','1110480lcaiMf','AI_SUGGESTION_NO_PARTS_WARNING','pending','314565jNzcBg','forEach','isEnabled','set','setPartActive','abort','isTrackChangesOn','hasPendingParts','17526ZOKggq','enqueue','819445dGggph','addSource','findIndex','locale','hasChanges','isActive','some','filter','AI_SUGGESTION_EMPTY_PART_WARNING','setContent','empty-parts-warning','partsCount','updateContentParts','_showUnchangedParts','_emptyPartsWarningView','_switchButtonLabelsPlurality','_sourcesView','updateContent','_availableActions','add','partDefinition','updateSources','bodyCollection','376128dYIDjI','push','_cachedContentParts','delegate','updatePartState','availableActions','isVisible','getPartView','ck-ai-suggestion__body__content-parts','div'];_0x4370=function(){return _0x2a052c;};return _0x4370();}import{AISuggestionBodyViewContentPartView as _0x598034}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x465c2d}from'../../utils/eventnames.js';import{PromiseQueue as _0x1b9173}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe0ac6f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x511914}from'../../utils/common-translations.js';function _0x3a4c(_0x1a7fd6,_0x122a7c){const _0x4370e8=_0x4370();return _0x3a4c=function(_0x3a4c83,_0x4e294e){_0x3a4c83=_0x3a4c83-0x153;let _0x429013=_0x4370e8[_0x3a4c83];return _0x429013;},_0x3a4c(_0x1a7fd6,_0x122a7c);}import{AIChatFeedSuggestionItemActionsView as _0x4598b4}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1f4855}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x53e3dc{[_0x5551db(0x15e)];[_0x5551db(0x18e)];[_0x5551db(0x16e)];[_0x5551db(0x170)];[_0x5551db(0x18b)];[_0x5551db(0x16d)];[_0x5551db(0x18c)];[_0x5551db(0x190)];[_0x5551db(0x197)]=[];constructor(_0x2d4a8c,_0x2e30ab){const _0x4bc225=_0x5551db;super(_0x2d4a8c);const {areActionsDisabled:_0x2151c3,showUnchangedParts:_0x17b1b7,availableActions:_0x4fa612}=_0x2e30ab;this[_0x4bc225(0x170)]=_0x2151c3,this[_0x4bc225(0x18b)]=_0x17b1b7,this[_0x4bc225(0x190)]=_0x4fa612,this[_0x4bc225(0x177)](_0x4bc225(0x17b),!0x1),this[_0x4bc225(0x177)](_0x4bc225(0x17a),!0x1),this[_0x4bc225(0x16e)]=this[_0x4bc225(0x16b)](),this[_0x4bc225(0x16d)]=new _0x1b9173(),this[_0x4bc225(0x18c)]=new _0xe0ac6f({'id':_0x4bc225(0x188),'initialContent':_0x511914(_0x2d4a8c,_0x4bc225(0x186)),'level':_0x4bc225(0x168)}),this[_0x4bc225(0x18c)][_0x4bc225(0x156)]=!0x1,this[_0x4bc225(0x15e)]=new _0x4598b4(_0x2d4a8c,_0x2e30ab[_0x4bc225(0x155)],this[_0x4bc225(0x170)]),this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x17a))['to'](this),this[_0x4bc225(0x18e)]=new _0x1f4855(this[_0x4bc225(0x181)],_0x2e30ab[_0x4bc225(0x194)]),_0x2e30ab[_0x4bc225(0x166)]?this[_0x4bc225(0x15e)][_0x4bc225(0x176)]=!0x1:this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x176))['to'](this,_0x4bc225(0x17b)),this[_0x4bc225(0x15e)][_0x4bc225(0x153)](..._0x465c2d)['to'](this),this[_0x4bc225(0x16c)]({'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x15b)]},'children':[{'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x158)]},'children':this[_0x4bc225(0x16e)]},this[_0x4bc225(0x18c)],this[_0x4bc225(0x15e)],this[_0x4bc225(0x18e)]]});}get[_0x5551db(0x189)](){const _0x27b727=_0x5551db;return this[_0x27b727(0x16e)][_0x27b727(0x160)];}async[_0x5551db(0x18a)]({parts:_0x1f06f7,renderingStrategy:_0x475806,abortSignal:_0x223d9c}){const _0x283c0b=_0x5551db;this[_0x283c0b(0x16e)][_0x283c0b(0x160)]?_0x1f06f7[_0x283c0b(0x175)](_0x1d9990=>{const _0x29fafe=_0x283c0b,_0x308e14=this[_0x29fafe(0x197)][_0x29fafe(0x180)](_0x5bb799=>_0x5bb799[_0x29fafe(0x15a)]==_0x1d9990[_0x29fafe(0x15a)]);-0x1===_0x308e14?this[_0x29fafe(0x197)][_0x29fafe(0x196)](_0x1d9990):this[_0x29fafe(0x197)][_0x308e14]=_0x1d9990;}):this[_0x283c0b(0x197)]=_0x1f06f7;const _0x10820a=this[_0x283c0b(0x18b)]?_0x1f06f7:_0x1f06f7[_0x283c0b(0x185)](_0x252c2a=>_0x252c2a[_0x283c0b(0x182)]);this[_0x283c0b(0x15e)][_0x283c0b(0x18d)](_0x10820a[_0x283c0b(0x160)]>0x1);for(const _0x283ca9 of _0x10820a)this[_0x283c0b(0x16d)][_0x283c0b(0x17d)](async _0x4ab46c=>{const _0x3334cc=_0x283c0b;let _0x20ecc6=this[_0x3334cc(0x157)](_0x283ca9[_0x3334cc(0x15a)]);_0x20ecc6||(_0x20ecc6=new _0x598034(this[_0x3334cc(0x181)],{'part':_0x283ca9,'uiIndex':this[_0x3334cc(0x16e)][_0x3334cc(0x160)]+0x1,'areActionsDisabled':this[_0x3334cc(0x170)],'availableActions':this[_0x3334cc(0x190)]}),_0x20ecc6[_0x3334cc(0x153)](..._0x465c2d)['to'](this),this[_0x3334cc(0x16e)][_0x3334cc(0x191)](_0x20ecc6),this[_0x3334cc(0x17b)]=!0x0),await _0x20ecc6[_0x3334cc(0x18f)]({'part':_0x283ca9,'renderingStrategy':_0x475806,'showUnchangedParts':this[_0x3334cc(0x18b)],'abortSignal':_0x4ab46c}),_0x20ecc6[_0x3334cc(0x16a)]();});return _0x223d9c?.[_0x283c0b(0x162)](_0x283c0b(0x179),()=>{const _0x3a3928=_0x283c0b;this[_0x3a3928(0x16d)][_0x3a3928(0x179)]();}),this[_0x283c0b(0x16d)][_0x283c0b(0x164)];}[_0x5551db(0x154)](_0x4acc52,_0xc1efa4){const _0x50db3e=_0x5551db,_0x155752=this[_0x50db3e(0x157)](_0x4acc52);_0x155752&&(_0x155752[_0x50db3e(0x15d)]=_0xc1efa4),this[_0x50db3e(0x17b)]=_0x50db3e(0x173)==_0xc1efa4||Array[_0x50db3e(0x161)](this[_0x50db3e(0x16e)])[_0x50db3e(0x184)](_0x55f946=>_0x50db3e(0x173)==_0x55f946[_0x50db3e(0x15d)]);}[_0x5551db(0x178)](_0x3b2371,_0x10d5fa){const _0x164187=_0x5551db;if(!0x1===_0x3b2371){for(const _0x4f61ae of this[_0x164187(0x16e)])_0x4f61ae[_0x164187(0x183)]=!0x1;}else{const _0x137ace=this[_0x164187(0x157)](_0x3b2371);_0x137ace&&(_0x137ace[_0x164187(0x183)]=_0x10d5fa);}}[_0x5551db(0x193)](_0x27c5cc){const _0x1e06d1=_0x5551db;_0x27c5cc[_0x1e06d1(0x175)](_0x28747d=>this[_0x1e06d1(0x18e)][_0x1e06d1(0x17f)](_0x28747d)),this[_0x1e06d1(0x18e)][_0x1e06d1(0x156)]=!0x0;}[_0x5551db(0x157)](_0x31b474){const _0x134a48=_0x5551db;return this[_0x134a48(0x16e)][_0x134a48(0x15f)](_0x123ea6=>_0x123ea6[_0x134a48(0x192)][_0x134a48(0x15a)]==_0x31b474)??null;}[_0x5551db(0x16a)](){const _0x24cc0c=_0x5551db;if(!this[_0x24cc0c(0x18b)]){const _0x39a98d=!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x4c28d9})=>_0x4c28d9),_0x464b66=!!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x2ee9f1})=>!_0x2ee9f1);this[_0x24cc0c(0x18c)][_0x24cc0c(0x156)]=0x0==this[_0x24cc0c(0x16e)][_0x24cc0c(0x160)]||_0x464b66,_0x39a98d?this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x172))):this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x186)));}this[_0x24cc0c(0x16e)][_0x24cc0c(0x175)](_0x37ff91=>_0x37ff91[_0x24cc0c(0x16a)]()),this[_0x24cc0c(0x15e)][_0x24cc0c(0x165)](this[_0x24cc0c(0x163)]);}get[_0x5551db(0x163)](){const _0x592353=_0x5551db;return this[_0x592353(0x16e)][_0x592353(0x185)](_0x2648ea=>_0x2648ea[_0x592353(0x192)][_0x592353(0x182)])[_0x592353(0x160)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dfffc=_0xcf57;(function(_0x426cca,_0x1f7614){const _0x33edcf=_0xcf57,_0x38a8f8=_0x426cca();while(!![]){try{const _0x5f2bb0=parseInt(_0x33edcf(0x117))/0x1+-parseInt(_0x33edcf(0x100))/0x2*(parseInt(_0x33edcf(0x107))/0x3)+-parseInt(_0x33edcf(0x114))/0x4*(parseInt(_0x33edcf(0xfe))/0x5)+parseInt(_0x33edcf(0x112))/0x6*(parseInt(_0x33edcf(0xff))/0x7)+-parseInt(_0x33edcf(0x10f))/0x8+-parseInt(_0x33edcf(0x10b))/0x9*(-parseInt(_0x33edcf(0xf6))/0xa)+-parseInt(_0x33edcf(0x10a))/0xb;if(_0x5f2bb0===_0x1f7614)break;else _0x38a8f8['push'](_0x38a8f8['shift']());}catch(_0x22db5c){_0x38a8f8['push'](_0x38a8f8['shift']());}}}(_0x2afb,0xe6d4a));import{View as _0xb118dd}from'ckeditor5/src/ui.js';function _0xcf57(_0x2c3a66,_0x4ee0bc){const _0x2afb76=_0x2afb();return _0xcf57=function(_0xcf570c,_0x13f550){_0xcf570c=_0xcf570c-0xf6;let _0x8bb1f4=_0x2afb76[_0xcf570c];return _0x8bb1f4;},_0xcf57(_0x2c3a66,_0x4ee0bc);}import{AISuggestionHeaderView as _0xfc1ec1}from'./aisuggestionheaderview.js';function _0x2afb(){const _0x3f95c0=['4436776gCPSjs','toggleSuggestionDisplayMode','isTrackChangesOn','2934972afzTJk','add','176108ZKnpLC','isOn','set','712380mDfqVl','children','2290jEZhPu','updateContentParts','headerView','ck-rounded-corners','div','createCollection','isShowChangesToggleVisible','updateSources','90lfSPlv','21ROVMsS','78UlYwYe','setTemplate','areChangesVisible','updateContent','hasNonEmptyParts','ck-ai-suggestion__container','fire','41535XwaMCw','delegate','bodyView','9126293FWnyYg','58257dCWZBS','markAsDone','bind','toggleShowChanges'];_0x2afb=function(){return _0x3f95c0;};return _0x2afb();}import{AISuggestionBodyView as _0x5eef67}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x22f5bf}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0xb118dd{[_0x3dfffc(0x109)];[_0x3dfffc(0x118)];[_0x3dfffc(0xf8)];constructor(_0x2c2639,_0x2565d6,_0x5c242a){const _0x4b27af=_0x3dfffc;super(_0x2c2639);const {showDiff:_0xdc304a,areActionsDisabled:_0x2f2ce2,showUnchangedParts:_0x5322ec,availableActions:_0x38f520}=_0x2565d6;this[_0x4b27af(0x116)](_0x4b27af(0x111),!0x1),this[_0x4b27af(0x116)](_0x4b27af(0x102),!0x1),this[_0x4b27af(0x118)]=this[_0x4b27af(0xfb)](),this[_0x4b27af(0xf8)]=new _0xfc1ec1(_0x2c2639,{'showDiff':_0xdc304a}),this[_0x4b27af(0xf8)]['on'](_0x4b27af(0x10e),(_0x50cc77,_0x45e431)=>{const _0x2312fb=_0x4b27af;this[_0x2312fb(0x102)]=_0x45e431[_0x2312fb(0x115)],this[_0x2312fb(0x106)](_0x2312fb(0x110),{'showDiff':_0x45e431[_0x2312fb(0x115)]});}),this[_0x4b27af(0x118)][_0x4b27af(0x113)](this[_0x4b27af(0xf8)]),this[_0x4b27af(0x109)]=new _0x5eef67(_0x2c2639,{'areActionsDisabled':_0x2f2ce2,'showUnchangedParts':!!_0x5322ec,'availableActions':_0x38f520,'bodyCollection':_0x5c242a}),this[_0x4b27af(0x109)][_0x4b27af(0x108)](..._0x22f5bf)['to'](this),this[_0x4b27af(0x109)][_0x4b27af(0x10d)](_0x4b27af(0x111))['to'](this),this[_0x4b27af(0x118)][_0x4b27af(0x113)](this[_0x4b27af(0x109)]),this[_0x4b27af(0x101)]({'tag':_0x4b27af(0xfa),'attributes':{'class':['ck',_0x4b27af(0x105),_0x4b27af(0xf9)]},'children':this[_0x4b27af(0x118)]});}async[_0x3dfffc(0x103)](_0x444500){const _0x1e4d3c=_0x3dfffc;await this[_0x1e4d3c(0x109)][_0x1e4d3c(0xf7)](_0x444500);}[_0x3dfffc(0xfd)](_0x14c425){const _0x4778e3=_0x3dfffc;this[_0x4778e3(0x109)][_0x4778e3(0xfd)](_0x14c425);}[_0x3dfffc(0x10c)](){const _0x1094e3=_0x3dfffc;this[_0x1094e3(0x109)][_0x1094e3(0x10c)](),this[_0x1094e3(0xf8)]&&(this[_0x1094e3(0xf8)][_0x1094e3(0xfc)]=this[_0x1094e3(0x109)][_0x1094e3(0x104)]);}}
23
+ const _0x44a6c3=_0x201c;(function(_0x34f4ce,_0x3e0acd){const _0x1b10b9=_0x201c,_0x1c4a78=_0x34f4ce();while(!![]){try{const _0x394b8e=parseInt(_0x1b10b9(0x18b))/0x1+-parseInt(_0x1b10b9(0x18a))/0x2+-parseInt(_0x1b10b9(0x18d))/0x3*(-parseInt(_0x1b10b9(0x199))/0x4)+parseInt(_0x1b10b9(0x18e))/0x5+-parseInt(_0x1b10b9(0x17e))/0x6*(parseInt(_0x1b10b9(0x18c))/0x7)+parseInt(_0x1b10b9(0x19a))/0x8*(parseInt(_0x1b10b9(0x195))/0x9)+parseInt(_0x1b10b9(0x196))/0xa;if(_0x394b8e===_0x3e0acd)break;else _0x1c4a78['push'](_0x1c4a78['shift']());}catch(_0x36d7db){_0x1c4a78['push'](_0x1c4a78['shift']());}}}(_0x4593,0x49bc5));function _0x201c(_0x4a688c,_0x5d702f){const _0x4593df=_0x4593();return _0x201c=function(_0x201c17,_0x330e07){_0x201c17=_0x201c17-0x17a;let _0x46aa1b=_0x4593df[_0x201c17];return _0x46aa1b;},_0x201c(_0x4a688c,_0x5d702f);}import{View as _0x5c5f53}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cb4d0}from'./aisuggestionheaderview.js';function _0x4593(){const _0x29f7cd=['bodyView','isShowChangesToggleVisible','662262YmUzFk','328616timTsj','7fGusZT','249969TfdHHV','964910WylfeR','headerView','createCollection','children','markAsDone','isOn','div','22860fbpEiI','939670UQOKOR','bind','updateContent','4siXiQo','768UPmQEu','isTrackChangesOn','ck-ai-suggestion__container','toggleSuggestionDisplayMode','updateContentParts','fire','1857456soEQkW','add','set','delegate','updateSources','setTemplate','areChangesVisible','ck-rounded-corners','toggleShowChanges','hasNonEmptyParts'];_0x4593=function(){return _0x29f7cd;};return _0x4593();}import{AISuggestionBodyView as _0x74c478}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x203458}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x5c5f53{[_0x44a6c3(0x188)];[_0x44a6c3(0x191)];[_0x44a6c3(0x18f)];constructor(_0x2aa842,_0x4f7ab4,_0x18d74e){const _0x36e2a9=_0x44a6c3;super(_0x2aa842);const {showDiff:_0x3bc4f8,areActionsDisabled:_0x278322,showUnchangedParts:_0x147f74,availableActions:_0x437595}=_0x4f7ab4;this[_0x36e2a9(0x180)](_0x36e2a9(0x19b),!0x1),this[_0x36e2a9(0x180)](_0x36e2a9(0x184),!0x1),this[_0x36e2a9(0x191)]=this[_0x36e2a9(0x190)](),this[_0x36e2a9(0x18f)]=new _0x5cb4d0(_0x2aa842,{'showDiff':_0x3bc4f8}),this[_0x36e2a9(0x18f)]['on'](_0x36e2a9(0x186),(_0x192821,_0x4d4dba)=>{const _0x11549d=_0x36e2a9;this[_0x11549d(0x184)]=_0x4d4dba[_0x11549d(0x193)],this[_0x11549d(0x17d)](_0x11549d(0x17b),{'showDiff':_0x4d4dba[_0x11549d(0x193)]});}),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x18f)]),this[_0x36e2a9(0x188)]=new _0x74c478(_0x2aa842,{'areActionsDisabled':_0x278322,'showUnchangedParts':!!_0x147f74,'availableActions':_0x437595,'bodyCollection':_0x18d74e}),this[_0x36e2a9(0x188)][_0x36e2a9(0x181)](..._0x203458)['to'](this),this[_0x36e2a9(0x188)][_0x36e2a9(0x197)](_0x36e2a9(0x19b))['to'](this),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x188)]),this[_0x36e2a9(0x183)]({'tag':_0x36e2a9(0x194),'attributes':{'class':['ck',_0x36e2a9(0x17a),_0x36e2a9(0x185)]},'children':this[_0x36e2a9(0x191)]});}async[_0x44a6c3(0x198)](_0x296e16){const _0x1497de=_0x44a6c3;await this[_0x1497de(0x188)][_0x1497de(0x17c)](_0x296e16);}[_0x44a6c3(0x182)](_0x4cd2cf){const _0x1fd7b6=_0x44a6c3;this[_0x1fd7b6(0x188)][_0x1fd7b6(0x182)](_0x4cd2cf);}[_0x44a6c3(0x192)](){const _0x14e573=_0x44a6c3;this[_0x14e573(0x188)][_0x14e573(0x192)](),this[_0x14e573(0x18f)]&&(this[_0x14e573(0x18f)][_0x14e573(0x189)]=this[_0x14e573(0x188)][_0x14e573(0x187)]);}}