@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.3

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 (402) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index-editor.css +59 -38
  41. package/dist/index.css +77 -39
  42. package/dist/index.js +4 -4
  43. package/dist/translations/af.js +1 -1
  44. package/dist/translations/af.umd.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/ast.js +1 -1
  48. package/dist/translations/ast.umd.js +1 -1
  49. package/dist/translations/az.js +1 -1
  50. package/dist/translations/az.umd.js +1 -1
  51. package/dist/translations/be.js +1 -1
  52. package/dist/translations/be.umd.js +1 -1
  53. package/dist/translations/bg.js +1 -1
  54. package/dist/translations/bg.umd.js +1 -1
  55. package/dist/translations/bn.js +1 -1
  56. package/dist/translations/bn.umd.js +1 -1
  57. package/dist/translations/bs.js +1 -1
  58. package/dist/translations/bs.umd.js +1 -1
  59. package/dist/translations/ca.js +1 -1
  60. package/dist/translations/ca.umd.js +1 -1
  61. package/dist/translations/cs.js +1 -1
  62. package/dist/translations/cs.umd.js +1 -1
  63. package/dist/translations/da.js +1 -1
  64. package/dist/translations/da.umd.js +1 -1
  65. package/dist/translations/de-ch.js +1 -1
  66. package/dist/translations/de-ch.umd.js +1 -1
  67. package/dist/translations/de.js +1 -1
  68. package/dist/translations/de.umd.js +1 -1
  69. package/dist/translations/el.js +1 -1
  70. package/dist/translations/el.umd.js +1 -1
  71. package/dist/translations/en-au.js +1 -1
  72. package/dist/translations/en-au.umd.js +1 -1
  73. package/dist/translations/en-gb.js +1 -1
  74. package/dist/translations/en-gb.umd.js +1 -1
  75. package/dist/translations/en.js +1 -1
  76. package/dist/translations/en.umd.js +1 -1
  77. package/dist/translations/eo.js +1 -1
  78. package/dist/translations/eo.umd.js +1 -1
  79. package/dist/translations/es-co.js +1 -1
  80. package/dist/translations/es-co.umd.js +1 -1
  81. package/dist/translations/es.js +1 -1
  82. package/dist/translations/es.umd.js +1 -1
  83. package/dist/translations/et.js +1 -1
  84. package/dist/translations/et.umd.js +1 -1
  85. package/dist/translations/eu.js +1 -1
  86. package/dist/translations/eu.umd.js +1 -1
  87. package/dist/translations/fa.js +1 -1
  88. package/dist/translations/fa.umd.js +1 -1
  89. package/dist/translations/fi.js +1 -1
  90. package/dist/translations/fi.umd.js +1 -1
  91. package/dist/translations/fr.js +1 -1
  92. package/dist/translations/fr.umd.js +1 -1
  93. package/dist/translations/gl.js +1 -1
  94. package/dist/translations/gl.umd.js +1 -1
  95. package/dist/translations/gu.js +1 -1
  96. package/dist/translations/gu.umd.js +1 -1
  97. package/dist/translations/he.js +1 -1
  98. package/dist/translations/he.umd.js +1 -1
  99. package/dist/translations/hi.js +1 -1
  100. package/dist/translations/hi.umd.js +1 -1
  101. package/dist/translations/hr.js +1 -1
  102. package/dist/translations/hr.umd.js +1 -1
  103. package/dist/translations/hu.js +1 -1
  104. package/dist/translations/hu.umd.js +1 -1
  105. package/dist/translations/hy.js +1 -1
  106. package/dist/translations/hy.umd.js +1 -1
  107. package/dist/translations/id.js +1 -1
  108. package/dist/translations/id.umd.js +1 -1
  109. package/dist/translations/it.js +1 -1
  110. package/dist/translations/it.umd.js +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.js +1 -1
  114. package/dist/translations/jv.umd.js +1 -1
  115. package/dist/translations/kk.js +1 -1
  116. package/dist/translations/kk.umd.js +1 -1
  117. package/dist/translations/km.js +1 -1
  118. package/dist/translations/km.umd.js +1 -1
  119. package/dist/translations/kn.js +1 -1
  120. package/dist/translations/kn.umd.js +1 -1
  121. package/dist/translations/ko.js +1 -1
  122. package/dist/translations/ko.umd.js +1 -1
  123. package/dist/translations/ku.js +1 -1
  124. package/dist/translations/ku.umd.js +1 -1
  125. package/dist/translations/lt.js +1 -1
  126. package/dist/translations/lt.umd.js +1 -1
  127. package/dist/translations/lv.js +1 -1
  128. package/dist/translations/lv.umd.js +1 -1
  129. package/dist/translations/ms.js +1 -1
  130. package/dist/translations/ms.umd.js +1 -1
  131. package/dist/translations/nb.js +1 -1
  132. package/dist/translations/nb.umd.js +1 -1
  133. package/dist/translations/ne.js +1 -1
  134. package/dist/translations/ne.umd.js +1 -1
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.js +1 -1
  140. package/dist/translations/oc.umd.js +1 -1
  141. package/dist/translations/pl.js +1 -1
  142. package/dist/translations/pl.umd.js +1 -1
  143. package/dist/translations/pt-br.js +1 -1
  144. package/dist/translations/pt-br.umd.js +1 -1
  145. package/dist/translations/pt.js +1 -1
  146. package/dist/translations/pt.umd.js +1 -1
  147. package/dist/translations/ro.js +1 -1
  148. package/dist/translations/ro.umd.js +1 -1
  149. package/dist/translations/ru.js +1 -1
  150. package/dist/translations/ru.umd.js +1 -1
  151. package/dist/translations/si.js +1 -1
  152. package/dist/translations/si.umd.js +1 -1
  153. package/dist/translations/sk.js +1 -1
  154. package/dist/translations/sk.umd.js +1 -1
  155. package/dist/translations/sl.js +1 -1
  156. package/dist/translations/sl.umd.js +1 -1
  157. package/dist/translations/sq.js +1 -1
  158. package/dist/translations/sq.umd.js +1 -1
  159. package/dist/translations/sr-latn.js +1 -1
  160. package/dist/translations/sr-latn.umd.js +1 -1
  161. package/dist/translations/sr.js +1 -1
  162. package/dist/translations/sr.umd.js +1 -1
  163. package/dist/translations/sv.js +1 -1
  164. package/dist/translations/sv.umd.js +1 -1
  165. package/dist/translations/th.js +1 -1
  166. package/dist/translations/th.umd.js +1 -1
  167. package/dist/translations/ti.js +1 -1
  168. package/dist/translations/ti.umd.js +1 -1
  169. package/dist/translations/tk.js +1 -1
  170. package/dist/translations/tk.umd.js +1 -1
  171. package/dist/translations/tr.js +1 -1
  172. package/dist/translations/tr.umd.js +1 -1
  173. package/dist/translations/tt.js +1 -1
  174. package/dist/translations/tt.umd.js +1 -1
  175. package/dist/translations/ug.js +1 -1
  176. package/dist/translations/ug.umd.js +1 -1
  177. package/dist/translations/uk.js +1 -1
  178. package/dist/translations/uk.umd.js +1 -1
  179. package/dist/translations/ur.js +1 -1
  180. package/dist/translations/ur.umd.js +1 -1
  181. package/dist/translations/uz.js +1 -1
  182. package/dist/translations/uz.umd.js +1 -1
  183. package/dist/translations/vi.js +1 -1
  184. package/dist/translations/vi.umd.js +1 -1
  185. package/dist/translations/zh-cn.js +1 -1
  186. package/dist/translations/zh-cn.umd.js +1 -1
  187. package/dist/translations/zh.js +1 -1
  188. package/dist/translations/zh.umd.js +1 -1
  189. package/lang/contexts.json +40 -1
  190. package/lang/translations/ar.po +171 -171
  191. package/lang/translations/bg.po +155 -155
  192. package/lang/translations/bn.po +155 -155
  193. package/lang/translations/ca.po +155 -155
  194. package/lang/translations/cs.po +159 -159
  195. package/lang/translations/da.po +155 -155
  196. package/lang/translations/de.po +155 -155
  197. package/lang/translations/el.po +155 -155
  198. package/lang/translations/es.po +155 -155
  199. package/lang/translations/et.po +155 -155
  200. package/lang/translations/fi.po +155 -155
  201. package/lang/translations/fr.po +155 -155
  202. package/lang/translations/he.po +155 -155
  203. package/lang/translations/hi.po +155 -155
  204. package/lang/translations/hu.po +155 -155
  205. package/lang/translations/id.po +151 -151
  206. package/lang/translations/it.po +155 -155
  207. package/lang/translations/ja.po +151 -151
  208. package/lang/translations/ko.po +151 -151
  209. package/lang/translations/lt.po +159 -159
  210. package/lang/translations/lv.po +159 -159
  211. package/lang/translations/ms.po +151 -151
  212. package/lang/translations/nl.po +155 -155
  213. package/lang/translations/no.po +155 -155
  214. package/lang/translations/pl.po +159 -159
  215. package/lang/translations/pt-br.po +155 -155
  216. package/lang/translations/pt.po +155 -155
  217. package/lang/translations/ro.po +159 -159
  218. package/lang/translations/ru.po +159 -159
  219. package/lang/translations/sk.po +159 -159
  220. package/lang/translations/sr.po +159 -159
  221. package/lang/translations/sv.po +155 -155
  222. package/lang/translations/th.po +151 -151
  223. package/lang/translations/tr.po +155 -155
  224. package/lang/translations/uk.po +159 -159
  225. package/lang/translations/vi.po +151 -151
  226. package/lang/translations/zh-cn.po +151 -151
  227. package/lang/translations/zh.po +151 -151
  228. package/package.json +16 -15
  229. package/src/aiactions/aiactions.js +1 -1
  230. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  231. package/src/aiactions/model/aiactionsreply.d.ts +2 -1
  232. package/src/aiactions/model/aiactionsreply.js +1 -1
  233. package/src/aiassistant/adapters/aiadapter.js +1 -1
  234. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  235. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  236. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  237. package/src/aiassistant/aiassistant.js +1 -1
  238. package/src/aiassistant/aiassistantediting.js +1 -1
  239. package/src/aiassistant/aiassistantui.js +1 -1
  240. package/src/aiassistant/legacyerrors.js +1 -1
  241. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  242. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  243. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  244. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  245. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  246. package/src/aiassistant/ui/form/aiformview.js +1 -1
  247. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  248. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  249. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  250. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  251. package/src/aiassistant/utils/common-translations.js +1 -1
  252. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  253. package/src/aiballoon/aiballoon.js +1 -1
  254. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  255. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  256. package/src/aiballoon/ui/aiballoonview.js +1 -1
  257. package/src/aichat/aichat.js +1 -1
  258. package/src/aichat/aichatcontroller.js +1 -1
  259. package/src/aichat/aichatui.js +1 -1
  260. package/src/aichat/model/aichatcontext.js +1 -1
  261. package/src/aichat/model/aichatconversation.js +1 -1
  262. package/src/aichat/model/aichatinteraction.js +1 -1
  263. package/src/aichat/model/aichatmodels.js +1 -1
  264. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  265. package/src/aichat/ui/aichatfeedview.js +1 -1
  266. package/src/aichat/ui/aichatheaderview.js +1 -1
  267. package/src/aichat/ui/aichatview.js +1 -1
  268. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  269. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  270. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  272. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  273. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  274. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  275. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  277. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  278. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  279. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  280. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  285. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
  286. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  287. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  288. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  289. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  290. package/src/aichat/utils/eventnames.js +1 -1
  291. package/src/aichat/utils/promisequeue.js +1 -1
  292. package/src/aichat/utils/scrollmanager.js +1 -1
  293. package/src/aichathistory/aichathistory.js +1 -1
  294. package/src/aichathistory/aichathistorycontroller.js +1 -1
  295. package/src/aichathistory/aichathistoryui.js +1 -1
  296. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  297. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  298. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  299. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  300. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  301. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  302. package/src/aiconfig.d.ts +5 -0
  303. package/src/aicore/aiconnector.js +1 -1
  304. package/src/aicore/aiediting.js +1 -1
  305. package/src/aicore/model/aicapabilities.js +1 -1
  306. package/src/aicore/model/aicontext.js +1 -1
  307. package/src/aicore/model/aiinteraction.js +1 -1
  308. package/src/aicore/model/aireply.js +1 -1
  309. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  310. package/src/aicore/pipeline/airesponseparser.js +2 -2
  311. package/src/aicore/ui/aidisclaimerview.js +1 -1
  312. package/src/aicore/ui/aiskeleton.js +1 -1
  313. package/src/aicore/ui/aispinner.js +1 -1
  314. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  315. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
  316. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  317. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
  318. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  319. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
  320. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  321. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  322. package/src/aicore/utils/common-translations.js +1 -1
  323. package/src/aicore/utils/createresizebutton.js +1 -1
  324. package/src/aicore/utils/documentposition.js +1 -1
  325. package/src/aicore/utils/documentrange.js +1 -1
  326. package/src/aicore/utils/eventnames.js +1 -1
  327. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  328. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  329. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -1
  330. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  331. package/src/aicore/utils/htmlparser.js +1 -1
  332. package/src/aicore/utils/htmlstreamer.js +1 -1
  333. package/src/aiquickactions/aiquickactions.js +1 -1
  334. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  335. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  336. package/src/aiquickactions/aiquickactionsui.js +1 -1
  337. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  338. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  339. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  340. package/src/aiquickactions/utils/common-translations.js +1 -1
  341. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
  342. package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
  343. package/src/aireviewmode/aireviewmode.d.ts +37 -0
  344. package/src/aireviewmode/aireviewmode.js +1 -1
  345. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  346. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  347. package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
  348. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  349. package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
  350. package/src/aireviewmode/aireviewmodeui.js +1 -1
  351. package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
  352. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  353. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  354. package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
  355. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  356. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  357. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  358. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  359. package/src/aireviewmode/model/aireviewcheckrun.d.ts +24 -2
  360. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  361. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
  362. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  363. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  364. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
  365. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  366. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  367. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
  368. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
  369. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
  370. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  371. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  372. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  373. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
  374. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  375. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
  376. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  377. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
  378. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  379. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
  380. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  381. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +1 -1
  382. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  383. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  384. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  385. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  386. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  387. package/src/aitabs/aitabs.js +1 -1
  388. package/src/aitabs/aitabsmainview.js +1 -1
  389. package/src/aitabs/tabs/aitabsview.js +1 -1
  390. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  391. package/src/aitabs/tabs/tabpanelview.js +1 -1
  392. package/src/index.d.ts +3 -2
  393. package/src/index.js +1 -1
  394. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  395. package/theme/aichat/aichat-controls.css +4 -0
  396. package/theme/aichat/aichatfeed.css +10 -2
  397. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
  398. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  399. package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
  400. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  401. package/src/aireviewmode/utils/common-translations.d.ts +0 -9
  402. package/src/aireviewmode/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x146c6f=_0x2434;(function(_0x1f8f34,_0x194dca){const _0x56f109=_0x2434,_0x1af1f7=_0x1f8f34();while(!![]){try{const _0x232fea=-parseInt(_0x56f109(0x268))/0x1*(parseInt(_0x56f109(0x1e3))/0x2)+parseInt(_0x56f109(0x18a))/0x3*(-parseInt(_0x56f109(0x181))/0x4)+parseInt(_0x56f109(0x1d6))/0x5*(parseInt(_0x56f109(0x1c2))/0x6)+-parseInt(_0x56f109(0x1c1))/0x7+-parseInt(_0x56f109(0x192))/0x8*(parseInt(_0x56f109(0x1d4))/0x9)+-parseInt(_0x56f109(0x1b8))/0xa*(parseInt(_0x56f109(0x1d9))/0xb)+parseInt(_0x56f109(0x24f))/0xc;if(_0x232fea===_0x194dca)break;else _0x1af1f7['push'](_0x1af1f7['shift']());}catch(_0x10498b){_0x1af1f7['push'](_0x1af1f7['shift']());}}}(_0x2c0e,0xaf1d3));import{ContextPlugin as _0x723f7e,Editor as _0x32153a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c810f,logError as _0x2e819b,scrollViewportToShowTarget as _0x39bad2,uid as _0x1bad92}from'ckeditor5/src/utils.js';import{AIConnector as _0x377cac}from'../aicore/aiconnector.js';import{AITabs as _0x56d072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23da83}from'./model/aichatconversation.js';import{getTranslation as _0x24c83d}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f0bb6}from'../aicore/aiediting.js';import{AIChatModels as _0x5da4a7}from'./model/aichatmodels.js';function _0x2c0e(){const _0x505bb4=['addSelectionToContext','chat','getSelectionText','replyChangeGroupStateUpdated','getGroupId','partIndex','selectedModel','contextSent','closeSourceResourceBalloon','createRange','addResourceToContext','_handleStartConversation','addFeedItemError','delete','setConversationContext','text-delta','_previewedChangeGroup','toggleReasoning','push','removeContextItem','ai-chat-url-upload-failed','toLocaleLowerCase','uid','ai.chat.models.displayedModels','get','resources','resourceStateChanged','rejectSuggestion','interactionId','_applyOperationsAsSuggestions','history','accepted','path','close','interactionStarted','isUploadInProgress','remove','cloneNode','insertSuggestion','selectModel','rootName','editors','addCurrentDocumentToContext','addContextItem','startConversation','createPositionAt','updateConversationTitle','isDocumentOperation','root','isInContext','updateFeedItemAIReplySuggestionPartState','_stopLastInteraction','init','log','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','load','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-conversation-','AIConnector','getRanges','contextItemRemoved','Undo','filter','abortPromptStream','ai-chat-source-resources-load-failed','8tjdDwF','start','applySuggestion','AIChatController','source','AIEditing','ai-chat-missing-channel-id','AI_CHAT_RESOURCE_LOAD_FAILED','content','1822146yvufCW','documentContextContent','isOpen','getOperations','addOperation','_balloonShowDiff','main','setContextItemLoading','344BYExuk','full','sourceResourcesLoaded','getDocumentData','getChild','getRoot','finishInteraction','ai-chat-resource-load-failed','Showing\x20conversation\x20history...','ai-chat-controller-no-active-conversation','_integrateEditor','ai-request-aborted','_aiConnector','createConversation','resetConversationTitle','data','_flushLastInteractionUI','anchorId','requires','ai.chat.models.defaultModelId','plugins','version','contextItemAdded','indexes','provider','dialogClosed','interactionCreated','changes','addFileToContext','has','focusPromptInput','view','AI_CHAT_GENERIC_ERROR','AIChatUI','viewRangeToDom','addFeedInteractionHeader','AITabs','isLoading','160430gqxXyP','editing','removeMarker','Disliked\x20response','resizeTabs','type','stopListening','unshift','mouseOverSuggestion','278859UFwDzM','2766MqaIfD','isPremiumPlugin','removeFeedInteraction','isDisabled','slice','length','setChangeGroupState','createPositionFromPath','updateFeedItemAIReplySources','ai-chat-file-upload-failed','rejected','resizedTabs','resetMessageInput','static','getInteractionAndReplyById','_createFromRanges','pluginName','forEach','247968DerriV','startsWith','12690QZrVAK','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','dislike','341IMEeyd','AI_CHAT_ABORTED_MESSAGE','data-id','addFeedItemUserMessage','nextSibling','addUrlToContext','toViewRange','config','handleRemovedConversation','_setIsMaximized','24074gKJIzD','updateCurrentDocumentInContext','getMarkersGroup','pending','_toggleWebSearch','getChildren','lastInteraction','sendUserMessage','_batchToChanges','_showConversationHistory','collaboration.channelId','replyContentUpdated','baseVersion','capabilitiesUpdated','getAttribute','error','removed','updateFeedItemAIReplySuggestionContent','startInteraction','mapper','interactionDestroyed','sendMessage','document','sourcePosition','stopInteraction','new','updateContent','ready','howMany','revert','model','ai-chat-context-invalid-data','_scrollToSuggestionRange','streaming','getDiff','getFirstRange','toggleSuggestionDisplayMode','replyCreated','change','string','interactionFinished','isCurrentDocumentInConversation','updateResourceState','contextItems','hideFakeVisualSelection','sources','_handleUIUserMessage','_aiChatUi','_aiEditing','end','getTransformedByOperation','addFeedItemAIReply','stop','_toggleReasoning','modification-delta','maxOffset','mouseLeaveSuggestion','toggleLoadingSkeleton','isStarted','options','clearPendingContextUI','getChildAtOffset','loadConversation','TrackChangesEditing','domConverter','setModel','sourceId','afterInit','$graveyard','listenTo','isOfficialPlugin','setAddContextOptions','node','Failed\x20to\x20load\x20conversation','_removeAISelectionMarkers','ai-chat-conversation-init-failed','state','scrollFeedToSuggestion','uiId','applyOperation','showChangeInText','locale','addContextOptionsChanged','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAISuggestion','Suggestion\x20','setSelectedModel','updateFeedItemAIReplyContent','Liked\x20response','parse','getInteraction','replies','updateCapabilities','contextItemLoadingEnded','activeConversation','name','batch','loadSourceResources','removeFromContext','selection','addDocumentToContext','context','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatModels','indexOf','removeSelectionFromChatContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','45840312PTBByQ','showFakeVisualSelection','undo','setIsUploadInProgress','commands','resize','setConversationTitle','setIsMaximized','DocumentCompare','showNext','addFilesToContext','AI_CHAT_UNTITLED_CONVERSATION','resourceId','split','activateTab','updateFeedInteractionHeader','resource','setFeedItemRenderingStrategy','ai-chat-controller-mouse-over','markers','_insertSuggestion','_updateReplyContent','getReply','getDocumentContext','_logError','111nbDjhr','query','showPrevious','like','_applySuggestion','availableModels','current-document','add','modelSelected','_openBalloonFor','open','addFeedItemStaticMessage','populateSourceResourceBalloon','changeGroups','removeSelectionFromContext','addSelectionToChatContext','uploadProgressChanged','_getDocumentRangeForReplyChanges','getPath','ai-chat-context-unsupported-type','_removeFromContext','replyId','clearConversationContextUI','ai-chat-conversation-start-failed','showDiff','redo','set','handleUserInteraction','message','conversationInitialized','map','range','ai.chat.context','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','_filterModels','alignToTop','from','children','contextItem'];_0x2c0e=function(){return _0x505bb4;};return _0x2c0e();}import{getEditorFromContext as _0x4fb5fe}from'../aicore/utils/geteditorfromcontext.js';function _0x2434(_0x464613,_0x46d152){const _0x2c0ef7=_0x2c0e();return _0x2434=function(_0x243445,_0x41e6bb){_0x243445=_0x243445-0x145;let _0x431349=_0x2c0ef7[_0x243445];return _0x431349;},_0x2434(_0x464613,_0x46d152);}import{DocumentCompare as _0x3b0268,DATA_ID_MODEL_ATTRIBUTE as _0x49a695}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1d9b2b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51a626,getMinimalSelection as _0x4b622b,getSuggestionPartsFromReply as _0x2d7cdf}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x148a01,_DetachOperation as _0x51a3f}from'ckeditor5/src/engine.js';import{findOne as _0x586b98,getAttribute as _0x20f1b1,serialize as _0x2270eb,Document as _0x21c873,findByAttribute as _0x9810c1}from'../aicore/utils/htmlparser.js';import{IconAI as _0x32d524}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49331d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x48863f}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x723f7e{[_0x146c6f(0x213)];[_0x146c6f(0x19e)];[_0x146c6f(0x212)];[_0x146c6f(0x24b)];[_0x146c6f(0x1eb)]=new Map();[_0x146c6f(0x14f)]=null;[_0x146c6f(0x18f)]=!0x1;static get[_0x146c6f(0x1a4)](){return[_0x377cac,_0x48863f,_0x3b0268];}static get[_0x146c6f(0x1d2)](){const _0x1efddb=_0x146c6f;return _0x1efddb(0x184);}static get[_0x146c6f(0x229)](){return!0x0;}static get[_0x146c6f(0x1c3)](){return!0x0;}[_0x146c6f(0x173)](){const _0x254105=_0x146c6f;this[_0x254105(0x19e)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x17a)),this[_0x254105(0x212)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b3)),this[_0x254105(0x213)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x186)),this[_0x254105(0x24b)]=new _0x5da4a7({'connector':this[_0x254105(0x19e)]});const _0x10d18c=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b6));this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x16b),()=>{const _0x47fe9c=_0x254105;this[_0x47fe9c(0x14a)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ea),(_0x12c5aa,_0x5d967d)=>{const _0x7c8052=_0x254105;this[_0x7c8052(0x211)]({'userMessage':_0x5d967d});}),this[_0x254105(0x228)](_0x10d18c,_0x254105(0x1cd),(_0x42c735,_0x433a5d)=>{const _0x20d7bb=_0x254105;this[_0x20d7bb(0x1e2)](_0x433a5d);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1bc),()=>{const _0x537f87=_0x254105;_0x10d18c[_0x537f87(0x254)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x17f),async()=>{const _0x2df73b=_0x254105;await this[_0x2df73b(0x172)](),await this[_0x2df73b(0x1a2)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x248),()=>{const _0x94a6fe=_0x254105;this[_0x94a6fe(0x242)]?.[_0x94a6fe(0x169)](_0x24c83d(this[_0x94a6fe(0x249)][_0x94a6fe(0x234)],_0x94a6fe(0x175)));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ae),(_0x4f2658,_0x251c1d)=>{const _0xa891b5=_0x254105;this[_0xa891b5(0x242)]?.[_0xa891b5(0x259)](Array[_0xa891b5(0x28d)](_0x251c1d));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1de),(_0x500757,_0x1583e6)=>{const _0xe6e509=_0x254105;this[_0xe6e509(0x242)]?.[_0xe6e509(0x1de)](_0x1583e6);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x149),(_0x4e3891,_0x889f67)=>{const _0x881e4c=_0x254105;this[_0x881e4c(0x242)]?.[_0x881e4c(0x149)](_0x889f67[_0x881e4c(0x185)],_0x889f67[_0x881e4c(0x25f)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x152),(_0x511c2a,_0x369109)=>{const _0x442557=_0x254105;this[_0x442557(0x27c)](_0x369109);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x245),(_0x43086d,_0x3ec74a)=>{const _0x474997=_0x254105;this[_0x474997(0x242)]?.[_0x474997(0x245)](_0x3ec74a[_0x474997(0x225)],_0x3ec74a[_0x474997(0x269)],_0x3ec74a[_0x474997(0x155)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x28a),()=>{const _0x35a063=_0x254105;this[_0x35a063(0x1e7)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x150),()=>{const _0x365b2f=_0x254105;this[_0x365b2f(0x218)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x166),(_0x4a142a,_0x5f18ed)=>{const _0x5525f2=_0x254105;this[_0x5525f2(0x242)]?.[_0x5525f2(0x224)](_0x5f18ed);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x26b),(_0x420977,{replyId:_0x32a618})=>{const _0xe37b6e=_0x254105;console[_0xe37b6e(0x174)](_0xe37b6e(0x23c),_0x32a618);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1d8),(_0x1399a3,{replyId:_0x5c75a7})=>{const _0x37b9b9=_0x254105;console[_0x37b9b9(0x174)](_0x37b9b9(0x1bb),_0x5c75a7);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x165),(_0x1cd862,_0x13c297)=>{const _0x4104be=_0x254105;this[_0x4104be(0x249)][_0x4104be(0x1a6)][_0x4104be(0x157)](_0x48863f)[_0x4104be(0x160)](),this[_0x4104be(0x263)](_0x13c297);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x233),(_0x404cdd,{replyId:_0x2146f0,partIndex:_0x4d93a8})=>{const _0x56223d=_0x254105;this[_0x56223d(0x18f)]=this[_0x56223d(0x212)][_0x56223d(0x280)],this[_0x56223d(0x271)](_0x2146f0,_0x4d93a8);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1c0),(_0x2a3cdf,{replyId:_0x4156f8,partIndex:_0xf95e04})=>{const _0x3486bd=_0x254105,_0x48eab4=this[_0x3486bd(0x279)](_0x4156f8,_0xf95e04);_0x48eab4&&_0x3486bd(0x227)!=_0x48eab4[_0x3486bd(0x287)][_0x3486bd(0x16f)][_0x3486bd(0x167)]&&this[_0x3486bd(0x213)][_0x3486bd(0x250)]([_0x48eab4[_0x3486bd(0x287)]],_0x3486bd(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x21b),()=>{const _0x3c7e9b=_0x254105;this[_0x3c7e9b(0x213)][_0x3c7e9b(0x20f)](_0x3c7e9b(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x183),(_0x121436,_0x158acb)=>{const _0x137dda=_0x254105;this[_0x137dda(0x249)][_0x137dda(0x1a6)][_0x137dda(0x157)](_0x48863f)[_0x137dda(0x160)](),this[_0x137dda(0x26c)](_0x158acb);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x207),async(_0x120c8c,_0x219228)=>{const _0x583f5d=_0x254105,{reply:_0x15ea31}=this[_0x583f5d(0x1d0)](_0x219228[_0x583f5d(0x27d)]),_0x1236e5=_0x4fb5fe(this[_0x583f5d(0x249)]),_0xf949ad=_0x2d7cdf({'editor':_0x1236e5,'changeGroups':_0x15ea31[_0x583f5d(0x275)],'documentContextContent':_0x15ea31[_0x583f5d(0x18b)],'showDiff':_0x219228[_0x583f5d(0x280)]});await this[_0x583f5d(0x212)][_0x583f5d(0x1f4)]({'id':_0x15ea31['id'],'parts':_0xf949ad,'renderingStrategy':_0x583f5d(0x1cf)});}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x15a),(_0x5d9a73,{replyId:_0x399548,partIndex:_0x1948ae})=>{const _0x280870=_0x254105;this[_0x280870(0x14f)]?.[_0x280870(0x27d)]==_0x399548&&this[_0x280870(0x14f)]?.[_0x280870(0x295)]==_0x1948ae&&this[_0x280870(0x249)][_0x280870(0x1a6)][_0x280870(0x157)](_0x48863f)[_0x280870(0x160)]();const {reply:_0x28fdb8}=this[_0x280870(0x1d0)](_0x399548);_0x28fdb8[_0x280870(0x1c8)](_0x1948ae,_0x280870(0x1cc)),this[_0x280870(0x213)][_0x280870(0x20f)](_0x280870(0x261));});}async[_0x146c6f(0x226)](){const _0x2bd59d=_0x146c6f;this[_0x2bd59d(0x249)]instanceof _0x32153a?this[_0x2bd59d(0x19c)](this[_0x2bd59d(0x249)]):this[_0x2bd59d(0x228)](this[_0x2bd59d(0x249)][_0x2bd59d(0x168)],_0x2bd59d(0x26f),(_0x3d46e8,_0x570b43)=>{const _0x309056=_0x2bd59d;_0x570b43['on'](_0x309056(0x1fe),()=>{const _0x32937a=_0x309056;this[_0x32937a(0x19c)](_0x570b43);});}),await this[_0x2bd59d(0x14a)]();}[_0x146c6f(0x263)](_0x3a3929){const _0x5a5996=_0x146c6f,_0x1fdc89=_0x4fb5fe(this[_0x5a5996(0x249)]);if(!_0x1fdc89[_0x5a5996(0x1a6)][_0x5a5996(0x1af)](_0x5a5996(0x222)))return;const _0x2d8e64=this[_0x5a5996(0x249)][_0x5a5996(0x1a6)][_0x5a5996(0x157)](_0x5a5996(0x257)),{reply:_0x3deaa9,interaction:_0x434901}=this[_0x5a5996(0x1d0)](_0x3a3929[_0x5a5996(0x27d)]),_0x37ae64=this[_0x5a5996(0x279)](_0x3a3929[_0x5a5996(0x27d)],_0x3a3929[_0x5a5996(0x295)]),_0x3d6042=void 0x0!==_0x3a3929[_0x5a5996(0x295)]?[_0x3deaa9[_0x5a5996(0x275)][_0x3a3929[_0x5a5996(0x295)]]]:_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x17e)](_0x2b6745=>_0x5a5996(0x1e6)==_0x2b6745[_0x5a5996(0x22f)]),_0x1c507b=_0x3d6042[_0x5a5996(0x286)](_0x5270ba=>_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x24c)](_0x5270ba));_0x1c507b[_0x5a5996(0x1d3)](_0xa74bf9=>_0x3deaa9[_0x5a5996(0x1c8)](_0xa74bf9,_0x5a5996(0x15e)));const _0x7f060=_0x1d9b2b({'editor':_0x1fdc89,'reply':_0x3deaa9,'interaction':_0x434901,'groups':_0x3d6042,'transform':!0x0,'documentCompare':_0x2d8e64,'documentCompareOptions':{'anchor':_0x5a5996(0x190),'markDeletions':!0x0}});let _0x364cdf;_0x37ae64&&this[_0x5a5996(0x203)](_0x37ae64[_0x5a5996(0x287)]),_0x1fdc89[_0x5a5996(0x201)][_0x5a5996(0x209)](_0x56f748=>{const _0x28d96b=_0x5a5996;_0x364cdf=_0x56f748[_0x28d96b(0x244)],_0x1fdc89[_0x28d96b(0x1a6)][_0x28d96b(0x157)](_0x28d96b(0x222))[_0x28d96b(0x15c)](_0x7f060),this[_0x28d96b(0x213)][_0x28d96b(0x20f)](_0x28d96b(0x261));}),this[_0x5a5996(0x1eb)][_0x5a5996(0x282)](_0x364cdf,{'interactionId':_0x434901['id'],'replyId':_0x3deaa9['id'],'indexes':_0x1c507b[_0x5a5996(0x1c6)]()});}[_0x146c6f(0x26c)](_0x136f83){const _0x5d3cf7=_0x146c6f,_0x419a24=_0x4fb5fe(this[_0x5d3cf7(0x249)]),_0x6f5135=this[_0x5d3cf7(0x249)][_0x5d3cf7(0x1a6)][_0x5d3cf7(0x157)](_0x3b0268),{reply:_0xf29623,interaction:_0x3e0179}=this[_0x5d3cf7(0x1d0)](_0x136f83[_0x5d3cf7(0x27d)]),_0x2e51ef=this[_0x5d3cf7(0x279)](_0x136f83[_0x5d3cf7(0x27d)],_0x136f83[_0x5d3cf7(0x295)]),_0x447b9f=void 0x0!==_0x136f83[_0x5d3cf7(0x295)]?[_0xf29623[_0x5d3cf7(0x275)][_0x136f83[_0x5d3cf7(0x295)]]]:_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x17e)](_0x52cf0a=>_0x5d3cf7(0x1e6)==_0x52cf0a[_0x5d3cf7(0x22f)]),_0x3cd258=_0x447b9f[_0x5d3cf7(0x286)](_0x1438c5=>_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x24c)](_0x1438c5));_0x3cd258[_0x5d3cf7(0x1d3)](_0x1cc4d7=>_0xf29623[_0x5d3cf7(0x1c8)](_0x1cc4d7,_0x5d3cf7(0x15e)));const _0x251888=_0x1d9b2b({'editor':_0x419a24,'reply':_0xf29623,'interaction':_0x3e0179,'groups':_0x447b9f,'transform':!0x0,'documentCompare':_0x6f5135,'documentCompareOptions':{'anchor':_0x5d3cf7(0x190),'markDeletions':!0x1}});let _0x1fc0ee;_0x2e51ef&&this[_0x5d3cf7(0x203)](_0x2e51ef[_0x5d3cf7(0x287)]),_0x419a24[_0x5d3cf7(0x201)][_0x5d3cf7(0x209)](_0x510420=>{const _0x4f2ce0=_0x5d3cf7;_0x1fc0ee=_0x510420[_0x4f2ce0(0x244)];for(const _0x58b2b6 of _0x251888)_0x58b2b6[_0x4f2ce0(0x1ef)]=_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x1f9)][_0x4f2ce0(0x1a7)],_0x510420[_0x4f2ce0(0x244)][_0x4f2ce0(0x18e)](_0x58b2b6),_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x232)](_0x58b2b6);}),this[_0x5d3cf7(0x1eb)][_0x5d3cf7(0x282)](_0x1fc0ee,{'interactionId':_0x3e0179['id'],'replyId':_0xf29623['id'],'indexes':_0x3cd258[_0x5d3cf7(0x1c6)]()});}[_0x146c6f(0x271)](_0x7d44ca,_0xc77ef1){const _0xe6f8ea=_0x146c6f,_0x305165=_0x4fb5fe(this[_0xe6f8ea(0x249)]),_0x33adc7=this[_0xe6f8ea(0x279)](_0x7d44ca,_0xc77ef1),_0x307f2f=this[_0xe6f8ea(0x249)][_0xe6f8ea(0x1a6)][_0xe6f8ea(0x157)](_0x48863f);if(!_0x33adc7)return void _0x307f2f[_0xe6f8ea(0x160)]();const {range:_0x4c3400,currentIndex:_0x57dedd,previousIndex:_0x4b1b1a,nextIndex:_0x46b481}=_0x33adc7;if(this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x27d)]==_0x7d44ca&&this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x295)]==_0x57dedd)return;this[_0xe6f8ea(0x14f)]={'replyId':_0x7d44ca,'partIndex':_0x57dedd};const _0xec23a2=new _0x49331d(_0x305165[_0xe6f8ea(0x234)],{'showDiff':this[_0xe6f8ea(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0xe6f8ea(0x193)},'hideHeader':!0x0}),{reply:_0x5259e6}=this[_0xe6f8ea(0x1d0)](_0x7d44ca),_0x4c249d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x5259e6[_0xe6f8ea(0x275)][_0x57dedd]],'documentContextContent':_0x5259e6[_0xe6f8ea(0x18b)],'showDiff':this[_0xe6f8ea(0x18f)]});_0xec23a2[_0xe6f8ea(0x1fd)]({'parts':_0x4c249d,'renderingStrategy':_0xe6f8ea(0x1cf)});const _0x969617=_0x57dedd!==_0x4b1b1a;this[_0xe6f8ea(0x203)](_0x4c3400,!0x0),_0x307f2f[_0xe6f8ea(0x272)]({'index':_0x57dedd,'title':_0xe6f8ea(0x239)+(_0x57dedd+0x1),'icon':_0x32d524,'mainView':_0xec23a2,'showRotator':_0x969617,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c3400]}),this[_0xe6f8ea(0x212)][_0xe6f8ea(0x230)](_0x7d44ca,_0x57dedd),this[_0xe6f8ea(0x228)](_0xec23a2,_0xe6f8ea(0x207),(_0x41a08b,{showDiff:_0x28ea3f})=>{const _0x458fb6=_0xe6f8ea;this[_0x458fb6(0x18f)]=_0x28ea3f;const {reply:_0x30d9d4}=this[_0x458fb6(0x1d0)](_0x7d44ca),_0x3fa95d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x30d9d4[_0x458fb6(0x275)][_0x57dedd]],'documentContextContent':_0x30d9d4[_0x458fb6(0x18b)],'showDiff':_0x28ea3f});_0xec23a2[_0x458fb6(0x1fd)]({'parts':_0x3fa95d,'renderingStrategy':_0x458fb6(0x1cf)});}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x183),()=>{const _0x49b45a=_0xe6f8ea;this[_0x49b45a(0x26c)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0x49b45a(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0x49b45a(0x160)]();}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x165),()=>{const _0xe3265c=_0xe6f8ea;this[_0xe3265c(0x263)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0xe3265c(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0xe3265c(0x160)]();}),_0x969617&&(this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x258),()=>{const _0x3e6ca8=_0xe6f8ea;this[_0x3e6ca8(0x271)](_0x7d44ca,_0x46b481);}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x26a),()=>{const _0x1ec62b=_0xe6f8ea;this[_0x1ec62b(0x271)](_0x7d44ca,_0x4b1b1a);})),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x1ab),()=>{const _0x1b2646=_0xe6f8ea;this[_0x1b2646(0x1be)](_0x307f2f),this[_0x1b2646(0x1be)](_0xec23a2),this[_0x1b2646(0x14f)]=null;});}[_0x146c6f(0x279)](_0x356f44,_0x39c11f){const _0x2ac9d1=_0x146c6f,_0x57a4b0=_0x4fb5fe(this[_0x2ac9d1(0x249)]),{reply:_0x1d614b,interaction:_0x362b0a}=this[_0x2ac9d1(0x1d0)](_0x356f44),_0x2a2c95=_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x17e)](_0x2b1c7d=>_0x2ac9d1(0x1e6)==_0x2b1c7d[_0x2ac9d1(0x22f)]),_0x388fdf=_0x2a2c95[_0x2ac9d1(0x286)](_0x1c7e0a=>_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x24c)](_0x1c7e0a));void 0x0===_0x39c11f&&(_0x39c11f=_0x388fdf[0x0]);const _0x568081=_0x388fdf[_0x2ac9d1(0x24c)](_0x39c11f);if(-0x1==_0x568081)return null;const _0x2a806f=0x0==_0x568081?_0x388fdf[_0x388fdf[_0x2ac9d1(0x1c7)]-0x1]:_0x388fdf[_0x568081-0x1],_0x289d89=_0x568081==_0x388fdf[_0x2ac9d1(0x1c7)]-0x1?_0x388fdf[0x0]:_0x388fdf[_0x568081+0x1],_0xc8a77d=_0x2a2c95[_0x568081],_0x3c0d9a=new _0x21c873([]),_0x188f55=new _0x21c873([]);for(const _0x3ab85c of _0xc8a77d[_0x2ac9d1(0x1ad)])if(_0x2ac9d1(0x1f3)!=_0x3ab85c[_0x2ac9d1(0x1bd)]&&_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3ab85c[_0x2ac9d1(0x22b)][_0x2ac9d1(0x164)](!0x0)),_0x2ac9d1(0x1fc)!=_0x3ab85c[_0x2ac9d1(0x1bd)]){const _0x36c37c=_0x586b98(_0x5c5d6d=>_0x20f1b1(_0x5c5d6d,_0x2ac9d1(0x1db))==_0x3ab85c['id'],_0x1d614b[_0x2ac9d1(0x18b)],!0x0);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x36c37c[_0x2ac9d1(0x164)](!0x0));}if(0x0==_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1c7)]){if(_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)]){const _0x4c68a5=_0x9810c1(_0x2ac9d1(0x1db),_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)],_0x1d614b[_0x2ac9d1(0x18b)]);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x4c68a5[_0x2ac9d1(0x1dd)]&&(_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)));}else{const _0x3eb5a3=_0x1d614b[_0x2ac9d1(0x18b)][_0x2ac9d1(0x28e)][0x0];if(!_0x3eb5a3)return null;_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0));}}const _0x1a3c0b=_0x362b0a[_0x2ac9d1(0x266)](),_0x3eb98b=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x1a3c0b[_0x2ac9d1(0x189)]),_0x315d9b=_0x2270eb(_0x3c0d9a),_0x4127d3=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x4a67e8=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x5c3991=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x16c)](_0x4127d3,0x0),_0xb4b405=_0x2270eb(_0x188f55),_0x36c1b2={'anchor':_0x5c3991,'markDeletions':!0x1},_0x1aa5d8=_0x57a4b0[_0x2ac9d1(0x1a6)][_0x2ac9d1(0x157)](_0x3b0268)[_0x2ac9d1(0x205)](_0x315d9b,_0xb4b405,_0x36c1b2)[_0x2ac9d1(0x18d)]();if(!_0x1aa5d8[_0x2ac9d1(0x1c7)])return null;_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x209)](_0x585d25=>{const _0x5c1e4b=_0x2ac9d1;for(const _0x3f340a of _0x1aa5d8)if(_0x5c1e4b(0x163)==_0x3f340a[_0x5c1e4b(0x1bd)]){const _0x53a84c=_0x3f340a[_0x5c1e4b(0x1fa)],_0x3c0014=_0x3f340a[_0x5c1e4b(0x1ff)],_0x44140c=new _0x51a3f(_0x53a84c,_0x3c0014);_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x44140c),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x44140c);}else _0x3f340a[_0x5c1e4b(0x1ef)]=null,_0x3f340a[_0x5c1e4b(0x16e)]=!0x1,_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x3f340a),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x3f340a);});const _0x55fca0=_0x4b622b(_0x57a4b0,_0x1aa5d8,_0x4127d3);_0x51a626(_0x57a4b0[_0x2ac9d1(0x201)],_0x55fca0);const _0x57aa61=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3e4c7a=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x101be1=[];let _0x2a84f0=_0x4127d3,_0x1a5cfb=_0x4a67e8;for(let _0x2456b3=0x0;_0x2456b3<_0x3e4c7a[_0x2ac9d1(0x1c7)];_0x2456b3++){const _0x50c47d=_0x2a84f0[_0x2ac9d1(0x21a)]-_0x3e4c7a[_0x2456b3];_0x101be1[_0x2456b3]=_0x1a5cfb[_0x2ac9d1(0x21a)]-_0x50c47d,_0x2a84f0=_0x2a84f0[_0x2ac9d1(0x220)](_0x3e4c7a[_0x2456b3]),_0x1a5cfb=_0x1a5cfb[_0x2ac9d1(0x220)](_0x101be1[_0x2456b3]);}const _0x5bad7d=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x57aa61),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x101be1)),_0x193fb6=_0x4a67e8[_0x2ac9d1(0x196)](0x0)[_0x2ac9d1(0x1f1)](_0x49a695),_0x2660ea=Array[_0x2ac9d1(0x28d)](_0x3eb98b[_0x2ac9d1(0x1e8)]())[_0x2ac9d1(0x176)](_0x398d02=>_0x398d02[_0x2ac9d1(0x1f1)](_0x49a695)==_0x193fb6)[_0x2ac9d1(0x27a)](),_0x294cae=_0x5bad7d[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3802b0=_0x5bad7d[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)]();_0x294cae[0x0]=_0x2660ea[0x0]+_0x294cae[0x0],_0x3802b0[0x0]=_0x2660ea[0x0]+_0x3802b0[0x0];let _0x2af162=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x294cae),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x3802b0));const _0x2713ba=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x15d)][_0x2ac9d1(0x18d)](_0x1a3c0b[_0x2ac9d1(0x1a7)]);for(const _0x3f60d5 of _0x2713ba)_0x2af162=_0x148a01[_0x2ac9d1(0x1d1)](_0x2af162[_0x2ac9d1(0x215)](_0x3f60d5));return{'range':_0x2af162,'previousIndex':_0x2a806f,'nextIndex':_0x289d89,'currentIndex':_0x39c11f};}[_0x146c6f(0x19c)](_0x5e2143){const _0x40efba=_0x146c6f;if(!_0x5e2143[_0x40efba(0x1a6)][_0x40efba(0x1af)](_0x40efba(0x17d)))return;const _0x23fc70=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x251)),_0x3f90f0=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x281));this[_0x40efba(0x228)](_0x23fc70,_0x40efba(0x200),(_0x3a6506,_0x310ea3,_0x574b0e)=>{const _0x2c727a=_0x40efba,_0x4f92ae=this[_0x2c727a(0x1eb)][_0x2c727a(0x157)](_0x310ea3);if(!_0x4f92ae)return;const _0x10d03b=this[_0x2c727a(0x242)][_0x2c727a(0x23e)](_0x4f92ae[_0x2c727a(0x15b)])[_0x2c727a(0x265)](_0x4f92ae[_0x2c727a(0x27d)]);_0x4f92ae[_0x2c727a(0x1a9)][_0x2c727a(0x1d3)](_0x22c8bd=>_0x10d03b[_0x2c727a(0x1c8)](_0x22c8bd,_0x2c727a(0x1e6))),this[_0x2c727a(0x1eb)][_0x2c727a(0x14c)](_0x310ea3),this[_0x2c727a(0x1eb)][_0x2c727a(0x282)](_0x574b0e,_0x4f92ae);}),this[_0x40efba(0x228)](_0x3f90f0,_0x40efba(0x200),(_0x239537,_0x1cc49c,_0x2a30ba)=>{const _0x5981cc=_0x40efba,_0x3e1d0f=this[_0x5981cc(0x1eb)][_0x5981cc(0x157)](_0x1cc49c);if(!_0x3e1d0f)return;const _0xed55a9=this[_0x5981cc(0x242)][_0x5981cc(0x23e)](_0x3e1d0f[_0x5981cc(0x15b)])[_0x5981cc(0x265)](_0x3e1d0f[_0x5981cc(0x27d)]);_0x3e1d0f[_0x5981cc(0x1a9)][_0x5981cc(0x1d3)](_0x1434c7=>_0xed55a9[_0x5981cc(0x1c8)](_0x1434c7,_0x5981cc(0x15e))),this[_0x5981cc(0x1eb)][_0x5981cc(0x14c)](_0x1cc49c),this[_0x5981cc(0x1eb)][_0x5981cc(0x282)](_0x2a30ba,_0x3e1d0f);});}async[_0x146c6f(0x221)](_0x104ed5){const _0xb8c27f=_0x146c6f;this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x48863f)[_0xb8c27f(0x160)](),this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x1cf)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x0),await this[_0xb8c27f(0x172)]();try{const _0x466c5e=this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x56d072);this[_0xb8c27f(0x16d)]('\x20'),_0x466c5e[_0xb8c27f(0x1b1)][_0xb8c27f(0x25d)](_0xb8c27f(0x291)),await this[_0xb8c27f(0x14a)](_0x104ed5);const {sessionId:_0x5535e4}=this[_0xb8c27f(0x213)][_0xb8c27f(0x195)]();await this[_0xb8c27f(0x242)][_0xb8c27f(0x177)](_0x104ed5,_0x5535e4),this[_0xb8c27f(0x242)][_0xb8c27f(0x20c)]()&&this[_0xb8c27f(0x242)][_0xb8c27f(0x169)](_0x24c83d(this[_0xb8c27f(0x249)][_0xb8c27f(0x234)],_0xb8c27f(0x175)));}catch(_0xb118b){console[_0xb8c27f(0x1f2)](_0xb8c27f(0x22c),_0xb118b);}finally{this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x204)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x1);}}[_0x146c6f(0x1e1)](_0x1e891e){const _0x348aee=_0x146c6f;this[_0x348aee(0x242)]['id']===_0x1e891e&&this[_0x348aee(0x14a)]();}async[_0x146c6f(0x277)](){const _0x131946=_0x146c6f,_0x2908c3=this[_0x131946(0x213)][_0x131946(0x292)]();this[_0x131946(0x242)]?.[_0x131946(0x290)](_0x2908c3),this[_0x131946(0x242)]?.[_0x131946(0x169)](_0x24c83d(this[_0x131946(0x249)][_0x131946(0x234)],_0x131946(0x175)));}[_0x146c6f(0x24d)](){const _0x16d086=_0x146c6f;this[_0x16d086(0x242)]?.[_0x16d086(0x276)]();}[_0x146c6f(0x1b0)](){const _0x867953=_0x146c6f;this[_0x867953(0x212)][_0x867953(0x1b0)]();}async[_0x146c6f(0x16b)](){const _0x21fc3d=_0x146c6f;await this[_0x21fc3d(0x14a)]();}async[_0x146c6f(0x1f8)]({message:_0x5ec96a,quickActionData:_0x6f9d79}){const _0x17e077=_0x146c6f;await this[_0x17e077(0x211)]({'userMessage':_0x5ec96a,'quickActionData':_0x6f9d79});}[_0x146c6f(0x294)](){const _0x4e419c=_0x146c6f,_0xc2d882=this[_0x4e419c(0x249)][_0x4e419c(0x1e0)][_0x4e419c(0x157)](_0x4e419c(0x1ed));if(!_0xc2d882)throw new _0x3c810f(_0x4e419c(0x187),this);return _0xc2d882;}async[_0x146c6f(0x14a)](_0x3fa82f){const _0x923a87=_0x146c6f,_0x4d9874=this[_0x923a87(0x249)][_0x923a87(0x1a6)][_0x923a87(0x157)](_0x48863f);let _0x38e0d5;_0x4d9874[_0x923a87(0x18c)]&&_0x4d9874[_0x923a87(0x160)](),_0x38e0d5=_0x3fa82f||!this[_0x923a87(0x242)]?this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x1a5)):this[_0x923a87(0x242)][_0x923a87(0x145)]['id'],await this[_0x923a87(0x172)]();const _0x36cb66=this[_0x923a87(0x294)](),_0x51fd33=_0x3fa82f||_0x1bad92();this[_0x923a87(0x242)]=new _0x23da83({'connector':this[_0x923a87(0x19e)],'chatModels':this[_0x923a87(0x24b)],'defaultModelId':_0x38e0d5,'conversationId':_0x51fd33,'group':_0x36cb66,'getEditor':()=>_0x4fb5fe(this[_0x923a87(0x249)])}),this[_0x923a87(0x242)]['on'](_0x923a87(0x285),(_0xc8321b,_0x634ced)=>{const _0x1be2be=_0x923a87;_0x634ced[_0x1be2be(0x26d)]=this[_0x1be2be(0x28b)](_0x634ced[_0x1be2be(0x26d)],this[_0x1be2be(0x249)][_0x1be2be(0x1e0)][_0x1be2be(0x157)](_0x1be2be(0x156))),this[_0x1be2be(0x212)][_0x1be2be(0x19f)](_0x634ced),this[_0x1be2be(0x212)][_0x1be2be(0x1ce)](),this[_0x1be2be(0x212)][_0x1be2be(0x21f)](),this[_0x1be2be(0x212)][_0x1be2be(0x27e)](),_0x3fa82f||(this[_0x1be2be(0x212)][_0x1be2be(0x1a0)](),this[_0x1be2be(0x242)]?.[_0x1be2be(0x169)](_0x24c83d(this[_0x1be2be(0x249)][_0x1be2be(0x234)],_0x1be2be(0x175))));}),this[_0x923a87(0x242)]['on'](_0x923a87(0x278),(_0x3118da,_0xd04ef9)=>{const _0x2fd259=_0x923a87;this[_0x2fd259(0x212)][_0x2fd259(0x252)](_0xd04ef9[_0x2fd259(0x162)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ac),(_0x4faf6b,_0x2dfe63)=>{const _0x1d778f=_0x923a87;this[_0x1d778f(0x212)][_0x1d778f(0x1dc)](_0x2dfe63),this[_0x1d778f(0x212)][_0x1d778f(0x1b5)](_0x2dfe63);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x161),(_0x1612e2,_0x332c97)=>{const _0x40b6a4=_0x923a87;this[_0x40b6a4(0x212)][_0x40b6a4(0x1f5)](_0x332c97);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x20b),async()=>{const _0x5f285e=_0x923a87;await this[_0x5f285e(0x212)][_0x5f285e(0x198)]();}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f7),(_0x512891,_0x2f6f40)=>{const _0x527da7=_0x923a87;this[_0x527da7(0x212)][_0x527da7(0x1c4)](_0x2f6f40['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x255),(_0x5344ef,_0x30719a,_0xe20752)=>{const _0x25c9c6=_0x923a87;this[_0x25c9c6(0x16d)](_0x30719a,_0xe20752);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x208),(_0x1929e0,_0x31c79c)=>{const _0x188038=_0x923a87;this[_0x188038(0x212)][_0x188038(0x25e)]({'isVisible':!0x0,'id':_0x31c79c[_0x188038(0x15b)]}),_0x188038(0x14e)===_0x31c79c[_0x188038(0x1bd)]?this[_0x188038(0x212)][_0x188038(0x216)](_0x31c79c):this[_0x188038(0x212)][_0x188038(0x238)](_0x31c79c);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ee),async(_0x5c9dfe,_0x27c7d9,_0x32805)=>{const _0x5bcb37=_0x923a87;await this[_0x5bcb37(0x264)]({'reply':_0x27c7d9,'changeGroups':_0x32805});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x293),(_0x173bcf,{reply:_0x5f4006,index:_0x349a74,state:_0x26d07c})=>{const _0x657cfa=_0x923a87;this[_0x657cfa(0x212)][_0x657cfa(0x171)]({'id':_0x5f4006['id'],'index':_0x349a74,'state':_0x26d07c});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1a8),(_0x55f59c,_0x2ecce4)=>{const _0x2a59c1=_0x923a87;if(this[_0x2a59c1(0x212)][_0x2a59c1(0x16a)](_0x2ecce4[_0x2a59c1(0x28f)],_0x2ecce4[_0x2a59c1(0x1b7)]),_0x2a59c1(0x247)===_0x2ecce4[_0x2a59c1(0x28f)][_0x2a59c1(0x1bd)]){const _0x446327=[..._0x4fb5fe(this[_0x2a59c1(0x249)])[_0x2a59c1(0x201)][_0x2a59c1(0x1f9)][_0x2a59c1(0x247)][_0x2a59c1(0x17b)]()];this[_0x2a59c1(0x213)][_0x2a59c1(0x250)](_0x446327,_0x2a59c1(0x179)+this[_0x2a59c1(0x242)]?.['id']);}}),this[_0x923a87(0x242)]['on'](_0x923a87(0x17c),(_0x136528,_0x5ee0be)=>{const _0x125d5a=_0x923a87;this[_0x125d5a(0x212)][_0x125d5a(0x152)](_0x5ee0be[_0x125d5a(0x231)]),_0x125d5a(0x26e)==_0x5ee0be[_0x125d5a(0x231)]&&this[_0x125d5a(0x24d)](),_0x125d5a(0x247)===_0x5ee0be[_0x125d5a(0x1bd)]&&this[_0x125d5a(0x213)][_0x125d5a(0x20f)](_0x125d5a(0x179)+this[_0x125d5a(0x242)]?.['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x241),(_0x354fb0,_0x298821)=>{const _0xe91c87=_0x923a87;this[_0xe91c87(0x212)][_0xe91c87(0x191)](_0x298821[_0xe91c87(0x28f)][_0xe91c87(0x231)],_0x298821[_0xe91c87(0x1b7)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x146),(_0xda7dd,_0x2e9be6)=>{const _0x39db42=_0x923a87;this[_0x39db42(0x212)][_0x39db42(0x14d)](_0x2e9be6[_0x39db42(0x20e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x235),(_0x3c47cb,_0xca6007)=>{const _0x7d4569=_0x923a87;this[_0x7d4569(0x212)][_0x7d4569(0x22a)](_0xca6007[_0x7d4569(0x21e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x194),(_0x57df87,_0x354570)=>{const _0x58d379=_0x923a87;this[_0x58d379(0x212)][_0x58d379(0x274)](_0x354570[_0x58d379(0x225)],_0x354570[_0x58d379(0x185)],_0x354570[_0x58d379(0x158)],_0x354570[_0x58d379(0x155)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x159),(_0x5b4cff,_0x543766)=>{const _0x3dac28=_0x923a87;this[_0x3dac28(0x212)][_0x3dac28(0x20d)](_0x543766[_0x3dac28(0x225)],_0x543766[_0x3dac28(0x25b)],_0x543766[_0x3dac28(0x170)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f0),(_0xfd185f,_0x4d221b)=>{const _0x23a80a=_0x923a87;this[_0x23a80a(0x212)][_0x23a80a(0x240)](_0x4d221b);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x270),(_0x25970b,_0x2ad7a1)=>{const _0x5aacef=_0x923a87;this[_0x5aacef(0x212)][_0x5aacef(0x23a)](_0x2ad7a1[_0x5aacef(0x145)],_0x2ad7a1[_0x5aacef(0x1c5)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f2),(_0xc29d81,{error:_0x459e62,interactionId:_0x154949,fileName:_0x78bb60,url:_0x3497ac,sourceId:_0x2f1c00,sourceLabel:_0x436fa6})=>{const _0x3292e9=_0x923a87,_0x4b28ef=_0x154949?_0x154949+':'+_0x1bad92():_0x1bad92();_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x19d))?this[_0x3292e9(0x212)][_0x3292e9(0x273)]({'staticMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1da)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x22e))||_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27f))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x178)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x1cb))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1d7),_0x78bb60),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x153))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24e),_0x3497ac),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x202))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x237)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27b))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x289)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x180))?(_0x2f1c00&&this[_0x3292e9(0x212)][_0x3292e9(0x147)](_0x2f1c00),this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24a),_0x436fa6||_0x3292e9(0x185)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x199))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x188)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1b2)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62));}),await this[_0x923a87(0x242)][_0x923a87(0x173)](this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x288))),_0x3fa82f||await this[_0x923a87(0x242)][_0x923a87(0x182)]();}async[_0x146c6f(0x211)]({userMessage:_0x4e29e8,quickActionData:_0x20eeeb}){const _0x5465c3=_0x146c6f;if(!this[_0x5465c3(0x242)])throw new _0x3c810f(_0x5465c3(0x19b));this[_0x5465c3(0x242)][_0x5465c3(0x236)]()&&await this[_0x5465c3(0x242)][_0x5465c3(0x1e4)](this[_0x5465c3(0x213)][_0x5465c3(0x195)]()),this[_0x5465c3(0x242)]['id']&&this[_0x5465c3(0x242)][_0x5465c3(0x21d)]&&await this[_0x5465c3(0x242)][_0x5465c3(0x283)]({'userMessage':_0x4e29e8,'quickActionData':_0x20eeeb}),this[_0x5465c3(0x22d)]();}[_0x146c6f(0x22d)](){const _0x2c25af=_0x146c6f,_0x53e65b=_0x4fb5fe(this[_0x2c25af(0x249)])[_0x2c25af(0x201)],_0x576080=Array[_0x2c25af(0x28d)](_0x53e65b[_0x2c25af(0x262)][_0x2c25af(0x1e5)](_0x3f0bb6));_0x53e65b[_0x2c25af(0x209)](_0x3bfb35=>{const _0x210e32=_0x2c25af;_0x576080[_0x210e32(0x1d3)](_0x1274eb=>_0x3bfb35[_0x210e32(0x1ba)](_0x1274eb));});}[_0x146c6f(0x1ec)](){const _0x4c927e=_0x146c6f;console[_0x4c927e(0x174)](_0x4c927e(0x19a));}[_0x146c6f(0x1e2)](_0x3bae7a){const _0x286951=_0x146c6f;this[_0x286951(0x212)][_0x286951(0x256)](_0x3bae7a);}[_0x146c6f(0x267)](_0x19f254){const _0x171167=_0x146c6f;_0x2e819b(_0x19f254[_0x171167(0x284)]);}[_0x146c6f(0x27c)](_0xb20d4c){const _0x36d165=_0x146c6f;this[_0x36d165(0x242)]?.[_0x36d165(0x246)](_0xb20d4c);}[_0x146c6f(0x1e7)](){const _0x10e490=_0x146c6f;this[_0x10e490(0x242)]?.[_0x10e490(0x28a)]();}[_0x146c6f(0x218)](){const _0x2b1fa8=_0x146c6f;this[_0x2b1fa8(0x242)]?.[_0x2b1fa8(0x150)]();}[_0x146c6f(0x1d0)](_0xfadf9c){const _0x57b812=_0x146c6f,[_0x48355d,_0x5c7f19]=_0xfadf9c[_0x57b812(0x25c)](':'),_0x8bbdb7=this[_0x57b812(0x242)][_0x57b812(0x23e)](_0x48355d),_0x15a9af=_0x8bbdb7[_0x57b812(0x265)](_0x5c7f19);return{'interaction':_0x8bbdb7,'reply':_0x15a9af};}[_0x146c6f(0x203)](_0x22431f,_0x598575=!0x1){const _0x116560=_0x146c6f,_0x1c4388=_0x4fb5fe(this[_0x116560(0x249)]),_0xc59a27={'target':_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1b1)][_0x116560(0x223)][_0x116560(0x1b4)](_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1f6)][_0x116560(0x1df)](_0x22431f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x598575};_0x598575&&(_0xc59a27[_0x116560(0x28c)]=!0x0),_0x39bad2(_0xc59a27);}[_0x146c6f(0x16d)](_0xc7dcf2,_0x141959=!0x1){const _0x2b99d9=_0x146c6f;this[_0x2b99d9(0x212)][_0x2b99d9(0x255)](_0xc7dcf2||_0x24c83d(this[_0x2b99d9(0x249)][_0x2b99d9(0x234)],_0x2b99d9(0x25a)),_0x141959);}[_0x146c6f(0x28b)](_0x3b8b02,_0x319db9){const _0x507a28=_0x146c6f;let _0x487c98;if(_0x319db9){_0x487c98=[];const _0x237b45=_0x507a28(0x20a)==typeof _0x319db9?[_0x319db9[_0x507a28(0x154)]()]:_0x319db9[_0x507a28(0x286)](_0x85b148=>_0x85b148[_0x507a28(0x154)]());for(const _0xb11d75 of _0x237b45)for(const _0x31c3aa of _0x3b8b02)(_0x31c3aa['id'][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x243)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x1aa)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa['id'][_0x507a28(0x154)]()[_0x507a28(0x1d5)](_0xb11d75))&&_0x487c98[_0x507a28(0x151)](_0x31c3aa);}else _0x487c98=_0x3b8b02;return _0x487c98;}async[_0x146c6f(0x264)]({reply:_0x188ff4,changeGroups:_0x1e2dde,renderingStrategy:_0x1659a4}){const _0x3433c7=_0x146c6f,{id:_0x14d339,isDone:_0x132a8b,type:_0x16df68,parsedContent:_0x15c067}=_0x188ff4;if(_0x3433c7(0x219)===_0x16df68){const _0x3f2f41=_0x4fb5fe(this[_0x3433c7(0x249)]),_0x28ab0c=_0x2d7cdf({'editor':_0x3f2f41,'showDiff':this[_0x3433c7(0x212)][_0x3433c7(0x280)],'changeGroups':_0x1e2dde,'documentContextContent':_0x188ff4[_0x3433c7(0x18b)]});await this[_0x3433c7(0x212)][_0x3433c7(0x1f4)]({'id':_0x14d339,'parts':_0x28ab0c,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});}else _0x3433c7(0x14e)===_0x16df68&&await this[_0x3433c7(0x212)][_0x3433c7(0x23b)]({'id':_0x14d339,'parsedContent':_0x15c067,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});_0x132a8b&&_0x188ff4[_0x3433c7(0x210)][_0x3433c7(0x1c7)]>0x0&&this[_0x3433c7(0x212)][_0x3433c7(0x1ca)](_0x14d339,_0x188ff4[_0x3433c7(0x210)]);}async[_0x146c6f(0x172)](){const _0x277de6=_0x146c6f,_0x1f65b9=this[_0x277de6(0x242)]?.[_0x277de6(0x1e9)];_0x1f65b9&&(_0x1f65b9[_0x277de6(0x217)](),this[_0x277de6(0x212)][_0x277de6(0x1fb)](_0x1f65b9));}async[_0x146c6f(0x1a2)](){const _0x2accd8=_0x146c6f,_0x4af824=this[_0x2accd8(0x242)]?.[_0x2accd8(0x1e9)];if(_0x4af824){for await(const _0x17112a of _0x4af824[_0x2accd8(0x23f)])await this[_0x2accd8(0x264)]({'reply':_0x17112a,'changeGroups':_0x17112a[_0x2accd8(0x275)],'renderingStrategy':_0x2accd8(0x1cf)});}}}
23
+ const _0x56431e=_0x375f;(function(_0x346b26,_0x39455a){const _0x13c9cb=_0x375f,_0x3da9b4=_0x346b26();while(!![]){try{const _0x17ba76=-parseInt(_0x13c9cb(0x220))/0x1+parseInt(_0x13c9cb(0x172))/0x2+-parseInt(_0x13c9cb(0x222))/0x3+-parseInt(_0x13c9cb(0x231))/0x4+parseInt(_0x13c9cb(0x1c9))/0x5+-parseInt(_0x13c9cb(0x25f))/0x6*(-parseInt(_0x13c9cb(0x22a))/0x7)+-parseInt(_0x13c9cb(0x1a1))/0x8*(-parseInt(_0x13c9cb(0x17a))/0x9);if(_0x17ba76===_0x39455a)break;else _0x3da9b4['push'](_0x3da9b4['shift']());}catch(_0x548e0d){_0x3da9b4['push'](_0x3da9b4['shift']());}}}(_0x3301,0x4f079));import{ContextPlugin as _0x1219e7,Editor as _0x21ce81}from'ckeditor5/src/core.js';import{CKEditorError as _0x3661c1,logError as _0x116548,scrollViewportToShowTarget as _0x55a9fe,uid as _0x12eb43}from'ckeditor5/src/utils.js';import{AIConnector as _0x5410a8}from'../aicore/aiconnector.js';import{AITabs as _0x570d7d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x14ab1c}from'./model/aichatconversation.js';import{getTranslation as _0x44f0a3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x503260}from'../aicore/aiediting.js';function _0x3301(){const _0x210b68=['_previewedChangeGroup','toViewRange','getGroupId','loadConversation','domConverter','AI_CHAT_CONTEXT_INVALID_DATA','lastInteraction','rejectSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','afterInit','isDisabled','changes','resizeTabs','sourceResourcesLoaded','ai-chat-conversation-init-failed','_toggleWebSearch','filter','897625MdHXqR','text-delta','applyOperation','addUrlToContext','getAttribute','ai.chat.context','version','howMany','addContextItem','documentContextContent','cloneNode','forEach','ai.chat.models.defaultModelId','updateResourceState','ai-chat-source-resources-load-failed','ai-chat-resource-load-failed','getDocumentContext','current-document','range','root','AIChatUI','streaming','_aiChatUi','_applySuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','startInteraction','isOfficialPlugin','updateCapabilities','createPositionAt','main','AITabs','maxOffset','getChildAtOffset','getPath','_batchToChanges','interactionDestroyed','ai-chat-file-upload-failed','split','ai-chat-url-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','accepted','state','mouseOverSuggestion','isStarted','init','mouseLeaveSuggestion','log','AIChatController','finishInteraction','node','replyContentUpdated','ai-chat-missing-channel-id','indexes','_handleStartConversation','updateFeedInteractionHeader','_showConversationHistory','add','addFeedItemStaticMessage','isDocumentOperation','_setIsMaximized','string','Disliked\x20response','document','push','addSelectionToChatContext','dislike','resetConversationTitle','pluginName','editing','selectModel','open','setChangeGroupState','chat','query','slice','clearConversationContextUI','plugins','config','_balloonShowDiff','uiId','scrollFeedToSuggestion','setModel','resourceId','model','commands','setIsMaximized','showPrevious','605818xQxvix','startConversation','229341gATnhC','populateSourceResourceBalloon','removeFromContext','resizedTabs','ai-conversation-','contextItemRemoved','_createFromRanges','redo','170387puWLLJ','full','set','isOpen','_removeAISelectionMarkers','children','uploadProgressChanged','804708VBEJdC','modelSelected','getInteractionAndReplyById','_aiEditing','addFeedItemUserMessage','error','AI_CHAT_RESOURCE_LOAD_FAILED','_flushLastInteractionUI','sources','setContextItemLoading','toLocaleLowerCase','stopInteraction','ai-chat-context-invalid-data','resize','updateFeedItemAIReplySuggestionContent','from','end','getDocumentData','updateFeedItemAIReplySuggestionPartState','interactionStarted','indexOf','handleUserInteraction','_getDocumentRangeForReplyChanges','_openBalloonFor','sendUserMessage','_stopLastInteraction','start','AIEditing','isInContext','removeSelectionFromContext','setIsUploadInProgress','parse','isCurrentDocumentInConversation','updateConversationTitle','getTransformedByOperation','source','applySuggestion','addResourceToContext','getOperations','selectedModel','_aiChatModels','_handleUIUserMessage','listenTo','_insertSuggestion','replies','capabilitiesUpdated','18ySpJEm','addFileToContext','updateContent','getMarkersGroup','requires','_integrateEditor','contextItemLoadingEnded','new','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','load','removeContextItem','activeConversation','replyId','uid','type','mapper','removed','showNext','addFeedItemAIReply','Showing\x20conversation\x20history...','collaboration.channelId','has','resource','dialogClosed','addFilesToContext','history','addSelectionToContext','showDiff','_scrollToSuggestionRange','setAddContextOptions','loadSourceResources','AIConnector','getRanges','modification-delta','toggleSuggestionDisplayMode','viewRangeToDom','_applyOperationsAsSuggestions','name','toggleReasoning','editors','replyChangeGroupStateUpdated','options','addFeedInteractionHeader','getRoot','content','updateFeedItemAIReplySources','DocumentCompare','stopListening','contextItems','alignToTop','getSelectionText','undo','addFeedItemAISuggestion','AI_CHAT_ABORTED_MESSAGE','getInteraction','isPremiumPlugin','ai-chat-conversation-start-failed','focusPromptInput','removeMarker','pending','interactionId','setConversationContext','like','unshift','path','addContextOptionsChanged','interactionCreated','removeFeedInteraction','getFirstRange','find','get','data-id','ai-chat-controller-no-active-conversation','context','contextItemAdded','isUploadInProgress','message','data','resetMessageInput','static','baseVersion','ai-chat-controller-mouse-over','_logError','Failed\x20to\x20load\x20conversation','ai-chat-context-unsupported-type','availableModels','remove','createPositionFromPath','sendMessage','addFeedItemError','setSelectedModel','toggleWebSearch','markers','showChangeInText','sourceId','interactionFinished','delete','length','415038LbOaTC','rejected','handleRemovedConversation','Undo','ai.chat.models.displayedModels','toggleLoadingSkeleton','stop','anchorId','1368aCBHAE','rootName','_filterModels','contextItem','change','resources','nextSibling','_removeFromContext','selection','abortPromptStream','addCurrentDocumentToContext','contextSent','ready','setFeedItemRenderingStrategy','isLoading','close','AI_CHAT_UNABLE_TO_START_CONVERSATION','$graveyard','TrackChangesEditing','_aiConnector','addDocumentToContext','setConversationTitle','revert','sourcePosition','activateTab','startsWith','clearPendingContextUI','resourceStateChanged','view','removeSelectionFromChatContext','AI_BALLOON_HEADER_TITLE','replyCreated','isCurrentDocumentInContext','createRange','insertSuggestion','getDiff','updateCurrentDocumentInContext','_updateReplyContent','Liked\x20response','39320jbpzMy','provider','toString','changeGroups','getReply','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','showFakeVisualSelection','getChildren','hideFakeVisualSelection','createConversation','batch','getChild','map','locale','AI_CHAT_GENERIC_ERROR','_toggleReasoning','closeSourceResourceBalloon','ai-request-aborted','partIndex','updateFeedItemAIReplyContent','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addOperation','conversationInitialized'];_0x3301=function(){return _0x210b68;};return _0x3301();}import{AIChatModels as _0x4ac9d2}from'./model/aichatmodels.js';function _0x375f(_0x267dff,_0x326f3f){const _0x330171=_0x3301();return _0x375f=function(_0x375f72,_0x3ad4a1){_0x375f72=_0x375f72-0x15b;let _0x21d99b=_0x330171[_0x375f72];return _0x21d99b;},_0x375f(_0x267dff,_0x326f3f);}import{getEditorFromContext as _0x2a5e53}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x592911,DATA_ID_MODEL_ATTRIBUTE as _0x4f5916}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2368f6}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x148580,getMinimalSelection as _0x332825,getSuggestionPartsFromReply as _0x5abdc2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x156604,_DetachOperation as _0x3b66d6}from'ckeditor5/src/engine.js';import{findOne as _0x544d4b,getAttribute as _0x42f699,serialize as _0x5b7905,Document as _0x428c01,findByAttribute as _0x489fa5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2a87d2}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5733e5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x3a6e81}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1219e7{[_0x56431e(0x234)];[_0x56431e(0x18d)];[_0x56431e(0x1df)];[_0x56431e(0x259)];[_0x56431e(0x1eb)]=new Map();[_0x56431e(0x1b8)]=null;[_0x56431e(0x217)]=!0x1;static get[_0x56431e(0x263)](){return[_0x5410a8,_0x3a6e81,_0x592911];}static get[_0x56431e(0x20c)](){const _0x551d36=_0x56431e;return _0x551d36(0x1f8);}static get[_0x56431e(0x1e3)](){return!0x0;}static get[_0x56431e(0x296)](){return!0x0;}[_0x56431e(0x1f5)](){const _0x3d249b=_0x56431e;this[_0x3d249b(0x18d)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x27e)),this[_0x3d249b(0x1df)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1dd)),this[_0x3d249b(0x234)]=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x24c)),this[_0x3d249b(0x259)]=new _0x4ac9d2({'connector':this[_0x3d249b(0x18d)]});const _0x2f8f56=this[_0x3d249b(0x2a8)][_0x3d249b(0x215)][_0x3d249b(0x2a5)](_0x3d249b(0x1e7));this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x221),()=>{const _0x2d0844=_0x3d249b;this[_0x2d0844(0x1fe)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x249),(_0x18a2b0,_0x2e9d2b)=>{const _0x1076a3=_0x3d249b;this[_0x1076a3(0x25a)]({'userMessage':_0x2e9d2b});}),this[_0x3d249b(0x25b)](_0x2f8f56,_0x3d249b(0x225),(_0x2ebfb2,_0x263d26)=>{const _0x66a01c=_0x3d249b;this[_0x66a01c(0x204)](_0x263d26);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1c4),()=>{const _0xd52c32=_0x3d249b;_0x2f8f56[_0xd52c32(0x23e)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x183),async()=>{const _0x1751c5=_0x3d249b;await this[_0x1751c5(0x24a)](),await this[_0x1751c5(0x238)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x18e),()=>{const _0x458306=_0x3d249b;this[_0x458306(0x26a)]?.[_0x458306(0x184)](_0x44f0a3(this[_0x458306(0x2a8)][_0x458306(0x1ae)],_0x458306(0x1c0)));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x260),(_0x585774,_0x264220)=>{const _0x25be2e=_0x3d249b;this[_0x25be2e(0x26a)]?.[_0x25be2e(0x277)](Array[_0x25be2e(0x240)](_0x264220));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1cc),(_0x12a505,_0x14045f)=>{const _0x3f2702=_0x3d249b;this[_0x3f2702(0x26a)]?.[_0x3f2702(0x1cc)](_0x14045f);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x256),(_0x19d1a3,_0x560808)=>{const _0x464486=_0x3d249b;this[_0x464486(0x26a)]?.[_0x464486(0x256)](_0x560808[_0x464486(0x254)],_0x560808[_0x464486(0x275)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x269),(_0x48cd0e,_0x260a7a)=>{const _0x998995=_0x3d249b;this[_0x998995(0x181)](_0x260a7a);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x27d),(_0x50afa5,_0x24870e)=>{const _0xfec5ca=_0x3d249b;this[_0xfec5ca(0x26a)]?.[_0xfec5ca(0x27d)](_0x24870e[_0xfec5ca(0x16e)],_0x24870e[_0xfec5ca(0x212)],_0x24870e[_0xfec5ca(0x26c)]);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16b),()=>{const _0x24a0d3=_0x3d249b;this[_0x24a0d3(0x1c7)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x285),()=>{const _0x594899=_0x3d249b;this[_0x594899(0x1b0)]();}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20e),(_0x2a9acc,_0xa32def)=>{const _0x2c5ee0=_0x3d249b;this[_0x2c5ee0(0x26a)]?.[_0x2c5ee0(0x21a)](_0xa32def);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x29d),(_0x1ab10c,{replyId:_0x3f8e23})=>{const _0x3d2e67=_0x3d249b;console[_0x3d2e67(0x1f7)](_0x3d2e67(0x1a0),_0x3f8e23);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x20a),(_0x35e714,{replyId:_0xd08cf6})=>{const _0x57f302=_0x3d249b;console[_0x57f302(0x1f7)](_0x57f302(0x206),_0xd08cf6);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x19c),(_0x2adf11,_0x2f5428)=>{const _0x2653f6=_0x3d249b;this[_0x2653f6(0x2a8)][_0x2653f6(0x215)][_0x2653f6(0x2a5)](_0x3a6e81)[_0x2653f6(0x189)](),this[_0x2653f6(0x25c)](_0x2f5428);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x16d),(_0x3718b4,{replyId:_0x242a8b,partIndex:_0x4b37d8})=>{const _0x4a94ae=_0x3d249b;this[_0x4a94ae(0x217)]=this[_0x4a94ae(0x1df)][_0x4a94ae(0x27a)],this[_0x4a94ae(0x248)](_0x242a8b,_0x4b37d8);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f3),(_0x4b7178,{replyId:_0x419819,partIndex:_0x239cdf})=>{const _0x43e4ae=_0x3d249b,_0x3ef282=this[_0x43e4ae(0x247)](_0x419819,_0x239cdf);_0x3ef282&&_0x43e4ae(0x18b)!=_0x3ef282[_0x43e4ae(0x1db)][_0x43e4ae(0x1dc)][_0x43e4ae(0x17b)]&&this[_0x43e4ae(0x234)][_0x43e4ae(0x1a7)]([_0x3ef282[_0x43e4ae(0x1db)]],_0x43e4ae(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1f6),()=>{const _0x6eda10=_0x3d249b;this[_0x6eda10(0x234)][_0x6eda10(0x1a9)](_0x6eda10(0x161));}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x255),(_0x39399c,_0x3f7850)=>{const _0x175ebd=_0x3d249b;this[_0x175ebd(0x2a8)][_0x175ebd(0x215)][_0x175ebd(0x2a5)](_0x3a6e81)[_0x175ebd(0x189)](),this[_0x175ebd(0x1e0)](_0x3f7850);}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x281),async(_0x311bf6,_0x52e54e)=>{const _0x43d792=_0x3d249b,{reply:_0x34ddd2}=this[_0x43d792(0x233)](_0x52e54e[_0x43d792(0x26b)]),_0x2e3ef2=_0x2a5e53(this[_0x43d792(0x2a8)]),_0x2b640d=_0x5abdc2({'editor':_0x2e3ef2,'changeGroups':_0x34ddd2[_0x43d792(0x1a4)],'documentContextContent':_0x34ddd2[_0x43d792(0x1d2)],'showDiff':_0x52e54e[_0x43d792(0x27a)]});await this[_0x43d792(0x1df)][_0x43d792(0x23f)]({'id':_0x34ddd2['id'],'parts':_0x2b640d,'renderingStrategy':_0x43d792(0x15f)});}),this[_0x3d249b(0x25b)](this[_0x3d249b(0x1df)],_0x3d249b(0x1bf),(_0x1f8817,{replyId:_0x27e7dd,partIndex:_0x22f832})=>{const _0x46e95c=_0x3d249b;this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x26b)]==_0x27e7dd&&this[_0x46e95c(0x1b8)]?.[_0x46e95c(0x1b3)]==_0x22f832&&this[_0x46e95c(0x2a8)][_0x46e95c(0x215)][_0x46e95c(0x2a5)](_0x3a6e81)[_0x46e95c(0x189)]();const {reply:_0x5ea8d8}=this[_0x46e95c(0x233)](_0x27e7dd);_0x5ea8d8[_0x46e95c(0x210)](_0x22f832,_0x46e95c(0x173)),this[_0x46e95c(0x234)][_0x46e95c(0x1a9)](_0x46e95c(0x161));});}async[_0x56431e(0x1c1)](){const _0x4188ab=_0x56431e;this[_0x4188ab(0x2a8)]instanceof _0x21ce81?this[_0x4188ab(0x264)](this[_0x4188ab(0x2a8)]):this[_0x4188ab(0x25b)](this[_0x4188ab(0x2a8)][_0x4188ab(0x286)],_0x4188ab(0x201),(_0x3c1042,_0x5259b1)=>{const _0x550c0f=_0x4188ab;_0x5259b1['on'](_0x550c0f(0x186),()=>{const _0x3486fd=_0x550c0f;this[_0x3486fd(0x264)](_0x5259b1);});}),await this[_0x4188ab(0x1fe)]();}[_0x56431e(0x25c)](_0x5cedef){const _0x9cb7c7=_0x56431e,_0x399ddf=_0x2a5e53(this[_0x9cb7c7(0x2a8)]);if(!_0x399ddf[_0x9cb7c7(0x215)][_0x9cb7c7(0x274)](_0x9cb7c7(0x18c)))return;const _0x2286a0=this[_0x9cb7c7(0x2a8)][_0x9cb7c7(0x215)][_0x9cb7c7(0x2a5)](_0x9cb7c7(0x28d)),{reply:_0x51e2e1,interaction:_0x18ac72}=this[_0x9cb7c7(0x233)](_0x5cedef[_0x9cb7c7(0x26b)]),_0x58f962=this[_0x9cb7c7(0x247)](_0x5cedef[_0x9cb7c7(0x26b)],_0x5cedef[_0x9cb7c7(0x1b3)]),_0x876205=void 0x0!==_0x5cedef[_0x9cb7c7(0x1b3)]?[_0x51e2e1[_0x9cb7c7(0x1a4)][_0x5cedef[_0x9cb7c7(0x1b3)]]]:_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x1c8)](_0x105449=>_0x9cb7c7(0x29a)==_0x105449[_0x9cb7c7(0x1f2)]),_0x3b284a=_0x876205[_0x9cb7c7(0x1ad)](_0x101166=>_0x51e2e1[_0x9cb7c7(0x1a4)][_0x9cb7c7(0x245)](_0x101166));_0x3b284a[_0x9cb7c7(0x1d4)](_0x1eab4c=>_0x51e2e1[_0x9cb7c7(0x210)](_0x1eab4c,_0x9cb7c7(0x1f1)));const _0x3e651f=_0x2368f6({'editor':_0x399ddf,'reply':_0x51e2e1,'interaction':_0x18ac72,'groups':_0x876205,'transform':!0x0,'documentCompare':_0x2286a0,'documentCompareOptions':{'anchor':_0x9cb7c7(0x1e6),'markDeletions':!0x0}});let _0x5a752b;_0x58f962&&this[_0x9cb7c7(0x27b)](_0x58f962[_0x9cb7c7(0x1db)]),_0x399ddf[_0x9cb7c7(0x21c)][_0x9cb7c7(0x17e)](_0x163a52=>{const _0x24d480=_0x9cb7c7;_0x5a752b=_0x163a52[_0x24d480(0x1ab)],_0x399ddf[_0x24d480(0x215)][_0x24d480(0x2a5)](_0x24d480(0x18c))[_0x24d480(0x283)](_0x3e651f),this[_0x24d480(0x234)][_0x24d480(0x1a9)](_0x24d480(0x161));}),this[_0x9cb7c7(0x1eb)][_0x9cb7c7(0x22c)](_0x5a752b,{'interactionId':_0x18ac72['id'],'replyId':_0x51e2e1['id'],'indexes':_0x3b284a[_0x9cb7c7(0x213)]()});}[_0x56431e(0x1e0)](_0x55af5c){const _0x2ccc54=_0x56431e,_0x34c0ff=_0x2a5e53(this[_0x2ccc54(0x2a8)]),_0x527c19=this[_0x2ccc54(0x2a8)][_0x2ccc54(0x215)][_0x2ccc54(0x2a5)](_0x592911),{reply:_0x49b33d,interaction:_0x37c289}=this[_0x2ccc54(0x233)](_0x55af5c[_0x2ccc54(0x26b)]),_0x48b80f=this[_0x2ccc54(0x247)](_0x55af5c[_0x2ccc54(0x26b)],_0x55af5c[_0x2ccc54(0x1b3)]),_0x2ca9d0=void 0x0!==_0x55af5c[_0x2ccc54(0x1b3)]?[_0x49b33d[_0x2ccc54(0x1a4)][_0x55af5c[_0x2ccc54(0x1b3)]]]:_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x1c8)](_0x3cb653=>_0x2ccc54(0x29a)==_0x3cb653[_0x2ccc54(0x1f2)]),_0x230dbc=_0x2ca9d0[_0x2ccc54(0x1ad)](_0x2c4bb0=>_0x49b33d[_0x2ccc54(0x1a4)][_0x2ccc54(0x245)](_0x2c4bb0));_0x230dbc[_0x2ccc54(0x1d4)](_0x3b65e0=>_0x49b33d[_0x2ccc54(0x210)](_0x3b65e0,_0x2ccc54(0x1f1)));const _0x1f83ab=_0x2368f6({'editor':_0x34c0ff,'reply':_0x49b33d,'interaction':_0x37c289,'groups':_0x2ca9d0,'transform':!0x0,'documentCompare':_0x527c19,'documentCompareOptions':{'anchor':_0x2ccc54(0x1e6),'markDeletions':!0x1}});let _0x1259f8;_0x48b80f&&this[_0x2ccc54(0x27b)](_0x48b80f[_0x2ccc54(0x1db)]),_0x34c0ff[_0x2ccc54(0x21c)][_0x2ccc54(0x17e)](_0x2a765c=>{const _0x1b7e40=_0x2ccc54;_0x1259f8=_0x2a765c[_0x1b7e40(0x1ab)];for(const _0x3b506b of _0x1f83ab)_0x3b506b[_0x1b7e40(0x160)]=_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x207)][_0x1b7e40(0x1cf)],_0x2a765c[_0x1b7e40(0x1ab)][_0x1b7e40(0x1b6)](_0x3b506b),_0x34c0ff[_0x1b7e40(0x21c)][_0x1b7e40(0x1cb)](_0x3b506b);}),this[_0x2ccc54(0x1eb)][_0x2ccc54(0x22c)](_0x1259f8,{'interactionId':_0x37c289['id'],'replyId':_0x49b33d['id'],'indexes':_0x230dbc[_0x2ccc54(0x213)]()});}[_0x56431e(0x248)](_0x273e3b,_0x42ff89){const _0x17ceca=_0x56431e,_0x2f52f7=_0x2a5e53(this[_0x17ceca(0x2a8)]),_0x19044e=this[_0x17ceca(0x247)](_0x273e3b,_0x42ff89),_0x4580e1=this[_0x17ceca(0x2a8)][_0x17ceca(0x215)][_0x17ceca(0x2a5)](_0x3a6e81);if(!_0x19044e)return void _0x4580e1[_0x17ceca(0x189)]();const {range:_0xa1ff9b,currentIndex:_0x2dc0ec,previousIndex:_0x12ce43,nextIndex:_0x5da606}=_0x19044e;if(this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x26b)]==_0x273e3b&&this[_0x17ceca(0x1b8)]?.[_0x17ceca(0x1b3)]==_0x2dc0ec)return;this[_0x17ceca(0x1b8)]={'replyId':_0x273e3b,'partIndex':_0x2dc0ec};const _0x1acabc=new _0x5733e5(_0x2f52f7[_0x17ceca(0x1ae)],{'showDiff':this[_0x17ceca(0x217)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x17ceca(0x22b)},'hideHeader':!0x0}),{reply:_0x1c2c32}=this[_0x17ceca(0x233)](_0x273e3b),_0x599ad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x1c2c32[_0x17ceca(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x1c2c32[_0x17ceca(0x1d2)],'showDiff':this[_0x17ceca(0x217)]});_0x1acabc[_0x17ceca(0x261)]({'parts':_0x599ad4,'renderingStrategy':_0x17ceca(0x15f)});const _0x1985c3=_0x2dc0ec!==_0x12ce43;this[_0x17ceca(0x27b)](_0xa1ff9b,!0x0),_0x4580e1[_0x17ceca(0x20f)]({'index':_0x2dc0ec,'title':_0x44f0a3(this[_0x17ceca(0x2a8)][_0x17ceca(0x1ae)],_0x17ceca(0x198),(_0x2dc0ec+0x1)[_0x17ceca(0x1a3)]()),'icon':_0x2a87d2,'mainView':_0x1acabc,'showRotator':_0x1985c3,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0xa1ff9b]}),this[_0x17ceca(0x1df)][_0x17ceca(0x219)](_0x273e3b,_0x2dc0ec),this[_0x17ceca(0x25b)](_0x1acabc,_0x17ceca(0x281),(_0x32f107,{showDiff:_0x45449d})=>{const _0x503ebd=_0x17ceca;this[_0x503ebd(0x217)]=_0x45449d;const {reply:_0x33d1b6}=this[_0x503ebd(0x233)](_0x273e3b),_0xfacad4=_0x5abdc2({'editor':_0x2f52f7,'changeGroups':[_0x33d1b6[_0x503ebd(0x1a4)][_0x2dc0ec]],'documentContextContent':_0x33d1b6[_0x503ebd(0x1d2)],'showDiff':_0x45449d});_0x1acabc[_0x503ebd(0x261)]({'parts':_0xfacad4,'renderingStrategy':_0x503ebd(0x15f)});}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x255),()=>{const _0x5cec21=_0x17ceca;this[_0x5cec21(0x1e0)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x5cec21(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x5cec21(0x189)]();}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x19c),()=>{const _0x52e940=_0x17ceca;this[_0x52e940(0x25c)]({'replyId':_0x273e3b,'partIndex':_0x2dc0ec}),_0x1985c3?this[_0x52e940(0x248)](_0x273e3b,_0x5da606):_0x4580e1[_0x52e940(0x189)]();}),_0x1985c3&&(this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x270),()=>{const _0xb7de98=_0x17ceca;this[_0xb7de98(0x248)](_0x273e3b,_0x5da606);}),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x21f),()=>{const _0x23dfce=_0x17ceca;this[_0x23dfce(0x248)](_0x273e3b,_0x12ce43);})),this[_0x17ceca(0x25b)](_0x4580e1,_0x17ceca(0x276),()=>{const _0x46c5b9=_0x17ceca;this[_0x46c5b9(0x28e)](_0x4580e1),this[_0x46c5b9(0x28e)](_0x1acabc),this[_0x46c5b9(0x1b8)]=null;});}[_0x56431e(0x247)](_0x6c9ac4,_0x55ddd0){const _0xccc43e=_0x56431e,_0x356d20=_0x2a5e53(this[_0xccc43e(0x2a8)]),{reply:_0x5cee96,interaction:_0x4bed1c}=this[_0xccc43e(0x233)](_0x6c9ac4),_0x13db08=_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x1c8)](_0x1bb1f1=>_0xccc43e(0x29a)==_0x1bb1f1[_0xccc43e(0x1f2)]),_0x363811=_0x13db08[_0xccc43e(0x1ad)](_0x37cf2a=>_0x5cee96[_0xccc43e(0x1a4)][_0xccc43e(0x245)](_0x37cf2a));void 0x0===_0x55ddd0&&(_0x55ddd0=_0x363811[0x0]);const _0x2e463c=_0x363811[_0xccc43e(0x245)](_0x55ddd0);if(-0x1==_0x2e463c)return null;const _0x3de0c5=0x0==_0x2e463c?_0x363811[_0x363811[_0xccc43e(0x171)]-0x1]:_0x363811[_0x2e463c-0x1],_0x368a94=_0x2e463c==_0x363811[_0xccc43e(0x171)]-0x1?_0x363811[0x0]:_0x363811[_0x2e463c+0x1],_0x27990a=_0x13db08[_0x2e463c],_0x3f4a90=new _0x428c01([]),_0x1b7d3d=new _0x428c01([]);for(const _0x3d64dc of _0x27990a[_0xccc43e(0x1c3)])if(_0xccc43e(0x26f)!=_0x3d64dc[_0xccc43e(0x26d)]&&_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x3d64dc[_0xccc43e(0x1fa)][_0xccc43e(0x1d3)](!0x0)),_0xccc43e(0x266)!=_0x3d64dc[_0xccc43e(0x26d)]){const _0x511d7d=_0x544d4b(_0x5c1d75=>_0x42f699(_0x5c1d75,_0xccc43e(0x2a6))==_0x3d64dc['id'],_0x5cee96[_0xccc43e(0x1d2)],!0x0);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x511d7d[_0xccc43e(0x1d3)](!0x0));}if(0x0==_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x171)]){if(_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)]){const _0x2f9e7b=_0x489fa5(_0xccc43e(0x2a6),_0x27990a[_0xccc43e(0x1c3)][0x0][_0xccc43e(0x179)],_0x5cee96[_0xccc43e(0x1d2)]);_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x29e)](_0x2f9e7b[_0xccc43e(0x1d3)](!0x0)),_0x2f9e7b[_0xccc43e(0x180)]&&(_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x2f9e7b[_0xccc43e(0x180)][_0xccc43e(0x1d3)](!0x0)));}else{const _0x11a0ba=_0x5cee96[_0xccc43e(0x1d2)][_0xccc43e(0x22f)][0x0];if(!_0x11a0ba)return null;_0x3f4a90[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0)),_0x1b7d3d[_0xccc43e(0x22f)][_0xccc43e(0x208)](_0x11a0ba[_0xccc43e(0x1d3)](!0x0));}}const _0x5e53d0=_0x4bed1c[_0xccc43e(0x1d9)](),_0x4dff10=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x5e53d0[_0xccc43e(0x28b)]),_0x3947bc=_0x5b7905(_0x3f4a90),_0x460d63=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x21c546=_0x356d20[_0xccc43e(0x15d)][_0xccc43e(0x250)](_0x3947bc),_0x58d169=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x1e5)](_0x460d63,0x0),_0x766565=_0x5b7905(_0x1b7d3d),_0x544e88={'anchor':_0x58d169,'markDeletions':!0x1},_0x2cc5b0=_0x356d20[_0xccc43e(0x215)][_0xccc43e(0x2a5)](_0x592911)[_0xccc43e(0x19d)](_0x3947bc,_0x766565,_0x544e88)[_0xccc43e(0x257)]();if(!_0x2cc5b0[_0xccc43e(0x171)])return null;_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x17e)](_0x54e82f=>{const _0x26a24c=_0xccc43e;for(const _0x2836f5 of _0x2cc5b0)if(_0x26a24c(0x166)==_0x2836f5[_0x26a24c(0x26d)]){const _0x1ab0a1=_0x2836f5[_0x26a24c(0x191)],_0x2c23e3=_0x2836f5[_0x26a24c(0x1d0)],_0x5a274b=new _0x3b66d6(_0x1ab0a1,_0x2c23e3);_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x5a274b),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x5a274b);}else _0x2836f5[_0x26a24c(0x160)]=null,_0x2836f5[_0x26a24c(0x203)]=!0x1,_0x54e82f[_0x26a24c(0x1ab)][_0x26a24c(0x1b6)](_0x2836f5),_0x356d20[_0x26a24c(0x21c)][_0x26a24c(0x1cb)](_0x2836f5);});const _0x47b3c6=_0x332825(_0x356d20,_0x2cc5b0,_0x460d63);_0x148580(_0x356d20[_0xccc43e(0x21c)],_0x47b3c6);const _0x468568=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x363821=_0x47b3c6[_0xccc43e(0x2a3)]()[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x4d7f9e=[];let _0x3d0ca4=_0x460d63,_0x175bae=_0x21c546;for(let _0x1cf326=0x0;_0x1cf326<_0x363821[_0xccc43e(0x171)];_0x1cf326++){const _0x1e3b50=_0x3d0ca4[_0xccc43e(0x1e8)]-_0x363821[_0x1cf326];_0x4d7f9e[_0x1cf326]=_0x175bae[_0xccc43e(0x1e8)]-_0x1e3b50,_0x3d0ca4=_0x3d0ca4[_0xccc43e(0x1e9)](_0x363821[_0x1cf326]),_0x175bae=_0x175bae[_0xccc43e(0x1e9)](_0x4d7f9e[_0x1cf326]);}const _0x58b609=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x468568),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x21c546,_0x4d7f9e)),_0x2ae18b=_0x21c546[_0xccc43e(0x1ac)](0x0)[_0xccc43e(0x1cd)](_0x4f5916),_0x5ad2b7=Array[_0xccc43e(0x240)](_0x4dff10[_0xccc43e(0x1a8)]())[_0xccc43e(0x2a4)](_0x471fc3=>_0x471fc3[_0xccc43e(0x1cd)](_0x4f5916)==_0x2ae18b)[_0xccc43e(0x1ea)](),_0x52e2ed=_0x58b609[_0xccc43e(0x24b)][_0xccc43e(0x29f)][_0xccc43e(0x213)](),_0x18724a=_0x58b609[_0xccc43e(0x241)][_0xccc43e(0x29f)][_0xccc43e(0x213)]();_0x52e2ed[0x0]=_0x5ad2b7[0x0]+_0x52e2ed[0x0],_0x18724a[0x0]=_0x5ad2b7[0x0]+_0x18724a[0x0];let _0x2c689d=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x19b)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x52e2ed),_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x167)](_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x28a)](),_0x18724a));const _0x3cd1d0=_0x356d20[_0xccc43e(0x21c)][_0xccc43e(0x207)][_0xccc43e(0x278)][_0xccc43e(0x257)](_0x5e53d0[_0xccc43e(0x1cf)]);for(const _0x4acdc5 of _0x3cd1d0)_0x2c689d=_0x156604[_0xccc43e(0x228)](_0x2c689d[_0xccc43e(0x253)](_0x4acdc5));return{'range':_0x2c689d,'previousIndex':_0x3de0c5,'nextIndex':_0x368a94,'currentIndex':_0x55ddd0};}[_0x56431e(0x264)](_0x425b40){const _0x585130=_0x56431e;if(!_0x425b40[_0x585130(0x215)][_0x585130(0x274)](_0x585130(0x175)))return;const _0x30c9b7=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x292)),_0x529f1d=_0x425b40[_0x585130(0x21d)][_0x585130(0x2a5)](_0x585130(0x229));this[_0x585130(0x25b)](_0x30c9b7,_0x585130(0x190),(_0x354ab5,_0x186038,_0x23df4a)=>{const _0x5c47a9=_0x585130,_0x267873=this[_0x5c47a9(0x1eb)][_0x5c47a9(0x2a5)](_0x186038);if(!_0x267873)return;const _0x5cde9f=this[_0x5c47a9(0x26a)][_0x5c47a9(0x295)](_0x267873[_0x5c47a9(0x29b)])[_0x5c47a9(0x1a5)](_0x267873[_0x5c47a9(0x26b)]);_0x267873[_0x5c47a9(0x1fd)][_0x5c47a9(0x1d4)](_0x40f7a5=>_0x5cde9f[_0x5c47a9(0x210)](_0x40f7a5,_0x5c47a9(0x29a))),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x170)](_0x186038),this[_0x5c47a9(0x1eb)][_0x5c47a9(0x22c)](_0x23df4a,_0x267873);}),this[_0x585130(0x25b)](_0x529f1d,_0x585130(0x190),(_0x40d99f,_0x5da79b,_0x213b71)=>{const _0x3fe157=_0x585130,_0x5f0f8f=this[_0x3fe157(0x1eb)][_0x3fe157(0x2a5)](_0x5da79b);if(!_0x5f0f8f)return;const _0x3d9289=this[_0x3fe157(0x26a)][_0x3fe157(0x295)](_0x5f0f8f[_0x3fe157(0x29b)])[_0x3fe157(0x1a5)](_0x5f0f8f[_0x3fe157(0x26b)]);_0x5f0f8f[_0x3fe157(0x1fd)][_0x3fe157(0x1d4)](_0x1bd2bc=>_0x3d9289[_0x3fe157(0x210)](_0x1bd2bc,_0x3fe157(0x1f1))),this[_0x3fe157(0x1eb)][_0x3fe157(0x170)](_0x5da79b),this[_0x3fe157(0x1eb)][_0x3fe157(0x22c)](_0x213b71,_0x5f0f8f);});}async[_0x56431e(0x1bb)](_0x578e74){const _0x1c0189=_0x56431e;this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x3a6e81)[_0x1c0189(0x189)](),this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x15f)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x0),await this[_0x1c0189(0x24a)]();try{const _0x380e22=this[_0x1c0189(0x2a8)][_0x1c0189(0x215)][_0x1c0189(0x2a5)](_0x570d7d);this[_0x1c0189(0x252)]('\x20'),_0x380e22[_0x1c0189(0x196)][_0x1c0189(0x192)](_0x1c0189(0x211)),await this[_0x1c0189(0x1fe)](_0x578e74);const {sessionId:_0x596594}=this[_0x1c0189(0x234)][_0x1c0189(0x242)]();await this[_0x1c0189(0x26a)][_0x1c0189(0x268)](_0x578e74,_0x596594),this[_0x1c0189(0x26a)][_0x1c0189(0x251)]()&&this[_0x1c0189(0x26a)][_0x1c0189(0x184)](_0x44f0a3(this[_0x1c0189(0x2a8)][_0x1c0189(0x1ae)],_0x1c0189(0x1c0)));}catch(_0x554754){console[_0x1c0189(0x236)](_0x1c0189(0x163),_0x554754);}finally{this[_0x1c0189(0x1df)][_0x1c0189(0x187)](_0x1c0189(0x1de)),this[_0x1c0189(0x1df)][_0x1c0189(0x177)](!0x1);}}[_0x56431e(0x174)](_0x306f0a){const _0x324d3d=_0x56431e;this[_0x324d3d(0x26a)]['id']===_0x306f0a&&this[_0x324d3d(0x1fe)]();}async[_0x56431e(0x209)](){const _0x187315=_0x56431e,_0x2ca118=this[_0x187315(0x234)][_0x187315(0x291)]();this[_0x187315(0x26a)]?.[_0x187315(0x279)](_0x2ca118),this[_0x187315(0x26a)]?.[_0x187315(0x184)](_0x44f0a3(this[_0x187315(0x2a8)][_0x187315(0x1ae)],_0x187315(0x1c0)));}[_0x56431e(0x197)](){const _0x538226=_0x56431e;this[_0x538226(0x26a)]?.[_0x538226(0x24e)]();}[_0x56431e(0x298)](){const _0x4f343b=_0x56431e;this[_0x4f343b(0x1df)][_0x4f343b(0x298)]();}async[_0x56431e(0x221)](){const _0x2b93ba=_0x56431e;await this[_0x2b93ba(0x1fe)]();}async[_0x56431e(0x168)]({message:_0x451e0f,quickActionData:_0x518c4a}){const _0x51a610=_0x56431e;await this[_0x51a610(0x25a)]({'userMessage':_0x451e0f,'quickActionData':_0x518c4a});}[_0x56431e(0x1ba)](){const _0x425e3c=_0x56431e,_0x27b392=this[_0x425e3c(0x2a8)][_0x425e3c(0x216)][_0x425e3c(0x2a5)](_0x425e3c(0x273));if(!_0x27b392)throw new _0x3661c1(_0x425e3c(0x1fc),this);return _0x27b392;}async[_0x56431e(0x1fe)](_0x23412b){const _0x47ea23=_0x56431e,_0x25e238=this[_0x47ea23(0x2a8)][_0x47ea23(0x215)][_0x47ea23(0x2a5)](_0x3a6e81);let _0xe30375;_0x25e238[_0x47ea23(0x22d)]&&_0x25e238[_0x47ea23(0x189)](),_0xe30375=_0x23412b||!this[_0x47ea23(0x26a)]?this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1d5)):this[_0x47ea23(0x26a)][_0x47ea23(0x258)]['id'],await this[_0x47ea23(0x24a)]();const _0xbb701d=this[_0x47ea23(0x1ba)](),_0x2ffc15=_0x23412b||_0x12eb43();this[_0x47ea23(0x26a)]=new _0x14ab1c({'connector':this[_0x47ea23(0x18d)],'chatModels':this[_0x47ea23(0x259)],'defaultModelId':_0xe30375,'conversationId':_0x2ffc15,'group':_0xbb701d,'getEditor':()=>_0x2a5e53(this[_0x47ea23(0x2a8)])}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1b7),(_0x486d68,_0x59cf60)=>{const _0x367bd1=_0x47ea23;_0x59cf60[_0x367bd1(0x165)]=this[_0x367bd1(0x17c)](_0x59cf60[_0x367bd1(0x165)],this[_0x367bd1(0x2a8)][_0x367bd1(0x216)][_0x367bd1(0x2a5)](_0x367bd1(0x176))),this[_0x367bd1(0x1df)][_0x367bd1(0x1aa)](_0x59cf60),this[_0x367bd1(0x1df)][_0x367bd1(0x15e)](),this[_0x367bd1(0x1df)][_0x367bd1(0x194)](),this[_0x367bd1(0x1df)][_0x367bd1(0x214)](),_0x23412b||(this[_0x367bd1(0x1df)][_0x367bd1(0x20b)](),this[_0x367bd1(0x26a)]?.[_0x367bd1(0x184)](_0x44f0a3(this[_0x367bd1(0x2a8)][_0x367bd1(0x1ae)],_0x367bd1(0x1c0))));}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x230),(_0x5bbc42,_0x2363a7)=>{const _0x103ca0=_0x47ea23;this[_0x103ca0(0x1df)][_0x103ca0(0x24f)](_0x2363a7[_0x103ca0(0x15b)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a1),(_0x46531a,_0x24da8f)=>{const _0x2e4f55=_0x47ea23;this[_0x2e4f55(0x1df)][_0x2e4f55(0x235)](_0x24da8f),this[_0x2e4f55(0x1df)][_0x2e4f55(0x289)](_0x24da8f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x244),(_0x611618,_0x403736)=>{const _0x1f2eee=_0x47ea23;this[_0x1f2eee(0x1df)][_0x1f2eee(0x1e2)](_0x403736);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x16f),async()=>{const _0x59682f=_0x47ea23;await this[_0x59682f(0x1df)][_0x59682f(0x1f9)]();}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1ec),(_0x3f805f,_0x4325e4)=>{const _0x5f2cca=_0x47ea23;this[_0x5f2cca(0x1df)][_0x5f2cca(0x2a2)](_0x4325e4['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x18f),(_0x1e51c0,_0x3b59a5,_0x51a422)=>{const _0x68569b=_0x47ea23;this[_0x68569b(0x252)](_0x3b59a5,_0x51a422);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x199),(_0x26f89a,_0x5f020f)=>{const _0x1733d1=_0x47ea23;this[_0x1733d1(0x1df)][_0x1733d1(0x1ff)]({'isVisible':!0x0,'id':_0x5f020f[_0x1733d1(0x29b)]}),_0x1733d1(0x1ca)===_0x5f020f[_0x1733d1(0x26d)]?this[_0x1733d1(0x1df)][_0x1733d1(0x271)](_0x5f020f):this[_0x1733d1(0x1df)][_0x1733d1(0x293)](_0x5f020f);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1fb),async(_0x43a3ea,_0x3e738a,_0x27fc10)=>{const _0xd3a1f1=_0x47ea23;await this[_0xd3a1f1(0x19f)]({'reply':_0x3e738a,'changeGroups':_0x27fc10});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x287),(_0x320bef,{reply:_0x9a5c2c,index:_0x2f9480,state:_0x3173dd})=>{const _0x494b8a=_0x47ea23;this[_0x494b8a(0x1df)][_0x494b8a(0x243)]({'id':_0x9a5c2c['id'],'index':_0x2f9480,'state':_0x3173dd});}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a9),(_0x3b4d69,_0x3d5e14)=>{const _0x3a3017=_0x47ea23;if(this[_0x3a3017(0x1df)][_0x3a3017(0x1d1)](_0x3d5e14[_0x3a3017(0x17d)],_0x3d5e14[_0x3a3017(0x188)]),_0x3a3017(0x182)===_0x3d5e14[_0x3a3017(0x17d)][_0x3a3017(0x26d)]){const _0xeba4ae=[..._0x2a5e53(this[_0x3a3017(0x2a8)])[_0x3a3017(0x21c)][_0x3a3017(0x207)][_0x3a3017(0x182)][_0x3a3017(0x27f)]()];this[_0x3a3017(0x234)][_0x3a3017(0x1a7)](_0xeba4ae,_0x3a3017(0x226)+this[_0x3a3017(0x26a)]?.['id']);}}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x227),(_0xdf07a9,_0xfa5a3f)=>{const _0x51c9c2=_0x47ea23;this[_0x51c9c2(0x1df)][_0x51c9c2(0x269)](_0xfa5a3f[_0x51c9c2(0x218)]),_0x51c9c2(0x1da)==_0xfa5a3f[_0x51c9c2(0x218)]&&this[_0x51c9c2(0x197)](),_0x51c9c2(0x182)===_0xfa5a3f[_0x51c9c2(0x26d)]&&this[_0x51c9c2(0x234)][_0x51c9c2(0x1a9)](_0x51c9c2(0x226)+this[_0x51c9c2(0x26a)]?.['id']);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x265),(_0x41b305,_0x35ea5d)=>{const _0x103d95=_0x47ea23;this[_0x103d95(0x1df)][_0x103d95(0x23a)](_0x35ea5d[_0x103d95(0x17d)][_0x103d95(0x218)],_0x35ea5d[_0x103d95(0x188)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x185),(_0x2970d7,_0x25b52f)=>{const _0x2cdd56=_0x47ea23;this[_0x2cdd56(0x1df)][_0x2cdd56(0x29c)](_0x25b52f[_0x2cdd56(0x28f)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x2a0),(_0x37c36a,_0x487206)=>{const _0x2c26d8=_0x47ea23;this[_0x2c26d8(0x1df)][_0x2c26d8(0x27c)](_0x487206[_0x2c26d8(0x288)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x1c5),(_0x30f4cf,_0x75c24d)=>{const _0x439854=_0x47ea23;this[_0x439854(0x1df)][_0x439854(0x223)](_0x75c24d[_0x439854(0x16e)],_0x75c24d[_0x439854(0x254)],_0x75c24d[_0x439854(0x17f)],_0x75c24d[_0x439854(0x26c)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x195),(_0x37ad7e,_0x429d0f)=>{const _0x5ba07d=_0x47ea23;this[_0x5ba07d(0x1df)][_0x5ba07d(0x1d6)](_0x429d0f[_0x5ba07d(0x16e)],_0x429d0f[_0x5ba07d(0x21b)],_0x429d0f[_0x5ba07d(0x24d)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x25e),(_0x45c767,_0x192c72)=>{const _0x5348a7=_0x47ea23;this[_0x5348a7(0x1df)][_0x5348a7(0x1e4)](_0x192c72);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x232),(_0x2f091c,_0x30a8b2)=>{const _0x341d42=_0x47ea23;this[_0x341d42(0x1df)][_0x341d42(0x16a)](_0x30a8b2[_0x341d42(0x258)],_0x30a8b2[_0x341d42(0x1c2)]);}),this[_0x47ea23(0x26a)]['on'](_0x47ea23(0x236),(_0xadbac9,{error:_0x3f64f7,interactionId:_0x302c52,fileName:_0x46d251,url:_0x29567d,sourceId:_0x3d8d1d,sourceLabel:_0x3c4328})=>{const _0x5a3a69=_0x47ea23,_0xcc3bea=_0x302c52?_0x302c52+':'+_0x12eb43():_0x12eb43();_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1b2))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x202)]({'staticMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x294)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1c6))||_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x297))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x18a)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ed))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1e1),_0x46d251),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1ef))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1a6),_0x29567d),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x23d))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1bd)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x164))?this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1b5)),'id':_0xcc3bea}):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d7))?(_0x3d8d1d&&this[_0x5a3a69(0x1df)][_0x5a3a69(0x1b1)](_0x3d8d1d),this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x267),_0x3c4328||_0x5a3a69(0x254)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):_0x3f64f7[_0x5a3a69(0x15c)][_0x5a3a69(0x193)](_0x5a3a69(0x1d8))?(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x237)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7)):(this[_0x5a3a69(0x1df)][_0x5a3a69(0x169)]({'errorMessage':_0x44f0a3(this[_0x5a3a69(0x2a8)][_0x5a3a69(0x1ae)],_0x5a3a69(0x1af)),'id':_0xcc3bea}),this[_0x5a3a69(0x162)](_0x3f64f7));}),await this[_0x47ea23(0x26a)][_0x47ea23(0x1f5)](this[_0x47ea23(0x2a8)][_0x47ea23(0x216)][_0x47ea23(0x2a5)](_0x47ea23(0x1ce))),_0x23412b||await this[_0x47ea23(0x26a)][_0x47ea23(0x24b)]();}async[_0x56431e(0x25a)]({userMessage:_0x489ec2,quickActionData:_0x4a1d43}){const _0x255e70=_0x56431e;if(!this[_0x255e70(0x26a)])throw new _0x3661c1(_0x255e70(0x2a7));this[_0x255e70(0x26a)][_0x255e70(0x19a)]()&&await this[_0x255e70(0x26a)][_0x255e70(0x19e)](this[_0x255e70(0x234)][_0x255e70(0x242)]()),this[_0x255e70(0x26a)]['id']&&this[_0x255e70(0x26a)][_0x255e70(0x1f4)]&&await this[_0x255e70(0x26a)][_0x255e70(0x246)]({'userMessage':_0x489ec2,'quickActionData':_0x4a1d43}),this[_0x255e70(0x22e)]();}[_0x56431e(0x22e)](){const _0x4efd37=_0x56431e,_0x474b1f=_0x2a5e53(this[_0x4efd37(0x2a8)])[_0x4efd37(0x21c)],_0x3bf376=Array[_0x4efd37(0x240)](_0x474b1f[_0x4efd37(0x16c)][_0x4efd37(0x262)](_0x503260));_0x474b1f[_0x4efd37(0x17e)](_0x144a89=>{const _0xe7710=_0x4efd37;_0x3bf376[_0xe7710(0x1d4)](_0x3a1161=>_0x144a89[_0xe7710(0x299)](_0x3a1161));});}[_0x56431e(0x200)](){const _0x2c98a7=_0x56431e;console[_0x2c98a7(0x1f7)](_0x2c98a7(0x272));}[_0x56431e(0x204)](_0x388304){const _0x48980a=_0x56431e;this[_0x48980a(0x1df)][_0x48980a(0x21e)](_0x388304);}[_0x56431e(0x162)](_0x1bfde8){const _0x1a9028=_0x56431e;_0x116548(_0x1bfde8[_0x1a9028(0x15c)]);}[_0x56431e(0x181)](_0x48655e){const _0x1c0751=_0x56431e;this[_0x1c0751(0x26a)]?.[_0x1c0751(0x224)](_0x48655e);}[_0x56431e(0x1c7)](){const _0x2e60aa=_0x56431e;this[_0x2e60aa(0x26a)]?.[_0x2e60aa(0x16b)]();}[_0x56431e(0x1b0)](){const _0x17013e=_0x56431e;this[_0x17013e(0x26a)]?.[_0x17013e(0x285)]();}[_0x56431e(0x233)](_0x1c9f4b){const _0x2070ab=_0x56431e,[_0x36ac3d,_0x58e4d8]=_0x1c9f4b[_0x2070ab(0x1ee)](':'),_0x1eb6e2=this[_0x2070ab(0x26a)][_0x2070ab(0x295)](_0x36ac3d),_0x497373=_0x1eb6e2[_0x2070ab(0x1a5)](_0x58e4d8);return{'interaction':_0x1eb6e2,'reply':_0x497373};}[_0x56431e(0x27b)](_0x2c17ab,_0x58a7d6=!0x1){const _0x44db4a=_0x56431e,_0x568dfe=_0x2a5e53(this[_0x44db4a(0x2a8)]),_0x138c8c={'target':_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x196)][_0x44db4a(0x1bc)][_0x44db4a(0x282)](_0x568dfe[_0x44db4a(0x20d)][_0x44db4a(0x26e)][_0x44db4a(0x1b9)](_0x2c17ab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x58a7d6};_0x58a7d6&&(_0x138c8c[_0x44db4a(0x290)]=!0x0),_0x55a9fe(_0x138c8c);}[_0x56431e(0x252)](_0x480854,_0x4cc63f=!0x1){const _0x414b02=_0x56431e;this[_0x414b02(0x1df)][_0x414b02(0x18f)](_0x480854||_0x44f0a3(this[_0x414b02(0x2a8)][_0x414b02(0x1ae)],_0x414b02(0x1f0)),_0x4cc63f);}[_0x56431e(0x17c)](_0x50bb56,_0x1ec5ba){const _0x5645d7=_0x56431e;let _0xca9266;if(_0x1ec5ba){_0xca9266=[];const _0x517341=_0x5645d7(0x205)==typeof _0x1ec5ba?[_0x1ec5ba[_0x5645d7(0x23b)]()]:_0x1ec5ba[_0x5645d7(0x1ad)](_0x27e957=>_0x27e957[_0x5645d7(0x23b)]());for(const _0x4b3022 of _0x517341)for(const _0xbd6dab of _0x50bb56)(_0xbd6dab['id'][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x284)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab[_0x5645d7(0x1a2)][_0x5645d7(0x23b)]()===_0x4b3022||_0xbd6dab['id'][_0x5645d7(0x23b)]()[_0x5645d7(0x193)](_0x4b3022))&&_0xca9266[_0x5645d7(0x208)](_0xbd6dab);}else _0xca9266=_0x50bb56;return _0xca9266;}async[_0x56431e(0x19f)]({reply:_0x51fb34,changeGroups:_0x31036a,renderingStrategy:_0x2cddc4}){const _0xea5ac7=_0x56431e,{id:_0x4e7c7d,isDone:_0x15bf71,type:_0x25d504,parsedContent:_0x5d87b4}=_0x51fb34;if(_0xea5ac7(0x280)===_0x25d504){const _0x3223ff=_0x2a5e53(this[_0xea5ac7(0x2a8)]),_0x2cc824=_0x5abdc2({'editor':_0x3223ff,'showDiff':this[_0xea5ac7(0x1df)][_0xea5ac7(0x27a)],'changeGroups':_0x31036a,'documentContextContent':_0x51fb34[_0xea5ac7(0x1d2)]});await this[_0xea5ac7(0x1df)][_0xea5ac7(0x23f)]({'id':_0x4e7c7d,'parts':_0x2cc824,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});}else _0xea5ac7(0x1ca)===_0x25d504&&await this[_0xea5ac7(0x1df)][_0xea5ac7(0x1b4)]({'id':_0x4e7c7d,'parsedContent':_0x5d87b4,'renderingStrategy':_0x2cddc4,'isDone':_0x15bf71});_0x15bf71&&_0x51fb34[_0xea5ac7(0x239)][_0xea5ac7(0x171)]>0x0&&this[_0xea5ac7(0x1df)][_0xea5ac7(0x28c)](_0x4e7c7d,_0x51fb34[_0xea5ac7(0x239)]);}async[_0x56431e(0x24a)](){const _0x3123d6=_0x56431e,_0x152ca0=this[_0x3123d6(0x26a)]?.[_0x3123d6(0x1be)];_0x152ca0&&(_0x152ca0[_0x3123d6(0x178)](),this[_0x3123d6(0x1df)][_0x3123d6(0x23c)](_0x152ca0));}async[_0x56431e(0x238)](){const _0x671367=_0x56431e,_0xe87b0b=this[_0x671367(0x26a)]?.[_0x671367(0x1be)];if(_0xe87b0b){for await(const _0x1e737f of _0xe87b0b[_0x671367(0x25d)])await this[_0x671367(0x19f)]({'reply':_0x1e737f,'changeGroups':_0x1e737f[_0x671367(0x1a4)],'renderingStrategy':_0x671367(0x15f)});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4776d2=_0xa7fa;(function(_0x5bae63,_0x139d0a){const _0x1c13d9=_0xa7fa,_0x1b8178=_0x5bae63();while(!![]){try{const _0x141a7b=parseInt(_0x1c13d9(0x114))/0x1*(-parseInt(_0x1c13d9(0x15e))/0x2)+-parseInt(_0x1c13d9(0x132))/0x3+-parseInt(_0x1c13d9(0x133))/0x4+parseInt(_0x1c13d9(0xfe))/0x5*(-parseInt(_0x1c13d9(0x15f))/0x6)+parseInt(_0x1c13d9(0xe3))/0x7*(parseInt(_0x1c13d9(0xe5))/0x8)+parseInt(_0x1c13d9(0x12d))/0x9+parseInt(_0x1c13d9(0x168))/0xa;if(_0x141a7b===_0x139d0a)break;else _0x1b8178['push'](_0x1b8178['shift']());}catch(_0x129f7a){_0x1b8178['push'](_0x1b8178['shift']());}}}(_0x2eab,0xe8b06));import{ContextPlugin as _0x320d73}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xe100d9}from'ckeditor5/src/utils.js';function _0xa7fa(_0x27ecb8,_0x1ac3f8){const _0x2eab96=_0x2eab();return _0xa7fa=function(_0xa7fa0b,_0x14919f){_0xa7fa0b=_0xa7fa0b-0xdc;let _0xc7b5b0=_0x2eab96[_0xa7fa0b];return _0xc7b5b0;},_0xa7fa(_0x27ecb8,_0x1ac3f8);}import{AIChatView as _0x4da9ac}from'./ui/aichatview.js';import{AITabs as _0x369830}from'../aitabs/aitabs.js';import{getTranslation as _0x2bacd0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x56269e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x61d7e2}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2eab(){const _0x480141=['delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','toggleSuggestionDisplayMode','setReasoning','destroy','renderingStrategy','_getLoadingMessage','clear','setSelectedModel','isBusy','getItemIds','requires','feedItemRenderingStrategy','updateFeedItemAIReplyContent','isReasoningEnabled','updateSuggestionPartState','markItemAsDone','2ChWhLg','8519700UvdMEm','_interactionPromiseResolver','interaction-header','abort','pluginName','isPremiumPlugin','updateWebSources','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','42759040PikOvV','chat','AIChatUI','updateResourceState','closeSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','plugins','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','options','set','streaming','stopInteraction','children','_titleAnimationInterval','ai-reply','setIsMaximized','context','14qPrtcW','finishInteraction','4489880lksqrB','<p>','values','addFeedItemAIReply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','chatHeader','setInputPlaceholder','updateSuggestionItem','setFeedItemRenderingStrategy','error-message','label','updateFeedInteractionHeader','clearPendingContextUI','removeItem','interactionId','AI_CHAT_WELCOME_MESSAGE','_view','updateFeedItemAIReplySources','removeContextItem','addFeedInteractionHeader','setAddContextOptions','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isMaximized','5cbpgAZ','scrollToSuggestion','addItem','</p>','disableModelSelector','availableModels','startsWith','config','scrollFeedToSuggestion','enqueue','toggleLoadingSkeleton','setLoadingMessage','addContextItem','createConversation','ai-suggestion-reply','locale','stopAutoScroll','areActionsDisabled','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','capabilities','conversation-start','1129285fauleh','resetMessageInput','length','bind','clearConversationContextUI','addFeedItemError','find','chatControls','quickActionData','isLoading','updateFeedItemAIReplySuggestionPartState','focusPromptInput','enableModelSelector','updateFeedItemAIReplySuggestionContent','forEach','then','startAutoScroll','filter','isWebSearchEnabled','displayedPrompt','populateSourceResourceBalloon','from','updateCapabilities','isDone','_getInputPlaceholder','3442653DuaHSl','setIsUploadInProgress','get','setConversationContext','contextItems','1292073OOHlVf','7391484aDNBan','addFeedItemAISuggestion','AITabs','addFeedItemUserMessage','setModelList','view','setWebSearch','isPending','setContextItemLoading','chatFeed','startInteraction','AI_CHAT_HEADING','userMessage','setModel','addFeedItemStaticMessage','removeFeedInteraction','_promiseQueue','user-message','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isOfficialPlugin','showDiff','markFeedItemAsDone','resetConversationTitle','showResizeButton','addTab','queueEmptyPromise'];_0x2eab=function(){return _0x480141;};return _0x2eab();}import{PromiseQueue as _0x5538ba}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223be1}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x320d73{static get[_0x4776d2(0x158)](){return[_0x369830];}[_0x4776d2(0xf6)];static get[_0x4776d2(0x163)](){const _0x1e4af9=_0x4776d2;return _0x1e4af9(0x16a);}static get[_0x4776d2(0x146)](){return!0x0;}static get[_0x4776d2(0x164)](){return!0x0;}[_0x4776d2(0x159)]=_0x4776d2(0xdc);[_0x4776d2(0x147)]=!0x0;[_0x4776d2(0x143)];[_0x4776d2(0x160)];[_0x4776d2(0xdf)]=void 0x0;constructor(_0x85fd69){const _0x4d0a58=_0x4776d2;super(_0x85fd69);const _0x80b5dd=this[_0x4d0a58(0xe2)][_0x4d0a58(0x16e)][_0x4d0a58(0x12f)](_0x4d0a58(0x135));this[_0x4d0a58(0x172)](_0x4d0a58(0x156),!0x1),this[_0x4d0a58(0x143)]=new _0x5538ba(),this[_0x4d0a58(0xf6)]=new _0x4da9ac(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x80b5dd[_0x4d0a58(0x14a)]),this[_0x4d0a58(0xf6)][_0x4d0a58(0x14d)](..._0x223be1)['to'](this),this[_0x4d0a58(0xf6)]['on'](_0x4d0a58(0x14f),(_0xb0c49b,{showDiff:_0x1504ee})=>{const _0x12729f=_0x4d0a58;this[_0x12729f(0x147)]=_0x1504ee;}),_0x80b5dd[_0x4d0a58(0x138)][_0x4d0a58(0x14b)]({'id':_0x4d0a58(0x169),'buttonLabel':_0x2bacd0(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x4d0a58(0x13e)),'buttonIcon':_0x56269e,'order':0x0,'content':this[_0x4d0a58(0xf6)]}),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0x117)](_0x4d0a58(0x11d))['to'](this,_0x4d0a58(0x156),_0x5262ce=>_0x5262ce),this[_0x4d0a58(0xf6)][_0x4d0a58(0x13c)][_0x4d0a58(0x117)](_0x4d0a58(0x13a))['to'](this,_0x4d0a58(0x156),_0x73a8df=>_0x73a8df),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0xec)](this[_0x4d0a58(0x12c)]());}[_0x4776d2(0x151)](){const _0x456811=_0x4776d2;super[_0x456811(0x151)](),this[_0x456811(0xdf)]&&clearInterval(this[_0x456811(0xdf)]);}[_0x4776d2(0x10b)](_0x5aaaf4){const _0x1f8afa=_0x4776d2;this[_0x1f8afa(0xf6)][_0x1f8afa(0x13c)][_0x1f8afa(0x154)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x120)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x137)](_0x5aaaf4[_0x1f8afa(0x103)],!this[_0x1f8afa(0xe2)][_0x1f8afa(0x105)][_0x1f8afa(0x12f)](_0x1f8afa(0x110))),this[_0x1f8afa(0x141)]({'id':_0x1f8afa(0x113),'staticMessage':_0x2bacd0(this[_0x1f8afa(0xe2)][_0x1f8afa(0x10d)],_0x1f8afa(0xf5))});}[_0x4776d2(0x141)]({id:_0xd9e427,staticMessage:_0x33c3ca}){const _0x41b376=_0x4776d2;this[_0x41b376(0xf6)][_0x41b376(0x13c)][_0x41b376(0x100)](_0x41b376(0xe0),{'id':_0xd9e427,'initialContent':_0x41b376(0xe6)+_0x33c3ca+_0x41b376(0x101)});}[_0x4776d2(0x136)](_0x4cea51){const _0x51c0df=_0x4776d2,_0x4b6f96=_0x4cea51[_0x51c0df(0x11c)]?.[_0x51c0df(0x127)]||_0x4cea51[_0x51c0df(0x13f)];this[_0x51c0df(0xf6)][_0x51c0df(0x13c)][_0x51c0df(0x100)](_0x51c0df(0x144),{'contextItems':Array[_0x51c0df(0x129)](_0x4cea51[_0x51c0df(0x131)][_0x51c0df(0xe7)]()),'initialContent':_0x51c0df(0xe6)+_0x4b6f96+_0x51c0df(0x101),'id':_0x4cea51['id']});}[_0x4776d2(0x119)]({errorMessage:_0xcabca0,id:_0x4fb4ad}){const _0xa647a0=_0x4776d2;this[_0xa647a0(0xf6)][_0xa647a0(0x13c)][_0xa647a0(0x100)](_0xa647a0(0xef),{'initialContent':_0xa647a0(0xe6)+_0xcabca0+_0xa647a0(0x101),'id':_0x4fb4ad});}[_0x4776d2(0xe8)](_0x2cb95d){const _0x4c54c2=_0x4776d2;return this[_0x4c54c2(0x143)][_0x4c54c2(0x107)](async()=>{const _0x1bed81=_0x4c54c2;this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x100)](_0x1bed81(0xe0),{'id':_0x2cb95d[_0x1bed81(0xf4)]+':'+_0x2cb95d['id']}),this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x109)]('');});}async[_0x4776d2(0x134)](_0xca2e87){const _0x3d0ed2=_0x4776d2;return this[_0x3d0ed2(0x143)][_0x3d0ed2(0x107)](async()=>{const _0x471afc=_0x3d0ed2;this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x100)](_0x471afc(0x10c),{'id':_0xca2e87[_0x471afc(0xf4)]+':'+_0xca2e87['id'],'areActionsDisabled':_0xca2e87[_0x471afc(0x10f)],'showDiff':this[_0x471afc(0x147)]}),this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x109)]('');});}[_0x4776d2(0xf9)](_0x57c8fe){const _0x4f46e5=_0x4776d2;this[_0x4f46e5(0xf6)][_0x4f46e5(0x13c)][_0x4f46e5(0x100)](_0x4f46e5(0x161),{'id':_0x57c8fe['id'],'capabilities':_0x57c8fe[_0x4f46e5(0x112)]});}[_0x4776d2(0xf1)](_0xe2759e){const _0x44a2c8=_0x4776d2,_0x188726=this[_0x44a2c8(0xf6)][_0x44a2c8(0x13c)][_0x44a2c8(0xde)][_0x44a2c8(0x11a)](_0x21559d=>_0x21559d[_0x44a2c8(0x171)]['id']==_0xe2759e['id']&&_0x21559d instanceof _0x61d7e2);_0x188726&&_0x188726[_0x44a2c8(0x172)](_0x44a2c8(0x166),_0xe2759e[_0x44a2c8(0x166)]);}async[_0x4776d2(0x15a)](_0x4e1246){const _0x395066=_0x4776d2,_0x276ab2=_0x4e1246[_0x395066(0x152)]||this[_0x395066(0x159)];return this[_0x395066(0x143)][_0x395066(0x107)](async _0x5b0639=>{const _0x1a4262=_0x395066;await this[_0x1a4262(0xf6)][_0x1a4262(0x13c)][_0x1a4262(0xfb)]({..._0x4e1246,'abortSignal':_0x5b0639,'renderingStrategy':_0x276ab2}),_0x4e1246[_0x1a4262(0x12b)]&&this[_0x1a4262(0x148)](_0x4e1246['id']);});}[_0x4776d2(0xf7)](_0x252107,_0x419ef4){const _0xcad2b7=_0x4776d2;this[_0xcad2b7(0xf6)][_0xcad2b7(0x13c)][_0xcad2b7(0x165)](_0x252107,_0x419ef4);}async[_0x4776d2(0x121)](_0x237be8){const _0xd121ef=_0x4776d2,_0x2abd47=_0x237be8[_0xd121ef(0x152)]||this[_0xd121ef(0x159)];return this[_0xd121ef(0x143)][_0xd121ef(0x107)](async _0x5088fc=>{const _0x2d5b62=_0xd121ef;await this[_0x2d5b62(0xf6)][_0x2d5b62(0x13c)][_0x2d5b62(0xed)]({..._0x237be8,'abortSignal':_0x5088fc,'renderingStrategy':_0x2abd47}),_0x237be8[_0x2d5b62(0x12b)]&&this[_0x2d5b62(0x148)](_0x237be8['id']);});}[_0x4776d2(0x11e)](_0x18abf0){const _0x32b321=_0x4776d2;this[_0x32b321(0xf6)][_0x32b321(0x13c)][_0x32b321(0x15c)](_0x18abf0);}[_0x4776d2(0x148)](_0x39d393){const _0x1fbf8b=_0x4776d2;this[_0x1fbf8b(0xf6)][_0x1fbf8b(0x13c)][_0x1fbf8b(0x15d)](_0x39d393);}[_0x4776d2(0x142)](_0x38c21b){const _0xeecc91=_0x4776d2;this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0x157)]()[_0xeecc91(0x125)](_0x4800fb=>_0x4800fb[_0xeecc91(0x104)](_0x38c21b))[_0xeecc91(0x122)](_0x2ebefa=>this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0xf3)](_0x2ebefa));}[_0x4776d2(0x13d)](_0x3e1312){const _0x29fad0=_0x4776d2;this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x109)](this[_0x29fad0(0x153)](_0x3e1312)),this[_0x29fad0(0xf6)][_0x29fad0(0x11b)][_0x29fad0(0x102)](!this[_0x29fad0(0xe2)][_0x29fad0(0x105)][_0x29fad0(0x12f)](_0x29fad0(0x110))),this[_0x29fad0(0x156)]=!0x0,this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x124)]();}[_0x4776d2(0xdd)](_0x92caeb){const _0x125503=_0x4776d2;this[_0x125503(0x143)][_0x125503(0x162)](),this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x157)]()[_0x125503(0x125)](_0x250aff=>_0x250aff[_0x125503(0x104)](_0x92caeb['id']))[_0x125503(0x122)](_0x443474=>this[_0x125503(0x148)](_0x443474)),this[_0x125503(0x156)]=!0x1,this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x10e)]();}async[_0x4776d2(0xe4)](){const _0x36d9e5=_0x4776d2;return this[_0x36d9e5(0x143)][_0x36d9e5(0x14c)][_0x36d9e5(0x123)](()=>{const _0x546875=_0x36d9e5;this[_0x546875(0x156)]=!0x1,this[_0x546875(0xf6)][_0x546875(0x13c)][_0x546875(0x10e)]();});}[_0x4776d2(0x10a)](_0x5d7040,_0x19c654){const _0x24842d=_0x4776d2;this[_0x24842d(0xf6)][_0x24842d(0x11b)][_0x24842d(0x10a)](_0x5d7040,_0x19c654);}[_0x4776d2(0xf8)](_0x398e13){const _0x23d3e9=_0x4776d2;this[_0x23d3e9(0xf6)][_0x23d3e9(0x11b)][_0x23d3e9(0xf8)](_0x398e13);}[_0x4776d2(0x13b)](_0x2aef57,_0x34a59a){const _0xb17de2=_0x4776d2;this[_0xb17de2(0xf6)][_0xb17de2(0x11b)][_0xb17de2(0x13b)](_0x2aef57,_0x34a59a);}[_0x4776d2(0x12e)](_0x537b9a){const _0x2d2687=_0x4776d2;this[_0x2d2687(0xf6)][_0x2d2687(0x11b)][_0x2d2687(0x12e)](_0x537b9a);}[_0x4776d2(0x130)](_0x3ba59f){const _0x4e2ea3=_0x4776d2;this[_0x4e2ea3(0xf6)][_0x4e2ea3(0x11b)][_0x4e2ea3(0x130)](_0x3ba59f);}[_0x4776d2(0xf2)](){const _0xf9982d=_0x4776d2;this[_0xf9982d(0xf6)][_0xf9982d(0x11b)][_0xf9982d(0xf2)]();}[_0x4776d2(0x118)](){const _0x29dcc6=_0x4776d2;this[_0x29dcc6(0xf6)][_0x29dcc6(0x11b)][_0x29dcc6(0x118)]();}[_0x4776d2(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec){const _0x514d8f=_0x4776d2;this[_0x514d8f(0xf6)][_0x514d8f(0x11b)][_0x514d8f(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec);}[_0x4776d2(0x115)](){const _0x4760aa=_0x4776d2;this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0x115)](),this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0xec)](this[_0x4760aa(0x12c)]());}[_0x4776d2(0xfa)](_0x474390){const _0x37361a=_0x4776d2;this[_0x37361a(0xf6)][_0x37361a(0x11b)][_0x37361a(0xfa)](_0x474390);}[_0x4776d2(0x12a)](_0x1ffebf){const _0x4401ef=_0x4776d2;this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x139)](_0x1ffebf[_0x4401ef(0x126)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x150)](_0x1ffebf[_0x4401ef(0x15b)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0xec)](this[_0x4401ef(0x12c)](_0x1ffebf));}[_0x4776d2(0x155)](_0x57f14d,_0x118b6e){const _0x203b1f=_0x4776d2;this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x140)](_0x57f14d),_0x118b6e&&this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x102)](!0x1);}[_0x4776d2(0xee)](_0x56892e){const _0x49b863=_0x4776d2;this[_0x49b863(0x159)]=_0x56892e;}[_0x4776d2(0x108)](_0x420fb6){const _0x3eeede=_0x4776d2;this[_0x3eeede(0xf6)][_0x3eeede(0x13c)][_0x3eeede(0x108)](_0x420fb6);}[_0x4776d2(0x149)](){const _0x3dba5d=_0x4776d2;this[_0x3dba5d(0x16f)](_0x2bacd0(this[_0x3dba5d(0xe2)][_0x3dba5d(0x10d)],_0x3dba5d(0x13e)));}[_0x4776d2(0x16f)](_0x237685,_0x4490a7=!0x1){const _0xfe7970=_0x4776d2;if(_0x4490a7&&!_0xe100d9()&&_0x237685[_0xfe7970(0x116)])return this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]='',void this[_0xfe7970(0xea)](_0x237685);this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]=_0x237685;}[_0x4776d2(0xea)](_0x379988){const _0x1f5fa4=_0x4776d2;let _0x170517=0x0;clearInterval(this[_0x1f5fa4(0xdf)]),this[_0x1f5fa4(0xdf)]=setInterval(()=>{const _0x189c67=_0x1f5fa4;this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]=this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]+_0x379988[_0x170517],_0x170517++,_0x170517===_0x379988[_0x189c67(0x116)]&&clearInterval(this[_0x189c67(0xdf)]);},0x1e);}[_0x4776d2(0xe1)](_0x357ff1){const _0x195c49=_0x4776d2;this[_0x195c49(0xf6)][_0x195c49(0xeb)][_0x195c49(0xfd)]=_0x357ff1;}[_0x4776d2(0x153)](_0x571c54){const _0x50866d=_0x4776d2,_0xb683af=_0x571c54[_0x50866d(0x112)];return _0xb683af[_0x50866d(0x126)]&&_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0xfc)):_0xb683af[_0x50866d(0x126)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x16d)):_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x14e)):_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x145));}[_0x4776d2(0x12c)](_0x1f8781){const _0x58f46d=_0x4776d2;return _0x1f8781?_0x1f8781[_0x58f46d(0x126)]&&_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x111)):_0x1f8781[_0x58f46d(0x126)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x167)):_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0xe9)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170));}[_0x4776d2(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c){const _0x3d50d3=_0x4776d2;this[_0x3d50d3(0xf6)][_0x3d50d3(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c);}[_0x4776d2(0x16c)](_0x5d7b1c){const _0x34c0e7=_0x4776d2;this[_0x34c0e7(0xf6)][_0x34c0e7(0x16c)](_0x5d7b1c);}[_0x4776d2(0x11f)](){const _0xdf7894=_0x4776d2;this[_0xdf7894(0xf6)][_0xdf7894(0x11b)][_0xdf7894(0x11f)]();}[_0x4776d2(0x106)](_0x307bb6,_0xfb0c49){const _0x175e50=_0x4776d2;this[_0x175e50(0xf6)][_0x175e50(0x13c)][_0x175e50(0xff)](_0x307bb6,_0xfb0c49);}}
23
+ const _0x46a9fd=_0x15d6;(function(_0x3d6240,_0x7a6480){const _0x1849ed=_0x15d6,_0x2771e0=_0x3d6240();while(!![]){try{const _0x15d3b9=-parseInt(_0x1849ed(0x22d))/0x1*(-parseInt(_0x1849ed(0x1c9))/0x2)+-parseInt(_0x1849ed(0x1ec))/0x3*(-parseInt(_0x1849ed(0x1f3))/0x4)+-parseInt(_0x1849ed(0x1db))/0x5+parseInt(_0x1849ed(0x1df))/0x6*(-parseInt(_0x1849ed(0x1bb))/0x7)+parseInt(_0x1849ed(0x1a4))/0x8*(-parseInt(_0x1849ed(0x1d8))/0x9)+-parseInt(_0x1849ed(0x20e))/0xa+parseInt(_0x1849ed(0x222))/0xb*(parseInt(_0x1849ed(0x1fb))/0xc);if(_0x15d3b9===_0x7a6480)break;else _0x2771e0['push'](_0x2771e0['shift']());}catch(_0x4912c7){_0x2771e0['push'](_0x2771e0['shift']());}}}(_0xf0be,0xa96af));function _0x15d6(_0x492358,_0x2e171f){const _0xf0bea6=_0xf0be();return _0x15d6=function(_0x15d686,_0x4cbb0c){_0x15d686=_0x15d686-0x1a0;let _0x3758ee=_0xf0bea6[_0x15d686];return _0x3758ee;},_0x15d6(_0x492358,_0x2e171f);}function _0xf0be(){const _0x5b586d=['22YuRIYD','addFeedItemStaticMessage','then','conversation-start','updateWebSources','ai-reply','chatFeed','scrollFeedToSuggestion','stopInteraction','addItem','find','11gtKNTK','pluginName','destroy','filter','setModel','plugins','availableModels','resetConversationTitle','clearConversationContextUI','isWebSearchEnabled','setWebSearch','setContextItemLoading','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','areActionsDisabled','chat','</p>','12016OUaouQ','clear','addContextItem','AITabs','error-message','quickActionData','interactionId','view','setConversationContext','context','isPending','setFeedItemRenderingStrategy','startInteraction','setIsUploadInProgress','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','markItemAsDone','set','resetMessageInput','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','showResizeButton','setIsMaximized','9171113DotEXP','feedItemRenderingStrategy','requires','updateCapabilities','streaming','length','addFeedInteractionHeader','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setLoadingMessage','clearPendingContextUI','_titleAnimationInterval','_promiseQueue','setModelList','37094YZJoLb','populateSourceResourceBalloon','chatHeader','options','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','enqueue','disableModelSelector','removeContextItem','isReasoningEnabled','createConversation','closeSourceResourceBalloon','values','startAutoScroll','AI_CHAT_WELCOME_MESSAGE','2763MhpTQi','setSelectedModel','label','4089000vbCdUg','removeItem','isOfficialPlugin','_getLoadingMessage','6fpWPGS','delegate','get','updateFeedItemAIReplySources','setReasoning','_view','renderingStrategy','isMaximized','stopAutoScroll','capabilities','displayedPrompt','updateFeedItemAIReplyContent','abort','81ujRzmK','updateSuggestionPartState','interaction-header','ai-suggestion-reply','getItemIds','updateFeedItemAIReplySuggestionContent','AIChatUI','34588CjIVLV','startsWith','locale','addFeedItemAIReply','isDone','updateFeedInteractionHeader','scrollToSuggestion','user-message','18226236iNQJzD','isBusy','removeFeedInteraction','userMessage','showDiff','config','setAddContextOptions','updateReplyItem','focusPromptInput','addTab','isVisible','_interactionPromiseResolver','isPremiumPlugin','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','isLoading','contextItems','addFeedItemError','1921840wVmIkO','ai.chat.models.modelSelectorAlwaysVisible','toggleSuggestionDisplayMode','<p>','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','children','forEach','chatControls','_getInputPlaceholder','updateFeedItemAIReplySuggestionPartState','setConversationTitle','AI_CHAT_HEADING','updateResourceState','enableModelSelector','addFeedItemUserMessage','bind','toggleLoadingSkeleton','setInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addFeedItemAISuggestion'];_0xf0be=function(){return _0x5b586d;};return _0xf0be();}import{ContextPlugin as _0x42b8c6}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3e22b1}from'ckeditor5/src/utils.js';import{AIChatView as _0x450cb7}from'./ui/aichatview.js';import{AITabs as _0x613713}from'../aitabs/aitabs.js';import{getTranslation as _0x4a67c1}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x26d59d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2a1590}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x120cd5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xaa22b2}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x42b8c6{static get[_0x46a9fd(0x1bd)](){return[_0x613713];}[_0x46a9fd(0x1e4)];static get[_0x46a9fd(0x22e)](){const _0x426586=_0x46a9fd;return _0x426586(0x1f2);}static get[_0x46a9fd(0x1dd)](){return!0x0;}static get[_0x46a9fd(0x207)](){return!0x0;}[_0x46a9fd(0x1bc)]=_0x46a9fd(0x1bf);[_0x46a9fd(0x1ff)]=!0x0;[_0x46a9fd(0x1c7)];[_0x46a9fd(0x206)];[_0x46a9fd(0x1c6)]=void 0x0;constructor(_0xe54253){const _0x43baaf=_0x46a9fd;super(_0xe54253);const _0x12a893=this[_0x43baaf(0x1ad)][_0x43baaf(0x232)][_0x43baaf(0x1e1)](_0x43baaf(0x1a7));this[_0x43baaf(0x1b5)](_0x43baaf(0x1fc),!0x1),this[_0x43baaf(0x1c7)]=new _0x120cd5(),this[_0x43baaf(0x1e4)]=new _0x450cb7(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x12a893[_0x43baaf(0x1b9)]),this[_0x43baaf(0x1e4)][_0x43baaf(0x1e0)](..._0xaa22b2)['to'](this),this[_0x43baaf(0x1e4)]['on'](_0x43baaf(0x210),(_0x36b118,{showDiff:_0x3fd8ea})=>{const _0x4b3a58=_0x43baaf;this[_0x4b3a58(0x1ff)]=_0x3fd8ea;}),_0x12a893[_0x43baaf(0x1ab)][_0x43baaf(0x204)]({'id':_0x43baaf(0x1a2),'buttonLabel':_0x4a67c1(this[_0x43baaf(0x1ad)][_0x43baaf(0x1f5)],_0x43baaf(0x219)),'buttonIcon':_0x26d59d,'order':0x0,'content':this[_0x43baaf(0x1e4)]}),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21d)](_0x43baaf(0x20b))['to'](this,_0x43baaf(0x1fc),_0x165088=>_0x165088),this[_0x43baaf(0x1e4)][_0x43baaf(0x228)][_0x43baaf(0x21d)](_0x43baaf(0x1ae))['to'](this,_0x43baaf(0x1fc),_0x38cc5=>_0x38cc5),this[_0x43baaf(0x1e4)][_0x43baaf(0x215)][_0x43baaf(0x21f)](this[_0x43baaf(0x216)]());}[_0x46a9fd(0x22f)](){const _0x16b290=_0x46a9fd;super[_0x16b290(0x22f)](),this[_0x16b290(0x1c6)]&&clearInterval(this[_0x16b290(0x1c6)]);}[_0x46a9fd(0x1d3)](_0x2ed6ee){const _0x58afc2=_0x46a9fd;this[_0x58afc2(0x1e4)][_0x58afc2(0x228)][_0x58afc2(0x1a5)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x21b)](),this[_0x58afc2(0x1e4)][_0x58afc2(0x215)][_0x58afc2(0x1c8)](_0x2ed6ee[_0x58afc2(0x233)],!this[_0x58afc2(0x1ad)][_0x58afc2(0x200)][_0x58afc2(0x1e1)](_0x58afc2(0x20f))),this[_0x58afc2(0x223)]({'id':_0x58afc2(0x225),'staticMessage':_0x4a67c1(this[_0x58afc2(0x1ad)][_0x58afc2(0x1f5)],_0x58afc2(0x1d7))});}[_0x46a9fd(0x223)]({id:_0x1e0761,staticMessage:_0x1f7f08}){const _0x4982a9=_0x46a9fd;this[_0x4982a9(0x1e4)][_0x4982a9(0x228)][_0x4982a9(0x22b)](_0x4982a9(0x227),{'id':_0x1e0761,'initialContent':_0x4982a9(0x211)+_0x1f7f08+_0x4982a9(0x1a3)});}[_0x46a9fd(0x21c)](_0x5f0116){const _0x479ac=_0x46a9fd,_0x5b6fee=_0x5f0116[_0x479ac(0x1a9)]?.[_0x479ac(0x1e9)]||_0x5f0116[_0x479ac(0x1fe)];this[_0x479ac(0x1e4)][_0x479ac(0x228)][_0x479ac(0x22b)](_0x479ac(0x1fa),{'contextItems':Array[_0x479ac(0x208)](_0x5f0116[_0x479ac(0x20c)][_0x479ac(0x1d5)]()),'initialContent':_0x479ac(0x211)+_0x5b6fee+_0x479ac(0x1a3),'id':_0x5f0116['id']});}[_0x46a9fd(0x20d)]({errorMessage:_0x3707d6,id:_0x27edac}){const _0x2ed1c4=_0x46a9fd;this[_0x2ed1c4(0x1e4)][_0x2ed1c4(0x228)][_0x2ed1c4(0x22b)](_0x2ed1c4(0x1a8),{'initialContent':_0x2ed1c4(0x211)+_0x3707d6+_0x2ed1c4(0x1a3),'id':_0x27edac});}[_0x46a9fd(0x1f6)](_0x1391c0){const _0x5033a5=_0x46a9fd;return this[_0x5033a5(0x1c7)][_0x5033a5(0x1cf)](async()=>{const _0x1fa668=_0x5033a5;this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x22b)](_0x1fa668(0x227),{'id':_0x1391c0[_0x1fa668(0x1aa)]+':'+_0x1391c0['id']}),this[_0x1fa668(0x1e4)][_0x1fa668(0x228)][_0x1fa668(0x1c4)]('');});}async[_0x46a9fd(0x221)](_0x1a6fb0){const _0x363d6b=_0x46a9fd;return this[_0x363d6b(0x1c7)][_0x363d6b(0x1cf)](async()=>{const _0x1fc9d7=_0x363d6b;this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x22b)](_0x1fc9d7(0x1ef),{'id':_0x1a6fb0[_0x1fc9d7(0x1aa)]+':'+_0x1a6fb0['id'],'areActionsDisabled':_0x1a6fb0[_0x1fc9d7(0x1a1)],'showDiff':this[_0x1fc9d7(0x1ff)]}),this[_0x1fc9d7(0x1e4)][_0x1fc9d7(0x228)][_0x1fc9d7(0x1c4)]('');});}[_0x46a9fd(0x1c1)](_0x767c31){const _0x503eb3=_0x46a9fd;this[_0x503eb3(0x1e4)][_0x503eb3(0x228)][_0x503eb3(0x22b)](_0x503eb3(0x1ee),{'id':_0x767c31['id'],'capabilities':_0x767c31[_0x503eb3(0x1e8)]});}[_0x46a9fd(0x1f8)](_0x2e84b7){const _0x529847=_0x46a9fd,_0x46a2f6=this[_0x529847(0x1e4)][_0x529847(0x228)][_0x529847(0x213)][_0x529847(0x22c)](_0xe0debe=>_0xe0debe[_0x529847(0x1cc)]['id']==_0x2e84b7['id']&&_0xe0debe instanceof _0x2a1590);_0x46a2f6&&_0x46a2f6[_0x529847(0x1b5)](_0x529847(0x205),_0x2e84b7[_0x529847(0x205)]);}async[_0x46a9fd(0x1ea)](_0x2a781b){const _0x107553=_0x46a9fd,_0xc687c4=_0x2a781b[_0x107553(0x1e5)]||this[_0x107553(0x1bc)];return this[_0x107553(0x1c7)][_0x107553(0x1cf)](async _0x24afb5=>{const _0x16dbae=_0x107553;await this[_0x16dbae(0x1e4)][_0x16dbae(0x228)][_0x16dbae(0x202)]({..._0x2a781b,'abortSignal':_0x24afb5,'renderingStrategy':_0xc687c4}),_0x2a781b[_0x16dbae(0x1f7)]&&this[_0x16dbae(0x1cd)](_0x2a781b['id']);});}[_0x46a9fd(0x1e2)](_0x5dd1c6,_0x4f4cd3){const _0x251906=_0x46a9fd;this[_0x251906(0x1e4)][_0x251906(0x228)][_0x251906(0x226)](_0x5dd1c6,_0x4f4cd3);}async[_0x46a9fd(0x1f1)](_0x179825){const _0x531b78=_0x46a9fd,_0x1e3b12=_0x179825[_0x531b78(0x1e5)]||this[_0x531b78(0x1bc)];return this[_0x531b78(0x1c7)][_0x531b78(0x1cf)](async _0x3cb2b4=>{const _0x37b461=_0x531b78;await this[_0x37b461(0x1e4)][_0x37b461(0x228)][_0x37b461(0x1b7)]({..._0x179825,'abortSignal':_0x3cb2b4,'renderingStrategy':_0x1e3b12}),_0x179825[_0x37b461(0x1f7)]&&this[_0x37b461(0x1cd)](_0x179825['id']);});}[_0x46a9fd(0x217)](_0x35b363){const _0x5c2305=_0x46a9fd;this[_0x5c2305(0x1e4)][_0x5c2305(0x228)][_0x5c2305(0x1ed)](_0x35b363);}[_0x46a9fd(0x1cd)](_0x1eba53){const _0x2a27bc=_0x46a9fd;this[_0x2a27bc(0x1e4)][_0x2a27bc(0x228)][_0x2a27bc(0x1b4)](_0x1eba53);}[_0x46a9fd(0x1fd)](_0x99fd5a){const _0x5bbf4c=_0x46a9fd;this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1f0)]()[_0x5bbf4c(0x230)](_0x232bbc=>_0x232bbc[_0x5bbf4c(0x1f4)](_0x99fd5a))[_0x5bbf4c(0x214)](_0x3f05b2=>this[_0x5bbf4c(0x1e4)][_0x5bbf4c(0x228)][_0x5bbf4c(0x1dc)](_0x3f05b2));}[_0x46a9fd(0x1b0)](_0x56b3f7){const _0xe1b5be=_0x46a9fd;this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1c4)](this[_0xe1b5be(0x1de)](_0x56b3f7)),this[_0xe1b5be(0x1e4)][_0xe1b5be(0x215)][_0xe1b5be(0x1d0)](!this[_0xe1b5be(0x1ad)][_0xe1b5be(0x200)][_0xe1b5be(0x1e1)](_0xe1b5be(0x20f))),this[_0xe1b5be(0x1fc)]=!0x0,this[_0xe1b5be(0x1e4)][_0xe1b5be(0x228)][_0xe1b5be(0x1d6)]();}[_0x46a9fd(0x22a)](_0x4c70aa){const _0x2256e5=_0x46a9fd;this[_0x2256e5(0x1c7)][_0x2256e5(0x1eb)](),this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1f0)]()[_0x2256e5(0x230)](_0x409921=>_0x409921[_0x2256e5(0x1f4)](_0x4c70aa['id']))[_0x2256e5(0x214)](_0x3e1344=>this[_0x2256e5(0x1cd)](_0x3e1344)),this[_0x2256e5(0x1fc)]=!0x1,this[_0x2256e5(0x1e4)][_0x2256e5(0x228)][_0x2256e5(0x1e7)]();}async[_0x46a9fd(0x1c2)](){const _0x4747e1=_0x46a9fd;return this[_0x4747e1(0x1c7)][_0x4747e1(0x20a)][_0x4747e1(0x224)](()=>{const _0xa37268=_0x4747e1;this[_0xa37268(0x1fc)]=!0x1,this[_0xa37268(0x1e4)][_0xa37268(0x228)][_0xa37268(0x1e7)]();});}[_0x46a9fd(0x1a6)](_0x155634,_0x5867d){const _0x5ec973=_0x46a9fd;this[_0x5ec973(0x1e4)][_0x5ec973(0x215)][_0x5ec973(0x1a6)](_0x155634,_0x5867d);}[_0x46a9fd(0x1d1)](_0x501df5){const _0x9afb44=_0x46a9fd;this[_0x9afb44(0x1e4)][_0x9afb44(0x215)][_0x9afb44(0x1d1)](_0x501df5);}[_0x46a9fd(0x238)](_0x548252,_0x4c786a){const _0x49fe58=_0x46a9fd;this[_0x49fe58(0x1e4)][_0x49fe58(0x215)][_0x49fe58(0x238)](_0x548252,_0x4c786a);}[_0x46a9fd(0x1b1)](_0x487bdc){const _0x3682d2=_0x46a9fd;this[_0x3682d2(0x1e4)][_0x3682d2(0x215)][_0x3682d2(0x1b1)](_0x487bdc);}[_0x46a9fd(0x1ac)](_0x403869){const _0x5c9248=_0x46a9fd;this[_0x5c9248(0x1e4)][_0x5c9248(0x215)][_0x5c9248(0x1ac)](_0x403869);}[_0x46a9fd(0x1c5)](){const _0x94dc9=_0x46a9fd;this[_0x94dc9(0x1e4)][_0x94dc9(0x215)][_0x94dc9(0x1c5)]();}[_0x46a9fd(0x235)](){const _0x369aab=_0x46a9fd;this[_0x369aab(0x1e4)][_0x369aab(0x215)][_0x369aab(0x235)]();}[_0x46a9fd(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7){const _0x347d0a=_0x46a9fd;this[_0x347d0a(0x1e4)][_0x347d0a(0x215)][_0x347d0a(0x21a)](_0x4cb2f8,_0x17806e,_0x4ddcf7);}[_0x46a9fd(0x1b6)](){const _0x3897a1=_0x46a9fd;this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x1b6)](),this[_0x3897a1(0x1e4)][_0x3897a1(0x215)][_0x3897a1(0x21f)](this[_0x3897a1(0x216)]());}[_0x46a9fd(0x201)](_0xaa3ef8){const _0x5c2973=_0x46a9fd;this[_0x5c2973(0x1e4)][_0x5c2973(0x215)][_0x5c2973(0x201)](_0xaa3ef8);}[_0x46a9fd(0x1be)](_0x5f1c61){const _0x4481a5=_0x46a9fd;this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x237)](_0x5f1c61[_0x4481a5(0x236)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x1e3)](_0x5f1c61[_0x4481a5(0x1d2)]),this[_0x4481a5(0x1e4)][_0x4481a5(0x215)][_0x4481a5(0x21f)](this[_0x4481a5(0x216)](_0x5f1c61));}[_0x46a9fd(0x1d9)](_0x2cab87,_0x45cadf){const _0xae28e2=_0x46a9fd;this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x231)](_0x2cab87),_0x45cadf&&this[_0xae28e2(0x1e4)][_0xae28e2(0x215)][_0xae28e2(0x1d0)](!0x1);}[_0x46a9fd(0x1af)](_0x5d5570){const _0x355b39=_0x46a9fd;this[_0x355b39(0x1bc)]=_0x5d5570;}[_0x46a9fd(0x21e)](_0x269e7c){const _0x48caf0=_0x46a9fd;this[_0x48caf0(0x1e4)][_0x48caf0(0x228)][_0x48caf0(0x21e)](_0x269e7c);}[_0x46a9fd(0x234)](){const _0x4f0d9a=_0x46a9fd;this[_0x4f0d9a(0x218)](_0x4a67c1(this[_0x4f0d9a(0x1ad)][_0x4f0d9a(0x1f5)],_0x4f0d9a(0x219)));}[_0x46a9fd(0x218)](_0x53e4ff,_0x23008e=!0x1){const _0x14152e=_0x46a9fd;if(_0x23008e&&!_0x3e22b1()&&_0x53e4ff[_0x14152e(0x1c0)])return this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]='',void this[_0x14152e(0x1b3)](_0x53e4ff);this[_0x14152e(0x1e4)][_0x14152e(0x1cb)][_0x14152e(0x1da)]=_0x53e4ff;}[_0x46a9fd(0x1b3)](_0x39e646){const _0x5ed375=_0x46a9fd;let _0x242cd1=0x0;clearInterval(this[_0x5ed375(0x1c6)]),this[_0x5ed375(0x1c6)]=setInterval(()=>{const _0x1dd4da=_0x5ed375;this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]=this[_0x1dd4da(0x1e4)][_0x1dd4da(0x1cb)][_0x1dd4da(0x1da)]+_0x39e646[_0x242cd1],_0x242cd1++,_0x242cd1===_0x39e646[_0x1dd4da(0x1c0)]&&clearInterval(this[_0x1dd4da(0x1c6)]);},0x1e);}[_0x46a9fd(0x1ba)](_0x2cb070){const _0x1b3959=_0x46a9fd;this[_0x1b3959(0x1e4)][_0x1b3959(0x1cb)][_0x1b3959(0x1e6)]=_0x2cb070;}[_0x46a9fd(0x1de)](_0x440a90){const _0x275ae4=_0x46a9fd,_0x1bd825=_0x440a90[_0x275ae4(0x1e8)];return _0x1bd825[_0x275ae4(0x236)]&&_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x212)):_0x1bd825[_0x275ae4(0x236)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x220)):_0x1bd825[_0x275ae4(0x1d2)]?_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1c3)):_0x4a67c1(this[_0x275ae4(0x1ad)][_0x275ae4(0x1f5)],_0x275ae4(0x1a0));}[_0x46a9fd(0x216)](_0x2b6346){const _0x8e538e=_0x46a9fd;return _0x2b6346?_0x2b6346[_0x8e538e(0x236)]&&_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b8)):_0x2b6346[_0x8e538e(0x236)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1ce)):_0x2b6346[_0x8e538e(0x1d2)]?_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x1b2)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209)):_0x4a67c1(this[_0x8e538e(0x1ad)][_0x8e538e(0x1f5)],_0x8e538e(0x209));}[_0x46a9fd(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a){const _0x42c536=_0x46a9fd;this[_0x42c536(0x1e4)][_0x42c536(0x1ca)](_0x5c25ec,_0x2cd86e,_0x246437,_0x501b2a);}[_0x46a9fd(0x1d4)](_0x1252fa){const _0x3c6d9b=_0x46a9fd;this[_0x3c6d9b(0x1e4)][_0x3c6d9b(0x1d4)](_0x1252fa);}[_0x46a9fd(0x203)](){const _0x31bf93=_0x46a9fd;this[_0x31bf93(0x1e4)][_0x31bf93(0x215)][_0x31bf93(0x203)]();}[_0x46a9fd(0x229)](_0x2d4ca0,_0xf9c9ef){const _0x864b6c=_0x46a9fd;this[_0x864b6c(0x1e4)][_0x864b6c(0x228)][_0x864b6c(0x1f9)](_0x2d4ca0,_0xf9c9ef);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4aa975=_0x5e1c;(function(_0x2772cb,_0x25b05a){const _0x1aec15=_0x5e1c,_0x22f496=_0x2772cb();while(!![]){try{const _0x27b6cb=parseInt(_0x1aec15(0x1c6))/0x1*(parseInt(_0x1aec15(0x232))/0x2)+parseInt(_0x1aec15(0x209))/0x3*(-parseInt(_0x1aec15(0x1bc))/0x4)+-parseInt(_0x1aec15(0x22e))/0x5+parseInt(_0x1aec15(0x225))/0x6+parseInt(_0x1aec15(0x203))/0x7+-parseInt(_0x1aec15(0x1e8))/0x8+parseInt(_0x1aec15(0x241))/0x9;if(_0x27b6cb===_0x25b05a)break;else _0x22f496['push'](_0x22f496['shift']());}catch(_0x5d8269){_0x22f496['push'](_0x22f496['shift']());}}}(_0x1f61,0xc4bb5));import{CKEditorError as _0x4233bd,ObservableMixin as _0x1eb501,uid as _0x264fe8}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4b6fd9,AIContextTextResourceType as _0x25c72c}from'../../aicore/model/aicontext.js';function _0x1f61(){const _0x515459=['_finishUploadOperation','contextSent','push','_mapContextItemToRequestData','fetchDocument','sources','startsWith','URL','filter','_ongoingUploads','18982908hJVMzS','getPendingContextItems','addToConversationContext','uiId','_createContextItemFromContent','ai-chat-document-upload-failed','_connector','find','356FLcUtq','addContextOptionsChanged','url-','ai-chat-resource-load-failed','getResources','ai-chat-resource-no-data','fire','_updateResourceInContextState','updateCurrentDocument','files-','334TkMcGk','ai-chat-context-unsupported-type','has','_config','_addToConversationContextItem','from','_addContextItem','attributes','sourceResourcesLoaded','uploadFile','hidden','text/markdown','uploadUrl','_ongoingUploadOperations','addUrlToContext','object','size','urls','addResourceToContext','document','enabled','loadSourceResources','label','object\x20with\x20content\x20and\x20type\x20properties','Current\x20document','isCurrentDocumentInContext','getId','message','error','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','_convertTextResourceToFile','length','addSelectionToContext','5571800NtGOZq','text/plain','contextItemAdded','isInContext','_conversationContextItems','removeFromContext','text/html','files','_isResourceInContext','delete','mapContextItemsToRequestData','abortController','start','init','isHidden','_finishContextItemLoading','map','SELECTION','abort','stack','FILE','isSelectionInContext','data','_toggleAddCurrentDocumentOptionVisibility','type','selection','getSentContextItems','10482192PTAAyZ','contextItemRemoved','_pendingContextItems','File','getDocument','file-','51702ewTBcV','end','contextItemLoadingEnded','HTML','_removeContextItem','DOCUMENT','_findSourceIdsByResourceId','resources','TEXT','forEach','isCurrentDocumentInConversation','removeSelectionFromContext','ai-chat-url-upload-failed','getData','content','name','resourceId','populateFromMessage','ai-request-aborted','version','ai-chat-file-upload-failed','ai-chat-context-invalid-data','_addContextOptionsState','addFilesToContext','_ownerId','get','clearPendingContextItems','uploadDocument','2179380NggdRJ','uploadProgressChanged','ai-chat-source-not-found','_setAddContextOptionsDefaultState','set','addCurrentDocumentToContext','all','values','MARKDOWN','7200640yycfNy','_startUploadOperation','current-document','sessionId','3032sANylb','resourceStateChanged','string','url','isReadOnly'];_0x1f61=function(){return _0x515459;};return _0x1f61();}import{escape as _0x4b4871}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x4aa975(0x1ea),_0x4aa975(0x204),_0x4aa975(0x20b),_0x4aa975(0x238),_0x4aa975(0x1e2),_0x4aa975(0x1bd),_0x4aa975(0x1ce),_0x4aa975(0x233),_0x4aa975(0x226)];function _0x5e1c(_0x5b60fd,_0x59b263){const _0x1f610c=_0x1f61();return _0x5e1c=function(_0x5e1c3b,_0x4e9e61){_0x5e1c3b=_0x5e1c3b-0x1b5;let _0x1a1687=_0x1f610c[_0x5e1c3b];return _0x1a1687;},_0x5e1c(_0x5b60fd,_0x59b263);}export class AIChatContext extends _0x1eb501(){[_0x4aa975(0x1ba)];[_0x4aa975(0x1c9)];[_0x4aa975(0x221)];constructor({connector:_0xcbad3b,config:_0x17ffdf,ownerId:_0x44d46f}){const _0x1676a1=_0x4aa975;super(),this[_0x1676a1(0x1ba)]=_0xcbad3b,this[_0x1676a1(0x1c9)]=_0x17ffdf,this[_0x1676a1(0x221)]=_0x44d46f;}[_0x4aa975(0x1f5)](){const _0x184c4b=_0x4aa975;this[_0x184c4b(0x205)]=new Map(),this[_0x184c4b(0x1ec)]=new Map(),this[_0x184c4b(0x240)]=new Map(),this[_0x184c4b(0x1d3)]=new Map(),this[_0x184c4b(0x228)]();}[_0x4aa975(0x1b5)](){const _0x4e87e6=_0x4aa975;return this[_0x4e87e6(0x205)];}async[_0x4aa975(0x21a)](_0x61c33e){const _0xd8e2f2=_0x4aa975,_0x438f74=await this[_0xd8e2f2(0x1b8)](_0x61c33e);return this[_0xd8e2f2(0x1ca)](_0x438f74),_0xd8e2f2(0x230)===_0x438f74[_0xd8e2f2(0x1b7)]&&this[_0xd8e2f2(0x1ff)](),_0x438f74;}async[_0x4aa975(0x1b8)](_0x9dec6d){const _0x43cb2f=_0x4aa975;if(_0x9dec6d[_0x43cb2f(0x200)]===_0x4b6fd9[_0x43cb2f(0x20e)]){const _0x1e8d11=await this[_0x43cb2f(0x1ba)][_0x43cb2f(0x23b)](this[_0x43cb2f(0x221)],_0x9dec6d['id'])[_0x43cb2f(0x207)]();return{'id':_0x43cb2f(0x230),'uiId':_0x43cb2f(0x230),'label':_0x43cb2f(0x1de),'type':_0x9dec6d[_0x43cb2f(0x200)],'content':_0x1e8d11[_0x43cb2f(0x217)],'hidden':this[_0x43cb2f(0x1ec)][_0x43cb2f(0x1c8)](_0x43cb2f(0x230)),'version':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x21c)],'sessionId':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x231)]};}return{'id':_0x9dec6d['id'],'uiId':_0x9dec6d['id'],'label':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x1dc)]||_0x9dec6d[_0x43cb2f(0x218)]||_0x9dec6d[_0x43cb2f(0x235)]||_0x9dec6d['id'],'type':_0x9dec6d[_0x43cb2f(0x200)],..._0x9dec6d?.[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]?{'resourceId':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]}:{}};}[_0x4aa975(0x202)](){const _0x101481=_0x4aa975;return new Map(this[_0x101481(0x1ec)]);}[_0x4aa975(0x1ed)](_0x3c0755){const _0x2df8f8=_0x4aa975,_0x45681f=this[_0x2df8f8(0x205)][_0x2df8f8(0x222)](_0x3c0755);_0x45681f?.[_0x2df8f8(0x236)]||this[_0x2df8f8(0x20d)](_0x3c0755);}[_0x4aa975(0x223)](){const _0x143425=_0x4aa975;if(0x0===this[_0x143425(0x205)][_0x143425(0x1d6)])return;for(const _0x191a19 of this[_0x143425(0x205)][_0x143425(0x22c)]())this[_0x143425(0x20d)](_0x191a19[_0x143425(0x1b7)]);const _0x426eb2=this[_0x143425(0x1ec)][_0x143425(0x222)](_0x143425(0x230))||this[_0x143425(0x205)][_0x143425(0x222)](_0x143425(0x230));_0x426eb2&&this[_0x143425(0x1cc)]({..._0x426eb2,'isReadOnly':!0x0,'hidden':!0x0});}[_0x4aa975(0x1b6)](_0x455f6f){const _0x419866=_0x4aa975;for(const _0x5bb458 of _0x455f6f[_0x419866(0x22c)]())this[_0x419866(0x1ca)](_0x5bb458);this[_0x419866(0x223)](),this[_0x419866(0x1c2)](_0x419866(0x238),{'contextItems':Array[_0x419866(0x1cb)](this[_0x419866(0x202)]()[_0x419866(0x22c)]())});}[_0x4aa975(0x1df)](){const _0xa5f8de=_0x4aa975;return this[_0xa5f8de(0x205)][_0xa5f8de(0x1c8)](_0xa5f8de(0x230));}[_0x4aa975(0x1fd)](){const _0x1cb1ec=_0x4aa975;return this[_0x1cb1ec(0x205)][_0x1cb1ec(0x1c8)](_0x1cb1ec(0x201));}[_0x4aa975(0x213)](){const _0x487d56=_0x4aa975;return this[_0x487d56(0x1ec)][_0x487d56(0x1c8)](_0x487d56(0x230));}static[_0x4aa975(0x1f2)](_0x1cae18){const _0x209ca4=_0x4aa975;return Array[_0x209ca4(0x1cb)](_0x1cae18[_0x209ca4(0x22c)]())[_0x209ca4(0x1f8)](_0x50160c=>this[_0x209ca4(0x23a)](_0x50160c))[_0x209ca4(0x23f)](_0x12385e=>null!==_0x12385e);}async[_0x4aa975(0x220)](_0x2c5050,_0x51f039,_0x4e1bc7=_0x4b6fd9[_0x4aa975(0x1fc)]){const _0x31b42c=_0x4aa975,_0x470370=_0x31b42c(0x1c5)+_0x264fe8();this[_0x31b42c(0x22f)](_0x470370);try{await Promise[_0x31b42c(0x22b)](_0x2c5050[_0x31b42c(0x1f8)](async _0x242434=>{const _0x4645b7=_0x31b42c,_0x3dc441=_0x4645b7(0x208)+_0x264fe8(),_0x1a96a0=_0x4b4871(_0x242434[_0x4645b7(0x218)]);try{this[_0x4645b7(0x1cc)]({'type':_0x4e1bc7,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x0);const _0xd3aae6=this[_0x4645b7(0x1ba)][_0x4645b7(0x1cf)](this[_0x4645b7(0x221)],_0x242434,_0x51f039);this[_0x4645b7(0x240)][_0x4645b7(0x229)](_0x3dc441,_0xd3aae6[_0x4645b7(0x1f3)]);const {id:_0x35d775}=await _0xd3aae6[_0x4645b7(0x1e0)]();this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441),this[_0x4645b7(0x1f7)]({'type':_0x4e1bc7,'id':_0x35d775,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x1);}catch(_0xb47bd){this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441);if(!_0xb47bd[_0x4645b7(0x1e1)][_0x4645b7(0x23d)](_0x4645b7(0x21b))){const _0x20d653=new _0x4233bd(_0x4645b7(0x21d),null,{'fileName':_0x1a96a0});_0x20d653[_0x4645b7(0x1fb)]=_0xb47bd[_0x4645b7(0x1fb)],this[_0x4645b7(0x1c2)](_0x4645b7(0x1e2),{'error':_0x20d653,'fileName':_0x1a96a0});}this[_0x4645b7(0x20d)](_0x3dc441);}}));}finally{this[_0x31b42c(0x237)](_0x470370);}}[_0x4aa975(0x22a)](_0xc10c00){const _0x5abd90=_0x4aa975;if(this[_0x5abd90(0x1df)]())return;const _0x2fd7f8={'type':_0x4b6fd9[_0x5abd90(0x20e)],'uiId':_0x5abd90(0x230),'label':_0xc10c00,'isReadOnly':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230)),'hidden':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230))};this[_0x5abd90(0x1cc)](_0x2fd7f8);}async[_0x4aa975(0x1c4)](_0x513c31,_0x5448a8,_0x3e0103,_0x3fbcb2){const _0x234f20=_0x4aa975,_0x2dc45b=this[_0x234f20(0x205)][_0x234f20(0x222)](_0x234f20(0x230));if(_0x2dc45b&&_0x513c31){_0x2dc45b[_0x234f20(0x201)]=_0x3fbcb2?_0x3fbcb2[_0x234f20(0x1f8)](_0x4fee20=>({'start':_0x4fee20[_0x234f20(0x1f4)],'end':_0x4fee20[_0x234f20(0x20a)]})):[];try{if(_0x2dc45b[_0x234f20(0x21c)]===_0x5448a8)return;const {id:_0x410350}=await this[_0x234f20(0x1ba)][_0x234f20(0x224)](this[_0x234f20(0x221)],_0x513c31,{'version':_0x5448a8,'sessionId':_0x3e0103})[_0x234f20(0x1e0)]();_0x2dc45b['id']=_0x410350,_0x2dc45b[_0x234f20(0x217)]=_0x513c31,_0x2dc45b[_0x234f20(0x21c)]=_0x5448a8,_0x2dc45b[_0x234f20(0x231)]=_0x3e0103;}catch(_0x27f640){const _0x29a905=new _0x4233bd(_0x234f20(0x1b9),null);_0x29a905[_0x234f20(0x1fb)]=_0x27f640[_0x234f20(0x1fb)],this[_0x234f20(0x1c2)](_0x234f20(0x1e2),{'error':_0x29a905});}}}[_0x4aa975(0x1e7)](_0x42bd03){const _0xedffc7=_0x4aa975;this[_0xedffc7(0x1cc)]({'type':_0x4b6fd9[_0xedffc7(0x1f9)],'label':_0x42bd03,'uiId':_0xedffc7(0x201),'content':_0x42bd03});}[_0x4aa975(0x214)](){const _0x4ce3dd=_0x4aa975;this[_0x4ce3dd(0x20d)](_0x4ce3dd(0x201));}async[_0x4aa975(0x1d4)](_0x31c254,_0x226116){const _0x3e8802=_0x4aa975,_0x283b59=_0x3e8802(0x1be)+_0x264fe8();this[_0x3e8802(0x22f)](_0x283b59);const _0x56b239=_0x3e8802(0x1be)+_0x264fe8();try{this[_0x3e8802(0x1cc)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x0);const _0x3c8268=this[_0x3e8802(0x1ba)][_0x3e8802(0x1d2)](this[_0x3e8802(0x221)],_0x31c254,_0x226116);this[_0x3e8802(0x240)][_0x3e8802(0x229)](_0x56b239,_0x3c8268[_0x3e8802(0x1f3)]);const {id:_0x58ea4d}=await _0x3c8268[_0x3e8802(0x1e0)]();this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),this[_0x3e8802(0x1f7)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'id':_0x58ea4d,'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x1);}catch(_0x5bb216){this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),(_0x5bb216[_0x3e8802(0x1e1)][_0x3e8802(0x23d)](_0x3e8802(0x21b))||this[_0x3e8802(0x1c2)](_0x3e8802(0x1e2),{'error':new _0x4233bd(_0x3e8802(0x215),this,{'url':_0x31c254,'originalError':_0x5bb216}),'url':_0x31c254}),this[_0x3e8802(0x20d)](_0x56b239));}finally{this[_0x3e8802(0x237)](_0x283b59);}}async[_0x4aa975(0x1db)](_0x411540,_0x2b4bdd,_0x2dd93c){const _0x284cc4=_0x4aa975,_0x243b49=this[_0x284cc4(0x21f)][_0x284cc4(0x23c)][_0x284cc4(0x1bb)](_0x2c73e8=>_0x2c73e8['id']===_0x411540);if(!_0x243b49)return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x227),this,{'sourceId':_0x411540}),'sourceId':_0x411540}),[];try{const _0x481574=(await _0x243b49[_0x284cc4(0x1c0)](_0x2b4bdd))[_0x284cc4(0x1f8)](_0xf57a35=>{const _0xf2e07f=_0x284cc4,_0x42e804=this[_0xf2e07f(0x1f0)](_0xf57a35['id']);return{..._0xf57a35,'isInContext':_0x42e804};});return _0x243b49[_0x284cc4(0x210)]=_0x481574,this[_0x284cc4(0x1c2)](_0x284cc4(0x1ce),{'sourceId':_0x411540,'source':_0x243b49,'resources':_0x481574,'uid':_0x2dd93c}),_0x481574;}catch(_0x205f2f){return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x1e4),this,{'sourceId':_0x411540,'originalError':_0x205f2f}),'sourceId':_0x411540,'sourceLabel':_0x243b49[_0x284cc4(0x1dc)]}),[];}}async[_0x4aa975(0x1d8)](_0x2fb980,_0x3cda62){const _0x15ec3e=_0x4aa975;if(this[_0x15ec3e(0x1f0)](_0x3cda62['id']))return;let _0x595658=_0x3cda62[_0x15ec3e(0x1fe)];if(!_0x595658&&_0x2fb980[_0x15ec3e(0x216)])try{_0x595658=await _0x2fb980[_0x15ec3e(0x216)](_0x3cda62['id']);}catch(_0x4a544d){return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1bf),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'originalError':_0x4a544d}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}if(_0x595658)switch(_0x3cda62[_0x15ec3e(0x200)]){case _0x4b6fd9[_0x15ec3e(0x23e)]:if(_0x15ec3e(0x234)!=typeof _0x595658)return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x234),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x1d4)](_0x595658,{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x1fc)]:if(!(_0x595658 instanceof File))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x206),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x211)]:if(_0x15ec3e(0x1d5)!=typeof _0x595658||!(_0x15ec3e(0x217)in _0x595658)||!(_0x15ec3e(0x200)in _0x595658))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x1dd),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});_0x595658=AIChatContext[_0x15ec3e(0x1e5)](_0x595658,_0x3cda62[_0x15ec3e(0x1dc)]),await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']},_0x4b6fd9[_0x15ec3e(0x211)]);break;default:this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c7),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'resourceType':_0x3cda62[_0x15ec3e(0x200)]}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}else this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c1),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}static[_0x4aa975(0x1e5)](_0x4a3d04,_0x54bebc){const _0x3568f2=_0x4aa975;switch(_0x4a3d04[_0x3568f2(0x200)]){case _0x25c72c[_0x3568f2(0x22d)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1d1)});case _0x25c72c[_0x3568f2(0x20c)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1ee)});default:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1e9)});}}static[_0x4aa975(0x23a)](_0x55f25d){const _0x2b8143=_0x4aa975;switch(_0x55f25d[_0x2b8143(0x200)]){case _0x4b6fd9[_0x2b8143(0x1fc)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x23e)]:return{'type':_0x4b6fd9[_0x2b8143(0x23e)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x20e)]:return{'type':_0x4b6fd9[_0x2b8143(0x20e)],'id':_0x55f25d['id'],..._0x55f25d[_0x2b8143(0x201)]?.[_0x2b8143(0x1e6)]&&{'selection':_0x55f25d[_0x2b8143(0x201)]}};case _0x4b6fd9[_0x2b8143(0x211)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};default:return null;}}[_0x4aa975(0x1cc)](_0x513ced,_0x12d595=!0x1){const _0x35829a=_0x4aa975;if(this[_0x35829a(0x205)][_0x35829a(0x229)](_0x513ced[_0x35829a(0x1b7)],_0x513ced),_0x513ced[_0x35829a(0x1d0)]||this[_0x35829a(0x1c2)](_0x35829a(0x1ea),{'contextItem':_0x513ced,'isLoading':_0x12d595}),_0x35829a(0x230)===_0x513ced[_0x35829a(0x1b7)]&&this[_0x35829a(0x1ff)](),_0x513ced[_0x35829a(0x219)]){const _0x5b1482=this[_0x35829a(0x20f)](_0x513ced[_0x35829a(0x219)]);_0x5b1482&&_0x5b1482[_0x35829a(0x212)](_0x441c9b=>{const _0x5907d0=_0x35829a;this[_0x5907d0(0x1c3)](_0x441c9b,_0x513ced[_0x5907d0(0x219)],!0x0);});}}[_0x4aa975(0x20d)](_0xe8a4d4){const _0x56cae1=_0x4aa975,_0x2efeea=this[_0x56cae1(0x205)][_0x56cae1(0x222)](_0xe8a4d4),_0xa69617=this[_0x56cae1(0x240)][_0x56cae1(0x222)](_0xe8a4d4);if(_0xa69617&&(_0xa69617[_0x56cae1(0x1fa)](),this[_0x56cae1(0x240)][_0x56cae1(0x1f1)](_0xe8a4d4)),_0x2efeea?.[_0x56cae1(0x219)]){const _0x1b3566=this[_0x56cae1(0x20f)](_0x2efeea[_0x56cae1(0x219)]);_0x1b3566&&_0x1b3566[_0x56cae1(0x212)](_0x2d1031=>{const _0x331259=_0x56cae1;this[_0x331259(0x1c3)](_0x2d1031,_0x2efeea[_0x331259(0x219)],!0x1);});}this[_0x56cae1(0x205)][_0x56cae1(0x1f1)](_0xe8a4d4),this[_0x56cae1(0x1c2)](_0x56cae1(0x204),{'uiId':_0xe8a4d4,'type':_0x2efeea?.[_0x56cae1(0x200)]}),_0x56cae1(0x230)===_0xe8a4d4&&this[_0x56cae1(0x1ff)]();}[_0x4aa975(0x1f7)](_0x31f473,_0x37df76){const _0xa82c22=_0x4aa975;if(this[_0xa82c22(0x205)][_0xa82c22(0x1c8)](_0x31f473[_0xa82c22(0x1b7)])&&(this[_0xa82c22(0x205)][_0xa82c22(0x229)](_0x31f473[_0xa82c22(0x1b7)],_0x31f473),this[_0xa82c22(0x1c2)](_0xa82c22(0x20b),{'contextItem':_0x31f473,'isLoading':_0x37df76}),_0x31f473[_0xa82c22(0x219)])){const _0xf73a90=this[_0xa82c22(0x20f)](_0x31f473[_0xa82c22(0x219)]);_0xf73a90&&_0xf73a90[_0xa82c22(0x212)](_0x5190eb=>{const _0x20525c=_0xa82c22;this[_0x20525c(0x1c3)](_0x5190eb,_0x31f473[_0x20525c(0x219)],!0x0);});}}[_0x4aa975(0x1ca)](_0x43ef10){const _0xb456d3=_0x4aa975;this[_0xb456d3(0x1ec)][_0xb456d3(0x229)](_0x43ef10[_0xb456d3(0x1b7)],_0x43ef10);}[_0x4aa975(0x228)](){const _0xe1b4bd=_0x4aa975;this[_0xe1b4bd(0x21f)]={'document':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d9)]?.[_0xe1b4bd(0x1da)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d7)]?.[_0xe1b4bd(0x1da)]},'files':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1ef)]?.[_0xe1b4bd(0x1da)]},'sources':this[_0xe1b4bd(0x1e3)]()},this[_0xe1b4bd(0x1c2)](_0xe1b4bd(0x1bd),{'options':this[_0xe1b4bd(0x21f)]});}[_0x4aa975(0x1e3)](){const _0x21d28b=_0x4aa975;return this[_0x21d28b(0x1c9)]?.[_0x21d28b(0x23c)]?.[_0x21d28b(0x1f8)](_0x11ce10=>({..._0x11ce10,'resources':[]}))??[];}[_0x4aa975(0x1ff)](){const _0x3394dd=_0x4aa975,_0x367574=this[_0x3394dd(0x1df)]()||this[_0x3394dd(0x213)]();this[_0x3394dd(0x21f)][_0x3394dd(0x1d9)][_0x3394dd(0x1f6)]=_0x367574,this[_0x3394dd(0x1c2)](_0x3394dd(0x1bd),{'options':this[_0x3394dd(0x21f)]});}[_0x4aa975(0x1f0)](_0x2da3bb){const _0x4fd1c7=_0x4aa975;for(const _0x58f01b of this[_0x4fd1c7(0x205)][_0x4fd1c7(0x22c)]())if(_0x58f01b[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;for(const _0x2e8485 of this[_0x4fd1c7(0x1ec)][_0x4fd1c7(0x22c)]())if(_0x2e8485[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;return!0x1;}[_0x4aa975(0x20f)](_0x984e90){const _0x71909f=_0x4aa975,_0x20aad0=[];for(const _0x2a9d8c of this[_0x71909f(0x21f)][_0x71909f(0x23c)]){_0x2a9d8c[_0x71909f(0x210)][_0x71909f(0x1bb)](_0x287e78=>_0x287e78['id']===_0x984e90)&&_0x20aad0[_0x71909f(0x239)](_0x2a9d8c['id']);}return 0x0===_0x20aad0[_0x71909f(0x1e6)]?null:_0x20aad0;}[_0x4aa975(0x1c3)](_0x2120c4,_0x27895d,_0x3205d5){const _0x153f07=_0x4aa975,_0x4bedcc=this[_0x153f07(0x21f)][_0x153f07(0x23c)][_0x153f07(0x1bb)](_0xbcccb6=>_0xbcccb6['id']===_0x2120c4);if(!_0x4bedcc)return;const _0x4ff5a5=_0x4bedcc[_0x153f07(0x210)][_0x153f07(0x1bb)](_0x5dedc2=>_0x5dedc2['id']===_0x27895d);_0x4ff5a5&&(_0x4ff5a5[_0x153f07(0x1eb)]=_0x3205d5,this[_0x153f07(0x1c2)](_0x153f07(0x233),{'sourceId':_0x2120c4,'resourceId':_0x27895d,'isInContext':_0x3205d5}));}[_0x4aa975(0x22f)](_0x67d989){const _0x5694c9=_0x4aa975;this[_0x5694c9(0x1d3)][_0x5694c9(0x229)](_0x67d989,!0x0),this[_0x5694c9(0x1d3)][_0x5694c9(0x1d6)]&&this[_0x5694c9(0x1c2)](_0x5694c9(0x226),{'isUploadInProgress':!0x0});}[_0x4aa975(0x237)](_0x4d1b91){const _0xeaf7d9=_0x4aa975;this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1f1)](_0x4d1b91),0x0===this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1d6)]&&this[_0xeaf7d9(0x1c2)](_0xeaf7d9(0x226),{'isUploadInProgress':!0x1});}}
23
+ const _0x837382=_0x2842;function _0x5071(){const _0x1ef07e=['urls','sessionId','isSelectionInContext','uploadUrl','_addToConversationContextItem','updateCurrentDocument','document','isHidden','3087BFdeZt','version','ai-chat-url-upload-failed','contextItemRemoved','isInContext','end','uploadProgressChanged','_createContextItemFromContent','isCurrentDocumentInConversation','_pendingContextItems','hidden','_findSourceIdsByResourceId','_ongoingUploads','abort','FILE','6306696xVIKui','message','getResources','has','_ongoingUploadOperations','label','selection','_mapContextItemToRequestData','10GJoQqM','HTML','SELECTION','mapContextItemsToRequestData','ai-chat-source-not-found','getSentContextItems','enabled','_convertTextResourceToFile','object','filter','string','text/html','ai-chat-resource-no-data','clearPendingContextItems','uiId','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-invalid-data','start','_finishUploadOperation','text/plain','TEXT','_finishContextItemLoading','url-','text/markdown','stack','_updateResourceInContextState','DOCUMENT','all','getData','get','current-document','error','_conversationContextItems','_addContextOptionsState','addContextOptionsChanged','name','find','_isResourceInContext','3336242ZftnYE','ai-chat-resource-load-failed','fetchDocument','from','size','getPendingContextItems','isCurrentDocumentInContext','addSelectionToContext','loadSourceResources','contextItemAdded','142763ClqMSN','File','removeSelectionFromContext','contextSent','ai-chat-source-resources-load-failed','_removeContextItem','addCurrentDocumentToContext','ai-chat-context-unsupported-type','sourceResourcesLoaded','addResourceToContext','forEach','_addContextItem','_getCustomSourcesInitialState','addFilesToContext','uploadFile','attributes','contextItemLoadingEnded','ai-request-aborted','sources','abortController','files','_ownerId','removeFromContext','_config','map','URL','files-','_setAddContextOptionsDefaultState','1367412SXafrR','getId','ai-chat-document-upload-failed','addUrlToContext','populateFromMessage','push','uploadDocument','length','set','getDocument','type','resourceStateChanged','values','Current\x20document','ai-chat-file-upload-failed','url','1377hXaBcI','resources','content','data','fire','resourceId','file-','isReadOnly','_toggleAddCurrentDocumentOptionVisibility','startsWith','_connector','MARKDOWN','1574FZlpEl','400888TCSmuh','addToConversationContext','_startUploadOperation','delete','init','66140TDKsZa'];_0x5071=function(){return _0x1ef07e;};return _0x5071();}function _0x2842(_0x90a55c,_0x5b7bcd){const _0x507118=_0x5071();return _0x2842=function(_0x2842d7,_0x1c5418){_0x2842d7=_0x2842d7-0x138;let _0x134e70=_0x507118[_0x2842d7];return _0x134e70;},_0x2842(_0x90a55c,_0x5b7bcd);}(function(_0x3874df,_0x1a47da){const _0xf452c4=_0x2842,_0x15129d=_0x3874df();while(!![]){try{const _0x2e8a45=-parseInt(_0xf452c4(0x144))/0x1+parseInt(_0xf452c4(0x17c))/0x2*(parseInt(_0xf452c4(0x170))/0x3)+-parseInt(_0xf452c4(0x17d))/0x4+parseInt(_0xf452c4(0x1a2))/0x5*(-parseInt(_0xf452c4(0x160))/0x6)+-parseInt(_0xf452c4(0x13a))/0x7+-parseInt(_0xf452c4(0x19a))/0x8+parseInt(_0xf452c4(0x18b))/0x9*(parseInt(_0xf452c4(0x182))/0xa);if(_0x2e8a45===_0x1a47da)break;else _0x15129d['push'](_0x15129d['shift']());}catch(_0x369284){_0x15129d['push'](_0x15129d['shift']());}}}(_0x5071,0xa29f7));import{CKEditorError as _0x34c7d6,ObservableMixin as _0x1db243,uid as _0x438100}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a1f7c,AIContextTextResourceType as _0x4db6e2}from'../../aicore/model/aicontext.js';import{escape as _0x15c0b2}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x837382(0x143),_0x837382(0x18e),_0x837382(0x154),_0x837382(0x147),_0x837382(0x1c1),_0x837382(0x1c4),_0x837382(0x14c),_0x837382(0x16b),_0x837382(0x191)];export class AIChatContext extends _0x1db243(){[_0x837382(0x17a)];[_0x837382(0x15b)];[_0x837382(0x159)];constructor({connector:_0x20f0ac,config:_0x997067,ownerId:_0x376027}){const _0x17651a=_0x837382;super(),this[_0x17651a(0x17a)]=_0x20f0ac,this[_0x17651a(0x15b)]=_0x997067,this[_0x17651a(0x159)]=_0x376027;}[_0x837382(0x181)](){const _0x42c4db=_0x837382;this[_0x42c4db(0x194)]=new Map(),this[_0x42c4db(0x1c2)]=new Map(),this[_0x42c4db(0x197)]=new Map(),this[_0x42c4db(0x19e)]=new Map(),this[_0x42c4db(0x15f)]();}[_0x837382(0x13f)](){const _0x3366ab=_0x837382;return this[_0x3366ab(0x194)];}async[_0x837382(0x164)](_0x1f90ba){const _0x45f7a7=_0x837382,_0x4bece2=await this[_0x45f7a7(0x192)](_0x1f90ba);return this[_0x45f7a7(0x187)](_0x4bece2),_0x45f7a7(0x1c0)===_0x4bece2[_0x45f7a7(0x1b0)]&&this[_0x45f7a7(0x178)](),_0x4bece2;}async[_0x837382(0x192)](_0x597e50){const _0x2ce053=_0x837382;if(_0x597e50[_0x2ce053(0x16a)]===_0x4a1f7c[_0x2ce053(0x1bc)]){const _0x347802=await this[_0x2ce053(0x17a)][_0x2ce053(0x13c)](this[_0x2ce053(0x159)],_0x597e50['id'])[_0x2ce053(0x169)]();return{'id':_0x2ce053(0x1c0),'uiId':_0x2ce053(0x1c0),'label':_0x2ce053(0x16d),'type':_0x597e50[_0x2ce053(0x16a)],'content':_0x347802[_0x2ce053(0x172)],'hidden':this[_0x2ce053(0x1c2)][_0x2ce053(0x19d)](_0x2ce053(0x1c0)),'version':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x18c)],'sessionId':_0x347802[_0x2ce053(0x153)]?.[_0x2ce053(0x184)]};}return{'id':_0x597e50['id'],'uiId':_0x597e50['id'],'label':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x19f)]||_0x597e50[_0x2ce053(0x1c5)]||_0x597e50[_0x2ce053(0x16f)]||_0x597e50['id'],'type':_0x597e50[_0x2ce053(0x16a)],..._0x597e50?.[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]?{'resourceId':_0x597e50[_0x2ce053(0x153)]?.[_0x2ce053(0x175)]}:{}};}[_0x837382(0x1a7)](){const _0x1cbaaf=_0x837382;return new Map(this[_0x1cbaaf(0x1c2)]);}[_0x837382(0x15a)](_0x43787f){const _0x23537d=_0x837382,_0x5ee5f0=this[_0x23537d(0x194)][_0x23537d(0x1bf)](_0x43787f);_0x5ee5f0?.[_0x23537d(0x177)]||this[_0x23537d(0x149)](_0x43787f);}[_0x837382(0x1af)](){const _0x124963=_0x837382;if(0x0===this[_0x124963(0x194)][_0x124963(0x13e)])return;for(const _0x2de7f6 of this[_0x124963(0x194)][_0x124963(0x16c)]())this[_0x124963(0x149)](_0x2de7f6[_0x124963(0x1b0)]);const _0x21261e=this[_0x124963(0x1c2)][_0x124963(0x1bf)](_0x124963(0x1c0))||this[_0x124963(0x194)][_0x124963(0x1bf)](_0x124963(0x1c0));_0x21261e&&this[_0x124963(0x14f)]({..._0x21261e,'isReadOnly':!0x0,'hidden':!0x0});}[_0x837382(0x17e)](_0x9506ea){const _0x4539f8=_0x837382;for(const _0x5865db of _0x9506ea[_0x4539f8(0x16c)]())this[_0x4539f8(0x187)](_0x5865db);this[_0x4539f8(0x1af)](),this[_0x4539f8(0x174)](_0x4539f8(0x147),{'contextItems':Array[_0x4539f8(0x13d)](this[_0x4539f8(0x1a7)]()[_0x4539f8(0x16c)]())});}[_0x837382(0x140)](){const _0x17242b=_0x837382;return this[_0x17242b(0x194)][_0x17242b(0x19d)](_0x17242b(0x1c0));}[_0x837382(0x185)](){const _0x1fcb5c=_0x837382;return this[_0x1fcb5c(0x194)][_0x1fcb5c(0x19d)](_0x1fcb5c(0x1a0));}[_0x837382(0x193)](){const _0x26a577=_0x837382;return this[_0x26a577(0x1c2)][_0x26a577(0x19d)](_0x26a577(0x1c0));}static[_0x837382(0x1a5)](_0x509a7c){const _0x495374=_0x837382;return Array[_0x495374(0x13d)](_0x509a7c[_0x495374(0x16c)]())[_0x495374(0x15c)](_0x116a7f=>this[_0x495374(0x1a1)](_0x116a7f))[_0x495374(0x1ab)](_0x72d3e2=>null!==_0x72d3e2);}async[_0x837382(0x151)](_0x1ea7a0,_0x254fde,_0x1c7104=_0x4a1f7c[_0x837382(0x199)]){const _0xedbe60=_0x837382,_0x459fe8=_0xedbe60(0x15e)+_0x438100();this[_0xedbe60(0x17f)](_0x459fe8);try{await Promise[_0xedbe60(0x1bd)](_0x1ea7a0[_0xedbe60(0x15c)](async _0xc0de22=>{const _0x487875=_0xedbe60,_0x21c8f9=_0x487875(0x176)+_0x438100(),_0x17c133=_0x15c0b2(_0xc0de22[_0x487875(0x1c5)]);try{this[_0x487875(0x14f)]({'type':_0x1c7104,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x0);const _0x166b13=this[_0x487875(0x17a)][_0x487875(0x152)](this[_0x487875(0x159)],_0xc0de22,_0x254fde);this[_0x487875(0x197)][_0x487875(0x168)](_0x21c8f9,_0x166b13[_0x487875(0x157)]);const {id:_0x584376}=await _0x166b13[_0x487875(0x161)]();this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9),this[_0x487875(0x1b7)]({'type':_0x1c7104,'id':_0x584376,'label':_0x254fde?.[_0x487875(0x19f)]||_0x17c133,'uiId':_0x21c8f9,'resourceId':_0x254fde?.[_0x487875(0x175)]},!0x1);}catch(_0x441e19){this[_0x487875(0x197)][_0x487875(0x180)](_0x21c8f9);if(!_0x441e19[_0x487875(0x19b)][_0x487875(0x179)](_0x487875(0x155))){const _0x3ee197=new _0x34c7d6(_0x487875(0x16e),null,{'fileName':_0x17c133});_0x3ee197[_0x487875(0x1ba)]=_0x441e19[_0x487875(0x1ba)],this[_0x487875(0x174)](_0x487875(0x1c1),{'error':_0x3ee197,'fileName':_0x17c133});}this[_0x487875(0x149)](_0x21c8f9);}}));}finally{this[_0xedbe60(0x1b4)](_0x459fe8);}}[_0x837382(0x14a)](_0xbabcf6){const _0x1de81c=_0x837382;if(this[_0x1de81c(0x140)]())return;const _0x43f168={'type':_0x4a1f7c[_0x1de81c(0x1bc)],'uiId':_0x1de81c(0x1c0),'label':_0xbabcf6,'isReadOnly':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0)),'hidden':this[_0x1de81c(0x1c2)][_0x1de81c(0x19d)](_0x1de81c(0x1c0))};this[_0x1de81c(0x14f)](_0x43f168);}async[_0x837382(0x188)](_0xe062f2,_0x22741b,_0x45768d,_0x495649){const _0x5536db=_0x837382,_0x1db5cf=this[_0x5536db(0x194)][_0x5536db(0x1bf)](_0x5536db(0x1c0));if(_0x1db5cf&&_0xe062f2){_0x1db5cf[_0x5536db(0x1a0)]=_0x495649?_0x495649[_0x5536db(0x15c)](_0x44847c=>({'start':_0x44847c[_0x5536db(0x1b3)],'end':_0x44847c[_0x5536db(0x190)]})):[];try{if(_0x1db5cf[_0x5536db(0x18c)]===_0x22741b)return;const {id:_0x319c1f}=await this[_0x5536db(0x17a)][_0x5536db(0x166)](this[_0x5536db(0x159)],_0xe062f2,{'version':_0x22741b,'sessionId':_0x45768d})[_0x5536db(0x161)]();_0x1db5cf['id']=_0x319c1f,_0x1db5cf[_0x5536db(0x172)]=_0xe062f2,_0x1db5cf[_0x5536db(0x18c)]=_0x22741b,_0x1db5cf[_0x5536db(0x184)]=_0x45768d;}catch(_0x20fbc7){const _0x55bfaf=new _0x34c7d6(_0x5536db(0x162),null);_0x55bfaf[_0x5536db(0x1ba)]=_0x20fbc7[_0x5536db(0x1ba)],this[_0x5536db(0x174)](_0x5536db(0x1c1),{'error':_0x55bfaf});}}}[_0x837382(0x141)](_0x1211ee){const _0x81bb24=_0x837382;this[_0x81bb24(0x14f)]({'type':_0x4a1f7c[_0x81bb24(0x1a4)],'label':_0x1211ee,'uiId':_0x81bb24(0x1a0),'content':_0x1211ee});}[_0x837382(0x146)](){const _0x351b2b=_0x837382;this[_0x351b2b(0x149)](_0x351b2b(0x1a0));}async[_0x837382(0x163)](_0x1a97e8,_0x2a1810){const _0x444eb6=_0x837382,_0x287573=_0x444eb6(0x1b8)+_0x438100();this[_0x444eb6(0x17f)](_0x287573);const _0x5ed6c2=_0x444eb6(0x1b8)+_0x438100();try{this[_0x444eb6(0x14f)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x0);const _0x1a3bba=this[_0x444eb6(0x17a)][_0x444eb6(0x186)](this[_0x444eb6(0x159)],_0x1a97e8,_0x2a1810);this[_0x444eb6(0x197)][_0x444eb6(0x168)](_0x5ed6c2,_0x1a3bba[_0x444eb6(0x157)]);const {id:_0x42eac5}=await _0x1a3bba[_0x444eb6(0x161)]();this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),this[_0x444eb6(0x1b7)]({'type':_0x4a1f7c[_0x444eb6(0x15d)],'id':_0x42eac5,'label':_0x2a1810?.[_0x444eb6(0x19f)]||_0x1a97e8,'uiId':_0x5ed6c2,'resourceId':_0x2a1810?.[_0x444eb6(0x175)]},!0x1);}catch(_0x7b9016){this[_0x444eb6(0x197)][_0x444eb6(0x180)](_0x5ed6c2),(_0x7b9016[_0x444eb6(0x19b)][_0x444eb6(0x179)](_0x444eb6(0x155))||this[_0x444eb6(0x174)](_0x444eb6(0x1c1),{'error':new _0x34c7d6(_0x444eb6(0x18d),this,{'url':_0x1a97e8,'originalError':_0x7b9016}),'url':_0x1a97e8}),this[_0x444eb6(0x149)](_0x5ed6c2));}finally{this[_0x444eb6(0x1b4)](_0x287573);}}async[_0x837382(0x142)](_0x555d64,_0x3d15e2,_0x3f7f2e){const _0x5b2d6d=_0x837382,_0x406b13=this[_0x5b2d6d(0x1c3)][_0x5b2d6d(0x156)][_0x5b2d6d(0x138)](_0x3dedcc=>_0x3dedcc['id']===_0x555d64);if(!_0x406b13)return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x1a6),this,{'sourceId':_0x555d64}),'sourceId':_0x555d64}),[];try{const _0x10ab37=(await _0x406b13[_0x5b2d6d(0x19c)](_0x3d15e2))[_0x5b2d6d(0x15c)](_0x1bc2f1=>{const _0x1adbdd=_0x5b2d6d,_0x7d7546=this[_0x1adbdd(0x139)](_0x1bc2f1['id']);return{..._0x1bc2f1,'isInContext':_0x7d7546};});return _0x406b13[_0x5b2d6d(0x171)]=_0x10ab37,this[_0x5b2d6d(0x174)](_0x5b2d6d(0x14c),{'sourceId':_0x555d64,'source':_0x406b13,'resources':_0x10ab37,'uid':_0x3f7f2e}),_0x10ab37;}catch(_0x285e41){return this[_0x5b2d6d(0x174)](_0x5b2d6d(0x1c1),{'error':new _0x34c7d6(_0x5b2d6d(0x148),this,{'sourceId':_0x555d64,'originalError':_0x285e41}),'sourceId':_0x555d64,'sourceLabel':_0x406b13[_0x5b2d6d(0x19f)]}),[];}}async[_0x837382(0x14d)](_0x1e34ca,_0x2a30b6){const _0x509bae=_0x837382;if(this[_0x509bae(0x139)](_0x2a30b6['id']))return;let _0x53d449=_0x2a30b6[_0x509bae(0x173)];if(!_0x53d449&&_0x1e34ca[_0x509bae(0x1be)])try{_0x53d449=await _0x1e34ca[_0x509bae(0x1be)](_0x2a30b6['id']);}catch(_0x49e7ef){return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x13b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'originalError':_0x49e7ef}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}if(_0x53d449)switch(_0x2a30b6[_0x509bae(0x16a)]){case _0x4a1f7c[_0x509bae(0x15d)]:if(_0x509bae(0x1ac)!=typeof _0x53d449)return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1ac),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x163)](_0x53d449,{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x199)]:if(!(_0x53d449 instanceof File))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x145),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']});break;case _0x4a1f7c[_0x509bae(0x1b6)]:if(_0x509bae(0x1aa)!=typeof _0x53d449||!(_0x509bae(0x172)in _0x53d449)||!(_0x509bae(0x16a)in _0x53d449))return void this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1b2),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'expectedType':_0x509bae(0x1b1),'actualType':typeof _0x53d449}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});_0x53d449=AIChatContext[_0x509bae(0x1a9)](_0x53d449,_0x2a30b6[_0x509bae(0x19f)]),await this[_0x509bae(0x151)]([_0x53d449],{'label':_0x2a30b6[_0x509bae(0x19f)],'resourceId':_0x2a30b6['id']},_0x4a1f7c[_0x509bae(0x1b6)]);break;default:this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x14b),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id'],'resourceType':_0x2a30b6[_0x509bae(0x16a)]}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}else this[_0x509bae(0x174)](_0x509bae(0x1c1),{'error':new _0x34c7d6(_0x509bae(0x1ae),this,{'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']}),'resourceId':_0x2a30b6['id'],'sourceId':_0x1e34ca['id']});}static[_0x837382(0x1a9)](_0x281d23,_0x596597){const _0x390836=_0x837382;switch(_0x281d23[_0x390836(0x16a)]){case _0x4db6e2[_0x390836(0x17b)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b9)});case _0x4db6e2[_0x390836(0x1a3)]:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1ad)});default:return new File([_0x281d23[_0x390836(0x172)]],_0x596597,{'type':_0x390836(0x1b5)});}}static[_0x837382(0x1a1)](_0x3a74ed){const _0x458ea0=_0x837382;switch(_0x3a74ed[_0x458ea0(0x16a)]){case _0x4a1f7c[_0x458ea0(0x199)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x15d)]:return{'type':_0x4a1f7c[_0x458ea0(0x15d)],'id':_0x3a74ed['id']};case _0x4a1f7c[_0x458ea0(0x1bc)]:return{'type':_0x4a1f7c[_0x458ea0(0x1bc)],'id':_0x3a74ed['id'],..._0x3a74ed[_0x458ea0(0x1a0)]?.[_0x458ea0(0x167)]&&{'selection':_0x3a74ed[_0x458ea0(0x1a0)]}};case _0x4a1f7c[_0x458ea0(0x1b6)]:return{'type':_0x4a1f7c[_0x458ea0(0x199)],'id':_0x3a74ed['id']};default:return null;}}[_0x837382(0x14f)](_0x4d257f,_0x2458fa=!0x1){const _0x26df6d=_0x837382;if(this[_0x26df6d(0x194)][_0x26df6d(0x168)](_0x4d257f[_0x26df6d(0x1b0)],_0x4d257f),_0x4d257f[_0x26df6d(0x195)]||this[_0x26df6d(0x174)](_0x26df6d(0x143),{'contextItem':_0x4d257f,'isLoading':_0x2458fa}),_0x26df6d(0x1c0)===_0x4d257f[_0x26df6d(0x1b0)]&&this[_0x26df6d(0x178)](),_0x4d257f[_0x26df6d(0x175)]){const _0x46b1c2=this[_0x26df6d(0x196)](_0x4d257f[_0x26df6d(0x175)]);_0x46b1c2&&_0x46b1c2[_0x26df6d(0x14e)](_0x2a3e70=>{const _0x524ca0=_0x26df6d;this[_0x524ca0(0x1bb)](_0x2a3e70,_0x4d257f[_0x524ca0(0x175)],!0x0);});}}[_0x837382(0x149)](_0x3669df){const _0x4e6f80=_0x837382,_0x30d488=this[_0x4e6f80(0x194)][_0x4e6f80(0x1bf)](_0x3669df),_0x379339=this[_0x4e6f80(0x197)][_0x4e6f80(0x1bf)](_0x3669df);if(_0x379339&&(_0x379339[_0x4e6f80(0x198)](),this[_0x4e6f80(0x197)][_0x4e6f80(0x180)](_0x3669df)),_0x30d488?.[_0x4e6f80(0x175)]){const _0x546b8b=this[_0x4e6f80(0x196)](_0x30d488[_0x4e6f80(0x175)]);_0x546b8b&&_0x546b8b[_0x4e6f80(0x14e)](_0x27daad=>{const _0x24f128=_0x4e6f80;this[_0x24f128(0x1bb)](_0x27daad,_0x30d488[_0x24f128(0x175)],!0x1);});}this[_0x4e6f80(0x194)][_0x4e6f80(0x180)](_0x3669df),this[_0x4e6f80(0x174)](_0x4e6f80(0x18e),{'uiId':_0x3669df,'type':_0x30d488?.[_0x4e6f80(0x16a)]}),_0x4e6f80(0x1c0)===_0x3669df&&this[_0x4e6f80(0x178)]();}[_0x837382(0x1b7)](_0x517bdc,_0x3fc445){const _0x451405=_0x837382;if(this[_0x451405(0x194)][_0x451405(0x19d)](_0x517bdc[_0x451405(0x1b0)])&&(this[_0x451405(0x194)][_0x451405(0x168)](_0x517bdc[_0x451405(0x1b0)],_0x517bdc),this[_0x451405(0x174)](_0x451405(0x154),{'contextItem':_0x517bdc,'isLoading':_0x3fc445}),_0x517bdc[_0x451405(0x175)])){const _0x2b9888=this[_0x451405(0x196)](_0x517bdc[_0x451405(0x175)]);_0x2b9888&&_0x2b9888[_0x451405(0x14e)](_0x3b7417=>{const _0x56ab7d=_0x451405;this[_0x56ab7d(0x1bb)](_0x3b7417,_0x517bdc[_0x56ab7d(0x175)],!0x0);});}}[_0x837382(0x187)](_0xaca12c){const _0x442ada=_0x837382;this[_0x442ada(0x1c2)][_0x442ada(0x168)](_0xaca12c[_0x442ada(0x1b0)],_0xaca12c);}[_0x837382(0x15f)](){const _0x2a646a=_0x837382;this[_0x2a646a(0x1c3)]={'document':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x189)]?.[_0x2a646a(0x1a8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x183)]?.[_0x2a646a(0x1a8)]},'files':{'enabled':!0x1!==this[_0x2a646a(0x15b)]?.[_0x2a646a(0x158)]?.[_0x2a646a(0x1a8)]},'sources':this[_0x2a646a(0x150)]()},this[_0x2a646a(0x174)](_0x2a646a(0x1c4),{'options':this[_0x2a646a(0x1c3)]});}[_0x837382(0x150)](){const _0x2e4b13=_0x837382;return this[_0x2e4b13(0x15b)]?.[_0x2e4b13(0x156)]?.[_0x2e4b13(0x15c)](_0x452aec=>({..._0x452aec,'resources':[]}))??[];}[_0x837382(0x178)](){const _0x3f6f15=_0x837382,_0x1ff24a=this[_0x3f6f15(0x140)]()||this[_0x3f6f15(0x193)]();this[_0x3f6f15(0x1c3)][_0x3f6f15(0x189)][_0x3f6f15(0x18a)]=_0x1ff24a,this[_0x3f6f15(0x174)](_0x3f6f15(0x1c4),{'options':this[_0x3f6f15(0x1c3)]});}[_0x837382(0x139)](_0x572710){const _0x2b2217=_0x837382;for(const _0x406332 of this[_0x2b2217(0x194)][_0x2b2217(0x16c)]())if(_0x406332[_0x2b2217(0x175)]===_0x572710)return!0x0;for(const _0x4c2f11 of this[_0x2b2217(0x1c2)][_0x2b2217(0x16c)]())if(_0x4c2f11[_0x2b2217(0x175)]===_0x572710)return!0x0;return!0x1;}[_0x837382(0x196)](_0x55e208){const _0xb3f312=_0x837382,_0x1bb97a=[];for(const _0x5008a8 of this[_0xb3f312(0x1c3)][_0xb3f312(0x156)]){_0x5008a8[_0xb3f312(0x171)][_0xb3f312(0x138)](_0x26c13b=>_0x26c13b['id']===_0x55e208)&&_0x1bb97a[_0xb3f312(0x165)](_0x5008a8['id']);}return 0x0===_0x1bb97a[_0xb3f312(0x167)]?null:_0x1bb97a;}[_0x837382(0x1bb)](_0x3856d9,_0x44a5b2,_0x1879a7){const _0x215a1f=_0x837382,_0x26385c=this[_0x215a1f(0x1c3)][_0x215a1f(0x156)][_0x215a1f(0x138)](_0xe2b71=>_0xe2b71['id']===_0x3856d9);if(!_0x26385c)return;const _0x30bf92=_0x26385c[_0x215a1f(0x171)][_0x215a1f(0x138)](_0x1002c9=>_0x1002c9['id']===_0x44a5b2);_0x30bf92&&(_0x30bf92[_0x215a1f(0x18f)]=_0x1879a7,this[_0x215a1f(0x174)](_0x215a1f(0x16b),{'sourceId':_0x3856d9,'resourceId':_0x44a5b2,'isInContext':_0x1879a7}));}[_0x837382(0x17f)](_0x1e86b0){const _0x2b7d88=_0x837382;this[_0x2b7d88(0x19e)][_0x2b7d88(0x168)](_0x1e86b0,!0x0),this[_0x2b7d88(0x19e)][_0x2b7d88(0x13e)]&&this[_0x2b7d88(0x174)](_0x2b7d88(0x191),{'isUploadInProgress':!0x0});}[_0x837382(0x1b4)](_0x1c80ac){const _0x5bd37c=_0x837382;this[_0x5bd37c(0x19e)][_0x5bd37c(0x180)](_0x1c80ac),0x0===this[_0x5bd37c(0x19e)][_0x5bd37c(0x13e)]&&this[_0x5bd37c(0x174)](_0x5bd37c(0x191),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3cf3(){const _0x1161dd=['ai-chat-conversation-init-failed','removeInteraction','1840890PoNgNS','conversationInitialized','webSearch','text','lastInteraction','push','updateCurrentDocument','getCurrentDocumentContext','stack','getPendingContextItems','stop','ai-chat-handle-user-conversation-not-initialized','modification-delta','populateFromMessage','currentReply','_processMessagesToInteractions','toLowerCase','conversationStarted','startConversation','addFilesToContext','ai-chat-conversation-init-from-id-failed','indexOf','toggleReasoning','fetchConversation','getDocumentContext','isStarted','getAll','interactions','assistant','isCurrentDocumentInContext','ai-chat-conversation-set-model-null','user','group','setModel','666700GaMNcI','toggleWebSearch','ai-chat-conversation-set-model-not-available','addCurrentDocumentToContext','text-delta','modelSelected','quickActionData','role','currentInteraction','reset','set','createReply','getInteraction','model','fetchConversationMessages','selectedModel','removeFromContext','type','2205705WBSyUt','connector','appendContent','chatModels','error','329975JpDHJN','handleUserInteraction','isCurrentDocumentInConversation','_extractContextItems','ai-chat-conversation-start-no-model-selected','destroy','ai-chat-conversation-start-failed','getCapabilitiesConfig','contextItems','attributes','addToConversationContext','addUrlToContext','638982woLWjp','delegate','ai-chat-conversation-already-started','loadSourceResources','init','conversationId','reasoning','addSelectionToContext','removeSelectionFromContext','prompt','isAvailable','chatCapabilities','content','load','1778433hokdqB','message','chatContext','getConversation','setConversationTitle','capabilities','splice','interactionCreated','updateCurrentDocumentInContext','start','getDefault','defaultModelId','hasOwn','getEditor','title','isSelectionInContext','length','find','ai-chat-handle-user-interaction-already-in-progress','createInteraction','getMessages','fire','sessionId','addResourceToContext','1973475pcocPX','options'];_0x3cf3=function(){return _0x1161dd;};return _0x3cf3();}const _0x4d277a=_0x1293;(function(_0x33ec20,_0x39cc91){const _0x4916f7=_0x1293,_0xa824f2=_0x33ec20();while(!![]){try{const _0x156137=parseInt(_0x4916f7(0xea))/0x1+-parseInt(_0x4916f7(0xf6))/0x2+parseInt(_0x4916f7(0x104))/0x3+parseInt(_0x4916f7(0xd3))/0x4+-parseInt(_0x4916f7(0xe5))/0x5+-parseInt(_0x4916f7(0xb1))/0x6+parseInt(_0x4916f7(0xad))/0x7;if(_0x156137===_0x39cc91)break;else _0xa824f2['push'](_0xa824f2['shift']());}catch(_0x5ea23e){_0xa824f2['push'](_0xa824f2['shift']());}}}(_0x3cf3,0x4a343));function _0x1293(_0xb56632,_0x4ba8e5){const _0x3cf3ab=_0x3cf3();return _0x1293=function(_0x12937f,_0x462087){_0x12937f=_0x12937f-0xab;let _0x414eeb=_0x3cf3ab[_0x12937f];return _0x414eeb;},_0x1293(_0xb56632,_0x4ba8e5);}import{CKEditorError as _0x19919e,EmitterMixin as _0x251e58}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x13788c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x399914,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53e23}from'./aichatcontext.js';import{AICapabilities as _0x31d052,CAPABILITIES_MODEL_EVENT_NAMES as _0x30c301}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ee9e5}from'./aichatinteraction.js';export class AIChatConversation extends _0x251e58(){['id'];[_0x4d277a(0xca)]=!0x1;[_0x4d277a(0xcc)]=[];[_0x4d277a(0xdb)];[_0x4d277a(0xe2)];[_0x4d277a(0xe6)];[_0x4d277a(0xae)];constructor(_0x3ff07e){const _0x27b896=_0x4d277a;super(),this[_0x27b896(0xae)]=_0x3ff07e,this[_0x27b896(0xe6)]=_0x3ff07e[_0x27b896(0xe6)],this[_0x27b896(0xe8)]=_0x3ff07e[_0x27b896(0xe8)],this['id']=_0x3ff07e[_0x27b896(0xfb)];}async[_0x4d277a(0xfa)](_0x307ae2){const _0x319eaa=_0x4d277a;try{this[_0x319eaa(0x106)]=new _0x399914({'connector':this[_0x319eaa(0xe6)],'config':_0x307ae2,'ownerId':this['id']}),this[_0x319eaa(0x106)][_0x319eaa(0xf7)](..._0x53e23)['to'](this),this[_0x319eaa(0x106)][_0x319eaa(0xfa)](),this[_0x319eaa(0x101)]=new _0x31d052(),this[_0x319eaa(0x101)][_0x319eaa(0xf7)](..._0x30c301)['to'](this),this[_0x319eaa(0x101)][_0x319eaa(0xfa)]();const _0x2ab149=await this[_0x319eaa(0xe8)][_0x319eaa(0xcb)]();this[_0x319eaa(0x119)](_0x319eaa(0xb2),{'availableModels':_0x2ab149});const _0xaff125=await this[_0x319eaa(0xe8)][_0x319eaa(0x10e)](this[_0x319eaa(0xae)][_0x319eaa(0x10f)]);_0xaff125&&await this[_0x319eaa(0xd2)](_0xaff125);}catch(_0x1e9f3b){const _0x489dd1=new _0x19919e(_0x319eaa(0xaf),null,{'message':_0x1e9f3b[_0x319eaa(0x105)]});_0x489dd1[_0x319eaa(0xb9)]=_0x1e9f3b[_0x319eaa(0xb9)],this[_0x319eaa(0x119)](_0x319eaa(0xe9),{'error':_0x489dd1});}}async[_0x4d277a(0x10d)](){const _0x42a0e6=_0x4d277a;if(this[_0x42a0e6(0xca)])throw new _0x19919e(_0x42a0e6(0xf8),null,{'conversation':this});if(!this[_0x42a0e6(0xe2)])throw new _0x19919e(_0x42a0e6(0xee),null,{'conversation':this});try{const {id:_0x3ffb95}=await this[_0x42a0e6(0xe6)][_0x42a0e6(0xc3)](this['id'],this[_0x42a0e6(0xae)][_0x42a0e6(0xd1)])[_0x42a0e6(0x107)]();this['id']=_0x3ffb95,this[_0x42a0e6(0xca)]=!0x0,this[_0x42a0e6(0x119)](_0x42a0e6(0xc2),{'conversationId':this['id'],'selectedModel':this[_0x42a0e6(0xe2)]});}catch(_0x125e82){const _0x3e8656=new _0x19919e(_0x42a0e6(0xf0),null,{'message':_0x125e82[_0x42a0e6(0x105)]});_0x3e8656[_0x42a0e6(0xb9)]=_0x125e82[_0x42a0e6(0xb9)],this[_0x42a0e6(0x119)](_0x42a0e6(0xe9),{'error':_0x3e8656});}}async[_0x4d277a(0x103)](_0x30bb3c,_0x9b30c3){const _0x1b4501=_0x4d277a;try{const _0x3b0449=await this[_0x1b4501(0xe6)][_0x1b4501(0xc8)](_0x30bb3c)[_0x1b4501(0x107)](),_0x34a0f1=await this[_0x1b4501(0xe6)][_0x1b4501(0xe1)](_0x30bb3c)[_0x1b4501(0x118)](),_0x19ec0d=_0x34a0f1[0x0][_0x1b4501(0xe0)];this[_0x1b4501(0xca)]=!0x0,this['id']=_0x3b0449['id'],_0x1b4501(0x112)in _0x3b0449?this[_0x1b4501(0x119)](_0x1b4501(0x108),_0x3b0449[_0x1b4501(0x112)],!0x0):this[_0x1b4501(0x119)](_0x1b4501(0x108),'',!0x0);const _0xdf2e14=(await this[_0x1b4501(0xe8)][_0x1b4501(0xcb)]())[_0x1b4501(0x115)](_0x256d82=>_0x256d82['id'][_0x1b4501(0xc1)]()===_0x19ec0d[_0x1b4501(0xc1)]());return this[_0x1b4501(0xe2)]=_0xdf2e14,this[_0x1b4501(0x119)](_0x1b4501(0xd8),{'selectedModel':_0xdf2e14,'isDisabled':!0x0}),await this[_0x1b4501(0xc0)](_0x34a0f1,_0x9b30c3,_0x19ec0d),this[_0x1b4501(0xdb)]=void 0x0,this;}catch(_0x177039){const _0xf24201=new _0x19919e(_0x1b4501(0xc5),null,{'message':_0x177039[_0x1b4501(0x105)],'conversationId':_0x30bb3c});throw _0xf24201[_0x1b4501(0xb9)]=_0x177039[_0x1b4501(0xb9)],this[_0x1b4501(0x119)](_0x1b4501(0xe9),{'error':_0xf24201}),_0xf24201;}}async[_0x4d277a(0xc0)](_0x58b306,_0x8b5a4a,_0x34f464){const _0x527eb4=_0x4d277a;let _0x1de38e;for(const _0x112de7 of _0x58b306)if(_0x527eb4(0xd0)===_0x112de7[_0x527eb4(0xda)]){const _0x370abd=await this[_0x527eb4(0xed)](_0x112de7),_0x14c33e={'isReasoningEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xfc)),'isWebSearchEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xb3))};_0x1de38e=this[_0x527eb4(0x117)]({'userMessage':_0x112de7[_0x527eb4(0xff)],'contextItems':_0x370abd,'capabilities':_0x14c33e,'modelId':_0x34f464,'quickActionData':_0x112de7[_0x527eb4(0xf3)]?.[_0x527eb4(0xd9)]}),this[_0x527eb4(0xdb)]=_0x1de38e,this[_0x527eb4(0x106)][_0x527eb4(0xf4)](this[_0x527eb4(0xdb)][_0x527eb4(0xf2)]);}else{if(_0x527eb4(0xcd)===_0x112de7[_0x527eb4(0xda)]&&_0x1de38e)for(const _0x231c8f of _0x112de7[_0x527eb4(0x102)]){const _0x261a18=_0x527eb4(0xb4)===_0x231c8f[_0x527eb4(0xe4)]?_0x527eb4(0xd7):_0x527eb4(0xbd),_0x7e2bd8=_0x1de38e[_0x527eb4(0xc9)]()?.[_0x527eb4(0xab)]!==_0x8b5a4a;_0x1de38e[_0x527eb4(0xbf)]=_0x1de38e[_0x527eb4(0xde)]({'type':_0x261a18,'isDone':!0x0,'interactionId':_0x1de38e['id'],'areActionsDisabled':_0x7e2bd8}),_0x1de38e[_0x527eb4(0xbf)][_0x527eb4(0xe7)](_0x231c8f[_0x527eb4(0x102)]);}}}async[_0x4d277a(0xed)](_0x801221){const _0x3eefd5=_0x4d277a,_0x2539fc=new Map();if(!_0x801221[_0x3eefd5(0x102)])return _0x2539fc;for(const _0x4d9f69 of _0x801221[_0x3eefd5(0x102)]){const _0x1ca674=await this[_0x3eefd5(0x106)][_0x3eefd5(0xbe)](_0x4d9f69);_0x1ca674&&_0x2539fc[_0x3eefd5(0xdd)](_0x1ca674['id'],_0x1ca674);}return _0x2539fc;}async[_0x4d277a(0xeb)]({userMessage:_0x415a7c,quickActionData:_0x13dab3}){const _0x512746=_0x4d277a;if(!this[_0x512746(0xca)])throw new _0x19919e(_0x512746(0xbc),null,{'conversation':this});if(this[_0x512746(0xdb)])throw new _0x19919e(_0x512746(0x116),null,{'conversation':this});try{const _0x124426=this[_0x512746(0x106)][_0x512746(0xba)](),_0x1dc5ba=this[_0x512746(0x101)][_0x512746(0xf1)](),_0x2b73c9=this[_0x512746(0xe2)]['id'];this[_0x512746(0xdb)]=this[_0x512746(0x117)]({'userMessage':_0x415a7c,'contextItems':_0x124426,'capabilities':_0x1dc5ba,'modelId':_0x2b73c9,'quickActionData':_0x13dab3}),await this[_0x512746(0xdb)][_0x512746(0x10d)](),this[_0x512746(0x106)][_0x512746(0xf4)](this[_0x512746(0xdb)][_0x512746(0xf2)]);}catch(_0x58f949){this[_0x512746(0x119)](_0x512746(0xe9),{'interactionId':this[_0x512746(0xdb)]?this[_0x512746(0xdb)]['id']:void 0x0,'error':_0x58f949});}finally{this[_0x512746(0xdb)]?.[_0x512746(0xbb)](),this[_0x512746(0xdb)]=void 0x0;}}[_0x4d277a(0x117)]({userMessage:_0x14065c,contextItems:_0x1369dd,capabilities:_0x463710,modelId:_0x5c77db,quickActionData:_0x1a9858}){const _0x466f60=_0x4d277a,_0x309e8b=new _0x4ee9e5({'userMessage':_0x14065c,'contextItems':_0x1369dd,'capabilities':_0x463710,'conversationId':this['id'],'connector':this[_0x466f60(0xe6)],'editor':this[_0x466f60(0xae)][_0x466f60(0x111)]&&this[_0x466f60(0xae)][_0x466f60(0x111)](),'model':_0x5c77db,'quickActionData':_0x1a9858});return _0x309e8b[_0x466f60(0xf7)](..._0x13788c)['to'](this),this[_0x466f60(0xcc)][_0x466f60(0xb6)](_0x309e8b),this[_0x466f60(0x119)](_0x466f60(0x10b),_0x309e8b),_0x309e8b;}[_0x4d277a(0xdf)](_0x1482a5){const _0x55caf2=_0x4d277a;return this[_0x55caf2(0xcc)][_0x55caf2(0x115)](_0x480377=>_0x480377['id']===_0x1482a5);}[_0x4d277a(0xb0)](_0x85c342){const _0x51a635=_0x4d277a,_0x5cb8ef=this[_0x51a635(0xdf)](_0x85c342);_0x5cb8ef&&(_0x5cb8ef[_0x51a635(0xef)](),this[_0x51a635(0xcc)][_0x51a635(0x10a)](this[_0x51a635(0xcc)][_0x51a635(0xc6)](_0x5cb8ef),0x1));}get[_0x4d277a(0xb5)](){const _0x21a9dc=_0x4d277a;return this[_0x21a9dc(0xcc)][this[_0x21a9dc(0xcc)][_0x21a9dc(0x114)]-0x1];}[_0x4d277a(0xd6)](_0xc9b058){const _0x6c3568=_0x4d277a;this[_0x6c3568(0x106)][_0x6c3568(0xd6)](_0xc9b058);}async[_0x4d277a(0x10c)]({content:_0x265e3a,version:_0x59af22,sessionId:_0x367131,selections:_0x51413a}){const _0x43fc17=_0x4d277a;await this[_0x43fc17(0x106)][_0x43fc17(0xb7)](_0x265e3a,_0x59af22,_0x367131,_0x51413a);}[_0x4d277a(0xb8)](){const _0x1472bd=_0x4d277a;return this[_0x1472bd(0xdb)]?.[_0x1472bd(0xc9)]()?.[_0x1472bd(0x102)]||'';}[_0x4d277a(0xfd)](_0x288388){const _0x2d6129=_0x4d277a;this[_0x2d6129(0x106)][_0x2d6129(0xfd)](_0x288388);}[_0x4d277a(0xfe)](){const _0x5e16aa=_0x4d277a;this[_0x5e16aa(0x106)][_0x5e16aa(0xfe)]();}[_0x4d277a(0xc4)](_0x442112){const _0x165d36=_0x4d277a;this[_0x165d36(0x106)][_0x165d36(0xc4)](_0x442112);}[_0x4d277a(0xf5)](_0x16be80){const _0x220971=_0x4d277a;this[_0x220971(0x106)][_0x220971(0xf5)](_0x16be80);}[_0x4d277a(0xac)](_0x4e5b2d,_0x189b17){const _0x1cd3d0=_0x4d277a;this[_0x1cd3d0(0x106)][_0x1cd3d0(0xac)](_0x4e5b2d,_0x189b17);}[_0x4d277a(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159){const _0x215b9d=_0x4d277a;return this[_0x215b9d(0x106)][_0x215b9d(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159);}[_0x4d277a(0xe3)](_0xbafa26){const _0x1e122e=_0x4d277a;this[_0x1e122e(0x106)][_0x1e122e(0xe3)](_0xbafa26);}[_0x4d277a(0xd4)](){const _0x1cb734=_0x4d277a;this[_0x1cb734(0x101)][_0x1cb734(0xd4)]();}[_0x4d277a(0xc7)](){const _0x513b89=_0x4d277a;this[_0x513b89(0x101)][_0x513b89(0xc7)]();}[_0x4d277a(0xce)](){const _0x21aee6=_0x4d277a;return this[_0x21aee6(0x106)][_0x21aee6(0xce)]();}[_0x4d277a(0xec)](){const _0x1285c9=_0x4d277a;return this[_0x1285c9(0x106)][_0x1285c9(0xec)]();}[_0x4d277a(0x113)](){const _0x31cd72=_0x4d277a;return this[_0x31cd72(0x106)][_0x31cd72(0x113)]();}async[_0x4d277a(0xd2)](_0x916f71){const _0x12bf83=_0x4d277a;if(!_0x916f71)throw new _0x19919e(_0x12bf83(0xcf),null,{'conversation':this});if(!0x1===await this[_0x12bf83(0xe8)][_0x12bf83(0x100)](_0x916f71))throw new _0x19919e(_0x12bf83(0xd5),null,{'conversation':this,'model':_0x916f71});_0x916f71['id']!==this[_0x12bf83(0xe2)]?.['id']&&(this[_0x12bf83(0xe2)]=_0x916f71,this[_0x12bf83(0x101)][_0x12bf83(0xdc)](),this[_0x12bf83(0x119)](_0x12bf83(0xd8),{'selectedModel':_0x916f71}));}}
23
+ const _0x38f408=_0x5ea9;(function(_0x72a86e,_0x202320){const _0x3b494a=_0x5ea9,_0x1d9e9a=_0x72a86e();while(!![]){try{const _0x51c730=parseInt(_0x3b494a(0x11e))/0x1+-parseInt(_0x3b494a(0x130))/0x2*(parseInt(_0x3b494a(0x122))/0x3)+parseInt(_0x3b494a(0x132))/0x4*(parseInt(_0x3b494a(0x107))/0x5)+-parseInt(_0x3b494a(0x13f))/0x6+parseInt(_0x3b494a(0xd1))/0x7*(-parseInt(_0x3b494a(0x141))/0x8)+parseInt(_0x3b494a(0xd3))/0x9*(-parseInt(_0x3b494a(0x119))/0xa)+parseInt(_0x3b494a(0xe6))/0xb*(parseInt(_0x3b494a(0x133))/0xc);if(_0x51c730===_0x202320)break;else _0x1d9e9a['push'](_0x1d9e9a['shift']());}catch(_0x4a1682){_0x1d9e9a['push'](_0x1d9e9a['shift']());}}}(_0x344c,0x18d38));import{CKEditorError as _0x4c3137,EmitterMixin as _0x3701ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x43e3ee}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x423912,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4db3d7}from'./aichatcontext.js';function _0x5ea9(_0x592931,_0x54d3dc){const _0x344cf2=_0x344c();return _0x5ea9=function(_0x5ea95a,_0x678abb){_0x5ea95a=_0x5ea95a-0xd0;let _0x421707=_0x344cf2[_0x5ea95a];return _0x421707;},_0x5ea9(_0x592931,_0x54d3dc);}import{AICapabilities as _0x2c852c,CAPABILITIES_MODEL_EVENT_NAMES as _0x167d5b}from'../../aicore/model/aicapabilities.js';function _0x344c(){const _0x2dbdb0=['options','804066XtmORE','addResourceToContext','8qxivlK','delegate','indexOf','fetchConversation','63861DLjVyi','startConversation','28962toUDDP','length','addCurrentDocumentToContext','getDocumentContext','removeSelectionFromContext','toggleWebSearch','appendContent','reset','start','updateCurrentDocumentInContext','chatCapabilities','role','getConversation','init','removeFromContext','user','capabilities','find','loadSourceResources','3377kdIbPq','addUrlToContext','destroy','quickActionData','getCapabilitiesConfig','handleUserInteraction','content','populateFromMessage','lastInteraction','ai-chat-conversation-set-model-not-available','conversationId','selectedModel','conversationInitialized','splice','ai-chat-conversation-init-from-id-failed','toggleReasoning','currentInteraction','contextItems','chatModels','getInteraction','ai-chat-handle-user-conversation-not-initialized','fire','getMessages','push','getDefault','conversationStarted','fetchConversationMessages','isSelectionInContext','interactionCreated','modification-delta','setConversationTitle','stop','defaultModelId','31485UJDhNt','toLowerCase','ai-chat-conversation-init-failed','currentReply','addSelectionToContext','createInteraction','_processMessagesToInteractions','modelSelected','title','isCurrentDocumentInConversation','getPendingContextItems','error','ai-chat-conversation-start-no-model-selected','assistant','getAll','setModel','model','removeInteraction','260FSiRHF','set','isCurrentDocumentInContext','getCurrentDocumentContext','message','37867ykcCVp','createReply','hasOwn','connector','1971IrkDor','getEditor','text-delta','text','ai-chat-conversation-start-failed','type','sessionId','addFilesToContext','stack','load','ai-chat-handle-user-interaction-already-in-progress','webSearch','interactions','addToConversationContext','586VKPtTq','attributes','68yPEIyY','14700dxRbBx','updateCurrentDocument','group','_extractContextItems','isStarted','chatContext','prompt','reasoning','isAvailable','ai-chat-conversation-already-started','ai-chat-conversation-set-model-null'];_0x344c=function(){return _0x2dbdb0;};return _0x344c();}import{AIChatInteraction as _0x28c7fb}from'./aichatinteraction.js';export class AIChatConversation extends _0x3701ac(){['id'];[_0x38f408(0x137)]=!0x1;[_0x38f408(0x12e)]=[];[_0x38f408(0xf6)];[_0x38f408(0xf1)];[_0x38f408(0x121)];[_0x38f408(0x13e)];constructor(_0x5bb010){const _0x5e9c3f=_0x38f408;super(),this[_0x5e9c3f(0x13e)]=_0x5bb010,this[_0x5e9c3f(0x121)]=_0x5bb010[_0x5e9c3f(0x121)],this[_0x5e9c3f(0xf8)]=_0x5bb010[_0x5e9c3f(0xf8)],this['id']=_0x5bb010[_0x5e9c3f(0xf0)];}async[_0x38f408(0xe0)](_0x3c0296){const _0x158a1b=_0x38f408;try{this[_0x158a1b(0x138)]=new _0x423912({'connector':this[_0x158a1b(0x121)],'config':_0x3c0296,'ownerId':this['id']}),this[_0x158a1b(0x138)][_0x158a1b(0x142)](..._0x4db3d7)['to'](this),this[_0x158a1b(0x138)][_0x158a1b(0xe0)](),this[_0x158a1b(0xdd)]=new _0x2c852c(),this[_0x158a1b(0xdd)][_0x158a1b(0x142)](..._0x167d5b)['to'](this),this[_0x158a1b(0xdd)][_0x158a1b(0xe0)]();const _0x585a52=await this[_0x158a1b(0xf8)][_0x158a1b(0x115)]();this[_0x158a1b(0xfb)](_0x158a1b(0xf2),{'availableModels':_0x585a52});const _0x972461=await this[_0x158a1b(0xf8)][_0x158a1b(0xfe)](this[_0x158a1b(0x13e)][_0x158a1b(0x106)]);_0x972461&&await this[_0x158a1b(0x116)](_0x972461);}catch(_0xfd3955){const _0x751648=new _0x4c3137(_0x158a1b(0x109),null,{'message':_0xfd3955[_0x158a1b(0x11d)]});_0x751648[_0x158a1b(0x12a)]=_0xfd3955[_0x158a1b(0x12a)],this[_0x158a1b(0xfb)](_0x158a1b(0x112),{'error':_0x751648});}}async[_0x38f408(0xdb)](){const _0x4640db=_0x38f408;if(this[_0x4640db(0x137)])throw new _0x4c3137(_0x4640db(0x13c),null,{'conversation':this});if(!this[_0x4640db(0xf1)])throw new _0x4c3137(_0x4640db(0x113),null,{'conversation':this});try{const {id:_0x19001e}=await this[_0x4640db(0x121)][_0x4640db(0xd2)](this['id'],this[_0x4640db(0x13e)][_0x4640db(0x135)])[_0x4640db(0xdf)]();this['id']=_0x19001e,this[_0x4640db(0x137)]=!0x0,this[_0x4640db(0xfb)](_0x4640db(0xff),{'conversationId':this['id'],'selectedModel':this[_0x4640db(0xf1)]});}catch(_0xca5154){const _0x1f92da=new _0x4c3137(_0x4640db(0x126),null,{'message':_0xca5154[_0x4640db(0x11d)]});_0x1f92da[_0x4640db(0x12a)]=_0xca5154[_0x4640db(0x12a)],this[_0x4640db(0xfb)](_0x4640db(0x112),{'error':_0x1f92da});}}async[_0x38f408(0x12b)](_0xc263d4,_0xd4950b){const _0x128f4b=_0x38f408;try{const _0x5b2596=await this[_0x128f4b(0x121)][_0x128f4b(0xd0)](_0xc263d4)[_0x128f4b(0xdf)](),_0x366f26=await this[_0x128f4b(0x121)][_0x128f4b(0x100)](_0xc263d4)[_0x128f4b(0xfc)](),_0x252e0b=_0x366f26[0x0][_0x128f4b(0x117)];this[_0x128f4b(0x137)]=!0x0,this['id']=_0x5b2596['id'],_0x128f4b(0x10f)in _0x5b2596?this[_0x128f4b(0xfb)](_0x128f4b(0x104),_0x5b2596[_0x128f4b(0x10f)],!0x0):this[_0x128f4b(0xfb)](_0x128f4b(0x104),'',!0x0);const _0xde3c18=(await this[_0x128f4b(0xf8)][_0x128f4b(0x115)]())[_0x128f4b(0xe4)](_0x1544b8=>_0x1544b8['id'][_0x128f4b(0x108)]()===_0x252e0b[_0x128f4b(0x108)]());return this[_0x128f4b(0xf1)]=_0xde3c18,this[_0x128f4b(0xfb)](_0x128f4b(0x10e),{'selectedModel':_0xde3c18,'isDisabled':!0x0}),await this[_0x128f4b(0x10d)](_0x366f26,_0xd4950b,_0x252e0b),this[_0x128f4b(0xf6)]=void 0x0,this;}catch(_0x2314c1){const _0x379174=new _0x4c3137(_0x128f4b(0xf4),null,{'message':_0x2314c1[_0x128f4b(0x11d)],'conversationId':_0xc263d4});throw _0x379174[_0x128f4b(0x12a)]=_0x2314c1[_0x128f4b(0x12a)],this[_0x128f4b(0xfb)](_0x128f4b(0x112),{'error':_0x379174}),_0x379174;}}async[_0x38f408(0x10d)](_0x452cc3,_0x17c11d,_0x3eebe6){const _0x44e67c=_0x38f408;let _0x5963c6;for(const _0x4d8545 of _0x452cc3)if(_0x44e67c(0xe2)===_0x4d8545[_0x44e67c(0xde)]){const _0x45ca96=await this[_0x44e67c(0x136)](_0x4d8545),_0x5919fd={'isReasoningEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x13a)),'isWebSearchEnabled':Object[_0x44e67c(0x120)](_0x4d8545[_0x44e67c(0xe3)],_0x44e67c(0x12d))};_0x5963c6=this[_0x44e67c(0x10c)]({'userMessage':_0x4d8545[_0x44e67c(0x139)],'contextItems':_0x45ca96,'capabilities':_0x5919fd,'modelId':_0x3eebe6,'quickActionData':_0x4d8545[_0x44e67c(0x131)]?.[_0x44e67c(0xe9)]}),this[_0x44e67c(0xf6)]=_0x5963c6,this[_0x44e67c(0x138)][_0x44e67c(0x12f)](this[_0x44e67c(0xf6)][_0x44e67c(0xf7)]);}else{if(_0x44e67c(0x114)===_0x4d8545[_0x44e67c(0xde)]&&_0x5963c6)for(const _0x46b52d of _0x4d8545[_0x44e67c(0xec)]){const _0x1d03a4=_0x44e67c(0x125)===_0x46b52d[_0x44e67c(0x127)]?_0x44e67c(0x124):_0x44e67c(0x103),_0x49b334=_0x5963c6[_0x44e67c(0xd6)]()?.[_0x44e67c(0x128)]!==_0x17c11d;_0x5963c6[_0x44e67c(0x10a)]=_0x5963c6[_0x44e67c(0x11f)]({'type':_0x1d03a4,'isDone':!0x0,'interactionId':_0x5963c6['id'],'areActionsDisabled':_0x49b334}),_0x5963c6[_0x44e67c(0x10a)][_0x44e67c(0xd9)](_0x46b52d[_0x44e67c(0xec)]);}}}async[_0x38f408(0x136)](_0x214bf7){const _0x59a1a6=_0x38f408,_0x376f2e=new Map();if(!_0x214bf7[_0x59a1a6(0xec)])return _0x376f2e;for(const _0x378b12 of _0x214bf7[_0x59a1a6(0xec)]){const _0x46cafd=await this[_0x59a1a6(0x138)][_0x59a1a6(0xed)](_0x378b12);_0x46cafd&&_0x376f2e[_0x59a1a6(0x11a)](_0x46cafd['id'],_0x46cafd);}return _0x376f2e;}async[_0x38f408(0xeb)]({userMessage:_0x44baf1,quickActionData:_0x1576d0}){const _0x8a3b55=_0x38f408;if(!this[_0x8a3b55(0x137)])throw new _0x4c3137(_0x8a3b55(0xfa),null,{'conversation':this});if(this[_0x8a3b55(0xf6)])throw new _0x4c3137(_0x8a3b55(0x12c),null,{'conversation':this});try{const _0x161606=this[_0x8a3b55(0x138)][_0x8a3b55(0x111)](),_0x5d945d=this[_0x8a3b55(0xdd)][_0x8a3b55(0xea)](),_0x364c07=this[_0x8a3b55(0xf1)]['id'];this[_0x8a3b55(0xf6)]=this[_0x8a3b55(0x10c)]({'userMessage':_0x44baf1,'contextItems':_0x161606,'capabilities':_0x5d945d,'modelId':_0x364c07,'quickActionData':_0x1576d0}),await this[_0x8a3b55(0xf6)][_0x8a3b55(0xdb)](),this[_0x8a3b55(0x138)][_0x8a3b55(0x12f)](this[_0x8a3b55(0xf6)][_0x8a3b55(0xf7)]);}catch(_0x523380){this[_0x8a3b55(0xfb)](_0x8a3b55(0x112),{'interactionId':this[_0x8a3b55(0xf6)]?this[_0x8a3b55(0xf6)]['id']:void 0x0,'error':_0x523380});}finally{this[_0x8a3b55(0xf6)]?.[_0x8a3b55(0x105)](),this[_0x8a3b55(0xf6)]=void 0x0;}}[_0x38f408(0x10c)]({userMessage:_0x10d0bb,contextItems:_0x12009a,capabilities:_0x26df22,modelId:_0x3dbc3c,quickActionData:_0x54eb5a}){const _0x23b084=_0x38f408,_0x589f3c=new _0x28c7fb({'userMessage':_0x10d0bb,'contextItems':_0x12009a,'capabilities':_0x26df22,'conversationId':this['id'],'connector':this[_0x23b084(0x121)],'editor':this[_0x23b084(0x13e)][_0x23b084(0x123)]&&this[_0x23b084(0x13e)][_0x23b084(0x123)](),'model':_0x3dbc3c,'quickActionData':_0x54eb5a});return _0x589f3c[_0x23b084(0x142)](..._0x43e3ee)['to'](this),this[_0x23b084(0x12e)][_0x23b084(0xfd)](_0x589f3c),this[_0x23b084(0xfb)](_0x23b084(0x102),_0x589f3c),_0x589f3c;}[_0x38f408(0xf9)](_0x557c77){const _0x1ea497=_0x38f408;return this[_0x1ea497(0x12e)][_0x1ea497(0xe4)](_0x1476f2=>_0x1476f2['id']===_0x557c77);}[_0x38f408(0x118)](_0x26f70b){const _0x16c74f=_0x38f408,_0x5b5bb1=this[_0x16c74f(0xf9)](_0x26f70b);_0x5b5bb1&&(_0x5b5bb1[_0x16c74f(0xe8)](),this[_0x16c74f(0x12e)][_0x16c74f(0xf3)](this[_0x16c74f(0x12e)][_0x16c74f(0x143)](_0x5b5bb1),0x1));}get[_0x38f408(0xee)](){const _0xee6dfb=_0x38f408;return this[_0xee6dfb(0x12e)][this[_0xee6dfb(0x12e)][_0xee6dfb(0xd4)]-0x1];}[_0x38f408(0xd5)](_0x1bf903){const _0xe73a83=_0x38f408;this[_0xe73a83(0x138)][_0xe73a83(0xd5)](_0x1bf903);}async[_0x38f408(0xdc)]({content:_0x502f93,version:_0x4e21b,sessionId:_0x57af4c,selections:_0x23b8ca}){const _0x56e731=_0x38f408;await this[_0x56e731(0x138)][_0x56e731(0x134)](_0x502f93,_0x4e21b,_0x57af4c,_0x23b8ca);}[_0x38f408(0x11c)](){const _0x2a9eb9=_0x38f408;return this[_0x2a9eb9(0xf6)]?.[_0x2a9eb9(0xd6)]()?.[_0x2a9eb9(0xec)]||'';}[_0x38f408(0x10b)](_0x3e7079){const _0x26baa6=_0x38f408;this[_0x26baa6(0x138)][_0x26baa6(0x10b)](_0x3e7079);}[_0x38f408(0xd7)](){const _0x709449=_0x38f408;this[_0x709449(0x138)][_0x709449(0xd7)]();}[_0x38f408(0x129)](_0xb0de26){const _0x48638c=_0x38f408;this[_0x48638c(0x138)][_0x48638c(0x129)](_0xb0de26);}[_0x38f408(0xe7)](_0x2ed1ce){const _0x177cb3=_0x38f408;this[_0x177cb3(0x138)][_0x177cb3(0xe7)](_0x2ed1ce);}[_0x38f408(0x140)](_0x26f5c7,_0x457966){const _0x1d0892=_0x38f408;this[_0x1d0892(0x138)][_0x1d0892(0x140)](_0x26f5c7,_0x457966);}[_0x38f408(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122){const _0x5db64f=_0x38f408;return this[_0x5db64f(0x138)][_0x5db64f(0xe5)](_0x2a6d52,_0x16b1b3,_0x112122);}[_0x38f408(0xe1)](_0x4d3af9){const _0x4620d1=_0x38f408;this[_0x4620d1(0x138)][_0x4620d1(0xe1)](_0x4d3af9);}[_0x38f408(0xd8)](){const _0x2a7ce3=_0x38f408;this[_0x2a7ce3(0xdd)][_0x2a7ce3(0xd8)]();}[_0x38f408(0xf5)](){const _0x4d2460=_0x38f408;this[_0x4d2460(0xdd)][_0x4d2460(0xf5)]();}[_0x38f408(0x11b)](){const _0x22c391=_0x38f408;return this[_0x22c391(0x138)][_0x22c391(0x11b)]();}[_0x38f408(0x110)](){const _0x3e937b=_0x38f408;return this[_0x3e937b(0x138)][_0x3e937b(0x110)]();}[_0x38f408(0x101)](){const _0xf547c5=_0x38f408;return this[_0xf547c5(0x138)][_0xf547c5(0x101)]();}async[_0x38f408(0x116)](_0x28779c){const _0x3b6e91=_0x38f408;if(!_0x28779c)throw new _0x4c3137(_0x3b6e91(0x13d),null,{'conversation':this});if(!0x1===await this[_0x3b6e91(0xf8)][_0x3b6e91(0x13b)](_0x28779c))throw new _0x4c3137(_0x3b6e91(0xef),null,{'conversation':this,'model':_0x28779c});_0x28779c['id']!==this[_0x3b6e91(0xf1)]?.['id']&&(this[_0x3b6e91(0xf1)]=_0x28779c,this[_0x3b6e91(0xdd)][_0x3b6e91(0xda)](),this[_0x3b6e91(0xfb)](_0x3b6e91(0x10e),{'selectedModel':_0x28779c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5599(_0x382109,_0x2ded19){var _0x1d7366=_0x1d73();return _0x5599=function(_0x559902,_0x341fb9){_0x559902=_0x559902-0x70;var _0x9a4a5c=_0x1d7366[_0x559902];return _0x9a4a5c;},_0x5599(_0x382109,_0x2ded19);}var _0x205ad8=_0x5599;(function(_0x498ed6,_0x2f1d81){var _0x463301=_0x5599,_0x7edda6=_0x498ed6();while(!![]){try{var _0x286f21=parseInt(_0x463301(0x85))/0x1+-parseInt(_0x463301(0x7c))/0x2+parseInt(_0x463301(0x81))/0x3*(-parseInt(_0x463301(0x84))/0x4)+parseInt(_0x463301(0x76))/0x5*(-parseInt(_0x463301(0x75))/0x6)+-parseInt(_0x463301(0x80))/0x7*(parseInt(_0x463301(0x82))/0x8)+parseInt(_0x463301(0x86))/0x9+parseInt(_0x463301(0x77))/0xa;if(_0x286f21===_0x2f1d81)break;else _0x7edda6['push'](_0x7edda6['shift']());}catch(_0x294db8){_0x7edda6['push'](_0x7edda6['shift']());}}}(_0x1d73,0xb3dca));import{AICapabilities as _0x28a716}from'../../aicore/model/aicapabilities.js';function _0x1d73(){var _0x451a94=['quickActionData','model','2270586imdGwq','userMessage','sendRequest','connector','8850233lRIGKm','258fuCvEK','8ERoyhy','getDocumentContext','8852hhLkAI','932343BKPwIo','3404115gLEjMY','conversationId','contextItems','getCapabilitiesRequestData','mapContextItemsToRequestData','get','current-document','31938ognQQC','20CJfoCN','20373580BcvACs','queryAssistant','capabilities'];_0x1d73=function(){return _0x451a94;};return _0x1d73();}import{AIInteraction as _0x354d9d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2db3ce}from'./aichatcontext.js';export class AIChatInteraction extends _0x354d9d{[_0x205ad8(0x7d)];[_0x205ad8(0x87)];[_0x205ad8(0x70)]=new Map();[_0x205ad8(0x7b)];[_0x205ad8(0x7a)];constructor(_0x450469){var _0x1bfb40=_0x205ad8;super(_0x450469),this[_0x1bfb40(0x87)]=_0x450469[_0x1bfb40(0x87)],this[_0x1bfb40(0x70)]=_0x450469[_0x1bfb40(0x70)],this[_0x1bfb40(0x79)]=_0x450469[_0x1bfb40(0x79)],this[_0x1bfb40(0x7d)]=_0x450469[_0x1bfb40(0x7d)],this[_0x1bfb40(0x7b)]=_0x450469[_0x1bfb40(0x7b)],this[_0x1bfb40(0x7a)]=_0x450469[_0x1bfb40(0x7a)];}async[_0x205ad8(0x7e)](){var _0x7e5af8=_0x205ad8;return this[_0x7e5af8(0x7f)][_0x7e5af8(0x78)]({'message':this[_0x7e5af8(0x7d)],'conversationId':this[_0x7e5af8(0x87)],'parts':_0x2db3ce[_0x7e5af8(0x72)](this[_0x7e5af8(0x70)]),'capabilities':_0x28a716[_0x7e5af8(0x71)](this[_0x7e5af8(0x79)]),'model':this[_0x7e5af8(0x7b)],'quickActionData':this[_0x7e5af8(0x7a)]});}[_0x205ad8(0x83)](){var _0x27740c=_0x205ad8;return this[_0x27740c(0x70)][_0x27740c(0x73)](_0x27740c(0x74));}}
23
+ function _0x4782(_0x41d7f3,_0x2f1861){var _0x3762dc=_0x3762();return _0x4782=function(_0x4782ed,_0x22ec7e){_0x4782ed=_0x4782ed-0x120;var _0x4097ed=_0x3762dc[_0x4782ed];return _0x4097ed;},_0x4782(_0x41d7f3,_0x2f1861);}var _0x2a7ddb=_0x4782;function _0x3762(){var _0x477139=['6350720LAbhww','900598frfFkR','conversationId','model','6938091jaVfMF','queryAssistant','sendRequest','get','5544HfDrbi','287dxOlDi','1366060hXbeau','2216zoGhIY','connector','capabilities','7148128MsBBra','current-document','mapContextItemsToRequestData','getDocumentContext','130560mZMyCs','getCapabilitiesRequestData','1UTnRge','quickActionData','contextItems','userMessage'];_0x3762=function(){return _0x477139;};return _0x3762();}(function(_0x1261e6,_0x4e8ae2){var _0x43d55e=_0x4782,_0x3efc56=_0x1261e6();while(!![]){try{var _0x1faa24=parseInt(_0x43d55e(0x136))/0x1*(-parseInt(_0x43d55e(0x123))/0x2)+parseInt(_0x43d55e(0x12a))/0x3*(parseInt(_0x43d55e(0x12d))/0x4)+-parseInt(_0x43d55e(0x12c))/0x5+-parseInt(_0x43d55e(0x134))/0x6*(-parseInt(_0x43d55e(0x12b))/0x7)+parseInt(_0x43d55e(0x130))/0x8+-parseInt(_0x43d55e(0x126))/0x9+-parseInt(_0x43d55e(0x122))/0xa;if(_0x1faa24===_0x4e8ae2)break;else _0x3efc56['push'](_0x3efc56['shift']());}catch(_0x1c91f0){_0x3efc56['push'](_0x3efc56['shift']());}}}(_0x3762,0xa6032));import{AICapabilities as _0x11b783}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2e5ab3}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5e7529}from'./aichatcontext.js';export class AIChatInteraction extends _0x2e5ab3{[_0x2a7ddb(0x121)];[_0x2a7ddb(0x124)];[_0x2a7ddb(0x120)]=new Map();[_0x2a7ddb(0x125)];[_0x2a7ddb(0x137)];constructor(_0x1fd0a0){var _0x2da051=_0x2a7ddb;super(_0x1fd0a0),this[_0x2da051(0x124)]=_0x1fd0a0[_0x2da051(0x124)],this[_0x2da051(0x120)]=_0x1fd0a0[_0x2da051(0x120)],this[_0x2da051(0x12f)]=_0x1fd0a0[_0x2da051(0x12f)],this[_0x2da051(0x121)]=_0x1fd0a0[_0x2da051(0x121)],this[_0x2da051(0x125)]=_0x1fd0a0[_0x2da051(0x125)],this[_0x2da051(0x137)]=_0x1fd0a0[_0x2da051(0x137)];}async[_0x2a7ddb(0x128)](){var _0x4880fd=_0x2a7ddb;return this[_0x4880fd(0x12e)][_0x4880fd(0x127)]({'message':this[_0x4880fd(0x121)],'conversationId':this[_0x4880fd(0x124)],'parts':_0x5e7529[_0x4880fd(0x132)](this[_0x4880fd(0x120)]),'capabilities':_0x11b783[_0x4880fd(0x135)](this[_0x4880fd(0x12f)]),'model':this[_0x4880fd(0x125)],'quickActionData':this[_0x4880fd(0x137)]});}[_0x2a7ddb(0x133)](){var _0xdd7e6f=_0x2a7ddb;return this[_0xdd7e6f(0x120)][_0xdd7e6f(0x129)](_0xdd7e6f(0x131));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bae7e=_0x46a9;function _0x2e21(){const _0x3e5909=['13196IGjPQt','items','length','some','find','getAll','45CHayiN','1260335KoYzzj','list','6906672stdmsQ','7EsXthu','357615JVbVyF','265546yyoPZl','getModels','isAvailable','filter','capabilities','_connector','getDefault','2881422cOJGzz','values','provider','1466356dFYdpT','enabled','ai-chat-default-model-id-unrecognized','name','_modelList','sort'];_0x2e21=function(){return _0x3e5909;};return _0x2e21();}(function(_0x1375b8,_0x217f43){const _0x174710=_0x46a9,_0x38af3a=_0x1375b8();while(!![]){try{const _0x37086a=parseInt(_0x174710(0x1d8))/0x1+parseInt(_0x174710(0x1cc))/0x2*(parseInt(_0x174710(0x1d2))/0x3)+-parseInt(_0x174710(0x1c6))/0x4+parseInt(_0x174710(0x1d3))/0x5+parseInt(_0x174710(0x1c3))/0x6*(-parseInt(_0x174710(0x1d6))/0x7)+parseInt(_0x174710(0x1d5))/0x8+-parseInt(_0x174710(0x1d7))/0x9;if(_0x37086a===_0x217f43)break;else _0x38af3a['push'](_0x38af3a['shift']());}catch(_0x1cd1c0){_0x38af3a['push'](_0x38af3a['shift']());}}}(_0x2e21,0x90dcc));function _0x46a9(_0x2a6c68,_0x523f4c){const _0x2e21fe=_0x2e21();return _0x46a9=function(_0x46a902,_0x4c2762){_0x46a902=_0x46a902-0x1c3;let _0x55a9a6=_0x2e21fe[_0x46a902];return _0x55a9a6;},_0x46a9(_0x2a6c68,_0x523f4c);}import{EmitterMixin as _0x365931,logWarning as _0x438608}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x365931(){[_0x2bae7e(0x1ca)]=[];[_0x2bae7e(0x1dd)];constructor({connector:_0x261ae1}){const _0x13e85b=_0x2bae7e;super(),this[_0x13e85b(0x1dd)]=_0x261ae1;}async[_0x2bae7e(0x1d1)](){const _0x5c48fa=_0x2bae7e;if(!this[_0x5c48fa(0x1ca)][_0x5c48fa(0x1ce)]){const _0x1d3dfa=this[_0x5c48fa(0x1dd)][_0x5c48fa(0x1d9)](),_0x1631de=(await _0x1d3dfa[_0x5c48fa(0x1d4)]())[_0x5c48fa(0x1cd)][_0x5c48fa(0x1cb)]((_0xb1c9a3,_0x326e97)=>{const _0x2dd36f=_0x5c48fa,_0x326501=Object[_0x2dd36f(0x1c4)](_0xb1c9a3[_0x2dd36f(0x1dc)])[_0x2dd36f(0x1db)](_0x38ef9f=>_0x38ef9f[_0x2dd36f(0x1c7)])[_0x2dd36f(0x1ce)];return Object[_0x2dd36f(0x1c4)](_0x326e97[_0x2dd36f(0x1dc)])[_0x2dd36f(0x1db)](_0x4a507f=>_0x4a507f[_0x2dd36f(0x1c7)])[_0x2dd36f(0x1ce)]-_0x326501;});this[_0x5c48fa(0x1ca)]=_0x1631de;}return this[_0x5c48fa(0x1ca)];}async[_0x2bae7e(0x1de)](_0xf2dd79){const _0x28ea35=_0x2bae7e,_0x5d824c=await this[_0x28ea35(0x1d1)]();if(!_0x5d824c[_0x28ea35(0x1ce)])return null;if(_0xf2dd79){const _0x377711=_0x5d824c[_0x28ea35(0x1d0)](_0x55575f=>_0x55575f['id']===_0xf2dd79);if(_0x377711)return _0x377711;_0x438608(_0x28ea35(0x1c8),{'defaultModelId':_0xf2dd79,'fallBackModelId':_0x5d824c[0x0]['id']});}return _0x5d824c[0x0];}async[_0x2bae7e(0x1da)](_0x2379e1){const _0x29aa28=_0x2bae7e;return(await this[_0x29aa28(0x1d1)]())[_0x29aa28(0x1cf)](_0x48f252=>_0x48f252[_0x29aa28(0x1c9)]===_0x2379e1[_0x29aa28(0x1c9)]&&_0x48f252[_0x29aa28(0x1c5)]===_0x2379e1[_0x29aa28(0x1c5)]);}}
23
+ const _0x1427ba=_0xbc65;(function(_0x1fc82d,_0x2698d8){const _0x123d9f=_0xbc65,_0x1082b6=_0x1fc82d();while(!![]){try{const _0x10d2a7=-parseInt(_0x123d9f(0x1ae))/0x1*(parseInt(_0x123d9f(0x1bc))/0x2)+-parseInt(_0x123d9f(0x1bb))/0x3+parseInt(_0x123d9f(0x1c3))/0x4+-parseInt(_0x123d9f(0x1be))/0x5*(parseInt(_0x123d9f(0x1bd))/0x6)+-parseInt(_0x123d9f(0x1c1))/0x7+parseInt(_0x123d9f(0x1b0))/0x8+-parseInt(_0x123d9f(0x1b4))/0x9*(-parseInt(_0x123d9f(0x1bf))/0xa);if(_0x10d2a7===_0x2698d8)break;else _0x1082b6['push'](_0x1082b6['shift']());}catch(_0x32190f){_0x1082b6['push'](_0x1082b6['shift']());}}}(_0x4022,0x3fc3b));function _0x4022(){const _0x434a37=['3421824bYPVsf','isAvailable','859252GdrWKB','list','provider','_connector','some','enabled','values','ai-chat-default-model-id-unrecognized','1lPahRz','find','94736Pgvnwr','getModels','name','filter','15904647asKeUr','items','length','sort','getDefault','_modelList','getAll','1512369LXxfpb','610268TyQrMc','30GxmBaD','434570LHqhLW','10nALRLF','capabilities'];_0x4022=function(){return _0x434a37;};return _0x4022();}import{EmitterMixin as _0x16bbaa,logWarning as _0x36dbfc}from'ckeditor5/src/utils.js';function _0xbc65(_0xadfef6,_0x1c84ef){const _0x402206=_0x4022();return _0xbc65=function(_0xbc6508,_0x76b23b){_0xbc6508=_0xbc6508-0x1a7;let _0x53c407=_0x402206[_0xbc6508];return _0x53c407;},_0xbc65(_0xadfef6,_0x1c84ef);}export class AIChatModels extends _0x16bbaa(){[_0x1427ba(0x1b9)]=[];[_0x1427ba(0x1a9)];constructor({connector:_0x5144c7}){const _0x2f7815=_0x1427ba;super(),this[_0x2f7815(0x1a9)]=_0x5144c7;}async[_0x1427ba(0x1ba)](){const _0x1479ca=_0x1427ba;if(!this[_0x1479ca(0x1b9)][_0x1479ca(0x1b6)]){const _0x553f56=this[_0x1479ca(0x1a9)][_0x1479ca(0x1b1)](),_0x4864a4=(await _0x553f56[_0x1479ca(0x1a7)]())[_0x1479ca(0x1b5)][_0x1479ca(0x1b7)]((_0x505721,_0x51c431)=>{const _0x17dd16=_0x1479ca,_0xfc3a7b=Object[_0x17dd16(0x1ac)](_0x505721[_0x17dd16(0x1c0)])[_0x17dd16(0x1b3)](_0x175910=>_0x175910[_0x17dd16(0x1ab)])[_0x17dd16(0x1b6)];return Object[_0x17dd16(0x1ac)](_0x51c431[_0x17dd16(0x1c0)])[_0x17dd16(0x1b3)](_0x2ee587=>_0x2ee587[_0x17dd16(0x1ab)])[_0x17dd16(0x1b6)]-_0xfc3a7b;});this[_0x1479ca(0x1b9)]=_0x4864a4;}return this[_0x1479ca(0x1b9)];}async[_0x1427ba(0x1b8)](_0x819684){const _0x4f695d=_0x1427ba,_0x166c7f=await this[_0x4f695d(0x1ba)]();if(!_0x166c7f[_0x4f695d(0x1b6)])return null;if(_0x819684){const _0x3d1954=_0x166c7f[_0x4f695d(0x1af)](_0x3e6bf1=>_0x3e6bf1['id']===_0x819684);if(_0x3d1954)return _0x3d1954;_0x36dbfc(_0x4f695d(0x1ad),{'defaultModelId':_0x819684,'fallBackModelId':_0x166c7f[0x0]['id']});}return _0x166c7f[0x0];}async[_0x1427ba(0x1c2)](_0x387bb1){const _0x2c0bb6=_0x1427ba;return(await this[_0x2c0bb6(0x1ba)]())[_0x2c0bb6(0x1aa)](_0x44347d=>_0x44347d[_0x2c0bb6(0x1b2)]===_0x387bb1[_0x2c0bb6(0x1b2)]&&_0x44347d[_0x2c0bb6(0x1a8)]===_0x387bb1[_0x2c0bb6(0x1a8)]);}}