@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5

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 _0x4a598a=_0x3ec8;(function(_0x1dabfd,_0x13ed36){const _0x262f9d=_0x3ec8,_0x56f916=_0x1dabfd();while(!![]){try{const _0xcf3e4e=-parseInt(_0x262f9d(0x10f))/0x1+parseInt(_0x262f9d(0xf0))/0x2+parseInt(_0x262f9d(0x114))/0x3+parseInt(_0x262f9d(0xec))/0x4*(parseInt(_0x262f9d(0xf5))/0x5)+parseInt(_0x262f9d(0x106))/0x6+parseInt(_0x262f9d(0xf8))/0x7+-parseInt(_0x262f9d(0xff))/0x8;if(_0xcf3e4e===_0x13ed36)break;else _0x56f916['push'](_0x56f916['shift']());}catch(_0x3f93ea){_0x56f916['push'](_0x56f916['shift']());}}}(_0x6253,0x3e7ae));import{Plugin as _0x14a250}from'ckeditor5/src/core.js';function _0x6253(){const _0x180f28=['ck-ai-chat-balloon','showPrevious','isOfficialPlugin','10lgcWDe','applySuggestion','TrackChanges','2111900dlBChA','has','trackChanges','locale','showRotator','headerView','togglePartToolbarEnabled','3096056OGCDTs','pluginName','remove','set','isPremiumPlugin','config','requires','841116NJLkKd','_restoreDefaultViewFocus','editor','isTrackChangesOn','filter','get','AIChatBalloon','AIBalloon','render','187479yfRhsX','previousButtonView','view','_chatBalloonView','close','787026QSxuXY','addMany','plugins','open','children','nextButtonView','_createChatBalloonView','delegate','rejectSuggestion','ai.availableReplyActions','beforeDialogClosed','setState','bind','Dialog','commands','once','value','focus','toggleRotatorButtonsVisibility','insertSuggestion','showDiff','aiChatBalloon','showNext','78304WChnvO','updateContent','_toggleRotatorButtonsInDialogHeader','areActionsDisabled','174048qdtWbf','dialogClosed'];_0x6253=function(){return _0x180f28;};return _0x6253();}import{AIBalloon as _0x51a390}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x3ed995}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x4c97d9}from'./ui/aichatballoonview.js';function _0x3ec8(_0x50e88f,_0x408baa){const _0x6253e3=_0x6253();return _0x3ec8=function(_0x3ec80b,_0x25ad7e){_0x3ec80b=_0x3ec80b-0xd7;let _0x299c9c=_0x6253e3[_0x3ec80b];return _0x299c9c;},_0x3ec8(_0x50e88f,_0x408baa);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x45984f}from'../aicore/utils/eventnames.js';import{Dialog as _0x14d847}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x14a250{static get[_0x4a598a(0x105)](){return[_0x14d847,_0x51a390];}static get[_0x4a598a(0x100)](){const _0x18cbea=_0x4a598a;return _0x18cbea(0x10c);}static get[_0x4a598a(0xf4)](){return!0x0;}static get[_0x4a598a(0x103)](){return!0x0;}[_0x4a598a(0x112)];constructor(_0x5bce21){const _0x20f0b9=_0x4a598a;super(_0x5bce21),this[_0x20f0b9(0x102)](_0x20f0b9(0xe9),!0x1);}[_0x4a598a(0xd8)](_0x444d1a){const _0x14dad0=_0x4a598a,_0x26f0a0=this[_0x14dad0(0x108)];this[_0x14dad0(0x112)]||(this[_0x14dad0(0x112)]=this[_0x14dad0(0xdb)]()),_0x26f0a0[_0x14dad0(0xd7)][_0x14dad0(0x10b)](_0x14dad0(0x10d))[_0x14dad0(0xd8)]({..._0x444d1a,'id':_0x14dad0(0xea),'class':_0x14dad0(0xf2),'mainView':this[_0x14dad0(0x112)]}),this[_0x14dad0(0xee)](_0x444d1a[_0x14dad0(0xfc)]),this[_0x14dad0(0x112)][_0x14dad0(0xfe)](!_0x444d1a[_0x14dad0(0xef)]),this[_0x14dad0(0x107)]();}[_0x4a598a(0x113)](){const _0x31224e=_0x4a598a;this[_0x31224e(0x108)][_0x31224e(0xd7)][_0x31224e(0x10b)](_0x31224e(0x10d))[_0x31224e(0x113)]();}[_0x4a598a(0xed)](_0x56b302){const _0x2cab3a=_0x4a598a;return this[_0x2cab3a(0x112)]||(this[_0x2cab3a(0x112)]=this[_0x2cab3a(0xdb)]()),this[_0x2cab3a(0x112)][_0x2cab3a(0xed)](_0x56b302);}[_0x4a598a(0xe0)](_0x62e845){const _0x112060=_0x4a598a;this[_0x112060(0x112)]&&this[_0x112060(0x112)][_0x112060(0xe0)](_0x62e845);}[_0x4a598a(0xdb)](){const _0x2fcd8b=_0x4a598a,_0x52784e=this[_0x2fcd8b(0x108)],_0x5e912b=_0x52784e[_0x2fcd8b(0xd7)][_0x2fcd8b(0x10b)](_0x2fcd8b(0x10d)),_0x2099c1=_0x52784e[_0x2fcd8b(0xe3)][_0x2fcd8b(0x10b)](_0x2fcd8b(0xfa));let _0x2b9640=_0x52784e[_0x2fcd8b(0x104)][_0x2fcd8b(0x10b)](_0x2fcd8b(0xde))||[..._0x3ed995];_0x52784e[_0x2fcd8b(0xd7)][_0x2fcd8b(0xf9)](_0x2fcd8b(0xf7))||(_0x2b9640=_0x2b9640[_0x2fcd8b(0x10a)](_0x2967d9=>_0x2fcd8b(0xe8)!=_0x2967d9));const _0x3a1561=new _0x4c97d9(_0x52784e[_0x2fcd8b(0xfb)],{'availableActions':_0x2b9640,'showApplyButton':!0x0,'showSuggestButton':!!_0x2099c1});return _0x3a1561[_0x2fcd8b(0xe1)](_0x2fcd8b(0xe9))['to'](this),_0x3a1561[_0x2fcd8b(0xdc)](..._0x45984f)['to'](this),_0x3a1561[_0x2fcd8b(0xdc)](_0x2fcd8b(0xf3),_0x2fcd8b(0xeb))['to'](this),_0x5e912b[_0x2fcd8b(0xdc)](_0x2fcd8b(0xf1))['to'](this),_0x3a1561['on'](_0x2fcd8b(0xf6),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x3a1561['on'](_0x2fcd8b(0xe8),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x3a1561['on'](_0x2fcd8b(0xdd),this[_0x2fcd8b(0x107)][_0x2fcd8b(0xe1)](this)),_0x2099c1&&_0x3a1561[_0x2fcd8b(0xe1)](_0x2fcd8b(0x109))['to'](_0x2099c1,_0x2fcd8b(0xe5)),_0x3a1561[_0x2fcd8b(0x10e)](),_0x3a1561;}[_0x4a598a(0xee)](_0x543cca){const _0x3af489=_0x4a598a,_0x2a8419=this[_0x3af489(0x108)],_0x2303f6=_0x2a8419[_0x3af489(0xd7)][_0x3af489(0x10b)](_0x3af489(0xe2))[_0x3af489(0x111)][_0x3af489(0xfd)][_0x3af489(0xd9)];this[_0x3af489(0x112)][_0x3af489(0xe7)](_0x543cca),_0x2303f6[_0x3af489(0xf9)](this[_0x3af489(0x112)][_0x3af489(0x110)])||(_0x2303f6[_0x3af489(0x115)]([this[_0x3af489(0x112)][_0x3af489(0x110)],this[_0x3af489(0x112)][_0x3af489(0xda)]],0x0),_0x2a8419[_0x3af489(0xd7)][_0x3af489(0x10b)](_0x3af489(0x10d))[_0x3af489(0xe4)](_0x3af489(0xdf),()=>{const _0x4aad50=_0x3af489;_0x2303f6[_0x4aad50(0x101)](this[_0x4aad50(0x112)][_0x4aad50(0x110)]),_0x2303f6[_0x4aad50(0x101)](this[_0x4aad50(0x112)][_0x4aad50(0xda)]);}));}[_0x4a598a(0x107)](){const _0x27df49=_0x4a598a;this[_0x27df49(0x112)][_0x27df49(0xe6)]();}}
@@ -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
+ const _0x1f9a5f=_0x5be4;function _0xcee7(){const _0x494ab2=['isOfficialPlugin','error','history','getDocumentData','activeConversation','includes','interactionCreated','setFeedItemRenderingStrategy','setAddContextOptions','replyContentUpdated','prepareLoadingMessage','resource','ai-chat-conversation-start-failed','ai-chat-context-invalid-data','resourceStateChanged','$graveyard','fetchConversations','scrollFeedToSuggestion','createConversation','log','set','options','insertSuggestion','_getDocumentRangeForReplyChanges','isStarted','getInteraction','1219075xZLYgN','Undo','getChildAtOffset','53637ZhgztD','ai-chat-context-form-data-size-limits-exceeded','interactionStarted','replyId','getAttribute','changeGroups','Showing\x20conversation\x20history...','resetConversationTitle','ai-no-track-changes','interactionFinished','filter','previous','_updateReplyContent','AIChatBalloon','requires','resources','new','setConversationTitle','outdated','sourceResourcesLoaded','isInContext','ai-chat-source-resources-load-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','bind','clearConversationContextUI','createdAt','addSelectionToChatContext','getConversation','clearLoadingMessage','currentReply','ai-chat-context-unsupported-file-type','resourceId','_openBalloonFor','data-id','delete','interactionDestroyed','resizeTabs','find','removeFromContext','uploadProgressChanged','root','updateFeedItemAIReplyContent','AI_CHAT_ABORTED_MESSAGE','_integrateEditor','viewRangeToDom','init','setConversationContext','has','ready','handleRemovedConversation','change','contextItems','partIndex','getChildren','contextItemLoadingEnded','commands','ai-chat-resource-load-failed','setState','parse','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','toggleWebSearch','sessionId','_aiEditing','setLoadingMessage','getRoot','ai.chat.initialConversation','getDiff','selectedModel','updateFeedItemAIReplySuggestionPartState','134cySHMK','isCurrentDocumentInConversation','showChangeInText','getAll','reasoningFinished','_getUserPresentableContentPartDocumentRange','AIEditing','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','start','resize','15996843toMViX','getConversations','view','addUrlToContext','activateTab','areActionsDisabled','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','end','isPremiumPlugin','createReply','contextSent','selectModel','_aiConnector','abortPromptStream','_handleUIUserMessage','toggleReasoning','howMany','createRange','version','addOperation','ai-conversation-','get','loadSourceResources','delegate','loadConversation','removeContextItem','toString','editors','model','modelSelected','getRanges','1702749cWTGPc','addFeedItemCustomElement','TrackChanges','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','showNext','removeSelectionFromContext','addContextItem','createPositionAt','_rejectSuggestion','showDiff','isModelAvailable','_handleStartConversation','getFirstRange','getGroupId','populateSourceResourceBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','map','message','webSearchStarted','editing','removeSelectionFromChatContext','lastCreated','applySuggestion','type','getChild','toggleSuggestionDisplayMode','getContentParts','accepted','updateCurrentDocumentInContext','closeSourceResourceBalloon','addContextOptionsChanged','2464984gvIZeS','_logError','_batchToChanges','DocumentCompare','resetReasoningState','AIChatUI','uid','hideFakeVisualSelection','showFakeVisualSelection','resetMessageInput','_getLastCreatedConversationId','toolDataReceived','config','lastInteraction','_getPresentableSiblingContentPartIndex','addSelectionToContext','disableControls','like','push','startInteraction','983910zAzgoq','domConverter','cloneNode','updateFeedItemAIReplySources','toViewRange','ai-chat-conversation-init-failed','done','ai.models.defaultModelId','updateConversationTitle','streaming','_scrollToSuggestionRange','open','sourcePosition','applyOperation','handleUserInteraction','addFeedItemStaticMessage','AI_CHAT_INVALID_REQUEST','documentContextContent','_registerToolDataCallback','messageId','rejected','resetWebSearchState','baseVersion','_stopLastInteraction','query','11534360qmknOt','_aiChatUi','maxOffset','_toggleReasoning','Liked\x20response','text','clearPendingContextUI','path','showPrevious','pluginName','slice','isCurrentDocumentInContext','callback','removeFeedInteraction','finishInteraction','_flushLastInteractionUI','ai-chat-controller-no-active-conversation','isDisabled','getSelectionText','setContextItemLoading','node','webSearchFinished','selection','AI_BALLOON_HEADER_TITLE','_applySuggestion','add','document','AI_CHAT_CONTEXT_FILE_TOO_LARGE','replyCreated','ai-chat-context-unsupported-type','source','mapper','indexOf','fetchConversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','addCurrentDocumentToContext','ai-chat-file-upload-failed','addFeedItemError','uiId','stop','removed','length','destroy','forEach','findIndex','setModel','ai-chat-context-file-too-many-pages','startConversation','getInteractionAndReplyById','batch','ai-chat-controller-mouse-over','nextSibling','stopInteraction','_removeFromContext','ai.chat.context','sourceId','addDocumentToContext','anchorId','setIsMaximized','isDocumentOperation','executeCustomItemCallback','addFeedItemAIReply','focusPromptInput','state','_insertSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','hasChanges','dialogClosed','AI_CHAT_CONTEXT_INVALID_DATA','attachToDom','_getAIChatInteractionAPI','chat','remove','static','Disliked\x20response','_aiChatBalloon','listenTo','AIChatController','setChangeGroupState','modification','_startConversationSafely','TrackChangesEditing','_setIsMaximized','AITabs','current-document','indexes','getDocumentContext','ai-chat-context-file-too-large','plugins','setFeedItemAIReplySuggestionPartActive','ai-chat-url-upload-failed','ai.models','context','getPath','data','content','isLoading','addFilesToContext','AI_CHAT_GENERIC_ERROR','_aiChatBalloonShowDiff','getTransformedByOperation','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','rootName','contextItemAdded','from','afterInit','collaboration.channelId','contextItem','undo','startAutoScroll','addResourceToContext','_updateRatings','load','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-invalid-request','addFileToContext','conversationInitialized','ai-request-aborted','changes','rejectSuggestion','contextItemRemoved','children','sendUserMessage','pending','enableControls','range','_toggleWebSearch','_aiChatModels','replies','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','detachFromDom','main','setSelectedModel','addFeedInteractionHeader','ai-chat-missing-channel-id','revert','resizedTabs','updateContent','setIsUploadInProgress','sources','reasoningStarted','addFeedItemAISuggestion','getOperations','createPositionFromPath','getReply','close','mouseLeaveSuggestion','ai-chat-conversation-not-found','unshift','toggleLoadingSkeleton','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','sendMessage','redo','isUploadInProgress','updateFeedItemAIReplySuggestionContent','_applyOperationsAsSuggestions','7BwyYqS','dislike','updateCapabilities','next','AIConnector','index','startsWith','split','addCurrentDocumentToChatContext','replyChangeGroupStateUpdated','_showConversationHistory','capabilitiesUpdated','_createFromRanges','_currentPreviewedChangeGroup','alignToTop','locale','updateResourceState','addFeedItemUserMessage','interactionId','aiChatBalloon','mouseOverSuggestion','_bodyCollection'];_0xcee7=function(){return _0x494ab2;};return _0xcee7();}(function(_0x2ad9f9,_0x5a010e){const _0x346202=_0x5be4,_0x22082d=_0x2ad9f9();while(!![]){try{const _0x5117b1=-parseInt(_0x346202(0x272))/0x1+parseInt(_0x346202(0x248))/0x2*(-parseInt(_0x346202(0x203))/0x3)+parseInt(_0x346202(0x291))/0x4+-parseInt(_0x346202(0x200))/0x5+parseInt(_0x346202(0x2a5))/0x6+parseInt(_0x346202(0x1d0))/0x7*(parseInt(_0x346202(0x2be))/0x8)+parseInt(_0x346202(0x253))/0x9;if(_0x5117b1===_0x5a010e)break;else _0x22082d['push'](_0x22082d['shift']());}catch(_0x49a85b){_0x22082d['push'](_0x22082d['shift']());}}}(_0xcee7,0xd0bd4));function _0x5be4(_0x44dd15,_0x2877ba){const _0xcee70f=_0xcee7();return _0x5be4=function(_0x5be488,_0x26b2c5){_0x5be488=_0x5be488-0x16d;let _0x1e16c1=_0xcee70f[_0x5be488];return _0x1e16c1;},_0x5be4(_0x44dd15,_0x2877ba);}import{ContextPlugin as _0x49a9ee,Editor as _0x45ef52}from'ckeditor5/src/core.js';import{BodyCollection as _0x275ff4}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3295b8,logError as _0x204db6,scrollViewportToShowTarget as _0x31f004,uid as _0x4dab49}from'ckeditor5/src/utils.js';import{AIConnector as _0x2a5752}from'../aicore/aiconnector.js';import{AITabs as _0x22cf14}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1255d0}from'./model/aichatconversation.js';import{getTranslation as _0x4c6255}from'../aicore/utils/common-translations.js';import{AIModels as _0x59ddb9}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x32eff2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1ddd38,DATA_ID_MODEL_ATTRIBUTE as _0x32dad1}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x45c42c,getOperationsFromReply as _0x21cc2f}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2a9ba5,getMinimalSelection as _0x41529b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x44e3c8,_DetachOperation as _0x5d7728}from'ckeditor5/src/engine.js';import{findOne as _0x3befcd,getAttribute as _0x30b3eb,serialize as _0x406c91,Document as _0x1194ec,findByAttribute as _0x21f51d}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x49a9ee{[_0x1f9a5f(0x241)];[_0x1f9a5f(0x25f)];[_0x1f9a5f(0x2bf)];[_0x1f9a5f(0x1b3)];[_0x1f9a5f(0x17f)];[_0x1f9a5f(0x293)]=new Map();[_0x1f9a5f(0x1dd)]=null;[_0x1f9a5f(0x1e5)];static get[_0x1f9a5f(0x211)](){return[_0x2a5752,_0x1ddd38];}static get[_0x1f9a5f(0x2c7)](){const _0x24082c=_0x1f9a5f;return _0x24082c(0x181);}static get[_0x1f9a5f(0x1e6)](){return!0x0;}static get[_0x1f9a5f(0x25b)](){return!0x0;}[_0x1f9a5f(0x230)](){const _0x5e1cf5=_0x1f9a5f;this[_0x5e1cf5(0x1e5)]=new _0x275ff4(this[_0x5e1cf5(0x190)][_0x5e1cf5(0x1df)]),this[_0x5e1cf5(0x1e5)][_0x5e1cf5(0x179)](),this[_0x5e1cf5(0x25f)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x1d4)),this[_0x5e1cf5(0x2bf)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x296)),this[_0x5e1cf5(0x241)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x24e)),this[_0x5e1cf5(0x1b3)]=new _0x59ddb9({'connector':this[_0x5e1cf5(0x25f)],'config':this[_0x5e1cf5(0x190)][_0x5e1cf5(0x29d)][_0x5e1cf5(0x268)](_0x5e1cf5(0x18f)),'locale':this[_0x5e1cf5(0x190)][_0x5e1cf5(0x1df)]});const _0x44b88d=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x187));this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2ee),()=>{const _0x18b01c=_0x5e1cf5;this[_0x18b01c(0x184)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1ae),(_0x511ff6,_0x4ec71e)=>{const _0x11806d=_0x5e1cf5;this[_0x11806d(0x261)]({'userMessage':_0x4ec71e});}),this[_0x5e1cf5(0x180)](_0x44b88d,_0x5e1cf5(0x1bc),(_0x2cec67,_0x170367)=>{const _0x41c6c9=_0x5e1cf5;this[_0x41c6c9(0x186)](_0x170367);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x227),()=>{const _0x41bdea=_0x5e1cf5;_0x44b88d[_0x41bdea(0x252)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x260),async()=>{const _0x81761c=_0x5e1cf5;await this[_0x81761c(0x2bc)](),await this[_0x81761c(0x2cd)](),this[_0x81761c(0x286)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2f7),()=>{const _0x5e32c9=_0x5e1cf5;this[_0x5e32c9(0x1d8)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1a7),(_0x78d4df,_0x3b7633)=>{const _0x1956d4=_0x5e1cf5;this[_0x1956d4(0x1ea)]?.[_0x1956d4(0x195)](Array[_0x1956d4(0x19c)](_0x3b7633));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x256),(_0x5d9662,_0x2a7a04)=>{const _0x199032=_0x5e1cf5;this[_0x199032(0x1ea)]?.[_0x199032(0x256)](_0x2a7a04);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x170),(_0x3d91d0,_0xd9adfe)=>{const _0x398e40=_0x5e1cf5;_0xd9adfe[_0x398e40(0x2ca)](this[_0x398e40(0x190)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1a2),(_0x507fa5,_0x3461d8)=>{const _0x3c7419=_0x5e1cf5;this[_0x3c7419(0x1ea)]?.[_0x3c7419(0x1a2)](_0x3461d8[_0x3c7419(0x2dc)],_0x3461d8[_0x3c7419(0x1f1)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x26c),(_0xcb96cd,_0x37fccd)=>{const _0x727a57=_0x5e1cf5;this[_0x727a57(0x2f4)](_0x37fccd);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x269),(_0x493440,_0xc32a5c)=>{const _0x495bb2=_0x5e1cf5;this[_0x495bb2(0x1ea)]?.[_0x495bb2(0x269)](_0xc32a5c[_0x495bb2(0x2f6)],_0xc32a5c[_0x495bb2(0x2bd)],_0xc32a5c[_0x495bb2(0x297)]);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x23f),()=>{const _0x43f1cf=_0x5e1cf5;this[_0x43f1cf(0x1b2)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x262),()=>{const _0x37ceff=_0x5e1cf5;this[_0x37ceff(0x2c1)]();}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x25e),(_0x48a18a,_0x309524)=>{const _0x3a2bc1=_0x5e1cf5;this[_0x3a2bc1(0x1ea)]?.[_0x3a2bc1(0x2ec)](_0x309524);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x2a2),(_0x35809b,{replyId:_0x5c0d8d})=>{const _0x20f7fb=_0x5e1cf5;console[_0x20f7fb(0x1f9)](_0x20f7fb(0x2c2),_0x5c0d8d);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1d1),(_0x5592dc,{replyId:_0x1c38bc})=>{const _0x4a64df=_0x5e1cf5;console[_0x4a64df(0x1f9)](_0x4a64df(0x17e),_0x1c38bc);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1fc),(_0x51a836,_0x4edb21)=>{const _0x117fdc=_0x5e1cf5;this[_0x117fdc(0x174)](_0x4edb21);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x24a),(_0x2bb579,{replyId:_0x3cd350,partIndex:_0x3ccc23})=>{const _0x5e9406=_0x5e1cf5;this[_0x5e9406(0x197)]=this[_0x5e9406(0x2bf)][_0x5e9406(0x27b)],this[_0x5e9406(0x223)](_0x3cd350,_0x3ccc23);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1e4),(_0x5f263e,{replyId:_0x47ef66,partIndex:_0x3bd587})=>{const _0x4cf946=_0x5e1cf5,_0x1bf0a6=this[_0x4cf946(0x1fd)](_0x47ef66,_0x3bd587);_0x1bf0a6&&_0x4cf946(0x1f5)!=_0x1bf0a6[_0x4cf946(0x1b1)][_0x4cf946(0x22b)][_0x4cf946(0x19a)]&&this[_0x4cf946(0x241)][_0x4cf946(0x299)]([_0x1bf0a6[_0x4cf946(0x1b1)]],_0x4cf946(0x2f1));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1c6),()=>{const _0x48766f=_0x5e1cf5;this[_0x48766f(0x241)][_0x48766f(0x298)](_0x48766f(0x2f1));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x288),(_0x294b99,_0x29d0cb)=>{const _0x10621f=_0x5e1cf5;this[_0x10621f(0x241)][_0x10621f(0x298)](_0x10621f(0x2f1)),this[_0x10621f(0x2d6)](_0x29d0cb);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x28b),async(_0x249c16,{replyId:_0x71d6a7,showDiff:_0xc987a7})=>{const _0x8be36c=_0x5e1cf5,{reply:_0x42e7fb}=this[_0x8be36c(0x2ef)](_0x71d6a7),_0x1893c4=_0x42e7fb[_0x8be36c(0x28c)]({'showDiff':_0xc987a7});await this[_0x8be36c(0x2bf)][_0x8be36c(0x1ce)]({'id':_0x42e7fb['id'],'parts':_0x1893c4,'renderingStrategy':_0x8be36c(0x17d)});}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x2bf)],_0x5e1cf5(0x1ab),(_0x189443,{replyId:_0x25b25f,partIndex:_0x2480ed})=>{const _0x2bf7e2=_0x5e1cf5;this[_0x2bf7e2(0x27a)]({'replyId':_0x25b25f,'partIndex':_0x2480ed}),this[_0x2bf7e2(0x241)][_0x2bf7e2(0x298)](_0x2bf7e2(0x2f1));}),this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x232)](_0x5e1cf5(0x210))&&(this[_0x5e1cf5(0x17f)]=this[_0x5e1cf5(0x190)][_0x5e1cf5(0x18c)][_0x5e1cf5(0x268)](_0x5e1cf5(0x210)),this[_0x5e1cf5(0x1fa)](_0x5e1cf5(0x197),!0x1),this[_0x5e1cf5(0x17f)][_0x5e1cf5(0x21a)](_0x5e1cf5(0x27b))['to'](this,_0x5e1cf5(0x197)),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x28b),()=>{const _0x34e65d=_0x5e1cf5,{replyId:_0x1f8601,partIndex:_0x3ca6e4}=this[_0x34e65d(0x1dd)];this[_0x34e65d(0x197)]=!this[_0x34e65d(0x197)];const {reply:_0x3d4977}=this[_0x34e65d(0x2ef)](_0x1f8601),_0x229540=_0x3d4977[_0x34e65d(0x28c)]({'showDiff':this[_0x34e65d(0x197)],'groupIndex':_0x3ca6e4});this[_0x34e65d(0x17f)][_0x34e65d(0x1bd)]({'part':_0x229540[0x0],'renderingStrategy':_0x34e65d(0x17d),'keepErrors':!0x0});}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x288),()=>{const _0x24ca32=_0x5e1cf5,{replyId:_0x5970ee,partIndex:_0x40f3ac}=this[_0x24ca32(0x1dd)];this[_0x24ca32(0x2d6)]({'replyId':_0x5970ee,'partIndex':_0x40f3ac}),this[_0x24ca32(0x17f)][_0x24ca32(0x23c)](_0x24ca32(0x28d));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x1fc),()=>{const _0x42a6ae=_0x5e1cf5,{replyId:_0x4858a0,partIndex:_0x6b0d1e}=this[_0x42a6ae(0x1dd)];this[_0x42a6ae(0x174)]({'replyId':_0x4858a0,'partIndex':_0x6b0d1e}),this[_0x42a6ae(0x17f)][_0x42a6ae(0x23c)](_0x42a6ae(0x28d));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x1ab),()=>{const _0x4187fb=_0x5e1cf5,{replyId:_0x41bec6,partIndex:_0x3adfc0}=this[_0x4187fb(0x1dd)];this[_0x4187fb(0x27a)]({'replyId':_0x41bec6,'partIndex':_0x3adfc0}),this[_0x4187fb(0x17f)][_0x4187fb(0x23c)](_0x4187fb(0x2b9));}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x276),()=>{const _0x2399f0=_0x5e1cf5,{replyId:_0x3362de,partIndex:_0x85c47e}=this[_0x2399f0(0x1dd)],_0x5db153=this[_0x2399f0(0x29f)](_0x3362de,_0x85c47e,_0x2399f0(0x1d3));null!==_0x5db153&&this[_0x2399f0(0x223)](_0x3362de,_0x5db153);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x2c6),()=>{const _0x31c18a=_0x5e1cf5,{replyId:_0x4849b9,partIndex:_0x2f4277}=this[_0x31c18a(0x1dd)],_0x587785=this[_0x31c18a(0x29f)](_0x4849b9,_0x2f4277,_0x31c18a(0x20e));null!==_0x587785&&this[_0x31c18a(0x223)](_0x4849b9,_0x587785);}),this[_0x5e1cf5(0x180)](this[_0x5e1cf5(0x17f)],_0x5e1cf5(0x177),(_0x35a857,{id:_0xb608e7})=>{const _0x538a1a=_0x5e1cf5;if(_0x538a1a(0x1e3)!==_0xb608e7)return;const {replyId:_0x1bb8da,partIndex:_0x4ebe73}=this[_0x538a1a(0x1dd)];this[_0x538a1a(0x1dd)]=null,this[_0x538a1a(0x2bf)][_0x538a1a(0x18d)]({'id':_0x1bb8da,'index':_0x4ebe73,'isActive':!0x1});}));}async[_0x1f9a5f(0x19d)](){const _0x2f7672=_0x1f9a5f;this[_0x2f7672(0x190)]instanceof _0x45ef52?this[_0x2f7672(0x22e)](this[_0x2f7672(0x190)]):this[_0x2f7672(0x180)](this[_0x2f7672(0x190)][_0x2f7672(0x26e)],_0x2f7672(0x2d7),(_0x31732f,_0x1c0587)=>{const _0x508140=_0x2f7672;_0x1c0587['on'](_0x508140(0x233),()=>{const _0x1db652=_0x508140;this[_0x1db652(0x22e)](_0x1c0587);});});const _0x3c4208=this[_0x2f7672(0x190)][_0x2f7672(0x29d)][_0x2f7672(0x268)](_0x2f7672(0x244));let _0x30968e=_0x3c4208;if(_0x2f7672(0x287)!=_0x3c4208||(_0x30968e=await this[_0x2f7672(0x29b)](),_0x30968e))return _0x2f7672(0x213)==_0x30968e?this[_0x2f7672(0x184)]():this[_0x2f7672(0x26b)](_0x30968e);}async[_0x1f9a5f(0x2e9)](){const _0x5b5849=_0x1f9a5f;return await this[_0x5b5849(0x2bc)](),this[_0x5b5849(0x1e5)][_0x5b5849(0x1b6)](),super[_0x5b5849(0x2e9)]();}[_0x1f9a5f(0x174)](_0x788af8){const _0x266615=_0x1f9a5f,_0x408893=_0x32eff2(this[_0x266615(0x190)]);if(!_0x408893[_0x266615(0x18c)][_0x266615(0x232)](_0x266615(0x274)))throw new _0x3295b8(_0x266615(0x20b),null);const _0x56c4a7=this[_0x266615(0x190)][_0x266615(0x18c)][_0x266615(0x268)](_0x266615(0x294)),{reply:_0x58af8c,interaction:_0x276a26}=this[_0x266615(0x2ef)](_0x788af8[_0x266615(0x206)]),_0x58ecc8=this[_0x266615(0x1fd)](_0x788af8[_0x266615(0x206)],_0x788af8[_0x266615(0x237)]),_0x1d3836=void 0x0!==_0x788af8[_0x266615(0x237)]?[_0x58af8c[_0x266615(0x208)][_0x788af8[_0x266615(0x237)]]]:_0x58af8c[_0x266615(0x208)][_0x266615(0x20d)](_0x185a4f=>_0x266615(0x1af)==_0x185a4f[_0x266615(0x173)]),_0xdfa7ac=_0x1d3836[_0x266615(0x282)](_0x30433f=>_0x58af8c[_0x266615(0x208)][_0x266615(0x2de)](_0x30433f));if(!_0x58ecc8||_0x266615(0x1f5)==_0x58ecc8[_0x266615(0x1b1)][_0x266615(0x22b)][_0x266615(0x19a)])return void _0xdfa7ac[_0x266615(0x2ea)](_0x45a969=>_0x58af8c[_0x266615(0x182)](_0x45a969,_0x266615(0x215)));_0xdfa7ac[_0x266615(0x2ea)](_0x5af45a=>_0x58af8c[_0x266615(0x182)](_0x5af45a,_0x266615(0x28d)));const _0x92b5d7=_0x21cc2f({'editor':_0x408893,'reply':_0x58af8c,'interaction':_0x276a26,'groups':_0x1d3836,'transform':!0x0,'documentCompare':_0x56c4a7,'documentCompareOptions':{'anchor':_0x266615(0x1b7),'markDeletions':!0x0}});let _0x54df34;_0x58ecc8&&this[_0x266615(0x2af)](_0x58ecc8[_0x266615(0x1b1)]),_0x408893[_0x266615(0x26f)][_0x266615(0x235)](_0x58cae9=>{const _0x5e841c=_0x266615;_0x54df34=_0x58cae9[_0x5e841c(0x2f0)],_0x408893[_0x5e841c(0x18c)][_0x5e841c(0x268)](_0x5e841c(0x185))[_0x5e841c(0x1cf)](_0x92b5d7),this[_0x5e841c(0x241)][_0x5e841c(0x298)](_0x5e841c(0x2f1));}),this[_0x266615(0x293)][_0x266615(0x1fa)](_0x54df34,{'interactionId':_0x276a26['id'],'replyId':_0x58af8c['id'],'indexes':_0xdfa7ac[_0x266615(0x2c8)]()}),this[_0x266615(0x1a3)](_0x58af8c);}[_0x1f9a5f(0x2d6)](_0x1970f5){const _0x548f13=_0x1f9a5f,_0x325d56=_0x32eff2(this[_0x548f13(0x190)]),_0x4c2b6c=this[_0x548f13(0x190)][_0x548f13(0x18c)][_0x548f13(0x268)](_0x1ddd38),{reply:_0x55f4b9,interaction:_0x2ed348}=this[_0x548f13(0x2ef)](_0x1970f5[_0x548f13(0x206)]),_0x4e6db4=this[_0x548f13(0x1fd)](_0x1970f5[_0x548f13(0x206)],_0x1970f5[_0x548f13(0x237)]),_0x31b463=void 0x0!==_0x1970f5[_0x548f13(0x237)]?[_0x55f4b9[_0x548f13(0x208)][_0x1970f5[_0x548f13(0x237)]]]:_0x55f4b9[_0x548f13(0x208)][_0x548f13(0x20d)](_0x22e3d1=>_0x548f13(0x1af)==_0x22e3d1[_0x548f13(0x173)]),_0x5a66dc=_0x31b463[_0x548f13(0x282)](_0x1ba36e=>_0x55f4b9[_0x548f13(0x208)][_0x548f13(0x2de)](_0x1ba36e));if(!_0x4e6db4||_0x548f13(0x1f5)==_0x4e6db4[_0x548f13(0x1b1)][_0x548f13(0x22b)][_0x548f13(0x19a)])return void _0x5a66dc[_0x548f13(0x2ea)](_0x54dbfa=>_0x55f4b9[_0x548f13(0x182)](_0x54dbfa,_0x548f13(0x215)));_0x5a66dc[_0x548f13(0x2ea)](_0x60f3f1=>_0x55f4b9[_0x548f13(0x182)](_0x60f3f1,_0x548f13(0x28d)));const _0x1fcda0=_0x21cc2f({'editor':_0x325d56,'reply':_0x55f4b9,'interaction':_0x2ed348,'groups':_0x31b463,'transform':!0x0,'documentCompare':_0x4c2b6c,'documentCompareOptions':{'anchor':_0x548f13(0x1b7),'markDeletions':!0x1}});let _0x87e454;_0x4e6db4&&this[_0x548f13(0x2af)](_0x4e6db4[_0x548f13(0x1b1)]),_0x325d56[_0x548f13(0x26f)][_0x548f13(0x235)](_0x1df1fa=>{const _0xc1c6cc=_0x548f13;_0x87e454=_0x1df1fa[_0xc1c6cc(0x2f0)];for(const _0x57ba6d of _0x1fcda0)_0x57ba6d[_0xc1c6cc(0x2bb)]=_0x325d56[_0xc1c6cc(0x26f)][_0xc1c6cc(0x2d8)][_0xc1c6cc(0x265)],_0x45c42c(_0x325d56,_0x57ba6d),_0x1df1fa[_0xc1c6cc(0x2f0)][_0xc1c6cc(0x266)](_0x57ba6d),_0x325d56[_0xc1c6cc(0x26f)][_0xc1c6cc(0x2b2)](_0x57ba6d);}),this[_0x548f13(0x293)][_0x548f13(0x1fa)](_0x87e454,{'interactionId':_0x2ed348['id'],'replyId':_0x55f4b9['id'],'indexes':_0x5a66dc[_0x548f13(0x2c8)]()}),this[_0x548f13(0x1a3)](_0x55f4b9);}[_0x1f9a5f(0x27a)](_0x2af3de){const _0x2b436b=_0x1f9a5f,{reply:_0x2c13e8}=this[_0x2b436b(0x2ef)](_0x2af3de[_0x2b436b(0x206)]);_0x2c13e8[_0x2b436b(0x182)](_0x2af3de[_0x2b436b(0x237)],_0x2b436b(0x2b9));}[_0x1f9a5f(0x223)](_0x8647f3,_0x6ced42){const _0x3939bf=_0x1f9a5f;if(!this[_0x3939bf(0x17f)])return;const {reply:_0x3c2e50}=this[_0x3939bf(0x2ef)](_0x8647f3),_0x3cb257=_0x3c2e50[_0x3939bf(0x28c)]({'showDiff':this[_0x3939bf(0x197)]});let _0x330aba,_0x4bfa61;if(void 0x0!==_0x6ced42?(_0x4bfa61=_0x3cb257[_0x3939bf(0x228)](_0x46fa19=>_0x46fa19[_0x3939bf(0x1d5)]==_0x6ced42),_0x330aba=_0x4bfa61?.[_0x3939bf(0x1d5)]):(_0x4bfa61=_0x3cb257[0x0],_0x330aba=_0x4bfa61[_0x3939bf(0x1d5)]),this[_0x3939bf(0x1dd)]?.[_0x3939bf(0x206)]==_0x8647f3&&this[_0x3939bf(0x1dd)]?.[_0x3939bf(0x237)]==_0x330aba)return;const _0x251f90=this[_0x3939bf(0x24d)](_0x8647f3,_0x3c2e50,_0x4bfa61);if(!_0x251f90)return void this[_0x3939bf(0x17f)][_0x3939bf(0x1c5)]();this[_0x3939bf(0x1dd)]={'replyId':_0x8647f3,'partIndex':_0x330aba},this[_0x3939bf(0x2af)](_0x251f90,!0x0);const _0x37dc25=this[_0x3939bf(0x29f)](_0x8647f3,_0x330aba,_0x3939bf(0x1d3));this[_0x3939bf(0x17f)][_0x3939bf(0x1bd)]({'part':_0x4bfa61,'renderingStrategy':_0x3939bf(0x17d)}),this[_0x3939bf(0x17f)][_0x3939bf(0x2b0)]({'index':_0x330aba,'title':_0x4c6255(this[_0x3939bf(0x190)][_0x3939bf(0x1df)],_0x3939bf(0x2d5),(_0x330aba+0x1)[_0x3939bf(0x26d)]()),'showRotator':null!==_0x37dc25,'ranges':[_0x251f90],'areActionsDisabled':_0x3c2e50[_0x3939bf(0x258)]}),this[_0x3939bf(0x17f)][_0x3939bf(0x23c)](_0x3939bf(0x1af)),this[_0x3939bf(0x2bf)][_0x3939bf(0x1f7)](_0x8647f3,_0x330aba),this[_0x3939bf(0x2bf)][_0x3939bf(0x18d)]({'id':_0x8647f3,'index':_0x330aba,'isActive':!0x0});}[_0x1f9a5f(0x29f)](_0x34e10b,_0x52f1ca,_0x4a4032){const _0x2e8260=_0x1f9a5f,{reply:_0x5ca92f}=this[_0x2e8260(0x2ef)](_0x34e10b),_0x36cbb1=_0x5ca92f[_0x2e8260(0x28c)]({'showDiff':this[_0x2e8260(0x197)]});if(0x1==_0x36cbb1[_0x2e8260(0x2e8)])return null;const _0x53037f=_0x36cbb1[_0x2e8260(0x2eb)](_0x321fde=>_0x321fde[_0x2e8260(0x1d5)]==_0x52f1ca),_0x580e25=_0x2e8260(0x1d3)==_0x4a4032?0x1:-0x1;let _0x4a53a9=_0x36cbb1['at']((_0x53037f+_0x580e25)%_0x36cbb1[_0x2e8260(0x2e8)])[_0x2e8260(0x1d5)],_0xe7bfb5=_0x36cbb1[_0x4a53a9];for(;!this[_0x2e8260(0x24d)](_0x34e10b,_0x5ca92f,_0xe7bfb5);){if(_0x4a53a9=_0x36cbb1['at']((_0x4a53a9+_0x580e25)%_0x36cbb1[_0x2e8260(0x2e8)])[_0x2e8260(0x1d5)],_0x4a53a9===_0x53037f)return null;_0xe7bfb5=_0x36cbb1[_0x4a53a9];}return _0x4a53a9;}[_0x1f9a5f(0x24d)](_0x17f7e5,_0x5ae8c7,_0x5eeb47){const _0x1435be=_0x1f9a5f,_0x49021c=_0x5ae8c7[_0x1435be(0x208)];if(!_0x5eeb47[_0x1435be(0x176)])return null;const _0x46dcf1=_0x49021c[_0x1435be(0x228)](_0xcfb723=>_0xcfb723[_0x1435be(0x1d5)]==_0x5eeb47[_0x1435be(0x1d5)]);if(_0x1435be(0x1af)!==_0x46dcf1?.[_0x1435be(0x173)])return null;const _0x2c83c6=this[_0x1435be(0x1fd)](_0x17f7e5,_0x5eeb47[_0x1435be(0x1d5)]);if(!_0x2c83c6)return null;const {range:_0x1747af,currentIndex:_0x5d64cf}=_0x2c83c6;return _0x1435be(0x1f5)==_0x1747af[_0x1435be(0x22b)][_0x1435be(0x19a)]?(_0x5ae8c7[_0x1435be(0x182)](_0x5d64cf,_0x1435be(0x215)),null):_0x2c83c6[_0x1435be(0x1b1)];}[_0x1f9a5f(0x1fd)](_0x4684c5,_0x3c723f){const _0x3aff72=_0x1f9a5f,_0x44c414=_0x32eff2(this[_0x3aff72(0x190)]),{reply:_0xc9027e,interaction:_0x333694}=this[_0x3aff72(0x2ef)](_0x4684c5),_0x2b7818=_0xc9027e[_0x3aff72(0x208)][_0x3aff72(0x20d)](_0x58f3fe=>_0x3aff72(0x1af)==_0x58f3fe[_0x3aff72(0x173)]),_0x180436=_0x2b7818[_0x3aff72(0x282)](_0x24b26b=>_0xc9027e[_0x3aff72(0x208)][_0x3aff72(0x2de)](_0x24b26b));void 0x0===_0x3c723f&&(_0x3c723f=_0x180436[0x0]);const _0x5af85=_0x180436[_0x3aff72(0x2de)](_0x3c723f);if(-0x1==_0x5af85)return null;const _0x39f6b0=_0x2b7818[_0x5af85],_0x3d9b02=new _0x1194ec([]),_0x3b6ea7=new _0x1194ec([]);for(const _0x2fc486 of _0x39f6b0[_0x3aff72(0x1aa)])if(_0x3aff72(0x2e7)!=_0x2fc486[_0x3aff72(0x289)]&&_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x2fc486[_0x3aff72(0x2d2)][_0x3aff72(0x2a7)](!0x0)),_0x3aff72(0x213)!=_0x2fc486[_0x3aff72(0x289)]){const _0xb8e3ad=_0x3befcd(_0x3070ea=>_0x30b3eb(_0x3070ea,_0x3aff72(0x224))==_0x2fc486['id'],_0xc9027e[_0x3aff72(0x2b6)],!0x0);_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0xb8e3ad[_0x3aff72(0x2a7)](!0x0));}if(0x0==_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2e8)]){if(_0x39f6b0[_0x3aff72(0x1aa)][0x0][_0x3aff72(0x16d)]){const _0x257e13=_0x21f51d(_0x3aff72(0x224),_0x39f6b0[_0x3aff72(0x1aa)][0x0][_0x3aff72(0x16d)],_0xc9027e[_0x3aff72(0x2b6)]);_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x1c8)](_0x257e13[_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x1c8)](_0x257e13[_0x3aff72(0x2a7)](!0x0)),_0x257e13[_0x3aff72(0x2f2)]&&(_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x257e13[_0x3aff72(0x2f2)][_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x257e13[_0x3aff72(0x2f2)][_0x3aff72(0x2a7)](!0x0)));}else{const _0x265464=_0xc9027e[_0x3aff72(0x2b6)][_0x3aff72(0x1ad)][0x0];if(!_0x265464)return null;_0x3d9b02[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x265464[_0x3aff72(0x2a7)](!0x0)),_0x3b6ea7[_0x3aff72(0x1ad)][_0x3aff72(0x2a3)](_0x265464[_0x3aff72(0x2a7)](!0x0));}}const _0x16e192=_0x333694[_0x3aff72(0x18a)](),_0x34b174=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x16e192[_0x3aff72(0x193)]),_0x5dd68d=_0x406c91(_0x3d9b02),_0x5f3c84=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x5dd68d),_0x27acce=_0x44c414[_0x3aff72(0x192)][_0x3aff72(0x23d)](_0x5dd68d),_0x36467c=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x279)](_0x5f3c84,0x0),_0x4c88e4=_0x406c91(_0x3b6ea7),_0x13c16a={'anchor':_0x36467c,'markDeletions':!0x1},_0x663436=_0x44c414[_0x3aff72(0x18c)][_0x3aff72(0x268)](_0x1ddd38)[_0x3aff72(0x245)](_0x5dd68d,_0x4c88e4,_0x13c16a)[_0x3aff72(0x1c2)]();if(!_0x663436[_0x3aff72(0x2e8)])return null;_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x235)](_0x2ad223=>{const _0x446558=_0x3aff72;for(const _0x3f1c21 of _0x663436)if(_0x446558(0x17c)==_0x3f1c21[_0x446558(0x289)]){const _0x3329aa=_0x3f1c21[_0x446558(0x2b1)],_0x2b792c=_0x3f1c21[_0x446558(0x263)],_0x1ff0e9=new _0x5d7728(_0x3329aa,_0x2b792c);_0x2ad223[_0x446558(0x2f0)][_0x446558(0x266)](_0x1ff0e9),_0x44c414[_0x446558(0x26f)][_0x446558(0x2b2)](_0x1ff0e9);}else _0x446558(0x2e1)!==_0x3f1c21[_0x446558(0x289)]&&(_0x3f1c21[_0x446558(0x2bb)]=null,_0x3f1c21[_0x446558(0x16f)]=!0x1,_0x2ad223[_0x446558(0x2f0)][_0x446558(0x266)](_0x3f1c21),_0x44c414[_0x446558(0x26f)][_0x446558(0x2b2)](_0x3f1c21));});const _0x3a91ec=_0x41529b(_0x44c414,_0x663436,_0x5f3c84);_0x2a9ba5(_0x44c414[_0x3aff72(0x26f)],_0x3a91ec);const _0x321760=_0x3a91ec[_0x3aff72(0x27e)]()[_0x3aff72(0x251)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x2e0abb=_0x3a91ec[_0x3aff72(0x27e)]()[_0x3aff72(0x25a)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x3f7127=[];let _0x4497a6=_0x5f3c84,_0x150276=_0x27acce;for(let _0x741a54=0x0;_0x741a54<_0x2e0abb[_0x3aff72(0x2e8)];_0x741a54++){const _0x459d0c=_0x4497a6[_0x3aff72(0x2c0)]-_0x2e0abb[_0x741a54];_0x3f7127[_0x741a54]=_0x150276[_0x3aff72(0x2c0)]-_0x459d0c,_0x4497a6=_0x4497a6[_0x3aff72(0x202)](_0x2e0abb[_0x741a54]),_0x150276=_0x150276[_0x3aff72(0x202)](_0x3f7127[_0x741a54]);}const _0x269da7=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x264)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x27acce,_0x321760),_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x27acce,_0x3f7127)),_0x9cb1f5=_0x27acce[_0x3aff72(0x28a)](0x0)[_0x3aff72(0x207)](_0x32dad1),_0x742085=Array[_0x3aff72(0x19c)](_0x34b174[_0x3aff72(0x238)]())[_0x3aff72(0x228)](_0x4f3438=>_0x4f3438[_0x3aff72(0x207)](_0x32dad1)==_0x9cb1f5)[_0x3aff72(0x191)](),_0x11b882=_0x269da7[_0x3aff72(0x251)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)](),_0x3515a8=_0x269da7[_0x3aff72(0x25a)][_0x3aff72(0x2c5)][_0x3aff72(0x2c8)]();_0x11b882[0x0]=_0x742085[0x0]+_0x11b882[0x0],_0x3515a8[0x0]=_0x742085[0x0]+_0x3515a8[0x0];let _0x2aa53b=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x264)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x243)](),_0x11b882),_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x1c3)](_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x243)](),_0x3515a8));const _0x346e2f=_0x44c414[_0x3aff72(0x26f)][_0x3aff72(0x2d8)][_0x3aff72(0x1e8)][_0x3aff72(0x1c2)](_0x16e192[_0x3aff72(0x265)]);for(const _0x1d1c1b of _0x346e2f)_0x2aa53b=_0x44e3c8[_0x3aff72(0x1dc)](_0x2aa53b[_0x3aff72(0x198)](_0x1d1c1b));return{'range':_0x2aa53b,'currentIndex':_0x3c723f};}[_0x1f9a5f(0x22e)](_0x701f55){const _0x30118d=_0x1f9a5f;if(!_0x701f55[_0x30118d(0x18c)][_0x30118d(0x232)](_0x30118d(0x201)))return;const _0x24fb50=_0x701f55[_0x30118d(0x23a)][_0x30118d(0x268)](_0x30118d(0x1a0)),_0x21e3d3=_0x701f55[_0x30118d(0x23a)][_0x30118d(0x268)](_0x30118d(0x1cc));this[_0x30118d(0x180)](_0x24fb50,_0x30118d(0x1bb),(_0x177745,_0x254b20,_0x14285f)=>{const _0x12b3de=_0x30118d,_0x583428=this[_0x12b3de(0x293)][_0x12b3de(0x268)](_0x254b20);if(!_0x583428)return;const _0x2db403=this[_0x12b3de(0x1ea)][_0x12b3de(0x1ff)](_0x583428[_0x12b3de(0x1e2)])[_0x12b3de(0x1c4)](_0x583428[_0x12b3de(0x206)]);_0x583428[_0x12b3de(0x189)][_0x12b3de(0x2ea)](_0x16c3c0=>_0x2db403[_0x12b3de(0x182)](_0x16c3c0,_0x12b3de(0x1af))),this[_0x12b3de(0x293)][_0x12b3de(0x225)](_0x254b20),this[_0x12b3de(0x293)][_0x12b3de(0x1fa)](_0x14285f,_0x583428);}),this[_0x30118d(0x180)](_0x21e3d3,_0x30118d(0x1bb),(_0x57a14f,_0x21adb2,_0x51dbf2)=>{const _0x244d04=_0x30118d,_0x276b0c=this[_0x244d04(0x293)][_0x244d04(0x268)](_0x21adb2);if(!_0x276b0c)return;const _0x1923b7=this[_0x244d04(0x1ea)][_0x244d04(0x1ff)](_0x276b0c[_0x244d04(0x1e2)])[_0x244d04(0x1c4)](_0x276b0c[_0x244d04(0x206)]);_0x276b0c[_0x244d04(0x189)][_0x244d04(0x2ea)](_0x42a5df=>_0x1923b7[_0x244d04(0x182)](_0x42a5df,_0x244d04(0x28d))),this[_0x244d04(0x293)][_0x244d04(0x225)](_0x21adb2),this[_0x244d04(0x293)][_0x244d04(0x1fa)](_0x51dbf2,_0x276b0c);});}async[_0x1f9a5f(0x26b)](_0x147baf){const _0x26d40f=_0x1f9a5f;this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x232)](_0x26d40f(0x210))&&this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x268)](_0x26d40f(0x210))[_0x26d40f(0x1c5)](),(this[_0x26d40f(0x190)][_0x26d40f(0x18c)][_0x26d40f(0x268)](_0x22cf14)[_0x26d40f(0x255)][_0x26d40f(0x257)](_0x26d40f(0x17b)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1ed)](_0x26d40f(0x17d)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1c9)](!0x0),await this[_0x26d40f(0x2bc)]());try{await this[_0x26d40f(0x25f)][_0x26d40f(0x2df)](_0x147baf)[_0x26d40f(0x21e)](),await this[_0x26d40f(0x184)](_0x147baf),this[_0x26d40f(0x2ad)]('\x20'),await this[_0x26d40f(0x1ea)][_0x26d40f(0x1a4)](_0x147baf,this[_0x26d40f(0x241)][_0x26d40f(0x240)]),this[_0x26d40f(0x1ea)][_0x26d40f(0x249)]()&&this[_0x26d40f(0x1d8)]();}catch(_0x49abd2){this[_0x26d40f(0x2bf)][_0x26d40f(0x2e4)]({'errorMessage':_0x4c6255(this[_0x26d40f(0x190)][_0x26d40f(0x1df)],_0x26d40f(0x1ca)),'id':_0x147baf}),this[_0x26d40f(0x292)](new _0x3295b8(_0x26d40f(0x1c7),this,{'error':_0x49abd2}));}finally{this[_0x26d40f(0x2bf)][_0x26d40f(0x1a1)](),this[_0x26d40f(0x2bf)][_0x26d40f(0x1ed)](_0x26d40f(0x2ae)),this[_0x26d40f(0x2bf)][_0x26d40f(0x1c9)](!0x1);}}async[_0x1f9a5f(0x29b)](){const _0x2b2183=_0x1f9a5f,_0x20d986=this[_0x2b2183(0x25f)][_0x2b2183(0x1f6)](this[_0x2b2183(0x27f)](),{'limit':0x1,'sortBy':_0x2b2183(0x21c)});try{const _0x30b5cd=await _0x20d986[_0x2b2183(0x254)]();return _0x30b5cd[_0x2b2183(0x2e8)]?_0x30b5cd[0x0]['id']:_0x2b2183(0x213);}catch(_0x2bd996){return this[_0x2b2183(0x2bf)][_0x2b2183(0x2e4)]({'errorMessage':_0x4c6255(this[_0x2b2183(0x190)][_0x2b2183(0x1df)],_0x2b2183(0x1ca)),'id':_0x4dab49()}),this[_0x2b2183(0x292)](new _0x3295b8(_0x2b2183(0x2aa),this,{'error':_0x2bd996})),this[_0x2b2183(0x2bf)][_0x2b2183(0x1c9)](!0x1),this[_0x2b2183(0x2bf)][_0x2b2183(0x2a1)](),null;}}[_0x1f9a5f(0x234)](_0x42de2f){const _0x1c3acd=_0x1f9a5f;this[_0x1c3acd(0x1ea)]['id']===_0x42de2f&&this[_0x1c3acd(0x184)]();}[_0x1f9a5f(0x1d8)](){const _0x6aeb55=_0x1f9a5f;this[_0x6aeb55(0x1ea)]?.[_0x6aeb55(0x2e2)](_0x4c6255(this[_0x6aeb55(0x190)][_0x6aeb55(0x1df)],_0x6aeb55(0x281)));}async[_0x1f9a5f(0x21d)](){const _0xefefe3=_0x1f9a5f,_0x20356b=this[_0xefefe3(0x241)][_0xefefe3(0x2d0)]();this[_0xefefe3(0x1ea)]?.[_0xefefe3(0x2a0)](_0x20356b),this[_0xefefe3(0x1d8)]();}[_0x1f9a5f(0x286)](){const _0x1fb620=_0x1f9a5f;this[_0x1fb620(0x1ea)]?.[_0x1fb620(0x277)]();}[_0x1f9a5f(0x172)](){const _0x2591ed=_0x1f9a5f;this[_0x2591ed(0x2bf)][_0x2591ed(0x172)]();}async[_0x1f9a5f(0x2ee)](){const _0x424411=_0x1f9a5f;await this[_0x424411(0x184)]();}async[_0x1f9a5f(0x1cb)]({message:_0x31c989,attributes:_0x1ccded}){const _0x4fbdba=_0x1f9a5f;await this[_0x4fbdba(0x261)]({'userMessage':_0x31c989,'attributes':_0x1ccded});}[_0x1f9a5f(0x27f)](){const _0x3b7b4f=_0x1f9a5f,_0x5e9dd5=this[_0x3b7b4f(0x190)][_0x3b7b4f(0x29d)][_0x3b7b4f(0x268)](_0x3b7b4f(0x19e));if(!_0x5e9dd5)throw new _0x3295b8(_0x3b7b4f(0x1ba),this);return _0x5e9dd5;}async[_0x1f9a5f(0x184)](_0x2dbb5c){const _0xda3324=_0x1f9a5f;try{this[_0xda3324(0x2bf)][_0xda3324(0x1b0)](),await this[_0xda3324(0x27d)](_0x2dbb5c);}catch(_0x5dae1d){this[_0xda3324(0x2bf)][_0xda3324(0x2e4)]({'errorMessage':_0x4c6255(this[_0xda3324(0x190)][_0xda3324(0x1df)],_0xda3324(0x175)),'id':_0x2dbb5c||_0x4dab49()}),console[_0xda3324(0x1e7)](_0x5dae1d),this[_0xda3324(0x1ea)]=void 0x0,this[_0xda3324(0x2bf)][_0xda3324(0x2a1)]();}}async[_0x1f9a5f(0x27d)](_0x573b06){const _0x26958a=_0x1f9a5f;let _0x363bd6;this[_0x26958a(0x190)][_0x26958a(0x18c)][_0x26958a(0x232)](_0x26958a(0x210))&&this[_0x26958a(0x190)][_0x26958a(0x18c)][_0x26958a(0x268)](_0x26958a(0x210))[_0x26958a(0x1c5)](),_0x573b06||!this[_0x26958a(0x1ea)]?_0x363bd6=this[_0x26958a(0x190)][_0x26958a(0x29d)][_0x26958a(0x268)](_0x26958a(0x2ac)):this[_0x26958a(0x2bf)][_0x26958a(0x27c)]&&(_0x363bd6=this[_0x26958a(0x1ea)][_0x26958a(0x246)]['id']),await this[_0x26958a(0x2bc)]();const _0x5ed865=this[_0x26958a(0x27f)](),_0x53a333=_0x573b06||_0x4dab49();this[_0x26958a(0x1ea)]=new _0x1255d0({'connector':this[_0x26958a(0x25f)],'chatModels':this[_0x26958a(0x1b3)],'selectedModelId':_0x363bd6,'conversationId':_0x53a333,'group':_0x5ed865,'getEditor':()=>_0x32eff2(this[_0x26958a(0x190)]),'isFromHistory':!!_0x573b06}),this[_0x26958a(0x1ea)][_0x26958a(0x26a)](_0x26958a(0x29c),_0x26958a(0x205))['to'](this),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1a8),(_0x438967,_0xf0fe9e)=>{const _0x7a8b82=_0x26958a;this[_0x7a8b82(0x2bf)][_0x7a8b82(0x1f8)](_0xf0fe9e),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x29a)](),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x2c4)](),this[_0x7a8b82(0x2bf)][_0x7a8b82(0x21b)](),_0x573b06||(this[_0x7a8b82(0x2bf)][_0x7a8b82(0x20a)](),this[_0x7a8b82(0x1d8)]());}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x22a),(_0x20ce5b,_0x1db96a)=>{const _0x27ad7a=_0x26958a;this[_0x27ad7a(0x2bf)][_0x27ad7a(0x1be)](_0x1db96a[_0x27ad7a(0x1cd)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ec),(_0x501d28,_0x88a163)=>{const _0x36fb09=_0x26958a;this[_0x36fb09(0x2bf)][_0x36fb09(0x1e1)](_0x88a163);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x284),()=>{const _0x4a262e=_0x26958a,_0x12be30=this[_0x4a262e(0x2bf)][_0x4a262e(0x1f0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x4a262e(0x2bf)][_0x4a262e(0x242)](_0x12be30);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1c0),()=>{const _0x27fe49=_0x26958a,_0x368c9f=this[_0x27fe49(0x2bf)][_0x27fe49(0x1f0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x27fe49(0x2bf)][_0x27fe49(0x242)](_0x368c9f);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x2d3),(_0x49641a,_0x2a86c7)=>{const _0x4ef350=_0x26958a;this[_0x4ef350(0x2bf)][_0x4ef350(0x1b9)](_0x2a86c7,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x24c),(_0x2d17c2,_0x4206c4)=>{const _0x133a25=_0x26958a;this[_0x133a25(0x2bf)][_0x133a25(0x1b9)](_0x4206c4,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x205),()=>{const _0x4724af=_0x26958a;this[_0x4724af(0x2bf)][_0x4724af(0x2a4)]();}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x20c),async()=>{const _0x2d9038=_0x26958a;await this[_0x2d9038(0x2bf)][_0x2d9038(0x2cc)]();}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x226),(_0x11968d,_0x2c9090)=>{const _0x3641de=_0x26958a;this[_0x3641de(0x2bf)][_0x3641de(0x2cb)](_0x2c9090['id']);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x214),(_0x4adbd4,_0x1c4911,_0x1dc7d3)=>{const _0x5d26d2=_0x26958a;this[_0x5d26d2(0x2ad)](_0x1c4911,_0x1dc7d3);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x2da),(_0x190987,_0xc4ea85)=>{const _0x55c1cc=_0x26958a;_0x55c1cc(0x2c3)===_0xc4ea85[_0x55c1cc(0x289)]?this[_0x55c1cc(0x2bf)][_0x55c1cc(0x171)](_0xc4ea85):this[_0x55c1cc(0x2bf)][_0x55c1cc(0x1c1)](_0xc4ea85);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ef),async(_0xf6a70b,_0x52af79)=>{const _0x35b9df=_0x26958a;await this[_0x35b9df(0x20f)]({'reply':_0x52af79});}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1d9),(_0x25bf58,{reply:_0x27ef40,index:_0x5c4f93,state:_0x4c8111})=>{const _0x154a1e=_0x26958a;this[_0x154a1e(0x2bf)][_0x154a1e(0x247)]({'id':_0x27ef40['id'],'index':_0x5c4f93,'state':_0x4c8111}),this[_0x154a1e(0x1dd)]?.[_0x154a1e(0x206)][_0x154a1e(0x1eb)](_0x27ef40['id'])&&this[_0x154a1e(0x1dd)]?.[_0x154a1e(0x237)]==_0x5c4f93&&this[_0x154a1e(0x17f)]?.[_0x154a1e(0x23c)](_0x4c8111);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x19b),(_0x58282a,_0x42f5ad)=>{const _0x51ec4f=_0x26958a;if(this[_0x51ec4f(0x2bf)][_0x51ec4f(0x278)](_0x42f5ad[_0x51ec4f(0x19f)],_0x42f5ad[_0x51ec4f(0x194)]),_0x51ec4f(0x2d4)===_0x42f5ad[_0x51ec4f(0x19f)][_0x51ec4f(0x289)]){const _0x60f089=[..._0x32eff2(this[_0x51ec4f(0x190)])[_0x51ec4f(0x26f)][_0x51ec4f(0x2d8)][_0x51ec4f(0x2d4)][_0x51ec4f(0x271)]()];this[_0x51ec4f(0x241)][_0x51ec4f(0x299)](_0x60f089,_0x51ec4f(0x267)+this[_0x51ec4f(0x1ea)]?.['id']);}}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1ac),(_0x26e8a3,_0x1c1f27)=>{const _0x12adf1=_0x26958a;this[_0x12adf1(0x2bf)][_0x12adf1(0x26c)](_0x1c1f27[_0x12adf1(0x2e5)]),_0x12adf1(0x188)==_0x1c1f27[_0x12adf1(0x2e5)]&&this[_0x12adf1(0x286)](),_0x12adf1(0x2d4)===_0x1c1f27[_0x12adf1(0x289)]&&this[_0x12adf1(0x241)][_0x12adf1(0x298)](_0x12adf1(0x267)+this[_0x12adf1(0x1ea)]?.['id']);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x239),(_0x1b8269,_0xf96444)=>{const _0x182baa=_0x26958a;this[_0x182baa(0x2bf)][_0x182baa(0x2d1)](_0xf96444[_0x182baa(0x19f)][_0x182baa(0x2e5)],_0xf96444[_0x182baa(0x194)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x25d),(_0x532457,_0x263f7b)=>{const _0x1f75d6=_0x26958a;this[_0x1f75d6(0x2bf)][_0x1f75d6(0x231)](_0x263f7b[_0x1f75d6(0x236)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x290),(_0xd2749d,_0x2ec832)=>{const _0x2a83e2=_0x26958a;this[_0x2a83e2(0x2bf)][_0x2a83e2(0x1ee)](_0x2ec832[_0x2a83e2(0x1fb)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x216),(_0x3967b1,_0xc409cf)=>{const _0x3c88bc=_0x26958a;this[_0x3c88bc(0x2bf)][_0x3c88bc(0x280)](_0xc409cf[_0x3c88bc(0x2f6)],_0xc409cf[_0x3c88bc(0x2dc)],_0xc409cf[_0x3c88bc(0x212)],_0xc409cf[_0x3c88bc(0x297)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1f4),(_0x4126c1,_0x43e4cb)=>{const _0x2641a5=_0x26958a;this[_0x2641a5(0x2bf)][_0x2641a5(0x1e0)](_0x43e4cb[_0x2641a5(0x2f6)],_0x43e4cb[_0x2641a5(0x222)],_0x43e4cb[_0x2641a5(0x217)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1db),(_0x2656d2,_0x1f4c4b)=>{const _0x5ca19a=_0x26958a;this[_0x5ca19a(0x2bf)][_0x5ca19a(0x1d2)](_0x1f4c4b);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x270),async(_0x4c31da,_0x1d31c9)=>{const _0x31684c=_0x26958a,_0x4c5c9d=(await this[_0x31684c(0x1b3)][_0x31684c(0x24b)]())[_0x31684c(0x228)](_0xe9bd80=>_0xe9bd80['id']===_0x1d31c9[_0x31684c(0x246)]?.['id'])||null;this[_0x31684c(0x2bf)][_0x31684c(0x1b8)](_0x4c5c9d,_0x1d31c9[_0x31684c(0x2cf)]);}),this[_0x26958a(0x1ea)]['on'](_0x26958a(0x1e7),(_0x423ed7,{error:_0x57762a,interactionId:_0x27367b,fileName:_0x4eb6bf,url:_0x29ab0d,sourceId:_0x49fd39,sourceLabel:_0x4cf833})=>{const _0x6cb456=_0x26958a,_0x19b38d=_0x27367b?_0x27367b+':'+_0x4dab49():_0x4dab49();_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1a9))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2b4)]({'staticMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x22d)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2aa))||_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1f2))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x175)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2e3))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x259),_0x4eb6bf),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x18e))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x1b5),_0x29ab0d),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1f3))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x178)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2db))?this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x199)),'id':_0x19b38d}):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x218))?(_0x49fd39&&this[_0x6cb456(0x2bf)][_0x6cb456(0x28f)](_0x49fd39),this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2e0),_0x4cf833||_0x6cb456(0x2dc)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x23b))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x1a5)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x1a6))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2b5)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x221))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x275)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x18b))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x2d9)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x2ed))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x219)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):_0x57762a[_0x6cb456(0x283)][_0x6cb456(0x1d6)](_0x6cb456(0x204))?(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x23e)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a)):(this[_0x6cb456(0x2bf)][_0x6cb456(0x2e4)]({'errorMessage':_0x4c6255(this[_0x6cb456(0x190)][_0x6cb456(0x1df)],_0x6cb456(0x196)),'id':_0x19b38d}),this[_0x6cb456(0x292)](_0x57762a));}),await this[_0x26958a(0x1ea)][_0x26958a(0x230)](this[_0x26958a(0x190)][_0x26958a(0x29d)][_0x26958a(0x268)](_0x26958a(0x2f5))),_0x573b06||await this[_0x26958a(0x1ea)][_0x26958a(0x251)]();}async[_0x1f9a5f(0x261)]({userMessage:_0x80f01b,attributes:_0x33b24e}){const _0x451aa4=_0x1f9a5f;if(!this[_0x451aa4(0x1ea)])throw new _0x3295b8(_0x451aa4(0x2ce));if(this[_0x451aa4(0x1ea)][_0x451aa4(0x2c9)]()){const _0x167b1c=await this[_0x451aa4(0x241)][_0x451aa4(0x1e9)]();await this[_0x451aa4(0x1ea)][_0x451aa4(0x28e)](_0x167b1c);}this[_0x451aa4(0x1ea)]['id']&&this[_0x451aa4(0x1ea)][_0x451aa4(0x1fe)]&&await this[_0x451aa4(0x1ea)][_0x451aa4(0x2b3)]({'userMessage':_0x80f01b,'attributes':_0x33b24e});}[_0x1f9a5f(0x1da)](){const _0x1e7c99=_0x1f9a5f;console[_0x1e7c99(0x1f9)](_0x1e7c99(0x209));}[_0x1f9a5f(0x186)](_0x4a779e){const _0x35853b=_0x1f9a5f;this[_0x35853b(0x2bf)][_0x35853b(0x16e)](_0x4a779e);}[_0x1f9a5f(0x292)](_0x4775a3){const _0x3882ff=_0x1f9a5f;_0x204db6(_0x4775a3[_0x3882ff(0x283)]);}[_0x1f9a5f(0x2f4)](_0x54dffc){const _0x5d4953=_0x1f9a5f;this[_0x5d4953(0x1ea)]?.[_0x5d4953(0x229)](_0x54dffc);}[_0x1f9a5f(0x1b2)](){const _0x8800a1=_0x1f9a5f;this[_0x8800a1(0x1ea)]?.[_0x8800a1(0x23f)]();}[_0x1f9a5f(0x2c1)](){const _0x7810f0=_0x1f9a5f;this[_0x7810f0(0x1ea)]?.[_0x7810f0(0x262)]();}[_0x1f9a5f(0x2ef)](_0x1d6c01){const _0x3adea1=_0x1f9a5f,[_0x2d53d5,_0x1425ed]=_0x1d6c01[_0x3adea1(0x1d7)](':'),_0x8016cb=this[_0x3adea1(0x1ea)][_0x3adea1(0x1ff)](_0x2d53d5),_0x5cafd4=_0x8016cb[_0x3adea1(0x1c4)](_0x1425ed);return{'interaction':_0x8016cb,'reply':_0x5cafd4};}[_0x1f9a5f(0x2af)](_0xf63ba9,_0x539ac2=!0x1){const _0x21b59f=_0x1f9a5f,_0x3d3b68=_0x32eff2(this[_0x21b59f(0x190)]),_0x49f0db={'target':_0x3d3b68[_0x21b59f(0x285)][_0x21b59f(0x255)][_0x21b59f(0x2a6)][_0x21b59f(0x22f)](_0x3d3b68[_0x21b59f(0x285)][_0x21b59f(0x2dd)][_0x21b59f(0x2a9)](_0xf63ba9)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x539ac2};_0x539ac2&&(_0x49f0db[_0x21b59f(0x1de)]=!0x0),_0x31f004(_0x49f0db);}[_0x1f9a5f(0x2ad)](_0x142726,_0x32126f=!0x1){const _0x3a26e2=_0x1f9a5f;this[_0x3a26e2(0x2bf)][_0x3a26e2(0x214)](_0x142726||_0x4c6255(this[_0x3a26e2(0x190)][_0x3a26e2(0x1df)],_0x3a26e2(0x24f)),_0x32126f);}async[_0x1f9a5f(0x20f)]({reply:_0xc9cac3,renderingStrategy:_0x47496e}){const _0x14ed84=_0x1f9a5f,{id:_0x28c98c,interactionId:_0x39e0e9,isDone:_0x2b6e2d,type:_0x31b276,parsedContent:_0x557eda}=_0xc9cac3,_0x1834ba=_0x39e0e9+':'+_0x28c98c;if(_0x14ed84(0x183)===_0x31b276){const _0x595578=_0xc9cac3[_0x14ed84(0x28c)]({'showDiff':this[_0x14ed84(0x2bf)][_0x14ed84(0x27b)]});await this[_0x14ed84(0x2bf)][_0x14ed84(0x1ce)]({'id':_0x1834ba,'parts':_0x595578,'renderingStrategy':_0x47496e,'isDone':_0x2b6e2d});}else _0x14ed84(0x2c3)===_0x31b276&&await this[_0x14ed84(0x2bf)][_0x14ed84(0x22c)]({'id':_0x1834ba,'parsedContent':_0x557eda,'renderingStrategy':_0x47496e,'isDone':_0x2b6e2d});_0x2b6e2d&&_0xc9cac3[_0x14ed84(0x1bf)][_0x14ed84(0x2e8)]>0x0&&this[_0x14ed84(0x2bf)][_0x14ed84(0x2a8)](_0x1834ba,_0xc9cac3[_0x14ed84(0x1bf)]);}async[_0x1f9a5f(0x2bc)](){const _0xa3da76=_0x1f9a5f,_0x1e52d8=this[_0xa3da76(0x1ea)]?.[_0xa3da76(0x29e)];_0x1e52d8&&(_0x1e52d8[_0xa3da76(0x2e6)](),this[_0xa3da76(0x2bf)][_0xa3da76(0x2f3)](_0x1e52d8));}async[_0x1f9a5f(0x2cd)](){const _0x47becb=_0x1f9a5f,_0x34c116=this[_0x47becb(0x1ea)]?.[_0x47becb(0x29e)];if(_0x34c116){for await(const _0x1d9d27 of _0x34c116[_0x47becb(0x1b4)])await this[_0x47becb(0x20f)]({'reply':_0x1d9d27,'renderingStrategy':_0x47becb(0x17d)});}}[_0x1f9a5f(0x1a3)](_0x1a08cb){const _0x466ba0=_0x1f9a5f,_0x4b36ff={'positiveCount':_0x1a08cb[_0x466ba0(0x208)][_0x466ba0(0x20d)](_0x439236=>_0x466ba0(0x28d)===_0x439236[_0x466ba0(0x173)])[_0x466ba0(0x2e8)],'totalCount':_0x1a08cb[_0x466ba0(0x208)][_0x466ba0(0x2e8)],'modificationId':_0x1a08cb['id']},_0x36400a=this[_0x466ba0(0x1ea)][_0x466ba0(0x1ff)](_0x1a08cb[_0x466ba0(0x1e2)])[_0x466ba0(0x2b8)];_0x36400a&&this[_0x466ba0(0x25f)][_0x466ba0(0x250)](this[_0x466ba0(0x1ea)]['id'],_0x36400a,_0x4b36ff);}[_0x1f9a5f(0x2b7)](_0x220243){const _0x100ad8=_0x1f9a5f;let _0xb5a87e=null,_0x11d0eb=null;this['on'](_0x100ad8(0x29c),(_0xc76613,_0x337044,_0x2aa29f)=>{const _0x3885db=_0x100ad8;_0x2aa29f['id']!==_0xb5a87e&&(_0xb5a87e=_0x2aa29f['id'],_0x11d0eb=this[_0x3885db(0x17a)](_0x2aa29f)),_0x220243(_0x337044,_0x11d0eb);});}[_0x1f9a5f(0x17a)](_0x1e7124){const _0x37ea50=_0x1f9a5f,_0x1e8506=this[_0x37ea50(0x2bf)],_0x5a58e4=()=>{const _0x286c57=_0x37ea50;_0x1e7124[_0x286c57(0x2ba)](),_0x1e7124[_0x286c57(0x295)](),_0x1e8506[_0x286c57(0x21f)]();},_0x4b355c=()=>{const _0x3a11a9=_0x37ea50;_0x1e7124[_0x3a11a9(0x220)]&&(_0x1e7124[_0x3a11a9(0x220)][_0x3a11a9(0x2ab)](),_0x1e7124[_0x3a11a9(0x220)]=void 0x0);};return{'insertTextReply':(_0x56f0a5,_0x1c72a1)=>{const _0x26278e=_0x37ea50;_0x4b355c(),_0x5a58e4();const _0x3343f9=_0x1e7124[_0x26278e(0x220)]=_0x1e7124[_0x26278e(0x25c)]({'type':_0x26278e(0x2c3),'interactionId':_0x1e7124['id'],'content':_0x56f0a5,'id':_0x1c72a1||_0x4dab49()});return _0x4b355c(),_0x3343f9;},'insertCustomElement':async(_0x315aaa,_0x3f8376)=>(_0x4b355c(),_0x5a58e4(),_0x1e8506[_0x37ea50(0x273)](_0x315aaa,_0x3f8376||_0x4dab49())),'setLoadingMessage':_0x3538d5=>{const _0x255cd9=_0x37ea50;_0x1e8506[_0x255cd9(0x242)](_0x3538d5);},'clearLoadingMessage':()=>{const _0x1d9ca4=_0x37ea50;_0x1e8506[_0x1d9ca4(0x21f)]();}};}}
@@ -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 _0x3728d8=_0x3399;function _0x1193(){const _0x3cd55=['3208176eSlnPJ','addTab','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai-reply','_getInputPlaceholder','then','get','toggleSuggestionDisplayMode','areActionsDisabled','toggleLoadingSkeleton','addContextItem','length','enqueue','addItem','options','AI_CHAT_HEADING','find','updateWebSources','clearLoadingMessage','setIsUploadInProgress','setModel','updateSuggestionPartState','addFeedItemStaticMessage','remove','ai.chat.context.searchInputVisibleFrom','last','isOfficialPlugin','isBusy','setLoadingMessage','setInputPlaceholder','updateCapabilities','prepareLoadingMessage','_view','setReasoning','removeFeedInteraction','interaction-header','insertSuggestion','enableControls','AITabs','isWebSearchEnabled','closeSourceResourceBalloon','feedItemRenderingStrategy','_promiseQueue','custom-element','setIsMaximized','_interactionPromiseResolver','disableModelSelector','4382391VOZZbm','ai.chat.welcomeMessage','bind','updateFeedItemAIReplySuggestionPartState','streaming','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','commands','stopInteraction','_isTrackChangesCommandValueBound','updateFeedItemAIReplySuggestionContent','populateSourceResourceBalloon','_titleAnimationInterval','userMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','has','chat','setFeedItemAIReplySuggestionPartActive','updateFeedInteractionHeader','showDiff','isDisabled','pluginName','config','12548168cGDrqP','availableModels','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_animateConversationTitle','setPromptInputValue','updateSuggestionItem','updateResourceState','disableControls','updateFeedItemAIReplySources','startInteraction','interactionId','ai.models.showModelSelector','queueEmptyPromise','view','clearPendingContextUI','addFeedItemUserMessage','attributes','displayedPrompt','forEach','getItemIds','setSelectedModel','user-message','hasFeedItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','plugins','label','startAutoScroll','destroy','addFeedItemCustomElement','AI_CHAT_WELCOME_MESSAGE','setAddContextOptions','stopAutoScroll','setModelList','setFeedItemRenderingStrategy','addFeedItemAISuggestion','contextItems','77DQRwBJ','clearConversationContextUI','34mwLhDI','setConversationContext','from','isPremiumPlugin','removeContextItem','isModelAvailable','createConversation','9501252nySojF','64609JvtAKP','fire','resetMessageInput','hasItem','isTrackChangesOn','value','1413EPMHLu','markItemAsDone','7XKZBGs','ai-suggestion-reply','</p>','addFeedItemAIReply','requires','ai.availableReplyActions','chatHeader','removeFeedItem','abort','conversationCreated','updateReplyItem','TrackChanges','children','context','isDone','addFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','91330sOeSyD','scrollFeedToSuggestion','capabilities','set','resetConversationTitle','4UdlhnJ','setWebSearch','isReasoningEnabled','chatFeed','isVisible','<p>','delegate','isLoading','addFeedItemError','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','clear','values','removeItem','conversation-start','setContextItemLoading','updateFeedItemAIReplyContent','4468335iTTcFg','renderingStrategy','setSuggestionPartActive','enableModelSelector','isMaximized','scrollToSuggestion','showResizeButton','markFeedItemAsDone','error-message','focusPromptInput','finishInteraction','setConversationTitle','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','filter','AIChatUI','chatControls','trackChanges','startsWith'];_0x1193=function(){return _0x3cd55;};return _0x1193();}(function(_0x3b67c7,_0x2da486){const _0x3e69fe=_0x3399,_0x1a7699=_0x3b67c7();while(!![]){try{const _0x512390=parseInt(_0x3e69fe(0x227))/0x1*(parseInt(_0x3e69fe(0x21f))/0x2)+parseInt(_0x3e69fe(0x1e3))/0x3*(-parseInt(_0x3e69fe(0x245))/0x4)+parseInt(_0x3e69fe(0x256))/0x5+parseInt(_0x3e69fe(0x226))/0x6+parseInt(_0x3e69fe(0x22f))/0x7*(-parseInt(_0x3e69fe(0x1f9))/0x8)+-parseInt(_0x3e69fe(0x22d))/0x9*(parseInt(_0x3e69fe(0x240))/0xa)+-parseInt(_0x3e69fe(0x21d))/0xb*(-parseInt(_0x3e69fe(0x269))/0xc);if(_0x512390===_0x2da486)break;else _0x1a7699['push'](_0x1a7699['shift']());}catch(_0x32f5b9){_0x1a7699['push'](_0x1a7699['shift']());}}}(_0x1193,0xf02f7));import{ContextPlugin as _0x1c42d8}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x58b960}from'ckeditor5/src/utils.js';import{AIChatView as _0x182278}from'./ui/aichatview.js';import{AITabs as _0xb9fa5a}from'../aitabs/aitabs.js';import{getTranslation as _0x5e9459}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x40b8d1}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2f7a14}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x24692f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x34c8c7}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x4c81c1}from'../aicore/utils/geteditorfromcontext.js';function _0x3399(_0x519c4a,_0x513820){const _0x1193cb=_0x1193();return _0x3399=function(_0x3399b2,_0x9bd8f2){_0x3399b2=_0x3399b2-0x1e2;let _0x1f0776=_0x1193cb[_0x3399b2];return _0x1f0776;},_0x3399(_0x519c4a,_0x513820);}import{AI_REPLY_ACTIONS as _0xaa8d62}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1c42d8{static get[_0x3728d8(0x233)](){return[_0xb9fa5a];}[_0x3728d8(0x289)];static get[_0x3728d8(0x1f7)](){const _0x570641=_0x3728d8;return _0x570641(0x265);}static get[_0x3728d8(0x283)](){return!0x0;}static get[_0x3728d8(0x222)](){return!0x0;}[_0x3728d8(0x292)]=_0x3728d8(0x1e7);[_0x3728d8(0x1f5)]=!0x0;[_0x3728d8(0x293)];[_0x3728d8(0x296)];[_0x3728d8(0x1ee)]=void 0x0;[_0x3728d8(0x1eb)]=!0x1;constructor(_0x379964){const _0x452c96=_0x3728d8;super(_0x379964);const _0x360218=this[_0x452c96(0x23c)][_0x452c96(0x211)][_0x452c96(0x26f)](_0x452c96(0x28f));this[_0x452c96(0x243)](_0x452c96(0x284),!0x1),this[_0x452c96(0x293)]=new _0x24692f(),this[_0x452c96(0x289)]=new _0x182278(this[_0x452c96(0x23c)][_0x452c96(0x24e)],{'showResizeButton':_0x360218[_0x452c96(0x25c)],'contextResourcesSearchInputVisibleFrom':this[_0x452c96(0x23c)][_0x452c96(0x1f8)][_0x452c96(0x26f)](_0x452c96(0x281))}),this[_0x452c96(0x289)][_0x452c96(0x24b)](..._0x34c8c7)['to'](this),this[_0x452c96(0x289)]['on'](_0x452c96(0x270),(_0x393101,{showDiff:_0x536b89})=>{const _0x273d43=_0x452c96;this[_0x273d43(0x1f5)]=_0x536b89;}),_0x360218[_0x452c96(0x206)][_0x452c96(0x26a)]({'id':_0x452c96(0x1f2),'buttonLabel':_0x5e9459(this[_0x452c96(0x23c)][_0x452c96(0x24e)],_0x452c96(0x278)),'buttonIcon':_0x40b8d1,'order':0x0,'content':this[_0x452c96(0x289)]}),this[_0x452c96(0x289)][_0x452c96(0x266)][_0x452c96(0x1e5)](_0x452c96(0x24c))['to'](this,_0x452c96(0x284),_0x23f1d2=>_0x23f1d2),this[_0x452c96(0x289)][_0x452c96(0x248)][_0x452c96(0x1e5)](_0x452c96(0x262))['to'](this,_0x452c96(0x284),_0x15e418=>_0x15e418),this[_0x452c96(0x289)][_0x452c96(0x266)][_0x452c96(0x286)](this[_0x452c96(0x26d)]()),this[_0x452c96(0x1e5)](_0x452c96(0x224))['to'](this[_0x452c96(0x289)][_0x452c96(0x266)],_0x452c96(0x224));}[_0x3728d8(0x214)](){const _0x5030ca=_0x3728d8;super[_0x5030ca(0x214)](),this[_0x5030ca(0x1ee)]&&clearInterval(this[_0x5030ca(0x1ee)]);}[_0x3728d8(0x225)](_0x178e61){const _0x2da8cc=_0x3728d8,_0x194e59=this[_0x2da8cc(0x23c)][_0x2da8cc(0x1f8)][_0x2da8cc(0x26f)](_0x2da8cc(0x1e4))??_0x5e9459(this[_0x2da8cc(0x23c)][_0x2da8cc(0x24e)],_0x2da8cc(0x216));this[_0x2da8cc(0x289)][_0x2da8cc(0x248)][_0x2da8cc(0x250)](),this[_0x2da8cc(0x289)][_0x2da8cc(0x266)][_0x2da8cc(0x259)](),this[_0x2da8cc(0x289)][_0x2da8cc(0x266)][_0x2da8cc(0x219)](_0x178e61[_0x2da8cc(0x1fa)],!this[_0x2da8cc(0x23c)][_0x2da8cc(0x1f8)][_0x2da8cc(0x26f)](_0x2da8cc(0x204))),this[_0x2da8cc(0x27f)]({'id':_0x2da8cc(0x253),'staticMessage':_0x194e59}),this[_0x2da8cc(0x228)](_0x2da8cc(0x238));}[_0x3728d8(0x27f)]({id:_0x350251,staticMessage:_0x3dead5}){const _0xf13a84=_0x3728d8;this[_0xf13a84(0x289)][_0xf13a84(0x248)][_0xf13a84(0x276)](_0xf13a84(0x26c),{'id':_0x350251,'initialContent':_0xf13a84(0x24a)+_0x3dead5+_0xf13a84(0x231)});}[_0x3728d8(0x208)](_0x31277f){const _0x170ab5=_0x3728d8,_0x219278=_0x31277f[_0x170ab5(0x209)]?.[_0x170ab5(0x20a)]||_0x31277f[_0x170ab5(0x1ef)];this[_0x170ab5(0x289)][_0x170ab5(0x248)][_0x170ab5(0x276)](_0x170ab5(0x20e),{'contextItems':Array[_0x170ab5(0x221)](_0x31277f[_0x170ab5(0x21c)][_0x170ab5(0x251)]()),'initialContent':_0x170ab5(0x24a)+_0x219278+_0x170ab5(0x231),'id':_0x31277f['id']});}[_0x3728d8(0x24d)]({errorMessage:_0x2dacd2,id:_0x2a992d}){const _0x3f639e=_0x3728d8;this[_0x3f639e(0x289)][_0x3f639e(0x248)][_0x3f639e(0x276)](_0x3f639e(0x25e),{'initialContent':_0x3f639e(0x24a)+_0x2dacd2+_0x3f639e(0x231),'id':_0x2a992d});}[_0x3728d8(0x232)](_0x369f21){const _0x396151=_0x3728d8;return this[_0x396151(0x293)][_0x396151(0x275)](async()=>{const _0x164b38=_0x396151;this[_0x164b38(0x289)][_0x164b38(0x248)][_0x164b38(0x276)](_0x164b38(0x26c),{'id':_0x369f21[_0x164b38(0x203)]+':'+_0x369f21['id']}),this[_0x164b38(0x27b)]();});}async[_0x3728d8(0x21b)](_0x285688){const _0x3df035=_0x3728d8,_0x15e4fb=_0x4c81c1(this[_0x3df035(0x23c)]);let _0x39405d=_0x15e4fb[_0x3df035(0x1f8)][_0x3df035(0x26f)](_0x3df035(0x234))||[..._0xaa8d62];if(_0x15e4fb[_0x3df035(0x211)][_0x3df035(0x1f1)](_0x3df035(0x23a))){if(!this[_0x3df035(0x1eb)]){this[_0x3df035(0x1eb)]=!0x0;const _0x5b2d42=_0x15e4fb[_0x3df035(0x1e9)][_0x3df035(0x26f)](_0x3df035(0x267));this[_0x3df035(0x289)][_0x3df035(0x248)][_0x3df035(0x1e5)](_0x3df035(0x22b))['to'](_0x5b2d42,_0x3df035(0x22c));}}else _0x39405d=_0x39405d[_0x3df035(0x264)](_0x4d913a=>_0x3df035(0x28d)!=_0x4d913a);return this[_0x3df035(0x293)][_0x3df035(0x275)](async()=>{const _0x37f9ed=_0x3df035;this[_0x37f9ed(0x289)][_0x37f9ed(0x248)][_0x37f9ed(0x276)](_0x37f9ed(0x230),{'id':_0x285688[_0x37f9ed(0x203)]+':'+_0x285688['id'],'areActionsDisabled':_0x285688[_0x37f9ed(0x271)],'showDiff':this[_0x37f9ed(0x1f5)],'availableActions':_0x39405d}),this[_0x37f9ed(0x27b)]();});}[_0x3728d8(0x23e)](_0x481047,_0x1cda04){const _0x757e69=_0x3728d8,_0x22fd09=this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x23b)][_0x757e69(0x282)];if(_0x22fd09 instanceof _0x2f7a14)return this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x23b)][_0x757e69(0x280)](_0x22fd09),void this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x276)](_0x757e69(0x28c),{'id':_0x481047['id'],'capabilities':{'isWebSearchEnabled':_0x22fd09[_0x757e69(0x242)][_0x757e69(0x290)]||_0x1cda04[_0x757e69(0x290)],'isReasoningEnabled':_0x22fd09[_0x757e69(0x242)][_0x757e69(0x247)]||_0x1cda04[_0x757e69(0x247)]}});this[_0x757e69(0x289)][_0x757e69(0x248)][_0x757e69(0x276)](_0x757e69(0x28c),{'id':_0x481047['id'],'capabilities':_0x1cda04});}async[_0x3728d8(0x215)](_0xc4820d,_0x261f65){const _0x356ef1=_0x3728d8;let _0x278677;return await this[_0x356ef1(0x293)][_0x356ef1(0x275)](async()=>{const _0x5d4998=_0x356ef1;_0x278677=this[_0x5d4998(0x289)][_0x5d4998(0x248)][_0x5d4998(0x276)](_0x5d4998(0x294),{'content':_0xc4820d,'id':_0x261f65});}),_0x278677;}[_0x3728d8(0x236)](_0x10efa8){const _0x3736ed=_0x3728d8;this[_0x3736ed(0x289)][_0x3736ed(0x248)][_0x3736ed(0x252)](_0x10efa8);}[_0x3728d8(0x20f)](_0x56c2e1){const _0x246e4d=_0x3728d8;return this[_0x246e4d(0x289)][_0x246e4d(0x248)][_0x246e4d(0x22a)](_0x56c2e1);}[_0x3728d8(0x1f4)](_0x2329f9){const _0x5c7d25=_0x3728d8,_0xf363d7=this[_0x5c7d25(0x289)][_0x5c7d25(0x248)][_0x5c7d25(0x23b)][_0x5c7d25(0x279)](_0x3141dc=>_0x3141dc[_0x5c7d25(0x277)]['id']==_0x2329f9['id']&&_0x3141dc instanceof _0x2f7a14);_0xf363d7&&_0xf363d7[_0x5c7d25(0x243)](_0x5c7d25(0x249),_0x2329f9[_0x5c7d25(0x249)]);}async[_0x3728d8(0x255)](_0x2c138c){const _0x2496d7=_0x3728d8,_0x282886=_0x2c138c[_0x2496d7(0x257)]||this[_0x2496d7(0x292)];return this[_0x2496d7(0x293)][_0x2496d7(0x275)](async _0x5d50bc=>{const _0x373b88=_0x2496d7;await this[_0x373b88(0x289)][_0x373b88(0x248)][_0x373b88(0x239)]({..._0x2c138c,'abortSignal':_0x5d50bc,'renderingStrategy':_0x282886}),_0x2c138c[_0x373b88(0x23d)]&&this[_0x373b88(0x25d)](_0x2c138c['id']);});}[_0x3728d8(0x201)](_0x56bb67,_0x5760e7){const _0xd76dc1=_0x3728d8;this[_0xd76dc1(0x289)][_0xd76dc1(0x248)][_0xd76dc1(0x27a)](_0x56bb67,_0x5760e7);}async[_0x3728d8(0x1ec)](_0x45b617){const _0x3ce97c=_0x3728d8,_0x1cbef6=_0x45b617[_0x3ce97c(0x257)]||this[_0x3ce97c(0x292)];return this[_0x3ce97c(0x293)][_0x3ce97c(0x275)](async _0x5a1e0e=>{const _0x3830dc=_0x3ce97c;await this[_0x3830dc(0x289)][_0x3830dc(0x248)][_0x3830dc(0x1fe)]({..._0x45b617,'abortSignal':_0x5a1e0e,'renderingStrategy':_0x1cbef6}),_0x45b617[_0x3830dc(0x23d)]&&this[_0x3830dc(0x25d)](_0x45b617['id']);});}[_0x3728d8(0x1e6)](_0x22403a){const _0x5a49f5=_0x3728d8;this[_0x5a49f5(0x289)][_0x5a49f5(0x248)][_0x5a49f5(0x27e)](_0x22403a);}[_0x3728d8(0x1f3)](_0x10741b){const _0xe71a7f=_0x3728d8;this[_0xe71a7f(0x289)][_0xe71a7f(0x248)][_0xe71a7f(0x258)](_0x10741b);}[_0x3728d8(0x25d)](_0x591ba4){const _0x45da84=_0x3728d8;this[_0x45da84(0x289)][_0x45da84(0x248)][_0x45da84(0x22e)](_0x591ba4);}[_0x3728d8(0x28b)](_0x3af693){const _0x663df8=_0x3728d8;this[_0x663df8(0x289)][_0x663df8(0x248)][_0x663df8(0x20c)]()[_0x663df8(0x264)](_0x47c72b=>_0x47c72b[_0x663df8(0x268)](_0x3af693))[_0x663df8(0x20b)](_0x5f4eb7=>this[_0x663df8(0x289)][_0x663df8(0x248)][_0x663df8(0x252)](_0x5f4eb7));}[_0x3728d8(0x202)](){const _0x1c80d3=_0x3728d8,_0x40ba13=this[_0x1c80d3(0x288)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1c80d3(0x285)](_0x40ba13),this[_0x1c80d3(0x289)][_0x1c80d3(0x266)][_0x1c80d3(0x1e2)](!this[_0x1c80d3(0x23c)][_0x1c80d3(0x1f8)][_0x1c80d3(0x26f)](_0x1c80d3(0x204))),this[_0x1c80d3(0x284)]=!0x0,this[_0x1c80d3(0x289)][_0x1c80d3(0x248)][_0x1c80d3(0x213)]();}[_0x3728d8(0x1ea)](_0x240e5a){const _0xea18fe=_0x3728d8;this[_0xea18fe(0x293)][_0xea18fe(0x237)](),this[_0xea18fe(0x289)][_0xea18fe(0x248)][_0xea18fe(0x20c)]()[_0xea18fe(0x264)](_0x488151=>_0x488151[_0xea18fe(0x268)](_0x240e5a['id']))[_0xea18fe(0x20b)](_0x45927c=>this[_0xea18fe(0x25d)](_0x45927c)),this[_0xea18fe(0x284)]=!0x1,this[_0xea18fe(0x289)][_0xea18fe(0x248)][_0xea18fe(0x218)]();}async[_0x3728d8(0x260)](){const _0x4e8903=_0x3728d8;return this[_0x4e8903(0x293)][_0x4e8903(0x205)][_0x4e8903(0x26e)](()=>{const _0x13154d=_0x4e8903;this[_0x13154d(0x284)]=!0x1,this[_0x13154d(0x289)][_0x13154d(0x248)][_0x13154d(0x218)]();});}[_0x3728d8(0x273)](_0x30f05e,_0x2fbccb){const _0x172074=_0x3728d8;this[_0x172074(0x289)][_0x172074(0x266)][_0x172074(0x273)](_0x30f05e,_0x2fbccb);}[_0x3728d8(0x223)](_0x20ebb2){const _0x114ab0=_0x3728d8;this[_0x114ab0(0x289)][_0x114ab0(0x266)][_0x114ab0(0x223)](_0x20ebb2);}[_0x3728d8(0x254)](_0x4a835e,_0x448041){const _0x53ab95=_0x3728d8;this[_0x53ab95(0x289)][_0x53ab95(0x266)][_0x53ab95(0x254)](_0x4a835e,_0x448041);}[_0x3728d8(0x27c)](_0xad67f3){const _0xb434da=_0x3728d8;this[_0xb434da(0x289)][_0xb434da(0x266)][_0xb434da(0x27c)](_0xad67f3);}[_0x3728d8(0x220)](_0x1b4b16){const _0x4172ab=_0x3728d8;this[_0x4172ab(0x289)][_0x4172ab(0x266)][_0x4172ab(0x220)](_0x1b4b16);}[_0x3728d8(0x207)](){const _0x437891=_0x3728d8;this[_0x437891(0x289)][_0x437891(0x266)][_0x437891(0x207)]();}[_0x3728d8(0x21e)](){const _0x5b4f87=_0x3728d8;this[_0x5b4f87(0x289)][_0x5b4f87(0x266)][_0x5b4f87(0x21e)]();}[_0x3728d8(0x1ff)](_0x4f9191,_0x16326a,_0xe4136b){const _0x55db6e=_0x3728d8;this[_0x55db6e(0x289)][_0x55db6e(0x266)][_0x55db6e(0x1ff)](_0x4f9191,_0x16326a,_0xe4136b);}[_0x3728d8(0x229)](){const _0x842752=_0x3728d8;this[_0x842752(0x289)][_0x842752(0x266)][_0x842752(0x229)](),this[_0x842752(0x289)][_0x842752(0x266)][_0x842752(0x286)](this[_0x842752(0x26d)]());}[_0x3728d8(0x217)](_0x229d32){const _0x373cf5=_0x3728d8;this[_0x373cf5(0x289)][_0x373cf5(0x266)][_0x373cf5(0x217)](_0x229d32);}[_0x3728d8(0x287)](_0x476df7){const _0x5975b6=_0x3728d8;this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x246)](_0x476df7[_0x5975b6(0x290)]),this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x28a)](_0x476df7[_0x5975b6(0x247)]),this[_0x5975b6(0x289)][_0x5975b6(0x266)][_0x5975b6(0x286)](this[_0x5975b6(0x26d)](_0x476df7));}[_0x3728d8(0x20d)](_0x26639b,_0x3e5d5b){const _0x6e147d=_0x3728d8;this[_0x6e147d(0x289)][_0x6e147d(0x266)][_0x6e147d(0x27d)](_0x26639b),_0x3e5d5b&&this[_0x6e147d(0x289)][_0x6e147d(0x266)][_0x6e147d(0x1e2)](!0x1);}[_0x3728d8(0x21a)](_0x18d590){const _0x4ef265=_0x3728d8;this[_0x4ef265(0x292)]=_0x18d590;}[_0x3728d8(0x272)](_0x194565){const _0x3886e6=_0x3728d8;this[_0x3886e6(0x289)][_0x3886e6(0x248)][_0x3886e6(0x272)](_0x194565);}[_0x3728d8(0x244)](){const _0x428598=_0x3728d8;this[_0x428598(0x261)](_0x5e9459(this[_0x428598(0x23c)][_0x428598(0x24e)],_0x428598(0x278)));}[_0x3728d8(0x261)](_0x11d2e5,_0x406f9d=!0x1){const _0x339d16=_0x3728d8;if(_0x406f9d&&!_0x58b960()&&_0x11d2e5[_0x339d16(0x274)])return this[_0x339d16(0x289)][_0x339d16(0x235)][_0x339d16(0x212)]='',void this[_0x339d16(0x1fc)](_0x11d2e5);this[_0x339d16(0x289)][_0x339d16(0x235)][_0x339d16(0x212)]=_0x11d2e5;}[_0x3728d8(0x285)](_0xc3e82){const _0x3d2df0=_0x3728d8;this[_0x3d2df0(0x289)][_0x3d2df0(0x248)][_0x3d2df0(0x285)](_0xc3e82);}[_0x3728d8(0x27b)](){const _0x1dec5d=_0x3728d8;this[_0x1dec5d(0x289)][_0x1dec5d(0x248)][_0x1dec5d(0x285)]('');}[_0x3728d8(0x1fc)](_0x2cec43){const _0x5e929c=_0x3728d8;let _0xd1354c=0x0;clearInterval(this[_0x5e929c(0x1ee)]),this[_0x5e929c(0x1ee)]=setInterval(()=>{const _0x16f0b6=_0x5e929c;this[_0x16f0b6(0x289)][_0x16f0b6(0x235)][_0x16f0b6(0x212)]=this[_0x16f0b6(0x289)][_0x16f0b6(0x235)][_0x16f0b6(0x212)]+_0x2cec43[_0xd1354c],_0xd1354c++,_0xd1354c===_0x2cec43[_0x16f0b6(0x274)]&&clearInterval(this[_0x16f0b6(0x1ee)]);},0x1e);}[_0x3728d8(0x295)](_0x5a93e5){const _0x59ab06=_0x3728d8;this[_0x59ab06(0x289)][_0x59ab06(0x235)][_0x59ab06(0x25a)]=_0x5a93e5;}[_0x3728d8(0x288)](_0x379ab8){const _0x270e18=_0x3728d8;return _0x379ab8[_0x270e18(0x290)]&&_0x379ab8[_0x270e18(0x247)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x210)):_0x379ab8[_0x270e18(0x290)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x1f0)):_0x379ab8[_0x270e18(0x247)]?_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x263)):_0x5e9459(this[_0x270e18(0x23c)][_0x270e18(0x24e)],_0x270e18(0x1fb));}[_0x3728d8(0x26d)](_0x155b1e){const _0x1aeed6=_0x3728d8;return _0x155b1e?_0x155b1e[_0x1aeed6(0x290)]&&_0x155b1e[_0x1aeed6(0x247)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x1e8)):_0x155b1e[_0x1aeed6(0x290)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x23f)):_0x155b1e[_0x1aeed6(0x247)]?_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x24f)):_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x26b)):_0x5e9459(this[_0x1aeed6(0x23c)][_0x1aeed6(0x24e)],_0x1aeed6(0x26b));}[_0x3728d8(0x1ed)](_0x18e183,_0x461a79,_0x4a9f2f,_0x2c3c1a){const _0x139cdf=_0x3728d8;this[_0x139cdf(0x289)][_0x139cdf(0x1ed)](_0x18e183,_0x461a79,_0x4a9f2f,_0x2c3c1a);}[_0x3728d8(0x291)](_0x47d2a9){const _0x57723b=_0x3728d8;this[_0x57723b(0x289)][_0x57723b(0x291)](_0x47d2a9);}[_0x3728d8(0x1fd)](_0x32adcc){const _0x58eb4c=_0x3728d8;this[_0x58eb4c(0x289)][_0x58eb4c(0x266)][_0x58eb4c(0x1fd)](_0x32adcc);}[_0x3728d8(0x25f)](_0x4c0d89=!0x1){const _0x28b4cf=_0x3728d8;this[_0x28b4cf(0x289)][_0x28b4cf(0x266)][_0x28b4cf(0x25f)](_0x4c0d89);}[_0x3728d8(0x241)](_0x4b90db,_0x4024ec){const _0x6f23cc=_0x3728d8;this[_0x6f23cc(0x289)][_0x6f23cc(0x248)][_0x6f23cc(0x25b)](_0x4b90db,_0x4024ec);}[_0x3728d8(0x213)](){const _0x4dd254=_0x3728d8;this[_0x4dd254(0x289)][_0x4dd254(0x248)][_0x4dd254(0x213)]();}[_0x3728d8(0x200)](){const _0xf6dd2d=_0x3728d8;this[_0xf6dd2d(0x289)][_0xf6dd2d(0x266)][_0xf6dd2d(0x1f6)]=!0x0;}[_0x3728d8(0x28e)](){const _0x57702b=_0x3728d8;this[_0x57702b(0x289)][_0x57702b(0x266)][_0x57702b(0x1f6)]=!0x1;}}
@@ -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 _0x1f3000=_0x2553;(function(_0x3b5f75,_0xe25123){const _0x5969d0=_0x2553,_0x568b1d=_0x3b5f75();while(!![]){try{const _0x2486be=parseInt(_0x5969d0(0x1b3))/0x1+-parseInt(_0x5969d0(0x208))/0x2*(-parseInt(_0x5969d0(0x201))/0x3)+parseInt(_0x5969d0(0x1dd))/0x4*(parseInt(_0x5969d0(0x1c5))/0x5)+-parseInt(_0x5969d0(0x1f0))/0x6+parseInt(_0x5969d0(0x1d6))/0x7*(-parseInt(_0x5969d0(0x1c9))/0x8)+-parseInt(_0x5969d0(0x1e4))/0x9*(parseInt(_0x5969d0(0x19f))/0xa)+parseInt(_0x5969d0(0x1ba))/0xb;if(_0x2486be===_0xe25123)break;else _0x568b1d['push'](_0x568b1d['shift']());}catch(_0x5e6d1f){_0x568b1d['push'](_0x568b1d['shift']());}}}(_0x25b9,0xcc98c));import{CKEditorError as _0x90de28,ObservableMixin as _0x11f989,uid as _0x46282b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3aa11a,AIContextTextResourceType as _0x3c19ed}from'../../aicore/model/aicontext.js';import{escape as _0xcc2a2c}from'es-toolkit/compat';function _0x25b9(){const _0x36a278=['getId','_pendingContextItems','text/plain','uploadDocument','addCurrentDocumentToContext','File','FILE','resourceId','Current\x20document','values','1176542nnFoXu','removeFromContext','uploadProgressChanged','isReadOnly','isInContext','text/html','selection','1751717yezVXy','URL','files-','getSentContextItems','fetchDocument','MARKDOWN','_finishUploadOperation','url-','push','document','getData','3305635wEdOGC','object','sources','isCurrentDocumentInContext','112AuqOmx','mcpServerName','toolName','addResourceToContext','files','_startUploadOperation','_ownerId','clearPendingContextItems','abort','isCurrentDocumentInConversation','isHidden','abortController','enabled','710913qcLatz','contextItemLoadingEnded','_toggleAddCurrentDocumentOptionVisibility','string','_findSourceIdsByResourceId','_convertTextResourceToFile','ai-chat-source-not-found','8RbhTOs','SELECTION','uploadFile','TEXT','ai-chat-url-upload-failed','delete','HTML','18xLLjOV','uiId','data','fire','uploadUrl','start','ai-chat-source-resources-load-failed','contextItemRemoved','text/markdown','object\x20with\x20content\x20and\x20type\x20properties','addToConversationContext','has','4428270HPjxjB','_getCustomSourcesInitialState','getResources','addContextOptionsChanged','customItems','_mapContextItemToRequestData','_isResourceInContext','_ongoingUploads','version','urls','stack','ai-chat-document-upload-failed','find','_createContextItemFromContent','removeSelectionFromContext','attributes','_config','1474509XqehXY','getDocument','ai-chat-resource-no-data','mapContextItemsToRequestData','_setAddContextOptionsDefaultState','TOOL','from','4IggyEx','_connector','ai-request-aborted','sourceResourcesLoaded','_conversationContextItems','DOCUMENT','_finishContextItemLoading','name','ai-chat-context-unsupported-type','ai-chat-context-invalid-data','map','addSelectionToContext','code','message','_ongoingUploadOperations','_addToConversationContextItem','set','getPendingContextItems','length','all','_updateResourceInContextState','sessionId','filter','type','size','ai-chat-resource-load-failed','init','_removeContextItem','substring','label','isSelectionInContext','contextItemAdded','content','end','forEach','error','ai-chat-file-upload-failed','url','populateFromMessage','_addContextOptionsState','hidden','addUrlToContext','updateCurrentDocument','startsWith','resources','3215750zcgqvS','_addContextItem','resourceStateChanged','loadSourceResources','current-document','contextSent','file-','addToolItemToContext','addFilesToContext','get'];_0x25b9=function(){return _0x36a278;};return _0x25b9();}import{errorsMap as _0x54a4fe}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1f3000(0x191),_0x1f3000(0x1eb),_0x1f3000(0x1d7),_0x1f3000(0x1a4),_0x1f3000(0x195),_0x1f3000(0x1f3),_0x1f3000(0x175),_0x1f3000(0x1a1),_0x1f3000(0x1b5)];function _0x2553(_0x2f8153,_0xf27da8){const _0x25b9c4=_0x25b9();return _0x2553=function(_0x255341,_0xe0c358){_0x255341=_0x255341-0x173;let _0x4f2af0=_0x25b9c4[_0x255341];return _0x4f2af0;},_0x2553(_0x2f8153,_0xf27da8);}export class AIChatContext extends _0x11f989(){[_0x1f3000(0x173)];[_0x1f3000(0x200)];[_0x1f3000(0x1cf)];constructor({connector:_0x268a12,config:_0x3af1e5,ownerId:_0x4e86a4}){const _0x2a82eb=_0x1f3000;super(),this[_0x2a82eb(0x173)]=_0x268a12,this[_0x2a82eb(0x200)]=_0x3af1e5,this[_0x2a82eb(0x1cf)]=_0x4e86a4;}[_0x1f3000(0x18c)](){const _0x1ebc48=_0x1f3000;this[_0x1ebc48(0x1aa)]=new Map(),this[_0x1ebc48(0x176)]=new Map(),this[_0x1ebc48(0x1f7)]=new Map(),this[_0x1ebc48(0x180)]=new Map(),this[_0x1ebc48(0x205)]();}[_0x1f3000(0x183)](){const _0x7bb694=_0x1f3000;return this[_0x7bb694(0x1aa)];}async[_0x1f3000(0x198)](_0x430d88){const _0x72b72d=_0x1f3000,_0x4d858a=await this[_0x72b72d(0x1fd)](_0x430d88);return this[_0x72b72d(0x181)](_0x4d858a),_0x72b72d(0x1a3)===_0x4d858a[_0x72b72d(0x1e5)]&&this[_0x72b72d(0x1d8)](),_0x4d858a;}async[_0x1f3000(0x1fd)](_0x54551a){const _0x14c082=_0x1f3000;if(_0x54551a[_0x14c082(0x189)]===_0x3aa11a[_0x14c082(0x177)]){const _0x23e7c7=await this[_0x14c082(0x173)][_0x14c082(0x1be)](this[_0x14c082(0x1cf)],_0x54551a['id'])[_0x14c082(0x202)]();return{'id':_0x14c082(0x1a3),'uiId':_0x14c082(0x1a3),'label':_0x14c082(0x1b1),'type':_0x54551a[_0x14c082(0x189)],'content':_0x23e7c7[_0x14c082(0x192)],'hidden':this[_0x14c082(0x176)][_0x14c082(0x1ef)](_0x14c082(0x1a3)),'version':_0x23e7c7[_0x14c082(0x1ff)]?.[_0x14c082(0x1f8)],'sessionId':_0x23e7c7[_0x14c082(0x1ff)]?.[_0x14c082(0x187)]};}if(_0x54551a[_0x14c082(0x189)]===_0x3aa11a[_0x14c082(0x206)])return{'id':_0x54551a['id'],'uiId':_0x54551a['id'],'label':_0x54551a[_0x14c082(0x1e6)]?.[_0x14c082(0x18f)]||_0x54551a['id'],'type':_0x3aa11a[_0x14c082(0x206)],'mcpServerName':_0x54551a[_0x14c082(0x1ca)],'toolName':_0x54551a[_0x14c082(0x1cb)],'data':_0x54551a[_0x14c082(0x1e6)]||{}};return{'id':_0x54551a['id'],'uiId':_0x54551a['id'],'label':_0x54551a[_0x14c082(0x1ff)]?.[_0x14c082(0x18f)]||_0x54551a[_0x14c082(0x179)]||_0x54551a[_0x14c082(0x197)]||_0x54551a['id'],'type':_0x54551a[_0x14c082(0x189)],..._0x54551a?.[_0x14c082(0x1ff)]?.[_0x14c082(0x1b0)]?{'resourceId':_0x54551a[_0x14c082(0x1ff)]?.[_0x14c082(0x1b0)]}:{}};}[_0x1f3000(0x1bd)](){const _0x40dc38=_0x1f3000;return new Map(this[_0x40dc38(0x176)]);}[_0x1f3000(0x1b4)](_0x443f37){const _0x1a9899=_0x1f3000,_0x4cbae3=this[_0x1a9899(0x1aa)][_0x1a9899(0x1a8)](_0x443f37);_0x4cbae3?.[_0x1a9899(0x1b6)]||this[_0x1a9899(0x18d)](_0x443f37);}[_0x1f3000(0x1d0)](){const _0x7319a7=_0x1f3000;if(0x0===this[_0x7319a7(0x1aa)][_0x7319a7(0x18a)])return;for(const _0x1416eb of this[_0x7319a7(0x1aa)][_0x7319a7(0x1b2)]())this[_0x7319a7(0x18d)](_0x1416eb[_0x7319a7(0x1e5)]);const _0x4e4d66=this[_0x7319a7(0x176)][_0x7319a7(0x1a8)](_0x7319a7(0x1a3))||this[_0x7319a7(0x1aa)][_0x7319a7(0x1a8)](_0x7319a7(0x1a3));_0x4e4d66&&this[_0x7319a7(0x1a0)]({..._0x4e4d66,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1f3000(0x1ee)](_0x353111){const _0x4f3964=_0x1f3000;for(const _0x1978c0 of _0x353111[_0x4f3964(0x1b2)]())this[_0x4f3964(0x181)](_0x1978c0);this[_0x4f3964(0x1d0)](),this[_0x4f3964(0x1e7)](_0x4f3964(0x1a4),{'contextItems':Array[_0x4f3964(0x207)](this[_0x4f3964(0x1bd)]()[_0x4f3964(0x1b2)]())});}[_0x1f3000(0x1c8)](){const _0x476c34=_0x1f3000;return this[_0x476c34(0x1aa)][_0x476c34(0x1ef)](_0x476c34(0x1a3));}[_0x1f3000(0x190)](){const _0x517b90=_0x1f3000;return this[_0x517b90(0x1aa)][_0x517b90(0x1ef)](_0x517b90(0x1b9));}[_0x1f3000(0x1d2)](){const _0xd80bcc=_0x1f3000;return this[_0xd80bcc(0x176)][_0xd80bcc(0x1ef)](_0xd80bcc(0x1a3));}static[_0x1f3000(0x204)](_0x3c832a){const _0x1e1238=_0x1f3000;return Array[_0x1e1238(0x207)](_0x3c832a[_0x1e1238(0x1b2)]())[_0x1e1238(0x17c)](_0x4d131a=>this[_0x1e1238(0x1f5)](_0x4d131a))[_0x1e1238(0x188)](_0x55f607=>null!==_0x55f607);}async[_0x1f3000(0x1a7)](_0x538f96,_0x19d802,_0x5000a0=_0x3aa11a[_0x1f3000(0x1af)]){const _0x9d3708=_0x1f3000,_0x1792e3=_0x9d3708(0x1bc)+_0x46282b();this[_0x9d3708(0x1ce)](_0x1792e3);try{await Promise[_0x9d3708(0x185)](_0x538f96[_0x9d3708(0x17c)](async _0x4b7cf4=>{const _0x2b6611=_0x9d3708,_0x4e5c8a=_0x2b6611(0x1a5)+_0x46282b(),_0x2cc2a5=_0xcc2a2c(_0x4b7cf4[_0x2b6611(0x179)]);try{this[_0x2b6611(0x1a0)]({'type':_0x5000a0,'label':_0x19d802?.[_0x2b6611(0x18f)]||_0x2cc2a5,'uiId':_0x4e5c8a,'resourceId':_0x19d802?.[_0x2b6611(0x1b0)]},!0x0);const _0x273451=this[_0x2b6611(0x173)][_0x2b6611(0x1df)](this[_0x2b6611(0x1cf)],_0x4b7cf4,_0x19d802);this[_0x2b6611(0x1f7)][_0x2b6611(0x182)](_0x4e5c8a,_0x273451[_0x2b6611(0x1d4)]);const {id:_0x1a8cb7}=await _0x273451[_0x2b6611(0x1a9)]();this[_0x2b6611(0x1f7)][_0x2b6611(0x1e2)](_0x4e5c8a),this[_0x2b6611(0x178)]({'type':_0x5000a0,'id':_0x1a8cb7,'label':_0x19d802?.[_0x2b6611(0x18f)]||_0x2cc2a5,'uiId':_0x4e5c8a,'resourceId':_0x19d802?.[_0x2b6611(0x1b0)]},!0x1);}catch(_0x2c2613){this[_0x2b6611(0x1f7)][_0x2b6611(0x1e2)](_0x4e5c8a);if(!(_0x2c2613 instanceof _0x90de28&&_0x2c2613[_0x2b6611(0x17f)][_0x2b6611(0x19d)](_0x2b6611(0x174)))){const _0x59002f=_0x54a4fe[_0x2b6611(0x1a8)](_0x2c2613[_0x2b6611(0x17e)])||_0x2b6611(0x196),_0x332659=new _0x90de28(_0x59002f,null,{'fileName':_0x2cc2a5,..._0x2c2613});_0x332659[_0x2b6611(0x1fa)]=_0x2c2613[_0x2b6611(0x1fa)],this[_0x2b6611(0x1e7)](_0x2b6611(0x195),{'error':_0x332659});}this[_0x2b6611(0x18d)](_0x4e5c8a);}}));}finally{this[_0x9d3708(0x1c0)](_0x1792e3);}}[_0x1f3000(0x1ad)](_0x11db71){const _0x34f575=_0x1f3000;if(this[_0x34f575(0x1c8)]()||!this[_0x34f575(0x199)][_0x34f575(0x1c3)][_0x34f575(0x1d5)])return;const _0x5a075d={'type':_0x3aa11a[_0x34f575(0x177)],'uiId':_0x34f575(0x1a3),'label':_0x11db71,'isReadOnly':this[_0x34f575(0x176)][_0x34f575(0x1ef)](_0x34f575(0x1a3)),'hidden':this[_0x34f575(0x176)][_0x34f575(0x1ef)](_0x34f575(0x1a3))};this[_0x34f575(0x1a0)](_0x5a075d);}async[_0x1f3000(0x19c)](_0x3c9409,_0x220e82,_0x1baf6d,_0x20361a){const _0x5765d2=_0x1f3000,_0x56c6f7=this[_0x5765d2(0x1aa)][_0x5765d2(0x1a8)](_0x5765d2(0x1a3));if(_0x56c6f7&&_0x3c9409){_0x56c6f7[_0x5765d2(0x1b9)]=_0x20361a?_0x20361a[_0x5765d2(0x17c)](_0x243621=>({'start':_0x243621[_0x5765d2(0x1e9)],'end':_0x243621[_0x5765d2(0x193)]})):[];try{if(_0x56c6f7[_0x5765d2(0x1f8)]===_0x220e82)return;const {id:_0x387311}=await this[_0x5765d2(0x173)][_0x5765d2(0x1ac)](this[_0x5765d2(0x1cf)],_0x3c9409,{'version':_0x220e82,'sessionId':_0x1baf6d})[_0x5765d2(0x1a9)]();_0x56c6f7['id']=_0x387311,_0x56c6f7[_0x5765d2(0x192)]=_0x3c9409,_0x56c6f7[_0x5765d2(0x1f8)]=_0x220e82,_0x56c6f7[_0x5765d2(0x187)]=_0x1baf6d;}catch(_0x3f5752){const _0x42a0cc=new _0x90de28(_0x5765d2(0x1fb),null);_0x42a0cc[_0x5765d2(0x1fa)]=_0x3f5752[_0x5765d2(0x1fa)],this[_0x5765d2(0x1e7)](_0x5765d2(0x195),{'error':_0x42a0cc});}}}[_0x1f3000(0x17d)](_0x28769b){const _0x42f912=_0x1f3000;this[_0x42f912(0x1a0)]({'type':_0x3aa11a[_0x42f912(0x1de)],'label':_0x28769b,'uiId':_0x42f912(0x1b9),'content':_0x28769b});}[_0x1f3000(0x1fe)](){const _0x4cc1eb=_0x1f3000;this[_0x4cc1eb(0x18d)](_0x4cc1eb(0x1b9));}async[_0x1f3000(0x19b)](_0x2fe5b4,_0x217789){const _0x321cf6=_0x1f3000,_0x34dc86=_0x321cf6(0x1c1)+_0x46282b();this[_0x321cf6(0x1ce)](_0x34dc86);const _0x1aa94a=_0x321cf6(0x1c1)+_0x46282b();try{this[_0x321cf6(0x1a0)]({'type':_0x3aa11a[_0x321cf6(0x1bb)],'label':_0x217789?.[_0x321cf6(0x18f)]||_0x2fe5b4,'uiId':_0x1aa94a,'resourceId':_0x217789?.[_0x321cf6(0x1b0)]},!0x0);const _0x9d3f33=this[_0x321cf6(0x173)][_0x321cf6(0x1e8)](this[_0x321cf6(0x1cf)],_0x2fe5b4,_0x217789);this[_0x321cf6(0x1f7)][_0x321cf6(0x182)](_0x1aa94a,_0x9d3f33[_0x321cf6(0x1d4)]);const {id:_0x2f46e4}=await _0x9d3f33[_0x321cf6(0x1a9)]();this[_0x321cf6(0x1f7)][_0x321cf6(0x1e2)](_0x1aa94a),this[_0x321cf6(0x178)]({'type':_0x3aa11a[_0x321cf6(0x1bb)],'id':_0x2f46e4,'label':_0x217789?.[_0x321cf6(0x18f)]||_0x2fe5b4,'uiId':_0x1aa94a,'resourceId':_0x217789?.[_0x321cf6(0x1b0)]},!0x1);}catch(_0x573a1a){this[_0x321cf6(0x1f7)][_0x321cf6(0x1e2)](_0x1aa94a),(_0x573a1a[_0x321cf6(0x17f)][_0x321cf6(0x19d)](_0x321cf6(0x174))||this[_0x321cf6(0x1e7)](_0x321cf6(0x195),{'error':new _0x90de28(_0x321cf6(0x1e1),this,{'url':_0x2fe5b4,'originalError':_0x573a1a}),'url':_0x2fe5b4}),this[_0x321cf6(0x18d)](_0x1aa94a));}finally{this[_0x321cf6(0x1c0)](_0x34dc86);}}[_0x1f3000(0x1a6)](_0x42226f){const _0x517d85=_0x1f3000;_0x42226f['id']=_0x42226f['id']??_0x46282b()[_0x517d85(0x18e)](0x0,0x15),this[_0x517d85(0x1aa)][_0x517d85(0x182)](_0x42226f[_0x517d85(0x1e5)],_0x42226f),this[_0x517d85(0x1e7)](_0x517d85(0x191),{'contextItem':_0x42226f,'isLoading':!0x1});}async[_0x1f3000(0x1a2)](_0xcf63db,_0x346539,_0x194055){const _0x353e49=_0x1f3000,_0x137fab=this[_0x353e49(0x199)][_0x353e49(0x1c7)][_0x353e49(0x1fc)](_0x161b95=>_0x161b95['id']===_0xcf63db);if(!_0x137fab)return this[_0x353e49(0x1e7)](_0x353e49(0x195),{'error':new _0x90de28(_0x353e49(0x1dc),this,{'sourceId':_0xcf63db}),'sourceId':_0xcf63db}),[];try{const _0x29bdb2=(await _0x137fab[_0x353e49(0x1f2)](_0x346539))[_0x353e49(0x17c)](_0x2d63dc=>{const _0x2d9f7e=_0x353e49,_0xfd6502=this[_0x2d9f7e(0x1f6)](_0x2d63dc['id']);return{..._0x2d63dc,'isInContext':_0xfd6502};});return _0x137fab[_0x353e49(0x19e)]=_0x29bdb2,this[_0x353e49(0x1e7)](_0x353e49(0x175),{'sourceId':_0xcf63db,'source':_0x137fab,'resources':_0x29bdb2,'uid':_0x194055}),_0x29bdb2;}catch(_0x264976){return this[_0x353e49(0x1e7)](_0x353e49(0x195),{'error':new _0x90de28(_0x353e49(0x1ea),this,{'sourceId':_0xcf63db,'originalError':_0x264976}),'sourceId':_0xcf63db,'sourceLabel':_0x137fab[_0x353e49(0x18f)]}),[];}}async[_0x1f3000(0x1cc)](_0x47c103,_0x585287){const _0x4387c2=_0x1f3000;if(this[_0x4387c2(0x1f6)](_0x585287['id']))return;let _0x4e8612=_0x585287[_0x4387c2(0x1e6)];if(!_0x4e8612&&_0x47c103[_0x4387c2(0x1c4)])try{_0x4e8612=await _0x47c103[_0x4387c2(0x1c4)](_0x585287['id']);}catch(_0x169db3){return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x18b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'originalError':_0x169db3}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}if(_0x4e8612)switch(_0x585287[_0x4387c2(0x189)]){case _0x3aa11a[_0x4387c2(0x1bb)]:if(_0x4387c2(0x1d9)!=typeof _0x4e8612)return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1d9),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});await this[_0x4387c2(0x19b)](_0x4e8612,{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']});break;case _0x3aa11a[_0x4387c2(0x1af)]:if(!(_0x4e8612 instanceof File))return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1ae),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});await this[_0x4387c2(0x1a7)]([_0x4e8612],{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']});break;case _0x3aa11a[_0x4387c2(0x1e0)]:if(_0x4387c2(0x1c6)!=typeof _0x4e8612||!(_0x4387c2(0x192)in _0x4e8612)||!(_0x4387c2(0x189)in _0x4e8612))return void this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17b),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'expectedType':_0x4387c2(0x1ed),'actualType':typeof _0x4e8612}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});_0x4e8612=AIChatContext[_0x4387c2(0x1db)](_0x4e8612,_0x585287[_0x4387c2(0x18f)]),await this[_0x4387c2(0x1a7)]([_0x4e8612],{'label':_0x585287[_0x4387c2(0x18f)],'resourceId':_0x585287['id']},_0x3aa11a[_0x4387c2(0x1e0)]);break;case _0x3aa11a[_0x4387c2(0x206)]:break;default:this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x17a),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id'],'resourceType':_0x585287[_0x4387c2(0x189)]}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}else this[_0x4387c2(0x1e7)](_0x4387c2(0x195),{'error':new _0x90de28(_0x4387c2(0x203),this,{'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']}),'resourceId':_0x585287['id'],'sourceId':_0x47c103['id']});}static[_0x1f3000(0x1db)](_0x15d955,_0x4a7270){const _0x42e856=_0x1f3000;switch(_0x15d955[_0x42e856(0x189)]){case _0x3c19ed[_0x42e856(0x1bf)]:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1ec)});case _0x3c19ed[_0x42e856(0x1e3)]:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1b8)});default:return new File([_0x15d955[_0x42e856(0x192)]],_0x4a7270,{'type':_0x42e856(0x1ab)});}}static[_0x1f3000(0x1f5)](_0x1bc0a1){const _0xb360b5=_0x1f3000;switch(_0x1bc0a1[_0xb360b5(0x189)]){case _0x3aa11a[_0xb360b5(0x1af)]:return{'type':_0x3aa11a[_0xb360b5(0x1af)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x1bb)]:return{'type':_0x3aa11a[_0xb360b5(0x1bb)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x177)]:return{'type':_0x3aa11a[_0xb360b5(0x177)],'id':_0x1bc0a1['id'],..._0x1bc0a1[_0xb360b5(0x1b9)]?.[_0xb360b5(0x184)]&&{'selection':_0x1bc0a1[_0xb360b5(0x1b9)]}};case _0x3aa11a[_0xb360b5(0x1e0)]:return{'type':_0x3aa11a[_0xb360b5(0x1af)],'id':_0x1bc0a1['id']};case _0x3aa11a[_0xb360b5(0x206)]:{const _0x3f101b=_0x1bc0a1;return{'type':_0x3aa11a[_0xb360b5(0x206)],'mcpServerName':_0x3f101b[_0xb360b5(0x1ca)],'toolName':_0x3f101b[_0xb360b5(0x1cb)],'data':_0x3f101b[_0xb360b5(0x1e6)],'id':_0x3f101b['id']};}default:return null;}}[_0x1f3000(0x1a0)](_0x399510,_0x2025ee=!0x1){const _0x486417=_0x1f3000;if(this[_0x486417(0x1aa)][_0x486417(0x182)](_0x399510[_0x486417(0x1e5)],_0x399510),_0x399510[_0x486417(0x19a)]||this[_0x486417(0x1e7)](_0x486417(0x191),{'contextItem':_0x399510,'isLoading':_0x2025ee}),_0x486417(0x1a3)===_0x399510[_0x486417(0x1e5)]&&this[_0x486417(0x1d8)](),_0x399510[_0x486417(0x1b0)]){const _0x39fbaf=this[_0x486417(0x1da)](_0x399510[_0x486417(0x1b0)]);_0x39fbaf&&_0x39fbaf[_0x486417(0x194)](_0x164b6d=>{const _0x3a2075=_0x486417;this[_0x3a2075(0x186)](_0x164b6d,_0x399510[_0x3a2075(0x1b0)],!0x0);});}}[_0x1f3000(0x18d)](_0x476c5d){const _0x5371b6=_0x1f3000,_0xb80b14=this[_0x5371b6(0x1aa)][_0x5371b6(0x1a8)](_0x476c5d),_0x3f8ada=this[_0x5371b6(0x1f7)][_0x5371b6(0x1a8)](_0x476c5d);if(_0x3f8ada&&(_0x3f8ada[_0x5371b6(0x1d1)](),this[_0x5371b6(0x1f7)][_0x5371b6(0x1e2)](_0x476c5d)),_0xb80b14?.[_0x5371b6(0x1b0)]){const _0x181cf1=this[_0x5371b6(0x1da)](_0xb80b14[_0x5371b6(0x1b0)]);_0x181cf1&&_0x181cf1[_0x5371b6(0x194)](_0x2ec17d=>{const _0x5c59df=_0x5371b6;this[_0x5c59df(0x186)](_0x2ec17d,_0xb80b14[_0x5c59df(0x1b0)],!0x1);});}this[_0x5371b6(0x1aa)][_0x5371b6(0x1e2)](_0x476c5d),this[_0x5371b6(0x1e7)](_0x5371b6(0x1eb),{'uiId':_0x476c5d,'type':_0xb80b14?.[_0x5371b6(0x189)]}),_0x5371b6(0x1a3)===_0x476c5d&&this[_0x5371b6(0x1d8)]();}[_0x1f3000(0x178)](_0x178922,_0x4c2e03){const _0x12f5d8=_0x1f3000;if(this[_0x12f5d8(0x1aa)][_0x12f5d8(0x1ef)](_0x178922[_0x12f5d8(0x1e5)])&&(this[_0x12f5d8(0x1aa)][_0x12f5d8(0x182)](_0x178922[_0x12f5d8(0x1e5)],_0x178922),this[_0x12f5d8(0x1e7)](_0x12f5d8(0x1d7),{'contextItem':_0x178922,'isLoading':_0x4c2e03}),_0x178922[_0x12f5d8(0x1b0)])){const _0x281b3a=this[_0x12f5d8(0x1da)](_0x178922[_0x12f5d8(0x1b0)]);_0x281b3a&&_0x281b3a[_0x12f5d8(0x194)](_0x936c7d=>{const _0x4fa056=_0x12f5d8;this[_0x4fa056(0x186)](_0x936c7d,_0x178922[_0x4fa056(0x1b0)],!0x0);});}}[_0x1f3000(0x181)](_0x12ac68){const _0x5d6484=_0x1f3000;this[_0x5d6484(0x176)][_0x5d6484(0x182)](_0x12ac68[_0x5d6484(0x1e5)],_0x12ac68);}[_0x1f3000(0x205)](){const _0x3f84be=_0x1f3000;this[_0x3f84be(0x199)]={'document':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1c3)]?.[_0x3f84be(0x1d5)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1f9)]?.[_0x3f84be(0x1d5)]},'files':{'enabled':!0x1!==this[_0x3f84be(0x200)]?.[_0x3f84be(0x1cd)]?.[_0x3f84be(0x1d5)]},'sources':this[_0x3f84be(0x1f1)](),'customItems':this[_0x3f84be(0x200)]?.[_0x3f84be(0x1f4)]?.[_0x3f84be(0x17c)](_0x199626=>({..._0x199626,'enabled':!0x0}))??[]},this[_0x3f84be(0x1e7)](_0x3f84be(0x1f3),{'options':this[_0x3f84be(0x199)]});}[_0x1f3000(0x1f1)](){const _0x135878=_0x1f3000;return this[_0x135878(0x200)]?.[_0x135878(0x1c7)]?.[_0x135878(0x17c)](_0x325dea=>({..._0x325dea,'resources':[]}))??[];}[_0x1f3000(0x1d8)](){const _0x3dc796=_0x1f3000,_0x270429=this[_0x3dc796(0x1c8)]()||this[_0x3dc796(0x1d2)]();this[_0x3dc796(0x199)][_0x3dc796(0x1c3)][_0x3dc796(0x1d3)]=_0x270429,this[_0x3dc796(0x1e7)](_0x3dc796(0x1f3),{'options':this[_0x3dc796(0x199)]});}[_0x1f3000(0x1f6)](_0x5b4ce9){const _0x3b951a=_0x1f3000;for(const _0x2f47f3 of this[_0x3b951a(0x1aa)][_0x3b951a(0x1b2)]())if(_0x2f47f3[_0x3b951a(0x1b0)]===_0x5b4ce9)return!0x0;for(const _0x31930d of this[_0x3b951a(0x176)][_0x3b951a(0x1b2)]())if(_0x31930d[_0x3b951a(0x1b0)]===_0x5b4ce9)return!0x0;return!0x1;}[_0x1f3000(0x1da)](_0x57d1db){const _0x83eae7=_0x1f3000,_0x1d0fb6=[];for(const _0x4ee917 of this[_0x83eae7(0x199)][_0x83eae7(0x1c7)]){_0x4ee917[_0x83eae7(0x19e)][_0x83eae7(0x1fc)](_0xbf7792=>_0xbf7792['id']===_0x57d1db)&&_0x1d0fb6[_0x83eae7(0x1c2)](_0x4ee917['id']);}return 0x0===_0x1d0fb6[_0x83eae7(0x184)]?null:_0x1d0fb6;}[_0x1f3000(0x186)](_0x1c8acf,_0x58990a,_0x5288d4){const _0x28e9e9=_0x1f3000,_0x40a579=this[_0x28e9e9(0x199)][_0x28e9e9(0x1c7)][_0x28e9e9(0x1fc)](_0x3dc217=>_0x3dc217['id']===_0x1c8acf);if(!_0x40a579)return;const _0x5d2c59=_0x40a579[_0x28e9e9(0x19e)][_0x28e9e9(0x1fc)](_0x446909=>_0x446909['id']===_0x58990a);_0x5d2c59&&(_0x5d2c59[_0x28e9e9(0x1b7)]=_0x5288d4,this[_0x28e9e9(0x1e7)](_0x28e9e9(0x1a1),{'sourceId':_0x1c8acf,'resourceId':_0x58990a,'isInContext':_0x5288d4}));}[_0x1f3000(0x1ce)](_0x95acef){const _0x339010=_0x1f3000;this[_0x339010(0x180)][_0x339010(0x182)](_0x95acef,!0x0),this[_0x339010(0x180)][_0x339010(0x18a)]&&this[_0x339010(0x1e7)](_0x339010(0x1b5),{'isUploadInProgress':!0x0});}[_0x1f3000(0x1c0)](_0x1efb21){const _0x43b587=_0x1f3000;this[_0x43b587(0x180)][_0x43b587(0x1e2)](_0x1efb21),0x0===this[_0x43b587(0x180)][_0x43b587(0x18a)]&&this[_0x43b587(0x1e7)](_0x43b587(0x1b5),{'isUploadInProgress':!0x1});}}