@ckeditor/ckeditor5-ai 47.7.5-alpha.0 → 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 _0xeb9d5c=_0x137d;(function(_0x147412,_0x4ebb10){const _0x4429e1=_0x137d,_0x1620d0=_0x147412();while(!![]){try{const _0x33d385=parseInt(_0x4429e1(0x7f))/0x1*(-parseInt(_0x4429e1(0xa7))/0x2)+-parseInt(_0x4429e1(0x7b))/0x3+-parseInt(_0x4429e1(0x68))/0x4*(-parseInt(_0x4429e1(0x90))/0x5)+parseInt(_0x4429e1(0x9c))/0x6*(parseInt(_0x4429e1(0x67))/0x7)+-parseInt(_0x4429e1(0x9f))/0x8*(-parseInt(_0x4429e1(0x6e))/0x9)+parseInt(_0x4429e1(0x89))/0xa+parseInt(_0x4429e1(0x81))/0xb*(-parseInt(_0x4429e1(0x87))/0xc);if(_0x33d385===_0x4ebb10)break;else _0x1620d0['push'](_0x1620d0['shift']());}catch(_0x4c750c){_0x1620d0['push'](_0x1620d0['shift']());}}}(_0x225b,0x82bf7));import{Plugin as _0x4a8ec5}from'ckeditor5/src/core.js';import{AIBalloon as _0x47422f}from'../aiballoon/aiballoon.js';function _0x225b(){const _0x4d3a82=['rejectSuggestion','toggleRotatorButtonsVisibility','133vQEVCu','144uyhOOB','set','config','_createChatBalloonView','beforeDialogClosed','locale','27nZrKES','applySuggestion','requires','ai.availableReplyActions','_chatBalloonView','remove','open','headerView','pluginName','has','once','updateContent','aiChatBalloon','506100EDqmca','showPrevious','showRotator','editor','8zXLXfa','isPremiumPlugin','5597240ucJreU','commands','close','children','nextButtonView','previousButtonView','12fbSOdE','showNext','492020RntbYS','filter','addMany','togglePartToolbarEnabled','setState','render','isTrackChangesOn','32995WklDqS','Dialog','areActionsDisabled','ck-ai-chat-balloon','AIChatBalloon','_restoreDefaultViewFocus','delegate','TrackChanges','isOfficialPlugin','focus','get','value','188628kaAeVF','_toggleRotatorButtonsInDialogHeader','trackChanges','1390024pzfedW','insertSuggestion','bind','view','plugins','AIBalloon','dialogClosed','showDiff','48066mzFEhc'];_0x225b=function(){return _0x4d3a82;};return _0x225b();}import{AI_REPLY_ACTIONS as _0x5e07a8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x236273}from'./ui/aichatballoonview.js';function _0x137d(_0x3ef0de,_0x1e1e20){const _0x225b5e=_0x225b();return _0x137d=function(_0x137d20,_0x55fca5){_0x137d20=_0x137d20-0x66;let _0x1ecd27=_0x225b5e[_0x137d20];return _0x1ecd27;},_0x137d(_0x3ef0de,_0x1e1e20);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbabe1}from'../aicore/utils/eventnames.js';import{Dialog as _0x49f404}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x4a8ec5{static get[_0xeb9d5c(0x70)](){return[_0x49f404,_0x47422f];}static get[_0xeb9d5c(0x76)](){const _0x58ddfa=_0xeb9d5c;return _0x58ddfa(0x94);}static get[_0xeb9d5c(0x98)](){return!0x0;}static get[_0xeb9d5c(0x80)](){return!0x0;}[_0xeb9d5c(0x72)];constructor(_0x474944){const _0x2bbc0e=_0xeb9d5c;super(_0x474944),this[_0x2bbc0e(0x69)](_0x2bbc0e(0xa6),!0x1);}[_0xeb9d5c(0x74)](_0x2b408b){const _0x11cd9b=_0xeb9d5c,_0x13c9ed=this[_0x11cd9b(0x7e)];this[_0x11cd9b(0x72)]||(this[_0x11cd9b(0x72)]=this[_0x11cd9b(0x6b)]()),_0x13c9ed[_0x11cd9b(0xa3)][_0x11cd9b(0x9a)](_0x11cd9b(0xa4))[_0x11cd9b(0x74)]({..._0x2b408b,'id':_0x11cd9b(0x7a),'class':_0x11cd9b(0x93),'mainView':this[_0x11cd9b(0x72)]}),this[_0x11cd9b(0x9d)](_0x2b408b[_0x11cd9b(0x7d)]),this[_0x11cd9b(0x72)][_0x11cd9b(0x8c)](!_0x2b408b[_0x11cd9b(0x92)]),this[_0x11cd9b(0x95)]();}[_0xeb9d5c(0x83)](){const _0x1f4122=_0xeb9d5c;this[_0x1f4122(0x7e)][_0x1f4122(0xa3)][_0x1f4122(0x9a)](_0x1f4122(0xa4))[_0x1f4122(0x83)]();}[_0xeb9d5c(0x79)](_0x286088){const _0x1cf8b8=_0xeb9d5c;return this[_0x1cf8b8(0x72)]||(this[_0x1cf8b8(0x72)]=this[_0x1cf8b8(0x6b)]()),this[_0x1cf8b8(0x72)][_0x1cf8b8(0x79)](_0x286088);}[_0xeb9d5c(0x8d)](_0x139294){const _0x3d66e2=_0xeb9d5c;this[_0x3d66e2(0x72)]&&this[_0x3d66e2(0x72)][_0x3d66e2(0x8d)](_0x139294);}[_0xeb9d5c(0x6b)](){const _0x22ac31=_0xeb9d5c,_0x579cf2=this[_0x22ac31(0x7e)],_0x20a414=_0x579cf2[_0x22ac31(0xa3)][_0x22ac31(0x9a)](_0x22ac31(0xa4)),_0x22e19a=_0x579cf2[_0x22ac31(0x82)][_0x22ac31(0x9a)](_0x22ac31(0x9e));let _0x388c0b=_0x579cf2[_0x22ac31(0x6a)][_0x22ac31(0x9a)](_0x22ac31(0x71))||[..._0x5e07a8];_0x579cf2[_0x22ac31(0xa3)][_0x22ac31(0x77)](_0x22ac31(0x97))||(_0x388c0b=_0x388c0b[_0x22ac31(0x8a)](_0x11b215=>_0x22ac31(0xa0)!=_0x11b215));const _0x141558=new _0x236273(_0x579cf2[_0x22ac31(0x6d)],{'availableActions':_0x388c0b,'showApplyButton':!0x0,'showSuggestButton':!!_0x22e19a});return _0x141558[_0x22ac31(0xa1)](_0x22ac31(0xa6))['to'](this),_0x141558[_0x22ac31(0x96)](..._0xbabe1)['to'](this),_0x141558[_0x22ac31(0x96)](_0x22ac31(0x7c),_0x22ac31(0x88))['to'](this),_0x20a414[_0x22ac31(0x96)](_0x22ac31(0xa5))['to'](this),_0x141558['on'](_0x22ac31(0x6f),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x141558['on'](_0x22ac31(0xa0),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x141558['on'](_0x22ac31(0xa8),this[_0x22ac31(0x95)][_0x22ac31(0xa1)](this)),_0x22e19a&&_0x141558[_0x22ac31(0xa1)](_0x22ac31(0x8f))['to'](_0x22e19a,_0x22ac31(0x9b)),_0x141558[_0x22ac31(0x8e)](),_0x141558;}[_0xeb9d5c(0x9d)](_0xf3829e){const _0x2208df=_0xeb9d5c,_0x1b3fa6=this[_0x2208df(0x7e)],_0x2e3bf0=_0x1b3fa6[_0x2208df(0xa3)][_0x2208df(0x9a)](_0x2208df(0x91))[_0x2208df(0xa2)][_0x2208df(0x75)][_0x2208df(0x84)];this[_0x2208df(0x72)][_0x2208df(0x66)](_0xf3829e),_0x2e3bf0[_0x2208df(0x77)](this[_0x2208df(0x72)][_0x2208df(0x86)])||(_0x2e3bf0[_0x2208df(0x8b)]([this[_0x2208df(0x72)][_0x2208df(0x86)],this[_0x2208df(0x72)][_0x2208df(0x85)]],0x0),_0x1b3fa6[_0x2208df(0xa3)][_0x2208df(0x9a)](_0x2208df(0xa4))[_0x2208df(0x78)](_0x2208df(0x6c),()=>{const _0x3c4c0d=_0x2208df;_0x2e3bf0[_0x3c4c0d(0x73)](this[_0x3c4c0d(0x72)][_0x3c4c0d(0x86)]),_0x2e3bf0[_0x3c4c0d(0x73)](this[_0x3c4c0d(0x72)][_0x3c4c0d(0x85)]);}));}[_0xeb9d5c(0x95)](){const _0x5704de=_0xeb9d5c;this[_0x5704de(0x72)][_0x5704de(0x99)]();}}
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
- function _0x5a9c(_0x8aacf4,_0x33982a){const _0x57d782=_0x57d7();return _0x5a9c=function(_0x5a9c01,_0x5a9f04){_0x5a9c01=_0x5a9c01-0x179;let _0x4aa8e5=_0x57d782[_0x5a9c01];return _0x4aa8e5;},_0x5a9c(_0x8aacf4,_0x33982a);}const _0x31c42f=_0x5a9c;(function(_0x299d24,_0x25050b){const _0x5093b1=_0x5a9c,_0x20b34d=_0x299d24();while(!![]){try{const _0x23e536=parseInt(_0x5093b1(0x262))/0x1+parseInt(_0x5093b1(0x246))/0x2*(parseInt(_0x5093b1(0x2be))/0x3)+parseInt(_0x5093b1(0x2ed))/0x4+parseInt(_0x5093b1(0x23b))/0x5*(parseInt(_0x5093b1(0x225))/0x6)+-parseInt(_0x5093b1(0x17f))/0x7+parseInt(_0x5093b1(0x181))/0x8+parseInt(_0x5093b1(0x221))/0x9*(-parseInt(_0x5093b1(0x291))/0xa);if(_0x23e536===_0x25050b)break;else _0x20b34d['push'](_0x20b34d['shift']());}catch(_0x497dd4){_0x20b34d['push'](_0x20b34d['shift']());}}}(_0x57d7,0x5c0dc));import{ContextPlugin as _0x251403,Editor as _0xec0008}from'ckeditor5/src/core.js';import{BodyCollection as _0xd55c29}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15e5c0,logError as _0x44f241,scrollViewportToShowTarget as _0x366ea2,uid as _0x516f73}from'ckeditor5/src/utils.js';import{AIConnector as _0x32a03f}from'../aicore/aiconnector.js';import{AITabs as _0x3d9193}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3caa70}from'./model/aichatconversation.js';import{getTranslation as _0x5e761d}from'../aicore/utils/common-translations.js';import{AIModels as _0x1f348b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0xa7d697}from'../aicore/utils/geteditorfromcontext.js';function _0x57d7(){const _0x449175=['toolDataReceived','domConverter','streaming','Showing\x20conversation\x20history...','sendUserMessage','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','node','_aiChatModels','DocumentCompare','text','end','selectModel','toString','finishInteraction','sendMessage','contextItem','isUploadInProgress','ai-no-track-changes','ai.chat.context','addResourceToContext','updateCapabilities','showNext','mapper','getPath','1481676FiqfDf','children','1782696DlGygT','toggleSuggestionDisplayMode','getDiff','TrackChangesEditing','startConversation','closeSourceResourceBalloon','_updateReplyContent','config','TrackChanges','_scrollToSuggestionRange','addFeedItemStaticMessage','nextSibling','setConversationTitle','collaboration.channelId','setFeedItemAIReplySuggestionPartActive','resourceStateChanged','getConversations','addFileToContext','createPositionAt','Undo','contextItemLoadingEnded','removeSelectionFromContext','split','interactionId','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','createReply','addUrlToContext','ai-chat-invalid-request','next','createPositionFromPath','updateContent','version','ai-chat-controller-mouse-over','handleRemovedConversation','rejected','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','resizedTabs','enableControls','ai.models.defaultModelId','selection','state','addOperation','clearPendingContextUI','alignToTop','addContextOptionsChanged','toViewRange','outdated','updateFeedItemAIReplySuggestionPartState','findIndex','addFeedItemCustomElement','_bodyCollection','_aiChatBalloonShowDiff','ai-chat-missing-channel-id','rejectSuggestion','Disliked\x20response','AIChatBalloon','ai-chat-context-form-data-size-limits-exceeded','uid','applyOperation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','ai-chat-conversation-start-failed','removeFromContext','requires','clearConversationContextUI','hasChanges','_getUserPresentableContentPartDocumentRange','ai-chat-context-unsupported-file-type','applySuggestion','cloneNode','init','data','_integrateEditor','locale','editing','addDocumentToContext','content','getDocumentData','prepareLoadingMessage','isOfficialPlugin','_logError','AI_CHAT_UNTITLED_CONVERSATION','resetMessageInput','AI_CHAT_GENERIC_ERROR','showChangeInText','activeConversation','redo','getInteractionAndReplyById','addFilesToContext','_aiEditing','getAttribute','addCurrentDocumentToChatContext','interactionFinished','set','modelSelected','modification','removed','current-document','_stopLastInteraction','disableControls','loadConversation','setSelectedModel','getSelectionText','_openBalloonFor','createdAt','addFeedInteractionHeader','populateSourceResourceBalloon','mouseLeaveSuggestion','AI_CHAT_INVALID_REQUEST','showDiff','isDisabled','getOperations','change','ai-chat-conversation-init-failed','delegate','changeGroups','startInteraction','AI_CHAT_UNABLE_TO_START_CONVERSATION','setIsUploadInProgress','lastCreated','isDocumentOperation','getInteraction','sourcePosition','createRange','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','setAddContextOptions','addSelectionToChatContext','commands','AIChatController','ai-chat-source-resources-load-failed','addFeedItemError','slice','ai-request-aborted','AIEditing','has','updateFeedItemAIReplySources','_removeFromContext','getRoot','replies','ai-chat-url-upload-failed','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getReply','startAutoScroll','loadSourceResources','error','focusPromptInput','isCurrentDocumentInConversation','getContentParts','replyChangeGroupStateUpdated','removeFeedInteraction','dialogClosed','_rejectSuggestion','_registerToolDataCallback','resources','stop','main','isModelAvailable','sources','open','lastInteraction','unshift','12087RCxyvg','editors','query','AITabs','24hChtNy','createConversation','resetConversationTitle','resize','filter','marker','chat','revert','detachFromDom','contextItems','isInContext','messageId','reasoningStarted','addSelectionToContext','toggleLoadingSkeleton','_handleStartConversation','Liked\x20response','_toggleReasoning','capabilitiesUpdated','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getAll','_getPresentableSiblingContentPartIndex','780680WzCNZM','isLoading','contextItemAdded','currentReply','interactionCreated','AI_CHAT_RESOURCE_LOAD_FAILED','listenTo','batch','remove','bind','_getDocumentRangeForReplyChanges','1202KMHpWq','setFeedItemRenderingStrategy','_getAIChatInteractionAPI','resetReasoningState','new','type','_applyOperationsAsSuggestions','getChild','length','context','sessionId','interactionDestroyed','view','$graveyard','updateCurrentDocumentInContext','attachToDom','insertSuggestion','selectedModel','toggleWebSearch','destroy','close','interactionStarted','contextSent','_handleUIUserMessage','ai-conversation-','addCurrentDocumentToContext','_applySuggestion','getDocumentContext','592008ldYuci','find','handleUserInteraction','replyId','resource','getFirstRange','range','baseVersion','map','removeContextItem','push','setLoadingMessage','model','ai-chat-file-upload-failed','like','ai.models','_getLastCreatedConversationId','_insertSuggestion','setModel','areActionsDisabled','webSearchFinished','webSearchStarted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','reasoningFinished','getChildAtOffset','scrollFeedToSuggestion','ai-chat-context-unsupported-type','forEach','updateResourceState','updateFeedItemAIReplySuggestionContent','load','replyCreated','fetchConversations','AI_BALLOON_HEADER_TITLE','_toggleWebSearch','contextItemRemoved','ai-chat-resource-load-failed','resetWebSearchState','setContextItemLoading','ai-chat-context-file-too-large','removeSelectionFromChatContext','start','updateConversationTitle','pluginName','setIsMaximized','_aiConnector','anchorId','12730gWowIh','isCurrentDocumentInContext','_aiChatBalloon','fetchConversation','getRanges','history','indexOf','conversationInitialized','upsertAIChatRating','stopInteraction','showFakeVisualSelection','documentContextContent','AIConnector','source','abortPromptStream','getTransformedByOperation','afterInit','dislike','changes','uploadProgressChanged','from','setChangeGroupState','_flushLastInteractionUI','howMany','index','document','_aiChatUi','getChildren','rootName','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAIReply','parse','_updateRatings','clearLoadingMessage','toggleReasoning','callback','activateTab','indexes','includes','setState','delete','resourceId','addFeedItemUserMessage','maxOffset','_setIsMaximized','3759olUPJO','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai-chat-conversation-not-found','startsWith','showPrevious','hideFakeVisualSelection','_showConversationHistory','message','resizeTabs','log','previous','sourceResourcesLoaded','pending','isPremiumPlugin','plugins','options','AI_CHAT_CONTEXT_FILE_TOO_LARGE','mouseOverSuggestion','_currentPreviewedChangeGroup','root','aiChatBalloon','ready','getConversation','replyContentUpdated','sourceId','add','executeCustomItemCallback','addFeedItemAISuggestion','_startConversationSafely','_createFromRanges','getGroupId','setConversationContext','get','viewRangeToDom','static','ai-chat-context-invalid-data','data-id','updateFeedItemAIReplyContent','isStarted','_batchToChanges','path','ai.chat.initialConversation','uiId','accepted','partIndex','AIChatUI','undo','423668LKKOVj','ai-chat-controller-no-active-conversation','ai-chat-context-file-too-many-pages','addContextItem','done','AI_CHAT_ABORTED_MESSAGE'];_0x57d7=function(){return _0x449175;};return _0x57d7();}import{DocumentCompare as _0x43c19c,DATA_ID_MODEL_ATTRIBUTE as _0x4d75fb}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5daf43,getOperationsFromReply as _0x423098}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x117423,getMinimalSelection as _0x1540c9}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x375f4a,_DetachOperation as _0x521334}from'ckeditor5/src/engine.js';import{findOne as _0x223ca0,getAttribute as _0x20876b,serialize as _0x1b4f52,Document as _0x33bf11,findByAttribute as _0x2c1814}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x251403{[_0x31c42f(0x1d9)];[_0x31c42f(0x28f)];[_0x31c42f(0x2ab)];[_0x31c42f(0x2fa)];[_0x31c42f(0x293)];[_0x31c42f(0x2e5)]=new Map();[_0x31c42f(0x2d0)]=null;[_0x31c42f(0x1b3)];static get[_0x31c42f(0x1bf)](){return[_0x32a03f,_0x43c19c];}static get[_0x31c42f(0x28d)](){const _0x4070c4=_0x31c42f;return _0x4070c4(0x200);}static get[_0x31c42f(0x1cf)](){return!0x0;}static get[_0x31c42f(0x2cb)](){return!0x0;}[_0x31c42f(0x1c6)](){const _0x3dce7f=_0x31c42f;this[_0x3dce7f(0x1b3)]=new _0xd55c29(this[_0x3dce7f(0x24f)][_0x3dce7f(0x1c9)]),this[_0x3dce7f(0x1b3)][_0x3dce7f(0x255)](),this[_0x3dce7f(0x28f)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x29d)),this[_0x3dce7f(0x2ab)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x2eb)),this[_0x3dce7f(0x1d9)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x205)),this[_0x3dce7f(0x2fa)]=new _0x1f348b({'connector':this[_0x3dce7f(0x28f)],'config':this[_0x3dce7f(0x24f)][_0x3dce7f(0x188)][_0x3dce7f(0x2de)](_0x3dce7f(0x271)),'locale':this[_0x3dce7f(0x24f)][_0x3dce7f(0x1c9)]});const _0x4d20eb=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x224));this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x185),()=>{const _0x2ae28e=_0x3dce7f;this[_0x2ae28e(0x2da)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2f7),(_0x5b5e77,_0x2986ea)=>{const _0x3b649f=_0x3dce7f;this[_0x3b649f(0x25d)]({'userMessage':_0x2986ea});}),this[_0x3dce7f(0x241)](_0x4d20eb,_0x3dce7f(0x1a5),(_0x419f64,_0x5e22fa)=>{const _0x49179e=_0x3dce7f;this[_0x49179e(0x2bd)](_0x5e22fa);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2c6),()=>{const _0x3d01dc=_0x3dce7f;_0x4d20eb[_0x3d01dc(0x228)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x29f),async()=>{const _0x3287f5=_0x3dce7f;await this[_0x3287f5(0x1e2)](),await this[_0x3287f5(0x2a7)](),this[_0x3287f5(0x28a)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1cb),()=>{const _0x58c5f8=_0x3dce7f;this[_0x58c5f8(0x1db)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x192),(_0x436750,_0x3faca9)=>{const _0x41775a=_0x3dce7f;this[_0x41775a(0x1d5)]?.[_0x41775a(0x1d8)](Array[_0x41775a(0x2a5)](_0x3faca9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x19b),(_0x4f0adb,_0x28e21a)=>{const _0x444501=_0x3dce7f;this[_0x444501(0x1d5)]?.[_0x444501(0x19b)](_0x28e21a);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2d8),(_0x43ff0b,_0x455472)=>{const _0x2f19df=_0x3dce7f;_0x455472[_0x2f19df(0x2b4)](this[_0x2f19df(0x24f)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x17a),(_0x555ba8,_0x48c901)=>{const _0x432d6c=_0x3dce7f;this[_0x432d6c(0x1d5)]?.[_0x432d6c(0x17a)](_0x48c901[_0x432d6c(0x29e)],_0x48c901[_0x432d6c(0x266)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x26b),(_0x4f47e7,_0xe46892)=>{const _0x11b101=_0x3dce7f;this[_0x11b101(0x208)](_0xe46892);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x20f),(_0x519247,_0x1ed445)=>{const _0x3b0596=_0x3dce7f;this[_0x3b0596(0x1d5)]?.[_0x3b0596(0x20f)](_0x1ed445[_0x3b0596(0x2d6)],_0x1ed445[_0x3b0596(0x223)],_0x1ed445[_0x3b0596(0x1ba)]);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x258),()=>{const _0x1aa792=_0x3dce7f;this[_0x1aa792(0x284)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2b3),()=>{const _0x2ce539=_0x3dce7f;this[_0x2ce539(0x236)]();}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2fe),(_0x23479a,_0x40a0b8)=>{const _0x333b4d=_0x3dce7f;this[_0x333b4d(0x1d5)]?.[_0x333b4d(0x274)](_0x40a0b8);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x270),(_0x14498b,{replyId:_0x4a7300})=>{const _0x18172e=_0x3dce7f;console[_0x18172e(0x2c7)](_0x18172e(0x235),_0x4a7300);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2a2),(_0x2e44be,{replyId:_0x5542ab})=>{const _0x18369d=_0x3dce7f;console[_0x18369d(0x2c7)](_0x18369d(0x1b7),_0x5542ab);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x256),(_0x3f36b5,_0x953c8e)=>{const _0x4f2291=_0x3dce7f;this[_0x4f2291(0x273)](_0x953c8e);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1d4),(_0x36bf7f,{replyId:_0x4125fa,partIndex:_0x59e9fc})=>{const _0x59294c=_0x3dce7f;this[_0x59294c(0x1b4)]=this[_0x59294c(0x2ab)][_0x59294c(0x1ed)],this[_0x59294c(0x1e7)](_0x4125fa,_0x59e9fc);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x2cf),(_0x59c65a,{replyId:_0x352aeb,partIndex:_0x329953})=>{const _0x250938=_0x3dce7f,_0x4b1a6b=this[_0x250938(0x245)](_0x352aeb,_0x329953);_0x4b1a6b&&_0x250938(0x253)!=_0x4b1a6b[_0x250938(0x268)][_0x250938(0x2d1)][_0x250938(0x2ad)]&&this[_0x250938(0x1d9)][_0x250938(0x29b)]([_0x4b1a6b[_0x250938(0x268)]],_0x250938(0x1a1));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1eb),()=>{const _0x285add=_0x3dce7f;this[_0x285add(0x1d9)][_0x285add(0x2c3)](_0x285add(0x1a1));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1c4),(_0x4652df,_0x16895b)=>{const _0x4e5ae4=_0x3dce7f;this[_0x4e5ae4(0x1d9)][_0x4e5ae4(0x2c3)](_0x4e5ae4(0x1a1)),this[_0x4e5ae4(0x260)](_0x16895b);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x182),async(_0x2ccefd,{replyId:_0x41a1f4,showDiff:_0x1e9e08})=>{const _0x51e2d6=_0x3dce7f,{reply:_0x13f879}=this[_0x51e2d6(0x1d7)](_0x41a1f4),_0x321c8a=_0x13f879[_0x51e2d6(0x213)]({'showDiff':_0x1e9e08});await this[_0x51e2d6(0x2ab)][_0x51e2d6(0x27f)]({'id':_0x13f879['id'],'parts':_0x321c8a,'renderingStrategy':_0x51e2d6(0x2e0)});}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x2ab)],_0x3dce7f(0x1b6),(_0x460c58,{replyId:_0x1c9950,partIndex:_0x1df9b4})=>{const _0x849710=_0x3dce7f;this[_0x849710(0x217)]({'replyId':_0x1c9950,'partIndex':_0x1df9b4}),this[_0x849710(0x1d9)][_0x849710(0x2c3)](_0x849710(0x1a1));}),this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x206)](_0x3dce7f(0x1b8))&&(this[_0x3dce7f(0x293)]=this[_0x3dce7f(0x24f)][_0x3dce7f(0x2cc)][_0x3dce7f(0x2de)](_0x3dce7f(0x1b8)),this[_0x3dce7f(0x1dd)](_0x3dce7f(0x1b4),!0x1),this[_0x3dce7f(0x293)][_0x3dce7f(0x244)](_0x3dce7f(0x1ed))['to'](this,_0x3dce7f(0x1b4)),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x182),()=>{const _0x2f9b6d=_0x3dce7f,{replyId:_0x1a463f,partIndex:_0x568643}=this[_0x2f9b6d(0x2d0)];this[_0x2f9b6d(0x1b4)]=!this[_0x2f9b6d(0x1b4)];const {reply:_0x365a81}=this[_0x2f9b6d(0x1d7)](_0x1a463f),_0x3264c5=_0x365a81[_0x2f9b6d(0x213)]({'showDiff':this[_0x2f9b6d(0x1b4)],'groupIndex':_0x568643});this[_0x2f9b6d(0x293)][_0x2f9b6d(0x19f)]({'part':_0x3264c5[0x0],'renderingStrategy':_0x2f9b6d(0x2e0),'keepErrors':!0x0});}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x1c4),()=>{const _0x2a6c31=_0x3dce7f,{replyId:_0x515132,partIndex:_0x100b66}=this[_0x2a6c31(0x2d0)];this[_0x2a6c31(0x260)]({'replyId':_0x515132,'partIndex':_0x100b66}),this[_0x2a6c31(0x293)][_0x2a6c31(0x2b8)](_0x2a6c31(0x2e9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x256),()=>{const _0x1257bf=_0x3dce7f,{replyId:_0x1ed362,partIndex:_0x196939}=this[_0x1257bf(0x2d0)];this[_0x1257bf(0x273)]({'replyId':_0x1ed362,'partIndex':_0x196939}),this[_0x1257bf(0x293)][_0x1257bf(0x2b8)](_0x1257bf(0x2e9));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x1b6),()=>{const _0x238e15=_0x3dce7f,{replyId:_0xc535fe,partIndex:_0xbfbb9f}=this[_0x238e15(0x2d0)];this[_0x238e15(0x217)]({'replyId':_0xc535fe,'partIndex':_0xbfbb9f}),this[_0x238e15(0x293)][_0x238e15(0x2b8)](_0x238e15(0x1a3));}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x17c),()=>{const _0x8d913e=_0x3dce7f,{replyId:_0x3ca1da,partIndex:_0x317163}=this[_0x8d913e(0x2d0)],_0x185402=this[_0x8d913e(0x23a)](_0x3ca1da,_0x317163,_0x8d913e(0x19d));null!==_0x185402&&this[_0x8d913e(0x1e7)](_0x3ca1da,_0x185402);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x2c2),()=>{const _0x2ac4f9=_0x3dce7f,{replyId:_0x2053b0,partIndex:_0xe6b175}=this[_0x2ac4f9(0x2d0)],_0x4ff98a=this[_0x2ac4f9(0x23a)](_0x2053b0,_0xe6b175,_0x2ac4f9(0x2c8));null!==_0x4ff98a&&this[_0x2ac4f9(0x1e7)](_0x2053b0,_0x4ff98a);}),this[_0x3dce7f(0x241)](this[_0x3dce7f(0x293)],_0x3dce7f(0x216),(_0x21e831,{id:_0xc6398a})=>{const _0x2ddbe0=_0x3dce7f;if(_0x2ddbe0(0x2d2)!==_0xc6398a)return;const {replyId:_0x468c5d,partIndex:_0x5c4b8e}=this[_0x2ddbe0(0x2d0)];this[_0x2ddbe0(0x2d0)]=null,this[_0x2ddbe0(0x2ab)][_0x2ddbe0(0x18f)]({'id':_0x468c5d,'index':_0x5c4b8e,'isActive':!0x1});}));}async[_0x31c42f(0x2a1)](){const _0x371e73=_0x31c42f;this[_0x371e73(0x24f)]instanceof _0xec0008?this[_0x371e73(0x1c8)](this[_0x371e73(0x24f)]):this[_0x371e73(0x241)](this[_0x371e73(0x24f)][_0x371e73(0x222)],_0x371e73(0x2d7),(_0x361c98,_0x4d3ef9)=>{const _0x1eeea1=_0x371e73;_0x4d3ef9['on'](_0x1eeea1(0x2d3),()=>{const _0x6fbcf8=_0x1eeea1;this[_0x6fbcf8(0x1c8)](_0x4d3ef9);});});const _0x577d8e=this[_0x371e73(0x24f)][_0x371e73(0x188)][_0x371e73(0x2de)](_0x371e73(0x2e7));let _0x5cb7f8=_0x577d8e;if(_0x371e73(0x1f7)!=_0x577d8e||(_0x5cb7f8=await this[_0x371e73(0x272)](),_0x5cb7f8))return _0x371e73(0x24a)==_0x5cb7f8?this[_0x371e73(0x2da)]():this[_0x371e73(0x1e4)](_0x5cb7f8);}async[_0x31c42f(0x259)](){const _0x383eee=_0x31c42f;return await this[_0x383eee(0x1e2)](),this[_0x383eee(0x1b3)][_0x383eee(0x22d)](),super[_0x383eee(0x259)]();}[_0x31c42f(0x273)](_0x3ffc96){const _0x1bcc16=_0x31c42f,_0x12ec16=_0xa7d697(this[_0x1bcc16(0x24f)]);if(!_0x12ec16[_0x1bcc16(0x2cc)][_0x1bcc16(0x206)](_0x1bcc16(0x189)))throw new _0x15e5c0(_0x1bcc16(0x304),null);const _0x404298=this[_0x1bcc16(0x24f)][_0x1bcc16(0x2cc)][_0x1bcc16(0x2de)](_0x1bcc16(0x2fb)),{reply:_0x52505b,interaction:_0x3d6243}=this[_0x1bcc16(0x1d7)](_0x3ffc96[_0x1bcc16(0x265)]),_0x18f079=this[_0x1bcc16(0x245)](_0x3ffc96[_0x1bcc16(0x265)],_0x3ffc96[_0x1bcc16(0x2ea)]),_0x4635b9=void 0x0!==_0x3ffc96[_0x1bcc16(0x2ea)]?[_0x52505b[_0x1bcc16(0x1f3)][_0x3ffc96[_0x1bcc16(0x2ea)]]]:_0x52505b[_0x1bcc16(0x1f3)][_0x1bcc16(0x229)](_0x4d1514=>_0x1bcc16(0x2ca)==_0x4d1514[_0x1bcc16(0x1a9)]),_0x234245=_0x4635b9[_0x1bcc16(0x26a)](_0x2cbb1b=>_0x52505b[_0x1bcc16(0x1f3)][_0x1bcc16(0x297)](_0x2cbb1b));if(!_0x18f079||_0x1bcc16(0x253)==_0x18f079[_0x1bcc16(0x268)][_0x1bcc16(0x2d1)][_0x1bcc16(0x2ad)])return void _0x234245[_0x1bcc16(0x27d)](_0x19a169=>_0x52505b[_0x1bcc16(0x2a6)](_0x19a169,_0x1bcc16(0x1af)));_0x234245[_0x1bcc16(0x27d)](_0x13670e=>_0x52505b[_0x1bcc16(0x2a6)](_0x13670e,_0x1bcc16(0x2e9)));const _0x2db1c0=_0x423098({'editor':_0x12ec16,'reply':_0x52505b,'interaction':_0x3d6243,'groups':_0x4635b9,'transform':!0x0,'documentCompare':_0x404298,'documentCompareOptions':{'anchor':_0x1bcc16(0x21b),'markDeletions':!0x0}});let _0x3115dc;_0x18f079&&this[_0x1bcc16(0x18a)](_0x18f079[_0x1bcc16(0x268)]),_0x12ec16[_0x1bcc16(0x26e)][_0x1bcc16(0x1f0)](_0x592bab=>{const _0x477136=_0x1bcc16;_0x3115dc=_0x592bab[_0x477136(0x242)],_0x12ec16[_0x477136(0x2cc)][_0x477136(0x2de)](_0x477136(0x184))[_0x477136(0x24c)](_0x2db1c0),this[_0x477136(0x1d9)][_0x477136(0x2c3)](_0x477136(0x1a1));}),this[_0x1bcc16(0x2e5)][_0x1bcc16(0x1dd)](_0x3115dc,{'interactionId':_0x3d6243['id'],'replyId':_0x52505b['id'],'indexes':_0x234245[_0x1bcc16(0x203)]()}),this[_0x1bcc16(0x2b1)](_0x52505b);}[_0x31c42f(0x260)](_0xdbca39){const _0x16eb93=_0x31c42f,_0xa18676=_0xa7d697(this[_0x16eb93(0x24f)]),_0x2ed66c=this[_0x16eb93(0x24f)][_0x16eb93(0x2cc)][_0x16eb93(0x2de)](_0x43c19c),{reply:_0x5e66c7,interaction:_0x11c5f9}=this[_0x16eb93(0x1d7)](_0xdbca39[_0x16eb93(0x265)]),_0x295045=this[_0x16eb93(0x245)](_0xdbca39[_0x16eb93(0x265)],_0xdbca39[_0x16eb93(0x2ea)]),_0x5a9c39=void 0x0!==_0xdbca39[_0x16eb93(0x2ea)]?[_0x5e66c7[_0x16eb93(0x1f3)][_0xdbca39[_0x16eb93(0x2ea)]]]:_0x5e66c7[_0x16eb93(0x1f3)][_0x16eb93(0x229)](_0x19ca43=>_0x16eb93(0x2ca)==_0x19ca43[_0x16eb93(0x1a9)]),_0x30374=_0x5a9c39[_0x16eb93(0x26a)](_0x1631ca=>_0x5e66c7[_0x16eb93(0x1f3)][_0x16eb93(0x297)](_0x1631ca));if(!_0x295045||_0x16eb93(0x253)==_0x295045[_0x16eb93(0x268)][_0x16eb93(0x2d1)][_0x16eb93(0x2ad)])return void _0x30374[_0x16eb93(0x27d)](_0x529a20=>_0x5e66c7[_0x16eb93(0x2a6)](_0x529a20,_0x16eb93(0x1af)));_0x30374[_0x16eb93(0x27d)](_0x5b687d=>_0x5e66c7[_0x16eb93(0x2a6)](_0x5b687d,_0x16eb93(0x2e9)));const _0x367954=_0x423098({'editor':_0xa18676,'reply':_0x5e66c7,'interaction':_0x11c5f9,'groups':_0x5a9c39,'transform':!0x0,'documentCompare':_0x2ed66c,'documentCompareOptions':{'anchor':_0x16eb93(0x21b),'markDeletions':!0x1}});let _0x4caaf9;_0x295045&&this[_0x16eb93(0x18a)](_0x295045[_0x16eb93(0x268)]),_0xa18676[_0x16eb93(0x26e)][_0x16eb93(0x1f0)](_0x23842a=>{const _0x13da93=_0x16eb93;_0x4caaf9=_0x23842a[_0x13da93(0x242)];for(const _0x5bae61 of _0x367954)_0x5bae61[_0x13da93(0x269)]=_0xa18676[_0x13da93(0x26e)][_0x13da93(0x2aa)][_0x13da93(0x1a0)],_0x5daf43(_0xa18676,_0x5bae61),_0x23842a[_0x13da93(0x242)][_0x13da93(0x1aa)](_0x5bae61),_0xa18676[_0x13da93(0x26e)][_0x13da93(0x1bb)](_0x5bae61);}),this[_0x16eb93(0x2e5)][_0x16eb93(0x1dd)](_0x4caaf9,{'interactionId':_0x11c5f9['id'],'replyId':_0x5e66c7['id'],'indexes':_0x30374[_0x16eb93(0x203)]()}),this[_0x16eb93(0x2b1)](_0x5e66c7);}[_0x31c42f(0x217)](_0xc8682){const _0x112d83=_0x31c42f,{reply:_0x3e3090}=this[_0x112d83(0x1d7)](_0xc8682[_0x112d83(0x265)]);_0x3e3090[_0x112d83(0x2a6)](_0xc8682[_0x112d83(0x2ea)],_0x112d83(0x1a3));}[_0x31c42f(0x1e7)](_0x22e7dc,_0x1d8e8f){const _0x2b6c26=_0x31c42f;if(!this[_0x2b6c26(0x293)])return;const {reply:_0x2d4178}=this[_0x2b6c26(0x1d7)](_0x22e7dc),_0x1f6834=_0x2d4178[_0x2b6c26(0x213)]({'showDiff':this[_0x2b6c26(0x1b4)]});let _0x1e446a,_0x5910ba;if(void 0x0!==_0x1d8e8f?(_0x5910ba=_0x1f6834[_0x2b6c26(0x263)](_0x75094a=>_0x75094a[_0x2b6c26(0x2a9)]==_0x1d8e8f),_0x1e446a=_0x5910ba?.[_0x2b6c26(0x2a9)]):(_0x5910ba=_0x1f6834[0x0],_0x1e446a=_0x5910ba[_0x2b6c26(0x2a9)]),this[_0x2b6c26(0x2d0)]?.[_0x2b6c26(0x265)]==_0x22e7dc&&this[_0x2b6c26(0x2d0)]?.[_0x2b6c26(0x2ea)]==_0x1e446a)return;const _0xa33c88=this[_0x2b6c26(0x1c2)](_0x22e7dc,_0x2d4178,_0x5910ba);if(!_0xa33c88)return void this[_0x2b6c26(0x293)][_0x2b6c26(0x25a)]();this[_0x2b6c26(0x2d0)]={'replyId':_0x22e7dc,'partIndex':_0x1e446a},this[_0x2b6c26(0x18a)](_0xa33c88,!0x0);const _0x3bdb5b=this[_0x2b6c26(0x23a)](_0x22e7dc,_0x1e446a,_0x2b6c26(0x19d));this[_0x2b6c26(0x293)][_0x2b6c26(0x19f)]({'part':_0x5910ba,'renderingStrategy':_0x2b6c26(0x2e0)}),this[_0x2b6c26(0x293)][_0x2b6c26(0x21e)]({'index':_0x1e446a,'title':_0x5e761d(this[_0x2b6c26(0x24f)][_0x2b6c26(0x1c9)],_0x2b6c26(0x283),(_0x1e446a+0x1)[_0x2b6c26(0x2ff)]()),'showRotator':null!==_0x3bdb5b,'ranges':[_0xa33c88],'areActionsDisabled':_0x2d4178[_0x2b6c26(0x275)]}),this[_0x2b6c26(0x293)][_0x2b6c26(0x2b8)](_0x2b6c26(0x2ca)),this[_0x2b6c26(0x2ab)][_0x2b6c26(0x27b)](_0x22e7dc,_0x1e446a),this[_0x2b6c26(0x2ab)][_0x2b6c26(0x18f)]({'id':_0x22e7dc,'index':_0x1e446a,'isActive':!0x0});}[_0x31c42f(0x23a)](_0x130d53,_0x5ae385,_0x46c9af){const _0x4aab5a=_0x31c42f,{reply:_0x245bca}=this[_0x4aab5a(0x1d7)](_0x130d53),_0x5b7a80=_0x245bca[_0x4aab5a(0x213)]({'showDiff':this[_0x4aab5a(0x1b4)]});if(0x1==_0x5b7a80[_0x4aab5a(0x24e)])return null;const _0x76d5fc=_0x5b7a80[_0x4aab5a(0x1b1)](_0x58482e=>_0x58482e[_0x4aab5a(0x2a9)]==_0x5ae385),_0x236180=_0x4aab5a(0x19d)==_0x46c9af?0x1:-0x1;let _0x3deeeb=_0x5b7a80['at']((_0x76d5fc+_0x236180)%_0x5b7a80[_0x4aab5a(0x24e)])[_0x4aab5a(0x2a9)],_0x17ea5b=_0x5b7a80[_0x3deeeb];for(;!this[_0x4aab5a(0x1c2)](_0x130d53,_0x245bca,_0x17ea5b);){if(_0x3deeeb=_0x5b7a80['at']((_0x3deeeb+_0x236180)%_0x5b7a80[_0x4aab5a(0x24e)])[_0x4aab5a(0x2a9)],_0x3deeeb===_0x76d5fc)return null;_0x17ea5b=_0x5b7a80[_0x3deeeb];}return _0x3deeeb;}[_0x31c42f(0x1c2)](_0x4f297c,_0xe5f9cf,_0x5e0c41){const _0x3dbca1=_0x31c42f,_0x12e628=_0xe5f9cf[_0x3dbca1(0x1f3)];if(!_0x5e0c41[_0x3dbca1(0x1c1)])return null;const _0x3e3bbb=_0x12e628[_0x3dbca1(0x263)](_0x39bb81=>_0x39bb81[_0x3dbca1(0x2a9)]==_0x5e0c41[_0x3dbca1(0x2a9)]);if(_0x3dbca1(0x2ca)!==_0x3e3bbb?.[_0x3dbca1(0x1a9)])return null;const _0x2dc1c7=this[_0x3dbca1(0x245)](_0x4f297c,_0x5e0c41[_0x3dbca1(0x2a9)]);if(!_0x2dc1c7)return null;const {range:_0x123ba1,currentIndex:_0x583963}=_0x2dc1c7;return _0x3dbca1(0x253)==_0x123ba1[_0x3dbca1(0x2d1)][_0x3dbca1(0x2ad)]?(_0xe5f9cf[_0x3dbca1(0x2a6)](_0x583963,_0x3dbca1(0x1af)),null):_0x2dc1c7[_0x3dbca1(0x268)];}[_0x31c42f(0x245)](_0x4c4f55,_0x5e6f50){const _0x33c190=_0x31c42f,_0xcf709d=_0xa7d697(this[_0x33c190(0x24f)]),{reply:_0x499b9e,interaction:_0x5029a2}=this[_0x33c190(0x1d7)](_0x4c4f55),_0xb97d9c=_0x499b9e[_0x33c190(0x1f3)][_0x33c190(0x229)](_0x5980fd=>_0x33c190(0x2ca)==_0x5980fd[_0x33c190(0x1a9)]),_0x11a417=_0xb97d9c[_0x33c190(0x26a)](_0x1024e9=>_0x499b9e[_0x33c190(0x1f3)][_0x33c190(0x297)](_0x1024e9));void 0x0===_0x5e6f50&&(_0x5e6f50=_0x11a417[0x0]);const _0x251d80=_0x11a417[_0x33c190(0x297)](_0x5e6f50);if(-0x1==_0x251d80)return null;const _0x194a7e=_0xb97d9c[_0x251d80],_0x114554=new _0x33bf11([]),_0x46b88e=new _0x33bf11([]);for(const _0x5a5a5b of _0x194a7e[_0x33c190(0x2a3)])if(_0x33c190(0x1e0)!=_0x5a5a5b[_0x33c190(0x24b)]&&_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0x5a5a5b[_0x33c190(0x2f9)][_0x33c190(0x1c5)](!0x0)),_0x33c190(0x24a)!=_0x5a5a5b[_0x33c190(0x24b)]){const _0x4e218d=_0x223ca0(_0x50572e=>_0x20876b(_0x50572e,_0x33c190(0x2e2))==_0x5a5a5b['id'],_0x499b9e[_0x33c190(0x29c)],!0x0);_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0x4e218d[_0x33c190(0x1c5)](!0x0));}if(0x0==_0x114554[_0x33c190(0x180)][_0x33c190(0x24e)]){if(_0x194a7e[_0x33c190(0x2a3)][0x0][_0x33c190(0x290)]){const _0x203609=_0x2c1814(_0x33c190(0x2e2),_0x194a7e[_0x33c190(0x2a3)][0x0][_0x33c190(0x290)],_0x499b9e[_0x33c190(0x29c)]);_0x114554[_0x33c190(0x180)][_0x33c190(0x220)](_0x203609[_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x220)](_0x203609[_0x33c190(0x1c5)](!0x0)),_0x203609[_0x33c190(0x18c)]&&(_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0x203609[_0x33c190(0x18c)][_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0x203609[_0x33c190(0x18c)][_0x33c190(0x1c5)](!0x0)));}else{const _0xc5c29=_0x499b9e[_0x33c190(0x29c)][_0x33c190(0x180)][0x0];if(!_0xc5c29)return null;_0x114554[_0x33c190(0x180)][_0x33c190(0x26c)](_0xc5c29[_0x33c190(0x1c5)](!0x0)),_0x46b88e[_0x33c190(0x180)][_0x33c190(0x26c)](_0xc5c29[_0x33c190(0x1c5)](!0x0));}}const _0x2ea599=_0x5029a2[_0x33c190(0x261)](),_0x5287c3=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0x2ea599[_0x33c190(0x1cc)]),_0xdc34a8=_0x1b4f52(_0x114554),_0x39d40f=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0xdc34a8),_0x15432e=_0xcf709d[_0x33c190(0x1c7)][_0x33c190(0x2b0)](_0xdc34a8),_0x5e99d7=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x193)](_0x39d40f,0x0),_0x5eabff=_0x1b4f52(_0x46b88e),_0x4e8409={'anchor':_0x5e99d7,'markDeletions':!0x1},_0x31a029=_0xcf709d[_0x33c190(0x2cc)][_0x33c190(0x2de)](_0x43c19c)[_0x33c190(0x183)](_0xdc34a8,_0x5eabff,_0x4e8409)[_0x33c190(0x1ef)]();if(!_0x31a029[_0x33c190(0x24e)])return null;_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1f0)](_0xed8b61=>{const _0x1039fb=_0x33c190;for(const _0x1b4afa of _0x31a029)if(_0x1039fb(0x243)==_0x1b4afa[_0x1039fb(0x24b)]){const _0x4d523b=_0x1b4afa[_0x1039fb(0x1fa)],_0x5dad36=_0x1b4afa[_0x1039fb(0x2a8)],_0x580149=new _0x521334(_0x4d523b,_0x5dad36);_0xed8b61[_0x1039fb(0x242)][_0x1039fb(0x1aa)](_0x580149),_0xcf709d[_0x1039fb(0x26e)][_0x1039fb(0x1bb)](_0x580149);}else _0x1039fb(0x22a)!==_0x1b4afa[_0x1039fb(0x24b)]&&(_0x1b4afa[_0x1039fb(0x269)]=null,_0x1b4afa[_0x1039fb(0x1f8)]=!0x1,_0xed8b61[_0x1039fb(0x242)][_0x1039fb(0x1aa)](_0x1b4afa),_0xcf709d[_0x1039fb(0x26e)][_0x1039fb(0x1bb)](_0x1b4afa));});const _0x24fc7c=_0x1540c9(_0xcf709d,_0x31a029,_0x39d40f);_0x117423(_0xcf709d[_0x33c190(0x26e)],_0x24fc7c);const _0x1baa7=_0x24fc7c[_0x33c190(0x267)]()[_0x33c190(0x28b)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x40c797=_0x24fc7c[_0x33c190(0x267)]()[_0x33c190(0x2fd)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x69bcff=[];let _0x11c5cf=_0x39d40f,_0x18d38e=_0x15432e;for(let _0x467d95=0x0;_0x467d95<_0x40c797[_0x33c190(0x24e)];_0x467d95++){const _0x17e0b0=_0x11c5cf[_0x33c190(0x2bc)]-_0x40c797[_0x467d95];_0x69bcff[_0x467d95]=_0x18d38e[_0x33c190(0x2bc)]-_0x17e0b0,_0x11c5cf=_0x11c5cf[_0x33c190(0x27a)](_0x40c797[_0x467d95]),_0x18d38e=_0x18d38e[_0x33c190(0x27a)](_0x69bcff[_0x467d95]);}const _0xdf74f3=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1fb)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0x15432e,_0x1baa7),_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0x15432e,_0x69bcff)),_0xc41ccc=_0x15432e[_0x33c190(0x24d)](0x0)[_0x33c190(0x1da)](_0x4d75fb),_0x34472c=Array[_0x33c190(0x2a5)](_0x5287c3[_0x33c190(0x2ac)]())[_0x33c190(0x263)](_0x8c0e3f=>_0x8c0e3f[_0x33c190(0x1da)](_0x4d75fb)==_0xc41ccc)[_0x33c190(0x17e)](),_0x178d93=_0xdf74f3[_0x33c190(0x28b)][_0x33c190(0x2e6)][_0x33c190(0x203)](),_0x238a31=_0xdf74f3[_0x33c190(0x2fd)][_0x33c190(0x2e6)][_0x33c190(0x203)]();_0x178d93[0x0]=_0x34472c[0x0]+_0x178d93[0x0],_0x238a31[0x0]=_0x34472c[0x0]+_0x238a31[0x0];let _0x538571=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x1fb)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x209)](),_0x178d93),_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x19e)](_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x209)](),_0x238a31));const _0x324862=_0xcf709d[_0x33c190(0x26e)][_0x33c190(0x2aa)][_0x33c190(0x296)][_0x33c190(0x1ef)](_0x2ea599[_0x33c190(0x1a0)]);for(const _0x1df2c8 of _0x324862)_0x538571=_0x375f4a[_0x33c190(0x2db)](_0x538571[_0x33c190(0x2a0)](_0x1df2c8));return{'range':_0x538571,'currentIndex':_0x5e6f50};}[_0x31c42f(0x1c8)](_0x286142){const _0x5ab1e6=_0x31c42f;if(!_0x286142[_0x5ab1e6(0x2cc)][_0x5ab1e6(0x206)](_0x5ab1e6(0x194)))return;const _0x36e75d=_0x286142[_0x5ab1e6(0x1ff)][_0x5ab1e6(0x2de)](_0x5ab1e6(0x2ec)),_0x458884=_0x286142[_0x5ab1e6(0x1ff)][_0x5ab1e6(0x2de)](_0x5ab1e6(0x1d6));this[_0x5ab1e6(0x241)](_0x36e75d,_0x5ab1e6(0x22c),(_0x20a273,_0x8a6727,_0x470c1c)=>{const _0x2ca958=_0x5ab1e6,_0x21fba3=this[_0x2ca958(0x2e5)][_0x2ca958(0x2de)](_0x8a6727);if(!_0x21fba3)return;const _0x507126=this[_0x2ca958(0x1d5)][_0x2ca958(0x1f9)](_0x21fba3[_0x2ca958(0x198)])[_0x2ca958(0x20d)](_0x21fba3[_0x2ca958(0x265)]);_0x21fba3[_0x2ca958(0x2b6)][_0x2ca958(0x27d)](_0x5dd01c=>_0x507126[_0x2ca958(0x2a6)](_0x5dd01c,_0x2ca958(0x2ca))),this[_0x2ca958(0x2e5)][_0x2ca958(0x2b9)](_0x8a6727),this[_0x2ca958(0x2e5)][_0x2ca958(0x1dd)](_0x470c1c,_0x21fba3);}),this[_0x5ab1e6(0x241)](_0x458884,_0x5ab1e6(0x22c),(_0x226076,_0x48d684,_0xc8f07d)=>{const _0x5b8690=_0x5ab1e6,_0x201f66=this[_0x5b8690(0x2e5)][_0x5b8690(0x2de)](_0x48d684);if(!_0x201f66)return;const _0x24a95d=this[_0x5b8690(0x1d5)][_0x5b8690(0x1f9)](_0x201f66[_0x5b8690(0x198)])[_0x5b8690(0x20d)](_0x201f66[_0x5b8690(0x265)]);_0x201f66[_0x5b8690(0x2b6)][_0x5b8690(0x27d)](_0x2760f7=>_0x24a95d[_0x5b8690(0x2a6)](_0x2760f7,_0x5b8690(0x2e9))),this[_0x5b8690(0x2e5)][_0x5b8690(0x2b9)](_0x48d684),this[_0x5b8690(0x2e5)][_0x5b8690(0x1dd)](_0xc8f07d,_0x201f66);});}async[_0x31c42f(0x1e4)](_0x5e68e7){const _0x1f29ca=_0x31c42f;this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x206)](_0x1f29ca(0x1b8))&&this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x2de)](_0x1f29ca(0x1b8))[_0x1f29ca(0x25a)](),(this[_0x1f29ca(0x24f)][_0x1f29ca(0x2cc)][_0x1f29ca(0x2de)](_0x3d9193)[_0x1f29ca(0x252)][_0x1f29ca(0x2b5)](_0x1f29ca(0x22b)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x247)](_0x1f29ca(0x2e0)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x233)](!0x0),await this[_0x1f29ca(0x1e2)]());try{await this[_0x1f29ca(0x28f)][_0x1f29ca(0x294)](_0x5e68e7)[_0x1f29ca(0x2d4)](),await this[_0x1f29ca(0x2da)](_0x5e68e7),this[_0x1f29ca(0x28c)]('\x20'),await this[_0x1f29ca(0x1d5)][_0x1f29ca(0x280)](_0x5e68e7,this[_0x1f29ca(0x1d9)][_0x1f29ca(0x250)]),this[_0x1f29ca(0x1d5)][_0x1f29ca(0x212)]()&&this[_0x1f29ca(0x1db)]();}catch(_0x2878f2){this[_0x1f29ca(0x2ab)][_0x1f29ca(0x202)]({'errorMessage':_0x5e761d(this[_0x1f29ca(0x24f)][_0x1f29ca(0x1c9)],_0x1f29ca(0x1fc)),'id':_0x5e68e7}),this[_0x1f29ca(0x1d0)](new _0x15e5c0(_0x1f29ca(0x2c0),this,{'error':_0x2878f2}));}finally{this[_0x1f29ca(0x2ab)][_0x1f29ca(0x20e)](),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x247)](_0x1f29ca(0x2f5)),this[_0x1f29ca(0x2ab)][_0x1f29ca(0x233)](!0x1);}}async[_0x31c42f(0x272)](){const _0x22a238=_0x31c42f,_0x13c366=this[_0x22a238(0x28f)][_0x22a238(0x282)](this[_0x22a238(0x2dc)](),{'limit':0x1,'sortBy':_0x22a238(0x1e8)});try{const _0x51b350=await _0x13c366[_0x22a238(0x191)]();return _0x51b350[_0x22a238(0x24e)]?_0x51b350[0x0]['id']:_0x22a238(0x24a);}catch(_0x4c11a5){return this[_0x22a238(0x2ab)][_0x22a238(0x202)]({'errorMessage':_0x5e761d(this[_0x22a238(0x24f)][_0x22a238(0x1c9)],_0x22a238(0x1fc)),'id':_0x516f73()}),this[_0x22a238(0x1d0)](new _0x15e5c0(_0x22a238(0x1f1),this,{'error':_0x4c11a5})),this[_0x22a238(0x2ab)][_0x22a238(0x233)](!0x1),this[_0x22a238(0x2ab)][_0x22a238(0x1e3)](),null;}}[_0x31c42f(0x1a2)](_0x277bc9){const _0x28ee9a=_0x31c42f;this[_0x28ee9a(0x1d5)]['id']===_0x277bc9&&this[_0x28ee9a(0x2da)]();}[_0x31c42f(0x1db)](){const _0x318634=_0x31c42f;this[_0x318634(0x1d5)]?.[_0x318634(0x25f)](_0x5e761d(this[_0x318634(0x24f)][_0x318634(0x1c9)],_0x318634(0x278)));}async[_0x31c42f(0x1fe)](){const _0x184976=_0x31c42f,_0x5310bc=this[_0x184976(0x1d9)][_0x184976(0x1e6)]();this[_0x184976(0x1d5)]?.[_0x184976(0x232)](_0x5310bc),this[_0x184976(0x1db)]();}[_0x31c42f(0x28a)](){const _0x3f9cf6=_0x31c42f;this[_0x3f9cf6(0x1d5)]?.[_0x3f9cf6(0x196)]();}[_0x31c42f(0x211)](){const _0x3631b6=_0x31c42f;this[_0x3631b6(0x2ab)][_0x3631b6(0x211)]();}async[_0x31c42f(0x185)](){const _0x1deb18=_0x31c42f;await this[_0x1deb18(0x2da)]();}async[_0x31c42f(0x301)]({message:_0x33b90a,attributes:_0x87dc50}){const _0x25721a=_0x31c42f;await this[_0x25721a(0x25d)]({'userMessage':_0x33b90a,'attributes':_0x87dc50});}[_0x31c42f(0x2dc)](){const _0x3c0d41=_0x31c42f,_0x5027f6=this[_0x3c0d41(0x24f)][_0x3c0d41(0x188)][_0x3c0d41(0x2de)](_0x3c0d41(0x18e));if(!_0x5027f6)throw new _0x15e5c0(_0x3c0d41(0x1b5),this);return _0x5027f6;}async[_0x31c42f(0x2da)](_0x2a16c7){const _0x33a1de=_0x31c42f;try{this[_0x33a1de(0x2ab)][_0x33a1de(0x1a6)](),await this[_0x33a1de(0x234)](_0x2a16c7);}catch(_0x584d18){this[_0x33a1de(0x2ab)][_0x33a1de(0x202)]({'errorMessage':_0x5e761d(this[_0x33a1de(0x24f)][_0x33a1de(0x1c9)],_0x33a1de(0x1f5)),'id':_0x2a16c7||_0x516f73()}),console[_0x33a1de(0x210)](_0x584d18),this[_0x33a1de(0x1d5)]=void 0x0,this[_0x33a1de(0x2ab)][_0x33a1de(0x1e3)]();}}async[_0x31c42f(0x234)](_0x5a1d38){const _0x48a6f3=_0x31c42f;let _0x538758;this[_0x48a6f3(0x24f)][_0x48a6f3(0x2cc)][_0x48a6f3(0x206)](_0x48a6f3(0x1b8))&&this[_0x48a6f3(0x24f)][_0x48a6f3(0x2cc)][_0x48a6f3(0x2de)](_0x48a6f3(0x1b8))[_0x48a6f3(0x25a)](),_0x5a1d38||!this[_0x48a6f3(0x1d5)]?_0x538758=this[_0x48a6f3(0x24f)][_0x48a6f3(0x188)][_0x48a6f3(0x2de)](_0x48a6f3(0x1a7)):this[_0x48a6f3(0x2ab)][_0x48a6f3(0x21c)]&&(_0x538758=this[_0x48a6f3(0x1d5)][_0x48a6f3(0x257)]['id']),await this[_0x48a6f3(0x1e2)]();const _0x5cdb81=this[_0x48a6f3(0x2dc)](),_0x2d2978=_0x5a1d38||_0x516f73();this[_0x48a6f3(0x1d5)]=new _0x3caa70({'connector':this[_0x48a6f3(0x28f)],'chatModels':this[_0x48a6f3(0x2fa)],'selectedModelId':_0x538758,'conversationId':_0x2d2978,'group':_0x5cdb81,'getEditor':()=>_0xa7d697(this[_0x48a6f3(0x24f)]),'isFromHistory':!!_0x5a1d38}),this[_0x48a6f3(0x1d5)][_0x48a6f3(0x1f2)](_0x48a6f3(0x2f3),_0x48a6f3(0x25b))['to'](this),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x298),(_0x27fc70,_0x4c4e50)=>{const _0xeb3689=_0x48a6f3;this[_0xeb3689(0x2ab)][_0xeb3689(0x226)](_0x4c4e50),this[_0xeb3689(0x2ab)][_0xeb3689(0x1d2)](),this[_0xeb3689(0x2ab)][_0xeb3689(0x1ab)](),this[_0xeb3689(0x2ab)][_0xeb3689(0x1c0)](),_0x5a1d38||(this[_0xeb3689(0x2ab)][_0xeb3689(0x227)](),this[_0xeb3689(0x1db)]());}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2a4),(_0x9a6be3,_0x4b9ad5)=>{const _0x101afa=_0x48a6f3;this[_0x101afa(0x2ab)][_0x101afa(0x1f6)](_0x4b9ad5[_0x101afa(0x303)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x23f),(_0x5427b6,_0x4fd1ca)=>{const _0x527803=_0x48a6f3;this[_0x527803(0x2ab)][_0x527803(0x2bb)](_0x4fd1ca);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x277),()=>{const _0x21fd9c=_0x48a6f3,_0x34cb76=this[_0x21fd9c(0x2ab)][_0x21fd9c(0x1ce)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x21fd9c(0x2ab)][_0x21fd9c(0x26d)](_0x34cb76);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x231),()=>{const _0xfcdad8=_0x48a6f3,_0x41d882=this[_0xfcdad8(0x2ab)][_0xfcdad8(0x1ce)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0xfcdad8(0x2ab)][_0xfcdad8(0x26d)](_0x41d882);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x276),(_0x10a172,_0x22ffad)=>{const _0x17d282=_0x48a6f3;this[_0x17d282(0x2ab)][_0x17d282(0x1e9)](_0x22ffad,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x279),(_0x33937d,_0x45674c)=>{const _0x1e9a88=_0x48a6f3;this[_0x1e9a88(0x2ab)][_0x1e9a88(0x1e9)](_0x45674c,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x25b),()=>{const _0x1ede3b=_0x48a6f3;this[_0x1ede3b(0x2ab)][_0x1ede3b(0x1f4)]();}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1dc),async()=>{const _0x4b3987=_0x48a6f3;await this[_0x4b3987(0x2ab)][_0x4b3987(0x300)]();}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x251),(_0x45cc91,_0x57f89d)=>{const _0x4e55b9=_0x48a6f3;this[_0x4e55b9(0x2ab)][_0x4e55b9(0x215)](_0x57f89d['id']);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x18d),(_0x33d037,_0x15615f,_0x1452dd)=>{const _0x1ecdf3=_0x48a6f3;this[_0x1ecdf3(0x28c)](_0x15615f,_0x1452dd);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x281),(_0x4947d7,_0x20061e)=>{const _0x3dd082=_0x48a6f3;_0x3dd082(0x2fc)===_0x20061e[_0x3dd082(0x24b)]?this[_0x3dd082(0x2ab)][_0x3dd082(0x2af)](_0x20061e):this[_0x3dd082(0x2ab)][_0x3dd082(0x2d9)](_0x20061e);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2d5),async(_0xbe1b30,_0x3aa8fe)=>{const _0x2b52ba=_0x48a6f3;await this[_0x2b52ba(0x187)]({'reply':_0x3aa8fe});}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x214),(_0x1684b9,{reply:_0x207ec3,index:_0x42f83f,state:_0x255a8e})=>{const _0x1ab3d1=_0x48a6f3;this[_0x1ab3d1(0x2ab)][_0x1ab3d1(0x1b0)]({'id':_0x207ec3['id'],'index':_0x42f83f,'state':_0x255a8e}),this[_0x1ab3d1(0x2d0)]?.[_0x1ab3d1(0x265)][_0x1ab3d1(0x2b7)](_0x207ec3['id'])&&this[_0x1ab3d1(0x2d0)]?.[_0x1ab3d1(0x2ea)]==_0x42f83f&&this[_0x1ab3d1(0x293)]?.[_0x1ab3d1(0x2b8)](_0x255a8e);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x23d),(_0x17e479,_0x193dd8)=>{const _0x372798=_0x48a6f3;if(this[_0x372798(0x2ab)][_0x372798(0x2f0)](_0x193dd8[_0x372798(0x302)],_0x193dd8[_0x372798(0x23c)]),_0x372798(0x1a8)===_0x193dd8[_0x372798(0x302)][_0x372798(0x24b)]){const _0x87dacf=[..._0xa7d697(this[_0x372798(0x24f)])[_0x372798(0x26e)][_0x372798(0x2aa)][_0x372798(0x1a8)][_0x372798(0x295)]()];this[_0x372798(0x1d9)][_0x372798(0x29b)](_0x87dacf,_0x372798(0x25e)+this[_0x372798(0x1d5)]?.['id']);}}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x285),(_0x559b60,_0x1bedef)=>{const _0xe1914e=_0x48a6f3;this[_0xe1914e(0x2ab)][_0xe1914e(0x26b)](_0x1bedef[_0xe1914e(0x2e8)]),_0xe1914e(0x1e1)==_0x1bedef[_0xe1914e(0x2e8)]&&this[_0xe1914e(0x28a)](),_0xe1914e(0x1a8)===_0x1bedef[_0xe1914e(0x24b)]&&this[_0xe1914e(0x1d9)][_0xe1914e(0x2c3)](_0xe1914e(0x25e)+this[_0xe1914e(0x1d5)]?.['id']);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x195),(_0x6d7a48,_0x3a0890)=>{const _0x37ed40=_0x48a6f3;this[_0x37ed40(0x2ab)][_0x37ed40(0x288)](_0x3a0890[_0x37ed40(0x302)][_0x37ed40(0x2e8)],_0x3a0890[_0x37ed40(0x23c)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x25c),(_0x53bccd,_0xaf3b6c)=>{const _0x1455bd=_0x48a6f3;this[_0x1455bd(0x2ab)][_0x1455bd(0x2dd)](_0xaf3b6c[_0x1455bd(0x22e)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1ad),(_0x116f30,_0x2f79f7)=>{const _0x1292c=_0x48a6f3;this[_0x1292c(0x2ab)][_0x1292c(0x1fd)](_0x2f79f7[_0x1292c(0x2cd)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x2c9),(_0x4ddd1a,_0x4e883d)=>{const _0x255086=_0x48a6f3;this[_0x255086(0x2ab)][_0x255086(0x1ea)](_0x4e883d[_0x255086(0x2d6)],_0x4e883d[_0x255086(0x29e)],_0x4e883d[_0x255086(0x219)],_0x4e883d[_0x255086(0x1ba)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x190),(_0x263ae2,_0x11b4e4)=>{const _0x59cec9=_0x48a6f3;this[_0x59cec9(0x2ab)][_0x59cec9(0x27e)](_0x11b4e4[_0x59cec9(0x2d6)],_0x11b4e4[_0x59cec9(0x2ba)],_0x11b4e4[_0x59cec9(0x22f)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x237),(_0x36b64b,_0x3c0ec1)=>{const _0x36d9eb=_0x48a6f3;this[_0x36d9eb(0x2ab)][_0x36d9eb(0x17b)](_0x3c0ec1);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x1de),async(_0x28c189,_0xe4bcd5)=>{const _0x37e305=_0x48a6f3,_0x9c741a=(await this[_0x37e305(0x2fa)][_0x37e305(0x239)]())[_0x37e305(0x263)](_0x5251b7=>_0x5251b7['id']===_0xe4bcd5[_0x37e305(0x257)]?.['id'])||null;this[_0x37e305(0x2ab)][_0x37e305(0x1e5)](_0x9c741a,_0xe4bcd5[_0x37e305(0x1ee)]);}),this[_0x48a6f3(0x1d5)]['on'](_0x48a6f3(0x210),(_0x52ec5a,{error:_0x1232e2,interactionId:_0x1c469c,fileName:_0x171a1c,url:_0x1c1e3e,sourceId:_0x200b35,sourceLabel:_0x189004})=>{const _0xba3116=_0x48a6f3,_0x1a8c91=_0x1c469c?_0x1c469c+':'+_0x516f73():_0x516f73();_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x204))?this[_0xba3116(0x2ab)][_0xba3116(0x18b)]({'staticMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2f2)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1f1))||_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1bd))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1f5)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x26f))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x238),_0x171a1c),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x20b))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2f8),_0x1c1e3e),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x2e1))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2ae)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x27c))?this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x20c)),'id':_0x1a8c91}):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x201))?(_0x200b35&&this[_0xba3116(0x2ab)][_0xba3116(0x186)](_0x200b35),this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1a4),_0x189004||_0xba3116(0x29e)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x286))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x240)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x19c))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1ec)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1c3))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2bf)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x289))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x2ce)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x2ef))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x199)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):_0x1232e2[_0xba3116(0x2c5)][_0xba3116(0x2c1)](_0xba3116(0x1b9))?(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1bc)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2)):(this[_0xba3116(0x2ab)][_0xba3116(0x202)]({'errorMessage':_0x5e761d(this[_0xba3116(0x24f)][_0xba3116(0x1c9)],_0xba3116(0x1d3)),'id':_0x1a8c91}),this[_0xba3116(0x1d0)](_0x1232e2));}),await this[_0x48a6f3(0x1d5)][_0x48a6f3(0x1c6)](this[_0x48a6f3(0x24f)][_0x48a6f3(0x188)][_0x48a6f3(0x2de)](_0x48a6f3(0x179))),_0x5a1d38||await this[_0x48a6f3(0x1d5)][_0x48a6f3(0x28b)]();}async[_0x31c42f(0x25d)]({userMessage:_0x2ac44b,attributes:_0x5ce76f}){const _0x5703f0=_0x31c42f;if(!this[_0x5703f0(0x1d5)])throw new _0x15e5c0(_0x5703f0(0x2ee));if(this[_0x5703f0(0x1d5)][_0x5703f0(0x292)]()){const _0x35c6d9=await this[_0x5703f0(0x1d9)][_0x5703f0(0x1cd)]();await this[_0x5703f0(0x1d5)][_0x5703f0(0x254)](_0x35c6d9);}this[_0x5703f0(0x1d5)]['id']&&this[_0x5703f0(0x1d5)][_0x5703f0(0x2e4)]&&await this[_0x5703f0(0x1d5)][_0x5703f0(0x264)]({'userMessage':_0x2ac44b,'attributes':_0x5ce76f});}[_0x31c42f(0x2c4)](){const _0x862d39=_0x31c42f;console[_0x862d39(0x2c7)](_0x862d39(0x2f6));}[_0x31c42f(0x2bd)](_0x3a333f){const _0x2df165=_0x31c42f;this[_0x2df165(0x2ab)][_0x2df165(0x28e)](_0x3a333f);}[_0x31c42f(0x1d0)](_0x3e1b25){const _0x10135b=_0x31c42f;_0x44f241(_0x3e1b25[_0x10135b(0x2c5)]);}[_0x31c42f(0x208)](_0x5cbc3d){const _0x1130e0=_0x31c42f;this[_0x1130e0(0x1d5)]?.[_0x1130e0(0x1be)](_0x5cbc3d);}[_0x31c42f(0x284)](){const _0x51c3ca=_0x31c42f;this[_0x51c3ca(0x1d5)]?.[_0x51c3ca(0x258)]();}[_0x31c42f(0x236)](){const _0x14530d=_0x31c42f;this[_0x14530d(0x1d5)]?.[_0x14530d(0x2b3)]();}[_0x31c42f(0x1d7)](_0x210053){const _0x25e498=_0x31c42f,[_0x5c3e99,_0x34adf3]=_0x210053[_0x25e498(0x197)](':'),_0xfb9a03=this[_0x25e498(0x1d5)][_0x25e498(0x1f9)](_0x5c3e99),_0x1e2f76=_0xfb9a03[_0x25e498(0x20d)](_0x34adf3);return{'interaction':_0xfb9a03,'reply':_0x1e2f76};}[_0x31c42f(0x18a)](_0x2bd5f0,_0x2bd451=!0x1){const _0x498d97=_0x31c42f,_0x57a7ba=_0xa7d697(this[_0x498d97(0x24f)]),_0x40288c={'target':_0x57a7ba[_0x498d97(0x1ca)][_0x498d97(0x252)][_0x498d97(0x2f4)][_0x498d97(0x2df)](_0x57a7ba[_0x498d97(0x1ca)][_0x498d97(0x17d)][_0x498d97(0x1ae)](_0x2bd5f0)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2bd451};_0x2bd451&&(_0x40288c[_0x498d97(0x1ac)]=!0x0),_0x366ea2(_0x40288c);}[_0x31c42f(0x28c)](_0x135d7c,_0x234422=!0x1){const _0x436a2a=_0x31c42f;this[_0x436a2a(0x2ab)][_0x436a2a(0x18d)](_0x135d7c||_0x5e761d(this[_0x436a2a(0x24f)][_0x436a2a(0x1c9)],_0x436a2a(0x1d1)),_0x234422);}async[_0x31c42f(0x187)]({reply:_0x5bb6a7,renderingStrategy:_0x4bcf0b}){const _0x20e6e7=_0x31c42f,{id:_0x253234,interactionId:_0x454593,isDone:_0x4976dc,type:_0x518eea,parsedContent:_0x52812c}=_0x5bb6a7,_0x3325d2=_0x454593+':'+_0x253234;if(_0x20e6e7(0x1df)===_0x518eea){const _0x14ec98=_0x5bb6a7[_0x20e6e7(0x213)]({'showDiff':this[_0x20e6e7(0x2ab)][_0x20e6e7(0x1ed)]});await this[_0x20e6e7(0x2ab)][_0x20e6e7(0x27f)]({'id':_0x3325d2,'parts':_0x14ec98,'renderingStrategy':_0x4bcf0b,'isDone':_0x4976dc});}else _0x20e6e7(0x2fc)===_0x518eea&&await this[_0x20e6e7(0x2ab)][_0x20e6e7(0x2e3)]({'id':_0x3325d2,'parsedContent':_0x52812c,'renderingStrategy':_0x4bcf0b,'isDone':_0x4976dc});_0x4976dc&&_0x5bb6a7[_0x20e6e7(0x21d)][_0x20e6e7(0x24e)]>0x0&&this[_0x20e6e7(0x2ab)][_0x20e6e7(0x207)](_0x3325d2,_0x5bb6a7[_0x20e6e7(0x21d)]);}async[_0x31c42f(0x1e2)](){const _0x5756cf=_0x31c42f,_0x3f9fbf=this[_0x5756cf(0x1d5)]?.[_0x5756cf(0x21f)];_0x3f9fbf&&(_0x3f9fbf[_0x5756cf(0x21a)](),this[_0x5756cf(0x2ab)][_0x5756cf(0x29a)](_0x3f9fbf));}async[_0x31c42f(0x2a7)](){const _0x2a9a46=_0x31c42f,_0x1e9730=this[_0x2a9a46(0x1d5)]?.[_0x2a9a46(0x21f)];if(_0x1e9730){for await(const _0x531358 of _0x1e9730[_0x2a9a46(0x20a)])await this[_0x2a9a46(0x187)]({'reply':_0x531358,'renderingStrategy':_0x2a9a46(0x2e0)});}}[_0x31c42f(0x2b1)](_0x439494){const _0x1bbc30=_0x31c42f,_0xe58444={'positiveCount':_0x439494[_0x1bbc30(0x1f3)][_0x1bbc30(0x229)](_0x3895c7=>_0x1bbc30(0x2e9)===_0x3895c7[_0x1bbc30(0x1a9)])[_0x1bbc30(0x24e)],'totalCount':_0x439494[_0x1bbc30(0x1f3)][_0x1bbc30(0x24e)],'modificationId':_0x439494['id']},_0x4074fd=this[_0x1bbc30(0x1d5)][_0x1bbc30(0x1f9)](_0x439494[_0x1bbc30(0x198)])[_0x1bbc30(0x230)];_0x4074fd&&this[_0x1bbc30(0x28f)][_0x1bbc30(0x299)](this[_0x1bbc30(0x1d5)]['id'],_0x4074fd,_0xe58444);}[_0x31c42f(0x218)](_0xa79a1b){const _0xc89f59=_0x31c42f;let _0x33929c=null,_0x5602f0=null;this['on'](_0xc89f59(0x2f3),(_0x3290c6,_0x1b9c71,_0x414311)=>{const _0x9de7fd=_0xc89f59;_0x414311['id']!==_0x33929c&&(_0x33929c=_0x414311['id'],_0x5602f0=this[_0x9de7fd(0x248)](_0x414311)),_0xa79a1b(_0x1b9c71,_0x5602f0);});}[_0x31c42f(0x248)](_0x1888ca){const _0x322134=_0x31c42f,_0x5a052f=this[_0x322134(0x2ab)],_0x1c6b49=()=>{const _0x1e7b03=_0x322134;_0x1888ca[_0x1e7b03(0x287)](),_0x1888ca[_0x1e7b03(0x249)](),_0x5a052f[_0x1e7b03(0x2b2)]();},_0x4fcfa=()=>{const _0x280e8d=_0x322134;_0x1888ca[_0x280e8d(0x23e)]&&(_0x1888ca[_0x280e8d(0x23e)][_0x280e8d(0x2f1)](),_0x1888ca[_0x280e8d(0x23e)]=void 0x0);};return{'insertTextReply':(_0x16370c,_0x459a76)=>{const _0x51c925=_0x322134;_0x4fcfa(),_0x1c6b49();const _0x42ca37=_0x1888ca[_0x51c925(0x23e)]=_0x1888ca[_0x51c925(0x19a)]({'type':_0x51c925(0x2fc),'interactionId':_0x1888ca['id'],'content':_0x16370c,'id':_0x459a76||_0x516f73()});return _0x4fcfa(),_0x42ca37;},'insertCustomElement':async(_0x373d70,_0xed9567)=>(_0x4fcfa(),_0x1c6b49(),_0x5a052f[_0x322134(0x1b2)](_0x373d70,_0xed9567||_0x516f73())),'setLoadingMessage':_0x48b702=>{const _0x51735f=_0x322134;_0x5a052f[_0x51735f(0x26d)](_0x48b702);},'clearLoadingMessage':()=>{const _0x148a0a=_0x322134;_0x5a052f[_0x148a0a(0x2b2)]();}};}}
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
- const _0x49e55e=_0x320e;(function(_0x2c0de4,_0x3fff15){const _0x4f743a=_0x320e,_0x55c4b8=_0x2c0de4();while(!![]){try{const _0x39335d=parseInt(_0x4f743a(0x1d8))/0x1*(-parseInt(_0x4f743a(0x207))/0x2)+parseInt(_0x4f743a(0x1b0))/0x3*(parseInt(_0x4f743a(0x168))/0x4)+-parseInt(_0x4f743a(0x1f1))/0x5+-parseInt(_0x4f743a(0x1c1))/0x6*(parseInt(_0x4f743a(0x1fd))/0x7)+parseInt(_0x4f743a(0x206))/0x8*(parseInt(_0x4f743a(0x18d))/0x9)+-parseInt(_0x4f743a(0x19a))/0xa+-parseInt(_0x4f743a(0x1b2))/0xb*(-parseInt(_0x4f743a(0x1fa))/0xc);if(_0x39335d===_0x3fff15)break;else _0x55c4b8['push'](_0x55c4b8['shift']());}catch(_0x5b444c){_0x55c4b8['push'](_0x55c4b8['shift']());}}}(_0x11a5,0x38f44));import{ContextPlugin as _0x463581}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x557562}from'ckeditor5/src/utils.js';function _0x320e(_0x3199fa,_0x292ae1){const _0x11a594=_0x11a5();return _0x320e=function(_0x320e43,_0x5cb7b2){_0x320e43=_0x320e43-0x154;let _0x42f39d=_0x11a594[_0x320e43];return _0x42f39d;},_0x320e(_0x3199fa,_0x292ae1);}import{AIChatView as _0x59e63a}from'./ui/aichatview.js';import{AITabs as _0x256326}from'../aitabs/aitabs.js';import{getTranslation as _0x1e2050}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x39b408}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x3ba3ad}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x24ed3f}from'./utils/promisequeue.js';function _0x11a5(){const _0x13092e=['363RTtGbI','_titleAnimationInterval','enableModelSelector','context','setSelectedModel','remove','addFeedItemCustomElement','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','destroy','set','locale','setModel','conversationCreated','resetMessageInput','60LflIdA','prepareLoadingMessage','TrackChanges','streaming','stopAutoScroll','markFeedItemAsDone','values','areActionsDisabled','_promiseQueue','resetConversationTitle','ai.chat.context.searchInputVisibleFrom','_isTrackChangesCommandValueBound','updateSuggestionItem','_getInputPlaceholder','setModelList','conversation-start','_animateConversationTitle','trackChanges','capabilities','interactionId','commands','updateFeedItemAIReplySuggestionContent','updateFeedInteractionHeader','398117pYpsKu','createConversation','removeContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','finishInteraction','isPremiumPlugin','removeFeedInteraction','isReasoningEnabled','_view','setIsUploadInProgress','showResizeButton','disableModelSelector','setReasoning','toggleLoadingSkeleton','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','fire','isMaximized','AIChatUI','removeItem','length','view','updateFeedItemAIReplySources','disableControls','updateResourceState','699890DDivFF','availableModels','setFeedItemAIReplySuggestionPartActive','focusPromptInput','config','isLoading','setWebSearch','getItemIds','contextItems','292356TlIFQk','forEach','has','135037YemdHz','isBusy','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateWebSources','addTab','isOfficialPlugin','hasFeedItem','clearConversationContextUI','custom-element','43544NrthZe','2GDaIJT','addItem','userMessage','updateReplyItem','addContextItem','</p>','setConversationTitle','AI_CHAT_HEADING','setConversationContext','ai.availableReplyActions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','delegate','value','ai-suggestion-reply','stopInteraction','isWebSearchEnabled','pluginName','chat','updateCapabilities','addFeedInteractionHeader','scrollToSuggestion','setLoadingMessage','524596pIVZjg','updateFeedItemAIReplyContent','showDiff','renderingStrategy','clearPendingContextUI','error-message','children','isModelAvailable','populateSourceResourceBalloon','startsWith','markItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','ai.chat.welcomeMessage','addFeedItemStaticMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isVisible','isDone','chatFeed','_interactionPromiseResolver','isTrackChangesOn','from','get','bind','AI_CHAT_WELCOME_MESSAGE','clear','ai.models.showModelSelector','setInputPlaceholder','hasItem','label','ai-reply','addFeedItemUserMessage','addFeedItemAISuggestion','setPromptInputValue','insertSuggestion','removeFeedItem','displayedPrompt','user-message','333jjTfjq','plugins','addFeedItemAIReply','filter','attributes','AITabs','setContextItemLoading','closeSourceResourceBalloon','setIsMaximized','setAddContextOptions','abort','chatControls','queueEmptyPromise','1722300TVKRRl','toggleSuggestionDisplayMode','addFeedItemError','chatHeader','interaction-header','enableControls','scrollFeedToSuggestion','find','startAutoScroll','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','setSuggestionPartActive','then','clearLoadingMessage','enqueue','updateSuggestionPartState','last','requires','startInteraction','options','feedItemRenderingStrategy','isPending','<p>','3pocbhc','setFeedItemRenderingStrategy'];_0x11a5=function(){return _0x13092e;};return _0x11a5();}import{AI_CHAT_UI_EVENT_NAMES as _0x40554e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xaaf8e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3e6963}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x463581{static get[_0x49e55e(0x1aa)](){return[_0x256326];}[_0x49e55e(0x1e0)];static get[_0x49e55e(0x162)](){const _0x5bb330=_0x49e55e;return _0x5bb330(0x1ea);}static get[_0x49e55e(0x202)](){return!0x0;}static get[_0x49e55e(0x1dd)](){return!0x0;}[_0x49e55e(0x1ad)]=_0x49e55e(0x1c4);[_0x49e55e(0x16a)]=!0x0;[_0x49e55e(0x1c9)];[_0x49e55e(0x17a)];[_0x49e55e(0x1b3)]=void 0x0;[_0x49e55e(0x1cc)]=!0x1;constructor(_0x2eda6f){const _0xf7fda6=_0x49e55e;super(_0x2eda6f);const _0xe6e71b=this[_0xf7fda6(0x1b5)][_0xf7fda6(0x18e)][_0xf7fda6(0x17d)](_0xf7fda6(0x192));this[_0xf7fda6(0x1bc)](_0xf7fda6(0x1fe),!0x1),this[_0xf7fda6(0x1c9)]=new _0x24ed3f(),this[_0xf7fda6(0x1e0)]=new _0x59e63a(this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1bd)],{'showResizeButton':_0xe6e71b[_0xf7fda6(0x1e2)],'contextResourcesSearchInputVisibleFrom':this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1f5)][_0xf7fda6(0x17d)](_0xf7fda6(0x1cb))}),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x15d)](..._0x40554e)['to'](this),this[_0xf7fda6(0x1e0)]['on'](_0xf7fda6(0x19b),(_0x19f7ec,{showDiff:_0x4b800e})=>{const _0x2fc278=_0xf7fda6;this[_0x2fc278(0x16a)]=_0x4b800e;}),_0xe6e71b[_0xf7fda6(0x1ed)][_0xf7fda6(0x201)]({'id':_0xf7fda6(0x163),'buttonLabel':_0x1e2050(this[_0xf7fda6(0x1b5)][_0xf7fda6(0x1bd)],_0xf7fda6(0x159)),'buttonIcon':_0x39b408,'order':0x0,'content':this[_0xf7fda6(0x1e0)]}),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)][_0xf7fda6(0x17e)](_0xf7fda6(0x1f6))['to'](this,_0xf7fda6(0x1fe),_0x1572ac=>_0x1572ac),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x179)][_0xf7fda6(0x17e)](_0xf7fda6(0x1ae))['to'](this,_0xf7fda6(0x1fe),_0x336912=>_0x336912),this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)][_0xf7fda6(0x182)](this[_0xf7fda6(0x1ce)]()),this[_0xf7fda6(0x17e)](_0xf7fda6(0x16f))['to'](this[_0xf7fda6(0x1e0)][_0xf7fda6(0x198)],_0xf7fda6(0x16f));}[_0x49e55e(0x1bb)](){const _0x4f474c=_0x49e55e;super[_0x4f474c(0x1bb)](),this[_0x4f474c(0x1b3)]&&clearInterval(this[_0x4f474c(0x1b3)]);}[_0x49e55e(0x1d9)](_0x21acba){const _0x12305c=_0x49e55e,_0x43777b=this[_0x12305c(0x1b5)][_0x12305c(0x1f5)][_0x12305c(0x17d)](_0x12305c(0x174))??_0x1e2050(this[_0x12305c(0x1b5)][_0x12305c(0x1bd)],_0x12305c(0x17f));this[_0x12305c(0x1e0)][_0x12305c(0x179)][_0x12305c(0x180)](),this[_0x12305c(0x1e0)][_0x12305c(0x198)][_0x12305c(0x1b4)](),this[_0x12305c(0x1e0)][_0x12305c(0x198)][_0x12305c(0x1cf)](_0x21acba[_0x12305c(0x1f2)],!this[_0x12305c(0x1b5)][_0x12305c(0x1f5)][_0x12305c(0x17d)](_0x12305c(0x181))),this[_0x12305c(0x175)]({'id':_0x12305c(0x1d0),'staticMessage':_0x43777b}),this[_0x12305c(0x1e8)](_0x12305c(0x1bf));}[_0x49e55e(0x175)]({id:_0x4fe07b,staticMessage:_0x34ce30}){const _0x1260c2=_0x49e55e;this[_0x1260c2(0x1e0)][_0x1260c2(0x179)][_0x1260c2(0x208)](_0x1260c2(0x185),{'id':_0x4fe07b,'initialContent':_0x1260c2(0x1af)+_0x34ce30+_0x1260c2(0x157)});}[_0x49e55e(0x186)](_0x432115){const _0x104ae0=_0x49e55e,_0x24f7d5=_0x432115[_0x104ae0(0x191)]?.[_0x104ae0(0x18b)]||_0x432115[_0x104ae0(0x154)];this[_0x104ae0(0x1e0)][_0x104ae0(0x179)][_0x104ae0(0x208)](_0x104ae0(0x18c),{'contextItems':Array[_0x104ae0(0x17c)](_0x432115[_0x104ae0(0x1f9)][_0x104ae0(0x1c7)]()),'initialContent':_0x104ae0(0x1af)+_0x24f7d5+_0x104ae0(0x157),'id':_0x432115['id']});}[_0x49e55e(0x19c)]({errorMessage:_0x240c3b,id:_0x3ea336}){const _0x111b70=_0x49e55e;this[_0x111b70(0x1e0)][_0x111b70(0x179)][_0x111b70(0x208)](_0x111b70(0x16d),{'initialContent':_0x111b70(0x1af)+_0x240c3b+_0x111b70(0x157),'id':_0x3ea336});}[_0x49e55e(0x18f)](_0x333fdd){const _0x296e2e=_0x49e55e;return this[_0x296e2e(0x1c9)][_0x296e2e(0x1a7)](async()=>{const _0x290ab1=_0x296e2e;this[_0x290ab1(0x1e0)][_0x290ab1(0x179)][_0x290ab1(0x208)](_0x290ab1(0x185),{'id':_0x333fdd[_0x290ab1(0x1d4)]+':'+_0x333fdd['id']}),this[_0x290ab1(0x1a6)]();});}async[_0x49e55e(0x187)](_0x4f27be){const _0x51793e=_0x49e55e,_0x28434f=_0xaaf8e(this[_0x51793e(0x1b5)]);let _0xdd1eec=_0x28434f[_0x51793e(0x1f5)][_0x51793e(0x17d)](_0x51793e(0x15b))||[..._0x3e6963];if(_0x28434f[_0x51793e(0x18e)][_0x51793e(0x1fc)](_0x51793e(0x1c3))){if(!this[_0x51793e(0x1cc)]){this[_0x51793e(0x1cc)]=!0x0;const _0x3cb796=_0x28434f[_0x51793e(0x1d5)][_0x51793e(0x17d)](_0x51793e(0x1d2));this[_0x51793e(0x1e0)][_0x51793e(0x179)][_0x51793e(0x17e)](_0x51793e(0x17b))['to'](_0x3cb796,_0x51793e(0x15e));}}else _0xdd1eec=_0xdd1eec[_0x51793e(0x190)](_0x57274d=>_0x51793e(0x189)!=_0x57274d);return this[_0x51793e(0x1c9)][_0x51793e(0x1a7)](async()=>{const _0xda6991=_0x51793e;this[_0xda6991(0x1e0)][_0xda6991(0x179)][_0xda6991(0x208)](_0xda6991(0x15f),{'id':_0x4f27be[_0xda6991(0x1d4)]+':'+_0x4f27be['id'],'areActionsDisabled':_0x4f27be[_0xda6991(0x1c8)],'showDiff':this[_0xda6991(0x16a)],'availableActions':_0xdd1eec}),this[_0xda6991(0x1a6)]();});}[_0x49e55e(0x165)](_0x981937,_0x1717f7){const _0x1c81f2=_0x49e55e,_0x5967ca=this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x16e)][_0x1c81f2(0x1a9)];if(_0x5967ca instanceof _0x3ba3ad)return this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x16e)][_0x1c81f2(0x1b7)](_0x5967ca),void this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x208)](_0x1c81f2(0x19e),{'id':_0x981937['id'],'capabilities':{'isWebSearchEnabled':_0x5967ca[_0x1c81f2(0x1d3)][_0x1c81f2(0x161)]||_0x1717f7[_0x1c81f2(0x161)],'isReasoningEnabled':_0x5967ca[_0x1c81f2(0x1d3)][_0x1c81f2(0x1df)]||_0x1717f7[_0x1c81f2(0x1df)]}});this[_0x1c81f2(0x1e0)][_0x1c81f2(0x179)][_0x1c81f2(0x208)](_0x1c81f2(0x19e),{'id':_0x981937['id'],'capabilities':_0x1717f7});}async[_0x49e55e(0x1b8)](_0x3a77e6,_0x5b4b83){const _0x5462f6=_0x49e55e;let _0x2429fb;return await this[_0x5462f6(0x1c9)][_0x5462f6(0x1a7)](async()=>{const _0x88773a=_0x5462f6;_0x2429fb=this[_0x88773a(0x1e0)][_0x88773a(0x179)][_0x88773a(0x208)](_0x88773a(0x205),{'content':_0x3a77e6,'id':_0x5b4b83});}),_0x2429fb;}[_0x49e55e(0x18a)](_0x192e93){const _0x464a2f=_0x49e55e;this[_0x464a2f(0x1e0)][_0x464a2f(0x179)][_0x464a2f(0x1eb)](_0x192e93);}[_0x49e55e(0x203)](_0xf79614){const _0xb15fa1=_0x49e55e;return this[_0xb15fa1(0x1e0)][_0xb15fa1(0x179)][_0xb15fa1(0x183)](_0xf79614);}[_0x49e55e(0x1d7)](_0x9aa9a4){const _0x5c87e4=_0x49e55e,_0x4ac192=this[_0x5c87e4(0x1e0)][_0x5c87e4(0x179)][_0x5c87e4(0x16e)][_0x5c87e4(0x1a1)](_0x229f96=>_0x229f96[_0x5c87e4(0x1ac)]['id']==_0x9aa9a4['id']&&_0x229f96 instanceof _0x3ba3ad);_0x4ac192&&_0x4ac192[_0x5c87e4(0x1bc)](_0x5c87e4(0x177),_0x9aa9a4[_0x5c87e4(0x177)]);}async[_0x49e55e(0x169)](_0x702eb4){const _0x185ec5=_0x49e55e,_0x5a054d=_0x702eb4[_0x185ec5(0x16b)]||this[_0x185ec5(0x1ad)];return this[_0x185ec5(0x1c9)][_0x185ec5(0x1a7)](async _0x24d264=>{const _0xe9e84b=_0x185ec5;await this[_0xe9e84b(0x1e0)][_0xe9e84b(0x179)][_0xe9e84b(0x155)]({..._0x702eb4,'abortSignal':_0x24d264,'renderingStrategy':_0x5a054d}),_0x702eb4[_0xe9e84b(0x178)]&&this[_0xe9e84b(0x1c6)](_0x702eb4['id']);});}[_0x49e55e(0x1ee)](_0x2fbb02,_0x12e6ec){const _0x26c8e1=_0x49e55e;this[_0x26c8e1(0x1e0)][_0x26c8e1(0x179)][_0x26c8e1(0x200)](_0x2fbb02,_0x12e6ec);}async[_0x49e55e(0x1d6)](_0x5745f6){const _0x3ee90f=_0x49e55e,_0x1ce641=_0x5745f6[_0x3ee90f(0x16b)]||this[_0x3ee90f(0x1ad)];return this[_0x3ee90f(0x1c9)][_0x3ee90f(0x1a7)](async _0x4dd639=>{const _0x562ad4=_0x3ee90f;await this[_0x562ad4(0x1e0)][_0x562ad4(0x179)][_0x562ad4(0x1cd)]({..._0x5745f6,'abortSignal':_0x4dd639,'renderingStrategy':_0x1ce641}),_0x5745f6[_0x562ad4(0x178)]&&this[_0x562ad4(0x1c6)](_0x5745f6['id']);});}[_0x49e55e(0x1b9)](_0x189889){const _0x10d009=_0x49e55e;this[_0x10d009(0x1e0)][_0x10d009(0x179)][_0x10d009(0x1a8)](_0x189889);}[_0x49e55e(0x1f3)](_0x400ecb){const _0x46bdf0=_0x49e55e;this[_0x46bdf0(0x1e0)][_0x46bdf0(0x179)][_0x46bdf0(0x1a4)](_0x400ecb);}[_0x49e55e(0x1c6)](_0x36e9cd){const _0x53f3d1=_0x49e55e;this[_0x53f3d1(0x1e0)][_0x53f3d1(0x179)][_0x53f3d1(0x172)](_0x36e9cd);}[_0x49e55e(0x1de)](_0x3e4c50){const _0x2cc88a=_0x49e55e;this[_0x2cc88a(0x1e0)][_0x2cc88a(0x179)][_0x2cc88a(0x1f8)]()[_0x2cc88a(0x190)](_0x3ec75f=>_0x3ec75f[_0x2cc88a(0x171)](_0x3e4c50))[_0x2cc88a(0x1fb)](_0x874fa4=>this[_0x2cc88a(0x1e0)][_0x2cc88a(0x179)][_0x2cc88a(0x1eb)](_0x874fa4));}[_0x49e55e(0x1ab)](){const _0xe11d47=_0x49e55e,_0x572034=this[_0xe11d47(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0xe11d47(0x167)](_0x572034),this[_0xe11d47(0x1e0)][_0xe11d47(0x198)][_0xe11d47(0x1e3)](!this[_0xe11d47(0x1b5)][_0xe11d47(0x1f5)][_0xe11d47(0x17d)](_0xe11d47(0x181))),this[_0xe11d47(0x1fe)]=!0x0,this[_0xe11d47(0x1e0)][_0xe11d47(0x179)][_0xe11d47(0x1a2)]();}[_0x49e55e(0x160)](_0x326a91){const _0x2be379=_0x49e55e;this[_0x2be379(0x1c9)][_0x2be379(0x197)](),this[_0x2be379(0x1e0)][_0x2be379(0x179)][_0x2be379(0x1f8)]()[_0x2be379(0x190)](_0x1866d2=>_0x1866d2[_0x2be379(0x171)](_0x326a91['id']))[_0x2be379(0x1fb)](_0x80f0e8=>this[_0x2be379(0x1c6)](_0x80f0e8)),this[_0x2be379(0x1fe)]=!0x1,this[_0x2be379(0x1e0)][_0x2be379(0x179)][_0x2be379(0x1c5)]();}async[_0x49e55e(0x1dc)](){const _0x529ed1=_0x49e55e;return this[_0x529ed1(0x1c9)][_0x529ed1(0x199)][_0x529ed1(0x1a5)](()=>{const _0x2bf87e=_0x529ed1;this[_0x2bf87e(0x1fe)]=!0x1,this[_0x2bf87e(0x1e0)][_0x2bf87e(0x179)][_0x2bf87e(0x1c5)]();});}[_0x49e55e(0x156)](_0x304b0f,_0x35ce5d){const _0x456f34=_0x49e55e;this[_0x456f34(0x1e0)][_0x456f34(0x198)][_0x456f34(0x156)](_0x304b0f,_0x35ce5d);}[_0x49e55e(0x1da)](_0x57ae07){const _0x2b06bd=_0x49e55e;this[_0x2b06bd(0x1e0)][_0x2b06bd(0x198)][_0x2b06bd(0x1da)](_0x57ae07);}[_0x49e55e(0x193)](_0x54f639,_0x2a4277){const _0x4862b3=_0x49e55e;this[_0x4862b3(0x1e0)][_0x4862b3(0x198)][_0x4862b3(0x193)](_0x54f639,_0x2a4277);}[_0x49e55e(0x1e1)](_0x109b5f){const _0x55067c=_0x49e55e;this[_0x55067c(0x1e0)][_0x55067c(0x198)][_0x55067c(0x1e1)](_0x109b5f);}[_0x49e55e(0x15a)](_0xe1d2af){const _0x4b8763=_0x49e55e;this[_0x4b8763(0x1e0)][_0x4b8763(0x198)][_0x4b8763(0x15a)](_0xe1d2af);}[_0x49e55e(0x16c)](){const _0x353506=_0x49e55e;this[_0x353506(0x1e0)][_0x353506(0x198)][_0x353506(0x16c)]();}[_0x49e55e(0x204)](){const _0xc8fe8a=_0x49e55e;this[_0xc8fe8a(0x1e0)][_0xc8fe8a(0x198)][_0xc8fe8a(0x204)]();}[_0x49e55e(0x1f0)](_0x24de8,_0x3e6021,_0x453281){const _0x397326=_0x49e55e;this[_0x397326(0x1e0)][_0x397326(0x198)][_0x397326(0x1f0)](_0x24de8,_0x3e6021,_0x453281);}[_0x49e55e(0x1c0)](){const _0x498b06=_0x49e55e;this[_0x498b06(0x1e0)][_0x498b06(0x198)][_0x498b06(0x1c0)](),this[_0x498b06(0x1e0)][_0x498b06(0x198)][_0x498b06(0x182)](this[_0x498b06(0x1ce)]());}[_0x49e55e(0x196)](_0x2b4511){const _0x6399a9=_0x49e55e;this[_0x6399a9(0x1e0)][_0x6399a9(0x198)][_0x6399a9(0x196)](_0x2b4511);}[_0x49e55e(0x164)](_0x19bda3){const _0x16ddbb=_0x49e55e;this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x1f7)](_0x19bda3[_0x16ddbb(0x161)]),this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x1e4)](_0x19bda3[_0x16ddbb(0x1df)]),this[_0x16ddbb(0x1e0)][_0x16ddbb(0x198)][_0x16ddbb(0x182)](this[_0x16ddbb(0x1ce)](_0x19bda3));}[_0x49e55e(0x1b6)](_0x24520f,_0x115058){const _0x559b10=_0x49e55e;this[_0x559b10(0x1e0)][_0x559b10(0x198)][_0x559b10(0x1be)](_0x24520f),_0x115058&&this[_0x559b10(0x1e0)][_0x559b10(0x198)][_0x559b10(0x1e3)](!0x1);}[_0x49e55e(0x1b1)](_0x4dd290){const _0x1a525f=_0x49e55e;this[_0x1a525f(0x1ad)]=_0x4dd290;}[_0x49e55e(0x1e5)](_0x42c07c){const _0x10fc74=_0x49e55e;this[_0x10fc74(0x1e0)][_0x10fc74(0x179)][_0x10fc74(0x1e5)](_0x42c07c);}[_0x49e55e(0x1ca)](){const _0x4efb12=_0x49e55e;this[_0x4efb12(0x158)](_0x1e2050(this[_0x4efb12(0x1b5)][_0x4efb12(0x1bd)],_0x4efb12(0x159)));}[_0x49e55e(0x158)](_0x2cd236,_0x31d87c=!0x1){const _0x4d9925=_0x49e55e;if(_0x31d87c&&!_0x557562()&&_0x2cd236[_0x4d9925(0x1ec)])return this[_0x4d9925(0x1e0)][_0x4d9925(0x19d)][_0x4d9925(0x184)]='',void this[_0x4d9925(0x1d1)](_0x2cd236);this[_0x4d9925(0x1e0)][_0x4d9925(0x19d)][_0x4d9925(0x184)]=_0x2cd236;}[_0x49e55e(0x167)](_0x5a6e87){const _0x1c6883=_0x49e55e;this[_0x1c6883(0x1e0)][_0x1c6883(0x179)][_0x1c6883(0x167)](_0x5a6e87);}[_0x49e55e(0x1a6)](){const _0x112fbd=_0x49e55e;this[_0x112fbd(0x1e0)][_0x112fbd(0x179)][_0x112fbd(0x167)]('');}[_0x49e55e(0x1d1)](_0x47c8e4){const _0x4ffdbf=_0x49e55e;let _0x304ae9=0x0;clearInterval(this[_0x4ffdbf(0x1b3)]),this[_0x4ffdbf(0x1b3)]=setInterval(()=>{const _0x116371=_0x4ffdbf;this[_0x116371(0x1e0)][_0x116371(0x19d)][_0x116371(0x184)]=this[_0x116371(0x1e0)][_0x116371(0x19d)][_0x116371(0x184)]+_0x47c8e4[_0x304ae9],_0x304ae9++,_0x304ae9===_0x47c8e4[_0x116371(0x1ec)]&&clearInterval(this[_0x116371(0x1b3)]);},0x1e);}[_0x49e55e(0x195)](_0xfb27d8){const _0x3a9ae7=_0x49e55e;this[_0x3a9ae7(0x1e0)][_0x3a9ae7(0x19d)][_0x3a9ae7(0x1e9)]=_0xfb27d8;}[_0x49e55e(0x1c2)](_0x57e8c5){const _0x34d107=_0x49e55e;return _0x57e8c5[_0x34d107(0x161)]&&_0x57e8c5[_0x34d107(0x1df)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1ba)):_0x57e8c5[_0x34d107(0x161)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x176)):_0x57e8c5[_0x34d107(0x1df)]?_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1ff)):_0x1e2050(this[_0x34d107(0x1b5)][_0x34d107(0x1bd)],_0x34d107(0x1a3));}[_0x49e55e(0x1ce)](_0x54b51e){const _0x2ca75d=_0x49e55e;return _0x54b51e?_0x54b51e[_0x2ca75d(0x161)]&&_0x54b51e[_0x2ca75d(0x1df)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x15c)):_0x54b51e[_0x2ca75d(0x161)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1db)):_0x54b51e[_0x2ca75d(0x1df)]?_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x173)):_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1e7)):_0x1e2050(this[_0x2ca75d(0x1b5)][_0x2ca75d(0x1bd)],_0x2ca75d(0x1e7));}[_0x49e55e(0x170)](_0x31dbdb,_0x3b0138,_0x190077,_0x3a03e0){const _0x5cbe7c=_0x49e55e;this[_0x5cbe7c(0x1e0)][_0x5cbe7c(0x170)](_0x31dbdb,_0x3b0138,_0x190077,_0x3a03e0);}[_0x49e55e(0x194)](_0x3870ec){const _0x200b93=_0x49e55e;this[_0x200b93(0x1e0)][_0x200b93(0x194)](_0x3870ec);}[_0x49e55e(0x188)](_0x561a77){const _0x20bcbc=_0x49e55e;this[_0x20bcbc(0x1e0)][_0x20bcbc(0x198)][_0x20bcbc(0x188)](_0x561a77);}[_0x49e55e(0x1f4)](_0x26cac3=!0x1){const _0x353feb=_0x49e55e;this[_0x353feb(0x1e0)][_0x353feb(0x198)][_0x353feb(0x1f4)](_0x26cac3);}[_0x49e55e(0x1a0)](_0x4ecddc,_0x75623d){const _0x126abb=_0x49e55e;this[_0x126abb(0x1e0)][_0x126abb(0x179)][_0x126abb(0x166)](_0x4ecddc,_0x75623d);}[_0x49e55e(0x1a2)](){const _0x30459b=_0x49e55e;this[_0x30459b(0x1e0)][_0x30459b(0x179)][_0x30459b(0x1a2)]();}[_0x49e55e(0x1ef)](){const _0x56cb46=_0x49e55e;this[_0x56cb46(0x1e0)][_0x56cb46(0x198)][_0x56cb46(0x1e6)]=!0x0;}[_0x49e55e(0x19f)](){const _0x73af95=_0x49e55e;this[_0x73af95(0x1e0)][_0x73af95(0x198)][_0x73af95(0x1e6)]=!0x1;}}
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
- const _0xa9ee2e=_0x4dba;(function(_0x264d22,_0x3b5aef){const _0xc176c7=_0x4dba,_0x59a9ae=_0x264d22();while(!![]){try{const _0x4f7851=parseInt(_0xc176c7(0x120))/0x1*(-parseInt(_0xc176c7(0x105))/0x2)+-parseInt(_0xc176c7(0xc7))/0x3*(-parseInt(_0xc176c7(0x126))/0x4)+-parseInt(_0xc176c7(0xc5))/0x5*(parseInt(_0xc176c7(0xf3))/0x6)+-parseInt(_0xc176c7(0xea))/0x7*(parseInt(_0xc176c7(0xb9))/0x8)+parseInt(_0xc176c7(0x10d))/0x9+parseInt(_0xc176c7(0xff))/0xa+parseInt(_0xc176c7(0x128))/0xb*(-parseInt(_0xc176c7(0xbb))/0xc);if(_0x4f7851===_0x3b5aef)break;else _0x59a9ae['push'](_0x59a9ae['shift']());}catch(_0x3cbc13){_0x59a9ae['push'](_0x59a9ae['shift']());}}}(_0x44e4,0xc2a86));import{CKEditorError as _0x1fa91f,ObservableMixin as _0x3a157a,uid as _0x47c713}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x19f616,AIContextTextResourceType as _0x45c081}from'../../aicore/model/aicontext.js';import{escape as _0x562939}from'es-toolkit/compat';import{errorsMap as _0x148d13}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xa9ee2e(0xd2),_0xa9ee2e(0x12e),_0xa9ee2e(0x137),_0xa9ee2e(0x100),_0xa9ee2e(0xe3),_0xa9ee2e(0xcb),_0xa9ee2e(0xc2),_0xa9ee2e(0xef),_0xa9ee2e(0xbe)];function _0x4dba(_0x5b163d,_0x225a72){const _0x44e4ad=_0x44e4();return _0x4dba=function(_0x4dba2e,_0x408641){_0x4dba2e=_0x4dba2e-0xa5;let _0x4e6f1b=_0x44e4ad[_0x4dba2e];return _0x4e6f1b;},_0x4dba(_0x5b163d,_0x225a72);}export class AIChatContext extends _0x3a157a(){[_0xa9ee2e(0xd9)];[_0xa9ee2e(0xcd)];[_0xa9ee2e(0xc4)];constructor({connector:_0x1d5c1f,config:_0x4ff1fe,ownerId:_0x479a88}){const _0x1c45eb=_0xa9ee2e;super(),this[_0x1c45eb(0xd9)]=_0x1d5c1f,this[_0x1c45eb(0xcd)]=_0x4ff1fe,this[_0x1c45eb(0xc4)]=_0x479a88;}[_0xa9ee2e(0xaf)](){const _0x376495=_0xa9ee2e;this[_0x376495(0xab)]=new Map(),this[_0x376495(0x131)]=new Map(),this[_0x376495(0xee)]=new Map(),this[_0x376495(0xad)]=new Map(),this[_0x376495(0x118)]();}[_0xa9ee2e(0x11c)](){const _0x515ab3=_0xa9ee2e;return this[_0x515ab3(0xab)];}async[_0xa9ee2e(0x106)](_0x1585f5){const _0x1132de=_0xa9ee2e,_0x9cc3ca=await this[_0x1132de(0xcc)](_0x1585f5);return this[_0x1132de(0x13b)](_0x9cc3ca),_0x1132de(0xc6)===_0x9cc3ca[_0x1132de(0xf7)]&&this[_0x1132de(0xb2)](),_0x9cc3ca;}async[_0xa9ee2e(0xcc)](_0x55ce9d){const _0x876c9=_0xa9ee2e;if(_0x55ce9d[_0x876c9(0x11f)]===_0x19f616[_0x876c9(0x12a)]){const _0x48492a=await this[_0x876c9(0xd9)][_0x876c9(0x117)](this[_0x876c9(0xc4)],_0x55ce9d['id'])[_0x876c9(0x10c)]();return{'id':_0x876c9(0xc6),'uiId':_0x876c9(0xc6),'label':_0x876c9(0x116),'type':_0x55ce9d[_0x876c9(0x11f)],'content':_0x48492a[_0x876c9(0xdc)],'hidden':this[_0x876c9(0x131)][_0x876c9(0xb8)](_0x876c9(0xc6)),'version':_0x48492a[_0x876c9(0x139)]?.[_0x876c9(0xec)],'sessionId':_0x48492a[_0x876c9(0x139)]?.[_0x876c9(0x10f)]};}if(_0x55ce9d[_0x876c9(0x11f)]===_0x19f616[_0x876c9(0x101)])return{'id':_0x55ce9d['id'],'uiId':_0x55ce9d['id'],'label':_0x55ce9d[_0x876c9(0xba)]?.[_0x876c9(0x130)]||_0x55ce9d['id'],'type':_0x19f616[_0x876c9(0x101)],'mcpServerName':_0x55ce9d[_0x876c9(0xc8)],'toolName':_0x55ce9d[_0x876c9(0xd6)],'data':_0x55ce9d[_0x876c9(0xba)]||{}};return{'id':_0x55ce9d['id'],'uiId':_0x55ce9d['id'],'label':_0x55ce9d[_0x876c9(0x139)]?.[_0x876c9(0x130)]||_0x55ce9d[_0x876c9(0xf2)]||_0x55ce9d[_0x876c9(0xa6)]||_0x55ce9d['id'],'type':_0x55ce9d[_0x876c9(0x11f)],..._0x55ce9d?.[_0x876c9(0x139)]?.[_0x876c9(0xb6)]?{'resourceId':_0x55ce9d[_0x876c9(0x139)]?.[_0x876c9(0xb6)]}:{}};}[_0xa9ee2e(0x136)](){const _0x37f4ef=_0xa9ee2e;return new Map(this[_0x37f4ef(0x131)]);}[_0xa9ee2e(0xf4)](_0x1ab45e){const _0x492435=_0xa9ee2e,_0x9e100a=this[_0x492435(0xab)][_0x492435(0xd5)](_0x1ab45e);_0x9e100a?.[_0x492435(0xf8)]||this[_0x492435(0xca)](_0x1ab45e);}[_0xa9ee2e(0x12c)](){const _0xf2eabd=_0xa9ee2e;if(0x0===this[_0xf2eabd(0xab)][_0xf2eabd(0xcf)])return;for(const _0xd8279e of this[_0xf2eabd(0xab)][_0xf2eabd(0xa5)]())this[_0xf2eabd(0xca)](_0xd8279e[_0xf2eabd(0xf7)]);const _0x4b4a71=this[_0xf2eabd(0x131)][_0xf2eabd(0xd5)](_0xf2eabd(0xc6))||this[_0xf2eabd(0xab)][_0xf2eabd(0xd5)](_0xf2eabd(0xc6));_0x4b4a71&&this[_0xf2eabd(0x112)]({..._0x4b4a71,'isReadOnly':!0x0,'hidden':!0x0});}[_0xa9ee2e(0x10a)](_0x4c6ecb){const _0xe2fe9f=_0xa9ee2e;for(const _0x17b9b7 of _0x4c6ecb[_0xe2fe9f(0xa5)]())this[_0xe2fe9f(0x13b)](_0x17b9b7);this[_0xe2fe9f(0x12c)](),this[_0xe2fe9f(0xc3)](_0xe2fe9f(0x100),{'contextItems':Array[_0xe2fe9f(0xbc)](this[_0xe2fe9f(0x136)]()[_0xe2fe9f(0xa5)]())});}[_0xa9ee2e(0x135)](){const _0xbe2ba9=_0xa9ee2e;return this[_0xbe2ba9(0xab)][_0xbe2ba9(0xb8)](_0xbe2ba9(0xc6));}[_0xa9ee2e(0xb4)](){const _0x2f565a=_0xa9ee2e;return this[_0x2f565a(0xab)][_0x2f565a(0xb8)](_0x2f565a(0x102));}[_0xa9ee2e(0xd4)](){const _0x436113=_0xa9ee2e;return this[_0x436113(0x131)][_0x436113(0xb8)](_0x436113(0xc6));}static[_0xa9ee2e(0xf6)](_0x44425e){const _0x493660=_0xa9ee2e;return Array[_0x493660(0xbc)](_0x44425e[_0x493660(0xa5)]())[_0x493660(0xc0)](_0x275e95=>this[_0x493660(0x11e)](_0x275e95))[_0x493660(0xbd)](_0x3b201f=>null!==_0x3b201f);}async[_0xa9ee2e(0xac)](_0x20596d,_0x3a35fd,_0x3cb3ca=_0x19f616[_0xa9ee2e(0x132)]){const _0x1bdfc3=_0xa9ee2e,_0x29e0b9=_0x1bdfc3(0x10b)+_0x47c713();this[_0x1bdfc3(0x133)](_0x29e0b9);try{await Promise[_0x1bdfc3(0x10e)](_0x20596d[_0x1bdfc3(0xc0)](async _0x547cfa=>{const _0x532133=_0x1bdfc3,_0x4dc97f=_0x532133(0xce)+_0x47c713(),_0x2e628c=_0x562939(_0x547cfa[_0x532133(0xf2)]);try{this[_0x532133(0x112)]({'type':_0x3cb3ca,'label':_0x3a35fd?.[_0x532133(0x130)]||_0x2e628c,'uiId':_0x4dc97f,'resourceId':_0x3a35fd?.[_0x532133(0xb6)]},!0x0);const _0x25557f=this[_0x532133(0xd9)][_0x532133(0xa8)](this[_0x532133(0xc4)],_0x547cfa,_0x3a35fd);this[_0x532133(0xee)][_0x532133(0x11a)](_0x4dc97f,_0x25557f[_0x532133(0xb5)]);const {id:_0x22bbd7}=await _0x25557f[_0x532133(0xe0)]();this[_0x532133(0xee)][_0x532133(0xb1)](_0x4dc97f),this[_0x532133(0x103)]({'type':_0x3cb3ca,'id':_0x22bbd7,'label':_0x3a35fd?.[_0x532133(0x130)]||_0x2e628c,'uiId':_0x4dc97f,'resourceId':_0x3a35fd?.[_0x532133(0xb6)]},!0x1);}catch(_0x4bd488){this[_0x532133(0xee)][_0x532133(0xb1)](_0x4dc97f);if(!(_0x4bd488 instanceof _0x1fa91f&&_0x4bd488[_0x532133(0xb7)][_0x532133(0xfe)](_0x532133(0xe7)))){const _0x568577=_0x148d13[_0x532133(0xd5)](_0x4bd488[_0x532133(0x123)])||_0x532133(0x125),_0x47141d=new _0x1fa91f(_0x568577,null,{'fileName':_0x2e628c,..._0x4bd488});_0x47141d[_0x532133(0x111)]=_0x4bd488[_0x532133(0x111)],this[_0x532133(0xc3)](_0x532133(0xe3),{'error':_0x47141d});}this[_0x532133(0xca)](_0x4dc97f);}}));}finally{this[_0x1bdfc3(0x121)](_0x29e0b9);}}[_0xa9ee2e(0xe4)](_0x5dfec4){const _0x23425e=_0xa9ee2e;if(this[_0x23425e(0x135)]()||!this[_0x23425e(0x114)][_0x23425e(0x11d)][_0x23425e(0xde)])return;const _0x4dc227={'type':_0x19f616[_0x23425e(0x12a)],'uiId':_0x23425e(0xc6),'label':_0x5dfec4,'isReadOnly':this[_0x23425e(0x131)][_0x23425e(0xb8)](_0x23425e(0xc6)),'hidden':this[_0x23425e(0x131)][_0x23425e(0xb8)](_0x23425e(0xc6))};this[_0x23425e(0x112)](_0x4dc227);}async[_0xa9ee2e(0xda)](_0x147d96,_0x1b16c7,_0xccd1de,_0x10b87c){const _0x432ad9=_0xa9ee2e,_0xc34597=this[_0x432ad9(0xab)][_0x432ad9(0xd5)](_0x432ad9(0xc6));if(_0xc34597&&_0x147d96){_0xc34597[_0x432ad9(0x102)]=_0x10b87c?_0x10b87c[_0x432ad9(0xc0)](_0xa59b4e=>({'start':_0xa59b4e[_0x432ad9(0x13a)],'end':_0xa59b4e[_0x432ad9(0xae)]})):[];try{if(_0xc34597[_0x432ad9(0xec)]===_0x1b16c7)return;const {id:_0x506b3e}=await this[_0x432ad9(0xd9)][_0x432ad9(0xfd)](this[_0x432ad9(0xc4)],_0x147d96,{'version':_0x1b16c7,'sessionId':_0xccd1de})[_0x432ad9(0xe0)]();_0xc34597['id']=_0x506b3e,_0xc34597[_0x432ad9(0xdc)]=_0x147d96,_0xc34597[_0x432ad9(0xec)]=_0x1b16c7,_0xc34597[_0x432ad9(0x10f)]=_0xccd1de;}catch(_0x2f05fd){const _0x3743f0=new _0x1fa91f(_0x432ad9(0xfa),null);_0x3743f0[_0x432ad9(0x111)]=_0x2f05fd[_0x432ad9(0x111)],this[_0x432ad9(0xc3)](_0x432ad9(0xe3),{'error':_0x3743f0});}}}[_0xa9ee2e(0xe5)](_0x6a425f){const _0x4f1f45=_0xa9ee2e;this[_0x4f1f45(0x112)]({'type':_0x19f616[_0x4f1f45(0x12b)],'label':_0x6a425f,'uiId':_0x4f1f45(0x102),'content':_0x6a425f});}[_0xa9ee2e(0xfb)](){const _0x30fd54=_0xa9ee2e;this[_0x30fd54(0xca)](_0x30fd54(0x102));}async[_0xa9ee2e(0xd0)](_0x15ce01,_0x3fc94c){const _0x17dbdb=_0xa9ee2e,_0x2a0a8d=_0x17dbdb(0xb0)+_0x47c713();this[_0x17dbdb(0x133)](_0x2a0a8d);const _0x51b512=_0x17dbdb(0xb0)+_0x47c713();try{this[_0x17dbdb(0x112)]({'type':_0x19f616[_0x17dbdb(0xe8)],'label':_0x3fc94c?.[_0x17dbdb(0x130)]||_0x15ce01,'uiId':_0x51b512,'resourceId':_0x3fc94c?.[_0x17dbdb(0xb6)]},!0x0);const _0x469e41=this[_0x17dbdb(0xd9)][_0x17dbdb(0xa7)](this[_0x17dbdb(0xc4)],_0x15ce01,_0x3fc94c);this[_0x17dbdb(0xee)][_0x17dbdb(0x11a)](_0x51b512,_0x469e41[_0x17dbdb(0xb5)]);const {id:_0x21a3a0}=await _0x469e41[_0x17dbdb(0xe0)]();this[_0x17dbdb(0xee)][_0x17dbdb(0xb1)](_0x51b512),this[_0x17dbdb(0x103)]({'type':_0x19f616[_0x17dbdb(0xe8)],'id':_0x21a3a0,'label':_0x3fc94c?.[_0x17dbdb(0x130)]||_0x15ce01,'uiId':_0x51b512,'resourceId':_0x3fc94c?.[_0x17dbdb(0xb6)]},!0x1);}catch(_0x10fccf){this[_0x17dbdb(0xee)][_0x17dbdb(0xb1)](_0x51b512),(_0x10fccf[_0x17dbdb(0xb7)][_0x17dbdb(0xfe)](_0x17dbdb(0xe7))||this[_0x17dbdb(0xc3)](_0x17dbdb(0xe3),{'error':new _0x1fa91f(_0x17dbdb(0xdf),this,{'url':_0x15ce01,'originalError':_0x10fccf}),'url':_0x15ce01}),this[_0x17dbdb(0xca)](_0x51b512));}finally{this[_0x17dbdb(0x121)](_0x2a0a8d);}}[_0xa9ee2e(0x104)](_0x5ccaa0){const _0x368f90=_0xa9ee2e;_0x5ccaa0['id']=_0x5ccaa0['id']??_0x47c713()[_0x368f90(0xf1)](0x0,0x15),this[_0x368f90(0xab)][_0x368f90(0x11a)](_0x5ccaa0[_0x368f90(0xf7)],_0x5ccaa0),this[_0x368f90(0xc3)](_0x368f90(0xd2),{'contextItem':_0x5ccaa0,'isLoading':!0x1});}async[_0xa9ee2e(0xf0)](_0xd00267,_0x1dc5a5,_0x5f05e0){const _0x4464fd=_0xa9ee2e,_0x270e24=this[_0x4464fd(0x114)][_0x4464fd(0xf5)][_0x4464fd(0xd3)](_0x45f416=>_0x45f416['id']===_0xd00267);if(!_0x270e24)return this[_0x4464fd(0xc3)](_0x4464fd(0xe3),{'error':new _0x1fa91f(_0x4464fd(0x127),this,{'sourceId':_0xd00267}),'sourceId':_0xd00267}),[];try{const _0x2a3456=(await _0x270e24[_0x4464fd(0xaa)](_0x1dc5a5))[_0x4464fd(0xc0)](_0x58988e=>{const _0x41590c=_0x4464fd,_0x55af2e=this[_0x41590c(0xed)](_0x58988e['id']);return{..._0x58988e,'isInContext':_0x55af2e};});return _0x270e24[_0x4464fd(0x108)]=_0x2a3456,this[_0x4464fd(0xc3)](_0x4464fd(0xc2),{'sourceId':_0xd00267,'source':_0x270e24,'resources':_0x2a3456,'uid':_0x5f05e0}),_0x2a3456;}catch(_0x65347){return this[_0x4464fd(0xc3)](_0x4464fd(0xe3),{'error':new _0x1fa91f(_0x4464fd(0xf9),this,{'sourceId':_0xd00267,'originalError':_0x65347}),'sourceId':_0xd00267,'sourceLabel':_0x270e24[_0x4464fd(0x130)]}),[];}}async[_0xa9ee2e(0x129)](_0x5679a9,_0x25d614){const _0x3b76cf=_0xa9ee2e;if(this[_0x3b76cf(0xed)](_0x25d614['id']))return;let _0x482277=_0x25d614[_0x3b76cf(0xba)];if(!_0x482277&&_0x5679a9[_0x3b76cf(0x11b)])try{_0x482277=await _0x5679a9[_0x3b76cf(0x11b)](_0x25d614['id']);}catch(_0x2f588b){return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xc9),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'originalError':_0x2f588b}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}if(_0x482277)switch(_0x25d614[_0x3b76cf(0x11f)]){case _0x19f616[_0x3b76cf(0xe8)]:if(_0x3b76cf(0xb3)!=typeof _0x482277)return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xb3),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});await this[_0x3b76cf(0xd0)](_0x482277,{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']});break;case _0x19f616[_0x3b76cf(0x132)]:if(!(_0x482277 instanceof File))return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xa9),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});await this[_0x3b76cf(0xac)]([_0x482277],{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']});break;case _0x19f616[_0x3b76cf(0x113)]:if(_0x3b76cf(0x124)!=typeof _0x482277||!(_0x3b76cf(0xdc)in _0x482277)||!(_0x3b76cf(0x11f)in _0x482277))return void this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0x122),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'expectedType':_0x3b76cf(0xeb),'actualType':typeof _0x482277}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});_0x482277=AIChatContext[_0x3b76cf(0x119)](_0x482277,_0x25d614[_0x3b76cf(0x130)]),await this[_0x3b76cf(0xac)]([_0x482277],{'label':_0x25d614[_0x3b76cf(0x130)],'resourceId':_0x25d614['id']},_0x19f616[_0x3b76cf(0x113)]);break;case _0x19f616[_0x3b76cf(0x101)]:break;default:this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xc1),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id'],'resourceType':_0x25d614[_0x3b76cf(0x11f)]}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}else this[_0x3b76cf(0xc3)](_0x3b76cf(0xe3),{'error':new _0x1fa91f(_0x3b76cf(0xdd),this,{'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']}),'resourceId':_0x25d614['id'],'sourceId':_0x5679a9['id']});}static[_0xa9ee2e(0x119)](_0x35eaa2,_0x29341c){const _0x331411=_0xa9ee2e;switch(_0x35eaa2[_0x331411(0x11f)]){case _0x45c081[_0x331411(0x109)]:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0xd1)});case _0x45c081[_0x331411(0x110)]:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0x134)});default:return new File([_0x35eaa2[_0x331411(0xdc)]],_0x29341c,{'type':_0x331411(0xd7)});}}static[_0xa9ee2e(0x11e)](_0x24fa69){const _0xffd253=_0xa9ee2e;switch(_0x24fa69[_0xffd253(0x11f)]){case _0x19f616[_0xffd253(0x132)]:return{'type':_0x19f616[_0xffd253(0x132)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0xe8)]:return{'type':_0x19f616[_0xffd253(0xe8)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0x12a)]:return{'type':_0x19f616[_0xffd253(0x12a)],'id':_0x24fa69['id'],..._0x24fa69[_0xffd253(0x102)]?.[_0xffd253(0xe9)]&&{'selection':_0x24fa69[_0xffd253(0x102)]}};case _0x19f616[_0xffd253(0x113)]:return{'type':_0x19f616[_0xffd253(0x132)],'id':_0x24fa69['id']};case _0x19f616[_0xffd253(0x101)]:{const _0x55ac6a=_0x24fa69;return{'type':_0x19f616[_0xffd253(0x101)],'mcpServerName':_0x55ac6a[_0xffd253(0xc8)],'toolName':_0x55ac6a[_0xffd253(0xd6)],'data':_0x55ac6a[_0xffd253(0xba)],'id':_0x55ac6a['id']};}default:return null;}}[_0xa9ee2e(0x112)](_0x31bdf0,_0x57b6bb=!0x1){const _0x2546a8=_0xa9ee2e;if(this[_0x2546a8(0xab)][_0x2546a8(0x11a)](_0x31bdf0[_0x2546a8(0xf7)],_0x31bdf0),_0x31bdf0[_0x2546a8(0xbf)]||this[_0x2546a8(0xc3)](_0x2546a8(0xd2),{'contextItem':_0x31bdf0,'isLoading':_0x57b6bb}),_0x2546a8(0xc6)===_0x31bdf0[_0x2546a8(0xf7)]&&this[_0x2546a8(0xb2)](),_0x31bdf0[_0x2546a8(0xb6)]){const _0xac1cb0=this[_0x2546a8(0xfc)](_0x31bdf0[_0x2546a8(0xb6)]);_0xac1cb0&&_0xac1cb0[_0x2546a8(0x115)](_0x4978ee=>{const _0x311313=_0x2546a8;this[_0x311313(0xe1)](_0x4978ee,_0x31bdf0[_0x311313(0xb6)],!0x0);});}}[_0xa9ee2e(0xca)](_0x2bbcac){const _0x24a886=_0xa9ee2e,_0x9c8045=this[_0x24a886(0xab)][_0x24a886(0xd5)](_0x2bbcac),_0x3c7a8f=this[_0x24a886(0xee)][_0x24a886(0xd5)](_0x2bbcac);if(_0x3c7a8f&&(_0x3c7a8f[_0x24a886(0x12d)](),this[_0x24a886(0xee)][_0x24a886(0xb1)](_0x2bbcac)),_0x9c8045?.[_0x24a886(0xb6)]){const _0x1866e0=this[_0x24a886(0xfc)](_0x9c8045[_0x24a886(0xb6)]);_0x1866e0&&_0x1866e0[_0x24a886(0x115)](_0x46e8a0=>{const _0x3bf0cd=_0x24a886;this[_0x3bf0cd(0xe1)](_0x46e8a0,_0x9c8045[_0x3bf0cd(0xb6)],!0x1);});}this[_0x24a886(0xab)][_0x24a886(0xb1)](_0x2bbcac),this[_0x24a886(0xc3)](_0x24a886(0x12e),{'uiId':_0x2bbcac,'type':_0x9c8045?.[_0x24a886(0x11f)]}),_0x24a886(0xc6)===_0x2bbcac&&this[_0x24a886(0xb2)]();}[_0xa9ee2e(0x103)](_0x59692d,_0x571984){const _0x4f7140=_0xa9ee2e;if(this[_0x4f7140(0xab)][_0x4f7140(0xb8)](_0x59692d[_0x4f7140(0xf7)])&&(this[_0x4f7140(0xab)][_0x4f7140(0x11a)](_0x59692d[_0x4f7140(0xf7)],_0x59692d),this[_0x4f7140(0xc3)](_0x4f7140(0x137),{'contextItem':_0x59692d,'isLoading':_0x571984}),_0x59692d[_0x4f7140(0xb6)])){const _0x405440=this[_0x4f7140(0xfc)](_0x59692d[_0x4f7140(0xb6)]);_0x405440&&_0x405440[_0x4f7140(0x115)](_0x160b54=>{const _0x4ec620=_0x4f7140;this[_0x4ec620(0xe1)](_0x160b54,_0x59692d[_0x4ec620(0xb6)],!0x0);});}}[_0xa9ee2e(0x13b)](_0x3d84fa){const _0x1e6736=_0xa9ee2e;this[_0x1e6736(0x131)][_0x1e6736(0x11a)](_0x3d84fa[_0x1e6736(0xf7)],_0x3d84fa);}[_0xa9ee2e(0x118)](){const _0xcb1a57=_0xa9ee2e;this[_0xcb1a57(0x114)]={'document':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x11d)]?.[_0xcb1a57(0xde)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x107)]?.[_0xcb1a57(0xde)]},'files':{'enabled':!0x1!==this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0xdb)]?.[_0xcb1a57(0xde)]},'sources':this[_0xcb1a57(0xe2)](),'customItems':this[_0xcb1a57(0xcd)]?.[_0xcb1a57(0x138)]?.[_0xcb1a57(0xc0)](_0x27be4c=>({..._0x27be4c,'enabled':!0x0}))??[]},this[_0xcb1a57(0xc3)](_0xcb1a57(0xcb),{'options':this[_0xcb1a57(0x114)]});}[_0xa9ee2e(0xe2)](){const _0x32b7cb=_0xa9ee2e;return this[_0x32b7cb(0xcd)]?.[_0x32b7cb(0xf5)]?.[_0x32b7cb(0xc0)](_0xbfce90=>({..._0xbfce90,'resources':[]}))??[];}[_0xa9ee2e(0xb2)](){const _0x48d7e5=_0xa9ee2e,_0x3e5dfa=this[_0x48d7e5(0x135)]()||this[_0x48d7e5(0xd4)]();this[_0x48d7e5(0x114)][_0x48d7e5(0x11d)][_0x48d7e5(0xe6)]=_0x3e5dfa,this[_0x48d7e5(0xc3)](_0x48d7e5(0xcb),{'options':this[_0x48d7e5(0x114)]});}[_0xa9ee2e(0xed)](_0x525e2d){const _0x49bbd4=_0xa9ee2e;for(const _0x105a59 of this[_0x49bbd4(0xab)][_0x49bbd4(0xa5)]())if(_0x105a59[_0x49bbd4(0xb6)]===_0x525e2d)return!0x0;for(const _0x40098a of this[_0x49bbd4(0x131)][_0x49bbd4(0xa5)]())if(_0x40098a[_0x49bbd4(0xb6)]===_0x525e2d)return!0x0;return!0x1;}[_0xa9ee2e(0xfc)](_0x3f252f){const _0x290fa6=_0xa9ee2e,_0x15a07f=[];for(const _0x127f85 of this[_0x290fa6(0x114)][_0x290fa6(0xf5)]){_0x127f85[_0x290fa6(0x108)][_0x290fa6(0xd3)](_0x331658=>_0x331658['id']===_0x3f252f)&&_0x15a07f[_0x290fa6(0x12f)](_0x127f85['id']);}return 0x0===_0x15a07f[_0x290fa6(0xe9)]?null:_0x15a07f;}[_0xa9ee2e(0xe1)](_0x5db04c,_0x3c3f24,_0x4de6d5){const _0x5a7128=_0xa9ee2e,_0x236a9f=this[_0x5a7128(0x114)][_0x5a7128(0xf5)][_0x5a7128(0xd3)](_0x3cd4cc=>_0x3cd4cc['id']===_0x5db04c);if(!_0x236a9f)return;const _0x4f7979=_0x236a9f[_0x5a7128(0x108)][_0x5a7128(0xd3)](_0x19469d=>_0x19469d['id']===_0x3c3f24);_0x4f7979&&(_0x4f7979[_0x5a7128(0xd8)]=_0x4de6d5,this[_0x5a7128(0xc3)](_0x5a7128(0xef),{'sourceId':_0x5db04c,'resourceId':_0x3c3f24,'isInContext':_0x4de6d5}));}[_0xa9ee2e(0x133)](_0x358e7d){const _0x2aa271=_0xa9ee2e;this[_0x2aa271(0xad)][_0x2aa271(0x11a)](_0x358e7d,!0x0),this[_0x2aa271(0xad)][_0x2aa271(0xcf)]&&this[_0x2aa271(0xc3)](_0x2aa271(0xbe),{'isUploadInProgress':!0x0});}[_0xa9ee2e(0x121)](_0x278b7b){const _0x56501c=_0xa9ee2e;this[_0x56501c(0xad)][_0x56501c(0xb1)](_0x278b7b),0x0===this[_0x56501c(0xad)][_0x56501c(0xcf)]&&this[_0x56501c(0xc3)](_0x56501c(0xbe),{'isUploadInProgress':!0x1});}}function _0x44e4(){const _0x5a588e=['content','ai-chat-resource-no-data','enabled','ai-chat-url-upload-failed','getId','_updateResourceInContextState','_getCustomSourcesInitialState','error','addCurrentDocumentToContext','addSelectionToContext','isHidden','ai-request-aborted','URL','length','398755Xrsivo','object\x20with\x20content\x20and\x20type\x20properties','version','_isResourceInContext','_ongoingUploads','resourceStateChanged','loadSourceResources','substring','name','156jDcKAL','removeFromContext','sources','mapContextItemsToRequestData','uiId','isReadOnly','ai-chat-source-resources-load-failed','ai-chat-document-upload-failed','removeSelectionFromContext','_findSourceIdsByResourceId','uploadDocument','startsWith','13105790cOoBuq','contextSent','TOOL','selection','_finishContextItemLoading','addToolItemToContext','158HQcbOl','populateFromMessage','urls','resources','MARKDOWN','addToConversationContext','files-','getDocument','3662001pslfFr','all','sessionId','HTML','stack','_addContextItem','TEXT','_addContextOptionsState','forEach','Current\x20document','fetchDocument','_setAddContextOptionsDefaultState','_convertTextResourceToFile','set','getData','getPendingContextItems','document','_mapContextItemToRequestData','type','717CeDoHe','_finishUploadOperation','ai-chat-context-invalid-data','code','object','ai-chat-file-upload-failed','5288JIblCe','ai-chat-source-not-found','1548316cZWtCm','addResourceToContext','DOCUMENT','SELECTION','clearPendingContextItems','abort','contextItemRemoved','push','label','_conversationContextItems','FILE','_startUploadOperation','text/html','isCurrentDocumentInContext','getSentContextItems','contextItemLoadingEnded','customItems','attributes','start','_addToConversationContextItem','values','url','uploadUrl','uploadFile','File','getResources','_pendingContextItems','addFilesToContext','_ongoingUploadOperations','end','init','url-','delete','_toggleAddCurrentDocumentOptionVisibility','string','isSelectionInContext','abortController','resourceId','message','has','104kJgGac','data','12rwoVVE','from','filter','uploadProgressChanged','hidden','map','ai-chat-context-unsupported-type','sourceResourcesLoaded','fire','_ownerId','123185VIAxtS','current-document','1494yobGFd','mcpServerName','ai-chat-resource-load-failed','_removeContextItem','addContextOptionsChanged','_createContextItemFromContent','_config','file-','size','addUrlToContext','text/markdown','contextItemAdded','find','isCurrentDocumentInConversation','get','toolName','text/plain','isInContext','_connector','updateCurrentDocument','files'];_0x44e4=function(){return _0x5a588e;};return _0x44e4();}
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});}}