@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0-alpha.7

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 (290) 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.d.ts +10 -2
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.js +1 -1
  185. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  186. package/src/aichat/ui/aichatfeedview.js +1 -1
  187. package/src/aichat/ui/aichatheaderview.js +1 -1
  188. package/src/aichat/ui/aichatview.js +1 -1
  189. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichat/utils/scrollmanager.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.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/aireviewmodereviewchecklistview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  284. package/src/aitabs/aitabs.js +1 -1
  285. package/src/aitabs/aitabsmainview.js +1 -1
  286. package/src/aitabs/tabs/aitabsview.js +1 -1
  287. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  288. package/src/aitabs/tabs/tabpanelview.js +1 -1
  289. package/src/errors.js +1 -1
  290. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cd8f1=_0x4457;(function(_0x3583b5,_0x3f90be){const _0x40acf5=_0x4457,_0x314fe1=_0x3583b5();while(!![]){try{const _0x3cb626=-parseInt(_0x40acf5(0xf4))/0x1+-parseInt(_0x40acf5(0x88))/0x2+-parseInt(_0x40acf5(0xde))/0x3*(-parseInt(_0x40acf5(0x81))/0x4)+-parseInt(_0x40acf5(0x69))/0x5+parseInt(_0x40acf5(0xd2))/0x6*(-parseInt(_0x40acf5(0xe4))/0x7)+-parseInt(_0x40acf5(0xec))/0x8*(parseInt(_0x40acf5(0x7a))/0x9)+-parseInt(_0x40acf5(0xb8))/0xa*(-parseInt(_0x40acf5(0x90))/0xb);if(_0x3cb626===_0x3f90be)break;else _0x314fe1['push'](_0x314fe1['shift']());}catch(_0x4ec765){_0x314fe1['push'](_0x314fe1['shift']());}}}(_0x45ce,0x1f716));import{CKEditorError as _0x504809,ObservableMixin as _0x7157c5,uid as _0x233f06}from'ckeditor5/src/utils.js';function _0x4457(_0x16d1c6,_0x4efca2){const _0x45ce75=_0x45ce();return _0x4457=function(_0x445738,_0x48b391){_0x445738=_0x445738-0x67;let _0x1cb513=_0x45ce75[_0x445738];return _0x1cb513;},_0x4457(_0x16d1c6,_0x4efca2);}import{AIContextItemType as _0x1c8aa9,AIContextTextResourceType as _0x3633c0}from'../../aicore/model/aicontext.js';import{escape as _0x977c91}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3cd8f1(0xed),_0x3cd8f1(0xaa),_0x3cd8f1(0x74),_0x3cd8f1(0x83),_0x3cd8f1(0xa3),_0x3cd8f1(0x72),_0x3cd8f1(0xa2),_0x3cd8f1(0xf0),_0x3cd8f1(0x7c)];export class AIChatContext extends _0x7157c5(){[_0x3cd8f1(0x7f)];[_0x3cd8f1(0x77)];[_0x3cd8f1(0xc7)];constructor({connector:_0xe8e6e5,config:_0x1bc18e,ownerId:_0x379fec}){const _0x5d9b9a=_0x3cd8f1;super(),this[_0x5d9b9a(0x7f)]=_0xe8e6e5,this[_0x5d9b9a(0x77)]=_0x1bc18e,this[_0x5d9b9a(0xc7)]=_0x379fec;}[_0x3cd8f1(0xb0)](){const _0x46f699=_0x3cd8f1;this[_0x46f699(0x99)]=new Map(),this[_0x46f699(0x7d)]=new Map(),this[_0x46f699(0x87)]=new Map(),this[_0x46f699(0xd5)]=new Map(),this[_0x46f699(0x67)]();}[_0x3cd8f1(0x71)](){const _0x483c4d=_0x3cd8f1;return this[_0x483c4d(0x99)];}async[_0x3cd8f1(0xf5)](_0x37654d){const _0x5f4947=_0x3cd8f1,_0x17e33f=await this[_0x5f4947(0xab)](_0x37654d);return this[_0x5f4947(0xc8)](_0x17e33f),_0x5f4947(0x95)===_0x17e33f[_0x5f4947(0x92)]&&this[_0x5f4947(0xbc)](),_0x17e33f;}async[_0x3cd8f1(0xab)](_0x1573cb){const _0x1f94ec=_0x3cd8f1;if(_0x1573cb[_0x1f94ec(0x6f)]===_0x1c8aa9[_0x1f94ec(0x9e)]){const _0x5d39df=await this[_0x1f94ec(0x7f)][_0x1f94ec(0xae)](this[_0x1f94ec(0xc7)],_0x1573cb['id'])[_0x1f94ec(0xb3)]();return{'id':_0x1f94ec(0x95),'uiId':_0x1f94ec(0x95),'label':_0x1f94ec(0x79),'type':_0x1573cb[_0x1f94ec(0x6f)],'content':_0x5d39df[_0x1f94ec(0x84)],'hidden':this[_0x1f94ec(0x7d)][_0x1f94ec(0xd0)](_0x1f94ec(0x95)),'version':_0x5d39df[_0x1f94ec(0xa5)]?.[_0x1f94ec(0x80)],'sessionId':_0x5d39df[_0x1f94ec(0xa5)]?.[_0x1f94ec(0xc3)]};}return{'id':_0x1573cb['id'],'uiId':_0x1573cb['id'],'label':_0x1573cb[_0x1f94ec(0xa5)]?.[_0x1f94ec(0x91)]||_0x1573cb[_0x1f94ec(0xac)]||_0x1573cb[_0x1f94ec(0xa9)]||_0x1573cb['id'],'type':_0x1573cb[_0x1f94ec(0x6f)],..._0x1573cb?.[_0x1f94ec(0xa5)]?.[_0x1f94ec(0xb6)]?{'resourceId':_0x1573cb[_0x1f94ec(0xa5)]?.[_0x1f94ec(0xb6)]}:{}};}[_0x3cd8f1(0x8f)](){const _0x279b7f=_0x3cd8f1;return new Map(this[_0x279b7f(0x7d)]);}[_0x3cd8f1(0xd1)](_0x2839f3){const _0x442ef7=_0x3cd8f1,_0x210a7e=this[_0x442ef7(0x99)][_0x442ef7(0x96)](_0x2839f3);_0x210a7e?.[_0x442ef7(0xe2)]||this[_0x442ef7(0xbf)](_0x2839f3);}[_0x3cd8f1(0xe6)](){const _0xc73766=_0x3cd8f1;if(0x0===this[_0xc73766(0x99)][_0xc73766(0x8d)])return;for(const _0x23dfa0 of this[_0xc73766(0x99)][_0xc73766(0xce)]())this[_0xc73766(0xbf)](_0x23dfa0[_0xc73766(0x92)]);const _0x368aaa=this[_0xc73766(0x7d)][_0xc73766(0x96)](_0xc73766(0x95))||this[_0xc73766(0x99)][_0xc73766(0x96)](_0xc73766(0x95));_0x368aaa&&this[_0xc73766(0x9b)]({..._0x368aaa,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3cd8f1(0xb1)](_0x2a2a3a){const _0x1d8615=_0x3cd8f1;for(const _0x3fc49d of _0x2a2a3a[_0x1d8615(0xce)]())this[_0x1d8615(0xc8)](_0x3fc49d);this[_0x1d8615(0xe6)](),this[_0x1d8615(0x68)](_0x1d8615(0x83),{'contextItems':Array[_0x1d8615(0x8a)](this[_0x1d8615(0x8f)]()[_0x1d8615(0xce)]())});}[_0x3cd8f1(0xda)](){const _0xb57724=_0x3cd8f1;return this[_0xb57724(0x99)][_0xb57724(0xd0)](_0xb57724(0x95));}[_0x3cd8f1(0x93)](){const _0x7d1d88=_0x3cd8f1;return this[_0x7d1d88(0x99)][_0x7d1d88(0xd0)](_0x7d1d88(0x6e));}[_0x3cd8f1(0xe3)](){const _0x273fa8=_0x3cd8f1;return this[_0x273fa8(0x7d)][_0x273fa8(0xd0)](_0x273fa8(0x95));}static[_0x3cd8f1(0xdc)](_0x3b4b75){const _0x3158a7=_0x3cd8f1;return Array[_0x3158a7(0x8a)](_0x3b4b75[_0x3158a7(0xce)]())[_0x3158a7(0xb5)](_0xe393a1=>this[_0x3158a7(0x94)](_0xe393a1))[_0x3158a7(0x70)](_0x537374=>null!==_0x537374);}async[_0x3cd8f1(0xe8)](_0x5997c6,_0x1e76c7,_0x29d017=_0x1c8aa9[_0x3cd8f1(0x9d)]){const _0x378fff=_0x3cd8f1,_0x2fc12d=_0x378fff(0x8c)+_0x233f06();this[_0x378fff(0xea)](_0x2fc12d);try{await Promise[_0x378fff(0xc1)](_0x5997c6[_0x378fff(0xb5)](async _0x3d78ed=>{const _0x3d2509=_0x378fff,_0x119c60=_0x3d2509(0x9a)+_0x233f06(),_0x38b7c6=_0x977c91(_0x3d78ed[_0x3d2509(0xac)]);try{this[_0x3d2509(0x9b)]({'type':_0x29d017,'label':_0x1e76c7?.[_0x3d2509(0x91)]||_0x38b7c6,'uiId':_0x119c60,'resourceId':_0x1e76c7?.[_0x3d2509(0xb6)]},!0x0);const _0x17a922=this[_0x3d2509(0x7f)][_0x3d2509(0x7b)](this[_0x3d2509(0xc7)],_0x3d78ed,_0x1e76c7);this[_0x3d2509(0x87)][_0x3d2509(0xe9)](_0x119c60,_0x17a922[_0x3d2509(0xf2)]);const {id:_0x454a6e}=await _0x17a922[_0x3d2509(0xba)]();this[_0x3d2509(0x87)][_0x3d2509(0xdb)](_0x119c60),this[_0x3d2509(0xa8)]({'type':_0x29d017,'id':_0x454a6e,'label':_0x1e76c7?.[_0x3d2509(0x91)]||_0x38b7c6,'uiId':_0x119c60,'resourceId':_0x1e76c7?.[_0x3d2509(0xb6)]},!0x1);}catch(_0x4937f8){this[_0x3d2509(0x87)][_0x3d2509(0xdb)](_0x119c60);if(!_0x4937f8[_0x3d2509(0x85)][_0x3d2509(0xe7)](_0x3d2509(0xaf))){const _0x57ee5e=new _0x504809(_0x3d2509(0x9f),null,{'fileName':_0x38b7c6});_0x57ee5e[_0x3d2509(0xcc)]=_0x4937f8[_0x3d2509(0xcc)],this[_0x3d2509(0x68)](_0x3d2509(0xa3),{'error':_0x57ee5e,'fileName':_0x38b7c6});}this[_0x3d2509(0xbf)](_0x119c60);}}));}finally{this[_0x378fff(0x76)](_0x2fc12d);}}[_0x3cd8f1(0xd8)](_0x52cbfa){const _0x23e0dc=_0x3cd8f1;if(this[_0x23e0dc(0xda)]())return;const _0x979808={'type':_0x1c8aa9[_0x23e0dc(0x9e)],'uiId':_0x23e0dc(0x95),'label':_0x52cbfa,'isReadOnly':this[_0x23e0dc(0x7d)][_0x23e0dc(0xd0)](_0x23e0dc(0x95)),'hidden':this[_0x23e0dc(0x7d)][_0x23e0dc(0xd0)](_0x23e0dc(0x95))};this[_0x23e0dc(0x9b)](_0x979808);}async[_0x3cd8f1(0xe5)](_0x3b88d1,_0x37d607,_0x596c59,_0x35fd07){const _0x2d2177=_0x3cd8f1,_0x36e9f5=this[_0x2d2177(0x99)][_0x2d2177(0x96)](_0x2d2177(0x95));if(_0x36e9f5&&_0x3b88d1){_0x36e9f5[_0x2d2177(0x6e)]=_0x35fd07?_0x35fd07[_0x2d2177(0xb5)](_0x542507=>({'start':_0x542507[_0x2d2177(0xad)],'end':_0x542507[_0x2d2177(0xeb)]})):[];try{if(_0x36e9f5[_0x2d2177(0x80)]===_0x37d607)return;const {id:_0x4b96c2}=await this[_0x2d2177(0x7f)][_0x2d2177(0x97)](this[_0x2d2177(0xc7)],_0x3b88d1,{'version':_0x37d607,'sessionId':_0x596c59})[_0x2d2177(0xba)]();_0x36e9f5['id']=_0x4b96c2,_0x36e9f5[_0x2d2177(0x84)]=_0x3b88d1,_0x36e9f5[_0x2d2177(0x80)]=_0x37d607,_0x36e9f5[_0x2d2177(0xc3)]=_0x596c59;}catch(_0x18aad6){const _0x5cb274=new _0x504809(_0x2d2177(0x6a),null);_0x5cb274[_0x2d2177(0xcc)]=_0x18aad6[_0x2d2177(0xcc)],this[_0x2d2177(0x68)](_0x2d2177(0xa3),{'error':_0x5cb274});}}}[_0x3cd8f1(0xc4)](_0x31581d){const _0x37dec0=_0x3cd8f1;this[_0x37dec0(0x9b)]({'type':_0x1c8aa9[_0x37dec0(0xee)],'label':_0x31581d,'uiId':_0x37dec0(0x6e),'content':_0x31581d});}[_0x3cd8f1(0xa0)](){const _0x5a43a7=_0x3cd8f1;this[_0x5a43a7(0xbf)](_0x5a43a7(0x6e));}async[_0x3cd8f1(0xb4)](_0x274237,_0x2b4093){const _0x40ac98=_0x3cd8f1,_0x5b7e75=_0x40ac98(0x75)+_0x233f06();this[_0x40ac98(0xea)](_0x5b7e75);const _0x5d2db5=_0x40ac98(0x75)+_0x233f06();try{this[_0x40ac98(0x9b)]({'type':_0x1c8aa9[_0x40ac98(0xcd)],'label':_0x2b4093?.[_0x40ac98(0x91)]||_0x274237,'uiId':_0x5d2db5,'resourceId':_0x2b4093?.[_0x40ac98(0xb6)]},!0x0);const _0x3b4656=this[_0x40ac98(0x7f)][_0x40ac98(0x82)](this[_0x40ac98(0xc7)],_0x274237,_0x2b4093);this[_0x40ac98(0x87)][_0x40ac98(0xe9)](_0x5d2db5,_0x3b4656[_0x40ac98(0xf2)]);const {id:_0x22053b}=await _0x3b4656[_0x40ac98(0xba)]();this[_0x40ac98(0x87)][_0x40ac98(0xdb)](_0x5d2db5),this[_0x40ac98(0xa8)]({'type':_0x1c8aa9[_0x40ac98(0xcd)],'id':_0x22053b,'label':_0x2b4093?.[_0x40ac98(0x91)]||_0x274237,'uiId':_0x5d2db5,'resourceId':_0x2b4093?.[_0x40ac98(0xb6)]},!0x1);}catch(_0x27e1b5){this[_0x40ac98(0x87)][_0x40ac98(0xdb)](_0x5d2db5),(_0x27e1b5[_0x40ac98(0x85)][_0x40ac98(0xe7)](_0x40ac98(0xaf))||this[_0x40ac98(0x68)](_0x40ac98(0xa3),{'error':new _0x504809(_0x40ac98(0xca),this,{'url':_0x274237,'originalError':_0x27e1b5}),'url':_0x274237}),this[_0x40ac98(0xbf)](_0x5d2db5));}finally{this[_0x40ac98(0x76)](_0x5b7e75);}}async[_0x3cd8f1(0xbb)](_0x5c111d,_0x129eb9,_0x19fdf9){const _0x42611c=_0x3cd8f1,_0x304c2a=this[_0x42611c(0xef)][_0x42611c(0xb7)][_0x42611c(0xb2)](_0x3dd375=>_0x3dd375['id']===_0x5c111d);if(!_0x304c2a)return this[_0x42611c(0x68)](_0x42611c(0xa3),{'error':new _0x504809(_0x42611c(0xe0),this,{'sourceId':_0x5c111d}),'sourceId':_0x5c111d}),[];try{const _0x29e1c0=(await _0x304c2a[_0x42611c(0xa7)](_0x129eb9))[_0x42611c(0xb5)](_0xb21be8=>{const _0x38876b=_0x42611c,_0x1ffcba=this[_0x38876b(0x9c)](_0xb21be8['id']);return{..._0xb21be8,'isInContext':_0x1ffcba};});return _0x304c2a[_0x42611c(0x98)]=_0x29e1c0,this[_0x42611c(0x68)](_0x42611c(0xa2),{'sourceId':_0x5c111d,'source':_0x304c2a,'resources':_0x29e1c0,'uid':_0x19fdf9}),_0x29e1c0;}catch(_0x1764a9){return this[_0x42611c(0x68)](_0x42611c(0xa3),{'error':new _0x504809(_0x42611c(0xa4),this,{'sourceId':_0x5c111d,'originalError':_0x1764a9}),'sourceId':_0x5c111d,'sourceLabel':_0x304c2a[_0x42611c(0x91)]}),[];}}async[_0x3cd8f1(0xd4)](_0x54afb7,_0x2a0b2a){const _0x415b67=_0x3cd8f1;if(this[_0x415b67(0x9c)](_0x2a0b2a['id']))return;let _0x3d7311=_0x2a0b2a[_0x415b67(0xc0)];if(!_0x3d7311&&_0x54afb7[_0x415b67(0x6c)])try{_0x3d7311=await _0x54afb7[_0x415b67(0x6c)](_0x2a0b2a['id']);}catch(_0x4bd66a){return void this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xbd),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id'],'originalError':_0x4bd66a}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});}if(_0x3d7311)switch(_0x2a0b2a[_0x415b67(0x6f)]){case _0x1c8aa9[_0x415b67(0xcd)]:if(_0x415b67(0xa6)!=typeof _0x3d7311)return void this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xf3),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id'],'expectedType':_0x415b67(0xa6),'actualType':typeof _0x3d7311}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});await this[_0x415b67(0xb4)](_0x3d7311,{'label':_0x2a0b2a[_0x415b67(0x91)],'resourceId':_0x2a0b2a['id']});break;case _0x1c8aa9[_0x415b67(0x9d)]:if(!(_0x3d7311 instanceof File))return void this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xf3),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id'],'expectedType':_0x415b67(0xcb),'actualType':typeof _0x3d7311}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});await this[_0x415b67(0xe8)]([_0x3d7311],{'label':_0x2a0b2a[_0x415b67(0x91)],'resourceId':_0x2a0b2a['id']});break;case _0x1c8aa9[_0x415b67(0xbe)]:if(_0x415b67(0x89)!=typeof _0x3d7311||!(_0x415b67(0x84)in _0x3d7311)||!(_0x415b67(0x6f)in _0x3d7311))return void this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xf3),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id'],'expectedType':_0x415b67(0x73),'actualType':typeof _0x3d7311}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});_0x3d7311=AIChatContext[_0x415b67(0x8b)](_0x3d7311,_0x2a0b2a[_0x415b67(0x91)]),await this[_0x415b67(0xe8)]([_0x3d7311],{'label':_0x2a0b2a[_0x415b67(0x91)],'resourceId':_0x2a0b2a['id']},_0x1c8aa9[_0x415b67(0xbe)]);break;default:this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xd7),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id'],'resourceType':_0x2a0b2a[_0x415b67(0x6f)]}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});}else this[_0x415b67(0x68)](_0x415b67(0xa3),{'error':new _0x504809(_0x415b67(0xf1),this,{'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']}),'resourceId':_0x2a0b2a['id'],'sourceId':_0x54afb7['id']});}static[_0x3cd8f1(0x8b)](_0x10c36a,_0x3c3bbd){const _0x240aa6=_0x3cd8f1;switch(_0x10c36a[_0x240aa6(0x6f)]){case _0x3633c0[_0x240aa6(0x6d)]:return new File([_0x10c36a[_0x240aa6(0x84)]],_0x3c3bbd,{'type':_0x240aa6(0xc2)});case _0x3633c0[_0x240aa6(0xcf)]:return new File([_0x10c36a[_0x240aa6(0x84)]],_0x3c3bbd,{'type':_0x240aa6(0xd3)});default:return new File([_0x10c36a[_0x240aa6(0x84)]],_0x3c3bbd,{'type':_0x240aa6(0x78)});}}static[_0x3cd8f1(0x94)](_0x16ca8f){const _0x302e6f=_0x3cd8f1;switch(_0x16ca8f[_0x302e6f(0x6f)]){case _0x1c8aa9[_0x302e6f(0x9d)]:return{'type':_0x1c8aa9[_0x302e6f(0x9d)],'id':_0x16ca8f['id']};case _0x1c8aa9[_0x302e6f(0xcd)]:return{'type':_0x1c8aa9[_0x302e6f(0xcd)],'id':_0x16ca8f['id']};case _0x1c8aa9[_0x302e6f(0x9e)]:return{'type':_0x1c8aa9[_0x302e6f(0x9e)],'id':_0x16ca8f['id'],..._0x16ca8f[_0x302e6f(0x6e)]?.[_0x302e6f(0xc9)]&&{'selection':_0x16ca8f[_0x302e6f(0x6e)]}};case _0x1c8aa9[_0x302e6f(0xbe)]:return{'type':_0x1c8aa9[_0x302e6f(0x9d)],'id':_0x16ca8f['id']};default:return null;}}[_0x3cd8f1(0x9b)](_0x5a127e,_0x26d908=!0x1){const _0x521e6b=_0x3cd8f1;if(this[_0x521e6b(0x99)][_0x521e6b(0xe9)](_0x5a127e[_0x521e6b(0x92)],_0x5a127e),_0x5a127e[_0x521e6b(0xb9)]||this[_0x521e6b(0x68)](_0x521e6b(0xed),{'contextItem':_0x5a127e,'isLoading':_0x26d908}),_0x521e6b(0x95)===_0x5a127e[_0x521e6b(0x92)]&&this[_0x521e6b(0xbc)](),_0x5a127e[_0x521e6b(0xb6)]){const _0x2c12bf=this[_0x521e6b(0xc6)](_0x5a127e[_0x521e6b(0xb6)]);_0x2c12bf&&_0x2c12bf[_0x521e6b(0xa1)](_0x563844=>{const _0x2e06c8=_0x521e6b;this[_0x2e06c8(0xc5)](_0x563844,_0x5a127e[_0x2e06c8(0xb6)],!0x0);});}}[_0x3cd8f1(0xbf)](_0x2177a2){const _0x26f19b=_0x3cd8f1,_0x36939a=this[_0x26f19b(0x99)][_0x26f19b(0x96)](_0x2177a2),_0x12779c=this[_0x26f19b(0x87)][_0x26f19b(0x96)](_0x2177a2);if(_0x12779c&&(_0x12779c[_0x26f19b(0xd6)](),this[_0x26f19b(0x87)][_0x26f19b(0xdb)](_0x2177a2)),_0x36939a?.[_0x26f19b(0xb6)]){const _0x588231=this[_0x26f19b(0xc6)](_0x36939a[_0x26f19b(0xb6)]);_0x588231&&_0x588231[_0x26f19b(0xa1)](_0x54431b=>{const _0x5779c6=_0x26f19b;this[_0x5779c6(0xc5)](_0x54431b,_0x36939a[_0x5779c6(0xb6)],!0x1);});}this[_0x26f19b(0x99)][_0x26f19b(0xdb)](_0x2177a2),this[_0x26f19b(0x68)](_0x26f19b(0xaa),{'uiId':_0x2177a2,'type':_0x36939a?.[_0x26f19b(0x6f)]}),_0x26f19b(0x95)===_0x2177a2&&this[_0x26f19b(0xbc)]();}[_0x3cd8f1(0xa8)](_0x45ce3d,_0x1b4b15){const _0x1ea254=_0x3cd8f1;if(this[_0x1ea254(0x99)][_0x1ea254(0xd0)](_0x45ce3d[_0x1ea254(0x92)])&&(this[_0x1ea254(0x99)][_0x1ea254(0xe9)](_0x45ce3d[_0x1ea254(0x92)],_0x45ce3d),this[_0x1ea254(0x68)](_0x1ea254(0x74),{'contextItem':_0x45ce3d,'isLoading':_0x1b4b15}),_0x45ce3d[_0x1ea254(0xb6)])){const _0x2e352e=this[_0x1ea254(0xc6)](_0x45ce3d[_0x1ea254(0xb6)]);_0x2e352e&&_0x2e352e[_0x1ea254(0xa1)](_0x366b9e=>{const _0x3c6eec=_0x1ea254;this[_0x3c6eec(0xc5)](_0x366b9e,_0x45ce3d[_0x3c6eec(0xb6)],!0x0);});}}[_0x3cd8f1(0xc8)](_0x2886a7){const _0x3f0f39=_0x3cd8f1;this[_0x3f0f39(0x7d)][_0x3f0f39(0xe9)](_0x2886a7[_0x3f0f39(0x92)],_0x2886a7);}[_0x3cd8f1(0x67)](){const _0x2eabbb=_0x3cd8f1;this[_0x2eabbb(0xef)]={'document':{'enabled':!0x1!==this[_0x2eabbb(0x77)]?.[_0x2eabbb(0x86)]?.[_0x2eabbb(0x6b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2eabbb(0x77)]?.[_0x2eabbb(0xdd)]?.[_0x2eabbb(0x6b)]},'files':{'enabled':!0x1!==this[_0x2eabbb(0x77)]?.[_0x2eabbb(0xd9)]?.[_0x2eabbb(0x6b)]},'sources':this[_0x2eabbb(0x7e)]()},this[_0x2eabbb(0x68)](_0x2eabbb(0x72),{'options':this[_0x2eabbb(0xef)]});}[_0x3cd8f1(0x7e)](){const _0x2edd20=_0x3cd8f1;return this[_0x2edd20(0x77)]?.[_0x2edd20(0xb7)]?.[_0x2edd20(0xb5)](_0x2568b9=>({..._0x2568b9,'resources':[]}))??[];}[_0x3cd8f1(0xbc)](){const _0x5058f7=_0x3cd8f1,_0x334a22=this[_0x5058f7(0xda)]()||this[_0x5058f7(0xe3)]();this[_0x5058f7(0xef)][_0x5058f7(0x86)][_0x5058f7(0x8e)]=_0x334a22,this[_0x5058f7(0x68)](_0x5058f7(0x72),{'options':this[_0x5058f7(0xef)]});}[_0x3cd8f1(0x9c)](_0x4681e1){const _0x103a84=_0x3cd8f1;for(const _0x1c537a of this[_0x103a84(0x99)][_0x103a84(0xce)]())if(_0x1c537a[_0x103a84(0xb6)]===_0x4681e1)return!0x0;for(const _0x303af2 of this[_0x103a84(0x7d)][_0x103a84(0xce)]())if(_0x303af2[_0x103a84(0xb6)]===_0x4681e1)return!0x0;return!0x1;}[_0x3cd8f1(0xc6)](_0x11c6c4){const _0x4e28d7=_0x3cd8f1,_0x2fc9f3=[];for(const _0x5ceb60 of this[_0x4e28d7(0xef)][_0x4e28d7(0xb7)]){_0x5ceb60[_0x4e28d7(0x98)][_0x4e28d7(0xb2)](_0x39fc67=>_0x39fc67['id']===_0x11c6c4)&&_0x2fc9f3[_0x4e28d7(0xdf)](_0x5ceb60['id']);}return 0x0===_0x2fc9f3[_0x4e28d7(0xc9)]?null:_0x2fc9f3;}[_0x3cd8f1(0xc5)](_0x158d3c,_0x1a2da1,_0x4a8a48){const _0xf8497b=_0x3cd8f1,_0x415cda=this[_0xf8497b(0xef)][_0xf8497b(0xb7)][_0xf8497b(0xb2)](_0x327cd6=>_0x327cd6['id']===_0x158d3c);if(!_0x415cda)return;const _0x236953=_0x415cda[_0xf8497b(0x98)][_0xf8497b(0xb2)](_0x57176b=>_0x57176b['id']===_0x1a2da1);_0x236953&&(_0x236953[_0xf8497b(0xe1)]=_0x4a8a48,this[_0xf8497b(0x68)](_0xf8497b(0xf0),{'sourceId':_0x158d3c,'resourceId':_0x1a2da1,'isInContext':_0x4a8a48}));}[_0x3cd8f1(0xea)](_0x1e0bf6){const _0x302092=_0x3cd8f1;this[_0x302092(0xd5)][_0x302092(0xe9)](_0x1e0bf6,!0x0),this[_0x302092(0xd5)][_0x302092(0x8d)]&&this[_0x302092(0x68)](_0x302092(0x7c),{'isUploadInProgress':!0x0});}[_0x3cd8f1(0x76)](_0x323cfb){const _0x5f449a=_0x3cd8f1;this[_0x5f449a(0xd5)][_0x5f449a(0xdb)](_0x323cfb),0x0===this[_0x5f449a(0xd5)][_0x5f449a(0x8d)]&&this[_0x5f449a(0x68)](_0x5f449a(0x7c),{'isUploadInProgress':!0x1});}}function _0x45ce(){const _0x1fca23=['addSelectionToContext','_updateResourceInContextState','_findSourceIdsByResourceId','_ownerId','_addToConversationContextItem','length','ai-chat-url-upload-failed','File','stack','URL','values','HTML','has','removeFromContext','36eMMpTR','text/html','addResourceToContext','_ongoingUploadOperations','abort','ai-chat-context-unsupported-type','addCurrentDocumentToContext','files','isCurrentDocumentInContext','delete','mapContextItemsToRequestData','urls','117627UcALjr','push','ai-chat-source-not-found','isInContext','isReadOnly','isCurrentDocumentInConversation','263501JCZLKR','updateCurrentDocument','clearPendingContextItems','startsWith','addFilesToContext','set','_startUploadOperation','end','8slbBDh','contextItemAdded','SELECTION','_addContextOptionsState','resourceStateChanged','ai-chat-resource-no-data','abortController','ai-chat-context-invalid-data','249954fTAVii','populateFromMessage','_setAddContextOptionsDefaultState','fire','964625lxwQnf','ai-chat-document-upload-failed','enabled','getData','MARKDOWN','selection','type','filter','getPendingContextItems','addContextOptionsChanged','object\x20with\x20content\x20and\x20type\x20properties','contextItemLoadingEnded','url-','_finishUploadOperation','_config','text/plain','Current\x20document','1650843iNThqX','uploadFile','uploadProgressChanged','_conversationContextItems','_getCustomSourcesInitialState','_connector','version','8gmNePo','uploadUrl','contextSent','content','message','document','_ongoingUploads','119604FqfoId','object','from','_convertTextResourceToFile','files-','size','isHidden','getSentContextItems','11jHCxMH','label','uiId','isSelectionInContext','_mapContextItemToRequestData','current-document','get','uploadDocument','resources','_pendingContextItems','file-','_addContextItem','_isResourceInContext','FILE','DOCUMENT','ai-chat-file-upload-failed','removeSelectionFromContext','forEach','sourceResourcesLoaded','error','ai-chat-source-resources-load-failed','attributes','string','getResources','_finishContextItemLoading','url','contextItemRemoved','_createContextItemFromContent','name','start','fetchDocument','ai-request-aborted','init','addToConversationContext','find','getDocument','addUrlToContext','map','resourceId','sources','9623380jXlrer','hidden','getId','loadSourceResources','_toggleAddCurrentDocumentOptionVisibility','ai-chat-resource-load-failed','TEXT','_removeContextItem','data','all','text/markdown','sessionId'];_0x45ce=function(){return _0x1fca23;};return _0x45ce();}
23
+ const _0x271efb=_0x3369;(function(_0x290c70,_0x149317){const _0x451d6a=_0x3369,_0x437152=_0x290c70();while(!![]){try{const _0x31ae62=-parseInt(_0x451d6a(0xf8))/0x1*(-parseInt(_0x451d6a(0xee))/0x2)+-parseInt(_0x451d6a(0xd5))/0x3*(-parseInt(_0x451d6a(0xdc))/0x4)+-parseInt(_0x451d6a(0x11b))/0x5+parseInt(_0x451d6a(0xd8))/0x6*(parseInt(_0x451d6a(0xc3))/0x7)+parseInt(_0x451d6a(0xc1))/0x8*(-parseInt(_0x451d6a(0x10a))/0x9)+-parseInt(_0x451d6a(0xb4))/0xa*(-parseInt(_0x451d6a(0xb1))/0xb)+-parseInt(_0x451d6a(0xb8))/0xc*(parseInt(_0x451d6a(0xd0))/0xd);if(_0x31ae62===_0x149317)break;else _0x437152['push'](_0x437152['shift']());}catch(_0x2066e7){_0x437152['push'](_0x437152['shift']());}}}(_0x4893,0x61659));function _0x4893(){const _0x10e81a=['ai-chat-url-upload-failed','selection','uploadFile','getId','length','getData','isSelectionInContext','getResources','ai-chat-context-invalid-data','size','isHidden','string','forEach','File','end','getPendingContextItems','type','ai-chat-resource-no-data','MARKDOWN','files-','_setAddContextOptionsDefaultState','_ownerId','fetchDocument','_toggleAddCurrentDocumentOptionVisibility','data','_ongoingUploadOperations','_addContextOptionsState','enabled','_ongoingUploads','FILE','_conversationContextItems','clearPendingContextItems','11UaFGsq','addFilesToContext','map','3076870ndhKGt','contextItemAdded','Current\x20document','message','12cptrvR','addResourceToContext','resourceId','HTML','URL','addToConversationContext','_removeContextItem','abortController','ai-chat-file-upload-failed','1156232pAZYlW','populateFromMessage','38297fPYilk','content','urls','hidden','abort','init','uploadUrl','mapContextItemsToRequestData','isCurrentDocumentInContext','resources','document','_createContextItemFromContent','_convertTextResourceToFile','6664164ycUpmk','resourceStateChanged','_mapContextItemToRequestData','TEXT','DOCUMENT','651933OBjsBK','sessionId','updateCurrentDocument','642gjEfPi','_addContextItem','filter','_isResourceInContext','12JCHhHK','uploadProgressChanged','get','fire','_startUploadOperation','ai-chat-document-upload-failed','object','_finishContextItemLoading','attributes','url','_updateResourceInContextState','ai-chat-source-not-found','file-','uiId','_getCustomSourcesInitialState','find','stack','_finishUploadOperation','230JSIDLc','getDocument','sources','push','uploadDocument','removeFromContext','version','_connector','isReadOnly','text/plain','1693gBenyY','from','contextItemRemoved','ai-request-aborted','sourceResourcesLoaded','contextSent','error','start','_pendingContextItems','addContextOptionsChanged','addUrlToContext','addCurrentDocumentToContext','isCurrentDocumentInConversation','has','_addToConversationContextItem','SELECTION','_findSourceIdsByResourceId','all','36iBFvMN','ai-chat-resource-load-failed','delete','files','ai-chat-context-unsupported-type','set','values','getSentContextItems','text/markdown','isInContext','loadSourceResources','_config','label','url-','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','current-document','1250155WGxekG','startsWith','text/html','name','addSelectionToContext','removeSelectionFromContext','ai-chat-source-resources-load-failed'];_0x4893=function(){return _0x10e81a;};return _0x4893();}function _0x3369(_0x30403f,_0x58ee1d){const _0x489334=_0x4893();return _0x3369=function(_0x336994,_0x45f3ae){_0x336994=_0x336994-0xaf;let _0x26e242=_0x489334[_0x336994];return _0x26e242;},_0x3369(_0x30403f,_0x58ee1d);}import{CKEditorError as _0x15d81b,ObservableMixin as _0x13cac4,uid as _0x5c57c1}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x15f526,AIContextTextResourceType as _0x566476}from'../../aicore/model/aicontext.js';import{escape as _0x3bdac7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x271efb(0xb5),_0x271efb(0xfa),_0x271efb(0x118),_0x271efb(0xfd),_0x271efb(0xfe),_0x271efb(0x101),_0x271efb(0xfc),_0x271efb(0xd1),_0x271efb(0xdd)];export class AIChatContext extends _0x13cac4(){[_0x271efb(0xf5)];[_0x271efb(0x115)];[_0x271efb(0x137)];constructor({connector:_0x2c5fb1,config:_0x14965b,ownerId:_0x4539d4}){const _0x45ca73=_0x271efb;super(),this[_0x45ca73(0xf5)]=_0x2c5fb1,this[_0x45ca73(0x115)]=_0x14965b,this[_0x45ca73(0x137)]=_0x4539d4;}[_0x271efb(0xc8)](){const _0xacf21f=_0x271efb;this[_0xacf21f(0x100)]=new Map(),this[_0xacf21f(0xaf)]=new Map(),this[_0xacf21f(0x13e)]=new Map(),this[_0xacf21f(0x13b)]=new Map(),this[_0xacf21f(0x136)]();}[_0x271efb(0x131)](){const _0xcef379=_0x271efb;return this[_0xcef379(0x100)];}async[_0x271efb(0xc2)](_0xd79b1d){const _0x281451=_0x271efb,_0x3566b2=await this[_0x281451(0xce)](_0xd79b1d);return this[_0x281451(0x106)](_0x3566b2),_0x281451(0x11a)===_0x3566b2[_0x281451(0xe9)]&&this[_0x281451(0x139)](),_0x3566b2;}async[_0x271efb(0xce)](_0x4cc012){const _0x2a42b7=_0x271efb;if(_0x4cc012[_0x2a42b7(0x132)]===_0x15f526[_0x2a42b7(0xd4)]){const _0x624b19=await this[_0x2a42b7(0xf5)][_0x2a42b7(0x138)](this[_0x2a42b7(0x137)],_0x4cc012['id'])[_0x2a42b7(0xef)]();return{'id':_0x2a42b7(0x11a),'uiId':_0x2a42b7(0x11a),'label':_0x2a42b7(0xb6),'type':_0x4cc012[_0x2a42b7(0x132)],'content':_0x624b19[_0x2a42b7(0xc4)],'hidden':this[_0x2a42b7(0xaf)][_0x2a42b7(0x105)](_0x2a42b7(0x11a)),'version':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xf4)],'sessionId':_0x624b19[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xd6)]};}return{'id':_0x4cc012['id'],'uiId':_0x4cc012['id'],'label':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0x116)]||_0x4cc012[_0x2a42b7(0x11e)]||_0x4cc012[_0x2a42b7(0xe5)]||_0x4cc012['id'],'type':_0x4cc012[_0x2a42b7(0x132)],..._0x4cc012?.[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]?{'resourceId':_0x4cc012[_0x2a42b7(0xe4)]?.[_0x2a42b7(0xba)]}:{}};}[_0x271efb(0x111)](){const _0xba5ca9=_0x271efb;return new Map(this[_0xba5ca9(0xaf)]);}[_0x271efb(0xf3)](_0x3e0e3e){const _0x51a22f=_0x271efb,_0x278d33=this[_0x51a22f(0x100)][_0x51a22f(0xde)](_0x3e0e3e);_0x278d33?.[_0x51a22f(0xf6)]||this[_0x51a22f(0xbe)](_0x3e0e3e);}[_0x271efb(0xb0)](){const _0x3388c9=_0x271efb;if(0x0===this[_0x3388c9(0x100)][_0x3388c9(0x12b)])return;for(const _0x5f4a9b of this[_0x3388c9(0x100)][_0x3388c9(0x110)]())this[_0x3388c9(0xbe)](_0x5f4a9b[_0x3388c9(0xe9)]);const _0x2470d8=this[_0x3388c9(0xaf)][_0x3388c9(0xde)](_0x3388c9(0x11a))||this[_0x3388c9(0x100)][_0x3388c9(0xde)](_0x3388c9(0x11a));_0x2470d8&&this[_0x3388c9(0xd9)]({..._0x2470d8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x271efb(0xbd)](_0x2d4da5){const _0x3151e7=_0x271efb;for(const _0xecb01 of _0x2d4da5[_0x3151e7(0x110)]())this[_0x3151e7(0x106)](_0xecb01);this[_0x3151e7(0xb0)](),this[_0x3151e7(0xdf)](_0x3151e7(0xfd),{'contextItems':Array[_0x3151e7(0xf9)](this[_0x3151e7(0x111)]()[_0x3151e7(0x110)]())});}[_0x271efb(0xcb)](){const _0x26923c=_0x271efb;return this[_0x26923c(0x100)][_0x26923c(0x105)](_0x26923c(0x11a));}[_0x271efb(0x128)](){const _0x325dc5=_0x271efb;return this[_0x325dc5(0x100)][_0x325dc5(0x105)](_0x325dc5(0x123));}[_0x271efb(0x104)](){const _0x19390e=_0x271efb;return this[_0x19390e(0xaf)][_0x19390e(0x105)](_0x19390e(0x11a));}static[_0x271efb(0xca)](_0x52a1ae){const _0x588719=_0x271efb;return Array[_0x588719(0xf9)](_0x52a1ae[_0x588719(0x110)]())[_0x588719(0xb3)](_0x5b6c36=>this[_0x588719(0xd2)](_0x5b6c36))[_0x588719(0xda)](_0x19b3f9=>null!==_0x19b3f9);}async[_0x271efb(0xb2)](_0x223c08,_0x439d4b,_0x306149=_0x15f526[_0x271efb(0x13f)]){const _0x1a5642=_0x271efb,_0x1a4561=_0x1a5642(0x135)+_0x5c57c1();this[_0x1a5642(0xe0)](_0x1a4561);try{await Promise[_0x1a5642(0x109)](_0x223c08[_0x1a5642(0xb3)](async _0x492eda=>{const _0x1c59f8=_0x1a5642,_0x11af76=_0x1c59f8(0xe8)+_0x5c57c1(),_0x26cac6=_0x3bdac7(_0x492eda[_0x1c59f8(0x11e)]);try{this[_0x1c59f8(0xd9)]({'type':_0x306149,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x0);const _0x49ec97=this[_0x1c59f8(0xf5)][_0x1c59f8(0x124)](this[_0x1c59f8(0x137)],_0x492eda,_0x439d4b);this[_0x1c59f8(0x13e)][_0x1c59f8(0x10f)](_0x11af76,_0x49ec97[_0x1c59f8(0xbf)]);const {id:_0x1eb148}=await _0x49ec97[_0x1c59f8(0x125)]();this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76),this[_0x1c59f8(0xe3)]({'type':_0x306149,'id':_0x1eb148,'label':_0x439d4b?.[_0x1c59f8(0x116)]||_0x26cac6,'uiId':_0x11af76,'resourceId':_0x439d4b?.[_0x1c59f8(0xba)]},!0x1);}catch(_0x4f2b77){this[_0x1c59f8(0x13e)][_0x1c59f8(0x10c)](_0x11af76);if(!_0x4f2b77[_0x1c59f8(0xb7)][_0x1c59f8(0x11c)](_0x1c59f8(0xfb))){const _0x508bea=new _0x15d81b(_0x1c59f8(0xc0),null,{'fileName':_0x26cac6});_0x508bea[_0x1c59f8(0xec)]=_0x4f2b77[_0x1c59f8(0xec)],this[_0x1c59f8(0xdf)](_0x1c59f8(0xfe),{'error':_0x508bea,'fileName':_0x26cac6});}this[_0x1c59f8(0xbe)](_0x11af76);}}));}finally{this[_0x1a5642(0xed)](_0x1a4561);}}[_0x271efb(0x103)](_0x1d0418){const _0x44004d=_0x271efb;if(this[_0x44004d(0xcb)]())return;const _0x2ec486={'type':_0x15f526[_0x44004d(0xd4)],'uiId':_0x44004d(0x11a),'label':_0x1d0418,'isReadOnly':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a)),'hidden':this[_0x44004d(0xaf)][_0x44004d(0x105)](_0x44004d(0x11a))};this[_0x44004d(0xd9)](_0x2ec486);}async[_0x271efb(0xd7)](_0x5dde5e,_0x3e9816,_0x226c9b,_0xb0c700){const _0x1e7a96=_0x271efb,_0x2f5677=this[_0x1e7a96(0x100)][_0x1e7a96(0xde)](_0x1e7a96(0x11a));if(_0x2f5677&&_0x5dde5e){_0x2f5677[_0x1e7a96(0x123)]=_0xb0c700?_0xb0c700[_0x1e7a96(0xb3)](_0x31c0cf=>({'start':_0x31c0cf[_0x1e7a96(0xff)],'end':_0x31c0cf[_0x1e7a96(0x130)]})):[];try{if(_0x2f5677[_0x1e7a96(0xf4)]===_0x3e9816)return;const {id:_0xa04804}=await this[_0x1e7a96(0xf5)][_0x1e7a96(0xf2)](this[_0x1e7a96(0x137)],_0x5dde5e,{'version':_0x3e9816,'sessionId':_0x226c9b})[_0x1e7a96(0x125)]();_0x2f5677['id']=_0xa04804,_0x2f5677[_0x1e7a96(0xc4)]=_0x5dde5e,_0x2f5677[_0x1e7a96(0xf4)]=_0x3e9816,_0x2f5677[_0x1e7a96(0xd6)]=_0x226c9b;}catch(_0x1927b2){const _0x3cc330=new _0x15d81b(_0x1e7a96(0xe1),null);_0x3cc330[_0x1e7a96(0xec)]=_0x1927b2[_0x1e7a96(0xec)],this[_0x1e7a96(0xdf)](_0x1e7a96(0xfe),{'error':_0x3cc330});}}}[_0x271efb(0x11f)](_0x51a704){const _0x368578=_0x271efb;this[_0x368578(0xd9)]({'type':_0x15f526[_0x368578(0x107)],'label':_0x51a704,'uiId':_0x368578(0x123),'content':_0x51a704});}[_0x271efb(0x120)](){const _0x2b3492=_0x271efb;this[_0x2b3492(0xbe)](_0x2b3492(0x123));}async[_0x271efb(0x102)](_0x58e557,_0x27016f){const _0x11298c=_0x271efb,_0x4604ce=_0x11298c(0x117)+_0x5c57c1();this[_0x11298c(0xe0)](_0x4604ce);const _0x184f81=_0x11298c(0x117)+_0x5c57c1();try{this[_0x11298c(0xd9)]({'type':_0x15f526[_0x11298c(0xbc)],'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x0);const _0x19567a=this[_0x11298c(0xf5)][_0x11298c(0xc9)](this[_0x11298c(0x137)],_0x58e557,_0x27016f);this[_0x11298c(0x13e)][_0x11298c(0x10f)](_0x184f81,_0x19567a[_0x11298c(0xbf)]);const {id:_0xe5a2ff}=await _0x19567a[_0x11298c(0x125)]();this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),this[_0x11298c(0xe3)]({'type':_0x15f526[_0x11298c(0xbc)],'id':_0xe5a2ff,'label':_0x27016f?.[_0x11298c(0x116)]||_0x58e557,'uiId':_0x184f81,'resourceId':_0x27016f?.[_0x11298c(0xba)]},!0x1);}catch(_0x2ae12d){this[_0x11298c(0x13e)][_0x11298c(0x10c)](_0x184f81),(_0x2ae12d[_0x11298c(0xb7)][_0x11298c(0x11c)](_0x11298c(0xfb))||this[_0x11298c(0xdf)](_0x11298c(0xfe),{'error':new _0x15d81b(_0x11298c(0x122),this,{'url':_0x58e557,'originalError':_0x2ae12d}),'url':_0x58e557}),this[_0x11298c(0xbe)](_0x184f81));}finally{this[_0x11298c(0xed)](_0x4604ce);}}async[_0x271efb(0x114)](_0x7ed02f,_0x379aa1,_0x22e5b){const _0x63f8eb=_0x271efb,_0xc20965=this[_0x63f8eb(0x13c)][_0x63f8eb(0xf0)][_0x63f8eb(0xeb)](_0x574203=>_0x574203['id']===_0x7ed02f);if(!_0xc20965)return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0xe7),this,{'sourceId':_0x7ed02f}),'sourceId':_0x7ed02f}),[];try{const _0x11238c=(await _0xc20965[_0x63f8eb(0x129)](_0x379aa1))[_0x63f8eb(0xb3)](_0xa82321=>{const _0x52a787=_0x63f8eb,_0x2f3840=this[_0x52a787(0xdb)](_0xa82321['id']);return{..._0xa82321,'isInContext':_0x2f3840};});return _0xc20965[_0x63f8eb(0xcc)]=_0x11238c,this[_0x63f8eb(0xdf)](_0x63f8eb(0xfc),{'sourceId':_0x7ed02f,'source':_0xc20965,'resources':_0x11238c,'uid':_0x22e5b}),_0x11238c;}catch(_0x1ec224){return this[_0x63f8eb(0xdf)](_0x63f8eb(0xfe),{'error':new _0x15d81b(_0x63f8eb(0x121),this,{'sourceId':_0x7ed02f,'originalError':_0x1ec224}),'sourceId':_0x7ed02f,'sourceLabel':_0xc20965[_0x63f8eb(0x116)]}),[];}}async[_0x271efb(0xb9)](_0x3d624b,_0x58ca0c){const _0x477de9=_0x271efb;if(this[_0x477de9(0xdb)](_0x58ca0c['id']))return;let _0x3d4051=_0x58ca0c[_0x477de9(0x13a)];if(!_0x3d4051&&_0x3d624b[_0x477de9(0x127)])try{_0x3d4051=await _0x3d624b[_0x477de9(0x127)](_0x58ca0c['id']);}catch(_0x51ec10){return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10b),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'originalError':_0x51ec10}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}if(_0x3d4051)switch(_0x58ca0c[_0x477de9(0x132)]){case _0x15f526[_0x477de9(0xbc)]:if(_0x477de9(0x12d)!=typeof _0x3d4051)return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12d),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0x102)](_0x3d4051,{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0x13f)]:if(!(_0x3d4051 instanceof File))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x12f),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']});break;case _0x15f526[_0x477de9(0xd3)]:if(_0x477de9(0xe2)!=typeof _0x3d4051||!(_0x477de9(0xc4)in _0x3d4051)||!(_0x477de9(0x132)in _0x3d4051))return void this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x12a),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'expectedType':_0x477de9(0x119),'actualType':typeof _0x3d4051}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});_0x3d4051=AIChatContext[_0x477de9(0xcf)](_0x3d4051,_0x58ca0c[_0x477de9(0x116)]),await this[_0x477de9(0xb2)]([_0x3d4051],{'label':_0x58ca0c[_0x477de9(0x116)],'resourceId':_0x58ca0c['id']},_0x15f526[_0x477de9(0xd3)]);break;default:this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x10e),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id'],'resourceType':_0x58ca0c[_0x477de9(0x132)]}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}else this[_0x477de9(0xdf)](_0x477de9(0xfe),{'error':new _0x15d81b(_0x477de9(0x133),this,{'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']}),'resourceId':_0x58ca0c['id'],'sourceId':_0x3d624b['id']});}static[_0x271efb(0xcf)](_0x121e1c,_0xfe25bb){const _0x4c92c2=_0x271efb;switch(_0x121e1c[_0x4c92c2(0x132)]){case _0x566476[_0x4c92c2(0x134)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x112)});case _0x566476[_0x4c92c2(0xbb)]:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0x11d)});default:return new File([_0x121e1c[_0x4c92c2(0xc4)]],_0xfe25bb,{'type':_0x4c92c2(0xf7)});}}static[_0x271efb(0xd2)](_0x3d5cb8){const _0x1062c6=_0x271efb;switch(_0x3d5cb8[_0x1062c6(0x132)]){case _0x15f526[_0x1062c6(0x13f)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xbc)]:return{'type':_0x15f526[_0x1062c6(0xbc)],'id':_0x3d5cb8['id']};case _0x15f526[_0x1062c6(0xd4)]:return{'type':_0x15f526[_0x1062c6(0xd4)],'id':_0x3d5cb8['id'],..._0x3d5cb8[_0x1062c6(0x123)]?.[_0x1062c6(0x126)]&&{'selection':_0x3d5cb8[_0x1062c6(0x123)]}};case _0x15f526[_0x1062c6(0xd3)]:return{'type':_0x15f526[_0x1062c6(0x13f)],'id':_0x3d5cb8['id']};default:return null;}}[_0x271efb(0xd9)](_0x73a7a,_0x4308f2=!0x1){const _0xc4df98=_0x271efb;if(this[_0xc4df98(0x100)][_0xc4df98(0x10f)](_0x73a7a[_0xc4df98(0xe9)],_0x73a7a),_0x73a7a[_0xc4df98(0xc6)]||this[_0xc4df98(0xdf)](_0xc4df98(0xb5),{'contextItem':_0x73a7a,'isLoading':_0x4308f2}),_0xc4df98(0x11a)===_0x73a7a[_0xc4df98(0xe9)]&&this[_0xc4df98(0x139)](),_0x73a7a[_0xc4df98(0xba)]){const _0x330047=this[_0xc4df98(0x108)](_0x73a7a[_0xc4df98(0xba)]);_0x330047&&_0x330047[_0xc4df98(0x12e)](_0xf3c0ad=>{const _0x20994e=_0xc4df98;this[_0x20994e(0xe6)](_0xf3c0ad,_0x73a7a[_0x20994e(0xba)],!0x0);});}}[_0x271efb(0xbe)](_0x6a3026){const _0x5d88c1=_0x271efb,_0xc9683b=this[_0x5d88c1(0x100)][_0x5d88c1(0xde)](_0x6a3026),_0xc7a036=this[_0x5d88c1(0x13e)][_0x5d88c1(0xde)](_0x6a3026);if(_0xc7a036&&(_0xc7a036[_0x5d88c1(0xc7)](),this[_0x5d88c1(0x13e)][_0x5d88c1(0x10c)](_0x6a3026)),_0xc9683b?.[_0x5d88c1(0xba)]){const _0x3f70fb=this[_0x5d88c1(0x108)](_0xc9683b[_0x5d88c1(0xba)]);_0x3f70fb&&_0x3f70fb[_0x5d88c1(0x12e)](_0xda8fc5=>{const _0x3489d5=_0x5d88c1;this[_0x3489d5(0xe6)](_0xda8fc5,_0xc9683b[_0x3489d5(0xba)],!0x1);});}this[_0x5d88c1(0x100)][_0x5d88c1(0x10c)](_0x6a3026),this[_0x5d88c1(0xdf)](_0x5d88c1(0xfa),{'uiId':_0x6a3026,'type':_0xc9683b?.[_0x5d88c1(0x132)]}),_0x5d88c1(0x11a)===_0x6a3026&&this[_0x5d88c1(0x139)]();}[_0x271efb(0xe3)](_0x5c20cf,_0xbdc7a3){const _0x3bd718=_0x271efb;if(this[_0x3bd718(0x100)][_0x3bd718(0x105)](_0x5c20cf[_0x3bd718(0xe9)])&&(this[_0x3bd718(0x100)][_0x3bd718(0x10f)](_0x5c20cf[_0x3bd718(0xe9)],_0x5c20cf),this[_0x3bd718(0xdf)](_0x3bd718(0x118),{'contextItem':_0x5c20cf,'isLoading':_0xbdc7a3}),_0x5c20cf[_0x3bd718(0xba)])){const _0xd1af6d=this[_0x3bd718(0x108)](_0x5c20cf[_0x3bd718(0xba)]);_0xd1af6d&&_0xd1af6d[_0x3bd718(0x12e)](_0x18c880=>{const _0x450bf8=_0x3bd718;this[_0x450bf8(0xe6)](_0x18c880,_0x5c20cf[_0x450bf8(0xba)],!0x0);});}}[_0x271efb(0x106)](_0x3d3175){const _0x1b4649=_0x271efb;this[_0x1b4649(0xaf)][_0x1b4649(0x10f)](_0x3d3175[_0x1b4649(0xe9)],_0x3d3175);}[_0x271efb(0x136)](){const _0x2e39ab=_0x271efb;this[_0x2e39ab(0x13c)]={'document':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xcd)]?.[_0x2e39ab(0x13d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0xc5)]?.[_0x2e39ab(0x13d)]},'files':{'enabled':!0x1!==this[_0x2e39ab(0x115)]?.[_0x2e39ab(0x10d)]?.[_0x2e39ab(0x13d)]},'sources':this[_0x2e39ab(0xea)]()},this[_0x2e39ab(0xdf)](_0x2e39ab(0x101),{'options':this[_0x2e39ab(0x13c)]});}[_0x271efb(0xea)](){const _0x434091=_0x271efb;return this[_0x434091(0x115)]?.[_0x434091(0xf0)]?.[_0x434091(0xb3)](_0x3b3a8f=>({..._0x3b3a8f,'resources':[]}))??[];}[_0x271efb(0x139)](){const _0x1c4e60=_0x271efb,_0x1f21c1=this[_0x1c4e60(0xcb)]()||this[_0x1c4e60(0x104)]();this[_0x1c4e60(0x13c)][_0x1c4e60(0xcd)][_0x1c4e60(0x12c)]=_0x1f21c1,this[_0x1c4e60(0xdf)](_0x1c4e60(0x101),{'options':this[_0x1c4e60(0x13c)]});}[_0x271efb(0xdb)](_0xb0839b){const _0x55f606=_0x271efb;for(const _0x21974b of this[_0x55f606(0x100)][_0x55f606(0x110)]())if(_0x21974b[_0x55f606(0xba)]===_0xb0839b)return!0x0;for(const _0x3097c4 of this[_0x55f606(0xaf)][_0x55f606(0x110)]())if(_0x3097c4[_0x55f606(0xba)]===_0xb0839b)return!0x0;return!0x1;}[_0x271efb(0x108)](_0x593a4b){const _0x3aab44=_0x271efb,_0x526b16=[];for(const _0x6e2596 of this[_0x3aab44(0x13c)][_0x3aab44(0xf0)]){_0x6e2596[_0x3aab44(0xcc)][_0x3aab44(0xeb)](_0x19367a=>_0x19367a['id']===_0x593a4b)&&_0x526b16[_0x3aab44(0xf1)](_0x6e2596['id']);}return 0x0===_0x526b16[_0x3aab44(0x126)]?null:_0x526b16;}[_0x271efb(0xe6)](_0x3bcfe2,_0x276e9b,_0x555f0e){const _0x242721=_0x271efb,_0x25e095=this[_0x242721(0x13c)][_0x242721(0xf0)][_0x242721(0xeb)](_0x1ea521=>_0x1ea521['id']===_0x3bcfe2);if(!_0x25e095)return;const _0x170b73=_0x25e095[_0x242721(0xcc)][_0x242721(0xeb)](_0x10e162=>_0x10e162['id']===_0x276e9b);_0x170b73&&(_0x170b73[_0x242721(0x113)]=_0x555f0e,this[_0x242721(0xdf)](_0x242721(0xd1),{'sourceId':_0x3bcfe2,'resourceId':_0x276e9b,'isInContext':_0x555f0e}));}[_0x271efb(0xe0)](_0x2a0738){const _0x3b5546=_0x271efb;this[_0x3b5546(0x13b)][_0x3b5546(0x10f)](_0x2a0738,!0x0),this[_0x3b5546(0x13b)][_0x3b5546(0x12b)]&&this[_0x3b5546(0xdf)](_0x3b5546(0xdd),{'isUploadInProgress':!0x0});}[_0x271efb(0xed)](_0x387ec8){const _0x56fece=_0x271efb;this[_0x56fece(0x13b)][_0x56fece(0x10c)](_0x387ec8),0x0===this[_0x56fece(0x13b)][_0x56fece(0x12b)]&&this[_0x56fece(0xdf)](_0x56fece(0xdd),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59de(_0xb459d2,_0x23257b){const _0x206b55=_0x206b();return _0x59de=function(_0x59def9,_0x52520c){_0x59def9=_0x59def9-0x175;let _0x246d9a=_0x206b55[_0x59def9];return _0x246d9a;},_0x59de(_0xb459d2,_0x23257b);}const _0xadbcab=_0x59de;(function(_0x1d37ca,_0x3bccb5){const _0x5e457e=_0x59de,_0x3bf592=_0x1d37ca();while(!![]){try{const _0x39c244=-parseInt(_0x5e457e(0x1b5))/0x1*(parseInt(_0x5e457e(0x1e6))/0x2)+-parseInt(_0x5e457e(0x1dd))/0x3*(-parseInt(_0x5e457e(0x1c3))/0x4)+-parseInt(_0x5e457e(0x184))/0x5+parseInt(_0x5e457e(0x1a1))/0x6*(-parseInt(_0x5e457e(0x191))/0x7)+-parseInt(_0x5e457e(0x1df))/0x8+-parseInt(_0x5e457e(0x1ad))/0x9+-parseInt(_0x5e457e(0x185))/0xa*(-parseInt(_0x5e457e(0x1d9))/0xb);if(_0x39c244===_0x3bccb5)break;else _0x3bf592['push'](_0x3bf592['shift']());}catch(_0x453728){_0x3bf592['push'](_0x3bf592['shift']());}}}(_0x206b,0xa3da9));import{CKEditorError as _0x13d9eb,EmitterMixin as _0x1b6b06,logWarning as _0x33d6f1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x235ab1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1cb0d6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x7dd368}from'./aichatcontext.js';function _0x206b(){const _0x12ef2b=['540565AHBvWT','5021710ojIocv','toggleReasoning','reasoning','setConversationTitle','reset','selectedModelId','interactions','toggleWebSearch','stack','createReply','addSelectionToContext','delegate','42pcIzzW','createInteraction','indexOf','chatCapabilities','options','ai-chat-conversation-start-failed','getDocumentContext','startConversation','error','isCurrentDocumentInContext','start','appendContent','currentReply','getCapabilitiesConfig','addToConversationContext','sessionId','501828GXAlnT','removeSelectionFromContext','stop','updateCurrentDocument','modification-delta','find','message','webSearch','getInteraction','ai-chat-handle-user-conversation-not-initialized','getPendingContextItems','push','8621604wQKwQL','ai-chat-conversation-already-started','init','quickActionData','getAll','fire','set','isCurrentDocumentInConversation','204jIjYeV','fetchConversationMessages','selectedModel','ai-chat-conversation-set-model-null','ai-chat-conversation-init-from-id-failed','text','isStarted','addCurrentDocumentToContext','populateFromMessage','addFilesToContext','content','prompt','isSelectionInContext','role','266168ZPQBhK','ai-chat-conversation-start-no-model-selected','loadSourceResources','setModel','getMessages','_processMessagesToInteractions','removeFromContext','getConversation','load','user','modelSelected','lastInteraction','chatContext','conversationInitialized','conversationStarted','interactionCreated','connector','getEditor','group','_extractContextItems','conversationId','ai-chat-conversation-set-model-not-available','44NzdnSE','text-delta','handleUserInteraction','type','39yxFMpz','destroy','2290048dXoGGK','hasOwn','title','getCurrentDocumentContext','getModel','attributes','getAvailableModels','3416lxAkpd','length','capabilities','ai-chat-conversation-init-failed','ai-chat-handle-user-interaction-already-in-progress','addUrlToContext','isAvailable','splice','toLowerCase','updateCurrentDocumentInContext','currentInteraction','contextItems','addResourceToContext','fetchConversation','assistant','removeInteraction','chatModels','model'];_0x206b=function(){return _0x12ef2b;};return _0x206b();}import{AICapabilities as _0x491def,CAPABILITIES_MODEL_EVENT_NAMES as _0x6b6e66}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4c5c42}from'./aichatinteraction.js';export class AIChatConversation extends _0x1b6b06(){['id'];[_0xadbcab(0x1bb)]=!0x1;[_0xadbcab(0x18b)]=[];[_0xadbcab(0x17c)];[_0xadbcab(0x1b7)];[_0xadbcab(0x1d3)];[_0xadbcab(0x195)];constructor(_0x566711){const _0x40b620=_0xadbcab;super(),this[_0x40b620(0x195)]=_0x566711,this[_0x40b620(0x1d3)]=_0x566711[_0x40b620(0x1d3)],this[_0x40b620(0x182)]=_0x566711[_0x40b620(0x182)],this['id']=_0x566711[_0x40b620(0x1d7)];}async[_0xadbcab(0x1af)](_0x1925bc){const _0x4b4c58=_0xadbcab;try{this[_0x4b4c58(0x1cf)]=new _0x1cb0d6({'connector':this[_0x4b4c58(0x1d3)],'config':_0x1925bc,'ownerId':this['id']}),this[_0x4b4c58(0x1cf)][_0x4b4c58(0x190)](..._0x7dd368)['to'](this),this[_0x4b4c58(0x1cf)][_0x4b4c58(0x1af)](),this[_0x4b4c58(0x194)]=new _0x491def(),this[_0x4b4c58(0x194)][_0x4b4c58(0x190)](..._0x6b6e66)['to'](this),this[_0x4b4c58(0x194)][_0x4b4c58(0x1af)]();const _0x3f5e13=await this[_0x4b4c58(0x182)][_0x4b4c58(0x1e5)]();this[_0x4b4c58(0x1b2)](_0x4b4c58(0x1d0),{'availableModels':_0x3f5e13});const _0x195748=await this[_0x4b4c58(0x182)][_0x4b4c58(0x1e3)](this[_0x4b4c58(0x195)][_0x4b4c58(0x18a)]);_0x195748&&await this[_0x4b4c58(0x1c6)](_0x195748);}catch(_0x391232){const _0x1cb661=new _0x13d9eb(_0x4b4c58(0x175),null,{'message':_0x391232[_0x4b4c58(0x1a7)]});_0x1cb661[_0x4b4c58(0x18d)]=_0x391232[_0x4b4c58(0x18d)],this[_0x4b4c58(0x1b2)](_0x4b4c58(0x199),{'error':_0x1cb661});}}async[_0xadbcab(0x19b)](){const _0x495d86=_0xadbcab;if(this[_0x495d86(0x1bb)])throw new _0x13d9eb(_0x495d86(0x1ae),null,{'conversation':this});if(!this[_0x495d86(0x1b7)])throw new _0x13d9eb(_0x495d86(0x1c4),null,{'conversation':this});try{const {id:_0x56b749}=await this[_0x495d86(0x1d3)][_0x495d86(0x198)](this['id'],this[_0x495d86(0x195)][_0x495d86(0x1d5)])[_0x495d86(0x1ca)]();this['id']=_0x56b749,this[_0x495d86(0x1bb)]=!0x0,this[_0x495d86(0x1b2)](_0x495d86(0x1d1),{'conversationId':this['id'],'selectedModel':this[_0x495d86(0x1b7)]});}catch(_0xc60921){const _0x57d87e=new _0x13d9eb(_0x495d86(0x196),null,{'message':_0xc60921[_0x495d86(0x1a7)]});_0x57d87e[_0x495d86(0x18d)]=_0xc60921[_0x495d86(0x18d)],this[_0x495d86(0x1b2)](_0x495d86(0x199),{'error':_0x57d87e});}}async[_0xadbcab(0x1cb)](_0x17bc6d,_0xac3ce0){const _0x5eecc9=_0xadbcab;try{const _0x37a214=await this[_0x5eecc9(0x1d3)][_0x5eecc9(0x17f)](_0x17bc6d)[_0x5eecc9(0x1ca)](),_0x539396=await this[_0x5eecc9(0x1d3)][_0x5eecc9(0x1b6)](_0x17bc6d)[_0x5eecc9(0x1c7)](),_0x204a74=_0x539396[0x0][_0x5eecc9(0x183)];this[_0x5eecc9(0x1bb)]=!0x0,this['id']=_0x37a214['id'],_0x5eecc9(0x1e1)in _0x37a214?this[_0x5eecc9(0x1b2)](_0x5eecc9(0x188),_0x37a214[_0x5eecc9(0x1e1)],!0x0):this[_0x5eecc9(0x1b2)](_0x5eecc9(0x188),'',!0x0);const _0xeb45e4=(await this[_0x5eecc9(0x182)][_0x5eecc9(0x1b1)]())[_0x5eecc9(0x1a6)](_0xa35a4e=>_0xa35a4e['id'][_0x5eecc9(0x17a)]()===_0x204a74[_0x5eecc9(0x17a)]());return this[_0x5eecc9(0x1b7)]=_0xeb45e4,this[_0x5eecc9(0x1b2)](_0x5eecc9(0x1cd),{'selectedModel':_0xeb45e4,'isDisabled':!0x0}),await this[_0x5eecc9(0x1c8)](_0x539396,_0xac3ce0,_0x204a74),this[_0x5eecc9(0x17c)]=void 0x0,this;}catch(_0x29fed0){const _0x5f4559=new _0x13d9eb(_0x5eecc9(0x1b9),null,{'message':_0x29fed0[_0x5eecc9(0x1a7)],'conversationId':_0x17bc6d});throw _0x5f4559[_0x5eecc9(0x18d)]=_0x29fed0[_0x5eecc9(0x18d)],this[_0x5eecc9(0x1b2)](_0x5eecc9(0x199),{'error':_0x5f4559}),_0x5f4559;}}async[_0xadbcab(0x1c8)](_0x1006af,_0x10ad1f,_0x5dbb73){const _0x30e71f=_0xadbcab;let _0x443a04;for(const _0x53bb87 of _0x1006af)if(_0x30e71f(0x1cc)===_0x53bb87[_0x30e71f(0x1c2)]){const _0x49c751=await this[_0x30e71f(0x1d6)](_0x53bb87),_0x32692d={'isReasoningEnabled':Object[_0x30e71f(0x1e0)](_0x53bb87[_0x30e71f(0x1e8)],_0x30e71f(0x187)),'isWebSearchEnabled':Object[_0x30e71f(0x1e0)](_0x53bb87[_0x30e71f(0x1e8)],_0x30e71f(0x1a8))};_0x443a04=this[_0x30e71f(0x192)]({'userMessage':_0x53bb87[_0x30e71f(0x1c0)],'contextItems':_0x49c751,'capabilities':_0x32692d,'modelId':_0x5dbb73,'quickActionData':_0x53bb87[_0x30e71f(0x1e4)]?.[_0x30e71f(0x1b0)]}),this[_0x30e71f(0x17c)]=_0x443a04,this[_0x30e71f(0x1cf)][_0x30e71f(0x19f)](this[_0x30e71f(0x17c)][_0x30e71f(0x17d)]);}else{if(_0x30e71f(0x180)===_0x53bb87[_0x30e71f(0x1c2)]&&_0x443a04)for(const _0x150237 of _0x53bb87[_0x30e71f(0x1bf)]){const _0x5ed8eb=_0x30e71f(0x1ba)===_0x150237[_0x30e71f(0x1dc)]?_0x30e71f(0x1da):_0x30e71f(0x1a5),_0x17e71b=_0x443a04[_0x30e71f(0x197)]()?.[_0x30e71f(0x1a0)]!==_0x10ad1f;_0x443a04[_0x30e71f(0x19d)]=_0x443a04[_0x30e71f(0x18e)]({'type':_0x5ed8eb,'isDone':!0x0,'interactionId':_0x443a04['id'],'areActionsDisabled':_0x17e71b}),_0x443a04[_0x30e71f(0x19d)][_0x30e71f(0x19c)](_0x150237[_0x30e71f(0x1bf)]);}}}async[_0xadbcab(0x1d6)](_0x4af6b5){const _0x585e2c=_0xadbcab,_0x4803dd=new Map();if(!_0x4af6b5[_0x585e2c(0x1bf)])return _0x4803dd;for(const _0x2fd780 of _0x4af6b5[_0x585e2c(0x1bf)]){const _0x4c2898=await this[_0x585e2c(0x1cf)][_0x585e2c(0x1bd)](_0x2fd780);_0x4c2898&&_0x4803dd[_0x585e2c(0x1b3)](_0x4c2898['id'],_0x4c2898);}return _0x4803dd;}async[_0xadbcab(0x1db)]({userMessage:_0x230c0a,quickActionData:_0x4325b3}){const _0x53c936=_0xadbcab;if(!this[_0x53c936(0x1bb)])throw new _0x13d9eb(_0x53c936(0x1aa),null,{'conversation':this});if(this[_0x53c936(0x17c)])throw new _0x13d9eb(_0x53c936(0x176),null,{'conversation':this});try{const _0x206dd2=this[_0x53c936(0x1cf)][_0x53c936(0x1ab)](),_0x2ab1f7=this[_0x53c936(0x194)][_0x53c936(0x19e)](),_0x590e4d=this[_0x53c936(0x1b7)]['id'];this[_0x53c936(0x17c)]=this[_0x53c936(0x192)]({'userMessage':_0x230c0a,'contextItems':_0x206dd2,'capabilities':_0x2ab1f7,'modelId':_0x590e4d,'quickActionData':_0x4325b3}),await this[_0x53c936(0x17c)][_0x53c936(0x19b)](),this[_0x53c936(0x1cf)][_0x53c936(0x19f)](this[_0x53c936(0x17c)][_0x53c936(0x17d)]);}catch(_0x3126d9){this[_0x53c936(0x1b2)](_0x53c936(0x199),{'interactionId':this[_0x53c936(0x17c)]?this[_0x53c936(0x17c)]['id']:void 0x0,'error':_0x3126d9});}finally{this[_0x53c936(0x17c)]?.[_0x53c936(0x1a3)](),this[_0x53c936(0x17c)]=void 0x0;}}[_0xadbcab(0x192)]({userMessage:_0x3d46f8,contextItems:_0x1fe711,capabilities:_0x56f5a7,modelId:_0x3ae633,quickActionData:_0x896583}){const _0xc818e9=_0xadbcab,_0xe0251b=new _0x4c5c42({'userMessage':_0x3d46f8,'contextItems':_0x1fe711,'capabilities':_0x56f5a7,'conversationId':this['id'],'connector':this[_0xc818e9(0x1d3)],'editor':this[_0xc818e9(0x195)][_0xc818e9(0x1d4)]&&this[_0xc818e9(0x195)][_0xc818e9(0x1d4)](),'model':_0x3ae633,'quickActionData':_0x896583});return _0xe0251b[_0xc818e9(0x190)](..._0x235ab1)['to'](this),this[_0xc818e9(0x18b)][_0xc818e9(0x1ac)](_0xe0251b),this[_0xc818e9(0x1b2)](_0xc818e9(0x1d2),_0xe0251b),_0xe0251b;}[_0xadbcab(0x1a9)](_0x557228){const _0x2e206a=_0xadbcab;return this[_0x2e206a(0x18b)][_0x2e206a(0x1a6)](_0x1db520=>_0x1db520['id']===_0x557228);}[_0xadbcab(0x181)](_0xbffc64){const _0x54ebc5=_0xadbcab,_0xbd956=this[_0x54ebc5(0x1a9)](_0xbffc64);_0xbd956&&(_0xbd956[_0x54ebc5(0x1de)](),this[_0x54ebc5(0x18b)][_0x54ebc5(0x179)](this[_0x54ebc5(0x18b)][_0x54ebc5(0x193)](_0xbd956),0x1));}get[_0xadbcab(0x1ce)](){const _0x5a549e=_0xadbcab;return this[_0x5a549e(0x18b)][this[_0x5a549e(0x18b)][_0x5a549e(0x1e7)]-0x1];}[_0xadbcab(0x1bc)](_0xe8e127){const _0x42bc39=_0xadbcab;this[_0x42bc39(0x1cf)][_0x42bc39(0x1bc)](_0xe8e127);}async[_0xadbcab(0x17b)]({content:_0x26c499,version:_0x42ba4e,sessionId:_0xf71522,selections:_0x251c63}){const _0x3bb65b=_0xadbcab;await this[_0x3bb65b(0x1cf)][_0x3bb65b(0x1a4)](_0x26c499,_0x42ba4e,_0xf71522,_0x251c63);}[_0xadbcab(0x1e2)](){const _0x537984=_0xadbcab;return this[_0x537984(0x17c)]?.[_0x537984(0x197)]()?.[_0x537984(0x1bf)]||'';}[_0xadbcab(0x18f)](_0x52b3ab){const _0x567769=_0xadbcab;this[_0x567769(0x1cf)][_0x567769(0x18f)](_0x52b3ab);}[_0xadbcab(0x1a2)](){const _0x54e09d=_0xadbcab;this[_0x54e09d(0x1cf)][_0x54e09d(0x1a2)]();}[_0xadbcab(0x1be)](_0x2795b0){const _0xee8ce=_0xadbcab;this[_0xee8ce(0x1cf)][_0xee8ce(0x1be)](_0x2795b0);}[_0xadbcab(0x177)](_0x49c006){const _0x1d38fe=_0xadbcab;this[_0x1d38fe(0x1cf)][_0x1d38fe(0x177)](_0x49c006);}[_0xadbcab(0x17e)](_0x3156a0,_0x4f8ef6){const _0x189fcd=_0xadbcab;this[_0x189fcd(0x1cf)][_0x189fcd(0x17e)](_0x3156a0,_0x4f8ef6);}[_0xadbcab(0x1c5)](_0x367ab8,_0x48086b,_0x5e5a90){const _0x19db73=_0xadbcab;return this[_0x19db73(0x1cf)][_0x19db73(0x1c5)](_0x367ab8,_0x48086b,_0x5e5a90);}[_0xadbcab(0x1c9)](_0x295d12){const _0x9eb42f=_0xadbcab;this[_0x9eb42f(0x1cf)][_0x9eb42f(0x1c9)](_0x295d12);}[_0xadbcab(0x18c)](){const _0x28538c=_0xadbcab;this[_0x28538c(0x194)][_0x28538c(0x18c)]();}[_0xadbcab(0x186)](){const _0x36d3aa=_0xadbcab;this[_0x36d3aa(0x194)][_0x36d3aa(0x186)]();}[_0xadbcab(0x19a)](){const _0x3c3301=_0xadbcab;return this[_0x3c3301(0x1cf)][_0x3c3301(0x19a)]();}[_0xadbcab(0x1b4)](){const _0x45347a=_0xadbcab;return this[_0x45347a(0x1cf)][_0x45347a(0x1b4)]();}[_0xadbcab(0x1c1)](){const _0x20edbb=_0xadbcab;return this[_0x20edbb(0x1cf)][_0x20edbb(0x1c1)]();}async[_0xadbcab(0x1c6)](_0xabd1ff){const _0x35f9a3=_0xadbcab;_0xabd1ff?!0x1===await this[_0x35f9a3(0x182)][_0x35f9a3(0x178)](_0xabd1ff)&&(_0x33d6f1(_0x35f9a3(0x1d8),{'conversation':this,'model':_0xabd1ff}),_0xabd1ff=(await this[_0x35f9a3(0x182)][_0x35f9a3(0x1e5)]())[0x0]):(_0x33d6f1(_0x35f9a3(0x1b8),{'conversation':this}),_0xabd1ff=(await this[_0x35f9a3(0x182)][_0x35f9a3(0x1e5)]())[0x0]),_0xabd1ff['id']!==this[_0x35f9a3(0x1b7)]?.['id']&&(this[_0x35f9a3(0x1b7)]=_0xabd1ff,this[_0x35f9a3(0x194)][_0x35f9a3(0x189)](),this[_0x35f9a3(0x1b2)](_0x35f9a3(0x1cd),{'selectedModel':_0xabd1ff}));}}
23
+ const _0x2a8a96=_0x1b7a;(function(_0x94af9c,_0x43d355){const _0x1a5f8e=_0x1b7a,_0x11dc95=_0x94af9c();while(!![]){try{const _0x18595f=parseInt(_0x1a5f8e(0x1f2))/0x1+-parseInt(_0x1a5f8e(0x1fa))/0x2+parseInt(_0x1a5f8e(0x1ed))/0x3+-parseInt(_0x1a5f8e(0x1bf))/0x4+parseInt(_0x1a5f8e(0x1d8))/0x5*(parseInt(_0x1a5f8e(0x198))/0x6)+parseInt(_0x1a5f8e(0x194))/0x7+-parseInt(_0x1a5f8e(0x1cd))/0x8;if(_0x18595f===_0x43d355)break;else _0x11dc95['push'](_0x11dc95['shift']());}catch(_0x502e69){_0x11dc95['push'](_0x11dc95['shift']());}}}(_0x290e,0x6ba46));import{CKEditorError as _0x1249ee,EmitterMixin as _0x4ce354,logWarning as _0x5c35ac}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1a4723}from'../../aicore/model/aiinteraction.js';function _0x1b7a(_0x3954ba,_0x52be4b){const _0x290ed8=_0x290e();return _0x1b7a=function(_0x1b7a43,_0x26abd9){_0x1b7a43=_0x1b7a43-0x194;let _0x3353d3=_0x290ed8[_0x1b7a43];return _0x3353d3;},_0x1b7a(_0x3954ba,_0x52be4b);}function _0x290e(){const _0x3de7f1=['find','isSelectionInContext','push','toggleWebSearch','ai-chat-conversation-already-started','ai-chat-conversation-start-failed','attributes','getPendingContextItems','ai-chat-conversation-set-model-null','conversationInitialized','2063511FonlQy','fetchConversation','createInteraction','getAll','currentReply','234274mHBFDz','text-delta','assistant','selectedModel','content','type','text','setModel','331854FIhTWC','connector','ai-chat-handle-user-interaction-already-in-progress','addSelectionToContext','capabilities','isAvailable','populateFromMessage','getAvailableModels','appendContent','sessionId','fetchConversationMessages','5222231PtlKIt','start','interactionCreated','ai-chat-conversation-init-from-id-failed','6FeivAn','selectedModelId','message','ai-chat-conversation-init-failed','removeInteraction','getDocumentContext','delegate','toLowerCase','prompt','toggleReasoning','lastInteraction','chatContext','stack','isStarted','quickActionData','reset','getMessages','removeFromContext','getModel','group','addUrlToContext','interactions','set','startConversation','ai-chat-conversation-set-model-not-available','contextItems','chatModels','addResourceToContext','load','options','role','fire','currentInteraction','handleUserInteraction','conversationStarted','_extractContextItems','indexOf','addCurrentDocumentToContext','isCurrentDocumentInContext','819236fEgbAA','removeSelectionFromContext','webSearch','user','addFilesToContext','length','ai-chat-conversation-start-no-model-selected','getCapabilitiesConfig','splice','updateCurrentDocument','modification-delta','getEditor','destroy','addToConversationContext','12880456pDWSvC','stop','updateCurrentDocumentInContext','chatCapabilities','setConversationTitle','init','createReply','model','modelSelected','title','getConversation','3767755VrLUds','hasOwn','ai-chat-handle-user-conversation-not-initialized','reasoning','isCurrentDocumentInConversation','_processMessagesToInteractions','error','getCurrentDocumentContext','conversationId','getInteraction','loadSourceResources'];_0x290e=function(){return _0x3de7f1;};return _0x290e();}import{AIChatContext as _0x2c93d1,AI_CONTEXT_MODEL_EVENT_NAMES as _0xda3ad1}from'./aichatcontext.js';import{AICapabilities as _0x1652bd,CAPABILITIES_MODEL_EVENT_NAMES as _0x14e4e9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f26e8}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ce354(){['id'];[_0x2a8a96(0x1a5)]=!0x1;[_0x2a8a96(0x1ad)]=[];[_0x2a8a96(0x1b8)];[_0x2a8a96(0x1f5)];[_0x2a8a96(0x1fb)];[_0x2a8a96(0x1b5)];constructor(_0xf111e4){const _0x16ad10=_0x2a8a96;super(),this[_0x16ad10(0x1b5)]=_0xf111e4,this[_0x16ad10(0x1fb)]=_0xf111e4[_0x16ad10(0x1fb)],this[_0x16ad10(0x1b2)]=_0xf111e4[_0x16ad10(0x1b2)],this['id']=_0xf111e4[_0x16ad10(0x1e0)];}async[_0x2a8a96(0x1d2)](_0x18ffa7){const _0x4ae5a7=_0x2a8a96;try{this[_0x4ae5a7(0x1a3)]=new _0x2c93d1({'connector':this[_0x4ae5a7(0x1fb)],'config':_0x18ffa7,'ownerId':this['id']}),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x19e)](..._0xda3ad1)['to'](this),this[_0x4ae5a7(0x1a3)][_0x4ae5a7(0x1d2)](),this[_0x4ae5a7(0x1d0)]=new _0x1652bd(),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x19e)](..._0x14e4e9)['to'](this),this[_0x4ae5a7(0x1d0)][_0x4ae5a7(0x1d2)]();const _0xd19988=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x201)]();this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1ec),{'availableModels':_0xd19988});const _0xf26ae5=await this[_0x4ae5a7(0x1b2)][_0x4ae5a7(0x1aa)](this[_0x4ae5a7(0x1b5)][_0x4ae5a7(0x199)]);_0xf26ae5&&await this[_0x4ae5a7(0x1f9)](_0xf26ae5);}catch(_0x42cb19){const _0x47eba3=new _0x1249ee(_0x4ae5a7(0x19b),null,{'message':_0x42cb19[_0x4ae5a7(0x19a)]});_0x47eba3[_0x4ae5a7(0x1a4)]=_0x42cb19[_0x4ae5a7(0x1a4)],this[_0x4ae5a7(0x1b7)](_0x4ae5a7(0x1de),{'error':_0x47eba3});}}async[_0x2a8a96(0x195)](){const _0x3ca595=_0x2a8a96;if(this[_0x3ca595(0x1a5)])throw new _0x1249ee(_0x3ca595(0x1e7),null,{'conversation':this});if(!this[_0x3ca595(0x1f5)])throw new _0x1249ee(_0x3ca595(0x1c5),null,{'conversation':this});try{const {id:_0x5236ae}=await this[_0x3ca595(0x1fb)][_0x3ca595(0x1af)](this['id'],this[_0x3ca595(0x1b5)][_0x3ca595(0x1ab)])[_0x3ca595(0x1d7)]();this['id']=_0x5236ae,this[_0x3ca595(0x1a5)]=!0x0,this[_0x3ca595(0x1b7)](_0x3ca595(0x1ba),{'conversationId':this['id'],'selectedModel':this[_0x3ca595(0x1f5)]});}catch(_0x2df490){const _0x253bae=new _0x1249ee(_0x3ca595(0x1e8),null,{'message':_0x2df490[_0x3ca595(0x19a)]});_0x253bae[_0x3ca595(0x1a4)]=_0x2df490[_0x3ca595(0x1a4)],this[_0x3ca595(0x1b7)](_0x3ca595(0x1de),{'error':_0x253bae});}}async[_0x2a8a96(0x1b4)](_0x40d7b7,_0x333798){const _0x51426b=_0x2a8a96;try{const _0x20dd61=await this[_0x51426b(0x1fb)][_0x51426b(0x1ee)](_0x40d7b7)[_0x51426b(0x1d7)](),_0x4f0b10=await this[_0x51426b(0x1fb)][_0x51426b(0x204)](_0x40d7b7)[_0x51426b(0x1a8)](),_0x5d3345=_0x4f0b10[0x0][_0x51426b(0x1d4)];this[_0x51426b(0x1a5)]=!0x0,this['id']=_0x20dd61['id'],_0x51426b(0x1d6)in _0x20dd61?this[_0x51426b(0x1b7)](_0x51426b(0x1d1),_0x20dd61[_0x51426b(0x1d6)],!0x0):this[_0x51426b(0x1b7)](_0x51426b(0x1d1),'',!0x0);const _0x5c1c50=(await this[_0x51426b(0x1b2)][_0x51426b(0x1f0)]())[_0x51426b(0x1e3)](_0x2b265f=>_0x2b265f['id'][_0x51426b(0x19f)]()===_0x5d3345[_0x51426b(0x19f)]());return this[_0x51426b(0x1f5)]=_0x5c1c50,this[_0x51426b(0x1b7)](_0x51426b(0x1d5),{'selectedModel':_0x5c1c50,'isDisabled':!0x0}),await this[_0x51426b(0x1dd)](_0x4f0b10,_0x333798,_0x5d3345),this[_0x51426b(0x1b8)]=void 0x0,this;}catch(_0x19f896){const _0x48deae=new _0x1249ee(_0x51426b(0x197),null,{'message':_0x19f896[_0x51426b(0x19a)],'conversationId':_0x40d7b7});throw _0x48deae[_0x51426b(0x1a4)]=_0x19f896[_0x51426b(0x1a4)],this[_0x51426b(0x1b7)](_0x51426b(0x1de),{'error':_0x48deae}),_0x48deae;}}async[_0x2a8a96(0x1dd)](_0x51e7fa,_0x8f2687,_0x7d7494){const _0x2a21fc=_0x2a8a96;let _0x1db313;for(const _0x321ad9 of _0x51e7fa)if(_0x2a21fc(0x1c2)===_0x321ad9[_0x2a21fc(0x1b6)]){const _0x3dfbe5=await this[_0x2a21fc(0x1bb)](_0x321ad9),_0x23d24a={'isReasoningEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1db)),'isWebSearchEnabled':Object[_0x2a21fc(0x1d9)](_0x321ad9[_0x2a21fc(0x1fe)],_0x2a21fc(0x1c1))};_0x1db313=this[_0x2a21fc(0x1ef)]({'userMessage':_0x321ad9[_0x2a21fc(0x1a0)],'contextItems':_0x3dfbe5,'capabilities':_0x23d24a,'modelId':_0x7d7494,'quickActionData':_0x321ad9[_0x2a21fc(0x1e9)]?.[_0x2a21fc(0x1a6)]}),this[_0x2a21fc(0x1b8)]=_0x1db313,this[_0x2a21fc(0x1a3)][_0x2a21fc(0x1cc)](this[_0x2a21fc(0x1b8)][_0x2a21fc(0x1b1)]);}else{if(_0x2a21fc(0x1f4)===_0x321ad9[_0x2a21fc(0x1b6)]&&_0x1db313)for(const _0x39bee7 of _0x321ad9[_0x2a21fc(0x1f6)]){const _0x13c342=_0x2a21fc(0x1f8)===_0x39bee7[_0x2a21fc(0x1f7)]?_0x2a21fc(0x1f3):_0x2a21fc(0x1c9),_0x13f615=_0x1db313[_0x2a21fc(0x19d)]()?.[_0x2a21fc(0x203)]!==_0x8f2687;_0x1db313[_0x2a21fc(0x1f1)]=_0x1db313[_0x2a21fc(0x1d3)]({'type':_0x13c342,'isDone':!0x0,'interactionId':_0x1db313['id'],'areActionsDisabled':_0x13f615}),_0x1db313[_0x2a21fc(0x1f1)][_0x2a21fc(0x202)](_0x39bee7[_0x2a21fc(0x1f6)]);}}}async[_0x2a8a96(0x1bb)](_0x3558d0){const _0x28c90e=_0x2a8a96,_0x2d44c0=new Map();if(!_0x3558d0[_0x28c90e(0x1f6)])return _0x2d44c0;for(const _0x495c24 of _0x3558d0[_0x28c90e(0x1f6)]){const _0x3acc07=await this[_0x28c90e(0x1a3)][_0x28c90e(0x200)](_0x495c24);_0x3acc07&&_0x2d44c0[_0x28c90e(0x1ae)](_0x3acc07['id'],_0x3acc07);}return _0x2d44c0;}async[_0x2a8a96(0x1b9)]({userMessage:_0x2fde5e,quickActionData:_0x62dd37}){const _0x183bd9=_0x2a8a96;if(!this[_0x183bd9(0x1a5)])throw new _0x1249ee(_0x183bd9(0x1da),null,{'conversation':this});if(this[_0x183bd9(0x1b8)])throw new _0x1249ee(_0x183bd9(0x1fc),null,{'conversation':this});try{const _0x7de25f=this[_0x183bd9(0x1a3)][_0x183bd9(0x1ea)](),_0x238bf2=this[_0x183bd9(0x1d0)][_0x183bd9(0x1c6)](),_0x1aa2dd=this[_0x183bd9(0x1f5)]['id'];this[_0x183bd9(0x1b8)]=this[_0x183bd9(0x1ef)]({'userMessage':_0x2fde5e,'contextItems':_0x7de25f,'capabilities':_0x238bf2,'modelId':_0x1aa2dd,'quickActionData':_0x62dd37}),await this[_0x183bd9(0x1b8)][_0x183bd9(0x195)](),this[_0x183bd9(0x1a3)][_0x183bd9(0x1cc)](this[_0x183bd9(0x1b8)][_0x183bd9(0x1b1)]);}catch(_0x2caf3b){this[_0x183bd9(0x1b7)](_0x183bd9(0x1de),{'interactionId':this[_0x183bd9(0x1b8)]?this[_0x183bd9(0x1b8)]['id']:void 0x0,'error':_0x2caf3b});}finally{this[_0x183bd9(0x1b8)]?.[_0x183bd9(0x1ce)](),this[_0x183bd9(0x1b8)]=void 0x0;}}[_0x2a8a96(0x1ef)]({userMessage:_0x194da6,contextItems:_0x1ef598,capabilities:_0x172ce3,modelId:_0x52e756,quickActionData:_0xeba51e}){const _0x4a5c37=_0x2a8a96,_0x444c34=new _0x5f26e8({'userMessage':_0x194da6,'contextItems':_0x1ef598,'capabilities':_0x172ce3,'conversationId':this['id'],'connector':this[_0x4a5c37(0x1fb)],'editor':this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)]&&this[_0x4a5c37(0x1b5)][_0x4a5c37(0x1ca)](),'model':_0x52e756,'quickActionData':_0xeba51e});return _0x444c34[_0x4a5c37(0x19e)](..._0x1a4723)['to'](this),this[_0x4a5c37(0x1ad)][_0x4a5c37(0x1e5)](_0x444c34),this[_0x4a5c37(0x1b7)](_0x4a5c37(0x196),_0x444c34),_0x444c34;}[_0x2a8a96(0x1e1)](_0x1030c7){const _0x388fb8=_0x2a8a96;return this[_0x388fb8(0x1ad)][_0x388fb8(0x1e3)](_0x3daae2=>_0x3daae2['id']===_0x1030c7);}[_0x2a8a96(0x19c)](_0x19997f){const _0xbdfce1=_0x2a8a96,_0x250ac4=this[_0xbdfce1(0x1e1)](_0x19997f);_0x250ac4&&(_0x250ac4[_0xbdfce1(0x1cb)](),this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1c7)](this[_0xbdfce1(0x1ad)][_0xbdfce1(0x1bc)](_0x250ac4),0x1));}get[_0x2a8a96(0x1a2)](){const _0x371c69=_0x2a8a96;return this[_0x371c69(0x1ad)][this[_0x371c69(0x1ad)][_0x371c69(0x1c4)]-0x1];}[_0x2a8a96(0x1bd)](_0x4b6dec){const _0x4e9285=_0x2a8a96;this[_0x4e9285(0x1a3)][_0x4e9285(0x1bd)](_0x4b6dec);}async[_0x2a8a96(0x1cf)]({content:_0x2f1045,version:_0x14f589,sessionId:_0x48a744,selections:_0x2744a7}){const _0x1bfc81=_0x2a8a96;await this[_0x1bfc81(0x1a3)][_0x1bfc81(0x1c8)](_0x2f1045,_0x14f589,_0x48a744,_0x2744a7);}[_0x2a8a96(0x1df)](){const _0x54f8ac=_0x2a8a96;return this[_0x54f8ac(0x1b8)]?.[_0x54f8ac(0x19d)]()?.[_0x54f8ac(0x1f6)]||'';}[_0x2a8a96(0x1fd)](_0x2bf77e){const _0x39e136=_0x2a8a96;this[_0x39e136(0x1a3)][_0x39e136(0x1fd)](_0x2bf77e);}[_0x2a8a96(0x1c0)](){const _0x116cbb=_0x2a8a96;this[_0x116cbb(0x1a3)][_0x116cbb(0x1c0)]();}[_0x2a8a96(0x1c3)](_0x4533bb){const _0x1beae5=_0x2a8a96;this[_0x1beae5(0x1a3)][_0x1beae5(0x1c3)](_0x4533bb);}[_0x2a8a96(0x1ac)](_0x36ae0f){const _0x5e869d=_0x2a8a96;this[_0x5e869d(0x1a3)][_0x5e869d(0x1ac)](_0x36ae0f);}[_0x2a8a96(0x1b3)](_0x5ce858,_0x2af263){const _0xfb2193=_0x2a8a96;this[_0xfb2193(0x1a3)][_0xfb2193(0x1b3)](_0x5ce858,_0x2af263);}[_0x2a8a96(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0){const _0x3c6a01=_0x2a8a96;return this[_0x3c6a01(0x1a3)][_0x3c6a01(0x1e2)](_0x1c88dc,_0x2ec227,_0x399dc0);}[_0x2a8a96(0x1a9)](_0x33f051){const _0x63e33a=_0x2a8a96;this[_0x63e33a(0x1a3)][_0x63e33a(0x1a9)](_0x33f051);}[_0x2a8a96(0x1e6)](){const _0x48d1cc=_0x2a8a96;this[_0x48d1cc(0x1d0)][_0x48d1cc(0x1e6)]();}[_0x2a8a96(0x1a1)](){const _0x50cb7f=_0x2a8a96;this[_0x50cb7f(0x1d0)][_0x50cb7f(0x1a1)]();}[_0x2a8a96(0x1be)](){const _0x40d267=_0x2a8a96;return this[_0x40d267(0x1a3)][_0x40d267(0x1be)]();}[_0x2a8a96(0x1dc)](){const _0x2263c0=_0x2a8a96;return this[_0x2263c0(0x1a3)][_0x2263c0(0x1dc)]();}[_0x2a8a96(0x1e4)](){const _0x1e8d06=_0x2a8a96;return this[_0x1e8d06(0x1a3)][_0x1e8d06(0x1e4)]();}async[_0x2a8a96(0x1f9)](_0x5b8abd){const _0x36e907=_0x2a8a96;_0x5b8abd?!0x1===await this[_0x36e907(0x1b2)][_0x36e907(0x1ff)](_0x5b8abd)&&(_0x5c35ac(_0x36e907(0x1b0),{'conversation':this,'model':_0x5b8abd}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]):(_0x5c35ac(_0x36e907(0x1eb),{'conversation':this}),_0x5b8abd=(await this[_0x36e907(0x1b2)][_0x36e907(0x201)]())[0x0]),_0x5b8abd['id']!==this[_0x36e907(0x1f5)]?.['id']&&(this[_0x36e907(0x1f5)]=_0x5b8abd,this[_0x36e907(0x1d0)][_0x36e907(0x1a7)](),this[_0x36e907(0x1b7)](_0x36e907(0x1d5),{'selectedModel':_0x5b8abd}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38cd(){var _0x4addfc=['model','get','current-document','quickActionData','4201417IafIZt','sendRequest','userMessage','capabilities','413692fWFJEe','194668henOPC','getDocumentContext','249258Pqxkrn','queryAssistant','1495BgxXal','getCapabilitiesRequestData','mapContextItemsToRequestData','1tQPqRa','698004NwkWwm','1465168pMXEpb','connector','3948QaGExn','7mozNMT','conversationId','10nCiNKe','contextItems'];_0x38cd=function(){return _0x4addfc;};return _0x38cd();}var _0x13cbbe=_0x3834;(function(_0x4b0fd4,_0x425b08){var _0x8c4ebd=_0x3834,_0x29b818=_0x4b0fd4();while(!![]){try{var _0x42990b=-parseInt(_0x8c4ebd(0x1b7))/0x1*(parseInt(_0x8c4ebd(0x1c8))/0x2)+parseInt(_0x8c4ebd(0x1b2))/0x3+-parseInt(_0x8c4ebd(0x1b0))/0x4+parseInt(_0x8c4ebd(0x1b4))/0x5*(-parseInt(_0x8c4ebd(0x1bb))/0x6)+-parseInt(_0x8c4ebd(0x1bc))/0x7*(-parseInt(_0x8c4ebd(0x1b9))/0x8)+-parseInt(_0x8c4ebd(0x1b8))/0x9+parseInt(_0x8c4ebd(0x1be))/0xa*(parseInt(_0x8c4ebd(0x1c4))/0xb);if(_0x42990b===_0x425b08)break;else _0x29b818['push'](_0x29b818['shift']());}catch(_0x23c459){_0x29b818['push'](_0x29b818['shift']());}}}(_0x38cd,0x1ce60));import{AICapabilities as _0x57757f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x487603}from'../../aicore/model/aiinteraction.js';function _0x3834(_0xd859ea,_0x24a519){var _0x38cdeb=_0x38cd();return _0x3834=function(_0x38342f,_0x31eee0){_0x38342f=_0x38342f-0x1b0;var _0x4c9a0c=_0x38cdeb[_0x38342f];return _0x4c9a0c;},_0x3834(_0xd859ea,_0x24a519);}import{AIChatContext as _0x140799}from'./aichatcontext.js';export class AIChatInteraction extends _0x487603{[_0x13cbbe(0x1c6)];[_0x13cbbe(0x1bd)];[_0x13cbbe(0x1bf)]=new Map();[_0x13cbbe(0x1c0)];[_0x13cbbe(0x1c3)];constructor(_0x290148){var _0x49aa03=_0x13cbbe;super(_0x290148),this[_0x49aa03(0x1bd)]=_0x290148[_0x49aa03(0x1bd)],this[_0x49aa03(0x1bf)]=_0x290148[_0x49aa03(0x1bf)],this[_0x49aa03(0x1c7)]=_0x290148[_0x49aa03(0x1c7)],this[_0x49aa03(0x1c6)]=_0x290148[_0x49aa03(0x1c6)],this[_0x49aa03(0x1c0)]=_0x290148[_0x49aa03(0x1c0)],this[_0x49aa03(0x1c3)]=_0x290148[_0x49aa03(0x1c3)];}async[_0x13cbbe(0x1c5)](){var _0x43e639=_0x13cbbe;return this[_0x43e639(0x1ba)][_0x43e639(0x1b3)]({'message':this[_0x43e639(0x1c6)],'conversationId':this[_0x43e639(0x1bd)],'parts':_0x140799[_0x43e639(0x1b6)](this[_0x43e639(0x1bf)]),'capabilities':_0x57757f[_0x43e639(0x1b5)](this[_0x43e639(0x1c7)]),'model':this[_0x43e639(0x1c0)],'quickActionData':this[_0x43e639(0x1c3)]});}[_0x13cbbe(0x1b1)](){var _0x6f6fd4=_0x13cbbe;return this[_0x6f6fd4(0x1bf)][_0x6f6fd4(0x1c1)](_0x6f6fd4(0x1c2));}}
23
+ function _0x1589(){var _0x2d0717=['connector','970KftFGq','model','4kwZbDd','102261yosQLW','724328SbXPhk','17190mZknIO','20PHnAlE','userMessage','capabilities','get','950CJcLyJ','queryAssistant','quickActionData','contextItems','current-document','834zyTeqX','conversationId','mapContextItemsToRequestData','3233268DUnCwm','11384wIteHw','2702xHqoCo','sendRequest','getDocumentContext','getCapabilitiesRequestData','28NVhqdF'];_0x1589=function(){return _0x2d0717;};return _0x1589();}function _0x30d6(_0x32bf9b,_0x1232b0){var _0x1589d7=_0x1589();return _0x30d6=function(_0x30d66e,_0x10361f){_0x30d66e=_0x30d66e-0x188;var _0x59f178=_0x1589d7[_0x30d66e];return _0x59f178;},_0x30d6(_0x32bf9b,_0x1232b0);}var _0x1fcdeb=_0x30d6;(function(_0x189495,_0x5d514b){var _0x61f0ad=_0x30d6,_0x543608=_0x189495();while(!![]){try{var _0x277c28=parseInt(_0x61f0ad(0x192))/0x1*(-parseInt(_0x61f0ad(0x19e))/0x2)+parseInt(_0x61f0ad(0x19b))/0x3*(parseInt(_0x61f0ad(0x19a))/0x4)+-parseInt(_0x61f0ad(0x198))/0x5*(parseInt(_0x61f0ad(0x18d))/0x6)+-parseInt(_0x61f0ad(0x196))/0x7*(-parseInt(_0x61f0ad(0x191))/0x8)+parseInt(_0x61f0ad(0x19d))/0x9*(-parseInt(_0x61f0ad(0x188))/0xa)+parseInt(_0x61f0ad(0x19c))/0xb+parseInt(_0x61f0ad(0x190))/0xc;if(_0x277c28===_0x5d514b)break;else _0x543608['push'](_0x543608['shift']());}catch(_0xbe39b0){_0x543608['push'](_0x543608['shift']());}}}(_0x1589,0x2216e));import{AICapabilities as _0x175dcf}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2ad135}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4104b9}from'./aichatcontext.js';export class AIChatInteraction extends _0x2ad135{[_0x1fcdeb(0x19f)];[_0x1fcdeb(0x18e)];[_0x1fcdeb(0x18b)]=new Map();[_0x1fcdeb(0x199)];[_0x1fcdeb(0x18a)];constructor(_0x38d1b7){var _0x120fae=_0x1fcdeb;super(_0x38d1b7),this[_0x120fae(0x18e)]=_0x38d1b7[_0x120fae(0x18e)],this[_0x120fae(0x18b)]=_0x38d1b7[_0x120fae(0x18b)],this[_0x120fae(0x1a0)]=_0x38d1b7[_0x120fae(0x1a0)],this[_0x120fae(0x19f)]=_0x38d1b7[_0x120fae(0x19f)],this[_0x120fae(0x199)]=_0x38d1b7[_0x120fae(0x199)],this[_0x120fae(0x18a)]=_0x38d1b7[_0x120fae(0x18a)];}async[_0x1fcdeb(0x193)](){var _0x2d6d7e=_0x1fcdeb;return this[_0x2d6d7e(0x197)][_0x2d6d7e(0x189)]({'message':this[_0x2d6d7e(0x19f)],'conversationId':this[_0x2d6d7e(0x18e)],'parts':_0x4104b9[_0x2d6d7e(0x18f)](this[_0x2d6d7e(0x18b)]),'capabilities':_0x175dcf[_0x2d6d7e(0x195)](this[_0x2d6d7e(0x1a0)]),'model':this[_0x2d6d7e(0x199)],'quickActionData':this[_0x2d6d7e(0x18a)]});}[_0x1fcdeb(0x194)](){var _0x2ba302=_0x1fcdeb;return this[_0x2ba302(0x18b)][_0x2ba302(0x1a1)](_0x2ba302(0x18c));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fc240=_0x3b91;function _0x3b91(_0x302db2,_0x2dcf5e){const _0x3a68e6=_0x3a68();return _0x3b91=function(_0x3b91da,_0x382b54){_0x3b91da=_0x3b91da-0x18c;let _0x4c54f5=_0x3a68e6[_0x3b91da];return _0x4c54f5;},_0x3b91(_0x302db2,_0x2dcf5e);}(function(_0xa89236,_0x64b660){const _0x5651f7=_0x3b91,_0x1e76f8=_0xa89236();while(!![]){try{const _0x28fa44=parseInt(_0x5651f7(0x190))/0x1*(parseInt(_0x5651f7(0x196))/0x2)+parseInt(_0x5651f7(0x195))/0x3+-parseInt(_0x5651f7(0x192))/0x4*(parseInt(_0x5651f7(0x18d))/0x5)+parseInt(_0x5651f7(0x198))/0x6+-parseInt(_0x5651f7(0x18c))/0x7+-parseInt(_0x5651f7(0x197))/0x8+-parseInt(_0x5651f7(0x19c))/0x9*(-parseInt(_0x5651f7(0x199))/0xa);if(_0x28fa44===_0x64b660)break;else _0x1e76f8['push'](_0x1e76f8['shift']());}catch(_0x3bac0a){_0x1e76f8['push'](_0x1e76f8['shift']());}}}(_0x3a68,0xad4ff));function _0x3a68(){const _0x4fe1e7=['filter','20612nnlQks','values','sort','3607038iRhCAL','67546JHTAxV','10256472HZQlOB','3614646OwQPbQ','2101940RJQpET','enabled','length','63UJNytd','9492917QZcxGf','815ajIuBd','getAll','capabilities','27RDEfym'];_0x3a68=function(){return _0x4fe1e7;};return _0x3a68();}import{AIModels as _0x59d823}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x59d823{async[_0x1fc240(0x18e)](){const _0x33b8a3=_0x1fc240;return(await super[_0x33b8a3(0x18e)]())[_0x33b8a3(0x194)]((_0x250dc1,_0x5ac38e)=>{const _0x3eea5c=_0x33b8a3,_0x4b5cad=Object[_0x3eea5c(0x193)](_0x250dc1[_0x3eea5c(0x18f)])[_0x3eea5c(0x191)](_0x2a2c44=>_0x2a2c44[_0x3eea5c(0x19a)])[_0x3eea5c(0x19b)];return Object[_0x3eea5c(0x193)](_0x5ac38e[_0x3eea5c(0x18f)])[_0x3eea5c(0x191)](_0x1b12d6=>_0x1b12d6[_0x3eea5c(0x19a)])[_0x3eea5c(0x19b)]-_0x4b5cad;});}}
23
+ const _0x4d4777=_0xa722;(function(_0x54dd10,_0x162040){const _0x4b2960=_0xa722,_0x2b5488=_0x54dd10();while(!![]){try{const _0x53bc5f=parseInt(_0x4b2960(0x81))/0x1*(-parseInt(_0x4b2960(0x7c))/0x2)+parseInt(_0x4b2960(0x7a))/0x3+-parseInt(_0x4b2960(0x87))/0x4*(-parseInt(_0x4b2960(0x7b))/0x5)+parseInt(_0x4b2960(0x7d))/0x6+parseInt(_0x4b2960(0x79))/0x7*(-parseInt(_0x4b2960(0x7e))/0x8)+-parseInt(_0x4b2960(0x88))/0x9*(parseInt(_0x4b2960(0x77))/0xa)+parseInt(_0x4b2960(0x85))/0xb;if(_0x53bc5f===_0x162040)break;else _0x2b5488['push'](_0x2b5488['shift']());}catch(_0x50e3d9){_0x2b5488['push'](_0x2b5488['shift']());}}}(_0x5691,0x56ed8));function _0xa722(_0x2125fb,_0x5cd60e){const _0x56918a=_0x5691();return _0xa722=function(_0xa7226b,_0x1ea136){_0xa7226b=_0xa7226b-0x77;let _0x2f0e38=_0x56918a[_0xa7226b];return _0x2f0e38;},_0xa722(_0x2125fb,_0x5cd60e);}function _0x5691(){const _0x483833=['9mkOfqy','6225770Uixmhd','filter','21XGyVVj','498297YiDVFe','2545pIaRMi','62882xZfunH','2884050AGJVLq','156872GadUCr','capabilities','values','19UdpFdE','enabled','length','getAll','9872093EIPHJP','sort','712cnnHyX'];_0x5691=function(){return _0x483833;};return _0x5691();}import{AIModels as _0x241bb3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x241bb3{async[_0x4d4777(0x84)](){const _0x49578f=_0x4d4777;return(await super[_0x49578f(0x84)]())[_0x49578f(0x86)]((_0x400892,_0x9717ae)=>{const _0xad3998=_0x49578f,_0x144905=Object[_0xad3998(0x80)](_0x400892[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x3bb3c8=>_0x3bb3c8[_0xad3998(0x82)])[_0xad3998(0x83)];return Object[_0xad3998(0x80)](_0x9717ae[_0xad3998(0x7f)])[_0xad3998(0x78)](_0x290a01=>_0x290a01[_0xad3998(0x82)])[_0xad3998(0x83)]-_0x144905;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d043b=_0x15ba;(function(_0x356dbb,_0x1dc659){const _0x25c726=_0x15ba,_0x5876c6=_0x356dbb();while(!![]){try{const _0x2df6e9=-parseInt(_0x25c726(0x93))/0x1*(-parseInt(_0x25c726(0x9d))/0x2)+-parseInt(_0x25c726(0x9c))/0x3+parseInt(_0x25c726(0xd4))/0x4*(parseInt(_0x25c726(0xb0))/0x5)+-parseInt(_0x25c726(0xd0))/0x6*(parseInt(_0x25c726(0x88))/0x7)+-parseInt(_0x25c726(0xbd))/0x8*(-parseInt(_0x25c726(0x9e))/0x9)+parseInt(_0x25c726(0x83))/0xa*(-parseInt(_0x25c726(0xbb))/0xb)+parseInt(_0x25c726(0xc7))/0xc*(parseInt(_0x25c726(0x91))/0xd);if(_0x2df6e9===_0x1dc659)break;else _0x5876c6['push'](_0x5876c6['shift']());}catch(_0x4e1ee8){_0x5876c6['push'](_0x5876c6['shift']());}}}(_0x4cf7,0xf048b));import{ButtonView as _0x2b6b93,clickOutsideHandler as _0x5b733e,View as _0xb928c8}from'ckeditor5/src/ui.js';function _0x4cf7(){const _0x2d2823=['isLoading','change:isLoading','abortPromptStream','setAddContextOptions','1048971geQauh','27386CGeWlq','45cjoRjI','_createPromptCapabilitiesView','addContextButtonView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isModelAvailable','setConversationContext','locale','setModel','_promptCapabilitiesView','_displayedModels','find','setContextItemLoading','_createModelUnavailableMessageView','element','agent','_createContextPanelView','delegate','clearCurrentContextItems','5PUdKDm','_promptInputView','clearConversationContextItems','set','reset','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','_createPromptInputView','execute','_contextPanelView','670076MAfaOZ','form','1212296KWXcNZ','addContextItem','low','ck-ai-chat-controls__start-new-chat-button','_shouldRestorePromptInputFocus','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls','toggleWebSearch','_handlePromptInputFocus','setTemplate','13443888ylQwKV','selectModel','populateSourceResourceBalloon','toggleReasoning','resetMessageInput','updateResourceState','ck-ai-chat-controls-model-unavailable-message','setIsUploadInProgress','removeContextItem','9474984VwhIRV','sendUserMessage','closeSourceResourceBalloon','div','14932hKOWEe','bindTemplate','isDisabled','230weaPMf','ck-ai-chat-controls-disabled','setInputPlaceholder','bodyCollection','setWebSearch','7HCIStC','focusPromptInput','setReasoning','focus','startsWith','setPlaceholderText','_loaderView','_createLoaderView','clearPendingContextUI','39vPQTBv','clearConversationContextUI','14vSmqym','setModelList','startConversation','_modelUnavailableMessageView','enableModelSelector'];_0x4cf7=function(){return _0x2d2823;};return _0x4cf7();}import{AIChatPromptInputView as _0x61d750}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x10b6f2}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x171689,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1d93b9}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x176739}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2a1c00}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0xb928c8{[_0x3d043b(0xa7)]=[];[_0x3d043b(0xba)];[_0x3d043b(0xb1)];[_0x3d043b(0xa6)];[_0x3d043b(0x8e)];[_0x3d043b(0x96)];[_0x3d043b(0xc1)];constructor(_0x5ddfc1,_0x1f2fc0){const _0x19a156=_0x3d043b;super(_0x5ddfc1),this[_0x19a156(0xba)]=this[_0x19a156(0xad)](_0x5ddfc1,{'bodyCollection':_0x1f2fc0[_0x19a156(0x86)],'searchInputVisibleFrom':_0x1f2fc0[_0x19a156(0xc2)]}),this[_0x19a156(0xb1)]=this[_0x19a156(0xb8)](_0x5ddfc1),this[_0x19a156(0xa6)]=this[_0x19a156(0x9f)](_0x5ddfc1),this[_0x19a156(0x8e)]=this[_0x19a156(0x8f)](_0x5ddfc1),this[_0x19a156(0x96)]=this[_0x19a156(0xaa)](_0x5ddfc1),this[_0x19a156(0xc1)]=!0x1,this[_0x19a156(0xb1)][_0x19a156(0xae)](_0x19a156(0xd1))['to'](this),this[_0x19a156(0x8e)][_0x19a156(0xae)](_0x19a156(0x9a))['to'](this),this[_0x19a156(0xa6)][_0x19a156(0xae)](_0x19a156(0xc4))['to'](this),this[_0x19a156(0xa6)][_0x19a156(0xae)](_0x19a156(0xca))['to'](this),this[_0x19a156(0xa6)][_0x19a156(0xae)](_0x19a156(0xc8))['to'](this),this[_0x19a156(0xba)][_0x19a156(0xae)](..._0x1d93b9)['to'](this),this[_0x19a156(0xb3)](_0x19a156(0xa2),!0x0),this[_0x19a156(0xb3)](_0x19a156(0x82),!0x1);const _0x549f41=this[_0x19a156(0x81)];this[_0x19a156(0xc6)]({'tag':_0x19a156(0xbc),'attributes':{'class':['ck',_0x19a156(0xc3),_0x549f41['if'](_0x19a156(0x82),_0x19a156(0x84))]},'children':[{'tag':_0x19a156(0xd3),'attributes':{'class':[_0x549f41['if'](_0x19a156(0x98),_0x19a156(0xb5),_0x565520=>_0x565520||!this[_0x19a156(0xa2)]),_0x549f41['if'](_0x19a156(0xa2),_0x19a156(0xb5),_0x7fbb96=>!_0x7fbb96||this[_0x19a156(0x98)])]},'children':[this[_0x19a156(0xba)],this[_0x19a156(0xb1)],this[_0x19a156(0xa6)]]},{'tag':_0x19a156(0xd3),'attributes':{'class':[_0x549f41['if'](_0x19a156(0x98),_0x19a156(0xb5),_0x1c0449=>!_0x1c0449)]},'children':[this[_0x19a156(0x8e)]]},{'tag':_0x19a156(0xd3),'attributes':{'class':[_0x549f41['if'](_0x19a156(0xa2),_0x19a156(0xb5),_0x3d8747=>_0x3d8747)]},'children':[this[_0x19a156(0x96)]]}]}),_0x5b733e({'emitter':this[_0x19a156(0xb1)],'activator':()=>this[_0x19a156(0x98)],'contextElements':()=>[this[_0x19a156(0xab)]],'callback':()=>{const _0x84d2a=_0x19a156;this[_0x84d2a(0xc1)]=!0x1;}}),this['on'](_0x19a156(0x99),this[_0x19a156(0xc5)],{'priority':_0x19a156(0xbf)});}[_0x3d043b(0xad)](_0x486332,_0x2abfad){return new _0x171689(_0x486332,_0x2abfad);}[_0x3d043b(0xb8)](_0x1cfe2d){const _0x4674f1=_0x3d043b;return new _0x61d750(_0x1cfe2d,this[_0x4674f1(0xba)][_0x4674f1(0xa0)]);}[_0x3d043b(0x9f)](_0x15d862){return new _0x10b6f2(_0x15d862);}[_0x3d043b(0x8f)](_0x174101){return new _0x176739(_0x174101);}[_0x3d043b(0xaa)](_0x170518){const _0x4ef55f=_0x3d043b,_0x4d8318=new _s(_0x170518);return _0x4d8318[_0x4ef55f(0xae)](_0x4ef55f(0x95))['to'](this),_0x4d8318;}[_0x3d043b(0xc5)](_0xb07059,_0x31cc3f,_0x4a0d64){const _0x3a2f9f=_0x3d043b;_0x4a0d64?this[_0x3a2f9f(0xc1)]=!0x0:this[_0x3a2f9f(0xc1)]&&this[_0x3a2f9f(0xb1)][_0x3a2f9f(0x8b)]();}[_0x3d043b(0xbe)](_0x3853ec,_0x2dc28c){const _0x221e17=_0x3d043b;this[_0x221e17(0xba)][_0x221e17(0xbe)](_0x3853ec,_0x2dc28c);}[_0x3d043b(0xcf)](_0x434887){const _0xf79543=_0x3d043b;this[_0xf79543(0xba)][_0xf79543(0xcf)](_0x434887);}[_0x3d043b(0xa9)](_0x4b8c4f,_0x2c5725){const _0x17dc2b=_0x3d043b;this[_0x17dc2b(0xba)][_0x17dc2b(0xa9)](_0x4b8c4f,_0x2c5725);}[_0x3d043b(0xce)](_0x2f2df2){const _0x42b03a=_0x3d043b;this[_0x42b03a(0xb1)][_0x42b03a(0xce)](_0x2f2df2);}[_0x3d043b(0xa3)](_0x340d95){const _0x519d59=_0x3d043b;this[_0x519d59(0xba)][_0x519d59(0xa3)](_0x340d95);}[_0x3d043b(0x90)](){const _0x58abaa=_0x3d043b;this[_0x58abaa(0xba)][_0x58abaa(0xaf)]();}[_0x3d043b(0x92)](){const _0x30a7ce=_0x3d043b;this[_0x30a7ce(0xba)][_0x30a7ce(0xb2)]();}[_0x3d043b(0xcc)](_0x5dc499,_0x12f9de,_0x1792c2){const _0x2d26cc=_0x3d043b;this[_0x2d26cc(0xba)][_0x2d26cc(0xcc)](_0x5dc499,_0x12f9de,_0x1792c2);}[_0x3d043b(0x87)](_0x29be3d){const _0x551bf5=_0x3d043b;this[_0x551bf5(0xa6)][_0x551bf5(0x87)](_0x29be3d);}[_0x3d043b(0x8a)](_0xf37d3a){const _0x178640=_0x3d043b;this[_0x178640(0xa6)][_0x178640(0x8a)](_0xf37d3a);}[_0x3d043b(0xcb)](){const _0x4d5f03=_0x3d043b;this[_0x4d5f03(0xb1)][_0x4d5f03(0xb4)]();}[_0x3d043b(0x9b)](_0x190cfd){const _0x5d315a=_0x3d043b;this[_0x5d315a(0xba)][_0x5d315a(0x9b)](_0x190cfd);}[_0x3d043b(0x85)](_0x342131){const _0x42a789=_0x3d043b;this[_0x42a789(0xb1)][_0x42a789(0x8d)](_0x342131);}[_0x3d043b(0x94)](_0x3e100d,_0x58a228){const _0x44581d=_0x3d043b;this[_0x44581d(0xa7)]=_0x3e100d,this[_0x44581d(0xa6)][_0x44581d(0x94)](_0x3e100d,_0x58a228);}[_0x3d043b(0xa5)](_0x13935d){const _0x3b169e=_0x3d043b;(_0x13935d?this[_0x3b169e(0xa7)][_0x3b169e(0xa8)](_0x498a69=>_0x498a69['id']===_0x13935d['id']):null)?(this[_0x3b169e(0xa2)]=!0x0,this[_0x3b169e(0xa6)][_0x3b169e(0xa5)](_0x13935d)):_0x13935d?.['id'][_0x3b169e(0x8c)](_0x3b169e(0xac))?(this[_0x3b169e(0xa2)]=!0x0,this[_0x3b169e(0xa6)][_0x3b169e(0xa5)](this[_0x3b169e(0xa7)][0x0])):this[_0x3b169e(0xa2)]=!0x1;}[_0x3d043b(0x97)](){const _0x306753=_0x3d043b;this[_0x306753(0xa6)][_0x306753(0x97)]();}[_0x3d043b(0xb7)](_0x55de2d){const _0x45b543=_0x3d043b;this[_0x45b543(0xa6)][_0x45b543(0xb7)](_0x55de2d);}[_0x3d043b(0xc9)](_0x57ba81,_0x12d1e1,_0x511fc9,_0x52828b){const _0x3f710d=_0x3d043b;this[_0x3f710d(0xba)][_0x3f710d(0xc9)](_0x57ba81,_0x12d1e1,_0x511fc9,_0x52828b);}[_0x3d043b(0xd2)](_0x35cd3f){const _0x58ccb1=_0x3d043b;this[_0x58ccb1(0xba)][_0x58ccb1(0xd2)](_0x35cd3f);}[_0x3d043b(0x89)](){const _0x43aecf=_0x3d043b;this[_0x43aecf(0xb1)][_0x43aecf(0x8b)]();}}function _0x15ba(_0x891a33,_0x49c14a){const _0x4cf781=_0x4cf7();return _0x15ba=function(_0x15bad7,_0x1c0bf0){_0x15bad7=_0x15bad7-0x81;let _0x161066=_0x4cf781[_0x15bad7];return _0x161066;},_0x15ba(_0x891a33,_0x49c14a);}class _s extends _0xb928c8{constructor(_0x54e928){const _0x153636=_0x3d043b;super(_0x54e928);const _0x1a14b8=new _0x2b6b93(_0x54e928);_0x1a14b8[_0x153636(0xb3)]({'label':_0x2a1c00(this[_0x153636(0xa4)],_0x153636(0xb6)),'withText':!0x0,'class':[_0x153636(0xc0)],'tooltip':''}),_0x1a14b8[_0x153636(0xae)](_0x153636(0xb9))['to'](this,_0x153636(0x95)),this[_0x153636(0xc6)]({'tag':_0x153636(0xd3),'attributes':{'class':['ck',_0x153636(0xcd)]},'children':[{'tag':'p','children':[{'text':_0x2a1c00(this[_0x153636(0xa4)],_0x153636(0xa1))+'\x20'},_0x1a14b8]}]});}}
23
+ const _0x589bec=_0x1726;(function(_0x38d4d3,_0x3f9dd7){const _0x532159=_0x1726,_0x31c67b=_0x38d4d3();while(!![]){try{const _0x34d3cb=parseInt(_0x532159(0x218))/0x1*(-parseInt(_0x532159(0x1f7))/0x2)+parseInt(_0x532159(0x1f3))/0x3+parseInt(_0x532159(0x206))/0x4*(-parseInt(_0x532159(0x1de))/0x5)+-parseInt(_0x532159(0x1ee))/0x6*(parseInt(_0x532159(0x213))/0x7)+-parseInt(_0x532159(0x1d2))/0x8+-parseInt(_0x532159(0x208))/0x9*(-parseInt(_0x532159(0x216))/0xa)+-parseInt(_0x532159(0x1e7))/0xb*(-parseInt(_0x532159(0x1f5))/0xc);if(_0x34d3cb===_0x3f9dd7)break;else _0x31c67b['push'](_0x31c67b['shift']());}catch(_0xff7c1e){_0x31c67b['push'](_0x31c67b['shift']());}}}(_0x3cb7,0x9374f));import{ButtonView as _0x491f7f,clickOutsideHandler as _0x4b5afb,View as _0x1b6ddb}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4d7125}from'./controls/aichatpromptinputview.js';function _0x3cb7(){const _0x763121=['855996zXzkhf','setPlaceholderText','122670KhMpip','locale','div','updateResourceState','reset','removeContextItem','set','execute','ck-hidden','resetMessageInput','setModelList','7EDOGdd','ck-ai-chat-controls__start-new-chat-button','_modelUnavailableMessageView','660RDhdPo','toggleReasoning','43BnUeHf','isLoading','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','focusPromptInput','agent','setContextItemLoading','addContextItem','find','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','populateSourceResourceBalloon','startsWith','1548616YKCqqE','bindTemplate','isModelAvailable','element','setIsUploadInProgress','closeSourceResourceBalloon','abortPromptStream','ck-ai-chat-controls','focus','clearConversationContextItems','bodyCollection','_createLoaderView','20KcNhrC','_createPromptInputView','ck-ai-chat-controls-model-unavailable-message','toggleWebSearch','clearConversationContextUI','setModel','setReasoning','setWebSearch','_createModelUnavailableMessageView','11YrnSmo','_promptCapabilitiesView','form','sendUserMessage','_shouldRestorePromptInputFocus','selectModel','delegate','487218vCkmKo','addContextButtonView','_createPromptCapabilitiesView','low','_contextPanelView','3020067RzpoeI','_createContextPanelView','1498668zLawej','contextResourcesSearchInputVisibleFrom','13786JrAIIL','setConversationContext','_promptInputView','_handlePromptInputFocus','clearCurrentContextItems','disableModelSelector','startConversation','_loaderView','setInputPlaceholder','clearPendingContextUI','enableModelSelector','change:isLoading','setTemplate','ck-ai-chat-controls-disabled','isDisabled'];_0x3cb7=function(){return _0x763121;};return _0x3cb7();}import{AIChatPromptCapabilitiesView as _0x134960}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae562,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19e09b}from'./controls/aichatcontextpanelview.js';function _0x1726(_0x15cc67,_0x470ebe){const _0x3cb7cb=_0x3cb7();return _0x1726=function(_0x172662,_0x190850){_0x172662=_0x172662-0x1cc;let _0x48a1ee=_0x3cb7cb[_0x172662];return _0x48a1ee;},_0x1726(_0x15cc67,_0x470ebe);}import{AIChatControlsLoaderView as _0x1361a6}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x425536}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x1b6ddb{[_0x589bec(0x21c)]=[];[_0x589bec(0x1f2)];[_0x589bec(0x1f9)];[_0x589bec(0x1e8)];[_0x589bec(0x1fe)];[_0x589bec(0x215)];[_0x589bec(0x1eb)];constructor(_0x26aab3,_0x1778a3){const _0x10770a=_0x589bec;super(_0x26aab3),this[_0x10770a(0x1f2)]=this[_0x10770a(0x1f4)](_0x26aab3,{'bodyCollection':_0x1778a3[_0x10770a(0x1dc)],'searchInputVisibleFrom':_0x1778a3[_0x10770a(0x1f6)]}),this[_0x10770a(0x1f9)]=this[_0x10770a(0x1df)](_0x26aab3),this[_0x10770a(0x1e8)]=this[_0x10770a(0x1f0)](_0x26aab3),this[_0x10770a(0x1fe)]=this[_0x10770a(0x1dd)](_0x26aab3),this[_0x10770a(0x215)]=this[_0x10770a(0x1e6)](_0x26aab3),this[_0x10770a(0x1eb)]=!0x1,this[_0x10770a(0x1f9)][_0x10770a(0x1ed)](_0x10770a(0x1ea))['to'](this),this[_0x10770a(0x1fe)][_0x10770a(0x1ed)](_0x10770a(0x1d8))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1e1))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x217))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1ec))['to'](this),this[_0x10770a(0x1f2)][_0x10770a(0x1ed)](..._0x19e09b)['to'](this),this[_0x10770a(0x20e)](_0x10770a(0x1d4),!0x0),this[_0x10770a(0x20e)](_0x10770a(0x205),!0x1);const _0x5c19e8=this[_0x10770a(0x1d3)];this[_0x10770a(0x203)]({'tag':_0x10770a(0x1e9),'attributes':{'class':['ck',_0x10770a(0x1d9),_0x5c19e8['if'](_0x10770a(0x205),_0x10770a(0x204))]},'children':[{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0x309014=>_0x309014||!this[_0x10770a(0x1d4)]),_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x49cd0a=>!_0x49cd0a||this[_0x10770a(0x219)])]},'children':[this[_0x10770a(0x1f2)],this[_0x10770a(0x1f9)],this[_0x10770a(0x1e8)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0xab87cf=>!_0xab87cf)]},'children':[this[_0x10770a(0x1fe)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x38bc13=>_0x38bc13)]},'children':[this[_0x10770a(0x215)]]}]}),_0x4b5afb({'emitter':this[_0x10770a(0x1f9)],'activator':()=>this[_0x10770a(0x219)],'contextElements':()=>[this[_0x10770a(0x1d5)]],'callback':()=>{const _0x2bcd23=_0x10770a;this[_0x2bcd23(0x1eb)]=!0x1;}}),this['on'](_0x10770a(0x202),this[_0x10770a(0x1fa)],{'priority':_0x10770a(0x1f1)});}[_0x589bec(0x1f4)](_0x418694,_0x3160e3){return new _0x1ae562(_0x418694,_0x3160e3);}[_0x589bec(0x1df)](_0x15245a){const _0x36c7b8=_0x589bec;return new _0x4d7125(_0x15245a,this[_0x36c7b8(0x1f2)][_0x36c7b8(0x1ef)]);}[_0x589bec(0x1f0)](_0x134f0b){return new _0x134960(_0x134f0b);}[_0x589bec(0x1dd)](_0x182950){return new _0x1361a6(_0x182950);}[_0x589bec(0x1e6)](_0x46acf0){const _0x4b5d52=_0x589bec,_0x4bf262=new gs(_0x46acf0);return _0x4bf262[_0x4b5d52(0x1ed)](_0x4b5d52(0x1fd))['to'](this),_0x4bf262;}[_0x589bec(0x1fa)](_0x4a1ed6,_0x4715d3,_0x68fa4d){const _0x1eb8ef=_0x589bec;_0x68fa4d?this[_0x1eb8ef(0x1eb)]=!0x0:this[_0x1eb8ef(0x1eb)]&&this[_0x1eb8ef(0x1f9)][_0x1eb8ef(0x1da)]();}[_0x589bec(0x1cd)](_0x18418e,_0x855fd9){const _0x4c1c7f=_0x589bec;this[_0x4c1c7f(0x1f2)][_0x4c1c7f(0x1cd)](_0x18418e,_0x855fd9);}[_0x589bec(0x20d)](_0x3b38c7){const _0x2435f3=_0x589bec;this[_0x2435f3(0x1f2)][_0x2435f3(0x20d)](_0x3b38c7);}[_0x589bec(0x1cc)](_0x250422,_0x1e0a49){const _0x49ca49=_0x589bec;this[_0x49ca49(0x1f2)][_0x49ca49(0x1cc)](_0x250422,_0x1e0a49);}[_0x589bec(0x1d6)](_0x1a8efc){const _0xe35536=_0x589bec;this[_0xe35536(0x1f9)][_0xe35536(0x1d6)](_0x1a8efc);}[_0x589bec(0x1f8)](_0x5ade9f){const _0x439abf=_0x589bec;this[_0x439abf(0x1f2)][_0x439abf(0x1f8)](_0x5ade9f);}[_0x589bec(0x200)](){const _0x181580=_0x589bec;this[_0x181580(0x1f2)][_0x181580(0x1fb)]();}[_0x589bec(0x1e2)](){const _0x239015=_0x589bec;this[_0x239015(0x1f2)][_0x239015(0x1db)]();}[_0x589bec(0x20b)](_0x305b24,_0x171d96,_0x4c97e4){const _0x53c649=_0x589bec;this[_0x53c649(0x1f2)][_0x53c649(0x20b)](_0x305b24,_0x171d96,_0x4c97e4);}[_0x589bec(0x1e5)](_0x234482){const _0x4f98fe=_0x589bec;this[_0x4f98fe(0x1e8)][_0x4f98fe(0x1e5)](_0x234482);}[_0x589bec(0x1e4)](_0x510704){const _0x2f80a4=_0x589bec;this[_0x2f80a4(0x1e8)][_0x2f80a4(0x1e4)](_0x510704);}[_0x589bec(0x211)](){const _0x413dc7=_0x589bec;this[_0x413dc7(0x1f9)][_0x413dc7(0x20c)]();}[_0x589bec(0x21a)](_0x2709b5){const _0x1d5e3a=_0x589bec;this[_0x1d5e3a(0x1f2)][_0x1d5e3a(0x21a)](_0x2709b5);}[_0x589bec(0x1ff)](_0x195d86){const _0x1e11bd=_0x589bec;this[_0x1e11bd(0x1f9)][_0x1e11bd(0x207)](_0x195d86);}[_0x589bec(0x212)](_0x4ab3f4,_0x27a27e){const _0x1f43b4=_0x589bec;this[_0x1f43b4(0x21c)]=_0x4ab3f4,this[_0x1f43b4(0x1e8)][_0x1f43b4(0x212)](_0x4ab3f4,_0x27a27e);}[_0x589bec(0x1e3)](_0x3f35a0){const _0x3db612=_0x589bec;(_0x3f35a0?this[_0x3db612(0x21c)][_0x3db612(0x1ce)](_0x182e2b=>_0x182e2b['id']===_0x3f35a0['id']):null)?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](_0x3f35a0)):_0x3f35a0?.['id'][_0x3db612(0x1d1)](_0x3db612(0x21e))?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](this[_0x3db612(0x21c)][0x0])):this[_0x3db612(0x1d4)]=!0x1;}[_0x589bec(0x201)](){const _0x86b002=_0x589bec;this[_0x86b002(0x1e8)][_0x86b002(0x201)]();}[_0x589bec(0x1fc)](_0x86d45c){const _0x5ced35=_0x589bec;this[_0x5ced35(0x1e8)][_0x5ced35(0x1fc)](_0x86d45c);}[_0x589bec(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511){const _0x312309=_0x589bec;this[_0x312309(0x1f2)][_0x312309(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511);}[_0x589bec(0x1d7)](_0x2f0508){const _0x55073c=_0x589bec;this[_0x55073c(0x1f2)][_0x55073c(0x1d7)](_0x2f0508);}[_0x589bec(0x21d)](){const _0x4ba8dc=_0x589bec;this[_0x4ba8dc(0x1f9)][_0x4ba8dc(0x1da)]();}}class gs extends _0x1b6ddb{constructor(_0x1556e3){const _0x1ec0cb=_0x589bec;super(_0x1556e3);const _0x3f69cb=new _0x491f7f(_0x1556e3);_0x3f69cb[_0x1ec0cb(0x20e)]({'label':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x1cf)),'withText':!0x0,'class':[_0x1ec0cb(0x214)],'tooltip':''}),_0x3f69cb[_0x1ec0cb(0x1ed)](_0x1ec0cb(0x20f))['to'](this,_0x1ec0cb(0x1fd)),this[_0x1ec0cb(0x203)]({'tag':_0x1ec0cb(0x20a),'attributes':{'class':['ck',_0x1ec0cb(0x1e0)]},'children':[{'tag':'p','children':[{'text':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x21b))+'\x20'},_0x3f69cb]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x339168=_0x3545;function _0x590d(){const _0x4234d5=['updateWebSources','markItemAsDone','createCollection','getPartView','options','4562836MKxGTF','clear','removeItem','1275399NKeWQr','_createFeedItems','553wFarog','ai-chat-feed-view-item-not-a-reply-item','ck-hidden','loadingMessage','_createFeedLoader','549CCnNdU','ck-ai-chat__loader-text','_createLoaderChildren','ck-ai-chat__loader','addItem','span','bindTemplate','195936TFdGua','ai-chat-feed-view-item-not-found','render','updateSuggestionPartState','updateReplyItem','user-message','start','ck-ai-chat__feed__items','markAsDone','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__feed','isPending','updateSources','40569cJMvKo','set','ai-reply','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','destroy','isLoadingSkeletonVisible','children','162QWWVZj','setTemplate','element','scrollToSuggestion','map','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updatePartState','updateContent','134880RoPSPe','45520tLUGMH','scrollManager','ai-suggestion-reply','updateSuggestionItem','stop','19074VSkUXz','bind','5VYvdTD','_setupTemplate','toggleLoadingSkeleton','stopAutoScroll','delegate','add','interaction-header','aiFeed','isVisible','_createSkeletonLoader','includes','find','getItemById','isTrackChangesOn','setLoadingMessage','startAutoScroll','getItemIds','_bodyCollection','_createTemplateChildren','div','remove','extendTemplate','2052iSUXsj','locale','1738JXrPKi'];_0x590d=function(){return _0x4234d5;};return _0x590d();}(function(_0x3e69a1,_0xb80546){const _0x55de54=_0x3545,_0x1d4097=_0x3e69a1();while(!![]){try{const _0x343297=-parseInt(_0x55de54(0x218))/0x1+-parseInt(_0x55de54(0x1e6))/0x2*(parseInt(_0x55de54(0x1df))/0x3)+parseInt(_0x55de54(0x215))/0x4*(parseInt(_0x55de54(0x1f7))/0x5)+-parseInt(_0x55de54(0x1f5))/0x6*(parseInt(_0x55de54(0x21a))/0x7)+-parseInt(_0x55de54(0x1ef))/0x8*(parseInt(_0x55de54(0x1cb))/0x9)+parseInt(_0x55de54(0x1f0))/0xa*(parseInt(_0x55de54(0x20f))/0xb)+parseInt(_0x55de54(0x20d))/0xc*(parseInt(_0x55de54(0x1d2))/0xd);if(_0x343297===_0xb80546)break;else _0x1d4097['push'](_0x1d4097['shift']());}catch(_0x29782f){_0x1d4097['push'](_0x1d4097['shift']());}}}(_0x590d,0xc01ba));import{CKEditorError as _0x2a30e5,logWarning as _0x351b39,scrollViewportToShowTarget as _0x39b4ab}from'ckeditor5/src/utils.js';import{View as _0x533db4}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x321688}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x50457d}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x5c4992}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x372b2f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5c8e4e}from'./feed/aichatfeederroritemview.js';function _0x3545(_0xb28ea3,_0x180f90){const _0x590d68=_0x590d();return _0x3545=function(_0x354509,_0x55feb2){_0x354509=_0x354509-0x1c7;let _0x55a3f6=_0x590d68[_0x354509];return _0x55a3f6;},_0x3545(_0xb28ea3,_0x180f90);}import{AIChatFeedInteractionHeaderView as _0x2093b4}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x42545c}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4e79fe,SKELETON_DEFINITIONS as _0x433432}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x26b240}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x533db4{[_0x339168(0x1e5)];[_0x339168(0x1f1)];[_0x339168(0x208)];constructor(_0x2e48ac,_0x2daa08){const _0x2781c1=_0x339168;super(_0x2e48ac),this[_0x2781c1(0x208)]=_0x2daa08,this[_0x2781c1(0x1e0)](_0x2781c1(0x1dd),!0x1),this[_0x2781c1(0x1e0)](_0x2781c1(0x1c9),''),this[_0x2781c1(0x1e0)](_0x2781c1(0x1e4),!0x1),this[_0x2781c1(0x1e0)](_0x2781c1(0x204),!0x1),this[_0x2781c1(0x1e5)]=this[_0x2781c1(0x212)](),this[_0x2781c1(0x1e5)][_0x2781c1(0x1fb)](..._0x321688)['to'](this),this[_0x2781c1(0x1f8)]();}[_0x339168(0x1d4)](){const _0x2b0dbf=_0x339168;super[_0x2b0dbf(0x1d4)](),this[_0x2b0dbf(0x1f1)]=new _0x42545c(this[_0x2b0dbf(0x1e8)]);}[_0x339168(0x1e3)](){const _0x3fee5b=_0x339168;super[_0x3fee5b(0x1e3)](),this[_0x3fee5b(0x1f1)][_0x3fee5b(0x1e3)]();}[_0x339168(0x216)](){const _0xa8b8c4=_0x339168;this[_0xa8b8c4(0x1e5)][_0xa8b8c4(0x216)]();}[_0x339168(0x1cf)](_0x367032,_0x49ea20){const _0x3577f3=_0x339168;let _0x2dcffc;_0x3577f3(0x1e1)===_0x367032?_0x2dcffc=new _0x5c4992(this[_0x3577f3(0x20e)],_0x49ea20):_0x3577f3(0x1f2)===_0x367032?(_0x2dcffc=new _0x50457d(this[_0x3577f3(0x20e)],_0x49ea20),_0x2dcffc[_0x3577f3(0x1f6)](_0x3577f3(0x204))['to'](this,_0x3577f3(0x204))):_0x2dcffc=_0x3577f3(0x1d7)===_0x367032?new _0x372b2f(this[_0x3577f3(0x20e)],_0x49ea20,this[_0x3577f3(0x208)]):_0x3577f3(0x1fd)===_0x367032?new _0x2093b4(this[_0x3577f3(0x20e)],_0x49ea20):new _0x5c8e4e(_0x49ea20),this[_0x3577f3(0x1e5)][_0x3577f3(0x1fc)](_0x2dcffc);}async[_0x339168(0x1d6)]({id:_0x282703,parsedContent:_0x225838,renderingStrategy:_0x240a2d,abortSignal:_0x7b2d2}){const _0x571918=_0x339168,_0x2bdbb8=this[_0x571918(0x203)](_0x282703);if(!(_0x2bdbb8 instanceof _0x5c4992))throw new _0x2a30e5(_0x571918(0x1c7),null,{'itemView':_0x2bdbb8,'id':_0x282703,'parsedContent':_0x225838});await _0x2bdbb8[_0x571918(0x1ee)]({'parsedContent':_0x225838,'renderingStrategy':_0x240a2d,'abortSignal':_0x7b2d2});}async[_0x339168(0x210)](_0x457b58,_0x11a07b){const _0x4c6421=_0x339168,_0x5c6681=this[_0x4c6421(0x203)](_0x457b58);if(_0x5c6681 instanceof _0x50457d)_0x5c6681[_0x4c6421(0x1de)](_0x11a07b);else{if(!(_0x5c6681 instanceof _0x5c4992))throw new _0x2a30e5(_0x4c6421(0x1e2),null,{'itemView':_0x5c6681,'id':_0x457b58,'sources':_0x11a07b});_0x5c6681[_0x4c6421(0x1de)](_0x11a07b);}}async[_0x339168(0x1f3)]({id:_0x23be62,parts:_0x218771,renderingStrategy:_0xd7dc0f,abortSignal:_0x4cca97}){const _0x15a077=_0x339168,_0x524aad=this[_0x15a077(0x203)](_0x23be62);if(!(_0x524aad instanceof _0x50457d))throw new _0x2a30e5(_0x15a077(0x1db),null,{'itemView':_0x524aad,'id':_0x23be62,'parts':_0x218771});await _0x524aad[_0x15a077(0x1ee)]({'parts':_0x218771,'renderingStrategy':_0xd7dc0f,'abortSignal':_0x4cca97});}[_0x339168(0x1d5)]({id:_0x13c9f5,index:_0x32c86d,state:_0x22d8c0}){const _0x17d642=_0x339168,_0x471770=this[_0x17d642(0x203)](_0x13c9f5);if(!(_0x471770 instanceof _0x50457d))throw new _0x2a30e5(_0x17d642(0x1db),this,{'id':_0x13c9f5});_0x471770[_0x17d642(0x1ed)](_0x32c86d,_0x22d8c0);}[_0x339168(0x211)](_0x2502a5){const _0x46ae34=_0x339168;this[_0x46ae34(0x203)](_0x2502a5)[_0x46ae34(0x1da)]();}[_0x339168(0x207)](){const _0x150894=_0x339168;return this[_0x150894(0x1e5)][_0x150894(0x1ea)](_0x573ec3=>_0x573ec3[_0x150894(0x214)]['id']);}[_0x339168(0x217)](_0x2e4d89){const _0x582bf7=_0x339168;this[_0x582bf7(0x1e5)][_0x582bf7(0x20b)](this[_0x582bf7(0x203)](_0x2e4d89));}[_0x339168(0x1e9)](_0x1f071c,_0xc12422){const _0xa456df=_0x339168,_0x4ffe4e=this[_0xa456df(0x203)](_0x1f071c);if(!(_0x4ffe4e instanceof _0x50457d))return void _0x351b39(_0xa456df(0x1eb),{'replyId':_0x1f071c,'partIndex':_0xc12422});const _0x32ca1b=_0x4ffe4e[_0xa456df(0x213)](_0xc12422);_0x32ca1b?_0x39b4ab({'target':_0x32ca1b[_0xa456df(0x1e8)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x351b39(_0xa456df(0x1ec),{'replyId':_0x1f071c,'partIndex':_0xc12422});}[_0x339168(0x1f8)](){const _0x475b23=_0x339168;this[_0x475b23(0x1e7)]({'tag':_0x475b23(0x20a),'attributes':{'class':['ck',_0x475b23(0x1dc)]},'children':this[_0x475b23(0x209)]()});}[_0x339168(0x209)](){const _0x2ce408=_0x339168,_0x26e340=this[_0x2ce408(0x200)]();return[this[_0x2ce408(0x219)](),_0x26e340,this[_0x2ce408(0x1ca)]()];}[_0x339168(0x200)](){const _0x4e50e2=_0x339168,_0x23cfc3=new _0x4e79fe(this[_0x4e50e2(0x20e)],_0x433432[_0x4e50e2(0x1fe)]);return _0x23cfc3[_0x4e50e2(0x20c)]({'attributes':{'class':[this[_0x4e50e2(0x1d1)]['if'](_0x4e50e2(0x1e4),_0x4e50e2(0x1c8),_0x3a6191=>!_0x3a6191)]}}),_0x23cfc3;}[_0x339168(0x219)](){const _0x4288bc=_0x339168,_0x34dc08=new _0x533db4(this[_0x4288bc(0x20e)]);return _0x34dc08[_0x4288bc(0x1e7)]({'tag':_0x4288bc(0x20a),'attributes':{'class':['ck',_0x4288bc(0x1d9),this[_0x4288bc(0x1d1)]['if'](_0x4288bc(0x1e4),_0x4288bc(0x1c8))]},'children':this[_0x4288bc(0x1e5)]}),_0x34dc08;}[_0x339168(0x1ca)](){const _0x98efc1=_0x339168,_0x5e097c=new _0x533db4(this[_0x98efc1(0x20e)]);return _0x5e097c[_0x98efc1(0x1e7)]({'tag':_0x98efc1(0x20a),'attributes':{'class':['ck',_0x98efc1(0x1ce),this[_0x98efc1(0x1d1)]['if'](_0x98efc1(0x1dd),_0x98efc1(0x1c8),_0x3b3941=>!_0x3b3941)]},'children':this[_0x98efc1(0x1cd)]()}),_0x5e097c;}[_0x339168(0x1cd)](){const _0x419bc1=_0x339168,_0x4c2547=new _0x26b240();return _0x4c2547[_0x419bc1(0x1ff)]=!0x0,[_0x4c2547,{'tag':_0x419bc1(0x1d0),'attributes':{'class':['ck',_0x419bc1(0x1cc)]},'children':[{'text':this[_0x419bc1(0x1d1)]['to'](_0x419bc1(0x1c9))}]}];}[_0x339168(0x203)](_0x4069fa){const _0xc9497c=_0x339168,_0x1ff2ed=this[_0xc9497c(0x1e5)][_0xc9497c(0x202)](_0x34fcea=>_0x34fcea[_0xc9497c(0x214)]['id'][_0xc9497c(0x201)](_0x4069fa));if(!_0x1ff2ed)throw new _0x2a30e5(_0xc9497c(0x1d3),this,{'id':_0x4069fa});return _0x1ff2ed;}[_0x339168(0x205)](_0x5509e7){const _0xb487e4=_0x339168;this[_0xb487e4(0x1e0)](_0xb487e4(0x1c9),_0x5509e7);}[_0x339168(0x1f9)](_0x1fedf2){const _0x4e0c3c=_0x339168;this[_0x4e0c3c(0x1e0)](_0x4e0c3c(0x1e4),_0x1fedf2);}[_0x339168(0x206)](){const _0x1b7298=_0x339168;this[_0x1b7298(0x1f1)][_0x1b7298(0x1d8)]();}[_0x339168(0x1fa)](){const _0x1eed06=_0x339168;this[_0x1eed06(0x1f1)][_0x1eed06(0x1f4)]();}}
23
+ const _0x543a98=_0x41cd;(function(_0x586006,_0x537aca){const _0x347540=_0x41cd,_0x93603c=_0x586006();while(!![]){try{const _0x5aeeec=parseInt(_0x347540(0x13a))/0x1+parseInt(_0x347540(0x150))/0x2+parseInt(_0x347540(0x137))/0x3+-parseInt(_0x347540(0x12d))/0x4*(parseInt(_0x347540(0x10a))/0x5)+parseInt(_0x347540(0x14b))/0x6+-parseInt(_0x347540(0x107))/0x7+parseInt(_0x347540(0x14d))/0x8*(-parseInt(_0x347540(0x136))/0x9);if(_0x5aeeec===_0x537aca)break;else _0x93603c['push'](_0x93603c['shift']());}catch(_0x3defde){_0x93603c['push'](_0x93603c['shift']());}}}(_0x56b0,0xb524a));import{CKEditorError as _0x4f2416,logWarning as _0x5d26b5,scrollViewportToShowTarget as _0x2a20fc}from'ckeditor5/src/utils.js';function _0x56b0(){const _0x39e765=['start','isTrackChangesOn','ai-chat-feed-view-item-not-a-reply-item','markAsDone','addItem','aiFeed','_createTemplateChildren','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionItem','clear','getItemIds','ck-hidden','markItemAsDone','bindTemplate','options','5194104neVHnk','ai-reply','272LQszln','setLoadingMessage','setTemplate','831260FVugrA','locale','remove','stop','isVisible','updateSources','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','8144773gdLRUg','find','interaction-header','4465MhrlBk','updateSuggestionPartState','destroy','add','_createSkeletonLoader','getItemById','removeItem','user-message','scrollManager','element','updateWebSources','startAutoScroll','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-found','getPartView','loadingMessage','updatePartState','_bodyCollection','ck-ai-chat__loader','children','_setupTemplate','_createFeedItems','map','updateContent','toggleLoadingSkeleton','includes','scrollToSuggestion','bind','stopAutoScroll','delegate','updateReplyItem','createCollection','_createFeedLoader','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','render','3532RkGRIz','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','div','isPending','_createLoaderChildren','ai-suggestion-reply','extendTemplate','ck-ai-chat__feed__items','131283MfjjXD','2155881wcMiaA','span','ck-ai-chat__feed','1190037fvwmjX','ck-ai-chat__loader-text'];_0x56b0=function(){return _0x39e765;};return _0x56b0();}import{View as _0x31f453}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xdd73e6}from'../utils/eventnames.js';function _0x41cd(_0x5a9a00,_0x42fff9){const _0x56b034=_0x56b0();return _0x41cd=function(_0x41cd6d,_0x547c4d){_0x41cd6d=_0x41cd6d-0x107;let _0x1db732=_0x56b034[_0x41cd6d];return _0x1db732;},_0x41cd(_0x5a9a00,_0x42fff9);}import{AIChatFeedSuggestionItemView as _0x181727}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4ae46c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4861d1}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5cf404}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x59ecd5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3fb8df}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5ca3d8,SKELETON_DEFINITIONS as _0x4c8f45}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x436d94}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x31f453{[_0x543a98(0x11d)];[_0x543a98(0x112)];[_0x543a98(0x11b)];constructor(_0x586ec9,_0x38822d){const _0x39e14b=_0x543a98;super(_0x586ec9),this[_0x39e14b(0x11b)]=_0x38822d,this[_0x39e14b(0x12e)](_0x39e14b(0x131),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x119),''),this[_0x39e14b(0x12e)](_0x39e14b(0x116),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x13d),!0x1),this[_0x39e14b(0x11d)]=this[_0x39e14b(0x129)](),this[_0x39e14b(0x11d)][_0x39e14b(0x127)](..._0xdd73e6)['to'](this),this[_0x39e14b(0x11e)]();}[_0x543a98(0x12c)](){const _0x1e1117=_0x543a98;super[_0x1e1117(0x12c)](),this[_0x1e1117(0x112)]=new _0x3fb8df(this[_0x1e1117(0x113)]);}[_0x543a98(0x10c)](){const _0x372d4c=_0x543a98;super[_0x372d4c(0x10c)](),this[_0x372d4c(0x112)][_0x372d4c(0x10c)]();}[_0x543a98(0x145)](){const _0x49d091=_0x543a98;this[_0x49d091(0x11d)][_0x49d091(0x145)]();}[_0x543a98(0x140)](_0x1c54b,_0x254c01){const _0x1d9131=_0x543a98;let _0x1b9121;_0x1d9131(0x14c)===_0x1c54b?_0x1b9121=new _0x4ae46c(this[_0x1d9131(0x151)],_0x254c01):_0x1d9131(0x133)===_0x1c54b?(_0x1b9121=new _0x181727(this[_0x1d9131(0x151)],_0x254c01),_0x1b9121[_0x1d9131(0x125)](_0x1d9131(0x13d))['to'](this,_0x1d9131(0x13d))):_0x1b9121=_0x1d9131(0x111)===_0x1c54b?new _0x4861d1(this[_0x1d9131(0x151)],_0x254c01,this[_0x1d9131(0x11b)]):_0x1d9131(0x109)===_0x1c54b?new _0x59ecd5(this[_0x1d9131(0x151)],_0x254c01):new _0x5cf404(_0x254c01),this[_0x1d9131(0x11d)][_0x1d9131(0x10d)](_0x1b9121);}async[_0x543a98(0x128)]({id:_0x49cddc,parsedContent:_0x39c66a,renderingStrategy:_0x5799e2,abortSignal:_0x24f6e5}){const _0x2e0859=_0x543a98,_0x533742=this[_0x2e0859(0x10f)](_0x49cddc);if(!(_0x533742 instanceof _0x4ae46c))throw new _0x4f2416(_0x2e0859(0x13e),null,{'itemView':_0x533742,'id':_0x49cddc,'parsedContent':_0x39c66a});await _0x533742[_0x2e0859(0x121)]({'parsedContent':_0x39c66a,'renderingStrategy':_0x5799e2,'abortSignal':_0x24f6e5});}async[_0x543a98(0x114)](_0x27821a,_0x1c6f82){const _0x213e21=_0x543a98,_0x4eb787=this[_0x213e21(0x10f)](_0x27821a);if(_0x4eb787 instanceof _0x181727)_0x4eb787[_0x213e21(0x155)](_0x1c6f82);else{if(!(_0x4eb787 instanceof _0x4ae46c))throw new _0x4f2416(_0x213e21(0x156),null,{'itemView':_0x4eb787,'id':_0x27821a,'sources':_0x1c6f82});_0x4eb787[_0x213e21(0x155)](_0x1c6f82);}}async[_0x543a98(0x144)]({id:_0x41a67a,parts:_0x22e67c,renderingStrategy:_0xe74a1c,abortSignal:_0x510372}){const _0x434c21=_0x543a98,_0x54da29=this[_0x434c21(0x10f)](_0x41a67a);if(!(_0x54da29 instanceof _0x181727))throw new _0x4f2416(_0x434c21(0x143),null,{'itemView':_0x54da29,'id':_0x41a67a,'parts':_0x22e67c});await _0x54da29[_0x434c21(0x121)]({'parts':_0x22e67c,'renderingStrategy':_0xe74a1c,'abortSignal':_0x510372});}[_0x543a98(0x10b)]({id:_0x5c8686,index:_0x19216f,state:_0x543d02}){const _0x95f0ec=_0x543a98,_0x533cff=this[_0x95f0ec(0x10f)](_0x5c8686);if(!(_0x533cff instanceof _0x181727))throw new _0x4f2416(_0x95f0ec(0x143),this,{'id':_0x5c8686});_0x533cff[_0x95f0ec(0x11a)](_0x19216f,_0x543d02);}[_0x543a98(0x148)](_0x21e7d7){const _0x41651a=_0x543a98;this[_0x41651a(0x10f)](_0x21e7d7)[_0x41651a(0x13f)]();}[_0x543a98(0x146)](){const _0x44890c=_0x543a98;return this[_0x44890c(0x11d)][_0x44890c(0x120)](_0x1f8716=>_0x1f8716[_0x44890c(0x14a)]['id']);}[_0x543a98(0x110)](_0x19fc7d){const _0xce94f3=_0x543a98;this[_0xce94f3(0x11d)][_0xce94f3(0x152)](this[_0xce94f3(0x10f)](_0x19fc7d));}[_0x543a98(0x124)](_0x2c7e3c,_0x366dc2){const _0x460208=_0x543a98,_0x1ec90a=this[_0x460208(0x10f)](_0x2c7e3c);if(!(_0x1ec90a instanceof _0x181727))return void _0x5d26b5(_0x460208(0x12f),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});const _0x541d6f=_0x1ec90a[_0x460208(0x118)](_0x366dc2);_0x541d6f?_0x2a20fc({'target':_0x541d6f[_0x460208(0x113)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5d26b5(_0x460208(0x12b),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});}[_0x543a98(0x11e)](){const _0x47c93e=_0x543a98;this[_0x47c93e(0x14f)]({'tag':_0x47c93e(0x130),'attributes':{'class':['ck',_0x47c93e(0x139)]},'children':this[_0x47c93e(0x142)]()});}[_0x543a98(0x142)](){const _0xa1814=_0x543a98,_0x5101ca=this[_0xa1814(0x10e)]();return[this[_0xa1814(0x11f)](),_0x5101ca,this[_0xa1814(0x12a)]()];}[_0x543a98(0x10e)](){const _0x557cc8=_0x543a98,_0x3fd7df=new _0x5ca3d8(this[_0x557cc8(0x151)],_0x4c8f45[_0x557cc8(0x141)]);return _0x3fd7df[_0x557cc8(0x134)]({'attributes':{'class':[this[_0x557cc8(0x149)]['if'](_0x557cc8(0x116),_0x557cc8(0x147),_0x16e8a8=>!_0x16e8a8)]}}),_0x3fd7df;}[_0x543a98(0x11f)](){const _0x1c8ebc=_0x543a98,_0x592830=new _0x31f453(this[_0x1c8ebc(0x151)]);return _0x592830[_0x1c8ebc(0x14f)]({'tag':_0x1c8ebc(0x130),'attributes':{'class':['ck',_0x1c8ebc(0x135),this[_0x1c8ebc(0x149)]['if'](_0x1c8ebc(0x116),_0x1c8ebc(0x147))]},'children':this[_0x1c8ebc(0x11d)]}),_0x592830;}[_0x543a98(0x12a)](){const _0x3c336f=_0x543a98,_0x5d76b6=new _0x31f453(this[_0x3c336f(0x151)]);return _0x5d76b6[_0x3c336f(0x14f)]({'tag':_0x3c336f(0x130),'attributes':{'class':['ck',_0x3c336f(0x11c),this[_0x3c336f(0x149)]['if'](_0x3c336f(0x131),_0x3c336f(0x147),_0x11efe6=>!_0x11efe6)]},'children':this[_0x3c336f(0x132)]()}),_0x5d76b6;}[_0x543a98(0x132)](){const _0x2eb358=_0x543a98,_0x3f9cb4=new _0x436d94();return _0x3f9cb4[_0x2eb358(0x154)]=!0x0,[_0x3f9cb4,{'tag':_0x2eb358(0x138),'attributes':{'class':['ck',_0x2eb358(0x13b)]},'children':[{'text':this[_0x2eb358(0x149)]['to'](_0x2eb358(0x119))}]}];}[_0x543a98(0x10f)](_0x139ad6){const _0x42ab78=_0x543a98,_0x274849=this[_0x42ab78(0x11d)][_0x42ab78(0x108)](_0x1d844e=>_0x1d844e[_0x42ab78(0x14a)]['id'][_0x42ab78(0x123)](_0x139ad6));if(!_0x274849)throw new _0x4f2416(_0x42ab78(0x117),this,{'id':_0x139ad6});return _0x274849;}[_0x543a98(0x14e)](_0x1453b1){const _0x53a364=_0x543a98;this[_0x53a364(0x12e)](_0x53a364(0x119),_0x1453b1);}[_0x543a98(0x122)](_0x17e3c2){const _0x437b9e=_0x543a98;this[_0x437b9e(0x12e)](_0x437b9e(0x116),_0x17e3c2);}[_0x543a98(0x115)](){const _0x29087e=_0x543a98;this[_0x29087e(0x112)][_0x29087e(0x13c)]();}[_0x543a98(0x126)](){const _0x343cfe=_0x543a98;this[_0x343cfe(0x112)][_0x343cfe(0x153)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47f5(_0x215777,_0x551bbb){const _0x3966dd=_0x3966();return _0x47f5=function(_0x47f5f2,_0x51ad57){_0x47f5f2=_0x47f5f2-0x140;let _0xfc65f7=_0x3966dd[_0x47f5f2];return _0xfc65f7;},_0x47f5(_0x215777,_0x551bbb);}const _0x1f3ca2=_0x47f5;(function(_0x1d48ac,_0x3255ba){const _0x4749c9=_0x47f5,_0xd371eb=_0x1d48ac();while(!![]){try{const _0x14977e=-parseInt(_0x4749c9(0x150))/0x1*(-parseInt(_0x4749c9(0x152))/0x2)+parseInt(_0x4749c9(0x159))/0x3+-parseInt(_0x4749c9(0x143))/0x4*(parseInt(_0x4749c9(0x154))/0x5)+parseInt(_0x4749c9(0x142))/0x6*(parseInt(_0x4749c9(0x14a))/0x7)+-parseInt(_0x4749c9(0x148))/0x8*(parseInt(_0x4749c9(0x15a))/0x9)+-parseInt(_0x4749c9(0x155))/0xa+parseInt(_0x4749c9(0x14c))/0xb*(-parseInt(_0x4749c9(0x156))/0xc);if(_0x14977e===_0x3255ba)break;else _0xd371eb['push'](_0xd371eb['shift']());}catch(_0x23f9b2){_0xd371eb['push'](_0xd371eb['shift']());}}}(_0x3966,0x1dd52));import{ButtonView as _0x3cfe16,FormHeaderView as _0x3b0224}from'ckeditor5/src/ui.js';import{IconPlus as _0x1e14ec,IconAIChat as _0x178693}from'ckeditor5/src/icons.js';import{getTranslation as _0x2cdccc}from'../../aicore/utils/common-translations.js';function _0x3966(){const _0x2330bf=['fire','3444IakEbz','add','11NtUeOP','isMaximized','AI_CHAT_HEADING','locale','42782MITNOa','AI_CHAT_LABEL_NEW_CHAT','8UgnBUM','execute','3385KhZHWq','1797040tbeJiL','1266396lCnizK','set','children','672564iqfZbF','41733efOxIM','ck-ai-header\x20ck-ai-header_chat','_createStartConversationButton','2364cLSrxJ','608cEoHpx','startConversation','resizeButton','conversationStartButton','ck-ai-chat__start-conversation','136QePuEw'];_0x3966=function(){return _0x2330bf;};return _0x3966();}import{createResizeButton as _0x34ceca}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x3b0224{[_0x1f3ca2(0x146)];[_0x1f3ca2(0x145)];constructor(_0x5523e9,_0x3ade20){const _0x2f4830=_0x1f3ca2;super(_0x5523e9,{'label':_0x2cdccc(_0x5523e9,_0x2f4830(0x14e)),'class':_0x2f4830(0x140),'icon':_0x178693}),this[_0x2f4830(0x157)](_0x2f4830(0x14d),!0x1),this[_0x2f4830(0x146)]=this[_0x2f4830(0x141)](_0x5523e9),this[_0x2f4830(0x158)][_0x2f4830(0x14b)](this[_0x2f4830(0x146)]),_0x3ade20&&(this[_0x2f4830(0x145)]=_0x34ceca(_0x5523e9,this),this[_0x2f4830(0x158)][_0x2f4830(0x14b)](this[_0x2f4830(0x145)]));}[_0x1f3ca2(0x141)](_0x47b6d6){const _0x20cf2d=_0x1f3ca2,_0x1c6814=new _0x3cfe16(_0x47b6d6);return _0x1c6814[_0x20cf2d(0x157)]({'label':_0x2cdccc(this[_0x20cf2d(0x14f)],_0x20cf2d(0x151)),'withText':!0x0,'icon':_0x1e14ec,'class':_0x20cf2d(0x147)}),_0x1c6814['on'](_0x20cf2d(0x153),()=>{const _0x4601b7=_0x20cf2d;this[_0x4601b7(0x149)](_0x4601b7(0x144));}),_0x1c6814;}}
23
+ const _0x3970fc=_0x16ad;(function(_0x530b24,_0x59c7a5){const _0x397e8d=_0x16ad,_0x1a7399=_0x530b24();while(!![]){try{const _0x1e4821=-parseInt(_0x397e8d(0x1cf))/0x1*(parseInt(_0x397e8d(0x1c8))/0x2)+parseInt(_0x397e8d(0x1c3))/0x3+-parseInt(_0x397e8d(0x1c4))/0x4*(-parseInt(_0x397e8d(0x1c5))/0x5)+-parseInt(_0x397e8d(0x1d6))/0x6*(-parseInt(_0x397e8d(0x1d2))/0x7)+-parseInt(_0x397e8d(0x1c7))/0x8*(parseInt(_0x397e8d(0x1ce))/0x9)+-parseInt(_0x397e8d(0x1c9))/0xa*(parseInt(_0x397e8d(0x1ca))/0xb)+parseInt(_0x397e8d(0x1c2))/0xc;if(_0x1e4821===_0x59c7a5)break;else _0x1a7399['push'](_0x1a7399['shift']());}catch(_0x1d81b8){_0x1a7399['push'](_0x1a7399['shift']());}}}(_0x4079,0x95743));import{ButtonView as _0x36663c,FormHeaderView as _0x591679}from'ckeditor5/src/ui.js';function _0x4079(){const _0x212acf=['1275528qwkxZY','358196azxQYV','25SJmGjN','children','2342704LHugGw','1118462ypVCKk','160CyUYxN','799557cstNVt','execute','set','ck-ai-chat__start-conversation','36vFykJo','1OBZRdh','startConversation','AI_CHAT_LABEL_NEW_CHAT','1995fbhekk','add','AI_CHAT_HEADING','isMaximized','7374JdrhMb','fire','ck-ai-header\x20ck-ai-header_chat','resizeButton','conversationStartButton','_createStartConversationButton','locale','27390624AwJqDD'];_0x4079=function(){return _0x212acf;};return _0x4079();}import{IconPlus as _0x8e7d13,IconAIChat as _0x1fc793}from'ckeditor5/src/icons.js';import{getTranslation as _0x25fd05}from'../../aicore/utils/common-translations.js';function _0x16ad(_0x577bba,_0x116256){const _0x40790c=_0x4079();return _0x16ad=function(_0x16add5,_0x1a50a2){_0x16add5=_0x16add5-0x1be;let _0x218800=_0x40790c[_0x16add5];return _0x218800;},_0x16ad(_0x577bba,_0x116256);}import{createResizeButton as _0x13571c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x591679{[_0x3970fc(0x1bf)];[_0x3970fc(0x1be)];constructor(_0x2186ad,_0x3039d5){const _0x2c53da=_0x3970fc;super(_0x2186ad,{'label':_0x25fd05(_0x2186ad,_0x2c53da(0x1d4)),'class':_0x2c53da(0x1d8),'icon':_0x1fc793}),this[_0x2c53da(0x1cc)](_0x2c53da(0x1d5),!0x1),this[_0x2c53da(0x1bf)]=this[_0x2c53da(0x1c0)](_0x2186ad),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1bf)]),_0x3039d5&&(this[_0x2c53da(0x1be)]=_0x13571c(_0x2186ad,this),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1be)]));}[_0x3970fc(0x1c0)](_0x2fbf30){const _0x1f07f5=_0x3970fc,_0x818856=new _0x36663c(_0x2fbf30);return _0x818856[_0x1f07f5(0x1cc)]({'label':_0x25fd05(this[_0x1f07f5(0x1c1)],_0x1f07f5(0x1d1)),'withText':!0x0,'icon':_0x8e7d13,'class':_0x1f07f5(0x1cd)}),_0x818856['on'](_0x1f07f5(0x1cb),()=>{const _0x18a850=_0x1f07f5;this[_0x18a850(0x1d7)](_0x18a850(0x1d0));}),_0x818856;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x475d3=_0x2aec;(function(_0x40ea96,_0x2bbae8){var _0x2aa56f=_0x2aec,_0x3ab2fb=_0x40ea96();while(!![]){try{var _0x12e432=parseInt(_0x2aa56f(0x12d))/0x1+-parseInt(_0x2aa56f(0x125))/0x2+parseInt(_0x2aa56f(0x11f))/0x3*(parseInt(_0x2aa56f(0x117))/0x4)+-parseInt(_0x2aa56f(0x118))/0x5+-parseInt(_0x2aa56f(0x131))/0x6*(-parseInt(_0x2aa56f(0x127))/0x7)+-parseInt(_0x2aa56f(0x12a))/0x8+parseInt(_0x2aa56f(0x11c))/0x9;if(_0x12e432===_0x2bbae8)break;else _0x3ab2fb['push'](_0x3ab2fb['shift']());}catch(_0x836372){_0x3ab2fb['push'](_0x3ab2fb['shift']());}}}(_0x1715,0x38ca0));import{View as _0x444791,BodyCollection as _0x26b0a8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d968c}from'../utils/eventnames.js';function _0x1715(){var _0x31f656=['uiLanguageDirection','14652MYsoxt','showResizeButton','528832wLimJB','2045375IFBpak','populateSourceResourceBalloon','_bodyCollection','delegate','3964518RIvlJD','ck-ai-chat','ck-rounded-corners','3JJRqZc','destroy','attachToDom','ck-reset_all','chatDisclaimer','chatFeed','218372NHAMAP','chatHeader','42jTnwAT','setTemplate','contextResourcesSearchInputVisibleFrom','442480KGxpYj','chatControls','detachFromDom','218817GlzPPd','closeSourceResourceBalloon','div'];_0x1715=function(){return _0x31f656;};return _0x1715();}import{AIChatFeedView as _0x5652b5}from'./aichatfeedview.js';import{AIChatControlsView as _0xc6cc86}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x617da3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4cf801}from'../../aicore/ui/aidisclaimerview.js';function _0x2aec(_0x27aee7,_0x5cf6e6){var _0x171543=_0x1715();return _0x2aec=function(_0x2aec8d,_0x42df93){_0x2aec8d=_0x2aec8d-0x117;var _0x2f7944=_0x171543[_0x2aec8d];return _0x2f7944;},_0x2aec(_0x27aee7,_0x5cf6e6);}export class AIChatView extends _0x444791{[_0x475d3(0x126)];[_0x475d3(0x124)];[_0x475d3(0x12b)];[_0x475d3(0x123)];[_0x475d3(0x11a)];constructor(_0x3e8ee0,_0x396422){var _0x3f3a5e=_0x475d3;super(_0x3e8ee0),this[_0x3f3a5e(0x11a)]=new _0x26b0a8(_0x3e8ee0),this[_0x3f3a5e(0x11a)][_0x3f3a5e(0x121)](),this[_0x3f3a5e(0x126)]=new _0x617da3(_0x3e8ee0,_0x396422[_0x3f3a5e(0x132)]),this[_0x3f3a5e(0x126)][_0x3f3a5e(0x11b)](..._0x5d968c)['to'](this),this[_0x3f3a5e(0x124)]=new _0x5652b5(_0x3e8ee0,this[_0x3f3a5e(0x11a)]),this[_0x3f3a5e(0x124)][_0x3f3a5e(0x11b)](..._0x5d968c)['to'](this),this[_0x3f3a5e(0x12b)]=new _0xc6cc86(_0x3e8ee0,{'bodyCollection':this[_0x3f3a5e(0x11a)],'contextResourcesSearchInputVisibleFrom':_0x396422[_0x3f3a5e(0x129)]}),this[_0x3f3a5e(0x12b)][_0x3f3a5e(0x11b)](..._0x5d968c)['to'](this),this[_0x3f3a5e(0x123)]=new _0x4cf801(_0x3e8ee0),this[_0x3f3a5e(0x128)]({'tag':_0x3f3a5e(0x12f),'attributes':{'class':['ck',_0x3f3a5e(0x122),_0x3f3a5e(0x11d),_0x3f3a5e(0x11e)],'dir':_0x3e8ee0[_0x3f3a5e(0x130)]},'children':[this[_0x3f3a5e(0x126)],this[_0x3f3a5e(0x124)],this[_0x3f3a5e(0x12b)],this[_0x3f3a5e(0x123)]]});}[_0x475d3(0x119)](_0x557ce0,_0x22efdc,_0x540682,_0x14f9d9){var _0x4cfb5f=_0x475d3;this[_0x4cfb5f(0x12b)][_0x4cfb5f(0x119)](_0x557ce0,_0x22efdc,_0x540682,_0x14f9d9);}[_0x475d3(0x12e)](_0x524fe0){var _0xbd8daf=_0x475d3;this[_0xbd8daf(0x12b)][_0xbd8daf(0x12e)](_0x524fe0);}[_0x475d3(0x120)](){var _0x3506d6=_0x475d3;this[_0x3506d6(0x11a)][_0x3506d6(0x12c)](),super[_0x3506d6(0x120)]();}}
23
+ var _0x33bdac=_0xa8fd;(function(_0x299098,_0x5990a0){var _0x2c2139=_0xa8fd,_0x415395=_0x299098();while(!![]){try{var _0x195d75=-parseInt(_0x2c2139(0x1aa))/0x1*(parseInt(_0x2c2139(0x1b9))/0x2)+parseInt(_0x2c2139(0x1b6))/0x3+-parseInt(_0x2c2139(0x1ba))/0x4+parseInt(_0x2c2139(0x1af))/0x5*(-parseInt(_0x2c2139(0x1a9))/0x6)+-parseInt(_0x2c2139(0x1ae))/0x7*(-parseInt(_0x2c2139(0x1b1))/0x8)+-parseInt(_0x2c2139(0x1a2))/0x9*(parseInt(_0x2c2139(0x1ab))/0xa)+parseInt(_0x2c2139(0x1a7))/0xb;if(_0x195d75===_0x5990a0)break;else _0x415395['push'](_0x415395['shift']());}catch(_0x53d0b8){_0x415395['push'](_0x415395['shift']());}}}(_0x52fc,0xbefd6));import{View as _0x4ba800,BodyCollection as _0x54f60b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2b1d20}from'../utils/eventnames.js';function _0xa8fd(_0xc455e,_0x1f5802){var _0x52fc24=_0x52fc();return _0xa8fd=function(_0xa8fd44,_0x437618){_0xa8fd44=_0xa8fd44-0x1a1;var _0x529eda=_0x52fc24[_0xa8fd44];return _0x529eda;},_0xa8fd(_0xc455e,_0x1f5802);}import{AIChatFeedView as _0xfe5ac5}from'./aichatfeedview.js';import{AIChatControlsView as _0x1d650b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x288460}from'./aichatheaderview.js';import{AIDisclaimerView as _0x34b883}from'../../aicore/ui/aidisclaimerview.js';function _0x52fc(){var _0x2e0fec=['uiLanguageDirection','chatHeader','4104835xSDkOs','4329905JJHhcZ','ck-rounded-corners','16SaBOYw','destroy','detachFromDom','div','chatDisclaimer','2741358ZaHgqf','_bodyCollection','attachToDom','72578pCAJVR','5275992HuDwAq','showResizeButton','chatFeed','setTemplate','contextResourcesSearchInputVisibleFrom','ck-reset_all','9QJmhTO','delegate','ck-ai-chat','populateSourceResourceBalloon','chatControls','22694441tMMTRy','closeSourceResourceBalloon','6JhttKT','31HCLItl','574950IJCdee'];_0x52fc=function(){return _0x2e0fec;};return _0x52fc();}export class AIChatView extends _0x4ba800{[_0x33bdac(0x1ad)];[_0x33bdac(0x1bc)];[_0x33bdac(0x1a6)];[_0x33bdac(0x1b5)];[_0x33bdac(0x1b7)];constructor(_0xfd6d5c,_0x50f749){var _0x1ea2e9=_0x33bdac;super(_0xfd6d5c),this[_0x1ea2e9(0x1b7)]=new _0x54f60b(_0xfd6d5c),this[_0x1ea2e9(0x1b7)][_0x1ea2e9(0x1b8)](),this[_0x1ea2e9(0x1ad)]=new _0x288460(_0xfd6d5c,_0x50f749[_0x1ea2e9(0x1bb)]),this[_0x1ea2e9(0x1ad)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1bc)]=new _0xfe5ac5(_0xfd6d5c,this[_0x1ea2e9(0x1b7)]),this[_0x1ea2e9(0x1bc)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1a6)]=new _0x1d650b(_0xfd6d5c,{'bodyCollection':this[_0x1ea2e9(0x1b7)],'contextResourcesSearchInputVisibleFrom':_0x50f749[_0x1ea2e9(0x1be)]}),this[_0x1ea2e9(0x1a6)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1b5)]=new _0x34b883(_0xfd6d5c),this[_0x1ea2e9(0x1bd)]({'tag':_0x1ea2e9(0x1b4),'attributes':{'class':['ck',_0x1ea2e9(0x1a1),_0x1ea2e9(0x1a4),_0x1ea2e9(0x1b0)],'dir':_0xfd6d5c[_0x1ea2e9(0x1ac)]},'children':[this[_0x1ea2e9(0x1ad)],this[_0x1ea2e9(0x1bc)],this[_0x1ea2e9(0x1a6)],this[_0x1ea2e9(0x1b5)]]});}[_0x33bdac(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b){var _0xe42ae=_0x33bdac;this[_0xe42ae(0x1a6)][_0xe42ae(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b);}[_0x33bdac(0x1a8)](_0x3ecc88){var _0xdf4eb=_0x33bdac;this[_0xdf4eb(0x1a6)][_0xdf4eb(0x1a8)](_0x3ecc88);}[_0x33bdac(0x1b2)](){var _0x11876b=_0x33bdac;this[_0x11876b(0x1b7)][_0x11876b(0x1b3)](),super[_0x11876b(0x1b2)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a4174=_0x4eb0;(function(_0xed0e40,_0x5578b9){const _0x37388a=_0x4eb0,_0x508fdc=_0xed0e40();while(!![]){try{const _0x24de24=-parseInt(_0x37388a(0xfa))/0x1+parseInt(_0x37388a(0xbf))/0x2*(-parseInt(_0x37388a(0x150))/0x3)+parseInt(_0x37388a(0x115))/0x4+-parseInt(_0x37388a(0x142))/0x5*(-parseInt(_0x37388a(0x143))/0x6)+-parseInt(_0x37388a(0xfd))/0x7*(-parseInt(_0x37388a(0xfb))/0x8)+-parseInt(_0x37388a(0xd6))/0x9*(-parseInt(_0x37388a(0x12b))/0xa)+-parseInt(_0x37388a(0x138))/0xb;if(_0x24de24===_0x5578b9)break;else _0x508fdc['push'](_0x508fdc['shift']());}catch(_0x4582bb){_0x508fdc['push'](_0x508fdc['shift']());}}}(_0x46ba,0xf1a9e));import{View as _0x50a14b,BalloonPanelView as _0x14a156,ButtonView as _0x31d900,clickOutsideHandler as _0x1f9633}from'ckeditor5/src/ui.js';import{Collection as _0x4f0b70}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x4a4174(0x12e);export class AIChatChipsOverflowManager{[_0x4a4174(0x14c)];[_0x4a4174(0xc8)];[_0x4a4174(0x13b)];[_0x4a4174(0xcf)];[_0x4a4174(0x141)]=null;[_0x4a4174(0xc3)]=null;[_0x4a4174(0x12d)]=null;[_0x4a4174(0x134)];[_0x4a4174(0x11a)]=null;[_0x4a4174(0xe4)]=null;[_0x4a4174(0x14f)]=!0x1;constructor(_0x180bfb,_0x2f15e7,_0x42e66d,_0x2c229b,_0x5494c5){const _0x5c0d79=_0x4a4174;this[_0x5c0d79(0x14c)]=_0x180bfb,this[_0x5c0d79(0x13b)]=_0x2f15e7,this[_0x5c0d79(0xc8)]={...wn,..._0x42e66d,'cssClasses':{'controlsButton':'','calculationContainer':_0x5c0d79(0x118),..._0x42e66d[_0x5c0d79(0x103)]}},this[_0x5c0d79(0xcf)]=new _0x4f0b70(),this[_0x5c0d79(0x134)]=_0x2c229b,this[_0x5c0d79(0x11a)]=_0x5494c5||null;}[_0x4a4174(0xf9)](_0x3a13da){const _0x10b1b9=_0x4a4174;this[_0x10b1b9(0xe4)]&&(this[_0x10b1b9(0xe4)][_0x10b1b9(0xc5)](),this[_0x10b1b9(0xe4)]=null),this[_0x10b1b9(0x12d)]=_0x3a13da,this[_0x10b1b9(0x14e)]();}get[_0x4a4174(0xc0)](){const _0x73822e=_0x4a4174;return this[_0x73822e(0x141)];}get[_0x4a4174(0xc1)](){const _0x4e2531=_0x4a4174;return this[_0x4e2531(0xcf)];}[_0x4a4174(0x107)](){requestAnimationFrame(()=>{const _0x8bcc29=_0x4eb0;this[_0x8bcc29(0x10a)]();});}[_0x4a4174(0xe9)](){const _0x3a9a33=_0x4a4174;this[_0x3a9a33(0x141)]&&this[_0x3a9a33(0xc3)]&&(this[_0x3a9a33(0xcb)](),this[_0x3a9a33(0x141)][_0x3a9a33(0xf8)]=!0x0,this[_0x3a9a33(0xc3)][_0x3a9a33(0x137)](),this[_0x3a9a33(0xc3)][_0x3a9a33(0xc7)]({'target':this[_0x3a9a33(0x141)][_0x3a9a33(0xe0)],'limiter':document[_0x3a9a33(0x132)](_0x3a9a33(0x126))}));}[_0x4a4174(0xcd)](){const _0x55ddd2=_0x4a4174;this[_0x55ddd2(0x141)]&&this[_0x55ddd2(0xc3)]&&(this[_0x55ddd2(0x141)][_0x55ddd2(0xf8)]=!0x1,this[_0x55ddd2(0xc3)][_0x55ddd2(0xe2)]());}[_0x4a4174(0x145)](){const _0x991fc3=_0x4a4174;this[_0x991fc3(0xcf)][_0x991fc3(0x145)](),this[_0x991fc3(0xcd)](),this[_0x991fc3(0x13c)](),this[_0x991fc3(0x141)]&&(this[_0x991fc3(0x141)][_0x991fc3(0xff)]=''),this[_0x991fc3(0xc3)]&&this[_0x991fc3(0xc3)][_0x991fc3(0xf2)][_0x991fc3(0x145)]();}[_0x4a4174(0xf6)](){const _0x46a443=_0x4a4174;this[_0x46a443(0xe4)]&&(this[_0x46a443(0xe4)][_0x46a443(0xc5)](),this[_0x46a443(0xe4)]=null),this[_0x46a443(0x141)]&&(this[_0x46a443(0x141)][_0x46a443(0xf6)](),this[_0x46a443(0x141)]=null),this[_0x46a443(0xc3)]&&(this[_0x46a443(0xc3)][_0x46a443(0xf6)](),this[_0x46a443(0xc3)]=null);}[_0x4a4174(0x10a)](){const _0x32ef0e=_0x4a4174;if(!this[_0x32ef0e(0x12d)])return;if(!this[_0x32ef0e(0x122)]())return void(this[_0x32ef0e(0x14f)]=!0x0);this[_0x32ef0e(0x14f)]=!0x1;const _0x314d4a=[...this[_0x32ef0e(0x13b)],...this[_0x32ef0e(0xcf)]],_0xf1f916=this[_0x32ef0e(0x108)](),_0x2d156c=this[_0x32ef0e(0x116)](_0xf1f916,_0x314d4a),_0x220f77=_0xf1f916[_0x32ef0e(0xdb)];_0x220f77&&this[_0x32ef0e(0x117)](_0x220f77),_0xf1f916[_0x32ef0e(0x101)](),this[_0x32ef0e(0x129)](_0x314d4a,_0x2d156c);}[_0x4a4174(0xcc)](){const _0x53a7c2=_0x4a4174;this[_0x53a7c2(0x141)]=this[_0x53a7c2(0xde)](),this[_0x53a7c2(0xc3)]=this[_0x53a7c2(0x130)](),this[_0x53a7c2(0x141)][_0x53a7c2(0xd7)](),this[_0x53a7c2(0x12d)][_0x53a7c2(0xd4)](this[_0x53a7c2(0x141)][_0x53a7c2(0xe0)]),this[_0x53a7c2(0x141)]['on'](_0x53a7c2(0xdd),()=>{const _0x59b675=_0x53a7c2;this[_0x59b675(0x13e)]();}),_0x1f9633({'emitter':this[_0x53a7c2(0xc3)],'contextElements':[this[_0x53a7c2(0xc3)][_0x53a7c2(0xe0)],this[_0x53a7c2(0x141)][_0x53a7c2(0xe0)]],'callback':()=>this[_0x53a7c2(0xcd)](),'activator':()=>this[_0x53a7c2(0x141)][_0x53a7c2(0xf8)]});}[_0x4a4174(0xde)](){const _0x1c43e9=_0x4a4174,_0xc692ce=new _0x31d900(this[_0x1c43e9(0x14c)]);_0xc692ce[_0x1c43e9(0x10c)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x24c8ad=[this[_0x1c43e9(0xc8)][_0x1c43e9(0x103)][_0x1c43e9(0xfc)]];return this[_0x1c43e9(0xc8)][_0x1c43e9(0x103)][_0x1c43e9(0xda)]&&_0x24c8ad[_0x1c43e9(0xbe)](this[_0x1c43e9(0xc8)][_0x1c43e9(0x103)][_0x1c43e9(0xda)]),_0xc692ce[_0x1c43e9(0xe3)]({'attributes':{'class':_0x24c8ad}}),_0xc692ce;}[_0x4a4174(0x130)](){const _0xe702fb=_0x4a4174,_0x139a45=new _0x14a156(this[_0xe702fb(0x14c)]);return _0x139a45[_0xe702fb(0xe3)]({'attributes':{'class':this[_0xe702fb(0xc8)][_0xe702fb(0x103)][_0xe702fb(0x14b)]}}),this[_0xe702fb(0x134)][_0xe702fb(0xf0)](_0x139a45),_0x139a45;}[_0x4a4174(0xcb)](){const _0x3ca0de=_0x4a4174;if(this[_0x3ca0de(0xc3)]&&(this[_0x3ca0de(0xc3)][_0x3ca0de(0xf2)][_0x3ca0de(0x145)](),this[_0x3ca0de(0xcf)][_0x3ca0de(0xc6)]>0x0)){this[_0x3ca0de(0xcf)][_0x3ca0de(0x13d)](_0x384c38=>{const _0x157ab0=_0x3ca0de;_0x384c38[_0x157ab0(0x11c)]();});const _0x2dd02c=new _0x50a14b(this[_0x3ca0de(0x14c)]);_0x2dd02c[_0x3ca0de(0xd3)]({'tag':_0x3ca0de(0x14a),'attributes':{'class':this[_0x3ca0de(0xc8)][_0x3ca0de(0x103)][_0x3ca0de(0x135)]},'children':this[_0x3ca0de(0xcf)]}),this[_0x3ca0de(0xc3)][_0x3ca0de(0xf2)][_0x3ca0de(0xf0)](_0x2dd02c);}}[_0x4a4174(0x13e)](){const _0x4f980c=_0x4a4174;this[_0x4f980c(0x141)][_0x4f980c(0xf8)]?this[_0x4f980c(0xcd)]():this[_0x4f980c(0xe9)]();}[_0x4a4174(0x13c)](){const _0x18150e=_0x4a4174,_0xf6f39f=this[_0x18150e(0xcf)][_0x18150e(0xc6)]>0x0;this[_0x18150e(0x141)]?.[_0x18150e(0xe0)]&&(this[_0x18150e(0x141)][_0x18150e(0xe0)][_0x18150e(0x151)][_0x18150e(0x11e)]=_0xf6f39f?'':_0x18150e(0xe1));}[_0x4a4174(0xeb)](){const _0x50a6c0=_0x4a4174;this[_0x50a6c0(0x141)]?.[_0x50a6c0(0xf8)]&&this[_0x50a6c0(0xc3)]?.[_0x50a6c0(0xe8)]&&this[_0x50a6c0(0x141)][_0x50a6c0(0xe0)]&&this[_0x50a6c0(0xc3)][_0x50a6c0(0xc7)]({'target':this[_0x50a6c0(0x141)][_0x50a6c0(0xe0)],'limiter':document[_0x50a6c0(0x132)](_0x50a6c0(0x126))});}[_0x4a4174(0x124)](_0x2c00bf){const _0x476a3a=_0x4a4174,_0x17a02b=this[_0x476a3a(0x12d)]?.[_0x476a3a(0x121)][_0x476a3a(0x13a)]()||_0x476a3a(0x14a),_0x499384=this[_0x476a3a(0x12d)]?.[_0x476a3a(0x11d)];if(_0x499384){const _0x3ec718=_0x499384[0x0]||'',_0x32a776=_0x2c00bf[_0x476a3a(0x132)]('.'+_0x3ec718),_0x2bee2a=_0x2c00bf[_0x476a3a(0x132)](_0x17a02b);return _0x32a776||_0x2bee2a||_0x2c00bf;}return _0x2c00bf[_0x476a3a(0x132)](_0x17a02b)||_0x2c00bf;}[_0x4a4174(0x146)](){const _0x23d8ff=_0x4a4174,_0x28861f=this[_0x23d8ff(0x11a)]?.[_0x23d8ff(0xe0)]||this[_0x23d8ff(0x12d)];if(!_0x28861f)return dn;const _0x51cd0e=window[_0x23d8ff(0x140)](_0x28861f)[_0x23d8ff(0x120)];if(_0x23d8ff(0x114)===_0x51cd0e||_0x23d8ff(0xd8)===_0x51cd0e||!_0x51cd0e){const _0x30e739=_0x28861f[_0x23d8ff(0xdc)];if(_0x30e739){const _0x4301a5=window[_0x23d8ff(0x140)](_0x30e739);return _0x23d8ff(0x114)!==_0x4301a5[_0x23d8ff(0x120)]?_0x4301a5[_0x23d8ff(0x120)]:dn;}return dn;}return _0x51cd0e;}[_0x4a4174(0x106)](_0x3ded63,_0x38a633){const _0x546944=_0x4a4174;this[_0x546944(0xc8)][_0x546944(0x103)][_0x546944(0xea)]&&_0x3ded63[_0x546944(0x11d)][_0x546944(0xf0)](this[_0x546944(0xc8)][_0x546944(0x103)][_0x546944(0xea)]),_0x3ded63[_0x546944(0x151)][_0x546944(0x120)]=_0x38a633,_0x3ded63[_0x546944(0x151)][_0x546944(0x10d)]=_0x546944(0x13f),_0x3ded63[_0x546944(0x151)][_0x546944(0xd1)]=_0x546944(0x131),_0x3ded63[_0x546944(0x151)][_0x546944(0x110)]=_0x546944(0x131),_0x3ded63[_0x546944(0x151)][_0x546944(0x100)]='0',_0x3ded63[_0x546944(0x151)][_0x546944(0x10f)]=_0x546944(0xe1),_0x3ded63[_0x546944(0x151)][_0x546944(0x139)]='-1',_0x3ded63[_0x546944(0x151)][_0x546944(0x14d)]=_0x546944(0xc9),_0x3ded63[_0x546944(0x151)][_0x546944(0x11e)]=_0x546944(0x148),_0x3ded63[_0x546944(0x151)][_0x546944(0x144)]=_0x546944(0x128);}[_0x4a4174(0x117)](_0x2b3af5){const _0x5ba350=_0x4a4174;_0x2b3af5[_0x5ba350(0x13d)](({element:_0x43e648,originalDisplay:_0x3aac46,originalVisibility:_0x2f1e72})=>{const _0x261dc9=_0x5ba350;_0x43e648[_0x261dc9(0x151)][_0x261dc9(0x11e)]=_0x3aac46,_0x43e648[_0x261dc9(0x151)][_0x261dc9(0x14d)]=_0x2f1e72;});}[_0x4a4174(0x127)](_0x148de3){const _0x39b579=_0x4a4174,_0x308ec0=[];let _0x28e1db=_0x148de3;for(;_0x28e1db&&_0x28e1db!==document[_0x39b579(0xf4)];){const _0xb6bd81=window[_0x39b579(0x140)](_0x28e1db);_0x39b579(0xe1)!==_0xb6bd81[_0x39b579(0x11e)]&&_0x39b579(0xe7)!==_0xb6bd81[_0x39b579(0x14d)]||(_0x308ec0[_0x39b579(0xbe)]({'element':_0x28e1db,'originalDisplay':_0x28e1db[_0x39b579(0x151)][_0x39b579(0x11e)],'originalVisibility':_0x28e1db[_0x39b579(0x151)][_0x39b579(0x14d)]}),_0x28e1db[_0x39b579(0x151)][_0x39b579(0x11e)]=_0x39b579(0x11f),_0x28e1db[_0x39b579(0x151)][_0x39b579(0x14d)]=_0x39b579(0x10b)),_0x28e1db=_0x28e1db[_0x39b579(0xdc)];}return _0x308ec0;}[_0x4a4174(0xed)](){const _0x198a62=_0x4a4174;let _0x185ab4,_0x38985d;return this[_0x198a62(0x11a)]?.[_0x198a62(0xe0)]?(_0x185ab4=this[_0x198a62(0x11a)][_0x198a62(0xe0)][_0x198a62(0xe6)](!0x0),_0x38985d=this[_0x198a62(0x124)](_0x185ab4)):(_0x185ab4=document[_0x198a62(0x147)](_0x198a62(0x14a)),_0x38985d=_0x185ab4),{'calculationContainer':_0x185ab4,'targetContainer':_0x38985d};}[_0x4a4174(0x108)](){const _0x1a5ee0=_0x4a4174,{calculationContainer:_0x12ff1b,targetContainer:_0x405f22}=this[_0x1a5ee0(0xed)](),_0x4da666=this[_0x1a5ee0(0x146)]();this[_0x1a5ee0(0x106)](_0x12ff1b,_0x4da666);const _0x44b624=this[_0x1a5ee0(0x11a)]?.[_0x1a5ee0(0xe0)]||this[_0x1a5ee0(0x12d)],_0x3b9aee=_0x44b624?.[_0x1a5ee0(0xdc)];_0x3b9aee?_0x3b9aee[_0x1a5ee0(0xd4)](_0x12ff1b):document[_0x1a5ee0(0xf4)][_0x1a5ee0(0xd4)](_0x12ff1b),_0x12ff1b[_0x1a5ee0(0x133)]=_0x405f22;const _0x3609da=this[_0x1a5ee0(0x127)](_0x3b9aee||null);return _0x12ff1b[_0x1a5ee0(0x102)],_0x12ff1b[_0x1a5ee0(0xdb)]=_0x3609da,_0x12ff1b;}[_0x4a4174(0x116)](_0x2d8c70,_0x2568a3){const _0x340c6b=_0x4a4174,_0xc2ce52=_0x2d8c70[_0x340c6b(0x133)]||_0x2d8c70,_0x4dc000=[],{rowCount:_0x350cd1}=this[_0x340c6b(0x11b)](_0xc2ce52,_0x2568a3);if(_0x350cd1<=this[_0x340c6b(0xc8)][_0x340c6b(0x123)])return _0x4dc000;const _0x1b9140=_0x2568a3[_0x340c6b(0x149)]();for(;_0x1b9140[_0x340c6b(0xc6)]>0x0;){if(this[_0x340c6b(0xdf)](_0x2d8c70,_0xc2ce52,_0x1b9140)){const _0x108a3e=_0x2568a3[_0x340c6b(0xef)](_0x4990fa=>!_0x1b9140[_0x340c6b(0x12f)](_0x4990fa));_0x4dc000[_0x340c6b(0xbe)](..._0x108a3e);break;}if(!_0x1b9140[_0x340c6b(0xce)]())break;}return _0x4dc000;}[_0x4a4174(0x11b)](_0x512686,_0x45faad){const _0x803ca1=_0x4a4174;_0x512686[_0x803ca1(0xd2)]='',_0x45faad[_0x803ca1(0x13d)](_0x3a6c8a=>{const _0xd1f77e=_0x803ca1;if(_0x3a6c8a[_0xd1f77e(0xe0)]){const _0x4c1d1d=_0x3a6c8a[_0xd1f77e(0xe0)][_0xd1f77e(0xe6)](!0x0);_0x512686[_0xd1f77e(0xd4)](_0x4c1d1d);}}),_0x512686[_0x803ca1(0x102)];const _0x38527b=_0x512686[_0x803ca1(0xd0)],_0x2c22f7=[];return Array[_0x803ca1(0xfe)](_0x38527b)[_0x803ca1(0x13d)](_0x2ebd2c=>{const _0x4283c0=_0x803ca1,_0x4ec4e4=_0x2ebd2c[_0x4283c0(0x113)]()[_0x4283c0(0xd1)];_0x2c22f7[_0x4283c0(0x12a)](_0x4124d2=>Math[_0x4283c0(0x109)](_0x4124d2-_0x4ec4e4)<this[_0x4283c0(0xc8)][_0x4283c0(0xf5)])||_0x2c22f7[_0x4283c0(0xbe)](_0x4ec4e4);}),{'rowCount':_0x2c22f7[_0x803ca1(0xc6)]};}[_0x4a4174(0xee)](){const _0x102914=_0x4a4174,_0x4c8ef6=document[_0x102914(0x147)](_0x102914(0x104));return _0x4c8ef6[_0x102914(0x111)]=this[_0x102914(0xc8)][_0x102914(0x103)][_0x102914(0xfc)],this[_0x102914(0xc8)][_0x102914(0x103)][_0x102914(0xda)]&&_0x4c8ef6[_0x102914(0x11d)][_0x102914(0xf0)](this[_0x102914(0xc8)][_0x102914(0x103)][_0x102914(0xda)]),_0x4c8ef6[_0x102914(0xd5)]=_0x102914(0xec),_0x4c8ef6;}[_0x4a4174(0xdf)](_0x3d603e,_0x237beb,_0x112931){const _0x49d36e=_0x4a4174;this[_0x49d36e(0x11b)](_0x237beb,_0x112931);const _0x12a250=this[_0x49d36e(0xee)]();_0x3d603e[_0x49d36e(0xd4)](_0x12a250),_0x3d603e[_0x49d36e(0x102)];const _0x458f28=[..._0x237beb[_0x49d36e(0xd0)],_0x12a250],_0x1ec409=[];_0x458f28[_0x49d36e(0x13d)](_0x49990e=>{const _0x108480=_0x49d36e,_0x222ee4=_0x49990e[_0x108480(0x113)]()[_0x108480(0xd1)];_0x1ec409[_0x108480(0x12a)](_0x1287b3=>Math[_0x108480(0x109)](_0x1287b3-_0x222ee4)<this[_0x108480(0xc8)][_0x108480(0xf5)])||_0x1ec409[_0x108480(0xbe)](_0x222ee4);});const _0x29b774=_0x1ec409[_0x49d36e(0xc6)];return _0x12a250[_0x49d36e(0x101)](),_0x29b774<=this[_0x49d36e(0xc8)][_0x49d36e(0x123)];}[_0x4a4174(0xc2)](_0x27bad7,_0x47bbaa){const _0x4c0abb=_0x4a4174;this[_0x4c0abb(0x13b)][_0x4c0abb(0x145)](),this[_0x4c0abb(0xcf)][_0x4c0abb(0x145)](),_0x27bad7[_0x4c0abb(0x13d)](_0x5b97d0=>{const _0x2b953e=_0x4c0abb;_0x47bbaa[_0x2b953e(0x12f)](_0x5b97d0)?this[_0x2b953e(0xcf)][_0x2b953e(0xf0)](_0x5b97d0):this[_0x2b953e(0x13b)][_0x2b953e(0xf0)](_0x5b97d0);});}[_0x4a4174(0x10e)](_0x31d13d){const _0x29b95f=_0x4a4174;if(_0x31d13d>0x0&&!this[_0x29b95f(0x141)]&&this[_0x29b95f(0xcc)](),_0x31d13d>0x0&&this[_0x29b95f(0x141)]){const _0x2468dd=''+this[_0x29b95f(0xc8)][_0x29b95f(0xf7)]+(_0x31d13d<0x63?_0x31d13d:'99');this[_0x29b95f(0x141)][_0x29b95f(0xff)]=_0x2468dd;}this[_0x29b95f(0xcb)](),this[_0x29b95f(0x13c)](),this[_0x29b95f(0xeb)]();}[_0x4a4174(0x129)](_0x558f40,_0x42e7de){const _0x36ce87=_0x4a4174;this[_0x36ce87(0xc2)](_0x558f40,_0x42e7de),this[_0x36ce87(0x10e)](_0x42e7de[_0x36ce87(0xc6)]);}[_0x4a4174(0x14e)](){const _0xd5c7d7=_0x4a4174;this[_0xd5c7d7(0x12d)]&&_0xd5c7d7(0x12c)!=typeof IntersectionObserver&&(this[_0xd5c7d7(0xe4)]=new IntersectionObserver(_0x4c2ad8=>{const _0x22c5ac=_0xd5c7d7;_0x4c2ad8[0x0][_0x22c5ac(0xc4)]&&this[_0x22c5ac(0x14f)]&&requestAnimationFrame(()=>{const _0x24b1de=_0x22c5ac;this[_0x24b1de(0x10a)]();});},{'threshold':0.01,'rootMargin':_0xd5c7d7(0x105)}),this[_0xd5c7d7(0xe4)][_0xd5c7d7(0x125)](this[_0xd5c7d7(0x12d)]));}[_0x4a4174(0x122)](){const _0x5a33bc=_0x4a4174;if(!this[_0x5a33bc(0x12d)])return!0x1;if(!this[_0x5a33bc(0x12d)][_0x5a33bc(0xca)])return!0x1;const _0x5709db=this[_0x5a33bc(0x12d)][_0x5a33bc(0x113)]();if(0x0===_0x5709db[_0x5a33bc(0x120)]||0x0===_0x5709db[_0x5a33bc(0xbd)])return!0x1;const _0x193e67=window[_0x5a33bc(0x112)]||document[_0x5a33bc(0xd9)][_0x5a33bc(0xf3)],_0x4d68a6=window[_0x5a33bc(0x136)]||document[_0x5a33bc(0xd9)][_0x5a33bc(0xe5)],_0x3c379d=0xc8;return _0x5709db[_0x5a33bc(0xf1)]>=-0xc8&&_0x5709db[_0x5a33bc(0xd1)]<=_0x193e67+_0x3c379d&&_0x5709db[_0x5a33bc(0x119)]>=-0xc8&&_0x5709db[_0x5a33bc(0x110)]<=_0x4d68a6+_0x3c379d;}}function _0x4eb0(_0xa719b1,_0x3db494){const _0x46ba10=_0x46ba();return _0x4eb0=function(_0x4eb0dd,_0x3cecf0){_0x4eb0dd=_0x4eb0dd-0xbd;let _0x4146fd=_0x46ba10[_0x4eb0dd];return _0x4146fd;},_0x4eb0(_0xa719b1,_0x3db494);}function _0x46ba(){const _0x34e514=['add','bottom','content','clientHeight','body','rowDetectionTolerance','destroy','showMoreLabelPrefix','isOn','setContainerElement','540789TjjOHD','82664RepJvP','showMoreButton','889QCmBMY','from','label','opacity','remove','offsetWidth','cssClasses','button','50px','_applyCalculationStyles','reorganizeChips','_createCalculationContainer','abs','_checkAndHandleOverflow','visible','set','position','_updateOverflowUI','pointerEvents','left','className','innerHeight','getBoundingClientRect','auto','3040156drIMhi','_calculateOverflowInContainer','_restoreAncestorVisibility','ck-calculation-container','right','_parentView','_renderChipsAndCountRows','disableAnimationOnEnter','classList','display','block','width','tagName','_isContainerVisible','maxVisibleRows','_findTargetContainer','observe','.ck-ai-chat','_makeAncestorsVisible','border-box','_applyOverflowResults','some','10CpEpsd','undefined','_containerElement','300px','includes','_createShowMoreBalloonPanelView','-9999px','querySelector','_targetContainer','_bodyCollection','overflowContainer','innerWidth','show','13077471NWNdSa','zIndex','toLowerCase','_visibleChips','_updateShowMoreButtonVisibility','forEach','_handleShowMoreButtonClick','absolute','getComputedStyle','_showMoreButtonView','7595845hytRsH','6tpuiyS','boxSizing','clear','_calculateContainerWidth','createElement','block\x20!important','slice','div','showMoreBalloon','_locale','visibility','_setupVisibilityObserver','_pendingCalculation','194811syKaAB','style','height','push','28huhnxI','showMoreButtonView','overflowChips','_distributeChips','_showMoreBalloonPanelView','isIntersecting','disconnect','length','pin','_config','visible\x20!important','isConnected','_updateBalloonContent','_createShowMoreButton','hideBalloonPanel','pop','_overflowChips','children','top','innerHTML','setTemplate','appendChild','textContent','334107DxIxzl','render','0px','documentElement','controlsButton','_ancestorsToRestore','parentElement','execute','_createShowMoreButtonView','_testButtonFit','element','none','hide','extendTemplate','_intersectionObserver','clientWidth','cloneNode','hidden','isVisible','showBalloonPanel','calculationContainer','_repinBalloonPanel','+\x201','_createContainerElements','_createMockButton','filter'];_0x46ba=function(){return _0x34e514;};return _0x46ba();}
23
+ const _0x473cc4=_0x5599;function _0x48ec(){const _0x22007d=['div','destroy','1721442dpOwZP','visible','tagName','parentElement','4069618aDWNNR','-9999px','15814NSEmVe','cloneNode','_createShowMoreBalloonPanelView','hideBalloonPanel','none','auto','_createShowMoreButtonView','_createShowMoreButton','content','opacity','clientHeight','clear','300px','_ancestorsToRestore','children','pop','_createCalculationContainer','textContent','_overflowChips','showMoreButton','innerHTML','innerHeight','zIndex','disableAnimationOnEnter','slice','createElement','_calculateOverflowInContainer','overflowContainer','clientWidth','from','block\x20!important','_calculateContainerWidth','bottom','_makeAncestorsVisible','.ck-ai-chat','_findTargetContainer','body','absolute','className','showMoreButtonView','_createContainerElements','boxSizing','_intersectionObserver','15259068SXhAJc','display','2908236bPEomL','maxVisibleRows','showMoreBalloon','visibility','_updateOverflowUI','left','_showMoreButtonView','block','forEach','_repinBalloonPanel','hidden','ck-calculation-container','_updateBalloonContent','_pendingCalculation','height','_showMoreBalloonPanelView','_handleShowMoreButtonClick','overflowChips','show','innerWidth','disconnect','0px','_visibleChips','observe','element','455728HcIFFG','isConnected','reorganizeChips','label','cssClasses','remove','offsetWidth','_bodyCollection','border-box','_config','render','classList','getBoundingClientRect','top','_applyCalculationStyles','_locale','+\x201','style','_parentView','_checkAndHandleOverflow','position','extendTemplate','_restoreAncestorVisibility','pointerEvents','documentElement','button','undefined','execute','20SjRRJD','_createMockButton','toLowerCase','controlsButton','width','483765gEhsUF','isIntersecting','50px','_testButtonFit','_updateShowMoreButtonVisibility','_setupVisibilityObserver','some','getComputedStyle','isVisible','filter','includes','abs','_containerElement','setTemplate','set','isOn','23lJxAPU','showBalloonPanel','querySelector','calculationContainer','right','hide','showMoreLabelPrefix','add','_renderChipsAndCountRows','push','_applyOverflowResults','rowDetectionTolerance','appendChild','length','pin','setContainerElement','_distributeChips','_targetContainer','visible\x20!important','_isContainerVisible'];_0x48ec=function(){return _0x22007d;};return _0x48ec();}(function(_0x4b47c2,_0x5e1dea){const _0x544220=_0x5599,_0x17fbb2=_0x4b47c2();while(!![]){try{const _0x2a3f95=parseInt(_0x544220(0x1d3))/0x1*(-parseInt(_0x544220(0x15c))/0x2)+-parseInt(_0x544220(0x156))/0x3+parseInt(_0x544220(0x1be))/0x4*(parseInt(_0x544220(0x1c3))/0x5)+-parseInt(_0x544220(0x189))/0x6+-parseInt(_0x544220(0x15a))/0x7+-parseInt(_0x544220(0x1a2))/0x8+parseInt(_0x544220(0x187))/0x9;if(_0x2a3f95===_0x5e1dea)break;else _0x17fbb2['push'](_0x17fbb2['shift']());}catch(_0x740dee){_0x17fbb2['push'](_0x17fbb2['shift']());}}}(_0x48ec,0x495d0));import{View as _0x40ad50,BalloonPanelView as _0x30ba49,ButtonView as _0x24285e,clickOutsideHandler as _0x270fd4}from'ckeditor5/src/ui.js';import{Collection as _0x19347f}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x473cc4(0x168);function _0x5599(_0x2e6188,_0x4a9a14){const _0x48ecf2=_0x48ec();return _0x5599=function(_0x559933,_0x5ac85f){_0x559933=_0x559933-0x14a;let _0x20c54e=_0x48ecf2[_0x559933];return _0x20c54e;},_0x5599(_0x2e6188,_0x4a9a14);}export class AIChatChipsOverflowManager{[_0x473cc4(0x1b1)];[_0x473cc4(0x1ab)];[_0x473cc4(0x19f)];[_0x473cc4(0x16e)];[_0x473cc4(0x18f)]=null;[_0x473cc4(0x198)]=null;[_0x473cc4(0x1cf)]=null;[_0x473cc4(0x1a9)];[_0x473cc4(0x1b4)]=null;[_0x473cc4(0x186)]=null;[_0x473cc4(0x196)]=!0x1;constructor(_0x5acb21,_0x3a72b0,_0x5cde32,_0x26c6e9,_0x54c8e3){const _0x454f11=_0x473cc4;this[_0x454f11(0x1b1)]=_0x5acb21,this[_0x454f11(0x19f)]=_0x3a72b0,this[_0x454f11(0x1ab)]={...hn,..._0x5cde32,'cssClasses':{'controlsButton':'','calculationContainer':_0x454f11(0x194),..._0x5cde32[_0x454f11(0x1a6)]}},this[_0x454f11(0x16e)]=new _0x19347f(),this[_0x454f11(0x1a9)]=_0x26c6e9,this[_0x454f11(0x1b4)]=_0x54c8e3||null;}[_0x473cc4(0x14f)](_0x430948){const _0x4b58de=_0x473cc4;this[_0x4b58de(0x186)]&&(this[_0x4b58de(0x186)][_0x4b58de(0x19d)](),this[_0x4b58de(0x186)]=null),this[_0x4b58de(0x1cf)]=_0x430948,this[_0x4b58de(0x1c8)]();}get[_0x473cc4(0x183)](){const _0x19b9d4=_0x473cc4;return this[_0x19b9d4(0x18f)];}get[_0x473cc4(0x19a)](){const _0x155634=_0x473cc4;return this[_0x155634(0x16e)];}[_0x473cc4(0x1a4)](){requestAnimationFrame(()=>{const _0x56ac1b=_0x5599;this[_0x56ac1b(0x1b5)]();});}[_0x473cc4(0x1d4)](){const _0x5af1ee=_0x473cc4;this[_0x5af1ee(0x18f)]&&this[_0x5af1ee(0x198)]&&(this[_0x5af1ee(0x195)](),this[_0x5af1ee(0x18f)][_0x5af1ee(0x1d2)]=!0x0,this[_0x5af1ee(0x198)][_0x5af1ee(0x19b)](),this[_0x5af1ee(0x198)][_0x5af1ee(0x14e)]({'target':this[_0x5af1ee(0x18f)][_0x5af1ee(0x1a1)],'limiter':document[_0x5af1ee(0x1d5)](_0x5af1ee(0x17e))}));}[_0x473cc4(0x15f)](){const _0x2f23c9=_0x473cc4;this[_0x2f23c9(0x18f)]&&this[_0x2f23c9(0x198)]&&(this[_0x2f23c9(0x18f)][_0x2f23c9(0x1d2)]=!0x1,this[_0x2f23c9(0x198)][_0x2f23c9(0x1d8)]());}[_0x473cc4(0x167)](){const _0x4c2f38=_0x473cc4;this[_0x4c2f38(0x16e)][_0x4c2f38(0x167)](),this[_0x4c2f38(0x15f)](),this[_0x4c2f38(0x1c7)](),this[_0x4c2f38(0x18f)]&&(this[_0x4c2f38(0x18f)][_0x4c2f38(0x1a5)]=''),this[_0x4c2f38(0x198)]&&this[_0x4c2f38(0x198)][_0x4c2f38(0x164)][_0x4c2f38(0x167)]();}[_0x473cc4(0x155)](){const _0x206971=_0x473cc4;this[_0x206971(0x186)]&&(this[_0x206971(0x186)][_0x206971(0x19d)](),this[_0x206971(0x186)]=null),this[_0x206971(0x18f)]&&(this[_0x206971(0x18f)][_0x206971(0x155)](),this[_0x206971(0x18f)]=null),this[_0x206971(0x198)]&&(this[_0x206971(0x198)][_0x206971(0x155)](),this[_0x206971(0x198)]=null);}[_0x473cc4(0x1b5)](){const _0x2f93e6=_0x473cc4;if(!this[_0x2f93e6(0x1cf)])return;if(!this[_0x2f93e6(0x153)]())return void(this[_0x2f93e6(0x196)]=!0x0);this[_0x2f93e6(0x196)]=!0x1;const _0x1f4266=[...this[_0x2f93e6(0x19f)],...this[_0x2f93e6(0x16e)]],_0x5a17b0=this[_0x2f93e6(0x16c)](),_0x4a03ba=this[_0x2f93e6(0x176)](_0x5a17b0,_0x1f4266),_0x2b8bb0=_0x5a17b0[_0x2f93e6(0x169)];_0x2b8bb0&&this[_0x2f93e6(0x1b8)](_0x2b8bb0),_0x5a17b0[_0x2f93e6(0x1a7)](),this[_0x2f93e6(0x14a)](_0x1f4266,_0x4a03ba);}[_0x473cc4(0x163)](){const _0x1b1ba4=_0x473cc4;this[_0x1b1ba4(0x18f)]=this[_0x1b1ba4(0x162)](),this[_0x1b1ba4(0x198)]=this[_0x1b1ba4(0x15e)](),this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1ac)](),this[_0x1b1ba4(0x1cf)][_0x1b1ba4(0x14c)](this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]),this[_0x1b1ba4(0x18f)]['on'](_0x1b1ba4(0x1bd),()=>{const _0x48c4f6=_0x1b1ba4;this[_0x48c4f6(0x199)]();}),_0x270fd4({'emitter':this[_0x1b1ba4(0x198)],'contextElements':[this[_0x1b1ba4(0x198)][_0x1b1ba4(0x1a1)],this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]],'callback':()=>this[_0x1b1ba4(0x15f)](),'activator':()=>this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1d2)]});}[_0x473cc4(0x162)](){const _0x3118b4=_0x473cc4,_0x16e531=new _0x24285e(this[_0x3118b4(0x1b1)]);_0x16e531[_0x3118b4(0x1d1)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1971ad=[this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x16f)]];return this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]&&_0x1971ad[_0x3118b4(0x1dc)](this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]),_0x16e531[_0x3118b4(0x1b7)]({'attributes':{'class':_0x1971ad}}),_0x16e531;}[_0x473cc4(0x15e)](){const _0x123cd7=_0x473cc4,_0x3633f8=new _0x30ba49(this[_0x123cd7(0x1b1)]);return _0x3633f8[_0x123cd7(0x1b7)]({'attributes':{'class':this[_0x123cd7(0x1ab)][_0x123cd7(0x1a6)][_0x123cd7(0x18b)]}}),this[_0x123cd7(0x1a9)][_0x123cd7(0x1da)](_0x3633f8),_0x3633f8;}[_0x473cc4(0x195)](){const _0x4519cb=_0x473cc4;if(this[_0x4519cb(0x198)]&&(this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x167)](),this[_0x4519cb(0x16e)][_0x4519cb(0x14d)]>0x0)){this[_0x4519cb(0x16e)][_0x4519cb(0x191)](_0x375185=>{const _0x79a1af=_0x4519cb;_0x375185[_0x79a1af(0x173)]();});const _0x54c495=new _0x40ad50(this[_0x4519cb(0x1b1)]);_0x54c495[_0x4519cb(0x1d0)]({'tag':_0x4519cb(0x154),'attributes':{'class':this[_0x4519cb(0x1ab)][_0x4519cb(0x1a6)][_0x4519cb(0x177)]},'children':this[_0x4519cb(0x16e)]}),this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x1da)](_0x54c495);}}[_0x473cc4(0x199)](){const _0x264cbd=_0x473cc4;this[_0x264cbd(0x18f)][_0x264cbd(0x1d2)]?this[_0x264cbd(0x15f)]():this[_0x264cbd(0x1d4)]();}[_0x473cc4(0x1c7)](){const _0x5240cd=_0x473cc4,_0x1b7e68=this[_0x5240cd(0x16e)][_0x5240cd(0x14d)]>0x0;this[_0x5240cd(0x18f)]?.[_0x5240cd(0x1a1)]&&(this[_0x5240cd(0x18f)][_0x5240cd(0x1a1)][_0x5240cd(0x1b3)][_0x5240cd(0x188)]=_0x1b7e68?'':_0x5240cd(0x160));}[_0x473cc4(0x192)](){const _0x78efe7=_0x473cc4;this[_0x78efe7(0x18f)]?.[_0x78efe7(0x1d2)]&&this[_0x78efe7(0x198)]?.[_0x78efe7(0x1cb)]&&this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)]&&this[_0x78efe7(0x198)][_0x78efe7(0x14e)]({'target':this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)],'limiter':document[_0x78efe7(0x1d5)](_0x78efe7(0x17e))});}[_0x473cc4(0x17f)](_0x595664){const _0x190575=_0x473cc4,_0x5343e6=this[_0x190575(0x1cf)]?.[_0x190575(0x158)][_0x190575(0x1c0)]()||_0x190575(0x154),_0x13a3af=this[_0x190575(0x1cf)]?.[_0x190575(0x1ad)];if(_0x13a3af){const _0x5c1c71=_0x13a3af[0x0]||'',_0x3641a3=_0x595664[_0x190575(0x1d5)]('.'+_0x5c1c71),_0x3e225a=_0x595664[_0x190575(0x1d5)](_0x5343e6);return _0x3641a3||_0x3e225a||_0x595664;}return _0x595664[_0x190575(0x1d5)](_0x5343e6)||_0x595664;}[_0x473cc4(0x17b)](){const _0x5d2644=_0x473cc4,_0x11440c=this[_0x5d2644(0x1b4)]?.[_0x5d2644(0x1a1)]||this[_0x5d2644(0x1cf)];if(!_0x11440c)return an;const _0x5dc413=window[_0x5d2644(0x1ca)](_0x11440c)[_0x5d2644(0x1c2)];if(_0x5d2644(0x161)===_0x5dc413||_0x5d2644(0x19e)===_0x5dc413||!_0x5dc413){const _0x4bc42b=_0x11440c[_0x5d2644(0x159)];if(_0x4bc42b){const _0x1ed2a4=window[_0x5d2644(0x1ca)](_0x4bc42b);return _0x5d2644(0x161)!==_0x1ed2a4[_0x5d2644(0x1c2)]?_0x1ed2a4[_0x5d2644(0x1c2)]:an;}return an;}return _0x5dc413;}[_0x473cc4(0x1b0)](_0x1f09a7,_0x4b92d0){const _0x11fd00=_0x473cc4;this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]&&_0x1f09a7[_0x11fd00(0x1ad)][_0x11fd00(0x1da)](this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1c2)]=_0x4b92d0,_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b6)]=_0x11fd00(0x181),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1af)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18e)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x165)]='0',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b9)]=_0x11fd00(0x160),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x172)]='-1',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18c)]=_0x11fd00(0x152),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x188)]=_0x11fd00(0x17a),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x185)]=_0x11fd00(0x1aa);}[_0x473cc4(0x1b8)](_0x65722c){const _0x53c028=_0x473cc4;_0x65722c[_0x53c028(0x191)](({element:_0x1e38e1,originalDisplay:_0x582b53,originalVisibility:_0x55ce7b})=>{const _0x5ede39=_0x53c028;_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x188)]=_0x582b53,_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x18c)]=_0x55ce7b;});}[_0x473cc4(0x17d)](_0x59d78d){const _0x3ca0f6=_0x473cc4,_0x3facd6=[];let _0x1e91b3=_0x59d78d;for(;_0x1e91b3&&_0x1e91b3!==document[_0x3ca0f6(0x180)];){const _0x3d3a19=window[_0x3ca0f6(0x1ca)](_0x1e91b3);_0x3ca0f6(0x160)!==_0x3d3a19[_0x3ca0f6(0x188)]&&_0x3ca0f6(0x193)!==_0x3d3a19[_0x3ca0f6(0x18c)]||(_0x3facd6[_0x3ca0f6(0x1dc)]({'element':_0x1e91b3,'originalDisplay':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)],'originalVisibility':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]}),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)]=_0x3ca0f6(0x190),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]=_0x3ca0f6(0x157)),_0x1e91b3=_0x1e91b3[_0x3ca0f6(0x159)];}return _0x3facd6;}[_0x473cc4(0x184)](){const _0x2c75f7=_0x473cc4;let _0x4d15e9,_0x1af885;return this[_0x2c75f7(0x1b4)]?.[_0x2c75f7(0x1a1)]?(_0x4d15e9=this[_0x2c75f7(0x1b4)][_0x2c75f7(0x1a1)][_0x2c75f7(0x15d)](!0x0),_0x1af885=this[_0x2c75f7(0x17f)](_0x4d15e9)):(_0x4d15e9=document[_0x2c75f7(0x175)](_0x2c75f7(0x154)),_0x1af885=_0x4d15e9),{'calculationContainer':_0x4d15e9,'targetContainer':_0x1af885};}[_0x473cc4(0x16c)](){const _0x5166b5=_0x473cc4,{calculationContainer:_0x48af77,targetContainer:_0x841373}=this[_0x5166b5(0x184)](),_0x7b0106=this[_0x5166b5(0x17b)]();this[_0x5166b5(0x1b0)](_0x48af77,_0x7b0106);const _0x4a5b1c=this[_0x5166b5(0x1b4)]?.[_0x5166b5(0x1a1)]||this[_0x5166b5(0x1cf)],_0x10418c=_0x4a5b1c?.[_0x5166b5(0x159)];_0x10418c?_0x10418c[_0x5166b5(0x14c)](_0x48af77):document[_0x5166b5(0x180)][_0x5166b5(0x14c)](_0x48af77),_0x48af77[_0x5166b5(0x151)]=_0x841373;const _0xd10414=this[_0x5166b5(0x17d)](_0x10418c||null);return _0x48af77[_0x5166b5(0x1a8)],_0x48af77[_0x5166b5(0x169)]=_0xd10414,_0x48af77;}[_0x473cc4(0x176)](_0x1b4370,_0x43c8e5){const _0x35a137=_0x473cc4,_0x222a95=_0x1b4370[_0x35a137(0x151)]||_0x1b4370,_0x1a2b25=[],{rowCount:_0x51d71e}=this[_0x35a137(0x1db)](_0x222a95,_0x43c8e5);if(_0x51d71e<=this[_0x35a137(0x1ab)][_0x35a137(0x18a)])return _0x1a2b25;const _0x23faa8=_0x43c8e5[_0x35a137(0x174)]();for(;_0x23faa8[_0x35a137(0x14d)]>0x0;){if(this[_0x35a137(0x1c6)](_0x1b4370,_0x222a95,_0x23faa8)){const _0x1e4b00=_0x43c8e5[_0x35a137(0x1cc)](_0x3cc0b6=>!_0x23faa8[_0x35a137(0x1cd)](_0x3cc0b6));_0x1a2b25[_0x35a137(0x1dc)](..._0x1e4b00);break;}if(!_0x23faa8[_0x35a137(0x16b)]())break;}return _0x1a2b25;}[_0x473cc4(0x1db)](_0x2abf6f,_0x2ff570){const _0x1f7256=_0x473cc4;_0x2abf6f[_0x1f7256(0x170)]='',_0x2ff570[_0x1f7256(0x191)](_0x449b77=>{const _0x57f848=_0x1f7256;if(_0x449b77[_0x57f848(0x1a1)]){const _0x2ba41e=_0x449b77[_0x57f848(0x1a1)][_0x57f848(0x15d)](!0x0);_0x2abf6f[_0x57f848(0x14c)](_0x2ba41e);}}),_0x2abf6f[_0x1f7256(0x1a8)];const _0x2c397c=_0x2abf6f[_0x1f7256(0x16a)],_0xba668d=[];return Array[_0x1f7256(0x179)](_0x2c397c)[_0x1f7256(0x191)](_0x34080d=>{const _0x10f4c5=_0x1f7256,_0x31adbc=_0x34080d[_0x10f4c5(0x1ae)]()[_0x10f4c5(0x1af)];_0xba668d[_0x10f4c5(0x1c9)](_0xef0f4e=>Math[_0x10f4c5(0x1ce)](_0xef0f4e-_0x31adbc)<this[_0x10f4c5(0x1ab)][_0x10f4c5(0x14b)])||_0xba668d[_0x10f4c5(0x1dc)](_0x31adbc);}),{'rowCount':_0xba668d[_0x1f7256(0x14d)]};}[_0x473cc4(0x1bf)](){const _0x522e3f=_0x473cc4,_0x8351c7=document[_0x522e3f(0x175)](_0x522e3f(0x1bb));return _0x8351c7[_0x522e3f(0x182)]=this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x16f)],this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]&&_0x8351c7[_0x522e3f(0x1ad)][_0x522e3f(0x1da)](this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]),_0x8351c7[_0x522e3f(0x16d)]=_0x522e3f(0x1b2),_0x8351c7;}[_0x473cc4(0x1c6)](_0x449f2c,_0x413683,_0xc0be33){const _0x289df9=_0x473cc4;this[_0x289df9(0x1db)](_0x413683,_0xc0be33);const _0x591866=this[_0x289df9(0x1bf)]();_0x449f2c[_0x289df9(0x14c)](_0x591866),_0x449f2c[_0x289df9(0x1a8)];const _0x4d6063=[..._0x413683[_0x289df9(0x16a)],_0x591866],_0x550cdc=[];_0x4d6063[_0x289df9(0x191)](_0x590824=>{const _0x251987=_0x289df9,_0x169502=_0x590824[_0x251987(0x1ae)]()[_0x251987(0x1af)];_0x550cdc[_0x251987(0x1c9)](_0x570b5d=>Math[_0x251987(0x1ce)](_0x570b5d-_0x169502)<this[_0x251987(0x1ab)][_0x251987(0x14b)])||_0x550cdc[_0x251987(0x1dc)](_0x169502);});const _0x15ecf6=_0x550cdc[_0x289df9(0x14d)];return _0x591866[_0x289df9(0x1a7)](),_0x15ecf6<=this[_0x289df9(0x1ab)][_0x289df9(0x18a)];}[_0x473cc4(0x150)](_0x5071b8,_0x808e89){const _0x5e5060=_0x473cc4;this[_0x5e5060(0x19f)][_0x5e5060(0x167)](),this[_0x5e5060(0x16e)][_0x5e5060(0x167)](),_0x5071b8[_0x5e5060(0x191)](_0x182895=>{const _0x34ed6c=_0x5e5060;_0x808e89[_0x34ed6c(0x1cd)](_0x182895)?this[_0x34ed6c(0x16e)][_0x34ed6c(0x1da)](_0x182895):this[_0x34ed6c(0x19f)][_0x34ed6c(0x1da)](_0x182895);});}[_0x473cc4(0x18d)](_0x17b751){const _0x3e9322=_0x473cc4;if(_0x17b751>0x0&&!this[_0x3e9322(0x18f)]&&this[_0x3e9322(0x163)](),_0x17b751>0x0&&this[_0x3e9322(0x18f)]){const _0x5b6869=''+this[_0x3e9322(0x1ab)][_0x3e9322(0x1d9)]+(_0x17b751<0x63?_0x17b751:'99');this[_0x3e9322(0x18f)][_0x3e9322(0x1a5)]=_0x5b6869;}this[_0x3e9322(0x195)](),this[_0x3e9322(0x1c7)](),this[_0x3e9322(0x192)]();}[_0x473cc4(0x14a)](_0xb3255,_0x246d08){const _0x21dd3c=_0x473cc4;this[_0x21dd3c(0x150)](_0xb3255,_0x246d08),this[_0x21dd3c(0x18d)](_0x246d08[_0x21dd3c(0x14d)]);}[_0x473cc4(0x1c8)](){const _0x48bc97=_0x473cc4;this[_0x48bc97(0x1cf)]&&_0x48bc97(0x1bc)!=typeof IntersectionObserver&&(this[_0x48bc97(0x186)]=new IntersectionObserver(_0x30ca2e=>{const _0x49c58f=_0x48bc97;_0x30ca2e[0x0][_0x49c58f(0x1c4)]&&this[_0x49c58f(0x196)]&&requestAnimationFrame(()=>{const _0x422e7f=_0x49c58f;this[_0x422e7f(0x1b5)]();});},{'threshold':0.01,'rootMargin':_0x48bc97(0x1c5)}),this[_0x48bc97(0x186)][_0x48bc97(0x1a0)](this[_0x48bc97(0x1cf)]));}[_0x473cc4(0x153)](){const _0x32dc91=_0x473cc4;if(!this[_0x32dc91(0x1cf)])return!0x1;if(!this[_0x32dc91(0x1cf)][_0x32dc91(0x1a3)])return!0x1;const _0x3bd16e=this[_0x32dc91(0x1cf)][_0x32dc91(0x1ae)]();if(0x0===_0x3bd16e[_0x32dc91(0x1c2)]||0x0===_0x3bd16e[_0x32dc91(0x197)])return!0x1;const _0x3f88f0=window[_0x32dc91(0x171)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x166)],_0x4640ba=window[_0x32dc91(0x19c)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x178)],_0x28d786=0xc8;return _0x3bd16e[_0x32dc91(0x17c)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x1af)]<=_0x3f88f0+_0x28d786&&_0x3bd16e[_0x32dc91(0x1d7)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x18e)]<=_0x4640ba+_0x28d786;}}