@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3

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 _0x547587=_0x4067;(function(_0x3ccc56,_0x365fca){const _0x92bb3=_0x4067,_0x1737a9=_0x3ccc56();while(!![]){try{const _0x5e043a=parseInt(_0x92bb3(0xa3))/0x1*(parseInt(_0x92bb3(0x80))/0x2)+parseInt(_0x92bb3(0x89))/0x3*(-parseInt(_0x92bb3(0xbb))/0x4)+parseInt(_0x92bb3(0xcf))/0x5*(-parseInt(_0x92bb3(0x7d))/0x6)+parseInt(_0x92bb3(0x98))/0x7+-parseInt(_0x92bb3(0x9b))/0x8*(parseInt(_0x92bb3(0xa5))/0x9)+-parseInt(_0x92bb3(0x92))/0xa+parseInt(_0x92bb3(0x83))/0xb*(parseInt(_0x92bb3(0x8f))/0xc);if(_0x5e043a===_0x365fca)break;else _0x1737a9['push'](_0x1737a9['shift']());}catch(_0x43de66){_0x1737a9['push'](_0x1737a9['shift']());}}}(_0x248a,0x4e6ef));import{CKEditorError as _0x3ae127,EmitterMixin as _0x13d141,uid as _0x4911bb}from'ckeditor5/src/utils.js';import{AIReply as _0x4c417d}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x547587(0xc4),_0x547587(0xae),_0x547587(0xb9),_0x547587(0xac),_0x547587(0xa4),_0x547587(0xc7),_0x547587(0xbe),_0x547587(0x93),_0x547587(0x9f),_0x547587(0xb0),_0x547587(0xd2),_0x547587(0xd3),_0x547587(0xbd),_0x547587(0xa2),_0x547587(0xc5)];function _0x4067(_0x5998e4,_0x238c47){const _0x248a2a=_0x248a();return _0x4067=function(_0x406755,_0x38763f){_0x406755=_0x406755-0x7c;let _0x15fa53=_0x248a2a[_0x406755];return _0x15fa53;},_0x4067(_0x5998e4,_0x238c47);}function _0x248a(){const _0x5b2315=['stopListening','interactionStopped','connector','1032932ygdRpT','currentReply','reasoningFinished','replyContentUpdated','toolName','appendContent','modification','_isWebSearching','createReply','interactionCreated','error','length','replyCreated','content','modification-delta','forEach','editor','getReply','mcp-tool-result','done','312445AHsQth','sources','message-metadata','webSearchFinished','reasoningStarted','isDestroyed','actionCallId','30BZYRXi','splice','fire','38962dCJjiU','attributes','resetWebSearchState','268488LlBvpH','start','callId','notification','action-metadata','push','3ceopCA','reasoning','getDocumentContext','abortController','event','currentRequest','324cQPzzP','find','mcp-tool-notification','3495410KsKeCO','replyChangeGroupStateUpdated','abort','getStream','resetReasoningState','_handleToolResultData','2588194aINPkp','text','delegate','324232ulAlRO','sendRequest','_handleToolNotificationData','destroy','setConversationTitle','_finalizeInteraction','stop','toolDataReceived','13NgxgTw','interactionDestroyed','9HlXGCh','replies','text-delta','web-search','ai-chat-interaction-error','textDelta','isStopped','interactionFinished','messageId','interactionStarted','conversation-title','webSearchStarted','parse','conversationTitle','_isReasoning','data','source','result','type'];_0x248a=function(){return _0x5b2315;};return _0x248a();}export class AIInteraction extends _0x13d141(){['id'];[_0x547587(0xa6)]=[];[_0x547587(0xbc)];[_0x547587(0xad)];[_0x547587(0x7c)];[_0x547587(0x8e)];[_0x547587(0xba)];[_0x547587(0xab)]=!0x1;[_0x547587(0xd4)]=!0x1;[_0x547587(0xcb)];[_0x547587(0xb3)]=!0x1;[_0x547587(0xc2)]=!0x1;constructor({connector:_0xf80eda,editor:_0x502085}){const _0x55abd0=_0x547587;super(),this['id']=_0x4911bb(),this[_0x55abd0(0xba)]=_0xf80eda,this[_0x55abd0(0xab)]=!0x0,this[_0x55abd0(0xcb)]=_0x502085;}async[_0x547587(0x84)](){const _0x5c034c=_0x547587,_0x5bffb6=[];let _0x294cac,_0x17b63,_0x227847;this[_0x5c034c(0xab)]=!0x1;try{this[_0x5c034c(0x8e)]=await this[_0x5c034c(0x9c)](),this[_0x5c034c(0x7f)](_0x5c034c(0xae),this);const _0x34eee2=await this[_0x5c034c(0x8e)][_0x5c034c(0x95)]();for await(const _0x4c3358 of _0x34eee2){if(this[_0x5c034c(0xab)])return;if(_0x5c034c(0xc5)==_0x4c3358[_0x5c034c(0x8d)])return void this[_0x5c034c(0x7f)](_0x5c034c(0xc5),{'error':new _0x3ae127(_0x5c034c(0xa9),this)});switch(_0x4c3358[_0x5c034c(0x8d)]){case _0x5c034c(0xd1):this[_0x5c034c(0xad)]=_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xad)];break;case _0x5c034c(0x87):this[_0x5c034c(0x7c)]=_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0x85)];break;case _0x5c034c(0xaf):this[_0x5c034c(0x9f)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb2)],!0x0);break;case _0x5c034c(0xb5):_0x5bffb6[_0x5c034c(0x88)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb5)]);break;case _0x5c034c(0xa8):this[_0x5c034c(0xc2)]||(this[_0x5c034c(0xc2)]=!0x0,this[_0x5c034c(0x7f)](_0x5c034c(0xb0),this));break;case _0x5c034c(0x8a):this[_0x5c034c(0xb3)]||(this[_0x5c034c(0xb3)]=!0x0,this[_0x5c034c(0x7f)](_0x5c034c(0xd3),this));break;case _0x5c034c(0xc9):case _0x5c034c(0xa7):this[_0x5c034c(0x96)](),this[_0x5c034c(0x82)](),_0x294cac=_0x5c034c(0xc9)==_0x4c3358[_0x5c034c(0x8d)]?_0x5c034c(0xc1):_0x5c034c(0x99),_0x17b63=_0x5c034c(0xc9)==_0x4c3358[_0x5c034c(0x8d)]?_0x4c3358[_0x5c034c(0xb4)]['id']:void 0x0,this[_0x5c034c(0xbc)]&&this[_0x5c034c(0xbc)][_0x5c034c(0xb7)]!=_0x294cac&&(this[_0x5c034c(0xbc)][_0x5c034c(0xce)](),this[_0x5c034c(0xbc)]=void 0x0),this[_0x5c034c(0xbc)]||(this[_0x5c034c(0xbc)]=this[_0x5c034c(0xc3)]({'type':_0x294cac,'interactionId':this['id'],'id':_0x17b63}),_0x5c034c(0xc1)==_0x294cac&&(this[_0x5c034c(0xbc)][_0x5c034c(0xd0)]=_0x5bffb6[_0x5c034c(0x7e)](0x0))),this[_0x5c034c(0xbc)][_0x5c034c(0xc0)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xaa)]);break;case _0x5c034c(0xcd):_0x227847=JSON[_0x5c034c(0xb1)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb6)]),this[_0x5c034c(0x97)]({'toolName':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xbf)],'data':_0x227847[_0x5c034c(0xb4)],'attributes':_0x227847[_0x5c034c(0x81)]});break;case _0x5c034c(0x91):this[_0x5c034c(0x9d)]({'toolName':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xbf)],'data':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb4)]});}}}finally{this[_0x5c034c(0xab)]||(this[_0x5c034c(0xbc)]&&_0x5bffb6[_0x5c034c(0xc6)]>0x0&&(this[_0x5c034c(0xbc)][_0x5c034c(0xd0)]=_0x5bffb6[_0x5c034c(0x7e)](0x0)),this[_0x5c034c(0xa0)](),this[_0x5c034c(0x7f)](_0x5c034c(0xac),this));}}[_0x547587(0xa1)](){const _0x2d7296=_0x547587;this[_0x2d7296(0xab)]||(this[_0x2d7296(0xa0)](),this[_0x2d7296(0x7f)](_0x2d7296(0xb9),this));}[_0x547587(0xcc)](_0x4ae228){const _0x23c944=_0x547587;return this[_0x23c944(0xa6)][_0x23c944(0x90)](_0x40241f=>_0x40241f['id']===_0x4ae228);}[_0x547587(0x9e)](){const _0x181457=_0x547587;this[_0x181457(0xd4)]||(this[_0x181457(0xa1)](),this[_0x181457(0xa6)][_0x181457(0xca)](_0x2297c3=>_0x2297c3[_0x181457(0x9e)]()),this[_0x181457(0xa6)]=[],this[_0x181457(0xd4)]=!0x0,this[_0x181457(0x7f)](_0x181457(0xa4),this),this[_0x181457(0xb8)]());}[_0x547587(0xc3)](_0x379568){const _0x4a0d79=_0x547587,_0x3cdd12=new _0x4c417d({'editor':this[_0x4a0d79(0xcb)],'documentContextContent':this[_0x4a0d79(0x8b)]()?.[_0x4a0d79(0xc8)],..._0x379568});return this[_0x4a0d79(0xa6)][_0x4a0d79(0x88)](_0x3cdd12),_0x3cdd12[_0x4a0d79(0x9a)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4a0d79(0x7f)](_0x4a0d79(0xc7),_0x3cdd12),_0x3cdd12;}[_0x547587(0x9f)](_0x45d14f,_0x5aaff2=!0x1){const _0x13f59d=_0x547587;this[_0x13f59d(0x7f)](_0x13f59d(0x9f),_0x45d14f,_0x5aaff2);}[_0x547587(0x82)](){const _0x47598d=_0x547587;this[_0x47598d(0xc2)]&&(this[_0x47598d(0xc2)]=!0x1,this[_0x47598d(0x7f)](_0x47598d(0xd2),this));}[_0x547587(0x96)](){const _0x21f884=_0x547587;this[_0x21f884(0xb3)]&&(this[_0x21f884(0xb3)]=!0x1,this[_0x21f884(0x7f)](_0x21f884(0xbd),this));}[_0x547587(0x97)](_0x8472d){const _0xc1ca36=_0x547587;this[_0xc1ca36(0x7f)](_0xc1ca36(0xa2),{'type':_0xc1ca36(0xb6),'toolName':_0x8472d[_0xc1ca36(0xbf)],'data':structuredClone(_0x8472d[_0xc1ca36(0xb4)]||{}),'attributes':structuredClone(_0x8472d[_0xc1ca36(0x81)]||{})},this);}[_0x547587(0x9d)](_0x5b4556){const _0x1d9954=_0x547587;this[_0x1d9954(0x7f)](_0x1d9954(0xa2),{'type':_0x1d9954(0x86),'toolName':_0x5b4556[_0x1d9954(0xbf)],'data':structuredClone(_0x5b4556[_0x1d9954(0xb4)])},this);}[_0x547587(0xa0)](){const _0x425494=_0x547587;this[_0x425494(0xab)]=!0x0,this[_0x425494(0x8e)]&&this[_0x425494(0x8e)][_0x425494(0x8c)][_0x425494(0x94)](),this[_0x425494(0xbc)]&&this[_0x425494(0xbc)][_0x425494(0xce)](),this[_0x425494(0x8e)]=this[_0x425494(0xbc)]=void 0x0;}}
23
+ const _0x412129=_0x5505;(function(_0x4d849c,_0x5538d4){const _0x1bac49=_0x5505,_0x5d565e=_0x4d849c();while(!![]){try{const _0x26d13c=parseInt(_0x1bac49(0x1de))/0x1*(-parseInt(_0x1bac49(0x1a2))/0x2)+parseInt(_0x1bac49(0x1c2))/0x3+parseInt(_0x1bac49(0x1c5))/0x4*(parseInt(_0x1bac49(0x1bf))/0x5)+parseInt(_0x1bac49(0x1c4))/0x6*(-parseInt(_0x1bac49(0x1c8))/0x7)+parseInt(_0x1bac49(0x1b2))/0x8*(-parseInt(_0x1bac49(0x1ea))/0x9)+-parseInt(_0x1bac49(0x1e3))/0xa+parseInt(_0x1bac49(0x1b1))/0xb;if(_0x26d13c===_0x5538d4)break;else _0x5d565e['push'](_0x5d565e['shift']());}catch(_0x36cf6d){_0x5d565e['push'](_0x5d565e['shift']());}}}(_0x2bd2,0xe9055));import{CKEditorError as _0x4603a6,EmitterMixin as _0x55b844,uid as _0x241005}from'ckeditor5/src/utils.js';function _0x5505(_0x22b180,_0x33662f){const _0x2bd26e=_0x2bd2();return _0x5505=function(_0x55055c,_0x1f3ab5){_0x55055c=_0x55055c-0x19f;let _0x4098dc=_0x2bd26e[_0x55055c];return _0x4098dc;},_0x5505(_0x22b180,_0x33662f);}import{AIReply as _0x176839}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x412129(0x1bd),_0x412129(0x1d6),_0x412129(0x1a3),_0x412129(0x1ce),_0x412129(0x1c3),_0x412129(0x1ef),_0x412129(0x1e5),_0x412129(0x1af),_0x412129(0x1ed),_0x412129(0x1dd),_0x412129(0x1be),_0x412129(0x1a7),_0x412129(0x1ad),_0x412129(0x1d7),_0x412129(0x1c9)];export class AIInteraction extends _0x55b844(){['id'];[_0x412129(0x1da)]=[];[_0x412129(0x1eb)];[_0x412129(0x1e1)];[_0x412129(0x1bc)];[_0x412129(0x1aa)];[_0x412129(0x1b8)];[_0x412129(0x1dc)]=!0x1;[_0x412129(0x1e4)]=!0x1;[_0x412129(0x1c0)];[_0x412129(0x1b7)]=!0x1;[_0x412129(0x1f6)]=!0x1;constructor({connector:_0x36e71b,editor:_0x3d5e20}){const _0x4e9f3e=_0x412129;super(),this['id']=_0x241005(),this[_0x4e9f3e(0x1b8)]=_0x36e71b,this[_0x4e9f3e(0x1dc)]=!0x0,this[_0x4e9f3e(0x1c0)]=_0x3d5e20;}async[_0x412129(0x1e0)](){const _0x3124a4=_0x412129,_0x530aea=[];let _0x5122c0,_0x1adef4,_0xe03f5e;this[_0x3124a4(0x1dc)]=!0x1;try{this[_0x3124a4(0x1aa)]=await this[_0x3124a4(0x1ac)](),this[_0x3124a4(0x1a5)](_0x3124a4(0x1d6),this);const _0x228115=await this[_0x3124a4(0x1aa)][_0x3124a4(0x1a4)]();for await(const _0x4013d1 of _0x228115){if(this[_0x3124a4(0x1dc)])return;if(_0x3124a4(0x1c9)==_0x4013d1[_0x3124a4(0x1df)])return void this[_0x3124a4(0x1a5)](_0x3124a4(0x1c9),{'error':new _0x4603a6(_0x3124a4(0x1d2),this)});switch(_0x4013d1[_0x3124a4(0x1df)]){case _0x3124a4(0x1f1):this[_0x3124a4(0x1e1)]=_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e1)];break;case _0x3124a4(0x1ee):this[_0x3124a4(0x1bc)]=_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x19f)];break;case _0x3124a4(0x1a9):this[_0x3124a4(0x1ed)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e6)],!0x0);break;case _0x3124a4(0x1f2):_0x530aea[_0x3124a4(0x1b3)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1f2)]);break;case _0x3124a4(0x1cf):this[_0x3124a4(0x1f6)]||(this[_0x3124a4(0x1f6)]=!0x0,this[_0x3124a4(0x1a5)](_0x3124a4(0x1dd),this));break;case _0x3124a4(0x1a1):this[_0x3124a4(0x1b7)]||(this[_0x3124a4(0x1b7)]=!0x0,this[_0x3124a4(0x1a5)](_0x3124a4(0x1a7),this));break;case _0x3124a4(0x1a0):case _0x3124a4(0x1ca):this[_0x3124a4(0x1d5)](),this[_0x3124a4(0x1cd)](),_0x5122c0=_0x3124a4(0x1a0)==_0x4013d1[_0x3124a4(0x1df)]?_0x3124a4(0x1b9):_0x3124a4(0x1db),_0x1adef4=_0x3124a4(0x1a0)==_0x4013d1[_0x3124a4(0x1df)]?_0x4013d1[_0x3124a4(0x1e2)]['id']:void 0x0,this[_0x3124a4(0x1eb)]&&this[_0x3124a4(0x1eb)][_0x3124a4(0x1f0)]!=_0x5122c0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1b4)](),this[_0x3124a4(0x1eb)]=void 0x0),this[_0x3124a4(0x1eb)]||(this[_0x3124a4(0x1eb)]=this[_0x3124a4(0x1e7)]({'type':_0x5122c0,'interactionId':this['id'],'id':_0x1adef4}),_0x3124a4(0x1b9)==_0x5122c0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1d4)]=_0x530aea[_0x3124a4(0x1d0)](0x0))),this[_0x3124a4(0x1eb)][_0x3124a4(0x1cb)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e9)]);break;case _0x3124a4(0x1ba):_0xe03f5e=JSON[_0x3124a4(0x1b0)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1ec)]),this[_0x3124a4(0x1b5)]({'toolName':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1d9)],'data':_0xe03f5e[_0x3124a4(0x1e2)],'attributes':_0xe03f5e[_0x3124a4(0x1c1)]});break;case _0x3124a4(0x1f5):this[_0x3124a4(0x1ae)]({'toolName':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1d9)],'data':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e2)]});}}}finally{this[_0x3124a4(0x1dc)]||(this[_0x3124a4(0x1eb)]&&_0x530aea[_0x3124a4(0x1d1)]>0x0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1d4)]=_0x530aea[_0x3124a4(0x1d0)](0x0)),this[_0x3124a4(0x1e8)](),this[_0x3124a4(0x1a5)](_0x3124a4(0x1ce),this));}}[_0x412129(0x1d8)](){const _0x546f80=_0x412129;this[_0x546f80(0x1dc)]||(this[_0x546f80(0x1e8)](),this[_0x546f80(0x1a5)](_0x546f80(0x1a3),this));}[_0x412129(0x1f4)](_0x497d92){const _0x45046f=_0x412129;return this[_0x45046f(0x1da)][_0x45046f(0x1cc)](_0x181588=>_0x181588['id']===_0x497d92);}[_0x412129(0x1b6)](){const _0x3aedff=_0x412129;this[_0x3aedff(0x1e4)]||(this[_0x3aedff(0x1d8)](),this[_0x3aedff(0x1da)][_0x3aedff(0x1a8)](_0x12785=>_0x12785[_0x3aedff(0x1b6)]()),this[_0x3aedff(0x1da)]=[],this[_0x3aedff(0x1e4)]=!0x0,this[_0x3aedff(0x1a5)](_0x3aedff(0x1c3),this),this[_0x3aedff(0x1d3)]());}[_0x412129(0x1e7)](_0x4d02f9){const _0x57b196=_0x412129,_0x28a8d2=new _0x176839({'editor':this[_0x57b196(0x1c0)],'documentContextContent':this[_0x57b196(0x1f3)]()?.[_0x57b196(0x1c6)],..._0x4d02f9});return this[_0x57b196(0x1da)][_0x57b196(0x1b3)](_0x28a8d2),_0x28a8d2[_0x57b196(0x1ab)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x57b196(0x1a5)](_0x57b196(0x1ef),_0x28a8d2),_0x28a8d2;}[_0x412129(0x1ed)](_0x3f6733,_0x46829e=!0x1){const _0x3d5930=_0x412129;this[_0x3d5930(0x1a5)](_0x3d5930(0x1ed),_0x3f6733,_0x46829e);}[_0x412129(0x1cd)](){const _0x2ff8f1=_0x412129;this[_0x2ff8f1(0x1f6)]&&(this[_0x2ff8f1(0x1f6)]=!0x1,this[_0x2ff8f1(0x1a5)](_0x2ff8f1(0x1be),this));}[_0x412129(0x1d5)](){const _0xa2bcaf=_0x412129;this[_0xa2bcaf(0x1b7)]&&(this[_0xa2bcaf(0x1b7)]=!0x1,this[_0xa2bcaf(0x1a5)](_0xa2bcaf(0x1ad),this));}[_0x412129(0x1b5)](_0x2fe20f){const _0x51259b=_0x412129;this[_0x51259b(0x1a5)](_0x51259b(0x1d7),{'type':_0x51259b(0x1ec),'toolName':_0x2fe20f[_0x51259b(0x1d9)],'data':structuredClone(_0x2fe20f[_0x51259b(0x1e2)]||{}),'attributes':structuredClone(_0x2fe20f[_0x51259b(0x1c1)]||{})},this);}[_0x412129(0x1ae)](_0x580967){const _0x4a697d=_0x412129;this[_0x4a697d(0x1a5)](_0x4a697d(0x1d7),{'type':_0x4a697d(0x1c7),'toolName':_0x580967[_0x4a697d(0x1d9)],'data':structuredClone(_0x580967[_0x4a697d(0x1e2)])},this);}[_0x412129(0x1e8)](){const _0x1750f1=_0x412129;this[_0x1750f1(0x1dc)]=!0x0,this[_0x1750f1(0x1aa)]&&this[_0x1750f1(0x1aa)][_0x1750f1(0x1bb)][_0x1750f1(0x1a6)](),this[_0x1750f1(0x1eb)]&&this[_0x1750f1(0x1eb)][_0x1750f1(0x1b4)](),this[_0x1750f1(0x1aa)]=this[_0x1750f1(0x1eb)]=void 0x0;}}function _0x2bd2(){const _0x1cfac3=['currentReply','result','setConversationTitle','action-metadata','replyCreated','type','message-metadata','source','getDocumentContext','getReply','mcp-tool-notification','_isWebSearching','callId','modification-delta','reasoning','241694NwKATP','interactionStopped','getStream','fire','abort','reasoningStarted','forEach','conversation-title','currentRequest','delegate','sendRequest','reasoningFinished','_handleToolNotificationData','replyChangeGroupStateUpdated','parse','39270968VaWPsN','1219048gkzdOF','push','done','_handleToolResultData','destroy','_isReasoning','connector','modification','mcp-tool-result','abortController','actionCallId','interactionCreated','webSearchFinished','1426265zxVSZZ','editor','attributes','3030864wDkSRT','interactionDestroyed','6aFEprM','12WiusTy','content','notification','12853925zHhjeq','error','text-delta','appendContent','find','resetWebSearchState','interactionFinished','web-search','splice','length','ai-chat-interaction-error','stopListening','sources','resetReasoningState','interactionStarted','toolDataReceived','stop','toolName','replies','text','isStopped','webSearchStarted','9SubDHb','event','start','messageId','data','12530220BSWcwY','isDestroyed','replyContentUpdated','conversationTitle','createReply','_finalizeInteraction','textDelta','18WkDmcL'];_0x2bd2=function(){return _0x1cfac3;};return _0x2bd2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48080a=_0x362c;(function(_0xca0e04,_0x2e3d5f){const _0x40a6c2=_0x362c,_0x457482=_0xca0e04();while(!![]){try{const _0x3fe036=-parseInt(_0x40a6c2(0x183))/0x1*(-parseInt(_0x40a6c2(0x17d))/0x2)+parseInt(_0x40a6c2(0x188))/0x3*(-parseInt(_0x40a6c2(0x17a))/0x4)+-parseInt(_0x40a6c2(0x1a0))/0x5*(-parseInt(_0x40a6c2(0x18a))/0x6)+parseInt(_0x40a6c2(0x190))/0x7+parseInt(_0x40a6c2(0x19e))/0x8+-parseInt(_0x40a6c2(0x17f))/0x9+-parseInt(_0x40a6c2(0x174))/0xa*(parseInt(_0x40a6c2(0x192))/0xb);if(_0x3fe036===_0x2e3d5f)break;else _0x457482['push'](_0x457482['shift']());}catch(_0x582c6c){_0x457482['push'](_0x457482['shift']());}}}(_0x2df5,0x21d0d));function _0x362c(_0x539d3a,_0x1c5920){const _0x2df58f=_0x2df5();return _0x362c=function(_0x362ca5,_0x27f621){_0x362ca5=_0x362ca5-0x172;let _0x5d248e=_0x2df58f[_0x362ca5];return _0x5d248e;},_0x362c(_0x539d3a,_0x1c5920);}import{EmitterMixin as _0x19d10a,logWarning as _0x61cd53,logError as _0x57faf0}from'ckeditor5/src/utils.js';import{getTranslation as _0x579834}from'../utils/common-translations.js';export class AIModels extends _0x19d10a(){[_0x48080a(0x1a3)];[_0x48080a(0x19a)];[_0x48080a(0x189)];[_0x48080a(0x184)]=[];[_0x48080a(0x193)]=null;constructor({connector:_0x5743c4,config:_0x13e061,locale:_0x49b589}){const _0x2098ba=_0x48080a;super(),this[_0x2098ba(0x1a3)]=_0x5743c4,this[_0x2098ba(0x19a)]=_0x13e061,this[_0x2098ba(0x189)]=_0x49b589;}get[_0x48080a(0x18e)](){const _0x410258=_0x48080a;return this[_0x410258(0x19a)]?.[_0x410258(0x177)];}get[_0x48080a(0x194)](){const _0x5b8696=_0x48080a;return this[_0x5b8696(0x19a)]?.[_0x5b8696(0x1a4)];}async[_0x48080a(0x1a6)](){const _0x3e9913=_0x48080a;return this[_0x3e9913(0x193)]||(this[_0x3e9913(0x193)]=this[_0x3e9913(0x17c)]()),this[_0x3e9913(0x193)];}async[_0x48080a(0x191)](){const _0x3f878e=_0x48080a,_0x4f35e2=await this[_0x3f878e(0x1a6)]();let _0x228609;return _0x228609=this[_0x3f878e(0x18e)]?this[_0x3f878e(0x185)](_0x4f35e2,this[_0x3f878e(0x18e)]):_0x4f35e2[_0x3f878e(0x196)](_0x395489=>_0x395489[_0x3f878e(0x18b)]),_0x228609;}async[_0x48080a(0x19f)](_0x3fc8c0){const _0x108a23=_0x48080a,_0x3bc986=await this[_0x108a23(0x1a6)]();if(!_0x3bc986[_0x108a23(0x180)])return null;if(_0x3fc8c0){const _0x558ed4=this[_0x108a23(0x1a5)](_0x3bc986,_0x3fc8c0);if(_0x558ed4)return _0x558ed4;_0x61cd53(_0x108a23(0x199),{'modelId':_0x3fc8c0,'fallBackModelId':this[_0x108a23(0x194)]});}return this[_0x108a23(0x18c)]();}async[_0x48080a(0x18c)](){const _0xb51896=_0x48080a,_0x2fae2a=await this[_0xb51896(0x191)]();if(!_0x2fae2a[_0xb51896(0x180)])return null;if(this[_0xb51896(0x194)]){const _0x3a3a20=this[_0xb51896(0x1a5)](_0x2fae2a,this[_0xb51896(0x194)]);if(_0x3a3a20)return _0x3a3a20;_0x61cd53(_0xb51896(0x198),{'defaultModelId':this[_0xb51896(0x194)],'fallBackModelId':_0x2fae2a[0x0]['id']});}return _0x2fae2a[0x0];}async[_0x48080a(0x17e)](_0x43d1a6){const _0x403a8c=_0x48080a;return(await this[_0x403a8c(0x191)]())[_0x403a8c(0x178)](_0x258da3=>_0x258da3[_0x403a8c(0x18d)]===_0x43d1a6[_0x403a8c(0x18d)]&&_0x258da3[_0x403a8c(0x173)]===_0x43d1a6[_0x403a8c(0x173)]);}async[_0x48080a(0x17c)](){const _0x31b450=_0x48080a;if(!this[_0x31b450(0x184)][_0x31b450(0x180)])try{const _0x2a652e=this[_0x31b450(0x189)][_0x31b450(0x17b)]||'en',_0x1d4834=this[_0x31b450(0x1a3)][_0x31b450(0x187)](_0x2a652e),_0x906e43=await _0x1d4834[_0x31b450(0x197)]();this[_0x31b450(0x184)]=_0x906e43[_0x31b450(0x172)][_0x31b450(0x175)](_0x406e9a=>Bi(_0x406e9a)?{..._0x406e9a,'name':_0x579834(this[_0x31b450(0x189)],_0x31b450(0x19b))}:_0x406e9a);}catch(_0xecee0d){throw _0x57faf0(_0x31b450(0x1a2),{'error':_0xecee0d}),_0xecee0d;}return[...this[_0x31b450(0x184)]];}[_0x48080a(0x185)](_0x15731f,_0x57128d){const _0x37dbe1=_0x48080a;let _0x41b5ec;if(_0x57128d){_0x41b5ec=[];const _0x1a6f3f=new Set(),_0xfb3660=_0x37dbe1(0x1a1)==typeof _0x57128d?[_0x57128d[_0x37dbe1(0x195)]()]:_0x57128d[_0x37dbe1(0x175)](_0x32664a=>_0x32664a[_0x37dbe1(0x195)]());for(const _0x177dfa of _0xfb3660)for(const _0x58eaa7 of _0x15731f)!_0x1a6f3f[_0x37dbe1(0x18f)](_0x58eaa7['id'])&&this[_0x37dbe1(0x179)](_0x58eaa7,_0x177dfa)&&(_0x41b5ec[_0x37dbe1(0x186)](_0x58eaa7),_0x1a6f3f[_0x37dbe1(0x176)](_0x58eaa7['id']));}else _0x41b5ec=_0x15731f;return _0x41b5ec;}[_0x48080a(0x179)](_0x3df9af,_0x435244){const _0xf8383b=_0x48080a,_0x1493d5=_0x3df9af['id'][_0xf8383b(0x195)](),_0x3ee7b6=_0x3df9af[_0xf8383b(0x18d)][_0xf8383b(0x195)](),_0x3ac9b2=_0x3df9af[_0xf8383b(0x173)][_0xf8383b(0x195)]();return _0x1493d5===_0x435244||_0x3ee7b6===_0x435244||Bi(_0x3df9af)&&_0xf8383b(0x181)===_0x435244||_0x3ac9b2===_0x435244||_0x1493d5[_0xf8383b(0x19c)](_0x435244);}[_0x48080a(0x1a5)](_0x4b5fe8,_0x361b55){const _0xcbb244=_0x48080a;return _0x4b5fe8[_0xcbb244(0x182)](_0x272592=>Bi(_0x272592)&&_0xcbb244(0x181)===_0x361b55?_0x272592:_0x272592['id']===_0x361b55)||null;}}function Bi(_0x573c4a){const _0x4969c5=_0x48080a;return _0x573c4a['id'][_0x4969c5(0x19c)](_0x4969c5(0x19d));}function _0x2df5(){const _0x199867=['displayedModels','some','_isMatchingFilter','209444GqAtEI','uiLanguage','_retrieveModels','165112zvbMFf','isAvailable','1119726lFVUuw','length','auto','find','2wfEPBX','_modelList','_filterModels','push','getModels','3sbHQCH','_locale','174SuQxHJ','recommended','getDefault','name','_availableModels','has','473536PduyVj','getAvailableModels','884774FaPsgl','_modelsRequest','_defaultModelId','toLocaleLowerCase','filter','list','ai-chat-default-model-id-unrecognized','ai-chat-model-id-unrecognized','_config','AI_MODEL_NAME_AUTO','startsWith','agent','2048096DAqvZU','getModel','25560VTjkmj','string','ai-models-unable-to-retrieve','_connector','defaultModelId','_getModelById','getAll','items','provider','40TslKZK','map','add'];_0x2df5=function(){return _0x199867;};return _0x2df5();}
23
+ function _0x12b9(_0x413946,_0x28ae30){const _0x2b244a=_0x2b24();return _0x12b9=function(_0x12b915,_0x4b16fd){_0x12b915=_0x12b915-0x154;let _0x12b8fe=_0x2b244a[_0x12b915];return _0x12b8fe;},_0x12b9(_0x413946,_0x28ae30);}const _0x58b2ee=_0x12b9;(function(_0x1442bb,_0x2d7024){const _0x3c4cf6=_0x12b9,_0x4642c9=_0x1442bb();while(!![]){try{const _0x1d1edf=parseInt(_0x3c4cf6(0x169))/0x1*(parseInt(_0x3c4cf6(0x160))/0x2)+-parseInt(_0x3c4cf6(0x177))/0x3+-parseInt(_0x3c4cf6(0x163))/0x4+parseInt(_0x3c4cf6(0x16a))/0x5+parseInt(_0x3c4cf6(0x173))/0x6+-parseInt(_0x3c4cf6(0x175))/0x7*(-parseInt(_0x3c4cf6(0x15e))/0x8)+parseInt(_0x3c4cf6(0x166))/0x9;if(_0x1d1edf===_0x2d7024)break;else _0x4642c9['push'](_0x4642c9['shift']());}catch(_0x16fbeb){_0x4642c9['push'](_0x4642c9['shift']());}}}(_0x2b24,0xb7700));import{EmitterMixin as _0x7fff32,logWarning as _0x49b40e,logError as _0x17e592}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f4485}from'../utils/common-translations.js';export class AIModels extends _0x7fff32(){[_0x58b2ee(0x172)];[_0x58b2ee(0x154)];[_0x58b2ee(0x157)];[_0x58b2ee(0x158)]=[];[_0x58b2ee(0x15a)]=null;constructor({connector:_0x23ccc6,config:_0x288277,locale:_0x44f81c}){const _0x272687=_0x58b2ee;super(),this[_0x272687(0x172)]=_0x23ccc6,this[_0x272687(0x154)]=_0x288277,this[_0x272687(0x157)]=_0x44f81c;}get[_0x58b2ee(0x167)](){const _0x382e24=_0x58b2ee;return this[_0x382e24(0x154)]?.[_0x382e24(0x186)];}get[_0x58b2ee(0x16c)](){const _0x1db1c6=_0x58b2ee;return this[_0x1db1c6(0x154)]?.[_0x1db1c6(0x164)];}async[_0x58b2ee(0x170)](){const _0x39dd1f=_0x58b2ee;return this[_0x39dd1f(0x15a)]||(this[_0x39dd1f(0x15a)]=this[_0x39dd1f(0x16e)]()),this[_0x39dd1f(0x15a)];}async[_0x58b2ee(0x17f)](){const _0x49b347=_0x58b2ee,_0x3d0430=await this[_0x49b347(0x170)]();let _0x3c6884;return _0x3c6884=this[_0x49b347(0x167)]?this[_0x49b347(0x183)](_0x3d0430,this[_0x49b347(0x167)]):_0x3d0430[_0x49b347(0x15c)](_0x4cb671=>_0x4cb671[_0x49b347(0x176)]),_0x3c6884;}async[_0x58b2ee(0x16f)](_0x220a73){const _0x2f9adc=_0x58b2ee,_0x432452=await this[_0x2f9adc(0x170)]();if(!_0x432452[_0x2f9adc(0x16d)])return null;if(_0x220a73){const _0x233bdb=this[_0x2f9adc(0x161)](_0x432452,_0x220a73);if(_0x233bdb)return _0x233bdb;_0x49b40e(_0x2f9adc(0x17c),{'modelId':_0x220a73,'fallBackModelId':this[_0x2f9adc(0x16c)]});}return this[_0x2f9adc(0x17b)]();}async[_0x58b2ee(0x17b)](){const _0x2d29dc=_0x58b2ee,_0x3832b7=await this[_0x2d29dc(0x17f)]();if(!_0x3832b7[_0x2d29dc(0x16d)])return null;if(this[_0x2d29dc(0x16c)]){const _0x27ff8d=this[_0x2d29dc(0x161)](_0x3832b7,this[_0x2d29dc(0x16c)]);if(_0x27ff8d)return _0x27ff8d;_0x49b40e(_0x2d29dc(0x162),{'defaultModelId':this[_0x2d29dc(0x16c)],'fallBackModelId':_0x3832b7[0x0]['id']});}return _0x3832b7[0x0];}async[_0x58b2ee(0x174)](_0x53b5c4){const _0x478d49=_0x58b2ee;return(await this[_0x478d49(0x17f)]())[_0x478d49(0x184)](_0x70d082=>_0x70d082[_0x478d49(0x17d)]===_0x53b5c4[_0x478d49(0x17d)]&&_0x70d082[_0x478d49(0x156)]===_0x53b5c4[_0x478d49(0x156)]);}async[_0x58b2ee(0x16e)](){const _0x484f7b=_0x58b2ee;if(!this[_0x484f7b(0x158)][_0x484f7b(0x16d)])try{const _0x2645be=this[_0x484f7b(0x157)][_0x484f7b(0x165)]||'en',_0x3dee2f=this[_0x484f7b(0x172)][_0x484f7b(0x159)](_0x2645be),_0x354ac1=await _0x3dee2f[_0x484f7b(0x16b)]();this[_0x484f7b(0x158)]=_0x354ac1[_0x484f7b(0x15f)][_0x484f7b(0x181)](_0x42a486=>Bi(_0x42a486)?{..._0x42a486,'name':_0x3f4485(this[_0x484f7b(0x157)],_0x484f7b(0x17a))}:_0x42a486);}catch(_0x37ebaa){throw _0x17e592(_0x484f7b(0x168),{'error':_0x37ebaa}),_0x37ebaa;}return[...this[_0x484f7b(0x158)]];}[_0x58b2ee(0x183)](_0x96ad6d,_0xd81b37){const _0x2958ad=_0x58b2ee;let _0x2efeab;if(_0xd81b37){_0x2efeab=[];const _0x38f3ff=new Set(),_0x27ba0e=_0x2958ad(0x178)==typeof _0xd81b37?[_0xd81b37[_0x2958ad(0x179)]()]:_0xd81b37[_0x2958ad(0x181)](_0x2a9df8=>_0x2a9df8[_0x2958ad(0x179)]());for(const _0x23396f of _0x27ba0e)for(const _0x54f9a3 of _0x96ad6d)!_0x38f3ff[_0x2958ad(0x180)](_0x54f9a3['id'])&&this[_0x2958ad(0x185)](_0x54f9a3,_0x23396f)&&(_0x2efeab[_0x2958ad(0x182)](_0x54f9a3),_0x38f3ff[_0x2958ad(0x171)](_0x54f9a3['id']));}else _0x2efeab=_0x96ad6d;return _0x2efeab;}[_0x58b2ee(0x185)](_0x553523,_0x29fdd1){const _0x213e10=_0x58b2ee,_0x1ab670=_0x553523['id'][_0x213e10(0x179)](),_0x34ad44=_0x553523[_0x213e10(0x17d)][_0x213e10(0x179)](),_0xa5a3b0=_0x553523[_0x213e10(0x156)][_0x213e10(0x179)]();return _0x1ab670===_0x29fdd1||_0x34ad44===_0x29fdd1||Bi(_0x553523)&&_0x213e10(0x155)===_0x29fdd1||_0xa5a3b0===_0x29fdd1||_0x1ab670[_0x213e10(0x17e)](_0x29fdd1);}[_0x58b2ee(0x161)](_0x4ced2d,_0x5553ac){const _0x2ff8d9=_0x58b2ee;return _0x4ced2d[_0x2ff8d9(0x15b)](_0x31ca2a=>Bi(_0x31ca2a)&&_0x2ff8d9(0x155)===_0x5553ac?_0x31ca2a:_0x31ca2a['id']===_0x5553ac)||null;}}function Bi(_0x1953cd){const _0x3de65f=_0x58b2ee;return _0x1953cd['id'][_0x3de65f(0x17e)](_0x3de65f(0x15d));}function _0x2b24(){const _0x365b78=['1344738hkpZrS','isAvailable','14WMkplZ','recommended','3192726kCNyWV','string','toLocaleLowerCase','AI_MODEL_NAME_AUTO','getDefault','ai-chat-model-id-unrecognized','name','startsWith','getAvailableModels','has','map','push','_filterModels','some','_isMatchingFilter','displayedModels','_config','auto','provider','_locale','_modelList','getModels','_modelsRequest','find','filter','agent','3698888KfoBNJ','items','2847748xyWNnz','_getModelById','ai-chat-default-model-id-unrecognized','6009124mdMvBw','defaultModelId','uiLanguage','5285061cTtOXf','_availableModels','ai-models-unable-to-retrieve','1rEGtYZ','789675hMFVEF','list','_defaultModelId','length','_retrieveModels','getModel','getAll','add','_connector'];_0x2b24=function(){return _0x365b78;};return _0x2b24();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cc7b0=_0x1d2c;(function(_0x2c5f24,_0x246512){const _0xd15fa2=_0x1d2c,_0x2b1f77=_0x2c5f24();while(!![]){try{const _0x52ba27=-parseInt(_0xd15fa2(0x110))/0x1*(-parseInt(_0xd15fa2(0xf1))/0x2)+parseInt(_0xd15fa2(0xe5))/0x3*(-parseInt(_0xd15fa2(0x125))/0x4)+-parseInt(_0xd15fa2(0x11f))/0x5+parseInt(_0xd15fa2(0xe6))/0x6*(parseInt(_0xd15fa2(0x10f))/0x7)+-parseInt(_0xd15fa2(0xf6))/0x8+parseInt(_0xd15fa2(0xea))/0x9*(-parseInt(_0xd15fa2(0x117))/0xa)+parseInt(_0xd15fa2(0x118))/0xb;if(_0x52ba27===_0x246512)break;else _0x2b1f77['push'](_0x2b1f77['shift']());}catch(_0x35a9a3){_0x2b1f77['push'](_0x2b1f77['shift']());}}}(_0x5895,0x9b711));import{CKEditorError as _0x9e8bbf,ObservableMixin as _0xa60d90,uid as _0x2ad607}from'ckeditor5/src/utils.js';import{Element as _0x3b3dd3,findAll as _0x264a4f,getAttribute as _0x3b92e1,getParents as _0x25e81e,Document as _0x19af40,parse as _0x31af9d,Text as _0x20585c}from'../utils/htmlparser.js';import{AIResponseParser as _0x4853d1}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x401d08}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3a4591}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x238ef}from'../utils/common-translations.js';import{cloneDeep as _0x78aff0}from'es-toolkit';function _0x1d2c(_0x37ca39,_0x42f99c){const _0x58953f=_0x5895();return _0x1d2c=function(_0x1d2caf,_0x846dbb){_0x1d2caf=_0x1d2caf-0xda;let _0x4f8f8b=_0x58953f[_0x1d2caf];return _0x4f8f8b;},_0x1d2c(_0x37ca39,_0x42f99c);}function _0x5895(){const _0x533730=['stopListening','push','interactionId','_setCachedContentParts','3676990nPkXvf','27619691IAfphv','done','includes','forEach','onContentChange','changeGroups','aiResponseApplier','3243590xTmtum','editor','replyContentUpdated','unshift','modification','ai-reply-get-content-parts-group-not-found','4SRNXqg','_getDifferentChangeGroups','pending','indexOf','context','data-unstable','parsedMergedContent','length','modified','cachedSuggestionContentParts','node','_getCachedContentParts','cloneNode','withDiff','modifiedNodeIds','removedNodeIds','find','2299926uBTqZn','102bejtCH','changes','removed','ai-get-editor-from-context-no-editor','18PYqaLn','convertMarkdownToHTML','setChangeGroupState','state','splice','change:content','every','3370FQdCER','type','destroy','isDone','parseAndNormalizeHTML','6656640bgKwIZ','index','sources','span','new','color:\x20#808080;\x20font-style:\x20italic','appendContent','locale','AI_SUGGESTION_CONTENT_PART_REMOVED','nextSibling','areActionsDisabled','content','getContentParts','updateChangeGroups','merge','data-id','newNodeIds','withoutDiff','filter','replyChangeGroupStateUpdated','documentContextContent','set','previousSibling','aiResponseParser','fire','394751DQSJvQ','89acQgaM','map','parsedContent'];_0x5895=function(){return _0x533730;};return _0x5895();}export class AIReply extends _0xa60d90(){['id'];[_0x2cc7b0(0x115)];[_0x2cc7b0(0xf2)];[_0x2cc7b0(0xf8)]=[];[_0x2cc7b0(0x112)]=new _0x19af40([]);[_0x2cc7b0(0xda)]=new _0x19af40([]);[_0x2cc7b0(0x11d)]=[];[_0x2cc7b0(0x100)]=!0x1;[_0x2cc7b0(0x10a)];[_0x2cc7b0(0x10d)];[_0x2cc7b0(0x11e)];[_0x2cc7b0(0x120)];[_0x2cc7b0(0xdd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3e1018,content:_0x171112='',isDone:_0x46c254=!0x1,interactionId:_0x4bd52b,areActionsDisabled:_0x4bdbfe,documentContextContent:_0x5efef2,editor:_0xa1ef6f,id:_0x4965d0}){const _0x430777=_0x2cc7b0;super(),this['id']=_0x4965d0||_0x2ad607(),this[_0x430777(0x115)]=_0x4bd52b,this[_0x430777(0xf2)]=_0x3e1018,this[_0x430777(0x100)]=!!_0x4bdbfe,this[_0x430777(0x120)]=_0xa1ef6f,this[_0x430777(0x10d)]=new _0x4853d1(),this[_0x430777(0x11e)]=new _0x401d08(),this[_0x430777(0x10a)]=_0x31af9d(_0x5efef2||''),this[_0x430777(0x10b)](_0x430777(0xf4),_0x46c254),this['on'](_0x430777(0xef),()=>{const _0x36b772=_0x430777;this[_0x36b772(0x11c)]();}),this[_0x430777(0x10b)](_0x430777(0x101),_0x171112);}[_0x2cc7b0(0xfc)](_0x3c8a05){const _0x1a478e=_0x2cc7b0;this[_0x1a478e(0x10b)](_0x1a478e(0x101),this[_0x1a478e(0x101)]+_0x3c8a05);}[_0x2cc7b0(0x119)](){const _0x3ed795=_0x2cc7b0;this[_0x3ed795(0xf4)]||(this[_0x3ed795(0x10b)](_0x3ed795(0xf4),!0x0),this[_0x3ed795(0x11c)]());}[_0x2cc7b0(0xf3)](){const _0x233588=_0x2cc7b0;this[_0x233588(0x113)]();}[_0x2cc7b0(0xec)](_0x320db8,_0x634aae){const _0x3360d4=_0x2cc7b0;this[_0x3360d4(0x11d)][_0x320db8][_0x3360d4(0xed)]=_0x634aae,this[_0x3360d4(0x10e)](_0x3360d4(0x109),{'reply':this,'index':_0x320db8,'state':_0x634aae});}[_0x2cc7b0(0x102)]({showDiff:_0x25fe9f,groupIndex:_0x1fac0d}){const _0x4205cd=_0x2cc7b0;if(!this[_0x4205cd(0x120)])throw new _0x9e8bbf(_0x4205cd(0xe9),null,{'aiReply':this});const _0x56105c=this[_0x4205cd(0xdf)](_0x25fe9f,_0x1fac0d);if(_0x56105c)return _0x56105c;let _0x549765=[];if(void 0x0===_0x1fac0d)_0x549765=this[_0x4205cd(0x11d)];else{const _0xe809c3=this[_0x4205cd(0x11d)][_0x4205cd(0xe4)](({index:_0x5b41d3})=>_0x5b41d3===_0x1fac0d);if(!_0xe809c3)throw new _0x9e8bbf(_0x4205cd(0x124),null,{'aiReply':this,'groupIndex':_0x1fac0d});_0x549765=[_0xe809c3];}const _0x5edabd=_0x3a4591({'editor':this[_0x4205cd(0x120)],'showDiff':_0x25fe9f,'changeGroups':_0x549765,'documentContextContent':this[_0x4205cd(0x10a)]});return this[_0x4205cd(0x116)](_0x25fe9f,_0x5edabd),_0x5edabd;}[_0x2cc7b0(0xdf)](_0x42cb19,_0x5d1b2e){const _0x3f3bac=_0x2cc7b0,_0x5482b3=_0x42cb19?_0x3f3bac(0xe1):_0x3f3bac(0x107);if(!this[_0x3f3bac(0xdd)][_0x5482b3][_0x3f3bac(0xdb)])return null;const _0x201154=this[_0x3f3bac(0xdd)][_0x5482b3];if(void 0x0===_0x5d1b2e)return _0x201154[_0x3f3bac(0xdb)]>0x0&&_0x201154[_0x3f3bac(0xdb)]!==this[_0x3f3bac(0x11d)][_0x3f3bac(0xdb)]?(this[_0x3f3bac(0x116)](_0x42cb19,null),null):_0x78aff0(_0x201154);{const _0xc57811=_0x201154[_0x3f3bac(0xe4)](({index:_0x4d16e1})=>_0x4d16e1===_0x5d1b2e);if(_0xc57811)return[_0x78aff0(_0xc57811)];}return null;}[_0x2cc7b0(0x116)](_0x381fd5,_0x3993c3){const _0x26c171=_0x2cc7b0,_0x1774df=_0x381fd5?_0x26c171(0xe1):_0x26c171(0x107);_0x3993c3?_0x3993c3[_0x26c171(0x11b)](_0x48bf64=>{const _0x41075b=_0x26c171,_0x3ae15c=this[_0x41075b(0xdd)][_0x1774df],_0x324434=_0x3ae15c[_0x41075b(0xe4)](({index:_0x10751e})=>_0x10751e===_0x48bf64[_0x41075b(0xf7)]);if(_0x324434){const _0x2d293c=_0x3ae15c[_0x41075b(0x128)](_0x324434);_0x3ae15c[_0x41075b(0xee)](_0x2d293c,0x1,_0x48bf64);}else _0x3ae15c[_0x41075b(0x114)](_0x48bf64);}):this[_0x26c171(0xdd)][_0x1774df][_0x26c171(0xdb)]=0x0;}[_0x2cc7b0(0x11c)](){const _0x4e3c01=_0x2cc7b0;if(_0x4e3c01(0x123)===this[_0x4e3c01(0xf2)]){this[_0x4e3c01(0x112)]=this[_0x4e3c01(0x10d)][_0x4e3c01(0xf5)](this[_0x4e3c01(0x101)]);const _0x54ca8c=this[_0x4e3c01(0x11d)];this[_0x4e3c01(0x103)]();const _0x2efbed=this[_0x4e3c01(0x126)](_0x54ca8c,this[_0x4e3c01(0x11d)]);(_0x2efbed[_0x4e3c01(0xdb)]||this[_0x4e3c01(0xf4)])&&(this[_0x4e3c01(0x10e)](_0x4e3c01(0x121),this,_0x2efbed),this[_0x4e3c01(0xdd)][_0x4e3c01(0xe1)][_0x4e3c01(0xdb)]=this[_0x4e3c01(0xdd)][_0x4e3c01(0x107)][_0x4e3c01(0xdb)]=0x0);}else this[_0x4e3c01(0x112)]=this[_0x4e3c01(0x10d)][_0x4e3c01(0xeb)](this[_0x4e3c01(0x101)]),this[_0x4e3c01(0x10e)](_0x4e3c01(0x121),this);}[_0x2cc7b0(0x126)](_0x4be5e3,_0x4a96fa){const _0x228f70=_0x2cc7b0,_0x1424dd=[];for(const _0x1f5bfa of _0x4a96fa){const _0x1eb5f5=_0x4be5e3[_0x1f5bfa[_0x228f70(0xf7)]];_0x1eb5f5?_0x1eb5f5[_0x228f70(0xe7)][_0x228f70(0xdb)]!==_0x1f5bfa[_0x228f70(0xe7)][_0x228f70(0xdb)]?_0x1424dd[_0x228f70(0x114)](_0x1f5bfa):_0x1eb5f5[_0x228f70(0xe7)][_0x228f70(0x11b)]((_0x1ebcee,_0x387442)=>{const _0x4155f9=_0x228f70,_0x40280f=_0x1f5bfa[_0x4155f9(0xe7)][_0x387442];_0x1ebcee['id']!==_0x40280f['id']&&_0x1424dd[_0x4155f9(0x114)](_0x1f5bfa);}):_0x1424dd[_0x228f70(0x114)](_0x1f5bfa);}return _0x1424dd;}[_0x2cc7b0(0x103)](){const _0x1c6049=_0x2cc7b0,_0x48fdf8=new _0x3b3dd3('p',{},[new _0x3b3dd3(_0x1c6049(0xf9),{'style':_0x1c6049(0xfb)},[new _0x20585c(_0x238ef(this[_0x1c6049(0x120)][_0x1c6049(0xfd)],_0x1c6049(0xfe)))])]),_0x23186e=this[_0x1c6049(0x11e)][_0x1c6049(0x104)](this[_0x1c6049(0x112)],this[_0x1c6049(0x10a)][_0x1c6049(0xe0)](!0x0),{'markUnstableElements':!this[_0x1c6049(0xf4)],'replaceRemovedWith':_0x48fdf8,'cutAfterLastChange':!this[_0x1c6049(0xf4)]});if(!_0x23186e[_0x1c6049(0xe2)][_0x1c6049(0xdb)]&&!this[_0x1c6049(0xf4)])return;this[_0x1c6049(0xda)]=_0x23186e[_0x1c6049(0x112)];let _0x396259=[];if(_0x264a4f(_0x204b2d=>{const _0x47ddff=_0x1c6049,_0x3cfb3e=_0x3b92e1(_0x204b2d,_0x47ddff(0x105));if(!_0x3cfb3e||!_0x2b97d4(_0x3cfb3e))return!0x1;const _0x2ab084=[_0x204b2d,..._0x25e81e(_0x204b2d)]['at'](-0x2);if(_0x204b2d!=_0x2ab084){const _0x23d3c1=_0x3b92e1(_0x2ab084,_0x47ddff(0x105));_0x2b97d4(_0x23d3c1)||(_0x396259[_0x47ddff(0x114)]({'node':_0x2ab084,'id':_0x23d3c1,'type':_0x47ddff(0xdc)}),_0x23186e[_0x47ddff(0xe2)][_0x47ddff(0x114)](_0x23d3c1));}else _0x23186e[_0x47ddff(0xe2)][_0x47ddff(0x11a)](_0x3cfb3e)?_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xdc),'id':_0x3cfb3e}):_0x23186e[_0x47ddff(0x106)][_0x47ddff(0x11a)](_0x3cfb3e)?_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xfa),'id':_0x3cfb3e,'anchorId':_0x3b92e1(_0x204b2d[_0x47ddff(0x10c)],_0x47ddff(0x105))}):_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xe8),'id':_0x3cfb3e});return!0x0;},this[_0x1c6049(0xda)]),_0x396259=_0x396259[_0x1c6049(0x108)](({node:_0x56211e})=>[..._0x25e81e(_0x56211e),_0x56211e][_0x1c6049(0xf0)](_0x4bdf90=>!_0x3b92e1(_0x4bdf90,_0x1c6049(0x12a)))),0x0==_0x396259[_0x1c6049(0xdb)])return;const _0x5eaac9=[[_0x396259[0x0]]];for(let _0x13cb33=0x1;_0x13cb33<_0x396259[_0x1c6049(0xdb)];_0x13cb33++){const _0x10115b=_0x5eaac9[_0x5eaac9[_0x1c6049(0xdb)]-0x1],_0x21ff1c=_0x10115b[_0x10115b[_0x1c6049(0xdb)]-0x1];_0x396259[_0x13cb33][_0x1c6049(0xde)][_0x1c6049(0x10c)]==_0x21ff1c[_0x1c6049(0xde)]&&_0x1c6049(0xdc)!=_0x396259[_0x13cb33][_0x1c6049(0xf2)]&&_0x1c6049(0xdc)!=_0x21ff1c[_0x1c6049(0xf2)]?_0x10115b[_0x1c6049(0x114)](_0x396259[_0x13cb33]):_0x5eaac9[_0x1c6049(0x114)]([_0x396259[_0x13cb33]]);}for(const _0x2f90dd of _0x5eaac9){const _0x391217=_0x2f90dd[0x0],_0x5cf045=_0x2f90dd[_0x2f90dd[_0x1c6049(0xdb)]-0x1],_0x32a8ac=_0x582c4b(_0x391217[_0x1c6049(0xde)][_0x1c6049(0x10c)]);_0x32a8ac&&_0x2f90dd[_0x1c6049(0x122)](_0x32a8ac);const _0xe610e=_0x582c4b(_0x5cf045[_0x1c6049(0xde)][_0x1c6049(0xff)]);_0xe610e&&_0x2f90dd[_0x1c6049(0x114)](_0xe610e);}function _0x2b97d4(_0x165e45){const _0x1b047b=_0x1c6049;return _0x23186e[_0x1b047b(0xe2)][_0x1b047b(0x11a)](_0x165e45)||_0x23186e[_0x1b047b(0x106)][_0x1b047b(0x11a)](_0x165e45)||_0x23186e[_0x1b047b(0xe3)][_0x1b047b(0x11a)](_0x165e45);}function _0x582c4b(_0x3b800a){const _0x3d04a6=_0x1c6049;if(_0x3b800a&&_0x3b92e1(_0x3b800a,_0x3d04a6(0x105))&&!_0x3b92e1(_0x3b800a,_0x3d04a6(0x12a))){const _0x1620a6=_0x3b92e1(_0x3b800a,_0x3d04a6(0x105));if(!_0x2b97d4(_0x1620a6))return{'node':_0x3b800a,'type':_0x3d04a6(0x129),'id':_0x1620a6};}return null;}this[_0x1c6049(0x11d)]=_0x5eaac9[_0x1c6049(0x111)]((_0x1ed9e0,_0x18a9fe)=>({'changes':_0x1ed9e0,'state':_0x1c6049(0x127),'index':_0x18a9fe}));}}
23
+ function _0x21d2(_0x186140,_0x41413c){const _0x10eb9c=_0x10eb();return _0x21d2=function(_0x21d25c,_0x4946a7){_0x21d25c=_0x21d25c-0x1ac;let _0x3fe4a6=_0x10eb9c[_0x21d25c];return _0x3fe4a6;},_0x21d2(_0x186140,_0x41413c);}const _0x1dbc35=_0x21d2;(function(_0x31dddf,_0x7f9185){const _0x3b4e8e=_0x21d2,_0x1b07a3=_0x31dddf();while(!![]){try{const _0x56f419=-parseInt(_0x3b4e8e(0x1de))/0x1*(parseInt(_0x3b4e8e(0x1dc))/0x2)+-parseInt(_0x3b4e8e(0x1c7))/0x3*(-parseInt(_0x3b4e8e(0x1cd))/0x4)+-parseInt(_0x3b4e8e(0x1ac))/0x5*(parseInt(_0x3b4e8e(0x1d7))/0x6)+-parseInt(_0x3b4e8e(0x1ea))/0x7*(parseInt(_0x3b4e8e(0x1f9))/0x8)+-parseInt(_0x3b4e8e(0x1b1))/0x9+-parseInt(_0x3b4e8e(0x1c1))/0xa+-parseInt(_0x3b4e8e(0x1b5))/0xb*(-parseInt(_0x3b4e8e(0x1af))/0xc);if(_0x56f419===_0x7f9185)break;else _0x1b07a3['push'](_0x1b07a3['shift']());}catch(_0x591c67){_0x1b07a3['push'](_0x1b07a3['shift']());}}}(_0x10eb,0x46a26));import{CKEditorError as _0xe8e30a,ObservableMixin as _0x4525dd,uid as _0x40bb6b}from'ckeditor5/src/utils.js';import{Element as _0xbc92c0,findAll as _0x1a0d81,getAttribute as _0x2f0c10,getParents as _0x3cd6e7,Document as _0x1af7e3,parse as _0x3f9970,Text as _0x473226}from'../utils/htmlparser.js';import{AIResponseParser as _0x282d4c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3ec193}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5daa36}from'../utils/getsuggestionpartsfromreply.js';function _0x10eb(){const _0x58b650=['type','126883YaeUbP','previousSibling','aiResponseApplier','newNodeIds','forEach','parsedMergedContent','change:content','find','push','map','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','244769dmEHop','removed','unshift','set','changeGroups','splice','appendContent','editor','merge','ai-get-editor-from-context-no-editor','replyContentUpdated','withDiff','data-unstable','stopListening','cloneNode','112wVwOuh','_setCachedContentParts','modifiedNodeIds','onContentChange','removedNodeIds','5TkwOIY','every','updateChangeGroups','23892DRqnCF','node','1743930yRYUCW','setChangeGroupState','sources','data-id','9647AHhjUE','ai-reply-get-content-parts-group-not-found','isDone','filter','convertMarkdownToHTML','withoutDiff','locale','parsedContent','span','nextSibling','includes','cachedSuggestionContentParts','2561590wUlZVA','pending','length','indexOf','destroy','AI_SUGGESTION_CONTENT_PART_REMOVED','3tUHXTJ','_getDifferentChangeGroups','areActionsDisabled','done','aiResponseParser','state','1242188xZQnkx','_getCachedContentParts','context','getContentParts','new','modification','changes','fire','interactionId','index','3444618VgOaoj','modified','content','parseAndNormalizeHTML','documentContextContent','4hofDVi'];_0x10eb=function(){return _0x58b650;};return _0x10eb();}import{getTranslation as _0x4cbbaa}from'../utils/common-translations.js';import{cloneDeep as _0x16a653}from'es-toolkit';export class AIReply extends _0x4525dd(){['id'];[_0x1dbc35(0x1d5)];[_0x1dbc35(0x1dd)];[_0x1dbc35(0x1b3)]=[];[_0x1dbc35(0x1bc)]=new _0x1af7e3([]);[_0x1dbc35(0x1e3)]=new _0x1af7e3([]);[_0x1dbc35(0x1ee)]=[];[_0x1dbc35(0x1c9)]=!0x1;[_0x1dbc35(0x1db)];[_0x1dbc35(0x1cb)];[_0x1dbc35(0x1e0)];[_0x1dbc35(0x1f1)];[_0x1dbc35(0x1c0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x518453,content:_0x29dc97='',isDone:_0x2c1002=!0x1,interactionId:_0x76ad25,areActionsDisabled:_0x402b13,documentContextContent:_0x51314e,editor:_0x5a5dfe,id:_0x2a5636}){const _0xceb0b3=_0x1dbc35;super(),this['id']=_0x2a5636||_0x40bb6b(),this[_0xceb0b3(0x1d5)]=_0x76ad25,this[_0xceb0b3(0x1dd)]=_0x518453,this[_0xceb0b3(0x1c9)]=!!_0x402b13,this[_0xceb0b3(0x1f1)]=_0x5a5dfe,this[_0xceb0b3(0x1cb)]=new _0x282d4c(),this[_0xceb0b3(0x1e0)]=new _0x3ec193(),this[_0xceb0b3(0x1db)]=_0x3f9970(_0x51314e||''),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1b7),_0x2c1002),this['on'](_0xceb0b3(0x1e4),()=>{const _0x888eb0=_0xceb0b3;this[_0x888eb0(0x1fc)]();}),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1d9),_0x29dc97);}[_0x1dbc35(0x1f0)](_0x3ec435){const _0x32fc41=_0x1dbc35;this[_0x32fc41(0x1ed)](_0x32fc41(0x1d9),this[_0x32fc41(0x1d9)]+_0x3ec435);}[_0x1dbc35(0x1ca)](){const _0x321455=_0x1dbc35;this[_0x321455(0x1b7)]||(this[_0x321455(0x1ed)](_0x321455(0x1b7),!0x0),this[_0x321455(0x1fc)]());}[_0x1dbc35(0x1c5)](){const _0x5ae9b7=_0x1dbc35;this[_0x5ae9b7(0x1f7)]();}[_0x1dbc35(0x1b2)](_0x2dcd65,_0x398c19){const _0x58314a=_0x1dbc35;this[_0x58314a(0x1ee)][_0x2dcd65][_0x58314a(0x1cc)]=_0x398c19,this[_0x58314a(0x1d4)](_0x58314a(0x1e9),{'reply':this,'index':_0x2dcd65,'state':_0x398c19});}[_0x1dbc35(0x1d0)]({showDiff:_0x2cfbc1,groupIndex:_0x4e2373}){const _0x64788=_0x1dbc35;if(!this[_0x64788(0x1f1)])throw new _0xe8e30a(_0x64788(0x1f3),null,{'aiReply':this});const _0x4f29d1=this[_0x64788(0x1ce)](_0x2cfbc1,_0x4e2373);if(_0x4f29d1)return _0x4f29d1;let _0x516b31=[];if(void 0x0===_0x4e2373)_0x516b31=this[_0x64788(0x1ee)];else{const _0x459946=this[_0x64788(0x1ee)][_0x64788(0x1e5)](({index:_0x247dd2})=>_0x247dd2===_0x4e2373);if(!_0x459946)throw new _0xe8e30a(_0x64788(0x1b6),null,{'aiReply':this,'groupIndex':_0x4e2373});_0x516b31=[_0x459946];}const _0x32a7e6=_0x5daa36({'editor':this[_0x64788(0x1f1)],'showDiff':_0x2cfbc1,'changeGroups':_0x516b31,'documentContextContent':this[_0x64788(0x1db)]});return this[_0x64788(0x1fa)](_0x2cfbc1,_0x32a7e6),_0x32a7e6;}[_0x1dbc35(0x1ce)](_0x3752ce,_0x5b75af){const _0x27400d=_0x1dbc35,_0x1c4d10=_0x3752ce?_0x27400d(0x1f5):_0x27400d(0x1ba);if(!this[_0x27400d(0x1c0)][_0x1c4d10][_0x27400d(0x1c3)])return null;const _0xe8df2a=this[_0x27400d(0x1c0)][_0x1c4d10];if(void 0x0===_0x5b75af)return _0xe8df2a[_0x27400d(0x1c3)]>0x0&&_0xe8df2a[_0x27400d(0x1c3)]!==this[_0x27400d(0x1ee)][_0x27400d(0x1c3)]?(this[_0x27400d(0x1fa)](_0x3752ce,null),null):_0x16a653(_0xe8df2a);{const _0x18bdd9=_0xe8df2a[_0x27400d(0x1e5)](({index:_0x2201c7})=>_0x2201c7===_0x5b75af);if(_0x18bdd9)return[_0x16a653(_0x18bdd9)];}return null;}[_0x1dbc35(0x1fa)](_0x559cd2,_0x27a4fd){const _0x49e518=_0x1dbc35,_0x442338=_0x559cd2?_0x49e518(0x1f5):_0x49e518(0x1ba);_0x27a4fd?_0x27a4fd[_0x49e518(0x1e2)](_0x2cb025=>{const _0x3221dd=_0x49e518,_0x1571b4=this[_0x3221dd(0x1c0)][_0x442338],_0x416b78=_0x1571b4[_0x3221dd(0x1e5)](({index:_0x5a6cdb})=>_0x5a6cdb===_0x2cb025[_0x3221dd(0x1d6)]);if(_0x416b78){const _0x40c393=_0x1571b4[_0x3221dd(0x1c4)](_0x416b78);_0x1571b4[_0x3221dd(0x1ef)](_0x40c393,0x1,_0x2cb025);}else _0x1571b4[_0x3221dd(0x1e6)](_0x2cb025);}):this[_0x49e518(0x1c0)][_0x442338][_0x49e518(0x1c3)]=0x0;}[_0x1dbc35(0x1fc)](){const _0x53af77=_0x1dbc35;if(_0x53af77(0x1d2)===this[_0x53af77(0x1dd)]){this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1da)](this[_0x53af77(0x1d9)]);const _0x2bea7c=this[_0x53af77(0x1ee)];this[_0x53af77(0x1ae)]();const _0x3855e3=this[_0x53af77(0x1c8)](_0x2bea7c,this[_0x53af77(0x1ee)]);(_0x3855e3[_0x53af77(0x1c3)]||this[_0x53af77(0x1b7)])&&(this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this,_0x3855e3),this[_0x53af77(0x1c0)][_0x53af77(0x1f5)][_0x53af77(0x1c3)]=this[_0x53af77(0x1c0)][_0x53af77(0x1ba)][_0x53af77(0x1c3)]=0x0);}else this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1b9)](this[_0x53af77(0x1d9)]),this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this);}[_0x1dbc35(0x1c8)](_0x5558fa,_0x1d1dbc){const _0x5e28bd=_0x1dbc35,_0x37c34e=[];for(const _0x490a07 of _0x1d1dbc){const _0x1482ba=_0x5558fa[_0x490a07[_0x5e28bd(0x1d6)]];_0x1482ba?_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]!==_0x490a07[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]?_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07):_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1e2)]((_0x119d07,_0x543b47)=>{const _0x76fa6a=_0x5e28bd,_0x1485d1=_0x490a07[_0x76fa6a(0x1d3)][_0x543b47];_0x119d07['id']!==_0x1485d1['id']&&_0x37c34e[_0x76fa6a(0x1e6)](_0x490a07);}):_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07);}return _0x37c34e;}[_0x1dbc35(0x1ae)](){const _0x4c790f=_0x1dbc35,_0x1d8355=new _0xbc92c0('p',{},[new _0xbc92c0(_0x4c790f(0x1bd),{'style':_0x4c790f(0x1e8)},[new _0x473226(_0x4cbbaa(this[_0x4c790f(0x1f1)][_0x4c790f(0x1bb)],_0x4c790f(0x1c6)))])]),_0xcc4d30=this[_0x4c790f(0x1e0)][_0x4c790f(0x1f2)](this[_0x4c790f(0x1bc)],this[_0x4c790f(0x1db)][_0x4c790f(0x1f8)](!0x0),{'markUnstableElements':!this[_0x4c790f(0x1b7)],'replaceRemovedWith':_0x1d8355,'cutAfterLastChange':!this[_0x4c790f(0x1b7)]});if(!_0xcc4d30[_0x4c790f(0x1fb)][_0x4c790f(0x1c3)]&&!this[_0x4c790f(0x1b7)])return;this[_0x4c790f(0x1e3)]=_0xcc4d30[_0x4c790f(0x1bc)];let _0x2403b7=[];if(_0x1a0d81(_0x49c3d7=>{const _0x41c318=_0x4c790f,_0x1572b4=_0x2f0c10(_0x49c3d7,_0x41c318(0x1b4));if(!_0x1572b4||!_0x42759c(_0x1572b4))return!0x1;const _0x1314be=[_0x49c3d7,..._0x3cd6e7(_0x49c3d7)]['at'](-0x2);if(_0x49c3d7!=_0x1314be){const _0x46afe0=_0x2f0c10(_0x1314be,_0x41c318(0x1b4));_0x42759c(_0x46afe0)||(_0x2403b7[_0x41c318(0x1e6)]({'node':_0x1314be,'id':_0x46afe0,'type':_0x41c318(0x1d8)}),_0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1e6)](_0x46afe0));}else _0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d8),'id':_0x1572b4}):_0xcc4d30[_0x41c318(0x1e1)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d1),'id':_0x1572b4,'anchorId':_0x2f0c10(_0x49c3d7[_0x41c318(0x1df)],_0x41c318(0x1b4))}):_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1eb),'id':_0x1572b4});return!0x0;},this[_0x4c790f(0x1e3)]),_0x2403b7=_0x2403b7[_0x4c790f(0x1b8)](({node:_0x2c79ef})=>[..._0x3cd6e7(_0x2c79ef),_0x2c79ef][_0x4c790f(0x1ad)](_0x1ca8ee=>!_0x2f0c10(_0x1ca8ee,_0x4c790f(0x1f6)))),0x0==_0x2403b7[_0x4c790f(0x1c3)])return;const _0x4255b9=[[_0x2403b7[0x0]]];for(let _0x1f28a0=0x1;_0x1f28a0<_0x2403b7[_0x4c790f(0x1c3)];_0x1f28a0++){const _0x2bedf5=_0x4255b9[_0x4255b9[_0x4c790f(0x1c3)]-0x1],_0x46d031=_0x2bedf5[_0x2bedf5[_0x4c790f(0x1c3)]-0x1];_0x2403b7[_0x1f28a0][_0x4c790f(0x1b0)][_0x4c790f(0x1df)]==_0x46d031[_0x4c790f(0x1b0)]&&_0x4c790f(0x1d8)!=_0x2403b7[_0x1f28a0][_0x4c790f(0x1dd)]&&_0x4c790f(0x1d8)!=_0x46d031[_0x4c790f(0x1dd)]?_0x2bedf5[_0x4c790f(0x1e6)](_0x2403b7[_0x1f28a0]):_0x4255b9[_0x4c790f(0x1e6)]([_0x2403b7[_0x1f28a0]]);}for(const _0x163d97 of _0x4255b9){const _0xdc25a=_0x163d97[0x0],_0x5e0a79=_0x163d97[_0x163d97[_0x4c790f(0x1c3)]-0x1],_0x221b2e=_0x564763(_0xdc25a[_0x4c790f(0x1b0)][_0x4c790f(0x1df)]);_0x221b2e&&_0x163d97[_0x4c790f(0x1ec)](_0x221b2e);const _0x43fcd6=_0x564763(_0x5e0a79[_0x4c790f(0x1b0)][_0x4c790f(0x1be)]);_0x43fcd6&&_0x163d97[_0x4c790f(0x1e6)](_0x43fcd6);}function _0x42759c(_0x42c1a4){const _0x1a16dc=_0x4c790f;return _0xcc4d30[_0x1a16dc(0x1fb)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1e1)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1fd)][_0x1a16dc(0x1bf)](_0x42c1a4);}function _0x564763(_0x3b266b){const _0x50da7=_0x4c790f;if(_0x3b266b&&_0x2f0c10(_0x3b266b,_0x50da7(0x1b4))&&!_0x2f0c10(_0x3b266b,_0x50da7(0x1f6))){const _0x3107e8=_0x2f0c10(_0x3b266b,_0x50da7(0x1b4));if(!_0x42759c(_0x3107e8))return{'node':_0x3b266b,'type':_0x50da7(0x1cf),'id':_0x3107e8};}return null;}this[_0x4c790f(0x1ee)]=_0x4255b9[_0x4c790f(0x1e7)]((_0x5979e7,_0x23f1ed)=>({'changes':_0x5979e7,'state':_0x4c790f(0x1c2),'index':_0x23f1ed}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x115057=_0x1600;(function(_0x5d9132,_0x5eb829){const _0x41cb6a=_0x1600,_0x24539e=_0x5d9132();while(!![]){try{const _0x2af8ec=parseInt(_0x41cb6a(0x172))/0x1*(parseInt(_0x41cb6a(0x18f))/0x2)+parseInt(_0x41cb6a(0x187))/0x3*(-parseInt(_0x41cb6a(0x198))/0x4)+-parseInt(_0x41cb6a(0x178))/0x5*(-parseInt(_0x41cb6a(0x189))/0x6)+parseInt(_0x41cb6a(0x184))/0x7*(parseInt(_0x41cb6a(0x1a2))/0x8)+-parseInt(_0x41cb6a(0x193))/0x9*(-parseInt(_0x41cb6a(0x16f))/0xa)+parseInt(_0x41cb6a(0x176))/0xb+-parseInt(_0x41cb6a(0x177))/0xc;if(_0x2af8ec===_0x5eb829)break;else _0x24539e['push'](_0x24539e['shift']());}catch(_0x2284f8){_0x24539e['push'](_0x24539e['shift']());}}}(_0x5e5f,0xadc40));import{ObservableMixin as _0x1777c6,uid as _0xf48425}from'ckeditor5/src/utils.js';function _0x5e5f(){const _0x8a8265=['_getNodeDataId','_markUnstableElements','_isExistingNode','_markWrappedElements','true','14666zuuJCf','indexOf','childNodes','match','1637253opqqgn','invalidIds','_removeSpecialComments','afterbegin','cloneNode','8RnwyBc','parentNode','push','has','map','includes','removedIds','_getUid','data-id','slice','10325320iLIQGZ','nodeType','length','modifiedIds','_existingDataIds','newIds','_findReferenceNode','from','data-wrapped-id','_hasWrappedParent','nextSibling','_findNextElementWithDataId','_findFallbackReferenceNode','markUnstableElementsDepth','data-removed','afterend','merge','_generateUid','cutAfterLastChange','reverse','previousSibling','_storeDeletedElementIds','70vFZQlJ','lastTouchedId','beforebegin','13wBnBfv','_insertNodes','_isExistingContentComment','data-unstable','3303080tofvyQ','19297776cwFEKn','17155iuOTKv','forEach','_touchedNodesState','markUnstableElements','lastChild','_findPrevElementWithDataId','_markLastTagElementUnstable','trim','_isDelNode','_replaceNode','replaceRemovedWith','_isNewNode','7omgLXY','splice','new-element','985434TKtrTJ','filter','30qQbfpX'];_0x5e5f=function(){return _0x8a8265;};return _0x5e5f();}import{findAllByAttribute as _0x379d9a,findByAttribute as _0x1e9add,getAttribute as _0xd1db17,isComment as _0x1af7af,isTag as _0x3b79d7,insertElement as _0x4bb615,moveElement as _0x4bb378,removeElement as _0x3fea47,replaceElement as _0x4f21f,serialize as _0x33dc0b,setAttribute as _0x552f9c,clone as _0x5b7068,findAllComments as _0x432059,getParents as _0x2d5010,getNodeNestingLevel as _0x1c92ea,areNodesSame as _0x32bff0,removeElementsAfter as _0x1ee0c6}from'../utils/htmlparser.js';function _0x1600(_0x34290d,_0x334104){const _0x5e5fb6=_0x5e5f();return _0x1600=function(_0x16000a,_0x234811){_0x16000a=_0x16000a-0x161;let _0x39cffd=_0x5e5fb6[_0x16000a];return _0x39cffd;},_0x1600(_0x34290d,_0x334104);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x1777c6(){[_0x115057(0x16a)];[_0x115057(0x17a)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x115057(0x1a6)]=new Set();constructor(_0x151a4d){const _0x51f4f8=_0x115057;super(),this[_0x51f4f8(0x16a)]=_0x151a4d||_0xf48425;}[_0x115057(0x169)](_0xa11859,_0x16f524,_0x2c8a50){const _0x297125=_0x115057,_0x83dcd7=_0x5b7068(_0xa11859);if(0x0===_0x16f524[_0x297125(0x191)][_0x297125(0x1a4)]){const _0x320c9b=[];return _0x379d9a(_0x297125(0x1a0),_0x297125(0x186),_0x83dcd7)[_0x297125(0x179)](_0x1b83f0=>{const _0x295125=_0x297125,_0x24a4d8=this[_0x295125(0x16a)]();_0x552f9c(_0x1b83f0,_0x295125(0x1a0),_0x24a4d8),_0x320c9b[_0x295125(0x19a)](_0x24a4d8);}),this[_0x297125(0x195)](_0x83dcd7),{'parsedContent':_0x83dcd7,'newNodeIds':_0x320c9b,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2c8a50&&_0x2c8a50[_0x297125(0x17b)]&&this[_0x297125(0x17e)](_0x83dcd7),this[_0x297125(0x17a)][_0x297125(0x1a7)]=[],this[_0x297125(0x17a)][_0x297125(0x1a5)]=[],this[_0x297125(0x17a)][_0x297125(0x19e)]=[],this[_0x297125(0x17a)][_0x297125(0x194)]=[],this[_0x297125(0x17a)][_0x297125(0x170)]=null,this[_0x297125(0x1a6)]=new Set(_0x379d9a(_0x297125(0x1a0),null,_0x16f524)[_0x297125(0x19c)](_0x5cd8e0=>_0xd1db17(_0x5cd8e0,_0x297125(0x1a0)))[_0x297125(0x188)](_0x53ddf9=>!!_0x53ddf9));let _0x4fe9ba=-0x1,_0xdb360a=!0x1;const _0x1bcffb=_0x83dcd7[_0x297125(0x191)],_0x845694=Array[_0x297125(0x1a9)](_0x1bcffb)[_0x297125(0x188)](_0x572515=>!(0x3===_0x572515[_0x297125(0x1a3)]&&''===_0x33dc0b(_0x572515)[_0x297125(0x17f)]())),_0x4e27f5=_0x845694[_0x297125(0x1a4)];for(let _0x32bdd4=0x0;_0x32bdd4<_0x4e27f5;_0x32bdd4++){const _0x8daf9f=_0x845694[_0x32bdd4],_0x539774=_0x845694[_0x32bdd4+0x1];if(this[_0x297125(0x183)](_0x8daf9f)){if(-0x1===_0x4fe9ba&&(_0x4fe9ba=_0x32bdd4),this[_0x297125(0x18d)](_0x8daf9f),!this[_0x297125(0x183)](_0x539774)){const [_0x1b9873,_0x35f187]=this[_0x297125(0x1a8)](_0x8daf9f,_0xdb360a,_0x16f524);if(_0x1b9873){const _0x170813=Array[_0x297125(0x1a9)](_0x845694)[_0x297125(0x1a1)](_0x4fe9ba,_0x32bdd4+0x1);this[_0x297125(0x173)](_0x1b9873,_0x170813,_0x35f187),_0x4fe9ba=-0x1;}}}else{if(this[_0x297125(0x174)](_0x8daf9f))_0xdb360a=!0x0;else{if(this[_0x297125(0x18c)](_0x8daf9f)){const _0x546fac=_0xd1db17(_0x8daf9f,_0x297125(0x1a0));if(_0x546fac&&this[_0x297125(0x1a6)][_0x297125(0x19b)](_0x546fac)){const _0x502d16=_0x1e9add(_0x297125(0x1a0),_0x546fac,_0x16f524);this[_0x297125(0x181)](_0x502d16,_0x8daf9f);}if(this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x19d)](_0x546fac)){const _0x245f8f=this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x190)](_0x546fac);this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x185)](_0x245f8f,0x1);}}else{if(this[_0x297125(0x180)](_0x8daf9f)){const _0x282dea=_0xd1db17(_0x8daf9f,_0x297125(0x1a0));this[_0x297125(0x17a)][_0x297125(0x1a5)][_0x297125(0x19d)](_0x282dea)||this[_0x297125(0x16e)](_0x8daf9f);}}}}}for(const _0x41c441 of this[_0x297125(0x17a)][_0x297125(0x19e)]){const _0xd6fe16=_0x1e9add(_0x297125(0x1a0),_0x41c441,_0x16f524);if(_0xd6fe16){if(_0x2c8a50&&_0x2c8a50[_0x297125(0x182)]){this[_0x297125(0x17a)][_0x297125(0x170)]=_0x41c441;const _0x4d7674=_0x2c8a50[_0x297125(0x182)][_0x297125(0x197)](!0x0);_0x552f9c(_0x4d7674,_0x297125(0x1a0),_0x41c441),_0x552f9c(_0x4d7674,_0x297125(0x167),_0x297125(0x18e)),_0x4f21f(_0xd6fe16,_0x4d7674);}else _0x3fea47(_0xd6fe16);}}if(_0x379d9a(_0x297125(0x161),null,_0x16f524)[_0x297125(0x179)](_0x4014a2=>{const _0x311c2a=_0x297125,_0x250d33=_0xd1db17(_0x4014a2,_0x311c2a(0x161)),_0x2f317f=_0x1e9add(_0x311c2a(0x1a0),_0x250d33,_0x16f524);_0x2f317f&&_0x4bb378(_0x2f317f,_0x4014a2);}),_0x379d9a(_0x297125(0x1a0),_0x297125(0x186),_0x16f524)[_0x297125(0x179)](_0x4d4733=>{const _0x17770c=_0x297125,_0x41f373=this[_0x17770c(0x19f)](_0x4d4733);_0x552f9c(_0x4d4733,_0x17770c(0x1a0),_0x41f373),this[_0x17770c(0x17a)][_0x17770c(0x1a7)][_0x17770c(0x19a)](_0x41f373);}),this[_0x297125(0x195)](_0x16f524),_0x2c8a50&&_0x2c8a50[_0x297125(0x17b)]&&this[_0x297125(0x18b)](_0x16f524,_0x2c8a50[_0x297125(0x166)]||0x0),_0x2c8a50&&_0x2c8a50[_0x297125(0x16b)]&&this[_0x297125(0x17a)][_0x297125(0x170)]){let _0x13421d=_0x1e9add(_0x297125(0x1a0),this[_0x297125(0x17a)][_0x297125(0x170)],_0x16f524);for(;_0x13421d;)_0x1ee0c6(_0x13421d),_0x13421d=_0x13421d[_0x297125(0x199)];}return{'parsedContent':_0x16f524,'newNodeIds':this[_0x297125(0x17a)][_0x297125(0x1a7)],'modifiedNodeIds':this[_0x297125(0x17a)][_0x297125(0x1a5)],'removedNodeIds':this[_0x297125(0x17a)][_0x297125(0x19e)]};}[_0x115057(0x173)](_0x3346fb,_0xb6cb02,_0x47cdd5){const _0x18c945=_0x115057;for(const _0x2c4e41 of _0xb6cb02){const _0x2ab064=this[_0x18c945(0x19f)](_0x2c4e41);_0x552f9c(_0x2c4e41,_0x18c945(0x1a0),_0x2ab064),this[_0x18c945(0x17a)][_0x18c945(0x1a7)][_0x18c945(0x19a)](_0x2ab064),this[_0x18c945(0x17a)][_0x18c945(0x170)]=_0x2ab064;}const _0x434add=_0x18c945(0x196)===_0x47cdd5||_0x18c945(0x168)===_0x47cdd5?_0xb6cb02[_0x18c945(0x16c)]():_0xb6cb02;for(const _0x3a7801 of _0x434add)_0x4bb615(_0x3346fb,_0x3a7801,_0x47cdd5);}[_0x115057(0x181)](_0x415160,_0x2c8201){const _0x1d3446=_0x115057;if(!_0x415160)return;if(_0x32bff0(_0x415160,_0x2c8201))return;const _0xf5f3f4=this[_0x1d3446(0x19f)](_0x415160);_0x552f9c(_0x2c8201,_0x1d3446(0x1a0),_0xf5f3f4),this[_0x1d3446(0x17a)][_0x1d3446(0x1a5)][_0x1d3446(0x19a)](_0xf5f3f4),this[_0x1d3446(0x17a)][_0x1d3446(0x170)]=_0xf5f3f4,_0x4f21f(_0x415160,_0x2c8201[_0x1d3446(0x197)](!0x0));}[_0x115057(0x1a8)](_0xa5d99b,_0xc119a4,_0x5b3783){const _0x2a690a=_0x115057,_0x286975=this[_0x2a690a(0x17d)](_0xa5d99b,!0x1);if(_0x286975){const _0x23420e=this[_0x2a690a(0x18a)](_0x286975),_0x2bb3ac=_0x1e9add(_0x2a690a(0x1a0),_0x23420e,_0x5b3783);if(_0x2bb3ac)return[_0x2bb3ac,_0x2a690a(0x168)];this[_0x2a690a(0x17a)][_0x2a690a(0x194)][_0x2a690a(0x19a)](_0x23420e);}const _0x1d6cf6=this[_0x2a690a(0x164)](_0xa5d99b,!0x1);if(_0x1d6cf6){const _0x5257f2=this[_0x2a690a(0x18a)](_0x1d6cf6),_0x47daf5=_0x1e9add(_0x2a690a(0x1a0),_0x5257f2,_0x5b3783);if(_0x47daf5)return[_0x47daf5,_0x2a690a(0x171)];this[_0x2a690a(0x17a)][_0x2a690a(0x194)][_0x2a690a(0x19a)](_0x5257f2);}return _0xc119a4?_0xa5d99b[_0x2a690a(0x163)]?this[_0x2a690a(0x165)](_0xa5d99b,_0x5b3783):[_0x5b3783[_0x2a690a(0x191)][_0x5b3783[_0x2a690a(0x191)][_0x2a690a(0x1a4)]-0x1],_0x2a690a(0x168)]:[_0x5b3783[_0x2a690a(0x191)][0x0],_0x2a690a(0x171)];}[_0x115057(0x165)](_0x9548c,_0xa9dfab){const _0x1df03e=_0x115057,_0x48c8db=[],_0x2b524d=this[_0x1df03e(0x17d)](_0x9548c,!0x0);if(_0x2b524d){const _0x2e39b6=this[_0x1df03e(0x18a)](_0x2b524d),_0x8ea95f=_0x1e9add(_0x1df03e(0x1a0),_0x2e39b6,_0xa9dfab);_0x8ea95f&&_0x48c8db[_0x1df03e(0x19a)]([_0x8ea95f,_0x1df03e(0x168)]);}const _0x227034=this[_0x1df03e(0x164)](_0x9548c,!0x0);if(_0x227034){const _0x39e24d=this[_0x1df03e(0x18a)](_0x227034),_0x594bbe=_0x1e9add(_0x1df03e(0x1a0),_0x39e24d,_0xa9dfab);_0x594bbe&&_0x48c8db[_0x1df03e(0x19a)]([_0x594bbe,_0x1df03e(0x171)]);}if(_0x48c8db[_0x1df03e(0x1a4)]>0x1)return _0x1c92ea(_0x48c8db[0x0][0x0])<=_0x1c92ea(_0x48c8db[0x1][0x0])?_0x48c8db[0x0]:_0x48c8db[0x1];return 0x1===_0x48c8db[_0x1df03e(0x1a4)]?_0x48c8db[0x0]:[_0xa9dfab[_0x1df03e(0x17c)],_0x1df03e(0x168)];}[_0x115057(0x164)](_0x41b0af,_0x514b50){const _0x4c8fef=_0x115057;let _0x2b2edd=_0x41b0af[_0x4c8fef(0x163)],_0x5a18a5=null,_0x5db5a7=!0x1;for(;_0x2b2edd;){if(_0x1af7af(_0x2b2edd)){if(this[_0x4c8fef(0x180)](_0x2b2edd)&&(_0x5a18a5=_0x2b2edd),this[_0x4c8fef(0x174)](_0x2b2edd)&&_0x514b50&&!_0x5db5a7){_0x5db5a7=!0x0,_0x2b2edd=_0x2b2edd[_0x4c8fef(0x163)];continue;}break;}const _0x3457a0=_0xd1db17(_0x2b2edd,_0x4c8fef(0x1a0));if(_0x3457a0&&_0x4c8fef(0x186)!==_0x3457a0&&this[_0x4c8fef(0x1a6)][_0x4c8fef(0x19b)](_0x3457a0)){_0x5a18a5=_0x2b2edd;break;}_0x2b2edd=_0x2b2edd[_0x4c8fef(0x163)];}return _0x5a18a5;}[_0x115057(0x17d)](_0x368f9d,_0x43e7ec){const _0x306276=_0x115057;let _0xed5c80=_0x368f9d[_0x306276(0x16d)],_0x407cdc=null,_0x41242b=!0x1;for(;_0xed5c80;){if(_0x1af7af(_0xed5c80)){if(this[_0x306276(0x180)](_0xed5c80)&&(_0x407cdc=_0xed5c80),this[_0x306276(0x174)](_0xed5c80)&&_0x43e7ec&&!_0x41242b){_0x41242b=!0x0,_0xed5c80=_0xed5c80[_0x306276(0x16d)];continue;}break;}const _0x169aeb=_0xd1db17(_0xed5c80,_0x306276(0x1a0));if(_0x169aeb&&_0x306276(0x186)!==_0x169aeb&&this[_0x306276(0x1a6)][_0x306276(0x19b)](_0x169aeb)){_0x407cdc=_0xed5c80;break;}_0xed5c80=_0xed5c80[_0x306276(0x16d)];}return _0x407cdc;}[_0x115057(0x18d)](_0x125a37){const _0x3b649d=_0x115057;_0x3b79d7(_0x125a37)&&_0x379d9a(_0x3b649d(0x1a0),null,_0x125a37)[_0x3b649d(0x179)](_0x273d7d=>{const _0x3a9203=_0x3b649d;if(this[_0x3a9203(0x18c)](_0x273d7d)&&!this[_0x3a9203(0x162)](_0x273d7d)){const _0x125755=_0xd1db17(_0x273d7d,_0x3a9203(0x1a0));_0x552f9c(_0x273d7d,_0x3a9203(0x161),_0x125755),_0x552f9c(_0x273d7d,_0x3a9203(0x1a0),null);}});}[_0x115057(0x18a)](_0x2ad241){const _0x1a0381=_0x115057;if(!_0x2ad241)return null;if(_0x3b79d7(_0x2ad241))return _0xd1db17(_0x2ad241,_0x1a0381(0x1a0));if(_0x1af7af(_0x2ad241)){const _0x4c7e22=_0x33dc0b(_0x2ad241)[_0x1a0381(0x192)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4c7e22&&_0x4c7e22[0x1])return _0x4c7e22[0x1];}return null;}[_0x115057(0x16e)](_0x48450b){const _0x4e9237=_0x115057;if(_0x1af7af(_0x48450b)){const _0x1d147f=_0x33dc0b(_0x48450b)[_0x4e9237(0x192)](/removed[\s*-]data-id="([^"]+)"/);_0x1d147f&&_0x1d147f[0x1]&&this[_0x4e9237(0x17a)][_0x4e9237(0x19e)][_0x4e9237(0x19a)](_0x1d147f[0x1]);}}[_0x115057(0x19f)](_0x9f125c){const _0x42c7d6=_0x115057;return this[_0x42c7d6(0x18c)](_0x9f125c)?_0xd1db17(_0x9f125c,_0x42c7d6(0x1a0)):this[_0x42c7d6(0x16a)]();}[_0x115057(0x195)](_0x32a7ca){const _0x534ac2=_0x115057;_0x432059(_0x32a7ca)[_0x534ac2(0x188)](_0x33bb96=>this[_0x534ac2(0x180)](_0x33bb96)||this[_0x534ac2(0x174)](_0x33bb96))[_0x534ac2(0x179)](_0xee2f55=>{_0x3fea47(_0xee2f55);});}[_0x115057(0x17e)](_0x23f962){const _0x363268=_0x115057,_0x23cf98=_0x23f962[_0x363268(0x191)],_0x21d10a=_0x23cf98[_0x23cf98[_0x363268(0x1a4)]-0x1];_0x21d10a&&_0x3b79d7(_0x21d10a)&&_0x552f9c(_0x21d10a,_0x363268(0x175),_0x363268(0x18e));}[_0x115057(0x18b)](_0x3219c8,_0x25234f){const _0x1f6495=_0x115057,_0x1f20e5=_0x1e9add(_0x1f6495(0x175),_0x1f6495(0x18e),_0x3219c8);if(!_0x1f20e5)return;const _0x4e4205=_0x2d5010(_0x1f20e5)[_0x1f6495(0x1a1)](0x0,-0x1),_0x542cf2=_0x4e4205[_0x1f6495(0x1a4)];let _0x453717=_0x1f20e5;if(_0x542cf2>_0x25234f){let _0x13cf4e=_0x542cf2,_0xdc7b6c=null;for(;_0x13cf4e>_0x25234f&&_0x13cf4e>=0x0;)_0x13cf4e--,_0xdc7b6c=_0x4e4205[_0x13cf4e];_0xdc7b6c&&(_0x453717=_0xdc7b6c,_0x552f9c(_0x1f20e5,_0x1f6495(0x175),null),_0x552f9c(_0xdc7b6c,_0x1f6495(0x175),_0x1f6495(0x18e)));}else{if(_0x542cf2<_0x25234f){let _0x1c9970=_0x542cf2,_0xc303e4=_0x1f20e5;for(;_0x1c9970<_0x25234f;){const _0x387424=_0xc303e4[_0x1f6495(0x191)][_0x1f6495(0x188)](_0x3b4282=>_0x3b79d7(_0x3b4282));if(0x0===_0x387424[_0x1f6495(0x1a4)])break;_0x1c9970++,_0xc303e4=_0x387424[_0x387424[_0x1f6495(0x1a4)]-0x1];}_0xc303e4&&(_0x453717=_0xc303e4,_0x552f9c(_0x1f20e5,_0x1f6495(0x175),null),_0x552f9c(_0xc303e4,_0x1f6495(0x175),_0x1f6495(0x18e)));}}let _0x4e5e2e=_0x453717;for(;_0x4e5e2e;){for(;_0x4e5e2e[_0x1f6495(0x163)];)_0x4e5e2e=_0x4e5e2e[_0x1f6495(0x163)],_0x3b79d7(_0x4e5e2e)&&_0x552f9c(_0x4e5e2e,_0x1f6495(0x175),_0x1f6495(0x18e));_0x4e5e2e=_0x4e5e2e[_0x1f6495(0x199)];}}[_0x115057(0x183)](_0x464456){const _0x439c44=_0x115057;return Boolean(_0x439c44(0x186)===_0xd1db17(_0x464456,_0x439c44(0x1a0)));}[_0x115057(0x18c)](_0x202123){const _0x2456f1=_0x115057;return Boolean((_0xd1db17(_0x202123,_0x2456f1(0x1a0))||'')[_0x2456f1(0x1a4)]>0x0&&_0x2456f1(0x186)!==_0xd1db17(_0x202123,_0x2456f1(0x1a0)));}[_0x115057(0x180)](_0x18c405){const _0x484179=_0x115057;return!!_0x18c405&&Boolean(_0x1af7af(_0x18c405)&&_0x33dc0b(_0x18c405)[_0x484179(0x192)](/removed[\s*-]data-id="[^"]+"/));}[_0x115057(0x162)](_0x5ea767){const _0x3c7724=_0x115057;let _0x561a28=_0x5ea767[_0x3c7724(0x199)];for(;_0x561a28;){if(_0xd1db17(_0x561a28,_0x3c7724(0x161)))return!0x0;_0x561a28=_0x561a28[_0x3c7724(0x199)];}return!0x1;}[_0x115057(0x174)](_0x308b22){const _0x4945d0=_0x115057;return Boolean(_0x1af7af(_0x308b22)&&_0x33dc0b(_0x308b22)[_0x4945d0(0x192)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x2786(_0x1a4acd,_0x131559){const _0x38867e=_0x3886();return _0x2786=function(_0x278659,_0xc141c6){_0x278659=_0x278659-0x1b2;let _0x1640ce=_0x38867e[_0x278659];return _0x1640ce;},_0x2786(_0x1a4acd,_0x131559);}const _0x544b17=_0x2786;(function(_0x3ff7c3,_0x35b1c2){const _0x40a1af=_0x2786,_0x26c120=_0x3ff7c3();while(!![]){try{const _0x2b0937=-parseInt(_0x40a1af(0x1f7))/0x1*(parseInt(_0x40a1af(0x1f4))/0x2)+parseInt(_0x40a1af(0x1bd))/0x3+-parseInt(_0x40a1af(0x1d9))/0x4*(-parseInt(_0x40a1af(0x1ea))/0x5)+-parseInt(_0x40a1af(0x1eb))/0x6+parseInt(_0x40a1af(0x1e4))/0x7+parseInt(_0x40a1af(0x1b3))/0x8*(-parseInt(_0x40a1af(0x1f9))/0x9)+parseInt(_0x40a1af(0x1de))/0xa*(parseInt(_0x40a1af(0x1e1))/0xb);if(_0x2b0937===_0x35b1c2)break;else _0x26c120['push'](_0x26c120['shift']());}catch(_0x1bc127){_0x26c120['push'](_0x26c120['shift']());}}}(_0x3886,0xc008f));import{ObservableMixin as _0xa8da33,uid as _0x5db69d}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1a06e7,findByAttribute as _0x4b2642,getAttribute as _0x4cbff3,isComment as _0x30d6b1,isTag as _0x2ed662,insertElement as _0x5eb6f7,moveElement as _0x8e35ba,removeElement as _0x5be67e,replaceElement as _0x3c4e5c,serialize as _0x44096d,setAttribute as _0x596918,clone as _0x46bd86,findAllComments as _0x1f47a8,getParents as _0x5828b6,getNodeNestingLevel as _0xdbc387,areNodesSame as _0x35a25f,removeElementsAfter as _0x46dd1f}from'../utils/htmlparser.js';function _0x3886(){const _0x810db3=['4529496bSNGaO','afterend','filter','_hasWrappedParent','beforebegin','childNodes','replaceRemovedWith','forEach','cloneNode','_findNextElementWithDataId','from','push','_storeDeletedElementIds','afterbegin','splice','_getUid','invalidIds','true','merge','_markWrappedElements','match','_generateUid','_isExistingNode','_removeSpecialComments','includes','removedIds','has','cutAfterLastChange','948344IdBbWV','_insertNodes','_markLastTagElementUnstable','data-removed','data-wrapped-id','558760HGJwTj','newIds','lastTouchedId','385kERqet','nextSibling','trim','7830942HOxUUd','slice','_isNewNode','data-id','_findReferenceNode','_isDelNode','5vFIlFq','7523916cWAZJW','_getNodeDataId','_findFallbackReferenceNode','_replaceNode','_existingDataIds','reverse','previousSibling','length','_touchedNodesState','39204GEqPzY','indexOf','markUnstableElements','79urQXJZ','markUnstableElementsDepth','99lwpMaH','parentNode','896120LLgpPt','new-element','_isExistingContentComment','map','_markUnstableElements','modifiedIds','lastChild','_findPrevElementWithDataId','data-unstable','nodeType'];_0x3886=function(){return _0x810db3;};return _0x3886();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0xa8da33(){[_0x544b17(0x1d2)];[_0x544b17(0x1f3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x544b17(0x1ef)]=new Set();constructor(_0x19d3c4){const _0x30b377=_0x544b17;super(),this[_0x30b377(0x1d2)]=_0x19d3c4||_0x5db69d;}[_0x544b17(0x1cf)](_0xbbfc3e,_0x629b70,_0x5c212d){const _0x400435=_0x544b17,_0x5e7562=_0x46bd86(_0xbbfc3e);if(0x0===_0x629b70[_0x400435(0x1c2)][_0x400435(0x1f2)]){const _0x2619a1=[];return _0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x5e7562)[_0x400435(0x1c4)](_0x19a5eb=>{const _0x28946d=_0x400435,_0x27e486=this[_0x28946d(0x1d2)]();_0x596918(_0x19a5eb,_0x28946d(0x1e7),_0x27e486),_0x2619a1[_0x28946d(0x1c8)](_0x27e486);}),this[_0x400435(0x1d4)](_0x5e7562),{'parsedContent':_0x5e7562,'newNodeIds':_0x2619a1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1db)](_0x5e7562),this[_0x400435(0x1f3)][_0x400435(0x1df)]=[],this[_0x400435(0x1f3)][_0x400435(0x1b8)]=[],this[_0x400435(0x1f3)][_0x400435(0x1d6)]=[],this[_0x400435(0x1f3)][_0x400435(0x1cd)]=[],this[_0x400435(0x1f3)][_0x400435(0x1e0)]=null,this[_0x400435(0x1ef)]=new Set(_0x1a06e7(_0x400435(0x1e7),null,_0x629b70)[_0x400435(0x1b6)](_0x1cb17e=>_0x4cbff3(_0x1cb17e,_0x400435(0x1e7)))[_0x400435(0x1bf)](_0x5ebe23=>!!_0x5ebe23));let _0x4158a5=-0x1,_0x2fc892=!0x1;const _0x2f159e=_0x5e7562[_0x400435(0x1c2)],_0x266d2c=Array[_0x400435(0x1c7)](_0x2f159e)[_0x400435(0x1bf)](_0x2fd864=>!(0x3===_0x2fd864[_0x400435(0x1bc)]&&''===_0x44096d(_0x2fd864)[_0x400435(0x1e3)]())),_0x58484f=_0x266d2c[_0x400435(0x1f2)];for(let _0x4ba6aa=0x0;_0x4ba6aa<_0x58484f;_0x4ba6aa++){const _0x33910d=_0x266d2c[_0x4ba6aa],_0x3484b1=_0x266d2c[_0x4ba6aa+0x1];if(this[_0x400435(0x1e6)](_0x33910d)){if(-0x1===_0x4158a5&&(_0x4158a5=_0x4ba6aa),this[_0x400435(0x1d0)](_0x33910d),!this[_0x400435(0x1e6)](_0x3484b1)){const [_0x50c3f0,_0x59cc6c]=this[_0x400435(0x1e8)](_0x33910d,_0x2fc892,_0x629b70);if(_0x50c3f0){const _0x5157a6=Array[_0x400435(0x1c7)](_0x266d2c)[_0x400435(0x1e5)](_0x4158a5,_0x4ba6aa+0x1);this[_0x400435(0x1da)](_0x50c3f0,_0x5157a6,_0x59cc6c),_0x4158a5=-0x1;}}}else{if(this[_0x400435(0x1b5)](_0x33910d))_0x2fc892=!0x0;else{if(this[_0x400435(0x1d3)](_0x33910d)){const _0x2123e0=_0x4cbff3(_0x33910d,_0x400435(0x1e7));if(_0x2123e0&&this[_0x400435(0x1ef)][_0x400435(0x1d7)](_0x2123e0)){const _0x5d24e5=_0x4b2642(_0x400435(0x1e7),_0x2123e0,_0x629b70);this[_0x400435(0x1ee)](_0x5d24e5,_0x33910d);}if(this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1d5)](_0x2123e0)){const _0x17c2b8=this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1f5)](_0x2123e0);this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1cb)](_0x17c2b8,0x1);}}else{if(this[_0x400435(0x1e9)](_0x33910d)){const _0x331b39=_0x4cbff3(_0x33910d,_0x400435(0x1e7));this[_0x400435(0x1f3)][_0x400435(0x1b8)][_0x400435(0x1d5)](_0x331b39)||this[_0x400435(0x1c9)](_0x33910d);}}}}}for(const _0xd38f9b of this[_0x400435(0x1f3)][_0x400435(0x1d6)]){const _0x352239=_0x4b2642(_0x400435(0x1e7),_0xd38f9b,_0x629b70);if(_0x352239){if(_0x5c212d&&_0x5c212d[_0x400435(0x1c3)]){this[_0x400435(0x1f3)][_0x400435(0x1e0)]=_0xd38f9b;const _0x50a6b5=_0x5c212d[_0x400435(0x1c3)][_0x400435(0x1c5)](!0x0);_0x596918(_0x50a6b5,_0x400435(0x1e7),_0xd38f9b),_0x596918(_0x50a6b5,_0x400435(0x1dc),_0x400435(0x1ce)),_0x3c4e5c(_0x352239,_0x50a6b5);}else _0x5be67e(_0x352239);}}if(_0x1a06e7(_0x400435(0x1dd),null,_0x629b70)[_0x400435(0x1c4)](_0x39b547=>{const _0xfa512e=_0x400435,_0x267f0f=_0x4cbff3(_0x39b547,_0xfa512e(0x1dd)),_0x28fc65=_0x4b2642(_0xfa512e(0x1e7),_0x267f0f,_0x629b70);_0x28fc65&&_0x8e35ba(_0x28fc65,_0x39b547);}),_0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x629b70)[_0x400435(0x1c4)](_0x185bf7=>{const _0xb1f092=_0x400435,_0x1e1fa6=this[_0xb1f092(0x1cc)](_0x185bf7);_0x596918(_0x185bf7,_0xb1f092(0x1e7),_0x1e1fa6),this[_0xb1f092(0x1f3)][_0xb1f092(0x1df)][_0xb1f092(0x1c8)](_0x1e1fa6);}),this[_0x400435(0x1d4)](_0x629b70),_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1b7)](_0x629b70,_0x5c212d[_0x400435(0x1f8)]||0x0),_0x5c212d&&_0x5c212d[_0x400435(0x1d8)]&&this[_0x400435(0x1f3)][_0x400435(0x1e0)]){let _0xd6d511=_0x4b2642(_0x400435(0x1e7),this[_0x400435(0x1f3)][_0x400435(0x1e0)],_0x629b70);for(;_0xd6d511;)_0x46dd1f(_0xd6d511),_0xd6d511=_0xd6d511[_0x400435(0x1b2)];}return{'parsedContent':_0x629b70,'newNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1df)],'modifiedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1b8)],'removedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1d6)]};}[_0x544b17(0x1da)](_0x415994,_0x58b189,_0x5179d1){const _0x18f17f=_0x544b17;for(const _0x1f3b28 of _0x58b189){const _0x53e43d=this[_0x18f17f(0x1cc)](_0x1f3b28);_0x596918(_0x1f3b28,_0x18f17f(0x1e7),_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1df)][_0x18f17f(0x1c8)](_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1e0)]=_0x53e43d;}const _0x5a96dc=_0x18f17f(0x1ca)===_0x5179d1||_0x18f17f(0x1be)===_0x5179d1?_0x58b189[_0x18f17f(0x1f0)]():_0x58b189;for(const _0x50a084 of _0x5a96dc)_0x5eb6f7(_0x415994,_0x50a084,_0x5179d1);}[_0x544b17(0x1ee)](_0x1c2be8,_0x2ebe6b){const _0x3b5265=_0x544b17;if(!_0x1c2be8)return;if(_0x35a25f(_0x1c2be8,_0x2ebe6b))return;const _0x2aea04=this[_0x3b5265(0x1cc)](_0x1c2be8);_0x596918(_0x2ebe6b,_0x3b5265(0x1e7),_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1b8)][_0x3b5265(0x1c8)](_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1e0)]=_0x2aea04,_0x3c4e5c(_0x1c2be8,_0x2ebe6b[_0x3b5265(0x1c5)](!0x0));}[_0x544b17(0x1e8)](_0x56eb4b,_0x345407,_0xb5706d){const _0x5000bc=_0x544b17,_0x2323f8=this[_0x5000bc(0x1ba)](_0x56eb4b,!0x1);if(_0x2323f8){const _0x467a04=this[_0x5000bc(0x1ec)](_0x2323f8),_0x594ef1=_0x4b2642(_0x5000bc(0x1e7),_0x467a04,_0xb5706d);if(_0x594ef1)return[_0x594ef1,_0x5000bc(0x1be)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x467a04);}const _0x336677=this[_0x5000bc(0x1c6)](_0x56eb4b,!0x1);if(_0x336677){const _0x3d71be=this[_0x5000bc(0x1ec)](_0x336677),_0x3a607c=_0x4b2642(_0x5000bc(0x1e7),_0x3d71be,_0xb5706d);if(_0x3a607c)return[_0x3a607c,_0x5000bc(0x1c1)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x3d71be);}return _0x345407?_0x56eb4b[_0x5000bc(0x1e2)]?this[_0x5000bc(0x1ed)](_0x56eb4b,_0xb5706d):[_0xb5706d[_0x5000bc(0x1c2)][_0xb5706d[_0x5000bc(0x1c2)][_0x5000bc(0x1f2)]-0x1],_0x5000bc(0x1be)]:[_0xb5706d[_0x5000bc(0x1c2)][0x0],_0x5000bc(0x1c1)];}[_0x544b17(0x1ed)](_0x184316,_0x599561){const _0x2f3fdb=_0x544b17,_0x1cdfe1=[],_0x29ace9=this[_0x2f3fdb(0x1ba)](_0x184316,!0x0);if(_0x29ace9){const _0x1c733a=this[_0x2f3fdb(0x1ec)](_0x29ace9),_0xef3ecb=_0x4b2642(_0x2f3fdb(0x1e7),_0x1c733a,_0x599561);_0xef3ecb&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0xef3ecb,_0x2f3fdb(0x1be)]);}const _0x285d73=this[_0x2f3fdb(0x1c6)](_0x184316,!0x0);if(_0x285d73){const _0x35dfb9=this[_0x2f3fdb(0x1ec)](_0x285d73),_0x2dd601=_0x4b2642(_0x2f3fdb(0x1e7),_0x35dfb9,_0x599561);_0x2dd601&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0x2dd601,_0x2f3fdb(0x1c1)]);}if(_0x1cdfe1[_0x2f3fdb(0x1f2)]>0x1)return _0xdbc387(_0x1cdfe1[0x0][0x0])<=_0xdbc387(_0x1cdfe1[0x1][0x0])?_0x1cdfe1[0x0]:_0x1cdfe1[0x1];return 0x1===_0x1cdfe1[_0x2f3fdb(0x1f2)]?_0x1cdfe1[0x0]:[_0x599561[_0x2f3fdb(0x1b9)],_0x2f3fdb(0x1be)];}[_0x544b17(0x1c6)](_0x471b68,_0x36a67c){const _0x1dbe1e=_0x544b17;let _0x364321=_0x471b68[_0x1dbe1e(0x1e2)],_0x5bccea=null,_0x21f489=!0x1;for(;_0x364321;){if(_0x30d6b1(_0x364321)){if(this[_0x1dbe1e(0x1e9)](_0x364321)&&(_0x5bccea=_0x364321),this[_0x1dbe1e(0x1b5)](_0x364321)&&_0x36a67c&&!_0x21f489){_0x21f489=!0x0,_0x364321=_0x364321[_0x1dbe1e(0x1e2)];continue;}break;}const _0x2528b1=_0x4cbff3(_0x364321,_0x1dbe1e(0x1e7));if(_0x2528b1&&_0x1dbe1e(0x1b4)!==_0x2528b1&&this[_0x1dbe1e(0x1ef)][_0x1dbe1e(0x1d7)](_0x2528b1)){_0x5bccea=_0x364321;break;}_0x364321=_0x364321[_0x1dbe1e(0x1e2)];}return _0x5bccea;}[_0x544b17(0x1ba)](_0x36535a,_0x135d94){const _0x46898c=_0x544b17;let _0x2aaf42=_0x36535a[_0x46898c(0x1f1)],_0x580739=null,_0x31c39e=!0x1;for(;_0x2aaf42;){if(_0x30d6b1(_0x2aaf42)){if(this[_0x46898c(0x1e9)](_0x2aaf42)&&(_0x580739=_0x2aaf42),this[_0x46898c(0x1b5)](_0x2aaf42)&&_0x135d94&&!_0x31c39e){_0x31c39e=!0x0,_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];continue;}break;}const _0x5cd679=_0x4cbff3(_0x2aaf42,_0x46898c(0x1e7));if(_0x5cd679&&_0x46898c(0x1b4)!==_0x5cd679&&this[_0x46898c(0x1ef)][_0x46898c(0x1d7)](_0x5cd679)){_0x580739=_0x2aaf42;break;}_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];}return _0x580739;}[_0x544b17(0x1d0)](_0xd83d5d){const _0x5426f5=_0x544b17;_0x2ed662(_0xd83d5d)&&_0x1a06e7(_0x5426f5(0x1e7),null,_0xd83d5d)[_0x5426f5(0x1c4)](_0x5504f2=>{const _0x3281d4=_0x5426f5;if(this[_0x3281d4(0x1d3)](_0x5504f2)&&!this[_0x3281d4(0x1c0)](_0x5504f2)){const _0x1e962f=_0x4cbff3(_0x5504f2,_0x3281d4(0x1e7));_0x596918(_0x5504f2,_0x3281d4(0x1dd),_0x1e962f),_0x596918(_0x5504f2,_0x3281d4(0x1e7),null);}});}[_0x544b17(0x1ec)](_0x1248ee){const _0x5456f6=_0x544b17;if(!_0x1248ee)return null;if(_0x2ed662(_0x1248ee))return _0x4cbff3(_0x1248ee,_0x5456f6(0x1e7));if(_0x30d6b1(_0x1248ee)){const _0x595a73=_0x44096d(_0x1248ee)[_0x5456f6(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x595a73&&_0x595a73[0x1])return _0x595a73[0x1];}return null;}[_0x544b17(0x1c9)](_0x5c6058){const _0x249851=_0x544b17;if(_0x30d6b1(_0x5c6058)){const _0x2cd525=_0x44096d(_0x5c6058)[_0x249851(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);_0x2cd525&&_0x2cd525[0x1]&&this[_0x249851(0x1f3)][_0x249851(0x1d6)][_0x249851(0x1c8)](_0x2cd525[0x1]);}}[_0x544b17(0x1cc)](_0x5d544b){const _0x4eb49b=_0x544b17;return this[_0x4eb49b(0x1d3)](_0x5d544b)?_0x4cbff3(_0x5d544b,_0x4eb49b(0x1e7)):this[_0x4eb49b(0x1d2)]();}[_0x544b17(0x1d4)](_0x213ee6){const _0x7b6e60=_0x544b17;_0x1f47a8(_0x213ee6)[_0x7b6e60(0x1bf)](_0x34b7ab=>this[_0x7b6e60(0x1e9)](_0x34b7ab)||this[_0x7b6e60(0x1b5)](_0x34b7ab))[_0x7b6e60(0x1c4)](_0x513e99=>{_0x5be67e(_0x513e99);});}[_0x544b17(0x1db)](_0x4e9c8a){const _0x48c5f0=_0x544b17,_0x4a31bc=_0x4e9c8a[_0x48c5f0(0x1c2)],_0x52457e=_0x4a31bc[_0x4a31bc[_0x48c5f0(0x1f2)]-0x1];_0x52457e&&_0x2ed662(_0x52457e)&&_0x596918(_0x52457e,_0x48c5f0(0x1bb),_0x48c5f0(0x1ce));}[_0x544b17(0x1b7)](_0x43e6b0,_0x1b93be){const _0x3ed052=_0x544b17,_0x5c9b89=_0x4b2642(_0x3ed052(0x1bb),_0x3ed052(0x1ce),_0x43e6b0);if(!_0x5c9b89)return;const _0x20f6ec=_0x5828b6(_0x5c9b89)[_0x3ed052(0x1e5)](0x0,-0x1),_0x4f41f9=_0x20f6ec[_0x3ed052(0x1f2)];let _0x3d20d5=_0x5c9b89;if(_0x4f41f9>_0x1b93be){let _0x558893=_0x4f41f9,_0x35a0de=null;for(;_0x558893>_0x1b93be&&_0x558893>=0x0;)_0x558893--,_0x35a0de=_0x20f6ec[_0x558893];_0x35a0de&&(_0x3d20d5=_0x35a0de,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x35a0de,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}else{if(_0x4f41f9<_0x1b93be){let _0x710362=_0x4f41f9,_0x2b7c4f=_0x5c9b89;for(;_0x710362<_0x1b93be;){const _0x15de40=_0x2b7c4f[_0x3ed052(0x1c2)][_0x3ed052(0x1bf)](_0x35ab19=>_0x2ed662(_0x35ab19));if(0x0===_0x15de40[_0x3ed052(0x1f2)])break;_0x710362++,_0x2b7c4f=_0x15de40[_0x15de40[_0x3ed052(0x1f2)]-0x1];}_0x2b7c4f&&(_0x3d20d5=_0x2b7c4f,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x2b7c4f,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}}let _0x2746bf=_0x3d20d5;for(;_0x2746bf;){for(;_0x2746bf[_0x3ed052(0x1e2)];)_0x2746bf=_0x2746bf[_0x3ed052(0x1e2)],_0x2ed662(_0x2746bf)&&_0x596918(_0x2746bf,_0x3ed052(0x1bb),_0x3ed052(0x1ce));_0x2746bf=_0x2746bf[_0x3ed052(0x1b2)];}}[_0x544b17(0x1e6)](_0x39e8cc){const _0x4937ce=_0x544b17;return Boolean(_0x4937ce(0x1b4)===_0x4cbff3(_0x39e8cc,_0x4937ce(0x1e7)));}[_0x544b17(0x1d3)](_0x2a7a76){const _0x272b5d=_0x544b17;return Boolean((_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7))||'')[_0x272b5d(0x1f2)]>0x0&&_0x272b5d(0x1b4)!==_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7)));}[_0x544b17(0x1e9)](_0x235d67){const _0x14349a=_0x544b17;return!!_0x235d67&&Boolean(_0x30d6b1(_0x235d67)&&_0x44096d(_0x235d67)[_0x14349a(0x1d1)](/removed[\s*-]data-id="[^"]+"/));}[_0x544b17(0x1c0)](_0x364e53){const _0x4a7da0=_0x544b17;let _0x4dcd4d=_0x364e53[_0x4a7da0(0x1b2)];for(;_0x4dcd4d;){if(_0x4cbff3(_0x4dcd4d,_0x4a7da0(0x1dd)))return!0x0;_0x4dcd4d=_0x4dcd4d[_0x4a7da0(0x1b2)];}return!0x1;}[_0x544b17(0x1b5)](_0x93627a){const _0x4de4fb=_0x544b17;return Boolean(_0x30d6b1(_0x93627a)&&_0x44096d(_0x93627a)[_0x4de4fb(0x1d1)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3df1(){const _0x171943=['_parseHTML','351EbRKia','196109McuvBx','84rRYsVR','18356fgNity','convertMarkdownToHTML','158568Dfigck','parseAndNormalizeHTML','children','</dummy>','7725883Xidwbv','10rdnMHD','<dummy>','7063479YmwZAl','6iQHbsl','190JLLbgW','7086456IOeFQk','parse','_m2html','310280FoQbBn','replace'];_0x3df1=function(){return _0x171943;};return _0x3df1();}const _0xcfad53=_0x5897;(function(_0x94549,_0x2bbeb7){const _0x1de7a5=_0x5897,_0x3f294d=_0x94549();while(!![]){try{const _0x103432=parseInt(_0x1de7a5(0x1b3))/0x1*(parseInt(_0x1de7a5(0x1aa))/0x2)+parseInt(_0x1de7a5(0x1b2))/0x3*(parseInt(_0x1de7a5(0x1b5))/0x4)+-parseInt(_0x1de7a5(0x1ab))/0x5*(parseInt(_0x1de7a5(0x1b7))/0x6)+parseInt(_0x1de7a5(0x1b4))/0x7*(-parseInt(_0x1de7a5(0x1af))/0x8)+parseInt(_0x1de7a5(0x1a9))/0x9*(parseInt(_0x1de7a5(0x1bc))/0xa)+parseInt(_0x1de7a5(0x1bb))/0xb+-parseInt(_0x1de7a5(0x1ac))/0xc;if(_0x103432===_0x2bbeb7)break;else _0x3f294d['push'](_0x3f294d['shift']());}catch(_0x3c4a13){_0x3f294d['push'](_0x3f294d['shift']());}}}(_0x3df1,0x86d0a));import{ObservableMixin as _0x197473}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3609}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5897(_0x1cb8d2,_0x1184a1){const _0x3df1fa=_0x3df1();return _0x5897=function(_0x58976e,_0x3e1191){_0x58976e=_0x58976e-0x1a9;let _0x4f8e0a=_0x3df1fa[_0x58976e];return _0x4f8e0a;},_0x5897(_0x1cb8d2,_0x1184a1);}import{parse as _0x4e6601}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x197473(){[_0xcfad53(0x1ae)];constructor(){const _0x5f2958=_0xcfad53;super(),this[_0x5f2958(0x1ae)]=new _0x2f3609();}[_0xcfad53(0x1b6)](_0x44c0b4){const _0x41ad75=_0xcfad53,_0x3c1cd1=this[_0x41ad75(0x1ae)][_0x41ad75(0x1ad)](_0x44c0b4);return this[_0x41ad75(0x1b8)](_0x3c1cd1);}[_0xcfad53(0x1b8)](_0x19716a){const _0x3f6615=_0xcfad53;return this[_0x3f6615(0x1b1)](_0x19716a);}[_0xcfad53(0x1b1)](_0x1ec86c){const _0x5d86f6=_0xcfad53,_0x631245=_0x1ec86c[_0x5d86f6(0x1b0)](/^\t+/gm,'\x20')[_0x5d86f6(0x1b0)](/\n*/g,'')[_0x5d86f6(0x1b0)](/\s+/g,'\x20')[_0x5d86f6(0x1b0)](/<[^>]*?$/g,''),_0x21b7ad=_0x4e6601(_0x5d86f6(0x1bd)+_0x631245+_0x5d86f6(0x1ba));return _0x21b7ad[_0x5d86f6(0x1b9)]=_0x21b7ad[_0x5d86f6(0x1b9)][0x0][_0x5d86f6(0x1b9)],_0x21b7ad;}}
23
+ function _0x57b9(){const _0x43e970=['948110tDTizq','parseAndNormalizeHTML','9AxQxGM','116853TugtkA','4830sdArMn','2pUPSzL','_parseHTML','_m2html','48YRzEMf','parse','1847416wJcsiI','8096286MDpWIU','replace','6GUNLPM','convertMarkdownToHTML','4638207HgfQhf','<dummy>','</dummy>','166646HSwSol','children'];_0x57b9=function(){return _0x43e970;};return _0x57b9();}const _0x5b4788=_0x273f;(function(_0x1f3483,_0x7d56b4){const _0x5a7632=_0x273f,_0x5a10cc=_0x1f3483();while(!![]){try{const _0x32c72f=parseInt(_0x5a7632(0x15e))/0x1+-parseInt(_0x5a7632(0x165))/0x2*(parseInt(_0x5a7632(0x163))/0x3)+parseInt(_0x5a7632(0x154))/0x4*(parseInt(_0x5a7632(0x164))/0x5)+-parseInt(_0x5a7632(0x159))/0x6*(-parseInt(_0x5a7632(0x15b))/0x7)+-parseInt(_0x5a7632(0x156))/0x8*(-parseInt(_0x5a7632(0x162))/0x9)+parseInt(_0x5a7632(0x160))/0xa+-parseInt(_0x5a7632(0x157))/0xb;if(_0x32c72f===_0x7d56b4)break;else _0x5a10cc['push'](_0x5a10cc['shift']());}catch(_0x4f36d6){_0x5a10cc['push'](_0x5a10cc['shift']());}}}(_0x57b9,0x5f9b0));import{ObservableMixin as _0x42f706}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x36a468}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x548e13}from'../utils/htmlparser.js';function _0x273f(_0x1606b5,_0x4c97f3){const _0x57b925=_0x57b9();return _0x273f=function(_0x273fda,_0x595c96){_0x273fda=_0x273fda-0x154;let _0x2f4c1d=_0x57b925[_0x273fda];return _0x2f4c1d;},_0x273f(_0x1606b5,_0x4c97f3);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x42f706(){[_0x5b4788(0x167)];constructor(){const _0x508f85=_0x5b4788;super(),this[_0x508f85(0x167)]=new _0x36a468();}[_0x5b4788(0x15a)](_0x3830b8){const _0x1b8e1b=_0x5b4788,_0x38b0c3=this[_0x1b8e1b(0x167)][_0x1b8e1b(0x155)](_0x3830b8);return this[_0x1b8e1b(0x161)](_0x38b0c3);}[_0x5b4788(0x161)](_0x55fe84){const _0x52efa0=_0x5b4788;return this[_0x52efa0(0x166)](_0x55fe84);}[_0x5b4788(0x166)](_0x5b27){const _0x56578=_0x5b4788,_0x3a86f8=_0x5b27[_0x56578(0x158)](/^\t+/gm,'\x20')[_0x56578(0x158)](/\n*/g,'')[_0x56578(0x158)](/\s+/g,'\x20')[_0x56578(0x158)](/<[^>]*?$/g,''),_0x515663=_0x548e13(_0x56578(0x15c)+_0x3a86f8+_0x56578(0x15d));return _0x515663[_0x56578(0x15f)]=_0x515663[_0x56578(0x15f)][0x0][_0x56578(0x15f)],_0x515663;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2a2beb,_0x2589c5){var _0x49303c=_0x392d,_0x54ddc7=_0x2a2beb();while(!![]){try{var _0x2f5754=-parseInt(_0x49303c(0x139))/0x1*(-parseInt(_0x49303c(0x135))/0x2)+-parseInt(_0x49303c(0x12d))/0x3*(parseInt(_0x49303c(0x138))/0x4)+-parseInt(_0x49303c(0x131))/0x5*(-parseInt(_0x49303c(0x12b))/0x6)+parseInt(_0x49303c(0x12e))/0x7+parseInt(_0x49303c(0x137))/0x8*(-parseInt(_0x49303c(0x132))/0x9)+-parseInt(_0x49303c(0x136))/0xa+-parseInt(_0x49303c(0x130))/0xb*(parseInt(_0x49303c(0x12f))/0xc);if(_0x2f5754===_0x2589c5)break;else _0x54ddc7['push'](_0x54ddc7['shift']());}catch(_0x10fa2d){_0x54ddc7['push'](_0x54ddc7['shift']());}}}(_0x4330,0x4942e));import{View as _0x2e46c8}from'ckeditor5/src/ui.js';import{getTranslation as _0x59439f}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x392d(_0x3babdd,_0x56cb19){var _0x433038=_0x4330();return _0x392d=function(_0x392d40,_0x3b03d5){_0x392d40=_0x392d40-0x129;var _0x372a28=_0x433038[_0x392d40];return _0x372a28;},_0x392d(_0x3babdd,_0x56cb19);}function _0x4330(){var _0x30afdb=['1623008ekajmY','4bUpdOa','150010dBpHqe','ck-ai-disclaimer','setTemplate','34758qArKsn','AI_DISCLAIMER_TEXT','1083219otfWrN','2520756VSetYf','2316qQfSvm','21857QgfGKJ','295deYWnh','9KgRBOP','ck-ai-disclaimer__content','div','8NIQEnq','544170mBaiJC'];_0x4330=function(){return _0x30afdb;};return _0x4330();}export class AIDisclaimerView extends _0x2e46c8{constructor(_0x4e698d){var _0x51f4a6=_0x392d;super(_0x4e698d),this[_0x51f4a6(0x12a)]({'tag':_0x51f4a6(0x134),'attributes':{'class':['ck',_0x51f4a6(0x129)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x51f4a6(0x133)]},'children':[{'text':_0x59439f(_0x4e698d,_0x51f4a6(0x12c))}]}]});}}
23
+ (function(_0x48fbc4,_0x37cdc7){var _0x5af0b7=_0x5b24,_0x5d1a06=_0x48fbc4();while(!![]){try{var _0x4f711b=parseInt(_0x5af0b7(0x90))/0x1*(-parseInt(_0x5af0b7(0x9b))/0x2)+parseInt(_0x5af0b7(0x99))/0x3*(-parseInt(_0x5af0b7(0x8e))/0x4)+-parseInt(_0x5af0b7(0x9a))/0x5*(parseInt(_0x5af0b7(0x94))/0x6)+-parseInt(_0x5af0b7(0x93))/0x7*(-parseInt(_0x5af0b7(0x95))/0x8)+-parseInt(_0x5af0b7(0x92))/0x9*(parseInt(_0x5af0b7(0x96))/0xa)+-parseInt(_0x5af0b7(0x97))/0xb+parseInt(_0x5af0b7(0x9c))/0xc;if(_0x4f711b===_0x37cdc7)break;else _0x5d1a06['push'](_0x5d1a06['shift']());}catch(_0x208684){_0x5d1a06['push'](_0x5d1a06['shift']());}}}(_0x4130,0x7f16f));function _0x5b24(_0x2dfb45,_0x54ed2b){var _0x413029=_0x4130();return _0x5b24=function(_0x5b2488,_0x47e0df){_0x5b2488=_0x5b2488-0x8c;var _0x4f671c=_0x413029[_0x5b2488];return _0x4f671c;},_0x5b24(_0x2dfb45,_0x54ed2b);}import{View as _0x395fb2}from'ckeditor5/src/ui.js';import{getTranslation as _0xe2a369}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x4130(){var _0x2ab90c=['ck-ai-disclaimer__content','ck-ai-disclaimer','3748uVwUKW','AI_DISCLAIMER_TEXT','1eGeETO','setTemplate','1293867poOVuJ','8197NkOqto','1645626iKhYQK','464bCSwwn','50AxASjH','8816599RJmMuq','div','336kCbWwW','5WJIHVC','686974LHjvkO','32348004qiosmQ'];_0x4130=function(){return _0x2ab90c;};return _0x4130();}export class AIDisclaimerView extends _0x395fb2{constructor(_0x2ae66c){var _0x3544d2=_0x5b24;super(_0x2ae66c),this[_0x3544d2(0x91)]({'tag':_0x3544d2(0x98),'attributes':{'class':['ck',_0x3544d2(0x8d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3544d2(0x8c)]},'children':[{'text':_0xe2a369(_0x2ae66c,_0x3544d2(0x8f))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31f6b0=_0x5a99;(function(_0xb558df,_0x4e6e58){const _0x6f1d07=_0x5a99,_0x12bcda=_0xb558df();while(!![]){try{const _0x5618ad=-parseInt(_0x6f1d07(0x15b))/0x1*(parseInt(_0x6f1d07(0x16a))/0x2)+-parseInt(_0x6f1d07(0x160))/0x3+-parseInt(_0x6f1d07(0x14d))/0x4*(parseInt(_0x6f1d07(0x169))/0x5)+parseInt(_0x6f1d07(0x16d))/0x6+-parseInt(_0x6f1d07(0x153))/0x7*(-parseInt(_0x6f1d07(0x168))/0x8)+parseInt(_0x6f1d07(0x166))/0x9+parseInt(_0x6f1d07(0x158))/0xa*(parseInt(_0x6f1d07(0x154))/0xb);if(_0x5618ad===_0x4e6e58)break;else _0x12bcda['push'](_0x12bcda['shift']());}catch(_0x577af4){_0x12bcda['push'](_0x12bcda['shift']());}}}(_0x2556,0x7b224));import{View as _0x6a701a}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x6a701a{constructor(_0x207865,_0x14f40b){const _0xe79e56=_0x5a99;super(_0x207865),this[_0xe79e56(0x146)]({'tag':_0xe79e56(0x155),'attributes':{'class':['ck',_0xe79e56(0x14e)]},'children':this[_0xe79e56(0x14f)](_0x14f40b)});}[_0x31f6b0(0x14f)](_0x248000){const _0x1210fc=_0x31f6b0,_0x30e927=['ck',_0x1210fc(0x15c)];return _0x248000[_0x1210fc(0x163)](_0x59f508=>{const _0x14bfda=_0x1210fc;let _0x391bc7='';switch(_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x151)]){case _0x14bfda(0x15e):_0x391bc7=_0x14bfda(0x15d);break;case _0x14bfda(0x164):_0x391bc7=_0x14bfda(0x148);break;case _0x14bfda(0x16b):_0x391bc7=_0x14bfda(0x157);}return{'tag':_0x59f508[_0x14bfda(0x16e)],'attributes':{'class':[..._0x30e927,_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x149)]?_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x149)]:''],'style':_0x14bfda(0x145)+_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x152)]+_0x14bfda(0x161)+_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x16c)]+';'+_0x391bc7}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x15f),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x165),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x147),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x14b),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x14a),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x165),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x147),'align':_0x31f6b0(0x15e)}}],'aiHistory':ta(0x5,_0x31f6b0(0x15a),_0x31f6b0(0x159),_0x31f6b0(0x15e)),'aiChatResources':ta(0x8,_0x31f6b0(0x15a),_0x31f6b0(0x150),_0x31f6b0(0x15e)),'aiReviewChecks':[{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x167),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x167),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}}]};function _0x5a99(_0x5cbb42,_0x26faaa){const _0x2556e0=_0x2556();return _0x5a99=function(_0x5a997a,_0x1c99e8){_0x5a997a=_0x5a997a-0x145;let _0x1c6753=_0x2556e0[_0x5a997a];return _0x1c6753;},_0x5a99(_0x5cbb42,_0x26faaa);}function _0x2556(){const _0x3274e4=['fill','map','center','250px','8282745FcLXGD','128px','8uBjBrz','442480syGDrq','56346lLBgxN','left','height','3622872vHmvyq','tag','width:\x20','setTemplate','88px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','class','140px','150px','attributes','24TnAdht','ck-ai-skeleton','_createSkeletonItems','24px','align','width','877226bGOYeW','9779epIWjm','div','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','12200PXSYHA','44px','100%','31MUPUWR','ck-ai-skeleton__item','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','right','72px','2475960ecoKmB',';\x20height:\x20'];_0x2556=function(){return _0x3274e4;};return _0x2556();}function ta(_0x2fb80e,_0x3f2eea,_0x4a2867,_0x2f836b){const _0x5af4dc=_0x31f6b0;return new Array(_0x2fb80e)[_0x5af4dc(0x162)](null)[_0x5af4dc(0x163)](()=>({'tag':_0x5af4dc(0x155),'attributes':{'width':_0x3f2eea,'height':_0x4a2867,'align':_0x2f836b}}));}
23
+ const _0x22afbc=_0x458c;(function(_0x574d6a,_0x3e3194){const _0x2a6eaf=_0x458c,_0x309dd7=_0x574d6a();while(!![]){try{const _0x35acee=-parseInt(_0x2a6eaf(0x1fa))/0x1*(-parseInt(_0x2a6eaf(0x1d8))/0x2)+parseInt(_0x2a6eaf(0x1ed))/0x3*(parseInt(_0x2a6eaf(0x1e4))/0x4)+parseInt(_0x2a6eaf(0x1d0))/0x5*(parseInt(_0x2a6eaf(0x1e8))/0x6)+-parseInt(_0x2a6eaf(0x1d4))/0x7+-parseInt(_0x2a6eaf(0x1f4))/0x8*(-parseInt(_0x2a6eaf(0x1d1))/0x9)+parseInt(_0x2a6eaf(0x1ef))/0xa*(-parseInt(_0x2a6eaf(0x1f9))/0xb)+parseInt(_0x2a6eaf(0x1e9))/0xc*(-parseInt(_0x2a6eaf(0x1d6))/0xd);if(_0x35acee===_0x3e3194)break;else _0x309dd7['push'](_0x309dd7['shift']());}catch(_0x20f8c3){_0x309dd7['push'](_0x309dd7['shift']());}}}(_0x2fb7,0x60ade));import{View as _0x2607ff}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2607ff{constructor(_0xb9b290,_0x1471f8){const _0x2a0479=_0x458c;super(_0xb9b290),this[_0x2a0479(0x1e2)]({'tag':_0x2a0479(0x1ee),'attributes':{'class':['ck',_0x2a0479(0x1d2)]},'children':this[_0x2a0479(0x1e0)](_0x1471f8)});}[_0x22afbc(0x1e0)](_0x4f65e2){const _0x37ae50=_0x22afbc,_0x4e84a6=['ck',_0x37ae50(0x1f3)];return _0x4f65e2[_0x37ae50(0x1e1)](_0x4a7de=>{const _0x29b881=_0x37ae50;let _0x1cbfad='';switch(_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1de)]){case _0x29b881(0x1f5):_0x1cbfad=_0x29b881(0x1e5);break;case _0x29b881(0x1f7):_0x1cbfad=_0x29b881(0x1fb);break;case _0x29b881(0x1d7):_0x1cbfad=_0x29b881(0x1dd);}return{'tag':_0x4a7de[_0x29b881(0x1f1)],'attributes':{'class':[..._0x4e84a6,_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]?_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]:''],'style':_0x29b881(0x1eb)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1ea)]+_0x29b881(0x1ec)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1db)]+';'+_0x1cbfad}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1d5),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e6),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f6),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}}],'aiHistory':ta(0x5,_0x22afbc(0x1e7),_0x22afbc(0x1d3),_0x22afbc(0x1f5)),'aiChatResources':ta(0x8,_0x22afbc(0x1e7),_0x22afbc(0x1da),_0x22afbc(0x1f5)),'aiReviewChecks':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}}]};function ta(_0x5ac1bd,_0x2929de,_0x3067d7,_0x330042){const _0x31ad54=_0x22afbc;return new Array(_0x5ac1bd)[_0x31ad54(0x1dc)](null)[_0x31ad54(0x1e1)](()=>({'tag':_0x31ad54(0x1ee),'attributes':{'width':_0x2929de,'height':_0x3067d7,'align':_0x330042}}));}function _0x458c(_0xe26a4d,_0xa49569){const _0x2fb717=_0x2fb7();return _0x458c=function(_0x458cf5,_0x25783a){_0x458cf5=_0x458cf5-0x1d0;let _0x332d8a=_0x2fb717[_0x458cf5];return _0x332d8a;},_0x458c(_0xe26a4d,_0xa49569);}function _0x2fb7(){const _0xc32e1c=['72px','5394519wqCNMV','left','1197802pUIfTb','250px','24px','height','fill','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','align','128px','_createSkeletonItems','map','setTemplate','class','4pFiWks','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','150px','100%','6ebDzVw','12UIIKaH','width','width:\x20',';\x20height:\x20','1698882zJiteG','div','4250KbTpDj','40px','tag','attributes','ck-ai-skeleton__item','32nqXnjd','right','140px','center','88px','19459hzBGBN','1VPhnCd','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1007375TjXGaR','522999tDMaCZ','ck-ai-skeleton','44px','254296NAiulA'];_0x2fb7=function(){return _0xc32e1c;};return _0x2fb7();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a7e(){const _0x18ae5a=['span','ck-ai-spinner_','1JCXFKT','2082XZayVf','416SyOKtj','10wcJmOH','11196znuMcG','1451904ExmSqp','8zimVGz','ck-ai-spinner','737wzYFyJ','53030vTNdke','extendTemplate','9488760rVPvmO','1710352ULyYqG','1086452FYsQLQ'];_0x2a7e=function(){return _0x18ae5a;};return _0x2a7e();}function _0x1302(_0x55e550,_0x41b253){const _0x2a7e63=_0x2a7e();return _0x1302=function(_0x1302c5,_0x193005){_0x1302c5=_0x1302c5-0x1a1;let _0x7d80d1=_0x2a7e63[_0x1302c5];return _0x7d80d1;},_0x1302(_0x55e550,_0x41b253);}(function(_0x5e1f28,_0x5d02e3){const _0x1fb490=_0x1302,_0x4a77dd=_0x5e1f28();while(!![]){try{const _0x174e33=-parseInt(_0x1fb490(0x1a1))/0x1*(-parseInt(_0x1fb490(0x1ae))/0x2)+-parseInt(_0x1fb490(0x1a2))/0x3*(parseInt(_0x1fb490(0x1a3))/0x4)+-parseInt(_0x1fb490(0x1a4))/0x5*(-parseInt(_0x1fb490(0x1a6))/0x6)+-parseInt(_0x1fb490(0x1ad))/0x7+-parseInt(_0x1fb490(0x1a7))/0x8*(parseInt(_0x1fb490(0x1a5))/0x9)+parseInt(_0x1fb490(0x1aa))/0xa*(parseInt(_0x1fb490(0x1a9))/0xb)+-parseInt(_0x1fb490(0x1ac))/0xc;if(_0x174e33===_0x5d02e3)break;else _0x4a77dd['push'](_0x4a77dd['shift']());}catch(_0x262d75){_0x4a77dd['push'](_0x4a77dd['shift']());}}}(_0x2a7e,0x42e59));import{SpinnerView as _0x4799fb}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x4799fb{constructor(_0x200841=void 0x0){const _0x52e0d3=_0x1302;super();const _0x3f588b=_0x200841?_0x52e0d3(0x1b0)+_0x200841:'';this[_0x52e0d3(0x1ab)]({'tag':_0x52e0d3(0x1af),'attributes':{'class':[_0x52e0d3(0x1a8),_0x3f588b]}});}}
23
+ (function(_0x9ffb7a,_0x1e4be9){const _0x218105=_0x429e,_0x16cba0=_0x9ffb7a();while(!![]){try{const _0x1748b4=parseInt(_0x218105(0x158))/0x1*(-parseInt(_0x218105(0x14c))/0x2)+-parseInt(_0x218105(0x156))/0x3*(-parseInt(_0x218105(0x150))/0x4)+-parseInt(_0x218105(0x157))/0x5+-parseInt(_0x218105(0x154))/0x6+parseInt(_0x218105(0x155))/0x7+-parseInt(_0x218105(0x14d))/0x8*(-parseInt(_0x218105(0x14b))/0x9)+-parseInt(_0x218105(0x152))/0xa;if(_0x1748b4===_0x1e4be9)break;else _0x16cba0['push'](_0x16cba0['shift']());}catch(_0x46a96d){_0x16cba0['push'](_0x16cba0['shift']());}}}(_0x2a01,0xca1a6));import{SpinnerView as _0xf373eb}from'ckeditor5/src/ui.js';function _0x429e(_0x4f20ff,_0x13ed93){const _0x2a0184=_0x2a01();return _0x429e=function(_0x429eb7,_0xd8a348){_0x429eb7=_0x429eb7-0x14b;let _0x94821b=_0x2a0184[_0x429eb7];return _0x94821b;},_0x429e(_0x4f20ff,_0x13ed93);}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0xf373eb{constructor(_0x23c025=void 0x0){const _0x13881d=_0x429e;super();const _0x1689bb=_0x23c025?_0x13881d(0x14f)+_0x23c025:'';this[_0x13881d(0x153)]({'tag':_0x13881d(0x151),'attributes':{'class':[_0x13881d(0x14e),_0x1689bb]}});}}function _0x2a01(){const _0x587123=['ck-ai-spinner_','72aEiiTC','span','11654390HMeZXK','extendTemplate','1022016aylxPL','8267938PagHoY','275289dawwNX','5873520eoWnts','21676Kkjbmh','2860605awBacy','100pIPucg','40afGipZ','ck-ai-spinner'];_0x2a01=function(){return _0x587123;};return _0x2a01();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29388a=_0x2f89;(function(_0x2b11c4,_0x3ba56d){const _0x23108a=_0x2f89,_0x12996e=_0x2b11c4();while(!![]){try{const _0x55a64f=parseInt(_0x23108a(0x175))/0x1+-parseInt(_0x23108a(0x185))/0x2*(-parseInt(_0x23108a(0x186))/0x3)+-parseInt(_0x23108a(0x19a))/0x4+parseInt(_0x23108a(0x19e))/0x5*(parseInt(_0x23108a(0x16f))/0x6)+parseInt(_0x23108a(0x194))/0x7*(parseInt(_0x23108a(0x18f))/0x8)+parseInt(_0x23108a(0x17f))/0x9*(parseInt(_0x23108a(0x18e))/0xa)+-parseInt(_0x23108a(0x183))/0xb*(parseInt(_0x23108a(0x17c))/0xc);if(_0x55a64f===_0x3ba56d)break;else _0x12996e['push'](_0x12996e['shift']());}catch(_0x1c76e3){_0x12996e['push'](_0x12996e['shift']());}}}(_0x28bc,0xee5bb));import{ButtonView as _0x3337a5,IconView as _0x7d30dd,ToolbarView as _0x33db5c}from'ckeditor5/src/ui.js';import{IconCheck as _0x9949af,IconCopy as _0x332129,IconShowChangesOff as _0x440d00,IconShowChangesOn as _0x192401,IconThumbDown as _0x35ca23,IconThumbUp as _0x2bfdc0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x20316a}from'../../utils/common-translations.js';function _0x2f89(_0x321456,_0x4b9380){const _0x28bca1=_0x28bc();return _0x2f89=function(_0x2f8959,_0x52967c){_0x2f8959=_0x2f8959-0x168;let _0x35c86f=_0x28bca1[_0x2f8959];return _0x35c86f;},_0x2f89(_0x321456,_0x4b9380);}import'../../../../theme/aichat/aiminitoolbar.css';function _0x28bc(){const _0x43cdc0=['dislike','copyButton','length','160dOtldQ','728KYkrcv','class','like','showDislike','addMany','17059ruDeRH','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','locale','ck-ai-mini-toolbar-copy-button__check-mark','isEnabled','ck-ai-mini-toolbar\x20ck-hidden','5074144DxBkcQ','AI_MINI_TOOLBAR_COPY','toggleShowChanges','isShowChangesOn','7176815UbfjWK','bind','full','_setupCopyButton','ck-ai-mini-toolbar-copy-button','_setupShowChangesButton','items','customView','showCopy','6nAShhT','isOn','likeButton','extendTemplate','icon','fire','893820aBzAnC','ck-ai-button-tertiary','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_DISLIKE','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar','add','3156dTImZs','execute','showChanges','198342oOIepJ','toggleShowChangesEnabled','showChangesButton','showLike','34793brDEgS','dislikeButton','1852usjjVM','561bItBNC','set','children','_setupRatingButtons','_config'];_0x28bc=function(){return _0x43cdc0;};return _0x28bc();}export class AIMiniToolbarView extends _0x33db5c{[_0x29388a(0x18c)];[_0x29388a(0x171)];[_0x29388a(0x184)];[_0x29388a(0x181)];[_0x29388a(0x18a)];constructor(_0x315197,_0x528a83={}){const _0x4583ea=_0x29388a;super(_0x315197),this[_0x4583ea(0x187)](_0x4583ea(0x198),!0x0),this[_0x4583ea(0x187)](_0x4583ea(0x19d),!0x1),this[_0x4583ea(0x18a)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x528a83};const _0x163ff7=!(this[_0x4583ea(0x18a)][_0x4583ea(0x16e)]||this[_0x4583ea(0x18a)][_0x4583ea(0x17e)]||this[_0x4583ea(0x18a)][_0x4583ea(0x182)]||this[_0x4583ea(0x18a)][_0x4583ea(0x192)]||this[_0x4583ea(0x18a)][_0x4583ea(0x16d)]?.[_0x4583ea(0x18d)]);this[_0x4583ea(0x190)]=_0x163ff7?_0x4583ea(0x199):_0x4583ea(0x17a),this[_0x4583ea(0x18a)][_0x4583ea(0x16e)]&&(this[_0x4583ea(0x169)](),this[_0x4583ea(0x16c)][_0x4583ea(0x17b)](this[_0x4583ea(0x18c)])),this[_0x4583ea(0x18a)][_0x4583ea(0x17e)]&&(this[_0x4583ea(0x16b)](),this[_0x4583ea(0x16c)][_0x4583ea(0x17b)](this[_0x4583ea(0x181)])),this[_0x4583ea(0x189)](),this[_0x4583ea(0x18a)][_0x4583ea(0x182)]&&this[_0x4583ea(0x16c)][_0x4583ea(0x17b)](this[_0x4583ea(0x171)]),this[_0x4583ea(0x18a)][_0x4583ea(0x192)]&&this[_0x4583ea(0x16c)][_0x4583ea(0x17b)](this[_0x4583ea(0x184)]),this[_0x4583ea(0x18a)][_0x4583ea(0x16d)]&&this[_0x4583ea(0x16c)][_0x4583ea(0x193)](this[_0x4583ea(0x18a)][_0x4583ea(0x16d)]);}[_0x29388a(0x180)](_0x1b7e0c){const _0x358457=_0x29388a;this[_0x358457(0x181)][_0x358457(0x198)]=_0x1b7e0c;}[_0x29388a(0x189)](){const _0x7edfa5=_0x29388a;this[_0x7edfa5(0x171)]=new _0x3337a5(this[_0x7edfa5(0x196)]),this[_0x7edfa5(0x171)][_0x7edfa5(0x187)]({'icon':_0x2bfdc0,'label':_0x20316a(this[_0x7edfa5(0x196)],_0x7edfa5(0x179)),'tooltip':!0x0}),this[_0x7edfa5(0x171)][_0x7edfa5(0x19f)](_0x7edfa5(0x198))['to'](this),this[_0x7edfa5(0x171)]['on'](_0x7edfa5(0x17d),()=>{const _0x5c6439=_0x7edfa5;this[_0x5c6439(0x174)](_0x5c6439(0x191));}),this[_0x7edfa5(0x184)]=new _0x3337a5(this[_0x7edfa5(0x196)]),this[_0x7edfa5(0x184)][_0x7edfa5(0x187)]({'icon':_0x35ca23,'label':_0x20316a(this[_0x7edfa5(0x196)],_0x7edfa5(0x178)),'tooltip':!0x0}),this[_0x7edfa5(0x184)][_0x7edfa5(0x19f)](_0x7edfa5(0x198))['to'](this),this[_0x7edfa5(0x184)]['on'](_0x7edfa5(0x17d),()=>{const _0x9bda78=_0x7edfa5;this[_0x9bda78(0x174)](_0x9bda78(0x18b));});}[_0x29388a(0x169)](){const _0x25d143=_0x29388a;this[_0x25d143(0x18c)]=new _0x3337a5(this[_0x25d143(0x196)]),this[_0x25d143(0x18c)][_0x25d143(0x187)]({'icon':_0x332129,'label':_0x20316a(this[_0x25d143(0x196)],_0x25d143(0x19b)),'class':_0x25d143(0x16a),'tooltip':!0x0}),this[_0x25d143(0x18c)][_0x25d143(0x19f)](_0x25d143(0x198))['to'](this);const _0x5c5418=new _0x7d30dd();_0x5c5418[_0x25d143(0x187)]({'content':_0x9949af}),_0x5c5418[_0x25d143(0x172)]({'attributes':{'class':[_0x25d143(0x197)]}}),this[_0x25d143(0x18c)]['on'](_0x25d143(0x17d),()=>{const _0x23688d=_0x25d143;this[_0x23688d(0x18c)][_0x23688d(0x190)]=_0x23688d(0x195),setTimeout(()=>{const _0x53cd8f=_0x23688d;this[_0x53cd8f(0x18c)][_0x53cd8f(0x190)]=_0x53cd8f(0x16a);},0x7d0);}),this[_0x25d143(0x18c)][_0x25d143(0x188)][_0x25d143(0x17b)](_0x5c5418);}[_0x29388a(0x16b)](){const _0x14bf5b=_0x29388a;this[_0x14bf5b(0x181)]=new _0x3337a5(this[_0x14bf5b(0x196)]),this[_0x14bf5b(0x181)][_0x14bf5b(0x187)]({'icon':_0x440d00,'label':_0x20316a(this[_0x14bf5b(0x196)],_0x14bf5b(0x177)),'withText':_0x14bf5b(0x168)==this[_0x14bf5b(0x18a)][_0x14bf5b(0x17e)],'tooltip':_0x14bf5b(0x168)!=this[_0x14bf5b(0x18a)][_0x14bf5b(0x17e)],'class':_0x14bf5b(0x176)}),this[_0x14bf5b(0x181)][_0x14bf5b(0x19f)](_0x14bf5b(0x170))['to'](this,_0x14bf5b(0x19d)),this[_0x14bf5b(0x181)][_0x14bf5b(0x19f)](_0x14bf5b(0x198))['to'](this),this[_0x14bf5b(0x181)][_0x14bf5b(0x19f)](_0x14bf5b(0x173))['to'](this,_0x14bf5b(0x19d),_0x48a0af=>_0x48a0af?_0x192401:_0x440d00),this[_0x14bf5b(0x181)]['on'](_0x14bf5b(0x17d),()=>{const _0x44acfc=_0x14bf5b;this[_0x44acfc(0x174)](_0x44acfc(0x19c));});}}
23
+ const _0x2ee09a=_0x3a02;function _0x5d7a(){const _0x1ccf24=['showChangesButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislikeButton','AI_MINI_TOOLBAR_COPY','showCopy','804870BYqWIK','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-button-tertiary','bind','class','isShowChangesOn','addMany','32MzPYeH','showChanges','isOn','664623ASlgIS','length','720097ZwWwIX','extendTemplate','41570esRygj','showLike','679947eeFMlJ','locale','showDislike','customView','copyButton','items','_setupShowChangesButton','full','_config','fire','_setupRatingButtons','icon','add','like','ck-ai-mini-toolbar','557768nxlhSZ','toggleShowChanges','set','AI_MINI_TOOLBAR_DISLIKE','dislike','_setupCopyButton','toggleShowChangesEnabled','ck-ai-mini-toolbar-copy-button','isEnabled','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','7702uOxAwv','execute','likeButton','children','AI_MINI_TOOLBAR_LIKE','10ObMJsU','24iRhvsJ','60QsXIFj'];_0x5d7a=function(){return _0x1ccf24;};return _0x5d7a();}(function(_0x4f880c,_0x2e960a){const _0x110b82=_0x3a02,_0x3815b7=_0x4f880c();while(!![]){try{const _0x72dfaf=parseInt(_0x110b82(0xe9))/0x1*(-parseInt(_0x110b82(0xc6))/0x2)+parseInt(_0x110b82(0xcf))/0x3+parseInt(_0x110b82(0xde))/0x4+parseInt(_0x110b82(0xcd))/0x5*(parseInt(_0x110b82(0xf0))/0x6)+parseInt(_0x110b82(0xcb))/0x7*(-parseInt(_0x110b82(0xef))/0x8)+parseInt(_0x110b82(0xc9))/0x9+-parseInt(_0x110b82(0xee))/0xa*(-parseInt(_0x110b82(0xbf))/0xb);if(_0x72dfaf===_0x2e960a)break;else _0x3815b7['push'](_0x3815b7['shift']());}catch(_0x4c1435){_0x3815b7['push'](_0x3815b7['shift']());}}}(_0x5d7a,0x28233));import{ButtonView as _0x58a5dd,IconView as _0x1d352d,ToolbarView as _0x49c58c}from'ckeditor5/src/ui.js';function _0x3a02(_0x5b200e,_0x2d5ba4){const _0x5d7a10=_0x5d7a();return _0x3a02=function(_0x3a0221,_0x22bfc7){_0x3a0221=_0x3a0221-0xbc;let _0x347638=_0x5d7a10[_0x3a0221];return _0x347638;},_0x3a02(_0x5b200e,_0x2d5ba4);}import{IconCheck as _0x189f54,IconCopy as _0xc1c4a3,IconShowChangesOff as _0x18a7d4,IconShowChangesOn as _0x582ef7,IconThumbDown as _0x576626,IconThumbUp as _0x52c502}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2b6464}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x49c58c{[_0x2ee09a(0xd3)];[_0x2ee09a(0xeb)];[_0x2ee09a(0xbc)];[_0x2ee09a(0xf1)];[_0x2ee09a(0xd7)];constructor(_0x32f1af,_0x4f3b10={}){const _0x59c97=_0x2ee09a;super(_0x32f1af),this[_0x59c97(0xe0)](_0x59c97(0xe6),!0x0),this[_0x59c97(0xe0)](_0x59c97(0xc4),!0x1),this[_0x59c97(0xd7)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4f3b10};const _0xa901b1=!(this[_0x59c97(0xd7)][_0x59c97(0xbe)]||this[_0x59c97(0xd7)][_0x59c97(0xc7)]||this[_0x59c97(0xd7)][_0x59c97(0xce)]||this[_0x59c97(0xd7)][_0x59c97(0xd1)]||this[_0x59c97(0xd7)][_0x59c97(0xd2)]?.[_0x59c97(0xca)]);this[_0x59c97(0xc3)]=_0xa901b1?_0x59c97(0xc0):_0x59c97(0xdd),this[_0x59c97(0xd7)][_0x59c97(0xbe)]&&(this[_0x59c97(0xe3)](),this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xd3)])),this[_0x59c97(0xd7)][_0x59c97(0xc7)]&&(this[_0x59c97(0xd5)](),this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xf1)])),this[_0x59c97(0xd9)](),this[_0x59c97(0xd7)][_0x59c97(0xce)]&&this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xeb)]),this[_0x59c97(0xd7)][_0x59c97(0xd1)]&&this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xbc)]),this[_0x59c97(0xd7)][_0x59c97(0xd2)]&&this[_0x59c97(0xd4)][_0x59c97(0xc5)](this[_0x59c97(0xd7)][_0x59c97(0xd2)]);}[_0x2ee09a(0xe4)](_0x2d09dd){const _0x1db858=_0x2ee09a;this[_0x1db858(0xf1)][_0x1db858(0xe6)]=_0x2d09dd;}[_0x2ee09a(0xd9)](){const _0x45b620=_0x2ee09a;this[_0x45b620(0xeb)]=new _0x58a5dd(this[_0x45b620(0xd0)]),this[_0x45b620(0xeb)][_0x45b620(0xe0)]({'icon':_0x52c502,'label':_0x2b6464(this[_0x45b620(0xd0)],_0x45b620(0xed)),'tooltip':!0x0}),this[_0x45b620(0xeb)][_0x45b620(0xc2)](_0x45b620(0xe6))['to'](this),this[_0x45b620(0xeb)]['on'](_0x45b620(0xea),()=>{const _0x30cd5f=_0x45b620;this[_0x30cd5f(0xd8)](_0x30cd5f(0xdc));}),this[_0x45b620(0xbc)]=new _0x58a5dd(this[_0x45b620(0xd0)]),this[_0x45b620(0xbc)][_0x45b620(0xe0)]({'icon':_0x576626,'label':_0x2b6464(this[_0x45b620(0xd0)],_0x45b620(0xe1)),'tooltip':!0x0}),this[_0x45b620(0xbc)][_0x45b620(0xc2)](_0x45b620(0xe6))['to'](this),this[_0x45b620(0xbc)]['on'](_0x45b620(0xea),()=>{const _0x2e4543=_0x45b620;this[_0x2e4543(0xd8)](_0x2e4543(0xe2));});}[_0x2ee09a(0xe3)](){const _0x70125a=_0x2ee09a;this[_0x70125a(0xd3)]=new _0x58a5dd(this[_0x70125a(0xd0)]),this[_0x70125a(0xd3)][_0x70125a(0xe0)]({'icon':_0xc1c4a3,'label':_0x2b6464(this[_0x70125a(0xd0)],_0x70125a(0xbd)),'class':_0x70125a(0xe5),'tooltip':!0x0}),this[_0x70125a(0xd3)][_0x70125a(0xc2)](_0x70125a(0xe6))['to'](this);const _0x45a1db=new _0x1d352d();_0x45a1db[_0x70125a(0xe0)]({'content':_0x189f54}),_0x45a1db[_0x70125a(0xcc)]({'attributes':{'class':[_0x70125a(0xe7)]}}),this[_0x70125a(0xd3)]['on'](_0x70125a(0xea),()=>{const _0x2cd6c3=_0x70125a;this[_0x2cd6c3(0xd3)][_0x2cd6c3(0xc3)]=_0x2cd6c3(0xe8),setTimeout(()=>{const _0x334d75=_0x2cd6c3;this[_0x334d75(0xd3)][_0x334d75(0xc3)]=_0x334d75(0xe5);},0x7d0);}),this[_0x70125a(0xd3)][_0x70125a(0xec)][_0x70125a(0xdb)](_0x45a1db);}[_0x2ee09a(0xd5)](){const _0x4c66e7=_0x2ee09a;this[_0x4c66e7(0xf1)]=new _0x58a5dd(this[_0x4c66e7(0xd0)]),this[_0x4c66e7(0xf1)][_0x4c66e7(0xe0)]({'icon':_0x18a7d4,'label':_0x2b6464(this[_0x4c66e7(0xd0)],_0x4c66e7(0xf2)),'withText':_0x4c66e7(0xd6)==this[_0x4c66e7(0xd7)][_0x4c66e7(0xc7)],'tooltip':_0x4c66e7(0xd6)!=this[_0x4c66e7(0xd7)][_0x4c66e7(0xc7)],'class':_0x4c66e7(0xc1)}),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xc8))['to'](this,_0x4c66e7(0xc4)),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xe6))['to'](this),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xda))['to'](this,_0x4c66e7(0xc4),_0x34ee90=>_0x34ee90?_0x582ef7:_0x18a7d4),this[_0x4c66e7(0xf1)]['on'](_0x4c66e7(0xea),()=>{const _0x28364f=_0x4c66e7;this[_0x28364f(0xd8)](_0x28364f(0xdf));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23142d=_0x4d3d;(function(_0x2b08f6,_0x242a7e){const _0x1a0b3c=_0x4d3d,_0x205875=_0x2b08f6();while(!![]){try{const _0x15812e=-parseInt(_0x1a0b3c(0x87))/0x1+-parseInt(_0x1a0b3c(0xa9))/0x2+parseInt(_0x1a0b3c(0x88))/0x3*(-parseInt(_0x1a0b3c(0xb9))/0x4)+parseInt(_0x1a0b3c(0x7d))/0x5+-parseInt(_0x1a0b3c(0x97))/0x6+parseInt(_0x1a0b3c(0xa4))/0x7*(-parseInt(_0x1a0b3c(0xa1))/0x8)+parseInt(_0x1a0b3c(0xb1))/0x9*(parseInt(_0x1a0b3c(0x9f))/0xa);if(_0x15812e===_0x242a7e)break;else _0x205875['push'](_0x205875['shift']());}catch(_0x24a47c){_0x205875['push'](_0x205875['shift']());}}}(_0x1d53,0x2b091));import{View as _0x3ca48a}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4626c8}from'./aisuggestioncontentpartview.js';function _0x4d3d(_0x559097,_0x46a1e3){const _0x1d5306=_0x1d53();return _0x4d3d=function(_0x4d3d4d,_0x2bd99f){_0x4d3d4d=_0x4d3d4d-0x7d;let _0x31f265=_0x1d5306[_0x4d3d4d];return _0x31f265;},_0x4d3d(_0x559097,_0x46a1e3);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x37907c}from'../../utils/eventnames.js';function _0x1d53(){const _0x3c2517=['locale','addEventListener','isActive','delegate','enqueue','createCollection','updateSources','some','bodyCollection','_emptyPartsWarningView','82812nXEIrM','find','_switchButtonLabelsPlurality','partsCount','isTrackChangesOn','hasPendingParts','addSource','set','10gDnsLK','add','8ijZten','AI_SUGGESTION_NO_PARTS_WARNING','from','444472KKACTG','ck-ai-suggestion__body__content-parts','updatePartState','warning','_updateContentPartsPromiseQueue','578554CLTgwY','bind','partDefinition','index','setContent','isVisible','_children','ck-ai-suggestion__body','6886395wriWoe','isEnabled','_cachedContentParts','markAsDone','_availableActions','filter','_areActionsDisabled','pending','112DAzhUL','updateVisibility','setPartActive','updateContentParts','empty-parts-warning','areActionsDisabled','availableActions','setTemplate','_sourcesView','hasChanges','getPartView','818385IGRoHF','div','_actionsView','state','queueEmptyPromise','AI_SUGGESTION_EMPTY_PART_WARNING','updateContent','length','push','forEach','258136XUdwZj','13698IySpkU','abort','_showUnchangedParts','findIndex','hasNonEmptyParts'];_0x1d53=function(){return _0x3c2517;};return _0x1d53();}import{PromiseQueue as _0x46a451}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2570d3}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x21e294}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0xfb128e}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0xe0fd5f}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x3ca48a{[_0x23142d(0x7f)];[_0x23142d(0xc1)];[_0x23142d(0xaf)];[_0x23142d(0xb7)];[_0x23142d(0x8a)];[_0x23142d(0xa8)];[_0x23142d(0x96)];[_0x23142d(0xb5)];[_0x23142d(0xb3)]=[];constructor(_0x3aacf8,_0x22b99a){const _0x5894e8=_0x23142d;super(_0x3aacf8);const {areActionsDisabled:_0x32e96d,showUnchangedParts:_0x4d4d5b,availableActions:_0x4d20b4}=_0x22b99a;this[_0x5894e8(0xb7)]=_0x32e96d,this[_0x5894e8(0x8a)]=_0x4d4d5b,this[_0x5894e8(0xb5)]=_0x4d20b4,this[_0x5894e8(0x9e)](_0x5894e8(0x9c),!0x1),this[_0x5894e8(0x9e)](_0x5894e8(0x9b),!0x1),this[_0x5894e8(0xaf)]=this[_0x5894e8(0x92)](),this[_0x5894e8(0xa8)]=new _0x46a451(),this[_0x5894e8(0x96)]=new _0x2570d3({'id':_0x5894e8(0xbd),'initialContent':_0x21e294(_0x3aacf8,_0x5894e8(0x82)),'level':_0x5894e8(0xa7)}),this[_0x5894e8(0x96)][_0x5894e8(0xae)]=!0x1,this[_0x5894e8(0x7f)]=new _0xfb128e(_0x3aacf8,_0x22b99a[_0x5894e8(0xbf)],this[_0x5894e8(0xb7)]),this[_0x5894e8(0x7f)][_0x5894e8(0xaa)](_0x5894e8(0x9b))['to'](this),this[_0x5894e8(0xc1)]=new _0xe0fd5f(this[_0x5894e8(0x8d)],_0x22b99a[_0x5894e8(0x95)]),_0x22b99a[_0x5894e8(0xbe)]?this[_0x5894e8(0x7f)][_0x5894e8(0xb2)]=!0x1:this[_0x5894e8(0x7f)][_0x5894e8(0xaa)](_0x5894e8(0xb2))['to'](this,_0x5894e8(0x9c)),this[_0x5894e8(0x7f)][_0x5894e8(0x90)](..._0x37907c)['to'](this),this[_0x5894e8(0xc0)]({'tag':_0x5894e8(0x7e),'attributes':{'class':['ck',_0x5894e8(0xb0)]},'children':[{'tag':_0x5894e8(0x7e),'attributes':{'class':['ck',_0x5894e8(0xa5)]},'children':this[_0x5894e8(0xaf)]},this[_0x5894e8(0x96)],this[_0x5894e8(0x7f)],this[_0x5894e8(0xc1)]]});}get[_0x23142d(0x9a)](){const _0x30a3e6=_0x23142d;return this[_0x30a3e6(0xaf)][_0x30a3e6(0x84)];}async[_0x23142d(0xbc)]({parts:_0x26f693,renderingStrategy:_0x4ddce5,abortSignal:_0x21628a}){const _0x30cb1b=_0x23142d;this[_0x30cb1b(0xaf)][_0x30cb1b(0x84)]?_0x26f693[_0x30cb1b(0x86)](_0x510154=>{const _0x2f65c2=_0x30cb1b,_0x115bd9=this[_0x2f65c2(0xb3)][_0x2f65c2(0x8b)](_0x1804f2=>_0x1804f2[_0x2f65c2(0xac)]==_0x510154[_0x2f65c2(0xac)]);-0x1===_0x115bd9?this[_0x2f65c2(0xb3)][_0x2f65c2(0x85)](_0x510154):this[_0x2f65c2(0xb3)][_0x115bd9]=_0x510154;}):this[_0x30cb1b(0xb3)]=_0x26f693;const _0x182ed2=this[_0x30cb1b(0x8a)]?_0x26f693:_0x26f693[_0x30cb1b(0xb6)](_0x446730=>_0x446730[_0x30cb1b(0xc2)]);this[_0x30cb1b(0x7f)][_0x30cb1b(0x99)](_0x182ed2[_0x30cb1b(0x84)]>0x1);for(const _0x1420ec of _0x182ed2)this[_0x30cb1b(0xa8)][_0x30cb1b(0x91)](async _0x435d98=>{const _0x51f3e5=_0x30cb1b;let _0x2217f3=this[_0x51f3e5(0xc3)](_0x1420ec[_0x51f3e5(0xac)]);_0x2217f3||(_0x2217f3=new _0x4626c8(this[_0x51f3e5(0x8d)],{'part':_0x1420ec,'uiIndex':this[_0x51f3e5(0xaf)][_0x51f3e5(0x84)]+0x1,'areActionsDisabled':this[_0x51f3e5(0xb7)],'availableActions':this[_0x51f3e5(0xb5)]}),_0x2217f3[_0x51f3e5(0x90)](..._0x37907c)['to'](this),this[_0x51f3e5(0xaf)][_0x51f3e5(0xa0)](_0x2217f3),this[_0x51f3e5(0x9c)]=!0x0),await _0x2217f3[_0x51f3e5(0x83)]({'part':_0x1420ec,'renderingStrategy':_0x4ddce5,'showUnchangedParts':this[_0x51f3e5(0x8a)],'abortSignal':_0x435d98}),_0x2217f3[_0x51f3e5(0xb4)]();});return _0x21628a?.[_0x30cb1b(0x8e)](_0x30cb1b(0x89),()=>{const _0x23a564=_0x30cb1b;this[_0x23a564(0xa8)][_0x23a564(0x89)]();}),this[_0x30cb1b(0xa8)][_0x30cb1b(0x81)];}[_0x23142d(0xa6)](_0x18a218,_0x1dbb74){const _0x43f68b=_0x23142d,_0x571528=this[_0x43f68b(0xc3)](_0x18a218);_0x571528&&(_0x571528[_0x43f68b(0x80)]=_0x1dbb74),this[_0x43f68b(0x9c)]=_0x43f68b(0xb8)==_0x1dbb74||Array[_0x43f68b(0xa3)](this[_0x43f68b(0xaf)])[_0x43f68b(0x94)](_0xd5f230=>_0x43f68b(0xb8)==_0xd5f230[_0x43f68b(0x80)]);}[_0x23142d(0xbb)](_0x5d490b,_0x23221e){const _0x4013aa=_0x23142d;if(!0x1===_0x5d490b){for(const _0xe57667 of this[_0x4013aa(0xaf)])_0xe57667[_0x4013aa(0x8f)]=!0x1;}else{const _0x301dfd=this[_0x4013aa(0xc3)](_0x5d490b);_0x301dfd&&(_0x301dfd[_0x4013aa(0x8f)]=_0x23221e);}}[_0x23142d(0x93)](_0x43574f){const _0x2006b5=_0x23142d;_0x43574f[_0x2006b5(0x86)](_0x16deb6=>this[_0x2006b5(0xc1)][_0x2006b5(0x9d)](_0x16deb6)),this[_0x2006b5(0xc1)][_0x2006b5(0xae)]=!0x0;}[_0x23142d(0xc3)](_0x548d46){const _0x2b1266=_0x23142d;return this[_0x2b1266(0xaf)][_0x2b1266(0x98)](_0x382fd7=>_0x382fd7[_0x2b1266(0xab)][_0x2b1266(0xac)]==_0x548d46)??null;}[_0x23142d(0xb4)](){const _0x4f558f=_0x23142d;if(!this[_0x4f558f(0x8a)]){const _0x364ebd=!this[_0x4f558f(0xb3)][_0x4f558f(0x98)](({hasChanges:_0x59601b})=>_0x59601b),_0x49025e=!!this[_0x4f558f(0xb3)][_0x4f558f(0x98)](({hasChanges:_0xbe84bb})=>!_0xbe84bb);this[_0x4f558f(0x96)][_0x4f558f(0xae)]=0x0==this[_0x4f558f(0xaf)][_0x4f558f(0x84)]||_0x49025e,_0x364ebd?this[_0x4f558f(0x96)][_0x4f558f(0xad)](_0x21e294(this[_0x4f558f(0x8d)],_0x4f558f(0xa2))):this[_0x4f558f(0x96)][_0x4f558f(0xad)](_0x21e294(this[_0x4f558f(0x8d)],_0x4f558f(0x82)));}this[_0x4f558f(0xaf)][_0x4f558f(0x86)](_0x122dcd=>_0x122dcd[_0x4f558f(0xb4)]()),this[_0x4f558f(0x7f)][_0x4f558f(0xba)](this[_0x4f558f(0x8c)]);}get[_0x23142d(0x8c)](){const _0x147ca1=_0x23142d;return this[_0x147ca1(0xaf)][_0x147ca1(0xb6)](_0x5d7a76=>_0x5d7a76[_0x147ca1(0xab)][_0x147ca1(0xc2)])[_0x147ca1(0x84)]>0x0;}}
23
+ function _0x4c36(){const _0xc526e0=['80KOOtOn','updatePartState','partDefinition','_children','10FUQyrJ','ck-ai-suggestion__body__content-parts','_actionsView','createCollection','updateSources','_showUnchangedParts','_updateContentPartsPromiseQueue','81739bJdIqf','158101hChwCe','updateContent','empty-parts-warning','filter','setPartActive','from','forEach','isVisible','findIndex','availableActions','updateContentParts','hasPendingParts','_sourcesView','queueEmptyPromise','pending','partsCount','markAsDone','addEventListener','bind','delegate','push','AI_SUGGESTION_EMPTY_PART_WARNING','enqueue','531705cwQWcm','isActive','set','_areActionsDisabled','_availableActions','bodyCollection','setContent','hasChanges','index','_switchButtonLabelsPlurality','AI_SUGGESTION_NO_PARTS_WARNING','59338SzAFos','_emptyPartsWarningView','174975AapgDd','hasNonEmptyParts','some','824679oHXHPG','12DqpbWw','areActionsDisabled','87040EhzdAF','_cachedContentParts','setTemplate','warning','add','updateVisibility','abort','addSource','ck-ai-suggestion__body','length','isEnabled','state','locale','div','getPartView','find','isTrackChangesOn'];_0x4c36=function(){return _0xc526e0;};return _0x4c36();}function _0xcd2a(_0x7a865c,_0xc65508){const _0x4c36af=_0x4c36();return _0xcd2a=function(_0xcd2a43,_0x8724a9){_0xcd2a43=_0xcd2a43-0x1c0;let _0x432376=_0x4c36af[_0xcd2a43];return _0x432376;},_0xcd2a(_0x7a865c,_0xc65508);}const _0x10d172=_0xcd2a;(function(_0x2805e2,_0x45b4de){const _0x4e5e7b=_0xcd2a,_0x5e5ea1=_0x2805e2();while(!![]){try{const _0x39331e=-parseInt(_0x4e5e7b(0x1de))/0x1+-parseInt(_0x4e5e7b(0x200))/0x2+parseInt(_0x4e5e7b(0x1f5))/0x3+-parseInt(_0x4e5e7b(0x1c1))/0x4+parseInt(_0x4e5e7b(0x202))/0x5*(-parseInt(_0x4e5e7b(0x206))/0x6)+parseInt(_0x4e5e7b(0x1dd))/0x7*(parseInt(_0x4e5e7b(0x1d2))/0x8)+parseInt(_0x4e5e7b(0x205))/0x9*(parseInt(_0x4e5e7b(0x1d6))/0xa);if(_0x39331e===_0x45b4de)break;else _0x5e5ea1['push'](_0x5e5ea1['shift']());}catch(_0x595ef0){_0x5e5ea1['push'](_0x5e5ea1['shift']());}}}(_0x4c36,0x19e84));import{View as _0x48d1fb}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x65bcd4}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3b3881}from'../../utils/eventnames.js';import{PromiseQueue as _0x348ecf}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x5aab5d}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4c2278}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x16400c}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1aa12e}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x48d1fb{[_0x10d172(0x1d8)];[_0x10d172(0x1ea)];[_0x10d172(0x1d5)];[_0x10d172(0x1f8)];[_0x10d172(0x1db)];[_0x10d172(0x1dc)];[_0x10d172(0x201)];[_0x10d172(0x1f9)];[_0x10d172(0x1c2)]=[];constructor(_0x1f9c06,_0x28f767){const _0x1a2f10=_0x10d172;super(_0x1f9c06);const {areActionsDisabled:_0x351859,showUnchangedParts:_0x3f752f,availableActions:_0x14e83f}=_0x28f767;this[_0x1a2f10(0x1f8)]=_0x351859,this[_0x1a2f10(0x1db)]=_0x3f752f,this[_0x1a2f10(0x1f9)]=_0x14e83f,this[_0x1a2f10(0x1f7)](_0x1a2f10(0x1e9),!0x1),this[_0x1a2f10(0x1f7)](_0x1a2f10(0x1d1),!0x1),this[_0x1a2f10(0x1d5)]=this[_0x1a2f10(0x1d9)](),this[_0x1a2f10(0x1dc)]=new _0x348ecf(),this[_0x1a2f10(0x201)]=new _0x5aab5d({'id':_0x1a2f10(0x1e0),'initialContent':_0x4c2278(_0x1f9c06,_0x1a2f10(0x1f3)),'level':_0x1a2f10(0x1c4)}),this[_0x1a2f10(0x201)][_0x1a2f10(0x1e5)]=!0x1,this[_0x1a2f10(0x1d8)]=new _0x16400c(_0x1f9c06,_0x28f767[_0x1a2f10(0x1e7)],this[_0x1a2f10(0x1f8)]),this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f0)](_0x1a2f10(0x1d1))['to'](this),this[_0x1a2f10(0x1ea)]=new _0x1aa12e(this[_0x1a2f10(0x1cd)],_0x28f767[_0x1a2f10(0x1fa)]),_0x28f767[_0x1a2f10(0x1c0)]?this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1cb)]=!0x1:this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f0)](_0x1a2f10(0x1cb))['to'](this,_0x1a2f10(0x1e9)),this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f1)](..._0x3b3881)['to'](this),this[_0x1a2f10(0x1c3)]({'tag':_0x1a2f10(0x1ce),'attributes':{'class':['ck',_0x1a2f10(0x1c9)]},'children':[{'tag':_0x1a2f10(0x1ce),'attributes':{'class':['ck',_0x1a2f10(0x1d7)]},'children':this[_0x1a2f10(0x1d5)]},this[_0x1a2f10(0x201)],this[_0x1a2f10(0x1d8)],this[_0x1a2f10(0x1ea)]]});}get[_0x10d172(0x1ed)](){const _0x582b60=_0x10d172;return this[_0x582b60(0x1d5)][_0x582b60(0x1ca)];}async[_0x10d172(0x1e8)]({parts:_0x3b7acd,renderingStrategy:_0x3a6ad9,abortSignal:_0x117688}){const _0x2a0410=_0x10d172;this[_0x2a0410(0x1d5)][_0x2a0410(0x1ca)]?_0x3b7acd[_0x2a0410(0x1e4)](_0x202259=>{const _0x4b1c27=_0x2a0410,_0x3a6e58=this[_0x4b1c27(0x1c2)][_0x4b1c27(0x1e6)](_0x462b77=>_0x462b77[_0x4b1c27(0x1fd)]==_0x202259[_0x4b1c27(0x1fd)]);-0x1===_0x3a6e58?this[_0x4b1c27(0x1c2)][_0x4b1c27(0x1f2)](_0x202259):this[_0x4b1c27(0x1c2)][_0x3a6e58]=_0x202259;}):this[_0x2a0410(0x1c2)]=_0x3b7acd;const _0x1c6a09=this[_0x2a0410(0x1db)]?_0x3b7acd:_0x3b7acd[_0x2a0410(0x1e1)](_0x5a4889=>_0x5a4889[_0x2a0410(0x1fc)]);this[_0x2a0410(0x1d8)][_0x2a0410(0x1fe)](_0x1c6a09[_0x2a0410(0x1ca)]>0x1);for(const _0x5601 of _0x1c6a09)this[_0x2a0410(0x1dc)][_0x2a0410(0x1f4)](async _0x55b080=>{const _0x27252f=_0x2a0410;let _0x290676=this[_0x27252f(0x1cf)](_0x5601[_0x27252f(0x1fd)]);_0x290676||(_0x290676=new _0x65bcd4(this[_0x27252f(0x1cd)],{'part':_0x5601,'uiIndex':this[_0x27252f(0x1d5)][_0x27252f(0x1ca)]+0x1,'areActionsDisabled':this[_0x27252f(0x1f8)],'availableActions':this[_0x27252f(0x1f9)]}),_0x290676[_0x27252f(0x1f1)](..._0x3b3881)['to'](this),this[_0x27252f(0x1d5)][_0x27252f(0x1c5)](_0x290676),this[_0x27252f(0x1e9)]=!0x0),await _0x290676[_0x27252f(0x1df)]({'part':_0x5601,'renderingStrategy':_0x3a6ad9,'showUnchangedParts':this[_0x27252f(0x1db)],'abortSignal':_0x55b080}),_0x290676[_0x27252f(0x1ee)]();});return _0x117688?.[_0x2a0410(0x1ef)](_0x2a0410(0x1c7),()=>{const _0x1a87f8=_0x2a0410;this[_0x1a87f8(0x1dc)][_0x1a87f8(0x1c7)]();}),this[_0x2a0410(0x1dc)][_0x2a0410(0x1eb)];}[_0x10d172(0x1d3)](_0x358bad,_0x432ce3){const _0x463b08=_0x10d172,_0x5031c2=this[_0x463b08(0x1cf)](_0x358bad);_0x5031c2&&(_0x5031c2[_0x463b08(0x1cc)]=_0x432ce3),this[_0x463b08(0x1e9)]=_0x463b08(0x1ec)==_0x432ce3||Array[_0x463b08(0x1e3)](this[_0x463b08(0x1d5)])[_0x463b08(0x204)](_0x2aa755=>_0x463b08(0x1ec)==_0x2aa755[_0x463b08(0x1cc)]);}[_0x10d172(0x1e2)](_0x1cfca4,_0x59f79b){const _0x4e2eb5=_0x10d172;if(!0x1===_0x1cfca4){for(const _0x1de707 of this[_0x4e2eb5(0x1d5)])_0x1de707[_0x4e2eb5(0x1f6)]=!0x1;}else{const _0x2bf4cf=this[_0x4e2eb5(0x1cf)](_0x1cfca4);_0x2bf4cf&&(_0x2bf4cf[_0x4e2eb5(0x1f6)]=_0x59f79b);}}[_0x10d172(0x1da)](_0x3ad3d){const _0x45e128=_0x10d172;_0x3ad3d[_0x45e128(0x1e4)](_0x5a7dcb=>this[_0x45e128(0x1ea)][_0x45e128(0x1c8)](_0x5a7dcb)),this[_0x45e128(0x1ea)][_0x45e128(0x1e5)]=!0x0;}[_0x10d172(0x1cf)](_0x183900){const _0x4afeac=_0x10d172;return this[_0x4afeac(0x1d5)][_0x4afeac(0x1d0)](_0x2115bb=>_0x2115bb[_0x4afeac(0x1d4)][_0x4afeac(0x1fd)]==_0x183900)??null;}[_0x10d172(0x1ee)](){const _0x4e6e06=_0x10d172;if(!this[_0x4e6e06(0x1db)]){const _0x90ed1b=!this[_0x4e6e06(0x1c2)][_0x4e6e06(0x1d0)](({hasChanges:_0x289f2d})=>_0x289f2d),_0x1c7632=!!this[_0x4e6e06(0x1c2)][_0x4e6e06(0x1d0)](({hasChanges:_0xd7a2d9})=>!_0xd7a2d9);this[_0x4e6e06(0x201)][_0x4e6e06(0x1e5)]=0x0==this[_0x4e6e06(0x1d5)][_0x4e6e06(0x1ca)]||_0x1c7632,_0x90ed1b?this[_0x4e6e06(0x201)][_0x4e6e06(0x1fb)](_0x4c2278(this[_0x4e6e06(0x1cd)],_0x4e6e06(0x1ff))):this[_0x4e6e06(0x201)][_0x4e6e06(0x1fb)](_0x4c2278(this[_0x4e6e06(0x1cd)],_0x4e6e06(0x1f3)));}this[_0x4e6e06(0x1d5)][_0x4e6e06(0x1e4)](_0x1e3c49=>_0x1e3c49[_0x4e6e06(0x1ee)]()),this[_0x4e6e06(0x1d8)][_0x4e6e06(0x1c6)](this[_0x4e6e06(0x203)]);}get[_0x10d172(0x203)](){const _0x639507=_0x10d172;return this[_0x639507(0x1d5)][_0x639507(0x1e1)](_0x179c60=>_0x179c60[_0x639507(0x1d4)][_0x639507(0x1fc)])[_0x639507(0x1ca)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52f5ab=_0x4b60;(function(_0x23bb33,_0x454795){const _0x5cfa85=_0x4b60,_0x1aef43=_0x23bb33();while(!![]){try{const _0xa4f6eb=-parseInt(_0x5cfa85(0x1b1))/0x1*(-parseInt(_0x5cfa85(0x1d2))/0x2)+-parseInt(_0x5cfa85(0x1b3))/0x3*(-parseInt(_0x5cfa85(0x1c9))/0x4)+-parseInt(_0x5cfa85(0x1d3))/0x5*(parseInt(_0x5cfa85(0x1b2))/0x6)+-parseInt(_0x5cfa85(0x1bc))/0x7*(parseInt(_0x5cfa85(0x1b4))/0x8)+-parseInt(_0x5cfa85(0x1c3))/0x9*(parseInt(_0x5cfa85(0x1bb))/0xa)+parseInt(_0x5cfa85(0x1c5))/0xb+-parseInt(_0x5cfa85(0x1be))/0xc*(-parseInt(_0x5cfa85(0x1ba))/0xd);if(_0xa4f6eb===_0x454795)break;else _0x1aef43['push'](_0x1aef43['shift']());}catch(_0x302a94){_0x1aef43['push'](_0x1aef43['shift']());}}}(_0x547b,0xa980f));function _0x4b60(_0x5565f6,_0x92e144){const _0x547b20=_0x547b();return _0x4b60=function(_0x4b6096,_0x2fb6a1){_0x4b6096=_0x4b6096-0x1b1;let _0x4e2eca=_0x547b20[_0x4b6096];return _0x4e2eca;},_0x4b60(_0x5565f6,_0x92e144);}import{View as _0x5b7987}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x229fbe}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0xea5e3e}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x88b47}from'../../utils/eventnames.js';function _0x547b(){const _0x155b38=['isOn','updateContentParts','bind','ck-rounded-corners','2pTEwjj','68025mhkZXH','ck-ai-suggestion__container','children','981473sMyfuU','498LLvaci','2391kJUOGR','828680QYZfIk','delegate','set','fire','div','bodyView','1963pJtjYV','3649230movWQf','7LYKBwL','headerView','87540eTxeyo','toggleSuggestionDisplayMode','isShowChangesToggleVisible','toggleShowChanges','updateContent','9nIkDlB','hasNonEmptyParts','1886863neKZjV','add','createCollection','areChangesVisible','188NcCVEo','updateSources','markAsDone','isTrackChangesOn','setTemplate'];_0x547b=function(){return _0x155b38;};return _0x547b();}import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x5b7987{[_0x52f5ab(0x1b9)];[_0x52f5ab(0x1d5)];[_0x52f5ab(0x1bd)];constructor(_0x163349,_0x59397b,_0x314ceb){const _0xfb13ee=_0x52f5ab;super(_0x163349);const {showDiff:_0x570d62,areActionsDisabled:_0x179cbe,showUnchangedParts:_0x406937,availableActions:_0x47f1b7}=_0x59397b;this[_0xfb13ee(0x1b6)](_0xfb13ee(0x1cc),!0x1),this[_0xfb13ee(0x1b6)](_0xfb13ee(0x1c8),!0x1),this[_0xfb13ee(0x1d5)]=this[_0xfb13ee(0x1c7)](),this[_0xfb13ee(0x1bd)]=new _0x229fbe(_0x163349,{'showDiff':_0x570d62}),this[_0xfb13ee(0x1bd)]['on'](_0xfb13ee(0x1c1),(_0x540a63,_0x387794)=>{const _0x10fa1f=_0xfb13ee;this[_0x10fa1f(0x1c8)]=_0x387794[_0x10fa1f(0x1ce)],this[_0x10fa1f(0x1b7)](_0x10fa1f(0x1bf),{'showDiff':_0x387794[_0x10fa1f(0x1ce)]});}),this[_0xfb13ee(0x1d5)][_0xfb13ee(0x1c6)](this[_0xfb13ee(0x1bd)]),this[_0xfb13ee(0x1b9)]=new _0xea5e3e(_0x163349,{'areActionsDisabled':_0x179cbe,'showUnchangedParts':!!_0x406937,'availableActions':_0x47f1b7,'bodyCollection':_0x314ceb}),this[_0xfb13ee(0x1b9)][_0xfb13ee(0x1b5)](..._0x88b47)['to'](this),this[_0xfb13ee(0x1b9)][_0xfb13ee(0x1d0)](_0xfb13ee(0x1cc))['to'](this),this[_0xfb13ee(0x1d5)][_0xfb13ee(0x1c6)](this[_0xfb13ee(0x1b9)]),this[_0xfb13ee(0x1cd)]({'tag':_0xfb13ee(0x1b8),'attributes':{'class':['ck',_0xfb13ee(0x1d4),_0xfb13ee(0x1d1)]},'children':this[_0xfb13ee(0x1d5)]});}async[_0x52f5ab(0x1c2)](_0x1da433){const _0x3924dd=_0x52f5ab;await this[_0x3924dd(0x1b9)][_0x3924dd(0x1cf)](_0x1da433);}[_0x52f5ab(0x1ca)](_0x218eda){const _0x503ec8=_0x52f5ab;this[_0x503ec8(0x1b9)][_0x503ec8(0x1ca)](_0x218eda);}[_0x52f5ab(0x1cb)](){const _0x44a282=_0x52f5ab;this[_0x44a282(0x1b9)][_0x44a282(0x1cb)](),this[_0x44a282(0x1bd)]&&(this[_0x44a282(0x1bd)][_0x44a282(0x1c0)]=this[_0x44a282(0x1b9)][_0x44a282(0x1c4)]);}}
23
+ const _0x43cf04=_0xdd00;(function(_0x30c689,_0x3a8d18){const _0x2e3125=_0xdd00,_0x59cebc=_0x30c689();while(!![]){try{const _0x21882c=parseInt(_0x2e3125(0x76))/0x1*(-parseInt(_0x2e3125(0x95))/0x2)+parseInt(_0x2e3125(0x7e))/0x3+parseInt(_0x2e3125(0x89))/0x4*(parseInt(_0x2e3125(0x85))/0x5)+-parseInt(_0x2e3125(0x90))/0x6*(-parseInt(_0x2e3125(0x7c))/0x7)+parseInt(_0x2e3125(0x86))/0x8*(-parseInt(_0x2e3125(0x87))/0x9)+parseInt(_0x2e3125(0x96))/0xa+parseInt(_0x2e3125(0x82))/0xb*(-parseInt(_0x2e3125(0x8b))/0xc);if(_0x21882c===_0x3a8d18)break;else _0x59cebc['push'](_0x59cebc['shift']());}catch(_0x4df21e){_0x59cebc['push'](_0x59cebc['shift']());}}}(_0x4107,0xd6cf5));import{View as _0xc2a70e}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x83565b}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4ad58b}from'./aisuggestionbodyview.js';function _0xdd00(_0x418636,_0x363f16){const _0x41073f=_0x4107();return _0xdd00=function(_0xdd007b,_0x55c3bf){_0xdd007b=_0xdd007b-0x75;let _0x62cf27=_0x41073f[_0xdd007b];return _0x62cf27;},_0xdd00(_0x418636,_0x363f16);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x19ba3f}from'../../utils/eventnames.js';function _0x4107(){const _0x213014=['978612fZhfAh','3369570epHCNe','toggleShowChanges','updateContent','children','1EAvmNl','setTemplate','hasNonEmptyParts','div','bodyView','headerView','39011gfTKXF','toggleSuggestionDisplayMode','5106396dSxswB','createCollection','add','updateContentParts','121NRWIDy','bind','fire','2805BOOdJG','9291832DodxEk','9tctAlE','markAsDone','4788mHjZAN','set','1333212TucKAN','areChangesVisible','ck-ai-suggestion__container','isOn','isShowChangesToggleVisible','1122ZZUBXj','ck-rounded-corners','delegate','updateSources','isTrackChangesOn'];_0x4107=function(){return _0x213014;};return _0x4107();}import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0xc2a70e{[_0x43cf04(0x7a)];[_0x43cf04(0x75)];[_0x43cf04(0x7b)];constructor(_0xef6adb,_0x157d1b,_0x2e4de3){const _0x5ead11=_0x43cf04;super(_0xef6adb);const {showDiff:_0x52fe8b,areActionsDisabled:_0x3a892d,showUnchangedParts:_0x43910b,availableActions:_0x49d221}=_0x157d1b;this[_0x5ead11(0x8a)](_0x5ead11(0x94),!0x1),this[_0x5ead11(0x8a)](_0x5ead11(0x8c),!0x1),this[_0x5ead11(0x75)]=this[_0x5ead11(0x7f)](),this[_0x5ead11(0x7b)]=new _0x83565b(_0xef6adb,{'showDiff':_0x52fe8b}),this[_0x5ead11(0x7b)]['on'](_0x5ead11(0x97),(_0x4388dd,_0x1ae556)=>{const _0x56630d=_0x5ead11;this[_0x56630d(0x8c)]=_0x1ae556[_0x56630d(0x8e)],this[_0x56630d(0x84)](_0x56630d(0x7d),{'showDiff':_0x1ae556[_0x56630d(0x8e)]});}),this[_0x5ead11(0x75)][_0x5ead11(0x80)](this[_0x5ead11(0x7b)]),this[_0x5ead11(0x7a)]=new _0x4ad58b(_0xef6adb,{'areActionsDisabled':_0x3a892d,'showUnchangedParts':!!_0x43910b,'availableActions':_0x49d221,'bodyCollection':_0x2e4de3}),this[_0x5ead11(0x7a)][_0x5ead11(0x92)](..._0x19ba3f)['to'](this),this[_0x5ead11(0x7a)][_0x5ead11(0x83)](_0x5ead11(0x94))['to'](this),this[_0x5ead11(0x75)][_0x5ead11(0x80)](this[_0x5ead11(0x7a)]),this[_0x5ead11(0x77)]({'tag':_0x5ead11(0x79),'attributes':{'class':['ck',_0x5ead11(0x8d),_0x5ead11(0x91)]},'children':this[_0x5ead11(0x75)]});}async[_0x43cf04(0x98)](_0x450dc7){const _0x2960ed=_0x43cf04;await this[_0x2960ed(0x7a)][_0x2960ed(0x81)](_0x450dc7);}[_0x43cf04(0x93)](_0x22265c){const _0x4facd6=_0x43cf04;this[_0x4facd6(0x7a)][_0x4facd6(0x93)](_0x22265c);}[_0x43cf04(0x88)](){const _0x2bdd86=_0x43cf04;this[_0x2bdd86(0x7a)][_0x2bdd86(0x88)](),this[_0x2bdd86(0x7b)]&&(this[_0x2bdd86(0x7b)][_0x2bdd86(0x8f)]=this[_0x2bdd86(0x7a)][_0x2bdd86(0x78)]);}}