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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  282. package/src/aitabs/aitabs.js +1 -1
  283. package/src/aitabs/aitabsmainview.js +1 -1
  284. package/src/aitabs/tabs/aitabsview.js +1 -1
  285. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  286. package/src/aitabs/tabs/tabpanelview.js +1 -1
  287. package/src/errors.js +1 -1
  288. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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));}}
23
+ const _0x1954c9=_0x1f0d;function _0x402f(){const _0x188709=['set','290457FITAeL','31144HycioT','ck-ai-chat-history__section','splice','324HzaPQR','isMatching','36VNXrVJ','bindTemplate','_itemsListView','find','itemsViews','title','1005852mZTglK','indexOf','length','689122NDNhsv','20658560APdASg','div','ck-ai-chat-history__section-title','removeItem','highlightText','4XuHCoy','items','addMany','filter','getItem','1671401pcaUol','isVisible','ck-hidden','4098425tiGCXZ','remove','setTemplate'];_0x402f=function(){return _0x188709;};return _0x402f();}(function(_0x5d3e29,_0x3b80f3){const _0x401663=_0x1f0d,_0x53d967=_0x5d3e29();while(!![]){try{const _0x427740=-parseInt(_0x401663(0x1da))/0x1+parseInt(_0x401663(0x1cc))/0x2+-parseInt(_0x401663(0x1c0))/0x3+parseInt(_0x401663(0x1d5))/0x4*(parseInt(_0x401663(0x1dd))/0x5)+-parseInt(_0x401663(0x1c6))/0x6*(parseInt(_0x401663(0x1cf))/0x7)+parseInt(_0x401663(0x1c1))/0x8*(-parseInt(_0x401663(0x1c4))/0x9)+parseInt(_0x401663(0x1d0))/0xa;if(_0x427740===_0x3b80f3)break;else _0x53d967['push'](_0x53d967['shift']());}catch(_0x36ffd5){_0x53d967['push'](_0x53d967['shift']());}}}(_0x402f,0xd924f));function _0x1f0d(_0x32f9b1,_0x10591a){const _0x402f2e=_0x402f();return _0x1f0d=function(_0x1f0d6d,_0x12ae8d){_0x1f0d6d=_0x1f0d6d-0x1bf;let _0x5a6707=_0x402f2e[_0x1f0d6d];return _0x5a6707;},_0x1f0d(_0x32f9b1,_0x10591a);}import{ListItemView as _0x10570c,View as _0x19dcad,ListView as _0x1ac39b}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x10570c{[_0x1954c9(0x1cb)];[_0x1954c9(0x1ca)];[_0x1954c9(0x1c8)];constructor(_0x260adc,{title:_0x3b1ce1,items:_0x589ede}){const _0x34bda0=_0x1954c9;super(_0x260adc);const _0x4b9303=this[_0x34bda0(0x1c7)];this[_0x34bda0(0x1bf)](_0x34bda0(0x1db),!0x0),this[_0x34bda0(0x1cb)]=_0x3b1ce1,this[_0x34bda0(0x1ca)]=_0x589ede;const _0x10af70=new _0x19dcad(_0x260adc);_0x10af70[_0x34bda0(0x1df)]({'tag':_0x34bda0(0x1d1),'attributes':{'class':[_0x34bda0(0x1d2)]},'children':[this[_0x34bda0(0x1cb)]]}),this[_0x34bda0(0x1c8)]=new _0x1ac39b(_0x260adc),this[_0x34bda0(0x1c8)][_0x34bda0(0x1d6)][_0x34bda0(0x1d7)](this[_0x34bda0(0x1ca)]),this[_0x34bda0(0x1df)]({'tag':'li','attributes':{'class':[_0x34bda0(0x1c2),_0x4b9303['if'](_0x34bda0(0x1db),_0x34bda0(0x1dc),_0x4fe191=>!_0x4fe191)]},'children':[_0x10af70,this[_0x34bda0(0x1c8)]]});}[_0x1954c9(0x1d8)](_0x3681dd){const _0x28e5ea=_0x1954c9,_0x19ce17=this[_0x28e5ea(0x1ca)][_0x28e5ea(0x1ce)];let _0x19df3a=0x0;for(const _0x1c4b25 of this[_0x28e5ea(0x1ca)]){if(_0x3681dd){const _0x4fe8f8=_0x1c4b25[_0x28e5ea(0x1c5)](_0x3681dd);_0x1c4b25[_0x28e5ea(0x1db)]=!!_0x4fe8f8,_0x1c4b25[_0x28e5ea(0x1d4)](_0x3681dd);}else _0x1c4b25[_0x28e5ea(0x1db)]=!0x0,_0x1c4b25[_0x28e5ea(0x1d4)](null);_0x1c4b25[_0x28e5ea(0x1db)]&&_0x19df3a++;}return this[_0x28e5ea(0x1db)]=_0x19df3a>0x0,{'resultsCount':_0x19df3a,'totalItemsCount':_0x19ce17};}[_0x1954c9(0x1d9)](_0x1274dc){const _0x3bd7df=_0x1954c9;return this[_0x3bd7df(0x1ca)][_0x3bd7df(0x1c9)](_0x5a9d79=>_0x5a9d79['id']===_0x1274dc);}[_0x1954c9(0x1d3)](_0x5f334e){const _0x399512=_0x1954c9,_0x3fa928=this[_0x399512(0x1ca)][_0x399512(0x1cd)](_0x5f334e);-0x1!==_0x3fa928&&(this[_0x399512(0x1ca)][_0x399512(0x1c3)](_0x3fa928,0x1),this[_0x399512(0x1c8)][_0x399512(0x1d6)][_0x399512(0x1de)](_0x5f334e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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};}}
23
+ function _0x32bf(_0x2e9be2,_0xaff9e1){const _0x57f1d9=_0x57f1();return _0x32bf=function(_0x32bf59,_0x2d9eae){_0x32bf59=_0x32bf59-0x1a2;let _0x597884=_0x57f1d9[_0x32bf59];return _0x597884;},_0x32bf(_0x2e9be2,_0xaff9e1);}const _0x3f6336=_0x32bf;(function(_0x2672b3,_0x2f8809){const _0x456ac1=_0x32bf,_0x41b50f=_0x2672b3();while(!![]){try{const _0x55a7f3=parseInt(_0x456ac1(0x1a2))/0x1*(parseInt(_0x456ac1(0x1a4))/0x2)+-parseInt(_0x456ac1(0x1ae))/0x3*(-parseInt(_0x456ac1(0x1a3))/0x4)+-parseInt(_0x456ac1(0x1a7))/0x5*(parseInt(_0x456ac1(0x1a6))/0x6)+-parseInt(_0x456ac1(0x1ad))/0x7+parseInt(_0x456ac1(0x1b0))/0x8+parseInt(_0x456ac1(0x1b2))/0x9*(parseInt(_0x456ac1(0x1b1))/0xa)+-parseInt(_0x456ac1(0x1a8))/0xb*(parseInt(_0x456ac1(0x1af))/0xc);if(_0x55a7f3===_0x2f8809)break;else _0x41b50f['push'](_0x41b50f['shift']());}catch(_0x1a6d52){_0x41b50f['push'](_0x41b50f['shift']());}}}(_0x57f1,0xbb2b2));import{ListView as _0x344ddd}from'ckeditor5/src/ui.js';function _0x57f1(){const _0x79a653=['1369008PSwKiL','filter','1TQJEdx','30696EXQezo','812036yZiYFV','sections','912rMtJej','7415olajXU','6941mufTXS','extendTemplate','ck-ai-chat-history__sections','addMany','items','6374984pGzXXE','135YWKzDd','360iPzNhX','8145920mJqeFj','10nIgyRH'];_0x57f1=function(){return _0x79a653;};return _0x57f1();}export class AIChatHistorySectionListView extends _0x344ddd{[_0x3f6336(0x1a5)];constructor(_0x2d7af3,_0x31b3ef){const _0x1ac9df=_0x3f6336;super(_0x2d7af3),this[_0x1ac9df(0x1a5)]=_0x31b3ef,this[_0x1ac9df(0x1ac)][_0x1ac9df(0x1ab)](this[_0x1ac9df(0x1a5)]),this[_0x1ac9df(0x1a9)]({'attributes':{'class':[_0x1ac9df(0x1aa)]}});}[_0x3f6336(0x1b3)](_0x34d5a8){const _0x337d76=_0x3f6336;let _0x1e76ef=0x0,_0x339e28=0x0;for(const _0x428d01 of this[_0x337d76(0x1a5)]){const {resultsCount:_0x2838d7,totalItemsCount:_0x45a0e7}=_0x428d01[_0x337d76(0x1b3)](_0x34d5a8);_0x1e76ef+=_0x2838d7,_0x339e28+=_0x45a0e7;}return{'resultsCount':_0x1e76ef,'totalItemsCount':_0x339e28};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}}
23
+ function _0x9070(_0x3ee975,_0x330f96){const _0x29c7f9=_0x29c7();return _0x9070=function(_0x907045,_0x287954){_0x907045=_0x907045-0x10d;let _0x238fa8=_0x29c7f9[_0x907045];return _0x238fa8;},_0x9070(_0x3ee975,_0x330f96);}const _0x32357c=_0x9070;(function(_0x392a4b,_0x25eb92){const _0x2573b5=_0x9070,_0x444ea5=_0x392a4b();while(!![]){try{const _0x25ea2a=-parseInt(_0x2573b5(0x146))/0x1+-parseInt(_0x2573b5(0x154))/0x2+parseInt(_0x2573b5(0x10f))/0x3+parseInt(_0x2573b5(0x124))/0x4*(parseInt(_0x2573b5(0x11f))/0x5)+parseInt(_0x2573b5(0x13c))/0x6+parseInt(_0x2573b5(0x141))/0x7+-parseInt(_0x2573b5(0x12a))/0x8;if(_0x25ea2a===_0x25eb92)break;else _0x444ea5['push'](_0x444ea5['shift']());}catch(_0x34c47d){_0x444ea5['push'](_0x444ea5['shift']());}}}(_0x29c7,0x81375));import{View as _0x54a589,SearchTextView as _0x3222d4,FormHeaderView as _0x86cf60,ButtonView as _0x3ea19e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1491d7,IconCancel as _0x521d25,IconPlus as _0xa30ac2}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13523e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x571185}from'./aichathistorylistview.js';function _0x29c7(){const _0xbae310=['_createSkeletonView','ck-rounded-corners','execute','ck-ai-chat-error','openChat','addMany','indexOf','ltr','isMaximized','445238JVqLGH','ck-ai-chat-history','_createListItemViews','search','resizeButton','ck-hidden','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','_updateViewVisibility','render','children','isSearchViewVisible','extendTemplate','splice','isVisible','ck-ai-chat-history__empty-message','errorMessage','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','1757721WLaSkg','add','change:hasItems','fieldView','isLoading','_refreshSearch','ck-reset_all','updateTitle','_createEmptyStateView','element','change:errorMessage','ck-ai-chat-history__content','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','ck-ai-header\x20ck-ai-header_history','length','15fdlblF','updateItemLoadingState','_createSearchView','remove','div','34564NXFGoj','setTemplate','items','fire','removeItem','queryView','168208DOHSAt','errorView','skeletonView','delegate','sections','updateItemTitle','aiHistory','getItem','sectionsView','locale','searchView','some','set','itemsViews','emptyView','value','removeHistoryItem','clear','2776188pQnBDJ','bind','ck-ai-chat-history__empty','isEmptyViewVisible','title','5071416FFaatH','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','1026102KWjkaR','hasItems','bindTemplate','ck-ai-chat-error__dismiss-button','push'];_0x29c7=function(){return _0xbae310;};return _0x29c7();}import{AIChatHistoryListItemView as _0x304c03}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2f820d}from'../aichathistoryui.js';import{AISkeletonView as _0x5818f2,SKELETON_DEFINITIONS as _0x1c3910}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e51d4}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c2f18}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x54a589{[_0x32357c(0x134)];[_0x32357c(0x12b)];[_0x32357c(0x12c)];[_0x32357c(0x138)];[_0x32357c(0x132)];[_0x32357c(0x158)];constructor(_0x437233,_0x467ecc){const _0x4ef331=_0x32357c;super(_0x437233),this[_0x4ef331(0x136)](_0x4ef331(0x147),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x113),!0x0),this[_0x4ef331(0x136)](_0x4ef331(0x164),''),this[_0x4ef331(0x136)](_0x4ef331(0x153),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x15f),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x13f),!0x1);const _0x520209=new _0x86cf60(_0x437233,{'label':_0x2c2f18(_0x437233,_0x4ef331(0x145)),'icon':_0x1491d7,'class':_0x4ef331(0x11d)});_0x467ecc&&(this[_0x4ef331(0x158)]=_0x4e51d4(_0x437233,this),_0x520209[_0x4ef331(0x15e)][_0x4ef331(0x110)](this[_0x4ef331(0x158)])),this[_0x4ef331(0x132)]=new _0x13523e(_0x437233,[]),this[_0x4ef331(0x132)][_0x4ef331(0x12d)](..._0x2f820d)['to'](this),this[_0x4ef331(0x12b)]=this[_0x4ef331(0x15a)](),this[_0x4ef331(0x12c)]=this[_0x4ef331(0x14b)](),this[_0x4ef331(0x138)]=this[_0x4ef331(0x117)](),this[_0x4ef331(0x134)]=this[_0x4ef331(0x121)](),this['on'](_0x4ef331(0x11c),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x111),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x119),()=>this[_0x4ef331(0x15c)]()),this[_0x4ef331(0x125)]({'tag':_0x4ef331(0x123),'attributes':{'class':['ck',_0x4ef331(0x115),_0x4ef331(0x155),_0x4ef331(0x14c)],'dir':_0x4ef331(0x152)},'children':[_0x520209,{'tag':_0x4ef331(0x123),'attributes':{'class':[_0x4ef331(0x11a)]},'children':[this[_0x4ef331(0x12c)],this[_0x4ef331(0x12b)],this[_0x4ef331(0x138)],this[_0x4ef331(0x134)]]}]});}[_0x32357c(0x15c)](){const _0x471638=_0x32357c;this[_0x471638(0x15f)]=!this[_0x471638(0x113)]&&this[_0x471638(0x147)]&&!this[_0x471638(0x164)],this[_0x471638(0x13f)]=!this[_0x471638(0x113)]&&!this[_0x471638(0x147)]&&!this[_0x471638(0x164)];}[_0x32357c(0x121)](){const _0x5792db=_0x32357c,_0x4effbd=new _0x3222d4(this[_0x5792db(0x133)],{'filteredView':this[_0x5792db(0x132)],'queryView':{'label':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x5b467c=>_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x11b),_0x5b467c),'secondary':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x144))}}}});return _0x4effbd['on'](_0x5792db(0x15d),()=>{const _0x29e76f=_0x5792db;this[_0x29e76f(0x134)][_0x29e76f(0x15e)][_0x29e76f(0x110)](this[_0x29e76f(0x12b)],0x1);}),_0x4effbd[_0x5792db(0x160)]({'attributes':{'class':[this[_0x5792db(0x148)]['if'](_0x5792db(0x15f),_0x5792db(0x159),_0x476a45=>!_0x476a45)]}}),_0x4effbd;}[_0x32357c(0x14b)](){const _0x124f24=_0x32357c,_0x27db4b=new _0x5818f2(this[_0x124f24(0x133)],_0x1c3910[_0x124f24(0x130)]);return _0x27db4b[_0x124f24(0x160)]({'attributes':{'class':[this[_0x124f24(0x148)]['if'](_0x124f24(0x113),_0x124f24(0x159),_0x25af8c=>!_0x25af8c)]}}),_0x27db4b;}[_0x32357c(0x15a)](){const _0x25bb01=_0x32357c,_0x4d0f00=new _0x54a589(this[_0x25bb01(0x133)]),_0x2a3762=new _0x3ea19e(this[_0x25bb01(0x133)]);return _0x2a3762[_0x25bb01(0x136)]({'withText':!0x1,'icon':_0x521d25,'class':_0x25bb01(0x149)}),_0x2a3762[_0x25bb01(0x13d)](_0x25bb01(0x162))['to'](this,_0x25bb01(0x147),_0x570d4f=>!!_0x570d4f),_0x2a3762['on'](_0x25bb01(0x14d),()=>{const _0x474213=_0x25bb01;this[_0x474213(0x164)]='';}),_0x4d0f00[_0x25bb01(0x125)]({'tag':_0x25bb01(0x123),'attributes':{'class':['ck',_0x25bb01(0x14e),this[_0x25bb01(0x148)]['if'](_0x25bb01(0x164),_0x25bb01(0x159),_0x55cf5d=>!_0x55cf5d)]},'children':[{'tag':'p','children':[{'text':this[_0x25bb01(0x148)]['to'](_0x25bb01(0x164))}]},_0x2a3762]}),_0x4d0f00;}[_0x32357c(0x117)](){const _0x4e0962=_0x32357c,_0x2d4b5a=new _0x3ea19e(this[_0x4e0962(0x133)]);_0x2d4b5a[_0x4e0962(0x136)]({'label':_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x15b)),'withText':!0x0,'icon':_0xa30ac2,'class':_0x4e0962(0x165)}),_0x2d4b5a['on'](_0x4e0962(0x14d),()=>{const _0x5de924=_0x4e0962;this[_0x5de924(0x127)](_0x5de924(0x14f));});const _0x2d9cc7=new _0x54a589(this[_0x4e0962(0x133)]);return _0x2d9cc7[_0x4e0962(0x125)]({'tag':_0x4e0962(0x123),'attributes':{'class':[_0x4e0962(0x13e),this[_0x4e0962(0x148)]['if'](_0x4e0962(0x13f),_0x4e0962(0x159),_0x1aa492=>!_0x1aa492)]},'children':[{'tag':'p','attributes':{'class':[_0x4e0962(0x163)]},'children':[_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x142))]},_0x2d4b5a]}),_0x2d9cc7;}[_0x32357c(0x156)](_0xea088b,_0x4049ce){const _0x7f5785=_0x32357c,_0x79c2f6=[];for(const _0x2279af of _0xea088b){const _0x3a918f=new _0x304c03(_0x4049ce,_0x2279af);_0x3a918f[_0x7f5785(0x12d)](..._0x2f820d)['to'](this),_0x79c2f6[_0x7f5785(0x14a)](_0x3a918f);}return _0x79c2f6;}[_0x32357c(0x10e)](_0x19dad9){const _0x16f455=_0x32357c,_0x14dd92=this[_0x16f455(0x133)]||'en',_0xce3e24=[];for(const _0x3404cc of _0x19dad9){const _0x4c71dc=this[_0x16f455(0x156)](_0x3404cc[_0x16f455(0x126)],_0x14dd92);_0xce3e24[_0x16f455(0x14a)](new _0x571185(_0x14dd92,{'title':_0x3404cc[_0x16f455(0x140)],'items':_0x4c71dc}));}this[_0x16f455(0x132)][_0x16f455(0x12e)]=_0xce3e24,this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x13b)](),this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x150)](_0xce3e24),this[_0x16f455(0x147)]=_0x19dad9[_0x16f455(0x135)](_0xcfe253=>_0xcfe253[_0x16f455(0x126)][_0x16f455(0x11e)]>0x0),this[_0x16f455(0x114)]();}[_0x32357c(0x13a)](_0xe8f0c1){const _0x3f6b70=_0x32357c;for(const _0x1ffee8 of this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)]){const _0x18a29c=_0x1ffee8[_0x3f6b70(0x131)](_0xe8f0c1);if(_0x18a29c){if(_0x1ffee8[_0x3f6b70(0x128)](_0x18a29c),0x0===_0x1ffee8[_0x3f6b70(0x137)][_0x3f6b70(0x11e)]){const _0x127efa=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x151)](_0x1ffee8);-0x1!==_0x127efa&&(this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x161)](_0x127efa,0x1),this[_0x3f6b70(0x132)][_0x3f6b70(0x126)][_0x3f6b70(0x122)](_0x1ffee8));}this[_0x3f6b70(0x147)]=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x11e)]>0x0,this[_0x3f6b70(0x114)]();break;}}}[_0x32357c(0x12f)](_0x2e50f1,_0xc5220e){const _0x4dec15=_0x32357c;for(const _0x58bad2 of this[_0x4dec15(0x132)][_0x4dec15(0x12e)]){const _0x2712d4=_0x58bad2[_0x4dec15(0x131)](_0x2e50f1);if(_0x2712d4){_0x2712d4[_0x4dec15(0x116)](_0xc5220e);break;}}}[_0x32357c(0x120)](_0x4d8c75,_0x451c39,_0xf3ab49){const _0x3da2dd=_0x32357c;for(const _0x56c297 of this[_0x3da2dd(0x132)][_0x3da2dd(0x12e)]){const _0x8ffde3=_0x56c297[_0x3da2dd(0x131)](_0x4d8c75);if(_0x8ffde3){_0x8ffde3[_0x3da2dd(0x143)](_0x451c39,_0xf3ab49);break;}}}[_0x32357c(0x114)](){const _0x20843e=_0x32357c;if(this[_0x20843e(0x147)]){const _0x44cb52=this[_0x20843e(0x134)][_0x20843e(0x129)][_0x20843e(0x112)]?.[_0x20843e(0x118)]?.[_0x20843e(0x139)]||'';this[_0x20843e(0x134)][_0x20843e(0x157)](_0x44cb52);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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});}}
23
+ const _0x193c25=_0x14cd;function _0x14cd(_0x12185f,_0x2ef1b0){const _0x51145d=_0x5114();return _0x14cd=function(_0x14cd2b,_0x109fb0){_0x14cd2b=_0x14cd2b-0x7f;let _0x4a3190=_0x51145d[_0x14cd2b];return _0x4a3190;},_0x14cd(_0x12185f,_0x2ef1b0);}(function(_0x7dcf12,_0x21d112){const _0x5b03fa=_0x14cd,_0x103ed7=_0x7dcf12();while(!![]){try{const _0x7269d=parseInt(_0x5b03fa(0xbb))/0x1*(parseInt(_0x5b03fa(0x106))/0x2)+-parseInt(_0x5b03fa(0x10e))/0x3+-parseInt(_0x5b03fa(0x84))/0x4+-parseInt(_0x5b03fa(0xca))/0x5*(parseInt(_0x5b03fa(0xc5))/0x6)+parseInt(_0x5b03fa(0x80))/0x7*(parseInt(_0x5b03fa(0xb3))/0x8)+parseInt(_0x5b03fa(0xa9))/0x9+parseInt(_0x5b03fa(0xf7))/0xa;if(_0x7269d===_0x21d112)break;else _0x103ed7['push'](_0x103ed7['shift']());}catch(_0x258c6d){_0x103ed7['push'](_0x103ed7['shift']());}}}(_0x5114,0xb7faf));import{createParser as _0x2079d3}from'eventsource-parser';import{ContextPlugin as _0x47e89f}from'ckeditor5/src/core.js';import{CKEditorError as _0x292ec4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a66a9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x4777e4){const _0x1e8fe8=_0x14cd;_0x4777e4[_0x1e8fe8(0xc4)]=_0x1e8fe8(0xd1),_0x4777e4[_0x1e8fe8(0xb5)]=_0x1e8fe8(0xed),_0x4777e4[_0x1e8fe8(0xeb)]=_0x1e8fe8(0xd3),_0x4777e4[_0x1e8fe8(0xb4)]=_0x1e8fe8(0x88),_0x4777e4[_0x1e8fe8(0xe3)]=_0x1e8fe8(0x96),_0x4777e4[_0x1e8fe8(0xbe)]=_0x1e8fe8(0x9c),_0x4777e4[_0x1e8fe8(0x105)]=_0x1e8fe8(0xcb),_0x4777e4[_0x1e8fe8(0x7f)]=_0x1e8fe8(0xe2);}(AIActionsNames||(AIActionsNames={}));function _0x5114(){const _0x55efa7=['/conversations?','parse','upsertCustomAIReviewRating','translate','MAKE_SHORTER','callSystemReview','signal','getReader','/documents/','/reviews/system/','fetchConversationMessages','/web-resources/','IMPROVE_WRITING','keys','fix-grammar','ai.serviceUrl','positiveCount','queryAssistant','Content-Type','context','fetchConversation','upsertCustomAIActionRating','/reviews/custom/calls/','/actions/system/','10377210IHVXHg','_handleError','pluginName','_getStreamReader','catch','AI_MODEL_DESCRIPTION_','text','reset','/calls','file','updateConversation','/models/1','_sendApiRequest','then','MAKE_TONE_FORMAL','2MancGe','startConversation','json','PATCH','deleteWebResource','upsertAIActionRating','search','GET','3607854AmNCKI','items','TRANSLATE','7805IOyQZF','length','ai-request-aborted','isPremiumPlugin','2308444zmgpaX','upsertAIReviewRating','CloudServices','application/json','make-longer','/calls/','/messages/','deleteFile','fetchConversations','request','status','POST','feed','locale','/conversations','statusText','fetchDocument','init','make-shorter','read','/reviews/custom/calls','decode','/messages','uploadDocument','make-tone-casual','plugins','excludeEmpty','stringify','callCustomReview','map','token','100','executeAction','toUpperCase','append','isOfficialPlugin','/actions/custom/calls/','13147524KDSopQ','limit','define','/documents','config','/files','/web-resources','true','push','data','784xOOFuu','MAKE_LONGER','FIX_GRAMMAR','group','uploadUrl','getModels','/conversations/','ai-request-failed','328513UoBmUh','value','ai-missing-token','MAKE_TONE_CASUAL','/files/','_apiUrl','/ratings','get','upsertAIChatRating','CONTINUE','12WCYlxY','requires','https://ai.cke-cs.com/v1','AbortError','AIConnector','1007570TjIwMU','make-tone-formal','uploadFile','name','abortController','_decoder','_token','continue','body','improve-writing','attributes','toString','PUT','executeCustomAction','DELETE','deleteDocument','/actions/custom/calls','deleteConversation','releaseLock','Bearer\x20','totalCount'];_0x5114=function(){return _0x55efa7;};return _0x5114();}export class AIConnector extends _0x47e89f{[_0x193c25(0xc0)];[_0x193c25(0xd0)];[_0x193c25(0xcf)];static get[_0x193c25(0xc6)](){const _0x2ba6f2=_0x193c25;return[_0x2ba6f2(0x86)];}static get[_0x193c25(0xf9)](){const _0x47568a=_0x193c25;return _0x47568a(0xc9);}static get[_0x193c25(0xa7)](){return!0x0;}static get[_0x193c25(0x83)](){return!0x0;}constructor(_0x49a388){const _0x577fc2=_0x193c25;super(_0x49a388),this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xab)](_0x577fc2(0xee),_0x577fc2(0xc7)),this[_0x577fc2(0xc0)]=this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xc2)](_0x577fc2(0xee)),this[_0x577fc2(0xd0)]=null,this[_0x577fc2(0xcf)]=new TextDecoder();}[_0x193c25(0x95)](){const _0x41e5db=_0x193c25,_0x2e41af=this[_0x41e5db(0xf2)][_0x41e5db(0x9d)][_0x41e5db(0xc2)](_0x41e5db(0x86));if(!_0x2e41af[_0x41e5db(0xa2)])throw new _0x292ec4(_0x41e5db(0xbd),this);this[_0x41e5db(0xd0)]=_0x2e41af[_0x41e5db(0xa2)];}[_0x193c25(0x107)](_0x3339b9,_0x1993f9){const _0x3b6a86=_0x193c25,_0x2bbd1b=this[_0x3b6a86(0x103)](_0x3b6a86(0x92),_0x3b6a86(0x8f),{'id':_0x3339b9,'group':_0x1993f9});return{'getConversation':async()=>(await _0x2bbd1b[_0x3b6a86(0x8d)])[_0x3b6a86(0x108)](),'abortController':_0x2bbd1b[_0x3b6a86(0xce)]};}[_0x193c25(0xf0)]({message:_0x185843,conversationId:_0x329a18,parts:_0x501492,capabilities:_0x5cd838,model:_0x27c964,quickActionData:_0x15f25c}){const _0x106ccc=_0x193c25,_0x37ab3d={..._0x15f25c&&{'quickActionData':_0x15f25c}},_0x1de2e8={'prompt':_0x185843,'content':_0x501492,'model':_0x27c964,..._0x5cd838&&{'capabilities':_0x5cd838},...Object[_0x106ccc(0xec)](_0x37ab3d)[_0x106ccc(0x81)]>0x0&&{'attributes':_0x37ab3d}},_0x3b845b=this[_0x106ccc(0x103)](_0x106ccc(0xb9)+_0x329a18+_0x106ccc(0x9a),_0x106ccc(0x8f),_0x1de2e8);return{'getStream':async()=>{const _0x1fa4af=_0x106ccc,_0xdd1f56=(await _0x3b845b[_0x1fa4af(0x8d)])[_0x1fa4af(0xd2)];return this[_0x1fa4af(0xfa)](_0xdd1f56);},'abortController':_0x3b845b[_0x106ccc(0xce)]};}[_0x193c25(0xd7)]({content:_0x41810e,message:_0x2ee402,model:_0x51c71d,outputFormat:_0x47f842}){const _0x1638dd=_0x193c25,_0x554312={'content':[{'type':_0x1638dd(0xfd),'content':_0x41810e}],'prompt':_0x2ee402,'model':_0x51c71d,'outputFormat':_0x47f842},_0x6da509=this[_0x1638dd(0x103)](_0x1638dd(0xda),_0x1638dd(0x8f),_0x554312);return{'getStream':async()=>{const _0x4a1765=_0x1638dd,_0x4b6709=(await _0x6da509[_0x4a1765(0x8d)])[_0x4a1765(0xd2)];return this[_0x4a1765(0xfa)](_0x4b6709);},'abortController':_0x6da509[_0x1638dd(0xce)]};}[_0x193c25(0xa4)]({actionName:_0x4b76f5,content:_0x3ea0bf,args:_0x488135}){const _0x1a885d=_0x193c25,_0x5990c1={'content':[{'type':_0x1a885d(0xfd),'content':_0x3ea0bf}],'args':_0x488135},_0x16fe0d=this[_0x1a885d(0x103)](_0x1a885d(0xf6)+_0x4b76f5+_0x1a885d(0xff),_0x1a885d(0x8f),_0x5990c1);return{'getStream':async()=>{const _0x54b076=_0x1a885d,_0x3c70cd=(await _0x16fe0d[_0x54b076(0x8d)])[_0x54b076(0xd2)];return this[_0x54b076(0xfa)](_0x3c70cd);},'abortController':_0x16fe0d[_0x1a885d(0xce)]};}[_0x193c25(0xcc)](_0x1590bb,_0x53d980,_0xf3bac0){const _0x46d0de=_0x193c25,_0x3c1f5a=new FormData();_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0x100),_0x53d980,_0x53d980[_0x46d0de(0xcd)]),_0xf3bac0&&_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0xd4),JSON[_0x46d0de(0x9f)](_0xf3bac0));const _0x1758ff=this[_0x46d0de(0x103)](_0x46d0de(0xb9)+_0x1590bb+_0x46d0de(0xae),_0x46d0de(0x8f),_0x3c1f5a);return{'getId':async()=>(await _0x1758ff[_0x46d0de(0x8d)])[_0x46d0de(0x108)](),'abortController':_0x1758ff[_0x46d0de(0xce)]};}[_0x193c25(0x94)](_0x28a399,_0x22cbb2){const _0x7a4069=_0x193c25,_0x5e53e7=this[_0x7a4069(0x103)](_0x7a4069(0xb9)+_0x28a399+_0x7a4069(0xe7)+_0x22cbb2,_0x7a4069(0x10d));return{'getDocument':async()=>(await _0x5e53e7[_0x7a4069(0x8d)])[_0x7a4069(0x108)](),'abortController':_0x5e53e7[_0x7a4069(0xce)]};}[_0x193c25(0x9b)](_0x43c2ff,_0x325f44,_0x5ee7c3){const _0x3e8f46=_0x193c25,_0x366fcf={'content':_0x325f44};_0x5ee7c3&&(_0x366fcf[_0x3e8f46(0xd4)]=_0x5ee7c3);const _0x20dc04=this[_0x3e8f46(0x103)](_0x3e8f46(0xb9)+_0x43c2ff+_0x3e8f46(0xac),_0x3e8f46(0x8f),_0x366fcf);return{'getId':async()=>(await _0x20dc04[_0x3e8f46(0x8d)])[_0x3e8f46(0x108)](),'abortController':_0x20dc04[_0x3e8f46(0xce)]};}[_0x193c25(0x8c)](_0xc2fa20,_0x313ee2){const _0x419cd9=_0x193c25,_0x37a080=new URLSearchParams();_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x9e),_0x419cd9(0xb0)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xaa),_0x419cd9(0xa3)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xb6),_0xc2fa20),_0x313ee2&&_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x10c),_0x313ee2);const _0x2f81ab=this[_0x419cd9(0x103)](_0x419cd9(0xdf)+_0x37a080[_0x419cd9(0xd5)](),_0x419cd9(0x10d));return{'getConversations':async()=>{const _0x1e474d=_0x419cd9,_0x4274e3=await _0x2f81ab[_0x1e474d(0x8d)];return(await _0x4274e3[_0x1e474d(0x108)]())[_0x1e474d(0x10f)];},'abortController':_0x2f81ab[_0x419cd9(0xce)]};}[_0x193c25(0xdb)](_0x56a789){const _0x58280a=_0x193c25,_0x51ca4d=this[_0x58280a(0x103)](_0x58280a(0xb9)+_0x56a789,_0x58280a(0xd8));return{'execute':async()=>{const _0x1f42a6=_0x58280a;await _0x51ca4d[_0x1f42a6(0x8d)];},'abortController':_0x51ca4d[_0x58280a(0xce)]};}[_0x193c25(0x101)](_0x30c1e3,_0x12625e){const _0x244049=_0x193c25,_0x27ea74=this[_0x244049(0x103)](_0x244049(0xb9)+_0x30c1e3,_0x244049(0x109),_0x12625e);return{'getResult':async()=>(await _0x27ea74[_0x244049(0x8d)],_0x12625e),'abortController':_0x27ea74[_0x244049(0xce)]};}[_0x193c25(0xf3)](_0x2b3d00){const _0x36348b=_0x193c25,_0x11c8d8=this[_0x36348b(0x103)](_0x36348b(0xb9)+_0x2b3d00,_0x36348b(0x10d));return{'getConversation':async()=>(await _0x11c8d8[_0x36348b(0x8d)])[_0x36348b(0x108)](),'abortController':_0x11c8d8[_0x36348b(0xce)]};}[_0x193c25(0xe9)](_0x5dd926){const _0x1d7f38=_0x193c25,_0x12791f=this[_0x1d7f38(0x103)](_0x1d7f38(0xb9)+_0x5dd926+_0x1d7f38(0x9a),_0x1d7f38(0x10d));return{'getMessages':async()=>{const _0x14475f=_0x1d7f38,_0x57f463=await _0x12791f[_0x14475f(0x8d)];return(await _0x57f463[_0x14475f(0x108)]())[_0x14475f(0x10f)];},'abortController':_0x12791f[_0x1d7f38(0xce)]};}[_0x193c25(0xb7)](_0x4a7721,_0xa6cb10,_0x43d9b6){const _0x418680=_0x193c25,_0x44c33b=this[_0x418680(0x103)](_0x418680(0xb9)+_0x4a7721+_0x418680(0xaf),_0x418680(0x8f),{'url':_0xa6cb10,'attributes':_0x43d9b6});return{'getId':async()=>(await _0x44c33b[_0x418680(0x8d)])[_0x418680(0x108)](),'abortController':_0x44c33b[_0x418680(0xce)]};}[_0x193c25(0xb8)](){const _0x12ce4d=_0x193c25,_0x180f5d=this[_0x12ce4d(0x103)](_0x12ce4d(0x102),_0x12ce4d(0x10d));return{'list':async()=>{const _0xddcbe2=_0x12ce4d,_0x3ce218=await(await _0x180f5d[_0xddcbe2(0x8d)])[_0xddcbe2(0x108)](),_0x330d65=_0x3ce218[_0xddcbe2(0x10f)][_0xddcbe2(0xa1)](_0x50e706=>({..._0x50e706,'description':_0x1a66a9(this[_0xddcbe2(0xf2)][_0xddcbe2(0x91)],_0xddcbe2(0xfc)+_0x50e706['id'][_0xddcbe2(0xa5)]())}));return{..._0x3ce218,'items':_0x330d65};},'abortController':_0x180f5d[_0x12ce4d(0xce)]};}[_0x193c25(0x8b)](_0x4d783e,_0x348a08){const _0x1df7b7=_0x193c25,_0x266eac=this[_0x1df7b7(0x103)](_0x1df7b7(0xb9)+_0x4d783e+_0x1df7b7(0xbf)+_0x348a08,_0x1df7b7(0xd8));return{'execute':async()=>{const _0x31caa6=_0x1df7b7;await _0x266eac[_0x31caa6(0x8d)];},'abortController':_0x266eac[_0x1df7b7(0xce)]};}[_0x193c25(0xd9)](_0x58f85c,_0x93e021){const _0x239115=_0x193c25,_0x58f2ee=this[_0x239115(0x103)](_0x239115(0xb9)+_0x58f85c+_0x239115(0xe7)+_0x93e021,_0x239115(0xd8));return{'execute':async()=>{const _0x4c938f=_0x239115;await _0x58f2ee[_0x4c938f(0x8d)];},'abortController':_0x58f2ee[_0x239115(0xce)]};}[_0x193c25(0x10a)](_0x1eea38,_0x3e0e06){const _0x2f2351=_0x193c25,_0x1f8038=this[_0x2f2351(0x103)](_0x2f2351(0xb9)+_0x1eea38+_0x2f2351(0xea)+_0x3e0e06,_0x2f2351(0xd8));return{'execute':async()=>{const _0x2ecd3b=_0x2f2351;await _0x1f8038[_0x2ecd3b(0x8d)];},'abortController':_0x1f8038[_0x2f2351(0xce)]};}[_0x193c25(0xe4)]({reviewName:_0x22fc59,content:_0x2e2e22,args:_0x20a996}){const _0x5cb27f=_0x193c25,_0x3ea5c2=this[_0x5cb27f(0x103)](_0x5cb27f(0xe8)+_0x22fc59+_0x5cb27f(0xff),_0x5cb27f(0x8f),{'content':[{'type':_0x5cb27f(0xfd),'content':_0x2e2e22}],'args':_0x20a996});return{'getStream':async()=>{const _0x60c8b3=_0x5cb27f,_0x56c35b=(await _0x3ea5c2[_0x60c8b3(0x8d)])[_0x60c8b3(0xd2)];return this[_0x60c8b3(0xfa)](_0x56c35b);},'abortController':_0x3ea5c2[_0x5cb27f(0xce)]};}[_0x193c25(0xa0)]({content:_0x45bae7,prompt:_0x14a8a3,model:_0x53c5ec}){const _0x5ecc94=_0x193c25,_0x3c53bb=this[_0x5ecc94(0x103)](_0x5ecc94(0x98),_0x5ecc94(0x8f),{'content':[{'type':_0x5ecc94(0xfd),'content':_0x45bae7}],'prompt':_0x14a8a3,'model':_0x53c5ec});return{'getStream':async()=>{const _0x17fcf0=_0x5ecc94,_0xe130ae=(await _0x3c53bb[_0x17fcf0(0x8d)])[_0x17fcf0(0xd2)];return this[_0x17fcf0(0xfa)](_0xe130ae);},'abortController':_0x3c53bb[_0x5ecc94(0xce)]};}[_0x193c25(0xc3)](_0x5f0e9a,_0x5822fc,_0x28af47){const _0x369d79=_0x193c25,_0x3798fc=this[_0x369d79(0x103)](_0x369d79(0xb9)+_0x5f0e9a+_0x369d79(0x8a)+_0x5822fc+_0x369d79(0xc1),_0x369d79(0xd6),{'positiveCount':_0x28af47[_0x369d79(0xef)],'totalCount':_0x28af47[_0x369d79(0xde)]});return{'execute':async()=>{const _0xef49fb=_0x369d79;await _0x3798fc[_0xef49fb(0x8d)];},'abortController':_0x3798fc[_0x369d79(0xce)]};}[_0x193c25(0x10b)](_0x2b3cea,_0x549fde,_0xd218a4){const _0xd9ba07=_0x193c25,_0x3c2ea1=this[_0xd9ba07(0x103)](_0xd9ba07(0xf6)+_0x2b3cea+_0xd9ba07(0x89)+_0x549fde+_0xd9ba07(0xc1),_0xd9ba07(0xd6),{'positiveCount':_0xd218a4[_0xd9ba07(0xef)],'totalCount':_0xd218a4[_0xd9ba07(0xde)]});return{'execute':async()=>{const _0x2d3644=_0xd9ba07;await _0x3c2ea1[_0x2d3644(0x8d)];},'abortController':_0x3c2ea1[_0xd9ba07(0xce)]};}[_0x193c25(0xf4)](_0x37b5af,_0x412bb8){const _0x3dd48b=_0x193c25,_0x35121c=this[_0x3dd48b(0x103)](_0x3dd48b(0xa8)+_0x37b5af+_0x3dd48b(0xc1),_0x3dd48b(0xd6),{'positiveCount':_0x412bb8[_0x3dd48b(0xef)],'totalCount':_0x412bb8[_0x3dd48b(0xde)]});return{'execute':async()=>{const _0x10e6fc=_0x3dd48b;await _0x35121c[_0x10e6fc(0x8d)];},'abortController':_0x35121c[_0x3dd48b(0xce)]};}[_0x193c25(0x85)](_0x5088a5,_0x2437dc,_0x650f4e,_0x45da92){const _0x24930f=_0x193c25,_0x27f00d=this[_0x24930f(0x103)](_0x24930f(0xe8)+_0x5088a5+_0x24930f(0x89)+_0x2437dc+_0x24930f(0xc1),_0x24930f(0xd6),{'positiveCount':_0x650f4e[_0x24930f(0xef)],'totalCount':_0x650f4e[_0x24930f(0xde)],'dataId':_0x45da92});return{'execute':async()=>{const _0x475408=_0x24930f;await _0x27f00d[_0x475408(0x8d)];},'abortController':_0x27f00d[_0x24930f(0xce)]};}[_0x193c25(0xe1)](_0x1d8571,_0xa42d47,_0x54994b){const _0x29d5de=_0x193c25,_0x92d000=this[_0x29d5de(0x103)](_0x29d5de(0xf5)+_0x1d8571+_0x29d5de(0xc1),_0x29d5de(0xd6),{'positiveCount':_0xa42d47[_0x29d5de(0xef)],'totalCount':_0xa42d47[_0x29d5de(0xde)],'dataId':_0x54994b});return{'execute':async()=>{const _0x134650=_0x29d5de;await _0x92d000[_0x134650(0x8d)];},'abortController':_0x92d000[_0x29d5de(0xce)]};}[_0x193c25(0x103)](_0x216527,_0x2bea80,_0x4dfc39){const _0x49e7bb=_0x193c25,_0x5ca384=new AbortController(),_0x552e51=_0x4dfc39 instanceof FormData,_0x408692={'Authorization':_0x49e7bb(0xdd)+this[_0x49e7bb(0xd0)]?.[_0x49e7bb(0xbc)]};_0x4dfc39&&!_0x552e51&&(_0x408692[_0x49e7bb(0xf1)]=_0x49e7bb(0x87));const _0x23007a={'method':_0x2bea80,'headers':_0x408692,'signal':_0x5ca384[_0x49e7bb(0xe5)]};return _0x4dfc39&&(_0x23007a[_0x49e7bb(0xd2)]=_0x552e51?_0x4dfc39:JSON[_0x49e7bb(0x9f)](_0x4dfc39)),{'request':fetch(''+this[_0x49e7bb(0xc0)]+_0x216527,_0x23007a)[_0x49e7bb(0xfb)](_0x1693d3=>{const _0x3b38f2=_0x49e7bb;this[_0x3b38f2(0xf8)](_0x1693d3);})[_0x49e7bb(0x104)](_0x9c99f1=>{const _0x22ea6d=_0x49e7bb;if(!_0x9c99f1['ok'])throw new _0x292ec4(_0x22ea6d(0xba),this,{'url':this[_0x22ea6d(0xc0)],'path':_0x216527,'method':_0x2bea80,'body':_0x4dfc39,'status':(_0x9c99f1||{})[_0x22ea6d(0x8e)],'statusText':(_0x9c99f1||{})[_0x22ea6d(0x93)]});return _0x9c99f1;}),'abortController':_0x5ca384};}async*[_0x193c25(0xfa)](_0x3fea12){const _0x1968b7=_0x193c25,_0x4bd7f9=[],_0x307bd=_0x3fea12[_0x1968b7(0xe6)](),_0xbabd1a=_0x2079d3({'onError':_0x1b772e=>{const _0x3e917d=_0x1968b7;this[_0x3e917d(0xf8)](_0x1b772e);},'onEvent':_0x1a0d19=>{const _0x3ab9e1=_0x1968b7;_0x1a0d19[_0x3ab9e1(0xb2)]=JSON[_0x3ab9e1(0xe0)](_0x1a0d19[_0x3ab9e1(0xb2)]),_0x4bd7f9[_0x3ab9e1(0xb1)](_0x1a0d19);}});try{let _0x5f2640=!0x1;for(;!_0x5f2640;){const {done:_0x294766,value:_0x19390b}=await _0x307bd[_0x1968b7(0x97)]();_0x294766&&(_0x5f2640=!0x0),_0xbabd1a[_0x1968b7(0x90)](this[_0x1968b7(0xcf)][_0x1968b7(0x99)](_0x19390b,{'stream':!0x0})),yield*_0x4bd7f9,_0x4bd7f9[_0x1968b7(0x81)]=0x0;}}catch(_0x18e762){this[_0x1968b7(0xf8)](_0x18e762);}finally{_0x307bd[_0x1968b7(0xdc)](),_0xbabd1a[_0x1968b7(0xfe)]();}}[_0x193c25(0xf8)](_0x484a9f){const _0x1acc24=_0x193c25;if(_0x484a9f instanceof _0x292ec4)throw _0x484a9f;if(_0x484a9f instanceof Error&&_0x1acc24(0xc8)===_0x484a9f[_0x1acc24(0xcd)])throw new _0x292ec4(_0x1acc24(0x82),this,{'originalError':_0x484a9f});throw new _0x292ec4(_0x1acc24(0xba),this,{'originalError':_0x484a9f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x1a8fdf=_0x3633;function _0x3633(_0xe33b82,_0x174d71){const _0x11c02c=_0x11c0();return _0x3633=function(_0x3633c3,_0x2ceead){_0x3633c3=_0x3633c3-0x7b;let _0x1f6a2c=_0x11c02c[_0x3633c3];return _0x1f6a2c;},_0x3633(_0xe33b82,_0x174d71);}(function(_0x1b57f2,_0x20e367){const _0x4e09fa=_0x3633,_0x49261a=_0x1b57f2();while(!![]){try{const _0xdd967c=-parseInt(_0x4e09fa(0xc5))/0x1*(-parseInt(_0x4e09fa(0x8d))/0x2)+parseInt(_0x4e09fa(0x97))/0x3*(parseInt(_0x4e09fa(0xc6))/0x4)+-parseInt(_0x4e09fa(0x81))/0x5+-parseInt(_0x4e09fa(0xb2))/0x6*(-parseInt(_0x4e09fa(0xbd))/0x7)+parseInt(_0x4e09fa(0xb5))/0x8+-parseInt(_0x4e09fa(0xb4))/0x9+-parseInt(_0x4e09fa(0xc7))/0xa*(parseInt(_0x4e09fa(0xd6))/0xb);if(_0xdd967c===_0x20e367)break;else _0x49261a['push'](_0x49261a['shift']());}catch(_0x364bec){_0x49261a['push'](_0x49261a['shift']());}}}(_0x11c0,0x1994c));import{ViewDowncastWriter as _0x441827}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x40b0f0,Editor as _0x2d8962}from'ckeditor5/src/core.js';import{uid as _0x2fb2bb}from'ckeditor5/src/utils.js';function _0x11c0(){const _0x1a1645=['_sessionId','has','trim','sessionId','12cwQKlR','getWalker','774UqTRNS','411296PHPNIA','_integrateEditor','add','getMarkersGroup','ready','push','editing','change','496965ShegIq','_nextDataId','isOfficialPlugin','isBefore','$textProxy','getSelection','editingDowncast','context','608ORgpar','79708TKUQit','10uIzqvj','dataDowncast','containerElement','join','toView',':end></','showFakeVisualSelection','isContent','start','markerToElement','RealTimeCollaborationClient','length','sort','get','toData','2066449vhobbE','getSelectionText',':start></','selection','substring','emptyElement','_getMarkersInDocumentOrder','model','editors','getChildren',':start>','modelToViewWithIds','pluginName','fromCharCode','markerToHighlight','afterInit','name','isAtEnd','plugins','version','data','301150pKYmXO','conversion','floor','createRange','listenTo','isOpening','processor','_setDataIdsOnChildren','isPremiumPlugin','convertAiChatSelectionMarker','ai-selection','ck-fake-ai-selection','66IPTAQZ',':end>','createUIElement','random','from','_displayedFakeSelectionId','element','addMarker','view','createRangeIn','21JSOpBZ','document','getStart','getLastMatchingPosition','setAttribute','end','getSelectedContent','removeAllRanges','hideFakeVisualSelection','for','getRoot','markers','isAfter','indexOf','_displayedFakeSelectionLocked','ai-selection:','ck-ai-assistant-ui_theme','schema','removeMarker','AIEditing','data-id','getDocumentData','markerName'];_0x11c0=function(){return _0x1a1645;};return _0x11c0();}import{getEditorFromContext as _0x568ca2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1a8fdf(0x8b);export class AIEditing extends _0x40b0f0{[_0x1a8fdf(0x92)]=null;[_0x1a8fdf(0xa5)]=!0x1;[_0x1a8fdf(0xae)];static get[_0x1a8fdf(0xe2)](){const _0x4ed4ef=_0x1a8fdf;return _0x4ed4ef(0xaa);}static get[_0x1a8fdf(0xbf)](){return!0x0;}static get[_0x1a8fdf(0x89)](){return!0x0;}get[_0x1a8fdf(0xb1)](){const _0x535534=_0x1a8fdf;if(!this[_0x535534(0xae)]){const _0x466511=_0x568ca2(this[_0x535534(0xc4)]),_0x13876f=_0x466511[_0x535534(0x7e)][_0x535534(0xaf)](_0x535534(0xd1))&&_0x466511[_0x535534(0x7e)][_0x535534(0xd4)](_0x535534(0xd1))[_0x535534(0xb1)];this[_0x535534(0xae)]=_0x13876f||_0x2fb2bb();}return this[_0x535534(0xae)];}[_0x1a8fdf(0xac)](){const _0x5a039d=_0x1a8fdf,_0x387709=_0x568ca2(this[_0x5a039d(0xc4)]),_0xb781cb=_0x387709[_0x5a039d(0xdd)],_0x256834=_0x387709[_0x5a039d(0x80)][_0x5a039d(0xcb)](_0xb781cb[_0x5a039d(0x98)][_0x5a039d(0xa1)](),{'convertAiChatSelectionMarker':!0x0}),_0xc66112=new _0x441827(_0x387709[_0x5a039d(0xbb)][_0x5a039d(0x95)][_0x5a039d(0x98)]);this[_0x5a039d(0x88)](_0x256834,_0xc66112);let _0x1a3f6e=_0x387709[_0x5a039d(0x80)][_0x5a039d(0x87)][_0x5a039d(0xd5)](_0x256834);const _0x3c23c4=this[_0x5a039d(0xdc)](),_0x3e8539=[];for(const _0x1dab5f of _0x3c23c4){const _0x5b2cf0='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xd8)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xe0),_0x3347ea=_0x1a3f6e[_0x5a039d(0xa4)](_0x5b2cf0);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x3347ea)+_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea+_0x5b2cf0[_0x5a039d(0xd2)]);const _0x14f3ab='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xcc)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0x8e),_0x1c3be4=_0x1a3f6e[_0x5a039d(0xa4)](_0x14f3ab);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x1c3be4)+_0x1a3f6e[_0x5a039d(0xda)](_0x1c3be4+_0x14f3ab[_0x5a039d(0xd2)]),_0x3e8539[_0x5a039d(0xba)]({'markerName':_0x1dab5f[_0x5a039d(0x7c)],'start':_0x3347ea,'end':_0x1c3be4,'htmlFragment':_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea,_0x1c3be4)});}return{'content':_0x1a3f6e,'version':_0x387709[_0x5a039d(0xdd)][_0x5a039d(0x98)][_0x5a039d(0x7f)],'sessionId':this[_0x5a039d(0xb1)],'selections':_0x3e8539};}async[_0x1a8fdf(0x7b)](){const _0xae4481=_0x1a8fdf;this[_0xae4481(0xc4)]instanceof _0x2d8962?this[_0xae4481(0xb6)](this[_0xae4481(0xc4)]):this[_0xae4481(0x85)](this[_0xae4481(0xc4)][_0xae4481(0xde)],_0xae4481(0xb7),(_0x9aacbe,_0x1c9379)=>{const _0x1bc735=_0xae4481;_0x1c9379['on'](_0x1bc735(0xb9),()=>{const _0x19afa9=_0x1bc735;this[_0x19afa9(0xb6)](_0x1c9379);});});}[_0x1a8fdf(0xb6)](_0x66635f){const _0x7f9ed1=_0x1a8fdf;_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc3))[_0x7f9ed1(0xe4)]({'model':_0x7f9ed1(0x8b),'view':{'classes':[_0x7f9ed1(0x8c),_0x7f9ed1(0xa7)],'priority':0xc}}),_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc8))[_0x7f9ed1(0xd0)]({'model':_0x7f9ed1(0x8b),'view':(_0x3797a3,{writer:_0x5b23de,options:_0x565af3})=>_0x565af3[_0x7f9ed1(0x8a)]?_0x5b23de[_0x7f9ed1(0x8f)](_0x3797a3[_0x7f9ed1(0xad)]+':'+(_0x3797a3[_0x7f9ed1(0x86)]?_0x7f9ed1(0xcf):_0x7f9ed1(0x9c))):null});}[_0x1a8fdf(0xcd)](_0x2a7c85,_0x34e6f2,_0x592794=!0x1,_0x559220=!0x1){const _0x39a525=_0x1a8fdf;if(this[_0x39a525(0xa5)]&&!_0x559220)return!0x1;this[_0x39a525(0x92)]&&this[_0x39a525(0x9f)](this[_0x39a525(0x92)]),this[_0x39a525(0x92)]=_0x34e6f2,this[_0x39a525(0xa5)]=_0x592794;const _0x53d9a6=_0x568ca2(this[_0x39a525(0xc4)])[_0x39a525(0xdd)];return _0x53d9a6[_0x39a525(0xbc)](_0x57223b=>{const _0x3a2bc7=_0x39a525;let _0x4f7ca7=0x0;for(let _0x4ae293 of _0x2a7c85){const _0x538eb1=_0x3a2bc7(0xa6)+_0x4f7ca7;if(_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x7d)]){const _0x339dc5=_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x9a)](({item:_0x43dce3})=>!_0x53d9a6[_0x3a2bc7(0xa8)][_0x3a2bc7(0xce)](_0x43dce3),{'boundaries':_0x4ae293});_0x4ae293=_0x57223b[_0x3a2bc7(0x84)](_0x339dc5,_0x4ae293[_0x3a2bc7(0x9c)]);}_0x57223b[_0x3a2bc7(0x94)](_0x538eb1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ae293}),_0x4f7ca7++;}}),window[_0x39a525(0xc2)]()?.[_0x39a525(0x9e)](),!0x0;}[_0x1a8fdf(0x9f)](_0x45910e){const _0x2b9fde=_0x1a8fdf;if(this[_0x2b9fde(0x92)]!=_0x45910e)return!0x1;this[_0x2b9fde(0x92)]=null,this[_0x2b9fde(0xa5)]=!0x1;const _0x20297f=_0x568ca2(this[_0x2b9fde(0xc4)]),_0x3e3dc6=_0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xa2)][_0x2b9fde(0xb8)](_0x2b9fde(0x8b));return _0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xbc)](_0x1468fe=>{const _0x19c503=_0x2b9fde;for(const _0x49394d of _0x3e3dc6)_0x1468fe[_0x19c503(0xa9)](_0x49394d);}),!0x0;}[_0x1a8fdf(0xe1)](_0x3c0ad0){const _0x557bcc=_0x1a8fdf,_0x43b0bd=_0x568ca2(this[_0x557bcc(0xc4)]),_0x9f2097=_0x43b0bd[_0x557bcc(0x80)][_0x557bcc(0xcb)](_0x3c0ad0),_0x2de95b=new _0x441827(_0x43b0bd[_0x557bcc(0xbb)][_0x557bcc(0x95)][_0x557bcc(0x98)]);return this[_0x557bcc(0x88)](_0x9f2097,_0x2de95b),_0x9f2097;}[_0x1a8fdf(0x88)](_0x1f4455,_0x1853a6){const _0x5b75ca=_0x1a8fdf;let _0x5a5c18=!0x1;const _0x446bb6=new Set();for(const _0x22d13c of _0x1f4455[_0x5b75ca(0xdf)]()){const _0x86b99d=_0x22d13c['is'](_0x5b75ca(0xdb))||_0x22d13c['is'](_0x5b75ca(0xc9));if(!_0x22d13c['is'](_0x5b75ca(0x93)))continue;(this[_0x5b75ca(0x88)](_0x22d13c,_0x1853a6)||_0x86b99d)&&(_0x1853a6[_0x5b75ca(0x9b)](_0x5b75ca(0xab),this[_0x5b75ca(0xbe)](_0x446bb6),_0x22d13c),_0x5a5c18=!0x0);}return _0x5a5c18;}[_0x1a8fdf(0xbe)](_0x5452a0){const _0x3ec19e=_0x1a8fdf;let _0x3fa8fa;do{_0x3fa8fa='';for(let _0x1e6073=0x0;_0x1e6073<0x4;_0x1e6073++)_0x3fa8fa+=String[_0x3ec19e(0xe3)](0x61+Math[_0x3ec19e(0x83)](0x1a*Math[_0x3ec19e(0x90)]()));}while(_0x5452a0[_0x3ec19e(0xaf)](_0x3fa8fa));return _0x5452a0[_0x3ec19e(0xb7)](_0x3fa8fa),_0x3fa8fa;}[_0x1a8fdf(0xd7)](){const _0x372bfb=_0x1a8fdf,{model:_0xf42a2f}=_0x568ca2(this[_0x372bfb(0xc4)]),_0x2a68d4=_0xf42a2f[_0x372bfb(0x98)][_0x372bfb(0xd9)],_0x4c3426=_0xf42a2f[_0x372bfb(0x9d)](_0x2a68d4),_0x4c14c4=[],_0x1ed58c=_0xf42a2f[_0x372bfb(0x96)](_0x4c3426)[_0x372bfb(0xb3)]();for(const {item:_0x2d29f8}of _0x1ed58c)_0x2d29f8['is'](_0x372bfb(0xc1))?_0x4c14c4[_0x372bfb(0xba)](_0x2d29f8[_0x372bfb(0x80)]):_0x2d29f8['is'](_0x372bfb(0x93))&&_0x4c14c4[_0x372bfb(0xd2)]>0x0&&'\x20'!==_0x4c14c4[_0x4c14c4[_0x372bfb(0xd2)]-0x1]&&_0x4c14c4[_0x372bfb(0xba)]('\x20');return'\x22'+_0x4c14c4[_0x372bfb(0xca)]('')[_0x372bfb(0xb0)]()+'\x22';}[_0x1a8fdf(0xdc)](){const _0x556358=_0x1a8fdf,_0x3c647e=_0x568ca2(this[_0x556358(0xc4)])[_0x556358(0xdd)];return Array[_0x556358(0x91)](_0x3c647e[_0x556358(0xa2)][_0x556358(0xb8)](_0x556358(0x8b)))[_0x556358(0xd3)]((_0x57ced5,_0x447a16)=>_0x57ced5[_0x556358(0x99)]()[_0x556358(0xc0)](_0x447a16[_0x556358(0x99)]())?-0x1:_0x57ced5[_0x556358(0x99)]()[_0x556358(0xa3)](_0x447a16[_0x556358(0x99)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ const _0x2a07bf=_0x2af5;(function(_0x82a694,_0x52b913){const _0x3a1953=_0x2af5,_0x5e9f75=_0x82a694();while(!![]){try{const _0x7a9c0=parseInt(_0x3a1953(0x1c9))/0x1*(-parseInt(_0x3a1953(0x1c0))/0x2)+parseInt(_0x3a1953(0x1c2))/0x3*(parseInt(_0x3a1953(0x1d1))/0x4)+parseInt(_0x3a1953(0x1cb))/0x5+parseInt(_0x3a1953(0x1d2))/0x6+-parseInt(_0x3a1953(0x1d3))/0x7+parseInt(_0x3a1953(0x1c8))/0x8*(parseInt(_0x3a1953(0x1d0))/0x9)+parseInt(_0x3a1953(0x1bd))/0xa*(-parseInt(_0x3a1953(0x1c5))/0xb);if(_0x7a9c0===_0x52b913)break;else _0x5e9f75['push'](_0x5e9f75['shift']());}catch(_0x35a8fb){_0x5e9f75['push'](_0x5e9f75['shift']());}}}(_0x26fa,0x41bdc));import{EmitterMixin as _0x8bb345}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a07bf(0x1c4)];function _0x26fa(){const _0x529fd0=['webSearch','2300965dyqnXL','_isReasoningEnabled','setReasoning','init','setWebSearch','1975527ciCJxI','239672AzeYVs','1728330FMErsq','3235190YiwBsp','isReasoningEnabled','_isWebSearchEnabled','toggleWebSearch','getCapabilitiesRequestData','60bnojHL','reasoning','getCapabilitiesConfig','9842UBaSlh','fire','6MrDFUU','toggleReasoning','capabilitiesUpdated','694474rFLlpu','reset','isWebSearchEnabled','16UVYwep','40TBQrrp'];_0x26fa=function(){return _0x529fd0;};return _0x26fa();}function _0x2af5(_0x3c2a19,_0x416d05){const _0x26faa4=_0x26fa();return _0x2af5=function(_0x2af55d,_0x1f753c){_0x2af55d=_0x2af55d-0x1b9;let _0x3e5cd5=_0x26faa4[_0x2af55d];return _0x3e5cd5;},_0x2af5(_0x3c2a19,_0x416d05);}export class AICapabilities extends _0x8bb345(){[_0x2a07bf(0x1ba)];[_0x2a07bf(0x1cc)];constructor(){const _0x1397f5=_0x2a07bf;super(),this[_0x1397f5(0x1ba)]=!0x1,this[_0x1397f5(0x1cc)]=!0x1;}[_0x2a07bf(0x1ce)](){const _0x2fcb66=_0x2a07bf;this[_0x2fcb66(0x1c6)]();}[_0x2a07bf(0x1c6)](){const _0x37faf8=_0x2a07bf;this[_0x37faf8(0x1cf)](!0x1),this[_0x37faf8(0x1cd)](!0x1);}[_0x2a07bf(0x1bf)](){const _0x5c108f=_0x2a07bf;return{'isWebSearchEnabled':this[_0x5c108f(0x1ba)],'isReasoningEnabled':this[_0x5c108f(0x1cc)]};}static[_0x2a07bf(0x1bc)](_0x5705c1){const _0x4a605c=_0x2a07bf,_0x2a336b={};return _0x5705c1&&_0x5705c1[_0x4a605c(0x1c7)]&&(_0x2a336b[_0x4a605c(0x1ca)]={}),_0x5705c1&&_0x5705c1[_0x4a605c(0x1b9)]&&(_0x2a336b[_0x4a605c(0x1be)]={}),_0x2a336b;}[_0x2a07bf(0x1bb)](){const _0x38e746=_0x2a07bf;this[_0x38e746(0x1cf)](!this[_0x38e746(0x1ba)]);}[_0x2a07bf(0x1c3)](){const _0x310a02=_0x2a07bf;this[_0x310a02(0x1cd)](!this[_0x310a02(0x1cc)]);}[_0x2a07bf(0x1cf)](_0x986eb5){const _0x46b50a=_0x2a07bf;_0x986eb5!==this[_0x46b50a(0x1ba)]&&(this[_0x46b50a(0x1ba)]=_0x986eb5,this[_0x46b50a(0x1c1)](_0x46b50a(0x1c4),this[_0x46b50a(0x1bf)]()));}[_0x2a07bf(0x1cd)](_0x5e3c28){const _0x53ec59=_0x2a07bf;_0x5e3c28!==this[_0x53ec59(0x1cc)]&&(this[_0x53ec59(0x1cc)]=_0x5e3c28,this[_0x53ec59(0x1c1)](_0x53ec59(0x1c4),this[_0x53ec59(0x1bf)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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={}));
23
+ (function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0xb798fa=_0x4bbb;function _0xe262(){const _0x1e4713=['ai-chat-interaction-error','replyCreated','_isWebSearching','callId','splice','stopListening','setConversationTitle','replies','createReply','find','webSearchFinished','interactionCreated','getStream','getDocumentContext','replyChangeGroupStateUpdated','7025298bdAcSZ','appendContent','reasoning','stop','reasoningFinished','conversationTitle','connector','getReply','isDestroyed','3873975HEvPeb','1243681TxUQpG','length','332108zcfKAx','interactionStarted','push','event','delegate','editor','sources','message-metadata','webSearchStarted','textDelta','replyContentUpdated','2987844XVBJTZ','currentRequest','start','content','isStopped','interactionStopped','ai-interaction-invalid-event-type','24152744PtnqrP','abort','_isReasoning','6exarXq','actionCallId','destroy','error','1512910CxTBNg','sendRequest','_finalizeInteraction','currentReply','interactionDestroyed','modification-delta','forEach','source','abortController','fire','interactionFinished','action-metadata','web-search','done','data','messageId','reasoningStarted'];_0xe262=function(){return _0x1e4713;};return _0xe262();}(function(_0x4d17ec,_0x562db7){const _0x14f027=_0x4bbb,_0x3d01b0=_0x4d17ec();while(!![]){try{const _0x17e523=parseInt(_0x14f027(0xc7))/0x1+-parseInt(_0x14f027(0xc9))/0x2+-parseInt(_0x14f027(0xc6))/0x3+-parseInt(_0x14f027(0xd4))/0x4+parseInt(_0x14f027(0xe2))/0x5*(-parseInt(_0x14f027(0xde))/0x6)+-parseInt(_0x14f027(0xbd))/0x7+parseInt(_0x14f027(0xdb))/0x8;if(_0x17e523===_0x562db7)break;else _0x3d01b0['push'](_0x3d01b0['shift']());}catch(_0x167dba){_0x3d01b0['push'](_0x3d01b0['shift']());}}}(_0xe262,0xb7a6e));import{CKEditorError as _0x138bd2,EmitterMixin as _0x567a7b,logWarning as _0x10789e,uid as _0x2451c8}from'ckeditor5/src/utils.js';import{AIReply as _0x386ec0,isIgnoredReplyType as _0x5b92f8,isValidReplyType as _0x538c6e,isReplyTitleType as _0x3ee21b,isSourceType as _0x405c0f}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0xb798fa(0xb9),_0xb798fa(0xca),_0xb798fa(0xd9),_0xb798fa(0xec),_0xb798fa(0xe6),_0xb798fa(0xf4),_0xb798fa(0xd3),_0xb798fa(0xbc),_0xb798fa(0xb4),_0xb798fa(0xd1),_0xb798fa(0xb8),_0xb798fa(0xf2),_0xb798fa(0xc1),_0xb798fa(0xe1)];function _0x4bbb(_0x1188c5,_0x5de7c4){const _0xe26244=_0xe262();return _0x4bbb=function(_0x4bbb16,_0xd3faf0){_0x4bbb16=_0x4bbb16-0xb4;let _0x3dc6fd=_0xe26244[_0x4bbb16];return _0x3dc6fd;},_0x4bbb(_0x1188c5,_0x5de7c4);}export class AIInteraction extends _0x567a7b(){['id'];[_0xb798fa(0xb5)]=[];[_0xb798fa(0xe5)];[_0xb798fa(0xf1)];[_0xb798fa(0xdf)];[_0xb798fa(0xd5)];[_0xb798fa(0xc3)];[_0xb798fa(0xd8)]=!0x1;[_0xb798fa(0xc5)]=!0x1;[_0xb798fa(0xce)];[_0xb798fa(0xdd)]=!0x1;[_0xb798fa(0xf5)]=!0x1;constructor({connector:_0x1303c4,editor:_0x3d26d0}){const _0x187c47=_0xb798fa;super(),this['id']=_0x2451c8(),this[_0x187c47(0xc3)]=_0x1303c4,this[_0x187c47(0xd8)]=!0x0,this[_0x187c47(0xce)]=_0x3d26d0;}async[_0xb798fa(0xd6)](){const _0x4fbce0=_0xb798fa;let _0x3a6f46;const _0x9d5f8e=[];this[_0x4fbce0(0xd8)]=!0x1;try{this[_0x4fbce0(0xd5)]=await this[_0x4fbce0(0xe3)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xca),this);const _0x290ab3=await this[_0x4fbce0(0xd5)][_0x4fbce0(0xba)]();for await(const _0x152917 of _0x290ab3){if(this[_0x4fbce0(0xd8)])return;if(_0x4fbce0(0xe1)===_0x152917[_0x4fbce0(0xcc)])return void this[_0x4fbce0(0xeb)](_0x4fbce0(0xe1),{'error':new _0x138bd2(_0x4fbce0(0xf3),this)});if(_0x4fbce0(0xd0)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x4fbce0(0xed)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x3ee21b(_0x152917[_0x4fbce0(0xcc)])&&this[_0x4fbce0(0xb4)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xc2)],!0x0),_0x405c0f(_0x152917[_0x4fbce0(0xcc)]))_0x9d5f8e[_0x4fbce0(0xcb)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xe9)]);else{if(_0x538c6e(_0x152917[_0x4fbce0(0xcc)])){if(_0x152917[_0x4fbce0(0xcc)]!==_0x3a6f46){if(_0x3a6f46=_0x152917[_0x4fbce0(0xcc)],_0x4fbce0(0xee)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xf5)]||(this[_0x4fbce0(0xf5)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xd1),this));continue;}if(_0x4fbce0(0xbf)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xdd)]||(this[_0x4fbce0(0xdd)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xf2),this));continue;}this[_0x4fbce0(0xdd)]&&(this[_0x4fbce0(0xdd)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xc1),this)),this[_0x4fbce0(0xf5)]&&(this[_0x4fbce0(0xf5)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xb8),this)),this[_0x4fbce0(0xe5)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xef)](),this[_0x4fbce0(0xe5)]=this[_0x4fbce0(0xb6)]({'type':_0x152917[_0x4fbce0(0xcc)],'interactionId':this['id']}),_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&_0x4fbce0(0xe7)===_0x152917[_0x4fbce0(0xcc)]&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0));}_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xbe)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]);}else _0x5b92f8(_0x152917[_0x4fbce0(0xcc)])||_0x10789e(_0x4fbce0(0xda),{'chunk':_0x152917});}}else this[_0x4fbce0(0xdf)]=_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xf6)];}else this[_0x4fbce0(0xf1)]=_0x152917[_0x4fbce0(0xf0)]['id'];}}finally{this[_0x4fbce0(0xd8)]||(_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0)),this[_0x4fbce0(0xe4)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xec),this));}}[_0xb798fa(0xc0)](){const _0x2223d7=_0xb798fa;this[_0x2223d7(0xd8)]||(this[_0x2223d7(0xe4)](),this[_0x2223d7(0xeb)](_0x2223d7(0xd9),this));}[_0xb798fa(0xc4)](_0x3c41ea){const _0x200702=_0xb798fa;return this[_0x200702(0xb5)][_0x200702(0xb7)](_0x51f5ff=>_0x51f5ff['id']===_0x3c41ea);}[_0xb798fa(0xe0)](){const _0x1acc88=_0xb798fa;this[_0x1acc88(0xc5)]||(this[_0x1acc88(0xc0)](),this[_0x1acc88(0xb5)][_0x1acc88(0xe8)](_0xc40faa=>_0xc40faa[_0x1acc88(0xe0)]()),this[_0x1acc88(0xb5)]=[],this[_0x1acc88(0xc5)]=!0x0,this[_0x1acc88(0xeb)](_0x1acc88(0xe6),this),this[_0x1acc88(0xf8)]());}[_0xb798fa(0xb6)](_0x540f65){const _0x2c634d=_0xb798fa,_0x1f9589=new _0x386ec0({'editor':this[_0x2c634d(0xce)],'documentContextContent':this[_0x2c634d(0xbb)]()?.[_0x2c634d(0xd7)],..._0x540f65});return this[_0x2c634d(0xb5)][_0x2c634d(0xcb)](_0x1f9589),_0x1f9589[_0x2c634d(0xcd)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2c634d(0xeb)](_0x2c634d(0xf4),_0x1f9589),_0x1f9589;}[_0xb798fa(0xb4)](_0x2f6373,_0x48a194=!0x1){const _0x10b538=_0xb798fa;this[_0x10b538(0xeb)](_0x10b538(0xb4),_0x2f6373,_0x48a194);}[_0xb798fa(0xe4)](){const _0x45a374=_0xb798fa;this[_0x45a374(0xd8)]=!0x0,this[_0x45a374(0xd5)]&&this[_0x45a374(0xd5)][_0x45a374(0xea)][_0x45a374(0xdc)](),this[_0x45a374(0xe5)]&&this[_0x45a374(0xe5)][_0x45a374(0xef)](),this[_0x45a374(0xd5)]=this[_0x45a374(0xe5)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}
23
+ const _0x5e8312=_0xb32d;(function(_0x568367,_0x523757){const _0x57cc26=_0xb32d,_0x2332a6=_0x568367();while(!![]){try{const _0x4503f2=-parseInt(_0x57cc26(0x1bc))/0x1*(parseInt(_0x57cc26(0x1db))/0x2)+parseInt(_0x57cc26(0x1de))/0x3*(parseInt(_0x57cc26(0x19d))/0x4)+-parseInt(_0x57cc26(0x1a5))/0x5+-parseInt(_0x57cc26(0x1b3))/0x6+-parseInt(_0x57cc26(0x1a2))/0x7+parseInt(_0x57cc26(0x1da))/0x8+parseInt(_0x57cc26(0x1c8))/0x9;if(_0x4503f2===_0x523757)break;else _0x2332a6['push'](_0x2332a6['shift']());}catch(_0x5a26b9){_0x2332a6['push'](_0x2332a6['shift']());}}}(_0x57a5,0xbcb02));import{ObservableMixin as _0xe18198,uid as _0x141224}from'ckeditor5/src/utils.js';function _0xb32d(_0x4f544a,_0x58e8d4){const _0x57a573=_0x57a5();return _0xb32d=function(_0xb32de1,_0x26728a){_0xb32de1=_0xb32de1-0x198;let _0x33b37f=_0x57a573[_0xb32de1];return _0x33b37f;},_0xb32d(_0x4f544a,_0x58e8d4);}import{Element as _0x3bc5af,findAll as _0x3eae01,getAttribute as _0x230838,getParents as _0x2ca6bd,Document as _0x259dfa,parse as _0x36d8c9,Text as _0x15ef74}from'../utils/htmlparser.js';import{AIResponseParser as _0x58c20c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34cfdb}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4aba17}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5e8312(0x198),_0x5e8312(0x1c1),_0x5e8312(0x1a4),_0x5e8312(0x1e1)];export const AI_REPLY_TYPES_IGNORED=[_0x5e8312(0x19f)];export const AI_REPLY_TITLE_TYPE=_0x5e8312(0x19f);export class AIReply extends _0xe18198(){['id'];[_0x5e8312(0x1cc)];[_0x5e8312(0x1c0)];[_0x5e8312(0x1d8)]=[];[_0x5e8312(0x1c4)]=new _0x259dfa([]);[_0x5e8312(0x1a7)]=new _0x259dfa([]);[_0x5e8312(0x19b)]=[];[_0x5e8312(0x1ab)]=!0x1;[_0x5e8312(0x1c7)];[_0x5e8312(0x1ae)];[_0x5e8312(0x1cb)];[_0x5e8312(0x1b5)];constructor({type:_0x27a0ca,content:_0x551f9e='',isDone:_0x1ee3a1=!0x1,interactionId:_0x26006e,areActionsDisabled:_0x38fd10,documentContextContent:_0x19557e,editor:_0x50d8c2}){const _0xeef2bb=_0x5e8312;super(),this['id']=_0x141224(),this[_0xeef2bb(0x1cc)]=_0x26006e,this[_0xeef2bb(0x1c0)]=_0x27a0ca,this[_0xeef2bb(0x1ab)]=!!_0x38fd10,this[_0xeef2bb(0x1b5)]=_0x50d8c2,this[_0xeef2bb(0x1ae)]=new _0x58c20c(),this[_0xeef2bb(0x1cb)]=new _0x34cfdb(),this[_0xeef2bb(0x1c7)]=_0x36d8c9(_0x19557e||''),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1b9),_0x1ee3a1),this['on'](_0xeef2bb(0x1d7),()=>{const _0x19eebc=_0xeef2bb;this[_0x19eebc(0x199)]();}),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1a6),_0x551f9e);}[_0x5e8312(0x1d6)](_0x4344fd){const _0x137371=_0x5e8312;this[_0x137371(0x1c9)](_0x137371(0x1a6),this[_0x137371(0x1a6)]+_0x4344fd);}[_0x5e8312(0x1a0)](){const _0x387352=_0x5e8312;this[_0x387352(0x1b9)]||(this[_0x387352(0x1c9)](_0x387352(0x1b9),!0x0),this[_0x387352(0x199)]());}[_0x5e8312(0x1d4)](){const _0x46df0d=_0x5e8312;this[_0x46df0d(0x1a8)]();}[_0x5e8312(0x1ad)](_0x5a8651,_0x2552e3){const _0x2df9bb=_0x5e8312;this[_0x2df9bb(0x19b)][_0x5a8651][_0x2df9bb(0x1b7)]=_0x2552e3,this[_0x2df9bb(0x1b6)](_0x2df9bb(0x1dd),{'reply':this,'index':_0x5a8651,'state':_0x2552e3});}[_0x5e8312(0x199)](){const _0x329d26=_0x5e8312;if(_0x329d26(0x198)===this[_0x329d26(0x1c0)]){this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1cf)](this[_0x329d26(0x1a6)]);const _0x322428=this[_0x329d26(0x19b)];this[_0x329d26(0x1bd)]();const _0x511d74=this[_0x329d26(0x1ac)](_0x322428,this[_0x329d26(0x19b)]);(_0x511d74[_0x329d26(0x1df)]||this[_0x329d26(0x1b9)])&&this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this,_0x511d74);}else this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1ba)](this[_0x329d26(0x1a6)]),this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this);}[_0x5e8312(0x1ac)](_0x48a48a,_0x4147d8){const _0x45df0f=_0x5e8312,_0xe2f9a1=[];for(const _0x46a7a3 of _0x4147d8){const _0x4a5c55=_0x48a48a[_0x46a7a3[_0x45df0f(0x1c6)]];_0x4a5c55?_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]!==_0x46a7a3[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]?_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3):_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1d3)]((_0x4c6f7f,_0x190263)=>{const _0x3c8bd4=_0x45df0f,_0x540db6=_0x46a7a3[_0x3c8bd4(0x1cd)][_0x190263];_0x4c6f7f['id']!==_0x540db6['id']&&_0xe2f9a1[_0x3c8bd4(0x1b8)](_0x46a7a3);}):_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3);}return _0xe2f9a1;}[_0x5e8312(0x1bd)](){const _0x5836cd=_0x5e8312,_0x6d197e=new _0x3bc5af('p',{},[new _0x3bc5af(_0x5836cd(0x1c3),{'style':_0x5836cd(0x19c)},[new _0x15ef74(_0x4aba17(this[_0x5836cd(0x1b5)][_0x5836cd(0x1ca)],_0x5836cd(0x1be)))])]),_0x5cc022=this[_0x5836cd(0x1cb)][_0x5836cd(0x1bf)](this[_0x5836cd(0x1c4)],this[_0x5836cd(0x1c7)][_0x5836cd(0x1d5)](!0x0),{'markUnstableElements':!this[_0x5836cd(0x1b9)],'replaceRemovedWith':_0x6d197e,'cutAfterLastChange':!this[_0x5836cd(0x1b9)]});if(!_0x5cc022[_0x5836cd(0x1ce)][_0x5836cd(0x1df)]&&!this[_0x5836cd(0x1b9)])return;this[_0x5836cd(0x1a7)]=_0x5cc022[_0x5836cd(0x1c4)];let _0x237157=[];if(_0x3eae01(_0x1e68c0=>{const _0x20b06f=_0x5836cd,_0x5ddbdc=_0x230838(_0x1e68c0,_0x20b06f(0x1a1));if(!_0x5ddbdc||!_0x2c5381(_0x5ddbdc))return!0x1;const _0x14d4c6=[_0x1e68c0,..._0x2ca6bd(_0x1e68c0)]['at'](-0x2);if(_0x1e68c0!=_0x14d4c6){const _0x238533=_0x230838(_0x14d4c6,_0x20b06f(0x1a1));_0x2c5381(_0x238533)||(_0x237157[_0x20b06f(0x1b8)]({'node':_0x14d4c6,'id':_0x238533,'type':_0x20b06f(0x19a)}),_0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x1b8)](_0x238533));}else _0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x19a),'id':_0x5ddbdc}):_0x5cc022[_0x20b06f(0x1a9)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1b4),'id':_0x5ddbdc,'anchorId':_0x230838(_0x1e68c0[_0x20b06f(0x1d2)],_0x20b06f(0x1a1))}):_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1c5),'id':_0x5ddbdc});return!0x0;},this[_0x5836cd(0x1a7)]),_0x237157=_0x237157[_0x5836cd(0x1d9)](({node:_0x1339a6})=>[..._0x2ca6bd(_0x1339a6),_0x1339a6][_0x5836cd(0x1b0)](_0x498f10=>!_0x230838(_0x498f10,_0x5836cd(0x1b1)))),0x0==_0x237157[_0x5836cd(0x1df)])return;const _0x46010e=[[_0x237157[0x0]]];for(let _0x3d602f=0x1;_0x3d602f<_0x237157[_0x5836cd(0x1df)];_0x3d602f++){const _0x3c6646=_0x46010e[_0x46010e[_0x5836cd(0x1df)]-0x1],_0x195caa=_0x3c6646[_0x3c6646[_0x5836cd(0x1df)]-0x1];_0x237157[_0x3d602f][_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]==_0x195caa[_0x5836cd(0x1c2)]&&_0x5836cd(0x19a)!=_0x237157[_0x3d602f][_0x5836cd(0x1c0)]&&_0x5836cd(0x19a)!=_0x195caa[_0x5836cd(0x1c0)]?_0x3c6646[_0x5836cd(0x1b8)](_0x237157[_0x3d602f]):_0x46010e[_0x5836cd(0x1b8)]([_0x237157[_0x3d602f]]);}for(const _0x945e16 of _0x46010e){const _0x201bcf=_0x945e16[0x0],_0x970878=_0x945e16[_0x945e16[_0x5836cd(0x1df)]-0x1],_0x4e14ea=_0x273d3c(_0x201bcf[_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]);_0x4e14ea&&_0x945e16[_0x5836cd(0x1af)](_0x4e14ea);const _0x4a4ae9=_0x273d3c(_0x970878[_0x5836cd(0x1c2)][_0x5836cd(0x1d1)]);_0x4a4ae9&&_0x945e16[_0x5836cd(0x1b8)](_0x4a4ae9);}function _0x2c5381(_0x22f9e2){const _0x581f19=_0x5836cd;return _0x5cc022[_0x581f19(0x1ce)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1a9)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1bb)][_0x581f19(0x19e)](_0x22f9e2);}function _0x273d3c(_0x1aaba9){const _0xe15e7a=_0x5836cd;if(_0x1aaba9&&_0x230838(_0x1aaba9,_0xe15e7a(0x1a1))&&!_0x230838(_0x1aaba9,_0xe15e7a(0x1b1))){const _0x435247=_0x230838(_0x1aaba9,_0xe15e7a(0x1a1));if(!_0x2c5381(_0x435247))return{'node':_0x1aaba9,'type':_0xe15e7a(0x1a3),'id':_0x435247};}return null;}this[_0x5836cd(0x19b)]=_0x46010e[_0x5836cd(0x1d0)]((_0x9f821d,_0x5b2ce0)=>({'changes':_0x9f821d,'state':_0x5836cd(0x1aa),'index':_0x5b2ce0}));}}export function isValidReplyType(_0xdf695e){const _0x2c8f0e=_0x5e8312;return Object[_0x2c8f0e(0x1e0)](AI_REPLY_TYPES)[_0x2c8f0e(0x19e)](_0xdf695e);}function _0x57a5(){const _0x1a93b2=['isDone','convertMarkdownToHTML','removedNodeIds','271zxNvUH','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','type','text-delta','node','span','parsedContent','removed','index','documentContextContent','22208634owNdwy','set','locale','aiResponseApplier','interactionId','changes','modifiedNodeIds','parseAndNormalizeHTML','map','nextSibling','previousSibling','forEach','destroy','cloneNode','appendContent','change:content','sources','filter','10743064iIECIz','4966PKfaIN','replyContentUpdated','replyChangeGroupStateUpdated','45VwkMKR','length','values','reasoning','modification-delta','onContentChange','modified','changeGroups','color:\x20#808080;\x20font-style:\x20italic','31468xpEcuU','includes','conversation-title','done','data-id','4541719LLRcdv','context','web-search','2271535oCHPDm','content','parsedMergedContent','stopListening','newNodeIds','pending','areActionsDisabled','_getDifferentChangeGroups','setChangeGroupState','aiResponseParser','unshift','every','data-unstable','source','8277786tretct','new','editor','fire','state','push'];_0x57a5=function(){return _0x1a93b2;};return _0x57a5();}export function isIgnoredReplyType(_0x2f11aa){const _0x2f9ebc=_0x5e8312;return AI_REPLY_TYPES_IGNORED[_0x2f9ebc(0x19e)](_0x2f11aa);}export function isReplyTitleType(_0x55fc5c){return _0x55fc5c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x51b46c){const _0x11300f=_0x5e8312;return _0x11300f(0x1b2)===_0x51b46c;}