@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.2

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 (292) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b195c=_0x3c6b;(function(_0x61094c,_0x5ebd34){const _0x4225f7=_0x3c6b,_0x4ee7aa=_0x61094c();while(!![]){try{const _0x2b53f4=-parseInt(_0x4225f7(0x18f))/0x1+-parseInt(_0x4225f7(0x149))/0x2*(-parseInt(_0x4225f7(0x11f))/0x3)+parseInt(_0x4225f7(0x119))/0x4*(-parseInt(_0x4225f7(0x146))/0x5)+-parseInt(_0x4225f7(0x192))/0x6+parseInt(_0x4225f7(0x16f))/0x7+-parseInt(_0x4225f7(0x196))/0x8+-parseInt(_0x4225f7(0x124))/0x9*(-parseInt(_0x4225f7(0x180))/0xa);if(_0x2b53f4===_0x5ebd34)break;else _0x4ee7aa['push'](_0x4ee7aa['shift']());}catch(_0x2dabb6){_0x4ee7aa['push'](_0x4ee7aa['shift']());}}}(_0x1906,0x92de4));import{CKEditorError as _0x1ce1c7,ObservableMixin as _0x53a141,uid as _0x296cbb}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5cd0b3,AIContextTextResourceType as _0x2f4824}from'../../aicore/model/aicontext.js';import{escape as _0x33b9b5}from'es-toolkit/compat';import{errorsMap as _0x51eff4}from'../../errorsmap.js';function _0x3c6b(_0xd4b231,_0x393a1c){const _0x190610=_0x1906();return _0x3c6b=function(_0x3c6ba9,_0x587ae3){_0x3c6ba9=_0x3c6ba9-0x109;let _0x545e49=_0x190610[_0x3c6ba9];return _0x545e49;},_0x3c6b(_0xd4b231,_0x393a1c);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5b195c(0x144),_0x5b195c(0x179),_0x5b195c(0x15f),_0x5b195c(0x197),_0x5b195c(0x109),_0x5b195c(0x10e),_0x5b195c(0x193),_0x5b195c(0x162),_0x5b195c(0x114)];export class AIChatContext extends _0x53a141(){[_0x5b195c(0x11d)];[_0x5b195c(0x12a)];[_0x5b195c(0x17d)];constructor({connector:_0x120831,config:_0x129f37,ownerId:_0x379154}){const _0x386429=_0x5b195c;super(),this[_0x386429(0x11d)]=_0x120831,this[_0x386429(0x12a)]=_0x129f37,this[_0x386429(0x17d)]=_0x379154;}[_0x5b195c(0x138)](){const _0x38454a=_0x5b195c;this[_0x38454a(0x154)]=new Map(),this[_0x38454a(0x12c)]=new Map(),this[_0x38454a(0x191)]=new Map(),this[_0x38454a(0x14c)]=new Map(),this[_0x38454a(0x153)]();}[_0x5b195c(0x18e)](){const _0x2255f0=_0x5b195c;return this[_0x2255f0(0x154)];}async[_0x5b195c(0x11a)](_0x56cf42){const _0xe3c3f=_0x5b195c,_0x5652a1=await this[_0xe3c3f(0x14f)](_0x56cf42);return this[_0xe3c3f(0x190)](_0x5652a1),_0xe3c3f(0x158)===_0x5652a1[_0xe3c3f(0x166)]&&this[_0xe3c3f(0x169)](),_0x5652a1;}async[_0x5b195c(0x14f)](_0xabe0cf){const _0x4b65f7=_0x5b195c;if(_0xabe0cf[_0x4b65f7(0x187)]===_0x5cd0b3[_0x4b65f7(0x13c)]){const _0x1e611b=await this[_0x4b65f7(0x11d)][_0x4b65f7(0x133)](this[_0x4b65f7(0x17d)],_0xabe0cf['id'])[_0x4b65f7(0x122)]();return{'id':_0x4b65f7(0x158),'uiId':_0x4b65f7(0x158),'label':_0x4b65f7(0x120),'type':_0xabe0cf[_0x4b65f7(0x187)],'content':_0x1e611b[_0x4b65f7(0x140)],'hidden':this[_0x4b65f7(0x12c)][_0x4b65f7(0x16d)](_0x4b65f7(0x158)),'version':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x14e)],'sessionId':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x173)]};}return{'id':_0xabe0cf['id'],'uiId':_0xabe0cf['id'],'label':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x113)]||_0xabe0cf[_0x4b65f7(0x136)]||_0xabe0cf[_0x4b65f7(0x18b)]||_0xabe0cf['id'],'type':_0xabe0cf[_0x4b65f7(0x187)],..._0xabe0cf?.[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]?{'resourceId':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]}:{}};}[_0x5b195c(0x181)](){const _0x697ef1=_0x5b195c;return new Map(this[_0x697ef1(0x12c)]);}[_0x5b195c(0x167)](_0x3e04f4){const _0x24eea5=_0x5b195c,_0x1fc56d=this[_0x24eea5(0x154)][_0x24eea5(0x15a)](_0x3e04f4);_0x1fc56d?.[_0x24eea5(0x194)]||this[_0x24eea5(0x10a)](_0x3e04f4);}[_0x5b195c(0x147)](){const _0x50f6d5=_0x5b195c;if(0x0===this[_0x50f6d5(0x154)][_0x50f6d5(0x174)])return;for(const _0xff453 of this[_0x50f6d5(0x154)][_0x50f6d5(0x123)]())this[_0x50f6d5(0x10a)](_0xff453[_0x50f6d5(0x166)]);const _0x1e84e6=this[_0x50f6d5(0x12c)][_0x50f6d5(0x15a)](_0x50f6d5(0x158))||this[_0x50f6d5(0x154)][_0x50f6d5(0x15a)](_0x50f6d5(0x158));_0x1e84e6&&this[_0x50f6d5(0x165)]({..._0x1e84e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5b195c(0x178)](_0x5422d4){const _0x4d134e=_0x5b195c;for(const _0x4e69a4 of _0x5422d4[_0x4d134e(0x123)]())this[_0x4d134e(0x190)](_0x4e69a4);this[_0x4d134e(0x147)](),this[_0x4d134e(0x171)](_0x4d134e(0x197),{'contextItems':Array[_0x4d134e(0x111)](this[_0x4d134e(0x181)]()[_0x4d134e(0x123)]())});}[_0x5b195c(0x14b)](){const _0x5a91c2=_0x5b195c;return this[_0x5a91c2(0x154)][_0x5a91c2(0x16d)](_0x5a91c2(0x158));}[_0x5b195c(0x125)](){const _0x4342a5=_0x5b195c;return this[_0x4342a5(0x154)][_0x4342a5(0x16d)](_0x4342a5(0x117));}[_0x5b195c(0x176)](){const _0x443d35=_0x5b195c;return this[_0x443d35(0x12c)][_0x443d35(0x16d)](_0x443d35(0x158));}static[_0x5b195c(0x132)](_0x403a9e){const _0x651571=_0x5b195c;return Array[_0x651571(0x111)](_0x403a9e[_0x651571(0x123)]())[_0x651571(0x13a)](_0x6beb56=>this[_0x651571(0x10d)](_0x6beb56))[_0x651571(0x155)](_0x28586a=>null!==_0x28586a);}async[_0x5b195c(0x134)](_0x157a81,_0xcb9223,_0x159672=_0x5cd0b3[_0x5b195c(0x15b)]){const _0xf3d9bd=_0x5b195c,_0x1867d5=_0xf3d9bd(0x18d)+_0x296cbb();this[_0xf3d9bd(0x15c)](_0x1867d5);try{await Promise[_0xf3d9bd(0x126)](_0x157a81[_0xf3d9bd(0x13a)](async _0x492d8a=>{const _0x5c04e0=_0xf3d9bd,_0x3724fe=_0x5c04e0(0x172)+_0x296cbb(),_0x1ba3e=_0x33b9b5(_0x492d8a[_0x5c04e0(0x136)]);try{this[_0x5c04e0(0x165)]({'type':_0x159672,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x0);const _0x42aacc=this[_0x5c04e0(0x11d)][_0x5c04e0(0x10f)](this[_0x5c04e0(0x17d)],_0x492d8a,_0xcb9223);this[_0x5c04e0(0x191)][_0x5c04e0(0x189)](_0x3724fe,_0x42aacc[_0x5c04e0(0x183)]);const {id:_0x249df4}=await _0x42aacc[_0x5c04e0(0x115)]();this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe),this[_0x5c04e0(0x168)]({'type':_0x159672,'id':_0x249df4,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x1);}catch(_0x1d2b8a){this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe);if(!(_0x1d2b8a instanceof _0x1ce1c7&&_0x1d2b8a[_0x5c04e0(0x17b)][_0x5c04e0(0x110)](_0x5c04e0(0x10c)))){const _0x7b2007=_0x51eff4[_0x5c04e0(0x15a)](_0x1d2b8a[_0x5c04e0(0x128)])||_0x5c04e0(0x17c),_0xb402b9=new _0x1ce1c7(_0x7b2007,null,{'fileName':_0x1ba3e,..._0x1d2b8a});_0xb402b9[_0x5c04e0(0x127)]=_0x1d2b8a[_0x5c04e0(0x127)],this[_0x5c04e0(0x171)](_0x5c04e0(0x109),{'error':_0xb402b9});}this[_0x5c04e0(0x10a)](_0x3724fe);}}));}finally{this[_0xf3d9bd(0x17a)](_0x1867d5);}}[_0x5b195c(0x12e)](_0x2ddc83){const _0x40c9f1=_0x5b195c;if(this[_0x40c9f1(0x14b)]()||!this[_0x40c9f1(0x16c)][_0x40c9f1(0x137)][_0x40c9f1(0x135)])return;const _0x5834bb={'type':_0x5cd0b3[_0x40c9f1(0x13c)],'uiId':_0x40c9f1(0x158),'label':_0x2ddc83,'isReadOnly':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158)),'hidden':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158))};this[_0x40c9f1(0x165)](_0x5834bb);}async[_0x5b195c(0x116)](_0x154b96,_0x2ae039,_0x174523,_0x5d9429){const _0x16bf18=_0x5b195c,_0x5ea3ed=this[_0x16bf18(0x154)][_0x16bf18(0x15a)](_0x16bf18(0x158));if(_0x5ea3ed&&_0x154b96){_0x5ea3ed[_0x16bf18(0x117)]=_0x5d9429?_0x5d9429[_0x16bf18(0x13a)](_0x3c5616=>({'start':_0x3c5616[_0x16bf18(0x142)],'end':_0x3c5616[_0x16bf18(0x13d)]})):[];try{if(_0x5ea3ed[_0x16bf18(0x14e)]===_0x2ae039)return;const {id:_0x231997}=await this[_0x16bf18(0x11d)][_0x16bf18(0x14d)](this[_0x16bf18(0x17d)],_0x154b96,{'version':_0x2ae039,'sessionId':_0x174523})[_0x16bf18(0x115)]();_0x5ea3ed['id']=_0x231997,_0x5ea3ed[_0x16bf18(0x140)]=_0x154b96,_0x5ea3ed[_0x16bf18(0x14e)]=_0x2ae039,_0x5ea3ed[_0x16bf18(0x173)]=_0x174523;}catch(_0x4f54dc){const _0x10b887=new _0x1ce1c7(_0x16bf18(0x13f),null);_0x10b887[_0x16bf18(0x127)]=_0x4f54dc[_0x16bf18(0x127)],this[_0x16bf18(0x171)](_0x16bf18(0x109),{'error':_0x10b887});}}}[_0x5b195c(0x163)](_0x2ff99){const _0x228a77=_0x5b195c;this[_0x228a77(0x165)]({'type':_0x5cd0b3[_0x228a77(0x17f)],'label':_0x2ff99,'uiId':_0x228a77(0x117),'content':_0x2ff99});}[_0x5b195c(0x185)](){const _0x3b4a1b=_0x5b195c;this[_0x3b4a1b(0x10a)](_0x3b4a1b(0x117));}async[_0x5b195c(0x11b)](_0x5a967e,_0x5ce318){const _0x2662fd=_0x5b195c,_0x4a17bf=_0x2662fd(0x182)+_0x296cbb();this[_0x2662fd(0x15c)](_0x4a17bf);const _0x2ef27b=_0x2662fd(0x182)+_0x296cbb();try{this[_0x2662fd(0x165)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x0);const _0x506f96=this[_0x2662fd(0x11d)][_0x2662fd(0x16a)](this[_0x2662fd(0x17d)],_0x5a967e,_0x5ce318);this[_0x2662fd(0x191)][_0x2662fd(0x189)](_0x2ef27b,_0x506f96[_0x2662fd(0x183)]);const {id:_0x5ba3af}=await _0x506f96[_0x2662fd(0x115)]();this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),this[_0x2662fd(0x168)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'id':_0x5ba3af,'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x1);}catch(_0x564105){this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),(_0x564105[_0x2662fd(0x17b)][_0x2662fd(0x110)](_0x2662fd(0x10c))||this[_0x2662fd(0x171)](_0x2662fd(0x109),{'error':new _0x1ce1c7(_0x2662fd(0x16b),this,{'url':_0x5a967e,'originalError':_0x564105}),'url':_0x5a967e}),this[_0x2662fd(0x10a)](_0x2ef27b));}finally{this[_0x2662fd(0x17a)](_0x4a17bf);}}async[_0x5b195c(0x15e)](_0x5e9ffc,_0x5c8ce0,_0x3f248d){const _0x1eba43=_0x5b195c,_0x3e68c8=this[_0x1eba43(0x16c)][_0x1eba43(0x184)][_0x1eba43(0x188)](_0x418ee3=>_0x418ee3['id']===_0x5e9ffc);if(!_0x3e68c8)return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x12f),this,{'sourceId':_0x5e9ffc}),'sourceId':_0x5e9ffc}),[];try{const _0x5b9647=(await _0x3e68c8[_0x1eba43(0x161)](_0x5c8ce0))[_0x1eba43(0x13a)](_0x5aa756=>{const _0x9437a2=_0x1eba43,_0xf96148=this[_0x9437a2(0x145)](_0x5aa756['id']);return{..._0x5aa756,'isInContext':_0xf96148};});return _0x3e68c8[_0x1eba43(0x11e)]=_0x5b9647,this[_0x1eba43(0x171)](_0x1eba43(0x193),{'sourceId':_0x5e9ffc,'source':_0x3e68c8,'resources':_0x5b9647,'uid':_0x3f248d}),_0x5b9647;}catch(_0x12e0dd){return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x18c),this,{'sourceId':_0x5e9ffc,'originalError':_0x12e0dd}),'sourceId':_0x5e9ffc,'sourceLabel':_0x3e68c8[_0x1eba43(0x113)]}),[];}}async[_0x5b195c(0x129)](_0x4af14c,_0xaa6106){const _0x596e2a=_0x5b195c;if(this[_0x596e2a(0x145)](_0xaa6106['id']))return;let _0x4fd82a=_0xaa6106[_0x596e2a(0x11c)];if(!_0x4fd82a&&_0x4af14c[_0x596e2a(0x159)])try{_0x4fd82a=await _0x4af14c[_0x596e2a(0x159)](_0xaa6106['id']);}catch(_0x4da5e6){return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x17e),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'originalError':_0x4da5e6}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}if(_0x4fd82a)switch(_0xaa6106[_0x596e2a(0x187)]){case _0x5cd0b3[_0x596e2a(0x131)]:if(_0x596e2a(0x160)!=typeof _0x4fd82a)return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x160),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x11b)](_0x4fd82a,{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x15b)]:if(!(_0x4fd82a instanceof File))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x152),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x118)]:if(_0x596e2a(0x13e)!=typeof _0x4fd82a||!(_0x596e2a(0x140)in _0x4fd82a)||!(_0x596e2a(0x187)in _0x4fd82a))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x12d),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});_0x4fd82a=AIChatContext[_0x596e2a(0x143)](_0x4fd82a,_0xaa6106[_0x596e2a(0x113)]),await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']},_0x5cd0b3[_0x596e2a(0x118)]);break;default:this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x18a),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'resourceType':_0xaa6106[_0x596e2a(0x187)]}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}else this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x15d),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}static[_0x5b195c(0x143)](_0x59a2be,_0x1bbc9a){const _0x181283=_0x5b195c;switch(_0x59a2be[_0x181283(0x187)]){case _0x2f4824[_0x181283(0x175)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x148)});case _0x2f4824[_0x181283(0x141)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x130)});default:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x151)});}}static[_0x5b195c(0x10d)](_0x4dd5d4){const _0x4ee142=_0x5b195c;switch(_0x4dd5d4[_0x4ee142(0x187)]){case _0x5cd0b3[_0x4ee142(0x15b)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x131)]:return{'type':_0x5cd0b3[_0x4ee142(0x131)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x13c)]:return{'type':_0x5cd0b3[_0x4ee142(0x13c)],'id':_0x4dd5d4['id'],..._0x4dd5d4[_0x4ee142(0x117)]?.[_0x4ee142(0x150)]&&{'selection':_0x4dd5d4[_0x4ee142(0x117)]}};case _0x5cd0b3[_0x4ee142(0x118)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};default:return null;}}[_0x5b195c(0x165)](_0x82f084,_0xfc87a9=!0x1){const _0x1946f7=_0x5b195c;if(this[_0x1946f7(0x154)][_0x1946f7(0x189)](_0x82f084[_0x1946f7(0x166)],_0x82f084),_0x82f084[_0x1946f7(0x170)]||this[_0x1946f7(0x171)](_0x1946f7(0x144),{'contextItem':_0x82f084,'isLoading':_0xfc87a9}),_0x1946f7(0x158)===_0x82f084[_0x1946f7(0x166)]&&this[_0x1946f7(0x169)](),_0x82f084[_0x1946f7(0x186)]){const _0x361d85=this[_0x1946f7(0x112)](_0x82f084[_0x1946f7(0x186)]);_0x361d85&&_0x361d85[_0x1946f7(0x121)](_0x4804bc=>{const _0x20f169=_0x1946f7;this[_0x20f169(0x10b)](_0x4804bc,_0x82f084[_0x20f169(0x186)],!0x0);});}}[_0x5b195c(0x10a)](_0x39f9a1){const _0x214de5=_0x5b195c,_0x1c2301=this[_0x214de5(0x154)][_0x214de5(0x15a)](_0x39f9a1),_0x359452=this[_0x214de5(0x191)][_0x214de5(0x15a)](_0x39f9a1);if(_0x359452&&(_0x359452[_0x214de5(0x16e)](),this[_0x214de5(0x191)][_0x214de5(0x12b)](_0x39f9a1)),_0x1c2301?.[_0x214de5(0x186)]){const _0x5cb46d=this[_0x214de5(0x112)](_0x1c2301[_0x214de5(0x186)]);_0x5cb46d&&_0x5cb46d[_0x214de5(0x121)](_0x1857cb=>{const _0x4443a7=_0x214de5;this[_0x4443a7(0x10b)](_0x1857cb,_0x1c2301[_0x4443a7(0x186)],!0x1);});}this[_0x214de5(0x154)][_0x214de5(0x12b)](_0x39f9a1),this[_0x214de5(0x171)](_0x214de5(0x179),{'uiId':_0x39f9a1,'type':_0x1c2301?.[_0x214de5(0x187)]}),_0x214de5(0x158)===_0x39f9a1&&this[_0x214de5(0x169)]();}[_0x5b195c(0x168)](_0x3375a9,_0x44dbea){const _0x1eaccb=_0x5b195c;if(this[_0x1eaccb(0x154)][_0x1eaccb(0x16d)](_0x3375a9[_0x1eaccb(0x166)])&&(this[_0x1eaccb(0x154)][_0x1eaccb(0x189)](_0x3375a9[_0x1eaccb(0x166)],_0x3375a9),this[_0x1eaccb(0x171)](_0x1eaccb(0x15f),{'contextItem':_0x3375a9,'isLoading':_0x44dbea}),_0x3375a9[_0x1eaccb(0x186)])){const _0x1e6ce3=this[_0x1eaccb(0x112)](_0x3375a9[_0x1eaccb(0x186)]);_0x1e6ce3&&_0x1e6ce3[_0x1eaccb(0x121)](_0x25e13c=>{const _0x5cc4f6=_0x1eaccb;this[_0x5cc4f6(0x10b)](_0x25e13c,_0x3375a9[_0x5cc4f6(0x186)],!0x0);});}}[_0x5b195c(0x190)](_0x17acc6){const _0x7bb2ce=_0x5b195c;this[_0x7bb2ce(0x12c)][_0x7bb2ce(0x189)](_0x17acc6[_0x7bb2ce(0x166)],_0x17acc6);}[_0x5b195c(0x153)](){const _0x137c91=_0x5b195c;this[_0x137c91(0x16c)]={'document':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x137)]?.[_0x137c91(0x135)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x164)]?.[_0x137c91(0x135)]},'files':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x139)]?.[_0x137c91(0x135)]},'sources':this[_0x137c91(0x195)]()},this[_0x137c91(0x171)](_0x137c91(0x10e),{'options':this[_0x137c91(0x16c)]});}[_0x5b195c(0x195)](){const _0xae4c2a=_0x5b195c;return this[_0xae4c2a(0x12a)]?.[_0xae4c2a(0x184)]?.[_0xae4c2a(0x13a)](_0x4e189c=>({..._0x4e189c,'resources':[]}))??[];}[_0x5b195c(0x169)](){const _0x13b03c=_0x5b195c,_0x500c6e=this[_0x13b03c(0x14b)]()||this[_0x13b03c(0x176)]();this[_0x13b03c(0x16c)][_0x13b03c(0x137)][_0x13b03c(0x177)]=_0x500c6e,this[_0x13b03c(0x171)](_0x13b03c(0x10e),{'options':this[_0x13b03c(0x16c)]});}[_0x5b195c(0x145)](_0x11ab36){const _0x5a7904=_0x5b195c;for(const _0x245e8a of this[_0x5a7904(0x154)][_0x5a7904(0x123)]())if(_0x245e8a[_0x5a7904(0x186)]===_0x11ab36)return!0x0;for(const _0x1f632c of this[_0x5a7904(0x12c)][_0x5a7904(0x123)]())if(_0x1f632c[_0x5a7904(0x186)]===_0x11ab36)return!0x0;return!0x1;}[_0x5b195c(0x112)](_0x6a1927){const _0x44832a=_0x5b195c,_0x1ec45a=[];for(const _0x591e76 of this[_0x44832a(0x16c)][_0x44832a(0x184)]){_0x591e76[_0x44832a(0x11e)][_0x44832a(0x188)](_0x308e2a=>_0x308e2a['id']===_0x6a1927)&&_0x1ec45a[_0x44832a(0x14a)](_0x591e76['id']);}return 0x0===_0x1ec45a[_0x44832a(0x150)]?null:_0x1ec45a;}[_0x5b195c(0x10b)](_0x1660a7,_0x511c0a,_0x471d54){const _0x4fcc66=_0x5b195c,_0x15deaf=this[_0x4fcc66(0x16c)][_0x4fcc66(0x184)][_0x4fcc66(0x188)](_0x26d566=>_0x26d566['id']===_0x1660a7);if(!_0x15deaf)return;const _0x402f9a=_0x15deaf[_0x4fcc66(0x11e)][_0x4fcc66(0x188)](_0x57f0ec=>_0x57f0ec['id']===_0x511c0a);_0x402f9a&&(_0x402f9a[_0x4fcc66(0x157)]=_0x471d54,this[_0x4fcc66(0x171)](_0x4fcc66(0x162),{'sourceId':_0x1660a7,'resourceId':_0x511c0a,'isInContext':_0x471d54}));}[_0x5b195c(0x15c)](_0x2434e2){const _0x532203=_0x5b195c;this[_0x532203(0x14c)][_0x532203(0x189)](_0x2434e2,!0x0),this[_0x532203(0x14c)][_0x532203(0x174)]&&this[_0x532203(0x171)](_0x532203(0x114),{'isUploadInProgress':!0x0});}[_0x5b195c(0x17a)](_0x2211d4){const _0x4ed849=_0x5b195c;this[_0x4ed849(0x14c)][_0x4ed849(0x12b)](_0x2211d4),0x0===this[_0x4ed849(0x14c)][_0x4ed849(0x174)]&&this[_0x4ed849(0x171)](_0x4ed849(0x114),{'isUploadInProgress':!0x1});}}function _0x1906(){const _0x4ffa37=['getData','get','FILE','_startUploadOperation','ai-chat-resource-no-data','loadSourceResources','contextItemLoadingEnded','string','getResources','resourceStateChanged','addSelectionToContext','urls','_addContextItem','uiId','removeFromContext','_finishContextItemLoading','_toggleAddCurrentDocumentOptionVisibility','uploadUrl','ai-chat-url-upload-failed','_addContextOptionsState','has','abort','5462380SwhqVl','hidden','fire','file-','sessionId','size','MARKDOWN','isCurrentDocumentInConversation','isHidden','addToConversationContext','contextItemRemoved','_finishUploadOperation','message','ai-chat-file-upload-failed','_ownerId','ai-chat-resource-load-failed','SELECTION','20fUswda','getSentContextItems','url-','abortController','sources','removeSelectionFromContext','resourceId','type','find','set','ai-chat-context-unsupported-type','url','ai-chat-source-resources-load-failed','files-','getPendingContextItems','1051539LQbLzB','_addToConversationContextItem','_ongoingUploads','607788aBbRIQ','sourceResourcesLoaded','isReadOnly','_getCustomSourcesInitialState','73408FxKfCE','contextSent','error','_removeContextItem','_updateResourceInContextState','ai-request-aborted','_mapContextItemToRequestData','addContextOptionsChanged','uploadFile','startsWith','from','_findSourceIdsByResourceId','label','uploadProgressChanged','getId','updateCurrentDocument','selection','TEXT','135244PjBUrw','populateFromMessage','addUrlToContext','data','_connector','resources','15szJMJp','Current\x20document','forEach','getDocument','values','7407333VScBLo','isSelectionInContext','all','stack','code','addResourceToContext','_config','delete','_conversationContextItems','object\x20with\x20content\x20and\x20type\x20properties','addCurrentDocumentToContext','ai-chat-source-not-found','text/html','URL','mapContextItemsToRequestData','fetchDocument','addFilesToContext','enabled','name','document','init','files','map','attributes','DOCUMENT','end','object','ai-chat-document-upload-failed','content','HTML','start','_convertTextResourceToFile','contextItemAdded','_isResourceInContext','145GpCrlz','clearPendingContextItems','text/markdown','127076mEVYoW','push','isCurrentDocumentInContext','_ongoingUploadOperations','uploadDocument','version','_createContextItemFromContent','length','text/plain','File','_setAddContextOptionsDefaultState','_pendingContextItems','filter','ai-chat-context-invalid-data','isInContext','current-document'];_0x1906=function(){return _0x4ffa37;};return _0x1906();}
23
+ const _0x3ada10=_0x42a5;function _0x1f1d(){const _0x2137c9=['addUrlToContext','name','contextItemAdded','ai-chat-source-not-found','_config','isCurrentDocumentInContext','_connector','_conversationContextItems','enabled','addContextOptionsChanged','ai-chat-context-unsupported-type','isSelectionInContext','addResourceToContext','uploadDocument','sourceResourcesLoaded','_finishUploadOperation','updateCurrentDocument','set','100530TKwgln','clearPendingContextItems','ai-chat-source-resources-load-failed','removeFromContext','content','values','getPendingContextItems','_ownerId','1738568cpflzV','_pendingContextItems','_addContextOptionsState','_isResourceInContext','attributes','text/html','length','_updateResourceInContextState','_getCustomSourcesInitialState','uiId','size','2bEjtHZ','TEXT','uploadUrl','MARKDOWN','contextSent','object\x20with\x20content\x20and\x20type\x20properties','contextItemLoadingEnded','SELECTION','_convertTextResourceToFile','sources','contextItemRemoved','fetchDocument','378BDhztf','abort','get','842980MisyNi','all','map','ai-chat-context-invalid-data','addSelectionToContext','getSentContextItems','current-document','text/markdown','3493MBLqFP','ai-chat-resource-no-data','_setAddContextOptionsDefaultState','getDocument','_startUploadOperation','FILE','HTML','startsWith','getData','find','ai-chat-file-upload-failed','url-','resourceStateChanged','stack','from','2489913ZxyImw','removeSelectionFromContext','files','_mapContextItemToRequestData','end','DOCUMENT','Current\x20document','addCurrentDocumentToContext','isCurrentDocumentInConversation','init','type','label','forEach','document','sessionId','_createContextItemFromContent','getId','_findSourceIdsByResourceId','ai-request-aborted','populateFromMessage','_addToConversationContextItem','7096HKmGpG','abortController','ai-chat-resource-load-failed','delete','fire','URL','addToConversationContext','file-','_addContextItem','push','addFilesToContext','File','loadSourceResources','11220381xfoiHn','filter','selection','uploadFile','isInContext','error','url','ai-chat-document-upload-failed','string','mapContextItemsToRequestData','version','data','_toggleAddCurrentDocumentOptionVisibility','59285Otdppb','ai-chat-url-upload-failed','resourceId','uploadProgressChanged','resources','message','object','isHidden','start','code','_ongoingUploads','_removeContextItem','_finishContextItemLoading','_ongoingUploadOperations','files-','urls','1177giKIGD','has','hidden','isReadOnly','text/plain','getResources'];_0x1f1d=function(){return _0x2137c9;};return _0x1f1d();}(function(_0x5c7dfd,_0x21a866){const _0x17356d=_0x42a5,_0x42c54d=_0x5c7dfd();while(!![]){try{const _0xc45738=parseInt(_0x17356d(0x137))/0x1*(parseInt(_0x17356d(0x128))/0x2)+parseInt(_0x17356d(0x14e))/0x3+parseInt(_0x17356d(0x11d))/0x4+parseInt(_0x17356d(0x17d))/0x5*(-parseInt(_0x17356d(0x134))/0x6)+parseInt(_0x17356d(0x13f))/0x7*(-parseInt(_0x17356d(0x163))/0x8)+-parseInt(_0x17356d(0x170))/0x9+-parseInt(_0x17356d(0x115))/0xa*(-parseInt(_0x17356d(0xfd))/0xb);if(_0xc45738===_0x21a866)break;else _0x42c54d['push'](_0x42c54d['shift']());}catch(_0x5f271a){_0x42c54d['push'](_0x42c54d['shift']());}}}(_0x1f1d,0xb65c7));import{CKEditorError as _0x56a256,ObservableMixin as _0x355e10,uid as _0x14a39e}from'ckeditor5/src/utils.js';function _0x42a5(_0x30f8d0,_0x3c6ab9){const _0x1f1d27=_0x1f1d();return _0x42a5=function(_0x42a530,_0x2f13f4){_0x42a530=_0x42a530-0xfd;let _0x115865=_0x1f1d27[_0x42a530];return _0x115865;},_0x42a5(_0x30f8d0,_0x3c6ab9);}import{AIContextItemType as _0x4675a6,AIContextTextResourceType as _0x23fc08}from'../../aicore/model/aicontext.js';import{escape as _0x288202}from'es-toolkit/compat';import{errorsMap as _0xb16c61}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3ada10(0x105),_0x3ada10(0x132),_0x3ada10(0x12e),_0x3ada10(0x12c),_0x3ada10(0x175),_0x3ada10(0x10c),_0x3ada10(0x111),_0x3ada10(0x14b),_0x3ada10(0x180)];export class AIChatContext extends _0x355e10(){[_0x3ada10(0x109)];[_0x3ada10(0x107)];[_0x3ada10(0x11c)];constructor({connector:_0x5cf5a2,config:_0x439adf,ownerId:_0x6cca96}){const _0x344e70=_0x3ada10;super(),this[_0x344e70(0x109)]=_0x5cf5a2,this[_0x344e70(0x107)]=_0x439adf,this[_0x344e70(0x11c)]=_0x6cca96;}[_0x3ada10(0x157)](){const _0x4856e5=_0x3ada10;this[_0x4856e5(0x11e)]=new Map(),this[_0x4856e5(0x10a)]=new Map(),this[_0x4856e5(0x187)]=new Map(),this[_0x4856e5(0x18a)]=new Map(),this[_0x4856e5(0x141)]();}[_0x3ada10(0x11b)](){const _0x4b4cdc=_0x3ada10;return this[_0x4b4cdc(0x11e)];}async[_0x3ada10(0x161)](_0x2d1155){const _0x265da8=_0x3ada10,_0x2c95f8=await this[_0x265da8(0x15d)](_0x2d1155);return this[_0x265da8(0x162)](_0x2c95f8),_0x265da8(0x13d)===_0x2c95f8[_0x265da8(0x126)]&&this[_0x265da8(0x17c)](),_0x2c95f8;}async[_0x3ada10(0x15d)](_0x108bf0){const _0x5e822d=_0x3ada10;if(_0x108bf0[_0x5e822d(0x158)]===_0x4675a6[_0x5e822d(0x153)]){const _0x5841c2=await this[_0x5e822d(0x109)][_0x5e822d(0x133)](this[_0x5e822d(0x11c)],_0x108bf0['id'])[_0x5e822d(0x142)]();return{'id':_0x5e822d(0x13d),'uiId':_0x5e822d(0x13d),'label':_0x5e822d(0x154),'type':_0x108bf0[_0x5e822d(0x158)],'content':_0x5841c2[_0x5e822d(0x119)],'hidden':this[_0x5e822d(0x10a)][_0x5e822d(0xfe)](_0x5e822d(0x13d)),'version':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x17a)],'sessionId':_0x5841c2[_0x5e822d(0x121)]?.[_0x5e822d(0x15c)]};}return{'id':_0x108bf0['id'],'uiId':_0x108bf0['id'],'label':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x159)]||_0x108bf0[_0x5e822d(0x104)]||_0x108bf0[_0x5e822d(0x176)]||_0x108bf0['id'],'type':_0x108bf0[_0x5e822d(0x158)],..._0x108bf0?.[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]?{'resourceId':_0x108bf0[_0x5e822d(0x121)]?.[_0x5e822d(0x17f)]}:{}};}[_0x3ada10(0x13c)](){const _0x2e7972=_0x3ada10;return new Map(this[_0x2e7972(0x10a)]);}[_0x3ada10(0x118)](_0x2644cb){const _0x299fb0=_0x3ada10,_0x1163ca=this[_0x299fb0(0x11e)][_0x299fb0(0x136)](_0x2644cb);_0x1163ca?.[_0x299fb0(0x100)]||this[_0x299fb0(0x188)](_0x2644cb);}[_0x3ada10(0x116)](){const _0x23e072=_0x3ada10;if(0x0===this[_0x23e072(0x11e)][_0x23e072(0x127)])return;for(const _0x41db7b of this[_0x23e072(0x11e)][_0x23e072(0x11a)]())this[_0x23e072(0x188)](_0x41db7b[_0x23e072(0x126)]);const _0x280836=this[_0x23e072(0x10a)][_0x23e072(0x136)](_0x23e072(0x13d))||this[_0x23e072(0x11e)][_0x23e072(0x136)](_0x23e072(0x13d));_0x280836&&this[_0x23e072(0x16b)]({..._0x280836,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3ada10(0x169)](_0x4cf52c){const _0x50a876=_0x3ada10;for(const _0xc426a8 of _0x4cf52c[_0x50a876(0x11a)]())this[_0x50a876(0x162)](_0xc426a8);this[_0x50a876(0x116)](),this[_0x50a876(0x167)](_0x50a876(0x12c),{'contextItems':Array[_0x50a876(0x14d)](this[_0x50a876(0x13c)]()[_0x50a876(0x11a)]())});}[_0x3ada10(0x108)](){const _0x29f1ef=_0x3ada10;return this[_0x29f1ef(0x11e)][_0x29f1ef(0xfe)](_0x29f1ef(0x13d));}[_0x3ada10(0x10e)](){const _0x376e1e=_0x3ada10;return this[_0x376e1e(0x11e)][_0x376e1e(0xfe)](_0x376e1e(0x172));}[_0x3ada10(0x156)](){const _0x221360=_0x3ada10;return this[_0x221360(0x10a)][_0x221360(0xfe)](_0x221360(0x13d));}static[_0x3ada10(0x179)](_0x4a70a1){const _0x3b2a02=_0x3ada10;return Array[_0x3b2a02(0x14d)](_0x4a70a1[_0x3b2a02(0x11a)]())[_0x3b2a02(0x139)](_0x258917=>this[_0x3b2a02(0x151)](_0x258917))[_0x3b2a02(0x171)](_0x21963f=>null!==_0x21963f);}async[_0x3ada10(0x16d)](_0x1ea2e2,_0x146dc3,_0xf1cb09=_0x4675a6[_0x3ada10(0x144)]){const _0x39a285=_0x3ada10,_0x5c7550=_0x39a285(0x18b)+_0x14a39e();this[_0x39a285(0x143)](_0x5c7550);try{await Promise[_0x39a285(0x138)](_0x1ea2e2[_0x39a285(0x139)](async _0x302756=>{const _0xbb8813=_0x39a285,_0x176a9a=_0xbb8813(0x16a)+_0x14a39e(),_0x4ac654=_0x288202(_0x302756[_0xbb8813(0x104)]);try{this[_0xbb8813(0x16b)]({'type':_0xf1cb09,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x0);const _0x4bfb2d=this[_0xbb8813(0x109)][_0xbb8813(0x173)](this[_0xbb8813(0x11c)],_0x302756,_0x146dc3);this[_0xbb8813(0x187)][_0xbb8813(0x114)](_0x176a9a,_0x4bfb2d[_0xbb8813(0x164)]);const {id:_0x5a596a}=await _0x4bfb2d[_0xbb8813(0x15e)]();this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a),this[_0xbb8813(0x189)]({'type':_0xf1cb09,'id':_0x5a596a,'label':_0x146dc3?.[_0xbb8813(0x159)]||_0x4ac654,'uiId':_0x176a9a,'resourceId':_0x146dc3?.[_0xbb8813(0x17f)]},!0x1);}catch(_0x3b6814){this[_0xbb8813(0x187)][_0xbb8813(0x166)](_0x176a9a);if(!(_0x3b6814 instanceof _0x56a256&&_0x3b6814[_0xbb8813(0x182)][_0xbb8813(0x146)](_0xbb8813(0x160)))){const _0x3bc903=_0xb16c61[_0xbb8813(0x136)](_0x3b6814[_0xbb8813(0x186)])||_0xbb8813(0x149),_0x58dacd=new _0x56a256(_0x3bc903,null,{'fileName':_0x4ac654,..._0x3b6814});_0x58dacd[_0xbb8813(0x14c)]=_0x3b6814[_0xbb8813(0x14c)],this[_0xbb8813(0x167)](_0xbb8813(0x175),{'error':_0x58dacd});}this[_0xbb8813(0x188)](_0x176a9a);}}));}finally{this[_0x39a285(0x112)](_0x5c7550);}}[_0x3ada10(0x155)](_0x4621b2){const _0x297dcc=_0x3ada10;if(this[_0x297dcc(0x108)]()||!this[_0x297dcc(0x11f)][_0x297dcc(0x15b)][_0x297dcc(0x10b)])return;const _0x30607b={'type':_0x4675a6[_0x297dcc(0x153)],'uiId':_0x297dcc(0x13d),'label':_0x4621b2,'isReadOnly':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d)),'hidden':this[_0x297dcc(0x10a)][_0x297dcc(0xfe)](_0x297dcc(0x13d))};this[_0x297dcc(0x16b)](_0x30607b);}async[_0x3ada10(0x113)](_0x17306c,_0x5d82fa,_0x2fd8ad,_0x4a591a){const _0x554bb2=_0x3ada10,_0x163806=this[_0x554bb2(0x11e)][_0x554bb2(0x136)](_0x554bb2(0x13d));if(_0x163806&&_0x17306c){_0x163806[_0x554bb2(0x172)]=_0x4a591a?_0x4a591a[_0x554bb2(0x139)](_0x23d9df=>({'start':_0x23d9df[_0x554bb2(0x185)],'end':_0x23d9df[_0x554bb2(0x152)]})):[];try{if(_0x163806[_0x554bb2(0x17a)]===_0x5d82fa)return;const {id:_0x2fe01a}=await this[_0x554bb2(0x109)][_0x554bb2(0x110)](this[_0x554bb2(0x11c)],_0x17306c,{'version':_0x5d82fa,'sessionId':_0x2fd8ad})[_0x554bb2(0x15e)]();_0x163806['id']=_0x2fe01a,_0x163806[_0x554bb2(0x119)]=_0x17306c,_0x163806[_0x554bb2(0x17a)]=_0x5d82fa,_0x163806[_0x554bb2(0x15c)]=_0x2fd8ad;}catch(_0x518eef){const _0x180f88=new _0x56a256(_0x554bb2(0x177),null);_0x180f88[_0x554bb2(0x14c)]=_0x518eef[_0x554bb2(0x14c)],this[_0x554bb2(0x167)](_0x554bb2(0x175),{'error':_0x180f88});}}}[_0x3ada10(0x13b)](_0x317b8f){const _0x59f2fa=_0x3ada10;this[_0x59f2fa(0x16b)]({'type':_0x4675a6[_0x59f2fa(0x12f)],'label':_0x317b8f,'uiId':_0x59f2fa(0x172),'content':_0x317b8f});}[_0x3ada10(0x14f)](){const _0x443d48=_0x3ada10;this[_0x443d48(0x188)](_0x443d48(0x172));}async[_0x3ada10(0x103)](_0x383bd9,_0x424504){const _0x3efdf6=_0x3ada10,_0x2c125e=_0x3efdf6(0x14a)+_0x14a39e();this[_0x3efdf6(0x143)](_0x2c125e);const _0x4aef0e=_0x3efdf6(0x14a)+_0x14a39e();try{this[_0x3efdf6(0x16b)]({'type':_0x4675a6[_0x3efdf6(0x168)],'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x0);const _0x36521b=this[_0x3efdf6(0x109)][_0x3efdf6(0x12a)](this[_0x3efdf6(0x11c)],_0x383bd9,_0x424504);this[_0x3efdf6(0x187)][_0x3efdf6(0x114)](_0x4aef0e,_0x36521b[_0x3efdf6(0x164)]);const {id:_0x5ed344}=await _0x36521b[_0x3efdf6(0x15e)]();this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),this[_0x3efdf6(0x189)]({'type':_0x4675a6[_0x3efdf6(0x168)],'id':_0x5ed344,'label':_0x424504?.[_0x3efdf6(0x159)]||_0x383bd9,'uiId':_0x4aef0e,'resourceId':_0x424504?.[_0x3efdf6(0x17f)]},!0x1);}catch(_0x4a2730){this[_0x3efdf6(0x187)][_0x3efdf6(0x166)](_0x4aef0e),(_0x4a2730[_0x3efdf6(0x182)][_0x3efdf6(0x146)](_0x3efdf6(0x160))||this[_0x3efdf6(0x167)](_0x3efdf6(0x175),{'error':new _0x56a256(_0x3efdf6(0x17e),this,{'url':_0x383bd9,'originalError':_0x4a2730}),'url':_0x383bd9}),this[_0x3efdf6(0x188)](_0x4aef0e));}finally{this[_0x3efdf6(0x112)](_0x2c125e);}}async[_0x3ada10(0x16f)](_0x1f4762,_0x55699a,_0xbc9750){const _0x374951=_0x3ada10,_0x5264dc=this[_0x374951(0x11f)][_0x374951(0x131)][_0x374951(0x148)](_0x35d956=>_0x35d956['id']===_0x1f4762);if(!_0x5264dc)return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x106),this,{'sourceId':_0x1f4762}),'sourceId':_0x1f4762}),[];try{const _0x446f52=(await _0x5264dc[_0x374951(0x102)](_0x55699a))[_0x374951(0x139)](_0x1a4a1d=>{const _0x209565=_0x374951,_0x55fcb8=this[_0x209565(0x120)](_0x1a4a1d['id']);return{..._0x1a4a1d,'isInContext':_0x55fcb8};});return _0x5264dc[_0x374951(0x181)]=_0x446f52,this[_0x374951(0x167)](_0x374951(0x111),{'sourceId':_0x1f4762,'source':_0x5264dc,'resources':_0x446f52,'uid':_0xbc9750}),_0x446f52;}catch(_0x171dcb){return this[_0x374951(0x167)](_0x374951(0x175),{'error':new _0x56a256(_0x374951(0x117),this,{'sourceId':_0x1f4762,'originalError':_0x171dcb}),'sourceId':_0x1f4762,'sourceLabel':_0x5264dc[_0x374951(0x159)]}),[];}}async[_0x3ada10(0x10f)](_0x5a3532,_0x1a42a6){const _0x27613b=_0x3ada10;if(this[_0x27613b(0x120)](_0x1a42a6['id']))return;let _0x17b3d7=_0x1a42a6[_0x27613b(0x17b)];if(!_0x17b3d7&&_0x5a3532[_0x27613b(0x147)])try{_0x17b3d7=await _0x5a3532[_0x27613b(0x147)](_0x1a42a6['id']);}catch(_0x5b1e07){return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x165),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'originalError':_0x5b1e07}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}if(_0x17b3d7)switch(_0x1a42a6[_0x27613b(0x158)]){case _0x4675a6[_0x27613b(0x168)]:if(_0x27613b(0x178)!=typeof _0x17b3d7)return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x178),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x103)](_0x17b3d7,{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x144)]:if(!(_0x17b3d7 instanceof File))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x16e),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']});break;case _0x4675a6[_0x27613b(0x129)]:if(_0x27613b(0x183)!=typeof _0x17b3d7||!(_0x27613b(0x119)in _0x17b3d7)||!(_0x27613b(0x158)in _0x17b3d7))return void this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x13a),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'expectedType':_0x27613b(0x12d),'actualType':typeof _0x17b3d7}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});_0x17b3d7=AIChatContext[_0x27613b(0x130)](_0x17b3d7,_0x1a42a6[_0x27613b(0x159)]),await this[_0x27613b(0x16d)]([_0x17b3d7],{'label':_0x1a42a6[_0x27613b(0x159)],'resourceId':_0x1a42a6['id']},_0x4675a6[_0x27613b(0x129)]);break;default:this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x10d),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id'],'resourceType':_0x1a42a6[_0x27613b(0x158)]}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}else this[_0x27613b(0x167)](_0x27613b(0x175),{'error':new _0x56a256(_0x27613b(0x140),this,{'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']}),'resourceId':_0x1a42a6['id'],'sourceId':_0x5a3532['id']});}static[_0x3ada10(0x130)](_0xd23547,_0x361c0d){const _0x12cca5=_0x3ada10;switch(_0xd23547[_0x12cca5(0x158)]){case _0x23fc08[_0x12cca5(0x12b)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x13e)});case _0x23fc08[_0x12cca5(0x145)]:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x122)});default:return new File([_0xd23547[_0x12cca5(0x119)]],_0x361c0d,{'type':_0x12cca5(0x101)});}}static[_0x3ada10(0x151)](_0x78845){const _0x122198=_0x3ada10;switch(_0x78845[_0x122198(0x158)]){case _0x4675a6[_0x122198(0x144)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x168)]:return{'type':_0x4675a6[_0x122198(0x168)],'id':_0x78845['id']};case _0x4675a6[_0x122198(0x153)]:return{'type':_0x4675a6[_0x122198(0x153)],'id':_0x78845['id'],..._0x78845[_0x122198(0x172)]?.[_0x122198(0x123)]&&{'selection':_0x78845[_0x122198(0x172)]}};case _0x4675a6[_0x122198(0x129)]:return{'type':_0x4675a6[_0x122198(0x144)],'id':_0x78845['id']};default:return null;}}[_0x3ada10(0x16b)](_0x48730d,_0x373937=!0x1){const _0x5360a8=_0x3ada10;if(this[_0x5360a8(0x11e)][_0x5360a8(0x114)](_0x48730d[_0x5360a8(0x126)],_0x48730d),_0x48730d[_0x5360a8(0xff)]||this[_0x5360a8(0x167)](_0x5360a8(0x105),{'contextItem':_0x48730d,'isLoading':_0x373937}),_0x5360a8(0x13d)===_0x48730d[_0x5360a8(0x126)]&&this[_0x5360a8(0x17c)](),_0x48730d[_0x5360a8(0x17f)]){const _0x189101=this[_0x5360a8(0x15f)](_0x48730d[_0x5360a8(0x17f)]);_0x189101&&_0x189101[_0x5360a8(0x15a)](_0xad4524=>{const _0xbbe87c=_0x5360a8;this[_0xbbe87c(0x124)](_0xad4524,_0x48730d[_0xbbe87c(0x17f)],!0x0);});}}[_0x3ada10(0x188)](_0x484615){const _0x5b284a=_0x3ada10,_0x4d67ba=this[_0x5b284a(0x11e)][_0x5b284a(0x136)](_0x484615),_0x34b8ca=this[_0x5b284a(0x187)][_0x5b284a(0x136)](_0x484615);if(_0x34b8ca&&(_0x34b8ca[_0x5b284a(0x135)](),this[_0x5b284a(0x187)][_0x5b284a(0x166)](_0x484615)),_0x4d67ba?.[_0x5b284a(0x17f)]){const _0x365de2=this[_0x5b284a(0x15f)](_0x4d67ba[_0x5b284a(0x17f)]);_0x365de2&&_0x365de2[_0x5b284a(0x15a)](_0x1aa07c=>{const _0x3007fa=_0x5b284a;this[_0x3007fa(0x124)](_0x1aa07c,_0x4d67ba[_0x3007fa(0x17f)],!0x1);});}this[_0x5b284a(0x11e)][_0x5b284a(0x166)](_0x484615),this[_0x5b284a(0x167)](_0x5b284a(0x132),{'uiId':_0x484615,'type':_0x4d67ba?.[_0x5b284a(0x158)]}),_0x5b284a(0x13d)===_0x484615&&this[_0x5b284a(0x17c)]();}[_0x3ada10(0x189)](_0x33abd1,_0x2b3cbe){const _0x42b908=_0x3ada10;if(this[_0x42b908(0x11e)][_0x42b908(0xfe)](_0x33abd1[_0x42b908(0x126)])&&(this[_0x42b908(0x11e)][_0x42b908(0x114)](_0x33abd1[_0x42b908(0x126)],_0x33abd1),this[_0x42b908(0x167)](_0x42b908(0x12e),{'contextItem':_0x33abd1,'isLoading':_0x2b3cbe}),_0x33abd1[_0x42b908(0x17f)])){const _0xda4fc6=this[_0x42b908(0x15f)](_0x33abd1[_0x42b908(0x17f)]);_0xda4fc6&&_0xda4fc6[_0x42b908(0x15a)](_0x2be14a=>{const _0x5e8873=_0x42b908;this[_0x5e8873(0x124)](_0x2be14a,_0x33abd1[_0x5e8873(0x17f)],!0x0);});}}[_0x3ada10(0x162)](_0x1455e4){const _0x2fc7cf=_0x3ada10;this[_0x2fc7cf(0x10a)][_0x2fc7cf(0x114)](_0x1455e4[_0x2fc7cf(0x126)],_0x1455e4);}[_0x3ada10(0x141)](){const _0x205565=_0x3ada10;this[_0x205565(0x11f)]={'document':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x15b)]?.[_0x205565(0x10b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x18c)]?.[_0x205565(0x10b)]},'files':{'enabled':!0x1!==this[_0x205565(0x107)]?.[_0x205565(0x150)]?.[_0x205565(0x10b)]},'sources':this[_0x205565(0x125)]()},this[_0x205565(0x167)](_0x205565(0x10c),{'options':this[_0x205565(0x11f)]});}[_0x3ada10(0x125)](){const _0x1193d8=_0x3ada10;return this[_0x1193d8(0x107)]?.[_0x1193d8(0x131)]?.[_0x1193d8(0x139)](_0x45e177=>({..._0x45e177,'resources':[]}))??[];}[_0x3ada10(0x17c)](){const _0x4840e7=_0x3ada10,_0x83590e=this[_0x4840e7(0x108)]()||this[_0x4840e7(0x156)]();this[_0x4840e7(0x11f)][_0x4840e7(0x15b)][_0x4840e7(0x184)]=_0x83590e,this[_0x4840e7(0x167)](_0x4840e7(0x10c),{'options':this[_0x4840e7(0x11f)]});}[_0x3ada10(0x120)](_0x216d89){const _0x21ed85=_0x3ada10;for(const _0xe5f36b of this[_0x21ed85(0x11e)][_0x21ed85(0x11a)]())if(_0xe5f36b[_0x21ed85(0x17f)]===_0x216d89)return!0x0;for(const _0x1037c8 of this[_0x21ed85(0x10a)][_0x21ed85(0x11a)]())if(_0x1037c8[_0x21ed85(0x17f)]===_0x216d89)return!0x0;return!0x1;}[_0x3ada10(0x15f)](_0x4ddc2e){const _0x10b1bd=_0x3ada10,_0x341d82=[];for(const _0x1e3be0 of this[_0x10b1bd(0x11f)][_0x10b1bd(0x131)]){_0x1e3be0[_0x10b1bd(0x181)][_0x10b1bd(0x148)](_0x3e296a=>_0x3e296a['id']===_0x4ddc2e)&&_0x341d82[_0x10b1bd(0x16c)](_0x1e3be0['id']);}return 0x0===_0x341d82[_0x10b1bd(0x123)]?null:_0x341d82;}[_0x3ada10(0x124)](_0x411416,_0x2a24cc,_0x20cddc){const _0x4d7bab=_0x3ada10,_0x48c38e=this[_0x4d7bab(0x11f)][_0x4d7bab(0x131)][_0x4d7bab(0x148)](_0x2e1ee2=>_0x2e1ee2['id']===_0x411416);if(!_0x48c38e)return;const _0x3c30f9=_0x48c38e[_0x4d7bab(0x181)][_0x4d7bab(0x148)](_0x533131=>_0x533131['id']===_0x2a24cc);_0x3c30f9&&(_0x3c30f9[_0x4d7bab(0x174)]=_0x20cddc,this[_0x4d7bab(0x167)](_0x4d7bab(0x14b),{'sourceId':_0x411416,'resourceId':_0x2a24cc,'isInContext':_0x20cddc}));}[_0x3ada10(0x143)](_0xbda23d){const _0x425f40=_0x3ada10;this[_0x425f40(0x18a)][_0x425f40(0x114)](_0xbda23d,!0x0),this[_0x425f40(0x18a)][_0x425f40(0x127)]&&this[_0x425f40(0x167)](_0x425f40(0x180),{'isUploadInProgress':!0x0});}[_0x3ada10(0x112)](_0x113009){const _0x7fa43f=_0x3ada10;this[_0x7fa43f(0x18a)][_0x7fa43f(0x166)](_0x113009),0x0===this[_0x7fa43f(0x18a)][_0x7fa43f(0x127)]&&this[_0x7fa43f(0x167)](_0x7fa43f(0x180),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa4e42=_0x581b;(function(_0x406f51,_0x452903){const _0x1ebb23=_0x581b,_0x58ae33=_0x406f51();while(!![]){try{const _0x26dc56=-parseInt(_0x1ebb23(0xf7))/0x1+-parseInt(_0x1ebb23(0x12a))/0x2+-parseInt(_0x1ebb23(0xf5))/0x3*(-parseInt(_0x1ebb23(0x14d))/0x4)+-parseInt(_0x1ebb23(0x115))/0x5+-parseInt(_0x1ebb23(0x139))/0x6+parseInt(_0x1ebb23(0x11f))/0x7*(-parseInt(_0x1ebb23(0xde))/0x8)+-parseInt(_0x1ebb23(0x136))/0x9*(-parseInt(_0x1ebb23(0x131))/0xa);if(_0x26dc56===_0x452903)break;else _0x58ae33['push'](_0x58ae33['shift']());}catch(_0x1c46d2){_0x58ae33['push'](_0x58ae33['shift']());}}}(_0x1f8c,0x22883));import{CKEditorError as _0x21c9b8,EmitterMixin as _0xd3d689,logWarning as _0x5bed54}from'ckeditor5/src/utils.js';function _0x581b(_0x118524,_0x329bf0){const _0x1f8c8b=_0x1f8c();return _0x581b=function(_0x581b05,_0x423725){_0x581b05=_0x581b05-0xdc;let _0x1126a8=_0x1f8c8b[_0x581b05];return _0x1126a8;},_0x581b(_0x118524,_0x329bf0);}import{AI_MODEL_EVENT_NAMES as _0x1240ce}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3ce10c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x58535d}from'./aichatcontext.js';import{AICapabilities as _0x3b2d76,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b1c76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3914d9}from'./aichatinteraction.js';import{errorsMap as _0x5226d4}from'../../errorsmap.js';function _0x1f8c(){const _0x5916e4=['conversationInitialized','error','getEditor','addSelectionToContext','_extractContextItems','conversationStarted','user','490443AbRuCX','setModel','157630GSeNuq','reasoning','fetchConversation','connector','modelSelected','fetchConversationMessages','sessionId','chatCapabilities','ai-chat-conversation-set-model-null','prompt','content','createInteraction','destroy','options','toggleReasoning','interactionCreated','toggleWebSearch','reset','ai-chat-conversation-init-failed','ai-chat-conversation-start-no-model-selected','appendContent','handleUserInteraction','text-delta','contextItems','loadSourceResources','addUrlToContext','start','stack','get','conversationId','735155rzFNzw','getCurrentDocumentContext','getCapabilitiesConfig','model','ai-chat-conversation-set-model-not-available','init','webSearch','getDocumentContext','createReply','delegate','5299uXhcHm','attributes','selectedModel','push','getPendingContextItems','updateCurrentDocument','isCurrentDocumentInContext','chatContext','isStarted','load','getMessages','470688Vkomtl','indexOf','group','fire','length','ai-chat-conversation-already-started','code','3860460mXKUlD','addFilesToContext','addToConversationContext','addResourceToContext','getAll','18xxVOSK','populateFromMessage','currentInteraction','1265856hOTBaU','ai-chat-conversation-start-failed','selectedModelId','hasOwn','removeSelectionFromContext','interactions','getConversation','quickActionData','isCurrentDocumentInConversation','find','role','set','getModel','currentReply','text','getInteraction','isSelectionInContext','lastInteraction','modification-delta','stop','4RPSIYZ','toLowerCase','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','_processMessagesToInteractions','title','456InmQEe','startConversation','ai-chat-handle-user-interaction-start-failed','message','getAvailableModels','capabilities','type','addCurrentDocumentToContext','chatModels','splice','setConversationTitle','removeFromContext','isAvailable','ai-chat-handle-user-conversation-not-initialized','assistant','removeInteraction'];_0x1f8c=function(){return _0x5916e4;};return _0x1f8c();}export class AIChatConversation extends _0xd3d689(){['id'];[_0xa4e42(0x127)]=!0x1;[_0xa4e42(0x13e)]=[];[_0xa4e42(0x138)];[_0xa4e42(0x121)];[_0xa4e42(0xfa)];[_0xa4e42(0x104)];constructor(_0x4920ed){const _0x8bf488=_0xa4e42;super(),this[_0x8bf488(0x104)]=_0x4920ed,this[_0x8bf488(0xfa)]=_0x4920ed[_0x8bf488(0xfa)],this[_0x8bf488(0xe6)]=_0x4920ed[_0x8bf488(0xe6)],this['id']=_0x4920ed[_0x8bf488(0x114)];}async[_0xa4e42(0x11a)](_0x230381){const _0x3adfb9=_0xa4e42;try{this[_0x3adfb9(0x126)]=new _0x3ce10c({'connector':this[_0x3adfb9(0xfa)],'config':_0x230381,'ownerId':this['id']}),this[_0x3adfb9(0x126)][_0x3adfb9(0x11e)](..._0x58535d)['to'](this),this[_0x3adfb9(0x126)][_0x3adfb9(0x11a)](),this[_0x3adfb9(0xfe)]=new _0x3b2d76(),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11e)](..._0x5b1c76)['to'](this),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11a)]();const _0x12739a=await this[_0x3adfb9(0xe6)][_0x3adfb9(0xe2)]();this[_0x3adfb9(0x12d)](_0x3adfb9(0xee),{'availableModels':_0x12739a});const _0x3c2897=await this[_0x3adfb9(0xe6)][_0x3adfb9(0x145)](this[_0x3adfb9(0x104)][_0x3adfb9(0x13b)]);_0x3c2897&&await this[_0x3adfb9(0xf6)](_0x3c2897);}catch(_0x4dc144){const _0x2bc933=new _0x21c9b8(_0x3adfb9(0x109),null,{'message':_0x4dc144[_0x3adfb9(0xe1)]||_0x4dc144});_0x2bc933[_0x3adfb9(0x112)]=_0x4dc144[_0x3adfb9(0x112)],this[_0x3adfb9(0x12d)](_0x3adfb9(0xef),{'error':_0x2bc933});}}async[_0xa4e42(0x111)](){const _0x590975=_0xa4e42;if(this[_0x590975(0x127)])throw new _0x21c9b8(_0x590975(0x12f),null,{'conversation':this});if(!this[_0x590975(0x121)])throw new _0x21c9b8(_0x590975(0x10a),null,{'conversation':this});try{const {id:_0x330671}=await this[_0x590975(0xfa)][_0x590975(0xdf)](this['id'],this[_0x590975(0x104)][_0x590975(0x12c)])[_0x590975(0x13f)]();this['id']=_0x330671,this[_0x590975(0x127)]=!0x0,this[_0x590975(0x12d)](_0x590975(0xf3),{'conversationId':this['id'],'selectedModel':this[_0x590975(0x121)]});}catch(_0x2ff0f3){const _0x426efb=new _0x21c9b8(_0x590975(0x13a),null,{'message':_0x2ff0f3[_0x590975(0xe1)],'conversationId':this['id']});throw _0x426efb[_0x590975(0x112)]=_0x2ff0f3[_0x590975(0x112)],this[_0x590975(0x12d)](_0x590975(0xef),{'error':_0x426efb}),_0x426efb;}}async[_0xa4e42(0x128)](_0x18729b,_0x570148){const _0x2fc34d=_0xa4e42;try{const _0x6e1580=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xf9)](_0x18729b)[_0x2fc34d(0x13f)](),_0x38ccc4=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xfc)](_0x18729b)[_0x2fc34d(0x129)](),_0x6364b2=_0x38ccc4[0x0][_0x2fc34d(0x118)];this[_0x2fc34d(0x127)]=!0x0,this['id']=_0x6e1580['id'],_0x2fc34d(0xdd)in _0x6e1580?this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),_0x6e1580[_0x2fc34d(0xdd)],!0x0):this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),'',!0x0);const _0x3317c4=(await this[_0x2fc34d(0xe6)][_0x2fc34d(0x135)]())[_0x2fc34d(0x142)](_0x7132db=>_0x7132db['id'][_0x2fc34d(0x14e)]()===_0x6364b2[_0x2fc34d(0x14e)]());return this[_0x2fc34d(0x121)]=_0x3317c4,this[_0x2fc34d(0x12d)](_0x2fc34d(0xfb),{'selectedModel':_0x3317c4,'isDisabled':!0x0}),await this[_0x2fc34d(0xdc)](_0x38ccc4,_0x570148,_0x6364b2),this[_0x2fc34d(0x138)]=void 0x0,this;}catch(_0x20cd49){const _0x5813b5=new _0x21c9b8(_0x2fc34d(0x14f),null,{'message':_0x20cd49[_0x2fc34d(0xe1)],'conversationId':_0x18729b});throw _0x5813b5[_0x2fc34d(0x112)]=_0x20cd49[_0x2fc34d(0x112)],this[_0x2fc34d(0x12d)](_0x2fc34d(0xef),{'error':_0x5813b5}),_0x5813b5;}}async[_0xa4e42(0xdc)](_0x3c1f38,_0x4c1a9c,_0x426bea){const _0x2baf7c=_0xa4e42;let _0x38dab7;for(const _0x27a10f of _0x3c1f38)if(_0x2baf7c(0xf4)===_0x27a10f[_0x2baf7c(0x143)]){const _0x25d68c=await this[_0x2baf7c(0xf2)](_0x27a10f),_0x4f36b6={'isReasoningEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0xf8)),'isWebSearchEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0x11b))};_0x38dab7=this[_0x2baf7c(0x102)]({'userMessage':_0x27a10f[_0x2baf7c(0x100)],'contextItems':_0x25d68c,'capabilities':_0x4f36b6,'modelId':_0x426bea,'quickActionData':_0x27a10f[_0x2baf7c(0x120)]?.[_0x2baf7c(0x140)]}),this[_0x2baf7c(0x138)]=_0x38dab7,this[_0x2baf7c(0x126)][_0x2baf7c(0x133)](this[_0x2baf7c(0x138)][_0x2baf7c(0x10e)]);}else{if(_0x2baf7c(0xec)===_0x27a10f[_0x2baf7c(0x143)]&&_0x38dab7)for(const _0x50e057 of _0x27a10f[_0x2baf7c(0x101)]){const _0x1fccb8=_0x2baf7c(0x147)===_0x50e057[_0x2baf7c(0xe4)]?_0x2baf7c(0x10d):_0x2baf7c(0x14b),_0x2f0730=_0x38dab7[_0x2baf7c(0x11c)]()?.[_0x2baf7c(0xfd)]!==_0x4c1a9c;_0x38dab7[_0x2baf7c(0x146)]=_0x38dab7[_0x2baf7c(0x11d)]({'type':_0x1fccb8,'isDone':!0x0,'interactionId':_0x38dab7['id'],'areActionsDisabled':_0x2f0730}),_0x38dab7[_0x2baf7c(0x146)][_0x2baf7c(0x10b)](_0x50e057[_0x2baf7c(0x101)]);}}}async[_0xa4e42(0xf2)](_0x1aab04){const _0x6ef330=_0xa4e42,_0x140fc0=new Map();if(!_0x1aab04[_0x6ef330(0x101)])return _0x140fc0;for(const _0x3d973a of _0x1aab04[_0x6ef330(0x101)]){const _0x56b808=await this[_0x6ef330(0x126)][_0x6ef330(0x137)](_0x3d973a);_0x56b808&&_0x140fc0[_0x6ef330(0x144)](_0x56b808['id'],_0x56b808);}return _0x140fc0;}async[_0xa4e42(0x10c)]({userMessage:_0xd32564,quickActionData:_0x4d36ec}){const _0x12bb99=_0xa4e42;if(!this[_0x12bb99(0x127)])throw new _0x21c9b8(_0x12bb99(0xeb),null,{'conversation':this});if(this[_0x12bb99(0x138)])throw new _0x21c9b8(_0x12bb99(0x150),null,{'conversation':this});try{const _0x332658=this[_0x12bb99(0x126)][_0x12bb99(0x123)](),_0x24c50f=this[_0x12bb99(0xfe)][_0x12bb99(0x117)](),_0x3171f9=this[_0x12bb99(0x121)]['id'];this[_0x12bb99(0x138)]=this[_0x12bb99(0x102)]({'userMessage':_0xd32564,'contextItems':_0x332658,'capabilities':_0x24c50f,'modelId':_0x3171f9,'quickActionData':_0x4d36ec}),await this[_0x12bb99(0x138)][_0x12bb99(0x111)](),this[_0x12bb99(0x126)][_0x12bb99(0x133)](this[_0x12bb99(0x138)][_0x12bb99(0x10e)]);}catch(_0x5ac8fa){if(_0x5ac8fa instanceof _0x21c9b8)this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':_0x5ac8fa});else{const _0x5d5cf3=_0x5226d4[_0x12bb99(0x113)](_0x5ac8fa[_0x12bb99(0x130)])||_0x12bb99(0xe0);this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':new _0x21c9b8(_0x5d5cf3,null,{'error':_0x5ac8fa})});}}finally{this[_0x12bb99(0x138)]?.[_0x12bb99(0x14c)](),this[_0x12bb99(0x138)]=void 0x0;}}[_0xa4e42(0x102)]({userMessage:_0x330cf9,contextItems:_0x54b7a7,capabilities:_0x3f2452,modelId:_0x368850,quickActionData:_0x26e091}){const _0x3ec4de=_0xa4e42,_0x5035bd=new _0x3914d9({'userMessage':_0x330cf9,'contextItems':_0x54b7a7,'capabilities':_0x3f2452,'conversationId':this['id'],'connector':this[_0x3ec4de(0xfa)],'editor':this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)]&&this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)](),'model':_0x368850,'quickActionData':_0x26e091});return _0x5035bd[_0x3ec4de(0x11e)](..._0x1240ce)['to'](this),this[_0x3ec4de(0x13e)][_0x3ec4de(0x122)](_0x5035bd),this[_0x3ec4de(0x12d)](_0x3ec4de(0x106),_0x5035bd),_0x5035bd;}[_0xa4e42(0x148)](_0x1de15a){const _0x1dcd9a=_0xa4e42;return this[_0x1dcd9a(0x13e)][_0x1dcd9a(0x142)](_0x41ee19=>_0x41ee19['id']===_0x1de15a);}[_0xa4e42(0xed)](_0x3d25b8){const _0x1ece33=_0xa4e42,_0x51d1c3=this[_0x1ece33(0x148)](_0x3d25b8);_0x51d1c3&&(_0x51d1c3[_0x1ece33(0x103)](),this[_0x1ece33(0x13e)][_0x1ece33(0xe7)](this[_0x1ece33(0x13e)][_0x1ece33(0x12b)](_0x51d1c3),0x1));}get[_0xa4e42(0x14a)](){const _0x179428=_0xa4e42;return this[_0x179428(0x13e)][this[_0x179428(0x13e)][_0x179428(0x12e)]-0x1];}[_0xa4e42(0xe5)](_0x55bda9){const _0x3972b8=_0xa4e42;this[_0x3972b8(0x126)][_0x3972b8(0xe5)](_0x55bda9);}async[_0xa4e42(0x151)]({content:_0x51fc84,version:_0x1fdb91,sessionId:_0x3b20ff,selections:_0x539e3c}){const _0x2db046=_0xa4e42;await this[_0x2db046(0x126)][_0x2db046(0x124)](_0x51fc84,_0x1fdb91,_0x3b20ff,_0x539e3c);}[_0xa4e42(0x116)](){const _0x3c724c=_0xa4e42;return this[_0x3c724c(0x138)]?.[_0x3c724c(0x11c)]()?.[_0x3c724c(0x101)]||'';}[_0xa4e42(0xf1)](_0x3423aa){const _0x359abd=_0xa4e42;this[_0x359abd(0x126)][_0x359abd(0xf1)](_0x3423aa);}[_0xa4e42(0x13d)](){const _0x5ae355=_0xa4e42;this[_0x5ae355(0x126)][_0x5ae355(0x13d)]();}[_0xa4e42(0x132)](_0xccd401){const _0xde6eb2=_0xa4e42;this[_0xde6eb2(0x126)][_0xde6eb2(0x132)](_0xccd401);}[_0xa4e42(0x110)](_0x2c1bbd){const _0x483809=_0xa4e42;this[_0x483809(0x126)][_0x483809(0x110)](_0x2c1bbd);}[_0xa4e42(0x134)](_0x309202,_0x584b9f){const _0x327444=_0xa4e42;this[_0x327444(0x126)][_0x327444(0x134)](_0x309202,_0x584b9f);}[_0xa4e42(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6){const _0x81b5ea=_0xa4e42;return this[_0x81b5ea(0x126)][_0x81b5ea(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6);}[_0xa4e42(0xe9)](_0x6c1c64){const _0x7af457=_0xa4e42;this[_0x7af457(0x126)][_0x7af457(0xe9)](_0x6c1c64);}[_0xa4e42(0x107)](){const _0x797e53=_0xa4e42;this[_0x797e53(0xfe)][_0x797e53(0x107)]();}[_0xa4e42(0x105)](){const _0x5a3b55=_0xa4e42;this[_0x5a3b55(0xfe)][_0x5a3b55(0x105)]();}[_0xa4e42(0x125)](){const _0x31302e=_0xa4e42;return this[_0x31302e(0x126)][_0x31302e(0x125)]();}[_0xa4e42(0x141)](){const _0x2a7b78=_0xa4e42;return this[_0x2a7b78(0x126)][_0x2a7b78(0x141)]();}[_0xa4e42(0x149)](){const _0x5a9520=_0xa4e42;return this[_0x5a9520(0x126)][_0x5a9520(0x149)]();}async[_0xa4e42(0xf6)](_0x35c38a){const _0x20a1f2=_0xa4e42;_0x35c38a?!0x1===await this[_0x20a1f2(0xe6)][_0x20a1f2(0xea)](_0x35c38a)&&(_0x5bed54(_0x20a1f2(0x119),{'conversation':this,'model':_0x35c38a}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]):(_0x5bed54(_0x20a1f2(0xff),{'conversation':this}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]),_0x35c38a['id']!==this[_0x20a1f2(0x121)]?.['id']&&(this[_0x20a1f2(0x121)]=_0x35c38a,this[_0x20a1f2(0xfe)][_0x20a1f2(0x108)](),this[_0x20a1f2(0x12d)](_0x20a1f2(0xfb),{'selectedModel':_0x35c38a}));}}
23
+ const _0x123db2=_0x472a;function _0x472a(_0x3f53e8,_0x7a2107){const _0x717dbf=_0x717d();return _0x472a=function(_0x472a08,_0x5cce01){_0x472a08=_0x472a08-0x124;let _0x4869a5=_0x717dbf[_0x472a08];return _0x4869a5;},_0x472a(_0x3f53e8,_0x7a2107);}function _0x717d(){const _0x2ed14f=['fire','interactionCreated','getMessages','currentInteraction','init','indexOf','getAll','ai-chat-handle-user-interaction-already-in-progress','isCurrentDocumentInContext','loadSourceResources','content','removeFromContext','653919qGysmt','delegate','chatModels','text-delta','addUrlToContext','get','getEditor','text','ai-chat-handle-user-interaction-start-failed','error','updateCurrentDocumentInContext','toLowerCase','role','16kFDIYM','fetchConversation','hasOwn','isSelectionInContext','contextItems','10TMafSp','getPendingContextItems','setConversationTitle','code','ai-chat-handle-user-conversation-not-initialized','assistant','find','reset','chatContext','populateFromMessage','startConversation','message','toggleWebSearch','lastInteraction','isAvailable','1802124kMMboT','addFilesToContext','982534jufUvX','toggleReasoning','addSelectionToContext','isCurrentDocumentInConversation','selectedModel','selectedModelId','stack','isStarted','connector','getInteraction','90598ivgZsl','prompt','push','getCurrentDocumentContext','636LHQKlH','219901dIJkqj','group','model','quickActionData','fetchConversationMessages','webSearch','createReply','ai-chat-conversation-start-failed','addToConversationContext','title','user','_extractContextItems','1845zArZjo','modelSelected','createInteraction','appendContent','addCurrentDocumentToContext','getDocumentContext','interactions','setModel','ai-chat-conversation-init-from-id-failed','sessionId','ai-chat-conversation-start-no-model-selected','removeInteraction','addResourceToContext','length','ai-chat-conversation-init-failed','set','currentReply','attributes','removeSelectionFromContext','modification-delta','getAvailableModels','getConversation','ai-chat-conversation-set-model-not-available','splice','chatCapabilities','_processMessagesToInteractions','conversationInitialized','21960jTQWZt','type','ai-chat-conversation-set-model-null','options','10EbVcuz','6791580GJQpfs','start','destroy','conversationId','updateCurrentDocument','conversationStarted','getModel','getCapabilitiesConfig','stop','ai-chat-conversation-already-started','handleUserInteraction','capabilities','reasoning','load'];_0x717d=function(){return _0x2ed14f;};return _0x717d();}(function(_0x21d3e1,_0xc2aea2){const _0x2c248c=_0x472a,_0x39a987=_0x21d3e1();while(!![]){try{const _0x172dad=-parseInt(_0x2c248c(0x169))/0x1*(-parseInt(_0x2c248c(0x139))/0x2)+parseInt(_0x2c248c(0x184))/0x3*(-parseInt(_0x2c248c(0x191))/0x4)+parseInt(_0x2c248c(0x196))/0x5*(parseInt(_0x2c248c(0x12d))/0x6)+parseInt(_0x2c248c(0x12f))/0x7+-parseInt(_0x2c248c(0x165))/0x8*(-parseInt(_0x2c248c(0x14a))/0x9)+parseInt(_0x2c248c(0x16a))/0xa+-parseInt(_0x2c248c(0x13e))/0xb*(parseInt(_0x2c248c(0x13d))/0xc);if(_0x172dad===_0xc2aea2)break;else _0x39a987['push'](_0x39a987['shift']());}catch(_0x4e37aa){_0x39a987['push'](_0x39a987['shift']());}}}(_0x717d,0x7b2d0));import{CKEditorError as _0x18ba14,EmitterMixin as _0x3efd10,logWarning as _0x128e89}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x55fdae}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f533b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x54d1f1}from'./aichatcontext.js';import{AICapabilities as _0x4b235f,CAPABILITIES_MODEL_EVENT_NAMES as _0x2aead0}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x100734}from'./aichatinteraction.js';import{errorsMap as _0x294bea}from'../../errorsmap.js';export class AIChatConversation extends _0x3efd10(){['id'];[_0x123db2(0x136)]=!0x1;[_0x123db2(0x150)]=[];[_0x123db2(0x17b)];[_0x123db2(0x133)];[_0x123db2(0x137)];[_0x123db2(0x168)];constructor(_0x517016){const _0x362746=_0x123db2;super(),this[_0x362746(0x168)]=_0x517016,this[_0x362746(0x137)]=_0x517016[_0x362746(0x137)],this[_0x362746(0x186)]=_0x517016[_0x362746(0x186)],this['id']=_0x517016[_0x362746(0x16d)];}async[_0x123db2(0x17c)](_0x23c548){const _0x1d532b=_0x123db2;try{this[_0x1d532b(0x126)]=new _0x3f533b({'connector':this[_0x1d532b(0x137)],'config':_0x23c548,'ownerId':this['id']}),this[_0x1d532b(0x126)][_0x1d532b(0x185)](..._0x54d1f1)['to'](this),this[_0x1d532b(0x126)][_0x1d532b(0x17c)](),this[_0x1d532b(0x162)]=new _0x4b235f(),this[_0x1d532b(0x162)][_0x1d532b(0x185)](..._0x2aead0)['to'](this),this[_0x1d532b(0x162)][_0x1d532b(0x17c)]();const _0x18212c=await this[_0x1d532b(0x186)][_0x1d532b(0x15e)]();this[_0x1d532b(0x178)](_0x1d532b(0x164),{'availableModels':_0x18212c});const _0x56e4aa=await this[_0x1d532b(0x186)][_0x1d532b(0x170)](this[_0x1d532b(0x168)][_0x1d532b(0x134)]);_0x56e4aa&&await this[_0x1d532b(0x151)](_0x56e4aa);}catch(_0x201ee5){const _0x2511f8=new _0x18ba14(_0x1d532b(0x158),null,{'message':_0x201ee5[_0x1d532b(0x129)]||_0x201ee5});_0x2511f8[_0x1d532b(0x135)]=_0x201ee5[_0x1d532b(0x135)],this[_0x1d532b(0x178)](_0x1d532b(0x18d),{'error':_0x2511f8});}}async[_0x123db2(0x16b)](){const _0x13cfd9=_0x123db2;if(this[_0x13cfd9(0x136)])throw new _0x18ba14(_0x13cfd9(0x173),null,{'conversation':this});if(!this[_0x13cfd9(0x133)])throw new _0x18ba14(_0x13cfd9(0x154),null,{'conversation':this});try{const {id:_0x2385f9}=await this[_0x13cfd9(0x137)][_0x13cfd9(0x128)](this['id'],this[_0x13cfd9(0x168)][_0x13cfd9(0x13f)])[_0x13cfd9(0x15f)]();this['id']=_0x2385f9,this[_0x13cfd9(0x136)]=!0x0,this[_0x13cfd9(0x178)](_0x13cfd9(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x13cfd9(0x133)]});}catch(_0x4fe3e1){const _0x422127=new _0x18ba14(_0x13cfd9(0x145),null,{'message':_0x4fe3e1[_0x13cfd9(0x129)],'conversationId':this['id']});throw _0x422127[_0x13cfd9(0x135)]=_0x4fe3e1[_0x13cfd9(0x135)],this[_0x13cfd9(0x178)](_0x13cfd9(0x18d),{'error':_0x422127}),_0x422127;}}async[_0x123db2(0x177)](_0x62882e,_0x265739){const _0x32cafb=_0x123db2;try{const _0x3174b3=await this[_0x32cafb(0x137)][_0x32cafb(0x192)](_0x62882e)[_0x32cafb(0x15f)](),_0x41fd8c=await this[_0x32cafb(0x137)][_0x32cafb(0x142)](_0x62882e)[_0x32cafb(0x17a)](),_0x13be40=_0x41fd8c[0x0][_0x32cafb(0x140)];this[_0x32cafb(0x136)]=!0x0,this['id']=_0x3174b3['id'],_0x32cafb(0x147)in _0x3174b3?this[_0x32cafb(0x178)](_0x32cafb(0x198),_0x3174b3[_0x32cafb(0x147)],!0x0):this[_0x32cafb(0x178)](_0x32cafb(0x198),'',!0x0);const _0x2711bc=(await this[_0x32cafb(0x186)][_0x32cafb(0x17e)]())[_0x32cafb(0x124)](_0x2e0b22=>_0x2e0b22['id'][_0x32cafb(0x18f)]()===_0x13be40[_0x32cafb(0x18f)]());return this[_0x32cafb(0x133)]=_0x2711bc,this[_0x32cafb(0x178)](_0x32cafb(0x14b),{'selectedModel':_0x2711bc,'isDisabled':!0x0}),await this[_0x32cafb(0x163)](_0x41fd8c,_0x265739,_0x13be40),this[_0x32cafb(0x17b)]=void 0x0,this;}catch(_0x4e896e){const _0x1a0d9e=new _0x18ba14(_0x32cafb(0x152),null,{'message':_0x4e896e[_0x32cafb(0x129)],'conversationId':_0x62882e});throw _0x1a0d9e[_0x32cafb(0x135)]=_0x4e896e[_0x32cafb(0x135)],this[_0x32cafb(0x178)](_0x32cafb(0x18d),{'error':_0x1a0d9e}),_0x1a0d9e;}}async[_0x123db2(0x163)](_0x2d8075,_0x46627b,_0x5b30b8){const _0x39cbe2=_0x123db2;let _0x524a51;for(const _0x260066 of _0x2d8075)if(_0x39cbe2(0x148)===_0x260066[_0x39cbe2(0x190)]){const _0x4afa5e=await this[_0x39cbe2(0x149)](_0x260066),_0x54828b={'isReasoningEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x176)),'isWebSearchEnabled':Object[_0x39cbe2(0x193)](_0x260066[_0x39cbe2(0x175)],_0x39cbe2(0x143))};_0x524a51=this[_0x39cbe2(0x14c)]({'userMessage':_0x260066[_0x39cbe2(0x13a)],'contextItems':_0x4afa5e,'capabilities':_0x54828b,'modelId':_0x5b30b8,'quickActionData':_0x260066[_0x39cbe2(0x15b)]?.[_0x39cbe2(0x141)]}),this[_0x39cbe2(0x17b)]=_0x524a51,this[_0x39cbe2(0x126)][_0x39cbe2(0x146)](this[_0x39cbe2(0x17b)][_0x39cbe2(0x195)]);}else{if(_0x39cbe2(0x19b)===_0x260066[_0x39cbe2(0x190)]&&_0x524a51)for(const _0x27ca5c of _0x260066[_0x39cbe2(0x182)]){const _0x286dbe=_0x39cbe2(0x18b)===_0x27ca5c[_0x39cbe2(0x166)]?_0x39cbe2(0x187):_0x39cbe2(0x15d),_0x504808=_0x524a51[_0x39cbe2(0x14f)]()?.[_0x39cbe2(0x153)]!==_0x46627b;_0x524a51[_0x39cbe2(0x15a)]=_0x524a51[_0x39cbe2(0x144)]({'type':_0x286dbe,'isDone':!0x0,'interactionId':_0x524a51['id'],'areActionsDisabled':_0x504808}),_0x524a51[_0x39cbe2(0x15a)][_0x39cbe2(0x14d)](_0x27ca5c[_0x39cbe2(0x182)]);}}}async[_0x123db2(0x149)](_0x1ad1ed){const _0x19f1f4=_0x123db2,_0x56dcd0=new Map();if(!_0x1ad1ed[_0x19f1f4(0x182)])return _0x56dcd0;for(const _0x56f051 of _0x1ad1ed[_0x19f1f4(0x182)]){const _0x30947e=await this[_0x19f1f4(0x126)][_0x19f1f4(0x127)](_0x56f051);_0x30947e&&_0x56dcd0[_0x19f1f4(0x159)](_0x30947e['id'],_0x30947e);}return _0x56dcd0;}async[_0x123db2(0x174)]({userMessage:_0xca9dc0,quickActionData:_0x278eb9}){const _0x3f5575=_0x123db2;if(!this[_0x3f5575(0x136)])throw new _0x18ba14(_0x3f5575(0x19a),null,{'conversation':this});if(this[_0x3f5575(0x17b)])throw new _0x18ba14(_0x3f5575(0x17f),null,{'conversation':this});try{const _0x107c85=this[_0x3f5575(0x126)][_0x3f5575(0x197)](),_0x5d55a7=this[_0x3f5575(0x162)][_0x3f5575(0x171)](),_0x5448d0=this[_0x3f5575(0x133)]['id'];this[_0x3f5575(0x17b)]=this[_0x3f5575(0x14c)]({'userMessage':_0xca9dc0,'contextItems':_0x107c85,'capabilities':_0x5d55a7,'modelId':_0x5448d0,'quickActionData':_0x278eb9}),await this[_0x3f5575(0x17b)][_0x3f5575(0x16b)](),this[_0x3f5575(0x126)][_0x3f5575(0x146)](this[_0x3f5575(0x17b)][_0x3f5575(0x195)]);}catch(_0x594e99){if(_0x594e99 instanceof _0x18ba14)this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':_0x594e99});else{const _0x3cefbc=_0x294bea[_0x3f5575(0x189)](_0x594e99[_0x3f5575(0x199)])||_0x3f5575(0x18c);this[_0x3f5575(0x178)](_0x3f5575(0x18d),{'interactionId':this[_0x3f5575(0x17b)]?this[_0x3f5575(0x17b)]['id']:void 0x0,'error':new _0x18ba14(_0x3cefbc,null,{'error':_0x594e99})});}}finally{this[_0x3f5575(0x17b)]?.[_0x3f5575(0x172)](),this[_0x3f5575(0x17b)]=void 0x0;}}[_0x123db2(0x14c)]({userMessage:_0x50ffda,contextItems:_0x62b25d,capabilities:_0x10007a,modelId:_0x312ba9,quickActionData:_0x162a4b}){const _0x12c796=_0x123db2,_0x4f2be4=new _0x100734({'userMessage':_0x50ffda,'contextItems':_0x62b25d,'capabilities':_0x10007a,'conversationId':this['id'],'connector':this[_0x12c796(0x137)],'editor':this[_0x12c796(0x168)][_0x12c796(0x18a)]&&this[_0x12c796(0x168)][_0x12c796(0x18a)](),'model':_0x312ba9,'quickActionData':_0x162a4b});return _0x4f2be4[_0x12c796(0x185)](..._0x55fdae)['to'](this),this[_0x12c796(0x150)][_0x12c796(0x13b)](_0x4f2be4),this[_0x12c796(0x178)](_0x12c796(0x179),_0x4f2be4),_0x4f2be4;}[_0x123db2(0x138)](_0x560171){const _0x1048be=_0x123db2;return this[_0x1048be(0x150)][_0x1048be(0x124)](_0x36d784=>_0x36d784['id']===_0x560171);}[_0x123db2(0x155)](_0x119097){const _0x1e41a1=_0x123db2,_0x56cb22=this[_0x1e41a1(0x138)](_0x119097);_0x56cb22&&(_0x56cb22[_0x1e41a1(0x16c)](),this[_0x1e41a1(0x150)][_0x1e41a1(0x161)](this[_0x1e41a1(0x150)][_0x1e41a1(0x17d)](_0x56cb22),0x1));}get[_0x123db2(0x12b)](){const _0xd5b310=_0x123db2;return this[_0xd5b310(0x150)][this[_0xd5b310(0x150)][_0xd5b310(0x157)]-0x1];}[_0x123db2(0x14e)](_0xd0fa84){const _0x5a78a9=_0x123db2;this[_0x5a78a9(0x126)][_0x5a78a9(0x14e)](_0xd0fa84);}async[_0x123db2(0x18e)]({content:_0x5f9297,version:_0x3a6741,sessionId:_0x1132ff,selections:_0x25270f}){const _0x4ee3d3=_0x123db2;await this[_0x4ee3d3(0x126)][_0x4ee3d3(0x16e)](_0x5f9297,_0x3a6741,_0x1132ff,_0x25270f);}[_0x123db2(0x13c)](){const _0x3d600e=_0x123db2;return this[_0x3d600e(0x17b)]?.[_0x3d600e(0x14f)]()?.[_0x3d600e(0x182)]||'';}[_0x123db2(0x131)](_0x46f514){const _0x567a39=_0x123db2;this[_0x567a39(0x126)][_0x567a39(0x131)](_0x46f514);}[_0x123db2(0x15c)](){const _0xe51e8c=_0x123db2;this[_0xe51e8c(0x126)][_0xe51e8c(0x15c)]();}[_0x123db2(0x12e)](_0x2b4daa){const _0xf9fbc5=_0x123db2;this[_0xf9fbc5(0x126)][_0xf9fbc5(0x12e)](_0x2b4daa);}[_0x123db2(0x188)](_0xb31cac){const _0x266518=_0x123db2;this[_0x266518(0x126)][_0x266518(0x188)](_0xb31cac);}[_0x123db2(0x156)](_0x1b6e66,_0x5e62dd){const _0x24b4dd=_0x123db2;this[_0x24b4dd(0x126)][_0x24b4dd(0x156)](_0x1b6e66,_0x5e62dd);}[_0x123db2(0x181)](_0xe598b3,_0x512f77,_0x57e196){const _0x3adc9e=_0x123db2;return this[_0x3adc9e(0x126)][_0x3adc9e(0x181)](_0xe598b3,_0x512f77,_0x57e196);}[_0x123db2(0x183)](_0x6d6462){const _0x4d45f6=_0x123db2;this[_0x4d45f6(0x126)][_0x4d45f6(0x183)](_0x6d6462);}[_0x123db2(0x12a)](){const _0x31c12e=_0x123db2;this[_0x31c12e(0x162)][_0x31c12e(0x12a)]();}[_0x123db2(0x130)](){const _0x3f4bcb=_0x123db2;this[_0x3f4bcb(0x162)][_0x3f4bcb(0x130)]();}[_0x123db2(0x180)](){const _0x1c70da=_0x123db2;return this[_0x1c70da(0x126)][_0x1c70da(0x180)]();}[_0x123db2(0x132)](){const _0x38d3f2=_0x123db2;return this[_0x38d3f2(0x126)][_0x38d3f2(0x132)]();}[_0x123db2(0x194)](){const _0x27bbaa=_0x123db2;return this[_0x27bbaa(0x126)][_0x27bbaa(0x194)]();}async[_0x123db2(0x151)](_0x1f87d8){const _0x189e20=_0x123db2;_0x1f87d8?!0x1===await this[_0x189e20(0x186)][_0x189e20(0x12c)](_0x1f87d8)&&(_0x128e89(_0x189e20(0x160),{'conversation':this,'model':_0x1f87d8}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]):(_0x128e89(_0x189e20(0x167),{'conversation':this}),_0x1f87d8=(await this[_0x189e20(0x186)][_0x189e20(0x15e)]())[0x0]),_0x1f87d8['id']!==this[_0x189e20(0x133)]?.['id']&&(this[_0x189e20(0x133)]=_0x1f87d8,this[_0x189e20(0x162)][_0x189e20(0x125)](),this[_0x189e20(0x178)](_0x189e20(0x14b),{'selectedModel':_0x1f87d8}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x599604=_0x5448;(function(_0x59691a,_0x18b1f0){var _0x15b2d2=_0x5448,_0x336708=_0x59691a();while(!![]){try{var _0x592a23=parseInt(_0x15b2d2(0xcb))/0x1*(-parseInt(_0x15b2d2(0xe0))/0x2)+-parseInt(_0x15b2d2(0xda))/0x3*(parseInt(_0x15b2d2(0xd6))/0x4)+parseInt(_0x15b2d2(0xcd))/0x5*(parseInt(_0x15b2d2(0xdd))/0x6)+-parseInt(_0x15b2d2(0xd1))/0x7+-parseInt(_0x15b2d2(0xe1))/0x8+-parseInt(_0x15b2d2(0xd7))/0x9+-parseInt(_0x15b2d2(0xde))/0xa*(-parseInt(_0x15b2d2(0xd0))/0xb);if(_0x592a23===_0x18b1f0)break;else _0x336708['push'](_0x336708['shift']());}catch(_0x3ba482){_0x336708['push'](_0x336708['shift']());}}}(_0x4c6c,0xa5622));import{AICapabilities as _0x4a9f99}from'../../aicore/model/aicapabilities.js';function _0x4c6c(){var _0x592c2b=['getCapabilitiesRequestData','363nddrfB','1307712KvFifx','getDocumentContext','contextItems','get','mapContextItemsToRequestData','4RzQBGy','2848185XNmupK','queryAssistant','quickActionData','3137955jBanTH','capabilities','model','6AeBQwz','856880GJryFV','sendRequest','6TPybyn','2089904mqDcQa','conversationId','current-document','153446ZKxUxF','connector','602740tVGubg','userMessage'];_0x4c6c=function(){return _0x592c2b;};return _0x4c6c();}import{AIInteraction as _0x116ca4}from'../../aicore/model/aiinteraction.js';function _0x5448(_0x5c8e60,_0x1301d5){var _0x4c6cbd=_0x4c6c();return _0x5448=function(_0x544863,_0x2e5822){_0x544863=_0x544863-0xc9;var _0x2e7e21=_0x4c6cbd[_0x544863];return _0x2e7e21;},_0x5448(_0x5c8e60,_0x1301d5);}import{AIChatContext as _0x51bf32}from'./aichatcontext.js';export class AIChatInteraction extends _0x116ca4{[_0x599604(0xce)];[_0x599604(0xc9)];[_0x599604(0xd3)]=new Map();[_0x599604(0xdc)];[_0x599604(0xd9)];constructor(_0xba6c01){var _0x20c524=_0x599604;super(_0xba6c01),this[_0x20c524(0xc9)]=_0xba6c01[_0x20c524(0xc9)],this[_0x20c524(0xd3)]=_0xba6c01[_0x20c524(0xd3)],this[_0x20c524(0xdb)]=_0xba6c01[_0x20c524(0xdb)],this[_0x20c524(0xce)]=_0xba6c01[_0x20c524(0xce)],this[_0x20c524(0xdc)]=_0xba6c01[_0x20c524(0xdc)],this[_0x20c524(0xd9)]=_0xba6c01[_0x20c524(0xd9)];}async[_0x599604(0xdf)](){var _0x2be555=_0x599604;return this[_0x2be555(0xcc)][_0x2be555(0xd8)]({'message':this[_0x2be555(0xce)],'conversationId':this[_0x2be555(0xc9)],'parts':_0x51bf32[_0x2be555(0xd5)](this[_0x2be555(0xd3)]),'capabilities':_0x4a9f99[_0x2be555(0xcf)](this[_0x2be555(0xdb)]),'model':this[_0x2be555(0xdc)],'quickActionData':this[_0x2be555(0xd9)]});}[_0x599604(0xd2)](){var _0x185966=_0x599604;return this[_0x185966(0xd3)][_0x185966(0xd4)](_0x185966(0xca));}}
23
+ var _0x4f6e6f=_0x2221;function _0x28de(){var _0x5576e8=['contextItems','current-document','1207370djORXm','944028jmgBeF','conversationId','userMessage','connector','getCapabilitiesRequestData','model','queryAssistant','2200891dcEycW','get','getDocumentContext','mapContextItemsToRequestData','12pXXrLd','5927016rLmsrS','quickActionData','1216465fQdwHQ','173yFroTH','5418WYNdSH','1691380EvOOnt','capabilities','sendRequest','45EfNeEh'];_0x28de=function(){return _0x5576e8;};return _0x28de();}(function(_0x5c2272,_0x464d7d){var _0x142d79=_0x2221,_0x4daab4=_0x5c2272();while(!![]){try{var _0xbf16e7=parseInt(_0x142d79(0x160))/0x1*(parseInt(_0x142d79(0x161))/0x2)+parseInt(_0x142d79(0x169))/0x3+-parseInt(_0x142d79(0x162))/0x4+-parseInt(_0x142d79(0x15f))/0x5*(-parseInt(_0x142d79(0x15c))/0x6)+-parseInt(_0x142d79(0x158))/0x7+-parseInt(_0x142d79(0x15d))/0x8+-parseInt(_0x142d79(0x165))/0x9*(-parseInt(_0x142d79(0x168))/0xa);if(_0xbf16e7===_0x464d7d)break;else _0x4daab4['push'](_0x4daab4['shift']());}catch(_0x312b9e){_0x4daab4['push'](_0x4daab4['shift']());}}}(_0x28de,0x608cd));import{AICapabilities as _0x15a282}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x590539}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x27732c}from'./aichatcontext.js';function _0x2221(_0x340d33,_0x163e7e){var _0x28dee8=_0x28de();return _0x2221=function(_0x22214e,_0x215445){_0x22214e=_0x22214e-0x152;var _0x4000df=_0x28dee8[_0x22214e];return _0x4000df;},_0x2221(_0x340d33,_0x163e7e);}export class AIChatInteraction extends _0x590539{[_0x4f6e6f(0x153)];[_0x4f6e6f(0x152)];[_0x4f6e6f(0x166)]=new Map();[_0x4f6e6f(0x156)];[_0x4f6e6f(0x15e)];constructor(_0x1e68ae){var _0x4f279d=_0x4f6e6f;super(_0x1e68ae),this[_0x4f279d(0x152)]=_0x1e68ae[_0x4f279d(0x152)],this[_0x4f279d(0x166)]=_0x1e68ae[_0x4f279d(0x166)],this[_0x4f279d(0x163)]=_0x1e68ae[_0x4f279d(0x163)],this[_0x4f279d(0x153)]=_0x1e68ae[_0x4f279d(0x153)],this[_0x4f279d(0x156)]=_0x1e68ae[_0x4f279d(0x156)],this[_0x4f279d(0x15e)]=_0x1e68ae[_0x4f279d(0x15e)];}async[_0x4f6e6f(0x164)](){var _0x558b6a=_0x4f6e6f;return this[_0x558b6a(0x154)][_0x558b6a(0x157)]({'message':this[_0x558b6a(0x153)],'conversationId':this[_0x558b6a(0x152)],'parts':_0x27732c[_0x558b6a(0x15b)](this[_0x558b6a(0x166)]),'capabilities':_0x15a282[_0x558b6a(0x155)](this[_0x558b6a(0x163)]),'model':this[_0x558b6a(0x156)],'quickActionData':this[_0x558b6a(0x15e)]});}[_0x4f6e6f(0x15a)](){var _0x3bd520=_0x4f6e6f;return this[_0x3bd520(0x166)][_0x3bd520(0x159)](_0x3bd520(0x167));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24dcc7=_0x3c31;(function(_0x5b98e0,_0x426a78){const _0xa35d6d=_0x3c31,_0x547fc7=_0x5b98e0();while(!![]){try{const _0x3d4e3d=-parseInt(_0xa35d6d(0x150))/0x1+parseInt(_0xa35d6d(0x18a))/0x2*(-parseInt(_0xa35d6d(0x161))/0x3)+parseInt(_0xa35d6d(0x187))/0x4+parseInt(_0xa35d6d(0x183))/0x5+parseInt(_0xa35d6d(0x197))/0x6+parseInt(_0xa35d6d(0x18c))/0x7*(parseInt(_0xa35d6d(0x154))/0x8)+parseInt(_0xa35d6d(0x160))/0x9*(-parseInt(_0xa35d6d(0x163))/0xa);if(_0x3d4e3d===_0x426a78)break;else _0x547fc7['push'](_0x547fc7['shift']());}catch(_0x2e1322){_0x547fc7['push'](_0x547fc7['shift']());}}}(_0x5bba,0x3cd85));import{ButtonView as _0x432c43,clickOutsideHandler as _0x4be86f,View as _0x424013}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x56743d}from'./controls/aichatpromptinputview.js';function _0x3c31(_0x4cb432,_0x8bd40d){const _0x5bba5d=_0x5bba();return _0x3c31=function(_0x3c3104,_0x22fcd4){_0x3c3104=_0x3c3104-0x14c;let _0x4171d7=_0x5bba5d[_0x3c3104];return _0x4171d7;},_0x3c31(_0x4cb432,_0x8bd40d);}function _0x5bba(){const _0x5c7ea9=['setInputPlaceholder','div','resetMessageInput','_createLoaderView','_handlePromptInputFocus','selectModel','ck-ai-chat-controls','_contextPanelView','setPlaceholderText','_loaderView','2131170PLTnCM','setTemplate','contextResourcesSearchInputVisibleFrom','updateResourceState','1878168pqnaUI','_createModelUnavailableMessageView','agent','417098SOHkYC','clearCurrentContextItems','1022muSULI','toggleReasoning','change:isLoading','execute','_shouldRestorePromptInputFocus','toggleWebSearch','setReasoning','bindTemplate','disableModelSelector','setIsUploadInProgress','setConversationContext','2049030AhuoSl','isModelAvailable','clearConversationContextUI','_promptInputView','_createPromptCapabilitiesView','find','ck-hidden','_modelUnavailableMessageView','startConversation','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','44306MuoFnL','clearConversationContextItems','set','enableModelSelector','20464USrnrb','ck-ai-chat-controls-disabled','_displayedModels','addContextItem','_createContextPanelView','delegate','closeSourceResourceBalloon','addContextButtonView','reset','ck-ai-chat-controls-model-unavailable-message','abortPromptStream','setAddContextOptions','4050558VEcivc','6YgLOrR','populateSourceResourceBalloon','20JNjWNk','setModelList','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','removeContextItem','isDisabled','locale','clearPendingContextUI','bodyCollection','setContextItemLoading','setModel','sendUserMessage','element','setWebSearch','form','focusPromptInput','low','startsWith','ck-ai-chat-controls__start-new-chat-button','isLoading','_createPromptInputView','focus'];_0x5bba=function(){return _0x5c7ea9;};return _0x5bba();}import{AIChatPromptCapabilitiesView as _0xec138c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2b1564,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0xdad7b5}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5f28fd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2e33a8}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x424013{[_0x24dcc7(0x156)]=[];[_0x24dcc7(0x180)];[_0x24dcc7(0x19a)];[_0x24dcc7(0x165)];[_0x24dcc7(0x182)];[_0x24dcc7(0x14d)];[_0x24dcc7(0x190)];constructor(_0x1d25a2,_0x14b43d){const _0x592988=_0x24dcc7;super(_0x1d25a2),this[_0x592988(0x180)]=this[_0x592988(0x158)](_0x1d25a2,{'bodyCollection':_0x14b43d[_0x592988(0x16b)],'searchInputVisibleFrom':_0x14b43d[_0x592988(0x185)]}),this[_0x592988(0x19a)]=this[_0x592988(0x177)](_0x1d25a2),this[_0x592988(0x165)]=this[_0x592988(0x19b)](_0x1d25a2),this[_0x592988(0x182)]=this[_0x592988(0x17c)](_0x1d25a2),this[_0x592988(0x14d)]=this[_0x592988(0x188)](_0x1d25a2),this[_0x592988(0x190)]=!0x1,this[_0x592988(0x19a)][_0x592988(0x159)](_0x592988(0x16e))['to'](this),this[_0x592988(0x182)][_0x592988(0x159)](_0x592988(0x15e))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x191))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x18d))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x17e))['to'](this),this[_0x592988(0x180)][_0x592988(0x159)](..._0xdad7b5)['to'](this),this[_0x592988(0x152)](_0x592988(0x198),!0x0),this[_0x592988(0x152)](_0x592988(0x168),!0x1);const _0x5b5ccd=this[_0x592988(0x193)];this[_0x592988(0x184)]({'tag':_0x592988(0x171),'attributes':{'class':['ck',_0x592988(0x17f),_0x5b5ccd['if'](_0x592988(0x168),_0x592988(0x155))]},'children':[{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x388c5a=>_0x388c5a||!this[_0x592988(0x198)]),_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0xcf3cc3=>!_0xcf3cc3||this[_0x592988(0x176)])]},'children':[this[_0x592988(0x180)],this[_0x592988(0x19a)],this[_0x592988(0x165)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x45931d=>!_0x45931d)]},'children':[this[_0x592988(0x182)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0x478eec=>_0x478eec)]},'children':[this[_0x592988(0x14d)]]}]}),_0x4be86f({'emitter':this[_0x592988(0x19a)],'activator':()=>this[_0x592988(0x176)],'contextElements':()=>[this[_0x592988(0x16f)]],'callback':()=>{const _0x21ca9d=_0x592988;this[_0x21ca9d(0x190)]=!0x1;}}),this['on'](_0x592988(0x18e),this[_0x592988(0x17d)],{'priority':_0x592988(0x173)});}[_0x24dcc7(0x158)](_0x52599f,_0x36cf27){return new _0x2b1564(_0x52599f,_0x36cf27);}[_0x24dcc7(0x177)](_0xd444e5){const _0x3c3028=_0x24dcc7;return new _0x56743d(_0xd444e5,this[_0x3c3028(0x180)][_0x3c3028(0x15b)]);}[_0x24dcc7(0x19b)](_0x4c4c8a){return new _0xec138c(_0x4c4c8a);}[_0x24dcc7(0x17c)](_0x1b25b7){return new _0x5f28fd(_0x1b25b7);}[_0x24dcc7(0x188)](_0x14c754){const _0x5ccfb8=_0x24dcc7,_0x42d0ad=new vs(_0x14c754);return _0x42d0ad[_0x5ccfb8(0x159)](_0x5ccfb8(0x14e))['to'](this),_0x42d0ad;}[_0x24dcc7(0x17d)](_0x2f916c,_0x2619e2,_0x238b95){const _0x2dff74=_0x24dcc7;_0x238b95?this[_0x2dff74(0x190)]=!0x0:this[_0x2dff74(0x190)]&&this[_0x2dff74(0x19a)][_0x2dff74(0x178)]();}[_0x24dcc7(0x157)](_0x387891,_0x304ce7){const _0x128f5a=_0x24dcc7;this[_0x128f5a(0x180)][_0x128f5a(0x157)](_0x387891,_0x304ce7);}[_0x24dcc7(0x167)](_0x21d1fd){const _0x5b1716=_0x24dcc7;this[_0x5b1716(0x180)][_0x5b1716(0x167)](_0x21d1fd);}[_0x24dcc7(0x16c)](_0x3c49e9,_0x50ed06){const _0x2c81db=_0x24dcc7;this[_0x2c81db(0x180)][_0x2c81db(0x16c)](_0x3c49e9,_0x50ed06);}[_0x24dcc7(0x195)](_0x5f45c9){const _0x4d0b64=_0x24dcc7;this[_0x4d0b64(0x19a)][_0x4d0b64(0x195)](_0x5f45c9);}[_0x24dcc7(0x196)](_0x20cca6){const _0x1a8f6d=_0x24dcc7;this[_0x1a8f6d(0x180)][_0x1a8f6d(0x196)](_0x20cca6);}[_0x24dcc7(0x16a)](){const _0x5d6ac3=_0x24dcc7;this[_0x5d6ac3(0x180)][_0x5d6ac3(0x18b)]();}[_0x24dcc7(0x199)](){const _0x50c6bd=_0x24dcc7;this[_0x50c6bd(0x180)][_0x50c6bd(0x151)]();}[_0x24dcc7(0x186)](_0x98f043,_0xe99697,_0x46ba6d){const _0x179bae=_0x24dcc7;this[_0x179bae(0x180)][_0x179bae(0x186)](_0x98f043,_0xe99697,_0x46ba6d);}[_0x24dcc7(0x170)](_0x5985da){const _0xfe0bd2=_0x24dcc7;this[_0xfe0bd2(0x165)][_0xfe0bd2(0x170)](_0x5985da);}[_0x24dcc7(0x192)](_0x432991){const _0x4379ac=_0x24dcc7;this[_0x4379ac(0x165)][_0x4379ac(0x192)](_0x432991);}[_0x24dcc7(0x17b)](){const _0x30c496=_0x24dcc7;this[_0x30c496(0x19a)][_0x30c496(0x15c)]();}[_0x24dcc7(0x15f)](_0x5b78d8){const _0x19a104=_0x24dcc7;this[_0x19a104(0x180)][_0x19a104(0x15f)](_0x5b78d8);}[_0x24dcc7(0x179)](_0x42bc8d){const _0x3074f6=_0x24dcc7;this[_0x3074f6(0x19a)][_0x3074f6(0x181)](_0x42bc8d);}[_0x24dcc7(0x164)](_0x537eff,_0x55eb94){const _0x204d90=_0x24dcc7;this[_0x204d90(0x156)]=_0x537eff,this[_0x204d90(0x165)][_0x204d90(0x164)](_0x537eff,_0x55eb94);}[_0x24dcc7(0x16d)](_0x1c654b){const _0x56a9b5=_0x24dcc7;(_0x1c654b?this[_0x56a9b5(0x156)][_0x56a9b5(0x19c)](_0x1bed3b=>_0x1bed3b['id']===_0x1c654b['id']):null)?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](_0x1c654b)):_0x1c654b?.['id'][_0x56a9b5(0x174)](_0x56a9b5(0x189))?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](this[_0x56a9b5(0x156)][0x0])):this[_0x56a9b5(0x198)]=!0x1;}[_0x24dcc7(0x153)](){const _0x14f776=_0x24dcc7;this[_0x14f776(0x165)][_0x14f776(0x153)]();}[_0x24dcc7(0x194)](_0x561f65){const _0x3d3013=_0x24dcc7;this[_0x3d3013(0x165)][_0x3d3013(0x194)](_0x561f65);}[_0x24dcc7(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3){const _0x4d2677=_0x24dcc7;this[_0x4d2677(0x180)][_0x4d2677(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3);}[_0x24dcc7(0x15a)](_0xaedc78){const _0x1bf167=_0x24dcc7;this[_0x1bf167(0x180)][_0x1bf167(0x15a)](_0xaedc78);}[_0x24dcc7(0x172)](){const _0x46448e=_0x24dcc7;this[_0x46448e(0x19a)][_0x46448e(0x178)]();}}class vs extends _0x424013{constructor(_0x530ad4){const _0x5384ef=_0x24dcc7;super(_0x530ad4);const _0x536a0e=new _0x432c43(_0x530ad4);_0x536a0e[_0x5384ef(0x152)]({'label':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x166)),'withText':!0x0,'class':[_0x5384ef(0x175)],'tooltip':''}),_0x536a0e[_0x5384ef(0x159)](_0x5384ef(0x18f))['to'](this,_0x5384ef(0x14e)),this[_0x5384ef(0x184)]({'tag':_0x5384ef(0x17a),'attributes':{'class':['ck',_0x5384ef(0x15d)]},'children':[{'tag':'p','children':[{'text':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x14f))+'\x20'},_0x536a0e]}]});}}
23
+ const _0x16d8a1=_0x58c1;(function(_0x4f7e6a,_0x137bff){const _0x259dd2=_0x58c1,_0xcafec8=_0x4f7e6a();while(!![]){try{const _0x1f8361=-parseInt(_0x259dd2(0xee))/0x1*(parseInt(_0x259dd2(0x117))/0x2)+-parseInt(_0x259dd2(0x107))/0x3*(parseInt(_0x259dd2(0x112))/0x4)+-parseInt(_0x259dd2(0x125))/0x5*(-parseInt(_0x259dd2(0xf5))/0x6)+-parseInt(_0x259dd2(0x106))/0x7+-parseInt(_0x259dd2(0x123))/0x8*(-parseInt(_0x259dd2(0xdb))/0x9)+-parseInt(_0x259dd2(0xe1))/0xa*(parseInt(_0x259dd2(0x105))/0xb)+parseInt(_0x259dd2(0x109))/0xc;if(_0x1f8361===_0x137bff)break;else _0xcafec8['push'](_0xcafec8['shift']());}catch(_0x10720c){_0xcafec8['push'](_0xcafec8['shift']());}}}(_0x1411,0xd2e08));function _0x58c1(_0xaf41b3,_0x443fb7){const _0x141148=_0x1411();return _0x58c1=function(_0x58c100,_0x5c8e88){_0x58c100=_0x58c100-0xd6;let _0x607e04=_0x141148[_0x58c100];return _0x607e04;},_0x58c1(_0xaf41b3,_0x443fb7);}import{ButtonView as _0x13e93a,clickOutsideHandler as _0x1df0cb,View as _0x528d62}from'ckeditor5/src/ui.js';function _0x1411(){const _0x1a7c0e=['abortPromptStream','isLoading','_createPromptCapabilitiesView','closeSourceResourceBalloon','set','bodyCollection','ck-ai-chat-controls__start-new-chat-button','clearConversationContextItems','ck-hidden','setTemplate','24apZYXi','contextResourcesSearchInputVisibleFrom','6573655psZCnI','focus','setContextItemLoading','execute','resetMessageInput','_createPromptInputView','_promptInputView','div','_createContextPanelView','4771638cwvBmW','startConversation','change:isLoading','disableModelSelector','clearCurrentContextItems','form','193470nzgRAj','reset','isDisabled','locale','sendUserMessage','setPlaceholderText','_modelUnavailableMessageView','addContextButtonView','_createModelUnavailableMessageView','enableModelSelector','addContextItem','setAddContextOptions','find','459820oDBLEm','setModelList','isModelAvailable','setReasoning','selectModel','setWebSearch','low','6FKsuCp','clearConversationContextUI','_createLoaderView','setConversationContext','ck-ai-chat-controls-model-unavailable-message','setModel','toggleWebSearch','setIsUploadInProgress','delegate','bindTemplate','startsWith','_loaderView','agent','_shouldRestorePromptInputFocus','clearPendingContextUI','removeContextItem','935hJVGIP','3327471cCfBgx','681DUTnnp','_handlePromptInputFocus','22856952YstMwy','_promptCapabilitiesView','focusPromptInput','setInputPlaceholder','ck-ai-chat-controls','element','_contextPanelView','_displayedModels','toggleReasoning','7876HVTAHL','updateResourceState','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls-disabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','6IBUDcw','populateSourceResourceBalloon'];_0x1411=function(){return _0x1a7c0e;};return _0x1411();}import{AIChatPromptInputView as _0x4cb527}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x25fafe}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x21299b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x34e4cf}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x463c97}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x939e3}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x528d62{[_0x16d8a1(0x110)]=[];[_0x16d8a1(0x10f)];[_0x16d8a1(0xd8)];[_0x16d8a1(0x10a)];[_0x16d8a1(0x100)];[_0x16d8a1(0xe7)];[_0x16d8a1(0x102)];constructor(_0x5188b4,_0x365177){const _0x429b5b=_0x16d8a1;super(_0x5188b4),this[_0x429b5b(0x10f)]=this[_0x429b5b(0xda)](_0x5188b4,{'bodyCollection':_0x365177[_0x429b5b(0x11e)],'searchInputVisibleFrom':_0x365177[_0x429b5b(0x124)]}),this[_0x429b5b(0xd8)]=this[_0x429b5b(0xd7)](_0x5188b4),this[_0x429b5b(0x10a)]=this[_0x429b5b(0x11b)](_0x5188b4),this[_0x429b5b(0x100)]=this[_0x429b5b(0xf7)](_0x5188b4),this[_0x429b5b(0xe7)]=this[_0x429b5b(0xe9)](_0x5188b4),this[_0x429b5b(0x102)]=!0x1,this[_0x429b5b(0xd8)][_0x429b5b(0xfd)](_0x429b5b(0xe5))['to'](this),this[_0x429b5b(0x100)][_0x429b5b(0xfd)](_0x429b5b(0x119))['to'](this),this[_0x429b5b(0x10a)][_0x429b5b(0xfd)](_0x429b5b(0xfb))['to'](this),this[_0x429b5b(0x10a)][_0x429b5b(0xfd)](_0x429b5b(0x111))['to'](this),this[_0x429b5b(0x10a)][_0x429b5b(0xfd)](_0x429b5b(0xf2))['to'](this),this[_0x429b5b(0x10f)][_0x429b5b(0xfd)](..._0x34e4cf)['to'](this),this[_0x429b5b(0x11d)](_0x429b5b(0xf0),!0x0),this[_0x429b5b(0x11d)](_0x429b5b(0xe3),!0x1);const _0x5afeb9=this[_0x429b5b(0xfe)];this[_0x429b5b(0x122)]({'tag':_0x429b5b(0xe0),'attributes':{'class':['ck',_0x429b5b(0x10d),_0x5afeb9['if'](_0x429b5b(0xe3),_0x429b5b(0x115))]},'children':[{'tag':_0x429b5b(0xd9),'attributes':{'class':[_0x5afeb9['if'](_0x429b5b(0x11a),_0x429b5b(0x121),_0x56e620=>_0x56e620||!this[_0x429b5b(0xf0)]),_0x5afeb9['if'](_0x429b5b(0xf0),_0x429b5b(0x121),_0x10f215=>!_0x10f215||this[_0x429b5b(0x11a)])]},'children':[this[_0x429b5b(0x10f)],this[_0x429b5b(0xd8)],this[_0x429b5b(0x10a)]]},{'tag':_0x429b5b(0xd9),'attributes':{'class':[_0x5afeb9['if'](_0x429b5b(0x11a),_0x429b5b(0x121),_0x365681=>!_0x365681)]},'children':[this[_0x429b5b(0x100)]]},{'tag':_0x429b5b(0xd9),'attributes':{'class':[_0x5afeb9['if'](_0x429b5b(0xf0),_0x429b5b(0x121),_0x274155=>_0x274155)]},'children':[this[_0x429b5b(0xe7)]]}]}),_0x1df0cb({'emitter':this[_0x429b5b(0xd8)],'activator':()=>this[_0x429b5b(0x11a)],'contextElements':()=>[this[_0x429b5b(0x10e)]],'callback':()=>{const _0x19cedf=_0x429b5b;this[_0x19cedf(0x102)]=!0x1;}}),this['on'](_0x429b5b(0xdd),this[_0x429b5b(0x108)],{'priority':_0x429b5b(0xf4)});}[_0x16d8a1(0xda)](_0x152753,_0x1c896d){return new _0x21299b(_0x152753,_0x1c896d);}[_0x16d8a1(0xd7)](_0x2657b7){const _0x1ded3f=_0x16d8a1;return new _0x4cb527(_0x2657b7,this[_0x1ded3f(0x10f)][_0x1ded3f(0xe8)]);}[_0x16d8a1(0x11b)](_0x21282a){return new _0x25fafe(_0x21282a);}[_0x16d8a1(0xf7)](_0x79b03){return new _0x463c97(_0x79b03);}[_0x16d8a1(0xe9)](_0x4c15fb){const _0x151b7a=_0x16d8a1,_0x2875ef=new ws(_0x4c15fb);return _0x2875ef[_0x151b7a(0xfd)](_0x151b7a(0xdc))['to'](this),_0x2875ef;}[_0x16d8a1(0x108)](_0xa451f1,_0x1dcf00,_0x5b2b05){const _0x458dbe=_0x16d8a1;_0x5b2b05?this[_0x458dbe(0x102)]=!0x0:this[_0x458dbe(0x102)]&&this[_0x458dbe(0xd8)][_0x458dbe(0x126)]();}[_0x16d8a1(0xeb)](_0x46ab76,_0x275e3e){const _0x32ff27=_0x16d8a1;this[_0x32ff27(0x10f)][_0x32ff27(0xeb)](_0x46ab76,_0x275e3e);}[_0x16d8a1(0x104)](_0x354bb6){const _0x247f9c=_0x16d8a1;this[_0x247f9c(0x10f)][_0x247f9c(0x104)](_0x354bb6);}[_0x16d8a1(0x127)](_0x1df440,_0x2f0843){const _0x493eed=_0x16d8a1;this[_0x493eed(0x10f)][_0x493eed(0x127)](_0x1df440,_0x2f0843);}[_0x16d8a1(0xfc)](_0x1fd3fe){const _0x3436a9=_0x16d8a1;this[_0x3436a9(0xd8)][_0x3436a9(0xfc)](_0x1fd3fe);}[_0x16d8a1(0xf8)](_0x182d7c){const _0x226bfd=_0x16d8a1;this[_0x226bfd(0x10f)][_0x226bfd(0xf8)](_0x182d7c);}[_0x16d8a1(0x103)](){const _0x5026cd=_0x16d8a1;this[_0x5026cd(0x10f)][_0x5026cd(0xdf)]();}[_0x16d8a1(0xf6)](){const _0x20bddb=_0x16d8a1;this[_0x20bddb(0x10f)][_0x20bddb(0x120)]();}[_0x16d8a1(0x113)](_0x23d8f5,_0x2a30da,_0x2152c3){const _0x1844f8=_0x16d8a1;this[_0x1844f8(0x10f)][_0x1844f8(0x113)](_0x23d8f5,_0x2a30da,_0x2152c3);}[_0x16d8a1(0xf3)](_0x2657c5){const _0x2a8aeb=_0x16d8a1;this[_0x2a8aeb(0x10a)][_0x2a8aeb(0xf3)](_0x2657c5);}[_0x16d8a1(0xf1)](_0x1e3fd4){const _0x3e01fc=_0x16d8a1;this[_0x3e01fc(0x10a)][_0x3e01fc(0xf1)](_0x1e3fd4);}[_0x16d8a1(0xd6)](){const _0x3ca989=_0x16d8a1;this[_0x3ca989(0xd8)][_0x3ca989(0xe2)]();}[_0x16d8a1(0xec)](_0x22eee7){const _0x563807=_0x16d8a1;this[_0x563807(0x10f)][_0x563807(0xec)](_0x22eee7);}[_0x16d8a1(0x10c)](_0x40de2d){const _0x3f1785=_0x16d8a1;this[_0x3f1785(0xd8)][_0x3f1785(0xe6)](_0x40de2d);}[_0x16d8a1(0xef)](_0x256794,_0x2eda2d){const _0x75eb2d=_0x16d8a1;this[_0x75eb2d(0x110)]=_0x256794,this[_0x75eb2d(0x10a)][_0x75eb2d(0xef)](_0x256794,_0x2eda2d);}[_0x16d8a1(0xfa)](_0x48ea46){const _0x1aedee=_0x16d8a1;(_0x48ea46?this[_0x1aedee(0x110)][_0x1aedee(0xed)](_0x38b8c6=>_0x38b8c6['id']===_0x48ea46['id']):null)?(this[_0x1aedee(0xf0)]=!0x0,this[_0x1aedee(0x10a)][_0x1aedee(0xfa)](_0x48ea46)):_0x48ea46?.['id'][_0x1aedee(0xff)](_0x1aedee(0x101))?(this[_0x1aedee(0xf0)]=!0x0,this[_0x1aedee(0x10a)][_0x1aedee(0xfa)](this[_0x1aedee(0x110)][0x0])):this[_0x1aedee(0xf0)]=!0x1;}[_0x16d8a1(0xea)](){const _0x255312=_0x16d8a1;this[_0x255312(0x10a)][_0x255312(0xea)]();}[_0x16d8a1(0xde)](_0x4877fd){const _0x45953f=_0x16d8a1;this[_0x45953f(0x10a)][_0x45953f(0xde)](_0x4877fd);}[_0x16d8a1(0x118)](_0x4a0d78,_0x5d291a,_0x17edff,_0x511c0a){const _0x103387=_0x16d8a1;this[_0x103387(0x10f)][_0x103387(0x118)](_0x4a0d78,_0x5d291a,_0x17edff,_0x511c0a);}[_0x16d8a1(0x11c)](_0x35408a){const _0x539aee=_0x16d8a1;this[_0x539aee(0x10f)][_0x539aee(0x11c)](_0x35408a);}[_0x16d8a1(0x10b)](){const _0x5301a3=_0x16d8a1;this[_0x5301a3(0xd8)][_0x5301a3(0x126)]();}}class ws extends _0x528d62{constructor(_0x4592e2){const _0x240d58=_0x16d8a1;super(_0x4592e2);const _0x3c5ae2=new _0x13e93a(_0x4592e2);_0x3c5ae2[_0x240d58(0x11d)]({'label':_0x939e3(this[_0x240d58(0xe4)],_0x240d58(0x116)),'withText':!0x0,'class':[_0x240d58(0x11f)],'tooltip':''}),_0x3c5ae2[_0x240d58(0xfd)](_0x240d58(0x128))['to'](this,_0x240d58(0xdc)),this[_0x240d58(0x122)]({'tag':_0x240d58(0xd9),'attributes':{'class':['ck',_0x240d58(0xf9)]},'children':[{'tag':'p','children':[{'text':_0x939e3(this[_0x240d58(0xe4)],_0x240d58(0x114))+'\x20'},_0x3c5ae2]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x217dc8=_0x3d67;(function(_0x3533b9,_0x2a0955){const _0x5f3552=_0x3d67,_0x6a79ba=_0x3533b9();while(!![]){try{const _0x40fe3a=-parseInt(_0x5f3552(0x21c))/0x1+parseInt(_0x5f3552(0x22a))/0x2+parseInt(_0x5f3552(0x22b))/0x3*(-parseInt(_0x5f3552(0x23e))/0x4)+-parseInt(_0x5f3552(0x220))/0x5+-parseInt(_0x5f3552(0x21f))/0x6+parseInt(_0x5f3552(0x1f6))/0x7+parseInt(_0x5f3552(0x1fb))/0x8*(parseInt(_0x5f3552(0x226))/0x9);if(_0x40fe3a===_0x2a0955)break;else _0x6a79ba['push'](_0x6a79ba['shift']());}catch(_0xf19da0){_0x6a79ba['push'](_0x6a79ba['shift']());}}}(_0x3058,0x5b893));import{CKEditorError as _0x34de43,logWarning as _0x1ac867,scrollViewportToShowTarget as _0x507231}from'ckeditor5/src/utils.js';import{View as _0x4d1bb1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2bee2c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3de866}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x118ccb}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x52ec5d}from'./feed/aichatfeedusermessageitem.js';function _0x3d67(_0x5e8f86,_0x5de6fa){const _0x305839=_0x3058();return _0x3d67=function(_0x3d672a,_0xceaa0e){_0x3d672a=_0x3d672a-0x1f3;let _0x211142=_0x305839[_0x3d672a];return _0x211142;},_0x3d67(_0x5e8f86,_0x5de6fa);}import{AIChatFeedErrorItemView as _0x4cf4cf}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xf5e98a}from'./feed/aichatfeedinteractionheaderview.js';function _0x3058(){const _0x313991=['ck-ai-chat__loader','987438leJpdy','414438WSNExP','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_bodyCollection','div','ck-ai-chat__feed__items','children','updateWebSources','updateReplyItem','start','getItemById','_createLoaderChildren','ck-ai-chat__feed','user-message','interaction-header','ck-hidden','isTrackChangesOn','isLoadingSkeletonVisible','isPending','options','20BQLfSO','removeItem','clear','bindTemplate','map','getPartView','add','ai-reply','598598viHIxj','addItem','find','toggleLoadingSkeleton','ai-chat-feed-view-item-not-found','136984XcwrCF','setLoadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','updateSuggestionItem','updatePartState','getItemIds','destroy','scrollToSuggestion','set','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','_createTemplateChildren','delegate','scrollManager','_createFeedLoader','ck-ai-chat__loader-text','updateSources','setTemplate','element','includes','ai-chat-feed-view-item-not-a-reply-item','updateSuggestionPartState','stop','createCollection','render','updateContent','loadingMessage','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','extendTemplate','aiFeed','ai-suggestion-reply','287568bjcrnC','markAsDone','stopAutoScroll','3048252sqEsDN','2579385TQbqbi','bind','span','remove','_createSkeletonLoader','locale','945nDRdWA','_setupTemplate','isVisible'];_0x3058=function(){return _0x313991;};return _0x3058();}import{ScrollManager as _0x1524c4}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x430db2,SKELETON_DEFINITIONS as _0xc76292}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x389943}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d1bb1{[_0x217dc8(0x230)];[_0x217dc8(0x209)];[_0x217dc8(0x22d)];constructor(_0x29b6dc,_0x4cb166){const _0x2bd1ab=_0x217dc8;super(_0x29b6dc),this[_0x2bd1ab(0x22d)]=_0x4cb166,this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23c),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x216),''),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23b),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23a),!0x1),this[_0x2bd1ab(0x230)]=this[_0x2bd1ab(0x213)](),this[_0x2bd1ab(0x230)][_0x2bd1ab(0x208)](..._0x2bee2c)['to'](this),this[_0x2bd1ab(0x227)]();}[_0x217dc8(0x214)](){const _0x3d03ec=_0x217dc8;super[_0x3d03ec(0x214)](),this[_0x3d03ec(0x209)]=new _0x1524c4(this[_0x3d03ec(0x20e)]);}[_0x217dc8(0x202)](){const _0x3fb068=_0x217dc8;super[_0x3fb068(0x202)](),this[_0x3fb068(0x209)][_0x3fb068(0x202)]();}[_0x217dc8(0x240)](){const _0x89cd10=_0x217dc8;this[_0x89cd10(0x230)][_0x89cd10(0x240)]();}[_0x217dc8(0x1f7)](_0x147b77,_0x46a516){const _0x1a2f7c=_0x217dc8;let _0x408ec4;_0x1a2f7c(0x1f5)===_0x147b77?_0x408ec4=new _0x118ccb(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x21b)===_0x147b77?(_0x408ec4=new _0x3de866(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]),_0x408ec4[_0x1a2f7c(0x221)](_0x1a2f7c(0x23a))['to'](this,_0x1a2f7c(0x23a))):_0x408ec4=_0x1a2f7c(0x237)===_0x147b77?new _0x52ec5d(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x238)===_0x147b77?new _0xf5e98a(this[_0x1a2f7c(0x225)],_0x46a516):new _0x4cf4cf(_0x46a516),this[_0x1a2f7c(0x230)][_0x1a2f7c(0x1f4)](_0x408ec4);}async[_0x217dc8(0x232)]({id:_0x3eea7e,parsedContent:_0x2214ab,renderingStrategy:_0x53b46e,abortSignal:_0x366297}){const _0x1fb521=_0x217dc8,_0x3ce7b5=this[_0x1fb521(0x234)](_0x3eea7e);if(!(_0x3ce7b5 instanceof _0x118ccb))throw new _0x34de43(_0x1fb521(0x210),null,{'itemView':_0x3ce7b5,'id':_0x3eea7e,'parsedContent':_0x2214ab});await _0x3ce7b5[_0x1fb521(0x215)]({'parsedContent':_0x2214ab,'renderingStrategy':_0x53b46e,'abortSignal':_0x366297});}async[_0x217dc8(0x231)](_0x4a27ce,_0x18a697){const _0x1d0d4f=_0x217dc8,_0xbc49a0=this[_0x1d0d4f(0x234)](_0x4a27ce);if(_0xbc49a0 instanceof _0x3de866)_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);else{if(!(_0xbc49a0 instanceof _0x118ccb))throw new _0x34de43(_0x1d0d4f(0x1fd),null,{'itemView':_0xbc49a0,'id':_0x4a27ce,'sources':_0x18a697});_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);}}async[_0x217dc8(0x1ff)]({id:_0x40516f,parts:_0x5a51bf,renderingStrategy:_0x16ae3b,abortSignal:_0x295f32}){const _0x329fd1=_0x217dc8,_0x559689=this[_0x329fd1(0x234)](_0x40516f);if(!(_0x559689 instanceof _0x3de866))throw new _0x34de43(_0x329fd1(0x206),null,{'itemView':_0x559689,'id':_0x40516f,'parts':_0x5a51bf});await _0x559689[_0x329fd1(0x215)]({'parts':_0x5a51bf,'renderingStrategy':_0x16ae3b,'abortSignal':_0x295f32});}[_0x217dc8(0x211)]({id:_0x596372,index:_0x426c12,state:_0x2ddf4d}){const _0x492431=_0x217dc8,_0xbe6735=this[_0x492431(0x234)](_0x596372);if(!(_0xbe6735 instanceof _0x3de866))throw new _0x34de43(_0x492431(0x206),this,{'id':_0x596372});_0xbe6735[_0x492431(0x200)](_0x426c12,_0x2ddf4d);}[_0x217dc8(0x205)](_0x4ba742){const _0x5bb910=_0x217dc8;this[_0x5bb910(0x234)](_0x4ba742)[_0x5bb910(0x21d)]();}[_0x217dc8(0x201)](){const _0x1ec4c8=_0x217dc8;return this[_0x1ec4c8(0x230)][_0x1ec4c8(0x242)](_0x37bde8=>_0x37bde8[_0x1ec4c8(0x23d)]['id']);}[_0x217dc8(0x23f)](_0x31c5ff){const _0x33b5cc=_0x217dc8;this[_0x33b5cc(0x230)][_0x33b5cc(0x223)](this[_0x33b5cc(0x234)](_0x31c5ff));}[_0x217dc8(0x203)](_0x46fc1e,_0x199061){const _0x340833=_0x217dc8,_0x5242a3=this[_0x340833(0x234)](_0x46fc1e);if(!(_0x5242a3 instanceof _0x3de866))return void _0x1ac867(_0x340833(0x22c),{'replyId':_0x46fc1e,'partIndex':_0x199061});const _0x2d5315=_0x5242a3[_0x340833(0x1f3)](_0x199061);_0x2d5315?_0x507231({'target':_0x2d5315[_0x340833(0x20e)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1ac867(_0x340833(0x218),{'replyId':_0x46fc1e,'partIndex':_0x199061});}[_0x217dc8(0x227)](){const _0x278750=_0x217dc8;this[_0x278750(0x20d)]({'tag':_0x278750(0x22e),'attributes':{'class':['ck',_0x278750(0x236)]},'children':this[_0x278750(0x207)]()});}[_0x217dc8(0x207)](){const _0x231989=_0x217dc8,_0x4dd651=this[_0x231989(0x224)]();return[this[_0x231989(0x217)](),_0x4dd651,this[_0x231989(0x20a)]()];}[_0x217dc8(0x224)](){const _0x120a28=_0x217dc8,_0x2b471a=new _0x430db2(this[_0x120a28(0x225)],_0xc76292[_0x120a28(0x21a)]);return _0x2b471a[_0x120a28(0x219)]({'attributes':{'class':[this[_0x120a28(0x241)]['if'](_0x120a28(0x23b),_0x120a28(0x239),_0x150c67=>!_0x150c67)]}}),_0x2b471a;}[_0x217dc8(0x217)](){const _0x4236cd=_0x217dc8,_0x2dd40e=new _0x4d1bb1(this[_0x4236cd(0x225)]);return _0x2dd40e[_0x4236cd(0x20d)]({'tag':_0x4236cd(0x22e),'attributes':{'class':['ck',_0x4236cd(0x22f),this[_0x4236cd(0x241)]['if'](_0x4236cd(0x23b),_0x4236cd(0x239))]},'children':this[_0x4236cd(0x230)]}),_0x2dd40e;}[_0x217dc8(0x20a)](){const _0xb360b=_0x217dc8,_0x525c67=new _0x4d1bb1(this[_0xb360b(0x225)]);return _0x525c67[_0xb360b(0x20d)]({'tag':_0xb360b(0x22e),'attributes':{'class':['ck',_0xb360b(0x229),this[_0xb360b(0x241)]['if'](_0xb360b(0x23c),_0xb360b(0x239),_0x80838a=>!_0x80838a)]},'children':this[_0xb360b(0x235)]()}),_0x525c67;}[_0x217dc8(0x235)](){const _0xf63004=_0x217dc8,_0x273139=new _0x389943();return _0x273139[_0xf63004(0x228)]=!0x0,[_0x273139,{'tag':_0xf63004(0x222),'attributes':{'class':['ck',_0xf63004(0x20b)]},'children':[{'text':this[_0xf63004(0x241)]['to'](_0xf63004(0x216))}]}];}[_0x217dc8(0x234)](_0x3a4362){const _0x5a8f64=_0x217dc8,_0x230381=this[_0x5a8f64(0x230)][_0x5a8f64(0x1f8)](_0xb3ca4c=>_0xb3ca4c[_0x5a8f64(0x23d)]['id'][_0x5a8f64(0x20f)](_0x3a4362));if(!_0x230381)throw new _0x34de43(_0x5a8f64(0x1fa),this,{'id':_0x3a4362});return _0x230381;}[_0x217dc8(0x1fc)](_0x22d1b0){const _0x13aa47=_0x217dc8;this[_0x13aa47(0x204)](_0x13aa47(0x216),_0x22d1b0);}[_0x217dc8(0x1f9)](_0x1b8ad8){const _0x34ade8=_0x217dc8;this[_0x34ade8(0x204)](_0x34ade8(0x23b),_0x1b8ad8);}[_0x217dc8(0x1fe)](){const _0x510f17=_0x217dc8;this[_0x510f17(0x209)][_0x510f17(0x233)]();}[_0x217dc8(0x21e)](){const _0x29086e=_0x217dc8;this[_0x29086e(0x209)][_0x29086e(0x212)]();}}
23
+ const _0x23b9df=_0x4a5e;(function(_0x155f15,_0x1358c7){const _0x511052=_0x4a5e,_0x817016=_0x155f15();while(!![]){try{const _0x160b13=parseInt(_0x511052(0x12a))/0x1+parseInt(_0x511052(0x13b))/0x2*(-parseInt(_0x511052(0x133))/0x3)+-parseInt(_0x511052(0x147))/0x4*(-parseInt(_0x511052(0x117))/0x5)+parseInt(_0x511052(0x127))/0x6+parseInt(_0x511052(0x156))/0x7+parseInt(_0x511052(0x119))/0x8+parseInt(_0x511052(0x150))/0x9*(-parseInt(_0x511052(0x124))/0xa);if(_0x160b13===_0x1358c7)break;else _0x817016['push'](_0x817016['shift']());}catch(_0xc48b94){_0x817016['push'](_0x817016['shift']());}}}(_0x5598,0xbf9f0));import{CKEditorError as _0x5c2f1b,logWarning as _0x1c7cc1,scrollViewportToShowTarget as _0xdc4e61}from'ckeditor5/src/utils.js';import{View as _0x5cd0d2}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x291ba7}from'../utils/eventnames.js';function _0x4a5e(_0x8582f1,_0x408ddf){const _0x5598eb=_0x5598();return _0x4a5e=function(_0x4a5e83,_0x514049){_0x4a5e83=_0x4a5e83-0x115;let _0x4d7cfe=_0x5598eb[_0x4a5e83];return _0x4d7cfe;},_0x4a5e(_0x8582f1,_0x408ddf);}import{AIChatFeedSuggestionItemView as _0x55713d}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3d3581}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4d3b04}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4e6605}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x54d6c4}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x481830}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x23f5d8,SKELETON_DEFINITIONS as _0x29bc90}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x429c56}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5cd0d2{[_0x23b9df(0x131)];[_0x23b9df(0x139)];[_0x23b9df(0x122)];constructor(_0x23dbdc,_0x38d8a4){const _0x9f1a19=_0x23b9df;super(_0x23dbdc),this[_0x9f1a19(0x122)]=_0x38d8a4,this[_0x9f1a19(0x14b)](_0x9f1a19(0x115),!0x1),this[_0x9f1a19(0x14b)](_0x9f1a19(0x138),''),this[_0x9f1a19(0x14b)](_0x9f1a19(0x14c),!0x1),this[_0x9f1a19(0x14b)](_0x9f1a19(0x125),!0x1),this[_0x9f1a19(0x131)]=this[_0x9f1a19(0x130)](),this[_0x9f1a19(0x131)][_0x9f1a19(0x128)](..._0x291ba7)['to'](this),this[_0x9f1a19(0x12f)]();}[_0x23b9df(0x157)](){const _0x2d3c06=_0x23b9df;super[_0x2d3c06(0x157)](),this[_0x2d3c06(0x139)]=new _0x481830(this[_0x2d3c06(0x152)]);}[_0x23b9df(0x13a)](){const _0x33178a=_0x23b9df;super[_0x33178a(0x13a)](),this[_0x33178a(0x139)][_0x33178a(0x13a)]();}[_0x23b9df(0x11a)](){const _0x30e486=_0x23b9df;this[_0x30e486(0x131)][_0x30e486(0x11a)]();}[_0x23b9df(0x116)](_0x527969,_0x3183b1){const _0x476f1a=_0x23b9df;let _0x154fae;_0x476f1a(0x151)===_0x527969?_0x154fae=new _0x3d3581(this[_0x476f1a(0x13e)],_0x3183b1,this[_0x476f1a(0x122)]):_0x476f1a(0x11f)===_0x527969?(_0x154fae=new _0x55713d(this[_0x476f1a(0x13e)],_0x3183b1,this[_0x476f1a(0x122)]),_0x154fae[_0x476f1a(0x132)](_0x476f1a(0x125))['to'](this,_0x476f1a(0x125))):_0x154fae=_0x476f1a(0x140)===_0x527969?new _0x4d3b04(this[_0x476f1a(0x13e)],_0x3183b1,this[_0x476f1a(0x122)]):_0x476f1a(0x14e)===_0x527969?new _0x54d6c4(this[_0x476f1a(0x13e)],_0x3183b1):new _0x4e6605(_0x3183b1),this[_0x476f1a(0x131)][_0x476f1a(0x145)](_0x154fae);}async[_0x23b9df(0x15b)]({id:_0x239771,parsedContent:_0x569f17,renderingStrategy:_0x15b99f,abortSignal:_0x38298e}){const _0x1becab=_0x23b9df,_0x5e7075=this[_0x1becab(0x15e)](_0x239771);if(!(_0x5e7075 instanceof _0x3d3581))throw new _0x5c2f1b(_0x1becab(0x160),null,{'itemView':_0x5e7075,'id':_0x239771,'parsedContent':_0x569f17});await _0x5e7075[_0x1becab(0x11e)]({'parsedContent':_0x569f17,'renderingStrategy':_0x15b99f,'abortSignal':_0x38298e});}async[_0x23b9df(0x148)](_0x473fde,_0x3fa3ea){const _0x3b4974=_0x23b9df,_0x34c556=this[_0x3b4974(0x15e)](_0x473fde);if(_0x34c556 instanceof _0x55713d)_0x34c556[_0x3b4974(0x163)](_0x3fa3ea);else{if(!(_0x34c556 instanceof _0x3d3581))throw new _0x5c2f1b(_0x3b4974(0x13f),null,{'itemView':_0x34c556,'id':_0x473fde,'sources':_0x3fa3ea});_0x34c556[_0x3b4974(0x163)](_0x3fa3ea);}}async[_0x23b9df(0x11c)]({id:_0x4e5e87,parts:_0x4db00a,renderingStrategy:_0x55b7aa,abortSignal:_0x50a169}){const _0x52e10c=_0x23b9df,_0xf53b07=this[_0x52e10c(0x15e)](_0x4e5e87);if(!(_0xf53b07 instanceof _0x55713d))throw new _0x5c2f1b(_0x52e10c(0x11b),null,{'itemView':_0xf53b07,'id':_0x4e5e87,'parts':_0x4db00a});await _0xf53b07[_0x52e10c(0x11e)]({'parts':_0x4db00a,'renderingStrategy':_0x55b7aa,'abortSignal':_0x50a169});}[_0x23b9df(0x143)]({id:_0x1c2dd7,index:_0x57b585,state:_0x364974}){const _0x1b45f0=_0x23b9df,_0xda285e=this[_0x1b45f0(0x15e)](_0x1c2dd7);if(!(_0xda285e instanceof _0x55713d))throw new _0x5c2f1b(_0x1b45f0(0x11b),this,{'id':_0x1c2dd7});_0xda285e[_0x1b45f0(0x123)](_0x57b585,_0x364974);}[_0x23b9df(0x15c)](_0x291dc8){const _0x5ced2e=_0x23b9df;this[_0x5ced2e(0x15e)](_0x291dc8)[_0x5ced2e(0x137)]();}[_0x23b9df(0x136)](){const _0x5f24b5=_0x23b9df;return this[_0x5f24b5(0x131)][_0x5f24b5(0x12c)](_0x48c30d=>_0x48c30d[_0x5f24b5(0x12d)]['id']);}[_0x23b9df(0x153)](_0x84e591){const _0x305b37=_0x23b9df;this[_0x305b37(0x131)][_0x305b37(0x129)](this[_0x305b37(0x15e)](_0x84e591));}[_0x23b9df(0x12e)](_0x355094,_0x5654e5){const _0x50d19c=_0x23b9df,_0x32849b=this[_0x50d19c(0x15e)](_0x355094);if(!(_0x32849b instanceof _0x55713d))return void _0x1c7cc1(_0x50d19c(0x15d),{'replyId':_0x355094,'partIndex':_0x5654e5});const _0x263e43=_0x32849b[_0x50d19c(0x149)](_0x5654e5);_0x263e43?_0xdc4e61({'target':_0x263e43[_0x50d19c(0x152)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1c7cc1(_0x50d19c(0x161),{'replyId':_0x355094,'partIndex':_0x5654e5});}[_0x23b9df(0x12f)](){const _0x1a5cc4=_0x23b9df;this[_0x1a5cc4(0x126)]({'tag':_0x1a5cc4(0x120),'attributes':{'class':['ck',_0x1a5cc4(0x15f)]},'children':this[_0x1a5cc4(0x14f)]()});}[_0x23b9df(0x14f)](){const _0x25fedc=_0x23b9df,_0x2c9857=this[_0x25fedc(0x141)]();return[this[_0x25fedc(0x121)](),_0x2c9857,this[_0x25fedc(0x155)]()];}[_0x23b9df(0x141)](){const _0x4c0bf5=_0x23b9df,_0x2e685c=new _0x23f5d8(this[_0x4c0bf5(0x13e)],_0x29bc90[_0x4c0bf5(0x12b)]);return _0x2e685c[_0x4c0bf5(0x165)]({'attributes':{'class':[this[_0x4c0bf5(0x154)]['if'](_0x4c0bf5(0x14c),_0x4c0bf5(0x14a),_0x29f900=>!_0x29f900)]}}),_0x2e685c;}[_0x23b9df(0x121)](){const _0x55693b=_0x23b9df,_0x49b1fa=new _0x5cd0d2(this[_0x55693b(0x13e)]);return _0x49b1fa[_0x55693b(0x126)]({'tag':_0x55693b(0x120),'attributes':{'class':['ck',_0x55693b(0x144),this[_0x55693b(0x154)]['if'](_0x55693b(0x14c),_0x55693b(0x14a))]},'children':this[_0x55693b(0x131)]}),_0x49b1fa;}[_0x23b9df(0x155)](){const _0xf62800=_0x23b9df,_0x4c8313=new _0x5cd0d2(this[_0xf62800(0x13e)]);return _0x4c8313[_0xf62800(0x126)]({'tag':_0xf62800(0x120),'attributes':{'class':['ck',_0xf62800(0x118),this[_0xf62800(0x154)]['if'](_0xf62800(0x115),_0xf62800(0x14a),_0x4aff74=>!_0x4aff74)]},'children':this[_0xf62800(0x142)]()}),_0x4c8313;}[_0x23b9df(0x142)](){const _0x32773d=_0x23b9df,_0x506ab2=new _0x429c56();return _0x506ab2[_0x32773d(0x13d)]=!0x0,[_0x506ab2,{'tag':_0x32773d(0x13c),'attributes':{'class':['ck',_0x32773d(0x164)]},'children':[{'text':this[_0x32773d(0x154)]['to'](_0x32773d(0x138))}]}];}[_0x23b9df(0x15e)](_0x5bf1c0){const _0x1ae5bc=_0x23b9df,_0x36de1f=this[_0x1ae5bc(0x131)][_0x1ae5bc(0x158)](_0x451c39=>_0x451c39[_0x1ae5bc(0x12d)]['id'][_0x1ae5bc(0x14d)](_0x5bf1c0));if(!_0x36de1f)throw new _0x5c2f1b(_0x1ae5bc(0x162),this,{'id':_0x5bf1c0});return _0x36de1f;}[_0x23b9df(0x134)](_0x2684d7){const _0x348e86=_0x23b9df;this[_0x348e86(0x14b)](_0x348e86(0x138),_0x2684d7);}[_0x23b9df(0x159)](_0x30d526){const _0xc80fc7=_0x23b9df;this[_0xc80fc7(0x14b)](_0xc80fc7(0x14c),_0x30d526);}[_0x23b9df(0x15a)](){const _0x5d7500=_0x23b9df;this[_0x5d7500(0x139)][_0x5d7500(0x146)]();}[_0x23b9df(0x135)](){const _0x5b94f5=_0x23b9df;this[_0x5b94f5(0x139)][_0x5b94f5(0x11d)]();}}function _0x5598(){const _0x36f1f2=['_setupTemplate','createCollection','children','bind','42NmfbLL','setLoadingMessage','stopAutoScroll','getItemIds','markAsDone','loadingMessage','scrollManager','destroy','214144unVIOj','span','isVisible','locale','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','_createSkeletonLoader','_createLoaderChildren','updateSuggestionPartState','ck-ai-chat__feed__items','add','start','1096qokMqT','updateWebSources','getPartView','ck-hidden','set','isLoadingSkeletonVisible','includes','interaction-header','_createTemplateChildren','2393640ljyOjM','ai-reply','element','removeItem','bindTemplate','_createFeedLoader','5179062sxSXCS','render','find','toggleLoadingSkeleton','startAutoScroll','updateReplyItem','markItemAsDone','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemById','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-found','updateSources','ck-ai-chat__loader-text','extendTemplate','isPending','addItem','10895VecDsj','ck-ai-chat__loader','8403256tVumkt','clear','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionItem','stop','updateContent','ai-suggestion-reply','div','_createFeedItems','_bodyCollection','updatePartState','80AfBkfP','isTrackChangesOn','setTemplate','6779358JIwvYJ','delegate','remove','894356acrGXt','aiFeed','map','options','scrollToSuggestion'];_0x5598=function(){return _0x36f1f2;};return _0x5598();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x504ced=_0x3148;(function(_0x9a0ea5,_0x3de9f1){const _0xcfc738=_0x3148,_0x4dbf55=_0x9a0ea5();while(!![]){try{const _0x93296=-parseInt(_0xcfc738(0x98))/0x1*(-parseInt(_0xcfc738(0xb0))/0x2)+parseInt(_0xcfc738(0xa2))/0x3*(parseInt(_0xcfc738(0xa4))/0x4)+parseInt(_0xcfc738(0xad))/0x5*(parseInt(_0xcfc738(0xa5))/0x6)+parseInt(_0xcfc738(0xa7))/0x7*(-parseInt(_0xcfc738(0x9b))/0x8)+parseInt(_0xcfc738(0xaa))/0x9*(parseInt(_0xcfc738(0x9d))/0xa)+-parseInt(_0xcfc738(0x9e))/0xb+-parseInt(_0xcfc738(0xab))/0xc;if(_0x93296===_0x3de9f1)break;else _0x4dbf55['push'](_0x4dbf55['shift']());}catch(_0x217141){_0x4dbf55['push'](_0x4dbf55['shift']());}}}(_0x203f,0x3f297));import{ButtonView as _0x135172,FormHeaderView as _0x28060c}from'ckeditor5/src/ui.js';function _0x3148(_0x9de2c0,_0x4eb758){const _0x203f62=_0x203f();return _0x3148=function(_0x3148ea,_0x3e7fc0){_0x3148ea=_0x3148ea-0x97;let _0x37c985=_0x203f62[_0x3148ea];return _0x37c985;},_0x3148(_0x9de2c0,_0x4eb758);}function _0x203f(){const _0x40b655=['add','resizeButton','25605qQCasi','5922924AoDroP','conversationStartButton','255MauHSp','startConversation','set','4YSNXkq','AI_CHAT_HEADING','isMaximized','84356JbdDfY','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','8pDBfVZ','locale','1180BbQrIc','2580303BzIxjS','_createStartConversationButton','execute','children','50595KQXhFM','fire','100TSjWkN','54666CqDWbl','ck-ai-header\x20ck-ai-header_chat','2826929loHDdO'];_0x203f=function(){return _0x40b655;};return _0x203f();}import{IconPlus as _0x1ae98e,IconAIChat as _0x1cb5ab}from'ckeditor5/src/icons.js';import{getTranslation as _0x429ef0}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x427b9c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x28060c{[_0x504ced(0xac)];[_0x504ced(0xa9)];constructor(_0x4f0227,_0x35f3ae){const _0xe9d90a=_0x504ced;super(_0x4f0227,{'label':_0x429ef0(_0x4f0227,_0xe9d90a(0xb1)),'class':_0xe9d90a(0xa6),'icon':_0x1cb5ab}),this[_0xe9d90a(0xaf)](_0xe9d90a(0x97),!0x1),this[_0xe9d90a(0xac)]=this[_0xe9d90a(0x9f)](_0x4f0227),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xac)]),_0x35f3ae&&(this[_0xe9d90a(0xa9)]=_0x427b9c(_0x4f0227,this),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xa9)]));}[_0x504ced(0x9f)](_0x17c77c){const _0x474d84=_0x504ced,_0x5c67f9=new _0x135172(_0x17c77c);return _0x5c67f9[_0x474d84(0xaf)]({'label':_0x429ef0(this[_0x474d84(0x9c)],_0x474d84(0x99)),'withText':!0x0,'icon':_0x1ae98e,'class':_0x474d84(0x9a)}),_0x5c67f9['on'](_0x474d84(0xa0),()=>{const _0x4cad7c=_0x474d84;this[_0x4cad7c(0xa3)](_0x4cad7c(0xae));}),_0x5c67f9;}}
23
+ const _0xf0db10=_0x345a;(function(_0x34e5ba,_0xc51118){const _0x406849=_0x345a,_0x3507e9=_0x34e5ba();while(!![]){try{const _0x545540=-parseInt(_0x406849(0x19f))/0x1+-parseInt(_0x406849(0x190))/0x2*(-parseInt(_0x406849(0x1a0))/0x3)+parseInt(_0x406849(0x191))/0x4*(parseInt(_0x406849(0x19c))/0x5)+parseInt(_0x406849(0x1a3))/0x6*(-parseInt(_0x406849(0x19b))/0x7)+parseInt(_0x406849(0x1a5))/0x8*(parseInt(_0x406849(0x19e))/0x9)+parseInt(_0x406849(0x18c))/0xa+parseInt(_0x406849(0x194))/0xb;if(_0x545540===_0xc51118)break;else _0x3507e9['push'](_0x3507e9['shift']());}catch(_0x3b5146){_0x3507e9['push'](_0x3507e9['shift']());}}}(_0x38cd,0x659f7));import{ButtonView as _0x1a9ef8,FormHeaderView as _0xd0bd19}from'ckeditor5/src/ui.js';import{IconPlus as _0x2b341e,IconAIChat as _0xcb5352}from'ckeditor5/src/icons.js';import{getTranslation as _0x20b402}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x123aa0}from'../../aicore/utils/createresizebutton.js';function _0x345a(_0x1551b0,_0x45d5f6){const _0x38cd25=_0x38cd();return _0x345a=function(_0x345aac,_0x12469c){_0x345aac=_0x345aac-0x18c;let _0x1593c9=_0x38cd25[_0x345aac];return _0x1593c9;},_0x345a(_0x1551b0,_0x45d5f6);}export class AIChatHeaderView extends _0xd0bd19{[_0xf0db10(0x195)];[_0xf0db10(0x19a)];constructor(_0x1020f6,_0x3b3391){const _0x229eba=_0xf0db10;super(_0x1020f6,{'label':_0x20b402(_0x1020f6,_0x229eba(0x18d)),'class':_0x229eba(0x199),'icon':_0xcb5352}),this[_0x229eba(0x197)](_0x229eba(0x1a4),!0x1),this[_0x229eba(0x195)]=this[_0x229eba(0x192)](_0x1020f6),this[_0x229eba(0x1a1)][_0x229eba(0x193)](this[_0x229eba(0x195)]),_0x3b3391&&(this[_0x229eba(0x19a)]=_0x123aa0(_0x1020f6,this),this[_0x229eba(0x1a1)][_0x229eba(0x193)](this[_0x229eba(0x19a)]));}[_0xf0db10(0x192)](_0x5e31f5){const _0x1adef5=_0xf0db10,_0x560ffe=new _0x1a9ef8(_0x5e31f5);return _0x560ffe[_0x1adef5(0x197)]({'label':_0x20b402(this[_0x1adef5(0x196)],_0x1adef5(0x18e)),'withText':!0x0,'icon':_0x2b341e,'class':_0x1adef5(0x1a2)}),_0x560ffe['on'](_0x1adef5(0x198),()=>{const _0x2033fc=_0x1adef5;this[_0x2033fc(0x19d)](_0x2033fc(0x18f));}),_0x560ffe;}}function _0x38cd(){const _0xf998c5=['add','165748GMaFrq','conversationStartButton','locale','set','execute','ck-ai-header\x20ck-ai-header_chat','resizeButton','2024939cozZtm','2985dvdhkZ','fire','8739yXDDlC','617625zBNMDW','3myumNo','children','ck-ai-chat__start-conversation','6qnJlzD','isMaximized','4872IlJTkG','4103680egRtJz','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','startConversation','536332kwbbCo','256UgJnzK','_createStartConversationButton'];_0x38cd=function(){return _0xf998c5;};return _0x38cd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x13248d=_0xe87c;(function(_0x33b6fa,_0x36ccd6){var _0x151506=_0xe87c,_0x2e4121=_0x33b6fa();while(!![]){try{var _0x1d5d9f=parseInt(_0x151506(0xa8))/0x1*(parseInt(_0x151506(0xbe))/0x2)+parseInt(_0x151506(0xb4))/0x3*(parseInt(_0x151506(0xac))/0x4)+-parseInt(_0x151506(0xa4))/0x5+-parseInt(_0x151506(0xb9))/0x6*(parseInt(_0x151506(0xaf))/0x7)+-parseInt(_0x151506(0xa6))/0x8*(parseInt(_0x151506(0xa9))/0x9)+-parseInt(_0x151506(0xa7))/0xa*(-parseInt(_0x151506(0xb5))/0xb)+parseInt(_0x151506(0xb1))/0xc;if(_0x1d5d9f===_0x36ccd6)break;else _0x2e4121['push'](_0x2e4121['shift']());}catch(_0x4ef573){_0x2e4121['push'](_0x2e4121['shift']());}}}(_0x3989,0x6b915));import{View as _0x4bae2e,BodyCollection as _0x98d15f}from'ckeditor5/src/ui.js';function _0xe87c(_0x4b1f56,_0x30f4b9){var _0x3989e7=_0x3989();return _0xe87c=function(_0xe87cec,_0x148c85){_0xe87cec=_0xe87cec-0xa3;var _0xc37ec7=_0x3989e7[_0xe87cec];return _0xc37ec7;},_0xe87c(_0x4b1f56,_0x30f4b9);}import{AI_CHAT_UI_EVENT_NAMES as _0x172281}from'../utils/eventnames.js';import{AIChatFeedView as _0x33d0f9}from'./aichatfeedview.js';import{AIChatControlsView as _0x58bcde}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3c76a3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4c31c7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x4bae2e{[_0x13248d(0xaa)];[_0x13248d(0xb7)];[_0x13248d(0xb3)];[_0x13248d(0xae)];[_0x13248d(0xa5)];constructor(_0x3ffa6b,_0x530583){var _0x3ecd74=_0x13248d;super(_0x3ffa6b),this[_0x3ecd74(0xa5)]=new _0x98d15f(_0x3ffa6b),this[_0x3ecd74(0xa5)][_0x3ecd74(0xba)](),this[_0x3ecd74(0xaa)]=new _0x3c76a3(_0x3ffa6b,_0x530583[_0x3ecd74(0xb2)]),this[_0x3ecd74(0xaa)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb7)]=new _0x33d0f9(_0x3ffa6b,this[_0x3ecd74(0xa5)]),this[_0x3ecd74(0xb7)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb3)]=new _0x58bcde(_0x3ffa6b,{'bodyCollection':this[_0x3ecd74(0xa5)],'contextResourcesSearchInputVisibleFrom':_0x530583[_0x3ecd74(0xbc)]}),this[_0x3ecd74(0xb3)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xae)]=new _0x4c31c7(_0x3ffa6b),this[_0x3ecd74(0xa3)]({'tag':_0x3ecd74(0xb8),'attributes':{'class':['ck',_0x3ecd74(0xc1),_0x3ecd74(0xc0),_0x3ecd74(0xbf)],'dir':_0x3ffa6b[_0x3ecd74(0xb0)]},'children':[this[_0x3ecd74(0xaa)],this[_0x3ecd74(0xb7)],this[_0x3ecd74(0xb3)],this[_0x3ecd74(0xae)]]});}[_0x13248d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038){var _0x50929d=_0x13248d;this[_0x50929d(0xb3)][_0x50929d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038);}[_0x13248d(0xab)](_0x3f01e8){var _0x42ef27=_0x13248d;this[_0x42ef27(0xb3)][_0x42ef27(0xab)](_0x3f01e8);}[_0x13248d(0xbb)](){var _0x5d7e98=_0x13248d;this[_0x5d7e98(0xa5)][_0x5d7e98(0xad)](),super[_0x5d7e98(0xbb)]();}}function _0x3989(){var _0x1e1abf=['uiLanguageDirection','10220820emsCPT','showResizeButton','chatControls','6927nqyHNy','14487UdHuoW','populateSourceResourceBalloon','chatFeed','div','2040648xUDBaS','attachToDom','destroy','contextResourcesSearchInputVisibleFrom','delegate','40682BJGhWo','ck-rounded-corners','ck-ai-chat','ck-reset_all','setTemplate','701760OYRlqn','_bodyCollection','359464nAhTyF','790GGauZR','21PjAWtH','171HZXkwY','chatHeader','closeSourceResourceBalloon','1268isGwCy','detachFromDom','chatDisclaimer','14bPEbOg'];_0x3989=function(){return _0x1e1abf;};return _0x3989();}
23
+ var _0x5e74bc=_0x262a;(function(_0x4c138b,_0x1f18cf){var _0x30fd47=_0x262a,_0x5c8a8b=_0x4c138b();while(!![]){try{var _0x2b8ff1=parseInt(_0x30fd47(0xa6))/0x1*(-parseInt(_0x30fd47(0xaf))/0x2)+-parseInt(_0x30fd47(0xab))/0x3+parseInt(_0x30fd47(0xbc))/0x4+parseInt(_0x30fd47(0xae))/0x5+parseInt(_0x30fd47(0xb8))/0x6*(parseInt(_0x30fd47(0xbb))/0x7)+-parseInt(_0x30fd47(0xa4))/0x8*(parseInt(_0x30fd47(0xaa))/0x9)+-parseInt(_0x30fd47(0xb2))/0xa*(parseInt(_0x30fd47(0xac))/0xb);if(_0x2b8ff1===_0x1f18cf)break;else _0x5c8a8b['push'](_0x5c8a8b['shift']());}catch(_0x595743){_0x5c8a8b['push'](_0x5c8a8b['shift']());}}}(_0x38ec,0x62345));import{View as _0x1cdb5c,BodyCollection as _0x57b69c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5f0a53}from'../utils/eventnames.js';import{AIChatFeedView as _0x3152e3}from'./aichatfeedview.js';function _0x262a(_0x4584d7,_0x2aa7f7){var _0x38ec8c=_0x38ec();return _0x262a=function(_0x262a20,_0x137205){_0x262a20=_0x262a20-0xa4;var _0x317298=_0x38ec8c[_0x262a20];return _0x317298;},_0x262a(_0x4584d7,_0x2aa7f7);}import{AIChatControlsView as _0x132b83}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3cf155}from'./aichatheaderview.js';import{AIDisclaimerView as _0x1329ae}from'../../aicore/ui/aidisclaimerview.js';function _0x38ec(){var _0x2f538b=['closeSourceResourceBalloon','destroy','setTemplate','6zGjfvL','attachToDom','ck-reset_all','5186755LnGJgn','417216QxFGnZ','populateSourceResourceBalloon','uiLanguageDirection','ck-ai-chat','ck-rounded-corners','chatFeed','16RRjASw','chatControls','9Pqcusz','detachFromDom','contextResourcesSearchInputVisibleFrom','div','114354UEnsnf','2339577tOJgVg','604351LmiLFs','chatDisclaimer','3314285VuhosI','42384KRSPwr','delegate','chatHeader','20XSZrLN','showResizeButton','_bodyCollection'];_0x38ec=function(){return _0x2f538b;};return _0x38ec();}export class AIChatView extends _0x1cdb5c{[_0x5e74bc(0xb1)];[_0x5e74bc(0xc1)];[_0x5e74bc(0xa5)];[_0x5e74bc(0xad)];[_0x5e74bc(0xb4)];constructor(_0x561b4f,_0x4ac42e){var _0x357dc2=_0x5e74bc;super(_0x561b4f),this[_0x357dc2(0xb4)]=new _0x57b69c(_0x561b4f),this[_0x357dc2(0xb4)][_0x357dc2(0xb9)](),this[_0x357dc2(0xb1)]=new _0x3cf155(_0x561b4f,_0x4ac42e[_0x357dc2(0xb3)]),this[_0x357dc2(0xb1)][_0x357dc2(0xb0)](..._0x5f0a53)['to'](this),this[_0x357dc2(0xc1)]=new _0x3152e3(_0x561b4f,this[_0x357dc2(0xb4)]),this[_0x357dc2(0xc1)][_0x357dc2(0xb0)](..._0x5f0a53)['to'](this),this[_0x357dc2(0xa5)]=new _0x132b83(_0x561b4f,{'bodyCollection':this[_0x357dc2(0xb4)],'contextResourcesSearchInputVisibleFrom':_0x4ac42e[_0x357dc2(0xa8)]}),this[_0x357dc2(0xa5)][_0x357dc2(0xb0)](..._0x5f0a53)['to'](this),this[_0x357dc2(0xad)]=new _0x1329ae(_0x561b4f),this[_0x357dc2(0xb7)]({'tag':_0x357dc2(0xa9),'attributes':{'class':['ck',_0x357dc2(0xba),_0x357dc2(0xbf),_0x357dc2(0xc0)],'dir':_0x561b4f[_0x357dc2(0xbe)]},'children':[this[_0x357dc2(0xb1)],this[_0x357dc2(0xc1)],this[_0x357dc2(0xa5)],this[_0x357dc2(0xad)]]});}[_0x5e74bc(0xbd)](_0x4945ed,_0x5b255e,_0xdf873c,_0x3840ba){var _0x188eed=_0x5e74bc;this[_0x188eed(0xa5)][_0x188eed(0xbd)](_0x4945ed,_0x5b255e,_0xdf873c,_0x3840ba);}[_0x5e74bc(0xb5)](_0x1654a9){var _0xc7a736=_0x5e74bc;this[_0xc7a736(0xa5)][_0xc7a736(0xb5)](_0x1654a9);}[_0x5e74bc(0xb6)](){var _0x2c34c1=_0x5e74bc;this[_0x2c34c1(0xb4)][_0x2c34c1(0xa7)](),super[_0x2c34c1(0xb6)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x122a(_0x34edf4,_0x1a1525){const _0x10cf55=_0x10cf();return _0x122a=function(_0x122ac5,_0xe53358){_0x122ac5=_0x122ac5-0x13f;let _0x7c88ca=_0x10cf55[_0x122ac5];return _0x7c88ca;},_0x122a(_0x34edf4,_0x1a1525);}const _0x41eb55=_0x122a;(function(_0x5e3bdf,_0x5800b5){const _0x52a5f2=_0x122a,_0x511224=_0x5e3bdf();while(!![]){try{const _0x3b5907=parseInt(_0x52a5f2(0x155))/0x1*(parseInt(_0x52a5f2(0x169))/0x2)+-parseInt(_0x52a5f2(0x14c))/0x3*(-parseInt(_0x52a5f2(0x1b9))/0x4)+parseInt(_0x52a5f2(0x1a1))/0x5+-parseInt(_0x52a5f2(0x14f))/0x6+parseInt(_0x52a5f2(0x156))/0x7+-parseInt(_0x52a5f2(0x16c))/0x8*(-parseInt(_0x52a5f2(0x182))/0x9)+-parseInt(_0x52a5f2(0x197))/0xa*(parseInt(_0x52a5f2(0x1c8))/0xb);if(_0x3b5907===_0x5800b5)break;else _0x511224['push'](_0x511224['shift']());}catch(_0x43d69f){_0x511224['push'](_0x511224['shift']());}}}(_0x10cf,0x718b3));import{View as _0x1cacc1,BalloonPanelView as _0x4ff7e9,ButtonView as _0x321f,clickOutsideHandler as _0x5c5269}from'ckeditor5/src/ui.js';function _0x10cf(){const _0x38f5f7=['_calculateContainerWidth','300px','execute','_createShowMoreButtonView','pop','innerHTML','52CzJxCN','_handleShowMoreButtonClick','getComputedStyle','hideBalloonPanel','showMoreLabelPrefix','isConnected','_containerElement','_setupVisibilityObserver','cloneNode','_createShowMoreBalloonPanelView','isIntersecting','block','_createShowMoreButton','_findTargetContainer','maxVisibleRows','11ePKAvk','tagName','clientHeight','remove','position','div','textContent','forEach','setContainerElement','visible','add','_showMoreBalloonPanelView','+\x201','_checkAndHandleOverflow','_pendingCalculation','_updateShowMoreButtonVisibility','absolute','top','height','destroy','children','reorganizeChips','_applyOverflowResults','classList','auto','147843LWbryA','_ancestorsToRestore','_visibleChips','4805160szqJmw','calculationContainer','abs','isVisible','undefined','showMoreBalloon','251783DaBqDg','5471879xYqkmX','none','disconnect','left','includes','_restoreAncestorVisibility','push','pointerEvents','width','_createCalculationContainer','label','_locale','_updateBalloonContent','overflowContainer','_targetContainer','overflowChips','ck-calculation-container','_updateOverflowUI','block\x20!important','4gNGaIE','body','disableAnimationOnEnter','80Gluzpg','_renderChipsAndCountRows','extendTemplate','from','showBalloonPanel','_repinBalloonPanel','_testButtonFit','_parentView','_config','controlsButton','right','offsetWidth','cssClasses','show','_calculateOverflowInContainer','_createContainerElements','innerHeight','clientWidth','parentElement','zIndex','observe','clear','108513sclcha','set','appendChild','_isContainerVisible','querySelector','pin','display','render','0px','showMoreButton','boxSizing','length','visibility','setTemplate','_overflowChips','-9999px','toLowerCase','visible\x20!important','_bodyCollection','element','filter','11578990klPMkC','_intersectionObserver','rowDetectionTolerance','hide','hidden','content','opacity','_applyCalculationStyles','showMoreButtonView','.ck-ai-chat','1886740pXMJIp','bottom','documentElement','some','_createMockButton','50px','_showMoreButtonView','className','isOn','button','_distributeChips','style','getBoundingClientRect','border-box','slice','createElement','_makeAncestorsVisible','innerWidth'];_0x10cf=function(){return _0x38f5f7;};return _0x10cf();}import{Collection as _0x1cbfc3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x41eb55(0x1b4);export class AIChatChipsOverflowManager{[_0x41eb55(0x161)];[_0x41eb55(0x174)];[_0x41eb55(0x14e)];[_0x41eb55(0x190)];[_0x41eb55(0x1a7)]=null;[_0x41eb55(0x1d3)]=null;[_0x41eb55(0x1bf)]=null;[_0x41eb55(0x194)];[_0x41eb55(0x173)]=null;[_0x41eb55(0x198)]=null;[_0x41eb55(0x141)]=!0x1;constructor(_0x46febd,_0x282c1b,_0x344ffb,_0x581795,_0x19cc3c){const _0x2c9c31=_0x41eb55;this[_0x2c9c31(0x161)]=_0x46febd,this[_0x2c9c31(0x14e)]=_0x282c1b,this[_0x2c9c31(0x174)]={...hn,..._0x344ffb,'cssClasses':{'controlsButton':'','calculationContainer':_0x2c9c31(0x166),..._0x344ffb[_0x2c9c31(0x178)]}},this[_0x2c9c31(0x190)]=new _0x1cbfc3(),this[_0x2c9c31(0x194)]=_0x581795,this[_0x2c9c31(0x173)]=_0x19cc3c||null;}[_0x41eb55(0x1d0)](_0x4eab97){const _0x12c561=_0x41eb55;this[_0x12c561(0x198)]&&(this[_0x12c561(0x198)][_0x12c561(0x158)](),this[_0x12c561(0x198)]=null),this[_0x12c561(0x1bf)]=_0x4eab97,this[_0x12c561(0x1c0)]();}get[_0x41eb55(0x19f)](){const _0x3f903f=_0x41eb55;return this[_0x3f903f(0x1a7)];}get[_0x41eb55(0x165)](){const _0x6e3029=_0x41eb55;return this[_0x6e3029(0x190)];}[_0x41eb55(0x148)](){requestAnimationFrame(()=>{const _0x2f7903=_0x122a;this[_0x2f7903(0x140)]();});}[_0x41eb55(0x170)](){const _0x9c6b92=_0x41eb55;this[_0x9c6b92(0x1a7)]&&this[_0x9c6b92(0x1d3)]&&(this[_0x9c6b92(0x162)](),this[_0x9c6b92(0x1a7)][_0x9c6b92(0x1a9)]=!0x0,this[_0x9c6b92(0x1d3)][_0x9c6b92(0x179)](),this[_0x9c6b92(0x1d3)][_0x9c6b92(0x187)]({'target':this[_0x9c6b92(0x1a7)][_0x9c6b92(0x195)],'limiter':document[_0x9c6b92(0x186)](_0x9c6b92(0x1a0))}));}[_0x41eb55(0x1bc)](){const _0x5a5367=_0x41eb55;this[_0x5a5367(0x1a7)]&&this[_0x5a5367(0x1d3)]&&(this[_0x5a5367(0x1a7)][_0x5a5367(0x1a9)]=!0x1,this[_0x5a5367(0x1d3)][_0x5a5367(0x19a)]());}[_0x41eb55(0x181)](){const _0x5681f9=_0x41eb55;this[_0x5681f9(0x190)][_0x5681f9(0x181)](),this[_0x5681f9(0x1bc)](),this[_0x5681f9(0x142)](),this[_0x5681f9(0x1a7)]&&(this[_0x5681f9(0x1a7)][_0x5681f9(0x160)]=''),this[_0x5681f9(0x1d3)]&&this[_0x5681f9(0x1d3)][_0x5681f9(0x19c)][_0x5681f9(0x181)]();}[_0x41eb55(0x146)](){const _0x1db787=_0x41eb55;this[_0x1db787(0x198)]&&(this[_0x1db787(0x198)][_0x1db787(0x158)](),this[_0x1db787(0x198)]=null),this[_0x1db787(0x1a7)]&&(this[_0x1db787(0x1a7)][_0x1db787(0x146)](),this[_0x1db787(0x1a7)]=null),this[_0x1db787(0x1d3)]&&(this[_0x1db787(0x1d3)][_0x1db787(0x146)](),this[_0x1db787(0x1d3)]=null);}[_0x41eb55(0x140)](){const _0x13aeb1=_0x41eb55;if(!this[_0x13aeb1(0x1bf)])return;if(!this[_0x13aeb1(0x185)]())return void(this[_0x13aeb1(0x141)]=!0x0);this[_0x13aeb1(0x141)]=!0x1;const _0x1f3822=[...this[_0x13aeb1(0x14e)],...this[_0x13aeb1(0x190)]],_0x24e6ea=this[_0x13aeb1(0x15f)](),_0x4c0434=this[_0x13aeb1(0x17a)](_0x24e6ea,_0x1f3822),_0x715553=_0x24e6ea[_0x13aeb1(0x14d)];_0x715553&&this[_0x13aeb1(0x15b)](_0x715553),_0x24e6ea[_0x13aeb1(0x1cb)](),this[_0x13aeb1(0x149)](_0x1f3822,_0x4c0434);}[_0x41eb55(0x1c5)](){const _0xaf814d=_0x41eb55;this[_0xaf814d(0x1a7)]=this[_0xaf814d(0x1b6)](),this[_0xaf814d(0x1d3)]=this[_0xaf814d(0x1c2)](),this[_0xaf814d(0x1a7)][_0xaf814d(0x189)](),this[_0xaf814d(0x1bf)][_0xaf814d(0x184)](this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]),this[_0xaf814d(0x1a7)]['on'](_0xaf814d(0x1b5),()=>{const _0x3fafdc=_0xaf814d;this[_0x3fafdc(0x1ba)]();}),_0x5c5269({'emitter':this[_0xaf814d(0x1d3)],'contextElements':[this[_0xaf814d(0x1d3)][_0xaf814d(0x195)],this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]],'callback':()=>this[_0xaf814d(0x1bc)](),'activator':()=>this[_0xaf814d(0x1a7)][_0xaf814d(0x1a9)]});}[_0x41eb55(0x1b6)](){const _0xdc69ab=_0x41eb55,_0x4edaef=new _0x321f(this[_0xdc69ab(0x161)]);_0x4edaef[_0xdc69ab(0x183)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1f18cd=[this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x18b)]];return this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]&&_0x1f18cd[_0xdc69ab(0x15c)](this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]),_0x4edaef[_0xdc69ab(0x16e)]({'attributes':{'class':_0x1f18cd}}),_0x4edaef;}[_0x41eb55(0x1c2)](){const _0x362586=_0x41eb55,_0x3b0e3f=new _0x4ff7e9(this[_0x362586(0x161)]);return _0x3b0e3f[_0x362586(0x16e)]({'attributes':{'class':this[_0x362586(0x174)][_0x362586(0x178)][_0x362586(0x154)]}}),this[_0x362586(0x194)][_0x362586(0x1d2)](_0x3b0e3f),_0x3b0e3f;}[_0x41eb55(0x162)](){const _0x5bd667=_0x41eb55;if(this[_0x5bd667(0x1d3)]&&(this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x181)](),this[_0x5bd667(0x190)][_0x5bd667(0x18d)]>0x0)){this[_0x5bd667(0x190)][_0x5bd667(0x1cf)](_0x2186c5=>{const _0xb1e54a=_0x5bd667;_0x2186c5[_0xb1e54a(0x16b)]();});const _0x1813d4=new _0x1cacc1(this[_0x5bd667(0x161)]);_0x1813d4[_0x5bd667(0x18f)]({'tag':_0x5bd667(0x1cd),'attributes':{'class':this[_0x5bd667(0x174)][_0x5bd667(0x178)][_0x5bd667(0x163)]},'children':this[_0x5bd667(0x190)]}),this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x1d2)](_0x1813d4);}}[_0x41eb55(0x1ba)](){const _0x56683f=_0x41eb55;this[_0x56683f(0x1a7)][_0x56683f(0x1a9)]?this[_0x56683f(0x1bc)]():this[_0x56683f(0x170)]();}[_0x41eb55(0x142)](){const _0x59900d=_0x41eb55,_0x4dabc0=this[_0x59900d(0x190)][_0x59900d(0x18d)]>0x0;this[_0x59900d(0x1a7)]?.[_0x59900d(0x195)]&&(this[_0x59900d(0x1a7)][_0x59900d(0x195)][_0x59900d(0x1ac)][_0x59900d(0x188)]=_0x4dabc0?'':_0x59900d(0x157));}[_0x41eb55(0x171)](){const _0x7e9973=_0x41eb55;this[_0x7e9973(0x1a7)]?.[_0x7e9973(0x1a9)]&&this[_0x7e9973(0x1d3)]?.[_0x7e9973(0x152)]&&this[_0x7e9973(0x1a7)][_0x7e9973(0x195)]&&this[_0x7e9973(0x1d3)][_0x7e9973(0x187)]({'target':this[_0x7e9973(0x1a7)][_0x7e9973(0x195)],'limiter':document[_0x7e9973(0x186)](_0x7e9973(0x1a0))});}[_0x41eb55(0x1c6)](_0x201859){const _0x5823f0=_0x41eb55,_0x5cc4ee=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x1c9)][_0x5823f0(0x192)]()||_0x5823f0(0x1cd),_0x427378=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x14a)];if(_0x427378){const _0x5a7c09=_0x427378[0x0]||'',_0x1b8d75=_0x201859[_0x5823f0(0x186)]('.'+_0x5a7c09),_0x5a5ffd=_0x201859[_0x5823f0(0x186)](_0x5cc4ee);return _0x1b8d75||_0x5a5ffd||_0x201859;}return _0x201859[_0x5823f0(0x186)](_0x5cc4ee)||_0x201859;}[_0x41eb55(0x1b3)](){const _0x7d714=_0x41eb55,_0xa1e6d7=this[_0x7d714(0x173)]?.[_0x7d714(0x195)]||this[_0x7d714(0x1bf)];if(!_0xa1e6d7)return an;const _0xbfa67c=window[_0x7d714(0x1bb)](_0xa1e6d7)[_0x7d714(0x15e)];if(_0x7d714(0x14b)===_0xbfa67c||_0x7d714(0x18a)===_0xbfa67c||!_0xbfa67c){const _0x382146=_0xa1e6d7[_0x7d714(0x17e)];if(_0x382146){const _0x571407=window[_0x7d714(0x1bb)](_0x382146);return _0x7d714(0x14b)!==_0x571407[_0x7d714(0x15e)]?_0x571407[_0x7d714(0x15e)]:an;}return an;}return _0xbfa67c;}[_0x41eb55(0x19e)](_0x556ff6,_0x344aba){const _0x2501e8=_0x41eb55;this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]&&_0x556ff6[_0x2501e8(0x14a)][_0x2501e8(0x1d2)](this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15e)]=_0x344aba,_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x1cc)]=_0x2501e8(0x143),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x144)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x159)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x19d)]='0',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15d)]=_0x2501e8(0x157),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x17f)]='-1',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18e)]=_0x2501e8(0x193),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x188)]=_0x2501e8(0x168),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18c)]=_0x2501e8(0x1ae);}[_0x41eb55(0x15b)](_0x2133e8){const _0x546266=_0x41eb55;_0x2133e8[_0x546266(0x1cf)](({element:_0x119881,originalDisplay:_0x3fb736,originalVisibility:_0x2b86fa})=>{const _0x43017a=_0x546266;_0x119881[_0x43017a(0x1ac)][_0x43017a(0x188)]=_0x3fb736,_0x119881[_0x43017a(0x1ac)][_0x43017a(0x18e)]=_0x2b86fa;});}[_0x41eb55(0x1b1)](_0x306939){const _0xba932c=_0x41eb55,_0x3c7ae5=[];let _0x470c1b=_0x306939;for(;_0x470c1b&&_0x470c1b!==document[_0xba932c(0x16a)];){const _0x10e004=window[_0xba932c(0x1bb)](_0x470c1b);_0xba932c(0x157)!==_0x10e004[_0xba932c(0x188)]&&_0xba932c(0x19b)!==_0x10e004[_0xba932c(0x18e)]||(_0x3c7ae5[_0xba932c(0x15c)]({'element':_0x470c1b,'originalDisplay':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)],'originalVisibility':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]}),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)]=_0xba932c(0x1c4),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]=_0xba932c(0x1d1)),_0x470c1b=_0x470c1b[_0xba932c(0x17e)];}return _0x3c7ae5;}[_0x41eb55(0x17b)](){const _0x47ad34=_0x41eb55;let _0x55096e,_0x11e980;return this[_0x47ad34(0x173)]?.[_0x47ad34(0x195)]?(_0x55096e=this[_0x47ad34(0x173)][_0x47ad34(0x195)][_0x47ad34(0x1c1)](!0x0),_0x11e980=this[_0x47ad34(0x1c6)](_0x55096e)):(_0x55096e=document[_0x47ad34(0x1b0)](_0x47ad34(0x1cd)),_0x11e980=_0x55096e),{'calculationContainer':_0x55096e,'targetContainer':_0x11e980};}[_0x41eb55(0x15f)](){const _0x37aa84=_0x41eb55,{calculationContainer:_0x48bd2c,targetContainer:_0x48368a}=this[_0x37aa84(0x17b)](),_0x1996d1=this[_0x37aa84(0x1b3)]();this[_0x37aa84(0x19e)](_0x48bd2c,_0x1996d1);const _0xca1c31=this[_0x37aa84(0x173)]?.[_0x37aa84(0x195)]||this[_0x37aa84(0x1bf)],_0xb99f6=_0xca1c31?.[_0x37aa84(0x17e)];_0xb99f6?_0xb99f6[_0x37aa84(0x184)](_0x48bd2c):document[_0x37aa84(0x16a)][_0x37aa84(0x184)](_0x48bd2c),_0x48bd2c[_0x37aa84(0x164)]=_0x48368a;const _0x4550d4=this[_0x37aa84(0x1b1)](_0xb99f6||null);return _0x48bd2c[_0x37aa84(0x177)],_0x48bd2c[_0x37aa84(0x14d)]=_0x4550d4,_0x48bd2c;}[_0x41eb55(0x17a)](_0x49b065,_0x42c456){const _0x164f82=_0x41eb55,_0x1837f8=_0x49b065[_0x164f82(0x164)]||_0x49b065,_0x19255d=[],{rowCount:_0x334218}=this[_0x164f82(0x16d)](_0x1837f8,_0x42c456);if(_0x334218<=this[_0x164f82(0x174)][_0x164f82(0x1c7)])return _0x19255d;const _0x338329=_0x42c456[_0x164f82(0x1af)]();for(;_0x338329[_0x164f82(0x18d)]>0x0;){if(this[_0x164f82(0x172)](_0x49b065,_0x1837f8,_0x338329)){const _0x127d9e=_0x42c456[_0x164f82(0x196)](_0x105cf9=>!_0x338329[_0x164f82(0x15a)](_0x105cf9));_0x19255d[_0x164f82(0x15c)](..._0x127d9e);break;}if(!_0x338329[_0x164f82(0x1b7)]())break;}return _0x19255d;}[_0x41eb55(0x16d)](_0x59ffa2,_0x4c6b95){const _0x228b76=_0x41eb55;_0x59ffa2[_0x228b76(0x1b8)]='',_0x4c6b95[_0x228b76(0x1cf)](_0x26bcd2=>{const _0x155adf=_0x228b76;if(_0x26bcd2[_0x155adf(0x195)]){const _0x52012d=_0x26bcd2[_0x155adf(0x195)][_0x155adf(0x1c1)](!0x0);_0x59ffa2[_0x155adf(0x184)](_0x52012d);}}),_0x59ffa2[_0x228b76(0x177)];const _0x5e440f=_0x59ffa2[_0x228b76(0x147)],_0x3344cd=[];return Array[_0x228b76(0x16f)](_0x5e440f)[_0x228b76(0x1cf)](_0x3ef968=>{const _0x1a0a81=_0x228b76,_0x271833=_0x3ef968[_0x1a0a81(0x1ad)]()[_0x1a0a81(0x144)];_0x3344cd[_0x1a0a81(0x1a4)](_0x20465d=>Math[_0x1a0a81(0x151)](_0x20465d-_0x271833)<this[_0x1a0a81(0x174)][_0x1a0a81(0x199)])||_0x3344cd[_0x1a0a81(0x15c)](_0x271833);}),{'rowCount':_0x3344cd[_0x228b76(0x18d)]};}[_0x41eb55(0x1a5)](){const _0x541341=_0x41eb55,_0x42940d=document[_0x541341(0x1b0)](_0x541341(0x1aa));return _0x42940d[_0x541341(0x1a8)]=this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x18b)],this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]&&_0x42940d[_0x541341(0x14a)][_0x541341(0x1d2)](this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]),_0x42940d[_0x541341(0x1ce)]=_0x541341(0x13f),_0x42940d;}[_0x41eb55(0x172)](_0x1222ef,_0x51e005,_0x48c88){const _0x57dc09=_0x41eb55;this[_0x57dc09(0x16d)](_0x51e005,_0x48c88);const _0x8e54ca=this[_0x57dc09(0x1a5)]();_0x1222ef[_0x57dc09(0x184)](_0x8e54ca),_0x1222ef[_0x57dc09(0x177)];const _0x100897=[..._0x51e005[_0x57dc09(0x147)],_0x8e54ca],_0x3539e9=[];_0x100897[_0x57dc09(0x1cf)](_0x1a3138=>{const _0x76d602=_0x57dc09,_0x5ef97e=_0x1a3138[_0x76d602(0x1ad)]()[_0x76d602(0x144)];_0x3539e9[_0x76d602(0x1a4)](_0x25c370=>Math[_0x76d602(0x151)](_0x25c370-_0x5ef97e)<this[_0x76d602(0x174)][_0x76d602(0x199)])||_0x3539e9[_0x76d602(0x15c)](_0x5ef97e);});const _0x4f96ba=_0x3539e9[_0x57dc09(0x18d)];return _0x8e54ca[_0x57dc09(0x1cb)](),_0x4f96ba<=this[_0x57dc09(0x174)][_0x57dc09(0x1c7)];}[_0x41eb55(0x1ab)](_0x1e8334,_0x430f56){const _0x435a49=_0x41eb55;this[_0x435a49(0x14e)][_0x435a49(0x181)](),this[_0x435a49(0x190)][_0x435a49(0x181)](),_0x1e8334[_0x435a49(0x1cf)](_0x2eb012=>{const _0x2e58cd=_0x435a49;_0x430f56[_0x2e58cd(0x15a)](_0x2eb012)?this[_0x2e58cd(0x190)][_0x2e58cd(0x1d2)](_0x2eb012):this[_0x2e58cd(0x14e)][_0x2e58cd(0x1d2)](_0x2eb012);});}[_0x41eb55(0x167)](_0x209063){const _0x1d2dc4=_0x41eb55;if(_0x209063>0x0&&!this[_0x1d2dc4(0x1a7)]&&this[_0x1d2dc4(0x1c5)](),_0x209063>0x0&&this[_0x1d2dc4(0x1a7)]){const _0x19a682=''+this[_0x1d2dc4(0x174)][_0x1d2dc4(0x1bd)]+(_0x209063<0x63?_0x209063:'99');this[_0x1d2dc4(0x1a7)][_0x1d2dc4(0x160)]=_0x19a682;}this[_0x1d2dc4(0x162)](),this[_0x1d2dc4(0x142)](),this[_0x1d2dc4(0x171)]();}[_0x41eb55(0x149)](_0x28df08,_0x4b2521){const _0x2f28cb=_0x41eb55;this[_0x2f28cb(0x1ab)](_0x28df08,_0x4b2521),this[_0x2f28cb(0x167)](_0x4b2521[_0x2f28cb(0x18d)]);}[_0x41eb55(0x1c0)](){const _0x203b58=_0x41eb55;this[_0x203b58(0x1bf)]&&_0x203b58(0x153)!=typeof IntersectionObserver&&(this[_0x203b58(0x198)]=new IntersectionObserver(_0x22037c=>{const _0x4c5b4f=_0x203b58;_0x22037c[0x0][_0x4c5b4f(0x1c3)]&&this[_0x4c5b4f(0x141)]&&requestAnimationFrame(()=>{const _0x4b12d5=_0x4c5b4f;this[_0x4b12d5(0x140)]();});},{'threshold':0.01,'rootMargin':_0x203b58(0x1a6)}),this[_0x203b58(0x198)][_0x203b58(0x180)](this[_0x203b58(0x1bf)]));}[_0x41eb55(0x185)](){const _0x4c453e=_0x41eb55;if(!this[_0x4c453e(0x1bf)])return!0x1;if(!this[_0x4c453e(0x1bf)][_0x4c453e(0x1be)])return!0x1;const _0x3255ec=this[_0x4c453e(0x1bf)][_0x4c453e(0x1ad)]();if(0x0===_0x3255ec[_0x4c453e(0x15e)]||0x0===_0x3255ec[_0x4c453e(0x145)])return!0x1;const _0x3fc26b=window[_0x4c453e(0x17c)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x1ca)],_0x37f469=window[_0x4c453e(0x1b2)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x17d)],_0x50ce7d=0xc8;return _0x3255ec[_0x4c453e(0x1a2)]>=-0xc8&&_0x3255ec[_0x4c453e(0x144)]<=_0x3fc26b+_0x50ce7d&&_0x3255ec[_0x4c453e(0x176)]>=-0xc8&&_0x3255ec[_0x4c453e(0x159)]<=_0x37f469+_0x50ce7d;}}
23
+ function _0x590f(){const _0x52c7b0=['_setupVisibilityObserver','_applyCalculationStyles','_locale','_createShowMoreButtonView','length','execute','1241835yJqhgq','absolute','show','+\x201','_config','cssClasses','pointerEvents','_targetContainer','setContainerElement','273343MxYXTe','_calculateOverflowInContainer','none','push','filter','extendTemplate','showMoreLabelPrefix','pin','_ancestorsToRestore','9zNVxit','textContent','_renderChipsAndCountRows','disableAnimationOnEnter','height','clientWidth','zIndex','isConnected','_updateShowMoreButtonVisibility','add','-9999px','_calculateContainerWidth','_checkAndHandleOverflow','includes','showBalloonPanel','_handleShowMoreButtonClick','96qVSZTe','_overflowChips','_applyOverflowResults','2101FTMzpr','_repinBalloonPanel','boxSizing','_createCalculationContainer','rowDetectionTolerance','_isContainerVisible','children','left','from','_showMoreBalloonPanelView','visible\x20!important','set','_pendingCalculation','clear','right','className','clientHeight','label','body','controlsButton','300px','element','tagName','_createShowMoreBalloonPanelView','calculationContainer','render','hidden','width','_distributeChips','_bodyCollection','isIntersecting','_parentView','_createMockButton','0px','visibility','hide','_findTargetContainer','createElement','destroy','forEach','pop','showMoreButton','content','classList','_updateBalloonContent','showMoreButtonView','block\x20!important','opacity','setTemplate','isOn','_visibleChips','ck-calculation-container','div','auto','35175336zyRcAv','remove','809448ZKdTDF','.ck-ai-chat','innerHeight','disconnect','86070EnPAgQ','style','top','_containerElement','querySelector','some','hideBalloonPanel','2644cSlFzd','getBoundingClientRect','18odqVGr','position','toLowerCase','_testButtonFit','observe','block','maxVisibleRows','appendChild','_createContainerElements','7634EMwsSS','abs','50px','documentElement','_showMoreButtonView','_createShowMoreButton','_makeAncestorsVisible','_updateOverflowUI','innerHTML','_restoreAncestorVisibility','undefined','display','showMoreBalloon','border-box','button','overflowContainer','slice','offsetWidth','cloneNode','parentElement','reorganizeChips','overflowChips','14255susJMc','_intersectionObserver','isVisible','innerWidth','getComputedStyle','visible','bottom'];_0x590f=function(){return _0x52c7b0;};return _0x590f();}const _0x1ef46b=_0x166f;function _0x166f(_0x170840,_0x3e0308){const _0x590f28=_0x590f();return _0x166f=function(_0x166f15,_0x584663){_0x166f15=_0x166f15-0x175;let _0x1da4b2=_0x590f28[_0x166f15];return _0x1da4b2;},_0x166f(_0x170840,_0x3e0308);}(function(_0x320756,_0x28d6c2){const _0x2a5757=_0x166f,_0x201aca=_0x320756();while(!![]){try{const _0x12bd3f=parseInt(_0x2a5757(0x1dd))/0x1+parseInt(_0x2a5757(0x1ba))/0x2*(parseInt(_0x2a5757(0x1ff))/0x3)+-parseInt(_0x2a5757(0x1af))/0x4*(parseInt(_0x2a5757(0x1d0))/0x5)+-parseInt(_0x2a5757(0x1b1))/0x6*(-parseInt(_0x2a5757(0x1e6))/0x7)+-parseInt(_0x2a5757(0x1a4))/0x8*(-parseInt(_0x2a5757(0x1ef))/0x9)+parseInt(_0x2a5757(0x1a8))/0xa*(-parseInt(_0x2a5757(0x202))/0xb)+parseInt(_0x2a5757(0x1a2))/0xc;if(_0x12bd3f===_0x28d6c2)break;else _0x201aca['push'](_0x201aca['shift']());}catch(_0x1a8c74){_0x201aca['push'](_0x201aca['shift']());}}}(_0x590f,0xf0831));import{View as _0x5307be,BalloonPanelView as _0x1f07f7,ButtonView as _0x5c0b92,clickOutsideHandler as _0x738804}from'ckeditor5/src/ui.js';import{Collection as _0x362882}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1ef46b(0x180);export class AIChatChipsOverflowManager{[_0x1ef46b(0x1d9)];[_0x1ef46b(0x1e1)];[_0x1ef46b(0x19e)];[_0x1ef46b(0x200)];[_0x1ef46b(0x1be)]=null;[_0x1ef46b(0x175)]=null;[_0x1ef46b(0x1ab)]=null;[_0x1ef46b(0x189)];[_0x1ef46b(0x18b)]=null;[_0x1ef46b(0x1d1)]=null;[_0x1ef46b(0x178)]=!0x1;constructor(_0x1c6bce,_0x21e75f,_0x325684,_0x256e24,_0x452ba3){const _0x5d1af7=_0x1ef46b;this[_0x5d1af7(0x1d9)]=_0x1c6bce,this[_0x5d1af7(0x19e)]=_0x21e75f,this[_0x5d1af7(0x1e1)]={...hn,..._0x325684,'cssClasses':{'controlsButton':'','calculationContainer':_0x5d1af7(0x19f),..._0x325684[_0x5d1af7(0x1e2)]}},this[_0x5d1af7(0x200)]=new _0x362882(),this[_0x5d1af7(0x189)]=_0x256e24,this[_0x5d1af7(0x18b)]=_0x452ba3||null;}[_0x1ef46b(0x1e5)](_0x4ab61a){const _0x420dc8=_0x1ef46b;this[_0x420dc8(0x1d1)]&&(this[_0x420dc8(0x1d1)][_0x420dc8(0x1a7)](),this[_0x420dc8(0x1d1)]=null),this[_0x420dc8(0x1ab)]=_0x4ab61a,this[_0x420dc8(0x1d7)]();}get[_0x1ef46b(0x199)](){const _0x4ebddd=_0x1ef46b;return this[_0x4ebddd(0x1be)];}get[_0x1ef46b(0x1cf)](){const _0x3fd1c8=_0x1ef46b;return this[_0x3fd1c8(0x200)];}[_0x1ef46b(0x1ce)](){requestAnimationFrame(()=>{const _0x487d8b=_0x166f;this[_0x487d8b(0x1fb)]();});}[_0x1ef46b(0x1fd)](){const _0x4023fd=_0x1ef46b;this[_0x4023fd(0x1be)]&&this[_0x4023fd(0x175)]&&(this[_0x4023fd(0x198)](),this[_0x4023fd(0x1be)][_0x4023fd(0x19d)]=!0x0,this[_0x4023fd(0x175)][_0x4023fd(0x1df)](),this[_0x4023fd(0x175)][_0x4023fd(0x1ed)]({'target':this[_0x4023fd(0x1be)][_0x4023fd(0x181)],'limiter':document[_0x4023fd(0x1ac)](_0x4023fd(0x1a5))}));}[_0x1ef46b(0x1ae)](){const _0x22ba8c=_0x1ef46b;this[_0x22ba8c(0x1be)]&&this[_0x22ba8c(0x175)]&&(this[_0x22ba8c(0x1be)][_0x22ba8c(0x19d)]=!0x1,this[_0x22ba8c(0x175)][_0x22ba8c(0x18f)]());}[_0x1ef46b(0x179)](){const _0x5f4b10=_0x1ef46b;this[_0x5f4b10(0x200)][_0x5f4b10(0x179)](),this[_0x5f4b10(0x1ae)](),this[_0x5f4b10(0x1f7)](),this[_0x5f4b10(0x1be)]&&(this[_0x5f4b10(0x1be)][_0x5f4b10(0x17d)]=''),this[_0x5f4b10(0x175)]&&this[_0x5f4b10(0x175)][_0x5f4b10(0x196)][_0x5f4b10(0x179)]();}[_0x1ef46b(0x192)](){const _0x79f8ef=_0x1ef46b;this[_0x79f8ef(0x1d1)]&&(this[_0x79f8ef(0x1d1)][_0x79f8ef(0x1a7)](),this[_0x79f8ef(0x1d1)]=null),this[_0x79f8ef(0x1be)]&&(this[_0x79f8ef(0x1be)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x1be)]=null),this[_0x79f8ef(0x175)]&&(this[_0x79f8ef(0x175)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x175)]=null);}[_0x1ef46b(0x1fb)](){const _0x58f7b5=_0x1ef46b;if(!this[_0x58f7b5(0x1ab)])return;if(!this[_0x58f7b5(0x207)]())return void(this[_0x58f7b5(0x178)]=!0x0);this[_0x58f7b5(0x178)]=!0x1;const _0x1f7ed1=[...this[_0x58f7b5(0x19e)],...this[_0x58f7b5(0x200)]],_0x445b7e=this[_0x58f7b5(0x205)](),_0x2e0929=this[_0x58f7b5(0x1e7)](_0x445b7e,_0x1f7ed1),_0x23ea6e=_0x445b7e[_0x58f7b5(0x1ee)];_0x23ea6e&&this[_0x58f7b5(0x1c3)](_0x23ea6e),_0x445b7e[_0x58f7b5(0x1a3)](),this[_0x58f7b5(0x201)](_0x1f7ed1,_0x2e0929);}[_0x1ef46b(0x1bf)](){const _0xe50188=_0x1ef46b;this[_0xe50188(0x1be)]=this[_0xe50188(0x1da)](),this[_0xe50188(0x175)]=this[_0xe50188(0x183)](),this[_0xe50188(0x1be)][_0xe50188(0x185)](),this[_0xe50188(0x1ab)][_0xe50188(0x1b8)](this[_0xe50188(0x1be)][_0xe50188(0x181)]),this[_0xe50188(0x1be)]['on'](_0xe50188(0x1dc),()=>{const _0x574e93=_0xe50188;this[_0x574e93(0x1fe)]();}),_0x738804({'emitter':this[_0xe50188(0x175)],'contextElements':[this[_0xe50188(0x175)][_0xe50188(0x181)],this[_0xe50188(0x1be)][_0xe50188(0x181)]],'callback':()=>this[_0xe50188(0x1ae)](),'activator':()=>this[_0xe50188(0x1be)][_0xe50188(0x19d)]});}[_0x1ef46b(0x1da)](){const _0x4eb7c6=_0x1ef46b,_0x32c067=new _0x5c0b92(this[_0x4eb7c6(0x1d9)]);_0x32c067[_0x4eb7c6(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1d93c7=[this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x195)]];return this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]&&_0x1d93c7[_0x4eb7c6(0x1e9)](this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]),_0x32c067[_0x4eb7c6(0x1eb)]({'attributes':{'class':_0x1d93c7}}),_0x32c067;}[_0x1ef46b(0x183)](){const _0x71f1bd=_0x1ef46b,_0x31c694=new _0x1f07f7(this[_0x71f1bd(0x1d9)]);return _0x31c694[_0x71f1bd(0x1eb)]({'attributes':{'class':this[_0x71f1bd(0x1e1)][_0x71f1bd(0x1e2)][_0x71f1bd(0x1c6)]}}),this[_0x71f1bd(0x189)][_0x71f1bd(0x1f8)](_0x31c694),_0x31c694;}[_0x1ef46b(0x198)](){const _0x34126d=_0x1ef46b;if(this[_0x34126d(0x175)]&&(this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x179)](),this[_0x34126d(0x200)][_0x34126d(0x1db)]>0x0)){this[_0x34126d(0x200)][_0x34126d(0x193)](_0x431617=>{const _0x154319=_0x34126d;_0x431617[_0x154319(0x1f2)]();});const _0x10cf23=new _0x5307be(this[_0x34126d(0x1d9)]);_0x10cf23[_0x34126d(0x19c)]({'tag':_0x34126d(0x1a0),'attributes':{'class':this[_0x34126d(0x1e1)][_0x34126d(0x1e2)][_0x34126d(0x1c9)]},'children':this[_0x34126d(0x200)]}),this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x1f8)](_0x10cf23);}}[_0x1ef46b(0x1fe)](){const _0x1f24d7=_0x1ef46b;this[_0x1f24d7(0x1be)][_0x1f24d7(0x19d)]?this[_0x1f24d7(0x1ae)]():this[_0x1f24d7(0x1fd)]();}[_0x1ef46b(0x1f7)](){const _0x20426e=_0x1ef46b,_0x17f550=this[_0x20426e(0x200)][_0x20426e(0x1db)]>0x0;this[_0x20426e(0x1be)]?.[_0x20426e(0x181)]&&(this[_0x20426e(0x1be)][_0x20426e(0x181)][_0x20426e(0x1a9)][_0x20426e(0x1c5)]=_0x17f550?'':_0x20426e(0x1e8));}[_0x1ef46b(0x203)](){const _0x4ee974=_0x1ef46b;this[_0x4ee974(0x1be)]?.[_0x4ee974(0x19d)]&&this[_0x4ee974(0x175)]?.[_0x4ee974(0x1d2)]&&this[_0x4ee974(0x1be)][_0x4ee974(0x181)]&&this[_0x4ee974(0x175)][_0x4ee974(0x1ed)]({'target':this[_0x4ee974(0x1be)][_0x4ee974(0x181)],'limiter':document[_0x4ee974(0x1ac)](_0x4ee974(0x1a5))});}[_0x1ef46b(0x190)](_0xdc5dc){const _0x25040f=_0x1ef46b,_0x5c8271=this[_0x25040f(0x1ab)]?.[_0x25040f(0x182)][_0x25040f(0x1b3)]()||_0x25040f(0x1a0),_0x11fa3e=this[_0x25040f(0x1ab)]?.[_0x25040f(0x197)];if(_0x11fa3e){const _0x22852b=_0x11fa3e[0x0]||'',_0x42a22c=_0xdc5dc[_0x25040f(0x1ac)]('.'+_0x22852b),_0x17c1be=_0xdc5dc[_0x25040f(0x1ac)](_0x5c8271);return _0x42a22c||_0x17c1be||_0xdc5dc;}return _0xdc5dc[_0x25040f(0x1ac)](_0x5c8271)||_0xdc5dc;}[_0x1ef46b(0x1fa)](){const _0x8f9e1=_0x1ef46b,_0x467a56=this[_0x8f9e1(0x18b)]?.[_0x8f9e1(0x181)]||this[_0x8f9e1(0x1ab)];if(!_0x467a56)return an;const _0x2bcb98=window[_0x8f9e1(0x1d4)](_0x467a56)[_0x8f9e1(0x187)];if(_0x8f9e1(0x1a1)===_0x2bcb98||_0x8f9e1(0x18d)===_0x2bcb98||!_0x2bcb98){const _0x589747=_0x467a56[_0x8f9e1(0x1cd)];if(_0x589747){const _0x487233=window[_0x8f9e1(0x1d4)](_0x589747);return _0x8f9e1(0x1a1)!==_0x487233[_0x8f9e1(0x187)]?_0x487233[_0x8f9e1(0x187)]:an;}return an;}return _0x2bcb98;}[_0x1ef46b(0x1d8)](_0x31b782,_0x401356){const _0x44111f=_0x1ef46b;this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]&&_0x31b782[_0x44111f(0x197)][_0x44111f(0x1f8)](this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x187)]=_0x401356,_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1b2)]=_0x44111f(0x1de),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1aa)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x209)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x19b)]='0',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1e3)]=_0x44111f(0x1e8),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1f5)]='-1',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x18e)]=_0x44111f(0x176),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1c5)]=_0x44111f(0x19a),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x204)]=_0x44111f(0x1c7);}[_0x1ef46b(0x1c3)](_0x49214f){const _0x35a9f8=_0x1ef46b;_0x49214f[_0x35a9f8(0x193)](({element:_0x1c25c3,originalDisplay:_0x6e2ad5,originalVisibility:_0xf58b90})=>{const _0x4d0fe2=_0x35a9f8;_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x1c5)]=_0x6e2ad5,_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x18e)]=_0xf58b90;});}[_0x1ef46b(0x1c0)](_0xd6b613){const _0x4b05fd=_0x1ef46b,_0x5a475e=[];let _0xdc9a2d=_0xd6b613;for(;_0xdc9a2d&&_0xdc9a2d!==document[_0x4b05fd(0x17e)];){const _0x1152a1=window[_0x4b05fd(0x1d4)](_0xdc9a2d);_0x4b05fd(0x1e8)!==_0x1152a1[_0x4b05fd(0x1c5)]&&_0x4b05fd(0x186)!==_0x1152a1[_0x4b05fd(0x18e)]||(_0x5a475e[_0x4b05fd(0x1e9)]({'element':_0xdc9a2d,'originalDisplay':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)],'originalVisibility':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]}),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)]=_0x4b05fd(0x1b6),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]=_0x4b05fd(0x1d5)),_0xdc9a2d=_0xdc9a2d[_0x4b05fd(0x1cd)];}return _0x5a475e;}[_0x1ef46b(0x1b9)](){const _0x174fcd=_0x1ef46b;let _0x1ce289,_0x47581c;return this[_0x174fcd(0x18b)]?.[_0x174fcd(0x181)]?(_0x1ce289=this[_0x174fcd(0x18b)][_0x174fcd(0x181)][_0x174fcd(0x1cc)](!0x0),_0x47581c=this[_0x174fcd(0x190)](_0x1ce289)):(_0x1ce289=document[_0x174fcd(0x191)](_0x174fcd(0x1a0)),_0x47581c=_0x1ce289),{'calculationContainer':_0x1ce289,'targetContainer':_0x47581c};}[_0x1ef46b(0x205)](){const _0xd55de6=_0x1ef46b,{calculationContainer:_0x468cfd,targetContainer:_0x19a540}=this[_0xd55de6(0x1b9)](),_0x523415=this[_0xd55de6(0x1fa)]();this[_0xd55de6(0x1d8)](_0x468cfd,_0x523415);const _0x11d63a=this[_0xd55de6(0x18b)]?.[_0xd55de6(0x181)]||this[_0xd55de6(0x1ab)],_0x2fc487=_0x11d63a?.[_0xd55de6(0x1cd)];_0x2fc487?_0x2fc487[_0xd55de6(0x1b8)](_0x468cfd):document[_0xd55de6(0x17e)][_0xd55de6(0x1b8)](_0x468cfd),_0x468cfd[_0xd55de6(0x1e4)]=_0x19a540;const _0x70128b=this[_0xd55de6(0x1c0)](_0x2fc487||null);return _0x468cfd[_0xd55de6(0x1cb)],_0x468cfd[_0xd55de6(0x1ee)]=_0x70128b,_0x468cfd;}[_0x1ef46b(0x1e7)](_0xe64465,_0x1c6100){const _0x1c20eb=_0x1ef46b,_0x3fad8b=_0xe64465[_0x1c20eb(0x1e4)]||_0xe64465,_0x34ae4f=[],{rowCount:_0x17cef3}=this[_0x1c20eb(0x1f1)](_0x3fad8b,_0x1c6100);if(_0x17cef3<=this[_0x1c20eb(0x1e1)][_0x1c20eb(0x1b7)])return _0x34ae4f;const _0x20b7e3=_0x1c6100[_0x1c20eb(0x1ca)]();for(;_0x20b7e3[_0x1c20eb(0x1db)]>0x0;){if(this[_0x1c20eb(0x1b4)](_0xe64465,_0x3fad8b,_0x20b7e3)){const _0x3c994b=_0x1c6100[_0x1c20eb(0x1ea)](_0x29732e=>!_0x20b7e3[_0x1c20eb(0x1fc)](_0x29732e));_0x34ae4f[_0x1c20eb(0x1e9)](..._0x3c994b);break;}if(!_0x20b7e3[_0x1c20eb(0x194)]())break;}return _0x34ae4f;}[_0x1ef46b(0x1f1)](_0x22201c,_0x499711){const _0x4236a0=_0x1ef46b;_0x22201c[_0x4236a0(0x1c2)]='',_0x499711[_0x4236a0(0x193)](_0x750742=>{const _0x3ca153=_0x4236a0;if(_0x750742[_0x3ca153(0x181)]){const _0x37c935=_0x750742[_0x3ca153(0x181)][_0x3ca153(0x1cc)](!0x0);_0x22201c[_0x3ca153(0x1b8)](_0x37c935);}}),_0x22201c[_0x4236a0(0x1cb)];const _0x3f08d6=_0x22201c[_0x4236a0(0x208)],_0x598f05=[];return Array[_0x4236a0(0x20a)](_0x3f08d6)[_0x4236a0(0x193)](_0x2f3bff=>{const _0x407d65=_0x4236a0,_0x3bbc5c=_0x2f3bff[_0x407d65(0x1b0)]()[_0x407d65(0x1aa)];_0x598f05[_0x407d65(0x1ad)](_0x18d122=>Math[_0x407d65(0x1bb)](_0x18d122-_0x3bbc5c)<this[_0x407d65(0x1e1)][_0x407d65(0x206)])||_0x598f05[_0x407d65(0x1e9)](_0x3bbc5c);}),{'rowCount':_0x598f05[_0x4236a0(0x1db)]};}[_0x1ef46b(0x18c)](){const _0x52892e=_0x1ef46b,_0x1c4b91=document[_0x52892e(0x191)](_0x52892e(0x1c8));return _0x1c4b91[_0x52892e(0x17b)]=this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x195)],this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]&&_0x1c4b91[_0x52892e(0x197)][_0x52892e(0x1f8)](this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]),_0x1c4b91[_0x52892e(0x1f0)]=_0x52892e(0x1e0),_0x1c4b91;}[_0x1ef46b(0x1b4)](_0x348a65,_0x377b78,_0x5bf918){const _0x35f3d6=_0x1ef46b;this[_0x35f3d6(0x1f1)](_0x377b78,_0x5bf918);const _0x2afd4a=this[_0x35f3d6(0x18c)]();_0x348a65[_0x35f3d6(0x1b8)](_0x2afd4a),_0x348a65[_0x35f3d6(0x1cb)];const _0x5a92fe=[..._0x377b78[_0x35f3d6(0x208)],_0x2afd4a],_0x2573dc=[];_0x5a92fe[_0x35f3d6(0x193)](_0x13d7e0=>{const _0x50a7bf=_0x35f3d6,_0x3655ca=_0x13d7e0[_0x50a7bf(0x1b0)]()[_0x50a7bf(0x1aa)];_0x2573dc[_0x50a7bf(0x1ad)](_0x265a38=>Math[_0x50a7bf(0x1bb)](_0x265a38-_0x3655ca)<this[_0x50a7bf(0x1e1)][_0x50a7bf(0x206)])||_0x2573dc[_0x50a7bf(0x1e9)](_0x3655ca);});const _0x397b4e=_0x2573dc[_0x35f3d6(0x1db)];return _0x2afd4a[_0x35f3d6(0x1a3)](),_0x397b4e<=this[_0x35f3d6(0x1e1)][_0x35f3d6(0x1b7)];}[_0x1ef46b(0x188)](_0xa60a16,_0x5e338a){const _0x58a621=_0x1ef46b;this[_0x58a621(0x19e)][_0x58a621(0x179)](),this[_0x58a621(0x200)][_0x58a621(0x179)](),_0xa60a16[_0x58a621(0x193)](_0x224cd1=>{const _0x5e9d5c=_0x58a621;_0x5e338a[_0x5e9d5c(0x1fc)](_0x224cd1)?this[_0x5e9d5c(0x200)][_0x5e9d5c(0x1f8)](_0x224cd1):this[_0x5e9d5c(0x19e)][_0x5e9d5c(0x1f8)](_0x224cd1);});}[_0x1ef46b(0x1c1)](_0x3735b6){const _0x42bd4c=_0x1ef46b;if(_0x3735b6>0x0&&!this[_0x42bd4c(0x1be)]&&this[_0x42bd4c(0x1bf)](),_0x3735b6>0x0&&this[_0x42bd4c(0x1be)]){const _0x15dd5f=''+this[_0x42bd4c(0x1e1)][_0x42bd4c(0x1ec)]+(_0x3735b6<0x63?_0x3735b6:'99');this[_0x42bd4c(0x1be)][_0x42bd4c(0x17d)]=_0x15dd5f;}this[_0x42bd4c(0x198)](),this[_0x42bd4c(0x1f7)](),this[_0x42bd4c(0x203)]();}[_0x1ef46b(0x201)](_0x54cbbc,_0x2a2bc6){const _0x9c97e=_0x1ef46b;this[_0x9c97e(0x188)](_0x54cbbc,_0x2a2bc6),this[_0x9c97e(0x1c1)](_0x2a2bc6[_0x9c97e(0x1db)]);}[_0x1ef46b(0x1d7)](){const _0x36c2e6=_0x1ef46b;this[_0x36c2e6(0x1ab)]&&_0x36c2e6(0x1c4)!=typeof IntersectionObserver&&(this[_0x36c2e6(0x1d1)]=new IntersectionObserver(_0x40e9be=>{const _0x4dc04f=_0x36c2e6;_0x40e9be[0x0][_0x4dc04f(0x18a)]&&this[_0x4dc04f(0x178)]&&requestAnimationFrame(()=>{const _0x3379c3=_0x4dc04f;this[_0x3379c3(0x1fb)]();});},{'threshold':0.01,'rootMargin':_0x36c2e6(0x1bc)}),this[_0x36c2e6(0x1d1)][_0x36c2e6(0x1b5)](this[_0x36c2e6(0x1ab)]));}[_0x1ef46b(0x207)](){const _0x2538ca=_0x1ef46b;if(!this[_0x2538ca(0x1ab)])return!0x1;if(!this[_0x2538ca(0x1ab)][_0x2538ca(0x1f6)])return!0x1;const _0x2726c8=this[_0x2538ca(0x1ab)][_0x2538ca(0x1b0)]();if(0x0===_0x2726c8[_0x2538ca(0x187)]||0x0===_0x2726c8[_0x2538ca(0x1f3)])return!0x1;const _0x1cece6=window[_0x2538ca(0x1a6)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x17c)],_0x5e1121=window[_0x2538ca(0x1d3)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x1f4)],_0x5d127e=0xc8;return _0x2726c8[_0x2538ca(0x1d6)]>=-0xc8&&_0x2726c8[_0x2538ca(0x1aa)]<=_0x1cece6+_0x5d127e&&_0x2726c8[_0x2538ca(0x17a)]>=-0xc8&&_0x2726c8[_0x2538ca(0x209)]<=_0x5e1121+_0x5d127e;}}