@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/LICENSE.md +16 -20
  2. package/build/ai.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/eo.js +1 -1
  20. package/build/translations/es-co.js +1 -1
  21. package/build/translations/es.js +1 -1
  22. package/build/translations/et.js +1 -1
  23. package/build/translations/eu.js +1 -1
  24. package/build/translations/fa.js +1 -1
  25. package/build/translations/fi.js +1 -1
  26. package/build/translations/fr.js +1 -1
  27. package/build/translations/gl.js +1 -1
  28. package/build/translations/gu.js +1 -1
  29. package/build/translations/he.js +1 -1
  30. package/build/translations/hi.js +1 -1
  31. package/build/translations/hr.js +1 -1
  32. package/build/translations/hu.js +1 -1
  33. package/build/translations/hy.js +1 -1
  34. package/build/translations/id.js +1 -1
  35. package/build/translations/it.js +1 -1
  36. package/build/translations/ja.js +1 -1
  37. package/build/translations/jv.js +1 -1
  38. package/build/translations/kk.js +1 -1
  39. package/build/translations/km.js +1 -1
  40. package/build/translations/kn.js +1 -1
  41. package/build/translations/ko.js +1 -1
  42. package/build/translations/ku.js +1 -1
  43. package/build/translations/lt.js +1 -1
  44. package/build/translations/lv.js +1 -1
  45. package/build/translations/ms.js +1 -1
  46. package/build/translations/nb.js +1 -1
  47. package/build/translations/ne.js +1 -1
  48. package/build/translations/nl.js +1 -1
  49. package/build/translations/no.js +1 -1
  50. package/build/translations/oc.js +1 -1
  51. package/build/translations/pl.js +1 -1
  52. package/build/translations/pt-br.js +1 -1
  53. package/build/translations/pt.js +1 -1
  54. package/build/translations/ro.js +1 -1
  55. package/build/translations/ru.js +1 -1
  56. package/build/translations/si.js +1 -1
  57. package/build/translations/sk.js +1 -1
  58. package/build/translations/sl.js +1 -1
  59. package/build/translations/sq.js +1 -1
  60. package/build/translations/sr-latn.js +1 -1
  61. package/build/translations/sr.js +1 -1
  62. package/build/translations/sv.js +1 -1
  63. package/build/translations/th.js +1 -1
  64. package/build/translations/ti.js +1 -1
  65. package/build/translations/tk.js +1 -1
  66. package/build/translations/tr.js +1 -1
  67. package/build/translations/tt.js +1 -1
  68. package/build/translations/ug.js +1 -1
  69. package/build/translations/uk.js +1 -1
  70. package/build/translations/ur.js +1 -1
  71. package/build/translations/uz.js +1 -1
  72. package/build/translations/vi.js +1 -1
  73. package/build/translations/zh-cn.js +1 -1
  74. package/build/translations/zh.js +1 -1
  75. package/dist/index-editor.css +285 -65
  76. package/dist/index.css +286 -68
  77. package/dist/index.js +5 -5
  78. package/dist/translations/af.js +1 -1
  79. package/dist/translations/af.umd.js +1 -1
  80. package/dist/translations/ar.js +1 -1
  81. package/dist/translations/ar.umd.js +1 -1
  82. package/dist/translations/ast.js +1 -1
  83. package/dist/translations/ast.umd.js +1 -1
  84. package/dist/translations/az.js +1 -1
  85. package/dist/translations/az.umd.js +1 -1
  86. package/dist/translations/be.js +1 -1
  87. package/dist/translations/be.umd.js +1 -1
  88. package/dist/translations/bg.js +1 -1
  89. package/dist/translations/bg.umd.js +1 -1
  90. package/dist/translations/bn.js +1 -1
  91. package/dist/translations/bn.umd.js +1 -1
  92. package/dist/translations/bs.js +1 -1
  93. package/dist/translations/bs.umd.js +1 -1
  94. package/dist/translations/ca.js +1 -1
  95. package/dist/translations/ca.umd.js +1 -1
  96. package/dist/translations/cs.js +1 -1
  97. package/dist/translations/cs.umd.js +1 -1
  98. package/dist/translations/da.js +1 -1
  99. package/dist/translations/da.umd.js +1 -1
  100. package/dist/translations/de-ch.js +1 -1
  101. package/dist/translations/de-ch.umd.js +1 -1
  102. package/dist/translations/de.js +1 -1
  103. package/dist/translations/de.umd.js +1 -1
  104. package/dist/translations/el.js +1 -1
  105. package/dist/translations/el.umd.js +1 -1
  106. package/dist/translations/en-au.js +1 -1
  107. package/dist/translations/en-au.umd.js +1 -1
  108. package/dist/translations/en-gb.js +1 -1
  109. package/dist/translations/en-gb.umd.js +1 -1
  110. package/dist/translations/en.js +1 -1
  111. package/dist/translations/en.umd.js +1 -1
  112. package/dist/translations/eo.js +1 -1
  113. package/dist/translations/eo.umd.js +1 -1
  114. package/dist/translations/es-co.js +1 -1
  115. package/dist/translations/es-co.umd.js +1 -1
  116. package/dist/translations/es.js +1 -1
  117. package/dist/translations/es.umd.js +1 -1
  118. package/dist/translations/et.js +1 -1
  119. package/dist/translations/et.umd.js +1 -1
  120. package/dist/translations/eu.js +1 -1
  121. package/dist/translations/eu.umd.js +1 -1
  122. package/dist/translations/fa.js +1 -1
  123. package/dist/translations/fa.umd.js +1 -1
  124. package/dist/translations/fi.js +1 -1
  125. package/dist/translations/fi.umd.js +1 -1
  126. package/dist/translations/fr.js +1 -1
  127. package/dist/translations/fr.umd.js +1 -1
  128. package/dist/translations/gl.js +1 -1
  129. package/dist/translations/gl.umd.js +1 -1
  130. package/dist/translations/gu.js +1 -1
  131. package/dist/translations/gu.umd.js +1 -1
  132. package/dist/translations/he.js +1 -1
  133. package/dist/translations/he.umd.js +1 -1
  134. package/dist/translations/hi.js +1 -1
  135. package/dist/translations/hi.umd.js +1 -1
  136. package/dist/translations/hr.js +1 -1
  137. package/dist/translations/hr.umd.js +1 -1
  138. package/dist/translations/hu.js +1 -1
  139. package/dist/translations/hu.umd.js +1 -1
  140. package/dist/translations/hy.js +1 -1
  141. package/dist/translations/hy.umd.js +1 -1
  142. package/dist/translations/id.js +1 -1
  143. package/dist/translations/id.umd.js +1 -1
  144. package/dist/translations/it.js +1 -1
  145. package/dist/translations/it.umd.js +1 -1
  146. package/dist/translations/ja.js +1 -1
  147. package/dist/translations/ja.umd.js +1 -1
  148. package/dist/translations/jv.js +1 -1
  149. package/dist/translations/jv.umd.js +1 -1
  150. package/dist/translations/kk.js +1 -1
  151. package/dist/translations/kk.umd.js +1 -1
  152. package/dist/translations/km.js +1 -1
  153. package/dist/translations/km.umd.js +1 -1
  154. package/dist/translations/kn.js +1 -1
  155. package/dist/translations/kn.umd.js +1 -1
  156. package/dist/translations/ko.js +1 -1
  157. package/dist/translations/ko.umd.js +1 -1
  158. package/dist/translations/ku.js +1 -1
  159. package/dist/translations/ku.umd.js +1 -1
  160. package/dist/translations/lt.js +1 -1
  161. package/dist/translations/lt.umd.js +1 -1
  162. package/dist/translations/lv.js +1 -1
  163. package/dist/translations/lv.umd.js +1 -1
  164. package/dist/translations/ms.js +1 -1
  165. package/dist/translations/ms.umd.js +1 -1
  166. package/dist/translations/nb.js +1 -1
  167. package/dist/translations/nb.umd.js +1 -1
  168. package/dist/translations/ne.js +1 -1
  169. package/dist/translations/ne.umd.js +1 -1
  170. package/dist/translations/nl.js +1 -1
  171. package/dist/translations/nl.umd.js +1 -1
  172. package/dist/translations/no.js +1 -1
  173. package/dist/translations/no.umd.js +1 -1
  174. package/dist/translations/oc.js +1 -1
  175. package/dist/translations/oc.umd.js +1 -1
  176. package/dist/translations/pl.js +1 -1
  177. package/dist/translations/pl.umd.js +1 -1
  178. package/dist/translations/pt-br.js +1 -1
  179. package/dist/translations/pt-br.umd.js +1 -1
  180. package/dist/translations/pt.js +1 -1
  181. package/dist/translations/pt.umd.js +1 -1
  182. package/dist/translations/ro.js +1 -1
  183. package/dist/translations/ro.umd.js +1 -1
  184. package/dist/translations/ru.js +1 -1
  185. package/dist/translations/ru.umd.js +1 -1
  186. package/dist/translations/si.js +1 -1
  187. package/dist/translations/si.umd.js +1 -1
  188. package/dist/translations/sk.js +1 -1
  189. package/dist/translations/sk.umd.js +1 -1
  190. package/dist/translations/sl.js +1 -1
  191. package/dist/translations/sl.umd.js +1 -1
  192. package/dist/translations/sq.js +1 -1
  193. package/dist/translations/sq.umd.js +1 -1
  194. package/dist/translations/sr-latn.js +1 -1
  195. package/dist/translations/sr-latn.umd.js +1 -1
  196. package/dist/translations/sr.js +1 -1
  197. package/dist/translations/sr.umd.js +1 -1
  198. package/dist/translations/sv.js +1 -1
  199. package/dist/translations/sv.umd.js +1 -1
  200. package/dist/translations/th.js +1 -1
  201. package/dist/translations/th.umd.js +1 -1
  202. package/dist/translations/ti.js +1 -1
  203. package/dist/translations/ti.umd.js +1 -1
  204. package/dist/translations/tk.js +1 -1
  205. package/dist/translations/tk.umd.js +1 -1
  206. package/dist/translations/tr.js +1 -1
  207. package/dist/translations/tr.umd.js +1 -1
  208. package/dist/translations/tt.js +1 -1
  209. package/dist/translations/tt.umd.js +1 -1
  210. package/dist/translations/ug.js +1 -1
  211. package/dist/translations/ug.umd.js +1 -1
  212. package/dist/translations/uk.js +1 -1
  213. package/dist/translations/uk.umd.js +1 -1
  214. package/dist/translations/ur.js +1 -1
  215. package/dist/translations/ur.umd.js +1 -1
  216. package/dist/translations/uz.js +1 -1
  217. package/dist/translations/uz.umd.js +1 -1
  218. package/dist/translations/vi.js +1 -1
  219. package/dist/translations/vi.umd.js +1 -1
  220. package/dist/translations/zh-cn.js +1 -1
  221. package/dist/translations/zh-cn.umd.js +1 -1
  222. package/dist/translations/zh.js +1 -1
  223. package/dist/translations/zh.umd.js +1 -1
  224. package/lang/contexts.json +10 -1
  225. package/lang/translations/af.po +36 -0
  226. package/lang/translations/ar.po +36 -0
  227. package/lang/translations/ast.po +36 -0
  228. package/lang/translations/az.po +36 -0
  229. package/lang/translations/be.po +36 -0
  230. package/lang/translations/bg.po +36 -0
  231. package/lang/translations/bn.po +36 -0
  232. package/lang/translations/bs.po +36 -0
  233. package/lang/translations/ca.po +36 -0
  234. package/lang/translations/cs.po +36 -0
  235. package/lang/translations/da.po +36 -0
  236. package/lang/translations/de-ch.po +36 -0
  237. package/lang/translations/de.po +36 -0
  238. package/lang/translations/el.po +36 -0
  239. package/lang/translations/en-au.po +36 -0
  240. package/lang/translations/en-gb.po +36 -0
  241. package/lang/translations/en.po +36 -0
  242. package/lang/translations/eo.po +36 -0
  243. package/lang/translations/es-co.po +36 -0
  244. package/lang/translations/es.po +36 -0
  245. package/lang/translations/et.po +36 -0
  246. package/lang/translations/eu.po +36 -0
  247. package/lang/translations/fa.po +36 -0
  248. package/lang/translations/fi.po +36 -0
  249. package/lang/translations/fr.po +36 -0
  250. package/lang/translations/gl.po +36 -0
  251. package/lang/translations/gu.po +36 -0
  252. package/lang/translations/he.po +36 -0
  253. package/lang/translations/hi.po +36 -0
  254. package/lang/translations/hr.po +36 -0
  255. package/lang/translations/hu.po +36 -0
  256. package/lang/translations/hy.po +36 -0
  257. package/lang/translations/id.po +36 -0
  258. package/lang/translations/it.po +36 -0
  259. package/lang/translations/ja.po +36 -0
  260. package/lang/translations/jv.po +36 -0
  261. package/lang/translations/kk.po +36 -0
  262. package/lang/translations/km.po +36 -0
  263. package/lang/translations/kn.po +36 -0
  264. package/lang/translations/ko.po +36 -0
  265. package/lang/translations/ku.po +36 -0
  266. package/lang/translations/lt.po +36 -0
  267. package/lang/translations/lv.po +36 -0
  268. package/lang/translations/ms.po +36 -0
  269. package/lang/translations/nb.po +36 -0
  270. package/lang/translations/ne.po +36 -0
  271. package/lang/translations/nl.po +36 -0
  272. package/lang/translations/no.po +36 -0
  273. package/lang/translations/oc.po +36 -0
  274. package/lang/translations/pl.po +36 -0
  275. package/lang/translations/pt-br.po +36 -0
  276. package/lang/translations/pt.po +36 -0
  277. package/lang/translations/ro.po +36 -0
  278. package/lang/translations/ru.po +36 -0
  279. package/lang/translations/si.po +36 -0
  280. package/lang/translations/sk.po +36 -0
  281. package/lang/translations/sl.po +36 -0
  282. package/lang/translations/sq.po +36 -0
  283. package/lang/translations/sr-latn.po +36 -0
  284. package/lang/translations/sr.po +36 -0
  285. package/lang/translations/sv.po +36 -0
  286. package/lang/translations/th.po +36 -0
  287. package/lang/translations/ti.po +36 -0
  288. package/lang/translations/tk.po +36 -0
  289. package/lang/translations/tr.po +36 -0
  290. package/lang/translations/tt.po +36 -0
  291. package/lang/translations/ug.po +36 -0
  292. package/lang/translations/uk.po +36 -0
  293. package/lang/translations/ur.po +36 -0
  294. package/lang/translations/uz.po +36 -0
  295. package/lang/translations/vi.po +36 -0
  296. package/lang/translations/zh-cn.po +36 -0
  297. package/lang/translations/zh.po +36 -0
  298. package/package.json +15 -15
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +8 -0
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.js +1 -1
  331. package/src/aichat/model/aichatcontext.d.ts +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.js +1 -1
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.js +1 -1
  336. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  337. package/src/aichat/ui/aichatfeedview.js +1 -1
  338. package/src/aichat/ui/aichatheaderview.js +1 -1
  339. package/src/aichat/ui/aichatview.js +1 -1
  340. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  341. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  345. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  348. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  353. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  361. package/src/aichat/utils/eventnames.js +1 -1
  362. package/src/aichat/utils/promisequeue.js +1 -1
  363. package/src/aichathistory/aichathistory.js +1 -1
  364. package/src/aichathistory/aichathistorycontroller.js +1 -1
  365. package/src/aichathistory/aichathistoryui.js +1 -1
  366. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  367. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  368. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  369. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  370. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  371. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  372. package/src/aicore/aiconnector.js +1 -1
  373. package/src/aicore/aiediting.js +1 -1
  374. package/src/aicore/model/aicapabilities.js +1 -1
  375. package/src/aicore/model/aicontext.js +1 -1
  376. package/src/aicore/model/aiinteraction.js +1 -1
  377. package/src/aicore/model/aimodels.js +1 -1
  378. package/src/aicore/model/aireply.js +1 -1
  379. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  380. package/src/aicore/pipeline/airesponseparser.js +2 -2
  381. package/src/aicore/ui/aidisclaimerview.js +1 -1
  382. package/src/aicore/ui/aiskeleton.js +1 -1
  383. package/src/aicore/ui/aispinner.js +1 -1
  384. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  385. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  386. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  387. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  388. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  389. package/src/aicore/utils/common-translations.js +1 -1
  390. package/src/aicore/utils/createresizebutton.js +1 -1
  391. package/src/aicore/utils/documentposition.js +1 -1
  392. package/src/aicore/utils/documentrange.js +1 -1
  393. package/src/aicore/utils/eventnames.js +1 -1
  394. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  395. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  396. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  397. package/src/aicore/utils/htmlparser.js +1 -1
  398. package/src/aicore/utils/htmlstreamer.js +1 -1
  399. package/src/aicore/utils/scrollmanager.js +23 -0
  400. package/src/aieditorintegration/aieditorintegration.js +1 -1
  401. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  402. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  403. package/src/aiquickactions/aiquickactions.d.ts +24 -1
  404. package/src/aiquickactions/aiquickactions.js +1 -1
  405. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  406. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  407. package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
  408. package/src/aiquickactions/aiquickactionsui.js +1 -1
  409. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
  410. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  411. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
  412. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  413. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
  414. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  415. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
  416. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
  417. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
  418. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
  419. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  420. package/src/aireviewmode/aireviewmode.js +1 -1
  421. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  422. package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
  423. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  424. package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
  425. package/src/aireviewmode/aireviewmodeui.js +1 -1
  426. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  427. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  428. package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
  429. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  430. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  431. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  432. package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
  433. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  434. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  435. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  436. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  437. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
  438. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  439. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  440. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  441. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  442. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
  443. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
  444. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
  449. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  450. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  452. package/src/aitabs/aitabs.js +1 -1
  453. package/src/aitabs/aitabsmainview.js +1 -1
  454. package/src/aitabs/tabs/aitabsview.js +1 -1
  455. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  456. package/src/aitabs/tabs/tabpanelview.js +1 -1
  457. package/src/errors.js +1 -1
  458. package/src/errorsmap.d.ts +8 -0
  459. package/src/errorsmap.js +23 -0
  460. package/src/index.js +1 -1
  461. package/theme/aiballoon/aiballoon.css +26 -0
  462. package/theme/aichat/aichat.css +1 -3
  463. package/theme/aichat/aichathistory.css +1 -1
  464. package/theme/aichat/aisuggestioncontainer.css +1 -1
  465. package/theme/aiquickactions/aiquickactions.css +139 -25
  466. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
  467. package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
  468. package/theme/aireviewmode/aireviewmode.css +33 -10
  469. package/theme/common/{aichaterror.css → ainotification.css} +17 -14
  470. package/theme/common/aitrackchanges.css +9 -0
  471. package/src/aichat/utils/scrollmanager.js +0 -23
  472. /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eff34=_0x5b39;(function(_0x536b25,_0x40f198){const _0x266aae=_0x5b39,_0xe27935=_0x536b25();while(!![]){try{const _0x243bc6=parseInt(_0x266aae(0xad))/0x1+-parseInt(_0x266aae(0x1e8))/0x2*(parseInt(_0x266aae(0x176))/0x3)+-parseInt(_0x266aae(0x108))/0x4*(-parseInt(_0x266aae(0x151))/0x5)+parseInt(_0x266aae(0x157))/0x6*(-parseInt(_0x266aae(0x1b4))/0x7)+-parseInt(_0x266aae(0x9d))/0x8*(parseInt(_0x266aae(0x1d0))/0x9)+-parseInt(_0x266aae(0x19b))/0xa+parseInt(_0x266aae(0xf6))/0xb*(parseInt(_0x266aae(0xed))/0xc);if(_0x243bc6===_0x40f198)break;else _0xe27935['push'](_0xe27935['shift']());}catch(_0x3303cf){_0xe27935['push'](_0xe27935['shift']());}}}(_0x17db,0x845c1));import{ContextPlugin as _0x2db343,Editor as _0x598e4f}from'ckeditor5/src/core.js';import{CKEditorError as _0x28a58b,logError as _0x283934,scrollViewportToShowTarget as _0x2ddcb3,uid as _0x3728dc}from'ckeditor5/src/utils.js';import{AIConnector as _0x1885fc}from'../aicore/aiconnector.js';import{AITabs as _0x9c5646}from'../aitabs/aitabs.js';import{AIChatConversation as _0x33dcbb}from'./model/aichatconversation.js';import{getTranslation as _0xf28a5b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x447b84}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x57839b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x5478c2}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5226e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x25a5f9,DATA_ID_MODEL_ATTRIBUTE as _0x336395}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x32446d,getOperationsFromReply as _0x396b8d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51024a,getMinimalSelection as _0x4307ed}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x17db(){const _0x4c99e7=['createConversation','loadSourceResources','removeContextItem','data-id','AI_CHAT_GENERIC_ERROR','_aiChatModels','replyCreated','context','version','_updateRatings','message','anchorId','chat','text-delta','map','contextItemAdded','dislike','uploadProgressChanged','like','toViewRange','partIndex','upsertAIChatRating','applyOperation','resetMessageInput','load','isPremiumPlugin','sources','type','getRoot','addResourceToContext','full','ai-chat-conversation-start-failed','selectedModel','indexes','getOperations','alignToTop','init','ai-chat-file-upload-failed','showDiff','mapper','505ChZNjn','AI_CHAT_UNABLE_TO_START_CONVERSATION','_showConversationHistory','add','lastInteraction','setIsUploadInProgress','198996cSLVmg','getFirstRange','updateCapabilities','setConversationTitle','_balloonShowDiff','_removeFromContext','addSelectionToChatContext','_aiEditing','remove','locale','replyId','applySuggestion','replyContentUpdated','addFeedItemAIReply','conversationInitialized','undo','updateFeedItemAIReplySources','_setIsMaximized','updateCurrentDocumentInContext','config','createPositionAt','open','_aiConnector','handleRemovedConversation','stopInteraction','outdated','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','children','sourceResourcesLoaded','isLoading','36390wNIASC','Showing\x20conversation\x20history...','setConversationContext','model','$graveyard','sourcePosition','path','getContentParts','interactionDestroyed','isOfficialPlugin','unshift','createPositionFromPath','requires','resize','_insertSuggestion','createRange','editors','getChild','cloneNode','addContextOptionsChanged','current-document','interactionFinished','showPrevious','abortPromptStream','addFeedItemUserMessage','setModel','getChildren','_openBalloonFor','populateSourceResourceBalloon','ai-conversation-','getPath','removed','filter','listenTo','resizeTabs','push','setContextItemLoading','2770320ejjeFB','isDocumentOperation','AIChatUI','changes','changeGroups','startConversation','has','messageId','revert','updateConversationTitle','error','finishInteraction','ai-chat-controller-no-active-conversation','close','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','forEach','start','getMarkersGroup','activeConversation','DocumentCompare','findIndex','capabilitiesUpdated','updateFeedItemAIReplySuggestionContent','ai-no-track-changes','_previewedChangeGroup','14iOzLgW','find','_aiChatUi','_applySuggestion','AI_CHAT_RESOURCE_LOAD_FAILED','getDocumentContext','options','scrollFeedToSuggestion','nextSibling','hasChanges','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','plugins','_flushLastInteractionUI','ai-chat-context-invalid-data','setFeedItemRenderingStrategy','isOpen','sourceId','Disliked\x20response','addFeedItemError','getInteraction','isCurrentDocumentInConversation','streaming','delete','query','isUploadInProgress','_toggleReasoning','toggleWebSearch','18KsgweY','contextSent','Failed\x20to\x20load\x20conversation','node','AIEditing','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','closeSourceResourceBalloon','indexOf','getReply','addUrlToContext','removeSelectionFromChatContext','index','addFeedItemAISuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','activateTab','mouseLeaveSuggestion','AIConnector','addFeedItemStaticMessage','AITabs','data','TrackChanges','sendMessage','addFilesToContext','selectModel','24CfzBFC','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-source-resources-load-failed','focusPromptInput','getTransformedByOperation','history','setSelectedModel','webSearchFinished','selection','_batchToChanges','startsWith','_applyOperationsAsSuggestions','replyChangeGroupStateUpdated','resourceStateChanged','getGroupId','collaboration.channelId','_startConversationSafely','interactionCreated','range','rootName','_handleUIUserMessage','updateFeedItemAIReplyContent','4196840pJNFiw','showChangeInText','from','enableControls','_getDocumentRangeForReplyChanges','mouseOverSuggestion','addCurrentDocumentToContext','replies','resourceId','ai.chat.models.displayedModels','ready','view','removeSelectionFromContext','disableControls','batch','state','710302KzSLed','ai-request-aborted','_removeAISelectionMarkers','editing','howMany','loadConversation','pluginName','rejected','isStarted','toString','root','getSelectionText','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','insertSuggestion','getChildAtOffset','redo','documentContextContent','stop','ai-chat-controller-mouse-over','updateContent','pending','isCurrentDocumentInContext','updateFeedItemAIReplySuggestionPartState','resources','ai.chat.context','_logError','uiId','TrackChangesEditing','viewRangeToDom','removeFromContext','clearPendingContextUI','handleUserInteraction','showNext','markers','addFileToContext','toggleSuggestionDisplayMode','contextItems','ai.availableReplyActions','resetConversationTitle','afterInit','webSearchStarted','main','toggleReasoning','isDisabled','getDocumentData','setIsMaximized','dialogClosed','addOperation','domConverter','getDiff','reasoningFinished','_scrollToSuggestionRange','hideFakeVisualSelection','resizedTabs','isInContext','uid','showFakeVisualSelection','_toggleWebSearch','Undo','sendUserMessage','addFeedInteractionHeader','reasoningStarted','ai-chat-url-upload-failed','interactionId','1764408ZyIggs','source','rejectSuggestion','ai-chat-conversation-init-failed','log','setChangeGroupState','modelSelected','addContextItem','getAttribute','44puFTxG','split','new','_integrateEditor','contextItem','AIChatController','_updateReplyContent','AI_BALLOON_HEADER_TITLE','getInteractionAndReplyById','resource','modification-delta','ai-chat-missing-channel-id','addDocumentToContext','slice','toggleLoadingSkeleton','removeMarker','_handleStartConversation','clearConversationContextUI','30964OonTaX','end','length','_stopLastInteraction','contextItemRemoved','accepted','Liked\x20response','get','change','contextItemLoadingEnded','setLoadingMessage','baseVersion','getRanges','content','startAutoScroll','ai.chat.models.defaultModelId','parse','static','removeFeedInteraction','stopListening','updateResourceState','maxOffset','_createFromRanges','addSelectionToContext','setAddContextOptions','document','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','isModelAvailable','interactionStarted','commands','startInteraction','set'];_0x17db=function(){return _0x4c99e7;};return _0x17db();}import{ModelRange as _0x5aebe5,_DetachOperation as _0x4ebe0e}from'ckeditor5/src/engine.js';import{findOne as _0xe31386,getAttribute as _0x4ed15a,serialize as _0x394252,Document as _0xc54126,findByAttribute as _0x2102a5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x57825b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x1ee013}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x15895c}from'../aiballoon/aiballoon.js';function _0x5b39(_0x1d7405,_0x370131){const _0x17db48=_0x17db();return _0x5b39=function(_0x5b398d,_0x547d49){_0x5b398d=_0x5b398d-0x8c;let _0x2ccb98=_0x17db48[_0x5b398d];return _0x2ccb98;},_0x5b39(_0x1d7405,_0x370131);}export class AIChatController extends _0x2db343{[_0x3eff34(0x15e)];[_0x3eff34(0x16d)];[_0x3eff34(0x1b6)];[_0x3eff34(0x12e)];[_0x3eff34(0x90)]=new Map();[_0x3eff34(0x1b3)]=null;[_0x3eff34(0x15b)]=!0x1;static get[_0x3eff34(0x182)](){return[_0x1885fc,_0x15895c,_0x25a5f9];}static get[_0x3eff34(0xb3)](){const _0x3f50bf=_0x3eff34;return _0x3f50bf(0xfb);}static get[_0x3eff34(0x17f)](){return!0x0;}static get[_0x3eff34(0x142)](){return!0x0;}[_0x3eff34(0x14d)](){const _0xe50db7=_0x3eff34;this[_0xe50db7(0x16d)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e0)),this[_0xe50db7(0x1b6)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x19d)),this[_0xe50db7(0x15e)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1d4)),this[_0xe50db7(0x12e)]=new _0x5478c2({'connector':this[_0xe50db7(0x16d)],'availableModels':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0xa6)),'defaultModelId':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0x117))});const _0x7c87c8=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e2));this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1a0),()=>{const _0x6e06f1=_0xe50db7;this[_0x6e06f1(0x97)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xe8),(_0x395bf2,_0x329df1)=>{const _0x11a9fb=_0xe50db7;this[_0x11a9fb(0x9b)]({'userMessage':_0x329df1});}),this[_0xe50db7(0x197)](_0x7c87c8,_0xe50db7(0xe2),(_0x1984d4,_0x1d34e7)=>{const _0x499b5b=_0xe50db7;this[_0x499b5b(0x168)](_0x1d34e7);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x198),()=>{const _0x2e773f=_0xe50db7;_0x7c87c8[_0x2e773f(0x183)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x18d),async()=>{const _0x1b67b6=_0xe50db7;await this[_0x1b67b6(0x10b)](),await this[_0x1b67b6(0x1c1)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x102),()=>{const _0x416e3b=_0xe50db7;this[_0x416e3b(0x1ad)]?.[_0x416e3b(0xa3)](_0xf28a5b(this[_0x416e3b(0x130)][_0x416e3b(0x160)],_0x416e3b(0x1a9)));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xcf),(_0x22e9c9,_0x55c81a)=>{const _0x3246e7=_0xe50db7;this[_0x3246e7(0x1ad)]?.[_0x3246e7(0x1e6)](Array[_0x3246e7(0x9f)](_0x55c81a));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1d9),(_0x4a3db4,_0x160553)=>{const _0xc528a4=_0xe50db7;this[_0xc528a4(0x1ad)]?.[_0xc528a4(0x1d9)](_0x160553);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x146),(_0x3d0a31,_0x1a53e7)=>{const _0x266de3=_0xe50db7;this[_0x266de3(0x1ad)]?.[_0x266de3(0x146)](_0x1a53e7[_0x266de3(0xee)],_0x1a53e7[_0x266de3(0xff)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12b),(_0x414c83,_0x1a734b)=>{const _0x4537ef=_0xe50db7;this[_0x4537ef(0x15c)](_0x1a734b);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12a),(_0x13c4d9,_0x598729)=>{const _0x47f3f6=_0xe50db7;this[_0x47f3f6(0x1ad)]?.[_0x47f3f6(0x12a)](_0x598729[_0x47f3f6(0x1c5)],_0x598729[_0x47f3f6(0x1cc)],_0x598729[_0x47f3f6(0xe4)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1cf),()=>{const _0x2963bf=_0xe50db7;this[_0x2963bf(0xe6)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd7),()=>{const _0x4962d8=_0xe50db7;this[_0x4962d8(0x1ce)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1e7),(_0x2f5454,_0x826e4e)=>{const _0x55f4c2=_0xe50db7;this[_0x55f4c2(0x1ad)]?.[_0x55f4c2(0x18f)](_0x826e4e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x13b),(_0x777d64,{replyId:_0x4b5b0e})=>{const _0x5f3ca9=_0xe50db7;console[_0x5f3ca9(0xf1)](_0x5f3ca9(0x10e),_0x4b5b0e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x139),(_0x1eab10,{replyId:_0x1e4fc5})=>{const _0x132dad=_0xe50db7;console[_0x132dad(0xf1)](_0x132dad(0x1c6),_0x1e4fc5);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xba),(_0x25eca3,_0x1c6078)=>{const _0x1f3199=_0xe50db7;this[_0x1f3199(0x130)][_0x1f3199(0x1c0)][_0x1f3199(0x10f)](_0x15895c)[_0x1f3199(0x1a8)](),this[_0x1f3199(0x184)](_0x1c6078);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x9e),(_0x2ebb82,{replyId:_0x22fe1b,partIndex:_0x2666d9})=>{const _0x40b149=_0xe50db7;this[_0x40b149(0x15b)]=this[_0x40b149(0x1b6)][_0x40b149(0x14f)],this[_0x40b149(0x191)](_0x22fe1b,_0x2666d9);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xa2),(_0x12735c,{replyId:_0x30be5e,partIndex:_0x698001})=>{const _0x350b5a=_0xe50db7,_0x273a85=this[_0x350b5a(0xa1)](_0x30be5e,_0x698001);_0x273a85&&_0x350b5a(0x17a)!=_0x273a85[_0x350b5a(0x99)][_0x350b5a(0xb7)][_0x350b5a(0x9a)]&&this[_0x350b5a(0x15e)][_0x350b5a(0xe5)]([_0x273a85[_0x350b5a(0x99)]],_0x350b5a(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1df),()=>{const _0x28883b=_0xe50db7;this[_0x28883b(0x15e)][_0x28883b(0xe1)](_0x28883b(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x162),(_0x1c1420,_0x536037)=>{const _0x522c6d=_0xe50db7;this[_0x522c6d(0x130)][_0x522c6d(0x1c0)][_0x522c6d(0x10f)](_0x15895c)[_0x522c6d(0x1a8)](),this[_0x522c6d(0x1b7)](_0x536037);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd0),async(_0x4bd625,{replyId:_0x280a16,showDiff:_0x235f38})=>{const _0x3fa501=_0xe50db7,{reply:_0x41aac4}=this[_0x3fa501(0xfe)](_0x280a16),_0x1fa0d3=_0x41aac4[_0x3fa501(0x17d)]({'showDiff':_0x235f38});await this[_0x3fa501(0x1b6)][_0x3fa501(0x1b1)]({'id':_0x41aac4['id'],'parts':_0x1fa0d3,'renderingStrategy':_0x3fa501(0x119)});}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xef),(_0x20914e,{replyId:_0x2f1d91,partIndex:_0x4b334b})=>{const _0x43d8d2=_0xe50db7;this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x161)]==_0x2f1d91&&this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x13d)]==_0x4b334b&&this[_0x43d8d2(0x130)][_0x43d8d2(0x1c0)][_0x43d8d2(0x10f)](_0x15895c)[_0x43d8d2(0x1a8)]();const {reply:_0x5a6085}=this[_0x43d8d2(0xfe)](_0x2f1d91);_0x5a6085[_0x43d8d2(0xf2)](_0x4b334b,_0x43d8d2(0xb4)),this[_0x43d8d2(0x15e)][_0x43d8d2(0xe1)](_0x43d8d2(0xbf));});}async[_0x3eff34(0xd4)](){const _0x40c715=_0x3eff34;this[_0x40c715(0x130)]instanceof _0x598e4f?this[_0x40c715(0xf9)](this[_0x40c715(0x130)]):this[_0x40c715(0x197)](this[_0x40c715(0x130)][_0x40c715(0x186)],_0x40c715(0x154),(_0x54c836,_0x5e0426)=>{const _0x112d2b=_0x40c715;_0x5e0426['on'](_0x112d2b(0xa7),()=>{const _0x1b86dd=_0x112d2b;this[_0x1b86dd(0xf9)](_0x5e0426);});}),await this[_0x40c715(0x97)]();}[_0x3eff34(0x184)](_0x2662cd){const _0x407fab=_0x3eff34,_0x8ddf77=_0x5226e4(this[_0x407fab(0x130)]);if(!_0x8ddf77[_0x407fab(0x1c0)][_0x407fab(0x1a1)](_0x407fab(0x1e4)))throw new _0x28a58b(_0x407fab(0x1b2),null);const _0x23b812=this[_0x407fab(0x130)][_0x407fab(0x1c0)][_0x407fab(0x10f)](_0x407fab(0x1ae)),{reply:_0xee138f,interaction:_0xb3c894}=this[_0x407fab(0xfe)](_0x2662cd[_0x407fab(0x161)]),_0x27a8e=this[_0x407fab(0xa1)](_0x2662cd[_0x407fab(0x161)],_0x2662cd[_0x407fab(0x13d)]),_0x519fe9=void 0x0!==_0x2662cd[_0x407fab(0x13d)]?[_0xee138f[_0x407fab(0x19f)][_0x2662cd[_0x407fab(0x13d)]]]:_0xee138f[_0x407fab(0x19f)][_0x407fab(0x196)](_0x33eb8c=>_0x407fab(0xc1)==_0x33eb8c[_0x407fab(0xac)]),_0x54a94a=_0x519fe9[_0x407fab(0x137)](_0x3d736d=>_0xee138f[_0x407fab(0x19f)][_0x407fab(0x1d7)](_0x3d736d));if(!_0x27a8e||_0x407fab(0x17a)==_0x27a8e[_0x407fab(0x99)][_0x407fab(0xb7)][_0x407fab(0x9a)])return void _0x54a94a[_0x407fab(0x1aa)](_0xf90db6=>_0xee138f[_0x407fab(0xf2)](_0xf90db6,_0x407fab(0x170)));_0x54a94a[_0x407fab(0x1aa)](_0x3c7059=>_0xee138f[_0x407fab(0xf2)](_0x3c7059,_0x407fab(0x10d)));const _0x3543b4=_0x396b8d({'editor':_0x8ddf77,'reply':_0xee138f,'interaction':_0xb3c894,'groups':_0x519fe9,'transform':!0x0,'documentCompare':_0x23b812,'documentCompareOptions':{'anchor':_0x407fab(0xd6),'markDeletions':!0x0}});let _0x3f5601;_0x27a8e&&this[_0x407fab(0xe0)](_0x27a8e[_0x407fab(0x99)]),_0x8ddf77[_0x407fab(0x179)][_0x407fab(0x110)](_0x55b92b=>{const _0x3577eb=_0x407fab;_0x3f5601=_0x55b92b[_0x3577eb(0xab)],_0x8ddf77[_0x3577eb(0x1c0)][_0x3577eb(0x10f)](_0x3577eb(0xc8))[_0x3577eb(0x92)](_0x3543b4),this[_0x3577eb(0x15e)][_0x3577eb(0xe1)](_0x3577eb(0xbf));}),this[_0x407fab(0x90)][_0x407fab(0x128)](_0x3f5601,{'interactionId':_0xb3c894['id'],'replyId':_0xee138f['id'],'indexes':_0x54a94a[_0x407fab(0x103)]()}),this[_0x407fab(0x132)](_0xee138f);}[_0x3eff34(0x1b7)](_0x31861e){const _0x17e854=_0x3eff34,_0x665495=_0x5226e4(this[_0x17e854(0x130)]),_0x4b7815=this[_0x17e854(0x130)][_0x17e854(0x1c0)][_0x17e854(0x10f)](_0x25a5f9),{reply:_0x4192eb,interaction:_0x4ac77f}=this[_0x17e854(0xfe)](_0x31861e[_0x17e854(0x161)]),_0x2caed0=this[_0x17e854(0xa1)](_0x31861e[_0x17e854(0x161)],_0x31861e[_0x17e854(0x13d)]),_0x1eeb1e=void 0x0!==_0x31861e[_0x17e854(0x13d)]?[_0x4192eb[_0x17e854(0x19f)][_0x31861e[_0x17e854(0x13d)]]]:_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x196)](_0x4d8a84=>_0x17e854(0xc1)==_0x4d8a84[_0x17e854(0xac)]),_0x17d54b=_0x1eeb1e[_0x17e854(0x137)](_0x238feb=>_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x1d7)](_0x238feb));if(!_0x2caed0||_0x17e854(0x17a)==_0x2caed0[_0x17e854(0x99)][_0x17e854(0xb7)][_0x17e854(0x9a)])return void _0x17d54b[_0x17e854(0x1aa)](_0x6f2296=>_0x4192eb[_0x17e854(0xf2)](_0x6f2296,_0x17e854(0x170)));_0x17d54b[_0x17e854(0x1aa)](_0x3f51b3=>_0x4192eb[_0x17e854(0xf2)](_0x3f51b3,_0x17e854(0x10d)));const _0x3b123e=_0x396b8d({'editor':_0x665495,'reply':_0x4192eb,'interaction':_0x4ac77f,'groups':_0x1eeb1e,'transform':!0x0,'documentCompare':_0x4b7815,'documentCompareOptions':{'anchor':_0x17e854(0xd6),'markDeletions':!0x1}});let _0x4ea5cf;_0x2caed0&&this[_0x17e854(0xe0)](_0x2caed0[_0x17e854(0x99)]),_0x665495[_0x17e854(0x179)][_0x17e854(0x110)](_0x3595c0=>{const _0x121218=_0x17e854;_0x4ea5cf=_0x3595c0[_0x121218(0xab)];for(const _0x275fb2 of _0x3b123e)_0x275fb2[_0x121218(0x113)]=_0x665495[_0x121218(0x179)][_0x121218(0x121)][_0x121218(0x131)],_0x32446d(_0x665495,_0x275fb2),_0x3595c0[_0x121218(0xab)][_0x121218(0xdc)](_0x275fb2),_0x665495[_0x121218(0x179)][_0x121218(0x13f)](_0x275fb2);}),this[_0x17e854(0x90)][_0x17e854(0x128)](_0x4ea5cf,{'interactionId':_0x4ac77f['id'],'replyId':_0x4192eb['id'],'indexes':_0x17d54b[_0x17e854(0x103)]()}),this[_0x17e854(0x132)](_0x4192eb);}[_0x3eff34(0x191)](_0x247e7c,_0x15952e){const _0x33d9af=_0x3eff34,_0x58d38d=_0x5226e4(this[_0x33d9af(0x130)]),_0x24e94f=this[_0x33d9af(0xa1)](_0x247e7c,_0x15952e),_0x5b4fdd=this[_0x33d9af(0x130)][_0x33d9af(0x1c0)][_0x33d9af(0x10f)](_0x15895c);if(!_0x24e94f)return void _0x5b4fdd[_0x33d9af(0x1a8)]();const {range:_0x197429,currentIndex:_0x467123}=_0x24e94f;if(_0x33d9af(0x17a)==_0x197429[_0x33d9af(0xb7)][_0x33d9af(0x9a)]){const {reply:_0x497ff2}=this[_0x33d9af(0xfe)](_0x247e7c);return _0x497ff2[_0x33d9af(0xf2)](_0x467123,_0x33d9af(0x170)),void _0x5b4fdd[_0x33d9af(0x1a8)]();}if(this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x161)]==_0x247e7c&&this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x13d)]==_0x467123)return;this[_0x33d9af(0x11b)](_0x5b4fdd),this[_0x33d9af(0x1b3)]={'replyId':_0x247e7c,'partIndex':_0x467123};let _0x4ff260=_0x58d38d[_0x33d9af(0x16a)][_0x33d9af(0x10f)](_0x33d9af(0xd2))||[..._0x57839b];_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4))||(_0x4ff260=_0x4ff260[_0x33d9af(0x196)](_0x116175=>_0x33d9af(0xba)!=_0x116175));const _0x301838=new _0x1ee013(_0x58d38d[_0x33d9af(0x160)],{'showDiff':this[_0x33d9af(0x15b)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x33d9af(0x147)},'hideHeader':!0x0,'availableActions':_0x4ff260});this[_0x33d9af(0x11b)](_0x301838);const {reply:_0x197a7b}=this[_0x33d9af(0xfe)](_0x247e7c),_0x1fd030=_0x197a7b[_0x33d9af(0x17d)]({'showDiff':this[_0x33d9af(0x15b)]})[_0x33d9af(0x196)](_0x477f47=>_0x477f47[_0x33d9af(0x1bd)]),_0x48bc1b=_0x1fd030[_0x33d9af(0x1af)](_0x330099=>_0x330099[_0x33d9af(0x1db)]==_0x467123);if(-0x1==_0x48bc1b)return;const _0x22c373=_0x1fd030[_0x48bc1b],_0x4dc57e=_0x1fd030['at']((_0x48bc1b-0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)],_0x32b6da=_0x1fd030['at']((_0x48bc1b+0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)];_0x301838[_0x33d9af(0xc0)]({'parts':[_0x22c373],'renderingStrategy':_0x33d9af(0x119)});const _0x48c63c=_0x467123!==_0x4dc57e;this[_0x33d9af(0xe0)](_0x197429,!0x0),_0x5b4fdd[_0x33d9af(0x16c)]({'index':_0x467123,'title':_0xf28a5b(this[_0x33d9af(0x130)][_0x33d9af(0x160)],_0x33d9af(0xfd),(_0x48bc1b+0x1)[_0x33d9af(0xb6)]()),'icon':_0x57825b,'mainView':_0x301838,'showRotator':_0x48c63c,'showApplyButton':!0x0,'showSuggestButton':_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4)),'ranges':[_0x197429]}),this[_0x33d9af(0x1b6)][_0x33d9af(0x1bb)](_0x247e7c,_0x467123),this[_0x33d9af(0x197)](_0x301838,_0x33d9af(0xd0),(_0x3772e7,{showDiff:_0x399c4e})=>{const _0x44b66e=_0x33d9af;this[_0x44b66e(0x15b)]=_0x399c4e;const {reply:_0x13b7ca}=this[_0x44b66e(0xfe)](_0x247e7c),_0x5f31cc=_0x13b7ca[_0x44b66e(0x17d)]({'showDiff':_0x399c4e,'groupIndex':_0x467123});_0x301838[_0x44b66e(0xc0)]({'parts':_0x5f31cc,'renderingStrategy':_0x44b66e(0x119)});}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x162),()=>{const _0x2fbf00=_0x33d9af;this[_0x2fbf00(0x1b7)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x2fbf00(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x2fbf00(0x1a8)]();}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xba),()=>{const _0x44b970=_0x33d9af;this[_0x44b970(0x184)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x44b970(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x44b970(0x1a8)]();}),_0x48c63c&&(this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xcd),()=>{const _0x41d416=_0x33d9af;this[_0x41d416(0x191)](_0x247e7c,_0x32b6da);}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x18c),()=>{const _0x19e045=_0x33d9af;this[_0x19e045(0x191)](_0x247e7c,_0x4dc57e);})),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xdb),()=>{const _0x12b166=_0x33d9af;this[_0x12b166(0x11b)](_0x5b4fdd),this[_0x12b166(0x11b)](_0x301838),this[_0x12b166(0x1b3)]=null;});}[_0x3eff34(0xa1)](_0x51a1b4,_0x464bab){const _0x3befd8=_0x3eff34,_0x2a01c5=_0x5226e4(this[_0x3befd8(0x130)]),{reply:_0x57a614,interaction:_0x4da4c7}=this[_0x3befd8(0xfe)](_0x51a1b4),_0x400097=_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x196)](_0x47cd9f=>_0x3befd8(0xc1)==_0x47cd9f[_0x3befd8(0xac)]),_0x5d2629=_0x400097[_0x3befd8(0x137)](_0x22ff03=>_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x1d7)](_0x22ff03));void 0x0===_0x464bab&&(_0x464bab=_0x5d2629[0x0]);const _0x57784e=_0x5d2629[_0x3befd8(0x1d7)](_0x464bab);if(-0x1==_0x57784e)return null;const _0x549c8a=_0x400097[_0x57784e],_0x47f2c4=new _0xc54126([]),_0x1b95fc=new _0xc54126([]);for(const _0x2a7b2e of _0x549c8a[_0x3befd8(0x19e)])if(_0x3befd8(0x195)!=_0x2a7b2e[_0x3befd8(0x144)]&&_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x2a7b2e[_0x3befd8(0x1d3)][_0x3befd8(0x188)](!0x0)),_0x3befd8(0xf8)!=_0x2a7b2e[_0x3befd8(0x144)]){const _0x1b9dea=_0xe31386(_0x5f04e6=>_0x4ed15a(_0x5f04e6,_0x3befd8(0x12c))==_0x2a7b2e['id'],_0x57a614[_0x3befd8(0xbd)],!0x0);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x1b9dea[_0x3befd8(0x188)](!0x0));}if(0x0==_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x10a)]){if(_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)]){const _0x57a03e=_0x2102a5(_0x3befd8(0x12c),_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)],_0x57a614[_0x3befd8(0xbd)]);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x57a03e[_0x3befd8(0x1bc)]&&(_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)));}else{const _0x4e3783=_0x57a614[_0x3befd8(0xbd)][_0x3befd8(0x173)][0x0];if(!_0x4e3783)return null;_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0));}}const _0x1fc74e=_0x4da4c7[_0x3befd8(0x1b9)](),_0x3268cf=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x1fc74e[_0x3befd8(0x115)]),_0x4735e9=_0x394252(_0x47f2c4),_0x545825=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x1e05b8=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x6f8584=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x16b)](_0x545825,0x0),_0x2333e8=_0x394252(_0x1b95fc),_0x4af19b={'anchor':_0x6f8584,'markDeletions':!0x1},_0x308eeb=_0x2a01c5[_0x3befd8(0x1c0)][_0x3befd8(0x10f)](_0x25a5f9)[_0x3befd8(0xde)](_0x4735e9,_0x2333e8,_0x4af19b)[_0x3befd8(0x14b)]();if(!_0x308eeb[_0x3befd8(0x10a)])return null;_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x110)](_0x5099d6=>{const _0x1eb2e4=_0x3befd8;for(const _0x3b5f49 of _0x308eeb)if(_0x1eb2e4(0x15f)==_0x3b5f49[_0x1eb2e4(0x144)]){const _0x4d9b95=_0x3b5f49[_0x1eb2e4(0x17b)],_0x24b1e2=_0x3b5f49[_0x1eb2e4(0xb1)],_0x3f0689=new _0x4ebe0e(_0x4d9b95,_0x24b1e2);_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3f0689),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3f0689);}else _0x1eb2e4(0x123)!==_0x3b5f49[_0x1eb2e4(0x144)]&&(_0x3b5f49[_0x1eb2e4(0x113)]=null,_0x3b5f49[_0x1eb2e4(0x19c)]=!0x1,_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3b5f49),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3b5f49));});const _0x26aec8=_0x4307ed(_0x2a01c5,_0x308eeb,_0x545825);_0x51024a(_0x2a01c5[_0x3befd8(0x179)],_0x26aec8);const _0x201e69=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x2670ee=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x5ccbfe=[];let _0x4037c1=_0x545825,_0x36bf85=_0x1e05b8;for(let _0x19a143=0x0;_0x19a143<_0x2670ee[_0x3befd8(0x10a)];_0x19a143++){const _0x46470a=_0x4037c1[_0x3befd8(0x11d)]-_0x2670ee[_0x19a143];_0x5ccbfe[_0x19a143]=_0x36bf85[_0x3befd8(0x11d)]-_0x46470a,_0x4037c1=_0x4037c1[_0x3befd8(0xbb)](_0x2670ee[_0x19a143]),_0x36bf85=_0x36bf85[_0x3befd8(0xbb)](_0x5ccbfe[_0x19a143]);}const _0xaa03d6=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x201e69),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x5ccbfe)),_0x4a7be8=_0x1e05b8[_0x3befd8(0x187)](0x0)[_0x3befd8(0xf5)](_0x336395),_0x4882cd=Array[_0x3befd8(0x9f)](_0x3268cf[_0x3befd8(0x190)]())[_0x3befd8(0x1b5)](_0x3c3a28=>_0x3c3a28[_0x3befd8(0xf5)](_0x336395)==_0x4a7be8)[_0x3befd8(0x194)](),_0x4aebe4=_0xaa03d6[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x23df3a=_0xaa03d6[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)]();_0x4aebe4[0x0]=_0x4882cd[0x0]+_0x4aebe4[0x0],_0x23df3a[0x0]=_0x4882cd[0x0]+_0x23df3a[0x0];let _0x441c2d=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x4aebe4),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x23df3a));const _0x1f9e58=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x8c)][_0x3befd8(0x14b)](_0x1fc74e[_0x3befd8(0x131)]);for(const _0x436778 of _0x1f9e58)_0x441c2d=_0x5aebe5[_0x3befd8(0x11e)](_0x441c2d[_0x3befd8(0x1ec)](_0x436778));return{'range':_0x441c2d,'currentIndex':_0x464bab};}[_0x3eff34(0xf9)](_0x12453c){const _0x84acd6=_0x3eff34;if(!_0x12453c[_0x84acd6(0x1c0)][_0x84acd6(0x1a1)](_0x84acd6(0xe7)))return;const _0x34c53a=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0x166)),_0x2d9f30=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0xbc));this[_0x84acd6(0x197)](_0x34c53a,_0x84acd6(0x1a3),(_0xb84d5d,_0x1be876,_0x175c6d)=>{const _0x3d1a27=_0x84acd6,_0x3bfe8a=this[_0x3d1a27(0x90)][_0x3d1a27(0x10f)](_0x1be876);if(!_0x3bfe8a)return;const _0x38e967=this[_0x3d1a27(0x1ad)][_0x3d1a27(0x1c8)](_0x3bfe8a[_0x3d1a27(0xec)])[_0x3d1a27(0x1d8)](_0x3bfe8a[_0x3d1a27(0x161)]);_0x3bfe8a[_0x3d1a27(0x14a)][_0x3d1a27(0x1aa)](_0x283372=>_0x38e967[_0x3d1a27(0xf2)](_0x283372,_0x3d1a27(0xc1))),this[_0x3d1a27(0x90)][_0x3d1a27(0x1cb)](_0x1be876),this[_0x3d1a27(0x90)][_0x3d1a27(0x128)](_0x175c6d,_0x3bfe8a);}),this[_0x84acd6(0x197)](_0x2d9f30,_0x84acd6(0x1a3),(_0x526c09,_0x225b94,_0x23d72b)=>{const _0x126d77=_0x84acd6,_0xa65c2e=this[_0x126d77(0x90)][_0x126d77(0x10f)](_0x225b94);if(!_0xa65c2e)return;const _0x289af2=this[_0x126d77(0x1ad)][_0x126d77(0x1c8)](_0xa65c2e[_0x126d77(0xec)])[_0x126d77(0x1d8)](_0xa65c2e[_0x126d77(0x161)]);_0xa65c2e[_0x126d77(0x14a)][_0x126d77(0x1aa)](_0x5a9845=>_0x289af2[_0x126d77(0xf2)](_0x5a9845,_0x126d77(0x10d))),this[_0x126d77(0x90)][_0x126d77(0x1cb)](_0x225b94),this[_0x126d77(0x90)][_0x126d77(0x128)](_0x23d72b,_0xa65c2e);});}async[_0x3eff34(0xb2)](_0x902aca){const _0x5c0837=_0x3eff34;this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x15895c)[_0x5c0837(0x1a8)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x119)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x0),await this[_0x5c0837(0x10b)]();try{const _0x2c48b6=this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x9c5646);this[_0x5c0837(0x1a4)]('\x20'),_0x2c48b6[_0x5c0837(0xa8)][_0x5c0837(0x1de)](_0x5c0837(0x135)),await this[_0x5c0837(0x97)](_0x902aca);const {sessionId:_0x2879e5}=this[_0x5c0837(0x15e)][_0x5c0837(0xd9)]();await this[_0x5c0837(0x1ad)][_0x5c0837(0x141)](_0x902aca,_0x2879e5),this[_0x5c0837(0x1ad)][_0x5c0837(0x1c9)]()&&this[_0x5c0837(0x1ad)][_0x5c0837(0xa3)](_0xf28a5b(this[_0x5c0837(0x130)][_0x5c0837(0x160)],_0x5c0837(0x1a9)));}catch(_0x1509e9){console[_0x5c0837(0x1a5)](_0x5c0837(0x1d2),_0x1509e9);}finally{this[_0x5c0837(0x1b6)][_0x5c0837(0x116)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x1ca)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x1);}}[_0x3eff34(0x16e)](_0x5cff5c){const _0x5f178e=_0x3eff34;this[_0x5f178e(0x1ad)]['id']===_0x5cff5c&&this[_0x5f178e(0x97)]();}async[_0x3eff34(0x15d)](){const _0x206a44=_0x3eff34,_0x57db0c=this[_0x206a44(0x15e)][_0x206a44(0xb8)]();this[_0x206a44(0x1ad)]?.[_0x206a44(0x11f)](_0x57db0c),this[_0x206a44(0x1ad)]?.[_0x206a44(0xa3)](_0xf28a5b(this[_0x206a44(0x130)][_0x206a44(0x160)],_0x206a44(0x1a9)));}[_0x3eff34(0x1da)](){const _0x17e056=_0x3eff34;this[_0x17e056(0x1ad)]?.[_0x17e056(0xa9)]();}[_0x3eff34(0x1eb)](){const _0x253d66=_0x3eff34;this[_0x253d66(0x1b6)][_0x253d66(0x1eb)]();}async[_0x3eff34(0x1a0)](){const _0xdd06bb=_0x3eff34;await this[_0xdd06bb(0x97)]();}async[_0x3eff34(0x1e5)]({message:_0x200c9a,quickActionData:_0x444a3d}){const _0x50886d=_0x3eff34;await this[_0x50886d(0x9b)]({'userMessage':_0x200c9a,'quickActionData':_0x444a3d});}[_0x3eff34(0x95)](){const _0x55c164=_0x3eff34,_0x3b8582=this[_0x55c164(0x130)][_0x55c164(0x16a)][_0x55c164(0x10f)](_0x55c164(0x96));if(!_0x3b8582)throw new _0x28a58b(_0x55c164(0x101),this);return _0x3b8582;}async[_0x3eff34(0x97)](_0x191313){const _0x53b68e=_0x3eff34;try{this[_0x53b68e(0x1b6)][_0x53b68e(0xa0)](),await this[_0x53b68e(0x106)](_0x191313);}catch(_0x567a0c){_0x283934(_0x53b68e(0x148),_0x567a0c),this[_0x53b68e(0x1ad)]=void 0x0,this[_0x53b68e(0x1b6)][_0x53b68e(0xaa)]();}}async[_0x3eff34(0x106)](_0x3e2797){const _0x346f06=_0x3eff34,_0x5bc748=this[_0x346f06(0x130)][_0x346f06(0x1c0)][_0x346f06(0x10f)](_0x15895c);let _0x24e562;_0x5bc748[_0x346f06(0x1c4)]&&_0x5bc748[_0x346f06(0x1a8)](),_0x3e2797||!this[_0x346f06(0x1ad)]?_0x24e562=this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0x117)):this[_0x346f06(0x1b6)][_0x346f06(0x124)]&&(_0x24e562=this[_0x346f06(0x1ad)][_0x346f06(0x149)]['id']),await this[_0x346f06(0x10b)]();const _0x36c6fb=this[_0x346f06(0x95)](),_0x5a3e85=_0x3e2797||_0x3728dc();this[_0x346f06(0x1ad)]=new _0x33dcbb({'connector':this[_0x346f06(0x16d)],'chatModels':this[_0x346f06(0x12e)],'selectedModelId':_0x24e562,'conversationId':_0x5a3e85,'group':_0x36c6fb,'getEditor':()=>_0x5226e4(this[_0x346f06(0x130)])}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x165),(_0x5973bd,_0x1cf62a)=>{const _0x17212a=_0x346f06;this[_0x17212a(0x1b6)][_0x17212a(0x129)](_0x1cf62a),this[_0x17212a(0x1b6)][_0x17212a(0x140)](),this[_0x17212a(0x1b6)][_0x17212a(0xcb)](),this[_0x17212a(0x1b6)][_0x17212a(0x107)](),_0x3e2797||(this[_0x17212a(0x1b6)][_0x17212a(0xd3)](),this[_0x17212a(0x1ad)]?.[_0x17212a(0xa3)](_0xf28a5b(this[_0x17212a(0x130)][_0x17212a(0x160)],_0x17212a(0x1a9))));}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x13a),(_0x1bc27f,_0x1f87b7)=>{const _0x4d006f=_0x346f06;this[_0x4d006f(0x1b6)][_0x4d006f(0x156)](_0x1f87b7[_0x4d006f(0x1cd)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x98),(_0x758de8,_0x14a597)=>{const _0x33b896=_0x346f06;this[_0x33b896(0x1b6)][_0x33b896(0x18e)](_0x14a597);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xd5),()=>{const _0x557d36=_0x346f06;this[_0x557d36(0x1b6)][_0x557d36(0x112)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xea),()=>{const _0x146282=_0x346f06;this[_0x146282(0x1b6)][_0x146282(0x112)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x8e),(_0x4ce616,_0x5b256c)=>{const _0x4c5c27=_0x346f06;this[_0x4c5c27(0x1b6)][_0x4c5c27(0xe9)](_0x5b256c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xdf),(_0x212adf,_0x1c2ff1)=>{const _0x5c78b4=_0x346f06;this[_0x5c78b4(0x1b6)][_0x5c78b4(0xe9)](_0x1c2ff1,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x125),()=>{const _0xbc6a84=_0x346f06;this[_0xbc6a84(0x1b6)][_0xbc6a84(0x127)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x18b),async()=>{const _0x444925=_0x346f06;await this[_0x444925(0x1b6)][_0x444925(0x1a6)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x17e),(_0x25c9f4,_0x5e5e33)=>{const _0x5c401c=_0x346f06;this[_0x5c401c(0x1b6)][_0x5c401c(0x11a)](_0x5e5e33['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x15a),(_0x2b6945,_0x497ec8,_0x1bde43)=>{const _0x4d1d7a=_0x346f06;this[_0x4d1d7a(0x1a4)](_0x497ec8,_0x1bde43);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x12f),(_0x382d1d,_0x381f46)=>{const _0x2d17c2=_0x346f06;_0x2d17c2(0x136)===_0x381f46[_0x2d17c2(0x144)]?this[_0x2d17c2(0x1b6)][_0x2d17c2(0x164)](_0x381f46):this[_0x2d17c2(0x1b6)][_0x2d17c2(0x1dc)](_0x381f46);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x163),async(_0x53985e,_0x2bebc1)=>{const _0x3fd448=_0x346f06;await this[_0x3fd448(0xfc)]({'reply':_0x2bebc1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x93),(_0x71e78c,{reply:_0x3561d1,index:_0x4ab065,state:_0x4399d2})=>{const _0x12a16c=_0x346f06;this[_0x12a16c(0x1b6)][_0x12a16c(0xc3)]({'id':_0x3561d1['id'],'index':_0x4ab065,'state':_0x4399d2});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x138),(_0x11b7c8,_0x4b3d9b)=>{const _0x14e77c=_0x346f06;if(this[_0x14e77c(0x1b6)][_0x14e77c(0xf4)](_0x4b3d9b[_0x14e77c(0xfa)],_0x4b3d9b[_0x14e77c(0x175)]),_0x14e77c(0x8f)===_0x4b3d9b[_0x14e77c(0xfa)][_0x14e77c(0x144)]){const _0x509f04=[..._0x5226e4(this[_0x14e77c(0x130)])[_0x14e77c(0x179)][_0x14e77c(0x121)][_0x14e77c(0x8f)][_0x14e77c(0x114)]()];this[_0x14e77c(0x15e)][_0x14e77c(0xe5)](_0x509f04,_0x14e77c(0x193)+this[_0x14e77c(0x1ad)]?.['id']);}}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x10c),(_0x41aedd,_0xd321cb)=>{const _0x2f5df2=_0x346f06;this[_0x2f5df2(0x1b6)][_0x2f5df2(0x12b)](_0xd321cb[_0x2f5df2(0xc7)]),_0x2f5df2(0x18a)==_0xd321cb[_0x2f5df2(0xc7)]&&this[_0x2f5df2(0x1da)](),_0x2f5df2(0x8f)===_0xd321cb[_0x2f5df2(0x144)]&&this[_0x2f5df2(0x15e)][_0x2f5df2(0xe1)](_0x2f5df2(0x193)+this[_0x2f5df2(0x1ad)]?.['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x111),(_0x184661,_0x28572a)=>{const _0x4f49d4=_0x346f06;this[_0x4f49d4(0x1b6)][_0x4f49d4(0x19a)](_0x28572a[_0x4f49d4(0xfa)][_0x4f49d4(0xc7)],_0x28572a[_0x4f49d4(0x175)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1d1),(_0x399076,_0x95e53b)=>{const _0x524bca=_0x346f06;this[_0x524bca(0x1b6)][_0x524bca(0x178)](_0x95e53b[_0x524bca(0xd1)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x189),(_0xf9bc68,_0x4b738f)=>{const _0x23371a=_0x346f06;this[_0x23371a(0x1b6)][_0x23371a(0x120)](_0x4b738f[_0x23371a(0x1ba)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x174),(_0x44d8fc,_0x1b9664)=>{const _0x26f571=_0x346f06;this[_0x26f571(0x1b6)][_0x26f571(0x192)](_0x1b9664[_0x26f571(0x1c5)],_0x1b9664[_0x26f571(0xee)],_0x1b9664[_0x26f571(0xc4)],_0x1b9664[_0x26f571(0xe4)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x94),(_0x5d4143,_0x12a67a)=>{const _0x477064=_0x346f06;this[_0x477064(0x1b6)][_0x477064(0x11c)](_0x12a67a[_0x477064(0x1c5)],_0x12a67a[_0x477064(0xa5)],_0x12a67a[_0x477064(0xe3)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1b0),(_0x339d32,_0x419a40)=>{const _0x816425=_0x346f06;this[_0x816425(0x1b6)][_0x816425(0x159)](_0x419a40);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xf3),(_0x308fc5,_0x3f89f2)=>{const _0x4a03ed=_0x346f06;this[_0x4a03ed(0x1b6)][_0x4a03ed(0x8d)](_0x3f89f2[_0x4a03ed(0x149)],_0x3f89f2[_0x4a03ed(0xd8)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1a5),(_0x552122,{error:_0xdf2453,interactionId:_0x2ce81e,fileName:_0x58eaaf,url:_0x71f46e,sourceId:_0x9a9fe9,sourceLabel:_0x1490cc})=>{const _0x2930dd=_0x346f06,_0x1a18fe=_0x2ce81e?_0x2ce81e+':'+_0x3728dc():_0x3728dc();_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xae))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1e1)]({'staticMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1be)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xf0))||_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x148))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x152)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x14e))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0xb9),_0x58eaaf),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xeb))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1dd),_0x71f46e),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1c2))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1e9)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x172))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1d5)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1ea))?(_0x9a9fe9&&this[_0x2930dd(0x1b6)][_0x2930dd(0x1d6)](_0x9a9fe9),this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x122),_0x1490cc||_0x2930dd(0xee)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x171))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1b8)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x12d)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453));}),await this[_0x346f06(0x1ad)][_0x346f06(0x14d)](this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0xc5))),_0x3e2797||await this[_0x346f06(0x1ad)][_0x346f06(0x1ab)]();}async[_0x3eff34(0x9b)]({userMessage:_0x2478c0,quickActionData:_0x21eaca}){const _0x429099=_0x3eff34;if(!this[_0x429099(0x1ad)])throw new _0x28a58b(_0x429099(0x1a7));this[_0x429099(0x1ad)][_0x429099(0xc2)]()&&await this[_0x429099(0x1ad)][_0x429099(0x169)](this[_0x429099(0x15e)][_0x429099(0xd9)]()),this[_0x429099(0x1ad)]['id']&&this[_0x429099(0x1ad)][_0x429099(0xb5)]&&await this[_0x429099(0x1ad)][_0x429099(0xcc)]({'userMessage':_0x2478c0,'quickActionData':_0x21eaca}),this[_0x429099(0xaf)]();}[_0x3eff34(0xaf)](){const _0x5849e6=_0x3eff34,_0x9b69c4=_0x5226e4(this[_0x5849e6(0x130)])[_0x5849e6(0x179)],_0x50537a=Array[_0x5849e6(0x9f)](_0x9b69c4[_0x5849e6(0xce)][_0x5849e6(0x1ac)](_0x447b84));_0x9b69c4[_0x5849e6(0x110)](_0x59d6e1=>{const _0x26b653=_0x5849e6;_0x50537a[_0x26b653(0x1aa)](_0xdabd40=>_0x59d6e1[_0x26b653(0x105)](_0xdabd40));});}[_0x3eff34(0x153)](){const _0x21464c=_0x3eff34;console[_0x21464c(0xf1)](_0x21464c(0x177));}[_0x3eff34(0x168)](_0x5bb26b){const _0x9c4167=_0x3eff34;this[_0x9c4167(0x1b6)][_0x9c4167(0xda)](_0x5bb26b);}[_0x3eff34(0xc6)](_0x2afc5b){const _0x297c1b=_0x3eff34;_0x283934(_0x2afc5b[_0x297c1b(0x133)]);}[_0x3eff34(0x15c)](_0x35bca7){const _0x341e3f=_0x3eff34;this[_0x341e3f(0x1ad)]?.[_0x341e3f(0xca)](_0x35bca7);}[_0x3eff34(0xe6)](){const _0x2b1914=_0x3eff34;this[_0x2b1914(0x1ad)]?.[_0x2b1914(0x1cf)]();}[_0x3eff34(0x1ce)](){const _0x4b1f9e=_0x3eff34;this[_0x4b1f9e(0x1ad)]?.[_0x4b1f9e(0xd7)]();}[_0x3eff34(0xfe)](_0x479e46){const _0x4a3025=_0x3eff34,[_0x4af365,_0x27194e]=_0x479e46[_0x4a3025(0xf7)](':'),_0xa26729=this[_0x4a3025(0x1ad)][_0x4a3025(0x1c8)](_0x4af365),_0x47ea81=_0xa26729[_0x4a3025(0x1d8)](_0x27194e);return{'interaction':_0xa26729,'reply':_0x47ea81};}[_0x3eff34(0xe0)](_0x34ec4c,_0x2061fb=!0x1){const _0x3d2de1=_0x3eff34,_0x5cdc89=_0x5226e4(this[_0x3d2de1(0x130)]),_0x5d1023={'target':_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0xa8)][_0x3d2de1(0xdd)][_0x3d2de1(0xc9)](_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0x150)][_0x3d2de1(0x13c)](_0x34ec4c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2061fb};_0x2061fb&&(_0x5d1023[_0x3d2de1(0x14c)]=!0x0),_0x2ddcb3(_0x5d1023);}[_0x3eff34(0x1a4)](_0x14077e,_0x450389=!0x1){const _0x31da76=_0x3eff34;this[_0x31da76(0x1b6)][_0x31da76(0x15a)](_0x14077e||_0xf28a5b(this[_0x31da76(0x130)][_0x31da76(0x160)],_0x31da76(0x1bf)),_0x450389);}async[_0x3eff34(0xfc)]({reply:_0x2f26a1,renderingStrategy:_0x53d1b1}){const _0x249989=_0x3eff34,{id:_0x4f8355,isDone:_0x4c8731,type:_0x5f23cb,parsedContent:_0xc0481}=_0x2f26a1;if(_0x249989(0x100)===_0x5f23cb){const _0x2b0a92=_0x2f26a1[_0x249989(0x17d)]({'showDiff':this[_0x249989(0x1b6)][_0x249989(0x14f)]});await this[_0x249989(0x1b6)][_0x249989(0x1b1)]({'id':_0x4f8355,'parts':_0x2b0a92,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});}else _0x249989(0x136)===_0x5f23cb&&await this[_0x249989(0x1b6)][_0x249989(0x9c)]({'id':_0x4f8355,'parsedContent':_0xc0481,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});_0x4c8731&&_0x2f26a1[_0x249989(0x143)][_0x249989(0x10a)]>0x0&&this[_0x249989(0x1b6)][_0x249989(0x167)](_0x4f8355,_0x2f26a1[_0x249989(0x143)]);}async[_0x3eff34(0x10b)](){const _0x5a0448=_0x3eff34,_0x38caf6=this[_0x5a0448(0x1ad)]?.[_0x5a0448(0x155)];_0x38caf6&&(_0x38caf6[_0x5a0448(0xbe)](),this[_0x5a0448(0x1b6)][_0x5a0448(0x16f)](_0x38caf6));}async[_0x3eff34(0x1c1)](){const _0xfbce0c=_0x3eff34,_0x5f8fb8=this[_0xfbce0c(0x1ad)]?.[_0xfbce0c(0x155)];if(_0x5f8fb8){for await(const _0x1de35c of _0x5f8fb8[_0xfbce0c(0xa4)])await this[_0xfbce0c(0xfc)]({'reply':_0x1de35c,'renderingStrategy':_0xfbce0c(0x119)});}}[_0x3eff34(0x132)](_0x45a2be){const _0x4896d7=_0x3eff34,_0x5e73ce={'positiveCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x196)](_0x28caa3=>_0x4896d7(0x10d)===_0x28caa3[_0x4896d7(0xac)])[_0x4896d7(0x10a)],'totalCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x10a)],'modificationId':_0x45a2be['id']},_0x350c8a=this[_0x4896d7(0x1ad)][_0x4896d7(0x1c8)](_0x45a2be[_0x4896d7(0xec)])[_0x4896d7(0x1a2)];this[_0x4896d7(0x16d)][_0x4896d7(0x13e)](this[_0x4896d7(0x1ad)]['id'],_0x350c8a,_0x5e73ce);}}
23
+ function _0x28f4(_0x311076,_0x13b492){const _0x5c5f90=_0x5c5f();return _0x28f4=function(_0x28f490,_0xa812bc){_0x28f490=_0x28f490-0xbd;let _0x182374=_0x5c5f90[_0x28f490];return _0x182374;},_0x28f4(_0x311076,_0x13b492);}const _0xfba34b=_0x28f4;function _0x5c5f(){const _0x3fc57a=['addResourceToContext','applySuggestion','addFeedItemAISuggestion','data-id','webSearchStarted','setIsUploadInProgress','cloneNode','ai-chat-controller-no-active-conversation','setConversationTitle','change','getMarkersGroup','ai-chat-context-unsupported-file-type','replyId','activateTab','selectedModel','_showConversationHistory','model','populateSourceResourceBalloon','getInteractionAndReplyById','like','interactionId','sendUserMessage','lastInteraction','locale','ai-chat-controller-mouse-over','domConverter','focusPromptInput','hasChanges','loadConversation','$graveyard','has','isPremiumPlugin','getOperations','AI_CHAT_GENERIC_ERROR','commands','uploadProgressChanged','updateFeedItemAIReplySuggestionPartState','84zsFqCV','addFeedItemStaticMessage','getDocumentData','baseVersion','removeFeedInteraction','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','plugins','ai-chat-context-file-too-many-pages','136614SjkiRV','get','AI_CHAT_CONTEXT_INVALID_DATA','resetMessageInput','removeFromContext','closeSourceResourceBalloon','12mSUiGs','rejectSuggestion','_scrollToSuggestionRange','interactionFinished','parse','documentContextContent','showDiff','_updateReplyContent','startInteraction','resource','hideFakeVisualSelection','removeContextItem','isUploadInProgress','mouseLeaveSuggestion','index','setContextItemLoading','filter','ai-chat-conversation-start-failed','isCurrentDocumentInContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','updateCurrentDocumentInContext','_handleStartConversation','ai-request-aborted','AIChatUI','ai.availableReplyActions','updateConversationTitle','interactionStarted','contextSent','type','toggleSuggestionDisplayMode','accepted','selection','setAddContextOptions','full','afterInit','addUrlToContext','Disliked\x20response','remove','text-delta','2445240reqjsj','_aiChatUi','mouseOverSuggestion','uiId','changes','_insertSuggestion','showNext','outdated','indexes','removeMarker','split','_handleUIUserMessage','updateFeedItemAIReplyContent','interactionCreated','ai-conversation-','_flushLastInteractionUI','removeSelectionFromChatContext','_openBalloonFor','addFeedItemAIReply','maxOffset','forEach','stopInteraction','resources','find','_balloonShowDiff','419193jybPKH','isLoading','viewRangeToDom','sendMessage','marker','clearPendingContextUI','handleUserInteraction','webSearchFinished','conversationInitialized','markers','ready','node','addFeedItemUserMessage','ai-chat-resource-load-failed','showFakeVisualSelection','new','length','listenTo','rejected','applyOperation','_stopLastInteraction','sources','rootName','_batchToChanges','changeGroups','query','getContentParts','getFirstRange','stopListening','_removeAISelectionMarkers','addSelectionToContext','finishInteraction','_aiEditing','ai-no-track-changes','removed','open','getSelectionText','delete','disableControls','Undo','setSelectedModel','AIChatController','fetchConversation','startAutoScroll','ai-chat-conversation-init-failed','startsWith','source','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','showChangeInText','ai-chat-invalid-request','AI_CHAT_CONTEXT_FILE_TOO_LARGE','ai.chat.context','static','reasoningStarted','collaboration.channelId','updateResourceState','document','resize','log','addContextOptionsChanged','AI_BALLOON_HEADER_TITLE','map','messageId','createRange','1260265zCQSPY','pending','contextItemAdded','9ISUnhf','replyCreated','context','replyContentUpdated','toViewRange','updateFeedItemAIReplySources','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','start','message','isCurrentDocumentInConversation','isInContext','_integrateEditor','getRanges','setFeedItemRenderingStrategy','resizeTabs','loadSourceResources','getInteraction','ai.chat.models.displayedModels','addCurrentDocumentToContext','redo','push','findIndex','setConversationContext','toggleLoadingSkeleton','getChildren','createPositionAt','activeConversation','4qHCmhM','isDisabled','selectModel','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getDiff','325201iTbuUe','addFeedItemError','getGroupId','config','streaming','getRoot','end','state','undo','setModel','mapper','from','updateContent','isOpen','_setIsMaximized','scrollFeedToSuggestion','ai-chat-conversation-not-found','DocumentCompare','chat','ai-chat-context-unsupported-type','nextSibling','set','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','getChildAtOffset','_aiConnector','pluginName','Liked\x20response','main','removeSelectionFromContext','clearConversationContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','addFilesToContext','AIEditing','resizedTabs','load','close','revert','setChangeGroupState','ai-chat-source-resources-load-failed','contextItems','_getDocumentRangeForReplyChanges','uid','addFileToContext','content','slice','contextItemLoadingEnded','setLoadingMessage','ai-chat-url-upload-failed','enableControls','insertSuggestion','getPath','root','resetConversationTitle','getReply','getChild','resourceId','toggleWebSearch','editing','requires','reasoningFinished','isDocumentOperation','add','getAttribute','sourcePosition','children','AI_CHAT_ABORTED_MESSAGE','handleRemovedConversation','contextItemRemoved','_createFromRanges','getConversation','isOfficialPlugin','dislike','toString','capabilitiesUpdated','howMany','anchorId','addSelectionToChatContext','replyChangeGroupStateUpdated','startConversation','TrackChangesEditing','758417aOBorg','ai-chat-file-upload-failed','Showing\x20conversation\x20history...','_applyOperationsAsSuggestions','history','current-document','ai-chat-context-form-data-size-limits-exceeded','369944MzKBrm','modification-delta','2wPTUrE','modelSelected','ai-chat-context-file-too-large','interactionDestroyed','editors','range','path','_applySuggestion','dialogClosed','AI_CHAT_UNABLE_TO_START_CONVERSATION','resourceStateChanged','replies','isStarted','unshift','_startConversationSafely','toggleReasoning','getDocumentContext','AI_CHAT_INVALID_REQUEST','sourceResourcesLoaded','contextItem','getTransformedByOperation','showPrevious','AITabs','isModelAvailable','version','addDocumentToContext','addContextItem','_previewedChangeGroup','data','AIConnector','upsertAIChatRating','AI_CHAT_RESOURCE_LOAD_FAILED','partIndex','_updateRatings','_toggleWebSearch','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','alignToTop','ai.chat.models.defaultModelId','_removeFromContext','updateFeedItemAIReplySuggestionContent','init','createPositionFromPath','indexOf','_toggleReasoning','_aiChatModels','createConversation','addFeedInteractionHeader','ai-chat-context-invalid-data','_logError','view','options','batch','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','addOperation','updateCapabilities','ai-chat-missing-channel-id','AI_CHAT_UNTITLED_CONVERSATION','error','TrackChanges','setIsMaximized','sourceId','abortPromptStream','stop'];_0x5c5f=function(){return _0x3fc57a;};return _0x5c5f();}(function(_0x4aaa50,_0xc782b0){const _0x12187c=_0x28f4,_0x3fa6ea=_0x4aaa50();while(!![]){try{const _0xc2d146=parseInt(_0x12187c(0xee))/0x1*(parseInt(_0x12187c(0x147))/0x2)+-parseInt(_0x12187c(0x1f9))/0x3*(-parseInt(_0x12187c(0xe9))/0x4)+-parseInt(_0x12187c(0xcb))/0x5+-parseInt(_0x12187c(0x1b3))/0x6*(parseInt(_0x12187c(0x1ab))/0x7)+parseInt(_0x12187c(0x145))/0x8*(-parseInt(_0x12187c(0xce))/0x9)+parseInt(_0x12187c(0x1e0))/0xa+parseInt(_0x12187c(0x13e))/0xb*(parseInt(_0x12187c(0x1b9))/0xc);if(_0xc2d146===_0xc782b0)break;else _0x3fa6ea['push'](_0x3fa6ea['shift']());}catch(_0x200854){_0x3fa6ea['push'](_0x3fa6ea['shift']());}}}(_0x5c5f,0x3281f));import{ContextPlugin as _0xaf1511,Editor as _0x3b72ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x2f3966,logError as _0x1c67a5,scrollViewportToShowTarget as _0x819849,uid as _0x1fe331}from'ckeditor5/src/utils.js';import{AIConnector as _0x20e343}from'../aicore/aiconnector.js';import{AITabs as _0x4ff8a5}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23e024}from'./model/aichatconversation.js';import{getTranslation as _0x53e39a}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1a1f0f}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x49e2dc}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x46931b}from'./model/aichatmodels.js';import{getEditorFromContext as _0x420b18}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x334ef2,DATA_ID_MODEL_ATTRIBUTE as _0x1a5ae8}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4a1844,getOperationsFromReply as _0x27175d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x8f6274,getMinimalSelection as _0x387a7d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x124b73,_DetachOperation as _0x2c5643}from'ckeditor5/src/engine.js';import{findOne as _0x11553c,getAttribute as _0x198b2a,serialize as _0x423327,Document as _0x1eed08,findByAttribute as _0x22bc82}from'../aicore/utils/htmlparser.js';import{IconAI as _0x139108}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x57b9b8}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x460556}from'../aiballoon/aiballoon.js';export class AIChatController extends _0xaf1511{[_0xfba34b(0x219)];[_0xfba34b(0x106)];[_0xfba34b(0x1e1)];[_0xfba34b(0x173)];[_0xfba34b(0x210)]=new Map();[_0xfba34b(0x162)]=null;[_0xfba34b(0x1f8)]=!0x1;static get[_0xfba34b(0x128)](){return[_0x20e343,_0x460556,_0x334ef2];}static get[_0xfba34b(0x107)](){const _0x5852de=_0xfba34b;return _0x5852de(0x222);}static get[_0xfba34b(0x134)](){return!0x0;}static get[_0xfba34b(0x1a5)](){return!0x0;}[_0xfba34b(0x16f)](){const _0x1d4cc4=_0xfba34b;this[_0x1d4cc4(0x106)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x164)),this[_0x1d4cc4(0x1e1)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x1d0)),this[_0x1d4cc4(0x219)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x10e)),this[_0x1d4cc4(0x173)]=new _0x46931b({'connector':this[_0x1d4cc4(0x106)],'availableModels':this[_0x1d4cc4(0xd0)][_0x1d4cc4(0xf1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0xdf)),'defaultModelId':this[_0x1d4cc4(0xd0)][_0x1d4cc4(0xf1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x16c))});const _0x3249c3=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x15d));this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x13c),()=>{const _0x10f6fb=_0x1d4cc4;this[_0x10f6fb(0x155)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x19b),(_0x55fd32,_0x44adfd)=>{const _0x4c2a71=_0x1d4cc4;this[_0x4c2a71(0x1eb)]({'userMessage':_0x44adfd});}),this[_0x1d4cc4(0x20a)](_0x3249c3,_0x1d4cc4(0x10f),(_0x390171,_0x43830f)=>{const _0x5deadd=_0x1d4cc4;this[_0x5deadd(0xfc)](_0x43830f);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xdc),()=>{const _0xe8de87=_0x1d4cc4;_0x3249c3[_0xe8de87(0xc4)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x184),async()=>{const _0x2b363b=_0x1d4cc4;await this[_0x2b363b(0x20d)](),await this[_0x2b363b(0x1ef)](),this[_0x2b363b(0x1f0)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x160),()=>{const _0x3f53a7=_0x1d4cc4;this[_0x3f53a7(0xe8)]?.[_0x3f53a7(0xe0)](_0x53e39a(this[_0x3f53a7(0xd0)][_0x3f53a7(0x19d)],_0x3f53a7(0x1b0)));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x118),(_0x300f45,_0x19a60a)=>{const _0x221cf3=_0x1d4cc4;this[_0x221cf3(0xe8)]?.[_0x221cf3(0x10d)](Array[_0x221cf3(0xf9)](_0x19a60a));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1dc),(_0x56e2c9,_0x24da7e)=>{const _0x2ec06c=_0x1d4cc4;this[_0x2ec06c(0xe8)]?.[_0x2ec06c(0x1dc)](_0x24da7e);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x186),(_0x35e8d2,_0x109245)=>{const _0x301be7=_0x1d4cc4;this[_0x301be7(0xe8)]?.[_0x301be7(0x186)](_0x109245[_0x301be7(0x227)],_0x109245[_0x301be7(0x1c2)]);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1c4),(_0x2762c8,_0x30442a)=>{const _0x8a36aa=_0x1d4cc4;this[_0x8a36aa(0x16d)](_0x30442a);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xdd),(_0x4f4358,_0x1f2eb7)=>{const _0x5cc0e2=_0x1d4cc4;this[_0x5cc0e2(0xe8)]?.[_0x5cc0e2(0xdd)](_0x1f2eb7[_0x5cc0e2(0x183)],_0x1f2eb7[_0x5cc0e2(0x212)],_0x1f2eb7[_0x5cc0e2(0x117)]);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x126),()=>{const _0x3d56b4=_0x1d4cc4;this[_0x3d56b4(0x169)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x156),()=>{const _0x13e78f=_0x1d4cc4;this[_0x13e78f(0x172)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xeb),(_0x178b3d,_0x2a9809)=>{const _0x6b6d5b=_0x1d4cc4;this[_0x6b6d5b(0xe8)]?.[_0x6b6d5b(0xf7)](_0x2a9809);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x199),(_0x35d345,{replyId:_0x55b65b})=>{const _0x1757e9=_0x1d4cc4;console[_0x1757e9(0xc5)](_0x1757e9(0x108),_0x55b65b);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x135),(_0x47bb75,{replyId:_0x5e77b8})=>{const _0x523cfb=_0x1d4cc4;console[_0x523cfb(0xc5)](_0x523cfb(0x1dd),_0x5e77b8);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x11f),(_0x13fb3d,_0x5204a2)=>{const _0x2c8c06=_0x1d4cc4;this[_0x2c8c06(0xd0)][_0x2c8c06(0x1b1)][_0x2c8c06(0x1b4)](_0x460556)[_0x2c8c06(0x111)](),this[_0x2c8c06(0x1e5)](_0x5204a2);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x229),(_0x326d01,{replyId:_0x1f148b,partIndex:_0x29b0ea})=>{const _0x205bfe=_0x1d4cc4;this[_0x205bfe(0x1f8)]=this[_0x205bfe(0x1e1)][_0x205bfe(0x1bf)],this[_0x205bfe(0x1f1)](_0x1f148b,_0x29b0ea);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1e2),(_0x186759,{replyId:_0x407dc5,partIndex:_0x4b039e})=>{const _0x431448=_0x1d4cc4,_0x2959a7=this[_0x431448(0x116)](_0x407dc5,_0x4b039e);_0x2959a7&&_0x431448(0x1a3)!=_0x2959a7[_0x431448(0x14c)][_0x431448(0x121)][_0x431448(0x20f)]&&this[_0x431448(0x219)][_0x431448(0x207)]([_0x2959a7[_0x431448(0x14c)]],_0x431448(0x19e));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1c6),()=>{const _0x421ad7=_0x1d4cc4;this[_0x421ad7(0x219)][_0x421ad7(0x1c3)](_0x421ad7(0x19e));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x187),(_0x542f47,_0x53c551)=>{const _0xf3e79=_0x1d4cc4;this[_0xf3e79(0xd0)][_0xf3e79(0x1b1)][_0xf3e79(0x1b4)](_0x460556)[_0xf3e79(0x111)](),this[_0xf3e79(0x14e)](_0x53c551);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1d6),async(_0xeddd64,{replyId:_0x2c258a,showDiff:_0x4d0666})=>{const _0x5f51eb=_0x1d4cc4,{reply:_0x15b4a5}=this[_0x5f51eb(0x198)](_0x2c258a),_0x260ec0=_0x15b4a5[_0x5f51eb(0x213)]({'showDiff':_0x4d0666});await this[_0x5f51eb(0x1e1)][_0x5f51eb(0x16e)]({'id':_0x15b4a5['id'],'parts':_0x260ec0,'renderingStrategy':_0x5f51eb(0xbf)});}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1ba),(_0x4916a5,{replyId:_0x151a14,partIndex:_0x512701})=>{const _0x429b60=_0x1d4cc4;this[_0x429b60(0x162)]?.[_0x429b60(0x192)]==_0x151a14&&this[_0x429b60(0x162)]?.[_0x429b60(0x167)]==_0x512701&&this[_0x429b60(0xd0)][_0x429b60(0x1b1)][_0x429b60(0x1b4)](_0x460556)[_0x429b60(0x111)]();const {reply:_0x2a3395}=this[_0x429b60(0x198)](_0x151a14);_0x2a3395[_0x429b60(0x113)](_0x512701,_0x429b60(0x20b)),this[_0x429b60(0x219)][_0x429b60(0x1c3)](_0x429b60(0x19e));});}async[_0xfba34b(0x1db)](){const _0x158ad0=_0xfba34b;this[_0x158ad0(0xd0)]instanceof _0x3b72ad?this[_0x158ad0(0xd9)](this[_0x158ad0(0xd0)]):this[_0x158ad0(0x20a)](this[_0x158ad0(0xd0)][_0x158ad0(0x14b)],_0x158ad0(0x12b),(_0x3c8fe1,_0x2fc34d)=>{const _0x1cbc83=_0x158ad0;_0x2fc34d['on'](_0x1cbc83(0x203),()=>{const _0x2b8a7e=_0x1cbc83;this[_0x2b8a7e(0xd9)](_0x2fc34d);});}),await this[_0x158ad0(0x155)]();}[_0xfba34b(0x1e5)](_0x179904){const _0xfc41a1=_0xfba34b,_0x15a0a2=_0x420b18(this[_0xfc41a1(0xd0)]);if(!_0x15a0a2[_0xfc41a1(0x1b1)][_0xfc41a1(0x1a4)](_0xfc41a1(0x181)))throw new _0x2f3966(_0xfc41a1(0x21a),null);const _0x2c4959=this[_0xfc41a1(0xd0)][_0xfc41a1(0x1b1)][_0xfc41a1(0x1b4)](_0xfc41a1(0xff)),{reply:_0x2d7bfd,interaction:_0x3fc6aa}=this[_0xfc41a1(0x198)](_0x179904[_0xfc41a1(0x192)]),_0xed78b0=this[_0xfc41a1(0x116)](_0x179904[_0xfc41a1(0x192)],_0x179904[_0xfc41a1(0x167)]),_0x11795c=void 0x0!==_0x179904[_0xfc41a1(0x167)]?[_0x2d7bfd[_0xfc41a1(0x211)][_0x179904[_0xfc41a1(0x167)]]]:_0x2d7bfd[_0xfc41a1(0x211)][_0xfc41a1(0x1c9)](_0x7d3307=>_0xfc41a1(0xcc)==_0x7d3307[_0xfc41a1(0xf5)]),_0x184e4f=_0x11795c[_0xfc41a1(0xc8)](_0xf34763=>_0x2d7bfd[_0xfc41a1(0x211)][_0xfc41a1(0x171)](_0xf34763));if(!_0xed78b0||_0xfc41a1(0x1a3)==_0xed78b0[_0xfc41a1(0x14c)][_0xfc41a1(0x121)][_0xfc41a1(0x20f)])return void _0x184e4f[_0xfc41a1(0x1f4)](_0x35e512=>_0x2d7bfd[_0xfc41a1(0x113)](_0x35e512,_0xfc41a1(0x1e7)));_0x184e4f[_0xfc41a1(0x1f4)](_0x569205=>_0x2d7bfd[_0xfc41a1(0x113)](_0x569205,_0xfc41a1(0x1d7)));const _0x354d13=_0x27175d({'editor':_0x15a0a2,'reply':_0x2d7bfd,'interaction':_0x3fc6aa,'groups':_0x11795c,'transform':!0x0,'documentCompare':_0x2c4959,'documentCompareOptions':{'anchor':_0xfc41a1(0x109),'markDeletions':!0x0}});let _0x2843b;_0xed78b0&&this[_0xfc41a1(0x1bb)](_0xed78b0[_0xfc41a1(0x14c)]),_0x15a0a2[_0xfc41a1(0x196)][_0xfc41a1(0x18f)](_0x499b7e=>{const _0x464eab=_0xfc41a1;_0x2843b=_0x499b7e[_0x464eab(0x17a)],_0x15a0a2[_0x464eab(0x1b1)][_0x464eab(0x1b4)](_0x464eab(0x13d))[_0x464eab(0x141)](_0x354d13),this[_0x464eab(0x219)][_0x464eab(0x1c3)](_0x464eab(0x19e));}),this[_0xfc41a1(0x210)][_0xfc41a1(0x103)](_0x2843b,{'interactionId':_0x3fc6aa['id'],'replyId':_0x2d7bfd['id'],'indexes':_0x184e4f[_0xfc41a1(0x11a)]()}),this[_0xfc41a1(0x168)](_0x2d7bfd);}[_0xfba34b(0x14e)](_0x23045c){const _0x461a52=_0xfba34b,_0x14ff6e=_0x420b18(this[_0x461a52(0xd0)]),_0x574ad8=this[_0x461a52(0xd0)][_0x461a52(0x1b1)][_0x461a52(0x1b4)](_0x334ef2),{reply:_0xf7b7b8,interaction:_0x2a85d7}=this[_0x461a52(0x198)](_0x23045c[_0x461a52(0x192)]),_0x454956=this[_0x461a52(0x116)](_0x23045c[_0x461a52(0x192)],_0x23045c[_0x461a52(0x167)]),_0x6cb987=void 0x0!==_0x23045c[_0x461a52(0x167)]?[_0xf7b7b8[_0x461a52(0x211)][_0x23045c[_0x461a52(0x167)]]]:_0xf7b7b8[_0x461a52(0x211)][_0x461a52(0x1c9)](_0x421b02=>_0x461a52(0xcc)==_0x421b02[_0x461a52(0xf5)]),_0x52b3bf=_0x6cb987[_0x461a52(0xc8)](_0x1835ba=>_0xf7b7b8[_0x461a52(0x211)][_0x461a52(0x171)](_0x1835ba));if(!_0x454956||_0x461a52(0x1a3)==_0x454956[_0x461a52(0x14c)][_0x461a52(0x121)][_0x461a52(0x20f)])return void _0x52b3bf[_0x461a52(0x1f4)](_0x3e4ea9=>_0xf7b7b8[_0x461a52(0x113)](_0x3e4ea9,_0x461a52(0x1e7)));_0x52b3bf[_0x461a52(0x1f4)](_0x520b70=>_0xf7b7b8[_0x461a52(0x113)](_0x520b70,_0x461a52(0x1d7)));const _0x35dea2=_0x27175d({'editor':_0x14ff6e,'reply':_0xf7b7b8,'interaction':_0x2a85d7,'groups':_0x6cb987,'transform':!0x0,'documentCompare':_0x574ad8,'documentCompareOptions':{'anchor':_0x461a52(0x109),'markDeletions':!0x1}});let _0x5acfdd;_0x454956&&this[_0x461a52(0x1bb)](_0x454956[_0x461a52(0x14c)]),_0x14ff6e[_0x461a52(0x196)][_0x461a52(0x18f)](_0x5be1bc=>{const _0x36315f=_0x461a52;_0x5acfdd=_0x5be1bc[_0x36315f(0x17a)];for(const _0x11e858 of _0x35dea2)_0x11e858[_0x36315f(0x1ae)]=_0x14ff6e[_0x36315f(0x196)][_0x36315f(0xc3)][_0x36315f(0x15f)],_0x4a1844(_0x14ff6e,_0x11e858),_0x5be1bc[_0x36315f(0x17a)][_0x36315f(0x17c)](_0x11e858),_0x14ff6e[_0x36315f(0x196)][_0x36315f(0x20c)](_0x11e858);}),this[_0x461a52(0x210)][_0x461a52(0x103)](_0x5acfdd,{'interactionId':_0x2a85d7['id'],'replyId':_0xf7b7b8['id'],'indexes':_0x52b3bf[_0x461a52(0x11a)]()}),this[_0x461a52(0x168)](_0xf7b7b8);}[_0xfba34b(0x1f1)](_0x37b1f1,_0x173e93){const _0x3f3f53=_0xfba34b,_0xcc2ae9=_0x420b18(this[_0x3f3f53(0xd0)]),_0x114b1f=this[_0x3f3f53(0x116)](_0x37b1f1,_0x173e93),_0x190807=this[_0x3f3f53(0xd0)][_0x3f3f53(0x1b1)][_0x3f3f53(0x1b4)](_0x460556);if(!_0x114b1f)return void _0x190807[_0x3f3f53(0x111)]();const {range:_0x506752,currentIndex:_0xfa950b}=_0x114b1f;if(_0x3f3f53(0x1a3)==_0x506752[_0x3f3f53(0x121)][_0x3f3f53(0x20f)]){const {reply:_0x5299f0}=this[_0x3f3f53(0x198)](_0x37b1f1);return _0x5299f0[_0x3f3f53(0x113)](_0xfa950b,_0x3f3f53(0x1e7)),void _0x190807[_0x3f3f53(0x111)]();}if(this[_0x3f3f53(0x162)]?.[_0x3f3f53(0x192)]==_0x37b1f1&&this[_0x3f3f53(0x162)]?.[_0x3f3f53(0x167)]==_0xfa950b)return;this[_0x3f3f53(0x215)](_0x190807),this[_0x3f3f53(0x162)]={'replyId':_0x37b1f1,'partIndex':_0xfa950b};let _0x153182=_0xcc2ae9[_0x3f3f53(0xf1)][_0x3f3f53(0x1b4)](_0x3f3f53(0x1d1))||[..._0x49e2dc];_0xcc2ae9[_0x3f3f53(0x1b1)][_0x3f3f53(0x1a4)](_0x3f3f53(0x181))||(_0x153182=_0x153182[_0x3f3f53(0x1c9)](_0x2652fc=>_0x3f3f53(0x11f)!=_0x2652fc));const _0x5eedcd=new _0x57b9b8(_0xcc2ae9[_0x3f3f53(0x19d)],{'showDiff':this[_0x3f3f53(0x1f8)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3f3f53(0x1da)},'hideHeader':!0x0,'availableActions':_0x153182});this[_0x3f3f53(0x215)](_0x5eedcd);const {reply:_0x18d7a3}=this[_0x3f3f53(0x198)](_0x37b1f1),_0x4e5a79=_0x18d7a3[_0x3f3f53(0x213)]({'showDiff':this[_0x3f3f53(0x1f8)]})[_0x3f3f53(0x1c9)](_0x345fe9=>_0x345fe9[_0x3f3f53(0x1a1)]),_0x5250eb=_0x4e5a79[_0x3f3f53(0xe3)](_0x8c87db=>_0x8c87db[_0x3f3f53(0x1c7)]==_0xfa950b);if(-0x1==_0x5250eb)return;const _0x330806=_0x4e5a79[_0x5250eb],_0x424a9f=_0x4e5a79['at']((_0x5250eb-0x1)%_0x4e5a79[_0x3f3f53(0x209)])?.[_0x3f3f53(0x1c7)],_0x3dd0a7=_0x4e5a79['at']((_0x5250eb+0x1)%_0x4e5a79[_0x3f3f53(0x209)])?.[_0x3f3f53(0x1c7)];_0x5eedcd[_0x3f3f53(0xfa)]({'parts':[_0x330806],'renderingStrategy':_0x3f3f53(0xbf)});const _0x4411c0=_0xfa950b!==_0x424a9f;this[_0x3f3f53(0x1bb)](_0x506752,!0x0),_0x190807[_0x3f3f53(0x21c)]({'index':_0xfa950b,'title':_0x53e39a(this[_0x3f3f53(0xd0)][_0x3f3f53(0x19d)],_0x3f3f53(0xc7),(_0x5250eb+0x1)[_0x3f3f53(0x136)]()),'icon':_0x139108,'mainView':_0x5eedcd,'showRotator':_0x4411c0,'showApplyButton':!0x0,'showSuggestButton':_0xcc2ae9[_0x3f3f53(0x1b1)][_0x3f3f53(0x1a4)](_0x3f3f53(0x181)),'ranges':[_0x506752]}),this[_0x3f3f53(0x1e1)][_0x3f3f53(0xfd)](_0x37b1f1,_0xfa950b),this[_0x3f3f53(0x20a)](_0x5eedcd,_0x3f3f53(0x1d6),(_0x1b39db,{showDiff:_0x5db250})=>{const _0x155e75=_0x3f3f53;this[_0x155e75(0x1f8)]=_0x5db250;const {reply:_0x4cff00}=this[_0x155e75(0x198)](_0x37b1f1),_0xd05376=_0x4cff00[_0x155e75(0x213)]({'showDiff':_0x5db250,'groupIndex':_0xfa950b});_0x5eedcd[_0x155e75(0xfa)]({'parts':_0xd05376,'renderingStrategy':_0x155e75(0xbf)});}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x187),()=>{const _0x374e6f=_0x3f3f53;this[_0x374e6f(0x14e)]({'replyId':_0x37b1f1,'partIndex':_0xfa950b}),_0x4411c0?this[_0x374e6f(0x1f1)](_0x37b1f1,_0x3dd0a7):_0x190807[_0x374e6f(0x111)]();}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x11f),()=>{const _0x39e546=_0x3f3f53;this[_0x39e546(0x1e5)]({'replyId':_0x37b1f1,'partIndex':_0xfa950b}),_0x4411c0?this[_0x39e546(0x1f1)](_0x37b1f1,_0x3dd0a7):_0x190807[_0x39e546(0x111)]();}),_0x4411c0&&(this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x1e6),()=>{const _0x44f83c=_0x3f3f53;this[_0x44f83c(0x1f1)](_0x37b1f1,_0x3dd0a7);}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x15c),()=>{const _0x44b175=_0x3f3f53;this[_0x44b175(0x1f1)](_0x37b1f1,_0x424a9f);})),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x14f),()=>{const _0xeda2e5=_0x3f3f53;this[_0xeda2e5(0x215)](_0x190807),this[_0xeda2e5(0x215)](_0x5eedcd),this[_0xeda2e5(0x162)]=null;});}[_0xfba34b(0x116)](_0x342463,_0x2ce4be){const _0x3e3d51=_0xfba34b,_0x589c5c=_0x420b18(this[_0x3e3d51(0xd0)]),{reply:_0x11bc33,interaction:_0x15f55f}=this[_0x3e3d51(0x198)](_0x342463),_0x1973f4=_0x11bc33[_0x3e3d51(0x211)][_0x3e3d51(0x1c9)](_0x3868d1=>_0x3e3d51(0xcc)==_0x3868d1[_0x3e3d51(0xf5)]),_0xe04d4=_0x1973f4[_0x3e3d51(0xc8)](_0xe94ec0=>_0x11bc33[_0x3e3d51(0x211)][_0x3e3d51(0x171)](_0xe94ec0));void 0x0===_0x2ce4be&&(_0x2ce4be=_0xe04d4[0x0]);const _0x15617f=_0xe04d4[_0x3e3d51(0x171)](_0x2ce4be);if(-0x1==_0x15617f)return null;const _0x4872fc=_0x1973f4[_0x15617f],_0x5a6c42=new _0x1eed08([]),_0x52da90=new _0x1eed08([]);for(const _0x18cf8a of _0x4872fc[_0x3e3d51(0x1e4)])if(_0x3e3d51(0x21b)!=_0x18cf8a[_0x3e3d51(0x1d5)]&&_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x18cf8a[_0x3e3d51(0x204)][_0x3e3d51(0x18c)](!0x0)),_0x3e3d51(0x208)!=_0x18cf8a[_0x3e3d51(0x1d5)]){const _0x165e1d=_0x11553c(_0x239cd0=>_0x198b2a(_0x239cd0,_0x3e3d51(0x189))==_0x18cf8a['id'],_0x11bc33[_0x3e3d51(0x1be)],!0x0);_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x165e1d[_0x3e3d51(0x18c)](!0x0));}if(0x0==_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0x209)]){if(_0x4872fc[_0x3e3d51(0x1e4)][0x0][_0x3e3d51(0x139)]){const _0x21e4d0=_0x22bc82(_0x3e3d51(0x189),_0x4872fc[_0x3e3d51(0x1e4)][0x0][_0x3e3d51(0x139)],_0x11bc33[_0x3e3d51(0x1be)]);_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0x154)](_0x21e4d0[_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0x154)](_0x21e4d0[_0x3e3d51(0x18c)](!0x0)),_0x21e4d0[_0x3e3d51(0x102)]&&(_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x21e4d0[_0x3e3d51(0x102)][_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x21e4d0[_0x3e3d51(0x102)][_0x3e3d51(0x18c)](!0x0)));}else{const _0x560eed=_0x11bc33[_0x3e3d51(0x1be)][_0x3e3d51(0x12e)][0x0];if(!_0x560eed)return null;_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x560eed[_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x560eed[_0x3e3d51(0x18c)](!0x0));}}const _0x448c6a=_0x15f55f[_0x3e3d51(0x157)](),_0x50a1d8=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x448c6a[_0x3e3d51(0x119)]),_0x2dd821=_0x423327(_0x5a6c42),_0x249e45=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x2dd821),_0xb68832=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x2dd821),_0x2e6143=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xe7)](_0x249e45,0x0),_0x3c33d6=_0x423327(_0x52da90),_0x10d46f={'anchor':_0x2e6143,'markDeletions':!0x1},_0x335c2e=_0x589c5c[_0x3e3d51(0x1b1)][_0x3e3d51(0x1b4)](_0x334ef2)[_0x3e3d51(0xed)](_0x2dd821,_0x3c33d6,_0x10d46f)[_0x3e3d51(0x1a6)]();if(!_0x335c2e[_0x3e3d51(0x209)])return null;_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x18f)](_0x21e836=>{const _0x3f4d69=_0x3e3d51;for(const _0x298c82 of _0x335c2e)if(_0x3f4d69(0x1de)==_0x298c82[_0x3f4d69(0x1d5)]){const _0x43b1a8=_0x298c82[_0x3f4d69(0x12d)],_0x5f0662=_0x298c82[_0x3f4d69(0x138)],_0x51989b=new _0x2c5643(_0x43b1a8,_0x5f0662);_0x21e836[_0x3f4d69(0x17a)][_0x3f4d69(0x17c)](_0x51989b),_0x589c5c[_0x3f4d69(0x196)][_0x3f4d69(0x20c)](_0x51989b);}else _0x3f4d69(0x1fd)!==_0x298c82[_0x3f4d69(0x1d5)]&&(_0x298c82[_0x3f4d69(0x1ae)]=null,_0x298c82[_0x3f4d69(0x12a)]=!0x1,_0x21e836[_0x3f4d69(0x17a)][_0x3f4d69(0x17c)](_0x298c82),_0x589c5c[_0x3f4d69(0x196)][_0x3f4d69(0x20c)](_0x298c82));});const _0x3daf0b=_0x387a7d(_0x589c5c,_0x335c2e,_0x249e45);_0x8f6274(_0x589c5c[_0x3e3d51(0x196)],_0x3daf0b);const _0x33ebb9=_0x3daf0b[_0x3e3d51(0x214)]()[_0x3e3d51(0xd5)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x56b0ee=_0x3daf0b[_0x3e3d51(0x214)]()[_0x3e3d51(0xf4)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x270e44=[];let _0x42993d=_0x249e45,_0x2a71a0=_0xb68832;for(let _0xa3647b=0x0;_0xa3647b<_0x56b0ee[_0x3e3d51(0x209)];_0xa3647b++){const _0x57e2f5=_0x42993d[_0x3e3d51(0x1f3)]-_0x56b0ee[_0xa3647b];_0x270e44[_0xa3647b]=_0x2a71a0[_0x3e3d51(0x1f3)]-_0x57e2f5,_0x42993d=_0x42993d[_0x3e3d51(0x105)](_0x56b0ee[_0xa3647b]),_0x2a71a0=_0x2a71a0[_0x3e3d51(0x105)](_0x270e44[_0xa3647b]);}const _0x378fcb=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xca)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0xb68832,_0x33ebb9),_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0xb68832,_0x270e44)),_0x476e2c=_0xb68832[_0x3e3d51(0x124)](0x0)[_0x3e3d51(0x12c)](_0x1a5ae8),_0x800b6c=Array[_0x3e3d51(0xf9)](_0x50a1d8[_0x3e3d51(0xe6)]())[_0x3e3d51(0x1f7)](_0x3b6ece=>_0x3b6ece[_0x3e3d51(0x12c)](_0x1a5ae8)==_0x476e2c)[_0x3e3d51(0x120)](),_0x1876a9=_0x378fcb[_0x3e3d51(0xd5)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x38b9a4=_0x378fcb[_0x3e3d51(0xf4)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)]();_0x1876a9[0x0]=_0x800b6c[0x0]+_0x1876a9[0x0],_0x38b9a4[0x0]=_0x800b6c[0x0]+_0x38b9a4[0x0];let _0x1513b7=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xca)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0xf3)](),_0x1876a9),_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0xf3)](),_0x38b9a4));const _0x5a1fb2=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0x142)][_0x3e3d51(0x1a6)](_0x448c6a[_0x3e3d51(0x15f)]);for(const _0x109521 of _0x5a1fb2)_0x1513b7=_0x124b73[_0x3e3d51(0x132)](_0x1513b7[_0x3e3d51(0x15b)](_0x109521));return{'range':_0x1513b7,'currentIndex':_0x2ce4be};}[_0xfba34b(0xd9)](_0x515781){const _0x2ec953=_0xfba34b;if(!_0x515781[_0x2ec953(0x1b1)][_0x2ec953(0x1a4)](_0x2ec953(0x220)))return;const _0x3cc616=_0x515781[_0x2ec953(0x1a8)][_0x2ec953(0x1b4)](_0x2ec953(0xf6)),_0x6ef239=_0x515781[_0x2ec953(0x1a8)][_0x2ec953(0x1b4)](_0x2ec953(0xe1));this[_0x2ec953(0x20a)](_0x3cc616,_0x2ec953(0x112),(_0x3fd081,_0x23890f,_0x30e906)=>{const _0x282f0f=_0x2ec953,_0x21bf8d=this[_0x282f0f(0x210)][_0x282f0f(0x1b4)](_0x23890f);if(!_0x21bf8d)return;const _0x1b84fd=this[_0x282f0f(0xe8)][_0x282f0f(0xde)](_0x21bf8d[_0x282f0f(0x19a)])[_0x282f0f(0x123)](_0x21bf8d[_0x282f0f(0x192)]);_0x21bf8d[_0x282f0f(0x1e8)][_0x282f0f(0x1f4)](_0x4ff407=>_0x1b84fd[_0x282f0f(0x113)](_0x4ff407,_0x282f0f(0xcc))),this[_0x282f0f(0x210)][_0x282f0f(0x21e)](_0x23890f),this[_0x282f0f(0x210)][_0x282f0f(0x103)](_0x30e906,_0x21bf8d);}),this[_0x2ec953(0x20a)](_0x6ef239,_0x2ec953(0x112),(_0x5d1dbe,_0x3706e6,_0x57c507)=>{const _0x145a17=_0x2ec953,_0x5afcbe=this[_0x145a17(0x210)][_0x145a17(0x1b4)](_0x3706e6);if(!_0x5afcbe)return;const _0x28b61f=this[_0x145a17(0xe8)][_0x145a17(0xde)](_0x5afcbe[_0x145a17(0x19a)])[_0x145a17(0x123)](_0x5afcbe[_0x145a17(0x192)]);_0x5afcbe[_0x145a17(0x1e8)][_0x145a17(0x1f4)](_0x5ee8e4=>_0x28b61f[_0x145a17(0x113)](_0x5ee8e4,_0x145a17(0x1d7))),this[_0x145a17(0x210)][_0x145a17(0x21e)](_0x3706e6),this[_0x145a17(0x210)][_0x145a17(0x103)](_0x57c507,_0x5afcbe);});}async[_0xfba34b(0x1a2)](_0x3a19a7){const _0x428ed8=_0xfba34b;this[_0x428ed8(0xd0)][_0x428ed8(0x1b1)][_0x428ed8(0x1b4)](_0x460556)[_0x428ed8(0x111)](),this[_0x428ed8(0x1e1)][_0x428ed8(0xdb)](_0x428ed8(0xbf)),this[_0x428ed8(0x1e1)][_0x428ed8(0xe5)](!0x0),await this[_0x428ed8(0x20d)]();try{await this[_0x428ed8(0x106)][_0x428ed8(0x223)](_0x3a19a7)[_0x428ed8(0x133)](),await this[_0x428ed8(0x155)](_0x3a19a7),this[_0x428ed8(0x1d2)]('\x20');const {sessionId:_0x4a58f1}=this[_0x428ed8(0x219)][_0x428ed8(0x1ad)]();await this[_0x428ed8(0xe8)][_0x428ed8(0x110)](_0x3a19a7,_0x4a58f1),this[_0x428ed8(0xe8)][_0x428ed8(0xd7)]()&&this[_0x428ed8(0xe8)][_0x428ed8(0xe0)](_0x53e39a(this[_0x428ed8(0xd0)][_0x428ed8(0x19d)],_0x428ed8(0x1b0)));}catch(_0x17bc96){this[_0x428ed8(0x1e1)][_0x428ed8(0xef)]({'errorMessage':_0x53e39a(this[_0x428ed8(0xd0)][_0x428ed8(0x19d)],_0x428ed8(0xd4)),'id':_0x3a19a7}),this[_0x428ed8(0x177)](new _0x2f3966(_0x428ed8(0xfe),this,{'error':_0x17bc96}));}finally{this[_0x428ed8(0xd0)][_0x428ed8(0x1b1)][_0x428ed8(0x1b4)](_0x4ff8a5)[_0x428ed8(0x178)][_0x428ed8(0x193)](_0x428ed8(0x100)),this[_0x428ed8(0x1e1)][_0x428ed8(0x224)](),this[_0x428ed8(0x1e1)][_0x428ed8(0xdb)](_0x428ed8(0xf2)),this[_0x428ed8(0x1e1)][_0x428ed8(0xe5)](!0x1);}}[_0xfba34b(0x130)](_0x3fcdae){const _0x4a1967=_0xfba34b;this[_0x4a1967(0xe8)]['id']===_0x3fcdae&&this[_0x4a1967(0x155)]();}async[_0xfba34b(0x13a)](){const _0x197279=_0xfba34b,_0x54a3e5=this[_0x197279(0x219)][_0x197279(0x21d)]();this[_0x197279(0xe8)]?.[_0x197279(0x217)](_0x54a3e5),this[_0x197279(0xe8)]?.[_0x197279(0xe0)](_0x53e39a(this[_0x197279(0xd0)][_0x197279(0x19d)],_0x197279(0x1b0)));}[_0xfba34b(0x1f0)](){const _0x175805=_0xfba34b;this[_0x175805(0xe8)]?.[_0x175805(0x10a)]();}[_0xfba34b(0x1a0)](){const _0x18e9e1=_0xfba34b;this[_0x18e9e1(0x1e1)][_0x18e9e1(0x1a0)]();}async[_0xfba34b(0x13c)](){const _0x1d34cd=_0xfba34b;await this[_0x1d34cd(0x155)]();}async[_0xfba34b(0x1fc)]({message:_0x27fd00,quickActionData:_0x35010e}){const _0x4caecf=_0xfba34b;await this[_0x4caecf(0x1eb)]({'userMessage':_0x27fd00,'quickActionData':_0x35010e});}[_0xfba34b(0xf0)](){const _0xe53ee=_0xfba34b,_0x3b6d28=this[_0xe53ee(0xd0)][_0xe53ee(0xf1)][_0xe53ee(0x1b4)](_0xe53ee(0xc1));if(!_0x3b6d28)throw new _0x2f3966(_0xe53ee(0x17e),this);return _0x3b6d28;}async[_0xfba34b(0x155)](_0x5d88df){const _0x253c8b=_0xfba34b;try{this[_0x253c8b(0x1e1)][_0x253c8b(0x11e)](),await this[_0x253c8b(0x1ce)](_0x5d88df);}catch(_0x1ce193){_0x1c67a5(_0x253c8b(0x1ca),_0x1ce193),this[_0x253c8b(0xe8)]=void 0x0,this[_0x253c8b(0x1e1)][_0x253c8b(0x21f)]();}}async[_0xfba34b(0x1ce)](_0x543216){const _0x44ab9b=_0xfba34b,_0x5ec02c=this[_0x44ab9b(0xd0)][_0x44ab9b(0x1b1)][_0x44ab9b(0x1b4)](_0x460556);let _0x21e3f0;_0x5ec02c[_0x44ab9b(0xfb)]&&_0x5ec02c[_0x44ab9b(0x111)](),_0x543216||!this[_0x44ab9b(0xe8)]?_0x21e3f0=this[_0x44ab9b(0xd0)][_0x44ab9b(0xf1)][_0x44ab9b(0x1b4)](_0x44ab9b(0x16c)):this[_0x44ab9b(0x1e1)][_0x44ab9b(0x15e)]&&(_0x21e3f0=this[_0x44ab9b(0xe8)][_0x44ab9b(0x194)]['id']),await this[_0x44ab9b(0x20d)]();const _0x597a89=this[_0x44ab9b(0xf0)](),_0x21fb39=_0x543216||_0x1fe331();this[_0x44ab9b(0xe8)]=new _0x23e024({'connector':this[_0x44ab9b(0x106)],'chatModels':this[_0x44ab9b(0x173)],'selectedModelId':_0x21e3f0,'conversationId':_0x21fb39,'group':_0x597a89,'getEditor':()=>_0x420b18(this[_0x44ab9b(0xd0)])}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x201),(_0x44d1e3,_0x5c97dc)=>{const _0x44d9e7=_0x44ab9b;this[_0x44d9e7(0x1e1)][_0x44d9e7(0x174)](_0x5c97dc),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x1b6)](),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x1fe)](),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x10b)](),_0x543216||(this[_0x44d9e7(0x1e1)][_0x44d9e7(0x122)](),this[_0x44d9e7(0xe8)]?.[_0x44d9e7(0xe0)](_0x53e39a(this[_0x44d9e7(0xd0)][_0x44d9e7(0x19d)],_0x44d9e7(0x1b0))));}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1a9),(_0x1493ba,_0x30b2e3)=>{const _0x1f4290=_0x44ab9b;this[_0x1f4290(0x1e1)][_0x1f4290(0x18b)](_0x30b2e3[_0x1f4290(0x1c5)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1ed),(_0x1b9c58,_0x1d9040)=>{const _0x3a87e7=_0x44ab9b;this[_0x3a87e7(0x1e1)][_0x3a87e7(0x205)](_0x1d9040);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x18a),()=>{const _0x5f377f=_0x44ab9b;this[_0x5f377f(0x1e1)][_0x5f377f(0x11c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xc0),()=>{const _0x3a2bc3=_0x44ab9b;this[_0x3a2bc3(0x1e1)][_0x3a2bc3(0x11c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x200),(_0x269482,_0x193b14)=>{const _0x45763a=_0x44ab9b;this[_0x45763a(0x1e1)][_0x45763a(0x175)](_0x193b14,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x129),(_0x32568e,_0x5e5400)=>{const _0x43e72d=_0x44ab9b;this[_0x43e72d(0x1e1)][_0x43e72d(0x175)](_0x5e5400,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1d3),()=>{const _0x3cfdec=_0x44ab9b;this[_0x3cfdec(0x1e1)][_0x3cfdec(0x1c1)]();}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1bc),async()=>{const _0xf5a6f2=_0x44ab9b;await this[_0xf5a6f2(0x1e1)][_0xf5a6f2(0x218)]();}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x14a),(_0x553b57,_0x384a07)=>{const _0x3be87c=_0x44ab9b;this[_0x3be87c(0x1e1)][_0x3be87c(0x1af)](_0x384a07['id']);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x18e),(_0x3a2951,_0x278565,_0x22f0c5)=>{const _0x62eb76=_0x44ab9b;this[_0x62eb76(0x1d2)](_0x278565,_0x22f0c5);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xcf),(_0x53e02b,_0x2c6be4)=>{const _0x2b0eb5=_0x44ab9b;_0x2b0eb5(0x1df)===_0x2c6be4[_0x2b0eb5(0x1d5)]?this[_0x2b0eb5(0x1e1)][_0x2b0eb5(0x1f2)](_0x2c6be4):this[_0x2b0eb5(0x1e1)][_0x2b0eb5(0x188)](_0x2c6be4);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xd1),async(_0x1242af,_0x1f74de)=>{const _0x4cf5ca=_0x44ab9b;await this[_0x4cf5ca(0x1c0)]({'reply':_0x1f74de});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x13b),(_0x44ac07,{reply:_0xd2595b,index:_0x1b1ea9,state:_0x50f66b})=>{const _0x25f253=_0x44ab9b;this[_0x25f253(0x1e1)][_0x25f253(0x1aa)]({'id':_0xd2595b['id'],'index':_0x1b1ea9,'state':_0x50f66b});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xcd),(_0x2613ec,_0x495110)=>{const _0x4fee89=_0x44ab9b;if(this[_0x4fee89(0x1e1)][_0x4fee89(0x161)](_0x495110[_0x4fee89(0x15a)],_0x495110[_0x4fee89(0x1fa)]),_0x4fee89(0x1d8)===_0x495110[_0x4fee89(0x15a)][_0x4fee89(0x1d5)]){const _0xb65848=[..._0x420b18(this[_0x4fee89(0xd0)])[_0x4fee89(0x196)][_0x4fee89(0xc3)][_0x4fee89(0x1d8)][_0x4fee89(0xda)]()];this[_0x4fee89(0x219)][_0x4fee89(0x207)](_0xb65848,_0x4fee89(0x1ee)+this[_0x4fee89(0xe8)]?.['id']);}}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x131),(_0xd5eb5f,_0x97313a)=>{const _0x4c452d=_0x44ab9b;this[_0x4c452d(0x1e1)][_0x4c452d(0x1c4)](_0x97313a[_0x4c452d(0x1e3)]),_0x4c452d(0x143)==_0x97313a[_0x4c452d(0x1e3)]&&this[_0x4c452d(0x1f0)](),_0x4c452d(0x1d8)===_0x97313a[_0x4c452d(0x1d5)]&&this[_0x4c452d(0x219)][_0x4c452d(0x1c3)](_0x4c452d(0x1ee)+this[_0x4c452d(0xe8)]?.['id']);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x11b),(_0x354631,_0x41e4f7)=>{const _0x4d72aa=_0x44ab9b;this[_0x4d72aa(0x1e1)][_0x4d72aa(0x1c8)](_0x41e4f7[_0x4d72aa(0x15a)][_0x4d72aa(0x1e3)],_0x41e4f7[_0x4d72aa(0x1fa)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1d4),(_0x3601e0,_0x5cc9be)=>{const _0x203e3a=_0x44ab9b;this[_0x203e3a(0x1e1)][_0x203e3a(0xe4)](_0x5cc9be[_0x203e3a(0x115)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xc6),(_0x1c5dcd,_0x3a0e35)=>{const _0x4fbbae=_0x44ab9b;this[_0x4fbbae(0x1e1)][_0x4fbbae(0x1d9)](_0x3a0e35[_0x4fbbae(0x179)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x159),(_0x17d622,_0x81d4da)=>{const _0x363f96=_0x44ab9b;this[_0x363f96(0x1e1)][_0x363f96(0x197)](_0x81d4da[_0x363f96(0x183)],_0x81d4da[_0x363f96(0x227)],_0x81d4da[_0x363f96(0x1f6)],_0x81d4da[_0x363f96(0x117)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x151),(_0x46db15,_0x58fb51)=>{const _0x2f58d1=_0x44ab9b;this[_0x2f58d1(0x1e1)][_0x2f58d1(0xc2)](_0x58fb51[_0x2f58d1(0x183)],_0x58fb51[_0x2f58d1(0x125)],_0x58fb51[_0x2f58d1(0xd8)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x137),(_0x1f13b0,_0x33fad2)=>{const _0x124f3e=_0x44ab9b;this[_0x124f3e(0x1e1)][_0x124f3e(0x17d)](_0x33fad2);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x148),(_0x3b5693,_0x55ec7f)=>{const _0x1b9a2b=_0x44ab9b;this[_0x1b9a2b(0x1e1)][_0x1b9a2b(0x221)](_0x55ec7f[_0x1b9a2b(0x194)],_0x55ec7f[_0x1b9a2b(0xea)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x180),(_0x5258ab,{error:_0x9983b3,interactionId:_0x583f9e,fileName:_0x4a63e6,url:_0xa3bc46,sourceId:_0x153cb3,sourceLabel:_0x56bf6a})=>{const _0x2c9ccd=_0x44ab9b,_0x3f41fc=_0x583f9e?_0x583f9e+':'+_0x1fe331():_0x1fe331();_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1cf))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0x1ac)]({'staticMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x12f)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x225))||_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1ca))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x150)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x13f))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x10c),_0x4a63e6),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x11d))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1cc),_0xa3bc46),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x176))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1b5)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x101))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x228)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x114))?(_0x153cb3&&this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0x1b8)](_0x153cb3),this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x16a),_0x56bf6a||_0x2c9ccd(0x227)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x206))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x166)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x22a))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x158)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x191))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x17b)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x149))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0xbd)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1b2))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x104)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x144))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0xec)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1a7)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3));}),await this[_0x44ab9b(0xe8)][_0x44ab9b(0x16f)](this[_0x44ab9b(0xd0)][_0x44ab9b(0xf1)][_0x44ab9b(0x1b4)](_0x44ab9b(0xbe))),_0x543216||await this[_0x44ab9b(0xe8)][_0x44ab9b(0xd5)]();}async[_0xfba34b(0x1eb)]({userMessage:_0x44db74,quickActionData:_0x2af9b7}){const _0x4ff675=_0xfba34b;if(!this[_0x4ff675(0xe8)])throw new _0x2f3966(_0x4ff675(0x18d));this[_0x4ff675(0xe8)][_0x4ff675(0x1cb)]()&&await this[_0x4ff675(0xe8)][_0x4ff675(0x1cd)](this[_0x4ff675(0x219)][_0x4ff675(0x1ad)]()),this[_0x4ff675(0xe8)]['id']&&this[_0x4ff675(0xe8)][_0x4ff675(0x153)]&&await this[_0x4ff675(0xe8)][_0x4ff675(0x1ff)]({'userMessage':_0x44db74,'quickActionData':_0x2af9b7}),this[_0x4ff675(0x216)]();}[_0xfba34b(0x216)](){const _0x209136=_0xfba34b,_0x505171=_0x420b18(this[_0x209136(0xd0)])[_0x209136(0x196)],_0x85df91=Array[_0x209136(0xf9)](_0x505171[_0x209136(0x202)][_0x209136(0x190)](_0x1a1f0f));_0x505171[_0x209136(0x18f)](_0x4e7f12=>{const _0x4c1129=_0x209136;_0x85df91[_0x4c1129(0x1f4)](_0x1f5758=>_0x4e7f12[_0x4c1129(0x1e9)](_0x1f5758));});}[_0xfba34b(0x195)](){const _0x4fc4f7=_0xfba34b;console[_0x4fc4f7(0xc5)](_0x4fc4f7(0x140));}[_0xfba34b(0xfc)](_0x3af492){const _0x258cd2=_0xfba34b;this[_0x258cd2(0x1e1)][_0x258cd2(0x182)](_0x3af492);}[_0xfba34b(0x177)](_0x5a7f3d){const _0x297dd8=_0xfba34b;_0x1c67a5(_0x5a7f3d[_0x297dd8(0xd6)]);}[_0xfba34b(0x16d)](_0x1c0c15){const _0x356f64=_0xfba34b;this[_0x356f64(0xe8)]?.[_0x356f64(0x1b7)](_0x1c0c15);}[_0xfba34b(0x169)](){const _0x3ff0cb=_0xfba34b;this[_0x3ff0cb(0xe8)]?.[_0x3ff0cb(0x126)]();}[_0xfba34b(0x172)](){const _0x5cbc54=_0xfba34b;this[_0x5cbc54(0xe8)]?.[_0x5cbc54(0x156)]();}[_0xfba34b(0x198)](_0x5778aa){const _0xf8bd6b=_0xfba34b,[_0x306a62,_0x1d7c25]=_0x5778aa[_0xf8bd6b(0x1ea)](':'),_0x3bdf6a=this[_0xf8bd6b(0xe8)][_0xf8bd6b(0xde)](_0x306a62),_0x4b1dea=_0x3bdf6a[_0xf8bd6b(0x123)](_0x1d7c25);return{'interaction':_0x3bdf6a,'reply':_0x4b1dea};}[_0xfba34b(0x1bb)](_0x36e575,_0x5ec04c=!0x1){const _0x58c5fb=_0xfba34b,_0x181640=_0x420b18(this[_0x58c5fb(0xd0)]),_0x262fbc={'target':_0x181640[_0x58c5fb(0x127)][_0x58c5fb(0x178)][_0x58c5fb(0x19f)][_0x58c5fb(0x1fb)](_0x181640[_0x58c5fb(0x127)][_0x58c5fb(0xf8)][_0x58c5fb(0xd2)](_0x36e575)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5ec04c};_0x5ec04c&&(_0x262fbc[_0x58c5fb(0x16b)]=!0x0),_0x819849(_0x262fbc);}[_0xfba34b(0x1d2)](_0x318809,_0x335359=!0x1){const _0x140248=_0xfba34b;this[_0x140248(0x1e1)][_0x140248(0x18e)](_0x318809||_0x53e39a(this[_0x140248(0xd0)][_0x140248(0x19d)],_0x140248(0x17f)),_0x335359);}async[_0xfba34b(0x1c0)]({reply:_0x48e262,renderingStrategy:_0x7ac59e}){const _0x1f2854=_0xfba34b,{id:_0x16ae26,isDone:_0x28186f,type:_0x1ada36,parsedContent:_0x37f03b}=_0x48e262;if(_0x1f2854(0x146)===_0x1ada36){const _0x40fc03=_0x48e262[_0x1f2854(0x213)]({'showDiff':this[_0x1f2854(0x1e1)][_0x1f2854(0x1bf)]});await this[_0x1f2854(0x1e1)][_0x1f2854(0x16e)]({'id':_0x16ae26,'parts':_0x40fc03,'renderingStrategy':_0x7ac59e,'isDone':_0x28186f});}else _0x1f2854(0x1df)===_0x1ada36&&await this[_0x1f2854(0x1e1)][_0x1f2854(0x1ec)]({'id':_0x16ae26,'parsedContent':_0x37f03b,'renderingStrategy':_0x7ac59e,'isDone':_0x28186f});_0x28186f&&_0x48e262[_0x1f2854(0x20e)][_0x1f2854(0x209)]>0x0&&this[_0x1f2854(0x1e1)][_0x1f2854(0xd3)](_0x16ae26,_0x48e262[_0x1f2854(0x20e)]);}async[_0xfba34b(0x20d)](){const _0x4a2f81=_0xfba34b,_0x26667e=this[_0x4a2f81(0xe8)]?.[_0x4a2f81(0x19c)];_0x26667e&&(_0x26667e[_0x4a2f81(0x185)](),this[_0x4a2f81(0x1e1)][_0x4a2f81(0x1f5)](_0x26667e));}async[_0xfba34b(0x1ef)](){const _0x2bfcf4=_0xfba34b,_0x13447f=this[_0x2bfcf4(0xe8)]?.[_0x2bfcf4(0x19c)];if(_0x13447f){for await(const _0x2de5bd of _0x13447f[_0x2bfcf4(0x152)])await this[_0x2bfcf4(0x1c0)]({'reply':_0x2de5bd,'renderingStrategy':_0x2bfcf4(0xbf)});}}[_0xfba34b(0x168)](_0x2547bc){const _0x4afd41=_0xfba34b,_0x4f7ae1={'positiveCount':_0x2547bc[_0x4afd41(0x211)][_0x4afd41(0x1c9)](_0x23bcc9=>_0x4afd41(0x1d7)===_0x23bcc9[_0x4afd41(0xf5)])[_0x4afd41(0x209)],'totalCount':_0x2547bc[_0x4afd41(0x211)][_0x4afd41(0x209)],'modificationId':_0x2547bc['id']},_0x23196b=this[_0x4afd41(0xe8)][_0x4afd41(0xde)](_0x2547bc[_0x4afd41(0x19a)])[_0x4afd41(0xc9)];this[_0x4afd41(0x106)][_0x4afd41(0x165)](this[_0x4afd41(0xe8)]['id'],_0x23196b,_0x4f7ae1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57d517=_0x5858;(function(_0x4dc0d8,_0x55df08){const _0x4195d1=_0x5858,_0x1e1fb6=_0x4dc0d8();while(!![]){try{const _0x2ee3e9=parseInt(_0x4195d1(0xf2))/0x1+-parseInt(_0x4195d1(0x11e))/0x2*(parseInt(_0x4195d1(0xb5))/0x3)+parseInt(_0x4195d1(0xa9))/0x4+parseInt(_0x4195d1(0x96))/0x5*(parseInt(_0x4195d1(0x91))/0x6)+-parseInt(_0x4195d1(0xb4))/0x7*(-parseInt(_0x4195d1(0xf8))/0x8)+parseInt(_0x4195d1(0xef))/0x9*(-parseInt(_0x4195d1(0xd5))/0xa)+-parseInt(_0x4195d1(0x107))/0xb*(parseInt(_0x4195d1(0xf7))/0xc);if(_0x2ee3e9===_0x55df08)break;else _0x1e1fb6['push'](_0x1e1fb6['shift']());}catch(_0x240fac){_0x1e1fb6['push'](_0x1e1fb6['shift']());}}}(_0x32c7,0xb4f6b));import{ContextPlugin as _0x2537a1}from'ckeditor5/src/core.js';function _0x32c7(){const _0x2e0164=['812210bSQNjW','showResizeButton','bind','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','addFeedInteractionHeader','then','toggleSuggestionDisplayMode','removeContextItem','enableModelSelector','stopInteraction','removeFeedInteraction','addContextItem','stopAutoScroll','isReasoningEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','has','setSelectedModel','4680452QfwlnI','userMessage','feedItemRenderingStrategy','availableModels','addTab','clearConversationContextUI','_view','interaction-header','queueEmptyPromise','isTrackChangesOn','delegate','7QFdgPz','3MbYVPH','ai-reply','markItemAsDone','quickActionData','disableControls','error-message','filter','children','updateFeedItemAIReplyContent','context','scrollFeedToSuggestion','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','closeSourceResourceBalloon','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','scrollToSuggestion','_promiseQueue','isDisabled','values','TrackChanges','_animateConversationTitle','length','chatFeed','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_isTrackChangesCommandValueBound','</p>','startsWith','isDone','addItem','finishInteraction','10myLqfr','streaming','addFeedItemAIReply','view','chat','isPending','updateFeedItemAIReplySources','_getLoadingMessage','addFeedItemError','setInputPlaceholder','<p>','ai.chat.context.searchInputVisibleFrom','clearPendingContextUI','label','isOfficialPlugin','AI_CHAT_HEADING','updateWebSources','set','last','find','commands','setFeedItemRenderingStrategy','ai.availableReplyActions','addFeedItemUserMessage','conversation-start','_interactionPromiseResolver','6817707UstWbt','displayedPrompt','insertSuggestion','351219udJWtq','enableControls','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemAISuggestion','1644PZDZHU','3740048rKeLzX','resetConversationTitle','isModelAvailable','setLoadingMessage','showDiff','abort','isMaximized','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','forEach','_getInputPlaceholder','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','isVisible','119097VRWpir','requires','setReasoning','setModelList','markFeedItemAsDone','updateResourceState','pluginName','interactionId','setConversationTitle','startAutoScroll','addFeedItemStaticMessage','from','enqueue','isPremiumPlugin','populateSourceResourceBalloon','removeItem','startInteraction','value','plugins','ai-suggestion-reply','updateFeedItemAIReplySuggestionContent','updateReplyItem','setConversationContext','612650IDziYM','options','setIsMaximized','_titleAnimationInterval','get','areActionsDisabled','isBusy','clear','createConversation','setIsUploadInProgress','updateFeedInteractionHeader','setModel','AITabs','AIChatUI','chatHeader','locale','updateFeedItemAIReplySuggestionPartState','ai.chat.models.modelSelectorAlwaysVisible','isWebSearchEnabled','setAddContextOptions','updateCapabilities','config','user-message','toggleLoadingSkeleton','destroy','trackChanges','isLoading','disableModelSelector','48FMvEJm','resetMessageInput','remove','contextItems','setWebSearch'];_0x32c7=function(){return _0x2e0164;};return _0x32c7();}import{_isMotionReduced as _0x273781}from'ckeditor5/src/utils.js';import{AIChatView as _0x60ff05}from'./ui/aichatview.js';import{AITabs as _0x2959ad}from'../aitabs/aitabs.js';function _0x5858(_0x80ccc4,_0x4f085c){const _0x32c7db=_0x32c7();return _0x5858=function(_0x585891,_0x3a7cb3){_0x585891=_0x585891-0x7c;let _0x5f1819=_0x32c7db[_0x585891];return _0x5f1819;},_0x5858(_0x80ccc4,_0x4f085c);}import{getTranslation as _0x2f2911}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x158aee}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x35ba7a}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b59a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43a607}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x149006}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x416fd8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2537a1{static get[_0x57d517(0x108)](){return[_0x2959ad];}[_0x57d517(0xaf)];static get[_0x57d517(0x10d)](){const _0x174277=_0x57d517;return _0x174277(0x82);}static get[_0x57d517(0xe3)](){return!0x0;}static get[_0x57d517(0x114)](){return!0x0;}[_0x57d517(0xab)]=_0x57d517(0xd6);[_0x57d517(0xfc)]=!0x0;[_0x57d517(0xc7)];[_0x57d517(0xee)];[_0x57d517(0x121)]=void 0x0;[_0x57d517(0xcf)]=!0x1;constructor(_0x3e5f72){const _0xf73cd5=_0x57d517;super(_0x3e5f72);const _0x4f98aa=this[_0xf73cd5(0xbe)][_0xf73cd5(0x119)][_0xf73cd5(0x122)](_0xf73cd5(0x81));this[_0xf73cd5(0xe6)](_0xf73cd5(0x124),!0x1),this[_0xf73cd5(0xc7)]=new _0x48b59a(),this[_0xf73cd5(0xaf)]=new _0x60ff05(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],{'showResizeButton':_0x4f98aa[_0xf73cd5(0x97)],'contextResourcesSearchInputVisibleFrom':this[_0xf73cd5(0xbe)][_0xf73cd5(0x8a)][_0xf73cd5(0x122)](_0xf73cd5(0xe0))}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xb3)](..._0x43a607)['to'](this),this[_0xf73cd5(0xaf)]['on'](_0xf73cd5(0x9e),(_0x5d500d,{showDiff:_0xec250})=>{const _0x3248ea=_0xf73cd5;this[_0x3248ea(0xfc)]=_0xec250;}),_0x4f98aa[_0xf73cd5(0xd8)][_0xf73cd5(0xad)]({'id':_0xf73cd5(0xd9),'buttonLabel':_0x2f2911(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],_0xf73cd5(0xe4)),'buttonIcon':_0x158aee,'order':0x0,'content':this[_0xf73cd5(0xaf)]}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0x98)](_0xf73cd5(0x8f))['to'](this,_0xf73cd5(0x124),_0x551d81=>_0x551d81),this[_0xf73cd5(0xaf)][_0xf73cd5(0xcd)][_0xf73cd5(0x98)](_0xf73cd5(0xda))['to'](this,_0xf73cd5(0x124),_0x4261ab=>_0x4261ab),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0xde)](this[_0xf73cd5(0x103)]()),this[_0xf73cd5(0x98)](_0xf73cd5(0xfa))['to'](this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)],_0xf73cd5(0xfa));}[_0x57d517(0x8d)](){const _0xcb3b03=_0x57d517;super[_0xcb3b03(0x8d)](),this[_0xcb3b03(0x121)]&&clearInterval(this[_0xcb3b03(0x121)]);}[_0x57d517(0x7d)](_0x3ebe54){const _0x28806e=_0x57d517;this[_0x28806e(0xaf)][_0x28806e(0xcd)][_0x28806e(0x7c)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0xa0)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0x10a)](_0x3ebe54[_0x28806e(0xac)],!this[_0x28806e(0xbe)][_0x28806e(0x8a)][_0x28806e(0x122)](_0x28806e(0x86))),this[_0x28806e(0x111)]({'id':_0x28806e(0xed),'staticMessage':_0x2f2911(this[_0x28806e(0xbe)][_0x28806e(0x84)],_0x28806e(0x104))});}[_0x57d517(0x111)]({id:_0x43bb10,staticMessage:_0x2228e4}){const _0x7c5e06=_0x57d517;this[_0x7c5e06(0xaf)][_0x7c5e06(0xcd)][_0x7c5e06(0xd3)](_0x7c5e06(0xb6),{'id':_0x43bb10,'initialContent':_0x7c5e06(0xdf)+_0x2228e4+_0x7c5e06(0xd0)});}[_0x57d517(0xec)](_0x554242){const _0x1769a9=_0x57d517,_0x5c5979=_0x554242[_0x1769a9(0xb8)]?.[_0x1769a9(0xf0)]||_0x554242[_0x1769a9(0xaa)];this[_0x1769a9(0xaf)][_0x1769a9(0xcd)][_0x1769a9(0xd3)](_0x1769a9(0x8b),{'contextItems':Array[_0x1769a9(0x112)](_0x554242[_0x1769a9(0x94)][_0x1769a9(0xc9)]()),'initialContent':_0x1769a9(0xdf)+_0x5c5979+_0x1769a9(0xd0),'id':_0x554242['id']});}[_0x57d517(0xdd)]({errorMessage:_0x172ee1,id:_0x34f6}){const _0x5160b9=_0x57d517;this[_0x5160b9(0xaf)][_0x5160b9(0xcd)][_0x5160b9(0xd3)](_0x5160b9(0xba),{'initialContent':_0x5160b9(0xdf)+_0x172ee1+_0x5160b9(0xd0),'id':_0x34f6});}[_0x57d517(0xd7)](_0x24d12c){const _0x1238f6=_0x57d517;return this[_0x1238f6(0xc7)][_0x1238f6(0x113)](async()=>{const _0x10eaa4=_0x1238f6;this[_0x10eaa4(0xaf)][_0x10eaa4(0xcd)][_0x10eaa4(0xd3)](_0x10eaa4(0xb6),{'id':_0x24d12c[_0x10eaa4(0x10e)]+':'+_0x24d12c['id']}),this[_0x10eaa4(0xfb)](null);});}async[_0x57d517(0xf6)](_0xdf766b){const _0x560d22=_0x57d517,_0xc405b7=_0x149006(this[_0x560d22(0xbe)]);let _0x72c0ac=_0xc405b7[_0x560d22(0x8a)][_0x560d22(0x122)](_0x560d22(0xeb))||[..._0x416fd8];if(_0xc405b7[_0x560d22(0x119)][_0x560d22(0xa7)](_0x560d22(0xca))){if(!this[_0x560d22(0xcf)]){this[_0x560d22(0xcf)]=!0x0;const _0x187708=_0xc405b7[_0x560d22(0xe9)][_0x560d22(0x122)](_0x560d22(0x8e));this[_0x560d22(0xaf)][_0x560d22(0xcd)][_0x560d22(0x98)](_0x560d22(0xb2))['to'](_0x187708,_0x560d22(0x118));}}else _0x72c0ac=_0x72c0ac[_0x560d22(0xbb)](_0x48196c=>_0x560d22(0xf1)!=_0x48196c);return this[_0x560d22(0xc7)][_0x560d22(0x113)](async()=>{const _0x3e808a=_0x560d22;this[_0x3e808a(0xaf)][_0x3e808a(0xcd)][_0x3e808a(0xd3)](_0x3e808a(0x11a),{'id':_0xdf766b[_0x3e808a(0x10e)]+':'+_0xdf766b['id'],'areActionsDisabled':_0xdf766b[_0x3e808a(0x123)],'showDiff':this[_0x3e808a(0xfc)],'availableActions':_0x72c0ac}),this[_0x3e808a(0xfb)](null);});}[_0x57d517(0x9c)](_0x14bb26,_0x3bd6f5){const _0x57677f=_0x57d517,_0x19d6a0=this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0xe7)];if(_0x19d6a0 instanceof _0x35ba7a)return this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0x93)](_0x19d6a0),void this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':{'isWebSearchEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0x87)]||_0x3bd6f5[_0x57677f(0x87)],'isReasoningEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0xa5)]||_0x3bd6f5[_0x57677f(0xa5)]}});this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':_0x3bd6f5});}[_0x57d517(0x7f)](_0x4cee3d){const _0x2c3325=_0x57d517,_0x49b66d=this[_0x2c3325(0xaf)][_0x2c3325(0xcd)][_0x2c3325(0xbc)][_0x2c3325(0xe8)](_0x482de4=>_0x482de4[_0x2c3325(0x11f)]['id']==_0x4cee3d['id']&&_0x482de4 instanceof _0x35ba7a);_0x49b66d&&_0x49b66d[_0x2c3325(0xe6)](_0x2c3325(0x106),_0x4cee3d[_0x2c3325(0x106)]);}async[_0x57d517(0xbd)](_0x3af041){const _0x52f593=_0x57d517,_0x221982=_0x3af041[_0x52f593(0xff)]||this[_0x52f593(0xab)];return this[_0x52f593(0xc7)][_0x52f593(0x113)](async _0x2fc90a=>{const _0x1b11f7=_0x52f593;await this[_0x1b11f7(0xaf)][_0x1b11f7(0xcd)][_0x1b11f7(0x11c)]({..._0x3af041,'abortSignal':_0x2fc90a,'renderingStrategy':_0x221982}),_0x3af041[_0x1b11f7(0xd2)]&&this[_0x1b11f7(0x10b)](_0x3af041['id']);});}[_0x57d517(0xdb)](_0x12788d,_0x179105){const _0x115b95=_0x57d517;this[_0x115b95(0xaf)][_0x115b95(0xcd)][_0x115b95(0xe5)](_0x12788d,_0x179105);}async[_0x57d517(0x11b)](_0x4fff99){const _0x3da720=_0x57d517,_0x89d411=_0x4fff99[_0x3da720(0xff)]||this[_0x3da720(0xab)];return this[_0x3da720(0xc7)][_0x3da720(0x113)](async _0x58c20d=>{const _0x424041=_0x3da720;await this[_0x424041(0xaf)][_0x424041(0xcd)][_0x424041(0x99)]({..._0x4fff99,'abortSignal':_0x58c20d,'renderingStrategy':_0x89d411}),_0x4fff99[_0x424041(0xd2)]&&this[_0x424041(0x10b)](_0x4fff99['id']);});}[_0x57d517(0x85)](_0x399c98){const _0x2c0f7a=_0x57d517;this[_0x2c0f7a(0xaf)][_0x2c0f7a(0xcd)][_0x2c0f7a(0x105)](_0x399c98);}[_0x57d517(0x10b)](_0x555e86){const _0x17053e=_0x57d517;this[_0x17053e(0xaf)][_0x17053e(0xcd)][_0x17053e(0xb7)](_0x555e86);}[_0x57d517(0xa2)](_0x25bf84){const _0x14e527=_0x57d517;this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0xf4)]()[_0x14e527(0xbb)](_0xa64901=>_0xa64901[_0x14e527(0xd1)](_0x25bf84))[_0x14e527(0x102)](_0x72f709=>this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0x116)](_0x72f709));}[_0x57d517(0x117)](){const _0x4bc009=_0x57d517;this[_0x4bc009(0xfb)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4bc009(0xaf)][_0x4bc009(0xc4)][_0x4bc009(0x90)](!this[_0x4bc009(0xbe)][_0x4bc009(0x8a)][_0x4bc009(0x122)](_0x4bc009(0x86))),this[_0x4bc009(0x124)]=!0x0,this[_0x4bc009(0xaf)][_0x4bc009(0xcd)][_0x4bc009(0x110)]();}[_0x57d517(0xa1)](_0xf16f2c){const _0x84f258=_0x57d517;this[_0x84f258(0xc7)][_0x84f258(0xfd)](),this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xf4)]()[_0x84f258(0xbb)](_0x1c9e71=>_0x1c9e71[_0x84f258(0xd1)](_0xf16f2c['id']))[_0x84f258(0x102)](_0x297c42=>this[_0x84f258(0x10b)](_0x297c42)),this[_0x84f258(0x124)]=!0x1,this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xa4)]();}async[_0x57d517(0xd4)](){const _0x56fb7c=_0x57d517;return this[_0x56fb7c(0xc7)][_0x56fb7c(0xb1)][_0x56fb7c(0x9d)](()=>{const _0x7f1e0c=_0x56fb7c;this[_0x7f1e0c(0x124)]=!0x1,this[_0x7f1e0c(0xaf)][_0x7f1e0c(0xcd)][_0x7f1e0c(0xa4)]();});}[_0x57d517(0xa3)](_0x3cabaf,_0x5a184f){const _0x44b38a=_0x57d517;this[_0x44b38a(0xaf)][_0x44b38a(0xc4)][_0x44b38a(0xa3)](_0x3cabaf,_0x5a184f);}[_0x57d517(0x9f)](_0x21ff59){const _0x5c47a9=_0x57d517;this[_0x5c47a9(0xaf)][_0x5c47a9(0xc4)][_0x5c47a9(0x9f)](_0x21ff59);}[_0x57d517(0x9b)](_0x4791f8,_0x5b0544){const _0x2d8174=_0x57d517;this[_0x2d8174(0xaf)][_0x2d8174(0xc4)][_0x2d8174(0x9b)](_0x4791f8,_0x5b0544);}[_0x57d517(0x7e)](_0x2cc9fe){const _0x225c86=_0x57d517;this[_0x225c86(0xaf)][_0x225c86(0xc4)][_0x225c86(0x7e)](_0x2cc9fe);}[_0x57d517(0x11d)](_0x4f8891){const _0x5629dd=_0x57d517;this[_0x5629dd(0xaf)][_0x5629dd(0xc4)][_0x5629dd(0x11d)](_0x4f8891);}[_0x57d517(0xe1)](){const _0x474528=_0x57d517;this[_0x474528(0xaf)][_0x474528(0xc4)][_0x474528(0xe1)]();}[_0x57d517(0xae)](){const _0x86edbe=_0x57d517;this[_0x86edbe(0xaf)][_0x86edbe(0xc4)][_0x86edbe(0xae)]();}[_0x57d517(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9){const _0x118aa8=_0x57d517;this[_0x118aa8(0xaf)][_0x118aa8(0xc4)][_0x118aa8(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9);}[_0x57d517(0x92)](){const _0x2bfe2f=_0x57d517;this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0x92)](),this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0xde)](this[_0x2bfe2f(0x103)]());}[_0x57d517(0x88)](_0x940a16){const _0x369a60=_0x57d517;this[_0x369a60(0xaf)][_0x369a60(0xc4)][_0x369a60(0x88)](_0x940a16);}[_0x57d517(0x89)](_0x30b03b){const _0x157270=_0x57d517;this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x95)](_0x30b03b[_0x157270(0x87)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x109)](_0x30b03b[_0x157270(0xa5)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0xde)](this[_0x157270(0x103)](_0x30b03b));}[_0x57d517(0xa8)](_0x32c596,_0x34a7de){const _0x5a0307=_0x57d517;this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x80)](_0x32c596),_0x34a7de&&this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x90)](!0x1);}[_0x57d517(0xea)](_0x4bdafc){const _0x878fb2=_0x57d517;this[_0x878fb2(0xab)]=_0x4bdafc;}[_0x57d517(0x8c)](_0x8d9e1f){const _0x3c2d54=_0x57d517;this[_0x3c2d54(0xaf)][_0x3c2d54(0xcd)][_0x3c2d54(0x8c)](_0x8d9e1f);}[_0x57d517(0xf9)](){const _0x269998=_0x57d517;this[_0x269998(0x10f)](_0x2f2911(this[_0x269998(0xbe)][_0x269998(0x84)],_0x269998(0xe4)));}[_0x57d517(0x10f)](_0x5c5797,_0x5f1893=!0x1){const _0x437349=_0x57d517;if(_0x5f1893&&!_0x273781()&&_0x5c5797[_0x437349(0xcc)])return this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]='',void this[_0x437349(0xcb)](_0x5c5797);this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]=_0x5c5797;}[_0x57d517(0xfb)](_0x267e41){const _0x4b2e60=_0x57d517,_0x21842d=this[_0x4b2e60(0xdc)](_0x267e41);this[_0x4b2e60(0xaf)][_0x4b2e60(0xcd)][_0x4b2e60(0xfb)](_0x21842d);}[_0x57d517(0xcb)](_0x500aaa){const _0x417251=_0x57d517;let _0x5951cd=0x0;clearInterval(this[_0x417251(0x121)]),this[_0x417251(0x121)]=setInterval(()=>{const _0x27c1da=_0x417251;this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]=this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]+_0x500aaa[_0x5951cd],_0x5951cd++,_0x5951cd===_0x500aaa[_0x27c1da(0xcc)]&&clearInterval(this[_0x27c1da(0x121)]);},0x1e);}[_0x57d517(0x120)](_0x4379d7){const _0x3e9b65=_0x57d517;this[_0x3e9b65(0xaf)][_0x3e9b65(0x83)][_0x3e9b65(0xfe)]=_0x4379d7;}[_0x57d517(0xdc)](_0x1dc7fd){const _0x29083e=_0x57d517;return _0x1dc7fd?_0x1dc7fd[_0x29083e(0x87)]&&_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xc1)):_0x1dc7fd[_0x29083e(0x87)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0x101)):_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xce)):_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xf5)):'';}[_0x57d517(0x103)](_0xf30f55){const _0x2780ae=_0x57d517;return _0xf30f55?_0xf30f55[_0x2780ae(0x87)]&&_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xa6)):_0xf30f55[_0x2780ae(0x87)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x9a)):_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x100)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5));}[_0x57d517(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660){const _0xaa097b=_0x57d517;this[_0xaa097b(0xaf)][_0xaa097b(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660);}[_0x57d517(0xc3)](_0x1c6432){const _0x404a00=_0x57d517;this[_0x404a00(0xaf)][_0x404a00(0xc3)](_0x1c6432);}[_0x57d517(0xc2)](){const _0x1c3abb=_0x57d517;this[_0x1c3abb(0xaf)][_0x1c3abb(0xc4)][_0x1c3abb(0xc2)]();}[_0x57d517(0xbf)](_0x30a14e,_0x29f8cd){const _0x45a0c8=_0x57d517;this[_0x45a0c8(0xaf)][_0x45a0c8(0xcd)][_0x45a0c8(0xc6)](_0x30a14e,_0x29f8cd);}[_0x57d517(0x110)](){const _0x1a68cf=_0x57d517;this[_0x1a68cf(0xaf)][_0x1a68cf(0xcd)][_0x1a68cf(0x110)]();}[_0x57d517(0xb9)](){const _0x119c59=_0x57d517;this[_0x119c59(0xaf)][_0x119c59(0xc4)][_0x119c59(0xc8)]=!0x0;}[_0x57d517(0xf3)](){const _0x236302=_0x57d517;this[_0x236302(0xaf)][_0x236302(0xc4)][_0x236302(0xc8)]=!0x1;}}
23
+ const _0x295d3a=_0x35ef;(function(_0x2c9971,_0x2fd581){const _0x37af99=_0x35ef,_0x58edeb=_0x2c9971();while(!![]){try{const _0x161f4f=parseInt(_0x37af99(0x10e))/0x1*(-parseInt(_0x37af99(0xb4))/0x2)+parseInt(_0x37af99(0x107))/0x3*(-parseInt(_0x37af99(0xe5))/0x4)+-parseInt(_0x37af99(0x124))/0x5*(parseInt(_0x37af99(0xba))/0x6)+-parseInt(_0x37af99(0xea))/0x7+-parseInt(_0x37af99(0xb0))/0x8+parseInt(_0x37af99(0x114))/0x9*(parseInt(_0x37af99(0x98))/0xa)+parseInt(_0x37af99(0xff))/0xb;if(_0x161f4f===_0x2fd581)break;else _0x58edeb['push'](_0x58edeb['shift']());}catch(_0x2a198f){_0x58edeb['push'](_0x58edeb['shift']());}}}(_0x412a,0x39f3f));import{ContextPlugin as _0x54acbf}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3167ca}from'ckeditor5/src/utils.js';import{AIChatView as _0x5c1178}from'./ui/aichatview.js';function _0x35ef(_0x593f16,_0x5a405c){const _0x412a23=_0x412a();return _0x35ef=function(_0x35ef7d,_0xe930ae){_0x35ef7d=_0x35ef7d-0x83;let _0x1d8cd6=_0x412a23[_0x35ef7d];return _0x1d8cd6;},_0x35ef(_0x593f16,_0x5a405c);}import{AITabs as _0x31c1f5}from'../aitabs/aitabs.js';import{getTranslation as _0x147f16}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3073b8}from'ckeditor5/src/icons.js';function _0x412a(){const _0xfeda5e=['AIChatUI','view','removeItem','isWebSearchEnabled','has','interactionId','updateReplyItem','setIsMaximized','setAddContextOptions','userMessage','destroy','enableControls','resetMessageInput','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','TrackChanges','12662012NhsCxo','bind','locale','chatControls','ai.chat.models.modelSelectorAlwaysVisible','pluginName','updateCapabilities','updateFeedItemAIReplySuggestionPartState','6JtnYHv','setInputPlaceholder','plugins','markItemAsDone','ai.availableReplyActions','delegate','stopAutoScroll','1489vJWVNc','showResizeButton','stopInteraction','AITabs','ai.chat.context.searchInputVisibleFrom','createConversation','468SHtpjh','focusPromptInput','then','isLoading','isModelAvailable','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','addFeedItemAISuggestion','values','removeFeedInteraction','displayedPrompt','setModelList','startsWith','setFeedItemRenderingStrategy','updateSuggestionPartState','from','toggleLoadingSkeleton','10csAZzr','addContextItem','setIsUploadInProgress','isDisabled','get','</p>','setConversationContext','_isTrackChangesCommandValueBound','resetConversationTitle','find','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','addTab','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','renderingStrategy','insertSuggestion','feedItemRenderingStrategy','ai-suggestion-reply','setReasoning','addFeedItemAIReply','updateWebSources','removeContextItem','areActionsDisabled','queueEmptyPromise','isBusy','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','remove','addFeedInteractionHeader','81240toxgPi','addFeedItemStaticMessage','setContextItemLoading','_interactionPromiseResolver','updateFeedItemAIReplySources','options','set','last','capabilities','interaction-header','isVisible','config','updateFeedItemAIReplyContent','chat','clearConversationContextUI','startAutoScroll','ai-reply','children','setConversationTitle','markFeedItemAsDone','scrollToSuggestion','enqueue','setLoadingMessage','addItem','3128848cSMNoT','toggleSuggestionDisplayMode','disableControls','filter','30ICTzDv','isPending','streaming','label','commands','getItemIds','441150UVFagH','<p>','finishInteraction','setWebSearch','requires','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','updateSuggestionItem','_getInputPlaceholder','isPremiumPlugin','AI_CHAT_WELCOME_MESSAGE','isDone','addFeedItemUserMessage','value','AI_CHAT_HEADING','isTrackChangesOn','addFeedItemError','_getLoadingMessage','isOfficialPlugin','enableModelSelector','trackChanges','error-message','abort','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','clear','_view','showDiff','populateSourceResourceBalloon','startInteraction','quickActionData','chatHeader','updateFeedInteractionHeader','context','updateFeedItemAIReplySuggestionContent','disableModelSelector','_promiseQueue','_animateConversationTitle','scrollFeedToSuggestion','forEach','_titleAnimationInterval','contextItems','conversation-start','isReasoningEnabled','setSelectedModel','652408XJPYJB','isMaximized','clearPendingContextUI','updateResourceState','closeSourceResourceBalloon','3146290yLDebu','length','chatFeed','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','user-message'];_0x412a=function(){return _0xfeda5e;};return _0x412a();}import{AIChatFeedInteractionHeaderView as _0x5cf797}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x21c4e6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x242ae6}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x261f1f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x30b9cf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x54acbf{static get[_0x295d3a(0xbe)](){return[_0x31c1f5];}[_0x295d3a(0xd2)];static get[_0x295d3a(0x104)](){const _0x21aa5a=_0x295d3a;return _0x21aa5a(0xef);}static get[_0x295d3a(0xcb)](){return!0x0;}static get[_0x295d3a(0xc2)](){return!0x0;}[_0x295d3a(0x8b)]=_0x295d3a(0xb6);[_0x295d3a(0xd3)]=!0x0;[_0x295d3a(0xdc)];[_0x295d3a(0x9b)];[_0x295d3a(0xe0)]=void 0x0;[_0x295d3a(0x83)]=!0x1;constructor(_0x10fef5){const _0x317c96=_0x295d3a;super(_0x10fef5);const _0x41a79e=this[_0x317c96(0xd9)][_0x317c96(0x109)][_0x317c96(0x128)](_0x317c96(0x111));this[_0x317c96(0x9e)](_0x317c96(0x93),!0x1),this[_0x317c96(0xdc)]=new _0x21c4e6(),this[_0x317c96(0xd2)]=new _0x5c1178(this[_0x317c96(0xd9)][_0x317c96(0x101)],{'showResizeButton':_0x41a79e[_0x317c96(0x10f)],'contextResourcesSearchInputVisibleFrom':this[_0x317c96(0xd9)][_0x317c96(0xa3)][_0x317c96(0x128)](_0x317c96(0x112))}),this[_0x317c96(0xd2)][_0x317c96(0x10c)](..._0x242ae6)['to'](this),this[_0x317c96(0xd2)]['on'](_0x317c96(0xb1),(_0x177ab7,{showDiff:_0x41687c})=>{const _0x45bf4b=_0x317c96;this[_0x45bf4b(0xd3)]=_0x41687c;}),_0x41a79e[_0x317c96(0xf0)][_0x317c96(0x87)]({'id':_0x317c96(0xa5),'buttonLabel':_0x147f16(this[_0x317c96(0xd9)][_0x317c96(0x101)],_0x317c96(0xc7)),'buttonIcon':_0x3073b8,'order':0x0,'content':this[_0x317c96(0xd2)]}),this[_0x317c96(0xd2)][_0x317c96(0x102)][_0x317c96(0x100)](_0x317c96(0x117))['to'](this,_0x317c96(0x93),_0x118e5a=>_0x118e5a),this[_0x317c96(0xd2)][_0x317c96(0xec)][_0x317c96(0x100)](_0x317c96(0xb5))['to'](this,_0x317c96(0x93),_0x46a612=>_0x46a612),this[_0x317c96(0xd2)][_0x317c96(0x102)][_0x317c96(0x108)](this[_0x317c96(0xc1)]()),this[_0x317c96(0x100)](_0x317c96(0x118))['to'](this[_0x317c96(0xd2)][_0x317c96(0x102)],_0x317c96(0x118));}[_0x295d3a(0xf9)](){const _0x4b6405=_0x295d3a;super[_0x4b6405(0xf9)](),this[_0x4b6405(0xe0)]&&clearInterval(this[_0x4b6405(0xe0)]);}[_0x295d3a(0x113)](_0x194b83){const _0x3dc440=_0x295d3a;this[_0x3dc440(0xd2)][_0x3dc440(0xec)][_0x3dc440(0xd1)](),this[_0x3dc440(0xd2)][_0x3dc440(0x102)][_0x3dc440(0xcc)](),this[_0x3dc440(0xd2)][_0x3dc440(0x102)][_0x3dc440(0x11e)](_0x194b83[_0x3dc440(0x94)],!this[_0x3dc440(0xd9)][_0x3dc440(0xa3)][_0x3dc440(0x128)](_0x3dc440(0x103))),this[_0x3dc440(0x99)]({'id':_0x3dc440(0xe2),'staticMessage':_0x147f16(this[_0x3dc440(0xd9)][_0x3dc440(0x101)],_0x3dc440(0xc3))});}[_0x295d3a(0x99)]({id:_0x4b8aba,staticMessage:_0x5637d2}){const _0x512fec=_0x295d3a;this[_0x512fec(0xd2)][_0x512fec(0xec)][_0x512fec(0xaf)](_0x512fec(0xa8),{'id':_0x4b8aba,'initialContent':_0x512fec(0xbb)+_0x5637d2+_0x512fec(0x129)});}[_0x295d3a(0xc5)](_0x27d161){const _0x3e4272=_0x295d3a,_0x5352c1=_0x27d161[_0x3e4272(0xd6)]?.[_0x3e4272(0x11d)]||_0x27d161[_0x3e4272(0xf8)];this[_0x3e4272(0xd2)][_0x3e4272(0xec)][_0x3e4272(0xaf)](_0x3e4272(0xee),{'contextItems':Array[_0x3e4272(0x122)](_0x27d161[_0x3e4272(0xe1)][_0x3e4272(0x11b)]()),'initialContent':_0x3e4272(0xbb)+_0x5352c1+_0x3e4272(0x129),'id':_0x27d161['id']});}[_0x295d3a(0xc9)]({errorMessage:_0x16eadd,id:_0x30a377}){const _0xaee03a=_0x295d3a;this[_0xaee03a(0xd2)][_0xaee03a(0xec)][_0xaee03a(0xaf)](_0xaee03a(0xce),{'initialContent':_0xaee03a(0xbb)+_0x16eadd+_0xaee03a(0x129),'id':_0x30a377});}[_0x295d3a(0x8e)](_0x2f5a6b){const _0x58c65a=_0x295d3a;return this[_0x58c65a(0xdc)][_0x58c65a(0xad)](async()=>{const _0x54e428=_0x58c65a;this[_0x54e428(0xd2)][_0x54e428(0xec)][_0x54e428(0xaf)](_0x54e428(0xa8),{'id':_0x2f5a6b[_0x54e428(0xf4)]+':'+_0x2f5a6b['id']}),this[_0x54e428(0xae)](null);});}async[_0x295d3a(0x11a)](_0x1ef7d9){const _0x1b061f=_0x295d3a,_0xb7dffb=_0x261f1f(this[_0x1b061f(0xd9)]);let _0xb61140=_0xb7dffb[_0x1b061f(0xa3)][_0x1b061f(0x128)](_0x1b061f(0x10b))||[..._0x30b9cf];if(_0xb7dffb[_0x1b061f(0x109)][_0x1b061f(0xf3)](_0x1b061f(0xfe))){if(!this[_0x1b061f(0x83)]){this[_0x1b061f(0x83)]=!0x0;const _0x4ed4d7=_0xb7dffb[_0x1b061f(0xb8)][_0x1b061f(0x128)](_0x1b061f(0xcd));this[_0x1b061f(0xd2)][_0x1b061f(0xec)][_0x1b061f(0x100)](_0x1b061f(0xc8))['to'](_0x4ed4d7,_0x1b061f(0xc6));}}else _0xb61140=_0xb61140[_0x1b061f(0xb3)](_0x55dd68=>_0x1b061f(0x8a)!=_0x55dd68);return this[_0x1b061f(0xdc)][_0x1b061f(0xad)](async()=>{const _0x2c2c1b=_0x1b061f;this[_0x2c2c1b(0xd2)][_0x2c2c1b(0xec)][_0x2c2c1b(0xaf)](_0x2c2c1b(0x8c),{'id':_0x1ef7d9[_0x2c2c1b(0xf4)]+':'+_0x1ef7d9['id'],'areActionsDisabled':_0x1ef7d9[_0x2c2c1b(0x91)],'showDiff':this[_0x2c2c1b(0xd3)],'availableActions':_0xb61140}),this[_0x2c2c1b(0xae)](null);});}[_0x295d3a(0x97)](_0x9133a0,_0x5a9a3c){const _0x1132ea=_0x295d3a,_0x28e50b=this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xa9)][_0x1132ea(0x9f)];if(_0x28e50b instanceof _0x5cf797)return this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xa9)][_0x1132ea(0x96)](_0x28e50b),void this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xaf)](_0x1132ea(0xa1),{'id':_0x9133a0['id'],'capabilities':{'isWebSearchEnabled':_0x28e50b[_0x1132ea(0xa0)][_0x1132ea(0xf2)]||_0x5a9a3c[_0x1132ea(0xf2)],'isReasoningEnabled':_0x28e50b[_0x1132ea(0xa0)][_0x1132ea(0xe3)]||_0x5a9a3c[_0x1132ea(0xe3)]}});this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xaf)](_0x1132ea(0xa1),{'id':_0x9133a0['id'],'capabilities':_0x5a9a3c});}[_0x295d3a(0xd8)](_0x15ab49){const _0x15ae0d=_0x295d3a,_0xc1ecec=this[_0x15ae0d(0xd2)][_0x15ae0d(0xec)][_0x15ae0d(0xa9)][_0x15ae0d(0x85)](_0x3d2eda=>_0x3d2eda[_0x15ae0d(0x9d)]['id']==_0x15ab49['id']&&_0x3d2eda instanceof _0x5cf797);_0xc1ecec&&_0xc1ecec[_0x15ae0d(0x9e)](_0x15ae0d(0xa2),_0x15ab49[_0x15ae0d(0xa2)]);}async[_0x295d3a(0xa4)](_0x5f5d1e){const _0x38bbb6=_0x295d3a,_0x10b46c=_0x5f5d1e[_0x38bbb6(0x89)]||this[_0x38bbb6(0x8b)];return this[_0x38bbb6(0xdc)][_0x38bbb6(0xad)](async _0x40ac14=>{const _0x1afa71=_0x38bbb6;await this[_0x1afa71(0xd2)][_0x1afa71(0xec)][_0x1afa71(0xf5)]({..._0x5f5d1e,'abortSignal':_0x40ac14,'renderingStrategy':_0x10b46c}),_0x5f5d1e[_0x1afa71(0xc4)]&&this[_0x1afa71(0xab)](_0x5f5d1e['id']);});}[_0x295d3a(0x9c)](_0x48cde3,_0x4526f9){const _0x245ae1=_0x295d3a;this[_0x245ae1(0xd2)][_0x245ae1(0xec)][_0x245ae1(0x8f)](_0x48cde3,_0x4526f9);}async[_0x295d3a(0xda)](_0x311f5a){const _0x590c08=_0x295d3a,_0x348b97=_0x311f5a[_0x590c08(0x89)]||this[_0x590c08(0x8b)];return this[_0x590c08(0xdc)][_0x590c08(0xad)](async _0x597169=>{const _0xb9f885=_0x590c08;await this[_0xb9f885(0xd2)][_0xb9f885(0xec)][_0xb9f885(0xc0)]({..._0x311f5a,'abortSignal':_0x597169,'renderingStrategy':_0x348b97}),_0x311f5a[_0xb9f885(0xc4)]&&this[_0xb9f885(0xab)](_0x311f5a['id']);});}[_0x295d3a(0x106)](_0x4252d4){const _0xc27500=_0x295d3a;this[_0xc27500(0xd2)][_0xc27500(0xec)][_0xc27500(0x121)](_0x4252d4);}[_0x295d3a(0xab)](_0x4207ad){const _0x317fc2=_0x295d3a;this[_0x317fc2(0xd2)][_0x317fc2(0xec)][_0x317fc2(0x10a)](_0x4207ad);}[_0x295d3a(0x11c)](_0x13577a){const _0x3478c3=_0x295d3a;this[_0x3478c3(0xd2)][_0x3478c3(0xec)][_0x3478c3(0xb9)]()[_0x3478c3(0xb3)](_0x2d9057=>_0x2d9057[_0x3478c3(0x11f)](_0x13577a))[_0x3478c3(0xdf)](_0x135d9f=>this[_0x3478c3(0xd2)][_0x3478c3(0xec)][_0x3478c3(0xf1)](_0x135d9f));}[_0x295d3a(0xd5)](){const _0xe7210a=_0x295d3a;this[_0xe7210a(0xae)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0xe7210a(0xd2)][_0xe7210a(0x102)][_0xe7210a(0xdb)](!this[_0xe7210a(0xd9)][_0xe7210a(0xa3)][_0xe7210a(0x128)](_0xe7210a(0x103))),this[_0xe7210a(0x93)]=!0x0,this[_0xe7210a(0xd2)][_0xe7210a(0xec)][_0xe7210a(0xa7)]();}[_0x295d3a(0x110)](_0x25df84){const _0x9ed677=_0x295d3a;this[_0x9ed677(0xdc)][_0x9ed677(0xcf)](),this[_0x9ed677(0xd2)][_0x9ed677(0xec)][_0x9ed677(0xb9)]()[_0x9ed677(0xb3)](_0x34b821=>_0x34b821[_0x9ed677(0x11f)](_0x25df84['id']))[_0x9ed677(0xdf)](_0x338179=>this[_0x9ed677(0xab)](_0x338179)),this[_0x9ed677(0x93)]=!0x1,this[_0x9ed677(0xd2)][_0x9ed677(0xec)][_0x9ed677(0x10d)]();}async[_0x295d3a(0xbc)](){const _0x9fa005=_0x295d3a;return this[_0x9fa005(0xdc)][_0x9fa005(0x92)][_0x9fa005(0x116)](()=>{const _0x906d8a=_0x9fa005;this[_0x906d8a(0x93)]=!0x1,this[_0x906d8a(0xd2)][_0x906d8a(0xec)][_0x906d8a(0x10d)]();});}[_0x295d3a(0x125)](_0x46a191,_0x32a3a0){const _0x136bb6=_0x295d3a;this[_0x136bb6(0xd2)][_0x136bb6(0x102)][_0x136bb6(0x125)](_0x46a191,_0x32a3a0);}[_0x295d3a(0x90)](_0x2fc510){const _0x435fca=_0x295d3a;this[_0x435fca(0xd2)][_0x435fca(0x102)][_0x435fca(0x90)](_0x2fc510);}[_0x295d3a(0x9a)](_0x11f113,_0x384bda){const _0x32cd90=_0x295d3a;this[_0x32cd90(0xd2)][_0x32cd90(0x102)][_0x32cd90(0x9a)](_0x11f113,_0x384bda);}[_0x295d3a(0x126)](_0x3a7a6f){const _0x49c2d2=_0x295d3a;this[_0x49c2d2(0xd2)][_0x49c2d2(0x102)][_0x49c2d2(0x126)](_0x3a7a6f);}[_0x295d3a(0x12a)](_0x222f4b){const _0x205511=_0x295d3a;this[_0x205511(0xd2)][_0x205511(0x102)][_0x205511(0x12a)](_0x222f4b);}[_0x295d3a(0xe7)](){const _0x1ec26c=_0x295d3a;this[_0x1ec26c(0xd2)][_0x1ec26c(0x102)][_0x1ec26c(0xe7)]();}[_0x295d3a(0xa6)](){const _0x5db488=_0x295d3a;this[_0x5db488(0xd2)][_0x5db488(0x102)][_0x5db488(0xa6)]();}[_0x295d3a(0xe8)](_0x47e8a1,_0x11c18d,_0x4b391e){const _0x3227ab=_0x295d3a;this[_0x3227ab(0xd2)][_0x3227ab(0x102)][_0x3227ab(0xe8)](_0x47e8a1,_0x11c18d,_0x4b391e);}[_0x295d3a(0xfb)](){const _0x3fc77b=_0x295d3a;this[_0x3fc77b(0xd2)][_0x3fc77b(0x102)][_0x3fc77b(0xfb)](),this[_0x3fc77b(0xd2)][_0x3fc77b(0x102)][_0x3fc77b(0x108)](this[_0x3fc77b(0xc1)]());}[_0x295d3a(0xf7)](_0x462cab){const _0x5800c=_0x295d3a;this[_0x5800c(0xd2)][_0x5800c(0x102)][_0x5800c(0xf7)](_0x462cab);}[_0x295d3a(0x105)](_0x2c1c93){const _0x153df4=_0x295d3a;this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0xbd)](_0x2c1c93[_0x153df4(0xf2)]),this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0x8d)](_0x2c1c93[_0x153df4(0xe3)]),this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0x108)](this[_0x153df4(0xc1)](_0x2c1c93));}[_0x295d3a(0xe4)](_0x3d26ec,_0x3b0de6){const _0x1fadba=_0x295d3a;this[_0x1fadba(0xd2)][_0x1fadba(0x102)][_0x1fadba(0xfc)](_0x3d26ec),_0x3b0de6&&this[_0x1fadba(0xd2)][_0x1fadba(0x102)][_0x1fadba(0xdb)](!0x1);}[_0x295d3a(0x120)](_0x47420b){const _0x545b98=_0x295d3a;this[_0x545b98(0x8b)]=_0x47420b;}[_0x295d3a(0x123)](_0x2079aa){const _0x57b28b=_0x295d3a;this[_0x57b28b(0xd2)][_0x57b28b(0xec)][_0x57b28b(0x123)](_0x2079aa);}[_0x295d3a(0x84)](){const _0x2caec9=_0x295d3a;this[_0x2caec9(0xaa)](_0x147f16(this[_0x2caec9(0xd9)][_0x2caec9(0x101)],_0x2caec9(0xc7)));}[_0x295d3a(0xaa)](_0x753384,_0x1e57eb=!0x1){const _0x2ccdbc=_0x295d3a;if(_0x1e57eb&&!_0x3167ca()&&_0x753384[_0x2ccdbc(0xeb)])return this[_0x2ccdbc(0xd2)][_0x2ccdbc(0xd7)][_0x2ccdbc(0xb7)]='',void this[_0x2ccdbc(0xdd)](_0x753384);this[_0x2ccdbc(0xd2)][_0x2ccdbc(0xd7)][_0x2ccdbc(0xb7)]=_0x753384;}[_0x295d3a(0xae)](_0x28adc9){const _0x5216c9=_0x295d3a,_0x3a8c70=this[_0x5216c9(0xca)](_0x28adc9);this[_0x5216c9(0xd2)][_0x5216c9(0xec)][_0x5216c9(0xae)](_0x3a8c70);}[_0x295d3a(0xdd)](_0x2b1c27){const _0x1b3d99=_0x295d3a;let _0x50c5be=0x0;clearInterval(this[_0x1b3d99(0xe0)]),this[_0x1b3d99(0xe0)]=setInterval(()=>{const _0x1d48c3=_0x1b3d99;this[_0x1d48c3(0xd2)][_0x1d48c3(0xd7)][_0x1d48c3(0xb7)]=this[_0x1d48c3(0xd2)][_0x1d48c3(0xd7)][_0x1d48c3(0xb7)]+_0x2b1c27[_0x50c5be],_0x50c5be++,_0x50c5be===_0x2b1c27[_0x1d48c3(0xeb)]&&clearInterval(this[_0x1d48c3(0xe0)]);},0x1e);}[_0x295d3a(0xf6)](_0x1834bb){const _0x54a4b9=_0x295d3a;this[_0x54a4b9(0xd2)][_0x54a4b9(0xd7)][_0x54a4b9(0xe6)]=_0x1834bb;}[_0x295d3a(0xca)](_0x45c7c1){const _0x437707=_0x295d3a;return _0x45c7c1?_0x45c7c1[_0x437707(0xf2)]&&_0x45c7c1[_0x437707(0xe3)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0xbf)):_0x45c7c1[_0x437707(0xf2)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0xd0)):_0x45c7c1[_0x437707(0xe3)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0x86)):_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0x88)):'';}[_0x295d3a(0xc1)](_0x1bc809){const _0x2651a7=_0x295d3a;return _0x1bc809?_0x1bc809[_0x2651a7(0xf2)]&&_0x1bc809[_0x2651a7(0xe3)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0xfd)):_0x1bc809[_0x2651a7(0xf2)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0xed)):_0x1bc809[_0x2651a7(0xe3)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x95)):_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x119)):_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x119));}[_0x295d3a(0xd4)](_0x588757,_0x5b2bd2,_0x5f02da,_0x19fb05){const _0x809bb7=_0x295d3a;this[_0x809bb7(0xd2)][_0x809bb7(0xd4)](_0x588757,_0x5b2bd2,_0x5f02da,_0x19fb05);}[_0x295d3a(0xe9)](_0x23eb6c){const _0x12b6dd=_0x295d3a;this[_0x12b6dd(0xd2)][_0x12b6dd(0xe9)](_0x23eb6c);}[_0x295d3a(0x115)](){const _0x321c2e=_0x295d3a;this[_0x321c2e(0xd2)][_0x321c2e(0x102)][_0x321c2e(0x115)]();}[_0x295d3a(0xde)](_0x4f0624,_0x152e1c){const _0x238306=_0x295d3a;this[_0x238306(0xd2)][_0x238306(0xec)][_0x238306(0xac)](_0x4f0624,_0x152e1c);}[_0x295d3a(0xa7)](){const _0xb3dc12=_0x295d3a;this[_0xb3dc12(0xd2)][_0xb3dc12(0xec)][_0xb3dc12(0xa7)]();}[_0x295d3a(0xb2)](){const _0x47c67e=_0x295d3a;this[_0x47c67e(0xd2)][_0x47c67e(0x102)][_0x47c67e(0x127)]=!0x0;}[_0x295d3a(0xfa)](){const _0x19f4ba=_0x295d3a;this[_0x19f4ba(0xd2)][_0x19f4ba(0x102)][_0x19f4ba(0x127)]=!0x1;}}
@@ -207,7 +207,7 @@ export type AIContextResourceState = AIContextResource & {
207
207
  * in the `config.ai.chat.context` namespace.
208
208
  *
209
209
  * It also allows to change the minimal number of items in the context adding menu required to show the search input
210
- * using `searchInputVisibleFrom` option.
210
+ * using `config.ai.chat.context.searchInputVisibleFrom` option.
211
211
  *
212
212
  * ```ts
213
213
  * ClassicEditor
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x271efb=_0x3369;(function(_0x290c70,_0x149317){const _0x451d6a=_0x3369,_0x437152=_0x290c70();while(!![]){try{const _0x31ae62=-parseInt(_0x451d6a(0xf8))/0x1*(-parseInt(_0x451d6a(0xee))/0x2)+-parseInt(_0x451d6a(0xd5))/0x3*(-parseInt(_0x451d6a(0xdc))/0x4)+-parseInt(_0x451d6a(0x11b))/0x5+parseInt(_0x451d6a(0xd8))/0x6*(parseInt(_0x451d6a(0xc3))/0x7)+parseInt(_0x451d6a(0xc1))/0x8*(-parseInt(_0x451d6a(0x10a))/0x9)+-parseInt(_0x451d6a(0xb4))/0xa*(-parseInt(_0x451d6a(0xb1))/0xb)+-parseInt(_0x451d6a(0xb8))/0xc*(parseInt(_0x451d6a(0xd0))/0xd);if(_0x31ae62===_0x149317)break;else _0x437152['push'](_0x437152['shift']());}catch(_0x2066e7){_0x437152['push'](_0x437152['shift']());}}}(_0x4893,0x61659));function _0x4893(){const _0x10e81a=['ai-chat-url-upload-failed','selection','uploadFile','getId','length','getData','isSelectionInContext','getResources','ai-chat-context-invalid-data','size','isHidden','string','forEach','File','end','getPendingContextItems','type','ai-chat-resource-no-data','MARKDOWN','files-','_setAddContextOptionsDefaultState','_ownerId','fetchDocument','_toggleAddCurrentDocumentOptionVisibility','data','_ongoingUploadOperations','_addContextOptionsState','enabled','_ongoingUploads','FILE','_conversationContextItems','clearPendingContextItems','11UaFGsq','addFilesToContext','map','3076870ndhKGt','contextItemAdded','Current\x20document','message','12cptrvR','addResourceToContext','resourceId','HTML','URL','addToConversationContext','_removeContextItem','abortController','ai-chat-file-upload-failed','1156232pAZYlW','populateFromMessage','38297fPYilk','content','urls','hidden','abort','init','uploadUrl','mapContextItemsToRequestData','isCurrentDocumentInContext','resources','document','_createContextItemFromContent','_convertTextResourceToFile','6664164ycUpmk','resourceStateChanged','_mapContextItemToRequestData','TEXT','DOCUMENT','651933OBjsBK','sessionId','updateCurrentDocument','642gjEfPi','_addContextItem','filter','_isResourceInContext','12JCHhHK','uploadProgressChanged','get','fire','_startUploadOperation','ai-chat-document-upload-failed','object','_finishContextItemLoading','attributes','url','_updateResourceInContextState','ai-chat-source-not-found','file-','uiId','_getCustomSourcesInitialState','find','stack','_finishUploadOperation','230JSIDLc','getDocument','sources','push','uploadDocument','removeFromContext','version','_connector','isReadOnly','text/plain','1693gBenyY','from','contextItemRemoved','ai-request-aborted','sourceResourcesLoaded','contextSent','error','start','_pendingContextItems','addContextOptionsChanged','addUrlToContext','addCurrentDocumentToContext','isCurrentDocumentInConversation','has','_addToConversationContextItem','SELECTION','_findSourceIdsByResourceId','all','36iBFvMN','ai-chat-resource-load-failed','delete','files','ai-chat-context-unsupported-type','set','values','getSentContextItems','text/markdown','isInContext','loadSourceResources','_config','label','url-','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','current-document','1250155WGxekG','startsWith','text/html','name','addSelectionToContext','removeSelectionFromContext','ai-chat-source-resources-load-failed'];_0x4893=function(){return _0x10e81a;};return _0x4893();}function _0x3369(_0x30403f,_0x58ee1d){const _0x489334=_0x4893();return _0x3369=function(_0x336994,_0x45f3ae){_0x336994=_0x336994-0xaf;let _0x26e242=_0x489334[_0x336994];return _0x26e242;},_0x3369(_0x30403f,_0x58ee1d);}import{CKEditorError as _0x15d81b,ObservableMixin as _0x13cac4,uid as _0x5c57c1}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x15f526,AIContextTextResourceType as _0x566476}from'../../aicore/model/aicontext.js';import{escape as _0x3bdac7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x271efb(0xb5),_0x271efb(0xfa),_0x271efb(0x118),_0x271efb(0xfd),_0x271efb(0xfe),_0x271efb(0x101),_0x271efb(0xfc),_0x271efb(0xd1),_0x271efb(0xdd)];export class AIChatContext extends _0x13cac4(){[_0x271efb(0xf5)];[_0x271efb(0x115)];[_0x271efb(0x137)];constructor({connector:_0x2c5fb1,config:_0x14965b,ownerId:_0x4539d4}){const _0x45ca73=_0x271efb;super(),this[_0x45ca73(0xf5)]=_0x2c5fb1,this[_0x45ca73(0x115)]=_0x14965b,this[_0x45ca73(0x137)]=_0x4539d4;}[_0x271efb(0xc8)](){const _0xacf21f=_0x271efb;this[_0xacf21f(0x100)]=new Map(),this[_0xacf21f(0xaf)]=new Map(),this[_0xacf21f(0x13e)]=new Map(),this[_0xacf21f(0x13b)]=new Map(),this[_0xacf21f(0x136)]();}[_0x271efb(0x131)](){const _0xcef379=_0x271efb;return this[_0xcef379(0x100)];}async[_0x271efb(0xc2)](_0xd79b1d){const _0x281451=_0x271efb,_0x3566b2=await this[_0x281451(0xce)](_0xd79b1d);return this[_0x281451(0x106)](_0x3566b2),_0x281451(0x11a)===_0x3566b2[_0x281451(0xe9)]&&this[_0x281451(0x139)](),_0x3566b2;}async[_0x271efb(0xce)](_0x4cc012){const _0x2a42b7=_0x271efb;if(_0x4cc012[_0x2a42b7(0x132)]===_0x15f526[_0x2a42b7(0xd4)]){const _0x624b19=await this[_0x2a42b7(0xf5)][_0x2a42b7(0x138)](this[_0x2a42b7(0x137)],_0x4cc012['id'])[_0x2a42b7(0xef)]();return{'id':_0x2a42b7(0x11a),'uiId':_0x2a42b7(0x11a),'label':_0x2a42b7(0xb6),'type':_0x4cc012[_0x2a42b7(0x132)],'content':_0x624b19[_0x2a42b7(0xc4)],'hidden':this[_0x2a42b7(0xaf)][_0x2a42b7(0x105)](_0x2a42b7(0x11a)),'version':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xf4)],'sessionId':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xd6)]};}return{'id':_0x4cc012['id'],'uiId':_0x4cc012['id'],'label':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0x116)]||_0x4cc012[_0x2a42b7(0x11e)]||_0x4cc012[_0x2a42b7(0xe5)]||_0x4cc012['id'],'type':_0x4cc012[_0x2a42b7(0x132)],..._0x4cc012?.[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]?{'resourceId':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]}:{}};}[_0x271efb(0x111)](){const _0xba5ca9=_0x271efb;return new Map(this[_0xba5ca9(0xaf)]);}[_0x271efb(0xf3)](_0x3e0e3e){const _0x51a22f=_0x271efb,_0x278d33=this[_0x51a22f(0x100)][_0x51a22f(0xde)](_0x3e0e3e);_0x278d33?.[_0x51a22f(0xf6)]||this[_0x51a22f(0xbe)](_0x3e0e3e);}[_0x271efb(0xb0)](){const _0x3388c9=_0x271efb;if(0x0===this[_0x3388c9(0x100)][_0x3388c9(0x12b)])return;for(const _0x5f4a9b of this[_0x3388c9(0x100)][_0x3388c9(0x110)]())this[_0x3388c9(0xbe)](_0x5f4a9b[_0x3388c9(0xe9)]);const _0x2470d8=this[_0x3388c9(0xaf)][_0x3388c9(0xde)](_0x3388c9(0x11a))||this[_0x3388c9(0x100)][_0x3388c9(0xde)](_0x3388c9(0x11a));_0x2470d8&&this[_0x3388c9(0xd9)]({..._0x2470d8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x271efb(0xbd)](_0x2d4da5){const _0x3151e7=_0x271efb;for(const _0xecb01 of _0x2d4da5[_0x3151e7(0x110)]())this[_0x3151e7(0x106)](_0xecb01);this[_0x3151e7(0xb0)](),this[_0x3151e7(0xdf)](_0x3151e7(0xfd),{'contextItems':Array[_0x3151e7(0xf9)](this[_0x3151e7(0x111)]()[_0x3151e7(0x110)]())});}[_0x271efb(0xcb)](){const _0x26923c=_0x271efb;return this[_0x26923c(0x100)][_0x26923c(0x105)](_0x26923c(0x11a));}[_0x271efb(0x128)](){const _0x325dc5=_0x271efb;return this[_0x325dc5(0x100)][_0x325dc5(0x105)](_0x325dc5(0x123));}[_0x271efb(0x104)](){const _0x19390e=_0x271efb;return this[_0x19390e(0xaf)][_0x19390e(0x105)](_0x19390e(0x11a));}static[_0x271efb(0xca)](_0x52a1ae){const _0x588719=_0x271efb;return Array[_0x588719(0xf9)](_0x52a1ae[_0x588719(0x110)]())[_0x588719(0xb3)](_0x5b6c36=>this[_0x588719(0xd2)](_0x5b6c36))[_0x588719(0xda)](_0x19b3f9=>null!==_0x19b3f9);}async[_0x271efb(0xb2)](_0x223c08,_0x439d4b,_0x306149=_0x15f526[_0x271efb(0x13f)]){const _0x1a5642=_0x271efb,_0x1a4561=_0x1a5642(0x135)+_0x5c57c1();this[_0x1a5642(0xe0)](_0x1a4561);try{await Promise[_0x1a5642(0x109)](_0x223c08[_0x1a5642(0xb3)](async _0x492eda=>{const _0x1c59f8=_0x1a5642,_0x11af76=_0x1c59f8(0xe8)+_0x5c57c1(),_0x26cac6=_0x3bdac7(_0x492eda[_0x1c59f8(0x11e)]);try{this[_0x1c59f8(0xd9)]({'type':_0x306149,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x0);const _0x49ec97=this[_0x1c59f8(0xf5)][_0x1c59f8(0x124)](this[_0x1c59f8(0x137)],_0x492eda,_0x439d4b);this[_0x1c59f8(0x13e)][_0x1c59f8(0x10f)](_0x11af76,_0x49ec97[_0x1c59f8(0xbf)]);const {id:_0x1eb148}=await _0x49ec97[_0x1c59f8(0x125)]();this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76),this[_0x1c59f8(0xe3)]({'type':_0x306149,'id':_0x1eb148,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x1);}catch(_0x4f2b77){this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76);if(!_0x4f2b77[_0x1c59f8(0xb7)][_0x1c59f8(0x11c)](_0x1c59f8(0xfb))){const _0x508bea=new _0x15d81b(_0x1c59f8(0xc0),null,{'fileName':_0x26cac6});_0x508bea[_0x1c59f8(0xec)]=_0x4f2b77[_0x1c59f8(0xec)],this[_0x1c59f8(0xdf)](_0x1c59f8(0xfe),{'error':_0x508bea,'fileName':_0x26cac6});}this[_0x1c59f8(0xbe)](_0x11af76);}}));}finally{this[_0x1a5642(0xed)](_0x1a4561);}}[_0x271efb(0x103)](_0x1d0418){const _0x44004d=_0x271efb;if(this[_0x44004d(0xcb)]())return;const _0x2ec486={'type':_0x15f526[_0x44004d(0xd4)],'uiId':_0x44004d(0x11a),'label':_0x1d0418,'isReadOnly':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a)),'hidden':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a))};this[_0x44004d(0xd9)](_0x2ec486);}async[_0x271efb(0xd7)](_0x5dde5e,_0x3e9816,_0x226c9b,_0xb0c700){const _0x1e7a96=_0x271efb,_0x2f5677=this[_0x1e7a96(0x100)][_0x1e7a96(0xde)](_0x1e7a96(0x11a));if(_0x2f5677&&_0x5dde5e){_0x2f5677[_0x1e7a96(0x123)]=_0xb0c700?_0xb0c700[_0x1e7a96(0xb3)](_0x31c0cf=>({'start':_0x31c0cf[_0x1e7a96(0xff)],'end':_0x31c0cf[_0x1e7a96(0x130)]})):[];try{if(_0x2f5677[_0x1e7a96(0xf4)]===_0x3e9816)return;const {id:_0xa04804}=await this[_0x1e7a96(0xf5)][_0x1e7a96(0xf2)](this[_0x1e7a96(0x137)],_0x5dde5e,{'version':_0x3e9816,'sessionId':_0x226c9b})[_0x1e7a96(0x125)]();_0x2f5677['id']=_0xa04804,_0x2f5677[_0x1e7a96(0xc4)]=_0x5dde5e,_0x2f5677[_0x1e7a96(0xf4)]=_0x3e9816,_0x2f5677[_0x1e7a96(0xd6)]=_0x226c9b;}catch(_0x1927b2){const _0x3cc330=new _0x15d81b(_0x1e7a96(0xe1),null);_0x3cc330[_0x1e7a96(0xec)]=_0x1927b2[_0x1e7a96(0xec)],this[_0x1e7a96(0xdf)](_0x1e7a96(0xfe),{'error':_0x3cc330});}}}[_0x271efb(0x11f)](_0x51a704){const _0x368578=_0x271efb;this[_0x368578(0xd9)]({'type':_0x15f526[_0x368578(0x107)],'label':_0x51a704,'uiId':_0x368578(0x123),'content':_0x51a704});}[_0x271efb(0x120)](){const _0x2b3492=_0x271efb;this[_0x2b3492(0xbe)](_0x2b3492(0x123));}async[_0x271efb(0x102)](_0x58e557,_0x27016f){const _0x11298c=_0x271efb,_0x4604ce=_0x11298c(0x117)+_0x5c57c1();this[_0x11298c(0xe0)](_0x4604ce);const _0x184f81=_0x11298c(0x117)+_0x5c57c1();try{this[_0x11298c(0xd9)]({'type':_0x15f526[_0x11298c(0xbc)],'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x0);const _0x19567a=this[_0x11298c(0xf5)][_0x11298c(0xc9)](this[_0x11298c(0x137)],_0x58e557,_0x27016f);this[_0x11298c(0x13e)][_0x11298c(0x10f)](_0x184f81,_0x19567a[_0x11298c(0xbf)]);const {id:_0xe5a2ff}=await _0x19567a[_0x11298c(0x125)]();this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),this[_0x11298c(0xe3)]({'type':_0x15f526[_0x11298c(0xbc)],'id':_0xe5a2ff,'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x1);}catch(_0x2ae12d){this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),(_0x2ae12d[_0x11298c(0xb7)][_0x11298c(0x11c)](_0x11298c(0xfb))||this[_0x11298c(0xdf)](_0x11298c(0xfe),{'error':new _0x15d81b(_0x11298c(0x122),this,{'url':_0x58e557,'originalError':_0x2ae12d}),'url':_0x58e557}),this[_0x11298c(0xbe)](_0x184f81));}finally{this[_0x11298c(0xed)](_0x4604ce);}}async[_0x271efb(0x114)](_0x7ed02f,_0x379aa1,_0x22e5b){const _0x63f8eb=_0x271efb,_0xc20965=this[_0x63f8eb(0x13c)][_0x63f8eb(0xf0)][_0x63f8eb(0xeb)](_0x574203=>_0x574203['id']===_0x7ed02f);if(!_0xc20965)return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0xe7),this,{'sourceId':_0x7ed02f}),'sourceId':_0x7ed02f}),[];try{const _0x11238c=(await _0xc20965[_0x63f8eb(0x129)](_0x379aa1))[_0x63f8eb(0xb3)](_0xa82321=>{const _0x52a787=_0x63f8eb,_0x2f3840=this[_0x52a787(0xdb)](_0xa82321['id']);return{..._0xa82321,'isInContext':_0x2f3840};});return _0xc20965[_0x63f8eb(0xcc)]=_0x11238c,this[_0x63f8eb(0xdf)](_0x63f8eb(0xfc),{'sourceId':_0x7ed02f,'source':_0xc20965,'resources':_0x11238c,'uid':_0x22e5b}),_0x11238c;}catch(_0x1ec224){return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0x121),this,{'sourceId':_0x7ed02f,'originalError':_0x1ec224}),'sourceId':_0x7ed02f,'sourceLabel':_0xc20965[_0x63f8eb(0x116)]}),[];}}async[_0x271efb(0xb9)](_0x3d624b,_0x58ca0c){const _0x477de9=_0x271efb;if(this[_0x477de9(0xdb)](_0x58ca0c['id']))return;let _0x3d4051=_0x58ca0c[_0x477de9(0x13a)];if(!_0x3d4051&&_0x3d624b[_0x477de9(0x127)])try{_0x3d4051=await _0x3d624b[_0x477de9(0x127)](_0x58ca0c['id']);}catch(_0x51ec10){return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10b),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'originalError':_0x51ec10}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}if(_0x3d4051)switch(_0x58ca0c[_0x477de9(0x132)]){case _0x15f526[_0x477de9(0xbc)]:if(_0x477de9(0x12d)!=typeof _0x3d4051)return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12d),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0x102)](_0x3d4051,{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0x13f)]:if(!(_0x3d4051 instanceof File))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12f),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0xd3)]:if(_0x477de9(0xe2)!=typeof _0x3d4051||!(_0x477de9(0xc4)in _0x3d4051)||!(_0x477de9(0x132)in _0x3d4051))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x119),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});_0x3d4051=AIChatContext[_0x477de9(0xcf)](_0x3d4051,_0x58ca0c[_0x477de9(0x116)]),await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']},_0x15f526[_0x477de9(0xd3)]);break;default:this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10e),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'resourceType':_0x58ca0c[_0x477de9(0x132)]}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}else this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x133),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}static[_0x271efb(0xcf)](_0x121e1c,_0xfe25bb){const _0x4c92c2=_0x271efb;switch(_0x121e1c[_0x4c92c2(0x132)]){case _0x566476[_0x4c92c2(0x134)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x112)});case _0x566476[_0x4c92c2(0xbb)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x11d)});default:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0xf7)});}}static[_0x271efb(0xd2)](_0x3d5cb8){const _0x1062c6=_0x271efb;switch(_0x3d5cb8[_0x1062c6(0x132)]){case _0x15f526[_0x1062c6(0x13f)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xbc)]:return{'type':_0x15f526[_0x1062c6(0xbc)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xd4)]:return{'type':_0x15f526[_0x1062c6(0xd4)],'id':_0x3d5cb8['id'],..._0x3d5cb8[_0x1062c6(0x123)]?.[_0x1062c6(0x126)]&&{'selection':_0x3d5cb8[_0x1062c6(0x123)]}};case _0x15f526[_0x1062c6(0xd3)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};default:return null;}}[_0x271efb(0xd9)](_0x73a7a,_0x4308f2=!0x1){const _0xc4df98=_0x271efb;if(this[_0xc4df98(0x100)][_0xc4df98(0x10f)](_0x73a7a[_0xc4df98(0xe9)],_0x73a7a),_0x73a7a[_0xc4df98(0xc6)]||this[_0xc4df98(0xdf)](_0xc4df98(0xb5),{'contextItem':_0x73a7a,'isLoading':_0x4308f2}),_0xc4df98(0x11a)===_0x73a7a[_0xc4df98(0xe9)]&&this[_0xc4df98(0x139)](),_0x73a7a[_0xc4df98(0xba)]){const _0x330047=this[_0xc4df98(0x108)](_0x73a7a[_0xc4df98(0xba)]);_0x330047&&_0x330047[_0xc4df98(0x12e)](_0xf3c0ad=>{const _0x20994e=_0xc4df98;this[_0x20994e(0xe6)](_0xf3c0ad,_0x73a7a[_0x20994e(0xba)],!0x0);});}}[_0x271efb(0xbe)](_0x6a3026){const _0x5d88c1=_0x271efb,_0xc9683b=this[_0x5d88c1(0x100)][_0x5d88c1(0xde)](_0x6a3026),_0xc7a036=this[_0x5d88c1(0x13e)][_0x5d88c1(0xde)](_0x6a3026);if(_0xc7a036&&(_0xc7a036[_0x5d88c1(0xc7)](),this[_0x5d88c1(0x13e)][_0x5d88c1(0x10c)](_0x6a3026)),_0xc9683b?.[_0x5d88c1(0xba)]){const _0x3f70fb=this[_0x5d88c1(0x108)](_0xc9683b[_0x5d88c1(0xba)]);_0x3f70fb&&_0x3f70fb[_0x5d88c1(0x12e)](_0xda8fc5=>{const _0x3489d5=_0x5d88c1;this[_0x3489d5(0xe6)](_0xda8fc5,_0xc9683b[_0x3489d5(0xba)],!0x1);});}this[_0x5d88c1(0x100)][_0x5d88c1(0x10c)](_0x6a3026),this[_0x5d88c1(0xdf)](_0x5d88c1(0xfa),{'uiId':_0x6a3026,'type':_0xc9683b?.[_0x5d88c1(0x132)]}),_0x5d88c1(0x11a)===_0x6a3026&&this[_0x5d88c1(0x139)]();}[_0x271efb(0xe3)](_0x5c20cf,_0xbdc7a3){const _0x3bd718=_0x271efb;if(this[_0x3bd718(0x100)][_0x3bd718(0x105)](_0x5c20cf[_0x3bd718(0xe9)])&&(this[_0x3bd718(0x100)][_0x3bd718(0x10f)](_0x5c20cf[_0x3bd718(0xe9)],_0x5c20cf),this[_0x3bd718(0xdf)](_0x3bd718(0x118),{'contextItem':_0x5c20cf,'isLoading':_0xbdc7a3}),_0x5c20cf[_0x3bd718(0xba)])){const _0xd1af6d=this[_0x3bd718(0x108)](_0x5c20cf[_0x3bd718(0xba)]);_0xd1af6d&&_0xd1af6d[_0x3bd718(0x12e)](_0x18c880=>{const _0x450bf8=_0x3bd718;this[_0x450bf8(0xe6)](_0x18c880,_0x5c20cf[_0x450bf8(0xba)],!0x0);});}}[_0x271efb(0x106)](_0x3d3175){const _0x1b4649=_0x271efb;this[_0x1b4649(0xaf)][_0x1b4649(0x10f)](_0x3d3175[_0x1b4649(0xe9)],_0x3d3175);}[_0x271efb(0x136)](){const _0x2e39ab=_0x271efb;this[_0x2e39ab(0x13c)]={'document':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xcd)]?.[_0x2e39ab(0x13d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xc5)]?.[_0x2e39ab(0x13d)]},'files':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0x10d)]?.[_0x2e39ab(0x13d)]},'sources':this[_0x2e39ab(0xea)]()},this[_0x2e39ab(0xdf)](_0x2e39ab(0x101),{'options':this[_0x2e39ab(0x13c)]});}[_0x271efb(0xea)](){const _0x434091=_0x271efb;return this[_0x434091(0x115)]?.[_0x434091(0xf0)]?.[_0x434091(0xb3)](_0x3b3a8f=>({..._0x3b3a8f,'resources':[]}))??[];}[_0x271efb(0x139)](){const _0x1c4e60=_0x271efb,_0x1f21c1=this[_0x1c4e60(0xcb)]()||this[_0x1c4e60(0x104)]();this[_0x1c4e60(0x13c)][_0x1c4e60(0xcd)][_0x1c4e60(0x12c)]=_0x1f21c1,this[_0x1c4e60(0xdf)](_0x1c4e60(0x101),{'options':this[_0x1c4e60(0x13c)]});}[_0x271efb(0xdb)](_0xb0839b){const _0x55f606=_0x271efb;for(const _0x21974b of this[_0x55f606(0x100)][_0x55f606(0x110)]())if(_0x21974b[_0x55f606(0xba)]===_0xb0839b)return!0x0;for(const _0x3097c4 of this[_0x55f606(0xaf)][_0x55f606(0x110)]())if(_0x3097c4[_0x55f606(0xba)]===_0xb0839b)return!0x0;return!0x1;}[_0x271efb(0x108)](_0x593a4b){const _0x3aab44=_0x271efb,_0x526b16=[];for(const _0x6e2596 of this[_0x3aab44(0x13c)][_0x3aab44(0xf0)]){_0x6e2596[_0x3aab44(0xcc)][_0x3aab44(0xeb)](_0x19367a=>_0x19367a['id']===_0x593a4b)&&_0x526b16[_0x3aab44(0xf1)](_0x6e2596['id']);}return 0x0===_0x526b16[_0x3aab44(0x126)]?null:_0x526b16;}[_0x271efb(0xe6)](_0x3bcfe2,_0x276e9b,_0x555f0e){const _0x242721=_0x271efb,_0x25e095=this[_0x242721(0x13c)][_0x242721(0xf0)][_0x242721(0xeb)](_0x1ea521=>_0x1ea521['id']===_0x3bcfe2);if(!_0x25e095)return;const _0x170b73=_0x25e095[_0x242721(0xcc)][_0x242721(0xeb)](_0x10e162=>_0x10e162['id']===_0x276e9b);_0x170b73&&(_0x170b73[_0x242721(0x113)]=_0x555f0e,this[_0x242721(0xdf)](_0x242721(0xd1),{'sourceId':_0x3bcfe2,'resourceId':_0x276e9b,'isInContext':_0x555f0e}));}[_0x271efb(0xe0)](_0x2a0738){const _0x3b5546=_0x271efb;this[_0x3b5546(0x13b)][_0x3b5546(0x10f)](_0x2a0738,!0x0),this[_0x3b5546(0x13b)][_0x3b5546(0x12b)]&&this[_0x3b5546(0xdf)](_0x3b5546(0xdd),{'isUploadInProgress':!0x0});}[_0x271efb(0xed)](_0x387ec8){const _0x56fece=_0x271efb;this[_0x56fece(0x13b)][_0x56fece(0x10c)](_0x387ec8),0x0===this[_0x56fece(0x13b)][_0x56fece(0x12b)]&&this[_0x56fece(0xdf)](_0x56fece(0xdd),{'isUploadInProgress':!0x1});}}
23
+ function _0x436f(_0x5d07a4,_0x542101){const _0x23d916=_0x23d9();return _0x436f=function(_0x436fce,_0xd903e0){_0x436fce=_0x436fce-0x192;let _0x3ffbf0=_0x23d916[_0x436fce];return _0x3ffbf0;},_0x436f(_0x5d07a4,_0x542101);}const _0x46c5be=_0x436f;(function(_0x276114,_0x117861){const _0x59522a=_0x436f,_0x42ddb7=_0x276114();while(!![]){try{const _0x1a24a3=parseInt(_0x59522a(0x19a))/0x1*(-parseInt(_0x59522a(0x193))/0x2)+-parseInt(_0x59522a(0x1b3))/0x3+-parseInt(_0x59522a(0x1b7))/0x4*(parseInt(_0x59522a(0x1da))/0x5)+-parseInt(_0x59522a(0x1f7))/0x6*(-parseInt(_0x59522a(0x1e6))/0x7)+parseInt(_0x59522a(0x1f3))/0x8+parseInt(_0x59522a(0x1b6))/0x9+-parseInt(_0x59522a(0x1fd))/0xa*(parseInt(_0x59522a(0x1b0))/0xb);if(_0x1a24a3===_0x117861)break;else _0x42ddb7['push'](_0x42ddb7['shift']());}catch(_0x2d5d1e){_0x42ddb7['push'](_0x42ddb7['shift']());}}}(_0x23d9,0xb0e7d));function _0x23d9(){const _0x456d7d=['url-','ai-chat-resource-load-failed','fetchDocument','_isResourceInContext','addUrlToContext','isCurrentDocumentInContext','_addContextItem','end','_toggleAddCurrentDocumentOptionVisibility','_conversationContextItems','URL','4265oBSvZF','_updateResourceInContextState','isInContext','updateCurrentDocument','version','ai-chat-url-upload-failed','uploadUrl','getSentContextItems','map','filter','label','_getCustomSourcesInitialState','35pCOiVr','code','resourceId','addCurrentDocumentToContext','start','length','size','_connector','sessionId','removeFromContext','text/markdown','contextItemRemoved','startsWith','127544RnyPDx','find','type','current-document','1105854tsyKqJ','_findSourceIdsByResourceId','isReadOnly','error','_mapContextItemToRequestData','TEXT','10vlYuCv','object\x20with\x20content\x20and\x20type\x20properties','content','attributes','MARKDOWN','abortController','text/html','string','files','_convertTextResourceToFile','HTML','files-','data','contextItemAdded','_ongoingUploads','hidden','uploadProgressChanged','FILE','urls','removeSelectionFromContext','getDocument','contextItemLoadingEnded','addSelectionToContext','contextSent','all','isCurrentDocumentInConversation','uploadDocument','stack','document','_startUploadOperation','ai-chat-resource-no-data','ai-chat-context-unsupported-type','file-','loadSourceResources','abort','ai-chat-context-invalid-data','_finishContextItemLoading','populateFromMessage','2DsZtXp','get','init','sourceResourcesLoaded','_pendingContextItems','DOCUMENT','_ongoingUploadOperations','1087226tDyVPS','message','values','getData','ai-chat-document-upload-failed','clearPendingContextItems','delete','text/plain','forEach','sources','ai-chat-source-not-found','enabled','_ownerId','getId','uiId','_addToConversationContextItem','addContextOptionsChanged','name','SELECTION','_config','isHidden','resources','1404469BdUQed','uploadFile','Current\x20document','163143OAUYyB','isSelectionInContext','ai-request-aborted','10052694qoRqyG','284KMdHDG','getResources','push','object','mapContextItemsToRequestData','File','fire','getPendingContextItems','_createContextItemFromContent','set','_addContextOptionsState','from','ai-chat-source-resources-load-failed','selection','resourceStateChanged','_removeContextItem','_setAddContextOptionsDefaultState','addResourceToContext','_finishUploadOperation','addFilesToContext','url','has','addToConversationContext','ai-chat-file-upload-failed'];_0x23d9=function(){return _0x456d7d;};return _0x23d9();}import{CKEditorError as _0xc9a178,ObservableMixin as _0x393ed7,uid as _0x4465ce}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1a5e1a,AIContextTextResourceType as _0x1fe1d7}from'../../aicore/model/aicontext.js';import{escape as _0x15a7bf}from'es-toolkit/compat';import{errorsMap as _0xa71d7e}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x46c5be(0x20a),_0x46c5be(0x1f1),_0x46c5be(0x212),_0x46c5be(0x214),_0x46c5be(0x1fa),_0x46c5be(0x1aa),_0x46c5be(0x196),_0x46c5be(0x1c5),_0x46c5be(0x20d)];export class AIChatContext extends _0x393ed7(){[_0x46c5be(0x1ed)];[_0x46c5be(0x1ad)];[_0x46c5be(0x1a6)];constructor({connector:_0x179590,config:_0x369fd5,ownerId:_0xcbbe1a}){const _0x19be45=_0x46c5be;super(),this[_0x19be45(0x1ed)]=_0x179590,this[_0x19be45(0x1ad)]=_0x369fd5,this[_0x19be45(0x1a6)]=_0xcbbe1a;}[_0x46c5be(0x195)](){const _0x2dd0ab=_0x46c5be;this[_0x2dd0ab(0x197)]=new Map(),this[_0x2dd0ab(0x1d8)]=new Map(),this[_0x2dd0ab(0x20b)]=new Map(),this[_0x2dd0ab(0x199)]=new Map(),this[_0x2dd0ab(0x1c7)]();}[_0x46c5be(0x1be)](){const _0x4aa94a=_0x46c5be;return this[_0x4aa94a(0x197)];}async[_0x46c5be(0x192)](_0x4c5811){const _0x37f998=_0x46c5be,_0x54009a=await this[_0x37f998(0x1bf)](_0x4c5811);return this[_0x37f998(0x1a9)](_0x54009a),_0x37f998(0x1f6)===_0x54009a[_0x37f998(0x1a8)]&&this[_0x37f998(0x1d7)](),_0x54009a;}async[_0x46c5be(0x1bf)](_0x433ebe){const _0x4e22c3=_0x46c5be;if(_0x433ebe[_0x4e22c3(0x1f5)]===_0x1a5e1a[_0x4e22c3(0x198)]){const _0x552a7a=await this[_0x4e22c3(0x1ed)][_0x4e22c3(0x1d1)](this[_0x4e22c3(0x1a6)],_0x433ebe['id'])[_0x4e22c3(0x211)]();return{'id':_0x4e22c3(0x1f6),'uiId':_0x4e22c3(0x1f6),'label':_0x4e22c3(0x1b2),'type':_0x433ebe[_0x4e22c3(0x1f5)],'content':_0x552a7a[_0x4e22c3(0x1ff)],'hidden':this[_0x4e22c3(0x1d8)][_0x4e22c3(0x1cc)](_0x4e22c3(0x1f6)),'version':_0x552a7a[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1de)],'sessionId':_0x552a7a[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1ee)]};}return{'id':_0x433ebe['id'],'uiId':_0x433ebe['id'],'label':_0x433ebe[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e4)]||_0x433ebe[_0x4e22c3(0x1ab)]||_0x433ebe[_0x4e22c3(0x1cb)]||_0x433ebe['id'],'type':_0x433ebe[_0x4e22c3(0x1f5)],..._0x433ebe?.[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e8)]?{'resourceId':_0x433ebe[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e8)]}:{}};}[_0x46c5be(0x1e1)](){const _0x1203a2=_0x46c5be;return new Map(this[_0x1203a2(0x1d8)]);}[_0x46c5be(0x1ef)](_0x502314){const _0x2d3499=_0x46c5be,_0x557594=this[_0x2d3499(0x197)][_0x2d3499(0x194)](_0x502314);_0x557594?.[_0x2d3499(0x1f9)]||this[_0x2d3499(0x1c6)](_0x502314);}[_0x46c5be(0x19f)](){const _0x506843=_0x46c5be;if(0x0===this[_0x506843(0x197)][_0x506843(0x1ec)])return;for(const _0x416307 of this[_0x506843(0x197)][_0x506843(0x19c)]())this[_0x506843(0x1c6)](_0x416307[_0x506843(0x1a8)]);const _0x4e6fb9=this[_0x506843(0x1d8)][_0x506843(0x194)](_0x506843(0x1f6))||this[_0x506843(0x197)][_0x506843(0x194)](_0x506843(0x1f6));_0x4e6fb9&&this[_0x506843(0x1d5)]({..._0x4e6fb9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x46c5be(0x1cd)](_0x381f9b){const _0x400ca3=_0x46c5be;for(const _0x33337d of _0x381f9b[_0x400ca3(0x19c)]())this[_0x400ca3(0x1a9)](_0x33337d);this[_0x400ca3(0x19f)](),this[_0x400ca3(0x1bd)](_0x400ca3(0x214),{'contextItems':Array[_0x400ca3(0x1c2)](this[_0x400ca3(0x1e1)]()[_0x400ca3(0x19c)]())});}[_0x46c5be(0x1d4)](){const _0x2b070d=_0x46c5be;return this[_0x2b070d(0x197)][_0x2b070d(0x1cc)](_0x2b070d(0x1f6));}[_0x46c5be(0x1b4)](){const _0x551ec3=_0x46c5be;return this[_0x551ec3(0x197)][_0x551ec3(0x1cc)](_0x551ec3(0x1c4));}[_0x46c5be(0x216)](){const _0x257fdd=_0x46c5be;return this[_0x257fdd(0x1d8)][_0x257fdd(0x1cc)](_0x257fdd(0x1f6));}static[_0x46c5be(0x1bb)](_0x14a0b2){const _0x2cc0db=_0x46c5be;return Array[_0x2cc0db(0x1c2)](_0x14a0b2[_0x2cc0db(0x19c)]())[_0x2cc0db(0x1e2)](_0x108719=>this[_0x2cc0db(0x1fb)](_0x108719))[_0x2cc0db(0x1e3)](_0x439f26=>null!==_0x439f26);}async[_0x46c5be(0x1ca)](_0x158d4e,_0x2f6fbb,_0x45e3ff=_0x1a5e1a[_0x46c5be(0x20e)]){const _0x476074=_0x46c5be,_0x56070f=_0x476074(0x208)+_0x4465ce();this[_0x476074(0x21a)](_0x56070f);try{await Promise[_0x476074(0x215)](_0x158d4e[_0x476074(0x1e2)](async _0x48ac89=>{const _0x5358d7=_0x476074,_0x48632a=_0x5358d7(0x21d)+_0x4465ce(),_0x50df47=_0x15a7bf(_0x48ac89[_0x5358d7(0x1ab)]);try{this[_0x5358d7(0x1d5)]({'type':_0x45e3ff,'label':_0x2f6fbb?.[_0x5358d7(0x1e4)]||_0x50df47,'uiId':_0x48632a,'resourceId':_0x2f6fbb?.[_0x5358d7(0x1e8)]},!0x0);const _0x30733b=this[_0x5358d7(0x1ed)][_0x5358d7(0x1b1)](this[_0x5358d7(0x1a6)],_0x48ac89,_0x2f6fbb);this[_0x5358d7(0x20b)][_0x5358d7(0x1c0)](_0x48632a,_0x30733b[_0x5358d7(0x202)]);const {id:_0x20abcc}=await _0x30733b[_0x5358d7(0x1a7)]();this[_0x5358d7(0x20b)][_0x5358d7(0x1a0)](_0x48632a),this[_0x5358d7(0x221)]({'type':_0x45e3ff,'id':_0x20abcc,'label':_0x2f6fbb?.[_0x5358d7(0x1e4)]||_0x50df47,'uiId':_0x48632a,'resourceId':_0x2f6fbb?.[_0x5358d7(0x1e8)]},!0x1);}catch(_0x4cab0f){this[_0x5358d7(0x20b)][_0x5358d7(0x1a0)](_0x48632a);if(!(_0x4cab0f instanceof _0xc9a178&&_0x4cab0f[_0x5358d7(0x19b)][_0x5358d7(0x1f2)](_0x5358d7(0x1b5)))){const _0x5a6ded=_0xa71d7e[_0x5358d7(0x194)](_0x4cab0f[_0x5358d7(0x1e7)])||_0x5358d7(0x1ce),_0x4c44af=new _0xc9a178(_0x5a6ded,null,{'fileName':_0x50df47,..._0x4cab0f});_0x4c44af[_0x5358d7(0x218)]=_0x4cab0f[_0x5358d7(0x218)],this[_0x5358d7(0x1bd)](_0x5358d7(0x1fa),{'error':_0x4c44af});}this[_0x5358d7(0x1c6)](_0x48632a);}}));}finally{this[_0x476074(0x1c9)](_0x56070f);}}[_0x46c5be(0x1e9)](_0xc6066c){const _0x3972b7=_0x46c5be;if(this[_0x3972b7(0x1d4)]())return;const _0x8847c9={'type':_0x1a5e1a[_0x3972b7(0x198)],'uiId':_0x3972b7(0x1f6),'label':_0xc6066c,'isReadOnly':this[_0x3972b7(0x1d8)][_0x3972b7(0x1cc)](_0x3972b7(0x1f6)),'hidden':this[_0x3972b7(0x1d8)][_0x3972b7(0x1cc)](_0x3972b7(0x1f6))};this[_0x3972b7(0x1d5)](_0x8847c9);}async[_0x46c5be(0x1dd)](_0x1beaea,_0xddd492,_0x5a139a,_0x381e96){const _0x5a9f8a=_0x46c5be,_0x573595=this[_0x5a9f8a(0x197)][_0x5a9f8a(0x194)](_0x5a9f8a(0x1f6));if(_0x573595&&_0x1beaea){_0x573595[_0x5a9f8a(0x1c4)]=_0x381e96?_0x381e96[_0x5a9f8a(0x1e2)](_0x530879=>({'start':_0x530879[_0x5a9f8a(0x1ea)],'end':_0x530879[_0x5a9f8a(0x1d6)]})):[];try{if(_0x573595[_0x5a9f8a(0x1de)]===_0xddd492)return;const {id:_0x3ceda6}=await this[_0x5a9f8a(0x1ed)][_0x5a9f8a(0x217)](this[_0x5a9f8a(0x1a6)],_0x1beaea,{'version':_0xddd492,'sessionId':_0x5a139a})[_0x5a9f8a(0x1a7)]();_0x573595['id']=_0x3ceda6,_0x573595[_0x5a9f8a(0x1ff)]=_0x1beaea,_0x573595[_0x5a9f8a(0x1de)]=_0xddd492,_0x573595[_0x5a9f8a(0x1ee)]=_0x5a139a;}catch(_0x4798d6){const _0x2781c8=new _0xc9a178(_0x5a9f8a(0x19e),null);_0x2781c8[_0x5a9f8a(0x218)]=_0x4798d6[_0x5a9f8a(0x218)],this[_0x5a9f8a(0x1bd)](_0x5a9f8a(0x1fa),{'error':_0x2781c8});}}}[_0x46c5be(0x213)](_0x4b6c70){const _0x4da661=_0x46c5be;this[_0x4da661(0x1d5)]({'type':_0x1a5e1a[_0x4da661(0x1ac)],'label':_0x4b6c70,'uiId':_0x4da661(0x1c4),'content':_0x4b6c70});}[_0x46c5be(0x210)](){const _0x242c97=_0x46c5be;this[_0x242c97(0x1c6)](_0x242c97(0x1c4));}async[_0x46c5be(0x1d3)](_0x11d018,_0x3247c9){const _0x39d633=_0x46c5be,_0x516897=_0x39d633(0x1cf)+_0x4465ce();this[_0x39d633(0x21a)](_0x516897);const _0x46518d=_0x39d633(0x1cf)+_0x4465ce();try{this[_0x39d633(0x1d5)]({'type':_0x1a5e1a[_0x39d633(0x1d9)],'label':_0x3247c9?.[_0x39d633(0x1e4)]||_0x11d018,'uiId':_0x46518d,'resourceId':_0x3247c9?.[_0x39d633(0x1e8)]},!0x0);const _0x333630=this[_0x39d633(0x1ed)][_0x39d633(0x1e0)](this[_0x39d633(0x1a6)],_0x11d018,_0x3247c9);this[_0x39d633(0x20b)][_0x39d633(0x1c0)](_0x46518d,_0x333630[_0x39d633(0x202)]);const {id:_0x2eaf85}=await _0x333630[_0x39d633(0x1a7)]();this[_0x39d633(0x20b)][_0x39d633(0x1a0)](_0x46518d),this[_0x39d633(0x221)]({'type':_0x1a5e1a[_0x39d633(0x1d9)],'id':_0x2eaf85,'label':_0x3247c9?.[_0x39d633(0x1e4)]||_0x11d018,'uiId':_0x46518d,'resourceId':_0x3247c9?.[_0x39d633(0x1e8)]},!0x1);}catch(_0x472751){this[_0x39d633(0x20b)][_0x39d633(0x1a0)](_0x46518d),(_0x472751[_0x39d633(0x19b)][_0x39d633(0x1f2)](_0x39d633(0x1b5))||this[_0x39d633(0x1bd)](_0x39d633(0x1fa),{'error':new _0xc9a178(_0x39d633(0x1df),this,{'url':_0x11d018,'originalError':_0x472751}),'url':_0x11d018}),this[_0x39d633(0x1c6)](_0x46518d));}finally{this[_0x39d633(0x1c9)](_0x516897);}}async[_0x46c5be(0x21e)](_0x5200be,_0xb2daf9,_0x2aed29){const _0x1399a6=_0x46c5be,_0x44756d=this[_0x1399a6(0x1c1)][_0x1399a6(0x1a3)][_0x1399a6(0x1f4)](_0x17eb79=>_0x17eb79['id']===_0x5200be);if(!_0x44756d)return this[_0x1399a6(0x1bd)](_0x1399a6(0x1fa),{'error':new _0xc9a178(_0x1399a6(0x1a4),this,{'sourceId':_0x5200be}),'sourceId':_0x5200be}),[];try{const _0x1d38e4=(await _0x44756d[_0x1399a6(0x1b8)](_0xb2daf9))[_0x1399a6(0x1e2)](_0x310097=>{const _0x42e87e=_0x1399a6,_0x199fc9=this[_0x42e87e(0x1d2)](_0x310097['id']);return{..._0x310097,'isInContext':_0x199fc9};});return _0x44756d[_0x1399a6(0x1af)]=_0x1d38e4,this[_0x1399a6(0x1bd)](_0x1399a6(0x196),{'sourceId':_0x5200be,'source':_0x44756d,'resources':_0x1d38e4,'uid':_0x2aed29}),_0x1d38e4;}catch(_0x231aa2){return this[_0x1399a6(0x1bd)](_0x1399a6(0x1fa),{'error':new _0xc9a178(_0x1399a6(0x1c3),this,{'sourceId':_0x5200be,'originalError':_0x231aa2}),'sourceId':_0x5200be,'sourceLabel':_0x44756d[_0x1399a6(0x1e4)]}),[];}}async[_0x46c5be(0x1c8)](_0x19cb3b,_0x53a761){const _0x3e5ec8=_0x46c5be;if(this[_0x3e5ec8(0x1d2)](_0x53a761['id']))return;let _0x16c172=_0x53a761[_0x3e5ec8(0x209)];if(!_0x16c172&&_0x19cb3b[_0x3e5ec8(0x19d)])try{_0x16c172=await _0x19cb3b[_0x3e5ec8(0x19d)](_0x53a761['id']);}catch(_0x5c882a){return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x1d0),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'originalError':_0x5c882a}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}if(_0x16c172)switch(_0x53a761[_0x3e5ec8(0x1f5)]){case _0x1a5e1a[_0x3e5ec8(0x1d9)]:if(_0x3e5ec8(0x204)!=typeof _0x16c172)return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x204),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});await this[_0x3e5ec8(0x1d3)](_0x16c172,{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']});break;case _0x1a5e1a[_0x3e5ec8(0x20e)]:if(!(_0x16c172 instanceof File))return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x1bc),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});await this[_0x3e5ec8(0x1ca)]([_0x16c172],{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']});break;case _0x1a5e1a[_0x3e5ec8(0x1fc)]:if(_0x3e5ec8(0x1ba)!=typeof _0x16c172||!(_0x3e5ec8(0x1ff)in _0x16c172)||!(_0x3e5ec8(0x1f5)in _0x16c172))return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x1fe),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});_0x16c172=AIChatContext[_0x3e5ec8(0x206)](_0x16c172,_0x53a761[_0x3e5ec8(0x1e4)]),await this[_0x3e5ec8(0x1ca)]([_0x16c172],{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']},_0x1a5e1a[_0x3e5ec8(0x1fc)]);break;default:this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x21c),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'resourceType':_0x53a761[_0x3e5ec8(0x1f5)]}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}else this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x21b),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}static[_0x46c5be(0x206)](_0x336ad9,_0x3afad1){const _0x1fc829=_0x46c5be;switch(_0x336ad9[_0x1fc829(0x1f5)]){case _0x1fe1d7[_0x1fc829(0x201)]:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x1f0)});case _0x1fe1d7[_0x1fc829(0x207)]:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x203)});default:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x1a1)});}}static[_0x46c5be(0x1fb)](_0x2b6043){const _0x4ccc99=_0x46c5be;switch(_0x2b6043[_0x4ccc99(0x1f5)]){case _0x1a5e1a[_0x4ccc99(0x20e)]:return{'type':_0x1a5e1a[_0x4ccc99(0x20e)],'id':_0x2b6043['id']};case _0x1a5e1a[_0x4ccc99(0x1d9)]:return{'type':_0x1a5e1a[_0x4ccc99(0x1d9)],'id':_0x2b6043['id']};case _0x1a5e1a[_0x4ccc99(0x198)]:return{'type':_0x1a5e1a[_0x4ccc99(0x198)],'id':_0x2b6043['id'],..._0x2b6043[_0x4ccc99(0x1c4)]?.[_0x4ccc99(0x1eb)]&&{'selection':_0x2b6043[_0x4ccc99(0x1c4)]}};case _0x1a5e1a[_0x4ccc99(0x1fc)]:return{'type':_0x1a5e1a[_0x4ccc99(0x20e)],'id':_0x2b6043['id']};default:return null;}}[_0x46c5be(0x1d5)](_0x2d576a,_0x1d9366=!0x1){const _0x350bbe=_0x46c5be;if(this[_0x350bbe(0x197)][_0x350bbe(0x1c0)](_0x2d576a[_0x350bbe(0x1a8)],_0x2d576a),_0x2d576a[_0x350bbe(0x20c)]||this[_0x350bbe(0x1bd)](_0x350bbe(0x20a),{'contextItem':_0x2d576a,'isLoading':_0x1d9366}),_0x350bbe(0x1f6)===_0x2d576a[_0x350bbe(0x1a8)]&&this[_0x350bbe(0x1d7)](),_0x2d576a[_0x350bbe(0x1e8)]){const _0x28b803=this[_0x350bbe(0x1f8)](_0x2d576a[_0x350bbe(0x1e8)]);_0x28b803&&_0x28b803[_0x350bbe(0x1a2)](_0x5ce92b=>{const _0x3b4211=_0x350bbe;this[_0x3b4211(0x1db)](_0x5ce92b,_0x2d576a[_0x3b4211(0x1e8)],!0x0);});}}[_0x46c5be(0x1c6)](_0x22277f){const _0x357696=_0x46c5be,_0x506794=this[_0x357696(0x197)][_0x357696(0x194)](_0x22277f),_0x2740a4=this[_0x357696(0x20b)][_0x357696(0x194)](_0x22277f);if(_0x2740a4&&(_0x2740a4[_0x357696(0x21f)](),this[_0x357696(0x20b)][_0x357696(0x1a0)](_0x22277f)),_0x506794?.[_0x357696(0x1e8)]){const _0x2d7b47=this[_0x357696(0x1f8)](_0x506794[_0x357696(0x1e8)]);_0x2d7b47&&_0x2d7b47[_0x357696(0x1a2)](_0xd7ec2e=>{const _0x1a76e3=_0x357696;this[_0x1a76e3(0x1db)](_0xd7ec2e,_0x506794[_0x1a76e3(0x1e8)],!0x1);});}this[_0x357696(0x197)][_0x357696(0x1a0)](_0x22277f),this[_0x357696(0x1bd)](_0x357696(0x1f1),{'uiId':_0x22277f,'type':_0x506794?.[_0x357696(0x1f5)]}),_0x357696(0x1f6)===_0x22277f&&this[_0x357696(0x1d7)]();}[_0x46c5be(0x221)](_0xc30b83,_0x326e4a){const _0x20ea2c=_0x46c5be;if(this[_0x20ea2c(0x197)][_0x20ea2c(0x1cc)](_0xc30b83[_0x20ea2c(0x1a8)])&&(this[_0x20ea2c(0x197)][_0x20ea2c(0x1c0)](_0xc30b83[_0x20ea2c(0x1a8)],_0xc30b83),this[_0x20ea2c(0x1bd)](_0x20ea2c(0x212),{'contextItem':_0xc30b83,'isLoading':_0x326e4a}),_0xc30b83[_0x20ea2c(0x1e8)])){const _0x10fa5f=this[_0x20ea2c(0x1f8)](_0xc30b83[_0x20ea2c(0x1e8)]);_0x10fa5f&&_0x10fa5f[_0x20ea2c(0x1a2)](_0x30aaae=>{const _0x4043d6=_0x20ea2c;this[_0x4043d6(0x1db)](_0x30aaae,_0xc30b83[_0x4043d6(0x1e8)],!0x0);});}}[_0x46c5be(0x1a9)](_0x3615cd){const _0x528363=_0x46c5be;this[_0x528363(0x1d8)][_0x528363(0x1c0)](_0x3615cd[_0x528363(0x1a8)],_0x3615cd);}[_0x46c5be(0x1c7)](){const _0x450093=_0x46c5be;this[_0x450093(0x1c1)]={'document':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x219)]?.[_0x450093(0x1a5)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x20f)]?.[_0x450093(0x1a5)]},'files':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x205)]?.[_0x450093(0x1a5)]},'sources':this[_0x450093(0x1e5)]()},this[_0x450093(0x1bd)](_0x450093(0x1aa),{'options':this[_0x450093(0x1c1)]});}[_0x46c5be(0x1e5)](){const _0x47c0e8=_0x46c5be;return this[_0x47c0e8(0x1ad)]?.[_0x47c0e8(0x1a3)]?.[_0x47c0e8(0x1e2)](_0x641a6c=>({..._0x641a6c,'resources':[]}))??[];}[_0x46c5be(0x1d7)](){const _0x2e073e=_0x46c5be,_0x32447f=this[_0x2e073e(0x1d4)]()||this[_0x2e073e(0x216)]();this[_0x2e073e(0x1c1)][_0x2e073e(0x219)][_0x2e073e(0x1ae)]=_0x32447f,this[_0x2e073e(0x1bd)](_0x2e073e(0x1aa),{'options':this[_0x2e073e(0x1c1)]});}[_0x46c5be(0x1d2)](_0x1e0236){const _0x10f7fc=_0x46c5be;for(const _0x4acb0f of this[_0x10f7fc(0x197)][_0x10f7fc(0x19c)]())if(_0x4acb0f[_0x10f7fc(0x1e8)]===_0x1e0236)return!0x0;for(const _0x39b80b of this[_0x10f7fc(0x1d8)][_0x10f7fc(0x19c)]())if(_0x39b80b[_0x10f7fc(0x1e8)]===_0x1e0236)return!0x0;return!0x1;}[_0x46c5be(0x1f8)](_0x4bf2e4){const _0x553e79=_0x46c5be,_0x559f13=[];for(const _0x2d7518 of this[_0x553e79(0x1c1)][_0x553e79(0x1a3)]){_0x2d7518[_0x553e79(0x1af)][_0x553e79(0x1f4)](_0x2ee3f9=>_0x2ee3f9['id']===_0x4bf2e4)&&_0x559f13[_0x553e79(0x1b9)](_0x2d7518['id']);}return 0x0===_0x559f13[_0x553e79(0x1eb)]?null:_0x559f13;}[_0x46c5be(0x1db)](_0x5ae3e1,_0x2373d7,_0x245c56){const _0x4ec466=_0x46c5be,_0x10bff3=this[_0x4ec466(0x1c1)][_0x4ec466(0x1a3)][_0x4ec466(0x1f4)](_0x499d0e=>_0x499d0e['id']===_0x5ae3e1);if(!_0x10bff3)return;const _0x3b26cb=_0x10bff3[_0x4ec466(0x1af)][_0x4ec466(0x1f4)](_0x3067cb=>_0x3067cb['id']===_0x2373d7);_0x3b26cb&&(_0x3b26cb[_0x4ec466(0x1dc)]=_0x245c56,this[_0x4ec466(0x1bd)](_0x4ec466(0x1c5),{'sourceId':_0x5ae3e1,'resourceId':_0x2373d7,'isInContext':_0x245c56}));}[_0x46c5be(0x21a)](_0x1da675){const _0x2363d8=_0x46c5be;this[_0x2363d8(0x199)][_0x2363d8(0x1c0)](_0x1da675,!0x0),this[_0x2363d8(0x199)][_0x2363d8(0x1ec)]&&this[_0x2363d8(0x1bd)](_0x2363d8(0x20d),{'isUploadInProgress':!0x0});}[_0x46c5be(0x1c9)](_0x948abc){const _0xfe4a78=_0x46c5be;this[_0xfe4a78(0x199)][_0xfe4a78(0x1a0)](_0x948abc),0x0===this[_0xfe4a78(0x199)][_0xfe4a78(0x1ec)]&&this[_0xfe4a78(0x1bd)](_0xfe4a78(0x20d),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a8a96=_0x1b7a;(function(_0x94af9c,_0x43d355){const _0x1a5f8e=_0x1b7a,_0x11dc95=_0x94af9c();while(!![]){try{const _0x18595f=parseInt(_0x1a5f8e(0x1f2))/0x1+-parseInt(_0x1a5f8e(0x1fa))/0x2+parseInt(_0x1a5f8e(0x1ed))/0x3+-parseInt(_0x1a5f8e(0x1bf))/0x4+parseInt(_0x1a5f8e(0x1d8))/0x5*(parseInt(_0x1a5f8e(0x198))/0x6)+parseInt(_0x1a5f8e(0x194))/0x7+-parseInt(_0x1a5f8e(0x1cd))/0x8;if(_0x18595f===_0x43d355)break;else _0x11dc95['push'](_0x11dc95['shift']());}catch(_0x502e69){_0x11dc95['push'](_0x11dc95['shift']());}}}(_0x290e,0x6ba46));import{CKEditorError as _0x1249ee,EmitterMixin as _0x4ce354,logWarning as _0x5c35ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1a4723}from'../../aicore/model/aiinteraction.js';function _0x1b7a(_0x3954ba,_0x52be4b){const _0x290ed8=_0x290e();return _0x1b7a=function(_0x1b7a43,_0x26abd9){_0x1b7a43=_0x1b7a43-0x194;let _0x3353d3=_0x290ed8[_0x1b7a43];return _0x3353d3;},_0x1b7a(_0x3954ba,_0x52be4b);}function _0x290e(){const _0x3de7f1=['find','isSelectionInContext','push','toggleWebSearch','ai-chat-conversation-already-started','ai-chat-conversation-start-failed','attributes','getPendingContextItems','ai-chat-conversation-set-model-null','conversationInitialized','2063511FonlQy','fetchConversation','createInteraction','getAll','currentReply','234274mHBFDz','text-delta','assistant','selectedModel','content','type','text','setModel','331854FIhTWC','connector','ai-chat-handle-user-interaction-already-in-progress','addSelectionToContext','capabilities','isAvailable','populateFromMessage','getAvailableModels','appendContent','sessionId','fetchConversationMessages','5222231PtlKIt','start','interactionCreated','ai-chat-conversation-init-from-id-failed','6FeivAn','selectedModelId','message','ai-chat-conversation-init-failed','removeInteraction','getDocumentContext','delegate','toLowerCase','prompt','toggleReasoning','lastInteraction','chatContext','stack','isStarted','quickActionData','reset','getMessages','removeFromContext','getModel','group','addUrlToContext','interactions','set','startConversation','ai-chat-conversation-set-model-not-available','contextItems','chatModels','addResourceToContext','load','options','role','fire','currentInteraction','handleUserInteraction','conversationStarted','_extractContextItems','indexOf','addCurrentDocumentToContext','isCurrentDocumentInContext','819236fEgbAA','removeSelectionFromContext','webSearch','user','addFilesToContext','length','ai-chat-conversation-start-no-model-selected','getCapabilitiesConfig','splice','updateCurrentDocument','modification-delta','getEditor','destroy','addToConversationContext','12880456pDWSvC','stop','updateCurrentDocumentInContext','chatCapabilities','setConversationTitle','init','createReply','model','modelSelected','title','getConversation','3767755VrLUds','hasOwn','ai-chat-handle-user-conversation-not-initialized','reasoning','isCurrentDocumentInConversation','_processMessagesToInteractions','error','getCurrentDocumentContext','conversationId','getInteraction','loadSourceResources'];_0x290e=function(){return _0x3de7f1;};return _0x290e();}import{AIChatContext as _0x2c93d1,AI_CONTEXT_MODEL_EVENT_NAMES as _0xda3ad1}from'./aichatcontext.js';import{AICapabilities as _0x1652bd,CAPABILITIES_MODEL_EVENT_NAMES as _0x14e4e9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f26e8}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ce354(){['id'];[_0x2a8a96(0x1a5)]=!0x1;[_0x2a8a96(0x1ad)]=[];[_0x2a8a96(0x1b8)];[_0x2a8a96(0x1f5)];[_0x2a8a96(0x1fb)];[_0x2a8a96(0x1b5)];constructor(_0xf111e4){const _0x16ad10=_0x2a8a96;super(),this[_0x16ad10(0x1b5)]=_0xf111e4,this[_0x16ad10(0x1fb)]=_0xf111e4[_0x16ad10(0x1fb)],this[_0x16ad10(0x1b2)]=_0xf111e4[_0x16ad10(0x1b2)],this['id']=_0xf111e4[_0x16ad10(0x1e0)];}async[_0x2a8a96(0x1d2)](_0x18ffa7){const _0x4ae5a7=_0x2a8a96;try{this[_0x4ae5a7(0x1a3)]=new _0x2c93d1({'connector':this[_0x4ae5a7(0x1fb)],'config':_0x18ffa7,'ownerId':this['id']}),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x19e)](..._0xda3ad1)['to'](this),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x1d2)](),this[_0x4ae5a7(0x1d0)]=new _0x1652bd(),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x19e)](..._0x14e4e9)['to'](this),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x1d2)]();const _0xd19988=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x201)]();this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1ec),{'availableModels':_0xd19988});const _0xf26ae5=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x1aa)](this[_0x4ae5a7(0x1b5)][_0x4ae5a7(0x199)]);_0xf26ae5&&await this[_0x4ae5a7(0x1f9)](_0xf26ae5);}catch(_0x42cb19){const _0x47eba3=new _0x1249ee(_0x4ae5a7(0x19b),null,{'message':_0x42cb19[_0x4ae5a7(0x19a)]});_0x47eba3[_0x4ae5a7(0x1a4)]=_0x42cb19[_0x4ae5a7(0x1a4)],this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1de),{'error':_0x47eba3});}}async[_0x2a8a96(0x195)](){const _0x3ca595=_0x2a8a96;if(this[_0x3ca595(0x1a5)])throw new _0x1249ee(_0x3ca595(0x1e7),null,{'conversation':this});if(!this[_0x3ca595(0x1f5)])throw new _0x1249ee(_0x3ca595(0x1c5),null,{'conversation':this});try{const {id:_0x5236ae}=await this[_0x3ca595(0x1fb)][_0x3ca595(0x1af)](this['id'],this[_0x3ca595(0x1b5)][_0x3ca595(0x1ab)])[_0x3ca595(0x1d7)]();this['id']=_0x5236ae,this[_0x3ca595(0x1a5)]=!0x0,this[_0x3ca595(0x1b7)](_0x3ca595(0x1ba),{'conversationId':this['id'],'selectedModel':this[_0x3ca595(0x1f5)]});}catch(_0x2df490){const _0x253bae=new _0x1249ee(_0x3ca595(0x1e8),null,{'message':_0x2df490[_0x3ca595(0x19a)]});_0x253bae[_0x3ca595(0x1a4)]=_0x2df490[_0x3ca595(0x1a4)],this[_0x3ca595(0x1b7)](_0x3ca595(0x1de),{'error':_0x253bae});}}async[_0x2a8a96(0x1b4)](_0x40d7b7,_0x333798){const _0x51426b=_0x2a8a96;try{const _0x20dd61=await this[_0x51426b(0x1fb)][_0x51426b(0x1ee)](_0x40d7b7)[_0x51426b(0x1d7)](),_0x4f0b10=await this[_0x51426b(0x1fb)][_0x51426b(0x204)](_0x40d7b7)[_0x51426b(0x1a8)](),_0x5d3345=_0x4f0b10[0x0][_0x51426b(0x1d4)];this[_0x51426b(0x1a5)]=!0x0,this['id']=_0x20dd61['id'],_0x51426b(0x1d6)in _0x20dd61?this[_0x51426b(0x1b7)](_0x51426b(0x1d1),_0x20dd61[_0x51426b(0x1d6)],!0x0):this[_0x51426b(0x1b7)](_0x51426b(0x1d1),'',!0x0);const _0x5c1c50=(await this[_0x51426b(0x1b2)][_0x51426b(0x1f0)]())[_0x51426b(0x1e3)](_0x2b265f=>_0x2b265f['id'][_0x51426b(0x19f)]()===_0x5d3345[_0x51426b(0x19f)]());return this[_0x51426b(0x1f5)]=_0x5c1c50,this[_0x51426b(0x1b7)](_0x51426b(0x1d5),{'selectedModel':_0x5c1c50,'isDisabled':!0x0}),await this[_0x51426b(0x1dd)](_0x4f0b10,_0x333798,_0x5d3345),this[_0x51426b(0x1b8)]=void 0x0,this;}catch(_0x19f896){const _0x48deae=new _0x1249ee(_0x51426b(0x197),null,{'message':_0x19f896[_0x51426b(0x19a)],'conversationId':_0x40d7b7});throw _0x48deae[_0x51426b(0x1a4)]=_0x19f896[_0x51426b(0x1a4)],this[_0x51426b(0x1b7)](_0x51426b(0x1de),{'error':_0x48deae}),_0x48deae;}}async[_0x2a8a96(0x1dd)](_0x51e7fa,_0x8f2687,_0x7d7494){const _0x2a21fc=_0x2a8a96;let _0x1db313;for(const _0x321ad9 of _0x51e7fa)if(_0x2a21fc(0x1c2)===_0x321ad9[_0x2a21fc(0x1b6)]){const _0x3dfbe5=await this[_0x2a21fc(0x1bb)](_0x321ad9),_0x23d24a={'isReasoningEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1db)),'isWebSearchEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1c1))};_0x1db313=this[_0x2a21fc(0x1ef)]({'userMessage':_0x321ad9[_0x2a21fc(0x1a0)],'contextItems':_0x3dfbe5,'capabilities':_0x23d24a,'modelId':_0x7d7494,'quickActionData':_0x321ad9[_0x2a21fc(0x1e9)]?.[_0x2a21fc(0x1a6)]}),this[_0x2a21fc(0x1b8)]=_0x1db313,this[_0x2a21fc(0x1a3)][_0x2a21fc(0x1cc)](this[_0x2a21fc(0x1b8)][_0x2a21fc(0x1b1)]);}else{if(_0x2a21fc(0x1f4)===_0x321ad9[_0x2a21fc(0x1b6)]&&_0x1db313)for(const _0x39bee7 of _0x321ad9[_0x2a21fc(0x1f6)]){const _0x13c342=_0x2a21fc(0x1f8)===_0x39bee7[_0x2a21fc(0x1f7)]?_0x2a21fc(0x1f3):_0x2a21fc(0x1c9),_0x13f615=_0x1db313[_0x2a21fc(0x19d)]()?.[_0x2a21fc(0x203)]!==_0x8f2687;_0x1db313[_0x2a21fc(0x1f1)]=_0x1db313[_0x2a21fc(0x1d3)]({'type':_0x13c342,'isDone':!0x0,'interactionId':_0x1db313['id'],'areActionsDisabled':_0x13f615}),_0x1db313[_0x2a21fc(0x1f1)][_0x2a21fc(0x202)](_0x39bee7[_0x2a21fc(0x1f6)]);}}}async[_0x2a8a96(0x1bb)](_0x3558d0){const _0x28c90e=_0x2a8a96,_0x2d44c0=new Map();if(!_0x3558d0[_0x28c90e(0x1f6)])return _0x2d44c0;for(const _0x495c24 of _0x3558d0[_0x28c90e(0x1f6)]){const _0x3acc07=await this[_0x28c90e(0x1a3)][_0x28c90e(0x200)](_0x495c24);_0x3acc07&&_0x2d44c0[_0x28c90e(0x1ae)](_0x3acc07['id'],_0x3acc07);}return _0x2d44c0;}async[_0x2a8a96(0x1b9)]({userMessage:_0x2fde5e,quickActionData:_0x62dd37}){const _0x183bd9=_0x2a8a96;if(!this[_0x183bd9(0x1a5)])throw new _0x1249ee(_0x183bd9(0x1da),null,{'conversation':this});if(this[_0x183bd9(0x1b8)])throw new _0x1249ee(_0x183bd9(0x1fc),null,{'conversation':this});try{const _0x7de25f=this[_0x183bd9(0x1a3)][_0x183bd9(0x1ea)](),_0x238bf2=this[_0x183bd9(0x1d0)][_0x183bd9(0x1c6)](),_0x1aa2dd=this[_0x183bd9(0x1f5)]['id'];this[_0x183bd9(0x1b8)]=this[_0x183bd9(0x1ef)]({'userMessage':_0x2fde5e,'contextItems':_0x7de25f,'capabilities':_0x238bf2,'modelId':_0x1aa2dd,'quickActionData':_0x62dd37}),await this[_0x183bd9(0x1b8)][_0x183bd9(0x195)](),this[_0x183bd9(0x1a3)][_0x183bd9(0x1cc)](this[_0x183bd9(0x1b8)][_0x183bd9(0x1b1)]);}catch(_0x2caf3b){this[_0x183bd9(0x1b7)](_0x183bd9(0x1de),{'interactionId':this[_0x183bd9(0x1b8)]?this[_0x183bd9(0x1b8)]['id']:void 0x0,'error':_0x2caf3b});}finally{this[_0x183bd9(0x1b8)]?.[_0x183bd9(0x1ce)](),this[_0x183bd9(0x1b8)]=void 0x0;}}[_0x2a8a96(0x1ef)]({userMessage:_0x194da6,contextItems:_0x1ef598,capabilities:_0x172ce3,modelId:_0x52e756,quickActionData:_0xeba51e}){const _0x4a5c37=_0x2a8a96,_0x444c34=new _0x5f26e8({'userMessage':_0x194da6,'contextItems':_0x1ef598,'capabilities':_0x172ce3,'conversationId':this['id'],'connector':this[_0x4a5c37(0x1fb)],'editor':this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)]&&this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)](),'model':_0x52e756,'quickActionData':_0xeba51e});return _0x444c34[_0x4a5c37(0x19e)](..._0x1a4723)['to'](this),this[_0x4a5c37(0x1ad)][_0x4a5c37(0x1e5)](_0x444c34),this[_0x4a5c37(0x1b7)](_0x4a5c37(0x196),_0x444c34),_0x444c34;}[_0x2a8a96(0x1e1)](_0x1030c7){const _0x388fb8=_0x2a8a96;return this[_0x388fb8(0x1ad)][_0x388fb8(0x1e3)](_0x3daae2=>_0x3daae2['id']===_0x1030c7);}[_0x2a8a96(0x19c)](_0x19997f){const _0xbdfce1=_0x2a8a96,_0x250ac4=this[_0xbdfce1(0x1e1)](_0x19997f);_0x250ac4&&(_0x250ac4[_0xbdfce1(0x1cb)](),this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1c7)](this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1bc)](_0x250ac4),0x1));}get[_0x2a8a96(0x1a2)](){const _0x371c69=_0x2a8a96;return this[_0x371c69(0x1ad)][this[_0x371c69(0x1ad)][_0x371c69(0x1c4)]-0x1];}[_0x2a8a96(0x1bd)](_0x4b6dec){const _0x4e9285=_0x2a8a96;this[_0x4e9285(0x1a3)][_0x4e9285(0x1bd)](_0x4b6dec);}async[_0x2a8a96(0x1cf)]({content:_0x2f1045,version:_0x14f589,sessionId:_0x48a744,selections:_0x2744a7}){const _0x1bfc81=_0x2a8a96;await this[_0x1bfc81(0x1a3)][_0x1bfc81(0x1c8)](_0x2f1045,_0x14f589,_0x48a744,_0x2744a7);}[_0x2a8a96(0x1df)](){const _0x54f8ac=_0x2a8a96;return this[_0x54f8ac(0x1b8)]?.[_0x54f8ac(0x19d)]()?.[_0x54f8ac(0x1f6)]||'';}[_0x2a8a96(0x1fd)](_0x2bf77e){const _0x39e136=_0x2a8a96;this[_0x39e136(0x1a3)][_0x39e136(0x1fd)](_0x2bf77e);}[_0x2a8a96(0x1c0)](){const _0x116cbb=_0x2a8a96;this[_0x116cbb(0x1a3)][_0x116cbb(0x1c0)]();}[_0x2a8a96(0x1c3)](_0x4533bb){const _0x1beae5=_0x2a8a96;this[_0x1beae5(0x1a3)][_0x1beae5(0x1c3)](_0x4533bb);}[_0x2a8a96(0x1ac)](_0x36ae0f){const _0x5e869d=_0x2a8a96;this[_0x5e869d(0x1a3)][_0x5e869d(0x1ac)](_0x36ae0f);}[_0x2a8a96(0x1b3)](_0x5ce858,_0x2af263){const _0xfb2193=_0x2a8a96;this[_0xfb2193(0x1a3)][_0xfb2193(0x1b3)](_0x5ce858,_0x2af263);}[_0x2a8a96(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0){const _0x3c6a01=_0x2a8a96;return this[_0x3c6a01(0x1a3)][_0x3c6a01(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0);}[_0x2a8a96(0x1a9)](_0x33f051){const _0x63e33a=_0x2a8a96;this[_0x63e33a(0x1a3)][_0x63e33a(0x1a9)](_0x33f051);}[_0x2a8a96(0x1e6)](){const _0x48d1cc=_0x2a8a96;this[_0x48d1cc(0x1d0)][_0x48d1cc(0x1e6)]();}[_0x2a8a96(0x1a1)](){const _0x50cb7f=_0x2a8a96;this[_0x50cb7f(0x1d0)][_0x50cb7f(0x1a1)]();}[_0x2a8a96(0x1be)](){const _0x40d267=_0x2a8a96;return this[_0x40d267(0x1a3)][_0x40d267(0x1be)]();}[_0x2a8a96(0x1dc)](){const _0x2263c0=_0x2a8a96;return this[_0x2263c0(0x1a3)][_0x2263c0(0x1dc)]();}[_0x2a8a96(0x1e4)](){const _0x1e8d06=_0x2a8a96;return this[_0x1e8d06(0x1a3)][_0x1e8d06(0x1e4)]();}async[_0x2a8a96(0x1f9)](_0x5b8abd){const _0x36e907=_0x2a8a96;_0x5b8abd?!0x1===await this[_0x36e907(0x1b2)][_0x36e907(0x1ff)](_0x5b8abd)&&(_0x5c35ac(_0x36e907(0x1b0),{'conversation':this,'model':_0x5b8abd}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]):(_0x5c35ac(_0x36e907(0x1eb),{'conversation':this}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]),_0x5b8abd['id']!==this[_0x36e907(0x1f5)]?.['id']&&(this[_0x36e907(0x1f5)]=_0x5b8abd,this[_0x36e907(0x1d0)][_0x36e907(0x1a7)](),this[_0x36e907(0x1b7)](_0x36e907(0x1d5),{'selectedModel':_0x5b8abd}));}}
23
+ const _0x10e842=_0x2a5f;function _0x2a5f(_0x31616f,_0x2c2a18){const _0x21b0c6=_0x21b0();return _0x2a5f=function(_0x2a5f60,_0x25aad9){_0x2a5f60=_0x2a5f60-0x12c;let _0xb8c45d=_0x21b0c6[_0x2a5f60];return _0xb8c45d;},_0x2a5f(_0x31616f,_0x2c2a18);}(function(_0x24695f,_0x1303dc){const _0x53c1c0=_0x2a5f,_0x14099b=_0x24695f();while(!![]){try{const _0x17c595=-parseInt(_0x53c1c0(0x139))/0x1+parseInt(_0x53c1c0(0x145))/0x2+parseInt(_0x53c1c0(0x18d))/0x3*(-parseInt(_0x53c1c0(0x187))/0x4)+parseInt(_0x53c1c0(0x173))/0x5+-parseInt(_0x53c1c0(0x14b))/0x6*(parseInt(_0x53c1c0(0x160))/0x7)+-parseInt(_0x53c1c0(0x158))/0x8*(parseInt(_0x53c1c0(0x16d))/0x9)+parseInt(_0x53c1c0(0x157))/0xa;if(_0x17c595===_0x1303dc)break;else _0x14099b['push'](_0x14099b['shift']());}catch(_0x546dfc){_0x14099b['push'](_0x14099b['shift']());}}}(_0x21b0,0x2ad0c));import{CKEditorError as _0x356f02,EmitterMixin as _0x4b0db7,logWarning as _0x1cc3f5}from'ckeditor5/src/utils.js';function _0x21b0(){const _0x430e62=['chatCapabilities','model','length','setModel','1540NJLTml','addCurrentDocumentToContext','role','getMessages','updateCurrentDocumentInContext','selectedModel','ai-chat-conversation-start-no-model-selected','modification-delta','removeFromContext','stack','interactionCreated','lastInteraction','isCurrentDocumentInConversation','10107Nutpuw','user','find','getInteraction','setConversationTitle','webSearch','259520RguIKj','chatModels','isAvailable','ai-chat-handle-user-interaction-start-failed','_processMessagesToInteractions','modelSelected','assistant','chatContext','handleUserInteraction','set','conversationStarted','getAll','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-already-started','hasOwn','ai-chat-conversation-init-from-id-failed','group','removeInteraction','populateFromMessage','conversationId','476CPJRfh','isSelectionInContext','getDocumentContext','getCurrentDocumentContext','text','addFilesToContext','8841MWCdqi','ai-chat-conversation-set-model-not-available','loadSourceResources','sessionId','getConversation','getPendingContextItems','code','fetchConversationMessages','load','message','selectedModelId','ai-chat-conversation-set-model-null','text-delta','getEditor','getCapabilitiesConfig','title','stop','delegate','ai-chat-conversation-start-failed','isCurrentDocumentInContext','fetchConversation','removeSelectionFromContext','push','fire','createInteraction','getAvailableModels','destroy','createReply','connector','appendContent','addResourceToContext','indexOf','ai-chat-conversation-init-failed','conversationInitialized','348466VZfpzY','ai-chat-handle-user-interaction-already-in-progress','splice','prompt','reset','error','isStarted','interactions','currentInteraction','addToConversationContext','currentReply','toggleWebSearch','651242kJGOPT','_extractContextItems','capabilities','addSelectionToContext','init','toggleReasoning','2508bKnRGK','reasoning','addUrlToContext','contextItems','start','startConversation','updateCurrentDocument','quickActionData','toLowerCase','type','get','getModel','8674700BCdJzU','1984gawCSJ','attributes','options','content'];_0x21b0=function(){return _0x430e62;};return _0x21b0();}import{AI_MODEL_EVENT_NAMES as _0x5f499c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x51dfb8,AI_CONTEXT_MODEL_EVENT_NAMES as _0xfcec51}from'./aichatcontext.js';import{AICapabilities as _0x36aa67,CAPABILITIES_MODEL_EVENT_NAMES as _0x10ce85}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x49ef6f}from'./aichatinteraction.js';import{errorsMap as _0x396af4}from'../../errorsmap.js';export class AIChatConversation extends _0x4b0db7(){['id'];[_0x10e842(0x13f)]=!0x1;[_0x10e842(0x140)]=[];[_0x10e842(0x141)];[_0x10e842(0x165)];[_0x10e842(0x133)];[_0x10e842(0x15a)];constructor(_0x43c6cf){const _0xfd0f40=_0x10e842;super(),this[_0xfd0f40(0x15a)]=_0x43c6cf,this[_0xfd0f40(0x133)]=_0x43c6cf[_0xfd0f40(0x133)],this[_0xfd0f40(0x174)]=_0x43c6cf[_0xfd0f40(0x174)],this['id']=_0x43c6cf[_0xfd0f40(0x186)];}async[_0x10e842(0x149)](_0x37a893){const _0xde780f=_0x10e842;try{this[_0xde780f(0x17a)]=new _0x51dfb8({'connector':this[_0xde780f(0x133)],'config':_0x37a893,'ownerId':this['id']}),this[_0xde780f(0x17a)][_0xde780f(0x19e)](..._0xfcec51)['to'](this),this[_0xde780f(0x17a)][_0xde780f(0x149)](),this[_0xde780f(0x15c)]=new _0x36aa67(),this[_0xde780f(0x15c)][_0xde780f(0x19e)](..._0x10ce85)['to'](this),this[_0xde780f(0x15c)][_0xde780f(0x149)]();const _0x3a23ff=await this[_0xde780f(0x174)][_0xde780f(0x130)]();this[_0xde780f(0x12e)](_0xde780f(0x138),{'availableModels':_0x3a23ff});const _0x894af0=await this[_0xde780f(0x174)][_0xde780f(0x156)](this[_0xde780f(0x15a)][_0xde780f(0x197)]);_0x894af0&&await this[_0xde780f(0x15f)](_0x894af0);}catch(_0x193645){const _0xa5d6c3=new _0x356f02(_0xde780f(0x137),null,{'message':_0x193645[_0xde780f(0x196)]||_0x193645});_0xa5d6c3[_0xde780f(0x169)]=_0x193645[_0xde780f(0x169)],this[_0xde780f(0x12e)](_0xde780f(0x13e),{'error':_0xa5d6c3});}}async[_0x10e842(0x14f)](){const _0x2f80e3=_0x10e842;if(this[_0x2f80e3(0x13f)])throw new _0x356f02(_0x2f80e3(0x180),null,{'conversation':this});if(!this[_0x2f80e3(0x165)])throw new _0x356f02(_0x2f80e3(0x166),null,{'conversation':this});try{const {id:_0x121ed5}=await this[_0x2f80e3(0x133)][_0x2f80e3(0x150)](this['id'],this[_0x2f80e3(0x15a)][_0x2f80e3(0x183)])[_0x2f80e3(0x191)]();this['id']=_0x121ed5,this[_0x2f80e3(0x13f)]=!0x0,this[_0x2f80e3(0x12e)](_0x2f80e3(0x17d),{'conversationId':this['id'],'selectedModel':this[_0x2f80e3(0x165)]});}catch(_0x23a1c0){const _0x3a0cd4=new _0x356f02(_0x2f80e3(0x19f),null,{'message':_0x23a1c0[_0x2f80e3(0x196)],'conversationId':this['id']});throw _0x3a0cd4[_0x2f80e3(0x169)]=_0x23a1c0[_0x2f80e3(0x169)],this[_0x2f80e3(0x12e)](_0x2f80e3(0x13e),{'error':_0x3a0cd4}),_0x3a0cd4;}}async[_0x10e842(0x195)](_0x51cbbd,_0x2d18b7){const _0x365697=_0x10e842;try{const _0x21ff53=await this[_0x365697(0x133)][_0x365697(0x1a1)](_0x51cbbd)[_0x365697(0x191)](),_0x1cc0b0=await this[_0x365697(0x133)][_0x365697(0x194)](_0x51cbbd)[_0x365697(0x163)](),_0x1dcb83=_0x1cc0b0[0x0][_0x365697(0x15d)];this[_0x365697(0x13f)]=!0x0,this['id']=_0x21ff53['id'],_0x365697(0x19c)in _0x21ff53?this[_0x365697(0x12e)](_0x365697(0x171),_0x21ff53[_0x365697(0x19c)],!0x0):this[_0x365697(0x12e)](_0x365697(0x171),'',!0x0);const _0x23ec31=(await this[_0x365697(0x174)][_0x365697(0x17e)]())[_0x365697(0x16f)](_0x34337b=>_0x34337b['id'][_0x365697(0x153)]()===_0x1dcb83[_0x365697(0x153)]());return this[_0x365697(0x165)]=_0x23ec31,this[_0x365697(0x12e)](_0x365697(0x178),{'selectedModel':_0x23ec31,'isDisabled':!0x0}),await this[_0x365697(0x177)](_0x1cc0b0,_0x2d18b7,_0x1dcb83),this[_0x365697(0x141)]=void 0x0,this;}catch(_0x577d5b){const _0x54745f=new _0x356f02(_0x365697(0x182),null,{'message':_0x577d5b[_0x365697(0x196)],'conversationId':_0x51cbbd});throw _0x54745f[_0x365697(0x169)]=_0x577d5b[_0x365697(0x169)],this[_0x365697(0x12e)](_0x365697(0x13e),{'error':_0x54745f}),_0x54745f;}}async[_0x10e842(0x177)](_0x1c19e6,_0x2e6c82,_0x3a1b51){const _0x184c08=_0x10e842;let _0x16551d;for(const _0x265b28 of _0x1c19e6)if(_0x184c08(0x16e)===_0x265b28[_0x184c08(0x162)]){const _0x2b6593=await this[_0x184c08(0x146)](_0x265b28),_0x2547ad={'isReasoningEnabled':Object[_0x184c08(0x181)](_0x265b28[_0x184c08(0x147)],_0x184c08(0x14c)),'isWebSearchEnabled':Object[_0x184c08(0x181)](_0x265b28[_0x184c08(0x147)],_0x184c08(0x172))};_0x16551d=this[_0x184c08(0x12f)]({'userMessage':_0x265b28[_0x184c08(0x13c)],'contextItems':_0x2b6593,'capabilities':_0x2547ad,'modelId':_0x3a1b51,'quickActionData':_0x265b28[_0x184c08(0x159)]?.[_0x184c08(0x152)]}),this[_0x184c08(0x141)]=_0x16551d,this[_0x184c08(0x17a)][_0x184c08(0x142)](this[_0x184c08(0x141)][_0x184c08(0x14e)]);}else{if(_0x184c08(0x179)===_0x265b28[_0x184c08(0x162)]&&_0x16551d)for(const _0x30e49e of _0x265b28[_0x184c08(0x15b)]){const _0x5cab75=_0x184c08(0x18b)===_0x30e49e[_0x184c08(0x154)]?_0x184c08(0x199):_0x184c08(0x167),_0x22a960=_0x16551d[_0x184c08(0x189)]()?.[_0x184c08(0x190)]!==_0x2e6c82;_0x16551d[_0x184c08(0x143)]=_0x16551d[_0x184c08(0x132)]({'type':_0x5cab75,'isDone':!0x0,'interactionId':_0x16551d['id'],'areActionsDisabled':_0x22a960}),_0x16551d[_0x184c08(0x143)][_0x184c08(0x134)](_0x30e49e[_0x184c08(0x15b)]);}}}async[_0x10e842(0x146)](_0x1c16e1){const _0x358c61=_0x10e842,_0x266837=new Map();if(!_0x1c16e1[_0x358c61(0x15b)])return _0x266837;for(const _0x338f98 of _0x1c16e1[_0x358c61(0x15b)]){const _0x4ae2ee=await this[_0x358c61(0x17a)][_0x358c61(0x185)](_0x338f98);_0x4ae2ee&&_0x266837[_0x358c61(0x17c)](_0x4ae2ee['id'],_0x4ae2ee);}return _0x266837;}async[_0x10e842(0x17b)]({userMessage:_0xcc55de,quickActionData:_0x34dd2a}){const _0x4b97d8=_0x10e842;if(!this[_0x4b97d8(0x13f)])throw new _0x356f02(_0x4b97d8(0x17f),null,{'conversation':this});if(this[_0x4b97d8(0x141)])throw new _0x356f02(_0x4b97d8(0x13a),null,{'conversation':this});try{const _0x43ac10=this[_0x4b97d8(0x17a)][_0x4b97d8(0x192)](),_0x4bb426=this[_0x4b97d8(0x15c)][_0x4b97d8(0x19b)](),_0x4ef9ce=this[_0x4b97d8(0x165)]['id'];this[_0x4b97d8(0x141)]=this[_0x4b97d8(0x12f)]({'userMessage':_0xcc55de,'contextItems':_0x43ac10,'capabilities':_0x4bb426,'modelId':_0x4ef9ce,'quickActionData':_0x34dd2a}),await this[_0x4b97d8(0x141)][_0x4b97d8(0x14f)](),this[_0x4b97d8(0x17a)][_0x4b97d8(0x142)](this[_0x4b97d8(0x141)][_0x4b97d8(0x14e)]);}catch(_0x44d13c){if(_0x44d13c instanceof _0x356f02)this[_0x4b97d8(0x12e)](_0x4b97d8(0x13e),{'interactionId':this[_0x4b97d8(0x141)]?this[_0x4b97d8(0x141)]['id']:void 0x0,'error':_0x44d13c});else{const _0x41b52f=_0x396af4[_0x4b97d8(0x155)](_0x44d13c[_0x4b97d8(0x193)])||_0x4b97d8(0x176);this[_0x4b97d8(0x12e)](_0x4b97d8(0x13e),{'interactionId':this[_0x4b97d8(0x141)]?this[_0x4b97d8(0x141)]['id']:void 0x0,'error':new _0x356f02(_0x41b52f,null,{'error':_0x44d13c})});}}finally{this[_0x4b97d8(0x141)]?.[_0x4b97d8(0x19d)](),this[_0x4b97d8(0x141)]=void 0x0;}}[_0x10e842(0x12f)]({userMessage:_0x345785,contextItems:_0x4292ed,capabilities:_0x593fba,modelId:_0x4d41a4,quickActionData:_0x1a58b8}){const _0x457f1e=_0x10e842,_0x23f49f=new _0x49ef6f({'userMessage':_0x345785,'contextItems':_0x4292ed,'capabilities':_0x593fba,'conversationId':this['id'],'connector':this[_0x457f1e(0x133)],'editor':this[_0x457f1e(0x15a)][_0x457f1e(0x19a)]&&this[_0x457f1e(0x15a)][_0x457f1e(0x19a)](),'model':_0x4d41a4,'quickActionData':_0x1a58b8});return _0x23f49f[_0x457f1e(0x19e)](..._0x5f499c)['to'](this),this[_0x457f1e(0x140)][_0x457f1e(0x12d)](_0x23f49f),this[_0x457f1e(0x12e)](_0x457f1e(0x16a),_0x23f49f),_0x23f49f;}[_0x10e842(0x170)](_0x30e62c){const _0x3c2c55=_0x10e842;return this[_0x3c2c55(0x140)][_0x3c2c55(0x16f)](_0x27825d=>_0x27825d['id']===_0x30e62c);}[_0x10e842(0x184)](_0xe5baa9){const _0x452589=_0x10e842,_0x1eaaea=this[_0x452589(0x170)](_0xe5baa9);_0x1eaaea&&(_0x1eaaea[_0x452589(0x131)](),this[_0x452589(0x140)][_0x452589(0x13b)](this[_0x452589(0x140)][_0x452589(0x136)](_0x1eaaea),0x1));}get[_0x10e842(0x16b)](){const _0x3969da=_0x10e842;return this[_0x3969da(0x140)][this[_0x3969da(0x140)][_0x3969da(0x15e)]-0x1];}[_0x10e842(0x161)](_0x53803f){const _0x34f0b1=_0x10e842;this[_0x34f0b1(0x17a)][_0x34f0b1(0x161)](_0x53803f);}async[_0x10e842(0x164)]({content:_0x49bb28,version:_0x40e8a9,sessionId:_0x51e642,selections:_0xdcecf4}){const _0x5bcc3f=_0x10e842;await this[_0x5bcc3f(0x17a)][_0x5bcc3f(0x151)](_0x49bb28,_0x40e8a9,_0x51e642,_0xdcecf4);}[_0x10e842(0x18a)](){const _0x358a24=_0x10e842;return this[_0x358a24(0x141)]?.[_0x358a24(0x189)]()?.[_0x358a24(0x15b)]||'';}[_0x10e842(0x148)](_0x180631){const _0x3e174f=_0x10e842;this[_0x3e174f(0x17a)][_0x3e174f(0x148)](_0x180631);}[_0x10e842(0x12c)](){const _0x469a13=_0x10e842;this[_0x469a13(0x17a)][_0x469a13(0x12c)]();}[_0x10e842(0x18c)](_0x3decb0){const _0x114634=_0x10e842;this[_0x114634(0x17a)][_0x114634(0x18c)](_0x3decb0);}[_0x10e842(0x14d)](_0x46cce6){const _0x254b22=_0x10e842;this[_0x254b22(0x17a)][_0x254b22(0x14d)](_0x46cce6);}[_0x10e842(0x135)](_0x1e8cb0,_0x6f7ce0){const _0x1e906b=_0x10e842;this[_0x1e906b(0x17a)][_0x1e906b(0x135)](_0x1e8cb0,_0x6f7ce0);}[_0x10e842(0x18f)](_0x5d8953,_0x52bf07,_0x28c3e4){const _0x3bc3ba=_0x10e842;return this[_0x3bc3ba(0x17a)][_0x3bc3ba(0x18f)](_0x5d8953,_0x52bf07,_0x28c3e4);}[_0x10e842(0x168)](_0x4c1c5d){const _0x2d188f=_0x10e842;this[_0x2d188f(0x17a)][_0x2d188f(0x168)](_0x4c1c5d);}[_0x10e842(0x144)](){const _0x21c35d=_0x10e842;this[_0x21c35d(0x15c)][_0x21c35d(0x144)]();}[_0x10e842(0x14a)](){const _0x4727ba=_0x10e842;this[_0x4727ba(0x15c)][_0x4727ba(0x14a)]();}[_0x10e842(0x1a0)](){const _0x553dc4=_0x10e842;return this[_0x553dc4(0x17a)][_0x553dc4(0x1a0)]();}[_0x10e842(0x16c)](){const _0x4cf916=_0x10e842;return this[_0x4cf916(0x17a)][_0x4cf916(0x16c)]();}[_0x10e842(0x188)](){const _0x5aee26=_0x10e842;return this[_0x5aee26(0x17a)][_0x5aee26(0x188)]();}async[_0x10e842(0x15f)](_0x2da8f5){const _0x136550=_0x10e842;_0x2da8f5?!0x1===await this[_0x136550(0x174)][_0x136550(0x175)](_0x2da8f5)&&(_0x1cc3f5(_0x136550(0x18e),{'conversation':this,'model':_0x2da8f5}),_0x2da8f5=(await this[_0x136550(0x174)][_0x136550(0x130)]())[0x0]):(_0x1cc3f5(_0x136550(0x198),{'conversation':this}),_0x2da8f5=(await this[_0x136550(0x174)][_0x136550(0x130)]())[0x0]),_0x2da8f5['id']!==this[_0x136550(0x165)]?.['id']&&(this[_0x136550(0x165)]=_0x2da8f5,this[_0x136550(0x15c)][_0x136550(0x13d)](),this[_0x136550(0x12e)](_0x136550(0x178),{'selectedModel':_0x2da8f5}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1589(){var _0x2d0717=['connector','970KftFGq','model','4kwZbDd','102261yosQLW','724328SbXPhk','17190mZknIO','20PHnAlE','userMessage','capabilities','get','950CJcLyJ','queryAssistant','quickActionData','contextItems','current-document','834zyTeqX','conversationId','mapContextItemsToRequestData','3233268DUnCwm','11384wIteHw','2702xHqoCo','sendRequest','getDocumentContext','getCapabilitiesRequestData','28NVhqdF'];_0x1589=function(){return _0x2d0717;};return _0x1589();}function _0x30d6(_0x32bf9b,_0x1232b0){var _0x1589d7=_0x1589();return _0x30d6=function(_0x30d66e,_0x10361f){_0x30d66e=_0x30d66e-0x188;var _0x59f178=_0x1589d7[_0x30d66e];return _0x59f178;},_0x30d6(_0x32bf9b,_0x1232b0);}var _0x1fcdeb=_0x30d6;(function(_0x189495,_0x5d514b){var _0x61f0ad=_0x30d6,_0x543608=_0x189495();while(!![]){try{var _0x277c28=parseInt(_0x61f0ad(0x192))/0x1*(-parseInt(_0x61f0ad(0x19e))/0x2)+parseInt(_0x61f0ad(0x19b))/0x3*(parseInt(_0x61f0ad(0x19a))/0x4)+-parseInt(_0x61f0ad(0x198))/0x5*(parseInt(_0x61f0ad(0x18d))/0x6)+-parseInt(_0x61f0ad(0x196))/0x7*(-parseInt(_0x61f0ad(0x191))/0x8)+parseInt(_0x61f0ad(0x19d))/0x9*(-parseInt(_0x61f0ad(0x188))/0xa)+parseInt(_0x61f0ad(0x19c))/0xb+parseInt(_0x61f0ad(0x190))/0xc;if(_0x277c28===_0x5d514b)break;else _0x543608['push'](_0x543608['shift']());}catch(_0xbe39b0){_0x543608['push'](_0x543608['shift']());}}}(_0x1589,0x2216e));import{AICapabilities as _0x175dcf}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2ad135}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4104b9}from'./aichatcontext.js';export class AIChatInteraction extends _0x2ad135{[_0x1fcdeb(0x19f)];[_0x1fcdeb(0x18e)];[_0x1fcdeb(0x18b)]=new Map();[_0x1fcdeb(0x199)];[_0x1fcdeb(0x18a)];constructor(_0x38d1b7){var _0x120fae=_0x1fcdeb;super(_0x38d1b7),this[_0x120fae(0x18e)]=_0x38d1b7[_0x120fae(0x18e)],this[_0x120fae(0x18b)]=_0x38d1b7[_0x120fae(0x18b)],this[_0x120fae(0x1a0)]=_0x38d1b7[_0x120fae(0x1a0)],this[_0x120fae(0x19f)]=_0x38d1b7[_0x120fae(0x19f)],this[_0x120fae(0x199)]=_0x38d1b7[_0x120fae(0x199)],this[_0x120fae(0x18a)]=_0x38d1b7[_0x120fae(0x18a)];}async[_0x1fcdeb(0x193)](){var _0x2d6d7e=_0x1fcdeb;return this[_0x2d6d7e(0x197)][_0x2d6d7e(0x189)]({'message':this[_0x2d6d7e(0x19f)],'conversationId':this[_0x2d6d7e(0x18e)],'parts':_0x4104b9[_0x2d6d7e(0x18f)](this[_0x2d6d7e(0x18b)]),'capabilities':_0x175dcf[_0x2d6d7e(0x195)](this[_0x2d6d7e(0x1a0)]),'model':this[_0x2d6d7e(0x199)],'quickActionData':this[_0x2d6d7e(0x18a)]});}[_0x1fcdeb(0x194)](){var _0x2ba302=_0x1fcdeb;return this[_0x2ba302(0x18b)][_0x2ba302(0x1a1)](_0x2ba302(0x18c));}}
23
+ var _0x50c1a0=_0x13da;(function(_0x10e24b,_0x408022){var _0x4d173f=_0x13da,_0x4b5864=_0x10e24b();while(!![]){try{var _0x579d9c=parseInt(_0x4d173f(0xfd))/0x1*(-parseInt(_0x4d173f(0xed))/0x2)+parseInt(_0x4d173f(0xee))/0x3*(-parseInt(_0x4d173f(0xef))/0x4)+parseInt(_0x4d173f(0xf7))/0x5*(-parseInt(_0x4d173f(0xec))/0x6)+-parseInt(_0x4d173f(0xe8))/0x7*(-parseInt(_0x4d173f(0xf4))/0x8)+parseInt(_0x4d173f(0xf3))/0x9*(-parseInt(_0x4d173f(0xff))/0xa)+parseInt(_0x4d173f(0xf2))/0xb*(-parseInt(_0x4d173f(0x100))/0xc)+parseInt(_0x4d173f(0xe7))/0xd;if(_0x579d9c===_0x408022)break;else _0x4b5864['push'](_0x4b5864['shift']());}catch(_0x5a0adc){_0x4b5864['push'](_0x4b5864['shift']());}}}(_0x36c3,0x9d5a5));function _0x13da(_0x26fe78,_0x30ebd3){var _0x36c38b=_0x36c3();return _0x13da=function(_0x13dab3,_0x59b7ab){_0x13dab3=_0x13dab3-0xe6;var _0x22cea3=_0x36c38b[_0x13dab3];return _0x22cea3;},_0x13da(_0x26fe78,_0x30ebd3);}import{AICapabilities as _0x4ebaff}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x1ce347}from'../../aicore/model/aiinteraction.js';function _0x36c3(){var _0x2c7333=['getCapabilitiesRequestData','mapContextItemsToRequestData','10111hnHmrb','queryAssistant','7590EpFxvP','84QVpHYP','getDocumentContext','35631882mWMGrV','1351IkFGrN','conversationId','userMessage','get','6TDuUvc','142uclpjn','17151PCfXWy','28FvmXty','capabilities','current-document','675686rSJzNT','6327RJKAth','5744XHaWwW','sendRequest','connector','2567560ODgdgF','quickActionData','contextItems','model'];_0x36c3=function(){return _0x2c7333;};return _0x36c3();}import{AIChatContext as _0x139365}from'./aichatcontext.js';export class AIChatInteraction extends _0x1ce347{[_0x50c1a0(0xea)];[_0x50c1a0(0xe9)];[_0x50c1a0(0xf9)]=new Map();[_0x50c1a0(0xfa)];[_0x50c1a0(0xf8)];constructor(_0x3bd282){var _0x43daf7=_0x50c1a0;super(_0x3bd282),this[_0x43daf7(0xe9)]=_0x3bd282[_0x43daf7(0xe9)],this[_0x43daf7(0xf9)]=_0x3bd282[_0x43daf7(0xf9)],this[_0x43daf7(0xf0)]=_0x3bd282[_0x43daf7(0xf0)],this[_0x43daf7(0xea)]=_0x3bd282[_0x43daf7(0xea)],this[_0x43daf7(0xfa)]=_0x3bd282[_0x43daf7(0xfa)],this[_0x43daf7(0xf8)]=_0x3bd282[_0x43daf7(0xf8)];}async[_0x50c1a0(0xf5)](){var _0x54b17d=_0x50c1a0;return this[_0x54b17d(0xf6)][_0x54b17d(0xfe)]({'message':this[_0x54b17d(0xea)],'conversationId':this[_0x54b17d(0xe9)],'parts':_0x139365[_0x54b17d(0xfc)](this[_0x54b17d(0xf9)]),'capabilities':_0x4ebaff[_0x54b17d(0xfb)](this[_0x54b17d(0xf0)]),'model':this[_0x54b17d(0xfa)],'quickActionData':this[_0x54b17d(0xf8)]});}[_0x50c1a0(0xe6)](){var _0x114c58=_0x50c1a0;return this[_0x114c58(0xf9)][_0x114c58(0xeb)](_0x114c58(0xf1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d4777=_0xa722;(function(_0x54dd10,_0x162040){const _0x4b2960=_0xa722,_0x2b5488=_0x54dd10();while(!![]){try{const _0x53bc5f=parseInt(_0x4b2960(0x81))/0x1*(-parseInt(_0x4b2960(0x7c))/0x2)+parseInt(_0x4b2960(0x7a))/0x3+-parseInt(_0x4b2960(0x87))/0x4*(-parseInt(_0x4b2960(0x7b))/0x5)+parseInt(_0x4b2960(0x7d))/0x6+parseInt(_0x4b2960(0x79))/0x7*(-parseInt(_0x4b2960(0x7e))/0x8)+-parseInt(_0x4b2960(0x88))/0x9*(parseInt(_0x4b2960(0x77))/0xa)+parseInt(_0x4b2960(0x85))/0xb;if(_0x53bc5f===_0x162040)break;else _0x2b5488['push'](_0x2b5488['shift']());}catch(_0x50e3d9){_0x2b5488['push'](_0x2b5488['shift']());}}}(_0x5691,0x56ed8));function _0xa722(_0x2125fb,_0x5cd60e){const _0x56918a=_0x5691();return _0xa722=function(_0xa7226b,_0x1ea136){_0xa7226b=_0xa7226b-0x77;let _0x2f0e38=_0x56918a[_0xa7226b];return _0x2f0e38;},_0xa722(_0x2125fb,_0x5cd60e);}function _0x5691(){const _0x483833=['9mkOfqy','6225770Uixmhd','filter','21XGyVVj','498297YiDVFe','2545pIaRMi','62882xZfunH','2884050AGJVLq','156872GadUCr','capabilities','values','19UdpFdE','enabled','length','getAll','9872093EIPHJP','sort','712cnnHyX'];_0x5691=function(){return _0x483833;};return _0x5691();}import{AIModels as _0x241bb3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x241bb3{async[_0x4d4777(0x84)](){const _0x49578f=_0x4d4777;return(await super[_0x49578f(0x84)]())[_0x49578f(0x86)]((_0x400892,_0x9717ae)=>{const _0xad3998=_0x49578f,_0x144905=Object[_0xad3998(0x80)](_0x400892[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x3bb3c8=>_0x3bb3c8[_0xad3998(0x82)])[_0xad3998(0x83)];return Object[_0xad3998(0x80)](_0x9717ae[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x290a01=>_0x290a01[_0xad3998(0x82)])[_0xad3998(0x83)]-_0x144905;});}}
23
+ function _0x60da(_0x2eebba,_0x90f1f){const _0x41633a=_0x4163();return _0x60da=function(_0x60dab6,_0x48c31d){_0x60dab6=_0x60dab6-0xca;let _0xa95a04=_0x41633a[_0x60dab6];return _0xa95a04;},_0x60da(_0x2eebba,_0x90f1f);}const _0x30ec9c=_0x60da;(function(_0x373a39,_0x6a1017){const _0x2caa80=_0x60da,_0x1d7562=_0x373a39();while(!![]){try{const _0x1ae319=parseInt(_0x2caa80(0xd9))/0x1+-parseInt(_0x2caa80(0xcc))/0x2+-parseInt(_0x2caa80(0xcd))/0x3+parseInt(_0x2caa80(0xda))/0x4*(parseInt(_0x2caa80(0xd0))/0x5)+parseInt(_0x2caa80(0xd1))/0x6*(parseInt(_0x2caa80(0xd4))/0x7)+parseInt(_0x2caa80(0xd7))/0x8+-parseInt(_0x2caa80(0xcb))/0x9*(parseInt(_0x2caa80(0xce))/0xa);if(_0x1ae319===_0x6a1017)break;else _0x1d7562['push'](_0x1d7562['shift']());}catch(_0x47fe12){_0x1d7562['push'](_0x1d7562['shift']());}}}(_0x4163,0x50ed8));import{AIModels as _0x45d6f9}from'../../aicore/model/aimodels.js';function _0x4163(){const _0x122183=['1268230NraJkh','capabilities','35DvCMsr','66BgCCZr','filter','enabled','134890XUjEls','getAll','values','4026008LiVnVx','sort','428429nsMSho','84076Vytcba','length','45VJKMvE','454362pIRIpl','294021izvGUy'];_0x4163=function(){return _0x122183;};return _0x4163();}export class AIChatModels extends _0x45d6f9{async[_0x30ec9c(0xd5)](){const _0x2b6766=_0x30ec9c;return(await super[_0x2b6766(0xd5)]())[_0x2b6766(0xd8)]((_0x3385fd,_0x4780d6)=>{const _0x5cc6f0=_0x2b6766,_0x514405=Object[_0x5cc6f0(0xd6)](_0x3385fd[_0x5cc6f0(0xcf)])[_0x5cc6f0(0xd2)](_0x3fe2e8=>_0x3fe2e8[_0x5cc6f0(0xd3)])[_0x5cc6f0(0xca)];return Object[_0x5cc6f0(0xd6)](_0x4780d6[_0x5cc6f0(0xcf)])[_0x5cc6f0(0xd2)](_0x44eef0=>_0x44eef0[_0x5cc6f0(0xd3)])[_0x5cc6f0(0xca)]-_0x514405;});}}