@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0xf13e99=_0x2eff;(function(_0x3e8a4c,_0x5a086d){const _0x192164=_0x2eff,_0x1d2def=_0x3e8a4c();while(!![]){try{const _0x4aa57f=-parseInt(_0x192164(0x168))/0x1+parseInt(_0x192164(0x157))/0x2*(-parseInt(_0x192164(0x156))/0x3)+-parseInt(_0x192164(0x161))/0x4+parseInt(_0x192164(0x169))/0x5*(parseInt(_0x192164(0x137))/0x6)+parseInt(_0x192164(0x141))/0x7+parseInt(_0x192164(0x143))/0x8*(parseInt(_0x192164(0x16d))/0x9)+parseInt(_0x192164(0x145))/0xa;if(_0x4aa57f===_0x5a086d)break;else _0x1d2def['push'](_0x1d2def['shift']());}catch(_0x36a340){_0x1d2def['push'](_0x1d2def['shift']());}}}(_0x40d7,0x5cb2b));import{Plugin as _0x54033c}from'ckeditor5/src/core.js';import{AIBalloon as _0xf2a1a4}from'../aiballoon/aiballoon.js';function _0x2eff(_0x3dcdc0,_0x2e7e90){const _0x40d712=_0x40d7();return _0x2eff=function(_0x2efffe,_0x5ab091){_0x2efffe=_0x2efffe-0x137;let _0x4bf782=_0x40d712[_0x2efffe];return _0x4bf782;},_0x2eff(_0x3dcdc0,_0x2e7e90);}import{AI_REPLY_ACTIONS as _0x3684bb}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0xbc3a99}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x155428}from'../aicore/utils/eventnames.js';import{Dialog as _0x427ba7}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x54033c{static get[_0xf13e99(0x13e)](){return[_0x427ba7,_0xf2a1a4];}static get[_0xf13e99(0x144)](){const _0x255c70=_0xf13e99;return _0x255c70(0x138);}static get[_0xf13e99(0x154)](){return!0x0;}static get[_0xf13e99(0x15e)](){return!0x0;}[_0xf13e99(0x13c)];constructor(_0x2017fb){const _0xce6212=_0xf13e99;super(_0x2017fb),this[_0xce6212(0x166)](_0xce6212(0x162),!0x1);}[_0xf13e99(0x150)](_0x66ed67){const _0x404e9d=_0xf13e99,_0x5763b9=this[_0x404e9d(0x13b)];this[_0x404e9d(0x13c)]||(this[_0x404e9d(0x13c)]=this[_0x404e9d(0x167)]()),_0x5763b9[_0x404e9d(0x158)][_0x404e9d(0x15f)](_0x404e9d(0x16f))[_0x404e9d(0x150)]({..._0x66ed67,'id':_0x404e9d(0x170),'class':_0x404e9d(0x16b),'mainView':this[_0x404e9d(0x13c)]}),this[_0x404e9d(0x175)](_0x66ed67[_0x404e9d(0x140)]),this[_0x404e9d(0x13c)][_0x404e9d(0x13d)](!_0x66ed67[_0x404e9d(0x152)]),this[_0x404e9d(0x15c)]();}[_0xf13e99(0x142)](){const _0x5aa27e=_0xf13e99;this[_0x5aa27e(0x13b)][_0x5aa27e(0x158)][_0x5aa27e(0x15f)](_0x5aa27e(0x16f))[_0x5aa27e(0x142)]();}[_0xf13e99(0x164)](_0x3e8bc7){const _0x523cbd=_0xf13e99;return this[_0x523cbd(0x13c)]||(this[_0x523cbd(0x13c)]=this[_0x523cbd(0x167)]()),this[_0x523cbd(0x13c)][_0x523cbd(0x164)](_0x3e8bc7);}[_0xf13e99(0x16a)](_0x4fd797){const _0x42c978=_0xf13e99;this[_0x42c978(0x13c)]&&this[_0x42c978(0x13c)][_0x42c978(0x16a)](_0x4fd797);}[_0xf13e99(0x167)](){const _0x3d6745=_0xf13e99,_0x178736=this[_0x3d6745(0x13b)],_0xd5afe8=_0x178736[_0x3d6745(0x158)][_0x3d6745(0x15f)](_0x3d6745(0x16f)),_0x57b3b0=_0x178736[_0x3d6745(0x14d)][_0x3d6745(0x15f)](_0x3d6745(0x14a));let _0x7d8593=_0x178736[_0x3d6745(0x15b)][_0x3d6745(0x15f)](_0x3d6745(0x159))||[..._0x3684bb];_0x178736[_0x3d6745(0x158)][_0x3d6745(0x171)](_0x3d6745(0x177))||(_0x7d8593=_0x7d8593[_0x3d6745(0x163)](_0xc0e88e=>_0x3d6745(0x146)!=_0xc0e88e));const _0x1eff90=new _0xbc3a99(_0x178736[_0x3d6745(0x14c)],{'availableActions':_0x7d8593,'showApplyButton':!0x0,'showSuggestButton':!!_0x57b3b0});return _0x1eff90[_0x3d6745(0x172)](_0x3d6745(0x162))['to'](this),_0x1eff90[_0x3d6745(0x139)](..._0x155428)['to'](this),_0x1eff90[_0x3d6745(0x139)](_0x3d6745(0x165),_0x3d6745(0x151))['to'](this),_0xd5afe8[_0x3d6745(0x139)](_0x3d6745(0x14b))['to'](this),_0x1eff90['on'](_0x3d6745(0x16c),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x1eff90['on'](_0x3d6745(0x146),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x1eff90['on'](_0x3d6745(0x174),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x57b3b0&&_0x1eff90[_0x3d6745(0x172)](_0x3d6745(0x147))['to'](_0x57b3b0,_0x3d6745(0x15d)),_0x1eff90[_0x3d6745(0x16e)](),_0x1eff90;}[_0xf13e99(0x175)](_0x1eeb49){const _0x57b14f=_0xf13e99,_0x320985=this[_0x57b14f(0x13b)],_0x27fd4d=_0x320985[_0x57b14f(0x158)][_0x57b14f(0x15f)](_0x57b14f(0x160))[_0x57b14f(0x149)][_0x57b14f(0x155)][_0x57b14f(0x173)];this[_0x57b14f(0x13c)][_0x57b14f(0x13f)](_0x1eeb49),_0x27fd4d[_0x57b14f(0x171)](this[_0x57b14f(0x13c)][_0x57b14f(0x153)])||(_0x27fd4d[_0x57b14f(0x14f)]([this[_0x57b14f(0x13c)][_0x57b14f(0x153)],this[_0x57b14f(0x13c)][_0x57b14f(0x15a)]],0x0),_0x320985[_0x57b14f(0x158)][_0x57b14f(0x15f)](_0x57b14f(0x16f))[_0x57b14f(0x148)](_0x57b14f(0x176),()=>{const _0x27e216=_0x57b14f;_0x27fd4d[_0x27e216(0x14e)](this[_0x27e216(0x13c)][_0x27e216(0x153)]),_0x27fd4d[_0x27e216(0x14e)](this[_0x27e216(0x13c)][_0x27e216(0x15a)]);}));}[_0xf13e99(0x15c)](){const _0xa12cc=_0xf13e99;this[_0xa12cc(0x13c)][_0xa12cc(0x13a)]();}}function _0x40d7(){const _0x1fb455=['locale','commands','remove','addMany','open','showNext','areActionsDisabled','previousButtonView','isOfficialPlugin','headerView','19038DSWeiF','16rTLvkg','plugins','ai.availableReplyActions','nextButtonView','config','_restoreDefaultViewFocus','value','isPremiumPlugin','get','Dialog','2039340IxlFuH','showDiff','filter','updateContent','showPrevious','set','_createChatBalloonView','556813bVvXpt','10HEmSKV','setState','ck-ai-chat-balloon','applySuggestion','234hDwiiY','render','AIBalloon','aiChatBalloon','has','bind','children','rejectSuggestion','_toggleRotatorButtonsInDialogHeader','beforeDialogClosed','TrackChanges','1574904Gfgkfv','AIChatBalloon','delegate','focus','editor','_chatBalloonView','togglePartToolbarEnabled','requires','toggleRotatorButtonsVisibility','showRotator','2113937HHNhbC','close','72224bfllFR','pluginName','4354200PFvyTL','insertSuggestion','isTrackChangesOn','once','view','trackChanges','dialogClosed'];_0x40d7=function(){return _0x1fb455;};return _0x40d7();}
23
+ const _0xeb9d5c=_0x137d;(function(_0x147412,_0x4ebb10){const _0x4429e1=_0x137d,_0x1620d0=_0x147412();while(!![]){try{const _0x33d385=parseInt(_0x4429e1(0x7f))/0x1*(-parseInt(_0x4429e1(0xa7))/0x2)+-parseInt(_0x4429e1(0x7b))/0x3+-parseInt(_0x4429e1(0x68))/0x4*(-parseInt(_0x4429e1(0x90))/0x5)+parseInt(_0x4429e1(0x9c))/0x6*(parseInt(_0x4429e1(0x67))/0x7)+-parseInt(_0x4429e1(0x9f))/0x8*(-parseInt(_0x4429e1(0x6e))/0x9)+parseInt(_0x4429e1(0x89))/0xa+parseInt(_0x4429e1(0x81))/0xb*(-parseInt(_0x4429e1(0x87))/0xc);if(_0x33d385===_0x4ebb10)break;else _0x1620d0['push'](_0x1620d0['shift']());}catch(_0x4c750c){_0x1620d0['push'](_0x1620d0['shift']());}}}(_0x225b,0x82bf7));import{Plugin as _0x4a8ec5}from'ckeditor5/src/core.js';import{AIBalloon as _0x47422f}from'../aiballoon/aiballoon.js';function _0x225b(){const _0x4d3a82=['rejectSuggestion','toggleRotatorButtonsVisibility','133vQEVCu','144uyhOOB','set','config','_createChatBalloonView','beforeDialogClosed','locale','27nZrKES','applySuggestion','requires','ai.availableReplyActions','_chatBalloonView','remove','open','headerView','pluginName','has','once','updateContent','aiChatBalloon','506100EDqmca','showPrevious','showRotator','editor','8zXLXfa','isPremiumPlugin','5597240ucJreU','commands','close','children','nextButtonView','previousButtonView','12fbSOdE','showNext','492020RntbYS','filter','addMany','togglePartToolbarEnabled','setState','render','isTrackChangesOn','32995WklDqS','Dialog','areActionsDisabled','ck-ai-chat-balloon','AIChatBalloon','_restoreDefaultViewFocus','delegate','TrackChanges','isOfficialPlugin','focus','get','value','188628kaAeVF','_toggleRotatorButtonsInDialogHeader','trackChanges','1390024pzfedW','insertSuggestion','bind','view','plugins','AIBalloon','dialogClosed','showDiff','48066mzFEhc'];_0x225b=function(){return _0x4d3a82;};return _0x225b();}import{AI_REPLY_ACTIONS as _0x5e07a8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x236273}from'./ui/aichatballoonview.js';function _0x137d(_0x3ef0de,_0x1e1e20){const _0x225b5e=_0x225b();return _0x137d=function(_0x137d20,_0x55fca5){_0x137d20=_0x137d20-0x66;let _0x1ecd27=_0x225b5e[_0x137d20];return _0x1ecd27;},_0x137d(_0x3ef0de,_0x1e1e20);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbabe1}from'../aicore/utils/eventnames.js';import{Dialog as _0x49f404}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x4a8ec5{static get[_0xeb9d5c(0x70)](){return[_0x49f404,_0x47422f];}static get[_0xeb9d5c(0x76)](){const _0x58ddfa=_0xeb9d5c;return _0x58ddfa(0x94);}static get[_0xeb9d5c(0x98)](){return!0x0;}static get[_0xeb9d5c(0x80)](){return!0x0;}[_0xeb9d5c(0x72)];constructor(_0x474944){const _0x2bbc0e=_0xeb9d5c;super(_0x474944),this[_0x2bbc0e(0x69)](_0x2bbc0e(0xa6),!0x1);}[_0xeb9d5c(0x74)](_0x2b408b){const _0x11cd9b=_0xeb9d5c,_0x13c9ed=this[_0x11cd9b(0x7e)];this[_0x11cd9b(0x72)]||(this[_0x11cd9b(0x72)]=this[_0x11cd9b(0x6b)]()),_0x13c9ed[_0x11cd9b(0xa3)][_0x11cd9b(0x9a)](_0x11cd9b(0xa4))[_0x11cd9b(0x74)]({..._0x2b408b,'id':_0x11cd9b(0x7a),'class':_0x11cd9b(0x93),'mainView':this[_0x11cd9b(0x72)]}),this[_0x11cd9b(0x9d)](_0x2b408b[_0x11cd9b(0x7d)]),this[_0x11cd9b(0x72)][_0x11cd9b(0x8c)](!_0x2b408b[_0x11cd9b(0x92)]),this[_0x11cd9b(0x95)]();}[_0xeb9d5c(0x83)](){const _0x1f4122=_0xeb9d5c;this[_0x1f4122(0x7e)][_0x1f4122(0xa3)][_0x1f4122(0x9a)](_0x1f4122(0xa4))[_0x1f4122(0x83)]();}[_0xeb9d5c(0x79)](_0x286088){const _0x1cf8b8=_0xeb9d5c;return this[_0x1cf8b8(0x72)]||(this[_0x1cf8b8(0x72)]=this[_0x1cf8b8(0x6b)]()),this[_0x1cf8b8(0x72)][_0x1cf8b8(0x79)](_0x286088);}[_0xeb9d5c(0x8d)](_0x139294){const _0x3d66e2=_0xeb9d5c;this[_0x3d66e2(0x72)]&&this[_0x3d66e2(0x72)][_0x3d66e2(0x8d)](_0x139294);}[_0xeb9d5c(0x6b)](){const _0x22ac31=_0xeb9d5c,_0x579cf2=this[_0x22ac31(0x7e)],_0x20a414=_0x579cf2[_0x22ac31(0xa3)][_0x22ac31(0x9a)](_0x22ac31(0xa4)),_0x22e19a=_0x579cf2[_0x22ac31(0x82)][_0x22ac31(0x9a)](_0x22ac31(0x9e));let _0x388c0b=_0x579cf2[_0x22ac31(0x6a)][_0x22ac31(0x9a)](_0x22ac31(0x71))||[..._0x5e07a8];_0x579cf2[_0x22ac31(0xa3)][_0x22ac31(0x77)](_0x22ac31(0x97))||(_0x388c0b=_0x388c0b[_0x22ac31(0x8a)](_0x11b215=>_0x22ac31(0xa0)!=_0x11b215));const _0x141558=new _0x236273(_0x579cf2[_0x22ac31(0x6d)],{'availableActions':_0x388c0b,'showApplyButton':!0x0,'showSuggestButton':!!_0x22e19a});return _0x141558[_0x22ac31(0xa1)](_0x22ac31(0xa6))['to'](this),_0x141558[_0x22ac31(0x96)](..._0xbabe1)['to'](this),_0x141558[_0x22ac31(0x96)](_0x22ac31(0x7c),_0x22ac31(0x88))['to'](this),_0x20a414[_0x22ac31(0x96)](_0x22ac31(0xa5))['to'](this),_0x141558['on'](_0x22ac31(0x6f),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x141558['on'](_0x22ac31(0xa0),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x141558['on'](_0x22ac31(0xa8),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x22e19a&&_0x141558[_0x22ac31(0xa1)](_0x22ac31(0x8f))['to'](_0x22e19a,_0x22ac31(0x9b)),_0x141558[_0x22ac31(0x8e)](),_0x141558;}[_0xeb9d5c(0x9d)](_0xf3829e){const _0x2208df=_0xeb9d5c,_0x1b3fa6=this[_0x2208df(0x7e)],_0x2e3bf0=_0x1b3fa6[_0x2208df(0xa3)][_0x2208df(0x9a)](_0x2208df(0x91))[_0x2208df(0xa2)][_0x2208df(0x75)][_0x2208df(0x84)];this[_0x2208df(0x72)][_0x2208df(0x66)](_0xf3829e),_0x2e3bf0[_0x2208df(0x77)](this[_0x2208df(0x72)][_0x2208df(0x86)])||(_0x2e3bf0[_0x2208df(0x8b)]([this[_0x2208df(0x72)][_0x2208df(0x86)],this[_0x2208df(0x72)][_0x2208df(0x85)]],0x0),_0x1b3fa6[_0x2208df(0xa3)][_0x2208df(0x9a)](_0x2208df(0xa4))[_0x2208df(0x78)](_0x2208df(0x6c),()=>{const _0x3c4c0d=_0x2208df;_0x2e3bf0[_0x3c4c0d(0x73)](this[_0x3c4c0d(0x72)][_0x3c4c0d(0x86)]),_0x2e3bf0[_0x3c4c0d(0x73)](this[_0x3c4c0d(0x72)][_0x3c4c0d(0x85)]);}));}[_0xeb9d5c(0x95)](){const _0x5704de=_0xeb9d5c;this[_0x5704de(0x72)][_0x5704de(0x99)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2707df=_0x2f2c;(function(_0x13eceb,_0x6db669){const _0x52cc8e=_0x2f2c,_0xbd357c=_0x13eceb();while(!![]){try{const _0x415bdd=parseInt(_0x52cc8e(0x2a8))/0x1*(parseInt(_0x52cc8e(0x147))/0x2)+-parseInt(_0x52cc8e(0x211))/0x3*(-parseInt(_0x52cc8e(0x16d))/0x4)+-parseInt(_0x52cc8e(0x179))/0x5+-parseInt(_0x52cc8e(0x1fe))/0x6*(parseInt(_0x52cc8e(0x1ee))/0x7)+-parseInt(_0x52cc8e(0x1f7))/0x8*(parseInt(_0x52cc8e(0x22a))/0x9)+parseInt(_0x52cc8e(0x24f))/0xa*(-parseInt(_0x52cc8e(0x168))/0xb)+parseInt(_0x52cc8e(0x2aa))/0xc;if(_0x415bdd===_0x6db669)break;else _0xbd357c['push'](_0xbd357c['shift']());}catch(_0x3a3fd9){_0xbd357c['push'](_0xbd357c['shift']());}}}(_0x5978,0x286db));import{ContextPlugin as _0x59bea8,Editor as _0x1c4391}from'ckeditor5/src/core.js';import{BodyCollection as _0xdec14e}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3e6794,logError as _0x456f50,scrollViewportToShowTarget as _0x3c3e16,uid as _0x316623}from'ckeditor5/src/utils.js';import{AIConnector as _0xab48b}from'../aicore/aiconnector.js';import{AITabs as _0x497072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2941e1}from'./model/aichatconversation.js';import{getTranslation as _0x5dc244}from'../aicore/utils/common-translations.js';import{AIModels as _0x45383a}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1707b4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x17b851,DATA_ID_MODEL_ATTRIBUTE as _0xf47352}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5978(){const _0x187ab2=['toggleReasoning','closeSourceResourceBalloon','forEach','close','removeSelectionFromChatContext','addCurrentDocumentToChatContext','view','version','$graveyard','revert','resetConversationTitle','getInteraction','findIndex','ai-chat-missing-channel-id','editing','addFeedItemAISuggestion','sources','createReply','updateContent','createRange','isDisabled','_aiChatBalloonShowDiff','like','chat','change','_createFromRanges','_removeFromContext','sourcePosition','ai-chat-url-upload-failed','ai-chat-conversation-start-failed','_batchToChanges','maxOffset','clearConversationContextUI','startsWith','_toggleReasoning','Liked\x20response','reasoningFinished','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateFeedItemAIReplyContent','type','add','bind','detachFromDom','get','addResourceToContext','static','_updateReplyContent','updateResourceState','addContextOptionsChanged','_toggleWebSearch','_stopLastInteraction','removed','_updateRatings','showDiff','config','getChild','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','indexes','scrollFeedToSuggestion','getInteractionAndReplyById','getAll','handleUserInteraction','ai-chat-source-resources-load-failed','path','updateCapabilities','source','ai-chat-resource-load-failed','ai-chat-invalid-request','applyOperation','AI_CHAT_GENERIC_ERROR','_getDocumentRangeForReplyChanges','modelSelected','marker','current-document','interactionDestroyed','_insertSuggestion','documentContextContent','delete','ai-chat-context-unsupported-type','AI_CHAT_RESOURCE_LOAD_FAILED','contextSent','error','set','AIChatUI','contextItems','finishInteraction','toolDataReceived','getChildAtOffset','AIConnector','history','requires','getFirstRange','showFakeVisualSelection','setLoadingMessage','indexOf','_getAIChatInteractionAPI','parse','areActionsDisabled','setIsMaximized','query','filter','987zENFjH','_scrollToSuggestionRange','resourceId','AI_CHAT_UNTITLED_CONVERSATION','uiId','main','howMany','document','_bodyCollection','103272Cckrbl','abortPromptStream','ai.models','getOperations','createConversation','selectModel','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','10242nbvLab','isModelAvailable','replyCreated','addCurrentDocumentToContext','context','modification','_rejectSuggestion','showNext','_getLastCreatedConversationId','removeSelectionFromContext','changes','mouseOverSuggestion','clearPendingContextUI','_integrateEditor','changeGroups','_aiConnector','addFeedItemError','activateTab','getSelectionText','3ZzenAw','isOfficialPlugin','getContentParts','showChangeInText','resetMessageInput','loadConversation','Disliked\x20response','loadSourceResources','ai-chat-conversation-not-found','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','isLoading','selection','load','AI_CHAT_CONTEXT_INVALID_DATA','lastCreated','sourceId','sourceResourcesLoaded','batch','resource','data','message','toString','_applyOperationsAsSuggestions','capabilitiesUpdated','81BVfivu','ai-chat-context-file-too-large','toggleLoadingSkeleton','getDocumentContext','TrackChangesEditing','text','callback','index','toViewRange','resetWebSearchState','_showConversationHistory','_currentPreviewedChangeGroup','resetReasoningState','setFeedItemAIReplySuggestionPartActive','length','updateConversationTitle','previous','startAutoScroll','removeFeedInteraction','listenTo','setConversationContext','anchorId','setContextItemLoading','outdated','ai-chat-context-unsupported-file-type','_aiChatModels','addFeedItemStaticMessage','focusPromptInput','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','uid','isUploadInProgress','disableControls','updateFeedItemAIReplySources','getRanges','resize','addUrlToContext','insertSuggestion','490gjRiLm','hideFakeVisualSelection','getTransformedByOperation','executeCustomItemCallback','hasChanges','contextItem','attachToDom','stop','sendUserMessage','next','isDocumentOperation','getReply','addContextItem','includes','rejectSuggestion','updateCurrentDocumentInContext','isInContext','replyId','collaboration.channelId','isPremiumPlugin','push','from','addSelectionToContext','setConversationTitle','range','messageId','mapper','ai-chat-conversation-init-failed','DocumentCompare','ai-conversation-','addDocumentToContext','pending','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','accepted','setChangeGroupState','clearLoadingMessage','node','getAttribute','createPositionAt','setAddContextOptions','removeFromContext','log','interactionId','end','upsertAIChatRating','model','uploadProgressChanged','isCurrentDocumentInConversation','setState','addFeedItemAIReply','isCurrentDocumentInContext','_startConversationSafely','_handleUIUserMessage','activeConversation','TrackChanges','setModel','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_ABORTED_MESSAGE','AIChatController','addFileToContext','ai-no-track-changes','ai.chat.initialConversation','state','AIChatBalloon','delegate','contextItemAdded','handleRemovedConversation','getPath','resizeTabs','partIndex','Undo','fetchConversation','afterInit','replies','unshift','startInteraction','_aiChatBalloon','start','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','fetchConversations','_handleStartConversation','viewRangeToDom','rejected','new','resourceStateChanged','conversationInitialized','setIsUploadInProgress','lastInteraction','279893TxuvEE','toggleWebSearch','5862996JsZepf','getDiff','replyContentUpdated','content','startConversation','baseVersion','currentReply','setFeedItemRenderingStrategy','alignToTop','ai-chat-file-upload-failed','addFeedItemCustomElement','_logError','editors','resources','applySuggestion','addSelectionToChatContext','options','ai.chat.context','aiChatBalloon','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','ai-chat-context-file-too-many-pages','mouseLeaveSuggestion','webSearchStarted','AI_CHAT_CONTEXT_FILE_TOO_LARGE','AI_BALLOON_HEADER_TITLE','plugins','ai-chat-controller-no-active-conversation','destroy','interactionStarted','createPositionFromPath','root','ai-chat-context-form-data-size-limits-exceeded','ai-chat-controller-mouse-over','undo','createdAt','Showing\x20conversation\x20history...','updateFeedItemAIReplySuggestionContent','nextSibling','showPrevious','reasoningStarted','split','data-id','AIEditing','2ogmaRj','sessionId','getGroupId','_openBalloonFor','addOperation','streaming','locale','has','_applySuggestion','addFilesToContext','getRoot','selectedModel','interactionCreated','addFeedItemUserMessage','getChildren','_aiEditing','isStarted','sendMessage','AI_CHAT_INVALID_REQUEST','enableControls','ready','getDocumentData','getConversation','children','_getPresentableSiblingContentPartIndex','domConverter','map','done','open','contextItemLoadingEnded','redo','ai.models.defaultModelId','setSelectedModel','43241WPJVZf','commands','removeContextItem','dislike','_registerToolDataCallback','147792LhlNCT','stopInteraction','AITabs','find','pluginName','resizedTabs','slice','populateSourceResourceBalloon','_flushLastInteractionUI','ai-request-aborted','prepareLoadingMessage','_getUserPresentableContentPartDocumentRange','451710NZQkhF','replyChangeGroupStateUpdated','cloneNode','dialogClosed','_setIsMaximized','rootName','init','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_aiChatUi','remove','ai-chat-context-invalid-data','toggleSuggestionDisplayMode','addFeedInteractionHeader','webSearchFinished','getConversations','interactionFinished'];_0x5978=function(){return _0x187ab2;};return _0x5978();}import{fixMarkerOperationOldRange as _0x36aead,getOperationsFromReply as _0x4999d2}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2ef85e,getMinimalSelection as _0x3bd3fe}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x2f2c(_0x4bcb44,_0xbefaa3){const _0x597803=_0x5978();return _0x2f2c=function(_0x2f2c65,_0x1ab100){_0x2f2c65=_0x2f2c65-0x132;let _0x3e07f2=_0x597803[_0x2f2c65];return _0x3e07f2;},_0x2f2c(_0x4bcb44,_0xbefaa3);}import{ModelRange as _0x5eca56,_DetachOperation as _0x127f9a}from'ckeditor5/src/engine.js';import{findOne as _0x9e0d6a,getAttribute as _0x8217c7,serialize as _0x1bc086,Document as _0x5edf30,findByAttribute as _0x5933e4}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x59bea8{[_0x2707df(0x156)];[_0x2707df(0x20d)];[_0x2707df(0x181)];[_0x2707df(0x243)];[_0x2707df(0x29b)];[_0x2707df(0x1a7)]=new Map();[_0x2707df(0x235)]=null;[_0x2707df(0x1f6)];static get[_0x2707df(0x1e3)](){return[_0xab48b,_0x17b851];}static get[_0x2707df(0x171)](){const _0xbf1950=_0x2707df;return _0xbf1950(0x289);}static get[_0x2707df(0x212)](){return!0x0;}static get[_0x2707df(0x262)](){return!0x0;}[_0x2707df(0x17f)](){const _0x3aa101=_0x2707df;this[_0x3aa101(0x1f6)]=new _0xdec14e(this[_0x3aa101(0x202)][_0x3aa101(0x14d)]),this[_0x3aa101(0x1f6)][_0x3aa101(0x255)](),this[_0x3aa101(0x20d)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x1e1)),this[_0x3aa101(0x181)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x1dc)),this[_0x3aa101(0x156)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x146)),this[_0x3aa101(0x243)]=new _0x45383a({'connector':this[_0x3aa101(0x20d)],'config':this[_0x3aa101(0x202)][_0x3aa101(0x1bf)][_0x3aa101(0x1b4)](_0x3aa101(0x1f9)),'locale':this[_0x3aa101(0x202)][_0x3aa101(0x14d)]});const _0x223571=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x16f));this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2ae),()=>{const _0x4ff2a9=_0x3aa101;this[_0x4ff2a9(0x282)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x257),(_0x26825a,_0x148198)=>{const _0x53f381=_0x3aa101;this[_0x53f381(0x283)]({'userMessage':_0x148198});}),this[_0x3aa101(0x23d)](_0x223571,_0x3aa101(0x172),(_0x24efbe,_0x1e920c)=>{const _0x378ceb=_0x3aa101;this[_0x378ceb(0x17d)](_0x1e920c);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x293),()=>{const _0x469bb9=_0x3aa101;_0x223571[_0x469bb9(0x24c)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1f8),async()=>{const _0x32cb10=_0x3aa101;await this[_0x32cb10(0x1bb)](),await this[_0x32cb10(0x175)](),this[_0x32cb10(0x18d)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x26d),()=>{const _0xf62292=_0x3aa101;this[_0xf62292(0x18e)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x28a),(_0x1c291d,_0x2e6ef5)=>{const _0x29edaf=_0x3aa101;this[_0x29edaf(0x284)]?.[_0x29edaf(0x150)](Array[_0x29edaf(0x264)](_0x2e6ef5));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x24d),(_0x4b2d96,_0x47fb6e)=>{const _0x4d1549=_0x3aa101;this[_0x4d1549(0x284)]?.[_0x4d1549(0x24d)](_0x47fb6e);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x252),(_0x13be0a,_0x33a8f3)=>{const _0x4684e5=_0x3aa101;_0x33a8f3[_0x4684e5(0x230)](this[_0x4684e5(0x202)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1b5),(_0x55f82a,_0x5afd90)=>{const _0x3e5ee9=_0x3aa101;this[_0x3e5ee9(0x284)]?.[_0x3e5ee9(0x1b5)](_0x5afd90[_0x3e5ee9(0x1ca)],_0x5afd90[_0x3e5ee9(0x224)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x16a),(_0xfb409f,_0x1a729a)=>{const _0x4a1dc9=_0x3aa101;this[_0x4a1dc9(0x1a3)](_0x1a729a);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x218),(_0x117f0a,_0x3e9ed7)=>{const _0x29e1c3=_0x3aa101;this[_0x29e1c3(0x284)]?.[_0x29e1c3(0x218)](_0x3e9ed7[_0x29e1c3(0x221)],_0x3e9ed7[_0x29e1c3(0x1ec)],_0x3e9ed7[_0x29e1c3(0x247)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2a9),()=>{const _0xc6640a=_0x3aa101;this[_0xc6640a(0x1ba)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x189),()=>{const _0x2ee5e8=_0x3aa101;this[_0x2ee5e8(0x1ab)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1fc),(_0xa8fee3,_0x4a0bed)=>{const _0x35d4c9=_0x3aa101;this[_0x35d4c9(0x284)]?.[_0x35d4c9(0x286)](_0x4a0bed);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x19f),(_0x40fe2c,{replyId:_0x4ebb2e})=>{const _0x46cdb5=_0x3aa101;console[_0x46cdb5(0x278)](_0x46cdb5(0x1ac),_0x4ebb2e);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x16b),(_0x48c3a0,{replyId:_0x55d44d})=>{const _0x1b50f5=_0x3aa101;console[_0x1b50f5(0x278)](_0x1b50f5(0x217),_0x55d44d);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x24e),(_0x410e75,_0x127640)=>{const _0x357b63=_0x3aa101;this[_0x357b63(0x1d4)](_0x127640);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x214),(_0x476911,{replyId:_0x7825b4,partIndex:_0x186eee})=>{const _0x3e06cf=_0x3aa101;this[_0x3e06cf(0x19e)]=this[_0x3e06cf(0x181)][_0x3e06cf(0x1be)],this[_0x3e06cf(0x14a)](_0x7825b4,_0x186eee);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x209),(_0x40fe0c,{replyId:_0x49c6ae,partIndex:_0x14bea1})=>{const _0x3d346e=_0x3aa101,_0x5ee70d=this[_0x3d346e(0x1cf)](_0x49c6ae,_0x14bea1);_0x5ee70d&&_0x3d346e(0x191)!=_0x5ee70d[_0x3d346e(0x267)][_0x3d346e(0x13a)][_0x3d346e(0x17e)]&&this[_0x3d346e(0x156)][_0x3d346e(0x1e5)]([_0x5ee70d[_0x3d346e(0x267)]],_0x3d346e(0x13c));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2bf),()=>{const _0x382520=_0x3aa101;this[_0x382520(0x156)][_0x382520(0x250)](_0x382520(0x13c));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2b8),(_0x5da025,_0x25d0cc)=>{const _0x1b15c8=_0x3aa101;this[_0x1b15c8(0x156)][_0x1b15c8(0x250)](_0x1b15c8(0x13c)),this[_0x1b15c8(0x14f)](_0x25d0cc);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x184),async(_0x44263a,{replyId:_0xa7471,showDiff:_0xb99e13})=>{const _0x38f7c2=_0x3aa101,{reply:_0x43213b}=this[_0x38f7c2(0x1c4)](_0xa7471),_0xb6e691=_0x43213b[_0x38f7c2(0x213)]({'showDiff':_0xb99e13});await this[_0x38f7c2(0x181)][_0x38f7c2(0x140)]({'id':_0x43213b['id'],'parts':_0xb6e691,'renderingStrategy':_0x38f7c2(0x1b6)});}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x25d),(_0x4f102d,{replyId:_0x534166,partIndex:_0x1f83f3})=>{const _0x35b6eb=_0x3aa101;this[_0x35b6eb(0x204)]({'replyId':_0x534166,'partIndex':_0x1f83f3}),this[_0x35b6eb(0x156)][_0x35b6eb(0x250)](_0x35b6eb(0x13c));}),this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x14e)](_0x3aa101(0x28e))&&(this[_0x3aa101(0x29b)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x28e)),this[_0x3aa101(0x1db)](_0x3aa101(0x19e),!0x1),this[_0x3aa101(0x29b)][_0x3aa101(0x1b2)](_0x3aa101(0x1be))['to'](this,_0x3aa101(0x19e)),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x184),()=>{const _0x4a727a=_0x3aa101,{replyId:_0x28f39f,partIndex:_0x37408e}=this[_0x4a727a(0x235)];this[_0x4a727a(0x19e)]=!this[_0x4a727a(0x19e)];const {reply:_0x2afb86}=this[_0x4a727a(0x1c4)](_0x28f39f),_0x26306a=_0x2afb86[_0x4a727a(0x213)]({'showDiff':this[_0x4a727a(0x19e)],'groupIndex':_0x37408e});this[_0x4a727a(0x29b)][_0x4a727a(0x19b)]({'part':_0x26306a[0x0],'renderingStrategy':_0x4a727a(0x1b6),'keepErrors':!0x0});}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x2b8),()=>{const _0x3b52ee=_0x3aa101,{replyId:_0x7572a2,partIndex:_0x4b721a}=this[_0x3b52ee(0x235)];this[_0x3b52ee(0x14f)]({'replyId':_0x7572a2,'partIndex':_0x4b721a}),this[_0x3b52ee(0x29b)][_0x3b52ee(0x27f)](_0x3b52ee(0x270));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x24e),()=>{const _0x5a8717=_0x3aa101,{replyId:_0x198a84,partIndex:_0x222e0a}=this[_0x5a8717(0x235)];this[_0x5a8717(0x1d4)]({'replyId':_0x198a84,'partIndex':_0x222e0a}),this[_0x5a8717(0x29b)][_0x5a8717(0x27f)](_0x5a8717(0x270));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x25d),()=>{const _0x5708fe=_0x3aa101,{replyId:_0x2bc3ba,partIndex:_0x4d5e27}=this[_0x5708fe(0x235)];this[_0x5708fe(0x204)]({'replyId':_0x2bc3ba,'partIndex':_0x4d5e27}),this[_0x5708fe(0x29b)][_0x5708fe(0x27f)](_0x5708fe(0x2a2));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x205),()=>{const _0x22da3f=_0x3aa101,{replyId:_0x512ef8,partIndex:_0x4034c5}=this[_0x22da3f(0x235)],_0x39dce1=this[_0x22da3f(0x15f)](_0x512ef8,_0x4034c5,_0x22da3f(0x258));null!==_0x39dce1&&this[_0x22da3f(0x14a)](_0x512ef8,_0x39dce1);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x142),()=>{const _0x10381e=_0x3aa101,{replyId:_0x4fd081,partIndex:_0x438c69}=this[_0x10381e(0x235)],_0x4bc257=this[_0x10381e(0x15f)](_0x4fd081,_0x438c69,_0x10381e(0x23a));null!==_0x4bc257&&this[_0x10381e(0x14a)](_0x4fd081,_0x4bc257);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x17c),(_0x398930,{id:_0x2592d8})=>{const _0x7c3d3=_0x3aa101;if(_0x7c3d3(0x2bc)!==_0x2592d8)return;const {replyId:_0x44a88a,partIndex:_0x5730c1}=this[_0x7c3d3(0x235)];this[_0x7c3d3(0x235)]=null,this[_0x7c3d3(0x181)][_0x7c3d3(0x237)]({'id':_0x44a88a,'index':_0x5730c1,'isActive':!0x1});}));}async[_0x2707df(0x297)](){const _0x4f9ca2=_0x2707df;this[_0x4f9ca2(0x202)]instanceof _0x1c4391?this[_0x4f9ca2(0x20b)](this[_0x4f9ca2(0x202)]):this[_0x4f9ca2(0x23d)](this[_0x4f9ca2(0x202)][_0x4f9ca2(0x2b6)],_0x4f9ca2(0x1b1),(_0x5e7391,_0x2705d8)=>{const _0x537282=_0x4f9ca2;_0x2705d8['on'](_0x537282(0x15b),()=>{const _0x53d227=_0x537282;this[_0x53d227(0x20b)](_0x2705d8);});});const _0x1f6e16=this[_0x4f9ca2(0x202)][_0x4f9ca2(0x1bf)][_0x4f9ca2(0x1b4)](_0x4f9ca2(0x28c));let _0x478ab3=_0x1f6e16;if(_0x4f9ca2(0x220)!=_0x1f6e16||(_0x478ab3=await this[_0x4f9ca2(0x206)](),_0x478ab3))return _0x4f9ca2(0x2a3)==_0x478ab3?this[_0x4f9ca2(0x282)]():this[_0x4f9ca2(0x216)](_0x478ab3);}async[_0x2707df(0x137)](){const _0x3889f6=_0x2707df;return await this[_0x3889f6(0x1bb)](),this[_0x3889f6(0x1f6)][_0x3889f6(0x1b3)](),super[_0x3889f6(0x137)]();}[_0x2707df(0x1d4)](_0x56ea51){const _0x273466=_0x2707df,_0x3c5179=_0x1707b4(this[_0x273466(0x202)]);if(!_0x3c5179[_0x273466(0x135)][_0x273466(0x14e)](_0x273466(0x285)))throw new _0x3e6794(_0x273466(0x28b),null);const _0x27e1c8=this[_0x273466(0x202)][_0x273466(0x135)][_0x273466(0x1b4)](_0x273466(0x26b)),{reply:_0x4c473f,interaction:_0x5e9678}=this[_0x273466(0x1c4)](_0x56ea51[_0x273466(0x260)]),_0xb88da4=this[_0x273466(0x1cf)](_0x56ea51[_0x273466(0x260)],_0x56ea51[_0x273466(0x294)]),_0xfe27fd=void 0x0!==_0x56ea51[_0x273466(0x294)]?[_0x4c473f[_0x273466(0x20c)][_0x56ea51[_0x273466(0x294)]]]:_0x4c473f[_0x273466(0x20c)][_0x273466(0x1ed)](_0x37e41e=>_0x273466(0x26e)==_0x37e41e[_0x273466(0x28d)]),_0x504b43=_0xfe27fd[_0x273466(0x161)](_0x4eae87=>_0x4c473f[_0x273466(0x20c)][_0x273466(0x1e7)](_0x4eae87));if(!_0xb88da4||_0x273466(0x191)==_0xb88da4[_0x273466(0x267)][_0x273466(0x13a)][_0x273466(0x17e)])return void _0x504b43[_0x273466(0x18b)](_0x108e32=>_0x4c473f[_0x273466(0x271)](_0x108e32,_0x273466(0x241)));_0x504b43[_0x273466(0x18b)](_0x347dfe=>_0x4c473f[_0x273466(0x271)](_0x347dfe,_0x273466(0x270)));const _0x312087=_0x4999d2({'editor':_0x3c5179,'reply':_0x4c473f,'interaction':_0x5e9678,'groups':_0xfe27fd,'transform':!0x0,'documentCompare':_0x27e1c8,'documentCompareOptions':{'anchor':_0x273466(0x1f3),'markDeletions':!0x0}});let _0xb3920f;_0xb88da4&&this[_0x273466(0x1ef)](_0xb88da4[_0x273466(0x267)]),_0x3c5179[_0x273466(0x27c)][_0x273466(0x1a1)](_0x3f6eeb=>{const _0x3fa26f=_0x273466;_0xb3920f=_0x3f6eeb[_0x3fa26f(0x223)],_0x3c5179[_0x3fa26f(0x135)][_0x3fa26f(0x1b4)](_0x3fa26f(0x22e))[_0x3fa26f(0x228)](_0x312087),this[_0x3fa26f(0x156)][_0x3fa26f(0x250)](_0x3fa26f(0x13c));}),this[_0x273466(0x1a7)][_0x273466(0x1db)](_0xb3920f,{'interactionId':_0x5e9678['id'],'replyId':_0x4c473f['id'],'indexes':_0x504b43[_0x273466(0x173)]()}),this[_0x273466(0x1bd)](_0x4c473f);}[_0x2707df(0x14f)](_0x298eb1){const _0xa95106=_0x2707df,_0x2b791e=_0x1707b4(this[_0xa95106(0x202)]),_0x65839b=this[_0xa95106(0x202)][_0xa95106(0x135)][_0xa95106(0x1b4)](_0x17b851),{reply:_0x58ec9c,interaction:_0x16b619}=this[_0xa95106(0x1c4)](_0x298eb1[_0xa95106(0x260)]),_0x24b7f5=this[_0xa95106(0x1cf)](_0x298eb1[_0xa95106(0x260)],_0x298eb1[_0xa95106(0x294)]),_0x401a75=void 0x0!==_0x298eb1[_0xa95106(0x294)]?[_0x58ec9c[_0xa95106(0x20c)][_0x298eb1[_0xa95106(0x294)]]]:_0x58ec9c[_0xa95106(0x20c)][_0xa95106(0x1ed)](_0x440a9c=>_0xa95106(0x26e)==_0x440a9c[_0xa95106(0x28d)]),_0x24c439=_0x401a75[_0xa95106(0x161)](_0x4c39b4=>_0x58ec9c[_0xa95106(0x20c)][_0xa95106(0x1e7)](_0x4c39b4));if(!_0x24b7f5||_0xa95106(0x191)==_0x24b7f5[_0xa95106(0x267)][_0xa95106(0x13a)][_0xa95106(0x17e)])return void _0x24c439[_0xa95106(0x18b)](_0x15a244=>_0x58ec9c[_0xa95106(0x271)](_0x15a244,_0xa95106(0x241)));_0x24c439[_0xa95106(0x18b)](_0x1b7545=>_0x58ec9c[_0xa95106(0x271)](_0x1b7545,_0xa95106(0x270)));const _0x295943=_0x4999d2({'editor':_0x2b791e,'reply':_0x58ec9c,'interaction':_0x16b619,'groups':_0x401a75,'transform':!0x0,'documentCompare':_0x65839b,'documentCompareOptions':{'anchor':_0xa95106(0x1f3),'markDeletions':!0x1}});let _0xe8c6c3;_0x24b7f5&&this[_0xa95106(0x1ef)](_0x24b7f5[_0xa95106(0x267)]),_0x2b791e[_0xa95106(0x27c)][_0xa95106(0x1a1)](_0xab1101=>{const _0x5352e8=_0xa95106;_0xe8c6c3=_0xab1101[_0x5352e8(0x223)];for(const _0x592f45 of _0x295943)_0x592f45[_0x5352e8(0x2af)]=_0x2b791e[_0x5352e8(0x27c)][_0x5352e8(0x1f5)][_0x5352e8(0x190)],_0x36aead(_0x2b791e,_0x592f45),_0xab1101[_0x5352e8(0x223)][_0x5352e8(0x14b)](_0x592f45),_0x2b791e[_0x5352e8(0x27c)][_0x5352e8(0x1cd)](_0x592f45);}),this[_0xa95106(0x1a7)][_0xa95106(0x1db)](_0xe8c6c3,{'interactionId':_0x16b619['id'],'replyId':_0x58ec9c['id'],'indexes':_0x24c439[_0xa95106(0x173)]()}),this[_0xa95106(0x1bd)](_0x58ec9c);}[_0x2707df(0x204)](_0x4cbd4d){const _0x11f4d1=_0x2707df,{reply:_0x199823}=this[_0x11f4d1(0x1c4)](_0x4cbd4d[_0x11f4d1(0x260)]);_0x199823[_0x11f4d1(0x271)](_0x4cbd4d[_0x11f4d1(0x294)],_0x11f4d1(0x2a2));}[_0x2707df(0x14a)](_0x5dc387,_0x408a1d){const _0x583ff8=_0x2707df;if(!this[_0x583ff8(0x29b)])return;const {reply:_0x221213}=this[_0x583ff8(0x1c4)](_0x5dc387),_0xf314c1=_0x221213[_0x583ff8(0x213)]({'showDiff':this[_0x583ff8(0x19e)]});let _0x3a5c0c,_0x587bb6;if(void 0x0!==_0x408a1d?(_0x587bb6=_0xf314c1[_0x583ff8(0x170)](_0x3e56ee=>_0x3e56ee[_0x583ff8(0x231)]==_0x408a1d),_0x3a5c0c=_0x587bb6?.[_0x583ff8(0x231)]):(_0x587bb6=_0xf314c1[0x0],_0x3a5c0c=_0x587bb6[_0x583ff8(0x231)]),this[_0x583ff8(0x235)]?.[_0x583ff8(0x260)]==_0x5dc387&&this[_0x583ff8(0x235)]?.[_0x583ff8(0x294)]==_0x3a5c0c)return;const _0x32ce73=this[_0x583ff8(0x178)](_0x5dc387,_0x221213,_0x587bb6);if(!_0x32ce73)return void this[_0x583ff8(0x29b)][_0x583ff8(0x18c)]();this[_0x583ff8(0x235)]={'replyId':_0x5dc387,'partIndex':_0x3a5c0c},this[_0x583ff8(0x1ef)](_0x32ce73,!0x0);const _0x4ce7b0=this[_0x583ff8(0x15f)](_0x5dc387,_0x3a5c0c,_0x583ff8(0x258));this[_0x583ff8(0x29b)][_0x583ff8(0x19b)]({'part':_0x587bb6,'renderingStrategy':_0x583ff8(0x1b6)}),this[_0x583ff8(0x29b)][_0x583ff8(0x163)]({'index':_0x3a5c0c,'title':_0x5dc244(this[_0x583ff8(0x202)][_0x583ff8(0x14d)],_0x583ff8(0x134),(_0x3a5c0c+0x1)[_0x583ff8(0x227)]()),'showRotator':null!==_0x4ce7b0,'ranges':[_0x32ce73],'areActionsDisabled':_0x221213[_0x583ff8(0x1ea)]}),this[_0x583ff8(0x29b)][_0x583ff8(0x27f)](_0x583ff8(0x26e)),this[_0x583ff8(0x181)][_0x583ff8(0x1c3)](_0x5dc387,_0x3a5c0c),this[_0x583ff8(0x181)][_0x583ff8(0x237)]({'id':_0x5dc387,'index':_0x3a5c0c,'isActive':!0x0});}[_0x2707df(0x15f)](_0x56f8f9,_0x5b2caa,_0x4db44d){const _0x290969=_0x2707df,{reply:_0x50df19}=this[_0x290969(0x1c4)](_0x56f8f9),_0x5edd8b=_0x50df19[_0x290969(0x213)]({'showDiff':this[_0x290969(0x19e)]});if(0x1==_0x5edd8b[_0x290969(0x238)])return null;const _0x2c4cd4=_0x5edd8b[_0x290969(0x195)](_0x392137=>_0x392137[_0x290969(0x231)]==_0x5b2caa),_0x58530a=_0x290969(0x258)==_0x4db44d?0x1:-0x1;let _0x87e9e=_0x5edd8b['at']((_0x2c4cd4+_0x58530a)%_0x5edd8b[_0x290969(0x238)])[_0x290969(0x231)],_0x2e2f8d=_0x5edd8b[_0x87e9e];for(;!this[_0x290969(0x178)](_0x56f8f9,_0x50df19,_0x2e2f8d);){if(_0x87e9e=_0x5edd8b['at']((_0x87e9e+_0x58530a)%_0x5edd8b[_0x290969(0x238)])[_0x290969(0x231)],_0x87e9e===_0x2c4cd4)return null;_0x2e2f8d=_0x5edd8b[_0x87e9e];}return _0x87e9e;}[_0x2707df(0x178)](_0x5b4eb6,_0xc41321,_0xb3533){const _0x36cf21=_0x2707df,_0x5de8ab=_0xc41321[_0x36cf21(0x20c)];if(!_0xb3533[_0x36cf21(0x253)])return null;const _0x3cfe53=_0x5de8ab[_0x36cf21(0x170)](_0x24541e=>_0x24541e[_0x36cf21(0x231)]==_0xb3533[_0x36cf21(0x231)]);if(_0x36cf21(0x26e)!==_0x3cfe53?.[_0x36cf21(0x28d)])return null;const _0x3b891a=this[_0x36cf21(0x1cf)](_0x5b4eb6,_0xb3533[_0x36cf21(0x231)]);if(!_0x3b891a)return null;const {range:_0x3e760b,currentIndex:_0x2e0776}=_0x3b891a;return _0x36cf21(0x191)==_0x3e760b[_0x36cf21(0x13a)][_0x36cf21(0x17e)]?(_0xc41321[_0x36cf21(0x271)](_0x2e0776,_0x36cf21(0x241)),null):_0x3b891a[_0x36cf21(0x267)];}[_0x2707df(0x1cf)](_0x46378a,_0xf4483e){const _0x4bc2d3=_0x2707df,_0x48d7cb=_0x1707b4(this[_0x4bc2d3(0x202)]),{reply:_0x497936,interaction:_0x1541d8}=this[_0x4bc2d3(0x1c4)](_0x46378a),_0x2f7e35=_0x497936[_0x4bc2d3(0x20c)][_0x4bc2d3(0x1ed)](_0x304c3b=>_0x4bc2d3(0x26e)==_0x304c3b[_0x4bc2d3(0x28d)]),_0x3dae71=_0x2f7e35[_0x4bc2d3(0x161)](_0x33eded=>_0x497936[_0x4bc2d3(0x20c)][_0x4bc2d3(0x1e7)](_0x33eded));void 0x0===_0xf4483e&&(_0xf4483e=_0x3dae71[0x0]);const _0x401ea4=_0x3dae71[_0x4bc2d3(0x1e7)](_0xf4483e);if(-0x1==_0x401ea4)return null;const _0x95e3e=_0x2f7e35[_0x401ea4],_0x4b7c1f=new _0x5edf30([]),_0x2f1295=new _0x5edf30([]);for(const _0x502941 of _0x95e3e[_0x4bc2d3(0x208)])if(_0x4bc2d3(0x1bc)!=_0x502941[_0x4bc2d3(0x1b0)]&&_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x502941[_0x4bc2d3(0x273)][_0x4bc2d3(0x17b)](!0x0)),_0x4bc2d3(0x2a3)!=_0x502941[_0x4bc2d3(0x1b0)]){const _0x19e40e=_0x9e0d6a(_0x641a81=>_0x8217c7(_0x641a81,_0x4bc2d3(0x145))==_0x502941['id'],_0x497936[_0x4bc2d3(0x1d5)],!0x0);_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x19e40e[_0x4bc2d3(0x17b)](!0x0));}if(0x0==_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x238)]){if(_0x95e3e[_0x4bc2d3(0x208)][0x0][_0x4bc2d3(0x23f)]){const _0x583a7f=_0x5933e4(_0x4bc2d3(0x145),_0x95e3e[_0x4bc2d3(0x208)][0x0][_0x4bc2d3(0x23f)],_0x497936[_0x4bc2d3(0x1d5)]);_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x299)](_0x583a7f[_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x299)](_0x583a7f[_0x4bc2d3(0x17b)](!0x0)),_0x583a7f[_0x4bc2d3(0x141)]&&(_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x583a7f[_0x4bc2d3(0x141)][_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x583a7f[_0x4bc2d3(0x141)][_0x4bc2d3(0x17b)](!0x0)));}else{const _0x41fa3d=_0x497936[_0x4bc2d3(0x1d5)][_0x4bc2d3(0x15e)][0x0];if(!_0x41fa3d)return null;_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x41fa3d[_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x41fa3d[_0x4bc2d3(0x17b)](!0x0));}}const _0x222880=_0x1541d8[_0x4bc2d3(0x22d)](),_0x5b796e=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x222880[_0x4bc2d3(0x2ad)]),_0x1ab0c8=_0x1bc086(_0x4b7c1f),_0x483cd5=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x1ab0c8),_0x395af0=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x1ab0c8),_0x258ba2=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x275)](_0x483cd5,0x0),_0x5f4d17=_0x1bc086(_0x2f1295),_0x588885={'anchor':_0x258ba2,'markDeletions':!0x1},_0x44d439=_0x48d7cb[_0x4bc2d3(0x135)][_0x4bc2d3(0x1b4)](_0x17b851)[_0x4bc2d3(0x2ab)](_0x1ab0c8,_0x5f4d17,_0x588885)[_0x4bc2d3(0x1fa)]();if(!_0x44d439[_0x4bc2d3(0x238)])return null;_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1a1)](_0x422c38=>{const _0x991cbc=_0x4bc2d3;for(const _0x9c2c7a of _0x44d439)if(_0x991cbc(0x182)==_0x9c2c7a[_0x991cbc(0x1b0)]){const _0x1dd99a=_0x9c2c7a[_0x991cbc(0x1a4)],_0x23d1f4=_0x9c2c7a[_0x991cbc(0x1f4)],_0x411bbf=new _0x127f9a(_0x1dd99a,_0x23d1f4);_0x422c38[_0x991cbc(0x223)][_0x991cbc(0x14b)](_0x411bbf),_0x48d7cb[_0x991cbc(0x27c)][_0x991cbc(0x1cd)](_0x411bbf);}else _0x991cbc(0x1d1)!==_0x9c2c7a[_0x991cbc(0x1b0)]&&(_0x9c2c7a[_0x991cbc(0x2af)]=null,_0x9c2c7a[_0x991cbc(0x259)]=!0x1,_0x422c38[_0x991cbc(0x223)][_0x991cbc(0x14b)](_0x9c2c7a),_0x48d7cb[_0x991cbc(0x27c)][_0x991cbc(0x1cd)](_0x9c2c7a));});const _0x3c6dda=_0x3bd3fe(_0x48d7cb,_0x44d439,_0x483cd5);_0x2ef85e(_0x48d7cb[_0x4bc2d3(0x27c)],_0x3c6dda);const _0xff4dc4=_0x3c6dda[_0x4bc2d3(0x1e4)]()[_0x4bc2d3(0x29c)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0xcd5d85=_0x3c6dda[_0x4bc2d3(0x1e4)]()[_0x4bc2d3(0x27a)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0x39d009=[];let _0x3b80b4=_0x483cd5,_0x390d0d=_0x395af0;for(let _0x321b83=0x0;_0x321b83<_0xcd5d85[_0x4bc2d3(0x238)];_0x321b83++){const _0x445a7e=_0x3b80b4[_0x4bc2d3(0x1a8)]-_0xcd5d85[_0x321b83];_0x39d009[_0x321b83]=_0x390d0d[_0x4bc2d3(0x1a8)]-_0x445a7e,_0x3b80b4=_0x3b80b4[_0x4bc2d3(0x1e0)](_0xcd5d85[_0x321b83]),_0x390d0d=_0x390d0d[_0x4bc2d3(0x1e0)](_0x39d009[_0x321b83]);}const _0x33ce5c=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x19c)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x395af0,_0xff4dc4),_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x395af0,_0x39d009)),_0x405df9=_0x395af0[_0x4bc2d3(0x1c0)](0x0)[_0x4bc2d3(0x274)](_0xf47352),_0x5db95e=Array[_0x4bc2d3(0x264)](_0x5b796e[_0x4bc2d3(0x155)]())[_0x4bc2d3(0x170)](_0x4ff3c8=>_0x4ff3c8[_0x4bc2d3(0x274)](_0xf47352)==_0x405df9)[_0x4bc2d3(0x292)](),_0x593bc6=_0x33ce5c[_0x4bc2d3(0x29c)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0x472280=_0x33ce5c[_0x4bc2d3(0x27a)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)]();_0x593bc6[0x0]=_0x5db95e[0x0]+_0x593bc6[0x0],_0x472280[0x0]=_0x5db95e[0x0]+_0x472280[0x0];let _0x53e125=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x19c)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x151)](),_0x593bc6),_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x151)](),_0x472280));const _0xb11e3b=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x1e2)][_0x4bc2d3(0x1fa)](_0x222880[_0x4bc2d3(0x190)]);for(const _0x4f93be of _0xb11e3b)_0x53e125=_0x5eca56[_0x4bc2d3(0x1a2)](_0x53e125[_0x4bc2d3(0x251)](_0x4f93be));return{'range':_0x53e125,'currentIndex':_0xf4483e};}[_0x2707df(0x20b)](_0x50b06f){const _0x332cc9=_0x2707df;if(!_0x50b06f[_0x332cc9(0x135)][_0x332cc9(0x14e)](_0x332cc9(0x295)))return;const _0x1f3b70=_0x50b06f[_0x332cc9(0x169)][_0x332cc9(0x1b4)](_0x332cc9(0x13d)),_0x2e52ac=_0x50b06f[_0x332cc9(0x169)][_0x332cc9(0x1b4)](_0x332cc9(0x165));this[_0x332cc9(0x23d)](_0x1f3b70,_0x332cc9(0x192),(_0x1a3c41,_0x370f8d,_0x6269c6)=>{const _0x2fd86e=_0x332cc9,_0x58dd2f=this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1b4)](_0x370f8d);if(!_0x58dd2f)return;const _0x24c354=this[_0x2fd86e(0x284)][_0x2fd86e(0x194)](_0x58dd2f[_0x2fd86e(0x279)])[_0x2fd86e(0x25a)](_0x58dd2f[_0x2fd86e(0x260)]);_0x58dd2f[_0x2fd86e(0x1c2)][_0x2fd86e(0x18b)](_0x1178a8=>_0x24c354[_0x2fd86e(0x271)](_0x1178a8,_0x2fd86e(0x26e))),this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1d6)](_0x370f8d),this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1db)](_0x6269c6,_0x58dd2f);}),this[_0x332cc9(0x23d)](_0x2e52ac,_0x332cc9(0x192),(_0xaf20b,_0x4e13b5,_0x1d70fd)=>{const _0x40c7a7=_0x332cc9,_0x2969f1=this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1b4)](_0x4e13b5);if(!_0x2969f1)return;const _0xe61e11=this[_0x40c7a7(0x284)][_0x40c7a7(0x194)](_0x2969f1[_0x40c7a7(0x279)])[_0x40c7a7(0x25a)](_0x2969f1[_0x40c7a7(0x260)]);_0x2969f1[_0x40c7a7(0x1c2)][_0x40c7a7(0x18b)](_0x2b0756=>_0xe61e11[_0x40c7a7(0x271)](_0x2b0756,_0x40c7a7(0x270))),this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1d6)](_0x4e13b5),this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1db)](_0x1d70fd,_0x2969f1);});}async[_0x2707df(0x216)](_0x4c455c){const _0x3c6c44=_0x2707df;this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x14e)](_0x3c6c44(0x28e))&&this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x1b4)](_0x3c6c44(0x28e))[_0x3c6c44(0x18c)](),(this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x1b4)](_0x497072)[_0x3c6c44(0x18f)][_0x3c6c44(0x20f)](_0x3c6c44(0x1a0)),this[_0x3c6c44(0x181)][_0x3c6c44(0x2b1)](_0x3c6c44(0x1b6)),this[_0x3c6c44(0x181)][_0x3c6c44(0x22c)](!0x0),await this[_0x3c6c44(0x1bb)]());try{await this[_0x3c6c44(0x20d)][_0x3c6c44(0x296)](_0x4c455c)[_0x3c6c44(0x15d)](),await this[_0x3c6c44(0x282)](_0x4c455c),this[_0x3c6c44(0x239)]('\x20'),await this[_0x3c6c44(0x284)][_0x3c6c44(0x21e)](_0x4c455c,this[_0x3c6c44(0x156)][_0x3c6c44(0x148)]),this[_0x3c6c44(0x284)][_0x3c6c44(0x27e)]()&&this[_0x3c6c44(0x18e)]();}catch(_0xc502cc){this[_0x3c6c44(0x181)][_0x3c6c44(0x20e)]({'errorMessage':_0x5dc244(this[_0x3c6c44(0x202)][_0x3c6c44(0x14d)],_0x3c6c44(0x246)),'id':_0x4c455c}),this[_0x3c6c44(0x2b5)](new _0x3e6794(_0x3c6c44(0x219),this,{'error':_0xc502cc}));}finally{this[_0x3c6c44(0x181)][_0x3c6c44(0x23b)](),this[_0x3c6c44(0x181)][_0x3c6c44(0x2b1)](_0x3c6c44(0x14c)),this[_0x3c6c44(0x181)][_0x3c6c44(0x22c)](!0x1);}}async[_0x2707df(0x206)](){const _0x23fc79=_0x2707df,_0x590d7e=this[_0x23fc79(0x20d)][_0x23fc79(0x29f)](this[_0x23fc79(0x149)](),{'limit':0x1,'sortBy':_0x23fc79(0x13e)});try{const _0x3ca350=await _0x590d7e[_0x23fc79(0x187)]();return _0x3ca350[_0x23fc79(0x238)]?_0x3ca350[0x0]['id']:_0x23fc79(0x2a3);}catch(_0x4d0908){return this[_0x23fc79(0x181)][_0x23fc79(0x20e)]({'errorMessage':_0x5dc244(this[_0x23fc79(0x202)][_0x23fc79(0x14d)],_0x23fc79(0x246)),'id':_0x316623()}),this[_0x23fc79(0x2b5)](new _0x3e6794(_0x23fc79(0x26a),this,{'error':_0x4d0908})),this[_0x23fc79(0x181)][_0x23fc79(0x22c)](!0x1),this[_0x23fc79(0x181)][_0x23fc79(0x249)](),null;}}[_0x2707df(0x291)](_0x3e114a){const _0x40abf5=_0x2707df;this[_0x40abf5(0x284)]['id']===_0x3e114a&&this[_0x40abf5(0x282)]();}[_0x2707df(0x18e)](){const _0x43d78e=_0x2707df;this[_0x43d78e(0x284)]?.[_0x43d78e(0x201)](_0x5dc244(this[_0x43d78e(0x202)][_0x43d78e(0x14d)],_0x43d78e(0x29d)));}async[_0x2707df(0x2b9)](){const _0xf3f76e=_0x2707df,_0x338c6b=this[_0xf3f76e(0x156)][_0xf3f76e(0x210)]();this[_0xf3f76e(0x284)]?.[_0xf3f76e(0x265)](_0x338c6b),this[_0xf3f76e(0x18e)]();}[_0x2707df(0x18d)](){const _0x5a183c=_0x2707df;this[_0x5a183c(0x284)]?.[_0x5a183c(0x207)]();}[_0x2707df(0x245)](){const _0x48a9eb=_0x2707df;this[_0x48a9eb(0x181)][_0x48a9eb(0x245)]();}async[_0x2707df(0x2ae)](){const _0x33426f=_0x2707df;await this[_0x33426f(0x282)]();}async[_0x2707df(0x158)]({message:_0x458801,attributes:_0x2e438e}){const _0x42a12a=_0x2707df;await this[_0x42a12a(0x283)]({'userMessage':_0x458801,'attributes':_0x2e438e});}[_0x2707df(0x149)](){const _0xf8e042=_0x2707df,_0x34a645=this[_0xf8e042(0x202)][_0xf8e042(0x1bf)][_0xf8e042(0x1b4)](_0xf8e042(0x261));if(!_0x34a645)throw new _0x3e6794(_0xf8e042(0x196),this);return _0x34a645;}async[_0x2707df(0x282)](_0x33988f){const _0x374f93=_0x2707df;try{this[_0x374f93(0x181)][_0x374f93(0x15a)](),await this[_0x374f93(0x2a0)](_0x33988f);}catch(_0x40e3cd){this[_0x374f93(0x181)][_0x374f93(0x20e)]({'errorMessage':_0x5dc244(this[_0x374f93(0x202)][_0x374f93(0x14d)],_0x374f93(0x1ae)),'id':_0x33988f||_0x316623()}),console[_0x374f93(0x1da)](_0x40e3cd),this[_0x374f93(0x284)]=void 0x0,this[_0x374f93(0x181)][_0x374f93(0x249)]();}}async[_0x2707df(0x2a0)](_0x12deba){const _0x58a67d=_0x2707df;let _0x45fdcc;this[_0x58a67d(0x202)][_0x58a67d(0x135)][_0x58a67d(0x14e)](_0x58a67d(0x28e))&&this[_0x58a67d(0x202)][_0x58a67d(0x135)][_0x58a67d(0x1b4)](_0x58a67d(0x28e))[_0x58a67d(0x18c)](),_0x12deba||!this[_0x58a67d(0x284)]?_0x45fdcc=this[_0x58a67d(0x202)][_0x58a67d(0x1bf)][_0x58a67d(0x1b4)](_0x58a67d(0x166)):this[_0x58a67d(0x181)][_0x58a67d(0x1ff)]&&(_0x45fdcc=this[_0x58a67d(0x284)][_0x58a67d(0x152)]['id']),await this[_0x58a67d(0x1bb)]();const _0x10c766=this[_0x58a67d(0x149)](),_0x1cf38a=_0x12deba||_0x316623();this[_0x58a67d(0x284)]=new _0x2941e1({'connector':this[_0x58a67d(0x20d)],'chatModels':this[_0x58a67d(0x243)],'selectedModelId':_0x45fdcc,'conversationId':_0x1cf38a,'group':_0x10c766,'getEditor':()=>_0x1707b4(this[_0x58a67d(0x202)]),'isFromHistory':!!_0x12deba}),this[_0x58a67d(0x284)][_0x58a67d(0x28f)](_0x58a67d(0x1df),_0x58a67d(0x138))['to'](this),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2a5),(_0x2b6dee,_0x5e7b28)=>{const _0x3ecd34=_0x58a67d;this[_0x3ecd34(0x181)][_0x3ecd34(0x1fb)](_0x5e7b28),this[_0x3ecd34(0x181)][_0x3ecd34(0x215)](),this[_0x3ecd34(0x181)][_0x3ecd34(0x20a)](),this[_0x3ecd34(0x181)][_0x3ecd34(0x1a9)](),_0x12deba||(this[_0x3ecd34(0x181)][_0x3ecd34(0x193)](),this[_0x3ecd34(0x18e)]());}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x27d),(_0x3f10e5,_0x281560)=>{const _0x51b7df=_0x58a67d;this[_0x51b7df(0x181)][_0x51b7df(0x2a6)](_0x281560[_0x51b7df(0x248)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x153),(_0x23c7ab,_0xddbff6)=>{const _0x3cb527=_0x58a67d;this[_0x3cb527(0x181)][_0x3cb527(0x154)](_0xddbff6);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x132),()=>{const _0x25eb74=_0x58a67d,_0x3cb164=this[_0x25eb74(0x181)][_0x25eb74(0x177)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x25eb74(0x181)][_0x25eb74(0x1e6)](_0x3cb164);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x143),()=>{const _0x52a5b3=_0x58a67d,_0x34f4f3=this[_0x52a5b3(0x181)][_0x52a5b3(0x177)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x52a5b3(0x181)][_0x52a5b3(0x1e6)](_0x34f4f3);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x186),(_0x456a78,_0x1456cd)=>{const _0x7a142=_0x58a67d;this[_0x7a142(0x181)][_0x7a142(0x185)](_0x1456cd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1ad),(_0x3dc9fb,_0x1fdea3)=>{const _0x1cfedf=_0x58a67d;this[_0x1cfedf(0x181)][_0x1cfedf(0x185)](_0x1fdea3,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x138),()=>{const _0x74f0fd=_0x58a67d;this[_0x74f0fd(0x181)][_0x74f0fd(0x29a)]();}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x188),async()=>{const _0x1480f0=_0x58a67d;await this[_0x1480f0(0x181)][_0x1480f0(0x1de)]();}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d3),(_0x4c19ba,_0x2b9967)=>{const _0x650862=_0x58a67d;this[_0x650862(0x181)][_0x650862(0x23c)](_0x2b9967['id']);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x266),(_0x5b5c5a,_0x1b64d1,_0x3e419d)=>{const _0x390a99=_0x58a67d;this[_0x390a99(0x239)](_0x1b64d1,_0x3e419d);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x200),(_0x163da6,_0xbb9f98)=>{const _0x456484=_0x58a67d;_0x456484(0x22f)===_0xbb9f98[_0x456484(0x1b0)]?this[_0x456484(0x181)][_0x456484(0x280)](_0xbb9f98):this[_0x456484(0x181)][_0x456484(0x198)](_0xbb9f98);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2ac),async(_0x52c626,_0x15fe92)=>{const _0x4b658b=_0x58a67d;await this[_0x4b658b(0x1b7)]({'reply':_0x15fe92});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x17a),(_0x4ab0e4,{reply:_0x3af2aa,index:_0x48243e,state:_0x880de7})=>{const _0x3a808c=_0x58a67d;this[_0x3a808c(0x181)][_0x3a808c(0x21a)]({'id':_0x3af2aa['id'],'index':_0x48243e,'state':_0x880de7}),this[_0x3a808c(0x235)]?.[_0x3a808c(0x260)][_0x3a808c(0x25c)](_0x3af2aa['id'])&&this[_0x3a808c(0x235)]?.[_0x3a808c(0x294)]==_0x48243e&&this[_0x3a808c(0x29b)]?.[_0x3a808c(0x27f)](_0x880de7);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x290),(_0x4ebe9a,_0x56cde1)=>{const _0x16e8d7=_0x58a67d;if(this[_0x16e8d7(0x181)][_0x16e8d7(0x25b)](_0x56cde1[_0x16e8d7(0x254)],_0x56cde1[_0x16e8d7(0x21c)]),_0x16e8d7(0x21d)===_0x56cde1[_0x16e8d7(0x254)][_0x16e8d7(0x1b0)]){const _0x2dc0aa=[..._0x1707b4(this[_0x16e8d7(0x202)])[_0x16e8d7(0x27c)][_0x16e8d7(0x1f5)][_0x16e8d7(0x21d)][_0x16e8d7(0x24b)]()];this[_0x16e8d7(0x156)][_0x16e8d7(0x1e5)](_0x2dc0aa,_0x16e8d7(0x26c)+this[_0x16e8d7(0x284)]?.['id']);}}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x29e),(_0x502b86,_0x2f3932)=>{const _0x1e4b0e=_0x58a67d;this[_0x1e4b0e(0x181)][_0x1e4b0e(0x16a)](_0x2f3932[_0x1e4b0e(0x1f2)]),_0x1e4b0e(0x1d2)==_0x2f3932[_0x1e4b0e(0x1f2)]&&this[_0x1e4b0e(0x18d)](),_0x1e4b0e(0x21d)===_0x2f3932[_0x1e4b0e(0x1b0)]&&this[_0x1e4b0e(0x156)][_0x1e4b0e(0x250)](_0x1e4b0e(0x26c)+this[_0x1e4b0e(0x284)]?.['id']);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x164),(_0x25fa29,_0x21633a)=>{const _0x5d9cc5=_0x58a67d;this[_0x5d9cc5(0x181)][_0x5d9cc5(0x240)](_0x21633a[_0x5d9cc5(0x254)][_0x5d9cc5(0x1f2)],_0x21633a[_0x5d9cc5(0x21c)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d9),(_0x21ad97,_0x5643ca)=>{const _0x55d23f=_0x58a67d;this[_0x55d23f(0x181)][_0x55d23f(0x23e)](_0x5643ca[_0x55d23f(0x1dd)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1b9),(_0x2fc5bc,_0x1e72f1)=>{const _0x3d2591=_0x58a67d;this[_0x3d2591(0x181)][_0x3d2591(0x276)](_0x1e72f1[_0x3d2591(0x2ba)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x222),(_0x7054b3,_0x4d9132)=>{const _0x580f48=_0x58a67d;this[_0x580f48(0x181)][_0x580f48(0x174)](_0x4d9132[_0x580f48(0x221)],_0x4d9132[_0x580f48(0x1ca)],_0x4d9132[_0x580f48(0x2b7)],_0x4d9132[_0x580f48(0x247)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2a4),(_0x19b5a4,_0x129e17)=>{const _0x516bc1=_0x58a67d;this[_0x516bc1(0x181)][_0x516bc1(0x1b8)](_0x129e17[_0x516bc1(0x221)],_0x129e17[_0x516bc1(0x1f0)],_0x129e17[_0x516bc1(0x25f)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x229),(_0x1be99e,_0x20155a)=>{const _0x53e32d=_0x58a67d;this[_0x53e32d(0x181)][_0x53e32d(0x1c9)](_0x20155a);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d0),async(_0x595e8e,_0x15e73c)=>{const _0x38dea1=_0x58a67d,_0x31f453=(await this[_0x38dea1(0x243)][_0x38dea1(0x1c5)]())[_0x38dea1(0x170)](_0x2e9558=>_0x2e9558['id']===_0x15e73c[_0x38dea1(0x152)]?.['id'])||null;this[_0x38dea1(0x181)][_0x38dea1(0x167)](_0x31f453,_0x15e73c[_0x38dea1(0x19d)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1da),(_0x4e2c1a,{error:_0x120ddf,interactionId:_0x50d528,fileName:_0x29ac5d,url:_0x2d74d6,sourceId:_0x156f4f,sourceLabel:_0x5788f4})=>{const _0x3426fb=_0x58a67d,_0x5dc0f6=_0x50d528?_0x50d528+':'+_0x316623():_0x316623();_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x176))?this[_0x3426fb(0x181)][_0x3426fb(0x244)]({'staticMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x288)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x26a))||_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1a6))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1ae)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x2b3))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1c1),_0x29ac5d),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1a5))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x26f),_0x2d74d6),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x183))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x21f)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1d7))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1fd)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1c7))?(_0x156f4f&&this[_0x3426fb(0x181)][_0x3426fb(0x18a)](_0x156f4f),this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x287),_0x5788f4||_0x3426fb(0x1ca)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1cb))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1d8)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1cc))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x159)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x242))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x180)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x22b))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x133)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x2be))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x21b)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x13b))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x2bd)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1ce)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf));}),await this[_0x58a67d(0x284)][_0x58a67d(0x17f)](this[_0x58a67d(0x202)][_0x58a67d(0x1bf)][_0x58a67d(0x1b4)](_0x58a67d(0x2bb))),_0x12deba||await this[_0x58a67d(0x284)][_0x58a67d(0x29c)]();}async[_0x2707df(0x283)]({userMessage:_0x503883,attributes:_0x4e3bcd}){const _0x3907d0=_0x2707df;if(!this[_0x3907d0(0x284)])throw new _0x3e6794(_0x3907d0(0x136));if(this[_0x3907d0(0x284)][_0x3907d0(0x281)]()){const _0x533a98=await this[_0x3907d0(0x156)][_0x3907d0(0x15c)]();await this[_0x3907d0(0x284)][_0x3907d0(0x25e)](_0x533a98);}this[_0x3907d0(0x284)]['id']&&this[_0x3907d0(0x284)][_0x3907d0(0x157)]&&await this[_0x3907d0(0x284)][_0x3907d0(0x1c6)]({'userMessage':_0x503883,'attributes':_0x4e3bcd});}[_0x2707df(0x234)](){const _0x579ab2=_0x2707df;console[_0x579ab2(0x278)](_0x579ab2(0x13f));}[_0x2707df(0x17d)](_0x584524){const _0x74ab10=_0x2707df;this[_0x74ab10(0x181)][_0x74ab10(0x1eb)](_0x584524);}[_0x2707df(0x2b5)](_0x195e43){const _0x57c4d5=_0x2707df;_0x456f50(_0x195e43[_0x57c4d5(0x226)]);}[_0x2707df(0x1a3)](_0x129416){const _0x7094d8=_0x2707df;this[_0x7094d8(0x284)]?.[_0x7094d8(0x277)](_0x129416);}[_0x2707df(0x1ba)](){const _0x118551=_0x2707df;this[_0x118551(0x284)]?.[_0x118551(0x2a9)]();}[_0x2707df(0x1ab)](){const _0x1e26ad=_0x2707df;this[_0x1e26ad(0x284)]?.[_0x1e26ad(0x189)]();}[_0x2707df(0x1c4)](_0x39c992){const _0x48acb3=_0x2707df,[_0x362c18,_0x4ca53a]=_0x39c992[_0x48acb3(0x144)](':'),_0x3e8d81=this[_0x48acb3(0x284)][_0x48acb3(0x194)](_0x362c18),_0xa6e767=_0x3e8d81[_0x48acb3(0x25a)](_0x4ca53a);return{'interaction':_0x3e8d81,'reply':_0xa6e767};}[_0x2707df(0x1ef)](_0x59f299,_0x2fc468=!0x1){const _0xed5cf=_0x2707df,_0x505a84=_0x1707b4(this[_0xed5cf(0x202)]),_0x190c72={'target':_0x505a84[_0xed5cf(0x197)][_0xed5cf(0x18f)][_0xed5cf(0x160)][_0xed5cf(0x2a1)](_0x505a84[_0xed5cf(0x197)][_0xed5cf(0x269)][_0xed5cf(0x232)](_0x59f299)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2fc468};_0x2fc468&&(_0x190c72[_0xed5cf(0x2b2)]=!0x0),_0x3c3e16(_0x190c72);}[_0x2707df(0x239)](_0x3fd4b1,_0x24fc48=!0x1){const _0x5b3592=_0x2707df;this[_0x5b3592(0x181)][_0x5b3592(0x266)](_0x3fd4b1||_0x5dc244(this[_0x5b3592(0x202)][_0x5b3592(0x14d)],_0x5b3592(0x1f1)),_0x24fc48);}async[_0x2707df(0x1b7)]({reply:_0x2f2d0c,renderingStrategy:_0x5b2092}){const _0x398140=_0x2707df,{id:_0x4badd5,interactionId:_0x14bada,isDone:_0xa66114,type:_0x42e155,parsedContent:_0x1e32be}=_0x2f2d0c,_0x417d2b=_0x14bada+':'+_0x4badd5;if(_0x398140(0x203)===_0x42e155){const _0x500dcc=_0x2f2d0c[_0x398140(0x213)]({'showDiff':this[_0x398140(0x181)][_0x398140(0x1be)]});await this[_0x398140(0x181)][_0x398140(0x140)]({'id':_0x417d2b,'parts':_0x500dcc,'renderingStrategy':_0x5b2092,'isDone':_0xa66114});}else _0x398140(0x22f)===_0x42e155&&await this[_0x398140(0x181)][_0x398140(0x1af)]({'id':_0x417d2b,'parsedContent':_0x1e32be,'renderingStrategy':_0x5b2092,'isDone':_0xa66114});_0xa66114&&_0x2f2d0c[_0x398140(0x199)][_0x398140(0x238)]>0x0&&this[_0x398140(0x181)][_0x398140(0x24a)](_0x417d2b,_0x2f2d0c[_0x398140(0x199)]);}async[_0x2707df(0x1bb)](){const _0x48dabe=_0x2707df,_0x101298=this[_0x48dabe(0x284)]?.[_0x48dabe(0x2a7)];_0x101298&&(_0x101298[_0x48dabe(0x256)](),this[_0x48dabe(0x181)][_0x48dabe(0x16e)](_0x101298));}async[_0x2707df(0x175)](){const _0x20be8d=_0x2707df,_0x987e2a=this[_0x20be8d(0x284)]?.[_0x20be8d(0x2a7)];if(_0x987e2a){for await(const _0x909c1a of _0x987e2a[_0x20be8d(0x298)])await this[_0x20be8d(0x1b7)]({'reply':_0x909c1a,'renderingStrategy':_0x20be8d(0x1b6)});}}[_0x2707df(0x1bd)](_0x46535f){const _0x26ab95=_0x2707df,_0x2ce336={'positiveCount':_0x46535f[_0x26ab95(0x20c)][_0x26ab95(0x1ed)](_0x449f06=>_0x26ab95(0x270)===_0x449f06[_0x26ab95(0x28d)])[_0x26ab95(0x238)],'totalCount':_0x46535f[_0x26ab95(0x20c)][_0x26ab95(0x238)],'modificationId':_0x46535f['id']},_0x1232b9=this[_0x26ab95(0x284)][_0x26ab95(0x194)](_0x46535f[_0x26ab95(0x279)])[_0x26ab95(0x268)];_0x1232b9&&this[_0x26ab95(0x20d)][_0x26ab95(0x27b)](this[_0x26ab95(0x284)]['id'],_0x1232b9,_0x2ce336);}[_0x2707df(0x16c)](_0x16b535){const _0x4235e2=_0x2707df;let _0x11cadc=null,_0x2a71fe=null;this['on'](_0x4235e2(0x1df),(_0x34b942,_0x3d8a3d,_0x4cad1b)=>{const _0x216c45=_0x4235e2;_0x4cad1b['id']!==_0x11cadc&&(_0x11cadc=_0x4cad1b['id'],_0x2a71fe=this[_0x216c45(0x1e8)](_0x4cad1b)),_0x16b535(_0x3d8a3d,_0x2a71fe);});}[_0x2707df(0x1e8)](_0xb9ad5){const _0x324467=_0x2707df,_0x2dd5c6=this[_0x324467(0x181)],_0x44265a=()=>{const _0x3b0ab4=_0x324467;_0xb9ad5[_0x3b0ab4(0x233)](),_0xb9ad5[_0x3b0ab4(0x236)](),_0x2dd5c6[_0x3b0ab4(0x272)]();},_0x18fd05=()=>{const _0x3ed546=_0x324467;_0xb9ad5[_0x3ed546(0x2b0)]&&(_0xb9ad5[_0x3ed546(0x2b0)][_0x3ed546(0x162)](),_0xb9ad5[_0x3ed546(0x2b0)]=void 0x0);};return{'insertTextReply':(_0x3abf8e,_0x479a02)=>{const _0x3d3982=_0x324467;_0x18fd05(),_0x44265a();const _0x5b2586=_0xb9ad5[_0x3d3982(0x2b0)]=_0xb9ad5[_0x3d3982(0x19a)]({'type':_0x3d3982(0x22f),'interactionId':_0xb9ad5['id'],'content':_0x3abf8e,'id':_0x479a02||_0x316623()});return _0x18fd05(),_0x5b2586;},'insertCustomElement':async(_0x3308ad,_0x1f1be3)=>(_0x18fd05(),_0x44265a(),_0x2dd5c6[_0x324467(0x2b4)](_0x3308ad,_0x1f1be3||_0x316623())),'setLoadingMessage':_0x2b665c=>{const _0xba4631=_0x324467;_0x2dd5c6[_0xba4631(0x1e6)](_0x2b665c);},'clearLoadingMessage':()=>{const _0x3e9b83=_0x324467;_0x2dd5c6[_0x3e9b83(0x272)]();}};}}
23
+ function _0x5a9c(_0x8aacf4,_0x33982a){const _0x57d782=_0x57d7();return _0x5a9c=function(_0x5a9c01,_0x5a9f04){_0x5a9c01=_0x5a9c01-0x179;let _0x4aa8e5=_0x57d782[_0x5a9c01];return _0x4aa8e5;},_0x5a9c(_0x8aacf4,_0x33982a);}const _0x31c42f=_0x5a9c;(function(_0x299d24,_0x25050b){const _0x5093b1=_0x5a9c,_0x20b34d=_0x299d24();while(!![]){try{const _0x23e536=parseInt(_0x5093b1(0x262))/0x1+parseInt(_0x5093b1(0x246))/0x2*(parseInt(_0x5093b1(0x2be))/0x3)+parseInt(_0x5093b1(0x2ed))/0x4+parseInt(_0x5093b1(0x23b))/0x5*(parseInt(_0x5093b1(0x225))/0x6)+-parseInt(_0x5093b1(0x17f))/0x7+parseInt(_0x5093b1(0x181))/0x8+parseInt(_0x5093b1(0x221))/0x9*(-parseInt(_0x5093b1(0x291))/0xa);if(_0x23e536===_0x25050b)break;else _0x20b34d['push'](_0x20b34d['shift']());}catch(_0x497dd4){_0x20b34d['push'](_0x20b34d['shift']());}}}(_0x57d7,0x5c0dc));import{ContextPlugin as _0x251403,Editor as _0xec0008}from'ckeditor5/src/core.js';import{BodyCollection as _0xd55c29}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15e5c0,logError as _0x44f241,scrollViewportToShowTarget as _0x366ea2,uid as _0x516f73}from'ckeditor5/src/utils.js';import{AIConnector as _0x32a03f}from'../aicore/aiconnector.js';import{AITabs as _0x3d9193}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3caa70}from'./model/aichatconversation.js';import{getTranslation as _0x5e761d}from'../aicore/utils/common-translations.js';import{AIModels as _0x1f348b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0xa7d697}from'../aicore/utils/geteditorfromcontext.js';function _0x57d7(){const _0x449175=['toolDataReceived','domConverter','streaming','Showing\x20conversation\x20history...','sendUserMessage','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','node','_aiChatModels','DocumentCompare','text','end','selectModel','toString','finishInteraction','sendMessage','contextItem','isUploadInProgress','ai-no-track-changes','ai.chat.context','addResourceToContext','updateCapabilities','showNext','mapper','getPath','1481676FiqfDf','children','1782696DlGygT','toggleSuggestionDisplayMode','getDiff','TrackChangesEditing','startConversation','closeSourceResourceBalloon','_updateReplyContent','config','TrackChanges','_scrollToSuggestionRange','addFeedItemStaticMessage','nextSibling','setConversationTitle','collaboration.channelId','setFeedItemAIReplySuggestionPartActive','resourceStateChanged','getConversations','addFileToContext','createPositionAt','Undo','contextItemLoadingEnded','removeSelectionFromContext','split','interactionId','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','createReply','addUrlToContext','ai-chat-invalid-request','next','createPositionFromPath','updateContent','version','ai-chat-controller-mouse-over','handleRemovedConversation','rejected','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','resizedTabs','enableControls','ai.models.defaultModelId','selection','state','addOperation','clearPendingContextUI','alignToTop','addContextOptionsChanged','toViewRange','outdated','updateFeedItemAIReplySuggestionPartState','findIndex','addFeedItemCustomElement','_bodyCollection','_aiChatBalloonShowDiff','ai-chat-missing-channel-id','rejectSuggestion','Disliked\x20response','AIChatBalloon','ai-chat-context-form-data-size-limits-exceeded','uid','applyOperation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','ai-chat-conversation-start-failed','removeFromContext','requires','clearConversationContextUI','hasChanges','_getUserPresentableContentPartDocumentRange','ai-chat-context-unsupported-file-type','applySuggestion','cloneNode','init','data','_integrateEditor','locale','editing','addDocumentToContext','content','getDocumentData','prepareLoadingMessage','isOfficialPlugin','_logError','AI_CHAT_UNTITLED_CONVERSATION','resetMessageInput','AI_CHAT_GENERIC_ERROR','showChangeInText','activeConversation','redo','getInteractionAndReplyById','addFilesToContext','_aiEditing','getAttribute','addCurrentDocumentToChatContext','interactionFinished','set','modelSelected','modification','removed','current-document','_stopLastInteraction','disableControls','loadConversation','setSelectedModel','getSelectionText','_openBalloonFor','createdAt','addFeedInteractionHeader','populateSourceResourceBalloon','mouseLeaveSuggestion','AI_CHAT_INVALID_REQUEST','showDiff','isDisabled','getOperations','change','ai-chat-conversation-init-failed','delegate','changeGroups','startInteraction','AI_CHAT_UNABLE_TO_START_CONVERSATION','setIsUploadInProgress','lastCreated','isDocumentOperation','getInteraction','sourcePosition','createRange','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','setAddContextOptions','addSelectionToChatContext','commands','AIChatController','ai-chat-source-resources-load-failed','addFeedItemError','slice','ai-request-aborted','AIEditing','has','updateFeedItemAIReplySources','_removeFromContext','getRoot','replies','ai-chat-url-upload-failed','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getReply','startAutoScroll','loadSourceResources','error','focusPromptInput','isCurrentDocumentInConversation','getContentParts','replyChangeGroupStateUpdated','removeFeedInteraction','dialogClosed','_rejectSuggestion','_registerToolDataCallback','resources','stop','main','isModelAvailable','sources','open','lastInteraction','unshift','12087RCxyvg','editors','query','AITabs','24hChtNy','createConversation','resetConversationTitle','resize','filter','marker','chat','revert','detachFromDom','contextItems','isInContext','messageId','reasoningStarted','addSelectionToContext','toggleLoadingSkeleton','_handleStartConversation','Liked\x20response','_toggleReasoning','capabilitiesUpdated','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getAll','_getPresentableSiblingContentPartIndex','780680WzCNZM','isLoading','contextItemAdded','currentReply','interactionCreated','AI_CHAT_RESOURCE_LOAD_FAILED','listenTo','batch','remove','bind','_getDocumentRangeForReplyChanges','1202KMHpWq','setFeedItemRenderingStrategy','_getAIChatInteractionAPI','resetReasoningState','new','type','_applyOperationsAsSuggestions','getChild','length','context','sessionId','interactionDestroyed','view','$graveyard','updateCurrentDocumentInContext','attachToDom','insertSuggestion','selectedModel','toggleWebSearch','destroy','close','interactionStarted','contextSent','_handleUIUserMessage','ai-conversation-','addCurrentDocumentToContext','_applySuggestion','getDocumentContext','592008ldYuci','find','handleUserInteraction','replyId','resource','getFirstRange','range','baseVersion','map','removeContextItem','push','setLoadingMessage','model','ai-chat-file-upload-failed','like','ai.models','_getLastCreatedConversationId','_insertSuggestion','setModel','areActionsDisabled','webSearchFinished','webSearchStarted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','reasoningFinished','getChildAtOffset','scrollFeedToSuggestion','ai-chat-context-unsupported-type','forEach','updateResourceState','updateFeedItemAIReplySuggestionContent','load','replyCreated','fetchConversations','AI_BALLOON_HEADER_TITLE','_toggleWebSearch','contextItemRemoved','ai-chat-resource-load-failed','resetWebSearchState','setContextItemLoading','ai-chat-context-file-too-large','removeSelectionFromChatContext','start','updateConversationTitle','pluginName','setIsMaximized','_aiConnector','anchorId','12730gWowIh','isCurrentDocumentInContext','_aiChatBalloon','fetchConversation','getRanges','history','indexOf','conversationInitialized','upsertAIChatRating','stopInteraction','showFakeVisualSelection','documentContextContent','AIConnector','source','abortPromptStream','getTransformedByOperation','afterInit','dislike','changes','uploadProgressChanged','from','setChangeGroupState','_flushLastInteractionUI','howMany','index','document','_aiChatUi','getChildren','rootName','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAIReply','parse','_updateRatings','clearLoadingMessage','toggleReasoning','callback','activateTab','indexes','includes','setState','delete','resourceId','addFeedItemUserMessage','maxOffset','_setIsMaximized','3759olUPJO','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai-chat-conversation-not-found','startsWith','showPrevious','hideFakeVisualSelection','_showConversationHistory','message','resizeTabs','log','previous','sourceResourcesLoaded','pending','isPremiumPlugin','plugins','options','AI_CHAT_CONTEXT_FILE_TOO_LARGE','mouseOverSuggestion','_currentPreviewedChangeGroup','root','aiChatBalloon','ready','getConversation','replyContentUpdated','sourceId','add','executeCustomItemCallback','addFeedItemAISuggestion','_startConversationSafely','_createFromRanges','getGroupId','setConversationContext','get','viewRangeToDom','static','ai-chat-context-invalid-data','data-id','updateFeedItemAIReplyContent','isStarted','_batchToChanges','path','ai.chat.initialConversation','uiId','accepted','partIndex','AIChatUI','undo','423668LKKOVj','ai-chat-controller-no-active-conversation','ai-chat-context-file-too-many-pages','addContextItem','done','AI_CHAT_ABORTED_MESSAGE'];_0x57d7=function(){return _0x449175;};return _0x57d7();}import{DocumentCompare as _0x43c19c,DATA_ID_MODEL_ATTRIBUTE as _0x4d75fb}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5daf43,getOperationsFromReply as _0x423098}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x117423,getMinimalSelection as _0x1540c9}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x375f4a,_DetachOperation as _0x521334}from'ckeditor5/src/engine.js';import{findOne as _0x223ca0,getAttribute as _0x20876b,serialize as _0x1b4f52,Document as _0x33bf11,findByAttribute as _0x2c1814}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x251403{[_0x31c42f(0x1d9)];[_0x31c42f(0x28f)];[_0x31c42f(0x2ab)];[_0x31c42f(0x2fa)];[_0x31c42f(0x293)];[_0x31c42f(0x2e5)]=new Map();[_0x31c42f(0x2d0)]=null;[_0x31c42f(0x1b3)];static get[_0x31c42f(0x1bf)](){return[_0x32a03f,_0x43c19c];}static get[_0x31c42f(0x28d)](){const _0x4070c4=_0x31c42f;return _0x4070c4(0x200);}static get[_0x31c42f(0x1cf)](){return!0x0;}static get[_0x31c42f(0x2cb)](){return!0x0;}[_0x31c42f(0x1c6)](){const _0x3dce7f=_0x31c42f;this[_0x3dce7f(0x1b3)]=new _0xd55c29(this[_0x3dce7f(0x24f)][_0x3dce7f(0x1c9)]),this[_0x3dce7f(0x1b3)][_0x3dce7f(0x255)](),this[_0x3dce7f(0x28f)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x29d)),this[_0x3dce7f(0x2ab)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x2eb)),this[_0x3dce7f(0x1d9)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x205)),this[_0x3dce7f(0x2fa)]=new _0x1f348b({'connector':this[_0x3dce7f(0x28f)],'config':this[_0x3dce7f(0x24f)][_0x3dce7f(0x188)][_0x3dce7f(0x2de)](_0x3dce7f(0x271)),'locale':this[_0x3dce7f(0x24f)][_0x3dce7f(0x1c9)]});const _0x4d20eb=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x224));this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x185),()=>{const _0x2ae28e=_0x3dce7f;this[_0x2ae28e(0x2da)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2f7),(_0x5b5e77,_0x2986ea)=>{const _0x3b649f=_0x3dce7f;this[_0x3b649f(0x25d)]({'userMessage':_0x2986ea});}),this[_0x3dce7f(0x241)](_0x4d20eb,_0x3dce7f(0x1a5),(_0x419f64,_0x5e22fa)=>{const _0x49179e=_0x3dce7f;this[_0x49179e(0x2bd)](_0x5e22fa);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2c6),()=>{const _0x3d01dc=_0x3dce7f;_0x4d20eb[_0x3d01dc(0x228)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x29f),async()=>{const _0x3287f5=_0x3dce7f;await this[_0x3287f5(0x1e2)](),await this[_0x3287f5(0x2a7)](),this[_0x3287f5(0x28a)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1cb),()=>{const _0x58c5f8=_0x3dce7f;this[_0x58c5f8(0x1db)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x192),(_0x436750,_0x3faca9)=>{const _0x41775a=_0x3dce7f;this[_0x41775a(0x1d5)]?.[_0x41775a(0x1d8)](Array[_0x41775a(0x2a5)](_0x3faca9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x19b),(_0x4f0adb,_0x28e21a)=>{const _0x444501=_0x3dce7f;this[_0x444501(0x1d5)]?.[_0x444501(0x19b)](_0x28e21a);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2d8),(_0x43ff0b,_0x455472)=>{const _0x2f19df=_0x3dce7f;_0x455472[_0x2f19df(0x2b4)](this[_0x2f19df(0x24f)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x17a),(_0x555ba8,_0x48c901)=>{const _0x432d6c=_0x3dce7f;this[_0x432d6c(0x1d5)]?.[_0x432d6c(0x17a)](_0x48c901[_0x432d6c(0x29e)],_0x48c901[_0x432d6c(0x266)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x26b),(_0x4f47e7,_0xe46892)=>{const _0x11b101=_0x3dce7f;this[_0x11b101(0x208)](_0xe46892);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x20f),(_0x519247,_0x1ed445)=>{const _0x3b0596=_0x3dce7f;this[_0x3b0596(0x1d5)]?.[_0x3b0596(0x20f)](_0x1ed445[_0x3b0596(0x2d6)],_0x1ed445[_0x3b0596(0x223)],_0x1ed445[_0x3b0596(0x1ba)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x258),()=>{const _0x1aa792=_0x3dce7f;this[_0x1aa792(0x284)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2b3),()=>{const _0x2ce539=_0x3dce7f;this[_0x2ce539(0x236)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2fe),(_0x23479a,_0x40a0b8)=>{const _0x333b4d=_0x3dce7f;this[_0x333b4d(0x1d5)]?.[_0x333b4d(0x274)](_0x40a0b8);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x270),(_0x14498b,{replyId:_0x4a7300})=>{const _0x18172e=_0x3dce7f;console[_0x18172e(0x2c7)](_0x18172e(0x235),_0x4a7300);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2a2),(_0x2e44be,{replyId:_0x5542ab})=>{const _0x18369d=_0x3dce7f;console[_0x18369d(0x2c7)](_0x18369d(0x1b7),_0x5542ab);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x256),(_0x3f36b5,_0x953c8e)=>{const _0x4f2291=_0x3dce7f;this[_0x4f2291(0x273)](_0x953c8e);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1d4),(_0x36bf7f,{replyId:_0x4125fa,partIndex:_0x59e9fc})=>{const _0x59294c=_0x3dce7f;this[_0x59294c(0x1b4)]=this[_0x59294c(0x2ab)][_0x59294c(0x1ed)],this[_0x59294c(0x1e7)](_0x4125fa,_0x59e9fc);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2cf),(_0x59c65a,{replyId:_0x352aeb,partIndex:_0x329953})=>{const _0x250938=_0x3dce7f,_0x4b1a6b=this[_0x250938(0x245)](_0x352aeb,_0x329953);_0x4b1a6b&&_0x250938(0x253)!=_0x4b1a6b[_0x250938(0x268)][_0x250938(0x2d1)][_0x250938(0x2ad)]&&this[_0x250938(0x1d9)][_0x250938(0x29b)]([_0x4b1a6b[_0x250938(0x268)]],_0x250938(0x1a1));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1eb),()=>{const _0x285add=_0x3dce7f;this[_0x285add(0x1d9)][_0x285add(0x2c3)](_0x285add(0x1a1));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1c4),(_0x4652df,_0x16895b)=>{const _0x4e5ae4=_0x3dce7f;this[_0x4e5ae4(0x1d9)][_0x4e5ae4(0x2c3)](_0x4e5ae4(0x1a1)),this[_0x4e5ae4(0x260)](_0x16895b);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x182),async(_0x2ccefd,{replyId:_0x41a1f4,showDiff:_0x1e9e08})=>{const _0x51e2d6=_0x3dce7f,{reply:_0x13f879}=this[_0x51e2d6(0x1d7)](_0x41a1f4),_0x321c8a=_0x13f879[_0x51e2d6(0x213)]({'showDiff':_0x1e9e08});await this[_0x51e2d6(0x2ab)][_0x51e2d6(0x27f)]({'id':_0x13f879['id'],'parts':_0x321c8a,'renderingStrategy':_0x51e2d6(0x2e0)});}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1b6),(_0x460c58,{replyId:_0x1c9950,partIndex:_0x1df9b4})=>{const _0x849710=_0x3dce7f;this[_0x849710(0x217)]({'replyId':_0x1c9950,'partIndex':_0x1df9b4}),this[_0x849710(0x1d9)][_0x849710(0x2c3)](_0x849710(0x1a1));}),this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x206)](_0x3dce7f(0x1b8))&&(this[_0x3dce7f(0x293)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x1b8)),this[_0x3dce7f(0x1dd)](_0x3dce7f(0x1b4),!0x1),this[_0x3dce7f(0x293)][_0x3dce7f(0x244)](_0x3dce7f(0x1ed))['to'](this,_0x3dce7f(0x1b4)),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x182),()=>{const _0x2f9b6d=_0x3dce7f,{replyId:_0x1a463f,partIndex:_0x568643}=this[_0x2f9b6d(0x2d0)];this[_0x2f9b6d(0x1b4)]=!this[_0x2f9b6d(0x1b4)];const {reply:_0x365a81}=this[_0x2f9b6d(0x1d7)](_0x1a463f),_0x3264c5=_0x365a81[_0x2f9b6d(0x213)]({'showDiff':this[_0x2f9b6d(0x1b4)],'groupIndex':_0x568643});this[_0x2f9b6d(0x293)][_0x2f9b6d(0x19f)]({'part':_0x3264c5[0x0],'renderingStrategy':_0x2f9b6d(0x2e0),'keepErrors':!0x0});}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x1c4),()=>{const _0x2a6c31=_0x3dce7f,{replyId:_0x515132,partIndex:_0x100b66}=this[_0x2a6c31(0x2d0)];this[_0x2a6c31(0x260)]({'replyId':_0x515132,'partIndex':_0x100b66}),this[_0x2a6c31(0x293)][_0x2a6c31(0x2b8)](_0x2a6c31(0x2e9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x256),()=>{const _0x1257bf=_0x3dce7f,{replyId:_0x1ed362,partIndex:_0x196939}=this[_0x1257bf(0x2d0)];this[_0x1257bf(0x273)]({'replyId':_0x1ed362,'partIndex':_0x196939}),this[_0x1257bf(0x293)][_0x1257bf(0x2b8)](_0x1257bf(0x2e9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x1b6),()=>{const _0x238e15=_0x3dce7f,{replyId:_0xc535fe,partIndex:_0xbfbb9f}=this[_0x238e15(0x2d0)];this[_0x238e15(0x217)]({'replyId':_0xc535fe,'partIndex':_0xbfbb9f}),this[_0x238e15(0x293)][_0x238e15(0x2b8)](_0x238e15(0x1a3));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x17c),()=>{const _0x8d913e=_0x3dce7f,{replyId:_0x3ca1da,partIndex:_0x317163}=this[_0x8d913e(0x2d0)],_0x185402=this[_0x8d913e(0x23a)](_0x3ca1da,_0x317163,_0x8d913e(0x19d));null!==_0x185402&&this[_0x8d913e(0x1e7)](_0x3ca1da,_0x185402);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x2c2),()=>{const _0x2ac4f9=_0x3dce7f,{replyId:_0x2053b0,partIndex:_0xe6b175}=this[_0x2ac4f9(0x2d0)],_0x4ff98a=this[_0x2ac4f9(0x23a)](_0x2053b0,_0xe6b175,_0x2ac4f9(0x2c8));null!==_0x4ff98a&&this[_0x2ac4f9(0x1e7)](_0x2053b0,_0x4ff98a);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x216),(_0x21e831,{id:_0xc6398a})=>{const _0x2ddbe0=_0x3dce7f;if(_0x2ddbe0(0x2d2)!==_0xc6398a)return;const {replyId:_0x468c5d,partIndex:_0x5c4b8e}=this[_0x2ddbe0(0x2d0)];this[_0x2ddbe0(0x2d0)]=null,this[_0x2ddbe0(0x2ab)][_0x2ddbe0(0x18f)]({'id':_0x468c5d,'index':_0x5c4b8e,'isActive':!0x1});}));}async[_0x31c42f(0x2a1)](){const _0x371e73=_0x31c42f;this[_0x371e73(0x24f)]instanceof _0xec0008?this[_0x371e73(0x1c8)](this[_0x371e73(0x24f)]):this[_0x371e73(0x241)](this[_0x371e73(0x24f)][_0x371e73(0x222)],_0x371e73(0x2d7),(_0x361c98,_0x4d3ef9)=>{const _0x1eeea1=_0x371e73;_0x4d3ef9['on'](_0x1eeea1(0x2d3),()=>{const _0x6fbcf8=_0x1eeea1;this[_0x6fbcf8(0x1c8)](_0x4d3ef9);});});const _0x577d8e=this[_0x371e73(0x24f)][_0x371e73(0x188)][_0x371e73(0x2de)](_0x371e73(0x2e7));let _0x5cb7f8=_0x577d8e;if(_0x371e73(0x1f7)!=_0x577d8e||(_0x5cb7f8=await this[_0x371e73(0x272)](),_0x5cb7f8))return _0x371e73(0x24a)==_0x5cb7f8?this[_0x371e73(0x2da)]():this[_0x371e73(0x1e4)](_0x5cb7f8);}async[_0x31c42f(0x259)](){const _0x383eee=_0x31c42f;return await this[_0x383eee(0x1e2)](),this[_0x383eee(0x1b3)][_0x383eee(0x22d)](),super[_0x383eee(0x259)]();}[_0x31c42f(0x273)](_0x3ffc96){const _0x1bcc16=_0x31c42f,_0x12ec16=_0xa7d697(this[_0x1bcc16(0x24f)]);if(!_0x12ec16[_0x1bcc16(0x2cc)][_0x1bcc16(0x206)](_0x1bcc16(0x189)))throw new _0x15e5c0(_0x1bcc16(0x304),null);const _0x404298=this[_0x1bcc16(0x24f)][_0x1bcc16(0x2cc)][_0x1bcc16(0x2de)](_0x1bcc16(0x2fb)),{reply:_0x52505b,interaction:_0x3d6243}=this[_0x1bcc16(0x1d7)](_0x3ffc96[_0x1bcc16(0x265)]),_0x18f079=this[_0x1bcc16(0x245)](_0x3ffc96[_0x1bcc16(0x265)],_0x3ffc96[_0x1bcc16(0x2ea)]),_0x4635b9=void 0x0!==_0x3ffc96[_0x1bcc16(0x2ea)]?[_0x52505b[_0x1bcc16(0x1f3)][_0x3ffc96[_0x1bcc16(0x2ea)]]]:_0x52505b[_0x1bcc16(0x1f3)][_0x1bcc16(0x229)](_0x4d1514=>_0x1bcc16(0x2ca)==_0x4d1514[_0x1bcc16(0x1a9)]),_0x234245=_0x4635b9[_0x1bcc16(0x26a)](_0x2cbb1b=>_0x52505b[_0x1bcc16(0x1f3)][_0x1bcc16(0x297)](_0x2cbb1b));if(!_0x18f079||_0x1bcc16(0x253)==_0x18f079[_0x1bcc16(0x268)][_0x1bcc16(0x2d1)][_0x1bcc16(0x2ad)])return void _0x234245[_0x1bcc16(0x27d)](_0x19a169=>_0x52505b[_0x1bcc16(0x2a6)](_0x19a169,_0x1bcc16(0x1af)));_0x234245[_0x1bcc16(0x27d)](_0x13670e=>_0x52505b[_0x1bcc16(0x2a6)](_0x13670e,_0x1bcc16(0x2e9)));const _0x2db1c0=_0x423098({'editor':_0x12ec16,'reply':_0x52505b,'interaction':_0x3d6243,'groups':_0x4635b9,'transform':!0x0,'documentCompare':_0x404298,'documentCompareOptions':{'anchor':_0x1bcc16(0x21b),'markDeletions':!0x0}});let _0x3115dc;_0x18f079&&this[_0x1bcc16(0x18a)](_0x18f079[_0x1bcc16(0x268)]),_0x12ec16[_0x1bcc16(0x26e)][_0x1bcc16(0x1f0)](_0x592bab=>{const _0x477136=_0x1bcc16;_0x3115dc=_0x592bab[_0x477136(0x242)],_0x12ec16[_0x477136(0x2cc)][_0x477136(0x2de)](_0x477136(0x184))[_0x477136(0x24c)](_0x2db1c0),this[_0x477136(0x1d9)][_0x477136(0x2c3)](_0x477136(0x1a1));}),this[_0x1bcc16(0x2e5)][_0x1bcc16(0x1dd)](_0x3115dc,{'interactionId':_0x3d6243['id'],'replyId':_0x52505b['id'],'indexes':_0x234245[_0x1bcc16(0x203)]()}),this[_0x1bcc16(0x2b1)](_0x52505b);}[_0x31c42f(0x260)](_0xdbca39){const _0x16eb93=_0x31c42f,_0xa18676=_0xa7d697(this[_0x16eb93(0x24f)]),_0x2ed66c=this[_0x16eb93(0x24f)][_0x16eb93(0x2cc)][_0x16eb93(0x2de)](_0x43c19c),{reply:_0x5e66c7,interaction:_0x11c5f9}=this[_0x16eb93(0x1d7)](_0xdbca39[_0x16eb93(0x265)]),_0x295045=this[_0x16eb93(0x245)](_0xdbca39[_0x16eb93(0x265)],_0xdbca39[_0x16eb93(0x2ea)]),_0x5a9c39=void 0x0!==_0xdbca39[_0x16eb93(0x2ea)]?[_0x5e66c7[_0x16eb93(0x1f3)][_0xdbca39[_0x16eb93(0x2ea)]]]:_0x5e66c7[_0x16eb93(0x1f3)][_0x16eb93(0x229)](_0x19ca43=>_0x16eb93(0x2ca)==_0x19ca43[_0x16eb93(0x1a9)]),_0x30374=_0x5a9c39[_0x16eb93(0x26a)](_0x1631ca=>_0x5e66c7[_0x16eb93(0x1f3)][_0x16eb93(0x297)](_0x1631ca));if(!_0x295045||_0x16eb93(0x253)==_0x295045[_0x16eb93(0x268)][_0x16eb93(0x2d1)][_0x16eb93(0x2ad)])return void _0x30374[_0x16eb93(0x27d)](_0x529a20=>_0x5e66c7[_0x16eb93(0x2a6)](_0x529a20,_0x16eb93(0x1af)));_0x30374[_0x16eb93(0x27d)](_0x5b687d=>_0x5e66c7[_0x16eb93(0x2a6)](_0x5b687d,_0x16eb93(0x2e9)));const _0x367954=_0x423098({'editor':_0xa18676,'reply':_0x5e66c7,'interaction':_0x11c5f9,'groups':_0x5a9c39,'transform':!0x0,'documentCompare':_0x2ed66c,'documentCompareOptions':{'anchor':_0x16eb93(0x21b),'markDeletions':!0x1}});let _0x4caaf9;_0x295045&&this[_0x16eb93(0x18a)](_0x295045[_0x16eb93(0x268)]),_0xa18676[_0x16eb93(0x26e)][_0x16eb93(0x1f0)](_0x23842a=>{const _0x13da93=_0x16eb93;_0x4caaf9=_0x23842a[_0x13da93(0x242)];for(const _0x5bae61 of _0x367954)_0x5bae61[_0x13da93(0x269)]=_0xa18676[_0x13da93(0x26e)][_0x13da93(0x2aa)][_0x13da93(0x1a0)],_0x5daf43(_0xa18676,_0x5bae61),_0x23842a[_0x13da93(0x242)][_0x13da93(0x1aa)](_0x5bae61),_0xa18676[_0x13da93(0x26e)][_0x13da93(0x1bb)](_0x5bae61);}),this[_0x16eb93(0x2e5)][_0x16eb93(0x1dd)](_0x4caaf9,{'interactionId':_0x11c5f9['id'],'replyId':_0x5e66c7['id'],'indexes':_0x30374[_0x16eb93(0x203)]()}),this[_0x16eb93(0x2b1)](_0x5e66c7);}[_0x31c42f(0x217)](_0xc8682){const _0x112d83=_0x31c42f,{reply:_0x3e3090}=this[_0x112d83(0x1d7)](_0xc8682[_0x112d83(0x265)]);_0x3e3090[_0x112d83(0x2a6)](_0xc8682[_0x112d83(0x2ea)],_0x112d83(0x1a3));}[_0x31c42f(0x1e7)](_0x22e7dc,_0x1d8e8f){const _0x2b6c26=_0x31c42f;if(!this[_0x2b6c26(0x293)])return;const {reply:_0x2d4178}=this[_0x2b6c26(0x1d7)](_0x22e7dc),_0x1f6834=_0x2d4178[_0x2b6c26(0x213)]({'showDiff':this[_0x2b6c26(0x1b4)]});let _0x1e446a,_0x5910ba;if(void 0x0!==_0x1d8e8f?(_0x5910ba=_0x1f6834[_0x2b6c26(0x263)](_0x75094a=>_0x75094a[_0x2b6c26(0x2a9)]==_0x1d8e8f),_0x1e446a=_0x5910ba?.[_0x2b6c26(0x2a9)]):(_0x5910ba=_0x1f6834[0x0],_0x1e446a=_0x5910ba[_0x2b6c26(0x2a9)]),this[_0x2b6c26(0x2d0)]?.[_0x2b6c26(0x265)]==_0x22e7dc&&this[_0x2b6c26(0x2d0)]?.[_0x2b6c26(0x2ea)]==_0x1e446a)return;const _0xa33c88=this[_0x2b6c26(0x1c2)](_0x22e7dc,_0x2d4178,_0x5910ba);if(!_0xa33c88)return void this[_0x2b6c26(0x293)][_0x2b6c26(0x25a)]();this[_0x2b6c26(0x2d0)]={'replyId':_0x22e7dc,'partIndex':_0x1e446a},this[_0x2b6c26(0x18a)](_0xa33c88,!0x0);const _0x3bdb5b=this[_0x2b6c26(0x23a)](_0x22e7dc,_0x1e446a,_0x2b6c26(0x19d));this[_0x2b6c26(0x293)][_0x2b6c26(0x19f)]({'part':_0x5910ba,'renderingStrategy':_0x2b6c26(0x2e0)}),this[_0x2b6c26(0x293)][_0x2b6c26(0x21e)]({'index':_0x1e446a,'title':_0x5e761d(this[_0x2b6c26(0x24f)][_0x2b6c26(0x1c9)],_0x2b6c26(0x283),(_0x1e446a+0x1)[_0x2b6c26(0x2ff)]()),'showRotator':null!==_0x3bdb5b,'ranges':[_0xa33c88],'areActionsDisabled':_0x2d4178[_0x2b6c26(0x275)]}),this[_0x2b6c26(0x293)][_0x2b6c26(0x2b8)](_0x2b6c26(0x2ca)),this[_0x2b6c26(0x2ab)][_0x2b6c26(0x27b)](_0x22e7dc,_0x1e446a),this[_0x2b6c26(0x2ab)][_0x2b6c26(0x18f)]({'id':_0x22e7dc,'index':_0x1e446a,'isActive':!0x0});}[_0x31c42f(0x23a)](_0x130d53,_0x5ae385,_0x46c9af){const _0x4aab5a=_0x31c42f,{reply:_0x245bca}=this[_0x4aab5a(0x1d7)](_0x130d53),_0x5b7a80=_0x245bca[_0x4aab5a(0x213)]({'showDiff':this[_0x4aab5a(0x1b4)]});if(0x1==_0x5b7a80[_0x4aab5a(0x24e)])return null;const _0x76d5fc=_0x5b7a80[_0x4aab5a(0x1b1)](_0x58482e=>_0x58482e[_0x4aab5a(0x2a9)]==_0x5ae385),_0x236180=_0x4aab5a(0x19d)==_0x46c9af?0x1:-0x1;let _0x3deeeb=_0x5b7a80['at']((_0x76d5fc+_0x236180)%_0x5b7a80[_0x4aab5a(0x24e)])[_0x4aab5a(0x2a9)],_0x17ea5b=_0x5b7a80[_0x3deeeb];for(;!this[_0x4aab5a(0x1c2)](_0x130d53,_0x245bca,_0x17ea5b);){if(_0x3deeeb=_0x5b7a80['at']((_0x3deeeb+_0x236180)%_0x5b7a80[_0x4aab5a(0x24e)])[_0x4aab5a(0x2a9)],_0x3deeeb===_0x76d5fc)return null;_0x17ea5b=_0x5b7a80[_0x3deeeb];}return _0x3deeeb;}[_0x31c42f(0x1c2)](_0x4f297c,_0xe5f9cf,_0x5e0c41){const _0x3dbca1=_0x31c42f,_0x12e628=_0xe5f9cf[_0x3dbca1(0x1f3)];if(!_0x5e0c41[_0x3dbca1(0x1c1)])return null;const _0x3e3bbb=_0x12e628[_0x3dbca1(0x263)](_0x39bb81=>_0x39bb81[_0x3dbca1(0x2a9)]==_0x5e0c41[_0x3dbca1(0x2a9)]);if(_0x3dbca1(0x2ca)!==_0x3e3bbb?.[_0x3dbca1(0x1a9)])return null;const _0x2dc1c7=this[_0x3dbca1(0x245)](_0x4f297c,_0x5e0c41[_0x3dbca1(0x2a9)]);if(!_0x2dc1c7)return null;const {range:_0x123ba1,currentIndex:_0x583963}=_0x2dc1c7;return _0x3dbca1(0x253)==_0x123ba1[_0x3dbca1(0x2d1)][_0x3dbca1(0x2ad)]?(_0xe5f9cf[_0x3dbca1(0x2a6)](_0x583963,_0x3dbca1(0x1af)),null):_0x2dc1c7[_0x3dbca1(0x268)];}[_0x31c42f(0x245)](_0x4c4f55,_0x5e6f50){const _0x33c190=_0x31c42f,_0xcf709d=_0xa7d697(this[_0x33c190(0x24f)]),{reply:_0x499b9e,interaction:_0x5029a2}=this[_0x33c190(0x1d7)](_0x4c4f55),_0xb97d9c=_0x499b9e[_0x33c190(0x1f3)][_0x33c190(0x229)](_0x5980fd=>_0x33c190(0x2ca)==_0x5980fd[_0x33c190(0x1a9)]),_0x11a417=_0xb97d9c[_0x33c190(0x26a)](_0x1024e9=>_0x499b9e[_0x33c190(0x1f3)][_0x33c190(0x297)](_0x1024e9));void 0x0===_0x5e6f50&&(_0x5e6f50=_0x11a417[0x0]);const _0x251d80=_0x11a417[_0x33c190(0x297)](_0x5e6f50);if(-0x1==_0x251d80)return null;const _0x194a7e=_0xb97d9c[_0x251d80],_0x114554=new _0x33bf11([]),_0x46b88e=new _0x33bf11([]);for(const _0x5a5a5b of _0x194a7e[_0x33c190(0x2a3)])if(_0x33c190(0x1e0)!=_0x5a5a5b[_0x33c190(0x24b)]&&_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0x5a5a5b[_0x33c190(0x2f9)][_0x33c190(0x1c5)](!0x0)),_0x33c190(0x24a)!=_0x5a5a5b[_0x33c190(0x24b)]){const _0x4e218d=_0x223ca0(_0x50572e=>_0x20876b(_0x50572e,_0x33c190(0x2e2))==_0x5a5a5b['id'],_0x499b9e[_0x33c190(0x29c)],!0x0);_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0x4e218d[_0x33c190(0x1c5)](!0x0));}if(0x0==_0x114554[_0x33c190(0x180)][_0x33c190(0x24e)]){if(_0x194a7e[_0x33c190(0x2a3)][0x0][_0x33c190(0x290)]){const _0x203609=_0x2c1814(_0x33c190(0x2e2),_0x194a7e[_0x33c190(0x2a3)][0x0][_0x33c190(0x290)],_0x499b9e[_0x33c190(0x29c)]);_0x114554[_0x33c190(0x180)][_0x33c190(0x220)](_0x203609[_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x220)](_0x203609[_0x33c190(0x1c5)](!0x0)),_0x203609[_0x33c190(0x18c)]&&(_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0x203609[_0x33c190(0x18c)][_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0x203609[_0x33c190(0x18c)][_0x33c190(0x1c5)](!0x0)));}else{const _0xc5c29=_0x499b9e[_0x33c190(0x29c)][_0x33c190(0x180)][0x0];if(!_0xc5c29)return null;_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0xc5c29[_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0xc5c29[_0x33c190(0x1c5)](!0x0));}}const _0x2ea599=_0x5029a2[_0x33c190(0x261)](),_0x5287c3=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0x2ea599[_0x33c190(0x1cc)]),_0xdc34a8=_0x1b4f52(_0x114554),_0x39d40f=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0xdc34a8),_0x15432e=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0xdc34a8),_0x5e99d7=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x193)](_0x39d40f,0x0),_0x5eabff=_0x1b4f52(_0x46b88e),_0x4e8409={'anchor':_0x5e99d7,'markDeletions':!0x1},_0x31a029=_0xcf709d[_0x33c190(0x2cc)][_0x33c190(0x2de)](_0x43c19c)[_0x33c190(0x183)](_0xdc34a8,_0x5eabff,_0x4e8409)[_0x33c190(0x1ef)]();if(!_0x31a029[_0x33c190(0x24e)])return null;_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1f0)](_0xed8b61=>{const _0x1039fb=_0x33c190;for(const _0x1b4afa of _0x31a029)if(_0x1039fb(0x243)==_0x1b4afa[_0x1039fb(0x24b)]){const _0x4d523b=_0x1b4afa[_0x1039fb(0x1fa)],_0x5dad36=_0x1b4afa[_0x1039fb(0x2a8)],_0x580149=new _0x521334(_0x4d523b,_0x5dad36);_0xed8b61[_0x1039fb(0x242)][_0x1039fb(0x1aa)](_0x580149),_0xcf709d[_0x1039fb(0x26e)][_0x1039fb(0x1bb)](_0x580149);}else _0x1039fb(0x22a)!==_0x1b4afa[_0x1039fb(0x24b)]&&(_0x1b4afa[_0x1039fb(0x269)]=null,_0x1b4afa[_0x1039fb(0x1f8)]=!0x1,_0xed8b61[_0x1039fb(0x242)][_0x1039fb(0x1aa)](_0x1b4afa),_0xcf709d[_0x1039fb(0x26e)][_0x1039fb(0x1bb)](_0x1b4afa));});const _0x24fc7c=_0x1540c9(_0xcf709d,_0x31a029,_0x39d40f);_0x117423(_0xcf709d[_0x33c190(0x26e)],_0x24fc7c);const _0x1baa7=_0x24fc7c[_0x33c190(0x267)]()[_0x33c190(0x28b)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x40c797=_0x24fc7c[_0x33c190(0x267)]()[_0x33c190(0x2fd)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x69bcff=[];let _0x11c5cf=_0x39d40f,_0x18d38e=_0x15432e;for(let _0x467d95=0x0;_0x467d95<_0x40c797[_0x33c190(0x24e)];_0x467d95++){const _0x17e0b0=_0x11c5cf[_0x33c190(0x2bc)]-_0x40c797[_0x467d95];_0x69bcff[_0x467d95]=_0x18d38e[_0x33c190(0x2bc)]-_0x17e0b0,_0x11c5cf=_0x11c5cf[_0x33c190(0x27a)](_0x40c797[_0x467d95]),_0x18d38e=_0x18d38e[_0x33c190(0x27a)](_0x69bcff[_0x467d95]);}const _0xdf74f3=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1fb)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0x15432e,_0x1baa7),_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0x15432e,_0x69bcff)),_0xc41ccc=_0x15432e[_0x33c190(0x24d)](0x0)[_0x33c190(0x1da)](_0x4d75fb),_0x34472c=Array[_0x33c190(0x2a5)](_0x5287c3[_0x33c190(0x2ac)]())[_0x33c190(0x263)](_0x8c0e3f=>_0x8c0e3f[_0x33c190(0x1da)](_0x4d75fb)==_0xc41ccc)[_0x33c190(0x17e)](),_0x178d93=_0xdf74f3[_0x33c190(0x28b)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x238a31=_0xdf74f3[_0x33c190(0x2fd)][_0x33c190(0x2e6)][_0x33c190(0x203)]();_0x178d93[0x0]=_0x34472c[0x0]+_0x178d93[0x0],_0x238a31[0x0]=_0x34472c[0x0]+_0x238a31[0x0];let _0x538571=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1fb)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x209)](),_0x178d93),_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x209)](),_0x238a31));const _0x324862=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x296)][_0x33c190(0x1ef)](_0x2ea599[_0x33c190(0x1a0)]);for(const _0x1df2c8 of _0x324862)_0x538571=_0x375f4a[_0x33c190(0x2db)](_0x538571[_0x33c190(0x2a0)](_0x1df2c8));return{'range':_0x538571,'currentIndex':_0x5e6f50};}[_0x31c42f(0x1c8)](_0x286142){const _0x5ab1e6=_0x31c42f;if(!_0x286142[_0x5ab1e6(0x2cc)][_0x5ab1e6(0x206)](_0x5ab1e6(0x194)))return;const _0x36e75d=_0x286142[_0x5ab1e6(0x1ff)][_0x5ab1e6(0x2de)](_0x5ab1e6(0x2ec)),_0x458884=_0x286142[_0x5ab1e6(0x1ff)][_0x5ab1e6(0x2de)](_0x5ab1e6(0x1d6));this[_0x5ab1e6(0x241)](_0x36e75d,_0x5ab1e6(0x22c),(_0x20a273,_0x8a6727,_0x470c1c)=>{const _0x2ca958=_0x5ab1e6,_0x21fba3=this[_0x2ca958(0x2e5)][_0x2ca958(0x2de)](_0x8a6727);if(!_0x21fba3)return;const _0x507126=this[_0x2ca958(0x1d5)][_0x2ca958(0x1f9)](_0x21fba3[_0x2ca958(0x198)])[_0x2ca958(0x20d)](_0x21fba3[_0x2ca958(0x265)]);_0x21fba3[_0x2ca958(0x2b6)][_0x2ca958(0x27d)](_0x5dd01c=>_0x507126[_0x2ca958(0x2a6)](_0x5dd01c,_0x2ca958(0x2ca))),this[_0x2ca958(0x2e5)][_0x2ca958(0x2b9)](_0x8a6727),this[_0x2ca958(0x2e5)][_0x2ca958(0x1dd)](_0x470c1c,_0x21fba3);}),this[_0x5ab1e6(0x241)](_0x458884,_0x5ab1e6(0x22c),(_0x226076,_0x48d684,_0xc8f07d)=>{const _0x5b8690=_0x5ab1e6,_0x201f66=this[_0x5b8690(0x2e5)][_0x5b8690(0x2de)](_0x48d684);if(!_0x201f66)return;const _0x24a95d=this[_0x5b8690(0x1d5)][_0x5b8690(0x1f9)](_0x201f66[_0x5b8690(0x198)])[_0x5b8690(0x20d)](_0x201f66[_0x5b8690(0x265)]);_0x201f66[_0x5b8690(0x2b6)][_0x5b8690(0x27d)](_0x2760f7=>_0x24a95d[_0x5b8690(0x2a6)](_0x2760f7,_0x5b8690(0x2e9))),this[_0x5b8690(0x2e5)][_0x5b8690(0x2b9)](_0x48d684),this[_0x5b8690(0x2e5)][_0x5b8690(0x1dd)](_0xc8f07d,_0x201f66);});}async[_0x31c42f(0x1e4)](_0x5e68e7){const _0x1f29ca=_0x31c42f;this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x206)](_0x1f29ca(0x1b8))&&this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x2de)](_0x1f29ca(0x1b8))[_0x1f29ca(0x25a)](),(this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x2de)](_0x3d9193)[_0x1f29ca(0x252)][_0x1f29ca(0x2b5)](_0x1f29ca(0x22b)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x247)](_0x1f29ca(0x2e0)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x233)](!0x0),await this[_0x1f29ca(0x1e2)]());try{await this[_0x1f29ca(0x28f)][_0x1f29ca(0x294)](_0x5e68e7)[_0x1f29ca(0x2d4)](),await this[_0x1f29ca(0x2da)](_0x5e68e7),this[_0x1f29ca(0x28c)]('\x20'),await this[_0x1f29ca(0x1d5)][_0x1f29ca(0x280)](_0x5e68e7,this[_0x1f29ca(0x1d9)][_0x1f29ca(0x250)]),this[_0x1f29ca(0x1d5)][_0x1f29ca(0x212)]()&&this[_0x1f29ca(0x1db)]();}catch(_0x2878f2){this[_0x1f29ca(0x2ab)][_0x1f29ca(0x202)]({'errorMessage':_0x5e761d(this[_0x1f29ca(0x24f)][_0x1f29ca(0x1c9)],_0x1f29ca(0x1fc)),'id':_0x5e68e7}),this[_0x1f29ca(0x1d0)](new _0x15e5c0(_0x1f29ca(0x2c0),this,{'error':_0x2878f2}));}finally{this[_0x1f29ca(0x2ab)][_0x1f29ca(0x20e)](),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x247)](_0x1f29ca(0x2f5)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x233)](!0x1);}}async[_0x31c42f(0x272)](){const _0x22a238=_0x31c42f,_0x13c366=this[_0x22a238(0x28f)][_0x22a238(0x282)](this[_0x22a238(0x2dc)](),{'limit':0x1,'sortBy':_0x22a238(0x1e8)});try{const _0x51b350=await _0x13c366[_0x22a238(0x191)]();return _0x51b350[_0x22a238(0x24e)]?_0x51b350[0x0]['id']:_0x22a238(0x24a);}catch(_0x4c11a5){return this[_0x22a238(0x2ab)][_0x22a238(0x202)]({'errorMessage':_0x5e761d(this[_0x22a238(0x24f)][_0x22a238(0x1c9)],_0x22a238(0x1fc)),'id':_0x516f73()}),this[_0x22a238(0x1d0)](new _0x15e5c0(_0x22a238(0x1f1),this,{'error':_0x4c11a5})),this[_0x22a238(0x2ab)][_0x22a238(0x233)](!0x1),this[_0x22a238(0x2ab)][_0x22a238(0x1e3)](),null;}}[_0x31c42f(0x1a2)](_0x277bc9){const _0x28ee9a=_0x31c42f;this[_0x28ee9a(0x1d5)]['id']===_0x277bc9&&this[_0x28ee9a(0x2da)]();}[_0x31c42f(0x1db)](){const _0x318634=_0x31c42f;this[_0x318634(0x1d5)]?.[_0x318634(0x25f)](_0x5e761d(this[_0x318634(0x24f)][_0x318634(0x1c9)],_0x318634(0x278)));}async[_0x31c42f(0x1fe)](){const _0x184976=_0x31c42f,_0x5310bc=this[_0x184976(0x1d9)][_0x184976(0x1e6)]();this[_0x184976(0x1d5)]?.[_0x184976(0x232)](_0x5310bc),this[_0x184976(0x1db)]();}[_0x31c42f(0x28a)](){const _0x3f9cf6=_0x31c42f;this[_0x3f9cf6(0x1d5)]?.[_0x3f9cf6(0x196)]();}[_0x31c42f(0x211)](){const _0x3631b6=_0x31c42f;this[_0x3631b6(0x2ab)][_0x3631b6(0x211)]();}async[_0x31c42f(0x185)](){const _0x1deb18=_0x31c42f;await this[_0x1deb18(0x2da)]();}async[_0x31c42f(0x301)]({message:_0x33b90a,attributes:_0x87dc50}){const _0x25721a=_0x31c42f;await this[_0x25721a(0x25d)]({'userMessage':_0x33b90a,'attributes':_0x87dc50});}[_0x31c42f(0x2dc)](){const _0x3c0d41=_0x31c42f,_0x5027f6=this[_0x3c0d41(0x24f)][_0x3c0d41(0x188)][_0x3c0d41(0x2de)](_0x3c0d41(0x18e));if(!_0x5027f6)throw new _0x15e5c0(_0x3c0d41(0x1b5),this);return _0x5027f6;}async[_0x31c42f(0x2da)](_0x2a16c7){const _0x33a1de=_0x31c42f;try{this[_0x33a1de(0x2ab)][_0x33a1de(0x1a6)](),await this[_0x33a1de(0x234)](_0x2a16c7);}catch(_0x584d18){this[_0x33a1de(0x2ab)][_0x33a1de(0x202)]({'errorMessage':_0x5e761d(this[_0x33a1de(0x24f)][_0x33a1de(0x1c9)],_0x33a1de(0x1f5)),'id':_0x2a16c7||_0x516f73()}),console[_0x33a1de(0x210)](_0x584d18),this[_0x33a1de(0x1d5)]=void 0x0,this[_0x33a1de(0x2ab)][_0x33a1de(0x1e3)]();}}async[_0x31c42f(0x234)](_0x5a1d38){const _0x48a6f3=_0x31c42f;let _0x538758;this[_0x48a6f3(0x24f)][_0x48a6f3(0x2cc)][_0x48a6f3(0x206)](_0x48a6f3(0x1b8))&&this[_0x48a6f3(0x24f)][_0x48a6f3(0x2cc)][_0x48a6f3(0x2de)](_0x48a6f3(0x1b8))[_0x48a6f3(0x25a)](),_0x5a1d38||!this[_0x48a6f3(0x1d5)]?_0x538758=this[_0x48a6f3(0x24f)][_0x48a6f3(0x188)][_0x48a6f3(0x2de)](_0x48a6f3(0x1a7)):this[_0x48a6f3(0x2ab)][_0x48a6f3(0x21c)]&&(_0x538758=this[_0x48a6f3(0x1d5)][_0x48a6f3(0x257)]['id']),await this[_0x48a6f3(0x1e2)]();const _0x5cdb81=this[_0x48a6f3(0x2dc)](),_0x2d2978=_0x5a1d38||_0x516f73();this[_0x48a6f3(0x1d5)]=new _0x3caa70({'connector':this[_0x48a6f3(0x28f)],'chatModels':this[_0x48a6f3(0x2fa)],'selectedModelId':_0x538758,'conversationId':_0x2d2978,'group':_0x5cdb81,'getEditor':()=>_0xa7d697(this[_0x48a6f3(0x24f)]),'isFromHistory':!!_0x5a1d38}),this[_0x48a6f3(0x1d5)][_0x48a6f3(0x1f2)](_0x48a6f3(0x2f3),_0x48a6f3(0x25b))['to'](this),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x298),(_0x27fc70,_0x4c4e50)=>{const _0xeb3689=_0x48a6f3;this[_0xeb3689(0x2ab)][_0xeb3689(0x226)](_0x4c4e50),this[_0xeb3689(0x2ab)][_0xeb3689(0x1d2)](),this[_0xeb3689(0x2ab)][_0xeb3689(0x1ab)](),this[_0xeb3689(0x2ab)][_0xeb3689(0x1c0)](),_0x5a1d38||(this[_0xeb3689(0x2ab)][_0xeb3689(0x227)](),this[_0xeb3689(0x1db)]());}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2a4),(_0x9a6be3,_0x4b9ad5)=>{const _0x101afa=_0x48a6f3;this[_0x101afa(0x2ab)][_0x101afa(0x1f6)](_0x4b9ad5[_0x101afa(0x303)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x23f),(_0x5427b6,_0x4fd1ca)=>{const _0x527803=_0x48a6f3;this[_0x527803(0x2ab)][_0x527803(0x2bb)](_0x4fd1ca);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x277),()=>{const _0x21fd9c=_0x48a6f3,_0x34cb76=this[_0x21fd9c(0x2ab)][_0x21fd9c(0x1ce)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x21fd9c(0x2ab)][_0x21fd9c(0x26d)](_0x34cb76);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x231),()=>{const _0xfcdad8=_0x48a6f3,_0x41d882=this[_0xfcdad8(0x2ab)][_0xfcdad8(0x1ce)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0xfcdad8(0x2ab)][_0xfcdad8(0x26d)](_0x41d882);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x276),(_0x10a172,_0x22ffad)=>{const _0x17d282=_0x48a6f3;this[_0x17d282(0x2ab)][_0x17d282(0x1e9)](_0x22ffad,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x279),(_0x33937d,_0x45674c)=>{const _0x1e9a88=_0x48a6f3;this[_0x1e9a88(0x2ab)][_0x1e9a88(0x1e9)](_0x45674c,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x25b),()=>{const _0x1ede3b=_0x48a6f3;this[_0x1ede3b(0x2ab)][_0x1ede3b(0x1f4)]();}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1dc),async()=>{const _0x4b3987=_0x48a6f3;await this[_0x4b3987(0x2ab)][_0x4b3987(0x300)]();}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x251),(_0x45cc91,_0x57f89d)=>{const _0x4e55b9=_0x48a6f3;this[_0x4e55b9(0x2ab)][_0x4e55b9(0x215)](_0x57f89d['id']);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x18d),(_0x33d037,_0x15615f,_0x1452dd)=>{const _0x1ecdf3=_0x48a6f3;this[_0x1ecdf3(0x28c)](_0x15615f,_0x1452dd);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x281),(_0x4947d7,_0x20061e)=>{const _0x3dd082=_0x48a6f3;_0x3dd082(0x2fc)===_0x20061e[_0x3dd082(0x24b)]?this[_0x3dd082(0x2ab)][_0x3dd082(0x2af)](_0x20061e):this[_0x3dd082(0x2ab)][_0x3dd082(0x2d9)](_0x20061e);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2d5),async(_0xbe1b30,_0x3aa8fe)=>{const _0x2b52ba=_0x48a6f3;await this[_0x2b52ba(0x187)]({'reply':_0x3aa8fe});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x214),(_0x1684b9,{reply:_0x207ec3,index:_0x42f83f,state:_0x255a8e})=>{const _0x1ab3d1=_0x48a6f3;this[_0x1ab3d1(0x2ab)][_0x1ab3d1(0x1b0)]({'id':_0x207ec3['id'],'index':_0x42f83f,'state':_0x255a8e}),this[_0x1ab3d1(0x2d0)]?.[_0x1ab3d1(0x265)][_0x1ab3d1(0x2b7)](_0x207ec3['id'])&&this[_0x1ab3d1(0x2d0)]?.[_0x1ab3d1(0x2ea)]==_0x42f83f&&this[_0x1ab3d1(0x293)]?.[_0x1ab3d1(0x2b8)](_0x255a8e);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x23d),(_0x17e479,_0x193dd8)=>{const _0x372798=_0x48a6f3;if(this[_0x372798(0x2ab)][_0x372798(0x2f0)](_0x193dd8[_0x372798(0x302)],_0x193dd8[_0x372798(0x23c)]),_0x372798(0x1a8)===_0x193dd8[_0x372798(0x302)][_0x372798(0x24b)]){const _0x87dacf=[..._0xa7d697(this[_0x372798(0x24f)])[_0x372798(0x26e)][_0x372798(0x2aa)][_0x372798(0x1a8)][_0x372798(0x295)]()];this[_0x372798(0x1d9)][_0x372798(0x29b)](_0x87dacf,_0x372798(0x25e)+this[_0x372798(0x1d5)]?.['id']);}}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x285),(_0x559b60,_0x1bedef)=>{const _0xe1914e=_0x48a6f3;this[_0xe1914e(0x2ab)][_0xe1914e(0x26b)](_0x1bedef[_0xe1914e(0x2e8)]),_0xe1914e(0x1e1)==_0x1bedef[_0xe1914e(0x2e8)]&&this[_0xe1914e(0x28a)](),_0xe1914e(0x1a8)===_0x1bedef[_0xe1914e(0x24b)]&&this[_0xe1914e(0x1d9)][_0xe1914e(0x2c3)](_0xe1914e(0x25e)+this[_0xe1914e(0x1d5)]?.['id']);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x195),(_0x6d7a48,_0x3a0890)=>{const _0x37ed40=_0x48a6f3;this[_0x37ed40(0x2ab)][_0x37ed40(0x288)](_0x3a0890[_0x37ed40(0x302)][_0x37ed40(0x2e8)],_0x3a0890[_0x37ed40(0x23c)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x25c),(_0x53bccd,_0xaf3b6c)=>{const _0x1455bd=_0x48a6f3;this[_0x1455bd(0x2ab)][_0x1455bd(0x2dd)](_0xaf3b6c[_0x1455bd(0x22e)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1ad),(_0x116f30,_0x2f79f7)=>{const _0x1292c=_0x48a6f3;this[_0x1292c(0x2ab)][_0x1292c(0x1fd)](_0x2f79f7[_0x1292c(0x2cd)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2c9),(_0x4ddd1a,_0x4e883d)=>{const _0x255086=_0x48a6f3;this[_0x255086(0x2ab)][_0x255086(0x1ea)](_0x4e883d[_0x255086(0x2d6)],_0x4e883d[_0x255086(0x29e)],_0x4e883d[_0x255086(0x219)],_0x4e883d[_0x255086(0x1ba)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x190),(_0x263ae2,_0x11b4e4)=>{const _0x59cec9=_0x48a6f3;this[_0x59cec9(0x2ab)][_0x59cec9(0x27e)](_0x11b4e4[_0x59cec9(0x2d6)],_0x11b4e4[_0x59cec9(0x2ba)],_0x11b4e4[_0x59cec9(0x22f)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x237),(_0x36b64b,_0x3c0ec1)=>{const _0x36d9eb=_0x48a6f3;this[_0x36d9eb(0x2ab)][_0x36d9eb(0x17b)](_0x3c0ec1);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1de),async(_0x28c189,_0xe4bcd5)=>{const _0x37e305=_0x48a6f3,_0x9c741a=(await this[_0x37e305(0x2fa)][_0x37e305(0x239)]())[_0x37e305(0x263)](_0x5251b7=>_0x5251b7['id']===_0xe4bcd5[_0x37e305(0x257)]?.['id'])||null;this[_0x37e305(0x2ab)][_0x37e305(0x1e5)](_0x9c741a,_0xe4bcd5[_0x37e305(0x1ee)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x210),(_0x52ec5a,{error:_0x1232e2,interactionId:_0x1c469c,fileName:_0x171a1c,url:_0x1c1e3e,sourceId:_0x200b35,sourceLabel:_0x189004})=>{const _0xba3116=_0x48a6f3,_0x1a8c91=_0x1c469c?_0x1c469c+':'+_0x516f73():_0x516f73();_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x204))?this[_0xba3116(0x2ab)][_0xba3116(0x18b)]({'staticMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2f2)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1f1))||_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1bd))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1f5)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x26f))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x238),_0x171a1c),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x20b))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2f8),_0x1c1e3e),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x2e1))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2ae)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x27c))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x20c)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x201))?(_0x200b35&&this[_0xba3116(0x2ab)][_0xba3116(0x186)](_0x200b35),this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1a4),_0x189004||_0xba3116(0x29e)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x286))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x240)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x19c))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1ec)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1c3))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2bf)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x289))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2ce)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x2ef))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x199)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1b9))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1bc)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1d3)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2));}),await this[_0x48a6f3(0x1d5)][_0x48a6f3(0x1c6)](this[_0x48a6f3(0x24f)][_0x48a6f3(0x188)][_0x48a6f3(0x2de)](_0x48a6f3(0x179))),_0x5a1d38||await this[_0x48a6f3(0x1d5)][_0x48a6f3(0x28b)]();}async[_0x31c42f(0x25d)]({userMessage:_0x2ac44b,attributes:_0x5ce76f}){const _0x5703f0=_0x31c42f;if(!this[_0x5703f0(0x1d5)])throw new _0x15e5c0(_0x5703f0(0x2ee));if(this[_0x5703f0(0x1d5)][_0x5703f0(0x292)]()){const _0x35c6d9=await this[_0x5703f0(0x1d9)][_0x5703f0(0x1cd)]();await this[_0x5703f0(0x1d5)][_0x5703f0(0x254)](_0x35c6d9);}this[_0x5703f0(0x1d5)]['id']&&this[_0x5703f0(0x1d5)][_0x5703f0(0x2e4)]&&await this[_0x5703f0(0x1d5)][_0x5703f0(0x264)]({'userMessage':_0x2ac44b,'attributes':_0x5ce76f});}[_0x31c42f(0x2c4)](){const _0x862d39=_0x31c42f;console[_0x862d39(0x2c7)](_0x862d39(0x2f6));}[_0x31c42f(0x2bd)](_0x3a333f){const _0x2df165=_0x31c42f;this[_0x2df165(0x2ab)][_0x2df165(0x28e)](_0x3a333f);}[_0x31c42f(0x1d0)](_0x3e1b25){const _0x10135b=_0x31c42f;_0x44f241(_0x3e1b25[_0x10135b(0x2c5)]);}[_0x31c42f(0x208)](_0x5cbc3d){const _0x1130e0=_0x31c42f;this[_0x1130e0(0x1d5)]?.[_0x1130e0(0x1be)](_0x5cbc3d);}[_0x31c42f(0x284)](){const _0x51c3ca=_0x31c42f;this[_0x51c3ca(0x1d5)]?.[_0x51c3ca(0x258)]();}[_0x31c42f(0x236)](){const _0x14530d=_0x31c42f;this[_0x14530d(0x1d5)]?.[_0x14530d(0x2b3)]();}[_0x31c42f(0x1d7)](_0x210053){const _0x25e498=_0x31c42f,[_0x5c3e99,_0x34adf3]=_0x210053[_0x25e498(0x197)](':'),_0xfb9a03=this[_0x25e498(0x1d5)][_0x25e498(0x1f9)](_0x5c3e99),_0x1e2f76=_0xfb9a03[_0x25e498(0x20d)](_0x34adf3);return{'interaction':_0xfb9a03,'reply':_0x1e2f76};}[_0x31c42f(0x18a)](_0x2bd5f0,_0x2bd451=!0x1){const _0x498d97=_0x31c42f,_0x57a7ba=_0xa7d697(this[_0x498d97(0x24f)]),_0x40288c={'target':_0x57a7ba[_0x498d97(0x1ca)][_0x498d97(0x252)][_0x498d97(0x2f4)][_0x498d97(0x2df)](_0x57a7ba[_0x498d97(0x1ca)][_0x498d97(0x17d)][_0x498d97(0x1ae)](_0x2bd5f0)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2bd451};_0x2bd451&&(_0x40288c[_0x498d97(0x1ac)]=!0x0),_0x366ea2(_0x40288c);}[_0x31c42f(0x28c)](_0x135d7c,_0x234422=!0x1){const _0x436a2a=_0x31c42f;this[_0x436a2a(0x2ab)][_0x436a2a(0x18d)](_0x135d7c||_0x5e761d(this[_0x436a2a(0x24f)][_0x436a2a(0x1c9)],_0x436a2a(0x1d1)),_0x234422);}async[_0x31c42f(0x187)]({reply:_0x5bb6a7,renderingStrategy:_0x4bcf0b}){const _0x20e6e7=_0x31c42f,{id:_0x253234,interactionId:_0x454593,isDone:_0x4976dc,type:_0x518eea,parsedContent:_0x52812c}=_0x5bb6a7,_0x3325d2=_0x454593+':'+_0x253234;if(_0x20e6e7(0x1df)===_0x518eea){const _0x14ec98=_0x5bb6a7[_0x20e6e7(0x213)]({'showDiff':this[_0x20e6e7(0x2ab)][_0x20e6e7(0x1ed)]});await this[_0x20e6e7(0x2ab)][_0x20e6e7(0x27f)]({'id':_0x3325d2,'parts':_0x14ec98,'renderingStrategy':_0x4bcf0b,'isDone':_0x4976dc});}else _0x20e6e7(0x2fc)===_0x518eea&&await this[_0x20e6e7(0x2ab)][_0x20e6e7(0x2e3)]({'id':_0x3325d2,'parsedContent':_0x52812c,'renderingStrategy':_0x4bcf0b,'isDone':_0x4976dc});_0x4976dc&&_0x5bb6a7[_0x20e6e7(0x21d)][_0x20e6e7(0x24e)]>0x0&&this[_0x20e6e7(0x2ab)][_0x20e6e7(0x207)](_0x3325d2,_0x5bb6a7[_0x20e6e7(0x21d)]);}async[_0x31c42f(0x1e2)](){const _0x5756cf=_0x31c42f,_0x3f9fbf=this[_0x5756cf(0x1d5)]?.[_0x5756cf(0x21f)];_0x3f9fbf&&(_0x3f9fbf[_0x5756cf(0x21a)](),this[_0x5756cf(0x2ab)][_0x5756cf(0x29a)](_0x3f9fbf));}async[_0x31c42f(0x2a7)](){const _0x2a9a46=_0x31c42f,_0x1e9730=this[_0x2a9a46(0x1d5)]?.[_0x2a9a46(0x21f)];if(_0x1e9730){for await(const _0x531358 of _0x1e9730[_0x2a9a46(0x20a)])await this[_0x2a9a46(0x187)]({'reply':_0x531358,'renderingStrategy':_0x2a9a46(0x2e0)});}}[_0x31c42f(0x2b1)](_0x439494){const _0x1bbc30=_0x31c42f,_0xe58444={'positiveCount':_0x439494[_0x1bbc30(0x1f3)][_0x1bbc30(0x229)](_0x3895c7=>_0x1bbc30(0x2e9)===_0x3895c7[_0x1bbc30(0x1a9)])[_0x1bbc30(0x24e)],'totalCount':_0x439494[_0x1bbc30(0x1f3)][_0x1bbc30(0x24e)],'modificationId':_0x439494['id']},_0x4074fd=this[_0x1bbc30(0x1d5)][_0x1bbc30(0x1f9)](_0x439494[_0x1bbc30(0x198)])[_0x1bbc30(0x230)];_0x4074fd&&this[_0x1bbc30(0x28f)][_0x1bbc30(0x299)](this[_0x1bbc30(0x1d5)]['id'],_0x4074fd,_0xe58444);}[_0x31c42f(0x218)](_0xa79a1b){const _0xc89f59=_0x31c42f;let _0x33929c=null,_0x5602f0=null;this['on'](_0xc89f59(0x2f3),(_0x3290c6,_0x1b9c71,_0x414311)=>{const _0x9de7fd=_0xc89f59;_0x414311['id']!==_0x33929c&&(_0x33929c=_0x414311['id'],_0x5602f0=this[_0x9de7fd(0x248)](_0x414311)),_0xa79a1b(_0x1b9c71,_0x5602f0);});}[_0x31c42f(0x248)](_0x1888ca){const _0x322134=_0x31c42f,_0x5a052f=this[_0x322134(0x2ab)],_0x1c6b49=()=>{const _0x1e7b03=_0x322134;_0x1888ca[_0x1e7b03(0x287)](),_0x1888ca[_0x1e7b03(0x249)](),_0x5a052f[_0x1e7b03(0x2b2)]();},_0x4fcfa=()=>{const _0x280e8d=_0x322134;_0x1888ca[_0x280e8d(0x23e)]&&(_0x1888ca[_0x280e8d(0x23e)][_0x280e8d(0x2f1)](),_0x1888ca[_0x280e8d(0x23e)]=void 0x0);};return{'insertTextReply':(_0x16370c,_0x459a76)=>{const _0x51c925=_0x322134;_0x4fcfa(),_0x1c6b49();const _0x42ca37=_0x1888ca[_0x51c925(0x23e)]=_0x1888ca[_0x51c925(0x19a)]({'type':_0x51c925(0x2fc),'interactionId':_0x1888ca['id'],'content':_0x16370c,'id':_0x459a76||_0x516f73()});return _0x4fcfa(),_0x42ca37;},'insertCustomElement':async(_0x373d70,_0xed9567)=>(_0x4fcfa(),_0x1c6b49(),_0x5a052f[_0x322134(0x1b2)](_0x373d70,_0xed9567||_0x516f73())),'setLoadingMessage':_0x48b702=>{const _0x51735f=_0x322134;_0x5a052f[_0x51735f(0x26d)](_0x48b702);},'clearLoadingMessage':()=>{const _0x148a0a=_0x322134;_0x5a052f[_0x148a0a(0x2b2)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e8f(_0x5100e2,_0x275d27){const _0x478154=_0x4781();return _0x1e8f=function(_0x1e8f6e,_0x37077c){_0x1e8f6e=_0x1e8f6e-0x1c8;let _0x491481=_0x478154[_0x1e8f6e];return _0x491481;},_0x1e8f(_0x5100e2,_0x275d27);}const _0x53483a=_0x1e8f;(function(_0x1725c0,_0x198912){const _0x2e8e4b=_0x1e8f,_0x2a8a31=_0x1725c0();while(!![]){try{const _0x40d470=parseInt(_0x2e8e4b(0x1da))/0x1+-parseInt(_0x2e8e4b(0x239))/0x2*(-parseInt(_0x2e8e4b(0x1ee))/0x3)+parseInt(_0x2e8e4b(0x224))/0x4+parseInt(_0x2e8e4b(0x271))/0x5+parseInt(_0x2e8e4b(0x255))/0x6+parseInt(_0x2e8e4b(0x248))/0x7+-parseInt(_0x2e8e4b(0x1ca))/0x8;if(_0x40d470===_0x198912)break;else _0x2a8a31['push'](_0x2a8a31['shift']());}catch(_0x4a0c20){_0x2a8a31['push'](_0x2a8a31['shift']());}}}(_0x4781,0x714d5));function _0x4781(){const _0x5b0065=['setFeedItemAIReplySuggestionPartActive','enqueue','addFeedItemError','renderingStrategy','3183060ckEexw','isBusy','_animateConversationTitle','markItemAsDone','chat','areActionsDisabled','userMessage','bind','streaming','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','23335176BGEBJk','forEach','setModel','isVisible','updateCapabilities','_titleAnimationInterval','last','clear','chatControls','ai-suggestion-reply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enableModelSelector','closeSourceResourceBalloon','conversationCreated','hasItem','<p>','872361pTVdNA','setInputPlaceholder','removeFeedItem','scrollToSuggestion','addFeedItemAIReply','ai.chat.welcomeMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isModelAvailable','interaction-header','updateFeedItemAIReplySuggestionContent','ai.models.showModelSelector','_isTrackChangesCommandValueBound','toggleSuggestionDisplayMode','updateReplyItem','toggleLoadingSkeleton','AI_CHAT_WELCOME_MESSAGE','clearLoadingMessage','find','setAddContextOptions','updateSuggestionPartState','201jSgieK','startInteraction','enableControls','insertSuggestion','setSuggestionPartActive','isOfficialPlugin','isTrackChangesOn','disableModelSelector','capabilities','updateResourceState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','updateFeedItemAIReplyContent','setConversationContext','trackChanges','resetMessageInput','isWebSearchEnabled','setWebSearch','setLoadingMessage','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','commands','stopInteraction','</p>','removeFeedInteraction','setConversationTitle','options','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','config','focusPromptInput','set','setContextItemLoading','destroy','context','AITabs','showResizeButton','availableModels','view','updateFeedItemAIReplySuggestionPartState','ai.availableReplyActions','isReasoningEnabled','addFeedInteractionHeader','has','prepareLoadingMessage','startAutoScroll','startsWith','setSelectedModel','isMaximized','AI_CHAT_HEADING','isPending','createConversation','interactionId','updateFeedItemAIReplySources','removeItem','3482064irfjsH','error-message','isDisabled','requires','contextItems','addFeedItemStaticMessage','addFeedItemAISuggestion','values','_interactionPromiseResolver','queueEmptyPromise','populateSourceResourceBalloon','isDone','delegate','conversation-start','value','remove','hasFeedItem','from','setIsUploadInProgress','ai-reply','chatHeader','8546mPmOVl','displayedPrompt','setIsMaximized','label','_view','stopAutoScroll','finishInteraction','_promiseQueue','chatFeed','markFeedItemAsDone','clearPendingContextUI','length','updateSuggestionItem','updateFeedInteractionHeader','removeContextItem','1039633AGXbsZ','showDiff','children','addFeedItemUserMessage','getItemIds','updateWebSources','filter','ai.chat.context.searchInputVisibleFrom','TrackChanges','AIChatUI','fire','plugins','resetConversationTitle','3400098Hcczqc','addContextItem','setModelList','setPromptInputValue','isPremiumPlugin','locale','attributes','disableControls','get','pluginName','abort','isLoading','then','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','feedItemRenderingStrategy','user-message','custom-element','addItem','scrollFeedToSuggestion','setReasoning','addTab','_getInputPlaceholder','addFeedItemCustomElement','setFeedItemRenderingStrategy'];_0x4781=function(){return _0x5b0065;};return _0x4781();}import{ContextPlugin as _0x369e29}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4ecb05}from'ckeditor5/src/utils.js';import{AIChatView as _0x3fcbe1}from'./ui/aichatview.js';import{AITabs as _0x59fef4}from'../aitabs/aitabs.js';import{getTranslation as _0x1d47b3}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x5dfe42}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x7f8010}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5dbfb8}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4187e8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x1eb783}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x562810}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x369e29{static get[_0x53483a(0x227)](){return[_0x59fef4];}[_0x53483a(0x23d)];static get[_0x53483a(0x25e)](){const _0x1b56c1=_0x53483a;return _0x1b56c1(0x251);}static get[_0x53483a(0x1f3)](){return!0x0;}static get[_0x53483a(0x259)](){return!0x0;}[_0x53483a(0x263)]=_0x53483a(0x1c8);[_0x53483a(0x249)]=!0x0;[_0x53483a(0x240)];[_0x53483a(0x22c)];[_0x53483a(0x1cf)]=void 0x0;[_0x53483a(0x1e5)]=!0x1;constructor(_0xce31bf){const _0x5d27a7=_0x53483a;super(_0xce31bf);const _0x4920ef=this[_0x5d27a7(0x20f)][_0x5d27a7(0x253)][_0x5d27a7(0x25d)](_0x5d27a7(0x210));this[_0x5d27a7(0x20c)](_0x5d27a7(0x272),!0x1),this[_0x5d27a7(0x240)]=new _0x5dbfb8(),this[_0x5d27a7(0x23d)]=new _0x3fcbe1(this[_0x5d27a7(0x20f)][_0x5d27a7(0x25a)],{'showResizeButton':_0x4920ef[_0x5d27a7(0x211)],'contextResourcesSearchInputVisibleFrom':this[_0x5d27a7(0x20f)][_0x5d27a7(0x20a)][_0x5d27a7(0x25d)](_0x5d27a7(0x24f))}),this[_0x5d27a7(0x23d)][_0x5d27a7(0x230)](..._0x4187e8)['to'](this),this[_0x5d27a7(0x23d)]['on'](_0x5d27a7(0x1e6),(_0x52d90b,{showDiff:_0x581470})=>{const _0x66457a=_0x5d27a7;this[_0x66457a(0x249)]=_0x581470;}),_0x4920ef[_0x5d27a7(0x213)][_0x5d27a7(0x269)]({'id':_0x5d27a7(0x275),'buttonLabel':_0x1d47b3(this[_0x5d27a7(0x20f)][_0x5d27a7(0x25a)],_0x5d27a7(0x21e)),'buttonIcon':_0x5dfe42,'order':0x0,'content':this[_0x5d27a7(0x23d)]}),this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)][_0x5d27a7(0x278)](_0x5d27a7(0x260))['to'](this,_0x5d27a7(0x272),_0x53979e=>_0x53979e),this[_0x5d27a7(0x23d)][_0x5d27a7(0x241)][_0x5d27a7(0x278)](_0x5d27a7(0x21f))['to'](this,_0x5d27a7(0x272),_0x36f48c=>_0x36f48c),this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)][_0x5d27a7(0x1db)](this[_0x5d27a7(0x26a)]()),this[_0x5d27a7(0x278)](_0x5d27a7(0x1e1))['to'](this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)],_0x5d27a7(0x1e1));}[_0x53483a(0x20e)](){const _0x24754b=_0x53483a;super[_0x24754b(0x20e)](),this[_0x24754b(0x1cf)]&&clearInterval(this[_0x24754b(0x1cf)]);}[_0x53483a(0x220)](_0x1b6571){const _0x3203d8=_0x53483a,_0x34d063=this[_0x3203d8(0x20f)][_0x3203d8(0x20a)][_0x3203d8(0x25d)](_0x3203d8(0x1df))??_0x1d47b3(this[_0x3203d8(0x20f)][_0x3203d8(0x25a)],_0x3203d8(0x1e9));this[_0x3203d8(0x23d)][_0x3203d8(0x241)][_0x3203d8(0x1d1)](),this[_0x3203d8(0x23d)][_0x3203d8(0x1d2)][_0x3203d8(0x1d5)](),this[_0x3203d8(0x23d)][_0x3203d8(0x1d2)][_0x3203d8(0x257)](_0x1b6571[_0x3203d8(0x212)],!this[_0x3203d8(0x20f)][_0x3203d8(0x20a)][_0x3203d8(0x25d)](_0x3203d8(0x1e4))),this[_0x3203d8(0x229)]({'id':_0x3203d8(0x231),'staticMessage':_0x34d063}),this[_0x3203d8(0x252)](_0x3203d8(0x1d7));}[_0x53483a(0x229)]({id:_0x383690,staticMessage:_0x3fc359}){const _0x50d77f=_0x53483a;this[_0x50d77f(0x23d)][_0x50d77f(0x241)][_0x50d77f(0x266)](_0x50d77f(0x237),{'id':_0x383690,'initialContent':_0x50d77f(0x1d9)+_0x3fc359+_0x50d77f(0x203)});}[_0x53483a(0x24b)](_0x2462b8){const _0x4bcae5=_0x53483a,_0x2866c2=_0x2462b8[_0x4bcae5(0x25b)]?.[_0x4bcae5(0x23a)]||_0x2462b8[_0x4bcae5(0x277)];this[_0x4bcae5(0x23d)][_0x4bcae5(0x241)][_0x4bcae5(0x266)](_0x4bcae5(0x264),{'contextItems':Array[_0x4bcae5(0x235)](_0x2462b8[_0x4bcae5(0x228)][_0x4bcae5(0x22b)]()),'initialContent':_0x4bcae5(0x1d9)+_0x2866c2+_0x4bcae5(0x203),'id':_0x2462b8['id']});}[_0x53483a(0x26f)]({errorMessage:_0x3abbc1,id:_0x5127bc}){const _0x3d4558=_0x53483a;this[_0x3d4558(0x23d)][_0x3d4558(0x241)][_0x3d4558(0x266)](_0x3d4558(0x225),{'initialContent':_0x3d4558(0x1d9)+_0x3abbc1+_0x3d4558(0x203),'id':_0x5127bc});}[_0x53483a(0x1de)](_0x10cefa){const _0x258064=_0x53483a;return this[_0x258064(0x240)][_0x258064(0x26e)](async()=>{const _0x4dc32b=_0x258064;this[_0x4dc32b(0x23d)][_0x4dc32b(0x241)][_0x4dc32b(0x266)](_0x4dc32b(0x237),{'id':_0x10cefa[_0x4dc32b(0x221)]+':'+_0x10cefa['id']}),this[_0x4dc32b(0x1ea)]();});}async[_0x53483a(0x22a)](_0x4c629a){const _0xacb358=_0x53483a,_0x4750a8=_0x1eb783(this[_0xacb358(0x20f)]);let _0x14fca5=_0x4750a8[_0xacb358(0x20a)][_0xacb358(0x25d)](_0xacb358(0x215))||[..._0x562810];if(_0x4750a8[_0xacb358(0x253)][_0xacb358(0x218)](_0xacb358(0x250))){if(!this[_0xacb358(0x1e5)]){this[_0xacb358(0x1e5)]=!0x0;const _0x5af330=_0x4750a8[_0xacb358(0x201)][_0xacb358(0x25d)](_0xacb358(0x1fb));this[_0xacb358(0x23d)][_0xacb358(0x241)][_0xacb358(0x278)](_0xacb358(0x1f4))['to'](_0x5af330,_0xacb358(0x232));}}else _0x14fca5=_0x14fca5[_0xacb358(0x24e)](_0x267a14=>_0xacb358(0x1f1)!=_0x267a14);return this[_0xacb358(0x240)][_0xacb358(0x26e)](async()=>{const _0x3a310d=_0xacb358;this[_0x3a310d(0x23d)][_0x3a310d(0x241)][_0x3a310d(0x266)](_0x3a310d(0x1d3),{'id':_0x4c629a[_0x3a310d(0x221)]+':'+_0x4c629a['id'],'areActionsDisabled':_0x4c629a[_0x3a310d(0x276)],'showDiff':this[_0x3a310d(0x249)],'availableActions':_0x14fca5}),this[_0x3a310d(0x1ea)]();});}[_0x53483a(0x217)](_0x41af8c,_0x16e3e4){const _0x395de0=_0x53483a,_0x591d01=this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x24a)][_0x395de0(0x1d0)];if(_0x591d01 instanceof _0x7f8010)return this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x24a)][_0x395de0(0x233)](_0x591d01),void this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x266)](_0x395de0(0x1e2),{'id':_0x41af8c['id'],'capabilities':{'isWebSearchEnabled':_0x591d01[_0x395de0(0x1f6)][_0x395de0(0x1fd)]||_0x16e3e4[_0x395de0(0x1fd)],'isReasoningEnabled':_0x591d01[_0x395de0(0x1f6)][_0x395de0(0x216)]||_0x16e3e4[_0x395de0(0x216)]}});this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x266)](_0x395de0(0x1e2),{'id':_0x41af8c['id'],'capabilities':_0x16e3e4});}async[_0x53483a(0x26b)](_0x289260,_0x1b4b49){const _0x5971a1=_0x53483a;let _0x27b280;return await this[_0x5971a1(0x240)][_0x5971a1(0x26e)](async()=>{const _0x4974f1=_0x5971a1;_0x27b280=this[_0x4974f1(0x23d)][_0x4974f1(0x241)][_0x4974f1(0x266)](_0x4974f1(0x265),{'content':_0x289260,'id':_0x1b4b49});}),_0x27b280;}[_0x53483a(0x1dc)](_0xfed8b8){const _0x410af2=_0x53483a;this[_0x410af2(0x23d)][_0x410af2(0x241)][_0x410af2(0x223)](_0xfed8b8);}[_0x53483a(0x234)](_0x27ae71){const _0x465491=_0x53483a;return this[_0x465491(0x23d)][_0x465491(0x241)][_0x465491(0x1d8)](_0x27ae71);}[_0x53483a(0x246)](_0x1d7425){const _0x2661a1=_0x53483a,_0x34c51c=this[_0x2661a1(0x23d)][_0x2661a1(0x241)][_0x2661a1(0x24a)][_0x2661a1(0x1eb)](_0x2ed832=>_0x2ed832[_0x2661a1(0x206)]['id']==_0x1d7425['id']&&_0x2ed832 instanceof _0x7f8010);_0x34c51c&&_0x34c51c[_0x2661a1(0x20c)](_0x2661a1(0x1cd),_0x1d7425[_0x2661a1(0x1cd)]);}async[_0x53483a(0x1f9)](_0x505d08){const _0x33ebe9=_0x53483a,_0x1378bc=_0x505d08[_0x33ebe9(0x270)]||this[_0x33ebe9(0x263)];return this[_0x33ebe9(0x240)][_0x33ebe9(0x26e)](async _0x54ccc9=>{const _0x5b5d51=_0x33ebe9;await this[_0x5b5d51(0x23d)][_0x5b5d51(0x241)][_0x5b5d51(0x1e7)]({..._0x505d08,'abortSignal':_0x54ccc9,'renderingStrategy':_0x1378bc}),_0x505d08[_0x5b5d51(0x22f)]&&this[_0x5b5d51(0x242)](_0x505d08['id']);});}[_0x53483a(0x222)](_0x2d6db1,_0x3c7e79){const _0x4c6e84=_0x53483a;this[_0x4c6e84(0x23d)][_0x4c6e84(0x241)][_0x4c6e84(0x24d)](_0x2d6db1,_0x3c7e79);}async[_0x53483a(0x1e3)](_0xc80648){const _0x338157=_0x53483a,_0x569b54=_0xc80648[_0x338157(0x270)]||this[_0x338157(0x263)];return this[_0x338157(0x240)][_0x338157(0x26e)](async _0x36386d=>{const _0x2c81f9=_0x338157;await this[_0x2c81f9(0x23d)][_0x2c81f9(0x241)][_0x2c81f9(0x245)]({..._0xc80648,'abortSignal':_0x36386d,'renderingStrategy':_0x569b54}),_0xc80648[_0x2c81f9(0x22f)]&&this[_0x2c81f9(0x242)](_0xc80648['id']);});}[_0x53483a(0x214)](_0x2844e5){const _0x3997aa=_0x53483a;this[_0x3997aa(0x23d)][_0x3997aa(0x241)][_0x3997aa(0x1ed)](_0x2844e5);}[_0x53483a(0x26d)](_0xd51bab){const _0xf949d5=_0x53483a;this[_0xf949d5(0x23d)][_0xf949d5(0x241)][_0xf949d5(0x1f2)](_0xd51bab);}[_0x53483a(0x242)](_0x456c5e){const _0x13e51b=_0x53483a;this[_0x13e51b(0x23d)][_0x13e51b(0x241)][_0x13e51b(0x274)](_0x456c5e);}[_0x53483a(0x204)](_0x1469c2){const _0x1a15a7=_0x53483a;this[_0x1a15a7(0x23d)][_0x1a15a7(0x241)][_0x1a15a7(0x24c)]()[_0x1a15a7(0x24e)](_0xaab21b=>_0xaab21b[_0x1a15a7(0x21b)](_0x1469c2))[_0x1a15a7(0x1cb)](_0x317b6d=>this[_0x1a15a7(0x23d)][_0x1a15a7(0x241)][_0x1a15a7(0x223)](_0x317b6d));}[_0x53483a(0x1ef)](){const _0x3c47c8=_0x53483a,_0x339d74=this[_0x3c47c8(0x219)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3c47c8(0x1ff)](_0x339d74),this[_0x3c47c8(0x23d)][_0x3c47c8(0x1d2)][_0x3c47c8(0x1f5)](!this[_0x3c47c8(0x20f)][_0x3c47c8(0x20a)][_0x3c47c8(0x25d)](_0x3c47c8(0x1e4))),this[_0x3c47c8(0x272)]=!0x0,this[_0x3c47c8(0x23d)][_0x3c47c8(0x241)][_0x3c47c8(0x21a)]();}[_0x53483a(0x202)](_0x3f76ff){const _0x3fcc67=_0x53483a;this[_0x3fcc67(0x240)][_0x3fcc67(0x25f)](),this[_0x3fcc67(0x23d)][_0x3fcc67(0x241)][_0x3fcc67(0x24c)]()[_0x3fcc67(0x24e)](_0x1224f6=>_0x1224f6[_0x3fcc67(0x21b)](_0x3f76ff['id']))[_0x3fcc67(0x1cb)](_0x1e8c99=>this[_0x3fcc67(0x242)](_0x1e8c99)),this[_0x3fcc67(0x272)]=!0x1,this[_0x3fcc67(0x23d)][_0x3fcc67(0x241)][_0x3fcc67(0x23e)]();}async[_0x53483a(0x23f)](){const _0x2f528c=_0x53483a;return this[_0x2f528c(0x240)][_0x2f528c(0x22d)][_0x2f528c(0x261)](()=>{const _0x1a73a7=_0x2f528c;this[_0x1a73a7(0x272)]=!0x1,this[_0x1a73a7(0x23d)][_0x1a73a7(0x241)][_0x1a73a7(0x23e)]();});}[_0x53483a(0x256)](_0x3fccf2,_0x9036){const _0x183fac=_0x53483a;this[_0x183fac(0x23d)][_0x183fac(0x1d2)][_0x183fac(0x256)](_0x3fccf2,_0x9036);}[_0x53483a(0x247)](_0x321ff2){const _0x4366be=_0x53483a;this[_0x4366be(0x23d)][_0x4366be(0x1d2)][_0x4366be(0x247)](_0x321ff2);}[_0x53483a(0x20d)](_0x41c760,_0x2172ff){const _0x4d3014=_0x53483a;this[_0x4d3014(0x23d)][_0x4d3014(0x1d2)][_0x4d3014(0x20d)](_0x41c760,_0x2172ff);}[_0x53483a(0x236)](_0x2b630d){const _0x156197=_0x53483a;this[_0x156197(0x23d)][_0x156197(0x1d2)][_0x156197(0x236)](_0x2b630d);}[_0x53483a(0x1fa)](_0x13c5f2){const _0x49a783=_0x53483a;this[_0x49a783(0x23d)][_0x49a783(0x1d2)][_0x49a783(0x1fa)](_0x13c5f2);}[_0x53483a(0x243)](){const _0x1984d2=_0x53483a;this[_0x1984d2(0x23d)][_0x1984d2(0x1d2)][_0x1984d2(0x243)]();}[_0x53483a(0x208)](){const _0x482d12=_0x53483a;this[_0x482d12(0x23d)][_0x482d12(0x1d2)][_0x482d12(0x208)]();}[_0x53483a(0x1f7)](_0x3e9c9d,_0x5399df,_0x165fec){const _0x2172a8=_0x53483a;this[_0x2172a8(0x23d)][_0x2172a8(0x1d2)][_0x2172a8(0x1f7)](_0x3e9c9d,_0x5399df,_0x165fec);}[_0x53483a(0x1fc)](){const _0x87b7b4=_0x53483a;this[_0x87b7b4(0x23d)][_0x87b7b4(0x1d2)][_0x87b7b4(0x1fc)](),this[_0x87b7b4(0x23d)][_0x87b7b4(0x1d2)][_0x87b7b4(0x1db)](this[_0x87b7b4(0x26a)]());}[_0x53483a(0x1ec)](_0x10216d){const _0x1d9fcf=_0x53483a;this[_0x1d9fcf(0x23d)][_0x1d9fcf(0x1d2)][_0x1d9fcf(0x1ec)](_0x10216d);}[_0x53483a(0x1ce)](_0x302cbb){const _0x251eb9=_0x53483a;this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x1fe)](_0x302cbb[_0x251eb9(0x1fd)]),this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x268)](_0x302cbb[_0x251eb9(0x216)]),this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x1db)](this[_0x251eb9(0x26a)](_0x302cbb));}[_0x53483a(0x21c)](_0x2f42bc,_0x14a542){const _0x1c1876=_0x53483a;this[_0x1c1876(0x23d)][_0x1c1876(0x1d2)][_0x1c1876(0x1cc)](_0x2f42bc),_0x14a542&&this[_0x1c1876(0x23d)][_0x1c1876(0x1d2)][_0x1c1876(0x1f5)](!0x1);}[_0x53483a(0x26c)](_0x116bdc){const _0x13d930=_0x53483a;this[_0x13d930(0x263)]=_0x116bdc;}[_0x53483a(0x1e8)](_0x80e957){const _0x1c794a=_0x53483a;this[_0x1c794a(0x23d)][_0x1c794a(0x241)][_0x1c794a(0x1e8)](_0x80e957);}[_0x53483a(0x254)](){const _0x4acb03=_0x53483a;this[_0x4acb03(0x205)](_0x1d47b3(this[_0x4acb03(0x20f)][_0x4acb03(0x25a)],_0x4acb03(0x21e)));}[_0x53483a(0x205)](_0x3416c1,_0x52eb6b=!0x1){const _0x415682=_0x53483a;if(_0x52eb6b&&!_0x4ecb05()&&_0x3416c1[_0x415682(0x244)])return this[_0x415682(0x23d)][_0x415682(0x238)][_0x415682(0x23c)]='',void this[_0x415682(0x273)](_0x3416c1);this[_0x415682(0x23d)][_0x415682(0x238)][_0x415682(0x23c)]=_0x3416c1;}[_0x53483a(0x1ff)](_0x44e648){const _0x2bfd45=_0x53483a;this[_0x2bfd45(0x23d)][_0x2bfd45(0x241)][_0x2bfd45(0x1ff)](_0x44e648);}[_0x53483a(0x1ea)](){const _0x1cfcf1=_0x53483a;this[_0x1cfcf1(0x23d)][_0x1cfcf1(0x241)][_0x1cfcf1(0x1ff)]('');}[_0x53483a(0x273)](_0x488281){const _0x592229=_0x53483a;let _0x2bb4ec=0x0;clearInterval(this[_0x592229(0x1cf)]),this[_0x592229(0x1cf)]=setInterval(()=>{const _0x2ce3bb=_0x592229;this[_0x2ce3bb(0x23d)][_0x2ce3bb(0x238)][_0x2ce3bb(0x23c)]=this[_0x2ce3bb(0x23d)][_0x2ce3bb(0x238)][_0x2ce3bb(0x23c)]+_0x488281[_0x2bb4ec],_0x2bb4ec++,_0x2bb4ec===_0x488281[_0x2ce3bb(0x244)]&&clearInterval(this[_0x2ce3bb(0x1cf)]);},0x1e);}[_0x53483a(0x23b)](_0xcd5b7){const _0xeadda9=_0x53483a;this[_0xeadda9(0x23d)][_0xeadda9(0x238)][_0xeadda9(0x21d)]=_0xcd5b7;}[_0x53483a(0x219)](_0x5918e0){const _0x39f127=_0x53483a;return _0x5918e0[_0x39f127(0x1fd)]&&_0x5918e0[_0x39f127(0x216)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x209)):_0x5918e0[_0x39f127(0x1fd)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x207)):_0x5918e0[_0x39f127(0x216)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x200)):_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x262));}[_0x53483a(0x26a)](_0x15f73b){const _0x186ae6=_0x53483a;return _0x15f73b?_0x15f73b[_0x186ae6(0x1fd)]&&_0x15f73b[_0x186ae6(0x216)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1d4)):_0x15f73b[_0x186ae6(0x1fd)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1e0)):_0x15f73b[_0x186ae6(0x216)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1c9)):_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1f8)):_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1f8));}[_0x53483a(0x22e)](_0x1ed86b,_0x53bb22,_0x494f6a,_0x1c08ef){const _0x20c4be=_0x53483a;this[_0x20c4be(0x23d)][_0x20c4be(0x22e)](_0x1ed86b,_0x53bb22,_0x494f6a,_0x1c08ef);}[_0x53483a(0x1d6)](_0x56bcb6){const _0x250caa=_0x53483a;this[_0x250caa(0x23d)][_0x250caa(0x1d6)](_0x56bcb6);}[_0x53483a(0x258)](_0x28f980){const _0x2845df=_0x53483a;this[_0x2845df(0x23d)][_0x2845df(0x1d2)][_0x2845df(0x258)](_0x28f980);}[_0x53483a(0x20b)](_0x155591=!0x1){const _0x5910f6=_0x53483a;this[_0x5910f6(0x23d)][_0x5910f6(0x1d2)][_0x5910f6(0x20b)](_0x155591);}[_0x53483a(0x267)](_0x234cff,_0x2aa01f){const _0x27a845=_0x53483a;this[_0x27a845(0x23d)][_0x27a845(0x241)][_0x27a845(0x1dd)](_0x234cff,_0x2aa01f);}[_0x53483a(0x21a)](){const _0x34c0b0=_0x53483a;this[_0x34c0b0(0x23d)][_0x34c0b0(0x241)][_0x34c0b0(0x21a)]();}[_0x53483a(0x25c)](){const _0x2d5b79=_0x53483a;this[_0x2d5b79(0x23d)][_0x2d5b79(0x1d2)][_0x2d5b79(0x226)]=!0x0;}[_0x53483a(0x1f0)](){const _0x39fdd3=_0x53483a;this[_0x39fdd3(0x23d)][_0x39fdd3(0x1d2)][_0x39fdd3(0x226)]=!0x1;}}
23
+ const _0x49e55e=_0x320e;(function(_0x2c0de4,_0x3fff15){const _0x4f743a=_0x320e,_0x55c4b8=_0x2c0de4();while(!![]){try{const _0x39335d=parseInt(_0x4f743a(0x1d8))/0x1*(-parseInt(_0x4f743a(0x207))/0x2)+parseInt(_0x4f743a(0x1b0))/0x3*(parseInt(_0x4f743a(0x168))/0x4)+-parseInt(_0x4f743a(0x1f1))/0x5+-parseInt(_0x4f743a(0x1c1))/0x6*(parseInt(_0x4f743a(0x1fd))/0x7)+parseInt(_0x4f743a(0x206))/0x8*(parseInt(_0x4f743a(0x18d))/0x9)+-parseInt(_0x4f743a(0x19a))/0xa+-parseInt(_0x4f743a(0x1b2))/0xb*(-parseInt(_0x4f743a(0x1fa))/0xc);if(_0x39335d===_0x3fff15)break;else _0x55c4b8['push'](_0x55c4b8['shift']());}catch(_0x5b444c){_0x55c4b8['push'](_0x55c4b8['shift']());}}}(_0x11a5,0x38f44));import{ContextPlugin as _0x463581}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x557562}from'ckeditor5/src/utils.js';function _0x320e(_0x3199fa,_0x292ae1){const _0x11a594=_0x11a5();return _0x320e=function(_0x320e43,_0x5cb7b2){_0x320e43=_0x320e43-0x154;let _0x42f39d=_0x11a594[_0x320e43];return _0x42f39d;},_0x320e(_0x3199fa,_0x292ae1);}import{AIChatView as _0x59e63a}from'./ui/aichatview.js';import{AITabs as _0x256326}from'../aitabs/aitabs.js';import{getTranslation as _0x1e2050}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x39b408}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x3ba3ad}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x24ed3f}from'./utils/promisequeue.js';function _0x11a5(){const _0x13092e=['363RTtGbI','_titleAnimationInterval','enableModelSelector','context','setSelectedModel','remove','addFeedItemCustomElement','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','destroy','set','locale','setModel','conversationCreated','resetMessageInput','60LflIdA','prepareLoadingMessage','TrackChanges','streaming','stopAutoScroll','markFeedItemAsDone','values','areActionsDisabled','_promiseQueue','resetConversationTitle','ai.chat.context.searchInputVisibleFrom','_isTrackChangesCommandValueBound','updateSuggestionItem','_getInputPlaceholder','setModelList','conversation-start','_animateConversationTitle','trackChanges','capabilities','interactionId','commands','updateFeedItemAIReplySuggestionContent','updateFeedInteractionHeader','398117pYpsKu','createConversation','removeContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','finishInteraction','isPremiumPlugin','removeFeedInteraction','isReasoningEnabled','_view','setIsUploadInProgress','showResizeButton','disableModelSelector','setReasoning','toggleLoadingSkeleton','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','fire','isMaximized','AIChatUI','removeItem','length','view','updateFeedItemAIReplySources','disableControls','updateResourceState','699890DDivFF','availableModels','setFeedItemAIReplySuggestionPartActive','focusPromptInput','config','isLoading','setWebSearch','getItemIds','contextItems','292356TlIFQk','forEach','has','135037YemdHz','isBusy','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateWebSources','addTab','isOfficialPlugin','hasFeedItem','clearConversationContextUI','custom-element','43544NrthZe','2GDaIJT','addItem','userMessage','updateReplyItem','addContextItem','</p>','setConversationTitle','AI_CHAT_HEADING','setConversationContext','ai.availableReplyActions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','delegate','value','ai-suggestion-reply','stopInteraction','isWebSearchEnabled','pluginName','chat','updateCapabilities','addFeedInteractionHeader','scrollToSuggestion','setLoadingMessage','524596pIVZjg','updateFeedItemAIReplyContent','showDiff','renderingStrategy','clearPendingContextUI','error-message','children','isModelAvailable','populateSourceResourceBalloon','startsWith','markItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','ai.chat.welcomeMessage','addFeedItemStaticMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isVisible','isDone','chatFeed','_interactionPromiseResolver','isTrackChangesOn','from','get','bind','AI_CHAT_WELCOME_MESSAGE','clear','ai.models.showModelSelector','setInputPlaceholder','hasItem','label','ai-reply','addFeedItemUserMessage','addFeedItemAISuggestion','setPromptInputValue','insertSuggestion','removeFeedItem','displayedPrompt','user-message','333jjTfjq','plugins','addFeedItemAIReply','filter','attributes','AITabs','setContextItemLoading','closeSourceResourceBalloon','setIsMaximized','setAddContextOptions','abort','chatControls','queueEmptyPromise','1722300TVKRRl','toggleSuggestionDisplayMode','addFeedItemError','chatHeader','interaction-header','enableControls','scrollFeedToSuggestion','find','startAutoScroll','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','setSuggestionPartActive','then','clearLoadingMessage','enqueue','updateSuggestionPartState','last','requires','startInteraction','options','feedItemRenderingStrategy','isPending','<p>','3pocbhc','setFeedItemRenderingStrategy'];_0x11a5=function(){return _0x13092e;};return _0x11a5();}import{AI_CHAT_UI_EVENT_NAMES as _0x40554e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xaaf8e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3e6963}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x463581{static get[_0x49e55e(0x1aa)](){return[_0x256326];}[_0x49e55e(0x1e0)];static get[_0x49e55e(0x162)](){const _0x5bb330=_0x49e55e;return _0x5bb330(0x1ea);}static get[_0x49e55e(0x202)](){return!0x0;}static get[_0x49e55e(0x1dd)](){return!0x0;}[_0x49e55e(0x1ad)]=_0x49e55e(0x1c4);[_0x49e55e(0x16a)]=!0x0;[_0x49e55e(0x1c9)];[_0x49e55e(0x17a)];[_0x49e55e(0x1b3)]=void 0x0;[_0x49e55e(0x1cc)]=!0x1;constructor(_0x2eda6f){const _0xf7fda6=_0x49e55e;super(_0x2eda6f);const _0xe6e71b=this[_0xf7fda6(0x1b5)][_0xf7fda6(0x18e)][_0xf7fda6(0x17d)](_0xf7fda6(0x192));this[_0xf7fda6(0x1bc)](_0xf7fda6(0x1fe),!0x1),this[_0xf7fda6(0x1c9)]=new _0x24ed3f(),this[_0xf7fda6(0x1e0)]=new _0x59e63a(this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1bd)],{'showResizeButton':_0xe6e71b[_0xf7fda6(0x1e2)],'contextResourcesSearchInputVisibleFrom':this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1f5)][_0xf7fda6(0x17d)](_0xf7fda6(0x1cb))}),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x15d)](..._0x40554e)['to'](this),this[_0xf7fda6(0x1e0)]['on'](_0xf7fda6(0x19b),(_0x19f7ec,{showDiff:_0x4b800e})=>{const _0x2fc278=_0xf7fda6;this[_0x2fc278(0x16a)]=_0x4b800e;}),_0xe6e71b[_0xf7fda6(0x1ed)][_0xf7fda6(0x201)]({'id':_0xf7fda6(0x163),'buttonLabel':_0x1e2050(this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1bd)],_0xf7fda6(0x159)),'buttonIcon':_0x39b408,'order':0x0,'content':this[_0xf7fda6(0x1e0)]}),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)][_0xf7fda6(0x17e)](_0xf7fda6(0x1f6))['to'](this,_0xf7fda6(0x1fe),_0x1572ac=>_0x1572ac),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x179)][_0xf7fda6(0x17e)](_0xf7fda6(0x1ae))['to'](this,_0xf7fda6(0x1fe),_0x336912=>_0x336912),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)][_0xf7fda6(0x182)](this[_0xf7fda6(0x1ce)]()),this[_0xf7fda6(0x17e)](_0xf7fda6(0x16f))['to'](this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)],_0xf7fda6(0x16f));}[_0x49e55e(0x1bb)](){const _0x4f474c=_0x49e55e;super[_0x4f474c(0x1bb)](),this[_0x4f474c(0x1b3)]&&clearInterval(this[_0x4f474c(0x1b3)]);}[_0x49e55e(0x1d9)](_0x21acba){const _0x12305c=_0x49e55e,_0x43777b=this[_0x12305c(0x1b5)][_0x12305c(0x1f5)][_0x12305c(0x17d)](_0x12305c(0x174))??_0x1e2050(this[_0x12305c(0x1b5)][_0x12305c(0x1bd)],_0x12305c(0x17f));this[_0x12305c(0x1e0)][_0x12305c(0x179)][_0x12305c(0x180)](),this[_0x12305c(0x1e0)][_0x12305c(0x198)][_0x12305c(0x1b4)](),this[_0x12305c(0x1e0)][_0x12305c(0x198)][_0x12305c(0x1cf)](_0x21acba[_0x12305c(0x1f2)],!this[_0x12305c(0x1b5)][_0x12305c(0x1f5)][_0x12305c(0x17d)](_0x12305c(0x181))),this[_0x12305c(0x175)]({'id':_0x12305c(0x1d0),'staticMessage':_0x43777b}),this[_0x12305c(0x1e8)](_0x12305c(0x1bf));}[_0x49e55e(0x175)]({id:_0x4fe07b,staticMessage:_0x34ce30}){const _0x1260c2=_0x49e55e;this[_0x1260c2(0x1e0)][_0x1260c2(0x179)][_0x1260c2(0x208)](_0x1260c2(0x185),{'id':_0x4fe07b,'initialContent':_0x1260c2(0x1af)+_0x34ce30+_0x1260c2(0x157)});}[_0x49e55e(0x186)](_0x432115){const _0x104ae0=_0x49e55e,_0x24f7d5=_0x432115[_0x104ae0(0x191)]?.[_0x104ae0(0x18b)]||_0x432115[_0x104ae0(0x154)];this[_0x104ae0(0x1e0)][_0x104ae0(0x179)][_0x104ae0(0x208)](_0x104ae0(0x18c),{'contextItems':Array[_0x104ae0(0x17c)](_0x432115[_0x104ae0(0x1f9)][_0x104ae0(0x1c7)]()),'initialContent':_0x104ae0(0x1af)+_0x24f7d5+_0x104ae0(0x157),'id':_0x432115['id']});}[_0x49e55e(0x19c)]({errorMessage:_0x240c3b,id:_0x3ea336}){const _0x111b70=_0x49e55e;this[_0x111b70(0x1e0)][_0x111b70(0x179)][_0x111b70(0x208)](_0x111b70(0x16d),{'initialContent':_0x111b70(0x1af)+_0x240c3b+_0x111b70(0x157),'id':_0x3ea336});}[_0x49e55e(0x18f)](_0x333fdd){const _0x296e2e=_0x49e55e;return this[_0x296e2e(0x1c9)][_0x296e2e(0x1a7)](async()=>{const _0x290ab1=_0x296e2e;this[_0x290ab1(0x1e0)][_0x290ab1(0x179)][_0x290ab1(0x208)](_0x290ab1(0x185),{'id':_0x333fdd[_0x290ab1(0x1d4)]+':'+_0x333fdd['id']}),this[_0x290ab1(0x1a6)]();});}async[_0x49e55e(0x187)](_0x4f27be){const _0x51793e=_0x49e55e,_0x28434f=_0xaaf8e(this[_0x51793e(0x1b5)]);let _0xdd1eec=_0x28434f[_0x51793e(0x1f5)][_0x51793e(0x17d)](_0x51793e(0x15b))||[..._0x3e6963];if(_0x28434f[_0x51793e(0x18e)][_0x51793e(0x1fc)](_0x51793e(0x1c3))){if(!this[_0x51793e(0x1cc)]){this[_0x51793e(0x1cc)]=!0x0;const _0x3cb796=_0x28434f[_0x51793e(0x1d5)][_0x51793e(0x17d)](_0x51793e(0x1d2));this[_0x51793e(0x1e0)][_0x51793e(0x179)][_0x51793e(0x17e)](_0x51793e(0x17b))['to'](_0x3cb796,_0x51793e(0x15e));}}else _0xdd1eec=_0xdd1eec[_0x51793e(0x190)](_0x57274d=>_0x51793e(0x189)!=_0x57274d);return this[_0x51793e(0x1c9)][_0x51793e(0x1a7)](async()=>{const _0xda6991=_0x51793e;this[_0xda6991(0x1e0)][_0xda6991(0x179)][_0xda6991(0x208)](_0xda6991(0x15f),{'id':_0x4f27be[_0xda6991(0x1d4)]+':'+_0x4f27be['id'],'areActionsDisabled':_0x4f27be[_0xda6991(0x1c8)],'showDiff':this[_0xda6991(0x16a)],'availableActions':_0xdd1eec}),this[_0xda6991(0x1a6)]();});}[_0x49e55e(0x165)](_0x981937,_0x1717f7){const _0x1c81f2=_0x49e55e,_0x5967ca=this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x16e)][_0x1c81f2(0x1a9)];if(_0x5967ca instanceof _0x3ba3ad)return this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x16e)][_0x1c81f2(0x1b7)](_0x5967ca),void this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x208)](_0x1c81f2(0x19e),{'id':_0x981937['id'],'capabilities':{'isWebSearchEnabled':_0x5967ca[_0x1c81f2(0x1d3)][_0x1c81f2(0x161)]||_0x1717f7[_0x1c81f2(0x161)],'isReasoningEnabled':_0x5967ca[_0x1c81f2(0x1d3)][_0x1c81f2(0x1df)]||_0x1717f7[_0x1c81f2(0x1df)]}});this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x208)](_0x1c81f2(0x19e),{'id':_0x981937['id'],'capabilities':_0x1717f7});}async[_0x49e55e(0x1b8)](_0x3a77e6,_0x5b4b83){const _0x5462f6=_0x49e55e;let _0x2429fb;return await this[_0x5462f6(0x1c9)][_0x5462f6(0x1a7)](async()=>{const _0x88773a=_0x5462f6;_0x2429fb=this[_0x88773a(0x1e0)][_0x88773a(0x179)][_0x88773a(0x208)](_0x88773a(0x205),{'content':_0x3a77e6,'id':_0x5b4b83});}),_0x2429fb;}[_0x49e55e(0x18a)](_0x192e93){const _0x464a2f=_0x49e55e;this[_0x464a2f(0x1e0)][_0x464a2f(0x179)][_0x464a2f(0x1eb)](_0x192e93);}[_0x49e55e(0x203)](_0xf79614){const _0xb15fa1=_0x49e55e;return this[_0xb15fa1(0x1e0)][_0xb15fa1(0x179)][_0xb15fa1(0x183)](_0xf79614);}[_0x49e55e(0x1d7)](_0x9aa9a4){const _0x5c87e4=_0x49e55e,_0x4ac192=this[_0x5c87e4(0x1e0)][_0x5c87e4(0x179)][_0x5c87e4(0x16e)][_0x5c87e4(0x1a1)](_0x229f96=>_0x229f96[_0x5c87e4(0x1ac)]['id']==_0x9aa9a4['id']&&_0x229f96 instanceof _0x3ba3ad);_0x4ac192&&_0x4ac192[_0x5c87e4(0x1bc)](_0x5c87e4(0x177),_0x9aa9a4[_0x5c87e4(0x177)]);}async[_0x49e55e(0x169)](_0x702eb4){const _0x185ec5=_0x49e55e,_0x5a054d=_0x702eb4[_0x185ec5(0x16b)]||this[_0x185ec5(0x1ad)];return this[_0x185ec5(0x1c9)][_0x185ec5(0x1a7)](async _0x24d264=>{const _0xe9e84b=_0x185ec5;await this[_0xe9e84b(0x1e0)][_0xe9e84b(0x179)][_0xe9e84b(0x155)]({..._0x702eb4,'abortSignal':_0x24d264,'renderingStrategy':_0x5a054d}),_0x702eb4[_0xe9e84b(0x178)]&&this[_0xe9e84b(0x1c6)](_0x702eb4['id']);});}[_0x49e55e(0x1ee)](_0x2fbb02,_0x12e6ec){const _0x26c8e1=_0x49e55e;this[_0x26c8e1(0x1e0)][_0x26c8e1(0x179)][_0x26c8e1(0x200)](_0x2fbb02,_0x12e6ec);}async[_0x49e55e(0x1d6)](_0x5745f6){const _0x3ee90f=_0x49e55e,_0x1ce641=_0x5745f6[_0x3ee90f(0x16b)]||this[_0x3ee90f(0x1ad)];return this[_0x3ee90f(0x1c9)][_0x3ee90f(0x1a7)](async _0x4dd639=>{const _0x562ad4=_0x3ee90f;await this[_0x562ad4(0x1e0)][_0x562ad4(0x179)][_0x562ad4(0x1cd)]({..._0x5745f6,'abortSignal':_0x4dd639,'renderingStrategy':_0x1ce641}),_0x5745f6[_0x562ad4(0x178)]&&this[_0x562ad4(0x1c6)](_0x5745f6['id']);});}[_0x49e55e(0x1b9)](_0x189889){const _0x10d009=_0x49e55e;this[_0x10d009(0x1e0)][_0x10d009(0x179)][_0x10d009(0x1a8)](_0x189889);}[_0x49e55e(0x1f3)](_0x400ecb){const _0x46bdf0=_0x49e55e;this[_0x46bdf0(0x1e0)][_0x46bdf0(0x179)][_0x46bdf0(0x1a4)](_0x400ecb);}[_0x49e55e(0x1c6)](_0x36e9cd){const _0x53f3d1=_0x49e55e;this[_0x53f3d1(0x1e0)][_0x53f3d1(0x179)][_0x53f3d1(0x172)](_0x36e9cd);}[_0x49e55e(0x1de)](_0x3e4c50){const _0x2cc88a=_0x49e55e;this[_0x2cc88a(0x1e0)][_0x2cc88a(0x179)][_0x2cc88a(0x1f8)]()[_0x2cc88a(0x190)](_0x3ec75f=>_0x3ec75f[_0x2cc88a(0x171)](_0x3e4c50))[_0x2cc88a(0x1fb)](_0x874fa4=>this[_0x2cc88a(0x1e0)][_0x2cc88a(0x179)][_0x2cc88a(0x1eb)](_0x874fa4));}[_0x49e55e(0x1ab)](){const _0xe11d47=_0x49e55e,_0x572034=this[_0xe11d47(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0xe11d47(0x167)](_0x572034),this[_0xe11d47(0x1e0)][_0xe11d47(0x198)][_0xe11d47(0x1e3)](!this[_0xe11d47(0x1b5)][_0xe11d47(0x1f5)][_0xe11d47(0x17d)](_0xe11d47(0x181))),this[_0xe11d47(0x1fe)]=!0x0,this[_0xe11d47(0x1e0)][_0xe11d47(0x179)][_0xe11d47(0x1a2)]();}[_0x49e55e(0x160)](_0x326a91){const _0x2be379=_0x49e55e;this[_0x2be379(0x1c9)][_0x2be379(0x197)](),this[_0x2be379(0x1e0)][_0x2be379(0x179)][_0x2be379(0x1f8)]()[_0x2be379(0x190)](_0x1866d2=>_0x1866d2[_0x2be379(0x171)](_0x326a91['id']))[_0x2be379(0x1fb)](_0x80f0e8=>this[_0x2be379(0x1c6)](_0x80f0e8)),this[_0x2be379(0x1fe)]=!0x1,this[_0x2be379(0x1e0)][_0x2be379(0x179)][_0x2be379(0x1c5)]();}async[_0x49e55e(0x1dc)](){const _0x529ed1=_0x49e55e;return this[_0x529ed1(0x1c9)][_0x529ed1(0x199)][_0x529ed1(0x1a5)](()=>{const _0x2bf87e=_0x529ed1;this[_0x2bf87e(0x1fe)]=!0x1,this[_0x2bf87e(0x1e0)][_0x2bf87e(0x179)][_0x2bf87e(0x1c5)]();});}[_0x49e55e(0x156)](_0x304b0f,_0x35ce5d){const _0x456f34=_0x49e55e;this[_0x456f34(0x1e0)][_0x456f34(0x198)][_0x456f34(0x156)](_0x304b0f,_0x35ce5d);}[_0x49e55e(0x1da)](_0x57ae07){const _0x2b06bd=_0x49e55e;this[_0x2b06bd(0x1e0)][_0x2b06bd(0x198)][_0x2b06bd(0x1da)](_0x57ae07);}[_0x49e55e(0x193)](_0x54f639,_0x2a4277){const _0x4862b3=_0x49e55e;this[_0x4862b3(0x1e0)][_0x4862b3(0x198)][_0x4862b3(0x193)](_0x54f639,_0x2a4277);}[_0x49e55e(0x1e1)](_0x109b5f){const _0x55067c=_0x49e55e;this[_0x55067c(0x1e0)][_0x55067c(0x198)][_0x55067c(0x1e1)](_0x109b5f);}[_0x49e55e(0x15a)](_0xe1d2af){const _0x4b8763=_0x49e55e;this[_0x4b8763(0x1e0)][_0x4b8763(0x198)][_0x4b8763(0x15a)](_0xe1d2af);}[_0x49e55e(0x16c)](){const _0x353506=_0x49e55e;this[_0x353506(0x1e0)][_0x353506(0x198)][_0x353506(0x16c)]();}[_0x49e55e(0x204)](){const _0xc8fe8a=_0x49e55e;this[_0xc8fe8a(0x1e0)][_0xc8fe8a(0x198)][_0xc8fe8a(0x204)]();}[_0x49e55e(0x1f0)](_0x24de8,_0x3e6021,_0x453281){const _0x397326=_0x49e55e;this[_0x397326(0x1e0)][_0x397326(0x198)][_0x397326(0x1f0)](_0x24de8,_0x3e6021,_0x453281);}[_0x49e55e(0x1c0)](){const _0x498b06=_0x49e55e;this[_0x498b06(0x1e0)][_0x498b06(0x198)][_0x498b06(0x1c0)](),this[_0x498b06(0x1e0)][_0x498b06(0x198)][_0x498b06(0x182)](this[_0x498b06(0x1ce)]());}[_0x49e55e(0x196)](_0x2b4511){const _0x6399a9=_0x49e55e;this[_0x6399a9(0x1e0)][_0x6399a9(0x198)][_0x6399a9(0x196)](_0x2b4511);}[_0x49e55e(0x164)](_0x19bda3){const _0x16ddbb=_0x49e55e;this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x1f7)](_0x19bda3[_0x16ddbb(0x161)]),this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x1e4)](_0x19bda3[_0x16ddbb(0x1df)]),this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x182)](this[_0x16ddbb(0x1ce)](_0x19bda3));}[_0x49e55e(0x1b6)](_0x24520f,_0x115058){const _0x559b10=_0x49e55e;this[_0x559b10(0x1e0)][_0x559b10(0x198)][_0x559b10(0x1be)](_0x24520f),_0x115058&&this[_0x559b10(0x1e0)][_0x559b10(0x198)][_0x559b10(0x1e3)](!0x1);}[_0x49e55e(0x1b1)](_0x4dd290){const _0x1a525f=_0x49e55e;this[_0x1a525f(0x1ad)]=_0x4dd290;}[_0x49e55e(0x1e5)](_0x42c07c){const _0x10fc74=_0x49e55e;this[_0x10fc74(0x1e0)][_0x10fc74(0x179)][_0x10fc74(0x1e5)](_0x42c07c);}[_0x49e55e(0x1ca)](){const _0x4efb12=_0x49e55e;this[_0x4efb12(0x158)](_0x1e2050(this[_0x4efb12(0x1b5)][_0x4efb12(0x1bd)],_0x4efb12(0x159)));}[_0x49e55e(0x158)](_0x2cd236,_0x31d87c=!0x1){const _0x4d9925=_0x49e55e;if(_0x31d87c&&!_0x557562()&&_0x2cd236[_0x4d9925(0x1ec)])return this[_0x4d9925(0x1e0)][_0x4d9925(0x19d)][_0x4d9925(0x184)]='',void this[_0x4d9925(0x1d1)](_0x2cd236);this[_0x4d9925(0x1e0)][_0x4d9925(0x19d)][_0x4d9925(0x184)]=_0x2cd236;}[_0x49e55e(0x167)](_0x5a6e87){const _0x1c6883=_0x49e55e;this[_0x1c6883(0x1e0)][_0x1c6883(0x179)][_0x1c6883(0x167)](_0x5a6e87);}[_0x49e55e(0x1a6)](){const _0x112fbd=_0x49e55e;this[_0x112fbd(0x1e0)][_0x112fbd(0x179)][_0x112fbd(0x167)]('');}[_0x49e55e(0x1d1)](_0x47c8e4){const _0x4ffdbf=_0x49e55e;let _0x304ae9=0x0;clearInterval(this[_0x4ffdbf(0x1b3)]),this[_0x4ffdbf(0x1b3)]=setInterval(()=>{const _0x116371=_0x4ffdbf;this[_0x116371(0x1e0)][_0x116371(0x19d)][_0x116371(0x184)]=this[_0x116371(0x1e0)][_0x116371(0x19d)][_0x116371(0x184)]+_0x47c8e4[_0x304ae9],_0x304ae9++,_0x304ae9===_0x47c8e4[_0x116371(0x1ec)]&&clearInterval(this[_0x116371(0x1b3)]);},0x1e);}[_0x49e55e(0x195)](_0xfb27d8){const _0x3a9ae7=_0x49e55e;this[_0x3a9ae7(0x1e0)][_0x3a9ae7(0x19d)][_0x3a9ae7(0x1e9)]=_0xfb27d8;}[_0x49e55e(0x1c2)](_0x57e8c5){const _0x34d107=_0x49e55e;return _0x57e8c5[_0x34d107(0x161)]&&_0x57e8c5[_0x34d107(0x1df)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1ba)):_0x57e8c5[_0x34d107(0x161)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x176)):_0x57e8c5[_0x34d107(0x1df)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1ff)):_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1a3));}[_0x49e55e(0x1ce)](_0x54b51e){const _0x2ca75d=_0x49e55e;return _0x54b51e?_0x54b51e[_0x2ca75d(0x161)]&&_0x54b51e[_0x2ca75d(0x1df)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x15c)):_0x54b51e[_0x2ca75d(0x161)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1db)):_0x54b51e[_0x2ca75d(0x1df)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x173)):_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1e7)):_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1e7));}[_0x49e55e(0x170)](_0x31dbdb,_0x3b0138,_0x190077,_0x3a03e0){const _0x5cbe7c=_0x49e55e;this[_0x5cbe7c(0x1e0)][_0x5cbe7c(0x170)](_0x31dbdb,_0x3b0138,_0x190077,_0x3a03e0);}[_0x49e55e(0x194)](_0x3870ec){const _0x200b93=_0x49e55e;this[_0x200b93(0x1e0)][_0x200b93(0x194)](_0x3870ec);}[_0x49e55e(0x188)](_0x561a77){const _0x20bcbc=_0x49e55e;this[_0x20bcbc(0x1e0)][_0x20bcbc(0x198)][_0x20bcbc(0x188)](_0x561a77);}[_0x49e55e(0x1f4)](_0x26cac3=!0x1){const _0x353feb=_0x49e55e;this[_0x353feb(0x1e0)][_0x353feb(0x198)][_0x353feb(0x1f4)](_0x26cac3);}[_0x49e55e(0x1a0)](_0x4ecddc,_0x75623d){const _0x126abb=_0x49e55e;this[_0x126abb(0x1e0)][_0x126abb(0x179)][_0x126abb(0x166)](_0x4ecddc,_0x75623d);}[_0x49e55e(0x1a2)](){const _0x30459b=_0x49e55e;this[_0x30459b(0x1e0)][_0x30459b(0x179)][_0x30459b(0x1a2)]();}[_0x49e55e(0x1ef)](){const _0x56cb46=_0x49e55e;this[_0x56cb46(0x1e0)][_0x56cb46(0x198)][_0x56cb46(0x1e6)]=!0x0;}[_0x49e55e(0x19f)](){const _0x73af95=_0x49e55e;this[_0x73af95(0x1e0)][_0x73af95(0x198)][_0x73af95(0x1e6)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2aeb(_0x513dbb,_0xa0971){const _0x280d37=_0x280d();return _0x2aeb=function(_0x2aebba,_0x438f3b){_0x2aebba=_0x2aebba-0x112;let _0x2288ec=_0x280d37[_0x2aebba];return _0x2288ec;},_0x2aeb(_0x513dbb,_0xa0971);}const _0x23bb7d=_0x2aeb;(function(_0x300c9e,_0x1b74e8){const _0x4e6072=_0x2aeb,_0x20bb58=_0x300c9e();while(!![]){try{const _0x166e5b=-parseInt(_0x4e6072(0x12c))/0x1*(parseInt(_0x4e6072(0x18b))/0x2)+-parseInt(_0x4e6072(0x114))/0x3*(parseInt(_0x4e6072(0x177))/0x4)+-parseInt(_0x4e6072(0x149))/0x5*(-parseInt(_0x4e6072(0x11c))/0x6)+-parseInt(_0x4e6072(0x151))/0x7*(parseInt(_0x4e6072(0x185))/0x8)+parseInt(_0x4e6072(0x1a1))/0x9+parseInt(_0x4e6072(0x131))/0xa+parseInt(_0x4e6072(0x181))/0xb;if(_0x166e5b===_0x1b74e8)break;else _0x20bb58['push'](_0x20bb58['shift']());}catch(_0x25bf23){_0x20bb58['push'](_0x20bb58['shift']());}}}(_0x280d,0x655f6));import{CKEditorError as _0x4becd9,ObservableMixin as _0x4642a2,uid as _0x39d101}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1e64cf,AIContextTextResourceType as _0x177591}from'../../aicore/model/aicontext.js';function _0x280d(){const _0x3844f9=['stack','toolName','selection','populateFromMessage','updateCurrentDocument','_pendingContextItems','HTML','_convertTextResourceToFile','size','9372561DeuaNJ','uploadDocument','forEach','ai-chat-source-not-found','568712qgmGZV','ai-request-aborted','abortController','FILE','_finishUploadOperation','label','2mfXeFc','_ownerId','isReadOnly','TOOL','ai-chat-resource-load-failed','push','error','isHidden','isInContext','urls','sources','sessionId','Current\x20document','text/markdown','_setAddContextOptionsDefaultState','contextSent','_removeContextItem','_finishContextItemLoading','isCurrentDocumentInContext','startsWith','resources','set','2164473JNCFAd','files','url','content','mapContextItemsToRequestData','sourceResourcesLoaded','addResourceToContext','_getCustomSourcesInitialState','addSelectionToContext','3ulLZbq','_updateResourceInContextState','removeSelectionFromContext','resourceId','getDocument','_config','hidden','ai-chat-file-upload-failed','14286gdmrua','isCurrentDocumentInConversation','getPendingContextItems','getResources','start','ai-chat-context-invalid-data','values','contextItemAdded','TEXT','_isResourceInContext','substring','addToConversationContext','addCurrentDocumentToContext','data','customItems','version','735645WMAEfT','current-document','has','type','_mapContextItemToRequestData','6497870NTiBIB','_createContextItemFromContent','uploadProgressChanged','document','addUrlToContext','loadSourceResources','addFilesToContext','uploadFile','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','file-','files-','abort','from','resourceStateChanged','_addToConversationContextItem','delete','filter','_startUploadOperation','SELECTION','File','uploadUrl','_conversationContextItems','all','1165XXbfVW','object','fire','_toggleAddCurrentDocumentOptionVisibility','ai-chat-resource-no-data','getSentContextItems','clearPendingContextItems','message','77RoQINF','ai-chat-url-upload-failed','text/html','code','MARKDOWN','uiId','isSelectionInContext','init','_connector','mcpServerName','_ongoingUploadOperations','getData','contextItemRemoved','_addContextOptionsState','attributes','_ongoingUploads','text/plain','addToolItemToContext','getId','ai-chat-source-resources-load-failed','ai-chat-context-unsupported-type','DOCUMENT','_addContextItem','removeFromContext','addContextOptionsChanged','fetchDocument','url-','map','length','_findSourceIdsByResourceId','URL','get','ai-chat-document-upload-failed','name','end','find','enabled','string','1457048OADCxx'];_0x280d=function(){return _0x3844f9;};return _0x280d();}import{escape as _0x13c15d}from'es-toolkit/compat';import{errorsMap as _0x29f0af}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x23bb7d(0x123),_0x23bb7d(0x15d),_0x23bb7d(0x139),_0x23bb7d(0x19a),_0x23bb7d(0x191),_0x23bb7d(0x169),_0x23bb7d(0x1a6),_0x23bb7d(0x13f),_0x23bb7d(0x133)];export class AIChatContext extends _0x4642a2(){[_0x23bb7d(0x159)];[_0x23bb7d(0x119)];[_0x23bb7d(0x18c)];constructor({connector:_0x1f5d48,config:_0x239981,ownerId:_0x23dc9e}){const _0x41b3dd=_0x23bb7d;super(),this[_0x41b3dd(0x159)]=_0x1f5d48,this[_0x41b3dd(0x119)]=_0x239981,this[_0x41b3dd(0x18c)]=_0x23dc9e;}[_0x23bb7d(0x158)](){const _0x44fe23=_0x23bb7d;this[_0x44fe23(0x17d)]=new Map(),this[_0x44fe23(0x147)]=new Map(),this[_0x44fe23(0x160)]=new Map(),this[_0x44fe23(0x15b)]=new Map(),this[_0x44fe23(0x199)]();}[_0x23bb7d(0x11e)](){const _0x5e6abb=_0x23bb7d;return this[_0x5e6abb(0x17d)];}async[_0x23bb7d(0x17b)](_0x494dba){const _0x6c2171=_0x23bb7d,_0x197f17=await this[_0x6c2171(0x132)](_0x494dba);return this[_0x6c2171(0x140)](_0x197f17),_0x6c2171(0x12d)===_0x197f17[_0x6c2171(0x156)]&&this[_0x6c2171(0x14c)](),_0x197f17;}async[_0x23bb7d(0x132)](_0x1d2bfc){const _0x360e3b=_0x23bb7d;if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x166)]){const _0x429cc5=await this[_0x360e3b(0x159)][_0x360e3b(0x16a)](this[_0x360e3b(0x18c)],_0x1d2bfc['id'])[_0x360e3b(0x118)]();return{'id':_0x360e3b(0x12d),'uiId':_0x360e3b(0x12d),'label':_0x360e3b(0x197),'type':_0x1d2bfc[_0x360e3b(0x12f)],'content':_0x429cc5[_0x360e3b(0x1a4)],'hidden':this[_0x360e3b(0x147)][_0x360e3b(0x12e)](_0x360e3b(0x12d)),'version':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x12b)],'sessionId':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x196)]};}if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x18e)])return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x129)]?.[_0x360e3b(0x18a)]||_0x1d2bfc['id'],'type':_0x1e64cf[_0x360e3b(0x18e)],'mcpServerName':_0x1d2bfc[_0x360e3b(0x15a)],'toolName':_0x1d2bfc[_0x360e3b(0x179)],'data':_0x1d2bfc[_0x360e3b(0x129)]||{}};return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x18a)]||_0x1d2bfc[_0x360e3b(0x172)]||_0x1d2bfc[_0x360e3b(0x1a3)]||_0x1d2bfc['id'],'type':_0x1d2bfc[_0x360e3b(0x12f)],..._0x1d2bfc?.[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]?{'resourceId':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]}:{}};}[_0x23bb7d(0x14e)](){const _0x2d8929=_0x23bb7d;return new Map(this[_0x2d8929(0x147)]);}[_0x23bb7d(0x168)](_0x34a760){const _0x3fb904=_0x23bb7d,_0x346ba6=this[_0x3fb904(0x17d)][_0x3fb904(0x170)](_0x34a760);_0x346ba6?.[_0x3fb904(0x18d)]||this[_0x3fb904(0x19b)](_0x34a760);}[_0x23bb7d(0x14f)](){const _0x9ab5d2=_0x23bb7d;if(0x0===this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x180)])return;for(const _0x1c00b0 of this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x122)]())this[_0x9ab5d2(0x19b)](_0x1c00b0[_0x9ab5d2(0x156)]);const _0x2d24c9=this[_0x9ab5d2(0x147)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d))||this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d));_0x2d24c9&&this[_0x9ab5d2(0x167)]({..._0x2d24c9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x23bb7d(0x127)](_0x281cc2){const _0xe22c37=_0x23bb7d;for(const _0x211798 of _0x281cc2[_0xe22c37(0x122)]())this[_0xe22c37(0x140)](_0x211798);this[_0xe22c37(0x14f)](),this[_0xe22c37(0x14b)](_0xe22c37(0x19a),{'contextItems':Array[_0xe22c37(0x13e)](this[_0xe22c37(0x14e)]()[_0xe22c37(0x122)]())});}[_0x23bb7d(0x19d)](){const _0xb4cba6=_0x23bb7d;return this[_0xb4cba6(0x17d)][_0xb4cba6(0x12e)](_0xb4cba6(0x12d));}[_0x23bb7d(0x157)](){const _0x1bf4a6=_0x23bb7d;return this[_0x1bf4a6(0x17d)][_0x1bf4a6(0x12e)](_0x1bf4a6(0x17a));}[_0x23bb7d(0x11d)](){const _0x1cce6c=_0x23bb7d;return this[_0x1cce6c(0x147)][_0x1cce6c(0x12e)](_0x1cce6c(0x12d));}static[_0x23bb7d(0x1a5)](_0x13bfbf){const _0x39b5ab=_0x23bb7d;return Array[_0x39b5ab(0x13e)](_0x13bfbf[_0x39b5ab(0x122)]())[_0x39b5ab(0x16c)](_0x1afba9=>this[_0x39b5ab(0x130)](_0x1afba9))[_0x39b5ab(0x142)](_0x111b62=>null!==_0x111b62);}async[_0x23bb7d(0x137)](_0x3c8d96,_0x41e577,_0x5c17c1=_0x1e64cf[_0x23bb7d(0x188)]){const _0x1f9067=_0x23bb7d,_0x218d97=_0x1f9067(0x13c)+_0x39d101();this[_0x1f9067(0x143)](_0x218d97);try{await Promise[_0x1f9067(0x148)](_0x3c8d96[_0x1f9067(0x16c)](async _0x302dfc=>{const _0x5b6bea=_0x1f9067,_0x1984a1=_0x5b6bea(0x13b)+_0x39d101(),_0x139258=_0x13c15d(_0x302dfc[_0x5b6bea(0x172)]);try{this[_0x5b6bea(0x167)]({'type':_0x5c17c1,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x0);const _0x11fbda=this[_0x5b6bea(0x159)][_0x5b6bea(0x138)](this[_0x5b6bea(0x18c)],_0x302dfc,_0x41e577);this[_0x5b6bea(0x160)][_0x5b6bea(0x1a0)](_0x1984a1,_0x11fbda[_0x5b6bea(0x187)]);const {id:_0x378c05}=await _0x11fbda[_0x5b6bea(0x163)]();this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1),this[_0x5b6bea(0x19c)]({'type':_0x5c17c1,'id':_0x378c05,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x1);}catch(_0x1ee820){this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1);if(!(_0x1ee820 instanceof _0x4becd9&&_0x1ee820[_0x5b6bea(0x150)][_0x5b6bea(0x19e)](_0x5b6bea(0x186)))){const _0x115d44=_0x29f0af[_0x5b6bea(0x170)](_0x1ee820[_0x5b6bea(0x154)])||_0x5b6bea(0x11b),_0x16dd37=new _0x4becd9(_0x115d44,null,{'fileName':_0x139258,..._0x1ee820});_0x16dd37[_0x5b6bea(0x178)]=_0x1ee820[_0x5b6bea(0x178)],this[_0x5b6bea(0x14b)](_0x5b6bea(0x191),{'error':_0x16dd37});}this[_0x5b6bea(0x19b)](_0x1984a1);}}));}finally{this[_0x1f9067(0x189)](_0x218d97);}}[_0x23bb7d(0x128)](_0x3b8dfb){const _0x1f5de2=_0x23bb7d;if(this[_0x1f5de2(0x19d)]()||!this[_0x1f5de2(0x15e)][_0x1f5de2(0x134)][_0x1f5de2(0x175)])return;const _0x24f5ae={'type':_0x1e64cf[_0x1f5de2(0x166)],'uiId':_0x1f5de2(0x12d),'label':_0x3b8dfb,'isReadOnly':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d)),'hidden':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d))};this[_0x1f5de2(0x167)](_0x24f5ae);}async[_0x23bb7d(0x17c)](_0xd4c5ca,_0x561213,_0x5125c5,_0x12df0b){const _0x4d4ef8=_0x23bb7d,_0x40dc42=this[_0x4d4ef8(0x17d)][_0x4d4ef8(0x170)](_0x4d4ef8(0x12d));if(_0x40dc42&&_0xd4c5ca){_0x40dc42[_0x4d4ef8(0x17a)]=_0x12df0b?_0x12df0b[_0x4d4ef8(0x16c)](_0x584564=>({'start':_0x584564[_0x4d4ef8(0x120)],'end':_0x584564[_0x4d4ef8(0x173)]})):[];try{if(_0x40dc42[_0x4d4ef8(0x12b)]===_0x561213)return;const {id:_0x460a36}=await this[_0x4d4ef8(0x159)][_0x4d4ef8(0x182)](this[_0x4d4ef8(0x18c)],_0xd4c5ca,{'version':_0x561213,'sessionId':_0x5125c5})[_0x4d4ef8(0x163)]();_0x40dc42['id']=_0x460a36,_0x40dc42[_0x4d4ef8(0x1a4)]=_0xd4c5ca,_0x40dc42[_0x4d4ef8(0x12b)]=_0x561213,_0x40dc42[_0x4d4ef8(0x196)]=_0x5125c5;}catch(_0x25a897){const _0x4c90fb=new _0x4becd9(_0x4d4ef8(0x171),null);_0x4c90fb[_0x4d4ef8(0x178)]=_0x25a897[_0x4d4ef8(0x178)],this[_0x4d4ef8(0x14b)](_0x4d4ef8(0x191),{'error':_0x4c90fb});}}}[_0x23bb7d(0x113)](_0xa6f23a){const _0xe25aab=_0x23bb7d;this[_0xe25aab(0x167)]({'type':_0x1e64cf[_0xe25aab(0x144)],'label':_0xa6f23a,'uiId':_0xe25aab(0x17a),'content':_0xa6f23a});}[_0x23bb7d(0x116)](){const _0x103582=_0x23bb7d;this[_0x103582(0x19b)](_0x103582(0x17a));}async[_0x23bb7d(0x135)](_0x3a4292,_0x107edc){const _0x2f5f77=_0x23bb7d,_0x1d9ed0=_0x2f5f77(0x16b)+_0x39d101();this[_0x2f5f77(0x143)](_0x1d9ed0);const _0x37cc77=_0x2f5f77(0x16b)+_0x39d101();try{this[_0x2f5f77(0x167)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x0);const _0x4e120a=this[_0x2f5f77(0x159)][_0x2f5f77(0x146)](this[_0x2f5f77(0x18c)],_0x3a4292,_0x107edc);this[_0x2f5f77(0x160)][_0x2f5f77(0x1a0)](_0x37cc77,_0x4e120a[_0x2f5f77(0x187)]);const {id:_0x1e7131}=await _0x4e120a[_0x2f5f77(0x163)]();this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),this[_0x2f5f77(0x19c)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'id':_0x1e7131,'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x1);}catch(_0x40ad46){this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),(_0x40ad46[_0x2f5f77(0x150)][_0x2f5f77(0x19e)](_0x2f5f77(0x186))||this[_0x2f5f77(0x14b)](_0x2f5f77(0x191),{'error':new _0x4becd9(_0x2f5f77(0x152),this,{'url':_0x3a4292,'originalError':_0x40ad46}),'url':_0x3a4292}),this[_0x2f5f77(0x19b)](_0x37cc77));}finally{this[_0x2f5f77(0x189)](_0x1d9ed0);}}[_0x23bb7d(0x162)](_0x28b1f0){const _0x230d0f=_0x23bb7d;_0x28b1f0['id']=_0x28b1f0['id']??_0x39d101()[_0x230d0f(0x126)](0x0,0x15),this[_0x230d0f(0x17d)][_0x230d0f(0x1a0)](_0x28b1f0[_0x230d0f(0x156)],_0x28b1f0),this[_0x230d0f(0x14b)](_0x230d0f(0x123),{'contextItem':_0x28b1f0,'isLoading':!0x1});}async[_0x23bb7d(0x136)](_0x1691d0,_0x262988,_0x2c7e0c){const _0x2150f2=_0x23bb7d,_0x3a2d80=this[_0x2150f2(0x15e)][_0x2150f2(0x195)][_0x2150f2(0x174)](_0x527225=>_0x527225['id']===_0x1691d0);if(!_0x3a2d80)return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x184),this,{'sourceId':_0x1691d0}),'sourceId':_0x1691d0}),[];try{const _0x45f445=(await _0x3a2d80[_0x2150f2(0x11f)](_0x262988))[_0x2150f2(0x16c)](_0xf833e3=>{const _0x1541a0=_0x2150f2,_0x2fa12c=this[_0x1541a0(0x125)](_0xf833e3['id']);return{..._0xf833e3,'isInContext':_0x2fa12c};});return _0x3a2d80[_0x2150f2(0x19f)]=_0x45f445,this[_0x2150f2(0x14b)](_0x2150f2(0x1a6),{'sourceId':_0x1691d0,'source':_0x3a2d80,'resources':_0x45f445,'uid':_0x2c7e0c}),_0x45f445;}catch(_0x1c4cc6){return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x164),this,{'sourceId':_0x1691d0,'originalError':_0x1c4cc6}),'sourceId':_0x1691d0,'sourceLabel':_0x3a2d80[_0x2150f2(0x18a)]}),[];}}async[_0x23bb7d(0x1a7)](_0x3f7434,_0x564795){const _0x5b704d=_0x23bb7d;if(this[_0x5b704d(0x125)](_0x564795['id']))return;let _0x23807d=_0x564795[_0x5b704d(0x129)];if(!_0x23807d&&_0x3f7434[_0x5b704d(0x15c)])try{_0x23807d=await _0x3f7434[_0x5b704d(0x15c)](_0x564795['id']);}catch(_0x350991){return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x18f),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'originalError':_0x350991}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}if(_0x23807d)switch(_0x564795[_0x5b704d(0x12f)]){case _0x1e64cf[_0x5b704d(0x16f)]:if(_0x5b704d(0x176)!=typeof _0x23807d)return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x176),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x135)](_0x23807d,{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x188)]:if(!(_0x23807d instanceof File))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x145),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x124)]:if(_0x5b704d(0x14a)!=typeof _0x23807d||!(_0x5b704d(0x1a4)in _0x23807d)||!(_0x5b704d(0x12f)in _0x23807d))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x13a),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});_0x23807d=AIChatContext[_0x5b704d(0x17f)](_0x23807d,_0x564795[_0x5b704d(0x18a)]),await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']},_0x1e64cf[_0x5b704d(0x124)]);break;case _0x1e64cf[_0x5b704d(0x18e)]:break;default:this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x165),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'resourceType':_0x564795[_0x5b704d(0x12f)]}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}else this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x14d),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}static[_0x23bb7d(0x17f)](_0x27b470,_0x56f601){const _0x1cdd39=_0x23bb7d;switch(_0x27b470[_0x1cdd39(0x12f)]){case _0x177591[_0x1cdd39(0x155)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x198)});case _0x177591[_0x1cdd39(0x17e)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x153)});default:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x161)});}}static[_0x23bb7d(0x130)](_0x292772){const _0x1adf84=_0x23bb7d;switch(_0x292772[_0x1adf84(0x12f)]){case _0x1e64cf[_0x1adf84(0x188)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x16f)]:return{'type':_0x1e64cf[_0x1adf84(0x16f)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x166)]:return{'type':_0x1e64cf[_0x1adf84(0x166)],'id':_0x292772['id'],..._0x292772[_0x1adf84(0x17a)]?.[_0x1adf84(0x16d)]&&{'selection':_0x292772[_0x1adf84(0x17a)]}};case _0x1e64cf[_0x1adf84(0x124)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x18e)]:{const _0x51b89c=_0x292772;return{'type':_0x1e64cf[_0x1adf84(0x18e)],'mcpServerName':_0x51b89c[_0x1adf84(0x15a)],'toolName':_0x51b89c[_0x1adf84(0x179)],'data':_0x51b89c[_0x1adf84(0x129)],'id':_0x51b89c['id']};}default:return null;}}[_0x23bb7d(0x167)](_0x4fa991,_0x556dd4=!0x1){const _0x8f760d=_0x23bb7d;if(this[_0x8f760d(0x17d)][_0x8f760d(0x1a0)](_0x4fa991[_0x8f760d(0x156)],_0x4fa991),_0x4fa991[_0x8f760d(0x11a)]||this[_0x8f760d(0x14b)](_0x8f760d(0x123),{'contextItem':_0x4fa991,'isLoading':_0x556dd4}),_0x8f760d(0x12d)===_0x4fa991[_0x8f760d(0x156)]&&this[_0x8f760d(0x14c)](),_0x4fa991[_0x8f760d(0x117)]){const _0x4a9280=this[_0x8f760d(0x16e)](_0x4fa991[_0x8f760d(0x117)]);_0x4a9280&&_0x4a9280[_0x8f760d(0x183)](_0x475bae=>{const _0x4fd39f=_0x8f760d;this[_0x4fd39f(0x115)](_0x475bae,_0x4fa991[_0x4fd39f(0x117)],!0x0);});}}[_0x23bb7d(0x19b)](_0x1982ec){const _0x29745d=_0x23bb7d,_0x5a5fcf=this[_0x29745d(0x17d)][_0x29745d(0x170)](_0x1982ec),_0x2d7dc4=this[_0x29745d(0x160)][_0x29745d(0x170)](_0x1982ec);if(_0x2d7dc4&&(_0x2d7dc4[_0x29745d(0x13d)](),this[_0x29745d(0x160)][_0x29745d(0x141)](_0x1982ec)),_0x5a5fcf?.[_0x29745d(0x117)]){const _0x1e1999=this[_0x29745d(0x16e)](_0x5a5fcf[_0x29745d(0x117)]);_0x1e1999&&_0x1e1999[_0x29745d(0x183)](_0x1cf7de=>{const _0x2a63a9=_0x29745d;this[_0x2a63a9(0x115)](_0x1cf7de,_0x5a5fcf[_0x2a63a9(0x117)],!0x1);});}this[_0x29745d(0x17d)][_0x29745d(0x141)](_0x1982ec),this[_0x29745d(0x14b)](_0x29745d(0x15d),{'uiId':_0x1982ec,'type':_0x5a5fcf?.[_0x29745d(0x12f)]}),_0x29745d(0x12d)===_0x1982ec&&this[_0x29745d(0x14c)]();}[_0x23bb7d(0x19c)](_0x20a697,_0x300b06){const _0x4bfdae=_0x23bb7d;if(this[_0x4bfdae(0x17d)][_0x4bfdae(0x12e)](_0x20a697[_0x4bfdae(0x156)])&&(this[_0x4bfdae(0x17d)][_0x4bfdae(0x1a0)](_0x20a697[_0x4bfdae(0x156)],_0x20a697),this[_0x4bfdae(0x14b)](_0x4bfdae(0x139),{'contextItem':_0x20a697,'isLoading':_0x300b06}),_0x20a697[_0x4bfdae(0x117)])){const _0x3fc009=this[_0x4bfdae(0x16e)](_0x20a697[_0x4bfdae(0x117)]);_0x3fc009&&_0x3fc009[_0x4bfdae(0x183)](_0x28fcca=>{const _0x44e20a=_0x4bfdae;this[_0x44e20a(0x115)](_0x28fcca,_0x20a697[_0x44e20a(0x117)],!0x0);});}}[_0x23bb7d(0x140)](_0x4d7557){const _0x10cca8=_0x23bb7d;this[_0x10cca8(0x147)][_0x10cca8(0x1a0)](_0x4d7557[_0x10cca8(0x156)],_0x4d7557);}[_0x23bb7d(0x199)](){const _0x5b623f=_0x23bb7d;this[_0x5b623f(0x15e)]={'document':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x134)]?.[_0x5b623f(0x175)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x194)]?.[_0x5b623f(0x175)]},'files':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x1a2)]?.[_0x5b623f(0x175)]},'sources':this[_0x5b623f(0x112)](),'customItems':this[_0x5b623f(0x119)]?.[_0x5b623f(0x12a)]?.[_0x5b623f(0x16c)](_0x2f3213=>({..._0x2f3213,'enabled':!0x0}))??[]},this[_0x5b623f(0x14b)](_0x5b623f(0x169),{'options':this[_0x5b623f(0x15e)]});}[_0x23bb7d(0x112)](){const _0x13c219=_0x23bb7d;return this[_0x13c219(0x119)]?.[_0x13c219(0x195)]?.[_0x13c219(0x16c)](_0x5f06ae=>({..._0x5f06ae,'resources':[]}))??[];}[_0x23bb7d(0x14c)](){const _0x4b1f46=_0x23bb7d,_0x2be11a=this[_0x4b1f46(0x19d)]()||this[_0x4b1f46(0x11d)]();this[_0x4b1f46(0x15e)][_0x4b1f46(0x134)][_0x4b1f46(0x192)]=_0x2be11a,this[_0x4b1f46(0x14b)](_0x4b1f46(0x169),{'options':this[_0x4b1f46(0x15e)]});}[_0x23bb7d(0x125)](_0x1ed474){const _0xbad4d8=_0x23bb7d;for(const _0x46406e of this[_0xbad4d8(0x17d)][_0xbad4d8(0x122)]())if(_0x46406e[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;for(const _0x3ea531 of this[_0xbad4d8(0x147)][_0xbad4d8(0x122)]())if(_0x3ea531[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;return!0x1;}[_0x23bb7d(0x16e)](_0x51d461){const _0x5e0e81=_0x23bb7d,_0x4d9aa0=[];for(const _0x293c8c of this[_0x5e0e81(0x15e)][_0x5e0e81(0x195)]){_0x293c8c[_0x5e0e81(0x19f)][_0x5e0e81(0x174)](_0x1d74da=>_0x1d74da['id']===_0x51d461)&&_0x4d9aa0[_0x5e0e81(0x190)](_0x293c8c['id']);}return 0x0===_0x4d9aa0[_0x5e0e81(0x16d)]?null:_0x4d9aa0;}[_0x23bb7d(0x115)](_0x4bbdd4,_0xd19d48,_0x12a7f0){const _0x43ab5b=_0x23bb7d,_0x24451d=this[_0x43ab5b(0x15e)][_0x43ab5b(0x195)][_0x43ab5b(0x174)](_0x18c83c=>_0x18c83c['id']===_0x4bbdd4);if(!_0x24451d)return;const _0x7c35f5=_0x24451d[_0x43ab5b(0x19f)][_0x43ab5b(0x174)](_0x5a9e40=>_0x5a9e40['id']===_0xd19d48);_0x7c35f5&&(_0x7c35f5[_0x43ab5b(0x193)]=_0x12a7f0,this[_0x43ab5b(0x14b)](_0x43ab5b(0x13f),{'sourceId':_0x4bbdd4,'resourceId':_0xd19d48,'isInContext':_0x12a7f0}));}[_0x23bb7d(0x143)](_0x13cb28){const _0x3c195c=_0x23bb7d;this[_0x3c195c(0x15b)][_0x3c195c(0x1a0)](_0x13cb28,!0x0),this[_0x3c195c(0x15b)][_0x3c195c(0x180)]&&this[_0x3c195c(0x14b)](_0x3c195c(0x133),{'isUploadInProgress':!0x0});}[_0x23bb7d(0x189)](_0x17997b){const _0x455d7e=_0x23bb7d;this[_0x455d7e(0x15b)][_0x455d7e(0x141)](_0x17997b),0x0===this[_0x455d7e(0x15b)][_0x455d7e(0x180)]&&this[_0x455d7e(0x14b)](_0x455d7e(0x133),{'isUploadInProgress':!0x1});}}
23
+ const _0xa9ee2e=_0x4dba;(function(_0x264d22,_0x3b5aef){const _0xc176c7=_0x4dba,_0x59a9ae=_0x264d22();while(!![]){try{const _0x4f7851=parseInt(_0xc176c7(0x120))/0x1*(-parseInt(_0xc176c7(0x105))/0x2)+-parseInt(_0xc176c7(0xc7))/0x3*(-parseInt(_0xc176c7(0x126))/0x4)+-parseInt(_0xc176c7(0xc5))/0x5*(parseInt(_0xc176c7(0xf3))/0x6)+-parseInt(_0xc176c7(0xea))/0x7*(parseInt(_0xc176c7(0xb9))/0x8)+parseInt(_0xc176c7(0x10d))/0x9+parseInt(_0xc176c7(0xff))/0xa+parseInt(_0xc176c7(0x128))/0xb*(-parseInt(_0xc176c7(0xbb))/0xc);if(_0x4f7851===_0x3b5aef)break;else _0x59a9ae['push'](_0x59a9ae['shift']());}catch(_0x3cbc13){_0x59a9ae['push'](_0x59a9ae['shift']());}}}(_0x44e4,0xc2a86));import{CKEditorError as _0x1fa91f,ObservableMixin as _0x3a157a,uid as _0x47c713}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x19f616,AIContextTextResourceType as _0x45c081}from'../../aicore/model/aicontext.js';import{escape as _0x562939}from'es-toolkit/compat';import{errorsMap as _0x148d13}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xa9ee2e(0xd2),_0xa9ee2e(0x12e),_0xa9ee2e(0x137),_0xa9ee2e(0x100),_0xa9ee2e(0xe3),_0xa9ee2e(0xcb),_0xa9ee2e(0xc2),_0xa9ee2e(0xef),_0xa9ee2e(0xbe)];function _0x4dba(_0x5b163d,_0x225a72){const _0x44e4ad=_0x44e4();return _0x4dba=function(_0x4dba2e,_0x408641){_0x4dba2e=_0x4dba2e-0xa5;let _0x4e6f1b=_0x44e4ad[_0x4dba2e];return _0x4e6f1b;},_0x4dba(_0x5b163d,_0x225a72);}export class AIChatContext extends _0x3a157a(){[_0xa9ee2e(0xd9)];[_0xa9ee2e(0xcd)];[_0xa9ee2e(0xc4)];constructor({connector:_0x1d5c1f,config:_0x4ff1fe,ownerId:_0x479a88}){const _0x1c45eb=_0xa9ee2e;super(),this[_0x1c45eb(0xd9)]=_0x1d5c1f,this[_0x1c45eb(0xcd)]=_0x4ff1fe,this[_0x1c45eb(0xc4)]=_0x479a88;}[_0xa9ee2e(0xaf)](){const _0x376495=_0xa9ee2e;this[_0x376495(0xab)]=new Map(),this[_0x376495(0x131)]=new Map(),this[_0x376495(0xee)]=new Map(),this[_0x376495(0xad)]=new Map(),this[_0x376495(0x118)]();}[_0xa9ee2e(0x11c)](){const _0x515ab3=_0xa9ee2e;return this[_0x515ab3(0xab)];}async[_0xa9ee2e(0x106)](_0x1585f5){const _0x1132de=_0xa9ee2e,_0x9cc3ca=await this[_0x1132de(0xcc)](_0x1585f5);return this[_0x1132de(0x13b)](_0x9cc3ca),_0x1132de(0xc6)===_0x9cc3ca[_0x1132de(0xf7)]&&this[_0x1132de(0xb2)](),_0x9cc3ca;}async[_0xa9ee2e(0xcc)](_0x55ce9d){const _0x876c9=_0xa9ee2e;if(_0x55ce9d[_0x876c9(0x11f)]===_0x19f616[_0x876c9(0x12a)]){const _0x48492a=await this[_0x876c9(0xd9)][_0x876c9(0x117)](this[_0x876c9(0xc4)],_0x55ce9d['id'])[_0x876c9(0x10c)]();return{'id':_0x876c9(0xc6),'uiId':_0x876c9(0xc6),'label':_0x876c9(0x116),'type':_0x55ce9d[_0x876c9(0x11f)],'content':_0x48492a[_0x876c9(0xdc)],'hidden':this[_0x876c9(0x131)][_0x876c9(0xb8)](_0x876c9(0xc6)),'version':_0x48492a[_0x876c9(0x139)]?.[_0x876c9(0xec)],'sessionId':_0x48492a[_0x876c9(0x139)]?.[_0x876c9(0x10f)]};}if(_0x55ce9d[_0x876c9(0x11f)]===_0x19f616[_0x876c9(0x101)])return{'id':_0x55ce9d['id'],'uiId':_0x55ce9d['id'],'label':_0x55ce9d[_0x876c9(0xba)]?.[_0x876c9(0x130)]||_0x55ce9d['id'],'type':_0x19f616[_0x876c9(0x101)],'mcpServerName':_0x55ce9d[_0x876c9(0xc8)],'toolName':_0x55ce9d[_0x876c9(0xd6)],'data':_0x55ce9d[_0x876c9(0xba)]||{}};return{'id':_0x55ce9d['id'],'uiId':_0x55ce9d['id'],'label':_0x55ce9d[_0x876c9(0x139)]?.[_0x876c9(0x130)]||_0x55ce9d[_0x876c9(0xf2)]||_0x55ce9d[_0x876c9(0xa6)]||_0x55ce9d['id'],'type':_0x55ce9d[_0x876c9(0x11f)],..._0x55ce9d?.[_0x876c9(0x139)]?.[_0x876c9(0xb6)]?{'resourceId':_0x55ce9d[_0x876c9(0x139)]?.[_0x876c9(0xb6)]}:{}};}[_0xa9ee2e(0x136)](){const _0x37f4ef=_0xa9ee2e;return new Map(this[_0x37f4ef(0x131)]);}[_0xa9ee2e(0xf4)](_0x1ab45e){const _0x492435=_0xa9ee2e,_0x9e100a=this[_0x492435(0xab)][_0x492435(0xd5)](_0x1ab45e);_0x9e100a?.[_0x492435(0xf8)]||this[_0x492435(0xca)](_0x1ab45e);}[_0xa9ee2e(0x12c)](){const _0xf2eabd=_0xa9ee2e;if(0x0===this[_0xf2eabd(0xab)][_0xf2eabd(0xcf)])return;for(const _0xd8279e of this[_0xf2eabd(0xab)][_0xf2eabd(0xa5)]())this[_0xf2eabd(0xca)](_0xd8279e[_0xf2eabd(0xf7)]);const _0x4b4a71=this[_0xf2eabd(0x131)][_0xf2eabd(0xd5)](_0xf2eabd(0xc6))||this[_0xf2eabd(0xab)][_0xf2eabd(0xd5)](_0xf2eabd(0xc6));_0x4b4a71&&this[_0xf2eabd(0x112)]({..._0x4b4a71,'isReadOnly':!0x0,'hidden':!0x0});}[_0xa9ee2e(0x10a)](_0x4c6ecb){const _0xe2fe9f=_0xa9ee2e;for(const _0x17b9b7 of _0x4c6ecb[_0xe2fe9f(0xa5)]())this[_0xe2fe9f(0x13b)](_0x17b9b7);this[_0xe2fe9f(0x12c)](),this[_0xe2fe9f(0xc3)](_0xe2fe9f(0x100),{'contextItems':Array[_0xe2fe9f(0xbc)](this[_0xe2fe9f(0x136)]()[_0xe2fe9f(0xa5)]())});}[_0xa9ee2e(0x135)](){const _0xbe2ba9=_0xa9ee2e;return this[_0xbe2ba9(0xab)][_0xbe2ba9(0xb8)](_0xbe2ba9(0xc6));}[_0xa9ee2e(0xb4)](){const _0x2f565a=_0xa9ee2e;return this[_0x2f565a(0xab)][_0x2f565a(0xb8)](_0x2f565a(0x102));}[_0xa9ee2e(0xd4)](){const _0x436113=_0xa9ee2e;return this[_0x436113(0x131)][_0x436113(0xb8)](_0x436113(0xc6));}static[_0xa9ee2e(0xf6)](_0x44425e){const _0x493660=_0xa9ee2e;return Array[_0x493660(0xbc)](_0x44425e[_0x493660(0xa5)]())[_0x493660(0xc0)](_0x275e95=>this[_0x493660(0x11e)](_0x275e95))[_0x493660(0xbd)](_0x3b201f=>null!==_0x3b201f);}async[_0xa9ee2e(0xac)](_0x20596d,_0x3a35fd,_0x3cb3ca=_0x19f616[_0xa9ee2e(0x132)]){const _0x1bdfc3=_0xa9ee2e,_0x29e0b9=_0x1bdfc3(0x10b)+_0x47c713();this[_0x1bdfc3(0x133)](_0x29e0b9);try{await Promise[_0x1bdfc3(0x10e)](_0x20596d[_0x1bdfc3(0xc0)](async _0x547cfa=>{const _0x532133=_0x1bdfc3,_0x4dc97f=_0x532133(0xce)+_0x47c713(),_0x2e628c=_0x562939(_0x547cfa[_0x532133(0xf2)]);try{this[_0x532133(0x112)]({'type':_0x3cb3ca,'label':_0x3a35fd?.[_0x532133(0x130)]||_0x2e628c,'uiId':_0x4dc97f,'resourceId':_0x3a35fd?.[_0x532133(0xb6)]},!0x0);const _0x25557f=this[_0x532133(0xd9)][_0x532133(0xa8)](this[_0x532133(0xc4)],_0x547cfa,_0x3a35fd);this[_0x532133(0xee)][_0x532133(0x11a)](_0x4dc97f,_0x25557f[_0x532133(0xb5)]);const {id:_0x22bbd7}=await _0x25557f[_0x532133(0xe0)]();this[_0x532133(0xee)][_0x532133(0xb1)](_0x4dc97f),this[_0x532133(0x103)]({'type':_0x3cb3ca,'id':_0x22bbd7,'label':_0x3a35fd?.[_0x532133(0x130)]||_0x2e628c,'uiId':_0x4dc97f,'resourceId':_0x3a35fd?.[_0x532133(0xb6)]},!0x1);}catch(_0x4bd488){this[_0x532133(0xee)][_0x532133(0xb1)](_0x4dc97f);if(!(_0x4bd488 instanceof _0x1fa91f&&_0x4bd488[_0x532133(0xb7)][_0x532133(0xfe)](_0x532133(0xe7)))){const _0x568577=_0x148d13[_0x532133(0xd5)](_0x4bd488[_0x532133(0x123)])||_0x532133(0x125),_0x47141d=new _0x1fa91f(_0x568577,null,{'fileName':_0x2e628c,..._0x4bd488});_0x47141d[_0x532133(0x111)]=_0x4bd488[_0x532133(0x111)],this[_0x532133(0xc3)](_0x532133(0xe3),{'error':_0x47141d});}this[_0x532133(0xca)](_0x4dc97f);}}));}finally{this[_0x1bdfc3(0x121)](_0x29e0b9);}}[_0xa9ee2e(0xe4)](_0x5dfec4){const _0x23425e=_0xa9ee2e;if(this[_0x23425e(0x135)]()||!this[_0x23425e(0x114)][_0x23425e(0x11d)][_0x23425e(0xde)])return;const _0x4dc227={'type':_0x19f616[_0x23425e(0x12a)],'uiId':_0x23425e(0xc6),'label':_0x5dfec4,'isReadOnly':this[_0x23425e(0x131)][_0x23425e(0xb8)](_0x23425e(0xc6)),'hidden':this[_0x23425e(0x131)][_0x23425e(0xb8)](_0x23425e(0xc6))};this[_0x23425e(0x112)](_0x4dc227);}async[_0xa9ee2e(0xda)](_0x147d96,_0x1b16c7,_0xccd1de,_0x10b87c){const _0x432ad9=_0xa9ee2e,_0xc34597=this[_0x432ad9(0xab)][_0x432ad9(0xd5)](_0x432ad9(0xc6));if(_0xc34597&&_0x147d96){_0xc34597[_0x432ad9(0x102)]=_0x10b87c?_0x10b87c[_0x432ad9(0xc0)](_0xa59b4e=>({'start':_0xa59b4e[_0x432ad9(0x13a)],'end':_0xa59b4e[_0x432ad9(0xae)]})):[];try{if(_0xc34597[_0x432ad9(0xec)]===_0x1b16c7)return;const {id:_0x506b3e}=await this[_0x432ad9(0xd9)][_0x432ad9(0xfd)](this[_0x432ad9(0xc4)],_0x147d96,{'version':_0x1b16c7,'sessionId':_0xccd1de})[_0x432ad9(0xe0)]();_0xc34597['id']=_0x506b3e,_0xc34597[_0x432ad9(0xdc)]=_0x147d96,_0xc34597[_0x432ad9(0xec)]=_0x1b16c7,_0xc34597[_0x432ad9(0x10f)]=_0xccd1de;}catch(_0x2f05fd){const _0x3743f0=new _0x1fa91f(_0x432ad9(0xfa),null);_0x3743f0[_0x432ad9(0x111)]=_0x2f05fd[_0x432ad9(0x111)],this[_0x432ad9(0xc3)](_0x432ad9(0xe3),{'error':_0x3743f0});}}}[_0xa9ee2e(0xe5)](_0x6a425f){const _0x4f1f45=_0xa9ee2e;this[_0x4f1f45(0x112)]({'type':_0x19f616[_0x4f1f45(0x12b)],'label':_0x6a425f,'uiId':_0x4f1f45(0x102),'content':_0x6a425f});}[_0xa9ee2e(0xfb)](){const _0x30fd54=_0xa9ee2e;this[_0x30fd54(0xca)](_0x30fd54(0x102));}async[_0xa9ee2e(0xd0)](_0x15ce01,_0x3fc94c){const _0x17dbdb=_0xa9ee2e,_0x2a0a8d=_0x17dbdb(0xb0)+_0x47c713();this[_0x17dbdb(0x133)](_0x2a0a8d);const _0x51b512=_0x17dbdb(0xb0)+_0x47c713();try{this[_0x17dbdb(0x112)]({'type':_0x19f616[_0x17dbdb(0xe8)],'label':_0x3fc94c?.[_0x17dbdb(0x130)]||_0x15ce01,'uiId':_0x51b512,'resourceId':_0x3fc94c?.[_0x17dbdb(0xb6)]},!0x0);const _0x469e41=this[_0x17dbdb(0xd9)][_0x17dbdb(0xa7)](this[_0x17dbdb(0xc4)],_0x15ce01,_0x3fc94c);this[_0x17dbdb(0xee)][_0x17dbdb(0x11a)](_0x51b512,_0x469e41[_0x17dbdb(0xb5)]);const {id:_0x21a3a0}=await _0x469e41[_0x17dbdb(0xe0)]();this[_0x17dbdb(0xee)][_0x17dbdb(0xb1)](_0x51b512),this[_0x17dbdb(0x103)]({'type':_0x19f616[_0x17dbdb(0xe8)],'id':_0x21a3a0,'label':_0x3fc94c?.[_0x17dbdb(0x130)]||_0x15ce01,'uiId':_0x51b512,'resourceId':_0x3fc94c?.[_0x17dbdb(0xb6)]},!0x1);}catch(_0x10fccf){this[_0x17dbdb(0xee)][_0x17dbdb(0xb1)](_0x51b512),(_0x10fccf[_0x17dbdb(0xb7)][_0x17dbdb(0xfe)](_0x17dbdb(0xe7))||this[_0x17dbdb(0xc3)](_0x17dbdb(0xe3),{'error':new _0x1fa91f(_0x17dbdb(0xdf),this,{'url':_0x15ce01,'originalError':_0x10fccf}),'url':_0x15ce01}),this[_0x17dbdb(0xca)](_0x51b512));}finally{this[_0x17dbdb(0x121)](_0x2a0a8d);}}[_0xa9ee2e(0x104)](_0x5ccaa0){const _0x368f90=_0xa9ee2e;_0x5ccaa0['id']=_0x5ccaa0['id']??_0x47c713()[_0x368f90(0xf1)](0x0,0x15),this[_0x368f90(0xab)][_0x368f90(0x11a)](_0x5ccaa0[_0x368f90(0xf7)],_0x5ccaa0),this[_0x368f90(0xc3)](_0x368f90(0xd2),{'contextItem':_0x5ccaa0,'isLoading':!0x1});}async[_0xa9ee2e(0xf0)](_0xd00267,_0x1dc5a5,_0x5f05e0){const _0x4464fd=_0xa9ee2e,_0x270e24=this[_0x4464fd(0x114)][_0x4464fd(0xf5)][_0x4464fd(0xd3)](_0x45f416=>_0x45f416['id']===_0xd00267);if(!_0x270e24)return this[_0x4464fd(0xc3)](_0x4464fd(0xe3),{'error':new _0x1fa91f(_0x4464fd(0x127),this,{'sourceId':_0xd00267}),'sourceId':_0xd00267}),[];try{const _0x2a3456=(await _0x270e24[_0x4464fd(0xaa)](_0x1dc5a5))[_0x4464fd(0xc0)](_0x58988e=>{const _0x41590c=_0x4464fd,_0x55af2e=this[_0x41590c(0xed)](_0x58988e['id']);return{..._0x58988e,'isInContext':_0x55af2e};});return _0x270e24[_0x4464fd(0x108)]=_0x2a3456,this[_0x4464fd(0xc3)](_0x4464fd(0xc2),{'sourceId':_0xd00267,'source':_0x270e24,'resources':_0x2a3456,'uid':_0x5f05e0}),_0x2a3456;}catch(_0x65347){return this[_0x4464fd(0xc3)](_0x4464fd(0xe3),{'error':new _0x1fa91f(_0x4464fd(0xf9),this,{'sourceId':_0xd00267,'originalError':_0x65347}),'sourceId':_0xd00267,'sourceLabel':_0x270e24[_0x4464fd(0x130)]}),[];}}async[_0xa9ee2e(0x129)](_0x5679a9,_0x25d614){const _0x3b76cf=_0xa9ee2e;if(this[_0x3b76cf(0xed)](_0x25d614['id']))return;let _0x482277=_0x25d614[_0x3b76cf(0xba)];if(!_0x482277&&_0x5679a9[_0x3b76cf(0x11b)])try{_0x482277=await _0x5679a9[_0x3b76cf(0x11b)](_0x25d614['id']);}catch(_0x2f588b){return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xc9),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'originalError':_0x2f588b}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}if(_0x482277)switch(_0x25d614[_0x3b76cf(0x11f)]){case _0x19f616[_0x3b76cf(0xe8)]:if(_0x3b76cf(0xb3)!=typeof _0x482277)return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xb3),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});await this[_0x3b76cf(0xd0)](_0x482277,{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']});break;case _0x19f616[_0x3b76cf(0x132)]:if(!(_0x482277 instanceof File))return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xa9),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});await this[_0x3b76cf(0xac)]([_0x482277],{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']});break;case _0x19f616[_0x3b76cf(0x113)]:if(_0x3b76cf(0x124)!=typeof _0x482277||!(_0x3b76cf(0xdc)in _0x482277)||!(_0x3b76cf(0x11f)in _0x482277))return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xeb),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});_0x482277=AIChatContext[_0x3b76cf(0x119)](_0x482277,_0x25d614[_0x3b76cf(0x130)]),await this[_0x3b76cf(0xac)]([_0x482277],{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']},_0x19f616[_0x3b76cf(0x113)]);break;case _0x19f616[_0x3b76cf(0x101)]:break;default:this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xc1),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'resourceType':_0x25d614[_0x3b76cf(0x11f)]}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}else this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xdd),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}static[_0xa9ee2e(0x119)](_0x35eaa2,_0x29341c){const _0x331411=_0xa9ee2e;switch(_0x35eaa2[_0x331411(0x11f)]){case _0x45c081[_0x331411(0x109)]:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0xd1)});case _0x45c081[_0x331411(0x110)]:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0x134)});default:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0xd7)});}}static[_0xa9ee2e(0x11e)](_0x24fa69){const _0xffd253=_0xa9ee2e;switch(_0x24fa69[_0xffd253(0x11f)]){case _0x19f616[_0xffd253(0x132)]:return{'type':_0x19f616[_0xffd253(0x132)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0xe8)]:return{'type':_0x19f616[_0xffd253(0xe8)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0x12a)]:return{'type':_0x19f616[_0xffd253(0x12a)],'id':_0x24fa69['id'],..._0x24fa69[_0xffd253(0x102)]?.[_0xffd253(0xe9)]&&{'selection':_0x24fa69[_0xffd253(0x102)]}};case _0x19f616[_0xffd253(0x113)]:return{'type':_0x19f616[_0xffd253(0x132)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0x101)]:{const _0x55ac6a=_0x24fa69;return{'type':_0x19f616[_0xffd253(0x101)],'mcpServerName':_0x55ac6a[_0xffd253(0xc8)],'toolName':_0x55ac6a[_0xffd253(0xd6)],'data':_0x55ac6a[_0xffd253(0xba)],'id':_0x55ac6a['id']};}default:return null;}}[_0xa9ee2e(0x112)](_0x31bdf0,_0x57b6bb=!0x1){const _0x2546a8=_0xa9ee2e;if(this[_0x2546a8(0xab)][_0x2546a8(0x11a)](_0x31bdf0[_0x2546a8(0xf7)],_0x31bdf0),_0x31bdf0[_0x2546a8(0xbf)]||this[_0x2546a8(0xc3)](_0x2546a8(0xd2),{'contextItem':_0x31bdf0,'isLoading':_0x57b6bb}),_0x2546a8(0xc6)===_0x31bdf0[_0x2546a8(0xf7)]&&this[_0x2546a8(0xb2)](),_0x31bdf0[_0x2546a8(0xb6)]){const _0xac1cb0=this[_0x2546a8(0xfc)](_0x31bdf0[_0x2546a8(0xb6)]);_0xac1cb0&&_0xac1cb0[_0x2546a8(0x115)](_0x4978ee=>{const _0x311313=_0x2546a8;this[_0x311313(0xe1)](_0x4978ee,_0x31bdf0[_0x311313(0xb6)],!0x0);});}}[_0xa9ee2e(0xca)](_0x2bbcac){const _0x24a886=_0xa9ee2e,_0x9c8045=this[_0x24a886(0xab)][_0x24a886(0xd5)](_0x2bbcac),_0x3c7a8f=this[_0x24a886(0xee)][_0x24a886(0xd5)](_0x2bbcac);if(_0x3c7a8f&&(_0x3c7a8f[_0x24a886(0x12d)](),this[_0x24a886(0xee)][_0x24a886(0xb1)](_0x2bbcac)),_0x9c8045?.[_0x24a886(0xb6)]){const _0x1866e0=this[_0x24a886(0xfc)](_0x9c8045[_0x24a886(0xb6)]);_0x1866e0&&_0x1866e0[_0x24a886(0x115)](_0x46e8a0=>{const _0x3bf0cd=_0x24a886;this[_0x3bf0cd(0xe1)](_0x46e8a0,_0x9c8045[_0x3bf0cd(0xb6)],!0x1);});}this[_0x24a886(0xab)][_0x24a886(0xb1)](_0x2bbcac),this[_0x24a886(0xc3)](_0x24a886(0x12e),{'uiId':_0x2bbcac,'type':_0x9c8045?.[_0x24a886(0x11f)]}),_0x24a886(0xc6)===_0x2bbcac&&this[_0x24a886(0xb2)]();}[_0xa9ee2e(0x103)](_0x59692d,_0x571984){const _0x4f7140=_0xa9ee2e;if(this[_0x4f7140(0xab)][_0x4f7140(0xb8)](_0x59692d[_0x4f7140(0xf7)])&&(this[_0x4f7140(0xab)][_0x4f7140(0x11a)](_0x59692d[_0x4f7140(0xf7)],_0x59692d),this[_0x4f7140(0xc3)](_0x4f7140(0x137),{'contextItem':_0x59692d,'isLoading':_0x571984}),_0x59692d[_0x4f7140(0xb6)])){const _0x405440=this[_0x4f7140(0xfc)](_0x59692d[_0x4f7140(0xb6)]);_0x405440&&_0x405440[_0x4f7140(0x115)](_0x160b54=>{const _0x4ec620=_0x4f7140;this[_0x4ec620(0xe1)](_0x160b54,_0x59692d[_0x4ec620(0xb6)],!0x0);});}}[_0xa9ee2e(0x13b)](_0x3d84fa){const _0x1e6736=_0xa9ee2e;this[_0x1e6736(0x131)][_0x1e6736(0x11a)](_0x3d84fa[_0x1e6736(0xf7)],_0x3d84fa);}[_0xa9ee2e(0x118)](){const _0xcb1a57=_0xa9ee2e;this[_0xcb1a57(0x114)]={'document':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x11d)]?.[_0xcb1a57(0xde)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x107)]?.[_0xcb1a57(0xde)]},'files':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0xdb)]?.[_0xcb1a57(0xde)]},'sources':this[_0xcb1a57(0xe2)](),'customItems':this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x138)]?.[_0xcb1a57(0xc0)](_0x27be4c=>({..._0x27be4c,'enabled':!0x0}))??[]},this[_0xcb1a57(0xc3)](_0xcb1a57(0xcb),{'options':this[_0xcb1a57(0x114)]});}[_0xa9ee2e(0xe2)](){const _0x32b7cb=_0xa9ee2e;return this[_0x32b7cb(0xcd)]?.[_0x32b7cb(0xf5)]?.[_0x32b7cb(0xc0)](_0xbfce90=>({..._0xbfce90,'resources':[]}))??[];}[_0xa9ee2e(0xb2)](){const _0x48d7e5=_0xa9ee2e,_0x3e5dfa=this[_0x48d7e5(0x135)]()||this[_0x48d7e5(0xd4)]();this[_0x48d7e5(0x114)][_0x48d7e5(0x11d)][_0x48d7e5(0xe6)]=_0x3e5dfa,this[_0x48d7e5(0xc3)](_0x48d7e5(0xcb),{'options':this[_0x48d7e5(0x114)]});}[_0xa9ee2e(0xed)](_0x525e2d){const _0x49bbd4=_0xa9ee2e;for(const _0x105a59 of this[_0x49bbd4(0xab)][_0x49bbd4(0xa5)]())if(_0x105a59[_0x49bbd4(0xb6)]===_0x525e2d)return!0x0;for(const _0x40098a of this[_0x49bbd4(0x131)][_0x49bbd4(0xa5)]())if(_0x40098a[_0x49bbd4(0xb6)]===_0x525e2d)return!0x0;return!0x1;}[_0xa9ee2e(0xfc)](_0x3f252f){const _0x290fa6=_0xa9ee2e,_0x15a07f=[];for(const _0x127f85 of this[_0x290fa6(0x114)][_0x290fa6(0xf5)]){_0x127f85[_0x290fa6(0x108)][_0x290fa6(0xd3)](_0x331658=>_0x331658['id']===_0x3f252f)&&_0x15a07f[_0x290fa6(0x12f)](_0x127f85['id']);}return 0x0===_0x15a07f[_0x290fa6(0xe9)]?null:_0x15a07f;}[_0xa9ee2e(0xe1)](_0x5db04c,_0x3c3f24,_0x4de6d5){const _0x5a7128=_0xa9ee2e,_0x236a9f=this[_0x5a7128(0x114)][_0x5a7128(0xf5)][_0x5a7128(0xd3)](_0x3cd4cc=>_0x3cd4cc['id']===_0x5db04c);if(!_0x236a9f)return;const _0x4f7979=_0x236a9f[_0x5a7128(0x108)][_0x5a7128(0xd3)](_0x19469d=>_0x19469d['id']===_0x3c3f24);_0x4f7979&&(_0x4f7979[_0x5a7128(0xd8)]=_0x4de6d5,this[_0x5a7128(0xc3)](_0x5a7128(0xef),{'sourceId':_0x5db04c,'resourceId':_0x3c3f24,'isInContext':_0x4de6d5}));}[_0xa9ee2e(0x133)](_0x358e7d){const _0x2aa271=_0xa9ee2e;this[_0x2aa271(0xad)][_0x2aa271(0x11a)](_0x358e7d,!0x0),this[_0x2aa271(0xad)][_0x2aa271(0xcf)]&&this[_0x2aa271(0xc3)](_0x2aa271(0xbe),{'isUploadInProgress':!0x0});}[_0xa9ee2e(0x121)](_0x278b7b){const _0x56501c=_0xa9ee2e;this[_0x56501c(0xad)][_0x56501c(0xb1)](_0x278b7b),0x0===this[_0x56501c(0xad)][_0x56501c(0xcf)]&&this[_0x56501c(0xc3)](_0x56501c(0xbe),{'isUploadInProgress':!0x1});}}function _0x44e4(){const _0x5a588e=['content','ai-chat-resource-no-data','enabled','ai-chat-url-upload-failed','getId','_updateResourceInContextState','_getCustomSourcesInitialState','error','addCurrentDocumentToContext','addSelectionToContext','isHidden','ai-request-aborted','URL','length','398755Xrsivo','object\x20with\x20content\x20and\x20type\x20properties','version','_isResourceInContext','_ongoingUploads','resourceStateChanged','loadSourceResources','substring','name','156jDcKAL','removeFromContext','sources','mapContextItemsToRequestData','uiId','isReadOnly','ai-chat-source-resources-load-failed','ai-chat-document-upload-failed','removeSelectionFromContext','_findSourceIdsByResourceId','uploadDocument','startsWith','13105790cOoBuq','contextSent','TOOL','selection','_finishContextItemLoading','addToolItemToContext','158HQcbOl','populateFromMessage','urls','resources','MARKDOWN','addToConversationContext','files-','getDocument','3662001pslfFr','all','sessionId','HTML','stack','_addContextItem','TEXT','_addContextOptionsState','forEach','Current\x20document','fetchDocument','_setAddContextOptionsDefaultState','_convertTextResourceToFile','set','getData','getPendingContextItems','document','_mapContextItemToRequestData','type','717CeDoHe','_finishUploadOperation','ai-chat-context-invalid-data','code','object','ai-chat-file-upload-failed','5288JIblCe','ai-chat-source-not-found','1548316cZWtCm','addResourceToContext','DOCUMENT','SELECTION','clearPendingContextItems','abort','contextItemRemoved','push','label','_conversationContextItems','FILE','_startUploadOperation','text/html','isCurrentDocumentInContext','getSentContextItems','contextItemLoadingEnded','customItems','attributes','start','_addToConversationContextItem','values','url','uploadUrl','uploadFile','File','getResources','_pendingContextItems','addFilesToContext','_ongoingUploadOperations','end','init','url-','delete','_toggleAddCurrentDocumentOptionVisibility','string','isSelectionInContext','abortController','resourceId','message','has','104kJgGac','data','12rwoVVE','from','filter','uploadProgressChanged','hidden','map','ai-chat-context-unsupported-type','sourceResourcesLoaded','fire','_ownerId','123185VIAxtS','current-document','1494yobGFd','mcpServerName','ai-chat-resource-load-failed','_removeContextItem','addContextOptionsChanged','_createContextItemFromContent','_config','file-','size','addUrlToContext','text/markdown','contextItemAdded','find','isCurrentDocumentInConversation','get','toolName','text/plain','isInContext','_connector','updateCurrentDocument','files'];_0x44e4=function(){return _0x5a588e;};return _0x44e4();}