@ckeditor/ckeditor5-ai 47.0.0-alpha.8 → 47.0.0-alpha.9

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 (293) 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.d.ts +197 -1
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.d.ts +30 -0
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.d.ts +1 -0
  253. package/src/aiquickactions/aiquickactions.js +1 -1
  254. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  255. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  256. package/src/aiquickactions/aiquickactionsui.d.ts +49 -0
  257. package/src/aiquickactions/aiquickactionsui.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  259. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  260. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  261. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  262. package/src/aireviewmode/aireviewmode.js +1 -1
  263. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  264. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  274. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  275. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  287. package/src/aitabs/aitabs.d.ts +14 -0
  288. package/src/aitabs/aitabs.js +1 -1
  289. package/src/aitabs/aitabsmainview.js +1 -1
  290. package/src/aitabs/tabs/aitabsview.js +1 -1
  291. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  292. package/src/aitabs/tabs/tabpanelview.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5931df=_0x27b6;function _0x9d61(){const _0x113a4d=['unpin','operation','selectConversation','itemId','updateItemLoadingState','activeConversation','updateItemTitle','624xflChC','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','get','openChat','toLocaleDateString','getGroupId','context','4UrVLFX','1662930SVPWOY','setLoadingSkeleton','getItems','_handleHistoryErrorUI','10603934qfxKbH','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','_clearItemLoading','itemsLoaded','_showConversationHistory','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','_handleRemove','_aiChatController','resize','_generateErrorMessage','view','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','isOfficialPlugin','_setItemLoading','updateItems','3689BYnvrz','length','showError','getItem','isPremiumPlugin','getFullYear','resizedTabs','activateTab','editConversationTitle','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','5704IxqEAk','push','816200aszbhE','remove','chat','_handleSelectConversation','items','getDate','setDate','resizeTabs','removeConversation','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_getCategorizedItems','setIsMaximized','history','map','updates','_updateHistoryItemsUI','updateItemPinned','activateTab:history','loadConversation','pin','locale','createdAt','_handleTogglePin','pinned','532878IMHPCR','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_PIN_ACTION','error','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','change:activeConversation','title','pluginName','16955vywHNE','AIChatHistoryController','getMonth','itemUpdated','init','AI_CHAT_HISTORY_CATEGORY_PINNED','_aiChatHistoryUi','removeHistoryItem','requires','4090404kPJJtw','handleRemovedConversation','30BKmjKG','setConversationPinned','_handleEditTitle','removeItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','_aiConnector'];_0x9d61=function(){return _0x113a4d;};return _0x9d61();}(function(_0x36d52a,_0x3161ec){const _0x18960b=_0x27b6,_0x5bd68e=_0x36d52a();while(!![]){try{const _0x4e3f61=-parseInt(_0x18960b(0x113))/0x1+-parseInt(_0x18960b(0x155))/0x2*(parseInt(_0x18960b(0x12c))/0x3)+-parseInt(_0x18960b(0x13d))/0x4+parseInt(_0x18960b(0x134))/0x5*(-parseInt(_0x18960b(0x14d))/0x6)+parseInt(_0x18960b(0x106))/0x7*(parseInt(_0x18960b(0x111))/0x8)+-parseInt(_0x18960b(0x156))/0x9+-parseInt(_0x18960b(0x13f))/0xa*(-parseInt(_0x18960b(0x15a))/0xb);if(_0x4e3f61===_0x3161ec)break;else _0x5bd68e['push'](_0x5bd68e['shift']());}catch(_0x2004a0){_0x5bd68e['push'](_0x5bd68e['shift']());}}}(_0x9d61,0x82eb6));function _0x27b6(_0x1dbeaa,_0x5e617a){const _0x9d6190=_0x9d61();return _0x27b6=function(_0x27b695,_0x40c9c4){_0x27b695=_0x27b695-0xff;let _0x5490da=_0x9d6190[_0x27b695];return _0x5490da;},_0x27b6(_0x1dbeaa,_0x5e617a);}import{ContextPlugin as _0x3226e5}from'ckeditor5/src/core.js';import{AIConnector as _0x140f49}from'../aicore/aiconnector.js';import{AIChatController as _0x72ca44}from'../aichat/aichatcontroller.js';import{AITabs as _0x3c1c78}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x380b52}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1752c3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x48c4e6}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3226e5{[_0x5931df(0x145)];[_0x5931df(0x13a)];[_0x5931df(0x164)];static get[_0x5931df(0x13c)](){return[_0x140f49,_0x72ca44,_0x380b52,_0x3c1c78];}static get[_0x5931df(0x133)](){const _0x457a63=_0x5931df;return _0x457a63(0x135);}static get[_0x5931df(0x103)](){return!0x0;}static get[_0x5931df(0x10a)](){return!0x0;}[_0x5931df(0x138)](){const _0x1c4ee6=_0x5931df;this[_0x1c4ee6(0x145)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x140f49),this[_0x1c4ee6(0x13a)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x380b52),this[_0x1c4ee6(0x164)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x72ca44);const _0x496ee3=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x3c1c78),_0x467acd=this[_0x1c4ee6(0x164)][_0x1c4ee6(0x153)]();this[_0x1c4ee6(0x120)]=new _0x1752c3({'connector':this[_0x1c4ee6(0x145)],'group':_0x467acd}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11b),(_0x5e5156,_0x26d69a)=>{const _0x454ed2=_0x1c4ee6;this[_0x454ed2(0x104)](_0x26d69a['id'],_0x454ed2(0x114)),this[_0x454ed2(0x163)](_0x26d69a['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x10e),(_0x51bed8,_0x49fd96)=>{const _0x4f3d12=_0x1c4ee6;this[_0x4f3d12(0x104)](_0x49fd96['id'],_0x4f3d12(0x162)),this[_0x4f3d12(0x141)](_0x49fd96['id'],_0x49fd96[_0x4f3d12(0x132)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x137),(_0x517c9e,_0x10f9c8)=>{const _0x133781=_0x1c4ee6;void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]&&this[_0x133781(0x13a)][_0x133781(0x14c)](_0x10f9c8[_0x133781(0x149)],_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]),void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x12b)]&&this[_0x133781(0x123)](),this[_0x133781(0x15e)](_0x10f9c8[_0x133781(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15d),(_0x27bc2a,_0x35a453)=>{const _0x5a24e9=_0x1c4ee6;this[_0x5a24e9(0x164)][_0x5a24e9(0x13e)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x13a)][_0x5a24e9(0x13b)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x15e)](_0x35a453[_0x5a24e9(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15f),()=>{const _0x53ebe4=_0x1c4ee6;this[_0x53ebe4(0x123)]();}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x12f),(_0xa6a676,_0x2cb063)=>{const _0x4eab04=_0x1c4ee6;this[_0x4eab04(0x159)](_0x2cb063[_0x4eab04(0x12f)],_0x2cb063[_0x4eab04(0x147)],_0x2cb063[_0x4eab04(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x148),(_0x1c6146,_0x28ef29)=>{const _0x2b0ac7=_0x1c4ee6;this[_0x2b0ac7(0x116)](_0x28ef29['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x140),(_0x4903bf,_0x2bed83)=>{const _0x25a27e=_0x1c4ee6,_0x45d851=_0x2bed83[_0x25a27e(0x12b)]?_0x25a27e(0x127):_0x25a27e(0x146);this[_0x25a27e(0x104)](_0x2bed83['id'],_0x45d851),this[_0x25a27e(0x12a)](_0x2bed83['id'],_0x2bed83[_0x25a27e(0x12b)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x151),()=>{const _0x4178bd=_0x1c4ee6;_0x496ee3[_0x4178bd(0x100)][_0x4178bd(0x10d)](_0x4178bd(0x115));}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x164)],_0x1c4ee6(0x131),()=>{const _0x7e8f16=_0x1c4ee6;this[_0x7e8f16(0x123)]();}),_0x496ee3[_0x1c4ee6(0x100)]['on'](_0x1c4ee6(0x125),()=>{const _0x17c012=_0x1c4ee6;this[_0x17c012(0x160)]();}),this[_0x1c4ee6(0x11c)](_0x496ee3,_0x1c4ee6(0x10c),(_0x3e8564,_0x34d5c1)=>{const _0x6d9e00=_0x1c4ee6;this[_0x6d9e00(0x15b)](_0x34d5c1);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11a),()=>{const _0x5eafc2=_0x1c4ee6;_0x496ee3[_0x5eafc2(0x165)]();});}async[_0x5931df(0x141)](_0x29242a,_0x53ffd3){const _0x211e63=_0x5931df;await this[_0x211e63(0x120)][_0x211e63(0x14c)](_0x29242a,_0x53ffd3);}async[_0x5931df(0x12a)](_0x108421,_0x3ede99){const _0x26ad0e=_0x5931df;await this[_0x26ad0e(0x120)][_0x26ad0e(0x124)](_0x108421,_0x3ede99);}async[_0x5931df(0x163)](_0xa12917){const _0x2a7e84=_0x5931df;await this[_0x2a7e84(0x120)][_0x2a7e84(0x142)](_0xa12917);}async[_0x5931df(0x116)](_0x3b1a07){const _0xef1a45=_0x5931df;await this[_0xef1a45(0x164)][_0xef1a45(0x126)](_0x3b1a07);}async[_0x5931df(0x160)](){const _0x5c1d43=_0x5931df;this[_0x5c1d43(0x13a)][_0x5c1d43(0x108)](''),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x0),await this[_0x5c1d43(0x120)][_0x5c1d43(0x138)](),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x1);}[_0x5931df(0x123)](){const _0x36bdcf=_0x5931df,_0x3fbae3=this[_0x36bdcf(0x164)][_0x36bdcf(0x14b)]?.['id'],_0x3741bb=this[_0x36bdcf(0x11e)]()[_0x36bdcf(0x121)](_0x26b501=>({'title':_0x26b501[_0x36bdcf(0x132)],'items':_0x26b501[_0x36bdcf(0x117)][_0x36bdcf(0x121)](_0x5d5e9b=>({'id':_0x5d5e9b['id'],'title':_0x5d5e9b[_0x36bdcf(0x132)]||_0x48c4e6(this[_0x36bdcf(0x154)][_0x36bdcf(0x128)],_0x36bdcf(0x15c)),'createdAt':new Date(_0x5d5e9b[_0x36bdcf(0x129)])[_0x36bdcf(0x152)](),'active':_0x5d5e9b['id']===_0x3fbae3,'pinned':_0x5d5e9b[_0x36bdcf(0x12b)]}))}));this[_0x36bdcf(0x13a)][_0x36bdcf(0x105)](_0x3741bb);}[_0x5931df(0x104)](_0x3910fa,_0x4d9ad0){const _0x18954c=_0x5931df;this[_0x18954c(0x13a)][_0x18954c(0x14a)](_0x3910fa,_0x4d9ad0,!0x0);}[_0x5931df(0x15e)](_0x48233f){const _0x316793=_0x5931df;this[_0x316793(0x13a)][_0x316793(0x14a)](_0x48233f,null,!0x1);}[_0x5931df(0x159)](_0x561ee9,_0x499735,_0x53e72f){const _0x14f49c=_0x5931df,_0x4aadda=this[_0x14f49c(0xff)](_0x499735,_0x53e72f);this[_0x14f49c(0x13a)][_0x14f49c(0x108)](_0x4aadda),_0x53e72f&&this[_0x14f49c(0x15e)](_0x53e72f),this[_0x14f49c(0x13a)][_0x14f49c(0x157)](!0x1);}[_0x5931df(0xff)](_0x5ac482,_0x2767fe){const _0x160ff9=_0x5931df,_0x45539e=_0x2767fe?this[_0x160ff9(0x120)][_0x160ff9(0x109)](_0x2767fe):null,_0x79131c=_0x45539e?.[_0x160ff9(0x132)]||_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x15c));switch(_0x5ac482){case _0x160ff9(0x14c):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x101),_0x79131c);case _0x160ff9(0x124):{const _0x3b1a1e=_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x45539e?.[_0x160ff9(0x12b)]?_0x160ff9(0x102):_0x160ff9(0x12e));return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x14e),[_0x3b1a1e,_0x79131c]);}case _0x160ff9(0x142):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x161),_0x79131c);case _0x160ff9(0x138):case _0x160ff9(0x144):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x11d));default:return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x12d));}}[_0x5931df(0x11e)](){const _0x427618=_0x5931df,_0x127d89=new Date(),_0x50321b=new Date(_0x127d89[_0x427618(0x10b)](),_0x127d89[_0x427618(0x136)](),_0x127d89[_0x427618(0x118)]()),_0x363070=new Date(_0x50321b);_0x363070[_0x427618(0x119)](_0x363070[_0x427618(0x118)]()-0x1);const _0xd992d=new Date(_0x50321b);_0xd992d[_0x427618(0x119)](_0xd992d[_0x427618(0x118)]()-0xe);const _0xc05930=this[_0x427618(0x120)][_0x427618(0x158)]({'pinned':!0x0}),_0x55991b=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x50321b,'to':_0x50321b}),_0xb372a6=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x363070,'to':_0x363070}),_0x384dec=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0xd992d,'to':_0x363070}),_0x544ed5=this[_0x427618(0x120)][_0x427618(0x158)]({'to':_0xd992d}),_0x45ffd4=[];return _0xc05930[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x139)),'items':_0xc05930}),_0x55991b[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x110)),'items':_0x55991b}),_0xb372a6[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x130)),'items':_0xb372a6}),_0x384dec[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x143)),'items':_0x384dec}),_0x544ed5[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x14f)),'items':_0x544ed5}),_0x45ffd4;}[_0x5931df(0x15b)](_0x465633){const _0x70959d=_0x5931df;this[_0x70959d(0x13a)][_0x70959d(0x11f)](_0x465633);}}
23
+ const _0x1ceb64=_0x1f66;function _0x190c(){const _0x447832=['itemUpdated','removeHistoryItem','_handleHistoryErrorUI','activateTab','selectConversation','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','3265927FPBMoR','chat','push','loadItems','resizedTabs','_setItemLoading','change:activeConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setDate','itemId','map','createdAt','_handleRemove','_aiConnector','getGroupId','setConversationPinned','1399542LTPXHw','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_generateErrorMessage','plugins','showError','resize','pin','_handleTogglePin','history','operation','getFullYear','getMonth','context','remove','pinned','get','_updateHistoryItemsUI','isOfficialPlugin','title','rename','updateItems','AI_CHAT_UNTITLED_CONVERSATION','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','updateItemTitle','requires','activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setIsMaximized','locale','items','_getCategorizedItems','_handleEditTitle','unpin','error','removeItem','setLoadingSkeleton','getDate','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','354716aasnKa','editConversationTitle','_aiChatController','AI_CHAT_HISTORY_PIN_ACTION','setIsMaximized','itemsLoaded','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','loadConversation','toLocaleDateString','isPremiumPlugin','openChat','AI_CHAT_HISTORY_UNPIN_ACTION','removeConversation','2171688vzzVPn','handleRemovedConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','itemRemoved','840368XugVtt','AI_CHAT_HISTORY_ERROR_GENERIC','923053nAUzEw','length','updates','getItems','12038992GyEXRQ','AIChatHistoryController','pluginName','_handleSelectConversation','activateTab:history','view','15dEiAXl','updateItemLoadingState','init','listenTo','_clearItemLoading','resizeTabs','updateItemPinned'];_0x190c=function(){return _0x447832;};return _0x190c();}(function(_0x129022,_0x59187e){const _0x45f08e=_0x1f66,_0x4762d9=_0x129022();while(!![]){try{const _0xcf9e59=parseInt(_0x45f08e(0x212))/0x1+parseInt(_0x45f08e(0x210))/0x2+-parseInt(_0x45f08e(0x1d5))/0x3+-parseInt(_0x45f08e(0x1ff))/0x4*(-parseInt(_0x45f08e(0x21c))/0x5)+parseInt(_0x45f08e(0x20c))/0x6+parseInt(_0x45f08e(0x1c5))/0x7+-parseInt(_0x45f08e(0x216))/0x8;if(_0xcf9e59===_0x59187e)break;else _0x4762d9['push'](_0x4762d9['shift']());}catch(_0x2f85ee){_0x4762d9['push'](_0x4762d9['shift']());}}}(_0x190c,0x71ddb));import{ContextPlugin as _0x174407}from'ckeditor5/src/core.js';import{AIConnector as _0x4442f3}from'../aicore/aiconnector.js';import{AIChatController as _0x951fb9}from'../aichat/aichatcontroller.js';import{AITabs as _0x5e1c5f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5dedb5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23d30b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1ff641}from'../aicore/utils/common-translations.js';function _0x1f66(_0x21f97b,_0x17f81b){const _0x190c9b=_0x190c();return _0x1f66=function(_0x1f66f8,_0xa53a8e){_0x1f66f8=_0x1f66f8-0x1c4;let _0x2e760e=_0x190c9b[_0x1f66f8];return _0x2e760e;},_0x1f66(_0x21f97b,_0x17f81b);}export class AIChatHistoryController extends _0x174407{[_0x1ceb64(0x1d2)];[_0x1ceb64(0x1f2)];[_0x1ceb64(0x201)];static get[_0x1ceb64(0x1ef)](){return[_0x4442f3,_0x951fb9,_0x5dedb5,_0x5e1c5f];}static get[_0x1ceb64(0x218)](){const _0x5512d3=_0x1ceb64;return _0x5512d3(0x217);}static get[_0x1ceb64(0x1e7)](){return!0x0;}static get[_0x1ceb64(0x208)](){return!0x0;}[_0x1ceb64(0x21e)](){const _0x240de5=_0x1ceb64;this[_0x240de5(0x1d2)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x4442f3),this[_0x240de5(0x1f2)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x5dedb5),this[_0x240de5(0x201)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x951fb9);const _0x5ec7a8=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x5e1c5f),_0x41e847=this[_0x240de5(0x201)][_0x240de5(0x1d3)]();this[_0x240de5(0x1de)]=new _0x23d30b({'connector':this[_0x240de5(0x1d2)],'group':_0x41e847}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x20b),(_0x3453fc,_0x4fc2fc)=>{const _0x5485e8=_0x240de5;this[_0x5485e8(0x1ca)](_0x4fc2fc['id'],_0x5485e8(0x1e3)),this[_0x5485e8(0x1d1)](_0x4fc2fc['id']);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x200),(_0x402fca,_0x19734c)=>{const _0xe06501=_0x240de5;this[_0xe06501(0x1ca)](_0x19734c['id'],_0xe06501(0x1e9)),this[_0xe06501(0x1f8)](_0x19734c['id'],_0x19734c[_0xe06501(0x1e8)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x223),(_0x76877e,_0x5b731f)=>{const _0x21a039=_0x240de5;void 0x0!==_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e8)]&&this[_0x21a039(0x1f2)][_0x21a039(0x1ee)](_0x5b731f[_0x21a039(0x1ce)],_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e8)]),void 0x0!==_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e4)]&&this[_0x21a039(0x1e6)](),this[_0x21a039(0x220)](_0x5b731f[_0x21a039(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x20f),(_0x4349f1,_0x504364)=>{const _0x57fe2a=_0x240de5;this[_0x57fe2a(0x201)][_0x57fe2a(0x20d)](_0x504364[_0x57fe2a(0x1ce)]),this[_0x57fe2a(0x1f2)][_0x57fe2a(0x224)](_0x504364[_0x57fe2a(0x1ce)]),this[_0x57fe2a(0x220)](_0x504364[_0x57fe2a(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x204),()=>{const _0x1c8288=_0x240de5;this[_0x1c8288(0x1e6)]();}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x1fa),(_0x345736,_0xea8302)=>{const _0x39ad6e=_0x240de5;this[_0x39ad6e(0x225)](_0xea8302[_0x39ad6e(0x1fa)],_0xea8302[_0x39ad6e(0x1df)],_0xea8302[_0x39ad6e(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x227),(_0x48dfd6,_0x29925f)=>{const _0x2c14de=_0x240de5;this[_0x2c14de(0x219)](_0x29925f['id']);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x1d4),(_0x40ed87,_0x2004cc)=>{const _0x1d7caa=_0x240de5,_0x3704ec=_0x2004cc[_0x1d7caa(0x1e4)]?_0x1d7caa(0x1dc):_0x1d7caa(0x1f9);this[_0x1d7caa(0x1ca)](_0x2004cc['id'],_0x3704ec),this[_0x1d7caa(0x1dd)](_0x2004cc['id'],_0x2004cc[_0x1d7caa(0x1e4)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x209),()=>{const _0x249852=_0x240de5;_0x5ec7a8[_0x249852(0x21b)][_0x249852(0x226)](_0x249852(0x1c6));}),this[_0x240de5(0x21f)](this[_0x240de5(0x201)],_0x240de5(0x1cb),()=>{const _0x30b0d4=_0x240de5;this[_0x30b0d4(0x1e6)]();}),_0x5ec7a8[_0x240de5(0x21b)]['on'](_0x240de5(0x21a),()=>{const _0x302ee9=_0x240de5;this[_0x302ee9(0x1d6)]();}),this[_0x240de5(0x21f)](_0x5ec7a8,_0x240de5(0x1c9),(_0x378e63,_0x338d6f)=>{const _0x5306ac=_0x240de5;this[_0x5306ac(0x1f4)](_0x338d6f);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x221),()=>{const _0x57acc6=_0x240de5;_0x5ec7a8[_0x57acc6(0x1db)]();});}async[_0x1ceb64(0x1f8)](_0x56ded7,_0x446356){const _0x117980=_0x1ceb64;await this[_0x117980(0x1de)][_0x117980(0x1ee)](_0x56ded7,_0x446356);}async[_0x1ceb64(0x1dd)](_0x3750ac,_0x50dfc0){const _0x10905d=_0x1ceb64;await this[_0x10905d(0x1de)][_0x10905d(0x222)](_0x3750ac,_0x50dfc0);}async[_0x1ceb64(0x1d1)](_0x18b829){const _0x46190a=_0x1ceb64;await this[_0x46190a(0x1de)][_0x46190a(0x1fb)](_0x18b829);}async[_0x1ceb64(0x219)](_0x1a3ddc){const _0xf3143e=_0x1ceb64;await this[_0xf3143e(0x201)][_0xf3143e(0x206)](_0x1a3ddc);}async[_0x1ceb64(0x1d6)](){const _0x405d80=_0x1ceb64;this[_0x405d80(0x1f2)][_0x405d80(0x1da)](''),this[_0x405d80(0x1f2)][_0x405d80(0x1fc)](!0x0),await this[_0x405d80(0x1de)][_0x405d80(0x21e)](),this[_0x405d80(0x1f2)][_0x405d80(0x1fc)](!0x1);}[_0x1ceb64(0x1e6)](){const _0x5a1628=_0x1ceb64,_0x80708c=this[_0x5a1628(0x201)][_0x5a1628(0x1f0)]?.['id'],_0x1d2acf=this[_0x5a1628(0x1f7)]()[_0x5a1628(0x1cf)](_0x136de9=>({'title':_0x136de9[_0x5a1628(0x1e8)],'items':_0x136de9[_0x5a1628(0x1f6)][_0x5a1628(0x1cf)](_0x3b6cae=>({'id':_0x3b6cae['id'],'title':_0x3b6cae[_0x5a1628(0x1e8)]||_0x1ff641(this[_0x5a1628(0x1e2)][_0x5a1628(0x1f5)],_0x5a1628(0x1eb)),'createdAt':new Date(_0x3b6cae[_0x5a1628(0x1d0)])[_0x5a1628(0x207)](),'active':_0x3b6cae['id']===_0x80708c,'pinned':_0x3b6cae[_0x5a1628(0x1e4)]}))}));this[_0x5a1628(0x1f2)][_0x5a1628(0x1ea)](_0x1d2acf);}[_0x1ceb64(0x1ca)](_0x5511db,_0x23e567){const _0x588408=_0x1ceb64;this[_0x588408(0x1f2)][_0x588408(0x21d)](_0x5511db,_0x23e567,!0x0);}[_0x1ceb64(0x220)](_0x5b7d6f){const _0x27fbdb=_0x1ceb64;this[_0x27fbdb(0x1f2)][_0x27fbdb(0x21d)](_0x5b7d6f,null,!0x1);}[_0x1ceb64(0x225)](_0x35867c,_0xa65146,_0x4f7feb){const _0x6f2fd7=_0x1ceb64,_0xab1d06=this[_0x6f2fd7(0x1d8)](_0xa65146,_0x4f7feb);this[_0x6f2fd7(0x1f2)][_0x6f2fd7(0x1da)](_0xab1d06),_0x4f7feb&&this[_0x6f2fd7(0x220)](_0x4f7feb),this[_0x6f2fd7(0x1f2)][_0x6f2fd7(0x1fc)](!0x1);}[_0x1ceb64(0x1d8)](_0x35269c,_0x169bf7){const _0x1ff5ce=_0x1ceb64,_0x4eae2f=_0x169bf7?this[_0x1ff5ce(0x1de)][_0x1ff5ce(0x1ec)](_0x169bf7):null,_0x103dce=_0x4eae2f?.[_0x1ff5ce(0x1e8)]||_0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1eb));switch(_0x35269c){case _0x1ff5ce(0x1ee):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x205),_0x103dce);case _0x1ff5ce(0x222):{const _0x58f657=_0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x4eae2f?.[_0x1ff5ce(0x1e4)]?_0x1ff5ce(0x20a):_0x1ff5ce(0x202));return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1f3),[_0x58f657,_0x103dce]);}case _0x1ff5ce(0x1fb):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1fe),_0x103dce);case _0x1ff5ce(0x21e):case _0x1ff5ce(0x1c8):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1cc));default:return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x211));}}[_0x1ceb64(0x1f7)](){const _0x5ed77f=_0x1ceb64,_0x5bf362=new Date(),_0x15a075=new Date(_0x5bf362[_0x5ed77f(0x1e0)](),_0x5bf362[_0x5ed77f(0x1e1)](),_0x5bf362[_0x5ed77f(0x1fd)]()),_0x1f0695=new Date(_0x15a075);_0x1f0695[_0x5ed77f(0x1cd)](_0x1f0695[_0x5ed77f(0x1fd)]()-0x1);const _0x11ec98=new Date(_0x15a075);_0x11ec98[_0x5ed77f(0x1cd)](_0x11ec98[_0x5ed77f(0x1fd)]()-0xe);const _0x31419a=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'pinned':!0x0}),_0x391c22=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x15a075,'to':_0x15a075}),_0x404f94=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x1f0695,'to':_0x1f0695}),_0x48a89b=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x11ec98,'to':_0x1f0695}),_0x33372e=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'to':_0x11ec98}),_0x4cda6c=[];return _0x31419a[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x20e)),'items':_0x31419a}),_0x391c22[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1f1)),'items':_0x391c22}),_0x404f94[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1d7)),'items':_0x404f94}),_0x48a89b[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1c4)),'items':_0x48a89b}),_0x33372e[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1ed)),'items':_0x33372e}),_0x4cda6c;}[_0x1ceb64(0x1f4)](_0x555067){const _0x28b286=_0x1ceb64;this[_0x28b286(0x1f2)][_0x28b286(0x203)](_0x555067);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x492313=_0x3382;(function(_0xcca3f,_0x459252){const _0x51ea5b=_0x3382,_0x46c154=_0xcca3f();while(!![]){try{const _0x43919f=-parseInt(_0x51ea5b(0x1ef))/0x1*(-parseInt(_0x51ea5b(0x21a))/0x2)+parseInt(_0x51ea5b(0x208))/0x3+-parseInt(_0x51ea5b(0x212))/0x4+-parseInt(_0x51ea5b(0x20b))/0x5*(-parseInt(_0x51ea5b(0x205))/0x6)+parseInt(_0x51ea5b(0x210))/0x7+-parseInt(_0x51ea5b(0x206))/0x8*(parseInt(_0x51ea5b(0x201))/0x9)+parseInt(_0x51ea5b(0x1f0))/0xa*(-parseInt(_0x51ea5b(0x1f6))/0xb);if(_0x43919f===_0x459252)break;else _0x46c154['push'](_0x46c154['shift']());}catch(_0x5dff68){_0x46c154['push'](_0x46c154['shift']());}}}(_0x5149,0xbf627));import{ContextPlugin as _0x4c8a0c}from'ckeditor5/src/core.js';import{AITabs as _0x5771da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x11ea2c}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xfe36f2}from'./ui/aichathistoryview.js';function _0x3382(_0x1450b6,_0x4fee5d){const _0x514933=_0x5149();return _0x3382=function(_0x3382df,_0x17aa65){_0x3382df=_0x3382df-0x1ef;let _0x3857d1=_0x514933[_0x3382df];return _0x3857d1;},_0x3382(_0x1450b6,_0x4fee5d);}import{getTranslation as _0x286e9b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x492313(0x219),_0x492313(0x1f2),_0x492313(0x21d),_0x492313(0x20f),_0x492313(0x1fd),_0x492313(0x1fb),_0x492313(0x1f1)];function _0x5149(){const _0x4cd263=['setConversationPinned','10650206ZOvTBf','showResizeButton','2161292BHbuSe','AI_CHAT_HISTORY_HEADING','updateItemTitle','requires','isPremiumPlugin','updateHistoryItemsWithCategories','locale','showConversationHistory','2YgWlsH','updateItems','_historyView','editConversationTitle','98030QVklui','10BMSRhO','resizeTabs','removeConversation','context','setLoadingSkeleton','isOfficialPlugin','12420496cwThDy','pluginName','errorMessage','get','showError','openChat','view','selectConversation','hideError','updateItemLoadingState','addTab','1917CKtVQv','isMaximized','delegate','plugins','6MwScsc','33896cCUaeF','setIsMaximized','3878094WSCcgI','isLoading','removeHistoryItem','2218325dEpBuW','AIChatHistoryUI','AITabs','history'];_0x5149=function(){return _0x4cd263;};return _0x5149();}export class AIChatHistoryUI extends _0x4c8a0c{static get[_0x492313(0x215)](){return[_0x5771da];}[_0x492313(0x21c)];static get[_0x492313(0x1f7)](){const _0x26febf=_0x492313;return _0x26febf(0x20c);}static get[_0x492313(0x1f5)](){return!0x0;}static get[_0x492313(0x216)](){return!0x0;}constructor(_0x22ef36){const _0x4f5ced=_0x492313;super(_0x22ef36);const _0x32281d=this[_0x4f5ced(0x1f3)][_0x4f5ced(0x204)][_0x4f5ced(0x1f9)](_0x4f5ced(0x20d));this[_0x4f5ced(0x21c)]=new _0xfe36f2(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x32281d[_0x4f5ced(0x211)]),this[_0x4f5ced(0x21c)][_0x4f5ced(0x203)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x32281d[_0x4f5ced(0x1fc)][_0x4f5ced(0x200)]({'id':_0x4f5ced(0x20e),'buttonLabel':_0x286e9b(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x4f5ced(0x213)),'buttonIcon':_0x11ea2c,'order':0x0,'content':this[_0x4f5ced(0x21c)]});}[_0x492313(0x20a)](_0x21c81b){const _0x4fab34=_0x492313;this[_0x4fab34(0x21c)][_0x4fab34(0x20a)](_0x21c81b);}[_0x492313(0x21b)](_0x2cbd6d){const _0x441a5f=_0x492313;this[_0x441a5f(0x21c)][_0x441a5f(0x217)](_0x2cbd6d);}[_0x492313(0x214)](_0x4611bf,_0x58d515){const _0x366eb2=_0x492313;this[_0x366eb2(0x21c)][_0x366eb2(0x214)](_0x4611bf,_0x58d515);}[_0x492313(0x1ff)](_0x1838cd,_0x22c846,_0x464987){const _0x95210a=_0x492313;this[_0x95210a(0x21c)][_0x95210a(0x1ff)](_0x1838cd,_0x22c846,_0x464987);}[_0x492313(0x1f4)](_0x2a20ed){const _0xdaed1b=_0x492313;this[_0xdaed1b(0x21c)][_0xdaed1b(0x209)]=_0x2a20ed;}[_0x492313(0x1fa)](_0x5233df){const _0x21355a=_0x492313;this[_0x21355a(0x21c)][_0x21355a(0x1f8)]=_0x5233df;}[_0x492313(0x1fe)](){const _0x248061=_0x492313;this[_0x248061(0x21c)][_0x248061(0x1f8)]='';}[_0x492313(0x207)](_0x2e1af6){const _0x15f60=_0x492313;this[_0x15f60(0x21c)][_0x15f60(0x202)]=_0x2e1af6;}}
23
+ const _0x47d2ce=_0x386e;function _0x386e(_0x1175fa,_0x15c920){const _0x39999e=_0x3999();return _0x386e=function(_0x386eff,_0x4ee0ab){_0x386eff=_0x386eff-0x8a;let _0x5c2f6b=_0x39999e[_0x386eff];return _0x5c2f6b;},_0x386e(_0x1175fa,_0x15c920);}(function(_0x4e7ce3,_0x415c29){const _0xa096f4=_0x386e,_0x60ac9a=_0x4e7ce3();while(!![]){try{const _0x16de16=-parseInt(_0xa096f4(0xb3))/0x1+parseInt(_0xa096f4(0xb0))/0x2+-parseInt(_0xa096f4(0x8b))/0x3*(parseInt(_0xa096f4(0x9f))/0x4)+-parseInt(_0xa096f4(0xad))/0x5*(-parseInt(_0xa096f4(0x8e))/0x6)+parseInt(_0xa096f4(0xa4))/0x7*(-parseInt(_0xa096f4(0xb6))/0x8)+-parseInt(_0xa096f4(0x97))/0x9*(-parseInt(_0xa096f4(0xb2))/0xa)+parseInt(_0xa096f4(0xa0))/0xb*(parseInt(_0xa096f4(0xa5))/0xc);if(_0x16de16===_0x415c29)break;else _0x60ac9a['push'](_0x60ac9a['shift']());}catch(_0x5d1ee2){_0x60ac9a['push'](_0x60ac9a['shift']());}}}(_0x3999,0xdb6b7));import{ContextPlugin as _0x224153}from'ckeditor5/src/core.js';import{AITabs as _0x340210}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2078c6}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x28670d}from'./ui/aichathistoryview.js';import{getTranslation as _0x2220e5}from'../aicore/utils/common-translations.js';function _0x3999(){const _0x2ed3a5=['hideError','openChat','addTab','editConversationTitle','pluginName','AIChatHistoryUI','6130924psBHvz','143PrTyWm','AITabs','AI_CHAT_HISTORY_HEADING','history','1790649AEBSSA','2472324inblYg','removeConversation','showConversationHistory','errorMessage','isPremiumPlugin','showResizeButton','showError','isOfficialPlugin','53780mBXVqU','plugins','setConversationPinned','2568776xajIDk','resizeTabs','941560rGHDrl','1281864ZDYWpO','locale','setIsMaximized','56swUBOq','get','isMaximized','updateHistoryItemsWithCategories','updateItemTitle','3IGNQXl','_historyView','updateItems','282BDpJOX','isLoading','delegate','context','view','selectConversation','updateItemLoadingState','removeHistoryItem','requires','99wVsPHz','setLoadingSkeleton'];_0x3999=function(){return _0x2ed3a5;};return _0x3999();}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x47d2ce(0xa7),_0x47d2ce(0xa6),_0x47d2ce(0x9c),_0x47d2ce(0xaf),_0x47d2ce(0x93),_0x47d2ce(0x9a),_0x47d2ce(0xb1)];export class AIChatHistoryUI extends _0x224153{static get[_0x47d2ce(0x96)](){return[_0x340210];}[_0x47d2ce(0x8c)];static get[_0x47d2ce(0x9d)](){const _0x570a47=_0x47d2ce;return _0x570a47(0x9e);}static get[_0x47d2ce(0xac)](){return!0x0;}static get[_0x47d2ce(0xa9)](){return!0x0;}constructor(_0x41436f){const _0x4749b6=_0x47d2ce;super(_0x41436f);const _0x362041=this[_0x4749b6(0x91)][_0x4749b6(0xae)][_0x4749b6(0xb7)](_0x4749b6(0xa1));this[_0x4749b6(0x8c)]=new _0x28670d(this[_0x4749b6(0x91)][_0x4749b6(0xb4)],_0x362041[_0x4749b6(0xaa)]),this[_0x4749b6(0x8c)][_0x4749b6(0x90)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x362041[_0x4749b6(0x92)][_0x4749b6(0x9b)]({'id':_0x4749b6(0xa3),'buttonLabel':_0x2220e5(this[_0x4749b6(0x91)][_0x4749b6(0xb4)],_0x4749b6(0xa2)),'buttonIcon':_0x2078c6,'order':0x0,'content':this[_0x4749b6(0x8c)]});}[_0x47d2ce(0x95)](_0x369ad6){const _0xb8fdd0=_0x47d2ce;this[_0xb8fdd0(0x8c)][_0xb8fdd0(0x95)](_0x369ad6);}[_0x47d2ce(0x8d)](_0x21814d){const _0x8477c2=_0x47d2ce;this[_0x8477c2(0x8c)][_0x8477c2(0xb9)](_0x21814d);}[_0x47d2ce(0x8a)](_0x1189a3,_0x1fdcd6){const _0x3aac61=_0x47d2ce;this[_0x3aac61(0x8c)][_0x3aac61(0x8a)](_0x1189a3,_0x1fdcd6);}[_0x47d2ce(0x94)](_0xedb3da,_0x42b4d2,_0x1bce5c){const _0x87d64f=_0x47d2ce;this[_0x87d64f(0x8c)][_0x87d64f(0x94)](_0xedb3da,_0x42b4d2,_0x1bce5c);}[_0x47d2ce(0x98)](_0x5605ca){const _0x123278=_0x47d2ce;this[_0x123278(0x8c)][_0x123278(0x8f)]=_0x5605ca;}[_0x47d2ce(0xab)](_0x1c4ce4){const _0x17472e=_0x47d2ce;this[_0x17472e(0x8c)][_0x17472e(0xa8)]=_0x1c4ce4;}[_0x47d2ce(0x99)](){const _0x437a25=_0x47d2ce;this[_0x437a25(0x8c)][_0x437a25(0xa8)]='';}[_0x47d2ce(0xb5)](_0x24bb37){const _0xf1c95f=_0x47d2ce;this[_0xf1c95f(0x8c)][_0xf1c95f(0xb8)]=_0x24bb37;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x7e3d(_0x325910,_0x2e8b46){const _0x453c99=_0x453c();return _0x7e3d=function(_0x7e3d43,_0x30e5b0){_0x7e3d43=_0x7e3d43-0x185;let _0x709724=_0x453c99[_0x7e3d43];return _0x709724;},_0x7e3d(_0x325910,_0x2e8b46);}function _0x453c(){const _0xcc5006=['getFullYear','getMonth','push','error','1962030KowbFY','connector','updatePinned','getTime','loadItems','removeItem','deleteConversation','createdAt','7366HatXHq','getDate','findIndex','updateItemPinned','updateItemTitle','2753502DSQsmS','pinned','execute','fetchConversations','group','getItems','215kHsKNa','itemRemoved','updateConversation','762592QfgYiG','17878230SzBtkb','4084328kBrQma','splice','updateTitle','init','from','addItem','map','itemUpdated','3592780PSgJZN','getResult','56PaYWiv','items','getItem','getConversations','itemsLoaded','filter','find','fire'];_0x453c=function(){return _0xcc5006;};return _0x453c();}const _0x763b8b=_0x7e3d;(function(_0x21cda4,_0x4d97d4){const _0x2c3a4b=_0x7e3d,_0x133eae=_0x21cda4();while(!![]){try{const _0x20e8f2=-parseInt(_0x2c3a4b(0x1ab))/0x1*(-parseInt(_0x2c3a4b(0x1a0))/0x2)+-parseInt(_0x2c3a4b(0x1a5))/0x3+-parseInt(_0x2c3a4b(0x1b0))/0x4+-parseInt(_0x2c3a4b(0x18a))/0x5+-parseInt(_0x2c3a4b(0x198))/0x6+-parseInt(_0x2c3a4b(0x18c))/0x7*(-parseInt(_0x2c3a4b(0x1ae))/0x8)+parseInt(_0x2c3a4b(0x1af))/0x9;if(_0x20e8f2===_0x4d97d4)break;else _0x133eae['push'](_0x133eae['shift']());}catch(_0x129b99){_0x133eae['push'](_0x133eae['shift']());}}}(_0x453c,0x87d8e));import{EmitterMixin as _0x513568}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x227e25}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x513568(){[_0x763b8b(0x18d)]=[];[_0x763b8b(0x199)];[_0x763b8b(0x1a9)];constructor({connector:_0x200935,group:_0x19df55}){const _0x1317db=_0x763b8b;super(),this[_0x1317db(0x199)]=_0x200935,this[_0x1317db(0x1a9)]=_0x19df55;}async[_0x763b8b(0x185)](){const _0x2843a2=_0x763b8b;try{const _0x26a9d3=this[_0x2843a2(0x199)][_0x2843a2(0x1a8)](this[_0x2843a2(0x1a9)]),_0x4bef37=await _0x26a9d3[_0x2843a2(0x18f)]();this[_0x2843a2(0x19c)](_0x4bef37);}catch(_0x3938ba){this[_0x2843a2(0x193)](_0x2843a2(0x197),{'error':_0x3938ba,'operation':_0x2843a2(0x185)});}}[_0x763b8b(0x187)](_0x2c86af){const _0x9933a3=_0x763b8b;this[_0x9933a3(0x18d)][_0x9933a3(0x196)](_0x2c86af);}async[_0x763b8b(0x19d)](_0x23565b){const _0x1fd9cb=_0x763b8b,_0x3ba845=this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1a2)](_0x4c7982=>_0x4c7982['id']===_0x23565b);if(-0x1===_0x3ba845)return!0x1;try{return await this[_0x1fd9cb(0x199)][_0x1fd9cb(0x19e)](_0x23565b)[_0x1fd9cb(0x1a7)](),this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1b1)](_0x3ba845,0x1),this[_0x1fd9cb(0x193)](_0x1fd9cb(0x1ac),{'itemId':_0x23565b}),!0x0;}catch(_0x47d92c){return this[_0x1fd9cb(0x193)](_0x1fd9cb(0x197),{'error':_0x47d92c,'operation':_0x1fd9cb(0x19d),'itemId':_0x23565b}),!0x1;}}[_0x763b8b(0x18e)](_0x37486f){const _0x347ec9=_0x763b8b;return this[_0x347ec9(0x18d)][_0x347ec9(0x192)](_0xe89a9=>_0xe89a9['id']===_0x37486f);}async[_0x763b8b(0x1a4)](_0x4c1f3b,_0x3fd05a){const _0x25506e=_0x763b8b,_0x376f79=this[_0x25506e(0x18e)](_0x4c1f3b);if(!_0x376f79)return!0x1;try{return await this[_0x25506e(0x199)][_0x25506e(0x1ad)](_0x4c1f3b,{'title':_0x3fd05a})[_0x25506e(0x18b)](),_0x376f79[_0x25506e(0x1b2)](_0x3fd05a),this[_0x25506e(0x193)](_0x25506e(0x189),{'itemId':_0x4c1f3b,'updates':{'title':_0x3fd05a}}),!0x0;}catch(_0x29527a){return this[_0x25506e(0x193)](_0x25506e(0x197),{'error':_0x29527a,'operation':_0x25506e(0x1a4),'itemId':_0x4c1f3b}),!0x1;}}async[_0x763b8b(0x1a3)](_0xc811be,_0x5f329b){const _0x2bf3e0=_0x763b8b,_0x1dcd97=this[_0x2bf3e0(0x18e)](_0xc811be);if(!_0x1dcd97)return!0x1;try{return await this[_0x2bf3e0(0x199)][_0x2bf3e0(0x1ad)](_0xc811be,{'pinned':_0x5f329b})[_0x2bf3e0(0x18b)](),_0x1dcd97[_0x2bf3e0(0x19a)](_0x5f329b),this[_0x2bf3e0(0x193)](_0x2bf3e0(0x189),{'itemId':_0xc811be,'updates':{'pinned':_0x5f329b}}),!0x0;}catch(_0x54b993){return this[_0x2bf3e0(0x193)](_0x2bf3e0(0x197),{'error':_0x54b993,'operation':_0x2bf3e0(0x1a3),'itemId':_0xc811be}),!0x1;}}[_0x763b8b(0x19c)](_0x41a115){const _0x3f05bf=_0x763b8b;try{this[_0x3f05bf(0x18d)]=[],_0x41a115[_0x3f05bf(0x188)](_0x44d73c=>{const _0x2d4a5b=_0x3f05bf;this[_0x2d4a5b(0x187)](new _0x227e25(_0x44d73c));}),this[_0x3f05bf(0x193)](_0x3f05bf(0x190),{'items':[...this[_0x3f05bf(0x18d)]]});}catch(_0x2f72ae){this[_0x3f05bf(0x193)](_0x3f05bf(0x197),{'error':_0x2f72ae,'operation':_0x3f05bf(0x19c)});}}[_0x763b8b(0x1aa)](_0x4669a4={}){const _0x355279=_0x763b8b,_0x19fcac=void 0x0!==_0x4669a4[_0x355279(0x1a6)]&&_0x4669a4[_0x355279(0x1a6)],_0x4c5ab0=_0x4669a4[_0x355279(0x186)]?new Date(_0x4669a4[_0x355279(0x186)][_0x355279(0x194)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x195)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x1a1)]()):null,_0x18323a=_0x4669a4['to']?new Date(_0x4669a4['to'][_0x355279(0x194)](),_0x4669a4['to'][_0x355279(0x195)](),_0x4669a4['to'][_0x355279(0x1a1)]()):null;return this[_0x355279(0x18d)][_0x355279(0x191)](_0x3999a0=>{const _0x366539=_0x355279;if(_0x3999a0[_0x366539(0x1a6)]!==_0x19fcac)return!0x1;if(_0x18323a){const _0x1df78d=new Date(_0x3999a0[_0x366539(0x19f)][_0x366539(0x194)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x195)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x1a1)]());return _0x4c5ab0?_0x4c5ab0[_0x366539(0x19b)]()===_0x18323a[_0x366539(0x19b)]()?_0x1df78d[_0x366539(0x19b)]()===_0x4c5ab0[_0x366539(0x19b)]():_0x1df78d<_0x18323a&&_0x1df78d>=_0x4c5ab0:_0x1df78d<_0x18323a;}return!0x0;});}}
23
+ const _0x154cb7=_0x3ed1;(function(_0x584b98,_0x105537){const _0x60d44e=_0x3ed1,_0x4f0113=_0x584b98();while(!![]){try{const _0x51ffeb=parseInt(_0x60d44e(0x184))/0x1+parseInt(_0x60d44e(0x172))/0x2+-parseInt(_0x60d44e(0x17e))/0x3+-parseInt(_0x60d44e(0x16c))/0x4+-parseInt(_0x60d44e(0x16b))/0x5+-parseInt(_0x60d44e(0x18c))/0x6+-parseInt(_0x60d44e(0x160))/0x7*(-parseInt(_0x60d44e(0x17c))/0x8);if(_0x51ffeb===_0x105537)break;else _0x4f0113['push'](_0x4f0113['shift']());}catch(_0x436df4){_0x4f0113['push'](_0x4f0113['shift']());}}}(_0xda46,0x4245c));import{EmitterMixin as _0x46ba6f}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x329cfd}from'./aichathistoryitem.js';function _0xda46(){const _0x252bd3=['8YdnSfP','getDate','328245idFcVL','splice','push','find','createdAt','init','246570dRcyDB','addItem','loadItems','updateTitle','fire','from','getTime','error','3234594hKIqyL','7608013gArUll','updateItemPinned','getMonth','fetchConversations','getItems','deleteConversation','itemRemoved','group','getItem','itemUpdated','updateItemTitle','926445lSSKNz','1461876oRnbdl','getConversations','items','getResult','pinned','removeItem','274590cndaMQ','itemsLoaded','updateConversation','map','findIndex','updatePinned','filter','execute','getFullYear','connector'];_0xda46=function(){return _0x252bd3;};return _0xda46();}function _0x3ed1(_0x3c8fba,_0x32275e){const _0xda4641=_0xda46();return _0x3ed1=function(_0x3ed145,_0x2e93ba){_0x3ed145=_0x3ed145-0x160;let _0x105100=_0xda4641[_0x3ed145];return _0x105100;},_0x3ed1(_0x3c8fba,_0x32275e);}export class AIChatHistoryConversations extends _0x46ba6f(){[_0x154cb7(0x16e)]=[];[_0x154cb7(0x17b)];[_0x154cb7(0x167)];constructor({connector:_0x59a57f,group:_0x2d51b6}){const _0x5b22d9=_0x154cb7;super(),this[_0x5b22d9(0x17b)]=_0x59a57f,this[_0x5b22d9(0x167)]=_0x2d51b6;}async[_0x154cb7(0x183)](){const _0xde0eff=_0x154cb7;try{const _0x55f561=this[_0xde0eff(0x17b)][_0xde0eff(0x163)](this[_0xde0eff(0x167)]),_0x4b1421=await _0x55f561[_0xde0eff(0x16d)]();this[_0xde0eff(0x186)](_0x4b1421);}catch(_0x1c0844){this[_0xde0eff(0x188)](_0xde0eff(0x18b),{'error':_0x1c0844,'operation':_0xde0eff(0x183)});}}[_0x154cb7(0x185)](_0x5dbb8e){const _0x292ccc=_0x154cb7;this[_0x292ccc(0x16e)][_0x292ccc(0x180)](_0x5dbb8e);}async[_0x154cb7(0x171)](_0x4720b8){const _0x44f98d=_0x154cb7,_0x2b18b7=this[_0x44f98d(0x16e)][_0x44f98d(0x176)](_0x2e1b45=>_0x2e1b45['id']===_0x4720b8);if(-0x1===_0x2b18b7)return!0x1;try{return await this[_0x44f98d(0x17b)][_0x44f98d(0x165)](_0x4720b8)[_0x44f98d(0x179)](),this[_0x44f98d(0x16e)][_0x44f98d(0x17f)](_0x2b18b7,0x1),this[_0x44f98d(0x188)](_0x44f98d(0x166),{'itemId':_0x4720b8}),!0x0;}catch(_0x110560){return this[_0x44f98d(0x188)](_0x44f98d(0x18b),{'error':_0x110560,'operation':_0x44f98d(0x171),'itemId':_0x4720b8}),!0x1;}}[_0x154cb7(0x168)](_0x421b03){const _0x3adf78=_0x154cb7;return this[_0x3adf78(0x16e)][_0x3adf78(0x181)](_0x57a14f=>_0x57a14f['id']===_0x421b03);}async[_0x154cb7(0x16a)](_0x4364ae,_0x21c286){const _0x406707=_0x154cb7,_0xe307c8=this[_0x406707(0x168)](_0x4364ae);if(!_0xe307c8)return!0x1;try{return await this[_0x406707(0x17b)][_0x406707(0x174)](_0x4364ae,{'title':_0x21c286})[_0x406707(0x16f)](),_0xe307c8[_0x406707(0x187)](_0x21c286),this[_0x406707(0x188)](_0x406707(0x169),{'itemId':_0x4364ae,'updates':{'title':_0x21c286}}),!0x0;}catch(_0x1bfe6a){return this[_0x406707(0x188)](_0x406707(0x18b),{'error':_0x1bfe6a,'operation':_0x406707(0x16a),'itemId':_0x4364ae}),!0x1;}}async[_0x154cb7(0x161)](_0x62bf52,_0x378cfb){const _0x4bf0fc=_0x154cb7,_0x797c8e=this[_0x4bf0fc(0x168)](_0x62bf52);if(!_0x797c8e)return!0x1;try{return await this[_0x4bf0fc(0x17b)][_0x4bf0fc(0x174)](_0x62bf52,{'pinned':_0x378cfb})[_0x4bf0fc(0x16f)](),_0x797c8e[_0x4bf0fc(0x177)](_0x378cfb),this[_0x4bf0fc(0x188)](_0x4bf0fc(0x169),{'itemId':_0x62bf52,'updates':{'pinned':_0x378cfb}}),!0x0;}catch(_0x367d56){return this[_0x4bf0fc(0x188)](_0x4bf0fc(0x18b),{'error':_0x367d56,'operation':_0x4bf0fc(0x161),'itemId':_0x62bf52}),!0x1;}}[_0x154cb7(0x186)](_0x4da46d){const _0x43ffe4=_0x154cb7;try{this[_0x43ffe4(0x16e)]=[],_0x4da46d[_0x43ffe4(0x175)](_0x80a5c1=>{const _0x5c1b06=_0x43ffe4;this[_0x5c1b06(0x185)](new _0x329cfd(_0x80a5c1));}),this[_0x43ffe4(0x188)](_0x43ffe4(0x173),{'items':[...this[_0x43ffe4(0x16e)]]});}catch(_0x307be1){this[_0x43ffe4(0x188)](_0x43ffe4(0x18b),{'error':_0x307be1,'operation':_0x43ffe4(0x186)});}}[_0x154cb7(0x164)](_0x28c0e4={}){const _0xcd2744=_0x154cb7,_0x27a698=void 0x0!==_0x28c0e4[_0xcd2744(0x170)]&&_0x28c0e4[_0xcd2744(0x170)],_0x50532c=_0x28c0e4[_0xcd2744(0x189)]?new Date(_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x17a)](),_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x162)](),_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x17d)]()):null,_0x3e0627=_0x28c0e4['to']?new Date(_0x28c0e4['to'][_0xcd2744(0x17a)](),_0x28c0e4['to'][_0xcd2744(0x162)](),_0x28c0e4['to'][_0xcd2744(0x17d)]()):null;return this[_0xcd2744(0x16e)][_0xcd2744(0x178)](_0x1073b6=>{const _0x5451b5=_0xcd2744;if(_0x1073b6[_0x5451b5(0x170)]!==_0x27a698)return!0x1;if(_0x3e0627){const _0x2cb8c7=new Date(_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x17a)](),_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x162)](),_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x17d)]());return _0x50532c?_0x50532c[_0x5451b5(0x18a)]()===_0x3e0627[_0x5451b5(0x18a)]()?_0x2cb8c7[_0x5451b5(0x18a)]()===_0x50532c[_0x5451b5(0x18a)]():_0x2cb8c7<_0x3e0627&&_0x2cb8c7>=_0x50532c:_0x2cb8c7<_0x3e0627;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x213b4a=_0x56ec;function _0x56ec(_0x1d825e,_0x2abad0){var _0x5294ad=_0x5294();return _0x56ec=function(_0x56ec2a,_0x10e767){_0x56ec2a=_0x56ec2a-0xdc;var _0x3272b9=_0x5294ad[_0x56ec2a];return _0x3272b9;},_0x56ec(_0x1d825e,_0x2abad0);}(function(_0x21e1bf,_0x2ecc49){var _0x210ccd=_0x56ec,_0x45fac0=_0x21e1bf();while(!![]){try{var _0x3d37ee=-parseInt(_0x210ccd(0xe7))/0x1+-parseInt(_0x210ccd(0xe3))/0x2+-parseInt(_0x210ccd(0xdf))/0x3*(parseInt(_0x210ccd(0xe4))/0x4)+parseInt(_0x210ccd(0xdc))/0x5*(-parseInt(_0x210ccd(0xe0))/0x6)+parseInt(_0x210ccd(0xe8))/0x7+-parseInt(_0x210ccd(0xe2))/0x8+parseInt(_0x210ccd(0xe6))/0x9;if(_0x3d37ee===_0x2ecc49)break;else _0x45fac0['push'](_0x45fac0['shift']());}catch(_0x434dd6){_0x45fac0['push'](_0x45fac0['shift']());}}}(_0x5294,0x48784));function _0x5294(){var _0x186bfd=['486Fgcvik','title','101992BURDIv','966476EpAPAE','36Ivqknm','set','6511023imlNzS','165575urtaHy','3792327oBqXWK','pinned','updateTitle','updatePinned','14585gcpPuB','createdAt','updatedAt','23511IKQdjh'];_0x5294=function(){return _0x186bfd;};return _0x5294();}import{ObservableMixin as _0x267f1a}from'ckeditor5/src/utils.js';import{escape as _0x16f5b4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x267f1a(){['id'];[_0x213b4a(0xdd)];constructor({id:_0x2c9d93,title:_0x3bf094,createdAt:_0x284f09,updatedAt:_0x11e9f6,pinned:_0x3925c1}){var _0x3a612d=_0x213b4a;super(),this['id']=_0x2c9d93,this[_0x3a612d(0xdd)]=new Date(_0x284f09),this[_0x3a612d(0xe5)](_0x3a612d(0xe1),_0x3bf094),this[_0x3a612d(0xe5)](_0x3a612d(0xde),_0x11e9f6?new Date(_0x11e9f6):null),this[_0x3a612d(0xe5)](_0x3a612d(0xe9),_0x3925c1||!0x1);}[_0x213b4a(0xea)](_0x1d6338){var _0x12c962=_0x213b4a;this[_0x12c962(0xe5)](_0x12c962(0xe1),_0x16f5b4(_0x1d6338)),this[_0x12c962(0xde)]=new Date();}[_0x213b4a(0xeb)](_0x17ac8b){var _0x13623e=_0x213b4a;this[_0x13623e(0xe5)](_0x13623e(0xe9),_0x17ac8b),this[_0x13623e(0xde)]=new Date();}}
23
+ var _0x3207d8=_0x46c7;(function(_0x2528af,_0x1c686a){var _0x45ed9a=_0x46c7,_0x100e6f=_0x2528af();while(!![]){try{var _0x1fce99=parseInt(_0x45ed9a(0xfd))/0x1*(-parseInt(_0x45ed9a(0x102))/0x2)+-parseInt(_0x45ed9a(0x101))/0x3*(-parseInt(_0x45ed9a(0x100))/0x4)+-parseInt(_0x45ed9a(0xf4))/0x5+-parseInt(_0x45ed9a(0xfa))/0x6*(parseInt(_0x45ed9a(0xf6))/0x7)+-parseInt(_0x45ed9a(0xff))/0x8*(-parseInt(_0x45ed9a(0xf9))/0x9)+-parseInt(_0x45ed9a(0x104))/0xa+parseInt(_0x45ed9a(0xfb))/0xb;if(_0x1fce99===_0x1c686a)break;else _0x100e6f['push'](_0x100e6f['shift']());}catch(_0x173d31){_0x100e6f['push'](_0x100e6f['shift']());}}}(_0x2d94,0xd2389));function _0x46c7(_0x2fdf42,_0x2d049e){var _0x2d9402=_0x2d94();return _0x46c7=function(_0x46c742,_0x388f0a){_0x46c742=_0x46c742-0xf3;var _0x169fbb=_0x2d9402[_0x46c742];return _0x169fbb;},_0x46c7(_0x2fdf42,_0x2d049e);}import{ObservableMixin as _0x152dca}from'ckeditor5/src/utils.js';import{escape as _0x154c5b}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x152dca(){['id'];[_0x3207d8(0x103)];constructor({id:_0xef613f,title:_0x1254f5,createdAt:_0x18b0a2,updatedAt:_0x9466b0,pinned:_0x241855}){var _0x20eeec=_0x3207d8;super(),this['id']=_0xef613f,this[_0x20eeec(0x103)]=new Date(_0x18b0a2),this[_0x20eeec(0xfc)](_0x20eeec(0xf5),_0x1254f5),this[_0x20eeec(0xfc)](_0x20eeec(0xfe),_0x9466b0?new Date(_0x9466b0):null),this[_0x20eeec(0xfc)](_0x20eeec(0xf8),_0x241855||!0x1);}[_0x3207d8(0xf3)](_0x4c61ee){var _0x530ec3=_0x3207d8;this[_0x530ec3(0xfc)](_0x530ec3(0xf5),_0x154c5b(_0x4c61ee)),this[_0x530ec3(0xfe)]=new Date();}[_0x3207d8(0xf7)](_0x13f5e7){var _0x11070f=_0x3207d8;this[_0x11070f(0xfc)](_0x11070f(0xf8),_0x13f5e7),this[_0x11070f(0xfe)]=new Date();}}function _0x2d94(){var _0x2ea253=['updatedAt','5080ajFeWW','4575728ofOuRQ','3jqjEBg','250PUvefO','createdAt','3647290UoMlPV','updateTitle','556250zlbcdj','title','22309dxtxAd','updatePinned','pinned','24147HTQDDW','942kRBVal','3705801zVREro','set','10777BhXavC'];_0x2d94=function(){return _0x2ea253;};return _0x2d94();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4189(_0x45f60f,_0x412faa){const _0x1a6065=_0x1a60();return _0x4189=function(_0x418936,_0x480330){_0x418936=_0x418936-0x1c3;let _0x348e5f=_0x1a6065[_0x418936];return _0x348e5f;},_0x4189(_0x45f60f,_0x412faa);}const _0x2fae02=_0x4189;(function(_0x14e67b,_0x332e69){const _0x5cf62e=_0x4189,_0x28a29d=_0x14e67b();while(!![]){try{const _0x7df415=parseInt(_0x5cf62e(0x1db))/0x1*(parseInt(_0x5cf62e(0x211))/0x2)+parseInt(_0x5cf62e(0x1c9))/0x3*(-parseInt(_0x5cf62e(0x1fc))/0x4)+parseInt(_0x5cf62e(0x1f2))/0x5*(-parseInt(_0x5cf62e(0x1fb))/0x6)+parseInt(_0x5cf62e(0x221))/0x7+-parseInt(_0x5cf62e(0x1ff))/0x8+-parseInt(_0x5cf62e(0x21f))/0x9+parseInt(_0x5cf62e(0x220))/0xa;if(_0x7df415===_0x332e69)break;else _0x28a29d['push'](_0x28a29d['shift']());}catch(_0x3091cc){_0x28a29d['push'](_0x28a29d['shift']());}}}(_0x1a60,0xadec8));function _0x1a60(){const _0x5ee34b=['28306iRINTt','set','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','ck-ai-chat-history__item-check','ck-ai-loader__text','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','panelView','bind','clear','_createEditInputView','addMany','ck-hidden','AI_CHAT_HISTORY_REMOVE_CONFIRM','div','listitem','span','match','isMatching','_createCancelEditButtonView','3114380trawHZ','showConfirm','isOn','loadingState','ck-ai-chat-history__item-row','locale','LOADING_LABELS','edit:cancel','change:isEdit','12zdixwu','28116yYerju','isVisible','ck-ai-loader','6059344zSFcuO','ck-ai-chat-history__item--edit','buttonView','ck-ai-chat-history__item-date','text','_createPinButtonView','ck-ai-chat-history__item-content','add','mainContent','Enter','_commitEditInputValue','label','panelPosition','bindTemplate','tiny','items','AI_CHAT_HISTORY_PIN_BUTTON','pinned','88TbBkhM','removeConversation','isEdit','highlightText','fire','extendTemplate','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','withText','ck-ai-chat-history__item-main-content','key','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','9153153cAAgPL','20551030ZhATTt','7009527fuhrWp','updateTitle','ck-ai-chat-history__item','click','_createMenuDropdownView','children','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-actions','actions','element','243oJNfee','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_CANCEL','string','createCollection','selectConversation','updateLoadingState','_titleView','ck-confirm-view-cancel','execute','setConversationPinned','AI_CHAT_HISTORY_LOADING_REMOVING','_createSpinnerView','setTemplate','focus','value','editConversationTitle'];_0x1a60=function(){return _0x5ee34b;};return _0x1a60();}import{ListItemView as _0x34eda4,HighlightedTextView as _0x4e2b00,ButtonView as _0x26eb2b,ListView as _0x199220,IconView as _0x313751,createDropdown as _0x5ba9b9,InputTextView as _0x50dc56}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x40cbb9,IconPin as _0x5471c7,IconCheck as _0x5a8465,IconCancel as _0xc312d8}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x200ef2,ConfirmMixin as _0x234898}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdc4994}from'es-toolkit/compat';import{AISpinnerView as _0x276c40}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x456c4e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x234898(_0x34eda4){['id'];static [_0x2fae02(0x1f8)]={'remove':_0x2fae02(0x1d5),'rename':_0x2fae02(0x1c5),'pin':_0x2fae02(0x218),'unpin':_0x2fae02(0x1e3)};[_0x2fae02(0x1c7)];[_0x2fae02(0x207)];[_0x2fae02(0x1d1)];constructor(_0x37e899,_0x46c89e){const _0x49ff33=_0x2fae02;super(_0x37e899);const _0x711183=this[_0x49ff33(0x20c)];this[_0x49ff33(0x1dc)](_0x49ff33(0x213),!0x1),this[_0x49ff33(0x1dc)](_0x49ff33(0x1fd),!0x0),this[_0x49ff33(0x1dc)](_0x49ff33(0x210),!!_0x46c89e[_0x49ff33(0x210)]),this[_0x49ff33(0x1dc)](_0x49ff33(0x1f5),null),this['id']=_0x46c89e['id'];const {title:_0x5c6631,createdAt:_0x307c1b,active:_0x439571=!0x1}=_0x46c89e;this[_0x49ff33(0x1d1)]=new _0x4e2b00(),this[_0x49ff33(0x1d1)][_0x49ff33(0x203)]=_0x5c6631,this[_0x49ff33(0x1d1)][_0x49ff33(0x216)]({'attributes':{'class':[_0x49ff33(0x1e2)]}});const _0x44008e=this[_0x49ff33(0x21e)](),_0x19772d=this[_0x49ff33(0x204)](_0x37e899),_0x3c3e28=this[_0x49ff33(0x1c3)](),_0x11bdd5=this[_0x49ff33(0x1e8)](_0x37e899,_0x5c6631),_0x3a9beb=this[_0x49ff33(0x219)](_0x37e899,_0x11bdd5),_0x34d791=this[_0x49ff33(0x1f1)](_0x37e899,_0x11bdd5);this[_0x49ff33(0x1c7)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)][_0x49ff33(0x206)](this[_0x49ff33(0x1d1)]),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x19772d),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x3c3e28),this['on'](_0x49ff33(0x1fa),(_0x37d252,_0x4b623b,_0x3463b0)=>{const _0xff1eb8=_0x49ff33;this[_0xff1eb8(0x1c7)][_0xff1eb8(0x1e7)](),this[_0xff1eb8(0x207)][_0xff1eb8(0x1e7)](),_0x3463b0?(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3a9beb),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x34d791),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](_0x11bdd5),_0x11bdd5[_0xff1eb8(0x1c8)][_0xff1eb8(0x1d8)]()):(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x19772d),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3c3e28),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](this[_0xff1eb8(0x1d1)]));}),this[_0x49ff33(0x1d7)]({'tag':'li','attributes':{'class':[_0x49ff33(0x223),_0x439571?_0x49ff33(0x1e4):'',_0x711183['if'](_0x49ff33(0x1fd),_0x49ff33(0x1ea),_0x5b16c7=>!_0x5b16c7),_0x711183['if'](_0x49ff33(0x213),_0x49ff33(0x200))],'role':_0x49ff33(0x1ed)},'children':[{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x1cb)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e0),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x1e984f=>!!_0x1e984f)]},'children':_0x439571?[_0x44008e]:[]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1fe),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x4a6281=>!_0x4a6281)]},'children':[this[_0x49ff33(0x1d6)]()]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1f6)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x205)]},'on':{'click':this[_0x49ff33(0x20c)]['to'](_0x49ff33(0x224))},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x21b)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e2),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x3d57c3=>!!_0x3d57c3)]},'children':this[_0x49ff33(0x207)]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e1),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x52cab2=>!_0x52cab2)]},'children':[{'text':_0x711183['to'](_0x49ff33(0x1f5),_0x3755bb=>_0x3755bb?_0x456c4e(this[_0x49ff33(0x1f7)],AIChatHistoryListItemView[_0x49ff33(0x1f8)][_0x3755bb]):'')}]}]},{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x202)]},'children':[_0x307c1b]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1c6)]},'children':this[_0x49ff33(0x1c7)]}]}]}),this['on'](_0x49ff33(0x224),()=>{const _0x5ee292=_0x49ff33;this[_0x5ee292(0x213)]||this[_0x5ee292(0x215)](_0x5ee292(0x1cf),{'id':this['id']});});}[_0x2fae02(0x222)](_0x3b4e10){const _0x5ce139=_0x2fae02;this[_0x5ce139(0x1d1)][_0x5ce139(0x203)]=_0xdc4994(_0x3b4e10);}[_0x2fae02(0x1d0)](_0x176c75,_0x5a2517){const _0x3f1945=_0x2fae02;this[_0x3f1945(0x1dc)](_0x3f1945(0x1f5),_0x5a2517?_0x176c75:null);}[_0x2fae02(0x21e)](){const _0x249b6d=_0x2fae02,_0x3bc3f1=new _0x313751();return _0x3bc3f1[_0x249b6d(0x1dc)]({'content':_0x5a8465}),_0x3bc3f1;}[_0x2fae02(0x204)](_0x45c90f){const _0x61bb72=_0x2fae02,_0x5acf84=new _0x26eb2b(_0x45c90f);return _0x5acf84[_0x61bb72(0x1dc)]({'label':_0x456c4e(_0x45c90f,_0x61bb72(0x20f)),'icon':_0x5471c7,'withText':!0x1,'tooltip':!0x0}),_0x5acf84[_0x61bb72(0x1e6)](_0x61bb72(0x1f4))['to'](this,_0x61bb72(0x210)),_0x5acf84['on'](_0x61bb72(0x1d3),()=>{const _0x155682=_0x61bb72,_0x5c76e3=!this[_0x155682(0x210)];this[_0x155682(0x215)](_0x155682(0x1d4),{'id':this['id'],'pinned':_0x5c76e3});}),_0x5acf84;}[_0x2fae02(0x1c3)](){const _0x4838bd=_0x2fae02,_0x35be4d=_0x5ba9b9(this[_0x4838bd(0x1f7)],_0x200ef2),_0x26ab8e=_0x35be4d[_0x4838bd(0x1e5)][_0x4838bd(0x1c4)];_0x35be4d[_0x4838bd(0x201)][_0x4838bd(0x1dc)]({'label':_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1de)),'icon':_0x40cbb9}),_0x35be4d[_0x4838bd(0x20b)]='sw';const _0x57c025=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x57c025[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x21d)),_0x57c025[_0x4838bd(0x21a)]=!0x0,_0x57c025['on'](_0x4838bd(0x1d3),()=>{const _0x29ddeb=_0x4838bd;this[_0x29ddeb(0x213)]=!0x0;});const _0x2cac9c=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x2cac9c[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1ca)),_0x2cac9c[_0x4838bd(0x21a)]=!0x0,_0x2cac9c['on'](_0x4838bd(0x1d3),()=>{const _0x20721d=_0x4838bd;this[_0x20721d(0x1f3)](_0x456c4e(this[_0x20721d(0x1f7)],_0x20721d(0x1eb)),this[_0x20721d(0x1c8)])[_0x20721d(0x1df)](()=>{const _0x27d1d0=_0x20721d;this[_0x27d1d0(0x215)](_0x27d1d0(0x212),{'id':this['id']});});});const _0x5c058a=new _0x199220(this[_0x4838bd(0x1f7)]),_0xccd153=new _0x34eda4(this[_0x4838bd(0x1f7)]);_0xccd153[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x57c025);const _0x3f5798=new _0x34eda4(this[_0x4838bd(0x1f7)]);return _0x3f5798[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x2cac9c),_0x5c058a[_0x4838bd(0x20e)][_0x4838bd(0x1e9)]([_0xccd153,_0x3f5798]),_0x26ab8e[_0x4838bd(0x206)](_0x5c058a),_0x35be4d;}[_0x2fae02(0x1e8)](_0x4ee196,_0x3e4605){const _0x19871b=_0x2fae02,_0x1eadec=new _0x50dc56(_0x4ee196),_0x354287=_0x1eadec[_0x19871b(0x20c)];return _0x1eadec[_0x19871b(0x1d9)]=_0x3e4605,_0x1eadec[_0x19871b(0x216)]({'on':{'keydown':_0x354287['to'](_0x23f0b9=>{const _0xe8edc2=_0x19871b;_0xe8edc2(0x208)==_0x23f0b9[_0xe8edc2(0x21c)]&&this[_0xe8edc2(0x209)](_0x1eadec);})}}),_0x1eadec;}[_0x2fae02(0x219)](_0x15d971,_0x258f7f){const _0x46128b=_0x2fae02,_0x58ef99=new _0x26eb2b(_0x15d971);return _0x58ef99[_0x46128b(0x1dc)]({'icon':_0x5a8465,'withText':!0x1,'tooltip':_0x456c4e(_0x15d971,_0x46128b(0x1dd))}),_0x58ef99[_0x46128b(0x216)]({'attributes':{'class':[_0x46128b(0x217)]}}),_0x58ef99['on'](_0x46128b(0x1d3),()=>{const _0x406c12=_0x46128b;this[_0x406c12(0x209)](_0x258f7f);}),_0x58ef99;}[_0x2fae02(0x209)](_0x284a4d){const _0x95621c=_0x2fae02,_0x4978eb=_0x284a4d[_0x95621c(0x1c8)][_0x95621c(0x1d9)]||'';this[_0x95621c(0x1d1)][_0x95621c(0x203)]=_0x4978eb,this[_0x95621c(0x213)]=!0x1,this[_0x95621c(0x215)](_0x95621c(0x1da),{'id':this['id'],'title':_0x4978eb});}[_0x2fae02(0x1f1)](_0x2788ac,_0x3a3d6d){const _0x1d9dee=_0x2fae02,_0x282c45=new _0x26eb2b(_0x2788ac);return _0x282c45[_0x1d9dee(0x1dc)]({'icon':_0xc312d8,'withText':!0x1,'tooltip':_0x456c4e(_0x2788ac,_0x1d9dee(0x1cc))}),_0x282c45[_0x1d9dee(0x216)]({'attributes':{'class':[_0x1d9dee(0x1d2)]}}),_0x282c45['on'](_0x1d9dee(0x1d3),()=>{const _0x1feb24=_0x1d9dee;this[_0x1feb24(0x213)]=!0x1,_0x3a3d6d[_0x1feb24(0x1d9)]=this[_0x1feb24(0x1d1)][_0x1feb24(0x203)]||'',this[_0x1feb24(0x215)](_0x1feb24(0x1f9));}),_0x282c45;}[_0x2fae02(0x1d6)](){const _0x5c7e4e=_0x2fae02,_0x4c28dc=new _0x276c40(_0x5c7e4e(0x20d));return _0x4c28dc[_0x5c7e4e(0x1fd)]=!0x0,_0x4c28dc;}[_0x2fae02(0x1f0)](_0x115655){const _0x53ffd5=_0x2fae02;return this[_0x53ffd5(0x1d1)]&&_0x53ffd5(0x1cd)==typeof this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)]&&this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)][_0x53ffd5(0x1ef)](_0x115655)?{'title':!0x0}:null;}[_0x2fae02(0x214)](_0xa80152){const _0x3b8fc2=_0x2fae02;this[_0x3b8fc2(0x1d1)][_0x3b8fc2(0x214)](_0xa80152);}}
23
+ function _0x392f(){const _0x445e4c=['ck-ai-loader__text','panelPosition','5864xsnBRK','_titleView','withText','ck-ai-chat-history__item-date','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','updateTitle','12SGAtHw','1399509tWrEoQ','AI_CHAT_HISTORY_EDIT_NAME','_commitEditInputValue','ck-ai-chat-history__item-check','pinned','click','clear','2624495aANYLj','fire','items','isVisible','ck-hidden','buttonView','actions','1318828TlUBeR','createCollection','ck-ai-loader','element','match','updateLoadingState','Enter','_createEditInputView','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','set','extendTemplate','bind','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_UNPINNING','then','mainContent','ck-ai-chat-history__item-main-content','isEdit','3918423rvfxGx','value','49VXDRpo','isMatching','ck-confirm-view-cancel','span','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-content','add','panelView','addMany','11925OUgABc','AI_CHAT_HISTORY_ACCEPT','setTemplate','key','editConversationTitle','label','removeConversation','ck-ai-chat-history__item-title','ck-confirm-view-submit','loadingState','text','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','isOn','_createCancelEditButtonView','focus','listitem','execute','ck-ai-chat-history__item-actions','change:isEdit','_createCheckView','children','AI_CHAT_HISTORY_LOADING_RENAMING','div','showConfirm','highlightText','ck-ai-chat-history__item-row','setConversationPinned','_createSpinnerView','AI_CHAT_HISTORY_LOADING_PINNING','37902630ujZvRF','956166QxvMsB','_createMenuDropdownView','locale','bindTemplate','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_LOADING_REMOVING','_createPinButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','LOADING_LABELS','selectConversation','AI_CHAT_HISTORY_PIN_BUTTON','tiny'];_0x392f=function(){return _0x445e4c;};return _0x392f();}const _0x4ebbb7=_0x51d8;(function(_0x4934cd,_0x44ba64){const _0x534615=_0x51d8,_0x13f913=_0x4934cd();while(!![]){try{const _0x200eb4=-parseInt(_0x534615(0xc5))/0x1+-parseInt(_0x534615(0xd3))/0x2+-parseInt(_0x534615(0x84))/0x3+-parseInt(_0x534615(0xc4))/0x4*(parseInt(_0x534615(0xcc))/0x5)+parseInt(_0x534615(0xae))/0x6*(parseInt(_0x534615(0x86))/0x7)+-parseInt(_0x534615(0xbc))/0x8*(-parseInt(_0x534615(0x8f))/0x9)+parseInt(_0x534615(0xad))/0xa;if(_0x200eb4===_0x44ba64)break;else _0x13f913['push'](_0x13f913['shift']());}catch(_0x355e91){_0x13f913['push'](_0x13f913['shift']());}}}(_0x392f,0xe4d26));import{ListItemView as _0x5e329e,HighlightedTextView as _0x154660,ButtonView as _0x9f086d,ListView as _0x3d276e,IconView as _0x487cef,createDropdown as _0x5b8a3f,InputTextView as _0xbb904c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1dcbdf,IconPin as _0x4a985f,IconCheck as _0x38eda7,IconCancel as _0x32397d}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2c84b3,ConfirmMixin as _0x1fd42c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x51d8(_0x90383d,_0x4955d0){const _0x392f74=_0x392f();return _0x51d8=function(_0x51d86c,_0x1f130b){_0x51d86c=_0x51d86c-0x78;let _0x3ff18e=_0x392f74[_0x51d86c];return _0x3ff18e;},_0x51d8(_0x90383d,_0x4955d0);}import{escape as _0x20d564}from'es-toolkit/compat';import{AISpinnerView as _0x2f1f43}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5a18a5}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x1fd42c(_0x5e329e){['id'];static [_0x4ebbb7(0xb6)]={'remove':_0x4ebbb7(0xb3),'rename':_0x4ebbb7(0xa5),'pin':_0x4ebbb7(0xac),'unpin':_0x4ebbb7(0x7f)};[_0x4ebbb7(0xd2)];[_0x4ebbb7(0x81)];[_0x4ebbb7(0xbd)];constructor(_0x15a0b7,_0xc21294){const _0x2f64c7=_0x4ebbb7;super(_0x15a0b7);const _0x55ab7d=this[_0x2f64c7(0xb1)];this[_0x2f64c7(0x7b)](_0x2f64c7(0x83),!0x1),this[_0x2f64c7(0x7b)](_0x2f64c7(0xcf),!0x0),this[_0x2f64c7(0x7b)](_0x2f64c7(0xc9),!!_0xc21294[_0x2f64c7(0xc9)]),this[_0x2f64c7(0x7b)](_0x2f64c7(0x98),null),this['id']=_0xc21294['id'];const {title:_0x292724,createdAt:_0x3a581e,active:_0x74f34d=!0x1}=_0xc21294;this[_0x2f64c7(0xbd)]=new _0x154660(),this[_0x2f64c7(0xbd)][_0x2f64c7(0x99)]=_0x292724,this[_0x2f64c7(0xbd)][_0x2f64c7(0x7c)]({'attributes':{'class':[_0x2f64c7(0x96)]}});const _0x3e24df=this[_0x2f64c7(0xa3)](),_0x17bca2=this[_0x2f64c7(0xb4)](_0x15a0b7),_0x2bc7f7=this[_0x2f64c7(0xaf)](),_0x203ad5=this[_0x2f64c7(0x78)](_0x15a0b7,_0x292724),_0x5be0bc=this[_0x2f64c7(0x79)](_0x15a0b7,_0x203ad5),_0x4270c3=this[_0x2f64c7(0x9d)](_0x15a0b7,_0x203ad5);this[_0x2f64c7(0xd2)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)][_0x2f64c7(0x8c)](this[_0x2f64c7(0xbd)]),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x17bca2),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x2bc7f7),this['on'](_0x2f64c7(0xa2),(_0x31554a,_0x31a91b,_0x4d441a)=>{const _0x31d72e=_0x2f64c7;this[_0x31d72e(0xd2)][_0x31d72e(0xcb)](),this[_0x31d72e(0x81)][_0x31d72e(0xcb)](),_0x4d441a?(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x5be0bc),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x4270c3),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](_0x203ad5),_0x203ad5[_0x31d72e(0xd6)][_0x31d72e(0x9e)]()):(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x17bca2),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x2bc7f7),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](this[_0x31d72e(0xbd)]));}),this[_0x2f64c7(0x91)]({'tag':'li','attributes':{'class':[_0x2f64c7(0x7e),_0x74f34d?_0x2f64c7(0x9b):'',_0x55ab7d['if'](_0x2f64c7(0xcf),_0x2f64c7(0xd0),_0x1a3280=>!_0x1a3280),_0x55ab7d['if'](_0x2f64c7(0x83),_0x2f64c7(0x8a))],'role':_0x2f64c7(0x9f)},'children':[{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xb2)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xc8),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x129afe=>!!_0x129afe)]},'children':_0x74f34d?[_0x3e24df]:[]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xd5),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x5cff1d=>!_0x5cff1d)]},'children':[this[_0x2f64c7(0xab)]()]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa9)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x8b)]},'on':{'click':this[_0x2f64c7(0xb1)]['to'](_0x2f64c7(0xca))},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x82)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x96),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x3a45b2=>!!_0x3a45b2)]},'children':this[_0x2f64c7(0x81)]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xba),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x77b5f9=>!_0x77b5f9)]},'children':[{'text':_0x55ab7d['to'](_0x2f64c7(0x98),_0x8c4c0d=>_0x8c4c0d?_0x5a18a5(this[_0x2f64c7(0xb0)],AIChatHistoryListItemView[_0x2f64c7(0xb6)][_0x8c4c0d]):'')}]}]},{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xbf)]},'children':[_0x3a581e]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa1)]},'children':this[_0x2f64c7(0xd2)]}]}]}),this['on'](_0x2f64c7(0xca),()=>{const _0x9cc78d=_0x2f64c7;this[_0x9cc78d(0x83)]||this[_0x9cc78d(0xcd)](_0x9cc78d(0xb7),{'id':this['id']});});}[_0x4ebbb7(0xc3)](_0x38d765){const _0x1ba251=_0x4ebbb7;this[_0x1ba251(0xbd)][_0x1ba251(0x99)]=_0x20d564(_0x38d765);}[_0x4ebbb7(0xd8)](_0x20c86a,_0x1e98be){const _0x1ed000=_0x4ebbb7;this[_0x1ed000(0x7b)](_0x1ed000(0x98),_0x1e98be?_0x20c86a:null);}[_0x4ebbb7(0xa3)](){const _0x255fb5=_0x4ebbb7,_0x21caf8=new _0x487cef();return _0x21caf8[_0x255fb5(0x7b)]({'content':_0x38eda7}),_0x21caf8;}[_0x4ebbb7(0xb4)](_0x4a1853){const _0x416746=_0x4ebbb7,_0x44fa68=new _0x9f086d(_0x4a1853);return _0x44fa68[_0x416746(0x7b)]({'label':_0x5a18a5(_0x4a1853,_0x416746(0xb8)),'icon':_0x4a985f,'withText':!0x1,'tooltip':!0x0}),_0x44fa68[_0x416746(0x7d)](_0x416746(0x9c))['to'](this,_0x416746(0xc9)),_0x44fa68['on'](_0x416746(0xa0),()=>{const _0x551a50=_0x416746,_0x168614=!this[_0x551a50(0xc9)];this[_0x551a50(0xcd)](_0x551a50(0xaa),{'id':this['id'],'pinned':_0x168614});}),_0x44fa68;}[_0x4ebbb7(0xaf)](){const _0x57ddc5=_0x4ebbb7,_0x1d87d7=_0x5b8a3f(this[_0x57ddc5(0xb0)],_0x2c84b3),_0x35968c=_0x1d87d7[_0x57ddc5(0x8d)][_0x57ddc5(0xa4)];_0x1d87d7[_0x57ddc5(0xd1)][_0x57ddc5(0x7b)]({'label':_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc1)),'icon':_0x1dcbdf}),_0x1d87d7[_0x57ddc5(0xbb)]='sw';const _0x5af028=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x5af028[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc6)),_0x5af028[_0x57ddc5(0xbe)]=!0x0,_0x5af028['on'](_0x57ddc5(0xa0),()=>{const _0x25df89=_0x57ddc5;this[_0x25df89(0x83)]=!0x0;});const _0x4c910d=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x4c910d[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0x9a)),_0x4c910d[_0x57ddc5(0xbe)]=!0x0,_0x4c910d['on'](_0x57ddc5(0xa0),()=>{const _0x49a855=_0x57ddc5;this[_0x49a855(0xa7)](_0x5a18a5(this[_0x49a855(0xb0)],_0x49a855(0xb5)),this[_0x49a855(0xd6)])[_0x49a855(0x80)](()=>{const _0x3758f6=_0x49a855;this[_0x3758f6(0xcd)](_0x3758f6(0x95),{'id':this['id']});});});const _0x4f7a48=new _0x3d276e(this[_0x57ddc5(0xb0)]),_0x1d4539=new _0x5e329e(this[_0x57ddc5(0xb0)]);_0x1d4539[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x5af028);const _0x25b2b7=new _0x5e329e(this[_0x57ddc5(0xb0)]);return _0x25b2b7[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x4c910d),_0x4f7a48[_0x57ddc5(0xce)][_0x57ddc5(0x8e)]([_0x1d4539,_0x25b2b7]),_0x35968c[_0x57ddc5(0x8c)](_0x4f7a48),_0x1d87d7;}[_0x4ebbb7(0x78)](_0x575c7f,_0x310c72){const _0x4ab2fb=_0x4ebbb7,_0x26479d=new _0xbb904c(_0x575c7f),_0x5f135e=_0x26479d[_0x4ab2fb(0xb1)];return _0x26479d[_0x4ab2fb(0x85)]=_0x310c72,_0x26479d[_0x4ab2fb(0x7c)]({'on':{'keydown':_0x5f135e['to'](_0x2165ab=>{const _0x3ab74c=_0x4ab2fb;_0x3ab74c(0xd9)==_0x2165ab[_0x3ab74c(0x92)]&&this[_0x3ab74c(0xc7)](_0x26479d);})}}),_0x26479d;}[_0x4ebbb7(0x79)](_0x1ded98,_0x9a5531){const _0x17aac3=_0x4ebbb7,_0x37d7cf=new _0x9f086d(_0x1ded98);return _0x37d7cf[_0x17aac3(0x7b)]({'icon':_0x38eda7,'withText':!0x1,'tooltip':_0x5a18a5(_0x1ded98,_0x17aac3(0x90))}),_0x37d7cf[_0x17aac3(0x7c)]({'attributes':{'class':[_0x17aac3(0x97)]}}),_0x37d7cf['on'](_0x17aac3(0xa0),()=>{const _0x746aa9=_0x17aac3;this[_0x746aa9(0xc7)](_0x9a5531);}),_0x37d7cf;}[_0x4ebbb7(0xc7)](_0x5c7bc3){const _0x386407=_0x4ebbb7,_0x548580=_0x5c7bc3[_0x386407(0xd6)][_0x386407(0x85)]||'';this[_0x386407(0xbd)][_0x386407(0x99)]=_0x548580,this[_0x386407(0x83)]=!0x1,this[_0x386407(0xcd)](_0x386407(0x93),{'id':this['id'],'title':_0x548580});}[_0x4ebbb7(0x9d)](_0x495113,_0x337da3){const _0x19a6de=_0x4ebbb7,_0x14e0c4=new _0x9f086d(_0x495113);return _0x14e0c4[_0x19a6de(0x7b)]({'icon':_0x32397d,'withText':!0x1,'tooltip':_0x5a18a5(_0x495113,_0x19a6de(0x7a))}),_0x14e0c4[_0x19a6de(0x7c)]({'attributes':{'class':[_0x19a6de(0x88)]}}),_0x14e0c4['on'](_0x19a6de(0xa0),()=>{const _0x47abb3=_0x19a6de;this[_0x47abb3(0x83)]=!0x1,_0x337da3[_0x47abb3(0x85)]=this[_0x47abb3(0xbd)][_0x47abb3(0x99)]||'',this[_0x47abb3(0xcd)](_0x47abb3(0xc2));}),_0x14e0c4;}[_0x4ebbb7(0xab)](){const _0x19b92e=_0x4ebbb7,_0x45e22f=new _0x2f1f43(_0x19b92e(0xb9));return _0x45e22f[_0x19b92e(0xcf)]=!0x0,_0x45e22f;}[_0x4ebbb7(0x87)](_0xa539d0){const _0x47dcd0=_0x4ebbb7;return this[_0x47dcd0(0xbd)]&&_0x47dcd0(0xc0)==typeof this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)]&&this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)][_0x47dcd0(0xd7)](_0xa539d0)?{'title':!0x0}:null;}[_0x4ebbb7(0xa8)](_0x3eed54){const _0x3567cd=_0x4ebbb7;this[_0x3567cd(0xbd)][_0x3567cd(0xa8)](_0x3eed54);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3198db=_0x1485;function _0x2a11(){const _0x195ef3=['361613LGBDiH','splice','_itemsListView','itemsViews','set','392168ASaAOG','36QrApIw','1168314xEnlRQ','removeItem','setTemplate','title','find','ck-ai-chat-history__section','div','2EXSwvS','510418KoUQqe','66zTREiE','1347945ciKpiv','1385960cEIzop','ck-ai-chat-history__section-title','1692644BcFSqS','length','isVisible','ck-hidden','bindTemplate','isMatching','highlightText','indexOf','getItem','addMany','items','remove','filter'];_0x2a11=function(){return _0x195ef3;};return _0x2a11();}(function(_0x513f2d,_0x24f7e1){const _0x5ab6e5=_0x1485,_0x5f218b=_0x513f2d();while(!![]){try{const _0x2e8d62=-parseInt(_0x5ab6e5(0x124))/0x1*(parseInt(_0x5ab6e5(0x125))/0x2)+parseInt(_0x5ab6e5(0x11d))/0x3+-parseInt(_0x5ab6e5(0x12a))/0x4+parseInt(_0x5ab6e5(0x127))/0x5+-parseInt(_0x5ab6e5(0x126))/0x6*(-parseInt(_0x5ab6e5(0x116))/0x7)+-parseInt(_0x5ab6e5(0x11b))/0x8*(-parseInt(_0x5ab6e5(0x11c))/0x9)+-parseInt(_0x5ab6e5(0x128))/0xa;if(_0x2e8d62===_0x24f7e1)break;else _0x5f218b['push'](_0x5f218b['shift']());}catch(_0x1e2f58){_0x5f218b['push'](_0x5f218b['shift']());}}}(_0x2a11,0x55bd1));function _0x1485(_0x332d5d,_0x34697d){const _0x2a11fe=_0x2a11();return _0x1485=function(_0x14859b,_0x17ec87){_0x14859b=_0x14859b-0x114;let _0x19ea0d=_0x2a11fe[_0x14859b];return _0x19ea0d;},_0x1485(_0x332d5d,_0x34697d);}import{ListItemView as _0x55bdab,View as _0x5224bf,ListView as _0x4ea0ac}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x55bdab{[_0x3198db(0x120)];[_0x3198db(0x119)];[_0x3198db(0x118)];constructor(_0x443439,{title:_0xe1e3e3,items:_0x5e81d3}){const _0x426fe7=_0x3198db;super(_0x443439);const _0xcdaf9=this[_0x426fe7(0x12e)];this[_0x426fe7(0x11a)](_0x426fe7(0x12c),!0x0),this[_0x426fe7(0x120)]=_0xe1e3e3,this[_0x426fe7(0x119)]=_0x5e81d3;const _0x483906=new _0x5224bf(_0x443439);_0x483906[_0x426fe7(0x11f)]({'tag':_0x426fe7(0x123),'attributes':{'class':[_0x426fe7(0x129)]},'children':[this[_0x426fe7(0x120)]]}),this[_0x426fe7(0x118)]=new _0x4ea0ac(_0x443439),this[_0x426fe7(0x118)][_0x426fe7(0x134)][_0x426fe7(0x133)](this[_0x426fe7(0x119)]),this[_0x426fe7(0x11f)]({'tag':'li','attributes':{'class':[_0x426fe7(0x122),_0xcdaf9['if'](_0x426fe7(0x12c),_0x426fe7(0x12d),_0x261fb7=>!_0x261fb7)]},'children':[_0x483906,this[_0x426fe7(0x118)]]});}[_0x3198db(0x115)](_0x4ba667){const _0x1acc8f=_0x3198db,_0xa0111f=this[_0x1acc8f(0x119)][_0x1acc8f(0x12b)];let _0x849c43=0x0;for(const _0x4613f0 of this[_0x1acc8f(0x119)]){if(_0x4ba667){const _0x296520=_0x4613f0[_0x1acc8f(0x12f)](_0x4ba667);_0x4613f0[_0x1acc8f(0x12c)]=!!_0x296520,_0x4613f0[_0x1acc8f(0x130)](_0x4ba667);}else _0x4613f0[_0x1acc8f(0x12c)]=!0x0,_0x4613f0[_0x1acc8f(0x130)](null);_0x4613f0[_0x1acc8f(0x12c)]&&_0x849c43++;}return this[_0x1acc8f(0x12c)]=_0x849c43>0x0,{'resultsCount':_0x849c43,'totalItemsCount':_0xa0111f};}[_0x3198db(0x132)](_0x5740c5){const _0x509175=_0x3198db;return this[_0x509175(0x119)][_0x509175(0x121)](_0x1f06f5=>_0x1f06f5['id']===_0x5740c5);}[_0x3198db(0x11e)](_0x3961bd){const _0x2ab2f2=_0x3198db,_0x491830=this[_0x2ab2f2(0x119)][_0x2ab2f2(0x131)](_0x3961bd);-0x1!==_0x491830&&(this[_0x2ab2f2(0x119)][_0x2ab2f2(0x117)](_0x491830,0x1),this[_0x2ab2f2(0x118)][_0x2ab2f2(0x134)][_0x2ab2f2(0x114)](_0x3961bd));}}
23
+ function _0x5a8e(_0x1228a1,_0x551aa8){const _0x47372f=_0x4737();return _0x5a8e=function(_0x5a8e0f,_0x4a88dc){_0x5a8e0f=_0x5a8e0f-0xc5;let _0x12ae7c=_0x47372f[_0x5a8e0f];return _0x12ae7c;},_0x5a8e(_0x1228a1,_0x551aa8);}const _0x1d2108=_0x5a8e;(function(_0x388fd3,_0x376cdc){const _0x282162=_0x5a8e,_0x313edc=_0x388fd3();while(!![]){try{const _0x27ddcf=-parseInt(_0x282162(0xe2))/0x1+parseInt(_0x282162(0xc7))/0x2*(-parseInt(_0x282162(0xc8))/0x3)+parseInt(_0x282162(0xc9))/0x4*(parseInt(_0x282162(0xd9))/0x5)+parseInt(_0x282162(0xd3))/0x6+-parseInt(_0x282162(0xe3))/0x7+parseInt(_0x282162(0xc6))/0x8+-parseInt(_0x282162(0xd0))/0x9*(-parseInt(_0x282162(0xcc))/0xa);if(_0x27ddcf===_0x376cdc)break;else _0x313edc['push'](_0x313edc['shift']());}catch(_0x317e7f){_0x313edc['push'](_0x313edc['shift']());}}}(_0x4737,0x2928d));function _0x4737(){const _0x38f7a5=['ck-ai-chat-history__section','indexOf','isVisible','length','remove','40BtqttO','isMatching','div','_itemsListView','bindTemplate','itemsViews','set','find','filter','230207rNQWjQ','1655150kJIgbX','splice','removeItem','getItem','432376HiiTlX','1168mgRaJN','741ZWPTZA','105544qTONuE','items','ck-ai-chat-history__section-title','600NcuZXi','setTemplate','addMany','title','72666SEpHHM','highlightText','ck-hidden','179514faEong'];_0x4737=function(){return _0x38f7a5;};return _0x4737();}import{ListItemView as _0x83ee6b,View as _0x2faed6,ListView as _0x4e1daa}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x83ee6b{[_0x1d2108(0xcf)];[_0x1d2108(0xde)];[_0x1d2108(0xdc)];constructor(_0x250662,{title:_0x3e080f,items:_0x3f2745}){const _0x5a1d25=_0x1d2108;super(_0x250662);const _0x1881a9=this[_0x5a1d25(0xdd)];this[_0x5a1d25(0xdf)](_0x5a1d25(0xd6),!0x0),this[_0x5a1d25(0xcf)]=_0x3e080f,this[_0x5a1d25(0xde)]=_0x3f2745;const _0x4cdf5f=new _0x2faed6(_0x250662);_0x4cdf5f[_0x5a1d25(0xcd)]({'tag':_0x5a1d25(0xdb),'attributes':{'class':[_0x5a1d25(0xcb)]},'children':[this[_0x5a1d25(0xcf)]]}),this[_0x5a1d25(0xdc)]=new _0x4e1daa(_0x250662),this[_0x5a1d25(0xdc)][_0x5a1d25(0xca)][_0x5a1d25(0xce)](this[_0x5a1d25(0xde)]),this[_0x5a1d25(0xcd)]({'tag':'li','attributes':{'class':[_0x5a1d25(0xd4),_0x1881a9['if'](_0x5a1d25(0xd6),_0x5a1d25(0xd2),_0x3cecd1=>!_0x3cecd1)]},'children':[_0x4cdf5f,this[_0x5a1d25(0xdc)]]});}[_0x1d2108(0xe1)](_0x3d0ec5){const _0x36bdb5=_0x1d2108,_0x192918=this[_0x36bdb5(0xde)][_0x36bdb5(0xd7)];let _0x37c59d=0x0;for(const _0x166948 of this[_0x36bdb5(0xde)]){if(_0x3d0ec5){const _0x3a7b22=_0x166948[_0x36bdb5(0xda)](_0x3d0ec5);_0x166948[_0x36bdb5(0xd6)]=!!_0x3a7b22,_0x166948[_0x36bdb5(0xd1)](_0x3d0ec5);}else _0x166948[_0x36bdb5(0xd6)]=!0x0,_0x166948[_0x36bdb5(0xd1)](null);_0x166948[_0x36bdb5(0xd6)]&&_0x37c59d++;}return this[_0x36bdb5(0xd6)]=_0x37c59d>0x0,{'resultsCount':_0x37c59d,'totalItemsCount':_0x192918};}[_0x1d2108(0xc5)](_0x3db355){const _0x4502d1=_0x1d2108;return this[_0x4502d1(0xde)][_0x4502d1(0xe0)](_0x121916=>_0x121916['id']===_0x3db355);}[_0x1d2108(0xe5)](_0x3e2f42){const _0x17e3fd=_0x1d2108,_0x5f3514=this[_0x17e3fd(0xde)][_0x17e3fd(0xd5)](_0x3e2f42);-0x1!==_0x5f3514&&(this[_0x17e3fd(0xde)][_0x17e3fd(0xe4)](_0x5f3514,0x1),this[_0x17e3fd(0xdc)][_0x17e3fd(0xca)][_0x17e3fd(0xd8)](_0x3e2f42));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e282c=_0x45ab;(function(_0x3ef094,_0x567bb5){const _0x41b99e=_0x45ab,_0xabf7f8=_0x3ef094();while(!![]){try{const _0x3c414a=-parseInt(_0x41b99e(0x184))/0x1*(-parseInt(_0x41b99e(0x183))/0x2)+-parseInt(_0x41b99e(0x179))/0x3*(parseInt(_0x41b99e(0x185))/0x4)+parseInt(_0x41b99e(0x180))/0x5*(parseInt(_0x41b99e(0x177))/0x6)+-parseInt(_0x41b99e(0x186))/0x7*(parseInt(_0x41b99e(0x17e))/0x8)+parseInt(_0x41b99e(0x181))/0x9+-parseInt(_0x41b99e(0x17d))/0xa+parseInt(_0x41b99e(0x178))/0xb*(parseInt(_0x41b99e(0x17b))/0xc);if(_0x3c414a===_0x567bb5)break;else _0xabf7f8['push'](_0xabf7f8['shift']());}catch(_0x238002){_0xabf7f8['push'](_0xabf7f8['shift']());}}}(_0x4578,0xe74f0));function _0x45ab(_0x433151,_0x301cf){const _0x4578cf=_0x4578();return _0x45ab=function(_0x45ab92,_0x57ec1c){_0x45ab92=_0x45ab92-0x177;let _0x525652=_0x4578cf[_0x45ab92];return _0x525652;},_0x45ab(_0x433151,_0x301cf);}import{ListView as _0x4db15b}from'ckeditor5/src/ui.js';function _0x4578(){const _0x1652c4=['8QpXzfy','258419RYkJic','4bPCQWG','204022gCTNsl','sections','addMany','4875918xueSyN','22jiVpeO','2944533UZCqjj','ck-ai-chat-history__sections','5079372rImVAx','items','7412410PwdsJO','264QxhWOF','filter','10mEAveZ','1138194wqoTcL','extendTemplate'];_0x4578=function(){return _0x1652c4;};return _0x4578();}export class AIChatHistorySectionListView extends _0x4db15b{[_0x1e282c(0x187)];constructor(_0x5bbc04,_0x2d7f98){const _0x5c4d44=_0x1e282c;super(_0x5bbc04),this[_0x5c4d44(0x187)]=_0x2d7f98,this[_0x5c4d44(0x17c)][_0x5c4d44(0x188)](this[_0x5c4d44(0x187)]),this[_0x5c4d44(0x182)]({'attributes':{'class':[_0x5c4d44(0x17a)]}});}[_0x1e282c(0x17f)](_0x2aec2d){const _0x71daa6=_0x1e282c;let _0x1f369a=0x0,_0x3879d2=0x0;for(const _0x3546be of this[_0x71daa6(0x187)]){const {resultsCount:_0x185687,totalItemsCount:_0x54ac62}=_0x3546be[_0x71daa6(0x17f)](_0x2aec2d);_0x1f369a+=_0x185687,_0x3879d2+=_0x54ac62;}return{'resultsCount':_0x1f369a,'totalItemsCount':_0x3879d2};}}
23
+ const _0x5ebb4c=_0x3383;function _0x3383(_0x5b2950,_0x8061f){const _0x49cab9=_0x49ca();return _0x3383=function(_0x3383e9,_0x3a00d9){_0x3383e9=_0x3383e9-0x64;let _0x57a35a=_0x49cab9[_0x3383e9];return _0x57a35a;},_0x3383(_0x5b2950,_0x8061f);}(function(_0x2f41f9,_0x1dd362){const _0x18c9c3=_0x3383,_0x181ee3=_0x2f41f9();while(!![]){try{const _0x4b2f37=-parseInt(_0x18c9c3(0x68))/0x1+parseInt(_0x18c9c3(0x6f))/0x2*(-parseInt(_0x18c9c3(0x6e))/0x3)+-parseInt(_0x18c9c3(0x64))/0x4+-parseInt(_0x18c9c3(0x6d))/0x5+-parseInt(_0x18c9c3(0x72))/0x6*(parseInt(_0x18c9c3(0x67))/0x7)+parseInt(_0x18c9c3(0x65))/0x8+-parseInt(_0x18c9c3(0x69))/0x9*(-parseInt(_0x18c9c3(0x6c))/0xa);if(_0x4b2f37===_0x1dd362)break;else _0x181ee3['push'](_0x181ee3['shift']());}catch(_0x190946){_0x181ee3['push'](_0x181ee3['shift']());}}}(_0x49ca,0x2d2d7));function _0x49ca(){const _0x1ddd63=['ck-ai-chat-history__sections','6GjxNXy','extendTemplate','415984iSHczf','697848aMMQBB','filter','1966741GItqwS','308648KNtWkE','837ioIVhC','addMany','items','95750qqSnMZ','137490TYYiUL','57MqsIJn','7532XbDYDn','sections'];_0x49ca=function(){return _0x1ddd63;};return _0x49ca();}import{ListView as _0x815b37}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x815b37{[_0x5ebb4c(0x70)];constructor(_0x232637,_0x13c58b){const _0x18ba0a=_0x5ebb4c;super(_0x232637),this[_0x18ba0a(0x70)]=_0x13c58b,this[_0x18ba0a(0x6b)][_0x18ba0a(0x6a)](this[_0x18ba0a(0x70)]),this[_0x18ba0a(0x73)]({'attributes':{'class':[_0x18ba0a(0x71)]}});}[_0x5ebb4c(0x66)](_0x3c0e67){const _0xf2b80d=_0x5ebb4c;let _0x4f0ae0=0x0,_0x35de16=0x0;for(const _0x2fbbd3 of this[_0xf2b80d(0x70)]){const {resultsCount:_0x21d3fd,totalItemsCount:_0xa82058}=_0x2fbbd3[_0xf2b80d(0x66)](_0x3c0e67);_0x4f0ae0+=_0x21d3fd,_0x35de16+=_0xa82058;}return{'resultsCount':_0x4f0ae0,'totalItemsCount':_0x35de16};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51f3ab=_0x2c5b;(function(_0x4dbc3e,_0xec6521){const _0x42e062=_0x2c5b,_0x36d5b7=_0x4dbc3e();while(!![]){try{const _0x51f3aa=-parseInt(_0x42e062(0x212))/0x1*(-parseInt(_0x42e062(0x1fd))/0x2)+-parseInt(_0x42e062(0x1d9))/0x3+parseInt(_0x42e062(0x20a))/0x4*(-parseInt(_0x42e062(0x1d0))/0x5)+-parseInt(_0x42e062(0x1df))/0x6+parseInt(_0x42e062(0x1f2))/0x7*(parseInt(_0x42e062(0x1db))/0x8)+-parseInt(_0x42e062(0x1d4))/0x9*(parseInt(_0x42e062(0x1fc))/0xa)+-parseInt(_0x42e062(0x1ce))/0xb*(-parseInt(_0x42e062(0x1e3))/0xc);if(_0x51f3aa===_0xec6521)break;else _0x36d5b7['push'](_0x36d5b7['shift']());}catch(_0x46e86f){_0x36d5b7['push'](_0x36d5b7['shift']());}}}(_0x3cee,0xdf54d));import{View as _0x5a3873,SearchTextView as _0x4d4b16,FormHeaderView as _0x2f2620,ButtonView as _0x425e13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x34178d,IconCancel as _0x5a88d0,IconPlus as _0x2680cd}from'ckeditor5/src/icons.js';function _0x3cee(){const _0x29a4fd=['isMaximized','change:errorMessage','setTemplate','splice','remove','extendTemplate','ck-ai-chat__start-conversation','itemsViews','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','ck-reset_all','ck-ai-chat-history__empty-message','addMany','updateItemTitle','ck-rounded-corners','79079CVUQRu','AI_CHAT_HISTORY_SEARCH_LABEL','17905ThNcJz','ck-ai-chat-error','children','execute','27eKrgVv','render','ck-ai-chat-history__empty','_createErrorView','_createSearchView','796464OkckUh','fieldView','808QMQxGx','items','sections','value','4100238XfjOYT','change:hasItems','errorMessage','resizeButton','1068NVGnRd','emptyView','bindTemplate','searchView','change:isLoading','delegate','search','element','isSearchViewVisible','div','_updateViewVisibility','ltr','_createEmptyStateView','getItem','openChat','63707vOJkij','indexOf','locale','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','add','title','push','some','2003470HiakqZ','6lLBITA','isEmptyViewVisible','isVisible','errorView','aiHistory','AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','isLoading','_createListItemViews','updateTitle','length','ck-hidden','hasItems','1004PFTYzW','removeItem','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','fire','set','ck-ai-chat-error__dismiss-button','sectionsView','601492jFJiAb','ck-ai-chat-history__content','updateItemLoadingState','updateLoadingState','clear','AI_CHAT_HISTORY_HEADING','queryView','_createSkeletonView','removeHistoryItem','bind'];_0x3cee=function(){return _0x29a4fd;};return _0x3cee();}import{AIChatHistorySectionListView as _0x5122e6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x26d34e}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x359a6f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xd7faff}from'../aichathistoryui.js';import{AISkeletonView as _0x28fa08,SKELETON_DEFINITIONS as _0x3ea2cc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x14160e}from'../../aicore/utils/createresizebutton.js';function _0x2c5b(_0x5295a4,_0x4be560){const _0x3cee68=_0x3cee();return _0x2c5b=function(_0x2c5b94,_0x49a087){_0x2c5b94=_0x2c5b94-0x1ce;let _0x25786c=_0x3cee68[_0x2c5b94];return _0x25786c;},_0x2c5b(_0x5295a4,_0x4be560);}import{getTranslation as _0xa2f439}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5a3873{[_0x51f3ab(0x1e6)];[_0x51f3ab(0x200)];[_0x51f3ab(0x1f5)];[_0x51f3ab(0x1e4)];[_0x51f3ab(0x211)];[_0x51f3ab(0x1e2)];constructor(_0x656f0e,_0x47452b){const _0x39e3cd=_0x51f3ab;super(_0x656f0e),this[_0x39e3cd(0x20f)](_0x39e3cd(0x209),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x204),!0x0),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1e1),''),this[_0x39e3cd(0x20f)](_0x39e3cd(0x21c),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1eb),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1fe),!0x1);const _0x531f16=new _0x2f2620(_0x656f0e,{'label':_0xa2f439(_0x656f0e,_0x39e3cd(0x217)),'icon':_0x34178d,'class':_0x39e3cd(0x225)});_0x47452b&&(this[_0x39e3cd(0x1e2)]=_0x14160e(_0x656f0e,this),_0x531f16[_0x39e3cd(0x1d2)][_0x39e3cd(0x1f8)](this[_0x39e3cd(0x1e2)])),this[_0x39e3cd(0x211)]=new _0x5122e6(_0x656f0e,[]),this[_0x39e3cd(0x211)][_0x39e3cd(0x1e8)](..._0xd7faff)['to'](this),this[_0x39e3cd(0x200)]=this[_0x39e3cd(0x1d7)](),this[_0x39e3cd(0x1f5)]=this[_0x39e3cd(0x219)](),this[_0x39e3cd(0x1e4)]=this[_0x39e3cd(0x1ef)](),this[_0x39e3cd(0x1e6)]=this[_0x39e3cd(0x1d8)](),this['on'](_0x39e3cd(0x1e7),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x1e0),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x21d),()=>this[_0x39e3cd(0x1ed)]()),this[_0x39e3cd(0x21e)]({'tag':_0x39e3cd(0x1ec),'attributes':{'class':['ck',_0x39e3cd(0x226),_0x39e3cd(0x224),_0x39e3cd(0x22a)],'dir':_0x39e3cd(0x1ee)},'children':[_0x531f16,{'tag':_0x39e3cd(0x1ec),'attributes':{'class':[_0x39e3cd(0x213)]},'children':[this[_0x39e3cd(0x1f5)],this[_0x39e3cd(0x200)],this[_0x39e3cd(0x1e4)],this[_0x39e3cd(0x1e6)]]}]});}[_0x51f3ab(0x1ed)](){const _0x4b7ed2=_0x51f3ab;this[_0x4b7ed2(0x1eb)]=!this[_0x4b7ed2(0x204)]&&this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)],this[_0x4b7ed2(0x1fe)]=!this[_0x4b7ed2(0x204)]&&!this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)];}[_0x51f3ab(0x1d8)](){const _0xec066e=_0x51f3ab,_0x489ab6=new _0x4d4b16(this[_0xec066e(0x1f4)],{'filteredView':this[_0xec066e(0x211)],'queryView':{'label':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1cf))},'infoView':{'text':{'notFound':{'primary':_0x26a6fb=>_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f7),_0x26a6fb),'secondary':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f6))}}}});return _0x489ab6['on'](_0xec066e(0x1d5),()=>{const _0x2e9d66=_0xec066e;this[_0x2e9d66(0x1e6)][_0x2e9d66(0x1d2)][_0x2e9d66(0x1f8)](this[_0x2e9d66(0x200)],0x1);}),_0x489ab6[_0xec066e(0x221)]({'attributes':{'class':[this[_0xec066e(0x1e5)]['if'](_0xec066e(0x1eb),_0xec066e(0x208),_0x5a41af=>!_0x5a41af)]}}),_0x489ab6;}[_0x51f3ab(0x219)](){const _0x1cb07c=_0x51f3ab,_0x3b5050=new _0x28fa08(this[_0x1cb07c(0x1f4)],_0x3ea2cc[_0x1cb07c(0x201)]);return _0x3b5050[_0x1cb07c(0x221)]({'attributes':{'class':[this[_0x1cb07c(0x1e5)]['if'](_0x1cb07c(0x204),_0x1cb07c(0x208),_0x1c3ebe=>!_0x1c3ebe)]}}),_0x3b5050;}[_0x51f3ab(0x1d7)](){const _0x18f7be=_0x51f3ab,_0x2bcd9a=new _0x5a3873(this[_0x18f7be(0x1f4)]),_0x56e3ad=new _0x425e13(this[_0x18f7be(0x1f4)]);return _0x56e3ad[_0x18f7be(0x20f)]({'withText':!0x1,'icon':_0x5a88d0,'class':_0x18f7be(0x210)}),_0x56e3ad[_0x18f7be(0x21b)](_0x18f7be(0x1ff))['to'](this,_0x18f7be(0x209),_0x4f3371=>!!_0x4f3371),_0x56e3ad['on'](_0x18f7be(0x1d3),()=>{const _0x5a8817=_0x18f7be;this[_0x5a8817(0x1e1)]='';}),_0x2bcd9a[_0x18f7be(0x21e)]({'tag':_0x18f7be(0x1ec),'attributes':{'class':['ck',_0x18f7be(0x1d1),this[_0x18f7be(0x1e5)]['if'](_0x18f7be(0x1e1),_0x18f7be(0x208),_0x45be5c=>!_0x45be5c)]},'children':[{'tag':'p','children':[{'text':this[_0x18f7be(0x1e5)]['to'](_0x18f7be(0x1e1))}]},_0x56e3ad]}),_0x2bcd9a;}[_0x51f3ab(0x1ef)](){const _0x15011d=_0x51f3ab,_0x1c5bd8=new _0x425e13(this[_0x15011d(0x1f4)]);_0x1c5bd8[_0x15011d(0x20f)]({'label':_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x20c)),'withText':!0x0,'icon':_0x2680cd,'class':_0x15011d(0x222)}),_0x1c5bd8['on'](_0x15011d(0x1d3),()=>{const _0x35c76e=_0x15011d;this[_0x35c76e(0x20e)](_0x35c76e(0x1f1));});const _0x49e0c6=new _0x5a3873(this[_0x15011d(0x1f4)]);return _0x49e0c6[_0x15011d(0x21e)]({'tag':_0x15011d(0x1ec),'attributes':{'class':[_0x15011d(0x1d6),this[_0x15011d(0x1e5)]['if'](_0x15011d(0x1fe),_0x15011d(0x208),_0x24b482=>!_0x24b482)]},'children':[{'tag':'p','attributes':{'class':[_0x15011d(0x227)]},'children':[_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x202))]},_0x1c5bd8]}),_0x49e0c6;}[_0x51f3ab(0x205)](_0x1959b7,_0x439a19){const _0x348a31=_0x51f3ab,_0x31e896=[];for(const _0x20428a of _0x1959b7){const _0xc25e4a=new _0x359a6f(_0x439a19,_0x20428a);_0xc25e4a[_0x348a31(0x1e8)](..._0xd7faff)['to'](this),_0x31e896[_0x348a31(0x1fa)](_0xc25e4a);}return _0x31e896;}[_0x51f3ab(0x20d)](_0x1acd0a){const _0x590129=_0x51f3ab,_0x58e5d3=this[_0x590129(0x1f4)]||'en',_0x2d4a26=[];for(const _0x55567b of _0x1acd0a){const _0x14b85b=this[_0x590129(0x205)](_0x55567b[_0x590129(0x1dc)],_0x58e5d3);_0x2d4a26[_0x590129(0x1fa)](new _0x26d34e(_0x58e5d3,{'title':_0x55567b[_0x590129(0x1f9)],'items':_0x14b85b}));}this[_0x590129(0x211)][_0x590129(0x1dd)]=_0x2d4a26,this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x216)](),this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x228)](_0x2d4a26),this[_0x590129(0x209)]=_0x1acd0a[_0x590129(0x1fb)](_0x174d71=>_0x174d71[_0x590129(0x1dc)][_0x590129(0x207)]>0x0),this[_0x590129(0x203)]();}[_0x51f3ab(0x21a)](_0x3770ff){const _0x931c8f=_0x51f3ab;for(const _0x2e38ae of this[_0x931c8f(0x211)][_0x931c8f(0x1dd)]){const _0x233314=_0x2e38ae[_0x931c8f(0x1f0)](_0x3770ff);if(_0x233314){if(_0x2e38ae[_0x931c8f(0x20b)](_0x233314),0x0===_0x2e38ae[_0x931c8f(0x223)][_0x931c8f(0x207)]){const _0x501040=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x1f3)](_0x2e38ae);-0x1!==_0x501040&&(this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x21f)](_0x501040,0x1),this[_0x931c8f(0x211)][_0x931c8f(0x1dc)][_0x931c8f(0x220)](_0x2e38ae));}this[_0x931c8f(0x209)]=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x207)]>0x0,this[_0x931c8f(0x203)]();break;}}}[_0x51f3ab(0x229)](_0x242603,_0x7291ba){const _0x1a3c96=_0x51f3ab;for(const _0x2708fc of this[_0x1a3c96(0x211)][_0x1a3c96(0x1dd)]){const _0x459aef=_0x2708fc[_0x1a3c96(0x1f0)](_0x242603);if(_0x459aef){_0x459aef[_0x1a3c96(0x206)](_0x7291ba);break;}}}[_0x51f3ab(0x214)](_0x355fee,_0x35b3bd,_0x574a28){const _0x449cc3=_0x51f3ab;for(const _0x1f8b83 of this[_0x449cc3(0x211)][_0x449cc3(0x1dd)]){const _0x139db0=_0x1f8b83[_0x449cc3(0x1f0)](_0x355fee);if(_0x139db0){_0x139db0[_0x449cc3(0x215)](_0x35b3bd,_0x574a28);break;}}}[_0x51f3ab(0x203)](){const _0x3e7bb1=_0x51f3ab;if(this[_0x3e7bb1(0x209)]){const _0x333089=this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x218)][_0x3e7bb1(0x1da)]?.[_0x3e7bb1(0x1ea)]?.[_0x3e7bb1(0x1de)]||'';this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x1e9)](_0x333089);}}}
23
+ const _0xe171a1=_0x31c1;(function(_0x59387f,_0x142e94){const _0x54bced=_0x31c1,_0xe653aa=_0x59387f();while(!![]){try{const _0x4e9c75=-parseInt(_0x54bced(0xc2))/0x1*(parseInt(_0x54bced(0xe2))/0x2)+-parseInt(_0x54bced(0x11a))/0x3+-parseInt(_0x54bced(0xcd))/0x4*(-parseInt(_0x54bced(0xf0))/0x5)+-parseInt(_0x54bced(0x10e))/0x6*(parseInt(_0x54bced(0xdd))/0x7)+-parseInt(_0x54bced(0xfd))/0x8+-parseInt(_0x54bced(0x114))/0x9*(-parseInt(_0x54bced(0x108))/0xa)+parseInt(_0x54bced(0xf2))/0xb;if(_0x4e9c75===_0x142e94)break;else _0xe653aa['push'](_0xe653aa['shift']());}catch(_0x38000c){_0xe653aa['push'](_0xe653aa['shift']());}}}(_0x17fc,0xa9e49));function _0x17fc(){const _0x29f665=['errorView','_refreshSearch','change:hasItems','change:errorMessage','ltr','245WnGlfa','delegate','20172757bNtRUm','push','fieldView','addMany','updateLoadingState','element','updateHistoryItemsWithCategories','updateItemLoadingState','extendTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','10623368PVojUv','_createSearchView','ck-ai-chat-history__empty-message','indexOf','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','itemsViews','isLoading','ck-rounded-corners','execute','300iNyizS','length','getItem','title','_updateViewVisibility','render','6qXzTgL','skeletonView','ck-reset_all','remove','clear','ck-ai-chat-history','78660ZMUfVk','errorMessage','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible','some','add','8943UpSLvj','bind','_createListItemViews','removeItem','9gWPhpV','aiHistory','resizeButton','isEmptyViewVisible','ck-ai-chat-error','fire','updateTitle','div','ck-ai-chat__start-conversation','sections','AI_CHAT_LABEL_NEW_CHAT','19816eZPXuc','splice','searchView','setTemplate','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','updateItemTitle','removeHistoryItem','children','isVisible','locale','_createErrorView','ck-hidden','search','ck-ai-chat-history__content','829661qmsPdF','_createSkeletonView','set','ck-ai-chat-error__dismiss-button','emptyView','43006KiRfjD','ck-ai-chat-history__empty','isMaximized','items','AI_CHAT_HISTORY_HEADING','hasItems','queryView','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView'];_0x17fc=function(){return _0x29f665;};return _0x17fc();}import{View as _0x3700fa,SearchTextView as _0x497a96,FormHeaderView as _0x3cb696,ButtonView as _0x1dbc2f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x92aa4b,IconCancel as _0x1930d2,IconPlus as _0x2dcceb}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x790187}from'./aichathistorysectionlistview.js';function _0x31c1(_0x563ecc,_0x47bcbe){const _0x17fcc4=_0x17fc();return _0x31c1=function(_0x31c149,_0x3b6ae8){_0x31c149=_0x31c149-0xc2;let _0xa154e3=_0x17fcc4[_0x31c149];return _0xa154e3;},_0x31c1(_0x563ecc,_0x47bcbe);}import{AIChatHistoryListView as _0x3ba45f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1e3c53}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4e08e0}from'../aichathistoryui.js';import{AISkeletonView as _0x4a2421,SKELETON_DEFINITIONS as _0xee8781}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59e1dc}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49f1ca}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3700fa{[_0xe171a1(0xcf)];[_0xe171a1(0xeb)];[_0xe171a1(0x10f)];[_0xe171a1(0xe1)];[_0xe171a1(0xd3)];[_0xe171a1(0xc4)];constructor(_0x131f73,_0x38fc54){const _0x1be863=_0xe171a1;super(_0x131f73),this[_0x1be863(0xdf)](_0x1be863(0xe7),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x105),!0x0),this[_0x1be863(0xdf)](_0x1be863(0x115),''),this[_0x1be863(0xdf)](_0x1be863(0xe4),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x117),!0x1),this[_0x1be863(0xdf)](_0x1be863(0xc5),!0x1);const _0x46427=new _0x3cb696(_0x131f73,{'label':_0x49f1ca(_0x131f73,_0x1be863(0xe6)),'icon':_0x92aa4b,'class':_0x1be863(0x116)});_0x38fc54&&(this[_0x1be863(0xc4)]=_0x59e1dc(_0x131f73,this),_0x46427[_0x1be863(0xd6)][_0x1be863(0x119)](this[_0x1be863(0xc4)])),this[_0x1be863(0xd3)]=new _0x790187(_0x131f73,[]),this[_0x1be863(0xd3)][_0x1be863(0xf1)](..._0x4e08e0)['to'](this),this[_0x1be863(0xeb)]=this[_0x1be863(0xd9)](),this[_0x1be863(0x10f)]=this[_0x1be863(0xde)](),this[_0x1be863(0xe1)]=this[_0x1be863(0xea)](),this[_0x1be863(0xcf)]=this[_0x1be863(0xfe)](),this['on'](_0x1be863(0x103),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xed),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xee),()=>this[_0x1be863(0x10c)]()),this[_0x1be863(0xd0)]({'tag':_0x1be863(0xc9),'attributes':{'class':['ck',_0x1be863(0x110),_0x1be863(0x113),_0x1be863(0x106)],'dir':_0x1be863(0xef)},'children':[_0x46427,{'tag':_0x1be863(0xc9),'attributes':{'class':[_0x1be863(0xdc)]},'children':[this[_0x1be863(0x10f)],this[_0x1be863(0xeb)],this[_0x1be863(0xe1)],this[_0x1be863(0xcf)]]}]});}[_0xe171a1(0x10c)](){const _0x4184a1=_0xe171a1;this[_0x4184a1(0x117)]=!this[_0x4184a1(0x105)]&&this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)],this[_0x4184a1(0xc5)]=!this[_0x4184a1(0x105)]&&!this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)];}[_0xe171a1(0xfe)](){const _0x4f9b6b=_0xe171a1,_0x29e309=new _0x497a96(this[_0x4f9b6b(0xd8)],{'filteredView':this[_0x4f9b6b(0xd3)],'queryView':{'label':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xfb))},'infoView':{'text':{'notFound':{'primary':_0xacb6e1=>_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0x102),_0xacb6e1),'secondary':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xd2))}}}});return _0x29e309['on'](_0x4f9b6b(0x10d),()=>{const _0x59ce9d=_0x4f9b6b;this[_0x59ce9d(0xcf)][_0x59ce9d(0xd6)][_0x59ce9d(0x119)](this[_0x59ce9d(0xeb)],0x1);}),_0x29e309[_0x4f9b6b(0xfa)]({'attributes':{'class':[this[_0x4f9b6b(0x101)]['if'](_0x4f9b6b(0x117),_0x4f9b6b(0xda),_0x3417d0=>!_0x3417d0)]}}),_0x29e309;}[_0xe171a1(0xde)](){const _0x2c28e9=_0xe171a1,_0x1ea721=new _0x4a2421(this[_0x2c28e9(0xd8)],_0xee8781[_0x2c28e9(0xc3)]);return _0x1ea721[_0x2c28e9(0xfa)]({'attributes':{'class':[this[_0x2c28e9(0x101)]['if'](_0x2c28e9(0x105),_0x2c28e9(0xda),_0x5bbcff=>!_0x5bbcff)]}}),_0x1ea721;}[_0xe171a1(0xd9)](){const _0x1fbd40=_0xe171a1,_0x1246f=new _0x3700fa(this[_0x1fbd40(0xd8)]),_0x369456=new _0x1dbc2f(this[_0x1fbd40(0xd8)]);return _0x369456[_0x1fbd40(0xdf)]({'withText':!0x1,'icon':_0x1930d2,'class':_0x1fbd40(0xe0)}),_0x369456[_0x1fbd40(0x11b)](_0x1fbd40(0xd7))['to'](this,_0x1fbd40(0xe7),_0x43ee92=>!!_0x43ee92),_0x369456['on'](_0x1fbd40(0x107),()=>{const _0x1679ad=_0x1fbd40;this[_0x1679ad(0x115)]='';}),_0x1246f[_0x1fbd40(0xd0)]({'tag':_0x1fbd40(0xc9),'attributes':{'class':['ck',_0x1fbd40(0xc6),this[_0x1fbd40(0x101)]['if'](_0x1fbd40(0x115),_0x1fbd40(0xda),_0x1fd21f=>!_0x1fd21f)]},'children':[{'tag':'p','children':[{'text':this[_0x1fbd40(0x101)]['to'](_0x1fbd40(0x115))}]},_0x369456]}),_0x1246f;}[_0xe171a1(0xea)](){const _0x37a22d=_0xe171a1,_0x5b608d=new _0x1dbc2f(this[_0x37a22d(0xd8)]);_0x5b608d[_0x37a22d(0xdf)]({'label':_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xcc)),'withText':!0x0,'icon':_0x2dcceb,'class':_0x37a22d(0xca)}),_0x5b608d['on'](_0x37a22d(0x107),()=>{const _0x5c5601=_0x37a22d;this[_0x5c5601(0xc7)](_0x5c5601(0xfc));});const _0x3aecc1=new _0x3700fa(this[_0x37a22d(0xd8)]);return _0x3aecc1[_0x37a22d(0xd0)]({'tag':_0x37a22d(0xc9),'attributes':{'class':[_0x37a22d(0xe3),this[_0x37a22d(0x101)]['if'](_0x37a22d(0xc5),_0x37a22d(0xda),_0x2ba0fb=>!_0x2ba0fb)]},'children':[{'tag':'p','attributes':{'class':[_0x37a22d(0xff)]},'children':[_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xe9))]},_0x5b608d]}),_0x3aecc1;}[_0xe171a1(0x11c)](_0x18b4da,_0x1e24a4){const _0x1f39b6=_0xe171a1,_0x57c2b0=[];for(const _0x1838b9 of _0x18b4da){const _0xdb7545=new _0x1e3c53(_0x1e24a4,_0x1838b9);_0xdb7545[_0x1f39b6(0xf1)](..._0x4e08e0)['to'](this),_0x57c2b0[_0x1f39b6(0xf3)](_0xdb7545);}return _0x57c2b0;}[_0xe171a1(0xf8)](_0x1e78ef){const _0x54bf5e=_0xe171a1,_0x550e27=this[_0x54bf5e(0xd8)]||'en',_0x1c0d76=[];for(const _0x4e39e6 of _0x1e78ef){const _0x4ee345=this[_0x54bf5e(0x11c)](_0x4e39e6[_0x54bf5e(0xe5)],_0x550e27);_0x1c0d76[_0x54bf5e(0xf3)](new _0x3ba45f(_0x550e27,{'title':_0x4e39e6[_0x54bf5e(0x10b)],'items':_0x4ee345}));}this[_0x54bf5e(0xd3)][_0x54bf5e(0xcb)]=_0x1c0d76,this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0x112)](),this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0xf5)](_0x1c0d76),this[_0x54bf5e(0xe7)]=_0x1e78ef[_0x54bf5e(0x118)](_0x1ff9d3=>_0x1ff9d3[_0x54bf5e(0xe5)][_0x54bf5e(0x109)]>0x0),this[_0x54bf5e(0xec)]();}[_0xe171a1(0xd5)](_0x55d4dd){const _0x1fd596=_0xe171a1;for(const _0x37fd4d of this[_0x1fd596(0xd3)][_0x1fd596(0xcb)]){const _0x557815=_0x37fd4d[_0x1fd596(0x10a)](_0x55d4dd);if(_0x557815){if(_0x37fd4d[_0x1fd596(0x11d)](_0x557815),0x0===_0x37fd4d[_0x1fd596(0x104)][_0x1fd596(0x109)]){const _0x1d580c=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x100)](_0x37fd4d);-0x1!==_0x1d580c&&(this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0xce)](_0x1d580c,0x1),this[_0x1fd596(0xd3)][_0x1fd596(0xe5)][_0x1fd596(0x111)](_0x37fd4d));}this[_0x1fd596(0xe7)]=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x109)]>0x0,this[_0x1fd596(0xec)]();break;}}}[_0xe171a1(0xd4)](_0x5e7566,_0x32d94a){const _0x409ebb=_0xe171a1;for(const _0x138c76 of this[_0x409ebb(0xd3)][_0x409ebb(0xcb)]){const _0x2db4b8=_0x138c76[_0x409ebb(0x10a)](_0x5e7566);if(_0x2db4b8){_0x2db4b8[_0x409ebb(0xc8)](_0x32d94a);break;}}}[_0xe171a1(0xf9)](_0x36527d,_0x263117,_0x1409ce){const _0x1ce8b4=_0xe171a1;for(const _0x2b807a of this[_0x1ce8b4(0xd3)][_0x1ce8b4(0xcb)]){const _0x413204=_0x2b807a[_0x1ce8b4(0x10a)](_0x36527d);if(_0x413204){_0x413204[_0x1ce8b4(0xf6)](_0x263117,_0x1409ce);break;}}}[_0xe171a1(0xec)](){const _0x1a7105=_0xe171a1;if(this[_0x1a7105(0xe7)]){const _0x5a7317=this[_0x1a7105(0xcf)][_0x1a7105(0xe8)][_0x1a7105(0xf4)]?.[_0x1a7105(0xf7)]?.[_0x1a7105(0xd1)]||'';this[_0x1a7105(0xcf)][_0x1a7105(0xdb)](_0x5a7317);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x78fc6a=_0xa7f3;(function(_0x400183,_0x5513f9){const _0x1aabed=_0xa7f3,_0x2fd7c3=_0x400183();while(!![]){try{const _0x487d2a=-parseInt(_0x1aabed(0xde))/0x1*(parseInt(_0x1aabed(0x13b))/0x2)+-parseInt(_0x1aabed(0x116))/0x3*(parseInt(_0x1aabed(0xe2))/0x4)+parseInt(_0x1aabed(0x12f))/0x5*(parseInt(_0x1aabed(0xd1))/0x6)+-parseInt(_0x1aabed(0xf1))/0x7*(-parseInt(_0x1aabed(0xd0))/0x8)+parseInt(_0x1aabed(0x118))/0x9*(-parseInt(_0x1aabed(0xe9))/0xa)+-parseInt(_0x1aabed(0xee))/0xb+parseInt(_0x1aabed(0x142))/0xc;if(_0x487d2a===_0x5513f9)break;else _0x2fd7c3['push'](_0x2fd7c3['shift']());}catch(_0x32ceea){_0x2fd7c3['push'](_0x2fd7c3['shift']());}}}(_0x298f,0x56346));import{createParser as _0x33dbd8}from'eventsource-parser';import{ContextPlugin as _0xebef71}from'ckeditor5/src/core.js';function _0xa7f3(_0x45822d,_0x50829b){const _0x298f6e=_0x298f();return _0xa7f3=function(_0xa7f35e,_0x2f66f2){_0xa7f35e=_0xa7f35e-0xb9;let _0x1aca4b=_0x298f6e[_0xa7f35e];return _0x1aca4b;},_0xa7f3(_0x45822d,_0x50829b);}import{CKEditorError as _0x392663}from'ckeditor5/src/utils.js';function _0x298f(){const _0x1b4970=['stringify','make-shorter','upsertAIActionRating','Bearer\x20','deleteFile','uploadFile','/conversations?','/models/1','make-tone-casual','isPremiumPlugin','_sendApiRequest','upsertCustomAIReviewRating','AI_MODEL_DESCRIPTION_','/messages','read','fix-grammar','continue','MAKE_TONE_FORMAL','append','executeCustomAction','/conversations','ai.serviceUrl','PATCH','statusText','CloudServices','/reviews/custom/calls/','decode','abortController','/actions/custom/calls/','attributes','904oczKxi','1876332mgRZGv','AIConnector','callCustomReview','locale','TRANSLATE','positiveCount','body','getModels','group','isOfficialPlugin','upsertCustomAIActionRating','startConversation','totalCount','69619LOuYLP','length','GET','status','144132YPYnaZ','100','true','ai-request-failed','deleteConversation','releaseLock','callSystemReview','20TnDIIs','/conversations/','name','init','file','561022MuFAgN','context','/calls','6965hAgMKr','deleteDocument','uploadDocument','/calls/','reset','/files','getReader','search','CONTINUE','map','/messages/','updateConversation','signal','make-tone-formal','toUpperCase','request','uploadUrl','plugins','pluginName','MAKE_TONE_CASUAL','PUT','feed','/web-resources/','/reviews/system/','upsertAIReviewRating','queryAssistant','fetchConversationMessages','limit','toString','_decoder','_getStreamReader','fetchConversation','json','/documents/','fetchConversations','fetchDocument','/web-resources','6MgReIm','FIX_GRAMMAR','2286tQZZSd','requires','/actions/custom/calls','https://ai.cke-cs.com/v1','make-longer','Content-Type','define','MAKE_LONGER','value','DELETE','_handleError','keys','translate','config','push','/actions/system/','items','POST','get','/files/','catch','/documents','/ratings','10VdCpOR','excludeEmpty','IMPROVE_WRITING','AbortError','_apiUrl','deleteWebResource','upsertAIChatRating','_token','data','ai-missing-token','parse','MAKE_SHORTER','8xswbSe','ai-request-aborted','improve-writing','text','then','token','application/json','207204uKjhqI','executeAction','/reviews/custom/calls'];_0x298f=function(){return _0x1b4970;};return _0x298f();}import{getTranslation as _0x549dc4}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x301d56){const _0xa2e54b=_0xa7f3;_0x301d56[_0xa2e54b(0xf9)]=_0xa2e54b(0xc2),_0x301d56[_0xa2e54b(0x117)]=_0xa2e54b(0xc1),_0x301d56[_0xa2e54b(0x131)]=_0xa2e54b(0x13d),_0x301d56[_0xa2e54b(0x11f)]=_0xa2e54b(0x11c),_0x301d56[_0xa2e54b(0x13a)]=_0xa2e54b(0x146),_0x301d56[_0xa2e54b(0x104)]=_0xa2e54b(0xba),_0x301d56[_0xa2e54b(0xc3)]=_0xa2e54b(0xfe),_0x301d56[_0xa2e54b(0xd5)]=_0xa2e54b(0x124);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xebef71{[_0x78fc6a(0x133)];[_0x78fc6a(0x136)];[_0x78fc6a(0x10e)];static get[_0x78fc6a(0x119)](){const _0x3f24ad=_0x78fc6a;return[_0x3f24ad(0xca)];}static get[_0x78fc6a(0x103)](){const _0x53fdb2=_0x78fc6a;return _0x53fdb2(0xd2);}static get[_0x78fc6a(0xda)](){return!0x0;}static get[_0x78fc6a(0xbb)](){return!0x0;}constructor(_0x4beea0){const _0x3fbef4=_0x78fc6a;super(_0x4beea0),this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x11e)](_0x3fbef4(0xc7),_0x3fbef4(0x11b)),this[_0x3fbef4(0x133)]=this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x12a)](_0x3fbef4(0xc7)),this[_0x3fbef4(0x136)]=null,this[_0x3fbef4(0x10e)]=new TextDecoder();}[_0x78fc6a(0xec)](){const _0x20813f=_0x78fc6a,_0x32f780=this[_0x20813f(0xef)][_0x20813f(0x102)][_0x20813f(0x12a)](_0x20813f(0xca));if(!_0x32f780[_0x20813f(0x140)])throw new _0x392663(_0x20813f(0x138),this);this[_0x20813f(0x136)]=_0x32f780[_0x20813f(0x140)];}[_0x78fc6a(0xdc)](_0x5f0d51,_0xa778bb){const _0x59ee1e=_0x78fc6a,_0x4fcb73=this[_0x59ee1e(0xbc)](_0x59ee1e(0xc6),_0x59ee1e(0x129),{'id':_0x5f0d51,'group':_0xa778bb});return{'getConversation':async()=>(await _0x4fcb73[_0x59ee1e(0x100)])[_0x59ee1e(0x111)](),'abortController':_0x4fcb73[_0x59ee1e(0xcd)]};}[_0x78fc6a(0x10a)]({message:_0x5dfc28,conversationId:_0x11f064,parts:_0x1d2991,capabilities:_0x12e24a,model:_0x3e1149,quickActionData:_0x246219}){const _0x286052=_0x78fc6a,_0x5c4937={..._0x246219&&{'quickActionData':_0x246219}},_0x4859a4={'prompt':_0x5dfc28,'content':_0x1d2991,'model':_0x3e1149,..._0x12e24a&&{'capabilities':_0x12e24a},...Object[_0x286052(0x123)](_0x5c4937)[_0x286052(0xdf)]>0x0&&{'attributes':_0x5c4937}},_0x266f00=this[_0x286052(0xbc)](_0x286052(0xea)+_0x11f064+_0x286052(0xbf),_0x286052(0x129),_0x4859a4);return{'getStream':async()=>{const _0x216ba4=_0x286052,_0x107cba=(await _0x266f00[_0x216ba4(0x100)])[_0x216ba4(0xd7)];return this[_0x216ba4(0x10f)](_0x107cba);},'abortController':_0x266f00[_0x286052(0xcd)]};}[_0x78fc6a(0xc5)]({content:_0x1447ba,message:_0x5bc05a,model:_0x56d73e,outputFormat:_0x432fab}){const _0x31c97a=_0x78fc6a,_0x1b8e6b={'content':[{'type':_0x31c97a(0x13e),'content':_0x1447ba}],'prompt':_0x5bc05a,'model':_0x56d73e,'outputFormat':_0x432fab},_0x1fcbcf=this[_0x31c97a(0xbc)](_0x31c97a(0x11a),_0x31c97a(0x129),_0x1b8e6b);return{'getStream':async()=>{const _0x36fc22=_0x31c97a,_0x60617c=(await _0x1fcbcf[_0x36fc22(0x100)])[_0x36fc22(0xd7)];return this[_0x36fc22(0x10f)](_0x60617c);},'abortController':_0x1fcbcf[_0x31c97a(0xcd)]};}[_0x78fc6a(0x143)]({actionName:_0x46062a,content:_0x12246e,args:_0x37a756}){const _0x1ad0d6=_0x78fc6a,_0x9cf9da={'content':[{'type':_0x1ad0d6(0x13e),'content':_0x12246e}],'args':_0x37a756},_0x1caf0a=this[_0x1ad0d6(0xbc)](_0x1ad0d6(0x127)+_0x46062a+_0x1ad0d6(0xf0),_0x1ad0d6(0x129),_0x9cf9da);return{'getStream':async()=>{const _0x161868=_0x1ad0d6,_0x1b20f9=(await _0x1caf0a[_0x161868(0x100)])[_0x161868(0xd7)];return this[_0x161868(0x10f)](_0x1b20f9);},'abortController':_0x1caf0a[_0x1ad0d6(0xcd)]};}[_0x78fc6a(0x14a)](_0x1ac786,_0x11d706,_0x5695e7){const _0x407ef2=_0x78fc6a,_0xe91018=new FormData();_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xed),_0x11d706,_0x11d706[_0x407ef2(0xeb)]),_0x5695e7&&_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xcf),JSON[_0x407ef2(0x145)](_0x5695e7));const _0x37e6fc=this[_0x407ef2(0xbc)](_0x407ef2(0xea)+_0x1ac786+_0x407ef2(0xf6),_0x407ef2(0x129),_0xe91018);return{'getId':async()=>(await _0x37e6fc[_0x407ef2(0x100)])[_0x407ef2(0x111)](),'abortController':_0x37e6fc[_0x407ef2(0xcd)]};}[_0x78fc6a(0x114)](_0x27ad48,_0x31cceb){const _0x4e8711=_0x78fc6a,_0x423dd0=this[_0x4e8711(0xbc)](_0x4e8711(0xea)+_0x27ad48+_0x4e8711(0x112)+_0x31cceb,_0x4e8711(0xe0));return{'getDocument':async()=>(await _0x423dd0[_0x4e8711(0x100)])[_0x4e8711(0x111)](),'abortController':_0x423dd0[_0x4e8711(0xcd)]};}[_0x78fc6a(0xf3)](_0xc9a199,_0x4b2fcb,_0x324f8f){const _0x19a60c=_0x78fc6a,_0x57ffc8={'content':_0x4b2fcb};_0x324f8f&&(_0x57ffc8[_0x19a60c(0xcf)]=_0x324f8f);const _0x3e4071=this[_0x19a60c(0xbc)](_0x19a60c(0xea)+_0xc9a199+_0x19a60c(0x12d),_0x19a60c(0x129),_0x57ffc8);return{'getId':async()=>(await _0x3e4071[_0x19a60c(0x100)])[_0x19a60c(0x111)](),'abortController':_0x3e4071[_0x19a60c(0xcd)]};}[_0x78fc6a(0x113)](_0x19e824,_0xeed8f1){const _0x27e870=_0x78fc6a,_0x337af5=new URLSearchParams();_0x337af5[_0x27e870(0xc4)](_0x27e870(0x130),_0x27e870(0xe4)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0x10c),_0x27e870(0xe3)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0xd9),_0x19e824),_0xeed8f1&&_0x337af5[_0x27e870(0xc4)](_0x27e870(0xf8),_0xeed8f1);const _0x1405d0=this[_0x27e870(0xbc)](_0x27e870(0x14b)+_0x337af5[_0x27e870(0x10d)](),_0x27e870(0xe0));return{'getConversations':async()=>{const _0x479aa6=_0x27e870,_0xc62037=await _0x1405d0[_0x479aa6(0x100)];return(await _0xc62037[_0x479aa6(0x111)]())[_0x479aa6(0x128)];},'abortController':_0x1405d0[_0x27e870(0xcd)]};}[_0x78fc6a(0xe6)](_0x23b6c0){const _0x23b860=_0x78fc6a,_0x1d9304=this[_0x23b860(0xbc)](_0x23b860(0xea)+_0x23b6c0,_0x23b860(0x121));return{'execute':async()=>{const _0x94e661=_0x23b860;await _0x1d9304[_0x94e661(0x100)];},'abortController':_0x1d9304[_0x23b860(0xcd)]};}[_0x78fc6a(0xfc)](_0x312f95,_0x55c8ff){const _0x2b21b6=_0x78fc6a,_0xcd4f24=this[_0x2b21b6(0xbc)](_0x2b21b6(0xea)+_0x312f95,_0x2b21b6(0xc8),_0x55c8ff);return{'getResult':async()=>(await _0xcd4f24[_0x2b21b6(0x100)],_0x55c8ff),'abortController':_0xcd4f24[_0x2b21b6(0xcd)]};}[_0x78fc6a(0x110)](_0x1e97f6){const _0x525557=_0x78fc6a,_0x23b5e5=this[_0x525557(0xbc)](_0x525557(0xea)+_0x1e97f6,_0x525557(0xe0));return{'getConversation':async()=>(await _0x23b5e5[_0x525557(0x100)])[_0x525557(0x111)](),'abortController':_0x23b5e5[_0x525557(0xcd)]};}[_0x78fc6a(0x10b)](_0x433deb){const _0x913731=_0x78fc6a,_0x427a03=this[_0x913731(0xbc)](_0x913731(0xea)+_0x433deb+_0x913731(0xbf),_0x913731(0xe0));return{'getMessages':async()=>{const _0x3b2d33=_0x913731,_0x4e6e81=await _0x427a03[_0x3b2d33(0x100)];return(await _0x4e6e81[_0x3b2d33(0x111)]())[_0x3b2d33(0x128)];},'abortController':_0x427a03[_0x913731(0xcd)]};}[_0x78fc6a(0x101)](_0x2dafef,_0x25e529,_0x17793d){const _0x3dac43=_0x78fc6a,_0x43dc71=this[_0x3dac43(0xbc)](_0x3dac43(0xea)+_0x2dafef+_0x3dac43(0x115),_0x3dac43(0x129),{'url':_0x25e529,'attributes':_0x17793d});return{'getId':async()=>(await _0x43dc71[_0x3dac43(0x100)])[_0x3dac43(0x111)](),'abortController':_0x43dc71[_0x3dac43(0xcd)]};}[_0x78fc6a(0xd8)](){const _0x56853c=_0x78fc6a,_0x2ee2f1=this[_0x56853c(0xbc)](_0x56853c(0xb9),_0x56853c(0xe0));return{'list':async()=>{const _0x5c4389=_0x56853c,_0xb86afb=await(await _0x2ee2f1[_0x5c4389(0x100)])[_0x5c4389(0x111)](),_0x51909f=_0xb86afb[_0x5c4389(0x128)][_0x5c4389(0xfa)](_0x4a1f39=>({..._0x4a1f39,'description':_0x549dc4(this[_0x5c4389(0xef)][_0x5c4389(0xd4)],_0x5c4389(0xbe)+_0x4a1f39['id'][_0x5c4389(0xff)]())}));return{..._0xb86afb,'items':_0x51909f};},'abortController':_0x2ee2f1[_0x56853c(0xcd)]};}[_0x78fc6a(0x149)](_0x443529,_0x416979){const _0x36dbaf=_0x78fc6a,_0x2f2039=this[_0x36dbaf(0xbc)](_0x36dbaf(0xea)+_0x443529+_0x36dbaf(0x12b)+_0x416979,_0x36dbaf(0x121));return{'execute':async()=>{const _0x5adad2=_0x36dbaf;await _0x2f2039[_0x5adad2(0x100)];},'abortController':_0x2f2039[_0x36dbaf(0xcd)]};}[_0x78fc6a(0xf2)](_0x3f7be5,_0x21dd02){const _0x2fbcc0=_0x78fc6a,_0x2cfc3e=this[_0x2fbcc0(0xbc)](_0x2fbcc0(0xea)+_0x3f7be5+_0x2fbcc0(0x112)+_0x21dd02,_0x2fbcc0(0x121));return{'execute':async()=>{const _0xe1613d=_0x2fbcc0;await _0x2cfc3e[_0xe1613d(0x100)];},'abortController':_0x2cfc3e[_0x2fbcc0(0xcd)]};}[_0x78fc6a(0x134)](_0x3a195d,_0x1253a2){const _0x31dce3=_0x78fc6a,_0x155987=this[_0x31dce3(0xbc)](_0x31dce3(0xea)+_0x3a195d+_0x31dce3(0x107)+_0x1253a2,_0x31dce3(0x121));return{'execute':async()=>{const _0x34c9dc=_0x31dce3;await _0x155987[_0x34c9dc(0x100)];},'abortController':_0x155987[_0x31dce3(0xcd)]};}[_0x78fc6a(0xe8)]({reviewName:_0x3bfe2f,content:_0x4d1e17,args:_0x393e74}){const _0x6a5932=_0x78fc6a,_0x23de36=this[_0x6a5932(0xbc)](_0x6a5932(0x108)+_0x3bfe2f+_0x6a5932(0xf0),_0x6a5932(0x129),{'content':[{'type':_0x6a5932(0x13e),'content':_0x4d1e17}],'args':_0x393e74});return{'getStream':async()=>{const _0x398e48=_0x6a5932,_0x349b24=(await _0x23de36[_0x398e48(0x100)])[_0x398e48(0xd7)];return this[_0x398e48(0x10f)](_0x349b24);},'abortController':_0x23de36[_0x6a5932(0xcd)]};}[_0x78fc6a(0xd3)]({content:_0x35e332,prompt:_0x5bb83e,model:_0x753d83}){const _0xf99520=_0x78fc6a,_0x1078f0=this[_0xf99520(0xbc)](_0xf99520(0x144),_0xf99520(0x129),{'content':[{'type':_0xf99520(0x13e),'content':_0x35e332}],'prompt':_0x5bb83e,'model':_0x753d83});return{'getStream':async()=>{const _0x514a97=_0xf99520,_0x158227=(await _0x1078f0[_0x514a97(0x100)])[_0x514a97(0xd7)];return this[_0x514a97(0x10f)](_0x158227);},'abortController':_0x1078f0[_0xf99520(0xcd)]};}[_0x78fc6a(0x135)](_0x454c0c,_0x1e7a86,_0xcef420){const _0x1cbcd4=_0x78fc6a,_0x1a31dd=this[_0x1cbcd4(0xbc)](_0x1cbcd4(0xea)+_0x454c0c+_0x1cbcd4(0xfb)+_0x1e7a86+_0x1cbcd4(0x12e),_0x1cbcd4(0x105),{'positiveCount':_0xcef420[_0x1cbcd4(0xd6)],'totalCount':_0xcef420[_0x1cbcd4(0xdd)]});return{'execute':async()=>{const _0x1a651c=_0x1cbcd4;await _0x1a31dd[_0x1a651c(0x100)];},'abortController':_0x1a31dd[_0x1cbcd4(0xcd)]};}[_0x78fc6a(0x147)](_0x199a2b,_0x358deb,_0x24fac2){const _0x37bf04=_0x78fc6a,_0x1a4d9a=this[_0x37bf04(0xbc)](_0x37bf04(0x127)+_0x199a2b+_0x37bf04(0xf4)+_0x358deb+_0x37bf04(0x12e),_0x37bf04(0x105),{'positiveCount':_0x24fac2[_0x37bf04(0xd6)],'totalCount':_0x24fac2[_0x37bf04(0xdd)]});return{'execute':async()=>{const _0x43d43e=_0x37bf04;await _0x1a4d9a[_0x43d43e(0x100)];},'abortController':_0x1a4d9a[_0x37bf04(0xcd)]};}[_0x78fc6a(0xdb)](_0x444158,_0x4feb31){const _0x14e1e6=_0x78fc6a,_0x37b84c=this[_0x14e1e6(0xbc)](_0x14e1e6(0xce)+_0x444158+_0x14e1e6(0x12e),_0x14e1e6(0x105),{'positiveCount':_0x4feb31[_0x14e1e6(0xd6)],'totalCount':_0x4feb31[_0x14e1e6(0xdd)]});return{'execute':async()=>{const _0x3d242c=_0x14e1e6;await _0x37b84c[_0x3d242c(0x100)];},'abortController':_0x37b84c[_0x14e1e6(0xcd)]};}[_0x78fc6a(0x109)](_0xf318f7,_0x2979bc,_0x1ab9ae,_0x27f8e9){const _0x101b2f=_0x78fc6a,_0x584540=this[_0x101b2f(0xbc)](_0x101b2f(0x108)+_0xf318f7+_0x101b2f(0xf4)+_0x2979bc+_0x101b2f(0x12e),_0x101b2f(0x105),{'positiveCount':_0x1ab9ae[_0x101b2f(0xd6)],'totalCount':_0x1ab9ae[_0x101b2f(0xdd)],'dataId':_0x27f8e9});return{'execute':async()=>{const _0x3d9d11=_0x101b2f;await _0x584540[_0x3d9d11(0x100)];},'abortController':_0x584540[_0x101b2f(0xcd)]};}[_0x78fc6a(0xbd)](_0xd6bf18,_0x1bc0fc,_0xa5befe){const _0x4d7fed=_0x78fc6a,_0x49991c=this[_0x4d7fed(0xbc)](_0x4d7fed(0xcb)+_0xd6bf18+_0x4d7fed(0x12e),_0x4d7fed(0x105),{'positiveCount':_0x1bc0fc[_0x4d7fed(0xd6)],'totalCount':_0x1bc0fc[_0x4d7fed(0xdd)],'dataId':_0xa5befe});return{'execute':async()=>{const _0x46efe2=_0x4d7fed;await _0x49991c[_0x46efe2(0x100)];},'abortController':_0x49991c[_0x4d7fed(0xcd)]};}[_0x78fc6a(0xbc)](_0x36013d,_0x411921,_0x563dc3){const _0x532d45=_0x78fc6a,_0x52d9ae=new AbortController(),_0x34e1f0=_0x563dc3 instanceof FormData,_0x1ed89d={'Authorization':_0x532d45(0x148)+this[_0x532d45(0x136)]?.[_0x532d45(0x120)]};_0x563dc3&&!_0x34e1f0&&(_0x1ed89d[_0x532d45(0x11d)]=_0x532d45(0x141));const _0x5c43e9={'method':_0x411921,'headers':_0x1ed89d,'signal':_0x52d9ae[_0x532d45(0xfd)]};return _0x563dc3&&(_0x5c43e9[_0x532d45(0xd7)]=_0x34e1f0?_0x563dc3:JSON[_0x532d45(0x145)](_0x563dc3)),{'request':fetch(''+this[_0x532d45(0x133)]+_0x36013d,_0x5c43e9)[_0x532d45(0x12c)](_0x36dc8f=>{const _0x401abd=_0x532d45;this[_0x401abd(0x122)](_0x36dc8f);})[_0x532d45(0x13f)](_0x568d0b=>{const _0x1702e1=_0x532d45;if(!_0x568d0b['ok'])throw new _0x392663(_0x1702e1(0xe5),this,{'url':this[_0x1702e1(0x133)],'path':_0x36013d,'method':_0x411921,'body':_0x563dc3,'status':(_0x568d0b||{})[_0x1702e1(0xe1)],'statusText':(_0x568d0b||{})[_0x1702e1(0xc9)]});return _0x568d0b;}),'abortController':_0x52d9ae};}async*[_0x78fc6a(0x10f)](_0x2a6946){const _0x17d7a5=_0x78fc6a,_0x3ef970=[],_0x2b66d9=_0x2a6946[_0x17d7a5(0xf7)](),_0xf69544=_0x33dbd8({'onError':_0xf3386c=>{const _0x36a13b=_0x17d7a5;this[_0x36a13b(0x122)](_0xf3386c);},'onEvent':_0x1946d3=>{const _0x466f9e=_0x17d7a5;_0x1946d3[_0x466f9e(0x137)]=JSON[_0x466f9e(0x139)](_0x1946d3[_0x466f9e(0x137)]),_0x3ef970[_0x466f9e(0x126)](_0x1946d3);}});try{let _0x1d7b90=!0x1;for(;!_0x1d7b90;){const {done:_0xbec77e,value:_0x5a0c50}=await _0x2b66d9[_0x17d7a5(0xc0)]();_0xbec77e&&(_0x1d7b90=!0x0),_0xf69544[_0x17d7a5(0x106)](this[_0x17d7a5(0x10e)][_0x17d7a5(0xcc)](_0x5a0c50,{'stream':!0x0})),yield*_0x3ef970,_0x3ef970[_0x17d7a5(0xdf)]=0x0;}}catch(_0x4d7447){this[_0x17d7a5(0x122)](_0x4d7447);}finally{_0x2b66d9[_0x17d7a5(0xe7)](),_0xf69544[_0x17d7a5(0xf5)]();}}[_0x78fc6a(0x122)](_0x2f5406){const _0x256941=_0x78fc6a;if(_0x2f5406 instanceof _0x392663)throw _0x2f5406;if(_0x2f5406 instanceof Error&&_0x256941(0x132)===_0x2f5406[_0x256941(0xeb)])throw new _0x392663(_0x256941(0x13c),this,{'originalError':_0x2f5406});throw new _0x392663(_0x256941(0xe5),this,{'originalError':_0x2f5406});}}
23
+ function _0x35b3(_0x5bc12c,_0x5eb589){const _0x2acd1a=_0x2acd();return _0x35b3=function(_0x35b3a7,_0x3e03eb){_0x35b3a7=_0x35b3a7-0x11f;let _0x203719=_0x2acd1a[_0x35b3a7];return _0x203719;},_0x35b3(_0x5bc12c,_0x5eb589);}const _0x120554=_0x35b3;function _0x2acd(){const _0x5a5aa2=['/models/1','feed','get','/calls/','deleteConversation','text','value','/reviews/custom/calls','fetchConversationMessages','/calls','getModels','positiveCount','parse','deleteDocument','MAKE_TONE_FORMAL','_getStreamReader','/conversations/','make-tone-casual','deleteFile','group','AI_MODEL_DESCRIPTION_','812825yAbCrJ','upsertCustomAIActionRating','/web-resources/','DELETE','deleteWebResource','translate','uploadUrl','fetchDocument','isOfficialPlugin','IMPROVE_WRITING','upsertAIActionRating','uploadDocument','keys','ai.serviceUrl','define','/documents','MAKE_LONGER','body','/reviews/system/','_apiUrl','AIConnector','statusText','application/json','MAKE_SHORTER','POST','getReader','toUpperCase','9JaHRjB','fetchConversations','/web-resources','/conversations?','3416LKjqAa','decode','name','MAKE_TONE_CASUAL','make-shorter','updateConversation','upsertAIChatRating','1837452KdaGXo','/messages/','294910fAtKmG','abortController','/reviews/custom/calls/','data','read','reset','append','executeCustomAction','improve-writing','uploadFile','stringify','/actions/custom/calls','push','6209896yQgvTe','catch','executeAction','312PtdEyk','372061wZOVqu','releaseLock','ai-missing-token','/messages','excludeEmpty','GET','file','ai-request-aborted','length','pluginName','/actions/system/','totalCount','token','requires','continue','attributes','/ratings','json','AbortError','status','Bearer\x20','plugins','isPremiumPlugin','callSystemReview','/files/','_handleError','request','/files','items','make-longer','then','search','/actions/custom/calls/','context','locale','1195041YXcmEp','CloudServices','true','callCustomReview','FIX_GRAMMAR','init','limit','ai-request-failed','_token','make-tone-formal','_sendApiRequest','fix-grammar','PATCH','signal','toString','CONTINUE','PUT','startConversation','Content-Type','https://ai.cke-cs.com/v1','upsertCustomAIReviewRating','100','upsertAIReviewRating','/conversations','_decoder','fetchConversation','queryAssistant','/documents/','config','map','TRANSLATE'];_0x2acd=function(){return _0x5a5aa2;};return _0x2acd();}(function(_0x22252e,_0x3fc003){const _0x39f128=_0x35b3,_0x5d328e=_0x22252e();while(!![]){try{const _0x2e85b3=-parseInt(_0x39f128(0x16b))/0x1+parseInt(_0x39f128(0x15a))/0x2+parseInt(_0x39f128(0x18e))/0x3+-parseInt(_0x39f128(0x158))/0x4+-parseInt(_0x39f128(0x132))/0x5+-parseInt(_0x39f128(0x16a))/0x6*(parseInt(_0x39f128(0x151))/0x7)+-parseInt(_0x39f128(0x167))/0x8*(-parseInt(_0x39f128(0x14d))/0x9);if(_0x2e85b3===_0x3fc003)break;else _0x5d328e['push'](_0x5d328e['shift']());}catch(_0x1f1bb5){_0x5d328e['push'](_0x5d328e['shift']());}}}(_0x2acd,0x49e52));import{createParser as _0x7cd71a}from'eventsource-parser';import{ContextPlugin as _0x446766}from'ckeditor5/src/core.js';import{CKEditorError as _0x1a255e}from'ckeditor5/src/utils.js';import{getTranslation as _0x497beb}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x57b8b9){const _0x1203df=_0x35b3;_0x57b8b9[_0x1203df(0x19d)]=_0x1203df(0x179),_0x57b8b9[_0x1203df(0x192)]=_0x1203df(0x199),_0x57b8b9[_0x1203df(0x13b)]=_0x1203df(0x162),_0x57b8b9[_0x1203df(0x142)]=_0x1203df(0x188),_0x57b8b9[_0x1203df(0x149)]=_0x1203df(0x155),_0x57b8b9[_0x1203df(0x154)]=_0x1203df(0x12e),_0x57b8b9[_0x1203df(0x12b)]=_0x1203df(0x197),_0x57b8b9[_0x1203df(0x1ac)]=_0x1203df(0x137);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x446766{[_0x120554(0x145)];[_0x120554(0x196)];[_0x120554(0x1a6)];static get[_0x120554(0x178)](){const _0x4e7aed=_0x120554;return[_0x4e7aed(0x18f)];}static get[_0x120554(0x174)](){const _0x15a932=_0x120554;return _0x15a932(0x146);}static get[_0x120554(0x13a)](){return!0x0;}static get[_0x120554(0x181)](){return!0x0;}constructor(_0x3f7502){const _0x20bab2=_0x120554;super(_0x3f7502),this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x140)](_0x20bab2(0x13f),_0x20bab2(0x1a1)),this[_0x20bab2(0x145)]=this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x11f)](_0x20bab2(0x13f)),this[_0x20bab2(0x196)]=null,this[_0x20bab2(0x1a6)]=new TextDecoder();}[_0x120554(0x193)](){const _0xd005d6=_0x120554,_0x118f0f=this[_0xd005d6(0x18c)][_0xd005d6(0x180)][_0xd005d6(0x11f)](_0xd005d6(0x18f));if(!_0x118f0f[_0xd005d6(0x177)])throw new _0x1a255e(_0xd005d6(0x16d),this);this[_0xd005d6(0x196)]=_0x118f0f[_0xd005d6(0x177)];}[_0x120554(0x19f)](_0x15f3fe,_0xe00072){const _0xe1ebd3=_0x120554,_0x2e37db=this[_0xe1ebd3(0x198)](_0xe1ebd3(0x1a5),_0xe1ebd3(0x14a),{'id':_0x15f3fe,'group':_0xe00072});return{'getConversation':async()=>(await _0x2e37db[_0xe1ebd3(0x185)])[_0xe1ebd3(0x17c)](),'abortController':_0x2e37db[_0xe1ebd3(0x15b)]};}[_0x120554(0x1a8)]({message:_0x2ed30d,conversationId:_0x26398f,parts:_0xeb958e,capabilities:_0x219f2a,model:_0x183b3a,quickActionData:_0x43e367}){const _0x54af22=_0x120554,_0x5ea979={..._0x43e367&&{'quickActionData':_0x43e367}},_0x11a739={'prompt':_0x2ed30d,'content':_0xeb958e,'model':_0x183b3a,..._0x219f2a&&{'capabilities':_0x219f2a},...Object[_0x54af22(0x13e)](_0x5ea979)[_0x54af22(0x173)]>0x0&&{'attributes':_0x5ea979}},_0x5b67ad=this[_0x54af22(0x198)](_0x54af22(0x12d)+_0x26398f+_0x54af22(0x16e),_0x54af22(0x14a),_0x11a739);return{'getStream':async()=>{const _0x13130e=_0x54af22,_0x372f5e=(await _0x5b67ad[_0x13130e(0x185)])[_0x13130e(0x143)];return this[_0x13130e(0x12c)](_0x372f5e);},'abortController':_0x5b67ad[_0x54af22(0x15b)]};}[_0x120554(0x161)]({content:_0x233de8,message:_0x5d65cd,model:_0x5dc1ec,outputFormat:_0xd0b220}){const _0x374aaf=_0x120554,_0x2141f3={'content':[{'type':_0x374aaf(0x122),'content':_0x233de8}],'prompt':_0x5d65cd,'model':_0x5dc1ec,'outputFormat':_0xd0b220},_0x22cede=this[_0x374aaf(0x198)](_0x374aaf(0x165),_0x374aaf(0x14a),_0x2141f3);return{'getStream':async()=>{const _0x100f73=_0x374aaf,_0x198dea=(await _0x22cede[_0x100f73(0x185)])[_0x100f73(0x143)];return this[_0x100f73(0x12c)](_0x198dea);},'abortController':_0x22cede[_0x374aaf(0x15b)]};}[_0x120554(0x169)]({actionName:_0x56c0a5,content:_0x19d510,args:_0x11b0f0}){const _0x41d50c=_0x120554,_0x507b1e={'content':[{'type':_0x41d50c(0x122),'content':_0x19d510}],'args':_0x11b0f0},_0x40cc4a=this[_0x41d50c(0x198)](_0x41d50c(0x175)+_0x56c0a5+_0x41d50c(0x126),_0x41d50c(0x14a),_0x507b1e);return{'getStream':async()=>{const _0x115d6e=_0x41d50c,_0x330f37=(await _0x40cc4a[_0x115d6e(0x185)])[_0x115d6e(0x143)];return this[_0x115d6e(0x12c)](_0x330f37);},'abortController':_0x40cc4a[_0x41d50c(0x15b)]};}[_0x120554(0x163)](_0x49262c,_0x4da871,_0x287b44){const _0x3cc62c=_0x120554,_0x213a54=new FormData();_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x171),_0x4da871,_0x4da871[_0x3cc62c(0x153)]),_0x287b44&&_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x17a),JSON[_0x3cc62c(0x164)](_0x287b44));const _0x2e3bd5=this[_0x3cc62c(0x198)](_0x3cc62c(0x12d)+_0x49262c+_0x3cc62c(0x186),_0x3cc62c(0x14a),_0x213a54);return{'getId':async()=>(await _0x2e3bd5[_0x3cc62c(0x185)])[_0x3cc62c(0x17c)](),'abortController':_0x2e3bd5[_0x3cc62c(0x15b)]};}[_0x120554(0x139)](_0x523f20,_0x26dabf){const _0x8aa46a=_0x120554,_0x2912f8=this[_0x8aa46a(0x198)](_0x8aa46a(0x12d)+_0x523f20+_0x8aa46a(0x1a9)+_0x26dabf,_0x8aa46a(0x170));return{'getDocument':async()=>(await _0x2912f8[_0x8aa46a(0x185)])[_0x8aa46a(0x17c)](),'abortController':_0x2912f8[_0x8aa46a(0x15b)]};}[_0x120554(0x13d)](_0x229300,_0x118324,_0x35be1b){const _0x33263b=_0x120554,_0x34cecb={'content':_0x118324};_0x35be1b&&(_0x34cecb[_0x33263b(0x17a)]=_0x35be1b);const _0x8f5bdc=this[_0x33263b(0x198)](_0x33263b(0x12d)+_0x229300+_0x33263b(0x141),_0x33263b(0x14a),_0x34cecb);return{'getId':async()=>(await _0x8f5bdc[_0x33263b(0x185)])[_0x33263b(0x17c)](),'abortController':_0x8f5bdc[_0x33263b(0x15b)]};}[_0x120554(0x14e)](_0x37f951,_0x4786a2){const _0x3b2407=_0x120554,_0x6aeba4=new URLSearchParams();_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x16f),_0x3b2407(0x190)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x194),_0x3b2407(0x1a3)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x130),_0x37f951),_0x4786a2&&_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x18a),_0x4786a2);const _0x151d0e=this[_0x3b2407(0x198)](_0x3b2407(0x150)+_0x6aeba4[_0x3b2407(0x19c)](),_0x3b2407(0x170));return{'getConversations':async()=>{const _0x30d298=_0x3b2407,_0x3f7d53=await _0x151d0e[_0x30d298(0x185)];return(await _0x3f7d53[_0x30d298(0x17c)]())[_0x30d298(0x187)];},'abortController':_0x151d0e[_0x3b2407(0x15b)]};}[_0x120554(0x121)](_0x49aaef){const _0x3da3eb=_0x120554,_0x39b78c=this[_0x3da3eb(0x198)](_0x3da3eb(0x12d)+_0x49aaef,_0x3da3eb(0x135));return{'execute':async()=>{const _0x5387ec=_0x3da3eb;await _0x39b78c[_0x5387ec(0x185)];},'abortController':_0x39b78c[_0x3da3eb(0x15b)]};}[_0x120554(0x156)](_0x546f5e,_0x55d6e0){const _0x443307=_0x120554,_0x507585=this[_0x443307(0x198)](_0x443307(0x12d)+_0x546f5e,_0x443307(0x19a),_0x55d6e0);return{'getResult':async()=>(await _0x507585[_0x443307(0x185)],_0x55d6e0),'abortController':_0x507585[_0x443307(0x15b)]};}[_0x120554(0x1a7)](_0x547e6b){const _0x517d2f=_0x120554,_0x363183=this[_0x517d2f(0x198)](_0x517d2f(0x12d)+_0x547e6b,_0x517d2f(0x170));return{'getConversation':async()=>(await _0x363183[_0x517d2f(0x185)])[_0x517d2f(0x17c)](),'abortController':_0x363183[_0x517d2f(0x15b)]};}[_0x120554(0x125)](_0x430565){const _0x2a9fa3=_0x120554,_0x40c062=this[_0x2a9fa3(0x198)](_0x2a9fa3(0x12d)+_0x430565+_0x2a9fa3(0x16e),_0x2a9fa3(0x170));return{'getMessages':async()=>{const _0x3ef901=_0x2a9fa3,_0x495c16=await _0x40c062[_0x3ef901(0x185)];return(await _0x495c16[_0x3ef901(0x17c)]())[_0x3ef901(0x187)];},'abortController':_0x40c062[_0x2a9fa3(0x15b)]};}[_0x120554(0x138)](_0x121666,_0x227c0c,_0x5ca780){const _0x392202=_0x120554,_0x1cc9a2=this[_0x392202(0x198)](_0x392202(0x12d)+_0x121666+_0x392202(0x14f),_0x392202(0x14a),{'url':_0x227c0c,'attributes':_0x5ca780});return{'getId':async()=>(await _0x1cc9a2[_0x392202(0x185)])[_0x392202(0x17c)](),'abortController':_0x1cc9a2[_0x392202(0x15b)]};}[_0x120554(0x127)](){const _0x3dd6e9=_0x120554,_0x3dbdfb=this[_0x3dd6e9(0x198)](_0x3dd6e9(0x1ad),_0x3dd6e9(0x170));return{'list':async()=>{const _0x3382d8=_0x3dd6e9,_0x1daf52=await(await _0x3dbdfb[_0x3382d8(0x185)])[_0x3382d8(0x17c)](),_0x46f292=_0x1daf52[_0x3382d8(0x187)][_0x3382d8(0x1ab)](_0x31f375=>({..._0x31f375,'description':_0x497beb(this[_0x3382d8(0x18c)][_0x3382d8(0x18d)],_0x3382d8(0x131)+_0x31f375['id'][_0x3382d8(0x14c)]())}));return{..._0x1daf52,'items':_0x46f292};},'abortController':_0x3dbdfb[_0x3dd6e9(0x15b)]};}[_0x120554(0x12f)](_0x1d5d10,_0xad41a8){const _0x3aab7e=_0x120554,_0x1a3990=this[_0x3aab7e(0x198)](_0x3aab7e(0x12d)+_0x1d5d10+_0x3aab7e(0x183)+_0xad41a8,_0x3aab7e(0x135));return{'execute':async()=>{const _0x302b0d=_0x3aab7e;await _0x1a3990[_0x302b0d(0x185)];},'abortController':_0x1a3990[_0x3aab7e(0x15b)]};}[_0x120554(0x12a)](_0x57fa67,_0x2da0fd){const _0x5980bd=_0x120554,_0x468a66=this[_0x5980bd(0x198)](_0x5980bd(0x12d)+_0x57fa67+_0x5980bd(0x1a9)+_0x2da0fd,_0x5980bd(0x135));return{'execute':async()=>{const _0x44dbbf=_0x5980bd;await _0x468a66[_0x44dbbf(0x185)];},'abortController':_0x468a66[_0x5980bd(0x15b)]};}[_0x120554(0x136)](_0x9e9cad,_0xff8ef7){const _0x50cafc=_0x120554,_0x49f416=this[_0x50cafc(0x198)](_0x50cafc(0x12d)+_0x9e9cad+_0x50cafc(0x134)+_0xff8ef7,_0x50cafc(0x135));return{'execute':async()=>{const _0x267b2f=_0x50cafc;await _0x49f416[_0x267b2f(0x185)];},'abortController':_0x49f416[_0x50cafc(0x15b)]};}[_0x120554(0x182)]({reviewName:_0x501b63,content:_0x172aed,args:_0x5a2ad4}){const _0x108799=_0x120554,_0x44eb5e=this[_0x108799(0x198)](_0x108799(0x144)+_0x501b63+_0x108799(0x126),_0x108799(0x14a),{'content':[{'type':_0x108799(0x122),'content':_0x172aed}],'args':_0x5a2ad4});return{'getStream':async()=>{const _0x4e2c90=_0x108799,_0xc4f1a1=(await _0x44eb5e[_0x4e2c90(0x185)])[_0x4e2c90(0x143)];return this[_0x4e2c90(0x12c)](_0xc4f1a1);},'abortController':_0x44eb5e[_0x108799(0x15b)]};}[_0x120554(0x191)]({content:_0x1e7ebd,prompt:_0x4e1b37,model:_0xfd95c0}){const _0x49647b=_0x120554,_0x3cb392=this[_0x49647b(0x198)](_0x49647b(0x124),_0x49647b(0x14a),{'content':[{'type':_0x49647b(0x122),'content':_0x1e7ebd}],'prompt':_0x4e1b37,'model':_0xfd95c0});return{'getStream':async()=>{const _0x39aa32=_0x49647b,_0x4ac1ec=(await _0x3cb392[_0x39aa32(0x185)])[_0x39aa32(0x143)];return this[_0x39aa32(0x12c)](_0x4ac1ec);},'abortController':_0x3cb392[_0x49647b(0x15b)]};}[_0x120554(0x157)](_0x263178,_0x2bed54,_0x158a4e){const _0x5e8826=_0x120554,_0x573a14=this[_0x5e8826(0x198)](_0x5e8826(0x12d)+_0x263178+_0x5e8826(0x159)+_0x2bed54+_0x5e8826(0x17b),_0x5e8826(0x19e),{'positiveCount':_0x158a4e[_0x5e8826(0x128)],'totalCount':_0x158a4e[_0x5e8826(0x176)]});return{'execute':async()=>{const _0x5ba091=_0x5e8826;await _0x573a14[_0x5ba091(0x185)];},'abortController':_0x573a14[_0x5e8826(0x15b)]};}[_0x120554(0x13c)](_0x2aed7a,_0x9df94c,_0x58dce9){const _0x23b4ee=_0x120554,_0x4a51bd=this[_0x23b4ee(0x198)](_0x23b4ee(0x175)+_0x2aed7a+_0x23b4ee(0x120)+_0x9df94c+_0x23b4ee(0x17b),_0x23b4ee(0x19e),{'positiveCount':_0x58dce9[_0x23b4ee(0x128)],'totalCount':_0x58dce9[_0x23b4ee(0x176)]});return{'execute':async()=>{const _0x10cf55=_0x23b4ee;await _0x4a51bd[_0x10cf55(0x185)];},'abortController':_0x4a51bd[_0x23b4ee(0x15b)]};}[_0x120554(0x133)](_0x28a0ba,_0x47edd9){const _0x4602c7=_0x120554,_0x97f6a0=this[_0x4602c7(0x198)](_0x4602c7(0x18b)+_0x28a0ba+_0x4602c7(0x17b),_0x4602c7(0x19e),{'positiveCount':_0x47edd9[_0x4602c7(0x128)],'totalCount':_0x47edd9[_0x4602c7(0x176)]});return{'execute':async()=>{const _0x8c5b0a=_0x4602c7;await _0x97f6a0[_0x8c5b0a(0x185)];},'abortController':_0x97f6a0[_0x4602c7(0x15b)]};}[_0x120554(0x1a4)](_0x1a5364,_0x4006bf,_0x451d26,_0x314a15){const _0x12e5ba=_0x120554,_0x1a312f=this[_0x12e5ba(0x198)](_0x12e5ba(0x144)+_0x1a5364+_0x12e5ba(0x120)+_0x4006bf+_0x12e5ba(0x17b),_0x12e5ba(0x19e),{'positiveCount':_0x451d26[_0x12e5ba(0x128)],'totalCount':_0x451d26[_0x12e5ba(0x176)],'dataId':_0x314a15});return{'execute':async()=>{const _0x2bc581=_0x12e5ba;await _0x1a312f[_0x2bc581(0x185)];},'abortController':_0x1a312f[_0x12e5ba(0x15b)]};}[_0x120554(0x1a2)](_0xf42089,_0x35d5a6,_0x552e21){const _0x49b2e3=_0x120554,_0x325630=this[_0x49b2e3(0x198)](_0x49b2e3(0x15c)+_0xf42089+_0x49b2e3(0x17b),_0x49b2e3(0x19e),{'positiveCount':_0x35d5a6[_0x49b2e3(0x128)],'totalCount':_0x35d5a6[_0x49b2e3(0x176)],'dataId':_0x552e21});return{'execute':async()=>{const _0x598650=_0x49b2e3;await _0x325630[_0x598650(0x185)];},'abortController':_0x325630[_0x49b2e3(0x15b)]};}[_0x120554(0x198)](_0x1f584e,_0x3f4121,_0x5d545e){const _0x273db7=_0x120554,_0x33bebb=new AbortController(),_0x351001=_0x5d545e instanceof FormData,_0x11c545={'Authorization':_0x273db7(0x17f)+this[_0x273db7(0x196)]?.[_0x273db7(0x123)]};_0x5d545e&&!_0x351001&&(_0x11c545[_0x273db7(0x1a0)]=_0x273db7(0x148));const _0x208819={'method':_0x3f4121,'headers':_0x11c545,'signal':_0x33bebb[_0x273db7(0x19b)]};return _0x5d545e&&(_0x208819[_0x273db7(0x143)]=_0x351001?_0x5d545e:JSON[_0x273db7(0x164)](_0x5d545e)),{'request':fetch(''+this[_0x273db7(0x145)]+_0x1f584e,_0x208819)[_0x273db7(0x168)](_0x5d8037=>{const _0x361e8e=_0x273db7;this[_0x361e8e(0x184)](_0x5d8037);})[_0x273db7(0x189)](_0x29e8d0=>{const _0x2ba7fe=_0x273db7;if(!_0x29e8d0['ok'])throw new _0x1a255e(_0x2ba7fe(0x195),this,{'url':this[_0x2ba7fe(0x145)],'path':_0x1f584e,'method':_0x3f4121,'body':_0x5d545e,'status':(_0x29e8d0||{})[_0x2ba7fe(0x17e)],'statusText':(_0x29e8d0||{})[_0x2ba7fe(0x147)]});return _0x29e8d0;}),'abortController':_0x33bebb};}async*[_0x120554(0x12c)](_0x406c3f){const _0x5b6b91=_0x120554,_0x48ac85=[],_0x38c3ca=_0x406c3f[_0x5b6b91(0x14b)](),_0x4af997=_0x7cd71a({'onError':_0x2fec7d=>{const _0x106059=_0x5b6b91;this[_0x106059(0x184)](_0x2fec7d);},'onEvent':_0x3b858d=>{const _0x21281f=_0x5b6b91;_0x3b858d[_0x21281f(0x15d)]=JSON[_0x21281f(0x129)](_0x3b858d[_0x21281f(0x15d)]),_0x48ac85[_0x21281f(0x166)](_0x3b858d);}});try{let _0x5b2472=!0x1;for(;!_0x5b2472;){const {done:_0x49d801,value:_0x39219d}=await _0x38c3ca[_0x5b6b91(0x15e)]();_0x49d801&&(_0x5b2472=!0x0),_0x4af997[_0x5b6b91(0x1ae)](this[_0x5b6b91(0x1a6)][_0x5b6b91(0x152)](_0x39219d,{'stream':!0x0})),yield*_0x48ac85,_0x48ac85[_0x5b6b91(0x173)]=0x0;}}catch(_0x261f02){this[_0x5b6b91(0x184)](_0x261f02);}finally{_0x38c3ca[_0x5b6b91(0x16c)](),_0x4af997[_0x5b6b91(0x15f)]();}}[_0x120554(0x184)](_0x251593){const _0x2e2e36=_0x120554;if(_0x251593 instanceof _0x1a255e)throw _0x251593;if(_0x251593 instanceof Error&&_0x2e2e36(0x17d)===_0x251593[_0x2e2e36(0x153)])throw new _0x1a255e(_0x2e2e36(0x172),this,{'originalError':_0x251593});throw new _0x1a255e(_0x2e2e36(0x195),this,{'originalError':_0x251593});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48f6fa=_0xb22e;(function(_0x5891f6,_0x8990f){const _0x367502=_0xb22e,_0x2f8e08=_0x5891f6();while(!![]){try{const _0x1abcd6=parseInt(_0x367502(0x13b))/0x1*(-parseInt(_0x367502(0x129))/0x2)+parseInt(_0x367502(0x10c))/0x3*(-parseInt(_0x367502(0x11a))/0x4)+-parseInt(_0x367502(0x158))/0x5+parseInt(_0x367502(0x170))/0x6*(parseInt(_0x367502(0x122))/0x7)+-parseInt(_0x367502(0x12d))/0x8*(parseInt(_0x367502(0x174))/0x9)+parseInt(_0x367502(0x163))/0xa*(-parseInt(_0x367502(0x11d))/0xb)+parseInt(_0x367502(0x114))/0xc*(parseInt(_0x367502(0x16a))/0xd);if(_0x1abcd6===_0x8990f)break;else _0x2f8e08['push'](_0x2f8e08['shift']());}catch(_0x410cf6){_0x2f8e08['push'](_0x2f8e08['shift']());}}}(_0x51b4,0x6028c));import{ViewDowncastWriter as _0x558524}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2edf55,Editor as _0x3a75fb}from'ckeditor5/src/core.js';import{uid as _0x2ad9a9}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1838a9}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x48f6fa(0x173);function _0xb22e(_0x5c6210,_0x29fe4c){const _0x51b442=_0x51b4();return _0xb22e=function(_0xb22ed3,_0x363b7c){_0xb22ed3=_0xb22ed3-0x10b;let _0x39c846=_0x51b442[_0xb22ed3];return _0x39c846;},_0xb22e(_0x5c6210,_0x29fe4c);}function _0x51b4(){const _0x8fc3a5=['selection','_getMarkersInDocumentOrder','2569605IkvVMl','isAfter',':end>','getSelectionText','sort','emptyElement','ck-ai-assistant-ui_theme','for','createUIElement','_setDataIdsOnChildren','setAttribute','7441330AvNhPz','isOfficialPlugin','editors','ready','schema','getSelectedContent','document','30612712OysbMG','has','markerName','removeAllRanges','createRange','getMarkersGroup','2059158aEDEgB','get','listenTo','ai-selection','533052bGRXJs','editing','getWalker','isContent','81ffdHGL','convertAiChatSelectionMarker','getChildren','add','getSelection','element','markerToHighlight','ai-selection:','12LViOWF','data-id','modelToViewWithIds','markerToElement','substring','view','55824wegrCb','_sessionId','getRoot','11fHUyOS','editingDowncast','floor','markers','length','7VWrYvw','name','AIEditing','hideFakeVisualSelection','getDocumentData','model','end','2VhwbNn','version','fromCharCode','getStart','32ftPnJs','addMarker','_integrateEditor','dataDowncast','start','createRangeIn','showFakeVisualSelection','containerElement','toData','toView','push','random','_nextDataId','$textProxy','432371RWglGA','join','ck-fake-ai-selection','context','isPremiumPlugin','afterInit',':start>','getLastMatchingPosition','_displayedFakeSelectionId','isBefore','pluginName','RealTimeCollaborationClient','_displayedFakeSelectionLocked','removeMarker','from','isOpening','plugins','conversion','data','isAtEnd','indexOf','processor',':start></','change',':end></','sessionId','trim'];_0x51b4=function(){return _0x8fc3a5;};return _0x51b4();}export class AIEditing extends _0x2edf55{[_0x48f6fa(0x143)]=null;[_0x48f6fa(0x147)]=!0x1;[_0x48f6fa(0x11b)];static get[_0x48f6fa(0x145)](){const _0x21c445=_0x48f6fa;return _0x21c445(0x124);}static get[_0x48f6fa(0x164)](){return!0x0;}static get[_0x48f6fa(0x13f)](){return!0x0;}get[_0x48f6fa(0x154)](){const _0x4a7d12=_0x48f6fa;if(!this[_0x4a7d12(0x11b)]){const _0x49ade1=_0x1838a9(this[_0x4a7d12(0x13e)]),_0x5bc230=_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x16b)](_0x4a7d12(0x146))&&_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x171)](_0x4a7d12(0x146))[_0x4a7d12(0x154)];this[_0x4a7d12(0x11b)]=_0x5bc230||_0x2ad9a9();}return this[_0x4a7d12(0x11b)];}[_0x48f6fa(0x126)](){const _0x286184=_0x48f6fa,_0x5b78c=_0x1838a9(this[_0x286184(0x13e)]),_0x31a594=_0x5b78c[_0x286184(0x127)],_0x7c6159=_0x5b78c[_0x286184(0x14d)][_0x286184(0x136)](_0x31a594[_0x286184(0x169)][_0x286184(0x11c)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f2e65=new _0x558524(_0x5b78c[_0x286184(0x175)][_0x286184(0x119)][_0x286184(0x169)]);this[_0x286184(0x161)](_0x7c6159,_0x1f2e65);let _0x55aa42=_0x5b78c[_0x286184(0x14d)][_0x286184(0x150)][_0x286184(0x135)](_0x7c6159);const _0x444f46=this[_0x286184(0x157)](),_0x21b9a4=[];for(const _0x278635 of _0x444f46){const _0x25d624='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x151)+_0x278635[_0x286184(0x123)]+_0x286184(0x141),_0x5243db=_0x55aa42[_0x286184(0x14f)](_0x25d624);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5243db)+_0x55aa42[_0x286184(0x118)](_0x5243db+_0x25d624[_0x286184(0x121)]);const _0x2c917c='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x153)+_0x278635[_0x286184(0x123)]+_0x286184(0x15a),_0x5bb4b3=_0x55aa42[_0x286184(0x14f)](_0x2c917c);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5bb4b3)+_0x55aa42[_0x286184(0x118)](_0x5bb4b3+_0x2c917c[_0x286184(0x121)]),_0x21b9a4[_0x286184(0x137)]({'markerName':_0x278635[_0x286184(0x123)],'start':_0x5243db,'end':_0x5bb4b3,'htmlFragment':_0x55aa42[_0x286184(0x118)](_0x5243db,_0x5bb4b3)});}return{'content':_0x55aa42,'version':_0x5b78c[_0x286184(0x127)][_0x286184(0x169)][_0x286184(0x12a)],'sessionId':this[_0x286184(0x154)],'selections':_0x21b9a4};}async[_0x48f6fa(0x140)](){const _0x4c28f9=_0x48f6fa;this[_0x4c28f9(0x13e)]instanceof _0x3a75fb?this[_0x4c28f9(0x12f)](this[_0x4c28f9(0x13e)]):this[_0x4c28f9(0x172)](this[_0x4c28f9(0x13e)][_0x4c28f9(0x165)],_0x4c28f9(0x10f),(_0xff38f6,_0x2584c6)=>{const _0x561dc6=_0x4c28f9;_0x2584c6['on'](_0x561dc6(0x166),()=>{const _0x37276f=_0x561dc6;this[_0x37276f(0x12f)](_0x2584c6);});});}[_0x48f6fa(0x12f)](_0x4a74a8){const _0x5d4b09=_0x48f6fa;_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x11e))[_0x5d4b09(0x112)]({'model':_0x5d4b09(0x173),'view':{'classes':[_0x5d4b09(0x13d),_0x5d4b09(0x15e)],'priority':0xc}}),_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x130))[_0x5d4b09(0x117)]({'model':_0x5d4b09(0x173),'view':(_0x5d8e9a,{writer:_0x2e41ec,options:_0x66b4c2})=>_0x66b4c2[_0x5d4b09(0x10d)]?_0x2e41ec[_0x5d4b09(0x160)](_0x5d8e9a[_0x5d4b09(0x16c)]+':'+(_0x5d8e9a[_0x5d4b09(0x14a)]?_0x5d4b09(0x131):_0x5d4b09(0x128))):null});}[_0x48f6fa(0x133)](_0x5da32d,_0x54277d,_0x346563=!0x1,_0x331d29=!0x1){const _0x13011d=_0x48f6fa;if(this[_0x13011d(0x147)]&&!_0x331d29)return!0x1;this[_0x13011d(0x143)]&&this[_0x13011d(0x125)](this[_0x13011d(0x143)]),this[_0x13011d(0x143)]=_0x54277d,this[_0x13011d(0x147)]=_0x346563;const _0x2c1072=_0x1838a9(this[_0x13011d(0x13e)])[_0x13011d(0x127)];return _0x2c1072[_0x13011d(0x152)](_0x201b84=>{const _0x20ec8f=_0x13011d;let _0x4dfcd6=0x0;for(let _0x18c058 of _0x5da32d){const _0x5302f0=_0x20ec8f(0x113)+_0x4dfcd6;if(_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x14e)]){const _0x221318=_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x142)](({item:_0x37b063})=>!_0x2c1072[_0x20ec8f(0x167)][_0x20ec8f(0x10b)](_0x37b063),{'boundaries':_0x18c058});_0x18c058=_0x201b84[_0x20ec8f(0x16e)](_0x221318,_0x18c058[_0x20ec8f(0x128)]);}_0x201b84[_0x20ec8f(0x12e)](_0x5302f0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x18c058}),_0x4dfcd6++;}}),window[_0x13011d(0x110)]()?.[_0x13011d(0x16d)](),!0x0;}[_0x48f6fa(0x125)](_0x2e0139){const _0x1a1b12=_0x48f6fa;if(this[_0x1a1b12(0x143)]!=_0x2e0139)return!0x1;this[_0x1a1b12(0x143)]=null,this[_0x1a1b12(0x147)]=!0x1;const _0x3c3695=_0x1838a9(this[_0x1a1b12(0x13e)]),_0x18601b=_0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x120)][_0x1a1b12(0x16f)](_0x1a1b12(0x173));return _0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x152)](_0x4cb331=>{const _0x5c2b0c=_0x1a1b12;for(const _0xcad37b of _0x18601b)_0x4cb331[_0x5c2b0c(0x148)](_0xcad37b);}),!0x0;}[_0x48f6fa(0x116)](_0x321a51){const _0x2ac4c3=_0x48f6fa,_0x464ffd=_0x1838a9(this[_0x2ac4c3(0x13e)]),_0x45a6d6=_0x464ffd[_0x2ac4c3(0x14d)][_0x2ac4c3(0x136)](_0x321a51),_0x12be8a=new _0x558524(_0x464ffd[_0x2ac4c3(0x175)][_0x2ac4c3(0x119)][_0x2ac4c3(0x169)]);return this[_0x2ac4c3(0x161)](_0x45a6d6,_0x12be8a),_0x45a6d6;}[_0x48f6fa(0x161)](_0x23d44e,_0x50b5e3){const _0x2d4c5d=_0x48f6fa;let _0x6f69d7=!0x1;const _0x1c88b0=new Set();for(const _0xb90608 of _0x23d44e[_0x2d4c5d(0x10e)]()){const _0x12e19a=_0xb90608['is'](_0x2d4c5d(0x15d))||_0xb90608['is'](_0x2d4c5d(0x134));if(!_0xb90608['is'](_0x2d4c5d(0x111)))continue;(this[_0x2d4c5d(0x161)](_0xb90608,_0x50b5e3)||_0x12e19a)&&(_0x50b5e3[_0x2d4c5d(0x162)](_0x2d4c5d(0x115),this[_0x2d4c5d(0x139)](_0x1c88b0),_0xb90608),_0x6f69d7=!0x0);}return _0x6f69d7;}[_0x48f6fa(0x139)](_0x1a5c7c){const _0xec8019=_0x48f6fa;let _0x4d4f96;do{_0x4d4f96='';for(let _0x4ec4b2=0x0;_0x4ec4b2<0x4;_0x4ec4b2++)_0x4d4f96+=String[_0xec8019(0x12b)](0x61+Math[_0xec8019(0x11f)](0x1a*Math[_0xec8019(0x138)]()));}while(_0x1a5c7c[_0xec8019(0x16b)](_0x4d4f96));return _0x1a5c7c[_0xec8019(0x10f)](_0x4d4f96),_0x4d4f96;}[_0x48f6fa(0x15b)](){const _0x13a00d=_0x48f6fa,{model:_0xa77aef}=_0x1838a9(this[_0x13a00d(0x13e)]),_0x3867ba=_0xa77aef[_0x13a00d(0x169)][_0x13a00d(0x156)],_0xae160d=_0xa77aef[_0x13a00d(0x168)](_0x3867ba),_0x2976f5=[],_0x444d2d=_0xa77aef[_0x13a00d(0x132)](_0xae160d)[_0x13a00d(0x176)]();for(const {item:_0x249023}of _0x444d2d)_0x249023['is'](_0x13a00d(0x13a))?_0x2976f5[_0x13a00d(0x137)](_0x249023[_0x13a00d(0x14d)]):_0x249023['is'](_0x13a00d(0x111))&&_0x2976f5[_0x13a00d(0x121)]>0x0&&'\x20'!==_0x2976f5[_0x2976f5[_0x13a00d(0x121)]-0x1]&&_0x2976f5[_0x13a00d(0x137)]('\x20');return'\x22'+_0x2976f5[_0x13a00d(0x13c)]('')[_0x13a00d(0x155)]()+'\x22';}[_0x48f6fa(0x157)](){const _0x38ce21=_0x48f6fa,_0xe0fda1=_0x1838a9(this[_0x38ce21(0x13e)])[_0x38ce21(0x127)];return Array[_0x38ce21(0x149)](_0xe0fda1[_0x38ce21(0x120)][_0x38ce21(0x16f)](_0x38ce21(0x173)))[_0x38ce21(0x15c)]((_0xa4a041,_0x3ddf45)=>_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x144)](_0x3ddf45[_0x38ce21(0x12c)]())?-0x1:_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x159)](_0x3ddf45[_0x38ce21(0x12c)]())?0x1:0x0);}}
23
+ function _0x4481(_0x7ac8a5,_0x494465){const _0x161862=_0x1618();return _0x4481=function(_0x448173,_0x4d9060){_0x448173=_0x448173-0x72;let _0x21f096=_0x161862[_0x448173];return _0x21f096;},_0x4481(_0x7ac8a5,_0x494465);}const _0x533f74=_0x4481;function _0x1618(){const _0x30e638=['_nextDataId','AIEditing','random','element','toData','removeMarker',':start>','_getMarkersInDocumentOrder','1592872yUATkt','2534590BNODuo','convertAiChatSelectionMarker','setAttribute','end','conversion','isOpening','915021lFRVOP','removeAllRanges','_setDataIdsOnChildren','addMarker','156eEtJQc','context','for','editing','data','sessionId','ck-ai-assistant-ui_theme','RealTimeCollaborationClient','$textProxy','showFakeVisualSelection','sort','269UoaGcq','_displayedFakeSelectionId','selection','ai-selection','model','trim','schema','_sessionId','change','getSelectionText','markers','floor','pluginName','containerElement','markerToElement','7TrJhHC','770624GAMaZz','isAtEnd','data-id','name','dataDowncast','processor','isBefore','createRange','substring','ready','document','toView',':end>','from','hideFakeVisualSelection','getStart','view','getLastMatchingPosition','isOfficialPlugin',':start></','listenTo',':end></','isAfter','length','getSelectedContent','push','afterInit','get','getChildren','indexOf','getMarkersGroup','editingDowncast','isPremiumPlugin','markerName','ai-selection:','getWalker','version','join','getRoot','isContent','fromCharCode','167871tKvHQd','getSelection','markerToHighlight','25595CQWnfj','getDocumentData','ck-fake-ai-selection','has','plugins','createRangeIn','2578swLwsU','modelToViewWithIds','emptyElement','_integrateEditor','createUIElement','add','editors','start','_displayedFakeSelectionLocked'];_0x1618=function(){return _0x30e638;};return _0x1618();}(function(_0x533a7f,_0x5d240d){const _0x32abce=_0x4481,_0x3fb94d=_0x533a7f();while(!![]){try{const _0x57c7d4=-parseInt(_0x32abce(0x73))/0x1*(-parseInt(_0x32abce(0xb5))/0x2)+-parseInt(_0x32abce(0xac))/0x3+-parseInt(_0x32abce(0x83))/0x4+-parseInt(_0x32abce(0xaf))/0x5*(-parseInt(_0x32abce(0xd1))/0x6)+-parseInt(_0x32abce(0x82))/0x7*(parseInt(_0x32abce(0xc6))/0x8)+-parseInt(_0x32abce(0xcd))/0x9+parseInt(_0x32abce(0xc7))/0xa;if(_0x57c7d4===_0x5d240d)break;else _0x3fb94d['push'](_0x3fb94d['shift']());}catch(_0x537dd4){_0x3fb94d['push'](_0x3fb94d['shift']());}}}(_0x1618,0x2ce5f));import{ViewDowncastWriter as _0x5bacd0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x201996,Editor as _0x324cf1}from'ckeditor5/src/core.js';import{uid as _0x287166}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x24aa4a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x533f74(0x76);export class AIEditing extends _0x201996{[_0x533f74(0x74)]=null;[_0x533f74(0xbd)]=!0x1;[_0x533f74(0x7a)];static get[_0x533f74(0x7f)](){const _0xe1c41=_0x533f74;return _0xe1c41(0xbf);}static get[_0x533f74(0x95)](){return!0x0;}static get[_0x533f74(0xa3)](){return!0x0;}get[_0x533f74(0xd6)](){const _0x1b2432=_0x533f74;if(!this[_0x1b2432(0x7a)]){const _0x455bd1=_0x24aa4a(this[_0x1b2432(0xd2)]),_0x1f4979=_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0xb2)](_0x1b2432(0xd8))&&_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0x9e)](_0x1b2432(0xd8))[_0x1b2432(0xd6)];this[_0x1b2432(0x7a)]=_0x1f4979||_0x287166();}return this[_0x1b2432(0x7a)];}[_0x533f74(0xb0)](){const _0x48eddf=_0x533f74,_0x2765b4=_0x24aa4a(this[_0x48eddf(0xd2)]),_0x20fc4a=_0x2765b4[_0x48eddf(0x77)],_0x4b4ef4=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x8e)](_0x20fc4a[_0x48eddf(0x8d)][_0x48eddf(0xa9)](),{'convertAiChatSelectionMarker':!0x0}),_0x3cba78=new _0x5bacd0(_0x2765b4[_0x48eddf(0xd4)][_0x48eddf(0x93)][_0x48eddf(0x8d)]);this[_0x48eddf(0xcf)](_0x4b4ef4,_0x3cba78);let _0x1d0812=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x88)][_0x48eddf(0xc2)](_0x4b4ef4);const _0x23b4f5=this[_0x48eddf(0xc5)](),_0x2193bc=[];for(const _0x41d0b5 of _0x23b4f5){const _0x1c4917='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x96)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0xc4),_0x2577f2=_0x1d0812[_0x48eddf(0xa0)](_0x1c4917);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x2577f2)+_0x1d0812[_0x48eddf(0x8b)](_0x2577f2+_0x1c4917[_0x48eddf(0x9a)]);const _0x50482a='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x98)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x8f),_0x57b22a=_0x1d0812[_0x48eddf(0xa0)](_0x50482a);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x57b22a)+_0x1d0812[_0x48eddf(0x8b)](_0x57b22a+_0x50482a[_0x48eddf(0x9a)]),_0x2193bc[_0x48eddf(0x9c)]({'markerName':_0x41d0b5[_0x48eddf(0x86)],'start':_0x2577f2,'end':_0x57b22a,'htmlFragment':_0x1d0812[_0x48eddf(0x8b)](_0x2577f2,_0x57b22a)});}return{'content':_0x1d0812,'version':_0x2765b4[_0x48eddf(0x77)][_0x48eddf(0x8d)][_0x48eddf(0xa7)],'sessionId':this[_0x48eddf(0xd6)],'selections':_0x2193bc};}async[_0x533f74(0x9d)](){const _0x46d191=_0x533f74;this[_0x46d191(0xd2)]instanceof _0x324cf1?this[_0x46d191(0xb8)](this[_0x46d191(0xd2)]):this[_0x46d191(0x97)](this[_0x46d191(0xd2)][_0x46d191(0xbb)],_0x46d191(0xba),(_0x1e62ea,_0x1ce078)=>{const _0x543274=_0x46d191;_0x1ce078['on'](_0x543274(0x8c),()=>{const _0x26cecc=_0x543274;this[_0x26cecc(0xb8)](_0x1ce078);});});}[_0x533f74(0xb8)](_0x174b83){const _0x1cfc35=_0x533f74;_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0xa2))[_0x1cfc35(0xae)]({'model':_0x1cfc35(0x76),'view':{'classes':[_0x1cfc35(0xb1),_0x1cfc35(0xd7)],'priority':0xc}}),_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0x87))[_0x1cfc35(0x81)]({'model':_0x1cfc35(0x76),'view':(_0x27af94,{writer:_0xdefce6,options:_0x108524})=>_0x108524[_0x1cfc35(0xc8)]?_0xdefce6[_0x1cfc35(0xb9)](_0x27af94[_0x1cfc35(0xa4)]+':'+(_0x27af94[_0x1cfc35(0xcc)]?_0x1cfc35(0xbc):_0x1cfc35(0xca))):null});}[_0x533f74(0xda)](_0x2aa30c,_0x155748,_0x15bef8=!0x1,_0x396453=!0x1){const _0x435ae7=_0x533f74;if(this[_0x435ae7(0xbd)]&&!_0x396453)return!0x1;this[_0x435ae7(0x74)]&&this[_0x435ae7(0x91)](this[_0x435ae7(0x74)]),this[_0x435ae7(0x74)]=_0x155748,this[_0x435ae7(0xbd)]=_0x15bef8;const _0x582ba5=_0x24aa4a(this[_0x435ae7(0xd2)])[_0x435ae7(0x77)];return _0x582ba5[_0x435ae7(0x7b)](_0x36a31c=>{const _0x258a7c=_0x435ae7;let _0x13937c=0x0;for(let _0x31ac24 of _0x2aa30c){const _0x111eb6=_0x258a7c(0xa5)+_0x13937c;if(_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x84)]){const _0xf81731=_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x94)](({item:_0x299a52})=>!_0x582ba5[_0x258a7c(0x79)][_0x258a7c(0xaa)](_0x299a52),{'boundaries':_0x31ac24});_0x31ac24=_0x36a31c[_0x258a7c(0x8a)](_0xf81731,_0x31ac24[_0x258a7c(0xca)]);}_0x36a31c[_0x258a7c(0xd0)](_0x111eb6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x31ac24}),_0x13937c++;}}),window[_0x435ae7(0xad)]()?.[_0x435ae7(0xce)](),!0x0;}[_0x533f74(0x91)](_0x12d392){const _0x23aebe=_0x533f74;if(this[_0x23aebe(0x74)]!=_0x12d392)return!0x1;this[_0x23aebe(0x74)]=null,this[_0x23aebe(0xbd)]=!0x1;const _0xe0956f=_0x24aa4a(this[_0x23aebe(0xd2)]),_0x2d87a0=_0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7d)][_0x23aebe(0xa1)](_0x23aebe(0x76));return _0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7b)](_0x33e345=>{const _0x10bcbb=_0x23aebe;for(const _0x4704bc of _0x2d87a0)_0x33e345[_0x10bcbb(0xc3)](_0x4704bc);}),!0x0;}[_0x533f74(0xb6)](_0x5466dc){const _0x2566d9=_0x533f74,_0x470f79=_0x24aa4a(this[_0x2566d9(0xd2)]),_0x144f84=_0x470f79[_0x2566d9(0xd5)][_0x2566d9(0x8e)](_0x5466dc),_0x197883=new _0x5bacd0(_0x470f79[_0x2566d9(0xd4)][_0x2566d9(0x93)][_0x2566d9(0x8d)]);return this[_0x2566d9(0xcf)](_0x144f84,_0x197883),_0x144f84;}[_0x533f74(0xcf)](_0x681490,_0x3c903c){const _0x264755=_0x533f74;let _0x1acfb4=!0x1;const _0x1165fc=new Set();for(const _0x518b88 of _0x681490[_0x264755(0x9f)]()){const _0x4bd453=_0x518b88['is'](_0x264755(0xb7))||_0x518b88['is'](_0x264755(0x80));if(!_0x518b88['is'](_0x264755(0xc1)))continue;(this[_0x264755(0xcf)](_0x518b88,_0x3c903c)||_0x4bd453)&&(_0x3c903c[_0x264755(0xc9)](_0x264755(0x85),this[_0x264755(0xbe)](_0x1165fc),_0x518b88),_0x1acfb4=!0x0);}return _0x1acfb4;}[_0x533f74(0xbe)](_0x3b5ffe){const _0x25ae27=_0x533f74;let _0x14cea9;do{_0x14cea9='';for(let _0x59d0f9=0x0;_0x59d0f9<0x4;_0x59d0f9++)_0x14cea9+=String[_0x25ae27(0xab)](0x61+Math[_0x25ae27(0x7e)](0x1a*Math[_0x25ae27(0xc0)]()));}while(_0x3b5ffe[_0x25ae27(0xb2)](_0x14cea9));return _0x3b5ffe[_0x25ae27(0xba)](_0x14cea9),_0x14cea9;}[_0x533f74(0x7c)](){const _0x470f2a=_0x533f74,{model:_0x7487d9}=_0x24aa4a(this[_0x470f2a(0xd2)]),_0x2ba20a=_0x7487d9[_0x470f2a(0x8d)][_0x470f2a(0x75)],_0x5eb634=_0x7487d9[_0x470f2a(0x9b)](_0x2ba20a),_0x25c79c=[],_0x551719=_0x7487d9[_0x470f2a(0xb4)](_0x5eb634)[_0x470f2a(0xa6)]();for(const {item:_0xc4ed9b}of _0x551719)_0xc4ed9b['is'](_0x470f2a(0xd9))?_0x25c79c[_0x470f2a(0x9c)](_0xc4ed9b[_0x470f2a(0xd5)]):_0xc4ed9b['is'](_0x470f2a(0xc1))&&_0x25c79c[_0x470f2a(0x9a)]>0x0&&'\x20'!==_0x25c79c[_0x25c79c[_0x470f2a(0x9a)]-0x1]&&_0x25c79c[_0x470f2a(0x9c)]('\x20');return'\x22'+_0x25c79c[_0x470f2a(0xa8)]('')[_0x470f2a(0x78)]()+'\x22';}[_0x533f74(0xc5)](){const _0x1813f4=_0x533f74,_0x131ee=_0x24aa4a(this[_0x1813f4(0xd2)])[_0x1813f4(0x77)];return Array[_0x1813f4(0x90)](_0x131ee[_0x1813f4(0x7d)][_0x1813f4(0xa1)](_0x1813f4(0x76)))[_0x1813f4(0x72)]((_0x113c92,_0x35cd5b)=>_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x89)](_0x35cd5b[_0x1813f4(0x92)]())?-0x1:_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x99)](_0x35cd5b[_0x1813f4(0x92)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6892df=_0x3ad0;(function(_0x23e2bc,_0xa7167e){const _0x23a94f=_0x3ad0,_0x465fbd=_0x23e2bc();while(!![]){try{const _0x10b5e7=-parseInt(_0x23a94f(0x99))/0x1+-parseInt(_0x23a94f(0xa5))/0x2+parseInt(_0x23a94f(0x95))/0x3+-parseInt(_0x23a94f(0xa4))/0x4*(-parseInt(_0x23a94f(0xa7))/0x5)+-parseInt(_0x23a94f(0x97))/0x6+parseInt(_0x23a94f(0x94))/0x7*(parseInt(_0x23a94f(0xa6))/0x8)+-parseInt(_0x23a94f(0xa3))/0x9*(-parseInt(_0x23a94f(0x98))/0xa);if(_0x10b5e7===_0xa7167e)break;else _0x465fbd['push'](_0x465fbd['shift']());}catch(_0x2cc8a6){_0x465fbd['push'](_0x465fbd['shift']());}}}(_0x2e73,0x8edc4));import{EmitterMixin as _0x113772}from'ckeditor5/src/utils.js';function _0x2e73(){const _0x5865ec=['4710990NvnYBt','23911610sikESr','992511enSzPB','_isReasoningEnabled','toggleWebSearch','webSearch','reasoning','_isWebSearchEnabled','reset','isWebSearchEnabled','getCapabilitiesRequestData','init','9NJYVQc','859600QNQkLS','781078IcWpAJ','979976dSPejD','5HBFGax','fire','toggleReasoning','setWebSearch','setReasoning','isReasoningEnabled','capabilitiesUpdated','7bWQTQU','74439yuZShr','getCapabilitiesConfig'];_0x2e73=function(){return _0x5865ec;};return _0x2e73();}function _0x3ad0(_0x567a2d,_0xb76415){const _0x2e73aa=_0x2e73();return _0x3ad0=function(_0x3ad05e,_0xa9ed41){_0x3ad05e=_0x3ad05e-0x91;let _0x4b5737=_0x2e73aa[_0x3ad05e];return _0x4b5737;},_0x3ad0(_0x567a2d,_0xb76415);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x6892df(0x93)];export class AICapabilities extends _0x113772(){[_0x6892df(0x9e)];[_0x6892df(0x9a)];constructor(){const _0x3416ef=_0x6892df;super(),this[_0x3416ef(0x9e)]=!0x1,this[_0x3416ef(0x9a)]=!0x1;}[_0x6892df(0xa2)](){const _0x48909d=_0x6892df;this[_0x48909d(0x9f)]();}[_0x6892df(0x9f)](){const _0x61beb7=_0x6892df;this[_0x61beb7(0xaa)](!0x1),this[_0x61beb7(0x91)](!0x1);}[_0x6892df(0x96)](){const _0x1fc7eb=_0x6892df;return{'isWebSearchEnabled':this[_0x1fc7eb(0x9e)],'isReasoningEnabled':this[_0x1fc7eb(0x9a)]};}static[_0x6892df(0xa1)](_0x43f82c){const _0x20ee7e=_0x6892df,_0x22678b={};return _0x43f82c&&_0x43f82c[_0x20ee7e(0xa0)]&&(_0x22678b[_0x20ee7e(0x9c)]={}),_0x43f82c&&_0x43f82c[_0x20ee7e(0x92)]&&(_0x22678b[_0x20ee7e(0x9d)]={}),_0x22678b;}[_0x6892df(0x9b)](){const _0xc2533d=_0x6892df;this[_0xc2533d(0xaa)](!this[_0xc2533d(0x9e)]);}[_0x6892df(0xa9)](){const _0x36fc64=_0x6892df;this[_0x36fc64(0x91)](!this[_0x36fc64(0x9a)]);}[_0x6892df(0xaa)](_0x4c1b07){const _0x2f4d6f=_0x6892df;_0x4c1b07!==this[_0x2f4d6f(0x9e)]&&(this[_0x2f4d6f(0x9e)]=_0x4c1b07,this[_0x2f4d6f(0xa8)](_0x2f4d6f(0x93),this[_0x2f4d6f(0x96)]()));}[_0x6892df(0x91)](_0x3cabf8){const _0x117013=_0x6892df;_0x3cabf8!==this[_0x117013(0x9a)]&&(this[_0x117013(0x9a)]=_0x3cabf8,this[_0x117013(0xa8)](_0x117013(0x93),this[_0x117013(0x96)]()));}}
23
+ const _0x36c9ac=_0x1ede;(function(_0xaa5dbf,_0x963296){const _0x4767ca=_0x1ede,_0x5d73e4=_0xaa5dbf();while(!![]){try{const _0x248195=-parseInt(_0x4767ca(0xda))/0x1+parseInt(_0x4767ca(0xe8))/0x2+-parseInt(_0x4767ca(0xe7))/0x3+parseInt(_0x4767ca(0xe6))/0x4*(-parseInt(_0x4767ca(0xe0))/0x5)+parseInt(_0x4767ca(0xd4))/0x6*(-parseInt(_0x4767ca(0xd8))/0x7)+parseInt(_0x4767ca(0xec))/0x8+-parseInt(_0x4767ca(0xdb))/0x9*(-parseInt(_0x4767ca(0xea))/0xa);if(_0x248195===_0x963296)break;else _0x5d73e4['push'](_0x5d73e4['shift']());}catch(_0x3effa2){_0x5d73e4['push'](_0x5d73e4['shift']());}}}(_0x2479,0xe949a));import{EmitterMixin as _0x463745}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x36c9ac(0xde)];function _0x2479(){const _0x3da6cd=['reasoning','130TLZAsb','webSearch','3723088nhIQzu','toggleReasoning','126BLjuqI','getCapabilitiesRequestData','toggleWebSearch','getCapabilitiesConfig','236243lDMfrO','init','51514SFLleP','1266327SOEPBU','setReasoning','fire','capabilitiesUpdated','_isReasoningEnabled','5smxLGm','isWebSearchEnabled','setWebSearch','isReasoningEnabled','reset','_isWebSearchEnabled','3648236gQLRgr','4136394KFLWlM','3424242XoMWvR'];_0x2479=function(){return _0x3da6cd;};return _0x2479();}function _0x1ede(_0x34e83b,_0x2b9541){const _0x2479e0=_0x2479();return _0x1ede=function(_0x1edeb2,_0x3917ec){_0x1edeb2=_0x1edeb2-0xd4;let _0x35a978=_0x2479e0[_0x1edeb2];return _0x35a978;},_0x1ede(_0x34e83b,_0x2b9541);}export class AICapabilities extends _0x463745(){[_0x36c9ac(0xe5)];[_0x36c9ac(0xdf)];constructor(){const _0x5e6a0c=_0x36c9ac;super(),this[_0x5e6a0c(0xe5)]=!0x1,this[_0x5e6a0c(0xdf)]=!0x1;}[_0x36c9ac(0xd9)](){const _0x390615=_0x36c9ac;this[_0x390615(0xe4)]();}[_0x36c9ac(0xe4)](){const _0x3e9834=_0x36c9ac;this[_0x3e9834(0xe2)](!0x1),this[_0x3e9834(0xdc)](!0x1);}[_0x36c9ac(0xd7)](){const _0x3e30a9=_0x36c9ac;return{'isWebSearchEnabled':this[_0x3e30a9(0xe5)],'isReasoningEnabled':this[_0x3e30a9(0xdf)]};}static[_0x36c9ac(0xd5)](_0xb03ec5){const _0x113ba3=_0x36c9ac,_0x13b244={};return _0xb03ec5&&_0xb03ec5[_0x113ba3(0xe1)]&&(_0x13b244[_0x113ba3(0xeb)]={}),_0xb03ec5&&_0xb03ec5[_0x113ba3(0xe3)]&&(_0x13b244[_0x113ba3(0xe9)]={}),_0x13b244;}[_0x36c9ac(0xd6)](){const _0x1b0ace=_0x36c9ac;this[_0x1b0ace(0xe2)](!this[_0x1b0ace(0xe5)]);}[_0x36c9ac(0xed)](){const _0x47fa67=_0x36c9ac;this[_0x47fa67(0xdc)](!this[_0x47fa67(0xdf)]);}[_0x36c9ac(0xe2)](_0x3c4b1d){const _0x4d6b82=_0x36c9ac;_0x3c4b1d!==this[_0x4d6b82(0xe5)]&&(this[_0x4d6b82(0xe5)]=_0x3c4b1d,this[_0x4d6b82(0xdd)](_0x4d6b82(0xde),this[_0x4d6b82(0xd7)]()));}[_0x36c9ac(0xdc)](_0x1e5de2){const _0x416567=_0x36c9ac;_0x1e5de2!==this[_0x416567(0xdf)]&&(this[_0x416567(0xdf)]=_0x1e5de2,this[_0x416567(0xdd)](_0x416567(0xde),this[_0x416567(0xd7)]()));}}