@ckeditor/ckeditor5-ai 47.6.1 → 47.6.2-alpha.1

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 (324) hide show
  1. package/LICENSE.md +0 -4
  2. package/build/ai.js +2 -1
  3. package/dist/index.js +5 -5
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/lang/contexts.json +1 -0
  151. package/package.json +15 -16
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.d.ts +15 -156
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.d.ts +2 -0
  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/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatballoon.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/ui/aichatballoonview.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  213. package/src/aichat/utils/eventnames.js +1 -1
  214. package/src/aichat/utils/promisequeue.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  225. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  226. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  227. package/src/aicore/aiconnector.js +1 -1
  228. package/src/aicore/aiediting.js +1 -1
  229. package/src/aicore/model/aicapabilities.js +1 -1
  230. package/src/aicore/model/aicontext.js +1 -1
  231. package/src/aicore/model/aiinteraction.js +1 -1
  232. package/src/aicore/model/aimodels.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/aisuggestioncontentpartheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  250. package/src/aicore/utils/common-translations.js +1 -1
  251. package/src/aicore/utils/createresizebutton.js +1 -1
  252. package/src/aicore/utils/documentposition.js +1 -1
  253. package/src/aicore/utils/documentrange.js +1 -1
  254. package/src/aicore/utils/eventnames.js +1 -1
  255. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  256. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  257. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  258. package/src/aicore/utils/htmlparser.js +1 -1
  259. package/src/aicore/utils/htmlstreamer.js +1 -1
  260. package/src/aicore/utils/scrollmanager.js +1 -1
  261. package/src/aieditorintegration/aieditorintegration.js +1 -1
  262. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  263. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  264. package/src/aiquickactions/aiquickactions.js +1 -1
  265. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  266. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  267. package/src/aiquickactions/aiquickactionsui.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  270. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  272. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  273. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  274. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  275. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  276. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  277. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  278. package/src/aireviewcore/aireviewcoreui.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  280. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  281. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  282. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  283. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  293. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  294. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  295. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  296. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  297. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  298. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  299. package/src/aireviewmode/aireviewmode.js +1 -1
  300. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  301. package/src/aireviewmode/aireviewmodeui.js +1 -1
  302. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  303. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  304. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  305. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  306. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/aitranslate/aitranslate.js +1 -1
  313. package/src/aitranslate/aitranslatecontroller.js +1 -1
  314. package/src/aitranslate/aitranslateui.js +1 -1
  315. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  316. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  317. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  318. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  319. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  320. package/src/errors.js +1 -1
  321. package/src/errorsmap.js +1 -1
  322. package/src/index.js +1 -1
  323. package/build/966.ai.js +0 -5
  324. package/build/translations/en.js +0 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x396f4d=_0x1bad;function _0x4685(){const _0x21f502=['getRanges','editor','includes','_commandDefinitions','plugins','getItems','12174670YDGpmR','showUI','1tYnwhX','9144kxJgtH','2639PPrrfP','1728894XjFovY','requiresContent','length','enabledCommandsIds','ai.assistant.disabledElements','isEnabled','1572zvxaaF','getFirstRange','element','add','selection','2521503lwaVeE','custom','isEmpty','change:_hasContext','model','4775GfrcDh','3945900mndULt','document','values','get','from','isCollapsed','_hasContext','getSelectedBlocks','1520EnoElb','change:isEnabled','name','hasContent','execute','set','refresh','config'];_0x4685=function(){return _0x21f502;};return _0x4685();}(function(_0xed944,_0x2188e){const _0x537bcf=_0x1bad,_0x4d060d=_0xed944();while(!![]){try{const _0xb1bfe=-parseInt(_0x537bcf(0xbc))/0x1*(-parseInt(_0x537bcf(0xbf))/0x2)+-parseInt(_0x537bcf(0xca))/0x3+-parseInt(_0x537bcf(0xd0))/0x4+parseInt(_0x537bcf(0xcf))/0x5+-parseInt(_0x537bcf(0xc5))/0x6*(-parseInt(_0x537bcf(0xbe))/0x7)+-parseInt(_0x537bcf(0xd8))/0x8*(-parseInt(_0x537bcf(0xbd))/0x9)+parseInt(_0x537bcf(0xba))/0xa;if(_0xb1bfe===_0x2188e)break;else _0x4d060d['push'](_0x4d060d['shift']());}catch(_0x2a735b){_0x4d060d['push'](_0x4d060d['shift']());}}}(_0x4685,0x85b7b));import{Command as _0x39f3d4}from'ckeditor5/src/core.js';function _0x1bad(_0x1c114f,_0x4ffcfc){const _0x46851a=_0x4685();return _0x1bad=function(_0x1bad9d,_0x4ba0d8){_0x1bad9d=_0x1bad9d-0xba;let _0x24e704=_0x46851a[_0x1bad9d];return _0x24e704;},_0x1bad(_0x1c114f,_0x4ffcfc);}import{AIAssistantUI as _0x3f994e}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x39f3d4{[_0x396f4d(0xe3)];constructor(_0x24b8e1,_0x52ae48){const _0x117c23=_0x396f4d;super(_0x24b8e1),this[_0x117c23(0xe3)]=_0x52ae48,this[_0x117c23(0xdd)](_0x117c23(0xc2),[]),this['on'](_0x117c23(0xcd),(_0x156d47,_0x1f430b,_0x2655a6)=>{const _0x2d2d4c=_0x117c23;this[_0x2d2d4c(0xc4)]&&(this[_0x2d2d4c(0xc2)]=js(this[_0x2d2d4c(0xe3)],_0x2655a6));}),this[_0x117c23(0xdd)](_0x117c23(0xd6),!0x1),this['on'](_0x117c23(0xd9),(_0x2ba3c1,_0x2d94e9,_0x4f67ee)=>{const _0x2b540c=_0x117c23;this[_0x2b540c(0xc2)]=_0x4f67ee?js(this[_0x2b540c(0xe3)],this[_0x2b540c(0xd6)]):[];});}[_0x396f4d(0xde)](){const _0x214ebe=_0x396f4d,_0xd336eb=this[_0x214ebe(0xe1)][_0x214ebe(0xce)];this[_0x214ebe(0xd6)]=function(_0x46a71c){const _0xf95f51=_0x214ebe,_0x4cfe77=_0x46a71c[_0xf95f51(0xd1)][_0xf95f51(0xc9)];return _0x4cfe77[_0xf95f51(0xd5)]?0x0!==[..._0x4cfe77[_0xf95f51(0xd7)]()][_0xf95f51(0xc1)]&&![..._0x4cfe77[_0xf95f51(0xd7)]()][0x0][_0xf95f51(0xcc)]:!!_0x46a71c[_0xf95f51(0xdb)](_0x4cfe77[_0xf95f51(0xc6)]());}(_0xd336eb);const _0x10f359=_0xd336eb[_0x214ebe(0xd1)][_0x214ebe(0xc9)],_0x50964d=this[_0x214ebe(0xe1)][_0x214ebe(0xdf)][_0x214ebe(0xd3)](_0x214ebe(0xc3));for(const _0x408cf0 of _0x10f359[_0x214ebe(0xe0)]())for(const _0x15495f of _0x408cf0[_0x214ebe(0xe5)]())if(_0x15495f['is'](_0x214ebe(0xc7))&&_0x50964d[_0x214ebe(0xe2)](_0x15495f[_0x214ebe(0xda)]))return void(this[_0x214ebe(0xc4)]=!0x1);this[_0x214ebe(0xc4)]=!0x0;}[_0x396f4d(0xdc)](_0x5c8aca='',_0xfb3d91='',_0x8c4d08=_0x396f4d(0xcb)){const _0x48ca40=_0x396f4d;this[_0x48ca40(0xe1)][_0x48ca40(0xe4)][_0x48ca40(0xd3)](_0x3f994e)[_0x48ca40(0xbb)](_0x5c8aca,_0xfb3d91,_0x8c4d08);}}function js(_0xbc9c01,_0x1a4564){const _0x33533d=_0x396f4d,_0x425dd9=new Set();for(const _0x5c4aa1 of _0xbc9c01[_0x33533d(0xd2)]())(_0x1a4564||!0x1===_0x5c4aa1[_0x33533d(0xc0)])&&_0x425dd9[_0x33533d(0xc8)](_0x5c4aa1['id']);return Array[_0x33533d(0xd4)](_0x425dd9);}
23
+ const _0x2c98f2=_0x1edf;(function(_0x16cd40,_0x2c40ea){const _0x554286=_0x1edf,_0x25d9d3=_0x16cd40();while(!![]){try{const _0x5c1696=parseInt(_0x554286(0xbe))/0x1*(-parseInt(_0x554286(0xca))/0x2)+parseInt(_0x554286(0xba))/0x3+-parseInt(_0x554286(0xdf))/0x4*(-parseInt(_0x554286(0xda))/0x5)+-parseInt(_0x554286(0xd7))/0x6*(parseInt(_0x554286(0xbc))/0x7)+-parseInt(_0x554286(0xd9))/0x8+-parseInt(_0x554286(0xd5))/0x9*(parseInt(_0x554286(0xc0))/0xa)+parseInt(_0x554286(0xd1))/0xb;if(_0x5c1696===_0x2c40ea)break;else _0x25d9d3['push'](_0x25d9d3['shift']());}catch(_0xcd3d29){_0x25d9d3['push'](_0x25d9d3['shift']());}}}(_0x18f8,0x3ee41));function _0x1edf(_0x277a29,_0x107b8a){const _0x18f82d=_0x18f8();return _0x1edf=function(_0x1edf1c,_0x3d0819){_0x1edf1c=_0x1edf1c-0xb5;let _0x4eb06f=_0x18f82d[_0x1edf1c];return _0x4eb06f;},_0x1edf(_0x277a29,_0x107b8a);}import{Command as _0x202f5d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5d14e4}from'../aiassistantui.js';function _0x18f8(){const _0x3eb76f=['editor','_commandDefinitions','getItems','hasContent','822048FcgQVH','_hasContext','78953azmoRW','showUI','101581yaBMWG','enabledCommandsIds','1210fTXdtU','set','getFirstRange','isEnabled','name','isCollapsed','ai.assistant.disabledElements','values','refresh','element','2uFaRZV','plugins','change:_hasContext','isEmpty','document','execute','from','7592816UEpmvZ','getSelectedBlocks','selection','get','19566ZTXIeO','getRanges','90fShHga','config','2479720IvYdNC','1915btJokO','includes','model','length','add','1432PlDZXZ','custom','requiresContent','change:isEnabled'];_0x18f8=function(){return _0x3eb76f;};return _0x18f8();}export class ShowAIAssistantCommand extends _0x202f5d{[_0x2c98f2(0xb7)];constructor(_0x5cd10c,_0x5efaa7){const _0x55b41e=_0x2c98f2;super(_0x5cd10c),this[_0x55b41e(0xb7)]=_0x5efaa7,this[_0x55b41e(0xc1)](_0x55b41e(0xbf),[]),this['on'](_0x55b41e(0xcc),(_0x876e53,_0x2afd50,_0x59fb1d)=>{const _0x1e4602=_0x55b41e;this[_0x1e4602(0xc3)]&&(this[_0x1e4602(0xbf)]=ns(this[_0x1e4602(0xb7)],_0x59fb1d));}),this[_0x55b41e(0xc1)](_0x55b41e(0xbb),!0x1),this['on'](_0x55b41e(0xb5),(_0x34bd06,_0x4e0a1e,_0x1a9190)=>{const _0xec7d95=_0x55b41e;this[_0xec7d95(0xbf)]=_0x1a9190?ns(this[_0xec7d95(0xb7)],this[_0xec7d95(0xbb)]):[];});}[_0x2c98f2(0xc8)](){const _0x3d5304=_0x2c98f2,_0x1e864e=this[_0x3d5304(0xb6)][_0x3d5304(0xdc)];this[_0x3d5304(0xbb)]=function(_0x41b248){const _0x5aa2ec=_0x3d5304,_0x329d97=_0x41b248[_0x5aa2ec(0xce)][_0x5aa2ec(0xd3)];return _0x329d97[_0x5aa2ec(0xc5)]?0x0!==[..._0x329d97[_0x5aa2ec(0xd2)]()][_0x5aa2ec(0xdd)]&&![..._0x329d97[_0x5aa2ec(0xd2)]()][0x0][_0x5aa2ec(0xcd)]:!!_0x41b248[_0x5aa2ec(0xb9)](_0x329d97[_0x5aa2ec(0xc2)]());}(_0x1e864e);const _0x30ab37=_0x1e864e[_0x3d5304(0xce)][_0x3d5304(0xd3)],_0x5abb5a=this[_0x3d5304(0xb6)][_0x3d5304(0xd8)][_0x3d5304(0xd4)](_0x3d5304(0xc6));for(const _0x30f1fa of _0x30ab37[_0x3d5304(0xd6)]())for(const _0x25ad1b of _0x30f1fa[_0x3d5304(0xb8)]())if(_0x25ad1b['is'](_0x3d5304(0xc9))&&_0x5abb5a[_0x3d5304(0xdb)](_0x25ad1b[_0x3d5304(0xc4)]))return void(this[_0x3d5304(0xc3)]=!0x1);this[_0x3d5304(0xc3)]=!0x0;}[_0x2c98f2(0xcf)](_0x3085b5='',_0x211812='',_0x2b4fd6=_0x2c98f2(0xe0)){const _0x8b8340=_0x2c98f2;this[_0x8b8340(0xb6)][_0x8b8340(0xcb)][_0x8b8340(0xd4)](_0x5d14e4)[_0x8b8340(0xbd)](_0x3085b5,_0x211812,_0x2b4fd6);}}function ns(_0x421c77,_0x3e0f1e){const _0x10b292=_0x2c98f2,_0x178c88=new Set();for(const _0x57b4fa of _0x421c77[_0x10b292(0xc7)]())(_0x3e0f1e||!0x1===_0x57b4fa[_0x10b292(0xe1)])&&_0x178c88[_0x10b292(0xde)](_0x57b4fa['id']);return Array[_0x10b292(0xd0)](_0x178c88);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4d90ef,_0xeb11e7,_0x29fea1){const t=_0x4d90ef['t'];switch(_0xeb11e7){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',_0x29fea1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x29fea1);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'},_0x29fea1);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 _0xeb11e7;}}
23
+ export function getTranslation(_0x2ff7ce,_0x19e838,_0x285463){const t=_0x2ff7ce['t'];switch(_0x19e838){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',_0x285463);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x285463);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'},_0x285463);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_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x19e838;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x53f529,_0xf10b8b){const _0x5896a6=(0x0,_0xf10b8b['t'])('Other');return _0x53f529['length']?'groupId'in _0x53f529[0x0]?_0x53f529:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':_0x53f529}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4fdbfa,_0x3d6475){const _0x1d57a7=(0x0,_0x3d6475['t'])('Other');return _0x4fdbfa['length']?'groupId'in _0x4fdbfa[0x0]?_0x4fdbfa:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d57a7,'order':0x1/0x0,'commands':_0x4fdbfa}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d57a7,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x257160=_0x3bb4;(function(_0x10499c,_0x29e74c){const _0x21c98a=_0x3bb4,_0x3c164e=_0x10499c();while(!![]){try{const _0x4096ab=parseInt(_0x21c98a(0x175))/0x1*(-parseInt(_0x21c98a(0x1a9))/0x2)+parseInt(_0x21c98a(0x1ad))/0x3*(parseInt(_0x21c98a(0x19a))/0x4)+-parseInt(_0x21c98a(0x1bb))/0x5*(parseInt(_0x21c98a(0x1bc))/0x6)+-parseInt(_0x21c98a(0x1ae))/0x7+parseInt(_0x21c98a(0x171))/0x8+parseInt(_0x21c98a(0x1ba))/0x9*(-parseInt(_0x21c98a(0x1a1))/0xa)+parseInt(_0x21c98a(0x176))/0xb*(parseInt(_0x21c98a(0x1a5))/0xc);if(_0x4096ab===_0x29e74c)break;else _0x3c164e['push'](_0x3c164e['shift']());}catch(_0x413d0a){_0x3c164e['push'](_0x3c164e['shift']());}}}(_0x4c78,0xd435a));import{ContextPlugin as _0x42e606}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x16cd0d,AIEditing as _0x5216fe}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5c15c5}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7e22,Rect as _0x4b7e13,scrollViewportToShowTarget as _0x2a5eff}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4ae1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2088bd}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x502944}from'./ui/aiballoonview.js';function _0x3bb4(_0x4b4bd5,_0x6d08dc){const _0x4c78e1=_0x4c78();return _0x3bb4=function(_0x3bb459,_0x1301a6){_0x3bb459=_0x3bb459-0x164;let _0x1d8a93=_0x4c78e1[_0x3bb459];return _0x1d8a93;},_0x3bb4(_0x4b4bd5,_0x6d08dc);}function _0x4c78(){const _0x590763=['AIBalloon','576qIQxWE','10gfyqEt','137622RpHQqw','_currentConfig','isOfficialPlugin','getMarkersGroup','model','max','mainView','end','iconView','plugins','once','filter','listenTo','stopListening','label','show','length','get','ck-ai-balloon\x20','isEqual','9477216yZnSEl','ai-selection','high','width','1213anMPLe','11RbcYHE','startsWith','fire','_showDialog','_calculateOptimalTopPosition','window','_calculateDialogPosition','Dialog','ranges','height','_cleanupFakeVisualSelectionMarkerRemovalListener','change','root','hideFakeVisualSelection','start','differ','_hideFakeVisualSelection','index','headerView','getBoundingRect','delegate','context','pluginName','$graveyard','updatePosition','_isUpdatingMarkers','beforeDialogClosed','selectionRemoved','isOpen','requires','getIntersection','close','bind','markers','document','round','1824RdSBBE','dialogClosed','open','rootName','getVisible','showBlockingError','editing','81140OLPSdt','ai-balloon-','left','hideError','7478148PyTzkx','getChangedMarkers','_getSelectionElements','view','2306cobNbP','locale','isPremiumPlugin','content','7752BUjsOS','1072162fiHTum','ai-balloon-selection','map','_updateDialog','top','_setupFakeVisualSelectionMarkerRemovalListener','_showFakeVisualSelection','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','showFakeVisualSelection','hide'];_0x4c78=function(){return _0x590763;};return _0x4c78();}export const AI_BALLOON_EVENT_NAMES=[..._0x502944,_0x257160(0x19b),_0x257160(0x191)];const L=0xa;export class AIBalloon extends _0x42e606{static get[_0x257160(0x193)](){return[_0x5216fe];}static get[_0x257160(0x18c)](){const _0x4de0e8=_0x257160;return _0x4de0e8(0x1b9);}static get[_0x257160(0x1be)](){return!0x0;}static get[_0x257160(0x1ab)](){return!0x0;}[_0x257160(0x192)]=!0x1;[_0x257160(0x1bd)];[_0x257160(0x18f)]=!0x1;[_0x257160(0x19c)](_0x218f31){const _0x345013=_0x257160,{id:_0x559202}=this[_0x345013(0x1bd)]??{};this[_0x345013(0x1bd)]=_0x218f31;const {id:_0x196533}=this[_0x345013(0x1bd)];this[_0x345013(0x192)]&&_0x559202===_0x196533?this[_0x345013(0x1b1)]():this[_0x345013(0x179)]();}[_0x257160(0x195)](){const _0x575738=_0x257160,_0x5c08c8=_0x5b4ae1(this[_0x575738(0x18b)])[_0x575738(0x166)][_0x575738(0x16e)](_0x575738(0x17d));_0x5c08c8[_0x575738(0x192)]&&this[_0x575738(0x1bd)]&&_0x5c08c8['id']===this[_0x575738(0x1bd)]['id']&&_0x5c08c8[_0x575738(0x1b8)]();}[_0x257160(0x1b1)](){const _0x382731=_0x257160,_0x5b7a50=_0x5b4ae1(this[_0x382731(0x18b)])[_0x382731(0x166)][_0x382731(0x16e)](_0x382731(0x17d)),{icon:_0x44829a,title:_0x49b865}=this[_0x382731(0x1bd)];_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x188)]&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x16b)]=_0x49b865,_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)]&&_0x44829a&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)][_0x382731(0x1ac)]=_0x44829a)),this[_0x382731(0x18f)]=!0x0,this[_0x382731(0x1b4)](),this[_0x382731(0x18f)]=!0x1,_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x18e)]();}[_0x257160(0x1b4)](){const _0x3ddb0c=_0x257160;this[_0x3ddb0c(0x18b)][_0x3ddb0c(0x166)][_0x3ddb0c(0x16e)](_0x5216fe)[_0x3ddb0c(0x1b7)](this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x17e)],_0x3ddb0c(0x1a2)+this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x187)],!0x0,!0x0);}[_0x257160(0x186)](_0x3b29c1){const _0x98af85=_0x257160;this[_0x98af85(0x18b)][_0x98af85(0x166)][_0x98af85(0x16e)](_0x5216fe)[_0x98af85(0x183)](_0x98af85(0x1a2)+_0x3b29c1);}[_0x257160(0x179)](){const _0x37f78a=_0x257160,_0x39393e=_0x5b4ae1(this[_0x37f78a(0x18b)])[_0x37f78a(0x166)][_0x37f78a(0x16e)](_0x37f78a(0x17d)),{id:_0xd28891,title:_0x17edfd,icon:_0x443467,class:_0x29875a,mainView:_0x41597b}=this[_0x37f78a(0x1bd)];_0x41597b[_0x37f78a(0x18a)](..._0x502944)['to'](this),_0x39393e[_0x37f78a(0x16c)]({'title':_0x17edfd,'icon':_0x443467,'hasCloseButton':!0x0,'id':_0xd28891,'position':this[_0x37f78a(0x17c)][_0x37f78a(0x196)](this),'className':_0x37f78a(0x16f)+(_0x29875a||''),'content':_0x41597b,'onShow':_0x1d7177=>{const _0x29d62d=_0x37f78a;this[_0x29d62d(0x1b4)](),this[_0x29d62d(0x1b3)]();const _0x3b0170=this[_0x29d62d(0x1a7)]();_0x3b0170&&_0x3b0170[0x0]&&_0x2a5eff({'target':_0x3b0170[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29d62d(0x192)]=!0x0,_0x1d7177[_0x29d62d(0x167)](_0x29d62d(0x1b8),()=>{const _0x2b475e=_0x29d62d;this[_0x2b475e(0x178)](_0x2b475e(0x190),{'id':_0xd28891});},{'priority':_0x29d62d(0x173)});},'onHide':()=>{const _0x5691a4=_0x37f78a;this[_0x5691a4(0x186)](this[_0x5691a4(0x1bd)][_0x5691a4(0x187)]),this[_0x5691a4(0x180)](),this[_0x5691a4(0x178)](_0x5691a4(0x19b),{'id':_0xd28891}),this[_0x5691a4(0x192)]=!0x1;}});}[_0x257160(0x17c)](_0x47e8ba,_0x467d3a){const _0x2bf008=_0x257160;if(!_0x467d3a)return null;const _0x438dec=this[_0x2bf008(0x1a7)]();if(!_0x438dec||0x0===_0x438dec[_0x2bf008(0x16d)])return{'left':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),'top':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1b2)]+_0x467d3a[_0x2bf008(0x17f)]/0x2-_0x47e8ba[_0x2bf008(0x17f)]/0x2)};const _0x553f44=Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),_0x2a5bf3=_0x438dec[_0x2bf008(0x1b0)](_0x394208=>new _0x4b7e13(_0x394208)),_0x4057de=_0x47e8ba[_0x2bf008(0x17f)];return{'left':_0x553f44,'top':this[_0x2bf008(0x17a)](_0x2a5bf3,_0x4057de,_0x467d3a)};}[_0x257160(0x17a)](_0x318b7c,_0x2d54f9,_0x9b34e1){const _0xe10606=_0x257160,_0x44e1fa=new _0x4b7e13(_0x4f7e22[_0xe10606(0x17b)]),_0x21403c=_0x318b7c[_0xe10606(0x1b0)](_0x39a3e5=>_0x39a3e5[_0xe10606(0x19e)]())[_0xe10606(0x168)](_0x76697a=>_0x76697a),_0x316df0=_0x4b7e13[_0xe10606(0x189)](_0x21403c);if(!_0x316df0)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x3ad1ad=_0x44e1fa[_0xe10606(0x194)](_0x316df0);if(!_0x3ad1ad)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x38bca4=_0x9b34e1[_0xe10606(0x19e)](),_0x3c5739=_0x38bca4&&_0x316df0[_0xe10606(0x17f)]>_0x38bca4[_0xe10606(0x17f)],_0x1d88a9=_0x3ad1ad[_0xe10606(0x1b2)],_0x39b7f3=_0x3ad1ad[_0xe10606(0x1b6)];if(_0x3c5739){const _0x477266=(_0x38bca4||_0x44e1fa)[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2,_0x46b914=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)],_0x4421a7=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L;return _0x46b914>=_0x2d54f9?Math[_0xe10606(0x1c1)](L,_0x1d88a9-_0x2d54f9-L):_0x4421a7>=_0x2d54f9?_0x39b7f3+L:Math[_0xe10606(0x1c1)](L,_0x477266);}const _0x4cb4c3=_0x1d88a9-_0x2d54f9,_0x449824=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L,_0x43c899=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)];let _0x2cd8e1;if(_0x449824>=_0x2d54f9)_0x2cd8e1=_0x39b7f3+L;else{if(_0x43c899>=_0x2d54f9)_0x2cd8e1=_0x4cb4c3-L;else _0x2cd8e1=_0x1d88a9+_0x316df0[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2;}return _0x2cd8e1;}[_0x257160(0x1b3)](){const _0x395112=_0x257160,_0x57f671=_0x5b4ae1(this[_0x395112(0x18b)]);this[_0x395112(0x169)](_0x57f671[_0x395112(0x1c0)][_0x395112(0x198)],_0x395112(0x181),()=>{const _0xc4732=_0x395112;if(!this[_0xc4732(0x18f)]){for(const {name:_0x2e3d77,data:{newRange:_0x508577}}of _0x57f671[_0xc4732(0x1c0)][_0xc4732(0x198)][_0xc4732(0x185)][_0xc4732(0x1a6)]())if(_0x2e3d77[_0xc4732(0x177)](_0x16cd0d+':')&&(_0x508577&&(_0x508577[_0xc4732(0x184)][_0xc4732(0x170)](_0x508577[_0xc4732(0x164)])||_0xc4732(0x18d)==_0x508577[_0xc4732(0x182)][_0xc4732(0x19d)])||null==_0x508577)){const _0x209715=_0x2088bd(this[_0xc4732(0x18b)][_0xc4732(0x1aa)],_0xc4732(0x1b5));this[_0xc4732(0x1bd)][_0xc4732(0x1c2)][_0xc4732(0x19f)](_0x209715),this[_0xc4732(0x178)](_0xc4732(0x191));}}});}[_0x257160(0x180)](){const _0x56d067=_0x257160,_0x3550f3=_0x5b4ae1(this[_0x56d067(0x18b)]);this[_0x56d067(0x1bd)][_0x56d067(0x1c2)][_0x56d067(0x1a4)](),this[_0x56d067(0x16a)](_0x3550f3[_0x56d067(0x1c0)][_0x56d067(0x198)]);}[_0x257160(0x1a7)](){const _0x577851=_0x257160,_0x3feb1b=_0x5b4ae1(this[_0x577851(0x18b)]);return _0x5c15c5(_0x3feb1b[_0x577851(0x1a0)],[..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x172)),..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x1af))]);}}
23
+ const _0x3be236=_0x18b2;(function(_0x34c1fd,_0xb4056e){const _0x3d1bf6=_0x18b2,_0x46216f=_0x34c1fd();while(!![]){try{const _0x2f3973=-parseInt(_0x3d1bf6(0x22e))/0x1+parseInt(_0x3d1bf6(0x1dc))/0x2+parseInt(_0x3d1bf6(0x1e9))/0x3*(-parseInt(_0x3d1bf6(0x1fc))/0x4)+-parseInt(_0x3d1bf6(0x207))/0x5+-parseInt(_0x3d1bf6(0x1e5))/0x6*(parseInt(_0x3d1bf6(0x1ff))/0x7)+parseInt(_0x3d1bf6(0x211))/0x8+-parseInt(_0x3d1bf6(0x226))/0x9*(-parseInt(_0x3d1bf6(0x22d))/0xa);if(_0x2f3973===_0xb4056e)break;else _0x46216f['push'](_0x46216f['shift']());}catch(_0x290b3f){_0x46216f['push'](_0x46216f['shift']());}}}(_0x4b66,0xaee9b));import{ContextPlugin as _0x2fa103}from'ckeditor5/src/core.js';function _0x18b2(_0x2bcb68,_0x3850dd){const _0x4b6620=_0x4b66();return _0x18b2=function(_0x18b2c0,_0x58f45a){_0x18b2c0=_0x18b2c0-0x1da;let _0x478dd7=_0x4b6620[_0x18b2c0];return _0x478dd7;},_0x18b2(_0x2bcb68,_0x3850dd);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a11cb,AIEditing as _0x362539}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2bfa85}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x46b2fb,Rect as _0x1da142,scrollViewportToShowTarget as _0x279e32}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x27c2b1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3d8756}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x460aee}from'./ui/aiballoonview.js';function _0x4b66(){const _0x566c8f=['content','end','filter','_cleanupFakeVisualSelectionMarkerRemovalListener','iconView','document','editing','top','showBlockingError','isOpen','_calculateDialogPosition','mainView','once','_currentConfig','high','model','length','label','_getSelectionElements','9dJLpeT','_setupFakeVisualSelectionMarkerRemovalListener','startsWith','delegate','getVisible','ai-balloon-selection','getBoundingRect','7118780eHhXuQ','367007DuPPhN','selectionRemoved','round','getIntersection','differ','Dialog','isOfficialPlugin','context','max','hideError','dialogClosed','2160524YYyBuJ','width','get','isEqual','close','pluginName','plugins','show','hideFakeVisualSelection','1734768IiNYoE','map','_showDialog','ai-balloon-','1109742JVEArn','hide','open','showFakeVisualSelection','_showFakeVisualSelection','getMarkersGroup','change','markers','_isUpdatingMarkers','_hideFakeVisualSelection','stopListening','bind','index','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','locale','root','beforeDialogClosed','_updateDialog','4GNGoXK','view','getChangedMarkers','14qYLBmP','headerView','ranges','left','height','fire','_calculateOptimalTopPosition','AIBalloon','465265irRvVJ','isPremiumPlugin','requires','ck-ai-balloon\x20','window','$graveyard','updatePosition','rootName','start','listenTo','2660264MygqZZ','ai-selection'];_0x4b66=function(){return _0x566c8f;};return _0x4b66();}export const AI_BALLOON_EVENT_NAMES=[..._0x460aee,_0x3be236(0x1db),_0x3be236(0x22f)];const $=0xa;export class AIBalloon extends _0x2fa103{static get[_0x3be236(0x209)](){return[_0x362539];}static get[_0x3be236(0x1e1)](){const _0x25a071=_0x3be236;return _0x25a071(0x206);}static get[_0x3be236(0x234)](){return!0x0;}static get[_0x3be236(0x208)](){return!0x0;}[_0x3be236(0x21c)]=!0x1;[_0x3be236(0x220)];[_0x3be236(0x1f1)]=!0x1;[_0x3be236(0x1eb)](_0x13031f){const _0xd8c33c=_0x3be236,{id:_0x4576cf}=this[_0xd8c33c(0x220)]??{};this[_0xd8c33c(0x220)]=_0x13031f;const {id:_0x4f7a17}=this[_0xd8c33c(0x220)];this[_0xd8c33c(0x21c)]&&_0x4576cf===_0x4f7a17?this[_0xd8c33c(0x1fb)]():this[_0xd8c33c(0x1e7)]();}[_0x3be236(0x1e0)](){const _0x2e42d2=_0x3be236,_0x3a3414=_0x27c2b1(this[_0x2e42d2(0x235)])[_0x2e42d2(0x1e2)][_0x2e42d2(0x1de)](_0x2e42d2(0x233));_0x3a3414[_0x2e42d2(0x21c)]&&this[_0x2e42d2(0x220)]&&_0x3a3414['id']===this[_0x2e42d2(0x220)]['id']&&_0x3a3414[_0x2e42d2(0x1ea)]();}[_0x3be236(0x1fb)](){const _0x3519fe=_0x3be236,_0x38b6dc=_0x27c2b1(this[_0x3519fe(0x235)])[_0x3519fe(0x1e2)][_0x3519fe(0x1de)](_0x3519fe(0x233)),{icon:_0x38939d,title:_0x4f8155}=this[_0x3519fe(0x220)];_0x38b6dc[_0x3519fe(0x1fd)]?.[_0x3519fe(0x200)]&&(_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x224)]=_0x4f8155,_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x217)]&&_0x38939d&&(_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x217)][_0x3519fe(0x213)]=_0x38939d)),this[_0x3519fe(0x1f1)]=!0x0,this[_0x3519fe(0x1ed)](),this[_0x3519fe(0x1f1)]=!0x1,_0x38b6dc[_0x3519fe(0x1fd)]?.[_0x3519fe(0x20d)]();}[_0x3be236(0x1ed)](){const _0x2abee1=_0x3be236;this[_0x2abee1(0x235)][_0x2abee1(0x1e2)][_0x2abee1(0x1de)](_0x362539)[_0x2abee1(0x1ec)](this[_0x2abee1(0x220)][_0x2abee1(0x201)],_0x2abee1(0x1e8)+this[_0x2abee1(0x220)][_0x2abee1(0x1f5)],!0x0,!0x0);}[_0x3be236(0x1f2)](_0x59a1b5){const _0x5c488f=_0x3be236;this[_0x5c488f(0x235)][_0x5c488f(0x1e2)][_0x5c488f(0x1de)](_0x362539)[_0x5c488f(0x1e4)](_0x5c488f(0x1e8)+_0x59a1b5);}[_0x3be236(0x1e7)](){const _0x4918ad=_0x3be236,_0x18d4eb=_0x27c2b1(this[_0x4918ad(0x235)])[_0x4918ad(0x1e2)][_0x4918ad(0x1de)](_0x4918ad(0x233)),{id:_0x2e9b44,title:_0x456d7b,icon:_0x55ab95,class:_0x1cf454,mainView:_0x3922c7}=this[_0x4918ad(0x220)];_0x3922c7[_0x4918ad(0x229)](..._0x460aee)['to'](this),_0x18d4eb[_0x4918ad(0x1e3)]({'title':_0x456d7b,'icon':_0x55ab95,'hasCloseButton':!0x0,'id':_0x2e9b44,'position':this[_0x4918ad(0x21d)][_0x4918ad(0x1f4)](this),'className':_0x4918ad(0x20a)+(_0x1cf454||''),'content':_0x3922c7,'onShow':_0x594e46=>{const _0x1befd5=_0x4918ad;this[_0x1befd5(0x1ed)](),this[_0x1befd5(0x227)]();const _0x57c8e3=this[_0x1befd5(0x225)]();_0x57c8e3&&_0x57c8e3[0x0]&&_0x279e32({'target':_0x57c8e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x1befd5(0x21c)]=!0x0,_0x594e46[_0x1befd5(0x21f)](_0x1befd5(0x1ea),()=>{const _0x5c4c65=_0x1befd5;this[_0x5c4c65(0x204)](_0x5c4c65(0x1fa),{'id':_0x2e9b44});},{'priority':_0x1befd5(0x221)});},'onHide':()=>{const _0x4b0efe=_0x4918ad;this[_0x4b0efe(0x1f2)](this[_0x4b0efe(0x220)][_0x4b0efe(0x1f5)]),this[_0x4b0efe(0x216)](),this[_0x4b0efe(0x204)](_0x4b0efe(0x1db),{'id':_0x2e9b44}),this[_0x4b0efe(0x21c)]=!0x1;}});}[_0x3be236(0x21d)](_0x4e1378,_0x518491){const _0x9f13b8=_0x3be236;if(!_0x518491)return null;const _0x367370=this[_0x9f13b8(0x225)]();if(!_0x367370||0x0===_0x367370[_0x9f13b8(0x223)])return{'left':Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x202)]+_0x518491[_0x9f13b8(0x1dd)]/0x2-_0x4e1378[_0x9f13b8(0x1dd)]/0x2),'top':Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x21a)]+_0x518491[_0x9f13b8(0x203)]/0x2-_0x4e1378[_0x9f13b8(0x203)]/0x2)};const _0x4b13fd=Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x202)]+_0x518491[_0x9f13b8(0x1dd)]/0x2-_0x4e1378[_0x9f13b8(0x1dd)]/0x2),_0xb42103=_0x367370[_0x9f13b8(0x1e6)](_0x105563=>new _0x1da142(_0x105563)),_0x4060b7=_0x4e1378[_0x9f13b8(0x203)];return{'left':_0x4b13fd,'top':this[_0x9f13b8(0x205)](_0xb42103,_0x4060b7,_0x518491)};}[_0x3be236(0x205)](_0xe6ee73,_0x2c6d03,_0x5cb92c){const _0x269e9b=_0x3be236,_0x1743a9=new _0x1da142(_0x46b2fb[_0x269e9b(0x20b)]),_0x159d78=_0xe6ee73[_0x269e9b(0x1e6)](_0x3bfaaf=>_0x3bfaaf[_0x269e9b(0x22a)]())[_0x269e9b(0x215)](_0x1dd7cb=>_0x1dd7cb),_0x34331c=_0x1da142[_0x269e9b(0x22c)](_0x159d78);if(!_0x34331c)return Math[_0x269e9b(0x230)](_0x5cb92c[_0x269e9b(0x21a)]+_0x5cb92c[_0x269e9b(0x203)]/0x2);const _0x3dbe1b=_0x1743a9[_0x269e9b(0x231)](_0x34331c);if(!_0x3dbe1b)return Math[_0x269e9b(0x230)](_0x5cb92c[_0x269e9b(0x21a)]+_0x5cb92c[_0x269e9b(0x203)]/0x2);const _0x4dbe4c=_0x5cb92c[_0x269e9b(0x22a)](),_0x5d4732=_0x4dbe4c&&_0x34331c[_0x269e9b(0x203)]>_0x4dbe4c[_0x269e9b(0x203)],_0x2c72bf=_0x3dbe1b[_0x269e9b(0x21a)],_0x191ceb=_0x3dbe1b[_0x269e9b(0x1f7)];if(_0x5d4732){const _0x54e53e=(_0x4dbe4c||_0x1743a9)[_0x269e9b(0x203)]/0x2-_0x2c6d03/0x2,_0x21cce4=_0x2c72bf-$-_0x5cb92c[_0x269e9b(0x21a)],_0x392ba6=_0x5cb92c[_0x269e9b(0x1f7)]-_0x191ceb-$;return _0x21cce4>=_0x2c6d03?Math[_0x269e9b(0x236)]($,_0x2c72bf-_0x2c6d03-$):_0x392ba6>=_0x2c6d03?_0x191ceb+$:Math[_0x269e9b(0x236)]($,_0x54e53e);}const _0x1b775c=_0x2c72bf-_0x2c6d03,_0x3da173=_0x5cb92c[_0x269e9b(0x1f7)]-_0x191ceb-$,_0x5a9f95=_0x2c72bf-$-_0x5cb92c[_0x269e9b(0x21a)];let _0x3faab0;if(_0x3da173>=_0x2c6d03)_0x3faab0=_0x191ceb+$;else{if(_0x5a9f95>=_0x2c6d03)_0x3faab0=_0x1b775c-$;else _0x3faab0=_0x2c72bf+_0x34331c[_0x269e9b(0x203)]/0x2-_0x2c6d03/0x2;}return _0x3faab0;}[_0x3be236(0x227)](){const _0x587c11=_0x3be236,_0x265899=_0x27c2b1(this[_0x587c11(0x235)]);this[_0x587c11(0x210)](_0x265899[_0x587c11(0x222)][_0x587c11(0x218)],_0x587c11(0x1ef),()=>{const _0x114508=_0x587c11;if(!this[_0x114508(0x1f1)]){for(const {name:_0x376044,data:{newRange:_0xcaf73b}}of _0x265899[_0x114508(0x222)][_0x114508(0x218)][_0x114508(0x232)][_0x114508(0x1fe)]())if(_0x376044[_0x114508(0x228)](_0x3a11cb+':')&&(_0xcaf73b&&(_0xcaf73b[_0x114508(0x20f)][_0x114508(0x1df)](_0xcaf73b[_0x114508(0x214)])||_0x114508(0x20c)==_0xcaf73b[_0x114508(0x1f9)][_0x114508(0x20e)])||null==_0xcaf73b)){const _0x521322=_0x3d8756(this[_0x114508(0x235)][_0x114508(0x1f8)],_0x114508(0x1f6));this[_0x114508(0x220)][_0x114508(0x21e)][_0x114508(0x21b)](_0x521322),this[_0x114508(0x204)](_0x114508(0x22f));}}});}[_0x3be236(0x216)](){const _0x34b2cb=_0x3be236,_0x4f8d48=_0x27c2b1(this[_0x34b2cb(0x235)]);this[_0x34b2cb(0x220)][_0x34b2cb(0x21e)][_0x34b2cb(0x1da)](),this[_0x34b2cb(0x1f3)](_0x4f8d48[_0x34b2cb(0x222)][_0x34b2cb(0x218)]);}[_0x3be236(0x225)](){const _0xd27b4f=_0x3be236,_0x247f4f=_0x27c2b1(this[_0xd27b4f(0x235)]);return _0x2bfa85(_0x247f4f[_0xd27b4f(0x219)],[..._0x247f4f[_0xd27b4f(0x222)][_0xd27b4f(0x1f0)][_0xd27b4f(0x1ee)](_0xd27b4f(0x212)),..._0x247f4f[_0xd27b4f(0x222)][_0xd27b4f(0x1f0)][_0xd27b4f(0x1ee)](_0xd27b4f(0x22b))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a03eb=_0x22fe;(function(_0x3e9c95,_0x24b119){const _0x3c1fb7=_0x22fe,_0x332b6b=_0x3e9c95();while(!![]){try{const _0x575a6e=parseInt(_0x3c1fb7(0x14e))/0x1*(-parseInt(_0x3c1fb7(0x152))/0x2)+parseInt(_0x3c1fb7(0x151))/0x3+-parseInt(_0x3c1fb7(0x14f))/0x4*(parseInt(_0x3c1fb7(0x15c))/0x5)+-parseInt(_0x3c1fb7(0x143))/0x6*(parseInt(_0x3c1fb7(0x159))/0x7)+-parseInt(_0x3c1fb7(0x15b))/0x8+-parseInt(_0x3c1fb7(0x146))/0x9+parseInt(_0x3c1fb7(0x144))/0xa;if(_0x575a6e===_0x24b119)break;else _0x332b6b['push'](_0x332b6b['shift']());}catch(_0x22dfed){_0x332b6b['push'](_0x332b6b['shift']());}}}(_0x425e,0x1b01f));import{View as _0x22e2b3}from'ckeditor5/src/ui.js';function _0x22fe(_0x468927,_0x3f0a2c){const _0x425e89=_0x425e();return _0x22fe=function(_0x22feec,_0x42c722){_0x22feec=_0x22feec-0x140;let _0xe2ae06=_0x425e89[_0x22feec];return _0xe2ae06;},_0x22fe(_0x468927,_0x3f0a2c);}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4a03eb(0x149),_0x4a03eb(0x148),_0x4a03eb(0x140),_0x4a03eb(0x150)];function _0x425e(){const _0x306e4d=['setTemplate','_isErrorVisible','_errorMessage','ck-hidden','showBlockingError','set','696017EtObXC','showError','1504936tUvcZu','100hhFzoP','_createErrorView','hideError','showNext','ck-ai-suggestion__error','div','6qmEetI','5760360ApuiMZ','locale','1435464BTOJdt','bindTemplate','insertSuggestion','applySuggestion','ck-ai-suggestion__error-text','ck-ai-balloon-error','span','_errorView','1879EJKJgC','21884MHyYdI','showPrevious','284427rUMpEP','4ntlqqT'];_0x425e=function(){return _0x306e4d;};return _0x425e();}export class AIBalloonView extends _0x22e2b3{[_0x4a03eb(0x14d)];constructor(_0x3d721e){const _0xe83e84=_0x4a03eb;super(_0x3d721e),this[_0xe83e84(0x158)](_0xe83e84(0x155),''),this[_0xe83e84(0x158)](_0xe83e84(0x154),!0x1);}[_0x4a03eb(0x157)](_0x528b15){const _0x22d41a=_0x4a03eb;this[_0x22d41a(0x15a)](_0x528b15);}[_0x4a03eb(0x15a)](_0x3b033a){const _0x50e28d=_0x4a03eb;this[_0x50e28d(0x14d)]||(this[_0x50e28d(0x14d)]=this[_0x50e28d(0x15d)]()),this[_0x50e28d(0x155)]=_0x3b033a,this[_0x50e28d(0x154)]=!0x0;}[_0x4a03eb(0x15e)](){const _0xe7aa8a=_0x4a03eb;this[_0xe7aa8a(0x154)]=!0x1;}[_0x4a03eb(0x15d)](){const _0x14f4fb=_0x4a03eb,_0x2e5049=new _0x22e2b3(this[_0x14f4fb(0x145)]),_0x359918=new _0x22e2b3(this[_0x14f4fb(0x145)]);return _0x359918[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x14c),'attributes':{'class':['ck',_0x14f4fb(0x14a)]},'children':[{'text':this[_0x14f4fb(0x147)]['to'](_0x14f4fb(0x155))}]}),_0x2e5049[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x142),'attributes':{'class':['ck',_0x14f4fb(0x141),_0x14f4fb(0x14b),this[_0x14f4fb(0x147)]['if'](_0x14f4fb(0x154),_0x14f4fb(0x156),_0x443419=>!_0x443419)]},'children':[_0x359918]}),_0x2e5049;}}
23
+ const _0x1851a2=_0x5cbe;(function(_0x4a7646,_0x556d12){const _0x1f03ba=_0x5cbe,_0x2b01a8=_0x4a7646();while(!![]){try{const _0x52899d=parseInt(_0x1f03ba(0x1c6))/0x1+-parseInt(_0x1f03ba(0x1ba))/0x2*(parseInt(_0x1f03ba(0x1d2))/0x3)+parseInt(_0x1f03ba(0x1bd))/0x4*(-parseInt(_0x1f03ba(0x1d9))/0x5)+parseInt(_0x1f03ba(0x1c2))/0x6+parseInt(_0x1f03ba(0x1ce))/0x7*(-parseInt(_0x1f03ba(0x1d8))/0x8)+parseInt(_0x1f03ba(0x1c8))/0x9+parseInt(_0x1f03ba(0x1c4))/0xa*(-parseInt(_0x1f03ba(0x1d4))/0xb);if(_0x52899d===_0x556d12)break;else _0x2b01a8['push'](_0x2b01a8['shift']());}catch(_0x22b071){_0x2b01a8['push'](_0x2b01a8['shift']());}}}(_0x1e72,0x299a6));import{View as _0x2eb439}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1851a2(0x1d7),_0x1851a2(0x1cd),_0x1851a2(0x1ca),_0x1851a2(0x1cc)];export class AIBalloonView extends _0x2eb439{[_0x1851a2(0x1cf)];constructor(_0x38aa3b){const _0xd251b3=_0x1851a2;super(_0x38aa3b),this[_0xd251b3(0x1c5)](_0xd251b3(0x1c3),''),this[_0xd251b3(0x1c5)](_0xd251b3(0x1c7),!0x1);}[_0x1851a2(0x1cb)](_0x5748b7){const _0x447cb9=_0x1851a2;this[_0x447cb9(0x1d1)](_0x5748b7);}[_0x1851a2(0x1d1)](_0x1a7957){const _0x26bfe9=_0x1851a2;this[_0x26bfe9(0x1cf)]||(this[_0x26bfe9(0x1cf)]=this[_0x26bfe9(0x1bb)]()),this[_0x26bfe9(0x1c3)]=_0x1a7957,this[_0x26bfe9(0x1c7)]=!0x0;}[_0x1851a2(0x1c0)](){const _0x2b338b=_0x1851a2;this[_0x2b338b(0x1c7)]=!0x1;}[_0x1851a2(0x1bb)](){const _0x5a1226=_0x1851a2,_0xc678d7=new _0x2eb439(this[_0x5a1226(0x1d5)]),_0x25a086=new _0x2eb439(this[_0x5a1226(0x1d5)]);return _0x25a086[_0x5a1226(0x1d3)]({'tag':_0x5a1226(0x1c9),'attributes':{'class':['ck',_0x5a1226(0x1c1)]},'children':[{'text':this[_0x5a1226(0x1bf)]['to'](_0x5a1226(0x1c3))}]}),_0xc678d7[_0x5a1226(0x1d3)]({'tag':_0x5a1226(0x1d0),'attributes':{'class':['ck',_0x5a1226(0x1bc),_0x5a1226(0x1be),this[_0x5a1226(0x1bf)]['if'](_0x5a1226(0x1c7),_0x5a1226(0x1d6),_0x59e102=>!_0x59e102)]},'children':[_0x25a086]}),_0xc678d7;}}function _0x5cbe(_0x25539b,_0x32a784){const _0x1e7224=_0x1e72();return _0x5cbe=function(_0x5cbed0,_0x3a8356){_0x5cbed0=_0x5cbed0-0x1ba;let _0x9d761a=_0x1e7224[_0x5cbed0];return _0x9d761a;},_0x5cbe(_0x25539b,_0x32a784);}function _0x1e72(){const _0x3c9d1b=['10PNLslV','set','301058oLvkzD','_isErrorVisible','2856132STiOBB','span','showNext','showBlockingError','showPrevious','insertSuggestion','275863RaXXMM','_errorView','div','showError','3IXZjqK','setTemplate','1979527JxRrbO','locale','ck-hidden','applySuggestion','8oVAeuj','30VVhYqO','636862LCIYIR','_createErrorView','ck-ai-suggestion__error','28932TYPvzs','ck-ai-balloon-error','bindTemplate','hideError','ck-ai-suggestion__error-text','799170ZzRaXy','_errorMessage'];_0x1e72=function(){return _0x3c9d1b;};return _0x1e72();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x48111e=_0x13a9;function _0x13a9(_0x37581e,_0x5d011a){var _0x47c091=_0x47c0();return _0x13a9=function(_0x13a942,_0x21e124){_0x13a942=_0x13a942-0x125;var _0x3eb235=_0x47c091[_0x13a942];return _0x3eb235;},_0x13a9(_0x37581e,_0x5d011a);}(function(_0xfa1c58,_0x3156d8){var _0x59b9a1=_0x13a9,_0x4a479a=_0xfa1c58();while(!![]){try{var _0x36bc9d=parseInt(_0x59b9a1(0x12a))/0x1+-parseInt(_0x59b9a1(0x12b))/0x2*(parseInt(_0x59b9a1(0x13a))/0x3)+parseInt(_0x59b9a1(0x138))/0x4+parseInt(_0x59b9a1(0x131))/0x5*(-parseInt(_0x59b9a1(0x132))/0x6)+parseInt(_0x59b9a1(0x130))/0x7+-parseInt(_0x59b9a1(0x13e))/0x8*(parseInt(_0x59b9a1(0x12f))/0x9)+-parseInt(_0x59b9a1(0x13b))/0xa*(-parseInt(_0x59b9a1(0x126))/0xb);if(_0x36bc9d===_0x3156d8)break;else _0x4a479a['push'](_0x4a479a['shift']());}catch(_0x1e5ace){_0x4a479a['push'](_0x4a479a['shift']());}}}(_0x47c0,0x62717));import{ContextPlugin as _0x45e0f4}from'ckeditor5/src/core.js';import{AIChatController as _0x54956d}from'./aichatcontroller.js';import{AIEditing as _0x54afef}from'../aicore/aiediting.js';import{AIChatUI as _0x3b1aa9}from'./aichatui.js';function _0x47c0(){var _0x638393=['isOfficialPlugin','sendMessage','ai.chat.context','3162609qYDzxM','3859443eMJJUU','5cmjvKe','1711746hXUWpC','pluginName','requires','config','registerToolDataCallback','removeSelectionFromChatContext','573816pJStzv','get','3849GqOdGA','10ClrSwl','AIChat','addSelectionToChatContext','16iFWyCV','ai.chat.initialConversation','startConversation','plugins','_registerToolDataCallback','new','isPremiumPlugin','9660167djYKiS','focusPromptInput','context','define','414911dPZqzH','930TiqHSK'];_0x47c0=function(){return _0x638393;};return _0x47c0();}import{AIChatHistory as _0x15b858}from'../aichathistory/aichathistory.js';export class AIChat extends _0x45e0f4{static get[_0x48111e(0x134)](){return[_0x54956d,_0x54afef,_0x3b1aa9,_0x15b858];}static get[_0x48111e(0x133)](){var _0x78f8d6=_0x48111e;return _0x78f8d6(0x13c);}static get[_0x48111e(0x12c)](){return!0x0;}static get[_0x48111e(0x125)](){return!0x0;}constructor(_0x4e8ba7){var _0x2f2199=_0x48111e;super(_0x4e8ba7),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x12e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x13f),_0x2f2199(0x143));}async[_0x48111e(0x13d)](){var _0x10ebd0=_0x48111e;await this[_0x10ebd0(0x128)][_0x10ebd0(0x141)][_0x10ebd0(0x139)](_0x54956d)[_0x10ebd0(0x13d)]();}async[_0x48111e(0x140)](){var _0x414394=_0x48111e;await this[_0x414394(0x128)][_0x414394(0x141)][_0x414394(0x139)](_0x54956d)[_0x414394(0x140)]();}async[_0x48111e(0x12d)]({message:_0xe6e2a,attributes:_0x47fb2c}){var _0x4424a8=_0x48111e;await this[_0x4424a8(0x128)][_0x4424a8(0x141)][_0x4424a8(0x139)](_0x54956d)[_0x4424a8(0x12d)]({'message':_0xe6e2a,'attributes':_0x47fb2c});}[_0x48111e(0x137)](){var _0x87c60c=_0x48111e;this[_0x87c60c(0x128)][_0x87c60c(0x141)][_0x87c60c(0x139)](_0x54956d)[_0x87c60c(0x137)]();}[_0x48111e(0x127)](){var _0x27860f=_0x48111e;this[_0x27860f(0x128)][_0x27860f(0x141)][_0x27860f(0x139)](_0x54956d)[_0x27860f(0x127)]();}[_0x48111e(0x136)](_0x17fd1a){var _0x23be21=_0x48111e;this[_0x23be21(0x128)][_0x23be21(0x141)][_0x23be21(0x139)](_0x54956d)[_0x23be21(0x142)](_0x17fd1a);}}
23
+ var _0x14e0e9=_0x1872;function _0x1872(_0x5d2a14,_0x4d017e){var _0x5df11e=_0x5df1();return _0x1872=function(_0x1872b3,_0x43655e){_0x1872b3=_0x1872b3-0xd5;var _0x15b4a8=_0x5df11e[_0x1872b3];return _0x15b4a8;},_0x1872(_0x5d2a14,_0x4d017e);}(function(_0x13d046,_0x548b4a){var _0x2cfe00=_0x1872,_0x29a754=_0x13d046();while(!![]){try{var _0x104177=parseInt(_0x2cfe00(0xe8))/0x1*(parseInt(_0x2cfe00(0xdd))/0x2)+-parseInt(_0x2cfe00(0xe3))/0x3+parseInt(_0x2cfe00(0xf1))/0x4*(parseInt(_0x2cfe00(0xe9))/0x5)+-parseInt(_0x2cfe00(0xd7))/0x6+-parseInt(_0x2cfe00(0xe6))/0x7*(parseInt(_0x2cfe00(0xe5))/0x8)+parseInt(_0x2cfe00(0xdf))/0x9*(parseInt(_0x2cfe00(0xf4))/0xa)+parseInt(_0x2cfe00(0xd8))/0xb*(parseInt(_0x2cfe00(0xee))/0xc);if(_0x104177===_0x548b4a)break;else _0x29a754['push'](_0x29a754['shift']());}catch(_0xb2a0b0){_0x29a754['push'](_0x29a754['shift']());}}}(_0x5df1,0xcebfe));import{ContextPlugin as _0x3cada7}from'ckeditor5/src/core.js';function _0x5df1(){var _0x10a288=['pluginName','25rETmNR','5PRQoGM','registerToolDataCallback','addSelectionToChatContext','startConversation','define','24ekrUrs','get','ai.chat.context','6155948izPoFX','context','_registerToolDataCallback','10DJSieC','removeSelectionFromChatContext','focusPromptInput','4539006YgbBrG','9268754fvxMZt','new','requires','plugins','config','65638mdmKWM','ai.chat.initialConversation','2176578MrVYQx','isOfficialPlugin','sendMessage','AIChat','4063527hGQiiv','isPremiumPlugin','3543136entNqh','21cFKtgi'];_0x5df1=function(){return _0x10a288;};return _0x5df1();}import{AIChatController as _0x37a722}from'./aichatcontroller.js';import{AIEditing as _0x24decd}from'../aicore/aiediting.js';import{AIChatUI as _0x5142e3}from'./aichatui.js';import{AIChatHistory as _0x5e8808}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3cada7{static get[_0x14e0e9(0xda)](){return[_0x37a722,_0x24decd,_0x5142e3,_0x5e8808];}static get[_0x14e0e9(0xe7)](){var _0x14a923=_0x14e0e9;return _0x14a923(0xe2);}static get[_0x14e0e9(0xe0)](){return!0x0;}static get[_0x14e0e9(0xe4)](){return!0x0;}constructor(_0x2cbeb6){var _0x309106=_0x14e0e9;super(_0x2cbeb6),this[_0x309106(0xf2)][_0x309106(0xdc)][_0x309106(0xed)](_0x309106(0xf0),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x309106(0xf2)][_0x309106(0xdc)][_0x309106(0xed)](_0x309106(0xde),_0x309106(0xd9));}async[_0x14e0e9(0xeb)](){var _0x3ce9ec=_0x14e0e9;await this[_0x3ce9ec(0xf2)][_0x3ce9ec(0xdb)][_0x3ce9ec(0xef)](_0x37a722)[_0x3ce9ec(0xeb)]();}async[_0x14e0e9(0xec)](){var _0x68fa40=_0x14e0e9;await this[_0x68fa40(0xf2)][_0x68fa40(0xdb)][_0x68fa40(0xef)](_0x37a722)[_0x68fa40(0xec)]();}async[_0x14e0e9(0xe1)]({message:_0x4f1423,attributes:_0x315341}){var _0x47a98f=_0x14e0e9;await this[_0x47a98f(0xf2)][_0x47a98f(0xdb)][_0x47a98f(0xef)](_0x37a722)[_0x47a98f(0xe1)]({'message':_0x4f1423,'attributes':_0x315341});}[_0x14e0e9(0xd5)](){var _0x23c5b3=_0x14e0e9;this[_0x23c5b3(0xf2)][_0x23c5b3(0xdb)][_0x23c5b3(0xef)](_0x37a722)[_0x23c5b3(0xd5)]();}[_0x14e0e9(0xd6)](){var _0x36cbea=_0x14e0e9;this[_0x36cbea(0xf2)][_0x36cbea(0xdb)][_0x36cbea(0xef)](_0x37a722)[_0x36cbea(0xd6)]();}[_0x14e0e9(0xea)](_0x24930d){var _0x2fa02c=_0x14e0e9;this[_0x2fa02c(0xf2)][_0x2fa02c(0xdb)][_0x2fa02c(0xef)](_0x37a722)[_0x2fa02c(0xf3)](_0x24930d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4907e4=_0x3ef5;(function(_0x3a2c23,_0x130ae8){const _0x5e1e38=_0x3ef5,_0x394b5e=_0x3a2c23();while(!![]){try{const _0x3bbcb0=parseInt(_0x5e1e38(0x1cc))/0x1+parseInt(_0x5e1e38(0x1ea))/0x2*(parseInt(_0x5e1e38(0x1f6))/0x3)+-parseInt(_0x5e1e38(0x1c8))/0x4*(parseInt(_0x5e1e38(0x1e9))/0x5)+parseInt(_0x5e1e38(0x1e8))/0x6*(parseInt(_0x5e1e38(0x1c6))/0x7)+parseInt(_0x5e1e38(0x1cb))/0x8*(parseInt(_0x5e1e38(0x1ee))/0x9)+parseInt(_0x5e1e38(0x1ca))/0xa*(-parseInt(_0x5e1e38(0x1ef))/0xb)+-parseInt(_0x5e1e38(0x1fc))/0xc*(-parseInt(_0x5e1e38(0x1d3))/0xd);if(_0x3bbcb0===_0x130ae8)break;else _0x394b5e['push'](_0x394b5e['shift']());}catch(_0x58ddb0){_0x394b5e['push'](_0x394b5e['shift']());}}}(_0x49d9,0xf25c1));import{Plugin as _0x3fb66a}from'ckeditor5/src/core.js';import{AIBalloon as _0x344e58}from'../aiballoon/aiballoon.js';function _0x49d9(){const _0x486e8a=['isOfficialPlugin','plugins','aiChatBalloon','config','48660qMfksu','remove','beforeDialogClosed','commands','close','Dialog','204tOwSWt','applySuggestion','ck-ai-chat-balloon','delegate','headerView','has','AIBalloon','showPrevious','bind','isTrackChangesOn','TrackChanges','editor','setState','toggleRotatorButtonsVisibility','49hhQmDm','togglePartToolbarEnabled','12LyXFCI','previousButtonView','11428490GmGAvr','2270488rCRcmg','153400SLBUAa','rejectSuggestion','showDiff','ai.availableReplyActions','areActionsDisabled','open','set','1229709tsmbLJ','value','isPremiumPlugin','focus','filter','children','trackChanges','AIChatBalloon','once','showRotator','pluginName','requires','updateContent','_chatBalloonView','view','_restoreDefaultViewFocus','locale','showNext','dialogClosed','_toggleRotatorButtonsInDialogHeader','render','1134138vtZYTH','2568465fyJHEp','38lawITq','nextButtonView','addMany','insertSuggestion','9YvAKNV','11fPujQe','_createChatBalloonView','get'];_0x49d9=function(){return _0x486e8a;};return _0x49d9();}function _0x3ef5(_0xe16bf0,_0x124c49){const _0x49d958=_0x49d9();return _0x3ef5=function(_0x3ef518,_0x503b2c){_0x3ef518=_0x3ef518-0x1ba;let _0x284fee=_0x49d958[_0x3ef518];return _0x284fee;},_0x3ef5(_0xe16bf0,_0x124c49);}import{AI_REPLY_ACTIONS as _0x40b0e8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1fea93}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x368d91}from'../aicore/utils/eventnames.js';import{Dialog as _0x678d11}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3fb66a{static get[_0x4907e4(0x1de)](){return[_0x678d11,_0x344e58];}static get[_0x4907e4(0x1dd)](){const _0x3500f8=_0x4907e4;return _0x3500f8(0x1da);}static get[_0x4907e4(0x1f2)](){return!0x0;}static get[_0x4907e4(0x1d5)](){return!0x0;}[_0x4907e4(0x1e0)];constructor(_0xcd5284){const _0x1df619=_0x4907e4;super(_0xcd5284),this[_0x1df619(0x1d2)](_0x1df619(0x1ce),!0x1);}[_0x4907e4(0x1d1)](_0x4048b0){const _0x2962a6=_0x4907e4,_0x5ac4a1=this[_0x2962a6(0x1c3)];this[_0x2962a6(0x1e0)]||(this[_0x2962a6(0x1e0)]=this[_0x2962a6(0x1f0)]()),_0x5ac4a1[_0x2962a6(0x1f3)][_0x2962a6(0x1f1)](_0x2962a6(0x1be))[_0x2962a6(0x1d1)]({..._0x4048b0,'id':_0x2962a6(0x1f4),'class':_0x2962a6(0x1ba),'mainView':this[_0x2962a6(0x1e0)]}),this[_0x2962a6(0x1e6)](_0x4048b0[_0x2962a6(0x1dc)]),this[_0x2962a6(0x1e0)][_0x2962a6(0x1c7)](!_0x4048b0[_0x2962a6(0x1d0)]),this[_0x2962a6(0x1e2)]();}[_0x4907e4(0x1fa)](){const _0x2602ad=_0x4907e4;this[_0x2602ad(0x1c3)][_0x2602ad(0x1f3)][_0x2602ad(0x1f1)](_0x2602ad(0x1be))[_0x2602ad(0x1fa)]();}[_0x4907e4(0x1df)](_0x17d2ac){const _0x49ded7=_0x4907e4;return this[_0x49ded7(0x1e0)]||(this[_0x49ded7(0x1e0)]=this[_0x49ded7(0x1f0)]()),this[_0x49ded7(0x1e0)][_0x49ded7(0x1df)](_0x17d2ac);}[_0x4907e4(0x1c4)](_0x28d6d3){const _0x205195=_0x4907e4;this[_0x205195(0x1e0)]&&this[_0x205195(0x1e0)][_0x205195(0x1c4)](_0x28d6d3);}[_0x4907e4(0x1f0)](){const _0x122d81=_0x4907e4,_0x22864f=this[_0x122d81(0x1c3)],_0x10ac08=_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1f1)](_0x122d81(0x1be)),_0x4b199a=_0x22864f[_0x122d81(0x1f9)][_0x122d81(0x1f1)](_0x122d81(0x1d9));let _0x313d85=_0x22864f[_0x122d81(0x1f5)][_0x122d81(0x1f1)](_0x122d81(0x1cf))||[..._0x40b0e8];_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1bd)](_0x122d81(0x1c2))||(_0x313d85=_0x313d85[_0x122d81(0x1d7)](_0x3db383=>_0x122d81(0x1ed)!=_0x3db383));const _0xbd3bdd=new _0x1fea93(_0x22864f[_0x122d81(0x1e3)],{'availableActions':_0x313d85,'showApplyButton':!0x0,'showSuggestButton':!!_0x4b199a});return _0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1ce))['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](..._0x368d91)['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](_0x122d81(0x1bf),_0x122d81(0x1e4))['to'](this),_0x10ac08[_0x122d81(0x1bb)](_0x122d81(0x1e5))['to'](this),_0xbd3bdd['on'](_0x122d81(0x1fd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1ed),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1cd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0x4b199a&&_0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1c1))['to'](_0x4b199a,_0x122d81(0x1d4)),_0xbd3bdd[_0x122d81(0x1e7)](),_0xbd3bdd;}[_0x4907e4(0x1e6)](_0xbc6b83){const _0x13f514=_0x4907e4,_0x5809d9=this[_0x13f514(0x1c3)],_0x4183d6=_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1fb))[_0x13f514(0x1e1)][_0x13f514(0x1bc)][_0x13f514(0x1d8)];this[_0x13f514(0x1e0)][_0x13f514(0x1c5)](_0xbc6b83),_0x4183d6[_0x13f514(0x1bd)](this[_0x13f514(0x1e0)][_0x13f514(0x1c9)])||(_0x4183d6[_0x13f514(0x1ec)]([this[_0x13f514(0x1e0)][_0x13f514(0x1c9)],this[_0x13f514(0x1e0)][_0x13f514(0x1eb)]],0x0),_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1be))[_0x13f514(0x1db)](_0x13f514(0x1f8),()=>{const _0x417c9c=_0x13f514;_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1c9)]),_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1eb)]);}));}[_0x4907e4(0x1e2)](){const _0x5ee246=_0x4907e4;this[_0x5ee246(0x1e0)][_0x5ee246(0x1d6)]();}}
23
+ function _0x432f(){const _0xeb7931=['value','dialogClosed','AIChatBalloon','126LuCHpQ','focus','delegate','isTrackChangesOn','headerView','close','plugins','locale','toggleRotatorButtonsVisibility','ck-ai-chat-balloon','181240TkdHvs','applySuggestion','beforeDialogClosed','328911ldPIkp','_toggleRotatorButtonsInDialogHeader','rejectSuggestion','insertSuggestion','togglePartToolbarEnabled','Dialog','pluginName','bind','view','updateContent','remove','set','18VNqAQO','config','_createChatBalloonView','setState','showPrevious','isOfficialPlugin','2435529PUYUlj','55835NrpoVg','requires','366BURsaz','children','open','filter','showDiff','once','showNext','235656PLdfiW','commands','108XHVLmA','nextButtonView','aiChatBalloon','has','ai.availableReplyActions','_chatBalloonView','trackChanges','TrackChanges','previousButtonView','_restoreDefaultViewFocus','render','editor','areActionsDisabled','get','isPremiumPlugin','addMany','4bOrKqR','393066kzqhfu','AIBalloon','showRotator','902260jwDssQ'];_0x432f=function(){return _0xeb7931;};return _0x432f();}const _0x27488d=_0x485b;(function(_0x598fe4,_0x3f0af3){const _0x5e2281=_0x485b,_0x575fe3=_0x598fe4();while(!![]){try{const _0x5e8f5c=-parseInt(_0x5e2281(0xd8))/0x1*(parseInt(_0x5e2281(0xd9))/0x2)+parseInt(_0x5e2281(0xff))/0x3+parseInt(_0x5e2281(0x109))/0x4+-parseInt(_0x5e2281(0x100))/0x5*(-parseInt(_0x5e2281(0x102))/0x6)+-parseInt(_0x5e2281(0xe0))/0x7*(parseInt(_0x5e2281(0xea))/0x8)+parseInt(_0x5e2281(0xf9))/0x9*(-parseInt(_0x5e2281(0xdc))/0xa)+parseInt(_0x5e2281(0xed))/0xb*(parseInt(_0x5e2281(0x10b))/0xc);if(_0x5e8f5c===_0x3f0af3)break;else _0x575fe3['push'](_0x575fe3['shift']());}catch(_0x51de0d){_0x575fe3['push'](_0x575fe3['shift']());}}}(_0x432f,0x6d0d7));import{Plugin as _0x517d31}from'ckeditor5/src/core.js';function _0x485b(_0x9040e0,_0x5731f3){const _0x432f63=_0x432f();return _0x485b=function(_0x485bd3,_0x351aa0){_0x485bd3=_0x485bd3-0xd4;let _0x3da58f=_0x432f63[_0x485bd3];return _0x3da58f;},_0x485b(_0x9040e0,_0x5731f3);}import{AIBalloon as _0x505ce0}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x5811f1}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x3a4e7f}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4eee4d}from'../aicore/utils/eventnames.js';import{Dialog as _0x5c387c}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x517d31{static get[_0x27488d(0x101)](){return[_0x5c387c,_0x505ce0];}static get[_0x27488d(0xf3)](){const _0x3d03ab=_0x27488d;return _0x3d03ab(0xdf);}static get[_0x27488d(0xfe)](){return!0x0;}static get[_0x27488d(0xd6)](){return!0x0;}[_0x27488d(0x110)];constructor(_0x2588fa){const _0x28753e=_0x27488d;super(_0x2588fa),this[_0x28753e(0xf8)](_0x28753e(0x106),!0x1);}[_0x27488d(0x104)](_0x27ceb3){const _0xa561da=_0x27488d,_0x4a881b=this[_0xa561da(0x116)];this[_0xa561da(0x110)]||(this[_0xa561da(0x110)]=this[_0xa561da(0xfb)]()),_0x4a881b[_0xa561da(0xe6)][_0xa561da(0xd5)](_0xa561da(0xda))[_0xa561da(0x104)]({..._0x27ceb3,'id':_0xa561da(0x10d),'class':_0xa561da(0xe9),'mainView':this[_0xa561da(0x110)]}),this[_0xa561da(0xee)](_0x27ceb3[_0xa561da(0xdb)]),this[_0xa561da(0x110)][_0xa561da(0xf1)](!_0x27ceb3[_0xa561da(0xd4)]),this[_0xa561da(0x114)]();}[_0x27488d(0xe5)](){const _0x5a0d43=_0x27488d;this[_0x5a0d43(0x116)][_0x5a0d43(0xe6)][_0x5a0d43(0xd5)](_0x5a0d43(0xda))[_0x5a0d43(0xe5)]();}[_0x27488d(0xf6)](_0x19828a){const _0xe03c72=_0x27488d;return this[_0xe03c72(0x110)]||(this[_0xe03c72(0x110)]=this[_0xe03c72(0xfb)]()),this[_0xe03c72(0x110)][_0xe03c72(0xf6)](_0x19828a);}[_0x27488d(0xfc)](_0x253341){const _0x5b2c4c=_0x27488d;this[_0x5b2c4c(0x110)]&&this[_0x5b2c4c(0x110)][_0x5b2c4c(0xfc)](_0x253341);}[_0x27488d(0xfb)](){const _0x45965e=_0x27488d,_0x19007f=this[_0x45965e(0x116)],_0x14a6de=_0x19007f[_0x45965e(0xe6)][_0x45965e(0xd5)](_0x45965e(0xda)),_0x29d580=_0x19007f[_0x45965e(0x10a)][_0x45965e(0xd5)](_0x45965e(0x111));let _0x493e64=_0x19007f[_0x45965e(0xfa)][_0x45965e(0xd5)](_0x45965e(0x10f))||[..._0x5811f1];_0x19007f[_0x45965e(0xe6)][_0x45965e(0x10e)](_0x45965e(0x112))||(_0x493e64=_0x493e64[_0x45965e(0x105)](_0x339931=>_0x45965e(0xf0)!=_0x339931));const _0x366a36=new _0x3a4e7f(_0x19007f[_0x45965e(0xe7)],{'availableActions':_0x493e64,'showApplyButton':!0x0,'showSuggestButton':!!_0x29d580});return _0x366a36[_0x45965e(0xf4)](_0x45965e(0x106))['to'](this),_0x366a36[_0x45965e(0xe2)](..._0x4eee4d)['to'](this),_0x366a36[_0x45965e(0xe2)](_0x45965e(0xfd),_0x45965e(0x108))['to'](this),_0x14a6de[_0x45965e(0xe2)](_0x45965e(0xde))['to'](this),_0x366a36['on'](_0x45965e(0xeb),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x366a36['on'](_0x45965e(0xf0),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x366a36['on'](_0x45965e(0xef),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x29d580&&_0x366a36[_0x45965e(0xf4)](_0x45965e(0xe3))['to'](_0x29d580,_0x45965e(0xdd)),_0x366a36[_0x45965e(0x115)](),_0x366a36;}[_0x27488d(0xee)](_0x5b9850){const _0x3f82f4=_0x27488d,_0x166b62=this[_0x3f82f4(0x116)],_0x81f971=_0x166b62[_0x3f82f4(0xe6)][_0x3f82f4(0xd5)](_0x3f82f4(0xf2))[_0x3f82f4(0xf5)][_0x3f82f4(0xe4)][_0x3f82f4(0x103)];this[_0x3f82f4(0x110)][_0x3f82f4(0xe8)](_0x5b9850),_0x81f971[_0x3f82f4(0x10e)](this[_0x3f82f4(0x110)][_0x3f82f4(0x113)])||(_0x81f971[_0x3f82f4(0xd7)]([this[_0x3f82f4(0x110)][_0x3f82f4(0x113)],this[_0x3f82f4(0x110)][_0x3f82f4(0x10c)]],0x0),_0x166b62[_0x3f82f4(0xe6)][_0x3f82f4(0xd5)](_0x3f82f4(0xda))[_0x3f82f4(0x107)](_0x3f82f4(0xec),()=>{const _0x341d42=_0x3f82f4;_0x81f971[_0x341d42(0xf7)](this[_0x341d42(0x110)][_0x341d42(0x113)]),_0x81f971[_0x341d42(0xf7)](this[_0x341d42(0x110)][_0x341d42(0x10c)]);}));}[_0x27488d(0x114)](){const _0x2739a7=_0x27488d;this[_0x2739a7(0x110)][_0x2739a7(0xe1)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5445bf=_0x2146;(function(_0x1edd6d,_0x289f68){const _0x29ec1a=_0x2146,_0x24b769=_0x1edd6d();while(!![]){try{const _0x2515d8=-parseInt(_0x29ec1a(0x1e5))/0x1+-parseInt(_0x29ec1a(0x1d7))/0x2+-parseInt(_0x29ec1a(0x2b2))/0x3+-parseInt(_0x29ec1a(0x2ad))/0x4*(parseInt(_0x29ec1a(0x255))/0x5)+parseInt(_0x29ec1a(0x2ab))/0x6+parseInt(_0x29ec1a(0x1e8))/0x7+parseInt(_0x29ec1a(0x24c))/0x8;if(_0x2515d8===_0x289f68)break;else _0x24b769['push'](_0x24b769['shift']());}catch(_0x8fef1c){_0x24b769['push'](_0x24b769['shift']());}}}(_0x41bf,0x33bd9));import{ContextPlugin as _0x4c1f5f,Editor as _0xa6309}from'ckeditor5/src/core.js';import{BodyCollection as _0x1a2c57}from'ckeditor5/src/ui.js';import{CKEditorError as _0x37642f,logError as _0x32f4ac,scrollViewportToShowTarget as _0x2cdfe0,uid as _0xafb963}from'ckeditor5/src/utils.js';function _0x41bf(){const _0x285269=['ai-chat-context-form-data-size-limits-exceeded','removeSelectionFromChatContext','get','children','config','handleRemovedConversation','handleUserInteraction','ai.models.defaultModelId','clearConversationContextUI','indexes','AI_CHAT_CONTEXT_INVALID_DATA','showChangeInText','partIndex','conversationInitialized','_getPresentableSiblingContentPartIndex','setFeedItemRenderingStrategy','ai-chat-conversation-not-found','_bodyCollection','$graveyard','_aiChatUi','main','applySuggestion','rejected','prepareLoadingMessage','focusPromptInput','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','sourceResourcesLoaded','interactionDestroyed','_logError','setSelectedModel','applyOperation','addCurrentDocumentToContext','replyChangeGroupStateUpdated','change','stop','ai-chat-invalid-request','getConversation','removeSelectionFromContext','find','getPath','getTransformedByOperation','getChildAtOffset','batch','message','areActionsDisabled','updateFeedItemAIReplySources','collaboration.channelId','resetMessageInput','finishInteraction','_insertSuggestion','index','_rejectSuggestion','activeConversation','isPremiumPlugin','setModel','AI_CHAT_ABORTED_MESSAGE','ai-chat-conversation-start-failed','filter','contextItemAdded','mouseOverSuggestion','data','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_aiChatBalloon','rootName','ai-chat-context-file-too-large','getDiff','howMany','next','history','ai.chat.context','accepted','setIsUploadInProgress','domConverter','getGroupId','createRange','range','capabilitiesUpdated','_showConversationHistory','uid','ai-request-aborted','Undo','callback','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-source-resources-load-failed','forEach','aiChatBalloon','closeSourceResourceBalloon','ai-chat-controller-mouse-over','type','delete','dislike','getInteractionAndReplyById','webSearchStarted','cloneNode','_stopLastInteraction','updateContent','static','contextItemRemoved','editors','_openBalloonFor','getInteraction','AIChatBalloon','populateSourceResourceBalloon','startsWith','log','version','like','getConversations','toggleReasoning','Showing\x20conversation\x20history...','getRanges','ai-chat-context-unsupported-type','sourceId','resourceStateChanged','createdAt','contextSent','addFeedItemUserMessage','query','root','_toggleReasoning','fetchConversation','createConversation','updateResourceState','createReply','loadConversation','context','node','modelSelected','addFeedItemStaticMessage','close','updateConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION','isOfficialPlugin','clearLoadingMessage','toggleWebSearch','ai-chat-resource-load-failed','_batchToChanges','ai-chat-context-invalid-data','addFeedItemAIReply','sendUserMessage','setContextItemLoading','model','updateCapabilities','reasoningFinished','_getAIChatInteractionAPI','length','getDocumentContext','isDisabled','changes','webSearchFinished','_aiChatModels','currentReply','sources','_registerToolDataCallback','AIChatUI','outdated','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addContextOptionsChanged','530446BqAMXK','removeFromContext','enableControls','source','addUrlToContext','updateFeedItemAIReplySuggestionPartState','load','_updateRatings','showPrevious','AI_BALLOON_HEADER_TITLE','getSelectionText','getAttribute','contextItemLoadingEnded','toggleSuggestionDisplayMode','339703SKLuiL','findIndex','detachFromDom','2481255JoeTWX','open','_flushLastInteractionUI','maxOffset','_getUserPresentableContentPartDocumentRange','editing','plugins','interactionStarted','sourcePosition','scrollFeedToSuggestion','done','toViewRange','toString','loadSourceResources','clearPendingContextUI','resizedTabs','showFakeVisualSelection','ai-chat-file-upload-failed','streaming','_startConversationSafely','stopInteraction','updateCurrentDocumentInContext','ai-chat-context-unsupported-file-type','contextItems','isLoading','setIsMaximized','remove','addOperation','ready','options','push','_handleStartConversation','isModelAvailable','isCurrentDocumentInConversation','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','listenTo','revert','addCurrentDocumentToChatContext','new','Liked\x20response','resetConversationTitle','toolDataReceived','start','setConversationTitle','anchorId','dialogClosed','getReply','_updateReplyContent','slice','lastInteraction','modification','replies','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','disableControls','nextSibling','ai-no-track-changes','uiId','Disliked\x20response','addDocumentToContext','AIEditing','split','ai-chat-url-upload-failed','resource','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','addSelectionToContext','destroy','parse','pending','isUploadInProgress','selection','insertSuggestion','redo','from','AI_CHAT_UNTITLED_CONVERSATION','getDocumentData','state','chat','_setIsMaximized','lastCreated','showNext','activateTab','addFeedItemCustomElement','AI_CHAT_INVALID_REQUEST','ai.models','fetchConversations','_getDocumentRangeForReplyChanges','afterInit','mapper','createPositionAt','rejectSuggestion','addFilesToContext','setConversationContext','AI_CHAT_RESOURCE_LOAD_FAILED','showDiff','_getLastCreatedConversationId','getAll','baseVersion','AITabs','resourceId','AI_CHAT_CONTEXT_FILE_TOO_LARGE','7740760FrmJCa','TrackChanges','uploadProgressChanged','removeFeedInteraction','isStarted','bind','startInteraction','has','updateFeedItemAIReplySuggestionContent','5uWzbeW','resources','ai-chat-controller-no-active-conversation','replyId','ai-chat-missing-channel-id','toggleLoadingSkeleton','changeGroups','selectModel','TrackChangesEditing','reasoningStarted','_currentPreviewedChangeGroup','setState','viewRangeToDom','abortPromptStream','includes','setFeedItemAIReplySuggestionPartActive','getOperations','undo','selectedModel','_aiConnector','set','setChangeGroupState','delegate','resize','resetWebSearchState','AIConnector','map','init','upsertAIChatRating','ai.chat.initialConversation','_aiEditing','DocumentCompare','contextItem','sendMessage','executeCustomItemCallback','hideFakeVisualSelection','AIChatController','removeContextItem','resetReasoningState','addResourceToContext','ai-conversation-','_applyOperationsAsSuggestions','end','path','ai-chat-context-file-too-many-pages','requires','error','attachToDom','startAutoScroll','setAddContextOptions','interactionFinished','ai-chat-conversation-init-failed','marker','hasChanges','locale','view','text','unshift','add','commands','isDocumentOperation','previous','AI_CHAT_GENERIC_ERROR','addFileToContext','interactionCreated','data-id','_scrollToSuggestionRange','messageId','addFeedItemAISuggestion','isInContext','_integrateEditor','_applySuggestion','addContextItem','alignToTop','_aiChatBalloonShowDiff','_handleUIUserMessage','getFirstRange','_toggleWebSearch','pluginName','resizeTabs','replyContentUpdated','interactionId','getChild','removed','createPositionFromPath','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','535398iWICFo','content','1592356HxSftW','isCurrentDocumentInContext','addFeedItemError','addSelectionToChatContext','startConversation','589047zVzCfM','document','_createFromRanges','addFeedInteractionHeader','getChildren','getRoot','getContentParts','indexOf','sessionId','setLoadingMessage','current-document','_removeFromContext','documentContextContent','replyCreated','updateFeedItemAIReplyContent','mouseLeaveSuggestion'];_0x41bf=function(){return _0x285269;};return _0x41bf();}import{AIConnector as _0x134032}from'../aicore/aiconnector.js';import{AITabs as _0x3608de}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5eeb0c}from'./model/aichatconversation.js';import{getTranslation as _0x130df6}from'../aicore/utils/common-translations.js';import{AIModels as _0x10fadd}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1cd8a8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2dafad,DATA_ID_MODEL_ATTRIBUTE as _0x4e7f6b}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x56c479,getOperationsFromReply as _0x2de689}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4341ca,getMinimalSelection as _0x591691}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x2146(_0x152081,_0x85cccf){const _0x41bf5d=_0x41bf();return _0x2146=function(_0x2146c3,_0xd3aaaf){_0x2146c3=_0x2146c3-0x1d6;let _0x19f801=_0x41bf5d[_0x2146c3];return _0x19f801;},_0x2146(_0x152081,_0x85cccf);}import{ModelRange as _0x7d7dfd,_DetachOperation as _0x21ef70}from'ckeditor5/src/engine.js';import{findOne as _0x11fefc,getAttribute as _0x4280bc,serialize as _0x2b61cd,Document as _0x1d4d3c,findByAttribute as _0x183569}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x4c1f5f{[_0x5445bf(0x273)];[_0x5445bf(0x268)];[_0x5445bf(0x2d5)];[_0x5445bf(0x358)];[_0x5445bf(0x300)];[_0x5445bf(0x34a)]=new Map();[_0x5445bf(0x25f)]=null;[_0x5445bf(0x2d3)];static get[_0x5445bf(0x282)](){return[_0x134032,_0x2dafad];}static get[_0x5445bf(0x2a3)](){const _0x1bc913=_0x5445bf;return _0x1bc913(0x279);}static get[_0x5445bf(0x346)](){return!0x0;}static get[_0x5445bf(0x2f7)](){return!0x0;}[_0x5445bf(0x270)](){const _0x7a8a69=_0x5445bf;this[_0x7a8a69(0x2d3)]=new _0x1a2c57(this[_0x7a8a69(0x33f)][_0x7a8a69(0x28b)]),this[_0x7a8a69(0x2d3)][_0x7a8a69(0x284)](),this[_0x7a8a69(0x268)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x26e)),this[_0x7a8a69(0x2d5)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x35c)),this[_0x7a8a69(0x273)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x223)),this[_0x7a8a69(0x358)]=new _0x10fadd({'connector':this[_0x7a8a69(0x268)],'config':this[_0x7a8a69(0x33f)][_0x7a8a69(0x2c6)][_0x7a8a69(0x2c4)](_0x7a8a69(0x23b)),'locale':this[_0x7a8a69(0x33f)][_0x7a8a69(0x28b)]});const _0x446b1a=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x249));this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2b1),()=>{const _0x3e2b68=_0x7a8a69;this[_0x3e2b68(0x1fb)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x34d),(_0x6434cd,_0x549643)=>{const _0xdd29e7=_0x7a8a69;this[_0xdd29e7(0x2a0)]({'userMessage':_0x549643});}),this[_0x7a8a69(0x20b)](_0x446b1a,_0x7a8a69(0x1f7),(_0x5a82c5,_0x4799c2)=>{const _0x2fac8a=_0x7a8a69;this[_0x2fac8a(0x235)](_0x4799c2);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2a4),()=>{const _0x9c1e24=_0x7a8a69;_0x446b1a[_0x9c1e24(0x26c)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x262),async()=>{const _0x5f4478=_0x7a8a69;await this[_0x5f4478(0x320)](),await this[_0x5f4478(0x1ea)](),this[_0x5f4478(0x2c3)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x222),()=>{const _0x2089b9=_0x7a8a69;this[_0x2089b9(0x20d)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x294),(_0x547721,_0x2a2762)=>{const _0x14a781=_0x7a8a69;this[_0x14a781(0x2f6)]?.[_0x14a781(0x242)](Array[_0x14a781(0x230)](_0x2a2762));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1db),(_0x230acd,_0x27d9fe)=>{const _0x2995e7=_0x7a8a69;this[_0x2995e7(0x2f6)]?.[_0x2995e7(0x1db)](_0x27d9fe);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x277),(_0x30dedd,_0x59ec4a)=>{const _0x3a8cb4=_0x7a8a69;_0x59ec4a[_0x3a8cb4(0x313)](this[_0x3a8cb4(0x33f)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x27c),(_0x50b055,_0x3e3b93)=>{const _0x9422af=_0x7a8a69;this[_0x9422af(0x2f6)]?.[_0x9422af(0x27c)](_0x3e3b93[_0x9422af(0x1da)],_0x3e3b93[_0x9422af(0x226)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x27a),(_0x202090,_0xb5131b)=>{const _0xced8f8=_0x7a8a69;this[_0xced8f8(0x2bd)](_0xb5131b);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1f5),(_0x582c75,_0x572e3c)=>{const _0xd66d66=_0x7a8a69;this[_0xd66d66(0x2f6)]?.[_0xd66d66(0x1f5)](_0x572e3c[_0xd66d66(0x332)],_0x572e3c[_0xd66d66(0x337)],_0x572e3c[_0xd66d66(0x310)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x348),()=>{const _0x5ad86f=_0x7a8a69;this[_0x5ad86f(0x2a2)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x32e),()=>{const _0x20b5f9=_0x7a8a69;this[_0x20b5f9(0x339)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x25c),(_0xfab047,_0x2714ae)=>{const _0x46c1a1=_0x7a8a69;this[_0x46c1a1(0x2f6)]?.[_0x46c1a1(0x2f8)](_0x2714ae);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x32c),(_0x35dfe6,{replyId:_0x492f2c})=>{const _0x17d017=_0x7a8a69;console[_0x17d017(0x32a)](_0x17d017(0x20f),_0x492f2c);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x31c),(_0x21815c,{replyId:_0xad8fd5})=>{const _0x543ab1=_0x7a8a69;console[_0x543ab1(0x32a)](_0x543ab1(0x221),_0xad8fd5);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x22e),(_0x35338c,_0x5a6ad5)=>{const _0x5e538f=_0x7a8a69;this[_0x5e538f(0x2f3)](_0x5a6ad5);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2cd),(_0x5b7fe9,{replyId:_0x1d4593,partIndex:_0x4c0c78})=>{const _0x53bfb6=_0x7a8a69;this[_0x53bfb6(0x29f)]=this[_0x53bfb6(0x2d5)][_0x53bfb6(0x245)],this[_0x53bfb6(0x325)](_0x1d4593,_0x4c0c78);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2fd),(_0x16108f,{replyId:_0x3504f4,partIndex:_0x393d44})=>{const _0x1c4285=_0x7a8a69,_0x5c151b=this[_0x1c4285(0x23d)](_0x3504f4,_0x393d44);_0x5c151b&&_0x1c4285(0x2d4)!=_0x5c151b[_0x1c4285(0x30d)][_0x1c4285(0x338)][_0x1c4285(0x301)]&&this[_0x1c4285(0x273)][_0x1c4285(0x1f8)]([_0x5c151b[_0x1c4285(0x30d)]],_0x1c4285(0x319));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2c1),()=>{const _0x456d69=_0x7a8a69;this[_0x456d69(0x273)][_0x456d69(0x278)](_0x456d69(0x319));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2d7),(_0x12d711,_0xff4fb6)=>{const _0x419441=_0x7a8a69;this[_0x419441(0x273)][_0x419441(0x278)](_0x419441(0x319)),this[_0x419441(0x29c)](_0xff4fb6);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1e4),async(_0x128ecf,{replyId:_0x1f03c9,showDiff:_0x2453c1})=>{const _0x2d87b4=_0x7a8a69,{reply:_0x375286}=this[_0x2d87b4(0x31d)](_0x1f03c9),_0x5f2de7=_0x375286[_0x2d87b4(0x2b8)]({'showDiff':_0x2453c1});await this[_0x2d87b4(0x2d5)][_0x2d87b4(0x254)]({'id':_0x375286['id'],'parts':_0x5f2de7,'renderingStrategy':_0x2d87b4(0x322)});}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x241),(_0x55728c,{replyId:_0x4d850d,partIndex:_0x1487fa})=>{const _0x155821=_0x7a8a69;this[_0x155821(0x2f5)]({'replyId':_0x4d850d,'partIndex':_0x1487fa}),this[_0x155821(0x273)][_0x155821(0x278)](_0x155821(0x319));}),this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x253)](_0x7a8a69(0x327))&&(this[_0x7a8a69(0x300)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x327)),this[_0x7a8a69(0x269)](_0x7a8a69(0x29f),!0x1),this[_0x7a8a69(0x300)][_0x7a8a69(0x251)](_0x7a8a69(0x245))['to'](this,_0x7a8a69(0x29f)),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x1e4),()=>{const _0x571499=_0x7a8a69,{replyId:_0x5ac10e,partIndex:_0x2f1ab1}=this[_0x571499(0x25f)];this[_0x571499(0x29f)]=!this[_0x571499(0x29f)];const {reply:_0x5a02c8}=this[_0x571499(0x31d)](_0x5ac10e),_0x3d665a=_0x5a02c8[_0x571499(0x2b8)]({'showDiff':this[_0x571499(0x29f)],'groupIndex':_0x2f1ab1});this[_0x571499(0x300)][_0x571499(0x321)]({'part':_0x3d665a[0x0],'renderingStrategy':_0x571499(0x322),'keepErrors':!0x0});}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x2d7),()=>{const _0x57f03b=_0x7a8a69,{replyId:_0x3121ce,partIndex:_0x253b06}=this[_0x57f03b(0x25f)];this[_0x57f03b(0x29c)]({'replyId':_0x3121ce,'partIndex':_0x253b06}),this[_0x57f03b(0x300)][_0x57f03b(0x260)](_0x57f03b(0x308));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x22e),()=>{const _0x379185=_0x7a8a69,{replyId:_0x1338df,partIndex:_0x25d180}=this[_0x379185(0x25f)];this[_0x379185(0x2f3)]({'replyId':_0x1338df,'partIndex':_0x25d180}),this[_0x379185(0x300)][_0x379185(0x260)](_0x379185(0x308));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x241),()=>{const _0x375f83=_0x7a8a69,{replyId:_0x298cd9,partIndex:_0x545de0}=this[_0x375f83(0x25f)];this[_0x375f83(0x2f5)]({'replyId':_0x298cd9,'partIndex':_0x545de0}),this[_0x375f83(0x300)][_0x375f83(0x260)](_0x375f83(0x2d8));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x237),()=>{const _0x389a01=_0x7a8a69,{replyId:_0x94fe4c,partIndex:_0x182638}=this[_0x389a01(0x25f)],_0x2c93eb=this[_0x389a01(0x2d0)](_0x94fe4c,_0x182638,_0x389a01(0x305));null!==_0x2c93eb&&this[_0x389a01(0x325)](_0x94fe4c,_0x2c93eb);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x1df),()=>{const _0x2a3416=_0x7a8a69,{replyId:_0x428451,partIndex:_0x398890}=this[_0x2a3416(0x25f)],_0x18f096=this[_0x2a3416(0x2d0)](_0x428451,_0x398890,_0x2a3416(0x292));null!==_0x18f096&&this[_0x2a3416(0x325)](_0x428451,_0x18f096);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x215),(_0x27b690,{id:_0x3c1d3d})=>{const _0x2cd8c6=_0x7a8a69;if(_0x2cd8c6(0x317)!==_0x3c1d3d)return;const {replyId:_0x8459dd,partIndex:_0x3278d0}=this[_0x2cd8c6(0x25f)];this[_0x2cd8c6(0x25f)]=null,this[_0x2cd8c6(0x2d5)][_0x2cd8c6(0x264)]({'id':_0x8459dd,'index':_0x3278d0,'isActive':!0x1});}));}async[_0x5445bf(0x23e)](){const _0x5094da=_0x5445bf;this[_0x5094da(0x33f)]instanceof _0xa6309?this[_0x5094da(0x29b)](this[_0x5094da(0x33f)]):this[_0x5094da(0x20b)](this[_0x5094da(0x33f)][_0x5094da(0x324)],_0x5094da(0x28f),(_0x54a511,_0x19ae5b)=>{const _0x735f21=_0x5094da;_0x19ae5b['on'](_0x735f21(0x204),()=>{const _0x54d4d3=_0x735f21;this[_0x54d4d3(0x29b)](_0x19ae5b);});});const _0x33c4e2=this[_0x5094da(0x33f)][_0x5094da(0x2c6)][_0x5094da(0x2c4)](_0x5094da(0x272));let _0x20b4d6=_0x33c4e2;if(_0x5094da(0x236)!=_0x33c4e2||(_0x20b4d6=await this[_0x5094da(0x246)](),_0x20b4d6))return _0x5094da(0x20e)==_0x20b4d6?this[_0x5094da(0x1fb)]():this[_0x5094da(0x33e)](_0x20b4d6);}async[_0x5445bf(0x229)](){const _0x1288b8=_0x5445bf;return await this[_0x1288b8(0x320)](),this[_0x1288b8(0x2d3)][_0x1288b8(0x1e7)](),super[_0x1288b8(0x229)]();}[_0x5445bf(0x2f3)](_0x49f652){const _0xaa027b=_0x5445bf,_0xf23b17=_0x1cd8a8(this[_0xaa027b(0x33f)]);if(!_0xf23b17[_0xaa027b(0x1ee)][_0xaa027b(0x253)](_0xaa027b(0x24d)))throw new _0x37642f(_0xaa027b(0x21f),null);const _0x15de9e=this[_0xaa027b(0x33f)][_0xaa027b(0x1ee)][_0xaa027b(0x2c4)](_0xaa027b(0x274)),{reply:_0x2446fb,interaction:_0x267378}=this[_0xaa027b(0x31d)](_0x49f652[_0xaa027b(0x258)]),_0x4a3a1e=this[_0xaa027b(0x23d)](_0x49f652[_0xaa027b(0x258)],_0x49f652[_0xaa027b(0x2ce)]),_0x58e0c7=void 0x0!==_0x49f652[_0xaa027b(0x2ce)]?[_0x2446fb[_0xaa027b(0x25b)][_0x49f652[_0xaa027b(0x2ce)]]]:_0x2446fb[_0xaa027b(0x25b)][_0xaa027b(0x2fb)](_0x16c42c=>_0xaa027b(0x22b)==_0x16c42c[_0xaa027b(0x233)]),_0x2b0e2c=_0x58e0c7[_0xaa027b(0x26f)](_0x4a7430=>_0x2446fb[_0xaa027b(0x25b)][_0xaa027b(0x2b9)](_0x4a7430));if(!_0x4a3a1e||_0xaa027b(0x2d4)==_0x4a3a1e[_0xaa027b(0x30d)][_0xaa027b(0x338)][_0xaa027b(0x301)])return void _0x2b0e2c[_0xaa027b(0x316)](_0x59a1ef=>_0x2446fb[_0xaa027b(0x26a)](_0x59a1ef,_0xaa027b(0x35d)));_0x2b0e2c[_0xaa027b(0x316)](_0x121129=>_0x2446fb[_0xaa027b(0x26a)](_0x121129,_0xaa027b(0x308)));const _0x5ca64c=_0x2de689({'editor':_0xf23b17,'reply':_0x2446fb,'interaction':_0x267378,'groups':_0x58e0c7,'transform':!0x0,'documentCompare':_0x15de9e,'documentCompareOptions':{'anchor':_0xaa027b(0x2d6),'markDeletions':!0x0}});let _0x245057;_0x4a3a1e&&this[_0xaa027b(0x297)](_0x4a3a1e[_0xaa027b(0x30d)]),_0xf23b17[_0xaa027b(0x34f)][_0xaa027b(0x2e3)](_0x109217=>{const _0x4691ee=_0xaa027b;_0x245057=_0x109217[_0x4691ee(0x2ec)],_0xf23b17[_0x4691ee(0x1ee)][_0x4691ee(0x2c4)](_0x4691ee(0x25d))[_0x4691ee(0x27e)](_0x5ca64c),this[_0x4691ee(0x273)][_0x4691ee(0x278)](_0x4691ee(0x319));}),this[_0xaa027b(0x34a)][_0xaa027b(0x269)](_0x245057,{'interactionId':_0x267378['id'],'replyId':_0x2446fb['id'],'indexes':_0x2b0e2c[_0xaa027b(0x218)]()}),this[_0xaa027b(0x1de)](_0x2446fb);}[_0x5445bf(0x29c)](_0x509a45){const _0x192207=_0x5445bf,_0x47a044=_0x1cd8a8(this[_0x192207(0x33f)]),_0x1693f0=this[_0x192207(0x33f)][_0x192207(0x1ee)][_0x192207(0x2c4)](_0x2dafad),{reply:_0x357039,interaction:_0x38f5fa}=this[_0x192207(0x31d)](_0x509a45[_0x192207(0x258)]),_0x11bb40=this[_0x192207(0x23d)](_0x509a45[_0x192207(0x258)],_0x509a45[_0x192207(0x2ce)]),_0x18d0be=void 0x0!==_0x509a45[_0x192207(0x2ce)]?[_0x357039[_0x192207(0x25b)][_0x509a45[_0x192207(0x2ce)]]]:_0x357039[_0x192207(0x25b)][_0x192207(0x2fb)](_0x522777=>_0x192207(0x22b)==_0x522777[_0x192207(0x233)]),_0x331d70=_0x18d0be[_0x192207(0x26f)](_0x20f6fb=>_0x357039[_0x192207(0x25b)][_0x192207(0x2b9)](_0x20f6fb));if(!_0x11bb40||_0x192207(0x2d4)==_0x11bb40[_0x192207(0x30d)][_0x192207(0x338)][_0x192207(0x301)])return void _0x331d70[_0x192207(0x316)](_0x3a3027=>_0x357039[_0x192207(0x26a)](_0x3a3027,_0x192207(0x35d)));_0x331d70[_0x192207(0x316)](_0x7255ea=>_0x357039[_0x192207(0x26a)](_0x7255ea,_0x192207(0x308)));const _0x34dd2a=_0x2de689({'editor':_0x47a044,'reply':_0x357039,'interaction':_0x38f5fa,'groups':_0x18d0be,'transform':!0x0,'documentCompare':_0x1693f0,'documentCompareOptions':{'anchor':_0x192207(0x2d6),'markDeletions':!0x1}});let _0xb24e28;_0x11bb40&&this[_0x192207(0x297)](_0x11bb40[_0x192207(0x30d)]),_0x47a044[_0x192207(0x34f)][_0x192207(0x2e3)](_0x457ed0=>{const _0x498aa8=_0x192207;_0xb24e28=_0x457ed0[_0x498aa8(0x2ec)];for(const _0x1fa324 of _0x34dd2a)_0x1fa324[_0x498aa8(0x248)]=_0x47a044[_0x498aa8(0x34f)][_0x498aa8(0x2b3)][_0x498aa8(0x32b)],_0x56c479(_0x47a044,_0x1fa324),_0x457ed0[_0x498aa8(0x2ec)][_0x498aa8(0x203)](_0x1fa324),_0x47a044[_0x498aa8(0x34f)][_0x498aa8(0x2e0)](_0x1fa324);}),this[_0x192207(0x34a)][_0x192207(0x269)](_0xb24e28,{'interactionId':_0x38f5fa['id'],'replyId':_0x357039['id'],'indexes':_0x331d70[_0x192207(0x218)]()}),this[_0x192207(0x1de)](_0x357039);}[_0x5445bf(0x2f5)](_0x23738b){const _0x747454=_0x5445bf,{reply:_0x288e35}=this[_0x747454(0x31d)](_0x23738b[_0x747454(0x258)]);_0x288e35[_0x747454(0x26a)](_0x23738b[_0x747454(0x2ce)],_0x747454(0x2d8));}[_0x5445bf(0x325)](_0x39afd5,_0x48ce9b){const _0x10712f=_0x5445bf;if(!this[_0x10712f(0x300)])return;const {reply:_0x58e9c9}=this[_0x10712f(0x31d)](_0x39afd5),_0x552edb=_0x58e9c9[_0x10712f(0x2b8)]({'showDiff':this[_0x10712f(0x29f)]});let _0x4a999b,_0x2b7a68;if(void 0x0!==_0x48ce9b?(_0x2b7a68=_0x552edb[_0x10712f(0x2e8)](_0x33520c=>_0x33520c[_0x10712f(0x2f4)]==_0x48ce9b),_0x4a999b=_0x2b7a68?.[_0x10712f(0x2f4)]):(_0x2b7a68=_0x552edb[0x0],_0x4a999b=_0x2b7a68[_0x10712f(0x2f4)]),this[_0x10712f(0x25f)]?.[_0x10712f(0x258)]==_0x39afd5&&this[_0x10712f(0x25f)]?.[_0x10712f(0x2ce)]==_0x4a999b)return;const _0x23a9b9=this[_0x10712f(0x1ec)](_0x39afd5,_0x58e9c9,_0x2b7a68);if(!_0x23a9b9)return void this[_0x10712f(0x300)][_0x10712f(0x343)]();this[_0x10712f(0x25f)]={'replyId':_0x39afd5,'partIndex':_0x4a999b},this[_0x10712f(0x297)](_0x23a9b9,!0x0);const _0x36328c=this[_0x10712f(0x2d0)](_0x39afd5,_0x4a999b,_0x10712f(0x305));this[_0x10712f(0x300)][_0x10712f(0x321)]({'part':_0x2b7a68,'renderingStrategy':_0x10712f(0x322)}),this[_0x10712f(0x300)][_0x10712f(0x1e9)]({'index':_0x4a999b,'title':_0x130df6(this[_0x10712f(0x33f)][_0x10712f(0x28b)],_0x10712f(0x1e0),(_0x4a999b+0x1)[_0x10712f(0x1f4)]()),'showRotator':null!==_0x36328c,'ranges':[_0x23a9b9],'areActionsDisabled':_0x58e9c9[_0x10712f(0x2ee)]}),this[_0x10712f(0x300)][_0x10712f(0x260)](_0x10712f(0x22b)),this[_0x10712f(0x2d5)][_0x10712f(0x1f1)](_0x39afd5,_0x4a999b),this[_0x10712f(0x2d5)][_0x10712f(0x264)]({'id':_0x39afd5,'index':_0x4a999b,'isActive':!0x0});}[_0x5445bf(0x2d0)](_0x5dff48,_0x469bd2,_0x3948ff){const _0x318563=_0x5445bf,{reply:_0x324131}=this[_0x318563(0x31d)](_0x5dff48),_0x59db41=_0x324131[_0x318563(0x2b8)]({'showDiff':this[_0x318563(0x29f)]});if(0x1==_0x59db41[_0x318563(0x353)])return null;const _0x9dd389=_0x59db41[_0x318563(0x1e6)](_0x1728ce=>_0x1728ce[_0x318563(0x2f4)]==_0x469bd2),_0x1d7e85=_0x318563(0x305)==_0x3948ff?0x1:-0x1;let _0x58e3a2=_0x59db41['at']((_0x9dd389+_0x1d7e85)%_0x59db41[_0x318563(0x353)])[_0x318563(0x2f4)],_0x286fb9=_0x59db41[_0x58e3a2];for(;!this[_0x318563(0x1ec)](_0x5dff48,_0x324131,_0x286fb9);){if(_0x58e3a2=_0x59db41['at']((_0x58e3a2+_0x1d7e85)%_0x59db41[_0x318563(0x353)])[_0x318563(0x2f4)],_0x58e3a2===_0x9dd389)return null;_0x286fb9=_0x59db41[_0x58e3a2];}return _0x58e3a2;}[_0x5445bf(0x1ec)](_0x2489e2,_0x35fa81,_0x1d1a0f){const _0x475fbf=_0x5445bf,_0x3b769b=_0x35fa81[_0x475fbf(0x25b)];if(!_0x1d1a0f[_0x475fbf(0x28a)])return null;const _0x1e76d6=_0x3b769b[_0x475fbf(0x2e8)](_0x3a0de7=>_0x3a0de7[_0x475fbf(0x2f4)]==_0x1d1a0f[_0x475fbf(0x2f4)]);if(_0x475fbf(0x22b)!==_0x1e76d6?.[_0x475fbf(0x233)])return null;const _0x3004de=this[_0x475fbf(0x23d)](_0x2489e2,_0x1d1a0f[_0x475fbf(0x2f4)]);if(!_0x3004de)return null;const {range:_0x35f72a,currentIndex:_0x2c818c}=_0x3004de;return _0x475fbf(0x2d4)==_0x35f72a[_0x475fbf(0x338)][_0x475fbf(0x301)]?(_0x35fa81[_0x475fbf(0x26a)](_0x2c818c,_0x475fbf(0x35d)),null):_0x3004de[_0x475fbf(0x30d)];}[_0x5445bf(0x23d)](_0x4886d6,_0x4b9c8c){const _0x3544f7=_0x5445bf,_0x14cd2e=_0x1cd8a8(this[_0x3544f7(0x33f)]),{reply:_0x936479,interaction:_0x40ffc4}=this[_0x3544f7(0x31d)](_0x4886d6),_0x31e661=_0x936479[_0x3544f7(0x25b)][_0x3544f7(0x2fb)](_0x11d8b4=>_0x3544f7(0x22b)==_0x11d8b4[_0x3544f7(0x233)]),_0x37aa35=_0x31e661[_0x3544f7(0x26f)](_0x26dfaf=>_0x936479[_0x3544f7(0x25b)][_0x3544f7(0x2b9)](_0x26dfaf));void 0x0===_0x4b9c8c&&(_0x4b9c8c=_0x37aa35[0x0]);const _0x73b7ad=_0x37aa35[_0x3544f7(0x2b9)](_0x4b9c8c);if(-0x1==_0x73b7ad)return null;const _0x1650d2=_0x31e661[_0x73b7ad],_0x67dead=new _0x1d4d3c([]),_0x36b646=new _0x1d4d3c([]);for(const _0x2ac54c of _0x1650d2[_0x3544f7(0x356)])if(_0x3544f7(0x2a8)!=_0x2ac54c[_0x3544f7(0x31a)]&&_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x2ac54c[_0x3544f7(0x340)][_0x3544f7(0x31f)](!0x0)),_0x3544f7(0x20e)!=_0x2ac54c[_0x3544f7(0x31a)]){const _0x483479=_0x11fefc(_0x449ad4=>_0x4280bc(_0x449ad4,_0x3544f7(0x296))==_0x2ac54c['id'],_0x936479[_0x3544f7(0x2be)],!0x0);_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x483479[_0x3544f7(0x31f)](!0x0));}if(0x0==_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x353)]){if(_0x1650d2[_0x3544f7(0x356)][0x0][_0x3544f7(0x214)]){const _0x1fb2e4=_0x183569(_0x3544f7(0x296),_0x1650d2[_0x3544f7(0x356)][0x0][_0x3544f7(0x214)],_0x936479[_0x3544f7(0x2be)]);_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x28e)](_0x1fb2e4[_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x28e)](_0x1fb2e4[_0x3544f7(0x31f)](!0x0)),_0x1fb2e4[_0x3544f7(0x21e)]&&(_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x1fb2e4[_0x3544f7(0x21e)][_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x1fb2e4[_0x3544f7(0x21e)][_0x3544f7(0x31f)](!0x0)));}else{const _0x4a818b=_0x936479[_0x3544f7(0x2be)][_0x3544f7(0x2c5)][0x0];if(!_0x4a818b)return null;_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x4a818b[_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x4a818b[_0x3544f7(0x31f)](!0x0));}}const _0x3c7bb5=_0x40ffc4[_0x3544f7(0x354)](),_0x26c5de=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x3c7bb5[_0x3544f7(0x2ac)]),_0x52b672=_0x2b61cd(_0x67dead),_0x400b65=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x52b672),_0xdf2cb8=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x52b672),_0x22b1c3=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x240)](_0x400b65,0x0),_0x22ac21=_0x2b61cd(_0x36b646),_0x301d02={'anchor':_0x22b1c3,'markDeletions':!0x1},_0x59995f=_0x14cd2e[_0x3544f7(0x1ee)][_0x3544f7(0x2c4)](_0x2dafad)[_0x3544f7(0x303)](_0x52b672,_0x22ac21,_0x301d02)[_0x3544f7(0x265)]();if(!_0x59995f[_0x3544f7(0x353)])return null;_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2e3)](_0x4e9119=>{const _0x378f73=_0x3544f7;for(const _0x57771a of _0x59995f)if(_0x378f73(0x202)==_0x57771a[_0x378f73(0x31a)]){const _0x57a3c4=_0x57771a[_0x378f73(0x1f0)],_0x445997=_0x57771a[_0x378f73(0x304)],_0x58f936=new _0x21ef70(_0x57a3c4,_0x445997);_0x4e9119[_0x378f73(0x2ec)][_0x378f73(0x203)](_0x58f936),_0x14cd2e[_0x378f73(0x34f)][_0x378f73(0x2e0)](_0x58f936);}else _0x378f73(0x289)!==_0x57771a[_0x378f73(0x31a)]&&(_0x57771a[_0x378f73(0x248)]=null,_0x57771a[_0x378f73(0x291)]=!0x1,_0x4e9119[_0x378f73(0x2ec)][_0x378f73(0x203)](_0x57771a),_0x14cd2e[_0x378f73(0x34f)][_0x378f73(0x2e0)](_0x57771a));});const _0x4c130b=_0x591691(_0x14cd2e,_0x59995f,_0x400b65);_0x4341ca(_0x14cd2e[_0x3544f7(0x34f)],_0x4c130b);const _0x5db813=_0x4c130b[_0x3544f7(0x2a1)]()[_0x3544f7(0x212)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x36ebd3=_0x4c130b[_0x3544f7(0x2a1)]()[_0x3544f7(0x27f)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x11aa64=[];let _0x26ed0e=_0x400b65,_0x44fbfa=_0xdf2cb8;for(let _0x225939=0x0;_0x225939<_0x36ebd3[_0x3544f7(0x353)];_0x225939++){const _0x50b2e0=_0x26ed0e[_0x3544f7(0x1eb)]-_0x36ebd3[_0x225939];_0x11aa64[_0x225939]=_0x44fbfa[_0x3544f7(0x1eb)]-_0x50b2e0,_0x26ed0e=_0x26ed0e[_0x3544f7(0x2eb)](_0x36ebd3[_0x225939]),_0x44fbfa=_0x44fbfa[_0x3544f7(0x2eb)](_0x11aa64[_0x225939]);}const _0x34c615=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x30c)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0xdf2cb8,_0x5db813),_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0xdf2cb8,_0x11aa64)),_0x1aaae9=_0xdf2cb8[_0x3544f7(0x2a7)](0x0)[_0x3544f7(0x1e2)](_0x4e7f6b),_0x1ff5fa=Array[_0x3544f7(0x230)](_0x26c5de[_0x3544f7(0x2b6)]())[_0x3544f7(0x2e8)](_0x1283de=>_0x1283de[_0x3544f7(0x1e2)](_0x4e7f6b)==_0x1aaae9)[_0x3544f7(0x2e9)](),_0x572f92=_0x34c615[_0x3544f7(0x212)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x56003e=_0x34c615[_0x3544f7(0x27f)][_0x3544f7(0x280)][_0x3544f7(0x218)]();_0x572f92[0x0]=_0x1ff5fa[0x0]+_0x572f92[0x0],_0x56003e[0x0]=_0x1ff5fa[0x0]+_0x56003e[0x0];let _0x1a39d3=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x30c)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x2b7)](),_0x572f92),_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x2b7)](),_0x56003e));const _0x571d74=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x306)][_0x3544f7(0x265)](_0x3c7bb5[_0x3544f7(0x32b)]);for(const _0x103298 of _0x571d74)_0x1a39d3=_0x7d7dfd[_0x3544f7(0x2b4)](_0x1a39d3[_0x3544f7(0x2ea)](_0x103298));return{'range':_0x1a39d3,'currentIndex':_0x4b9c8c};}[_0x5445bf(0x29b)](_0x43ab24){const _0x2f91b9=_0x5445bf;if(!_0x43ab24[_0x2f91b9(0x1ee)][_0x2f91b9(0x253)](_0x2f91b9(0x312)))return;const _0x4f9ca2=_0x43ab24[_0x2f91b9(0x290)][_0x2f91b9(0x2c4)](_0x2f91b9(0x266)),_0x4ae406=_0x43ab24[_0x2f91b9(0x290)][_0x2f91b9(0x2c4)](_0x2f91b9(0x22f));this[_0x2f91b9(0x20b)](_0x4f9ca2,_0x2f91b9(0x20c),(_0x32daf9,_0x7cec32,_0x2c0139)=>{const _0x371371=_0x2f91b9,_0x5724c1=this[_0x371371(0x34a)][_0x371371(0x2c4)](_0x7cec32);if(!_0x5724c1)return;const _0x2e3ef3=this[_0x371371(0x2f6)][_0x371371(0x326)](_0x5724c1[_0x371371(0x2a6)])[_0x371371(0x216)](_0x5724c1[_0x371371(0x258)]);_0x5724c1[_0x371371(0x2cb)][_0x371371(0x316)](_0x8e461d=>_0x2e3ef3[_0x371371(0x26a)](_0x8e461d,_0x371371(0x22b))),this[_0x371371(0x34a)][_0x371371(0x31b)](_0x7cec32),this[_0x371371(0x34a)][_0x371371(0x269)](_0x2c0139,_0x5724c1);}),this[_0x2f91b9(0x20b)](_0x4ae406,_0x2f91b9(0x20c),(_0x3a912c,_0x44c9ee,_0x27cec3)=>{const _0x20e71d=_0x2f91b9,_0x2fe3fa=this[_0x20e71d(0x34a)][_0x20e71d(0x2c4)](_0x44c9ee);if(!_0x2fe3fa)return;const _0x4d5441=this[_0x20e71d(0x2f6)][_0x20e71d(0x326)](_0x2fe3fa[_0x20e71d(0x2a6)])[_0x20e71d(0x216)](_0x2fe3fa[_0x20e71d(0x258)]);_0x2fe3fa[_0x20e71d(0x2cb)][_0x20e71d(0x316)](_0x105cec=>_0x4d5441[_0x20e71d(0x26a)](_0x105cec,_0x20e71d(0x308))),this[_0x20e71d(0x34a)][_0x20e71d(0x31b)](_0x44c9ee),this[_0x20e71d(0x34a)][_0x20e71d(0x269)](_0x27cec3,_0x2fe3fa);});}async[_0x5445bf(0x33e)](_0x5b7db5){const _0x623681=_0x5445bf;this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x253)](_0x623681(0x327))&&this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x2c4)](_0x623681(0x327))[_0x623681(0x343)](),(this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x2c4)](_0x3608de)[_0x623681(0x28c)][_0x623681(0x238)](_0x623681(0x234)),this[_0x623681(0x2d5)][_0x623681(0x2d1)](_0x623681(0x322)),this[_0x623681(0x2d5)][_0x623681(0x25a)](!0x0),await this[_0x623681(0x320)]());try{await this[_0x623681(0x268)][_0x623681(0x33a)](_0x5b7db5)[_0x623681(0x2e6)](),await this[_0x623681(0x1fb)](_0x5b7db5),this[_0x623681(0x344)]('\x20'),await this[_0x623681(0x2f6)][_0x623681(0x1dd)](_0x5b7db5,this[_0x623681(0x273)][_0x623681(0x2ba)]),this[_0x623681(0x2f6)][_0x623681(0x209)]()&&this[_0x623681(0x20d)]();}catch(_0x39343c){this[_0x623681(0x2d5)][_0x623681(0x2af)]({'errorMessage':_0x130df6(this[_0x623681(0x33f)][_0x623681(0x28b)],_0x623681(0x2ff)),'id':_0x5b7db5}),this[_0x623681(0x2de)](new _0x37642f(_0x623681(0x2d2),this,{'error':_0x39343c}));}finally{this[_0x623681(0x2d5)][_0x623681(0x285)](),this[_0x623681(0x2d5)][_0x623681(0x2d1)](_0x623681(0x1fa)),this[_0x623681(0x2d5)][_0x623681(0x25a)](!0x1);}}async[_0x5445bf(0x246)](){const _0x5e2803=_0x5445bf,_0x2c3fdf=this[_0x5e2803(0x268)][_0x5e2803(0x23c)](this[_0x5e2803(0x30b)](),{'limit':0x1,'sortBy':_0x5e2803(0x334)});try{const _0x23d801=await _0x2c3fdf[_0x5e2803(0x32d)]();return _0x23d801[_0x5e2803(0x353)]?_0x23d801[0x0]['id']:_0x5e2803(0x20e);}catch(_0x2f8b87){return this[_0x5e2803(0x2d5)][_0x5e2803(0x2af)]({'errorMessage':_0x130df6(this[_0x5e2803(0x33f)][_0x5e2803(0x28b)],_0x5e2803(0x2ff)),'id':_0xafb963()}),this[_0x5e2803(0x2de)](new _0x37642f(_0x5e2803(0x288),this,{'error':_0x2f8b87})),this[_0x5e2803(0x2d5)][_0x5e2803(0x25a)](!0x1),this[_0x5e2803(0x2d5)][_0x5e2803(0x21d)](),null;}}[_0x5445bf(0x2c7)](_0x38d607){const _0x14bb86=_0x5445bf;this[_0x14bb86(0x2f6)]['id']===_0x38d607&&this[_0x14bb86(0x1fb)]();}[_0x5445bf(0x20d)](){const _0x1b13e7=_0x5445bf;this[_0x1b13e7(0x2f6)]?.[_0x1b13e7(0x2e1)](_0x130df6(this[_0x1b13e7(0x33f)][_0x1b13e7(0x28b)],_0x1b13e7(0x35f)));}async[_0x5445bf(0x2b0)](){const _0x42c6ba=_0x5445bf,_0x1f14d8=this[_0x42c6ba(0x273)][_0x42c6ba(0x1e1)]();this[_0x42c6ba(0x2f6)]?.[_0x42c6ba(0x228)](_0x1f14d8),this[_0x42c6ba(0x20d)]();}[_0x5445bf(0x2c3)](){const _0x33f41e=_0x5445bf;this[_0x33f41e(0x2f6)]?.[_0x33f41e(0x2e7)]();}[_0x5445bf(0x2da)](){const _0x49ba28=_0x5445bf;this[_0x49ba28(0x2d5)][_0x49ba28(0x2da)]();}async[_0x5445bf(0x2b1)](){const _0x1cf49f=_0x5445bf;await this[_0x1cf49f(0x1fb)]();}async[_0x5445bf(0x276)]({message:_0x4b7182,attributes:_0x2c1132}){const _0x34f5b2=_0x5445bf;await this[_0x34f5b2(0x2a0)]({'userMessage':_0x4b7182,'attributes':_0x2c1132});}[_0x5445bf(0x30b)](){const _0x2d3fb0=_0x5445bf,_0x3a2904=this[_0x2d3fb0(0x33f)][_0x2d3fb0(0x2c6)][_0x2d3fb0(0x2c4)](_0x2d3fb0(0x2f0));if(!_0x3a2904)throw new _0x37642f(_0x2d3fb0(0x259),this);return _0x3a2904;}async[_0x5445bf(0x1fb)](_0x274eb8){const _0x48060b=_0x5445bf;try{this[_0x48060b(0x2d5)][_0x48060b(0x1d9)](),await this[_0x48060b(0x207)](_0x274eb8);}catch(_0xb08eda){this[_0x48060b(0x2d5)][_0x48060b(0x2af)]({'errorMessage':_0x130df6(this[_0x48060b(0x33f)][_0x48060b(0x28b)],_0x48060b(0x345)),'id':_0x274eb8||_0xafb963()}),console[_0x48060b(0x283)](_0xb08eda),this[_0x48060b(0x2f6)]=void 0x0,this[_0x48060b(0x2d5)][_0x48060b(0x21d)]();}}async[_0x5445bf(0x207)](_0x32852c){const _0x52ff67=_0x5445bf;let _0x802c71;this[_0x52ff67(0x33f)][_0x52ff67(0x1ee)][_0x52ff67(0x253)](_0x52ff67(0x327))&&this[_0x52ff67(0x33f)][_0x52ff67(0x1ee)][_0x52ff67(0x2c4)](_0x52ff67(0x327))[_0x52ff67(0x343)](),_0x32852c||!this[_0x52ff67(0x2f6)]?_0x802c71=this[_0x52ff67(0x33f)][_0x52ff67(0x2c6)][_0x52ff67(0x2c4)](_0x52ff67(0x2c9)):this[_0x52ff67(0x2d5)][_0x52ff67(0x208)]&&(_0x802c71=this[_0x52ff67(0x2f6)][_0x52ff67(0x267)]['id']),await this[_0x52ff67(0x320)]();const _0x150435=this[_0x52ff67(0x30b)](),_0x460c18=_0x32852c||_0xafb963();this[_0x52ff67(0x2f6)]=new _0x5eeb0c({'connector':this[_0x52ff67(0x268)],'chatModels':this[_0x52ff67(0x358)],'selectedModelId':_0x802c71,'conversationId':_0x460c18,'group':_0x150435,'getEditor':()=>_0x1cd8a8(this[_0x52ff67(0x33f)]),'isFromHistory':!!_0x32852c}),this[_0x52ff67(0x2f6)][_0x52ff67(0x26b)](_0x52ff67(0x211),_0x52ff67(0x1ef))['to'](this),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2cf),(_0x1c0576,_0x4f1f2b)=>{const _0x2ba663=_0x52ff67;this[_0x2ba663(0x2d5)][_0x2ba663(0x33b)](_0x4f1f2b),this[_0x2ba663(0x2d5)][_0x2ba663(0x2f1)](),this[_0x2ba663(0x2d5)][_0x2ba663(0x1f6)](),this[_0x2ba663(0x2d5)][_0x2ba663(0x2ca)](),_0x32852c||(this[_0x2ba663(0x2d5)][_0x2ba663(0x210)](),this[_0x2ba663(0x20d)]());}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x24e),(_0x48d576,_0x2c50df)=>{const _0x3284ca=_0x52ff67;this[_0x3284ca(0x2d5)][_0x3284ca(0x309)](_0x2c50df[_0x3284ca(0x22c)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x295),(_0x16455d,_0x3567e4)=>{const _0x15e33f=_0x52ff67;this[_0x15e33f(0x2d5)][_0x15e33f(0x336)](_0x3567e4);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x31e),()=>{const _0x25ade6=_0x52ff67,_0x58cbc7=this[_0x25ade6(0x2d5)][_0x25ade6(0x2d9)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x25ade6(0x2d5)][_0x25ade6(0x2bb)](_0x58cbc7);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x25e),()=>{const _0x4c9eb3=_0x52ff67,_0x4f717d=this[_0x4c9eb3(0x2d5)][_0x4c9eb3(0x2d9)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x4c9eb3(0x2d5)][_0x4c9eb3(0x2bb)](_0x4f717d);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x357),(_0x24d8d6,_0x223ea9)=>{const _0x5ba58a=_0x52ff67;this[_0x5ba58a(0x2d5)][_0x5ba58a(0x2b5)](_0x223ea9,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x351),(_0x47b948,_0x20f066)=>{const _0x30fa33=_0x52ff67;this[_0x30fa33(0x2d5)][_0x30fa33(0x2b5)](_0x20f066,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1ef),()=>{const _0x4e874e=_0x52ff67;this[_0x4e874e(0x2d5)][_0x4e874e(0x252)]();}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x287),async()=>{const _0x176cde=_0x52ff67;await this[_0x176cde(0x2d5)][_0x176cde(0x2f2)]();}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2dd),(_0x35e3bc,_0x2dc0e8)=>{const _0x44841e=_0x52ff67;this[_0x44841e(0x2d5)][_0x44841e(0x24f)](_0x2dc0e8['id']);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x213),(_0x40055b,_0x1593bd,_0x1ce365)=>{const _0x481b05=_0x52ff67;this[_0x481b05(0x344)](_0x1593bd,_0x1ce365);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2bf),(_0x3694bb,_0x57d008)=>{const _0x450b8c=_0x52ff67;_0x450b8c(0x28d)===_0x57d008[_0x450b8c(0x31a)]?this[_0x450b8c(0x2d5)][_0x450b8c(0x34c)](_0x57d008):this[_0x450b8c(0x2d5)][_0x450b8c(0x299)](_0x57d008);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2a5),async(_0xb1f475,_0x3ae628)=>{const _0x5618ce=_0x52ff67;await this[_0x5618ce(0x217)]({'reply':_0x3ae628});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2e2),(_0x2692b9,{reply:_0x3bb131,index:_0x359d28,state:_0x5bfee9})=>{const _0x4f0bab=_0x52ff67;this[_0x4f0bab(0x2d5)][_0x4f0bab(0x1dc)]({'id':_0x3bb131['id'],'index':_0x359d28,'state':_0x5bfee9}),this[_0x4f0bab(0x25f)]?.[_0x4f0bab(0x258)][_0x4f0bab(0x263)](_0x3bb131['id'])&&this[_0x4f0bab(0x25f)]?.[_0x4f0bab(0x2ce)]==_0x359d28&&this[_0x4f0bab(0x300)]?.[_0x4f0bab(0x260)](_0x5bfee9);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2fc),(_0xd54f8a,_0x3517ed)=>{const _0x47b122=_0x52ff67;if(this[_0x47b122(0x2d5)][_0x47b122(0x29d)](_0x3517ed[_0x47b122(0x275)],_0x3517ed[_0x47b122(0x200)]),_0x47b122(0x22d)===_0x3517ed[_0x47b122(0x275)][_0x47b122(0x31a)]){const _0x293909=[..._0x1cd8a8(this[_0x47b122(0x33f)])[_0x47b122(0x34f)][_0x47b122(0x2b3)][_0x47b122(0x22d)][_0x47b122(0x330)]()];this[_0x47b122(0x273)][_0x47b122(0x1f8)](_0x293909,_0x47b122(0x27d)+this[_0x47b122(0x2f6)]?.['id']);}}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x323),(_0x55c86b,_0x20ffc1)=>{const _0x125f40=_0x52ff67;this[_0x125f40(0x2d5)][_0x125f40(0x27a)](_0x20ffc1[_0x125f40(0x220)]),_0x125f40(0x2bc)==_0x20ffc1[_0x125f40(0x220)]&&this[_0x125f40(0x2c3)](),_0x125f40(0x22d)===_0x20ffc1[_0x125f40(0x31a)]&&this[_0x125f40(0x273)][_0x125f40(0x278)](_0x125f40(0x27d)+this[_0x125f40(0x2f6)]?.['id']);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1e3),(_0x22583a,_0x4c7ff)=>{const _0x3435e1=_0x52ff67;this[_0x3435e1(0x2d5)][_0x3435e1(0x34e)](_0x4c7ff[_0x3435e1(0x275)][_0x3435e1(0x220)],_0x4c7ff[_0x3435e1(0x200)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x335),(_0xcf9b66,_0x12f119)=>{const _0x25ffe9=_0x52ff67;this[_0x25ffe9(0x2d5)][_0x25ffe9(0x243)](_0x12f119[_0x25ffe9(0x1ff)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1d6),(_0x5dd0ce,_0x3f9a2d)=>{const _0x4e6054=_0x52ff67;this[_0x4e6054(0x2d5)][_0x4e6054(0x286)](_0x3f9a2d[_0x4e6054(0x205)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2dc),(_0x23c67a,_0xddabe6)=>{const _0x68fba7=_0x52ff67;this[_0x68fba7(0x2d5)][_0x68fba7(0x328)](_0xddabe6[_0x68fba7(0x332)],_0xddabe6[_0x68fba7(0x1da)],_0xddabe6[_0x68fba7(0x256)],_0xddabe6[_0x68fba7(0x310)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x333),(_0x194f1b,_0xacdb15)=>{const _0x1d82aa=_0x52ff67;this[_0x1d82aa(0x2d5)][_0x1d82aa(0x33c)](_0xacdb15[_0x1d82aa(0x332)],_0xacdb15[_0x1d82aa(0x24a)],_0xacdb15[_0x1d82aa(0x29a)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x30e),(_0x595c4a,_0xfb731e)=>{const _0x25d49e=_0x52ff67;this[_0x25d49e(0x2d5)][_0x25d49e(0x350)](_0xfb731e);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x341),async(_0x37fa8d,_0x404b62)=>{const _0x452b71=_0x52ff67,_0x2fdf07=(await this[_0x452b71(0x358)][_0x452b71(0x247)]())[_0x452b71(0x2e8)](_0xa2e5e=>_0xa2e5e['id']===_0x404b62[_0x452b71(0x267)]?.['id'])||null;this[_0x452b71(0x2d5)][_0x452b71(0x2df)](_0x2fdf07,_0x404b62[_0x452b71(0x355)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x283),(_0x139538,{error:_0x39c011,interactionId:_0x2c0600,fileName:_0x5c4aea,url:_0x29b41d,sourceId:_0x410d69,sourceLabel:_0x51d190})=>{const _0x3bdf1d=_0x52ff67,_0xaee724=_0x2c0600?_0x2c0600+':'+_0xafb963():_0xafb963();_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x311))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x342)]({'staticMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2f9)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x288))||_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2fa))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x345)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x1f9))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x21c),_0x5c4aea),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x225))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2db),_0x29b41d),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x34b))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2cc)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x331))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x35e)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x315))?(_0x410d69&&this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x318)](_0x410d69),this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x314),_0x51d190||_0x3bdf1d(0x1da)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x349))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x244)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2e5))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x23a)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x1fe))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x20a)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x302))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x24b)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x281))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2aa)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2c2))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x227)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x293)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011));}),await this[_0x52ff67(0x2f6)][_0x52ff67(0x270)](this[_0x52ff67(0x33f)][_0x52ff67(0x2c6)][_0x52ff67(0x2c4)](_0x52ff67(0x307))),_0x32852c||await this[_0x52ff67(0x2f6)][_0x52ff67(0x212)]();}async[_0x5445bf(0x2a0)]({userMessage:_0x5988f8,attributes:_0x3cbaef}){const _0x5ad005=_0x5445bf;if(!this[_0x5ad005(0x2f6)])throw new _0x37642f(_0x5ad005(0x257));if(this[_0x5ad005(0x2f6)][_0x5ad005(0x2ae)]()){const _0x368720=await this[_0x5ad005(0x273)][_0x5ad005(0x232)]();await this[_0x5ad005(0x2f6)][_0x5ad005(0x1fd)](_0x368720);}this[_0x5ad005(0x2f6)]['id']&&this[_0x5ad005(0x2f6)][_0x5ad005(0x250)]&&await this[_0x5ad005(0x2f6)][_0x5ad005(0x2c8)]({'userMessage':_0x5988f8,'attributes':_0x3cbaef});}[_0x5445bf(0x30f)](){const _0x5ada8b=_0x5445bf;console[_0x5ada8b(0x32a)](_0x5ada8b(0x32f));}[_0x5445bf(0x235)](_0xbbcbe){const _0x6bdb51=_0x5445bf;this[_0x6bdb51(0x2d5)][_0x6bdb51(0x201)](_0xbbcbe);}[_0x5445bf(0x2de)](_0x3b3c09){const _0x57c951=_0x5445bf;_0x32f4ac(_0x3b3c09[_0x57c951(0x2ed)]);}[_0x5445bf(0x2bd)](_0x3c6be9){const _0x32ebb5=_0x5445bf;this[_0x32ebb5(0x2f6)]?.[_0x32ebb5(0x1d8)](_0x3c6be9);}[_0x5445bf(0x2a2)](){const _0x49913e=_0x5445bf;this[_0x49913e(0x2f6)]?.[_0x49913e(0x348)]();}[_0x5445bf(0x339)](){const _0x29bfaf=_0x5445bf;this[_0x29bfaf(0x2f6)]?.[_0x29bfaf(0x32e)]();}[_0x5445bf(0x31d)](_0x5e32d5){const _0x51f207=_0x5445bf,[_0x5dc2fa,_0x174bfd]=_0x5e32d5[_0x51f207(0x224)](':'),_0x1dd281=this[_0x51f207(0x2f6)][_0x51f207(0x326)](_0x5dc2fa),_0x37bf47=_0x1dd281[_0x51f207(0x216)](_0x174bfd);return{'interaction':_0x1dd281,'reply':_0x37bf47};}[_0x5445bf(0x297)](_0x418ff7,_0xba7568=!0x1){const _0x134fe7=_0x5445bf,_0x1fc5df=_0x1cd8a8(this[_0x134fe7(0x33f)]),_0x1a2bf4={'target':_0x1fc5df[_0x134fe7(0x1ed)][_0x134fe7(0x28c)][_0x134fe7(0x30a)][_0x134fe7(0x261)](_0x1fc5df[_0x134fe7(0x1ed)][_0x134fe7(0x23f)][_0x134fe7(0x1f3)](_0x418ff7)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xba7568};_0xba7568&&(_0x1a2bf4[_0x134fe7(0x29e)]=!0x0),_0x2cdfe0(_0x1a2bf4);}[_0x5445bf(0x344)](_0x5e8014,_0x5cfb55=!0x1){const _0xfd4766=_0x5445bf;this[_0xfd4766(0x2d5)][_0xfd4766(0x213)](_0x5e8014||_0x130df6(this[_0xfd4766(0x33f)][_0xfd4766(0x28b)],_0xfd4766(0x231)),_0x5cfb55);}async[_0x5445bf(0x217)]({reply:_0x31488a,renderingStrategy:_0x321bd8}){const _0x1190ba=_0x5445bf,{id:_0x1e4ccf,interactionId:_0x3f7284,isDone:_0x4cc20e,type:_0x33b7ba,parsedContent:_0xaee533}=_0x31488a,_0x4996e1=_0x3f7284+':'+_0x1e4ccf;if(_0x1190ba(0x21a)===_0x33b7ba){const _0x5f0f29=_0x31488a[_0x1190ba(0x2b8)]({'showDiff':this[_0x1190ba(0x2d5)][_0x1190ba(0x245)]});await this[_0x1190ba(0x2d5)][_0x1190ba(0x254)]({'id':_0x4996e1,'parts':_0x5f0f29,'renderingStrategy':_0x321bd8,'isDone':_0x4cc20e});}else _0x1190ba(0x28d)===_0x33b7ba&&await this[_0x1190ba(0x2d5)][_0x1190ba(0x2c0)]({'id':_0x4996e1,'parsedContent':_0xaee533,'renderingStrategy':_0x321bd8,'isDone':_0x4cc20e});_0x4cc20e&&_0x31488a[_0x1190ba(0x35a)][_0x1190ba(0x353)]>0x0&&this[_0x1190ba(0x2d5)][_0x1190ba(0x2ef)](_0x4996e1,_0x31488a[_0x1190ba(0x35a)]);}async[_0x5445bf(0x320)](){const _0x5c17a9=_0x5445bf,_0x57a9f6=this[_0x5c17a9(0x2f6)]?.[_0x5c17a9(0x219)];_0x57a9f6&&(_0x57a9f6[_0x5c17a9(0x2e4)](),this[_0x5c17a9(0x2d5)][_0x5c17a9(0x1fc)](_0x57a9f6));}async[_0x5445bf(0x1ea)](){const _0xb648e5=_0x5445bf,_0x4b70d4=this[_0xb648e5(0x2f6)]?.[_0xb648e5(0x219)];if(_0x4b70d4){for await(const _0x3c2e03 of _0x4b70d4[_0xb648e5(0x21b)])await this[_0xb648e5(0x217)]({'reply':_0x3c2e03,'renderingStrategy':_0xb648e5(0x322)});}}[_0x5445bf(0x1de)](_0x459059){const _0x5d0f8c=_0x5445bf,_0x123361={'positiveCount':_0x459059[_0x5d0f8c(0x25b)][_0x5d0f8c(0x2fb)](_0x11a6e1=>_0x5d0f8c(0x308)===_0x11a6e1[_0x5d0f8c(0x233)])[_0x5d0f8c(0x353)],'totalCount':_0x459059[_0x5d0f8c(0x25b)][_0x5d0f8c(0x353)],'modificationId':_0x459059['id']},_0x58f5d3=this[_0x5d0f8c(0x2f6)][_0x5d0f8c(0x326)](_0x459059[_0x5d0f8c(0x2a6)])[_0x5d0f8c(0x298)];_0x58f5d3&&this[_0x5d0f8c(0x268)][_0x5d0f8c(0x271)](this[_0x5d0f8c(0x2f6)]['id'],_0x58f5d3,_0x123361);}[_0x5445bf(0x35b)](_0x15e102){const _0x252c05=_0x5445bf;let _0x1e41a7=null,_0x352990=null;this['on'](_0x252c05(0x211),(_0x5c2eaf,_0x5b4627,_0x55cc76)=>{const _0x55fb83=_0x252c05;_0x55cc76['id']!==_0x1e41a7&&(_0x1e41a7=_0x55cc76['id'],_0x352990=this[_0x55fb83(0x352)](_0x55cc76)),_0x15e102(_0x5b4627,_0x352990);});}[_0x5445bf(0x352)](_0xe1385e){const _0x18df21=_0x5445bf,_0x51b94a=this[_0x18df21(0x2d5)],_0x40b1b6=()=>{const _0x18a0f1=_0x18df21;_0xe1385e[_0x18a0f1(0x26d)](),_0xe1385e[_0x18a0f1(0x27b)](),_0x51b94a[_0x18a0f1(0x347)]();},_0x4a9911=()=>{const _0x51c142=_0x18df21;_0xe1385e[_0x51c142(0x359)]&&(_0xe1385e[_0x51c142(0x359)][_0x51c142(0x1f2)](),_0xe1385e[_0x51c142(0x359)]=void 0x0);};return{'insertTextReply':(_0x54ec78,_0x1036b5)=>{const _0x182aa5=_0x18df21;_0x4a9911(),_0x40b1b6();const _0x58b1a0=_0xe1385e[_0x182aa5(0x359)]=_0xe1385e[_0x182aa5(0x33d)]({'type':_0x182aa5(0x28d),'interactionId':_0xe1385e['id'],'content':_0x54ec78,'id':_0x1036b5||_0xafb963()});return _0x4a9911(),_0x58b1a0;},'insertCustomElement':async(_0x489810,_0x566778)=>(_0x4a9911(),_0x40b1b6(),_0x51b94a[_0x18df21(0x239)](_0x489810,_0x566778||_0xafb963())),'setLoadingMessage':_0x5149c6=>{const _0x22cd4d=_0x18df21;_0x51b94a[_0x22cd4d(0x2bb)](_0x5149c6);},'clearLoadingMessage':()=>{const _0x166166=_0x18df21;_0x51b94a[_0x166166(0x347)]();}};}}
23
+ const _0x2fb3da=_0xa9dc;(function(_0x3e5948,_0x141114){const _0x15ffd0=_0xa9dc,_0x10212e=_0x3e5948();while(!![]){try{const _0x17b889=-parseInt(_0x15ffd0(0x247))/0x1+parseInt(_0x15ffd0(0x22c))/0x2+-parseInt(_0x15ffd0(0x265))/0x3+parseInt(_0x15ffd0(0x1bf))/0x4+parseInt(_0x15ffd0(0x239))/0x5+-parseInt(_0x15ffd0(0x23f))/0x6+parseInt(_0x15ffd0(0x149))/0x7;if(_0x17b889===_0x141114)break;else _0x10212e['push'](_0x10212e['shift']());}catch(_0x387f1f){_0x10212e['push'](_0x10212e['shift']());}}}(_0x3dfc,0xd7680));import{ContextPlugin as _0x6a6b8c,Editor as _0x29a2c2}from'ckeditor5/src/core.js';import{BodyCollection as _0x406d49}from'ckeditor5/src/ui.js';import{CKEditorError as _0x431979,logError as _0x309d8c,scrollViewportToShowTarget as _0x2af423,uid as _0xc63f40}from'ckeditor5/src/utils.js';import{AIConnector as _0x2934f0}from'../aicore/aiconnector.js';import{AITabs as _0x33ee2c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3b9d4b}from'./model/aichatconversation.js';function _0xa9dc(_0x1cd39b,_0xd59896){const _0x3dfc9f=_0x3dfc();return _0xa9dc=function(_0xa9dc48,_0x52e63d){_0xa9dc48=_0xa9dc48-0x102;let _0x6d365d=_0x3dfc9f[_0xa9dc48];return _0x6d365d;},_0xa9dc(_0x1cd39b,_0xd59896);}function _0x3dfc(){const _0x59e0c8=['collaboration.channelId','addFeedItemUserMessage','startAutoScroll','sourcePosition','from','clearLoadingMessage','removeContextItem','removeFromContext','getDiff','interactionDestroyed','changes','baseVersion','webSearchStarted','config','forEach','clearConversationContextUI','uiId','version','getConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getAll','AI_CHAT_CONTEXT_INVALID_DATA','getFirstRange','toolDataReceived','getPath','ai.chat.initialConversation','AI_CHAT_ABORTED_MESSAGE','getAttribute','_handleStartConversation','path','selection','change','hideFakeVisualSelection','showPrevious','getChild','set','hasChanges','plugins','open','closeSourceResourceBalloon','redo','Showing\x20conversation\x20history...','contextSent','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','interactionCreated','streaming','addOperation','sendUserMessage','_applySuggestion','document','_aiConnector','focusPromptInput','resetWebSearchState','ai-chat-context-invalid-data','sourceId','getTransformedByOperation','showDiff','updateConversationTitle','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','contextItems','outdated','query','done','replyId','resource','scrollFeedToSuggestion','isDocumentOperation','AIChatBalloon','AIChatController','prepareLoadingMessage','start','TrackChangesEditing','locale','ai-chat-context-file-too-many-pages','AI_CHAT_CONTEXT_FILE_TOO_LARGE','activateTab','_createFromRanges','isOfficialPlugin','domConverter','_openBalloonFor','createConversation','indexes','stop','addResourceToContext','addContextItem','remove','createPositionAt','_logError','createReply','alignToTop','setAddContextOptions','abortPromptStream','getOperations','next','ai-chat-resource-load-failed','_getPresentableSiblingContentPartIndex','isUploadInProgress','addCurrentDocumentToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','finishInteraction','startConversation','activeConversation','createdAt','partIndex','1352988kdHZcI','editing','contextItemLoadingEnded','revert','setModel','handleUserInteraction','map','handleRemovedConversation','setFeedItemRenderingStrategy','setConversationTitle','unshift','sourceResourcesLoaded','dialogClosed','_toggleWebSearch','toggleReasoning','_rejectSuggestion','setConversationContext','addCurrentDocumentToChatContext','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','interactionStarted','_setIsMaximized','getSelectionText','addDocumentToContext','_getAIChatInteractionAPI','removed','root','resizedTabs','toggleWebSearch','has','type','ai.models','aiChatBalloon','destroy','updateContent','new','updateCurrentDocumentInContext','loadSourceResources','batch','startsWith','history','ai.chat.context','sources','executeCustomItemCallback','ai-chat-url-upload-failed','mouseLeaveSuggestion','updateFeedItemAIReplySources','_aiChatModels','conversationInitialized','replyChangeGroupStateUpdated','isDisabled','selectModel','_currentPreviewedChangeGroup','sendMessage','uid','modification','length','upsertAIChatRating','getChildren','index','addContextOptionsChanged','Disliked\x20response','setSelectedModel','replyCreated','reasoningFinished','currentReply','$graveyard','range','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','mouseOverSuggestion','removeFeedInteraction','disableControls','indexOf','fetchConversations','ai-conversation-','commands','showFakeVisualSelection','AIEditing','delegate','updateFeedItemAIReplyContent','_removeFromContext','AIChatUI','addSelectionToContext','uploadProgressChanged','ai-chat-conversation-start-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','addFileToContext','includes','resizeTabs','slice','resize','previous','addFeedItemError','like','detachFromDom','setContextItemLoading','listenTo','areActionsDisabled','ai-request-aborted','_batchToChanges','_getUserPresentableContentPartDocumentRange','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','resetConversationTitle','toggleLoadingSkeleton','push','pending','fetchConversation','TrackChanges','_updateRatings','1876938TiqjnK','ai.models.defaultModelId','updateFeedItemAIReplySuggestionContent','anchorId','lastInteraction','removeSelectionFromContext','_startConversationSafely','resetReasoningState','_showConversationHistory','contextItemAdded','interactionId','maxOffset','stopInteraction','6683865DtnKzO','bind','changeGroups','isCurrentDocumentInContext','addSelectionToChatContext','getContentParts','9765042llGlzN','get','setState','_applyOperationsAsSuggestions','ready','startInteraction','addFeedItemStaticMessage','_getLastCreatedConversationId','626799MPJENS','load','_aiChatUi','showNext','ai-chat-context-unsupported-type','setLoadingMessage','log','editors','addFeedInteractionHeader','AI_CHAT_INVALID_REQUEST','isStarted','rejected','applySuggestion','view','end','interactionFinished','data','ai-chat-controller-no-active-conversation','getRanges','Undo','context','isInContext','isCurrentDocumentInConversation','split','find','addFilesToContext','DocumentCompare','resourceStateChanged','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','options','786321jFoATk','addUrlToContext','AI_CHAT_GENERIC_ERROR','children','attachToDom','cloneNode','createRange','_aiChatBalloon','_integrateEditor','message','source','marker','main','selectedModel','close','current-document','undo','nextSibling','dislike','resources','requires','ai-chat-controller-mouse-over','getInteraction','reasoningStarted','AI_CHAT_RESOURCE_LOAD_FAILED','updateCapabilities','ai-chat-context-unsupported-file-type','resourceId','_flushLastInteractionUI','isLoading','static','accepted','rejectSuggestion','isModelAvailable','pluginName','_handleUIUserMessage','_bodyCollection','createPositionFromPath','getConversations','ai-chat-conversation-not-found','enableControls','_scrollToSuggestionRange','afterInit','sessionId','modelSelected','getChildAtOffset','node','_getDocumentRangeForReplyChanges','updateFeedItemAIReplySuggestionPartState','loadConversation','getGroupId','getDocumentData','replyContentUpdated','chat','howMany','AI_CHAT_UNABLE_TO_START_CONVERSATION','_aiChatBalloonShowDiff','lastCreated','_toggleReasoning','Liked\x20response','ai-chat-context-file-too-large','addFeedItemAISuggestion','text','setIsMaximized','ai-chat-context-form-data-size-limits-exceeded','rootName','mapper','messageId','init','populateSourceResourceBalloon','setChangeGroupState','ai-no-track-changes','getDocumentContext','_insertSuggestion','contextItemRemoved','findIndex','showChangeInText','data-id','resetMessageInput','capabilitiesUpdated','updateResourceState','callback','AITabs','ai-chat-conversation-init-failed','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','viewRangeToDom','webSearchFinished','ai-chat-missing-channel-id','clearPendingContextUI','error','add','ai-chat-invalid-request','ai-chat-file-upload-failed','isPremiumPlugin','getReply','setFeedItemAIReplySuggestionPartActive','getInteractionAndReplyById','state','model','parse','toString','AI_BALLOON_HEADER_TITLE','_aiEditing','contextItem','AIConnector','removeSelectionFromChatContext','setIsUploadInProgress','delete','addFeedItemCustomElement','5496596Wmbzac','toViewRange','_updateReplyContent','replies','getRoot','documentContextContent','content','addFeedItemAIReply','toggleSuggestionDisplayMode','applyOperation','ai-chat-source-resources-load-failed','_stopLastInteraction','insertSuggestion','filter'];_0x3dfc=function(){return _0x59e0c8;};return _0x3dfc();}import{getTranslation as _0x61ecef}from'../aicore/utils/common-translations.js';import{AIModels as _0xaadfb5}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x274ef8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x9abce7,DATA_ID_MODEL_ATTRIBUTE as _0x3ab391}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3a0939,getOperationsFromReply as _0x2ca132}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x329751,getMinimalSelection as _0x44f01f}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5cbaa6,_DetachOperation as _0x51eae6}from'ckeditor5/src/engine.js';import{findOne as _0x3b9499,getAttribute as _0x439b9c,serialize as _0x433789,Document as _0x1d6823,findByAttribute as _0x13c50d}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x6a6b8c{[_0x2fb3da(0x142)];[_0x2fb3da(0x189)];[_0x2fb3da(0x249)];[_0x2fb3da(0x1ed)];[_0x2fb3da(0x26c)];[_0x2fb3da(0x221)]=new Map();[_0x2fb3da(0x1f2)]=null;[_0x2fb3da(0x289)];static get[_0x2fb3da(0x279)](){return[_0x2934f0,_0x9abce7];}static get[_0x2fb3da(0x287)](){const _0x32b5f7=_0x2fb3da;return _0x32b5f7(0x19b);}static get[_0x2fb3da(0x1a4)](){return!0x0;}static get[_0x2fb3da(0x139)](){return!0x0;}[_0x2fb3da(0x120)](){const _0x47f0e0=_0x2fb3da;this[_0x47f0e0(0x289)]=new _0x406d49(this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]),this[_0x47f0e0(0x289)][_0x47f0e0(0x269)](),this[_0x47f0e0(0x189)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x144)),this[_0x47f0e0(0x249)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20f)),this[_0x47f0e0(0x142)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20b)),this[_0x47f0e0(0x1ed)]=new _0xaadfb5({'connector':this[_0x47f0e0(0x189)],'config':this[_0x47f0e0(0x25b)][_0x47f0e0(0x164)][_0x47f0e0(0x240)](_0x47f0e0(0x1dd)),'locale':this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]});const _0x540b88=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x12e));this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1bb),()=>{const _0x364b86=_0x47f0e0;this[_0x364b86(0x232)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x186),(_0xfbd031,_0x7bbee2)=>{const _0x65c06c=_0x47f0e0;this[_0x65c06c(0x288)]({'userMessage':_0x7bbee2});}),this[_0x47f0e0(0x21e)](_0x540b88,_0x47f0e0(0x1d9),(_0x4c918a,_0x474748)=>{const _0x4799df=_0x47f0e0;this[_0x4799df(0x1d3)](_0x474748);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x216),()=>{const _0xf034a4=_0x47f0e0;_0x540b88[_0xf034a4(0x218)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1b2),async()=>{const _0xc3c5cf=_0x47f0e0;await this[_0xc3c5cf(0x154)](),await this[_0xc3c5cf(0x281)](),this[_0xc3c5cf(0x145)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1d5),()=>{const _0x58c610=_0x47f0e0;this[_0x58c610(0x1d0)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x214),(_0xf6f508,_0x5c1959)=>{const _0xa61c58=_0x47f0e0;this[_0xa61c58(0x1bc)]?.[_0xa61c58(0x260)](Array[_0xa61c58(0x15b)](_0x5c1959));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x266),(_0x5553bc,_0x1be8a3)=>{const _0x355681=_0x47f0e0;this[_0x355681(0x1bc)]?.[_0x355681(0x266)](_0x1be8a3);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e9),(_0x5d7c07,_0x3070b4)=>{const _0x637da2=_0x47f0e0;_0x3070b4[_0x637da2(0x12d)](this[_0x637da2(0x25b)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1aa),(_0x50cec3,_0x1c53c5)=>{const _0x2b505c=_0x47f0e0;this[_0x2b505c(0x1bc)]?.[_0x2b505c(0x1aa)](_0x1c53c5[_0x2b505c(0x26f)],_0x1c53c5[_0x2b505c(0x197)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x15d),(_0x42b937,_0x19d82f)=>{const _0x5630ff=_0x47f0e0;this[_0x5630ff(0x20e)](_0x19d82f);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e3),(_0x5babe4,_0x1251f1)=>{const _0x600c25=_0x47f0e0;this[_0x600c25(0x1bc)]?.[_0x600c25(0x1e3)](_0x1251f1[_0x600c25(0x18d)],_0x1251f1[_0x600c25(0x194)],_0x1251f1[_0x600c25(0x1f4)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1da),()=>{const _0x14b238=_0x47f0e0;this[_0x14b238(0x1cc)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1cd),()=>{const _0xd2ec9a=_0x47f0e0;this[_0xd2ec9a(0x116)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1f1),(_0x39831a,_0x268867)=>{const _0x35a0af=_0x47f0e0;this[_0x35a0af(0x1bc)]?.[_0x35a0af(0x1c3)](_0x268867);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x21b),(_0xc444ed,{replyId:_0x1f09f0})=>{const _0x11267e=_0x47f0e0;console[_0x11267e(0x24d)](_0x11267e(0x117),_0x1f09f0);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x277),(_0x3276d9,{replyId:_0x23cf28})=>{const _0x48ef06=_0x47f0e0;console[_0x48ef06(0x24d)](_0x48ef06(0x1fb),_0x23cf28);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x155),(_0x38a47d,_0x570a6c)=>{const _0x4eefc8=_0x47f0e0;this[_0x4eefc8(0x125)](_0x570a6c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x128),(_0x170d63,{replyId:_0x599d60,partIndex:_0x2bc48c})=>{const _0x16f2fb=_0x47f0e0;this[_0x16f2fb(0x114)]=this[_0x16f2fb(0x249)][_0x16f2fb(0x18f)],this[_0x16f2fb(0x1a6)](_0x599d60,_0x2bc48c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x203),(_0x23226a,{replyId:_0x4e55f5,partIndex:_0x155b77})=>{const _0x6c18a=_0x47f0e0,_0x29ec25=this[_0x6c18a(0x10b)](_0x4e55f5,_0x155b77);_0x29ec25&&_0x6c18a(0x200)!=_0x29ec25[_0x6c18a(0x201)][_0x6c18a(0x1d8)][_0x6c18a(0x11d)]&&this[_0x6c18a(0x142)][_0x6c18a(0x20a)]([_0x29ec25[_0x6c18a(0x201)]],_0x6c18a(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1eb),()=>{const _0x1cf817=_0x47f0e0;this[_0x1cf817(0x142)][_0x1cf817(0x177)](_0x1cf817(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x253),(_0x3bea81,_0x40d329)=>{const _0x4a341a=_0x47f0e0;this[_0x4a341a(0x142)][_0x4a341a(0x177)](_0x4a341a(0x27a)),this[_0x4a341a(0x187)](_0x40d329);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x151),async(_0x461266,{replyId:_0x2b4892,showDiff:_0x983c32})=>{const _0x173134=_0x47f0e0,{reply:_0x423a6e}=this[_0x173134(0x13c)](_0x2b4892),_0x34f296=_0x423a6e[_0x173134(0x23e)]({'showDiff':_0x983c32});await this[_0x173134(0x249)][_0x173134(0x22e)]({'id':_0x423a6e['id'],'parts':_0x34f296,'renderingStrategy':_0x173134(0x283)});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x285),(_0x3ebd8c,{replyId:_0x2b8f28,partIndex:_0x2bac80})=>{const _0x5e5256=_0x47f0e0;this[_0x5e5256(0x1ce)]({'replyId':_0x2b8f28,'partIndex':_0x2bac80}),this[_0x5e5256(0x142)][_0x5e5256(0x177)](_0x5e5256(0x27a));}),this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x1db)](_0x47f0e0(0x19a))&&(this[_0x47f0e0(0x26c)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x19a)),this[_0x47f0e0(0x17a)](_0x47f0e0(0x114),!0x1),this[_0x47f0e0(0x26c)][_0x47f0e0(0x23a)](_0x47f0e0(0x18f))['to'](this,_0x47f0e0(0x114)),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x151),()=>{const _0xb836c1=_0x47f0e0,{replyId:_0x431948,partIndex:_0x799d4a}=this[_0xb836c1(0x1f2)];this[_0xb836c1(0x114)]=!this[_0xb836c1(0x114)];const {reply:_0x3ed1c1}=this[_0xb836c1(0x13c)](_0x431948),_0xd0f76c=_0x3ed1c1[_0xb836c1(0x23e)]({'showDiff':this[_0xb836c1(0x114)],'groupIndex':_0x799d4a});this[_0xb836c1(0x26c)][_0xb836c1(0x1e0)]({'part':_0xd0f76c[0x0],'renderingStrategy':_0xb836c1(0x283),'keepErrors':!0x0});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x253),()=>{const _0xe41b93=_0x47f0e0,{replyId:_0x13e82f,partIndex:_0x678650}=this[_0xe41b93(0x1f2)];this[_0xe41b93(0x187)]({'replyId':_0x13e82f,'partIndex':_0x678650}),this[_0xe41b93(0x26c)][_0xe41b93(0x241)](_0xe41b93(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x155),()=>{const _0x9b5475=_0x47f0e0,{replyId:_0x23b579,partIndex:_0x1850f4}=this[_0x9b5475(0x1f2)];this[_0x9b5475(0x125)]({'replyId':_0x23b579,'partIndex':_0x1850f4}),this[_0x9b5475(0x26c)][_0x9b5475(0x241)](_0x9b5475(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x285),()=>{const _0x565b7c=_0x47f0e0,{replyId:_0x1311c1,partIndex:_0xb8695d}=this[_0x565b7c(0x1f2)];this[_0x565b7c(0x1ce)]({'replyId':_0x1311c1,'partIndex':_0xb8695d}),this[_0x565b7c(0x26c)][_0x565b7c(0x241)](_0x565b7c(0x252));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x24a),()=>{const _0x4cf70d=_0x47f0e0,{replyId:_0x565830,partIndex:_0x37e0b3}=this[_0x4cf70d(0x1f2)],_0x3387eb=this[_0x4cf70d(0x1b6)](_0x565830,_0x37e0b3,_0x4cf70d(0x1b4));null!==_0x3387eb&&this[_0x4cf70d(0x1a6)](_0x565830,_0x3387eb);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x178),()=>{const _0x3987df=_0x47f0e0,{replyId:_0x3349a7,partIndex:_0x3b332b}=this[_0x3987df(0x1f2)],_0x2d931b=this[_0x3987df(0x1b6)](_0x3349a7,_0x3b332b,_0x3987df(0x219));null!==_0x2d931b&&this[_0x3987df(0x1a6)](_0x3349a7,_0x2d931b);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x1cb),(_0x525c5f,{id:_0x4202f6})=>{const _0x5a9bf9=_0x47f0e0;if(_0x5a9bf9(0x1de)!==_0x4202f6)return;const {replyId:_0x1dd2ad,partIndex:_0x411b4e}=this[_0x5a9bf9(0x1f2)];this[_0x5a9bf9(0x1f2)]=null,this[_0x5a9bf9(0x249)][_0x5a9bf9(0x13b)]({'id':_0x1dd2ad,'index':_0x411b4e,'isActive':!0x1});}));}async[_0x2fb3da(0x106)](){const _0x5889a8=_0x2fb3da;this[_0x5889a8(0x25b)]instanceof _0x29a2c2?this[_0x5889a8(0x26d)](this[_0x5889a8(0x25b)]):this[_0x5889a8(0x21e)](this[_0x5889a8(0x25b)][_0x5889a8(0x24e)],_0x5889a8(0x136),(_0x49996f,_0xea7ec6)=>{const _0x4f4440=_0x5889a8;_0xea7ec6['on'](_0x4f4440(0x243),()=>{const _0x65fd78=_0x4f4440;this[_0x65fd78(0x26d)](_0xea7ec6);});});const _0xce8ccf=this[_0x5889a8(0x25b)][_0x5889a8(0x164)][_0x5889a8(0x240)](_0x5889a8(0x170));let _0x2b6b11=_0xce8ccf;if(_0x5889a8(0x115)!=_0xce8ccf||(_0x2b6b11=await this[_0x5889a8(0x246)](),_0x2b6b11))return _0x5889a8(0x1e1)==_0x2b6b11?this[_0x5889a8(0x232)]():this[_0x5889a8(0x10d)](_0x2b6b11);}async[_0x2fb3da(0x1df)](){const _0x10175e=_0x2fb3da;return await this[_0x10175e(0x154)](),this[_0x10175e(0x289)][_0x10175e(0x21c)](),super[_0x10175e(0x1df)]();}[_0x2fb3da(0x125)](_0x127c3e){const _0x259f67=_0x2fb3da,_0x4041f8=_0x274ef8(this[_0x259f67(0x25b)]);if(!_0x4041f8[_0x259f67(0x17c)][_0x259f67(0x1db)](_0x259f67(0x22a)))throw new _0x431979(_0x259f67(0x123),null);const _0x4eedf8=this[_0x259f67(0x25b)][_0x259f67(0x17c)][_0x259f67(0x240)](_0x259f67(0x261)),{reply:_0x1f3a32,interaction:_0x505b35}=this[_0x259f67(0x13c)](_0x127c3e[_0x259f67(0x196)]),_0x4008bd=this[_0x259f67(0x10b)](_0x127c3e[_0x259f67(0x196)],_0x127c3e[_0x259f67(0x1be)]),_0x52c95c=void 0x0!==_0x127c3e[_0x259f67(0x1be)]?[_0x1f3a32[_0x259f67(0x23b)][_0x127c3e[_0x259f67(0x1be)]]]:_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x156)](_0x487815=>_0x259f67(0x228)==_0x487815[_0x259f67(0x13d)]),_0x5e36ef=_0x52c95c[_0x259f67(0x1c5)](_0x1818bb=>_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x206)](_0x1818bb));if(!_0x4008bd||_0x259f67(0x200)==_0x4008bd[_0x259f67(0x201)][_0x259f67(0x1d8)][_0x259f67(0x11d)])return void _0x5e36ef[_0x259f67(0x165)](_0x5d3f95=>_0x1f3a32[_0x259f67(0x122)](_0x5d3f95,_0x259f67(0x193)));_0x5e36ef[_0x259f67(0x165)](_0x596c45=>_0x1f3a32[_0x259f67(0x122)](_0x596c45,_0x259f67(0x284)));const _0x501d1c=_0x2ca132({'editor':_0x4041f8,'reply':_0x1f3a32,'interaction':_0x505b35,'groups':_0x52c95c,'transform':!0x0,'documentCompare':_0x4eedf8,'documentCompareOptions':{'anchor':_0x259f67(0x271),'markDeletions':!0x0}});let _0x4bebbb;_0x4008bd&&this[_0x259f67(0x105)](_0x4008bd[_0x259f67(0x201)]),_0x4041f8[_0x259f67(0x13e)][_0x259f67(0x176)](_0x5c467d=>{const _0x280b9e=_0x259f67;_0x4bebbb=_0x5c467d[_0x280b9e(0x1e4)],_0x4041f8[_0x280b9e(0x17c)][_0x280b9e(0x240)](_0x280b9e(0x19e))[_0x280b9e(0x242)](_0x501d1c),this[_0x280b9e(0x142)][_0x280b9e(0x177)](_0x280b9e(0x27a));}),this[_0x259f67(0x221)][_0x259f67(0x17a)](_0x4bebbb,{'interactionId':_0x505b35['id'],'replyId':_0x1f3a32['id'],'indexes':_0x5e36ef[_0x259f67(0x217)]()}),this[_0x259f67(0x22b)](_0x1f3a32);}[_0x2fb3da(0x187)](_0xe7984){const _0x4a40e0=_0x2fb3da,_0x1c9942=_0x274ef8(this[_0x4a40e0(0x25b)]),_0x33c0b0=this[_0x4a40e0(0x25b)][_0x4a40e0(0x17c)][_0x4a40e0(0x240)](_0x9abce7),{reply:_0x30a5d6,interaction:_0x3d1249}=this[_0x4a40e0(0x13c)](_0xe7984[_0x4a40e0(0x196)]),_0x2c4250=this[_0x4a40e0(0x10b)](_0xe7984[_0x4a40e0(0x196)],_0xe7984[_0x4a40e0(0x1be)]),_0x5c507c=void 0x0!==_0xe7984[_0x4a40e0(0x1be)]?[_0x30a5d6[_0x4a40e0(0x23b)][_0xe7984[_0x4a40e0(0x1be)]]]:_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x156)](_0x4ebdc0=>_0x4a40e0(0x228)==_0x4ebdc0[_0x4a40e0(0x13d)]),_0x2c74c5=_0x5c507c[_0x4a40e0(0x1c5)](_0x28729b=>_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x206)](_0x28729b));if(!_0x2c4250||_0x4a40e0(0x200)==_0x2c4250[_0x4a40e0(0x201)][_0x4a40e0(0x1d8)][_0x4a40e0(0x11d)])return void _0x2c74c5[_0x4a40e0(0x165)](_0x4af5a=>_0x30a5d6[_0x4a40e0(0x122)](_0x4af5a,_0x4a40e0(0x193)));_0x2c74c5[_0x4a40e0(0x165)](_0x1e4605=>_0x30a5d6[_0x4a40e0(0x122)](_0x1e4605,_0x4a40e0(0x284)));const _0x9048de=_0x2ca132({'editor':_0x1c9942,'reply':_0x30a5d6,'interaction':_0x3d1249,'groups':_0x5c507c,'transform':!0x0,'documentCompare':_0x33c0b0,'documentCompareOptions':{'anchor':_0x4a40e0(0x271),'markDeletions':!0x1}});let _0x57b027;_0x2c4250&&this[_0x4a40e0(0x105)](_0x2c4250[_0x4a40e0(0x201)]),_0x1c9942[_0x4a40e0(0x13e)][_0x4a40e0(0x176)](_0x32f0d6=>{const _0x2f2a24=_0x4a40e0;_0x57b027=_0x32f0d6[_0x2f2a24(0x1e4)];for(const _0x14257e of _0x9048de)_0x14257e[_0x2f2a24(0x162)]=_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x188)][_0x2f2a24(0x168)],_0x3a0939(_0x1c9942,_0x14257e),_0x32f0d6[_0x2f2a24(0x1e4)][_0x2f2a24(0x185)](_0x14257e),_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x152)](_0x14257e);}),this[_0x4a40e0(0x221)][_0x4a40e0(0x17a)](_0x57b027,{'interactionId':_0x3d1249['id'],'replyId':_0x30a5d6['id'],'indexes':_0x2c74c5[_0x4a40e0(0x217)]()}),this[_0x4a40e0(0x22b)](_0x30a5d6);}[_0x2fb3da(0x1ce)](_0x57577d){const _0x2c3fce=_0x2fb3da,{reply:_0x43934f}=this[_0x2c3fce(0x13c)](_0x57577d[_0x2c3fce(0x196)]);_0x43934f[_0x2c3fce(0x122)](_0x57577d[_0x2c3fce(0x1be)],_0x2c3fce(0x252));}[_0x2fb3da(0x1a6)](_0x12b0a8,_0x323d60){const _0x4fd45e=_0x2fb3da;if(!this[_0x4fd45e(0x26c)])return;const {reply:_0x12ad66}=this[_0x4fd45e(0x13c)](_0x12b0a8),_0x249fc9=_0x12ad66[_0x4fd45e(0x23e)]({'showDiff':this[_0x4fd45e(0x114)]});let _0x23939e,_0x18c17b;if(void 0x0!==_0x323d60?(_0x18c17b=_0x249fc9[_0x4fd45e(0x25f)](_0x44c1f6=>_0x44c1f6[_0x4fd45e(0x1f9)]==_0x323d60),_0x23939e=_0x18c17b?.[_0x4fd45e(0x1f9)]):(_0x18c17b=_0x249fc9[0x0],_0x23939e=_0x18c17b[_0x4fd45e(0x1f9)]),this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x196)]==_0x12b0a8&&this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x1be)]==_0x23939e)return;const _0x45ecb9=this[_0x4fd45e(0x222)](_0x12b0a8,_0x12ad66,_0x18c17b);if(!_0x45ecb9)return void this[_0x4fd45e(0x26c)][_0x4fd45e(0x273)]();this[_0x4fd45e(0x1f2)]={'replyId':_0x12b0a8,'partIndex':_0x23939e},this[_0x4fd45e(0x105)](_0x45ecb9,!0x0);const _0x4502c7=this[_0x4fd45e(0x1b6)](_0x12b0a8,_0x23939e,_0x4fd45e(0x1b4));this[_0x4fd45e(0x26c)][_0x4fd45e(0x1e0)]({'part':_0x18c17b,'renderingStrategy':_0x4fd45e(0x283)}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x17d)]({'index':_0x23939e,'title':_0x61ecef(this[_0x4fd45e(0x25b)][_0x4fd45e(0x19f)],_0x4fd45e(0x141),(_0x23939e+0x1)[_0x4fd45e(0x140)]()),'showRotator':null!==_0x4502c7,'ranges':[_0x45ecb9],'areActionsDisabled':_0x12ad66[_0x4fd45e(0x21f)]}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x241)](_0x4fd45e(0x228)),this[_0x4fd45e(0x249)][_0x4fd45e(0x198)](_0x12b0a8,_0x23939e),this[_0x4fd45e(0x249)][_0x4fd45e(0x13b)]({'id':_0x12b0a8,'index':_0x23939e,'isActive':!0x0});}[_0x2fb3da(0x1b6)](_0x25ae00,_0x11cb3b,_0x34ee86){const _0xc34ff1=_0x2fb3da,{reply:_0x4a795a}=this[_0xc34ff1(0x13c)](_0x25ae00),_0x4cfd3b=_0x4a795a[_0xc34ff1(0x23e)]({'showDiff':this[_0xc34ff1(0x114)]});if(0x1==_0x4cfd3b[_0xc34ff1(0x1f6)])return null;const _0xda1a6a=_0x4cfd3b[_0xc34ff1(0x127)](_0x2bd5ab=>_0x2bd5ab[_0xc34ff1(0x1f9)]==_0x11cb3b),_0x5268ab=_0xc34ff1(0x1b4)==_0x34ee86?0x1:-0x1;let _0x31ac33=_0x4cfd3b['at']((_0xda1a6a+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x4a43a7=_0x4cfd3b[_0x31ac33];for(;!this[_0xc34ff1(0x222)](_0x25ae00,_0x4a795a,_0x4a43a7);){if(_0x31ac33=_0x4cfd3b['at']((_0x31ac33+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x31ac33===_0xda1a6a)return null;_0x4a43a7=_0x4cfd3b[_0x31ac33];}return _0x31ac33;}[_0x2fb3da(0x222)](_0x2a65ff,_0x3dab9f,_0x17ff97){const _0x4bc83b=_0x2fb3da,_0x132848=_0x3dab9f[_0x4bc83b(0x23b)];if(!_0x17ff97[_0x4bc83b(0x17b)])return null;const _0xe129d9=_0x132848[_0x4bc83b(0x25f)](_0x228151=>_0x228151[_0x4bc83b(0x1f9)]==_0x17ff97[_0x4bc83b(0x1f9)]);if(_0x4bc83b(0x228)!==_0xe129d9?.[_0x4bc83b(0x13d)])return null;const _0x5f025b=this[_0x4bc83b(0x10b)](_0x2a65ff,_0x17ff97[_0x4bc83b(0x1f9)]);if(!_0x5f025b)return null;const {range:_0x2dd1f5,currentIndex:_0xe663f5}=_0x5f025b;return _0x4bc83b(0x200)==_0x2dd1f5[_0x4bc83b(0x1d8)][_0x4bc83b(0x11d)]?(_0x3dab9f[_0x4bc83b(0x122)](_0xe663f5,_0x4bc83b(0x193)),null):_0x5f025b[_0x4bc83b(0x201)];}[_0x2fb3da(0x10b)](_0x21cf0d,_0x2353b9){const _0x2bed18=_0x2fb3da,_0x197a4b=_0x274ef8(this[_0x2bed18(0x25b)]),{reply:_0x2d659f,interaction:_0x251d62}=this[_0x2bed18(0x13c)](_0x21cf0d),_0x1415f1=_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x156)](_0x364491=>_0x2bed18(0x228)==_0x364491[_0x2bed18(0x13d)]),_0xad411b=_0x1415f1[_0x2bed18(0x1c5)](_0x15721d=>_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x206)](_0x15721d));void 0x0===_0x2353b9&&(_0x2353b9=_0xad411b[0x0]);const _0x739b83=_0xad411b[_0x2bed18(0x206)](_0x2353b9);if(-0x1==_0x739b83)return null;const _0x3019d5=_0x1415f1[_0x739b83],_0x53d8fc=new _0x1d6823([]),_0x361018=new _0x1d6823([]);for(const _0x32570f of _0x3019d5[_0x2bed18(0x161)])if(_0x2bed18(0x1d7)!=_0x32570f[_0x2bed18(0x1dc)]&&_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x32570f[_0x2bed18(0x10a)][_0x2bed18(0x26a)](!0x0)),_0x2bed18(0x1e1)!=_0x32570f[_0x2bed18(0x1dc)]){const _0x267c3d=_0x3b9499(_0x19fb70=>_0x439b9c(_0x19fb70,_0x2bed18(0x129))==_0x32570f['id'],_0x2d659f[_0x2bed18(0x14e)],!0x0);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x267c3d[_0x2bed18(0x26a)](!0x0));}if(0x0==_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1f6)]){if(_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)]){const _0x22e970=_0x13c50d(_0x2bed18(0x129),_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)],_0x2d659f[_0x2bed18(0x14e)]);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x22e970[_0x2bed18(0x276)]&&(_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)));}else{const _0x299414=_0x2d659f[_0x2bed18(0x14e)][_0x2bed18(0x268)][0x0];if(!_0x299414)return null;_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0));}}const _0x226df4=_0x251d62[_0x2bed18(0x124)](),_0x19e770=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x226df4[_0x2bed18(0x14f)]),_0x3483c2=_0x433789(_0x53d8fc),_0x4848eb=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x352161=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x435e0f=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x1ad)](_0x4848eb,0x0),_0x4aac15=_0x433789(_0x361018),_0x1dbc3d={'anchor':_0x435e0f,'markDeletions':!0x1},_0x2a095c=_0x197a4b[_0x2bed18(0x17c)][_0x2bed18(0x240)](_0x9abce7)[_0x2bed18(0x15f)](_0x3483c2,_0x4aac15,_0x1dbc3d)[_0x2bed18(0x1b3)]();if(!_0x2a095c[_0x2bed18(0x1f6)])return null;_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x176)](_0x243b18=>{const _0x33d52b=_0x2bed18;for(const _0x159735 of _0x2a095c)if(_0x33d52b(0x1ac)==_0x159735[_0x33d52b(0x1dc)]){const _0x368c71=_0x159735[_0x33d52b(0x15a)],_0x8b04ac=_0x159735[_0x33d52b(0x112)],_0x1d2746=new _0x51eae6(_0x368c71,_0x8b04ac);_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x1d2746),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x1d2746);}else _0x33d52b(0x270)!==_0x159735[_0x33d52b(0x1dc)]&&(_0x159735[_0x33d52b(0x162)]=null,_0x159735[_0x33d52b(0x199)]=!0x1,_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x159735),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x159735));});const _0xbd7800=_0x44f01f(_0x197a4b,_0x2a095c,_0x4848eb);_0x329751(_0x197a4b[_0x2bed18(0x13e)],_0xbd7800);const _0x214057=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x526660=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x269dd9=[];let _0x28a4de=_0x4848eb,_0x40d9fa=_0x352161;for(let _0x2df247=0x0;_0x2df247<_0x526660[_0x2bed18(0x1f6)];_0x2df247++){const _0x973f65=_0x28a4de[_0x2bed18(0x237)]-_0x526660[_0x2df247];_0x269dd9[_0x2df247]=_0x40d9fa[_0x2bed18(0x237)]-_0x973f65,_0x28a4de=_0x28a4de[_0x2bed18(0x109)](_0x526660[_0x2df247]),_0x40d9fa=_0x40d9fa[_0x2bed18(0x109)](_0x269dd9[_0x2df247]);}const _0x360d58=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x214057),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x269dd9)),_0x769eae=_0x352161[_0x2bed18(0x179)](0x0)[_0x2bed18(0x172)](_0x3ab391),_0x432195=Array[_0x2bed18(0x15b)](_0x19e770[_0x2bed18(0x1f8)]())[_0x2bed18(0x25f)](_0x4d9736=>_0x4d9736[_0x2bed18(0x172)](_0x3ab391)==_0x769eae)[_0x2bed18(0x16f)](),_0x314b1d=_0x360d58[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x4fef7d=_0x360d58[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)]();_0x314b1d[0x0]=_0x432195[0x0]+_0x314b1d[0x0],_0x4fef7d[0x0]=_0x432195[0x0]+_0x4fef7d[0x0];let _0x52895b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x314b1d),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x4fef7d));const _0x332f8b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x1e6)][_0x2bed18(0x1b3)](_0x226df4[_0x2bed18(0x168)]);for(const _0x44254a of _0x332f8b)_0x52895b=_0x5cbaa6[_0x2bed18(0x1a3)](_0x52895b[_0x2bed18(0x18e)](_0x44254a));return{'range':_0x52895b,'currentIndex':_0x2353b9};}[_0x2fb3da(0x26d)](_0x273523){const _0x1a13ae=_0x2fb3da;if(!_0x273523[_0x1a13ae(0x17c)][_0x1a13ae(0x1db)](_0x1a13ae(0x25a)))return;const _0x510e07=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x275)),_0x1650bb=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x17f));this[_0x1a13ae(0x21e)](_0x510e07,_0x1a13ae(0x1c2),(_0x4e5b24,_0x32507d,_0xf30a34)=>{const _0x226ee2=_0x1a13ae,_0x5ecce9=this[_0x226ee2(0x221)][_0x226ee2(0x240)](_0x32507d);if(!_0x5ecce9)return;const _0x42b96d=this[_0x226ee2(0x1bc)][_0x226ee2(0x27b)](_0x5ecce9[_0x226ee2(0x236)])[_0x226ee2(0x13a)](_0x5ecce9[_0x226ee2(0x196)]);_0x5ecce9[_0x226ee2(0x1a8)][_0x226ee2(0x165)](_0x479b41=>_0x42b96d[_0x226ee2(0x122)](_0x479b41,_0x226ee2(0x228))),this[_0x226ee2(0x221)][_0x226ee2(0x147)](_0x32507d),this[_0x226ee2(0x221)][_0x226ee2(0x17a)](_0xf30a34,_0x5ecce9);}),this[_0x1a13ae(0x21e)](_0x1650bb,_0x1a13ae(0x1c2),(_0x4c1449,_0x2bb79e,_0x13a497)=>{const _0x4cd539=_0x1a13ae,_0x47b31c=this[_0x4cd539(0x221)][_0x4cd539(0x240)](_0x2bb79e);if(!_0x47b31c)return;const _0x18024c=this[_0x4cd539(0x1bc)][_0x4cd539(0x27b)](_0x47b31c[_0x4cd539(0x236)])[_0x4cd539(0x13a)](_0x47b31c[_0x4cd539(0x196)]);_0x47b31c[_0x4cd539(0x1a8)][_0x4cd539(0x165)](_0x1e280c=>_0x18024c[_0x4cd539(0x122)](_0x1e280c,_0x4cd539(0x284))),this[_0x4cd539(0x221)][_0x4cd539(0x147)](_0x2bb79e),this[_0x4cd539(0x221)][_0x4cd539(0x17a)](_0x13a497,_0x47b31c);});}async[_0x2fb3da(0x10d)](_0x33ea00){const _0x3204c2=_0x2fb3da;this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x1db)](_0x3204c2(0x19a))&&this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x3204c2(0x19a))[_0x3204c2(0x273)](),(this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x33ee2c)[_0x3204c2(0x254)][_0x3204c2(0x1a2)](_0x3204c2(0x111)),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x283)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x0),await this[_0x3204c2(0x154)]());try{await this[_0x3204c2(0x189)][_0x3204c2(0x229)](_0x33ea00)[_0x3204c2(0x169)](),await this[_0x3204c2(0x232)](_0x33ea00),this[_0x3204c2(0x190)]('\x20'),await this[_0x3204c2(0x1bc)][_0x3204c2(0x248)](_0x33ea00,this[_0x3204c2(0x142)][_0x3204c2(0x107)]),this[_0x3204c2(0x1bc)][_0x3204c2(0x25d)]()&&this[_0x3204c2(0x1d0)]();}catch(_0x4f7c8e){this[_0x3204c2(0x249)][_0x3204c2(0x21a)]({'errorMessage':_0x61ecef(this[_0x3204c2(0x25b)][_0x3204c2(0x19f)],_0x3204c2(0x1d1)),'id':_0x33ea00}),this[_0x3204c2(0x1ae)](new _0x431979(_0x3204c2(0x103),this,{'error':_0x4f7c8e}));}finally{this[_0x3204c2(0x249)][_0x3204c2(0x159)](),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x184)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x1);}}async[_0x2fb3da(0x246)](){const _0x598b0c=_0x2fb3da,_0x3ae728=this[_0x598b0c(0x189)][_0x598b0c(0x207)](this[_0x598b0c(0x10e)](),{'limit':0x1,'sortBy':_0x598b0c(0x1bd)});try{const _0x57b4d7=await _0x3ae728[_0x598b0c(0x102)]();return _0x57b4d7[_0x598b0c(0x1f6)]?_0x57b4d7[0x0]['id']:_0x598b0c(0x1e1);}catch(_0x4cccdf){return this[_0x598b0c(0x249)][_0x598b0c(0x21a)]({'errorMessage':_0x61ecef(this[_0x598b0c(0x25b)][_0x598b0c(0x19f)],_0x598b0c(0x1d1)),'id':_0xc63f40()}),this[_0x598b0c(0x1ae)](new _0x431979(_0x598b0c(0x12f),this,{'error':_0x4cccdf})),this[_0x598b0c(0x249)][_0x598b0c(0x226)](!0x1),this[_0x598b0c(0x249)][_0x598b0c(0x205)](),null;}}[_0x2fb3da(0x1c6)](_0x4ac5fa){const _0x4964d8=_0x2fb3da;this[_0x4964d8(0x1bc)]['id']===_0x4ac5fa&&this[_0x4964d8(0x232)]();}[_0x2fb3da(0x1d0)](){const _0x431a20=_0x2fb3da;this[_0x431a20(0x1bc)]?.[_0x431a20(0x1b8)](_0x61ecef(this[_0x431a20(0x25b)][_0x431a20(0x19f)],_0x431a20(0x1b9)));}async[_0x2fb3da(0x23d)](){const _0x124f4d=_0x2fb3da,_0x490b4d=this[_0x124f4d(0x142)][_0x124f4d(0x1d4)]();this[_0x124f4d(0x1bc)]?.[_0x124f4d(0x210)](_0x490b4d),this[_0x124f4d(0x1d0)]();}[_0x2fb3da(0x145)](){const _0x595cb4=_0x2fb3da;this[_0x595cb4(0x1bc)]?.[_0x595cb4(0x231)]();}[_0x2fb3da(0x18a)](){const _0x2cf3a7=_0x2fb3da;this[_0x2cf3a7(0x249)][_0x2cf3a7(0x18a)]();}async[_0x2fb3da(0x1bb)](){const _0x517d0a=_0x2fb3da;await this[_0x517d0a(0x232)]();}async[_0x2fb3da(0x1f3)]({message:_0x2b607f,attributes:_0x8bb9e6}){const _0x5946dd=_0x2fb3da;await this[_0x5946dd(0x288)]({'userMessage':_0x2b607f,'attributes':_0x8bb9e6});}[_0x2fb3da(0x10e)](){const _0x57455f=_0x2fb3da,_0x4f1985=this[_0x57455f(0x25b)][_0x57455f(0x164)][_0x57455f(0x240)](_0x57455f(0x157));if(!_0x4f1985)throw new _0x431979(_0x57455f(0x133),this);return _0x4f1985;}async[_0x2fb3da(0x232)](_0x3f0b6d){const _0x10d5a8=_0x2fb3da;try{this[_0x10d5a8(0x249)][_0x10d5a8(0x104)](),await this[_0x10d5a8(0x173)](_0x3f0b6d);}catch(_0x141f42){this[_0x10d5a8(0x249)][_0x10d5a8(0x21a)]({'errorMessage':_0x61ecef(this[_0x10d5a8(0x25b)][_0x10d5a8(0x19f)],_0x10d5a8(0x113)),'id':_0x3f0b6d||_0xc63f40()}),console[_0x10d5a8(0x135)](_0x141f42),this[_0x10d5a8(0x1bc)]=void 0x0,this[_0x10d5a8(0x249)][_0x10d5a8(0x205)]();}}async[_0x2fb3da(0x173)](_0xc56d1){const _0x5295e6=_0x2fb3da;let _0xbf2970;this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x1db)](_0x5295e6(0x19a))&&this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x240)](_0x5295e6(0x19a))[_0x5295e6(0x273)](),_0xc56d1||!this[_0x5295e6(0x1bc)]?_0xbf2970=this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x22d)):this[_0x5295e6(0x249)][_0x5295e6(0x286)]&&(_0xbf2970=this[_0x5295e6(0x1bc)][_0x5295e6(0x272)]['id']),await this[_0x5295e6(0x154)]();const _0x27d3e8=this[_0x5295e6(0x10e)](),_0x4a7b20=_0xc56d1||_0xc63f40();this[_0x5295e6(0x1bc)]=new _0x3b9d4b({'connector':this[_0x5295e6(0x189)],'chatModels':this[_0x5295e6(0x1ed)],'selectedModelId':_0xbf2970,'conversationId':_0x4a7b20,'group':_0x27d3e8,'getEditor':()=>_0x274ef8(this[_0x5295e6(0x25b)]),'isFromHistory':!!_0xc56d1}),this[_0x5295e6(0x1bc)][_0x5295e6(0x20c)](_0x5295e6(0x16e),_0x5295e6(0x1d2))['to'](this),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ee),(_0x4a0b3f,_0x50da35)=>{const _0x3757f2=_0x5295e6;this[_0x3757f2(0x249)][_0x3757f2(0x1a7)](_0x50da35),this[_0x3757f2(0x249)][_0x3757f2(0x12a)](),this[_0x3757f2(0x249)][_0x3757f2(0x134)](),this[_0x3757f2(0x249)][_0x3757f2(0x166)](),_0xc56d1||(this[_0x3757f2(0x249)][_0x3757f2(0x225)](),this[_0x3757f2(0x1d0)]());}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x211),(_0x52f6c9,_0x524882)=>{const _0x346364=_0x5295e6;this[_0x346364(0x249)][_0x346364(0x146)](_0x524882[_0x346364(0x1b7)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x183),(_0x460a4f,_0x555dce)=>{const _0x24f23b=_0x5295e6;this[_0x24f23b(0x249)][_0x24f23b(0x158)](_0x555dce);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x163),()=>{const _0x37bf62=_0x5295e6,_0x278e9b=this[_0x37bf62(0x249)][_0x37bf62(0x19c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x37bf62(0x249)][_0x37bf62(0x24c)](_0x278e9b);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x27c),()=>{const _0x3e6b2f=_0x5295e6,_0x3ffa21=this[_0x3e6b2f(0x249)][_0x3e6b2f(0x19c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3e6b2f(0x249)][_0x3e6b2f(0x24c)](_0x3ffa21);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x132),(_0x44eb49,_0x56ab56)=>{const _0x2198da=_0x5295e6;this[_0x2198da(0x249)][_0x2198da(0x24f)](_0x56ab56,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fe),(_0x1508d4,_0x1d7440)=>{const _0x208238=_0x5295e6;this[_0x208238(0x249)][_0x208238(0x24f)](_0x1d7440,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1d2),()=>{const _0x8081f0=_0x5295e6;this[_0x8081f0(0x249)][_0x8081f0(0x244)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x256),async()=>{const _0x5d476c=_0x5295e6;await this[_0x5d476c(0x249)][_0x5d476c(0x1ba)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x160),(_0x32023a,_0x31bfbc)=>{const _0x55d25e=_0x5295e6;this[_0x55d25e(0x249)][_0x55d25e(0x204)](_0x31bfbc['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c8),(_0x41c7be,_0x4f1524,_0x130298)=>{const _0x14dbf8=_0x5295e6;this[_0x14dbf8(0x190)](_0x4f1524,_0x130298);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fd),(_0x5ef7c6,_0x13900d)=>{const _0x4362d5=_0x5295e6;_0x4362d5(0x11a)===_0x13900d[_0x4362d5(0x1dc)]?this[_0x4362d5(0x249)][_0x4362d5(0x150)](_0x13900d):this[_0x4362d5(0x249)][_0x4362d5(0x119)](_0x13900d);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x110),async(_0x58fdcb,_0x4acb57)=>{const _0x1fadc2=_0x5295e6;await this[_0x1fadc2(0x14b)]({'reply':_0x4acb57});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ef),(_0x14a3cf,{reply:_0x3ade7d,index:_0x3d8f9e,state:_0x16dd32})=>{const _0x2d3ece=_0x5295e6;this[_0x2d3ece(0x249)][_0x2d3ece(0x10c)]({'id':_0x3ade7d['id'],'index':_0x3d8f9e,'state':_0x16dd32}),this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x196)][_0x2d3ece(0x215)](_0x3ade7d['id'])&&this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x1be)]==_0x3d8f9e&&this[_0x2d3ece(0x26c)]?.[_0x2d3ece(0x241)](_0x16dd32);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x235),(_0x5bdcc9,_0x14f224)=>{const _0x1c8367=_0x5295e6;if(this[_0x1c8367(0x249)][_0x1c8367(0x1ab)](_0x14f224[_0x1c8367(0x143)],_0x14f224[_0x1c8367(0x282)]),_0x1c8367(0x175)===_0x14f224[_0x1c8367(0x143)][_0x1c8367(0x1dc)]){const _0x1ea5f1=[..._0x274ef8(this[_0x1c8367(0x25b)])[_0x1c8367(0x13e)][_0x1c8367(0x188)][_0x1c8367(0x175)][_0x1c8367(0x259)]()];this[_0x1c8367(0x142)][_0x1c8367(0x20a)](_0x1ea5f1,_0x1c8367(0x208)+this[_0x1c8367(0x1bc)]?.['id']);}}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x126),(_0x4e7222,_0x25a9db)=>{const _0x1b1229=_0x5295e6;this[_0x1b1229(0x249)][_0x1b1229(0x15d)](_0x25a9db[_0x1b1229(0x167)]),_0x1b1229(0x274)==_0x25a9db[_0x1b1229(0x167)]&&this[_0x1b1229(0x145)](),_0x1b1229(0x175)===_0x25a9db[_0x1b1229(0x1dc)]&&this[_0x1b1229(0x142)][_0x1b1229(0x177)](_0x1b1229(0x208)+this[_0x1b1229(0x1bc)]?.['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c1),(_0x15f9de,_0x1ff3a5)=>{const _0x4c0570=_0x5295e6;this[_0x4c0570(0x249)][_0x4c0570(0x21d)](_0x1ff3a5[_0x4c0570(0x143)][_0x4c0570(0x167)],_0x1ff3a5[_0x4c0570(0x282)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x181),(_0x3d763a,_0x4c9176)=>{const _0x1a4f6b=_0x5295e6;this[_0x1a4f6b(0x249)][_0x1a4f6b(0x1cf)](_0x4c9176[_0x1a4f6b(0x192)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fa),(_0x2ecfe2,_0x34b93a)=>{const _0x1bdecc=_0x5295e6;this[_0x1bdecc(0x249)][_0x1bdecc(0x1b1)](_0x34b93a[_0x1bdecc(0x264)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ca),(_0x35db9b,_0x6ef706)=>{const _0x43a797=_0x5295e6;this[_0x43a797(0x249)][_0x43a797(0x121)](_0x6ef706[_0x43a797(0x18d)],_0x6ef706[_0x43a797(0x26f)],_0x6ef706[_0x43a797(0x278)],_0x6ef706[_0x43a797(0x1f4)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x262),(_0x40c953,_0x19730b)=>{const _0x5537bd=_0x5295e6;this[_0x5537bd(0x249)][_0x5537bd(0x12c)](_0x19730b[_0x5537bd(0x18d)],_0x19730b[_0x5537bd(0x280)],_0x19730b[_0x5537bd(0x25c)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x12b),(_0x3632c4,_0x193b55)=>{const _0x449ffc=_0x5295e6;this[_0x449ffc(0x249)][_0x449ffc(0x27e)](_0x193b55);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x108),async(_0x56f03b,_0x578fcb)=>{const _0x450b2f=_0x5295e6,_0x2ea521=(await this[_0x450b2f(0x1ed)][_0x450b2f(0x16b)]())[_0x450b2f(0x25f)](_0x536c9b=>_0x536c9b['id']===_0x578fcb[_0x450b2f(0x272)]?.['id'])||null;this[_0x450b2f(0x249)][_0x450b2f(0x1fc)](_0x2ea521,_0x578fcb[_0x450b2f(0x1f0)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x135),(_0x2052db,{error:_0x3d6271,interactionId:_0xe85d20,fileName:_0x16c540,url:_0x353280,sourceId:_0x5368a4,sourceLabel:_0x430e2f})=>{const _0x2e5f54=_0x5295e6,_0xf37ed0=_0xe85d20?_0xe85d20+':'+_0xc63f40():_0xc63f40();_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x220))?this[_0x2e5f54(0x249)][_0x2e5f54(0x245)]({'staticMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x171)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x12f))||_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x212))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x113)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x138))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x130),_0x16c540),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1ea))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x263),_0x353280),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x18c))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16c)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x24b))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x202)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x153))?(_0x5368a4&&this[_0x2e5f54(0x249)][_0x2e5f54(0x17e)](_0x5368a4),this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x191),_0x430e2f||_0x2e5f54(0x26f)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1b5))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x27d)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x137))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x250)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x27f))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x182)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x118))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x1a1)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1a0))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x213)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x11c))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16a)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x267)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271));}),await this[_0x5295e6(0x1bc)][_0x5295e6(0x120)](this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x1e7))),_0xc56d1||await this[_0x5295e6(0x1bc)][_0x5295e6(0x19d)]();}async[_0x2fb3da(0x288)]({userMessage:_0x5afbb0,attributes:_0x517dde}){const _0x2e1073=_0x2fb3da;if(!this[_0x2e1073(0x1bc)])throw new _0x431979(_0x2e1073(0x258));if(this[_0x2e1073(0x1bc)][_0x2e1073(0x23c)]()){const _0x4a50ee=await this[_0x2e1073(0x142)][_0x2e1073(0x10f)]();await this[_0x2e1073(0x1bc)][_0x2e1073(0x1e2)](_0x4a50ee);}this[_0x2e1073(0x1bc)]['id']&&this[_0x2e1073(0x1bc)][_0x2e1073(0x251)]&&await this[_0x2e1073(0x1bc)][_0x2e1073(0x1c4)]({'userMessage':_0x5afbb0,'attributes':_0x517dde});}[_0x2fb3da(0x234)](){const _0x343878=_0x2fb3da;console[_0x343878(0x24d)](_0x343878(0x180));}[_0x2fb3da(0x1d3)](_0x397ef6){const _0x30ff62=_0x2fb3da;this[_0x30ff62(0x249)][_0x30ff62(0x11b)](_0x397ef6);}[_0x2fb3da(0x1ae)](_0x2adc12){const _0x122532=_0x2fb3da;_0x309d8c(_0x2adc12[_0x122532(0x26e)]);}[_0x2fb3da(0x20e)](_0x11e015){const _0x2ecf8d=_0x2fb3da;this[_0x2ecf8d(0x1bc)]?.[_0x2ecf8d(0x15e)](_0x11e015);}[_0x2fb3da(0x1cc)](){const _0x1c849a=_0x2fb3da;this[_0x1c849a(0x1bc)]?.[_0x1c849a(0x1da)]();}[_0x2fb3da(0x116)](){const _0x433f90=_0x2fb3da;this[_0x433f90(0x1bc)]?.[_0x433f90(0x1cd)]();}[_0x2fb3da(0x13c)](_0x49603c){const _0x1a8fa3=_0x2fb3da,[_0x5513c8,_0x1c22b7]=_0x49603c[_0x1a8fa3(0x25e)](':'),_0x52e54e=this[_0x1a8fa3(0x1bc)][_0x1a8fa3(0x27b)](_0x5513c8),_0x1d0a70=_0x52e54e[_0x1a8fa3(0x13a)](_0x1c22b7);return{'interaction':_0x52e54e,'reply':_0x1d0a70};}[_0x2fb3da(0x105)](_0x17cbab,_0x575b17=!0x1){const _0x5b95b8=_0x2fb3da,_0x16d98e=_0x274ef8(this[_0x5b95b8(0x25b)]),_0xc890be={'target':_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x254)][_0x5b95b8(0x1a5)][_0x5b95b8(0x131)](_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x11e)][_0x5b95b8(0x14a)](_0x17cbab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x575b17};_0x575b17&&(_0xc890be[_0x5b95b8(0x1b0)]=!0x0),_0x2af423(_0xc890be);}[_0x2fb3da(0x190)](_0x2edbb8,_0x343a49=!0x1){const _0xb26d7a=_0x2fb3da;this[_0xb26d7a(0x249)][_0xb26d7a(0x1c8)](_0x2edbb8||_0x61ecef(this[_0xb26d7a(0x25b)][_0xb26d7a(0x19f)],_0xb26d7a(0x223)),_0x343a49);}async[_0x2fb3da(0x14b)]({reply:_0x5e447e,renderingStrategy:_0xb8c9d3}){const _0x5f1b77=_0x2fb3da,{id:_0x3f0787,interactionId:_0x3ca9ec,isDone:_0x2fb07b,type:_0xe151c2,parsedContent:_0x530c7c}=_0x5e447e,_0x502b7d=_0x3ca9ec+':'+_0x3f0787;if(_0x5f1b77(0x1f5)===_0xe151c2){const _0x1d55e7=_0x5e447e[_0x5f1b77(0x23e)]({'showDiff':this[_0x5f1b77(0x249)][_0x5f1b77(0x18f)]});await this[_0x5f1b77(0x249)][_0x5f1b77(0x22e)]({'id':_0x502b7d,'parts':_0x1d55e7,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});}else _0x5f1b77(0x11a)===_0xe151c2&&await this[_0x5f1b77(0x249)][_0x5f1b77(0x20d)]({'id':_0x502b7d,'parsedContent':_0x530c7c,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});_0x2fb07b&&_0x5e447e[_0x5f1b77(0x1e8)][_0x5f1b77(0x1f6)]>0x0&&this[_0x5f1b77(0x249)][_0x5f1b77(0x1ec)](_0x502b7d,_0x5e447e[_0x5f1b77(0x1e8)]);}async[_0x2fb3da(0x154)](){const _0x2ca1bb=_0x2fb3da,_0x503f57=this[_0x2ca1bb(0x1bc)]?.[_0x2ca1bb(0x230)];_0x503f57&&(_0x503f57[_0x2ca1bb(0x1a9)](),this[_0x2ca1bb(0x249)][_0x2ca1bb(0x238)](_0x503f57));}async[_0x2fb3da(0x281)](){const _0x195e23=_0x2fb3da,_0x153961=this[_0x195e23(0x1bc)]?.[_0x195e23(0x230)];if(_0x153961){for await(const _0x2cbc76 of _0x153961[_0x195e23(0x14c)])await this[_0x195e23(0x14b)]({'reply':_0x2cbc76,'renderingStrategy':_0x195e23(0x283)});}}[_0x2fb3da(0x22b)](_0x7e355e){const _0x4fcfa7=_0x2fb3da,_0x20bf8c={'positiveCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x156)](_0x3a352d=>_0x4fcfa7(0x284)===_0x3a352d[_0x4fcfa7(0x13d)])[_0x4fcfa7(0x1f6)],'totalCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x1f6)],'modificationId':_0x7e355e['id']},_0x46e26a=this[_0x4fcfa7(0x1bc)][_0x4fcfa7(0x27b)](_0x7e355e[_0x4fcfa7(0x236)])[_0x4fcfa7(0x11f)];_0x46e26a&&this[_0x4fcfa7(0x189)][_0x4fcfa7(0x1f7)](this[_0x4fcfa7(0x1bc)]['id'],_0x46e26a,_0x20bf8c);}[_0x2fb3da(0x224)](_0x4bbefb){const _0x4926e4=_0x2fb3da;let _0x50da2c=null,_0x1e6cad=null;this['on'](_0x4926e4(0x16e),(_0x4d3a7d,_0x5b269f,_0x56ebbf)=>{const _0x35cc38=_0x4926e4;_0x56ebbf['id']!==_0x50da2c&&(_0x50da2c=_0x56ebbf['id'],_0x1e6cad=this[_0x35cc38(0x1d6)](_0x56ebbf)),_0x4bbefb(_0x5b269f,_0x1e6cad);});}[_0x2fb3da(0x1d6)](_0xf4e1a7){const _0x25ff8e=_0x2fb3da,_0x54e2b8=this[_0x25ff8e(0x249)],_0x4e75c7=()=>{const _0x1c11f4=_0x25ff8e;_0xf4e1a7[_0x1c11f4(0x18b)](),_0xf4e1a7[_0x1c11f4(0x233)](),_0x54e2b8[_0x1c11f4(0x15c)]();},_0x37c360=()=>{const _0x8d33d4=_0x25ff8e;_0xf4e1a7[_0x8d33d4(0x1ff)]&&(_0xf4e1a7[_0x8d33d4(0x1ff)][_0x8d33d4(0x195)](),_0xf4e1a7[_0x8d33d4(0x1ff)]=void 0x0);};return{'insertTextReply':(_0x1b99d4,_0x22e9ab)=>{const _0x41ed32=_0x25ff8e;_0x37c360(),_0x4e75c7();const _0x26415f=_0xf4e1a7[_0x41ed32(0x1ff)]=_0xf4e1a7[_0x41ed32(0x1af)]({'type':_0x41ed32(0x11a),'interactionId':_0xf4e1a7['id'],'content':_0x1b99d4,'id':_0x22e9ab||_0xc63f40()});return _0x37c360(),_0x26415f;},'insertCustomElement':async(_0x51d689,_0x37e832)=>(_0x37c360(),_0x4e75c7(),_0x54e2b8[_0x25ff8e(0x148)](_0x51d689,_0x37e832||_0xc63f40())),'setLoadingMessage':_0x8ed57=>{const _0x3c9c92=_0x25ff8e;_0x54e2b8[_0x3c9c92(0x24c)](_0x8ed57);},'clearLoadingMessage':()=>{const _0x164f18=_0x25ff8e;_0x54e2b8[_0x164f18(0x15c)]();}};}}