@ckeditor/ckeditor5-ai 47.5.0-alpha.7 → 47.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) 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/aicore/aiconnector.d.ts +5 -2
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.d.ts +4 -2
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  245. package/src/aicore/utils/common-translations.js +1 -1
  246. package/src/aicore/utils/createresizebutton.js +1 -1
  247. package/src/aicore/utils/documentposition.js +1 -1
  248. package/src/aicore/utils/documentrange.js +1 -1
  249. package/src/aicore/utils/eventnames.js +1 -1
  250. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  251. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  252. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  253. package/src/aicore/utils/htmlparser.js +1 -1
  254. package/src/aicore/utils/htmlstreamer.js +1 -1
  255. package/src/aicore/utils/scrollmanager.js +1 -1
  256. package/src/aieditorintegration/aieditorintegration.js +1 -1
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  259. package/src/aiquickactions/aiquickactions.js +1 -1
  260. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  261. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  262. package/src/aiquickactions/aiquickactionsui.js +1 -1
  263. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  267. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  270. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  271. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  272. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  273. package/src/aireviewcore/aireviewcoreui.js +1 -1
  274. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  275. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  280. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  291. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  293. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  294. package/src/aireviewmode/aireviewmode.js +1 -1
  295. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  296. package/src/aireviewmode/aireviewmodeui.js +1 -1
  297. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  298. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  299. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  300. package/src/aitabs/aitabs.js +1 -1
  301. package/src/aitabs/aitabsmainview.js +1 -1
  302. package/src/aitabs/tabs/aitabsview.js +1 -1
  303. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  304. package/src/aitabs/tabs/tabpanelview.js +1 -1
  305. package/src/aitranslate/aitranslate.js +1 -1
  306. package/src/aitranslate/aitranslatecontroller.js +1 -1
  307. package/src/aitranslate/aitranslateui.js +1 -1
  308. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  309. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  310. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  311. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  312. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  313. package/src/errors.js +1 -1
  314. package/src/errorsmap.js +1 -1
  315. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2fbf(_0x38f633,_0x5ee2a7){const _0x1f0601=_0x1f06();return _0x2fbf=function(_0x2fbfc1,_0x129a47){_0x2fbfc1=_0x2fbfc1-0x132;let _0xadc914=_0x1f0601[_0x2fbfc1];return _0xadc914;},_0x2fbf(_0x38f633,_0x5ee2a7);}function _0x1f06(){const _0x1dccba=['toggleReasoning','14372688uSoaxI','fire','webSearch','capabilitiesUpdated','reasoning','init','isWebSearchEnabled','3150750INQKWd','_isWebSearchEnabled','toggleWebSearch','setWebSearch','8oTDXSM','isReasoningEnabled','3fHGBlQ','233106dENtWY','2819836MePFQY','getCapabilitiesRequestData','390838sSuJTp','setReasoning','32UaEDbl','reset','11532nlGnuZ','_isReasoningEnabled','8576028IFhGMm','50pAuatH','getCapabilitiesConfig'];_0x1f06=function(){return _0x1dccba;};return _0x1f06();}const _0x3fa688=_0x2fbf;(function(_0x535869,_0x24eb59){const _0x2a09df=_0x2fbf,_0x194915=_0x535869();while(!![]){try{const _0x12bd3e=parseInt(_0x2a09df(0x13c))/0x1*(parseInt(_0x2a09df(0x13a))/0x2)+-parseInt(_0x2a09df(0x134))/0x3*(parseInt(_0x2a09df(0x136))/0x4)+-parseInt(_0x2a09df(0x13f))/0x5*(-parseInt(_0x2a09df(0x135))/0x6)+-parseInt(_0x2a09df(0x138))/0x7+-parseInt(_0x2a09df(0x132))/0x8*(parseInt(_0x2a09df(0x13e))/0x9)+parseInt(_0x2a09df(0x149))/0xa+parseInt(_0x2a09df(0x142))/0xb;if(_0x12bd3e===_0x24eb59)break;else _0x194915['push'](_0x194915['shift']());}catch(_0x253375){_0x194915['push'](_0x194915['shift']());}}}(_0x1f06,0x756fc));import{EmitterMixin as _0x9e2a}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3fa688(0x145)];export class AICapabilities extends _0x9e2a(){[_0x3fa688(0x14a)];[_0x3fa688(0x13d)];constructor(){const _0x16980f=_0x3fa688;super(),this[_0x16980f(0x14a)]=!0x1,this[_0x16980f(0x13d)]=!0x1;}[_0x3fa688(0x147)](){const _0x417171=_0x3fa688;this[_0x417171(0x13b)]();}[_0x3fa688(0x13b)](){const _0x301340=_0x3fa688;this[_0x301340(0x14c)](!0x1),this[_0x301340(0x139)](!0x1);}[_0x3fa688(0x140)](){const _0x12d2b3=_0x3fa688;return{'isWebSearchEnabled':this[_0x12d2b3(0x14a)],'isReasoningEnabled':this[_0x12d2b3(0x13d)]};}static[_0x3fa688(0x137)](_0x1aa6af){const _0x187285=_0x3fa688,_0x17d186={};return _0x1aa6af&&_0x1aa6af[_0x187285(0x148)]&&(_0x17d186[_0x187285(0x144)]={}),_0x1aa6af&&_0x1aa6af[_0x187285(0x133)]&&(_0x17d186[_0x187285(0x146)]={}),_0x17d186;}[_0x3fa688(0x14b)](){const _0x2198a1=_0x3fa688;this[_0x2198a1(0x14c)](!this[_0x2198a1(0x14a)]);}[_0x3fa688(0x141)](){const _0x5051fe=_0x3fa688;this[_0x5051fe(0x139)](!this[_0x5051fe(0x13d)]);}[_0x3fa688(0x14c)](_0x5c597b){const _0x236762=_0x3fa688;_0x5c597b!==this[_0x236762(0x14a)]&&(this[_0x236762(0x14a)]=_0x5c597b,this[_0x236762(0x143)](_0x236762(0x145),this[_0x236762(0x140)]()));}[_0x3fa688(0x139)](_0x124af5){const _0x23daa9=_0x3fa688;_0x124af5!==this[_0x23daa9(0x13d)]&&(this[_0x23daa9(0x13d)]=_0x124af5,this[_0x23daa9(0x143)](_0x23daa9(0x145),this[_0x23daa9(0x140)]()));}}
23
+ const _0x5236d0=_0x5e69;(function(_0x1fad7e,_0x909749){const _0x19b41d=_0x5e69,_0x18885b=_0x1fad7e();while(!![]){try{const _0x3b972f=-parseInt(_0x19b41d(0x179))/0x1*(-parseInt(_0x19b41d(0x16e))/0x2)+parseInt(_0x19b41d(0x16c))/0x3+-parseInt(_0x19b41d(0x176))/0x4+-parseInt(_0x19b41d(0x168))/0x5+-parseInt(_0x19b41d(0x174))/0x6+-parseInt(_0x19b41d(0x16d))/0x7*(parseInt(_0x19b41d(0x167))/0x8)+parseInt(_0x19b41d(0x173))/0x9;if(_0x3b972f===_0x909749)break;else _0x18885b['push'](_0x18885b['shift']());}catch(_0x518399){_0x18885b['push'](_0x18885b['shift']());}}}(_0xab0f,0x2e59e));function _0x5e69(_0x3817e7,_0x1cb362){const _0xab0fa9=_0xab0f();return _0x5e69=function(_0x5e69a6,_0x15ff63){_0x5e69a6=_0x5e69a6-0x162;let _0x4e7321=_0xab0fa9[_0x5e69a6];return _0x4e7321;},_0x5e69(_0x3817e7,_0x1cb362);}import{EmitterMixin as _0xde1c8b}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5236d0(0x162)];export class AICapabilities extends _0xde1c8b(){[_0x5236d0(0x165)];[_0x5236d0(0x169)];constructor(){const _0x4904ad=_0x5236d0;super(),this[_0x4904ad(0x165)]=!0x1,this[_0x4904ad(0x169)]=!0x1;}[_0x5236d0(0x16b)](){const _0x45214b=_0x5236d0;this[_0x45214b(0x164)]();}[_0x5236d0(0x164)](){const _0x194a9f=_0x5236d0;this[_0x194a9f(0x166)](!0x1),this[_0x194a9f(0x172)](!0x1);}[_0x5236d0(0x16a)](){const _0x5f0c36=_0x5236d0;return{'isWebSearchEnabled':this[_0x5f0c36(0x165)],'isReasoningEnabled':this[_0x5f0c36(0x169)]};}static[_0x5236d0(0x177)](_0x3a4bc5){const _0x5ae304=_0x5236d0,_0x40345a={};return _0x3a4bc5&&_0x3a4bc5[_0x5ae304(0x175)]&&(_0x40345a[_0x5ae304(0x178)]={}),_0x3a4bc5&&_0x3a4bc5[_0x5ae304(0x171)]&&(_0x40345a[_0x5ae304(0x16f)]={}),_0x40345a;}[_0x5236d0(0x17a)](){const _0xa23a4a=_0x5236d0;this[_0xa23a4a(0x166)](!this[_0xa23a4a(0x165)]);}[_0x5236d0(0x170)](){const _0x4f147f=_0x5236d0;this[_0x4f147f(0x172)](!this[_0x4f147f(0x169)]);}[_0x5236d0(0x166)](_0x52c6f9){const _0x1d0dbd=_0x5236d0;_0x52c6f9!==this[_0x1d0dbd(0x165)]&&(this[_0x1d0dbd(0x165)]=_0x52c6f9,this[_0x1d0dbd(0x163)](_0x1d0dbd(0x162),this[_0x1d0dbd(0x16a)]()));}[_0x5236d0(0x172)](_0x2f1267){const _0x59cc85=_0x5236d0;_0x2f1267!==this[_0x59cc85(0x169)]&&(this[_0x59cc85(0x169)]=_0x2f1267,this[_0x59cc85(0x163)](_0x59cc85(0x162),this[_0x59cc85(0x16a)]()));}}function _0xab0f(){const _0x2469d3=['_isReasoningEnabled','getCapabilitiesConfig','init','290319IBuiaE','51429ulYYLL','2PPquWQ','reasoning','toggleReasoning','isReasoningEnabled','setReasoning','4840578NNqJBW','1327224HFYxyR','isWebSearchEnabled','295972SAhQps','getCapabilitiesRequestData','webSearch','265957PuMnjJ','toggleWebSearch','capabilitiesUpdated','fire','reset','_isWebSearchEnabled','setWebSearch','48NWfHuW','1857195HDoCnI'];_0xab0f=function(){return _0x2469d3;};return _0xab0f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xc95800,_0x59aee6){var _0x3d2fa6=_0x18fe,_0x439fbb=_0xc95800();while(!![]){try{var _0x1991e8=-parseInt(_0x3d2fa6(0x1e1))/0x1*(-parseInt(_0x3d2fa6(0x1d7))/0x2)+parseInt(_0x3d2fa6(0x1df))/0x3*(parseInt(_0x3d2fa6(0x1e2))/0x4)+-parseInt(_0x3d2fa6(0x1da))/0x5*(parseInt(_0x3d2fa6(0x1de))/0x6)+parseInt(_0x3d2fa6(0x1d3))/0x7+-parseInt(_0x3d2fa6(0x1dc))/0x8+parseInt(_0x3d2fa6(0x1e8))/0x9+parseInt(_0x3d2fa6(0x1d5))/0xa;if(_0x1991e8===_0x59aee6)break;else _0x439fbb['push'](_0x439fbb['shift']());}catch(_0x273964){_0x439fbb['push'](_0x439fbb['shift']());}}}(_0x267f,0x766b7));function _0x267f(){var _0x2717=['text','markdown','2485836gtiePy','web-resource','HTML','FILE','URL','4606630GduTHp','SELECTION','512450fJFnTF','TOOL','4wYGsYD','TEXT','MARKDOWN','5phlSmW','file','2744488GmbWOT','mcp-tool-context','5124792WpizMN','824133pCZcGS','DOCUMENT','210995wKMknb','4eSxMnm','selection','document','html'];_0x267f=function(){return _0x2717;};return _0x267f();}export var AIContextItemType;function _0x18fe(_0x5e19b4,_0x2aa520){var _0x267fe4=_0x267f();return _0x18fe=function(_0x18fe74,_0x2125bc){_0x18fe74=_0x18fe74-0x1d3;var _0x31927d=_0x267fe4[_0x18fe74];return _0x31927d;},_0x18fe(_0x5e19b4,_0x2aa520);}!function(_0x23fd49){var _0x4ebb7c=_0x18fe;_0x23fd49[_0x4ebb7c(0x1d6)]=_0x4ebb7c(0x1dd),_0x23fd49[_0x4ebb7c(0x1eb)]=_0x4ebb7c(0x1db),_0x23fd49[_0x4ebb7c(0x1e0)]=_0x4ebb7c(0x1e4),_0x23fd49[_0x4ebb7c(0x1ec)]=_0x4ebb7c(0x1e9),_0x23fd49[_0x4ebb7c(0x1d8)]=_0x4ebb7c(0x1e6),_0x23fd49[_0x4ebb7c(0x1d4)]=_0x4ebb7c(0x1e3);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x2e71db){var _0x362388=_0x18fe;_0x2e71db[_0x362388(0x1d8)]=_0x362388(0x1e6),_0x2e71db[_0x362388(0x1d9)]=_0x362388(0x1e7),_0x2e71db[_0x362388(0x1ea)]=_0x362388(0x1e5);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ function _0x2f40(_0x34cd33,_0x3025d3){var _0x39b341=_0x39b3();return _0x2f40=function(_0x2f40e8,_0x422741){_0x2f40e8=_0x2f40e8-0xcf;var _0x3634b5=_0x39b341[_0x2f40e8];return _0x3634b5;},_0x2f40(_0x34cd33,_0x3025d3);}(function(_0x595a6e,_0x311343){var _0x47c170=_0x2f40,_0x57a90c=_0x595a6e();while(!![]){try{var _0x307f41=parseInt(_0x47c170(0xde))/0x1*(-parseInt(_0x47c170(0xe4))/0x2)+parseInt(_0x47c170(0xd5))/0x3+parseInt(_0x47c170(0xe3))/0x4+parseInt(_0x47c170(0xcf))/0x5+-parseInt(_0x47c170(0xd4))/0x6*(parseInt(_0x47c170(0xd8))/0x7)+parseInt(_0x47c170(0xdf))/0x8+-parseInt(_0x47c170(0xdc))/0x9;if(_0x307f41===_0x311343)break;else _0x57a90c['push'](_0x57a90c['shift']());}catch(_0x41c4dc){_0x57a90c['push'](_0x57a90c['shift']());}}}(_0x39b3,0xd1316));export var AIContextItemType;!function(_0x3e8366){var _0x50964c=_0x2f40;_0x3e8366[_0x50964c(0xda)]=_0x50964c(0xdb),_0x3e8366[_0x50964c(0xd7)]=_0x50964c(0xd0),_0x3e8366[_0x50964c(0xe5)]=_0x50964c(0xe7),_0x3e8366[_0x50964c(0xe2)]=_0x50964c(0xd9),_0x3e8366[_0x50964c(0xd3)]=_0x50964c(0xe0),_0x3e8366[_0x50964c(0xd6)]=_0x50964c(0xd2);}(AIContextItemType||(AIContextItemType={}));function _0x39b3(){var _0x53c1fd=['80284CXZfdJ','DOCUMENT','MARKDOWN','document','6003725oFsiQI','file','HTML','selection','TEXT','1662PUcJKy','4622430xCZvhD','SELECTION','FILE','40628oycrjm','web-resource','TOOL','mcp-tool-context','19078767JbbJcz','markdown','14tGLPUv','11787128lQbUxf','text','html','URL','3725868RNvWrn'];_0x39b3=function(){return _0x53c1fd;};return _0x39b3();}export var AIContextTextResourceType;!function(_0x24a52b){var _0x41df3b=_0x2f40;_0x24a52b[_0x41df3b(0xd3)]=_0x41df3b(0xe0),_0x24a52b[_0x41df3b(0xe6)]=_0x41df3b(0xdd),_0x24a52b[_0x41df3b(0xd1)]=_0x41df3b(0xe1);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -80,11 +80,13 @@ export type AIToolData = {
80
80
  *
81
81
  * Content depends on the AI tool implementation.
82
82
  */
83
- data: Record<string, any>;
83
+ data?: Record<string, any>;
84
84
  /**
85
- * Additional parameters returned by the tool. Available only if `type` is `'result'`.
85
+ * Additional parameters returned by the tool.
86
86
  *
87
87
  * Content depends on the AI tool implementation.
88
+ *
89
+ * Available only if `type` is `'result'`.
88
90
  */
89
91
  attributes?: Record<string, any>;
90
92
  };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ab733=_0x4b3f;(function(_0x5e5d12,_0x797448){const _0x162dd3=_0x4b3f,_0x15bec2=_0x5e5d12();while(!![]){try{const _0x398896=-parseInt(_0x162dd3(0x1ef))/0x1+-parseInt(_0x162dd3(0x1cd))/0x2*(-parseInt(_0x162dd3(0x1fb))/0x3)+parseInt(_0x162dd3(0x1f9))/0x4*(parseInt(_0x162dd3(0x203))/0x5)+-parseInt(_0x162dd3(0x219))/0x6+parseInt(_0x162dd3(0x1ec))/0x7+-parseInt(_0x162dd3(0x213))/0x8+parseInt(_0x162dd3(0x216))/0x9*(parseInt(_0x162dd3(0x1d2))/0xa);if(_0x398896===_0x797448)break;else _0x15bec2['push'](_0x15bec2['shift']());}catch(_0x368276){_0x15bec2['push'](_0x15bec2['shift']());}}}(_0x4c22,0x41691));import{CKEditorError as _0x4fec7,EmitterMixin as _0x416f35,uid as _0x9b55f1}from'ckeditor5/src/utils.js';function _0x4b3f(_0x5056c4,_0x32f166){const _0x4c2221=_0x4c22();return _0x4b3f=function(_0x4b3f95,_0xfdc3a7){_0x4b3f95=_0x4b3f95-0x1c5;let _0x4836d4=_0x4c2221[_0x4b3f95];return _0x4836d4;},_0x4b3f(_0x5056c4,_0x32f166);}import{AIReply as _0x1fb4b9}from'./aireply.js';function _0x4c22(){const _0x156402=['attributes','web-search','type','toolDataReceived','text','getDocumentContext','splice','sources','start','editor','abort','result','setConversationTitle','modification','textDelta','push','2237333GfsCKy','stopListening','resetReasoningState','296966tSoKFE','mcp-tool-result','action-metadata','text-delta','message-metadata','data','replyCreated','reasoning','toolName','currentReply','167836DTsQuT','interactionFinished','4506nVYHdf','find','reasoningStarted','isDestroyed','length','_finalizeInteraction','replies','callId','10UYpnAg','source','conversation-title','_isReasoning','fire','_handleToolResultData','forEach','error','webSearchFinished','getReply','currentRequest','interactionDestroyed','replyChangeGroupStateUpdated','resetWebSearchState','_handleToolNotificationData','mcp-tool-notification','2445304UPdxOW','connector','interactionStopped','369uapFAB','webSearchStarted','ai-chat-interaction-error','2029860hqUtQp','event','interactionCreated','done','conversationTitle','interactionStarted','createReply','appendContent','modification-delta','delegate','470GGDQLx','abortController','messageId','actionCallId','reasoningFinished','110330eBIjqk','isStopped','stop','replyContentUpdated','getStream','content','sendRequest','destroy','_isWebSearching','notification'];_0x4c22=function(){return _0x156402;};return _0x4c22();}export const AI_MODEL_EVENT_NAMES=[_0x4ab733(0x1c5),_0x4ab733(0x1c8),_0x4ab733(0x215),_0x4ab733(0x1fa),_0x4ab733(0x20e),_0x4ab733(0x1f5),_0x4ab733(0x1d5),_0x4ab733(0x20f),_0x4ab733(0x1e8),_0x4ab733(0x217),_0x4ab733(0x20b),_0x4ab733(0x1fd),_0x4ab733(0x1d1),_0x4ab733(0x1df),_0x4ab733(0x20a)];export class AIInteraction extends _0x416f35(){['id'];[_0x4ab733(0x201)]=[];[_0x4ab733(0x1f8)];[_0x4ab733(0x1cf)];[_0x4ab733(0x1d0)];[_0x4ab733(0x20d)];[_0x4ab733(0x214)];[_0x4ab733(0x1d3)]=!0x1;[_0x4ab733(0x1fe)]=!0x1;[_0x4ab733(0x1e5)];[_0x4ab733(0x206)]=!0x1;[_0x4ab733(0x1da)]=!0x1;constructor({connector:_0x4194dc,editor:_0x1955f5}){const _0x3dec21=_0x4ab733;super(),this['id']=_0x9b55f1(),this[_0x3dec21(0x214)]=_0x4194dc,this[_0x3dec21(0x1d3)]=!0x0,this[_0x3dec21(0x1e5)]=_0x1955f5;}async[_0x4ab733(0x1e4)](){const _0x5bf008=_0x4ab733,_0x53934b=[];let _0x5558d6,_0x50fbd0;this[_0x5bf008(0x1d3)]=!0x1;try{this[_0x5bf008(0x20d)]=await this[_0x5bf008(0x1d8)](),this[_0x5bf008(0x207)](_0x5bf008(0x1c8),this);const _0xbe05cc=await this[_0x5bf008(0x20d)][_0x5bf008(0x1d6)]();for await(const _0x353ade of _0xbe05cc){if(this[_0x5bf008(0x1d3)])return;if(_0x5bf008(0x20a)==_0x353ade[_0x5bf008(0x21a)])return void this[_0x5bf008(0x207)](_0x5bf008(0x20a),{'error':new _0x4fec7(_0x5bf008(0x218),this)});switch(_0x353ade[_0x5bf008(0x21a)]){case _0x5bf008(0x1f3):this[_0x5bf008(0x1cf)]=_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1cf)];break;case _0x5bf008(0x1f1):this[_0x5bf008(0x1d0)]=_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x202)];break;case _0x5bf008(0x205):this[_0x5bf008(0x1e8)](_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1c7)],!0x0);break;case _0x5bf008(0x204):_0x53934b[_0x5bf008(0x1eb)](_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x204)]);break;case _0x5bf008(0x1dd):this[_0x5bf008(0x1da)]||(this[_0x5bf008(0x1da)]=!0x0,this[_0x5bf008(0x207)](_0x5bf008(0x217),this));break;case _0x5bf008(0x1f6):this[_0x5bf008(0x206)]||(this[_0x5bf008(0x206)]=!0x0,this[_0x5bf008(0x207)](_0x5bf008(0x1fd),this));break;case _0x5bf008(0x1cb):case _0x5bf008(0x1f2):this[_0x5bf008(0x1ee)](),this[_0x5bf008(0x210)](),_0x5558d6=_0x5bf008(0x1cb)==_0x353ade[_0x5bf008(0x21a)]?_0x5bf008(0x1e9):_0x5bf008(0x1e0),_0x50fbd0=_0x5bf008(0x1cb)==_0x353ade[_0x5bf008(0x21a)]?_0x353ade[_0x5bf008(0x1f4)]['id']:void 0x0,this[_0x5bf008(0x1f8)]&&this[_0x5bf008(0x1f8)][_0x5bf008(0x1de)]!=_0x5558d6&&(this[_0x5bf008(0x1f8)][_0x5bf008(0x1c6)](),this[_0x5bf008(0x1f8)]=void 0x0),this[_0x5bf008(0x1f8)]||(this[_0x5bf008(0x1f8)]=this[_0x5bf008(0x1c9)]({'type':_0x5558d6,'interactionId':this['id'],'id':_0x50fbd0}),_0x5bf008(0x1e9)==_0x5558d6&&(this[_0x5bf008(0x1f8)][_0x5bf008(0x1e3)]=_0x53934b[_0x5bf008(0x1e2)](0x0))),this[_0x5bf008(0x1f8)][_0x5bf008(0x1ca)](_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1ea)]);break;case _0x5bf008(0x1f0):this[_0x5bf008(0x208)]({'toolName':_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1f7)],'data':_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1f4)],'attributes':_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1dc)]});break;case _0x5bf008(0x212):this[_0x5bf008(0x211)]({'toolName':_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1f7)],'data':_0x353ade[_0x5bf008(0x1f4)][_0x5bf008(0x1f4)]});}}}finally{this[_0x5bf008(0x1d3)]||(this[_0x5bf008(0x1f8)]&&_0x53934b[_0x5bf008(0x1ff)]>0x0&&(this[_0x5bf008(0x1f8)][_0x5bf008(0x1e3)]=_0x53934b[_0x5bf008(0x1e2)](0x0)),this[_0x5bf008(0x200)](),this[_0x5bf008(0x207)](_0x5bf008(0x1fa),this));}}[_0x4ab733(0x1d4)](){const _0x2ba1f3=_0x4ab733;this[_0x2ba1f3(0x1d3)]||(this[_0x2ba1f3(0x200)](),this[_0x2ba1f3(0x207)](_0x2ba1f3(0x215),this));}[_0x4ab733(0x20c)](_0x51d875){const _0x10e831=_0x4ab733;return this[_0x10e831(0x201)][_0x10e831(0x1fc)](_0x3dc222=>_0x3dc222['id']===_0x51d875);}[_0x4ab733(0x1d9)](){const _0x34c2f2=_0x4ab733;this[_0x34c2f2(0x1fe)]||(this[_0x34c2f2(0x1d4)](),this[_0x34c2f2(0x201)][_0x34c2f2(0x209)](_0x176aa0=>_0x176aa0[_0x34c2f2(0x1d9)]()),this[_0x34c2f2(0x201)]=[],this[_0x34c2f2(0x1fe)]=!0x0,this[_0x34c2f2(0x207)](_0x34c2f2(0x20e),this),this[_0x34c2f2(0x1ed)]());}[_0x4ab733(0x1c9)](_0x453bb7){const _0x1b1f1d=_0x4ab733,_0x30140e=new _0x1fb4b9({'editor':this[_0x1b1f1d(0x1e5)],'documentContextContent':this[_0x1b1f1d(0x1e1)]()?.[_0x1b1f1d(0x1d7)],..._0x453bb7});return this[_0x1b1f1d(0x201)][_0x1b1f1d(0x1eb)](_0x30140e),_0x30140e[_0x1b1f1d(0x1cc)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1b1f1d(0x207)](_0x1b1f1d(0x1f5),_0x30140e),_0x30140e;}[_0x4ab733(0x1e8)](_0x2687ff,_0x2f4a69=!0x1){const _0x3f130e=_0x4ab733;this[_0x3f130e(0x207)](_0x3f130e(0x1e8),_0x2687ff,_0x2f4a69);}[_0x4ab733(0x210)](){const _0x1f7105=_0x4ab733;this[_0x1f7105(0x1da)]&&(this[_0x1f7105(0x1da)]=!0x1,this[_0x1f7105(0x207)](_0x1f7105(0x20b),this));}[_0x4ab733(0x1ee)](){const _0x15d5af=_0x4ab733;this[_0x15d5af(0x206)]&&(this[_0x15d5af(0x206)]=!0x1,this[_0x15d5af(0x207)](_0x15d5af(0x1d1),this));}[_0x4ab733(0x208)](_0x634171){const _0x388045=_0x4ab733;this[_0x388045(0x207)](_0x388045(0x1df),{'type':_0x388045(0x1e7),'toolName':_0x634171[_0x388045(0x1f7)],'data':structuredClone(_0x634171[_0x388045(0x1f4)]),'attributes':structuredClone(_0x634171[_0x388045(0x1dc)]||{})},this);}[_0x4ab733(0x211)](_0x5acce6){const _0x341fcc=_0x4ab733;this[_0x341fcc(0x207)](_0x341fcc(0x1df),{'type':_0x341fcc(0x1db),'toolName':_0x5acce6[_0x341fcc(0x1f7)],'data':structuredClone(_0x5acce6[_0x341fcc(0x1f4)])},this);}[_0x4ab733(0x200)](){const _0x49618b=_0x4ab733;this[_0x49618b(0x1d3)]=!0x0,this[_0x49618b(0x20d)]&&this[_0x49618b(0x20d)][_0x49618b(0x1ce)][_0x49618b(0x1e6)](),this[_0x49618b(0x1f8)]&&this[_0x49618b(0x1f8)][_0x49618b(0x1c6)](),this[_0x49618b(0x20d)]=this[_0x49618b(0x1f8)]=void 0x0;}}
23
+ function _0xc167(_0x143c07,_0x2e5425){const _0x37ed92=_0x37ed();return _0xc167=function(_0xc167b,_0x1d1322){_0xc167b=_0xc167b-0xd2;let _0x17f865=_0x37ed92[_0xc167b];return _0x17f865;},_0xc167(_0x143c07,_0x2e5425);}const _0x49dc38=_0xc167;function _0x37ed(){const _0x23916f=['203dlyEQt','delegate','event','5398085rSkOXq','stopListening','56RUOVqv','length','error','interactionStarted','appendContent','messageId','_handleToolResultData','webSearchFinished','abort','push','485151CupaUo','data','stop','mcp-tool-notification','modification-delta','interactionDestroyed','parse','50nxIvVd','reasoning','sendRequest','494955mIjeaE','action-metadata','isStopped','resetReasoningState','258392OcXpiv','573006EolUMj','createReply','toolName','_isWebSearching','_finalizeInteraction','currentRequest','getDocumentContext','find','replyContentUpdated','modification','reasoningStarted','conversationTitle','message-metadata','destroy','ai-chat-interaction-error','text','replyCreated','webSearchStarted','interactionFinished','7505340eEkKOl','resetWebSearchState','6uCyOPt','attributes','_handleToolNotificationData','type','getReply','actionCallId','web-search','12RiMFgj','sources','start','isDestroyed','replyChangeGroupStateUpdated','abortController','conversation-title','editor','reasoningFinished','setConversationTitle','fire','forEach','connector','currentReply','content','toolDataReceived','interactionStopped','_isReasoning','33564cPpAWd','textDelta','done','text-delta','interactionCreated','notification','getStream','replies','result','callId','source','mcp-tool-result','splice'];_0x37ed=function(){return _0x23916f;};return _0x37ed();}(function(_0x254953,_0x34c300){const _0x3ae40f=_0xc167,_0x1da2e2=_0x254953();while(!![]){try{const _0x1dfb90=-parseInt(_0x3ae40f(0xfd))/0x1+parseInt(_0x3ae40f(0x112))/0x2*(-parseInt(_0x3ae40f(0xee))/0x3)+parseInt(_0x3ae40f(0xfc))/0x4*(parseInt(_0x3ae40f(0xf5))/0x5)+-parseInt(_0x3ae40f(0xd2))/0x6*(-parseInt(_0x3ae40f(0xdf))/0x7)+-parseInt(_0x3ae40f(0xe4))/0x8*(-parseInt(_0x3ae40f(0xf8))/0x9)+parseInt(_0x3ae40f(0x110))/0xa+-parseInt(_0x3ae40f(0xe2))/0xb*(parseInt(_0x3ae40f(0x119))/0xc);if(_0x1dfb90===_0x34c300)break;else _0x1da2e2['push'](_0x1da2e2['shift']());}catch(_0x134cf6){_0x1da2e2['push'](_0x1da2e2['shift']());}}}(_0x37ed,0x6063d));import{CKEditorError as _0x2dfcc3,EmitterMixin as _0x48c625,uid as _0x126fbf}from'ckeditor5/src/utils.js';import{AIReply as _0x243ca6}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x49dc38(0xd6),_0x49dc38(0xe7),_0x49dc38(0x129),_0x49dc38(0x10f),_0x49dc38(0xf3),_0x49dc38(0x10d),_0x49dc38(0x105),_0x49dc38(0x11d),_0x49dc38(0x122),_0x49dc38(0x10e),_0x49dc38(0xeb),_0x49dc38(0x107),_0x49dc38(0x121),_0x49dc38(0x128),_0x49dc38(0xe6)];export class AIInteraction extends _0x48c625(){['id'];[_0x49dc38(0xd9)]=[];[_0x49dc38(0x126)];[_0x49dc38(0xe9)];[_0x49dc38(0x117)];[_0x49dc38(0x102)];[_0x49dc38(0x125)];[_0x49dc38(0xfa)]=!0x1;[_0x49dc38(0x11c)]=!0x1;[_0x49dc38(0x120)];[_0x49dc38(0x12a)]=!0x1;[_0x49dc38(0x100)]=!0x1;constructor({connector:_0x48a260,editor:_0x13407a}){const _0x3ec46e=_0x49dc38;super(),this['id']=_0x126fbf(),this[_0x3ec46e(0x125)]=_0x48a260,this[_0x3ec46e(0xfa)]=!0x0,this[_0x3ec46e(0x120)]=_0x13407a;}async[_0x49dc38(0x11b)](){const _0x1107df=_0x49dc38,_0x2a117c=[];let _0x2b0c5b,_0x48a1b9,_0x1e11d7;this[_0x1107df(0xfa)]=!0x1;try{this[_0x1107df(0x102)]=await this[_0x1107df(0xf7)](),this[_0x1107df(0x123)](_0x1107df(0xe7),this);const _0x42672a=await this[_0x1107df(0x102)][_0x1107df(0xd8)]();for await(const _0x3a6917 of _0x42672a){if(this[_0x1107df(0xfa)])return;if(_0x1107df(0xe6)==_0x3a6917[_0x1107df(0xe1)])return void this[_0x1107df(0x123)](_0x1107df(0xe6),{'error':new _0x2dfcc3(_0x1107df(0x10b),this)});switch(_0x3a6917[_0x1107df(0xe1)]){case _0x1107df(0x109):this[_0x1107df(0xe9)]=_0x3a6917[_0x1107df(0xef)][_0x1107df(0xe9)];break;case _0x1107df(0xf9):this[_0x1107df(0x117)]=_0x3a6917[_0x1107df(0xef)][_0x1107df(0xdb)];break;case _0x1107df(0x11f):this[_0x1107df(0x122)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0x108)],!0x0);break;case _0x1107df(0xdc):_0x2a117c[_0x1107df(0xed)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xdc)]);break;case _0x1107df(0x118):this[_0x1107df(0x100)]||(this[_0x1107df(0x100)]=!0x0,this[_0x1107df(0x123)](_0x1107df(0x10e),this));break;case _0x1107df(0xf6):this[_0x1107df(0x12a)]||(this[_0x1107df(0x12a)]=!0x0,this[_0x1107df(0x123)](_0x1107df(0x107),this));break;case _0x1107df(0xf2):case _0x1107df(0xd5):this[_0x1107df(0xfb)](),this[_0x1107df(0x111)](),_0x2b0c5b=_0x1107df(0xf2)==_0x3a6917[_0x1107df(0xe1)]?_0x1107df(0x106):_0x1107df(0x10c),_0x48a1b9=_0x1107df(0xf2)==_0x3a6917[_0x1107df(0xe1)]?_0x3a6917[_0x1107df(0xef)]['id']:void 0x0,this[_0x1107df(0x126)]&&this[_0x1107df(0x126)][_0x1107df(0x115)]!=_0x2b0c5b&&(this[_0x1107df(0x126)][_0x1107df(0xd4)](),this[_0x1107df(0x126)]=void 0x0),this[_0x1107df(0x126)]||(this[_0x1107df(0x126)]=this[_0x1107df(0xfe)]({'type':_0x2b0c5b,'interactionId':this['id'],'id':_0x48a1b9}),_0x1107df(0x106)==_0x2b0c5b&&(this[_0x1107df(0x126)][_0x1107df(0x11a)]=_0x2a117c[_0x1107df(0xde)](0x0))),this[_0x1107df(0x126)][_0x1107df(0xe8)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xd3)]);break;case _0x1107df(0xdd):_0x1e11d7=JSON[_0x1107df(0xf4)](_0x3a6917[_0x1107df(0xef)][_0x1107df(0xda)]),this[_0x1107df(0xea)]({'toolName':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xff)],'data':_0x1e11d7[_0x1107df(0xef)],'attributes':_0x1e11d7[_0x1107df(0x113)]});break;case _0x1107df(0xf1):this[_0x1107df(0x114)]({'toolName':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xff)],'data':_0x3a6917[_0x1107df(0xef)][_0x1107df(0xef)]});}}}finally{this[_0x1107df(0xfa)]||(this[_0x1107df(0x126)]&&_0x2a117c[_0x1107df(0xe5)]>0x0&&(this[_0x1107df(0x126)][_0x1107df(0x11a)]=_0x2a117c[_0x1107df(0xde)](0x0)),this[_0x1107df(0x101)](),this[_0x1107df(0x123)](_0x1107df(0x10f),this));}}[_0x49dc38(0xf0)](){const _0x1dc81b=_0x49dc38;this[_0x1dc81b(0xfa)]||(this[_0x1dc81b(0x101)](),this[_0x1dc81b(0x123)](_0x1dc81b(0x129),this));}[_0x49dc38(0x116)](_0x86ba6f){const _0x3e2f4e=_0x49dc38;return this[_0x3e2f4e(0xd9)][_0x3e2f4e(0x104)](_0xcaf626=>_0xcaf626['id']===_0x86ba6f);}[_0x49dc38(0x10a)](){const _0x3438f1=_0x49dc38;this[_0x3438f1(0x11c)]||(this[_0x3438f1(0xf0)](),this[_0x3438f1(0xd9)][_0x3438f1(0x124)](_0x5cf82e=>_0x5cf82e[_0x3438f1(0x10a)]()),this[_0x3438f1(0xd9)]=[],this[_0x3438f1(0x11c)]=!0x0,this[_0x3438f1(0x123)](_0x3438f1(0xf3),this),this[_0x3438f1(0xe3)]());}[_0x49dc38(0xfe)](_0x55135b){const _0x2943b5=_0x49dc38,_0x292c2e=new _0x243ca6({'editor':this[_0x2943b5(0x120)],'documentContextContent':this[_0x2943b5(0x103)]()?.[_0x2943b5(0x127)],..._0x55135b});return this[_0x2943b5(0xd9)][_0x2943b5(0xed)](_0x292c2e),_0x292c2e[_0x2943b5(0xe0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2943b5(0x123)](_0x2943b5(0x10d),_0x292c2e),_0x292c2e;}[_0x49dc38(0x122)](_0x316759,_0x50739a=!0x1){const _0x2d187f=_0x49dc38;this[_0x2d187f(0x123)](_0x2d187f(0x122),_0x316759,_0x50739a);}[_0x49dc38(0x111)](){const _0x4179a2=_0x49dc38;this[_0x4179a2(0x100)]&&(this[_0x4179a2(0x100)]=!0x1,this[_0x4179a2(0x123)](_0x4179a2(0xeb),this));}[_0x49dc38(0xfb)](){const _0x4a5d94=_0x49dc38;this[_0x4a5d94(0x12a)]&&(this[_0x4a5d94(0x12a)]=!0x1,this[_0x4a5d94(0x123)](_0x4a5d94(0x121),this));}[_0x49dc38(0xea)](_0x476b21){const _0x583c72=_0x49dc38;this[_0x583c72(0x123)](_0x583c72(0x128),{'type':_0x583c72(0xda),'toolName':_0x476b21[_0x583c72(0xff)],'data':structuredClone(_0x476b21[_0x583c72(0xef)]||{}),'attributes':structuredClone(_0x476b21[_0x583c72(0x113)]||{})},this);}[_0x49dc38(0x114)](_0x4b5deb){const _0x3c201b=_0x49dc38;this[_0x3c201b(0x123)](_0x3c201b(0x128),{'type':_0x3c201b(0xd7),'toolName':_0x4b5deb[_0x3c201b(0xff)],'data':structuredClone(_0x4b5deb[_0x3c201b(0xef)])},this);}[_0x49dc38(0x101)](){const _0x42ce41=_0x49dc38;this[_0x42ce41(0xfa)]=!0x0,this[_0x42ce41(0x102)]&&this[_0x42ce41(0x102)][_0x42ce41(0x11e)][_0x42ce41(0xec)](),this[_0x42ce41(0x126)]&&this[_0x42ce41(0x126)][_0x42ce41(0xd4)](),this[_0x42ce41(0x102)]=this[_0x42ce41(0x126)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x290c42=_0x11b9;(function(_0x20b0dc,_0x11af4b){const _0x446674=_0x11b9,_0x4a89fe=_0x20b0dc();while(!![]){try{const _0x3aae28=parseInt(_0x446674(0x193))/0x1*(parseInt(_0x446674(0x188))/0x2)+-parseInt(_0x446674(0x1a9))/0x3+parseInt(_0x446674(0x184))/0x4*(parseInt(_0x446674(0x17d))/0x5)+parseInt(_0x446674(0x190))/0x6+parseInt(_0x446674(0x197))/0x7*(-parseInt(_0x446674(0x19e))/0x8)+parseInt(_0x446674(0x1a8))/0x9+-parseInt(_0x446674(0x185))/0xa;if(_0x3aae28===_0x11af4b)break;else _0x4a89fe['push'](_0x4a89fe['shift']());}catch(_0x1e2d90){_0x4a89fe['push'](_0x4a89fe['shift']());}}}(_0x35f1,0xb6de4));import{EmitterMixin as _0x5432a1,logWarning as _0x3fb369,logError as _0x2f896c}from'ckeditor5/src/utils.js';import{getTranslation as _0x8d27c0}from'../utils/common-translations.js';export class AIModels extends _0x5432a1(){[_0x290c42(0x19d)];[_0x290c42(0x1a5)];[_0x290c42(0x1a6)];[_0x290c42(0x199)]=[];constructor({connector:_0x1cc00f,config:_0x3a7637,locale:_0x5b9f99}){const _0x3d6ac3=_0x290c42;super(),this[_0x3d6ac3(0x19d)]=_0x1cc00f,this[_0x3d6ac3(0x1a5)]=_0x3a7637,this[_0x3d6ac3(0x1a6)]=_0x5b9f99;}get[_0x290c42(0x191)](){const _0x579f26=_0x290c42;return this[_0x579f26(0x1a5)]?.[_0x579f26(0x180)];}get[_0x290c42(0x17f)](){const _0x56c644=_0x290c42;return this[_0x56c644(0x1a5)]?.[_0x56c644(0x1a1)];}async[_0x290c42(0x186)](){const _0x44cf8d=_0x290c42;if(!this[_0x44cf8d(0x199)][_0x44cf8d(0x198)])try{const _0x4d8b60=this[_0x44cf8d(0x1a6)][_0x44cf8d(0x189)]||'en',_0x1cbae8=this[_0x44cf8d(0x19d)][_0x44cf8d(0x187)](_0x4d8b60),_0x51dc28=await _0x1cbae8[_0x44cf8d(0x18b)]();this[_0x44cf8d(0x199)]=_0x51dc28[_0x44cf8d(0x17e)][_0x44cf8d(0x194)](_0xc38ebd=>Bi(_0xc38ebd)?{..._0xc38ebd,'name':_0x8d27c0(this[_0x44cf8d(0x1a6)],_0x44cf8d(0x18c))}:_0xc38ebd);}catch(_0x5a90c3){throw _0x2f896c(_0x44cf8d(0x19a),{'error':_0x5a90c3}),_0x5a90c3;}return[...this[_0x44cf8d(0x199)]];}async[_0x290c42(0x182)](){const _0x58e2e8=_0x290c42,_0xf270e8=await this[_0x58e2e8(0x186)]();let _0xe33270;return _0xe33270=this[_0x58e2e8(0x191)]?this[_0x58e2e8(0x192)](_0xf270e8,this[_0x58e2e8(0x191)]):_0xf270e8[_0x58e2e8(0x181)](_0xf3e694=>_0xf3e694[_0x58e2e8(0x1ac)]),_0xe33270;}async[_0x290c42(0x196)](_0x3f8277){const _0x29eecd=_0x290c42,_0x2287d4=await this[_0x29eecd(0x186)]();if(!_0x2287d4[_0x29eecd(0x198)])return null;if(_0x3f8277){const _0x472a3b=this[_0x29eecd(0x1a2)](_0x2287d4,_0x3f8277);if(_0x472a3b)return _0x472a3b;_0x3fb369(_0x29eecd(0x19b),{'modelId':_0x3f8277,'fallBackModelId':this[_0x29eecd(0x17f)]});}return this[_0x29eecd(0x18a)]();}async[_0x290c42(0x18a)](){const _0x16f604=_0x290c42,_0xc3bdbf=await this[_0x16f604(0x182)]();if(!_0xc3bdbf[_0x16f604(0x198)])return null;if(this[_0x16f604(0x17f)]){const _0x14ba13=this[_0x16f604(0x1a2)](_0xc3bdbf,this[_0x16f604(0x17f)]);if(_0x14ba13)return _0x14ba13;_0x3fb369(_0x16f604(0x19f),{'defaultModelId':this[_0x16f604(0x17f)],'fallBackModelId':_0xc3bdbf[0x0]['id']});}return _0xc3bdbf[0x0];}async[_0x290c42(0x18f)](_0x5040b1){const _0x466671=_0x290c42;return(await this[_0x466671(0x182)]())[_0x466671(0x1aa)](_0xafd269=>_0xafd269[_0x466671(0x1ab)]===_0x5040b1[_0x466671(0x1ab)]&&_0xafd269[_0x466671(0x19c)]===_0x5040b1[_0x466671(0x19c)]);}[_0x290c42(0x192)](_0x43750d,_0x32839d){const _0x28ac31=_0x290c42;let _0x1c9e2a;if(_0x32839d){_0x1c9e2a=[];const _0x44ad8d=new Set(),_0x5e086e=_0x28ac31(0x183)==typeof _0x32839d?[_0x32839d[_0x28ac31(0x18d)]()]:_0x32839d[_0x28ac31(0x194)](_0x48e380=>_0x48e380[_0x28ac31(0x18d)]());for(const _0x1be2a1 of _0x5e086e)for(const _0x5b4938 of _0x43750d)!_0x44ad8d[_0x28ac31(0x1a3)](_0x5b4938['id'])&&this[_0x28ac31(0x18e)](_0x5b4938,_0x1be2a1)&&(_0x1c9e2a[_0x28ac31(0x1ae)](_0x5b4938),_0x44ad8d[_0x28ac31(0x1ad)](_0x5b4938['id']));}else _0x1c9e2a=_0x43750d;return _0x1c9e2a;}[_0x290c42(0x18e)](_0x8f05d0,_0xbd15c9){const _0x3aad7e=_0x290c42,_0x4777b6=_0x8f05d0['id'][_0x3aad7e(0x18d)](),_0x35db95=_0x8f05d0[_0x3aad7e(0x1ab)][_0x3aad7e(0x18d)](),_0x35e4f9=_0x8f05d0[_0x3aad7e(0x19c)][_0x3aad7e(0x18d)]();return _0x4777b6===_0xbd15c9||_0x35db95===_0xbd15c9||Bi(_0x8f05d0)&&_0x3aad7e(0x1a0)===_0xbd15c9||_0x35e4f9===_0xbd15c9||_0x4777b6[_0x3aad7e(0x1a4)](_0xbd15c9);}[_0x290c42(0x1a2)](_0x3e5c36,_0x48527c){const _0x41a470=_0x290c42;return _0x3e5c36[_0x41a470(0x1a7)](_0xc135f9=>Bi(_0xc135f9)&&_0x41a470(0x1a0)===_0x48527c?_0xc135f9:_0xc135f9['id']===_0x48527c)||null;}}function _0x35f1(){const _0x358d19=['_config','_locale','find','4021812zqowyC','4176843DeJNmc','some','name','recommended','add','push','5NnWxOs','items','_defaultModelId','displayedModels','filter','getAvailableModels','string','4497412BMnqpE','7701620gPNlrN','getAll','getModels','2418erKmzB','uiLanguage','getDefault','list','AI_MODEL_NAME_AUTO','toLocaleLowerCase','_isMatchingFilter','isAvailable','3722070rpDOsG','_availableModels','_filterModels','1135juHQHp','map','agent','getModel','3010nFbggG','length','_modelList','ai-models-unable-to-retrieve','ai-chat-model-id-unrecognized','provider','_connector','12136NQYSSR','ai-chat-default-model-id-unrecognized','auto','defaultModelId','_getModelById','has','startsWith'];_0x35f1=function(){return _0x358d19;};return _0x35f1();}function _0x11b9(_0x3e7c1d,_0x1a776b){const _0x35f1c9=_0x35f1();return _0x11b9=function(_0x11b982,_0x3aae38){_0x11b982=_0x11b982-0x17d;let _0x34fb02=_0x35f1c9[_0x11b982];return _0x34fb02;},_0x11b9(_0x3e7c1d,_0x1a776b);}function Bi(_0x43cd5d){const _0x187262=_0x290c42;return _0x43cd5d['id'][_0x187262(0x1a4)](_0x187262(0x195));}
23
+ const _0x259810=_0x16ec;(function(_0x56d1f5,_0x542f28){const _0xdd4eef=_0x16ec,_0x3b4f51=_0x56d1f5();while(!![]){try{const _0x4e4107=-parseInt(_0xdd4eef(0x191))/0x1+parseInt(_0xdd4eef(0x193))/0x2+-parseInt(_0xdd4eef(0x180))/0x3*(parseInt(_0xdd4eef(0x18c))/0x4)+parseInt(_0xdd4eef(0x181))/0x5*(-parseInt(_0xdd4eef(0x18d))/0x6)+parseInt(_0xdd4eef(0x17f))/0x7*(parseInt(_0xdd4eef(0x194))/0x8)+parseInt(_0xdd4eef(0x195))/0x9+parseInt(_0xdd4eef(0x184))/0xa;if(_0x4e4107===_0x542f28)break;else _0x3b4f51['push'](_0x3b4f51['shift']());}catch(_0x2fe5dc){_0x3b4f51['push'](_0x3b4f51['shift']());}}}(_0x141c,0xbe8d0));import{EmitterMixin as _0x18d291,logWarning as _0x4ee73f,logError as _0x4345e4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c76f0}from'../utils/common-translations.js';export class AIModels extends _0x18d291(){[_0x259810(0x183)];[_0x259810(0x1a9)];[_0x259810(0x17c)];[_0x259810(0x188)]=[];constructor({connector:_0x1da961,config:_0x4f57ba,locale:_0x5d8723}){const _0x389244=_0x259810;super(),this[_0x389244(0x183)]=_0x1da961,this[_0x389244(0x1a9)]=_0x4f57ba,this[_0x389244(0x17c)]=_0x5d8723;}get[_0x259810(0x18a)](){const _0x123ff1=_0x259810;return this[_0x123ff1(0x1a9)]?.[_0x123ff1(0x19c)];}get[_0x259810(0x17d)](){const _0xd5335c=_0x259810;return this[_0xd5335c(0x1a9)]?.[_0xd5335c(0x1a3)];}async[_0x259810(0x1a2)](){const _0x1eb489=_0x259810;if(!this[_0x1eb489(0x188)][_0x1eb489(0x185)])try{const _0x159bfd=this[_0x1eb489(0x17c)][_0x1eb489(0x1a4)]||'en',_0x262be2=this[_0x1eb489(0x183)][_0x1eb489(0x189)](_0x159bfd),_0x1fec77=await _0x262be2[_0x1eb489(0x1a8)]();this[_0x1eb489(0x188)]=_0x1fec77[_0x1eb489(0x1ac)][_0x1eb489(0x1aa)](_0x4072cf=>Bi(_0x4072cf)?{..._0x4072cf,'name':_0x1c76f0(this[_0x1eb489(0x17c)],_0x1eb489(0x19b))}:_0x4072cf);}catch(_0x5fee26){throw _0x4345e4(_0x1eb489(0x1a7),{'error':_0x5fee26}),_0x5fee26;}return[...this[_0x1eb489(0x188)]];}async[_0x259810(0x1ad)](){const _0x42a1f8=_0x259810,_0x5a5dc6=await this[_0x42a1f8(0x1a2)]();let _0x54f654;return _0x54f654=this[_0x42a1f8(0x18a)]?this[_0x42a1f8(0x199)](_0x5a5dc6,this[_0x42a1f8(0x18a)]):_0x5a5dc6[_0x42a1f8(0x1a0)](_0x27feb1=>_0x27feb1[_0x42a1f8(0x1ab)]),_0x54f654;}async[_0x259810(0x182)](_0x4079ed){const _0x10a5ad=_0x259810,_0x4d5ce0=await this[_0x10a5ad(0x1a2)]();if(!_0x4d5ce0[_0x10a5ad(0x185)])return null;if(_0x4079ed){const _0x5e2d24=this[_0x10a5ad(0x197)](_0x4d5ce0,_0x4079ed);if(_0x5e2d24)return _0x5e2d24;_0x4ee73f(_0x10a5ad(0x18b),{'modelId':_0x4079ed,'fallBackModelId':this[_0x10a5ad(0x17d)]});}return this[_0x10a5ad(0x192)]();}async[_0x259810(0x192)](){const _0x315079=_0x259810,_0x3d9f89=await this[_0x315079(0x1ad)]();if(!_0x3d9f89[_0x315079(0x185)])return null;if(this[_0x315079(0x17d)]){const _0x495f7b=this[_0x315079(0x197)](_0x3d9f89,this[_0x315079(0x17d)]);if(_0x495f7b)return _0x495f7b;_0x4ee73f(_0x315079(0x1a1),{'defaultModelId':this[_0x315079(0x17d)],'fallBackModelId':_0x3d9f89[0x0]['id']});}return _0x3d9f89[0x0];}async[_0x259810(0x19e)](_0xc63c04){const _0xa973d7=_0x259810;return(await this[_0xa973d7(0x1ad)]())[_0xa973d7(0x17e)](_0x445384=>_0x445384[_0xa973d7(0x18f)]===_0xc63c04[_0xa973d7(0x18f)]&&_0x445384[_0xa973d7(0x19d)]===_0xc63c04[_0xa973d7(0x19d)]);}[_0x259810(0x199)](_0x1bd9cc,_0x1c641b){const _0x15c98c=_0x259810;let _0x773191;if(_0x1c641b){_0x773191=[];const _0x54503e=new Set(),_0x10a32e=_0x15c98c(0x198)==typeof _0x1c641b?[_0x1c641b[_0x15c98c(0x19a)]()]:_0x1c641b[_0x15c98c(0x1aa)](_0x526111=>_0x526111[_0x15c98c(0x19a)]());for(const _0x144af7 of _0x10a32e)for(const _0x4b2c72 of _0x1bd9cc)!_0x54503e[_0x15c98c(0x1a6)](_0x4b2c72['id'])&&this[_0x15c98c(0x190)](_0x4b2c72,_0x144af7)&&(_0x773191[_0x15c98c(0x186)](_0x4b2c72),_0x54503e[_0x15c98c(0x19f)](_0x4b2c72['id']));}else _0x773191=_0x1bd9cc;return _0x773191;}[_0x259810(0x190)](_0x19e60d,_0x369b0b){const _0x54037f=_0x259810,_0x260da=_0x19e60d['id'][_0x54037f(0x19a)](),_0xb00929=_0x19e60d[_0x54037f(0x18f)][_0x54037f(0x19a)](),_0x224e66=_0x19e60d[_0x54037f(0x19d)][_0x54037f(0x19a)]();return _0x260da===_0x369b0b||_0xb00929===_0x369b0b||Bi(_0x19e60d)&&_0x54037f(0x196)===_0x369b0b||_0x224e66===_0x369b0b||_0x260da[_0x54037f(0x1a5)](_0x369b0b);}[_0x259810(0x197)](_0x56fcb4,_0x5364c9){const _0x42f149=_0x259810;return _0x56fcb4[_0x42f149(0x18e)](_0x4a1b78=>Bi(_0x4a1b78)&&_0x42f149(0x196)===_0x5364c9?_0x4a1b78:_0x4a1b78['id']===_0x5364c9)||null;}}function _0x141c(){const _0x43e55a=['191728OsUePe','2914224xNnNei','find','name','_isMatchingFilter','915013asngCW','getDefault','1354008hBSXMR','6913608BqQfxp','13787451AvUjeo','auto','_getModelById','string','_filterModels','toLocaleLowerCase','AI_MODEL_NAME_AUTO','displayedModels','provider','isAvailable','add','filter','ai-chat-default-model-id-unrecognized','getAll','defaultModelId','uiLanguage','startsWith','has','ai-models-unable-to-retrieve','list','_config','map','recommended','items','getAvailableModels','_locale','_defaultModelId','some','7gwuvOz','15gWoCxa','15TayBKp','getModel','_connector','3191370YvwwxA','length','push','agent','_modelList','getModels','_availableModels','ai-chat-model-id-unrecognized'];_0x141c=function(){return _0x43e55a;};return _0x141c();}function _0x16ec(_0x2146dc,_0x598869){const _0x141ce8=_0x141c();return _0x16ec=function(_0x16ecaa,_0x272a65){_0x16ecaa=_0x16ecaa-0x17c;let _0xb505dd=_0x141ce8[_0x16ecaa];return _0xb505dd;},_0x16ec(_0x2146dc,_0x598869);}function Bi(_0x2d6e32){const _0x13849e=_0x259810;return _0x2d6e32['id'][_0x13849e(0x1a5)](_0x13849e(0x187));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46b996=_0x33e9;(function(_0x24f45b,_0x846ddc){const _0x5ba8c2=_0x33e9,_0xc03b6d=_0x24f45b();while(!![]){try{const _0x2ac87a=parseInt(_0x5ba8c2(0x1a7))/0x1*(parseInt(_0x5ba8c2(0x1b7))/0x2)+-parseInt(_0x5ba8c2(0x19c))/0x3+-parseInt(_0x5ba8c2(0x1c2))/0x4*(parseInt(_0x5ba8c2(0x1b3))/0x5)+parseInt(_0x5ba8c2(0x19b))/0x6+parseInt(_0x5ba8c2(0x1d3))/0x7+parseInt(_0x5ba8c2(0x1a4))/0x8+-parseInt(_0x5ba8c2(0x1d2))/0x9;if(_0x2ac87a===_0x846ddc)break;else _0xc03b6d['push'](_0xc03b6d['shift']());}catch(_0x2aef67){_0xc03b6d['push'](_0xc03b6d['shift']());}}}(_0x4be9,0x5147c));import{CKEditorError as _0x5855ea,ObservableMixin as _0x2a1029,uid as _0x4a9cd6}from'ckeditor5/src/utils.js';import{Element as _0x488ec8,findAll as _0x333979,getAttribute as _0x2f97af,getParents as _0x209124,Document as _0x4c1a8f,parse as _0x1c41cb,Text as _0x12681e}from'../utils/htmlparser.js';import{AIResponseParser as _0x5b86c3}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4e8735}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3bf874}from'../utils/getsuggestionpartsfromreply.js';function _0x33e9(_0x9c3ecc,_0x5daf0a){const _0x4be9c9=_0x4be9();return _0x33e9=function(_0x33e92e,_0x2655c2){_0x33e92e=_0x33e92e-0x18e;let _0x48cf2f=_0x4be9c9[_0x33e92e];return _0x48cf2f;},_0x33e9(_0x9c3ecc,_0x5daf0a);}import{getTranslation as _0x5873f5}from'../utils/common-translations.js';function _0x4be9(){const _0x3ad438=['indexOf','content','stopListening','ai-reply-get-content-parts-group-not-found','editor','pending','new','newNodeIds','replyContentUpdated','data-id','push','areActionsDisabled','sources','modifiedNodeIds','node','1696851ZKscgd','3116064fKJMyZ','parseAndNormalizeHTML','find','type','destroy','merge','includes','setChangeGroupState','context','done','getContentParts','index','map','data-unstable','withDiff','changes','filter','updateChangeGroups','documentContextContent','interactionId','AI_SUGGESTION_CONTENT_PART_REMOVED','modified','withoutDiff','864312oMjLPF','1197297kZqcgD','_getCachedContentParts','parsedContent','fire','aiResponseParser','removed','modification','cloneNode','760176PYToPy','parsedMergedContent','isDone','191ufWxAK','every','onContentChange','state','change:content','replyChangeGroupStateUpdated','appendContent','length','aiResponseApplier','_getDifferentChangeGroups','locale','color:\x20#808080;\x20font-style:\x20italic','10xffCjL','ai-get-editor-from-context-no-editor','previousSibling','changeGroups','2640kbIIBm','forEach','nextSibling','removedNodeIds','unshift','splice','cachedSuggestionContentParts','_setCachedContentParts','set','convertMarkdownToHTML','span','31568iBpkni'];_0x4be9=function(){return _0x3ad438;};return _0x4be9();}import{cloneDeep as _0x1f915c}from'es-toolkit';export class AIReply extends _0x2a1029(){['id'];[_0x46b996(0x197)];[_0x46b996(0x1d6)];[_0x46b996(0x1cf)]=[];[_0x46b996(0x19e)]=new _0x4c1a8f([]);[_0x46b996(0x1a5)]=new _0x4c1a8f([]);[_0x46b996(0x1b6)]=[];[_0x46b996(0x1ce)]=!0x1;[_0x46b996(0x196)];[_0x46b996(0x1a0)];[_0x46b996(0x1af)];[_0x46b996(0x1c7)];[_0x46b996(0x1bd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x7708dd,content:_0x17e98f='',isDone:_0x422703=!0x1,interactionId:_0x167b81,areActionsDisabled:_0x1d763a,documentContextContent:_0x2c4ca0,editor:_0x1e639d,id:_0x31fc85}){const _0x5ade20=_0x46b996;super(),this['id']=_0x31fc85||_0x4a9cd6(),this[_0x5ade20(0x197)]=_0x167b81,this[_0x5ade20(0x1d6)]=_0x7708dd,this[_0x5ade20(0x1ce)]=!!_0x1d763a,this[_0x5ade20(0x1c7)]=_0x1e639d,this[_0x5ade20(0x1a0)]=new _0x5b86c3(),this[_0x5ade20(0x1af)]=new _0x4e8735(),this[_0x5ade20(0x196)]=_0x1c41cb(_0x2c4ca0||''),this[_0x5ade20(0x1bf)](_0x5ade20(0x1a6),_0x422703),this['on'](_0x5ade20(0x1ab),()=>{const _0x3557fc=_0x5ade20;this[_0x3557fc(0x1a9)]();}),this[_0x5ade20(0x1bf)](_0x5ade20(0x1c4),_0x17e98f);}[_0x46b996(0x1ad)](_0x13cabd){const _0x2edff5=_0x46b996;this[_0x2edff5(0x1bf)](_0x2edff5(0x1c4),this[_0x2edff5(0x1c4)]+_0x13cabd);}[_0x46b996(0x1dc)](){const _0x18891e=_0x46b996;this[_0x18891e(0x1a6)]||(this[_0x18891e(0x1bf)](_0x18891e(0x1a6),!0x0),this[_0x18891e(0x1a9)]());}[_0x46b996(0x1d7)](){const _0x48b963=_0x46b996;this[_0x48b963(0x1c5)]();}[_0x46b996(0x1da)](_0x552f89,_0x2cecdb){const _0x49f24f=_0x46b996;this[_0x49f24f(0x1b6)][_0x552f89][_0x49f24f(0x1aa)]=_0x2cecdb,this[_0x49f24f(0x19f)](_0x49f24f(0x1ac),{'reply':this,'index':_0x552f89,'state':_0x2cecdb});}[_0x46b996(0x18e)]({showDiff:_0x2fac25,groupIndex:_0x81e746}){const _0x4ba440=_0x46b996;if(!this[_0x4ba440(0x1c7)])throw new _0x5855ea(_0x4ba440(0x1b4),null,{'aiReply':this});const _0x558145=this[_0x4ba440(0x19d)](_0x2fac25,_0x81e746);if(_0x558145)return _0x558145;let _0x34fc68=[];if(void 0x0===_0x81e746)_0x34fc68=this[_0x4ba440(0x1b6)];else{const _0xc4ab71=this[_0x4ba440(0x1b6)][_0x4ba440(0x1d5)](({index:_0xbb917e})=>_0xbb917e===_0x81e746);if(!_0xc4ab71)throw new _0x5855ea(_0x4ba440(0x1c6),null,{'aiReply':this,'groupIndex':_0x81e746});_0x34fc68=[_0xc4ab71];}const _0x41a632=_0x3bf874({'editor':this[_0x4ba440(0x1c7)],'showDiff':_0x2fac25,'changeGroups':_0x34fc68,'documentContextContent':this[_0x4ba440(0x196)]});return this[_0x4ba440(0x1be)](_0x2fac25,_0x41a632),_0x41a632;}[_0x46b996(0x19d)](_0x28ed29,_0xc48ea4){const _0x28c7c6=_0x46b996,_0x2feaf9=_0x28ed29?_0x28c7c6(0x192):_0x28c7c6(0x19a);if(!this[_0x28c7c6(0x1bd)][_0x2feaf9][_0x28c7c6(0x1ae)])return null;const _0x2594db=this[_0x28c7c6(0x1bd)][_0x2feaf9];if(void 0x0===_0xc48ea4)return _0x2594db[_0x28c7c6(0x1ae)]>0x0&&_0x2594db[_0x28c7c6(0x1ae)]!==this[_0x28c7c6(0x1b6)][_0x28c7c6(0x1ae)]?(this[_0x28c7c6(0x1be)](_0x28ed29,null),null):_0x1f915c(_0x2594db);{const _0x32670a=_0x2594db[_0x28c7c6(0x1d5)](({index:_0x271bc7})=>_0x271bc7===_0xc48ea4);if(_0x32670a)return[_0x1f915c(_0x32670a)];}return null;}[_0x46b996(0x1be)](_0x5cb24c,_0x4b78c2){const _0x4842ba=_0x46b996,_0x4b45f8=_0x5cb24c?_0x4842ba(0x192):_0x4842ba(0x19a);_0x4b78c2?_0x4b78c2[_0x4842ba(0x1b8)](_0x3195fc=>{const _0x53b69f=_0x4842ba,_0x26e59c=this[_0x53b69f(0x1bd)][_0x4b45f8],_0xd58f27=_0x26e59c[_0x53b69f(0x1d5)](({index:_0x15391d})=>_0x15391d===_0x3195fc[_0x53b69f(0x18f)]);if(_0xd58f27){const _0x4fa921=_0x26e59c[_0x53b69f(0x1c3)](_0xd58f27);_0x26e59c[_0x53b69f(0x1bc)](_0x4fa921,0x1,_0x3195fc);}else _0x26e59c[_0x53b69f(0x1cd)](_0x3195fc);}):this[_0x4842ba(0x1bd)][_0x4b45f8][_0x4842ba(0x1ae)]=0x0;}[_0x46b996(0x1a9)](){const _0x1271be=_0x46b996;if(_0x1271be(0x1a2)===this[_0x1271be(0x1d6)]){this[_0x1271be(0x19e)]=this[_0x1271be(0x1a0)][_0x1271be(0x1d4)](this[_0x1271be(0x1c4)]);const _0x4af816=this[_0x1271be(0x1b6)];this[_0x1271be(0x195)]();const _0xd986e7=this[_0x1271be(0x1b0)](_0x4af816,this[_0x1271be(0x1b6)]);(_0xd986e7[_0x1271be(0x1ae)]||this[_0x1271be(0x1a6)])&&(this[_0x1271be(0x19f)](_0x1271be(0x1cb),this,_0xd986e7),this[_0x1271be(0x1bd)][_0x1271be(0x192)][_0x1271be(0x1ae)]=this[_0x1271be(0x1bd)][_0x1271be(0x19a)][_0x1271be(0x1ae)]=0x0);}else this[_0x1271be(0x19e)]=this[_0x1271be(0x1a0)][_0x1271be(0x1c0)](this[_0x1271be(0x1c4)]),this[_0x1271be(0x19f)](_0x1271be(0x1cb),this);}[_0x46b996(0x1b0)](_0x1d4879,_0x566de7){const _0x1fa08e=_0x46b996,_0x59f222=[];for(const _0x19dc7d of _0x566de7){const _0x46ac33=_0x1d4879[_0x19dc7d[_0x1fa08e(0x18f)]];_0x46ac33?_0x46ac33[_0x1fa08e(0x193)][_0x1fa08e(0x1ae)]!==_0x19dc7d[_0x1fa08e(0x193)][_0x1fa08e(0x1ae)]?_0x59f222[_0x1fa08e(0x1cd)](_0x19dc7d):_0x46ac33[_0x1fa08e(0x193)][_0x1fa08e(0x1b8)]((_0x164505,_0x3075b6)=>{const _0x499898=_0x1fa08e,_0x290a3c=_0x19dc7d[_0x499898(0x193)][_0x3075b6];_0x164505['id']!==_0x290a3c['id']&&_0x59f222[_0x499898(0x1cd)](_0x19dc7d);}):_0x59f222[_0x1fa08e(0x1cd)](_0x19dc7d);}return _0x59f222;}[_0x46b996(0x195)](){const _0x56125b=_0x46b996,_0x11cf52=new _0x488ec8('p',{},[new _0x488ec8(_0x56125b(0x1c1),{'style':_0x56125b(0x1b2)},[new _0x12681e(_0x5873f5(this[_0x56125b(0x1c7)][_0x56125b(0x1b1)],_0x56125b(0x198)))])]),_0x195396=this[_0x56125b(0x1af)][_0x56125b(0x1d8)](this[_0x56125b(0x19e)],this[_0x56125b(0x196)][_0x56125b(0x1a3)](!0x0),{'markUnstableElements':!this[_0x56125b(0x1a6)],'replaceRemovedWith':_0x11cf52,'cutAfterLastChange':!this[_0x56125b(0x1a6)]});if(!_0x195396[_0x56125b(0x1d0)][_0x56125b(0x1ae)]&&!this[_0x56125b(0x1a6)])return;this[_0x56125b(0x1a5)]=_0x195396[_0x56125b(0x19e)];let _0x253e89=[];if(_0x333979(_0x1dd9be=>{const _0x39f90f=_0x56125b,_0x274e20=_0x2f97af(_0x1dd9be,_0x39f90f(0x1cc));if(!_0x274e20||!_0x49ec12(_0x274e20))return!0x1;const _0x7612a7=[_0x1dd9be,..._0x209124(_0x1dd9be)]['at'](-0x2);if(_0x1dd9be!=_0x7612a7){const _0x5b67da=_0x2f97af(_0x7612a7,_0x39f90f(0x1cc));_0x49ec12(_0x5b67da)||(_0x253e89[_0x39f90f(0x1cd)]({'node':_0x7612a7,'id':_0x5b67da,'type':_0x39f90f(0x199)}),_0x195396[_0x39f90f(0x1d0)][_0x39f90f(0x1cd)](_0x5b67da));}else _0x195396[_0x39f90f(0x1d0)][_0x39f90f(0x1d9)](_0x274e20)?_0x253e89[_0x39f90f(0x1cd)]({'node':_0x1dd9be,'type':_0x39f90f(0x199),'id':_0x274e20}):_0x195396[_0x39f90f(0x1ca)][_0x39f90f(0x1d9)](_0x274e20)?_0x253e89[_0x39f90f(0x1cd)]({'node':_0x1dd9be,'type':_0x39f90f(0x1c9),'id':_0x274e20,'anchorId':_0x2f97af(_0x1dd9be[_0x39f90f(0x1b5)],_0x39f90f(0x1cc))}):_0x253e89[_0x39f90f(0x1cd)]({'node':_0x1dd9be,'type':_0x39f90f(0x1a1),'id':_0x274e20});return!0x0;},this[_0x56125b(0x1a5)]),_0x253e89=_0x253e89[_0x56125b(0x194)](({node:_0x23f20f})=>[..._0x209124(_0x23f20f),_0x23f20f][_0x56125b(0x1a8)](_0x1df209=>!_0x2f97af(_0x1df209,_0x56125b(0x191)))),0x0==_0x253e89[_0x56125b(0x1ae)])return;const _0x2f6192=[[_0x253e89[0x0]]];for(let _0x7f3dd7=0x1;_0x7f3dd7<_0x253e89[_0x56125b(0x1ae)];_0x7f3dd7++){const _0x25d059=_0x2f6192[_0x2f6192[_0x56125b(0x1ae)]-0x1],_0x1c71ef=_0x25d059[_0x25d059[_0x56125b(0x1ae)]-0x1];_0x253e89[_0x7f3dd7][_0x56125b(0x1d1)][_0x56125b(0x1b5)]==_0x1c71ef[_0x56125b(0x1d1)]&&_0x56125b(0x199)!=_0x253e89[_0x7f3dd7][_0x56125b(0x1d6)]&&_0x56125b(0x199)!=_0x1c71ef[_0x56125b(0x1d6)]?_0x25d059[_0x56125b(0x1cd)](_0x253e89[_0x7f3dd7]):_0x2f6192[_0x56125b(0x1cd)]([_0x253e89[_0x7f3dd7]]);}for(const _0x20564f of _0x2f6192){const _0x530af5=_0x20564f[0x0],_0x10e3a1=_0x20564f[_0x20564f[_0x56125b(0x1ae)]-0x1],_0x1ab238=_0x555645(_0x530af5[_0x56125b(0x1d1)][_0x56125b(0x1b5)]);_0x1ab238&&_0x20564f[_0x56125b(0x1bb)](_0x1ab238);const _0x33606b=_0x555645(_0x10e3a1[_0x56125b(0x1d1)][_0x56125b(0x1b9)]);_0x33606b&&_0x20564f[_0x56125b(0x1cd)](_0x33606b);}function _0x49ec12(_0x535f8e){const _0x3b9f7d=_0x56125b;return _0x195396[_0x3b9f7d(0x1d0)][_0x3b9f7d(0x1d9)](_0x535f8e)||_0x195396[_0x3b9f7d(0x1ca)][_0x3b9f7d(0x1d9)](_0x535f8e)||_0x195396[_0x3b9f7d(0x1ba)][_0x3b9f7d(0x1d9)](_0x535f8e);}function _0x555645(_0x263002){const _0x5bdf80=_0x56125b;if(_0x263002&&_0x2f97af(_0x263002,_0x5bdf80(0x1cc))&&!_0x2f97af(_0x263002,_0x5bdf80(0x191))){const _0x5a0f7c=_0x2f97af(_0x263002,_0x5bdf80(0x1cc));if(!_0x49ec12(_0x5a0f7c))return{'node':_0x263002,'type':_0x5bdf80(0x1db),'id':_0x5a0f7c};}return null;}this[_0x56125b(0x1b6)]=_0x2f6192[_0x56125b(0x190)]((_0x18b685,_0x100d62)=>({'changes':_0x18b685,'state':_0x56125b(0x1c8),'index':_0x100d62}));}}
23
+ const _0x1ab8e2=_0x4ab1;(function(_0x331b5e,_0x531c65){const _0x3d5dfa=_0x4ab1,_0x485939=_0x331b5e();while(!![]){try{const _0x410b48=-parseInt(_0x3d5dfa(0x1e4))/0x1+-parseInt(_0x3d5dfa(0x1d4))/0x2*(-parseInt(_0x3d5dfa(0x217))/0x3)+parseInt(_0x3d5dfa(0x1e1))/0x4*(-parseInt(_0x3d5dfa(0x20d))/0x5)+-parseInt(_0x3d5dfa(0x1f7))/0x6+-parseInt(_0x3d5dfa(0x213))/0x7*(-parseInt(_0x3d5dfa(0x1e3))/0x8)+-parseInt(_0x3d5dfa(0x1fa))/0x9+parseInt(_0x3d5dfa(0x1f2))/0xa;if(_0x410b48===_0x531c65)break;else _0x485939['push'](_0x485939['shift']());}catch(_0x11661d){_0x485939['push'](_0x485939['shift']());}}}(_0x51d7,0x2c9a8));import{CKEditorError as _0x27a916,ObservableMixin as _0x3c2c15,uid as _0x23d6eb}from'ckeditor5/src/utils.js';import{Element as _0x517749,findAll as _0x672614,getAttribute as _0x49231b,getParents as _0x12e21c,Document as _0x174741,parse as _0x3ed254,Text as _0xc45a0c}from'../utils/htmlparser.js';import{AIResponseParser as _0xe994e4}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19c1b3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x4e81a6}from'../utils/getsuggestionpartsfromreply.js';function _0x4ab1(_0x486c7c,_0x3d9b88){const _0x51d7f3=_0x51d7();return _0x4ab1=function(_0x4ab165,_0x9cf4b2){_0x4ab165=_0x4ab165-0x1cd;let _0x3d497a=_0x51d7f3[_0x4ab165];return _0x3d497a;},_0x4ab1(_0x486c7c,_0x3d9b88);}import{getTranslation as _0x59b766}from'../utils/common-translations.js';import{cloneDeep as _0x357faf}from'es-toolkit';export class AIReply extends _0x3c2c15(){['id'];[_0x1ab8e2(0x211)];[_0x1ab8e2(0x1d3)];[_0x1ab8e2(0x202)]=[];[_0x1ab8e2(0x1e7)]=new _0x174741([]);[_0x1ab8e2(0x1f3)]=new _0x174741([]);[_0x1ab8e2(0x1cf)]=[];[_0x1ab8e2(0x1d6)]=!0x1;[_0x1ab8e2(0x1e2)];[_0x1ab8e2(0x210)];[_0x1ab8e2(0x209)];[_0x1ab8e2(0x1d0)];[_0x1ab8e2(0x1dc)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5e6be,content:_0x311562='',isDone:_0x5cf712=!0x1,interactionId:_0x58546d,areActionsDisabled:_0x521f02,documentContextContent:_0x127774,editor:_0x4d29a4,id:_0x166aa5}){const _0x3d1f16=_0x1ab8e2;super(),this['id']=_0x166aa5||_0x23d6eb(),this[_0x3d1f16(0x211)]=_0x58546d,this[_0x3d1f16(0x1d3)]=_0x5e6be,this[_0x3d1f16(0x1d6)]=!!_0x521f02,this[_0x3d1f16(0x1d0)]=_0x4d29a4,this[_0x3d1f16(0x210)]=new _0xe994e4(),this[_0x3d1f16(0x209)]=new _0x19c1b3(),this[_0x3d1f16(0x1e2)]=_0x3ed254(_0x127774||''),this[_0x3d1f16(0x1ea)](_0x3d1f16(0x1df),_0x5cf712),this['on'](_0x3d1f16(0x208),()=>{const _0x10b8f6=_0x3d1f16;this[_0x10b8f6(0x212)]();}),this[_0x3d1f16(0x1ea)](_0x3d1f16(0x20a),_0x311562);}[_0x1ab8e2(0x215)](_0x53df6c){const _0x39eb0d=_0x1ab8e2;this[_0x39eb0d(0x1ea)](_0x39eb0d(0x20a),this[_0x39eb0d(0x20a)]+_0x53df6c);}[_0x1ab8e2(0x1d7)](){const _0x32e439=_0x1ab8e2;this[_0x32e439(0x1df)]||(this[_0x32e439(0x1ea)](_0x32e439(0x1df),!0x0),this[_0x32e439(0x212)]());}[_0x1ab8e2(0x21c)](){const _0x2cfd54=_0x1ab8e2;this[_0x2cfd54(0x1ce)]();}[_0x1ab8e2(0x1f4)](_0x48b993,_0xa8a78d){const _0xf29b5f=_0x1ab8e2;this[_0xf29b5f(0x1cf)][_0x48b993][_0xf29b5f(0x1fb)]=_0xa8a78d,this[_0xf29b5f(0x1d8)](_0xf29b5f(0x1fd),{'reply':this,'index':_0x48b993,'state':_0xa8a78d});}[_0x1ab8e2(0x214)]({showDiff:_0x3998f3,groupIndex:_0x521bae}){const _0x48bc9e=_0x1ab8e2;if(!this[_0x48bc9e(0x1d0)])throw new _0x27a916(_0x48bc9e(0x1fe),null,{'aiReply':this});const _0x73e7af=this[_0x48bc9e(0x1ed)](_0x3998f3,_0x521bae);if(_0x73e7af)return _0x73e7af;let _0x299ad9=[];if(void 0x0===_0x521bae)_0x299ad9=this[_0x48bc9e(0x1cf)];else{const _0x2e84e8=this[_0x48bc9e(0x1cf)][_0x48bc9e(0x1de)](({index:_0x3c3f6c})=>_0x3c3f6c===_0x521bae);if(!_0x2e84e8)throw new _0x27a916(_0x48bc9e(0x1f9),null,{'aiReply':this,'groupIndex':_0x521bae});_0x299ad9=[_0x2e84e8];}const _0x2c770b=_0x4e81a6({'editor':this[_0x48bc9e(0x1d0)],'showDiff':_0x3998f3,'changeGroups':_0x299ad9,'documentContextContent':this[_0x48bc9e(0x1e2)]});return this[_0x48bc9e(0x1d1)](_0x3998f3,_0x2c770b),_0x2c770b;}[_0x1ab8e2(0x1ed)](_0x5a2631,_0x26e62a){const _0x320631=_0x1ab8e2,_0x5188fa=_0x5a2631?_0x320631(0x1f0):_0x320631(0x1d5);if(!this[_0x320631(0x1dc)][_0x5188fa][_0x320631(0x20b)])return null;const _0x2e2d86=this[_0x320631(0x1dc)][_0x5188fa];if(void 0x0===_0x26e62a)return _0x2e2d86[_0x320631(0x20b)]>0x0&&_0x2e2d86[_0x320631(0x20b)]!==this[_0x320631(0x1cf)][_0x320631(0x20b)]?(this[_0x320631(0x1d1)](_0x5a2631,null),null):_0x357faf(_0x2e2d86);{const _0x4c223c=_0x2e2d86[_0x320631(0x1de)](({index:_0x259188})=>_0x259188===_0x26e62a);if(_0x4c223c)return[_0x357faf(_0x4c223c)];}return null;}[_0x1ab8e2(0x1d1)](_0x51a900,_0x62b801){const _0x2af962=_0x1ab8e2,_0x679df0=_0x51a900?_0x2af962(0x1f0):_0x2af962(0x1d5);_0x62b801?_0x62b801[_0x2af962(0x203)](_0x37a936=>{const _0x51bb70=_0x2af962,_0x231b38=this[_0x51bb70(0x1dc)][_0x679df0],_0x283a04=_0x231b38[_0x51bb70(0x1de)](({index:_0x2b964d})=>_0x2b964d===_0x37a936[_0x51bb70(0x1e0)]);if(_0x283a04){const _0x530de3=_0x231b38[_0x51bb70(0x1d9)](_0x283a04);_0x231b38[_0x51bb70(0x1eb)](_0x530de3,0x1,_0x37a936);}else _0x231b38[_0x51bb70(0x1ef)](_0x37a936);}):this[_0x2af962(0x1dc)][_0x679df0][_0x2af962(0x20b)]=0x0;}[_0x1ab8e2(0x212)](){const _0x5813e3=_0x1ab8e2;if(_0x5813e3(0x20e)===this[_0x5813e3(0x1d3)]){this[_0x5813e3(0x1e7)]=this[_0x5813e3(0x210)][_0x5813e3(0x1cd)](this[_0x5813e3(0x20a)]);const _0x6b8b36=this[_0x5813e3(0x1cf)];this[_0x5813e3(0x206)]();const _0x478f87=this[_0x5813e3(0x207)](_0x6b8b36,this[_0x5813e3(0x1cf)]);(_0x478f87[_0x5813e3(0x20b)]||this[_0x5813e3(0x1df)])&&(this[_0x5813e3(0x1d8)](_0x5813e3(0x1d2),this,_0x478f87),this[_0x5813e3(0x1dc)][_0x5813e3(0x1f0)][_0x5813e3(0x20b)]=this[_0x5813e3(0x1dc)][_0x5813e3(0x1d5)][_0x5813e3(0x20b)]=0x0);}else this[_0x5813e3(0x1e7)]=this[_0x5813e3(0x210)][_0x5813e3(0x20c)](this[_0x5813e3(0x20a)]),this[_0x5813e3(0x1d8)](_0x5813e3(0x1d2),this);}[_0x1ab8e2(0x207)](_0x431942,_0x19051b){const _0xec8431=_0x1ab8e2,_0x18a220=[];for(const _0x13e199 of _0x19051b){const _0x12e68c=_0x431942[_0x13e199[_0xec8431(0x1e0)]];_0x12e68c?_0x12e68c[_0xec8431(0x1ec)][_0xec8431(0x20b)]!==_0x13e199[_0xec8431(0x1ec)][_0xec8431(0x20b)]?_0x18a220[_0xec8431(0x1ef)](_0x13e199):_0x12e68c[_0xec8431(0x1ec)][_0xec8431(0x203)]((_0x319c3f,_0x5569c7)=>{const _0xabc5fd=_0xec8431,_0x1e31b6=_0x13e199[_0xabc5fd(0x1ec)][_0x5569c7];_0x319c3f['id']!==_0x1e31b6['id']&&_0x18a220[_0xabc5fd(0x1ef)](_0x13e199);}):_0x18a220[_0xec8431(0x1ef)](_0x13e199);}return _0x18a220;}[_0x1ab8e2(0x206)](){const _0x1c04b9=_0x1ab8e2,_0x3cda5d=new _0x517749('p',{},[new _0x517749(_0x1c04b9(0x204),{'style':_0x1c04b9(0x1f1)},[new _0xc45a0c(_0x59b766(this[_0x1c04b9(0x1d0)][_0x1c04b9(0x1e8)],_0x1c04b9(0x1f8)))])]),_0x401bbb=this[_0x1c04b9(0x209)][_0x1c04b9(0x218)](this[_0x1c04b9(0x1e7)],this[_0x1c04b9(0x1e2)][_0x1c04b9(0x1f6)](!0x0),{'markUnstableElements':!this[_0x1c04b9(0x1df)],'replaceRemovedWith':_0x3cda5d,'cutAfterLastChange':!this[_0x1c04b9(0x1df)]});if(!_0x401bbb[_0x1c04b9(0x1da)][_0x1c04b9(0x20b)]&&!this[_0x1c04b9(0x1df)])return;this[_0x1c04b9(0x1f3)]=_0x401bbb[_0x1c04b9(0x1e7)];let _0x2ef34a=[];if(_0x672614(_0x16bf38=>{const _0x4a13cf=_0x1c04b9,_0x3a04ef=_0x49231b(_0x16bf38,_0x4a13cf(0x21a));if(!_0x3a04ef||!_0x290354(_0x3a04ef))return!0x1;const _0x57d37a=[_0x16bf38,..._0x12e21c(_0x16bf38)]['at'](-0x2);if(_0x16bf38!=_0x57d37a){const _0x13f895=_0x49231b(_0x57d37a,_0x4a13cf(0x21a));_0x290354(_0x13f895)||(_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x57d37a,'id':_0x13f895,'type':_0x4a13cf(0x1ff)}),_0x401bbb[_0x4a13cf(0x1da)][_0x4a13cf(0x1ef)](_0x13f895));}else _0x401bbb[_0x4a13cf(0x1da)][_0x4a13cf(0x200)](_0x3a04ef)?_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1ff),'id':_0x3a04ef}):_0x401bbb[_0x4a13cf(0x1e9)][_0x4a13cf(0x200)](_0x3a04ef)?_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1e6),'id':_0x3a04ef,'anchorId':_0x49231b(_0x16bf38[_0x4a13cf(0x21b)],_0x4a13cf(0x21a))}):_0x2ef34a[_0x4a13cf(0x1ef)]({'node':_0x16bf38,'type':_0x4a13cf(0x1fc),'id':_0x3a04ef});return!0x0;},this[_0x1c04b9(0x1f3)]),_0x2ef34a=_0x2ef34a[_0x1c04b9(0x219)](({node:_0x4af6ea})=>[..._0x12e21c(_0x4af6ea),_0x4af6ea][_0x1c04b9(0x1db)](_0x261f4a=>!_0x49231b(_0x261f4a,_0x1c04b9(0x20f)))),0x0==_0x2ef34a[_0x1c04b9(0x20b)])return;const _0xd1a573=[[_0x2ef34a[0x0]]];for(let _0x13d0ab=0x1;_0x13d0ab<_0x2ef34a[_0x1c04b9(0x20b)];_0x13d0ab++){const _0x587a94=_0xd1a573[_0xd1a573[_0x1c04b9(0x20b)]-0x1],_0x2cd076=_0x587a94[_0x587a94[_0x1c04b9(0x20b)]-0x1];_0x2ef34a[_0x13d0ab][_0x1c04b9(0x1dd)][_0x1c04b9(0x21b)]==_0x2cd076[_0x1c04b9(0x1dd)]&&_0x1c04b9(0x1ff)!=_0x2ef34a[_0x13d0ab][_0x1c04b9(0x1d3)]&&_0x1c04b9(0x1ff)!=_0x2cd076[_0x1c04b9(0x1d3)]?_0x587a94[_0x1c04b9(0x1ef)](_0x2ef34a[_0x13d0ab]):_0xd1a573[_0x1c04b9(0x1ef)]([_0x2ef34a[_0x13d0ab]]);}for(const _0x43f195 of _0xd1a573){const _0x239d06=_0x43f195[0x0],_0xf025e=_0x43f195[_0x43f195[_0x1c04b9(0x20b)]-0x1],_0x34c3ae=_0x49ee21(_0x239d06[_0x1c04b9(0x1dd)][_0x1c04b9(0x21b)]);_0x34c3ae&&_0x43f195[_0x1c04b9(0x1e5)](_0x34c3ae);const _0x182069=_0x49ee21(_0xf025e[_0x1c04b9(0x1dd)][_0x1c04b9(0x216)]);_0x182069&&_0x43f195[_0x1c04b9(0x1ef)](_0x182069);}function _0x290354(_0x2f3fd2){const _0x2a060f=_0x1c04b9;return _0x401bbb[_0x2a060f(0x1da)][_0x2a060f(0x200)](_0x2f3fd2)||_0x401bbb[_0x2a060f(0x1e9)][_0x2a060f(0x200)](_0x2f3fd2)||_0x401bbb[_0x2a060f(0x1f5)][_0x2a060f(0x200)](_0x2f3fd2);}function _0x49ee21(_0xc38fa9){const _0x215834=_0x1c04b9;if(_0xc38fa9&&_0x49231b(_0xc38fa9,_0x215834(0x21a))&&!_0x49231b(_0xc38fa9,_0x215834(0x20f))){const _0x323bd7=_0x49231b(_0xc38fa9,_0x215834(0x21a));if(!_0x290354(_0x323bd7))return{'node':_0xc38fa9,'type':_0x215834(0x201),'id':_0x323bd7};}return null;}this[_0x1c04b9(0x1cf)]=_0xd1a573[_0x1c04b9(0x205)]((_0x197cca,_0x4c89be)=>({'changes':_0x197cca,'state':_0x1c04b9(0x1ee),'index':_0x4c89be}));}}function _0x51d7(){const _0x47831e=['846318fEEWwG','AI_SUGGESTION_CONTENT_PART_REMOVED','ai-reply-get-content-parts-group-not-found','1679058nSMaRz','state','removed','replyChangeGroupStateUpdated','ai-get-editor-from-context-no-editor','modified','includes','context','sources','forEach','span','map','updateChangeGroups','_getDifferentChangeGroups','change:content','aiResponseApplier','content','length','convertMarkdownToHTML','3870IKUbuS','modification','data-unstable','aiResponseParser','interactionId','onContentChange','2321977spIddJ','getContentParts','appendContent','nextSibling','15CiRsHU','merge','filter','data-id','previousSibling','destroy','parseAndNormalizeHTML','stopListening','changeGroups','editor','_setCachedContentParts','replyContentUpdated','type','42954YJeIIX','withoutDiff','areActionsDisabled','done','fire','indexOf','modifiedNodeIds','every','cachedSuggestionContentParts','node','find','isDone','index','12Zwksoa','documentContextContent','8WgfhDF','274050cjmJfx','unshift','new','parsedContent','locale','newNodeIds','set','splice','changes','_getCachedContentParts','pending','push','withDiff','color:\x20#808080;\x20font-style:\x20italic','3475870GQpfvX','parsedMergedContent','setChangeGroupState','removedNodeIds','cloneNode'];_0x51d7=function(){return _0x47831e;};return _0x51d7();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x523769=_0xe269;(function(_0x4c6246,_0x4a4451){const _0x31e850=_0xe269,_0x13fc17=_0x4c6246();while(!![]){try{const _0x2987c2=-parseInt(_0x31e850(0xf7))/0x1*(-parseInt(_0x31e850(0x112))/0x2)+-parseInt(_0x31e850(0xf4))/0x3*(parseInt(_0x31e850(0xd9))/0x4)+parseInt(_0x31e850(0x111))/0x5*(parseInt(_0x31e850(0xdf))/0x6)+-parseInt(_0x31e850(0x104))/0x7+-parseInt(_0x31e850(0xf8))/0x8*(parseInt(_0x31e850(0xfa))/0x9)+parseInt(_0x31e850(0xf9))/0xa*(parseInt(_0x31e850(0xed))/0xb)+-parseInt(_0x31e850(0xe2))/0xc*(-parseInt(_0x31e850(0xe8))/0xd);if(_0x2987c2===_0x4a4451)break;else _0x13fc17['push'](_0x13fc17['shift']());}catch(_0x324518){_0x13fc17['push'](_0x13fc17['shift']());}}}(_0x5a23,0x5b5ff));import{ObservableMixin as _0x3db2e1,uid as _0x3d5bed}from'ckeditor5/src/utils.js';function _0xe269(_0x3bec18,_0x2df307){const _0x5a2303=_0x5a23();return _0xe269=function(_0xe2693f,_0x2d2ced){_0xe2693f=_0xe2693f-0xd3;let _0x2d1ed5=_0x5a2303[_0xe2693f];return _0x2d1ed5;},_0xe269(_0x3bec18,_0x2df307);}import{findAllByAttribute as _0x35f01e,findByAttribute as _0x4c0911,getAttribute as _0x4099fd,isComment as _0x28b93f,isTag as _0x5ab42b,insertElement as _0x2947e3,moveElement as _0x36cff0,removeElement as _0x18083f,replaceElement as _0x20b24e,serialize as _0x211014,setAttribute as _0x621c67,clone as _0x4ac7d8,findAllComments as _0x5d3668,getParents as _0x2a51bc,getNodeNestingLevel as _0x5e8c39,areNodesSame as _0x28b47b,removeElementsAfter as _0x519d29}from'../utils/htmlparser.js';function _0x5a23(){const _0x231448=['indexOf','data-wrapped-id','_findPrevElementWithDataId','_getUid','_markLastTagElementUnstable','data-id','splice','invalidIds','merge','match','4dcokWw','push','map','_findReferenceNode','true','modifiedIds','8982YemEBG','slice','cutAfterLastChange','660zSxGlh','lastTouchedId','_removeSpecialComments','childNodes','_markUnstableElements','nodeType','203723BWuXPe','cloneNode','_isExistingNode','_generateUid','_storeDeletedElementIds','3740957yHARSu','markUnstableElementsDepth','_hasWrappedParent','_getNodeDataId','_findNextElementWithDataId','_isNewNode','trim','1395807qpMQyJ','_isExistingContentComment','filter','131YIjADj','16qRbjWd','10iieAzz','430659UXvOVj','_findFallbackReferenceNode','removedIds','beforebegin','has','lastChild','afterbegin','length','forEach','from','3283476oKkqyN','includes','markUnstableElements','_existingDataIds','new-element','afterend','_touchedNodesState','data-removed','_markWrappedElements','reverse','newIds','previousSibling','_replaceNode','75JVGNZP','2746WNTXKf','_isDelNode','parentNode','data-unstable','nextSibling','replaceRemovedWith','_insertNodes'];_0x5a23=function(){return _0x231448;};return _0x5a23();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x3db2e1(){[_0x523769(0xeb)];[_0x523769(0x10a)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x523769(0x107)]=new Set();constructor(_0x2b9825){const _0x1b3566=_0x523769;super(),this[_0x1b3566(0xeb)]=_0x2b9825||_0x3d5bed;}[_0x523769(0xd7)](_0x18e557,_0x5c87d0,_0x5327fc){const _0x22f27f=_0x523769,_0x2fc627=_0x4ac7d8(_0x18e557);if(0x0===_0x5c87d0[_0x22f27f(0xe5)][_0x22f27f(0x101)]){const _0x1cd4c7=[];return _0x35f01e(_0x22f27f(0xd4),_0x22f27f(0x108),_0x2fc627)[_0x22f27f(0x102)](_0x218090=>{const _0x22a7bf=_0x22f27f,_0x3c11b0=this[_0x22a7bf(0xeb)]();_0x621c67(_0x218090,_0x22a7bf(0xd4),_0x3c11b0),_0x1cd4c7[_0x22a7bf(0xda)](_0x3c11b0);}),this[_0x22f27f(0xe4)](_0x2fc627),{'parsedContent':_0x2fc627,'newNodeIds':_0x1cd4c7,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5327fc&&_0x5327fc[_0x22f27f(0x106)]&&this[_0x22f27f(0xd3)](_0x2fc627),this[_0x22f27f(0x10a)][_0x22f27f(0x10e)]=[],this[_0x22f27f(0x10a)][_0x22f27f(0xde)]=[],this[_0x22f27f(0x10a)][_0x22f27f(0xfc)]=[],this[_0x22f27f(0x10a)][_0x22f27f(0xd6)]=[],this[_0x22f27f(0x10a)][_0x22f27f(0xe3)]=null,this[_0x22f27f(0x107)]=new Set(_0x35f01e(_0x22f27f(0xd4),null,_0x5c87d0)[_0x22f27f(0xdb)](_0x5ad86f=>_0x4099fd(_0x5ad86f,_0x22f27f(0xd4)))[_0x22f27f(0xf6)](_0x2f0ad5=>!!_0x2f0ad5));let _0x17897b=-0x1,_0x43a3b8=!0x1;const _0x26abb5=_0x2fc627[_0x22f27f(0xe5)],_0x2d3ba8=Array[_0x22f27f(0x103)](_0x26abb5)[_0x22f27f(0xf6)](_0x5d45fe=>!(0x3===_0x5d45fe[_0x22f27f(0xe7)]&&''===_0x211014(_0x5d45fe)[_0x22f27f(0xf3)]())),_0x1a80e5=_0x2d3ba8[_0x22f27f(0x101)];for(let _0x5ba49a=0x0;_0x5ba49a<_0x1a80e5;_0x5ba49a++){const _0x401015=_0x2d3ba8[_0x5ba49a],_0x448a14=_0x2d3ba8[_0x5ba49a+0x1];if(this[_0x22f27f(0xf2)](_0x401015)){if(-0x1===_0x17897b&&(_0x17897b=_0x5ba49a),this[_0x22f27f(0x10c)](_0x401015),!this[_0x22f27f(0xf2)](_0x448a14)){const [_0x51d5f3,_0x2d41b3]=this[_0x22f27f(0xdc)](_0x401015,_0x43a3b8,_0x5c87d0);if(_0x51d5f3){const _0xc37136=Array[_0x22f27f(0x103)](_0x2d3ba8)[_0x22f27f(0xe0)](_0x17897b,_0x5ba49a+0x1);this[_0x22f27f(0x118)](_0x51d5f3,_0xc37136,_0x2d41b3),_0x17897b=-0x1;}}}else{if(this[_0x22f27f(0xf5)](_0x401015))_0x43a3b8=!0x0;else{if(this[_0x22f27f(0xea)](_0x401015)){const _0x5a4cef=_0x4099fd(_0x401015,_0x22f27f(0xd4));if(_0x5a4cef&&this[_0x22f27f(0x107)][_0x22f27f(0xfe)](_0x5a4cef)){const _0x424a3c=_0x4c0911(_0x22f27f(0xd4),_0x5a4cef,_0x5c87d0);this[_0x22f27f(0x110)](_0x424a3c,_0x401015);}if(this[_0x22f27f(0x10a)][_0x22f27f(0xfc)][_0x22f27f(0x105)](_0x5a4cef)){const _0x1f5b1a=this[_0x22f27f(0x10a)][_0x22f27f(0xfc)][_0x22f27f(0x119)](_0x5a4cef);this[_0x22f27f(0x10a)][_0x22f27f(0xfc)][_0x22f27f(0xd5)](_0x1f5b1a,0x1);}}else{if(this[_0x22f27f(0x113)](_0x401015)){const _0x3ae73a=_0x4099fd(_0x401015,_0x22f27f(0xd4));this[_0x22f27f(0x10a)][_0x22f27f(0xde)][_0x22f27f(0x105)](_0x3ae73a)||this[_0x22f27f(0xec)](_0x401015);}}}}}for(const _0x11cdcd of this[_0x22f27f(0x10a)][_0x22f27f(0xfc)]){const _0x2fadc7=_0x4c0911(_0x22f27f(0xd4),_0x11cdcd,_0x5c87d0);if(_0x2fadc7){if(_0x5327fc&&_0x5327fc[_0x22f27f(0x117)]){this[_0x22f27f(0x10a)][_0x22f27f(0xe3)]=_0x11cdcd;const _0xf74467=_0x5327fc[_0x22f27f(0x117)][_0x22f27f(0xe9)](!0x0);_0x621c67(_0xf74467,_0x22f27f(0xd4),_0x11cdcd),_0x621c67(_0xf74467,_0x22f27f(0x10b),_0x22f27f(0xdd)),_0x20b24e(_0x2fadc7,_0xf74467);}else _0x18083f(_0x2fadc7);}}if(_0x35f01e(_0x22f27f(0x11a),null,_0x5c87d0)[_0x22f27f(0x102)](_0x2cfb0a=>{const _0x2d9ed3=_0x22f27f,_0x470a80=_0x4099fd(_0x2cfb0a,_0x2d9ed3(0x11a)),_0x2f266d=_0x4c0911(_0x2d9ed3(0xd4),_0x470a80,_0x5c87d0);_0x2f266d&&_0x36cff0(_0x2f266d,_0x2cfb0a);}),_0x35f01e(_0x22f27f(0xd4),_0x22f27f(0x108),_0x5c87d0)[_0x22f27f(0x102)](_0x3633ce=>{const _0x2ebc82=_0x22f27f,_0x5a6f9e=this[_0x2ebc82(0x11c)](_0x3633ce);_0x621c67(_0x3633ce,_0x2ebc82(0xd4),_0x5a6f9e),this[_0x2ebc82(0x10a)][_0x2ebc82(0x10e)][_0x2ebc82(0xda)](_0x5a6f9e);}),this[_0x22f27f(0xe4)](_0x5c87d0),_0x5327fc&&_0x5327fc[_0x22f27f(0x106)]&&this[_0x22f27f(0xe6)](_0x5c87d0,_0x5327fc[_0x22f27f(0xee)]||0x0),_0x5327fc&&_0x5327fc[_0x22f27f(0xe1)]&&this[_0x22f27f(0x10a)][_0x22f27f(0xe3)]){let _0x1d8ef9=_0x4c0911(_0x22f27f(0xd4),this[_0x22f27f(0x10a)][_0x22f27f(0xe3)],_0x5c87d0);for(;_0x1d8ef9;)_0x519d29(_0x1d8ef9),_0x1d8ef9=_0x1d8ef9[_0x22f27f(0x114)];}return{'parsedContent':_0x5c87d0,'newNodeIds':this[_0x22f27f(0x10a)][_0x22f27f(0x10e)],'modifiedNodeIds':this[_0x22f27f(0x10a)][_0x22f27f(0xde)],'removedNodeIds':this[_0x22f27f(0x10a)][_0x22f27f(0xfc)]};}[_0x523769(0x118)](_0x34c8cb,_0x155acc,_0x6500b2){const _0x3bfdd1=_0x523769;for(const _0x1960ba of _0x155acc){const _0xf986c3=this[_0x3bfdd1(0x11c)](_0x1960ba);_0x621c67(_0x1960ba,_0x3bfdd1(0xd4),_0xf986c3),this[_0x3bfdd1(0x10a)][_0x3bfdd1(0x10e)][_0x3bfdd1(0xda)](_0xf986c3),this[_0x3bfdd1(0x10a)][_0x3bfdd1(0xe3)]=_0xf986c3;}const _0x369d9f=_0x3bfdd1(0x100)===_0x6500b2||_0x3bfdd1(0x109)===_0x6500b2?_0x155acc[_0x3bfdd1(0x10d)]():_0x155acc;for(const _0x42f36a of _0x369d9f)_0x2947e3(_0x34c8cb,_0x42f36a,_0x6500b2);}[_0x523769(0x110)](_0x533132,_0x3900b4){const _0x7239d7=_0x523769;if(!_0x533132)return;if(_0x28b47b(_0x533132,_0x3900b4))return;const _0x44a310=this[_0x7239d7(0x11c)](_0x533132);_0x621c67(_0x3900b4,_0x7239d7(0xd4),_0x44a310),this[_0x7239d7(0x10a)][_0x7239d7(0xde)][_0x7239d7(0xda)](_0x44a310),this[_0x7239d7(0x10a)][_0x7239d7(0xe3)]=_0x44a310,_0x20b24e(_0x533132,_0x3900b4[_0x7239d7(0xe9)](!0x0));}[_0x523769(0xdc)](_0x26f0b6,_0x4d1066,_0x229399){const _0x51ad13=_0x523769,_0x2489dd=this[_0x51ad13(0x11b)](_0x26f0b6,!0x1);if(_0x2489dd){const _0x3048ac=this[_0x51ad13(0xf0)](_0x2489dd),_0x4251cc=_0x4c0911(_0x51ad13(0xd4),_0x3048ac,_0x229399);if(_0x4251cc)return[_0x4251cc,_0x51ad13(0x109)];this[_0x51ad13(0x10a)][_0x51ad13(0xd6)][_0x51ad13(0xda)](_0x3048ac);}const _0x405756=this[_0x51ad13(0xf1)](_0x26f0b6,!0x1);if(_0x405756){const _0x2a9ddc=this[_0x51ad13(0xf0)](_0x405756),_0x451f52=_0x4c0911(_0x51ad13(0xd4),_0x2a9ddc,_0x229399);if(_0x451f52)return[_0x451f52,_0x51ad13(0xfd)];this[_0x51ad13(0x10a)][_0x51ad13(0xd6)][_0x51ad13(0xda)](_0x2a9ddc);}return _0x4d1066?_0x26f0b6[_0x51ad13(0x116)]?this[_0x51ad13(0xfb)](_0x26f0b6,_0x229399):[_0x229399[_0x51ad13(0xe5)][_0x229399[_0x51ad13(0xe5)][_0x51ad13(0x101)]-0x1],_0x51ad13(0x109)]:[_0x229399[_0x51ad13(0xe5)][0x0],_0x51ad13(0xfd)];}[_0x523769(0xfb)](_0x3bfa8e,_0x5131e3){const _0x4fc8c8=_0x523769,_0x490e02=[],_0x5850cc=this[_0x4fc8c8(0x11b)](_0x3bfa8e,!0x0);if(_0x5850cc){const _0x2ae509=this[_0x4fc8c8(0xf0)](_0x5850cc),_0x2e8a93=_0x4c0911(_0x4fc8c8(0xd4),_0x2ae509,_0x5131e3);_0x2e8a93&&_0x490e02[_0x4fc8c8(0xda)]([_0x2e8a93,_0x4fc8c8(0x109)]);}const _0xa128eb=this[_0x4fc8c8(0xf1)](_0x3bfa8e,!0x0);if(_0xa128eb){const _0x1c1077=this[_0x4fc8c8(0xf0)](_0xa128eb),_0x4cc5b6=_0x4c0911(_0x4fc8c8(0xd4),_0x1c1077,_0x5131e3);_0x4cc5b6&&_0x490e02[_0x4fc8c8(0xda)]([_0x4cc5b6,_0x4fc8c8(0xfd)]);}if(_0x490e02[_0x4fc8c8(0x101)]>0x1)return _0x5e8c39(_0x490e02[0x0][0x0])<=_0x5e8c39(_0x490e02[0x1][0x0])?_0x490e02[0x0]:_0x490e02[0x1];return 0x1===_0x490e02[_0x4fc8c8(0x101)]?_0x490e02[0x0]:[_0x5131e3[_0x4fc8c8(0xff)],_0x4fc8c8(0x109)];}[_0x523769(0xf1)](_0x5951b6,_0xb60d6a){const _0x441455=_0x523769;let _0x324e94=_0x5951b6[_0x441455(0x116)],_0x6f4e09=null,_0x53d1ab=!0x1;for(;_0x324e94;){if(_0x28b93f(_0x324e94)){if(this[_0x441455(0x113)](_0x324e94)&&(_0x6f4e09=_0x324e94),this[_0x441455(0xf5)](_0x324e94)&&_0xb60d6a&&!_0x53d1ab){_0x53d1ab=!0x0,_0x324e94=_0x324e94[_0x441455(0x116)];continue;}break;}const _0x48ae50=_0x4099fd(_0x324e94,_0x441455(0xd4));if(_0x48ae50&&_0x441455(0x108)!==_0x48ae50&&this[_0x441455(0x107)][_0x441455(0xfe)](_0x48ae50)){_0x6f4e09=_0x324e94;break;}_0x324e94=_0x324e94[_0x441455(0x116)];}return _0x6f4e09;}[_0x523769(0x11b)](_0x50d277,_0x471d3f){const _0x2592a9=_0x523769;let _0x1c3584=_0x50d277[_0x2592a9(0x10f)],_0x21e074=null,_0x4c6585=!0x1;for(;_0x1c3584;){if(_0x28b93f(_0x1c3584)){if(this[_0x2592a9(0x113)](_0x1c3584)&&(_0x21e074=_0x1c3584),this[_0x2592a9(0xf5)](_0x1c3584)&&_0x471d3f&&!_0x4c6585){_0x4c6585=!0x0,_0x1c3584=_0x1c3584[_0x2592a9(0x10f)];continue;}break;}const _0x3a1261=_0x4099fd(_0x1c3584,_0x2592a9(0xd4));if(_0x3a1261&&_0x2592a9(0x108)!==_0x3a1261&&this[_0x2592a9(0x107)][_0x2592a9(0xfe)](_0x3a1261)){_0x21e074=_0x1c3584;break;}_0x1c3584=_0x1c3584[_0x2592a9(0x10f)];}return _0x21e074;}[_0x523769(0x10c)](_0x3c3ca6){const _0x221052=_0x523769;_0x5ab42b(_0x3c3ca6)&&_0x35f01e(_0x221052(0xd4),null,_0x3c3ca6)[_0x221052(0x102)](_0x309f8b=>{const _0x466344=_0x221052;if(this[_0x466344(0xea)](_0x309f8b)&&!this[_0x466344(0xef)](_0x309f8b)){const _0x213b3e=_0x4099fd(_0x309f8b,_0x466344(0xd4));_0x621c67(_0x309f8b,_0x466344(0x11a),_0x213b3e),_0x621c67(_0x309f8b,_0x466344(0xd4),null);}});}[_0x523769(0xf0)](_0x28e90f){const _0x5d7b20=_0x523769;if(!_0x28e90f)return null;if(_0x5ab42b(_0x28e90f))return _0x4099fd(_0x28e90f,_0x5d7b20(0xd4));if(_0x28b93f(_0x28e90f)){const _0x41c0a3=_0x211014(_0x28e90f)[_0x5d7b20(0xd8)](/removed[\s*-]data-id="([^"]+)"/);if(_0x41c0a3&&_0x41c0a3[0x1])return _0x41c0a3[0x1];}return null;}[_0x523769(0xec)](_0x1abdc8){const _0x148885=_0x523769;if(_0x28b93f(_0x1abdc8)){const _0x1cb776=_0x211014(_0x1abdc8)[_0x148885(0xd8)](/removed[\s*-]data-id="([^"]+)"/);_0x1cb776&&_0x1cb776[0x1]&&this[_0x148885(0x10a)][_0x148885(0xfc)][_0x148885(0xda)](_0x1cb776[0x1]);}}[_0x523769(0x11c)](_0x479d81){const _0x51826a=_0x523769;return this[_0x51826a(0xea)](_0x479d81)?_0x4099fd(_0x479d81,_0x51826a(0xd4)):this[_0x51826a(0xeb)]();}[_0x523769(0xe4)](_0xa51535){const _0x4bc4b9=_0x523769;_0x5d3668(_0xa51535)[_0x4bc4b9(0xf6)](_0x72c88=>this[_0x4bc4b9(0x113)](_0x72c88)||this[_0x4bc4b9(0xf5)](_0x72c88))[_0x4bc4b9(0x102)](_0x2a1f3b=>{_0x18083f(_0x2a1f3b);});}[_0x523769(0xd3)](_0x2d14e1){const _0x124ffe=_0x523769,_0x3f622e=_0x2d14e1[_0x124ffe(0xe5)],_0x13bf04=_0x3f622e[_0x3f622e[_0x124ffe(0x101)]-0x1];_0x13bf04&&_0x5ab42b(_0x13bf04)&&_0x621c67(_0x13bf04,_0x124ffe(0x115),_0x124ffe(0xdd));}[_0x523769(0xe6)](_0x253a59,_0x126a71){const _0x53df74=_0x523769,_0x5a7d3b=_0x4c0911(_0x53df74(0x115),_0x53df74(0xdd),_0x253a59);if(!_0x5a7d3b)return;const _0xf0da30=_0x2a51bc(_0x5a7d3b)[_0x53df74(0xe0)](0x0,-0x1),_0x3b7f87=_0xf0da30[_0x53df74(0x101)];let _0x58e1ff=_0x5a7d3b;if(_0x3b7f87>_0x126a71){let _0x3639b9=_0x3b7f87,_0x307f61=null;for(;_0x3639b9>_0x126a71&&_0x3639b9>=0x0;)_0x3639b9--,_0x307f61=_0xf0da30[_0x3639b9];_0x307f61&&(_0x58e1ff=_0x307f61,_0x621c67(_0x5a7d3b,_0x53df74(0x115),null),_0x621c67(_0x307f61,_0x53df74(0x115),_0x53df74(0xdd)));}else{if(_0x3b7f87<_0x126a71){let _0x32a265=_0x3b7f87,_0x4ad277=_0x5a7d3b;for(;_0x32a265<_0x126a71;){const _0x5ea75f=_0x4ad277[_0x53df74(0xe5)][_0x53df74(0xf6)](_0x27664d=>_0x5ab42b(_0x27664d));if(0x0===_0x5ea75f[_0x53df74(0x101)])break;_0x32a265++,_0x4ad277=_0x5ea75f[_0x5ea75f[_0x53df74(0x101)]-0x1];}_0x4ad277&&(_0x58e1ff=_0x4ad277,_0x621c67(_0x5a7d3b,_0x53df74(0x115),null),_0x621c67(_0x4ad277,_0x53df74(0x115),_0x53df74(0xdd)));}}let _0x205591=_0x58e1ff;for(;_0x205591;){for(;_0x205591[_0x53df74(0x116)];)_0x205591=_0x205591[_0x53df74(0x116)],_0x5ab42b(_0x205591)&&_0x621c67(_0x205591,_0x53df74(0x115),_0x53df74(0xdd));_0x205591=_0x205591[_0x53df74(0x114)];}}[_0x523769(0xf2)](_0x5effdf){const _0x12b455=_0x523769;return Boolean(_0x12b455(0x108)===_0x4099fd(_0x5effdf,_0x12b455(0xd4)));}[_0x523769(0xea)](_0xbd73ff){const _0x13afaa=_0x523769;return Boolean((_0x4099fd(_0xbd73ff,_0x13afaa(0xd4))||'')[_0x13afaa(0x101)]>0x0&&_0x13afaa(0x108)!==_0x4099fd(_0xbd73ff,_0x13afaa(0xd4)));}[_0x523769(0x113)](_0xa21d20){const _0x274a9f=_0x523769;return!!_0xa21d20&&Boolean(_0x28b93f(_0xa21d20)&&_0x211014(_0xa21d20)[_0x274a9f(0xd8)](/removed[\s*-]data-id="[^"]+"/));}[_0x523769(0xef)](_0x4a2c99){const _0xd579b2=_0x523769;let _0xf61b6c=_0x4a2c99[_0xd579b2(0x114)];for(;_0xf61b6c;){if(_0x4099fd(_0xf61b6c,_0xd579b2(0x11a)))return!0x0;_0xf61b6c=_0xf61b6c[_0xd579b2(0x114)];}return!0x1;}[_0x523769(0xf5)](_0x18197c){const _0x4f6be1=_0x523769;return Boolean(_0x28b93f(_0x18197c)&&_0x211014(_0x18197c)[_0x4f6be1(0xd8)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x3c9f0e=_0x31b7;function _0x351e(){const _0xbf289c=['283314VKnUUe','63eIcTNm','_findReferenceNode','1198726ESmbGA','1848756NfkPab','_hasWrappedParent','data-unstable','reverse','_findPrevElementWithDataId','cutAfterLastChange','_markLastTagElementUnstable','lastChild','modifiedIds','beforebegin','trim','merge','cloneNode','_removeSpecialComments','new-element','invalidIds','2514843fkSXSm','afterbegin','afterend','has','slice','_markUnstableElements','map','_isNewNode','_existingDataIds','replaceRemovedWith','forEach','previousSibling','8rxdEyp','_findFallbackReferenceNode','11NtMcrD','from','_replaceNode','_markWrappedElements','lastTouchedId','removedIds','_isExistingContentComment','true','16624090ngScBh','_generateUid','markUnstableElements','_findNextElementWithDataId','_isDelNode','filter','_getNodeDataId','_storeDeletedElementIds','_getUid','childNodes','indexOf','1335DfQcKn','match','_insertNodes','push','parentNode','newIds','includes','data-wrapped-id','nextSibling','splice','946232IOIDql','nodeType','2694rzkgTt','_isExistingNode','markUnstableElementsDepth','data-id','data-removed','_touchedNodesState','length'];_0x351e=function(){return _0xbf289c;};return _0x351e();}(function(_0x47a44a,_0x73a3b9){const _0x21b50b=_0x31b7,_0x6baffa=_0x47a44a();while(!![]){try{const _0x54d3f1=parseInt(_0x21b50b(0xa7))/0x1+parseInt(_0x21b50b(0xaa))/0x2+parseInt(_0x21b50b(0xab))/0x3*(-parseInt(_0x21b50b(0x7f))/0x4)+parseInt(_0x21b50b(0x94))/0x5*(parseInt(_0x21b50b(0xa0))/0x6)+-parseInt(_0x21b50b(0xa8))/0x7*(parseInt(_0x21b50b(0x9e))/0x8)+parseInt(_0x21b50b(0x73))/0x9+parseInt(_0x21b50b(0x89))/0xa*(parseInt(_0x21b50b(0x81))/0xb);if(_0x54d3f1===_0x73a3b9)break;else _0x6baffa['push'](_0x6baffa['shift']());}catch(_0x56c2f8){_0x6baffa['push'](_0x6baffa['shift']());}}}(_0x351e,0x9e0d5));import{ObservableMixin as _0x2af682,uid as _0x47511b}from'ckeditor5/src/utils.js';function _0x31b7(_0x443e37,_0x7e90f){const _0x351e89=_0x351e();return _0x31b7=function(_0x31b7d6,_0x288315){_0x31b7d6=_0x31b7d6-0x72;let _0x11148d=_0x351e89[_0x31b7d6];return _0x11148d;},_0x31b7(_0x443e37,_0x7e90f);}import{findAllByAttribute as _0x2cf522,findByAttribute as _0x55c942,getAttribute as _0x4a5f8f,isComment as _0x41f7b4,isTag as _0x145ab4,insertElement as _0x1d3622,moveElement as _0x59c9c2,removeElement as _0x166f20,replaceElement as _0x42b0aa,serialize as _0x33486c,setAttribute as _0x3f76de,clone as _0x1e9ed6,findAllComments as _0x199f59,getParents as _0x44593b,getNodeNestingLevel as _0x1c9558,areNodesSame as _0x40a79c,removeElementsAfter as _0x1c9749}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x2af682(){[_0x3c9f0e(0x8a)];[_0x3c9f0e(0xa5)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3c9f0e(0x7b)]=new Set();constructor(_0xde9edc){const _0x180d0e=_0x3c9f0e;super(),this[_0x180d0e(0x8a)]=_0xde9edc||_0x47511b;}[_0x3c9f0e(0xb6)](_0x5f2e7d,_0x50d05b,_0x5dda41){const _0x5d8b06=_0x3c9f0e,_0x15bfc4=_0x1e9ed6(_0x5f2e7d);if(0x0===_0x50d05b[_0x5d8b06(0x92)][_0x5d8b06(0xa6)]){const _0x3c513e=[];return _0x2cf522(_0x5d8b06(0xa3),_0x5d8b06(0xb9),_0x15bfc4)[_0x5d8b06(0x7d)](_0x36f5ca=>{const _0x3ea8f5=_0x5d8b06,_0x377631=this[_0x3ea8f5(0x8a)]();_0x3f76de(_0x36f5ca,_0x3ea8f5(0xa3),_0x377631),_0x3c513e[_0x3ea8f5(0x97)](_0x377631);}),this[_0x5d8b06(0xb8)](_0x15bfc4),{'parsedContent':_0x15bfc4,'newNodeIds':_0x3c513e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5dda41&&_0x5dda41[_0x5d8b06(0x8b)]&&this[_0x5d8b06(0xb1)](_0x15bfc4),this[_0x5d8b06(0xa5)][_0x5d8b06(0x99)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x72)]=[],this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]=null,this[_0x5d8b06(0x7b)]=new Set(_0x2cf522(_0x5d8b06(0xa3),null,_0x50d05b)[_0x5d8b06(0x79)](_0x2036cb=>_0x4a5f8f(_0x2036cb,_0x5d8b06(0xa3)))[_0x5d8b06(0x8e)](_0xc3ab89=>!!_0xc3ab89));let _0x1852ee=-0x1,_0x1eaefb=!0x1;const _0x3a6266=_0x15bfc4[_0x5d8b06(0x92)],_0x22a0e8=Array[_0x5d8b06(0x82)](_0x3a6266)[_0x5d8b06(0x8e)](_0x4bc024=>!(0x3===_0x4bc024[_0x5d8b06(0x9f)]&&''===_0x33486c(_0x4bc024)[_0x5d8b06(0xb5)]())),_0xc07062=_0x22a0e8[_0x5d8b06(0xa6)];for(let _0x4a6e3f=0x0;_0x4a6e3f<_0xc07062;_0x4a6e3f++){const _0x3ca6f6=_0x22a0e8[_0x4a6e3f],_0x54d218=_0x22a0e8[_0x4a6e3f+0x1];if(this[_0x5d8b06(0x7a)](_0x3ca6f6)){if(-0x1===_0x1852ee&&(_0x1852ee=_0x4a6e3f),this[_0x5d8b06(0x84)](_0x3ca6f6),!this[_0x5d8b06(0x7a)](_0x54d218)){const [_0xf31b3e,_0x2e39b8]=this[_0x5d8b06(0xa9)](_0x3ca6f6,_0x1eaefb,_0x50d05b);if(_0xf31b3e){const _0x3c1c5a=Array[_0x5d8b06(0x82)](_0x22a0e8)[_0x5d8b06(0x77)](_0x1852ee,_0x4a6e3f+0x1);this[_0x5d8b06(0x96)](_0xf31b3e,_0x3c1c5a,_0x2e39b8),_0x1852ee=-0x1;}}}else{if(this[_0x5d8b06(0x87)](_0x3ca6f6))_0x1eaefb=!0x0;else{if(this[_0x5d8b06(0xa1)](_0x3ca6f6)){const _0x38bfb4=_0x4a5f8f(_0x3ca6f6,_0x5d8b06(0xa3));if(_0x38bfb4&&this[_0x5d8b06(0x7b)][_0x5d8b06(0x76)](_0x38bfb4)){const _0x30326c=_0x55c942(_0x5d8b06(0xa3),_0x38bfb4,_0x50d05b);this[_0x5d8b06(0x83)](_0x30326c,_0x3ca6f6);}if(this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x9a)](_0x38bfb4)){const _0x4be585=this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x93)](_0x38bfb4);this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)][_0x5d8b06(0x9d)](_0x4be585,0x1);}}else{if(this[_0x5d8b06(0x8d)](_0x3ca6f6)){const _0x5a8b80=_0x4a5f8f(_0x3ca6f6,_0x5d8b06(0xa3));this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)][_0x5d8b06(0x9a)](_0x5a8b80)||this[_0x5d8b06(0x90)](_0x3ca6f6);}}}}}for(const _0x3345c7 of this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]){const _0x53e0c9=_0x55c942(_0x5d8b06(0xa3),_0x3345c7,_0x50d05b);if(_0x53e0c9){if(_0x5dda41&&_0x5dda41[_0x5d8b06(0x7c)]){this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]=_0x3345c7;const _0x3e37d6=_0x5dda41[_0x5d8b06(0x7c)][_0x5d8b06(0xb7)](!0x0);_0x3f76de(_0x3e37d6,_0x5d8b06(0xa3),_0x3345c7),_0x3f76de(_0x3e37d6,_0x5d8b06(0xa4),_0x5d8b06(0x88)),_0x42b0aa(_0x53e0c9,_0x3e37d6);}else _0x166f20(_0x53e0c9);}}if(_0x2cf522(_0x5d8b06(0x9b),null,_0x50d05b)[_0x5d8b06(0x7d)](_0x6d6173=>{const _0x438f48=_0x5d8b06,_0x1ff2ac=_0x4a5f8f(_0x6d6173,_0x438f48(0x9b)),_0x304ff1=_0x55c942(_0x438f48(0xa3),_0x1ff2ac,_0x50d05b);_0x304ff1&&_0x59c9c2(_0x304ff1,_0x6d6173);}),_0x2cf522(_0x5d8b06(0xa3),_0x5d8b06(0xb9),_0x50d05b)[_0x5d8b06(0x7d)](_0x5b31bf=>{const _0x3613ca=_0x5d8b06,_0x1fa9ad=this[_0x3613ca(0x91)](_0x5b31bf);_0x3f76de(_0x5b31bf,_0x3613ca(0xa3),_0x1fa9ad),this[_0x3613ca(0xa5)][_0x3613ca(0x99)][_0x3613ca(0x97)](_0x1fa9ad);}),this[_0x5d8b06(0xb8)](_0x50d05b),_0x5dda41&&_0x5dda41[_0x5d8b06(0x8b)]&&this[_0x5d8b06(0x78)](_0x50d05b,_0x5dda41[_0x5d8b06(0xa2)]||0x0),_0x5dda41&&_0x5dda41[_0x5d8b06(0xb0)]&&this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)]){let _0x34bb1b=_0x55c942(_0x5d8b06(0xa3),this[_0x5d8b06(0xa5)][_0x5d8b06(0x85)],_0x50d05b);for(;_0x34bb1b;)_0x1c9749(_0x34bb1b),_0x34bb1b=_0x34bb1b[_0x5d8b06(0x98)];}return{'parsedContent':_0x50d05b,'newNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0x99)],'modifiedNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0xb3)],'removedNodeIds':this[_0x5d8b06(0xa5)][_0x5d8b06(0x86)]};}[_0x3c9f0e(0x96)](_0x5b03c8,_0x35a81d,_0x385e98){const _0x4afd12=_0x3c9f0e;for(const _0x5633fd of _0x35a81d){const _0x27ab57=this[_0x4afd12(0x91)](_0x5633fd);_0x3f76de(_0x5633fd,_0x4afd12(0xa3),_0x27ab57),this[_0x4afd12(0xa5)][_0x4afd12(0x99)][_0x4afd12(0x97)](_0x27ab57),this[_0x4afd12(0xa5)][_0x4afd12(0x85)]=_0x27ab57;}const _0x2f09ca=_0x4afd12(0x74)===_0x385e98||_0x4afd12(0x75)===_0x385e98?_0x35a81d[_0x4afd12(0xae)]():_0x35a81d;for(const _0x2c959f of _0x2f09ca)_0x1d3622(_0x5b03c8,_0x2c959f,_0x385e98);}[_0x3c9f0e(0x83)](_0x4d2e4a,_0x12021a){const _0x4eb740=_0x3c9f0e;if(!_0x4d2e4a)return;if(_0x40a79c(_0x4d2e4a,_0x12021a))return;const _0x2aaf9a=this[_0x4eb740(0x91)](_0x4d2e4a);_0x3f76de(_0x12021a,_0x4eb740(0xa3),_0x2aaf9a),this[_0x4eb740(0xa5)][_0x4eb740(0xb3)][_0x4eb740(0x97)](_0x2aaf9a),this[_0x4eb740(0xa5)][_0x4eb740(0x85)]=_0x2aaf9a,_0x42b0aa(_0x4d2e4a,_0x12021a[_0x4eb740(0xb7)](!0x0));}[_0x3c9f0e(0xa9)](_0x118732,_0x3cac13,_0x1d511b){const _0x567622=_0x3c9f0e,_0x5a760a=this[_0x567622(0xaf)](_0x118732,!0x1);if(_0x5a760a){const _0x182e8d=this[_0x567622(0x8f)](_0x5a760a),_0x377da7=_0x55c942(_0x567622(0xa3),_0x182e8d,_0x1d511b);if(_0x377da7)return[_0x377da7,_0x567622(0x75)];this[_0x567622(0xa5)][_0x567622(0x72)][_0x567622(0x97)](_0x182e8d);}const _0x1484d9=this[_0x567622(0x8c)](_0x118732,!0x1);if(_0x1484d9){const _0x271f25=this[_0x567622(0x8f)](_0x1484d9),_0x3a2619=_0x55c942(_0x567622(0xa3),_0x271f25,_0x1d511b);if(_0x3a2619)return[_0x3a2619,_0x567622(0xb4)];this[_0x567622(0xa5)][_0x567622(0x72)][_0x567622(0x97)](_0x271f25);}return _0x3cac13?_0x118732[_0x567622(0x9c)]?this[_0x567622(0x80)](_0x118732,_0x1d511b):[_0x1d511b[_0x567622(0x92)][_0x1d511b[_0x567622(0x92)][_0x567622(0xa6)]-0x1],_0x567622(0x75)]:[_0x1d511b[_0x567622(0x92)][0x0],_0x567622(0xb4)];}[_0x3c9f0e(0x80)](_0x4a1599,_0x433e0b){const _0x477d2c=_0x3c9f0e,_0x59a690=[],_0x45b02a=this[_0x477d2c(0xaf)](_0x4a1599,!0x0);if(_0x45b02a){const _0x4977d8=this[_0x477d2c(0x8f)](_0x45b02a),_0x46313a=_0x55c942(_0x477d2c(0xa3),_0x4977d8,_0x433e0b);_0x46313a&&_0x59a690[_0x477d2c(0x97)]([_0x46313a,_0x477d2c(0x75)]);}const _0x486dfd=this[_0x477d2c(0x8c)](_0x4a1599,!0x0);if(_0x486dfd){const _0x4c5ed6=this[_0x477d2c(0x8f)](_0x486dfd),_0xa3339f=_0x55c942(_0x477d2c(0xa3),_0x4c5ed6,_0x433e0b);_0xa3339f&&_0x59a690[_0x477d2c(0x97)]([_0xa3339f,_0x477d2c(0xb4)]);}if(_0x59a690[_0x477d2c(0xa6)]>0x1)return _0x1c9558(_0x59a690[0x0][0x0])<=_0x1c9558(_0x59a690[0x1][0x0])?_0x59a690[0x0]:_0x59a690[0x1];return 0x1===_0x59a690[_0x477d2c(0xa6)]?_0x59a690[0x0]:[_0x433e0b[_0x477d2c(0xb2)],_0x477d2c(0x75)];}[_0x3c9f0e(0x8c)](_0x4ca35a,_0x459a30){const _0x11aecc=_0x3c9f0e;let _0xb17f4f=_0x4ca35a[_0x11aecc(0x9c)],_0x378c51=null,_0x29acb0=!0x1;for(;_0xb17f4f;){if(_0x41f7b4(_0xb17f4f)){if(this[_0x11aecc(0x8d)](_0xb17f4f)&&(_0x378c51=_0xb17f4f),this[_0x11aecc(0x87)](_0xb17f4f)&&_0x459a30&&!_0x29acb0){_0x29acb0=!0x0,_0xb17f4f=_0xb17f4f[_0x11aecc(0x9c)];continue;}break;}const _0x51a6b7=_0x4a5f8f(_0xb17f4f,_0x11aecc(0xa3));if(_0x51a6b7&&_0x11aecc(0xb9)!==_0x51a6b7&&this[_0x11aecc(0x7b)][_0x11aecc(0x76)](_0x51a6b7)){_0x378c51=_0xb17f4f;break;}_0xb17f4f=_0xb17f4f[_0x11aecc(0x9c)];}return _0x378c51;}[_0x3c9f0e(0xaf)](_0x20a5ae,_0x4a0c66){const _0x3de82f=_0x3c9f0e;let _0x4d9bf7=_0x20a5ae[_0x3de82f(0x7e)],_0x3a1f67=null,_0x3e5e09=!0x1;for(;_0x4d9bf7;){if(_0x41f7b4(_0x4d9bf7)){if(this[_0x3de82f(0x8d)](_0x4d9bf7)&&(_0x3a1f67=_0x4d9bf7),this[_0x3de82f(0x87)](_0x4d9bf7)&&_0x4a0c66&&!_0x3e5e09){_0x3e5e09=!0x0,_0x4d9bf7=_0x4d9bf7[_0x3de82f(0x7e)];continue;}break;}const _0x1bf7c6=_0x4a5f8f(_0x4d9bf7,_0x3de82f(0xa3));if(_0x1bf7c6&&_0x3de82f(0xb9)!==_0x1bf7c6&&this[_0x3de82f(0x7b)][_0x3de82f(0x76)](_0x1bf7c6)){_0x3a1f67=_0x4d9bf7;break;}_0x4d9bf7=_0x4d9bf7[_0x3de82f(0x7e)];}return _0x3a1f67;}[_0x3c9f0e(0x84)](_0x3aeb3f){const _0x1452b6=_0x3c9f0e;_0x145ab4(_0x3aeb3f)&&_0x2cf522(_0x1452b6(0xa3),null,_0x3aeb3f)[_0x1452b6(0x7d)](_0x30bd05=>{const _0x5d2576=_0x1452b6;if(this[_0x5d2576(0xa1)](_0x30bd05)&&!this[_0x5d2576(0xac)](_0x30bd05)){const _0x27c9ef=_0x4a5f8f(_0x30bd05,_0x5d2576(0xa3));_0x3f76de(_0x30bd05,_0x5d2576(0x9b),_0x27c9ef),_0x3f76de(_0x30bd05,_0x5d2576(0xa3),null);}});}[_0x3c9f0e(0x8f)](_0x4e3af4){const _0x106743=_0x3c9f0e;if(!_0x4e3af4)return null;if(_0x145ab4(_0x4e3af4))return _0x4a5f8f(_0x4e3af4,_0x106743(0xa3));if(_0x41f7b4(_0x4e3af4)){const _0x88f5e4=_0x33486c(_0x4e3af4)[_0x106743(0x95)](/removed[\s*-]data-id="([^"]+)"/);if(_0x88f5e4&&_0x88f5e4[0x1])return _0x88f5e4[0x1];}return null;}[_0x3c9f0e(0x90)](_0xb0175b){const _0x4bf4aa=_0x3c9f0e;if(_0x41f7b4(_0xb0175b)){const _0x496793=_0x33486c(_0xb0175b)[_0x4bf4aa(0x95)](/removed[\s*-]data-id="([^"]+)"/);_0x496793&&_0x496793[0x1]&&this[_0x4bf4aa(0xa5)][_0x4bf4aa(0x86)][_0x4bf4aa(0x97)](_0x496793[0x1]);}}[_0x3c9f0e(0x91)](_0x5b2cbd){const _0x7ebca9=_0x3c9f0e;return this[_0x7ebca9(0xa1)](_0x5b2cbd)?_0x4a5f8f(_0x5b2cbd,_0x7ebca9(0xa3)):this[_0x7ebca9(0x8a)]();}[_0x3c9f0e(0xb8)](_0x4d53a2){const _0x4cccd8=_0x3c9f0e;_0x199f59(_0x4d53a2)[_0x4cccd8(0x8e)](_0x35bc40=>this[_0x4cccd8(0x8d)](_0x35bc40)||this[_0x4cccd8(0x87)](_0x35bc40))[_0x4cccd8(0x7d)](_0xb435=>{_0x166f20(_0xb435);});}[_0x3c9f0e(0xb1)](_0x33d0cd){const _0x307096=_0x3c9f0e,_0x227f8b=_0x33d0cd[_0x307096(0x92)],_0x2298ab=_0x227f8b[_0x227f8b[_0x307096(0xa6)]-0x1];_0x2298ab&&_0x145ab4(_0x2298ab)&&_0x3f76de(_0x2298ab,_0x307096(0xad),_0x307096(0x88));}[_0x3c9f0e(0x78)](_0x50195e,_0x11c102){const _0x289dd2=_0x3c9f0e,_0x5e7ed1=_0x55c942(_0x289dd2(0xad),_0x289dd2(0x88),_0x50195e);if(!_0x5e7ed1)return;const _0x13c495=_0x44593b(_0x5e7ed1)[_0x289dd2(0x77)](0x0,-0x1),_0x435aa2=_0x13c495[_0x289dd2(0xa6)];let _0x51bd18=_0x5e7ed1;if(_0x435aa2>_0x11c102){let _0xad9fa8=_0x435aa2,_0x22814e=null;for(;_0xad9fa8>_0x11c102&&_0xad9fa8>=0x0;)_0xad9fa8--,_0x22814e=_0x13c495[_0xad9fa8];_0x22814e&&(_0x51bd18=_0x22814e,_0x3f76de(_0x5e7ed1,_0x289dd2(0xad),null),_0x3f76de(_0x22814e,_0x289dd2(0xad),_0x289dd2(0x88)));}else{if(_0x435aa2<_0x11c102){let _0x2ecfee=_0x435aa2,_0x5b2d4a=_0x5e7ed1;for(;_0x2ecfee<_0x11c102;){const _0x4aa85b=_0x5b2d4a[_0x289dd2(0x92)][_0x289dd2(0x8e)](_0x347159=>_0x145ab4(_0x347159));if(0x0===_0x4aa85b[_0x289dd2(0xa6)])break;_0x2ecfee++,_0x5b2d4a=_0x4aa85b[_0x4aa85b[_0x289dd2(0xa6)]-0x1];}_0x5b2d4a&&(_0x51bd18=_0x5b2d4a,_0x3f76de(_0x5e7ed1,_0x289dd2(0xad),null),_0x3f76de(_0x5b2d4a,_0x289dd2(0xad),_0x289dd2(0x88)));}}let _0x140c39=_0x51bd18;for(;_0x140c39;){for(;_0x140c39[_0x289dd2(0x9c)];)_0x140c39=_0x140c39[_0x289dd2(0x9c)],_0x145ab4(_0x140c39)&&_0x3f76de(_0x140c39,_0x289dd2(0xad),_0x289dd2(0x88));_0x140c39=_0x140c39[_0x289dd2(0x98)];}}[_0x3c9f0e(0x7a)](_0x2f844d){const _0x382692=_0x3c9f0e;return Boolean(_0x382692(0xb9)===_0x4a5f8f(_0x2f844d,_0x382692(0xa3)));}[_0x3c9f0e(0xa1)](_0x4b86da){const _0x270240=_0x3c9f0e;return Boolean((_0x4a5f8f(_0x4b86da,_0x270240(0xa3))||'')[_0x270240(0xa6)]>0x0&&_0x270240(0xb9)!==_0x4a5f8f(_0x4b86da,_0x270240(0xa3)));}[_0x3c9f0e(0x8d)](_0x2837d2){const _0x3ab663=_0x3c9f0e;return!!_0x2837d2&&Boolean(_0x41f7b4(_0x2837d2)&&_0x33486c(_0x2837d2)[_0x3ab663(0x95)](/removed[\s*-]data-id="[^"]+"/));}[_0x3c9f0e(0xac)](_0x315d4b){const _0x32393d=_0x3c9f0e;let _0x147ee5=_0x315d4b[_0x32393d(0x98)];for(;_0x147ee5;){if(_0x4a5f8f(_0x147ee5,_0x32393d(0x9b)))return!0x0;_0x147ee5=_0x147ee5[_0x32393d(0x98)];}return!0x1;}[_0x3c9f0e(0x87)](_0x3b5594){const _0x290b7a=_0x3c9f0e;return Boolean(_0x41f7b4(_0x3b5594)&&_0x33486c(_0x3b5594)[_0x290b7a(0x95)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ef13f=_0x4a11;function _0x4a11(_0x18c92a,_0x2a183a){const _0x2e4e7a=_0x2e4e();return _0x4a11=function(_0x4a1171,_0x5f2065){_0x4a1171=_0x4a1171-0x1e7;let _0x57301f=_0x2e4e7a[_0x4a1171];return _0x57301f;},_0x4a11(_0x18c92a,_0x2a183a);}(function(_0x3d4f73,_0xa009d){const _0xf8dcd5=_0x4a11,_0x5e7e0f=_0x3d4f73();while(!![]){try{const _0x58d1d4=-parseInt(_0xf8dcd5(0x1e9))/0x1*(-parseInt(_0xf8dcd5(0x1ef))/0x2)+parseInt(_0xf8dcd5(0x1f5))/0x3+parseInt(_0xf8dcd5(0x1f6))/0x4*(parseInt(_0xf8dcd5(0x1e8))/0x5)+parseInt(_0xf8dcd5(0x1f1))/0x6+-parseInt(_0xf8dcd5(0x1ed))/0x7+parseInt(_0xf8dcd5(0x1f8))/0x8+-parseInt(_0xf8dcd5(0x1f7))/0x9;if(_0x58d1d4===_0xa009d)break;else _0x5e7e0f['push'](_0x5e7e0f['shift']());}catch(_0xff2427){_0x5e7e0f['push'](_0x5e7e0f['shift']());}}}(_0x2e4e,0xcea0e));import{ObservableMixin as _0x44e8d9}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0xa80f4a}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2e4e(){const _0x1af6bf=['111665Nxfrsr','49yHjcsy','parseAndNormalizeHTML','children','_m2html','10448095aYcOKc','</dummy>','62990HyxTHV','parse','3721416KPWUYO','_parseHTML','convertMarkdownToHTML','replace','3076578VnSIRt','244onPFOO','27647253eOHPwQ','6876176ZXqDAY','<dummy>'];_0x2e4e=function(){return _0x1af6bf;};return _0x2e4e();}import{parse as _0x48eea3}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x44e8d9(){[_0x5ef13f(0x1ec)];constructor(){const _0x61a4=_0x5ef13f;super(),this[_0x61a4(0x1ec)]=new _0xa80f4a();}[_0x5ef13f(0x1f3)](_0x53a7c0){const _0x2d4062=_0x5ef13f,_0x2be1d9=this[_0x2d4062(0x1ec)][_0x2d4062(0x1f0)](_0x53a7c0);return this[_0x2d4062(0x1ea)](_0x2be1d9);}[_0x5ef13f(0x1ea)](_0x16bf2b){const _0x583d37=_0x5ef13f;return this[_0x583d37(0x1f2)](_0x16bf2b);}[_0x5ef13f(0x1f2)](_0xa51cdf){const _0xafdb2e=_0x5ef13f,_0x40ddc9=_0xa51cdf[_0xafdb2e(0x1f4)](/^\t+/gm,'\x20')[_0xafdb2e(0x1f4)](/\n*/g,'')[_0xafdb2e(0x1f4)](/\s+/g,'\x20')[_0xafdb2e(0x1f4)](/<[^>]*?$/g,''),_0x5d8205=_0x48eea3(_0xafdb2e(0x1e7)+_0x40ddc9+_0xafdb2e(0x1ee));return _0x5d8205[_0xafdb2e(0x1eb)]=_0x5d8205[_0xafdb2e(0x1eb)][0x0][_0xafdb2e(0x1eb)],_0x5d8205;}}
23
+ const _0x5b4fc2=_0xe8d9;(function(_0x28214b,_0x343a4f){const _0x5e4dc6=_0xe8d9,_0x14d38f=_0x28214b();while(!![]){try{const _0x8c55b0=parseInt(_0x5e4dc6(0x128))/0x1*(-parseInt(_0x5e4dc6(0x12b))/0x2)+-parseInt(_0x5e4dc6(0x123))/0x3+parseInt(_0x5e4dc6(0x122))/0x4*(-parseInt(_0x5e4dc6(0x11d))/0x5)+parseInt(_0x5e4dc6(0x12a))/0x6+-parseInt(_0x5e4dc6(0x11e))/0x7+parseInt(_0x5e4dc6(0x126))/0x8+parseInt(_0x5e4dc6(0x120))/0x9;if(_0x8c55b0===_0x343a4f)break;else _0x14d38f['push'](_0x14d38f['shift']());}catch(_0x1a64a9){_0x14d38f['push'](_0x14d38f['shift']());}}}(_0x56ea,0xcd122));function _0xe8d9(_0x3593d5,_0x3f962c){const _0x56eacc=_0x56ea();return _0xe8d9=function(_0xe8d91b,_0x4eecaa){_0xe8d91b=_0xe8d91b-0x11b;let _0x27edaf=_0x56eacc[_0xe8d91b];return _0x27edaf;},_0xe8d9(_0x3593d5,_0x3f962c);}import{ObservableMixin as _0x796ad4}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x23c3fa}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5dc06f}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x796ad4(){[_0x5b4fc2(0x124)];constructor(){const _0x30047b=_0x5b4fc2;super(),this[_0x30047b(0x124)]=new _0x23c3fa();}[_0x5b4fc2(0x11c)](_0x36f669){const _0x5aace5=_0x5b4fc2,_0x1abf1a=this[_0x5aace5(0x124)][_0x5aace5(0x11f)](_0x36f669);return this[_0x5aace5(0x125)](_0x1abf1a);}[_0x5b4fc2(0x125)](_0xc69e26){const _0x517824=_0x5b4fc2;return this[_0x517824(0x11b)](_0xc69e26);}[_0x5b4fc2(0x11b)](_0x454ece){const _0x4b6a47=_0x5b4fc2,_0x5258cf=_0x454ece[_0x4b6a47(0x12c)](/^\t+/gm,'\x20')[_0x4b6a47(0x12c)](/\n*/g,'')[_0x4b6a47(0x12c)](/\s+/g,'\x20')[_0x4b6a47(0x12c)](/<[^>]*?$/g,''),_0x3995b8=_0x5dc06f(_0x4b6a47(0x129)+_0x5258cf+_0x4b6a47(0x121));return _0x3995b8[_0x4b6a47(0x127)]=_0x3995b8[_0x4b6a47(0x127)][0x0][_0x4b6a47(0x127)],_0x3995b8;}}function _0x56ea(){const _0x135253=['27574NhMRLH','replace','_parseHTML','convertMarkdownToHTML','170LKcbrb','5367726zjrKpu','parse','24363792xVoySH','</dummy>','138792quvtdC','4968825dvwQXT','_m2html','parseAndNormalizeHTML','7999880pIcRJl','children','21PsHqkr','<dummy>','6151494hSRViP'];_0x56ea=function(){return _0x135253;};return _0x56ea();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x54cc(_0x9d9c4e,_0x574394){var _0x94b30b=_0x94b3();return _0x54cc=function(_0x54cc40,_0x43962f){_0x54cc40=_0x54cc40-0x119;var _0x4749b5=_0x94b30b[_0x54cc40];return _0x4749b5;},_0x54cc(_0x9d9c4e,_0x574394);}(function(_0x1f4138,_0x5e3dc4){var _0x366fc5=_0x54cc,_0x25cc84=_0x1f4138();while(!![]){try{var _0x24dd0d=parseInt(_0x366fc5(0x127))/0x1*(-parseInt(_0x366fc5(0x124))/0x2)+parseInt(_0x366fc5(0x119))/0x3*(-parseInt(_0x366fc5(0x11a))/0x4)+-parseInt(_0x366fc5(0x122))/0x5*(-parseInt(_0x366fc5(0x126))/0x6)+-parseInt(_0x366fc5(0x11b))/0x7+-parseInt(_0x366fc5(0x11e))/0x8+parseInt(_0x366fc5(0x123))/0x9+parseInt(_0x366fc5(0x125))/0xa;if(_0x24dd0d===_0x5e3dc4)break;else _0x25cc84['push'](_0x25cc84['shift']());}catch(_0x4ce280){_0x25cc84['push'](_0x25cc84['shift']());}}}(_0x94b3,0xed9ae));import{View as _0x38b886}from'ckeditor5/src/ui.js';function _0x94b3(){var _0x4889dd=['4699224BXIeLg','2fUrhED','36172910usBxZZ','882clYwNA','1125182NcTiJa','417NxMhkP','42748rCCcYx','623651TUjOzS','ck-ai-disclaimer__content','AI_DISCLAIMER_TEXT','6545600GuEHXd','div','setTemplate','ck-ai-disclaimer','11965MEGAvG'];_0x94b3=function(){return _0x4889dd;};return _0x94b3();}import{getTranslation as _0x5af21c}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x38b886{constructor(_0x478dc6){var _0x3ae552=_0x54cc;super(_0x478dc6),this[_0x3ae552(0x120)]({'tag':_0x3ae552(0x11f),'attributes':{'class':['ck',_0x3ae552(0x121)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3ae552(0x11c)]},'children':[{'text':_0x5af21c(_0x478dc6,_0x3ae552(0x11d))}]}]});}}
23
+ (function(_0x547ae6,_0x4f9db5){var _0x1643b2=_0x1014,_0x167142=_0x547ae6();while(!![]){try{var _0x34e7fb=-parseInt(_0x1643b2(0x176))/0x1*(-parseInt(_0x1643b2(0x17c))/0x2)+-parseInt(_0x1643b2(0x17a))/0x3+-parseInt(_0x1643b2(0x178))/0x4+-parseInt(_0x1643b2(0x17b))/0x5+parseInt(_0x1643b2(0x174))/0x6+parseInt(_0x1643b2(0x175))/0x7*(-parseInt(_0x1643b2(0x17f))/0x8)+-parseInt(_0x1643b2(0x179))/0x9*(-parseInt(_0x1643b2(0x17d))/0xa);if(_0x34e7fb===_0x4f9db5)break;else _0x167142['push'](_0x167142['shift']());}catch(_0x5d3011){_0x167142['push'](_0x167142['shift']());}}}(_0x1343,0xe6c71));import{View as _0x2a24e2}from'ckeditor5/src/ui.js';function _0x1014(_0x1cf580,_0x5854cd){var _0x13433c=_0x1343();return _0x1014=function(_0x101428,_0x1d6081){_0x101428=_0x101428-0x174;var _0x2ddccf=_0x13433c[_0x101428];return _0x2ddccf;},_0x1014(_0x1cf580,_0x5854cd);}import{getTranslation as _0x13fc52}from'../../aicore/utils/common-translations.js';function _0x1343(){var _0x43a8be=['7552230hDJiVM','679boiwSf','21jLubgH','setTemplate','1025564yJvZmU','14690763JMQVsR','5226927urJhnh','3484275JmMtPz','79198PwCTNq','10bFxzDN','div','6744JqeGGw','ck-ai-disclaimer','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content'];_0x1343=function(){return _0x43a8be;};return _0x1343();}export class AIDisclaimerView extends _0x2a24e2{constructor(_0x36374d){var _0x24d7ad=_0x1014;super(_0x36374d),this[_0x24d7ad(0x177)]({'tag':_0x24d7ad(0x17e),'attributes':{'class':['ck',_0x24d7ad(0x180)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x24d7ad(0x182)]},'children':[{'text':_0x13fc52(_0x36374d,_0x24d7ad(0x181))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4628cf=_0x2d38;(function(_0x3aee03,_0x1560ec){const _0x5cb44c=_0x2d38,_0x453d85=_0x3aee03();while(!![]){try{const _0x1381da=-parseInt(_0x5cb44c(0x131))/0x1*(-parseInt(_0x5cb44c(0x120))/0x2)+parseInt(_0x5cb44c(0x138))/0x3*(parseInt(_0x5cb44c(0x123))/0x4)+-parseInt(_0x5cb44c(0x13d))/0x5*(parseInt(_0x5cb44c(0x140))/0x6)+-parseInt(_0x5cb44c(0x122))/0x7*(-parseInt(_0x5cb44c(0x145))/0x8)+-parseInt(_0x5cb44c(0x11e))/0x9*(-parseInt(_0x5cb44c(0x125))/0xa)+-parseInt(_0x5cb44c(0x12b))/0xb+parseInt(_0x5cb44c(0x144))/0xc*(-parseInt(_0x5cb44c(0x141))/0xd);if(_0x1381da===_0x1560ec)break;else _0x453d85['push'](_0x453d85['shift']());}catch(_0x37aaf1){_0x453d85['push'](_0x453d85['shift']());}}}(_0x56e1,0xdb424));function _0x56e1(){const _0x43148f=['140px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','279qAuzvJ','left','2766GRJGyQ','72px','1673819LThBJa','4FwMwTg','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','573620ngSAYG','44px',';\x20height:\x20','width:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','div','12095501YeFZZu','class','40px','ck-ai-skeleton','128px','setTemplate','1047HzpaLA','fill','map','height','width','center','_createSkeletonItems','2860299iuvFpn','ck-ai-skeleton__item','tag','100%','150px','2084860GwNtqZ','88px','attributes','24yTIWwW','4895865HFyKeg','align','250px','24ybWWyk','8aoLQPI','right','24px'];_0x56e1=function(){return _0x43148f;};return _0x56e1();}import{View as _0x57c234}from'ckeditor5/src/ui.js';function _0x2d38(_0x47a708,_0x1d68c4){const _0x56e13c=_0x56e1();return _0x2d38=function(_0x2d3823,_0x1d7d36){_0x2d3823=_0x2d3823-0x11e;let _0x57c67e=_0x56e13c[_0x2d3823];return _0x57c67e;},_0x2d38(_0x47a708,_0x1d68c4);}export class AISkeletonView extends _0x57c234{constructor(_0x303041,_0x1db956){const _0x47f727=_0x2d38;super(_0x303041),this[_0x47f727(0x130)]({'tag':_0x47f727(0x12a),'attributes':{'class':['ck',_0x47f727(0x12e)]},'children':this[_0x47f727(0x137)](_0x1db956)});}[_0x4628cf(0x137)](_0x1430bd){const _0x148e2c=_0x4628cf,_0x5aac80=['ck',_0x148e2c(0x139)];return _0x1430bd[_0x148e2c(0x133)](_0x339fd7=>{const _0x38d374=_0x148e2c;let _0x14bd83='';switch(_0x339fd7[_0x38d374(0x13f)][_0x38d374(0x142)]){case _0x38d374(0x146):_0x14bd83=_0x38d374(0x129);break;case _0x38d374(0x136):_0x14bd83=_0x38d374(0x124);break;case _0x38d374(0x11f):_0x14bd83=_0x38d374(0x149);}return{'tag':_0x339fd7[_0x38d374(0x13a)],'attributes':{'class':[..._0x5aac80,_0x339fd7[_0x38d374(0x13f)][_0x38d374(0x12c)]?_0x339fd7[_0x38d374(0x13f)][_0x38d374(0x12c)]:''],'style':_0x38d374(0x128)+_0x339fd7[_0x38d374(0x13f)][_0x38d374(0x135)]+_0x38d374(0x127)+_0x339fd7[_0x38d374(0x13f)][_0x38d374(0x134)]+';'+_0x14bd83}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13b),'height':_0x4628cf(0x121),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x143),'height':_0x4628cf(0x12d),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13b),'height':_0x4628cf(0x13e),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13c),'height':_0x4628cf(0x12d),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13b),'height':_0x4628cf(0x148),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x143),'height':_0x4628cf(0x12d),'align':_0x4628cf(0x146)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13b),'height':_0x4628cf(0x13e),'align':_0x4628cf(0x146)}}],'aiHistory':ta(0x5,_0x4628cf(0x13b),_0x4628cf(0x126),_0x4628cf(0x146)),'aiChatResources':ta(0x8,_0x4628cf(0x13b),_0x4628cf(0x147),_0x4628cf(0x146)),'aiReviewChecks':[{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x12f),'height':_0x4628cf(0x147),'align':_0x4628cf(0x11f)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x13b),'height':_0x4628cf(0x147),'align':_0x4628cf(0x11f)}},{'tag':_0x4628cf(0x12a),'attributes':{'width':_0x4628cf(0x12f),'height':_0x4628cf(0x147),'align':_0x4628cf(0x11f)}}]};function ta(_0x326c00,_0x4acf79,_0x145a34,_0x487ab5){const _0x503887=_0x4628cf;return new Array(_0x326c00)[_0x503887(0x132)](null)[_0x503887(0x133)](()=>({'tag':_0x503887(0x12a),'attributes':{'width':_0x4acf79,'height':_0x145a34,'align':_0x487ab5}}));}
23
+ const _0x1c9f2e=_0x4d15;(function(_0x23949b,_0x5ef818){const _0x2d1f83=_0x4d15,_0x27ae45=_0x23949b();while(!![]){try{const _0x2c8fd9=parseInt(_0x2d1f83(0x1ed))/0x1*(-parseInt(_0x2d1f83(0x1eb))/0x2)+parseInt(_0x2d1f83(0x1fe))/0x3+-parseInt(_0x2d1f83(0x1fb))/0x4*(-parseInt(_0x2d1f83(0x20d))/0x5)+-parseInt(_0x2d1f83(0x20c))/0x6*(-parseInt(_0x2d1f83(0x1f5))/0x7)+-parseInt(_0x2d1f83(0x201))/0x8*(-parseInt(_0x2d1f83(0x202))/0x9)+-parseInt(_0x2d1f83(0x205))/0xa+-parseInt(_0x2d1f83(0x20e))/0xb*(parseInt(_0x2d1f83(0x1ef))/0xc);if(_0x2c8fd9===_0x5ef818)break;else _0x27ae45['push'](_0x27ae45['shift']());}catch(_0x40f77c){_0x27ae45['push'](_0x27ae45['shift']());}}}(_0x1ec0,0x47232));function _0x1ec0(){const _0x116e66=['10062rozvzG','559210nHkWPG','9479602FSaUDS','44px','24px','div','ck-ai-skeleton__item','right','height','140px','2LNGRIS','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','17843cZsXJv','width:\x20','12DDCvAz','40px','align','setTemplate','72px','attributes','658TVUTYt','center','128px','fill','left','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','16hUSrWw','tag','100%','592641kjpAqq','_createSkeletonItems','map','695104KcBHLd','45HXYeEL','width',';\x20height:\x20','659900xMlmJl','150px','ck-ai-skeleton','class','250px','88px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;'];_0x1ec0=function(){return _0x116e66;};return _0x1ec0();}import{View as _0x2e6a38}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2e6a38{constructor(_0x43342b,_0x25eae8){const _0x553a14=_0x4d15;super(_0x43342b),this[_0x553a14(0x1f2)]({'tag':_0x553a14(0x1e6),'attributes':{'class':['ck',_0x553a14(0x207)]},'children':this[_0x553a14(0x1ff)](_0x25eae8)});}[_0x1c9f2e(0x1ff)](_0x778d49){const _0x233212=_0x1c9f2e,_0x4ba89c=['ck',_0x233212(0x1e7)];return _0x778d49[_0x233212(0x200)](_0x3a9a45=>{const _0x5b9edf=_0x233212;let _0x25f591='';switch(_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x1f1)]){case _0x5b9edf(0x1e8):_0x25f591=_0x5b9edf(0x1fa);break;case _0x5b9edf(0x1f6):_0x25f591=_0x5b9edf(0x20b);break;case _0x5b9edf(0x1f9):_0x25f591=_0x5b9edf(0x1ec);}return{'tag':_0x3a9a45[_0x5b9edf(0x1fc)],'attributes':{'class':[..._0x4ba89c,_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x208)]?_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x208)]:''],'style':_0x5b9edf(0x1ee)+_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x203)]+_0x5b9edf(0x204)+_0x3a9a45[_0x5b9edf(0x1f4)][_0x5b9edf(0x1e9)]+';'+_0x25f591}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1f3),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x209),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x20a),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x206),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1ea),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x209),'height':_0x1c9f2e(0x1f0),'align':_0x1c9f2e(0x1e8)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x20a),'align':_0x1c9f2e(0x1e8)}}],'aiHistory':ta(0x5,_0x1c9f2e(0x1fd),_0x1c9f2e(0x20f),_0x1c9f2e(0x1e8)),'aiChatResources':ta(0x8,_0x1c9f2e(0x1fd),_0x1c9f2e(0x1e5),_0x1c9f2e(0x1e8)),'aiReviewChecks':[{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1f7),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1fd),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}},{'tag':_0x1c9f2e(0x1e6),'attributes':{'width':_0x1c9f2e(0x1f7),'height':_0x1c9f2e(0x1e5),'align':_0x1c9f2e(0x1f9)}}]};function _0x4d15(_0x3bde9f,_0x595ca2){const _0x1ec005=_0x1ec0();return _0x4d15=function(_0x4d15ea,_0x2bf33c){_0x4d15ea=_0x4d15ea-0x1e5;let _0x184544=_0x1ec005[_0x4d15ea];return _0x184544;},_0x4d15(_0x3bde9f,_0x595ca2);}function ta(_0x37ae16,_0x5873e9,_0x27d500,_0x529bed){const _0x282a01=_0x1c9f2e;return new Array(_0x37ae16)[_0x282a01(0x1f8)](null)[_0x282a01(0x200)](()=>({'tag':_0x282a01(0x1e6),'attributes':{'width':_0x5873e9,'height':_0x27d500,'align':_0x529bed}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x410e79,_0x1f8f22){const _0x42e43a=_0x5a76,_0x399f80=_0x410e79();while(!![]){try{const _0x56e087=-parseInt(_0x42e43a(0x11c))/0x1*(parseInt(_0x42e43a(0x10e))/0x2)+-parseInt(_0x42e43a(0x115))/0x3+parseInt(_0x42e43a(0x110))/0x4*(-parseInt(_0x42e43a(0x118))/0x5)+-parseInt(_0x42e43a(0x11b))/0x6+parseInt(_0x42e43a(0x11a))/0x7*(-parseInt(_0x42e43a(0x119))/0x8)+parseInt(_0x42e43a(0x116))/0x9+-parseInt(_0x42e43a(0x10f))/0xa*(-parseInt(_0x42e43a(0x111))/0xb);if(_0x56e087===_0x1f8f22)break;else _0x399f80['push'](_0x399f80['shift']());}catch(_0x1d468c){_0x399f80['push'](_0x399f80['shift']());}}}(_0x10ab,0x2ae67));function _0x5a76(_0x2e3b2b,_0x43eff1){const _0x10ab45=_0x10ab();return _0x5a76=function(_0x5a760f,_0xb81565){_0x5a760f=_0x5a760f-0x10e;let _0x3c7623=_0x10ab45[_0x5a760f];return _0x3c7623;},_0x5a76(_0x2e3b2b,_0x43eff1);}import{SpinnerView as _0x5f523c}from'ckeditor5/src/ui.js';function _0x10ab(){const _0x56e271=['42444TtiHXx','1579xcmFvD','298owxBXE','10JThKDR','369416mKYqCO','3477155HFEoiX','ck-ai-spinner_','extendTemplate','span','423162Vvddaz','3093930naMGHX','ck-ai-spinner','5WLigjz','22408jtlJVP','21SZWqVH'];_0x10ab=function(){return _0x56e271;};return _0x10ab();}export class AISpinnerView extends _0x5f523c{constructor(_0x35facd=void 0x0){const _0x305d74=_0x5a76;super();const _0x16061d=_0x35facd?_0x305d74(0x112)+_0x35facd:'';this[_0x305d74(0x113)]({'tag':_0x305d74(0x114),'attributes':{'class':[_0x305d74(0x117),_0x16061d]}});}}
23
+ function _0x40b8(){const _0x56abdf=['1647416yQyRRF','ck-ai-spinner','38103TUZAdo','332328vljrHp','ck-ai-spinner_','2399772Zwxjzk','18yrlLxy','1975215QlySca','759772NBQPtR','10Tdsnct','7NLMwBe','extendTemplate','120668TvKAme','span','20uykmXZ'];_0x40b8=function(){return _0x56abdf;};return _0x40b8();}(function(_0xac4b49,_0x5e516a){const _0x42aa46=_0x278f,_0xe056a0=_0xac4b49();while(!![]){try{const _0x28afda=parseInt(_0x42aa46(0x72))/0x1+parseInt(_0x42aa46(0x78))/0x2+parseInt(_0x42aa46(0x73))/0x3+-parseInt(_0x42aa46(0x7c))/0x4*(parseInt(_0x42aa46(0x7e))/0x5)+parseInt(_0x42aa46(0x75))/0x6*(parseInt(_0x42aa46(0x7a))/0x7)+parseInt(_0x42aa46(0x7f))/0x8*(-parseInt(_0x42aa46(0x76))/0x9)+parseInt(_0x42aa46(0x79))/0xa*(-parseInt(_0x42aa46(0x77))/0xb);if(_0x28afda===_0x5e516a)break;else _0xe056a0['push'](_0xe056a0['shift']());}catch(_0x5bfea4){_0xe056a0['push'](_0xe056a0['shift']());}}}(_0x40b8,0x34e40));import{SpinnerView as _0x4a4a52}from'ckeditor5/src/ui.js';function _0x278f(_0x5bf699,_0x42f0ca){const _0x40b8d3=_0x40b8();return _0x278f=function(_0x278f26,_0x5645d1){_0x278f26=_0x278f26-0x72;let _0x5c4960=_0x40b8d3[_0x278f26];return _0x5c4960;},_0x278f(_0x5bf699,_0x42f0ca);}export class AISpinnerView extends _0x4a4a52{constructor(_0x456fd2=void 0x0){const _0x49a543=_0x278f;super();const _0x3718a9=_0x456fd2?_0x49a543(0x74)+_0x456fd2:'';this[_0x49a543(0x7b)]({'tag':_0x49a543(0x7d),'attributes':{'class':[_0x49a543(0x80),_0x3718a9]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5396(_0x30dd92,_0x5a9093){const _0x3d1fe2=_0x3d1f();return _0x5396=function(_0x53965e,_0x117657){_0x53965e=_0x53965e-0xbe;let _0x6fd638=_0x3d1fe2[_0x53965e];return _0x6fd638;},_0x5396(_0x30dd92,_0x5a9093);}const _0x4ce2c8=_0x5396;(function(_0x42010c,_0x1ff9b7){const _0x901fd5=_0x5396,_0x3aee9e=_0x42010c();while(!![]){try{const _0x737be5=-parseInt(_0x901fd5(0xf1))/0x1*(parseInt(_0x901fd5(0xc7))/0x2)+-parseInt(_0x901fd5(0xc8))/0x3+parseInt(_0x901fd5(0xcb))/0x4+parseInt(_0x901fd5(0xd4))/0x5*(-parseInt(_0x901fd5(0xe5))/0x6)+parseInt(_0x901fd5(0xc4))/0x7*(-parseInt(_0x901fd5(0xf0))/0x8)+parseInt(_0x901fd5(0xcd))/0x9*(-parseInt(_0x901fd5(0xec))/0xa)+parseInt(_0x901fd5(0xe2))/0xb*(parseInt(_0x901fd5(0xd8))/0xc);if(_0x737be5===_0x1ff9b7)break;else _0x3aee9e['push'](_0x3aee9e['shift']());}catch(_0x335e03){_0x3aee9e['push'](_0x3aee9e['shift']());}}}(_0x3d1f,0xeb913));import{ButtonView as _0x5c7607,IconView as _0x2b4c68,ToolbarView as _0x3cdcc2}from'ckeditor5/src/ui.js';import{IconCheck as _0x26717c,IconCopy as _0x50297a,IconShowChangesOff as _0x58b1cc,IconShowChangesOn as _0x454c58,IconThumbDown as _0x3326e2,IconThumbUp as _0x539166}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x266901}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x3cdcc2{[_0x4ce2c8(0xf2)];[_0x4ce2c8(0xcc)];[_0x4ce2c8(0xca)];[_0x4ce2c8(0xd2)];[_0x4ce2c8(0xc0)];constructor(_0x528c5c,_0x3781ec={}){const _0x2b76df=_0x4ce2c8;super(_0x528c5c),this[_0x2b76df(0xc9)](_0x2b76df(0xd3),!0x0),this[_0x2b76df(0xc9)](_0x2b76df(0xe7),!0x1),this[_0x2b76df(0xc0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3781ec};const _0x673c5a=!(this[_0x2b76df(0xc0)][_0x2b76df(0xd6)]||this[_0x2b76df(0xc0)][_0x2b76df(0xc5)]||this[_0x2b76df(0xc0)][_0x2b76df(0xbf)]||this[_0x2b76df(0xc0)][_0x2b76df(0xdf)]||this[_0x2b76df(0xc0)][_0x2b76df(0xf3)]?.[_0x2b76df(0xef)]);this[_0x2b76df(0xe0)]=_0x673c5a?_0x2b76df(0xc1):_0x2b76df(0xdc),this[_0x2b76df(0xc0)][_0x2b76df(0xd6)]&&(this[_0x2b76df(0xd1)](),this[_0x2b76df(0xe8)][_0x2b76df(0xbe)](this[_0x2b76df(0xf2)])),this[_0x2b76df(0xc0)][_0x2b76df(0xc5)]&&(this[_0x2b76df(0xd0)](),this[_0x2b76df(0xe8)][_0x2b76df(0xbe)](this[_0x2b76df(0xd2)])),this[_0x2b76df(0xe1)](),this[_0x2b76df(0xc0)][_0x2b76df(0xbf)]&&this[_0x2b76df(0xe8)][_0x2b76df(0xbe)](this[_0x2b76df(0xcc)]),this[_0x2b76df(0xc0)][_0x2b76df(0xdf)]&&this[_0x2b76df(0xe8)][_0x2b76df(0xbe)](this[_0x2b76df(0xca)]),this[_0x2b76df(0xc0)][_0x2b76df(0xf3)]&&this[_0x2b76df(0xe8)][_0x2b76df(0xd7)](this[_0x2b76df(0xc0)][_0x2b76df(0xf3)]);}[_0x4ce2c8(0xe4)](_0x4172c2){const _0x28a33b=_0x4ce2c8;this[_0x28a33b(0xd2)][_0x28a33b(0xd3)]=_0x4172c2;}[_0x4ce2c8(0xe1)](){const _0x51bb39=_0x4ce2c8;this[_0x51bb39(0xcc)]=new _0x5c7607(this[_0x51bb39(0xea)]),this[_0x51bb39(0xcc)][_0x51bb39(0xc9)]({'icon':_0x539166,'label':_0x266901(this[_0x51bb39(0xea)],_0x51bb39(0xd5)),'tooltip':!0x0}),this[_0x51bb39(0xcc)][_0x51bb39(0xf4)](_0x51bb39(0xd3))['to'](this),this[_0x51bb39(0xcc)]['on'](_0x51bb39(0xcf),()=>{const _0x291387=_0x51bb39;this[_0x291387(0xed)](_0x291387(0xc3));}),this[_0x51bb39(0xca)]=new _0x5c7607(this[_0x51bb39(0xea)]),this[_0x51bb39(0xca)][_0x51bb39(0xc9)]({'icon':_0x3326e2,'label':_0x266901(this[_0x51bb39(0xea)],_0x51bb39(0xe3)),'tooltip':!0x0}),this[_0x51bb39(0xca)][_0x51bb39(0xf4)](_0x51bb39(0xd3))['to'](this),this[_0x51bb39(0xca)]['on'](_0x51bb39(0xcf),()=>{const _0x1efdf7=_0x51bb39;this[_0x1efdf7(0xed)](_0x1efdf7(0xeb));});}[_0x4ce2c8(0xd1)](){const _0x137925=_0x4ce2c8;this[_0x137925(0xf2)]=new _0x5c7607(this[_0x137925(0xea)]),this[_0x137925(0xf2)][_0x137925(0xc9)]({'icon':_0x50297a,'label':_0x266901(this[_0x137925(0xea)],_0x137925(0xdb)),'class':_0x137925(0xc2),'tooltip':!0x0}),this[_0x137925(0xf2)][_0x137925(0xf4)](_0x137925(0xd3))['to'](this);const _0x19589d=new _0x2b4c68();_0x19589d[_0x137925(0xc9)]({'content':_0x26717c}),_0x19589d[_0x137925(0xde)]({'attributes':{'class':[_0x137925(0xe9)]}}),this[_0x137925(0xf2)]['on'](_0x137925(0xcf),()=>{const _0x225f49=_0x137925;this[_0x225f49(0xf2)][_0x225f49(0xe0)]=_0x225f49(0xc6),setTimeout(()=>{const _0x385a2b=_0x225f49;this[_0x385a2b(0xf2)][_0x385a2b(0xe0)]=_0x385a2b(0xc2);},0x7d0);}),this[_0x137925(0xf2)][_0x137925(0xdd)][_0x137925(0xbe)](_0x19589d);}[_0x4ce2c8(0xd0)](){const _0x17602e=_0x4ce2c8;this[_0x17602e(0xd2)]=new _0x5c7607(this[_0x17602e(0xea)]),this[_0x17602e(0xd2)][_0x17602e(0xc9)]({'icon':_0x58b1cc,'label':_0x266901(this[_0x17602e(0xea)],_0x17602e(0xce)),'withText':_0x17602e(0xd9)==this[_0x17602e(0xc0)][_0x17602e(0xc5)],'tooltip':_0x17602e(0xd9)!=this[_0x17602e(0xc0)][_0x17602e(0xc5)]}),this[_0x17602e(0xd2)][_0x17602e(0xf4)](_0x17602e(0xee))['to'](this,_0x17602e(0xe7)),this[_0x17602e(0xd2)][_0x17602e(0xf4)](_0x17602e(0xd3))['to'](this),this[_0x17602e(0xd2)][_0x17602e(0xf4)](_0x17602e(0xe6))['to'](this,_0x17602e(0xe7),_0x149d07=>_0x149d07?_0x454c58:_0x58b1cc),this[_0x17602e(0xd2)]['on'](_0x17602e(0xcf),()=>{const _0x2acdaf=_0x17602e;this[_0x2acdaf(0xed)](_0x2acdaf(0xda));});}}function _0x3d1f(){const _0x4f8d34=['likeButton','62649jyBlvZ','AI_SUGGESTION_BUTTON_SHOW_CHANGES','execute','_setupShowChangesButton','_setupCopyButton','showChangesButton','isEnabled','5GYasMF','AI_MINI_TOOLBAR_LIKE','showCopy','addMany','144uznGrb','full','toggleShowChanges','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar','children','extendTemplate','showDislike','class','_setupRatingButtons','4400066yqmmKN','AI_MINI_TOOLBAR_DISLIKE','toggleShowChangesEnabled','8607246jehlQC','icon','isShowChangesOn','items','ck-ai-mini-toolbar-copy-button__check-mark','locale','dislike','1140ZgorHP','fire','isOn','length','368272lguTmZ','1812ZRLAEK','copyButton','customView','bind','add','showLike','_config','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button','like','119iSuEHy','showChanges','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','1574TBrXtG','238884uUfsaZ','set','dislikeButton','2724624gVGzZQ'];_0x3d1f=function(){return _0x4f8d34;};return _0x3d1f();}
23
+ const _0x2e1923=_0x6809;(function(_0x2649ec,_0x26395d){const _0x4532bf=_0x6809,_0x26697b=_0x2649ec();while(!![]){try{const _0x23af27=parseInt(_0x4532bf(0x1e9))/0x1*(-parseInt(_0x4532bf(0x1ba))/0x2)+parseInt(_0x4532bf(0x1c2))/0x3+-parseInt(_0x4532bf(0x1d8))/0x4*(-parseInt(_0x4532bf(0x1cf))/0x5)+-parseInt(_0x4532bf(0x1e7))/0x6+-parseInt(_0x4532bf(0x1e2))/0x7+-parseInt(_0x4532bf(0x1c0))/0x8*(-parseInt(_0x4532bf(0x1c4))/0x9)+parseInt(_0x4532bf(0x1b9))/0xa;if(_0x23af27===_0x26395d)break;else _0x26697b['push'](_0x26697b['shift']());}catch(_0x3fe41d){_0x26697b['push'](_0x26697b['shift']());}}}(_0x3fa7,0xe661d));function _0x3fa7(){const _0x440162=['729012caLClU','bind','207yVvStl','copyButton','AI_MINI_TOOLBAR_LIKE','set','_setupShowChangesButton','toggleShowChanges','length','dislikeButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','ck-ai-mini-toolbar-copy-button__check-mark','50GHBuVr','_config','addMany','toggleShowChangesEnabled','showDislike','showChangesButton','add','showLike','items','685780deBPby','like','_setupRatingButtons','ck-ai-mini-toolbar\x20ck-hidden','dislike','customView','fire','isOn','icon','showCopy','11618215DBbZnl','ck-ai-mini-toolbar-copy-button','likeButton','class','AI_MINI_TOOLBAR_COPY','10250160rhqcYt','_setupCopyButton','3COhrRB','showChanges','ck-ai-mini-toolbar','isEnabled','locale','23699350gfuyve','834194szDoxW','children','AI_SUGGESTION_BUTTON_SHOW_CHANGES','execute','full','extendTemplate','429792GfjBmo','AI_MINI_TOOLBAR_DISLIKE'];_0x3fa7=function(){return _0x440162;};return _0x3fa7();}import{ButtonView as _0x40506d,IconView as _0x567306,ToolbarView as _0x5c9aab}from'ckeditor5/src/ui.js';import{IconCheck as _0xde6d79,IconCopy as _0x537335,IconShowChangesOff as _0x2bc693,IconShowChangesOn as _0x494fde,IconThumbDown as _0x49bd6a,IconThumbUp as _0x53a3b7}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1cab3a}from'../../utils/common-translations.js';function _0x6809(_0xa2550,_0x55db84){const _0x3fa78d=_0x3fa7();return _0x6809=function(_0x680966,_0x26d0c8){_0x680966=_0x680966-0x1b5;let _0x14b98c=_0x3fa78d[_0x680966];return _0x14b98c;},_0x6809(_0xa2550,_0x55db84);}export class AIMiniToolbarView extends _0x5c9aab{[_0x2e1923(0x1c5)];[_0x2e1923(0x1e4)];[_0x2e1923(0x1cb)];[_0x2e1923(0x1d4)];[_0x2e1923(0x1d0)];constructor(_0x497c9d,_0xffe32d={}){const _0x1033e7=_0x2e1923;super(_0x497c9d),this[_0x1033e7(0x1c7)](_0x1033e7(0x1b7),!0x0),this[_0x1033e7(0x1c7)](_0x1033e7(0x1cd),!0x1),this[_0x1033e7(0x1d0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0xffe32d};const _0x38cfc5=!(this[_0x1033e7(0x1d0)][_0x1033e7(0x1e1)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1b5)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1d6)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1d3)]||this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]?.[_0x1033e7(0x1ca)]);this[_0x1033e7(0x1e5)]=_0x38cfc5?_0x1033e7(0x1db):_0x1033e7(0x1b6),this[_0x1033e7(0x1d0)][_0x1033e7(0x1e1)]&&(this[_0x1033e7(0x1e8)](),this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1c5)])),this[_0x1033e7(0x1d0)][_0x1033e7(0x1b5)]&&(this[_0x1033e7(0x1c8)](),this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1d4)])),this[_0x1033e7(0x1da)](),this[_0x1033e7(0x1d0)][_0x1033e7(0x1d6)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1e4)]),this[_0x1033e7(0x1d0)][_0x1033e7(0x1d3)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d5)](this[_0x1033e7(0x1cb)]),this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]&&this[_0x1033e7(0x1d7)][_0x1033e7(0x1d1)](this[_0x1033e7(0x1d0)][_0x1033e7(0x1dd)]);}[_0x2e1923(0x1d2)](_0x544f53){const _0x5806a2=_0x2e1923;this[_0x5806a2(0x1d4)][_0x5806a2(0x1b7)]=_0x544f53;}[_0x2e1923(0x1da)](){const _0x2e8924=_0x2e1923;this[_0x2e8924(0x1e4)]=new _0x40506d(this[_0x2e8924(0x1b8)]),this[_0x2e8924(0x1e4)][_0x2e8924(0x1c7)]({'icon':_0x53a3b7,'label':_0x1cab3a(this[_0x2e8924(0x1b8)],_0x2e8924(0x1c6)),'tooltip':!0x0}),this[_0x2e8924(0x1e4)][_0x2e8924(0x1c3)](_0x2e8924(0x1b7))['to'](this),this[_0x2e8924(0x1e4)]['on'](_0x2e8924(0x1bd),()=>{const _0x5ac200=_0x2e8924;this[_0x5ac200(0x1de)](_0x5ac200(0x1d9));}),this[_0x2e8924(0x1cb)]=new _0x40506d(this[_0x2e8924(0x1b8)]),this[_0x2e8924(0x1cb)][_0x2e8924(0x1c7)]({'icon':_0x49bd6a,'label':_0x1cab3a(this[_0x2e8924(0x1b8)],_0x2e8924(0x1c1)),'tooltip':!0x0}),this[_0x2e8924(0x1cb)][_0x2e8924(0x1c3)](_0x2e8924(0x1b7))['to'](this),this[_0x2e8924(0x1cb)]['on'](_0x2e8924(0x1bd),()=>{const _0x141252=_0x2e8924;this[_0x141252(0x1de)](_0x141252(0x1dc));});}[_0x2e1923(0x1e8)](){const _0x3f0b1e=_0x2e1923;this[_0x3f0b1e(0x1c5)]=new _0x40506d(this[_0x3f0b1e(0x1b8)]),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1c7)]({'icon':_0x537335,'label':_0x1cab3a(this[_0x3f0b1e(0x1b8)],_0x3f0b1e(0x1e6)),'class':_0x3f0b1e(0x1e3),'tooltip':!0x0}),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1c3)](_0x3f0b1e(0x1b7))['to'](this);const _0x3ace61=new _0x567306();_0x3ace61[_0x3f0b1e(0x1c7)]({'content':_0xde6d79}),_0x3ace61[_0x3f0b1e(0x1bf)]({'attributes':{'class':[_0x3f0b1e(0x1ce)]}}),this[_0x3f0b1e(0x1c5)]['on'](_0x3f0b1e(0x1bd),()=>{const _0xca7b5c=_0x3f0b1e;this[_0xca7b5c(0x1c5)][_0xca7b5c(0x1e5)]=_0xca7b5c(0x1cc),setTimeout(()=>{const _0x14b3e8=_0xca7b5c;this[_0x14b3e8(0x1c5)][_0x14b3e8(0x1e5)]=_0x14b3e8(0x1e3);},0x7d0);}),this[_0x3f0b1e(0x1c5)][_0x3f0b1e(0x1bb)][_0x3f0b1e(0x1d5)](_0x3ace61);}[_0x2e1923(0x1c8)](){const _0x17bbb3=_0x2e1923;this[_0x17bbb3(0x1d4)]=new _0x40506d(this[_0x17bbb3(0x1b8)]),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c7)]({'icon':_0x2bc693,'label':_0x1cab3a(this[_0x17bbb3(0x1b8)],_0x17bbb3(0x1bc)),'withText':_0x17bbb3(0x1be)==this[_0x17bbb3(0x1d0)][_0x17bbb3(0x1b5)],'tooltip':_0x17bbb3(0x1be)!=this[_0x17bbb3(0x1d0)][_0x17bbb3(0x1b5)]}),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1df))['to'](this,_0x17bbb3(0x1cd)),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1b7))['to'](this),this[_0x17bbb3(0x1d4)][_0x17bbb3(0x1c3)](_0x17bbb3(0x1e0))['to'](this,_0x17bbb3(0x1cd),_0x24e65a=>_0x24e65a?_0x494fde:_0x2bc693),this[_0x17bbb3(0x1d4)]['on'](_0x17bbb3(0x1bd),()=>{const _0x4d4971=_0x17bbb3;this[_0x4d4971(0x1de)](_0x4d4971(0x1c9));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c4047=_0x3f3c;(function(_0x2bfed8,_0x5957de){const _0x2e593c=_0x3f3c,_0x2e90a2=_0x2bfed8();while(!![]){try{const _0x2b2aa9=-parseInt(_0x2e593c(0x183))/0x1+parseInt(_0x2e593c(0x1a4))/0x2*(-parseInt(_0x2e593c(0x194))/0x3)+parseInt(_0x2e593c(0x182))/0x4*(-parseInt(_0x2e593c(0x196))/0x5)+parseInt(_0x2e593c(0x18a))/0x6+parseInt(_0x2e593c(0x1b9))/0x7*(-parseInt(_0x2e593c(0x1b8))/0x8)+-parseInt(_0x2e593c(0x1bb))/0x9+parseInt(_0x2e593c(0x1ba))/0xa*(parseInt(_0x2e593c(0x195))/0xb);if(_0x2b2aa9===_0x5957de)break;else _0x2e90a2['push'](_0x2e90a2['shift']());}catch(_0x18fb53){_0x2e90a2['push'](_0x2e90a2['shift']());}}}(_0x1181,0x717c0));import{View as _0x4b8c9a}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x38f831}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x235e0b}from'../../utils/eventnames.js';function _0x3f3c(_0x252f70,_0x2ed294){const _0x118156=_0x1181();return _0x3f3c=function(_0x3f3cb3,_0x1f1883){_0x3f3cb3=_0x3f3cb3-0x178;let _0x788f88=_0x118156[_0x3f3cb3];return _0x788f88;},_0x3f3c(_0x252f70,_0x2ed294);}function _0x1181(){const _0x5ab1a8=['enqueue','pending','ck-ai-suggestion__body__content-parts','AI_SUGGESTION_EMPTY_PART_WARNING','updateContent','queueEmptyPromise','24686aPzuya','_updateContentPartsPromiseQueue','empty-parts-warning','AI_SUGGESTION_NO_PARTS_WARNING','add','isActive','locale','_actionsView','markAsDone','some','_emptyPartsWarningView','areActionsDisabled','_availableActions','state','_children','setPartActive','from','ck-ai-suggestion__body','index','push','212144pmRlrP','140qbxJfb','21382440qYDqrm','108531hihgLt','delegate','abort','hasPendingParts','warning','addSource','find','isEnabled','_sourcesView','_cachedContentParts','findIndex','set','hasChanges','createCollection','setContent','36TPdDDv','536803RUsbQX','updateContentParts','updateVisibility','updatePartState','updateSources','partsCount','isVisible','2093412xjAlvC','setTemplate','div','length','filter','addEventListener','getPartView','bodyCollection','availableActions','forEach','27kgIpIg','11MUaLoD','462225GTTjom','hasNonEmptyParts','isTrackChangesOn','_switchButtonLabelsPlurality','bind','partDefinition','_areActionsDisabled','_showUnchangedParts'];_0x1181=function(){return _0x5ab1a8;};return _0x1181();}import{PromiseQueue as _0x42bdca}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2d6096}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x1aaa61}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x43d642}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x53faa9}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x4b8c9a{[_0x2c4047(0x1ab)];[_0x2c4047(0x17b)];[_0x2c4047(0x1b2)];[_0x2c4047(0x19c)];[_0x2c4047(0x19d)];[_0x2c4047(0x1a5)];[_0x2c4047(0x1ae)];[_0x2c4047(0x1b0)];[_0x2c4047(0x17c)]=[];constructor(_0x9e5ceb,_0x244446){const _0x138677=_0x2c4047;super(_0x9e5ceb);const {areActionsDisabled:_0x7932d0,showUnchangedParts:_0x51cab8,availableActions:_0x2361bb}=_0x244446;this[_0x138677(0x19c)]=_0x7932d0,this[_0x138677(0x19d)]=_0x51cab8,this[_0x138677(0x1b0)]=_0x2361bb,this[_0x138677(0x17e)](_0x138677(0x1be),!0x1),this[_0x138677(0x17e)](_0x138677(0x198),!0x1),this[_0x138677(0x1b2)]=this[_0x138677(0x180)](),this[_0x138677(0x1a5)]=new _0x42bdca(),this[_0x138677(0x1ae)]=new _0x2d6096({'id':_0x138677(0x1a6),'initialContent':_0x1aaa61(_0x9e5ceb,_0x138677(0x1a1)),'level':_0x138677(0x1bf)}),this[_0x138677(0x1ae)][_0x138677(0x189)]=!0x1,this[_0x138677(0x1ab)]=new _0x43d642(_0x9e5ceb,_0x244446[_0x138677(0x192)],this[_0x138677(0x19c)]),this[_0x138677(0x1ab)][_0x138677(0x19a)](_0x138677(0x198))['to'](this),this[_0x138677(0x17b)]=new _0x53faa9(this[_0x138677(0x1aa)],_0x244446[_0x138677(0x191)]),_0x244446[_0x138677(0x1af)]?this[_0x138677(0x1ab)][_0x138677(0x17a)]=!0x1:this[_0x138677(0x1ab)][_0x138677(0x19a)](_0x138677(0x17a))['to'](this,_0x138677(0x1be)),this[_0x138677(0x1ab)][_0x138677(0x1bc)](..._0x235e0b)['to'](this),this[_0x138677(0x18b)]({'tag':_0x138677(0x18c),'attributes':{'class':['ck',_0x138677(0x1b5)]},'children':[{'tag':_0x138677(0x18c),'attributes':{'class':['ck',_0x138677(0x1a0)]},'children':this[_0x138677(0x1b2)]},this[_0x138677(0x1ae)],this[_0x138677(0x1ab)],this[_0x138677(0x17b)]]});}get[_0x2c4047(0x188)](){const _0x5aa30b=_0x2c4047;return this[_0x5aa30b(0x1b2)][_0x5aa30b(0x18d)];}async[_0x2c4047(0x184)]({parts:_0xd192f,renderingStrategy:_0x57743c,abortSignal:_0x2ea153}){const _0x852dad=_0x2c4047;this[_0x852dad(0x1b2)][_0x852dad(0x18d)]?_0xd192f[_0x852dad(0x193)](_0x8c44f3=>{const _0x554c66=_0x852dad,_0x33bb50=this[_0x554c66(0x17c)][_0x554c66(0x17d)](_0x285974=>_0x285974[_0x554c66(0x1b6)]==_0x8c44f3[_0x554c66(0x1b6)]);-0x1===_0x33bb50?this[_0x554c66(0x17c)][_0x554c66(0x1b7)](_0x8c44f3):this[_0x554c66(0x17c)][_0x33bb50]=_0x8c44f3;}):this[_0x852dad(0x17c)]=_0xd192f;const _0x34a501=this[_0x852dad(0x19d)]?_0xd192f:_0xd192f[_0x852dad(0x18e)](_0x1cf0d4=>_0x1cf0d4[_0x852dad(0x17f)]);this[_0x852dad(0x1ab)][_0x852dad(0x199)](_0x34a501[_0x852dad(0x18d)]>0x1);for(const _0x389c17 of _0x34a501)this[_0x852dad(0x1a5)][_0x852dad(0x19e)](async _0x3418ff=>{const _0x188099=_0x852dad;let _0x543063=this[_0x188099(0x190)](_0x389c17[_0x188099(0x1b6)]);_0x543063||(_0x543063=new _0x38f831(this[_0x188099(0x1aa)],{'part':_0x389c17,'uiIndex':this[_0x188099(0x1b2)][_0x188099(0x18d)]+0x1,'areActionsDisabled':this[_0x188099(0x19c)],'availableActions':this[_0x188099(0x1b0)]}),_0x543063[_0x188099(0x1bc)](..._0x235e0b)['to'](this),this[_0x188099(0x1b2)][_0x188099(0x1a8)](_0x543063),this[_0x188099(0x1be)]=!0x0),await _0x543063[_0x188099(0x1a2)]({'part':_0x389c17,'renderingStrategy':_0x57743c,'showUnchangedParts':this[_0x188099(0x19d)],'abortSignal':_0x3418ff}),_0x543063[_0x188099(0x1ac)]();});return _0x2ea153?.[_0x852dad(0x18f)](_0x852dad(0x1bd),()=>{const _0x391a53=_0x852dad;this[_0x391a53(0x1a5)][_0x391a53(0x1bd)]();}),this[_0x852dad(0x1a5)][_0x852dad(0x1a3)];}[_0x2c4047(0x186)](_0x445b12,_0xe1a21e){const _0x491adf=_0x2c4047,_0x38e381=this[_0x491adf(0x190)](_0x445b12);_0x38e381&&(_0x38e381[_0x491adf(0x1b1)]=_0xe1a21e),this[_0x491adf(0x1be)]=_0x491adf(0x19f)==_0xe1a21e||Array[_0x491adf(0x1b4)](this[_0x491adf(0x1b2)])[_0x491adf(0x1ad)](_0x34641c=>_0x491adf(0x19f)==_0x34641c[_0x491adf(0x1b1)]);}[_0x2c4047(0x1b3)](_0x1d375e,_0x11a456){const _0x1dadd6=_0x2c4047;if(!0x1===_0x1d375e){for(const _0x2a0731 of this[_0x1dadd6(0x1b2)])_0x2a0731[_0x1dadd6(0x1a9)]=!0x1;}else{const _0x19d023=this[_0x1dadd6(0x190)](_0x1d375e);_0x19d023&&(_0x19d023[_0x1dadd6(0x1a9)]=_0x11a456);}}[_0x2c4047(0x187)](_0x34aaeb){const _0x4ccf1a=_0x2c4047;_0x34aaeb[_0x4ccf1a(0x193)](_0xa93bf8=>this[_0x4ccf1a(0x17b)][_0x4ccf1a(0x178)](_0xa93bf8)),this[_0x4ccf1a(0x17b)][_0x4ccf1a(0x189)]=!0x0;}[_0x2c4047(0x190)](_0xbe0a43){const _0xe91c5b=_0x2c4047;return this[_0xe91c5b(0x1b2)][_0xe91c5b(0x179)](_0x5cd5e7=>_0x5cd5e7[_0xe91c5b(0x19b)][_0xe91c5b(0x1b6)]==_0xbe0a43)??null;}[_0x2c4047(0x1ac)](){const _0x4479bf=_0x2c4047;if(!this[_0x4479bf(0x19d)]){const _0x330d85=!this[_0x4479bf(0x17c)][_0x4479bf(0x179)](({hasChanges:_0x3b7626})=>_0x3b7626),_0x3bac3d=!!this[_0x4479bf(0x17c)][_0x4479bf(0x179)](({hasChanges:_0x1d26e1})=>!_0x1d26e1);this[_0x4479bf(0x1ae)][_0x4479bf(0x189)]=0x0==this[_0x4479bf(0x1b2)][_0x4479bf(0x18d)]||_0x3bac3d,_0x330d85?this[_0x4479bf(0x1ae)][_0x4479bf(0x181)](_0x1aaa61(this[_0x4479bf(0x1aa)],_0x4479bf(0x1a7))):this[_0x4479bf(0x1ae)][_0x4479bf(0x181)](_0x1aaa61(this[_0x4479bf(0x1aa)],_0x4479bf(0x1a1)));}this[_0x4479bf(0x1b2)][_0x4479bf(0x193)](_0x5a4ac9=>_0x5a4ac9[_0x4479bf(0x1ac)]()),this[_0x4479bf(0x1ab)][_0x4479bf(0x185)](this[_0x4479bf(0x197)]);}get[_0x2c4047(0x197)](){const _0x4ea3bb=_0x2c4047;return this[_0x4ea3bb(0x1b2)][_0x4ea3bb(0x18e)](_0x56bc68=>_0x56bc68[_0x4ea3bb(0x19b)][_0x4ea3bb(0x17f)])[_0x4ea3bb(0x18d)]>0x0;}}
23
+ const _0x37bc6a=_0x1b89;(function(_0x5524d0,_0x3539c7){const _0x37bfa8=_0x1b89,_0x1a89ea=_0x5524d0();while(!![]){try{const _0x563261=parseInt(_0x37bfa8(0xfa))/0x1+-parseInt(_0x37bfa8(0x116))/0x2*(-parseInt(_0x37bfa8(0x12f))/0x3)+-parseInt(_0x37bfa8(0x118))/0x4+-parseInt(_0x37bfa8(0x11d))/0x5*(parseInt(_0x37bfa8(0x10e))/0x6)+parseInt(_0x37bfa8(0xf8))/0x7+-parseInt(_0x37bfa8(0xf5))/0x8+parseInt(_0x37bfa8(0x126))/0x9;if(_0x563261===_0x3539c7)break;else _0x1a89ea['push'](_0x1a89ea['shift']());}catch(_0x2e5a53){_0x1a89ea['push'](_0x1a89ea['shift']());}}}(_0x5c08,0x41317));import{View as _0x1e8246}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3c0ec3}from'./aisuggestioncontentpartview.js';function _0x1b89(_0x10d7f2,_0x4f8b93){const _0x5c0817=_0x5c08();return _0x1b89=function(_0x1b8913,_0x4c2d81){_0x1b8913=_0x1b8913-0xf0;let _0x2f03be=_0x5c0817[_0x1b8913];return _0x2f03be;},_0x1b89(_0x10d7f2,_0x4f8b93);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x56c2a2}from'../../utils/eventnames.js';import{PromiseQueue as _0x410bec}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x1f0c4b}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4092dd}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x3841b4}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x209176}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x1e8246{[_0x37bc6a(0x100)];[_0x37bc6a(0x132)];[_0x37bc6a(0xf1)];[_0x37bc6a(0x10c)];[_0x37bc6a(0x114)];[_0x37bc6a(0x110)];[_0x37bc6a(0x108)];[_0x37bc6a(0x122)];[_0x37bc6a(0x12d)]=[];constructor(_0x130fee,_0x480ed7){const _0xfc7176=_0x37bc6a;super(_0x130fee);const {areActionsDisabled:_0x495c24,showUnchangedParts:_0x4a1c64,availableActions:_0x2fee24}=_0x480ed7;this[_0xfc7176(0x10c)]=_0x495c24,this[_0xfc7176(0x114)]=_0x4a1c64,this[_0xfc7176(0x122)]=_0x2fee24,this[_0xfc7176(0xf2)](_0xfc7176(0xf9),!0x1),this[_0xfc7176(0xf2)](_0xfc7176(0x11c),!0x1),this[_0xfc7176(0xf1)]=this[_0xfc7176(0x134)](),this[_0xfc7176(0x110)]=new _0x410bec(),this[_0xfc7176(0x108)]=new _0x1f0c4b({'id':_0xfc7176(0xfc),'initialContent':_0x4092dd(_0x130fee,_0xfc7176(0x109)),'level':_0xfc7176(0x11f)}),this[_0xfc7176(0x108)][_0xfc7176(0x121)]=!0x1,this[_0xfc7176(0x100)]=new _0x3841b4(_0x130fee,_0x480ed7[_0xfc7176(0xf0)],this[_0xfc7176(0x10c)]),this[_0xfc7176(0x100)][_0xfc7176(0xf6)](_0xfc7176(0x11c))['to'](this),this[_0xfc7176(0x132)]=new _0x209176(this[_0xfc7176(0x101)],_0x480ed7[_0xfc7176(0x125)]),_0x480ed7[_0xfc7176(0x129)]?this[_0xfc7176(0x100)][_0xfc7176(0x10f)]=!0x1:this[_0xfc7176(0x100)][_0xfc7176(0xf6)](_0xfc7176(0x10f))['to'](this,_0xfc7176(0xf9)),this[_0xfc7176(0x100)][_0xfc7176(0x127)](..._0x56c2a2)['to'](this),this[_0xfc7176(0x10d)]({'tag':_0xfc7176(0x123),'attributes':{'class':['ck',_0xfc7176(0xfd)]},'children':[{'tag':_0xfc7176(0x123),'attributes':{'class':['ck',_0xfc7176(0x11e)]},'children':this[_0xfc7176(0xf1)]},this[_0xfc7176(0x108)],this[_0xfc7176(0x100)],this[_0xfc7176(0x132)]]});}get[_0x37bc6a(0x12e)](){const _0x186b10=_0x37bc6a;return this[_0x186b10(0xf1)][_0x186b10(0x106)];}async[_0x37bc6a(0x128)]({parts:_0x7a712d,renderingStrategy:_0x9e9bb,abortSignal:_0x64aba8}){const _0x1e34d6=_0x37bc6a;this[_0x1e34d6(0xf1)][_0x1e34d6(0x106)]?_0x7a712d[_0x1e34d6(0x107)](_0x306172=>{const _0x5e7304=_0x1e34d6,_0x58dc56=this[_0x5e7304(0x12d)][_0x5e7304(0x112)](_0x18d783=>_0x18d783[_0x5e7304(0xf3)]==_0x306172[_0x5e7304(0xf3)]);-0x1===_0x58dc56?this[_0x5e7304(0x12d)][_0x5e7304(0x10a)](_0x306172):this[_0x5e7304(0x12d)][_0x58dc56]=_0x306172;}):this[_0x1e34d6(0x12d)]=_0x7a712d;const _0x351a9f=this[_0x1e34d6(0x114)]?_0x7a712d:_0x7a712d[_0x1e34d6(0x102)](_0x203f88=>_0x203f88[_0x1e34d6(0x124)]);this[_0x1e34d6(0x100)][_0x1e34d6(0x11a)](_0x351a9f[_0x1e34d6(0x106)]>0x1);for(const _0x390171 of _0x351a9f)this[_0x1e34d6(0x110)][_0x1e34d6(0x117)](async _0x162f1b=>{const _0x220025=_0x1e34d6;let _0x518203=this[_0x220025(0xfe)](_0x390171[_0x220025(0xf3)]);_0x518203||(_0x518203=new _0x3c0ec3(this[_0x220025(0x101)],{'part':_0x390171,'uiIndex':this[_0x220025(0xf1)][_0x220025(0x106)]+0x1,'areActionsDisabled':this[_0x220025(0x10c)],'availableActions':this[_0x220025(0x122)]}),_0x518203[_0x220025(0x127)](..._0x56c2a2)['to'](this),this[_0x220025(0xf1)][_0x220025(0x131)](_0x518203),this[_0x220025(0xf9)]=!0x0),await _0x518203[_0x220025(0x12c)]({'part':_0x390171,'renderingStrategy':_0x9e9bb,'showUnchangedParts':this[_0x220025(0x114)],'abortSignal':_0x162f1b}),_0x518203[_0x220025(0x105)]();});return _0x64aba8?.[_0x1e34d6(0x11b)](_0x1e34d6(0x113),()=>{const _0x2ff45b=_0x1e34d6;this[_0x2ff45b(0x110)][_0x2ff45b(0x113)]();}),this[_0x1e34d6(0x110)][_0x1e34d6(0x10b)];}[_0x37bc6a(0x133)](_0x481539,_0x2a5d84){const _0x85cc29=_0x37bc6a,_0x24ccbc=this[_0x85cc29(0xfe)](_0x481539);_0x24ccbc&&(_0x24ccbc[_0x85cc29(0x130)]=_0x2a5d84),this[_0x85cc29(0xf9)]=_0x85cc29(0xf4)==_0x2a5d84||Array[_0x85cc29(0x12a)](this[_0x85cc29(0xf1)])[_0x85cc29(0xff)](_0x28dfc6=>_0x85cc29(0xf4)==_0x28dfc6[_0x85cc29(0x130)]);}[_0x37bc6a(0x111)](_0x1bd95e,_0x34cdb0){const _0x29b666=_0x37bc6a;if(!0x1===_0x1bd95e){for(const _0x59a805 of this[_0x29b666(0xf1)])_0x59a805[_0x29b666(0x119)]=!0x1;}else{const _0x10d2a9=this[_0x29b666(0xfe)](_0x1bd95e);_0x10d2a9&&(_0x10d2a9[_0x29b666(0x119)]=_0x34cdb0);}}[_0x37bc6a(0x135)](_0x29066d){const _0x2ab9a7=_0x37bc6a;_0x29066d[_0x2ab9a7(0x107)](_0x2e16d2=>this[_0x2ab9a7(0x132)][_0x2ab9a7(0xfb)](_0x2e16d2)),this[_0x2ab9a7(0x132)][_0x2ab9a7(0x121)]=!0x0;}[_0x37bc6a(0xfe)](_0x226ec5){const _0x145b5e=_0x37bc6a;return this[_0x145b5e(0xf1)][_0x145b5e(0x103)](_0x4e0a88=>_0x4e0a88[_0x145b5e(0xf7)][_0x145b5e(0xf3)]==_0x226ec5)??null;}[_0x37bc6a(0x105)](){const _0x239e33=_0x37bc6a;if(!this[_0x239e33(0x114)]){const _0x44e6ae=!this[_0x239e33(0x12d)][_0x239e33(0x103)](({hasChanges:_0x2d0fc7})=>_0x2d0fc7),_0x31ebc2=!!this[_0x239e33(0x12d)][_0x239e33(0x103)](({hasChanges:_0x4e0037})=>!_0x4e0037);this[_0x239e33(0x108)][_0x239e33(0x121)]=0x0==this[_0x239e33(0xf1)][_0x239e33(0x106)]||_0x31ebc2,_0x44e6ae?this[_0x239e33(0x108)][_0x239e33(0x12b)](_0x4092dd(this[_0x239e33(0x101)],_0x239e33(0x120))):this[_0x239e33(0x108)][_0x239e33(0x12b)](_0x4092dd(this[_0x239e33(0x101)],_0x239e33(0x109)));}this[_0x239e33(0xf1)][_0x239e33(0x107)](_0x15dbc8=>_0x15dbc8[_0x239e33(0x105)]()),this[_0x239e33(0x100)][_0x239e33(0x104)](this[_0x239e33(0x115)]);}get[_0x37bc6a(0x115)](){const _0x466528=_0x37bc6a;return this[_0x466528(0xf1)][_0x466528(0x102)](_0x43ad2c=>_0x43ad2c[_0x466528(0xf7)][_0x466528(0x124)])[_0x466528(0x106)]>0x0;}}function _0x5c08(){const _0x2d37d6=['1692016jxzYMq','bind','partDefinition','184394uXIOBL','hasPendingParts','208637JXrCKv','addSource','empty-parts-warning','ck-ai-suggestion__body','getPartView','some','_actionsView','locale','filter','find','updateVisibility','markAsDone','length','forEach','_emptyPartsWarningView','AI_SUGGESTION_EMPTY_PART_WARNING','push','queueEmptyPromise','_areActionsDisabled','setTemplate','258558hwriAy','isEnabled','_updateContentPartsPromiseQueue','setPartActive','findIndex','abort','_showUnchangedParts','hasNonEmptyParts','8fOSYXA','enqueue','2110748rGyGTZ','isActive','_switchButtonLabelsPlurality','addEventListener','isTrackChangesOn','15mWpbNp','ck-ai-suggestion__body__content-parts','warning','AI_SUGGESTION_NO_PARTS_WARNING','isVisible','_availableActions','div','hasChanges','bodyCollection','3593556mFVOrk','delegate','updateContentParts','areActionsDisabled','from','setContent','updateContent','_cachedContentParts','partsCount','375927nUKGiy','state','add','_sourcesView','updatePartState','createCollection','updateSources','availableActions','_children','set','index','pending'];_0x5c08=function(){return _0x2d37d6;};return _0x5c08();}