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

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-editor.css +10 -1
  3. package/dist/index.css +10 -1
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.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/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aiquickactions/aiquickactions.js +1 -1
  250. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  251. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  252. package/src/aiquickactions/aiquickactionsui.js +1 -1
  253. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  256. package/src/aiquickactions/utils/common-translations.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.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/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformamanager.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/index.js +1 -1
  289. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x194de3=_0x2311;function _0x458c(){const _0x2d9a17=['ai-chat-source-resources-load-failed','urls','addUrlToContext','addSelectionToContext','filter','_removeContextItem','Current\x20document','addFilesToContext','addResourceToContext','map','delete','name','_config','current-document','start','contextItemAdded','mapContextItemsToRequestData','hidden','HTML','isReadOnly','contextItemRemoved','_connector','length','ai-request-aborted','removeFromContext','addToConversationContext','uploadUrl','set','_ownerId','text/markdown','values','_isResourceInContext','ai-chat-context-invalid-data','ai-chat-file-upload-failed','sourceResourcesLoaded','data','message','ai-chat-document-upload-failed','text/plain','uiId','loadSourceResources','uploadProgressChanged','resourceStateChanged','isCurrentDocumentInConversation','label','_pendingContextItems','_findSourceIdsByResourceId','2085612AsZYvh','ai-chat-resource-no-data','ai-chat-url-upload-failed','content','ai-chat-resource-load-failed','getDocument','clearPendingContextItems','contextSent','resources','SELECTION','object','_startUploadOperation','url','document','URL','size','selection','_getCustomSourcesInitialState','_finishUploadOperation','populateFromMessage','1xPrLCF','getResources','find','file-','ai-chat-source-not-found','sources','getSentContextItems','all','push','isCurrentDocumentInContext','addCurrentDocumentToContext','_convertTextResourceToFile','_addToConversationContextItem','files','File','end','_updateResourceInContextState','DOCUMENT','7017976sHvjpV','6749616sqzBca','_mapContextItemToRequestData','enabled','getData','_addContextOptionsState','error','attributes','object\x20with\x20content\x20and\x20type\x20properties','FILE','from','isHidden','_ongoingUploads','text/html','contextItemLoadingEnded','_conversationContextItems','version','fetchDocument','_ongoingUploadOperations','string','fire','type','getId','removeSelectionFromContext','forEach','ai-chat-context-unsupported-type','_setAddContextOptionsDefaultState','stack','_createContextItemFromContent','init','_finishContextItemLoading','51763768AJxwJm','uploadDocument','url-','isSelectionInContext','has','2639362QKgycu','_addContextItem','resourceId','sessionId','addContextOptionsChanged','abortController','isInContext','abort','files-','getPendingContextItems','get','9056175pbvycd','updateCurrentDocument','5108865MzKCeK','startsWith','uploadFile','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','TEXT'];_0x458c=function(){return _0x2d9a17;};return _0x458c();}(function(_0x434c15,_0x350514){const _0x1a195c=_0x2311,_0x3a0112=_0x434c15();while(!![]){try{const _0x341566=parseInt(_0x1a195c(0xb3))/0x1*(-parseInt(_0x1a195c(0xe9))/0x2)+-parseInt(_0x1a195c(0xf6))/0x3+-parseInt(_0x1a195c(0x9f))/0x4+-parseInt(_0x1a195c(0xf4))/0x5+-parseInt(_0x1a195c(0xc6))/0x6+parseInt(_0x1a195c(0xc5))/0x7+parseInt(_0x1a195c(0xe4))/0x8;if(_0x341566===_0x350514)break;else _0x3a0112['push'](_0x3a0112['shift']());}catch(_0x3133b1){_0x3a0112['push'](_0x3a0112['shift']());}}}(_0x458c,0xf263d));import{CKEditorError as _0x74f2b5,ObservableMixin as _0x377a6e,uid as _0x4d7999}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x285026,AIContextTextResourceType as _0x3b0f38}from'../../aicore/model/aicontext.js';import{escape as _0x59e1df}from'es-toolkit/compat';function _0x2311(_0x5748ed,_0x586d72){const _0x458cd0=_0x458c();return _0x2311=function(_0x23116f,_0x578653){_0x23116f=_0x23116f-0x9f;let _0x3ea888=_0x458cd0[_0x23116f];return _0x3ea888;},_0x2311(_0x5748ed,_0x586d72);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x194de3(0x10b),_0x194de3(0x110),_0x194de3(0xd3),_0x194de3(0xa6),_0x194de3(0xcb),_0x194de3(0xed),_0x194de3(0x11e),_0x194de3(0x126),_0x194de3(0x125)];export class AIChatContext extends _0x377a6e(){[_0x194de3(0x111)];[_0x194de3(0x108)];[_0x194de3(0x118)];constructor({connector:_0xa8a3df,config:_0x4fc587,ownerId:_0x31c41e}){const _0x174f44=_0x194de3;super(),this[_0x174f44(0x111)]=_0xa8a3df,this[_0x174f44(0x108)]=_0x4fc587,this[_0x174f44(0x118)]=_0x31c41e;}[_0x194de3(0xe2)](){const _0x46c816=_0x194de3;this[_0x46c816(0x129)]=new Map(),this[_0x46c816(0xd4)]=new Map(),this[_0x46c816(0xd1)]=new Map(),this[_0x46c816(0xd7)]=new Map(),this[_0x46c816(0xdf)]();}[_0x194de3(0xf2)](){const _0x2c5d8c=_0x194de3;return this[_0x2c5d8c(0x129)];}async[_0x194de3(0xb2)](_0x18e48f){const _0x152e51=_0x194de3,_0x568aec=await this[_0x152e51(0xe1)](_0x18e48f);return this[_0x152e51(0xbf)](_0x568aec),_0x152e51(0x109)===_0x568aec[_0x152e51(0x123)]&&this[_0x152e51(0xfa)](),_0x568aec;}async[_0x194de3(0xe1)](_0x51d8e5){const _0x4fe3c8=_0x194de3;if(_0x51d8e5[_0x4fe3c8(0xda)]===_0x285026[_0x4fe3c8(0xc4)]){const _0x270482=await this[_0x4fe3c8(0x111)][_0x4fe3c8(0xd6)](this[_0x4fe3c8(0x118)],_0x51d8e5['id'])[_0x4fe3c8(0xa4)]();return{'id':_0x4fe3c8(0x109),'uiId':_0x4fe3c8(0x109),'label':_0x4fe3c8(0x102),'type':_0x51d8e5[_0x4fe3c8(0xda)],'content':_0x270482[_0x4fe3c8(0xa2)],'hidden':this[_0x4fe3c8(0xd4)][_0x4fe3c8(0xe8)](_0x4fe3c8(0x109)),'version':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xd5)],'sessionId':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xec)]};}return{'id':_0x51d8e5['id'],'uiId':_0x51d8e5['id'],'label':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0x128)]||_0x51d8e5[_0x4fe3c8(0x107)]||_0x51d8e5[_0x4fe3c8(0xab)]||_0x51d8e5['id'],'type':_0x51d8e5[_0x4fe3c8(0xda)],..._0x51d8e5?.[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]?{'resourceId':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]}:{}};}[_0x194de3(0xb9)](){const _0x3e78db=_0x194de3;return new Map(this[_0x3e78db(0xd4)]);}[_0x194de3(0x114)](_0x25035b){const _0x1f5b31=_0x194de3,_0x3a8cec=this[_0x1f5b31(0x129)][_0x1f5b31(0xf3)](_0x25035b);_0x3a8cec?.[_0x1f5b31(0x10f)]||this[_0x1f5b31(0x101)](_0x25035b);}[_0x194de3(0xa5)](){const _0x3e3776=_0x194de3;if(0x0===this[_0x3e3776(0x129)][_0x3e3776(0xae)])return;for(const _0x5ac66a of this[_0x3e3776(0x129)][_0x3e3776(0x11a)]())this[_0x3e3776(0x101)](_0x5ac66a[_0x3e3776(0x123)]);const _0x5a1d39=this[_0x3e3776(0xd4)][_0x3e3776(0xf3)](_0x3e3776(0x109))||this[_0x3e3776(0x129)][_0x3e3776(0xf3)](_0x3e3776(0x109));_0x5a1d39&&this[_0x3e3776(0xea)]({..._0x5a1d39,'isReadOnly':!0x0,'hidden':!0x0});}[_0x194de3(0x115)](_0x4c646d){const _0x4621d7=_0x194de3;for(const _0x270765 of _0x4c646d[_0x4621d7(0x11a)]())this[_0x4621d7(0xbf)](_0x270765);this[_0x4621d7(0xa5)](),this[_0x4621d7(0xd9)](_0x4621d7(0xa6),{'contextItems':Array[_0x4621d7(0xcf)](this[_0x4621d7(0xb9)]()[_0x4621d7(0x11a)]())});}[_0x194de3(0xbc)](){const _0x4f8baf=_0x194de3;return this[_0x4f8baf(0x129)][_0x4f8baf(0xe8)](_0x4f8baf(0x109));}[_0x194de3(0xe7)](){const _0x381234=_0x194de3;return this[_0x381234(0x129)][_0x381234(0xe8)](_0x381234(0xaf));}[_0x194de3(0x127)](){const _0x24d397=_0x194de3;return this[_0x24d397(0xd4)][_0x24d397(0xe8)](_0x24d397(0x109));}static[_0x194de3(0x10c)](_0x400d87){const _0x5de0b0=_0x194de3;return Array[_0x5de0b0(0xcf)](_0x400d87[_0x5de0b0(0x11a)]())[_0x5de0b0(0x105)](_0x3c4568=>this[_0x5de0b0(0xc7)](_0x3c4568))[_0x5de0b0(0x100)](_0x491aaf=>null!==_0x491aaf);}async[_0x194de3(0x103)](_0x2c5a82,_0x3d0ef0,_0x48ff9d=_0x285026[_0x194de3(0xce)]){const _0x328819=_0x194de3,_0x200b1a=_0x328819(0xf1)+_0x4d7999();this[_0x328819(0xaa)](_0x200b1a);try{await Promise[_0x328819(0xba)](_0x2c5a82[_0x328819(0x105)](async _0x4d3891=>{const _0x2734bf=_0x328819,_0x4c8e56=_0x2734bf(0xb6)+_0x4d7999(),_0x54b542=_0x59e1df(_0x4d3891[_0x2734bf(0x107)]);try{this[_0x2734bf(0xea)]({'type':_0x48ff9d,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x0);const _0x60ccf4=this[_0x2734bf(0x111)][_0x2734bf(0xf8)](this[_0x2734bf(0x118)],_0x4d3891,_0x3d0ef0);this[_0x2734bf(0xd1)][_0x2734bf(0x117)](_0x4c8e56,_0x60ccf4[_0x2734bf(0xee)]);const {id:_0x4fa755}=await _0x60ccf4[_0x2734bf(0xdb)]();this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56),this[_0x2734bf(0xe3)]({'type':_0x48ff9d,'id':_0x4fa755,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x1);}catch(_0x13818c){this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56);if(!_0x13818c[_0x2734bf(0x120)][_0x2734bf(0xf7)](_0x2734bf(0x113))){const _0x1f0b14=new _0x74f2b5(_0x2734bf(0x11d),null,{'fileName':_0x54b542});_0x1f0b14[_0x2734bf(0xe0)]=_0x13818c[_0x2734bf(0xe0)],this[_0x2734bf(0xd9)](_0x2734bf(0xcb),{'error':_0x1f0b14,'fileName':_0x54b542});}this[_0x2734bf(0x101)](_0x4c8e56);}}));}finally{this[_0x328819(0xb1)](_0x200b1a);}}[_0x194de3(0xbd)](_0x3bad72){const _0x57731a=_0x194de3;if(this[_0x57731a(0xbc)]())return;const _0x28d22e={'type':_0x285026[_0x57731a(0xc4)],'uiId':_0x57731a(0x109),'label':_0x3bad72,'isReadOnly':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109)),'hidden':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109))};this[_0x57731a(0xea)](_0x28d22e);}async[_0x194de3(0xf5)](_0x1c551f,_0x5e03bd,_0x485170,_0x15efb4){const _0x1d6164=_0x194de3,_0x1c3d2f=this[_0x1d6164(0x129)][_0x1d6164(0xf3)](_0x1d6164(0x109));if(_0x1c3d2f&&_0x1c551f){_0x1c3d2f[_0x1d6164(0xaf)]=_0x15efb4?_0x15efb4[_0x1d6164(0x105)](_0x2129c9=>({'start':_0x2129c9[_0x1d6164(0x10a)],'end':_0x2129c9[_0x1d6164(0xc2)]})):[];try{if(_0x1c3d2f[_0x1d6164(0xd5)]===_0x5e03bd)return;const {id:_0x436173}=await this[_0x1d6164(0x111)][_0x1d6164(0xe5)](this[_0x1d6164(0x118)],_0x1c551f,{'version':_0x5e03bd,'sessionId':_0x485170})[_0x1d6164(0xdb)]();_0x1c3d2f['id']=_0x436173,_0x1c3d2f[_0x1d6164(0xa2)]=_0x1c551f,_0x1c3d2f[_0x1d6164(0xd5)]=_0x5e03bd,_0x1c3d2f[_0x1d6164(0xec)]=_0x485170;}catch(_0xc06538){const _0x162433=new _0x74f2b5(_0x1d6164(0x121),null);_0x162433[_0x1d6164(0xe0)]=_0xc06538[_0x1d6164(0xe0)],this[_0x1d6164(0xd9)](_0x1d6164(0xcb),{'error':_0x162433});}}}[_0x194de3(0xff)](_0x421f5f){const _0x421f85=_0x194de3;this[_0x421f85(0xea)]({'type':_0x285026[_0x421f85(0xa8)],'label':_0x421f5f,'uiId':_0x421f85(0xaf),'content':_0x421f5f});}[_0x194de3(0xdc)](){const _0x49a4ea=_0x194de3;this[_0x49a4ea(0x101)](_0x49a4ea(0xaf));}async[_0x194de3(0xfe)](_0x1da7df,_0x3c5c2a){const _0x155d23=_0x194de3,_0x16bacd=_0x155d23(0xe6)+_0x4d7999();this[_0x155d23(0xaa)](_0x16bacd);const _0xcb5d24=_0x155d23(0xe6)+_0x4d7999();try{this[_0x155d23(0xea)]({'type':_0x285026[_0x155d23(0xad)],'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x0);const _0x113dee=this[_0x155d23(0x111)][_0x155d23(0x116)](this[_0x155d23(0x118)],_0x1da7df,_0x3c5c2a);this[_0x155d23(0xd1)][_0x155d23(0x117)](_0xcb5d24,_0x113dee[_0x155d23(0xee)]);const {id:_0x506de8}=await _0x113dee[_0x155d23(0xdb)]();this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),this[_0x155d23(0xe3)]({'type':_0x285026[_0x155d23(0xad)],'id':_0x506de8,'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x1);}catch(_0x25b661){this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),(_0x25b661[_0x155d23(0x120)][_0x155d23(0xf7)](_0x155d23(0x113))||this[_0x155d23(0xd9)](_0x155d23(0xcb),{'error':new _0x74f2b5(_0x155d23(0xa1),this,{'url':_0x1da7df,'originalError':_0x25b661}),'url':_0x1da7df}),this[_0x155d23(0x101)](_0xcb5d24));}finally{this[_0x155d23(0xb1)](_0x16bacd);}}async[_0x194de3(0x124)](_0x43a6d0,_0x5a6e03,_0x1dc80a){const _0x2ff54a=_0x194de3,_0x265cda=this[_0x2ff54a(0xca)][_0x2ff54a(0xb8)][_0x2ff54a(0xb5)](_0x1056c4=>_0x1056c4['id']===_0x43a6d0);if(!_0x265cda)return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xb7),this,{'sourceId':_0x43a6d0}),'sourceId':_0x43a6d0}),[];try{const _0xca362e=(await _0x265cda[_0x2ff54a(0xb4)](_0x5a6e03))[_0x2ff54a(0x105)](_0x10593e=>{const _0xa5821b=_0x2ff54a,_0x169061=this[_0xa5821b(0x11b)](_0x10593e['id']);return{..._0x10593e,'isInContext':_0x169061};});return _0x265cda[_0x2ff54a(0xa7)]=_0xca362e,this[_0x2ff54a(0xd9)](_0x2ff54a(0x11e),{'sourceId':_0x43a6d0,'source':_0x265cda,'resources':_0xca362e,'uid':_0x1dc80a}),_0xca362e;}catch(_0x361727){return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xfc),this,{'sourceId':_0x43a6d0,'originalError':_0x361727}),'sourceId':_0x43a6d0,'sourceLabel':_0x265cda[_0x2ff54a(0x128)]}),[];}}async[_0x194de3(0x104)](_0x2fa0ac,_0x23ed66){const _0x540213=_0x194de3;if(this[_0x540213(0x11b)](_0x23ed66['id']))return;let _0x1967a7=_0x23ed66[_0x540213(0x11f)];if(!_0x1967a7&&_0x2fa0ac[_0x540213(0xc9)])try{_0x1967a7=await _0x2fa0ac[_0x540213(0xc9)](_0x23ed66['id']);}catch(_0x5208ec){return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa3),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'originalError':_0x5208ec}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}if(_0x1967a7)switch(_0x23ed66[_0x540213(0xda)]){case _0x285026[_0x540213(0xad)]:if(_0x540213(0xd8)!=typeof _0x1967a7)return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xd8),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0xfe)](_0x1967a7,{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xce)]:if(!(_0x1967a7 instanceof File))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xc1),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xfb)]:if(_0x540213(0xa9)!=typeof _0x1967a7||!(_0x540213(0xa2)in _0x1967a7)||!(_0x540213(0xda)in _0x1967a7))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xcd),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});_0x1967a7=AIChatContext[_0x540213(0xbe)](_0x1967a7,_0x23ed66[_0x540213(0x128)]),await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']},_0x285026[_0x540213(0xfb)]);break;default:this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xde),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'resourceType':_0x23ed66[_0x540213(0xda)]}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}else this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa0),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}static[_0x194de3(0xbe)](_0x512a33,_0x294f74){const _0xcbc37d=_0x194de3;switch(_0x512a33[_0xcbc37d(0xda)]){case _0x3b0f38[_0xcbc37d(0xf9)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x119)});case _0x3b0f38[_0xcbc37d(0x10e)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0xd2)});default:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x122)});}}static[_0x194de3(0xc7)](_0x33a5a7){const _0x466733=_0x194de3;switch(_0x33a5a7[_0x466733(0xda)]){case _0x285026[_0x466733(0xce)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xad)]:return{'type':_0x285026[_0x466733(0xad)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xc4)]:return{'type':_0x285026[_0x466733(0xc4)],'id':_0x33a5a7['id'],..._0x33a5a7[_0x466733(0xaf)]?.[_0x466733(0x112)]&&{'selection':_0x33a5a7[_0x466733(0xaf)]}};case _0x285026[_0x466733(0xfb)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};default:return null;}}[_0x194de3(0xea)](_0x11f6d0,_0x28b321=!0x1){const _0x47a875=_0x194de3;if(this[_0x47a875(0x129)][_0x47a875(0x117)](_0x11f6d0[_0x47a875(0x123)],_0x11f6d0),_0x11f6d0[_0x47a875(0x10d)]||this[_0x47a875(0xd9)](_0x47a875(0x10b),{'contextItem':_0x11f6d0,'isLoading':_0x28b321}),_0x47a875(0x109)===_0x11f6d0[_0x47a875(0x123)]&&this[_0x47a875(0xfa)](),_0x11f6d0[_0x47a875(0xeb)]){const _0x1da753=this[_0x47a875(0x12a)](_0x11f6d0[_0x47a875(0xeb)]);_0x1da753&&_0x1da753[_0x47a875(0xdd)](_0x1515c5=>{const _0x2c7c45=_0x47a875;this[_0x2c7c45(0xc3)](_0x1515c5,_0x11f6d0[_0x2c7c45(0xeb)],!0x0);});}}[_0x194de3(0x101)](_0x40dd87){const _0xb51e80=_0x194de3,_0x35afca=this[_0xb51e80(0x129)][_0xb51e80(0xf3)](_0x40dd87),_0x167a1a=this[_0xb51e80(0xd1)][_0xb51e80(0xf3)](_0x40dd87);if(_0x167a1a&&(_0x167a1a[_0xb51e80(0xf0)](),this[_0xb51e80(0xd1)][_0xb51e80(0x106)](_0x40dd87)),_0x35afca?.[_0xb51e80(0xeb)]){const _0x36dbd2=this[_0xb51e80(0x12a)](_0x35afca[_0xb51e80(0xeb)]);_0x36dbd2&&_0x36dbd2[_0xb51e80(0xdd)](_0x36462e=>{const _0x370561=_0xb51e80;this[_0x370561(0xc3)](_0x36462e,_0x35afca[_0x370561(0xeb)],!0x1);});}this[_0xb51e80(0x129)][_0xb51e80(0x106)](_0x40dd87),this[_0xb51e80(0xd9)](_0xb51e80(0x110),{'uiId':_0x40dd87,'type':_0x35afca?.[_0xb51e80(0xda)]}),_0xb51e80(0x109)===_0x40dd87&&this[_0xb51e80(0xfa)]();}[_0x194de3(0xe3)](_0x11d467,_0x1cb936){const _0xc71f74=_0x194de3;if(this[_0xc71f74(0x129)][_0xc71f74(0xe8)](_0x11d467[_0xc71f74(0x123)])&&(this[_0xc71f74(0x129)][_0xc71f74(0x117)](_0x11d467[_0xc71f74(0x123)],_0x11d467),this[_0xc71f74(0xd9)](_0xc71f74(0xd3),{'contextItem':_0x11d467,'isLoading':_0x1cb936}),_0x11d467[_0xc71f74(0xeb)])){const _0x3ebe19=this[_0xc71f74(0x12a)](_0x11d467[_0xc71f74(0xeb)]);_0x3ebe19&&_0x3ebe19[_0xc71f74(0xdd)](_0xbb4e5=>{const _0x28f3c5=_0xc71f74;this[_0x28f3c5(0xc3)](_0xbb4e5,_0x11d467[_0x28f3c5(0xeb)],!0x0);});}}[_0x194de3(0xbf)](_0x263783){const _0x8934e4=_0x194de3;this[_0x8934e4(0xd4)][_0x8934e4(0x117)](_0x263783[_0x8934e4(0x123)],_0x263783);}[_0x194de3(0xdf)](){const _0x13353c=_0x194de3;this[_0x13353c(0xca)]={'document':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xac)]?.[_0x13353c(0xc8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xfd)]?.[_0x13353c(0xc8)]},'files':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xc0)]?.[_0x13353c(0xc8)]},'sources':this[_0x13353c(0xb0)]()},this[_0x13353c(0xd9)](_0x13353c(0xed),{'options':this[_0x13353c(0xca)]});}[_0x194de3(0xb0)](){const _0x23acb5=_0x194de3;return this[_0x23acb5(0x108)]?.[_0x23acb5(0xb8)]?.[_0x23acb5(0x105)](_0x586f09=>({..._0x586f09,'resources':[]}))??[];}[_0x194de3(0xfa)](){const _0x41bc4d=_0x194de3,_0x1cf8c1=this[_0x41bc4d(0xbc)]()||this[_0x41bc4d(0x127)]();this[_0x41bc4d(0xca)][_0x41bc4d(0xac)][_0x41bc4d(0xd0)]=_0x1cf8c1,this[_0x41bc4d(0xd9)](_0x41bc4d(0xed),{'options':this[_0x41bc4d(0xca)]});}[_0x194de3(0x11b)](_0x3d597a){const _0x49b646=_0x194de3;for(const _0x4f29b7 of this[_0x49b646(0x129)][_0x49b646(0x11a)]())if(_0x4f29b7[_0x49b646(0xeb)]===_0x3d597a)return!0x0;for(const _0x15174b of this[_0x49b646(0xd4)][_0x49b646(0x11a)]())if(_0x15174b[_0x49b646(0xeb)]===_0x3d597a)return!0x0;return!0x1;}[_0x194de3(0x12a)](_0x85f959){const _0x3a3b9c=_0x194de3,_0x54d145=[];for(const _0x47a41c of this[_0x3a3b9c(0xca)][_0x3a3b9c(0xb8)]){_0x47a41c[_0x3a3b9c(0xa7)][_0x3a3b9c(0xb5)](_0x3a7288=>_0x3a7288['id']===_0x85f959)&&_0x54d145[_0x3a3b9c(0xbb)](_0x47a41c['id']);}return 0x0===_0x54d145[_0x3a3b9c(0x112)]?null:_0x54d145;}[_0x194de3(0xc3)](_0x5a7a56,_0x173dbd,_0x77f170){const _0x590174=_0x194de3,_0x175b88=this[_0x590174(0xca)][_0x590174(0xb8)][_0x590174(0xb5)](_0x387878=>_0x387878['id']===_0x5a7a56);if(!_0x175b88)return;const _0x467227=_0x175b88[_0x590174(0xa7)][_0x590174(0xb5)](_0x8685e5=>_0x8685e5['id']===_0x173dbd);_0x467227&&(_0x467227[_0x590174(0xef)]=_0x77f170,this[_0x590174(0xd9)](_0x590174(0x126),{'sourceId':_0x5a7a56,'resourceId':_0x173dbd,'isInContext':_0x77f170}));}[_0x194de3(0xaa)](_0x50c9bc){const _0x35a6ed=_0x194de3;this[_0x35a6ed(0xd7)][_0x35a6ed(0x117)](_0x50c9bc,!0x0),this[_0x35a6ed(0xd7)][_0x35a6ed(0xae)]&&this[_0x35a6ed(0xd9)](_0x35a6ed(0x125),{'isUploadInProgress':!0x0});}[_0x194de3(0xb1)](_0x4a0cc7){const _0x145929=_0x194de3;this[_0x145929(0xd7)][_0x145929(0x106)](_0x4a0cc7),0x0===this[_0x145929(0xd7)][_0x145929(0xae)]&&this[_0x145929(0xd9)](_0x145929(0x125),{'isUploadInProgress':!0x1});}}
23
+ const _0x36bb60=_0x59ee;(function(_0x339b39,_0x24efdd){const _0x1358d9=_0x59ee,_0x30f0d4=_0x339b39();while(!![]){try{const _0x570167=-parseInt(_0x1358d9(0x23c))/0x1+-parseInt(_0x1358d9(0x242))/0x2*(-parseInt(_0x1358d9(0x200))/0x3)+-parseInt(_0x1358d9(0x21f))/0x4+-parseInt(_0x1358d9(0x1d2))/0x5*(-parseInt(_0x1358d9(0x228))/0x6)+parseInt(_0x1358d9(0x23a))/0x7+parseInt(_0x1358d9(0x1ea))/0x8+-parseInt(_0x1358d9(0x1ed))/0x9;if(_0x570167===_0x24efdd)break;else _0x30f0d4['push'](_0x30f0d4['shift']());}catch(_0x4d9226){_0x30f0d4['push'](_0x30f0d4['shift']());}}}(_0x16c3,0xc57ae));import{CKEditorError as _0x14b66b,ObservableMixin as _0x3aeb56,uid as _0x1b8c2d}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x387a93,AIContextTextResourceType as _0x49caea}from'../../aicore/model/aicontext.js';import{escape as _0x20c0e9}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x36bb60(0x1d9),_0x36bb60(0x1d3),_0x36bb60(0x221),_0x36bb60(0x231),_0x36bb60(0x1fc),_0x36bb60(0x21e),_0x36bb60(0x1df),_0x36bb60(0x254),_0x36bb60(0x1cd)];function _0x16c3(){const _0x47030f=['uploadFile','hidden','contextItemAdded','from','_mapContextItemToRequestData','uploadUrl','addCurrentDocumentToContext','content','sourceResourcesLoaded','HTML','_getCustomSourcesInitialState','map','_conversationContextItems','push','files','SELECTION','addUrlToContext','ai-chat-source-not-found','_connector','8751440lTyAmu','getId','_ongoingUploadOperations','5948001sseIrJ','version','getDocument','attributes','ai-chat-context-unsupported-type','_config','_addContextOptionsState','get','ai-chat-document-upload-failed','sessionId','selection','updateCurrentDocument','_removeContextItem','all','_findSourceIdsByResourceId','error','ai-chat-context-invalid-data','object\x20with\x20content\x20and\x20type\x20properties','string','147NAQEFh','_createContextItemFromContent','TEXT','current-document','text/plain','url-','_ownerId','removeSelectionFromContext','forEach','_setAddContextOptionsDefaultState','values','find','clearPendingContextItems','set','isSelectionInContext','populateFromMessage','filter','isHidden','urls','getResources','isCurrentDocumentInConversation','isReadOnly','removeFromContext','sources','ai-chat-url-upload-failed','abort','url','resourceId','message','start','addContextOptionsChanged','610748MgrBsc','text/html','contextItemLoadingEnded','document','isInContext','MARKDOWN','uiId','getData','end','575922fFjjQf','size','init','abortController','getPendingContextItems','name','_convertTextResourceToFile','file-','length','contextSent','ai-chat-source-resources-load-failed','enabled','ai-request-aborted','data','_finishContextItemLoading','_addToConversationContextItem','type','addToConversationContext','9914310CGVodU','files-','1385789yTNjuB','_toggleAddCurrentDocumentOptionVisibility','Current\x20document','getSentContextItems','ai-chat-resource-load-failed','startsWith','16408KGLYqr','addFilesToContext','ai-chat-file-upload-failed','fire','addSelectionToContext','text/markdown','loadSourceResources','_finishUploadOperation','fetchDocument','_startUploadOperation','FILE','_ongoingUploads','File','addResourceToContext','resources','ai-chat-resource-no-data','uploadDocument','stack','resourceStateChanged','delete','label','isCurrentDocumentInContext','has','_addContextItem','uploadProgressChanged','mapContextItemsToRequestData','_pendingContextItems','DOCUMENT','URL','5PHeDVD','contextItemRemoved','_isResourceInContext','object','_updateResourceInContextState'];_0x16c3=function(){return _0x47030f;};return _0x16c3();}function _0x59ee(_0x261871,_0x1c93aa){const _0x16c352=_0x16c3();return _0x59ee=function(_0x59eeb0,_0x204079){_0x59eeb0=_0x59eeb0-0x1cd;let _0x4cbe75=_0x16c352[_0x59eeb0];return _0x4cbe75;},_0x59ee(_0x261871,_0x1c93aa);}export class AIChatContext extends _0x3aeb56(){[_0x36bb60(0x1e9)];[_0x36bb60(0x1f2)];[_0x36bb60(0x206)];constructor({connector:_0x267f42,config:_0x36f5de,ownerId:_0x6cffa3}){const _0x35e3fd=_0x36bb60;super(),this[_0x35e3fd(0x1e9)]=_0x267f42,this[_0x35e3fd(0x1f2)]=_0x36f5de,this[_0x35e3fd(0x206)]=_0x6cffa3;}[_0x36bb60(0x22a)](){const _0x2c2608=_0x36bb60;this[_0x2c2608(0x1cf)]=new Map(),this[_0x2c2608(0x1e3)]=new Map(),this[_0x2c2608(0x24d)]=new Map(),this[_0x2c2608(0x1ec)]=new Map(),this[_0x2c2608(0x209)]();}[_0x36bb60(0x22c)](){const _0x5c8930=_0x36bb60;return this[_0x5c8930(0x1cf)];}async[_0x36bb60(0x20f)](_0x3d8333){const _0x573cba=_0x36bb60,_0x48e10b=await this[_0x573cba(0x201)](_0x3d8333);return this[_0x573cba(0x237)](_0x48e10b),_0x573cba(0x203)===_0x48e10b[_0x573cba(0x225)]&&this[_0x573cba(0x23d)](),_0x48e10b;}async[_0x36bb60(0x201)](_0x5109e1){const _0x3a06de=_0x36bb60;if(_0x5109e1[_0x3a06de(0x238)]===_0x387a93[_0x3a06de(0x1d0)]){const _0x24cb85=await this[_0x3a06de(0x1e9)][_0x3a06de(0x24a)](this[_0x3a06de(0x206)],_0x5109e1['id'])[_0x3a06de(0x1ef)]();return{'id':_0x3a06de(0x203),'uiId':_0x3a06de(0x203),'label':_0x3a06de(0x23e),'type':_0x5109e1[_0x3a06de(0x238)],'content':_0x24cb85[_0x3a06de(0x1de)],'hidden':this[_0x3a06de(0x1e3)][_0x3a06de(0x258)](_0x3a06de(0x203)),'version':_0x24cb85[_0x3a06de(0x1f0)]?.[_0x3a06de(0x1ee)],'sessionId':_0x24cb85[_0x3a06de(0x1f0)]?.[_0x3a06de(0x1f6)]};}return{'id':_0x5109e1['id'],'uiId':_0x5109e1['id'],'label':_0x5109e1[_0x3a06de(0x1f0)]?.[_0x3a06de(0x256)]||_0x5109e1[_0x3a06de(0x22d)]||_0x5109e1[_0x3a06de(0x21a)]||_0x5109e1['id'],'type':_0x5109e1[_0x3a06de(0x238)],..._0x5109e1?.[_0x3a06de(0x1f0)]?.[_0x3a06de(0x21b)]?{'resourceId':_0x5109e1[_0x3a06de(0x1f0)]?.[_0x3a06de(0x21b)]}:{}};}[_0x36bb60(0x23f)](){const _0x3055bc=_0x36bb60;return new Map(this[_0x3055bc(0x1e3)]);}[_0x36bb60(0x216)](_0x48bd5b){const _0x4dc535=_0x36bb60,_0x457e1a=this[_0x4dc535(0x1cf)][_0x4dc535(0x1f4)](_0x48bd5b);_0x457e1a?.[_0x4dc535(0x215)]||this[_0x4dc535(0x1f9)](_0x48bd5b);}[_0x36bb60(0x20c)](){const _0x4b4354=_0x36bb60;if(0x0===this[_0x4b4354(0x1cf)][_0x4b4354(0x229)])return;for(const _0x44db8a of this[_0x4b4354(0x1cf)][_0x4b4354(0x20a)]())this[_0x4b4354(0x1f9)](_0x44db8a[_0x4b4354(0x225)]);const _0x23ceca=this[_0x4b4354(0x1e3)][_0x4b4354(0x1f4)](_0x4b4354(0x203))||this[_0x4b4354(0x1cf)][_0x4b4354(0x1f4)](_0x4b4354(0x203));_0x23ceca&&this[_0x4b4354(0x259)]({..._0x23ceca,'isReadOnly':!0x0,'hidden':!0x0});}[_0x36bb60(0x239)](_0x17ffea){const _0xa3da03=_0x36bb60;for(const _0x42bd2f of _0x17ffea[_0xa3da03(0x20a)]())this[_0xa3da03(0x237)](_0x42bd2f);this[_0xa3da03(0x20c)](),this[_0xa3da03(0x245)](_0xa3da03(0x231),{'contextItems':Array[_0xa3da03(0x1da)](this[_0xa3da03(0x23f)]()[_0xa3da03(0x20a)]())});}[_0x36bb60(0x257)](){const _0x53a596=_0x36bb60;return this[_0x53a596(0x1cf)][_0x53a596(0x258)](_0x53a596(0x203));}[_0x36bb60(0x20e)](){const _0x245e2b=_0x36bb60;return this[_0x245e2b(0x1cf)][_0x245e2b(0x258)](_0x245e2b(0x1f7));}[_0x36bb60(0x214)](){const _0x1a6431=_0x36bb60;return this[_0x1a6431(0x1e3)][_0x1a6431(0x258)](_0x1a6431(0x203));}static[_0x36bb60(0x1ce)](_0x377774){const _0x19f74f=_0x36bb60;return Array[_0x19f74f(0x1da)](_0x377774[_0x19f74f(0x20a)]())[_0x19f74f(0x1e2)](_0x69830f=>this[_0x19f74f(0x1db)](_0x69830f))[_0x19f74f(0x210)](_0x1a5c3d=>null!==_0x1a5c3d);}async[_0x36bb60(0x243)](_0x15221d,_0x2e3469,_0x1d4135=_0x387a93[_0x36bb60(0x24c)]){const _0x1c7f30=_0x36bb60,_0x2f5b9c=_0x1c7f30(0x23b)+_0x1b8c2d();this[_0x1c7f30(0x24b)](_0x2f5b9c);try{await Promise[_0x1c7f30(0x1fa)](_0x15221d[_0x1c7f30(0x1e2)](async _0x57865a=>{const _0x3580e1=_0x1c7f30,_0x28664a=_0x3580e1(0x22f)+_0x1b8c2d(),_0x4eb627=_0x20c0e9(_0x57865a[_0x3580e1(0x22d)]);try{this[_0x3580e1(0x259)]({'type':_0x1d4135,'label':_0x2e3469?.[_0x3580e1(0x256)]||_0x4eb627,'uiId':_0x28664a,'resourceId':_0x2e3469?.[_0x3580e1(0x21b)]},!0x0);const _0x3db59f=this[_0x3580e1(0x1e9)][_0x3580e1(0x1d7)](this[_0x3580e1(0x206)],_0x57865a,_0x2e3469);this[_0x3580e1(0x24d)][_0x3580e1(0x20d)](_0x28664a,_0x3db59f[_0x3580e1(0x22b)]);const {id:_0x4b1fe6}=await _0x3db59f[_0x3580e1(0x1eb)]();this[_0x3580e1(0x24d)][_0x3580e1(0x255)](_0x28664a),this[_0x3580e1(0x236)]({'type':_0x1d4135,'id':_0x4b1fe6,'label':_0x2e3469?.[_0x3580e1(0x256)]||_0x4eb627,'uiId':_0x28664a,'resourceId':_0x2e3469?.[_0x3580e1(0x21b)]},!0x1);}catch(_0x4c577b){this[_0x3580e1(0x24d)][_0x3580e1(0x255)](_0x28664a);if(!_0x4c577b[_0x3580e1(0x21c)][_0x3580e1(0x241)](_0x3580e1(0x234))){const _0x525a5f=new _0x14b66b(_0x3580e1(0x244),null,{'fileName':_0x4eb627});_0x525a5f[_0x3580e1(0x253)]=_0x4c577b[_0x3580e1(0x253)],this[_0x3580e1(0x245)](_0x3580e1(0x1fc),{'error':_0x525a5f,'fileName':_0x4eb627});}this[_0x3580e1(0x1f9)](_0x28664a);}}));}finally{this[_0x1c7f30(0x249)](_0x2f5b9c);}}[_0x36bb60(0x1dd)](_0x48b454){const _0x152d61=_0x36bb60;if(this[_0x152d61(0x257)]())return;const _0x3d7e40={'type':_0x387a93[_0x152d61(0x1d0)],'uiId':_0x152d61(0x203),'label':_0x48b454,'isReadOnly':this[_0x152d61(0x1e3)][_0x152d61(0x258)](_0x152d61(0x203)),'hidden':this[_0x152d61(0x1e3)][_0x152d61(0x258)](_0x152d61(0x203))};this[_0x152d61(0x259)](_0x3d7e40);}async[_0x36bb60(0x1f8)](_0x1c9fe3,_0x2db623,_0x41d169,_0x328bc0){const _0x1e6627=_0x36bb60,_0x1c18e7=this[_0x1e6627(0x1cf)][_0x1e6627(0x1f4)](_0x1e6627(0x203));if(_0x1c18e7&&_0x1c9fe3){_0x1c18e7[_0x1e6627(0x1f7)]=_0x328bc0?_0x328bc0[_0x1e6627(0x1e2)](_0x480a51=>({'start':_0x480a51[_0x1e6627(0x21d)],'end':_0x480a51[_0x1e6627(0x227)]})):[];try{if(_0x1c18e7[_0x1e6627(0x1ee)]===_0x2db623)return;const {id:_0x587ed9}=await this[_0x1e6627(0x1e9)][_0x1e6627(0x252)](this[_0x1e6627(0x206)],_0x1c9fe3,{'version':_0x2db623,'sessionId':_0x41d169})[_0x1e6627(0x1eb)]();_0x1c18e7['id']=_0x587ed9,_0x1c18e7[_0x1e6627(0x1de)]=_0x1c9fe3,_0x1c18e7[_0x1e6627(0x1ee)]=_0x2db623,_0x1c18e7[_0x1e6627(0x1f6)]=_0x41d169;}catch(_0x279ea4){const _0x1f1b5a=new _0x14b66b(_0x1e6627(0x1f5),null);_0x1f1b5a[_0x1e6627(0x253)]=_0x279ea4[_0x1e6627(0x253)],this[_0x1e6627(0x245)](_0x1e6627(0x1fc),{'error':_0x1f1b5a});}}}[_0x36bb60(0x246)](_0x4f6c67){const _0x362604=_0x36bb60;this[_0x362604(0x259)]({'type':_0x387a93[_0x362604(0x1e6)],'label':_0x4f6c67,'uiId':_0x362604(0x1f7),'content':_0x4f6c67});}[_0x36bb60(0x207)](){const _0x2a98d9=_0x36bb60;this[_0x2a98d9(0x1f9)](_0x2a98d9(0x1f7));}async[_0x36bb60(0x1e7)](_0x820d80,_0x50c92e){const _0x117f20=_0x36bb60,_0x21b63a=_0x117f20(0x205)+_0x1b8c2d();this[_0x117f20(0x24b)](_0x21b63a);const _0x387f4b=_0x117f20(0x205)+_0x1b8c2d();try{this[_0x117f20(0x259)]({'type':_0x387a93[_0x117f20(0x1d1)],'label':_0x50c92e?.[_0x117f20(0x256)]||_0x820d80,'uiId':_0x387f4b,'resourceId':_0x50c92e?.[_0x117f20(0x21b)]},!0x0);const _0x593f97=this[_0x117f20(0x1e9)][_0x117f20(0x1dc)](this[_0x117f20(0x206)],_0x820d80,_0x50c92e);this[_0x117f20(0x24d)][_0x117f20(0x20d)](_0x387f4b,_0x593f97[_0x117f20(0x22b)]);const {id:_0x251001}=await _0x593f97[_0x117f20(0x1eb)]();this[_0x117f20(0x24d)][_0x117f20(0x255)](_0x387f4b),this[_0x117f20(0x236)]({'type':_0x387a93[_0x117f20(0x1d1)],'id':_0x251001,'label':_0x50c92e?.[_0x117f20(0x256)]||_0x820d80,'uiId':_0x387f4b,'resourceId':_0x50c92e?.[_0x117f20(0x21b)]},!0x1);}catch(_0x331f73){this[_0x117f20(0x24d)][_0x117f20(0x255)](_0x387f4b),(_0x331f73[_0x117f20(0x21c)][_0x117f20(0x241)](_0x117f20(0x234))||this[_0x117f20(0x245)](_0x117f20(0x1fc),{'error':new _0x14b66b(_0x117f20(0x218),this,{'url':_0x820d80,'originalError':_0x331f73}),'url':_0x820d80}),this[_0x117f20(0x1f9)](_0x387f4b));}finally{this[_0x117f20(0x249)](_0x21b63a);}}async[_0x36bb60(0x248)](_0x2063e7,_0x41d349,_0x5752e4){const _0xd75f02=_0x36bb60,_0x4bd225=this[_0xd75f02(0x1f3)][_0xd75f02(0x217)][_0xd75f02(0x20b)](_0x49c1ee=>_0x49c1ee['id']===_0x2063e7);if(!_0x4bd225)return this[_0xd75f02(0x245)](_0xd75f02(0x1fc),{'error':new _0x14b66b(_0xd75f02(0x1e8),this,{'sourceId':_0x2063e7}),'sourceId':_0x2063e7}),[];try{const _0x635da9=(await _0x4bd225[_0xd75f02(0x213)](_0x41d349))[_0xd75f02(0x1e2)](_0x24707d=>{const _0x6c7f66=_0xd75f02,_0x31e987=this[_0x6c7f66(0x1d4)](_0x24707d['id']);return{..._0x24707d,'isInContext':_0x31e987};});return _0x4bd225[_0xd75f02(0x250)]=_0x635da9,this[_0xd75f02(0x245)](_0xd75f02(0x1df),{'sourceId':_0x2063e7,'source':_0x4bd225,'resources':_0x635da9,'uid':_0x5752e4}),_0x635da9;}catch(_0x3518c3){return this[_0xd75f02(0x245)](_0xd75f02(0x1fc),{'error':new _0x14b66b(_0xd75f02(0x232),this,{'sourceId':_0x2063e7,'originalError':_0x3518c3}),'sourceId':_0x2063e7,'sourceLabel':_0x4bd225[_0xd75f02(0x256)]}),[];}}async[_0x36bb60(0x24f)](_0x2d96fb,_0x12c4c4){const _0x164790=_0x36bb60;if(this[_0x164790(0x1d4)](_0x12c4c4['id']))return;let _0x3ec9cf=_0x12c4c4[_0x164790(0x235)];if(!_0x3ec9cf&&_0x2d96fb[_0x164790(0x226)])try{_0x3ec9cf=await _0x2d96fb[_0x164790(0x226)](_0x12c4c4['id']);}catch(_0x46d135){return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x240),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'originalError':_0x46d135}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}if(_0x3ec9cf)switch(_0x12c4c4[_0x164790(0x238)]){case _0x387a93[_0x164790(0x1d1)]:if(_0x164790(0x1ff)!=typeof _0x3ec9cf)return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x1ff),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});await this[_0x164790(0x1e7)](_0x3ec9cf,{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']});break;case _0x387a93[_0x164790(0x24c)]:if(!(_0x3ec9cf instanceof File))return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x24e),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});await this[_0x164790(0x243)]([_0x3ec9cf],{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']});break;case _0x387a93[_0x164790(0x202)]:if(_0x164790(0x1d5)!=typeof _0x3ec9cf||!(_0x164790(0x1de)in _0x3ec9cf)||!(_0x164790(0x238)in _0x3ec9cf))return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x1fe),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});_0x3ec9cf=AIChatContext[_0x164790(0x22e)](_0x3ec9cf,_0x12c4c4[_0x164790(0x256)]),await this[_0x164790(0x243)]([_0x3ec9cf],{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']},_0x387a93[_0x164790(0x202)]);break;default:this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1f1),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'resourceType':_0x12c4c4[_0x164790(0x238)]}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}else this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x251),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}static[_0x36bb60(0x22e)](_0x587a10,_0x4ef3cf){const _0x7cff63=_0x36bb60;switch(_0x587a10[_0x7cff63(0x238)]){case _0x49caea[_0x7cff63(0x224)]:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x247)});case _0x49caea[_0x7cff63(0x1e0)]:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x220)});default:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x204)});}}static[_0x36bb60(0x1db)](_0x471f4d){const _0x44251e=_0x36bb60;switch(_0x471f4d[_0x44251e(0x238)]){case _0x387a93[_0x44251e(0x24c)]:return{'type':_0x387a93[_0x44251e(0x24c)],'id':_0x471f4d['id']};case _0x387a93[_0x44251e(0x1d1)]:return{'type':_0x387a93[_0x44251e(0x1d1)],'id':_0x471f4d['id']};case _0x387a93[_0x44251e(0x1d0)]:return{'type':_0x387a93[_0x44251e(0x1d0)],'id':_0x471f4d['id'],..._0x471f4d[_0x44251e(0x1f7)]?.[_0x44251e(0x230)]&&{'selection':_0x471f4d[_0x44251e(0x1f7)]}};case _0x387a93[_0x44251e(0x202)]:return{'type':_0x387a93[_0x44251e(0x24c)],'id':_0x471f4d['id']};default:return null;}}[_0x36bb60(0x259)](_0x18bd4b,_0x16d2ef=!0x1){const _0xd5943a=_0x36bb60;if(this[_0xd5943a(0x1cf)][_0xd5943a(0x20d)](_0x18bd4b[_0xd5943a(0x225)],_0x18bd4b),_0x18bd4b[_0xd5943a(0x1d8)]||this[_0xd5943a(0x245)](_0xd5943a(0x1d9),{'contextItem':_0x18bd4b,'isLoading':_0x16d2ef}),_0xd5943a(0x203)===_0x18bd4b[_0xd5943a(0x225)]&&this[_0xd5943a(0x23d)](),_0x18bd4b[_0xd5943a(0x21b)]){const _0x3ed0c=this[_0xd5943a(0x1fb)](_0x18bd4b[_0xd5943a(0x21b)]);_0x3ed0c&&_0x3ed0c[_0xd5943a(0x208)](_0xbf4b9f=>{const _0x5c09d9=_0xd5943a;this[_0x5c09d9(0x1d6)](_0xbf4b9f,_0x18bd4b[_0x5c09d9(0x21b)],!0x0);});}}[_0x36bb60(0x1f9)](_0x1fb334){const _0x1906db=_0x36bb60,_0x1d2398=this[_0x1906db(0x1cf)][_0x1906db(0x1f4)](_0x1fb334),_0x3e04b5=this[_0x1906db(0x24d)][_0x1906db(0x1f4)](_0x1fb334);if(_0x3e04b5&&(_0x3e04b5[_0x1906db(0x219)](),this[_0x1906db(0x24d)][_0x1906db(0x255)](_0x1fb334)),_0x1d2398?.[_0x1906db(0x21b)]){const _0x3dd654=this[_0x1906db(0x1fb)](_0x1d2398[_0x1906db(0x21b)]);_0x3dd654&&_0x3dd654[_0x1906db(0x208)](_0x482d4a=>{const _0x567c72=_0x1906db;this[_0x567c72(0x1d6)](_0x482d4a,_0x1d2398[_0x567c72(0x21b)],!0x1);});}this[_0x1906db(0x1cf)][_0x1906db(0x255)](_0x1fb334),this[_0x1906db(0x245)](_0x1906db(0x1d3),{'uiId':_0x1fb334,'type':_0x1d2398?.[_0x1906db(0x238)]}),_0x1906db(0x203)===_0x1fb334&&this[_0x1906db(0x23d)]();}[_0x36bb60(0x236)](_0x24433a,_0x25e5d7){const _0x387f5c=_0x36bb60;if(this[_0x387f5c(0x1cf)][_0x387f5c(0x258)](_0x24433a[_0x387f5c(0x225)])&&(this[_0x387f5c(0x1cf)][_0x387f5c(0x20d)](_0x24433a[_0x387f5c(0x225)],_0x24433a),this[_0x387f5c(0x245)](_0x387f5c(0x221),{'contextItem':_0x24433a,'isLoading':_0x25e5d7}),_0x24433a[_0x387f5c(0x21b)])){const _0x444c99=this[_0x387f5c(0x1fb)](_0x24433a[_0x387f5c(0x21b)]);_0x444c99&&_0x444c99[_0x387f5c(0x208)](_0x7c9261=>{const _0x485277=_0x387f5c;this[_0x485277(0x1d6)](_0x7c9261,_0x24433a[_0x485277(0x21b)],!0x0);});}}[_0x36bb60(0x237)](_0x143fde){const _0x5dbbf5=_0x36bb60;this[_0x5dbbf5(0x1e3)][_0x5dbbf5(0x20d)](_0x143fde[_0x5dbbf5(0x225)],_0x143fde);}[_0x36bb60(0x209)](){const _0x53f65d=_0x36bb60;this[_0x53f65d(0x1f3)]={'document':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x222)]?.[_0x53f65d(0x233)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x212)]?.[_0x53f65d(0x233)]},'files':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x1e5)]?.[_0x53f65d(0x233)]},'sources':this[_0x53f65d(0x1e1)]()},this[_0x53f65d(0x245)](_0x53f65d(0x21e),{'options':this[_0x53f65d(0x1f3)]});}[_0x36bb60(0x1e1)](){const _0x19d247=_0x36bb60;return this[_0x19d247(0x1f2)]?.[_0x19d247(0x217)]?.[_0x19d247(0x1e2)](_0x394fb1=>({..._0x394fb1,'resources':[]}))??[];}[_0x36bb60(0x23d)](){const _0x5b6c70=_0x36bb60,_0x355c5c=this[_0x5b6c70(0x257)]()||this[_0x5b6c70(0x214)]();this[_0x5b6c70(0x1f3)][_0x5b6c70(0x222)][_0x5b6c70(0x211)]=_0x355c5c,this[_0x5b6c70(0x245)](_0x5b6c70(0x21e),{'options':this[_0x5b6c70(0x1f3)]});}[_0x36bb60(0x1d4)](_0x38e1c0){const _0x36936c=_0x36bb60;for(const _0x527d3c of this[_0x36936c(0x1cf)][_0x36936c(0x20a)]())if(_0x527d3c[_0x36936c(0x21b)]===_0x38e1c0)return!0x0;for(const _0x3d0578 of this[_0x36936c(0x1e3)][_0x36936c(0x20a)]())if(_0x3d0578[_0x36936c(0x21b)]===_0x38e1c0)return!0x0;return!0x1;}[_0x36bb60(0x1fb)](_0x2ca9da){const _0x19db13=_0x36bb60,_0x43a520=[];for(const _0x537c2f of this[_0x19db13(0x1f3)][_0x19db13(0x217)]){_0x537c2f[_0x19db13(0x250)][_0x19db13(0x20b)](_0x2a6266=>_0x2a6266['id']===_0x2ca9da)&&_0x43a520[_0x19db13(0x1e4)](_0x537c2f['id']);}return 0x0===_0x43a520[_0x19db13(0x230)]?null:_0x43a520;}[_0x36bb60(0x1d6)](_0x5f1dd9,_0x5827c5,_0x2ae853){const _0x14e6ed=_0x36bb60,_0x28838a=this[_0x14e6ed(0x1f3)][_0x14e6ed(0x217)][_0x14e6ed(0x20b)](_0x538269=>_0x538269['id']===_0x5f1dd9);if(!_0x28838a)return;const _0x2b0d9c=_0x28838a[_0x14e6ed(0x250)][_0x14e6ed(0x20b)](_0x532342=>_0x532342['id']===_0x5827c5);_0x2b0d9c&&(_0x2b0d9c[_0x14e6ed(0x223)]=_0x2ae853,this[_0x14e6ed(0x245)](_0x14e6ed(0x254),{'sourceId':_0x5f1dd9,'resourceId':_0x5827c5,'isInContext':_0x2ae853}));}[_0x36bb60(0x24b)](_0x5eafb5){const _0x4d9d0b=_0x36bb60;this[_0x4d9d0b(0x1ec)][_0x4d9d0b(0x20d)](_0x5eafb5,!0x0),this[_0x4d9d0b(0x1ec)][_0x4d9d0b(0x229)]&&this[_0x4d9d0b(0x245)](_0x4d9d0b(0x1cd),{'isUploadInProgress':!0x0});}[_0x36bb60(0x249)](_0x55e1bc){const _0x53ddaf=_0x36bb60;this[_0x53ddaf(0x1ec)][_0x53ddaf(0x255)](_0x55e1bc),0x0===this[_0x53ddaf(0x1ec)][_0x53ddaf(0x229)]&&this[_0x53ddaf(0x245)](_0x53ddaf(0x1cd),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29dd(){const _0x35d9e5=['delegate','lastInteraction','getDefault','contextItems','setModel','handleUserInteraction','1032VybGyV','getInteraction','isCurrentDocumentInContext','reset','find','382417Emkyzs','36uXFcnt','ai-chat-conversation-already-started','isCurrentDocumentInConversation','getAll','153515uOUbZZ','assistant','ai-chat-conversation-init-from-id-failed','11wqVTdX','createInteraction','483VVZUnx','updateCurrentDocument','destroy','chatContext','321016Iqgswo','splice','length','getDocumentContext','group','conversationStarted','_extractContextItems','getPendingContextItems','prompt','241805mBpxKk','conversationInitialized','startConversation','message','content','addUrlToContext','currentInteraction','addResourceToContext','isStarted','ai-chat-conversation-set-model-null','fire','quickActionData','attributes','role','defaultModelId','sessionId','addToConversationContext','loadSourceResources','ai-chat-conversation-set-model-not-available','isSelectionInContext','getConversation','capabilities','isAvailable','getCapabilitiesConfig','init','interactions','removeFromContext','type','5971810DwHOpe','conversationId','text','stack','2148zMcbeE','populateFromMessage','load','indexOf','ai-chat-conversation-init-failed','title','chatCapabilities','updateCurrentDocumentInContext','start','reasoning','ai-chat-conversation-start-failed','user','setConversationTitle','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','addSelectionToContext','_processMessagesToInteractions','error','5031xPmSFF','toLowerCase','text-delta','connector','modification-delta','toggleReasoning','model','toggleWebSearch','options','currentReply','modelSelected','appendContent','webSearch','interactionCreated','hasOwn','push','set','addFilesToContext','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext','stop','selectedModel','removeInteraction','createReply','chatModels','fetchConversationMessages','getMessages','getCurrentDocumentContext','getEditor','fetchConversation','ai-chat-conversation-start-no-model-selected'];_0x29dd=function(){return _0x35d9e5;};return _0x29dd();}const _0x553bfe=_0x48e1;(function(_0x4019be,_0x55a62f){const _0x554c95=_0x48e1,_0x561b73=_0x4019be();while(!![]){try{const _0x1525d5=parseInt(_0x554c95(0x1fd))/0x1+parseInt(_0x554c95(0x1f4))/0x2+parseInt(_0x554c95(0x1f0))/0x3*(parseInt(_0x554c95(0x21d))/0x4)+parseInt(_0x554c95(0x1eb))/0x5*(parseInt(_0x554c95(0x1e7))/0x6)+parseInt(_0x554c95(0x1e6))/0x7+parseInt(_0x554c95(0x1e1))/0x8*(parseInt(_0x554c95(0x22f))/0x9)+-parseInt(_0x554c95(0x219))/0xa*(parseInt(_0x554c95(0x1ee))/0xb);if(_0x1525d5===_0x55a62f)break;else _0x561b73['push'](_0x561b73['shift']());}catch(_0x57418f){_0x561b73['push'](_0x561b73['shift']());}}}(_0x29dd,0x31735));function _0x48e1(_0x415212,_0xb361cb){const _0x29dde4=_0x29dd();return _0x48e1=function(_0x48e12c,_0x3263c7){_0x48e12c=_0x48e12c-0x1bd;let _0x33a984=_0x29dde4[_0x48e12c];return _0x33a984;},_0x48e1(_0x415212,_0xb361cb);}import{CKEditorError as _0x53d72b,EmitterMixin as _0x22ffd0}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b1e7b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f2ae3,AI_CONTEXT_MODEL_EVENT_NAMES as _0x21d635}from'./aichatcontext.js';import{AICapabilities as _0x4e9e24,CAPABILITIES_MODEL_EVENT_NAMES as _0x399fac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x467d53}from'./aichatinteraction.js';export class AIChatConversation extends _0x22ffd0(){['id'];[_0x553bfe(0x205)]=!0x1;[_0x553bfe(0x216)]=[];[_0x553bfe(0x203)];[_0x553bfe(0x1d1)];[_0x553bfe(0x1bf)];[_0x553bfe(0x1c4)];constructor(_0x4ef96c){const _0x4ebabd=_0x553bfe;super(),this[_0x4ebabd(0x1c4)]=_0x4ef96c,this[_0x4ebabd(0x1bf)]=_0x4ef96c[_0x4ebabd(0x1bf)],this[_0x4ebabd(0x1d4)]=_0x4ef96c[_0x4ebabd(0x1d4)],this['id']=_0x4ef96c[_0x4ebabd(0x21a)];}async[_0x553bfe(0x215)](_0x152a66){const _0x2d477b=_0x553bfe;try{this[_0x2d477b(0x1f3)]=new _0x3f2ae3({'connector':this[_0x2d477b(0x1bf)],'config':_0x152a66,'ownerId':this['id']}),this[_0x2d477b(0x1f3)][_0x2d477b(0x1db)](..._0x21d635)['to'](this),this[_0x2d477b(0x1f3)][_0x2d477b(0x215)](),this[_0x2d477b(0x223)]=new _0x4e9e24(),this[_0x2d477b(0x223)][_0x2d477b(0x1db)](..._0x399fac)['to'](this),this[_0x2d477b(0x223)][_0x2d477b(0x215)]();const _0x44e06b=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1ea)]();this[_0x2d477b(0x207)](_0x2d477b(0x1fe),{'availableModels':_0x44e06b});const _0x2dc3f8=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1dd)](this[_0x2d477b(0x1c4)][_0x2d477b(0x20b)]);_0x2dc3f8&&await this[_0x2d477b(0x1df)](_0x2dc3f8);}catch(_0x17d203){const _0x59417d=new _0x53d72b(_0x2d477b(0x221),null,{'message':_0x17d203[_0x2d477b(0x200)]});_0x59417d[_0x2d477b(0x21c)]=_0x17d203[_0x2d477b(0x21c)],this[_0x2d477b(0x207)](_0x2d477b(0x22e),{'error':_0x59417d});}}async[_0x553bfe(0x225)](){const _0x569b50=_0x553bfe;if(this[_0x569b50(0x205)])throw new _0x53d72b(_0x569b50(0x1e8),null,{'conversation':this});if(!this[_0x569b50(0x1d1)])throw new _0x53d72b(_0x569b50(0x1da),null,{'conversation':this});try{const {id:_0x6b8c07}=await this[_0x569b50(0x1bf)][_0x569b50(0x1ff)](this['id'],this[_0x569b50(0x1c4)][_0x569b50(0x1f8)])[_0x569b50(0x211)]();this['id']=_0x6b8c07,this[_0x569b50(0x205)]=!0x0,this[_0x569b50(0x207)](_0x569b50(0x1f9),{'conversationId':this['id'],'selectedModel':this[_0x569b50(0x1d1)]});}catch(_0x1561ea){const _0x5f51ef=new _0x53d72b(_0x569b50(0x227),null,{'message':_0x1561ea[_0x569b50(0x200)]});_0x5f51ef[_0x569b50(0x21c)]=_0x1561ea[_0x569b50(0x21c)],this[_0x569b50(0x207)](_0x569b50(0x22e),{'error':_0x5f51ef});}}async[_0x553bfe(0x21f)](_0x279b98,_0x1a88d4){const _0x2fd802=_0x553bfe;try{const _0xeac405=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d9)](_0x279b98)[_0x2fd802(0x211)](),_0x4ce7c8=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d5)](_0x279b98)[_0x2fd802(0x1d6)](),_0x521661=_0x4ce7c8[0x0][_0x2fd802(0x1c2)];this[_0x2fd802(0x205)]=!0x0,this['id']=_0xeac405['id'],_0x2fd802(0x222)in _0xeac405?this[_0x2fd802(0x207)](_0x2fd802(0x229),_0xeac405[_0x2fd802(0x222)],!0x0):this[_0x2fd802(0x207)](_0x2fd802(0x229),'',!0x0);const _0x5a820d=(await this[_0x2fd802(0x1d4)][_0x2fd802(0x1ea)]())[_0x2fd802(0x1e5)](_0x407914=>_0x407914['id'][_0x2fd802(0x1bd)]()===_0x521661[_0x2fd802(0x1bd)]());return this[_0x2fd802(0x1d1)]=_0x5a820d,this[_0x2fd802(0x207)](_0x2fd802(0x1c6),{'selectedModel':_0x5a820d,'isDisabled':!0x0}),await this[_0x2fd802(0x22d)](_0x4ce7c8,_0x1a88d4,_0x521661),this[_0x2fd802(0x203)]=void 0x0,this;}catch(_0x193f56){const _0x4cc45d=new _0x53d72b(_0x2fd802(0x1ed),null,{'message':_0x193f56[_0x2fd802(0x200)],'conversationId':_0x279b98});throw _0x4cc45d[_0x2fd802(0x21c)]=_0x193f56[_0x2fd802(0x21c)],this[_0x2fd802(0x207)](_0x2fd802(0x22e),{'error':_0x4cc45d}),_0x4cc45d;}}async[_0x553bfe(0x22d)](_0x4d94df,_0x22b8b2,_0xc53e71){const _0x45923f=_0x553bfe;let _0x5dda47;for(const _0x175709 of _0x4d94df)if(_0x45923f(0x228)===_0x175709[_0x45923f(0x20a)]){const _0x597c05=await this[_0x45923f(0x1fa)](_0x175709),_0x1b6cf8={'isReasoningEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x226)),'isWebSearchEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x1c8))};_0x5dda47=this[_0x45923f(0x1ef)]({'userMessage':_0x175709[_0x45923f(0x1fc)],'contextItems':_0x597c05,'capabilities':_0x1b6cf8,'modelId':_0xc53e71,'quickActionData':_0x175709[_0x45923f(0x209)]?.[_0x45923f(0x208)]}),this[_0x45923f(0x203)]=_0x5dda47,this[_0x45923f(0x1f3)][_0x45923f(0x20d)](this[_0x45923f(0x203)][_0x45923f(0x1de)]);}else{if(_0x45923f(0x1ec)===_0x175709[_0x45923f(0x20a)]&&_0x5dda47)for(const _0x1c48cf of _0x175709[_0x45923f(0x201)]){const _0x5c5703=_0x45923f(0x21b)===_0x1c48cf[_0x45923f(0x218)]?_0x45923f(0x1be):_0x45923f(0x1c0),_0x19ffda=_0x5dda47[_0x45923f(0x1f7)]()?.[_0x45923f(0x20c)]!==_0x22b8b2;_0x5dda47[_0x45923f(0x1c5)]=_0x5dda47[_0x45923f(0x1d3)]({'type':_0x5c5703,'isDone':!0x0,'interactionId':_0x5dda47['id'],'areActionsDisabled':_0x19ffda}),_0x5dda47[_0x45923f(0x1c5)][_0x45923f(0x1c7)](_0x1c48cf[_0x45923f(0x201)]);}}}async[_0x553bfe(0x1fa)](_0x5535f0){const _0x52a106=_0x553bfe,_0x41ce97=new Map();if(!_0x5535f0[_0x52a106(0x201)])return _0x41ce97;for(const _0x3b7d6c of _0x5535f0[_0x52a106(0x201)]){const _0x1e7564=await this[_0x52a106(0x1f3)][_0x52a106(0x21e)](_0x3b7d6c);_0x1e7564&&_0x41ce97[_0x52a106(0x1cc)](_0x1e7564['id'],_0x1e7564);}return _0x41ce97;}async[_0x553bfe(0x1e0)]({userMessage:_0x10e13d,quickActionData:_0x30d98e}){const _0x1ffd60=_0x553bfe;if(!this[_0x1ffd60(0x205)])throw new _0x53d72b(_0x1ffd60(0x22b),null,{'conversation':this});if(this[_0x1ffd60(0x203)])throw new _0x53d72b(_0x1ffd60(0x1ce),null,{'conversation':this});try{const _0x318e60=this[_0x1ffd60(0x1f3)][_0x1ffd60(0x1fb)](),_0x491294=this[_0x1ffd60(0x223)][_0x1ffd60(0x214)](),_0x31efeb=this[_0x1ffd60(0x1d1)]['id'];this[_0x1ffd60(0x203)]=this[_0x1ffd60(0x1ef)]({'userMessage':_0x10e13d,'contextItems':_0x318e60,'capabilities':_0x491294,'modelId':_0x31efeb,'quickActionData':_0x30d98e}),await this[_0x1ffd60(0x203)][_0x1ffd60(0x225)](),this[_0x1ffd60(0x1f3)][_0x1ffd60(0x20d)](this[_0x1ffd60(0x203)][_0x1ffd60(0x1de)]);}catch(_0x21ac2e){this[_0x1ffd60(0x207)](_0x1ffd60(0x22e),{'interactionId':this[_0x1ffd60(0x203)]?this[_0x1ffd60(0x203)]['id']:void 0x0,'error':_0x21ac2e});}finally{this[_0x1ffd60(0x203)]?.[_0x1ffd60(0x1d0)](),this[_0x1ffd60(0x203)]=void 0x0;}}[_0x553bfe(0x1ef)]({userMessage:_0xd172d3,contextItems:_0x2df870,capabilities:_0x1ab136,modelId:_0x3701bc,quickActionData:_0x18f926}){const _0x5cf724=_0x553bfe,_0x45b5b7=new _0x467d53({'userMessage':_0xd172d3,'contextItems':_0x2df870,'capabilities':_0x1ab136,'conversationId':this['id'],'connector':this[_0x5cf724(0x1bf)],'editor':this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)]&&this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)](),'model':_0x3701bc,'quickActionData':_0x18f926});return _0x45b5b7[_0x5cf724(0x1db)](..._0x4b1e7b)['to'](this),this[_0x5cf724(0x216)][_0x5cf724(0x1cb)](_0x45b5b7),this[_0x5cf724(0x207)](_0x5cf724(0x1c9),_0x45b5b7),_0x45b5b7;}[_0x553bfe(0x1e2)](_0x523a57){const _0x272802=_0x553bfe;return this[_0x272802(0x216)][_0x272802(0x1e5)](_0x3e2ae8=>_0x3e2ae8['id']===_0x523a57);}[_0x553bfe(0x1d2)](_0xcfdfda){const _0x54f81b=_0x553bfe,_0x3e50cf=this[_0x54f81b(0x1e2)](_0xcfdfda);_0x3e50cf&&(_0x3e50cf[_0x54f81b(0x1f2)](),this[_0x54f81b(0x216)][_0x54f81b(0x1f5)](this[_0x54f81b(0x216)][_0x54f81b(0x220)](_0x3e50cf),0x1));}get[_0x553bfe(0x1dc)](){const _0x18542=_0x553bfe;return this[_0x18542(0x216)][this[_0x18542(0x216)][_0x18542(0x1f6)]-0x1];}[_0x553bfe(0x22a)](_0x4ed1fb){const _0x4283a1=_0x553bfe;this[_0x4283a1(0x1f3)][_0x4283a1(0x22a)](_0x4ed1fb);}async[_0x553bfe(0x224)]({content:_0x25801a,version:_0xa812b3,sessionId:_0x4c7ed6,selections:_0x1c2217}){const _0x48fe52=_0x553bfe;await this[_0x48fe52(0x1f3)][_0x48fe52(0x1f1)](_0x25801a,_0xa812b3,_0x4c7ed6,_0x1c2217);}[_0x553bfe(0x1d7)](){const _0x4c202b=_0x553bfe;return this[_0x4c202b(0x203)]?.[_0x4c202b(0x1f7)]()?.[_0x4c202b(0x201)]||'';}[_0x553bfe(0x22c)](_0x24df40){const _0x4c0734=_0x553bfe;this[_0x4c0734(0x1f3)][_0x4c0734(0x22c)](_0x24df40);}[_0x553bfe(0x1cf)](){const _0xdd65a2=_0x553bfe;this[_0xdd65a2(0x1f3)][_0xdd65a2(0x1cf)]();}[_0x553bfe(0x1cd)](_0x520a57){const _0xf57391=_0x553bfe;this[_0xf57391(0x1f3)][_0xf57391(0x1cd)](_0x520a57);}[_0x553bfe(0x202)](_0x592bb5){const _0x1282c6=_0x553bfe;this[_0x1282c6(0x1f3)][_0x1282c6(0x202)](_0x592bb5);}[_0x553bfe(0x204)](_0x42cf91,_0x5b35db){const _0x317d12=_0x553bfe;this[_0x317d12(0x1f3)][_0x317d12(0x204)](_0x42cf91,_0x5b35db);}[_0x553bfe(0x20e)](_0x2c1709,_0x285988,_0x5e4870){const _0x1dd1c0=_0x553bfe;return this[_0x1dd1c0(0x1f3)][_0x1dd1c0(0x20e)](_0x2c1709,_0x285988,_0x5e4870);}[_0x553bfe(0x217)](_0x2cea2d){const _0x43281e=_0x553bfe;this[_0x43281e(0x1f3)][_0x43281e(0x217)](_0x2cea2d);}[_0x553bfe(0x1c3)](){const _0x47b5ef=_0x553bfe;this[_0x47b5ef(0x223)][_0x47b5ef(0x1c3)]();}[_0x553bfe(0x1c1)](){const _0x2d44c2=_0x553bfe;this[_0x2d44c2(0x223)][_0x2d44c2(0x1c1)]();}[_0x553bfe(0x1e3)](){const _0x46534d=_0x553bfe;return this[_0x46534d(0x1f3)][_0x46534d(0x1e3)]();}[_0x553bfe(0x1e9)](){const _0x5077d9=_0x553bfe;return this[_0x5077d9(0x1f3)][_0x5077d9(0x1e9)]();}[_0x553bfe(0x210)](){const _0x49c764=_0x553bfe;return this[_0x49c764(0x1f3)][_0x49c764(0x210)]();}async[_0x553bfe(0x1df)](_0x2cea70){const _0x1c46f7=_0x553bfe;if(!_0x2cea70)throw new _0x53d72b(_0x1c46f7(0x206),null,{'conversation':this});if(!0x1===await this[_0x1c46f7(0x1d4)][_0x1c46f7(0x213)](_0x2cea70))throw new _0x53d72b(_0x1c46f7(0x20f),null,{'conversation':this,'model':_0x2cea70});_0x2cea70['id']!==this[_0x1c46f7(0x1d1)]?.['id']&&(this[_0x1c46f7(0x1d1)]=_0x2cea70,this[_0x1c46f7(0x223)][_0x1c46f7(0x1e4)](),this[_0x1c46f7(0x207)](_0x1c46f7(0x1c6),{'selectedModel':_0x2cea70}));}}
23
+ function _0xc181(){const _0x293d4d=['splice','stop','modification-delta','16nvuond','role','634963cBSzrY','indexOf','createReply','13492lmitQU','chatCapabilities','find','setConversationTitle','isCurrentDocumentInContext','updateCurrentDocument','ai-chat-conversation-init-failed','startConversation','addUrlToContext','_processMessagesToInteractions','error','appendContent','getCurrentDocumentContext','start','toggleReasoning','set','defaultModelId','ai-chat-conversation-already-started','chatContext','connector','currentReply','fetchConversationMessages','removeSelectionFromContext','interactions','handleUserInteraction','conversationInitialized','9318NAPzIP','getConversation','prompt','50748tzOEZY','17023188Bnvvix','updateCurrentDocumentInContext','getCapabilitiesConfig','load','5794668mSUnEG','interactionCreated','411EwaNYE','ai-chat-conversation-start-no-model-selected','reset','isSelectionInContext','modelSelected','content','push','getEditor','length','populateFromMessage','removeFromContext','title','toggleWebSearch','hasOwn','webSearch','conversationId','addCurrentDocumentToContext','removeInteraction','reasoning','sessionId','ai-chat-conversation-init-from-id-failed','fire','quickActionData','createInteraction','contextItems','attributes','setModel','text-delta','ai-chat-conversation-set-model-not-available','addFilesToContext','group','18WURIsW','ai-chat-conversation-set-model-null','user','type','message','init','50UArcil','capabilities','options','delegate','addSelectionToContext','ai-chat-handle-user-interaction-already-in-progress','isAvailable','getDocumentContext','ai-chat-handle-user-conversation-not-initialized','getInteraction','currentInteraction','destroy','27nOQgnK','isStarted','getDefault','addToConversationContext','conversationStarted','fetchConversation','loadSourceResources','ai-chat-conversation-start-failed','stack','11ETsmip','addResourceToContext','toLowerCase','text','assistant','model','_extractContextItems','selectedModel','getPendingContextItems','lastInteraction','getMessages','chatModels','getAll','isCurrentDocumentInConversation','864530TJIbVo'];_0xc181=function(){return _0x293d4d;};return _0xc181();}const _0x25544f=_0x13cf;(function(_0x543d03,_0x22bf7e){const _0x20e36e=_0x13cf,_0x1c6e0f=_0x543d03();while(!![]){try{const _0x1546d4=parseInt(_0x20e36e(0x181))/0x1*(-parseInt(_0x20e36e(0x158))/0x2)+-parseInt(_0x20e36e(0x162))/0x3*(parseInt(_0x20e36e(0x1b3))/0x4)+parseInt(_0x20e36e(0x187))/0x5*(parseInt(_0x20e36e(0x15b))/0x6)+-parseInt(_0x20e36e(0x1b0))/0x7*(-parseInt(_0x20e36e(0x1ae))/0x8)+-parseInt(_0x20e36e(0x193))/0x9*(parseInt(_0x20e36e(0x1aa))/0xa)+-parseInt(_0x20e36e(0x19c))/0xb*(parseInt(_0x20e36e(0x160))/0xc)+parseInt(_0x20e36e(0x15c))/0xd;if(_0x1546d4===_0x22bf7e)break;else _0x1c6e0f['push'](_0x1c6e0f['shift']());}catch(_0x46aec4){_0x1c6e0f['push'](_0x1c6e0f['shift']());}}}(_0xc181,0x4621f));import{CKEditorError as _0x334ab5,EmitterMixin as _0x20e33e}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x24dc37}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5c679e,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4a23a2}from'./aichatcontext.js';function _0x13cf(_0x320e18,_0x5e1720){const _0xc18126=_0xc181();return _0x13cf=function(_0x13cfe9,_0x532427){_0x13cfe9=_0x13cfe9-0x13f;let _0x2846c1=_0xc18126[_0x13cfe9];return _0x2846c1;},_0x13cf(_0x320e18,_0x5e1720);}import{AICapabilities as _0x1e6423,CAPABILITIES_MODEL_EVENT_NAMES as _0x10284d}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x454031}from'./aichatinteraction.js';export class AIChatConversation extends _0x20e33e(){['id'];[_0x25544f(0x194)]=!0x1;[_0x25544f(0x155)]=[];[_0x25544f(0x191)];[_0x25544f(0x1a3)];[_0x25544f(0x151)];[_0x25544f(0x189)];constructor(_0x10eb66){const _0x36bcaf=_0x25544f;super(),this[_0x36bcaf(0x189)]=_0x10eb66,this[_0x36bcaf(0x151)]=_0x10eb66[_0x36bcaf(0x151)],this[_0x36bcaf(0x1a7)]=_0x10eb66[_0x36bcaf(0x1a7)],this['id']=_0x10eb66[_0x36bcaf(0x171)];}async[_0x25544f(0x186)](_0x54fa5f){const _0x4b972a=_0x25544f;try{this[_0x4b972a(0x150)]=new _0x5c679e({'connector':this[_0x4b972a(0x151)],'config':_0x54fa5f,'ownerId':this['id']}),this[_0x4b972a(0x150)][_0x4b972a(0x18a)](..._0x4a23a2)['to'](this),this[_0x4b972a(0x150)][_0x4b972a(0x186)](),this[_0x4b972a(0x13f)]=new _0x1e6423(),this[_0x4b972a(0x13f)][_0x4b972a(0x18a)](..._0x10284d)['to'](this),this[_0x4b972a(0x13f)][_0x4b972a(0x186)]();const _0x2de9a7=await this[_0x4b972a(0x1a7)][_0x4b972a(0x1a8)]();this[_0x4b972a(0x177)](_0x4b972a(0x157),{'availableModels':_0x2de9a7});const _0x42c731=await this[_0x4b972a(0x1a7)][_0x4b972a(0x195)](this[_0x4b972a(0x189)][_0x4b972a(0x14e)]);_0x42c731&&await this[_0x4b972a(0x17c)](_0x42c731);}catch(_0x4451e3){const _0x3c427e=new _0x334ab5(_0x4b972a(0x144),null,{'message':_0x4451e3[_0x4b972a(0x185)]});_0x3c427e[_0x4b972a(0x19b)]=_0x4451e3[_0x4b972a(0x19b)],this[_0x4b972a(0x177)](_0x4b972a(0x148),{'error':_0x3c427e});}}async[_0x25544f(0x14b)](){const _0x19d067=_0x25544f;if(this[_0x19d067(0x194)])throw new _0x334ab5(_0x19d067(0x14f),null,{'conversation':this});if(!this[_0x19d067(0x1a3)])throw new _0x334ab5(_0x19d067(0x163),null,{'conversation':this});try{const {id:_0x558d59}=await this[_0x19d067(0x151)][_0x19d067(0x145)](this['id'],this[_0x19d067(0x189)][_0x19d067(0x180)])[_0x19d067(0x159)]();this['id']=_0x558d59,this[_0x19d067(0x194)]=!0x0,this[_0x19d067(0x177)](_0x19d067(0x197),{'conversationId':this['id'],'selectedModel':this[_0x19d067(0x1a3)]});}catch(_0x5ad1b8){const _0x39f68b=new _0x334ab5(_0x19d067(0x19a),null,{'message':_0x5ad1b8[_0x19d067(0x185)]});_0x39f68b[_0x19d067(0x19b)]=_0x5ad1b8[_0x19d067(0x19b)],this[_0x19d067(0x177)](_0x19d067(0x148),{'error':_0x39f68b});}}async[_0x25544f(0x15f)](_0x48aa7b,_0x1305de){const _0x241b38=_0x25544f;try{const _0x5c7a79=await this[_0x241b38(0x151)][_0x241b38(0x198)](_0x48aa7b)[_0x241b38(0x159)](),_0x39b494=await this[_0x241b38(0x151)][_0x241b38(0x153)](_0x48aa7b)[_0x241b38(0x1a6)](),_0x3e02e3=_0x39b494[0x0][_0x241b38(0x1a1)];this[_0x241b38(0x194)]=!0x0,this['id']=_0x5c7a79['id'],_0x241b38(0x16d)in _0x5c7a79?this[_0x241b38(0x177)](_0x241b38(0x141),_0x5c7a79[_0x241b38(0x16d)],!0x0):this[_0x241b38(0x177)](_0x241b38(0x141),'',!0x0);const _0x39ce5d=(await this[_0x241b38(0x1a7)][_0x241b38(0x1a8)]())[_0x241b38(0x140)](_0x16ba48=>_0x16ba48['id'][_0x241b38(0x19e)]()===_0x3e02e3[_0x241b38(0x19e)]());return this[_0x241b38(0x1a3)]=_0x39ce5d,this[_0x241b38(0x177)](_0x241b38(0x166),{'selectedModel':_0x39ce5d,'isDisabled':!0x0}),await this[_0x241b38(0x147)](_0x39b494,_0x1305de,_0x3e02e3),this[_0x241b38(0x191)]=void 0x0,this;}catch(_0x1f4eef){const _0x27f676=new _0x334ab5(_0x241b38(0x176),null,{'message':_0x1f4eef[_0x241b38(0x185)],'conversationId':_0x48aa7b});throw _0x27f676[_0x241b38(0x19b)]=_0x1f4eef[_0x241b38(0x19b)],this[_0x241b38(0x177)](_0x241b38(0x148),{'error':_0x27f676}),_0x27f676;}}async[_0x25544f(0x147)](_0x30b1d7,_0x4155ac,_0x3b3cac){const _0x49d2cf=_0x25544f;let _0x1386ee;for(const _0x123c7c of _0x30b1d7)if(_0x49d2cf(0x183)===_0x123c7c[_0x49d2cf(0x1af)]){const _0x2fe18c=await this[_0x49d2cf(0x1a2)](_0x123c7c),_0x3da86d={'isReasoningEnabled':Object[_0x49d2cf(0x16f)](_0x123c7c[_0x49d2cf(0x188)],_0x49d2cf(0x174)),'isWebSearchEnabled':Object[_0x49d2cf(0x16f)](_0x123c7c[_0x49d2cf(0x188)],_0x49d2cf(0x170))};_0x1386ee=this[_0x49d2cf(0x179)]({'userMessage':_0x123c7c[_0x49d2cf(0x15a)],'contextItems':_0x2fe18c,'capabilities':_0x3da86d,'modelId':_0x3b3cac,'quickActionData':_0x123c7c[_0x49d2cf(0x17b)]?.[_0x49d2cf(0x178)]}),this[_0x49d2cf(0x191)]=_0x1386ee,this[_0x49d2cf(0x150)][_0x49d2cf(0x196)](this[_0x49d2cf(0x191)][_0x49d2cf(0x17a)]);}else{if(_0x49d2cf(0x1a0)===_0x123c7c[_0x49d2cf(0x1af)]&&_0x1386ee)for(const _0x5a2a42 of _0x123c7c[_0x49d2cf(0x167)]){const _0xdae60f=_0x49d2cf(0x19f)===_0x5a2a42[_0x49d2cf(0x184)]?_0x49d2cf(0x17d):_0x49d2cf(0x1ad),_0x2d9c10=_0x1386ee[_0x49d2cf(0x18e)]()?.[_0x49d2cf(0x175)]!==_0x4155ac;_0x1386ee[_0x49d2cf(0x152)]=_0x1386ee[_0x49d2cf(0x1b2)]({'type':_0xdae60f,'isDone':!0x0,'interactionId':_0x1386ee['id'],'areActionsDisabled':_0x2d9c10}),_0x1386ee[_0x49d2cf(0x152)][_0x49d2cf(0x149)](_0x5a2a42[_0x49d2cf(0x167)]);}}}async[_0x25544f(0x1a2)](_0x4d02bb){const _0x3030e2=_0x25544f,_0x93a7f6=new Map();if(!_0x4d02bb[_0x3030e2(0x167)])return _0x93a7f6;for(const _0x52b80c of _0x4d02bb[_0x3030e2(0x167)]){const _0x134a5c=await this[_0x3030e2(0x150)][_0x3030e2(0x16b)](_0x52b80c);_0x134a5c&&_0x93a7f6[_0x3030e2(0x14d)](_0x134a5c['id'],_0x134a5c);}return _0x93a7f6;}async[_0x25544f(0x156)]({userMessage:_0x2673f9,quickActionData:_0x1a497c}){const _0x12168f=_0x25544f;if(!this[_0x12168f(0x194)])throw new _0x334ab5(_0x12168f(0x18f),null,{'conversation':this});if(this[_0x12168f(0x191)])throw new _0x334ab5(_0x12168f(0x18c),null,{'conversation':this});try{const _0x13e346=this[_0x12168f(0x150)][_0x12168f(0x1a4)](),_0x4ee657=this[_0x12168f(0x13f)][_0x12168f(0x15e)](),_0x4aaac5=this[_0x12168f(0x1a3)]['id'];this[_0x12168f(0x191)]=this[_0x12168f(0x179)]({'userMessage':_0x2673f9,'contextItems':_0x13e346,'capabilities':_0x4ee657,'modelId':_0x4aaac5,'quickActionData':_0x1a497c}),await this[_0x12168f(0x191)][_0x12168f(0x14b)](),this[_0x12168f(0x150)][_0x12168f(0x196)](this[_0x12168f(0x191)][_0x12168f(0x17a)]);}catch(_0x12e5b2){this[_0x12168f(0x177)](_0x12168f(0x148),{'interactionId':this[_0x12168f(0x191)]?this[_0x12168f(0x191)]['id']:void 0x0,'error':_0x12e5b2});}finally{this[_0x12168f(0x191)]?.[_0x12168f(0x1ac)](),this[_0x12168f(0x191)]=void 0x0;}}[_0x25544f(0x179)]({userMessage:_0x2b826f,contextItems:_0x4620da,capabilities:_0x2272e2,modelId:_0xe07e36,quickActionData:_0x14dfce}){const _0x1e07b9=_0x25544f,_0xd91d5f=new _0x454031({'userMessage':_0x2b826f,'contextItems':_0x4620da,'capabilities':_0x2272e2,'conversationId':this['id'],'connector':this[_0x1e07b9(0x151)],'editor':this[_0x1e07b9(0x189)][_0x1e07b9(0x169)]&&this[_0x1e07b9(0x189)][_0x1e07b9(0x169)](),'model':_0xe07e36,'quickActionData':_0x14dfce});return _0xd91d5f[_0x1e07b9(0x18a)](..._0x24dc37)['to'](this),this[_0x1e07b9(0x155)][_0x1e07b9(0x168)](_0xd91d5f),this[_0x1e07b9(0x177)](_0x1e07b9(0x161),_0xd91d5f),_0xd91d5f;}[_0x25544f(0x190)](_0x3c4702){const _0x400aab=_0x25544f;return this[_0x400aab(0x155)][_0x400aab(0x140)](_0x526176=>_0x526176['id']===_0x3c4702);}[_0x25544f(0x173)](_0x219f7b){const _0x4f4ead=_0x25544f,_0xa6736a=this[_0x4f4ead(0x190)](_0x219f7b);_0xa6736a&&(_0xa6736a[_0x4f4ead(0x192)](),this[_0x4f4ead(0x155)][_0x4f4ead(0x1ab)](this[_0x4f4ead(0x155)][_0x4f4ead(0x1b1)](_0xa6736a),0x1));}get[_0x25544f(0x1a5)](){const _0x47ac67=_0x25544f;return this[_0x47ac67(0x155)][this[_0x47ac67(0x155)][_0x47ac67(0x16a)]-0x1];}[_0x25544f(0x172)](_0xf96a00){const _0x303df5=_0x25544f;this[_0x303df5(0x150)][_0x303df5(0x172)](_0xf96a00);}async[_0x25544f(0x15d)]({content:_0xd91ca,version:_0x4a8c24,sessionId:_0x4fa537,selections:_0x363237}){const _0x3ab0d8=_0x25544f;await this[_0x3ab0d8(0x150)][_0x3ab0d8(0x143)](_0xd91ca,_0x4a8c24,_0x4fa537,_0x363237);}[_0x25544f(0x14a)](){const _0x398b3b=_0x25544f;return this[_0x398b3b(0x191)]?.[_0x398b3b(0x18e)]()?.[_0x398b3b(0x167)]||'';}[_0x25544f(0x18b)](_0x2d711a){const _0x323587=_0x25544f;this[_0x323587(0x150)][_0x323587(0x18b)](_0x2d711a);}[_0x25544f(0x154)](){const _0x3065a7=_0x25544f;this[_0x3065a7(0x150)][_0x3065a7(0x154)]();}[_0x25544f(0x17f)](_0x34c14a){const _0x4ecc07=_0x25544f;this[_0x4ecc07(0x150)][_0x4ecc07(0x17f)](_0x34c14a);}[_0x25544f(0x146)](_0x52f1f5){const _0x243290=_0x25544f;this[_0x243290(0x150)][_0x243290(0x146)](_0x52f1f5);}[_0x25544f(0x19d)](_0x564490,_0x598e22){const _0xfc259c=_0x25544f;this[_0xfc259c(0x150)][_0xfc259c(0x19d)](_0x564490,_0x598e22);}[_0x25544f(0x199)](_0x48d9bd,_0x3bd68f,_0x5545b0){const _0x2bf399=_0x25544f;return this[_0x2bf399(0x150)][_0x2bf399(0x199)](_0x48d9bd,_0x3bd68f,_0x5545b0);}[_0x25544f(0x16c)](_0x424ce8){const _0x367953=_0x25544f;this[_0x367953(0x150)][_0x367953(0x16c)](_0x424ce8);}[_0x25544f(0x16e)](){const _0x125ac0=_0x25544f;this[_0x125ac0(0x13f)][_0x125ac0(0x16e)]();}[_0x25544f(0x14c)](){const _0x19a0f5=_0x25544f;this[_0x19a0f5(0x13f)][_0x19a0f5(0x14c)]();}[_0x25544f(0x142)](){const _0x4b821f=_0x25544f;return this[_0x4b821f(0x150)][_0x4b821f(0x142)]();}[_0x25544f(0x1a9)](){const _0x3fb77f=_0x25544f;return this[_0x3fb77f(0x150)][_0x3fb77f(0x1a9)]();}[_0x25544f(0x165)](){const _0x708eb7=_0x25544f;return this[_0x708eb7(0x150)][_0x708eb7(0x165)]();}async[_0x25544f(0x17c)](_0x29436c){const _0x2bbd66=_0x25544f;if(!_0x29436c)throw new _0x334ab5(_0x2bbd66(0x182),null,{'conversation':this});if(!0x1===await this[_0x2bbd66(0x1a7)][_0x2bbd66(0x18d)](_0x29436c))throw new _0x334ab5(_0x2bbd66(0x17e),null,{'conversation':this,'model':_0x29436c});_0x29436c['id']!==this[_0x2bbd66(0x1a3)]?.['id']&&(this[_0x2bbd66(0x1a3)]=_0x29436c,this[_0x2bbd66(0x13f)][_0x2bbd66(0x164)](),this[_0x2bbd66(0x177)](_0x2bbd66(0x166),{'selectedModel':_0x29436c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47c918=_0x2498;(function(_0x2abc44,_0x289d6a){var _0x1499e3=_0x2498,_0x521989=_0x2abc44();while(!![]){try{var _0x3b1237=-parseInt(_0x1499e3(0x10b))/0x1*(-parseInt(_0x1499e3(0x109))/0x2)+-parseInt(_0x1499e3(0x104))/0x3*(parseInt(_0x1499e3(0x11b))/0x4)+parseInt(_0x1499e3(0x10f))/0x5*(parseInt(_0x1499e3(0x117))/0x6)+parseInt(_0x1499e3(0x108))/0x7+parseInt(_0x1499e3(0x113))/0x8+-parseInt(_0x1499e3(0x10a))/0x9*(-parseInt(_0x1499e3(0x107))/0xa)+parseInt(_0x1499e3(0x105))/0xb*(-parseInt(_0x1499e3(0x106))/0xc);if(_0x3b1237===_0x289d6a)break;else _0x521989['push'](_0x521989['shift']());}catch(_0x49a6df){_0x521989['push'](_0x521989['shift']());}}}(_0x55d6,0xbdecc));function _0x55d6(){var _0x1cefa6=['connector','mapContextItemsToRequestData','conversationId','2972nYFwHA','get','userMessage','129FQkIFt','1837KgqDgt','146088sVvyUQ','12790kpriTR','3687320muLnGt','5306crvVjf','7713pyWBGW','182lAPWms','contextItems','queryAssistant','sendRequest','225oDesRs','capabilities','model','current-document','839480UGgaer','quickActionData','getDocumentContext','getCapabilitiesRequestData','84306cjuXfR'];_0x55d6=function(){return _0x1cefa6;};return _0x55d6();}import{AICapabilities as _0x3b3290}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3b05df}from'../../aicore/model/aiinteraction.js';function _0x2498(_0xa84bc,_0x13a32f){var _0x55d667=_0x55d6();return _0x2498=function(_0x249808,_0x5cd4c5){_0x249808=_0x249808-0x103;var _0xb09426=_0x55d667[_0x249808];return _0xb09426;},_0x2498(_0xa84bc,_0x13a32f);}import{AIChatContext as _0x196754}from'./aichatcontext.js';export class AIChatInteraction extends _0x3b05df{[_0x47c918(0x103)];[_0x47c918(0x11a)];[_0x47c918(0x10c)]=new Map();[_0x47c918(0x111)];[_0x47c918(0x114)];constructor(_0x17696a){var _0x152a99=_0x47c918;super(_0x17696a),this[_0x152a99(0x11a)]=_0x17696a[_0x152a99(0x11a)],this[_0x152a99(0x10c)]=_0x17696a[_0x152a99(0x10c)],this[_0x152a99(0x110)]=_0x17696a[_0x152a99(0x110)],this[_0x152a99(0x103)]=_0x17696a[_0x152a99(0x103)],this[_0x152a99(0x111)]=_0x17696a[_0x152a99(0x111)],this[_0x152a99(0x114)]=_0x17696a[_0x152a99(0x114)];}async[_0x47c918(0x10e)](){var _0x3063b3=_0x47c918;return this[_0x3063b3(0x118)][_0x3063b3(0x10d)]({'message':this[_0x3063b3(0x103)],'conversationId':this[_0x3063b3(0x11a)],'parts':_0x196754[_0x3063b3(0x119)](this[_0x3063b3(0x10c)]),'capabilities':_0x3b3290[_0x3063b3(0x116)](this[_0x3063b3(0x110)]),'model':this[_0x3063b3(0x111)],'quickActionData':this[_0x3063b3(0x114)]});}[_0x47c918(0x115)](){var _0x15b5f1=_0x47c918;return this[_0x15b5f1(0x10c)][_0x15b5f1(0x11c)](_0x15b5f1(0x112));}}
23
+ function _0x8bb3(){var _0x11f6ca=['userMessage','queryAssistant','385872EYSaCE','connector','conversationId','getDocumentContext','7073552fPrulB','4250862BXMCpc','8337096PWZkQe','mapContextItemsToRequestData','contextItems','4967753MnJWMD','9lwbkLr','121504uGiMHJ','sendRequest','8OMgUGa','current-document','getCapabilitiesRequestData','capabilities','70bwFueC','model','13yWLOYS','2bFahQV','30oBDrsi','quickActionData','get','87198OdQhqe'];_0x8bb3=function(){return _0x11f6ca;};return _0x8bb3();}var _0x9e3783=_0x2773;(function(_0x117e79,_0x5387e9){var _0x1dc024=_0x2773,_0x5f2965=_0x117e79();while(!![]){try{var _0x947e4f=parseInt(_0x1dc024(0xe6))/0x1*(-parseInt(_0x1dc024(0xef))/0x2)+-parseInt(_0x1dc024(0xf3))/0x3*(parseInt(_0x1dc024(0xe8))/0x4)+parseInt(_0x1dc024(0xec))/0x5*(-parseInt(_0x1dc024(0xf6))/0x6)+parseInt(_0x1dc024(0xe4))/0x7+-parseInt(_0x1dc024(0xfa))/0x8*(parseInt(_0x1dc024(0xe5))/0x9)+-parseInt(_0x1dc024(0xf0))/0xa*(-parseInt(_0x1dc024(0xfb))/0xb)+parseInt(_0x1dc024(0xfc))/0xc*(parseInt(_0x1dc024(0xee))/0xd);if(_0x947e4f===_0x5387e9)break;else _0x5f2965['push'](_0x5f2965['shift']());}catch(_0x44c8cd){_0x5f2965['push'](_0x5f2965['shift']());}}}(_0x8bb3,0x9260d));import{AICapabilities as _0x3c4114}from'../../aicore/model/aicapabilities.js';function _0x2773(_0xef7b9b,_0x2a5a2c){var _0x8bb380=_0x8bb3();return _0x2773=function(_0x277318,_0x559150){_0x277318=_0x277318-0xe2;var _0x27cb09=_0x8bb380[_0x277318];return _0x27cb09;},_0x2773(_0xef7b9b,_0x2a5a2c);}import{AIInteraction as _0x3fcaea}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x12feaf}from'./aichatcontext.js';export class AIChatInteraction extends _0x3fcaea{[_0x9e3783(0xf4)];[_0x9e3783(0xf8)];[_0x9e3783(0xe3)]=new Map();[_0x9e3783(0xed)];[_0x9e3783(0xf1)];constructor(_0x218eef){var _0x250014=_0x9e3783;super(_0x218eef),this[_0x250014(0xf8)]=_0x218eef[_0x250014(0xf8)],this[_0x250014(0xe3)]=_0x218eef[_0x250014(0xe3)],this[_0x250014(0xeb)]=_0x218eef[_0x250014(0xeb)],this[_0x250014(0xf4)]=_0x218eef[_0x250014(0xf4)],this[_0x250014(0xed)]=_0x218eef[_0x250014(0xed)],this[_0x250014(0xf1)]=_0x218eef[_0x250014(0xf1)];}async[_0x9e3783(0xe7)](){var _0x2b1e4e=_0x9e3783;return this[_0x2b1e4e(0xf7)][_0x2b1e4e(0xf5)]({'message':this[_0x2b1e4e(0xf4)],'conversationId':this[_0x2b1e4e(0xf8)],'parts':_0x12feaf[_0x2b1e4e(0xe2)](this[_0x2b1e4e(0xe3)]),'capabilities':_0x3c4114[_0x2b1e4e(0xea)](this[_0x2b1e4e(0xeb)]),'model':this[_0x2b1e4e(0xed)],'quickActionData':this[_0x2b1e4e(0xf1)]});}[_0x9e3783(0xf9)](){var _0x52c409=_0x9e3783;return this[_0x52c409(0xe3)][_0x52c409(0xf2)](_0x52c409(0xe9));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40a7b2=_0x188a;(function(_0x542f93,_0x309a4a){const _0x37d1d8=_0x188a,_0x286000=_0x542f93();while(!![]){try{const _0x490f63=-parseInt(_0x37d1d8(0x1c4))/0x1+-parseInt(_0x37d1d8(0x1b8))/0x2*(parseInt(_0x37d1d8(0x1c2))/0x3)+parseInt(_0x37d1d8(0x1bd))/0x4*(-parseInt(_0x37d1d8(0x1c5))/0x5)+-parseInt(_0x37d1d8(0x1b4))/0x6*(-parseInt(_0x37d1d8(0x1c6))/0x7)+-parseInt(_0x37d1d8(0x1b0))/0x8*(-parseInt(_0x37d1d8(0x1c7))/0x9)+-parseInt(_0x37d1d8(0x1af))/0xa+parseInt(_0x37d1d8(0x1b3))/0xb;if(_0x490f63===_0x309a4a)break;else _0x286000['push'](_0x286000['shift']());}catch(_0x1d81a5){_0x286000['push'](_0x286000['shift']());}}}(_0x2b79,0xd2f75));import{EmitterMixin as _0xd1f1f,logWarning as _0x209018}from'ckeditor5/src/utils.js';function _0x188a(_0x12467c,_0x505eac){const _0x2b7936=_0x2b79();return _0x188a=function(_0x188a00,_0x59a5f7){_0x188a00=_0x188a00-0x1ae;let _0x3244cb=_0x2b7936[_0x188a00];return _0x3244cb;},_0x188a(_0x12467c,_0x505eac);}export class AIChatModels extends _0xd1f1f(){[_0x40a7b2(0x1bc)]=[];[_0x40a7b2(0x1bf)];constructor({connector:_0x334f69}){const _0x2e6139=_0x40a7b2;super(),this[_0x2e6139(0x1bf)]=_0x334f69;}async[_0x40a7b2(0x1b6)](){const _0x74bc02=_0x40a7b2;if(!this[_0x74bc02(0x1bc)][_0x74bc02(0x1ba)]){const _0x44a14e=this[_0x74bc02(0x1bf)][_0x74bc02(0x1c3)](),_0x29689c=(await _0x44a14e[_0x74bc02(0x1b9)]())[_0x74bc02(0x1ca)][_0x74bc02(0x1b1)]((_0x1ab3fc,_0x624dc2)=>{const _0x32783f=_0x74bc02,_0x1e5016=Object[_0x32783f(0x1bb)](_0x1ab3fc[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x212570=>_0x212570[_0x32783f(0x1b2)])[_0x32783f(0x1ba)];return Object[_0x32783f(0x1bb)](_0x624dc2[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x274def=>_0x274def[_0x32783f(0x1b2)])[_0x32783f(0x1ba)]-_0x1e5016;});this[_0x74bc02(0x1bc)]=_0x29689c;}return this[_0x74bc02(0x1bc)];}async[_0x40a7b2(0x1b7)](_0xc69262){const _0x234541=_0x40a7b2,_0x4c063=await this[_0x234541(0x1b6)]();if(!_0x4c063[_0x234541(0x1ba)])return null;if(_0xc69262){const _0x41f7b7=_0x4c063[_0x234541(0x1b5)](_0x1ff698=>_0x1ff698['id']===_0xc69262);if(_0x41f7b7)return _0x41f7b7;_0x209018(_0x234541(0x1c1),{'defaultModelId':_0xc69262,'fallBackModelId':_0x4c063[0x0]['id']});}return _0x4c063[0x0];}async[_0x40a7b2(0x1c0)](_0x434c2f){const _0x288403=_0x40a7b2;return(await this[_0x288403(0x1b6)]())[_0x288403(0x1c8)](_0xca4c05=>_0xca4c05[_0x288403(0x1ae)]===_0x434c2f[_0x288403(0x1ae)]&&_0xca4c05[_0x288403(0x1c9)]===_0x434c2f[_0x288403(0x1c9)]);}}function _0x2b79(){const _0x1efbde=['provider','items','capabilities','name','16105600oRREph','8dbINnB','sort','enabled','16632957cOodvd','366SIEQhe','find','getAll','getDefault','8zyeQIU','list','length','values','_modelList','112WifOnf','filter','_connector','isAvailable','ai-chat-default-model-id-unrecognized','272796IbuZtA','getModels','408038JYCTJJ','70130DoczQc','95333zmlOim','11666925caVWJb','some'];_0x2b79=function(){return _0x1efbde;};return _0x2b79();}
23
+ const _0x58ee92=_0x2a51;function _0x2a51(_0x1cffc4,_0x222e0c){const _0x51aa05=_0x51aa();return _0x2a51=function(_0x2a517d,_0x33251d){_0x2a517d=_0x2a517d-0x87;let _0x355868=_0x51aa05[_0x2a517d];return _0x355868;},_0x2a51(_0x1cffc4,_0x222e0c);}(function(_0x18fbc6,_0x43dc71){const _0x1b58a5=_0x2a51,_0x1cdfe8=_0x18fbc6();while(!![]){try{const _0x528147=-parseInt(_0x1b58a5(0x87))/0x1*(-parseInt(_0x1b58a5(0x9b))/0x2)+parseInt(_0x1b58a5(0x99))/0x3*(parseInt(_0x1b58a5(0x9c))/0x4)+parseInt(_0x1b58a5(0x92))/0x5*(-parseInt(_0x1b58a5(0x8b))/0x6)+-parseInt(_0x1b58a5(0xa3))/0x7*(parseInt(_0x1b58a5(0x98))/0x8)+-parseInt(_0x1b58a5(0xa2))/0x9+-parseInt(_0x1b58a5(0x89))/0xa+parseInt(_0x1b58a5(0x9f))/0xb;if(_0x528147===_0x43dc71)break;else _0x1cdfe8['push'](_0x1cdfe8['shift']());}catch(_0x4e1981){_0x1cdfe8['push'](_0x1cdfe8['shift']());}}}(_0x51aa,0x38757));import{EmitterMixin as _0x52ecbf,logWarning as _0x56a549}from'ckeditor5/src/utils.js';function _0x51aa(){const _0x56ca65=['5649oDlqnb','provider','12571hVqusV','find','2465740pzPomb','_connector','103980gDruTj','getAll','getDefault','isAvailable','capabilities','values','some','35mnaLpe','list','_modelList','length','filter','sort','3952YONWOh','4278VOkWvS','name','2HblPzK','980wEiMkj','ai-chat-default-model-id-unrecognized','enabled','8166180HdkrTx','items','getModels','958716GvxixT'];_0x51aa=function(){return _0x56ca65;};return _0x51aa();}export class AIChatModels extends _0x52ecbf(){[_0x58ee92(0x94)]=[];[_0x58ee92(0x8a)];constructor({connector:_0x22240a}){const _0x2ec233=_0x58ee92;super(),this[_0x2ec233(0x8a)]=_0x22240a;}async[_0x58ee92(0x8c)](){const _0x5b0f2e=_0x58ee92;if(!this[_0x5b0f2e(0x94)][_0x5b0f2e(0x95)]){const _0x15f02a=this[_0x5b0f2e(0x8a)][_0x5b0f2e(0xa1)](),_0x3a1fc9=(await _0x15f02a[_0x5b0f2e(0x93)]())[_0x5b0f2e(0xa0)][_0x5b0f2e(0x97)]((_0x277530,_0x1ae44a)=>{const _0x27e5cd=_0x5b0f2e,_0x454785=Object[_0x27e5cd(0x90)](_0x277530[_0x27e5cd(0x8f)])[_0x27e5cd(0x96)](_0x92a4cd=>_0x92a4cd[_0x27e5cd(0x9e)])[_0x27e5cd(0x95)];return Object[_0x27e5cd(0x90)](_0x1ae44a[_0x27e5cd(0x8f)])[_0x27e5cd(0x96)](_0x17816d=>_0x17816d[_0x27e5cd(0x9e)])[_0x27e5cd(0x95)]-_0x454785;});this[_0x5b0f2e(0x94)]=_0x3a1fc9;}return this[_0x5b0f2e(0x94)];}async[_0x58ee92(0x8d)](_0x3f5495){const _0x1f8667=_0x58ee92,_0x43b84e=await this[_0x1f8667(0x8c)]();if(!_0x43b84e[_0x1f8667(0x95)])return null;if(_0x3f5495){const _0x5ef753=_0x43b84e[_0x1f8667(0x88)](_0xa8bd01=>_0xa8bd01['id']===_0x3f5495);if(_0x5ef753)return _0x5ef753;_0x56a549(_0x1f8667(0x9d),{'defaultModelId':_0x3f5495,'fallBackModelId':_0x43b84e[0x0]['id']});}return _0x43b84e[0x0];}async[_0x58ee92(0x8e)](_0x349b96){const _0x18a9bd=_0x58ee92;return(await this[_0x18a9bd(0x8c)]())[_0x18a9bd(0x91)](_0x5104be=>_0x5104be[_0x18a9bd(0x9a)]===_0x349b96[_0x18a9bd(0x9a)]&&_0x5104be[_0x18a9bd(0xa4)]===_0x349b96[_0x18a9bd(0xa4)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x357593=_0xcca7;(function(_0xb4f1dd,_0x1934ec){const _0x31e142=_0xcca7,_0x5435fe=_0xb4f1dd();while(!![]){try{const _0x2ee206=-parseInt(_0x31e142(0x174))/0x1*(-parseInt(_0x31e142(0x153))/0x2)+-parseInt(_0x31e142(0x16e))/0x3+parseInt(_0x31e142(0x171))/0x4+-parseInt(_0x31e142(0x17b))/0x5+parseInt(_0x31e142(0x182))/0x6+-parseInt(_0x31e142(0x151))/0x7+-parseInt(_0x31e142(0x17d))/0x8*(-parseInt(_0x31e142(0x185))/0x9);if(_0x2ee206===_0x1934ec)break;else _0x5435fe['push'](_0x5435fe['shift']());}catch(_0x37e1b8){_0x5435fe['push'](_0x5435fe['shift']());}}}(_0x105b,0xbf1c4));import{clickOutsideHandler as _0x2bd67d,View as _0x21f948}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2f21fd}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4c77c3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2f5630,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3ca7f0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x20f35b}from'./controls/aichatcontrolsloaderview.js';function _0xcca7(_0x293b67,_0x32f4bf){const _0x105ba1=_0x105b();return _0xcca7=function(_0xcca79d,_0x2eadcd){_0xcca79d=_0xcca79d-0x150;let _0x149372=_0x105ba1[_0xcca79d];return _0x149372;},_0xcca7(_0x293b67,_0x32f4bf);}function _0x105b(){const _0x32f6a3=['_promptInputView','clearCurrentContextItems','10331391RQlrum','closeSourceResourceBalloon','6EZeGPy','sendUserMessage','disableModelSelector','setModelList','toggleWebSearch','delegate','setConversationContext','setTemplate','bindTemplate','low','_contextPanelView','ck-ai-chat-controls','setPlaceholderText','change:isLoading','ck-hidden','_createContextPanelView','setInputPlaceholder','setContextItemLoading','reset','enableModelSelector','clearConversationContextUI','abortPromptStream','clearConversationContextItems','removeContextItem','focusPromptInput','populateSourceResourceBalloon','_loaderView','1810176aISLMK','_handlePromptInputFocus','setWebSearch','3063248evVeRd','updateResourceState','_createLoaderView','311882WwAdjX','isLoading','_createPromptInputView','addContextButtonView','_shouldRestorePromptInputFocus','addContextItem','selectModel','6324340pGBLJM','clearPendingContextUI','274384oADndx','setAddContextOptions','div','element','setReasoning','765222PJouoL','focus','_promptCapabilitiesView','603xyuWcC','setModel','resetMessageInput','form','_createPromptCapabilitiesView','toggleReasoning','setIsUploadInProgress'];_0x105b=function(){return _0x32f6a3;};return _0x105b();}export class AIChatControlsView extends _0x21f948{[_0x357593(0x15d)];[_0x357593(0x18c)];[_0x357593(0x184)];[_0x357593(0x16d)];[_0x357593(0x178)];constructor(_0x2a97af,_0x281716){const _0x2c1f64=_0x357593;super(_0x2a97af),this[_0x2c1f64(0x15d)]=this[_0x2c1f64(0x162)](_0x2a97af,_0x281716),this[_0x2c1f64(0x18c)]=this[_0x2c1f64(0x176)](_0x2a97af),this[_0x2c1f64(0x184)]=this[_0x2c1f64(0x189)](_0x2a97af),this[_0x2c1f64(0x16d)]=this[_0x2c1f64(0x173)](_0x2a97af),this[_0x2c1f64(0x178)]=!0x1,this[_0x2c1f64(0x18c)][_0x2c1f64(0x158)](_0x2c1f64(0x154))['to'](this),this[_0x2c1f64(0x16d)][_0x2c1f64(0x158)](_0x2c1f64(0x168))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x157))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x18a))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x17a))['to'](this),this[_0x2c1f64(0x15d)][_0x2c1f64(0x158)](..._0x3ca7f0)['to'](this);const _0xf8562c=this[_0x2c1f64(0x15b)];this[_0x2c1f64(0x15a)]({'tag':_0x2c1f64(0x188),'attributes':{'class':['ck',_0x2c1f64(0x15e)]},'children':[{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161))]},'children':[this[_0x2c1f64(0x15d)],this[_0x2c1f64(0x18c)],this[_0x2c1f64(0x184)]]},{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161),_0xf533b6=>!_0xf533b6)]},'children':[this[_0x2c1f64(0x16d)]]}]}),_0x2bd67d({'emitter':this[_0x2c1f64(0x18c)],'activator':()=>this[_0x2c1f64(0x175)],'contextElements':()=>[this[_0x2c1f64(0x180)]],'callback':()=>{const _0x55380e=_0x2c1f64;this[_0x55380e(0x178)]=!0x1;}}),this['on'](_0x2c1f64(0x160),this[_0x2c1f64(0x16f)],{'priority':_0x2c1f64(0x15c)});}[_0x357593(0x162)](_0x116d93,_0x27b0b1){return new _0x2f5630(_0x116d93,_0x27b0b1);}[_0x357593(0x176)](_0x1b2feb){const _0x3f7157=_0x357593;return new _0x2f21fd(_0x1b2feb,this[_0x3f7157(0x15d)][_0x3f7157(0x177)]);}[_0x357593(0x189)](_0x4bc1ee){return new _0x4c77c3(_0x4bc1ee);}[_0x357593(0x173)](_0x270cda){return new _0x20f35b(_0x270cda);}[_0x357593(0x16f)](_0x12590f,_0x1bde77,_0x2dcf60){const _0x4c6a43=_0x357593;_0x2dcf60?this[_0x4c6a43(0x178)]=!0x0:this[_0x4c6a43(0x178)]&&this[_0x4c6a43(0x18c)][_0x4c6a43(0x183)]();}[_0x357593(0x179)](_0x1a71de,_0x11c717){const _0x41341b=_0x357593;this[_0x41341b(0x15d)][_0x41341b(0x179)](_0x1a71de,_0x11c717);}[_0x357593(0x16a)](_0x17e1fc){const _0x5cdcd1=_0x357593;this[_0x5cdcd1(0x15d)][_0x5cdcd1(0x16a)](_0x17e1fc);}[_0x357593(0x164)](_0x333f72,_0x4dfb8e){const _0x3953a2=_0x357593;this[_0x3953a2(0x15d)][_0x3953a2(0x164)](_0x333f72,_0x4dfb8e);}[_0x357593(0x18b)](_0x248016){const _0x24ce6c=_0x357593;this[_0x24ce6c(0x18c)][_0x24ce6c(0x18b)](_0x248016);}[_0x357593(0x159)](_0x538b07){const _0x447453=_0x357593;this[_0x447453(0x15d)][_0x447453(0x159)](_0x538b07);}[_0x357593(0x17c)](){const _0x5a855f=_0x357593;this[_0x5a855f(0x15d)][_0x5a855f(0x150)]();}[_0x357593(0x167)](){const _0x64670e=_0x357593;this[_0x64670e(0x15d)][_0x64670e(0x169)]();}[_0x357593(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44){const _0x4f421e=_0x357593;this[_0x4f421e(0x15d)][_0x4f421e(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44);}[_0x357593(0x170)](_0x5625b7){const _0x974bfe=_0x357593;this[_0x974bfe(0x184)][_0x974bfe(0x170)](_0x5625b7);}[_0x357593(0x181)](_0x5571ee){const _0x24de97=_0x357593;this[_0x24de97(0x184)][_0x24de97(0x181)](_0x5571ee);}[_0x357593(0x187)](){const _0x2eff78=_0x357593;this[_0x2eff78(0x18c)][_0x2eff78(0x165)]();}[_0x357593(0x17e)](_0x1eac76){const _0x57a821=_0x357593;this[_0x57a821(0x15d)][_0x57a821(0x17e)](_0x1eac76);}[_0x357593(0x163)](_0x3ec4bb){const _0x5c8741=_0x357593;this[_0x5c8741(0x18c)][_0x5c8741(0x15f)](_0x3ec4bb);}[_0x357593(0x156)](_0x172634,_0x411f5e){const _0xcb163c=_0x357593;this[_0xcb163c(0x184)][_0xcb163c(0x156)](_0x172634,_0x411f5e);}[_0x357593(0x186)](_0x4c065d){const _0x48ebd9=_0x357593;this[_0x48ebd9(0x184)][_0x48ebd9(0x186)](_0x4c065d);}[_0x357593(0x166)](){const _0x12e6b6=_0x357593;this[_0x12e6b6(0x184)][_0x12e6b6(0x166)]();}[_0x357593(0x155)](_0xe91ef6){const _0x5ef43e=_0x357593;this[_0x5ef43e(0x184)][_0x5ef43e(0x155)](_0xe91ef6);}[_0x357593(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d){const _0xd3d5dd=_0x357593;this[_0xd3d5dd(0x15d)][_0xd3d5dd(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d);}[_0x357593(0x152)](_0x5c57cf){const _0x3fc37d=_0x357593;this[_0x3fc37d(0x15d)][_0x3fc37d(0x152)](_0x5c57cf);}[_0x357593(0x16b)](){const _0x205fec=_0x357593;this[_0x205fec(0x18c)][_0x205fec(0x183)]();}}
23
+ const _0x41ea1b=_0x10c0;(function(_0x21a258,_0x5a5c58){const _0x11ae94=_0x10c0,_0x51ca37=_0x21a258();while(!![]){try{const _0x3e8b97=-parseInt(_0x11ae94(0x16b))/0x1*(parseInt(_0x11ae94(0x15e))/0x2)+parseInt(_0x11ae94(0x163))/0x3*(-parseInt(_0x11ae94(0x153))/0x4)+parseInt(_0x11ae94(0x179))/0x5+parseInt(_0x11ae94(0x161))/0x6+parseInt(_0x11ae94(0x146))/0x7+parseInt(_0x11ae94(0x14d))/0x8+-parseInt(_0x11ae94(0x176))/0x9;if(_0x3e8b97===_0x5a5c58)break;else _0x51ca37['push'](_0x51ca37['shift']());}catch(_0x163f2d){_0x51ca37['push'](_0x51ca37['shift']());}}}(_0x1bf5,0x981ec));import{clickOutsideHandler as _0x5624c2,View as _0x234983}from'ckeditor5/src/ui.js';function _0x10c0(_0x4be3aa,_0x49ce6e){const _0x1bf50d=_0x1bf5();return _0x10c0=function(_0x10c0e4,_0x3b04d1){_0x10c0e4=_0x10c0e4-0x146;let _0x541004=_0x1bf50d[_0x10c0e4];return _0x541004;},_0x10c0(_0x4be3aa,_0x49ce6e);}import{AIChatPromptInputView as _0x412ef0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x19de2f}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3ad696,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x16537d}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5bc32d}from'./controls/aichatcontrolsloaderview.js';function _0x1bf5(){const _0x58ad75=['abortPromptStream','setPlaceholderText','setAddContextOptions','_createPromptCapabilitiesView','bindTemplate','isLoading','focus','622OiixwI','low','change:isLoading','6579198aRIddu','_contextPanelView','9jWAoaN','delegate','clearCurrentContextItems','setInputPlaceholder','enableModelSelector','clearConversationContextUI','selectModel','_promptInputView','3709SSsoFo','populateSourceResourceBalloon','setModelList','sendUserMessage','addContextButtonView','form','reset','div','removeContextItem','disableModelSelector','ck-hidden','4141485VzikfM','ck-ai-chat-controls','_createLoaderView','4432905TFlhKd','_createPromptInputView','setContextItemLoading','clearConversationContextItems','clearPendingContextUI','element','resetMessageInput','_createContextPanelView','focusPromptInput','setWebSearch','2039226wVFkXg','toggleReasoning','setTemplate','_handlePromptInputFocus','setModel','setIsUploadInProgress','_promptCapabilitiesView','943360FbmAzI','setConversationContext','setReasoning','_loaderView','updateResourceState','_shouldRestorePromptInputFocus','207472zzYNkp','addContextItem','toggleWebSearch','closeSourceResourceBalloon'];_0x1bf5=function(){return _0x58ad75;};return _0x1bf5();}export class AIChatControlsView extends _0x234983{[_0x41ea1b(0x162)];[_0x41ea1b(0x16a)];[_0x41ea1b(0x14c)];[_0x41ea1b(0x150)];[_0x41ea1b(0x152)];constructor(_0x21bf16,_0x243500){const _0x265e60=_0x41ea1b;super(_0x21bf16),this[_0x265e60(0x162)]=this[_0x265e60(0x180)](_0x21bf16,_0x243500),this[_0x265e60(0x16a)]=this[_0x265e60(0x17a)](_0x21bf16),this[_0x265e60(0x14c)]=this[_0x265e60(0x15a)](_0x21bf16),this[_0x265e60(0x150)]=this[_0x265e60(0x178)](_0x21bf16),this[_0x265e60(0x152)]=!0x1,this[_0x265e60(0x16a)][_0x265e60(0x164)](_0x265e60(0x16e))['to'](this),this[_0x265e60(0x150)][_0x265e60(0x164)](_0x265e60(0x157))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x155))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x147))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x169))['to'](this),this[_0x265e60(0x162)][_0x265e60(0x164)](..._0x16537d)['to'](this);const _0x36d228=this[_0x265e60(0x15b)];this[_0x265e60(0x148)]({'tag':_0x265e60(0x170),'attributes':{'class':['ck',_0x265e60(0x177)]},'children':[{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175))]},'children':[this[_0x265e60(0x162)],this[_0x265e60(0x16a)],this[_0x265e60(0x14c)]]},{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175),_0x1eb2f3=>!_0x1eb2f3)]},'children':[this[_0x265e60(0x150)]]}]}),_0x5624c2({'emitter':this[_0x265e60(0x16a)],'activator':()=>this[_0x265e60(0x15c)],'contextElements':()=>[this[_0x265e60(0x17e)]],'callback':()=>{const _0x5e8811=_0x265e60;this[_0x5e8811(0x152)]=!0x1;}}),this['on'](_0x265e60(0x160),this[_0x265e60(0x149)],{'priority':_0x265e60(0x15f)});}[_0x41ea1b(0x180)](_0x19063f,_0x1572a6){return new _0x3ad696(_0x19063f,_0x1572a6);}[_0x41ea1b(0x17a)](_0x25e343){const _0x1d5c20=_0x41ea1b;return new _0x412ef0(_0x25e343,this[_0x1d5c20(0x162)][_0x1d5c20(0x16f)]);}[_0x41ea1b(0x15a)](_0x599729){return new _0x19de2f(_0x599729);}[_0x41ea1b(0x178)](_0x5333fa){return new _0x5bc32d(_0x5333fa);}[_0x41ea1b(0x149)](_0x297c0d,_0x535392,_0x4ae9b2){const _0x91931=_0x41ea1b;_0x4ae9b2?this[_0x91931(0x152)]=!0x0:this[_0x91931(0x152)]&&this[_0x91931(0x16a)][_0x91931(0x15d)]();}[_0x41ea1b(0x154)](_0x2dccf9,_0x5b4980){const _0x4df994=_0x41ea1b;this[_0x4df994(0x162)][_0x4df994(0x154)](_0x2dccf9,_0x5b4980);}[_0x41ea1b(0x173)](_0x88520){const _0x4540ed=_0x41ea1b;this[_0x4540ed(0x162)][_0x4540ed(0x173)](_0x88520);}[_0x41ea1b(0x17b)](_0x461d75,_0x32be1e){const _0x1a6cf0=_0x41ea1b;this[_0x1a6cf0(0x162)][_0x1a6cf0(0x17b)](_0x461d75,_0x32be1e);}[_0x41ea1b(0x14b)](_0x7485a4){const _0xe5b6e1=_0x41ea1b;this[_0xe5b6e1(0x16a)][_0xe5b6e1(0x14b)](_0x7485a4);}[_0x41ea1b(0x14e)](_0x1ba3bd){const _0x4acc8d=_0x41ea1b;this[_0x4acc8d(0x162)][_0x4acc8d(0x14e)](_0x1ba3bd);}[_0x41ea1b(0x17d)](){const _0x5311ff=_0x41ea1b;this[_0x5311ff(0x162)][_0x5311ff(0x165)]();}[_0x41ea1b(0x168)](){const _0x32f33a=_0x41ea1b;this[_0x32f33a(0x162)][_0x32f33a(0x17c)]();}[_0x41ea1b(0x151)](_0x588631,_0x38d938,_0x1a4720){const _0x465f09=_0x41ea1b;this[_0x465f09(0x162)][_0x465f09(0x151)](_0x588631,_0x38d938,_0x1a4720);}[_0x41ea1b(0x182)](_0x1dd1f8){const _0x3e930f=_0x41ea1b;this[_0x3e930f(0x14c)][_0x3e930f(0x182)](_0x1dd1f8);}[_0x41ea1b(0x14f)](_0x3c7a60){const _0x454173=_0x41ea1b;this[_0x454173(0x14c)][_0x454173(0x14f)](_0x3c7a60);}[_0x41ea1b(0x17f)](){const _0xfbbbe6=_0x41ea1b;this[_0xfbbbe6(0x16a)][_0xfbbbe6(0x171)]();}[_0x41ea1b(0x159)](_0x4b23c0){const _0x24539e=_0x41ea1b;this[_0x24539e(0x162)][_0x24539e(0x159)](_0x4b23c0);}[_0x41ea1b(0x166)](_0x34d884){const _0x53f6a3=_0x41ea1b;this[_0x53f6a3(0x16a)][_0x53f6a3(0x158)](_0x34d884);}[_0x41ea1b(0x16d)](_0x23bd49,_0x32f0fa){const _0x59c761=_0x41ea1b;this[_0x59c761(0x14c)][_0x59c761(0x16d)](_0x23bd49,_0x32f0fa);}[_0x41ea1b(0x14a)](_0x5f2085){const _0x4466b8=_0x41ea1b;this[_0x4466b8(0x14c)][_0x4466b8(0x14a)](_0x5f2085);}[_0x41ea1b(0x167)](){const _0x51dd88=_0x41ea1b;this[_0x51dd88(0x14c)][_0x51dd88(0x167)]();}[_0x41ea1b(0x174)](_0x585f2f){const _0x16d77c=_0x41ea1b;this[_0x16d77c(0x14c)][_0x16d77c(0x174)](_0x585f2f);}[_0x41ea1b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291){const _0x43601b=_0x41ea1b;this[_0x43601b(0x162)][_0x43601b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291);}[_0x41ea1b(0x156)](_0x321e27){const _0xa437ff=_0x41ea1b;this[_0xa437ff(0x162)][_0xa437ff(0x156)](_0x321e27);}[_0x41ea1b(0x181)](){const _0x1ba7e2=_0x41ea1b;this[_0x1ba7e2(0x16a)][_0x1ba7e2(0x15d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x574cec=_0x24b1;(function(_0x3d6d04,_0xe1fdbf){const _0x339555=_0x24b1,_0x16367b=_0x3d6d04();while(!![]){try{const _0x41ceb5=parseInt(_0x339555(0x1a2))/0x1*(-parseInt(_0x339555(0x1be))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x1b9))/0x4)+parseInt(_0x339555(0x1b6))/0x5+parseInt(_0x339555(0x1b2))/0x6+-parseInt(_0x339555(0x19d))/0x7*(parseInt(_0x339555(0x190))/0x8)+parseInt(_0x339555(0x1d4))/0x9*(parseInt(_0x339555(0x191))/0xa)+parseInt(_0x339555(0x19b))/0xb;if(_0x41ceb5===_0xe1fdbf)break;else _0x16367b['push'](_0x16367b['shift']());}catch(_0x1f59be){_0x16367b['push'](_0x16367b['shift']());}}}(_0x9f44,0x6e0fd));import{CKEditorError as _0xf8a08f,logWarning as _0xe15d4f,scrollViewportToShowTarget as _0x5b5d40}from'ckeditor5/src/utils.js';import{View as _0x4d4e4f}from'ckeditor5/src/ui.js';function _0x24b1(_0x33f14f,_0x4b5504){const _0x9f44f=_0x9f44();return _0x24b1=function(_0x24b171,_0xcbda49){_0x24b171=_0x24b171-0x190;let _0x3d80e8=_0x9f44f[_0x24b171];return _0x3d80e8;},_0x24b1(_0x33f14f,_0x4b5504);}import{AI_CHAT_UI_EVENT_NAMES as _0x4f7dd2}from'../utils/eventnames.js';function _0x9f44(){const _0x1f05f8=['removeItem','_setupTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isVisible','set','createCollection','ck-ai-chat__feed__items','isPending','stop','2172966HrjdNZ','locale','addItem','includes','1726695zAsFJv','startAutoScroll','_createTemplateChildren','4948KaYYLe','element','start','ai-suggestion-reply','_createFeedLoader','2wFELfs','loadingMessage','markItemAsDone','updateSuggestionItem','bindTemplate','isLoadingSkeletonVisible','getItemIds','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__feed','clear','updateWebSources','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_bodyCollection','stopAutoScroll','setTemplate','getItemById','updatePartState','remove','add','updateContent','5918841uVnPse','updateReplyItem','extendTemplate','ai-reply','updateSources','toggleLoadingSkeleton','getPartView','ck-ai-chat__loader-text','updateSuggestionPartState','map','div','_createSkeletonLoader','8tZCFBG','10vMBaaJ','ai-chat-feed-view-item-not-found','options','find','scrollToSuggestion','_createLoaderChildren','interaction-header','ck-ai-chat__loader','user-message','1449InfVnJ','8742030JzJXvN','destroy','5676132dokWMj','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','setLoadingMessage','_createFeedItems','300719YZCYDo','scrollManager','ck-hidden','children','render','delegate','ai-chat-feed-view-item-not-a-reply-item'];_0x9f44=function(){return _0x1f05f8;};return _0x9f44();}import{AIChatFeedSuggestionItemView as _0x3c4942}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3a8f44}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x144d8f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5f3c4e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4b66d5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x27884a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x394e38,SKELETON_DEFINITIONS as _0x5bc358}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4fe8cf}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d4e4f{[_0x574cec(0x1a5)];[_0x574cec(0x1a3)];[_0x574cec(0x1cc)];constructor(_0x199449,_0x365088){const _0x4a7337=_0x574cec;super(_0x199449),this[_0x4a7337(0x1cc)]=_0x365088,this[_0x4a7337(0x1ad)](_0x4a7337(0x1b0),!0x1),this[_0x4a7337(0x1ad)](_0x4a7337(0x1bf),''),this[_0x4a7337(0x1ad)](_0x4a7337(0x1c3),!0x1),this[_0x4a7337(0x1a5)]=this[_0x4a7337(0x1ae)](),this[_0x4a7337(0x1a5)][_0x4a7337(0x1a7)](..._0x4f7dd2)['to'](this),this[_0x4a7337(0x1aa)]();}[_0x574cec(0x1a6)](){const _0x1f5af4=_0x574cec;super[_0x1f5af4(0x1a6)](),this[_0x1f5af4(0x1a3)]=new _0x27884a(this[_0x1f5af4(0x1ba)]);}[_0x574cec(0x19c)](){const _0x3dfd12=_0x574cec;super[_0x3dfd12(0x19c)](),this[_0x3dfd12(0x1a3)][_0x3dfd12(0x19c)]();}[_0x574cec(0x1c8)](){const _0x18681a=_0x574cec;this[_0x18681a(0x1a5)][_0x18681a(0x1c8)]();}[_0x574cec(0x1b4)](_0x5ba7a2,_0x4b5f73){const _0x5d9d95=_0x574cec;let _0x17fd68;_0x17fd68=_0x5d9d95(0x1d7)===_0x5ba7a2?new _0x3a8f44(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x1bc)===_0x5ba7a2?new _0x3c4942(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x199)===_0x5ba7a2?new _0x144d8f(this[_0x5d9d95(0x1b3)],_0x4b5f73,this[_0x5d9d95(0x1cc)]):_0x5d9d95(0x197)===_0x5ba7a2?new _0x4b66d5(this[_0x5d9d95(0x1b3)],_0x4b5f73):new _0x5f3c4e(_0x4b5f73),this[_0x5d9d95(0x1a5)][_0x5d9d95(0x1d2)](_0x17fd68);}async[_0x574cec(0x1d5)]({id:_0x58d611,parsedContent:_0xd0e7b1,renderingStrategy:_0x5a94c3,abortSignal:_0x4b73f5}){const _0x2f57f3=_0x574cec,_0x54224d=this[_0x2f57f3(0x1cf)](_0x58d611);if(!(_0x54224d instanceof _0x3a8f44))throw new _0xf8a08f(_0x2f57f3(0x1a8),null,{'itemView':_0x54224d,'id':_0x58d611,'parsedContent':_0xd0e7b1});await _0x54224d[_0x2f57f3(0x1d3)]({'parsedContent':_0xd0e7b1,'renderingStrategy':_0x5a94c3,'abortSignal':_0x4b73f5});}async[_0x574cec(0x1c9)](_0x2f8c6e,_0x4e0a26){const _0x1a91c3=_0x574cec,_0x1e8374=this[_0x1a91c3(0x1cf)](_0x2f8c6e);if(_0x1e8374 instanceof _0x3c4942)_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);else{if(!(_0x1e8374 instanceof _0x3a8f44))throw new _0xf8a08f(_0x1a91c3(0x19f),null,{'itemView':_0x1e8374,'id':_0x2f8c6e,'sources':_0x4e0a26});_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);}}async[_0x574cec(0x1c1)]({id:_0x1366bd,parts:_0x2bc2a2,renderingStrategy:_0x365007,abortSignal:_0x165b80}){const _0x4b61e1=_0x574cec,_0xb72a65=this[_0x4b61e1(0x1cf)](_0x1366bd);if(!(_0xb72a65 instanceof _0x3c4942))throw new _0xf8a08f(_0x4b61e1(0x1c6),null,{'itemView':_0xb72a65,'id':_0x1366bd,'parts':_0x2bc2a2});await _0xb72a65[_0x4b61e1(0x1d3)]({'parts':_0x2bc2a2,'renderingStrategy':_0x365007,'abortSignal':_0x165b80});}[_0x574cec(0x1dc)]({id:_0x606701,index:_0x260e10,state:_0x35a616}){const _0x5d7dac=_0x574cec,_0x38baa0=this[_0x5d7dac(0x1cf)](_0x606701);if(!(_0x38baa0 instanceof _0x3c4942))throw new _0xf8a08f(_0x5d7dac(0x1c6),this,{'id':_0x606701});_0x38baa0[_0x5d7dac(0x1d0)](_0x260e10,_0x35a616);}[_0x574cec(0x1c0)](_0x993f50){const _0x1883fe=_0x574cec;this[_0x1883fe(0x1cf)](_0x993f50)[_0x1883fe(0x19e)]();}[_0x574cec(0x1c4)](){const _0x5c3ae4=_0x574cec;return this[_0x5c3ae4(0x1a5)][_0x5c3ae4(0x1dd)](_0x1c2ba2=>_0x1c2ba2[_0x5c3ae4(0x193)]['id']);}[_0x574cec(0x1a9)](_0x36b293){const _0x522212=_0x574cec;this[_0x522212(0x1a5)][_0x522212(0x1d1)](this[_0x522212(0x1cf)](_0x36b293));}[_0x574cec(0x195)](_0x32e4c3,_0x385a87){const _0x3ad68c=_0x574cec,_0x1b5b7f=this[_0x3ad68c(0x1cf)](_0x32e4c3);if(!(_0x1b5b7f instanceof _0x3c4942))return void _0xe15d4f(_0x3ad68c(0x1ab),{'replyId':_0x32e4c3,'partIndex':_0x385a87});const _0xefe5=_0x1b5b7f[_0x3ad68c(0x1da)](_0x385a87);_0xefe5?_0x5b5d40({'target':_0xefe5[_0x3ad68c(0x1ba)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xe15d4f(_0x3ad68c(0x1cb),{'replyId':_0x32e4c3,'partIndex':_0x385a87});}[_0x574cec(0x1aa)](){const _0x506f9c=_0x574cec;this[_0x506f9c(0x1ce)]({'tag':_0x506f9c(0x1de),'attributes':{'class':['ck',_0x506f9c(0x1c7)]},'children':this[_0x506f9c(0x1b8)]()});}[_0x574cec(0x1b8)](){const _0x46c023=_0x574cec,_0x58260a=this[_0x46c023(0x1df)]();return[this[_0x46c023(0x1a1)](),_0x58260a,this[_0x46c023(0x1bd)]()];}[_0x574cec(0x1df)](){const _0x2ef030=_0x574cec,_0x33dedd=new _0x394e38(this[_0x2ef030(0x1b3)],_0x5bc358[_0x2ef030(0x1c5)]);return _0x33dedd[_0x2ef030(0x1d6)]({'attributes':{'class':[this[_0x2ef030(0x1c2)]['if'](_0x2ef030(0x1c3),_0x2ef030(0x1a4),_0x649efd=>!_0x649efd)]}}),_0x33dedd;}[_0x574cec(0x1a1)](){const _0x32bf09=_0x574cec,_0x50c4d6=new _0x4d4e4f(this[_0x32bf09(0x1b3)]);return _0x50c4d6[_0x32bf09(0x1ce)]({'tag':_0x32bf09(0x1de),'attributes':{'class':['ck',_0x32bf09(0x1af),this[_0x32bf09(0x1c2)]['if'](_0x32bf09(0x1c3),_0x32bf09(0x1a4))]},'children':this[_0x32bf09(0x1a5)]}),_0x50c4d6;}[_0x574cec(0x1bd)](){const _0x138695=_0x574cec,_0x2cf0fb=new _0x4d4e4f(this[_0x138695(0x1b3)]);return _0x2cf0fb[_0x138695(0x1ce)]({'tag':_0x138695(0x1de),'attributes':{'class':['ck',_0x138695(0x198),this[_0x138695(0x1c2)]['if'](_0x138695(0x1b0),_0x138695(0x1a4),_0x566c12=>!_0x566c12)]},'children':this[_0x138695(0x196)]()}),_0x2cf0fb;}[_0x574cec(0x196)](){const _0xc53f76=_0x574cec,_0x3e5359=new _0x4fe8cf();return _0x3e5359[_0xc53f76(0x1ac)]=!0x0,[_0x3e5359,{'tag':_0xc53f76(0x1ca),'attributes':{'class':['ck',_0xc53f76(0x1db)]},'children':[{'text':this[_0xc53f76(0x1c2)]['to'](_0xc53f76(0x1bf))}]}];}[_0x574cec(0x1cf)](_0x55571b){const _0x1d3b2d=_0x574cec,_0xd9eb4d=this[_0x1d3b2d(0x1a5)][_0x1d3b2d(0x194)](_0x41f337=>_0x41f337[_0x1d3b2d(0x193)]['id'][_0x1d3b2d(0x1b5)](_0x55571b));if(!_0xd9eb4d)throw new _0xf8a08f(_0x1d3b2d(0x192),this,{'id':_0x55571b});return _0xd9eb4d;}[_0x574cec(0x1a0)](_0x41254f){const _0x2754ae=_0x574cec;this[_0x2754ae(0x1ad)](_0x2754ae(0x1bf),_0x41254f);}[_0x574cec(0x1d9)](_0x5ea1cd){const _0x2cc38d=_0x574cec;this[_0x2cc38d(0x1ad)](_0x2cc38d(0x1c3),_0x5ea1cd);}[_0x574cec(0x1b7)](){const _0x2bd662=_0x574cec;this[_0x2bd662(0x1a3)][_0x2bd662(0x1bb)]();}[_0x574cec(0x1cd)](){const _0x4bbff3=_0x574cec;this[_0x4bbff3(0x1a3)][_0x4bbff3(0x1b1)]();}}
23
+ const _0x588c7e=_0x1084;(function(_0x1ecbea,_0x197bfe){const _0x137229=_0x1084,_0x456564=_0x1ecbea();while(!![]){try{const _0x447ff8=parseInt(_0x137229(0x224))/0x1+parseInt(_0x137229(0x201))/0x2+-parseInt(_0x137229(0x1e8))/0x3*(parseInt(_0x137229(0x222))/0x4)+-parseInt(_0x137229(0x22a))/0x5+parseInt(_0x137229(0x1f8))/0x6+parseInt(_0x137229(0x1f9))/0x7+-parseInt(_0x137229(0x1eb))/0x8*(parseInt(_0x137229(0x20f))/0x9);if(_0x447ff8===_0x197bfe)break;else _0x456564['push'](_0x456564['shift']());}catch(_0x25559f){_0x456564['push'](_0x456564['shift']());}}}(_0x4182,0x4f4ee));import{CKEditorError as _0x254ce0,logWarning as _0x2deb97,scrollViewportToShowTarget as _0xfde5a8}from'ckeditor5/src/utils.js';import{View as _0x4caf9c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16cbbd}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3e5310}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x426664}from'./feed/aichatfeedreplyitemview.js';function _0x1084(_0x365302,_0x4b1889){const _0x41823a=_0x4182();return _0x1084=function(_0x108440,_0x2aab88){_0x108440=_0x108440-0x1e6;let _0x3c286e=_0x41823a[_0x108440];return _0x3c286e;},_0x1084(_0x365302,_0x4b1889);}import{AIChatFeedUserMessageItemView as _0xb9cbd3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x49e132}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x57307e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4755c9}from'../utils/scrollmanager.js';import{AISkeletonView as _0x16f68f,SKELETON_DEFINITIONS as _0x52d8d0}from'../../aicore/ui/aiskeleton.js';function _0x4182(){const _0x2a6bfc=['markItemAsDone','1740495FDLWsg','locale','element','add','_createFeedLoader','ck-ai-chat__loader-text','loadingMessage','remove','createCollection','addItem','options','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','6fdkRFI','isVisible','isLoadingSkeletonVisible','1117672SiLAQN','scrollManager','interaction-header','includes','scrollToSuggestion','stop','ck-hidden','children','span','map','_setupTemplate','extendTemplate','_createSkeletonLoader','1983438KPTFny','238980RAqfBQ','removeItem','updateSuggestionPartState','_createTemplateChildren','updateContent','ai-reply','_bodyCollection','clear','562718zBZxPu','find','getPartView','start','updateWebSources','ai-chat-feed-view-item-not-found','ck-ai-chat__loader','isPending','ai-suggestion-reply','updateReplyItem','bindTemplate','render','set','startAutoScroll','18MuqEkZ','updatePartState','div','_createFeedItems','ck-ai-chat__feed','updateSources','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','markAsDone','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','updateSuggestionItem','_createLoaderChildren','destroy','getItemById','ck-ai-chat__feed__items','user-message','setTemplate','375944bWEBYe','delegate','494263IGBvQx','setLoadingMessage','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-reply-item','aiFeed'];_0x4182=function(){return _0x2a6bfc;};return _0x4182();}import{AISpinnerView as _0x3ddc4f}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4caf9c{[_0x588c7e(0x1f2)];[_0x588c7e(0x1ec)];[_0x588c7e(0x1ff)];constructor(_0x10ec04,_0x430f8e){const _0x2e4a6c=_0x588c7e;super(_0x10ec04),this[_0x2e4a6c(0x1ff)]=_0x430f8e,this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x208),!0x1),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x230),''),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x1ea),!0x1),this[_0x2e4a6c(0x1f2)]=this[_0x2e4a6c(0x232)](),this[_0x2e4a6c(0x1f2)][_0x2e4a6c(0x223)](..._0x16cbbd)['to'](this),this[_0x2e4a6c(0x1f5)]();}[_0x588c7e(0x20c)](){const _0x27b171=_0x588c7e;super[_0x27b171(0x20c)](),this[_0x27b171(0x1ec)]=new _0x4755c9(this[_0x27b171(0x22c)]);}[_0x588c7e(0x21d)](){const _0x2db5e4=_0x588c7e;super[_0x2db5e4(0x21d)](),this[_0x2db5e4(0x1ec)][_0x2db5e4(0x21d)]();}[_0x588c7e(0x200)](){const _0x393fce=_0x588c7e;this[_0x393fce(0x1f2)][_0x393fce(0x200)]();}[_0x588c7e(0x233)](_0x56eccf,_0x2c34ab){const _0x556654=_0x588c7e;let _0x15ab89;_0x15ab89=_0x556654(0x1fe)===_0x56eccf?new _0x426664(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x209)===_0x56eccf?new _0x3e5310(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x220)===_0x56eccf?new _0xb9cbd3(this[_0x556654(0x22b)],_0x2c34ab,this[_0x556654(0x1ff)]):_0x556654(0x1ed)===_0x56eccf?new _0x57307e(this[_0x556654(0x22b)],_0x2c34ab):new _0x49e132(_0x2c34ab),this[_0x556654(0x1f2)][_0x556654(0x22d)](_0x15ab89);}async[_0x588c7e(0x20a)]({id:_0x214ba6,parsedContent:_0x54808a,renderingStrategy:_0x3b3589,abortSignal:_0x6477de}){const _0x764a21=_0x588c7e,_0x1cdfc4=this[_0x764a21(0x21e)](_0x214ba6);if(!(_0x1cdfc4 instanceof _0x426664))throw new _0x254ce0(_0x764a21(0x227),null,{'itemView':_0x1cdfc4,'id':_0x214ba6,'parsedContent':_0x54808a});await _0x1cdfc4[_0x764a21(0x1fd)]({'parsedContent':_0x54808a,'renderingStrategy':_0x3b3589,'abortSignal':_0x6477de});}async[_0x588c7e(0x205)](_0x99c0ef,_0x274a4d){const _0x35af73=_0x588c7e,_0x4c6ecd=this[_0x35af73(0x21e)](_0x99c0ef);if(_0x4c6ecd instanceof _0x3e5310)_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);else{if(!(_0x4c6ecd instanceof _0x426664))throw new _0x254ce0(_0x35af73(0x217),null,{'itemView':_0x4c6ecd,'id':_0x99c0ef,'sources':_0x274a4d});_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);}}async[_0x588c7e(0x21b)]({id:_0x45547d,parts:_0x358af4,renderingStrategy:_0x44ec2f,abortSignal:_0x31b348}){const _0x4f7152=_0x588c7e,_0x4d68af=this[_0x4f7152(0x21e)](_0x45547d);if(!(_0x4d68af instanceof _0x3e5310))throw new _0x254ce0(_0x4f7152(0x219),null,{'itemView':_0x4d68af,'id':_0x45547d,'parts':_0x358af4});await _0x4d68af[_0x4f7152(0x1fd)]({'parts':_0x358af4,'renderingStrategy':_0x44ec2f,'abortSignal':_0x31b348});}[_0x588c7e(0x1fb)]({id:_0x3cb05d,index:_0x2977ae,state:_0x147eb0}){const _0x20c6e6=_0x588c7e,_0x3690d1=this[_0x20c6e6(0x21e)](_0x3cb05d);if(!(_0x3690d1 instanceof _0x3e5310))throw new _0x254ce0(_0x20c6e6(0x219),this,{'id':_0x3cb05d});_0x3690d1[_0x20c6e6(0x210)](_0x2977ae,_0x147eb0);}[_0x588c7e(0x229)](_0x52269f){const _0xa2ef70=_0x588c7e;this[_0xa2ef70(0x21e)](_0x52269f)[_0xa2ef70(0x218)]();}[_0x588c7e(0x21a)](){const _0x22bf8e=_0x588c7e;return this[_0x22bf8e(0x1f2)][_0x22bf8e(0x1f4)](_0x4a64ae=>_0x4a64ae[_0x22bf8e(0x1e6)]['id']);}[_0x588c7e(0x1fa)](_0x52ec85){const _0x3c3fac=_0x588c7e;this[_0x3c3fac(0x1f2)][_0x3c3fac(0x231)](this[_0x3c3fac(0x21e)](_0x52ec85));}[_0x588c7e(0x1ef)](_0x132a5b,_0xc556b6){const _0x3d0ce0=_0x588c7e,_0x2013ea=this[_0x3d0ce0(0x21e)](_0x132a5b);if(!(_0x2013ea instanceof _0x3e5310))return void _0x2deb97(_0x3d0ce0(0x1e7),{'replyId':_0x132a5b,'partIndex':_0xc556b6});const _0x438557=_0x2013ea[_0x3d0ce0(0x203)](_0xc556b6);_0x438557?_0xfde5a8({'target':_0x438557[_0x3d0ce0(0x22c)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2deb97(_0x3d0ce0(0x226),{'replyId':_0x132a5b,'partIndex':_0xc556b6});}[_0x588c7e(0x1f5)](){const _0x51e368=_0x588c7e;this[_0x51e368(0x221)]({'tag':_0x51e368(0x211),'attributes':{'class':['ck',_0x51e368(0x213)]},'children':this[_0x51e368(0x1fc)]()});}[_0x588c7e(0x1fc)](){const _0x19868d=_0x588c7e,_0x3dfbc2=this[_0x19868d(0x1f7)]();return[this[_0x19868d(0x212)](),_0x3dfbc2,this[_0x19868d(0x22e)]()];}[_0x588c7e(0x1f7)](){const _0x1b7af6=_0x588c7e,_0x10485d=new _0x16f68f(this[_0x1b7af6(0x22b)],_0x52d8d0[_0x1b7af6(0x228)]);return _0x10485d[_0x1b7af6(0x1f6)]({'attributes':{'class':[this[_0x1b7af6(0x20b)]['if'](_0x1b7af6(0x1ea),_0x1b7af6(0x1f1),_0x4e4bcc=>!_0x4e4bcc)]}}),_0x10485d;}[_0x588c7e(0x212)](){const _0x117862=_0x588c7e,_0x34d04f=new _0x4caf9c(this[_0x117862(0x22b)]);return _0x34d04f[_0x117862(0x221)]({'tag':_0x117862(0x211),'attributes':{'class':['ck',_0x117862(0x21f),this[_0x117862(0x20b)]['if'](_0x117862(0x1ea),_0x117862(0x1f1))]},'children':this[_0x117862(0x1f2)]}),_0x34d04f;}[_0x588c7e(0x22e)](){const _0x478596=_0x588c7e,_0x2e1382=new _0x4caf9c(this[_0x478596(0x22b)]);return _0x2e1382[_0x478596(0x221)]({'tag':_0x478596(0x211),'attributes':{'class':['ck',_0x478596(0x207),this[_0x478596(0x20b)]['if'](_0x478596(0x208),_0x478596(0x1f1),_0x3b9c10=>!_0x3b9c10)]},'children':this[_0x478596(0x21c)]()}),_0x2e1382;}[_0x588c7e(0x21c)](){const _0x469b6c=_0x588c7e,_0x302662=new _0x3ddc4f();return _0x302662[_0x469b6c(0x1e9)]=!0x0,[_0x302662,{'tag':_0x469b6c(0x1f3),'attributes':{'class':['ck',_0x469b6c(0x22f)]},'children':[{'text':this[_0x469b6c(0x20b)]['to'](_0x469b6c(0x230))}]}];}[_0x588c7e(0x21e)](_0x133178){const _0x208f00=_0x588c7e,_0x190955=this[_0x208f00(0x1f2)][_0x208f00(0x202)](_0x23c406=>_0x23c406[_0x208f00(0x1e6)]['id'][_0x208f00(0x1ee)](_0x133178));if(!_0x190955)throw new _0x254ce0(_0x208f00(0x206),this,{'id':_0x133178});return _0x190955;}[_0x588c7e(0x225)](_0x42dc0c){const _0x39fa9b=_0x588c7e;this[_0x39fa9b(0x20d)](_0x39fa9b(0x230),_0x42dc0c);}[_0x588c7e(0x215)](_0x63b774){const _0x312100=_0x588c7e;this[_0x312100(0x20d)](_0x312100(0x1ea),_0x63b774);}[_0x588c7e(0x20e)](){const _0x41515d=_0x588c7e;this[_0x41515d(0x1ec)][_0x41515d(0x204)]();}[_0x588c7e(0x216)](){const _0x184ba0=_0x588c7e;this[_0x184ba0(0x1ec)][_0x184ba0(0x1f0)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1317(_0x28ea23,_0x1370f1){const _0x33b99b=_0x33b9();return _0x1317=function(_0x131786,_0x2fd9db){_0x131786=_0x131786-0x6d;let _0x522084=_0x33b99b[_0x131786];return _0x522084;},_0x1317(_0x28ea23,_0x1370f1);}const _0x27681a=_0x1317;(function(_0x1d8697,_0x25e1c0){const _0x451010=_0x1317,_0x653412=_0x1d8697();while(!![]){try{const _0xf61179=parseInt(_0x451010(0x78))/0x1*(-parseInt(_0x451010(0x80))/0x2)+parseInt(_0x451010(0x83))/0x3*(-parseInt(_0x451010(0x7e))/0x4)+parseInt(_0x451010(0x85))/0x5+-parseInt(_0x451010(0x82))/0x6+parseInt(_0x451010(0x77))/0x7*(parseInt(_0x451010(0x81))/0x8)+parseInt(_0x451010(0x86))/0x9*(-parseInt(_0x451010(0x75))/0xa)+parseInt(_0x451010(0x70))/0xb;if(_0xf61179===_0x25e1c0)break;else _0x653412['push'](_0x653412['shift']());}catch(_0x1bf654){_0x653412['push'](_0x653412['shift']());}}}(_0x33b9,0xef312));import{ButtonView as _0x3cef7b,FormHeaderView as _0xc61646}from'ckeditor5/src/ui.js';import{IconPlus as _0x1c29ca,IconAIChat as _0x1160a6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ba1aa}from'../../aicore/utils/common-translations.js';function _0x33b9(){const _0x3895a9=['AI_CHAT_LABEL_NEW_CHAT','10eBClam','set','7UnxAqT','1787oNIVFP','ck-ai-header\x20ck-ai-header_chat','startConversation','execute','resizeButton','ck-ai-chat__start-conversation','4fnPcBQ','add','74uwLHqQ','10231064nnxhSF','5075820JBcuKu','3116001IvqvuK','AI_CHAT_HEADING','6529885KMvBFz','15640389QFYGCS','fire','isMaximized','conversationStartButton','22917917qbHWdi','locale','_createStartConversationButton','children'];_0x33b9=function(){return _0x3895a9;};return _0x33b9();}import{createResizeButton as _0x3fc4af}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xc61646{[_0x27681a(0x6f)];[_0x27681a(0x7c)];constructor(_0x547335,_0x23d3ef){const _0x5133b3=_0x27681a;super(_0x547335,{'label':_0x1ba1aa(_0x547335,_0x5133b3(0x84)),'class':_0x5133b3(0x79),'icon':_0x1160a6}),this[_0x5133b3(0x76)](_0x5133b3(0x6e),!0x1),this[_0x5133b3(0x6f)]=this[_0x5133b3(0x72)](_0x547335),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x6f)]),_0x23d3ef&&(this[_0x5133b3(0x7c)]=_0x3fc4af(_0x547335,this),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x7c)]));}[_0x27681a(0x72)](_0x252da7){const _0x1267b5=_0x27681a,_0x4db12e=new _0x3cef7b(_0x252da7);return _0x4db12e[_0x1267b5(0x76)]({'label':_0x1ba1aa(this[_0x1267b5(0x71)],_0x1267b5(0x74)),'withText':!0x0,'icon':_0x1c29ca,'class':_0x1267b5(0x7d)}),_0x4db12e['on'](_0x1267b5(0x7b),()=>{const _0x4aaff5=_0x1267b5;this[_0x4aaff5(0x6d)](_0x4aaff5(0x7a));}),_0x4db12e;}}
23
+ function _0x5b3d(){const _0x43e52b=['startConversation','AI_CHAT_LABEL_NEW_CHAT','2913492EraNMk','_createStartConversationButton','5705196XeKmUD','5036235zTbwmC','603fKGYNT','fire','add','398968sTbTlm','2103268EslFXH','3vbHiFE','resizeButton','7458600xpYiih','conversationStartButton','isMaximized','ck-ai-chat__start-conversation','execute','848554MPflaU','ck-ai-header\x20ck-ai-header_chat','children','AI_CHAT_HEADING','set','locale'];_0x5b3d=function(){return _0x43e52b;};return _0x5b3d();}const _0x4fbb86=_0x1504;(function(_0x4dfb83,_0x1a6f52){const _0x242afc=_0x1504,_0x18fb1b=_0x4dfb83();while(!![]){try{const _0x28651a=-parseInt(_0x242afc(0x1c4))/0x1+-parseInt(_0x242afc(0x1d4))/0x2*(-parseInt(_0x242afc(0x1d5))/0x3)+parseInt(_0x242afc(0x1cc))/0x4+parseInt(_0x242afc(0x1cf))/0x5+parseInt(_0x242afc(0x1d7))/0x6+parseInt(_0x242afc(0x1ce))/0x7+-parseInt(_0x242afc(0x1d3))/0x8*(parseInt(_0x242afc(0x1d0))/0x9);if(_0x28651a===_0x1a6f52)break;else _0x18fb1b['push'](_0x18fb1b['shift']());}catch(_0x14ca5b){_0x18fb1b['push'](_0x18fb1b['shift']());}}}(_0x5b3d,0xa006f));function _0x1504(_0x3ade4e,_0x4cbdcf){const _0x5b3d79=_0x5b3d();return _0x1504=function(_0x150495,_0x27312f){_0x150495=_0x150495-0x1c4;let _0x2b87e4=_0x5b3d79[_0x150495];return _0x2b87e4;},_0x1504(_0x3ade4e,_0x4cbdcf);}import{ButtonView as _0x40ce88,FormHeaderView as _0x5ab043}from'ckeditor5/src/ui.js';import{IconPlus as _0x55e782,IconAIChat as _0x558014}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d8c83}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x48b016}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x5ab043{[_0x4fbb86(0x1d8)];[_0x4fbb86(0x1d6)];constructor(_0x573bff,_0x1d5758){const _0x5d1127=_0x4fbb86;super(_0x573bff,{'label':_0x3d8c83(_0x573bff,_0x5d1127(0x1c7)),'class':_0x5d1127(0x1c5),'icon':_0x558014}),this[_0x5d1127(0x1c8)](_0x5d1127(0x1d9),!0x1),this[_0x5d1127(0x1d8)]=this[_0x5d1127(0x1cd)](_0x573bff),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d8)]),_0x1d5758&&(this[_0x5d1127(0x1d6)]=_0x48b016(_0x573bff,this),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d6)]));}[_0x4fbb86(0x1cd)](_0x1a63be){const _0x13c056=_0x4fbb86,_0x2f4a32=new _0x40ce88(_0x1a63be);return _0x2f4a32[_0x13c056(0x1c8)]({'label':_0x3d8c83(this[_0x13c056(0x1c9)],_0x13c056(0x1cb)),'withText':!0x0,'icon':_0x55e782,'class':_0x13c056(0x1da)}),_0x2f4a32['on'](_0x13c056(0x1db),()=>{const _0x57d889=_0x13c056;this[_0x57d889(0x1d1)](_0x57d889(0x1ca));}),_0x2f4a32;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x18a2a1=_0xbcf2;function _0x4e2a(){var _0xdf2844=['416105WhctQn','uiLanguageDirection','8ptGkbH','1307736vpwchc','1188GBtYqh','6GIZlNo','1383NUqfXl','ck-rounded-corners','destroy','chatFeed','222170cQQRLE','_bodyCollection','9pmsdfy','53163lGBORD','attachToDom','chatDisclaimer','setTemplate','delegate','chatHeader','detachFromDom','2830219IYvEhQ','ck-ai-chat','2778920uHHosC','ck-reset_all','closeSourceResourceBalloon','populateSourceResourceBalloon','308PzaxdB','chatControls','div'];_0x4e2a=function(){return _0xdf2844;};return _0x4e2a();}function _0xbcf2(_0x445e98,_0x401dc0){var _0x4e2afd=_0x4e2a();return _0xbcf2=function(_0xbcf233,_0x3fc471){_0xbcf233=_0xbcf233-0xf6;var _0x23e716=_0x4e2afd[_0xbcf233];return _0x23e716;},_0xbcf2(_0x445e98,_0x401dc0);}(function(_0x4687fb,_0x271d19){var _0x21c2f6=_0xbcf2,_0x123e17=_0x4687fb();while(!![]){try{var _0x21ca14=parseInt(_0x21c2f6(0x110))/0x1*(parseInt(_0x21c2f6(0x107))/0x2)+parseInt(_0x21c2f6(0x10d))/0x3+parseInt(_0x21c2f6(0x10c))/0x4*(-parseInt(_0x21c2f6(0x10a))/0x5)+parseInt(_0x21c2f6(0x10f))/0x6*(-parseInt(_0x21c2f6(0x101))/0x7)+parseInt(_0x21c2f6(0x103))/0x8*(-parseInt(_0x21c2f6(0xf9))/0x9)+parseInt(_0x21c2f6(0xf7))/0xa+parseInt(_0x21c2f6(0xfa))/0xb*(parseInt(_0x21c2f6(0x10e))/0xc);if(_0x21ca14===_0x271d19)break;else _0x123e17['push'](_0x123e17['shift']());}catch(_0x35a90c){_0x123e17['push'](_0x123e17['shift']());}}}(_0x4e2a,0x3881e));import{View as _0xee1c73,BodyCollection as _0x1199b9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59ed78}from'../utils/eventnames.js';import{AIChatFeedView as _0x301e15}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d94fb}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x424843}from'./aichatheaderview.js';import{AIDisclaimerView as _0x272f53}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0xee1c73{[_0x18a2a1(0xff)];[_0x18a2a1(0xf6)];[_0x18a2a1(0x108)];[_0x18a2a1(0xfc)];[_0x18a2a1(0xf8)];constructor(_0x22a510,_0x2b0b6e){var _0x21802f=_0x18a2a1;super(_0x22a510),this[_0x21802f(0xf8)]=new _0x1199b9(_0x22a510),this[_0x21802f(0xf8)][_0x21802f(0xfb)](),this[_0x21802f(0xff)]=new _0x424843(_0x22a510,_0x2b0b6e),this[_0x21802f(0xff)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xf6)]=new _0x301e15(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0xf6)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0x108)]=new _0x5d94fb(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0x108)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xfc)]=new _0x272f53(_0x22a510),this[_0x21802f(0xfd)]({'tag':_0x21802f(0x109),'attributes':{'class':['ck',_0x21802f(0x104),_0x21802f(0x102),_0x21802f(0x111)],'dir':_0x22a510[_0x21802f(0x10b)]},'children':[this[_0x21802f(0xff)],this[_0x21802f(0xf6)],this[_0x21802f(0x108)],this[_0x21802f(0xfc)]]});}[_0x18a2a1(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163){var _0x46fbc8=_0x18a2a1;this[_0x46fbc8(0x108)][_0x46fbc8(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163);}[_0x18a2a1(0x105)](_0x4e8d78){var _0x42dada=_0x18a2a1;this[_0x42dada(0x108)][_0x42dada(0x105)](_0x4e8d78);}[_0x18a2a1(0x112)](){var _0x5b9e18=_0x18a2a1;this[_0x5b9e18(0xf8)][_0x5b9e18(0x100)](),super[_0x5b9e18(0x112)]();}}
23
+ var _0x451b5d=_0x5069;(function(_0x18d495,_0x5c5826){var _0x4e2c2b=_0x5069,_0x1797a9=_0x18d495();while(!![]){try{var _0x8bd265=-parseInt(_0x4e2c2b(0x1ac))/0x1*(-parseInt(_0x4e2c2b(0x1a2))/0x2)+parseInt(_0x4e2c2b(0x1b8))/0x3*(-parseInt(_0x4e2c2b(0x1b9))/0x4)+-parseInt(_0x4e2c2b(0x1b6))/0x5*(-parseInt(_0x4e2c2b(0x1b4))/0x6)+parseInt(_0x4e2c2b(0x1b1))/0x7*(-parseInt(_0x4e2c2b(0x1ad))/0x8)+-parseInt(_0x4e2c2b(0x1ae))/0x9*(parseInt(_0x4e2c2b(0x1bc))/0xa)+parseInt(_0x4e2c2b(0x1bb))/0xb+-parseInt(_0x4e2c2b(0x1ab))/0xc*(parseInt(_0x4e2c2b(0x1a9))/0xd);if(_0x8bd265===_0x5c5826)break;else _0x1797a9['push'](_0x1797a9['shift']());}catch(_0x3b0e81){_0x1797a9['push'](_0x1797a9['shift']());}}}(_0x6e84,0x3f93a));function _0x6e84(){var _0x5daa92=['454065YFkVZL','4NOPyiA','ck-ai-chat','3649921bIstgV','1099090eZezxD','_bodyCollection','populateSourceResourceBalloon','closeSourceResourceBalloon','572XhIlAa','detachFromDom','ck-rounded-corners','uiLanguageDirection','ck-reset_all','attachToDom','chatControls','1530568sLOBLy','chatFeed','12FsVspq','908FjHAmh','48MQegEQ','9IbysQe','div','destroy','176071gLxSNT','setTemplate','delegate','1192974AVcCZf','chatHeader','5ScdXnm','chatDisclaimer'];_0x6e84=function(){return _0x5daa92;};return _0x6e84();}import{View as _0x2f2d2e,BodyCollection as _0x49669a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4758fe}from'../utils/eventnames.js';import{AIChatFeedView as _0x3cd60f}from'./aichatfeedview.js';import{AIChatControlsView as _0x33c6e4}from'./aichatcontrolsview.js';function _0x5069(_0x3a1423,_0x1a6ef5){var _0x6e84e7=_0x6e84();return _0x5069=function(_0x50690e,_0x560d15){_0x50690e=_0x50690e-0x19f;var _0x264697=_0x6e84e7[_0x50690e];return _0x264697;},_0x5069(_0x3a1423,_0x1a6ef5);}import{AIChatHeaderView as _0x5a968b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4b9609}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x2f2d2e{[_0x451b5d(0x1b5)];[_0x451b5d(0x1aa)];[_0x451b5d(0x1a8)];[_0x451b5d(0x1b7)];[_0x451b5d(0x19f)];constructor(_0x22f235,_0x1ac730){var _0x28a084=_0x451b5d;super(_0x22f235),this[_0x28a084(0x19f)]=new _0x49669a(_0x22f235),this[_0x28a084(0x19f)][_0x28a084(0x1a7)](),this[_0x28a084(0x1b5)]=new _0x5a968b(_0x22f235,_0x1ac730),this[_0x28a084(0x1b5)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1aa)]=new _0x3cd60f(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1aa)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1a8)]=new _0x33c6e4(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1a8)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1b7)]=new _0x4b9609(_0x22f235),this[_0x28a084(0x1b2)]({'tag':_0x28a084(0x1af),'attributes':{'class':['ck',_0x28a084(0x1a6),_0x28a084(0x1ba),_0x28a084(0x1a4)],'dir':_0x22f235[_0x28a084(0x1a5)]},'children':[this[_0x28a084(0x1b5)],this[_0x28a084(0x1aa)],this[_0x28a084(0x1a8)],this[_0x28a084(0x1b7)]]});}[_0x451b5d(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38){var _0x3d92ba=_0x451b5d;this[_0x3d92ba(0x1a8)][_0x3d92ba(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38);}[_0x451b5d(0x1a1)](_0x197f51){var _0x1c073e=_0x451b5d;this[_0x1c073e(0x1a8)][_0x1c073e(0x1a1)](_0x197f51);}[_0x451b5d(0x1b0)](){var _0x561cb9=_0x451b5d;this[_0x561cb9(0x19f)][_0x561cb9(0x1a3)](),super[_0x561cb9(0x1b0)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c78c3=_0x4181;(function(_0x12a4d2,_0x51fc70){const _0x1e84b2=_0x4181,_0x3286c4=_0x12a4d2();while(!![]){try{const _0x58ba3e=parseInt(_0x1e84b2(0x156))/0x1*(-parseInt(_0x1e84b2(0x14b))/0x2)+-parseInt(_0x1e84b2(0x16e))/0x3+-parseInt(_0x1e84b2(0x11b))/0x4+parseInt(_0x1e84b2(0x17d))/0x5*(parseInt(_0x1e84b2(0x139))/0x6)+parseInt(_0x1e84b2(0x10e))/0x7*(parseInt(_0x1e84b2(0x122))/0x8)+-parseInt(_0x1e84b2(0x199))/0x9*(-parseInt(_0x1e84b2(0x126))/0xa)+-parseInt(_0x1e84b2(0x174))/0xb*(-parseInt(_0x1e84b2(0x17a))/0xc);if(_0x58ba3e===_0x51fc70)break;else _0x3286c4['push'](_0x3286c4['shift']());}catch(_0x5bf488){_0x3286c4['push'](_0x3286c4['shift']());}}}(_0x4d47,0xe13fb));import{View as _0xbf65fb,BalloonPanelView as _0x428e55,ButtonView as _0x1dc775,clickOutsideHandler as _0x30bc6a}from'ckeditor5/src/ui.js';import{Collection as _0x5831be}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x1c78c3(0x179);function _0x4d47(){const _0x3c1971=['disconnect','zIndex','label','style','+\x201','2zYGtcb','pointerEvents','bottom','ck-calculation-container','none','isOn','isConnected','_createShowMoreButtonView','setTemplate','visibility','width','207054JphOcv','innerHeight','_makeAncestorsVisible','clientHeight','content','disableAnimationOnEnter','add','_findTargetContainer','_checkAndHandleOverflow','_renderChipsAndCountRows','_calculateOverflowInContainer','border-box','appendChild','_updateOverflowUI','_restoreAncestorVisibility','clientWidth','top','execute','from','div','_updateShowMoreButtonVisibility','show','children','body','4287141Blidrp','createElement','_visibleChips','hide','_locale','pop','11cEWvxr','isIntersecting','opacity','set','right','300px','1487868fNjqkl','documentElement','_showMoreButtonView','86205MCJEqu','remove','_parentView','_intersectionObserver','boxSizing','hidden','_ancestorsToRestore','length','_calculateContainerWidth','element','some','showMoreButton','forEach','innerWidth','_repinBalloonPanel','overflowContainer','_applyCalculationStyles','_updateBalloonContent','getComputedStyle','display','height','tagName','abs','classList','block\x20!important','slice','_config','button','414567ncFmQv','clear','overflowChips','render','_bodyCollection','textContent','setContainerElement','absolute','_createShowMoreButton','showMoreButtonView','_targetContainer','6845335AGvahm','left','pin','includes','block','_applyOverflowResults','visible\x20!important','_showMoreBalloonPanelView','position','className','_isContainerVisible','push','showMoreLabelPrefix','2755224rZtfhE','observe','_containerElement','destroy','_overflowChips','showMoreBalloon','isVisible','8LVSYNu','_handleShowMoreButtonClick','_createContainerElements','undefined','230GCIprI','filter','querySelector','offsetWidth','auto','0px','_pendingCalculation','_createCalculationContainer','cloneNode','.ck-ai-chat','innerHTML','50px','parentElement','calculationContainer','visible','_createMockButton','_distributeChips','getBoundingClientRect','showBalloonPanel','378PesIiL','_testButtonFit','_setupVisibilityObserver','cssClasses','reorganizeChips','maxVisibleRows','toLowerCase','extendTemplate','_createShowMoreBalloonPanelView','hideBalloonPanel','rowDetectionTolerance','controlsButton','-9999px'];_0x4d47=function(){return _0x3c1971;};return _0x4d47();}function _0x4181(_0xe656e5,_0x44aa97){const _0x4d47a7=_0x4d47();return _0x4181=function(_0x418165,_0x2b8d94){_0x418165=_0x418165-0x107;let _0x32ae28=_0x4d47a7[_0x418165];return _0x32ae28;},_0x4181(_0xe656e5,_0x44aa97);}export class AIChatChipsOverflowManager{[_0x1c78c3(0x172)];[_0x1c78c3(0x197)];[_0x1c78c3(0x170)];[_0x1c78c3(0x11f)];[_0x1c78c3(0x17c)]=null;[_0x1c78c3(0x115)]=null;[_0x1c78c3(0x11d)]=null;[_0x1c78c3(0x107)];[_0x1c78c3(0x17f)]=null;[_0x1c78c3(0x180)]=null;[_0x1c78c3(0x12c)]=!0x1;constructor(_0x49e1c3,_0x143ced,_0x51ead3,_0x8ec027,_0x155232){const _0x18e4cc=_0x1c78c3;this[_0x18e4cc(0x172)]=_0x49e1c3,this[_0x18e4cc(0x170)]=_0x143ced,this[_0x18e4cc(0x197)]={...hn,..._0x51ead3,'cssClasses':{'controlsButton':'','calculationContainer':_0x18e4cc(0x14e),..._0x51ead3[_0x18e4cc(0x13c)]}},this[_0x18e4cc(0x11f)]=new _0x5831be(),this[_0x18e4cc(0x107)]=_0x8ec027,this[_0x18e4cc(0x17f)]=_0x155232||null;}[_0x1c78c3(0x109)](_0x50d537){const _0x4713d1=_0x1c78c3;this[_0x4713d1(0x180)]&&(this[_0x4713d1(0x180)][_0x4713d1(0x146)](),this[_0x4713d1(0x180)]=null),this[_0x4713d1(0x11d)]=_0x50d537,this[_0x4713d1(0x13b)]();}get[_0x1c78c3(0x10c)](){const _0x3f2df1=_0x1c78c3;return this[_0x3f2df1(0x17c)];}get[_0x1c78c3(0x19b)](){const _0x50a784=_0x1c78c3;return this[_0x50a784(0x11f)];}[_0x1c78c3(0x13d)](){requestAnimationFrame(()=>{const _0x233a04=_0x4181;this[_0x233a04(0x15e)]();});}[_0x1c78c3(0x138)](){const _0xd74190=_0x1c78c3;this[_0xd74190(0x17c)]&&this[_0xd74190(0x115)]&&(this[_0xd74190(0x18e)](),this[_0xd74190(0x17c)][_0xd74190(0x150)]=!0x0,this[_0xd74190(0x115)][_0xd74190(0x16b)](),this[_0xd74190(0x115)][_0xd74190(0x110)]({'target':this[_0xd74190(0x17c)][_0xd74190(0x186)],'limiter':document[_0xd74190(0x128)](_0xd74190(0x12f))}));}[_0x1c78c3(0x142)](){const _0x5e4091=_0x1c78c3;this[_0x5e4091(0x17c)]&&this[_0x5e4091(0x115)]&&(this[_0x5e4091(0x17c)][_0x5e4091(0x150)]=!0x1,this[_0x5e4091(0x115)][_0x5e4091(0x171)]());}[_0x1c78c3(0x19a)](){const _0x56b485=_0x1c78c3;this[_0x56b485(0x11f)][_0x56b485(0x19a)](),this[_0x56b485(0x142)](),this[_0x56b485(0x16a)](),this[_0x56b485(0x17c)]&&(this[_0x56b485(0x17c)][_0x56b485(0x148)]=''),this[_0x56b485(0x115)]&&this[_0x56b485(0x115)][_0x56b485(0x15a)][_0x56b485(0x19a)]();}[_0x1c78c3(0x11e)](){const _0x2a2d11=_0x1c78c3;this[_0x2a2d11(0x180)]&&(this[_0x2a2d11(0x180)][_0x2a2d11(0x146)](),this[_0x2a2d11(0x180)]=null),this[_0x2a2d11(0x17c)]&&(this[_0x2a2d11(0x17c)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x17c)]=null),this[_0x2a2d11(0x115)]&&(this[_0x2a2d11(0x115)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x115)]=null);}[_0x1c78c3(0x15e)](){const _0x209008=_0x1c78c3;if(!this[_0x209008(0x11d)])return;if(!this[_0x209008(0x118)]())return void(this[_0x209008(0x12c)]=!0x0);this[_0x209008(0x12c)]=!0x1;const _0xdecc9f=[...this[_0x209008(0x170)],...this[_0x209008(0x11f)]],_0x1f2884=this[_0x209008(0x12d)](),_0xea1657=this[_0x209008(0x160)](_0x1f2884,_0xdecc9f),_0xdf83fd=_0x1f2884[_0x209008(0x183)];_0xdf83fd&&this[_0x209008(0x164)](_0xdf83fd),_0x1f2884[_0x209008(0x17e)](),this[_0x209008(0x113)](_0xdecc9f,_0xea1657);}[_0x1c78c3(0x10b)](){const _0x4acd6d=_0x1c78c3;this[_0x4acd6d(0x17c)]=this[_0x4acd6d(0x152)](),this[_0x4acd6d(0x115)]=this[_0x4acd6d(0x141)](),this[_0x4acd6d(0x17c)][_0x4acd6d(0x19c)](),this[_0x4acd6d(0x11d)][_0x4acd6d(0x162)](this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]),this[_0x4acd6d(0x17c)]['on'](_0x4acd6d(0x167),()=>{const _0x274735=_0x4acd6d;this[_0x274735(0x123)]();}),_0x30bc6a({'emitter':this[_0x4acd6d(0x115)],'contextElements':[this[_0x4acd6d(0x115)][_0x4acd6d(0x186)],this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]],'callback':()=>this[_0x4acd6d(0x142)](),'activator':()=>this[_0x4acd6d(0x17c)][_0x4acd6d(0x150)]});}[_0x1c78c3(0x152)](){const _0x206151=_0x1c78c3,_0x5d037c=new _0x1dc775(this[_0x206151(0x172)]);_0x5d037c[_0x206151(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2ea9b6=[this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x188)]];return this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]&&_0x2ea9b6[_0x206151(0x119)](this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]),_0x5d037c[_0x206151(0x140)]({'attributes':{'class':_0x2ea9b6}}),_0x5d037c;}[_0x1c78c3(0x141)](){const _0x19b9f7=_0x1c78c3,_0x3aa494=new _0x428e55(this[_0x19b9f7(0x172)]);return _0x3aa494[_0x19b9f7(0x140)]({'attributes':{'class':this[_0x19b9f7(0x197)][_0x19b9f7(0x13c)][_0x19b9f7(0x120)]}}),this[_0x19b9f7(0x107)][_0x19b9f7(0x15c)](_0x3aa494),_0x3aa494;}[_0x1c78c3(0x18e)](){const _0x2da172=_0x1c78c3;if(this[_0x2da172(0x115)]&&(this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x19a)](),this[_0x2da172(0x11f)][_0x2da172(0x184)]>0x0)){this[_0x2da172(0x11f)][_0x2da172(0x189)](_0x150961=>{const _0x43572e=_0x2da172;_0x150961[_0x43572e(0x15b)]();});const _0x5ecd58=new _0xbf65fb(this[_0x2da172(0x172)]);_0x5ecd58[_0x2da172(0x153)]({'tag':_0x2da172(0x169),'attributes':{'class':this[_0x2da172(0x197)][_0x2da172(0x13c)][_0x2da172(0x18c)]},'children':this[_0x2da172(0x11f)]}),this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x15c)](_0x5ecd58);}}[_0x1c78c3(0x123)](){const _0x238472=_0x1c78c3;this[_0x238472(0x17c)][_0x238472(0x150)]?this[_0x238472(0x142)]():this[_0x238472(0x138)]();}[_0x1c78c3(0x16a)](){const _0x51e0c7=_0x1c78c3,_0x50df8d=this[_0x51e0c7(0x11f)][_0x51e0c7(0x184)]>0x0;this[_0x51e0c7(0x17c)]?.[_0x51e0c7(0x186)]&&(this[_0x51e0c7(0x17c)][_0x51e0c7(0x186)][_0x51e0c7(0x149)][_0x51e0c7(0x190)]=_0x50df8d?'':_0x51e0c7(0x14f));}[_0x1c78c3(0x18b)](){const _0x3feb20=_0x1c78c3;this[_0x3feb20(0x17c)]?.[_0x3feb20(0x150)]&&this[_0x3feb20(0x115)]?.[_0x3feb20(0x121)]&&this[_0x3feb20(0x17c)][_0x3feb20(0x186)]&&this[_0x3feb20(0x115)][_0x3feb20(0x110)]({'target':this[_0x3feb20(0x17c)][_0x3feb20(0x186)],'limiter':document[_0x3feb20(0x128)](_0x3feb20(0x12f))});}[_0x1c78c3(0x15d)](_0x4bc6b5){const _0x2bfbbf=_0x1c78c3,_0x16ae90=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x192)][_0x2bfbbf(0x13f)]()||_0x2bfbbf(0x169),_0x2d9b3b=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x194)];if(_0x2d9b3b){const _0x5cdd41=_0x2d9b3b[0x0]||'',_0x583329=_0x4bc6b5[_0x2bfbbf(0x128)]('.'+_0x5cdd41),_0x522537=_0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90);return _0x583329||_0x522537||_0x4bc6b5;}return _0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90)||_0x4bc6b5;}[_0x1c78c3(0x185)](){const _0x4c8e85=_0x1c78c3,_0x54e5c9=this[_0x4c8e85(0x17f)]?.[_0x4c8e85(0x186)]||this[_0x4c8e85(0x11d)];if(!_0x54e5c9)return ln;const _0x393427=window[_0x4c8e85(0x18f)](_0x54e5c9)[_0x4c8e85(0x155)];if(_0x4c8e85(0x12a)===_0x393427||_0x4c8e85(0x12b)===_0x393427||!_0x393427){const _0x35c4cb=_0x54e5c9[_0x4c8e85(0x132)];if(_0x35c4cb){const _0x255dd1=window[_0x4c8e85(0x18f)](_0x35c4cb);return _0x4c8e85(0x12a)!==_0x255dd1[_0x4c8e85(0x155)]?_0x255dd1[_0x4c8e85(0x155)]:ln;}return ln;}return _0x393427;}[_0x1c78c3(0x18d)](_0x1a314c,_0x58c071){const _0x4c63cb=_0x1c78c3;this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]&&_0x1a314c[_0x4c63cb(0x194)][_0x4c63cb(0x15c)](this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x155)]=_0x58c071,_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x116)]=_0x4c63cb(0x10a),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x166)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x10f)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x176)]='0',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x14c)]=_0x4c63cb(0x14f),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x147)]='-1',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x154)]=_0x4c63cb(0x114),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x190)]=_0x4c63cb(0x195),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x181)]=_0x4c63cb(0x161);}[_0x1c78c3(0x164)](_0x2303dd){const _0x51491a=_0x1c78c3;_0x2303dd[_0x51491a(0x189)](({element:_0x51ddf1,originalDisplay:_0x166d90,originalVisibility:_0x5b8d42})=>{const _0x407e01=_0x51491a;_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x190)]=_0x166d90,_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x154)]=_0x5b8d42;});}[_0x1c78c3(0x158)](_0x205b46){const _0x5f0361=_0x1c78c3,_0x21c853=[];let _0x15c204=_0x205b46;for(;_0x15c204&&_0x15c204!==document[_0x5f0361(0x16d)];){const _0x596da1=window[_0x5f0361(0x18f)](_0x15c204);_0x5f0361(0x14f)!==_0x596da1[_0x5f0361(0x190)]&&_0x5f0361(0x182)!==_0x596da1[_0x5f0361(0x154)]||(_0x21c853[_0x5f0361(0x119)]({'element':_0x15c204,'originalDisplay':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)],'originalVisibility':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]}),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)]=_0x5f0361(0x112),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]=_0x5f0361(0x134)),_0x15c204=_0x15c204[_0x5f0361(0x132)];}return _0x21c853;}[_0x1c78c3(0x124)](){const _0x21c689=_0x1c78c3;let _0x35620f,_0x340f9d;return this[_0x21c689(0x17f)]?.[_0x21c689(0x186)]?(_0x35620f=this[_0x21c689(0x17f)][_0x21c689(0x186)][_0x21c689(0x12e)](!0x0),_0x340f9d=this[_0x21c689(0x15d)](_0x35620f)):(_0x35620f=document[_0x21c689(0x16f)](_0x21c689(0x169)),_0x340f9d=_0x35620f),{'calculationContainer':_0x35620f,'targetContainer':_0x340f9d};}[_0x1c78c3(0x12d)](){const _0x94d243=_0x1c78c3,{calculationContainer:_0x3d71d0,targetContainer:_0x24b734}=this[_0x94d243(0x124)](),_0x5c62f3=this[_0x94d243(0x185)]();this[_0x94d243(0x18d)](_0x3d71d0,_0x5c62f3);const _0x41ce08=this[_0x94d243(0x17f)]?.[_0x94d243(0x186)]||this[_0x94d243(0x11d)],_0x11b4a0=_0x41ce08?.[_0x94d243(0x132)];_0x11b4a0?_0x11b4a0[_0x94d243(0x162)](_0x3d71d0):document[_0x94d243(0x16d)][_0x94d243(0x162)](_0x3d71d0),_0x3d71d0[_0x94d243(0x10d)]=_0x24b734;const _0x14ab3e=this[_0x94d243(0x158)](_0x11b4a0||null);return _0x3d71d0[_0x94d243(0x129)],_0x3d71d0[_0x94d243(0x183)]=_0x14ab3e,_0x3d71d0;}[_0x1c78c3(0x160)](_0x2e15f4,_0x2d1f1b){const _0x4dc8be=_0x1c78c3,_0x92d67e=_0x2e15f4[_0x4dc8be(0x10d)]||_0x2e15f4,_0x72240f=[],{rowCount:_0x51cec2}=this[_0x4dc8be(0x15f)](_0x92d67e,_0x2d1f1b);if(_0x51cec2<=this[_0x4dc8be(0x197)][_0x4dc8be(0x13e)])return _0x72240f;const _0x8db0b5=_0x2d1f1b[_0x4dc8be(0x196)]();for(;_0x8db0b5[_0x4dc8be(0x184)]>0x0;){if(this[_0x4dc8be(0x13a)](_0x2e15f4,_0x92d67e,_0x8db0b5)){const _0x4f2c7b=_0x2d1f1b[_0x4dc8be(0x127)](_0x1ae428=>!_0x8db0b5[_0x4dc8be(0x111)](_0x1ae428));_0x72240f[_0x4dc8be(0x119)](..._0x4f2c7b);break;}if(!_0x8db0b5[_0x4dc8be(0x173)]())break;}return _0x72240f;}[_0x1c78c3(0x15f)](_0x2caeb3,_0x56feb6){const _0x262608=_0x1c78c3;_0x2caeb3[_0x262608(0x130)]='',_0x56feb6[_0x262608(0x189)](_0xf3e631=>{const _0x33e0e5=_0x262608;if(_0xf3e631[_0x33e0e5(0x186)]){const _0x507674=_0xf3e631[_0x33e0e5(0x186)][_0x33e0e5(0x12e)](!0x0);_0x2caeb3[_0x33e0e5(0x162)](_0x507674);}}),_0x2caeb3[_0x262608(0x129)];const _0x45657c=_0x2caeb3[_0x262608(0x16c)],_0xa36c29=[];return Array[_0x262608(0x168)](_0x45657c)[_0x262608(0x189)](_0x3e6c21=>{const _0x1c5f1f=_0x262608,_0x2a3aef=_0x3e6c21[_0x1c5f1f(0x137)]()[_0x1c5f1f(0x166)];_0xa36c29[_0x1c5f1f(0x187)](_0x4ee961=>Math[_0x1c5f1f(0x193)](_0x4ee961-_0x2a3aef)<this[_0x1c5f1f(0x197)][_0x1c5f1f(0x143)])||_0xa36c29[_0x1c5f1f(0x119)](_0x2a3aef);}),{'rowCount':_0xa36c29[_0x262608(0x184)]};}[_0x1c78c3(0x135)](){const _0x5e21f6=_0x1c78c3,_0x16991e=document[_0x5e21f6(0x16f)](_0x5e21f6(0x198));return _0x16991e[_0x5e21f6(0x117)]=this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x188)],this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]&&_0x16991e[_0x5e21f6(0x194)][_0x5e21f6(0x15c)](this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]),_0x16991e[_0x5e21f6(0x108)]=_0x5e21f6(0x14a),_0x16991e;}[_0x1c78c3(0x13a)](_0x2e489c,_0x224fc0,_0x2cc9fa){const _0x2575f7=_0x1c78c3;this[_0x2575f7(0x15f)](_0x224fc0,_0x2cc9fa);const _0x39853e=this[_0x2575f7(0x135)]();_0x2e489c[_0x2575f7(0x162)](_0x39853e),_0x2e489c[_0x2575f7(0x129)];const _0x244e50=[..._0x224fc0[_0x2575f7(0x16c)],_0x39853e],_0x3cd883=[];_0x244e50[_0x2575f7(0x189)](_0x2c01a2=>{const _0x1a4836=_0x2575f7,_0xd3183e=_0x2c01a2[_0x1a4836(0x137)]()[_0x1a4836(0x166)];_0x3cd883[_0x1a4836(0x187)](_0x2a8dd8=>Math[_0x1a4836(0x193)](_0x2a8dd8-_0xd3183e)<this[_0x1a4836(0x197)][_0x1a4836(0x143)])||_0x3cd883[_0x1a4836(0x119)](_0xd3183e);});const _0x23b881=_0x3cd883[_0x2575f7(0x184)];return _0x39853e[_0x2575f7(0x17e)](),_0x23b881<=this[_0x2575f7(0x197)][_0x2575f7(0x13e)];}[_0x1c78c3(0x136)](_0x26b4a9,_0x50c8eb){const _0x1df7e4=_0x1c78c3;this[_0x1df7e4(0x170)][_0x1df7e4(0x19a)](),this[_0x1df7e4(0x11f)][_0x1df7e4(0x19a)](),_0x26b4a9[_0x1df7e4(0x189)](_0x53d36f=>{const _0x593de7=_0x1df7e4;_0x50c8eb[_0x593de7(0x111)](_0x53d36f)?this[_0x593de7(0x11f)][_0x593de7(0x15c)](_0x53d36f):this[_0x593de7(0x170)][_0x593de7(0x15c)](_0x53d36f);});}[_0x1c78c3(0x163)](_0x5a918f){const _0x14187a=_0x1c78c3;if(_0x5a918f>0x0&&!this[_0x14187a(0x17c)]&&this[_0x14187a(0x10b)](),_0x5a918f>0x0&&this[_0x14187a(0x17c)]){const _0x386b42=''+this[_0x14187a(0x197)][_0x14187a(0x11a)]+(_0x5a918f<0x63?_0x5a918f:'99');this[_0x14187a(0x17c)][_0x14187a(0x148)]=_0x386b42;}this[_0x14187a(0x18e)](),this[_0x14187a(0x16a)](),this[_0x14187a(0x18b)]();}[_0x1c78c3(0x113)](_0x2ee750,_0x79d4ff){const _0x43aa98=_0x1c78c3;this[_0x43aa98(0x136)](_0x2ee750,_0x79d4ff),this[_0x43aa98(0x163)](_0x79d4ff[_0x43aa98(0x184)]);}[_0x1c78c3(0x13b)](){const _0x4e494d=_0x1c78c3;this[_0x4e494d(0x11d)]&&_0x4e494d(0x125)!=typeof IntersectionObserver&&(this[_0x4e494d(0x180)]=new IntersectionObserver(_0x26a3a3=>{const _0x1822a0=_0x4e494d;_0x26a3a3[0x0][_0x1822a0(0x175)]&&this[_0x1822a0(0x12c)]&&requestAnimationFrame(()=>{const _0x9aabfd=_0x1822a0;this[_0x9aabfd(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x4e494d(0x131)}),this[_0x4e494d(0x180)][_0x4e494d(0x11c)](this[_0x4e494d(0x11d)]));}[_0x1c78c3(0x118)](){const _0x192321=_0x1c78c3;if(!this[_0x192321(0x11d)])return!0x1;if(!this[_0x192321(0x11d)][_0x192321(0x151)])return!0x1;const _0x483954=this[_0x192321(0x11d)][_0x192321(0x137)]();if(0x0===_0x483954[_0x192321(0x155)]||0x0===_0x483954[_0x192321(0x191)])return!0x1;const _0x597956=window[_0x192321(0x157)]||document[_0x192321(0x17b)][_0x192321(0x159)],_0x444c7d=window[_0x192321(0x18a)]||document[_0x192321(0x17b)][_0x192321(0x165)],_0x421bbb=0xc8;return _0x483954[_0x192321(0x14d)]>=-0xc8&&_0x483954[_0x192321(0x166)]<=_0x597956+_0x421bbb&&_0x483954[_0x192321(0x178)]>=-0xc8&&_0x483954[_0x192321(0x10f)]<=_0x444c7d+_0x421bbb;}}
23
+ const _0x40cfd0=_0x5170;function _0x5170(_0x137084,_0x869867){const _0x30923a=_0x3092();return _0x5170=function(_0x517044,_0x3ec749){_0x517044=_0x517044-0xde;let _0xab6ab6=_0x30923a[_0x517044];return _0xab6ab6;},_0x5170(_0x137084,_0x869867);}(function(_0x4892f8,_0x2c0f39){const _0x2e33b8=_0x5170,_0x5830c0=_0x4892f8();while(!![]){try{const _0x585761=parseInt(_0x2e33b8(0xf4))/0x1*(-parseInt(_0x2e33b8(0x13f))/0x2)+-parseInt(_0x2e33b8(0x170))/0x3+parseInt(_0x2e33b8(0xde))/0x4*(-parseInt(_0x2e33b8(0x154))/0x5)+parseInt(_0x2e33b8(0x129))/0x6+parseInt(_0x2e33b8(0x16c))/0x7+-parseInt(_0x2e33b8(0x15b))/0x8*(parseInt(_0x2e33b8(0x147))/0x9)+parseInt(_0x2e33b8(0x109))/0xa;if(_0x585761===_0x2c0f39)break;else _0x5830c0['push'](_0x5830c0['shift']());}catch(_0x278df7){_0x5830c0['push'](_0x5830c0['shift']());}}}(_0x3092,0x59f48));function _0x3092(){const _0x5e4135=['getComputedStyle','overflowContainer','999060Fmyieg','_createMockButton','clientWidth','pop','disconnect','right','bottom','style','_createShowMoreButtonView','reorganizeChips','innerWidth','auto','isOn','_repinBalloonPanel','offsetWidth','_isContainerVisible','visibility','body','observe','_calculateContainerWidth','showMoreButton','push','25656OYjkvo','_createShowMoreButton','hidden','_overflowChips','+\x201','_targetContainer','_updateShowMoreButtonVisibility','tagName','15786jNerJs','display','_distributeChips','cloneNode','showBalloonPanel','calculationContainer','destroy','add','innerHeight','block\x20!important','content','element','_applyOverflowResults','5Utabfl','pin','includes','-9999px','controlsButton','_parentView','ck-calculation-container','536PerowT','_showMoreButtonView','boxSizing','setTemplate','_createContainerElements','execute','border-box','_showMoreBalloonPanelView','abs','visible','absolute','innerHTML','undefined','show','disableAnimationOnEnter','div','_setupVisibilityObserver','5132876LaBRFA','_updateOverflowUI','documentElement','setContainerElement','1942281EKhzUc','from','2815496yhGiRo','render','classList','children','0px','zIndex','_pendingCalculation','_createShowMoreBalloonPanelView','_intersectionObserver','_calculateOverflowInContainer','.ck-ai-chat','overflowChips','length','forEach','_visibleChips','rowDetectionTolerance','button','_config','width','some','_updateBalloonContent','none','10zjKhhx','showMoreLabelPrefix','_handleShowMoreButtonClick','label','createElement','50px','className','left','pointerEvents','top','appendChild','_containerElement','remove','_ancestorsToRestore','cssClasses','showMoreBalloon','set','querySelector','height','_checkAndHandleOverflow','isIntersecting','10657770pxPuSp','parentElement','hideBalloonPanel','getBoundingClientRect','block','isConnected','toLowerCase','300px','_locale','_renderChipsAndCountRows','filter','_createCalculationContainer','_bodyCollection','_restoreAncestorVisibility','maxVisibleRows','clear','opacity','isVisible','_makeAncestorsVisible','slice','position','textContent','showMoreButtonView','_testButtonFit','visible\x20!important','_applyCalculationStyles','_findTargetContainer','hide','extendTemplate','clientHeight'];_0x3092=function(){return _0x5e4135;};return _0x3092();}import{View as _0x344de5,BalloonPanelView as _0x2c75e1,ButtonView as _0x323fb2,clickOutsideHandler as _0x4dfbf2}from'ckeditor5/src/ui.js';import{Collection as _0x476ac6}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x40cfd0(0x110);export class AIChatChipsOverflowManager{[_0x40cfd0(0x111)];[_0x40cfd0(0xef)];[_0x40cfd0(0xec)];[_0x40cfd0(0x142)];[_0x40cfd0(0x15c)]=null;[_0x40cfd0(0x162)]=null;[_0x40cfd0(0xff)]=null;[_0x40cfd0(0x115)];[_0x40cfd0(0x159)]=null;[_0x40cfd0(0xe6)]=null;[_0x40cfd0(0xe4)]=!0x1;constructor(_0x33db8a,_0x298836,_0x5ab03b,_0xb217dc,_0x3db2e3){const _0x58a174=_0x40cfd0;this[_0x58a174(0x111)]=_0x33db8a,this[_0x58a174(0xec)]=_0x298836,this[_0x58a174(0xef)]={...wn,..._0x5ab03b,'cssClasses':{'controlsButton':'','calculationContainer':_0x58a174(0x15a),..._0x5ab03b[_0x58a174(0x102)]}},this[_0x58a174(0x142)]=new _0x476ac6(),this[_0x58a174(0x115)]=_0xb217dc,this[_0x58a174(0x159)]=_0x3db2e3||null;}[_0x40cfd0(0x16f)](_0xfe6d8c){const _0x201a00=_0x40cfd0;this[_0x201a00(0xe6)]&&(this[_0x201a00(0xe6)][_0x201a00(0x12d)](),this[_0x201a00(0xe6)]=null),this[_0x201a00(0xff)]=_0xfe6d8c,this[_0x201a00(0x16b)]();}get[_0x40cfd0(0x11f)](){const _0x28a2b4=_0x40cfd0;return this[_0x28a2b4(0x15c)];}get[_0x40cfd0(0xe9)](){const _0xb164f0=_0x40cfd0;return this[_0xb164f0(0x142)];}[_0x40cfd0(0x132)](){requestAnimationFrame(()=>{const _0x51761b=_0x5170;this[_0x51761b(0x107)]();});}[_0x40cfd0(0x14b)](){const _0x5b93d2=_0x40cfd0;this[_0x5b93d2(0x15c)]&&this[_0x5b93d2(0x162)]&&(this[_0x5b93d2(0xf2)](),this[_0x5b93d2(0x15c)][_0x5b93d2(0x135)]=!0x0,this[_0x5b93d2(0x162)][_0x5b93d2(0x168)](),this[_0x5b93d2(0x162)][_0x5b93d2(0x155)]({'target':this[_0x5b93d2(0x15c)][_0x5b93d2(0x152)],'limiter':document[_0x5b93d2(0x105)](_0x5b93d2(0xe8))}));}[_0x40cfd0(0x10b)](){const _0x1b7d04=_0x40cfd0;this[_0x1b7d04(0x15c)]&&this[_0x1b7d04(0x162)]&&(this[_0x1b7d04(0x15c)][_0x1b7d04(0x135)]=!0x1,this[_0x1b7d04(0x162)][_0x1b7d04(0x124)]());}[_0x40cfd0(0x118)](){const _0x3ed850=_0x40cfd0;this[_0x3ed850(0x142)][_0x3ed850(0x118)](),this[_0x3ed850(0x10b)](),this[_0x3ed850(0x145)](),this[_0x3ed850(0x15c)]&&(this[_0x3ed850(0x15c)][_0x3ed850(0xf7)]=''),this[_0x3ed850(0x162)]&&this[_0x3ed850(0x162)][_0x3ed850(0x151)][_0x3ed850(0x118)]();}[_0x40cfd0(0x14d)](){const _0x5ee2cc=_0x40cfd0;this[_0x5ee2cc(0xe6)]&&(this[_0x5ee2cc(0xe6)][_0x5ee2cc(0x12d)](),this[_0x5ee2cc(0xe6)]=null),this[_0x5ee2cc(0x15c)]&&(this[_0x5ee2cc(0x15c)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x15c)]=null),this[_0x5ee2cc(0x162)]&&(this[_0x5ee2cc(0x162)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x162)]=null);}[_0x40cfd0(0x107)](){const _0xa7c93b=_0x40cfd0;if(!this[_0xa7c93b(0xff)])return;if(!this[_0xa7c93b(0x138)]())return void(this[_0xa7c93b(0xe4)]=!0x0);this[_0xa7c93b(0xe4)]=!0x1;const _0x28118c=[...this[_0xa7c93b(0xec)],...this[_0xa7c93b(0x142)]],_0x16aaa9=this[_0xa7c93b(0x114)](),_0x3f6e66=this[_0xa7c93b(0xe7)](_0x16aaa9,_0x28118c),_0x5a3c04=_0x16aaa9[_0xa7c93b(0x101)];_0x5a3c04&&this[_0xa7c93b(0x116)](_0x5a3c04),_0x16aaa9[_0xa7c93b(0x100)](),this[_0xa7c93b(0x153)](_0x28118c,_0x3f6e66);}[_0x40cfd0(0x140)](){const _0x3f12a2=_0x40cfd0;this[_0x3f12a2(0x15c)]=this[_0x3f12a2(0x131)](),this[_0x3f12a2(0x162)]=this[_0x3f12a2(0xe5)](),this[_0x3f12a2(0x15c)][_0x3f12a2(0xdf)](),this[_0x3f12a2(0xff)][_0x3f12a2(0xfe)](this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]),this[_0x3f12a2(0x15c)]['on'](_0x3f12a2(0x160),()=>{const _0x584bd7=_0x3f12a2;this[_0x584bd7(0xf6)]();}),_0x4dfbf2({'emitter':this[_0x3f12a2(0x162)],'contextElements':[this[_0x3f12a2(0x162)][_0x3f12a2(0x152)],this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]],'callback':()=>this[_0x3f12a2(0x10b)](),'activator':()=>this[_0x3f12a2(0x15c)][_0x3f12a2(0x135)]});}[_0x40cfd0(0x131)](){const _0x219910=_0x40cfd0,_0x3489f3=new _0x323fb2(this[_0x219910(0x111)]);_0x3489f3[_0x219910(0x104)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4e7587=[this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x13d)]];return this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]&&_0x4e7587[_0x219910(0x13e)](this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]),_0x3489f3[_0x219910(0x125)]({'attributes':{'class':_0x4e7587}}),_0x3489f3;}[_0x40cfd0(0xe5)](){const _0x5be973=_0x40cfd0,_0x44f4bc=new _0x2c75e1(this[_0x5be973(0x111)]);return _0x44f4bc[_0x5be973(0x125)]({'attributes':{'class':this[_0x5be973(0xef)][_0x5be973(0x102)][_0x5be973(0x103)]}}),this[_0x5be973(0x115)][_0x5be973(0x14e)](_0x44f4bc),_0x44f4bc;}[_0x40cfd0(0xf2)](){const _0x34859b=_0x40cfd0;if(this[_0x34859b(0x162)]&&(this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x118)](),this[_0x34859b(0x142)][_0x34859b(0xea)]>0x0)){this[_0x34859b(0x142)][_0x34859b(0xeb)](_0x29b7cc=>{const _0x5b7ff6=_0x34859b;_0x29b7cc[_0x5b7ff6(0x169)]();});const _0x1d1c77=new _0x344de5(this[_0x34859b(0x111)]);_0x1d1c77[_0x34859b(0x15e)]({'tag':_0x34859b(0x16a),'attributes':{'class':this[_0x34859b(0xef)][_0x34859b(0x102)][_0x34859b(0x128)]},'children':this[_0x34859b(0x142)]}),this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x14e)](_0x1d1c77);}}[_0x40cfd0(0xf6)](){const _0x3b4aa5=_0x40cfd0;this[_0x3b4aa5(0x15c)][_0x3b4aa5(0x135)]?this[_0x3b4aa5(0x10b)]():this[_0x3b4aa5(0x14b)]();}[_0x40cfd0(0x145)](){const _0x388454=_0x40cfd0,_0x2f5515=this[_0x388454(0x142)][_0x388454(0xea)]>0x0;this[_0x388454(0x15c)]?.[_0x388454(0x152)]&&(this[_0x388454(0x15c)][_0x388454(0x152)][_0x388454(0x130)][_0x388454(0x148)]=_0x2f5515?'':_0x388454(0xf3));}[_0x40cfd0(0x136)](){const _0x8d1398=_0x40cfd0;this[_0x8d1398(0x15c)]?.[_0x8d1398(0x135)]&&this[_0x8d1398(0x162)]?.[_0x8d1398(0x11a)]&&this[_0x8d1398(0x15c)][_0x8d1398(0x152)]&&this[_0x8d1398(0x162)][_0x8d1398(0x155)]({'target':this[_0x8d1398(0x15c)][_0x8d1398(0x152)],'limiter':document[_0x8d1398(0x105)](_0x8d1398(0xe8))});}[_0x40cfd0(0x123)](_0x2b9376){const _0x55c8de=_0x40cfd0,_0x1b4836=this[_0x55c8de(0xff)]?.[_0x55c8de(0x146)][_0x55c8de(0x10f)]()||_0x55c8de(0x16a),_0x1b768c=this[_0x55c8de(0xff)]?.[_0x55c8de(0xe0)];if(_0x1b768c){const _0x6394bf=_0x1b768c[0x0]||'',_0x2652d4=_0x2b9376[_0x55c8de(0x105)]('.'+_0x6394bf),_0x564de1=_0x2b9376[_0x55c8de(0x105)](_0x1b4836);return _0x2652d4||_0x564de1||_0x2b9376;}return _0x2b9376[_0x55c8de(0x105)](_0x1b4836)||_0x2b9376;}[_0x40cfd0(0x13c)](){const _0x4d4f46=_0x40cfd0,_0x348c99=this[_0x4d4f46(0x159)]?.[_0x4d4f46(0x152)]||this[_0x4d4f46(0xff)];if(!_0x348c99)return _n;const _0x3fa22b=window[_0x4d4f46(0x127)](_0x348c99)[_0x4d4f46(0xf0)];if(_0x4d4f46(0x134)===_0x3fa22b||_0x4d4f46(0xe2)===_0x3fa22b||!_0x3fa22b){const _0x16db9b=_0x348c99[_0x4d4f46(0x10a)];if(_0x16db9b){const _0x34be58=window[_0x4d4f46(0x127)](_0x16db9b);return _0x4d4f46(0x134)!==_0x34be58[_0x4d4f46(0xf0)]?_0x34be58[_0x4d4f46(0xf0)]:_n;}return _n;}return _0x3fa22b;}[_0x40cfd0(0x122)](_0x408e9c,_0x56f05a){const _0x5efbca=_0x40cfd0;this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]&&_0x408e9c[_0x5efbca(0xe0)][_0x5efbca(0x14e)](this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xf0)]=_0x56f05a,_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x11d)]=_0x5efbca(0x165),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfd)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfb)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x119)]='0',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfc)]=_0x5efbca(0xf3),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xe3)]='-1',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x139)]=_0x5efbca(0x121),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x148)]=_0x5efbca(0x150),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x15d)]=_0x5efbca(0x161);}[_0x40cfd0(0x116)](_0x446f95){const _0x3b7afe=_0x40cfd0;_0x446f95[_0x3b7afe(0xeb)](({element:_0x722349,originalDisplay:_0xdea2c6,originalVisibility:_0x46e2f7})=>{const _0x596517=_0x3b7afe;_0x722349[_0x596517(0x130)][_0x596517(0x148)]=_0xdea2c6,_0x722349[_0x596517(0x130)][_0x596517(0x139)]=_0x46e2f7;});}[_0x40cfd0(0x11b)](_0x51681c){const _0x441f6d=_0x40cfd0,_0x37bd66=[];let _0x214522=_0x51681c;for(;_0x214522&&_0x214522!==document[_0x441f6d(0x13a)];){const _0x55c182=window[_0x441f6d(0x127)](_0x214522);_0x441f6d(0xf3)!==_0x55c182[_0x441f6d(0x148)]&&_0x441f6d(0x141)!==_0x55c182[_0x441f6d(0x139)]||(_0x37bd66[_0x441f6d(0x13e)]({'element':_0x214522,'originalDisplay':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)],'originalVisibility':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]}),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)]=_0x441f6d(0x10d),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]=_0x441f6d(0x164)),_0x214522=_0x214522[_0x441f6d(0x10a)];}return _0x37bd66;}[_0x40cfd0(0x15f)](){const _0x483372=_0x40cfd0;let _0x4d6fae,_0x2fd627;return this[_0x483372(0x159)]?.[_0x483372(0x152)]?(_0x4d6fae=this[_0x483372(0x159)][_0x483372(0x152)][_0x483372(0x14a)](!0x0),_0x2fd627=this[_0x483372(0x123)](_0x4d6fae)):(_0x4d6fae=document[_0x483372(0xf8)](_0x483372(0x16a)),_0x2fd627=_0x4d6fae),{'calculationContainer':_0x4d6fae,'targetContainer':_0x2fd627};}[_0x40cfd0(0x114)](){const _0x34eba2=_0x40cfd0,{calculationContainer:_0x442a5d,targetContainer:_0xa716cb}=this[_0x34eba2(0x15f)](),_0x5ab85a=this[_0x34eba2(0x13c)]();this[_0x34eba2(0x122)](_0x442a5d,_0x5ab85a);const _0x15743d=this[_0x34eba2(0x159)]?.[_0x34eba2(0x152)]||this[_0x34eba2(0xff)],_0x373998=_0x15743d?.[_0x34eba2(0x10a)];_0x373998?_0x373998[_0x34eba2(0xfe)](_0x442a5d):document[_0x34eba2(0x13a)][_0x34eba2(0xfe)](_0x442a5d),_0x442a5d[_0x34eba2(0x144)]=_0xa716cb;const _0x12b941=this[_0x34eba2(0x11b)](_0x373998||null);return _0x442a5d[_0x34eba2(0x137)],_0x442a5d[_0x34eba2(0x101)]=_0x12b941,_0x442a5d;}[_0x40cfd0(0xe7)](_0x598008,_0xafb743){const _0x7dfa8d=_0x40cfd0,_0x4f2554=_0x598008[_0x7dfa8d(0x144)]||_0x598008,_0x5bf7f9=[],{rowCount:_0x60e5f5}=this[_0x7dfa8d(0x112)](_0x4f2554,_0xafb743);if(_0x60e5f5<=this[_0x7dfa8d(0xef)][_0x7dfa8d(0x117)])return _0x5bf7f9;const _0x4144d2=_0xafb743[_0x7dfa8d(0x11c)]();for(;_0x4144d2[_0x7dfa8d(0xea)]>0x0;){if(this[_0x7dfa8d(0x120)](_0x598008,_0x4f2554,_0x4144d2)){const _0x47bf11=_0xafb743[_0x7dfa8d(0x113)](_0x203453=>!_0x4144d2[_0x7dfa8d(0x156)](_0x203453));_0x5bf7f9[_0x7dfa8d(0x13e)](..._0x47bf11);break;}if(!_0x4144d2[_0x7dfa8d(0x12c)]())break;}return _0x5bf7f9;}[_0x40cfd0(0x112)](_0x280161,_0x29b1d1){const _0xe6237d=_0x40cfd0;_0x280161[_0xe6237d(0x166)]='',_0x29b1d1[_0xe6237d(0xeb)](_0x4c71d3=>{const _0x2b49c3=_0xe6237d;if(_0x4c71d3[_0x2b49c3(0x152)]){const _0x2377c3=_0x4c71d3[_0x2b49c3(0x152)][_0x2b49c3(0x14a)](!0x0);_0x280161[_0x2b49c3(0xfe)](_0x2377c3);}}),_0x280161[_0xe6237d(0x137)];const _0x330f19=_0x280161[_0xe6237d(0xe1)],_0xc5c771=[];return Array[_0xe6237d(0x171)](_0x330f19)[_0xe6237d(0xeb)](_0x4fb3b9=>{const _0xd33734=_0xe6237d,_0x44a749=_0x4fb3b9[_0xd33734(0x10c)]()[_0xd33734(0xfd)];_0xc5c771[_0xd33734(0xf1)](_0x546838=>Math[_0xd33734(0x163)](_0x546838-_0x44a749)<this[_0xd33734(0xef)][_0xd33734(0xed)])||_0xc5c771[_0xd33734(0x13e)](_0x44a749);}),{'rowCount':_0xc5c771[_0xe6237d(0xea)]};}[_0x40cfd0(0x12a)](){const _0x41c9b6=_0x40cfd0,_0x5c4a52=document[_0x41c9b6(0xf8)](_0x41c9b6(0xee));return _0x5c4a52[_0x41c9b6(0xfa)]=this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x13d)],this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]&&_0x5c4a52[_0x41c9b6(0xe0)][_0x41c9b6(0x14e)](this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]),_0x5c4a52[_0x41c9b6(0x11e)]=_0x41c9b6(0x143),_0x5c4a52;}[_0x40cfd0(0x120)](_0x5e40d1,_0xb88651,_0x15cfcc){const _0x3601d9=_0x40cfd0;this[_0x3601d9(0x112)](_0xb88651,_0x15cfcc);const _0x54c71a=this[_0x3601d9(0x12a)]();_0x5e40d1[_0x3601d9(0xfe)](_0x54c71a),_0x5e40d1[_0x3601d9(0x137)];const _0x400852=[..._0xb88651[_0x3601d9(0xe1)],_0x54c71a],_0x2594e2=[];_0x400852[_0x3601d9(0xeb)](_0x23c3e7=>{const _0x1f8dda=_0x3601d9,_0x437df4=_0x23c3e7[_0x1f8dda(0x10c)]()[_0x1f8dda(0xfd)];_0x2594e2[_0x1f8dda(0xf1)](_0x13e462=>Math[_0x1f8dda(0x163)](_0x13e462-_0x437df4)<this[_0x1f8dda(0xef)][_0x1f8dda(0xed)])||_0x2594e2[_0x1f8dda(0x13e)](_0x437df4);});const _0xf8bab6=_0x2594e2[_0x3601d9(0xea)];return _0x54c71a[_0x3601d9(0x100)](),_0xf8bab6<=this[_0x3601d9(0xef)][_0x3601d9(0x117)];}[_0x40cfd0(0x149)](_0xfe18ff,_0x127e4f){const _0x476320=_0x40cfd0;this[_0x476320(0xec)][_0x476320(0x118)](),this[_0x476320(0x142)][_0x476320(0x118)](),_0xfe18ff[_0x476320(0xeb)](_0x3f00b4=>{const _0x49dfe5=_0x476320;_0x127e4f[_0x49dfe5(0x156)](_0x3f00b4)?this[_0x49dfe5(0x142)][_0x49dfe5(0x14e)](_0x3f00b4):this[_0x49dfe5(0xec)][_0x49dfe5(0x14e)](_0x3f00b4);});}[_0x40cfd0(0x16d)](_0x5d5429){const _0x1b63c7=_0x40cfd0;if(_0x5d5429>0x0&&!this[_0x1b63c7(0x15c)]&&this[_0x1b63c7(0x140)](),_0x5d5429>0x0&&this[_0x1b63c7(0x15c)]){const _0x2a2f64=''+this[_0x1b63c7(0xef)][_0x1b63c7(0xf5)]+(_0x5d5429<0x63?_0x5d5429:'99');this[_0x1b63c7(0x15c)][_0x1b63c7(0xf7)]=_0x2a2f64;}this[_0x1b63c7(0xf2)](),this[_0x1b63c7(0x145)](),this[_0x1b63c7(0x136)]();}[_0x40cfd0(0x153)](_0x55ce17,_0x4048ea){const _0x1b4046=_0x40cfd0;this[_0x1b4046(0x149)](_0x55ce17,_0x4048ea),this[_0x1b4046(0x16d)](_0x4048ea[_0x1b4046(0xea)]);}[_0x40cfd0(0x16b)](){const _0x47288c=_0x40cfd0;this[_0x47288c(0xff)]&&_0x47288c(0x167)!=typeof IntersectionObserver&&(this[_0x47288c(0xe6)]=new IntersectionObserver(_0xab17b8=>{const _0x29cbf6=_0x47288c;_0xab17b8[0x0][_0x29cbf6(0x108)]&&this[_0x29cbf6(0xe4)]&&requestAnimationFrame(()=>{const _0x22ba89=_0x29cbf6;this[_0x22ba89(0x107)]();});},{'threshold':0.01,'rootMargin':_0x47288c(0xf9)}),this[_0x47288c(0xe6)][_0x47288c(0x13b)](this[_0x47288c(0xff)]));}[_0x40cfd0(0x138)](){const _0x10d65a=_0x40cfd0;if(!this[_0x10d65a(0xff)])return!0x1;if(!this[_0x10d65a(0xff)][_0x10d65a(0x10e)])return!0x1;const _0x272b38=this[_0x10d65a(0xff)][_0x10d65a(0x10c)]();if(0x0===_0x272b38[_0x10d65a(0xf0)]||0x0===_0x272b38[_0x10d65a(0x106)])return!0x1;const _0x3149d1=window[_0x10d65a(0x14f)]||document[_0x10d65a(0x16e)][_0x10d65a(0x126)],_0x3bb631=window[_0x10d65a(0x133)]||document[_0x10d65a(0x16e)][_0x10d65a(0x12b)],_0x7d8459=0xc8;return _0x272b38[_0x10d65a(0x12f)]>=-0xc8&&_0x272b38[_0x10d65a(0xfd)]<=_0x3149d1+_0x7d8459&&_0x272b38[_0x10d65a(0x12e)]>=-0xc8&&_0x272b38[_0x10d65a(0xfb)]<=_0x3bb631+_0x7d8459;}}