@ckeditor/ckeditor5-ai 47.7.5 → 47.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a598a=_0x3ec8;(function(_0x1dabfd,_0x13ed36){const _0x262f9d=_0x3ec8,_0x56f916=_0x1dabfd();while(!![]){try{const _0xcf3e4e=-parseInt(_0x262f9d(0x10f))/0x1+parseInt(_0x262f9d(0xf0))/0x2+parseInt(_0x262f9d(0x114))/0x3+parseInt(_0x262f9d(0xec))/0x4*(parseInt(_0x262f9d(0xf5))/0x5)+parseInt(_0x262f9d(0x106))/0x6+parseInt(_0x262f9d(0xf8))/0x7+-parseInt(_0x262f9d(0xff))/0x8;if(_0xcf3e4e===_0x13ed36)break;else _0x56f916['push'](_0x56f916['shift']());}catch(_0x3f93ea){_0x56f916['push'](_0x56f916['shift']());}}}(_0x6253,0x3e7ae));import{Plugin as _0x14a250}from'ckeditor5/src/core.js';function _0x6253(){const _0x180f28=['ck-ai-chat-balloon','showPrevious','isOfficialPlugin','10lgcWDe','applySuggestion','TrackChanges','2111900dlBChA','has','trackChanges','locale','showRotator','headerView','togglePartToolbarEnabled','3096056OGCDTs','pluginName','remove','set','isPremiumPlugin','config','requires','841116NJLkKd','_restoreDefaultViewFocus','editor','isTrackChangesOn','filter','get','AIChatBalloon','AIBalloon','render','187479yfRhsX','previousButtonView','view','_chatBalloonView','close','787026QSxuXY','addMany','plugins','open','children','nextButtonView','_createChatBalloonView','delegate','rejectSuggestion','ai.availableReplyActions','beforeDialogClosed','setState','bind','Dialog','commands','once','value','focus','toggleRotatorButtonsVisibility','insertSuggestion','showDiff','aiChatBalloon','showNext','78304WChnvO','updateContent','_toggleRotatorButtonsInDialogHeader','areActionsDisabled','174048qdtWbf','dialogClosed'];_0x6253=function(){return _0x180f28;};return _0x6253();}import{AIBalloon as _0x51a390}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x3ed995}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x4c97d9}from'./ui/aichatballoonview.js';function _0x3ec8(_0x50e88f,_0x408baa){const _0x6253e3=_0x6253();return _0x3ec8=function(_0x3ec80b,_0x25ad7e){_0x3ec80b=_0x3ec80b-0xd7;let _0x299c9c=_0x6253e3[_0x3ec80b];return _0x299c9c;},_0x3ec8(_0x50e88f,_0x408baa);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x45984f}from'../aicore/utils/eventnames.js';import{Dialog as _0x14d847}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x14a250{static get[_0x4a598a(0x105)](){return[_0x14d847,_0x51a390];}static get[_0x4a598a(0x100)](){const _0x18cbea=_0x4a598a;return _0x18cbea(0x10c);}static get[_0x4a598a(0xf4)](){return!0x0;}static get[_0x4a598a(0x103)](){return!0x0;}[_0x4a598a(0x112)];constructor(_0x5bce21){const _0x20f0b9=_0x4a598a;super(_0x5bce21),this[_0x20f0b9(0x102)](_0x20f0b9(0xe9),!0x1);}[_0x4a598a(0xd8)](_0x444d1a){const _0x14dad0=_0x4a598a,_0x26f0a0=this[_0x14dad0(0x108)];this[_0x14dad0(0x112)]||(this[_0x14dad0(0x112)]=this[_0x14dad0(0xdb)]()),_0x26f0a0[_0x14dad0(0xd7)][_0x14dad0(0x10b)](_0x14dad0(0x10d))[_0x14dad0(0xd8)]({..._0x444d1a,'id':_0x14dad0(0xea),'class':_0x14dad0(0xf2),'mainView':this[_0x14dad0(0x112)]}),this[_0x14dad0(0xee)](_0x444d1a[_0x14dad0(0xfc)]),this[_0x14dad0(0x112)][_0x14dad0(0xfe)](!_0x444d1a[_0x14dad0(0xef)]),this[_0x14dad0(0x107)]();}[_0x4a598a(0x113)](){const _0x31224e=_0x4a598a;this[_0x31224e(0x108)][_0x31224e(0xd7)][_0x31224e(0x10b)](_0x31224e(0x10d))[_0x31224e(0x113)]();}[_0x4a598a(0xed)](_0x56b302){const _0x2cab3a=_0x4a598a;return this[_0x2cab3a(0x112)]||(this[_0x2cab3a(0x112)]=this[_0x2cab3a(0xdb)]()),this[_0x2cab3a(0x112)][_0x2cab3a(0xed)](_0x56b302);}[_0x4a598a(0xe0)](_0x62e845){const _0x112060=_0x4a598a;this[_0x112060(0x112)]&&this[_0x112060(0x112)][_0x112060(0xe0)](_0x62e845);}[_0x4a598a(0xdb)](){const _0x2fcd8b=_0x4a598a,_0x52784e=this[_0x2fcd8b(0x108)],_0x5e912b=_0x52784e[_0x2fcd8b(0xd7)][_0x2fcd8b(0x10b)](_0x2fcd8b(0x10d)),_0x2099c1=_0x52784e[_0x2fcd8b(0xe3)][_0x2fcd8b(0x10b)](_0x2fcd8b(0xfa));let _0x2b9640=_0x52784e[_0x2fcd8b(0x104)][_0x2fcd8b(0x10b)](_0x2fcd8b(0xde))||[..._0x3ed995];_0x52784e[_0x2fcd8b(0xd7)][_0x2fcd8b(0xf9)](_0x2fcd8b(0xf7))||(_0x2b9640=_0x2b9640[_0x2fcd8b(0x10a)](_0x2967d9=>_0x2fcd8b(0xe8)!=_0x2967d9));const _0x3a1561=new _0x4c97d9(_0x52784e[_0x2fcd8b(0xfb)],{'availableActions':_0x2b9640,'showApplyButton':!0x0,'showSuggestButton':!!_0x2099c1});return _0x3a1561[_0x2fcd8b(0xe1)](_0x2fcd8b(0xe9))['to'](this),_0x3a1561[_0x2fcd8b(0xdc)](..._0x45984f)['to'](this),_0x3a1561[_0x2fcd8b(0xdc)](_0x2fcd8b(0xf3),_0x2fcd8b(0xeb))['to'](this),_0x5e912b[_0x2fcd8b(0xdc)](_0x2fcd8b(0xf1))['to'](this),_0x3a1561['on'](_0x2fcd8b(0xf6),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x3a1561['on'](_0x2fcd8b(0xe8),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x3a1561['on'](_0x2fcd8b(0xdd),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x2099c1&&_0x3a1561[_0x2fcd8b(0xe1)](_0x2fcd8b(0x109))['to'](_0x2099c1,_0x2fcd8b(0xe5)),_0x3a1561[_0x2fcd8b(0x10e)](),_0x3a1561;}[_0x4a598a(0xee)](_0x543cca){const _0x3af489=_0x4a598a,_0x2a8419=this[_0x3af489(0x108)],_0x2303f6=_0x2a8419[_0x3af489(0xd7)][_0x3af489(0x10b)](_0x3af489(0xe2))[_0x3af489(0x111)][_0x3af489(0xfd)][_0x3af489(0xd9)];this[_0x3af489(0x112)][_0x3af489(0xe7)](_0x543cca),_0x2303f6[_0x3af489(0xf9)](this[_0x3af489(0x112)][_0x3af489(0x110)])||(_0x2303f6[_0x3af489(0x115)]([this[_0x3af489(0x112)][_0x3af489(0x110)],this[_0x3af489(0x112)][_0x3af489(0xda)]],0x0),_0x2a8419[_0x3af489(0xd7)][_0x3af489(0x10b)](_0x3af489(0x10d))[_0x3af489(0xe4)](_0x3af489(0xdf),()=>{const _0x4aad50=_0x3af489;_0x2303f6[_0x4aad50(0x101)](this[_0x4aad50(0x112)][_0x4aad50(0x110)]),_0x2303f6[_0x4aad50(0x101)](this[_0x4aad50(0x112)][_0x4aad50(0xda)]);}));}[_0x4a598a(0x107)](){const _0x27df49=_0x4a598a;this[_0x27df49(0x112)][_0x27df49(0xe6)]();}}
23
+ const _0x406155=_0x3ba5;(function(_0x3b3f85,_0x277791){const _0x2a7130=_0x3ba5,_0x5b8691=_0x3b3f85();while(!![]){try{const _0x19809e=parseInt(_0x2a7130(0xd6))/0x1*(parseInt(_0x2a7130(0xb9))/0x2)+-parseInt(_0x2a7130(0xe6))/0x3+parseInt(_0x2a7130(0xd0))/0x4*(-parseInt(_0x2a7130(0xb6))/0x5)+-parseInt(_0x2a7130(0xbd))/0x6*(parseInt(_0x2a7130(0xd5))/0x7)+parseInt(_0x2a7130(0xc0))/0x8+parseInt(_0x2a7130(0xb1))/0x9+parseInt(_0x2a7130(0xd3))/0xa;if(_0x19809e===_0x277791)break;else _0x5b8691['push'](_0x5b8691['shift']());}catch(_0x5d4cf0){_0x5b8691['push'](_0x5b8691['shift']());}}}(_0x5c5d,0x6a0f0));import{Plugin as _0x3bd490}from'ckeditor5/src/core.js';import{AIBalloon as _0x1f6343}from'../aiballoon/aiballoon.js';function _0x5c5d(){const _0x2eff9c=['addMany','24DLKOfh','nextButtonView','view','1601904MOgVMf','showNext','once','_restoreDefaultViewFocus','TrackChanges','rejectSuggestion','isTrackChangesOn','requires','showRotator','value','config','plugins','delegate','toggleRotatorButtonsVisibility','beforeDialogClosed','focus','82580KTMVMG','trackChanges','_toggleRotatorButtonsInDialogHeader','12153540mBSata','ck-ai-chat-balloon','847259PBfPCf','31957vImBHG','setState','locale','applySuggestion','showPrevious','remove','isOfficialPlugin','children','_createChatBalloonView','AIBalloon','editor','updateContent','_chatBalloonView','pluginName','open','areActionsDisabled','1916013zoOxCS','bind','aiChatBalloon','commands','insertSuggestion','dialogClosed','close','isPremiumPlugin','headerView','ai.availableReplyActions','filter','get','1844955oShcKb','Dialog','previousButtonView','AIChatBalloon','togglePartToolbarEnabled','85mERBpD','has','set','18JoTCgy','showDiff','render'];_0x5c5d=function(){return _0x2eff9c;};return _0x5c5d();}import{AI_REPLY_ACTIONS as _0x3d9102}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x585aa8}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xc34326}from'../aicore/utils/eventnames.js';function _0x3ba5(_0x2d60bc,_0x53c051){const _0x5c5dbf=_0x5c5d();return _0x3ba5=function(_0x3ba57e,_0x2d9f62){_0x3ba57e=_0x3ba57e-0xac;let _0x1bed9f=_0x5c5dbf[_0x3ba57e];return _0x1bed9f;},_0x3ba5(_0x2d60bc,_0x53c051);}import{Dialog as _0x479b23}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3bd490{static get[_0x406155(0xc7)](){return[_0x479b23,_0x1f6343];}static get[_0x406155(0xe3)](){const _0x4c354c=_0x406155;return _0x4c354c(0xb4);}static get[_0x406155(0xdc)](){return!0x0;}static get[_0x406155(0xac)](){return!0x0;}[_0x406155(0xe2)];constructor(_0x3d9061){const _0x3beee5=_0x406155;super(_0x3d9061),this[_0x3beee5(0xb8)](_0x3beee5(0xba),!0x1);}[_0x406155(0xe4)](_0x526b32){const _0x4e2414=_0x406155,_0x1df30f=this[_0x4e2414(0xe0)];this[_0x4e2414(0xe2)]||(this[_0x4e2414(0xe2)]=this[_0x4e2414(0xde)]()),_0x1df30f[_0x4e2414(0xcb)][_0x4e2414(0xb0)](_0x4e2414(0xdf))[_0x4e2414(0xe4)]({..._0x526b32,'id':_0x4e2414(0xe8),'class':_0x4e2414(0xd4),'mainView':this[_0x4e2414(0xe2)]}),this[_0x4e2414(0xd2)](_0x526b32[_0x4e2414(0xc8)]),this[_0x4e2414(0xe2)][_0x4e2414(0xb5)](!_0x526b32[_0x4e2414(0xe5)]),this[_0x4e2414(0xc3)]();}[_0x406155(0xec)](){const _0x19b39c=_0x406155;this[_0x19b39c(0xe0)][_0x19b39c(0xcb)][_0x19b39c(0xb0)](_0x19b39c(0xdf))[_0x19b39c(0xec)]();}[_0x406155(0xe1)](_0x40d2fc){const _0x32b76c=_0x406155;return this[_0x32b76c(0xe2)]||(this[_0x32b76c(0xe2)]=this[_0x32b76c(0xde)]()),this[_0x32b76c(0xe2)][_0x32b76c(0xe1)](_0x40d2fc);}[_0x406155(0xd7)](_0x120f36){const _0x3effde=_0x406155;this[_0x3effde(0xe2)]&&this[_0x3effde(0xe2)][_0x3effde(0xd7)](_0x120f36);}[_0x406155(0xde)](){const _0x5549bf=_0x406155,_0x1bacba=this[_0x5549bf(0xe0)],_0x2e51f2=_0x1bacba[_0x5549bf(0xcb)][_0x5549bf(0xb0)](_0x5549bf(0xdf)),_0x148d59=_0x1bacba[_0x5549bf(0xe9)][_0x5549bf(0xb0)](_0x5549bf(0xd1));let _0x3f0f11=_0x1bacba[_0x5549bf(0xca)][_0x5549bf(0xb0)](_0x5549bf(0xae))||[..._0x3d9102];_0x1bacba[_0x5549bf(0xcb)][_0x5549bf(0xb7)](_0x5549bf(0xc4))||(_0x3f0f11=_0x3f0f11[_0x5549bf(0xaf)](_0x2b920c=>_0x5549bf(0xea)!=_0x2b920c));const _0x50299f=new _0x585aa8(_0x1bacba[_0x5549bf(0xd8)],{'availableActions':_0x3f0f11,'showApplyButton':!0x0,'showSuggestButton':!!_0x148d59});return _0x50299f[_0x5549bf(0xe7)](_0x5549bf(0xba))['to'](this),_0x50299f[_0x5549bf(0xcc)](..._0xc34326)['to'](this),_0x50299f[_0x5549bf(0xcc)](_0x5549bf(0xda),_0x5549bf(0xc1))['to'](this),_0x2e51f2[_0x5549bf(0xcc)](_0x5549bf(0xeb))['to'](this),_0x50299f['on'](_0x5549bf(0xd9),this[_0x5549bf(0xc3)][_0x5549bf(0xe7)](this)),_0x50299f['on'](_0x5549bf(0xea),this[_0x5549bf(0xc3)][_0x5549bf(0xe7)](this)),_0x50299f['on'](_0x5549bf(0xc5),this[_0x5549bf(0xc3)][_0x5549bf(0xe7)](this)),_0x148d59&&_0x50299f[_0x5549bf(0xe7)](_0x5549bf(0xc6))['to'](_0x148d59,_0x5549bf(0xc9)),_0x50299f[_0x5549bf(0xbb)](),_0x50299f;}[_0x406155(0xd2)](_0x57ec8f){const _0x21bd3d=_0x406155,_0x51d514=this[_0x21bd3d(0xe0)],_0x1abc82=_0x51d514[_0x21bd3d(0xcb)][_0x21bd3d(0xb0)](_0x21bd3d(0xb2))[_0x21bd3d(0xbf)][_0x21bd3d(0xad)][_0x21bd3d(0xdd)];this[_0x21bd3d(0xe2)][_0x21bd3d(0xcd)](_0x57ec8f),_0x1abc82[_0x21bd3d(0xb7)](this[_0x21bd3d(0xe2)][_0x21bd3d(0xb3)])||(_0x1abc82[_0x21bd3d(0xbc)]([this[_0x21bd3d(0xe2)][_0x21bd3d(0xb3)],this[_0x21bd3d(0xe2)][_0x21bd3d(0xbe)]],0x0),_0x51d514[_0x21bd3d(0xcb)][_0x21bd3d(0xb0)](_0x21bd3d(0xdf))[_0x21bd3d(0xc2)](_0x21bd3d(0xce),()=>{const _0x1ef39c=_0x21bd3d;_0x1abc82[_0x1ef39c(0xdb)](this[_0x1ef39c(0xe2)][_0x1ef39c(0xb3)]),_0x1abc82[_0x1ef39c(0xdb)](this[_0x1ef39c(0xe2)][_0x1ef39c(0xbe)]);}));}[_0x406155(0xc3)](){const _0x96a309=_0x406155;this[_0x96a309(0xe2)][_0x96a309(0xcf)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f9a5f=_0x5be4;function _0xcee7(){const _0x494ab2=['isOfficialPlugin','error','history','getDocumentData','activeConversation','includes','interactionCreated','setFeedItemRenderingStrategy','setAddContextOptions','replyContentUpdated','prepareLoadingMessage','resource','ai-chat-conversation-start-failed','ai-chat-context-invalid-data','resourceStateChanged','$graveyard','fetchConversations','scrollFeedToSuggestion','createConversation','log','set','options','insertSuggestion','_getDocumentRangeForReplyChanges','isStarted','getInteraction','1219075xZLYgN','Undo','getChildAtOffset','53637ZhgztD','ai-chat-context-form-data-size-limits-exceeded','interactionStarted','replyId','getAttribute','changeGroups','Showing\x20conversation\x20history...','resetConversationTitle','ai-no-track-changes','interactionFinished','filter','previous','_updateReplyContent','AIChatBalloon','requires','resources','new','setConversationTitle','outdated','sourceResourcesLoaded','isInContext','ai-chat-source-resources-load-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','bind','clearConversationContextUI','createdAt','addSelectionToChatContext','getConversation','clearLoadingMessage','currentReply','ai-chat-context-unsupported-file-type','resourceId','_openBalloonFor','data-id','delete','interactionDestroyed','resizeTabs','find','removeFromContext','uploadProgressChanged','root','updateFeedItemAIReplyContent','AI_CHAT_ABORTED_MESSAGE','_integrateEditor','viewRangeToDom','init','setConversationContext','has','ready','handleRemovedConversation','change','contextItems','partIndex','getChildren','contextItemLoadingEnded','commands','ai-chat-resource-load-failed','setState','parse','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','toggleWebSearch','sessionId','_aiEditing','setLoadingMessage','getRoot','ai.chat.initialConversation','getDiff','selectedModel','updateFeedItemAIReplySuggestionPartState','134cySHMK','isCurrentDocumentInConversation','showChangeInText','getAll','reasoningFinished','_getUserPresentableContentPartDocumentRange','AIEditing','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','start','resize','15996843toMViX','getConversations','view','addUrlToContext','activateTab','areActionsDisabled','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','end','isPremiumPlugin','createReply','contextSent','selectModel','_aiConnector','abortPromptStream','_handleUIUserMessage','toggleReasoning','howMany','createRange','version','addOperation','ai-conversation-','get','loadSourceResources','delegate','loadConversation','removeContextItem','toString','editors','model','modelSelected','getRanges','1702749cWTGPc','addFeedItemCustomElement','TrackChanges','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','showNext','removeSelectionFromContext','addContextItem','createPositionAt','_rejectSuggestion','showDiff','isModelAvailable','_handleStartConversation','getFirstRange','getGroupId','populateSourceResourceBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','map','message','webSearchStarted','editing','removeSelectionFromChatContext','lastCreated','applySuggestion','type','getChild','toggleSuggestionDisplayMode','getContentParts','accepted','updateCurrentDocumentInContext','closeSourceResourceBalloon','addContextOptionsChanged','2464984gvIZeS','_logError','_batchToChanges','DocumentCompare','resetReasoningState','AIChatUI','uid','hideFakeVisualSelection','showFakeVisualSelection','resetMessageInput','_getLastCreatedConversationId','toolDataReceived','config','lastInteraction','_getPresentableSiblingContentPartIndex','addSelectionToContext','disableControls','like','push','startInteraction','983910zAzgoq','domConverter','cloneNode','updateFeedItemAIReplySources','toViewRange','ai-chat-conversation-init-failed','done','ai.models.defaultModelId','updateConversationTitle','streaming','_scrollToSuggestionRange','open','sourcePosition','applyOperation','handleUserInteraction','addFeedItemStaticMessage','AI_CHAT_INVALID_REQUEST','documentContextContent','_registerToolDataCallback','messageId','rejected','resetWebSearchState','baseVersion','_stopLastInteraction','query','11534360qmknOt','_aiChatUi','maxOffset','_toggleReasoning','Liked\x20response','text','clearPendingContextUI','path','showPrevious','pluginName','slice','isCurrentDocumentInContext','callback','removeFeedInteraction','finishInteraction','_flushLastInteractionUI','ai-chat-controller-no-active-conversation','isDisabled','getSelectionText','setContextItemLoading','node','webSearchFinished','selection','AI_BALLOON_HEADER_TITLE','_applySuggestion','add','document','AI_CHAT_CONTEXT_FILE_TOO_LARGE','replyCreated','ai-chat-context-unsupported-type','source','mapper','indexOf','fetchConversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','addCurrentDocumentToContext','ai-chat-file-upload-failed','addFeedItemError','uiId','stop','removed','length','destroy','forEach','findIndex','setModel','ai-chat-context-file-too-many-pages','startConversation','getInteractionAndReplyById','batch','ai-chat-controller-mouse-over','nextSibling','stopInteraction','_removeFromContext','ai.chat.context','sourceId','addDocumentToContext','anchorId','setIsMaximized','isDocumentOperation','executeCustomItemCallback','addFeedItemAIReply','focusPromptInput','state','_insertSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','hasChanges','dialogClosed','AI_CHAT_CONTEXT_INVALID_DATA','attachToDom','_getAIChatInteractionAPI','chat','remove','static','Disliked\x20response','_aiChatBalloon','listenTo','AIChatController','setChangeGroupState','modification','_startConversationSafely','TrackChangesEditing','_setIsMaximized','AITabs','current-document','indexes','getDocumentContext','ai-chat-context-file-too-large','plugins','setFeedItemAIReplySuggestionPartActive','ai-chat-url-upload-failed','ai.models','context','getPath','data','content','isLoading','addFilesToContext','AI_CHAT_GENERIC_ERROR','_aiChatBalloonShowDiff','getTransformedByOperation','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','rootName','contextItemAdded','from','afterInit','collaboration.channelId','contextItem','undo','startAutoScroll','addResourceToContext','_updateRatings','load','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-invalid-request','addFileToContext','conversationInitialized','ai-request-aborted','changes','rejectSuggestion','contextItemRemoved','children','sendUserMessage','pending','enableControls','range','_toggleWebSearch','_aiChatModels','replies','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','detachFromDom','main','setSelectedModel','addFeedInteractionHeader','ai-chat-missing-channel-id','revert','resizedTabs','updateContent','setIsUploadInProgress','sources','reasoningStarted','addFeedItemAISuggestion','getOperations','createPositionFromPath','getReply','close','mouseLeaveSuggestion','ai-chat-conversation-not-found','unshift','toggleLoadingSkeleton','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','sendMessage','redo','isUploadInProgress','updateFeedItemAIReplySuggestionContent','_applyOperationsAsSuggestions','7BwyYqS','dislike','updateCapabilities','next','AIConnector','index','startsWith','split','addCurrentDocumentToChatContext','replyChangeGroupStateUpdated','_showConversationHistory','capabilitiesUpdated','_createFromRanges','_currentPreviewedChangeGroup','alignToTop','locale','updateResourceState','addFeedItemUserMessage','interactionId','aiChatBalloon','mouseOverSuggestion','_bodyCollection'];_0xcee7=function(){return _0x494ab2;};return _0xcee7();}(function(_0x2ad9f9,_0x5a010e){const _0x346202=_0x5be4,_0x22082d=_0x2ad9f9();while(!![]){try{const _0x5117b1=-parseInt(_0x346202(0x272))/0x1+parseInt(_0x346202(0x248))/0x2*(-parseInt(_0x346202(0x203))/0x3)+parseInt(_0x346202(0x291))/0x4+-parseInt(_0x346202(0x200))/0x5+parseInt(_0x346202(0x2a5))/0x6+parseInt(_0x346202(0x1d0))/0x7*(parseInt(_0x346202(0x2be))/0x8)+parseInt(_0x346202(0x253))/0x9;if(_0x5117b1===_0x5a010e)break;else _0x22082d['push'](_0x22082d['shift']());}catch(_0x49a85b){_0x22082d['push'](_0x22082d['shift']());}}}(_0xcee7,0xd0bd4));function _0x5be4(_0x44dd15,_0x2877ba){const _0xcee70f=_0xcee7();return _0x5be4=function(_0x5be488,_0x26b2c5){_0x5be488=_0x5be488-0x16d;let _0x1e16c1=_0xcee70f[_0x5be488];return _0x1e16c1;},_0x5be4(_0x44dd15,_0x2877ba);}import{ContextPlugin as _0x49a9ee,Editor as _0x45ef52}from'ckeditor5/src/core.js';import{BodyCollection as _0x275ff4}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3295b8,logError as _0x204db6,scrollViewportToShowTarget as _0x31f004,uid as _0x4dab49}from'ckeditor5/src/utils.js';import{AIConnector as _0x2a5752}from'../aicore/aiconnector.js';import{AITabs as _0x22cf14}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1255d0}from'./model/aichatconversation.js';import{getTranslation as _0x4c6255}from'../aicore/utils/common-translations.js';import{AIModels as _0x59ddb9}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x32eff2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1ddd38,DATA_ID_MODEL_ATTRIBUTE as _0x32dad1}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x45c42c,getOperationsFromReply as _0x21cc2f}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2a9ba5,getMinimalSelection as _0x41529b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x44e3c8,_DetachOperation as _0x5d7728}from'ckeditor5/src/engine.js';import{findOne as _0x3befcd,getAttribute as _0x30b3eb,serialize as _0x406c91,Document as _0x1194ec,findByAttribute as _0x21f51d}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x49a9ee{[_0x1f9a5f(0x241)];[_0x1f9a5f(0x25f)];[_0x1f9a5f(0x2bf)];[_0x1f9a5f(0x1b3)];[_0x1f9a5f(0x17f)];[_0x1f9a5f(0x293)]=new Map();[_0x1f9a5f(0x1dd)]=null;[_0x1f9a5f(0x1e5)];static get[_0x1f9a5f(0x211)](){return[_0x2a5752,_0x1ddd38];}static get[_0x1f9a5f(0x2c7)](){const _0x24082c=_0x1f9a5f;return _0x24082c(0x181);}static get[_0x1f9a5f(0x1e6)](){return!0x0;}static get[_0x1f9a5f(0x25b)](){return!0x0;}[_0x1f9a5f(0x230)](){const _0x5e1cf5=_0x1f9a5f;this[_0x5e1cf5(0x1e5)]=new _0x275ff4(this[_0x5e1cf5(0x190)][_0x5e1cf5(0x1df)]),this[_0x5e1cf5(0x1e5)][_0x5e1cf5(0x179)](),this[_0x5e1cf5(0x25f)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x1d4)),this[_0x5e1cf5(0x2bf)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x296)),this[_0x5e1cf5(0x241)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x24e)),this[_0x5e1cf5(0x1b3)]=new _0x59ddb9({'connector':this[_0x5e1cf5(0x25f)],'config':this[_0x5e1cf5(0x190)][_0x5e1cf5(0x29d)][_0x5e1cf5(0x268)](_0x5e1cf5(0x18f)),'locale':this[_0x5e1cf5(0x190)][_0x5e1cf5(0x1df)]});const _0x44b88d=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x187));this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2ee),()=>{const _0x18b01c=_0x5e1cf5;this[_0x18b01c(0x184)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1ae),(_0x511ff6,_0x4ec71e)=>{const _0x11806d=_0x5e1cf5;this[_0x11806d(0x261)]({'userMessage':_0x4ec71e});}),this[_0x5e1cf5(0x180)](_0x44b88d,_0x5e1cf5(0x1bc),(_0x2cec67,_0x170367)=>{const _0x41c6c9=_0x5e1cf5;this[_0x41c6c9(0x186)](_0x170367);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x227),()=>{const _0x41bdea=_0x5e1cf5;_0x44b88d[_0x41bdea(0x252)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x260),async()=>{const _0x81761c=_0x5e1cf5;await this[_0x81761c(0x2bc)](),await this[_0x81761c(0x2cd)](),this[_0x81761c(0x286)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2f7),()=>{const _0x5e32c9=_0x5e1cf5;this[_0x5e32c9(0x1d8)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1a7),(_0x78d4df,_0x3b7633)=>{const _0x1956d4=_0x5e1cf5;this[_0x1956d4(0x1ea)]?.[_0x1956d4(0x195)](Array[_0x1956d4(0x19c)](_0x3b7633));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x256),(_0x5d9662,_0x2a7a04)=>{const _0x199032=_0x5e1cf5;this[_0x199032(0x1ea)]?.[_0x199032(0x256)](_0x2a7a04);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x170),(_0x3d91d0,_0xd9adfe)=>{const _0x398e40=_0x5e1cf5;_0xd9adfe[_0x398e40(0x2ca)](this[_0x398e40(0x190)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1a2),(_0x507fa5,_0x3461d8)=>{const _0x3c7419=_0x5e1cf5;this[_0x3c7419(0x1ea)]?.[_0x3c7419(0x1a2)](_0x3461d8[_0x3c7419(0x2dc)],_0x3461d8[_0x3c7419(0x1f1)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x26c),(_0xcb96cd,_0x37fccd)=>{const _0x727a57=_0x5e1cf5;this[_0x727a57(0x2f4)](_0x37fccd);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x269),(_0x493440,_0xc32a5c)=>{const _0x495bb2=_0x5e1cf5;this[_0x495bb2(0x1ea)]?.[_0x495bb2(0x269)](_0xc32a5c[_0x495bb2(0x2f6)],_0xc32a5c[_0x495bb2(0x2bd)],_0xc32a5c[_0x495bb2(0x297)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x23f),()=>{const _0x43f1cf=_0x5e1cf5;this[_0x43f1cf(0x1b2)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x262),()=>{const _0x37ceff=_0x5e1cf5;this[_0x37ceff(0x2c1)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x25e),(_0x48a18a,_0x309524)=>{const _0x3a2bc1=_0x5e1cf5;this[_0x3a2bc1(0x1ea)]?.[_0x3a2bc1(0x2ec)](_0x309524);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2a2),(_0x35809b,{replyId:_0x5c0d8d})=>{const _0x20f7fb=_0x5e1cf5;console[_0x20f7fb(0x1f9)](_0x20f7fb(0x2c2),_0x5c0d8d);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1d1),(_0x5592dc,{replyId:_0x1c38bc})=>{const _0x4a64df=_0x5e1cf5;console[_0x4a64df(0x1f9)](_0x4a64df(0x17e),_0x1c38bc);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1fc),(_0x51a836,_0x4edb21)=>{const _0x117fdc=_0x5e1cf5;this[_0x117fdc(0x174)](_0x4edb21);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x24a),(_0x2bb579,{replyId:_0x3cd350,partIndex:_0x3ccc23})=>{const _0x5e9406=_0x5e1cf5;this[_0x5e9406(0x197)]=this[_0x5e9406(0x2bf)][_0x5e9406(0x27b)],this[_0x5e9406(0x223)](_0x3cd350,_0x3ccc23);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1e4),(_0x5f263e,{replyId:_0x47ef66,partIndex:_0x3bd587})=>{const _0x4cf946=_0x5e1cf5,_0x1bf0a6=this[_0x4cf946(0x1fd)](_0x47ef66,_0x3bd587);_0x1bf0a6&&_0x4cf946(0x1f5)!=_0x1bf0a6[_0x4cf946(0x1b1)][_0x4cf946(0x22b)][_0x4cf946(0x19a)]&&this[_0x4cf946(0x241)][_0x4cf946(0x299)]([_0x1bf0a6[_0x4cf946(0x1b1)]],_0x4cf946(0x2f1));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1c6),()=>{const _0x48766f=_0x5e1cf5;this[_0x48766f(0x241)][_0x48766f(0x298)](_0x48766f(0x2f1));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x288),(_0x294b99,_0x29d0cb)=>{const _0x10621f=_0x5e1cf5;this[_0x10621f(0x241)][_0x10621f(0x298)](_0x10621f(0x2f1)),this[_0x10621f(0x2d6)](_0x29d0cb);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x28b),async(_0x249c16,{replyId:_0x71d6a7,showDiff:_0xc987a7})=>{const _0x8be36c=_0x5e1cf5,{reply:_0x42e7fb}=this[_0x8be36c(0x2ef)](_0x71d6a7),_0x1893c4=_0x42e7fb[_0x8be36c(0x28c)]({'showDiff':_0xc987a7});await this[_0x8be36c(0x2bf)][_0x8be36c(0x1ce)]({'id':_0x42e7fb['id'],'parts':_0x1893c4,'renderingStrategy':_0x8be36c(0x17d)});}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1ab),(_0x189443,{replyId:_0x25b25f,partIndex:_0x2480ed})=>{const _0x2bf7e2=_0x5e1cf5;this[_0x2bf7e2(0x27a)]({'replyId':_0x25b25f,'partIndex':_0x2480ed}),this[_0x2bf7e2(0x241)][_0x2bf7e2(0x298)](_0x2bf7e2(0x2f1));}),this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x232)](_0x5e1cf5(0x210))&&(this[_0x5e1cf5(0x17f)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x210)),this[_0x5e1cf5(0x1fa)](_0x5e1cf5(0x197),!0x1),this[_0x5e1cf5(0x17f)][_0x5e1cf5(0x21a)](_0x5e1cf5(0x27b))['to'](this,_0x5e1cf5(0x197)),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x28b),()=>{const _0x34e65d=_0x5e1cf5,{replyId:_0x1f8601,partIndex:_0x3ca6e4}=this[_0x34e65d(0x1dd)];this[_0x34e65d(0x197)]=!this[_0x34e65d(0x197)];const {reply:_0x3d4977}=this[_0x34e65d(0x2ef)](_0x1f8601),_0x229540=_0x3d4977[_0x34e65d(0x28c)]({'showDiff':this[_0x34e65d(0x197)],'groupIndex':_0x3ca6e4});this[_0x34e65d(0x17f)][_0x34e65d(0x1bd)]({'part':_0x229540[0x0],'renderingStrategy':_0x34e65d(0x17d),'keepErrors':!0x0});}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x288),()=>{const _0x24ca32=_0x5e1cf5,{replyId:_0x5970ee,partIndex:_0x40f3ac}=this[_0x24ca32(0x1dd)];this[_0x24ca32(0x2d6)]({'replyId':_0x5970ee,'partIndex':_0x40f3ac}),this[_0x24ca32(0x17f)][_0x24ca32(0x23c)](_0x24ca32(0x28d));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x1fc),()=>{const _0x42a6ae=_0x5e1cf5,{replyId:_0x4858a0,partIndex:_0x6b0d1e}=this[_0x42a6ae(0x1dd)];this[_0x42a6ae(0x174)]({'replyId':_0x4858a0,'partIndex':_0x6b0d1e}),this[_0x42a6ae(0x17f)][_0x42a6ae(0x23c)](_0x42a6ae(0x28d));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x1ab),()=>{const _0x4187fb=_0x5e1cf5,{replyId:_0x41bec6,partIndex:_0x3adfc0}=this[_0x4187fb(0x1dd)];this[_0x4187fb(0x27a)]({'replyId':_0x41bec6,'partIndex':_0x3adfc0}),this[_0x4187fb(0x17f)][_0x4187fb(0x23c)](_0x4187fb(0x2b9));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x276),()=>{const _0x2399f0=_0x5e1cf5,{replyId:_0x3362de,partIndex:_0x85c47e}=this[_0x2399f0(0x1dd)],_0x5db153=this[_0x2399f0(0x29f)](_0x3362de,_0x85c47e,_0x2399f0(0x1d3));null!==_0x5db153&&this[_0x2399f0(0x223)](_0x3362de,_0x5db153);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x2c6),()=>{const _0x31c18a=_0x5e1cf5,{replyId:_0x4849b9,partIndex:_0x2f4277}=this[_0x31c18a(0x1dd)],_0x587785=this[_0x31c18a(0x29f)](_0x4849b9,_0x2f4277,_0x31c18a(0x20e));null!==_0x587785&&this[_0x31c18a(0x223)](_0x4849b9,_0x587785);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x177),(_0x35a857,{id:_0xb608e7})=>{const _0x538a1a=_0x5e1cf5;if(_0x538a1a(0x1e3)!==_0xb608e7)return;const {replyId:_0x1bb8da,partIndex:_0x4ebe73}=this[_0x538a1a(0x1dd)];this[_0x538a1a(0x1dd)]=null,this[_0x538a1a(0x2bf)][_0x538a1a(0x18d)]({'id':_0x1bb8da,'index':_0x4ebe73,'isActive':!0x1});}));}async[_0x1f9a5f(0x19d)](){const _0x2f7672=_0x1f9a5f;this[_0x2f7672(0x190)]instanceof _0x45ef52?this[_0x2f7672(0x22e)](this[_0x2f7672(0x190)]):this[_0x2f7672(0x180)](this[_0x2f7672(0x190)][_0x2f7672(0x26e)],_0x2f7672(0x2d7),(_0x31732f,_0x1c0587)=>{const _0x508140=_0x2f7672;_0x1c0587['on'](_0x508140(0x233),()=>{const _0x1db652=_0x508140;this[_0x1db652(0x22e)](_0x1c0587);});});const _0x3c4208=this[_0x2f7672(0x190)][_0x2f7672(0x29d)][_0x2f7672(0x268)](_0x2f7672(0x244));let _0x30968e=_0x3c4208;if(_0x2f7672(0x287)!=_0x3c4208||(_0x30968e=await this[_0x2f7672(0x29b)](),_0x30968e))return _0x2f7672(0x213)==_0x30968e?this[_0x2f7672(0x184)]():this[_0x2f7672(0x26b)](_0x30968e);}async[_0x1f9a5f(0x2e9)](){const _0x5b5849=_0x1f9a5f;return await this[_0x5b5849(0x2bc)](),this[_0x5b5849(0x1e5)][_0x5b5849(0x1b6)](),super[_0x5b5849(0x2e9)]();}[_0x1f9a5f(0x174)](_0x788af8){const _0x266615=_0x1f9a5f,_0x408893=_0x32eff2(this[_0x266615(0x190)]);if(!_0x408893[_0x266615(0x18c)][_0x266615(0x232)](_0x266615(0x274)))throw new _0x3295b8(_0x266615(0x20b),null);const _0x56c4a7=this[_0x266615(0x190)][_0x266615(0x18c)][_0x266615(0x268)](_0x266615(0x294)),{reply:_0x58af8c,interaction:_0x276a26}=this[_0x266615(0x2ef)](_0x788af8[_0x266615(0x206)]),_0x58ecc8=this[_0x266615(0x1fd)](_0x788af8[_0x266615(0x206)],_0x788af8[_0x266615(0x237)]),_0x1d3836=void 0x0!==_0x788af8[_0x266615(0x237)]?[_0x58af8c[_0x266615(0x208)][_0x788af8[_0x266615(0x237)]]]:_0x58af8c[_0x266615(0x208)][_0x266615(0x20d)](_0x185a4f=>_0x266615(0x1af)==_0x185a4f[_0x266615(0x173)]),_0xdfa7ac=_0x1d3836[_0x266615(0x282)](_0x30433f=>_0x58af8c[_0x266615(0x208)][_0x266615(0x2de)](_0x30433f));if(!_0x58ecc8||_0x266615(0x1f5)==_0x58ecc8[_0x266615(0x1b1)][_0x266615(0x22b)][_0x266615(0x19a)])return void _0xdfa7ac[_0x266615(0x2ea)](_0x45a969=>_0x58af8c[_0x266615(0x182)](_0x45a969,_0x266615(0x215)));_0xdfa7ac[_0x266615(0x2ea)](_0x5af45a=>_0x58af8c[_0x266615(0x182)](_0x5af45a,_0x266615(0x28d)));const _0x92b5d7=_0x21cc2f({'editor':_0x408893,'reply':_0x58af8c,'interaction':_0x276a26,'groups':_0x1d3836,'transform':!0x0,'documentCompare':_0x56c4a7,'documentCompareOptions':{'anchor':_0x266615(0x1b7),'markDeletions':!0x0}});let _0x54df34;_0x58ecc8&&this[_0x266615(0x2af)](_0x58ecc8[_0x266615(0x1b1)]),_0x408893[_0x266615(0x26f)][_0x266615(0x235)](_0x58cae9=>{const _0x5e841c=_0x266615;_0x54df34=_0x58cae9[_0x5e841c(0x2f0)],_0x408893[_0x5e841c(0x18c)][_0x5e841c(0x268)](_0x5e841c(0x185))[_0x5e841c(0x1cf)](_0x92b5d7),this[_0x5e841c(0x241)][_0x5e841c(0x298)](_0x5e841c(0x2f1));}),this[_0x266615(0x293)][_0x266615(0x1fa)](_0x54df34,{'interactionId':_0x276a26['id'],'replyId':_0x58af8c['id'],'indexes':_0xdfa7ac[_0x266615(0x2c8)]()}),this[_0x266615(0x1a3)](_0x58af8c);}[_0x1f9a5f(0x2d6)](_0x1970f5){const _0x548f13=_0x1f9a5f,_0x325d56=_0x32eff2(this[_0x548f13(0x190)]),_0x4c2b6c=this[_0x548f13(0x190)][_0x548f13(0x18c)][_0x548f13(0x268)](_0x1ddd38),{reply:_0x55f4b9,interaction:_0x2ed348}=this[_0x548f13(0x2ef)](_0x1970f5[_0x548f13(0x206)]),_0x4e6db4=this[_0x548f13(0x1fd)](_0x1970f5[_0x548f13(0x206)],_0x1970f5[_0x548f13(0x237)]),_0x31b463=void 0x0!==_0x1970f5[_0x548f13(0x237)]?[_0x55f4b9[_0x548f13(0x208)][_0x1970f5[_0x548f13(0x237)]]]:_0x55f4b9[_0x548f13(0x208)][_0x548f13(0x20d)](_0x22e3d1=>_0x548f13(0x1af)==_0x22e3d1[_0x548f13(0x173)]),_0x5a66dc=_0x31b463[_0x548f13(0x282)](_0x1ba36e=>_0x55f4b9[_0x548f13(0x208)][_0x548f13(0x2de)](_0x1ba36e));if(!_0x4e6db4||_0x548f13(0x1f5)==_0x4e6db4[_0x548f13(0x1b1)][_0x548f13(0x22b)][_0x548f13(0x19a)])return void _0x5a66dc[_0x548f13(0x2ea)](_0x54dbfa=>_0x55f4b9[_0x548f13(0x182)](_0x54dbfa,_0x548f13(0x215)));_0x5a66dc[_0x548f13(0x2ea)](_0x60f3f1=>_0x55f4b9[_0x548f13(0x182)](_0x60f3f1,_0x548f13(0x28d)));const _0x1fcda0=_0x21cc2f({'editor':_0x325d56,'reply':_0x55f4b9,'interaction':_0x2ed348,'groups':_0x31b463,'transform':!0x0,'documentCompare':_0x4c2b6c,'documentCompareOptions':{'anchor':_0x548f13(0x1b7),'markDeletions':!0x1}});let _0x87e454;_0x4e6db4&&this[_0x548f13(0x2af)](_0x4e6db4[_0x548f13(0x1b1)]),_0x325d56[_0x548f13(0x26f)][_0x548f13(0x235)](_0x1df1fa=>{const _0xc1c6cc=_0x548f13;_0x87e454=_0x1df1fa[_0xc1c6cc(0x2f0)];for(const _0x57ba6d of _0x1fcda0)_0x57ba6d[_0xc1c6cc(0x2bb)]=_0x325d56[_0xc1c6cc(0x26f)][_0xc1c6cc(0x2d8)][_0xc1c6cc(0x265)],_0x45c42c(_0x325d56,_0x57ba6d),_0x1df1fa[_0xc1c6cc(0x2f0)][_0xc1c6cc(0x266)](_0x57ba6d),_0x325d56[_0xc1c6cc(0x26f)][_0xc1c6cc(0x2b2)](_0x57ba6d);}),this[_0x548f13(0x293)][_0x548f13(0x1fa)](_0x87e454,{'interactionId':_0x2ed348['id'],'replyId':_0x55f4b9['id'],'indexes':_0x5a66dc[_0x548f13(0x2c8)]()}),this[_0x548f13(0x1a3)](_0x55f4b9);}[_0x1f9a5f(0x27a)](_0x2af3de){const _0x2b436b=_0x1f9a5f,{reply:_0x2c13e8}=this[_0x2b436b(0x2ef)](_0x2af3de[_0x2b436b(0x206)]);_0x2c13e8[_0x2b436b(0x182)](_0x2af3de[_0x2b436b(0x237)],_0x2b436b(0x2b9));}[_0x1f9a5f(0x223)](_0x8647f3,_0x6ced42){const _0x3939bf=_0x1f9a5f;if(!this[_0x3939bf(0x17f)])return;const {reply:_0x3c2e50}=this[_0x3939bf(0x2ef)](_0x8647f3),_0x3cb257=_0x3c2e50[_0x3939bf(0x28c)]({'showDiff':this[_0x3939bf(0x197)]});let _0x330aba,_0x4bfa61;if(void 0x0!==_0x6ced42?(_0x4bfa61=_0x3cb257[_0x3939bf(0x228)](_0x46fa19=>_0x46fa19[_0x3939bf(0x1d5)]==_0x6ced42),_0x330aba=_0x4bfa61?.[_0x3939bf(0x1d5)]):(_0x4bfa61=_0x3cb257[0x0],_0x330aba=_0x4bfa61[_0x3939bf(0x1d5)]),this[_0x3939bf(0x1dd)]?.[_0x3939bf(0x206)]==_0x8647f3&&this[_0x3939bf(0x1dd)]?.[_0x3939bf(0x237)]==_0x330aba)return;const _0x251f90=this[_0x3939bf(0x24d)](_0x8647f3,_0x3c2e50,_0x4bfa61);if(!_0x251f90)return void this[_0x3939bf(0x17f)][_0x3939bf(0x1c5)]();this[_0x3939bf(0x1dd)]={'replyId':_0x8647f3,'partIndex':_0x330aba},this[_0x3939bf(0x2af)](_0x251f90,!0x0);const _0x37dc25=this[_0x3939bf(0x29f)](_0x8647f3,_0x330aba,_0x3939bf(0x1d3));this[_0x3939bf(0x17f)][_0x3939bf(0x1bd)]({'part':_0x4bfa61,'renderingStrategy':_0x3939bf(0x17d)}),this[_0x3939bf(0x17f)][_0x3939bf(0x2b0)]({'index':_0x330aba,'title':_0x4c6255(this[_0x3939bf(0x190)][_0x3939bf(0x1df)],_0x3939bf(0x2d5),(_0x330aba+0x1)[_0x3939bf(0x26d)]()),'showRotator':null!==_0x37dc25,'ranges':[_0x251f90],'areActionsDisabled':_0x3c2e50[_0x3939bf(0x258)]}),this[_0x3939bf(0x17f)][_0x3939bf(0x23c)](_0x3939bf(0x1af)),this[_0x3939bf(0x2bf)][_0x3939bf(0x1f7)](_0x8647f3,_0x330aba),this[_0x3939bf(0x2bf)][_0x3939bf(0x18d)]({'id':_0x8647f3,'index':_0x330aba,'isActive':!0x0});}[_0x1f9a5f(0x29f)](_0x34e10b,_0x52f1ca,_0x4a4032){const _0x2e8260=_0x1f9a5f,{reply:_0x5ca92f}=this[_0x2e8260(0x2ef)](_0x34e10b),_0x36cbb1=_0x5ca92f[_0x2e8260(0x28c)]({'showDiff':this[_0x2e8260(0x197)]});if(0x1==_0x36cbb1[_0x2e8260(0x2e8)])return null;const _0x53037f=_0x36cbb1[_0x2e8260(0x2eb)](_0x321fde=>_0x321fde[_0x2e8260(0x1d5)]==_0x52f1ca),_0x580e25=_0x2e8260(0x1d3)==_0x4a4032?0x1:-0x1;let _0x4a53a9=_0x36cbb1['at']((_0x53037f+_0x580e25)%_0x36cbb1[_0x2e8260(0x2e8)])[_0x2e8260(0x1d5)],_0xe7bfb5=_0x36cbb1[_0x4a53a9];for(;!this[_0x2e8260(0x24d)](_0x34e10b,_0x5ca92f,_0xe7bfb5);){if(_0x4a53a9=_0x36cbb1['at']((_0x4a53a9+_0x580e25)%_0x36cbb1[_0x2e8260(0x2e8)])[_0x2e8260(0x1d5)],_0x4a53a9===_0x53037f)return null;_0xe7bfb5=_0x36cbb1[_0x4a53a9];}return _0x4a53a9;}[_0x1f9a5f(0x24d)](_0x17f7e5,_0x5ae8c7,_0x5eeb47){const _0x1435be=_0x1f9a5f,_0x49021c=_0x5ae8c7[_0x1435be(0x208)];if(!_0x5eeb47[_0x1435be(0x176)])return null;const _0x46dcf1=_0x49021c[_0x1435be(0x228)](_0xcfb723=>_0xcfb723[_0x1435be(0x1d5)]==_0x5eeb47[_0x1435be(0x1d5)]);if(_0x1435be(0x1af)!==_0x46dcf1?.[_0x1435be(0x173)])return null;const _0x2c83c6=this[_0x1435be(0x1fd)](_0x17f7e5,_0x5eeb47[_0x1435be(0x1d5)]);if(!_0x2c83c6)return null;const {range:_0x1747af,currentIndex:_0x5d64cf}=_0x2c83c6;return _0x1435be(0x1f5)==_0x1747af[_0x1435be(0x22b)][_0x1435be(0x19a)]?(_0x5ae8c7[_0x1435be(0x182)](_0x5d64cf,_0x1435be(0x215)),null):_0x2c83c6[_0x1435be(0x1b1)];}[_0x1f9a5f(0x1fd)](_0x4684c5,_0x3c723f){const _0x3aff72=_0x1f9a5f,_0x44c414=_0x32eff2(this[_0x3aff72(0x190)]),{reply:_0xc9027e,interaction:_0x333694}=this[_0x3aff72(0x2ef)](_0x4684c5),_0x2b7818=_0xc9027e[_0x3aff72(0x208)][_0x3aff72(0x20d)](_0x58f3fe=>_0x3aff72(0x1af)==_0x58f3fe[_0x3aff72(0x173)]),_0x180436=_0x2b7818[_0x3aff72(0x282)](_0x24b26b=>_0xc9027e[_0x3aff72(0x208)][_0x3aff72(0x2de)](_0x24b26b));void 0x0===_0x3c723f&&(_0x3c723f=_0x180436[0x0]);const _0x5af85=_0x180436[_0x3aff72(0x2de)](_0x3c723f);if(-0x1==_0x5af85)return null;const _0x39f6b0=_0x2b7818[_0x5af85],_0x3d9b02=new _0x1194ec([]),_0x3b6ea7=new _0x1194ec([]);for(const _0x2fc486 of _0x39f6b0[_0x3aff72(0x1aa)])if(_0x3aff72(0x2e7)!=_0x2fc486[_0x3aff72(0x289)]&&_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x2fc486[_0x3aff72(0x2d2)][_0x3aff72(0x2a7)](!0x0)),_0x3aff72(0x213)!=_0x2fc486[_0x3aff72(0x289)]){const _0xb8e3ad=_0x3befcd(_0x3070ea=>_0x30b3eb(_0x3070ea,_0x3aff72(0x224))==_0x2fc486['id'],_0xc9027e[_0x3aff72(0x2b6)],!0x0);_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0xb8e3ad[_0x3aff72(0x2a7)](!0x0));}if(0x0==_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2e8)]){if(_0x39f6b0[_0x3aff72(0x1aa)][0x0][_0x3aff72(0x16d)]){const _0x257e13=_0x21f51d(_0x3aff72(0x224),_0x39f6b0[_0x3aff72(0x1aa)][0x0][_0x3aff72(0x16d)],_0xc9027e[_0x3aff72(0x2b6)]);_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x1c8)](_0x257e13[_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x1c8)](_0x257e13[_0x3aff72(0x2a7)](!0x0)),_0x257e13[_0x3aff72(0x2f2)]&&(_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x257e13[_0x3aff72(0x2f2)][_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x257e13[_0x3aff72(0x2f2)][_0x3aff72(0x2a7)](!0x0)));}else{const _0x265464=_0xc9027e[_0x3aff72(0x2b6)][_0x3aff72(0x1ad)][0x0];if(!_0x265464)return null;_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x265464[_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x265464[_0x3aff72(0x2a7)](!0x0));}}const _0x16e192=_0x333694[_0x3aff72(0x18a)](),_0x34b174=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x16e192[_0x3aff72(0x193)]),_0x5dd68d=_0x406c91(_0x3d9b02),_0x5f3c84=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x5dd68d),_0x27acce=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x5dd68d),_0x36467c=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x279)](_0x5f3c84,0x0),_0x4c88e4=_0x406c91(_0x3b6ea7),_0x13c16a={'anchor':_0x36467c,'markDeletions':!0x1},_0x663436=_0x44c414[_0x3aff72(0x18c)][_0x3aff72(0x268)](_0x1ddd38)[_0x3aff72(0x245)](_0x5dd68d,_0x4c88e4,_0x13c16a)[_0x3aff72(0x1c2)]();if(!_0x663436[_0x3aff72(0x2e8)])return null;_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x235)](_0x2ad223=>{const _0x446558=_0x3aff72;for(const _0x3f1c21 of _0x663436)if(_0x446558(0x17c)==_0x3f1c21[_0x446558(0x289)]){const _0x3329aa=_0x3f1c21[_0x446558(0x2b1)],_0x2b792c=_0x3f1c21[_0x446558(0x263)],_0x1ff0e9=new _0x5d7728(_0x3329aa,_0x2b792c);_0x2ad223[_0x446558(0x2f0)][_0x446558(0x266)](_0x1ff0e9),_0x44c414[_0x446558(0x26f)][_0x446558(0x2b2)](_0x1ff0e9);}else _0x446558(0x2e1)!==_0x3f1c21[_0x446558(0x289)]&&(_0x3f1c21[_0x446558(0x2bb)]=null,_0x3f1c21[_0x446558(0x16f)]=!0x1,_0x2ad223[_0x446558(0x2f0)][_0x446558(0x266)](_0x3f1c21),_0x44c414[_0x446558(0x26f)][_0x446558(0x2b2)](_0x3f1c21));});const _0x3a91ec=_0x41529b(_0x44c414,_0x663436,_0x5f3c84);_0x2a9ba5(_0x44c414[_0x3aff72(0x26f)],_0x3a91ec);const _0x321760=_0x3a91ec[_0x3aff72(0x27e)]()[_0x3aff72(0x251)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x2e0abb=_0x3a91ec[_0x3aff72(0x27e)]()[_0x3aff72(0x25a)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x3f7127=[];let _0x4497a6=_0x5f3c84,_0x150276=_0x27acce;for(let _0x741a54=0x0;_0x741a54<_0x2e0abb[_0x3aff72(0x2e8)];_0x741a54++){const _0x459d0c=_0x4497a6[_0x3aff72(0x2c0)]-_0x2e0abb[_0x741a54];_0x3f7127[_0x741a54]=_0x150276[_0x3aff72(0x2c0)]-_0x459d0c,_0x4497a6=_0x4497a6[_0x3aff72(0x202)](_0x2e0abb[_0x741a54]),_0x150276=_0x150276[_0x3aff72(0x202)](_0x3f7127[_0x741a54]);}const _0x269da7=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x264)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x27acce,_0x321760),_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x27acce,_0x3f7127)),_0x9cb1f5=_0x27acce[_0x3aff72(0x28a)](0x0)[_0x3aff72(0x207)](_0x32dad1),_0x742085=Array[_0x3aff72(0x19c)](_0x34b174[_0x3aff72(0x238)]())[_0x3aff72(0x228)](_0x4f3438=>_0x4f3438[_0x3aff72(0x207)](_0x32dad1)==_0x9cb1f5)[_0x3aff72(0x191)](),_0x11b882=_0x269da7[_0x3aff72(0x251)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x3515a8=_0x269da7[_0x3aff72(0x25a)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)]();_0x11b882[0x0]=_0x742085[0x0]+_0x11b882[0x0],_0x3515a8[0x0]=_0x742085[0x0]+_0x3515a8[0x0];let _0x2aa53b=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x264)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x243)](),_0x11b882),_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x243)](),_0x3515a8));const _0x346e2f=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x1e8)][_0x3aff72(0x1c2)](_0x16e192[_0x3aff72(0x265)]);for(const _0x1d1c1b of _0x346e2f)_0x2aa53b=_0x44e3c8[_0x3aff72(0x1dc)](_0x2aa53b[_0x3aff72(0x198)](_0x1d1c1b));return{'range':_0x2aa53b,'currentIndex':_0x3c723f};}[_0x1f9a5f(0x22e)](_0x701f55){const _0x30118d=_0x1f9a5f;if(!_0x701f55[_0x30118d(0x18c)][_0x30118d(0x232)](_0x30118d(0x201)))return;const _0x24fb50=_0x701f55[_0x30118d(0x23a)][_0x30118d(0x268)](_0x30118d(0x1a0)),_0x21e3d3=_0x701f55[_0x30118d(0x23a)][_0x30118d(0x268)](_0x30118d(0x1cc));this[_0x30118d(0x180)](_0x24fb50,_0x30118d(0x1bb),(_0x177745,_0x254b20,_0x14285f)=>{const _0x12b3de=_0x30118d,_0x583428=this[_0x12b3de(0x293)][_0x12b3de(0x268)](_0x254b20);if(!_0x583428)return;const _0x2db403=this[_0x12b3de(0x1ea)][_0x12b3de(0x1ff)](_0x583428[_0x12b3de(0x1e2)])[_0x12b3de(0x1c4)](_0x583428[_0x12b3de(0x206)]);_0x583428[_0x12b3de(0x189)][_0x12b3de(0x2ea)](_0x16c3c0=>_0x2db403[_0x12b3de(0x182)](_0x16c3c0,_0x12b3de(0x1af))),this[_0x12b3de(0x293)][_0x12b3de(0x225)](_0x254b20),this[_0x12b3de(0x293)][_0x12b3de(0x1fa)](_0x14285f,_0x583428);}),this[_0x30118d(0x180)](_0x21e3d3,_0x30118d(0x1bb),(_0x57a14f,_0x21adb2,_0x51dbf2)=>{const _0x244d04=_0x30118d,_0x276b0c=this[_0x244d04(0x293)][_0x244d04(0x268)](_0x21adb2);if(!_0x276b0c)return;const _0x1923b7=this[_0x244d04(0x1ea)][_0x244d04(0x1ff)](_0x276b0c[_0x244d04(0x1e2)])[_0x244d04(0x1c4)](_0x276b0c[_0x244d04(0x206)]);_0x276b0c[_0x244d04(0x189)][_0x244d04(0x2ea)](_0x42a5df=>_0x1923b7[_0x244d04(0x182)](_0x42a5df,_0x244d04(0x28d))),this[_0x244d04(0x293)][_0x244d04(0x225)](_0x21adb2),this[_0x244d04(0x293)][_0x244d04(0x1fa)](_0x51dbf2,_0x276b0c);});}async[_0x1f9a5f(0x26b)](_0x147baf){const _0x26d40f=_0x1f9a5f;this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x232)](_0x26d40f(0x210))&&this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x268)](_0x26d40f(0x210))[_0x26d40f(0x1c5)](),(this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x268)](_0x22cf14)[_0x26d40f(0x255)][_0x26d40f(0x257)](_0x26d40f(0x17b)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1ed)](_0x26d40f(0x17d)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1c9)](!0x0),await this[_0x26d40f(0x2bc)]());try{await this[_0x26d40f(0x25f)][_0x26d40f(0x2df)](_0x147baf)[_0x26d40f(0x21e)](),await this[_0x26d40f(0x184)](_0x147baf),this[_0x26d40f(0x2ad)]('\x20'),await this[_0x26d40f(0x1ea)][_0x26d40f(0x1a4)](_0x147baf,this[_0x26d40f(0x241)][_0x26d40f(0x240)]),this[_0x26d40f(0x1ea)][_0x26d40f(0x249)]()&&this[_0x26d40f(0x1d8)]();}catch(_0x49abd2){this[_0x26d40f(0x2bf)][_0x26d40f(0x2e4)]({'errorMessage':_0x4c6255(this[_0x26d40f(0x190)][_0x26d40f(0x1df)],_0x26d40f(0x1ca)),'id':_0x147baf}),this[_0x26d40f(0x292)](new _0x3295b8(_0x26d40f(0x1c7),this,{'error':_0x49abd2}));}finally{this[_0x26d40f(0x2bf)][_0x26d40f(0x1a1)](),this[_0x26d40f(0x2bf)][_0x26d40f(0x1ed)](_0x26d40f(0x2ae)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1c9)](!0x1);}}async[_0x1f9a5f(0x29b)](){const _0x2b2183=_0x1f9a5f,_0x20d986=this[_0x2b2183(0x25f)][_0x2b2183(0x1f6)](this[_0x2b2183(0x27f)](),{'limit':0x1,'sortBy':_0x2b2183(0x21c)});try{const _0x30b5cd=await _0x20d986[_0x2b2183(0x254)]();return _0x30b5cd[_0x2b2183(0x2e8)]?_0x30b5cd[0x0]['id']:_0x2b2183(0x213);}catch(_0x2bd996){return this[_0x2b2183(0x2bf)][_0x2b2183(0x2e4)]({'errorMessage':_0x4c6255(this[_0x2b2183(0x190)][_0x2b2183(0x1df)],_0x2b2183(0x1ca)),'id':_0x4dab49()}),this[_0x2b2183(0x292)](new _0x3295b8(_0x2b2183(0x2aa),this,{'error':_0x2bd996})),this[_0x2b2183(0x2bf)][_0x2b2183(0x1c9)](!0x1),this[_0x2b2183(0x2bf)][_0x2b2183(0x2a1)](),null;}}[_0x1f9a5f(0x234)](_0x42de2f){const _0x1c3acd=_0x1f9a5f;this[_0x1c3acd(0x1ea)]['id']===_0x42de2f&&this[_0x1c3acd(0x184)]();}[_0x1f9a5f(0x1d8)](){const _0x6aeb55=_0x1f9a5f;this[_0x6aeb55(0x1ea)]?.[_0x6aeb55(0x2e2)](_0x4c6255(this[_0x6aeb55(0x190)][_0x6aeb55(0x1df)],_0x6aeb55(0x281)));}async[_0x1f9a5f(0x21d)](){const _0xefefe3=_0x1f9a5f,_0x20356b=this[_0xefefe3(0x241)][_0xefefe3(0x2d0)]();this[_0xefefe3(0x1ea)]?.[_0xefefe3(0x2a0)](_0x20356b),this[_0xefefe3(0x1d8)]();}[_0x1f9a5f(0x286)](){const _0x1fb620=_0x1f9a5f;this[_0x1fb620(0x1ea)]?.[_0x1fb620(0x277)]();}[_0x1f9a5f(0x172)](){const _0x2591ed=_0x1f9a5f;this[_0x2591ed(0x2bf)][_0x2591ed(0x172)]();}async[_0x1f9a5f(0x2ee)](){const _0x424411=_0x1f9a5f;await this[_0x424411(0x184)]();}async[_0x1f9a5f(0x1cb)]({message:_0x31c989,attributes:_0x1ccded}){const _0x4fbdba=_0x1f9a5f;await this[_0x4fbdba(0x261)]({'userMessage':_0x31c989,'attributes':_0x1ccded});}[_0x1f9a5f(0x27f)](){const _0x3b7b4f=_0x1f9a5f,_0x5e9dd5=this[_0x3b7b4f(0x190)][_0x3b7b4f(0x29d)][_0x3b7b4f(0x268)](_0x3b7b4f(0x19e));if(!_0x5e9dd5)throw new _0x3295b8(_0x3b7b4f(0x1ba),this);return _0x5e9dd5;}async[_0x1f9a5f(0x184)](_0x2dbb5c){const _0xda3324=_0x1f9a5f;try{this[_0xda3324(0x2bf)][_0xda3324(0x1b0)](),await this[_0xda3324(0x27d)](_0x2dbb5c);}catch(_0x5dae1d){this[_0xda3324(0x2bf)][_0xda3324(0x2e4)]({'errorMessage':_0x4c6255(this[_0xda3324(0x190)][_0xda3324(0x1df)],_0xda3324(0x175)),'id':_0x2dbb5c||_0x4dab49()}),console[_0xda3324(0x1e7)](_0x5dae1d),this[_0xda3324(0x1ea)]=void 0x0,this[_0xda3324(0x2bf)][_0xda3324(0x2a1)]();}}async[_0x1f9a5f(0x27d)](_0x573b06){const _0x26958a=_0x1f9a5f;let _0x363bd6;this[_0x26958a(0x190)][_0x26958a(0x18c)][_0x26958a(0x232)](_0x26958a(0x210))&&this[_0x26958a(0x190)][_0x26958a(0x18c)][_0x26958a(0x268)](_0x26958a(0x210))[_0x26958a(0x1c5)](),_0x573b06||!this[_0x26958a(0x1ea)]?_0x363bd6=this[_0x26958a(0x190)][_0x26958a(0x29d)][_0x26958a(0x268)](_0x26958a(0x2ac)):this[_0x26958a(0x2bf)][_0x26958a(0x27c)]&&(_0x363bd6=this[_0x26958a(0x1ea)][_0x26958a(0x246)]['id']),await this[_0x26958a(0x2bc)]();const _0x5ed865=this[_0x26958a(0x27f)](),_0x53a333=_0x573b06||_0x4dab49();this[_0x26958a(0x1ea)]=new _0x1255d0({'connector':this[_0x26958a(0x25f)],'chatModels':this[_0x26958a(0x1b3)],'selectedModelId':_0x363bd6,'conversationId':_0x53a333,'group':_0x5ed865,'getEditor':()=>_0x32eff2(this[_0x26958a(0x190)]),'isFromHistory':!!_0x573b06}),this[_0x26958a(0x1ea)][_0x26958a(0x26a)](_0x26958a(0x29c),_0x26958a(0x205))['to'](this),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1a8),(_0x438967,_0xf0fe9e)=>{const _0x7a8b82=_0x26958a;this[_0x7a8b82(0x2bf)][_0x7a8b82(0x1f8)](_0xf0fe9e),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x29a)](),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x2c4)](),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x21b)](),_0x573b06||(this[_0x7a8b82(0x2bf)][_0x7a8b82(0x20a)](),this[_0x7a8b82(0x1d8)]());}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x22a),(_0x20ce5b,_0x1db96a)=>{const _0x27ad7a=_0x26958a;this[_0x27ad7a(0x2bf)][_0x27ad7a(0x1be)](_0x1db96a[_0x27ad7a(0x1cd)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ec),(_0x501d28,_0x88a163)=>{const _0x36fb09=_0x26958a;this[_0x36fb09(0x2bf)][_0x36fb09(0x1e1)](_0x88a163);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x284),()=>{const _0x4a262e=_0x26958a,_0x12be30=this[_0x4a262e(0x2bf)][_0x4a262e(0x1f0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x4a262e(0x2bf)][_0x4a262e(0x242)](_0x12be30);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1c0),()=>{const _0x27fe49=_0x26958a,_0x368c9f=this[_0x27fe49(0x2bf)][_0x27fe49(0x1f0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x27fe49(0x2bf)][_0x27fe49(0x242)](_0x368c9f);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x2d3),(_0x49641a,_0x2a86c7)=>{const _0x4ef350=_0x26958a;this[_0x4ef350(0x2bf)][_0x4ef350(0x1b9)](_0x2a86c7,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x24c),(_0x2d17c2,_0x4206c4)=>{const _0x133a25=_0x26958a;this[_0x133a25(0x2bf)][_0x133a25(0x1b9)](_0x4206c4,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x205),()=>{const _0x4724af=_0x26958a;this[_0x4724af(0x2bf)][_0x4724af(0x2a4)]();}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x20c),async()=>{const _0x2d9038=_0x26958a;await this[_0x2d9038(0x2bf)][_0x2d9038(0x2cc)]();}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x226),(_0x11968d,_0x2c9090)=>{const _0x3641de=_0x26958a;this[_0x3641de(0x2bf)][_0x3641de(0x2cb)](_0x2c9090['id']);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x214),(_0x4adbd4,_0x1c4911,_0x1dc7d3)=>{const _0x5d26d2=_0x26958a;this[_0x5d26d2(0x2ad)](_0x1c4911,_0x1dc7d3);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x2da),(_0x190987,_0xc4ea85)=>{const _0x55c1cc=_0x26958a;_0x55c1cc(0x2c3)===_0xc4ea85[_0x55c1cc(0x289)]?this[_0x55c1cc(0x2bf)][_0x55c1cc(0x171)](_0xc4ea85):this[_0x55c1cc(0x2bf)][_0x55c1cc(0x1c1)](_0xc4ea85);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ef),async(_0xf6a70b,_0x52af79)=>{const _0x35b9df=_0x26958a;await this[_0x35b9df(0x20f)]({'reply':_0x52af79});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1d9),(_0x25bf58,{reply:_0x27ef40,index:_0x5c4f93,state:_0x4c8111})=>{const _0x154a1e=_0x26958a;this[_0x154a1e(0x2bf)][_0x154a1e(0x247)]({'id':_0x27ef40['id'],'index':_0x5c4f93,'state':_0x4c8111}),this[_0x154a1e(0x1dd)]?.[_0x154a1e(0x206)][_0x154a1e(0x1eb)](_0x27ef40['id'])&&this[_0x154a1e(0x1dd)]?.[_0x154a1e(0x237)]==_0x5c4f93&&this[_0x154a1e(0x17f)]?.[_0x154a1e(0x23c)](_0x4c8111);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x19b),(_0x58282a,_0x42f5ad)=>{const _0x51ec4f=_0x26958a;if(this[_0x51ec4f(0x2bf)][_0x51ec4f(0x278)](_0x42f5ad[_0x51ec4f(0x19f)],_0x42f5ad[_0x51ec4f(0x194)]),_0x51ec4f(0x2d4)===_0x42f5ad[_0x51ec4f(0x19f)][_0x51ec4f(0x289)]){const _0x60f089=[..._0x32eff2(this[_0x51ec4f(0x190)])[_0x51ec4f(0x26f)][_0x51ec4f(0x2d8)][_0x51ec4f(0x2d4)][_0x51ec4f(0x271)]()];this[_0x51ec4f(0x241)][_0x51ec4f(0x299)](_0x60f089,_0x51ec4f(0x267)+this[_0x51ec4f(0x1ea)]?.['id']);}}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ac),(_0x26e8a3,_0x1c1f27)=>{const _0x12adf1=_0x26958a;this[_0x12adf1(0x2bf)][_0x12adf1(0x26c)](_0x1c1f27[_0x12adf1(0x2e5)]),_0x12adf1(0x188)==_0x1c1f27[_0x12adf1(0x2e5)]&&this[_0x12adf1(0x286)](),_0x12adf1(0x2d4)===_0x1c1f27[_0x12adf1(0x289)]&&this[_0x12adf1(0x241)][_0x12adf1(0x298)](_0x12adf1(0x267)+this[_0x12adf1(0x1ea)]?.['id']);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x239),(_0x1b8269,_0xf96444)=>{const _0x182baa=_0x26958a;this[_0x182baa(0x2bf)][_0x182baa(0x2d1)](_0xf96444[_0x182baa(0x19f)][_0x182baa(0x2e5)],_0xf96444[_0x182baa(0x194)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x25d),(_0x532457,_0x263f7b)=>{const _0x1f75d6=_0x26958a;this[_0x1f75d6(0x2bf)][_0x1f75d6(0x231)](_0x263f7b[_0x1f75d6(0x236)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x290),(_0xd2749d,_0x2ec832)=>{const _0x2a83e2=_0x26958a;this[_0x2a83e2(0x2bf)][_0x2a83e2(0x1ee)](_0x2ec832[_0x2a83e2(0x1fb)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x216),(_0x3967b1,_0xc409cf)=>{const _0x3c88bc=_0x26958a;this[_0x3c88bc(0x2bf)][_0x3c88bc(0x280)](_0xc409cf[_0x3c88bc(0x2f6)],_0xc409cf[_0x3c88bc(0x2dc)],_0xc409cf[_0x3c88bc(0x212)],_0xc409cf[_0x3c88bc(0x297)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1f4),(_0x4126c1,_0x43e4cb)=>{const _0x2641a5=_0x26958a;this[_0x2641a5(0x2bf)][_0x2641a5(0x1e0)](_0x43e4cb[_0x2641a5(0x2f6)],_0x43e4cb[_0x2641a5(0x222)],_0x43e4cb[_0x2641a5(0x217)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1db),(_0x2656d2,_0x1f4c4b)=>{const _0x5ca19a=_0x26958a;this[_0x5ca19a(0x2bf)][_0x5ca19a(0x1d2)](_0x1f4c4b);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x270),async(_0x4c31da,_0x1d31c9)=>{const _0x31684c=_0x26958a,_0x4c5c9d=(await this[_0x31684c(0x1b3)][_0x31684c(0x24b)]())[_0x31684c(0x228)](_0xe9bd80=>_0xe9bd80['id']===_0x1d31c9[_0x31684c(0x246)]?.['id'])||null;this[_0x31684c(0x2bf)][_0x31684c(0x1b8)](_0x4c5c9d,_0x1d31c9[_0x31684c(0x2cf)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1e7),(_0x423ed7,{error:_0x57762a,interactionId:_0x27367b,fileName:_0x4eb6bf,url:_0x29ab0d,sourceId:_0x49fd39,sourceLabel:_0x4cf833})=>{const _0x6cb456=_0x26958a,_0x19b38d=_0x27367b?_0x27367b+':'+_0x4dab49():_0x4dab49();_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1a9))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2b4)]({'staticMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x22d)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2aa))||_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1f2))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x175)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2e3))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x259),_0x4eb6bf),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x18e))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x1b5),_0x29ab0d),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1f3))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x178)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2db))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x199)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x218))?(_0x49fd39&&this[_0x6cb456(0x2bf)][_0x6cb456(0x28f)](_0x49fd39),this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2e0),_0x4cf833||_0x6cb456(0x2dc)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x23b))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x1a5)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1a6))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2b5)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x221))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x275)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x18b))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2d9)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2ed))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x219)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x204))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x23e)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x196)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a));}),await this[_0x26958a(0x1ea)][_0x26958a(0x230)](this[_0x26958a(0x190)][_0x26958a(0x29d)][_0x26958a(0x268)](_0x26958a(0x2f5))),_0x573b06||await this[_0x26958a(0x1ea)][_0x26958a(0x251)]();}async[_0x1f9a5f(0x261)]({userMessage:_0x80f01b,attributes:_0x33b24e}){const _0x451aa4=_0x1f9a5f;if(!this[_0x451aa4(0x1ea)])throw new _0x3295b8(_0x451aa4(0x2ce));if(this[_0x451aa4(0x1ea)][_0x451aa4(0x2c9)]()){const _0x167b1c=await this[_0x451aa4(0x241)][_0x451aa4(0x1e9)]();await this[_0x451aa4(0x1ea)][_0x451aa4(0x28e)](_0x167b1c);}this[_0x451aa4(0x1ea)]['id']&&this[_0x451aa4(0x1ea)][_0x451aa4(0x1fe)]&&await this[_0x451aa4(0x1ea)][_0x451aa4(0x2b3)]({'userMessage':_0x80f01b,'attributes':_0x33b24e});}[_0x1f9a5f(0x1da)](){const _0x1e7c99=_0x1f9a5f;console[_0x1e7c99(0x1f9)](_0x1e7c99(0x209));}[_0x1f9a5f(0x186)](_0x4a779e){const _0x35853b=_0x1f9a5f;this[_0x35853b(0x2bf)][_0x35853b(0x16e)](_0x4a779e);}[_0x1f9a5f(0x292)](_0x4775a3){const _0x3882ff=_0x1f9a5f;_0x204db6(_0x4775a3[_0x3882ff(0x283)]);}[_0x1f9a5f(0x2f4)](_0x54dffc){const _0x5d4953=_0x1f9a5f;this[_0x5d4953(0x1ea)]?.[_0x5d4953(0x229)](_0x54dffc);}[_0x1f9a5f(0x1b2)](){const _0x8800a1=_0x1f9a5f;this[_0x8800a1(0x1ea)]?.[_0x8800a1(0x23f)]();}[_0x1f9a5f(0x2c1)](){const _0x7810f0=_0x1f9a5f;this[_0x7810f0(0x1ea)]?.[_0x7810f0(0x262)]();}[_0x1f9a5f(0x2ef)](_0x1d6c01){const _0x3adea1=_0x1f9a5f,[_0x2d53d5,_0x1425ed]=_0x1d6c01[_0x3adea1(0x1d7)](':'),_0x8016cb=this[_0x3adea1(0x1ea)][_0x3adea1(0x1ff)](_0x2d53d5),_0x5cafd4=_0x8016cb[_0x3adea1(0x1c4)](_0x1425ed);return{'interaction':_0x8016cb,'reply':_0x5cafd4};}[_0x1f9a5f(0x2af)](_0xf63ba9,_0x539ac2=!0x1){const _0x21b59f=_0x1f9a5f,_0x3d3b68=_0x32eff2(this[_0x21b59f(0x190)]),_0x49f0db={'target':_0x3d3b68[_0x21b59f(0x285)][_0x21b59f(0x255)][_0x21b59f(0x2a6)][_0x21b59f(0x22f)](_0x3d3b68[_0x21b59f(0x285)][_0x21b59f(0x2dd)][_0x21b59f(0x2a9)](_0xf63ba9)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x539ac2};_0x539ac2&&(_0x49f0db[_0x21b59f(0x1de)]=!0x0),_0x31f004(_0x49f0db);}[_0x1f9a5f(0x2ad)](_0x142726,_0x32126f=!0x1){const _0x3a26e2=_0x1f9a5f;this[_0x3a26e2(0x2bf)][_0x3a26e2(0x214)](_0x142726||_0x4c6255(this[_0x3a26e2(0x190)][_0x3a26e2(0x1df)],_0x3a26e2(0x24f)),_0x32126f);}async[_0x1f9a5f(0x20f)]({reply:_0xc9cac3,renderingStrategy:_0x47496e}){const _0x14ed84=_0x1f9a5f,{id:_0x28c98c,interactionId:_0x39e0e9,isDone:_0x2b6e2d,type:_0x31b276,parsedContent:_0x557eda}=_0xc9cac3,_0x1834ba=_0x39e0e9+':'+_0x28c98c;if(_0x14ed84(0x183)===_0x31b276){const _0x595578=_0xc9cac3[_0x14ed84(0x28c)]({'showDiff':this[_0x14ed84(0x2bf)][_0x14ed84(0x27b)]});await this[_0x14ed84(0x2bf)][_0x14ed84(0x1ce)]({'id':_0x1834ba,'parts':_0x595578,'renderingStrategy':_0x47496e,'isDone':_0x2b6e2d});}else _0x14ed84(0x2c3)===_0x31b276&&await this[_0x14ed84(0x2bf)][_0x14ed84(0x22c)]({'id':_0x1834ba,'parsedContent':_0x557eda,'renderingStrategy':_0x47496e,'isDone':_0x2b6e2d});_0x2b6e2d&&_0xc9cac3[_0x14ed84(0x1bf)][_0x14ed84(0x2e8)]>0x0&&this[_0x14ed84(0x2bf)][_0x14ed84(0x2a8)](_0x1834ba,_0xc9cac3[_0x14ed84(0x1bf)]);}async[_0x1f9a5f(0x2bc)](){const _0xa3da76=_0x1f9a5f,_0x1e52d8=this[_0xa3da76(0x1ea)]?.[_0xa3da76(0x29e)];_0x1e52d8&&(_0x1e52d8[_0xa3da76(0x2e6)](),this[_0xa3da76(0x2bf)][_0xa3da76(0x2f3)](_0x1e52d8));}async[_0x1f9a5f(0x2cd)](){const _0x47becb=_0x1f9a5f,_0x34c116=this[_0x47becb(0x1ea)]?.[_0x47becb(0x29e)];if(_0x34c116){for await(const _0x1d9d27 of _0x34c116[_0x47becb(0x1b4)])await this[_0x47becb(0x20f)]({'reply':_0x1d9d27,'renderingStrategy':_0x47becb(0x17d)});}}[_0x1f9a5f(0x1a3)](_0x1a08cb){const _0x466ba0=_0x1f9a5f,_0x4b36ff={'positiveCount':_0x1a08cb[_0x466ba0(0x208)][_0x466ba0(0x20d)](_0x439236=>_0x466ba0(0x28d)===_0x439236[_0x466ba0(0x173)])[_0x466ba0(0x2e8)],'totalCount':_0x1a08cb[_0x466ba0(0x208)][_0x466ba0(0x2e8)],'modificationId':_0x1a08cb['id']},_0x36400a=this[_0x466ba0(0x1ea)][_0x466ba0(0x1ff)](_0x1a08cb[_0x466ba0(0x1e2)])[_0x466ba0(0x2b8)];_0x36400a&&this[_0x466ba0(0x25f)][_0x466ba0(0x250)](this[_0x466ba0(0x1ea)]['id'],_0x36400a,_0x4b36ff);}[_0x1f9a5f(0x2b7)](_0x220243){const _0x100ad8=_0x1f9a5f;let _0xb5a87e=null,_0x11d0eb=null;this['on'](_0x100ad8(0x29c),(_0xc76613,_0x337044,_0x2aa29f)=>{const _0x3885db=_0x100ad8;_0x2aa29f['id']!==_0xb5a87e&&(_0xb5a87e=_0x2aa29f['id'],_0x11d0eb=this[_0x3885db(0x17a)](_0x2aa29f)),_0x220243(_0x337044,_0x11d0eb);});}[_0x1f9a5f(0x17a)](_0x1e7124){const _0x37ea50=_0x1f9a5f,_0x1e8506=this[_0x37ea50(0x2bf)],_0x5a58e4=()=>{const _0x286c57=_0x37ea50;_0x1e7124[_0x286c57(0x2ba)](),_0x1e7124[_0x286c57(0x295)](),_0x1e8506[_0x286c57(0x21f)]();},_0x4b355c=()=>{const _0x3a11a9=_0x37ea50;_0x1e7124[_0x3a11a9(0x220)]&&(_0x1e7124[_0x3a11a9(0x220)][_0x3a11a9(0x2ab)](),_0x1e7124[_0x3a11a9(0x220)]=void 0x0);};return{'insertTextReply':(_0x56f0a5,_0x1c72a1)=>{const _0x26278e=_0x37ea50;_0x4b355c(),_0x5a58e4();const _0x3343f9=_0x1e7124[_0x26278e(0x220)]=_0x1e7124[_0x26278e(0x25c)]({'type':_0x26278e(0x2c3),'interactionId':_0x1e7124['id'],'content':_0x56f0a5,'id':_0x1c72a1||_0x4dab49()});return _0x4b355c(),_0x3343f9;},'insertCustomElement':async(_0x315aaa,_0x3f8376)=>(_0x4b355c(),_0x5a58e4(),_0x1e8506[_0x37ea50(0x273)](_0x315aaa,_0x3f8376||_0x4dab49())),'setLoadingMessage':_0x3538d5=>{const _0x255cd9=_0x37ea50;_0x1e8506[_0x255cd9(0x242)](_0x3538d5);},'clearLoadingMessage':()=>{const _0x1d9ca4=_0x37ea50;_0x1e8506[_0x1d9ca4(0x21f)]();}};}}
23
+ const _0x1b224c=_0x45dc;(function(_0x90c844,_0x5b0b2f){const _0x422747=_0x45dc,_0xce0490=_0x90c844();while(!![]){try{const _0x3e8ae2=parseInt(_0x422747(0x21e))/0x1*(parseInt(_0x422747(0x1c8))/0x2)+-parseInt(_0x422747(0x1bf))/0x3+-parseInt(_0x422747(0x301))/0x4*(parseInt(_0x422747(0x1ae))/0x5)+parseInt(_0x422747(0x250))/0x6+-parseInt(_0x422747(0x1d0))/0x7*(-parseInt(_0x422747(0x22a))/0x8)+parseInt(_0x422747(0x2a4))/0x9*(-parseInt(_0x422747(0x2a3))/0xa)+parseInt(_0x422747(0x220))/0xb*(parseInt(_0x422747(0x297))/0xc);if(_0x3e8ae2===_0x5b0b2f)break;else _0xce0490['push'](_0xce0490['shift']());}catch(_0x4c7243){_0xce0490['push'](_0xce0490['shift']());}}}(_0x1c9e,0xe6727));import{ContextPlugin as _0x53108c,Editor as _0x221cd0}from'ckeditor5/src/core.js';function _0x1c9e(){const _0x4cb657=['_showConversationHistory','selectModel','document','createReply','setSelectedModel','findIndex','options','updateFeedItemAIReplySuggestionPartState','webSearchFinished','upsertAIChatRating','_aiConnector','replies','from','uiId','pending','areActionsDisabled','ai-chat-missing-channel-id','index','loadConversation','end','_updateReplyContent','updateResourceState','toString','marker','mapper','isModelAvailable','alignToTop','resources','model','sourcePosition','ai.models.defaultModelId','main','addFileToContext','config','reasoningFinished','_aiChatUi','streaming','ai-no-track-changes','addFeedItemAISuggestion','query','anchorId','1BxXnzc','ai.models','908358nteZDr','contextItemAdded','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','resetMessageInput','view','delete','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','contextSent','rejected','getPath','8Mbgtjr','ai-chat-context-file-too-many-pages','addContextItem','getChildren','set','data-id','getConversation','_createFromRanges','isInContext','documentContextContent','abortPromptStream','_integrateEditor','createRange','_startConversationSafely','root','cloneNode','_openBalloonFor','has','ai.chat.initialConversation','fetchConversation','messageId','mouseLeaveSuggestion','getRoot','maxOffset','selection','getDocumentData','$graveyard','resizeTabs','_aiChatBalloon','addFeedItemAIReply','setFeedItemAIReplySuggestionPartActive','change','AIChatUI','_scrollToSuggestionRange','loadSourceResources','baseVersion','_updateRatings','setLoadingMessage','5582460RQsPxd','toggleSuggestionDisplayMode','addFeedItemUserMessage','AIConnector','clearPendingContextUI','setContextItemLoading','AI_CHAT_UNABLE_TO_START_CONVERSATION','AIChatController','domConverter','aiChatBalloon','_insertSuggestion','isDisabled','showFakeVisualSelection','toggleLoadingSkeleton','close','getDocumentContext','forEach','addFeedItemError','prepareLoadingMessage','contextItemRemoved','attachToDom','isCurrentDocumentInContext','updateFeedItemAIReplySources','addFeedInteractionHeader','sources','batch','editing','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_getAIChatInteractionAPI','createPositionAt','updateContent','_registerToolDataCallback','ai-chat-conversation-start-failed','source','addFeedItemCustomElement','redo','applyOperation','data','current-document','path','afterInit','editors','ai-chat-source-resources-load-failed','removed','bind','_applyOperationsAsSuggestions','changes','getDiff','startConversation','addUrlToContext','state','start','addDocumentToContext','dialogClosed','addOperation','getAttribute','setModel','history','replyCreated','filter','getInteraction','getContentParts','_aiEditing','slice','toViewRange','_bodyCollection','requires','isCurrentDocumentInConversation','getChildAtOffset','rootName','24AcIkdZ','toggleReasoning','setConversationContext','clearLoadingMessage','children','_setIsMaximized','type','AI_BALLOON_HEADER_TITLE','replyContentUpdated','_getLastCreatedConversationId','toggleWebSearch','addSelectionToChatContext','50eSKEIN','110178ZVbmTk','howMany','interactionId','addContextOptionsChanged','contextItems','accepted','_currentPreviewedChangeGroup','getChild','focusPromptInput','removeFeedInteraction','undo','nextSibling','ai.chat.context','mouseOverSuggestion','static','isDocumentOperation','getSelectionText','interactionDestroyed','revert','done','_batchToChanges','removeSelectionFromChatContext','capabilitiesUpdated','push','_removeFromContext','sendUserMessage','scrollFeedToSuggestion','plugins','ai-chat-conversation-init-failed','ai-chat-controller-mouse-over','ai-chat-invalid-request','interactionStarted','listenTo','disableControls','ai-conversation-','addCurrentDocumentToChatContext','_getUserPresentableContentPartDocumentRange','ai-chat-context-unsupported-type','executeCustomItemCallback','find','modification','AI_CHAT_UNTITLED_CONVERSATION','getConversations','isPremiumPlugin','uploadProgressChanged','createPositionFromPath','setIsMaximized','updateCapabilities','ai-chat-controller-no-active-conversation','createConversation','updateCurrentDocumentInContext','callback','insertSuggestion','partIndex','text','finishInteraction','open','version','indexOf','webSearchStarted','clearConversationContextUI','DocumentCompare','outdated','selectedModel','AITabs','remove','setChangeGroupState','sourceResourcesLoaded','modelSelected','ai-chat-context-file-too-large','sendMessage','resetReasoningState','enableControls','handleRemovedConversation','conversationInitialized','getOperations','dislike','commands','isStarted','showChangeInText','_toggleReasoning','ai-chat-context-unsupported-file-type','Liked\x20response','_getPresentableSiblingContentPartIndex','addResourceToContext','rejectSuggestion','Disliked\x20response','previous','ai-chat-resource-load-failed','isLoading','addSelectionToContext','updateFeedItemAIReplyContent','applySuggestion','24lrVMYv','stop','log','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','init','split','load','resize','_stopLastInteraction','contextItem','addFilesToContext','resetConversationTitle','context','updateFeedItemAIReplySuggestionContent','isUploadInProgress','closeSourceResourceBalloon','AI_CHAT_CONTEXT_FILE_TOO_LARGE','indexes','map','lastCreated','like','_handleStartConversation','parse','_aiChatModels','contextItemLoadingEnded','range','resource','resizedTabs','length','addFeedItemStaticMessage','startInteraction','message','getAll','setIsUploadInProgress','detachFromDom','locale','AI_CHAT_CONTEXT_INVALID_DATA','populateSourceResourceBalloon','TrackChanges','error','createdAt','includes','delegate','ai-chat-context-invalid-data','activateTab','sourceId','Undo','getInteractionAndReplyById','_handleUIUserMessage','lastInteraction','resourceStateChanged','viewRangeToDom','AI_CHAT_ABORTED_MESSAGE','_aiChatBalloonShowDiff','sessionId','content','AIEditing','AI_CHAT_INVALID_REQUEST','1078895enMDhD','next','_flushLastInteractionUI','_rejectSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','getGroupId','uid','hasChanges','unshift','showNext','add','destroy','getFirstRange','Showing\x20conversation\x20history...','activeConversation','removeSelectionFromContext','AI_CHAT_RESOURCE_LOAD_FAILED','1127331JDjIMj','interactionFinished','setState','_toggleWebSearch','resetWebSearchState','showDiff','removeContextItem','getReply','currentReply','2627174MxHvRA','new','ai-chat-file-upload-failed','reasoningStarted','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','setFeedItemRenderingStrategy','TrackChangesEditing','get','1864933gTPndL','chat','fetchConversations','removeFromContext','startsWith','collaboration.channelId','interactionCreated','ai-request-aborted','pluginName','ai-chat-url-upload-failed','handleUserInteraction','setAddContextOptions','showPrevious','stopInteraction','ai-chat-conversation-not-found','_getDocumentRangeForReplyChanges','resourceId','node','AI_CHAT_GENERIC_ERROR','ready','_logError','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','setConversationTitle','startAutoScroll','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','replyId','addCurrentDocumentToContext','changeGroups','isOfficialPlugin','hideFakeVisualSelection','getTransformedByOperation','ai-chat-context-form-data-size-limits-exceeded','replyChangeGroupStateUpdated','_applySuggestion','toolDataReceived','AIChatBalloon','updateConversationTitle'];_0x1c9e=function(){return _0x4cb657;};return _0x1c9e();}import{BodyCollection as _0x332ecc}from'ckeditor5/src/ui.js';import{CKEditorError as _0x4ea369,logError as _0x50ac83,scrollViewportToShowTarget as _0x2cbf66,uid as _0xda9d10}from'ckeditor5/src/utils.js';import{AIConnector as _0x57254c}from'../aicore/aiconnector.js';import{AITabs as _0x32da2b}from'../aitabs/aitabs.js';import{AIChatConversation as _0x566350}from'./model/aichatconversation.js';import{getTranslation as _0xb66b1d}from'../aicore/utils/common-translations.js';import{AIModels as _0x564cec}from'../aicore/model/aimodels.js';function _0x45dc(_0x2a0bf9,_0x3e54b8){const _0x1c9e45=_0x1c9e();return _0x45dc=function(_0x45dc5e,_0x2295ae){_0x45dc5e=_0x45dc5e-0x192;let _0x2825b7=_0x1c9e45[_0x45dc5e];return _0x2825b7;},_0x45dc(_0x2a0bf9,_0x3e54b8);}import{getEditorFromContext as _0x1e8e57}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4b2a8e,DATA_ID_MODEL_ATTRIBUTE as _0x4da975}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x757b56,getOperationsFromReply as _0x426f63}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1637db,getMinimalSelection as _0x5c9d5c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x48c606,_DetachOperation as _0x4f013a}from'ckeditor5/src/engine.js';import{findOne as _0xe16d1f,getAttribute as _0x3a4759,serialize as _0x49d98f,Document as _0x4e8d41,findByAttribute as _0x4055b7}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x53108c{[_0x1b224c(0x28f)];[_0x1b224c(0x1ff)];[_0x1b224c(0x218)];[_0x1b224c(0x319)];[_0x1b224c(0x246)];[_0x1b224c(0x2b8)]=new Map();[_0x1b224c(0x2aa)]=null;[_0x1b224c(0x292)];static get[_0x1b224c(0x293)](){return[_0x57254c,_0x4b2a8e];}static get[_0x1b224c(0x1d8)](){const _0x4cb6f8=_0x1b224c;return _0x4cb6f8(0x257);}static get[_0x1b224c(0x1ec)](){return!0x0;}static get[_0x1b224c(0x2cf)](){return!0x0;}[_0x1b224c(0x306)](){const _0x52cd35=_0x1b224c;this[_0x52cd35(0x292)]=new _0x332ecc(this[_0x52cd35(0x30e)][_0x52cd35(0x197)]),this[_0x52cd35(0x292)][_0x52cd35(0x264)](),this[_0x52cd35(0x1ff)]=this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x1cf)](_0x52cd35(0x253)),this[_0x52cd35(0x218)]=this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x1cf)](_0x52cd35(0x24a)),this[_0x52cd35(0x28f)]=this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x1cf)](_0x52cd35(0x1ac)),this[_0x52cd35(0x319)]=new _0x564cec({'connector':this[_0x52cd35(0x1ff)],'config':this[_0x52cd35(0x30e)][_0x52cd35(0x216)][_0x52cd35(0x1cf)](_0x52cd35(0x21f)),'locale':this[_0x52cd35(0x30e)][_0x52cd35(0x197)]});const _0x5bded9=this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x1cf)](_0x52cd35(0x2e4));this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x281),()=>{const _0x3e279e=_0x52cd35;this[_0x3e279e(0x237)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2bd),(_0x4a518e,_0x253d9d)=>{const _0xeeffec=_0x52cd35;this[_0xeeffec(0x1a4)]({'userMessage':_0x253d9d});}),this[_0x52cd35(0x2c4)](_0x5bded9,_0x52cd35(0x31d),(_0x28d1cf,_0x3fdd8c)=>{const _0x2567ea=_0x52cd35;this[_0x2567ea(0x29c)](_0x3fdd8c);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x245),()=>{const _0x5bbdd7=_0x52cd35;_0x5bded9[_0x5bbdd7(0x309)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x234),async()=>{const _0x392d0a=_0x52cd35;await this[_0x392d0a(0x30a)](),await this[_0x392d0a(0x1b0)](),this[_0x392d0a(0x2b9)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x285),()=>{const _0x1b315a=_0x52cd35;this[_0x1b315a(0x2c7)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x215),(_0x323fca,_0x123a64)=>{const _0x2d9f77=_0x52cd35;this[_0x2d9f77(0x1bc)]?.[_0x2d9f77(0x30c)](Array[_0x2d9f77(0x201)](_0x123a64));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x282),(_0x4c3069,_0x10574b)=>{const _0x451c13=_0x52cd35;this[_0x451c13(0x1bc)]?.[_0x451c13(0x282)](_0x10574b);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2ca),(_0xbe3f8c,_0x56199f)=>{const _0x4a213c=_0x52cd35;_0x56199f[_0x4a213c(0x2d7)](this[_0x4a213c(0x30e)]);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2f8),(_0x341df3,_0x5e7ed2)=>{const _0xcfb7e2=_0x52cd35;this[_0xcfb7e2(0x1bc)]?.[_0xcfb7e2(0x2f8)](_0x5e7ed2[_0xcfb7e2(0x272)],_0x5e7ed2[_0xcfb7e2(0x31c)]);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x1c5),(_0x344079,_0x4f9fe1)=>{const _0x3fe143=_0x52cd35;this[_0x3fe143(0x2bc)](_0x4f9fe1);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x24c),(_0x480827,_0x4f152e)=>{const _0x1adb24=_0x52cd35;this[_0x1adb24(0x1bc)]?.[_0x1adb24(0x24c)](_0x4f152e[_0x1adb24(0x1a1)],_0x4f152e[_0x1adb24(0x21c)],_0x4f152e[_0x1adb24(0x1b4)]);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2a1),()=>{const _0x427703=_0x52cd35;this[_0x427703(0x1c2)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x298),()=>{const _0x572cf0=_0x52cd35;this[_0x572cf0(0x2f4)]();}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x1f6),(_0x34479c,_0x58ff12)=>{const _0x449816=_0x52cd35;this[_0x449816(0x1bc)]?.[_0x449816(0x289)](_0x58ff12);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x316),(_0x25d0b6,{replyId:_0xa5024b})=>{const _0xc87e56=_0x52cd35;console[_0xc87e56(0x303)](_0xc87e56(0x2f6),_0xa5024b);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2f0),(_0x384f25,{replyId:_0x1b2b84})=>{const _0x1e9fa5=_0x52cd35;console[_0x1e9fa5(0x303)](_0x1e9fa5(0x2fa),_0x1b2b84);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2d8),(_0x3d033c,_0x10b310)=>{const _0x547585=_0x52cd35;this[_0x547585(0x25a)](_0x10b310);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2f3),(_0x5adb90,{replyId:_0x4cdd8b,partIndex:_0xce19ec})=>{const _0x1046c6=_0x52cd35;this[_0x1046c6(0x1a9)]=this[_0x1046c6(0x218)][_0x1046c6(0x1c4)],this[_0x1046c6(0x23a)](_0x4cdd8b,_0xce19ec);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2b1),(_0x119a4f,{replyId:_0x4733e3,partIndex:_0x3cfcc5})=>{const _0x34b9ac=_0x52cd35,_0x19a781=this[_0x34b9ac(0x1df)](_0x4733e3,_0x3cfcc5);_0x19a781&&_0x34b9ac(0x244)!=_0x19a781[_0x34b9ac(0x31b)][_0x34b9ac(0x238)][_0x34b9ac(0x296)]&&this[_0x34b9ac(0x28f)][_0x34b9ac(0x25c)]([_0x19a781[_0x34b9ac(0x31b)]],_0x34b9ac(0x2c1));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x23f),()=>{const _0x110685=_0x52cd35;this[_0x110685(0x28f)][_0x110685(0x1ed)](_0x110685(0x2c1));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x300),(_0x4ec429,_0x3d5bd3)=>{const _0x66ea22=_0x52cd35;this[_0x66ea22(0x28f)][_0x66ea22(0x1ed)](_0x66ea22(0x2c1)),this[_0x66ea22(0x1f1)](_0x3d5bd3);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x251),async(_0x31523,{replyId:_0x4b417d,showDiff:_0x26038b})=>{const _0x3ccd58=_0x52cd35,{reply:_0x84e654}=this[_0x3ccd58(0x1a3)](_0x4b417d),_0x2b2d23=_0x84e654[_0x3ccd58(0x28e)]({'showDiff':_0x26038b});await this[_0x3ccd58(0x218)][_0x3ccd58(0x30f)]({'id':_0x84e654['id'],'parts':_0x2b2d23,'renderingStrategy':_0x3ccd58(0x2b2)});}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x218)],_0x52cd35(0x2f9),(_0x48b616,{replyId:_0x200271,partIndex:_0x27f8f8})=>{const _0x5e0a59=_0x52cd35;this[_0x5e0a59(0x1b1)]({'replyId':_0x200271,'partIndex':_0x27f8f8}),this[_0x5e0a59(0x28f)][_0x5e0a59(0x1ed)](_0x5e0a59(0x2c1));}),this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x23b)](_0x52cd35(0x1f3))&&(this[_0x52cd35(0x246)]=this[_0x52cd35(0x30e)][_0x52cd35(0x2bf)][_0x52cd35(0x1cf)](_0x52cd35(0x1f3)),this[_0x52cd35(0x22e)](_0x52cd35(0x1a9),!0x1),this[_0x52cd35(0x246)][_0x52cd35(0x27d)](_0x52cd35(0x1c4))['to'](this,_0x52cd35(0x1a9)),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x251),()=>{const _0x18d33d=_0x52cd35,{replyId:_0x1e257d,partIndex:_0x3c2ecc}=this[_0x18d33d(0x2aa)];this[_0x18d33d(0x1a9)]=!this[_0x18d33d(0x1a9)];const {reply:_0x44a496}=this[_0x18d33d(0x1a3)](_0x1e257d),_0x31428e=_0x44a496[_0x18d33d(0x28e)]({'showDiff':this[_0x18d33d(0x1a9)],'groupIndex':_0x3c2ecc});this[_0x18d33d(0x246)][_0x18d33d(0x26f)]({'part':_0x31428e[0x0],'renderingStrategy':_0x18d33d(0x2b2),'keepErrors':!0x0});}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x300),()=>{const _0x52153f=_0x52cd35,{replyId:_0x23dcbd,partIndex:_0x5e5675}=this[_0x52153f(0x2aa)];this[_0x52153f(0x1f1)]({'replyId':_0x23dcbd,'partIndex':_0x5e5675}),this[_0x52153f(0x246)][_0x52153f(0x1c1)](_0x52153f(0x2a9));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x2d8),()=>{const _0x13a5ce=_0x52cd35,{replyId:_0x88cbb3,partIndex:_0x4cfa0d}=this[_0x13a5ce(0x2aa)];this[_0x13a5ce(0x25a)]({'replyId':_0x88cbb3,'partIndex':_0x4cfa0d}),this[_0x13a5ce(0x246)][_0x13a5ce(0x1c1)](_0x13a5ce(0x2a9));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x2f9),()=>{const _0xd06453=_0x52cd35,{replyId:_0x45a6a5,partIndex:_0x3df4d1}=this[_0xd06453(0x2aa)];this[_0xd06453(0x1b1)]({'replyId':_0x45a6a5,'partIndex':_0x3df4d1}),this[_0xd06453(0x246)][_0xd06453(0x1c1)](_0xd06453(0x228));}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x1b7),()=>{const _0x5e3f55=_0x52cd35,{replyId:_0x51277d,partIndex:_0x4b1bbe}=this[_0x5e3f55(0x2aa)],_0x360d29=this[_0x5e3f55(0x2f7)](_0x51277d,_0x4b1bbe,_0x5e3f55(0x1af));null!==_0x360d29&&this[_0x5e3f55(0x23a)](_0x51277d,_0x360d29);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x1dc),()=>{const _0x520121=_0x52cd35,{replyId:_0x1de76f,partIndex:_0x216a8c}=this[_0x520121(0x2aa)],_0x2f46cd=this[_0x520121(0x2f7)](_0x1de76f,_0x216a8c,_0x520121(0x2fb));null!==_0x2f46cd&&this[_0x520121(0x23a)](_0x1de76f,_0x2f46cd);}),this[_0x52cd35(0x2c4)](this[_0x52cd35(0x246)],_0x52cd35(0x286),(_0x14ba6a,{id:_0x3e0da7})=>{const _0x1202d4=_0x52cd35;if(_0x1202d4(0x259)!==_0x3e0da7)return;const {replyId:_0x29829a,partIndex:_0x4e65da}=this[_0x1202d4(0x2aa)];this[_0x1202d4(0x2aa)]=null,this[_0x1202d4(0x218)][_0x1202d4(0x248)]({'id':_0x29829a,'index':_0x4e65da,'isActive':!0x1});}));}async[_0x1b224c(0x279)](){const _0x321fa9=_0x1b224c;this[_0x321fa9(0x30e)]instanceof _0x221cd0?this[_0x321fa9(0x235)](this[_0x321fa9(0x30e)]):this[_0x321fa9(0x2c4)](this[_0x321fa9(0x30e)][_0x321fa9(0x27a)],_0x321fa9(0x1b8),(_0x10b14f,_0x31ab03)=>{const _0xe7ecc1=_0x321fa9;_0x31ab03['on'](_0xe7ecc1(0x1e3),()=>{const _0x4b3832=_0xe7ecc1;this[_0x4b3832(0x235)](_0x31ab03);});});const _0x69f09a=this[_0x321fa9(0x30e)][_0x321fa9(0x216)][_0x321fa9(0x1cf)](_0x321fa9(0x23c));let _0x399459=_0x69f09a;if(_0x321fa9(0x315)!=_0x69f09a||(_0x399459=await this[_0x321fa9(0x2a0)](),_0x399459))return _0x321fa9(0x1c9)==_0x399459?this[_0x321fa9(0x237)]():this[_0x321fa9(0x207)](_0x399459);}async[_0x1b224c(0x1b9)](){const _0x30882d=_0x1b224c;return await this[_0x30882d(0x30a)](),this[_0x30882d(0x292)][_0x30882d(0x196)](),super[_0x30882d(0x1b9)]();}[_0x1b224c(0x25a)](_0x17b8bd){const _0x4404e2=_0x1b224c,_0x566192=_0x1e8e57(this[_0x4404e2(0x30e)]);if(!_0x566192[_0x4404e2(0x2bf)][_0x4404e2(0x23b)](_0x4404e2(0x19a)))throw new _0x4ea369(_0x4404e2(0x21a),null);const _0x48f17d=this[_0x4404e2(0x30e)][_0x4404e2(0x2bf)][_0x4404e2(0x1cf)](_0x4404e2(0x2e1)),{reply:_0x5ba169,interaction:_0x5d7884}=this[_0x4404e2(0x1a3)](_0x17b8bd[_0x4404e2(0x1e9)]),_0x4ee221=this[_0x4404e2(0x1df)](_0x17b8bd[_0x4404e2(0x1e9)],_0x17b8bd[_0x4404e2(0x2d9)]),_0x915d71=void 0x0!==_0x17b8bd[_0x4404e2(0x2d9)]?[_0x5ba169[_0x4404e2(0x1eb)][_0x17b8bd[_0x4404e2(0x2d9)]]]:_0x5ba169[_0x4404e2(0x1eb)][_0x4404e2(0x28c)](_0x5de54c=>_0x4404e2(0x203)==_0x5de54c[_0x4404e2(0x283)]),_0x3b9bb0=_0x915d71[_0x4404e2(0x314)](_0x3ef44c=>_0x5ba169[_0x4404e2(0x1eb)][_0x4404e2(0x2de)](_0x3ef44c));if(!_0x4ee221||_0x4404e2(0x244)==_0x4ee221[_0x4404e2(0x31b)][_0x4404e2(0x238)][_0x4404e2(0x296)])return void _0x3b9bb0[_0x4404e2(0x260)](_0x15cb8e=>_0x5ba169[_0x4404e2(0x2e6)](_0x15cb8e,_0x4404e2(0x2e2)));_0x3b9bb0[_0x4404e2(0x260)](_0x10ca9b=>_0x5ba169[_0x4404e2(0x2e6)](_0x10ca9b,_0x4404e2(0x2a9)));const _0x13f6d3=_0x426f63({'editor':_0x566192,'reply':_0x5ba169,'interaction':_0x5d7884,'groups':_0x915d71,'transform':!0x0,'documentCompare':_0x48f17d,'documentCompareOptions':{'anchor':_0x4404e2(0x214),'markDeletions':!0x0}});let _0x2c43d1;_0x4ee221&&this[_0x4404e2(0x24b)](_0x4ee221[_0x4404e2(0x31b)]),_0x566192[_0x4404e2(0x211)][_0x4404e2(0x249)](_0x359c52=>{const _0x1008d8=_0x4404e2;_0x2c43d1=_0x359c52[_0x1008d8(0x269)],_0x566192[_0x1008d8(0x2bf)][_0x1008d8(0x1cf)](_0x1008d8(0x1ce))[_0x1008d8(0x27e)](_0x13f6d3),this[_0x1008d8(0x28f)][_0x1008d8(0x1ed)](_0x1008d8(0x2c1));}),this[_0x4404e2(0x2b8)][_0x4404e2(0x22e)](_0x2c43d1,{'interactionId':_0x5d7884['id'],'replyId':_0x5ba169['id'],'indexes':_0x3b9bb0[_0x4404e2(0x290)]()}),this[_0x4404e2(0x24e)](_0x5ba169);}[_0x1b224c(0x1f1)](_0x4c20eb){const _0x3dc9bc=_0x1b224c,_0x2e40f2=_0x1e8e57(this[_0x3dc9bc(0x30e)]),_0x5c4176=this[_0x3dc9bc(0x30e)][_0x3dc9bc(0x2bf)][_0x3dc9bc(0x1cf)](_0x4b2a8e),{reply:_0xba1737,interaction:_0x432500}=this[_0x3dc9bc(0x1a3)](_0x4c20eb[_0x3dc9bc(0x1e9)]),_0x122ec9=this[_0x3dc9bc(0x1df)](_0x4c20eb[_0x3dc9bc(0x1e9)],_0x4c20eb[_0x3dc9bc(0x2d9)]),_0xca5433=void 0x0!==_0x4c20eb[_0x3dc9bc(0x2d9)]?[_0xba1737[_0x3dc9bc(0x1eb)][_0x4c20eb[_0x3dc9bc(0x2d9)]]]:_0xba1737[_0x3dc9bc(0x1eb)][_0x3dc9bc(0x28c)](_0xdd23be=>_0x3dc9bc(0x203)==_0xdd23be[_0x3dc9bc(0x283)]),_0x109b50=_0xca5433[_0x3dc9bc(0x314)](_0x56aa78=>_0xba1737[_0x3dc9bc(0x1eb)][_0x3dc9bc(0x2de)](_0x56aa78));if(!_0x122ec9||_0x3dc9bc(0x244)==_0x122ec9[_0x3dc9bc(0x31b)][_0x3dc9bc(0x238)][_0x3dc9bc(0x296)])return void _0x109b50[_0x3dc9bc(0x260)](_0x42abbe=>_0xba1737[_0x3dc9bc(0x2e6)](_0x42abbe,_0x3dc9bc(0x2e2)));_0x109b50[_0x3dc9bc(0x260)](_0x4bd78f=>_0xba1737[_0x3dc9bc(0x2e6)](_0x4bd78f,_0x3dc9bc(0x2a9)));const _0x56fc7d=_0x426f63({'editor':_0x2e40f2,'reply':_0xba1737,'interaction':_0x432500,'groups':_0xca5433,'transform':!0x0,'documentCompare':_0x5c4176,'documentCompareOptions':{'anchor':_0x3dc9bc(0x214),'markDeletions':!0x1}});let _0x2bff2d;_0x122ec9&&this[_0x3dc9bc(0x24b)](_0x122ec9[_0x3dc9bc(0x31b)]),_0x2e40f2[_0x3dc9bc(0x211)][_0x3dc9bc(0x249)](_0x3b5a43=>{const _0x2e808e=_0x3dc9bc;_0x2bff2d=_0x3b5a43[_0x2e808e(0x269)];for(const _0x5a4bf6 of _0x56fc7d)_0x5a4bf6[_0x2e808e(0x24d)]=_0x2e40f2[_0x2e808e(0x211)][_0x2e808e(0x1f7)][_0x2e808e(0x2dd)],_0x757b56(_0x2e40f2,_0x5a4bf6),_0x3b5a43[_0x2e808e(0x269)][_0x2e808e(0x287)](_0x5a4bf6),_0x2e40f2[_0x2e808e(0x211)][_0x2e808e(0x275)](_0x5a4bf6);}),this[_0x3dc9bc(0x2b8)][_0x3dc9bc(0x22e)](_0x2bff2d,{'interactionId':_0x432500['id'],'replyId':_0xba1737['id'],'indexes':_0x109b50[_0x3dc9bc(0x290)]()}),this[_0x3dc9bc(0x24e)](_0xba1737);}[_0x1b224c(0x1b1)](_0x4bb1e8){const _0x5a275e=_0x1b224c,{reply:_0xa363bf}=this[_0x5a275e(0x1a3)](_0x4bb1e8[_0x5a275e(0x1e9)]);_0xa363bf[_0x5a275e(0x2e6)](_0x4bb1e8[_0x5a275e(0x2d9)],_0x5a275e(0x228));}[_0x1b224c(0x23a)](_0x3b0389,_0x3fcc52){const _0x40fc6e=_0x1b224c;if(!this[_0x40fc6e(0x246)])return;const {reply:_0x15fa43}=this[_0x40fc6e(0x1a3)](_0x3b0389),_0xa56758=_0x15fa43[_0x40fc6e(0x28e)]({'showDiff':this[_0x40fc6e(0x1a9)]});let _0x43509c,_0x3ffb72;if(void 0x0!==_0x3fcc52?(_0x3ffb72=_0xa56758[_0x40fc6e(0x2cb)](_0x3da728=>_0x3da728[_0x40fc6e(0x206)]==_0x3fcc52),_0x43509c=_0x3ffb72?.[_0x40fc6e(0x206)]):(_0x3ffb72=_0xa56758[0x0],_0x43509c=_0x3ffb72[_0x40fc6e(0x206)]),this[_0x40fc6e(0x2aa)]?.[_0x40fc6e(0x1e9)]==_0x3b0389&&this[_0x40fc6e(0x2aa)]?.[_0x40fc6e(0x2d9)]==_0x43509c)return;const _0x341f9d=this[_0x40fc6e(0x2c8)](_0x3b0389,_0x15fa43,_0x3ffb72);if(!_0x341f9d)return void this[_0x40fc6e(0x246)][_0x40fc6e(0x25e)]();this[_0x40fc6e(0x2aa)]={'replyId':_0x3b0389,'partIndex':_0x43509c},this[_0x40fc6e(0x24b)](_0x341f9d,!0x0);const _0x3877fb=this[_0x40fc6e(0x2f7)](_0x3b0389,_0x43509c,_0x40fc6e(0x1af));this[_0x40fc6e(0x246)][_0x40fc6e(0x26f)]({'part':_0x3ffb72,'renderingStrategy':_0x40fc6e(0x2b2)}),this[_0x40fc6e(0x246)][_0x40fc6e(0x2dc)]({'index':_0x43509c,'title':_0xb66b1d(this[_0x40fc6e(0x30e)][_0x40fc6e(0x197)],_0x40fc6e(0x29e),(_0x43509c+0x1)[_0x40fc6e(0x20b)]()),'showRotator':null!==_0x3877fb,'ranges':[_0x341f9d],'areActionsDisabled':_0x15fa43[_0x40fc6e(0x204)]}),this[_0x40fc6e(0x246)][_0x40fc6e(0x1c1)](_0x40fc6e(0x203)),this[_0x40fc6e(0x218)][_0x40fc6e(0x2be)](_0x3b0389,_0x43509c),this[_0x40fc6e(0x218)][_0x40fc6e(0x248)]({'id':_0x3b0389,'index':_0x43509c,'isActive':!0x0});}[_0x1b224c(0x2f7)](_0xba6624,_0x4ce8d7,_0x3d51fd){const _0x3ff302=_0x1b224c,{reply:_0x176c6b}=this[_0x3ff302(0x1a3)](_0xba6624),_0xe8208e=_0x176c6b[_0x3ff302(0x28e)]({'showDiff':this[_0x3ff302(0x1a9)]});if(0x1==_0xe8208e[_0x3ff302(0x31e)])return null;const _0x55d788=_0xe8208e[_0x3ff302(0x1fa)](_0x3abc7c=>_0x3abc7c[_0x3ff302(0x206)]==_0x4ce8d7),_0x5bc008=_0x3ff302(0x1af)==_0x3d51fd?0x1:-0x1;let _0x5a9039=_0xe8208e['at']((_0x55d788+_0x5bc008)%_0xe8208e[_0x3ff302(0x31e)])[_0x3ff302(0x206)],_0x583bc1=_0xe8208e[_0x5a9039];for(;!this[_0x3ff302(0x2c8)](_0xba6624,_0x176c6b,_0x583bc1);){if(_0x5a9039=_0xe8208e['at']((_0x5a9039+_0x5bc008)%_0xe8208e[_0x3ff302(0x31e)])[_0x3ff302(0x206)],_0x5a9039===_0x55d788)return null;_0x583bc1=_0xe8208e[_0x5a9039];}return _0x5a9039;}[_0x1b224c(0x2c8)](_0x3e4701,_0x2caf17,_0x38c78c){const _0x5331d3=_0x1b224c,_0xb31d10=_0x2caf17[_0x5331d3(0x1eb)];if(!_0x38c78c[_0x5331d3(0x1b5)])return null;const _0x453ff1=_0xb31d10[_0x5331d3(0x2cb)](_0x383e81=>_0x383e81[_0x5331d3(0x206)]==_0x38c78c[_0x5331d3(0x206)]);if(_0x5331d3(0x203)!==_0x453ff1?.[_0x5331d3(0x283)])return null;const _0x76fc36=this[_0x5331d3(0x1df)](_0x3e4701,_0x38c78c[_0x5331d3(0x206)]);if(!_0x76fc36)return null;const {range:_0x4d6c42,currentIndex:_0xfbf2c3}=_0x76fc36;return _0x5331d3(0x244)==_0x4d6c42[_0x5331d3(0x238)][_0x5331d3(0x296)]?(_0x2caf17[_0x5331d3(0x2e6)](_0xfbf2c3,_0x5331d3(0x2e2)),null):_0x76fc36[_0x5331d3(0x31b)];}[_0x1b224c(0x1df)](_0x315a49,_0x46847f){const _0x2802c3=_0x1b224c,_0x2d23d2=_0x1e8e57(this[_0x2802c3(0x30e)]),{reply:_0x2024a9,interaction:_0xce8623}=this[_0x2802c3(0x1a3)](_0x315a49),_0x4c015c=_0x2024a9[_0x2802c3(0x1eb)][_0x2802c3(0x28c)](_0x2f7baf=>_0x2802c3(0x203)==_0x2f7baf[_0x2802c3(0x283)]),_0x3910a3=_0x4c015c[_0x2802c3(0x314)](_0x2ad6df=>_0x2024a9[_0x2802c3(0x1eb)][_0x2802c3(0x2de)](_0x2ad6df));void 0x0===_0x46847f&&(_0x46847f=_0x3910a3[0x0]);const _0x22b02c=_0x3910a3[_0x2802c3(0x2de)](_0x46847f);if(-0x1==_0x22b02c)return null;const _0x4751c2=_0x4c015c[_0x22b02c],_0x10af4c=new _0x4e8d41([]),_0x4e5c0d=new _0x4e8d41([]);for(const _0x400a69 of _0x4751c2[_0x2802c3(0x27f)])if(_0x2802c3(0x27c)!=_0x400a69[_0x2802c3(0x29d)]&&_0x4e5c0d[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x400a69[_0x2802c3(0x1e1)][_0x2802c3(0x239)](!0x0)),_0x2802c3(0x1c9)!=_0x400a69[_0x2802c3(0x29d)]){const _0x587f62=_0xe16d1f(_0x4430da=>_0x3a4759(_0x4430da,_0x2802c3(0x22f))==_0x400a69['id'],_0x2024a9[_0x2802c3(0x233)],!0x0);_0x10af4c[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x587f62[_0x2802c3(0x239)](!0x0));}if(0x0==_0x10af4c[_0x2802c3(0x29b)][_0x2802c3(0x31e)]){if(_0x4751c2[_0x2802c3(0x27f)][0x0][_0x2802c3(0x21d)]){const _0x934ef4=_0x4055b7(_0x2802c3(0x22f),_0x4751c2[_0x2802c3(0x27f)][0x0][_0x2802c3(0x21d)],_0x2024a9[_0x2802c3(0x233)]);_0x10af4c[_0x2802c3(0x29b)][_0x2802c3(0x1b6)](_0x934ef4[_0x2802c3(0x239)](!0x0)),_0x4e5c0d[_0x2802c3(0x29b)][_0x2802c3(0x1b6)](_0x934ef4[_0x2802c3(0x239)](!0x0)),_0x934ef4[_0x2802c3(0x2af)]&&(_0x10af4c[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x934ef4[_0x2802c3(0x2af)][_0x2802c3(0x239)](!0x0)),_0x4e5c0d[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x934ef4[_0x2802c3(0x2af)][_0x2802c3(0x239)](!0x0)));}else{const _0x4f8098=_0x2024a9[_0x2802c3(0x233)][_0x2802c3(0x29b)][0x0];if(!_0x4f8098)return null;_0x10af4c[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x4f8098[_0x2802c3(0x239)](!0x0)),_0x4e5c0d[_0x2802c3(0x29b)][_0x2802c3(0x2bb)](_0x4f8098[_0x2802c3(0x239)](!0x0));}}const _0xa85727=_0xce8623[_0x2802c3(0x25f)](),_0x307327=_0x2d23d2[_0x2802c3(0x276)][_0x2802c3(0x318)](_0xa85727[_0x2802c3(0x1ab)]),_0x3d76a8=_0x49d98f(_0x10af4c),_0x477898=_0x2d23d2[_0x2802c3(0x276)][_0x2802c3(0x318)](_0x3d76a8),_0x563816=_0x2d23d2[_0x2802c3(0x276)][_0x2802c3(0x318)](_0x3d76a8),_0x5e4fbf=_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x26e)](_0x477898,0x0),_0x49bb09=_0x49d98f(_0x4e5c0d),_0x48bfb0={'anchor':_0x5e4fbf,'markDeletions':!0x1},_0x1585f0=_0x2d23d2[_0x2802c3(0x2bf)][_0x2802c3(0x1cf)](_0x4b2a8e)[_0x2802c3(0x280)](_0x3d76a8,_0x49bb09,_0x48bfb0)[_0x2802c3(0x2ef)]();if(!_0x1585f0[_0x2802c3(0x31e)])return null;_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x249)](_0x44a9d9=>{const _0x46215e=_0x2802c3;for(const _0x5dc5ae of _0x1585f0)if(_0x46215e(0x2e5)==_0x5dc5ae[_0x46215e(0x29d)]){const _0x2224de=_0x5dc5ae[_0x46215e(0x212)],_0x1fe95f=_0x5dc5ae[_0x46215e(0x2a5)],_0x1bc28c=new _0x4f013a(_0x2224de,_0x1fe95f);_0x44a9d9[_0x46215e(0x269)][_0x46215e(0x287)](_0x1bc28c),_0x2d23d2[_0x46215e(0x211)][_0x46215e(0x275)](_0x1bc28c);}else _0x46215e(0x20c)!==_0x5dc5ae[_0x46215e(0x29d)]&&(_0x5dc5ae[_0x46215e(0x24d)]=null,_0x5dc5ae[_0x46215e(0x2b3)]=!0x1,_0x44a9d9[_0x46215e(0x269)][_0x46215e(0x287)](_0x5dc5ae),_0x2d23d2[_0x46215e(0x211)][_0x46215e(0x275)](_0x5dc5ae));});const _0x2eadbd=_0x5c9d5c(_0x2d23d2,_0x1585f0,_0x477898);_0x1637db(_0x2d23d2[_0x2802c3(0x211)],_0x2eadbd);const _0x14b706=_0x2eadbd[_0x2802c3(0x1ba)]()[_0x2802c3(0x284)][_0x2802c3(0x278)][_0x2802c3(0x290)](),_0x349f50=_0x2eadbd[_0x2802c3(0x1ba)]()[_0x2802c3(0x208)][_0x2802c3(0x278)][_0x2802c3(0x290)](),_0x13617d=[];let _0x2d2297=_0x477898,_0xa3e933=_0x563816;for(let _0x37b468=0x0;_0x37b468<_0x349f50[_0x2802c3(0x31e)];_0x37b468++){const _0x43b27d=_0x2d2297[_0x2802c3(0x241)]-_0x349f50[_0x37b468];_0x13617d[_0x37b468]=_0xa3e933[_0x2802c3(0x241)]-_0x43b27d,_0x2d2297=_0x2d2297[_0x2802c3(0x295)](_0x349f50[_0x37b468]),_0xa3e933=_0xa3e933[_0x2802c3(0x295)](_0x13617d[_0x37b468]);}const _0x5d1d60=_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x236)](_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x2d1)](_0x563816,_0x14b706),_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x2d1)](_0x563816,_0x13617d)),_0x3b4228=_0x563816[_0x2802c3(0x2ab)](0x0)[_0x2802c3(0x288)](_0x4da975),_0x171aba=Array[_0x2802c3(0x201)](_0x307327[_0x2802c3(0x22d)]())[_0x2802c3(0x2cb)](_0x5d10e8=>_0x5d10e8[_0x2802c3(0x288)](_0x4da975)==_0x3b4228)[_0x2802c3(0x229)](),_0x5e5917=_0x5d1d60[_0x2802c3(0x284)][_0x2802c3(0x278)][_0x2802c3(0x290)](),_0x3de4a2=_0x5d1d60[_0x2802c3(0x208)][_0x2802c3(0x278)][_0x2802c3(0x290)]();_0x5e5917[0x0]=_0x171aba[0x0]+_0x5e5917[0x0],_0x3de4a2[0x0]=_0x171aba[0x0]+_0x3de4a2[0x0];let _0x4eebea=_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x236)](_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x2d1)](_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x1f7)][_0x2802c3(0x240)](),_0x5e5917),_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x2d1)](_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x1f7)][_0x2802c3(0x240)](),_0x3de4a2));const _0x234bf2=_0x2d23d2[_0x2802c3(0x211)][_0x2802c3(0x1f7)][_0x2802c3(0x28a)][_0x2802c3(0x2ef)](_0xa85727[_0x2802c3(0x2dd)]);for(const _0xd39b22 of _0x234bf2)_0x4eebea=_0x48c606[_0x2802c3(0x231)](_0x4eebea[_0x2802c3(0x1ee)](_0xd39b22));return{'range':_0x4eebea,'currentIndex':_0x46847f};}[_0x1b224c(0x235)](_0x5a9256){const _0x2c45d0=_0x1b224c;if(!_0x5a9256[_0x2c45d0(0x2bf)][_0x2c45d0(0x23b)](_0x2c45d0(0x1a2)))return;const _0xf67fd=_0x5a9256[_0x2c45d0(0x2f1)][_0x2c45d0(0x1cf)](_0x2c45d0(0x2ae)),_0x2b0d6b=_0x5a9256[_0x2c45d0(0x2f1)][_0x2c45d0(0x1cf)](_0x2c45d0(0x274));this[_0x2c45d0(0x2c4)](_0xf67fd,_0x2c45d0(0x2b6),(_0x4f0cd9,_0x493332,_0x599f04)=>{const _0x2b9e0c=_0x2c45d0,_0xea7e27=this[_0x2b9e0c(0x2b8)][_0x2b9e0c(0x1cf)](_0x493332);if(!_0xea7e27)return;const _0x5387d3=this[_0x2b9e0c(0x1bc)][_0x2b9e0c(0x28d)](_0xea7e27[_0x2b9e0c(0x2a6)])[_0x2b9e0c(0x1c6)](_0xea7e27[_0x2b9e0c(0x1e9)]);_0xea7e27[_0x2b9e0c(0x313)][_0x2b9e0c(0x260)](_0x6c4d54=>_0x5387d3[_0x2b9e0c(0x2e6)](_0x6c4d54,_0x2b9e0c(0x203))),this[_0x2b9e0c(0x2b8)][_0x2b9e0c(0x225)](_0x493332),this[_0x2b9e0c(0x2b8)][_0x2b9e0c(0x22e)](_0x599f04,_0xea7e27);}),this[_0x2c45d0(0x2c4)](_0x2b0d6b,_0x2c45d0(0x2b6),(_0x422b79,_0x3e6a08,_0x4d5317)=>{const _0x1299fd=_0x2c45d0,_0x174d23=this[_0x1299fd(0x2b8)][_0x1299fd(0x1cf)](_0x3e6a08);if(!_0x174d23)return;const _0x27ee46=this[_0x1299fd(0x1bc)][_0x1299fd(0x28d)](_0x174d23[_0x1299fd(0x2a6)])[_0x1299fd(0x1c6)](_0x174d23[_0x1299fd(0x1e9)]);_0x174d23[_0x1299fd(0x313)][_0x1299fd(0x260)](_0x4555b2=>_0x27ee46[_0x1299fd(0x2e6)](_0x4555b2,_0x1299fd(0x2a9))),this[_0x1299fd(0x2b8)][_0x1299fd(0x225)](_0x3e6a08),this[_0x1299fd(0x2b8)][_0x1299fd(0x22e)](_0x4d5317,_0x174d23);});}async[_0x1b224c(0x207)](_0x141dd1){const _0x5cb435=_0x1b224c;this[_0x5cb435(0x30e)][_0x5cb435(0x2bf)][_0x5cb435(0x23b)](_0x5cb435(0x1f3))&&this[_0x5cb435(0x30e)][_0x5cb435(0x2bf)][_0x5cb435(0x1cf)](_0x5cb435(0x1f3))[_0x5cb435(0x25e)](),(this[_0x5cb435(0x30e)][_0x5cb435(0x2bf)][_0x5cb435(0x1cf)](_0x32da2b)[_0x5cb435(0x224)][_0x5cb435(0x1a0)](_0x5cb435(0x1d1)),this[_0x5cb435(0x218)][_0x5cb435(0x1cd)](_0x5cb435(0x2b2)),this[_0x5cb435(0x218)][_0x5cb435(0x25d)](!0x0),await this[_0x5cb435(0x30a)]());try{await this[_0x5cb435(0x1ff)][_0x5cb435(0x23d)](_0x141dd1)[_0x5cb435(0x230)](),await this[_0x5cb435(0x237)](_0x141dd1),this[_0x5cb435(0x1f4)]('\x20'),await this[_0x5cb435(0x1bc)][_0x5cb435(0x308)](_0x141dd1,this[_0x5cb435(0x28f)][_0x5cb435(0x1aa)]),this[_0x5cb435(0x1bc)][_0x5cb435(0x294)]()&&this[_0x5cb435(0x2c7)]();}catch(_0x19fb46){this[_0x5cb435(0x218)][_0x5cb435(0x261)]({'errorMessage':_0xb66b1d(this[_0x5cb435(0x30e)][_0x5cb435(0x197)],_0x5cb435(0x1e5)),'id':_0x141dd1}),this[_0x5cb435(0x1e4)](new _0x4ea369(_0x5cb435(0x1de),this,{'error':_0x19fb46}));}finally{this[_0x5cb435(0x218)][_0x5cb435(0x1e7)](),this[_0x5cb435(0x218)][_0x5cb435(0x1cd)](_0x5cb435(0x219)),this[_0x5cb435(0x218)][_0x5cb435(0x25d)](!0x1);}}async[_0x1b224c(0x2a0)](){const _0x5703b1=_0x1b224c,_0x44364e=this[_0x5703b1(0x1ff)][_0x5703b1(0x1d2)](this[_0x5703b1(0x1b3)](),{'limit':0x1,'sortBy':_0x5703b1(0x19c)});try{const _0x39f313=await _0x44364e[_0x5703b1(0x2ce)]();return _0x39f313[_0x5703b1(0x31e)]?_0x39f313[0x0]['id']:_0x5703b1(0x1c9);}catch(_0x15feeb){return this[_0x5703b1(0x218)][_0x5703b1(0x261)]({'errorMessage':_0xb66b1d(this[_0x5703b1(0x30e)][_0x5703b1(0x197)],_0x5703b1(0x1e5)),'id':_0xda9d10()}),this[_0x5703b1(0x1e4)](new _0x4ea369(_0x5703b1(0x2c0),this,{'error':_0x15feeb})),this[_0x5703b1(0x218)][_0x5703b1(0x25d)](!0x1),this[_0x5703b1(0x218)][_0x5703b1(0x2c5)](),null;}}[_0x1b224c(0x2ed)](_0x32b0be){const _0x3ab141=_0x1b224c;this[_0x3ab141(0x1bc)]['id']===_0x32b0be&&this[_0x3ab141(0x237)]();}[_0x1b224c(0x2c7)](){const _0x426679=_0x1b224c;this[_0x426679(0x1bc)]?.[_0x426679(0x1ea)](_0xb66b1d(this[_0x426679(0x30e)][_0x426679(0x197)],_0x426679(0x1b2)));}async[_0x1b224c(0x2a2)](){const _0x1e26d1=_0x1b224c,_0xbb8fdd=this[_0x1e26d1(0x28f)][_0x1e26d1(0x2b4)]();this[_0x1e26d1(0x1bc)]?.[_0x1e26d1(0x2fe)](_0xbb8fdd),this[_0x1e26d1(0x2c7)]();}[_0x1b224c(0x2b9)](){const _0x54c954=_0x1b224c;this[_0x54c954(0x1bc)]?.[_0x54c954(0x1bd)]();}[_0x1b224c(0x2ac)](){const _0x28d2b3=_0x1b224c;this[_0x28d2b3(0x218)][_0x28d2b3(0x2ac)]();}async[_0x1b224c(0x281)](){const _0x4678f3=_0x1b224c;await this[_0x4678f3(0x237)]();}async[_0x1b224c(0x2ea)]({message:_0x52ad5f,attributes:_0x46a506}){const _0x14308a=_0x1b224c;await this[_0x14308a(0x1a4)]({'userMessage':_0x52ad5f,'attributes':_0x46a506});}[_0x1b224c(0x1b3)](){const _0x1aea44=_0x1b224c,_0x3b5fed=this[_0x1aea44(0x30e)][_0x1aea44(0x216)][_0x1aea44(0x1cf)](_0x1aea44(0x1d5));if(!_0x3b5fed)throw new _0x4ea369(_0x1aea44(0x205),this);return _0x3b5fed;}async[_0x1b224c(0x237)](_0x3f9456){const _0x5935af=_0x1b224c;try{this[_0x5935af(0x218)][_0x5935af(0x2ec)](),await this[_0x5935af(0x317)](_0x3f9456);}catch(_0x85134f){this[_0x5935af(0x218)][_0x5935af(0x261)]({'errorMessage':_0xb66b1d(this[_0x5935af(0x30e)][_0x5935af(0x197)],_0x5935af(0x256)),'id':_0x3f9456||_0xda9d10()}),console[_0x5935af(0x19b)](_0x85134f),this[_0x5935af(0x1bc)]=void 0x0,this[_0x5935af(0x218)][_0x5935af(0x2c5)]();}}async[_0x1b224c(0x317)](_0xd89760){const _0x8c96d4=_0x1b224c;let _0x1eaf37;this[_0x8c96d4(0x30e)][_0x8c96d4(0x2bf)][_0x8c96d4(0x23b)](_0x8c96d4(0x1f3))&&this[_0x8c96d4(0x30e)][_0x8c96d4(0x2bf)][_0x8c96d4(0x1cf)](_0x8c96d4(0x1f3))[_0x8c96d4(0x25e)](),_0xd89760||!this[_0x8c96d4(0x1bc)]?_0x1eaf37=this[_0x8c96d4(0x30e)][_0x8c96d4(0x216)][_0x8c96d4(0x1cf)](_0x8c96d4(0x213)):this[_0x8c96d4(0x218)][_0x8c96d4(0x20e)]&&(_0x1eaf37=this[_0x8c96d4(0x1bc)][_0x8c96d4(0x2e3)]['id']),await this[_0x8c96d4(0x30a)]();const _0xf3700=this[_0x8c96d4(0x1b3)](),_0x401a12=_0xd89760||_0xda9d10();this[_0x8c96d4(0x1bc)]=new _0x566350({'connector':this[_0x8c96d4(0x1ff)],'chatModels':this[_0x8c96d4(0x319)],'selectedModelId':_0x1eaf37,'conversationId':_0x401a12,'group':_0xf3700,'getEditor':()=>_0x1e8e57(this[_0x8c96d4(0x30e)]),'isFromHistory':!!_0xd89760}),this[_0x8c96d4(0x1bc)][_0x8c96d4(0x19e)](_0x8c96d4(0x1f2),_0x8c96d4(0x2c3))['to'](this),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2ee),(_0x16edea,_0x2a2085)=>{const _0x217cfc=_0x8c96d4;this[_0x217cfc(0x218)][_0x217cfc(0x2d5)](_0x2a2085),this[_0x217cfc(0x218)][_0x217cfc(0x223)](),this[_0x217cfc(0x218)][_0x217cfc(0x254)](),this[_0x217cfc(0x218)][_0x217cfc(0x2e0)](),_0xd89760||(this[_0x217cfc(0x218)][_0x217cfc(0x30d)](),this[_0x217cfc(0x2c7)]());}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2d0),(_0x8eeafd,_0x23d845)=>{const _0xa466cf=_0x8c96d4;this[_0xa466cf(0x218)][_0xa466cf(0x195)](_0x23d845[_0xa466cf(0x310)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1d6),(_0x447007,_0x34f583)=>{const _0x7724b4=_0x8c96d4;this[_0x7724b4(0x218)][_0x7724b4(0x252)](_0x34f583);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2df),()=>{const _0x44a308=_0x8c96d4,_0x34933b=this[_0x44a308(0x218)][_0x44a308(0x262)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x44a308(0x218)][_0x44a308(0x24f)](_0x34933b);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1cb),()=>{const _0x27694b=_0x8c96d4,_0x174093=this[_0x27694b(0x218)][_0x27694b(0x262)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x27694b(0x218)][_0x27694b(0x24f)](_0x174093);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1fd),(_0x438743,_0x5df936)=>{const _0x4d6c68=_0x8c96d4;this[_0x4d6c68(0x218)][_0x4d6c68(0x267)](_0x5df936,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x217),(_0x179224,_0x2f60c7)=>{const _0x493621=_0x8c96d4;this[_0x493621(0x218)][_0x493621(0x267)](_0x2f60c7,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2c3),()=>{const _0x1ea423=_0x8c96d4;this[_0x1ea423(0x218)][_0x1ea423(0x192)]();}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1c0),async()=>{const _0x381d07=_0x8c96d4;await this[_0x381d07(0x218)][_0x381d07(0x2db)]();}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2b5),(_0x1dfa74,_0x577f2e)=>{const _0x34c3e8=_0x8c96d4;this[_0x34c3e8(0x218)][_0x34c3e8(0x2ad)](_0x577f2e['id']);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1e6),(_0x22c16a,_0x5e4205,_0x2ad953)=>{const _0x4da38f=_0x8c96d4;this[_0x4da38f(0x1f4)](_0x5e4205,_0x2ad953);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x28b),(_0x293c8d,_0x39169e)=>{const _0x21b0c3=_0x8c96d4;_0x21b0c3(0x2da)===_0x39169e[_0x21b0c3(0x29d)]?this[_0x21b0c3(0x218)][_0x21b0c3(0x247)](_0x39169e):this[_0x21b0c3(0x218)][_0x21b0c3(0x21b)](_0x39169e);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x29f),async(_0x1dd776,_0x172a57)=>{const _0x5a1a18=_0x8c96d4;await this[_0x5a1a18(0x209)]({'reply':_0x172a57});}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1f0),(_0x4e88bb,{reply:_0x3096ab,index:_0x59e531,state:_0x4700d2})=>{const _0x1c4930=_0x8c96d4;this[_0x1c4930(0x218)][_0x1c4930(0x1fc)]({'id':_0x3096ab['id'],'index':_0x59e531,'state':_0x4700d2}),this[_0x1c4930(0x2aa)]?.[_0x1c4930(0x1e9)][_0x1c4930(0x19d)](_0x3096ab['id'])&&this[_0x1c4930(0x2aa)]?.[_0x1c4930(0x2d9)]==_0x59e531&&this[_0x1c4930(0x246)]?.[_0x1c4930(0x1c1)](_0x4700d2);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x221),(_0x454ecc,_0x33658a)=>{const _0x3686b8=_0x8c96d4;if(this[_0x3686b8(0x218)][_0x3686b8(0x22c)](_0x33658a[_0x3686b8(0x30b)],_0x33658a[_0x3686b8(0x2fd)]),_0x3686b8(0x242)===_0x33658a[_0x3686b8(0x30b)][_0x3686b8(0x29d)]){const _0x19cca2=[..._0x1e8e57(this[_0x3686b8(0x30e)])[_0x3686b8(0x211)][_0x3686b8(0x1f7)][_0x3686b8(0x242)][_0x3686b8(0x304)]()];this[_0x3686b8(0x28f)][_0x3686b8(0x25c)](_0x19cca2,_0x3686b8(0x2c6)+this[_0x3686b8(0x1bc)]?.['id']);}}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x263),(_0x48f0ac,_0x249ab4)=>{const _0x708f3b=_0x8c96d4;this[_0x708f3b(0x218)][_0x708f3b(0x1c5)](_0x249ab4[_0x708f3b(0x202)]),_0x708f3b(0x277)==_0x249ab4[_0x708f3b(0x202)]&&this[_0x708f3b(0x2b9)](),_0x708f3b(0x242)===_0x249ab4[_0x708f3b(0x29d)]&&this[_0x708f3b(0x28f)][_0x708f3b(0x1ed)](_0x708f3b(0x2c6)+this[_0x708f3b(0x1bc)]?.['id']);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x31a),(_0x5f2dd0,_0xa4f9d4)=>{const _0x4c9a17=_0x8c96d4;this[_0x4c9a17(0x218)][_0x4c9a17(0x255)](_0xa4f9d4[_0x4c9a17(0x30b)][_0x4c9a17(0x202)],_0xa4f9d4[_0x4c9a17(0x2fd)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x227),(_0x3d3ef5,_0x1abf6d)=>{const _0x45dd39=_0x8c96d4;this[_0x45dd39(0x218)][_0x45dd39(0x299)](_0x1abf6d[_0x45dd39(0x2a8)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2a7),(_0x187992,_0x3a73fa)=>{const _0x5414c9=_0x8c96d4;this[_0x5414c9(0x218)][_0x5414c9(0x1db)](_0x3a73fa[_0x5414c9(0x1fb)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2e7),(_0x54a5b3,_0x401157)=>{const _0x300848=_0x8c96d4;this[_0x300848(0x218)][_0x300848(0x199)](_0x401157[_0x300848(0x1a1)],_0x401157[_0x300848(0x272)],_0x401157[_0x300848(0x210)],_0x401157[_0x300848(0x1b4)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x1a6),(_0x2aa11c,_0x4aa07e)=>{const _0x52fcd8=_0x8c96d4;this[_0x52fcd8(0x218)][_0x52fcd8(0x20a)](_0x4aa07e[_0x52fcd8(0x1a1)],_0x4aa07e[_0x52fcd8(0x1e0)],_0x4aa07e[_0x52fcd8(0x232)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2ba),(_0xd3c25f,_0x12ea92)=>{const _0x227924=_0x8c96d4;this[_0x227924(0x218)][_0x227924(0x2d3)](_0x12ea92);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x2e8),async(_0x29c4d8,_0x28026c)=>{const _0x220596=_0x8c96d4,_0x1ac3f0=(await this[_0x220596(0x319)][_0x220596(0x194)]())[_0x220596(0x2cb)](_0x9d66b4=>_0x9d66b4['id']===_0x28026c[_0x220596(0x2e3)]?.['id'])||null;this[_0x220596(0x218)][_0x220596(0x1f9)](_0x1ac3f0,_0x28026c[_0x220596(0x25b)]);}),this[_0x8c96d4(0x1bc)]['on'](_0x8c96d4(0x19b),(_0x352f67,{error:_0x4920cd,interactionId:_0x137fa5,fileName:_0x20ed83,url:_0x5355ba,sourceId:_0x1e1f13,sourceLabel:_0x7b9a61})=>{const _0x5d41c9=_0x8c96d4,_0x1ef5ee=_0x137fa5?_0x137fa5+':'+_0xda9d10():_0xda9d10();_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x1d7))?this[_0x5d41c9(0x218)][_0x5d41c9(0x31f)]({'staticMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1a8)),'id':_0x1ef5ee}):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2c0))||_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x271))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x256)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x1ca))?this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x305),_0x20ed83),'id':_0x1ef5ee}):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x1d9))?this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x26c),_0x5355ba),'id':_0x1ef5ee}):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x19f))?this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x198)),'id':_0x1ef5ee}):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2c9))?this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x26b)),'id':_0x1ef5ee}):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x27b))?(_0x1e1f13&&this[_0x5d41c9(0x218)][_0x5d41c9(0x311)](_0x1e1f13),this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1e8),_0x7b9a61||_0x5d41c9(0x272)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2fc))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1be)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2c2))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1ad)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2f5))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x226)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x2e9))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x312)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x22b))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x222)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):_0x4920cd[_0x5d41c9(0x193)][_0x5d41c9(0x1d4)](_0x5d41c9(0x1ef))?(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1cc)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd)):(this[_0x5d41c9(0x218)][_0x5d41c9(0x261)]({'errorMessage':_0xb66b1d(this[_0x5d41c9(0x30e)][_0x5d41c9(0x197)],_0x5d41c9(0x1e2)),'id':_0x1ef5ee}),this[_0x5d41c9(0x1e4)](_0x4920cd));}),await this[_0x8c96d4(0x1bc)][_0x8c96d4(0x306)](this[_0x8c96d4(0x30e)][_0x8c96d4(0x216)][_0x8c96d4(0x1cf)](_0x8c96d4(0x2b0))),_0xd89760||await this[_0x8c96d4(0x1bc)][_0x8c96d4(0x284)]();}async[_0x1b224c(0x1a4)]({userMessage:_0x2fe14d,attributes:_0x137f2f}){const _0x1e5285=_0x1b224c;if(!this[_0x1e5285(0x1bc)])throw new _0x4ea369(_0x1e5285(0x2d4));if(this[_0x1e5285(0x1bc)][_0x1e5285(0x265)]()){const _0x4e5073=await this[_0x1e5285(0x28f)][_0x1e5285(0x243)]();await this[_0x1e5285(0x1bc)][_0x1e5285(0x2d6)](_0x4e5073);}this[_0x1e5285(0x1bc)]['id']&&this[_0x1e5285(0x1bc)][_0x1e5285(0x2f2)]&&await this[_0x1e5285(0x1bc)][_0x1e5285(0x1da)]({'userMessage':_0x2fe14d,'attributes':_0x137f2f});}[_0x1b224c(0x1f5)](){const _0x381334=_0x1b224c;console[_0x381334(0x303)](_0x381334(0x1bb));}[_0x1b224c(0x29c)](_0x44dcbc){const _0x1ebe95=_0x1b224c;this[_0x1ebe95(0x218)][_0x1ebe95(0x2d2)](_0x44dcbc);}[_0x1b224c(0x1e4)](_0x506748){const _0x14d042=_0x1b224c;_0x50ac83(_0x506748[_0x14d042(0x193)]);}[_0x1b224c(0x2bc)](_0x17f88b){const _0x17c912=_0x1b224c;this[_0x17c912(0x1bc)]?.[_0x17c912(0x1d3)](_0x17f88b);}[_0x1b224c(0x1c2)](){const _0x46f08d=_0x1b224c;this[_0x46f08d(0x1bc)]?.[_0x46f08d(0x2a1)]();}[_0x1b224c(0x2f4)](){const _0x371a3e=_0x1b224c;this[_0x371a3e(0x1bc)]?.[_0x371a3e(0x298)]();}[_0x1b224c(0x1a3)](_0x2c5b08){const _0xe37e5f=_0x1b224c,[_0x14b23e,_0x342f03]=_0x2c5b08[_0xe37e5f(0x307)](':'),_0x50050a=this[_0xe37e5f(0x1bc)][_0xe37e5f(0x28d)](_0x14b23e),_0x1eebc4=_0x50050a[_0xe37e5f(0x1c6)](_0x342f03);return{'interaction':_0x50050a,'reply':_0x1eebc4};}[_0x1b224c(0x24b)](_0x415c7f,_0x51509a=!0x1){const _0x484964=_0x1b224c,_0x18e13c=_0x1e8e57(this[_0x484964(0x30e)]),_0x368040={'target':_0x18e13c[_0x484964(0x26a)][_0x484964(0x224)][_0x484964(0x258)][_0x484964(0x1a7)](_0x18e13c[_0x484964(0x26a)][_0x484964(0x20d)][_0x484964(0x291)](_0x415c7f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x51509a};_0x51509a&&(_0x368040[_0x484964(0x20f)]=!0x0),_0x2cbf66(_0x368040);}[_0x1b224c(0x1f4)](_0x2def44,_0x406bc0=!0x1){const _0x52b4e1=_0x1b224c;this[_0x52b4e1(0x218)][_0x52b4e1(0x1e6)](_0x2def44||_0xb66b1d(this[_0x52b4e1(0x30e)][_0x52b4e1(0x197)],_0x52b4e1(0x2cd)),_0x406bc0);}async[_0x1b224c(0x209)]({reply:_0x409dcd,renderingStrategy:_0x4bc79b}){const _0x4b931d=_0x1b224c,{id:_0x3b8eae,interactionId:_0x1fef84,isDone:_0x467286,type:_0x38de31,parsedContent:_0x1e11b8}=_0x409dcd,_0x37ddd1=_0x1fef84+':'+_0x3b8eae;if(_0x4b931d(0x2cc)===_0x38de31){const _0xecbbf6=_0x409dcd[_0x4b931d(0x28e)]({'showDiff':this[_0x4b931d(0x218)][_0x4b931d(0x1c4)]});await this[_0x4b931d(0x218)][_0x4b931d(0x30f)]({'id':_0x37ddd1,'parts':_0xecbbf6,'renderingStrategy':_0x4bc79b,'isDone':_0x467286});}else _0x4b931d(0x2da)===_0x38de31&&await this[_0x4b931d(0x218)][_0x4b931d(0x2ff)]({'id':_0x37ddd1,'parsedContent':_0x1e11b8,'renderingStrategy':_0x4bc79b,'isDone':_0x467286});_0x467286&&_0x409dcd[_0x4b931d(0x268)][_0x4b931d(0x31e)]>0x0&&this[_0x4b931d(0x218)][_0x4b931d(0x266)](_0x37ddd1,_0x409dcd[_0x4b931d(0x268)]);}async[_0x1b224c(0x30a)](){const _0xccdd24=_0x1b224c,_0x4f1935=this[_0xccdd24(0x1bc)]?.[_0xccdd24(0x1a5)];_0x4f1935&&(_0x4f1935[_0xccdd24(0x302)](),this[_0xccdd24(0x218)][_0xccdd24(0x1dd)](_0x4f1935));}async[_0x1b224c(0x1b0)](){const _0xda98c9=_0x1b224c,_0x3b9b6c=this[_0xda98c9(0x1bc)]?.[_0xda98c9(0x1a5)];if(_0x3b9b6c){for await(const _0x52bd9d of _0x3b9b6c[_0xda98c9(0x200)])await this[_0xda98c9(0x209)]({'reply':_0x52bd9d,'renderingStrategy':_0xda98c9(0x2b2)});}}[_0x1b224c(0x24e)](_0x430b00){const _0x1424e0=_0x1b224c,_0x2f57d8={'positiveCount':_0x430b00[_0x1424e0(0x1eb)][_0x1424e0(0x28c)](_0x5555f1=>_0x1424e0(0x2a9)===_0x5555f1[_0x1424e0(0x283)])[_0x1424e0(0x31e)],'totalCount':_0x430b00[_0x1424e0(0x1eb)][_0x1424e0(0x31e)],'modificationId':_0x430b00['id']},_0x5bdc30=this[_0x1424e0(0x1bc)][_0x1424e0(0x28d)](_0x430b00[_0x1424e0(0x2a6)])[_0x1424e0(0x23e)];_0x5bdc30&&this[_0x1424e0(0x1ff)][_0x1424e0(0x1fe)](this[_0x1424e0(0x1bc)]['id'],_0x5bdc30,_0x2f57d8);}[_0x1b224c(0x270)](_0x4063b3){const _0x205ac7=_0x1b224c;let _0x33aa66=null,_0x4b2f74=null;this['on'](_0x205ac7(0x1f2),(_0xcfce05,_0x151bd7,_0x11e6a3)=>{const _0x40fc70=_0x205ac7;_0x11e6a3['id']!==_0x33aa66&&(_0x33aa66=_0x11e6a3['id'],_0x4b2f74=this[_0x40fc70(0x26d)](_0x11e6a3)),_0x4063b3(_0x151bd7,_0x4b2f74);});}[_0x1b224c(0x26d)](_0x98f288){const _0x3ac267=_0x1b224c,_0x25ae36=this[_0x3ac267(0x218)],_0x1be892=()=>{const _0x178def=_0x3ac267;_0x98f288[_0x178def(0x1c3)](),_0x98f288[_0x178def(0x2eb)](),_0x25ae36[_0x178def(0x29a)]();},_0x4d82c0=()=>{const _0x41c869=_0x3ac267;_0x98f288[_0x41c869(0x1c7)]&&(_0x98f288[_0x41c869(0x1c7)][_0x41c869(0x2b7)](),_0x98f288[_0x41c869(0x1c7)]=void 0x0);};return{'insertTextReply':(_0x3726c8,_0x6b12c1)=>{const _0x5f3b88=_0x3ac267;_0x4d82c0(),_0x1be892();const _0x31b92a=_0x98f288[_0x5f3b88(0x1c7)]=_0x98f288[_0x5f3b88(0x1f8)]({'type':_0x5f3b88(0x2da),'interactionId':_0x98f288['id'],'content':_0x3726c8,'id':_0x6b12c1||_0xda9d10()});return _0x4d82c0(),_0x31b92a;},'insertCustomElement':async(_0x471ed9,_0x3f4149)=>(_0x4d82c0(),_0x1be892(),_0x25ae36[_0x3ac267(0x273)](_0x471ed9,_0x3f4149||_0xda9d10())),'setLoadingMessage':_0x2398d8=>{const _0x3f81c5=_0x3ac267;_0x25ae36[_0x3f81c5(0x24f)](_0x2398d8);},'clearLoadingMessage':()=>{const _0x17c5a4=_0x3ac267;_0x25ae36[_0x17c5a4(0x29a)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3728d8=_0x3399;function _0x1193(){const _0x3cd55=['3208176eSlnPJ','addTab','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai-reply','_getInputPlaceholder','then','get','toggleSuggestionDisplayMode','areActionsDisabled','toggleLoadingSkeleton','addContextItem','length','enqueue','addItem','options','AI_CHAT_HEADING','find','updateWebSources','clearLoadingMessage','setIsUploadInProgress','setModel','updateSuggestionPartState','addFeedItemStaticMessage','remove','ai.chat.context.searchInputVisibleFrom','last','isOfficialPlugin','isBusy','setLoadingMessage','setInputPlaceholder','updateCapabilities','prepareLoadingMessage','_view','setReasoning','removeFeedInteraction','interaction-header','insertSuggestion','enableControls','AITabs','isWebSearchEnabled','closeSourceResourceBalloon','feedItemRenderingStrategy','_promiseQueue','custom-element','setIsMaximized','_interactionPromiseResolver','disableModelSelector','4382391VOZZbm','ai.chat.welcomeMessage','bind','updateFeedItemAIReplySuggestionPartState','streaming','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','commands','stopInteraction','_isTrackChangesCommandValueBound','updateFeedItemAIReplySuggestionContent','populateSourceResourceBalloon','_titleAnimationInterval','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','has','chat','setFeedItemAIReplySuggestionPartActive','updateFeedInteractionHeader','showDiff','isDisabled','pluginName','config','12548168cGDrqP','availableModels','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_animateConversationTitle','setPromptInputValue','updateSuggestionItem','updateResourceState','disableControls','updateFeedItemAIReplySources','startInteraction','interactionId','ai.models.showModelSelector','queueEmptyPromise','view','clearPendingContextUI','addFeedItemUserMessage','attributes','displayedPrompt','forEach','getItemIds','setSelectedModel','user-message','hasFeedItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','plugins','label','startAutoScroll','destroy','addFeedItemCustomElement','AI_CHAT_WELCOME_MESSAGE','setAddContextOptions','stopAutoScroll','setModelList','setFeedItemRenderingStrategy','addFeedItemAISuggestion','contextItems','77DQRwBJ','clearConversationContextUI','34mwLhDI','setConversationContext','from','isPremiumPlugin','removeContextItem','isModelAvailable','createConversation','9501252nySojF','64609JvtAKP','fire','resetMessageInput','hasItem','isTrackChangesOn','value','1413EPMHLu','markItemAsDone','7XKZBGs','ai-suggestion-reply','</p>','addFeedItemAIReply','requires','ai.availableReplyActions','chatHeader','removeFeedItem','abort','conversationCreated','updateReplyItem','TrackChanges','children','context','isDone','addFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','91330sOeSyD','scrollFeedToSuggestion','capabilities','set','resetConversationTitle','4UdlhnJ','setWebSearch','isReasoningEnabled','chatFeed','isVisible','<p>','delegate','isLoading','addFeedItemError','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','clear','values','removeItem','conversation-start','setContextItemLoading','updateFeedItemAIReplyContent','4468335iTTcFg','renderingStrategy','setSuggestionPartActive','enableModelSelector','isMaximized','scrollToSuggestion','showResizeButton','markFeedItemAsDone','error-message','focusPromptInput','finishInteraction','setConversationTitle','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','filter','AIChatUI','chatControls','trackChanges','startsWith'];_0x1193=function(){return _0x3cd55;};return _0x1193();}(function(_0x3b67c7,_0x2da486){const _0x3e69fe=_0x3399,_0x1a7699=_0x3b67c7();while(!![]){try{const _0x512390=parseInt(_0x3e69fe(0x227))/0x1*(parseInt(_0x3e69fe(0x21f))/0x2)+parseInt(_0x3e69fe(0x1e3))/0x3*(-parseInt(_0x3e69fe(0x245))/0x4)+parseInt(_0x3e69fe(0x256))/0x5+parseInt(_0x3e69fe(0x226))/0x6+parseInt(_0x3e69fe(0x22f))/0x7*(-parseInt(_0x3e69fe(0x1f9))/0x8)+-parseInt(_0x3e69fe(0x22d))/0x9*(parseInt(_0x3e69fe(0x240))/0xa)+-parseInt(_0x3e69fe(0x21d))/0xb*(-parseInt(_0x3e69fe(0x269))/0xc);if(_0x512390===_0x2da486)break;else _0x1a7699['push'](_0x1a7699['shift']());}catch(_0x32f5b9){_0x1a7699['push'](_0x1a7699['shift']());}}}(_0x1193,0xf02f7));import{ContextPlugin as _0x1c42d8}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x58b960}from'ckeditor5/src/utils.js';import{AIChatView as _0x182278}from'./ui/aichatview.js';import{AITabs as _0xb9fa5a}from'../aitabs/aitabs.js';import{getTranslation as _0x5e9459}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x40b8d1}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2f7a14}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x24692f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x34c8c7}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x4c81c1}from'../aicore/utils/geteditorfromcontext.js';function _0x3399(_0x519c4a,_0x513820){const _0x1193cb=_0x1193();return _0x3399=function(_0x3399b2,_0x9bd8f2){_0x3399b2=_0x3399b2-0x1e2;let _0x1f0776=_0x1193cb[_0x3399b2];return _0x1f0776;},_0x3399(_0x519c4a,_0x513820);}import{AI_REPLY_ACTIONS as _0xaa8d62}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1c42d8{static get[_0x3728d8(0x233)](){return[_0xb9fa5a];}[_0x3728d8(0x289)];static get[_0x3728d8(0x1f7)](){const _0x570641=_0x3728d8;return _0x570641(0x265);}static get[_0x3728d8(0x283)](){return!0x0;}static get[_0x3728d8(0x222)](){return!0x0;}[_0x3728d8(0x292)]=_0x3728d8(0x1e7);[_0x3728d8(0x1f5)]=!0x0;[_0x3728d8(0x293)];[_0x3728d8(0x296)];[_0x3728d8(0x1ee)]=void 0x0;[_0x3728d8(0x1eb)]=!0x1;constructor(_0x379964){const _0x452c96=_0x3728d8;super(_0x379964);const _0x360218=this[_0x452c96(0x23c)][_0x452c96(0x211)][_0x452c96(0x26f)](_0x452c96(0x28f));this[_0x452c96(0x243)](_0x452c96(0x284),!0x1),this[_0x452c96(0x293)]=new _0x24692f(),this[_0x452c96(0x289)]=new _0x182278(this[_0x452c96(0x23c)][_0x452c96(0x24e)],{'showResizeButton':_0x360218[_0x452c96(0x25c)],'contextResourcesSearchInputVisibleFrom':this[_0x452c96(0x23c)][_0x452c96(0x1f8)][_0x452c96(0x26f)](_0x452c96(0x281))}),this[_0x452c96(0x289)][_0x452c96(0x24b)](..._0x34c8c7)['to'](this),this[_0x452c96(0x289)]['on'](_0x452c96(0x270),(_0x393101,{showDiff:_0x536b89})=>{const _0x273d43=_0x452c96;this[_0x273d43(0x1f5)]=_0x536b89;}),_0x360218[_0x452c96(0x206)][_0x452c96(0x26a)]({'id':_0x452c96(0x1f2),'buttonLabel':_0x5e9459(this[_0x452c96(0x23c)][_0x452c96(0x24e)],_0x452c96(0x278)),'buttonIcon':_0x40b8d1,'order':0x0,'content':this[_0x452c96(0x289)]}),this[_0x452c96(0x289)][_0x452c96(0x266)][_0x452c96(0x1e5)](_0x452c96(0x24c))['to'](this,_0x452c96(0x284),_0x23f1d2=>_0x23f1d2),this[_0x452c96(0x289)][_0x452c96(0x248)][_0x452c96(0x1e5)](_0x452c96(0x262))['to'](this,_0x452c96(0x284),_0x15e418=>_0x15e418),this[_0x452c96(0x289)][_0x452c96(0x266)][_0x452c96(0x286)](this[_0x452c96(0x26d)]()),this[_0x452c96(0x1e5)](_0x452c96(0x224))['to'](this[_0x452c96(0x289)][_0x452c96(0x266)],_0x452c96(0x224));}[_0x3728d8(0x214)](){const _0x5030ca=_0x3728d8;super[_0x5030ca(0x214)](),this[_0x5030ca(0x1ee)]&&clearInterval(this[_0x5030ca(0x1ee)]);}[_0x3728d8(0x225)](_0x178e61){const _0x2da8cc=_0x3728d8,_0x194e59=this[_0x2da8cc(0x23c)][_0x2da8cc(0x1f8)][_0x2da8cc(0x26f)](_0x2da8cc(0x1e4))??_0x5e9459(this[_0x2da8cc(0x23c)][_0x2da8cc(0x24e)],_0x2da8cc(0x216));this[_0x2da8cc(0x289)][_0x2da8cc(0x248)][_0x2da8cc(0x250)](),this[_0x2da8cc(0x289)][_0x2da8cc(0x266)][_0x2da8cc(0x259)](),this[_0x2da8cc(0x289)][_0x2da8cc(0x266)][_0x2da8cc(0x219)](_0x178e61[_0x2da8cc(0x1fa)],!this[_0x2da8cc(0x23c)][_0x2da8cc(0x1f8)][_0x2da8cc(0x26f)](_0x2da8cc(0x204))),this[_0x2da8cc(0x27f)]({'id':_0x2da8cc(0x253),'staticMessage':_0x194e59}),this[_0x2da8cc(0x228)](_0x2da8cc(0x238));}[_0x3728d8(0x27f)]({id:_0x350251,staticMessage:_0x3dead5}){const _0xf13a84=_0x3728d8;this[_0xf13a84(0x289)][_0xf13a84(0x248)][_0xf13a84(0x276)](_0xf13a84(0x26c),{'id':_0x350251,'initialContent':_0xf13a84(0x24a)+_0x3dead5+_0xf13a84(0x231)});}[_0x3728d8(0x208)](_0x31277f){const _0x170ab5=_0x3728d8,_0x219278=_0x31277f[_0x170ab5(0x209)]?.[_0x170ab5(0x20a)]||_0x31277f[_0x170ab5(0x1ef)];this[_0x170ab5(0x289)][_0x170ab5(0x248)][_0x170ab5(0x276)](_0x170ab5(0x20e),{'contextItems':Array[_0x170ab5(0x221)](_0x31277f[_0x170ab5(0x21c)][_0x170ab5(0x251)]()),'initialContent':_0x170ab5(0x24a)+_0x219278+_0x170ab5(0x231),'id':_0x31277f['id']});}[_0x3728d8(0x24d)]({errorMessage:_0x2dacd2,id:_0x2a992d}){const _0x3f639e=_0x3728d8;this[_0x3f639e(0x289)][_0x3f639e(0x248)][_0x3f639e(0x276)](_0x3f639e(0x25e),{'initialContent':_0x3f639e(0x24a)+_0x2dacd2+_0x3f639e(0x231),'id':_0x2a992d});}[_0x3728d8(0x232)](_0x369f21){const _0x396151=_0x3728d8;return this[_0x396151(0x293)][_0x396151(0x275)](async()=>{const _0x164b38=_0x396151;this[_0x164b38(0x289)][_0x164b38(0x248)][_0x164b38(0x276)](_0x164b38(0x26c),{'id':_0x369f21[_0x164b38(0x203)]+':'+_0x369f21['id']}),this[_0x164b38(0x27b)]();});}async[_0x3728d8(0x21b)](_0x285688){const _0x3df035=_0x3728d8,_0x15e4fb=_0x4c81c1(this[_0x3df035(0x23c)]);let _0x39405d=_0x15e4fb[_0x3df035(0x1f8)][_0x3df035(0x26f)](_0x3df035(0x234))||[..._0xaa8d62];if(_0x15e4fb[_0x3df035(0x211)][_0x3df035(0x1f1)](_0x3df035(0x23a))){if(!this[_0x3df035(0x1eb)]){this[_0x3df035(0x1eb)]=!0x0;const _0x5b2d42=_0x15e4fb[_0x3df035(0x1e9)][_0x3df035(0x26f)](_0x3df035(0x267));this[_0x3df035(0x289)][_0x3df035(0x248)][_0x3df035(0x1e5)](_0x3df035(0x22b))['to'](_0x5b2d42,_0x3df035(0x22c));}}else _0x39405d=_0x39405d[_0x3df035(0x264)](_0x4d913a=>_0x3df035(0x28d)!=_0x4d913a);return this[_0x3df035(0x293)][_0x3df035(0x275)](async()=>{const _0x37f9ed=_0x3df035;this[_0x37f9ed(0x289)][_0x37f9ed(0x248)][_0x37f9ed(0x276)](_0x37f9ed(0x230),{'id':_0x285688[_0x37f9ed(0x203)]+':'+_0x285688['id'],'areActionsDisabled':_0x285688[_0x37f9ed(0x271)],'showDiff':this[_0x37f9ed(0x1f5)],'availableActions':_0x39405d}),this[_0x37f9ed(0x27b)]();});}[_0x3728d8(0x23e)](_0x481047,_0x1cda04){const _0x757e69=_0x3728d8,_0x22fd09=this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x23b)][_0x757e69(0x282)];if(_0x22fd09 instanceof _0x2f7a14)return this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x23b)][_0x757e69(0x280)](_0x22fd09),void this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x276)](_0x757e69(0x28c),{'id':_0x481047['id'],'capabilities':{'isWebSearchEnabled':_0x22fd09[_0x757e69(0x242)][_0x757e69(0x290)]||_0x1cda04[_0x757e69(0x290)],'isReasoningEnabled':_0x22fd09[_0x757e69(0x242)][_0x757e69(0x247)]||_0x1cda04[_0x757e69(0x247)]}});this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x276)](_0x757e69(0x28c),{'id':_0x481047['id'],'capabilities':_0x1cda04});}async[_0x3728d8(0x215)](_0xc4820d,_0x261f65){const _0x356ef1=_0x3728d8;let _0x278677;return await this[_0x356ef1(0x293)][_0x356ef1(0x275)](async()=>{const _0x5d4998=_0x356ef1;_0x278677=this[_0x5d4998(0x289)][_0x5d4998(0x248)][_0x5d4998(0x276)](_0x5d4998(0x294),{'content':_0xc4820d,'id':_0x261f65});}),_0x278677;}[_0x3728d8(0x236)](_0x10efa8){const _0x3736ed=_0x3728d8;this[_0x3736ed(0x289)][_0x3736ed(0x248)][_0x3736ed(0x252)](_0x10efa8);}[_0x3728d8(0x20f)](_0x56c2e1){const _0x246e4d=_0x3728d8;return this[_0x246e4d(0x289)][_0x246e4d(0x248)][_0x246e4d(0x22a)](_0x56c2e1);}[_0x3728d8(0x1f4)](_0x2329f9){const _0x5c7d25=_0x3728d8,_0xf363d7=this[_0x5c7d25(0x289)][_0x5c7d25(0x248)][_0x5c7d25(0x23b)][_0x5c7d25(0x279)](_0x3141dc=>_0x3141dc[_0x5c7d25(0x277)]['id']==_0x2329f9['id']&&_0x3141dc instanceof _0x2f7a14);_0xf363d7&&_0xf363d7[_0x5c7d25(0x243)](_0x5c7d25(0x249),_0x2329f9[_0x5c7d25(0x249)]);}async[_0x3728d8(0x255)](_0x2c138c){const _0x2496d7=_0x3728d8,_0x282886=_0x2c138c[_0x2496d7(0x257)]||this[_0x2496d7(0x292)];return this[_0x2496d7(0x293)][_0x2496d7(0x275)](async _0x5d50bc=>{const _0x373b88=_0x2496d7;await this[_0x373b88(0x289)][_0x373b88(0x248)][_0x373b88(0x239)]({..._0x2c138c,'abortSignal':_0x5d50bc,'renderingStrategy':_0x282886}),_0x2c138c[_0x373b88(0x23d)]&&this[_0x373b88(0x25d)](_0x2c138c['id']);});}[_0x3728d8(0x201)](_0x56bb67,_0x5760e7){const _0xd76dc1=_0x3728d8;this[_0xd76dc1(0x289)][_0xd76dc1(0x248)][_0xd76dc1(0x27a)](_0x56bb67,_0x5760e7);}async[_0x3728d8(0x1ec)](_0x45b617){const _0x3ce97c=_0x3728d8,_0x1cbef6=_0x45b617[_0x3ce97c(0x257)]||this[_0x3ce97c(0x292)];return this[_0x3ce97c(0x293)][_0x3ce97c(0x275)](async _0x5a1e0e=>{const _0x3830dc=_0x3ce97c;await this[_0x3830dc(0x289)][_0x3830dc(0x248)][_0x3830dc(0x1fe)]({..._0x45b617,'abortSignal':_0x5a1e0e,'renderingStrategy':_0x1cbef6}),_0x45b617[_0x3830dc(0x23d)]&&this[_0x3830dc(0x25d)](_0x45b617['id']);});}[_0x3728d8(0x1e6)](_0x22403a){const _0x5a49f5=_0x3728d8;this[_0x5a49f5(0x289)][_0x5a49f5(0x248)][_0x5a49f5(0x27e)](_0x22403a);}[_0x3728d8(0x1f3)](_0x10741b){const _0xe71a7f=_0x3728d8;this[_0xe71a7f(0x289)][_0xe71a7f(0x248)][_0xe71a7f(0x258)](_0x10741b);}[_0x3728d8(0x25d)](_0x591ba4){const _0x45da84=_0x3728d8;this[_0x45da84(0x289)][_0x45da84(0x248)][_0x45da84(0x22e)](_0x591ba4);}[_0x3728d8(0x28b)](_0x3af693){const _0x663df8=_0x3728d8;this[_0x663df8(0x289)][_0x663df8(0x248)][_0x663df8(0x20c)]()[_0x663df8(0x264)](_0x47c72b=>_0x47c72b[_0x663df8(0x268)](_0x3af693))[_0x663df8(0x20b)](_0x5f4eb7=>this[_0x663df8(0x289)][_0x663df8(0x248)][_0x663df8(0x252)](_0x5f4eb7));}[_0x3728d8(0x202)](){const _0x1c80d3=_0x3728d8,_0x40ba13=this[_0x1c80d3(0x288)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1c80d3(0x285)](_0x40ba13),this[_0x1c80d3(0x289)][_0x1c80d3(0x266)][_0x1c80d3(0x1e2)](!this[_0x1c80d3(0x23c)][_0x1c80d3(0x1f8)][_0x1c80d3(0x26f)](_0x1c80d3(0x204))),this[_0x1c80d3(0x284)]=!0x0,this[_0x1c80d3(0x289)][_0x1c80d3(0x248)][_0x1c80d3(0x213)]();}[_0x3728d8(0x1ea)](_0x240e5a){const _0xea18fe=_0x3728d8;this[_0xea18fe(0x293)][_0xea18fe(0x237)](),this[_0xea18fe(0x289)][_0xea18fe(0x248)][_0xea18fe(0x20c)]()[_0xea18fe(0x264)](_0x488151=>_0x488151[_0xea18fe(0x268)](_0x240e5a['id']))[_0xea18fe(0x20b)](_0x45927c=>this[_0xea18fe(0x25d)](_0x45927c)),this[_0xea18fe(0x284)]=!0x1,this[_0xea18fe(0x289)][_0xea18fe(0x248)][_0xea18fe(0x218)]();}async[_0x3728d8(0x260)](){const _0x4e8903=_0x3728d8;return this[_0x4e8903(0x293)][_0x4e8903(0x205)][_0x4e8903(0x26e)](()=>{const _0x13154d=_0x4e8903;this[_0x13154d(0x284)]=!0x1,this[_0x13154d(0x289)][_0x13154d(0x248)][_0x13154d(0x218)]();});}[_0x3728d8(0x273)](_0x30f05e,_0x2fbccb){const _0x172074=_0x3728d8;this[_0x172074(0x289)][_0x172074(0x266)][_0x172074(0x273)](_0x30f05e,_0x2fbccb);}[_0x3728d8(0x223)](_0x20ebb2){const _0x114ab0=_0x3728d8;this[_0x114ab0(0x289)][_0x114ab0(0x266)][_0x114ab0(0x223)](_0x20ebb2);}[_0x3728d8(0x254)](_0x4a835e,_0x448041){const _0x53ab95=_0x3728d8;this[_0x53ab95(0x289)][_0x53ab95(0x266)][_0x53ab95(0x254)](_0x4a835e,_0x448041);}[_0x3728d8(0x27c)](_0xad67f3){const _0xb434da=_0x3728d8;this[_0xb434da(0x289)][_0xb434da(0x266)][_0xb434da(0x27c)](_0xad67f3);}[_0x3728d8(0x220)](_0x1b4b16){const _0x4172ab=_0x3728d8;this[_0x4172ab(0x289)][_0x4172ab(0x266)][_0x4172ab(0x220)](_0x1b4b16);}[_0x3728d8(0x207)](){const _0x437891=_0x3728d8;this[_0x437891(0x289)][_0x437891(0x266)][_0x437891(0x207)]();}[_0x3728d8(0x21e)](){const _0x5b4f87=_0x3728d8;this[_0x5b4f87(0x289)][_0x5b4f87(0x266)][_0x5b4f87(0x21e)]();}[_0x3728d8(0x1ff)](_0x4f9191,_0x16326a,_0xe4136b){const _0x55db6e=_0x3728d8;this[_0x55db6e(0x289)][_0x55db6e(0x266)][_0x55db6e(0x1ff)](_0x4f9191,_0x16326a,_0xe4136b);}[_0x3728d8(0x229)](){const _0x842752=_0x3728d8;this[_0x842752(0x289)][_0x842752(0x266)][_0x842752(0x229)](),this[_0x842752(0x289)][_0x842752(0x266)][_0x842752(0x286)](this[_0x842752(0x26d)]());}[_0x3728d8(0x217)](_0x229d32){const _0x373cf5=_0x3728d8;this[_0x373cf5(0x289)][_0x373cf5(0x266)][_0x373cf5(0x217)](_0x229d32);}[_0x3728d8(0x287)](_0x476df7){const _0x5975b6=_0x3728d8;this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x246)](_0x476df7[_0x5975b6(0x290)]),this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x28a)](_0x476df7[_0x5975b6(0x247)]),this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x286)](this[_0x5975b6(0x26d)](_0x476df7));}[_0x3728d8(0x20d)](_0x26639b,_0x3e5d5b){const _0x6e147d=_0x3728d8;this[_0x6e147d(0x289)][_0x6e147d(0x266)][_0x6e147d(0x27d)](_0x26639b),_0x3e5d5b&&this[_0x6e147d(0x289)][_0x6e147d(0x266)][_0x6e147d(0x1e2)](!0x1);}[_0x3728d8(0x21a)](_0x18d590){const _0x4ef265=_0x3728d8;this[_0x4ef265(0x292)]=_0x18d590;}[_0x3728d8(0x272)](_0x194565){const _0x3886e6=_0x3728d8;this[_0x3886e6(0x289)][_0x3886e6(0x248)][_0x3886e6(0x272)](_0x194565);}[_0x3728d8(0x244)](){const _0x428598=_0x3728d8;this[_0x428598(0x261)](_0x5e9459(this[_0x428598(0x23c)][_0x428598(0x24e)],_0x428598(0x278)));}[_0x3728d8(0x261)](_0x11d2e5,_0x406f9d=!0x1){const _0x339d16=_0x3728d8;if(_0x406f9d&&!_0x58b960()&&_0x11d2e5[_0x339d16(0x274)])return this[_0x339d16(0x289)][_0x339d16(0x235)][_0x339d16(0x212)]='',void this[_0x339d16(0x1fc)](_0x11d2e5);this[_0x339d16(0x289)][_0x339d16(0x235)][_0x339d16(0x212)]=_0x11d2e5;}[_0x3728d8(0x285)](_0xc3e82){const _0x3d2df0=_0x3728d8;this[_0x3d2df0(0x289)][_0x3d2df0(0x248)][_0x3d2df0(0x285)](_0xc3e82);}[_0x3728d8(0x27b)](){const _0x1dec5d=_0x3728d8;this[_0x1dec5d(0x289)][_0x1dec5d(0x248)][_0x1dec5d(0x285)]('');}[_0x3728d8(0x1fc)](_0x2cec43){const _0x5e929c=_0x3728d8;let _0xd1354c=0x0;clearInterval(this[_0x5e929c(0x1ee)]),this[_0x5e929c(0x1ee)]=setInterval(()=>{const _0x16f0b6=_0x5e929c;this[_0x16f0b6(0x289)][_0x16f0b6(0x235)][_0x16f0b6(0x212)]=this[_0x16f0b6(0x289)][_0x16f0b6(0x235)][_0x16f0b6(0x212)]+_0x2cec43[_0xd1354c],_0xd1354c++,_0xd1354c===_0x2cec43[_0x16f0b6(0x274)]&&clearInterval(this[_0x16f0b6(0x1ee)]);},0x1e);}[_0x3728d8(0x295)](_0x5a93e5){const _0x59ab06=_0x3728d8;this[_0x59ab06(0x289)][_0x59ab06(0x235)][_0x59ab06(0x25a)]=_0x5a93e5;}[_0x3728d8(0x288)](_0x379ab8){const _0x270e18=_0x3728d8;return _0x379ab8[_0x270e18(0x290)]&&_0x379ab8[_0x270e18(0x247)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x210)):_0x379ab8[_0x270e18(0x290)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x1f0)):_0x379ab8[_0x270e18(0x247)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x263)):_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x1fb));}[_0x3728d8(0x26d)](_0x155b1e){const _0x1aeed6=_0x3728d8;return _0x155b1e?_0x155b1e[_0x1aeed6(0x290)]&&_0x155b1e[_0x1aeed6(0x247)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x1e8)):_0x155b1e[_0x1aeed6(0x290)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x23f)):_0x155b1e[_0x1aeed6(0x247)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x24f)):_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x26b)):_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x26b));}[_0x3728d8(0x1ed)](_0x18e183,_0x461a79,_0x4a9f2f,_0x2c3c1a){const _0x139cdf=_0x3728d8;this[_0x139cdf(0x289)][_0x139cdf(0x1ed)](_0x18e183,_0x461a79,_0x4a9f2f,_0x2c3c1a);}[_0x3728d8(0x291)](_0x47d2a9){const _0x57723b=_0x3728d8;this[_0x57723b(0x289)][_0x57723b(0x291)](_0x47d2a9);}[_0x3728d8(0x1fd)](_0x32adcc){const _0x58eb4c=_0x3728d8;this[_0x58eb4c(0x289)][_0x58eb4c(0x266)][_0x58eb4c(0x1fd)](_0x32adcc);}[_0x3728d8(0x25f)](_0x4c0d89=!0x1){const _0x28b4cf=_0x3728d8;this[_0x28b4cf(0x289)][_0x28b4cf(0x266)][_0x28b4cf(0x25f)](_0x4c0d89);}[_0x3728d8(0x241)](_0x4b90db,_0x4024ec){const _0x6f23cc=_0x3728d8;this[_0x6f23cc(0x289)][_0x6f23cc(0x248)][_0x6f23cc(0x25b)](_0x4b90db,_0x4024ec);}[_0x3728d8(0x213)](){const _0x4dd254=_0x3728d8;this[_0x4dd254(0x289)][_0x4dd254(0x248)][_0x4dd254(0x213)]();}[_0x3728d8(0x200)](){const _0xf6dd2d=_0x3728d8;this[_0xf6dd2d(0x289)][_0xf6dd2d(0x266)][_0xf6dd2d(0x1f6)]=!0x0;}[_0x3728d8(0x28e)](){const _0x57702b=_0x3728d8;this[_0x57702b(0x289)][_0x57702b(0x266)][_0x57702b(0x1f6)]=!0x1;}}
23
+ const _0x429f0e=_0x15ec;(function(_0x418c73,_0x3fe44f){const _0xeb643d=_0x15ec,_0x2e1954=_0x418c73();while(!![]){try{const _0x4fd7a4=parseInt(_0xeb643d(0x191))/0x1*(parseInt(_0xeb643d(0x142))/0x2)+parseInt(_0xeb643d(0x181))/0x3+-parseInt(_0xeb643d(0x132))/0x4*(-parseInt(_0xeb643d(0x10b))/0x5)+-parseInt(_0xeb643d(0x177))/0x6+parseInt(_0xeb643d(0x166))/0x7+parseInt(_0xeb643d(0x101))/0x8+parseInt(_0xeb643d(0x17d))/0x9*(-parseInt(_0xeb643d(0x11b))/0xa);if(_0x4fd7a4===_0x3fe44f)break;else _0x2e1954['push'](_0x2e1954['shift']());}catch(_0xf20783){_0x2e1954['push'](_0x2e1954['shift']());}}}(_0x562b,0xb08c6));import{ContextPlugin as _0x516f0f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4b1689}from'ckeditor5/src/utils.js';import{escape as _0x1ef9b2}from'es-toolkit/compat';import{AIChatView as _0x5c71d6}from'./ui/aichatview.js';import{AITabs as _0x21f39f}from'../aitabs/aitabs.js';import{getTranslation as _0x3e7a95}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1b4194}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2aca73}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x15ec(_0x358ce6,_0x72dc45){const _0x562bcb=_0x562b();return _0x15ec=function(_0x15ecab,_0x5c81ea){_0x15ecab=_0x15ecab-0xfc;let _0x32e3f5=_0x562bcb[_0x15ecab];return _0x32e3f5;},_0x15ec(_0x358ce6,_0x72dc45);}function _0x562b(){const _0x17bfad=['isReasoningEnabled','stopAutoScroll','clearPendingContextUI','isPremiumPlugin','chat','AITabs','value','1437425RBlZsf','isBusy','set','setConversationContext','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setSelectedModel','closeSourceResourceBalloon','markFeedItemAsDone','setInputPlaceholder','values','find','addTab','attributes','TrackChanges','abort','isVisible','28590nkOEDQ','removeContextItem','config','scrollFeedToSuggestion','updateSuggestionItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setModelList','chatControls','setFeedItemAIReplySuggestionPartActive','addFeedItemUserMessage','ai-suggestion-reply','disableModelSelector','finishInteraction','addItem','queueEmptyPromise','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','remove','setContextItemLoading','prepareLoadingMessage','updateResourceState','isDone','commands','populateSourceResourceBalloon','20GwpYAo','ai.chat.welcomeMessage','view','updateWebSources','chatFeed','conversationCreated','showDiff','setWebSearch','startAutoScroll','plugins','children','last','bind','capabilities','resetConversationTitle','updateFeedInteractionHeader','4xTSAYU','interaction-header','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','addFeedItemStaticMessage','interactionId','addFeedItemError','updateReplyItem','updateFeedItemAIReplySuggestionPartState','conversation-start','user-message','setPromptInputValue','updateFeedItemAIReplySuggestionContent','clearLoadingMessage','toggleLoadingSkeleton','addFeedItemAISuggestion','delegate','destroy','markItemAsDone','custom-element','createConversation','ai.models.showModelSelector','displayedPrompt','userMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','<p>','showResizeButton','updateFeedItemAIReplyContent','chatHeader','enableModelSelector','feedItemRenderingStrategy','setConversationTitle','get','filter','_getInputPlaceholder','locale','9395589EUsKgF','startsWith','setLoadingMessage','_isTrackChangesCommandValueBound','areActionsDisabled','label','renderingStrategy','clear','isLoading','length','removeFeedInteraction','contextItems','clearConversationContextUI','toggleSuggestionDisplayMode','isDisabled','stopInteraction','setIsUploadInProgress','7655556niQhlO','removeFeedItem','isOfficialPlugin','_animateConversationTitle','AI_CHAT_HEADING','hasFeedItem','9054rOTenO','error-message','hasItem','_view','1773138WCHioh','enableControls','forEach','then','scrollToSuggestion','_promiseQueue','setModel','removeItem','fire','disableControls','isModelAvailable','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setReasoning','isMaximized','pluginName','ai.availableReplyActions','623109yLqPQh','context','isPending','startInteraction','ai-reply','trackChanges','addFeedItemCustomElement','ai.chat.context.searchInputVisibleFrom','has','streaming','setSuggestionPartActive','_titleAnimationInterval','_interactionPromiseResolver','updateCapabilities','addFeedItemAIReply','insertSuggestion','setAddContextOptions','addFeedInteractionHeader','setFeedItemRenderingStrategy','from','</p>','requires','addContextItem','resetMessageInput','isWebSearchEnabled','getItemIds','updateSuggestionPartState','AI_CHAT_WELCOME_MESSAGE','options','updateFeedItemAIReplySources','setIsMaximized','AIChatUI','availableModels','enqueue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','2066448LrfzKd','isTrackChangesOn','focusPromptInput'];_0x562b=function(){return _0x17bfad;};return _0x562b();}import{PromiseQueue as _0x414ba4}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xed7c0b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x16b953}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2f9112}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x516f0f{static get[_0x429f0e(0x1a6)](){return[_0x21f39f];}[_0x429f0e(0x180)];static get[_0x429f0e(0x18f)](){const _0x494d46=_0x429f0e;return _0x494d46(0xfd);}static get[_0x429f0e(0x179)](){return!0x0;}static get[_0x429f0e(0x107)](){return!0x0;}[_0x429f0e(0x160)]=_0x429f0e(0x19a);[_0x429f0e(0x138)]=!0x0;[_0x429f0e(0x186)];[_0x429f0e(0x19d)];[_0x429f0e(0x19c)]=void 0x0;[_0x429f0e(0x169)]=!0x1;constructor(_0x4c31b5){const _0x2d645c=_0x429f0e;super(_0x4c31b5);const _0x5e2821=this[_0x2d645c(0x192)][_0x2d645c(0x13b)][_0x2d645c(0x162)](_0x2d645c(0x109));this[_0x2d645c(0x10d)](_0x2d645c(0x10c),!0x1),this[_0x2d645c(0x186)]=new _0x414ba4(),this[_0x2d645c(0x180)]=new _0x5c71d6(this[_0x2d645c(0x192)][_0x2d645c(0x165)],{'showResizeButton':_0x5e2821[_0x2d645c(0x15c)],'contextResourcesSearchInputVisibleFrom':this[_0x2d645c(0x192)][_0x2d645c(0x11d)][_0x2d645c(0x162)](_0x2d645c(0x198))}),this[_0x2d645c(0x180)][_0x2d645c(0x152)](..._0xed7c0b)['to'](this),this[_0x2d645c(0x180)]['on'](_0x2d645c(0x173),(_0x4c24e4,{showDiff:_0xc767b0})=>{const _0x4739a3=_0x2d645c;this[_0x4739a3(0x138)]=_0xc767b0;}),_0x5e2821[_0x2d645c(0x134)][_0x2d645c(0x116)]({'id':_0x2d645c(0x108),'buttonLabel':_0x3e7a95(this[_0x2d645c(0x192)][_0x2d645c(0x165)],_0x2d645c(0x17b)),'buttonIcon':_0x1b4194,'order':0x0,'content':this[_0x2d645c(0x180)]}),this[_0x2d645c(0x180)][_0x2d645c(0x122)][_0x2d645c(0x13e)](_0x2d645c(0x16e))['to'](this,_0x2d645c(0x10c),_0x168dac=>_0x168dac),this[_0x2d645c(0x180)][_0x2d645c(0x136)][_0x2d645c(0x13e)](_0x2d645c(0x193))['to'](this,_0x2d645c(0x10c),_0x174643=>_0x174643),this[_0x2d645c(0x180)][_0x2d645c(0x122)][_0x2d645c(0x113)](this[_0x2d645c(0x164)]()),this[_0x2d645c(0x13e)](_0x2d645c(0x18b))['to'](this[_0x2d645c(0x180)][_0x2d645c(0x122)],_0x2d645c(0x18b));}[_0x429f0e(0x153)](){const _0x1a906b=_0x429f0e;super[_0x1a906b(0x153)](),this[_0x1a906b(0x19c)]&&clearInterval(this[_0x1a906b(0x19c)]);}[_0x429f0e(0x156)](_0x26e1ce){const _0x30731d=_0x429f0e,_0xda3939=this[_0x30731d(0x192)][_0x30731d(0x11d)][_0x30731d(0x162)](_0x30731d(0x133))??_0x3e7a95(this[_0x30731d(0x192)][_0x30731d(0x165)],_0x30731d(0x1ac));this[_0x30731d(0x180)][_0x30731d(0x136)][_0x30731d(0x16d)](),this[_0x30731d(0x180)][_0x30731d(0x122)][_0x30731d(0x15f)](),this[_0x30731d(0x180)][_0x30731d(0x122)][_0x30731d(0x121)](_0x26e1ce[_0x30731d(0xfe)],!this[_0x30731d(0x192)][_0x30731d(0x11d)][_0x30731d(0x162)](_0x30731d(0x157))),this[_0x30731d(0x146)]({'id':_0x30731d(0x14b),'staticMessage':_0xda3939}),this[_0x30731d(0x189)](_0x30731d(0x137));}[_0x429f0e(0x146)]({id:_0x201281,staticMessage:_0xe2b450}){const _0x550a34=_0x429f0e;this[_0x550a34(0x180)][_0x550a34(0x136)][_0x550a34(0x128)](_0x550a34(0x195),{'id':_0x201281,'initialContent':_0x550a34(0x15b)+_0xe2b450+_0x550a34(0x1a5)});}[_0x429f0e(0x124)](_0xe2145){const _0x12ac14=_0x429f0e,_0x8092b=_0xe2145[_0x12ac14(0x117)]?.[_0x12ac14(0x158)]||_0xe2145[_0x12ac14(0x159)];this[_0x12ac14(0x180)][_0x12ac14(0x136)][_0x12ac14(0x128)](_0x12ac14(0x14c),{'contextItems':Array[_0x12ac14(0x1a4)](_0xe2145[_0x12ac14(0x171)][_0x12ac14(0x114)]()),'initialContent':_0x12ac14(0x15b)+_0x1ef9b2(_0x8092b)+_0x12ac14(0x1a5),'id':_0xe2145['id']});}[_0x429f0e(0x148)]({errorMessage:_0x67865c,id:_0x35a641}){const _0x5077ca=_0x429f0e;this[_0x5077ca(0x180)][_0x5077ca(0x136)][_0x5077ca(0x128)](_0x5077ca(0x17e),{'initialContent':_0x5077ca(0x15b)+_0x1ef9b2(_0x67865c)+_0x5077ca(0x1a5),'id':_0x35a641});}[_0x429f0e(0x19f)](_0x179042){const _0x51aa46=_0x429f0e;return this[_0x51aa46(0x186)][_0x51aa46(0xff)](async()=>{const _0x2b4454=_0x51aa46;this[_0x2b4454(0x180)][_0x2b4454(0x136)][_0x2b4454(0x128)](_0x2b4454(0x195),{'id':_0x179042[_0x2b4454(0x147)]+':'+_0x179042['id']}),this[_0x2b4454(0x14f)]();});}async[_0x429f0e(0x151)](_0x3e1be7){const _0xea516=_0x429f0e,_0x40811b=_0x16b953(this[_0xea516(0x192)]);let _0xf04c1c=_0x40811b[_0xea516(0x11d)][_0xea516(0x162)](_0xea516(0x190))||[..._0x2f9112];if(_0x40811b[_0xea516(0x13b)][_0xea516(0x199)](_0xea516(0x118))){if(!this[_0xea516(0x169)]){this[_0xea516(0x169)]=!0x0;const _0x28d723=_0x40811b[_0xea516(0x130)][_0xea516(0x162)](_0xea516(0x196));this[_0xea516(0x180)][_0xea516(0x136)][_0xea516(0x13e)](_0xea516(0x102))['to'](_0x28d723,_0xea516(0x10a));}}else _0xf04c1c=_0xf04c1c[_0xea516(0x163)](_0xf81973=>_0xea516(0x1a0)!=_0xf81973);return this[_0xea516(0x186)][_0xea516(0xff)](async()=>{const _0x5e5223=_0xea516;this[_0x5e5223(0x180)][_0x5e5223(0x136)][_0x5e5223(0x128)](_0x5e5223(0x125),{'id':_0x3e1be7[_0x5e5223(0x147)]+':'+_0x3e1be7['id'],'areActionsDisabled':_0x3e1be7[_0x5e5223(0x16a)],'showDiff':this[_0x5e5223(0x138)],'availableActions':_0xf04c1c}),this[_0x5e5223(0x14f)]();});}[_0x429f0e(0x1a2)](_0x1687bf,_0x3b7288){const _0xf7f066=_0x429f0e,_0x1d9dff=this[_0xf7f066(0x180)][_0xf7f066(0x136)][_0xf7f066(0x13c)][_0xf7f066(0x13d)];if(_0x1d9dff instanceof _0x2aca73)return this[_0xf7f066(0x180)][_0xf7f066(0x136)][_0xf7f066(0x13c)][_0xf7f066(0x12b)](_0x1d9dff),void this[_0xf7f066(0x180)][_0xf7f066(0x136)][_0xf7f066(0x128)](_0xf7f066(0x143),{'id':_0x1687bf['id'],'capabilities':{'isWebSearchEnabled':_0x1d9dff[_0xf7f066(0x13f)][_0xf7f066(0x1a9)]||_0x3b7288[_0xf7f066(0x1a9)],'isReasoningEnabled':_0x1d9dff[_0xf7f066(0x13f)][_0xf7f066(0x104)]||_0x3b7288[_0xf7f066(0x104)]}});this[_0xf7f066(0x180)][_0xf7f066(0x136)][_0xf7f066(0x128)](_0xf7f066(0x143),{'id':_0x1687bf['id'],'capabilities':_0x3b7288});}async[_0x429f0e(0x197)](_0x82890c,_0x416f84){const _0x3f99b1=_0x429f0e;let _0x2fb4f7;return await this[_0x3f99b1(0x186)][_0x3f99b1(0xff)](async()=>{const _0x5f13f1=_0x3f99b1;_0x2fb4f7=this[_0x5f13f1(0x180)][_0x5f13f1(0x136)][_0x5f13f1(0x128)](_0x5f13f1(0x155),{'content':_0x82890c,'id':_0x416f84});}),_0x2fb4f7;}[_0x429f0e(0x178)](_0x204f22){const _0x39891c=_0x429f0e;this[_0x39891c(0x180)][_0x39891c(0x136)][_0x39891c(0x188)](_0x204f22);}[_0x429f0e(0x17c)](_0x58e0ca){const _0x17fd1d=_0x429f0e;return this[_0x17fd1d(0x180)][_0x17fd1d(0x136)][_0x17fd1d(0x17f)](_0x58e0ca);}[_0x429f0e(0x141)](_0x36407b){const _0x416f32=_0x429f0e,_0x14e39c=this[_0x416f32(0x180)][_0x416f32(0x136)][_0x416f32(0x13c)][_0x416f32(0x115)](_0x1462e3=>_0x1462e3[_0x416f32(0x1ad)]['id']==_0x36407b['id']&&_0x1462e3 instanceof _0x2aca73);_0x14e39c&&_0x14e39c[_0x416f32(0x10d)](_0x416f32(0x11a),_0x36407b[_0x416f32(0x11a)]);}async[_0x429f0e(0x15d)](_0x38aef5){const _0x1d4939=_0x429f0e,_0x3d8eda=_0x38aef5[_0x1d4939(0x16c)]||this[_0x1d4939(0x160)];return this[_0x1d4939(0x186)][_0x1d4939(0xff)](async _0x4846d6=>{const _0x40efb7=_0x1d4939;await this[_0x40efb7(0x180)][_0x40efb7(0x136)][_0x40efb7(0x149)]({..._0x38aef5,'abortSignal':_0x4846d6,'renderingStrategy':_0x3d8eda}),_0x38aef5[_0x40efb7(0x12f)]&&this[_0x40efb7(0x112)](_0x38aef5['id']);});}[_0x429f0e(0x1ae)](_0x28d3db,_0x13c85a){const _0x153f8d=_0x429f0e;this[_0x153f8d(0x180)][_0x153f8d(0x136)][_0x153f8d(0x135)](_0x28d3db,_0x13c85a);}async[_0x429f0e(0x14e)](_0x4aab65){const _0x43094b=_0x429f0e,_0x594832=_0x4aab65[_0x43094b(0x16c)]||this[_0x43094b(0x160)];return this[_0x43094b(0x186)][_0x43094b(0xff)](async _0xb221b3=>{const _0x23d73f=_0x43094b;await this[_0x23d73f(0x180)][_0x23d73f(0x136)][_0x23d73f(0x11f)]({..._0x4aab65,'abortSignal':_0xb221b3,'renderingStrategy':_0x594832}),_0x4aab65[_0x23d73f(0x12f)]&&this[_0x23d73f(0x112)](_0x4aab65['id']);});}[_0x429f0e(0x14a)](_0x48175a){const _0x2f1536=_0x429f0e;this[_0x2f1536(0x180)][_0x2f1536(0x136)][_0x2f1536(0x1ab)](_0x48175a);}[_0x429f0e(0x123)](_0x10b33b){const _0xb1f067=_0x429f0e;this[_0xb1f067(0x180)][_0xb1f067(0x136)][_0xb1f067(0x19b)](_0x10b33b);}[_0x429f0e(0x112)](_0x3216a7){const _0x5a4d8e=_0x429f0e;this[_0x5a4d8e(0x180)][_0x5a4d8e(0x136)][_0x5a4d8e(0x154)](_0x3216a7);}[_0x429f0e(0x170)](_0x2fd9d6){const _0x1d754b=_0x429f0e;this[_0x1d754b(0x180)][_0x1d754b(0x136)][_0x1d754b(0x1aa)]()[_0x1d754b(0x163)](_0x187862=>_0x187862[_0x1d754b(0x167)](_0x2fd9d6))[_0x1d754b(0x183)](_0x31239c=>this[_0x1d754b(0x180)][_0x1d754b(0x136)][_0x1d754b(0x188)](_0x31239c));}[_0x429f0e(0x194)](){const _0x2ca6b9=_0x429f0e,_0x30c2c6=this[_0x2ca6b9(0x12d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x2ca6b9(0x168)](_0x30c2c6),this[_0x2ca6b9(0x180)][_0x2ca6b9(0x122)][_0x2ca6b9(0x126)](!this[_0x2ca6b9(0x192)][_0x2ca6b9(0x11d)][_0x2ca6b9(0x162)](_0x2ca6b9(0x157))),this[_0x2ca6b9(0x10c)]=!0x0,this[_0x2ca6b9(0x180)][_0x2ca6b9(0x136)][_0x2ca6b9(0x13a)]();}[_0x429f0e(0x175)](_0x13d91d){const _0x385cd1=_0x429f0e;this[_0x385cd1(0x186)][_0x385cd1(0x119)](),this[_0x385cd1(0x180)][_0x385cd1(0x136)][_0x385cd1(0x1aa)]()[_0x385cd1(0x163)](_0x6354c=>_0x6354c[_0x385cd1(0x167)](_0x13d91d['id']))[_0x385cd1(0x183)](_0x519601=>this[_0x385cd1(0x112)](_0x519601)),this[_0x385cd1(0x10c)]=!0x1,this[_0x385cd1(0x180)][_0x385cd1(0x136)][_0x385cd1(0x105)]();}async[_0x429f0e(0x127)](){const _0x1b6285=_0x429f0e;return this[_0x1b6285(0x186)][_0x1b6285(0x129)][_0x1b6285(0x184)](()=>{const _0x22ebf7=_0x1b6285;this[_0x22ebf7(0x10c)]=!0x1,this[_0x22ebf7(0x180)][_0x22ebf7(0x136)][_0x22ebf7(0x105)]();});}[_0x429f0e(0x1a7)](_0x2f51a4,_0xfeecc0){const _0x2f8abe=_0x429f0e;this[_0x2f8abe(0x180)][_0x2f8abe(0x122)][_0x2f8abe(0x1a7)](_0x2f51a4,_0xfeecc0);}[_0x429f0e(0x11c)](_0x5350c1){const _0x33ff67=_0x429f0e;this[_0x33ff67(0x180)][_0x33ff67(0x122)][_0x33ff67(0x11c)](_0x5350c1);}[_0x429f0e(0x12c)](_0x39658e,_0x282c4f){const _0x4a7184=_0x429f0e;this[_0x4a7184(0x180)][_0x4a7184(0x122)][_0x4a7184(0x12c)](_0x39658e,_0x282c4f);}[_0x429f0e(0x176)](_0x185334){const _0x337a4e=_0x429f0e;this[_0x337a4e(0x180)][_0x337a4e(0x122)][_0x337a4e(0x176)](_0x185334);}[_0x429f0e(0x10e)](_0x294936){const _0x32f95a=_0x429f0e;this[_0x32f95a(0x180)][_0x32f95a(0x122)][_0x32f95a(0x10e)](_0x294936);}[_0x429f0e(0x106)](){const _0x56bd11=_0x429f0e;this[_0x56bd11(0x180)][_0x56bd11(0x122)][_0x56bd11(0x106)]();}[_0x429f0e(0x172)](){const _0x4efa14=_0x429f0e;this[_0x4efa14(0x180)][_0x4efa14(0x122)][_0x4efa14(0x172)]();}[_0x429f0e(0x12e)](_0x239bf4,_0x4e873d,_0x34a27e){const _0x1ebe49=_0x429f0e;this[_0x1ebe49(0x180)][_0x1ebe49(0x122)][_0x1ebe49(0x12e)](_0x239bf4,_0x4e873d,_0x34a27e);}[_0x429f0e(0x1a8)](){const _0x15062d=_0x429f0e;this[_0x15062d(0x180)][_0x15062d(0x122)][_0x15062d(0x1a8)](),this[_0x15062d(0x180)][_0x15062d(0x122)][_0x15062d(0x113)](this[_0x15062d(0x164)]());}[_0x429f0e(0x1a1)](_0x1ef911){const _0x1f35c4=_0x429f0e;this[_0x1f35c4(0x180)][_0x1f35c4(0x122)][_0x1f35c4(0x1a1)](_0x1ef911);}[_0x429f0e(0x19e)](_0x4461e5){const _0x3fbcf4=_0x429f0e;this[_0x3fbcf4(0x180)][_0x3fbcf4(0x122)][_0x3fbcf4(0x139)](_0x4461e5[_0x3fbcf4(0x1a9)]),this[_0x3fbcf4(0x180)][_0x3fbcf4(0x122)][_0x3fbcf4(0x18d)](_0x4461e5[_0x3fbcf4(0x104)]),this[_0x3fbcf4(0x180)][_0x3fbcf4(0x122)][_0x3fbcf4(0x113)](this[_0x3fbcf4(0x164)](_0x4461e5));}[_0x429f0e(0x110)](_0x2663aa,_0x871462){const _0x246e85=_0x429f0e;this[_0x246e85(0x180)][_0x246e85(0x122)][_0x246e85(0x187)](_0x2663aa),_0x871462&&this[_0x246e85(0x180)][_0x246e85(0x122)][_0x246e85(0x126)](!0x1);}[_0x429f0e(0x1a3)](_0x30be77){const _0x377b2d=_0x429f0e;this[_0x377b2d(0x160)]=_0x30be77;}[_0x429f0e(0x150)](_0x5c5435){const _0x33bd1f=_0x429f0e;this[_0x33bd1f(0x180)][_0x33bd1f(0x136)][_0x33bd1f(0x150)](_0x5c5435);}[_0x429f0e(0x140)](){const _0x3d252b=_0x429f0e;this[_0x3d252b(0x161)](_0x3e7a95(this[_0x3d252b(0x192)][_0x3d252b(0x165)],_0x3d252b(0x17b)));}[_0x429f0e(0x161)](_0x2fb7de,_0x4398a0=!0x1){const _0x593f97=_0x429f0e;if(_0x4398a0&&!_0x4b1689()&&_0x2fb7de[_0x593f97(0x16f)])return this[_0x593f97(0x180)][_0x593f97(0x15e)][_0x593f97(0x16b)]='',void this[_0x593f97(0x17a)](_0x2fb7de);this[_0x593f97(0x180)][_0x593f97(0x15e)][_0x593f97(0x16b)]=_0x2fb7de;}[_0x429f0e(0x168)](_0x25f30b){const _0x79792d=_0x429f0e;this[_0x79792d(0x180)][_0x79792d(0x136)][_0x79792d(0x168)](_0x25f30b);}[_0x429f0e(0x14f)](){const _0x493364=_0x429f0e;this[_0x493364(0x180)][_0x493364(0x136)][_0x493364(0x168)]('');}[_0x429f0e(0x17a)](_0x5c9390){const _0x3513a8=_0x429f0e;let _0x3eeb5a=0x0;clearInterval(this[_0x3513a8(0x19c)]),this[_0x3513a8(0x19c)]=setInterval(()=>{const _0x1cecfe=_0x3513a8;this[_0x1cecfe(0x180)][_0x1cecfe(0x15e)][_0x1cecfe(0x16b)]=this[_0x1cecfe(0x180)][_0x1cecfe(0x15e)][_0x1cecfe(0x16b)]+_0x5c9390[_0x3eeb5a],_0x3eeb5a++,_0x3eeb5a===_0x5c9390[_0x1cecfe(0x16f)]&&clearInterval(this[_0x1cecfe(0x19c)]);},0x1e);}[_0x429f0e(0xfc)](_0x3bdfb8){const _0x353c11=_0x429f0e;this[_0x353c11(0x180)][_0x353c11(0x15e)][_0x353c11(0x18e)]=_0x3bdfb8;}[_0x429f0e(0x12d)](_0x510f72){const _0x5cc452=_0x429f0e;return _0x510f72[_0x5cc452(0x1a9)]&&_0x510f72[_0x5cc452(0x104)]?_0x3e7a95(this[_0x5cc452(0x192)][_0x5cc452(0x165)],_0x5cc452(0x120)):_0x510f72[_0x5cc452(0x1a9)]?_0x3e7a95(this[_0x5cc452(0x192)][_0x5cc452(0x165)],_0x5cc452(0x10f)):_0x510f72[_0x5cc452(0x104)]?_0x3e7a95(this[_0x5cc452(0x192)][_0x5cc452(0x165)],_0x5cc452(0x18c)):_0x3e7a95(this[_0x5cc452(0x192)][_0x5cc452(0x165)],_0x5cc452(0x12a));}[_0x429f0e(0x164)](_0x5761f8){const _0x1e3742=_0x429f0e;return _0x5761f8?_0x5761f8[_0x1e3742(0x1a9)]&&_0x5761f8[_0x1e3742(0x104)]?_0x3e7a95(this[_0x1e3742(0x192)][_0x1e3742(0x165)],_0x1e3742(0x15a)):_0x5761f8[_0x1e3742(0x1a9)]?_0x3e7a95(this[_0x1e3742(0x192)][_0x1e3742(0x165)],_0x1e3742(0x100)):_0x5761f8[_0x1e3742(0x104)]?_0x3e7a95(this[_0x1e3742(0x192)][_0x1e3742(0x165)],_0x1e3742(0x145)):_0x3e7a95(this[_0x1e3742(0x192)][_0x1e3742(0x165)],_0x1e3742(0x144)):_0x3e7a95(this[_0x1e3742(0x192)][_0x1e3742(0x165)],_0x1e3742(0x144));}[_0x429f0e(0x131)](_0x323364,_0x2930de,_0x19afd0,_0x2724b8){const _0x574a25=_0x429f0e;this[_0x574a25(0x180)][_0x574a25(0x131)](_0x323364,_0x2930de,_0x19afd0,_0x2724b8);}[_0x429f0e(0x111)](_0x5364b3){const _0x372496=_0x429f0e;this[_0x372496(0x180)][_0x372496(0x111)](_0x5364b3);}[_0x429f0e(0x14d)](_0x1e0da3){const _0x331e4a=_0x429f0e;this[_0x331e4a(0x180)][_0x331e4a(0x122)][_0x331e4a(0x14d)](_0x1e0da3);}[_0x429f0e(0x103)](_0x313b22=!0x1){const _0x436987=_0x429f0e;this[_0x436987(0x180)][_0x436987(0x122)][_0x436987(0x103)](_0x313b22);}[_0x429f0e(0x11e)](_0x5bc2f6,_0x5df54c){const _0xbb6c23=_0x429f0e;this[_0xbb6c23(0x180)][_0xbb6c23(0x136)][_0xbb6c23(0x185)](_0x5bc2f6,_0x5df54c);}[_0x429f0e(0x13a)](){const _0x1c4db4=_0x429f0e;this[_0x1c4db4(0x180)][_0x1c4db4(0x136)][_0x1c4db4(0x13a)]();}[_0x429f0e(0x18a)](){const _0x591f1f=_0x429f0e;this[_0x591f1f(0x180)][_0x591f1f(0x122)][_0x591f1f(0x174)]=!0x0;}[_0x429f0e(0x182)](){const _0x400842=_0x429f0e;this[_0x400842(0x180)][_0x400842(0x122)][_0x400842(0x174)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f3000=_0x2553;(function(_0x3b5f75,_0xe25123){const _0x5969d0=_0x2553,_0x568b1d=_0x3b5f75();while(!![]){try{const _0x2486be=parseInt(_0x5969d0(0x1b3))/0x1+-parseInt(_0x5969d0(0x208))/0x2*(-parseInt(_0x5969d0(0x201))/0x3)+parseInt(_0x5969d0(0x1dd))/0x4*(parseInt(_0x5969d0(0x1c5))/0x5)+-parseInt(_0x5969d0(0x1f0))/0x6+parseInt(_0x5969d0(0x1d6))/0x7*(-parseInt(_0x5969d0(0x1c9))/0x8)+-parseInt(_0x5969d0(0x1e4))/0x9*(parseInt(_0x5969d0(0x19f))/0xa)+parseInt(_0x5969d0(0x1ba))/0xb;if(_0x2486be===_0xe25123)break;else _0x568b1d['push'](_0x568b1d['shift']());}catch(_0x5e6d1f){_0x568b1d['push'](_0x568b1d['shift']());}}}(_0x25b9,0xcc98c));import{CKEditorError as _0x90de28,ObservableMixin as _0x11f989,uid as _0x46282b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3aa11a,AIContextTextResourceType as _0x3c19ed}from'../../aicore/model/aicontext.js';import{escape as _0xcc2a2c}from'es-toolkit/compat';function _0x25b9(){const _0x36a278=['getId','_pendingContextItems','text/plain','uploadDocument','addCurrentDocumentToContext','File','FILE','resourceId','Current\x20document','values','1176542nnFoXu','removeFromContext','uploadProgressChanged','isReadOnly','isInContext','text/html','selection','1751717yezVXy','URL','files-','getSentContextItems','fetchDocument','MARKDOWN','_finishUploadOperation','url-','push','document','getData','3305635wEdOGC','object','sources','isCurrentDocumentInContext','112AuqOmx','mcpServerName','toolName','addResourceToContext','files','_startUploadOperation','_ownerId','clearPendingContextItems','abort','isCurrentDocumentInConversation','isHidden','abortController','enabled','710913qcLatz','contextItemLoadingEnded','_toggleAddCurrentDocumentOptionVisibility','string','_findSourceIdsByResourceId','_convertTextResourceToFile','ai-chat-source-not-found','8RbhTOs','SELECTION','uploadFile','TEXT','ai-chat-url-upload-failed','delete','HTML','18xLLjOV','uiId','data','fire','uploadUrl','start','ai-chat-source-resources-load-failed','contextItemRemoved','text/markdown','object\x20with\x20content\x20and\x20type\x20properties','addToConversationContext','has','4428270HPjxjB','_getCustomSourcesInitialState','getResources','addContextOptionsChanged','customItems','_mapContextItemToRequestData','_isResourceInContext','_ongoingUploads','version','urls','stack','ai-chat-document-upload-failed','find','_createContextItemFromContent','removeSelectionFromContext','attributes','_config','1474509XqehXY','getDocument','ai-chat-resource-no-data','mapContextItemsToRequestData','_setAddContextOptionsDefaultState','TOOL','from','4IggyEx','_connector','ai-request-aborted','sourceResourcesLoaded','_conversationContextItems','DOCUMENT','_finishContextItemLoading','name','ai-chat-context-unsupported-type','ai-chat-context-invalid-data','map','addSelectionToContext','code','message','_ongoingUploadOperations','_addToConversationContextItem','set','getPendingContextItems','length','all','_updateResourceInContextState','sessionId','filter','type','size','ai-chat-resource-load-failed','init','_removeContextItem','substring','label','isSelectionInContext','contextItemAdded','content','end','forEach','error','ai-chat-file-upload-failed','url','populateFromMessage','_addContextOptionsState','hidden','addUrlToContext','updateCurrentDocument','startsWith','resources','3215750zcgqvS','_addContextItem','resourceStateChanged','loadSourceResources','current-document','contextSent','file-','addToolItemToContext','addFilesToContext','get'];_0x25b9=function(){return _0x36a278;};return _0x25b9();}import{errorsMap as _0x54a4fe}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1f3000(0x191),_0x1f3000(0x1eb),_0x1f3000(0x1d7),_0x1f3000(0x1a4),_0x1f3000(0x195),_0x1f3000(0x1f3),_0x1f3000(0x175),_0x1f3000(0x1a1),_0x1f3000(0x1b5)];function _0x2553(_0x2f8153,_0xf27da8){const _0x25b9c4=_0x25b9();return _0x2553=function(_0x255341,_0xe0c358){_0x255341=_0x255341-0x173;let _0x4f2af0=_0x25b9c4[_0x255341];return _0x4f2af0;},_0x2553(_0x2f8153,_0xf27da8);}export class AIChatContext extends _0x11f989(){[_0x1f3000(0x173)];[_0x1f3000(0x200)];[_0x1f3000(0x1cf)];constructor({connector:_0x268a12,config:_0x3af1e5,ownerId:_0x4e86a4}){const _0x2a82eb=_0x1f3000;super(),this[_0x2a82eb(0x173)]=_0x268a12,this[_0x2a82eb(0x200)]=_0x3af1e5,this[_0x2a82eb(0x1cf)]=_0x4e86a4;}[_0x1f3000(0x18c)](){const _0x1ebc48=_0x1f3000;this[_0x1ebc48(0x1aa)]=new Map(),this[_0x1ebc48(0x176)]=new Map(),this[_0x1ebc48(0x1f7)]=new Map(),this[_0x1ebc48(0x180)]=new Map(),this[_0x1ebc48(0x205)]();}[_0x1f3000(0x183)](){const _0x7bb694=_0x1f3000;return this[_0x7bb694(0x1aa)];}async[_0x1f3000(0x198)](_0x430d88){const _0x72b72d=_0x1f3000,_0x4d858a=await this[_0x72b72d(0x1fd)](_0x430d88);return this[_0x72b72d(0x181)](_0x4d858a),_0x72b72d(0x1a3)===_0x4d858a[_0x72b72d(0x1e5)]&&this[_0x72b72d(0x1d8)](),_0x4d858a;}async[_0x1f3000(0x1fd)](_0x54551a){const _0x14c082=_0x1f3000;if(_0x54551a[_0x14c082(0x189)]===_0x3aa11a[_0x14c082(0x177)]){const _0x23e7c7=await this[_0x14c082(0x173)][_0x14c082(0x1be)](this[_0x14c082(0x1cf)],_0x54551a['id'])[_0x14c082(0x202)]();return{'id':_0x14c082(0x1a3),'uiId':_0x14c082(0x1a3),'label':_0x14c082(0x1b1),'type':_0x54551a[_0x14c082(0x189)],'content':_0x23e7c7[_0x14c082(0x192)],'hidden':this[_0x14c082(0x176)][_0x14c082(0x1ef)](_0x14c082(0x1a3)),'version':_0x23e7c7[_0x14c082(0x1ff)]?.[_0x14c082(0x1f8)],'sessionId':_0x23e7c7[_0x14c082(0x1ff)]?.[_0x14c082(0x187)]};}if(_0x54551a[_0x14c082(0x189)]===_0x3aa11a[_0x14c082(0x206)])return{'id':_0x54551a['id'],'uiId':_0x54551a['id'],'label':_0x54551a[_0x14c082(0x1e6)]?.[_0x14c082(0x18f)]||_0x54551a['id'],'type':_0x3aa11a[_0x14c082(0x206)],'mcpServerName':_0x54551a[_0x14c082(0x1ca)],'toolName':_0x54551a[_0x14c082(0x1cb)],'data':_0x54551a[_0x14c082(0x1e6)]||{}};return{'id':_0x54551a['id'],'uiId':_0x54551a['id'],'label':_0x54551a[_0x14c082(0x1ff)]?.[_0x14c082(0x18f)]||_0x54551a[_0x14c082(0x179)]||_0x54551a[_0x14c082(0x197)]||_0x54551a['id'],'type':_0x54551a[_0x14c082(0x189)],..._0x54551a?.[_0x14c082(0x1ff)]?.[_0x14c082(0x1b0)]?{'resourceId':_0x54551a[_0x14c082(0x1ff)]?.[_0x14c082(0x1b0)]}:{}};}[_0x1f3000(0x1bd)](){const _0x40dc38=_0x1f3000;return new Map(this[_0x40dc38(0x176)]);}[_0x1f3000(0x1b4)](_0x443f37){const _0x1a9899=_0x1f3000,_0x4cbae3=this[_0x1a9899(0x1aa)][_0x1a9899(0x1a8)](_0x443f37);_0x4cbae3?.[_0x1a9899(0x1b6)]||this[_0x1a9899(0x18d)](_0x443f37);}[_0x1f3000(0x1d0)](){const _0x7319a7=_0x1f3000;if(0x0===this[_0x7319a7(0x1aa)][_0x7319a7(0x18a)])return;for(const _0x1416eb of this[_0x7319a7(0x1aa)][_0x7319a7(0x1b2)]())this[_0x7319a7(0x18d)](_0x1416eb[_0x7319a7(0x1e5)]);const _0x4e4d66=this[_0x7319a7(0x176)][_0x7319a7(0x1a8)](_0x7319a7(0x1a3))||this[_0x7319a7(0x1aa)][_0x7319a7(0x1a8)](_0x7319a7(0x1a3));_0x4e4d66&&this[_0x7319a7(0x1a0)]({..._0x4e4d66,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1f3000(0x1ee)](_0x353111){const _0x4f3964=_0x1f3000;for(const _0x1978c0 of _0x353111[_0x4f3964(0x1b2)]())this[_0x4f3964(0x181)](_0x1978c0);this[_0x4f3964(0x1d0)](),this[_0x4f3964(0x1e7)](_0x4f3964(0x1a4),{'contextItems':Array[_0x4f3964(0x207)](this[_0x4f3964(0x1bd)]()[_0x4f3964(0x1b2)]())});}[_0x1f3000(0x1c8)](){const _0x476c34=_0x1f3000;return this[_0x476c34(0x1aa)][_0x476c34(0x1ef)](_0x476c34(0x1a3));}[_0x1f3000(0x190)](){const _0x517b90=_0x1f3000;return this[_0x517b90(0x1aa)][_0x517b90(0x1ef)](_0x517b90(0x1b9));}[_0x1f3000(0x1d2)](){const _0xd80bcc=_0x1f3000;return this[_0xd80bcc(0x176)][_0xd80bcc(0x1ef)](_0xd80bcc(0x1a3));}static[_0x1f3000(0x204)](_0x3c832a){const _0x1e1238=_0x1f3000;return Array[_0x1e1238(0x207)](_0x3c832a[_0x1e1238(0x1b2)]())[_0x1e1238(0x17c)](_0x4d131a=>this[_0x1e1238(0x1f5)](_0x4d131a))[_0x1e1238(0x188)](_0x55f607=>null!==_0x55f607);}async[_0x1f3000(0x1a7)](_0x538f96,_0x19d802,_0x5000a0=_0x3aa11a[_0x1f3000(0x1af)]){const _0x9d3708=_0x1f3000,_0x1792e3=_0x9d3708(0x1bc)+_0x46282b();this[_0x9d3708(0x1ce)](_0x1792e3);try{await Promise[_0x9d3708(0x185)](_0x538f96[_0x9d3708(0x17c)](async _0x4b7cf4=>{const _0x2b6611=_0x9d3708,_0x4e5c8a=_0x2b6611(0x1a5)+_0x46282b(),_0x2cc2a5=_0xcc2a2c(_0x4b7cf4[_0x2b6611(0x179)]);try{this[_0x2b6611(0x1a0)]({'type':_0x5000a0,'label':_0x19d802?.[_0x2b6611(0x18f)]||_0x2cc2a5,'uiId':_0x4e5c8a,'resourceId':_0x19d802?.[_0x2b6611(0x1b0)]},!0x0);const _0x273451=this[_0x2b6611(0x173)][_0x2b6611(0x1df)](this[_0x2b6611(0x1cf)],_0x4b7cf4,_0x19d802);this[_0x2b6611(0x1f7)][_0x2b6611(0x182)](_0x4e5c8a,_0x273451[_0x2b6611(0x1d4)]);const {id:_0x1a8cb7}=await _0x273451[_0x2b6611(0x1a9)]();this[_0x2b6611(0x1f7)][_0x2b6611(0x1e2)](_0x4e5c8a),this[_0x2b6611(0x178)]({'type':_0x5000a0,'id':_0x1a8cb7,'label':_0x19d802?.[_0x2b6611(0x18f)]||_0x2cc2a5,'uiId':_0x4e5c8a,'resourceId':_0x19d802?.[_0x2b6611(0x1b0)]},!0x1);}catch(_0x2c2613){this[_0x2b6611(0x1f7)][_0x2b6611(0x1e2)](_0x4e5c8a);if(!(_0x2c2613 instanceof _0x90de28&&_0x2c2613[_0x2b6611(0x17f)][_0x2b6611(0x19d)](_0x2b6611(0x174)))){const _0x59002f=_0x54a4fe[_0x2b6611(0x1a8)](_0x2c2613[_0x2b6611(0x17e)])||_0x2b6611(0x196),_0x332659=new _0x90de28(_0x59002f,null,{'fileName':_0x2cc2a5,..._0x2c2613});_0x332659[_0x2b6611(0x1fa)]=_0x2c2613[_0x2b6611(0x1fa)],this[_0x2b6611(0x1e7)](_0x2b6611(0x195),{'error':_0x332659});}this[_0x2b6611(0x18d)](_0x4e5c8a);}}));}finally{this[_0x9d3708(0x1c0)](_0x1792e3);}}[_0x1f3000(0x1ad)](_0x11db71){const _0x34f575=_0x1f3000;if(this[_0x34f575(0x1c8)]()||!this[_0x34f575(0x199)][_0x34f575(0x1c3)][_0x34f575(0x1d5)])return;const _0x5a075d={'type':_0x3aa11a[_0x34f575(0x177)],'uiId':_0x34f575(0x1a3),'label':_0x11db71,'isReadOnly':this[_0x34f575(0x176)][_0x34f575(0x1ef)](_0x34f575(0x1a3)),'hidden':this[_0x34f575(0x176)][_0x34f575(0x1ef)](_0x34f575(0x1a3))};this[_0x34f575(0x1a0)](_0x5a075d);}async[_0x1f3000(0x19c)](_0x3c9409,_0x220e82,_0x1baf6d,_0x20361a){const _0x5765d2=_0x1f3000,_0x56c6f7=this[_0x5765d2(0x1aa)][_0x5765d2(0x1a8)](_0x5765d2(0x1a3));if(_0x56c6f7&&_0x3c9409){_0x56c6f7[_0x5765d2(0x1b9)]=_0x20361a?_0x20361a[_0x5765d2(0x17c)](_0x243621=>({'start':_0x243621[_0x5765d2(0x1e9)],'end':_0x243621[_0x5765d2(0x193)]})):[];try{if(_0x56c6f7[_0x5765d2(0x1f8)]===_0x220e82)return;const {id:_0x387311}=await this[_0x5765d2(0x173)][_0x5765d2(0x1ac)](this[_0x5765d2(0x1cf)],_0x3c9409,{'version':_0x220e82,'sessionId':_0x1baf6d})[_0x5765d2(0x1a9)]();_0x56c6f7['id']=_0x387311,_0x56c6f7[_0x5765d2(0x192)]=_0x3c9409,_0x56c6f7[_0x5765d2(0x1f8)]=_0x220e82,_0x56c6f7[_0x5765d2(0x187)]=_0x1baf6d;}catch(_0x3f5752){const _0x42a0cc=new _0x90de28(_0x5765d2(0x1fb),null);_0x42a0cc[_0x5765d2(0x1fa)]=_0x3f5752[_0x5765d2(0x1fa)],this[_0x5765d2(0x1e7)](_0x5765d2(0x195),{'error':_0x42a0cc});}}}[_0x1f3000(0x17d)](_0x28769b){const _0x42f912=_0x1f3000;this[_0x42f912(0x1a0)]({'type':_0x3aa11a[_0x42f912(0x1de)],'label':_0x28769b,'uiId':_0x42f912(0x1b9),'content':_0x28769b});}[_0x1f3000(0x1fe)](){const _0x4cc1eb=_0x1f3000;this[_0x4cc1eb(0x18d)](_0x4cc1eb(0x1b9));}async[_0x1f3000(0x19b)](_0x2fe5b4,_0x217789){const _0x321cf6=_0x1f3000,_0x34dc86=_0x321cf6(0x1c1)+_0x46282b();this[_0x321cf6(0x1ce)](_0x34dc86);const _0x1aa94a=_0x321cf6(0x1c1)+_0x46282b();try{this[_0x321cf6(0x1a0)]({'type':_0x3aa11a[_0x321cf6(0x1bb)],'label':_0x217789?.[_0x321cf6(0x18f)]||_0x2fe5b4,'uiId':_0x1aa94a,'resourceId':_0x217789?.[_0x321cf6(0x1b0)]},!0x0);const _0x9d3f33=this[_0x321cf6(0x173)][_0x321cf6(0x1e8)](this[_0x321cf6(0x1cf)],_0x2fe5b4,_0x217789);this[_0x321cf6(0x1f7)][_0x321cf6(0x182)](_0x1aa94a,_0x9d3f33[_0x321cf6(0x1d4)]);const {id:_0x2f46e4}=await _0x9d3f33[_0x321cf6(0x1a9)]();this[_0x321cf6(0x1f7)][_0x321cf6(0x1e2)](_0x1aa94a),this[_0x321cf6(0x178)]({'type':_0x3aa11a[_0x321cf6(0x1bb)],'id':_0x2f46e4,'label':_0x217789?.[_0x321cf6(0x18f)]||_0x2fe5b4,'uiId':_0x1aa94a,'resourceId':_0x217789?.[_0x321cf6(0x1b0)]},!0x1);}catch(_0x573a1a){this[_0x321cf6(0x1f7)][_0x321cf6(0x1e2)](_0x1aa94a),(_0x573a1a[_0x321cf6(0x17f)][_0x321cf6(0x19d)](_0x321cf6(0x174))||this[_0x321cf6(0x1e7)](_0x321cf6(0x195),{'error':new _0x90de28(_0x321cf6(0x1e1),this,{'url':_0x2fe5b4,'originalError':_0x573a1a}),'url':_0x2fe5b4}),this[_0x321cf6(0x18d)](_0x1aa94a));}finally{this[_0x321cf6(0x1c0)](_0x34dc86);}}[_0x1f3000(0x1a6)](_0x42226f){const _0x517d85=_0x1f3000;_0x42226f['id']=_0x42226f['id']??_0x46282b()[_0x517d85(0x18e)](0x0,0x15),this[_0x517d85(0x1aa)][_0x517d85(0x182)](_0x42226f[_0x517d85(0x1e5)],_0x42226f),this[_0x517d85(0x1e7)](_0x517d85(0x191),{'contextItem':_0x42226f,'isLoading':!0x1});}async[_0x1f3000(0x1a2)](_0xcf63db,_0x346539,_0x194055){const _0x353e49=_0x1f3000,_0x137fab=this[_0x353e49(0x199)][_0x353e49(0x1c7)][_0x353e49(0x1fc)](_0x161b95=>_0x161b95['id']===_0xcf63db);if(!_0x137fab)return this[_0x353e49(0x1e7)](_0x353e49(0x195),{'error':new _0x90de28(_0x353e49(0x1dc),this,{'sourceId':_0xcf63db}),'sourceId':_0xcf63db}),[];try{const _0x29bdb2=(await _0x137fab[_0x353e49(0x1f2)](_0x346539))[_0x353e49(0x17c)](_0x2d63dc=>{const _0x2d9f7e=_0x353e49,_0xfd6502=this[_0x2d9f7e(0x1f6)](_0x2d63dc['id']);return{..._0x2d63dc,'isInContext':_0xfd6502};});return _0x137fab[_0x353e49(0x19e)]=_0x29bdb2,this[_0x353e49(0x1e7)](_0x353e49(0x175),{'sourceId':_0xcf63db,'source':_0x137fab,'resources':_0x29bdb2,'uid':_0x194055}),_0x29bdb2;}catch(_0x264976){return this[_0x353e49(0x1e7)](_0x353e49(0x195),{'error':new _0x90de28(_0x353e49(0x1ea),this,{'sourceId':_0xcf63db,'originalError':_0x264976}),'sourceId':_0xcf63db,'sourceLabel':_0x137fab[_0x353e49(0x18f)]}),[];}}async[_0x1f3000(0x1cc)](_0x47c103,_0x585287){const _0x4387c2=_0x1f3000;if(this[_0x4387c2(0x1f6)](_0x585287['id']))return;let _0x4e8612=_0x585287[_0x4387c2(0x1e6)];if(!_0x4e8612&&_0x47c103[_0x4387c2(0x1c4)])try{_0x4e8612=await _0x47c103[_0x4387c2(0x1c4)](_0x585287['id']);}catch(_0x169db3){return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x18b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'originalError':_0x169db3}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}if(_0x4e8612)switch(_0x585287[_0x4387c2(0x189)]){case _0x3aa11a[_0x4387c2(0x1bb)]:if(_0x4387c2(0x1d9)!=typeof _0x4e8612)return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1d9),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});await this[_0x4387c2(0x19b)](_0x4e8612,{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']});break;case _0x3aa11a[_0x4387c2(0x1af)]:if(!(_0x4e8612 instanceof File))return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1ae),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});await this[_0x4387c2(0x1a7)]([_0x4e8612],{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']});break;case _0x3aa11a[_0x4387c2(0x1e0)]:if(_0x4387c2(0x1c6)!=typeof _0x4e8612||!(_0x4387c2(0x192)in _0x4e8612)||!(_0x4387c2(0x189)in _0x4e8612))return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1ed),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});_0x4e8612=AIChatContext[_0x4387c2(0x1db)](_0x4e8612,_0x585287[_0x4387c2(0x18f)]),await this[_0x4387c2(0x1a7)]([_0x4e8612],{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']},_0x3aa11a[_0x4387c2(0x1e0)]);break;case _0x3aa11a[_0x4387c2(0x206)]:break;default:this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17a),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'resourceType':_0x585287[_0x4387c2(0x189)]}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}else this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x203),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}static[_0x1f3000(0x1db)](_0x15d955,_0x4a7270){const _0x42e856=_0x1f3000;switch(_0x15d955[_0x42e856(0x189)]){case _0x3c19ed[_0x42e856(0x1bf)]:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1ec)});case _0x3c19ed[_0x42e856(0x1e3)]:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1b8)});default:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1ab)});}}static[_0x1f3000(0x1f5)](_0x1bc0a1){const _0xb360b5=_0x1f3000;switch(_0x1bc0a1[_0xb360b5(0x189)]){case _0x3aa11a[_0xb360b5(0x1af)]:return{'type':_0x3aa11a[_0xb360b5(0x1af)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x1bb)]:return{'type':_0x3aa11a[_0xb360b5(0x1bb)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x177)]:return{'type':_0x3aa11a[_0xb360b5(0x177)],'id':_0x1bc0a1['id'],..._0x1bc0a1[_0xb360b5(0x1b9)]?.[_0xb360b5(0x184)]&&{'selection':_0x1bc0a1[_0xb360b5(0x1b9)]}};case _0x3aa11a[_0xb360b5(0x1e0)]:return{'type':_0x3aa11a[_0xb360b5(0x1af)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x206)]:{const _0x3f101b=_0x1bc0a1;return{'type':_0x3aa11a[_0xb360b5(0x206)],'mcpServerName':_0x3f101b[_0xb360b5(0x1ca)],'toolName':_0x3f101b[_0xb360b5(0x1cb)],'data':_0x3f101b[_0xb360b5(0x1e6)],'id':_0x3f101b['id']};}default:return null;}}[_0x1f3000(0x1a0)](_0x399510,_0x2025ee=!0x1){const _0x486417=_0x1f3000;if(this[_0x486417(0x1aa)][_0x486417(0x182)](_0x399510[_0x486417(0x1e5)],_0x399510),_0x399510[_0x486417(0x19a)]||this[_0x486417(0x1e7)](_0x486417(0x191),{'contextItem':_0x399510,'isLoading':_0x2025ee}),_0x486417(0x1a3)===_0x399510[_0x486417(0x1e5)]&&this[_0x486417(0x1d8)](),_0x399510[_0x486417(0x1b0)]){const _0x39fbaf=this[_0x486417(0x1da)](_0x399510[_0x486417(0x1b0)]);_0x39fbaf&&_0x39fbaf[_0x486417(0x194)](_0x164b6d=>{const _0x3a2075=_0x486417;this[_0x3a2075(0x186)](_0x164b6d,_0x399510[_0x3a2075(0x1b0)],!0x0);});}}[_0x1f3000(0x18d)](_0x476c5d){const _0x5371b6=_0x1f3000,_0xb80b14=this[_0x5371b6(0x1aa)][_0x5371b6(0x1a8)](_0x476c5d),_0x3f8ada=this[_0x5371b6(0x1f7)][_0x5371b6(0x1a8)](_0x476c5d);if(_0x3f8ada&&(_0x3f8ada[_0x5371b6(0x1d1)](),this[_0x5371b6(0x1f7)][_0x5371b6(0x1e2)](_0x476c5d)),_0xb80b14?.[_0x5371b6(0x1b0)]){const _0x181cf1=this[_0x5371b6(0x1da)](_0xb80b14[_0x5371b6(0x1b0)]);_0x181cf1&&_0x181cf1[_0x5371b6(0x194)](_0x2ec17d=>{const _0x5c59df=_0x5371b6;this[_0x5c59df(0x186)](_0x2ec17d,_0xb80b14[_0x5c59df(0x1b0)],!0x1);});}this[_0x5371b6(0x1aa)][_0x5371b6(0x1e2)](_0x476c5d),this[_0x5371b6(0x1e7)](_0x5371b6(0x1eb),{'uiId':_0x476c5d,'type':_0xb80b14?.[_0x5371b6(0x189)]}),_0x5371b6(0x1a3)===_0x476c5d&&this[_0x5371b6(0x1d8)]();}[_0x1f3000(0x178)](_0x178922,_0x4c2e03){const _0x12f5d8=_0x1f3000;if(this[_0x12f5d8(0x1aa)][_0x12f5d8(0x1ef)](_0x178922[_0x12f5d8(0x1e5)])&&(this[_0x12f5d8(0x1aa)][_0x12f5d8(0x182)](_0x178922[_0x12f5d8(0x1e5)],_0x178922),this[_0x12f5d8(0x1e7)](_0x12f5d8(0x1d7),{'contextItem':_0x178922,'isLoading':_0x4c2e03}),_0x178922[_0x12f5d8(0x1b0)])){const _0x281b3a=this[_0x12f5d8(0x1da)](_0x178922[_0x12f5d8(0x1b0)]);_0x281b3a&&_0x281b3a[_0x12f5d8(0x194)](_0x936c7d=>{const _0x4fa056=_0x12f5d8;this[_0x4fa056(0x186)](_0x936c7d,_0x178922[_0x4fa056(0x1b0)],!0x0);});}}[_0x1f3000(0x181)](_0x12ac68){const _0x5d6484=_0x1f3000;this[_0x5d6484(0x176)][_0x5d6484(0x182)](_0x12ac68[_0x5d6484(0x1e5)],_0x12ac68);}[_0x1f3000(0x205)](){const _0x3f84be=_0x1f3000;this[_0x3f84be(0x199)]={'document':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1c3)]?.[_0x3f84be(0x1d5)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1f9)]?.[_0x3f84be(0x1d5)]},'files':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1cd)]?.[_0x3f84be(0x1d5)]},'sources':this[_0x3f84be(0x1f1)](),'customItems':this[_0x3f84be(0x200)]?.[_0x3f84be(0x1f4)]?.[_0x3f84be(0x17c)](_0x199626=>({..._0x199626,'enabled':!0x0}))??[]},this[_0x3f84be(0x1e7)](_0x3f84be(0x1f3),{'options':this[_0x3f84be(0x199)]});}[_0x1f3000(0x1f1)](){const _0x135878=_0x1f3000;return this[_0x135878(0x200)]?.[_0x135878(0x1c7)]?.[_0x135878(0x17c)](_0x325dea=>({..._0x325dea,'resources':[]}))??[];}[_0x1f3000(0x1d8)](){const _0x3dc796=_0x1f3000,_0x270429=this[_0x3dc796(0x1c8)]()||this[_0x3dc796(0x1d2)]();this[_0x3dc796(0x199)][_0x3dc796(0x1c3)][_0x3dc796(0x1d3)]=_0x270429,this[_0x3dc796(0x1e7)](_0x3dc796(0x1f3),{'options':this[_0x3dc796(0x199)]});}[_0x1f3000(0x1f6)](_0x5b4ce9){const _0x3b951a=_0x1f3000;for(const _0x2f47f3 of this[_0x3b951a(0x1aa)][_0x3b951a(0x1b2)]())if(_0x2f47f3[_0x3b951a(0x1b0)]===_0x5b4ce9)return!0x0;for(const _0x31930d of this[_0x3b951a(0x176)][_0x3b951a(0x1b2)]())if(_0x31930d[_0x3b951a(0x1b0)]===_0x5b4ce9)return!0x0;return!0x1;}[_0x1f3000(0x1da)](_0x57d1db){const _0x83eae7=_0x1f3000,_0x1d0fb6=[];for(const _0x4ee917 of this[_0x83eae7(0x199)][_0x83eae7(0x1c7)]){_0x4ee917[_0x83eae7(0x19e)][_0x83eae7(0x1fc)](_0xbf7792=>_0xbf7792['id']===_0x57d1db)&&_0x1d0fb6[_0x83eae7(0x1c2)](_0x4ee917['id']);}return 0x0===_0x1d0fb6[_0x83eae7(0x184)]?null:_0x1d0fb6;}[_0x1f3000(0x186)](_0x1c8acf,_0x58990a,_0x5288d4){const _0x28e9e9=_0x1f3000,_0x40a579=this[_0x28e9e9(0x199)][_0x28e9e9(0x1c7)][_0x28e9e9(0x1fc)](_0x3dc217=>_0x3dc217['id']===_0x1c8acf);if(!_0x40a579)return;const _0x5d2c59=_0x40a579[_0x28e9e9(0x19e)][_0x28e9e9(0x1fc)](_0x446909=>_0x446909['id']===_0x58990a);_0x5d2c59&&(_0x5d2c59[_0x28e9e9(0x1b7)]=_0x5288d4,this[_0x28e9e9(0x1e7)](_0x28e9e9(0x1a1),{'sourceId':_0x1c8acf,'resourceId':_0x58990a,'isInContext':_0x5288d4}));}[_0x1f3000(0x1ce)](_0x95acef){const _0x339010=_0x1f3000;this[_0x339010(0x180)][_0x339010(0x182)](_0x95acef,!0x0),this[_0x339010(0x180)][_0x339010(0x18a)]&&this[_0x339010(0x1e7)](_0x339010(0x1b5),{'isUploadInProgress':!0x0});}[_0x1f3000(0x1c0)](_0x1efb21){const _0x43b587=_0x1f3000;this[_0x43b587(0x180)][_0x43b587(0x1e2)](_0x1efb21),0x0===this[_0x43b587(0x180)][_0x43b587(0x18a)]&&this[_0x43b587(0x1e7)](_0x43b587(0x1b5),{'isUploadInProgress':!0x1});}}
23
+ const _0x3a5304=_0x9295;function _0x5957(){const _0x6895c2=['values','URL','ai-request-aborted','getPendingContextItems','ai-chat-context-invalid-data','sessionId','abortController','_ongoingUploads','find','mcpServerName','end','uiId','441858MbbLgS','_toggleAddCurrentDocumentOptionVisibility','_findSourceIdsByResourceId','ai-chat-document-upload-failed','ai-chat-source-resources-load-failed','_mapContextItemToRequestData','getResources','addFilesToContext','addToConversationContext','_ownerId','171zQYgBJ','enabled','set','ai-chat-url-upload-failed','content','contextItemRemoved','files-','ai-chat-resource-no-data','2942457AVOnZj','File','map','stack','files','isHidden','forEach','1436129uDCAzg','loadSourceResources','customItems','uploadUrl','delete','8UZBENu','3312393EqqLTk','get','_removeContextItem','resourceId','addContextOptionsChanged','SELECTION','current-document','uploadDocument','url','FILE','push','HTML','code','abort','data','all','_setAddContextOptionsDefaultState','url-','_getCustomSourcesInitialState','start','updateCurrentDocument','Current\x20document','_config','resourceStateChanged','mapContextItemsToRequestData','getId','attributes','_finishUploadOperation','_isResourceInContext','_finishContextItemLoading','isCurrentDocumentInContext','_connector','contextItemAdded','746520ynMyco','_startUploadOperation','has','DOCUMENT','2440066vpHPPf','toolName','getData','addCurrentDocumentToContext','TOOL','_addToConversationContextItem','hidden','removeSelectionFromContext','uploadFile','length','text/html','sourceResourcesLoaded','from','text/markdown','addSelectionToContext','addToolItemToContext','urls','object','type','isCurrentDocumentInConversation','addResourceToContext','ai-chat-resource-load-failed','_ongoingUploadOperations','file-','init','removeFromContext','version','_addContextItem','sources','object\x20with\x20content\x20and\x20type\x20properties','_pendingContextItems','TEXT','isInContext','isSelectionInContext','populateFromMessage','isReadOnly','fetchDocument','ai-chat-context-unsupported-type','90BMUWWE','document','resources','message','_convertTextResourceToFile','text/plain','getSentContextItems','MARKDOWN','ai-chat-source-not-found','filter','contextSent','addUrlToContext','contextItemLoadingEnded','name','label','fire','ai-chat-file-upload-failed','_createContextItemFromContent','string','error','_addContextOptionsState','substring','_updateResourceInContextState','1772372Cvwvbk','clearPendingContextItems','uploadProgressChanged','getDocument','size','selection','_conversationContextItems','startsWith'];_0x5957=function(){return _0x6895c2;};return _0x5957();}function _0x9295(_0x54a1eb,_0x33fa01){const _0x5957e0=_0x5957();return _0x9295=function(_0x929543,_0x1901c7){_0x929543=_0x929543-0x1b2;let _0xb352f7=_0x5957e0[_0x929543];return _0xb352f7;},_0x9295(_0x54a1eb,_0x33fa01);}(function(_0x216964,_0x533cd3){const _0x41fa27=_0x9295,_0x4769a1=_0x216964();while(!![]){try{const _0x10437a=-parseInt(_0x41fa27(0x219))/0x1+parseInt(_0x41fa27(0x244))/0x2+parseInt(_0x41fa27(0x212))/0x3+parseInt(_0x41fa27(0x1ec))/0x4+-parseInt(_0x41fa27(0x1d5))/0x5*(parseInt(_0x41fa27(0x200))/0x6)+-parseInt(_0x41fa27(0x21f))/0x7*(parseInt(_0x41fa27(0x21e))/0x8)+parseInt(_0x41fa27(0x20a))/0x9*(parseInt(_0x41fa27(0x240))/0xa);if(_0x10437a===_0x533cd3)break;else _0x4769a1['push'](_0x4769a1['shift']());}catch(_0x1a8a0e){_0x4769a1['push'](_0x4769a1['shift']());}}}(_0x5957,0xca027));import{CKEditorError as _0x5e7391,ObservableMixin as _0x27a896,uid as _0x186500}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3c22fa,AIContextTextResourceType as _0x33e2ce}from'../../aicore/model/aicontext.js';import{escape as _0x3fcbf3}from'es-toolkit/compat';import{errorsMap as _0x292f6e}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3a5304(0x23f),_0x3a5304(0x20f),_0x3a5304(0x1e1),_0x3a5304(0x1df),_0x3a5304(0x1e8),_0x3a5304(0x223),_0x3a5304(0x1ba),_0x3a5304(0x236),_0x3a5304(0x1ee)];export class AIChatContext extends _0x27a896(){[_0x3a5304(0x23e)];[_0x3a5304(0x235)];[_0x3a5304(0x209)];constructor({connector:_0x2a2774,config:_0x111236,ownerId:_0x57c738}){const _0x3e9174=_0x3a5304;super(),this[_0x3e9174(0x23e)]=_0x2a2774,this[_0x3e9174(0x235)]=_0x111236,this[_0x3e9174(0x209)]=_0x57c738;}[_0x3a5304(0x1c7)](){const _0x579470=_0x3a5304;this[_0x579470(0x1cd)]=new Map(),this[_0x579470(0x1f2)]=new Map(),this[_0x579470(0x1fb)]=new Map(),this[_0x579470(0x1c5)]=new Map(),this[_0x579470(0x22f)]();}[_0x3a5304(0x1f7)](){const _0x53d414=_0x3a5304;return this[_0x53d414(0x1cd)];}async[_0x3a5304(0x1d1)](_0x546fb3){const _0x317958=_0x3a5304,_0x36ddc4=await this[_0x317958(0x1e6)](_0x546fb3);return this[_0x317958(0x1b4)](_0x36ddc4),_0x317958(0x225)===_0x36ddc4[_0x317958(0x1ff)]&&this[_0x317958(0x201)](),_0x36ddc4;}async[_0x3a5304(0x1e6)](_0x438ddb){const _0x1c7473=_0x3a5304;if(_0x438ddb[_0x1c7473(0x1c1)]===_0x3c22fa[_0x1c7473(0x243)]){const _0x444d77=await this[_0x1c7473(0x23e)][_0x1c7473(0x1d3)](this[_0x1c7473(0x209)],_0x438ddb['id'])[_0x1c7473(0x1ef)]();return{'id':_0x1c7473(0x225),'uiId':_0x1c7473(0x225),'label':_0x1c7473(0x234),'type':_0x438ddb[_0x1c7473(0x1c1)],'content':_0x444d77[_0x1c7473(0x20e)],'hidden':this[_0x1c7473(0x1f2)][_0x1c7473(0x242)](_0x1c7473(0x225)),'version':_0x444d77[_0x1c7473(0x239)]?.[_0x1c7473(0x1c9)],'sessionId':_0x444d77[_0x1c7473(0x239)]?.[_0x1c7473(0x1f9)]};}if(_0x438ddb[_0x1c7473(0x1c1)]===_0x3c22fa[_0x1c7473(0x1b3)])return{'id':_0x438ddb['id'],'uiId':_0x438ddb['id'],'label':_0x438ddb[_0x1c7473(0x22d)]?.[_0x1c7473(0x1e3)]||_0x438ddb['id'],'type':_0x3c22fa[_0x1c7473(0x1b3)],'mcpServerName':_0x438ddb[_0x1c7473(0x1fd)],'toolName':_0x438ddb[_0x1c7473(0x245)],'data':_0x438ddb[_0x1c7473(0x22d)]||{}};return{'id':_0x438ddb['id'],'uiId':_0x438ddb['id'],'label':_0x438ddb[_0x1c7473(0x239)]?.[_0x1c7473(0x1e3)]||_0x438ddb[_0x1c7473(0x1e2)]||_0x438ddb[_0x1c7473(0x227)]||_0x438ddb['id'],'type':_0x438ddb[_0x1c7473(0x1c1)],..._0x438ddb?.[_0x1c7473(0x239)]?.[_0x1c7473(0x222)]?{'resourceId':_0x438ddb[_0x1c7473(0x239)]?.[_0x1c7473(0x222)]}:{}};}[_0x3a5304(0x1db)](){const _0x120f9a=_0x3a5304;return new Map(this[_0x120f9a(0x1f2)]);}[_0x3a5304(0x1c8)](_0x3d7814){const _0x202152=_0x3a5304,_0xe8ed85=this[_0x202152(0x1cd)][_0x202152(0x220)](_0x3d7814);_0xe8ed85?.[_0x202152(0x1d2)]||this[_0x202152(0x221)](_0x3d7814);}[_0x3a5304(0x1ed)](){const _0x4619a3=_0x3a5304;if(0x0===this[_0x4619a3(0x1cd)][_0x4619a3(0x1f0)])return;for(const _0x452810 of this[_0x4619a3(0x1cd)][_0x4619a3(0x1f4)]())this[_0x4619a3(0x221)](_0x452810[_0x4619a3(0x1ff)]);const _0x375012=this[_0x4619a3(0x1f2)][_0x4619a3(0x220)](_0x4619a3(0x225))||this[_0x4619a3(0x1cd)][_0x4619a3(0x220)](_0x4619a3(0x225));_0x375012&&this[_0x4619a3(0x1ca)]({..._0x375012,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3a5304(0x208)](_0x140501){const _0x49e589=_0x3a5304;for(const _0x296646 of _0x140501[_0x49e589(0x1f4)]())this[_0x49e589(0x1b4)](_0x296646);this[_0x49e589(0x1ed)](),this[_0x49e589(0x1e4)](_0x49e589(0x1df),{'contextItems':Array[_0x49e589(0x1bb)](this[_0x49e589(0x1db)]()[_0x49e589(0x1f4)]())});}[_0x3a5304(0x23d)](){const _0x34818a=_0x3a5304;return this[_0x34818a(0x1cd)][_0x34818a(0x242)](_0x34818a(0x225));}[_0x3a5304(0x1d0)](){const _0x230d64=_0x3a5304;return this[_0x230d64(0x1cd)][_0x230d64(0x242)](_0x230d64(0x1f1));}[_0x3a5304(0x1c2)](){const _0x2c843b=_0x3a5304;return this[_0x2c843b(0x1f2)][_0x2c843b(0x242)](_0x2c843b(0x225));}static[_0x3a5304(0x237)](_0x3eb804){const _0x290620=_0x3a5304;return Array[_0x290620(0x1bb)](_0x3eb804[_0x290620(0x1f4)]())[_0x290620(0x214)](_0xf5ee38=>this[_0x290620(0x205)](_0xf5ee38))[_0x290620(0x1de)](_0x4dc4fc=>null!==_0x4dc4fc);}async[_0x3a5304(0x207)](_0x1dd9c5,_0x8ba559,_0xfaa8da=_0x3c22fa[_0x3a5304(0x228)]){const _0x5e8508=_0x3a5304,_0xf3240a=_0x5e8508(0x210)+_0x186500();this[_0x5e8508(0x241)](_0xf3240a);try{await Promise[_0x5e8508(0x22e)](_0x1dd9c5[_0x5e8508(0x214)](async _0x5b63de=>{const _0x450b34=_0x5e8508,_0x363659=_0x450b34(0x1c6)+_0x186500(),_0x43977d=_0x3fcbf3(_0x5b63de[_0x450b34(0x1e2)]);try{this[_0x450b34(0x1ca)]({'type':_0xfaa8da,'label':_0x8ba559?.[_0x450b34(0x1e3)]||_0x43977d,'uiId':_0x363659,'resourceId':_0x8ba559?.[_0x450b34(0x222)]},!0x0);const _0x417504=this[_0x450b34(0x23e)][_0x450b34(0x1b7)](this[_0x450b34(0x209)],_0x5b63de,_0x8ba559);this[_0x450b34(0x1fb)][_0x450b34(0x20c)](_0x363659,_0x417504[_0x450b34(0x1fa)]);const {id:_0x5109b2}=await _0x417504[_0x450b34(0x238)]();this[_0x450b34(0x1fb)][_0x450b34(0x21d)](_0x363659),this[_0x450b34(0x23c)]({'type':_0xfaa8da,'id':_0x5109b2,'label':_0x8ba559?.[_0x450b34(0x1e3)]||_0x43977d,'uiId':_0x363659,'resourceId':_0x8ba559?.[_0x450b34(0x222)]},!0x1);}catch(_0x3dbd8b){this[_0x450b34(0x1fb)][_0x450b34(0x21d)](_0x363659);if(!(_0x3dbd8b instanceof _0x5e7391&&_0x3dbd8b[_0x450b34(0x1d8)][_0x450b34(0x1f3)](_0x450b34(0x1f6)))){const _0x608742=_0x292f6e[_0x450b34(0x220)](_0x3dbd8b[_0x450b34(0x22b)])||_0x450b34(0x1e5),_0x9e3b8c=new _0x5e7391(_0x608742,null,{'fileName':_0x43977d,..._0x3dbd8b});_0x9e3b8c[_0x450b34(0x215)]=_0x3dbd8b[_0x450b34(0x215)],this[_0x450b34(0x1e4)](_0x450b34(0x1e8),{'error':_0x9e3b8c});}this[_0x450b34(0x221)](_0x363659);}}));}finally{this[_0x5e8508(0x23a)](_0xf3240a);}}[_0x3a5304(0x1b2)](_0x1cf4e9){const _0x50df60=_0x3a5304;if(this[_0x50df60(0x23d)]()||!this[_0x50df60(0x1e9)][_0x50df60(0x1d6)][_0x50df60(0x20b)])return;const _0x1e517d={'type':_0x3c22fa[_0x50df60(0x243)],'uiId':_0x50df60(0x225),'label':_0x1cf4e9,'isReadOnly':this[_0x50df60(0x1f2)][_0x50df60(0x242)](_0x50df60(0x225)),'hidden':this[_0x50df60(0x1f2)][_0x50df60(0x242)](_0x50df60(0x225))};this[_0x50df60(0x1ca)](_0x1e517d);}async[_0x3a5304(0x233)](_0x7165c,_0x48bac9,_0x331d91,_0x14cbd1){const _0xc51e50=_0x3a5304,_0x465621=this[_0xc51e50(0x1cd)][_0xc51e50(0x220)](_0xc51e50(0x225));if(_0x465621&&_0x7165c){_0x465621[_0xc51e50(0x1f1)]=_0x14cbd1?_0x14cbd1[_0xc51e50(0x214)](_0x27c439=>({'start':_0x27c439[_0xc51e50(0x232)],'end':_0x27c439[_0xc51e50(0x1fe)]})):[];try{if(_0x465621[_0xc51e50(0x1c9)]===_0x48bac9)return;const {id:_0x4a5863}=await this[_0xc51e50(0x23e)][_0xc51e50(0x226)](this[_0xc51e50(0x209)],_0x7165c,{'version':_0x48bac9,'sessionId':_0x331d91})[_0xc51e50(0x238)]();_0x465621['id']=_0x4a5863,_0x465621[_0xc51e50(0x20e)]=_0x7165c,_0x465621[_0xc51e50(0x1c9)]=_0x48bac9,_0x465621[_0xc51e50(0x1f9)]=_0x331d91;}catch(_0x1491c9){const _0x415809=new _0x5e7391(_0xc51e50(0x203),null);_0x415809[_0xc51e50(0x215)]=_0x1491c9[_0xc51e50(0x215)],this[_0xc51e50(0x1e4)](_0xc51e50(0x1e8),{'error':_0x415809});}}}[_0x3a5304(0x1bd)](_0x41f66c){const _0x2df76b=_0x3a5304;this[_0x2df76b(0x1ca)]({'type':_0x3c22fa[_0x2df76b(0x224)],'label':_0x41f66c,'uiId':_0x2df76b(0x1f1),'content':_0x41f66c});}[_0x3a5304(0x1b6)](){const _0x1d1ebc=_0x3a5304;this[_0x1d1ebc(0x221)](_0x1d1ebc(0x1f1));}async[_0x3a5304(0x1e0)](_0x25a3f7,_0x4edcbd){const _0x3cde7f=_0x3a5304,_0x13315a=_0x3cde7f(0x230)+_0x186500();this[_0x3cde7f(0x241)](_0x13315a);const _0x44d02a=_0x3cde7f(0x230)+_0x186500();try{this[_0x3cde7f(0x1ca)]({'type':_0x3c22fa[_0x3cde7f(0x1f5)],'label':_0x4edcbd?.[_0x3cde7f(0x1e3)]||_0x25a3f7,'uiId':_0x44d02a,'resourceId':_0x4edcbd?.[_0x3cde7f(0x222)]},!0x0);const _0x17f7c7=this[_0x3cde7f(0x23e)][_0x3cde7f(0x21c)](this[_0x3cde7f(0x209)],_0x25a3f7,_0x4edcbd);this[_0x3cde7f(0x1fb)][_0x3cde7f(0x20c)](_0x44d02a,_0x17f7c7[_0x3cde7f(0x1fa)]);const {id:_0x280db1}=await _0x17f7c7[_0x3cde7f(0x238)]();this[_0x3cde7f(0x1fb)][_0x3cde7f(0x21d)](_0x44d02a),this[_0x3cde7f(0x23c)]({'type':_0x3c22fa[_0x3cde7f(0x1f5)],'id':_0x280db1,'label':_0x4edcbd?.[_0x3cde7f(0x1e3)]||_0x25a3f7,'uiId':_0x44d02a,'resourceId':_0x4edcbd?.[_0x3cde7f(0x222)]},!0x1);}catch(_0x5d76c7){this[_0x3cde7f(0x1fb)][_0x3cde7f(0x21d)](_0x44d02a),(_0x5d76c7[_0x3cde7f(0x1d8)][_0x3cde7f(0x1f3)](_0x3cde7f(0x1f6))||this[_0x3cde7f(0x1e4)](_0x3cde7f(0x1e8),{'error':new _0x5e7391(_0x3cde7f(0x20d),this,{'url':_0x25a3f7,'originalError':_0x5d76c7}),'url':_0x25a3f7}),this[_0x3cde7f(0x221)](_0x44d02a));}finally{this[_0x3cde7f(0x23a)](_0x13315a);}}[_0x3a5304(0x1be)](_0x31eb47){const _0x1b3549=_0x3a5304;_0x31eb47['id']=_0x31eb47['id']??_0x186500()[_0x1b3549(0x1ea)](0x0,0x15),this[_0x1b3549(0x1cd)][_0x1b3549(0x20c)](_0x31eb47[_0x1b3549(0x1ff)],_0x31eb47),this[_0x1b3549(0x1e4)](_0x1b3549(0x23f),{'contextItem':_0x31eb47,'isLoading':!0x1});}async[_0x3a5304(0x21a)](_0x54fc60,_0xc0e691,_0x339f3a){const _0x55a49a=_0x3a5304,_0x5d9057=this[_0x55a49a(0x1e9)][_0x55a49a(0x1cb)][_0x55a49a(0x1fc)](_0xf91871=>_0xf91871['id']===_0x54fc60);if(!_0x5d9057)return this[_0x55a49a(0x1e4)](_0x55a49a(0x1e8),{'error':new _0x5e7391(_0x55a49a(0x1dd),this,{'sourceId':_0x54fc60}),'sourceId':_0x54fc60}),[];try{const _0x1b728f=(await _0x5d9057[_0x55a49a(0x206)](_0xc0e691))[_0x55a49a(0x214)](_0x297524=>{const _0x23fcd6=_0x55a49a,_0x1b3b8c=this[_0x23fcd6(0x23b)](_0x297524['id']);return{..._0x297524,'isInContext':_0x1b3b8c};});return _0x5d9057[_0x55a49a(0x1d7)]=_0x1b728f,this[_0x55a49a(0x1e4)](_0x55a49a(0x1ba),{'sourceId':_0x54fc60,'source':_0x5d9057,'resources':_0x1b728f,'uid':_0x339f3a}),_0x1b728f;}catch(_0x1e87cb){return this[_0x55a49a(0x1e4)](_0x55a49a(0x1e8),{'error':new _0x5e7391(_0x55a49a(0x204),this,{'sourceId':_0x54fc60,'originalError':_0x1e87cb}),'sourceId':_0x54fc60,'sourceLabel':_0x5d9057[_0x55a49a(0x1e3)]}),[];}}async[_0x3a5304(0x1c3)](_0x141f07,_0x194b77){const _0x1ee846=_0x3a5304;if(this[_0x1ee846(0x23b)](_0x194b77['id']))return;let _0x39bf22=_0x194b77[_0x1ee846(0x22d)];if(!_0x39bf22&&_0x141f07[_0x1ee846(0x246)])try{_0x39bf22=await _0x141f07[_0x1ee846(0x246)](_0x194b77['id']);}catch(_0x2a868c){return void this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x1c4),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id'],'originalError':_0x2a868c}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});}if(_0x39bf22)switch(_0x194b77[_0x1ee846(0x1c1)]){case _0x3c22fa[_0x1ee846(0x1f5)]:if(_0x1ee846(0x1e7)!=typeof _0x39bf22)return void this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x1f8),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id'],'expectedType':_0x1ee846(0x1e7),'actualType':typeof _0x39bf22}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});await this[_0x1ee846(0x1e0)](_0x39bf22,{'label':_0x194b77[_0x1ee846(0x1e3)],'resourceId':_0x194b77['id']});break;case _0x3c22fa[_0x1ee846(0x228)]:if(!(_0x39bf22 instanceof File))return void this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x1f8),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id'],'expectedType':_0x1ee846(0x213),'actualType':typeof _0x39bf22}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});await this[_0x1ee846(0x207)]([_0x39bf22],{'label':_0x194b77[_0x1ee846(0x1e3)],'resourceId':_0x194b77['id']});break;case _0x3c22fa[_0x1ee846(0x1ce)]:if(_0x1ee846(0x1c0)!=typeof _0x39bf22||!(_0x1ee846(0x20e)in _0x39bf22)||!(_0x1ee846(0x1c1)in _0x39bf22))return void this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x1f8),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id'],'expectedType':_0x1ee846(0x1cc),'actualType':typeof _0x39bf22}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});_0x39bf22=AIChatContext[_0x1ee846(0x1d9)](_0x39bf22,_0x194b77[_0x1ee846(0x1e3)]),await this[_0x1ee846(0x207)]([_0x39bf22],{'label':_0x194b77[_0x1ee846(0x1e3)],'resourceId':_0x194b77['id']},_0x3c22fa[_0x1ee846(0x1ce)]);break;case _0x3c22fa[_0x1ee846(0x1b3)]:break;default:this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x1d4),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id'],'resourceType':_0x194b77[_0x1ee846(0x1c1)]}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});}else this[_0x1ee846(0x1e4)](_0x1ee846(0x1e8),{'error':new _0x5e7391(_0x1ee846(0x211),this,{'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']}),'resourceId':_0x194b77['id'],'sourceId':_0x141f07['id']});}static[_0x3a5304(0x1d9)](_0x2b4516,_0x13a9d7){const _0x3ba6c9=_0x3a5304;switch(_0x2b4516[_0x3ba6c9(0x1c1)]){case _0x33e2ce[_0x3ba6c9(0x1dc)]:return new File([_0x2b4516[_0x3ba6c9(0x20e)]],_0x13a9d7,{'type':_0x3ba6c9(0x1bc)});case _0x33e2ce[_0x3ba6c9(0x22a)]:return new File([_0x2b4516[_0x3ba6c9(0x20e)]],_0x13a9d7,{'type':_0x3ba6c9(0x1b9)});default:return new File([_0x2b4516[_0x3ba6c9(0x20e)]],_0x13a9d7,{'type':_0x3ba6c9(0x1da)});}}static[_0x3a5304(0x205)](_0x1c2daa){const _0x280f84=_0x3a5304;switch(_0x1c2daa[_0x280f84(0x1c1)]){case _0x3c22fa[_0x280f84(0x228)]:return{'type':_0x3c22fa[_0x280f84(0x228)],'id':_0x1c2daa['id']};case _0x3c22fa[_0x280f84(0x1f5)]:return{'type':_0x3c22fa[_0x280f84(0x1f5)],'id':_0x1c2daa['id']};case _0x3c22fa[_0x280f84(0x243)]:return{'type':_0x3c22fa[_0x280f84(0x243)],'id':_0x1c2daa['id'],..._0x1c2daa[_0x280f84(0x1f1)]?.[_0x280f84(0x1b8)]&&{'selection':_0x1c2daa[_0x280f84(0x1f1)]}};case _0x3c22fa[_0x280f84(0x1ce)]:return{'type':_0x3c22fa[_0x280f84(0x228)],'id':_0x1c2daa['id']};case _0x3c22fa[_0x280f84(0x1b3)]:{const _0x3f6b13=_0x1c2daa;return{'type':_0x3c22fa[_0x280f84(0x1b3)],'mcpServerName':_0x3f6b13[_0x280f84(0x1fd)],'toolName':_0x3f6b13[_0x280f84(0x245)],'data':_0x3f6b13[_0x280f84(0x22d)],'id':_0x3f6b13['id']};}default:return null;}}[_0x3a5304(0x1ca)](_0x353233,_0x91278e=!0x1){const _0x44aec8=_0x3a5304;if(this[_0x44aec8(0x1cd)][_0x44aec8(0x20c)](_0x353233[_0x44aec8(0x1ff)],_0x353233),_0x353233[_0x44aec8(0x1b5)]||this[_0x44aec8(0x1e4)](_0x44aec8(0x23f),{'contextItem':_0x353233,'isLoading':_0x91278e}),_0x44aec8(0x225)===_0x353233[_0x44aec8(0x1ff)]&&this[_0x44aec8(0x201)](),_0x353233[_0x44aec8(0x222)]){const _0x37e67a=this[_0x44aec8(0x202)](_0x353233[_0x44aec8(0x222)]);_0x37e67a&&_0x37e67a[_0x44aec8(0x218)](_0x23f7a4=>{const _0x58d7b6=_0x44aec8;this[_0x58d7b6(0x1eb)](_0x23f7a4,_0x353233[_0x58d7b6(0x222)],!0x0);});}}[_0x3a5304(0x221)](_0x48b6d9){const _0x5aef07=_0x3a5304,_0x2cf884=this[_0x5aef07(0x1cd)][_0x5aef07(0x220)](_0x48b6d9),_0x22245a=this[_0x5aef07(0x1fb)][_0x5aef07(0x220)](_0x48b6d9);if(_0x22245a&&(_0x22245a[_0x5aef07(0x22c)](),this[_0x5aef07(0x1fb)][_0x5aef07(0x21d)](_0x48b6d9)),_0x2cf884?.[_0x5aef07(0x222)]){const _0x2a78bf=this[_0x5aef07(0x202)](_0x2cf884[_0x5aef07(0x222)]);_0x2a78bf&&_0x2a78bf[_0x5aef07(0x218)](_0x51a338=>{const _0xaba3f9=_0x5aef07;this[_0xaba3f9(0x1eb)](_0x51a338,_0x2cf884[_0xaba3f9(0x222)],!0x1);});}this[_0x5aef07(0x1cd)][_0x5aef07(0x21d)](_0x48b6d9),this[_0x5aef07(0x1e4)](_0x5aef07(0x20f),{'uiId':_0x48b6d9,'type':_0x2cf884?.[_0x5aef07(0x1c1)]}),_0x5aef07(0x225)===_0x48b6d9&&this[_0x5aef07(0x201)]();}[_0x3a5304(0x23c)](_0x1c6433,_0x513106){const _0x47273e=_0x3a5304;if(this[_0x47273e(0x1cd)][_0x47273e(0x242)](_0x1c6433[_0x47273e(0x1ff)])&&(this[_0x47273e(0x1cd)][_0x47273e(0x20c)](_0x1c6433[_0x47273e(0x1ff)],_0x1c6433),this[_0x47273e(0x1e4)](_0x47273e(0x1e1),{'contextItem':_0x1c6433,'isLoading':_0x513106}),_0x1c6433[_0x47273e(0x222)])){const _0x27d078=this[_0x47273e(0x202)](_0x1c6433[_0x47273e(0x222)]);_0x27d078&&_0x27d078[_0x47273e(0x218)](_0x583623=>{const _0x554eca=_0x47273e;this[_0x554eca(0x1eb)](_0x583623,_0x1c6433[_0x554eca(0x222)],!0x0);});}}[_0x3a5304(0x1b4)](_0xb0ebd4){const _0x42430d=_0x3a5304;this[_0x42430d(0x1f2)][_0x42430d(0x20c)](_0xb0ebd4[_0x42430d(0x1ff)],_0xb0ebd4);}[_0x3a5304(0x22f)](){const _0x1af7d1=_0x3a5304;this[_0x1af7d1(0x1e9)]={'document':{'enabled':!0x1!==this[_0x1af7d1(0x235)]?.[_0x1af7d1(0x1d6)]?.[_0x1af7d1(0x20b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1af7d1(0x235)]?.[_0x1af7d1(0x1bf)]?.[_0x1af7d1(0x20b)]},'files':{'enabled':!0x1!==this[_0x1af7d1(0x235)]?.[_0x1af7d1(0x216)]?.[_0x1af7d1(0x20b)]},'sources':this[_0x1af7d1(0x231)](),'customItems':this[_0x1af7d1(0x235)]?.[_0x1af7d1(0x21b)]?.[_0x1af7d1(0x214)](_0xe38eba=>({..._0xe38eba,'enabled':!0x0}))??[]},this[_0x1af7d1(0x1e4)](_0x1af7d1(0x223),{'options':this[_0x1af7d1(0x1e9)]});}[_0x3a5304(0x231)](){const _0x87a7da=_0x3a5304;return this[_0x87a7da(0x235)]?.[_0x87a7da(0x1cb)]?.[_0x87a7da(0x214)](_0x1808f1=>({..._0x1808f1,'resources':[]}))??[];}[_0x3a5304(0x201)](){const _0x220e2a=_0x3a5304,_0x3fcdf9=this[_0x220e2a(0x23d)]()||this[_0x220e2a(0x1c2)]();this[_0x220e2a(0x1e9)][_0x220e2a(0x1d6)][_0x220e2a(0x217)]=_0x3fcdf9,this[_0x220e2a(0x1e4)](_0x220e2a(0x223),{'options':this[_0x220e2a(0x1e9)]});}[_0x3a5304(0x23b)](_0x1eee7d){const _0x5c82f3=_0x3a5304;for(const _0x1650a6 of this[_0x5c82f3(0x1cd)][_0x5c82f3(0x1f4)]())if(_0x1650a6[_0x5c82f3(0x222)]===_0x1eee7d)return!0x0;for(const _0x109a07 of this[_0x5c82f3(0x1f2)][_0x5c82f3(0x1f4)]())if(_0x109a07[_0x5c82f3(0x222)]===_0x1eee7d)return!0x0;return!0x1;}[_0x3a5304(0x202)](_0x22946d){const _0x44543f=_0x3a5304,_0x930d89=[];for(const _0x300d8c of this[_0x44543f(0x1e9)][_0x44543f(0x1cb)]){_0x300d8c[_0x44543f(0x1d7)][_0x44543f(0x1fc)](_0x7232b=>_0x7232b['id']===_0x22946d)&&_0x930d89[_0x44543f(0x229)](_0x300d8c['id']);}return 0x0===_0x930d89[_0x44543f(0x1b8)]?null:_0x930d89;}[_0x3a5304(0x1eb)](_0xc32368,_0x4f2147,_0x65a876){const _0x57ae3a=_0x3a5304,_0x34de58=this[_0x57ae3a(0x1e9)][_0x57ae3a(0x1cb)][_0x57ae3a(0x1fc)](_0x59860e=>_0x59860e['id']===_0xc32368);if(!_0x34de58)return;const _0x36d041=_0x34de58[_0x57ae3a(0x1d7)][_0x57ae3a(0x1fc)](_0x56097f=>_0x56097f['id']===_0x4f2147);_0x36d041&&(_0x36d041[_0x57ae3a(0x1cf)]=_0x65a876,this[_0x57ae3a(0x1e4)](_0x57ae3a(0x236),{'sourceId':_0xc32368,'resourceId':_0x4f2147,'isInContext':_0x65a876}));}[_0x3a5304(0x241)](_0x291a91){const _0x16604c=_0x3a5304;this[_0x16604c(0x1c5)][_0x16604c(0x20c)](_0x291a91,!0x0),this[_0x16604c(0x1c5)][_0x16604c(0x1f0)]&&this[_0x16604c(0x1e4)](_0x16604c(0x1ee),{'isUploadInProgress':!0x0});}[_0x3a5304(0x23a)](_0x12125a){const _0xf32c4d=_0x3a5304;this[_0xf32c4d(0x1c5)][_0xf32c4d(0x21d)](_0x12125a),0x0===this[_0xf32c4d(0x1c5)][_0xf32c4d(0x1f0)]&&this[_0xf32c4d(0x1e4)](_0xf32c4d(0x1ee),{'isUploadInProgress':!0x1});}}