@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.6

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 (307) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +27 -3
  4. package/dist/index.css +28 -3
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
  307. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x251163=_0x5718;(function(_0x6f510e,_0x580362){const _0x512d25=_0x5718,_0x1b2647=_0x6f510e();while(!![]){try{const _0x3a5adc=parseInt(_0x512d25(0x189))/0x1*(-parseInt(_0x512d25(0x17a))/0x2)+-parseInt(_0x512d25(0x191))/0x3*(parseInt(_0x512d25(0x178))/0x4)+-parseInt(_0x512d25(0x170))/0x5*(-parseInt(_0x512d25(0x16e))/0x6)+-parseInt(_0x512d25(0x18d))/0x7+parseInt(_0x512d25(0x198))/0x8+-parseInt(_0x512d25(0x180))/0x9*(-parseInt(_0x512d25(0x18f))/0xa)+parseInt(_0x512d25(0x18e))/0xb;if(_0x3a5adc===_0x580362)break;else _0x1b2647['push'](_0x1b2647['shift']());}catch(_0x5d6dab){_0x1b2647['push'](_0x1b2647['shift']());}}}(_0x47fc,0xce69a));import{Command as _0x3de4c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2420ce}from'../aiassistantui.js';function _0x5718(_0x44b0ad,_0x14c84f){const _0x47fcac=_0x47fc();return _0x5718=function(_0x57182b,_0x9a133a){_0x57182b=_0x57182b-0x16c;let _0x46df34=_0x47fcac[_0x57182b];return _0x46df34;},_0x5718(_0x44b0ad,_0x14c84f);}function _0x47fc(){const _0x3f5fbd=['_commandDefinitions','getFirstRange','get','2601456pTlrik','getSelectedBlocks','model','934158CllAIo','getItems','45hwiJSv','change:_hasContext','element','document','requiresContent','add','enabledCommandsIds','editor','12QUwUqg','refresh','4996KiaVpv','selection','showUI','execute','plugins','values','9hRtNyc','isEnabled','includes','length','custom','hasContent','set','isCollapsed','ai.assistant.disabledElements','542rMXReX','change:isEnabled','from','name','1554994rEpCmt','13114321ZMHCCh','7268010YegDQK','isEmpty','1223907DBjPeE','getRanges','config','_hasContext'];_0x47fc=function(){return _0x3f5fbd;};return _0x47fc();}export class ShowAIAssistantCommand extends _0x3de4c0{[_0x251163(0x195)];constructor(_0x1c511c,_0x32dba8){const _0xcb2cd5=_0x251163;super(_0x1c511c),this[_0xcb2cd5(0x195)]=_0x32dba8,this[_0xcb2cd5(0x186)](_0xcb2cd5(0x176),[]),this['on'](_0xcb2cd5(0x171),(_0x580af2,_0xa3ffe7,_0x51d5e7)=>{const _0x10c1b7=_0xcb2cd5;this[_0x10c1b7(0x181)]&&(this[_0x10c1b7(0x176)]=ns(this[_0x10c1b7(0x195)],_0x51d5e7));}),this[_0xcb2cd5(0x186)](_0xcb2cd5(0x194),!0x1),this['on'](_0xcb2cd5(0x18a),(_0x3c31ec,_0x1ee5a8,_0x4bd0af)=>{const _0x189aab=_0xcb2cd5;this[_0x189aab(0x176)]=_0x4bd0af?ns(this[_0x189aab(0x195)],this[_0x189aab(0x194)]):[];});}[_0x251163(0x179)](){const _0x57a67f=_0x251163,_0x4f0086=this[_0x57a67f(0x177)][_0x57a67f(0x16d)];this[_0x57a67f(0x194)]=function(_0x4f1756){const _0x5bad0f=_0x57a67f,_0x1dd200=_0x4f1756[_0x5bad0f(0x173)][_0x5bad0f(0x17b)];return _0x1dd200[_0x5bad0f(0x187)]?0x0!==[..._0x1dd200[_0x5bad0f(0x16c)]()][_0x5bad0f(0x183)]&&![..._0x1dd200[_0x5bad0f(0x16c)]()][0x0][_0x5bad0f(0x190)]:!!_0x4f1756[_0x5bad0f(0x185)](_0x1dd200[_0x5bad0f(0x196)]());}(_0x4f0086);const _0x531c22=_0x4f0086[_0x57a67f(0x173)][_0x57a67f(0x17b)],_0x4d15bc=this[_0x57a67f(0x177)][_0x57a67f(0x193)][_0x57a67f(0x197)](_0x57a67f(0x188));for(const _0x5bdbc9 of _0x531c22[_0x57a67f(0x192)]())for(const _0x2f9779 of _0x5bdbc9[_0x57a67f(0x16f)]())if(_0x2f9779['is'](_0x57a67f(0x172))&&_0x4d15bc[_0x57a67f(0x182)](_0x2f9779[_0x57a67f(0x18c)]))return void(this[_0x57a67f(0x181)]=!0x1);this[_0x57a67f(0x181)]=!0x0;}[_0x251163(0x17d)](_0x156b73='',_0x248fee='',_0x188f36=_0x251163(0x184)){const _0x5ac1f6=_0x251163;this[_0x5ac1f6(0x177)][_0x5ac1f6(0x17e)][_0x5ac1f6(0x197)](_0x2420ce)[_0x5ac1f6(0x17c)](_0x156b73,_0x248fee,_0x188f36);}}function ns(_0x464646,_0x321c2c){const _0x3b6d2a=_0x251163,_0x4dfb24=new Set();for(const _0x5cc230 of _0x464646[_0x3b6d2a(0x17f)]())(_0x321c2c||!0x1===_0x5cc230[_0x3b6d2a(0x174)])&&_0x4dfb24[_0x3b6d2a(0x175)](_0x5cc230['id']);return Array[_0x3b6d2a(0x18b)](_0x4dfb24);}
23
+ const _0x4e2438=_0x9517;(function(_0x2a1978,_0x207e8c){const _0x47f87c=_0x9517,_0x13f508=_0x2a1978();while(!![]){try{const _0x95527b=-parseInt(_0x47f87c(0x1e1))/0x1*(-parseInt(_0x47f87c(0x1f9))/0x2)+parseInt(_0x47f87c(0x1db))/0x3*(-parseInt(_0x47f87c(0x1d5))/0x4)+parseInt(_0x47f87c(0x1f7))/0x5+-parseInt(_0x47f87c(0x1df))/0x6*(parseInt(_0x47f87c(0x1de))/0x7)+-parseInt(_0x47f87c(0x1e4))/0x8*(-parseInt(_0x47f87c(0x1d8))/0x9)+parseInt(_0x47f87c(0x1fb))/0xa+-parseInt(_0x47f87c(0x1d1))/0xb;if(_0x95527b===_0x207e8c)break;else _0x13f508['push'](_0x13f508['shift']());}catch(_0x50a520){_0x13f508['push'](_0x13f508['shift']());}}}(_0x2568,0xae42b));import{Command as _0x29be42}from'ckeditor5/src/core.js';function _0x9517(_0xe180dd,_0x57d285){const _0x256820=_0x2568();return _0x9517=function(_0x951715,_0x19fdbd){_0x951715=_0x951715-0x1d1;let _0x3252eb=_0x256820[_0x951715];return _0x3252eb;},_0x9517(_0xe180dd,_0x57d285);}import{AIAssistantUI as _0x2e66d8}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x29be42{[_0x4e2438(0x1f4)];constructor(_0xbbde7f,_0x47eca7){const _0x249978=_0x4e2438;super(_0xbbde7f),this[_0x249978(0x1f4)]=_0x47eca7,this[_0x249978(0x1ea)](_0x249978(0x1d2),[]),this['on'](_0x249978(0x1f0),(_0xe422b9,_0x5732c4,_0x2fc0ad)=>{const _0x14eb5f=_0x249978;this[_0x14eb5f(0x1f3)]&&(this[_0x14eb5f(0x1d2)]=ns(this[_0x14eb5f(0x1f4)],_0x2fc0ad));}),this[_0x249978(0x1ea)](_0x249978(0x1fa),!0x1),this['on'](_0x249978(0x1eb),(_0x4562e7,_0x3b4d19,_0x154e5f)=>{const _0x3e92d6=_0x249978;this[_0x3e92d6(0x1d2)]=_0x154e5f?ns(this[_0x3e92d6(0x1f4)],this[_0x3e92d6(0x1fa)]):[];});}[_0x4e2438(0x1f2)](){const _0x5b6dcf=_0x4e2438,_0x51ee68=this[_0x5b6dcf(0x1dd)][_0x5b6dcf(0x1ef)];this[_0x5b6dcf(0x1fa)]=function(_0x2222ba){const _0x520c00=_0x5b6dcf,_0x3bf513=_0x2222ba[_0x520c00(0x1d7)][_0x520c00(0x1e9)];return _0x3bf513[_0x520c00(0x1dc)]?0x0!==[..._0x3bf513[_0x520c00(0x1e3)]()][_0x520c00(0x1d6)]&&![..._0x3bf513[_0x520c00(0x1e3)]()][0x0][_0x520c00(0x1e8)]:!!_0x2222ba[_0x520c00(0x1e7)](_0x3bf513[_0x520c00(0x1ec)]());}(_0x51ee68);const _0x2cb38b=_0x51ee68[_0x5b6dcf(0x1d7)][_0x5b6dcf(0x1e9)],_0x259631=this[_0x5b6dcf(0x1dd)][_0x5b6dcf(0x1e0)][_0x5b6dcf(0x1f5)](_0x5b6dcf(0x1e6));for(const _0x13d2cc of _0x2cb38b[_0x5b6dcf(0x1e2)]())for(const _0x1be842 of _0x13d2cc[_0x5b6dcf(0x1fc)]())if(_0x1be842['is'](_0x5b6dcf(0x1d9))&&_0x259631[_0x5b6dcf(0x1f1)](_0x1be842[_0x5b6dcf(0x1d4)]))return void(this[_0x5b6dcf(0x1f3)]=!0x1);this[_0x5b6dcf(0x1f3)]=!0x0;}[_0x4e2438(0x1da)](_0x5cc636='',_0x3a451e='',_0x40759d=_0x4e2438(0x1e5)){const _0x519f94=_0x4e2438;this[_0x519f94(0x1dd)][_0x519f94(0x1f6)][_0x519f94(0x1f5)](_0x2e66d8)[_0x519f94(0x1fd)](_0x5cc636,_0x3a451e,_0x40759d);}}function _0x2568(){const _0x294cb3=['581lgYQQo','getRanges','getSelectedBlocks','24LOsFxu','custom','ai.assistant.disabledElements','hasContent','isEmpty','selection','set','change:isEnabled','getFirstRange','from','requiresContent','model','change:_hasContext','includes','refresh','isEnabled','_commandDefinitions','get','plugins','2564670tkqKSZ','add','1336PMlKEG','_hasContext','9871370aJMfVV','getItems','showUI','12694935NuslKX','enabledCommandsIds','values','name','2548fIAoTw','length','document','4068243GusfcF','element','execute','81eKnrBg','isCollapsed','editor','9514435cmBgAv','6dcFEQe','config'];_0x2568=function(){return _0x294cb3;};return _0x2568();}function ns(_0x541ae4,_0x172e64){const _0x2294dd=_0x4e2438,_0x483e96=new Set();for(const _0x34b3f3 of _0x541ae4[_0x2294dd(0x1d3)]())(_0x172e64||!0x1===_0x34b3f3[_0x2294dd(0x1ee)])&&_0x483e96[_0x2294dd(0x1f8)](_0x34b3f3['id']);return Array[_0x2294dd(0x1ed)](_0x483e96);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x36ca69,_0xab5637,_0x59922e){const t=_0x36ca69['t'];switch(_0xab5637){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x59922e);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x59922e);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x59922e);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0xab5637;}}
23
+ export function getTranslation(_0x3dd9b3,_0x337673,_0x1087fb){const t=_0x3dd9b3['t'];switch(_0x337673){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x1087fb);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1087fb);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x1087fb);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x337673;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x1a6854,_0x5c8ed1){const _0x496106=(0x0,_0x5c8ed1['t'])('Other');return _0x1a6854['length']?'groupId'in _0x1a6854[0x0]?_0x1a6854:[{'groupId':'_ungrouppedCommands','groupLabel':_0x496106,'order':0x1/0x0,'commands':_0x1a6854}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x496106,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x13eee3,_0x3834e3){const _0x54f397=(0x0,_0x3834e3['t'])('Other');return _0x13eee3['length']?'groupId'in _0x13eee3[0x0]?_0x13eee3:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54f397,'order':0x1/0x0,'commands':_0x13eee3}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54f397,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ba80=_0x17b9;(function(_0x4ee95c,_0x446acf){const _0x10b9d0=_0x17b9,_0x5ed7f8=_0x4ee95c();while(!![]){try{const _0x16f60d=-parseInt(_0x10b9d0(0x90))/0x1*(parseInt(_0x10b9d0(0xb0))/0x2)+parseInt(_0x10b9d0(0x95))/0x3*(-parseInt(_0x10b9d0(0x93))/0x4)+parseInt(_0x10b9d0(0x8f))/0x5*(parseInt(_0x10b9d0(0xc4))/0x6)+-parseInt(_0x10b9d0(0xab))/0x7*(-parseInt(_0x10b9d0(0x98))/0x8)+parseInt(_0x10b9d0(0xa3))/0x9*(-parseInt(_0x10b9d0(0xa2))/0xa)+-parseInt(_0x10b9d0(0xb2))/0xb+parseInt(_0x10b9d0(0x8d))/0xc;if(_0x16f60d===_0x446acf)break;else _0x5ed7f8['push'](_0x5ed7f8['shift']());}catch(_0x419561){_0x5ed7f8['push'](_0x5ed7f8['shift']());}}}(_0xf8bd,0xa1cbc));import{ContextPlugin as _0x1d5139}from'ckeditor5/src/core.js';import{AIConnector as _0x207f0e}from'../aicore/aiconnector.js';import{AIEditing as _0x148415}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x24e667,AIBalloonView as _0xeed289}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x8bfb1d}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x4a3fb5}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x24e667,_0x41ba80(0xa7)];export class AIBalloon extends _0x1d5139{static get[_0x41ba80(0x8c)](){return[_0x207f0e,_0x148415];}static get[_0x41ba80(0xb4)](){const _0xb2c915=_0x41ba80;return _0xb2c915(0xb5);}static get[_0x41ba80(0xa6)](){return!0x0;}static get[_0x41ba80(0xbd)](){return!0x0;}[_0x41ba80(0x97)]=!0x1;[_0x41ba80(0xc5)];[_0x41ba80(0xb1)](_0x37bafa){const _0x43d9d6=_0x41ba80,_0x23a979=_0x4a3fb5(this[_0x43d9d6(0xad)]);this[_0x43d9d6(0xc5)]=_0x37bafa,this[_0x43d9d6(0xbb)]=new _0xeed289(_0x23a979[_0x43d9d6(0xa1)],_0x37bafa),this[_0x43d9d6(0xbb)][_0x43d9d6(0x9e)](..._0x24e667)['to'](this),this[_0x43d9d6(0xbf)](_0x37bafa);}[_0x41ba80(0xaf)](){const _0x486a0e=_0x41ba80;_0x4a3fb5(this[_0x486a0e(0xad)])[_0x486a0e(0x96)][_0x486a0e(0xb7)](_0x486a0e(0xc2))[_0x486a0e(0xaa)]();}[_0x41ba80(0x91)](_0x27b436,_0x46fce3){const _0x491e75=_0x41ba80;this[_0x491e75(0xad)][_0x491e75(0x96)][_0x491e75(0xb7)](_0x148415)[_0x491e75(0xb6)](_0x27b436,_0x491e75(0xa9)+_0x46fce3,!0x0,!0x0);}[_0x41ba80(0xbf)](_0x38511e){const _0x4efd91=_0x41ba80,_0x529c88=_0x4a3fb5(this[_0x4efd91(0xad)]);this[_0x4efd91(0x91)](_0x38511e[_0x4efd91(0xbc)],_0x38511e[_0x4efd91(0xb3)]),_0x529c88[_0x4efd91(0x96)][_0x4efd91(0xb7)](_0x4efd91(0xc2))[_0x4efd91(0xba)]({'title':_0x38511e[_0x4efd91(0x9c)],'icon':_0x38511e[_0x4efd91(0xa0)],'hasCloseButton':!0x0,'id':_0x4efd91(0x9b),'position':this[_0x4efd91(0xc9)][_0x4efd91(0xbe)](this),'className':_0x4efd91(0x92)+(_0x38511e[_0x4efd91(0x9f)]?_0x4efd91(0xae):''),'content':this[_0x4efd91(0xbb)],'onShow':_0x43cebb=>{const _0x37baad=_0x4efd91;_0x38511e[_0x37baad(0x9f)]&&this[_0x37baad(0xbb)][_0x37baad(0xa8)](_0x43cebb),this[_0x37baad(0x97)]=!0x0;},'onHide':()=>{const _0x5300b4=_0x4efd91;this[_0x5300b4(0xad)][_0x5300b4(0x96)][_0x5300b4(0xb7)](_0x5300b4(0x8b))[_0x5300b4(0x8e)](_0x5300b4(0xa9)+_0x38511e[_0x5300b4(0xb3)]),this[_0x5300b4(0xca)](_0x5300b4(0xa7)),this[_0x5300b4(0x97)]=!0x1;}});}[_0x41ba80(0xc9)](_0x39a63e,_0x23fb46){const _0x193054=_0x41ba80,_0x18c74e=_0x4a3fb5(this[_0x193054(0xad)]);if(!_0x23fb46)return{'left':0x0,'top':0x0};const _0x4ddef1=_0x8bfb1d(_0x18c74e[_0x193054(0xc6)],[..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc3)),..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc7))]);if(!_0x4ddef1||0x0===_0x4ddef1[_0x193054(0x9d)])return{'left':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),'top':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0x94)]+_0x23fb46[_0x193054(0xb8)]/0x2-_0x39a63e[_0x193054(0xb8)]/0x2)};const _0x39b542=Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),_0xddfe9e=_0x4ddef1[0x0][_0x193054(0x9a)](),_0x3c2657=_0x4ddef1[_0x4ddef1[_0x193054(0x9d)]-0x1][_0x193054(0x9a)](),_0x2c8dbe=_0x39a63e[_0x193054(0xb8)],_0x269eec=this[_0x193054(0xc5)][_0x193054(0x9f)]?0x8:0x0;return{'left':_0x39b542,'top':this[_0x193054(0xa5)](_0xddfe9e,_0x3c2657,_0x2c8dbe,_0x269eec)};}[_0x41ba80(0xa5)](_0x151ade,_0x39f69a,_0x505d9b,_0x3346cc=0x0){const _0x277f02=_0x41ba80,_0x15d38a=_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)],_0x4dc32b=_0x151ade[_0x277f02(0x94)]-_0x505d9b-_0x3346cc,_0x5ade2d=window[_0x277f02(0xa4)]-_0x15d38a-0xa,_0x1705e4=_0x151ade[_0x277f02(0x94)]-_0x3346cc-0xa;let _0x5684e7;if(_0x5ade2d>=_0x505d9b)_0x5684e7=_0x15d38a+0xa;else{if(_0x1705e4>=_0x505d9b)_0x5684e7=_0x4dc32b-0xa;else _0x5684e7=_0x151ade[_0x277f02(0x94)]+(_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)])/0x2-(_0x505d9b+_0x3346cc)/0x2;}return _0x5684e7;}}function _0x17b9(_0x2cb844,_0x226b8a){const _0xf8bde4=_0xf8bd();return _0x17b9=function(_0x17b942,_0x5b05c8){_0x17b942=_0x17b942-0x8b;let _0x2615ca=_0xf8bde4[_0x17b942];return _0x2615ca;},_0x17b9(_0x2cb844,_0x226b8a);}function _0xf8bd(){const _0x4778cd=['setupRotator','ai-balloon-','hide','154aokTMv','round','context','\x20ai-balloon-rotator','close','34dZuBed','open','14255626LTZLvd','index','pluginName','AIBalloon','showFakeVisualSelection','get','height','model','show','balloonView','ranges','isPremiumPlugin','bind','_showDialog','left','markers','Dialog','ai-selection','606wRVEgm','_config','editing','ai-balloon-selection','width','_calculateDialogPosition','fire','AIEditing','requires','42962112DbeKPe','hideFakeVisualSelection','47165rxBhLb','74339YOLRuj','_setupVisualSelection','ai-balloon','15452YUHxEd','top','597JpHfiS','plugins','isOpen','274912JtdTtB','getMarkersGroup','getBoundingClientRect','aiBalloon','title','length','delegate','showRotator','icon','locale','10AthPKX','11679615KExgjH','innerHeight','_calculateOptimalTopPosition','isOfficialPlugin','dialogClosed'];_0xf8bd=function(){return _0x4778cd;};return _0xf8bd();}
23
+ function _0x5a7c(_0x5a2444,_0x42ee92){const _0x4db4ed=_0x4db4();return _0x5a7c=function(_0x5a7c60,_0x5cd528){_0x5a7c60=_0x5a7c60-0x154;let _0x7ab5ce=_0x4db4ed[_0x5a7c60];return _0x7ab5ce;},_0x5a7c(_0x5a2444,_0x42ee92);}const _0x4e4bc8=_0x5a7c;(function(_0xcc7af1,_0x2a2188){const _0x30c824=_0x5a7c,_0x20e9c6=_0xcc7af1();while(!![]){try{const _0x3d818e=-parseInt(_0x30c824(0x18a))/0x1*(-parseInt(_0x30c824(0x162))/0x2)+parseInt(_0x30c824(0x169))/0x3+-parseInt(_0x30c824(0x15e))/0x4+parseInt(_0x30c824(0x174))/0x5*(parseInt(_0x30c824(0x15d))/0x6)+-parseInt(_0x30c824(0x16a))/0x7+parseInt(_0x30c824(0x173))/0x8+parseInt(_0x30c824(0x158))/0x9;if(_0x3d818e===_0x2a2188)break;else _0x20e9c6['push'](_0x20e9c6['shift']());}catch(_0x4ecdfb){_0x20e9c6['push'](_0x20e9c6['shift']());}}}(_0x4db4,0x67313));import{ContextPlugin as _0x290d1f}from'ckeditor5/src/core.js';import{AIConnector as _0x24e0c8}from'../aicore/aiconnector.js';import{AIEditing as _0x56f9ca}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x424d83,AIBalloonView as _0x256492}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5742a8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4db4(){const _0x2ae391=['balloonView','ai-balloon','53430Qrdopj','2250150ynrAXV','round','editing','setupRotator','AIEditing','delegate','markers','_calculateDialogPosition','AIBalloon','1534336QowQxc','49665qKptWE','width','fire','aiBalloon','length','open','Dialog','isOpen','left','ai-balloon-selection','hide','height','getMarkersGroup','context','icon','showFakeVisualSelection','top','ranges','_showDialog','ai-balloon-','model','getBoundingClientRect','393aEcMOc','show','get','locale','index','dialogClosed','requires','_calculateOptimalTopPosition','bind','\x20ai-balloon-rotator','_config','4729041huSuAQ','close','isOfficialPlugin','showRotator','isPremiumPlugin','324LQKPSB','2129668ggrSCU','_setupVisualSelection','plugins','innerHeight','26OSikJx','pluginName','hideFakeVisualSelection','ai-selection','title'];_0x4db4=function(){return _0x2ae391;};return _0x4db4();}import{getEditorFromContext as _0x4bdb99}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x424d83,_0x4e4bc8(0x18f)];export class AIBalloon extends _0x290d1f{static get[_0x4e4bc8(0x190)](){return[_0x24e0c8,_0x56f9ca];}static get[_0x4e4bc8(0x163)](){const _0x161875=_0x4e4bc8;return _0x161875(0x172);}static get[_0x4e4bc8(0x15a)](){return!0x0;}static get[_0x4e4bc8(0x15c)](){return!0x0;}[_0x4e4bc8(0x17b)]=!0x1;[_0x4e4bc8(0x157)];[_0x4e4bc8(0x179)](_0x2cbb32){const _0x5756e2=_0x4e4bc8,_0x253e02=_0x4bdb99(this[_0x5756e2(0x181)]);this[_0x5756e2(0x157)]=_0x2cbb32,this[_0x5756e2(0x167)]=new _0x256492(_0x253e02[_0x5756e2(0x18d)],_0x2cbb32),this[_0x5756e2(0x167)][_0x5756e2(0x16f)](..._0x424d83)['to'](this),this[_0x5756e2(0x186)](_0x2cbb32);}[_0x4e4bc8(0x159)](){const _0x5a3370=_0x4e4bc8;_0x4bdb99(this[_0x5a3370(0x181)])[_0x5a3370(0x160)][_0x5a3370(0x18c)](_0x5a3370(0x17a))[_0x5a3370(0x17e)]();}[_0x4e4bc8(0x15f)](_0x269731,_0x1158c3){const _0x69d0f0=_0x4e4bc8;this[_0x69d0f0(0x181)][_0x69d0f0(0x160)][_0x69d0f0(0x18c)](_0x56f9ca)[_0x69d0f0(0x183)](_0x269731,_0x69d0f0(0x187)+_0x1158c3,!0x0,!0x0);}[_0x4e4bc8(0x186)](_0x246bbc){const _0x26a88c=_0x4e4bc8,_0x66ce80=_0x4bdb99(this[_0x26a88c(0x181)]);this[_0x26a88c(0x15f)](_0x246bbc[_0x26a88c(0x185)],_0x246bbc[_0x26a88c(0x18e)]),_0x66ce80[_0x26a88c(0x160)][_0x26a88c(0x18c)](_0x26a88c(0x17a))[_0x26a88c(0x18b)]({'title':_0x246bbc[_0x26a88c(0x166)],'icon':_0x246bbc[_0x26a88c(0x182)],'hasCloseButton':!0x0,'id':_0x26a88c(0x177),'position':this[_0x26a88c(0x171)][_0x26a88c(0x155)](this),'className':_0x26a88c(0x168)+(_0x246bbc[_0x26a88c(0x15b)]?_0x26a88c(0x156):''),'content':this[_0x26a88c(0x167)],'onShow':_0x4a5658=>{const _0x79750e=_0x26a88c;_0x246bbc[_0x79750e(0x15b)]&&this[_0x79750e(0x167)][_0x79750e(0x16d)](_0x4a5658),this[_0x79750e(0x17b)]=!0x0;},'onHide':()=>{const _0x397aa4=_0x26a88c;this[_0x397aa4(0x181)][_0x397aa4(0x160)][_0x397aa4(0x18c)](_0x397aa4(0x16e))[_0x397aa4(0x164)](_0x397aa4(0x187)+_0x246bbc[_0x397aa4(0x18e)]),this[_0x397aa4(0x176)](_0x397aa4(0x18f)),this[_0x397aa4(0x17b)]=!0x1;}});}[_0x4e4bc8(0x171)](_0x251f27,_0x2e032d){const _0x9d312c=_0x4e4bc8,_0x285d13=_0x4bdb99(this[_0x9d312c(0x181)]);if(!_0x2e032d)return null;const _0x32fb3f=_0x5742a8(_0x285d13[_0x9d312c(0x16c)],[..._0x285d13[_0x9d312c(0x188)][_0x9d312c(0x170)][_0x9d312c(0x180)](_0x9d312c(0x165)),..._0x285d13[_0x9d312c(0x188)][_0x9d312c(0x170)][_0x9d312c(0x180)](_0x9d312c(0x17d))]);if(!_0x32fb3f||0x0===_0x32fb3f[_0x9d312c(0x178)])return{'left':Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x17c)]+_0x2e032d[_0x9d312c(0x175)]/0x2-_0x251f27[_0x9d312c(0x175)]/0x2),'top':Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x184)]+_0x2e032d[_0x9d312c(0x17f)]/0x2-_0x251f27[_0x9d312c(0x17f)]/0x2)};const _0x21536c=Math[_0x9d312c(0x16b)](_0x2e032d[_0x9d312c(0x17c)]+_0x2e032d[_0x9d312c(0x175)]/0x2-_0x251f27[_0x9d312c(0x175)]/0x2),_0x17db3a=_0x32fb3f[0x0][_0x9d312c(0x189)](),_0x4a380f=_0x32fb3f[_0x32fb3f[_0x9d312c(0x178)]-0x1][_0x9d312c(0x189)](),_0xe2f7e0=_0x251f27[_0x9d312c(0x17f)],_0x58d9dc=this[_0x9d312c(0x157)][_0x9d312c(0x15b)]?0x8:0x0;return{'left':_0x21536c,'top':this[_0x9d312c(0x154)](_0x17db3a,_0x4a380f,_0xe2f7e0,_0x58d9dc)};}[_0x4e4bc8(0x154)](_0x5c0329,_0x1bb4ff,_0x4e5efa,_0x1d6fff=0x0){const _0x4d99f2=_0x4e4bc8,_0x20d535=_0x1bb4ff[_0x4d99f2(0x184)]+_0x1bb4ff[_0x4d99f2(0x17f)],_0x140603=_0x5c0329[_0x4d99f2(0x184)]-_0x4e5efa-_0x1d6fff,_0x163118=window[_0x4d99f2(0x161)]-_0x20d535-0xa,_0x651b7c=_0x5c0329[_0x4d99f2(0x184)]-_0x1d6fff-0xa;let _0x255bba;if(_0x163118>=_0x4e5efa)_0x255bba=_0x20d535+0xa;else{if(_0x651b7c>=_0x4e5efa)_0x255bba=_0x140603-0xa;else _0x255bba=_0x5c0329[_0x4d99f2(0x184)]+(_0x1bb4ff[_0x4d99f2(0x184)]+_0x1bb4ff[_0x4d99f2(0x17f)])/0x2-(_0x4e5efa+_0x1d6fff)/0x2;}return _0x255bba;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x178ae8,_0x64a0d0){var _0x7064df=_0x1c0a,_0x1f7bde=_0x178ae8();while(!![]){try{var _0xf7a45b=-parseInt(_0x7064df(0x1ec))/0x1*(-parseInt(_0x7064df(0x1eb))/0x2)+parseInt(_0x7064df(0x1e7))/0x3+parseInt(_0x7064df(0x1e5))/0x4+parseInt(_0x7064df(0x1e6))/0x5*(parseInt(_0x7064df(0x1e2))/0x6)+-parseInt(_0x7064df(0x1e3))/0x7+parseInt(_0x7064df(0x1e8))/0x8*(parseInt(_0x7064df(0x1e0))/0x9)+-parseInt(_0x7064df(0x1e1))/0xa*(parseInt(_0x7064df(0x1ed))/0xb);if(_0xf7a45b===_0x64a0d0)break;else _0x1f7bde['push'](_0x1f7bde['shift']());}catch(_0x2911a0){_0x1f7bde['push'](_0x1f7bde['shift']());}}}(_0x227c,0xdd2d0));import{View as _0x2a3346}from'ckeditor5/src/ui.js';function _0x227c(){var _0x332c3c=['div','169326xKMDUu','10KWqycc','11ctwORm','ck-ai-balloon__disclaimer','AI_DISCLAIMER_TEXT','242208BYRJMy','33114010vAzYAk','10662fccRXA','1068564JpnnKk','ck-ai-balloon__disclaimer-content','1895068vDIiBV','145FHRXhG','3827073SIkqkn','512XaXGvA','setTemplate'];_0x227c=function(){return _0x332c3c;};return _0x227c();}function _0x1c0a(_0x55c7cc,_0x10cb99){var _0x227cfc=_0x227c();return _0x1c0a=function(_0x1c0a13,_0xd99b71){_0x1c0a13=_0x1c0a13-0x1de;var _0x3d77eb=_0x227cfc[_0x1c0a13];return _0x3d77eb;},_0x1c0a(_0x55c7cc,_0x10cb99);}import{getTranslation as _0x55de2c}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x2a3346{constructor(_0x2e5cb5){var _0x573cb8=_0x1c0a;super(_0x2e5cb5),this[_0x573cb8(0x1e9)]({'tag':_0x573cb8(0x1ea),'attributes':{'class':['ck',_0x573cb8(0x1de)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x573cb8(0x1e4)]},'children':[{'text':_0x55de2c(_0x2e5cb5,_0x573cb8(0x1df))}]}]});}}
23
+ function _0x2714(){var _0x4357ab=['486914xcqEiV','36504520LAtuNL','ck-ai-balloon__disclaimer','5112898KxLUXM','5kQMMEW','ck-ai-balloon__disclaimer-content','AI_DISCLAIMER_TEXT','800847gCxSWG','div','8672IFogvr','5VRGNiH','3838674arEoXI','1992dmAVwB','3491480ugUnpj','setTemplate'];_0x2714=function(){return _0x4357ab;};return _0x2714();}(function(_0x462627,_0x5a59cf){var _0x47631e=_0x3139,_0x404e15=_0x462627();while(!![]){try{var _0x560bdf=-parseInt(_0x47631e(0x1f9))/0x1*(parseInt(_0x47631e(0x1ef))/0x2)+parseInt(_0x47631e(0x1fb))/0x3*(-parseInt(_0x47631e(0x1f8))/0x4)+-parseInt(_0x47631e(0x1f3))/0x5*(parseInt(_0x47631e(0x1fa))/0x6)+parseInt(_0x47631e(0x1f2))/0x7+-parseInt(_0x47631e(0x1ed))/0x8+parseInt(_0x47631e(0x1f6))/0x9+parseInt(_0x47631e(0x1f0))/0xa;if(_0x560bdf===_0x5a59cf)break;else _0x404e15['push'](_0x404e15['shift']());}catch(_0x3958fb){_0x404e15['push'](_0x404e15['shift']());}}}(_0x2714,0xb3e1e));function _0x3139(_0x25abce,_0x3b68f9){var _0x271416=_0x2714();return _0x3139=function(_0x3139cf,_0x5307bb){_0x3139cf=_0x3139cf-0x1ed;var _0x1ab8ac=_0x271416[_0x3139cf];return _0x1ab8ac;},_0x3139(_0x25abce,_0x3b68f9);}import{View as _0x48e82e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c8235}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x48e82e{constructor(_0x5cd9a1){var _0x2a559b=_0x3139;super(_0x5cd9a1),this[_0x2a559b(0x1ee)]({'tag':_0x2a559b(0x1f7),'attributes':{'class':['ck',_0x2a559b(0x1f1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2a559b(0x1f4)]},'children':[{'text':_0x2c8235(_0x5cd9a1,_0x2a559b(0x1f5))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e16(_0x5d20ce,_0x542091){const _0x446dd4=_0x446d();return _0x2e16=function(_0x2e16ef,_0x4282cb){_0x2e16ef=_0x2e16ef-0x13f;let _0x9a37eb=_0x446dd4[_0x2e16ef];return _0x9a37eb;},_0x2e16(_0x5d20ce,_0x542091);}const _0x3779cf=_0x2e16;(function(_0x58bbe4,_0x4ab262){const _0x3e694c=_0x2e16,_0x4bcf15=_0x58bbe4();while(!![]){try{const _0x430434=parseInt(_0x3e694c(0x154))/0x1+-parseInt(_0x3e694c(0x149))/0x2*(parseInt(_0x3e694c(0x147))/0x3)+parseInt(_0x3e694c(0x156))/0x4*(-parseInt(_0x3e694c(0x14f))/0x5)+parseInt(_0x3e694c(0x14e))/0x6+parseInt(_0x3e694c(0x140))/0x7*(-parseInt(_0x3e694c(0x158))/0x8)+parseInt(_0x3e694c(0x13f))/0x9*(-parseInt(_0x3e694c(0x144))/0xa)+parseInt(_0x3e694c(0x145))/0xb;if(_0x430434===_0x4ab262)break;else _0x4bcf15['push'](_0x4bcf15['shift']());}catch(_0x5dd280){_0x4bcf15['push'](_0x4bcf15['shift']());}}}(_0x446d,0x405bc));import{ToolbarView as _0x46caf6,ButtonView as _0x527982}from'ckeditor5/src/ui.js';import{getTranslation as _0x6a84ec}from'../../aicore/utils/common-translations.js';function _0x446d(){const _0x1e08f3=['2194500VOoWkT','398120TkTQkd','_createButton','ck-ai-button-primary','ck-ai-button-secondary','suggestButton','519840IWdsYx','isEnabled','20kUoebT','items','8hRhfYF','AI_BALLOON_APPLY_BUTTON','1359fRdRFz','1016869Qkgbpg','AI_BALLOON_SUGGEST_BUTTON','locale','ck-ai-balloon__toolbar','17060aOcfyS','2108931WUBCAT','extendTemplate','3PWzgcL','add','25412OOoewN','set','applyButton','isLoading','bind'];_0x446d=function(){return _0x1e08f3;};return _0x446d();}export class AIBalloonToolbarView extends _0x46caf6{constructor(_0x44084d,_0x5b343c=!0x0,_0x20501c=!0x0){const _0x49ffd8=_0x2e16;super(_0x44084d),this[_0x49ffd8(0x14a)](_0x49ffd8(0x14c),!0x1),_0x5b343c&&(this[_0x49ffd8(0x14b)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x159)),_0x49ffd8(0x151)),this[_0x49ffd8(0x14b)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x2860b6=>!_0x2860b6),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x14b)])),_0x20501c&&(this[_0x49ffd8(0x153)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x141)),_0x49ffd8(0x152)),this[_0x49ffd8(0x153)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x45ec0e=>!_0x45ec0e),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x153)])),this[_0x49ffd8(0x146)]({'attributes':{'class':[_0x49ffd8(0x143)]}});}[_0x3779cf(0x150)](_0x31868f,_0x5c39fa){const _0x51769a=_0x3779cf,_0x2a1844=new _0x527982(this[_0x51769a(0x142)]);return _0x2a1844[_0x51769a(0x14a)]({'label':_0x31868f,'class':_0x5c39fa||'','isVisible':!0x0,'withText':!0x0}),_0x2a1844;}}
23
+ const _0x534a89=_0x153e;function _0x153e(_0x410363,_0x457067){const _0x3f8ad3=_0x3f8a();return _0x153e=function(_0x153e78,_0x427736){_0x153e78=_0x153e78-0x95;let _0x342e0c=_0x3f8ad3[_0x153e78];return _0x342e0c;},_0x153e(_0x410363,_0x457067);}(function(_0x56c7d9,_0x1e935c){const _0x118a69=_0x153e,_0x4dcda1=_0x56c7d9();while(!![]){try{const _0x23708a=parseInt(_0x118a69(0xa3))/0x1*(parseInt(_0x118a69(0x9c))/0x2)+-parseInt(_0x118a69(0xaf))/0x3+-parseInt(_0x118a69(0x96))/0x4*(-parseInt(_0x118a69(0x98))/0x5)+-parseInt(_0x118a69(0xa8))/0x6*(-parseInt(_0x118a69(0xa2))/0x7)+-parseInt(_0x118a69(0xae))/0x8*(parseInt(_0x118a69(0x9a))/0x9)+parseInt(_0x118a69(0x99))/0xa+-parseInt(_0x118a69(0x97))/0xb;if(_0x23708a===_0x1e935c)break;else _0x4dcda1['push'](_0x4dcda1['shift']());}catch(_0x247c23){_0x4dcda1['push'](_0x4dcda1['shift']());}}}(_0x3f8a,0x5f7f0));import{ToolbarView as _0x33fca1,ButtonView as _0x23ef17}from'ckeditor5/src/ui.js';import{getTranslation as _0x55d681}from'../../aicore/utils/common-translations.js';function _0x3f8a(){const _0x3f2e18=['3159654jmRjgg','locale','extendTemplate','AI_BALLOON_SUGGEST_BUTTON','_createButton','ck-ai-button-secondary','535016hEprpz','1722579cEMqlo','isLoading','794132bwppxL','2948451YDDFYS','10NOQwgF','4315380OgEQCr','36iaRPcG','suggestButton','2VkDLiL','isEnabled','items','ck-ai-balloon__toolbar','ck-ai-button-primary','bind','7AGqMBL','145681tXgWLZ','add','applyButton','AI_BALLOON_APPLY_BUTTON','set'];_0x3f8a=function(){return _0x3f2e18;};return _0x3f8a();}export class AIBalloonToolbarView extends _0x33fca1{constructor(_0x49825d,_0x1a52d9=!0x0,_0x535608=!0x0){const _0xa1229c=_0x153e;super(_0x49825d),this[_0xa1229c(0xa7)](_0xa1229c(0x95),!0x1),_0x1a52d9&&(this[_0xa1229c(0xa5)]=this[_0xa1229c(0xac)](_0x55d681(_0x49825d,_0xa1229c(0xa6)),_0xa1229c(0xa0)),this[_0xa1229c(0xa5)][_0xa1229c(0xa1)](_0xa1229c(0x9d))['to'](this,_0xa1229c(0x95),_0x3fe79f=>!_0x3fe79f),this[_0xa1229c(0x9e)][_0xa1229c(0xa4)](this[_0xa1229c(0xa5)])),_0x535608&&(this[_0xa1229c(0x9b)]=this[_0xa1229c(0xac)](_0x55d681(_0x49825d,_0xa1229c(0xab)),_0xa1229c(0xad)),this[_0xa1229c(0x9b)][_0xa1229c(0xa1)](_0xa1229c(0x9d))['to'](this,_0xa1229c(0x95),_0x16f915=>!_0x16f915),this[_0xa1229c(0x9e)][_0xa1229c(0xa4)](this[_0xa1229c(0x9b)])),this[_0xa1229c(0xaa)]({'attributes':{'class':[_0xa1229c(0x9f)]}});}[_0x534a89(0xac)](_0x8718aa,_0x39399a){const _0x2a586e=_0x534a89,_0x4734bc=new _0x23ef17(this[_0x2a586e(0xa9)]);return _0x4734bc[_0x2a586e(0xa7)]({'label':_0x8718aa,'class':_0x39399a||'','isVisible':!0x0,'withText':!0x0}),_0x4734bc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cd074=_0x36d8;(function(_0x34083c,_0x11aee5){const _0x3552bb=_0x36d8,_0x1b2268=_0x34083c();while(!![]){try{const _0x5eb940=-parseInt(_0x3552bb(0x145))/0x1+-parseInt(_0x3552bb(0x14c))/0x2*(-parseInt(_0x3552bb(0x13f))/0x3)+parseInt(_0x3552bb(0x162))/0x4*(parseInt(_0x3552bb(0x155))/0x5)+parseInt(_0x3552bb(0x159))/0x6*(parseInt(_0x3552bb(0x13d))/0x7)+-parseInt(_0x3552bb(0x143))/0x8*(-parseInt(_0x3552bb(0x15c))/0x9)+parseInt(_0x3552bb(0x13e))/0xa*(parseInt(_0x3552bb(0x154))/0xb)+-parseInt(_0x3552bb(0x152))/0xc;if(_0x5eb940===_0x11aee5)break;else _0x1b2268['push'](_0x1b2268['shift']());}catch(_0x376af3){_0x1b2268['push'](_0x1b2268['shift']());}}}(_0x2c8b,0x318b1));import{ButtonView as _0x2b579d,View as _0x53ab57,ViewCollection as _0x4e733d,FocusCycler as _0xefde4c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x34b636,KeystrokeHandler as _0x5cc8d0}from'ckeditor5/src/utils.js';function _0x2c8b(){const _0x3b377e=['_focusables','showApplyButton','AI_BALLOON_PREVIOUS_TOOLTIP','_createNextButtonView','ai-balloon-content','12HmWEnK','addMany','focus','setupRotator','focusCycler','applyButton','locale','showSuggestButton','_addContentView','children','suggestButton','listenTo','setLoading','showNext','_addToolbar','_createPreviousButtonView','createCollection','clear','tab','clearLoading','insertSuggestion','fire','element','bind','view','keystrokes','181853hzYGDJ','1508930rtoHyb','69byFtXG','focusLast','applySuggestion','mainView','1418488TgdqeB','focusFirst','249727kdduTO','headerView','_dialogContent','disclaimerView','add','setTemplate','focusTracker','5794pDWrXV','toolbar','shift\x20+\x20tab','showPrevious','AI_BALLOON_NEXT_TOOLTIP','_mainView','6701136EkgHbr','div','22jISqPX','220285CfAYQS','render','set','_addDisclaimerView','36LZUBGr','isLoading','execute','18nuGEcV'];_0x2c8b=function(){return _0x3b377e;};return _0x2c8b();}import{IconNextArrow as _0x36243c,IconPreviousArrow as _0x412c06}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x298b0f}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x56480b}from'./aiballoondisclaimerview.js';function _0x36d8(_0x262bc4,_0x55c42a){const _0x2c8b6b=_0x2c8b();return _0x36d8=function(_0x36d822,_0x3131ea){_0x36d822=_0x36d822-0x136;let _0xa8b2bf=_0x2c8b6b[_0x36d822];return _0xa8b2bf;},_0x36d8(_0x262bc4,_0x55c42a);}import{getTranslation as _0x4ab652}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2cd074(0x141),_0x2cd074(0x137),_0x2cd074(0x16f),_0x2cd074(0x14f)];export class AIBalloonView extends _0x53ab57{[_0x2cd074(0x14b)];[_0x2cd074(0x13c)];[_0x2cd074(0x166)];[_0x2cd074(0x15d)];constructor(_0x59498e,_0x4cfae4){const _0x35b693=_0x2cd074;super(_0x59498e),this[_0x35b693(0x157)](_0x35b693(0x15a),!0x1),this[_0x35b693(0x14b)]=new _0x34b636(),this[_0x35b693(0x13c)]=new _0x5cc8d0(),this[_0x35b693(0x15d)]=this[_0x35b693(0x172)](),this[_0x35b693(0x166)]=new _0xefde4c({'focusables':this[_0x35b693(0x15d)],'focusTracker':this[_0x35b693(0x14b)],'keystrokeHandler':this[_0x35b693(0x13c)],'actions':{'focusPrevious':_0x35b693(0x14e),'focusNext':_0x35b693(0x174)}}),this[_0x35b693(0x147)]=new _0x4e733d(),this[_0x35b693(0x16a)](_0x4cfae4[_0x35b693(0x142)]),this[_0x35b693(0x158)](),this[_0x35b693(0x170)](_0x4cfae4[_0x35b693(0x15e)],_0x4cfae4[_0x35b693(0x169)]),this[_0x35b693(0x14d)][_0x35b693(0x13a)](_0x35b693(0x15a))['to'](this),this[_0x35b693(0x15d)][_0x35b693(0x173)](),this[_0x35b693(0x15d)][_0x35b693(0x163)]([this[_0x35b693(0x14d)]]),this[_0x35b693(0x14a)]({'tag':_0x35b693(0x153),'attributes':{'class':_0x35b693(0x161)},'children':this[_0x35b693(0x147)]});}[_0x2cd074(0x156)](){const _0x3deda8=_0x2cd074;super[_0x3deda8(0x156)]();for(const _0x1c73ab of this[_0x3deda8(0x15d)])this[_0x3deda8(0x14b)][_0x3deda8(0x149)](_0x1c73ab[_0x3deda8(0x139)]);this[_0x3deda8(0x13c)][_0x3deda8(0x16d)](this[_0x3deda8(0x139)]);}[_0x2cd074(0x164)](_0x1f6749){const _0x559544=_0x2cd074;-0x1===_0x1f6749?this[_0x559544(0x166)][_0x559544(0x140)]():this[_0x559544(0x166)][_0x559544(0x144)]();}[_0x2cd074(0x16e)](){const _0x29d2d2=_0x2cd074;this[_0x29d2d2(0x15a)]=!0x0;}[_0x2cd074(0x136)](){const _0x568b0b=_0x2cd074;this[_0x568b0b(0x15a)]=!0x1;}[_0x2cd074(0x165)](_0x549fba){const _0x21226d=_0x2cd074,_0x5de3aa=this[_0x21226d(0x160)](),_0x4e7fa1=this[_0x21226d(0x171)]();_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x5de3aa,0x2),_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x4e7fa1,0x0),this[_0x21226d(0x15d)][_0x21226d(0x163)]([_0x5de3aa,_0x4e7fa1]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x5de3aa[_0x21226d(0x139)]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x4e7fa1[_0x21226d(0x139)]);}[_0x2cd074(0x16a)](_0x314659){const _0x2282bc=_0x2cd074;this[_0x2282bc(0x151)]=_0x314659,this[_0x2282bc(0x147)][_0x2282bc(0x149)](this[_0x2282bc(0x151)]);}[_0x2cd074(0x158)](){const _0xe4c605=_0x2cd074;this[_0xe4c605(0x148)]=new _0x56480b(this[_0xe4c605(0x168)]),this[_0xe4c605(0x147)][_0xe4c605(0x149)](this[_0xe4c605(0x148)]);}[_0x2cd074(0x170)](_0x29d5a9=!0x0,_0x1a0b4b=!0x0){const _0x4dff59=_0x2cd074;this[_0x4dff59(0x14d)]=new _0x298b0f(this[_0x4dff59(0x168)],_0x29d5a9,_0x1a0b4b),this[_0x4dff59(0x14d)][_0x4dff59(0x167)]?.['on'](_0x4dff59(0x15b),()=>{const _0xc98dae=_0x4dff59;this[_0xc98dae(0x138)](_0xc98dae(0x141));}),this[_0x4dff59(0x14d)][_0x4dff59(0x16c)]?.['on'](_0x4dff59(0x15b),()=>{const _0x3b2172=_0x4dff59;this[_0x3b2172(0x138)](_0x3b2172(0x137));}),this[_0x4dff59(0x147)][_0x4dff59(0x149)](this[_0x4dff59(0x14d)]);}[_0x2cd074(0x160)](){const _0x41575c=_0x2cd074,_0x21fff4=new _0x2b579d(this[_0x41575c(0x168)]);return _0x21fff4[_0x41575c(0x157)]({'icon':_0x36243c,'tooltip':_0x4ab652(this[_0x41575c(0x168)],_0x41575c(0x150))}),_0x21fff4['on'](_0x41575c(0x15b),()=>{const _0x5d0aaf=_0x41575c;this[_0x5d0aaf(0x138)](_0x5d0aaf(0x16f));}),_0x21fff4;}[_0x2cd074(0x171)](){const _0x5ee60c=_0x2cd074,_0x226438=new _0x2b579d(this[_0x5ee60c(0x168)]);return _0x226438[_0x5ee60c(0x157)]({'icon':_0x412c06,'tooltip':_0x4ab652(this[_0x5ee60c(0x168)],_0x5ee60c(0x15f))}),_0x226438['on'](_0x5ee60c(0x15b),()=>{const _0x4b6004=_0x5ee60c;this[_0x4b6004(0x138)](_0x4b6004(0x14f));}),_0x226438;}}
23
+ const _0x23db2e=_0x4d46;(function(_0x474ae6,_0x2698b9){const _0x230e84=_0x4d46,_0x2171ad=_0x474ae6();while(!![]){try{const _0x27c26f=parseInt(_0x230e84(0x1f4))/0x1*(-parseInt(_0x230e84(0x203))/0x2)+-parseInt(_0x230e84(0x1d7))/0x3*(parseInt(_0x230e84(0x1ea))/0x4)+parseInt(_0x230e84(0x1f1))/0x5*(parseInt(_0x230e84(0x1db))/0x6)+-parseInt(_0x230e84(0x1f8))/0x7+-parseInt(_0x230e84(0x1f0))/0x8*(parseInt(_0x230e84(0x1d6))/0x9)+-parseInt(_0x230e84(0x1e7))/0xa+parseInt(_0x230e84(0x201))/0xb*(parseInt(_0x230e84(0x1c9))/0xc);if(_0x27c26f===_0x2698b9)break;else _0x2171ad['push'](_0x2171ad['shift']());}catch(_0x3c3582){_0x2171ad['push'](_0x2171ad['shift']());}}}(_0x1bf2,0x39c9d));import{ButtonView as _0xb0a3e1,View as _0x33b1a3,ViewCollection as _0x1054d9,FocusCycler as _0x37cdfc}from'ckeditor5/src/ui.js';function _0x4d46(_0x10d6b5,_0x55b99e){const _0x1bf26e=_0x1bf2();return _0x4d46=function(_0x4d4622,_0x4afdef){_0x4d4622=_0x4d4622-0x1c5;let _0x9278c0=_0x1bf26e[_0x4d4622];return _0x9278c0;},_0x4d46(_0x10d6b5,_0x55b99e);}import{FocusTracker as _0x49f67d,KeystrokeHandler as _0x1f5b9c}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x33ed84,IconPreviousArrow as _0x3521a5}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x572cff}from'./aiballoontoolbarview.js';function _0x1bf2(){const _0x3cacc6=['1015360invqRU','_focusables','AI_BALLOON_NEXT_TOOLTIP','72DEHOXh','showPrevious','focusCycler','focusTracker','_createNextButtonView','showApplyButton','56RjcNOb','5iXQBdB','bind','insertSuggestion','2165fotwtz','fire','AI_BALLOON_PREVIOUS_TOOLTIP','setLoading','2818662qovANv','view','headerView','_dialogContent','locale','setupRotator','_mainView','add','div','21439SLEpty','tab','308RxXJAR','set','setTemplate','listenTo','applyButton','6852pOlkRm','showSuggestButton','_createPreviousButtonView','execute','element','focus','clear','mainView','focusFirst','shift\x20+\x20tab','focusLast','createCollection','addMany','44865xILSXW','72855VFCydZ','suggestButton','isLoading','applySuggestion','2600754jFJqnK','_addContentView','keystrokes','render','disclaimerView','ai-balloon-content','showNext','clearLoading','_addToolbar','toolbar','children','_addDisclaimerView'];_0x1bf2=function(){return _0x3cacc6;};return _0x1bf2();}import{AIBalloonDisclaimerView as _0x2ad97a}from'./aiballoondisclaimerview.js';import{getTranslation as _0x40fb27}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x23db2e(0x1da),_0x23db2e(0x1f3),_0x23db2e(0x1e1),_0x23db2e(0x1eb)];export class AIBalloonView extends _0x33b1a3{[_0x23db2e(0x1ed)];[_0x23db2e(0x1dd)];[_0x23db2e(0x1ec)];[_0x23db2e(0x1e8)];constructor(_0x5bc682,_0x4b0792){const _0x21c89d=_0x23db2e;super(_0x5bc682),this[_0x21c89d(0x1c5)](_0x21c89d(0x1d9),!0x1),this[_0x21c89d(0x1ed)]=new _0x49f67d(),this[_0x21c89d(0x1dd)]=new _0x1f5b9c(),this[_0x21c89d(0x1e8)]=this[_0x21c89d(0x1d4)](),this[_0x21c89d(0x1ec)]=new _0x37cdfc({'focusables':this[_0x21c89d(0x1e8)],'focusTracker':this[_0x21c89d(0x1ed)],'keystrokeHandler':this[_0x21c89d(0x1dd)],'actions':{'focusPrevious':_0x21c89d(0x1d2),'focusNext':_0x21c89d(0x202)}}),this[_0x21c89d(0x1fb)]=new _0x1054d9(),this[_0x21c89d(0x1dc)](_0x4b0792[_0x21c89d(0x1d0)]),this[_0x21c89d(0x1e6)](),this[_0x21c89d(0x1e3)](_0x4b0792[_0x21c89d(0x1ef)],_0x4b0792[_0x21c89d(0x1ca)]),this[_0x21c89d(0x1e4)][_0x21c89d(0x1f2)](_0x21c89d(0x1d9))['to'](this),this[_0x21c89d(0x1e8)][_0x21c89d(0x1cf)](),this[_0x21c89d(0x1e8)][_0x21c89d(0x1d5)]([this[_0x21c89d(0x1e4)]]),this[_0x21c89d(0x1c6)]({'tag':_0x21c89d(0x200),'attributes':{'class':_0x21c89d(0x1e0)},'children':this[_0x21c89d(0x1fb)]});}[_0x23db2e(0x1de)](){const _0x254cc9=_0x23db2e;super[_0x254cc9(0x1de)]();for(const _0x26b2d2 of this[_0x254cc9(0x1e8)])this[_0x254cc9(0x1ed)][_0x254cc9(0x1ff)](_0x26b2d2[_0x254cc9(0x1cd)]);this[_0x254cc9(0x1dd)][_0x254cc9(0x1c7)](this[_0x254cc9(0x1cd)]);}[_0x23db2e(0x1ce)](_0x157e14){const _0x45cd89=_0x23db2e;-0x1===_0x157e14?this[_0x45cd89(0x1ec)][_0x45cd89(0x1d3)]():this[_0x45cd89(0x1ec)][_0x45cd89(0x1d1)]();}[_0x23db2e(0x1f7)](){const _0x608cd5=_0x23db2e;this[_0x608cd5(0x1d9)]=!0x0;}[_0x23db2e(0x1e2)](){const _0x188f09=_0x23db2e;this[_0x188f09(0x1d9)]=!0x1;}[_0x23db2e(0x1fd)](_0x320393){const _0x1691d0=_0x23db2e,_0x25074e=this[_0x1691d0(0x1ee)](),_0x11771d=this[_0x1691d0(0x1cb)]();_0x320393[_0x1691d0(0x1f9)][_0x1691d0(0x1fa)][_0x1691d0(0x1e5)][_0x1691d0(0x1ff)](_0x25074e,0x2),_0x320393[_0x1691d0(0x1f9)][_0x1691d0(0x1fa)][_0x1691d0(0x1e5)][_0x1691d0(0x1ff)](_0x11771d,0x0),this[_0x1691d0(0x1e8)][_0x1691d0(0x1d5)]([_0x25074e,_0x11771d]),this[_0x1691d0(0x1ed)][_0x1691d0(0x1ff)](_0x25074e[_0x1691d0(0x1cd)]),this[_0x1691d0(0x1ed)][_0x1691d0(0x1ff)](_0x11771d[_0x1691d0(0x1cd)]);}[_0x23db2e(0x1dc)](_0x2d02f9){const _0x440ad7=_0x23db2e;this[_0x440ad7(0x1fe)]=_0x2d02f9,this[_0x440ad7(0x1fb)][_0x440ad7(0x1ff)](this[_0x440ad7(0x1fe)]);}[_0x23db2e(0x1e6)](){const _0x38382e=_0x23db2e;this[_0x38382e(0x1df)]=new _0x2ad97a(this[_0x38382e(0x1fc)]),this[_0x38382e(0x1fb)][_0x38382e(0x1ff)](this[_0x38382e(0x1df)]);}[_0x23db2e(0x1e3)](_0x1737a4=!0x0,_0x37015=!0x0){const _0x42c7c5=_0x23db2e;this[_0x42c7c5(0x1e4)]=new _0x572cff(this[_0x42c7c5(0x1fc)],_0x1737a4,_0x37015),this[_0x42c7c5(0x1e4)][_0x42c7c5(0x1c8)]?.['on'](_0x42c7c5(0x1cc),()=>{const _0x5f3c91=_0x42c7c5;this[_0x5f3c91(0x1f5)](_0x5f3c91(0x1da));}),this[_0x42c7c5(0x1e4)][_0x42c7c5(0x1d8)]?.['on'](_0x42c7c5(0x1cc),()=>{const _0x430a7d=_0x42c7c5;this[_0x430a7d(0x1f5)](_0x430a7d(0x1f3));}),this[_0x42c7c5(0x1fb)][_0x42c7c5(0x1ff)](this[_0x42c7c5(0x1e4)]);}[_0x23db2e(0x1ee)](){const _0x40b5f0=_0x23db2e,_0x1215bc=new _0xb0a3e1(this[_0x40b5f0(0x1fc)]);return _0x1215bc[_0x40b5f0(0x1c5)]({'icon':_0x33ed84,'tooltip':_0x40fb27(this[_0x40b5f0(0x1fc)],_0x40b5f0(0x1e9))}),_0x1215bc['on'](_0x40b5f0(0x1cc),()=>{const _0x13625f=_0x40b5f0;this[_0x13625f(0x1f5)](_0x13625f(0x1e1));}),_0x1215bc;}[_0x23db2e(0x1cb)](){const _0x4a5a48=_0x23db2e,_0x291ece=new _0xb0a3e1(this[_0x4a5a48(0x1fc)]);return _0x291ece[_0x4a5a48(0x1c5)]({'icon':_0x3521a5,'tooltip':_0x40fb27(this[_0x4a5a48(0x1fc)],_0x4a5a48(0x1f6))}),_0x291ece['on'](_0x4a5a48(0x1cc),()=>{const _0x23978c=_0x4a5a48;this[_0x23978c(0x1f5)](_0x23978c(0x1eb));}),_0x291ece;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47dd(){const _0x4c49f7=['sendMessage','1148171PTraZn','isOfficialPlugin','1377395EmAgcq','pluginName','requires','65092YpnlfM','context','7dsRozw','define','18NCnJVP','51FOObgp','plugins','focusPromptInput','ai.chat.context','2947664LWjOTG','ai.chat.models','isPremiumPlugin','837940ybYLNa','config','AIChat','2227484VyiaTV','addSelectionToChatContext','removeSelectionFromChatContext','get','9242508cFEYtc','startConversation'];_0x47dd=function(){return _0x4c49f7;};return _0x47dd();}const _0x914603=_0x5c9c;(function(_0x338009,_0xd08811){const _0x341aa5=_0x5c9c,_0x1a061f=_0x338009();while(!![]){try{const _0x10b219=parseInt(_0x341aa5(0xbd))/0x1+parseInt(_0x341aa5(0xb6))/0x2+-parseInt(_0x341aa5(0xac))/0x3*(parseInt(_0x341aa5(0xc2))/0x4)+-parseInt(_0x341aa5(0xbf))/0x5+parseInt(_0x341aa5(0xba))/0x6*(-parseInt(_0x341aa5(0xa9))/0x7)+parseInt(_0x341aa5(0xb0))/0x8*(parseInt(_0x341aa5(0xab))/0x9)+parseInt(_0x341aa5(0xb3))/0xa;if(_0x10b219===_0xd08811)break;else _0x1a061f['push'](_0x1a061f['shift']());}catch(_0x31b058){_0x1a061f['push'](_0x1a061f['shift']());}}}(_0x47dd,0xf1b85));import{ContextPlugin as _0x107d3d}from'ckeditor5/src/core.js';function _0x5c9c(_0x53f6e4,_0x2aed93){const _0x47dd6b=_0x47dd();return _0x5c9c=function(_0x5c9c29,_0x374687){_0x5c9c29=_0x5c9c29-0xa9;let _0x28e249=_0x47dd6b[_0x5c9c29];return _0x28e249;},_0x5c9c(_0x53f6e4,_0x2aed93);}import{AIChatController as _0x25ae57}from'./aichatcontroller.js';import{AIEditing as _0x171503}from'../aicore/aiediting.js';import{AIChatUI as _0xbcb975}from'./aichatui.js';import{AIChatHistory as _0x1449b7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x107d3d{static get[_0x914603(0xc1)](){return[_0x25ae57,_0x171503,_0xbcb975,_0x1449b7];}static get[_0x914603(0xc0)](){const _0x13f995=_0x914603;return _0x13f995(0xb5);}static get[_0x914603(0xbe)](){return!0x0;}static get[_0x914603(0xb2)](){return!0x0;}constructor(_0x3abc87){const _0x444a1a=_0x914603;super(_0x3abc87);const _0x5a5d30=_0x3abc87[_0x444a1a(0xb4)];_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xaf),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xb1),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x914603(0xb7)](){const _0x2b8868=_0x914603;await this[_0x2b8868(0xc3)][_0x2b8868(0xad)][_0x2b8868(0xb9)](_0x25ae57)[_0x2b8868(0xb7)]();}async[_0x914603(0xbb)](){const _0x2b9245=_0x914603;await this[_0x2b9245(0xc3)][_0x2b9245(0xad)][_0x2b9245(0xb9)](_0x25ae57)[_0x2b9245(0xbb)]();}async[_0x914603(0xbc)]({message:_0x1ecc44,quickActionData:_0x3682da}){const _0xe6a4d3=_0x914603;await this[_0xe6a4d3(0xc3)][_0xe6a4d3(0xad)][_0xe6a4d3(0xb9)](_0x25ae57)[_0xe6a4d3(0xbc)]({'message':_0x1ecc44,'quickActionData':_0x3682da});}[_0x914603(0xb8)](){const _0x28a3e6=_0x914603;this[_0x28a3e6(0xc3)][_0x28a3e6(0xad)][_0x28a3e6(0xb9)](_0x25ae57)[_0x28a3e6(0xb8)]();}[_0x914603(0xae)](){const _0x14619b=_0x914603;this[_0x14619b(0xc3)][_0x14619b(0xad)][_0x14619b(0xb9)](_0x25ae57)[_0x14619b(0xae)]();}}
23
+ const _0x34a5fd=_0x10b3;(function(_0x46e43a,_0x59e09e){const _0x31fbd1=_0x10b3,_0xa1e8c1=_0x46e43a();while(!![]){try{const _0x41f921=parseInt(_0x31fbd1(0x143))/0x1+parseInt(_0x31fbd1(0x145))/0x2*(-parseInt(_0x31fbd1(0x14d))/0x3)+parseInt(_0x31fbd1(0x14a))/0x4+-parseInt(_0x31fbd1(0x141))/0x5*(-parseInt(_0x31fbd1(0x147))/0x6)+-parseInt(_0x31fbd1(0x13b))/0x7*(-parseInt(_0x31fbd1(0x13c))/0x8)+parseInt(_0x31fbd1(0x14c))/0x9*(parseInt(_0x31fbd1(0x14b))/0xa)+-parseInt(_0x31fbd1(0x13a))/0xb;if(_0x41f921===_0x59e09e)break;else _0xa1e8c1['push'](_0xa1e8c1['shift']());}catch(_0x2a5ddd){_0xa1e8c1['push'](_0xa1e8c1['shift']());}}}(_0x1854,0x5efd5));import{ContextPlugin as _0x37dc84}from'ckeditor5/src/core.js';function _0x10b3(_0x391524,_0x1c4bda){const _0x18547c=_0x1854();return _0x10b3=function(_0x10b384,_0x5e375c){_0x10b384=_0x10b384-0x138;let _0x22a07a=_0x18547c[_0x10b384];return _0x22a07a;},_0x10b3(_0x391524,_0x1c4bda);}import{AIChatController as _0x28b2ec}from'./aichatcontroller.js';import{AIEditing as _0x571d17}from'../aicore/aiediting.js';import{AIChatUI as _0x1c5288}from'./aichatui.js';import{AIChatHistory as _0x1d262e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x37dc84{static get[_0x34a5fd(0x152)](){return[_0x28b2ec,_0x571d17,_0x1c5288,_0x1d262e];}static get[_0x34a5fd(0x140)](){const _0x2be61d=_0x34a5fd;return _0x2be61d(0x144);}static get[_0x34a5fd(0x153)](){return!0x0;}static get[_0x34a5fd(0x150)](){return!0x0;}constructor(_0x56200f){const _0x183936=_0x34a5fd;super(_0x56200f);const _0xad8b4b=_0x56200f[_0x183936(0x13e)];_0xad8b4b[_0x183936(0x138)](_0x183936(0x148),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0xad8b4b[_0x183936(0x138)](_0x183936(0x151),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x34a5fd(0x13f)](){const _0x541ea4=_0x34a5fd;await this[_0x541ea4(0x14e)][_0x541ea4(0x14f)][_0x541ea4(0x13d)](_0x28b2ec)[_0x541ea4(0x13f)]();}async[_0x34a5fd(0x142)](){const _0x968087=_0x34a5fd;await this[_0x968087(0x14e)][_0x968087(0x14f)][_0x968087(0x13d)](_0x28b2ec)[_0x968087(0x142)]();}async[_0x34a5fd(0x139)]({message:_0x1cb11c,quickActionData:_0x537564}){const _0x42d2b1=_0x34a5fd;await this[_0x42d2b1(0x14e)][_0x42d2b1(0x14f)][_0x42d2b1(0x13d)](_0x28b2ec)[_0x42d2b1(0x139)]({'message':_0x1cb11c,'quickActionData':_0x537564});}[_0x34a5fd(0x149)](){const _0x17615e=_0x34a5fd;this[_0x17615e(0x14e)][_0x17615e(0x14f)][_0x17615e(0x13d)](_0x28b2ec)[_0x17615e(0x149)]();}[_0x34a5fd(0x146)](){const _0x398e9d=_0x34a5fd;this[_0x398e9d(0x14e)][_0x398e9d(0x14f)][_0x398e9d(0x13d)](_0x28b2ec)[_0x398e9d(0x146)]();}}function _0x1854(){const _0x21aedf=['6PLNjjp','ai.chat.context','removeSelectionFromChatContext','1066768TGXyQp','10vCfUvA','3923163MRnMbF','3fqqQnE','context','plugins','isPremiumPlugin','ai.chat.models','requires','isOfficialPlugin','define','sendMessage','11123255rzMRri','51562aGJkpJ','120jRtZWx','get','config','addSelectionToChatContext','pluginName','1576405LNfErV','startConversation','743793EAHqAV','AIChat','943762OFEixq','focusPromptInput'];_0x1854=function(){return _0x21aedf;};return _0x1854();}
@@ -64,5 +64,9 @@ export declare class AIChatController extends ContextPlugin {
64
64
  * Gets the group ID for the current editor.
65
65
  */
66
66
  getGroupId(): string;
67
+ /**
68
+ * Starts an AI chat conversation safely, catching and logging any errors.
69
+ */
70
+ protected _startConversationSafely(id?: string): Promise<void>;
67
71
  updateConversationTitle(title: string | undefined, shouldAnimate?: boolean): void;
68
72
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd34f13=_0x3dfb;(function(_0x300620,_0x1d575c){const _0x19bd51=_0x3dfb,_0x4b16d2=_0x300620();while(!![]){try{const _0x593a17=-parseInt(_0x19bd51(0x265))/0x1+-parseInt(_0x19bd51(0x231))/0x2+parseInt(_0x19bd51(0x165))/0x3+-parseInt(_0x19bd51(0x19a))/0x4+parseInt(_0x19bd51(0x201))/0x5*(-parseInt(_0x19bd51(0x267))/0x6)+parseInt(_0x19bd51(0x25d))/0x7+parseInt(_0x19bd51(0x23c))/0x8*(parseInt(_0x19bd51(0x1f2))/0x9);if(_0x593a17===_0x1d575c)break;else _0x4b16d2['push'](_0x4b16d2['shift']());}catch(_0x547a0d){_0x4b16d2['push'](_0x4b16d2['shift']());}}}(_0x23c1,0xb4d38));import{ContextPlugin as _0x1a2899,Editor as _0x3ebc31}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b6396,logError as _0x422bdc,scrollViewportToShowTarget as _0x4020b8,uid as _0x23ccda}from'ckeditor5/src/utils.js';import{AIConnector as _0x38fbe1}from'../aicore/aiconnector.js';import{AITabs as _0x5cd7d6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x35b316}from'./model/aichatconversation.js';import{getTranslation as _0x3c888f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5d9f5d}from'../aicore/aiediting.js';import{AIChatModels as _0x4284e4}from'./model/aichatmodels.js';import{getEditorFromContext as _0x24a6e8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15f896,DATA_ID_MODEL_ATTRIBUTE as _0x14590e}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x48833e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3fda17,getMinimalSelection as _0x5bddc0,getSuggestionPartsFromReply as _0x2aabc7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x34695c,_DetachOperation as _0x252c87}from'ckeditor5/src/engine.js';import{findOne as _0x3eee92,getAttribute as _0x3ef17b,serialize as _0x4adf71,Document as _0x3c4540,findByAttribute as _0x232a5d}from'../aicore/utils/htmlparser.js';function _0x3dfb(_0x158538,_0x5e2520){const _0x23c170=_0x23c1();return _0x3dfb=function(_0x3dfb92,_0x42363d){_0x3dfb92=_0x3dfb92-0x14e;let _0xc891cc=_0x23c170[_0x3dfb92];return _0xc891cc;},_0x3dfb(_0x158538,_0x5e2520);}import{IconAI as _0x1cab71}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4bf453}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4c5548}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1a2899{[_0xd34f13(0x15b)];[_0xd34f13(0x223)];[_0xd34f13(0x1df)];[_0xd34f13(0x19f)];[_0xd34f13(0x252)]=new Map();[_0xd34f13(0x1bc)]=null;[_0xd34f13(0x246)]=!0x1;static get[_0xd34f13(0x178)](){return[_0x38fbe1,_0x4c5548,_0x15f896];}static get[_0xd34f13(0x273)](){const _0x43b0a6=_0xd34f13;return _0x43b0a6(0x154);}static get[_0xd34f13(0x1bf)](){return!0x0;}static get[_0xd34f13(0x18f)](){return!0x0;}[_0xd34f13(0x204)](){const _0x4e3e67=_0xd34f13;this[_0x4e3e67(0x223)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x19e)),this[_0x4e3e67(0x1df)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1c4)),this[_0x4e3e67(0x15b)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1a7)),this[_0x4e3e67(0x19f)]=new _0x4284e4({'connector':this[_0x4e3e67(0x223)]});const _0x3e58dd=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x156));this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x297),()=>{const _0x5f195b=_0x4e3e67;this[_0x5f195b(0x172)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x264),(_0x402d69,_0x45f035)=>{const _0x456742=_0x4e3e67;this[_0x456742(0x24d)]({'userMessage':_0x45f035});}),this[_0x4e3e67(0x1a5)](_0x3e58dd,_0x4e3e67(0x1e2),(_0x36d481,_0x94fe99)=>{const _0xce1a8d=_0x4e3e67;this[_0xce1a8d(0x1f4)](_0x94fe99);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17b),()=>{const _0x2ab330=_0x4e3e67;_0x3e58dd[_0x2ab330(0x1e5)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x174),async()=>{const _0x4bc830=_0x4e3e67;await this[_0x4bc830(0x1cd)](),await this[_0x4bc830(0x21f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1ab),()=>{const _0x326338=_0x4e3e67;this[_0x326338(0x26c)]?.[_0x326338(0x245)](_0x3c888f(this[_0x326338(0x216)][_0x326338(0x18a)],_0x326338(0x263)));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x25e),(_0x196ea6,_0x5e44ce)=>{const _0x131113=_0x4e3e67;this[_0x131113(0x26c)]?.[_0x131113(0x286)](Array[_0x131113(0x1f5)](_0x5e44ce));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1c5),(_0x1ccaf1,_0x401afb)=>{const _0x47823f=_0x4e3e67;this[_0x47823f(0x26c)]?.[_0x47823f(0x1c5)](_0x401afb);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x194),(_0x4d88f7,_0x387b1f)=>{const _0x35bc3c=_0x4e3e67;this[_0x35bc3c(0x26c)]?.[_0x35bc3c(0x194)](_0x387b1f[_0x35bc3c(0x1bb)],_0x387b1f[_0x35bc3c(0x1bd)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x27a),(_0x5773da,_0x50e1e9)=>{const _0x342f52=_0x4e3e67;this[_0x342f52(0x1d9)](_0x50e1e9);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1a6),(_0x1f9c1c,_0x42a859)=>{const _0x1e5338=_0x4e3e67;this[_0x1e5338(0x26c)]?.[_0x1e5338(0x1a6)](_0x42a859[_0x1e5338(0x1dd)],_0x42a859[_0x1e5338(0x272)],_0x42a859[_0x1e5338(0x211)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x181),()=>{const _0x271083=_0x4e3e67;this[_0x271083(0x17a)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x279),()=>{const _0xdbf6fe=_0x4e3e67;this[_0xdbf6fe(0x14f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x177),(_0x1ddbea,_0x541def)=>{const _0x44dbbd=_0x4e3e67;this[_0x44dbbd(0x26c)]?.[_0x44dbbd(0x1e1)](_0x541def);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d5),(_0x2c0f21,{replyId:_0x34be19})=>{const _0xd2f05d=_0x4e3e67;console[_0xd2f05d(0x21e)](_0xd2f05d(0x212),_0x34be19);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d7),(_0x3ee1e0,{replyId:_0xec8580})=>{const _0x184593=_0x4e3e67;console[_0x184593(0x21e)](_0x184593(0x22d),_0xec8580);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17e),(_0x1e3766,_0x1f9dc2)=>{const _0x4bbdee=_0x4e3e67;this[_0x4bbdee(0x216)][_0x4bbdee(0x243)][_0x4bbdee(0x176)](_0x4c5548)[_0x4bbdee(0x18d)](),this[_0x4bbdee(0x28d)](_0x1f9dc2);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x269),(_0x515e4b,{replyId:_0x439ddf,partIndex:_0x927c60})=>{const _0x2717c8=_0x4e3e67;this[_0x2717c8(0x246)]=this[_0x2717c8(0x1df)][_0x2717c8(0x221)],this[_0x2717c8(0x1c9)](_0x439ddf,_0x927c60);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1be),(_0x31814f,{replyId:_0x5db523,partIndex:_0x31f896})=>{const _0x1973ac=_0x4e3e67,_0x1ded32=this[_0x1973ac(0x184)](_0x5db523,_0x31f896);_0x1ded32&&_0x1973ac(0x240)!=_0x1ded32[_0x1973ac(0x160)][_0x1973ac(0x293)][_0x1973ac(0x23d)]&&this[_0x1973ac(0x15b)][_0x1973ac(0x1da)]([_0x1ded32[_0x1973ac(0x160)]],_0x1973ac(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x26b),()=>{const _0x47a65d=_0x4e3e67;this[_0x47a65d(0x15b)][_0x47a65d(0x1c0)](_0x47a65d(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20c),(_0xcbb27d,_0x280fb8)=>{const _0x1d7bdb=_0x4e3e67;this[_0x1d7bdb(0x216)][_0x1d7bdb(0x243)][_0x1d7bdb(0x176)](_0x4c5548)[_0x1d7bdb(0x18d)](),this[_0x1d7bdb(0x189)](_0x280fb8);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20d),async(_0x29b5ce,_0xf75ac7)=>{const _0x5beb5d=_0x4e3e67,{reply:_0x1a5f69}=this[_0x5beb5d(0x22c)](_0xf75ac7[_0x5beb5d(0x1ef)]),_0x3f385f=_0x24a6e8(this[_0x5beb5d(0x216)]),_0x3fe10b=_0x2aabc7({'editor':_0x3f385f,'changeGroups':_0x1a5f69[_0x5beb5d(0x23b)],'documentContextContent':_0x1a5f69[_0x5beb5d(0x22f)],'showDiff':_0xf75ac7[_0x5beb5d(0x221)]});await this[_0x5beb5d(0x1df)][_0x5beb5d(0x294)]({'id':_0x1a5f69['id'],'parts':_0x3fe10b,'renderingStrategy':_0x5beb5d(0x28e)});}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x287),(_0x4924d5,{replyId:_0x213f44,partIndex:_0x191858})=>{const _0x5f003f=_0x4e3e67;this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x1ef)]==_0x213f44&&this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x29c)]==_0x191858&&this[_0x5f003f(0x216)][_0x5f003f(0x243)][_0x5f003f(0x176)](_0x4c5548)[_0x5f003f(0x18d)]();const {reply:_0x30a3c3}=this[_0x5f003f(0x22c)](_0x213f44);_0x30a3c3[_0x5f003f(0x1b4)](_0x191858,_0x5f003f(0x1d6)),this[_0x5f003f(0x15b)][_0x5f003f(0x1c0)](_0x5f003f(0x23e));});}async[_0xd34f13(0x15d)](){const _0x339c68=_0xd34f13;this[_0x339c68(0x216)]instanceof _0x3ebc31?this[_0x339c68(0x224)](this[_0x339c68(0x216)]):this[_0x339c68(0x1a5)](this[_0x339c68(0x216)][_0x339c68(0x152)],_0x339c68(0x1c2),(_0x13e658,_0x43d53f)=>{const _0x44ada3=_0x339c68;_0x43d53f['on'](_0x44ada3(0x28b),()=>{const _0x3854af=_0x44ada3;this[_0x3854af(0x224)](_0x43d53f);});}),await this[_0x339c68(0x172)]();}[_0xd34f13(0x28d)](_0x236b55){const _0x2fa06a=_0xd34f13,_0x320650=_0x24a6e8(this[_0x2fa06a(0x216)]);if(!_0x320650[_0x2fa06a(0x243)][_0x2fa06a(0x151)](_0x2fa06a(0x209)))return;const _0x17b3a5=this[_0x2fa06a(0x216)][_0x2fa06a(0x243)][_0x2fa06a(0x176)](_0x2fa06a(0x282)),{reply:_0x488b71,interaction:_0x5893b4}=this[_0x2fa06a(0x22c)](_0x236b55[_0x2fa06a(0x1ef)]),_0x26522e=this[_0x2fa06a(0x184)](_0x236b55[_0x2fa06a(0x1ef)],_0x236b55[_0x2fa06a(0x29c)]),_0x2883cf=void 0x0!==_0x236b55[_0x2fa06a(0x29c)]?[_0x488b71[_0x2fa06a(0x23b)][_0x236b55[_0x2fa06a(0x29c)]]]:_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x163)](_0x9dacd9=>_0x2fa06a(0x203)==_0x9dacd9[_0x2fa06a(0x1b7)]),_0x120de1=_0x2883cf[_0x2fa06a(0x1b5)](_0x28c405=>_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x253)](_0x28c405));_0x120de1[_0x2fa06a(0x1aa)](_0x7610b4=>_0x488b71[_0x2fa06a(0x1b4)](_0x7610b4,_0x2fa06a(0x262)));const _0x343c97=_0x48833e({'editor':_0x320650,'reply':_0x488b71,'interaction':_0x5893b4,'groups':_0x2883cf,'transform':!0x0,'documentCompare':_0x17b3a5,'documentCompareOptions':{'anchor':_0x2fa06a(0x1a1),'markDeletions':!0x0}});let _0x150465;_0x26522e&&this[_0x2fa06a(0x1d2)](_0x26522e[_0x2fa06a(0x160)]),_0x320650[_0x2fa06a(0x1a3)][_0x2fa06a(0x1fb)](_0x8259b4=>{const _0x4bb6ab=_0x2fa06a;_0x150465=_0x8259b4[_0x4bb6ab(0x257)],_0x320650[_0x4bb6ab(0x243)][_0x4bb6ab(0x176)](_0x4bb6ab(0x209))[_0x4bb6ab(0x1ac)](_0x343c97),this[_0x4bb6ab(0x15b)][_0x4bb6ab(0x1c0)](_0x4bb6ab(0x23e));}),this[_0x2fa06a(0x252)][_0x2fa06a(0x16f)](_0x150465,{'interactionId':_0x5893b4['id'],'replyId':_0x488b71['id'],'indexes':_0x120de1[_0x2fa06a(0x236)]()});}[_0xd34f13(0x189)](_0x146db5){const _0x2cc18c=_0xd34f13,_0x3bc242=_0x24a6e8(this[_0x2cc18c(0x216)]),_0x21b8f0=this[_0x2cc18c(0x216)][_0x2cc18c(0x243)][_0x2cc18c(0x176)](_0x15f896),{reply:_0x6bb69b,interaction:_0x41122b}=this[_0x2cc18c(0x22c)](_0x146db5[_0x2cc18c(0x1ef)]),_0xe1997f=this[_0x2cc18c(0x184)](_0x146db5[_0x2cc18c(0x1ef)],_0x146db5[_0x2cc18c(0x29c)]),_0x2d5f96=void 0x0!==_0x146db5[_0x2cc18c(0x29c)]?[_0x6bb69b[_0x2cc18c(0x23b)][_0x146db5[_0x2cc18c(0x29c)]]]:_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x163)](_0xb0b1fa=>_0x2cc18c(0x203)==_0xb0b1fa[_0x2cc18c(0x1b7)]),_0x550d4c=_0x2d5f96[_0x2cc18c(0x1b5)](_0x2a8f31=>_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x253)](_0x2a8f31));_0x550d4c[_0x2cc18c(0x1aa)](_0x3d6bae=>_0x6bb69b[_0x2cc18c(0x1b4)](_0x3d6bae,_0x2cc18c(0x262)));const _0x2f0da9=_0x48833e({'editor':_0x3bc242,'reply':_0x6bb69b,'interaction':_0x41122b,'groups':_0x2d5f96,'transform':!0x0,'documentCompare':_0x21b8f0,'documentCompareOptions':{'anchor':_0x2cc18c(0x1a1),'markDeletions':!0x1}});let _0x474b94;_0xe1997f&&this[_0x2cc18c(0x1d2)](_0xe1997f[_0x2cc18c(0x160)]),_0x3bc242[_0x2cc18c(0x1a3)][_0x2cc18c(0x1fb)](_0x508023=>{const _0x515b22=_0x2cc18c;_0x474b94=_0x508023[_0x515b22(0x257)];for(const _0x30488c of _0x2f0da9)_0x30488c[_0x515b22(0x23f)]=_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x29a)][_0x515b22(0x166)],_0x508023[_0x515b22(0x257)][_0x515b22(0x171)](_0x30488c),_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x1cf)](_0x30488c);}),this[_0x2cc18c(0x252)][_0x2cc18c(0x16f)](_0x474b94,{'interactionId':_0x41122b['id'],'replyId':_0x6bb69b['id'],'indexes':_0x550d4c[_0x2cc18c(0x236)]()});}[_0xd34f13(0x1c9)](_0x53128a,_0x10796d){const _0x2f67f2=_0xd34f13,_0x40c0a0=_0x24a6e8(this[_0x2f67f2(0x216)]),_0x16f7d8=this[_0x2f67f2(0x184)](_0x53128a,_0x10796d),_0x57c6f2=this[_0x2f67f2(0x216)][_0x2f67f2(0x243)][_0x2f67f2(0x176)](_0x4c5548);if(!_0x16f7d8)return void _0x57c6f2[_0x2f67f2(0x18d)]();const {range:_0x415a46,currentIndex:_0x1ae69a,previousIndex:_0x5e4fff,nextIndex:_0x2c6467}=_0x16f7d8;if(this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x1ef)]==_0x53128a&&this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x29c)]==_0x1ae69a)return;this[_0x2f67f2(0x1bc)]={'replyId':_0x53128a,'partIndex':_0x1ae69a};const _0x499ae2=new _0x4bf453(_0x40c0a0[_0x2f67f2(0x18a)],{'showDiff':this[_0x2f67f2(0x246)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2f67f2(0x16b)},'hideHeader':!0x0}),{reply:_0x1d1bbb}=this[_0x2f67f2(0x22c)](_0x53128a),_0x4487ab=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x1d1bbb[_0x2f67f2(0x23b)][_0x1ae69a]],'documentContextContent':_0x1d1bbb[_0x2f67f2(0x22f)],'showDiff':this[_0x2f67f2(0x246)]});_0x499ae2[_0x2f67f2(0x270)]({'parts':_0x4487ab,'renderingStrategy':_0x2f67f2(0x28e)});const _0x212116=_0x1ae69a!==_0x5e4fff;this[_0x2f67f2(0x1d2)](_0x415a46,!0x0),_0x57c6f2[_0x2f67f2(0x1ff)]({'index':_0x1ae69a,'title':_0x3c888f(this[_0x2f67f2(0x216)][_0x2f67f2(0x18a)],_0x2f67f2(0x254),(_0x1ae69a+0x1)[_0x2f67f2(0x23a)]()),'icon':_0x1cab71,'mainView':_0x499ae2,'showRotator':_0x212116,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x415a46]}),this[_0x2f67f2(0x1df)][_0x2f67f2(0x155)](_0x53128a,_0x1ae69a),this[_0x2f67f2(0x1a5)](_0x499ae2,_0x2f67f2(0x20d),(_0xddb5aa,{showDiff:_0x217741})=>{const _0xdf34c3=_0x2f67f2;this[_0xdf34c3(0x246)]=_0x217741;const {reply:_0x5ed6bc}=this[_0xdf34c3(0x22c)](_0x53128a),_0x3d1f80=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x5ed6bc[_0xdf34c3(0x23b)][_0x1ae69a]],'documentContextContent':_0x5ed6bc[_0xdf34c3(0x22f)],'showDiff':_0x217741});_0x499ae2[_0xdf34c3(0x270)]({'parts':_0x3d1f80,'renderingStrategy':_0xdf34c3(0x28e)});}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20c),()=>{const _0x277e2b=_0x2f67f2;this[_0x277e2b(0x189)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x277e2b(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x277e2b(0x18d)]();}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x17e),()=>{const _0x4856e8=_0x2f67f2;this[_0x4856e8(0x28d)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x4856e8(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x4856e8(0x18d)]();}),_0x212116&&(this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x196),()=>{const _0x417c69=_0x2f67f2;this[_0x417c69(0x1c9)](_0x53128a,_0x2c6467);}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20f),()=>{const _0x2dba83=_0x2f67f2;this[_0x2dba83(0x1c9)](_0x53128a,_0x5e4fff);})),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x1f3),()=>{const _0x341767=_0x2f67f2;this[_0x341767(0x299)](_0x57c6f2),this[_0x341767(0x299)](_0x499ae2),this[_0x341767(0x1bc)]=null;});}[_0xd34f13(0x184)](_0x1cf80c,_0x2e157e){const _0x513f42=_0xd34f13,_0x54f093=_0x24a6e8(this[_0x513f42(0x216)]),{reply:_0x329e55,interaction:_0xace11c}=this[_0x513f42(0x22c)](_0x1cf80c),_0x114482=_0x329e55[_0x513f42(0x23b)][_0x513f42(0x163)](_0x22cbc2=>_0x513f42(0x203)==_0x22cbc2[_0x513f42(0x1b7)]),_0x141d0f=_0x114482[_0x513f42(0x1b5)](_0x99d181=>_0x329e55[_0x513f42(0x23b)][_0x513f42(0x253)](_0x99d181));void 0x0===_0x2e157e&&(_0x2e157e=_0x141d0f[0x0]);const _0x3bc4b4=_0x141d0f[_0x513f42(0x253)](_0x2e157e);if(-0x1==_0x3bc4b4)return null;const _0x250b4d=0x0==_0x3bc4b4?_0x141d0f[_0x141d0f[_0x513f42(0x26e)]-0x1]:_0x141d0f[_0x3bc4b4-0x1],_0x249539=_0x3bc4b4==_0x141d0f[_0x513f42(0x26e)]-0x1?_0x141d0f[0x0]:_0x141d0f[_0x3bc4b4+0x1],_0x38b0f8=_0x114482[_0x3bc4b4],_0x1857cd=new _0x3c4540([]),_0x19ae2e=new _0x3c4540([]);for(const _0xb59073 of _0x38b0f8[_0x513f42(0x234)])if(_0x513f42(0x1b0)!=_0xb59073[_0x513f42(0x1e4)]&&_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0xb59073[_0x513f42(0x281)][_0x513f42(0x280)](!0x0)),_0x513f42(0x19c)!=_0xb59073[_0x513f42(0x1e4)]){const _0x46c797=_0x3eee92(_0x34ebd4=>_0x3ef17b(_0x34ebd4,_0x513f42(0x271))==_0xb59073['id'],_0x329e55[_0x513f42(0x22f)],!0x0);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x46c797[_0x513f42(0x280)](!0x0));}if(0x0==_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x26e)]){if(_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)]){const _0x9e1811=_0x232a5d(_0x513f42(0x271),_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)],_0x329e55[_0x513f42(0x22f)]);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x9e1811[_0x513f42(0x230)]&&(_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)));}else{const _0x44ce04=_0x329e55[_0x513f42(0x22f)][_0x513f42(0x1f1)][0x0];if(!_0x44ce04)return null;_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0));}}const _0x3e369c=_0xace11c[_0x513f42(0x220)](),_0x5d108e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0x3e369c[_0x513f42(0x247)]),_0xbbc8ee=_0x4adf71(_0x1857cd),_0x55e367=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x57608e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x5274b3=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x188)](_0x55e367,0x0),_0xf01e18=_0x4adf71(_0x19ae2e),_0x1139dc={'anchor':_0x5274b3,'markDeletions':!0x1},_0x1edb67=_0x54f093[_0x513f42(0x243)][_0x513f42(0x176)](_0x15f896)[_0x513f42(0x20a)](_0xbbc8ee,_0xf01e18,_0x1139dc)[_0x513f42(0x16e)]();if(!_0x1edb67[_0x513f42(0x26e)])return null;_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1fb)](_0x55b363=>{const _0x13e203=_0x513f42;for(const _0xa3ffdb of _0x1edb67)if(_0x13e203(0x1b3)==_0xa3ffdb[_0x13e203(0x1e4)]){const _0x6ace33=_0xa3ffdb[_0x13e203(0x1ed)],_0xbec179=_0xa3ffdb[_0x13e203(0x1ce)],_0x2182ec=new _0x252c87(_0x6ace33,_0xbec179);_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0x2182ec),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0x2182ec);}else _0xa3ffdb[_0x13e203(0x23f)]=null,_0xa3ffdb[_0x13e203(0x191)]=!0x1,_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0xa3ffdb),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0xa3ffdb);});const _0x4c4ff9=_0x5bddc0(_0x54f093,_0x1edb67,_0x55e367);_0x3fda17(_0x54f093[_0x513f42(0x1a3)],_0x4c4ff9);const _0x100f89=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x33dff5=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x264965=[];let _0x13ec2c=_0x55e367,_0x170af9=_0x57608e;for(let _0x26ee82=0x0;_0x26ee82<_0x33dff5[_0x513f42(0x26e)];_0x26ee82++){const _0xe83cf7=_0x13ec2c[_0x513f42(0x162)]-_0x33dff5[_0x26ee82];_0x264965[_0x26ee82]=_0x170af9[_0x513f42(0x162)]-_0xe83cf7,_0x13ec2c=_0x13ec2c[_0x513f42(0x175)](_0x33dff5[_0x26ee82]),_0x170af9=_0x170af9[_0x513f42(0x175)](_0x264965[_0x26ee82]);}const _0x17f6e6=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x100f89),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x264965)),_0x54f3a0=_0x57608e[_0x513f42(0x159)](0x0)[_0x513f42(0x24e)](_0x14590e),_0x5a1eb7=Array[_0x513f42(0x1f5)](_0x5d108e[_0x513f42(0x278)]())[_0x513f42(0x27c)](_0x5c8d25=>_0x5c8d25[_0x513f42(0x24e)](_0x14590e)==_0x54f3a0)[_0x513f42(0x222)](),_0x44e259=_0x17f6e6[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x13487b=_0x17f6e6[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)]();_0x44e259[0x0]=_0x5a1eb7[0x0]+_0x44e259[0x0],_0x13487b[0x0]=_0x5a1eb7[0x0]+_0x13487b[0x0];let _0x486d47=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x44e259),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x13487b));const _0x186913=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x237)][_0x513f42(0x16e)](_0x3e369c[_0x513f42(0x166)]);for(const _0x3f1fe9 of _0x186913)_0x486d47=_0x34695c[_0x513f42(0x238)](_0x486d47[_0x513f42(0x1b8)](_0x3f1fe9));return{'range':_0x486d47,'previousIndex':_0x250b4d,'nextIndex':_0x249539,'currentIndex':_0x2e157e};}[_0xd34f13(0x224)](_0x1f540a){const _0x171f26=_0xd34f13;if(!_0x1f540a[_0x171f26(0x243)][_0x171f26(0x151)](_0x171f26(0x249)))return;const _0x8560d5=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x227)),_0x30abee=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x1e6));this[_0x171f26(0x1a5)](_0x8560d5,_0x171f26(0x1dc),(_0x5298b3,_0x1ef2d9,_0x57fce8)=>{const _0x33a029=_0x171f26,_0x43f48e=this[_0x33a029(0x252)][_0x33a029(0x176)](_0x1ef2d9);if(!_0x43f48e)return;const _0x157217=this[_0x33a029(0x26c)][_0x33a029(0x28a)](_0x43f48e[_0x33a029(0x16d)])[_0x33a029(0x164)](_0x43f48e[_0x33a029(0x1ef)]);_0x43f48e[_0x33a029(0x1e7)][_0x33a029(0x1aa)](_0x63d3b8=>_0x157217[_0x33a029(0x1b4)](_0x63d3b8,_0x33a029(0x203))),this[_0x33a029(0x252)][_0x33a029(0x1db)](_0x1ef2d9),this[_0x33a029(0x252)][_0x33a029(0x16f)](_0x57fce8,_0x43f48e);}),this[_0x171f26(0x1a5)](_0x30abee,_0x171f26(0x1dc),(_0x1b8737,_0x421358,_0x1b5ae8)=>{const _0x2cd166=_0x171f26,_0x265784=this[_0x2cd166(0x252)][_0x2cd166(0x176)](_0x421358);if(!_0x265784)return;const _0x9bee13=this[_0x2cd166(0x26c)][_0x2cd166(0x28a)](_0x265784[_0x2cd166(0x16d)])[_0x2cd166(0x164)](_0x265784[_0x2cd166(0x1ef)]);_0x265784[_0x2cd166(0x1e7)][_0x2cd166(0x1aa)](_0x63e3ee=>_0x9bee13[_0x2cd166(0x1b4)](_0x63e3ee,_0x2cd166(0x262))),this[_0x2cd166(0x252)][_0x2cd166(0x1db)](_0x421358),this[_0x2cd166(0x252)][_0x2cd166(0x16f)](_0x1b5ae8,_0x265784);});}async[_0xd34f13(0x1cc)](_0xe4a1e3){const _0x3315d7=_0xd34f13;this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x4c5548)[_0x3315d7(0x18d)](),this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x28e)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x0),await this[_0x3315d7(0x1cd)]();try{const _0xc2c900=this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x5cd7d6);this[_0x3315d7(0x1f7)]('\x20'),_0xc2c900[_0x3315d7(0x1e3)][_0x3315d7(0x15c)](_0x3315d7(0x22e)),await this[_0x3315d7(0x172)](_0xe4a1e3);const {sessionId:_0x2d687b}=this[_0x3315d7(0x15b)][_0x3315d7(0x1c1)]();await this[_0x3315d7(0x26c)][_0x3315d7(0x1c3)](_0xe4a1e3,_0x2d687b),this[_0x3315d7(0x26c)][_0x3315d7(0x199)]()&&this[_0x3315d7(0x26c)][_0x3315d7(0x245)](_0x3c888f(this[_0x3315d7(0x216)][_0x3315d7(0x18a)],_0x3315d7(0x263)));}catch(_0x46a103){console[_0x3315d7(0x275)](_0x3315d7(0x283),_0x46a103);}finally{this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x215)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x1);}}[_0xd34f13(0x20e)](_0x539663){const _0x2ab315=_0xd34f13;this[_0x2ab315(0x26c)]['id']===_0x539663&&this[_0x2ab315(0x172)]();}async[_0xd34f13(0x1eb)](){const _0x49e8cd=_0xd34f13,_0x5925c5=this[_0x49e8cd(0x15b)][_0x49e8cd(0x29b)]();this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x1c7)](_0x5925c5),this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x245)](_0x3c888f(this[_0x49e8cd(0x216)][_0x49e8cd(0x18a)],_0x49e8cd(0x263)));}[_0xd34f13(0x15e)](){const _0x51f54a=_0xd34f13;this[_0x51f54a(0x26c)]?.[_0x51f54a(0x1f6)]();}[_0xd34f13(0x153)](){const _0x3a9400=_0xd34f13;this[_0x3a9400(0x1df)][_0x3a9400(0x153)]();}async[_0xd34f13(0x297)](){const _0x299885=_0xd34f13;await this[_0x299885(0x172)]();}async[_0xd34f13(0x261)]({message:_0x43889e,quickActionData:_0x3b73db}){const _0x220c27=_0xd34f13;await this[_0x220c27(0x24d)]({'userMessage':_0x43889e,'quickActionData':_0x3b73db});}[_0xd34f13(0x26f)](){const _0x4e648b=_0xd34f13,_0xf3a7d8=this[_0x4e648b(0x216)][_0x4e648b(0x168)][_0x4e648b(0x176)](_0x4e648b(0x226));if(!_0xf3a7d8)throw new _0x4b6396(_0x4e648b(0x205),this);return _0xf3a7d8;}async[_0xd34f13(0x172)](_0x55e4be){const _0x415683=_0xd34f13,_0x3f53f7=this[_0x415683(0x216)][_0x415683(0x243)][_0x415683(0x176)](_0x4c5548);let _0x307d64;_0x3f53f7[_0x415683(0x25c)]&&_0x3f53f7[_0x415683(0x18d)](),_0x307d64=_0x55e4be||!this[_0x415683(0x26c)]?this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x25b)):this[_0x415683(0x26c)][_0x415683(0x18e)]['id'],await this[_0x415683(0x1cd)]();const _0x2e056b=this[_0x415683(0x26f)](),_0x19dc73=_0x55e4be||_0x23ccda();this[_0x415683(0x26c)]=new _0x35b316({'connector':this[_0x415683(0x223)],'chatModels':this[_0x415683(0x19f)],'defaultModelId':_0x307d64,'conversationId':_0x19dc73,'group':_0x2e056b,'getEditor':()=>_0x24a6e8(this[_0x415683(0x216)])}),this[_0x415683(0x26c)]['on'](_0x415683(0x251),(_0x59ef55,_0x49ea94)=>{const _0x3326d0=_0x415683;_0x49ea94[_0x3326d0(0x210)]=this[_0x3326d0(0x228)](_0x49ea94[_0x3326d0(0x210)],this[_0x3326d0(0x216)][_0x3326d0(0x168)][_0x3326d0(0x176)](_0x3326d0(0x170))),this[_0x3326d0(0x1df)][_0x3326d0(0x1ae)](_0x49ea94),this[_0x3326d0(0x1df)][_0x3326d0(0x289)](),this[_0x3326d0(0x1df)][_0x3326d0(0x17c)](),this[_0x3326d0(0x1df)][_0x3326d0(0x1ca)](),_0x55e4be||(this[_0x3326d0(0x1df)][_0x3326d0(0x288)](),this[_0x3326d0(0x26c)]?.[_0x3326d0(0x245)](_0x3c888f(this[_0x3326d0(0x216)][_0x3326d0(0x18a)],_0x3326d0(0x263))));}),this[_0x415683(0x26c)]['on'](_0x415683(0x21c),(_0x526168,_0x14c111)=>{const _0x34da3e=_0x415683;this[_0x34da3e(0x1df)][_0x34da3e(0x218)](_0x14c111[_0x34da3e(0x1c6)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x298),(_0x27a954,_0x52544d)=>{const _0x2ac664=_0x415683;this[_0x2ac664(0x1df)][_0x2ac664(0x1f8)](_0x52544d),this[_0x2ac664(0x1df)][_0x2ac664(0x21a)](_0x52544d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x250),(_0x147ef6,_0x2c4fe4)=>{const _0x4b5199=_0x415683;this[_0x4b5199(0x1df)][_0x4b5199(0x24f)](_0x2c4fe4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x256),async()=>{const _0x3afee0=_0x415683;await this[_0x3afee0(0x1df)][_0x3afee0(0x19d)]();}),this[_0x415683(0x26c)]['on'](_0x415683(0x1ee),(_0xd0e201,_0x496e28)=>{const _0x1ea0b5=_0x415683;this[_0x1ea0b5(0x1df)][_0x1ea0b5(0x235)](_0x496e28['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x290),(_0x402224,_0x3fd0f2,_0x5052f4)=>{const _0x529457=_0x415683;this[_0x529457(0x1f7)](_0x3fd0f2,_0x5052f4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1e8),(_0x1c24ea,_0x2663c9)=>{const _0x2f1069=_0x415683;this[_0x2f1069(0x1df)][_0x2f1069(0x1a8)]({'isVisible':!0x0,'id':_0x2663c9[_0x2f1069(0x16d)]}),_0x2f1069(0x1fa)===_0x2663c9[_0x2f1069(0x1e4)]?this[_0x2f1069(0x1df)][_0x2f1069(0x28c)](_0x2663c9):this[_0x2f1069(0x1df)][_0x2f1069(0x1a2)](_0x2663c9);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1f9),async(_0x5f4203,_0x1774ce,_0x2a9393)=>{const _0x16ad78=_0x415683;await this[_0x16ad78(0x197)]({'reply':_0x1774ce,'changeGroups':_0x2a9393});}),this[_0x415683(0x26c)]['on'](_0x415683(0x195),(_0x100a63,{reply:_0x2a7e27,index:_0x420534,state:_0x366b14})=>{const _0xbc4a5a=_0x415683;this[_0xbc4a5a(0x1df)][_0xbc4a5a(0x268)]({'id':_0x2a7e27['id'],'index':_0x420534,'state':_0x366b14});}),this[_0x415683(0x26c)]['on'](_0x415683(0x25a),(_0x26057a,_0x3ee83c)=>{const _0x23b90b=_0x415683;if(this[_0x23b90b(0x1df)][_0x23b90b(0x27f)](_0x3ee83c[_0x23b90b(0x255)],_0x3ee83c[_0x23b90b(0x1d3)]),_0x23b90b(0x1f0)===_0x3ee83c[_0x23b90b(0x255)][_0x23b90b(0x1e4)]){const _0x35ed85=[..._0x24a6e8(this[_0x23b90b(0x216)])[_0x23b90b(0x1a3)][_0x23b90b(0x29a)][_0x23b90b(0x1f0)][_0x23b90b(0x161)]()];this[_0x23b90b(0x15b)][_0x23b90b(0x1da)](_0x35ed85,_0x23b90b(0x24c)+this[_0x23b90b(0x26c)]?.['id']);}}),this[_0x415683(0x26c)]['on'](_0x415683(0x22a),(_0x305110,_0x558f49)=>{const _0x2f8379=_0x415683;this[_0x2f8379(0x1df)][_0x2f8379(0x27a)](_0x558f49[_0x2f8379(0x157)]),_0x2f8379(0x14e)==_0x558f49[_0x2f8379(0x157)]&&this[_0x2f8379(0x15e)](),_0x2f8379(0x1f0)===_0x558f49[_0x2f8379(0x1e4)]&&this[_0x2f8379(0x15b)][_0x2f8379(0x1c0)](_0x2f8379(0x24c)+this[_0x2f8379(0x26c)]?.['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x217),(_0x1d6774,_0x247bce)=>{const _0x4a6700=_0x415683;this[_0x4a6700(0x1df)][_0x4a6700(0x169)](_0x247bce[_0x4a6700(0x255)][_0x4a6700(0x157)],_0x247bce[_0x4a6700(0x1d3)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x182),(_0x323929,_0xff41d5)=>{const _0x1835b8=_0x415683;this[_0x1835b8(0x1df)][_0x1835b8(0x16c)](_0xff41d5[_0x1835b8(0x206)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x259),(_0x2bfb97,_0x2e28f1)=>{const _0x5cec19=_0x415683;this[_0x5cec19(0x1df)][_0x5cec19(0x158)](_0x2e28f1[_0x5cec19(0x22b)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1a9),(_0x3addbf,_0x567020)=>{const _0x58a5c2=_0x415683;this[_0x58a5c2(0x1df)][_0x58a5c2(0x242)](_0x567020[_0x58a5c2(0x1dd)],_0x567020[_0x58a5c2(0x1bb)],_0x567020[_0x58a5c2(0x214)],_0x567020[_0x58a5c2(0x211)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x26a),(_0x54e7ec,_0x16d9c0)=>{const _0x2aed54=_0x415683;this[_0x2aed54(0x1df)][_0x2aed54(0x187)](_0x16d9c0[_0x2aed54(0x1dd)],_0x16d9c0[_0x2aed54(0x24b)],_0x16d9c0[_0x2aed54(0x173)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x208),(_0x5eccdc,_0x9a0a8d)=>{const _0x3b49ca=_0x415683;this[_0x3b49ca(0x1df)][_0x3b49ca(0x27d)](_0x9a0a8d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1fe),(_0x58e67c,_0x2e54bb)=>{const _0x36471e=_0x415683;this[_0x36471e(0x1df)][_0x36471e(0x1ea)](_0x2e54bb[_0x36471e(0x18e)],_0x2e54bb[_0x36471e(0x28f)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x275),(_0x56c56a,{error:_0x1fe2d0,interactionId:_0x3616b2,fileName:_0x440901,url:_0x836ce1,sourceId:_0x386de2,sourceLabel:_0x5de0f5})=>{const _0xc7d8ad=_0x415683,_0x37ed6a=_0x3616b2?_0x3616b2+':'+_0x23ccda():_0x23ccda();_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x276))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x1fd)]({'staticMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1ba)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d0))||_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x296))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x291)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1b1))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x25f),_0x440901),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x186))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x183),_0x836ce1),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x180))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1de)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d4))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x190)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1c8))?(_0x386de2&&this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x17f)](_0x386de2),this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1fc),_0x5de0f5||_0xc7d8ad(0x1bb)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x21b))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x233)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x27b)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0));}),await this[_0x415683(0x26c)][_0x415683(0x204)](this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x292))),_0x55e4be||await this[_0x415683(0x26c)][_0x415683(0x167)]();}async[_0xd34f13(0x24d)]({userMessage:_0x65fa0a,quickActionData:_0x5f2d35}){const _0x39e787=_0xd34f13;if(!this[_0x39e787(0x26c)])throw new _0x4b6396(_0x39e787(0x1a4));this[_0x39e787(0x26c)][_0x39e787(0x15f)]()&&await this[_0x39e787(0x26c)][_0x39e787(0x225)](this[_0x39e787(0x15b)][_0x39e787(0x1c1)]()),this[_0x39e787(0x26c)]['id']&&this[_0x39e787(0x26c)][_0x39e787(0x179)]&&await this[_0x39e787(0x26c)][_0x39e787(0x185)]({'userMessage':_0x65fa0a,'quickActionData':_0x5f2d35}),this[_0x39e787(0x200)]();}[_0xd34f13(0x200)](){const _0x18b7fa=_0xd34f13,_0x1ee965=_0x24a6e8(this[_0x18b7fa(0x216)])[_0x18b7fa(0x1a3)],_0x336988=Array[_0x18b7fa(0x1f5)](_0x1ee965[_0x18b7fa(0x213)][_0x18b7fa(0x295)](_0x5d9f5d));_0x1ee965[_0x18b7fa(0x1fb)](_0x155b17=>{const _0x146396=_0x18b7fa;_0x336988[_0x146396(0x1aa)](_0x1300a0=>_0x155b17[_0x146396(0x207)](_0x1300a0));});}[_0xd34f13(0x1e9)](){const _0x19685f=_0xd34f13;console[_0x19685f(0x21e)](_0x19685f(0x21d));}[_0xd34f13(0x1f4)](_0x4d3cf2){const _0x1942fb=_0xd34f13;this[_0x1942fb(0x1df)][_0x1942fb(0x1e0)](_0x4d3cf2);}[_0xd34f13(0x15a)](_0xd501db){const _0x45e2d3=_0xd34f13;_0x422bdc(_0xd501db[_0x45e2d3(0x1d1)]);}[_0xd34f13(0x1d9)](_0x3d84e4){const _0x54d581=_0xd34f13;this[_0x54d581(0x26c)]?.[_0x54d581(0x1d8)](_0x3d84e4);}[_0xd34f13(0x17a)](){const _0xcbc03c=_0xd34f13;this[_0xcbc03c(0x26c)]?.[_0xcbc03c(0x181)]();}[_0xd34f13(0x14f)](){const _0x243dff=_0xd34f13;this[_0x243dff(0x26c)]?.[_0x243dff(0x279)]();}[_0xd34f13(0x22c)](_0x1af385){const _0x581dd8=_0xd34f13,[_0x5a6ea3,_0x1a6a76]=_0x1af385[_0x581dd8(0x19b)](':'),_0x5accbc=this[_0x581dd8(0x26c)][_0x581dd8(0x28a)](_0x5a6ea3),_0x5645cf=_0x5accbc[_0x581dd8(0x164)](_0x1a6a76);return{'interaction':_0x5accbc,'reply':_0x5645cf};}[_0xd34f13(0x1d2)](_0x59e820,_0x29069a=!0x1){const _0x2b9ce5=_0xd34f13,_0x495d43=_0x24a6e8(this[_0x2b9ce5(0x216)]),_0xdb92ff={'target':_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x1e3)][_0x2b9ce5(0x284)][_0x2b9ce5(0x248)](_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x16a)][_0x2b9ce5(0x27e)](_0x59e820)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x29069a};_0x29069a&&(_0xdb92ff[_0x2b9ce5(0x258)]=!0x0),_0x4020b8(_0xdb92ff);}[_0xd34f13(0x1f7)](_0x472a22,_0x51b1a6=!0x1){const _0x84a89f=_0xd34f13;this[_0x84a89f(0x1df)][_0x84a89f(0x290)](_0x472a22||_0x3c888f(this[_0x84a89f(0x216)][_0x84a89f(0x18a)],_0x84a89f(0x1b2)),_0x51b1a6);}[_0xd34f13(0x228)](_0x522695,_0x177df4){const _0x464830=_0xd34f13;let _0x131549;if(_0x177df4){_0x131549=[];const _0x128f66=_0x464830(0x24a)==typeof _0x177df4?[_0x177df4[_0x464830(0x150)]()]:_0x177df4[_0x464830(0x1b5)](_0x61091c=>_0x61091c[_0x464830(0x150)]());for(const _0x37345c of _0x128f66)for(const _0xaa82e0 of _0x522695)(_0xaa82e0['id'][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x26d)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x1ec)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0['id'][_0x464830(0x150)]()[_0x464830(0x1af)](_0x37345c))&&_0x131549[_0x464830(0x18c)](_0xaa82e0);}else _0x131549=_0x522695;return _0x131549;}async[_0xd34f13(0x197)]({reply:_0x5dc988,changeGroups:_0x34dcbd,renderingStrategy:_0x6b45fa}){const _0x1b7092=_0xd34f13,{id:_0x23d541,isDone:_0xfd66c9,type:_0x26b20d,parsedContent:_0x337eda}=_0x5dc988;if(_0x1b7092(0x266)===_0x26b20d){const _0x3e9592=_0x24a6e8(this[_0x1b7092(0x216)]),_0x56d142=_0x2aabc7({'editor':_0x3e9592,'showDiff':this[_0x1b7092(0x1df)][_0x1b7092(0x221)],'changeGroups':_0x34dcbd,'documentContextContent':_0x5dc988[_0x1b7092(0x22f)]});await this[_0x1b7092(0x1df)][_0x1b7092(0x294)]({'id':_0x23d541,'parts':_0x56d142,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});}else _0x1b7092(0x1fa)===_0x26b20d&&await this[_0x1b7092(0x1df)][_0x1b7092(0x260)]({'id':_0x23d541,'parsedContent':_0x337eda,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});_0xfd66c9&&_0x5dc988[_0x1b7092(0x241)][_0x1b7092(0x26e)]>0x0&&this[_0x1b7092(0x1df)][_0x1b7092(0x202)](_0x23d541,_0x5dc988[_0x1b7092(0x241)]);}async[_0xd34f13(0x1cd)](){const _0xe190de=_0xd34f13,_0x4e04a0=this[_0xe190de(0x26c)]?.[_0xe190de(0x239)];_0x4e04a0&&(_0x4e04a0[_0xe190de(0x192)](),this[_0xe190de(0x1df)][_0xe190de(0x232)](_0x4e04a0));}async[_0xd34f13(0x21f)](){const _0x59691c=_0xd34f13,_0x5115c6=this[_0x59691c(0x26c)]?.[_0x59691c(0x239)];if(_0x5115c6){for await(const _0x553add of _0x5115c6[_0x59691c(0x20b)])await this[_0x59691c(0x197)]({'reply':_0x553add,'changeGroups':_0x553add[_0x59691c(0x23b)],'renderingStrategy':_0x59691c(0x28e)});}}}function _0x23c1(){const _0x3c7068=['ai.chat.context','root','updateFeedItemAIReplySuggestionContent','getMarkersGroup','ai-chat-conversation-start-failed','startConversation','interactionCreated','stopListening','document','getSelectionText','partIndex','current-document','_toggleReasoning','toLocaleLowerCase','has','editors','focusPromptInput','AIChatController','scrollFeedToSuggestion','AITabs','uiId','setAddContextOptions','getChild','_logError','_aiEditing','activateTab','afterInit','removeSelectionFromChatContext','isCurrentDocumentInContext','range','getRanges','maxOffset','filter','getReply','3519132rVSLrP','version','start','config','setContextItemLoading','mapper','full','setConversationContext','interactionId','getOperations','set','ai.chat.models.displayedModels','addOperation','_handleStartConversation','isInContext','abortPromptStream','getChildAtOffset','get','selectModel','requires','isStarted','_toggleWebSearch','resizeTabs','clearPendingContextUI','end','insertSuggestion','closeSourceResourceBalloon','ai-chat-context-invalid-data','toggleWebSearch','contextSent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_getDocumentRangeForReplyChanges','handleUserInteraction','ai-chat-url-upload-failed','updateResourceState','createPositionAt','_applySuggestion','locale','toggleLoadingSkeleton','push','close','selectedModel','isPremiumPlugin','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isDocumentOperation','stop','parse','addResourceToContext','replyChangeGroupStateUpdated','showNext','_updateReplyContent','commands','isCurrentDocumentInConversation','2023232yZFCIY','split','new','finishInteraction','AIConnector','_aiChatModels','anchorId','main','addFeedItemAISuggestion','model','ai-chat-controller-no-active-conversation','listenTo','loadSourceResources','AIEditing','updateFeedInteractionHeader','sourceResourcesLoaded','forEach','addDocumentToContext','_applyOperationsAsSuggestions','createRange','createConversation','startsWith','removed','ai-chat-file-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','remove','setChangeGroupState','map','getRoot','state','getTransformedByOperation','editing','AI_CHAT_ABORTED_MESSAGE','source','_previewedChangeGroup','resource','mouseOverSuggestion','isOfficialPlugin','hideFakeVisualSelection','getDocumentData','add','load','AIChatUI','addUrlToContext','isUploadInProgress','addSelectionToContext','ai-chat-source-resources-load-failed','_openBalloonFor','clearConversationContextUI','createPositionFromPath','loadConversation','_stopLastInteraction','howMany','applyOperation','ai-chat-conversation-init-failed','message','_scrollToSuggestionRange','isLoading','ai-chat-context-unsupported-type','like','rejected','dislike','removeFromContext','_removeFromContext','showFakeVisualSelection','delete','revert','sourceId','AI_CHAT_CONTEXT_INVALID_DATA','_aiChatUi','setIsMaximized','setModel','resizedTabs','view','type','resize','redo','indexes','replyCreated','_showConversationHistory','setSelectedModel','addSelectionToChatContext','provider','sourcePosition','interactionDestroyed','replyId','selection','children','1143CeTujN','dialogClosed','_setIsMaximized','from','removeSelectionFromContext','updateConversationTitle','addFeedItemUserMessage','replyContentUpdated','text-delta','change','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addFeedItemStaticMessage','modelSelected','open','_removeAISelectionMarkers','4805jaSQcZ','updateFeedItemAIReplySources','pending','init','ai-chat-missing-channel-id','contextItems','removeMarker','capabilitiesUpdated','TrackChangesEditing','getDiff','replies','applySuggestion','toggleSuggestionDisplayMode','handleRemovedConversation','showPrevious','availableModels','uid','Liked\x20response','markers','resources','streaming','context','contextItemLoadingEnded','setIsUploadInProgress','setFeedItemRenderingStrategy','addFeedInteractionHeader','ai-chat-resource-load-failed','uploadProgressChanged','Showing\x20conversation\x20history...','log','_flushLastInteractionUI','getDocumentContext','showDiff','getPath','_aiConnector','_integrateEditor','updateCurrentDocumentInContext','collaboration.channelId','undo','_filterModels','addFeedItemError','contextItemRemoved','options','getInteractionAndReplyById','Disliked\x20response','chat','documentContextContent','nextSibling','34756BWFeec','stopInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','changes','removeFeedInteraction','slice','history','_createFromRanges','lastInteraction','toString','changeGroups','28984gifaJB','rootName','ai-chat-controller-mouse-over','baseVersion','$graveyard','sources','populateSourceResourceBalloon','plugins','unshift','addCurrentDocumentToContext','_balloonShowDiff','content','viewRangeToDom','Undo','string','resourceId','ai-conversation-','_handleUIUserMessage','getAttribute','startInteraction','interactionStarted','conversationInitialized','_batchToChanges','indexOf','AI_BALLOON_HEADER_TITLE','contextItem','interactionFinished','batch','alignToTop','addContextOptionsChanged','contextItemAdded','ai.chat.models.defaultModelId','isOpen','5843201sBxMWt','addFileToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplyContent','sendMessage','accepted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','sendUserMessage','599589KezsJV','modification-delta','3774nrNArb','updateFeedItemAIReplySuggestionPartState','showChangeInText','resourceStateChanged','mouseLeaveSuggestion','activeConversation','name','length','getGroupId','updateContent','data-id','query','pluginName','data','error','ai-request-aborted','getFirstRange','getChildren','toggleReasoning','removeContextItem','AI_CHAT_GENERIC_ERROR','find','updateCapabilities','toViewRange','addContextItem','cloneNode','node','DocumentCompare','Failed\x20to\x20load\x20conversation','domConverter','path','addFilesToContext','rejectSuggestion','resetConversationTitle','resetMessageInput','getInteraction','ready','addFeedItemAIReply','_insertSuggestion','static','isDisabled','setConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION'];_0x23c1=function(){return _0x3c7068;};return _0x23c1();}
23
+ const _0x273c8e=_0x2912;(function(_0x4cf5ef,_0x2d8ebb){const _0x364ebf=_0x2912,_0x4bde67=_0x4cf5ef();while(!![]){try{const _0x2eb667=parseInt(_0x364ebf(0xf9))/0x1+parseInt(_0x364ebf(0x194))/0x2+-parseInt(_0x364ebf(0x216))/0x3+parseInt(_0x364ebf(0x1eb))/0x4*(parseInt(_0x364ebf(0x219))/0x5)+parseInt(_0x364ebf(0x18c))/0x6*(-parseInt(_0x364ebf(0x185))/0x7)+parseInt(_0x364ebf(0x160))/0x8+parseInt(_0x364ebf(0x20f))/0x9*(-parseInt(_0x364ebf(0x1b3))/0xa);if(_0x2eb667===_0x2d8ebb)break;else _0x4bde67['push'](_0x4bde67['shift']());}catch(_0x25f2ad){_0x4bde67['push'](_0x4bde67['shift']());}}}(_0x5ee2,0x567eb));import{ContextPlugin as _0x28d851,Editor as _0x1a849b}from'ckeditor5/src/core.js';import{CKEditorError as _0x327deb,logError as _0x155630,scrollViewportToShowTarget as _0x2ac7e7,uid as _0x4d67a7}from'ckeditor5/src/utils.js';import{AIConnector as _0x4052a5}from'../aicore/aiconnector.js';import{AITabs as _0x3be4cf}from'../aitabs/aitabs.js';import{AIChatConversation as _0x4dd354}from'./model/aichatconversation.js';import{getTranslation as _0x491991}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x28ce8a}from'../aicore/aiediting.js';import{AIChatModels as _0x1d306d}from'./model/aichatmodels.js';function _0x5ee2(){const _0x241673=['_removeFromContext','Failed\x20to\x20load\x20conversation','history','unshift','addDocumentToContext','map','end','indexes','revert','type','470cyAceY','resizeTabs','content','_insertSuggestion','remove','focusPromptInput','provider','contextItemAdded','addFeedItemStaticMessage','abortPromptStream','insertSuggestion','main','collaboration.channelId','find','removeSelectionFromContext','documentContextContent','config','AIChatUI','data','ai-chat-conversation-init-failed','error','plugins','uid','updateContent','getOperations','resourceStateChanged','selectedModel','ai-chat-conversation-start-failed','_handleUIUserMessage','load','setIsUploadInProgress','mouseOverSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','toggleReasoning','modification-delta','_stopLastInteraction','interactionFinished','AI_CHAT_UNTITLED_CONVERSATION','_filterModels','locale','requires','getChildAtOffset','query','sourceResourcesLoaded','pluginName','addFeedItemAIReply','startsWith','createPositionAt','log','updateFeedItemAIReplySuggestionContent','replyChangeGroupStateUpdated','setFeedItemRenderingStrategy','isStarted','toggleWebSearch','contextItemLoadingEnded','get','96VulzeA','delete','getFirstRange','open','_integrateEditor','_scrollToSuggestionRange','getMarkersGroup','_aiEditing','filter','_logError','selection','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','state','updateCapabilities','addFeedItemUserMessage','static','setContextItemLoading','resources','AIConnector','ai-chat-missing-channel-id','_removeAISelectionMarkers','_balloonShowDiff','getInteractionAndReplyById','stop','sourceId','context','setIsMaximized','_previewedChangeGroup','contextItem','getAttribute','startInteraction','ai-conversation-','selectModel','getRoot','rootName','44883vBlYdP','dialogClosed','updateCurrentDocumentInContext','afterInit','contextSent','start','getDiff','1219617FzUvuZ','toggleLoadingSkeleton','resource','95860SURODz','replyCreated','pending','editors','applyOperation','source','updateFeedInteractionHeader','scrollFeedToSuggestion','options','getSelectionText','resetConversationTitle','handleRemovedConversation','close','setConversationContext','string','Disliked\x20response','AI_CHAT_CONTEXT_INVALID_DATA','Showing\x20conversation\x20history...','_updateReplyContent','_openBalloonFor','addResourceToContext','isInContext','_handleStartConversation','ai-chat-url-upload-failed','contextItems','push','stopListening','_aiChatUi','isOpen','markers','isDocumentOperation','interactionCreated','_aiConnector','has','ai-chat-controller-no-active-conversation','setSelectedModel','like','AIEditing','view','streaming','getDocumentData','loadConversation','uiId','sourcePosition','uploadProgressChanged','isOfficialPlugin','resize','activateTab','createPositionFromPath','stopInteraction','$graveyard','176067XWsEoM','toggleSuggestionDisplayMode','root','ai.chat.models.defaultModelId','getRanges','viewRangeToDom','toViewRange','toLocaleLowerCase','howMany','setConversationTitle','mapper','change','isCurrentDocumentInContext','setAddContextOptions','_showConversationHistory','isCurrentDocumentInConversation','getChild','slice','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','accepted','handleUserInteraction','init','getChildren','set','indexOf','domConverter','closeSourceResourceBalloon','toString','addFileToContext','addSelectionToChatContext','changes','_applyOperationsAsSuggestions','createConversation','_startConversationSafely','model','rejected','_toggleReasoning','parse','addContextOptionsChanged','node','interactionDestroyed','activeConversation','_flushLastInteractionUI','AI_CHAT_RESOURCE_LOAD_FAILED','forEach','addFeedItemAISuggestion','cloneNode','addSelectionToContext','getTransformedByOperation','maxOffset','addFeedInteractionHeader','resourceId','isLoading','removeFromContext','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-request-aborted','sources','applySuggestion','changeGroups','partIndex','_batchToChanges','split','replies','resetMessageInput','addUrlToContext','dislike','modelSelected','populateSourceResourceBalloon','addCurrentDocumentToContext','ai.chat.models.displayedModels','isPremiumPlugin','listenTo','addOperation','AI_BALLOON_HEADER_TITLE','removeMarker','message','updateFeedItemAIReplyContent','getPath','AIChatController','updateConversationTitle','data-id','full','editing','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_GENERIC_ERROR','ai-chat-source-resources-load-failed','availableModels','replyContentUpdated','current-document','_getDocumentRangeForReplyChanges','showDiff','ai-chat-context-invalid-data','document','TrackChangesEditing','new','showFakeVisualSelection','disableControls','showChangeInText','baseVersion','_setIsMaximized','loadSourceResources','ai-chat-controller-mouse-over','ai-chat-file-upload-failed','833360zELMRa','ai.chat.context','sendUserMessage','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','Liked\x20response','_toggleWebSearch','enableControls','startConversation','batch','replyId','commands','resizedTabs','chat','interactionId','AITabs','children','getGroupId','Undo','capabilitiesUpdated','setChangeGroupState','removeSelectionFromChatContext','version','createRange','setModel','showNext','addContextItem','clearPendingContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getDocumentContext','name','finishInteraction','updateResourceState','length','removeContextItem','from','sendMessage','2513xZfxkT','addFeedItemError','showPrevious','ai-chat-resource-load-failed','conversationInitialized','_createFromRanges','addFilesToContext','894LxqHQu','isUploadInProgress','interactionStarted','nextSibling','redo','ready','clearConversationContextUI','path','616674BVoyAF','_applySuggestion','ai-chat-context-unsupported-type','anchorId','lastInteraction','text-delta','mouseLeaveSuggestion','range','undo','rejectSuggestion','removed','contextItemRemoved','DocumentCompare','isDisabled','updateFeedItemAIReplySources','removeFeedInteraction','getReply','add','_aiChatModels','alignToTop','hideFakeVisualSelection'];_0x5ee2=function(){return _0x241673;};return _0x5ee2();}import{getEditorFromContext as _0x31f76c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2dba5c,DATA_ID_MODEL_ATTRIBUTE as _0x3e883f}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3ec244}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4f05cf,getMinimalSelection as _0x2beaca,getSuggestionPartsFromReply as _0x336ebe}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x339598,_DetachOperation as _0x1126f9}from'ckeditor5/src/engine.js';import{findOne as _0x1e4bbc,getAttribute as _0x55f24f,serialize as _0x270bc0,Document as _0x577017,findByAttribute as _0x6d3a9c}from'../aicore/utils/htmlparser.js';function _0x2912(_0x384a10,_0x5634f9){const _0x5ee29b=_0x5ee2();return _0x2912=function(_0x291204,_0x4493db){_0x291204=_0x291204-0xd8;let _0x4ff3d4=_0x5ee29b[_0x291204];return _0x4ff3d4;},_0x2912(_0x384a10,_0x5634f9);}import{IconAI as _0x2a9bc6}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3aa59e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x2da00a}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x28d851{[_0x273c8e(0x1f2)];[_0x273c8e(0xe6)];[_0x273c8e(0xe1)];[_0x273c8e(0x1a6)];[_0x273c8e(0x135)]=new Map();[_0x273c8e(0x207)]=null;[_0x273c8e(0x201)]=!0x1;static get[_0x273c8e(0x1db)](){return[_0x4052a5,_0x2da00a,_0x2dba5c];}static get[_0x273c8e(0x1df)](){const _0x4220bf=_0x273c8e;return _0x4220bf(0x147);}static get[_0x273c8e(0xf3)](){return!0x0;}static get[_0x273c8e(0x13f)](){return!0x0;}[_0x273c8e(0x10e)](){const _0x2a55bb=_0x273c8e;this[_0x2a55bb(0xe6)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1fe)),this[_0x2a55bb(0xe1)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1c4)),this[_0x2a55bb(0x1f2)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0xeb)),this[_0x2a55bb(0x1a6)]=new _0x1d306d({'connector':this[_0x2a55bb(0xe6)]});const _0xed5ed2=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x16e));this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x167),()=>{const _0x506ac0=_0x2a55bb;this[_0x506ac0(0x11a)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x162),(_0x11f215,_0x3bad6f)=>{const _0x51938c=_0x2a55bb;this[_0x51938c(0x1cf)]({'userMessage':_0x3bad6f});}),this[_0x2a55bb(0x140)](_0xed5ed2,_0x2a55bb(0x16b),(_0x47a9c9,_0x8dba0b)=>{const _0x350c62=_0x2a55bb;this[_0x350c62(0x15c)](_0x8dba0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1b4),()=>{const _0x511439=_0x2a55bb;_0xed5ed2[_0x511439(0xf4)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bc),async()=>{const _0x2ea798=_0x2a55bb;await this[_0x2ea798(0x1d6)](),await this[_0x2ea798(0x123)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1ad),()=>{const _0x4d6504=_0x2a55bb;this[_0x4d6504(0x122)]?.[_0x4d6504(0x13d)](_0x491991(this[_0x4d6504(0x205)][_0x4d6504(0x1da)],_0x4d6504(0x163)));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x115),(_0x3961fc,_0x187b59)=>{const _0x2552e6=_0x2a55bb;this[_0x2552e6(0x122)]?.[_0x2552e6(0x18b)](Array[_0x2552e6(0x183)](_0x187b59));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x139),(_0x2902ad,_0x45a5f9)=>{const _0x36a83f=_0x2a55bb;this[_0x36a83f(0x122)]?.[_0x36a83f(0x139)](_0x45a5f9);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xda),(_0x2dfb6e,_0x4c6033)=>{const _0x232118=_0x2a55bb;this[_0x232118(0x122)]?.[_0x232118(0xda)](_0x4c6033[_0x232118(0x21e)],_0x4c6033[_0x232118(0x218)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x182),(_0x113000,_0x3129d8)=>{const _0xc5bfd5=_0x2a55bb;this[_0xc5bfd5(0x1a9)](_0x3129d8);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15d),(_0x29e338,_0x24d788)=>{const _0x26eecc=_0x2a55bb;this[_0x26eecc(0x122)]?.[_0x26eecc(0x15d)](_0x24d788[_0x26eecc(0x204)],_0x24d788[_0x26eecc(0x1dd)],_0x24d788[_0x26eecc(0x1c9)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1e8),()=>{const _0x516415=_0x2a55bb;this[_0x516415(0x165)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d4),()=>{const _0x2bf808=_0x2a55bb;this[_0x2bf808(0x11d)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x20c),(_0x58d76b,_0x32a577)=>{const _0x3d58c9=_0x2a55bb;this[_0x3d58c9(0x122)]?.[_0x3d58c9(0x177)](_0x32a577);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xea),(_0x14694a,{replyId:_0x493f0b})=>{const _0x1b3d32=_0x2a55bb;console[_0x1b3d32(0x1e3)](_0x1b3d32(0x164),_0x493f0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x13a),(_0x2072ea,{replyId:_0x38f140})=>{const _0x4ac1af=_0x2a55bb;console[_0x4ac1af(0x1e3)](_0x4ac1af(0x228),_0x38f140);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bd),(_0x5b7016,_0x216a22)=>{const _0x2d89e4=_0x2a55bb;this[_0x2d89e4(0x205)][_0x2d89e4(0x1c8)][_0x2d89e4(0x1ea)](_0x2da00a)[_0x2d89e4(0x225)](),this[_0x2d89e4(0x1b6)](_0x216a22);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15a),(_0x47765e,{replyId:_0x5da275,partIndex:_0xbff341})=>{const _0x553768=_0x2a55bb;this[_0x553768(0x201)]=this[_0x553768(0xe1)][_0x553768(0x153)],this[_0x553768(0xd9)](_0x5da275,_0xbff341);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d2),(_0x4636ad,{replyId:_0x10f8b0,partIndex:_0x3c35b1})=>{const _0x528d0f=_0x2a55bb,_0x3e1948=this[_0x528d0f(0x152)](_0x10f8b0,_0x3c35b1);_0x3e1948&&_0x528d0f(0xf8)!=_0x3e1948[_0x528d0f(0x19b)][_0x528d0f(0xfb)][_0x528d0f(0x20e)]&&this[_0x528d0f(0x1f2)][_0x528d0f(0x158)]([_0x3e1948[_0x528d0f(0x19b)]],_0x528d0f(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19a),()=>{const _0x39a975=_0x2a55bb;this[_0x39a975(0x1f2)][_0x39a975(0x1a8)](_0x39a975(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x132),(_0x56a246,_0x3777ab)=>{const _0x535c25=_0x2a55bb;this[_0x535c25(0x205)][_0x535c25(0x1c8)][_0x535c25(0x1ea)](_0x2da00a)[_0x535c25(0x225)](),this[_0x535c25(0x195)](_0x3777ab);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xfa),async(_0x150b25,_0x43904f)=>{const _0x387c5b=_0x2a55bb,{reply:_0x20dff8}=this[_0x387c5b(0x202)](_0x43904f[_0x387c5b(0x169)]),_0x3eeb5d=_0x31f76c(this[_0x387c5b(0x205)]),_0x21222b=_0x336ebe({'editor':_0x3eeb5d,'changeGroups':_0x20dff8[_0x387c5b(0x133)],'documentContextContent':_0x20dff8[_0x387c5b(0x1c2)],'showDiff':_0x43904f[_0x387c5b(0x153)]});await this[_0x387c5b(0xe1)][_0x387c5b(0x1e4)]({'id':_0x20dff8['id'],'parts':_0x21222b,'renderingStrategy':_0x387c5b(0x1fb)});}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19d),(_0x5d453b,{replyId:_0xc532da,partIndex:_0x39eafe})=>{const _0x138c0e=_0x2a55bb;this[_0x138c0e(0x207)]?.[_0x138c0e(0x169)]==_0xc532da&&this[_0x138c0e(0x207)]?.[_0x138c0e(0x134)]==_0x39eafe&&this[_0x138c0e(0x205)][_0x138c0e(0x1c8)][_0x138c0e(0x1ea)](_0x2da00a)[_0x138c0e(0x225)]();const {reply:_0x5a67c7}=this[_0x138c0e(0x202)](_0xc532da);_0x5a67c7[_0x138c0e(0x173)](_0x39eafe,_0x138c0e(0x11c)),this[_0x138c0e(0x1f2)][_0x138c0e(0x1a8)](_0x138c0e(0x15e));});}async[_0x273c8e(0x212)](){const _0x4e5403=_0x273c8e;this[_0x4e5403(0x205)]instanceof _0x1a849b?this[_0x4e5403(0x1ef)](this[_0x4e5403(0x205)]):this[_0x4e5403(0x140)](this[_0x4e5403(0x205)][_0x4e5403(0x21c)],_0x4e5403(0x1a5),(_0x3e3fb6,_0x4daf4b)=>{const _0x31ba3b=_0x4e5403;_0x4daf4b['on'](_0x31ba3b(0x191),()=>{const _0x3b6edc=_0x31ba3b;this[_0x3b6edc(0x1ef)](_0x4daf4b);});}),await this[_0x4e5403(0x11a)]();}[_0x273c8e(0x1b6)](_0x18e903){const _0x2ab21c=_0x273c8e,_0x3e9024=_0x31f76c(this[_0x2ab21c(0x205)]);if(!_0x3e9024[_0x2ab21c(0x1c8)][_0x2ab21c(0xe7)](_0x2ab21c(0x156)))return;const _0x860b8a=this[_0x2ab21c(0x205)][_0x2ab21c(0x1c8)][_0x2ab21c(0x1ea)](_0x2ab21c(0x1a0)),{reply:_0x54047e,interaction:_0x216817}=this[_0x2ab21c(0x202)](_0x18e903[_0x2ab21c(0x169)]),_0x2dfa3e=this[_0x2ab21c(0x152)](_0x18e903[_0x2ab21c(0x169)],_0x18e903[_0x2ab21c(0x134)]),_0x43cc50=void 0x0!==_0x18e903[_0x2ab21c(0x134)]?[_0x54047e[_0x2ab21c(0x133)][_0x18e903[_0x2ab21c(0x134)]]]:_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x1f3)](_0x17292d=>_0x2ab21c(0x21b)==_0x17292d[_0x2ab21c(0x1f8)]),_0x26dc61=_0x43cc50[_0x2ab21c(0x1ae)](_0x5f1da3=>_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x111)](_0x5f1da3));_0x26dc61[_0x2ab21c(0x125)](_0x4927e8=>_0x54047e[_0x2ab21c(0x173)](_0x4927e8,_0x2ab21c(0x10c)));const _0x15751e=_0x3ec244({'editor':_0x3e9024,'reply':_0x54047e,'interaction':_0x216817,'groups':_0x43cc50,'transform':!0x0,'documentCompare':_0x860b8a,'documentCompareOptions':{'anchor':_0x2ab21c(0x1be),'markDeletions':!0x0}});let _0x411eb1;_0x2dfa3e&&this[_0x2ab21c(0x1f0)](_0x2dfa3e[_0x2ab21c(0x19b)]),_0x3e9024[_0x2ab21c(0x11b)][_0x2ab21c(0x104)](_0x3bc528=>{const _0x4d803e=_0x2ab21c;_0x411eb1=_0x3bc528[_0x4d803e(0x168)],_0x3e9024[_0x4d803e(0x1c8)][_0x4d803e(0x1ea)](_0x4d803e(0x156))[_0x4d803e(0x118)](_0x15751e),this[_0x4d803e(0x1f2)][_0x4d803e(0x1a8)](_0x4d803e(0x15e));}),this[_0x2ab21c(0x135)][_0x2ab21c(0x110)](_0x411eb1,{'interactionId':_0x216817['id'],'replyId':_0x54047e['id'],'indexes':_0x26dc61[_0x2ab21c(0x10a)]()});}[_0x273c8e(0x195)](_0x1c35fb){const _0x1b11e7=_0x273c8e,_0x2a4b4e=_0x31f76c(this[_0x1b11e7(0x205)]),_0xa2dc40=this[_0x1b11e7(0x205)][_0x1b11e7(0x1c8)][_0x1b11e7(0x1ea)](_0x2dba5c),{reply:_0x5ca3cb,interaction:_0x3a0176}=this[_0x1b11e7(0x202)](_0x1c35fb[_0x1b11e7(0x169)]),_0x43ae21=this[_0x1b11e7(0x152)](_0x1c35fb[_0x1b11e7(0x169)],_0x1c35fb[_0x1b11e7(0x134)]),_0x2194ec=void 0x0!==_0x1c35fb[_0x1b11e7(0x134)]?[_0x5ca3cb[_0x1b11e7(0x133)][_0x1c35fb[_0x1b11e7(0x134)]]]:_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x1f3)](_0x32375d=>_0x1b11e7(0x21b)==_0x32375d[_0x1b11e7(0x1f8)]),_0x40e59e=_0x2194ec[_0x1b11e7(0x1ae)](_0x1e540d=>_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x111)](_0x1e540d));_0x40e59e[_0x1b11e7(0x125)](_0x9a4a6e=>_0x5ca3cb[_0x1b11e7(0x173)](_0x9a4a6e,_0x1b11e7(0x10c)));const _0x3a7e58=_0x3ec244({'editor':_0x2a4b4e,'reply':_0x5ca3cb,'interaction':_0x3a0176,'groups':_0x2194ec,'transform':!0x0,'documentCompare':_0xa2dc40,'documentCompareOptions':{'anchor':_0x1b11e7(0x1be),'markDeletions':!0x1}});let _0x46818d;_0x43ae21&&this[_0x1b11e7(0x1f0)](_0x43ae21[_0x1b11e7(0x19b)]),_0x2a4b4e[_0x1b11e7(0x11b)][_0x1b11e7(0x104)](_0x2534a4=>{const _0x2a0f80=_0x1b11e7;_0x46818d=_0x2534a4[_0x2a0f80(0x168)];for(const _0x352bd9 of _0x3a7e58)_0x352bd9[_0x2a0f80(0x15b)]=_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x155)][_0x2a0f80(0x175)],_0x2534a4[_0x2a0f80(0x168)][_0x2a0f80(0x141)](_0x352bd9),_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x21d)](_0x352bd9);}),this[_0x1b11e7(0x135)][_0x1b11e7(0x110)](_0x46818d,{'interactionId':_0x3a0176['id'],'replyId':_0x5ca3cb['id'],'indexes':_0x40e59e[_0x1b11e7(0x10a)]()});}[_0x273c8e(0xd9)](_0x2616c4,_0x4b8c92){const _0x254181=_0x273c8e,_0x6114aa=_0x31f76c(this[_0x254181(0x205)]),_0x336ede=this[_0x254181(0x152)](_0x2616c4,_0x4b8c92),_0xaa6740=this[_0x254181(0x205)][_0x254181(0x1c8)][_0x254181(0x1ea)](_0x2da00a);if(!_0x336ede)return void _0xaa6740[_0x254181(0x225)]();const {range:_0x4c713a,currentIndex:_0x2ed491,previousIndex:_0x54e42c,nextIndex:_0x363179}=_0x336ede;if(this[_0x254181(0x207)]?.[_0x254181(0x169)]==_0x2616c4&&this[_0x254181(0x207)]?.[_0x254181(0x134)]==_0x2ed491)return;this[_0x254181(0x207)]={'replyId':_0x2616c4,'partIndex':_0x2ed491};const _0x124381=new _0x3aa59e(_0x6114aa[_0x254181(0x1da)],{'showDiff':this[_0x254181(0x201)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x254181(0x14a)},'hideHeader':!0x0}),{reply:_0x2a580a}=this[_0x254181(0x202)](_0x2616c4),_0x51dbef=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0x2a580a[_0x254181(0x133)][_0x2ed491]],'documentContextContent':_0x2a580a[_0x254181(0x1c2)],'showDiff':this[_0x254181(0x201)]});_0x124381[_0x254181(0x1ca)]({'parts':_0x51dbef,'renderingStrategy':_0x254181(0x1fb)});const _0x1d6b3b=_0x2ed491!==_0x54e42c;this[_0x254181(0x1f0)](_0x4c713a,!0x0),_0xaa6740[_0x254181(0x1ee)]({'index':_0x2ed491,'title':_0x491991(this[_0x254181(0x205)][_0x254181(0x1da)],_0x254181(0x142),(_0x2ed491+0x1)[_0x254181(0x114)]()),'icon':_0x2a9bc6,'mainView':_0x124381,'showRotator':_0x1d6b3b,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c713a]}),this[_0x254181(0xe1)][_0x254181(0x220)](_0x2616c4,_0x2ed491),this[_0x254181(0x140)](_0x124381,_0x254181(0xfa),(_0x5d0c93,{showDiff:_0x1c168b})=>{const _0x42d14c=_0x254181;this[_0x42d14c(0x201)]=_0x1c168b;const {reply:_0xb18125}=this[_0x42d14c(0x202)](_0x2616c4),_0xb6af3b=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0xb18125[_0x42d14c(0x133)][_0x2ed491]],'documentContextContent':_0xb18125[_0x42d14c(0x1c2)],'showDiff':_0x1c168b});_0x124381[_0x42d14c(0x1ca)]({'parts':_0xb6af3b,'renderingStrategy':_0x42d14c(0x1fb)});}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x132),()=>{const _0x1aa108=_0x254181;this[_0x1aa108(0x195)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x1aa108(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x1aa108(0x225)]();}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x1bd),()=>{const _0x3522fd=_0x254181;this[_0x3522fd(0x1b6)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x3522fd(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x3522fd(0x225)]();}),_0x1d6b3b&&(this[_0x254181(0x140)](_0xaa6740,_0x254181(0x178),()=>{const _0x2c0c84=_0x254181;this[_0x2c0c84(0xd9)](_0x2616c4,_0x363179);}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x187),()=>{const _0x460da4=_0x254181;this[_0x460da4(0xd9)](_0x2616c4,_0x54e42c);})),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x210),()=>{const _0x221a81=_0x254181;this[_0x221a81(0xe0)](_0xaa6740),this[_0x221a81(0xe0)](_0x124381),this[_0x221a81(0x207)]=null;});}[_0x273c8e(0x152)](_0x2b8be0,_0x5eeb03){const _0x373a1b=_0x273c8e,_0x333b5b=_0x31f76c(this[_0x373a1b(0x205)]),{reply:_0x4a3587,interaction:_0x32c0a4}=this[_0x373a1b(0x202)](_0x2b8be0),_0x5e97a6=_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x1f3)](_0x216753=>_0x373a1b(0x21b)==_0x216753[_0x373a1b(0x1f8)]),_0x3bca4e=_0x5e97a6[_0x373a1b(0x1ae)](_0x15721b=>_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x111)](_0x15721b));void 0x0===_0x5eeb03&&(_0x5eeb03=_0x3bca4e[0x0]);const _0x10d853=_0x3bca4e[_0x373a1b(0x111)](_0x5eeb03);if(-0x1==_0x10d853)return null;const _0x238c42=0x0==_0x10d853?_0x3bca4e[_0x3bca4e[_0x373a1b(0x181)]-0x1]:_0x3bca4e[_0x10d853-0x1],_0x31189c=_0x10d853==_0x3bca4e[_0x373a1b(0x181)]-0x1?_0x3bca4e[0x0]:_0x3bca4e[_0x10d853+0x1],_0x356468=_0x5e97a6[_0x10d853],_0x1e7f33=new _0x577017([]),_0x4aeff3=new _0x577017([]);for(const _0x2ecab0 of _0x356468[_0x373a1b(0x117)])if(_0x373a1b(0x19e)!=_0x2ecab0[_0x373a1b(0x1b2)]&&_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x2ecab0[_0x373a1b(0x120)][_0x373a1b(0x127)](!0x0)),_0x373a1b(0x157)!=_0x2ecab0[_0x373a1b(0x1b2)]){const _0x493535=_0x1e4bbc(_0x4eb73a=>_0x55f24f(_0x4eb73a,_0x373a1b(0x149))==_0x2ecab0['id'],_0x4a3587[_0x373a1b(0x1c2)],!0x0);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x493535[_0x373a1b(0x127)](!0x0));}if(0x0==_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x181)]){if(_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)]){const _0x15c23c=_0x6d3a9c(_0x373a1b(0x149),_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)],_0x4a3587[_0x373a1b(0x1c2)]);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x15c23c[_0x373a1b(0x18f)]&&(_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)));}else{const _0x41778c=_0x4a3587[_0x373a1b(0x1c2)][_0x373a1b(0x16f)][0x0];if(!_0x41778c)return null;_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0));}}const _0x2d324a=_0x32c0a4[_0x373a1b(0x17d)](),_0x55789a=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x2d324a[_0x373a1b(0x1b5)]),_0x158b2f=_0x270bc0(_0x1e7f33),_0x29bbd5=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x249935=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x4b6516=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x1e2)](_0x29bbd5,0x0),_0x408b8a=_0x270bc0(_0x4aeff3),_0x1a9c6d={'anchor':_0x4b6516,'markDeletions':!0x1},_0x597f4d=_0x333b5b[_0x373a1b(0x1c8)][_0x373a1b(0x1ea)](_0x2dba5c)[_0x373a1b(0x215)](_0x158b2f,_0x408b8a,_0x1a9c6d)[_0x373a1b(0x1cb)]();if(!_0x597f4d[_0x373a1b(0x181)])return null;_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x104)](_0x35ff6d=>{const _0x1383d9=_0x373a1b;for(const _0x4de4a7 of _0x597f4d)if(_0x1383d9(0x1b7)==_0x4de4a7[_0x1383d9(0x1b2)]){const _0x7dd134=_0x4de4a7[_0x1383d9(0xf1)],_0x3f088b=_0x4de4a7[_0x1383d9(0x101)],_0x55c717=new _0x1126f9(_0x7dd134,_0x3f088b);_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x55c717),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x55c717);}else _0x4de4a7[_0x1383d9(0x15b)]=null,_0x4de4a7[_0x1383d9(0xe4)]=!0x1,_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x4de4a7),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x4de4a7);});const _0x5e14f0=_0x2beaca(_0x333b5b,_0x597f4d,_0x29bbd5);_0x4f05cf(_0x333b5b[_0x373a1b(0x11b)],_0x5e14f0);const _0x5a2af8=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x3dfb0d=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x5363fc=[];let _0x5aef92=_0x29bbd5,_0x33a333=_0x249935;for(let _0x232f72=0x0;_0x232f72<_0x3dfb0d[_0x373a1b(0x181)];_0x232f72++){const _0x43c019=_0x5aef92[_0x373a1b(0x12a)]-_0x3dfb0d[_0x232f72];_0x5363fc[_0x232f72]=_0x33a333[_0x373a1b(0x12a)]-_0x43c019,_0x5aef92=_0x5aef92[_0x373a1b(0x1dc)](_0x3dfb0d[_0x232f72]),_0x33a333=_0x33a333[_0x373a1b(0x1dc)](_0x5363fc[_0x232f72]);}const _0x1be9ba=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5a2af8),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5363fc)),_0x48b042=_0x249935[_0x373a1b(0x109)](0x0)[_0x373a1b(0x209)](_0x3e883f),_0x22bd76=Array[_0x373a1b(0x183)](_0x55789a[_0x373a1b(0x10f)]())[_0x373a1b(0x1c0)](_0x2c38c7=>_0x2c38c7[_0x373a1b(0x209)](_0x3e883f)==_0x48b042)[_0x373a1b(0x146)](),_0x4b1593=_0x1be9ba[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x4bc961=_0x1be9ba[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)]();_0x4b1593[0x0]=_0x22bd76[0x0]+_0x4b1593[0x0],_0x4bc961[0x0]=_0x22bd76[0x0]+_0x4bc961[0x0];let _0x4f8483=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4b1593),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4bc961));const _0x56aeaa=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x1ab)][_0x373a1b(0x1cb)](_0x2d324a[_0x373a1b(0x175)]);for(const _0x33bc97 of _0x56aeaa)_0x4f8483=_0x339598[_0x373a1b(0x18a)](_0x4f8483[_0x373a1b(0x129)](_0x33bc97));return{'range':_0x4f8483,'previousIndex':_0x238c42,'nextIndex':_0x31189c,'currentIndex':_0x5eeb03};}[_0x273c8e(0x1ef)](_0x41569b){const _0x446fe3=_0x273c8e;if(!_0x41569b[_0x446fe3(0x1c8)][_0x446fe3(0xe7)](_0x446fe3(0x171)))return;const _0x3fbf3e=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x19c)),_0x3648e6=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x190));this[_0x446fe3(0x140)](_0x3fbf3e,_0x446fe3(0x1b1),(_0x581b8d,_0x48a6fb,_0x456b3e)=>{const _0x9fa3a5=_0x446fe3,_0x31b27d=this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ea)](_0x48a6fb);if(!_0x31b27d)return;const _0xd174f0=this[_0x9fa3a5(0x122)][_0x9fa3a5(0x1f6)](_0x31b27d[_0x9fa3a5(0x16d)])[_0x9fa3a5(0x1a4)](_0x31b27d[_0x9fa3a5(0x169)]);_0x31b27d[_0x9fa3a5(0x1b0)][_0x9fa3a5(0x125)](_0x22607e=>_0xd174f0[_0x9fa3a5(0x173)](_0x22607e,_0x9fa3a5(0x21b))),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ec)](_0x48a6fb),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x110)](_0x456b3e,_0x31b27d);}),this[_0x446fe3(0x140)](_0x3648e6,_0x446fe3(0x1b1),(_0x22fa09,_0x16ca92,_0x207f2f)=>{const _0x2bb2bd=_0x446fe3,_0x594f3b=this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ea)](_0x16ca92);if(!_0x594f3b)return;const _0x20352e=this[_0x2bb2bd(0x122)][_0x2bb2bd(0x1f6)](_0x594f3b[_0x2bb2bd(0x16d)])[_0x2bb2bd(0x1a4)](_0x594f3b[_0x2bb2bd(0x169)]);_0x594f3b[_0x2bb2bd(0x1b0)][_0x2bb2bd(0x125)](_0x151493=>_0x20352e[_0x2bb2bd(0x173)](_0x151493,_0x2bb2bd(0x10c))),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ec)](_0x16ca92),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x110)](_0x207f2f,_0x594f3b);});}async[_0x273c8e(0xef)](_0x35bd76){const _0x38479e=_0x273c8e;this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x2da00a)[_0x38479e(0x225)](),this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0x1fb)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x0),await this[_0x38479e(0x1d6)]();try{const _0x2f15d1=this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x3be4cf);this[_0x38479e(0x148)]('\x20'),_0x2f15d1[_0x38479e(0xec)][_0x38479e(0xf5)](_0x38479e(0x16c)),await this[_0x38479e(0x11a)](_0x35bd76);const {sessionId:_0x4b0116}=this[_0x38479e(0x1f2)][_0x38479e(0xee)]();await this[_0x38479e(0x122)][_0x38479e(0x1d0)](_0x35bd76,_0x4b0116),this[_0x38479e(0x122)][_0x38479e(0x108)]()&&this[_0x38479e(0x122)][_0x38479e(0x13d)](_0x491991(this[_0x38479e(0x205)][_0x38479e(0x1da)],_0x38479e(0x163)));}catch(_0x40eb33){console[_0x38479e(0x1c7)](_0x38479e(0x1aa),_0x40eb33);}finally{this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0xed)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x1);}}[_0x273c8e(0x224)](_0x10ed0c){const _0xba3a93=_0x273c8e;this[_0xba3a93(0x122)]['id']===_0x10ed0c&&this[_0xba3a93(0x11a)]();}async[_0x273c8e(0x116)](){const _0x7a646=_0x273c8e,_0x3ce82d=this[_0x7a646(0x1f2)][_0x7a646(0x222)]();this[_0x7a646(0x122)]?.[_0x7a646(0x128)](_0x3ce82d),this[_0x7a646(0x122)]?.[_0x7a646(0x13d)](_0x491991(this[_0x7a646(0x205)][_0x7a646(0x1da)],_0x7a646(0x163)));}[_0x273c8e(0x174)](){const _0x35281e=_0x273c8e;this[_0x35281e(0x122)]?.[_0x35281e(0x1c1)]();}[_0x273c8e(0x1b8)](){const _0x521198=_0x273c8e;this[_0x521198(0xe1)][_0x521198(0x1b8)]();}async[_0x273c8e(0x167)](){const _0x2e9154=_0x273c8e;await this[_0x2e9154(0x11a)]();}async[_0x273c8e(0x184)]({message:_0x10d297,quickActionData:_0x450245}){const _0x1d2a07=_0x273c8e;await this[_0x1d2a07(0x1cf)]({'userMessage':_0x10d297,'quickActionData':_0x450245});}[_0x273c8e(0x170)](){const _0x25de17=_0x273c8e,_0x208850=this[_0x25de17(0x205)][_0x25de17(0x1c3)][_0x25de17(0x1ea)](_0x25de17(0x1bf));if(!_0x208850)throw new _0x327deb(_0x25de17(0x1ff),this);return _0x208850;}async[_0x273c8e(0x11a)](_0x29be41){const _0xc964fa=_0x273c8e;try{this[_0xc964fa(0xe1)][_0xc964fa(0x166)](),await this[_0xc964fa(0xdc)](_0x29be41);}catch(_0x163796){_0x155630(_0xc964fa(0x1ce),_0x163796),this[_0xc964fa(0x122)]=void 0x0,this[_0xc964fa(0xe1)][_0xc964fa(0x159)]();}}async[_0x273c8e(0xdc)](_0x23a54f){const _0x31fb88=_0x273c8e,_0x227529=this[_0x31fb88(0x205)][_0x31fb88(0x1c8)][_0x31fb88(0x1ea)](_0x2da00a);let _0x3cf8ed;_0x227529[_0x31fb88(0xe2)]&&_0x227529[_0x31fb88(0x225)](),_0x3cf8ed=_0x23a54f||!this[_0x31fb88(0x122)]?this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0xfc)):this[_0x31fb88(0x122)][_0x31fb88(0x1cd)]['id'],await this[_0x31fb88(0x1d6)]();const _0x37488a=this[_0x31fb88(0x170)](),_0x743a20=_0x23a54f||_0x4d67a7();this[_0x31fb88(0x122)]=new _0x4dd354({'connector':this[_0x31fb88(0xe6)],'chatModels':this[_0x31fb88(0x1a6)],'defaultModelId':_0x3cf8ed,'conversationId':_0x743a20,'group':_0x37488a,'getEditor':()=>_0x31f76c(this[_0x31fb88(0x205)])}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x189),(_0x15456e,_0x39dbfd)=>{const _0x5cfd2a=_0x31fb88;_0x39dbfd[_0x5cfd2a(0x14f)]=this[_0x5cfd2a(0x1d9)](_0x39dbfd[_0x5cfd2a(0x14f)],this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1c3)][_0x5cfd2a(0x1ea)](_0x5cfd2a(0x13e))),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x119)](_0x39dbfd),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x138)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x17a)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x192)](),_0x23a54f||(this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x223)](),this[_0x5cfd2a(0x122)]?.[_0x5cfd2a(0x13d)](_0x491991(this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1da)],_0x5cfd2a(0x163))));}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xf2),(_0x3009fb,_0x331545)=>{const _0x2e0d76=_0x31fb88;this[_0x2e0d76(0xe1)][_0x2e0d76(0x1d1)](_0x331545[_0x2e0d76(0x18d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xe5),(_0x5bac39,_0x243116)=>{const _0x36235b=_0x31fb88;this[_0x36235b(0xe1)][_0x36235b(0x1fa)](_0x243116),this[_0x36235b(0xe1)][_0x36235b(0x12b)](_0x243116);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x18e),(_0x188c49,_0x1d3471)=>{const _0x11741d=_0x31fb88;this[_0x11741d(0xe1)][_0x11741d(0x20a)](_0x1d3471);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1d7),async()=>{const _0x2bf9a2=_0x31fb88;await this[_0x2bf9a2(0xe1)][_0x2bf9a2(0x17f)]();}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x121),(_0x599d45,_0x38c8f0)=>{const _0x27c90d=_0x31fb88;this[_0x27c90d(0xe1)][_0x27c90d(0x1a3)](_0x38c8f0['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x102),(_0x2a6800,_0x3fbcfb,_0x28f82c)=>{const _0x5a6f5c=_0x31fb88;this[_0x5a6f5c(0x148)](_0x3fbcfb,_0x28f82c);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x21a),(_0x5de25d,_0x493e60)=>{const _0x5ecd50=_0x31fb88;this[_0x5ecd50(0xe1)][_0x5ecd50(0x21f)]({'isVisible':!0x0,'id':_0x493e60[_0x5ecd50(0x16d)]}),_0x5ecd50(0x199)===_0x493e60[_0x5ecd50(0x1b2)]?this[_0x5ecd50(0xe1)][_0x5ecd50(0x1e0)](_0x493e60):this[_0x5ecd50(0xe1)][_0x5ecd50(0x126)](_0x493e60);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x150),async(_0x54d824,_0x35ccd7,_0x4ef157)=>{const _0x403c88=_0x31fb88;await this[_0x403c88(0xd8)]({'reply':_0x35ccd7,'changeGroups':_0x4ef157});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e5),(_0x4676df,{reply:_0xcf8d8c,index:_0x4b0d71,state:_0x49249b})=>{const _0x5a0f38=_0x31fb88;this[_0x5a0f38(0xe1)][_0x5a0f38(0x17c)]({'id':_0xcf8d8c['id'],'index':_0x4b0d71,'state':_0x49249b});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1ba),(_0x16369e,_0x1ffe37)=>{const _0x10196a=_0x31fb88;if(this[_0x10196a(0xe1)][_0x10196a(0x179)](_0x1ffe37[_0x10196a(0x208)],_0x1ffe37[_0x10196a(0x12d)]),_0x10196a(0x1f5)===_0x1ffe37[_0x10196a(0x208)][_0x10196a(0x1b2)]){const _0x2485b4=[..._0x31f76c(this[_0x10196a(0x205)])[_0x10196a(0x11b)][_0x10196a(0x155)][_0x10196a(0x1f5)][_0x10196a(0xfd)]()];this[_0x10196a(0x1f2)][_0x10196a(0x158)](_0x2485b4,_0x10196a(0x20b)+this[_0x10196a(0x122)]?.['id']);}}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x19f),(_0x3c596a,_0x314afb)=>{const _0x50e4b0=_0x31fb88;this[_0x50e4b0(0xe1)][_0x50e4b0(0x182)](_0x314afb[_0x50e4b0(0xf0)]),_0x50e4b0(0x151)==_0x314afb[_0x50e4b0(0xf0)]&&this[_0x50e4b0(0x174)](),_0x50e4b0(0x1f5)===_0x314afb[_0x50e4b0(0x1b2)]&&this[_0x50e4b0(0x1f2)][_0x50e4b0(0x1a8)](_0x50e4b0(0x20b)+this[_0x50e4b0(0x122)]?.['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e9),(_0x5c625c,_0x456d7e)=>{const _0x5733b1=_0x31fb88;this[_0x5733b1(0xe1)][_0x5733b1(0x1fc)](_0x456d7e[_0x5733b1(0x208)][_0x5733b1(0xf0)],_0x456d7e[_0x5733b1(0x12d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x213),(_0x57925b,_0x154da5)=>{const _0xbac571=_0x31fb88;this[_0xbac571(0xe1)][_0xbac571(0x226)](_0x154da5[_0xbac571(0xde)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x11f),(_0xb81696,_0x116239)=>{const _0x53b4bc=_0x31fb88;this[_0x53b4bc(0xe1)][_0x53b4bc(0x106)](_0x116239[_0x53b4bc(0x221)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1de),(_0x15a3f9,_0x2a10b4)=>{const _0x4dd68d=_0x31fb88;this[_0x4dd68d(0xe1)][_0x4dd68d(0x13c)](_0x2a10b4[_0x4dd68d(0x204)],_0x2a10b4[_0x4dd68d(0x21e)],_0x2a10b4[_0x4dd68d(0x1fd)],_0x2a10b4[_0x4dd68d(0x1c9)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1cc),(_0x52eda6,_0x432837)=>{const _0x22cad3=_0x31fb88;this[_0x22cad3(0xe1)][_0x22cad3(0x180)](_0x432837[_0x22cad3(0x204)],_0x432837[_0x22cad3(0x12c)],_0x432837[_0x22cad3(0xdb)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x172),(_0x3e1c53,_0x2212d9)=>{const _0x4dcd32=_0x31fb88;this[_0x4dcd32(0xe1)][_0x4dcd32(0x1f9)](_0x2212d9);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x13b),(_0x45e665,_0x5263b4)=>{const _0x2ae979=_0x31fb88;this[_0x2ae979(0xe1)][_0x2ae979(0xe9)](_0x5263b4[_0x2ae979(0x1cd)],_0x5263b4[_0x2ae979(0x1a1)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1c7),(_0xb8dfed,{error:_0x17225b,interactionId:_0x35112e,fileName:_0x4cbd82,url:_0x51a0d3,sourceId:_0x1ce1dc,sourceLabel:_0xdf792})=>{const _0x12169e=_0x31fb88,_0x5f33d8=_0x35112e?_0x35112e+':'+_0x4d67a7():_0x4d67a7();_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x130))?this[_0x12169e(0xe1)][_0x12169e(0x1bb)]({'staticMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14c)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1c6))||_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1ce))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1d3)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x15f))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x17b),_0x4cbd82),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0xdd))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1f7),_0x51a0d3),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x154))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x229)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x196))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x12f)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x14e))?(_0x1ce1dc&&this[_0x12169e(0xe1)][_0x12169e(0x113)](_0x1ce1dc),this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x10b),_0xdf792||_0x12169e(0x21e)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x188))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x124)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14d)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b));}),await this[_0x31fb88(0x122)][_0x31fb88(0x10e)](this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0x161))),_0x23a54f||await this[_0x31fb88(0x122)][_0x31fb88(0x214)]();}async[_0x273c8e(0x1cf)]({userMessage:_0x547bb6,quickActionData:_0x575edf}){const _0x551d63=_0x273c8e;if(!this[_0x551d63(0x122)])throw new _0x327deb(_0x551d63(0xe8));this[_0x551d63(0x122)][_0x551d63(0x105)]()&&await this[_0x551d63(0x122)][_0x551d63(0x211)](this[_0x551d63(0x1f2)][_0x551d63(0xee)]()),this[_0x551d63(0x122)]['id']&&this[_0x551d63(0x122)][_0x551d63(0x1e7)]&&await this[_0x551d63(0x122)][_0x551d63(0x10d)]({'userMessage':_0x547bb6,'quickActionData':_0x575edf}),this[_0x551d63(0x200)]();}[_0x273c8e(0x200)](){const _0xf70fc7=_0x273c8e,_0x19c997=_0x31f76c(this[_0xf70fc7(0x205)])[_0xf70fc7(0x11b)],_0x2ed042=Array[_0xf70fc7(0x183)](_0x19c997[_0xf70fc7(0xe3)][_0xf70fc7(0x1f1)](_0x28ce8a));_0x19c997[_0xf70fc7(0x104)](_0x1bc9aa=>{const _0x5e69c4=_0xf70fc7;_0x2ed042[_0x5e69c4(0x125)](_0x4322c5=>_0x1bc9aa[_0x5e69c4(0x143)](_0x4322c5));});}[_0x273c8e(0x107)](){const _0x1f1718=_0x273c8e;console[_0x1f1718(0x1e3)](_0x1f1718(0x22a));}[_0x273c8e(0x15c)](_0x2bad3c){const _0x5d2007=_0x273c8e;this[_0x5d2007(0xe1)][_0x5d2007(0x206)](_0x2bad3c);}[_0x273c8e(0x1f4)](_0x325dfb){const _0x21e194=_0x273c8e;_0x155630(_0x325dfb[_0x21e194(0x144)]);}[_0x273c8e(0x1a9)](_0x458b7a){const _0x2db30f=_0x273c8e;this[_0x2db30f(0x122)]?.[_0x2db30f(0x12e)](_0x458b7a);}[_0x273c8e(0x165)](){const _0x255c88=_0x273c8e;this[_0x255c88(0x122)]?.[_0x255c88(0x1e8)]();}[_0x273c8e(0x11d)](){const _0x3e495d=_0x273c8e;this[_0x3e495d(0x122)]?.[_0x3e495d(0x1d4)]();}[_0x273c8e(0x202)](_0xc9dcb6){const _0x3293c4=_0x273c8e,[_0x2087f9,_0x106ca7]=_0xc9dcb6[_0x3293c4(0x136)](':'),_0x27b0fc=this[_0x3293c4(0x122)][_0x3293c4(0x1f6)](_0x2087f9),_0x1ca0b9=_0x27b0fc[_0x3293c4(0x1a4)](_0x106ca7);return{'interaction':_0x27b0fc,'reply':_0x1ca0b9};}[_0x273c8e(0x1f0)](_0x44034d,_0x3e775d=!0x1){const _0x2270e0=_0x273c8e,_0x3ed4db=_0x31f76c(this[_0x2270e0(0x205)]),_0x530e48={'target':_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0xec)][_0x2270e0(0x112)][_0x2270e0(0xfe)](_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0x103)][_0x2270e0(0xff)](_0x44034d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3e775d};_0x3e775d&&(_0x530e48[_0x2270e0(0x1a7)]=!0x0),_0x2ac7e7(_0x530e48);}[_0x273c8e(0x148)](_0x50025e,_0x1cb87e=!0x1){const _0x235e03=_0x273c8e;this[_0x235e03(0xe1)][_0x235e03(0x102)](_0x50025e||_0x491991(this[_0x235e03(0x205)][_0x235e03(0x1da)],_0x235e03(0x1d8)),_0x1cb87e);}[_0x273c8e(0x1d9)](_0x3a337b,_0x1a70a2){const _0x23bd7b=_0x273c8e;let _0x5ba0a8;if(_0x1a70a2){_0x5ba0a8=[];const _0x59c9b4=_0x23bd7b(0x227)==typeof _0x1a70a2?[_0x1a70a2[_0x23bd7b(0x100)]()]:_0x1a70a2[_0x23bd7b(0x1ae)](_0x32dcfe=>_0x32dcfe[_0x23bd7b(0x100)]());for(const _0x2fc94a of _0x59c9b4)for(const _0x2d99b0 of _0x3a337b)(_0x2d99b0['id'][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x17e)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x1b9)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0['id'][_0x23bd7b(0x100)]()[_0x23bd7b(0x1e1)](_0x2fc94a))&&_0x5ba0a8[_0x23bd7b(0xdf)](_0x2d99b0);}else _0x5ba0a8=_0x3a337b;return _0x5ba0a8;}async[_0x273c8e(0xd8)]({reply:_0x3322e7,changeGroups:_0x5a956d,renderingStrategy:_0x20d5c8}){const _0x124b1f=_0x273c8e,{id:_0x594fc2,isDone:_0x5ea712,type:_0x4ec032,parsedContent:_0x35449e}=_0x3322e7;if(_0x124b1f(0x1d5)===_0x4ec032){const _0x2a9818=_0x31f76c(this[_0x124b1f(0x205)]),_0x5c4602=_0x336ebe({'editor':_0x2a9818,'showDiff':this[_0x124b1f(0xe1)][_0x124b1f(0x153)],'changeGroups':_0x5a956d,'documentContextContent':_0x3322e7[_0x124b1f(0x1c2)]});await this[_0x124b1f(0xe1)][_0x124b1f(0x1e4)]({'id':_0x594fc2,'parts':_0x5c4602,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});}else _0x124b1f(0x199)===_0x4ec032&&await this[_0x124b1f(0xe1)][_0x124b1f(0x145)]({'id':_0x594fc2,'parsedContent':_0x35449e,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});_0x5ea712&&_0x3322e7[_0x124b1f(0x131)][_0x124b1f(0x181)]>0x0&&this[_0x124b1f(0xe1)][_0x124b1f(0x1a2)](_0x594fc2,_0x3322e7[_0x124b1f(0x131)]);}async[_0x273c8e(0x1d6)](){const _0x2e96fc=_0x273c8e,_0x6422ab=this[_0x2e96fc(0x122)]?.[_0x2e96fc(0x198)];_0x6422ab&&(_0x6422ab[_0x2e96fc(0x203)](),this[_0x2e96fc(0xe1)][_0x2e96fc(0xf7)](_0x6422ab));}async[_0x273c8e(0x123)](){const _0x371213=_0x273c8e,_0x4ff03a=this[_0x371213(0x122)]?.[_0x371213(0x198)];if(_0x4ff03a){for await(const _0x4b373c of _0x4ff03a[_0x371213(0x137)])await this[_0x371213(0xd8)]({'reply':_0x4b373c,'changeGroups':_0x4b373c[_0x371213(0x133)],'renderingStrategy':_0x371213(0x1fb)});}}}
@@ -212,6 +212,8 @@ export declare class AIChatUI extends ContextPlugin {
212
212
  closeSourceResourceBalloon(sourceId: string): void;
213
213
  focusPromptInput(): void;
214
214
  scrollFeedToSuggestion(replyId: string, partIndex: number): void;
215
+ disableControls(): void;
216
+ enableControls(): void;
215
217
  }
216
218
  /**
217
219
  * An event fired when the user starts a new conversation.