@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.4

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 (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x249f1b=_0x1a9e;function _0x301b(){const _0xb6e314=['_createContextItemFromContent','contextItemRemoved','sources','all','3353567gktfXB','delete','URL','ai-chat-document-upload-failed','getPendingContextItems','_pendingContextItems','HTML','removeFromContext','20bxyBmc','clearPendingContextItems','document','1079kztPzB','addSelectionToContext','label','_getCustomSourcesInitialState','SELECTION','ai-request-aborted','string','1368izPQVJ','addFilesToContext','name','isCurrentDocumentInContext','error','size','text/plain','_finishContextItemLoading','url-','type','isReadOnly','_ongoingUploadOperations','_isResourceInContext','ai-chat-source-not-found','getSentContextItems','files-','ai-chat-resource-no-data','content','uploadDocument','21012eAxdTH','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-unsupported-type','contextItemAdded','TEXT','ai-chat-resource-load-failed','_removeContextItem','File','map','has','2417UXbYXO','urls','forEach','1181196XrCCTv','addContextOptionsChanged','populateFromMessage','ai-chat-url-upload-failed','isInContext','MARKDOWN','Current\x20document','isCurrentDocumentInConversation','32200mUbtln','fetchDocument','get','current-document','uploadFile','_conversationContextItems','resourceStateChanged','selection','uploadProgressChanged','abort','file-','addCurrentDocumentToContext','_connector','contextSent','_finishUploadOperation','length','uploadUrl','init','hidden','FILE','_config','addToConversationContext','_convertTextResourceToFile','text/markdown','abortController','_findSourceIdsByResourceId','enabled','addResourceToContext','8obLxVQ','text/html','version','_updateResourceInContextState','values','sessionId','end','_ownerId','getId','start','420IvzQNR','862twniqj','stack','getResources','set','files','push','_addContextOptionsState','isSelectionInContext','resources','_addContextItem','uiId','_toggleAddCurrentDocumentOptionVisibility','DOCUMENT','filter','data','url','updateCurrentDocument','object','ai-chat-file-upload-failed','find','ai-chat-source-resources-load-failed','sourceResourcesLoaded','mapContextItemsToRequestData','contextItemLoadingEnded','addUrlToContext','fire','loadSourceResources','attributes','60270eouCAU','isHidden','_addToConversationContextItem','getDocument','startsWith','_mapContextItemToRequestData','removeSelectionFromContext','12705341GTYHuj','resourceId','from','_startUploadOperation','getData','ai-chat-context-invalid-data','_setAddContextOptionsDefaultState','_ongoingUploads','message'];_0x301b=function(){return _0xb6e314;};return _0x301b();}(function(_0x498d56,_0xa41bfb){const _0x1b14dd=_0x1a9e,_0x23ed5e=_0x498d56();while(!![]){try{const _0x36aafe=parseInt(_0x1b14dd(0x21e))/0x1*(-parseInt(_0x1b14dd(0x250))/0x2)+parseInt(_0x1b14dd(0x24f))/0x3*(parseInt(_0x1b14dd(0x229))/0x4)+parseInt(_0x1b14dd(0x1f7))/0x5*(parseInt(_0x1b14dd(0x221))/0x6)+parseInt(_0x1b14dd(0x1ef))/0x7*(-parseInt(_0x1b14dd(0x245))/0x8)+-parseInt(_0x1b14dd(0x201))/0x9*(parseInt(_0x1b14dd(0x26c))/0xa)+parseInt(_0x1b14dd(0x273))/0xb+-parseInt(_0x1b14dd(0x214))/0xc*(-parseInt(_0x1b14dd(0x1fa))/0xd);if(_0x36aafe===_0xa41bfb)break;else _0x23ed5e['push'](_0x23ed5e['shift']());}catch(_0x3d8387){_0x23ed5e['push'](_0x23ed5e['shift']());}}}(_0x301b,0xbdebc));import{CKEditorError as _0x59e32b,ObservableMixin as _0x132ae2,uid as _0x439105}from'ckeditor5/src/utils.js';function _0x1a9e(_0x568072,_0x779178){const _0x301bb8=_0x301b();return _0x1a9e=function(_0x1a9e01,_0x4dc1d9){_0x1a9e01=_0x1a9e01-0x1e6;let _0x2394b3=_0x301bb8[_0x1a9e01];return _0x2394b3;},_0x1a9e(_0x568072,_0x779178);}import{AIContextItemType as _0x417156,AIContextTextResourceType as _0x24355c}from'../../aicore/model/aicontext.js';import{escape as _0x3ac15e}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x249f1b(0x217),_0x249f1b(0x1ec),_0x249f1b(0x267),_0x249f1b(0x236),_0x249f1b(0x205),_0x249f1b(0x222),_0x249f1b(0x265),_0x249f1b(0x22f),_0x249f1b(0x231)];export class AIChatContext extends _0x132ae2(){[_0x249f1b(0x235)];[_0x249f1b(0x23d)];[_0x249f1b(0x24c)];constructor({connector:_0xc70215,config:_0x3fb860,ownerId:_0x29fad7}){const _0x16e99e=_0x249f1b;super(),this[_0x16e99e(0x235)]=_0xc70215,this[_0x16e99e(0x23d)]=_0x3fb860,this[_0x16e99e(0x24c)]=_0x29fad7;}[_0x249f1b(0x23a)](){const _0x778090=_0x249f1b;this[_0x778090(0x1f4)]=new Map(),this[_0x778090(0x22e)]=new Map(),this[_0x778090(0x1e9)]=new Map(),this[_0x778090(0x20c)]=new Map(),this[_0x778090(0x1e8)]();}[_0x249f1b(0x1f3)](){const _0x1ee019=_0x249f1b;return this[_0x1ee019(0x1f4)];}async[_0x249f1b(0x223)](_0x1bd257){const _0x549108=_0x249f1b,_0x5a3396=await this[_0x549108(0x1eb)](_0x1bd257);return this[_0x549108(0x26e)](_0x5a3396),_0x549108(0x22c)===_0x5a3396[_0x549108(0x25a)]&&this[_0x549108(0x25b)](),_0x5a3396;}async[_0x249f1b(0x1eb)](_0x1acece){const _0x3e3f53=_0x249f1b;if(_0x1acece[_0x3e3f53(0x20a)]===_0x417156[_0x3e3f53(0x25c)]){const _0x41a1a8=await this[_0x3e3f53(0x235)][_0x3e3f53(0x22a)](this[_0x3e3f53(0x24c)],_0x1acece['id'])[_0x3e3f53(0x26f)]();return{'id':_0x3e3f53(0x22c),'uiId':_0x3e3f53(0x22c),'label':_0x3e3f53(0x227),'type':_0x1acece[_0x3e3f53(0x20a)],'content':_0x41a1a8[_0x3e3f53(0x212)],'hidden':this[_0x3e3f53(0x22e)][_0x3e3f53(0x21d)](_0x3e3f53(0x22c)),'version':_0x41a1a8[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x247)],'sessionId':_0x41a1a8[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x24a)]};}return{'id':_0x1acece['id'],'uiId':_0x1acece['id'],'label':_0x1acece[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x1fc)]||_0x1acece[_0x3e3f53(0x203)]||_0x1acece[_0x3e3f53(0x25f)]||_0x1acece['id'],'type':_0x1acece[_0x3e3f53(0x20a)],..._0x1acece?.[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x274)]?{'resourceId':_0x1acece[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x274)]}:{}};}[_0x249f1b(0x20f)](){const _0x169407=_0x249f1b;return new Map(this[_0x169407(0x22e)]);}[_0x249f1b(0x1f6)](_0x56fe7e){const _0x3f8ec6=_0x249f1b,_0x411afe=this[_0x3f8ec6(0x1f4)][_0x3f8ec6(0x22b)](_0x56fe7e);_0x411afe?.[_0x3f8ec6(0x20b)]||this[_0x3f8ec6(0x21a)](_0x56fe7e);}[_0x249f1b(0x1f8)](){const _0x2ca890=_0x249f1b;if(0x0===this[_0x2ca890(0x1f4)][_0x2ca890(0x206)])return;for(const _0x33a096 of this[_0x2ca890(0x1f4)][_0x2ca890(0x249)]())this[_0x2ca890(0x21a)](_0x33a096[_0x2ca890(0x25a)]);const _0x269f37=this[_0x2ca890(0x22e)][_0x2ca890(0x22b)](_0x2ca890(0x22c))||this[_0x2ca890(0x1f4)][_0x2ca890(0x22b)](_0x2ca890(0x22c));_0x269f37&&this[_0x2ca890(0x259)]({..._0x269f37,'isReadOnly':!0x0,'hidden':!0x0});}[_0x249f1b(0x23e)](_0x89f98e){const _0x50b7ac=_0x249f1b;for(const _0x105b93 of _0x89f98e[_0x50b7ac(0x249)]())this[_0x50b7ac(0x26e)](_0x105b93);this[_0x50b7ac(0x1f8)](),this[_0x50b7ac(0x269)](_0x50b7ac(0x236),{'contextItems':Array[_0x50b7ac(0x275)](this[_0x50b7ac(0x20f)]()[_0x50b7ac(0x249)]())});}[_0x249f1b(0x204)](){const _0x4766a8=_0x249f1b;return this[_0x4766a8(0x1f4)][_0x4766a8(0x21d)](_0x4766a8(0x22c));}[_0x249f1b(0x257)](){const _0xc4e7cd=_0x249f1b;return this[_0xc4e7cd(0x1f4)][_0xc4e7cd(0x21d)](_0xc4e7cd(0x230));}[_0x249f1b(0x228)](){const _0x988659=_0x249f1b;return this[_0x988659(0x22e)][_0x988659(0x21d)](_0x988659(0x22c));}static[_0x249f1b(0x266)](_0x1b51cf){const _0x658d90=_0x249f1b;return Array[_0x658d90(0x275)](_0x1b51cf[_0x658d90(0x249)]())[_0x658d90(0x21c)](_0x3f98aa=>this[_0x658d90(0x271)](_0x3f98aa))[_0x658d90(0x25d)](_0xade571=>null!==_0xade571);}async[_0x249f1b(0x202)](_0x43a6f9,_0x171085,_0x4a3b0d=_0x417156[_0x249f1b(0x23c)]){const _0x4a00ea=_0x249f1b,_0x11d728=_0x4a00ea(0x210)+_0x439105();this[_0x4a00ea(0x276)](_0x11d728);try{await Promise[_0x4a00ea(0x1ee)](_0x43a6f9[_0x4a00ea(0x21c)](async _0x27ddf8=>{const _0x141a20=_0x4a00ea,_0x4f6fa2=_0x141a20(0x233)+_0x439105(),_0x500f07=_0x3ac15e(_0x27ddf8[_0x141a20(0x203)]);try{this[_0x141a20(0x259)]({'type':_0x4a3b0d,'label':_0x171085?.[_0x141a20(0x1fc)]||_0x500f07,'uiId':_0x4f6fa2,'resourceId':_0x171085?.[_0x141a20(0x274)]},!0x0);const _0x5a728b=this[_0x141a20(0x235)][_0x141a20(0x22d)](this[_0x141a20(0x24c)],_0x27ddf8,_0x171085);this[_0x141a20(0x1e9)][_0x141a20(0x253)](_0x4f6fa2,_0x5a728b[_0x141a20(0x241)]);const {id:_0x1f1e3c}=await _0x5a728b[_0x141a20(0x24d)]();this[_0x141a20(0x1e9)][_0x141a20(0x1f0)](_0x4f6fa2),this[_0x141a20(0x208)]({'type':_0x4a3b0d,'id':_0x1f1e3c,'label':_0x171085?.[_0x141a20(0x1fc)]||_0x500f07,'uiId':_0x4f6fa2,'resourceId':_0x171085?.[_0x141a20(0x274)]},!0x1);}catch(_0x3c8165){this[_0x141a20(0x1e9)][_0x141a20(0x1f0)](_0x4f6fa2);if(!_0x3c8165[_0x141a20(0x1ea)][_0x141a20(0x270)](_0x141a20(0x1ff))){const _0x1741d9=new _0x59e32b(_0x141a20(0x262),null,{'fileName':_0x500f07});_0x1741d9[_0x141a20(0x251)]=_0x3c8165[_0x141a20(0x251)],this[_0x141a20(0x269)](_0x141a20(0x205),{'error':_0x1741d9,'fileName':_0x500f07});}this[_0x141a20(0x21a)](_0x4f6fa2);}}));}finally{this[_0x4a00ea(0x237)](_0x11d728);}}[_0x249f1b(0x234)](_0x28412b){const _0x1fa38d=_0x249f1b;if(this[_0x1fa38d(0x204)]())return;const _0x2b84f1={'type':_0x417156[_0x1fa38d(0x25c)],'uiId':_0x1fa38d(0x22c),'label':_0x28412b,'isReadOnly':this[_0x1fa38d(0x22e)][_0x1fa38d(0x21d)](_0x1fa38d(0x22c)),'hidden':this[_0x1fa38d(0x22e)][_0x1fa38d(0x21d)](_0x1fa38d(0x22c))};this[_0x1fa38d(0x259)](_0x2b84f1);}async[_0x249f1b(0x260)](_0x3533ac,_0x5ebe4b,_0x21b334,_0x323030){const _0x4ba8e0=_0x249f1b,_0x27efec=this[_0x4ba8e0(0x1f4)][_0x4ba8e0(0x22b)](_0x4ba8e0(0x22c));if(_0x27efec&&_0x3533ac){_0x27efec[_0x4ba8e0(0x230)]=_0x323030?_0x323030[_0x4ba8e0(0x21c)](_0xd2a2ec=>({'start':_0xd2a2ec[_0x4ba8e0(0x24e)],'end':_0xd2a2ec[_0x4ba8e0(0x24b)]})):[];try{if(_0x27efec[_0x4ba8e0(0x247)]===_0x5ebe4b)return;const {id:_0x31889c}=await this[_0x4ba8e0(0x235)][_0x4ba8e0(0x213)](this[_0x4ba8e0(0x24c)],_0x3533ac,{'version':_0x5ebe4b,'sessionId':_0x21b334})[_0x4ba8e0(0x24d)]();_0x27efec['id']=_0x31889c,_0x27efec[_0x4ba8e0(0x212)]=_0x3533ac,_0x27efec[_0x4ba8e0(0x247)]=_0x5ebe4b,_0x27efec[_0x4ba8e0(0x24a)]=_0x21b334;}catch(_0x56f275){const _0x2887d0=new _0x59e32b(_0x4ba8e0(0x1f2),null);_0x2887d0[_0x4ba8e0(0x251)]=_0x56f275[_0x4ba8e0(0x251)],this[_0x4ba8e0(0x269)](_0x4ba8e0(0x205),{'error':_0x2887d0});}}}[_0x249f1b(0x1fb)](_0x50f0c8){const _0x38f676=_0x249f1b;this[_0x38f676(0x259)]({'type':_0x417156[_0x38f676(0x1fe)],'label':_0x50f0c8,'uiId':_0x38f676(0x230),'content':_0x50f0c8});}[_0x249f1b(0x272)](){const _0x49a423=_0x249f1b;this[_0x49a423(0x21a)](_0x49a423(0x230));}async[_0x249f1b(0x268)](_0x2c86d9,_0x2a6cde){const _0x1c3dc9=_0x249f1b,_0x1b85e3=_0x1c3dc9(0x209)+_0x439105();this[_0x1c3dc9(0x276)](_0x1b85e3);const _0x3e1ccd=_0x1c3dc9(0x209)+_0x439105();try{this[_0x1c3dc9(0x259)]({'type':_0x417156[_0x1c3dc9(0x1f1)],'label':_0x2a6cde?.[_0x1c3dc9(0x1fc)]||_0x2c86d9,'uiId':_0x3e1ccd,'resourceId':_0x2a6cde?.[_0x1c3dc9(0x274)]},!0x0);const _0x325586=this[_0x1c3dc9(0x235)][_0x1c3dc9(0x239)](this[_0x1c3dc9(0x24c)],_0x2c86d9,_0x2a6cde);this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x253)](_0x3e1ccd,_0x325586[_0x1c3dc9(0x241)]);const {id:_0x40c2c4}=await _0x325586[_0x1c3dc9(0x24d)]();this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x1f0)](_0x3e1ccd),this[_0x1c3dc9(0x208)]({'type':_0x417156[_0x1c3dc9(0x1f1)],'id':_0x40c2c4,'label':_0x2a6cde?.[_0x1c3dc9(0x1fc)]||_0x2c86d9,'uiId':_0x3e1ccd,'resourceId':_0x2a6cde?.[_0x1c3dc9(0x274)]},!0x1);}catch(_0x3cf346){this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x1f0)](_0x3e1ccd),(_0x3cf346[_0x1c3dc9(0x1ea)][_0x1c3dc9(0x270)](_0x1c3dc9(0x1ff))||this[_0x1c3dc9(0x269)](_0x1c3dc9(0x205),{'error':new _0x59e32b(_0x1c3dc9(0x224),this,{'url':_0x2c86d9,'originalError':_0x3cf346}),'url':_0x2c86d9}),this[_0x1c3dc9(0x21a)](_0x3e1ccd));}finally{this[_0x1c3dc9(0x237)](_0x1b85e3);}}async[_0x249f1b(0x26a)](_0x4ec595,_0x294f81,_0x514400){const _0x4ba85f=_0x249f1b,_0x79385c=this[_0x4ba85f(0x256)][_0x4ba85f(0x1ed)][_0x4ba85f(0x263)](_0x22dd99=>_0x22dd99['id']===_0x4ec595);if(!_0x79385c)return this[_0x4ba85f(0x269)](_0x4ba85f(0x205),{'error':new _0x59e32b(_0x4ba85f(0x20e),this,{'sourceId':_0x4ec595}),'sourceId':_0x4ec595}),[];try{const _0x14063e=(await _0x79385c[_0x4ba85f(0x252)](_0x294f81))[_0x4ba85f(0x21c)](_0xec45ce=>{const _0x783061=_0x4ba85f,_0x394805=this[_0x783061(0x20d)](_0xec45ce['id']);return{..._0xec45ce,'isInContext':_0x394805};});return _0x79385c[_0x4ba85f(0x258)]=_0x14063e,this[_0x4ba85f(0x269)](_0x4ba85f(0x265),{'sourceId':_0x4ec595,'source':_0x79385c,'resources':_0x14063e,'uid':_0x514400}),_0x14063e;}catch(_0x20f7c0){return this[_0x4ba85f(0x269)](_0x4ba85f(0x205),{'error':new _0x59e32b(_0x4ba85f(0x264),this,{'sourceId':_0x4ec595,'originalError':_0x20f7c0}),'sourceId':_0x4ec595,'sourceLabel':_0x79385c[_0x4ba85f(0x1fc)]}),[];}}async[_0x249f1b(0x244)](_0x500f0b,_0x12c470){const _0x427184=_0x249f1b;if(this[_0x427184(0x20d)](_0x12c470['id']))return;let _0x44eb9b=_0x12c470[_0x427184(0x25e)];if(!_0x44eb9b&&_0x500f0b[_0x427184(0x1e6)])try{_0x44eb9b=await _0x500f0b[_0x427184(0x1e6)](_0x12c470['id']);}catch(_0x44fa02){return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x219),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'originalError':_0x44fa02}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}if(_0x44eb9b)switch(_0x12c470[_0x427184(0x20a)]){case _0x417156[_0x427184(0x1f1)]:if(_0x427184(0x200)!=typeof _0x44eb9b)return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x200),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});await this[_0x427184(0x268)](_0x44eb9b,{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']});break;case _0x417156[_0x427184(0x23c)]:if(!(_0x44eb9b instanceof File))return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x21b),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});await this[_0x427184(0x202)]([_0x44eb9b],{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']});break;case _0x417156[_0x427184(0x218)]:if(_0x427184(0x261)!=typeof _0x44eb9b||!(_0x427184(0x212)in _0x44eb9b)||!(_0x427184(0x20a)in _0x44eb9b))return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x215),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});_0x44eb9b=AIChatContext[_0x427184(0x23f)](_0x44eb9b,_0x12c470[_0x427184(0x1fc)]),await this[_0x427184(0x202)]([_0x44eb9b],{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']},_0x417156[_0x427184(0x218)]);break;default:this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x216),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'resourceType':_0x12c470[_0x427184(0x20a)]}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}else this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x211),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}static[_0x249f1b(0x23f)](_0x4fdf6a,_0x17dab2){const _0x592fe3=_0x249f1b;switch(_0x4fdf6a[_0x592fe3(0x20a)]){case _0x24355c[_0x592fe3(0x226)]:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x240)});case _0x24355c[_0x592fe3(0x1f5)]:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x246)});default:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x207)});}}static[_0x249f1b(0x271)](_0x2b8268){const _0x57c286=_0x249f1b;switch(_0x2b8268[_0x57c286(0x20a)]){case _0x417156[_0x57c286(0x23c)]:return{'type':_0x417156[_0x57c286(0x23c)],'id':_0x2b8268['id']};case _0x417156[_0x57c286(0x1f1)]:return{'type':_0x417156[_0x57c286(0x1f1)],'id':_0x2b8268['id']};case _0x417156[_0x57c286(0x25c)]:return{'type':_0x417156[_0x57c286(0x25c)],'id':_0x2b8268['id'],..._0x2b8268[_0x57c286(0x230)]?.[_0x57c286(0x238)]&&{'selection':_0x2b8268[_0x57c286(0x230)]}};case _0x417156[_0x57c286(0x218)]:return{'type':_0x417156[_0x57c286(0x23c)],'id':_0x2b8268['id']};default:return null;}}[_0x249f1b(0x259)](_0x475599,_0x249645=!0x1){const _0x3df63d=_0x249f1b;if(this[_0x3df63d(0x1f4)][_0x3df63d(0x253)](_0x475599[_0x3df63d(0x25a)],_0x475599),_0x475599[_0x3df63d(0x23b)]||this[_0x3df63d(0x269)](_0x3df63d(0x217),{'contextItem':_0x475599,'isLoading':_0x249645}),_0x3df63d(0x22c)===_0x475599[_0x3df63d(0x25a)]&&this[_0x3df63d(0x25b)](),_0x475599[_0x3df63d(0x274)]){const _0x5cb4f9=this[_0x3df63d(0x242)](_0x475599[_0x3df63d(0x274)]);_0x5cb4f9&&_0x5cb4f9[_0x3df63d(0x220)](_0x56e17b=>{const _0x5509c3=_0x3df63d;this[_0x5509c3(0x248)](_0x56e17b,_0x475599[_0x5509c3(0x274)],!0x0);});}}[_0x249f1b(0x21a)](_0x3df38e){const _0x363b18=_0x249f1b,_0x4bb5fe=this[_0x363b18(0x1f4)][_0x363b18(0x22b)](_0x3df38e),_0x2d52b9=this[_0x363b18(0x1e9)][_0x363b18(0x22b)](_0x3df38e);if(_0x2d52b9&&(_0x2d52b9[_0x363b18(0x232)](),this[_0x363b18(0x1e9)][_0x363b18(0x1f0)](_0x3df38e)),_0x4bb5fe?.[_0x363b18(0x274)]){const _0xce35b3=this[_0x363b18(0x242)](_0x4bb5fe[_0x363b18(0x274)]);_0xce35b3&&_0xce35b3[_0x363b18(0x220)](_0xec422=>{const _0x4a7805=_0x363b18;this[_0x4a7805(0x248)](_0xec422,_0x4bb5fe[_0x4a7805(0x274)],!0x1);});}this[_0x363b18(0x1f4)][_0x363b18(0x1f0)](_0x3df38e),this[_0x363b18(0x269)](_0x363b18(0x1ec),{'uiId':_0x3df38e,'type':_0x4bb5fe?.[_0x363b18(0x20a)]}),_0x363b18(0x22c)===_0x3df38e&&this[_0x363b18(0x25b)]();}[_0x249f1b(0x208)](_0x15c24f,_0x1a6735){const _0x46d373=_0x249f1b;if(this[_0x46d373(0x1f4)][_0x46d373(0x21d)](_0x15c24f[_0x46d373(0x25a)])&&(this[_0x46d373(0x1f4)][_0x46d373(0x253)](_0x15c24f[_0x46d373(0x25a)],_0x15c24f),this[_0x46d373(0x269)](_0x46d373(0x267),{'contextItem':_0x15c24f,'isLoading':_0x1a6735}),_0x15c24f[_0x46d373(0x274)])){const _0x2e6baa=this[_0x46d373(0x242)](_0x15c24f[_0x46d373(0x274)]);_0x2e6baa&&_0x2e6baa[_0x46d373(0x220)](_0x4a7528=>{const _0x1e2f3b=_0x46d373;this[_0x1e2f3b(0x248)](_0x4a7528,_0x15c24f[_0x1e2f3b(0x274)],!0x0);});}}[_0x249f1b(0x26e)](_0x1b027a){const _0x5c5f7b=_0x249f1b;this[_0x5c5f7b(0x22e)][_0x5c5f7b(0x253)](_0x1b027a[_0x5c5f7b(0x25a)],_0x1b027a);}[_0x249f1b(0x1e8)](){const _0x505b2a=_0x249f1b;this[_0x505b2a(0x256)]={'document':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x1f9)]?.[_0x505b2a(0x243)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x21f)]?.[_0x505b2a(0x243)]},'files':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x254)]?.[_0x505b2a(0x243)]},'sources':this[_0x505b2a(0x1fd)]()},this[_0x505b2a(0x269)](_0x505b2a(0x222),{'options':this[_0x505b2a(0x256)]});}[_0x249f1b(0x1fd)](){const _0x35fac5=_0x249f1b;return this[_0x35fac5(0x23d)]?.[_0x35fac5(0x1ed)]?.[_0x35fac5(0x21c)](_0x5ed404=>({..._0x5ed404,'resources':[]}))??[];}[_0x249f1b(0x25b)](){const _0xe6e5=_0x249f1b,_0x4253c4=this[_0xe6e5(0x204)]()||this[_0xe6e5(0x228)]();this[_0xe6e5(0x256)][_0xe6e5(0x1f9)][_0xe6e5(0x26d)]=_0x4253c4,this[_0xe6e5(0x269)](_0xe6e5(0x222),{'options':this[_0xe6e5(0x256)]});}[_0x249f1b(0x20d)](_0x5c5aa9){const _0x1e3571=_0x249f1b;for(const _0x13c8ef of this[_0x1e3571(0x1f4)][_0x1e3571(0x249)]())if(_0x13c8ef[_0x1e3571(0x274)]===_0x5c5aa9)return!0x0;for(const _0x5ba8cb of this[_0x1e3571(0x22e)][_0x1e3571(0x249)]())if(_0x5ba8cb[_0x1e3571(0x274)]===_0x5c5aa9)return!0x0;return!0x1;}[_0x249f1b(0x242)](_0x103255){const _0x146f72=_0x249f1b,_0x5e7a7c=[];for(const _0x41a0f3 of this[_0x146f72(0x256)][_0x146f72(0x1ed)]){_0x41a0f3[_0x146f72(0x258)][_0x146f72(0x263)](_0x44bd7e=>_0x44bd7e['id']===_0x103255)&&_0x5e7a7c[_0x146f72(0x255)](_0x41a0f3['id']);}return 0x0===_0x5e7a7c[_0x146f72(0x238)]?null:_0x5e7a7c;}[_0x249f1b(0x248)](_0x2323ee,_0x332df3,_0x493fa5){const _0x139fa3=_0x249f1b,_0x3d3b88=this[_0x139fa3(0x256)][_0x139fa3(0x1ed)][_0x139fa3(0x263)](_0x402855=>_0x402855['id']===_0x2323ee);if(!_0x3d3b88)return;const _0x86e419=_0x3d3b88[_0x139fa3(0x258)][_0x139fa3(0x263)](_0x4e73c2=>_0x4e73c2['id']===_0x332df3);_0x86e419&&(_0x86e419[_0x139fa3(0x225)]=_0x493fa5,this[_0x139fa3(0x269)](_0x139fa3(0x22f),{'sourceId':_0x2323ee,'resourceId':_0x332df3,'isInContext':_0x493fa5}));}[_0x249f1b(0x276)](_0x1ba656){const _0x43f358=_0x249f1b;this[_0x43f358(0x20c)][_0x43f358(0x253)](_0x1ba656,!0x0),this[_0x43f358(0x20c)][_0x43f358(0x206)]&&this[_0x43f358(0x269)](_0x43f358(0x231),{'isUploadInProgress':!0x0});}[_0x249f1b(0x237)](_0x3633b3){const _0x36787a=_0x249f1b;this[_0x36787a(0x20c)][_0x36787a(0x1f0)](_0x3633b3),0x0===this[_0x36787a(0x20c)][_0x36787a(0x206)]&&this[_0x36787a(0x269)](_0x36787a(0x231),{'isUploadInProgress':!0x1});}}
23
+ const _0x2161dd=_0x21a3;(function(_0x271165,_0x24fe00){const _0x53fbd0=_0x21a3,_0x57912f=_0x271165();while(!![]){try{const _0x68c285=-parseInt(_0x53fbd0(0x21e))/0x1*(parseInt(_0x53fbd0(0x1ff))/0x2)+parseInt(_0x53fbd0(0x1e3))/0x3+-parseInt(_0x53fbd0(0x1e7))/0x4+-parseInt(_0x53fbd0(0x1ae))/0x5+parseInt(_0x53fbd0(0x211))/0x6*(parseInt(_0x53fbd0(0x1a8))/0x7)+-parseInt(_0x53fbd0(0x1cb))/0x8*(parseInt(_0x53fbd0(0x227))/0x9)+parseInt(_0x53fbd0(0x1c4))/0xa;if(_0x68c285===_0x24fe00)break;else _0x57912f['push'](_0x57912f['shift']());}catch(_0x3c7716){_0x57912f['push'](_0x57912f['shift']());}}}(_0x4d1e,0xef704));function _0x4d1e(){const _0x2e17c9=['sessionId','SELECTION','MARKDOWN','4256240jmfZIK','_connector','uploadDocument','populateFromMessage','ai-chat-resource-no-data','sources','error','file-','startsWith','get','text/markdown','_removeContextItem','getDocument','_createContextItemFromContent','getSentContextItems','ai-chat-file-upload-failed','url','TEXT','isCurrentDocumentInContext','has','filter','isSelectionInContext','object\x20with\x20content\x20and\x20type\x20properties','File','4rQfDnJ','_updateResourceInContextState','hidden','HTML','resourceId','addSelectionToContext','_ownerId','_conversationContextItems','addCurrentDocumentToContext','isInContext','DOCUMENT','init','addContextOptionsChanged','label','_getCustomSourcesInitialState','_finishUploadOperation','forEach','current-document','2312214EpsgkD','getResources','loadSourceResources','version','enabled','_pendingContextItems','_ongoingUploads','ai-chat-context-invalid-data','find','attributes','getData','isHidden','url-','494562bEUfHI','push','addResourceToContext','Current\x20document','uploadFile','clearPendingContextItems','delete','message','addToConversationContext','6403338IBPcgY','contextItemAdded','resourceStateChanged','length','updateCurrentDocument','sourceResourcesLoaded','text/html','selection','contextItemLoadingEnded','ai-chat-context-unsupported-type','isCurrentDocumentInConversation','abort','ai-chat-document-upload-failed','fire','uploadUrl','35serFVm','removeSelectionFromContext','stack','_addToConversationContextItem','fetchDocument','name','2535280pDfVLG','_ongoingUploadOperations','content','ai-request-aborted','addFilesToContext','abortController','isReadOnly','_convertTextResourceToFile','URL','_finishContextItemLoading','FILE','type','_addContextItem','size','ai-chat-source-not-found','data','_isResourceInContext','files-','map','end','files','uploadProgressChanged','4585110LcYGoq','document','_toggleAddCurrentDocumentOptionVisibility','_setAddContextOptionsDefaultState','removeFromContext','ai-chat-source-resources-load-failed','set','8QMkXwQ','text/plain','_startUploadOperation','mapContextItemsToRequestData','_findSourceIdsByResourceId','all','resources','start','_mapContextItemToRequestData','from','_addContextOptionsState','addUrlToContext','string','contextItemRemoved','values','ai-chat-resource-load-failed','contextSent','_config','urls','ai-chat-url-upload-failed','getPendingContextItems','uiId','object','getId','5601318TcgxvL'];_0x4d1e=function(){return _0x2e17c9;};return _0x4d1e();}import{CKEditorError as _0x4b5ac4,ObservableMixin as _0x5bb4b3,uid as _0x10684e}from'ckeditor5/src/utils.js';function _0x21a3(_0x27c1fa,_0x300749){const _0x4d1ea7=_0x4d1e();return _0x21a3=function(_0x21a3e6,_0x5b6d9b){_0x21a3e6=_0x21a3e6-0x19e;let _0x18a076=_0x4d1ea7[_0x21a3e6];return _0x18a076;},_0x21a3(_0x27c1fa,_0x300749);}import{AIContextItemType as _0x4be24e,AIContextTextResourceType as _0xafee88}from'../../aicore/model/aicontext.js';import{escape as _0x3caebf}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x2161dd(0x228),_0x2161dd(0x1d8),_0x2161dd(0x1a1),_0x2161dd(0x1db),_0x2161dd(0x1ed),_0x2161dd(0x20b),_0x2161dd(0x19e),_0x2161dd(0x229),_0x2161dd(0x1c3)];export class AIChatContext extends _0x5bb4b3(){[_0x2161dd(0x1e8)];[_0x2161dd(0x1dc)];[_0x2161dd(0x205)];constructor({connector:_0x5425f7,config:_0x2d9ef0,ownerId:_0x422616}){const _0x32edb6=_0x2161dd;super(),this[_0x32edb6(0x1e8)]=_0x5425f7,this[_0x32edb6(0x1dc)]=_0x2d9ef0,this[_0x32edb6(0x205)]=_0x422616;}[_0x2161dd(0x20a)](){const _0x1909a7=_0x2161dd;this[_0x1909a7(0x216)]=new Map(),this[_0x1909a7(0x206)]=new Map(),this[_0x1909a7(0x217)]=new Map(),this[_0x1909a7(0x1af)]=new Map(),this[_0x1909a7(0x1c7)]();}[_0x2161dd(0x1df)](){const _0x2a62d0=_0x2161dd;return this[_0x2a62d0(0x216)];}async[_0x2161dd(0x1ea)](_0x49fbd6){const _0x1b9165=_0x2161dd,_0x30b797=await this[_0x1b9165(0x1f4)](_0x49fbd6);return this[_0x1b9165(0x1ab)](_0x30b797),_0x1b9165(0x210)===_0x30b797[_0x1b9165(0x1e0)]&&this[_0x1b9165(0x1c6)](),_0x30b797;}async[_0x2161dd(0x1f4)](_0x48b69a){const _0x4b626d=_0x2161dd;if(_0x48b69a[_0x4b626d(0x1b9)]===_0x4be24e[_0x4b626d(0x209)]){const _0xb9652d=await this[_0x4b626d(0x1e8)][_0x4b626d(0x1ac)](this[_0x4b626d(0x205)],_0x48b69a['id'])[_0x4b626d(0x1f3)]();return{'id':_0x4b626d(0x210),'uiId':_0x4b626d(0x210),'label':_0x4b626d(0x221),'type':_0x48b69a[_0x4b626d(0x1b9)],'content':_0xb9652d[_0x4b626d(0x1b0)],'hidden':this[_0x4b626d(0x206)][_0x4b626d(0x1fa)](_0x4b626d(0x210)),'version':_0xb9652d[_0x4b626d(0x21a)]?.[_0x4b626d(0x214)],'sessionId':_0xb9652d[_0x4b626d(0x21a)]?.[_0x4b626d(0x1e4)]};}return{'id':_0x48b69a['id'],'uiId':_0x48b69a['id'],'label':_0x48b69a[_0x4b626d(0x21a)]?.[_0x4b626d(0x20c)]||_0x48b69a[_0x4b626d(0x1ad)]||_0x48b69a[_0x4b626d(0x1f7)]||_0x48b69a['id'],'type':_0x48b69a[_0x4b626d(0x1b9)],..._0x48b69a?.[_0x4b626d(0x21a)]?.[_0x4b626d(0x203)]?{'resourceId':_0x48b69a[_0x4b626d(0x21a)]?.[_0x4b626d(0x203)]}:{}};}[_0x2161dd(0x1f5)](){const _0x2b859e=_0x2161dd;return new Map(this[_0x2b859e(0x206)]);}[_0x2161dd(0x1c8)](_0x1a7e43){const _0x5d8eb0=_0x2161dd,_0x7b878a=this[_0x5d8eb0(0x216)][_0x5d8eb0(0x1f0)](_0x1a7e43);_0x7b878a?.[_0x5d8eb0(0x1b4)]||this[_0x5d8eb0(0x1f2)](_0x1a7e43);}[_0x2161dd(0x223)](){const _0x1357b7=_0x2161dd;if(0x0===this[_0x1357b7(0x216)][_0x1357b7(0x1bb)])return;for(const _0x2fc4ad of this[_0x1357b7(0x216)][_0x1357b7(0x1d9)]())this[_0x1357b7(0x1f2)](_0x2fc4ad[_0x1357b7(0x1e0)]);const _0x240d4a=this[_0x1357b7(0x206)][_0x1357b7(0x1f0)](_0x1357b7(0x210))||this[_0x1357b7(0x216)][_0x1357b7(0x1f0)](_0x1357b7(0x210));_0x240d4a&&this[_0x1357b7(0x1ba)]({..._0x240d4a,'isReadOnly':!0x0,'hidden':!0x0});}[_0x2161dd(0x226)](_0x2ac705){const _0xc05920=_0x2161dd;for(const _0x538ce3 of _0x2ac705[_0xc05920(0x1d9)]())this[_0xc05920(0x1ab)](_0x538ce3);this[_0xc05920(0x223)](),this[_0xc05920(0x1a6)](_0xc05920(0x1db),{'contextItems':Array[_0xc05920(0x1d4)](this[_0xc05920(0x1f5)]()[_0xc05920(0x1d9)]())});}[_0x2161dd(0x1f9)](){const _0x5f39d8=_0x2161dd;return this[_0x5f39d8(0x216)][_0x5f39d8(0x1fa)](_0x5f39d8(0x210));}[_0x2161dd(0x1fc)](){const _0x376f7f=_0x2161dd;return this[_0x376f7f(0x216)][_0x376f7f(0x1fa)](_0x376f7f(0x1a0));}[_0x2161dd(0x1a3)](){const _0x16eddf=_0x2161dd;return this[_0x16eddf(0x206)][_0x16eddf(0x1fa)](_0x16eddf(0x210));}static[_0x2161dd(0x1ce)](_0x192397){const _0x5329e1=_0x2161dd;return Array[_0x5329e1(0x1d4)](_0x192397[_0x5329e1(0x1d9)]())[_0x5329e1(0x1c0)](_0x13a2cc=>this[_0x5329e1(0x1d3)](_0x13a2cc))[_0x5329e1(0x1fb)](_0x5772f4=>null!==_0x5772f4);}async[_0x2161dd(0x1b2)](_0x939988,_0xef1680,_0x4187b3=_0x4be24e[_0x2161dd(0x1b8)]){const _0x225252=_0x2161dd,_0x12bebc=_0x225252(0x1bf)+_0x10684e();this[_0x225252(0x1cd)](_0x12bebc);try{await Promise[_0x225252(0x1d0)](_0x939988[_0x225252(0x1c0)](async _0x84004=>{const _0x2e0d41=_0x225252,_0x5ca068=_0x2e0d41(0x1ee)+_0x10684e(),_0x322b2a=_0x3caebf(_0x84004[_0x2e0d41(0x1ad)]);try{this[_0x2e0d41(0x1ba)]({'type':_0x4187b3,'label':_0xef1680?.[_0x2e0d41(0x20c)]||_0x322b2a,'uiId':_0x5ca068,'resourceId':_0xef1680?.[_0x2e0d41(0x203)]},!0x0);const _0x2bef57=this[_0x2e0d41(0x1e8)][_0x2e0d41(0x222)](this[_0x2e0d41(0x205)],_0x84004,_0xef1680);this[_0x2e0d41(0x217)][_0x2e0d41(0x1ca)](_0x5ca068,_0x2bef57[_0x2e0d41(0x1b3)]);const {id:_0x52df5f}=await _0x2bef57[_0x2e0d41(0x1e2)]();this[_0x2e0d41(0x217)][_0x2e0d41(0x224)](_0x5ca068),this[_0x2e0d41(0x1b7)]({'type':_0x4187b3,'id':_0x52df5f,'label':_0xef1680?.[_0x2e0d41(0x20c)]||_0x322b2a,'uiId':_0x5ca068,'resourceId':_0xef1680?.[_0x2e0d41(0x203)]},!0x1);}catch(_0x125308){this[_0x2e0d41(0x217)][_0x2e0d41(0x224)](_0x5ca068);if(!_0x125308[_0x2e0d41(0x225)][_0x2e0d41(0x1ef)](_0x2e0d41(0x1b1))){const _0x1f7133=new _0x4b5ac4(_0x2e0d41(0x1f6),null,{'fileName':_0x322b2a});_0x1f7133[_0x2e0d41(0x1aa)]=_0x125308[_0x2e0d41(0x1aa)],this[_0x2e0d41(0x1a6)](_0x2e0d41(0x1ed),{'error':_0x1f7133,'fileName':_0x322b2a});}this[_0x2e0d41(0x1f2)](_0x5ca068);}}));}finally{this[_0x225252(0x20e)](_0x12bebc);}}[_0x2161dd(0x207)](_0x3b59ea){const _0x233129=_0x2161dd;if(this[_0x233129(0x1f9)]())return;const _0x360e90={'type':_0x4be24e[_0x233129(0x209)],'uiId':_0x233129(0x210),'label':_0x3b59ea,'isReadOnly':this[_0x233129(0x206)][_0x233129(0x1fa)](_0x233129(0x210)),'hidden':this[_0x233129(0x206)][_0x233129(0x1fa)](_0x233129(0x210))};this[_0x233129(0x1ba)](_0x360e90);}async[_0x2161dd(0x22b)](_0x581d5f,_0x367f90,_0x2c15b6,_0xe254b3){const _0x1236ae=_0x2161dd,_0x202667=this[_0x1236ae(0x216)][_0x1236ae(0x1f0)](_0x1236ae(0x210));if(_0x202667&&_0x581d5f){_0x202667[_0x1236ae(0x1a0)]=_0xe254b3?_0xe254b3[_0x1236ae(0x1c0)](_0x4b375e=>({'start':_0x4b375e[_0x1236ae(0x1d2)],'end':_0x4b375e[_0x1236ae(0x1c1)]})):[];try{if(_0x202667[_0x1236ae(0x214)]===_0x367f90)return;const {id:_0x39c82b}=await this[_0x1236ae(0x1e8)][_0x1236ae(0x1e9)](this[_0x1236ae(0x205)],_0x581d5f,{'version':_0x367f90,'sessionId':_0x2c15b6})[_0x1236ae(0x1e2)]();_0x202667['id']=_0x39c82b,_0x202667[_0x1236ae(0x1b0)]=_0x581d5f,_0x202667[_0x1236ae(0x214)]=_0x367f90,_0x202667[_0x1236ae(0x1e4)]=_0x2c15b6;}catch(_0x545faa){const _0x17df4e=new _0x4b5ac4(_0x1236ae(0x1a5),null);_0x17df4e[_0x1236ae(0x1aa)]=_0x545faa[_0x1236ae(0x1aa)],this[_0x1236ae(0x1a6)](_0x1236ae(0x1ed),{'error':_0x17df4e});}}}[_0x2161dd(0x204)](_0xab7614){const _0x433411=_0x2161dd;this[_0x433411(0x1ba)]({'type':_0x4be24e[_0x433411(0x1e5)],'label':_0xab7614,'uiId':_0x433411(0x1a0),'content':_0xab7614});}[_0x2161dd(0x1a9)](){const _0x1011d2=_0x2161dd;this[_0x1011d2(0x1f2)](_0x1011d2(0x1a0));}async[_0x2161dd(0x1d6)](_0x296e75,_0x5e35bd){const _0x329be0=_0x2161dd,_0x4e6b66=_0x329be0(0x21d)+_0x10684e();this[_0x329be0(0x1cd)](_0x4e6b66);const _0x25efee=_0x329be0(0x21d)+_0x10684e();try{this[_0x329be0(0x1ba)]({'type':_0x4be24e[_0x329be0(0x1b6)],'label':_0x5e35bd?.[_0x329be0(0x20c)]||_0x296e75,'uiId':_0x25efee,'resourceId':_0x5e35bd?.[_0x329be0(0x203)]},!0x0);const _0x27d5a1=this[_0x329be0(0x1e8)][_0x329be0(0x1a7)](this[_0x329be0(0x205)],_0x296e75,_0x5e35bd);this[_0x329be0(0x217)][_0x329be0(0x1ca)](_0x25efee,_0x27d5a1[_0x329be0(0x1b3)]);const {id:_0x195757}=await _0x27d5a1[_0x329be0(0x1e2)]();this[_0x329be0(0x217)][_0x329be0(0x224)](_0x25efee),this[_0x329be0(0x1b7)]({'type':_0x4be24e[_0x329be0(0x1b6)],'id':_0x195757,'label':_0x5e35bd?.[_0x329be0(0x20c)]||_0x296e75,'uiId':_0x25efee,'resourceId':_0x5e35bd?.[_0x329be0(0x203)]},!0x1);}catch(_0x3a7ec0){this[_0x329be0(0x217)][_0x329be0(0x224)](_0x25efee),(_0x3a7ec0[_0x329be0(0x225)][_0x329be0(0x1ef)](_0x329be0(0x1b1))||this[_0x329be0(0x1a6)](_0x329be0(0x1ed),{'error':new _0x4b5ac4(_0x329be0(0x1de),this,{'url':_0x296e75,'originalError':_0x3a7ec0}),'url':_0x296e75}),this[_0x329be0(0x1f2)](_0x25efee));}finally{this[_0x329be0(0x20e)](_0x4e6b66);}}async[_0x2161dd(0x213)](_0x182386,_0x51b9b2,_0x158bb9){const _0x1acff3=_0x2161dd,_0x5a01de=this[_0x1acff3(0x1d5)][_0x1acff3(0x1ec)][_0x1acff3(0x219)](_0x510153=>_0x510153['id']===_0x182386);if(!_0x5a01de)return this[_0x1acff3(0x1a6)](_0x1acff3(0x1ed),{'error':new _0x4b5ac4(_0x1acff3(0x1bc),this,{'sourceId':_0x182386}),'sourceId':_0x182386}),[];try{const _0x48d219=(await _0x5a01de[_0x1acff3(0x212)](_0x51b9b2))[_0x1acff3(0x1c0)](_0x85f5fb=>{const _0x1a680f=_0x1acff3,_0x5a727c=this[_0x1a680f(0x1be)](_0x85f5fb['id']);return{..._0x85f5fb,'isInContext':_0x5a727c};});return _0x5a01de[_0x1acff3(0x1d1)]=_0x48d219,this[_0x1acff3(0x1a6)](_0x1acff3(0x19e),{'sourceId':_0x182386,'source':_0x5a01de,'resources':_0x48d219,'uid':_0x158bb9}),_0x48d219;}catch(_0x546207){return this[_0x1acff3(0x1a6)](_0x1acff3(0x1ed),{'error':new _0x4b5ac4(_0x1acff3(0x1c9),this,{'sourceId':_0x182386,'originalError':_0x546207}),'sourceId':_0x182386,'sourceLabel':_0x5a01de[_0x1acff3(0x20c)]}),[];}}async[_0x2161dd(0x220)](_0xad8f82,_0x268922){const _0x388c17=_0x2161dd;if(this[_0x388c17(0x1be)](_0x268922['id']))return;let _0x537948=_0x268922[_0x388c17(0x1bd)];if(!_0x537948&&_0xad8f82[_0x388c17(0x21b)])try{_0x537948=await _0xad8f82[_0x388c17(0x21b)](_0x268922['id']);}catch(_0x4572cd){return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1da),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'originalError':_0x4572cd}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}if(_0x537948)switch(_0x268922[_0x388c17(0x1b9)]){case _0x4be24e[_0x388c17(0x1b6)]:if(_0x388c17(0x1d7)!=typeof _0x537948)return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1d7),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});await this[_0x388c17(0x1d6)](_0x537948,{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']});break;case _0x4be24e[_0x388c17(0x1b8)]:if(!(_0x537948 instanceof File))return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1fe),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});await this[_0x388c17(0x1b2)]([_0x537948],{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']});break;case _0x4be24e[_0x388c17(0x1f8)]:if(_0x388c17(0x1e1)!=typeof _0x537948||!(_0x388c17(0x1b0)in _0x537948)||!(_0x388c17(0x1b9)in _0x537948))return void this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x218),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'expectedType':_0x388c17(0x1fd),'actualType':typeof _0x537948}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});_0x537948=AIChatContext[_0x388c17(0x1b5)](_0x537948,_0x268922[_0x388c17(0x20c)]),await this[_0x388c17(0x1b2)]([_0x537948],{'label':_0x268922[_0x388c17(0x20c)],'resourceId':_0x268922['id']},_0x4be24e[_0x388c17(0x1f8)]);break;default:this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1a2),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id'],'resourceType':_0x268922[_0x388c17(0x1b9)]}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}else this[_0x388c17(0x1a6)](_0x388c17(0x1ed),{'error':new _0x4b5ac4(_0x388c17(0x1eb),this,{'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']}),'resourceId':_0x268922['id'],'sourceId':_0xad8f82['id']});}static[_0x2161dd(0x1b5)](_0x5c85de,_0xac0fb0){const _0x4e8112=_0x2161dd;switch(_0x5c85de[_0x4e8112(0x1b9)]){case _0xafee88[_0x4e8112(0x1e6)]:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x1f1)});case _0xafee88[_0x4e8112(0x202)]:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x19f)});default:return new File([_0x5c85de[_0x4e8112(0x1b0)]],_0xac0fb0,{'type':_0x4e8112(0x1cc)});}}static[_0x2161dd(0x1d3)](_0x4bb66e){const _0x5f25de=_0x2161dd;switch(_0x4bb66e[_0x5f25de(0x1b9)]){case _0x4be24e[_0x5f25de(0x1b8)]:return{'type':_0x4be24e[_0x5f25de(0x1b8)],'id':_0x4bb66e['id']};case _0x4be24e[_0x5f25de(0x1b6)]:return{'type':_0x4be24e[_0x5f25de(0x1b6)],'id':_0x4bb66e['id']};case _0x4be24e[_0x5f25de(0x209)]:return{'type':_0x4be24e[_0x5f25de(0x209)],'id':_0x4bb66e['id'],..._0x4bb66e[_0x5f25de(0x1a0)]?.[_0x5f25de(0x22a)]&&{'selection':_0x4bb66e[_0x5f25de(0x1a0)]}};case _0x4be24e[_0x5f25de(0x1f8)]:return{'type':_0x4be24e[_0x5f25de(0x1b8)],'id':_0x4bb66e['id']};default:return null;}}[_0x2161dd(0x1ba)](_0x3eb18a,_0x3edda1=!0x1){const _0x330172=_0x2161dd;if(this[_0x330172(0x216)][_0x330172(0x1ca)](_0x3eb18a[_0x330172(0x1e0)],_0x3eb18a),_0x3eb18a[_0x330172(0x201)]||this[_0x330172(0x1a6)](_0x330172(0x228),{'contextItem':_0x3eb18a,'isLoading':_0x3edda1}),_0x330172(0x210)===_0x3eb18a[_0x330172(0x1e0)]&&this[_0x330172(0x1c6)](),_0x3eb18a[_0x330172(0x203)]){const _0x3c8c96=this[_0x330172(0x1cf)](_0x3eb18a[_0x330172(0x203)]);_0x3c8c96&&_0x3c8c96[_0x330172(0x20f)](_0x59f56d=>{const _0x252866=_0x330172;this[_0x252866(0x200)](_0x59f56d,_0x3eb18a[_0x252866(0x203)],!0x0);});}}[_0x2161dd(0x1f2)](_0x4d3613){const _0x3f1df6=_0x2161dd,_0x3bedf3=this[_0x3f1df6(0x216)][_0x3f1df6(0x1f0)](_0x4d3613),_0x2cc969=this[_0x3f1df6(0x217)][_0x3f1df6(0x1f0)](_0x4d3613);if(_0x2cc969&&(_0x2cc969[_0x3f1df6(0x1a4)](),this[_0x3f1df6(0x217)][_0x3f1df6(0x224)](_0x4d3613)),_0x3bedf3?.[_0x3f1df6(0x203)]){const _0x10bb54=this[_0x3f1df6(0x1cf)](_0x3bedf3[_0x3f1df6(0x203)]);_0x10bb54&&_0x10bb54[_0x3f1df6(0x20f)](_0x296970=>{const _0x7f26dc=_0x3f1df6;this[_0x7f26dc(0x200)](_0x296970,_0x3bedf3[_0x7f26dc(0x203)],!0x1);});}this[_0x3f1df6(0x216)][_0x3f1df6(0x224)](_0x4d3613),this[_0x3f1df6(0x1a6)](_0x3f1df6(0x1d8),{'uiId':_0x4d3613,'type':_0x3bedf3?.[_0x3f1df6(0x1b9)]}),_0x3f1df6(0x210)===_0x4d3613&&this[_0x3f1df6(0x1c6)]();}[_0x2161dd(0x1b7)](_0x5a00a4,_0x53c0ff){const _0x22f186=_0x2161dd;if(this[_0x22f186(0x216)][_0x22f186(0x1fa)](_0x5a00a4[_0x22f186(0x1e0)])&&(this[_0x22f186(0x216)][_0x22f186(0x1ca)](_0x5a00a4[_0x22f186(0x1e0)],_0x5a00a4),this[_0x22f186(0x1a6)](_0x22f186(0x1a1),{'contextItem':_0x5a00a4,'isLoading':_0x53c0ff}),_0x5a00a4[_0x22f186(0x203)])){const _0x4517ed=this[_0x22f186(0x1cf)](_0x5a00a4[_0x22f186(0x203)]);_0x4517ed&&_0x4517ed[_0x22f186(0x20f)](_0x3873fa=>{const _0x7c2896=_0x22f186;this[_0x7c2896(0x200)](_0x3873fa,_0x5a00a4[_0x7c2896(0x203)],!0x0);});}}[_0x2161dd(0x1ab)](_0x1d799a){const _0x38a752=_0x2161dd;this[_0x38a752(0x206)][_0x38a752(0x1ca)](_0x1d799a[_0x38a752(0x1e0)],_0x1d799a);}[_0x2161dd(0x1c7)](){const _0x5c123c=_0x2161dd;this[_0x5c123c(0x1d5)]={'document':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1c5)]?.[_0x5c123c(0x215)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1dd)]?.[_0x5c123c(0x215)]},'files':{'enabled':!0x1!==this[_0x5c123c(0x1dc)]?.[_0x5c123c(0x1c2)]?.[_0x5c123c(0x215)]},'sources':this[_0x5c123c(0x20d)]()},this[_0x5c123c(0x1a6)](_0x5c123c(0x20b),{'options':this[_0x5c123c(0x1d5)]});}[_0x2161dd(0x20d)](){const _0x355789=_0x2161dd;return this[_0x355789(0x1dc)]?.[_0x355789(0x1ec)]?.[_0x355789(0x1c0)](_0x580759=>({..._0x580759,'resources':[]}))??[];}[_0x2161dd(0x1c6)](){const _0x105dc9=_0x2161dd,_0x2bdc8b=this[_0x105dc9(0x1f9)]()||this[_0x105dc9(0x1a3)]();this[_0x105dc9(0x1d5)][_0x105dc9(0x1c5)][_0x105dc9(0x21c)]=_0x2bdc8b,this[_0x105dc9(0x1a6)](_0x105dc9(0x20b),{'options':this[_0x105dc9(0x1d5)]});}[_0x2161dd(0x1be)](_0x284678){const _0x17ba50=_0x2161dd;for(const _0x35ed57 of this[_0x17ba50(0x216)][_0x17ba50(0x1d9)]())if(_0x35ed57[_0x17ba50(0x203)]===_0x284678)return!0x0;for(const _0x2c0b5f of this[_0x17ba50(0x206)][_0x17ba50(0x1d9)]())if(_0x2c0b5f[_0x17ba50(0x203)]===_0x284678)return!0x0;return!0x1;}[_0x2161dd(0x1cf)](_0x54b941){const _0x579027=_0x2161dd,_0x29780d=[];for(const _0x26849b of this[_0x579027(0x1d5)][_0x579027(0x1ec)]){_0x26849b[_0x579027(0x1d1)][_0x579027(0x219)](_0x11f7a6=>_0x11f7a6['id']===_0x54b941)&&_0x29780d[_0x579027(0x21f)](_0x26849b['id']);}return 0x0===_0x29780d[_0x579027(0x22a)]?null:_0x29780d;}[_0x2161dd(0x200)](_0x215134,_0xad55af,_0x44e874){const _0x4314b1=_0x2161dd,_0x51f081=this[_0x4314b1(0x1d5)][_0x4314b1(0x1ec)][_0x4314b1(0x219)](_0xf30dc7=>_0xf30dc7['id']===_0x215134);if(!_0x51f081)return;const _0x2e82f3=_0x51f081[_0x4314b1(0x1d1)][_0x4314b1(0x219)](_0x229142=>_0x229142['id']===_0xad55af);_0x2e82f3&&(_0x2e82f3[_0x4314b1(0x208)]=_0x44e874,this[_0x4314b1(0x1a6)](_0x4314b1(0x229),{'sourceId':_0x215134,'resourceId':_0xad55af,'isInContext':_0x44e874}));}[_0x2161dd(0x1cd)](_0x94654e){const _0x1fd8de=_0x2161dd;this[_0x1fd8de(0x1af)][_0x1fd8de(0x1ca)](_0x94654e,!0x0),this[_0x1fd8de(0x1af)][_0x1fd8de(0x1bb)]&&this[_0x1fd8de(0x1a6)](_0x1fd8de(0x1c3),{'isUploadInProgress':!0x0});}[_0x2161dd(0x20e)](_0x33496f){const _0x4448ec=_0x2161dd;this[_0x4448ec(0x1af)][_0x4448ec(0x224)](_0x33496f),0x0===this[_0x4448ec(0x1af)][_0x4448ec(0x1bb)]&&this[_0x4448ec(0x1a6)](_0x4448ec(0x1c3),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12b1f1=_0x235a;(function(_0xcd6798,_0x102177){const _0x42f1ec=_0x235a,_0xb45ea1=_0xcd6798();while(!![]){try{const _0x54e50e=parseInt(_0x42f1ec(0x1d5))/0x1*(-parseInt(_0x42f1ec(0x1de))/0x2)+parseInt(_0x42f1ec(0x1b4))/0x3*(-parseInt(_0x42f1ec(0x1bf))/0x4)+-parseInt(_0x42f1ec(0x183))/0x5+-parseInt(_0x42f1ec(0x1a6))/0x6*(parseInt(_0x42f1ec(0x18c))/0x7)+parseInt(_0x42f1ec(0x181))/0x8*(-parseInt(_0x42f1ec(0x1be))/0x9)+parseInt(_0x42f1ec(0x1ab))/0xa+parseInt(_0x42f1ec(0x185))/0xb*(parseInt(_0x42f1ec(0x1ad))/0xc);if(_0x54e50e===_0x102177)break;else _0xb45ea1['push'](_0xb45ea1['shift']());}catch(_0x5c0e67){_0xb45ea1['push'](_0xb45ea1['shift']());}}}(_0x31eb,0xe1a44));function _0x235a(_0x47536f,_0x4ff6e9){const _0x31ebb7=_0x31eb();return _0x235a=function(_0x235ae0,_0x2cd857){_0x235ae0=_0x235ae0-0x173;let _0x45f854=_0x31ebb7[_0x235ae0];return _0x45f854;},_0x235a(_0x47536f,_0x4ff6e9);}import{CKEditorError as _0x1d7654,EmitterMixin as _0x5c4628,logWarning as _0x1df096}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x37fe85}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x21d9d0,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53d05f}from'./aichatcontext.js';function _0x31eb(){const _0x588339=['1285yHTrJP','removeSelectionFromContext','connector','addCurrentDocumentToContext','start','stop','reset','updateCurrentDocumentInContext','removeInteraction','818CFvuSl','ai-chat-conversation-start-failed','assistant','content','ai-chat-conversation-already-started','model','ai-chat-conversation-set-model-null','getCapabilitiesConfig','addFilesToContext','group','appendContent','ai-chat-conversation-init-failed','user','sessionId','selectedModel','length','hasOwn','interactionCreated','chatCapabilities','startConversation','prompt','isCurrentDocumentInContext','getAll','chatContext','20616LIiksX','interactions','6880050grOyZB','fetchConversationMessages','49993394KCqXtW','find','setModel','handleUserInteraction','getModel','role','reasoning','3703BhPxDf','set','selectedModelId','removeFromContext','fire','_extractContextItems','stack','toLowerCase','ai-chat-handle-user-interaction-already-in-progress','contextItems','options','isStarted','chatModels','getCurrentDocumentContext','updateCurrentDocument','_processMessagesToInteractions','getPendingContextItems','quickActionData','currentReply','modelSelected','isAvailable','capabilities','currentInteraction','load','fetchConversation','message','14106gfwdMY','isSelectionInContext','init','title','delegate','5062140kVQsxa','addSelectionToContext','12OfeoGr','ai-chat-conversation-start-no-model-selected','addUrlToContext','conversationStarted','getAvailableModels','indexOf','getMessages','169476mlqhLN','ai-chat-handle-user-conversation-not-initialized','error','conversationInitialized','push','ai-chat-conversation-init-from-id-failed','attributes','conversationId','type','getConversation','666QuxBcI','56ZoZxiu','setConversationTitle','toggleWebSearch','getEditor','destroy','isCurrentDocumentInConversation','addResourceToContext','loadSourceResources','ai-chat-conversation-set-model-not-available','getDocumentContext','text-delta','createReply','text','createInteraction','toggleReasoning','getInteraction','addToConversationContext','populateFromMessage','modification-delta','webSearch','lastInteraction','splice'];_0x31eb=function(){return _0x588339;};return _0x31eb();}import{AICapabilities as _0xfa8207,CAPABILITIES_MODEL_EVENT_NAMES as _0x51b5af}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5d92ec}from'./aichatinteraction.js';export class AIChatConversation extends _0x5c4628(){['id'];[_0x12b1f1(0x197)]=!0x1;[_0x12b1f1(0x182)]=[];[_0x12b1f1(0x1a2)];[_0x12b1f1(0x177)];[_0x12b1f1(0x1d7)];[_0x12b1f1(0x196)];constructor(_0x14477e){const _0x17c79b=_0x12b1f1;super(),this[_0x17c79b(0x196)]=_0x14477e,this[_0x17c79b(0x1d7)]=_0x14477e[_0x17c79b(0x1d7)],this[_0x17c79b(0x198)]=_0x14477e[_0x17c79b(0x198)],this['id']=_0x14477e[_0x17c79b(0x1bb)];}async[_0x12b1f1(0x1a8)](_0x23e6df){const _0x1ffc41=_0x12b1f1;try{this[_0x1ffc41(0x180)]=new _0x21d9d0({'connector':this[_0x1ffc41(0x1d7)],'config':_0x23e6df,'ownerId':this['id']}),this[_0x1ffc41(0x180)][_0x1ffc41(0x1aa)](..._0x53d05f)['to'](this),this[_0x1ffc41(0x180)][_0x1ffc41(0x1a8)](),this[_0x1ffc41(0x17b)]=new _0xfa8207(),this[_0x1ffc41(0x17b)][_0x1ffc41(0x1aa)](..._0x51b5af)['to'](this),this[_0x1ffc41(0x17b)][_0x1ffc41(0x1a8)]();const _0x3876ff=await this[_0x1ffc41(0x198)][_0x1ffc41(0x1b1)]();this[_0x1ffc41(0x190)](_0x1ffc41(0x1b7),{'availableModels':_0x3876ff});const _0x418af4=await this[_0x1ffc41(0x198)][_0x1ffc41(0x189)](this[_0x1ffc41(0x196)][_0x1ffc41(0x18e)]);_0x418af4&&await this[_0x1ffc41(0x187)](_0x418af4);}catch(_0x4d3715){const _0x25abc0=new _0x1d7654(_0x1ffc41(0x174),null,{'message':_0x4d3715[_0x1ffc41(0x1a5)]});_0x25abc0[_0x1ffc41(0x192)]=_0x4d3715[_0x1ffc41(0x192)],this[_0x1ffc41(0x190)](_0x1ffc41(0x1b6),{'error':_0x25abc0});}}async[_0x12b1f1(0x1d9)](){const _0x12058b=_0x12b1f1;if(this[_0x12058b(0x197)])throw new _0x1d7654(_0x12058b(0x1e2),null,{'conversation':this});if(!this[_0x12058b(0x177)])throw new _0x1d7654(_0x12058b(0x1ae),null,{'conversation':this});try{const {id:_0x192d39}=await this[_0x12058b(0x1d7)][_0x12058b(0x17c)](this['id'],this[_0x12058b(0x196)][_0x12058b(0x1e7)])[_0x12058b(0x1bd)]();this['id']=_0x192d39,this[_0x12058b(0x197)]=!0x0,this[_0x12058b(0x190)](_0x12058b(0x1b0),{'conversationId':this['id'],'selectedModel':this[_0x12058b(0x177)]});}catch(_0x4c2973){const _0x774d4d=new _0x1d7654(_0x12058b(0x1df),null,{'message':_0x4c2973[_0x12058b(0x1a5)]});_0x774d4d[_0x12058b(0x192)]=_0x4c2973[_0x12058b(0x192)],this[_0x12058b(0x190)](_0x12058b(0x1b6),{'error':_0x774d4d});}}async[_0x12b1f1(0x1a3)](_0x4bc703,_0x378d46){const _0x49c932=_0x12b1f1;try{const _0x50ea92=await this[_0x49c932(0x1d7)][_0x49c932(0x1a4)](_0x4bc703)[_0x49c932(0x1bd)](),_0x1a2247=await this[_0x49c932(0x1d7)][_0x49c932(0x184)](_0x4bc703)[_0x49c932(0x1b3)](),_0x324ccd=_0x1a2247[0x0][_0x49c932(0x1e3)];this[_0x49c932(0x197)]=!0x0,this['id']=_0x50ea92['id'],_0x49c932(0x1a9)in _0x50ea92?this[_0x49c932(0x190)](_0x49c932(0x1c0),_0x50ea92[_0x49c932(0x1a9)],!0x0):this[_0x49c932(0x190)](_0x49c932(0x1c0),'',!0x0);const _0x85127e=(await this[_0x49c932(0x198)][_0x49c932(0x17f)]())[_0x49c932(0x186)](_0x29687c=>_0x29687c['id'][_0x49c932(0x193)]()===_0x324ccd[_0x49c932(0x193)]());return this[_0x49c932(0x177)]=_0x85127e,this[_0x49c932(0x190)](_0x49c932(0x19f),{'selectedModel':_0x85127e,'isDisabled':!0x0}),await this[_0x49c932(0x19b)](_0x1a2247,_0x378d46,_0x324ccd),this[_0x49c932(0x1a2)]=void 0x0,this;}catch(_0x95469d){const _0x3170c5=new _0x1d7654(_0x49c932(0x1b9),null,{'message':_0x95469d[_0x49c932(0x1a5)],'conversationId':_0x4bc703});throw _0x3170c5[_0x49c932(0x192)]=_0x95469d[_0x49c932(0x192)],this[_0x49c932(0x190)](_0x49c932(0x1b6),{'error':_0x3170c5}),_0x3170c5;}}async[_0x12b1f1(0x19b)](_0x5b416a,_0x44d4a3,_0x41245f){const _0x4ef4e0=_0x12b1f1;let _0x41c478;for(const _0x4c20f2 of _0x5b416a)if(_0x4ef4e0(0x175)===_0x4c20f2[_0x4ef4e0(0x18a)]){const _0x35a588=await this[_0x4ef4e0(0x191)](_0x4c20f2),_0x34b2f6={'isReasoningEnabled':Object[_0x4ef4e0(0x179)](_0x4c20f2[_0x4ef4e0(0x1a1)],_0x4ef4e0(0x18b)),'isWebSearchEnabled':Object[_0x4ef4e0(0x179)](_0x4c20f2[_0x4ef4e0(0x1a1)],_0x4ef4e0(0x1d2))};_0x41c478=this[_0x4ef4e0(0x1cc)]({'userMessage':_0x4c20f2[_0x4ef4e0(0x17d)],'contextItems':_0x35a588,'capabilities':_0x34b2f6,'modelId':_0x41245f,'quickActionData':_0x4c20f2[_0x4ef4e0(0x1ba)]?.[_0x4ef4e0(0x19d)]}),this[_0x4ef4e0(0x1a2)]=_0x41c478,this[_0x4ef4e0(0x180)][_0x4ef4e0(0x1cf)](this[_0x4ef4e0(0x1a2)][_0x4ef4e0(0x195)]);}else{if(_0x4ef4e0(0x1e0)===_0x4c20f2[_0x4ef4e0(0x18a)]&&_0x41c478)for(const _0x1998a5 of _0x4c20f2[_0x4ef4e0(0x1e1)]){const _0x204536=_0x4ef4e0(0x1cb)===_0x1998a5[_0x4ef4e0(0x1bc)]?_0x4ef4e0(0x1c9):_0x4ef4e0(0x1d1),_0x181322=_0x41c478[_0x4ef4e0(0x1c8)]()?.[_0x4ef4e0(0x176)]!==_0x44d4a3;_0x41c478[_0x4ef4e0(0x19e)]=_0x41c478[_0x4ef4e0(0x1ca)]({'type':_0x204536,'isDone':!0x0,'interactionId':_0x41c478['id'],'areActionsDisabled':_0x181322}),_0x41c478[_0x4ef4e0(0x19e)][_0x4ef4e0(0x173)](_0x1998a5[_0x4ef4e0(0x1e1)]);}}}async[_0x12b1f1(0x191)](_0x54dab4){const _0x3495ee=_0x12b1f1,_0x3819eb=new Map();if(!_0x54dab4[_0x3495ee(0x1e1)])return _0x3819eb;for(const _0x4b6abf of _0x54dab4[_0x3495ee(0x1e1)]){const _0x311b49=await this[_0x3495ee(0x180)][_0x3495ee(0x1d0)](_0x4b6abf);_0x311b49&&_0x3819eb[_0x3495ee(0x18d)](_0x311b49['id'],_0x311b49);}return _0x3819eb;}async[_0x12b1f1(0x188)]({userMessage:_0x39a686,quickActionData:_0x5d2b4d}){const _0x525757=_0x12b1f1;if(!this[_0x525757(0x197)])throw new _0x1d7654(_0x525757(0x1b5),null,{'conversation':this});if(this[_0x525757(0x1a2)])throw new _0x1d7654(_0x525757(0x194),null,{'conversation':this});try{const _0x282844=this[_0x525757(0x180)][_0x525757(0x19c)](),_0x1ce29d=this[_0x525757(0x17b)][_0x525757(0x1e5)](),_0x4cc7a9=this[_0x525757(0x177)]['id'];this[_0x525757(0x1a2)]=this[_0x525757(0x1cc)]({'userMessage':_0x39a686,'contextItems':_0x282844,'capabilities':_0x1ce29d,'modelId':_0x4cc7a9,'quickActionData':_0x5d2b4d}),await this[_0x525757(0x1a2)][_0x525757(0x1d9)](),this[_0x525757(0x180)][_0x525757(0x1cf)](this[_0x525757(0x1a2)][_0x525757(0x195)]);}catch(_0x247f5d){this[_0x525757(0x190)](_0x525757(0x1b6),{'interactionId':this[_0x525757(0x1a2)]?this[_0x525757(0x1a2)]['id']:void 0x0,'error':_0x247f5d});}finally{this[_0x525757(0x1a2)]?.[_0x525757(0x1da)](),this[_0x525757(0x1a2)]=void 0x0;}}[_0x12b1f1(0x1cc)]({userMessage:_0x12fee4,contextItems:_0x5b4834,capabilities:_0x33ad84,modelId:_0x39c234,quickActionData:_0x479e9a}){const _0x58ab8e=_0x12b1f1,_0xdd33f8=new _0x5d92ec({'userMessage':_0x12fee4,'contextItems':_0x5b4834,'capabilities':_0x33ad84,'conversationId':this['id'],'connector':this[_0x58ab8e(0x1d7)],'editor':this[_0x58ab8e(0x196)][_0x58ab8e(0x1c2)]&&this[_0x58ab8e(0x196)][_0x58ab8e(0x1c2)](),'model':_0x39c234,'quickActionData':_0x479e9a});return _0xdd33f8[_0x58ab8e(0x1aa)](..._0x37fe85)['to'](this),this[_0x58ab8e(0x182)][_0x58ab8e(0x1b8)](_0xdd33f8),this[_0x58ab8e(0x190)](_0x58ab8e(0x17a),_0xdd33f8),_0xdd33f8;}[_0x12b1f1(0x1ce)](_0xb06d0){const _0x4a1791=_0x12b1f1;return this[_0x4a1791(0x182)][_0x4a1791(0x186)](_0x3e888b=>_0x3e888b['id']===_0xb06d0);}[_0x12b1f1(0x1dd)](_0x12bba0){const _0x2459a5=_0x12b1f1,_0x5de35e=this[_0x2459a5(0x1ce)](_0x12bba0);_0x5de35e&&(_0x5de35e[_0x2459a5(0x1c3)](),this[_0x2459a5(0x182)][_0x2459a5(0x1d4)](this[_0x2459a5(0x182)][_0x2459a5(0x1b2)](_0x5de35e),0x1));}get[_0x12b1f1(0x1d3)](){const _0x48e17a=_0x12b1f1;return this[_0x48e17a(0x182)][this[_0x48e17a(0x182)][_0x48e17a(0x178)]-0x1];}[_0x12b1f1(0x1d8)](_0xd191e1){const _0x115e11=_0x12b1f1;this[_0x115e11(0x180)][_0x115e11(0x1d8)](_0xd191e1);}async[_0x12b1f1(0x1dc)]({content:_0xa67006,version:_0xb000dd,sessionId:_0x371353,selections:_0x425a0a}){const _0x4ee9dd=_0x12b1f1;await this[_0x4ee9dd(0x180)][_0x4ee9dd(0x19a)](_0xa67006,_0xb000dd,_0x371353,_0x425a0a);}[_0x12b1f1(0x199)](){const _0x95a2b8=_0x12b1f1;return this[_0x95a2b8(0x1a2)]?.[_0x95a2b8(0x1c8)]()?.[_0x95a2b8(0x1e1)]||'';}[_0x12b1f1(0x1ac)](_0x50869d){const _0x320c5e=_0x12b1f1;this[_0x320c5e(0x180)][_0x320c5e(0x1ac)](_0x50869d);}[_0x12b1f1(0x1d6)](){const _0x59d869=_0x12b1f1;this[_0x59d869(0x180)][_0x59d869(0x1d6)]();}[_0x12b1f1(0x1e6)](_0x5bd63e){const _0x2b0da4=_0x12b1f1;this[_0x2b0da4(0x180)][_0x2b0da4(0x1e6)](_0x5bd63e);}[_0x12b1f1(0x1af)](_0x41646c){const _0x129f22=_0x12b1f1;this[_0x129f22(0x180)][_0x129f22(0x1af)](_0x41646c);}[_0x12b1f1(0x1c5)](_0x5f0115,_0x1e2b5e){const _0x3b04f2=_0x12b1f1;this[_0x3b04f2(0x180)][_0x3b04f2(0x1c5)](_0x5f0115,_0x1e2b5e);}[_0x12b1f1(0x1c6)](_0x39a6f0,_0x5c6a11,_0x541762){const _0x10ce2c=_0x12b1f1;return this[_0x10ce2c(0x180)][_0x10ce2c(0x1c6)](_0x39a6f0,_0x5c6a11,_0x541762);}[_0x12b1f1(0x18f)](_0x2c8472){const _0x19da5b=_0x12b1f1;this[_0x19da5b(0x180)][_0x19da5b(0x18f)](_0x2c8472);}[_0x12b1f1(0x1c1)](){const _0xe5e7a7=_0x12b1f1;this[_0xe5e7a7(0x17b)][_0xe5e7a7(0x1c1)]();}[_0x12b1f1(0x1cd)](){const _0x21cae8=_0x12b1f1;this[_0x21cae8(0x17b)][_0x21cae8(0x1cd)]();}[_0x12b1f1(0x17e)](){const _0x3bb11e=_0x12b1f1;return this[_0x3bb11e(0x180)][_0x3bb11e(0x17e)]();}[_0x12b1f1(0x1c4)](){const _0x5c0668=_0x12b1f1;return this[_0x5c0668(0x180)][_0x5c0668(0x1c4)]();}[_0x12b1f1(0x1a7)](){const _0x3f2238=_0x12b1f1;return this[_0x3f2238(0x180)][_0x3f2238(0x1a7)]();}async[_0x12b1f1(0x187)](_0x51b57d){const _0x513e9a=_0x12b1f1;_0x51b57d?!0x1===await this[_0x513e9a(0x198)][_0x513e9a(0x1a0)](_0x51b57d)&&(_0x1df096(_0x513e9a(0x1c7),{'conversation':this,'model':_0x51b57d}),_0x51b57d=(await this[_0x513e9a(0x198)][_0x513e9a(0x1b1)]())[0x0]):(_0x1df096(_0x513e9a(0x1e4),{'conversation':this}),_0x51b57d=(await this[_0x513e9a(0x198)][_0x513e9a(0x1b1)]())[0x0]),_0x51b57d['id']!==this[_0x513e9a(0x177)]?.['id']&&(this[_0x513e9a(0x177)]=_0x51b57d,this[_0x513e9a(0x17b)][_0x513e9a(0x1db)](),this[_0x513e9a(0x190)](_0x513e9a(0x19f),{'selectedModel':_0x51b57d}));}}
23
+ function _0x1705(){const _0x31d3ab=['selectedModelId','40EluOoD','chatContext','toggleReasoning','ai-chat-conversation-start-no-model-selected','115901ngvJZR','isStarted','text-delta','find','_processMessagesToInteractions','42updjIa','capabilities','prompt','modification-delta','user','splice','308988YyYqdB','isAvailable','removeFromContext','type','interactions','getInteraction','removeSelectionFromContext','removeInteraction','fire','modelSelected','updateCurrentDocumentInContext','quickActionData','length','role','getCapabilitiesConfig','reset','stack','loadSourceResources','delegate','message','ai-chat-conversation-set-model-null','toggleWebSearch','getPendingContextItems','error','start','connector','addResourceToContext','getAvailableModels','getDocumentContext','addFilesToContext','interactionCreated','chatModels','content','addToConversationContext','getConversation','contextItems','2wBjouB','reasoning','currentReply','stop','_extractContextItems','webSearch','4811800tFfzNU','ai-chat-handle-user-conversation-not-initialized','indexOf','attributes','getEditor','text','setModel','lastInteraction','createReply','init','populateFromMessage','conversationStarted','conversationInitialized','addSelectionToContext','chatCapabilities','ai-chat-handle-user-interaction-already-in-progress','ai-chat-conversation-start-failed','toLowerCase','options','group','assistant','ai-chat-conversation-set-model-not-available','775557ptgHYo','getMessages','selectedModel','startConversation','setConversationTitle','model','sessionId','fetchConversationMessages','set','push','14628040EpRnAm','3885056kokZmH','isCurrentDocumentInConversation','currentInteraction','ai-chat-conversation-init-from-id-failed','conversationId','createInteraction','ai-chat-conversation-already-started','getCurrentDocumentContext','getAll','updateCurrentDocument','handleUserInteraction','getModel','title','2266785rgBnis','fetchConversation','isCurrentDocumentInContext','hasOwn','addCurrentDocumentToContext','destroy','addUrlToContext','isSelectionInContext','appendContent','load','ai-chat-conversation-init-failed'];_0x1705=function(){return _0x31d3ab;};return _0x1705();}const _0x482322=_0x3fc7;(function(_0x40dedc,_0x3a2407){const _0x3cfa40=_0x3fc7,_0x1f68ff=_0x40dedc();while(!![]){try{const _0x103192=-parseInt(_0x3cfa40(0xac))/0x1*(-parseInt(_0x3cfa40(0xdb))/0x2)+-parseInt(_0x3cfa40(0x9c))/0x3+parseInt(_0x3cfa40(0x8f))/0x4+parseInt(_0x3cfa40(0xe1))/0x5+-parseInt(_0x3cfa40(0xb7))/0x6*(-parseInt(_0x3cfa40(0xb1))/0x7)+-parseInt(_0x3cfa40(0xa8))/0x8*(-parseInt(_0x3cfa40(0x84))/0x9)+-parseInt(_0x3cfa40(0x8e))/0xa;if(_0x103192===_0x3a2407)break;else _0x1f68ff['push'](_0x1f68ff['shift']());}catch(_0x1c4788){_0x1f68ff['push'](_0x1f68ff['shift']());}}}(_0x1705,0x8b663));import{CKEditorError as _0x8223fd,EmitterMixin as _0x28dc81,logWarning as _0x2f7878}from'ckeditor5/src/utils.js';function _0x3fc7(_0x544c43,_0x1549c5){const _0x170534=_0x1705();return _0x3fc7=function(_0x3fc7b2,_0x32932b){_0x3fc7b2=_0x3fc7b2-0x76;let _0x519010=_0x170534[_0x3fc7b2];return _0x519010;},_0x3fc7(_0x544c43,_0x1549c5);}import{AI_MODEL_EVENT_NAMES as _0x52b34b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x587927,AI_CONTEXT_MODEL_EVENT_NAMES as _0x346e14}from'./aichatcontext.js';import{AICapabilities as _0x404b07,CAPABILITIES_MODEL_EVENT_NAMES as _0x3042e7}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x28a916}from'./aichatinteraction.js';export class AIChatConversation extends _0x28dc81(){['id'];[_0x482322(0xad)]=!0x1;[_0x482322(0xbb)]=[];[_0x482322(0x91)];[_0x482322(0x86)];[_0x482322(0xd0)];[_0x482322(0x80)];constructor(_0x294ff0){const _0xe21834=_0x482322;super(),this[_0xe21834(0x80)]=_0x294ff0,this[_0xe21834(0xd0)]=_0x294ff0[_0xe21834(0xd0)],this[_0xe21834(0xd6)]=_0x294ff0[_0xe21834(0xd6)],this['id']=_0x294ff0[_0xe21834(0x93)];}async[_0x482322(0x77)](_0x4da370){const _0x574184=_0x482322;try{this[_0x574184(0xa9)]=new _0x587927({'connector':this[_0x574184(0xd0)],'config':_0x4da370,'ownerId':this['id']}),this[_0x574184(0xa9)][_0x574184(0xc9)](..._0x346e14)['to'](this),this[_0x574184(0xa9)][_0x574184(0x77)](),this[_0x574184(0x7c)]=new _0x404b07(),this[_0x574184(0x7c)][_0x574184(0xc9)](..._0x3042e7)['to'](this),this[_0x574184(0x7c)][_0x574184(0x77)]();const _0x4641ce=await this[_0x574184(0xd6)][_0x574184(0xd2)]();this[_0x574184(0xbf)](_0x574184(0x7a),{'availableModels':_0x4641ce});const _0xe61065=await this[_0x574184(0xd6)][_0x574184(0x9a)](this[_0x574184(0x80)][_0x574184(0xa7)]);_0xe61065&&await this[_0x574184(0xe7)](_0xe61065);}catch(_0x1626f0){const _0x3239b6=new _0x8223fd(_0x574184(0xa6),null,{'message':_0x1626f0[_0x574184(0xca)]});_0x3239b6[_0x574184(0xc7)]=_0x1626f0[_0x574184(0xc7)],this[_0x574184(0xbf)](_0x574184(0xce),{'error':_0x3239b6});}}async[_0x482322(0xcf)](){const _0x3e2260=_0x482322;if(this[_0x3e2260(0xad)])throw new _0x8223fd(_0x3e2260(0x95),null,{'conversation':this});if(!this[_0x3e2260(0x86)])throw new _0x8223fd(_0x3e2260(0xab),null,{'conversation':this});try{const {id:_0x5e4792}=await this[_0x3e2260(0xd0)][_0x3e2260(0x87)](this['id'],this[_0x3e2260(0x80)][_0x3e2260(0x81)])[_0x3e2260(0xd9)]();this['id']=_0x5e4792,this[_0x3e2260(0xad)]=!0x0,this[_0x3e2260(0xbf)](_0x3e2260(0x79),{'conversationId':this['id'],'selectedModel':this[_0x3e2260(0x86)]});}catch(_0x279230){const _0x37e55b=new _0x8223fd(_0x3e2260(0x7e),null,{'message':_0x279230[_0x3e2260(0xca)]});_0x37e55b[_0x3e2260(0xc7)]=_0x279230[_0x3e2260(0xc7)],this[_0x3e2260(0xbf)](_0x3e2260(0xce),{'error':_0x37e55b});}}async[_0x482322(0xa5)](_0x494869,_0x509d1b){const _0x35c6eb=_0x482322;try{const _0x61101a=await this[_0x35c6eb(0xd0)][_0x35c6eb(0x9d)](_0x494869)[_0x35c6eb(0xd9)](),_0x337f25=await this[_0x35c6eb(0xd0)][_0x35c6eb(0x8b)](_0x494869)[_0x35c6eb(0x85)](),_0x1e8487=_0x337f25[0x0][_0x35c6eb(0x89)];this[_0x35c6eb(0xad)]=!0x0,this['id']=_0x61101a['id'],_0x35c6eb(0x9b)in _0x61101a?this[_0x35c6eb(0xbf)](_0x35c6eb(0x88),_0x61101a[_0x35c6eb(0x9b)],!0x0):this[_0x35c6eb(0xbf)](_0x35c6eb(0x88),'',!0x0);const _0x24ec46=(await this[_0x35c6eb(0xd6)][_0x35c6eb(0x97)]())[_0x35c6eb(0xaf)](_0x177037=>_0x177037['id'][_0x35c6eb(0x7f)]()===_0x1e8487[_0x35c6eb(0x7f)]());return this[_0x35c6eb(0x86)]=_0x24ec46,this[_0x35c6eb(0xbf)](_0x35c6eb(0xc0),{'selectedModel':_0x24ec46,'isDisabled':!0x0}),await this[_0x35c6eb(0xb0)](_0x337f25,_0x509d1b,_0x1e8487),this[_0x35c6eb(0x91)]=void 0x0,this;}catch(_0x5a2ac9){const _0x113aa8=new _0x8223fd(_0x35c6eb(0x92),null,{'message':_0x5a2ac9[_0x35c6eb(0xca)],'conversationId':_0x494869});throw _0x113aa8[_0x35c6eb(0xc7)]=_0x5a2ac9[_0x35c6eb(0xc7)],this[_0x35c6eb(0xbf)](_0x35c6eb(0xce),{'error':_0x113aa8}),_0x113aa8;}}async[_0x482322(0xb0)](_0xcba501,_0x2f3c15,_0x461c07){const _0x35ce6d=_0x482322;let _0x20449a;for(const _0x16ca25 of _0xcba501)if(_0x35ce6d(0xb5)===_0x16ca25[_0x35ce6d(0xc4)]){const _0x4a5834=await this[_0x35ce6d(0xdf)](_0x16ca25),_0x628938={'isReasoningEnabled':Object[_0x35ce6d(0x9f)](_0x16ca25[_0x35ce6d(0xb2)],_0x35ce6d(0xdc)),'isWebSearchEnabled':Object[_0x35ce6d(0x9f)](_0x16ca25[_0x35ce6d(0xb2)],_0x35ce6d(0xe0))};_0x20449a=this[_0x35ce6d(0x94)]({'userMessage':_0x16ca25[_0x35ce6d(0xb3)],'contextItems':_0x4a5834,'capabilities':_0x628938,'modelId':_0x461c07,'quickActionData':_0x16ca25[_0x35ce6d(0xe4)]?.[_0x35ce6d(0xc2)]}),this[_0x35ce6d(0x91)]=_0x20449a,this[_0x35ce6d(0xa9)][_0x35ce6d(0xd8)](this[_0x35ce6d(0x91)][_0x35ce6d(0xda)]);}else{if(_0x35ce6d(0x82)===_0x16ca25[_0x35ce6d(0xc4)]&&_0x20449a)for(const _0x3a9cfe of _0x16ca25[_0x35ce6d(0xd7)]){const _0xfc4024=_0x35ce6d(0xe6)===_0x3a9cfe[_0x35ce6d(0xba)]?_0x35ce6d(0xae):_0x35ce6d(0xb4),_0x40f60c=_0x20449a[_0x35ce6d(0xd3)]()?.[_0x35ce6d(0x8a)]!==_0x2f3c15;_0x20449a[_0x35ce6d(0xdd)]=_0x20449a[_0x35ce6d(0x76)]({'type':_0xfc4024,'isDone':!0x0,'interactionId':_0x20449a['id'],'areActionsDisabled':_0x40f60c}),_0x20449a[_0x35ce6d(0xdd)][_0x35ce6d(0xa4)](_0x3a9cfe[_0x35ce6d(0xd7)]);}}}async[_0x482322(0xdf)](_0x476b01){const _0x7310dc=_0x482322,_0x1476a6=new Map();if(!_0x476b01[_0x7310dc(0xd7)])return _0x1476a6;for(const _0x2cd7d4 of _0x476b01[_0x7310dc(0xd7)]){const _0x303f88=await this[_0x7310dc(0xa9)][_0x7310dc(0x78)](_0x2cd7d4);_0x303f88&&_0x1476a6[_0x7310dc(0x8c)](_0x303f88['id'],_0x303f88);}return _0x1476a6;}async[_0x482322(0x99)]({userMessage:_0x2f315e,quickActionData:_0x25796a}){const _0x401b51=_0x482322;if(!this[_0x401b51(0xad)])throw new _0x8223fd(_0x401b51(0xe2),null,{'conversation':this});if(this[_0x401b51(0x91)])throw new _0x8223fd(_0x401b51(0x7d),null,{'conversation':this});try{const _0x83c72d=this[_0x401b51(0xa9)][_0x401b51(0xcd)](),_0x7ed4f0=this[_0x401b51(0x7c)][_0x401b51(0xc5)](),_0x13f594=this[_0x401b51(0x86)]['id'];this[_0x401b51(0x91)]=this[_0x401b51(0x94)]({'userMessage':_0x2f315e,'contextItems':_0x83c72d,'capabilities':_0x7ed4f0,'modelId':_0x13f594,'quickActionData':_0x25796a}),await this[_0x401b51(0x91)][_0x401b51(0xcf)](),this[_0x401b51(0xa9)][_0x401b51(0xd8)](this[_0x401b51(0x91)][_0x401b51(0xda)]);}catch(_0x351b8a){this[_0x401b51(0xbf)](_0x401b51(0xce),{'interactionId':this[_0x401b51(0x91)]?this[_0x401b51(0x91)]['id']:void 0x0,'error':_0x351b8a});}finally{this[_0x401b51(0x91)]?.[_0x401b51(0xde)](),this[_0x401b51(0x91)]=void 0x0;}}[_0x482322(0x94)]({userMessage:_0x143140,contextItems:_0x1e6300,capabilities:_0xd30c2f,modelId:_0x105f72,quickActionData:_0x2a846a}){const _0x12a37e=_0x482322,_0x29e326=new _0x28a916({'userMessage':_0x143140,'contextItems':_0x1e6300,'capabilities':_0xd30c2f,'conversationId':this['id'],'connector':this[_0x12a37e(0xd0)],'editor':this[_0x12a37e(0x80)][_0x12a37e(0xe5)]&&this[_0x12a37e(0x80)][_0x12a37e(0xe5)](),'model':_0x105f72,'quickActionData':_0x2a846a});return _0x29e326[_0x12a37e(0xc9)](..._0x52b34b)['to'](this),this[_0x12a37e(0xbb)][_0x12a37e(0x8d)](_0x29e326),this[_0x12a37e(0xbf)](_0x12a37e(0xd5),_0x29e326),_0x29e326;}[_0x482322(0xbc)](_0x554291){const _0x137805=_0x482322;return this[_0x137805(0xbb)][_0x137805(0xaf)](_0x590210=>_0x590210['id']===_0x554291);}[_0x482322(0xbe)](_0x41c104){const _0x234770=_0x482322,_0x6d4b71=this[_0x234770(0xbc)](_0x41c104);_0x6d4b71&&(_0x6d4b71[_0x234770(0xa1)](),this[_0x234770(0xbb)][_0x234770(0xb6)](this[_0x234770(0xbb)][_0x234770(0xe3)](_0x6d4b71),0x1));}get[_0x482322(0xe8)](){const _0x4acbcf=_0x482322;return this[_0x4acbcf(0xbb)][this[_0x4acbcf(0xbb)][_0x4acbcf(0xc3)]-0x1];}[_0x482322(0xa0)](_0x2f9a53){const _0x1c838f=_0x482322;this[_0x1c838f(0xa9)][_0x1c838f(0xa0)](_0x2f9a53);}async[_0x482322(0xc1)]({content:_0x4ec592,version:_0x57672d,sessionId:_0x20ddfd,selections:_0x3d094d}){const _0x352127=_0x482322;await this[_0x352127(0xa9)][_0x352127(0x98)](_0x4ec592,_0x57672d,_0x20ddfd,_0x3d094d);}[_0x482322(0x96)](){const _0x5ae24f=_0x482322;return this[_0x5ae24f(0x91)]?.[_0x5ae24f(0xd3)]()?.[_0x5ae24f(0xd7)]||'';}[_0x482322(0x7b)](_0x3805b7){const _0x4ba425=_0x482322;this[_0x4ba425(0xa9)][_0x4ba425(0x7b)](_0x3805b7);}[_0x482322(0xbd)](){const _0x26e175=_0x482322;this[_0x26e175(0xa9)][_0x26e175(0xbd)]();}[_0x482322(0xd4)](_0x4a3400){const _0x24b45f=_0x482322;this[_0x24b45f(0xa9)][_0x24b45f(0xd4)](_0x4a3400);}[_0x482322(0xa2)](_0x455011){const _0x2cc758=_0x482322;this[_0x2cc758(0xa9)][_0x2cc758(0xa2)](_0x455011);}[_0x482322(0xd1)](_0x2504ad,_0x33adb4){const _0x3bdaeb=_0x482322;this[_0x3bdaeb(0xa9)][_0x3bdaeb(0xd1)](_0x2504ad,_0x33adb4);}[_0x482322(0xc8)](_0xca1d4e,_0x35d370,_0x2bfaa1){const _0x57a6e6=_0x482322;return this[_0x57a6e6(0xa9)][_0x57a6e6(0xc8)](_0xca1d4e,_0x35d370,_0x2bfaa1);}[_0x482322(0xb9)](_0x3cbedd){const _0x200f15=_0x482322;this[_0x200f15(0xa9)][_0x200f15(0xb9)](_0x3cbedd);}[_0x482322(0xcc)](){const _0x14b097=_0x482322;this[_0x14b097(0x7c)][_0x14b097(0xcc)]();}[_0x482322(0xaa)](){const _0x182bb9=_0x482322;this[_0x182bb9(0x7c)][_0x182bb9(0xaa)]();}[_0x482322(0x9e)](){const _0x267ec8=_0x482322;return this[_0x267ec8(0xa9)][_0x267ec8(0x9e)]();}[_0x482322(0x90)](){const _0x227c8d=_0x482322;return this[_0x227c8d(0xa9)][_0x227c8d(0x90)]();}[_0x482322(0xa3)](){const _0x186f71=_0x482322;return this[_0x186f71(0xa9)][_0x186f71(0xa3)]();}async[_0x482322(0xe7)](_0x5a3715){const _0x5526fc=_0x482322;_0x5a3715?!0x1===await this[_0x5526fc(0xd6)][_0x5526fc(0xb8)](_0x5a3715)&&(_0x2f7878(_0x5526fc(0x83),{'conversation':this,'model':_0x5a3715}),_0x5a3715=(await this[_0x5526fc(0xd6)][_0x5526fc(0xd2)]())[0x0]):(_0x2f7878(_0x5526fc(0xcb),{'conversation':this}),_0x5a3715=(await this[_0x5526fc(0xd6)][_0x5526fc(0xd2)]())[0x0]),_0x5a3715['id']!==this[_0x5526fc(0x86)]?.['id']&&(this[_0x5526fc(0x86)]=_0x5a3715,this[_0x5526fc(0x7c)][_0x5526fc(0xc6)](),this[_0x5526fc(0xbf)](_0x5526fc(0xc0),{'selectedModel':_0x5a3715}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a1f99=_0x37c0;(function(_0x80cc6f,_0x45b346){var _0x29bd2b=_0x37c0,_0x37a873=_0x80cc6f();while(!![]){try{var _0x1fa11a=-parseInt(_0x29bd2b(0x172))/0x1+-parseInt(_0x29bd2b(0x179))/0x2*(-parseInt(_0x29bd2b(0x185))/0x3)+-parseInt(_0x29bd2b(0x17c))/0x4*(parseInt(_0x29bd2b(0x17b))/0x5)+parseInt(_0x29bd2b(0x175))/0x6+-parseInt(_0x29bd2b(0x17a))/0x7+parseInt(_0x29bd2b(0x173))/0x8+parseInt(_0x29bd2b(0x178))/0x9*(-parseInt(_0x29bd2b(0x181))/0xa);if(_0x1fa11a===_0x45b346)break;else _0x37a873['push'](_0x37a873['shift']());}catch(_0x20b387){_0x37a873['push'](_0x37a873['shift']());}}}(_0x50ff,0xf0bc2));import{AICapabilities as _0x58edab}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5914ae}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x22dca3}from'./aichatcontext.js';function _0x37c0(_0x14e2dd,_0x59cc49){var _0x50ffdc=_0x50ff();return _0x37c0=function(_0x37c0d3,_0x4f21be){_0x37c0d3=_0x37c0d3-0x170;var _0x373dec=_0x50ffdc[_0x37c0d3];return _0x373dec;},_0x37c0(_0x14e2dd,_0x59cc49);}export class AIChatInteraction extends _0x5914ae{[_0x2a1f99(0x187)];[_0x2a1f99(0x174)];[_0x2a1f99(0x176)]=new Map();[_0x2a1f99(0x171)];[_0x2a1f99(0x17d)];constructor(_0x37e0bc){var _0x2e28be=_0x2a1f99;super(_0x37e0bc),this[_0x2e28be(0x174)]=_0x37e0bc[_0x2e28be(0x174)],this[_0x2e28be(0x176)]=_0x37e0bc[_0x2e28be(0x176)],this[_0x2e28be(0x186)]=_0x37e0bc[_0x2e28be(0x186)],this[_0x2e28be(0x187)]=_0x37e0bc[_0x2e28be(0x187)],this[_0x2e28be(0x171)]=_0x37e0bc[_0x2e28be(0x171)],this[_0x2e28be(0x17d)]=_0x37e0bc[_0x2e28be(0x17d)];}async[_0x2a1f99(0x182)](){var _0x2d7814=_0x2a1f99;return this[_0x2d7814(0x170)][_0x2d7814(0x177)]({'message':this[_0x2d7814(0x187)],'conversationId':this[_0x2d7814(0x174)],'parts':_0x22dca3[_0x2d7814(0x17f)](this[_0x2d7814(0x176)]),'capabilities':_0x58edab[_0x2d7814(0x183)](this[_0x2d7814(0x186)]),'model':this[_0x2d7814(0x171)],'quickActionData':this[_0x2d7814(0x17d)]});}[_0x2a1f99(0x17e)](){var _0x413d1c=_0x2a1f99;return this[_0x413d1c(0x176)][_0x413d1c(0x184)](_0x413d1c(0x180));}}function _0x50ff(){var _0x45637d=['model','91587jqgiPT','10808808wCFiAZ','conversationId','8566782jPGvCI','contextItems','queryAssistant','18wBzNQH','3072398RIDuEz','6137628znueVk','53590zUbjZu','484RsZhcX','quickActionData','getDocumentContext','mapContextItemsToRequestData','current-document','5318890RSiScB','sendRequest','getCapabilitiesRequestData','get','3CAsyFD','capabilities','userMessage','connector'];_0x50ff=function(){return _0x45637d;};return _0x50ff();}
23
+ function _0x1849(_0x182080,_0x51323c){var _0x280167=_0x2801();return _0x1849=function(_0x184966,_0x1cc72e){_0x184966=_0x184966-0xa1;var _0x41f6b7=_0x280167[_0x184966];return _0x41f6b7;},_0x1849(_0x182080,_0x51323c);}var _0xe4120e=_0x1849;(function(_0x32cd2d,_0x5c94df){var _0x39b48b=_0x1849,_0x280d99=_0x32cd2d();while(!![]){try{var _0x19f8b5=-parseInt(_0x39b48b(0xb5))/0x1+-parseInt(_0x39b48b(0xa6))/0x2+parseInt(_0x39b48b(0xaa))/0x3*(-parseInt(_0x39b48b(0xb0))/0x4)+-parseInt(_0x39b48b(0xb6))/0x5+-parseInt(_0x39b48b(0xad))/0x6*(parseInt(_0x39b48b(0xb8))/0x7)+-parseInt(_0x39b48b(0xa4))/0x8+-parseInt(_0x39b48b(0xb1))/0x9*(-parseInt(_0x39b48b(0xb7))/0xa);if(_0x19f8b5===_0x5c94df)break;else _0x280d99['push'](_0x280d99['shift']());}catch(_0x6368e8){_0x280d99['push'](_0x280d99['shift']());}}}(_0x2801,0xbd3b3));import{AICapabilities as _0x12b924}from'../../aicore/model/aicapabilities.js';function _0x2801(){var _0x133b2a=['21JQjFVp','get','mapContextItemsToRequestData','contextItems','5398912CNrppU','sendRequest','1463682rxcznz','capabilities','userMessage','model','27OBMlAF','getDocumentContext','current-document','671172BpALvj','connector','conversationId','133820nXUZhC','43003773CRuOoV','getCapabilitiesRequestData','quickActionData','queryAssistant','829749LBrUJD','5649855QTOatC','10RsivWt'];_0x2801=function(){return _0x133b2a;};return _0x2801();}import{AIInteraction as _0x12c695}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x55cfdc}from'./aichatcontext.js';export class AIChatInteraction extends _0x12c695{[_0xe4120e(0xa8)];[_0xe4120e(0xaf)];[_0xe4120e(0xa3)]=new Map();[_0xe4120e(0xa9)];[_0xe4120e(0xb3)];constructor(_0x37c6c5){var _0x7393c7=_0xe4120e;super(_0x37c6c5),this[_0x7393c7(0xaf)]=_0x37c6c5[_0x7393c7(0xaf)],this[_0x7393c7(0xa3)]=_0x37c6c5[_0x7393c7(0xa3)],this[_0x7393c7(0xa7)]=_0x37c6c5[_0x7393c7(0xa7)],this[_0x7393c7(0xa8)]=_0x37c6c5[_0x7393c7(0xa8)],this[_0x7393c7(0xa9)]=_0x37c6c5[_0x7393c7(0xa9)],this[_0x7393c7(0xb3)]=_0x37c6c5[_0x7393c7(0xb3)];}async[_0xe4120e(0xa5)](){var _0x58150f=_0xe4120e;return this[_0x58150f(0xae)][_0x58150f(0xb4)]({'message':this[_0x58150f(0xa8)],'conversationId':this[_0x58150f(0xaf)],'parts':_0x55cfdc[_0x58150f(0xa2)](this[_0x58150f(0xa3)]),'capabilities':_0x12b924[_0x58150f(0xb2)](this[_0x58150f(0xa7)]),'model':this[_0x58150f(0xa9)],'quickActionData':this[_0x58150f(0xb3)]});}[_0xe4120e(0xab)](){var _0x5b02ba=_0xe4120e;return this[_0x5b02ba(0xa3)][_0x5b02ba(0xa1)](_0x5b02ba(0xac));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b279b=_0x2ed9;function _0x1547(){const _0x40f4b3=['3gWYXct','filter','getAll','values','84gZciCo','sort','13892090HxlfjJ','1147835TfQoqx','6164816TXsSCh','capabilities','5763231BLeTsi','109256vwMWbq','enabled','8399544iBHGuR','555232PQWrGD','length','12oOLdeT'];_0x1547=function(){return _0x40f4b3;};return _0x1547();}(function(_0x44b7dd,_0x4ec08a){const _0x138620=_0x2ed9,_0x243f3c=_0x44b7dd();while(!![]){try{const _0x413cd0=-parseInt(_0x138620(0x15d))/0x1*(-parseInt(_0x138620(0x15a))/0x2)+-parseInt(_0x138620(0x161))/0x3*(parseInt(_0x138620(0x157))/0x4)+parseInt(_0x138620(0x153))/0x5*(-parseInt(_0x138620(0x15c))/0x6)+-parseInt(_0x138620(0x154))/0x7+parseInt(_0x138620(0x159))/0x8+-parseInt(_0x138620(0x156))/0x9+parseInt(_0x138620(0x163))/0xa;if(_0x413cd0===_0x4ec08a)break;else _0x243f3c['push'](_0x243f3c['shift']());}catch(_0x113629){_0x243f3c['push'](_0x243f3c['shift']());}}}(_0x1547,0x80ab3));import{AIModels as _0x189048}from'../../aicore/model/aimodels.js';function _0x2ed9(_0xdbca87,_0x2f692a){const _0x1547a1=_0x1547();return _0x2ed9=function(_0x2ed984,_0xa4b08c){_0x2ed984=_0x2ed984-0x153;let _0x45ec49=_0x1547a1[_0x2ed984];return _0x45ec49;},_0x2ed9(_0xdbca87,_0x2f692a);}export class AIChatModels extends _0x189048{async[_0x5b279b(0x15f)](){const _0x531f80=_0x5b279b;return(await super[_0x531f80(0x15f)]())[_0x531f80(0x162)]((_0x4b2fb7,_0x5a35a4)=>{const _0x2cbb7a=_0x531f80,_0x428f24=Object[_0x2cbb7a(0x160)](_0x4b2fb7[_0x2cbb7a(0x155)])[_0x2cbb7a(0x15e)](_0x22f76d=>_0x22f76d[_0x2cbb7a(0x158)])[_0x2cbb7a(0x15b)];return Object[_0x2cbb7a(0x160)](_0x5a35a4[_0x2cbb7a(0x155)])[_0x2cbb7a(0x15e)](_0x271d30=>_0x271d30[_0x2cbb7a(0x158)])[_0x2cbb7a(0x15b)]-_0x428f24;});}}
23
+ const _0x15141c=_0x32f4;function _0x32f4(_0x3bd7d1,_0x2fb833){const _0x9e09f8=_0x9e09();return _0x32f4=function(_0x32f467,_0x34ebb6){_0x32f467=_0x32f467-0x1b0;let _0x56d06f=_0x9e09f8[_0x32f467];return _0x56d06f;},_0x32f4(_0x3bd7d1,_0x2fb833);}function _0x9e09(){const _0x51b634=['values','length','21130fJPBLC','168NZgXRU','getAll','1066365cmuOzd','972391hFRUoP','4830008dfNCJd','filter','363453XFFJOz','sort','332254yGcuLo','enabled','20211930aCJfdW','24rTAWxT','capabilities'];_0x9e09=function(){return _0x51b634;};return _0x9e09();}(function(_0x5d5dc3,_0x3a5b6e){const _0x37d1be=_0x32f4,_0x3a77e7=_0x5d5dc3();while(!![]){try{const _0x1a1245=-parseInt(_0x37d1be(0x1bc))/0x1+parseInt(_0x37d1be(0x1be))/0x2+-parseInt(_0x37d1be(0x1b8))/0x3+-parseInt(_0x37d1be(0x1b6))/0x4*(parseInt(_0x37d1be(0x1b5))/0x5)+-parseInt(_0x37d1be(0x1b1))/0x6*(parseInt(_0x37d1be(0x1b9))/0x7)+-parseInt(_0x37d1be(0x1ba))/0x8+parseInt(_0x37d1be(0x1b0))/0x9;if(_0x1a1245===_0x3a5b6e)break;else _0x3a77e7['push'](_0x3a77e7['shift']());}catch(_0x2b2bac){_0x3a77e7['push'](_0x3a77e7['shift']());}}}(_0x9e09,0x56efe));import{AIModels as _0x5610d3}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x5610d3{async[_0x15141c(0x1b7)](){const _0x2d378f=_0x15141c;return(await super[_0x2d378f(0x1b7)]())[_0x2d378f(0x1bd)]((_0x49daeb,_0x122f3e)=>{const _0x22c1e8=_0x2d378f,_0x587232=Object[_0x22c1e8(0x1b3)](_0x49daeb[_0x22c1e8(0x1b2)])[_0x22c1e8(0x1bb)](_0xaaaab1=>_0xaaaab1[_0x22c1e8(0x1bf)])[_0x22c1e8(0x1b4)];return Object[_0x22c1e8(0x1b3)](_0x122f3e[_0x22c1e8(0x1b2)])[_0x22c1e8(0x1bb)](_0xd8b56=>_0xd8b56[_0x22c1e8(0x1bf)])[_0x22c1e8(0x1b4)]-_0x587232;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2191e9=_0x3668;(function(_0x2770df,_0x45d836){const _0x3b2e1c=_0x3668,_0x3f3323=_0x2770df();while(!![]){try{const _0x57b653=parseInt(_0x3b2e1c(0x1fe))/0x1+parseInt(_0x3b2e1c(0x1f4))/0x2+-parseInt(_0x3b2e1c(0x1e7))/0x3*(parseInt(_0x3b2e1c(0x1d7))/0x4)+parseInt(_0x3b2e1c(0x1c9))/0x5*(-parseInt(_0x3b2e1c(0x20a))/0x6)+-parseInt(_0x3b2e1c(0x1cf))/0x7*(-parseInt(_0x3b2e1c(0x1f6))/0x8)+-parseInt(_0x3b2e1c(0x1c3))/0x9*(parseInt(_0x3b2e1c(0x20c))/0xa)+parseInt(_0x3b2e1c(0x1d0))/0xb;if(_0x57b653===_0x45d836)break;else _0x3f3323['push'](_0x3f3323['shift']());}catch(_0x5bef06){_0x3f3323['push'](_0x3f3323['shift']());}}}(_0xfbdf,0xe4a02));function _0x3668(_0x4448ad,_0x8a57ba){const _0xfbdf53=_0xfbdf();return _0x3668=function(_0x366891,_0x3ee34f){_0x366891=_0x366891-0x1bd;let _0x261682=_0xfbdf53[_0x366891];return _0x261682;},_0x3668(_0x4448ad,_0x8a57ba);}import{ButtonView as _0x225c57,clickOutsideHandler as _0x238204,View as _0x346b5e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x310838}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x597998}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x330832,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5ce09a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x41c445}from'./controls/aichatcontrolsloaderview.js';function _0xfbdf(){const _0x13ef8e=['_displayedModels','_createPromptCapabilitiesView','startConversation','_shouldRestorePromptInputFocus','focus','399HplCfW','5221447zVHjmT','setModelList','_promptInputView','_handlePromptInputFocus','element','setTemplate','delegate','856DcqQlP','isDisabled','setConversationContext','disableModelSelector','bindTemplate','execute','_createModelUnavailableMessageView','_createPromptInputView','_modelUnavailableMessageView','enableModelSelector','toggleWebSearch','startsWith','isLoading','reset','div','locale','6609LdpVvJ','toggleReasoning','updateResourceState','setWebSearch','ck-ai-chat-controls-disabled','ck-ai-chat-controls','_contextPanelView','clearConversationContextUI','populateSourceResourceBalloon','setPlaceholderText','_promptCapabilitiesView','set','clearPendingContextUI','3052918vrDIUs','form','23608dUWTaF','closeSourceResourceBalloon','_createContextPanelView','_loaderView','selectModel','addContextButtonView','clearCurrentContextItems','clearConversationContextItems','603758dVnQXN','low','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setIsUploadInProgress','ck-ai-chat-controls__start-new-chat-button','abortPromptStream','ck-hidden','ck-ai-chat-controls-model-unavailable-message','setModel','isModelAvailable','setReasoning','find','185346gxrNwk','change:isLoading','220BbGfGY','agent','setContextItemLoading','bodyCollection','focusPromptInput','setInputPlaceholder','_createLoaderView','contextResourcesSearchInputVisibleFrom','sendUserMessage','470034JJLfaF','resetMessageInput','removeContextItem','setAddContextOptions','addContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','35gpjgUv'];_0xfbdf=function(){return _0x13ef8e;};return _0xfbdf();}import{getTranslation as _0x38b99d}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x346b5e{[_0x2191e9(0x1ca)]=[];[_0x2191e9(0x1ed)];[_0x2191e9(0x1d2)];[_0x2191e9(0x1f1)];[_0x2191e9(0x1f9)];[_0x2191e9(0x1df)];[_0x2191e9(0x1cd)];constructor(_0x43a4c6,_0x5d2925){const _0x42728d=_0x2191e9;super(_0x43a4c6),this[_0x42728d(0x1ed)]=this[_0x42728d(0x1f8)](_0x43a4c6,{'bodyCollection':_0x5d2925[_0x42728d(0x1bd)],'searchInputVisibleFrom':_0x5d2925[_0x42728d(0x1c1)]}),this[_0x42728d(0x1d2)]=this[_0x42728d(0x1de)](_0x43a4c6),this[_0x42728d(0x1f1)]=this[_0x42728d(0x1cb)](_0x43a4c6),this[_0x42728d(0x1f9)]=this[_0x42728d(0x1c0)](_0x43a4c6),this[_0x42728d(0x1df)]=this[_0x42728d(0x1dd)](_0x43a4c6),this[_0x42728d(0x1cd)]=!0x1,this[_0x42728d(0x1d2)][_0x42728d(0x1d6)](_0x42728d(0x1c2))['to'](this),this[_0x42728d(0x1f9)][_0x42728d(0x1d6)](_0x42728d(0x203))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e1))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e8))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1fa))['to'](this),this[_0x42728d(0x1ed)][_0x42728d(0x1d6)](..._0x5ce09a)['to'](this),this[_0x42728d(0x1f2)](_0x42728d(0x207),!0x0),this[_0x42728d(0x1f2)](_0x42728d(0x1d8),!0x1);const _0x4c1517=this[_0x42728d(0x1db)];this[_0x42728d(0x1d5)]({'tag':_0x42728d(0x1f5),'attributes':{'class':['ck',_0x42728d(0x1ec),_0x4c1517['if'](_0x42728d(0x1d8),_0x42728d(0x1eb))]},'children':[{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x166fa0=>_0x166fa0||!this[_0x42728d(0x207)]),_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x4b304e=>!_0x4b304e||this[_0x42728d(0x1e3)])]},'children':[this[_0x42728d(0x1ed)],this[_0x42728d(0x1d2)],this[_0x42728d(0x1f1)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x46fe0a=>!_0x46fe0a)]},'children':[this[_0x42728d(0x1f9)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x10a3fa=>_0x10a3fa)]},'children':[this[_0x42728d(0x1df)]]}]}),_0x238204({'emitter':this[_0x42728d(0x1d2)],'activator':()=>this[_0x42728d(0x1e3)],'contextElements':()=>[this[_0x42728d(0x1d4)]],'callback':()=>{const _0x29547e=_0x42728d;this[_0x29547e(0x1cd)]=!0x1;}}),this['on'](_0x42728d(0x20b),this[_0x42728d(0x1d3)],{'priority':_0x42728d(0x1ff)});}[_0x2191e9(0x1f8)](_0x5edd92,_0x5ebb35){return new _0x330832(_0x5edd92,_0x5ebb35);}[_0x2191e9(0x1de)](_0x554dce){const _0x1f5641=_0x2191e9;return new _0x310838(_0x554dce,this[_0x1f5641(0x1ed)][_0x1f5641(0x1fb)]);}[_0x2191e9(0x1cb)](_0x4b69ab){return new _0x597998(_0x4b69ab);}[_0x2191e9(0x1c0)](_0xd68f38){return new _0x41c445(_0xd68f38);}[_0x2191e9(0x1dd)](_0x5e206c){const _0x2ce635=_0x2191e9,_0x4d711a=new hs(_0x5e206c);return _0x4d711a[_0x2ce635(0x1d6)](_0x2ce635(0x1cc))['to'](this),_0x4d711a;}[_0x2191e9(0x1d3)](_0x251ab2,_0x3f3f60,_0x157516){const _0x206eb5=_0x2191e9;_0x157516?this[_0x206eb5(0x1cd)]=!0x0:this[_0x206eb5(0x1cd)]&&this[_0x206eb5(0x1d2)][_0x206eb5(0x1ce)]();}[_0x2191e9(0x1c7)](_0x19d369,_0x2d5141){const _0x24175a=_0x2191e9;this[_0x24175a(0x1ed)][_0x24175a(0x1c7)](_0x19d369,_0x2d5141);}[_0x2191e9(0x1c5)](_0x263f9d){const _0x4a6646=_0x2191e9;this[_0x4a6646(0x1ed)][_0x4a6646(0x1c5)](_0x263f9d);}[_0x2191e9(0x20e)](_0x599c2e,_0x1985ac){const _0x147338=_0x2191e9;this[_0x147338(0x1ed)][_0x147338(0x20e)](_0x599c2e,_0x1985ac);}[_0x2191e9(0x201)](_0x2d4434){const _0x403af9=_0x2191e9;this[_0x403af9(0x1d2)][_0x403af9(0x201)](_0x2d4434);}[_0x2191e9(0x1d9)](_0x28ada7){const _0x5e7c17=_0x2191e9;this[_0x5e7c17(0x1ed)][_0x5e7c17(0x1d9)](_0x28ada7);}[_0x2191e9(0x1f3)](){const _0x88a80d=_0x2191e9;this[_0x88a80d(0x1ed)][_0x88a80d(0x1fc)]();}[_0x2191e9(0x1ee)](){const _0x3113cc=_0x2191e9;this[_0x3113cc(0x1ed)][_0x3113cc(0x1fd)]();}[_0x2191e9(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8){const _0x428238=_0x2191e9;this[_0x428238(0x1ed)][_0x428238(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8);}[_0x2191e9(0x1ea)](_0x4debd0){const _0x491ea5=_0x2191e9;this[_0x491ea5(0x1f1)][_0x491ea5(0x1ea)](_0x4debd0);}[_0x2191e9(0x208)](_0x56ac61){const _0x546d9e=_0x2191e9;this[_0x546d9e(0x1f1)][_0x546d9e(0x208)](_0x56ac61);}[_0x2191e9(0x1c4)](){const _0x118e3d=_0x2191e9;this[_0x118e3d(0x1d2)][_0x118e3d(0x1e4)]();}[_0x2191e9(0x1c6)](_0x5dcb88){const _0x5b3ea0=_0x2191e9;this[_0x5b3ea0(0x1ed)][_0x5b3ea0(0x1c6)](_0x5dcb88);}[_0x2191e9(0x1bf)](_0x252c36){const _0x3d4adf=_0x2191e9;this[_0x3d4adf(0x1d2)][_0x3d4adf(0x1f0)](_0x252c36);}[_0x2191e9(0x1d1)](_0xd0b991,_0xad7348){const _0x4ca2f7=_0x2191e9;this[_0x4ca2f7(0x1ca)]=_0xd0b991,this[_0x4ca2f7(0x1f1)][_0x4ca2f7(0x1d1)](_0xd0b991,_0xad7348);}[_0x2191e9(0x206)](_0x4eed17){const _0x43cb57=_0x2191e9;(_0x4eed17?this[_0x43cb57(0x1ca)][_0x43cb57(0x209)](_0x1d4d91=>_0x1d4d91['id']===_0x4eed17['id']):null)?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](_0x4eed17)):_0x4eed17?.['id'][_0x43cb57(0x1e2)](_0x43cb57(0x20d))?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](this[_0x43cb57(0x1ca)][0x0])):this[_0x43cb57(0x207)]=!0x1;}[_0x2191e9(0x1e0)](){const _0x448a83=_0x2191e9;this[_0x448a83(0x1f1)][_0x448a83(0x1e0)]();}[_0x2191e9(0x1da)](_0x3a24ee){const _0x4ec9fa=_0x2191e9;this[_0x4ec9fa(0x1f1)][_0x4ec9fa(0x1da)](_0x3a24ee);}[_0x2191e9(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b){const _0x159aa0=_0x2191e9;this[_0x159aa0(0x1ed)][_0x159aa0(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b);}[_0x2191e9(0x1f7)](_0x2c2a35){const _0x37e4ac=_0x2191e9;this[_0x37e4ac(0x1ed)][_0x37e4ac(0x1f7)](_0x2c2a35);}[_0x2191e9(0x1be)](){const _0x4c18cf=_0x2191e9;this[_0x4c18cf(0x1d2)][_0x4c18cf(0x1ce)]();}}class hs extends _0x346b5e{constructor(_0x270860){const _0x330873=_0x2191e9;super(_0x270860);const _0x326f28=new _0x225c57(_0x270860);_0x326f28[_0x330873(0x1f2)]({'label':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x1c8)),'withText':!0x0,'class':[_0x330873(0x202)],'tooltip':''}),_0x326f28[_0x330873(0x1d6)](_0x330873(0x1dc))['to'](this,_0x330873(0x1cc)),this[_0x330873(0x1d5)]({'tag':_0x330873(0x1e5),'attributes':{'class':['ck',_0x330873(0x205)]},'children':[{'tag':'p','children':[{'text':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x200))+'\x20'},_0x326f28]}]});}}
23
+ const _0x400d36=_0x5eda;(function(_0x5855f9,_0x3621a0){const _0x36dd3c=_0x5eda,_0x511d5b=_0x5855f9();while(!![]){try{const _0x174fdb=-parseInt(_0x36dd3c(0x78))/0x1+-parseInt(_0x36dd3c(0x8e))/0x2*(parseInt(_0x36dd3c(0xa0))/0x3)+parseInt(_0x36dd3c(0x74))/0x4*(-parseInt(_0x36dd3c(0x9a))/0x5)+parseInt(_0x36dd3c(0xae))/0x6+-parseInt(_0x36dd3c(0x90))/0x7*(-parseInt(_0x36dd3c(0x99))/0x8)+-parseInt(_0x36dd3c(0x7d))/0x9*(parseInt(_0x36dd3c(0x77))/0xa)+parseInt(_0x36dd3c(0xb1))/0xb;if(_0x174fdb===_0x3621a0)break;else _0x511d5b['push'](_0x511d5b['shift']());}catch(_0x222246){_0x511d5b['push'](_0x511d5b['shift']());}}}(_0x4eba,0x28a48));import{ButtonView as _0x137dfe,clickOutsideHandler as _0x276912,View as _0x55e1d5}from'ckeditor5/src/ui.js';function _0x5eda(_0x3fd98f,_0x5b4ec7){const _0x4eba68=_0x4eba();return _0x5eda=function(_0x5edaa9,_0x8f9ec2){_0x5edaa9=_0x5edaa9-0x64;let _0x42c8cb=_0x4eba68[_0x5edaa9];return _0x42c8cb;},_0x5eda(_0x3fd98f,_0x5b4ec7);}import{AIChatPromptInputView as _0x359a9d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4f2893}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x19860c,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1fbbd3}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x127e7d}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x415692}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x55e1d5{[_0x400d36(0x84)]=[];[_0x400d36(0x9f)];[_0x400d36(0x9e)];[_0x400d36(0x68)];[_0x400d36(0xa9)];[_0x400d36(0x79)];[_0x400d36(0xa1)];constructor(_0x521d76,_0x3c86d3){const _0xa00d46=_0x400d36;super(_0x521d76),this[_0xa00d46(0x9f)]=this[_0xa00d46(0x73)](_0x521d76,{'bodyCollection':_0x3c86d3[_0xa00d46(0x7b)],'searchInputVisibleFrom':_0x3c86d3[_0xa00d46(0x8c)]}),this[_0xa00d46(0x9e)]=this[_0xa00d46(0x81)](_0x521d76),this[_0xa00d46(0x68)]=this[_0xa00d46(0x67)](_0x521d76),this[_0xa00d46(0xa9)]=this[_0xa00d46(0xa8)](_0x521d76),this[_0xa00d46(0x79)]=this[_0xa00d46(0xa7)](_0x521d76),this[_0xa00d46(0xa1)]=!0x1,this[_0xa00d46(0x9e)][_0xa00d46(0x71)](_0xa00d46(0xb4))['to'](this),this[_0xa00d46(0xa9)][_0xa00d46(0x71)](_0xa00d46(0x66))['to'](this),this[_0xa00d46(0x68)][_0xa00d46(0x71)](_0xa00d46(0x6d))['to'](this),this[_0xa00d46(0x68)][_0xa00d46(0x71)](_0xa00d46(0xa2))['to'](this),this[_0xa00d46(0x68)][_0xa00d46(0x71)](_0xa00d46(0x6e))['to'](this),this[_0xa00d46(0x9f)][_0xa00d46(0x71)](..._0x1fbbd3)['to'](this),this[_0xa00d46(0x89)](_0xa00d46(0x80),!0x0),this[_0xa00d46(0x89)](_0xa00d46(0xaa),!0x1);const _0x7ee61b=this[_0xa00d46(0x91)];this[_0xa00d46(0x7f)]({'tag':_0xa00d46(0x76),'attributes':{'class':['ck',_0xa00d46(0x83),_0x7ee61b['if'](_0xa00d46(0xaa),_0xa00d46(0x75))]},'children':[{'tag':_0xa00d46(0x7e),'attributes':{'class':[_0x7ee61b['if'](_0xa00d46(0x8b),_0xa00d46(0x6b),_0x31452f=>_0x31452f||!this[_0xa00d46(0x80)]),_0x7ee61b['if'](_0xa00d46(0x80),_0xa00d46(0x6b),_0xcdad2a=>!_0xcdad2a||this[_0xa00d46(0x8b)])]},'children':[this[_0xa00d46(0x9f)],this[_0xa00d46(0x9e)],this[_0xa00d46(0x68)]]},{'tag':_0xa00d46(0x7e),'attributes':{'class':[_0x7ee61b['if'](_0xa00d46(0x8b),_0xa00d46(0x6b),_0x27d197=>!_0x27d197)]},'children':[this[_0xa00d46(0xa9)]]},{'tag':_0xa00d46(0x7e),'attributes':{'class':[_0x7ee61b['if'](_0xa00d46(0x80),_0xa00d46(0x6b),_0x4fd598=>_0x4fd598)]},'children':[this[_0xa00d46(0x79)]]}]}),_0x276912({'emitter':this[_0xa00d46(0x9e)],'activator':()=>this[_0xa00d46(0x8b)],'contextElements':()=>[this[_0xa00d46(0x8d)]],'callback':()=>{const _0x6e1df=_0xa00d46;this[_0x6e1df(0xa1)]=!0x1;}}),this['on'](_0xa00d46(0x72),this[_0xa00d46(0x8a)],{'priority':_0xa00d46(0x95)});}[_0x400d36(0x73)](_0x3c844a,_0x4f3d4c){return new _0x19860c(_0x3c844a,_0x4f3d4c);}[_0x400d36(0x81)](_0x36d51a){const _0x116b83=_0x400d36;return new _0x359a9d(_0x36d51a,this[_0x116b83(0x9f)][_0x116b83(0xa3)]);}[_0x400d36(0x67)](_0x20ca45){return new _0x4f2893(_0x20ca45);}[_0x400d36(0xa8)](_0x4244c9){return new _0x127e7d(_0x4244c9);}[_0x400d36(0xa7)](_0x8edafa){const _0x749b87=_0x400d36,_0xc9d40d=new hs(_0x8edafa);return _0xc9d40d[_0x749b87(0x71)](_0x749b87(0x92))['to'](this),_0xc9d40d;}[_0x400d36(0x8a)](_0x31a70c,_0x352892,_0x5dd324){const _0x210250=_0x400d36;_0x5dd324?this[_0x210250(0xa1)]=!0x0:this[_0x210250(0xa1)]&&this[_0x210250(0x9e)][_0x210250(0xa6)]();}[_0x400d36(0x94)](_0x30e12c,_0x2b171f){const _0x3cb256=_0x400d36;this[_0x3cb256(0x9f)][_0x3cb256(0x94)](_0x30e12c,_0x2b171f);}[_0x400d36(0xb2)](_0x33feb5){const _0x71d2b6=_0x400d36;this[_0x71d2b6(0x9f)][_0x71d2b6(0xb2)](_0x33feb5);}[_0x400d36(0x69)](_0x4b6edb,_0x5cf034){const _0x163f01=_0x400d36;this[_0x163f01(0x9f)][_0x163f01(0x69)](_0x4b6edb,_0x5cf034);}[_0x400d36(0x88)](_0x3beab6){const _0x5d8947=_0x400d36;this[_0x5d8947(0x9e)][_0x5d8947(0x88)](_0x3beab6);}[_0x400d36(0xb0)](_0x2785fe){const _0x34249f=_0x400d36;this[_0x34249f(0x9f)][_0x34249f(0xb0)](_0x2785fe);}[_0x400d36(0x6a)](){const _0x5cd62e=_0x400d36;this[_0x5cd62e(0x9f)][_0x5cd62e(0x93)]();}[_0x400d36(0x82)](){const _0x352b91=_0x400d36;this[_0x352b91(0x9f)][_0x352b91(0x9d)]();}[_0x400d36(0xab)](_0x4bf850,_0xc5ea9e,_0xe9358f){const _0x494d41=_0x400d36;this[_0x494d41(0x9f)][_0x494d41(0xab)](_0x4bf850,_0xc5ea9e,_0xe9358f);}[_0x400d36(0x87)](_0x3a1225){const _0x931658=_0x400d36;this[_0x931658(0x68)][_0x931658(0x87)](_0x3a1225);}[_0x400d36(0x9c)](_0x2d173c){const _0x39bc79=_0x400d36;this[_0x39bc79(0x68)][_0x39bc79(0x9c)](_0x2d173c);}[_0x400d36(0x7c)](){const _0x13ee07=_0x400d36;this[_0x13ee07(0x9e)][_0x13ee07(0x6f)]();}[_0x400d36(0x98)](_0x3f709e){const _0x21eb06=_0x400d36;this[_0x21eb06(0x9f)][_0x21eb06(0x98)](_0x3f709e);}[_0x400d36(0x70)](_0x523156){const _0x23d8ca=_0x400d36;this[_0x23d8ca(0x9e)][_0x23d8ca(0xa4)](_0x523156);}[_0x400d36(0x9b)](_0x21d6cc,_0xbd5191){const _0x1f1947=_0x400d36;this[_0x1f1947(0x84)]=_0x21d6cc,this[_0x1f1947(0x68)][_0x1f1947(0x9b)](_0x21d6cc,_0xbd5191);}[_0x400d36(0x96)](_0x558dfe){const _0x32fee1=_0x400d36;(_0x558dfe?this[_0x32fee1(0x84)][_0x32fee1(0x6c)](_0x1e1a92=>_0x1e1a92['id']===_0x558dfe['id']):null)?(this[_0x32fee1(0x80)]=!0x0,this[_0x32fee1(0x68)][_0x32fee1(0x96)](_0x558dfe)):_0x558dfe?.['id'][_0x32fee1(0xac)](_0x32fee1(0x97))?(this[_0x32fee1(0x80)]=!0x0,this[_0x32fee1(0x68)][_0x32fee1(0x96)](this[_0x32fee1(0x84)][0x0])):this[_0x32fee1(0x80)]=!0x1;}[_0x400d36(0x64)](){const _0xaae5e6=_0x400d36;this[_0xaae5e6(0x68)][_0xaae5e6(0x64)]();}[_0x400d36(0x86)](_0x531495){const _0x195b3b=_0x400d36;this[_0x195b3b(0x68)][_0x195b3b(0x86)](_0x531495);}[_0x400d36(0xaf)](_0x2e24c0,_0x54f107,_0x22af60,_0x10ba2c){const _0x4fb4c9=_0x400d36;this[_0x4fb4c9(0x9f)][_0x4fb4c9(0xaf)](_0x2e24c0,_0x54f107,_0x22af60,_0x10ba2c);}[_0x400d36(0x65)](_0x2eeac3){const _0x35fb3f=_0x400d36;this[_0x35fb3f(0x9f)][_0x35fb3f(0x65)](_0x2eeac3);}[_0x400d36(0x8f)](){const _0x548eea=_0x400d36;this[_0x548eea(0x9e)][_0x548eea(0xa6)]();}}class hs extends _0x55e1d5{constructor(_0x2883d3){const _0x6342d3=_0x400d36;super(_0x2883d3);const _0x3a22bc=new _0x137dfe(_0x2883d3);_0x3a22bc[_0x6342d3(0x89)]({'label':_0x415692(this[_0x6342d3(0xb5)],_0x6342d3(0x85)),'withText':!0x0,'class':[_0x6342d3(0xad)],'tooltip':''}),_0x3a22bc[_0x6342d3(0x71)](_0x6342d3(0x7a))['to'](this,_0x6342d3(0x92)),this[_0x6342d3(0x7f)]({'tag':_0x6342d3(0x7e),'attributes':{'class':['ck',_0x6342d3(0xa5)]},'children':[{'tag':'p','children':[{'text':_0x415692(this[_0x6342d3(0xb5)],_0x6342d3(0xb3))+'\x20'},_0x3a22bc]}]});}}function _0x4eba(){const _0x2ed423=['focusPromptInput','221018mDFhhR','bindTemplate','startConversation','clearCurrentContextItems','addContextItem','low','setModel','agent','setAddContextOptions','72vefhzT','5eJSCqr','setModelList','setReasoning','clearConversationContextItems','_promptInputView','_contextPanelView','3ZHddSq','_shouldRestorePromptInputFocus','toggleReasoning','addContextButtonView','setPlaceholderText','ck-ai-chat-controls-model-unavailable-message','focus','_createModelUnavailableMessageView','_createLoaderView','_loaderView','isDisabled','updateResourceState','startsWith','ck-ai-chat-controls__start-new-chat-button','423336VOWbsN','populateSourceResourceBalloon','setConversationContext','4454527NBSnqg','removeContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','sendUserMessage','locale','enableModelSelector','closeSourceResourceBalloon','abortPromptStream','_createPromptCapabilitiesView','_promptCapabilitiesView','setContextItemLoading','clearPendingContextUI','ck-hidden','find','toggleWebSearch','selectModel','reset','setInputPlaceholder','delegate','change:isLoading','_createContextPanelView','886736yTYDeu','ck-ai-chat-controls-disabled','form','4870deEhcD','34106uhvzmL','_modelUnavailableMessageView','execute','bodyCollection','resetMessageInput','2241estQXB','div','setTemplate','isModelAvailable','_createPromptInputView','clearConversationContextUI','ck-ai-chat-controls','_displayedModels','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','setWebSearch','setIsUploadInProgress','set','_handlePromptInputFocus','isLoading','contextResourcesSearchInputVisibleFrom','element','432308XNzBkY'];_0x4eba=function(){return _0x2ed423;};return _0x4eba();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48efcc=_0x43d7;(function(_0x395bde,_0x484f92){const _0x43d0ee=_0x43d7,_0x1c23c5=_0x395bde();while(!![]){try{const _0x100edf=parseInt(_0x43d0ee(0x1c8))/0x1*(parseInt(_0x43d0ee(0x188))/0x2)+-parseInt(_0x43d0ee(0x1a4))/0x3*(parseInt(_0x43d0ee(0x1bc))/0x4)+parseInt(_0x43d0ee(0x1be))/0x5*(-parseInt(_0x43d0ee(0x1d5))/0x6)+parseInt(_0x43d0ee(0x185))/0x7*(parseInt(_0x43d0ee(0x1cb))/0x8)+parseInt(_0x43d0ee(0x1b6))/0x9+parseInt(_0x43d0ee(0x1a6))/0xa*(parseInt(_0x43d0ee(0x1c7))/0xb)+-parseInt(_0x43d0ee(0x1aa))/0xc;if(_0x100edf===_0x484f92)break;else _0x1c23c5['push'](_0x1c23c5['shift']());}catch(_0xa4b7f2){_0x1c23c5['push'](_0x1c23c5['shift']());}}}(_0x8b54,0x7c39f));import{CKEditorError as _0x199efa,logWarning as _0x2dcd6e,scrollViewportToShowTarget as _0x3dd167}from'ckeditor5/src/utils.js';import{View as _0xbd012f}from'ckeditor5/src/ui.js';function _0x8b54(){const _0x16c1f2=['updateSuggestionItem','loadingMessage','bind','element','removeItem','destroy','3638022foQUpw','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__loader-text','5500719TTaQBo','addItem','ai-chat-feed-view-item-not-found','916862sQovWI','isVisible','ck-hidden','markAsDone','span','add','markItemAsDone','aiFeed','_bodyCollection','isTrackChangesOn','bindTemplate','ai-suggestion-reply','isPending','updatePartState','includes','stopAutoScroll','user-message','start','ck-ai-chat__loader','set','render','getItemIds','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__feed__items','_createFeedItems','clear','_createLoaderChildren','createCollection','314277fXlBGh','ck-ai-chat__feed','10uTQgeH','map','_setupTemplate','isLoadingSkeletonVisible','14051340nJVVGa','toggleLoadingSkeleton','getItemById','scrollToSuggestion','options','ai-reply','find','updateReplyItem','updateWebSources','ai-chat-feed-view-item-not-a-reply-item','remove','delegate','4935312mSXXfl','startAutoScroll','setTemplate','_createTemplateChildren','getPartView','locale','28nzjQZI','updateContent','5OFPKoz','interaction-header','div','stop','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','_createFeedLoader','_createSkeletonLoader','scrollManager','8452169rIbMpm','2CqEsVS','setLoadingMessage','extendTemplate','8pylGMO','children','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item'];_0x8b54=function(){return _0x16c1f2;};return _0x8b54();}import{AI_CHAT_UI_EVENT_NAMES as _0x4ea93b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x429358}from'./feed/aichatfeedsuggestionitemview.js';function _0x43d7(_0x1fe658,_0x1d1561){const _0x8b544a=_0x8b54();return _0x43d7=function(_0x43d7a2,_0x4dae05){_0x43d7a2=_0x43d7a2-0x183;let _0x383504=_0x8b544a[_0x43d7a2];return _0x383504;},_0x43d7(_0x1fe658,_0x1d1561);}import{AIChatFeedReplyItemView as _0x5a2e6d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x255f72}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0xd2c814}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4e4e21}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x54087a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5213d4,SKELETON_DEFINITIONS as _0x57b683}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2ec7a9}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0xbd012f{[_0x48efcc(0x1cc)];[_0x48efcc(0x1c6)];[_0x48efcc(0x190)];constructor(_0x1ebf85,_0x4be37c){const _0x4fb7a1=_0x48efcc;super(_0x1ebf85),this[_0x4fb7a1(0x190)]=_0x4be37c,this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x194),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1d0),''),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1a9),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x191),!0x1),this[_0x4fb7a1(0x1cc)]=this[_0x4fb7a1(0x1a3)](),this[_0x4fb7a1(0x1cc)][_0x4fb7a1(0x1b5)](..._0x4ea93b)['to'](this),this[_0x4fb7a1(0x1a8)]();}[_0x48efcc(0x19c)](){const _0x595e18=_0x48efcc;super[_0x595e18(0x19c)](),this[_0x595e18(0x1c6)]=new _0x54087a(this[_0x595e18(0x1d2)]);}[_0x48efcc(0x1d4)](){const _0x124ae0=_0x48efcc;super[_0x124ae0(0x1d4)](),this[_0x124ae0(0x1c6)][_0x124ae0(0x1d4)]();}[_0x48efcc(0x1a1)](){const _0x40fe07=_0x48efcc;this[_0x40fe07(0x1cc)][_0x40fe07(0x1a1)]();}[_0x48efcc(0x186)](_0x296616,_0x4d987d){const _0x24b63e=_0x48efcc;let _0x30bec0;_0x24b63e(0x1af)===_0x296616?_0x30bec0=new _0x5a2e6d(this[_0x24b63e(0x1bb)],_0x4d987d):_0x24b63e(0x193)===_0x296616?(_0x30bec0=new _0x429358(this[_0x24b63e(0x1bb)],_0x4d987d),_0x30bec0[_0x24b63e(0x1d1)](_0x24b63e(0x191))['to'](this,_0x24b63e(0x191))):_0x30bec0=_0x24b63e(0x198)===_0x296616?new _0x255f72(this[_0x24b63e(0x1bb)],_0x4d987d,this[_0x24b63e(0x190)]):_0x24b63e(0x1bf)===_0x296616?new _0x4e4e21(this[_0x24b63e(0x1bb)],_0x4d987d):new _0xd2c814(_0x4d987d),this[_0x24b63e(0x1cc)][_0x24b63e(0x18d)](_0x30bec0);}async[_0x48efcc(0x1b1)]({id:_0x15668c,parsedContent:_0x14f5fe,renderingStrategy:_0x398def,abortSignal:_0x2d1e40}){const _0xc16dd8=_0x48efcc,_0x40fd2a=this[_0xc16dd8(0x1ac)](_0x15668c);if(!(_0x40fd2a instanceof _0x5a2e6d))throw new _0x199efa(_0xc16dd8(0x1b3),null,{'itemView':_0x40fd2a,'id':_0x15668c,'parsedContent':_0x14f5fe});await _0x40fd2a[_0xc16dd8(0x1bd)]({'parsedContent':_0x14f5fe,'renderingStrategy':_0x398def,'abortSignal':_0x2d1e40});}async[_0x48efcc(0x1b2)](_0x2ad25c,_0x48ffa9){const _0x1a70d2=_0x48efcc,_0x59bd30=this[_0x1a70d2(0x1ac)](_0x2ad25c);if(_0x59bd30 instanceof _0x429358)_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);else{if(!(_0x59bd30 instanceof _0x5a2e6d))throw new _0x199efa(_0x1a70d2(0x183),null,{'itemView':_0x59bd30,'id':_0x2ad25c,'sources':_0x48ffa9});_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);}}async[_0x48efcc(0x1cf)]({id:_0x29558d,parts:_0x37dd29,renderingStrategy:_0x364148,abortSignal:_0x5aa74c}){const _0x2051b1=_0x48efcc,_0x286a7a=this[_0x2051b1(0x1ac)](_0x29558d);if(!(_0x286a7a instanceof _0x429358))throw new _0x199efa(_0x2051b1(0x1c2),null,{'itemView':_0x286a7a,'id':_0x29558d,'parts':_0x37dd29});await _0x286a7a[_0x2051b1(0x1bd)]({'parts':_0x37dd29,'renderingStrategy':_0x364148,'abortSignal':_0x5aa74c});}[_0x48efcc(0x1c3)]({id:_0x59645e,index:_0x2ad5e7,state:_0x243f4c}){const _0x1c0bce=_0x48efcc,_0x24e551=this[_0x1c0bce(0x1ac)](_0x59645e);if(!(_0x24e551 instanceof _0x429358))throw new _0x199efa(_0x1c0bce(0x1c2),this,{'id':_0x59645e});_0x24e551[_0x1c0bce(0x195)](_0x2ad5e7,_0x243f4c);}[_0x48efcc(0x18e)](_0x30adc5){const _0x3e6437=_0x48efcc;this[_0x3e6437(0x1ac)](_0x30adc5)[_0x3e6437(0x18b)]();}[_0x48efcc(0x19d)](){const _0x3117b9=_0x48efcc;return this[_0x3117b9(0x1cc)][_0x3117b9(0x1a7)](_0x528816=>_0x528816[_0x3117b9(0x1ae)]['id']);}[_0x48efcc(0x1d3)](_0x3bbb96){const _0x3daf6e=_0x48efcc;this[_0x3daf6e(0x1cc)][_0x3daf6e(0x1b4)](this[_0x3daf6e(0x1ac)](_0x3bbb96));}[_0x48efcc(0x1ad)](_0x50f6a6,_0x3add48){const _0x5c266b=_0x48efcc,_0x2614a6=this[_0x5c266b(0x1ac)](_0x50f6a6);if(!(_0x2614a6 instanceof _0x429358))return void _0x2dcd6e(_0x5c266b(0x1ce),{'replyId':_0x50f6a6,'partIndex':_0x3add48});const _0x8688ec=_0x2614a6[_0x5c266b(0x1ba)](_0x3add48);_0x8688ec?_0x3dd167({'target':_0x8688ec[_0x5c266b(0x1d2)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2dcd6e(_0x5c266b(0x19e),{'replyId':_0x50f6a6,'partIndex':_0x3add48});}[_0x48efcc(0x1a8)](){const _0x4704bf=_0x48efcc;this[_0x4704bf(0x1b8)]({'tag':_0x4704bf(0x1c0),'attributes':{'class':['ck',_0x4704bf(0x1a5)]},'children':this[_0x4704bf(0x1b9)]()});}[_0x48efcc(0x1b9)](){const _0xdd12b4=_0x48efcc,_0x1d0311=this[_0xdd12b4(0x1c5)]();return[this[_0xdd12b4(0x1a0)](),_0x1d0311,this[_0xdd12b4(0x1c4)]()];}[_0x48efcc(0x1c5)](){const _0x4dcc57=_0x48efcc,_0x38c976=new _0x5213d4(this[_0x4dcc57(0x1bb)],_0x57b683[_0x4dcc57(0x18f)]);return _0x38c976[_0x4dcc57(0x1ca)]({'attributes':{'class':[this[_0x4dcc57(0x192)]['if'](_0x4dcc57(0x1a9),_0x4dcc57(0x18a),_0x18c7d5=>!_0x18c7d5)]}}),_0x38c976;}[_0x48efcc(0x1a0)](){const _0x2da9c2=_0x48efcc,_0x2b01d3=new _0xbd012f(this[_0x2da9c2(0x1bb)]);return _0x2b01d3[_0x2da9c2(0x1b8)]({'tag':_0x2da9c2(0x1c0),'attributes':{'class':['ck',_0x2da9c2(0x19f),this[_0x2da9c2(0x192)]['if'](_0x2da9c2(0x1a9),_0x2da9c2(0x18a))]},'children':this[_0x2da9c2(0x1cc)]}),_0x2b01d3;}[_0x48efcc(0x1c4)](){const _0x435bf8=_0x48efcc,_0x3d118c=new _0xbd012f(this[_0x435bf8(0x1bb)]);return _0x3d118c[_0x435bf8(0x1b8)]({'tag':_0x435bf8(0x1c0),'attributes':{'class':['ck',_0x435bf8(0x19a),this[_0x435bf8(0x192)]['if'](_0x435bf8(0x194),_0x435bf8(0x18a),_0x288e9e=>!_0x288e9e)]},'children':this[_0x435bf8(0x1a2)]()}),_0x3d118c;}[_0x48efcc(0x1a2)](){const _0x33c328=_0x48efcc,_0x28aea3=new _0x2ec7a9();return _0x28aea3[_0x33c328(0x189)]=!0x0,[_0x28aea3,{'tag':_0x33c328(0x18c),'attributes':{'class':['ck',_0x33c328(0x184)]},'children':[{'text':this[_0x33c328(0x192)]['to'](_0x33c328(0x1d0))}]}];}[_0x48efcc(0x1ac)](_0x5b953f){const _0xf3817c=_0x48efcc,_0x4a8664=this[_0xf3817c(0x1cc)][_0xf3817c(0x1b0)](_0x39fe00=>_0x39fe00[_0xf3817c(0x1ae)]['id'][_0xf3817c(0x196)](_0x5b953f));if(!_0x4a8664)throw new _0x199efa(_0xf3817c(0x187),this,{'id':_0x5b953f});return _0x4a8664;}[_0x48efcc(0x1c9)](_0x954166){const _0x359df4=_0x48efcc;this[_0x359df4(0x19b)](_0x359df4(0x1d0),_0x954166);}[_0x48efcc(0x1ab)](_0x15736f){const _0x211918=_0x48efcc;this[_0x211918(0x19b)](_0x211918(0x1a9),_0x15736f);}[_0x48efcc(0x1b7)](){const _0x1eaca3=_0x48efcc;this[_0x1eaca3(0x1c6)][_0x1eaca3(0x199)]();}[_0x48efcc(0x197)](){const _0x5b6293=_0x48efcc;this[_0x5b6293(0x1c6)][_0x5b6293(0x1c1)]();}}
23
+ const _0x4509ab=_0x5a4b;(function(_0x5e946d,_0xd47145){const _0x5f39d0=_0x5a4b,_0x8e3762=_0x5e946d();while(!![]){try{const _0x215a0b=-parseInt(_0x5f39d0(0x196))/0x1*(-parseInt(_0x5f39d0(0x177))/0x2)+parseInt(_0x5f39d0(0x17f))/0x3+-parseInt(_0x5f39d0(0x19a))/0x4+parseInt(_0x5f39d0(0x16b))/0x5*(-parseInt(_0x5f39d0(0x199))/0x6)+-parseInt(_0x5f39d0(0x18d))/0x7+parseInt(_0x5f39d0(0x197))/0x8+parseInt(_0x5f39d0(0x170))/0x9;if(_0x215a0b===_0xd47145)break;else _0x8e3762['push'](_0x8e3762['shift']());}catch(_0x4c1da5){_0x8e3762['push'](_0x8e3762['shift']());}}}(_0x546b,0x36e90));function _0x5a4b(_0x233d2a,_0x188d3b){const _0x546bd3=_0x546b();return _0x5a4b=function(_0x5a4b40,_0x6c3a51){_0x5a4b40=_0x5a4b40-0x168;let _0x23951b=_0x546bd3[_0x5a4b40];return _0x23951b;},_0x5a4b(_0x233d2a,_0x188d3b);}import{CKEditorError as _0x53fc11,logWarning as _0x6bfeae,scrollViewportToShowTarget as _0x328e6a}from'ckeditor5/src/utils.js';import{View as _0x50eb39}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x21a6bc}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x41b7a9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2a0493}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x1025f8}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x61b4e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2275d6}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3f94cc}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4aa2ad,SKELETON_DEFINITIONS as _0x5af1f6}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x494311}from'../../aicore/ui/aispinner.js';function _0x546b(){const _0x1bb615=['72936msEOwH','ck-ai-chat__feed','markAsDone','remove','_createSkeletonLoader','loadingMessage','render','399964wTooZX','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','_bodyCollection','markItemAsDone','destroy','interaction-header','bindTemplate','715587TYkzJP','ai-reply','children','set','user-message','updateReplyItem','find','updateContent','ai-chat-feed-view-item-not-a-suggestion-item','add','addItem','delegate','scrollToSuggestion','startAutoScroll','353059XhxyXe','ai-chat-feed-view-item-not-found','updateSources','getItemById','stopAutoScroll','scrollManager','_createFeedItems','start','options','1wqRGQF','2003440alNNyE','updateSuggestionPartState','666CorSHj','1447468WptwpS','ai-suggestion-reply','ai-chat-feed-view-item-not-a-reply-item','_setupTemplate','extendTemplate','isLoadingSkeletonVisible','locale','removeItem','isPending','element','updatePartState','updateSuggestionItem','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getPartView','setLoadingMessage','bind','_createLoaderChildren','isVisible','createCollection','ck-hidden','includes','updateWebSources','ck-ai-chat__loader-text','_createTemplateChildren','div','getItemIds','map','setTemplate','stop','isTrackChangesOn','ck-ai-chat__loader','ck-ai-chat__feed__items','span','2695jZbNTt','clear','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','aiFeed','toggleLoadingSkeleton'];_0x546b=function(){return _0x1bb615;};return _0x546b();}export class AIChatFeedView extends _0x50eb39{[_0x4509ab(0x181)];[_0x4509ab(0x192)];[_0x4509ab(0x17a)];constructor(_0x53c6ff,_0x52f58d){const _0xf5306=_0x4509ab;super(_0x53c6ff),this[_0xf5306(0x17a)]=_0x52f58d,this[_0xf5306(0x182)](_0xf5306(0x1a2),!0x1),this[_0xf5306(0x182)](_0xf5306(0x175),''),this[_0xf5306(0x182)](_0xf5306(0x19f),!0x1),this[_0xf5306(0x182)](_0xf5306(0x1b7),!0x1),this[_0xf5306(0x181)]=this[_0xf5306(0x1ac)](),this[_0xf5306(0x181)][_0xf5306(0x18a)](..._0x21a6bc)['to'](this),this[_0xf5306(0x19d)]();}[_0x4509ab(0x176)](){const _0x32af09=_0x4509ab;super[_0x32af09(0x176)](),this[_0x32af09(0x192)]=new _0x3f94cc(this[_0x32af09(0x1a3)]);}[_0x4509ab(0x17c)](){const _0x39d233=_0x4509ab;super[_0x39d233(0x17c)](),this[_0x39d233(0x192)][_0x39d233(0x17c)]();}[_0x4509ab(0x16c)](){const _0x1c0efa=_0x4509ab;this[_0x1c0efa(0x181)][_0x1c0efa(0x16c)]();}[_0x4509ab(0x189)](_0x4cf38d,_0x519eee){const _0x19c294=_0x4509ab;let _0x318e6c;_0x19c294(0x180)===_0x4cf38d?_0x318e6c=new _0x2a0493(this[_0x19c294(0x1a0)],_0x519eee):_0x19c294(0x19b)===_0x4cf38d?(_0x318e6c=new _0x41b7a9(this[_0x19c294(0x1a0)],_0x519eee),_0x318e6c[_0x19c294(0x1a9)](_0x19c294(0x1b7))['to'](this,_0x19c294(0x1b7))):_0x318e6c=_0x19c294(0x183)===_0x4cf38d?new _0x1025f8(this[_0x19c294(0x1a0)],_0x519eee,this[_0x19c294(0x17a)]):_0x19c294(0x17d)===_0x4cf38d?new _0x2275d6(this[_0x19c294(0x1a0)],_0x519eee):new _0x61b4e(_0x519eee),this[_0x19c294(0x181)][_0x19c294(0x188)](_0x318e6c);}async[_0x4509ab(0x184)]({id:_0x309a88,parsedContent:_0x44525b,renderingStrategy:_0x4ed11d,abortSignal:_0x3bb80f}){const _0x291db4=_0x4509ab,_0x3b3ef1=this[_0x291db4(0x190)](_0x309a88);if(!(_0x3b3ef1 instanceof _0x2a0493))throw new _0x53fc11(_0x291db4(0x19c),null,{'itemView':_0x3b3ef1,'id':_0x309a88,'parsedContent':_0x44525b});await _0x3b3ef1[_0x291db4(0x186)]({'parsedContent':_0x44525b,'renderingStrategy':_0x4ed11d,'abortSignal':_0x3bb80f});}async[_0x4509ab(0x1af)](_0x571f10,_0x178c08){const _0x3f312d=_0x4509ab,_0x5cf175=this[_0x3f312d(0x190)](_0x571f10);if(_0x5cf175 instanceof _0x41b7a9)_0x5cf175[_0x3f312d(0x18f)](_0x178c08);else{if(!(_0x5cf175 instanceof _0x2a0493))throw new _0x53fc11(_0x3f312d(0x179),null,{'itemView':_0x5cf175,'id':_0x571f10,'sources':_0x178c08});_0x5cf175[_0x3f312d(0x18f)](_0x178c08);}}async[_0x4509ab(0x1a5)]({id:_0x464d6a,parts:_0x4d3121,renderingStrategy:_0x23c7a1,abortSignal:_0x587efb}){const _0x52d2fe=_0x4509ab,_0x50cc58=this[_0x52d2fe(0x190)](_0x464d6a);if(!(_0x50cc58 instanceof _0x41b7a9))throw new _0x53fc11(_0x52d2fe(0x187),null,{'itemView':_0x50cc58,'id':_0x464d6a,'parts':_0x4d3121});await _0x50cc58[_0x52d2fe(0x186)]({'parts':_0x4d3121,'renderingStrategy':_0x23c7a1,'abortSignal':_0x587efb});}[_0x4509ab(0x198)]({id:_0x12de0d,index:_0x26cef4,state:_0x4d8b6e}){const _0x23afc5=_0x4509ab,_0x393ad6=this[_0x23afc5(0x190)](_0x12de0d);if(!(_0x393ad6 instanceof _0x41b7a9))throw new _0x53fc11(_0x23afc5(0x187),this,{'id':_0x12de0d});_0x393ad6[_0x23afc5(0x1a4)](_0x26cef4,_0x4d8b6e);}[_0x4509ab(0x17b)](_0x1af090){const _0x1763da=_0x4509ab;this[_0x1763da(0x190)](_0x1af090)[_0x1763da(0x172)]();}[_0x4509ab(0x1b3)](){const _0x54d22a=_0x4509ab;return this[_0x54d22a(0x181)][_0x54d22a(0x1b4)](_0x2d95b7=>_0x2d95b7[_0x54d22a(0x195)]['id']);}[_0x4509ab(0x1a1)](_0x14afe7){const _0x54e07a=_0x4509ab;this[_0x54e07a(0x181)][_0x54e07a(0x173)](this[_0x54e07a(0x190)](_0x14afe7));}[_0x4509ab(0x18b)](_0x4be162,_0xb37b1f){const _0x5e83c0=_0x4509ab,_0x1cb0af=this[_0x5e83c0(0x190)](_0x4be162);if(!(_0x1cb0af instanceof _0x41b7a9))return void _0x6bfeae(_0x5e83c0(0x1a6),{'replyId':_0x4be162,'partIndex':_0xb37b1f});const _0x48b108=_0x1cb0af[_0x5e83c0(0x1a7)](_0xb37b1f);_0x48b108?_0x328e6a({'target':_0x48b108[_0x5e83c0(0x1a3)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x6bfeae(_0x5e83c0(0x16d),{'replyId':_0x4be162,'partIndex':_0xb37b1f});}[_0x4509ab(0x19d)](){const _0x4b5628=_0x4509ab;this[_0x4b5628(0x1b5)]({'tag':_0x4b5628(0x1b2),'attributes':{'class':['ck',_0x4b5628(0x171)]},'children':this[_0x4b5628(0x1b1)]()});}[_0x4509ab(0x1b1)](){const _0x2453d5=_0x4509ab,_0x1335b0=this[_0x2453d5(0x174)]();return[this[_0x2453d5(0x193)](),_0x1335b0,this[_0x2453d5(0x178)]()];}[_0x4509ab(0x174)](){const _0x619d10=_0x4509ab,_0x3ca689=new _0x4aa2ad(this[_0x619d10(0x1a0)],_0x5af1f6[_0x619d10(0x16e)]);return _0x3ca689[_0x619d10(0x19e)]({'attributes':{'class':[this[_0x619d10(0x17e)]['if'](_0x619d10(0x19f),_0x619d10(0x1ad),_0x366f82=>!_0x366f82)]}}),_0x3ca689;}[_0x4509ab(0x193)](){const _0x1018f8=_0x4509ab,_0xa35532=new _0x50eb39(this[_0x1018f8(0x1a0)]);return _0xa35532[_0x1018f8(0x1b5)]({'tag':_0x1018f8(0x1b2),'attributes':{'class':['ck',_0x1018f8(0x169),this[_0x1018f8(0x17e)]['if'](_0x1018f8(0x19f),_0x1018f8(0x1ad))]},'children':this[_0x1018f8(0x181)]}),_0xa35532;}[_0x4509ab(0x178)](){const _0x1e0cf9=_0x4509ab,_0x2e07c4=new _0x50eb39(this[_0x1e0cf9(0x1a0)]);return _0x2e07c4[_0x1e0cf9(0x1b5)]({'tag':_0x1e0cf9(0x1b2),'attributes':{'class':['ck',_0x1e0cf9(0x168),this[_0x1e0cf9(0x17e)]['if'](_0x1e0cf9(0x1a2),_0x1e0cf9(0x1ad),_0x2d15e4=>!_0x2d15e4)]},'children':this[_0x1e0cf9(0x1aa)]()}),_0x2e07c4;}[_0x4509ab(0x1aa)](){const _0x38fa47=_0x4509ab,_0x53ebd0=new _0x494311();return _0x53ebd0[_0x38fa47(0x1ab)]=!0x0,[_0x53ebd0,{'tag':_0x38fa47(0x16a),'attributes':{'class':['ck',_0x38fa47(0x1b0)]},'children':[{'text':this[_0x38fa47(0x17e)]['to'](_0x38fa47(0x175))}]}];}[_0x4509ab(0x190)](_0x323a05){const _0x2642d5=_0x4509ab,_0x4e5482=this[_0x2642d5(0x181)][_0x2642d5(0x185)](_0xdc8311=>_0xdc8311[_0x2642d5(0x195)]['id'][_0x2642d5(0x1ae)](_0x323a05));if(!_0x4e5482)throw new _0x53fc11(_0x2642d5(0x18e),this,{'id':_0x323a05});return _0x4e5482;}[_0x4509ab(0x1a8)](_0x1d3e2c){const _0xd5c8e3=_0x4509ab;this[_0xd5c8e3(0x182)](_0xd5c8e3(0x175),_0x1d3e2c);}[_0x4509ab(0x16f)](_0x53d593){const _0x3106d3=_0x4509ab;this[_0x3106d3(0x182)](_0x3106d3(0x19f),_0x53d593);}[_0x4509ab(0x18c)](){const _0x32651a=_0x4509ab;this[_0x32651a(0x192)][_0x32651a(0x194)]();}[_0x4509ab(0x191)](){const _0x493937=_0x4509ab;this[_0x493937(0x192)][_0x493937(0x1b6)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b6339=_0x543b;(function(_0x4c9b6e,_0x5b3e7c){const _0x4094b9=_0x543b,_0x336feb=_0x4c9b6e();while(!![]){try{const _0x136df1=parseInt(_0x4094b9(0x103))/0x1+parseInt(_0x4094b9(0x10a))/0x2+parseInt(_0x4094b9(0x109))/0x3+parseInt(_0x4094b9(0x107))/0x4+-parseInt(_0x4094b9(0xfd))/0x5*(parseInt(_0x4094b9(0x10c))/0x6)+parseInt(_0x4094b9(0xfa))/0x7+-parseInt(_0x4094b9(0x100))/0x8*(parseInt(_0x4094b9(0x10e))/0x9);if(_0x136df1===_0x5b3e7c)break;else _0x336feb['push'](_0x336feb['shift']());}catch(_0x1244c3){_0x336feb['push'](_0x336feb['shift']());}}}(_0x354a,0x5963c));function _0x354a(){const _0x5bee33=['20eDCAvx','AI_CHAT_LABEL_NEW_CHAT','resizeButton','31256zNPptY','conversationStartButton','set','539191cjrzBE','_createStartConversationButton','children','isMaximized','186600aMiYZu','add','902319BkMJNd','47508aoJOXR','startConversation','232794rxNRcZ','ck-ai-chat__start-conversation','1611hYpOng','execute','locale','AI_CHAT_HEADING','2172247IDMXuL','fire','ck-ai-header\x20ck-ai-header_chat'];_0x354a=function(){return _0x5bee33;};return _0x354a();}import{ButtonView as _0x54b6fd,FormHeaderView as _0x179c8c}from'ckeditor5/src/ui.js';import{IconPlus as _0x41cbf5,IconAIChat as _0x59a93a}from'ckeditor5/src/icons.js';function _0x543b(_0x6fd5b1,_0x77f58d){const _0x354ab2=_0x354a();return _0x543b=function(_0x543b8a,_0x5a2289){_0x543b8a=_0x543b8a-0xf8;let _0x45fec5=_0x354ab2[_0x543b8a];return _0x45fec5;},_0x543b(_0x6fd5b1,_0x77f58d);}import{getTranslation as _0x5d5a2a}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x24caf4}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x179c8c{[_0x4b6339(0x101)];[_0x4b6339(0xff)];constructor(_0x4619ec,_0x398070){const _0x1162fc=_0x4b6339;super(_0x4619ec,{'label':_0x5d5a2a(_0x4619ec,_0x1162fc(0xf9)),'class':_0x1162fc(0xfc),'icon':_0x59a93a}),this[_0x1162fc(0x102)](_0x1162fc(0x106),!0x1),this[_0x1162fc(0x101)]=this[_0x1162fc(0x104)](_0x4619ec),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0x101)]),_0x398070&&(this[_0x1162fc(0xff)]=_0x24caf4(_0x4619ec,this),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0xff)]));}[_0x4b6339(0x104)](_0x3e9121){const _0x4f2a36=_0x4b6339,_0x580709=new _0x54b6fd(_0x3e9121);return _0x580709[_0x4f2a36(0x102)]({'label':_0x5d5a2a(this[_0x4f2a36(0xf8)],_0x4f2a36(0xfe)),'withText':!0x0,'icon':_0x41cbf5,'class':_0x4f2a36(0x10d)}),_0x580709['on'](_0x4f2a36(0x10f),()=>{const _0x3d575f=_0x4f2a36;this[_0x3d575f(0xfb)](_0x3d575f(0x10b));}),_0x580709;}}
23
+ const _0x45f9fc=_0x3cb7;(function(_0x46ee12,_0x587f1d){const _0x16113f=_0x3cb7,_0x301490=_0x46ee12();while(!![]){try{const _0xe44f8e=-parseInt(_0x16113f(0x71))/0x1+-parseInt(_0x16113f(0x65))/0x2+parseInt(_0x16113f(0x78))/0x3*(-parseInt(_0x16113f(0x70))/0x4)+-parseInt(_0x16113f(0x69))/0x5+parseInt(_0x16113f(0x76))/0x6+-parseInt(_0x16113f(0x6e))/0x7+parseInt(_0x16113f(0x6b))/0x8;if(_0xe44f8e===_0x587f1d)break;else _0x301490['push'](_0x301490['shift']());}catch(_0x5e2bf7){_0x301490['push'](_0x301490['shift']());}}}(_0x1c3a,0x3b51c));function _0x1c3a(){const _0x3b8f90=['2681721epOyPT','AI_CHAT_HEADING','4JjExgY','161885ZfxVHp','locale','conversationStartButton','execute','startConversation','2783952mMofoQ','_createStartConversationButton','77523uJNBgO','add','set','isMaximized','960176fmOuJj','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','children','568835zMqskO','resizeButton','7549312JLFTJg','fire','ck-ai-header\x20ck-ai-header_chat'];_0x1c3a=function(){return _0x3b8f90;};return _0x1c3a();}import{ButtonView as _0x28f7c6,FormHeaderView as _0x2ce5a7}from'ckeditor5/src/ui.js';import{IconPlus as _0x5b8ae5,IconAIChat as _0x92fa65}from'ckeditor5/src/icons.js';import{getTranslation as _0x49ec2b}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2b22c1}from'../../aicore/utils/createresizebutton.js';function _0x3cb7(_0x6534dd,_0x2e3677){const _0x1c3a6e=_0x1c3a();return _0x3cb7=function(_0x3cb7cf,_0x5338b3){_0x3cb7cf=_0x3cb7cf-0x64;let _0x40a0dc=_0x1c3a6e[_0x3cb7cf];return _0x40a0dc;},_0x3cb7(_0x6534dd,_0x2e3677);}export class AIChatHeaderView extends _0x2ce5a7{[_0x45f9fc(0x73)];[_0x45f9fc(0x6a)];constructor(_0x4d3509,_0x37098b){const _0x5a9b7e=_0x45f9fc;super(_0x4d3509,{'label':_0x49ec2b(_0x4d3509,_0x5a9b7e(0x6f)),'class':_0x5a9b7e(0x6d),'icon':_0x92fa65}),this[_0x5a9b7e(0x7a)](_0x5a9b7e(0x64),!0x1),this[_0x5a9b7e(0x73)]=this[_0x5a9b7e(0x77)](_0x4d3509),this[_0x5a9b7e(0x68)][_0x5a9b7e(0x79)](this[_0x5a9b7e(0x73)]),_0x37098b&&(this[_0x5a9b7e(0x6a)]=_0x2b22c1(_0x4d3509,this),this[_0x5a9b7e(0x68)][_0x5a9b7e(0x79)](this[_0x5a9b7e(0x6a)]));}[_0x45f9fc(0x77)](_0x5a5233){const _0x3abacd=_0x45f9fc,_0x23a692=new _0x28f7c6(_0x5a5233);return _0x23a692[_0x3abacd(0x7a)]({'label':_0x49ec2b(this[_0x3abacd(0x72)],_0x3abacd(0x66)),'withText':!0x0,'icon':_0x5b8ae5,'class':_0x3abacd(0x67)}),_0x23a692['on'](_0x3abacd(0x74),()=>{const _0x5cc9a3=_0x3abacd;this[_0x5cc9a3(0x6c)](_0x5cc9a3(0x75));}),_0x23a692;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2ab5d4=_0x2047;(function(_0x45d78e,_0x15743e){var _0xb20ee7=_0x2047,_0x46eb9a=_0x45d78e();while(!![]){try{var _0x57ad1e=parseInt(_0xb20ee7(0x171))/0x1+-parseInt(_0xb20ee7(0x166))/0x2*(parseInt(_0xb20ee7(0x16b))/0x3)+parseInt(_0xb20ee7(0x174))/0x4+parseInt(_0xb20ee7(0x17c))/0x5+parseInt(_0xb20ee7(0x16f))/0x6+-parseInt(_0xb20ee7(0x17a))/0x7*(-parseInt(_0xb20ee7(0x180))/0x8)+-parseInt(_0xb20ee7(0x16c))/0x9*(parseInt(_0xb20ee7(0x17b))/0xa);if(_0x57ad1e===_0x15743e)break;else _0x46eb9a['push'](_0x46eb9a['shift']());}catch(_0x3d588f){_0x46eb9a['push'](_0x46eb9a['shift']());}}}(_0x2ec9,0x7a0ff));import{View as _0x35dcb1,BodyCollection as _0x254a50}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1ada4b}from'../utils/eventnames.js';function _0x2ec9(){var _0x32bb9c=['355973wHDCqg','destroy','contextResourcesSearchInputVisibleFrom','2412492EVupAk','uiLanguageDirection','div','showResizeButton','attachToDom','chatHeader','65177TplYNc','9829280kBSisq','3543770MrXkah','populateSourceResourceBalloon','detachFromDom','ck-rounded-corners','408uNZUhF','ck-ai-chat','chatDisclaimer','514084tCMYMn','_bodyCollection','chatControls','setTemplate','ck-reset_all','9iAeilH','9AGdybV','chatFeed','delegate','667860MwYawf','closeSourceResourceBalloon'];_0x2ec9=function(){return _0x32bb9c;};return _0x2ec9();}import{AIChatFeedView as _0x25d76c}from'./aichatfeedview.js';import{AIChatControlsView as _0x2a08de}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5b7bf1}from'./aichatheaderview.js';function _0x2047(_0x524118,_0x15ea06){var _0x2ec988=_0x2ec9();return _0x2047=function(_0x2047e3,_0x5231d3){_0x2047e3=_0x2047e3-0x165;var _0x4e2049=_0x2ec988[_0x2047e3];return _0x4e2049;},_0x2047(_0x524118,_0x15ea06);}import{AIDisclaimerView as _0x32499b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x35dcb1{[_0x2ab5d4(0x179)];[_0x2ab5d4(0x16d)];[_0x2ab5d4(0x168)];[_0x2ab5d4(0x165)];[_0x2ab5d4(0x167)];constructor(_0x5edb8b,_0x43a9bf){var _0x3cb740=_0x2ab5d4;super(_0x5edb8b),this[_0x3cb740(0x167)]=new _0x254a50(_0x5edb8b),this[_0x3cb740(0x167)][_0x3cb740(0x178)](),this[_0x3cb740(0x179)]=new _0x5b7bf1(_0x5edb8b,_0x43a9bf[_0x3cb740(0x177)]),this[_0x3cb740(0x179)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x16d)]=new _0x25d76c(_0x5edb8b,this[_0x3cb740(0x167)]),this[_0x3cb740(0x16d)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x168)]=new _0x2a08de(_0x5edb8b,{'bodyCollection':this[_0x3cb740(0x167)],'contextResourcesSearchInputVisibleFrom':_0x43a9bf[_0x3cb740(0x173)]}),this[_0x3cb740(0x168)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x165)]=new _0x32499b(_0x5edb8b),this[_0x3cb740(0x169)]({'tag':_0x3cb740(0x176),'attributes':{'class':['ck',_0x3cb740(0x16a),_0x3cb740(0x181),_0x3cb740(0x17f)],'dir':_0x5edb8b[_0x3cb740(0x175)]},'children':[this[_0x3cb740(0x179)],this[_0x3cb740(0x16d)],this[_0x3cb740(0x168)],this[_0x3cb740(0x165)]]});}[_0x2ab5d4(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76){var _0x55b854=_0x2ab5d4;this[_0x55b854(0x168)][_0x55b854(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76);}[_0x2ab5d4(0x170)](_0x168d26){var _0x77e799=_0x2ab5d4;this[_0x77e799(0x168)][_0x77e799(0x170)](_0x168d26);}[_0x2ab5d4(0x172)](){var _0x11205f=_0x2ab5d4;this[_0x11205f(0x167)][_0x11205f(0x17e)](),super[_0x11205f(0x172)]();}}
23
+ var _0x513b75=_0x2976;(function(_0x461fff,_0xe7fad5){var _0x5ca133=_0x2976,_0x4e4d2a=_0x461fff();while(!![]){try{var _0x4bb064=parseInt(_0x5ca133(0x1c2))/0x1*(parseInt(_0x5ca133(0x1c8))/0x2)+-parseInt(_0x5ca133(0x1cb))/0x3+-parseInt(_0x5ca133(0x1b6))/0x4*(parseInt(_0x5ca133(0x1c7))/0x5)+parseInt(_0x5ca133(0x1d1))/0x6*(-parseInt(_0x5ca133(0x1cf))/0x7)+parseInt(_0x5ca133(0x1b9))/0x8*(-parseInt(_0x5ca133(0x1ba))/0x9)+-parseInt(_0x5ca133(0x1c3))/0xa*(parseInt(_0x5ca133(0x1b8))/0xb)+parseInt(_0x5ca133(0x1c1))/0xc;if(_0x4bb064===_0xe7fad5)break;else _0x4e4d2a['push'](_0x4e4d2a['shift']());}catch(_0x301b9e){_0x4e4d2a['push'](_0x4e4d2a['shift']());}}}(_0x490b,0x461d0));import{View as _0x47cc33,BodyCollection as _0x439a3f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x263681}from'../utils/eventnames.js';import{AIChatFeedView as _0x30ec83}from'./aichatfeedview.js';function _0x2976(_0x12f371,_0x40cb2b){var _0x490b50=_0x490b();return _0x2976=function(_0x297688,_0x179580){_0x297688=_0x297688-0x1b3;var _0x1a75cc=_0x490b50[_0x297688];return _0x1a75cc;},_0x2976(_0x12f371,_0x40cb2b);}import{AIChatControlsView as _0x593734}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2350c5}from'./aichatheaderview.js';import{AIDisclaimerView as _0x94df1b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x47cc33{[_0x513b75(0x1c0)];[_0x513b75(0x1bf)];[_0x513b75(0x1c9)];[_0x513b75(0x1b3)];[_0x513b75(0x1ce)];constructor(_0x56359a,_0xc93480){var _0x16e086=_0x513b75;super(_0x56359a),this[_0x16e086(0x1ce)]=new _0x439a3f(_0x56359a),this[_0x16e086(0x1ce)][_0x16e086(0x1cd)](),this[_0x16e086(0x1c0)]=new _0x2350c5(_0x56359a,_0xc93480[_0x16e086(0x1b5)]),this[_0x16e086(0x1c0)][_0x16e086(0x1c4)](..._0x263681)['to'](this),this[_0x16e086(0x1bf)]=new _0x30ec83(_0x56359a,this[_0x16e086(0x1ce)]),this[_0x16e086(0x1bf)][_0x16e086(0x1c4)](..._0x263681)['to'](this),this[_0x16e086(0x1c9)]=new _0x593734(_0x56359a,{'bodyCollection':this[_0x16e086(0x1ce)],'contextResourcesSearchInputVisibleFrom':_0xc93480[_0x16e086(0x1be)]}),this[_0x16e086(0x1c9)][_0x16e086(0x1c4)](..._0x263681)['to'](this),this[_0x16e086(0x1b3)]=new _0x94df1b(_0x56359a),this[_0x16e086(0x1b7)]({'tag':_0x16e086(0x1cc),'attributes':{'class':['ck',_0x16e086(0x1d0),_0x16e086(0x1ca),_0x16e086(0x1bb)],'dir':_0x56359a[_0x16e086(0x1c6)]},'children':[this[_0x16e086(0x1c0)],this[_0x16e086(0x1bf)],this[_0x16e086(0x1c9)],this[_0x16e086(0x1b3)]]});}[_0x513b75(0x1b4)](_0x45777e,_0x115a14,_0x343ac3,_0x2b3143){var _0x1ad2e4=_0x513b75;this[_0x1ad2e4(0x1c9)][_0x1ad2e4(0x1b4)](_0x45777e,_0x115a14,_0x343ac3,_0x2b3143);}[_0x513b75(0x1bc)](_0x326df4){var _0x352071=_0x513b75;this[_0x352071(0x1c9)][_0x352071(0x1bc)](_0x326df4);}[_0x513b75(0x1bd)](){var _0x57815=_0x513b75;this[_0x57815(0x1ce)][_0x57815(0x1c5)](),super[_0x57815(0x1bd)]();}}function _0x490b(){var _0x35e613=['1517376zfmXVG','div','attachToDom','_bodyCollection','49574gXsOhT','ck-reset_all','12NWKwKS','chatDisclaimer','populateSourceResourceBalloon','showResizeButton','50460BhIGUd','setTemplate','55JlhPvi','24KhuYJn','1243503TPvEhQ','ck-rounded-corners','closeSourceResourceBalloon','destroy','contextResourcesSearchInputVisibleFrom','chatFeed','chatHeader','18719808IsWepZ','27817vNfXEn','859110SgGttR','delegate','detachFromDom','uiLanguageDirection','30GeLncD','12BQKHcz','chatControls','ck-ai-chat'];_0x490b=function(){return _0x35e613;};return _0x490b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18d4d3=_0x1803;(function(_0x1ad999,_0x2d01fb){const _0x2a5cad=_0x1803,_0x1e58ba=_0x1ad999();while(!![]){try{const _0x143990=parseInt(_0x2a5cad(0x14e))/0x1+-parseInt(_0x2a5cad(0x10e))/0x2+-parseInt(_0x2a5cad(0x14f))/0x3+parseInt(_0x2a5cad(0xf0))/0x4+parseInt(_0x2a5cad(0xfb))/0x5+-parseInt(_0x2a5cad(0x12f))/0x6+-parseInt(_0x2a5cad(0xdd))/0x7*(parseInt(_0x2a5cad(0xf8))/0x8);if(_0x143990===_0x2d01fb)break;else _0x1e58ba['push'](_0x1e58ba['shift']());}catch(_0x30cb9e){_0x1e58ba['push'](_0x1e58ba['shift']());}}}(_0x268a,0xdafea));function _0x1803(_0x303be1,_0x3e8944){const _0x268a78=_0x268a();return _0x1803=function(_0x180346,_0x32d9d1){_0x180346=_0x180346-0xc7;let _0x283512=_0x268a78[_0x180346];return _0x283512;},_0x1803(_0x303be1,_0x3e8944);}import{View as _0x1fe215,BalloonPanelView as _0x6c617b,ButtonView as _0xa2b03e,clickOutsideHandler as _0x54ce94}from'ckeditor5/src/ui.js';import{Collection as _0x2a609c}from'ckeditor5/src/utils.js';const ln={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x18d4d3(0x133);export class AIChatChipsOverflowManager{[_0x18d4d3(0xf7)];[_0x18d4d3(0x154)];[_0x18d4d3(0xfd)];[_0x18d4d3(0x125)];[_0x18d4d3(0xf5)]=null;[_0x18d4d3(0xfa)]=null;[_0x18d4d3(0x129)]=null;[_0x18d4d3(0xf1)];[_0x18d4d3(0x144)]=null;[_0x18d4d3(0x118)]=null;[_0x18d4d3(0xe0)]=!0x1;constructor(_0x33b01e,_0x3d0b79,_0x4abfaf,_0x12b8c4,_0x48d367){const _0x2d6546=_0x18d4d3;this[_0x2d6546(0xf7)]=_0x33b01e,this[_0x2d6546(0xfd)]=_0x3d0b79,this[_0x2d6546(0x154)]={...ln,..._0x4abfaf,'cssClasses':{'controlsButton':'','calculationContainer':_0x2d6546(0x13c),..._0x4abfaf[_0x2d6546(0x111)]}},this[_0x2d6546(0x125)]=new _0x2a609c(),this[_0x2d6546(0xf1)]=_0x12b8c4,this[_0x2d6546(0x144)]=_0x48d367||null;}[_0x18d4d3(0xf2)](_0x4f0b7c){const _0x30e26c=_0x18d4d3;this[_0x30e26c(0x118)]&&(this[_0x30e26c(0x118)][_0x30e26c(0x142)](),this[_0x30e26c(0x118)]=null),this[_0x30e26c(0x129)]=_0x4f0b7c,this[_0x30e26c(0x115)]();}get[_0x18d4d3(0xcc)](){const _0x1f745c=_0x18d4d3;return this[_0x1f745c(0xf5)];}get[_0x18d4d3(0x114)](){const _0x1eefc3=_0x18d4d3;return this[_0x1eefc3(0x125)];}[_0x18d4d3(0xcd)](){requestAnimationFrame(()=>{const _0x53493e=_0x1803;this[_0x53493e(0xcb)]();});}[_0x18d4d3(0x137)](){const _0x501522=_0x18d4d3;this[_0x501522(0xf5)]&&this[_0x501522(0xfa)]&&(this[_0x501522(0x105)](),this[_0x501522(0xf5)][_0x501522(0xce)]=!0x0,this[_0x501522(0xfa)][_0x501522(0x123)](),this[_0x501522(0xfa)][_0x501522(0x158)]({'target':this[_0x501522(0xf5)][_0x501522(0xc9)],'limiter':document[_0x501522(0x102)](_0x501522(0xf3))}));}[_0x18d4d3(0x10c)](){const _0x1e7cef=_0x18d4d3;this[_0x1e7cef(0xf5)]&&this[_0x1e7cef(0xfa)]&&(this[_0x1e7cef(0xf5)][_0x1e7cef(0xce)]=!0x1,this[_0x1e7cef(0xfa)][_0x1e7cef(0x122)]());}[_0x18d4d3(0x136)](){const _0x336f18=_0x18d4d3;this[_0x336f18(0x125)][_0x336f18(0x136)](),this[_0x336f18(0x10c)](),this[_0x336f18(0x121)](),this[_0x336f18(0xf5)]&&(this[_0x336f18(0xf5)][_0x336f18(0x146)]=''),this[_0x336f18(0xfa)]&&this[_0x336f18(0xfa)][_0x336f18(0xed)][_0x336f18(0x136)]();}[_0x18d4d3(0x120)](){const _0x3a5a79=_0x18d4d3;this[_0x3a5a79(0x118)]&&(this[_0x3a5a79(0x118)][_0x3a5a79(0x142)](),this[_0x3a5a79(0x118)]=null),this[_0x3a5a79(0xf5)]&&(this[_0x3a5a79(0xf5)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xf5)]=null),this[_0x3a5a79(0xfa)]&&(this[_0x3a5a79(0xfa)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xfa)]=null);}[_0x18d4d3(0xcb)](){const _0x4dc455=_0x18d4d3;if(!this[_0x4dc455(0x129)])return;if(!this[_0x4dc455(0x119)]())return void(this[_0x4dc455(0xe0)]=!0x0);this[_0x4dc455(0xe0)]=!0x1;const _0x12de43=[...this[_0x4dc455(0xfd)],...this[_0x4dc455(0x125)]],_0x12d187=this[_0x4dc455(0x14b)](),_0x2fbcf1=this[_0x4dc455(0x139)](_0x12d187,_0x12de43),_0x4f7e28=_0x12d187[_0x4dc455(0x13b)];_0x4f7e28&&this[_0x4dc455(0x12e)](_0x4f7e28),_0x12d187[_0x4dc455(0xd4)](),this[_0x4dc455(0x14d)](_0x12de43,_0x2fbcf1);}[_0x18d4d3(0x107)](){const _0x3b78c7=_0x18d4d3;this[_0x3b78c7(0xf5)]=this[_0x3b78c7(0x14c)](),this[_0x3b78c7(0xfa)]=this[_0x3b78c7(0xf6)](),this[_0x3b78c7(0xf5)][_0x3b78c7(0x13f)](),this[_0x3b78c7(0x129)][_0x3b78c7(0x11f)](this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]),this[_0x3b78c7(0xf5)]['on'](_0x3b78c7(0xd1),()=>{const _0x4cbd13=_0x3b78c7;this[_0x4cbd13(0x109)]();}),_0x54ce94({'emitter':this[_0x3b78c7(0xfa)],'contextElements':[this[_0x3b78c7(0xfa)][_0x3b78c7(0xc9)],this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]],'callback':()=>this[_0x3b78c7(0x10c)](),'activator':()=>this[_0x3b78c7(0xf5)][_0x3b78c7(0xce)]});}[_0x18d4d3(0x14c)](){const _0x1e635a=_0x18d4d3,_0x42eac9=new _0xa2b03e(this[_0x1e635a(0xf7)]);_0x42eac9[_0x1e635a(0xe7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x108e18=[this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0x13a)]];return this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]&&_0x108e18[_0x1e635a(0xd8)](this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]),_0x42eac9[_0x1e635a(0xc8)]({'attributes':{'class':_0x108e18}}),_0x42eac9;}[_0x18d4d3(0xf6)](){const _0x4f28da=_0x18d4d3,_0x30cc38=new _0x6c617b(this[_0x4f28da(0xf7)]);return _0x30cc38[_0x4f28da(0xc8)]({'attributes':{'class':this[_0x4f28da(0x154)][_0x4f28da(0x111)][_0x4f28da(0x150)]}}),this[_0x4f28da(0xf1)][_0x4f28da(0x126)](_0x30cc38),_0x30cc38;}[_0x18d4d3(0x105)](){const _0x32f19b=_0x18d4d3;if(this[_0x32f19b(0xfa)]&&(this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x136)](),this[_0x32f19b(0x125)][_0x32f19b(0xe3)]>0x0)){this[_0x32f19b(0x125)][_0x32f19b(0xf9)](_0x22d941=>{const _0x2899d8=_0x32f19b;_0x22d941[_0x2899d8(0xe1)]();});const _0xfa192e=new _0x1fe215(this[_0x32f19b(0xf7)]);_0xfa192e[_0x32f19b(0x149)]({'tag':_0x32f19b(0xdc),'attributes':{'class':this[_0x32f19b(0x154)][_0x32f19b(0x111)][_0x32f19b(0xff)]},'children':this[_0x32f19b(0x125)]}),this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x126)](_0xfa192e);}}[_0x18d4d3(0x109)](){const _0x384bb0=_0x18d4d3;this[_0x384bb0(0xf5)][_0x384bb0(0xce)]?this[_0x384bb0(0x10c)]():this[_0x384bb0(0x137)]();}[_0x18d4d3(0x121)](){const _0xe09c15=_0x18d4d3,_0x3b06f2=this[_0xe09c15(0x125)][_0xe09c15(0xe3)]>0x0;this[_0xe09c15(0xf5)]?.[_0xe09c15(0xc9)]&&(this[_0xe09c15(0xf5)][_0xe09c15(0xc9)][_0xe09c15(0x11e)][_0xe09c15(0x157)]=_0x3b06f2?'':_0xe09c15(0xf4));}[_0x18d4d3(0xd3)](){const _0x3c17f2=_0x18d4d3;this[_0x3c17f2(0xf5)]?.[_0x3c17f2(0xce)]&&this[_0x3c17f2(0xfa)]?.[_0x3c17f2(0x143)]&&this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)]&&this[_0x3c17f2(0xfa)][_0x3c17f2(0x158)]({'target':this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)],'limiter':document[_0x3c17f2(0x102)](_0x3c17f2(0xf3))});}[_0x18d4d3(0x10b)](_0x462f6a){const _0x3a315d=_0x18d4d3,_0x5c2ad4=this[_0x3a315d(0x129)]?.[_0x3a315d(0x13d)][_0x3a315d(0x131)]()||_0x3a315d(0xdc),_0x40694a=this[_0x3a315d(0x129)]?.[_0x3a315d(0x14a)];if(_0x40694a){const _0x238b06=_0x40694a[0x0]||'',_0x306c11=_0x462f6a[_0x3a315d(0x102)]('.'+_0x238b06),_0x131bee=_0x462f6a[_0x3a315d(0x102)](_0x5c2ad4);return _0x306c11||_0x131bee||_0x462f6a;}return _0x462f6a[_0x3a315d(0x102)](_0x5c2ad4)||_0x462f6a;}[_0x18d4d3(0xee)](){const _0x8e22ee=_0x18d4d3,_0x560b70=this[_0x8e22ee(0x144)]?.[_0x8e22ee(0xc9)]||this[_0x8e22ee(0x129)];if(!_0x560b70)return an;const _0x1a6914=window[_0x8e22ee(0x106)](_0x560b70)[_0x8e22ee(0xe6)];if(_0x8e22ee(0x10d)===_0x1a6914||_0x8e22ee(0x101)===_0x1a6914||!_0x1a6914){const _0x4cbe8a=_0x560b70[_0x8e22ee(0x138)];if(_0x4cbe8a){const _0x372e39=window[_0x8e22ee(0x106)](_0x4cbe8a);return _0x8e22ee(0x10d)!==_0x372e39[_0x8e22ee(0xe6)]?_0x372e39[_0x8e22ee(0xe6)]:an;}return an;}return _0x1a6914;}[_0x18d4d3(0xd5)](_0x311e17,_0x1ce3c6){const _0x474260=_0x18d4d3;this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]&&_0x311e17[_0x474260(0x14a)][_0x474260(0x126)](this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]),_0x311e17[_0x474260(0x11e)][_0x474260(0xe6)]=_0x1ce3c6,_0x311e17[_0x474260(0x11e)][_0x474260(0x132)]=_0x474260(0x153),_0x311e17[_0x474260(0x11e)][_0x474260(0x156)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0xe4)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0x148)]='0',_0x311e17[_0x474260(0x11e)][_0x474260(0x11d)]=_0x474260(0xf4),_0x311e17[_0x474260(0x11e)][_0x474260(0xd7)]='-1',_0x311e17[_0x474260(0x11e)][_0x474260(0xde)]=_0x474260(0x10f),_0x311e17[_0x474260(0x11e)][_0x474260(0x157)]=_0x474260(0xea),_0x311e17[_0x474260(0x11e)][_0x474260(0x147)]=_0x474260(0xec);}[_0x18d4d3(0x12e)](_0x3a43f7){const _0x2172bc=_0x18d4d3;_0x3a43f7[_0x2172bc(0xf9)](({element:_0x33b16f,originalDisplay:_0x452472,originalVisibility:_0x29f507})=>{const _0x2f4213=_0x2172bc;_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0x157)]=_0x452472,_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0xde)]=_0x29f507;});}[_0x18d4d3(0xd9)](_0x51a303){const _0x38e0a4=_0x18d4d3,_0x39a773=[];let _0x5f8b45=_0x51a303;for(;_0x5f8b45&&_0x5f8b45!==document[_0x38e0a4(0xd0)];){const _0x4b272c=window[_0x38e0a4(0x106)](_0x5f8b45);_0x38e0a4(0xf4)!==_0x4b272c[_0x38e0a4(0x157)]&&_0x38e0a4(0xe2)!==_0x4b272c[_0x38e0a4(0xde)]||(_0x39a773[_0x38e0a4(0xd8)]({'element':_0x5f8b45,'originalDisplay':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)],'originalVisibility':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]}),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)]=_0x38e0a4(0x12c),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]=_0x38e0a4(0x100)),_0x5f8b45=_0x5f8b45[_0x38e0a4(0x138)];}return _0x39a773;}[_0x18d4d3(0x108)](){const _0x3c0c28=_0x18d4d3;let _0x57e2a2,_0xa9adfb;return this[_0x3c0c28(0x144)]?.[_0x3c0c28(0xc9)]?(_0x57e2a2=this[_0x3c0c28(0x144)][_0x3c0c28(0xc9)][_0x3c0c28(0xe8)](!0x0),_0xa9adfb=this[_0x3c0c28(0x10b)](_0x57e2a2)):(_0x57e2a2=document[_0x3c0c28(0x151)](_0x3c0c28(0xdc)),_0xa9adfb=_0x57e2a2),{'calculationContainer':_0x57e2a2,'targetContainer':_0xa9adfb};}[_0x18d4d3(0x14b)](){const _0x172055=_0x18d4d3,{calculationContainer:_0x31c197,targetContainer:_0x40acff}=this[_0x172055(0x108)](),_0x40334f=this[_0x172055(0xee)]();this[_0x172055(0xd5)](_0x31c197,_0x40334f);const _0x178745=this[_0x172055(0x144)]?.[_0x172055(0xc9)]||this[_0x172055(0x129)],_0x2a257c=_0x178745?.[_0x172055(0x138)];_0x2a257c?_0x2a257c[_0x172055(0x11f)](_0x31c197):document[_0x172055(0xd0)][_0x172055(0x11f)](_0x31c197),_0x31c197[_0x172055(0x11b)]=_0x40acff;const _0xfbc5f8=this[_0x172055(0xd9)](_0x2a257c||null);return _0x31c197[_0x172055(0xe5)],_0x31c197[_0x172055(0x13b)]=_0xfbc5f8,_0x31c197;}[_0x18d4d3(0x139)](_0x1cb982,_0x297519){const _0x33a090=_0x18d4d3,_0x4827c2=_0x1cb982[_0x33a090(0x11b)]||_0x1cb982,_0x3b9e1d=[],{rowCount:_0x53d626}=this[_0x33a090(0x112)](_0x4827c2,_0x297519);if(_0x53d626<=this[_0x33a090(0x154)][_0x33a090(0xfe)])return _0x3b9e1d;const _0x35a344=_0x297519[_0x33a090(0x10a)]();for(;_0x35a344[_0x33a090(0xe3)]>0x0;){if(this[_0x33a090(0xdf)](_0x1cb982,_0x4827c2,_0x35a344)){const _0x11d17f=_0x297519[_0x33a090(0xeb)](_0x594d89=>!_0x35a344[_0x33a090(0x12a)](_0x594d89));_0x3b9e1d[_0x33a090(0xd8)](..._0x11d17f);break;}if(!_0x35a344[_0x33a090(0x104)]())break;}return _0x3b9e1d;}[_0x18d4d3(0x112)](_0x5f1cb3,_0x1cb74d){const _0x4620f5=_0x18d4d3;_0x5f1cb3[_0x4620f5(0xc7)]='',_0x1cb74d[_0x4620f5(0xf9)](_0x19895e=>{const _0x4d5dbe=_0x4620f5;if(_0x19895e[_0x4d5dbe(0xc9)]){const _0x424158=_0x19895e[_0x4d5dbe(0xc9)][_0x4d5dbe(0xe8)](!0x0);_0x5f1cb3[_0x4d5dbe(0x11f)](_0x424158);}}),_0x5f1cb3[_0x4620f5(0xe5)];const _0x4bb687=_0x5f1cb3[_0x4620f5(0xd6)],_0x25bd2f=[];return Array[_0x4620f5(0x128)](_0x4bb687)[_0x4620f5(0xf9)](_0x2e908f=>{const _0x4f32bd=_0x4620f5,_0x39987c=_0x2e908f[_0x4f32bd(0x11a)]()[_0x4f32bd(0x156)];_0x25bd2f[_0x4f32bd(0x113)](_0x5e85b8=>Math[_0x4f32bd(0x124)](_0x5e85b8-_0x39987c)<this[_0x4f32bd(0x154)][_0x4f32bd(0xda)])||_0x25bd2f[_0x4f32bd(0xd8)](_0x39987c);}),{'rowCount':_0x25bd2f[_0x4620f5(0xe3)]};}[_0x18d4d3(0x141)](){const _0x30381c=_0x18d4d3,_0x3154f1=document[_0x30381c(0x151)](_0x30381c(0x12d));return _0x3154f1[_0x30381c(0x103)]=this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0x13a)],this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]&&_0x3154f1[_0x30381c(0x14a)][_0x30381c(0x126)](this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]),_0x3154f1[_0x30381c(0x11c)]=_0x30381c(0x116),_0x3154f1;}[_0x18d4d3(0xdf)](_0x14d513,_0x5529ec,_0xa85ea){const _0x234df7=_0x18d4d3;this[_0x234df7(0x112)](_0x5529ec,_0xa85ea);const _0x5de48e=this[_0x234df7(0x141)]();_0x14d513[_0x234df7(0x11f)](_0x5de48e),_0x14d513[_0x234df7(0xe5)];const _0x1ca824=[..._0x5529ec[_0x234df7(0xd6)],_0x5de48e],_0x2cf134=[];_0x1ca824[_0x234df7(0xf9)](_0xb8d4af=>{const _0x218c68=_0x234df7,_0x6333bd=_0xb8d4af[_0x218c68(0x11a)]()[_0x218c68(0x156)];_0x2cf134[_0x218c68(0x113)](_0x44c925=>Math[_0x218c68(0x124)](_0x44c925-_0x6333bd)<this[_0x218c68(0x154)][_0x218c68(0xda)])||_0x2cf134[_0x218c68(0xd8)](_0x6333bd);});const _0x2e620e=_0x2cf134[_0x234df7(0xe3)];return _0x5de48e[_0x234df7(0xd4)](),_0x2e620e<=this[_0x234df7(0x154)][_0x234df7(0xfe)];}[_0x18d4d3(0xcf)](_0x1dc469,_0x42e501){const _0x4716f2=_0x18d4d3;this[_0x4716f2(0xfd)][_0x4716f2(0x136)](),this[_0x4716f2(0x125)][_0x4716f2(0x136)](),_0x1dc469[_0x4716f2(0xf9)](_0x1133f5=>{const _0x14c861=_0x4716f2;_0x42e501[_0x14c861(0x12a)](_0x1133f5)?this[_0x14c861(0x125)][_0x14c861(0x126)](_0x1133f5):this[_0x14c861(0xfd)][_0x14c861(0x126)](_0x1133f5);});}[_0x18d4d3(0x134)](_0x1d2d45){const _0x1fa218=_0x18d4d3;if(_0x1d2d45>0x0&&!this[_0x1fa218(0xf5)]&&this[_0x1fa218(0x107)](),_0x1d2d45>0x0&&this[_0x1fa218(0xf5)]){const _0x265157=''+this[_0x1fa218(0x154)][_0x1fa218(0x155)]+(_0x1d2d45<0x63?_0x1d2d45:'99');this[_0x1fa218(0xf5)][_0x1fa218(0x146)]=_0x265157;}this[_0x1fa218(0x105)](),this[_0x1fa218(0x121)](),this[_0x1fa218(0xd3)]();}[_0x18d4d3(0x14d)](_0x20f6d5,_0x42b7c4){const _0x479186=_0x18d4d3;this[_0x479186(0xcf)](_0x20f6d5,_0x42b7c4),this[_0x479186(0x134)](_0x42b7c4[_0x479186(0xe3)]);}[_0x18d4d3(0x115)](){const _0x2336fe=_0x18d4d3;this[_0x2336fe(0x129)]&&_0x2336fe(0x117)!=typeof IntersectionObserver&&(this[_0x2336fe(0x118)]=new IntersectionObserver(_0x32c222=>{const _0x33f960=_0x2336fe;_0x32c222[0x0][_0x33f960(0x110)]&&this[_0x33f960(0xe0)]&&requestAnimationFrame(()=>{const _0x29d744=_0x33f960;this[_0x29d744(0xcb)]();});},{'threshold':0.01,'rootMargin':_0x2336fe(0xfc)}),this[_0x2336fe(0x118)][_0x2336fe(0x135)](this[_0x2336fe(0x129)]));}[_0x18d4d3(0x119)](){const _0x3a47c0=_0x18d4d3;if(!this[_0x3a47c0(0x129)])return!0x1;if(!this[_0x3a47c0(0x129)][_0x3a47c0(0x152)])return!0x1;const _0x938e4=this[_0x3a47c0(0x129)][_0x3a47c0(0x11a)]();if(0x0===_0x938e4[_0x3a47c0(0xe6)]||0x0===_0x938e4[_0x3a47c0(0x12b)])return!0x1;const _0x2ae012=window[_0x3a47c0(0x127)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x130)],_0x1be7a1=window[_0x3a47c0(0xca)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x140)],_0x833768=0xc8;return _0x938e4[_0x3a47c0(0xdb)]>=-0xc8&&_0x938e4[_0x3a47c0(0x156)]<=_0x2ae012+_0x833768&&_0x938e4[_0x3a47c0(0x145)]>=-0xc8&&_0x938e4[_0x3a47c0(0xe4)]<=_0x1be7a1+_0x833768;}}function _0x268a(){const _0x4220d3=['_targetContainer','textContent','pointerEvents','style','appendChild','destroy','_updateShowMoreButtonVisibility','hide','show','abs','_overflowChips','add','innerHeight','from','_containerElement','includes','height','block','button','_restoreAncestorVisibility','397614TPluBw','clientHeight','toLowerCase','position','300px','_updateOverflowUI','observe','clear','showBalloonPanel','parentElement','_calculateOverflowInContainer','showMoreButton','_ancestorsToRestore','ck-calculation-container','tagName','documentElement','render','clientWidth','_createMockButton','disconnect','isVisible','_parentView','right','label','boxSizing','opacity','setTemplate','classList','_createCalculationContainer','_createShowMoreButtonView','_applyOverflowResults','1762840LkeMIG','1316982XHLFSy','showMoreBalloon','createElement','isConnected','absolute','_config','showMoreLabelPrefix','top','display','pin','innerHTML','extendTemplate','element','innerWidth','_checkAndHandleOverflow','showMoreButtonView','reorganizeChips','isOn','_distributeChips','body','execute','controlsButton','_repinBalloonPanel','remove','_applyCalculationStyles','children','zIndex','push','_makeAncestorsVisible','rowDetectionTolerance','bottom','div','54453oRGljz','visibility','_testButtonFit','_pendingCalculation','disableAnimationOnEnter','hidden','length','left','offsetWidth','width','set','cloneNode','calculationContainer','block\x20!important','filter','border-box','content','_calculateContainerWidth','-9999px','6631884xubhJc','_bodyCollection','setContainerElement','.ck-ai-chat','none','_showMoreButtonView','_createShowMoreBalloonPanelView','_locale','1864mwIjDO','forEach','_showMoreBalloonPanelView','5603710HoUbrJ','50px','_visibleChips','maxVisibleRows','overflowContainer','visible','0px','querySelector','className','pop','_updateBalloonContent','getComputedStyle','_createShowMoreButton','_createContainerElements','_handleShowMoreButtonClick','slice','_findTargetContainer','hideBalloonPanel','auto','2653562AtUzgO','visible\x20!important','isIntersecting','cssClasses','_renderChipsAndCountRows','some','overflowChips','_setupVisibilityObserver','+\x201','undefined','_intersectionObserver','_isContainerVisible','getBoundingClientRect'];_0x268a=function(){return _0x4220d3;};return _0x268a();}
23
+ function _0x5f3c(_0x523bbe,_0x37f394){const _0x5b62f4=_0x5b62();return _0x5f3c=function(_0x5f3c8f,_0x972f9){_0x5f3c8f=_0x5f3c8f-0xdd;let _0x32cd21=_0x5b62f4[_0x5f3c8f];return _0x32cd21;},_0x5f3c(_0x523bbe,_0x37f394);}function _0x5b62(){const _0xf6880c=['_containerElement','length','visible','_renderChipsAndCountRows','absolute','boxSizing','280012VeTlMs','_config','pin','_restoreAncestorVisibility','_findTargetContainer','_applyCalculationStyles','appendChild','_applyOverflowResults','_isContainerVisible','hideBalloonPanel','innerWidth','showMoreButton','width','50px','19611zuUvGD','visible\x20!important','reorganizeChips','zIndex','clientHeight','_createShowMoreButtonView','tagName','label','_repinBalloonPanel','_createShowMoreButton','_updateOverflowUI','show','forEach','right','35LNjLGf','push','488rALdAp','height','border-box','isOn','showMoreLabelPrefix','11262420cAyvuJ','_intersectionObserver','_createMockButton','none','add','top','block\x20!important','pointerEvents','overflowContainer','setTemplate','_distributeChips','content','_updateBalloonContent','showBalloonPanel','_pendingCalculation','getBoundingClientRect','observe','innerHeight','documentElement','undefined','button','_targetContainer','className','disconnect','_calculateContainerWidth','isIntersecting','cssClasses','parentElement','_checkAndHandleOverflow','style','isConnected','destroy','querySelector','getComputedStyle','17916kHdAhj','_locale','bottom','+\x201','_bodyCollection','300px','_showMoreButtonView','_createShowMoreBalloonPanelView','hide','clear','0px','ck-calculation-container','386446QkcJJm','position','isVisible','block','includes','calculationContainer','hidden','_calculateOverflowInContainer','visibility','_testButtonFit','_createCalculationContainer','overflowChips','body','_setupVisibilityObserver','toLowerCase','_ancestorsToRestore','set','-9999px','innerHTML','_parentView','clientWidth','1109949pgLuAr','filter','137992CxtPuU','_showMoreBalloonPanelView','render','.ck-ai-chat','abs','maxVisibleRows','auto','children','opacity','showMoreButtonView','slice','controlsButton','_overflowChips','_createContainerElements','from','_visibleChips','rowDetectionTolerance','_handleShowMoreButtonClick','pop','disableAnimationOnEnter','remove','classList','element','some','div','execute','cloneNode','offsetWidth','_makeAncestorsVisible','left','createElement','display','extendTemplate','10pmflmt','setContainerElement','showMoreBalloon','textContent','_updateShowMoreButtonVisibility'];_0x5b62=function(){return _0xf6880c;};return _0x5b62();}const _0x52ffef=_0x5f3c;(function(_0x3e0da0,_0x36557c){const _0x31fd25=_0x5f3c,_0x314fef=_0x3e0da0();while(!![]){try{const _0x32b0fd=-parseInt(_0x31fd25(0x10a))/0x1+parseInt(_0x31fd25(0x121))/0x2+-parseInt(_0x31fd25(0x11f))/0x3+-parseInt(_0x31fd25(0x14d))/0x4*(-parseInt(_0x31fd25(0x142))/0x5)+parseInt(_0x31fd25(0xfe))/0x6*(-parseInt(_0x31fd25(0x169))/0x7)+-parseInt(_0x31fd25(0x16b))/0x8*(parseInt(_0x31fd25(0x15b))/0x9)+parseInt(_0x31fd25(0x170))/0xa;if(_0x32b0fd===_0x36557c)break;else _0x314fef['push'](_0x314fef['shift']());}catch(_0x28f481){_0x314fef['push'](_0x314fef['shift']());}}}(_0x5b62,0x69376));import{View as _0x3d0895,BalloonPanelView as _0x4a40a3,ButtonView as _0x1d4db8,clickOutsideHandler as _0x5e4afb}from'ckeditor5/src/ui.js';import{Collection as _0x3a9232}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x52ffef(0x103);export class AIChatChipsOverflowManager{[_0x52ffef(0xff)];[_0x52ffef(0x14e)];[_0x52ffef(0x130)];[_0x52ffef(0x12d)];[_0x52ffef(0x104)]=null;[_0x52ffef(0x122)]=null;[_0x52ffef(0x147)]=null;[_0x52ffef(0x102)];[_0x52ffef(0x11d)]=null;[_0x52ffef(0xdd)]=null;[_0x52ffef(0xea)]=!0x1;constructor(_0x17d8be,_0x315f29,_0x28d3d0,_0x567fee,_0x3c8d74){const _0xf8cd5f=_0x52ffef;this[_0xf8cd5f(0xff)]=_0x17d8be,this[_0xf8cd5f(0x130)]=_0x315f29,this[_0xf8cd5f(0x14e)]={...hn,..._0x28d3d0,'cssClasses':{'controlsButton':'','calculationContainer':_0xf8cd5f(0x109),..._0x28d3d0[_0xf8cd5f(0xf6)]}},this[_0xf8cd5f(0x12d)]=new _0x3a9232(),this[_0xf8cd5f(0x102)]=_0x567fee,this[_0xf8cd5f(0x11d)]=_0x3c8d74||null;}[_0x52ffef(0x143)](_0x3d5a38){const _0xfcf733=_0x52ffef;this[_0xfcf733(0xdd)]&&(this[_0xfcf733(0xdd)][_0xfcf733(0xf3)](),this[_0xfcf733(0xdd)]=null),this[_0xfcf733(0x147)]=_0x3d5a38,this[_0xfcf733(0x117)]();}get[_0x52ffef(0x12a)](){const _0x320a71=_0x52ffef;return this[_0x320a71(0x104)];}get[_0x52ffef(0x115)](){const _0x56a414=_0x52ffef;return this[_0x56a414(0x12d)];}[_0x52ffef(0x15d)](){requestAnimationFrame(()=>{const _0x17d36c=_0x5f3c;this[_0x17d36c(0xf8)]();});}[_0x52ffef(0xe9)](){const _0xb8767b=_0x52ffef;this[_0xb8767b(0x104)]&&this[_0xb8767b(0x122)]&&(this[_0xb8767b(0xe8)](),this[_0xb8767b(0x104)][_0xb8767b(0x16e)]=!0x0,this[_0xb8767b(0x122)][_0xb8767b(0x166)](),this[_0xb8767b(0x122)][_0xb8767b(0x14f)]({'target':this[_0xb8767b(0x104)][_0xb8767b(0x137)],'limiter':document[_0xb8767b(0xfc)](_0xb8767b(0x124))}));}[_0x52ffef(0x156)](){const _0x4621cd=_0x52ffef;this[_0x4621cd(0x104)]&&this[_0x4621cd(0x122)]&&(this[_0x4621cd(0x104)][_0x4621cd(0x16e)]=!0x1,this[_0x4621cd(0x122)][_0x4621cd(0x106)]());}[_0x52ffef(0x107)](){const _0x255ae3=_0x52ffef;this[_0x255ae3(0x12d)][_0x255ae3(0x107)](),this[_0x255ae3(0x156)](),this[_0x255ae3(0x146)](),this[_0x255ae3(0x104)]&&(this[_0x255ae3(0x104)][_0x255ae3(0x162)]=''),this[_0x255ae3(0x122)]&&this[_0x255ae3(0x122)][_0x255ae3(0xe7)][_0x255ae3(0x107)]();}[_0x52ffef(0xfb)](){const _0x16a20b=_0x52ffef;this[_0x16a20b(0xdd)]&&(this[_0x16a20b(0xdd)][_0x16a20b(0xf3)](),this[_0x16a20b(0xdd)]=null),this[_0x16a20b(0x104)]&&(this[_0x16a20b(0x104)][_0x16a20b(0xfb)](),this[_0x16a20b(0x104)]=null),this[_0x16a20b(0x122)]&&(this[_0x16a20b(0x122)][_0x16a20b(0xfb)](),this[_0x16a20b(0x122)]=null);}[_0x52ffef(0xf8)](){const _0x55fb90=_0x52ffef;if(!this[_0x55fb90(0x147)])return;if(!this[_0x55fb90(0x155)]())return void(this[_0x55fb90(0xea)]=!0x0);this[_0x55fb90(0xea)]=!0x1;const _0x46f169=[...this[_0x55fb90(0x130)],...this[_0x55fb90(0x12d)]],_0x3df467=this[_0x55fb90(0x114)](),_0x27cb82=this[_0x55fb90(0x111)](_0x3df467,_0x46f169),_0x2b3c28=_0x3df467[_0x55fb90(0x119)];_0x2b3c28&&this[_0x55fb90(0x150)](_0x2b3c28),_0x3df467[_0x55fb90(0x135)](),this[_0x55fb90(0x154)](_0x46f169,_0x27cb82);}[_0x52ffef(0x164)](){const _0x313bac=_0x52ffef;this[_0x313bac(0x104)]=this[_0x313bac(0x160)](),this[_0x313bac(0x122)]=this[_0x313bac(0x105)](),this[_0x313bac(0x104)][_0x313bac(0x123)](),this[_0x313bac(0x147)][_0x313bac(0x153)](this[_0x313bac(0x104)][_0x313bac(0x137)]),this[_0x313bac(0x104)]['on'](_0x313bac(0x13a),()=>{const _0xb9b841=_0x313bac;this[_0xb9b841(0x132)]();}),_0x5e4afb({'emitter':this[_0x313bac(0x122)],'contextElements':[this[_0x313bac(0x122)][_0x313bac(0x137)],this[_0x313bac(0x104)][_0x313bac(0x137)]],'callback':()=>this[_0x313bac(0x156)](),'activator':()=>this[_0x313bac(0x104)][_0x313bac(0x16e)]});}[_0x52ffef(0x160)](){const _0x380038=_0x52ffef,_0x520da5=new _0x1d4db8(this[_0x380038(0xff)]);_0x520da5[_0x380038(0x11a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x46db00=[this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x158)]];return this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x12c)]&&_0x46db00[_0x380038(0x16a)](this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x12c)]),_0x520da5[_0x380038(0x141)]({'attributes':{'class':_0x46db00}}),_0x520da5;}[_0x52ffef(0x105)](){const _0x3d37b0=_0x52ffef,_0x57ed6b=new _0x4a40a3(this[_0x3d37b0(0xff)]);return _0x57ed6b[_0x3d37b0(0x141)]({'attributes':{'class':this[_0x3d37b0(0x14e)][_0x3d37b0(0xf6)][_0x3d37b0(0x144)]}}),this[_0x3d37b0(0x102)][_0x3d37b0(0xe0)](_0x57ed6b),_0x57ed6b;}[_0x52ffef(0xe8)](){const _0x49e9b3=_0x52ffef;if(this[_0x49e9b3(0x122)]&&(this[_0x49e9b3(0x122)][_0x49e9b3(0xe7)][_0x49e9b3(0x107)](),this[_0x49e9b3(0x12d)][_0x49e9b3(0x148)]>0x0)){this[_0x49e9b3(0x12d)][_0x49e9b3(0x167)](_0x23bc96=>{const _0x5e7052=_0x49e9b3;_0x23bc96[_0x5e7052(0x134)]();});const _0x25af09=new _0x3d0895(this[_0x49e9b3(0xff)]);_0x25af09[_0x49e9b3(0xe5)]({'tag':_0x49e9b3(0x139),'attributes':{'class':this[_0x49e9b3(0x14e)][_0x49e9b3(0xf6)][_0x49e9b3(0xe4)]},'children':this[_0x49e9b3(0x12d)]}),this[_0x49e9b3(0x122)][_0x49e9b3(0xe7)][_0x49e9b3(0xe0)](_0x25af09);}}[_0x52ffef(0x132)](){const _0x15e435=_0x52ffef;this[_0x15e435(0x104)][_0x15e435(0x16e)]?this[_0x15e435(0x156)]():this[_0x15e435(0xe9)]();}[_0x52ffef(0x146)](){const _0x27bb02=_0x52ffef,_0x30a336=this[_0x27bb02(0x12d)][_0x27bb02(0x148)]>0x0;this[_0x27bb02(0x104)]?.[_0x27bb02(0x137)]&&(this[_0x27bb02(0x104)][_0x27bb02(0x137)][_0x27bb02(0xf9)][_0x27bb02(0x140)]=_0x30a336?'':_0x27bb02(0xdf));}[_0x52ffef(0x163)](){const _0x405d9a=_0x52ffef;this[_0x405d9a(0x104)]?.[_0x405d9a(0x16e)]&&this[_0x405d9a(0x122)]?.[_0x405d9a(0x10c)]&&this[_0x405d9a(0x104)][_0x405d9a(0x137)]&&this[_0x405d9a(0x122)][_0x405d9a(0x14f)]({'target':this[_0x405d9a(0x104)][_0x405d9a(0x137)],'limiter':document[_0x405d9a(0xfc)](_0x405d9a(0x124))});}[_0x52ffef(0x151)](_0x5173f4){const _0x55e5a9=_0x52ffef,_0x140e10=this[_0x55e5a9(0x147)]?.[_0x55e5a9(0x161)][_0x55e5a9(0x118)]()||_0x55e5a9(0x139),_0x391574=this[_0x55e5a9(0x147)]?.[_0x55e5a9(0x136)];if(_0x391574){const _0x1c74f4=_0x391574[0x0]||'',_0x3adf52=_0x5173f4[_0x55e5a9(0xfc)]('.'+_0x1c74f4),_0x12bfe2=_0x5173f4[_0x55e5a9(0xfc)](_0x140e10);return _0x3adf52||_0x12bfe2||_0x5173f4;}return _0x5173f4[_0x55e5a9(0xfc)](_0x140e10)||_0x5173f4;}[_0x52ffef(0xf4)](){const _0x2603c1=_0x52ffef,_0x4a71aa=this[_0x2603c1(0x11d)]?.[_0x2603c1(0x137)]||this[_0x2603c1(0x147)];if(!_0x4a71aa)return an;const _0x150524=window[_0x2603c1(0xfd)](_0x4a71aa)[_0x2603c1(0x159)];if(_0x2603c1(0x127)===_0x150524||_0x2603c1(0x108)===_0x150524||!_0x150524){const _0x1fc4be=_0x4a71aa[_0x2603c1(0xf7)];if(_0x1fc4be){const _0x39c20a=window[_0x2603c1(0xfd)](_0x1fc4be);return _0x2603c1(0x127)!==_0x39c20a[_0x2603c1(0x159)]?_0x39c20a[_0x2603c1(0x159)]:an;}return an;}return _0x150524;}[_0x52ffef(0x152)](_0x12f4bd,_0xfac056){const _0x17490b=_0x52ffef;this[_0x17490b(0x14e)][_0x17490b(0xf6)][_0x17490b(0x10f)]&&_0x12f4bd[_0x17490b(0x136)][_0x17490b(0xe0)](this[_0x17490b(0x14e)][_0x17490b(0xf6)][_0x17490b(0x10f)]),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x159)]=_0xfac056,_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x10b)]=_0x17490b(0x14b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0xe1)]=_0x17490b(0x11b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x13e)]=_0x17490b(0x11b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x129)]='0',_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0xe3)]=_0x17490b(0xdf),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x15e)]='-1',_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x112)]=_0x17490b(0x15c),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x140)]=_0x17490b(0xe2),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x14c)]=_0x17490b(0x16d);}[_0x52ffef(0x150)](_0x5d6d93){const _0x48983b=_0x52ffef;_0x5d6d93[_0x48983b(0x167)](({element:_0x128315,originalDisplay:_0x139ad2,originalVisibility:_0x1684ab})=>{const _0xf6359b=_0x48983b;_0x128315[_0xf6359b(0xf9)][_0xf6359b(0x140)]=_0x139ad2,_0x128315[_0xf6359b(0xf9)][_0xf6359b(0x112)]=_0x1684ab;});}[_0x52ffef(0x13d)](_0x43adc3){const _0x29cc5d=_0x52ffef,_0x2aed77=[];let _0x3ed3a9=_0x43adc3;for(;_0x3ed3a9&&_0x3ed3a9!==document[_0x29cc5d(0x116)];){const _0x32dabe=window[_0x29cc5d(0xfd)](_0x3ed3a9);_0x29cc5d(0xdf)!==_0x32dabe[_0x29cc5d(0x140)]&&_0x29cc5d(0x110)!==_0x32dabe[_0x29cc5d(0x112)]||(_0x2aed77[_0x29cc5d(0x16a)]({'element':_0x3ed3a9,'originalDisplay':_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x140)],'originalVisibility':_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x112)]}),_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x140)]=_0x29cc5d(0x10d),_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x112)]=_0x29cc5d(0x149)),_0x3ed3a9=_0x3ed3a9[_0x29cc5d(0xf7)];}return _0x2aed77;}[_0x52ffef(0x12e)](){const _0x5b38cd=_0x52ffef;let _0x2c83c7,_0x2c7fbb;return this[_0x5b38cd(0x11d)]?.[_0x5b38cd(0x137)]?(_0x2c83c7=this[_0x5b38cd(0x11d)][_0x5b38cd(0x137)][_0x5b38cd(0x13b)](!0x0),_0x2c7fbb=this[_0x5b38cd(0x151)](_0x2c83c7)):(_0x2c83c7=document[_0x5b38cd(0x13f)](_0x5b38cd(0x139)),_0x2c7fbb=_0x2c83c7),{'calculationContainer':_0x2c83c7,'targetContainer':_0x2c7fbb};}[_0x52ffef(0x114)](){const _0x118326=_0x52ffef,{calculationContainer:_0x4ca1e6,targetContainer:_0x365964}=this[_0x118326(0x12e)](),_0x206e40=this[_0x118326(0xf4)]();this[_0x118326(0x152)](_0x4ca1e6,_0x206e40);const _0x55fa71=this[_0x118326(0x11d)]?.[_0x118326(0x137)]||this[_0x118326(0x147)],_0x413dd2=_0x55fa71?.[_0x118326(0xf7)];_0x413dd2?_0x413dd2[_0x118326(0x153)](_0x4ca1e6):document[_0x118326(0x116)][_0x118326(0x153)](_0x4ca1e6),_0x4ca1e6[_0x118326(0xf1)]=_0x365964;const _0xdfe193=this[_0x118326(0x13d)](_0x413dd2||null);return _0x4ca1e6[_0x118326(0x13c)],_0x4ca1e6[_0x118326(0x119)]=_0xdfe193,_0x4ca1e6;}[_0x52ffef(0x111)](_0x78ad76,_0x3f4e5c){const _0x1667af=_0x52ffef,_0x5352a5=_0x78ad76[_0x1667af(0xf1)]||_0x78ad76,_0x62a737=[],{rowCount:_0x7df3fd}=this[_0x1667af(0x14a)](_0x5352a5,_0x3f4e5c);if(_0x7df3fd<=this[_0x1667af(0x14e)][_0x1667af(0x126)])return _0x62a737;const _0x3529ca=_0x3f4e5c[_0x1667af(0x12b)]();for(;_0x3529ca[_0x1667af(0x148)]>0x0;){if(this[_0x1667af(0x113)](_0x78ad76,_0x5352a5,_0x3529ca)){const _0x2def85=_0x3f4e5c[_0x1667af(0x120)](_0x2c165f=>!_0x3529ca[_0x1667af(0x10e)](_0x2c165f));_0x62a737[_0x1667af(0x16a)](..._0x2def85);break;}if(!_0x3529ca[_0x1667af(0x133)]())break;}return _0x62a737;}[_0x52ffef(0x14a)](_0x56e769,_0x3dadd1){const _0x33864e=_0x52ffef;_0x56e769[_0x33864e(0x11c)]='',_0x3dadd1[_0x33864e(0x167)](_0x7ab181=>{const _0x215723=_0x33864e;if(_0x7ab181[_0x215723(0x137)]){const _0x14d3f3=_0x7ab181[_0x215723(0x137)][_0x215723(0x13b)](!0x0);_0x56e769[_0x215723(0x153)](_0x14d3f3);}}),_0x56e769[_0x33864e(0x13c)];const _0x543884=_0x56e769[_0x33864e(0x128)],_0xeefa4e=[];return Array[_0x33864e(0x12f)](_0x543884)[_0x33864e(0x167)](_0x85d88b=>{const _0x37166c=_0x33864e,_0x101158=_0x85d88b[_0x37166c(0xeb)]()[_0x37166c(0xe1)];_0xeefa4e[_0x37166c(0x138)](_0x162e08=>Math[_0x37166c(0x125)](_0x162e08-_0x101158)<this[_0x37166c(0x14e)][_0x37166c(0x131)])||_0xeefa4e[_0x37166c(0x16a)](_0x101158);}),{'rowCount':_0xeefa4e[_0x33864e(0x148)]};}[_0x52ffef(0xde)](){const _0x5b33de=_0x52ffef,_0x130427=document[_0x5b33de(0x13f)](_0x5b33de(0xf0));return _0x130427[_0x5b33de(0xf2)]=this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x158)],this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x12c)]&&_0x130427[_0x5b33de(0x136)][_0x5b33de(0xe0)](this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x12c)]),_0x130427[_0x5b33de(0x145)]=_0x5b33de(0x101),_0x130427;}[_0x52ffef(0x113)](_0x3cb0cc,_0x525803,_0x30f8b0){const _0x4ec8f0=_0x52ffef;this[_0x4ec8f0(0x14a)](_0x525803,_0x30f8b0);const _0x274b8c=this[_0x4ec8f0(0xde)]();_0x3cb0cc[_0x4ec8f0(0x153)](_0x274b8c),_0x3cb0cc[_0x4ec8f0(0x13c)];const _0x43b2c4=[..._0x525803[_0x4ec8f0(0x128)],_0x274b8c],_0x781b23=[];_0x43b2c4[_0x4ec8f0(0x167)](_0x3d065a=>{const _0x2ae800=_0x4ec8f0,_0x59167b=_0x3d065a[_0x2ae800(0xeb)]()[_0x2ae800(0xe1)];_0x781b23[_0x2ae800(0x138)](_0xd4929f=>Math[_0x2ae800(0x125)](_0xd4929f-_0x59167b)<this[_0x2ae800(0x14e)][_0x2ae800(0x131)])||_0x781b23[_0x2ae800(0x16a)](_0x59167b);});const _0x558c6c=_0x781b23[_0x4ec8f0(0x148)];return _0x274b8c[_0x4ec8f0(0x135)](),_0x558c6c<=this[_0x4ec8f0(0x14e)][_0x4ec8f0(0x126)];}[_0x52ffef(0xe6)](_0x1e3343,_0xcf344c){const _0x189654=_0x52ffef;this[_0x189654(0x130)][_0x189654(0x107)](),this[_0x189654(0x12d)][_0x189654(0x107)](),_0x1e3343[_0x189654(0x167)](_0x134eed=>{const _0x1fe0a6=_0x189654;_0xcf344c[_0x1fe0a6(0x10e)](_0x134eed)?this[_0x1fe0a6(0x12d)][_0x1fe0a6(0xe0)](_0x134eed):this[_0x1fe0a6(0x130)][_0x1fe0a6(0xe0)](_0x134eed);});}[_0x52ffef(0x165)](_0x2c2334){const _0x50d00d=_0x52ffef;if(_0x2c2334>0x0&&!this[_0x50d00d(0x104)]&&this[_0x50d00d(0x164)](),_0x2c2334>0x0&&this[_0x50d00d(0x104)]){const _0x96782d=''+this[_0x50d00d(0x14e)][_0x50d00d(0x16f)]+(_0x2c2334<0x63?_0x2c2334:'99');this[_0x50d00d(0x104)][_0x50d00d(0x162)]=_0x96782d;}this[_0x50d00d(0xe8)](),this[_0x50d00d(0x146)](),this[_0x50d00d(0x163)]();}[_0x52ffef(0x154)](_0x44e664,_0x466fcb){const _0x5d6378=_0x52ffef;this[_0x5d6378(0xe6)](_0x44e664,_0x466fcb),this[_0x5d6378(0x165)](_0x466fcb[_0x5d6378(0x148)]);}[_0x52ffef(0x117)](){const _0x449d97=_0x52ffef;this[_0x449d97(0x147)]&&_0x449d97(0xef)!=typeof IntersectionObserver&&(this[_0x449d97(0xdd)]=new IntersectionObserver(_0x55f81a=>{const _0x403b53=_0x449d97;_0x55f81a[0x0][_0x403b53(0xf5)]&&this[_0x403b53(0xea)]&&requestAnimationFrame(()=>{const _0x42b905=_0x403b53;this[_0x42b905(0xf8)]();});},{'threshold':0.01,'rootMargin':_0x449d97(0x15a)}),this[_0x449d97(0xdd)][_0x449d97(0xec)](this[_0x449d97(0x147)]));}[_0x52ffef(0x155)](){const _0x5a09f4=_0x52ffef;if(!this[_0x5a09f4(0x147)])return!0x1;if(!this[_0x5a09f4(0x147)][_0x5a09f4(0xfa)])return!0x1;const _0x5d14ae=this[_0x5a09f4(0x147)][_0x5a09f4(0xeb)]();if(0x0===_0x5d14ae[_0x5a09f4(0x159)]||0x0===_0x5d14ae[_0x5a09f4(0x16c)])return!0x1;const _0x4a4670=window[_0x5a09f4(0xed)]||document[_0x5a09f4(0xee)][_0x5a09f4(0x15f)],_0x5a444e=window[_0x5a09f4(0x157)]||document[_0x5a09f4(0xee)][_0x5a09f4(0x11e)],_0x38ded5=0xc8;return _0x5d14ae[_0x5a09f4(0x100)]>=-0xc8&&_0x5d14ae[_0x5a09f4(0xe1)]<=_0x4a4670+_0x38ded5&&_0x5d14ae[_0x5a09f4(0x168)]>=-0xc8&&_0x5d14ae[_0x5a09f4(0x13e)]<=_0x5a444e+_0x38ded5;}}