@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1

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 (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e52(_0x31c820,_0x3221c4){const _0x2cf295=_0x2cf2();return _0x4e52=function(_0x4e522e,_0x11b506){_0x4e522e=_0x4e522e-0xa6;let _0x37ad95=_0x2cf295[_0x4e522e];return _0x37ad95;},_0x4e52(_0x31c820,_0x3221c4);}const _0x464f54=_0x4e52;(function(_0x15f77c,_0x1f4b2d){const _0x23ef07=_0x4e52,_0x5b4e70=_0x15f77c();while(!![]){try{const _0x4e2969=-parseInt(_0x23ef07(0xc4))/0x1+-parseInt(_0x23ef07(0xbe))/0x2*(-parseInt(_0x23ef07(0xbf))/0x3)+parseInt(_0x23ef07(0xc8))/0x4*(-parseInt(_0x23ef07(0xaf))/0x5)+parseInt(_0x23ef07(0xb8))/0x6*(-parseInt(_0x23ef07(0xc5))/0x7)+-parseInt(_0x23ef07(0xbd))/0x8*(-parseInt(_0x23ef07(0xaa))/0x9)+-parseInt(_0x23ef07(0xb9))/0xa*(-parseInt(_0x23ef07(0xb4))/0xb)+parseInt(_0x23ef07(0xb2))/0xc;if(_0x4e2969===_0x1f4b2d)break;else _0x5b4e70['push'](_0x5b4e70['shift']());}catch(_0x406e44){_0x5b4e70['push'](_0x5b4e70['shift']());}}}(_0x2cf2,0xb58b2));import{ListItemView as _0xf39877,View as _0x53e44a,ListView as _0x7480b7}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xf39877{[_0x464f54(0xb0)];[_0x464f54(0xad)];[_0x464f54(0xba)];constructor(_0x2418b2,{title:_0x3fc7be,items:_0x23fcc5}){const _0x1b324d=_0x464f54;super(_0x2418b2);const _0x138796=this[_0x1b324d(0xbc)];this[_0x1b324d(0xc6)](_0x1b324d(0xa6),!0x0),this[_0x1b324d(0xb0)]=_0x3fc7be,this[_0x1b324d(0xad)]=_0x23fcc5;const _0x4c9f0f=new _0x53e44a(_0x2418b2);_0x4c9f0f[_0x1b324d(0xae)]({'tag':_0x1b324d(0xb6),'attributes':{'class':[_0x1b324d(0xc3)]},'children':[this[_0x1b324d(0xb0)]]}),this[_0x1b324d(0xba)]=new _0x7480b7(_0x2418b2),this[_0x1b324d(0xba)][_0x1b324d(0xc1)][_0x1b324d(0xbb)](this[_0x1b324d(0xad)]),this[_0x1b324d(0xae)]({'tag':'li','attributes':{'class':[_0x1b324d(0xa9),_0x138796['if'](_0x1b324d(0xa6),_0x1b324d(0xb1),_0x443e1f=>!_0x443e1f)]},'children':[_0x4c9f0f,this[_0x1b324d(0xba)]]});}[_0x464f54(0xab)](_0x48e787){const _0x52a1c4=_0x464f54,_0x4c8141=this[_0x52a1c4(0xad)][_0x52a1c4(0xa7)];let _0x2ad279=0x0;for(const _0x2e7935 of this[_0x52a1c4(0xad)]){if(_0x48e787){const _0x36698a=_0x2e7935[_0x52a1c4(0xac)](_0x48e787);_0x2e7935[_0x52a1c4(0xa6)]=!!_0x36698a,_0x2e7935[_0x52a1c4(0xb7)](_0x48e787);}else _0x2e7935[_0x52a1c4(0xa6)]=!0x0,_0x2e7935[_0x52a1c4(0xb7)](null);_0x2e7935[_0x52a1c4(0xa6)]&&_0x2ad279++;}return this[_0x52a1c4(0xa6)]=_0x2ad279>0x0,{'resultsCount':_0x2ad279,'totalItemsCount':_0x4c8141};}[_0x464f54(0xc7)](_0x267ed1){const _0x47c1b1=_0x464f54;return this[_0x47c1b1(0xad)][_0x47c1b1(0xc0)](_0x19f2ee=>_0x19f2ee['id']===_0x267ed1);}[_0x464f54(0xc2)](_0x565553){const _0x421a2f=_0x464f54,_0x13cf9f=this[_0x421a2f(0xad)][_0x421a2f(0xb3)](_0x565553);-0x1!==_0x13cf9f&&(this[_0x421a2f(0xad)][_0x421a2f(0xa8)](_0x13cf9f,0x1),this[_0x421a2f(0xba)][_0x421a2f(0xc1)][_0x421a2f(0xb5)](_0x565553));}}function _0x2cf2(){const _0x5367bb=['4zaHmKo','isVisible','length','splice','ck-ai-chat-history__section','12201831WfgFeH','filter','isMatching','itemsViews','setTemplate','4485815GXBOeP','title','ck-hidden','2345724DarIIy','indexOf','1625921JpOctP','remove','div','highlightText','541722bhnsJs','10VCcIAA','_itemsListView','addMany','bindTemplate','8cvJOgM','1943042fXZlOQ','3GKQyIK','find','items','removeItem','ck-ai-chat-history__section-title','126933mxhWhD','70HJtWDy','set','getItem'];_0x2cf2=function(){return _0x5367bb;};return _0x2cf2();}
23
+ const _0x26e5dd=_0x1c11;(function(_0x8196aa,_0x1d140c){const _0x2fcf58=_0x1c11,_0x28bbd9=_0x8196aa();while(!![]){try{const _0x33bff9=parseInt(_0x2fcf58(0xd1))/0x1*(-parseInt(_0x2fcf58(0xdc))/0x2)+-parseInt(_0x2fcf58(0xc4))/0x3+-parseInt(_0x2fcf58(0xc2))/0x4+parseInt(_0x2fcf58(0xd4))/0x5+parseInt(_0x2fcf58(0xd7))/0x6+parseInt(_0x2fcf58(0xd3))/0x7+parseInt(_0x2fcf58(0xc8))/0x8;if(_0x33bff9===_0x1d140c)break;else _0x28bbd9['push'](_0x28bbd9['shift']());}catch(_0x345ca8){_0x28bbd9['push'](_0x28bbd9['shift']());}}}(_0x4180,0xeb1e9));import{ListItemView as _0x50bae9,View as _0x49c377,ListView as _0x5d0713}from'ckeditor5/src/ui.js';function _0x4180(){const _0x277ba6=['11117920GvyloD','filter','itemsViews','removeItem','indexOf','remove','ck-ai-chat-history__section','title','addMany','1ilRscV','isMatching','5157313iGaqyL','1958055yoZzWE','setTemplate','length','3631794lLHRku','bindTemplate','div','splice','ck-ai-chat-history__section-title','3041498NfyMfS','ck-hidden','find','highlightText','getItem','1934720lmUYWn','set','467793cqXyCh','items','isVisible','_itemsListView'];_0x4180=function(){return _0x277ba6;};return _0x4180();}function _0x1c11(_0x5d8945,_0x4a86f8){const _0x41807c=_0x4180();return _0x1c11=function(_0x1c1135,_0x45e7b3){_0x1c1135=_0x1c1135-0xbf;let _0x555a33=_0x41807c[_0x1c1135];return _0x555a33;},_0x1c11(_0x5d8945,_0x4a86f8);}export class AIChatHistoryListView extends _0x50bae9{[_0x26e5dd(0xcf)];[_0x26e5dd(0xca)];[_0x26e5dd(0xc7)];constructor(_0x23f4c5,{title:_0x455359,items:_0x3a313f}){const _0x35d465=_0x26e5dd;super(_0x23f4c5);const _0x2e1378=this[_0x35d465(0xd8)];this[_0x35d465(0xc3)](_0x35d465(0xc6),!0x0),this[_0x35d465(0xcf)]=_0x455359,this[_0x35d465(0xca)]=_0x3a313f;const _0x2b49bf=new _0x49c377(_0x23f4c5);_0x2b49bf[_0x35d465(0xd5)]({'tag':_0x35d465(0xd9),'attributes':{'class':[_0x35d465(0xdb)]},'children':[this[_0x35d465(0xcf)]]}),this[_0x35d465(0xc7)]=new _0x5d0713(_0x23f4c5),this[_0x35d465(0xc7)][_0x35d465(0xc5)][_0x35d465(0xd0)](this[_0x35d465(0xca)]),this[_0x35d465(0xd5)]({'tag':'li','attributes':{'class':[_0x35d465(0xce),_0x2e1378['if'](_0x35d465(0xc6),_0x35d465(0xdd),_0x1b775c=>!_0x1b775c)]},'children':[_0x2b49bf,this[_0x35d465(0xc7)]]});}[_0x26e5dd(0xc9)](_0x1b39d9){const _0x1ca67a=_0x26e5dd,_0x126941=this[_0x1ca67a(0xca)][_0x1ca67a(0xd6)];let _0x57d37e=0x0;for(const _0x112caf of this[_0x1ca67a(0xca)]){if(_0x1b39d9){const _0x2086d7=_0x112caf[_0x1ca67a(0xd2)](_0x1b39d9);_0x112caf[_0x1ca67a(0xc6)]=!!_0x2086d7,_0x112caf[_0x1ca67a(0xc0)](_0x1b39d9);}else _0x112caf[_0x1ca67a(0xc6)]=!0x0,_0x112caf[_0x1ca67a(0xc0)](null);_0x112caf[_0x1ca67a(0xc6)]&&_0x57d37e++;}return this[_0x1ca67a(0xc6)]=_0x57d37e>0x0,{'resultsCount':_0x57d37e,'totalItemsCount':_0x126941};}[_0x26e5dd(0xc1)](_0x4da63b){const _0x1cdf61=_0x26e5dd;return this[_0x1cdf61(0xca)][_0x1cdf61(0xbf)](_0x417622=>_0x417622['id']===_0x4da63b);}[_0x26e5dd(0xcb)](_0x55fc01){const _0x438cc5=_0x26e5dd,_0x1fa2c1=this[_0x438cc5(0xca)][_0x438cc5(0xcc)](_0x55fc01);-0x1!==_0x1fa2c1&&(this[_0x438cc5(0xca)][_0x438cc5(0xda)](_0x1fa2c1,0x1),this[_0x438cc5(0xc7)][_0x438cc5(0xc5)][_0x438cc5(0xcd)](_0x55fc01));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ebb4c=_0x3383;function _0x3383(_0x5b2950,_0x8061f){const _0x49cab9=_0x49ca();return _0x3383=function(_0x3383e9,_0x3a00d9){_0x3383e9=_0x3383e9-0x64;let _0x57a35a=_0x49cab9[_0x3383e9];return _0x57a35a;},_0x3383(_0x5b2950,_0x8061f);}(function(_0x2f41f9,_0x1dd362){const _0x18c9c3=_0x3383,_0x181ee3=_0x2f41f9();while(!![]){try{const _0x4b2f37=-parseInt(_0x18c9c3(0x68))/0x1+parseInt(_0x18c9c3(0x6f))/0x2*(-parseInt(_0x18c9c3(0x6e))/0x3)+-parseInt(_0x18c9c3(0x64))/0x4+-parseInt(_0x18c9c3(0x6d))/0x5+-parseInt(_0x18c9c3(0x72))/0x6*(parseInt(_0x18c9c3(0x67))/0x7)+parseInt(_0x18c9c3(0x65))/0x8+-parseInt(_0x18c9c3(0x69))/0x9*(-parseInt(_0x18c9c3(0x6c))/0xa);if(_0x4b2f37===_0x1dd362)break;else _0x181ee3['push'](_0x181ee3['shift']());}catch(_0x190946){_0x181ee3['push'](_0x181ee3['shift']());}}}(_0x49ca,0x2d2d7));function _0x49ca(){const _0x1ddd63=['ck-ai-chat-history__sections','6GjxNXy','extendTemplate','415984iSHczf','697848aMMQBB','filter','1966741GItqwS','308648KNtWkE','837ioIVhC','addMany','items','95750qqSnMZ','137490TYYiUL','57MqsIJn','7532XbDYDn','sections'];_0x49ca=function(){return _0x1ddd63;};return _0x49ca();}import{ListView as _0x815b37}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x815b37{[_0x5ebb4c(0x70)];constructor(_0x232637,_0x13c58b){const _0x18ba0a=_0x5ebb4c;super(_0x232637),this[_0x18ba0a(0x70)]=_0x13c58b,this[_0x18ba0a(0x6b)][_0x18ba0a(0x6a)](this[_0x18ba0a(0x70)]),this[_0x18ba0a(0x73)]({'attributes':{'class':[_0x18ba0a(0x71)]}});}[_0x5ebb4c(0x66)](_0x3c0e67){const _0xf2b80d=_0x5ebb4c;let _0x4f0ae0=0x0,_0x35de16=0x0;for(const _0x2fbbd3 of this[_0xf2b80d(0x70)]){const {resultsCount:_0x21d3fd,totalItemsCount:_0xa82058}=_0x2fbbd3[_0xf2b80d(0x66)](_0x3c0e67);_0x4f0ae0+=_0x21d3fd,_0x35de16+=_0xa82058;}return{'resultsCount':_0x4f0ae0,'totalItemsCount':_0x35de16};}}
23
+ const _0x1a44f3=_0x1f49;(function(_0x565a1d,_0x2a43c3){const _0x43dd84=_0x1f49,_0x506314=_0x565a1d();while(!![]){try{const _0x5459d3=parseInt(_0x43dd84(0x1b8))/0x1*(parseInt(_0x43dd84(0x1bd))/0x2)+parseInt(_0x43dd84(0x1b5))/0x3+-parseInt(_0x43dd84(0x1b2))/0x4+parseInt(_0x43dd84(0x1b9))/0x5+parseInt(_0x43dd84(0x1b7))/0x6+parseInt(_0x43dd84(0x1c0))/0x7*(parseInt(_0x43dd84(0x1bb))/0x8)+parseInt(_0x43dd84(0x1be))/0x9*(-parseInt(_0x43dd84(0x1b4))/0xa);if(_0x5459d3===_0x2a43c3)break;else _0x506314['push'](_0x506314['shift']());}catch(_0x4847c1){_0x506314['push'](_0x506314['shift']());}}}(_0x16d3,0xde713));function _0x1f49(_0x91a65,_0x1fd77e){const _0x16d3f7=_0x16d3();return _0x1f49=function(_0x1f491f,_0x4fd8f3){_0x1f491f=_0x1f491f-0x1b2;let _0x2832b7=_0x16d3f7[_0x1f491f];return _0x2832b7;},_0x1f49(_0x91a65,_0x1fd77e);}function _0x16d3(){const _0x47e069=['addMany','10892rJJQtn','items','4838044sQrbPX','extendTemplate','1570XLRVRg','4572993AXkzhB','filter','10552692gNLGDc','54dINFcQ','162880YUKIvM','sections','4208ZKugud','ck-ai-chat-history__sections','33552rqxsHQ','167355hOxWqB'];_0x16d3=function(){return _0x47e069;};return _0x16d3();}import{ListView as _0x30bdd3}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x30bdd3{[_0x1a44f3(0x1ba)];constructor(_0x26251e,_0x3f1723){const _0x4932a6=_0x1a44f3;super(_0x26251e),this[_0x4932a6(0x1ba)]=_0x3f1723,this[_0x4932a6(0x1c1)][_0x4932a6(0x1bf)](this[_0x4932a6(0x1ba)]),this[_0x4932a6(0x1b3)]({'attributes':{'class':[_0x4932a6(0x1bc)]}});}[_0x1a44f3(0x1b6)](_0x129f07){const _0x39e6b4=_0x1a44f3;let _0xdc9c8=0x0,_0x241550=0x0;for(const _0x44ecfd of this[_0x39e6b4(0x1ba)]){const {resultsCount:_0x264467,totalItemsCount:_0x597538}=_0x44ecfd[_0x39e6b4(0x1b6)](_0x129f07);_0xdc9c8+=_0x264467,_0x241550+=_0x597538;}return{'resultsCount':_0xdc9c8,'totalItemsCount':_0x241550};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x449955=_0x3790;(function(_0x3cc9fc,_0x5d6bdd){const _0x1b30ee=_0x3790,_0x26143d=_0x3cc9fc();while(!![]){try{const _0x2994cd=parseInt(_0x1b30ee(0x1b2))/0x1*(parseInt(_0x1b30ee(0x19e))/0x2)+-parseInt(_0x1b30ee(0x19c))/0x3*(-parseInt(_0x1b30ee(0x1c6))/0x4)+parseInt(_0x1b30ee(0x1b9))/0x5+parseInt(_0x1b30ee(0x1bb))/0x6*(parseInt(_0x1b30ee(0x178))/0x7)+-parseInt(_0x1b30ee(0x17f))/0x8*(parseInt(_0x1b30ee(0x184))/0x9)+-parseInt(_0x1b30ee(0x1bf))/0xa+parseInt(_0x1b30ee(0x19b))/0xb*(parseInt(_0x1b30ee(0x1a9))/0xc);if(_0x2994cd===_0x5d6bdd)break;else _0x26143d['push'](_0x26143d['shift']());}catch(_0x15b1ac){_0x26143d['push'](_0x26143d['shift']());}}}(_0x47ee,0xa50a5));function _0x3790(_0x464cf1,_0x5c5ad5){const _0x47ee88=_0x47ee();return _0x3790=function(_0x379000,_0x1856b6){_0x379000=_0x379000-0x178;let _0x1d7a19=_0x47ee88[_0x379000];return _0x1d7a19;},_0x3790(_0x464cf1,_0x5c5ad5);}import{View as _0x2b3381,SearchTextView as _0xd73dad,FormHeaderView as _0x1eaaf5,ButtonView as _0x486c4a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a6f62,IconCancel as _0x3590b1,IconPlus as _0x3eba57}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2609a4}from'./aichathistorysectionlistview.js';function _0x47ee(){const _0x54d2e9=['isMaximized','fieldView','change:errorMessage','div','AI_CHAT_HISTORY_SEARCH_LABEL','4bMXEJL','ck-rounded-corners','_createSearchView','errorView','hasItems','remove','openChat','bind','ltr','updateLoadingState','search','addMany','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','isVisible','8761781JSYXiM','bindTemplate','locale','removeHistoryItem','ck-ai-chat-history__empty','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','288pYZekI','_createErrorView','errorMessage','itemsViews','aiHistory','278811JZCKDT','delegate','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','ck-hidden','ck-ai-chat__start-conversation','children','ck-ai-chat-error','isEmptyViewVisible','render','AI_CHAT_LABEL_NEW_CHAT','execute','value','ck-ai-chat-history','updateItemTitle','items','clear','ck-ai-chat-error__dismiss-button','fire','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','length','2442737IxjDtH','684837ZAEzjt','queryView','14gSvYBf','isSearchViewVisible','indexOf','set','ck-ai-chat-history__empty-message','_createListItemViews','_refreshSearch','element','updateHistoryItemsWithCategories','change:isLoading','skeletonView','24DIowEQ','_createSkeletonView','removeItem','splice','some','extendTemplate','_updateViewVisibility','ck-ai-chat-history__content','sections','122427qwbdYI','resizeButton','searchView','getItem','emptyView','_createEmptyStateView','isLoading','119550WrLRKo','setTemplate','6QMvlHF','AI_CHAT_HISTORY_HEADING','title','push','10137460YoIDSZ','sectionsView'];_0x47ee=function(){return _0x54d2e9;};return _0x47ee();}import{AIChatHistoryListView as _0x16cbcb}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x348538}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x458124}from'../aichathistoryui.js';import{AISkeletonView as _0x41e7b5,SKELETON_DEFINITIONS as _0x2ca309}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x44ff7f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x269980}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2b3381{[_0x449955(0x1b4)];[_0x449955(0x1c9)];[_0x449955(0x1a8)];[_0x449955(0x1b6)];[_0x449955(0x1c0)];[_0x449955(0x1b3)];constructor(_0x173123,_0x29d179){const _0x12a377=_0x449955;super(_0x173123),this[_0x12a377(0x1a1)](_0x12a377(0x1ca),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x1b8),!0x0),this[_0x12a377(0x1a1)](_0x12a377(0x181),''),this[_0x12a377(0x1a1)](_0x12a377(0x1c1),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x19f),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x18c),!0x1);const _0x5d7888=new _0x1eaaf5(_0x173123,{'label':_0x269980(_0x173123,_0x12a377(0x1bc)),'icon':_0x4a6f62,'class':_0x12a377(0x187)});_0x29d179&&(this[_0x12a377(0x1b3)]=_0x44ff7f(_0x173123,this),_0x5d7888[_0x12a377(0x18a)][_0x12a377(0x17d)](this[_0x12a377(0x1b3)])),this[_0x12a377(0x1c0)]=new _0x2609a4(_0x173123,[]),this[_0x12a377(0x1c0)][_0x12a377(0x185)](..._0x458124)['to'](this),this[_0x12a377(0x1c9)]=this[_0x12a377(0x180)](),this[_0x12a377(0x1a8)]=this[_0x12a377(0x1aa)](),this[_0x12a377(0x1b6)]=this[_0x12a377(0x1b7)](),this[_0x12a377(0x1b4)]=this[_0x12a377(0x1c8)](),this['on'](_0x12a377(0x1a7),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1d3),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1c3),()=>this[_0x12a377(0x1af)]()),this[_0x12a377(0x1ba)]({'tag':_0x12a377(0x1c4),'attributes':{'class':['ck',_0x12a377(0x197),_0x12a377(0x191),_0x12a377(0x1c7)],'dir':_0x12a377(0x1ce)},'children':[_0x5d7888,{'tag':_0x12a377(0x1c4),'attributes':{'class':[_0x12a377(0x1b0)]},'children':[this[_0x12a377(0x1a8)],this[_0x12a377(0x1c9)],this[_0x12a377(0x1b6)],this[_0x12a377(0x1b4)]]}]});}[_0x449955(0x1af)](){const _0x25decc=_0x449955;this[_0x25decc(0x19f)]=!this[_0x25decc(0x1b8)]&&this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)],this[_0x25decc(0x18c)]=!this[_0x25decc(0x1b8)]&&!this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)];}[_0x449955(0x1c8)](){const _0x478069=_0x449955,_0x2538c3=new _0xd73dad(this[_0x478069(0x17a)],{'filteredView':this[_0x478069(0x1c0)],'queryView':{'label':_0x269980(this[_0x478069(0x17a)],_0x478069(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x35075f=>_0x269980(this[_0x478069(0x17a)],_0x478069(0x17e),_0x35075f),'secondary':_0x269980(this[_0x478069(0x17a)],_0x478069(0x198))}}}});return _0x2538c3['on'](_0x478069(0x18d),()=>{const _0x53c016=_0x478069;this[_0x53c016(0x1b4)][_0x53c016(0x18a)][_0x53c016(0x17d)](this[_0x53c016(0x1c9)],0x1);}),_0x2538c3[_0x478069(0x1ae)]({'attributes':{'class':[this[_0x478069(0x179)]['if'](_0x478069(0x19f),_0x478069(0x188),_0x84a322=>!_0x84a322)]}}),_0x2538c3;}[_0x449955(0x1aa)](){const _0x18da1d=_0x449955,_0x189526=new _0x41e7b5(this[_0x18da1d(0x17a)],_0x2ca309[_0x18da1d(0x183)]);return _0x189526[_0x18da1d(0x1ae)]({'attributes':{'class':[this[_0x18da1d(0x179)]['if'](_0x18da1d(0x1b8),_0x18da1d(0x188),_0x337480=>!_0x337480)]}}),_0x189526;}[_0x449955(0x180)](){const _0x1fc9f5=_0x449955,_0x1891b4=new _0x2b3381(this[_0x1fc9f5(0x17a)]),_0x24e396=new _0x486c4a(this[_0x1fc9f5(0x17a)]);return _0x24e396[_0x1fc9f5(0x1a1)]({'withText':!0x1,'icon':_0x3590b1,'class':_0x1fc9f5(0x195)}),_0x24e396[_0x1fc9f5(0x1cd)](_0x1fc9f5(0x1d4))['to'](this,_0x1fc9f5(0x1ca),_0x6c361e=>!!_0x6c361e),_0x24e396['on'](_0x1fc9f5(0x18f),()=>{const _0x4c9f55=_0x1fc9f5;this[_0x4c9f55(0x181)]='';}),_0x1891b4[_0x1fc9f5(0x1ba)]({'tag':_0x1fc9f5(0x1c4),'attributes':{'class':['ck',_0x1fc9f5(0x18b),this[_0x1fc9f5(0x179)]['if'](_0x1fc9f5(0x181),_0x1fc9f5(0x188),_0x1d9cf5=>!_0x1d9cf5)]},'children':[{'tag':'p','children':[{'text':this[_0x1fc9f5(0x179)]['to'](_0x1fc9f5(0x181))}]},_0x24e396]}),_0x1891b4;}[_0x449955(0x1b7)](){const _0x56d7b6=_0x449955,_0x152594=new _0x486c4a(this[_0x56d7b6(0x17a)]);_0x152594[_0x56d7b6(0x1a1)]({'label':_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x18e)),'withText':!0x0,'icon':_0x3eba57,'class':_0x56d7b6(0x189)}),_0x152594['on'](_0x56d7b6(0x18f),()=>{const _0x4c6ac2=_0x56d7b6;this[_0x4c6ac2(0x196)](_0x4c6ac2(0x1cc));});const _0x579ef7=new _0x2b3381(this[_0x56d7b6(0x17a)]);return _0x579ef7[_0x56d7b6(0x1ba)]({'tag':_0x56d7b6(0x1c4),'attributes':{'class':[_0x56d7b6(0x17c),this[_0x56d7b6(0x179)]['if'](_0x56d7b6(0x18c),_0x56d7b6(0x188),_0x8ffa0c=>!_0x8ffa0c)]},'children':[{'tag':'p','attributes':{'class':[_0x56d7b6(0x1a2)]},'children':[_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x1d2))]},_0x152594]}),_0x579ef7;}[_0x449955(0x1a3)](_0x565010,_0x1f7012){const _0x96a1f1=_0x449955,_0x346bbd=[];for(const _0xb7df26 of _0x565010){const _0x5ca329=new _0x348538(_0x1f7012,_0xb7df26);_0x5ca329[_0x96a1f1(0x185)](..._0x458124)['to'](this),_0x346bbd[_0x96a1f1(0x1be)](_0x5ca329);}return _0x346bbd;}[_0x449955(0x1a6)](_0xf62f3c){const _0x4f65a7=_0x449955,_0x107ef4=this[_0x4f65a7(0x17a)]||'en',_0x497027=[];for(const _0x13a738 of _0xf62f3c){const _0x4b1fd1=this[_0x4f65a7(0x1a3)](_0x13a738[_0x4f65a7(0x193)],_0x107ef4);_0x497027[_0x4f65a7(0x1be)](new _0x16cbcb(_0x107ef4,{'title':_0x13a738[_0x4f65a7(0x1bd)],'items':_0x4b1fd1}));}this[_0x4f65a7(0x1c0)][_0x4f65a7(0x1b1)]=_0x497027,this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x194)](),this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x1d1)](_0x497027),this[_0x4f65a7(0x1ca)]=_0xf62f3c[_0x4f65a7(0x1ad)](_0x1a2390=>_0x1a2390[_0x4f65a7(0x193)][_0x4f65a7(0x19a)]>0x0),this[_0x4f65a7(0x1a4)]();}[_0x449955(0x17b)](_0x29e9d2){const _0x4747fb=_0x449955;for(const _0x375993 of this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)]){const _0x5b2576=_0x375993[_0x4747fb(0x1b5)](_0x29e9d2);if(_0x5b2576){if(_0x375993[_0x4747fb(0x1ab)](_0x5b2576),0x0===_0x375993[_0x4747fb(0x182)][_0x4747fb(0x19a)]){const _0x53ab7c=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1a0)](_0x375993);-0x1!==_0x53ab7c&&(this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1ac)](_0x53ab7c,0x1),this[_0x4747fb(0x1c0)][_0x4747fb(0x193)][_0x4747fb(0x1cb)](_0x375993));}this[_0x4747fb(0x1ca)]=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x19a)]>0x0,this[_0x4747fb(0x1a4)]();break;}}}[_0x449955(0x192)](_0x33ad6d,_0x10c454){const _0x48e591=_0x449955;for(const _0x3a306b of this[_0x48e591(0x1c0)][_0x48e591(0x1b1)]){const _0x3fd4b1=_0x3a306b[_0x48e591(0x1b5)](_0x33ad6d);if(_0x3fd4b1){_0x3fd4b1[_0x48e591(0x199)](_0x10c454);break;}}}[_0x449955(0x186)](_0x9b8ade,_0x2bb20f,_0x35473e){const _0x21481e=_0x449955;for(const _0x11d278 of this[_0x21481e(0x1c0)][_0x21481e(0x1b1)]){const _0x545f8d=_0x11d278[_0x21481e(0x1b5)](_0x9b8ade);if(_0x545f8d){_0x545f8d[_0x21481e(0x1cf)](_0x2bb20f,_0x35473e);break;}}}[_0x449955(0x1a4)](){const _0x5f4c7c=_0x449955;if(this[_0x5f4c7c(0x1ca)]){const _0x2a60e4=this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x19d)][_0x5f4c7c(0x1c2)]?.[_0x5f4c7c(0x1a5)]?.[_0x5f4c7c(0x190)]||'';this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x1d0)](_0x2a60e4);}}}
23
+ const _0x50d126=_0x56d4;(function(_0x400c35,_0x5aca0e){const _0x2eb7aa=_0x56d4,_0x244008=_0x400c35();while(!![]){try{const _0x5d2631=-parseInt(_0x2eb7aa(0x1cd))/0x1*(-parseInt(_0x2eb7aa(0x1e8))/0x2)+-parseInt(_0x2eb7aa(0x1e1))/0x3+parseInt(_0x2eb7aa(0x1ed))/0x4+-parseInt(_0x2eb7aa(0x1a9))/0x5+-parseInt(_0x2eb7aa(0x1e2))/0x6*(-parseInt(_0x2eb7aa(0x1bb))/0x7)+-parseInt(_0x2eb7aa(0x1ef))/0x8+parseInt(_0x2eb7aa(0x19c))/0x9*(parseInt(_0x2eb7aa(0x1da))/0xa);if(_0x5d2631===_0x5aca0e)break;else _0x244008['push'](_0x244008['shift']());}catch(_0x37f964){_0x244008['push'](_0x244008['shift']());}}}(_0x1830,0x86453));import{View as _0x48d92d,SearchTextView as _0x3f4f00,FormHeaderView as _0x355ca9,ButtonView as _0x1a4bac}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x128d9c,IconCancel as _0x4fcd8c,IconPlus as _0x46182d}from'ckeditor5/src/icons.js';function _0x56d4(_0xa0e86c,_0x3dfe1e){const _0x183044=_0x1830();return _0x56d4=function(_0x56d421,_0x4c4a80){_0x56d421=_0x56d421-0x19b;let _0x4158bc=_0x183044[_0x56d421];return _0x4158bc;},_0x56d4(_0xa0e86c,_0x3dfe1e);}import{AIChatHistorySectionListView as _0x2aa781}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x17c392}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x106232}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xb36d06}from'../aichathistoryui.js';function _0x1830(){const _0x32fc3b=['ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','some','ck-ai-chat-error','locale','AI_CHAT_HISTORY_SEARCH_LABEL','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','openChat','42qRTSam','change:isLoading','bind','removeItem','push','ck-ai-chat-history__content','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','search','errorView','setTemplate','_createSkeletonView','fieldView','isVisible','element','set','_updateViewVisibility','errorMessage','37NFRmNn','_createEmptyStateView','children','splice','value','delegate','indexOf','render','add','div','bindTemplate','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty','480bmIypK','items','ck-ai-chat-error__dismiss-button','sectionsView','resizeButton','aiHistory','updateLoadingState','417567txmHeY','430002rZiytW','removeHistoryItem','sections','updateItemTitle','getItem','ltr','39876ZdVzWO','updateItemLoadingState','isMaximized','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','title','2302840rINNzX','clear','6886640PwWpKY','itemsViews','ck-reset_all','updateTitle','addMany','ck-hidden','_createSearchView','change:errorMessage','47934GxFmqX','skeletonView','emptyView','hasItems','_createErrorView','AI_CHAT_HISTORY_HEADING','isEmptyViewVisible','_createListItemViews','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_refreshSearch','ck-ai-chat__start-conversation','execute','2245380rYXnEu','length','isSearchViewVisible','extendTemplate','queryView','remove','ck-rounded-corners','change:hasItems','searchView'];_0x1830=function(){return _0x32fc3b;};return _0x1830();}import{AISkeletonView as _0x543b60,SKELETON_DEFINITIONS as _0x2f1045}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2e13ee}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26fa6e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x48d92d{[_0x50d126(0x1b1)];[_0x50d126(0x1c4)];[_0x50d126(0x19d)];[_0x50d126(0x19e)];[_0x50d126(0x1dd)];[_0x50d126(0x1de)];constructor(_0x3006c7,_0x3fe43f){const _0x468611=_0x50d126;super(_0x3006c7),this[_0x468611(0x1ca)](_0x468611(0x19f),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1a4),!0x0),this[_0x468611(0x1ca)](_0x468611(0x1cc),''),this[_0x468611(0x1ca)](_0x468611(0x1ea),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1ab),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1a2),!0x1);const _0x1d12fa=new _0x355ca9(_0x3006c7,{'label':_0x26fa6e(_0x3006c7,_0x468611(0x1a1)),'icon':_0x128d9c,'class':_0x468611(0x1c2)});_0x3fe43f&&(this[_0x468611(0x1de)]=_0x2e13ee(_0x3006c7,this),_0x1d12fa[_0x468611(0x1cf)][_0x468611(0x1d5)](this[_0x468611(0x1de)])),this[_0x468611(0x1dd)]=new _0x2aa781(_0x3006c7,[]),this[_0x468611(0x1dd)][_0x468611(0x1d2)](..._0xb36d06)['to'](this),this[_0x468611(0x1c4)]=this[_0x468611(0x1a0)](),this[_0x468611(0x19d)]=this[_0x468611(0x1c6)](),this[_0x468611(0x19e)]=this[_0x468611(0x1ce)](),this[_0x468611(0x1b1)]=this[_0x468611(0x1f5)](),this['on'](_0x468611(0x1bc),()=>this[_0x468611(0x1cb)]()),this['on'](_0x468611(0x1b0),()=>this[_0x468611(0x1cb)]()),this['on'](_0x468611(0x19b),()=>this[_0x468611(0x1cb)]()),this[_0x468611(0x1c5)]({'tag':_0x468611(0x1d6),'attributes':{'class':['ck',_0x468611(0x1f1),_0x468611(0x1c1),_0x468611(0x1af)],'dir':_0x468611(0x1e7)},'children':[_0x1d12fa,{'tag':_0x468611(0x1d6),'attributes':{'class':[_0x468611(0x1c0)]},'children':[this[_0x468611(0x19d)],this[_0x468611(0x1c4)],this[_0x468611(0x19e)],this[_0x468611(0x1b1)]]}]});}[_0x50d126(0x1cb)](){const _0x512eb9=_0x50d126;this[_0x512eb9(0x1ab)]=!this[_0x512eb9(0x1a4)]&&this[_0x512eb9(0x19f)]&&!this[_0x512eb9(0x1cc)],this[_0x512eb9(0x1a2)]=!this[_0x512eb9(0x1a4)]&&!this[_0x512eb9(0x19f)]&&!this[_0x512eb9(0x1cc)];}[_0x50d126(0x1f5)](){const _0x46d31e=_0x50d126,_0x22a81a=new _0x3f4f00(this[_0x46d31e(0x1b6)],{'filteredView':this[_0x46d31e(0x1dd)],'queryView':{'label':_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1b7))},'infoView':{'text':{'notFound':{'primary':_0x2f231f=>_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1eb),_0x2f231f),'secondary':_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1a5))}}}});return _0x22a81a['on'](_0x46d31e(0x1d4),()=>{const _0x3d3356=_0x46d31e;this[_0x3d3356(0x1b1)][_0x3d3356(0x1cf)][_0x3d3356(0x1d5)](this[_0x3d3356(0x1c4)],0x1);}),_0x22a81a[_0x46d31e(0x1ac)]({'attributes':{'class':[this[_0x46d31e(0x1d7)]['if'](_0x46d31e(0x1ab),_0x46d31e(0x1f4),_0x3d40e4=>!_0x3d40e4)]}}),_0x22a81a;}[_0x50d126(0x1c6)](){const _0x44e403=_0x50d126,_0x394053=new _0x543b60(this[_0x44e403(0x1b6)],_0x2f1045[_0x44e403(0x1df)]);return _0x394053[_0x44e403(0x1ac)]({'attributes':{'class':[this[_0x44e403(0x1d7)]['if'](_0x44e403(0x1a4),_0x44e403(0x1f4),_0x3012bc=>!_0x3012bc)]}}),_0x394053;}[_0x50d126(0x1a0)](){const _0x31623f=_0x50d126,_0x21d872=new _0x48d92d(this[_0x31623f(0x1b6)]),_0x6a2bd7=new _0x1a4bac(this[_0x31623f(0x1b6)]);return _0x6a2bd7[_0x31623f(0x1ca)]({'withText':!0x1,'icon':_0x4fcd8c,'class':_0x31623f(0x1dc)}),_0x6a2bd7[_0x31623f(0x1bd)](_0x31623f(0x1c8))['to'](this,_0x31623f(0x19f),_0x3f710f=>!!_0x3f710f),_0x6a2bd7['on'](_0x31623f(0x1a8),()=>{const _0x5b7589=_0x31623f;this[_0x5b7589(0x1cc)]='';}),_0x21d872[_0x31623f(0x1c5)]({'tag':_0x31623f(0x1d6),'attributes':{'class':['ck',_0x31623f(0x1b5),this[_0x31623f(0x1d7)]['if'](_0x31623f(0x1cc),_0x31623f(0x1f4),_0x2373c5=>!_0x2373c5)]},'children':[{'tag':'p','children':[{'text':this[_0x31623f(0x1d7)]['to'](_0x31623f(0x1cc))}]},_0x6a2bd7]}),_0x21d872;}[_0x50d126(0x1ce)](){const _0x3636f7=_0x50d126,_0x4f6337=new _0x1a4bac(this[_0x3636f7(0x1b6)]);_0x4f6337[_0x3636f7(0x1ca)]({'label':_0x26fa6e(this[_0x3636f7(0x1b6)],_0x3636f7(0x1d8)),'withText':!0x0,'icon':_0x46182d,'class':_0x3636f7(0x1a7)}),_0x4f6337['on'](_0x3636f7(0x1a8),()=>{const _0x17427e=_0x3636f7;this[_0x17427e(0x1b9)](_0x17427e(0x1ba));});const _0x384a0d=new _0x48d92d(this[_0x3636f7(0x1b6)]);return _0x384a0d[_0x3636f7(0x1c5)]({'tag':_0x3636f7(0x1d6),'attributes':{'class':[_0x3636f7(0x1d9),this[_0x3636f7(0x1d7)]['if'](_0x3636f7(0x1a2),_0x3636f7(0x1f4),_0x234683=>!_0x234683)]},'children':[{'tag':'p','attributes':{'class':[_0x3636f7(0x1b2)]},'children':[_0x26fa6e(this[_0x3636f7(0x1b6)],_0x3636f7(0x1b8))]},_0x4f6337]}),_0x384a0d;}[_0x50d126(0x1a3)](_0x2d86a5,_0x58b3e6){const _0x16ac79=_0x50d126,_0x2e2147=[];for(const _0x46050a of _0x2d86a5){const _0x1e15c3=new _0x106232(_0x58b3e6,_0x46050a);_0x1e15c3[_0x16ac79(0x1d2)](..._0xb36d06)['to'](this),_0x2e2147[_0x16ac79(0x1bf)](_0x1e15c3);}return _0x2e2147;}[_0x50d126(0x1b3)](_0x5bd522){const _0xebdc93=_0x50d126,_0x417bb7=this[_0xebdc93(0x1b6)]||'en',_0x3b63ca=[];for(const _0x1006ad of _0x5bd522){const _0x4e0781=this[_0xebdc93(0x1a3)](_0x1006ad[_0xebdc93(0x1db)],_0x417bb7);_0x3b63ca[_0xebdc93(0x1bf)](new _0x17c392(_0x417bb7,{'title':_0x1006ad[_0xebdc93(0x1ec)],'items':_0x4e0781}));}this[_0xebdc93(0x1dd)][_0xebdc93(0x1e4)]=_0x3b63ca,this[_0xebdc93(0x1dd)][_0xebdc93(0x1db)][_0xebdc93(0x1ee)](),this[_0xebdc93(0x1dd)][_0xebdc93(0x1db)][_0xebdc93(0x1f3)](_0x3b63ca),this[_0xebdc93(0x19f)]=_0x5bd522[_0xebdc93(0x1b4)](_0x3e9452=>_0x3e9452[_0xebdc93(0x1db)][_0xebdc93(0x1aa)]>0x0),this[_0xebdc93(0x1a6)]();}[_0x50d126(0x1e3)](_0x330c3e){const _0x1372b4=_0x50d126;for(const _0x29a35f of this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)]){const _0x25a63d=_0x29a35f[_0x1372b4(0x1e6)](_0x330c3e);if(_0x25a63d){if(_0x29a35f[_0x1372b4(0x1be)](_0x25a63d),0x0===_0x29a35f[_0x1372b4(0x1f0)][_0x1372b4(0x1aa)]){const _0x1d63c7=this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1d3)](_0x29a35f);-0x1!==_0x1d63c7&&(this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1d0)](_0x1d63c7,0x1),this[_0x1372b4(0x1dd)][_0x1372b4(0x1db)][_0x1372b4(0x1ae)](_0x29a35f));}this[_0x1372b4(0x19f)]=this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1aa)]>0x0,this[_0x1372b4(0x1a6)]();break;}}}[_0x50d126(0x1e5)](_0xd9edcc,_0x98f4ed){const _0x2846f6=_0x50d126;for(const _0x426003 of this[_0x2846f6(0x1dd)][_0x2846f6(0x1e4)]){const _0x40a674=_0x426003[_0x2846f6(0x1e6)](_0xd9edcc);if(_0x40a674){_0x40a674[_0x2846f6(0x1f2)](_0x98f4ed);break;}}}[_0x50d126(0x1e9)](_0x2d4648,_0x3ba735,_0xcd11bd){const _0x235cb0=_0x50d126;for(const _0x342f94 of this[_0x235cb0(0x1dd)][_0x235cb0(0x1e4)]){const _0x413bd2=_0x342f94[_0x235cb0(0x1e6)](_0x2d4648);if(_0x413bd2){_0x413bd2[_0x235cb0(0x1e0)](_0x3ba735,_0xcd11bd);break;}}}[_0x50d126(0x1a6)](){const _0x127a76=_0x50d126;if(this[_0x127a76(0x19f)]){const _0x202c5=this[_0x127a76(0x1b1)][_0x127a76(0x1ad)][_0x127a76(0x1c7)]?.[_0x127a76(0x1c9)]?.[_0x127a76(0x1d1)]||'';this[_0x127a76(0x1b1)][_0x127a76(0x1c3)](_0x202c5);}}}
package/src/aiconfig.d.ts CHANGED
@@ -94,6 +94,10 @@ export interface AIContainerBase {
94
94
  * Defaults to `true`.
95
95
  */
96
96
  showResizeButton?: boolean;
97
+ /**
98
+ * Whether the AI interface should be visible when the editor is created.
99
+ */
100
+ visibleByDefault?: boolean;
97
101
  }
98
102
  /**
99
103
  * The configuration of the AI user interface container in the sidebar mode. Provide an existing DOM
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xba94ff=_0x4457;(function(_0xfef303,_0x4772e9){const _0x8a3b62=_0x4457,_0x5b7a54=_0xfef303();while(!![]){try{const _0x1bcfc1=-parseInt(_0x8a3b62(0x1df))/0x1+parseInt(_0x8a3b62(0x1a2))/0x2*(parseInt(_0x8a3b62(0x1b8))/0x3)+parseInt(_0x8a3b62(0x1c6))/0x4+parseInt(_0x8a3b62(0x18f))/0x5+-parseInt(_0x8a3b62(0x195))/0x6*(parseInt(_0x8a3b62(0x1c9))/0x7)+-parseInt(_0x8a3b62(0x1cc))/0x8+-parseInt(_0x8a3b62(0x1fc))/0x9*(-parseInt(_0x8a3b62(0x207))/0xa);if(_0x1bcfc1===_0x4772e9)break;else _0x5b7a54['push'](_0x5b7a54['shift']());}catch(_0x899e74){_0x5b7a54['push'](_0x5b7a54['shift']());}}}(_0x265c,0x91015));import{createParser as _0x38d6dd}from'eventsource-parser';import{ContextPlugin as _0x24dfbe}from'ckeditor5/src/core.js';function _0x265c(){const _0xab621d=['MAKE_LONGER','DELETE','4345000HymUTV','decode','locale','signal','upsertAIActionRating','FIX_GRAMMAR','queryAssistant','executeCustomAction','ai-request-aborted','/reviews/custom/calls/','startConversation','plugins','AIConnector','make-longer','deleteDocument','/messages','catch','upsertAIReviewRating','token','105958SEqlUd','make-tone-formal','length','AbortError','/models/1','get','init','body','feed','Bearer\x20','_token','MAKE_TONE_CASUAL','callCustomReview','parse','uploadDocument','fix-grammar','updateConversation','Content-Type','status','excludeEmpty','fetchDocument','deleteWebResource','upsertAIChatRating','uploadFile','ai-request-failed','/ratings','totalCount','CloudServices','/reviews/system/','15426XQjjEm','IMPROVE_WRITING','_sendApiRequest','/actions/custom/calls','name','upsertCustomAIReviewRating','/conversations?','ai-missing-token','ai.serviceUrl','100','continue','470RMJPBC','keys','/calls/','map','reset','read','attributes','/files/','isPremiumPlugin','isOfficialPlugin','positiveCount','json','CONTINUE','append','getReader','items','abortController','true','application/json','value','search','MAKE_SHORTER','uploadUrl','config','/conversations/','315000UtpQQX','pluginName','make-shorter','GET','toString','fetchConversations','294FNpajc','/documents','executeAction','statusText','_apiUrl','https://ai.cke-cs.com/v1','toUpperCase','/calls','text','/reviews/custom/calls','request','_getStreamReader','make-tone-casual','80QcqAzk','/web-resources/','deleteConversation','requires','fetchConversation','translate','_decoder','/actions/custom/calls/','file','callSystemReview','data','then','/conversations','PATCH','fetchConversationMessages','context','group','releaseLock','/web-resources','PUT','MAKE_TONE_FORMAL','improve-writing','69492bWjYCa','/files','upsertCustomAIActionRating','_handleError','/messages/','getModels','stringify','/documents/','define','TRANSLATE','/actions/system/','POST','deleteFile','limit','2913088rcfgMP','AI_MODEL_DESCRIPTION_','push','79338nOCgfD'];_0x265c=function(){return _0xab621d;};return _0x265c();}import{CKEditorError as _0x5cadba}from'ckeditor5/src/utils.js';import{getTranslation as _0x1055dc}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x46a89b){const _0xe673d8=_0x4457;_0x46a89b[_0xe673d8(0x213)]=_0xe673d8(0x206),_0x46a89b[_0xe673d8(0x1d1)]=_0xe673d8(0x1ee),_0x46a89b[_0xe673d8(0x1fd)]=_0xe673d8(0x1b7),_0x46a89b[_0xe673d8(0x1ca)]=_0xe673d8(0x1d9),_0x46a89b[_0xe673d8(0x18b)]=_0xe673d8(0x191),_0x46a89b[_0xe673d8(0x1ea)]=_0xe673d8(0x1a1),_0x46a89b[_0xe673d8(0x1b6)]=_0xe673d8(0x1e0),_0x46a89b[_0xe673d8(0x1c1)]=_0xe673d8(0x1a7);}(AIActionsNames||(AIActionsNames={}));function _0x4457(_0x872983,_0x2aff31){const _0x265c68=_0x265c();return _0x4457=function(_0x44572b,_0x4eb909){_0x44572b=_0x44572b-0x183;let _0x15d15b=_0x265c68[_0x44572b];return _0x15d15b;},_0x4457(_0x872983,_0x2aff31);}export class AIConnector extends _0x24dfbe{[_0xba94ff(0x199)];[_0xba94ff(0x1e9)];[_0xba94ff(0x1a8)];static get[_0xba94ff(0x1a5)](){const _0x3fb8e5=_0xba94ff;return[_0x3fb8e5(0x1fa)];}static get[_0xba94ff(0x190)](){const _0x45e63b=_0xba94ff;return _0x45e63b(0x1d8);}static get[_0xba94ff(0x210)](){return!0x0;}static get[_0xba94ff(0x20f)](){return!0x0;}constructor(_0x34b4ea){const _0x51c0b3=_0xba94ff;super(_0x34b4ea),this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1c0)](_0x51c0b3(0x204),_0x51c0b3(0x19a)),this[_0x51c0b3(0x199)]=this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1e4)](_0x51c0b3(0x204)),this[_0x51c0b3(0x1e9)]=null,this[_0x51c0b3(0x1a8)]=new TextDecoder();}[_0xba94ff(0x1e5)](){const _0x2b89a9=_0xba94ff,_0x47d221=this[_0x2b89a9(0x1b1)][_0x2b89a9(0x1d7)][_0x2b89a9(0x1e4)](_0x2b89a9(0x1fa));if(!_0x47d221[_0x2b89a9(0x1de)])throw new _0x5cadba(_0x2b89a9(0x203),this);this[_0x2b89a9(0x1e9)]=_0x47d221[_0x2b89a9(0x1de)];}[_0xba94ff(0x1d6)](_0x48190d,_0x1b6f43){const _0x288917=_0xba94ff,_0xca954f=this[_0x288917(0x1fe)](_0x288917(0x1ae),_0x288917(0x1c3),{'id':_0x48190d,'group':_0x1b6f43});return{'getConversation':async()=>(await _0xca954f[_0x288917(0x19f)])[_0x288917(0x212)](),'abortController':_0xca954f[_0x288917(0x186)]};}[_0xba94ff(0x1d2)]({message:_0x58e6d0,conversationId:_0x3bca46,parts:_0x76cb9c,capabilities:_0xe0051c,model:_0x343614,quickActionData:_0x4de05d}){const _0x18039a=_0xba94ff,_0xb0766f={..._0x4de05d&&{'quickActionData':_0x4de05d}},_0xb8c563={'prompt':_0x58e6d0,'content':_0x76cb9c,'model':_0x343614,..._0xe0051c&&{'capabilities':_0xe0051c},...Object[_0x18039a(0x208)](_0xb0766f)[_0x18039a(0x1e1)]>0x0&&{'attributes':_0xb0766f}},_0x37a622=this[_0x18039a(0x1fe)](_0x18039a(0x18e)+_0x3bca46+_0x18039a(0x1db),_0x18039a(0x1c3),_0xb8c563);return{'getStream':async()=>{const _0x4b70b7=_0x18039a,_0x210763=(await _0x37a622[_0x4b70b7(0x19f)])[_0x4b70b7(0x1e6)];return this[_0x4b70b7(0x1a0)](_0x210763);},'abortController':_0x37a622[_0x18039a(0x186)]};}[_0xba94ff(0x1d3)]({content:_0x307776,message:_0x608bda,model:_0x5a8cdb,outputFormat:_0x1b2ba4}){const _0x33090a=_0xba94ff,_0x507279={'content':[{'type':_0x33090a(0x19d),'content':_0x307776}],'prompt':_0x608bda,'model':_0x5a8cdb,'outputFormat':_0x1b2ba4},_0xd523e2=this[_0x33090a(0x1fe)](_0x33090a(0x1ff),_0x33090a(0x1c3),_0x507279);return{'getStream':async()=>{const _0x326c26=_0x33090a,_0x3734a6=(await _0xd523e2[_0x326c26(0x19f)])[_0x326c26(0x1e6)];return this[_0x326c26(0x1a0)](_0x3734a6);},'abortController':_0xd523e2[_0x33090a(0x186)]};}[_0xba94ff(0x197)]({actionName:_0x522706,content:_0x5bc2ea,args:_0x237ec9}){const _0x49a2a6=_0xba94ff,_0x1302cd={'content':[{'type':_0x49a2a6(0x19d),'content':_0x5bc2ea}],'args':_0x237ec9},_0x5da372=this[_0x49a2a6(0x1fe)](_0x49a2a6(0x1c2)+_0x522706+_0x49a2a6(0x19c),_0x49a2a6(0x1c3),_0x1302cd);return{'getStream':async()=>{const _0x40218=_0x49a2a6,_0x10a65a=(await _0x5da372[_0x40218(0x19f)])[_0x40218(0x1e6)];return this[_0x40218(0x1a0)](_0x10a65a);},'abortController':_0x5da372[_0x49a2a6(0x186)]};}[_0xba94ff(0x1f6)](_0x130340,_0x4e793b,_0x103f93){const _0x4c3fc9=_0xba94ff,_0x4b859c=new FormData();_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x1aa),_0x4e793b,_0x4e793b[_0x4c3fc9(0x200)]),_0x103f93&&_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x20d),JSON[_0x4c3fc9(0x1be)](_0x103f93));const _0x38da46=this[_0x4c3fc9(0x1fe)](_0x4c3fc9(0x18e)+_0x130340+_0x4c3fc9(0x1b9),_0x4c3fc9(0x1c3),_0x4b859c);return{'getId':async()=>(await _0x38da46[_0x4c3fc9(0x19f)])[_0x4c3fc9(0x212)](),'abortController':_0x38da46[_0x4c3fc9(0x186)]};}[_0xba94ff(0x1f3)](_0xb5944c,_0x367085){const _0x2aeca5=_0xba94ff,_0x2189da=this[_0x2aeca5(0x1fe)](_0x2aeca5(0x18e)+_0xb5944c+_0x2aeca5(0x1bf)+_0x367085,_0x2aeca5(0x192));return{'getDocument':async()=>(await _0x2189da[_0x2aeca5(0x19f)])[_0x2aeca5(0x212)](),'abortController':_0x2189da[_0x2aeca5(0x186)]};}[_0xba94ff(0x1ed)](_0x541277,_0x42d65a,_0x472a02){const _0x126e40=_0xba94ff,_0x501706={'content':_0x42d65a};_0x472a02&&(_0x501706[_0x126e40(0x20d)]=_0x472a02);const _0x465b6c=this[_0x126e40(0x1fe)](_0x126e40(0x18e)+_0x541277+_0x126e40(0x196),_0x126e40(0x1c3),_0x501706);return{'getId':async()=>(await _0x465b6c[_0x126e40(0x19f)])[_0x126e40(0x212)](),'abortController':_0x465b6c[_0x126e40(0x186)]};}[_0xba94ff(0x194)](_0x297889,_0x4e6d87){const _0x2202d3=_0xba94ff,_0x13662b=new URLSearchParams();_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1f2),_0x2202d3(0x187)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1c5),_0x2202d3(0x205)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1b2),_0x297889),_0x4e6d87&&_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x18a),_0x4e6d87);const _0x452d6c=this[_0x2202d3(0x1fe)](_0x2202d3(0x202)+_0x13662b[_0x2202d3(0x193)](),_0x2202d3(0x192));return{'getConversations':async()=>{const _0x241d4d=_0x2202d3,_0x532f38=await _0x452d6c[_0x241d4d(0x19f)];return(await _0x532f38[_0x241d4d(0x212)]())[_0x241d4d(0x185)];},'abortController':_0x452d6c[_0x2202d3(0x186)]};}[_0xba94ff(0x1a4)](_0x5155d2){const _0x587ad6=_0xba94ff,_0x320bed=this[_0x587ad6(0x1fe)](_0x587ad6(0x18e)+_0x5155d2,_0x587ad6(0x1cb));return{'execute':async()=>{const _0x5b1d22=_0x587ad6;await _0x320bed[_0x5b1d22(0x19f)];},'abortController':_0x320bed[_0x587ad6(0x186)]};}[_0xba94ff(0x1ef)](_0x320326,_0x31b932){const _0x511aac=_0xba94ff,_0x27d6a4=this[_0x511aac(0x1fe)](_0x511aac(0x18e)+_0x320326,_0x511aac(0x1af),_0x31b932);return{'getResult':async()=>(await _0x27d6a4[_0x511aac(0x19f)],_0x31b932),'abortController':_0x27d6a4[_0x511aac(0x186)]};}[_0xba94ff(0x1a6)](_0xbb612c){const _0x449f96=_0xba94ff,_0x325c46=this[_0x449f96(0x1fe)](_0x449f96(0x18e)+_0xbb612c,_0x449f96(0x192));return{'getConversation':async()=>(await _0x325c46[_0x449f96(0x19f)])[_0x449f96(0x212)](),'abortController':_0x325c46[_0x449f96(0x186)]};}[_0xba94ff(0x1b0)](_0x5e6ad9){const _0x565036=_0xba94ff,_0xec3e38=this[_0x565036(0x1fe)](_0x565036(0x18e)+_0x5e6ad9+_0x565036(0x1db),_0x565036(0x192));return{'getMessages':async()=>{const _0x16c802=_0x565036,_0x11ae6a=await _0xec3e38[_0x16c802(0x19f)];return(await _0x11ae6a[_0x16c802(0x212)]())[_0x16c802(0x185)];},'abortController':_0xec3e38[_0x565036(0x186)]};}[_0xba94ff(0x18c)](_0x496a3b,_0x2f2e86,_0x1029a9){const _0x13731b=_0xba94ff,_0x315b88=this[_0x13731b(0x1fe)](_0x13731b(0x18e)+_0x496a3b+_0x13731b(0x1b4),_0x13731b(0x1c3),{'url':_0x2f2e86,'attributes':_0x1029a9});return{'getId':async()=>(await _0x315b88[_0x13731b(0x19f)])[_0x13731b(0x212)](),'abortController':_0x315b88[_0x13731b(0x186)]};}[_0xba94ff(0x1bd)](){const _0x21c514=_0xba94ff,_0x428992=this[_0x21c514(0x1fe)](_0x21c514(0x1e3),_0x21c514(0x192));return{'list':async()=>{const _0x500886=_0x21c514,_0x4a7308=await(await _0x428992[_0x500886(0x19f)])[_0x500886(0x212)](),_0x587d23=_0x4a7308[_0x500886(0x185)][_0x500886(0x20a)](_0x2502de=>({..._0x2502de,'description':_0x1055dc(this[_0x500886(0x1b1)][_0x500886(0x1ce)],_0x500886(0x1c7)+_0x2502de['id'][_0x500886(0x19b)]())}));return{..._0x4a7308,'items':_0x587d23};},'abortController':_0x428992[_0x21c514(0x186)]};}[_0xba94ff(0x1c4)](_0x337c64,_0x321ee3){const _0x15b42d=_0xba94ff,_0x4be2b0=this[_0x15b42d(0x1fe)](_0x15b42d(0x18e)+_0x337c64+_0x15b42d(0x20e)+_0x321ee3,_0x15b42d(0x1cb));return{'execute':async()=>{const _0x28965c=_0x15b42d;await _0x4be2b0[_0x28965c(0x19f)];},'abortController':_0x4be2b0[_0x15b42d(0x186)]};}[_0xba94ff(0x1da)](_0x524d45,_0x274877){const _0x172e67=_0xba94ff,_0x2231ce=this[_0x172e67(0x1fe)](_0x172e67(0x18e)+_0x524d45+_0x172e67(0x1bf)+_0x274877,_0x172e67(0x1cb));return{'execute':async()=>{const _0x4944a8=_0x172e67;await _0x2231ce[_0x4944a8(0x19f)];},'abortController':_0x2231ce[_0x172e67(0x186)]};}[_0xba94ff(0x1f4)](_0x196b1b,_0xcb8cc8){const _0x58aa12=_0xba94ff,_0x29cb19=this[_0x58aa12(0x1fe)](_0x58aa12(0x18e)+_0x196b1b+_0x58aa12(0x1a3)+_0xcb8cc8,_0x58aa12(0x1cb));return{'execute':async()=>{const _0x2f7770=_0x58aa12;await _0x29cb19[_0x2f7770(0x19f)];},'abortController':_0x29cb19[_0x58aa12(0x186)]};}[_0xba94ff(0x1ab)]({reviewName:_0x36070c,content:_0x2a3029,args:_0x27350f}){const _0x3d6de8=_0xba94ff,_0x421d81=this[_0x3d6de8(0x1fe)](_0x3d6de8(0x1fb)+_0x36070c+_0x3d6de8(0x19c),_0x3d6de8(0x1c3),{'content':[{'type':_0x3d6de8(0x19d),'content':_0x2a3029}],'args':_0x27350f});return{'getStream':async()=>{const _0x52e401=_0x3d6de8,_0x474fdc=(await _0x421d81[_0x52e401(0x19f)])[_0x52e401(0x1e6)];return this[_0x52e401(0x1a0)](_0x474fdc);},'abortController':_0x421d81[_0x3d6de8(0x186)]};}[_0xba94ff(0x1eb)]({content:_0x172fab,prompt:_0x4d793e,model:_0x5bda77}){const _0x20538c=_0xba94ff,_0x34f5a1=this[_0x20538c(0x1fe)](_0x20538c(0x19e),_0x20538c(0x1c3),{'content':[{'type':_0x20538c(0x19d),'content':_0x172fab}],'prompt':_0x4d793e,'model':_0x5bda77});return{'getStream':async()=>{const _0x2f1177=_0x20538c,_0x22fab4=(await _0x34f5a1[_0x2f1177(0x19f)])[_0x2f1177(0x1e6)];return this[_0x2f1177(0x1a0)](_0x22fab4);},'abortController':_0x34f5a1[_0x20538c(0x186)]};}[_0xba94ff(0x1f5)](_0x42de2a,_0x56d0c0,_0x30e0f5){const _0x45e111=_0xba94ff,_0x2888aa=this[_0x45e111(0x1fe)](_0x45e111(0x18e)+_0x42de2a+_0x45e111(0x1bc)+_0x56d0c0+_0x45e111(0x1f8),_0x45e111(0x1b5),{'positiveCount':_0x30e0f5[_0x45e111(0x211)],'totalCount':_0x30e0f5[_0x45e111(0x1f9)]});return{'execute':async()=>{const _0x3ceb64=_0x45e111;await _0x2888aa[_0x3ceb64(0x19f)];},'abortController':_0x2888aa[_0x45e111(0x186)]};}[_0xba94ff(0x1d0)](_0x107c1e,_0x81d9c3,_0x3d31e2){const _0x31d229=_0xba94ff,_0x558a58=this[_0x31d229(0x1fe)](_0x31d229(0x1c2)+_0x107c1e+_0x31d229(0x209)+_0x81d9c3+_0x31d229(0x1f8),_0x31d229(0x1b5),{'positiveCount':_0x3d31e2[_0x31d229(0x211)],'totalCount':_0x3d31e2[_0x31d229(0x1f9)]});return{'execute':async()=>{const _0x3bbbab=_0x31d229;await _0x558a58[_0x3bbbab(0x19f)];},'abortController':_0x558a58[_0x31d229(0x186)]};}[_0xba94ff(0x1ba)](_0x212f98,_0x265d08){const _0x2f73b5=_0xba94ff,_0x3693a7=this[_0x2f73b5(0x1fe)](_0x2f73b5(0x1a9)+_0x212f98+_0x2f73b5(0x1f8),_0x2f73b5(0x1b5),{'positiveCount':_0x265d08[_0x2f73b5(0x211)],'totalCount':_0x265d08[_0x2f73b5(0x1f9)]});return{'execute':async()=>{const _0x4c122e=_0x2f73b5;await _0x3693a7[_0x4c122e(0x19f)];},'abortController':_0x3693a7[_0x2f73b5(0x186)]};}[_0xba94ff(0x1dd)](_0x15e807,_0x4537f7,_0x4f17c5,_0x52527a){const _0x374033=_0xba94ff,_0x35738d=this[_0x374033(0x1fe)](_0x374033(0x1fb)+_0x15e807+_0x374033(0x209)+_0x4537f7+_0x374033(0x1f8),_0x374033(0x1b5),{'positiveCount':_0x4f17c5[_0x374033(0x211)],'totalCount':_0x4f17c5[_0x374033(0x1f9)],'dataId':_0x52527a});return{'execute':async()=>{const _0x274001=_0x374033;await _0x35738d[_0x274001(0x19f)];},'abortController':_0x35738d[_0x374033(0x186)]};}[_0xba94ff(0x201)](_0x4ec8fb,_0xc693ab,_0x23d035){const _0x19937a=_0xba94ff,_0x1d9519=this[_0x19937a(0x1fe)](_0x19937a(0x1d5)+_0x4ec8fb+_0x19937a(0x1f8),_0x19937a(0x1b5),{'positiveCount':_0xc693ab[_0x19937a(0x211)],'totalCount':_0xc693ab[_0x19937a(0x1f9)],'dataId':_0x23d035});return{'execute':async()=>{const _0x4f0c89=_0x19937a;await _0x1d9519[_0x4f0c89(0x19f)];},'abortController':_0x1d9519[_0x19937a(0x186)]};}[_0xba94ff(0x1fe)](_0x31d772,_0x561a20,_0x5ec521){const _0x5e7c81=_0xba94ff,_0x1873e8=new AbortController(),_0x26c4b6=_0x5ec521 instanceof FormData,_0x4b864c={'Authorization':_0x5e7c81(0x1e8)+this[_0x5e7c81(0x1e9)]?.[_0x5e7c81(0x189)]};_0x5ec521&&!_0x26c4b6&&(_0x4b864c[_0x5e7c81(0x1f0)]=_0x5e7c81(0x188));const _0x9f25dc={'method':_0x561a20,'headers':_0x4b864c,'signal':_0x1873e8[_0x5e7c81(0x1cf)]};return _0x5ec521&&(_0x9f25dc[_0x5e7c81(0x1e6)]=_0x26c4b6?_0x5ec521:JSON[_0x5e7c81(0x1be)](_0x5ec521)),{'request':fetch(''+this[_0x5e7c81(0x199)]+_0x31d772,_0x9f25dc)[_0x5e7c81(0x1dc)](_0x40037c=>{const _0x5ef18b=_0x5e7c81;this[_0x5ef18b(0x1bb)](_0x40037c);})[_0x5e7c81(0x1ad)](_0x345485=>{const _0x2034d1=_0x5e7c81;if(!_0x345485['ok'])throw new _0x5cadba(_0x2034d1(0x1f7),this,{'url':this[_0x2034d1(0x199)],'path':_0x31d772,'method':_0x561a20,'body':_0x5ec521,'status':(_0x345485||{})[_0x2034d1(0x1f1)],'statusText':(_0x345485||{})[_0x2034d1(0x198)]});return _0x345485;}),'abortController':_0x1873e8};}async*[_0xba94ff(0x1a0)](_0x19423c){const _0x2ef4ab=_0xba94ff,_0x1b7f84=[],_0x1cb6fd=_0x19423c[_0x2ef4ab(0x184)](),_0x53e522=_0x38d6dd({'onError':_0x27e231=>{const _0x5e2629=_0x2ef4ab;this[_0x5e2629(0x1bb)](_0x27e231);},'onEvent':_0x2febfb=>{const _0x544859=_0x2ef4ab;_0x2febfb[_0x544859(0x1ac)]=JSON[_0x544859(0x1ec)](_0x2febfb[_0x544859(0x1ac)]),_0x1b7f84[_0x544859(0x1c8)](_0x2febfb);}});try{let _0x471f8e=!0x1;for(;!_0x471f8e;){const {done:_0x2b75a1,value:_0x1984ff}=await _0x1cb6fd[_0x2ef4ab(0x20c)]();_0x2b75a1&&(_0x471f8e=!0x0),_0x53e522[_0x2ef4ab(0x1e7)](this[_0x2ef4ab(0x1a8)][_0x2ef4ab(0x1cd)](_0x1984ff,{'stream':!0x0})),yield*_0x1b7f84,_0x1b7f84[_0x2ef4ab(0x1e1)]=0x0;}}catch(_0x24a77f){this[_0x2ef4ab(0x1bb)](_0x24a77f);}finally{_0x1cb6fd[_0x2ef4ab(0x1b3)](),_0x53e522[_0x2ef4ab(0x20b)]();}}[_0xba94ff(0x1bb)](_0x55dbbb){const _0x3e6c0b=_0xba94ff;if(_0x55dbbb instanceof _0x5cadba)throw _0x55dbbb;if(_0x55dbbb instanceof Error&&_0x3e6c0b(0x1e2)===_0x55dbbb[_0x3e6c0b(0x200)])throw new _0x5cadba(_0x3e6c0b(0x1d4),this,{'originalError':_0x55dbbb});throw new _0x5cadba(_0x3e6c0b(0x1f7),this,{'originalError':_0x55dbbb});}}
23
+ const _0x2698b4=_0x48c7;(function(_0x51c35c,_0x4e42fd){const _0x4bb3d5=_0x48c7,_0x1dcfbd=_0x51c35c();while(!![]){try{const _0x1dd364=-parseInt(_0x4bb3d5(0x18b))/0x1*(parseInt(_0x4bb3d5(0x1d5))/0x2)+parseInt(_0x4bb3d5(0x1bc))/0x3*(-parseInt(_0x4bb3d5(0x182))/0x4)+parseInt(_0x4bb3d5(0x1eb))/0x5+-parseInt(_0x4bb3d5(0x1cd))/0x6*(-parseInt(_0x4bb3d5(0x1f2))/0x7)+parseInt(_0x4bb3d5(0x1fd))/0x8*(-parseInt(_0x4bb3d5(0x18e))/0x9)+parseInt(_0x4bb3d5(0x19c))/0xa+-parseInt(_0x4bb3d5(0x1d8))/0xb*(-parseInt(_0x4bb3d5(0x19a))/0xc);if(_0x1dd364===_0x4e42fd)break;else _0x1dcfbd['push'](_0x1dcfbd['shift']());}catch(_0x2657b8){_0x1dcfbd['push'](_0x1dcfbd['shift']());}}}(_0x4e11,0x7ae62));import{createParser as _0x267904}from'eventsource-parser';import{ContextPlugin as _0x2d2561}from'ckeditor5/src/core.js';import{CKEditorError as _0x5665af}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e794e}from'./utils/common-translations.js';export var AIActionsNames;function _0x48c7(_0x48d4f8,_0x5b545e){const _0x4e11a6=_0x4e11();return _0x48c7=function(_0x48c74e,_0x410e34){_0x48c74e=_0x48c74e-0x177;let _0x48cd84=_0x4e11a6[_0x48c74e];return _0x48cd84;},_0x48c7(_0x48d4f8,_0x5b545e);}!function(_0x22f145){const _0x31395f=_0x48c7;_0x22f145[_0x31395f(0x1a3)]=_0x31395f(0x189),_0x22f145[_0x31395f(0x1a0)]=_0x31395f(0x1fc),_0x22f145[_0x31395f(0x1bd)]=_0x31395f(0x195),_0x22f145[_0x31395f(0x194)]=_0x31395f(0x1be),_0x22f145[_0x31395f(0x1c8)]=_0x31395f(0x1da),_0x22f145[_0x31395f(0x17e)]=_0x31395f(0x204),_0x22f145[_0x31395f(0x19b)]=_0x31395f(0x1cf),_0x22f145[_0x31395f(0x18f)]=_0x31395f(0x1d0);}(AIActionsNames||(AIActionsNames={}));function _0x4e11(){const _0x2a4f27=['5699118IneUVk','upsertAIActionRating','make-tone-formal','translate','init','deleteConversation','reset','statusText','2UdtdGv','map','request','2371083cQJPEG','/messages','make-shorter','uploadUrl','_handleError','/calls','/ratings','updateConversation','/messages/','push','AbortError','token','plugins','positiveCount','search','/actions/system/','AI_MODEL_DESCRIPTION_','/reviews/system/','Content-Type','2044675yoJZRR','parse','https://ai.cke-cs.com/v1','fetchConversation','100','_decoder','fetchConversations','7VVGjfX','startConversation','/web-resources','config','attributes','/reviews/custom/calls/','getReader','/files/','ai-missing-token','limit','fix-grammar','90680XTEXLi','decode','PUT','GET','uploadFile','data','upsertCustomAIReviewRating','make-tone-casual','executeAction','/actions/custom/calls/','text','/calls/','AIConnector','callSystemReview','keys','excludeEmpty','_apiUrl','queryAssistant','/models/1','deleteWebResource','MAKE_TONE_CASUAL','toString','items','deleteDocument','2830924hzWGgn','/documents/','define','then','/conversations?','get','fetchConversationMessages','continue','_sendApiRequest','26637XWiVmw','executeCustomAction','/documents','432FiocWw','TRANSLATE','append','length','CloudServices','feed','MAKE_LONGER','improve-writing','PATCH','totalCount','upsertAIChatRating','requires','12qmFgcM','MAKE_TONE_FORMAL','2075010NISfOJ','pluginName','application/json','isPremiumPlugin','FIX_GRAMMAR','json','/files','CONTINUE','_token','getModels','isOfficialPlugin','upsertCustomAIActionRating','toUpperCase','/web-resources/','group','uploadDocument','status','_getStreamReader','catch','signal','true','/reviews/custom/calls','/conversations/','upsertAIReviewRating','locale','POST','name','body','/conversations','abortController','file','ai-request-failed','3OnoDEL','IMPROVE_WRITING','make-longer','Bearer\x20','read','ai-request-aborted','DELETE','value','/actions/custom/calls','context','fetchDocument','releaseLock','MAKE_SHORTER','ai.serviceUrl','deleteFile','stringify','callCustomReview'];_0x4e11=function(){return _0x2a4f27;};return _0x4e11();}export class AIConnector extends _0x2d2561{[_0x2698b4(0x17a)];[_0x2698b4(0x1a4)];[_0x2698b4(0x1f0)];static get[_0x2698b4(0x199)](){const _0x3a9d79=_0x2698b4;return[_0x3a9d79(0x192)];}static get[_0x2698b4(0x19d)](){const _0x53ff64=_0x2698b4;return _0x53ff64(0x209);}static get[_0x2698b4(0x1a6)](){return!0x0;}static get[_0x2698b4(0x19f)](){return!0x0;}constructor(_0x59939c){const _0x359944=_0x2698b4;super(_0x59939c),this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x184)](_0x359944(0x1c9),_0x359944(0x1ed)),this[_0x359944(0x17a)]=this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x187)](_0x359944(0x1c9)),this[_0x359944(0x1a4)]=null,this[_0x359944(0x1f0)]=new TextDecoder();}[_0x2698b4(0x1d1)](){const _0x1f9714=_0x2698b4,_0x51feca=this[_0x1f9714(0x1c5)][_0x1f9714(0x1e4)][_0x1f9714(0x187)](_0x1f9714(0x192));if(!_0x51feca[_0x1f9714(0x1e3)])throw new _0x5665af(_0x1f9714(0x1fa),this);this[_0x1f9714(0x1a4)]=_0x51feca[_0x1f9714(0x1e3)];}[_0x2698b4(0x1f3)](_0xf7b470,_0x15f357){const _0x913819=_0x2698b4,_0x4d52b3=this[_0x913819(0x18a)](_0x913819(0x1b8),_0x913819(0x1b5),{'id':_0xf7b470,'group':_0x15f357});return{'getConversation':async()=>(await _0x4d52b3[_0x913819(0x1d7)])[_0x913819(0x1a1)](),'abortController':_0x4d52b3[_0x913819(0x1b9)]};}[_0x2698b4(0x17b)]({message:_0x1e49e0,conversationId:_0x1be237,parts:_0x2664f8,capabilities:_0x35bd38,model:_0x39678d,quickActionData:_0x3c4351}){const _0x1e85c7=_0x2698b4,_0x5d722a={..._0x3c4351&&{'quickActionData':_0x3c4351}},_0x4bf759={'prompt':_0x1e49e0,'content':_0x2664f8,'model':_0x39678d,..._0x35bd38&&{'capabilities':_0x35bd38},...Object[_0x1e85c7(0x178)](_0x5d722a)[_0x1e85c7(0x191)]>0x0&&{'attributes':_0x5d722a}},_0x55bf22=this[_0x1e85c7(0x18a)](_0x1e85c7(0x1b2)+_0x1be237+_0x1e85c7(0x1d9),_0x1e85c7(0x1b5),_0x4bf759);return{'getStream':async()=>{const _0x5a08f1=_0x1e85c7,_0x370bf2=(await _0x55bf22[_0x5a08f1(0x1d7)])[_0x5a08f1(0x1b7)];return this[_0x5a08f1(0x1ad)](_0x370bf2);},'abortController':_0x55bf22[_0x1e85c7(0x1b9)]};}[_0x2698b4(0x18c)]({content:_0x3041c0,message:_0x2aaf52,model:_0x32e760,outputFormat:_0x526e66}){const _0x3f3ecd=_0x2698b4,_0xb5ec49={'content':[{'type':_0x3f3ecd(0x207),'content':_0x3041c0}],'prompt':_0x2aaf52,'model':_0x32e760,'outputFormat':_0x526e66},_0x2f36e7=this[_0x3f3ecd(0x18a)](_0x3f3ecd(0x1c4),_0x3f3ecd(0x1b5),_0xb5ec49);return{'getStream':async()=>{const _0x5d9c57=_0x3f3ecd,_0x24e572=(await _0x2f36e7[_0x5d9c57(0x1d7)])[_0x5d9c57(0x1b7)];return this[_0x5d9c57(0x1ad)](_0x24e572);},'abortController':_0x2f36e7[_0x3f3ecd(0x1b9)]};}[_0x2698b4(0x205)]({actionName:_0x3fe1ba,content:_0x278f00,args:_0x301b2a}){const _0x668ba1=_0x2698b4,_0x149eb5={'content':[{'type':_0x668ba1(0x207),'content':_0x278f00}],'args':_0x301b2a},_0x276ab6=this[_0x668ba1(0x18a)](_0x668ba1(0x1e7)+_0x3fe1ba+_0x668ba1(0x1dd),_0x668ba1(0x1b5),_0x149eb5);return{'getStream':async()=>{const _0x454882=_0x668ba1,_0x36c03f=(await _0x276ab6[_0x454882(0x1d7)])[_0x454882(0x1b7)];return this[_0x454882(0x1ad)](_0x36c03f);},'abortController':_0x276ab6[_0x668ba1(0x1b9)]};}[_0x2698b4(0x201)](_0x2edee9,_0x2ee1e7,_0x6eaf15){const _0x2791ff=_0x2698b4,_0x54e00e=new FormData();_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1ba),_0x2ee1e7,_0x2ee1e7[_0x2791ff(0x1b6)]),_0x6eaf15&&_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1f6),JSON[_0x2791ff(0x1cb)](_0x6eaf15));const _0x3f193a=this[_0x2791ff(0x18a)](_0x2791ff(0x1b2)+_0x2edee9+_0x2791ff(0x1a2),_0x2791ff(0x1b5),_0x54e00e);return{'getId':async()=>(await _0x3f193a[_0x2791ff(0x1d7)])[_0x2791ff(0x1a1)](),'abortController':_0x3f193a[_0x2791ff(0x1b9)]};}[_0x2698b4(0x1c6)](_0x401c70,_0x1c1a25){const _0x46aca3=_0x2698b4,_0x3dcfb1=this[_0x46aca3(0x18a)](_0x46aca3(0x1b2)+_0x401c70+_0x46aca3(0x183)+_0x1c1a25,_0x46aca3(0x200));return{'getDocument':async()=>(await _0x3dcfb1[_0x46aca3(0x1d7)])[_0x46aca3(0x1a1)](),'abortController':_0x3dcfb1[_0x46aca3(0x1b9)]};}[_0x2698b4(0x1ab)](_0xb84032,_0x15c66e,_0x139c01){const _0xa635a=_0x2698b4,_0x58cb1d={'content':_0x15c66e};_0x139c01&&(_0x58cb1d[_0xa635a(0x1f6)]=_0x139c01);const _0x5b4eef=this[_0xa635a(0x18a)](_0xa635a(0x1b2)+_0xb84032+_0xa635a(0x18d),_0xa635a(0x1b5),_0x58cb1d);return{'getId':async()=>(await _0x5b4eef[_0xa635a(0x1d7)])[_0xa635a(0x1a1)](),'abortController':_0x5b4eef[_0xa635a(0x1b9)]};}[_0x2698b4(0x1f1)](_0x52fe7e,_0x35ea91){const _0x30c56d=_0x2698b4,_0x39666c=new URLSearchParams();_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x179),_0x30c56d(0x1b0)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1fb),_0x30c56d(0x1ef)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1aa),_0x52fe7e),_0x35ea91&&_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1e6),_0x35ea91);const _0x1f6e15=this[_0x30c56d(0x18a)](_0x30c56d(0x186)+_0x39666c[_0x30c56d(0x17f)](),_0x30c56d(0x200));return{'getConversations':async()=>{const _0x24b1d8=_0x30c56d,_0x4769a0=await _0x1f6e15[_0x24b1d8(0x1d7)];return(await _0x4769a0[_0x24b1d8(0x1a1)]())[_0x24b1d8(0x180)];},'abortController':_0x1f6e15[_0x30c56d(0x1b9)]};}[_0x2698b4(0x1d2)](_0x1154f2){const _0x2a47f0=_0x2698b4,_0x175a0f=this[_0x2a47f0(0x18a)](_0x2a47f0(0x1b2)+_0x1154f2,_0x2a47f0(0x1c2));return{'execute':async()=>{const _0x5239cb=_0x2a47f0;await _0x175a0f[_0x5239cb(0x1d7)];},'abortController':_0x175a0f[_0x2a47f0(0x1b9)]};}[_0x2698b4(0x1df)](_0x46f44f,_0x215afe){const _0x40f5d9=_0x2698b4,_0x18ac3a=this[_0x40f5d9(0x18a)](_0x40f5d9(0x1b2)+_0x46f44f,_0x40f5d9(0x196),_0x215afe);return{'getResult':async()=>(await _0x18ac3a[_0x40f5d9(0x1d7)],_0x215afe),'abortController':_0x18ac3a[_0x40f5d9(0x1b9)]};}[_0x2698b4(0x1ee)](_0x4d7c59){const _0x4c2e3d=_0x2698b4,_0x1c5453=this[_0x4c2e3d(0x18a)](_0x4c2e3d(0x1b2)+_0x4d7c59,_0x4c2e3d(0x200));return{'getConversation':async()=>(await _0x1c5453[_0x4c2e3d(0x1d7)])[_0x4c2e3d(0x1a1)](),'abortController':_0x1c5453[_0x4c2e3d(0x1b9)]};}[_0x2698b4(0x188)](_0x5deaab){const _0x4ca5d2=_0x2698b4,_0x3c2406=this[_0x4ca5d2(0x18a)](_0x4ca5d2(0x1b2)+_0x5deaab+_0x4ca5d2(0x1d9),_0x4ca5d2(0x200));return{'getMessages':async()=>{const _0x23a6f1=_0x4ca5d2,_0x5820ec=await _0x3c2406[_0x23a6f1(0x1d7)];return(await _0x5820ec[_0x23a6f1(0x1a1)]())[_0x23a6f1(0x180)];},'abortController':_0x3c2406[_0x4ca5d2(0x1b9)]};}[_0x2698b4(0x1db)](_0x573ebf,_0x142791,_0x40f2e3){const _0x5c4756=_0x2698b4,_0x4b8206=this[_0x5c4756(0x18a)](_0x5c4756(0x1b2)+_0x573ebf+_0x5c4756(0x1f4),_0x5c4756(0x1b5),{'url':_0x142791,'attributes':_0x40f2e3});return{'getId':async()=>(await _0x4b8206[_0x5c4756(0x1d7)])[_0x5c4756(0x1a1)](),'abortController':_0x4b8206[_0x5c4756(0x1b9)]};}[_0x2698b4(0x1a5)](){const _0x17cb46=_0x2698b4,_0x1e5e69=this[_0x17cb46(0x18a)](_0x17cb46(0x17c),_0x17cb46(0x200));return{'list':async()=>{const _0x545483=_0x17cb46,_0x34d99e=await(await _0x1e5e69[_0x545483(0x1d7)])[_0x545483(0x1a1)](),_0x686371=_0x34d99e[_0x545483(0x180)][_0x545483(0x1d6)](_0x10a4ae=>({..._0x10a4ae,'description':_0x3e794e(this[_0x545483(0x1c5)][_0x545483(0x1b4)],_0x545483(0x1e8)+_0x10a4ae['id'][_0x545483(0x1a8)]())}));return{..._0x34d99e,'items':_0x686371};},'abortController':_0x1e5e69[_0x17cb46(0x1b9)]};}[_0x2698b4(0x1ca)](_0x3afb5a,_0x5eba34){const _0x401785=_0x2698b4,_0x584116=this[_0x401785(0x18a)](_0x401785(0x1b2)+_0x3afb5a+_0x401785(0x1f9)+_0x5eba34,_0x401785(0x1c2));return{'execute':async()=>{const _0x1ac85e=_0x401785;await _0x584116[_0x1ac85e(0x1d7)];},'abortController':_0x584116[_0x401785(0x1b9)]};}[_0x2698b4(0x181)](_0x3ee050,_0x2ea177){const _0x32ae69=_0x2698b4,_0x19e5b6=this[_0x32ae69(0x18a)](_0x32ae69(0x1b2)+_0x3ee050+_0x32ae69(0x183)+_0x2ea177,_0x32ae69(0x1c2));return{'execute':async()=>{const _0x4b521c=_0x32ae69;await _0x19e5b6[_0x4b521c(0x1d7)];},'abortController':_0x19e5b6[_0x32ae69(0x1b9)]};}[_0x2698b4(0x17d)](_0x1ee5e5,_0xd3a5bc){const _0x1e1ce9=_0x2698b4,_0x3090b9=this[_0x1e1ce9(0x18a)](_0x1e1ce9(0x1b2)+_0x1ee5e5+_0x1e1ce9(0x1a9)+_0xd3a5bc,_0x1e1ce9(0x1c2));return{'execute':async()=>{const _0x402ab3=_0x1e1ce9;await _0x3090b9[_0x402ab3(0x1d7)];},'abortController':_0x3090b9[_0x1e1ce9(0x1b9)]};}[_0x2698b4(0x177)]({reviewName:_0xb3f0e9,content:_0x16b840,args:_0x18375a}){const _0x53067b=_0x2698b4,_0x379ba7=this[_0x53067b(0x18a)](_0x53067b(0x1e9)+_0xb3f0e9+_0x53067b(0x1dd),_0x53067b(0x1b5),{'content':[{'type':_0x53067b(0x207),'content':_0x16b840}],'args':_0x18375a});return{'getStream':async()=>{const _0x269c04=_0x53067b,_0x4348df=(await _0x379ba7[_0x269c04(0x1d7)])[_0x269c04(0x1b7)];return this[_0x269c04(0x1ad)](_0x4348df);},'abortController':_0x379ba7[_0x53067b(0x1b9)]};}[_0x2698b4(0x1cc)]({content:_0x4661fa,prompt:_0x363a01,model:_0xc1de7f}){const _0x1c7e44=_0x2698b4,_0x2fa9ad=this[_0x1c7e44(0x18a)](_0x1c7e44(0x1b1),_0x1c7e44(0x1b5),{'content':[{'type':_0x1c7e44(0x207),'content':_0x4661fa}],'prompt':_0x363a01,'model':_0xc1de7f});return{'getStream':async()=>{const _0x4b1172=_0x1c7e44,_0x5357e8=(await _0x2fa9ad[_0x4b1172(0x1d7)])[_0x4b1172(0x1b7)];return this[_0x4b1172(0x1ad)](_0x5357e8);},'abortController':_0x2fa9ad[_0x1c7e44(0x1b9)]};}[_0x2698b4(0x198)](_0x10352b,_0x342189,_0x4b6720){const _0x26fcf5=_0x2698b4,_0x336012=this[_0x26fcf5(0x18a)](_0x26fcf5(0x1b2)+_0x10352b+_0x26fcf5(0x1e0)+_0x342189+_0x26fcf5(0x1de),_0x26fcf5(0x1ff),{'positiveCount':_0x4b6720[_0x26fcf5(0x1e5)],'totalCount':_0x4b6720[_0x26fcf5(0x197)]});return{'execute':async()=>{const _0x8f6659=_0x26fcf5;await _0x336012[_0x8f6659(0x1d7)];},'abortController':_0x336012[_0x26fcf5(0x1b9)]};}[_0x2698b4(0x1ce)](_0x5419e4,_0x992f37,_0x494e1d){const _0x5b9f0c=_0x2698b4,_0x3dffda=this[_0x5b9f0c(0x18a)](_0x5b9f0c(0x1e7)+_0x5419e4+_0x5b9f0c(0x208)+_0x992f37+_0x5b9f0c(0x1de),_0x5b9f0c(0x1ff),{'positiveCount':_0x494e1d[_0x5b9f0c(0x1e5)],'totalCount':_0x494e1d[_0x5b9f0c(0x197)]});return{'execute':async()=>{const _0x101f13=_0x5b9f0c;await _0x3dffda[_0x101f13(0x1d7)];},'abortController':_0x3dffda[_0x5b9f0c(0x1b9)]};}[_0x2698b4(0x1a7)](_0x11aa89,_0x35f401){const _0x52d5eb=_0x2698b4,_0x487f00=this[_0x52d5eb(0x18a)](_0x52d5eb(0x206)+_0x11aa89+_0x52d5eb(0x1de),_0x52d5eb(0x1ff),{'positiveCount':_0x35f401[_0x52d5eb(0x1e5)],'totalCount':_0x35f401[_0x52d5eb(0x197)]});return{'execute':async()=>{const _0x5f0455=_0x52d5eb;await _0x487f00[_0x5f0455(0x1d7)];},'abortController':_0x487f00[_0x52d5eb(0x1b9)]};}[_0x2698b4(0x1b3)](_0x1679f5,_0xe3323d,_0x50ef78,_0x1a000c){const _0x3ed70c=_0x2698b4,_0x58c67f=this[_0x3ed70c(0x18a)](_0x3ed70c(0x1e9)+_0x1679f5+_0x3ed70c(0x208)+_0xe3323d+_0x3ed70c(0x1de),_0x3ed70c(0x1ff),{'positiveCount':_0x50ef78[_0x3ed70c(0x1e5)],'totalCount':_0x50ef78[_0x3ed70c(0x197)],'dataId':_0x1a000c});return{'execute':async()=>{const _0x40ba01=_0x3ed70c;await _0x58c67f[_0x40ba01(0x1d7)];},'abortController':_0x58c67f[_0x3ed70c(0x1b9)]};}[_0x2698b4(0x203)](_0x16a0cd,_0x41c89c,_0x128af3){const _0x7b42cf=_0x2698b4,_0x3db690=this[_0x7b42cf(0x18a)](_0x7b42cf(0x1f7)+_0x16a0cd+_0x7b42cf(0x1de),_0x7b42cf(0x1ff),{'positiveCount':_0x41c89c[_0x7b42cf(0x1e5)],'totalCount':_0x41c89c[_0x7b42cf(0x197)],'dataId':_0x128af3});return{'execute':async()=>{const _0x4f7c2c=_0x7b42cf;await _0x3db690[_0x4f7c2c(0x1d7)];},'abortController':_0x3db690[_0x7b42cf(0x1b9)]};}[_0x2698b4(0x18a)](_0x39acbf,_0x43eaab,_0x16cbe7){const _0x21cb96=_0x2698b4,_0x3a1ef2=new AbortController(),_0x4cf80f=_0x16cbe7 instanceof FormData,_0x3a99ad={'Authorization':_0x21cb96(0x1bf)+this[_0x21cb96(0x1a4)]?.[_0x21cb96(0x1c3)]};_0x16cbe7&&!_0x4cf80f&&(_0x3a99ad[_0x21cb96(0x1ea)]=_0x21cb96(0x19e));const _0x5a8303={'method':_0x43eaab,'headers':_0x3a99ad,'signal':_0x3a1ef2[_0x21cb96(0x1af)]};return _0x16cbe7&&(_0x5a8303[_0x21cb96(0x1b7)]=_0x4cf80f?_0x16cbe7:JSON[_0x21cb96(0x1cb)](_0x16cbe7)),{'request':fetch(''+this[_0x21cb96(0x17a)]+_0x39acbf,_0x5a8303)[_0x21cb96(0x1ae)](_0x1cdc61=>{const _0x1a9570=_0x21cb96;this[_0x1a9570(0x1dc)](_0x1cdc61);})[_0x21cb96(0x185)](_0x4da6f1=>{const _0x5892e7=_0x21cb96;if(!_0x4da6f1['ok'])throw new _0x5665af(_0x5892e7(0x1bb),this,{'url':this[_0x5892e7(0x17a)],'path':_0x39acbf,'method':_0x43eaab,'body':_0x16cbe7,'status':(_0x4da6f1||{})[_0x5892e7(0x1ac)],'statusText':(_0x4da6f1||{})[_0x5892e7(0x1d4)]});return _0x4da6f1;}),'abortController':_0x3a1ef2};}async*[_0x2698b4(0x1ad)](_0x387b92){const _0x4c9168=_0x2698b4,_0x25ab35=[],_0x16dc6b=_0x387b92[_0x4c9168(0x1f8)](),_0x2ccdd6=_0x267904({'onError':_0x27b191=>{const _0x37a7a3=_0x4c9168;this[_0x37a7a3(0x1dc)](_0x27b191);},'onEvent':_0x26d457=>{const _0x42983c=_0x4c9168;_0x26d457[_0x42983c(0x202)]=JSON[_0x42983c(0x1ec)](_0x26d457[_0x42983c(0x202)]),_0x25ab35[_0x42983c(0x1e1)](_0x26d457);}});try{let _0x3a45fe=!0x1;for(;!_0x3a45fe;){const {done:_0x5495e7,value:_0x3d9681}=await _0x16dc6b[_0x4c9168(0x1c0)]();_0x5495e7&&(_0x3a45fe=!0x0),_0x2ccdd6[_0x4c9168(0x193)](this[_0x4c9168(0x1f0)][_0x4c9168(0x1fe)](_0x3d9681,{'stream':!0x0})),yield*_0x25ab35,_0x25ab35[_0x4c9168(0x191)]=0x0;}}catch(_0x403e61){this[_0x4c9168(0x1dc)](_0x403e61);}finally{_0x16dc6b[_0x4c9168(0x1c7)](),_0x2ccdd6[_0x4c9168(0x1d3)]();}}[_0x2698b4(0x1dc)](_0x50d8a5){const _0xc04a27=_0x2698b4;if(_0x50d8a5 instanceof _0x5665af)throw _0x50d8a5;if(_0x50d8a5 instanceof Error&&_0xc04a27(0x1e2)===_0x50d8a5[_0xc04a27(0x1b6)])throw new _0x5665af(_0xc04a27(0x1c1),this,{'originalError':_0x50d8a5});throw new _0x5665af(_0xc04a27(0x1bb),this,{'originalError':_0x50d8a5});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2295(){const _0x58167c=['getSelectedContent','markerName','ai-selection:',':end></','conversion','$textProxy','start','_setDataIdsOnChildren','emptyElement','removeAllRanges','toData','from','afterInit','listenTo','415900MOCuqR','trim','getSelectionText','_getMarkersInDocumentOrder','_integrateEditor','38231050bcDHbZ','74vQEXRR','addMarker','5000612toiRtT','setAttribute','editors','createUIElement','2357464JArJSQ','sort','substring','ai-selection','fromCharCode','getRoot','_displayedFakeSelectionId','push','context','isPremiumPlugin','getLastMatchingPosition','containerElement','length','getMarkersGroup','view','78fzSZWH','indexOf','isAfter','RealTimeCollaborationClient','_nextDataId','isOpening','isBefore','plugins','selection','_sessionId','38691EjuTnR','markerToHighlight','getSelection','getDocumentData','model','7ssjvmv','convertAiChatSelectionMarker','end','markers','getStart','name','hideFakeVisualSelection','ready','data-id','toView','createRangeIn','81BwtRGM','floor','processor',':start></','has','data','1432590KIXtsA','isAtEnd','random','isOfficialPlugin','version','AIEditing','getWalker','dataDowncast','removeMarker','pluginName',':end>','join','ck-ai-assistant-ui_theme',':start>','isContent','element','1076247oSwNdD','for','sessionId','_displayedFakeSelectionLocked','getChildren','markerToElement','modelToViewWithIds','ck-fake-ai-selection','createRange','editing','showFakeVisualSelection','schema','get','editingDowncast','add','document','change'];_0x2295=function(){return _0x58167c;};return _0x2295();}const _0x2b4d6f=_0x3dc7;function _0x3dc7(_0x4ecae2,_0x1ed126){const _0x229543=_0x2295();return _0x3dc7=function(_0x3dc784,_0x58c14a){_0x3dc784=_0x3dc784-0x7f;let _0x141da8=_0x229543[_0x3dc784];return _0x141da8;},_0x3dc7(_0x4ecae2,_0x1ed126);}(function(_0x28fe63,_0x436eff){const _0x248161=_0x3dc7,_0x3e31b5=_0x28fe63();while(!![]){try{const _0x2e8fc8=-parseInt(_0x248161(0xe0))/0x1+parseInt(_0x248161(0x9b))/0x2*(-parseInt(_0x248161(0xba))/0x3)+-parseInt(_0x248161(0x9d))/0x4+parseInt(_0x248161(0x95))/0x5*(parseInt(_0x248161(0xb0))/0x6)+parseInt(_0x248161(0xbf))/0x7*(parseInt(_0x248161(0xa1))/0x8)+parseInt(_0x248161(0xca))/0x9*(-parseInt(_0x248161(0xd0))/0xa)+parseInt(_0x248161(0x9a))/0xb;if(_0x2e8fc8===_0x436eff)break;else _0x3e31b5['push'](_0x3e31b5['shift']());}catch(_0x4c7ed5){_0x3e31b5['push'](_0x3e31b5['shift']());}}}(_0x2295,0xb937d));import{ViewDowncastWriter as _0x1bf124}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3f48ee,Editor as _0x428954}from'ckeditor5/src/core.js';import{uid as _0x4501af}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34e559}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2b4d6f(0xa4);export class AIEditing extends _0x3f48ee{[_0x2b4d6f(0xa7)]=null;[_0x2b4d6f(0xe3)]=!0x1;[_0x2b4d6f(0xb9)];static get[_0x2b4d6f(0xd9)](){const _0x226939=_0x2b4d6f;return _0x226939(0xd5);}static get[_0x2b4d6f(0xd3)](){return!0x0;}static get[_0x2b4d6f(0xaa)](){return!0x0;}get[_0x2b4d6f(0xe2)](){const _0x223671=_0x2b4d6f;if(!this[_0x223671(0xb9)]){const _0x3a09b6=_0x34e559(this[_0x223671(0xa9)]),_0x1f019e=_0x3a09b6[_0x223671(0xb7)][_0x223671(0xce)](_0x223671(0xb3))&&_0x3a09b6[_0x223671(0xb7)][_0x223671(0x82)](_0x223671(0xb3))[_0x223671(0xe2)];this[_0x223671(0xb9)]=_0x1f019e||_0x4501af();}return this[_0x223671(0xb9)];}[_0x2b4d6f(0xbd)](){const _0x2f4789=_0x2b4d6f,_0x47e10d=_0x34e559(this[_0x2f4789(0xa9)]),_0xc0a28d=_0x47e10d[_0x2f4789(0xbe)],_0x43ccba=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xc8)](_0xc0a28d[_0x2f4789(0x85)][_0x2f4789(0xa6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2e6d6b=new _0x1bf124(_0x47e10d[_0x2f4789(0x7f)][_0x2f4789(0xaf)][_0x2f4789(0x85)]);this[_0x2f4789(0x8e)](_0x43ccba,_0x2e6d6b);let _0x3f0c87=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xcc)][_0x2f4789(0x91)](_0x43ccba);const _0xaa0947=this[_0x2f4789(0x98)](),_0x36df19=[];for(const _0x2955bc of _0xaa0947){const _0x5224cb='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xcd)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xdd),_0x4b7410=_0x3f0c87[_0x2f4789(0xb1)](_0x5224cb);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x4b7410)+_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410+_0x5224cb[_0x2f4789(0xad)]);const _0x4b9174='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0x8a)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xda),_0x5b571d=_0x3f0c87[_0x2f4789(0xb1)](_0x4b9174);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x5b571d)+_0x3f0c87[_0x2f4789(0xa3)](_0x5b571d+_0x4b9174[_0x2f4789(0xad)]),_0x36df19[_0x2f4789(0xa8)]({'markerName':_0x2955bc[_0x2f4789(0xc4)],'start':_0x4b7410,'end':_0x5b571d,'htmlFragment':_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410,_0x5b571d)});}return{'content':_0x3f0c87,'version':_0x47e10d[_0x2f4789(0xbe)][_0x2f4789(0x85)][_0x2f4789(0xd4)],'sessionId':this[_0x2f4789(0xe2)],'selections':_0x36df19};}async[_0x2b4d6f(0x93)](){const _0x1e308c=_0x2b4d6f;this[_0x1e308c(0xa9)]instanceof _0x428954?this[_0x1e308c(0x99)](this[_0x1e308c(0xa9)]):this[_0x1e308c(0x94)](this[_0x1e308c(0xa9)][_0x1e308c(0x9f)],_0x1e308c(0x84),(_0x2c67e9,_0xa419e6)=>{const _0x84be8d=_0x1e308c;_0xa419e6['on'](_0x84be8d(0xc6),()=>{const _0x32747f=_0x84be8d;this[_0x32747f(0x99)](_0xa419e6);});});}[_0x2b4d6f(0x99)](_0x817472){const _0x5f145b=_0x2b4d6f;_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0x83))[_0x5f145b(0xbb)]({'model':_0x5f145b(0xa4),'view':{'classes':[_0x5f145b(0xe7),_0x5f145b(0xdc)],'priority':0xc}}),_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0xd7))[_0x5f145b(0xe5)]({'model':_0x5f145b(0xa4),'view':(_0x5af8bc,{writer:_0x35ebe1,options:_0x2535c9})=>_0x2535c9[_0x5f145b(0xc0)]?_0x35ebe1[_0x5f145b(0xa0)](_0x5af8bc[_0x5f145b(0x88)]+':'+(_0x5af8bc[_0x5f145b(0xb5)]?_0x5f145b(0x8d):_0x5f145b(0xc1))):null});}[_0x2b4d6f(0x80)](_0xea1a7a,_0x3079b4,_0x12cd2d=!0x1,_0x5f47ec=!0x1){const _0x4f409e=_0x2b4d6f;if(this[_0x4f409e(0xe3)]&&!_0x5f47ec)return!0x1;this[_0x4f409e(0xa7)]&&this[_0x4f409e(0xc5)](this[_0x4f409e(0xa7)]),this[_0x4f409e(0xa7)]=_0x3079b4,this[_0x4f409e(0xe3)]=_0x12cd2d;const _0x41aea7=_0x34e559(this[_0x4f409e(0xa9)])[_0x4f409e(0xbe)];return _0x41aea7[_0x4f409e(0x86)](_0x273844=>{const _0x20ce36=_0x4f409e;let _0x40b167=0x0;for(let _0x20c40a of _0xea1a7a){const _0x5efaee=_0x20ce36(0x89)+_0x40b167;if(_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xd1)]){const _0xaace7b=_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xab)](({item:_0xd7c2bb})=>!_0x41aea7[_0x20ce36(0x81)][_0x20ce36(0xde)](_0xd7c2bb),{'boundaries':_0x20c40a});_0x20c40a=_0x273844[_0x20ce36(0xe8)](_0xaace7b,_0x20c40a[_0x20ce36(0xc1)]);}_0x273844[_0x20ce36(0x9c)](_0x5efaee,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x20c40a}),_0x40b167++;}}),window[_0x4f409e(0xbc)]()?.[_0x4f409e(0x90)](),!0x0;}[_0x2b4d6f(0xc5)](_0x68acff){const _0x4a9664=_0x2b4d6f;if(this[_0x4a9664(0xa7)]!=_0x68acff)return!0x1;this[_0x4a9664(0xa7)]=null,this[_0x4a9664(0xe3)]=!0x1;const _0x4c7139=_0x34e559(this[_0x4a9664(0xa9)]),_0x430096=_0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0xc2)][_0x4a9664(0xae)](_0x4a9664(0xa4));return _0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0x86)](_0x3d7a4c=>{const _0x4da126=_0x4a9664;for(const _0x4d7d8d of _0x430096)_0x3d7a4c[_0x4da126(0xd8)](_0x4d7d8d);}),!0x0;}[_0x2b4d6f(0xe6)](_0x18ebe2){const _0x3df5bb=_0x2b4d6f,_0x5318e8=_0x34e559(this[_0x3df5bb(0xa9)]),_0x9186ab=_0x5318e8[_0x3df5bb(0xcf)][_0x3df5bb(0xc8)](_0x18ebe2),_0x29fcb9=new _0x1bf124(_0x5318e8[_0x3df5bb(0x7f)][_0x3df5bb(0xaf)][_0x3df5bb(0x85)]);return this[_0x3df5bb(0x8e)](_0x9186ab,_0x29fcb9),_0x9186ab;}[_0x2b4d6f(0x8e)](_0x1fe6b9,_0x4ebd26){const _0xe3fcf7=_0x2b4d6f;let _0x36d534=!0x1;const _0x2fca29=new Set();for(const _0x3a2a75 of _0x1fe6b9[_0xe3fcf7(0xe4)]()){const _0x535a10=_0x3a2a75['is'](_0xe3fcf7(0x8f))||_0x3a2a75['is'](_0xe3fcf7(0xac));if(!_0x3a2a75['is'](_0xe3fcf7(0xdf)))continue;(this[_0xe3fcf7(0x8e)](_0x3a2a75,_0x4ebd26)||_0x535a10)&&(_0x4ebd26[_0xe3fcf7(0x9e)](_0xe3fcf7(0xc7),this[_0xe3fcf7(0xb4)](_0x2fca29),_0x3a2a75),_0x36d534=!0x0);}return _0x36d534;}[_0x2b4d6f(0xb4)](_0x580b6f){const _0x3970db=_0x2b4d6f;let _0x5e02d6;do{_0x5e02d6='';for(let _0x295013=0x0;_0x295013<0x4;_0x295013++)_0x5e02d6+=String[_0x3970db(0xa5)](0x61+Math[_0x3970db(0xcb)](0x1a*Math[_0x3970db(0xd2)]()));}while(_0x580b6f[_0x3970db(0xce)](_0x5e02d6));return _0x580b6f[_0x3970db(0x84)](_0x5e02d6),_0x5e02d6;}[_0x2b4d6f(0x97)](){const _0x110139=_0x2b4d6f,{model:_0xafa65f}=_0x34e559(this[_0x110139(0xa9)]),_0x54b147=_0xafa65f[_0x110139(0x85)][_0x110139(0xb8)],_0x19c2a4=_0xafa65f[_0x110139(0x87)](_0x54b147),_0x3e66e8=[],_0x7aca51=_0xafa65f[_0x110139(0xc9)](_0x19c2a4)[_0x110139(0xd6)]();for(const {item:_0x140664}of _0x7aca51)_0x140664['is'](_0x110139(0x8c))?_0x3e66e8[_0x110139(0xa8)](_0x140664[_0x110139(0xcf)]):_0x140664['is'](_0x110139(0xdf))&&_0x3e66e8[_0x110139(0xad)]>0x0&&'\x20'!==_0x3e66e8[_0x3e66e8[_0x110139(0xad)]-0x1]&&_0x3e66e8[_0x110139(0xa8)]('\x20');return'\x22'+_0x3e66e8[_0x110139(0xdb)]('')[_0x110139(0x96)]()+'\x22';}[_0x2b4d6f(0x98)](){const _0x24bdfe=_0x2b4d6f,_0x3e1f61=_0x34e559(this[_0x24bdfe(0xa9)])[_0x24bdfe(0xbe)];return Array[_0x24bdfe(0x92)](_0x3e1f61[_0x24bdfe(0xc2)][_0x24bdfe(0xae)](_0x24bdfe(0xa4)))[_0x24bdfe(0xa2)]((_0x3a864b,_0x5d3b87)=>_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb6)](_0x5d3b87[_0x24bdfe(0xc3)]())?-0x1:_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb2)](_0x5d3b87[_0x24bdfe(0xc3)]())?0x1:0x0);}}
23
+ const _0x4a2364=_0x4710;(function(_0x2c3008,_0x16adc0){const _0xa4f1ac=_0x4710,_0x2a4d1e=_0x2c3008();while(!![]){try{const _0x579fa6=parseInt(_0xa4f1ac(0x1c7))/0x1+parseInt(_0xa4f1ac(0x1c1))/0x2+-parseInt(_0xa4f1ac(0x184))/0x3*(parseInt(_0xa4f1ac(0x170))/0x4)+parseInt(_0xa4f1ac(0x162))/0x5+parseInt(_0xa4f1ac(0x16d))/0x6*(parseInt(_0xa4f1ac(0x177))/0x7)+-parseInt(_0xa4f1ac(0x1b4))/0x8*(parseInt(_0xa4f1ac(0x1c2))/0x9)+-parseInt(_0xa4f1ac(0x165))/0xa;if(_0x579fa6===_0x16adc0)break;else _0x2a4d1e['push'](_0x2a4d1e['shift']());}catch(_0x464d00){_0x2a4d1e['push'](_0x2a4d1e['shift']());}}}(_0x2460,0xf32fc));import{ViewDowncastWriter as _0x282ec4}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4c0252,Editor as _0x36e808}from'ckeditor5/src/core.js';function _0x4710(_0x5ebe11,_0x1a6b15){const _0x24601e=_0x2460();return _0x4710=function(_0x4710a6,_0x22f58f){_0x4710a6=_0x4710a6-0x15f;let _0x6b40c8=_0x24601e[_0x4710a6];return _0x6b40c8;},_0x4710(_0x5ebe11,_0x1a6b15);}import{uid as _0x558e3a}from'ckeditor5/src/utils.js';function _0x2460(){const _0x86e802=['editors','_displayedFakeSelectionLocked','getDocumentData','2284470cIrbDg','name','getSelectedContent','22906260pSNtuh','emptyElement','data-id','AIEditing','markerName','processor','add','_integrateEditor','6ukuLMs','getSelectionText','_setDataIdsOnChildren','48804NehuLn','plugins','context','setAttribute','isAfter','isBefore',':start></','8900647zPhVxA',':start>','selection','ready','_sessionId','end','RealTimeCollaborationClient','containerElement','getMarkersGroup','removeMarker','substring','_nextDataId','afterInit','387nEWytz','data','for','_getMarkersInDocumentOrder','pluginName','getChildren','markers','start','join','modelToViewWithIds','_displayedFakeSelectionId','hideFakeVisualSelection','random','version','isOpening','schema','ai-selection:','length','editing','model',':end>','isPremiumPlugin','getLastMatchingPosition','getRoot','ck-ai-assistant-ui_theme','createUIElement','get','element','dataDowncast','$textProxy','getWalker','from','isAtEnd','convertAiChatSelectionMarker','getStart','document','fromCharCode','indexOf','getSelection','isOfficialPlugin','markerToElement','removeAllRanges','addMarker','view','push','change','sessionId','sort','416qWTCXD','isContent','toView','trim','has','markerToHighlight','ck-fake-ai-selection',':end></','toData','floor','editingDowncast','createRange','conversion','3962790urjaUK','79614XPMAOT','listenTo','ai-selection','showFakeVisualSelection','createRangeIn','1610829vTIUVg'];_0x2460=function(){return _0x86e802;};return _0x2460();}import{getEditorFromContext as _0x2ff175}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4a2364(0x1c4);export class AIEditing extends _0x4c0252{[_0x4a2364(0x18e)]=null;[_0x4a2364(0x160)]=!0x1;[_0x4a2364(0x17b)];static get[_0x4a2364(0x188)](){const _0x1d929e=_0x4a2364;return _0x1d929e(0x168);}static get[_0x4a2364(0x1ab)](){return!0x0;}static get[_0x4a2364(0x199)](){return!0x0;}get[_0x4a2364(0x1b2)](){const _0x35212b=_0x4a2364;if(!this[_0x35212b(0x17b)]){const _0x8c9a4=_0x2ff175(this[_0x35212b(0x172)]),_0x521fc8=_0x8c9a4[_0x35212b(0x171)][_0x35212b(0x1b8)](_0x35212b(0x17d))&&_0x8c9a4[_0x35212b(0x171)][_0x35212b(0x19e)](_0x35212b(0x17d))[_0x35212b(0x1b2)];this[_0x35212b(0x17b)]=_0x521fc8||_0x558e3a();}return this[_0x35212b(0x17b)];}[_0x4a2364(0x161)](){const _0x362680=_0x4a2364,_0x1ff884=_0x2ff175(this[_0x362680(0x172)]),_0x1281df=_0x1ff884[_0x362680(0x197)],_0x3aa34f=_0x1ff884[_0x362680(0x185)][_0x362680(0x1b6)](_0x1281df[_0x362680(0x1a7)][_0x362680(0x19b)](),{'convertAiChatSelectionMarker':!0x0}),_0x5c1388=new _0x282ec4(_0x1ff884[_0x362680(0x196)][_0x362680(0x1af)][_0x362680(0x1a7)]);this[_0x362680(0x16f)](_0x3aa34f,_0x5c1388);let _0x258faf=_0x1ff884[_0x362680(0x185)][_0x362680(0x16a)][_0x362680(0x1bc)](_0x3aa34f);const _0x595571=this[_0x362680(0x187)](),_0x12d1cd=[];for(const _0x9754fd of _0x595571){const _0x403e8b='<'+_0x9754fd[_0x362680(0x163)]+_0x362680(0x176)+_0x9754fd[_0x362680(0x163)]+_0x362680(0x178),_0x446e3b=_0x258faf[_0x362680(0x1a9)](_0x403e8b);_0x258faf=_0x258faf[_0x362680(0x181)](0x0,_0x446e3b)+_0x258faf[_0x362680(0x181)](_0x446e3b+_0x403e8b[_0x362680(0x195)]);const _0x46fe58='<'+_0x9754fd[_0x362680(0x163)]+_0x362680(0x1bb)+_0x9754fd[_0x362680(0x163)]+_0x362680(0x198),_0x3e9beb=_0x258faf[_0x362680(0x1a9)](_0x46fe58);_0x258faf=_0x258faf[_0x362680(0x181)](0x0,_0x3e9beb)+_0x258faf[_0x362680(0x181)](_0x3e9beb+_0x46fe58[_0x362680(0x195)]),_0x12d1cd[_0x362680(0x1b0)]({'markerName':_0x9754fd[_0x362680(0x163)],'start':_0x446e3b,'end':_0x3e9beb,'htmlFragment':_0x258faf[_0x362680(0x181)](_0x446e3b,_0x3e9beb)});}return{'content':_0x258faf,'version':_0x1ff884[_0x362680(0x197)][_0x362680(0x1a7)][_0x362680(0x191)],'sessionId':this[_0x362680(0x1b2)],'selections':_0x12d1cd};}async[_0x4a2364(0x183)](){const _0x9f1754=_0x4a2364;this[_0x9f1754(0x172)]instanceof _0x36e808?this[_0x9f1754(0x16c)](this[_0x9f1754(0x172)]):this[_0x9f1754(0x1c3)](this[_0x9f1754(0x172)][_0x9f1754(0x15f)],_0x9f1754(0x16b),(_0x51d04d,_0x3ae18d)=>{const _0x1dc32d=_0x9f1754;_0x3ae18d['on'](_0x1dc32d(0x17a),()=>{const _0x1992ec=_0x1dc32d;this[_0x1992ec(0x16c)](_0x3ae18d);});});}[_0x4a2364(0x16c)](_0x2399d4){const _0x1d9b6d=_0x4a2364;_0x2399d4[_0x1d9b6d(0x1c0)][_0x1d9b6d(0x186)](_0x1d9b6d(0x1be))[_0x1d9b6d(0x1b9)]({'model':_0x1d9b6d(0x1c4),'view':{'classes':[_0x1d9b6d(0x1ba),_0x1d9b6d(0x19c)],'priority':0xc}}),_0x2399d4[_0x1d9b6d(0x1c0)][_0x1d9b6d(0x186)](_0x1d9b6d(0x1a0))[_0x1d9b6d(0x1ac)]({'model':_0x1d9b6d(0x1c4),'view':(_0x231def,{writer:_0x53f141,options:_0xd1deeb})=>_0xd1deeb[_0x1d9b6d(0x1a5)]?_0x53f141[_0x1d9b6d(0x19d)](_0x231def[_0x1d9b6d(0x169)]+':'+(_0x231def[_0x1d9b6d(0x192)]?_0x1d9b6d(0x18b):_0x1d9b6d(0x17c))):null});}[_0x4a2364(0x1c5)](_0x51a3d5,_0x3cb7d7,_0x39f3d1=!0x1,_0x550a18=!0x1){const _0x53ad50=_0x4a2364;if(this[_0x53ad50(0x160)]&&!_0x550a18)return!0x1;this[_0x53ad50(0x18e)]&&this[_0x53ad50(0x18f)](this[_0x53ad50(0x18e)]),this[_0x53ad50(0x18e)]=_0x3cb7d7,this[_0x53ad50(0x160)]=_0x39f3d1;const _0xd3ec23=_0x2ff175(this[_0x53ad50(0x172)])[_0x53ad50(0x197)];return _0xd3ec23[_0x53ad50(0x1b1)](_0x2dfe61=>{const _0x1c176f=_0x53ad50;let _0x2d6d7b=0x0;for(let _0x45d077 of _0x51a3d5){const _0x553bc6=_0x1c176f(0x194)+_0x2d6d7b;if(_0x45d077[_0x1c176f(0x18b)][_0x1c176f(0x1a4)]){const _0x1ba363=_0x45d077[_0x1c176f(0x18b)][_0x1c176f(0x19a)](({item:_0x37ed01})=>!_0xd3ec23[_0x1c176f(0x193)][_0x1c176f(0x1b5)](_0x37ed01),{'boundaries':_0x45d077});_0x45d077=_0x2dfe61[_0x1c176f(0x1bf)](_0x1ba363,_0x45d077[_0x1c176f(0x17c)]);}_0x2dfe61[_0x1c176f(0x1ae)](_0x553bc6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45d077}),_0x2d6d7b++;}}),window[_0x53ad50(0x1aa)]()?.[_0x53ad50(0x1ad)](),!0x0;}[_0x4a2364(0x18f)](_0x554f76){const _0x5d119d=_0x4a2364;if(this[_0x5d119d(0x18e)]!=_0x554f76)return!0x1;this[_0x5d119d(0x18e)]=null,this[_0x5d119d(0x160)]=!0x1;const _0x1c16ef=_0x2ff175(this[_0x5d119d(0x172)]),_0x29f28f=_0x1c16ef[_0x5d119d(0x197)][_0x5d119d(0x18a)][_0x5d119d(0x17f)](_0x5d119d(0x1c4));return _0x1c16ef[_0x5d119d(0x197)][_0x5d119d(0x1b1)](_0x4a7c83=>{const _0x26c8fd=_0x5d119d;for(const _0x1c6ec9 of _0x29f28f)_0x4a7c83[_0x26c8fd(0x180)](_0x1c6ec9);}),!0x0;}[_0x4a2364(0x18d)](_0x3c8883){const _0x17a032=_0x4a2364,_0x14d198=_0x2ff175(this[_0x17a032(0x172)]),_0x423439=_0x14d198[_0x17a032(0x185)][_0x17a032(0x1b6)](_0x3c8883),_0x1e38bd=new _0x282ec4(_0x14d198[_0x17a032(0x196)][_0x17a032(0x1af)][_0x17a032(0x1a7)]);return this[_0x17a032(0x16f)](_0x423439,_0x1e38bd),_0x423439;}[_0x4a2364(0x16f)](_0x3aed5f,_0x342bd1){const _0x58f001=_0x4a2364;let _0x448751=!0x1;const _0x1ff317=new Set();for(const _0x45ca11 of _0x3aed5f[_0x58f001(0x189)]()){const _0x1dc6b0=_0x45ca11['is'](_0x58f001(0x166))||_0x45ca11['is'](_0x58f001(0x17e));if(!_0x45ca11['is'](_0x58f001(0x19f)))continue;(this[_0x58f001(0x16f)](_0x45ca11,_0x342bd1)||_0x1dc6b0)&&(_0x342bd1[_0x58f001(0x173)](_0x58f001(0x167),this[_0x58f001(0x182)](_0x1ff317),_0x45ca11),_0x448751=!0x0);}return _0x448751;}[_0x4a2364(0x182)](_0x3ee783){const _0x1cc91b=_0x4a2364;let _0x199078;do{_0x199078='';for(let _0x47a228=0x0;_0x47a228<0x4;_0x47a228++)_0x199078+=String[_0x1cc91b(0x1a8)](0x61+Math[_0x1cc91b(0x1bd)](0x1a*Math[_0x1cc91b(0x190)]()));}while(_0x3ee783[_0x1cc91b(0x1b8)](_0x199078));return _0x3ee783[_0x1cc91b(0x16b)](_0x199078),_0x199078;}[_0x4a2364(0x16e)](){const _0x426f10=_0x4a2364,{model:_0x54d59e}=_0x2ff175(this[_0x426f10(0x172)]),_0x3a6e95=_0x54d59e[_0x426f10(0x1a7)][_0x426f10(0x179)],_0x356848=_0x54d59e[_0x426f10(0x164)](_0x3a6e95),_0x5ec3af=[],_0x1c857b=_0x54d59e[_0x426f10(0x1c6)](_0x356848)[_0x426f10(0x1a2)]();for(const {item:_0x470f3e}of _0x1c857b)_0x470f3e['is'](_0x426f10(0x1a1))?_0x5ec3af[_0x426f10(0x1b0)](_0x470f3e[_0x426f10(0x185)]):_0x470f3e['is'](_0x426f10(0x19f))&&_0x5ec3af[_0x426f10(0x195)]>0x0&&'\x20'!==_0x5ec3af[_0x5ec3af[_0x426f10(0x195)]-0x1]&&_0x5ec3af[_0x426f10(0x1b0)]('\x20');return'\x22'+_0x5ec3af[_0x426f10(0x18c)]('')[_0x426f10(0x1b7)]()+'\x22';}[_0x4a2364(0x187)](){const _0x1c6ba7=_0x4a2364,_0xb11b5d=_0x2ff175(this[_0x1c6ba7(0x172)])[_0x1c6ba7(0x197)];return Array[_0x1c6ba7(0x1a3)](_0xb11b5d[_0x1c6ba7(0x18a)][_0x1c6ba7(0x17f)](_0x1c6ba7(0x1c4)))[_0x1c6ba7(0x1b3)]((_0x5c1e57,_0x397da3)=>_0x5c1e57[_0x1c6ba7(0x1a6)]()[_0x1c6ba7(0x175)](_0x397da3[_0x1c6ba7(0x1a6)]())?-0x1:_0x5c1e57[_0x1c6ba7(0x1a6)]()[_0x1c6ba7(0x174)](_0x397da3[_0x1c6ba7(0x1a6)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4ee2(){const _0x4bc937=['_isWebSearchEnabled','774132rUUFSO','2GGATGV','capabilitiesUpdated','1476290eCPZhA','reasoning','fire','4158840vaAeGs','2155508YnnJHw','setWebSearch','webSearch','_isReasoningEnabled','toggleReasoning','getCapabilitiesConfig','611859BfzPmQ','reset','setReasoning','toggleWebSearch','isReasoningEnabled','1217640zkHNyu','isWebSearchEnabled','getCapabilitiesRequestData','2435356WgtFXw','init'];_0x4ee2=function(){return _0x4bc937;};return _0x4ee2();}const _0x2a3658=_0x3c1d;(function(_0x2b8acd,_0x1606c7){const _0x5032b6=_0x3c1d,_0x462da8=_0x2b8acd();while(!![]){try{const _0x39ae4a=parseInt(_0x5032b6(0xde))/0x1+-parseInt(_0x5032b6(0xdf))/0x2*(-parseInt(_0x5032b6(0xeb))/0x3)+-parseInt(_0x5032b6(0xe5))/0x4+-parseInt(_0x5032b6(0xe1))/0x5+parseInt(_0x5032b6(0xe4))/0x6+-parseInt(_0x5032b6(0xdb))/0x7+parseInt(_0x5032b6(0xd8))/0x8;if(_0x39ae4a===_0x1606c7)break;else _0x462da8['push'](_0x462da8['shift']());}catch(_0x5f41e3){_0x462da8['push'](_0x462da8['shift']());}}}(_0x4ee2,0x9c96b));import{EmitterMixin as _0x2e709b}from'ckeditor5/src/utils.js';function _0x3c1d(_0x1adc0c,_0x1702ae){const _0x4ee2e8=_0x4ee2();return _0x3c1d=function(_0x3c1d68,_0x46ee78){_0x3c1d68=_0x3c1d68-0xd5;let _0x25e5e6=_0x4ee2e8[_0x3c1d68];return _0x25e5e6;},_0x3c1d(_0x1adc0c,_0x1702ae);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a3658(0xe0)];export class AICapabilities extends _0x2e709b(){[_0x2a3658(0xdd)];[_0x2a3658(0xe8)];constructor(){const _0x5e0509=_0x2a3658;super(),this[_0x5e0509(0xdd)]=!0x1,this[_0x5e0509(0xe8)]=!0x1;}[_0x2a3658(0xdc)](){const _0x38f99f=_0x2a3658;this[_0x38f99f(0xec)]();}[_0x2a3658(0xec)](){const _0x8b8daa=_0x2a3658;this[_0x8b8daa(0xe6)](!0x1),this[_0x8b8daa(0xd5)](!0x1);}[_0x2a3658(0xea)](){const _0x10002a=_0x2a3658;return{'isWebSearchEnabled':this[_0x10002a(0xdd)],'isReasoningEnabled':this[_0x10002a(0xe8)]};}static[_0x2a3658(0xda)](_0x3eb35d){const _0x2711ed=_0x2a3658,_0x147fbe={};return _0x3eb35d&&_0x3eb35d[_0x2711ed(0xd9)]&&(_0x147fbe[_0x2711ed(0xe7)]={}),_0x3eb35d&&_0x3eb35d[_0x2711ed(0xd7)]&&(_0x147fbe[_0x2711ed(0xe2)]={}),_0x147fbe;}[_0x2a3658(0xd6)](){const _0x55f325=_0x2a3658;this[_0x55f325(0xe6)](!this[_0x55f325(0xdd)]);}[_0x2a3658(0xe9)](){const _0x1dc1f3=_0x2a3658;this[_0x1dc1f3(0xd5)](!this[_0x1dc1f3(0xe8)]);}[_0x2a3658(0xe6)](_0x23a263){const _0x1d01b2=_0x2a3658;_0x23a263!==this[_0x1d01b2(0xdd)]&&(this[_0x1d01b2(0xdd)]=_0x23a263,this[_0x1d01b2(0xe3)](_0x1d01b2(0xe0),this[_0x1d01b2(0xea)]()));}[_0x2a3658(0xd5)](_0x1e6ca9){const _0x5a59f3=_0x2a3658;_0x1e6ca9!==this[_0x5a59f3(0xe8)]&&(this[_0x5a59f3(0xe8)]=_0x1e6ca9,this[_0x5a59f3(0xe3)](_0x5a59f3(0xe0),this[_0x5a59f3(0xea)]()));}}
23
+ const _0x22091b=_0x19a9;(function(_0xb2378e,_0x481ef7){const _0x11f745=_0x19a9,_0xc8221f=_0xb2378e();while(!![]){try{const _0x47d179=parseInt(_0x11f745(0xee))/0x1+-parseInt(_0x11f745(0xf9))/0x2*(-parseInt(_0x11f745(0xea))/0x3)+parseInt(_0x11f745(0xe2))/0x4+parseInt(_0x11f745(0xf6))/0x5+-parseInt(_0x11f745(0xec))/0x6+-parseInt(_0x11f745(0xe5))/0x7+-parseInt(_0x11f745(0xf8))/0x8*(parseInt(_0x11f745(0xf4))/0x9);if(_0x47d179===_0x481ef7)break;else _0xc8221f['push'](_0xc8221f['shift']());}catch(_0x42f1b0){_0xc8221f['push'](_0xc8221f['shift']());}}}(_0x953c,0xd7684));function _0x19a9(_0x80e890,_0x241850){const _0x953c7e=_0x953c();return _0x19a9=function(_0x19a96c,_0x45862d){_0x19a96c=_0x19a96c-0xe1;let _0x520374=_0x953c7e[_0x19a96c];return _0x520374;},_0x19a9(_0x80e890,_0x241850);}import{EmitterMixin as _0x4ef163}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x22091b(0xe6)];export class AICapabilities extends _0x4ef163(){[_0x22091b(0xe3)];[_0x22091b(0xe8)];constructor(){const _0x6e81e5=_0x22091b;super(),this[_0x6e81e5(0xe3)]=!0x1,this[_0x6e81e5(0xe8)]=!0x1;}[_0x22091b(0xf5)](){const _0x14838b=_0x22091b;this[_0x14838b(0xeb)]();}[_0x22091b(0xeb)](){const _0xfc7402=_0x22091b;this[_0xfc7402(0xe7)](!0x1),this[_0xfc7402(0xf2)](!0x1);}[_0x22091b(0xed)](){const _0xfb0318=_0x22091b;return{'isWebSearchEnabled':this[_0xfb0318(0xe3)],'isReasoningEnabled':this[_0xfb0318(0xe8)]};}static[_0x22091b(0xe1)](_0x29de1d){const _0x3350b4=_0x22091b,_0x3a94fe={};return _0x29de1d&&_0x29de1d[_0x3350b4(0xf7)]&&(_0x3a94fe[_0x3350b4(0xf1)]={}),_0x29de1d&&_0x29de1d[_0x3350b4(0xe4)]&&(_0x3a94fe[_0x3350b4(0xf0)]={}),_0x3a94fe;}[_0x22091b(0xf3)](){const _0x5e1beb=_0x22091b;this[_0x5e1beb(0xe7)](!this[_0x5e1beb(0xe3)]);}[_0x22091b(0xe9)](){const _0x351e0b=_0x22091b;this[_0x351e0b(0xf2)](!this[_0x351e0b(0xe8)]);}[_0x22091b(0xe7)](_0xf0e88f){const _0x455756=_0x22091b;_0xf0e88f!==this[_0x455756(0xe3)]&&(this[_0x455756(0xe3)]=_0xf0e88f,this[_0x455756(0xef)](_0x455756(0xe6),this[_0x455756(0xed)]()));}[_0x22091b(0xf2)](_0x3df0b7){const _0x1f7711=_0x22091b;_0x3df0b7!==this[_0x1f7711(0xe8)]&&(this[_0x1f7711(0xe8)]=_0x3df0b7,this[_0x1f7711(0xef)](_0x1f7711(0xe6),this[_0x1f7711(0xed)]()));}}function _0x953c(){const _0x5b7755=['setWebSearch','_isReasoningEnabled','toggleReasoning','1119rcvZsa','reset','8672904byCIru','getCapabilitiesConfig','1068394KBoUEA','fire','reasoning','webSearch','setReasoning','toggleWebSearch','171QzJcse','init','6436270lykbCY','isWebSearchEnabled','695088LDwLib','9038TscXwH','getCapabilitiesRequestData','1468592zIKeEa','_isWebSearchEnabled','isReasoningEnabled','3008299sGEyol','capabilitiesUpdated'];_0x953c=function(){return _0x5b7755;};return _0x953c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x93babe,_0x11659a){var _0x3aa141=_0x5ead,_0x13a897=_0x93babe();while(!![]){try{var _0xea0e44=-parseInt(_0x3aa141(0x176))/0x1+parseInt(_0x3aa141(0x179))/0x2+parseInt(_0x3aa141(0x16d))/0x3+parseInt(_0x3aa141(0x177))/0x4+-parseInt(_0x3aa141(0x17a))/0x5+-parseInt(_0x3aa141(0x170))/0x6+parseInt(_0x3aa141(0x174))/0x7;if(_0xea0e44===_0x11659a)break;else _0x13a897['push'](_0x13a897['shift']());}catch(_0x557609){_0x13a897['push'](_0x13a897['shift']());}}}(_0x346e,0xe4cc0));function _0x5ead(_0x3a08cf,_0x425bec){var _0x346e7e=_0x346e();return _0x5ead=function(_0x5eade4,_0x36e055){_0x5eade4=_0x5eade4-0x166;var _0x2a127e=_0x346e7e[_0x5eade4];return _0x2a127e;},_0x5ead(_0x3a08cf,_0x425bec);}export var AIContextItemType;!function(_0x1dc259){var _0x336cf4=_0x5ead;_0x1dc259[_0x336cf4(0x167)]=_0x336cf4(0x175),_0x1dc259[_0x336cf4(0x171)]=_0x336cf4(0x178),_0x1dc259[_0x336cf4(0x16e)]=_0x336cf4(0x168),_0x1dc259[_0x336cf4(0x16b)]=_0x336cf4(0x169),_0x1dc259[_0x336cf4(0x172)]=_0x336cf4(0x16a);}(AIContextItemType||(AIContextItemType={}));function _0x346e(){var _0x205a74=['1439972NBXONm','721508EAPkeY','document','2910260uGdmgY','5757820ivPWcf','MARKDOWN','FILE','web-resource','text','selection','TEXT','markdown','2801886Djqzuv','URL','html','5484360lJHKkI','DOCUMENT','SELECTION','HTML','13112953CxvOTd','file'];_0x346e=function(){return _0x205a74;};return _0x346e();}export var AIContextTextResourceType;!function(_0x4bdb59){var _0x39fd61=_0x5ead;_0x4bdb59[_0x39fd61(0x16b)]=_0x39fd61(0x169),_0x4bdb59[_0x39fd61(0x166)]=_0x39fd61(0x16c),_0x4bdb59[_0x39fd61(0x173)]=_0x39fd61(0x16f);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x4bec3d,_0x4bec94){var _0x4e3f4f=_0x5e73,_0x3eeeb1=_0x4bec3d();while(!![]){try{var _0x3f8913=parseInt(_0x4e3f4f(0xb5))/0x1*(-parseInt(_0x4e3f4f(0xa9))/0x2)+-parseInt(_0x4e3f4f(0xa7))/0x3*(-parseInt(_0x4e3f4f(0xb6))/0x4)+parseInt(_0x4e3f4f(0xa8))/0x5+parseInt(_0x4e3f4f(0xaf))/0x6+parseInt(_0x4e3f4f(0xa4))/0x7*(parseInt(_0x4e3f4f(0xb0))/0x8)+parseInt(_0x4e3f4f(0xb3))/0x9+-parseInt(_0x4e3f4f(0xa3))/0xa;if(_0x3f8913===_0x4bec94)break;else _0x3eeeb1['push'](_0x3eeeb1['shift']());}catch(_0x567dc4){_0x3eeeb1['push'](_0x3eeeb1['shift']());}}}(_0x21d2,0xaaf0b));export var AIContextItemType;function _0x5e73(_0xb6912c,_0x37db94){var _0x21d2b1=_0x21d2();return _0x5e73=function(_0x5e73ff,_0x5767cd){_0x5e73ff=_0x5e73ff-0xa0;var _0xbe3c25=_0x21d2b1[_0x5e73ff];return _0xbe3c25;},_0x5e73(_0xb6912c,_0x37db94);}function _0x21d2(){var _0x45c2ca=['FILE','selection','TEXT','2396388GOILIl','176WZphUy','SELECTION','document','2067660ukpmrw','file','807026SgqEBm','34084yxsbps','URL','html','text','DOCUMENT','3568210fchNht','97279cktGNW','markdown','web-resource','60WliEiR','3793630IZEARY','2QgDTpr','HTML','MARKDOWN'];_0x21d2=function(){return _0x45c2ca;};return _0x21d2();}!function(_0x378f58){var _0x4c4bb9=_0x5e73;_0x378f58[_0x4c4bb9(0xac)]=_0x4c4bb9(0xb4),_0x378f58[_0x4c4bb9(0xa2)]=_0x4c4bb9(0xb2),_0x378f58[_0x4c4bb9(0xb7)]=_0x4c4bb9(0xa6),_0x378f58[_0x4c4bb9(0xae)]=_0x4c4bb9(0xa1),_0x378f58[_0x4c4bb9(0xb1)]=_0x4c4bb9(0xad);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x3d455b){var _0x523b70=_0x5e73;_0x3d455b[_0x523b70(0xae)]=_0x523b70(0xa1),_0x3d455b[_0x523b70(0xab)]=_0x523b70(0xa5),_0x3d455b[_0x523b70(0xaa)]=_0x523b70(0xa0);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ba6b2=_0x3e71;(function(_0x467524,_0xcbfc8e){const _0x372a83=_0x3e71,_0x163b05=_0x467524();while(!![]){try{const _0x5816bb=parseInt(_0x372a83(0x132))/0x1+-parseInt(_0x372a83(0x117))/0x2*(-parseInt(_0x372a83(0x128))/0x3)+parseInt(_0x372a83(0x107))/0x4+parseInt(_0x372a83(0x109))/0x5+-parseInt(_0x372a83(0x133))/0x6+-parseInt(_0x372a83(0x10b))/0x7+parseInt(_0x372a83(0x12f))/0x8*(-parseInt(_0x372a83(0x126))/0x9);if(_0x5816bb===_0xcbfc8e)break;else _0x163b05['push'](_0x163b05['shift']());}catch(_0x37bc8c){_0x163b05['push'](_0x163b05['shift']());}}}(_0xf9bb,0x74740));function _0x3e71(_0x335873,_0x69538a){const _0xf9bbec=_0xf9bb();return _0x3e71=function(_0x3e715c,_0x21c107){_0x3e715c=_0x3e715c-0xf5;let _0x3a71ff=_0xf9bbec[_0x3e715c];return _0x3a71ff;},_0x3e71(_0x335873,_0x69538a);}import{CKEditorError as _0x46729e,EmitterMixin as _0x2e3f3d,logWarning as _0x4f0f23,uid as _0x4425aa}from'ckeditor5/src/utils.js';import{AIReply as _0x81fdf4,isIgnoredReplyType as _0x370c04,isValidReplyType as _0x92f06d,isReplyTitleType as _0x71dfa0,isSourceType as _0x4d570c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5ba6b2(0xff),_0x5ba6b2(0x12d),_0x5ba6b2(0x105),_0x5ba6b2(0x11a),_0x5ba6b2(0x12c),_0x5ba6b2(0x123),_0x5ba6b2(0x131),_0x5ba6b2(0x102),_0x5ba6b2(0xf9),_0x5ba6b2(0x119),_0x5ba6b2(0x124),_0x5ba6b2(0x114),_0x5ba6b2(0x111),_0x5ba6b2(0x10e)];export class AIInteraction extends _0x2e3f3d(){['id'];[_0x5ba6b2(0x106)]=[];[_0x5ba6b2(0xfe)];[_0x5ba6b2(0x136)];[_0x5ba6b2(0x130)];[_0x5ba6b2(0x112)];[_0x5ba6b2(0xfc)];[_0x5ba6b2(0x11b)]=!0x1;[_0x5ba6b2(0xfa)]=!0x1;[_0x5ba6b2(0x12e)];[_0x5ba6b2(0x118)]=!0x1;[_0x5ba6b2(0xfd)]=!0x1;constructor({connector:_0x384ed3,editor:_0xe8d052}){const _0x2926d7=_0x5ba6b2;super(),this['id']=_0x4425aa(),this[_0x2926d7(0xfc)]=_0x384ed3,this[_0x2926d7(0x11b)]=!0x0,this[_0x2926d7(0x12e)]=_0xe8d052;}async[_0x5ba6b2(0x11d)](){const _0x16ef54=_0x5ba6b2;let _0x2e9cf7;const _0x3b1979=[];this[_0x16ef54(0x11b)]=!0x1;try{this[_0x16ef54(0x112)]=await this[_0x16ef54(0x10a)](),this[_0x16ef54(0x11c)](_0x16ef54(0x12d),this);const _0x462e9f=await this[_0x16ef54(0x112)][_0x16ef54(0x134)]();for await(const _0x2b3882 of _0x462e9f){if(this[_0x16ef54(0x11b)])return;if(_0x16ef54(0x10e)===_0x2b3882[_0x16ef54(0x129)])return void this[_0x16ef54(0x11c)](_0x16ef54(0x10e),{'error':new _0x46729e(_0x16ef54(0x12a),this)});if(_0x16ef54(0x103)!==_0x2b3882[_0x16ef54(0x129)]){if(_0x16ef54(0x122)!==_0x2b3882[_0x16ef54(0x129)]){if(_0x71dfa0(_0x2b3882[_0x16ef54(0x129)])&&this[_0x16ef54(0xf9)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0xf6)],!0x0),_0x4d570c(_0x2b3882[_0x16ef54(0x129)]))_0x3b1979[_0x16ef54(0x135)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x125)]);else{if(_0x92f06d(_0x2b3882[_0x16ef54(0x129)])){if(_0x2b3882[_0x16ef54(0x129)]!==_0x2e9cf7){if(_0x2e9cf7=_0x2b3882[_0x16ef54(0x129)],_0x16ef54(0x110)===_0x2b3882[_0x16ef54(0x129)]){this[_0x16ef54(0xfd)]||(this[_0x16ef54(0xfd)]=!0x0,this[_0x16ef54(0x11c)](_0x16ef54(0x119),this));continue;}if(_0x16ef54(0x101)===_0x2b3882[_0x16ef54(0x129)]){this[_0x16ef54(0x118)]||(this[_0x16ef54(0x118)]=!0x0,this[_0x16ef54(0x11c)](_0x16ef54(0x114),this));continue;}this[_0x16ef54(0x118)]&&(this[_0x16ef54(0x118)]=!0x1,this[_0x16ef54(0x11c)](_0x16ef54(0x111),this)),this[_0x16ef54(0xfd)]&&(this[_0x16ef54(0xfd)]=!0x1,this[_0x16ef54(0x11c)](_0x16ef54(0x124),this)),this[_0x16ef54(0xfe)]&&this[_0x16ef54(0xfe)][_0x16ef54(0x120)](),this[_0x16ef54(0xfe)]=this[_0x16ef54(0x115)]({'type':_0x2b3882[_0x16ef54(0x129)],'interactionId':this['id']}),_0x3b1979[_0x16ef54(0xf8)]>0x0&&_0x16ef54(0x116)===_0x2b3882[_0x16ef54(0x129)]&&(this[_0x16ef54(0xfe)][_0x16ef54(0x127)]=_0x3b1979[_0x16ef54(0x108)](0x0));}_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x138)]&&this[_0x16ef54(0xfe)][_0x16ef54(0x104)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x138)]);}else _0x370c04(_0x2b3882[_0x16ef54(0x129)])||_0x4f0f23(_0x16ef54(0x10f),{'chunk':_0x2b3882});}}else this[_0x16ef54(0x130)]=_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x113)];}else this[_0x16ef54(0x136)]=_0x2b3882[_0x16ef54(0xf7)]['id'];}}finally{this[_0x16ef54(0x11b)]||(_0x3b1979[_0x16ef54(0xf8)]>0x0&&(this[_0x16ef54(0xfe)][_0x16ef54(0x127)]=_0x3b1979[_0x16ef54(0x108)](0x0)),this[_0x16ef54(0x10d)](),this[_0x16ef54(0x11c)](_0x16ef54(0x11a),this));}}[_0x5ba6b2(0x139)](){const _0x135c87=_0x5ba6b2;this[_0x135c87(0x11b)]||(this[_0x135c87(0x10d)](),this[_0x135c87(0x11c)](_0x135c87(0x105),this));}[_0x5ba6b2(0x10c)](_0x19c78e){const _0x35b86e=_0x5ba6b2;return this[_0x35b86e(0x106)][_0x35b86e(0x11e)](_0x43d2bc=>_0x43d2bc['id']===_0x19c78e);}[_0x5ba6b2(0x137)](){const _0x755147=_0x5ba6b2;this[_0x755147(0xfa)]||(this[_0x755147(0x139)](),this[_0x755147(0x106)][_0x755147(0x121)](_0x5172df=>_0x5172df[_0x755147(0x137)]()),this[_0x755147(0x106)]=[],this[_0x755147(0xfa)]=!0x0,this[_0x755147(0x11c)](_0x755147(0x12c),this),this[_0x755147(0x100)]());}[_0x5ba6b2(0x115)](_0x1ddc7f){const _0x181cae=_0x5ba6b2,_0x2d032f=new _0x81fdf4({'editor':this[_0x181cae(0x12e)],'documentContextContent':this[_0x181cae(0xfb)]()?.[_0x181cae(0x12b)],..._0x1ddc7f});return this[_0x181cae(0x106)][_0x181cae(0x135)](_0x2d032f),_0x2d032f[_0x181cae(0x11f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x181cae(0x11c)](_0x181cae(0x123),_0x2d032f),_0x2d032f;}[_0x5ba6b2(0xf9)](_0xcaca23,_0xff00a4=!0x1){const _0x1aee3a=_0x5ba6b2;this[_0x1aee3a(0x11c)](_0x1aee3a(0xf9),_0xcaca23,_0xff00a4);}[_0x5ba6b2(0x10d)](){const _0x1a2881=_0x5ba6b2;this[_0x1a2881(0x11b)]=!0x0,this[_0x1a2881(0x112)]&&this[_0x1a2881(0x112)][_0x1a2881(0x13a)][_0x1a2881(0xf5)](),this[_0x1a2881(0xfe)]&&this[_0x1a2881(0xfe)][_0x1a2881(0x120)](),this[_0x1a2881(0x112)]=this[_0x1a2881(0xfe)]=void 0x0;}}function _0xf9bb(){const _0x30ebe8=['sources','1248483RlGHWr','event','ai-chat-interaction-error','content','interactionDestroyed','interactionStarted','editor','16HhwPvu','actionCallId','replyContentUpdated','854259QWJijJ','634944KqKKtS','getStream','push','messageId','destroy','textDelta','stop','abortController','abort','conversationTitle','data','length','setConversationTitle','isDestroyed','getDocumentContext','connector','_isWebSearching','currentReply','interactionCreated','stopListening','reasoning','replyChangeGroupStateUpdated','message-metadata','appendContent','interactionStopped','replies','119724cWYtXi','splice','3334300aEBtPu','sendRequest','2500099gdULSN','getReply','_finalizeInteraction','error','ai-interaction-invalid-event-type','web-search','reasoningFinished','currentRequest','callId','reasoningStarted','createReply','modification-delta','2nApAbx','_isReasoning','webSearchStarted','interactionFinished','isStopped','fire','start','find','delegate','done','forEach','action-metadata','replyCreated','webSearchFinished','source','4622571OxTHEc'];_0xf9bb=function(){return _0x30ebe8;};return _0xf9bb();}
23
+ const _0x5931fe=_0x493d;function _0x2491(){const _0x514190=['push','_isReasoning','interactionStarted','interactionStopped','interactionFinished','replyContentUpdated','messageId','error','action-metadata','replyCreated','webSearchStarted','getReply','textDelta','done','destroy','conversationTitle','data','stop','1510326SvqbIn','519PxVmfg','320642bkqamZ','fire','content','8SYoOxC','length','replyChangeGroupStateUpdated','editor','appendContent','web-search','reasoningStarted','_isWebSearching','761130sXbUqH','message-metadata','_finalizeInteraction','connector','reasoning','2011408biLiIK','splice','interactionDestroyed','ai-chat-interaction-error','sources','callId','currentRequest','start','forEach','setConversationTitle','10996KoXPtR','source','abort','replies','7250tsCLLf','reasoningFinished','delegate','getDocumentContext','webSearchFinished','2535035zhoLQe','isDestroyed','currentReply','abortController','interactionCreated','isStopped','sendRequest','stopListening','5533SfvWPg','6OZevwD','find','modification-delta','event','actionCallId','getStream','ai-interaction-invalid-event-type','createReply'];_0x2491=function(){return _0x514190;};return _0x2491();}(function(_0x1c6bc7,_0x448106){const _0x4b3030=_0x493d,_0x3dae4a=_0x1c6bc7();while(!![]){try{const _0x29b7e8=-parseInt(_0x4b3030(0xb4))/0x1+parseInt(_0x4b3030(0xb2))/0x2+parseInt(_0x4b3030(0xb3))/0x3*(-parseInt(_0x4b3030(0x86))/0x4)+-parseInt(_0x4b3030(0x8f))/0x5*(-parseInt(_0x4b3030(0x98))/0x6)+-parseInt(_0x4b3030(0xc4))/0x7*(parseInt(_0x4b3030(0xb7))/0x8)+-parseInt(_0x4b3030(0xbf))/0x9+-parseInt(_0x4b3030(0x8a))/0xa*(-parseInt(_0x4b3030(0x97))/0xb);if(_0x29b7e8===_0x448106)break;else _0x3dae4a['push'](_0x3dae4a['shift']());}catch(_0x3b18a5){_0x3dae4a['push'](_0x3dae4a['shift']());}}}(_0x2491,0x6ffd8));import{CKEditorError as _0x9ddcea,EmitterMixin as _0x4579a1,logWarning as _0x4d55f1,uid as _0x21b973}from'ckeditor5/src/utils.js';import{AIReply as _0x2bbf50,isIgnoredReplyType as _0x3000a3,isValidReplyType as _0x16855a,isReplyTitleType as _0x486251,isSourceType as _0x5d75da}from'./aireply.js';function _0x493d(_0x1c994e,_0x221da2){const _0x249114=_0x2491();return _0x493d=function(_0x493db0,_0x1007ef){_0x493db0=_0x493db0-0x7f;let _0x44226a=_0x249114[_0x493db0];return _0x44226a;},_0x493d(_0x1c994e,_0x221da2);}export const AI_MODEL_EVENT_NAMES=[_0x5931fe(0x93),_0x5931fe(0xa2),_0x5931fe(0xa3),_0x5931fe(0xa4),_0x5931fe(0xc6),_0x5931fe(0xa9),_0x5931fe(0xa5),_0x5931fe(0xb9),_0x5931fe(0x85),_0x5931fe(0xaa),_0x5931fe(0x8e),_0x5931fe(0xbd),_0x5931fe(0x8b),_0x5931fe(0xa7)];export class AIInteraction extends _0x4579a1(){['id'];[_0x5931fe(0x89)]=[];[_0x5931fe(0x91)];[_0x5931fe(0xa6)];[_0x5931fe(0x9c)];[_0x5931fe(0x82)];[_0x5931fe(0xc2)];[_0x5931fe(0x94)]=!0x1;[_0x5931fe(0x90)]=!0x1;[_0x5931fe(0xba)];[_0x5931fe(0xa1)]=!0x1;[_0x5931fe(0xbe)]=!0x1;constructor({connector:_0x15a336,editor:_0x1f7959}){const _0x12bf44=_0x5931fe;super(),this['id']=_0x21b973(),this[_0x12bf44(0xc2)]=_0x15a336,this[_0x12bf44(0x94)]=!0x0,this[_0x12bf44(0xba)]=_0x1f7959;}async[_0x5931fe(0x83)](){const _0x4e9360=_0x5931fe;let _0x126215;const _0x428d2a=[];this[_0x4e9360(0x94)]=!0x1;try{this[_0x4e9360(0x82)]=await this[_0x4e9360(0x95)](),this[_0x4e9360(0xb5)](_0x4e9360(0xa2),this);const _0x412010=await this[_0x4e9360(0x82)][_0x4e9360(0x9d)]();for await(const _0x2108d8 of _0x412010){if(this[_0x4e9360(0x94)])return;if(_0x4e9360(0xa7)===_0x2108d8[_0x4e9360(0x9b)])return void this[_0x4e9360(0xb5)](_0x4e9360(0xa7),{'error':new _0x9ddcea(_0x4e9360(0x7f),this)});if(_0x4e9360(0xc0)!==_0x2108d8[_0x4e9360(0x9b)]){if(_0x4e9360(0xa8)!==_0x2108d8[_0x4e9360(0x9b)]){if(_0x486251(_0x2108d8[_0x4e9360(0x9b)])&&this[_0x4e9360(0x85)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xaf)],!0x0),_0x5d75da(_0x2108d8[_0x4e9360(0x9b)]))_0x428d2a[_0x4e9360(0xa0)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0x87)]);else{if(_0x16855a(_0x2108d8[_0x4e9360(0x9b)])){if(_0x2108d8[_0x4e9360(0x9b)]!==_0x126215){if(_0x126215=_0x2108d8[_0x4e9360(0x9b)],_0x4e9360(0xbc)===_0x2108d8[_0x4e9360(0x9b)]){this[_0x4e9360(0xbe)]||(this[_0x4e9360(0xbe)]=!0x0,this[_0x4e9360(0xb5)](_0x4e9360(0xaa),this));continue;}if(_0x4e9360(0xc3)===_0x2108d8[_0x4e9360(0x9b)]){this[_0x4e9360(0xa1)]||(this[_0x4e9360(0xa1)]=!0x0,this[_0x4e9360(0xb5)](_0x4e9360(0xbd),this));continue;}this[_0x4e9360(0xa1)]&&(this[_0x4e9360(0xa1)]=!0x1,this[_0x4e9360(0xb5)](_0x4e9360(0x8b),this)),this[_0x4e9360(0xbe)]&&(this[_0x4e9360(0xbe)]=!0x1,this[_0x4e9360(0xb5)](_0x4e9360(0x8e),this)),this[_0x4e9360(0x91)]&&this[_0x4e9360(0x91)][_0x4e9360(0xad)](),this[_0x4e9360(0x91)]=this[_0x4e9360(0x9f)]({'type':_0x2108d8[_0x4e9360(0x9b)],'interactionId':this['id']}),_0x428d2a[_0x4e9360(0xb8)]>0x0&&_0x4e9360(0x9a)===_0x2108d8[_0x4e9360(0x9b)]&&(this[_0x4e9360(0x91)][_0x4e9360(0x80)]=_0x428d2a[_0x4e9360(0xc5)](0x0));}_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xac)]&&this[_0x4e9360(0x91)][_0x4e9360(0xbb)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xac)]);}else _0x3000a3(_0x2108d8[_0x4e9360(0x9b)])||_0x4d55f1(_0x4e9360(0x9e),{'chunk':_0x2108d8});}}else this[_0x4e9360(0x9c)]=_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0x81)];}else this[_0x4e9360(0xa6)]=_0x2108d8[_0x4e9360(0xb0)]['id'];}}finally{this[_0x4e9360(0x94)]||(_0x428d2a[_0x4e9360(0xb8)]>0x0&&(this[_0x4e9360(0x91)][_0x4e9360(0x80)]=_0x428d2a[_0x4e9360(0xc5)](0x0)),this[_0x4e9360(0xc1)](),this[_0x4e9360(0xb5)](_0x4e9360(0xa4),this));}}[_0x5931fe(0xb1)](){const _0x830f6e=_0x5931fe;this[_0x830f6e(0x94)]||(this[_0x830f6e(0xc1)](),this[_0x830f6e(0xb5)](_0x830f6e(0xa3),this));}[_0x5931fe(0xab)](_0x26e703){const _0x421ccb=_0x5931fe;return this[_0x421ccb(0x89)][_0x421ccb(0x99)](_0x51bdff=>_0x51bdff['id']===_0x26e703);}[_0x5931fe(0xae)](){const _0x254a0b=_0x5931fe;this[_0x254a0b(0x90)]||(this[_0x254a0b(0xb1)](),this[_0x254a0b(0x89)][_0x254a0b(0x84)](_0x3a78f5=>_0x3a78f5[_0x254a0b(0xae)]()),this[_0x254a0b(0x89)]=[],this[_0x254a0b(0x90)]=!0x0,this[_0x254a0b(0xb5)](_0x254a0b(0xc6),this),this[_0x254a0b(0x96)]());}[_0x5931fe(0x9f)](_0x28b2e6){const _0x29fd9f=_0x5931fe,_0x3628ea=new _0x2bbf50({'editor':this[_0x29fd9f(0xba)],'documentContextContent':this[_0x29fd9f(0x8d)]()?.[_0x29fd9f(0xb6)],..._0x28b2e6});return this[_0x29fd9f(0x89)][_0x29fd9f(0xa0)](_0x3628ea),_0x3628ea[_0x29fd9f(0x8c)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x29fd9f(0xb5)](_0x29fd9f(0xa9),_0x3628ea),_0x3628ea;}[_0x5931fe(0x85)](_0x5795b0,_0x55248f=!0x1){const _0xa08846=_0x5931fe;this[_0xa08846(0xb5)](_0xa08846(0x85),_0x5795b0,_0x55248f);}[_0x5931fe(0xc1)](){const _0x363bfd=_0x5931fe;this[_0x363bfd(0x94)]=!0x0,this[_0x363bfd(0x82)]&&this[_0x363bfd(0x82)][_0x363bfd(0x92)][_0x363bfd(0x88)](),this[_0x363bfd(0x91)]&&this[_0x363bfd(0x91)][_0x363bfd(0xad)](),this[_0x363bfd(0x82)]=this[_0x363bfd(0x91)]=void 0x0;}}
@@ -167,7 +167,7 @@ export type AIReplyChangeGroup = {
167
167
  readonly index: number;
168
168
  state: AIReplyChangeGroupState;
169
169
  };
170
- export type AIReplyChangeGroupState = 'pending' | 'accepted' | 'rejected';
170
+ export type AIReplyChangeGroupState = 'pending' | 'accepted' | 'rejected' | 'outdated';
171
171
  export type AIReplySource = {
172
172
  type: string;
173
173
  id: string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d54c1=_0x544d;(function(_0x221bbe,_0x523cb4){const _0x4c6c77=_0x544d,_0x149d56=_0x221bbe();while(!![]){try{const _0x42b9ec=-parseInt(_0x4c6c77(0x20f))/0x1*(parseInt(_0x4c6c77(0x231))/0x2)+parseInt(_0x4c6c77(0x224))/0x3*(-parseInt(_0x4c6c77(0x1f5))/0x4)+parseInt(_0x4c6c77(0x208))/0x5+-parseInt(_0x4c6c77(0x1fe))/0x6+-parseInt(_0x4c6c77(0x1fc))/0x7+-parseInt(_0x4c6c77(0x22c))/0x8*(parseInt(_0x4c6c77(0x20e))/0x9)+parseInt(_0x4c6c77(0x226))/0xa;if(_0x42b9ec===_0x523cb4)break;else _0x149d56['push'](_0x149d56['shift']());}catch(_0x1fb715){_0x149d56['push'](_0x149d56['shift']());}}}(_0x328f,0xb3b09));import{ObservableMixin as _0x575028,uid as _0x4a61ec}from'ckeditor5/src/utils.js';function _0x544d(_0x1c4628,_0x39f44b){const _0x328f69=_0x328f();return _0x544d=function(_0x544d54,_0x5af183){_0x544d54=_0x544d54-0x1ee;let _0xf129ec=_0x328f69[_0x544d54];return _0xf129ec;},_0x544d(_0x1c4628,_0x39f44b);}import{Element as _0x3805b3,findAll as _0x290eda,getAttribute as _0x176817,getParents as _0x2ee361,Document as _0x35954f,parse as _0x5a9a9f,Text as _0x11bd13}from'../utils/htmlparser.js';import{AIResponseParser as _0x1d9698}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x31877f}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x1d54c1(0x232),_0x1d54c1(0x221),_0x1d54c1(0x20d),_0x1d54c1(0x233)];export const AI_REPLY_TYPES_IGNORED=[_0x1d54c1(0x22d)];export const AI_REPLY_TITLE_TYPE=_0x1d54c1(0x22d);export class AIReply extends _0x575028(){['id'];[_0x1d54c1(0x223)];[_0x1d54c1(0x216)];[_0x1d54c1(0x1f9)]=[];[_0x1d54c1(0x202)]=new _0x35954f([]);[_0x1d54c1(0x222)]=new _0x35954f([]);[_0x1d54c1(0x235)]=[];[_0x1d54c1(0x201)]=!0x1;[_0x1d54c1(0x21b)];[_0x1d54c1(0x1ee)];[_0x1d54c1(0x204)];[_0x1d54c1(0x219)];constructor({type:_0x5eb306,content:_0x589224='',isDone:_0x4f1bdc=!0x1,interactionId:_0x579331,areActionsDisabled:_0x4ea062,documentContextContent:_0x2afce0,editor:_0x27ebcb}){const _0x1f6838=_0x1d54c1;super(),this['id']=_0x4a61ec(),this[_0x1f6838(0x223)]=_0x579331,this[_0x1f6838(0x216)]=_0x5eb306,this[_0x1f6838(0x201)]=!!_0x4ea062,this[_0x1f6838(0x219)]=_0x27ebcb,this[_0x1f6838(0x1ee)]=new _0x1d9698(),this[_0x1f6838(0x204)]=new _0x31877f(),this[_0x1f6838(0x21b)]=_0x5a9a9f(_0x2afce0||''),this[_0x1f6838(0x1f0)](_0x1f6838(0x212),_0x4f1bdc),this['on'](_0x1f6838(0x211),()=>{const _0x2a443e=_0x1f6838;this[_0x2a443e(0x21c)]();}),this[_0x1f6838(0x1f0)](_0x1f6838(0x237),_0x589224);}[_0x1d54c1(0x213)](_0x47d4f9){const _0x368a67=_0x1d54c1;this[_0x368a67(0x1f0)](_0x368a67(0x237),this[_0x368a67(0x237)]+_0x47d4f9);}[_0x1d54c1(0x210)](){const _0x3d41d6=_0x1d54c1;this[_0x3d41d6(0x212)]||(this[_0x3d41d6(0x1f0)](_0x3d41d6(0x212),!0x0),this[_0x3d41d6(0x21c)]());}[_0x1d54c1(0x1f8)](){const _0x3a5274=_0x1d54c1;this[_0x3a5274(0x1f7)]();}[_0x1d54c1(0x21a)](_0x4c553d,_0x1d5929){const _0x2f576c=_0x1d54c1;this[_0x2f576c(0x235)][_0x4c553d][_0x2f576c(0x230)]=_0x1d5929,this[_0x2f576c(0x20b)](_0x2f576c(0x20a),{'reply':this,'index':_0x4c553d,'state':_0x1d5929});}[_0x1d54c1(0x21c)](){const _0x1ff342=_0x1d54c1;if(_0x1ff342(0x232)===this[_0x1ff342(0x216)]){this[_0x1ff342(0x202)]=this[_0x1ff342(0x1ee)][_0x1ff342(0x218)](this[_0x1ff342(0x237)]);const _0x3a431e=this[_0x1ff342(0x235)];this[_0x1ff342(0x225)]();const _0x2efca6=this[_0x1ff342(0x22b)](_0x3a431e,this[_0x1ff342(0x235)]);(_0x2efca6[_0x1ff342(0x228)]||this[_0x1ff342(0x212)])&&this[_0x1ff342(0x20b)](_0x1ff342(0x21f),this,_0x2efca6);}else this[_0x1ff342(0x202)]=this[_0x1ff342(0x1ee)][_0x1ff342(0x215)](this[_0x1ff342(0x237)]),this[_0x1ff342(0x20b)](_0x1ff342(0x21f),this);}[_0x1d54c1(0x22b)](_0xfa0763,_0x1cf28d){const _0x33e1aa=_0x1d54c1,_0x347e9a=[];for(const _0x3f06d1 of _0x1cf28d){const _0xe1ce12=_0xfa0763[_0x3f06d1[_0x33e1aa(0x1fd)]];_0xe1ce12?_0xe1ce12[_0x33e1aa(0x22a)][_0x33e1aa(0x228)]!==_0x3f06d1[_0x33e1aa(0x22a)][_0x33e1aa(0x228)]?_0x347e9a[_0x33e1aa(0x206)](_0x3f06d1):_0xe1ce12[_0x33e1aa(0x22a)][_0x33e1aa(0x1f6)]((_0x5733e1,_0x762909)=>{const _0xab12ee=_0x33e1aa,_0x408a60=_0x3f06d1[_0xab12ee(0x22a)][_0x762909];_0x5733e1['id']!==_0x408a60['id']&&_0x347e9a[_0xab12ee(0x206)](_0x3f06d1);}):_0x347e9a[_0x33e1aa(0x206)](_0x3f06d1);}return _0x347e9a;}[_0x1d54c1(0x225)](){const _0x3a84a1=_0x1d54c1,_0x1ab0a2=new _0x3805b3('p',{},[new _0x3805b3(_0x3a84a1(0x21e),{'style':_0x3a84a1(0x22e)},[new _0x11bd13(_0x3a84a1(0x200))])]),_0x437312=this[_0x3a84a1(0x204)][_0x3a84a1(0x21d)](this[_0x3a84a1(0x202)],this[_0x3a84a1(0x21b)][_0x3a84a1(0x209)](!0x0),{'markUnstableElements':!this[_0x3a84a1(0x212)],'replaceRemovedWith':_0x1ab0a2,'cutAfterLastChange':!this[_0x3a84a1(0x212)]});if(!_0x437312[_0x3a84a1(0x214)][_0x3a84a1(0x228)]&&!this[_0x3a84a1(0x212)])return;this[_0x3a84a1(0x222)]=_0x437312[_0x3a84a1(0x202)];let _0x2207c4=[];if(_0x290eda(_0x2f4f7e=>{const _0x33a93f=_0x3a84a1,_0x545ee6=_0x176817(_0x2f4f7e,_0x33a93f(0x20c));if(!_0x545ee6||!_0x5d9343(_0x545ee6))return!0x1;const _0x4c2c8b=[_0x2f4f7e,..._0x2ee361(_0x2f4f7e)]['at'](-0x2);if(_0x2f4f7e!=_0x4c2c8b){const _0x2daea8=_0x176817(_0x4c2c8b,_0x33a93f(0x20c));_0x5d9343(_0x2daea8)||(_0x2207c4[_0x33a93f(0x206)]({'node':_0x4c2c8b,'id':_0x2daea8,'type':_0x33a93f(0x229)}),_0x437312[_0x33a93f(0x214)][_0x33a93f(0x206)](_0x2daea8));}else _0x437312[_0x33a93f(0x214)][_0x33a93f(0x207)](_0x545ee6)?_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x229),'id':_0x545ee6}):_0x437312[_0x33a93f(0x1f1)][_0x33a93f(0x207)](_0x545ee6)?_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x203),'id':_0x545ee6,'anchorId':_0x176817(_0x2f4f7e[_0x33a93f(0x22f)],_0x33a93f(0x20c))}):_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x217),'id':_0x545ee6});return!0x0;},this[_0x3a84a1(0x222)]),_0x2207c4=_0x2207c4[_0x3a84a1(0x205)](({node:_0xa61b1f})=>[..._0x2ee361(_0xa61b1f),_0xa61b1f][_0x3a84a1(0x236)](_0x412ecf=>!_0x176817(_0x412ecf,_0x3a84a1(0x1fb)))),0x0==_0x2207c4[_0x3a84a1(0x228)])return;const _0x1392ba=[[_0x2207c4[0x0]]];for(let _0x419dbe=0x1;_0x419dbe<_0x2207c4[_0x3a84a1(0x228)];_0x419dbe++){const _0x4830d3=_0x1392ba[_0x1392ba[_0x3a84a1(0x228)]-0x1],_0x38e16b=_0x4830d3[_0x4830d3[_0x3a84a1(0x228)]-0x1];_0x2207c4[_0x419dbe][_0x3a84a1(0x1ff)][_0x3a84a1(0x22f)]==_0x38e16b[_0x3a84a1(0x1ff)]&&_0x3a84a1(0x229)!=_0x2207c4[_0x419dbe][_0x3a84a1(0x216)]&&_0x3a84a1(0x229)!=_0x38e16b[_0x3a84a1(0x216)]?_0x4830d3[_0x3a84a1(0x206)](_0x2207c4[_0x419dbe]):_0x1392ba[_0x3a84a1(0x206)]([_0x2207c4[_0x419dbe]]);}for(const _0x4979a0 of _0x1392ba){const _0x1b144d=_0x4979a0[0x0],_0xf70884=_0x4979a0[_0x4979a0[_0x3a84a1(0x228)]-0x1],_0xf435c9=_0x287b8f(_0x1b144d[_0x3a84a1(0x1ff)][_0x3a84a1(0x22f)]);_0xf435c9&&_0x4979a0[_0x3a84a1(0x227)](_0xf435c9);const _0x16dc2a=_0x287b8f(_0xf70884[_0x3a84a1(0x1ff)][_0x3a84a1(0x220)]);_0x16dc2a&&_0x4979a0[_0x3a84a1(0x206)](_0x16dc2a);}function _0x5d9343(_0x2c2753){const _0x8d93f=_0x3a84a1;return _0x437312[_0x8d93f(0x214)][_0x8d93f(0x207)](_0x2c2753)||_0x437312[_0x8d93f(0x1f1)][_0x8d93f(0x207)](_0x2c2753)||_0x437312[_0x8d93f(0x234)][_0x8d93f(0x207)](_0x2c2753);}function _0x287b8f(_0x192641){const _0x54a802=_0x3a84a1;if(_0x192641&&_0x176817(_0x192641,_0x54a802(0x20c))&&!_0x176817(_0x192641,_0x54a802(0x1fb))){const _0xb659a0=_0x176817(_0x192641,_0x54a802(0x20c));if(!_0x5d9343(_0xb659a0))return{'node':_0x192641,'type':_0x54a802(0x1f3),'id':_0xb659a0};}return null;}this[_0x3a84a1(0x235)]=_0x1392ba[_0x3a84a1(0x1f2)]((_0x2d60ae,_0x12459f)=>({'changes':_0x2d60ae,'state':_0x3a84a1(0x1f4),'index':_0x12459f}));}}export function isValidReplyType(_0x4d5226){const _0x4fb016=_0x1d54c1;return Object[_0x4fb016(0x1fa)](AI_REPLY_TYPES)[_0x4fb016(0x207)](_0x4d5226);}export function isIgnoredReplyType(_0xe40cee){const _0x12d333=_0x1d54c1;return AI_REPLY_TYPES_IGNORED[_0x12d333(0x207)](_0xe40cee);}function _0x328f(){const _0x40c453=['content','aiResponseParser','source','set','newNodeIds','map','context','pending','1076852SxOYYA','forEach','stopListening','destroy','sources','values','data-unstable','9507631NbMDaV','index','1402614dvIUmM','node','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','areActionsDisabled','parsedContent','new','aiResponseApplier','filter','push','includes','6020935NexcLZ','cloneNode','replyChangeGroupStateUpdated','fire','data-id','web-search','37431vLXuWu','761NHJlUX','done','change:content','isDone','appendContent','modifiedNodeIds','convertMarkdownToHTML','type','removed','parseAndNormalizeHTML','editor','setChangeGroupState','documentContextContent','onContentChange','merge','span','replyContentUpdated','nextSibling','text-delta','parsedMergedContent','interactionId','3GnYJwf','updateChangeGroups','30948170jQtJWR','unshift','length','modified','changes','_getDifferentChangeGroups','1208IIdUMy','conversation-title','color:\x20#808080;\x20font-style:\x20italic','previousSibling','state','2822oZiKTH','modification-delta','reasoning','removedNodeIds','changeGroups','every'];_0x328f=function(){return _0x40c453;};return _0x328f();}export function isReplyTitleType(_0x170b24){return _0x170b24===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x8099cf){const _0x21a20b=_0x1d54c1;return _0x21a20b(0x1ef)===_0x8099cf;}
23
+ function _0x3c1e(_0x10bdbe,_0x1bc18){const _0x21ce48=_0x21ce();return _0x3c1e=function(_0x3c1e61,_0x34abb8){_0x3c1e61=_0x3c1e61-0xf2;let _0x7e5570=_0x21ce48[_0x3c1e61];return _0x7e5570;},_0x3c1e(_0x10bdbe,_0x1bc18);}const _0x5b46a3=_0x3c1e;(function(_0x52cbee,_0x33ef18){const _0x555ba5=_0x3c1e,_0x308c94=_0x52cbee();while(!![]){try{const _0x2f4df0=parseInt(_0x555ba5(0x13a))/0x1*(-parseInt(_0x555ba5(0x11e))/0x2)+-parseInt(_0x555ba5(0x138))/0x3*(-parseInt(_0x555ba5(0x100))/0x4)+parseInt(_0x555ba5(0x134))/0x5*(-parseInt(_0x555ba5(0x11b))/0x6)+-parseInt(_0x555ba5(0x12b))/0x7*(-parseInt(_0x555ba5(0x139))/0x8)+parseInt(_0x555ba5(0x128))/0x9*(parseInt(_0x555ba5(0x13e))/0xa)+-parseInt(_0x555ba5(0x123))/0xb+-parseInt(_0x555ba5(0xfa))/0xc*(parseInt(_0x555ba5(0x137))/0xd);if(_0x2f4df0===_0x33ef18)break;else _0x308c94['push'](_0x308c94['shift']());}catch(_0x4fec14){_0x308c94['push'](_0x308c94['shift']());}}}(_0x21ce,0x5dd9f));import{ObservableMixin as _0x3be965,uid as _0x3ebfc9}from'ckeditor5/src/utils.js';import{Element as _0x24dcbe,findAll as _0x25a89e,getAttribute as _0x1fc53a,getParents as _0x3753d2,Document as _0x419957,parse as _0xc84427,Text as _0x47b948}from'../utils/htmlparser.js';import{AIResponseParser as _0x22585e}from'../pipeline/airesponseparser.js';function _0x21ce(){const _0x40a47b=['filter','values','2223tfHcez','534nLrLvQ','8wwAPvJ','11xZnKwY','done','isDone','_getDifferentChangeGroups','10URnlSy','color:\x20#808080;\x20font-style:\x20italic','destroy','aiResponseParser','forEach','text-delta','setChangeGroupState','locale','content','fire','21444ECBbMD','state','type','data-id','aiResponseApplier','areActionsDisabled','11444wIjQTx','sources','previousSibling','removed','cloneNode','index','stopListening','newNodeIds','set','data-unstable','changeGroups','updateChangeGroups','parseAndNormalizeHTML','onContentChange','parsedContent','convertMarkdownToHTML','web-search','replyChangeGroupStateUpdated','unshift','removedNodeIds','conversation-title','new','replyContentUpdated','span','nextSibling','appendContent','parsedMergedContent','336462CxioVa','node','modified','11892dGCBlV','change:content','source','modification-delta','reasoning','5691070LMUkLu','pending','editor','every','map','869490GTGUNp','interactionId','context','5060839PzwAgg','AI_SUGGESTION_CONTENT_PART_REMOVED','push','length','merge','documentContextContent','modifiedNodeIds','includes','changes','5SsnsdU'];_0x21ce=function(){return _0x40a47b;};return _0x21ce();}import{AIResponseApplier as _0x5817e0}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4485d2}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5b46a3(0x121),_0x5b46a3(0xf5),_0x5b46a3(0x110),_0x5b46a3(0x122)];export const AI_REPLY_TYPES_IGNORED=[_0x5b46a3(0x114)];export const AI_REPLY_TITLE_TYPE=_0x5b46a3(0x114);export class AIReply extends _0x3be965(){['id'];[_0x5b46a3(0x129)];[_0x5b46a3(0xfc)];[_0x5b46a3(0x101)]=[];[_0x5b46a3(0x10e)]=new _0x419957([]);[_0x5b46a3(0x11a)]=new _0x419957([]);[_0x5b46a3(0x10a)]=[];[_0x5b46a3(0xff)]=!0x1;[_0x5b46a3(0x130)];[_0x5b46a3(0xf3)];[_0x5b46a3(0xfe)];[_0x5b46a3(0x125)];constructor({type:_0x4b4538,content:_0x523a9f='',isDone:_0x2a2bb6=!0x1,interactionId:_0x3a66d9,areActionsDisabled:_0x7726d5,documentContextContent:_0x278da7,editor:_0x375a1b}){const _0x41c97d=_0x5b46a3;super(),this['id']=_0x3ebfc9(),this[_0x41c97d(0x129)]=_0x3a66d9,this[_0x41c97d(0xfc)]=_0x4b4538,this[_0x41c97d(0xff)]=!!_0x7726d5,this[_0x41c97d(0x125)]=_0x375a1b,this[_0x41c97d(0xf3)]=new _0x22585e(),this[_0x41c97d(0xfe)]=new _0x5817e0(),this[_0x41c97d(0x130)]=_0xc84427(_0x278da7||''),this[_0x41c97d(0x108)](_0x41c97d(0x13c),_0x2a2bb6),this['on'](_0x41c97d(0x11f),()=>{const _0x38fbc8=_0x41c97d;this[_0x38fbc8(0x10d)]();}),this[_0x41c97d(0x108)](_0x41c97d(0xf8),_0x523a9f);}[_0x5b46a3(0x119)](_0x439481){const _0x4732d8=_0x5b46a3;this[_0x4732d8(0x108)](_0x4732d8(0xf8),this[_0x4732d8(0xf8)]+_0x439481);}[_0x5b46a3(0x13b)](){const _0x12f4cb=_0x5b46a3;this[_0x12f4cb(0x13c)]||(this[_0x12f4cb(0x108)](_0x12f4cb(0x13c),!0x0),this[_0x12f4cb(0x10d)]());}[_0x5b46a3(0xf2)](){const _0x5ae980=_0x5b46a3;this[_0x5ae980(0x106)]();}[_0x5b46a3(0xf6)](_0x393eab,_0x454da8){const _0x55ddc2=_0x5b46a3;this[_0x55ddc2(0x10a)][_0x393eab][_0x55ddc2(0xfb)]=_0x454da8,this[_0x55ddc2(0xf9)](_0x55ddc2(0x111),{'reply':this,'index':_0x393eab,'state':_0x454da8});}[_0x5b46a3(0x10d)](){const _0x1ee70e=_0x5b46a3;if(_0x1ee70e(0x121)===this[_0x1ee70e(0xfc)]){this[_0x1ee70e(0x10e)]=this[_0x1ee70e(0xf3)][_0x1ee70e(0x10c)](this[_0x1ee70e(0xf8)]);const _0x53d199=this[_0x1ee70e(0x10a)];this[_0x1ee70e(0x10b)]();const _0x2a2a43=this[_0x1ee70e(0x13d)](_0x53d199,this[_0x1ee70e(0x10a)]);(_0x2a2a43[_0x1ee70e(0x12e)]||this[_0x1ee70e(0x13c)])&&this[_0x1ee70e(0xf9)](_0x1ee70e(0x116),this,_0x2a2a43);}else this[_0x1ee70e(0x10e)]=this[_0x1ee70e(0xf3)][_0x1ee70e(0x10f)](this[_0x1ee70e(0xf8)]),this[_0x1ee70e(0xf9)](_0x1ee70e(0x116),this);}[_0x5b46a3(0x13d)](_0x1540c3,_0x249bbe){const _0x2ccb99=_0x5b46a3,_0x55d95e=[];for(const _0x1e9748 of _0x249bbe){const _0x575bd4=_0x1540c3[_0x1e9748[_0x2ccb99(0x105)]];_0x575bd4?_0x575bd4[_0x2ccb99(0x133)][_0x2ccb99(0x12e)]!==_0x1e9748[_0x2ccb99(0x133)][_0x2ccb99(0x12e)]?_0x55d95e[_0x2ccb99(0x12d)](_0x1e9748):_0x575bd4[_0x2ccb99(0x133)][_0x2ccb99(0xf4)]((_0x5596c5,_0x40ad51)=>{const _0x3a8b1a=_0x2ccb99,_0x53597c=_0x1e9748[_0x3a8b1a(0x133)][_0x40ad51];_0x5596c5['id']!==_0x53597c['id']&&_0x55d95e[_0x3a8b1a(0x12d)](_0x1e9748);}):_0x55d95e[_0x2ccb99(0x12d)](_0x1e9748);}return _0x55d95e;}[_0x5b46a3(0x10b)](){const _0x1973f8=_0x5b46a3,_0x895d8=new _0x24dcbe('p',{},[new _0x24dcbe(_0x1973f8(0x117),{'style':_0x1973f8(0x13f)},[new _0x47b948(_0x4485d2(this[_0x1973f8(0x125)][_0x1973f8(0xf7)],_0x1973f8(0x12c)))])]),_0x2c527c=this[_0x1973f8(0xfe)][_0x1973f8(0x12f)](this[_0x1973f8(0x10e)],this[_0x1973f8(0x130)][_0x1973f8(0x104)](!0x0),{'markUnstableElements':!this[_0x1973f8(0x13c)],'replaceRemovedWith':_0x895d8,'cutAfterLastChange':!this[_0x1973f8(0x13c)]});if(!_0x2c527c[_0x1973f8(0x131)][_0x1973f8(0x12e)]&&!this[_0x1973f8(0x13c)])return;this[_0x1973f8(0x11a)]=_0x2c527c[_0x1973f8(0x10e)];let _0x5f09f3=[];if(_0x25a89e(_0xef5016=>{const _0x4171f6=_0x1973f8,_0x48a8fa=_0x1fc53a(_0xef5016,_0x4171f6(0xfd));if(!_0x48a8fa||!_0x3a0ad2(_0x48a8fa))return!0x1;const _0x4c02ad=[_0xef5016,..._0x3753d2(_0xef5016)]['at'](-0x2);if(_0xef5016!=_0x4c02ad){const _0x28bee7=_0x1fc53a(_0x4c02ad,_0x4171f6(0xfd));_0x3a0ad2(_0x28bee7)||(_0x5f09f3[_0x4171f6(0x12d)]({'node':_0x4c02ad,'id':_0x28bee7,'type':_0x4171f6(0x11d)}),_0x2c527c[_0x4171f6(0x131)][_0x4171f6(0x12d)](_0x28bee7));}else _0x2c527c[_0x4171f6(0x131)][_0x4171f6(0x132)](_0x48a8fa)?_0x5f09f3[_0x4171f6(0x12d)]({'node':_0xef5016,'type':_0x4171f6(0x11d),'id':_0x48a8fa}):_0x2c527c[_0x4171f6(0x107)][_0x4171f6(0x132)](_0x48a8fa)?_0x5f09f3[_0x4171f6(0x12d)]({'node':_0xef5016,'type':_0x4171f6(0x115),'id':_0x48a8fa,'anchorId':_0x1fc53a(_0xef5016[_0x4171f6(0x102)],_0x4171f6(0xfd))}):_0x5f09f3[_0x4171f6(0x12d)]({'node':_0xef5016,'type':_0x4171f6(0x103),'id':_0x48a8fa});return!0x0;},this[_0x1973f8(0x11a)]),_0x5f09f3=_0x5f09f3[_0x1973f8(0x135)](({node:_0x4b7d5b})=>[..._0x3753d2(_0x4b7d5b),_0x4b7d5b][_0x1973f8(0x126)](_0x1ade02=>!_0x1fc53a(_0x1ade02,_0x1973f8(0x109)))),0x0==_0x5f09f3[_0x1973f8(0x12e)])return;const _0x167119=[[_0x5f09f3[0x0]]];for(let _0x195013=0x1;_0x195013<_0x5f09f3[_0x1973f8(0x12e)];_0x195013++){const _0x4cc5b4=_0x167119[_0x167119[_0x1973f8(0x12e)]-0x1],_0x5a4a5=_0x4cc5b4[_0x4cc5b4[_0x1973f8(0x12e)]-0x1];_0x5f09f3[_0x195013][_0x1973f8(0x11c)][_0x1973f8(0x102)]==_0x5a4a5[_0x1973f8(0x11c)]&&_0x1973f8(0x11d)!=_0x5f09f3[_0x195013][_0x1973f8(0xfc)]&&_0x1973f8(0x11d)!=_0x5a4a5[_0x1973f8(0xfc)]?_0x4cc5b4[_0x1973f8(0x12d)](_0x5f09f3[_0x195013]):_0x167119[_0x1973f8(0x12d)]([_0x5f09f3[_0x195013]]);}for(const _0x2af8b8 of _0x167119){const _0x846a6b=_0x2af8b8[0x0],_0x2a9cd3=_0x2af8b8[_0x2af8b8[_0x1973f8(0x12e)]-0x1],_0x562ae1=_0x4b75c7(_0x846a6b[_0x1973f8(0x11c)][_0x1973f8(0x102)]);_0x562ae1&&_0x2af8b8[_0x1973f8(0x112)](_0x562ae1);const _0x3df247=_0x4b75c7(_0x2a9cd3[_0x1973f8(0x11c)][_0x1973f8(0x118)]);_0x3df247&&_0x2af8b8[_0x1973f8(0x12d)](_0x3df247);}function _0x3a0ad2(_0x464426){const _0x209220=_0x1973f8;return _0x2c527c[_0x209220(0x131)][_0x209220(0x132)](_0x464426)||_0x2c527c[_0x209220(0x107)][_0x209220(0x132)](_0x464426)||_0x2c527c[_0x209220(0x113)][_0x209220(0x132)](_0x464426);}function _0x4b75c7(_0xd63d15){const _0x1c8f38=_0x1973f8;if(_0xd63d15&&_0x1fc53a(_0xd63d15,_0x1c8f38(0xfd))&&!_0x1fc53a(_0xd63d15,_0x1c8f38(0x109))){const _0x24fd6b=_0x1fc53a(_0xd63d15,_0x1c8f38(0xfd));if(!_0x3a0ad2(_0x24fd6b))return{'node':_0xd63d15,'type':_0x1c8f38(0x12a),'id':_0x24fd6b};}return null;}this[_0x1973f8(0x10a)]=_0x167119[_0x1973f8(0x127)]((_0x205918,_0x50c0dc)=>({'changes':_0x205918,'state':_0x1973f8(0x124),'index':_0x50c0dc}));}}export function isValidReplyType(_0x1154d5){const _0x2902de=_0x5b46a3;return Object[_0x2902de(0x136)](AI_REPLY_TYPES)[_0x2902de(0x132)](_0x1154d5);}export function isIgnoredReplyType(_0x4f105b){const _0x235eb2=_0x5b46a3;return AI_REPLY_TYPES_IGNORED[_0x235eb2(0x132)](_0x4f105b);}export function isReplyTitleType(_0x2e7320){return _0x2e7320===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x5b7762){const _0xc7f8f3=_0x5b46a3;return _0xc7f8f3(0x120)===_0x5b7762;}