@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 47.3.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aicore/aiconnector.js +1 -1
  221. package/src/aicore/aiediting.js +1 -1
  222. package/src/aicore/model/aicapabilities.js +1 -1
  223. package/src/aicore/model/aicontext.js +1 -1
  224. package/src/aicore/model/aiinteraction.js +1 -1
  225. package/src/aicore/model/aimodels.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aicore/utils/scrollmanager.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  259. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  260. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  261. package/src/aireviewmode/aireviewmode.js +1 -1
  262. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  267. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  273. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  286. package/src/aitabs/aitabs.js +1 -1
  287. package/src/aitabs/aitabsmainview.js +1 -1
  288. package/src/aitabs/tabs/aitabsview.js +1 -1
  289. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  290. package/src/aitabs/tabs/tabpanelview.js +1 -1
  291. package/src/errors.js +1 -1
  292. package/src/errorsmap.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x348de5=_0x4e25;(function(_0x23cd94,_0x55048f){const _0x348687=_0x4e25,_0x23545b=_0x23cd94();while(!![]){try{const _0x402869=parseInt(_0x348687(0xe9))/0x1*(parseInt(_0x348687(0x133))/0x2)+parseInt(_0x348687(0x139))/0x3*(-parseInt(_0x348687(0x130))/0x4)+-parseInt(_0x348687(0x131))/0x5*(-parseInt(_0x348687(0x103))/0x6)+parseInt(_0x348687(0x132))/0x7+-parseInt(_0x348687(0x11f))/0x8*(parseInt(_0x348687(0x101))/0x9)+-parseInt(_0x348687(0x138))/0xa*(-parseInt(_0x348687(0x120))/0xb)+parseInt(_0x348687(0xf1))/0xc*(-parseInt(_0x348687(0x13f))/0xd);if(_0x402869===_0x55048f)break;else _0x23545b['push'](_0x23545b['shift']());}catch(_0x2de979){_0x23545b['push'](_0x23545b['shift']());}}}(_0x1830,0xa4c0b));import{FocusTracker as _0x752a4e,KeystrokeHandler as _0x37b71d}from'ckeditor5/src/utils.js';function _0x4e25(_0x29a672,_0x501b8b){const _0x183071=_0x1830();return _0x4e25=function(_0x4e254e,_0x4313bd){_0x4e254e=_0x4e254e-0xe9;let _0x41d49=_0x183071[_0x4e254e];return _0x41d49;},_0x4e25(_0x29a672,_0x501b8b);}import{View as _0x26d09d,FocusCycler as _0x265099,createLabeledTextarea as _0x19fbdb}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2e9a50,AIFormToolbarViewMainActionLabel as _0x10ca51}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xd22247}from'./aiformcontentarea.js';import{AIFormErrorView as _0x500f35}from'./aiformerrorview.js';import{AIFormPromptView as _0x4f311e}from'./aiformpromptview.js';import{AIHistoryListView as _0x3170ed}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x908aa7}from'./aihistorylistitemview.js';import{PromptHistory as _0x46b843}from'./prompthistory.js';import{getTranslation as _0x4266b5}from'../../utils/common-translations.js';function _0x1830(){const _0x473990=['text','clear','Ask\x20AI\x20to\x20edit\x20or\x20generate','mainAction','replaceContent','setTemplate','label','_createHistoryView','value','isError','chain','bindTo','266229TIMUGp','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','60lltGok','locale','ck-ai-form','stopProcessing','focusTracker','reset','_promptHistory','REPLACE','_focusables','delegate','fire','element','shift\x20+\x20tab','startProcessing','promptView','fieldView','set','focusCycler','submit','submitPrompt','finishProcessing','ck-ai-form-content','prompt','queryView','focusLast','historyGroupView','insertButton','high','248EVxOcd','3253261glOnkJ','execute','handleError','_createPromptView','add','listenTo','render','tryAgainEvent','bindTemplate','ck-hidden','AI_ERROR_FAILED','Empty\x20history','tab','focus','clearHistory','toolbar','4RfeWvp','641995sIlpQz','7285481TtTGyY','546578SjqEUO','isVisible','contentArea','items','keystrokes','20hEZrsk','221685prpZxZ','div','errorView','search','_createToolbar','focusFirst','2176291ZVpOtZ','isProcessing','4pNtQmn','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','createCollection','replaceButton','tryAgainButton','copyButtonView','trim','168GnFigT','bind','isEnabled','stopButton'];_0x1830=function(){return _0x473990;};return _0x1830();}import{escape as _0x4dbce8}from'es-toolkit/compat';export class AIFormView extends _0x26d09d{[_0x348de5(0x107)];[_0x348de5(0x137)];[_0x348de5(0x135)];[_0x348de5(0x12f)];[_0x348de5(0x111)];[_0x348de5(0x13b)];[_0x348de5(0x10b)];[_0x348de5(0x114)];[_0x348de5(0x109)];constructor(_0x3cb662,_0x3cc015,_0x34a2c1=''){const _0x30b5df=_0x348de5;super(_0x3cb662),this[_0x30b5df(0x113)](_0x30b5df(0xf3),!0x0),this[_0x30b5df(0x113)](_0x30b5df(0x140),!0x1),this[_0x30b5df(0x113)](_0x30b5df(0x119),''),this[_0x30b5df(0x113)](_0x30b5df(0xfd),''),this[_0x30b5df(0x113)](_0x30b5df(0xfe),!0x1),this[_0x30b5df(0x113)](_0x30b5df(0xf8),_0x10ca51[_0x30b5df(0x10a)]),this[_0x30b5df(0x109)]=new _0x46b843(),this[_0x30b5df(0x13b)]=new _0x500f35(_0x3cb662),this[_0x30b5df(0x135)]=new _0xd22247(_0x3cb662,_0x34a2c1),this[_0x30b5df(0x135)][_0x30b5df(0xf2)](_0x30b5df(0x140))['to'](this),this[_0x30b5df(0x135)][_0x30b5df(0xf2)](_0x30b5df(0xfd))['to'](this),this[_0x30b5df(0x12f)]=this[_0x30b5df(0x13d)](),this[_0x30b5df(0x12f)][_0x30b5df(0xf2)](_0x30b5df(0xf8))['to'](this),this[_0x30b5df(0x111)]=this[_0x30b5df(0x123)](),this[_0x30b5df(0x107)]=new _0x752a4e(),this[_0x30b5df(0x137)]=new _0x37b71d(),this[_0x30b5df(0x10b)]=this[_0x30b5df(0xec)]([this[_0x30b5df(0x135)],this[_0x30b5df(0x135)][_0x30b5df(0xef)],this[_0x30b5df(0x12f)],this[_0x30b5df(0x111)]]),this[_0x30b5df(0x114)]=new _0x265099({'focusables':this[_0x30b5df(0x10b)],'focusTracker':this[_0x30b5df(0x107)],'keystrokeHandler':this[_0x30b5df(0x137)],'actions':{'focusPrevious':_0x30b5df(0x10f),'focusNext':_0x30b5df(0x12c)}}),this[_0x30b5df(0x114)][_0x30b5df(0xff)](this[_0x30b5df(0x111)][_0x30b5df(0x114)]),this[_0x30b5df(0x111)][_0x30b5df(0x11a)][_0x30b5df(0x112)][_0x30b5df(0xf2)](_0x30b5df(0xfd))['to'](this,_0x30b5df(0x119));const _0x2b4382=this[_0x30b5df(0x128)];this[_0x30b5df(0xfa)]({'tag':_0x30b5df(0x13a),'attributes':{'class':['ck',_0x30b5df(0x105),_0x3cc015],'tabindex':'-1'},'children':[{'tag':_0x30b5df(0x13a),'attributes':{'class':['ck',_0x30b5df(0x118)]},'children':[{'tag':_0x30b5df(0x13a),'attributes':{'class':[_0x2b4382['if'](_0x30b5df(0xfe),_0x30b5df(0x129),_0x215f5d=>!_0x215f5d)]},'children':[this[_0x30b5df(0x13b)]]},this[_0x30b5df(0x135)],this[_0x30b5df(0x12f)],this[_0x30b5df(0x111)]]}]});}[_0x348de5(0x126)](){const _0x54fa11=_0x348de5;super[_0x54fa11(0x126)](),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x135)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x135)][_0x54fa11(0xef)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x12f)][_0x54fa11(0x10e)]),this[_0x54fa11(0x107)][_0x54fa11(0x124)](this[_0x54fa11(0x111)][_0x54fa11(0x10e)]),this[_0x54fa11(0x137)][_0x54fa11(0x125)](this[_0x54fa11(0x10e)]);}[_0x348de5(0x12d)](_0x5a5431=0x1){const _0x428c45=_0x348de5;-0x1===_0x5a5431?this[_0x428c45(0x114)][_0x428c45(0x11b)]():this[_0x428c45(0x114)][_0x428c45(0x13e)]();}[_0x348de5(0x108)](){const _0x536078=_0x348de5;this[_0x536078(0x119)]='',this[_0x536078(0xfd)]='',this[_0x536078(0xfe)]=!0x1,this[_0x536078(0x111)][_0x536078(0x108)](),this[_0x536078(0x135)][_0x536078(0x134)]=!0x1,this[_0x536078(0x12f)][_0x536078(0x134)]=!0x1;}[_0x348de5(0x123)](){const _0x49e6ad=_0x348de5,_0x4c92f8=this[_0x49e6ad(0x104)],_0x3dc36f=new _0x4f311e(_0x4c92f8,{'queryView':{'label':_0x4266b5(_0x4c92f8,_0x49e6ad(0xf7)),'creator':_0x19fbdb,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4266b5(_0x4c92f8,_0x49e6ad(0x12b)),'secondary':_0x4266b5(_0x4c92f8,_0x49e6ad(0x102))}}},'filteredView':this[_0x49e6ad(0xfc)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3dc36f[_0x49e6ad(0xf2)](_0x49e6ad(0xf3))['to'](this,_0x49e6ad(0xf3),this,_0x49e6ad(0x140),(_0x6a6dee,_0x1c2156)=>_0x6a6dee&&!_0x1c2156),this[_0x49e6ad(0x125)](_0x3dc36f,_0x49e6ad(0x115),(_0x261a3b,_0x22453d)=>{const _0x43a88b=_0x49e6ad;this[_0x43a88b(0x119)]=_0x22453d;const _0x33e2b3=_0x4dbce8(_0x22453d);this[_0x43a88b(0x10d)](_0x43a88b(0x116),_0x33e2b3),_0x22453d[_0x43a88b(0xf0)]()&&this[_0x43a88b(0x109)][_0x43a88b(0x124)]({'prompt':_0x33e2b3},0x0);},{'priority':_0x49e6ad(0x11e)}),_0x3dc36f;}[_0x348de5(0xfc)](){const _0x4e1d5b=_0x348de5,_0x59d171=new _0x3170ed(this[_0x4e1d5b(0x104)]);return _0x59d171[_0x4e1d5b(0x11c)][_0x4e1d5b(0x136)][_0x4e1d5b(0x100)](this[_0x4e1d5b(0x109)])['as'](_0x908aa7),_0x59d171['on'](_0x4e1d5b(0x12e),()=>{const _0x411e12=_0x4e1d5b;this[_0x411e12(0x109)][_0x411e12(0xf6)](),this[_0x411e12(0x111)][_0x411e12(0x13c)](''),this[_0x411e12(0x111)][_0x411e12(0x12d)]();}),_0x59d171;}[_0x348de5(0x13d)](){const _0x1a8051=_0x348de5,_0x10165d=new _0x2e9a50(this[_0x1a8051(0x104)]);return _0x10165d[_0x1a8051(0xed)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),this,_0x1a8051(0xfd),(_0x2fd173,_0x5c0fd9,_0x328bdd)=>_0x2fd173&&!_0x5c0fd9&&!!_0x328bdd),_0x10165d[_0x1a8051(0xed)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0xf9)),_0x10165d[_0x1a8051(0x11d)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),this,_0x1a8051(0xfd),(_0x411c15,_0x3f6f4f,_0x5325b2)=>_0x411c15&&!_0x3f6f4f&&!!_0x5325b2),_0x10165d[_0x1a8051(0x11d)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0xeb)),_0x10165d[_0x1a8051(0xee)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0xf3),this,_0x1a8051(0x140),(_0x20ed79,_0x48ace6)=>_0x20ed79&&!_0x48ace6),_0x10165d[_0x1a8051(0xee)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0x127)),_0x10165d[_0x1a8051(0xf4)][_0x1a8051(0xf2)](_0x1a8051(0xf3))['to'](this,_0x1a8051(0x140)),_0x10165d[_0x1a8051(0xf4)][_0x1a8051(0x10c)](_0x1a8051(0x121))['to'](this,_0x1a8051(0x106)),_0x10165d;}[_0x348de5(0x110)](){const _0x48b2ac=_0x348de5;this[_0x48b2ac(0xfd)]='',this[_0x48b2ac(0xfe)]=!0x1,this[_0x48b2ac(0x140)]=!0x0,this[_0x48b2ac(0x135)][_0x48b2ac(0x134)]=!0x0,this[_0x48b2ac(0x12f)][_0x48b2ac(0x134)]=!0x0,this[_0x48b2ac(0x135)][_0x48b2ac(0x12d)]();}[_0x348de5(0x117)](){const _0x2b8c58=_0x348de5,_0x50728b=this[_0x2b8c58(0x104)];this[_0x2b8c58(0x140)]=!0x1,this[_0x2b8c58(0x119)]='',this[_0x2b8c58(0x111)][_0x2b8c58(0x108)](),this[_0x2b8c58(0xfd)]&&(this[_0x2b8c58(0x111)][_0x2b8c58(0x11a)][_0x2b8c58(0xfb)]=_0x4266b5(_0x50728b,_0x2b8c58(0xea)));}[_0x348de5(0x122)](_0x2ba8f9){const _0x72ba68=_0x348de5,_0x224b0b=this[_0x72ba68(0x104)];this[_0x72ba68(0x117)](),this[_0x72ba68(0xfe)]=!0x0,this[_0x72ba68(0x13b)][_0x72ba68(0xf5)]=_0x2ba8f9||_0x4266b5(_0x224b0b,_0x72ba68(0x12a)),this[_0x72ba68(0xfd)]||(this[_0x72ba68(0x135)][_0x72ba68(0x134)]=!0x1);}}
23
+ function _0x5832(){const _0x26fde8=['_promptHistory','focusFirst','reset','5836UZLqLA','copyButtonView','insertContentBelow','trim','fieldView','isVisible','clearHistory','stopButton','125121gcwWLD','handleError','text','tryAgainEvent','6590562IuXCIZ','290CqfiWa','submitPrompt','label','bindTemplate','ck-ai-form-content','focusLast','toolbar','value','bindTo','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','focus','shift\x20+\x20tab','136cpfXca','high','submit','AI_ERROR_FAILED','render','isProcessing','focusTracker','items','contentArea','replaceContent','stopProcessing','div','_createPromptView','126513njDHAw','historyGroupView','queryView','insertButton','promptView','prompt','element','11fAydmP','isError','chain','ck-ai-form','listenTo','createCollection','mainAction','32526492CSYwtW','keystrokes','bind','finishProcessing','locale','clear','3920CNBsWF','tab','Empty\x20history','set','startProcessing','58xqDDWp','execute','Ask\x20AI\x20to\x20improve\x20generated\x20text','delegate','_createToolbar','errorView','search','tryAgainButton','replaceButton','add','ck-hidden','isEnabled','setTemplate','REPLACE','fire','5005zLRpJx','_focusables','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','1007800mLXmZk'];_0x5832=function(){return _0x26fde8;};return _0x5832();}const _0xcba551=_0x2186;(function(_0x5ea834,_0x2596ea){const _0x453932=_0x2186,_0x2b9fca=_0x5ea834();while(!![]){try{const _0xbdbc0=parseInt(_0x453932(0x150))/0x1*(parseInt(_0x453932(0x110))/0x2)+-parseInt(_0x453932(0x118))/0x3*(-parseInt(_0x453932(0x12a))/0x4)+parseInt(_0x453932(0x10c))/0x5+parseInt(_0x453932(0x11c))/0x6+-parseInt(_0x453932(0x108))/0x7*(-parseInt(_0x453932(0x14b))/0x8)+parseInt(_0x453932(0x137))/0x9*(parseInt(_0x453932(0x11d))/0xa)+-parseInt(_0x453932(0x13e))/0xb*(parseInt(_0x453932(0x145))/0xc);if(_0xbdbc0===_0x2596ea)break;else _0x2b9fca['push'](_0x2b9fca['shift']());}catch(_0x1d7d5d){_0x2b9fca['push'](_0x2b9fca['shift']());}}}(_0x5832,0xe434b));import{FocusTracker as _0x5d3b89,KeystrokeHandler as _0x56bc37}from'ckeditor5/src/utils.js';function _0x2186(_0x4308da,_0xac7971){const _0x583298=_0x5832();return _0x2186=function(_0x21866e,_0x55b97f){_0x21866e=_0x21866e-0xff;let _0x41db53=_0x583298[_0x21866e];return _0x41db53;},_0x2186(_0x4308da,_0xac7971);}import{View as _0x4a0e23,FocusCycler as _0x37f4de,createLabeledTextarea as _0x5f3aa8}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x57e0a8,AIFormToolbarViewMainActionLabel as _0x48c077}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1e9a5c}from'./aiformcontentarea.js';import{AIFormErrorView as _0x17a7b0}from'./aiformerrorview.js';import{AIFormPromptView as _0x2db839}from'./aiformpromptview.js';import{AIHistoryListView as _0x501c1b}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x1ede23}from'./aihistorylistitemview.js';import{PromptHistory as _0x13cf34}from'./prompthistory.js';import{getTranslation as _0x597c30}from'../../utils/common-translations.js';import{escape as _0x2d7dd9}from'es-toolkit/compat';export class AIFormView extends _0x4a0e23{[_0xcba551(0x130)];[_0xcba551(0x146)];[_0xcba551(0x132)];[_0xcba551(0x123)];[_0xcba551(0x13b)];[_0xcba551(0x155)];[_0xcba551(0x109)];[_0xcba551(0x127)];[_0xcba551(0x10d)];constructor(_0x3ce07e,_0x2beebe,_0x42f47b=''){const _0xc8eada=_0xcba551;super(_0x3ce07e),this[_0xc8eada(0x14e)](_0xc8eada(0x104),!0x0),this[_0xc8eada(0x14e)](_0xc8eada(0x12f),!0x1),this[_0xc8eada(0x14e)](_0xc8eada(0x13c),''),this[_0xc8eada(0x14e)](_0xc8eada(0x124),''),this[_0xc8eada(0x14e)](_0xc8eada(0x13f),!0x1),this[_0xc8eada(0x14e)](_0xc8eada(0x144),_0x48c077[_0xc8eada(0x106)]),this[_0xc8eada(0x10d)]=new _0x13cf34(),this[_0xc8eada(0x155)]=new _0x17a7b0(_0x3ce07e),this[_0xc8eada(0x132)]=new _0x1e9a5c(_0x3ce07e,_0x42f47b),this[_0xc8eada(0x132)][_0xc8eada(0x147)](_0xc8eada(0x12f))['to'](this),this[_0xc8eada(0x132)][_0xc8eada(0x147)](_0xc8eada(0x124))['to'](this),this[_0xc8eada(0x123)]=this[_0xc8eada(0x154)](),this[_0xc8eada(0x123)][_0xc8eada(0x147)](_0xc8eada(0x144))['to'](this),this[_0xc8eada(0x13b)]=this[_0xc8eada(0x136)](),this[_0xc8eada(0x130)]=new _0x5d3b89(),this[_0xc8eada(0x146)]=new _0x56bc37(),this[_0xc8eada(0x109)]=this[_0xc8eada(0x143)]([this[_0xc8eada(0x132)],this[_0xc8eada(0x132)][_0xc8eada(0x111)],this[_0xc8eada(0x123)],this[_0xc8eada(0x13b)]]),this[_0xc8eada(0x127)]=new _0x37f4de({'focusables':this[_0xc8eada(0x109)],'focusTracker':this[_0xc8eada(0x130)],'keystrokeHandler':this[_0xc8eada(0x146)],'actions':{'focusPrevious':_0xc8eada(0x129),'focusNext':_0xc8eada(0x14c)}}),this[_0xc8eada(0x127)][_0xc8eada(0x140)](this[_0xc8eada(0x13b)][_0xc8eada(0x127)]),this[_0xc8eada(0x13b)][_0xc8eada(0x139)][_0xc8eada(0x114)][_0xc8eada(0x147)](_0xc8eada(0x124))['to'](this,_0xc8eada(0x13c));const _0x24d7fa=this[_0xc8eada(0x120)];this[_0xc8eada(0x105)]({'tag':_0xc8eada(0x135),'attributes':{'class':['ck',_0xc8eada(0x141),_0x2beebe],'tabindex':'-1'},'children':[{'tag':_0xc8eada(0x135),'attributes':{'class':['ck',_0xc8eada(0x121)]},'children':[{'tag':_0xc8eada(0x135),'attributes':{'class':[_0x24d7fa['if'](_0xc8eada(0x13f),_0xc8eada(0x103),_0xc2d02e=>!_0xc2d02e)]},'children':[this[_0xc8eada(0x155)]]},this[_0xc8eada(0x132)],this[_0xc8eada(0x123)],this[_0xc8eada(0x13b)]]}]});}[_0xcba551(0x12e)](){const _0x226514=_0xcba551;super[_0x226514(0x12e)](),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x132)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x132)][_0x226514(0x111)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x123)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x13b)][_0x226514(0x13d)]),this[_0x226514(0x146)][_0x226514(0x142)](this[_0x226514(0x13d)]);}[_0xcba551(0x128)](_0xdf0325=0x1){const _0x5cfdbf=_0xcba551;-0x1===_0xdf0325?this[_0x5cfdbf(0x127)][_0x5cfdbf(0x122)]():this[_0x5cfdbf(0x127)][_0x5cfdbf(0x10e)]();}[_0xcba551(0x10f)](){const _0x3afd5f=_0xcba551;this[_0x3afd5f(0x13c)]='',this[_0x3afd5f(0x124)]='',this[_0x3afd5f(0x13f)]=!0x1,this[_0x3afd5f(0x13b)][_0x3afd5f(0x10f)](),this[_0x3afd5f(0x132)][_0x3afd5f(0x115)]=!0x1,this[_0x3afd5f(0x123)][_0x3afd5f(0x115)]=!0x1;}[_0xcba551(0x136)](){const _0x58bbfa=_0xcba551,_0x93bce=this[_0x58bbfa(0x149)],_0x109898=new _0x2db839(_0x93bce,{'queryView':{'label':_0x597c30(_0x93bce,_0x58bbfa(0x10b)),'creator':_0x5f3aa8,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x597c30(_0x93bce,_0x58bbfa(0x14d)),'secondary':_0x597c30(_0x93bce,_0x58bbfa(0x126))}}},'filteredView':this[_0x58bbfa(0x10a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x109898[_0x58bbfa(0x147)](_0x58bbfa(0x104))['to'](this,_0x58bbfa(0x104),this,_0x58bbfa(0x12f),(_0x3561cc,_0x443927)=>_0x3561cc&&!_0x443927),this[_0x58bbfa(0x142)](_0x109898,_0x58bbfa(0x12c),(_0x47d677,_0x62f0f)=>{const _0x5e84e0=_0x58bbfa;this[_0x5e84e0(0x13c)]=_0x62f0f;const _0x334d0b=_0x2d7dd9(_0x62f0f);this[_0x5e84e0(0x107)](_0x5e84e0(0x11e),_0x334d0b),_0x62f0f[_0x5e84e0(0x113)]()&&this[_0x5e84e0(0x10d)][_0x5e84e0(0x102)]({'prompt':_0x334d0b},0x0);},{'priority':_0x58bbfa(0x12b)}),_0x109898;}[_0xcba551(0x10a)](){const _0x4be188=_0xcba551,_0x2eaf43=new _0x501c1b(this[_0x4be188(0x149)]);return _0x2eaf43[_0x4be188(0x138)][_0x4be188(0x131)][_0x4be188(0x125)](this[_0x4be188(0x10d)])['as'](_0x1ede23),_0x2eaf43['on'](_0x4be188(0x116),()=>{const _0xc99a6f=_0x4be188;this[_0xc99a6f(0x10d)][_0xc99a6f(0x14a)](),this[_0xc99a6f(0x13b)][_0xc99a6f(0xff)](''),this[_0xc99a6f(0x13b)][_0xc99a6f(0x128)]();}),_0x2eaf43;}[_0xcba551(0x154)](){const _0x2a5f18=_0xcba551,_0x356c0d=new _0x57e0a8(this[_0x2a5f18(0x149)]);return _0x356c0d[_0x2a5f18(0x101)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),this,_0x2a5f18(0x124),(_0x4771fb,_0x10f1df,_0x95dca9)=>_0x4771fb&&!_0x10f1df&&!!_0x95dca9),_0x356c0d[_0x2a5f18(0x101)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x133)),_0x356c0d[_0x2a5f18(0x13a)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),this,_0x2a5f18(0x124),(_0x4d175b,_0x22c0fa,_0x578610)=>_0x4d175b&&!_0x22c0fa&&!!_0x578610),_0x356c0d[_0x2a5f18(0x13a)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x112)),_0x356c0d[_0x2a5f18(0x100)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),(_0x1b1dd9,_0xae5c5d)=>_0x1b1dd9&&!_0xae5c5d),_0x356c0d[_0x2a5f18(0x100)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x11b)),_0x356c0d[_0x2a5f18(0x117)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x12f)),_0x356c0d[_0x2a5f18(0x117)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x134)),_0x356c0d;}[_0xcba551(0x14f)](){const _0x25a53b=_0xcba551;this[_0x25a53b(0x124)]='',this[_0x25a53b(0x13f)]=!0x1,this[_0x25a53b(0x12f)]=!0x0,this[_0x25a53b(0x132)][_0x25a53b(0x115)]=!0x0,this[_0x25a53b(0x123)][_0x25a53b(0x115)]=!0x0,this[_0x25a53b(0x132)][_0x25a53b(0x128)]();}[_0xcba551(0x148)](){const _0x2f9a3f=_0xcba551,_0x37d80a=this[_0x2f9a3f(0x149)];this[_0x2f9a3f(0x12f)]=!0x1,this[_0x2f9a3f(0x13c)]='',this[_0x2f9a3f(0x13b)][_0x2f9a3f(0x10f)](),this[_0x2f9a3f(0x124)]&&(this[_0x2f9a3f(0x13b)][_0x2f9a3f(0x139)][_0x2f9a3f(0x11f)]=_0x597c30(_0x37d80a,_0x2f9a3f(0x152)));}[_0xcba551(0x119)](_0x1f2d48){const _0x54fa2c=_0xcba551,_0x469025=this[_0x54fa2c(0x149)];this[_0x54fa2c(0x148)](),this[_0x54fa2c(0x13f)]=!0x0,this[_0x54fa2c(0x155)][_0x54fa2c(0x11a)]=_0x1f2d48||_0x597c30(_0x469025,_0x54fa2c(0x12d)),this[_0x54fa2c(0x124)]||(this[_0x54fa2c(0x132)][_0x54fa2c(0x115)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x743e(_0x3c1470,_0xb834c2){const _0x4d21d1=_0x4d21();return _0x743e=function(_0x743e85,_0x5ed0de){_0x743e85=_0x743e85-0x1eb;let _0x40431a=_0x4d21d1[_0x743e85];return _0x40431a;},_0x743e(_0x3c1470,_0xb834c2);}(function(_0x15efb4,_0x4ea142){const _0x42b416=_0x743e,_0x2368fc=_0x15efb4();while(!![]){try{const _0x344933=-parseInt(_0x42b416(0x1ec))/0x1*(parseInt(_0x42b416(0x1eb))/0x2)+parseInt(_0x42b416(0x1f4))/0x3*(parseInt(_0x42b416(0x1f1))/0x4)+parseInt(_0x42b416(0x1fc))/0x5*(-parseInt(_0x42b416(0x1fd))/0x6)+parseInt(_0x42b416(0x1f3))/0x7+parseInt(_0x42b416(0x1ed))/0x8*(parseInt(_0x42b416(0x1f5))/0x9)+parseInt(_0x42b416(0x1f9))/0xa*(parseInt(_0x42b416(0x1fe))/0xb)+parseInt(_0x42b416(0x1f0))/0xc*(parseInt(_0x42b416(0x1f7))/0xd);if(_0x344933===_0x4ea142)break;else _0x2368fc['push'](_0x2368fc['shift']());}catch(_0x4d4ee8){_0x2368fc['push'](_0x2368fc['shift']());}}}(_0x4d21,0xb79e1));import{ListItemView as _0x1350df,ButtonView as _0x438c88,ButtonLabelView as _0x10d6c1}from'ckeditor5/src/ui.js';import{unescape as _0x5746a0}from'es-toolkit/compat';function _0x4d21(){const _0x260cdf=['2379016QAbNkz','children','719264PmMOgU','3hIvTQJ','495TLcIXM','execute','9737NMdemJ','prompt','3180XFjIoA','add','fire','95abuYoo','49914rnCgke','12749dsniRJ','5824nNuknN','313vbFxxt','87128AtjeUk','locale','set','2508TqyRxG'];_0x4d21=function(){return _0x260cdf;};return _0x4d21();}export class AIHistoryListItemView extends _0x1350df{constructor(_0x15f474){const _0x13246b=_0x743e;super();const _0xebf707=new _0x10d6c1(),_0x160377=new _0x438c88(this[_0x13246b(0x1ee)],_0xebf707);this[_0x13246b(0x1f2)][_0x13246b(0x1fa)](_0x160377),_0x160377[_0x13246b(0x1ef)]({'label':_0x15f474[_0x13246b(0x1f8)],'withText':!0x0}),_0x160377['on'](_0x13246b(0x1f6),()=>{const _0x439f2b=_0x13246b;this[_0x439f2b(0x1fb)](_0x439f2b(0x1f6),{'value':_0x5746a0(_0x15f474[_0x439f2b(0x1f8)])});});}}
23
+ (function(_0x4f9cff,_0x27abee){const _0x59261d=_0x468a,_0x2da495=_0x4f9cff();while(!![]){try{const _0x27ba62=parseInt(_0x59261d(0x168))/0x1*(parseInt(_0x59261d(0x163))/0x2)+-parseInt(_0x59261d(0x172))/0x3+parseInt(_0x59261d(0x16f))/0x4*(parseInt(_0x59261d(0x173))/0x5)+parseInt(_0x59261d(0x16d))/0x6*(parseInt(_0x59261d(0x162))/0x7)+parseInt(_0x59261d(0x164))/0x8*(-parseInt(_0x59261d(0x167))/0x9)+-parseInt(_0x59261d(0x16e))/0xa*(-parseInt(_0x59261d(0x16c))/0xb)+parseInt(_0x59261d(0x161))/0xc;if(_0x27ba62===_0x27abee)break;else _0x2da495['push'](_0x2da495['shift']());}catch(_0x5062f2){_0x2da495['push'](_0x2da495['shift']());}}}(_0x2b19,0xb8fc0));import{ListItemView as _0x384959,ButtonView as _0x36c64f,ButtonLabelView as _0x3df71a}from'ckeditor5/src/ui.js';function _0x468a(_0x25cf2a,_0x350262){const _0x2b192d=_0x2b19();return _0x468a=function(_0x468a4f,_0x1d4cf1){_0x468a4f=_0x468a4f-0x161;let _0x1827c2=_0x2b192d[_0x468a4f];return _0x1827c2;},_0x468a(_0x25cf2a,_0x350262);}import{unescape as _0x7eae62}from'es-toolkit/compat';function _0x2b19(){const _0x1d1b3e=['4604272zxLoGD','set','prompt','9ENrSzQ','15uTdVmB','fire','children','add','364342HEOnUZ','48baJgBZ','280prbjHz','350292hjqSyE','locale','execute','3339666gbScDV','5TbsMLO','575244tGznXT','507374MPSgPU','107156uYlUXz'];_0x2b19=function(){return _0x1d1b3e;};return _0x2b19();}export class AIHistoryListItemView extends _0x384959{constructor(_0x5e70a8){const _0x5e5106=_0x468a;super();const _0x305514=new _0x3df71a(),_0x215175=new _0x36c64f(this[_0x5e5106(0x170)],_0x305514);this[_0x5e5106(0x16a)][_0x5e5106(0x16b)](_0x215175),_0x215175[_0x5e5106(0x165)]({'label':_0x5e70a8[_0x5e5106(0x166)],'withText':!0x0}),_0x215175['on'](_0x5e5106(0x171),()=>{const _0x1f1dc0=_0x5e5106;this[_0x1f1dc0(0x169)](_0x1f1dc0(0x171),{'value':_0x7eae62(_0x5e70a8[_0x1f1dc0(0x166)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4520a4=_0x9d03;(function(_0x312629,_0x4c2a0d){const _0x317b2a=_0x9d03,_0x2f6177=_0x312629();while(!![]){try{const _0x580db6=parseInt(_0x317b2a(0xc2))/0x1*(-parseInt(_0x317b2a(0xbe))/0x2)+parseInt(_0x317b2a(0xb2))/0x3*(-parseInt(_0x317b2a(0xbd))/0x4)+parseInt(_0x317b2a(0xb6))/0x5*(-parseInt(_0x317b2a(0xcb))/0x6)+-parseInt(_0x317b2a(0xca))/0x7+parseInt(_0x317b2a(0xc6))/0x8*(-parseInt(_0x317b2a(0xc3))/0x9)+parseInt(_0x317b2a(0xb4))/0xa+parseInt(_0x317b2a(0xbf))/0xb*(parseInt(_0x317b2a(0xbc))/0xc);if(_0x580db6===_0x4c2a0d)break;else _0x2f6177['push'](_0x2f6177['shift']());}catch(_0x2b5bb5){_0x2f6177['push'](_0x2f6177['shift']());}}}(_0x399b,0x81f6e));import{ListView as _0x163f93,ListItemGroupView as _0x282088,ButtonView as _0x44a165}from'ckeditor5/src/ui.js';import{getTranslation as _0x22c57f}from'../../utils/common-translations.js';function _0x9d03(_0x268def,_0x3e2ec4){const _0x399b14=_0x399b();return _0x9d03=function(_0x9d034e,_0x498992){_0x9d034e=_0x9d034e-0xb2;let _0x39f66d=_0x399b14[_0x9d034e];return _0x39f66d;},_0x9d03(_0x268def,_0x3e2ec4);}export class AIHistoryListView extends _0x163f93{[_0x4520a4(0xba)];[_0x4520a4(0xce)];constructor(_0x59d05f){const _0x2ec89e=_0x4520a4;super(_0x59d05f),this[_0x2ec89e(0xce)]=this[_0x2ec89e(0xb7)](),this[_0x2ec89e(0xba)]=new _0x282088(),this[_0x2ec89e(0xba)][_0x2ec89e(0xc1)][_0x2ec89e(0xc4)](this[_0x2ec89e(0xce)],0x1),this[_0x2ec89e(0xba)][_0x2ec89e(0xb9)]=_0x22c57f(_0x59d05f,_0x2ec89e(0xc0)),this[_0x2ec89e(0xba)][_0x2ec89e(0xc8)][_0x2ec89e(0xbb)](_0x2ec89e(0xb3))['to'](this),this[_0x2ec89e(0xc8)][_0x2ec89e(0xc4)](this[_0x2ec89e(0xba)]);}[_0x4520a4(0xcc)](){const _0x1b2f30=_0x4520a4;let _0xcf1090=0x0;for(const _0x4291da of this[_0x1b2f30(0xc8)])_0xcf1090+=_0x4291da[_0x1b2f30(0xc8)][_0x1b2f30(0xb5)];return{'resultsCount':_0xcf1090,'totalItemsCount':_0xcf1090};}[_0x4520a4(0xb7)](){const _0x1a1681=_0x4520a4,_0x387adf=this[_0x1a1681(0xc5)],_0x51d1a7=new _0x44a165(this[_0x1a1681(0xc5)]);return _0x51d1a7[_0x1a1681(0xb8)]({'label':'('+_0x22c57f(_0x387adf,_0x1a1681(0xcd))+')','withText':!0x0}),_0x51d1a7['on'](_0x1a1681(0xb3),()=>this[_0x1a1681(0xc9)](_0x1a1681(0xc7))),_0x51d1a7;}}function _0x399b(){const _0x560e3b=['clearHistoryButton','9CXbkcy','execute','7688040IdJpUi','length','36035kUbjRJ','_createClearHistoryButton','set','label','historyGroupView','delegate','24UlgWMp','259396NJrJae','24CqSlwa','14958526ytHdmC','Prompt\x20history','children','70717olwZMw','9pbxSlb','add','locale','6048776iXdvPs','clearHistory','items','fire','1691655WIbadD','762wihQJf','filter','Clear'];_0x399b=function(){return _0x560e3b;};return _0x399b();}
23
+ function _0x4054(){const _0x25cdb7=['14167900uVyuqf','add','locale','children','Prompt\x20history','fire','label','clearHistory','1015647TLmQHF','4166388fZGlls','historyGroupView','_createClearHistoryButton','72ETSLAq','4296656qVKsIk','729522irjrPe','set','13505gKFKcl','clearHistoryButton','2EktYmM','filter','359586CMgYhm','length','Clear','execute','delegate','items','1388enxMUD'];_0x4054=function(){return _0x25cdb7;};return _0x4054();}function _0x15b3(_0x1c6290,_0x18d8f4){const _0x4054df=_0x4054();return _0x15b3=function(_0x15b3c4,_0x514006){_0x15b3c4=_0x15b3c4-0x135;let _0x479789=_0x4054df[_0x15b3c4];return _0x479789;},_0x15b3(_0x1c6290,_0x18d8f4);}const _0x446419=_0x15b3;(function(_0x2a2d5f,_0x30e769){const _0x1e63c6=_0x15b3,_0x1070cb=_0x2a2d5f();while(!![]){try{const _0x11f3f7=-parseInt(_0x1e63c6(0x13a))/0x1*(-parseInt(_0x1e63c6(0x13c))/0x2)+parseInt(_0x1e63c6(0x14b))/0x3+parseInt(_0x1e63c6(0x142))/0x4*(-parseInt(_0x1e63c6(0x138))/0x5)+parseInt(_0x1e63c6(0x14c))/0x6+-parseInt(_0x1e63c6(0x135))/0x7+-parseInt(_0x1e63c6(0x14f))/0x8*(parseInt(_0x1e63c6(0x136))/0x9)+parseInt(_0x1e63c6(0x143))/0xa;if(_0x11f3f7===_0x30e769)break;else _0x1070cb['push'](_0x1070cb['shift']());}catch(_0x1e031e){_0x1070cb['push'](_0x1070cb['shift']());}}}(_0x4054,0x8116a));import{ListView as _0x5b8a42,ListItemGroupView as _0x49ef4b,ButtonView as _0x254b95}from'ckeditor5/src/ui.js';import{getTranslation as _0x3cccb4}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b8a42{[_0x446419(0x14d)];[_0x446419(0x139)];constructor(_0x36343b){const _0x55efc1=_0x446419;super(_0x36343b),this[_0x55efc1(0x139)]=this[_0x55efc1(0x14e)](),this[_0x55efc1(0x14d)]=new _0x49ef4b(),this[_0x55efc1(0x14d)][_0x55efc1(0x146)][_0x55efc1(0x144)](this[_0x55efc1(0x139)],0x1),this[_0x55efc1(0x14d)][_0x55efc1(0x149)]=_0x3cccb4(_0x36343b,_0x55efc1(0x147)),this[_0x55efc1(0x14d)][_0x55efc1(0x141)][_0x55efc1(0x140)](_0x55efc1(0x13f))['to'](this),this[_0x55efc1(0x141)][_0x55efc1(0x144)](this[_0x55efc1(0x14d)]);}[_0x446419(0x13b)](){const _0x36fd69=_0x446419;let _0x318517=0x0;for(const _0xe636a8 of this[_0x36fd69(0x141)])_0x318517+=_0xe636a8[_0x36fd69(0x141)][_0x36fd69(0x13d)];return{'resultsCount':_0x318517,'totalItemsCount':_0x318517};}[_0x446419(0x14e)](){const _0x153241=_0x446419,_0x24fa41=this[_0x153241(0x145)],_0x40d0a5=new _0x254b95(this[_0x153241(0x145)]);return _0x40d0a5[_0x153241(0x137)]({'label':'('+_0x3cccb4(_0x24fa41,_0x153241(0x13e))+')','withText':!0x0}),_0x40d0a5['on'](_0x153241(0x13f),()=>this[_0x153241(0x148)](_0x153241(0x14a))),_0x40d0a5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39ed23=_0x2b0d;function _0x3c20(){const _0x442ab2=['parse','trim','1128pFfCSo','stringify','getItem','last','CKEditor/AIFormView/PromptHistory','length','addMany','prompt','add','_loadFromSessionStorage','179190aSBphR','_saveToSessionStorage','1097290fOLyeF','386HRynTu','remove','4615080otclLW','8595bsTHdQ','5257742BSHaBF','2158792adYRKD','setItem','toLowerCase','416114dwyryk','map'];_0x3c20=function(){return _0x442ab2;};return _0x3c20();}(function(_0x5e6eb2,_0x1a1c29){const _0x1e7aba=_0x2b0d,_0x5da8d=_0x5e6eb2();while(!![]){try{const _0x44b612=parseInt(_0x1e7aba(0x79))/0x1+parseInt(_0x1e7aba(0x71))/0x2*(-parseInt(_0x1e7aba(0x74))/0x3)+-parseInt(_0x1e7aba(0x76))/0x4+-parseInt(_0x1e7aba(0x70))/0x5+-parseInt(_0x1e7aba(0x73))/0x6+-parseInt(_0x1e7aba(0x75))/0x7+-parseInt(_0x1e7aba(0x7d))/0x8*(-parseInt(_0x1e7aba(0x6e))/0x9);if(_0x44b612===_0x1a1c29)break;else _0x5da8d['push'](_0x5da8d['shift']());}catch(_0x82c9c6){_0x5da8d['push'](_0x5da8d['shift']());}}}(_0x3c20,0x5f77d));import{Collection as _0x4ecf77}from'ckeditor5/src/utils.js';function _0x2b0d(_0x1a3c8d,_0x20f521){const _0x3c2060=_0x3c20();return _0x2b0d=function(_0x2b0dac,_0x51c0e6){_0x2b0dac=_0x2b0dac-0x67;let _0x24a422=_0x3c2060[_0x2b0dac];return _0x24a422;},_0x2b0d(_0x1a3c8d,_0x20f521);}const So=_0x39ed23(0x68);export class PromptHistory extends _0x4ecf77{constructor(){const _0x50772a=_0x39ed23;super(),this[_0x50772a(0x6d)](),this['on'](_0x50772a(0x6c),(_0x210e5e,_0x313619)=>{const _0xf4137d=_0x50772a,_0x5bce9f=fo(_0x313619[_0xf4137d(0x6b)]);for(const _0x5e13b4 of this)if(_0x5e13b4!=_0x313619&&fo(_0x5e13b4[_0xf4137d(0x6b)])===_0x5bce9f){this[_0xf4137d(0x72)](_0x5e13b4);break;}this[_0xf4137d(0x69)]>0x14&&this[_0xf4137d(0x72)](this[_0xf4137d(0x67)]),this[_0xf4137d(0x6f)]();}),this['on'](_0x50772a(0x72),()=>{const _0x237b87=_0x50772a;this[_0x237b87(0x6f)]();});}[_0x39ed23(0x6d)](){const _0x907349=_0x39ed23,_0x550e7d=sessionStorage[_0x907349(0x7f)](So)||'[]';this[_0x907349(0x6a)](JSON[_0x907349(0x7b)](_0x550e7d));}[_0x39ed23(0x6f)](){const _0x1c77eb=_0x39ed23;sessionStorage[_0x1c77eb(0x77)](So,JSON[_0x1c77eb(0x7e)](this[_0x1c77eb(0x7a)](_0x147902=>_0x147902)));}}function fo(_0x189250){const _0x304a28=_0x39ed23;return _0x189250[_0x304a28(0x78)]()[_0x304a28(0x7c)]();}
23
+ function _0x4b61(){const _0x414a0c=['parse','remove','60xFSoiY','getItem','map','516606EYMlpJ','44aDKafk','add','251640oKeGFr','addMany','20610xKOqhe','stringify','trim','1144EMxgCN','1979992VMRnuZ','_saveToSessionStorage','toLowerCase','154810djAHjY','prompt','CKEditor/AIFormView/PromptHistory','533269xbsvGM','setItem','length','505NqDOxX','last','1370mqkdbL','_loadFromSessionStorage'];_0x4b61=function(){return _0x414a0c;};return _0x4b61();}function _0x31b4(_0x30fb48,_0x487b85){const _0x4b6139=_0x4b61();return _0x31b4=function(_0x31b4ea,_0x1c2de1){_0x31b4ea=_0x31b4ea-0x1b6;let _0x32b6e4=_0x4b6139[_0x31b4ea];return _0x32b6e4;},_0x31b4(_0x30fb48,_0x487b85);}const _0x392818=_0x31b4;(function(_0x53712a,_0x24815b){const _0x5a3b6d=_0x31b4,_0x677ab5=_0x53712a();while(!![]){try{const _0x1f6c22=parseInt(_0x5a3b6d(0x1cb))/0x1*(-parseInt(_0x5a3b6d(0x1cd))/0x2)+-parseInt(_0x5a3b6d(0x1b9))/0x3+parseInt(_0x5a3b6d(0x1ba))/0x4*(parseInt(_0x5a3b6d(0x1c5))/0x5)+parseInt(_0x5a3b6d(0x1bc))/0x6+parseInt(_0x5a3b6d(0x1c2))/0x7+parseInt(_0x5a3b6d(0x1c1))/0x8*(parseInt(_0x5a3b6d(0x1be))/0x9)+parseInt(_0x5a3b6d(0x1b6))/0xa*(-parseInt(_0x5a3b6d(0x1c8))/0xb);if(_0x1f6c22===_0x24815b)break;else _0x677ab5['push'](_0x677ab5['shift']());}catch(_0xf9cd6a){_0x677ab5['push'](_0x677ab5['shift']());}}}(_0x4b61,0x2ce27));import{Collection as _0x313dc8}from'ckeditor5/src/utils.js';const So=_0x392818(0x1c7);export class PromptHistory extends _0x313dc8{constructor(){const _0x37e6e1=_0x392818;super(),this[_0x37e6e1(0x1ce)](),this['on'](_0x37e6e1(0x1bb),(_0x97faf5,_0xa76f7)=>{const _0x1f8066=_0x37e6e1,_0x3fa5ed=fo(_0xa76f7[_0x1f8066(0x1c6)]);for(const _0x528060 of this)if(_0x528060!=_0xa76f7&&fo(_0x528060[_0x1f8066(0x1c6)])===_0x3fa5ed){this[_0x1f8066(0x1d0)](_0x528060);break;}this[_0x1f8066(0x1ca)]>0x14&&this[_0x1f8066(0x1d0)](this[_0x1f8066(0x1cc)]),this[_0x1f8066(0x1c3)]();}),this['on'](_0x37e6e1(0x1d0),()=>{const _0x3081a0=_0x37e6e1;this[_0x3081a0(0x1c3)]();});}[_0x392818(0x1ce)](){const _0xd6817e=_0x392818,_0x548dd8=sessionStorage[_0xd6817e(0x1b7)](So)||'[]';this[_0xd6817e(0x1bd)](JSON[_0xd6817e(0x1cf)](_0x548dd8));}[_0x392818(0x1c3)](){const _0x2b4b4b=_0x392818;sessionStorage[_0x2b4b4b(0x1c9)](So,JSON[_0x2b4b4b(0x1bf)](this[_0x2b4b4b(0x1b8)](_0x2f9b8d=>_0x2f9b8d)));}}function fo(_0x4f2362){const _0x425b29=_0x392818;return _0x4f2362[_0x425b29(0x1c4)]()[_0x425b29(0x1c0)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2eec(){const _0x1c64b4=['length','1336iJuQKm','values','getFirstRange','_hasContext','config','7771855gcMoUb','_commandDefinitions','getSelectedBlocks','selection','1270HYMKuh','isCollapsed','element','from','change:_hasContext','requiresContent','hasContent','getItems','includes','change:isEnabled','editor','enabledCommandsIds','476271ZosKAY','40335zyOADi','refresh','name','model','document','10612776BwCvOQ','showUI','plugins','execute','isEnabled','getRanges','isEmpty','add','21452khSzCG','custom','set','34497WBJNfo','2YohgOG','get','12399550MpfIFI','ai.assistant.disabledElements'];_0x2eec=function(){return _0x1c64b4;};return _0x2eec();}const _0x404e46=_0x7c5b;(function(_0x42e04c,_0x5e88e0){const _0x310cad=_0x7c5b,_0x5058d5=_0x42e04c();while(!![]){try{const _0x24dabb=-parseInt(_0x310cad(0xa0))/0x1*(parseInt(_0x310cad(0xb1))/0x2)+-parseInt(_0x310cad(0x9f))/0x3+parseInt(_0x310cad(0xad))/0x4*(-parseInt(_0x310cad(0xbf))/0x5)+parseInt(_0x310cad(0xa5))/0x6+-parseInt(_0x310cad(0xbb))/0x7+parseInt(_0x310cad(0xb6))/0x8*(parseInt(_0x310cad(0xb0))/0x9)+parseInt(_0x310cad(0xb3))/0xa;if(_0x24dabb===_0x5e88e0)break;else _0x5058d5['push'](_0x5058d5['shift']());}catch(_0x37b4fe){_0x5058d5['push'](_0x5058d5['shift']());}}}(_0x2eec,0xee997));import{Command as _0x1b8570}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3e29a1}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1b8570{[_0x404e46(0xbc)];constructor(_0x51670b,_0x1aa8a6){const _0x2d21d8=_0x404e46;super(_0x51670b),this[_0x2d21d8(0xbc)]=_0x1aa8a6,this[_0x2d21d8(0xaf)](_0x2d21d8(0x9e),[]),this['on'](_0x2d21d8(0x97),(_0x72da7c,_0x24e2ba,_0x1f924d)=>{const _0x725c1a=_0x2d21d8;this[_0x725c1a(0xa9)]&&(this[_0x725c1a(0x9e)]=ns(this[_0x725c1a(0xbc)],_0x1f924d));}),this[_0x2d21d8(0xaf)](_0x2d21d8(0xb9),!0x1),this['on'](_0x2d21d8(0x9c),(_0x3ebcad,_0x52b60d,_0x3d3a80)=>{const _0x15544f=_0x2d21d8;this[_0x15544f(0x9e)]=_0x3d3a80?ns(this[_0x15544f(0xbc)],this[_0x15544f(0xb9)]):[];});}[_0x404e46(0xa1)](){const _0x24ef79=_0x404e46,_0x487458=this[_0x24ef79(0x9d)][_0x24ef79(0xa3)];this[_0x24ef79(0xb9)]=function(_0x3dd0d8){const _0x4fb836=_0x24ef79,_0x26a39b=_0x3dd0d8[_0x4fb836(0xa4)][_0x4fb836(0xbe)];return _0x26a39b[_0x4fb836(0xc0)]?0x0!==[..._0x26a39b[_0x4fb836(0xbd)]()][_0x4fb836(0xb5)]&&![..._0x26a39b[_0x4fb836(0xbd)]()][0x0][_0x4fb836(0xab)]:!!_0x3dd0d8[_0x4fb836(0x99)](_0x26a39b[_0x4fb836(0xb8)]());}(_0x487458);const _0x14bdd1=_0x487458[_0x24ef79(0xa4)][_0x24ef79(0xbe)],_0x526f5d=this[_0x24ef79(0x9d)][_0x24ef79(0xba)][_0x24ef79(0xb2)](_0x24ef79(0xb4));for(const _0x5965f5 of _0x14bdd1[_0x24ef79(0xaa)]())for(const _0x3b7842 of _0x5965f5[_0x24ef79(0x9a)]())if(_0x3b7842['is'](_0x24ef79(0x95))&&_0x526f5d[_0x24ef79(0x9b)](_0x3b7842[_0x24ef79(0xa2)]))return void(this[_0x24ef79(0xa9)]=!0x1);this[_0x24ef79(0xa9)]=!0x0;}[_0x404e46(0xa8)](_0x4f3201='',_0x384f09='',_0x3271b4=_0x404e46(0xae)){const _0xc17f=_0x404e46;this[_0xc17f(0x9d)][_0xc17f(0xa7)][_0xc17f(0xb2)](_0x3e29a1)[_0xc17f(0xa6)](_0x4f3201,_0x384f09,_0x3271b4);}}function _0x7c5b(_0x5820eb,_0x502d79){const _0x2eecb0=_0x2eec();return _0x7c5b=function(_0x7c5be6,_0x3c8094){_0x7c5be6=_0x7c5be6-0x95;let _0x4f94d7=_0x2eecb0[_0x7c5be6];return _0x4f94d7;},_0x7c5b(_0x5820eb,_0x502d79);}function ns(_0x47efe2,_0x5c4120){const _0x2f15e8=_0x404e46,_0x3e2fda=new Set();for(const _0x546f5c of _0x47efe2[_0x2f15e8(0xb7)]())(_0x5c4120||!0x1===_0x546f5c[_0x2f15e8(0x98)])&&_0x3e2fda[_0x2f15e8(0xac)](_0x546f5c['id']);return Array[_0x2f15e8(0x96)](_0x3e2fda);}
23
+ const _0xbac85=_0x2877;function _0x2877(_0x6484c0,_0x2525c5){const _0x1974e1=_0x1974();return _0x2877=function(_0x287736,_0xeb1a67){_0x287736=_0x287736-0x8f;let _0x202ea2=_0x1974e1[_0x287736];return _0x202ea2;},_0x2877(_0x6484c0,_0x2525c5);}(function(_0x564332,_0xf4fca7){const _0x53f516=_0x2877,_0xb80970=_0x564332();while(!![]){try{const _0x32f9a8=parseInt(_0x53f516(0x93))/0x1+-parseInt(_0x53f516(0xb3))/0x2*(parseInt(_0x53f516(0xb9))/0x3)+parseInt(_0x53f516(0x9e))/0x4*(-parseInt(_0x53f516(0xb1))/0x5)+-parseInt(_0x53f516(0xb2))/0x6+-parseInt(_0x53f516(0xaf))/0x7*(parseInt(_0x53f516(0x97))/0x8)+-parseInt(_0x53f516(0xa5))/0x9*(parseInt(_0x53f516(0xaa))/0xa)+parseInt(_0x53f516(0x96))/0xb*(parseInt(_0x53f516(0xa4))/0xc);if(_0x32f9a8===_0xf4fca7)break;else _0xb80970['push'](_0xb80970['shift']());}catch(_0x56d674){_0xb80970['push'](_0xb80970['shift']());}}}(_0x1974,0x5ee02));import{Command as _0x22a76e}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xabd815}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x22a76e{[_0xbac85(0xab)];constructor(_0x22056f,_0x10930f){const _0x5ebe82=_0xbac85;super(_0x22056f),this[_0x5ebe82(0xab)]=_0x10930f,this[_0x5ebe82(0x9d)](_0x5ebe82(0x94),[]),this['on'](_0x5ebe82(0xa2),(_0x7bf26c,_0x350926,_0xd14b72)=>{const _0x2c16df=_0x5ebe82;this[_0x2c16df(0x91)]&&(this[_0x2c16df(0x94)]=fs(this[_0x2c16df(0xab)],_0xd14b72));}),this[_0x5ebe82(0x9d)](_0x5ebe82(0x92),!0x1),this['on'](_0x5ebe82(0xad),(_0x74e82c,_0x137ea2,_0x370571)=>{const _0x4d7259=_0x5ebe82;this[_0x4d7259(0x94)]=_0x370571?fs(this[_0x4d7259(0xab)],this[_0x4d7259(0x92)]):[];});}[_0xbac85(0xa6)](){const _0x339819=_0xbac85,_0x42dd76=this[_0x339819(0x98)][_0x339819(0x9f)];this[_0x339819(0x92)]=function(_0x181b67){const _0x22b4e9=_0x339819,_0x4182e1=_0x181b67[_0x22b4e9(0xba)][_0x22b4e9(0xa8)];return _0x4182e1[_0x22b4e9(0xac)]?0x0!==[..._0x4182e1[_0x22b4e9(0x9b)]()][_0x22b4e9(0x90)]&&![..._0x4182e1[_0x22b4e9(0x9b)]()][0x0][_0x22b4e9(0x9c)]:!!_0x181b67[_0x22b4e9(0xae)](_0x4182e1[_0x22b4e9(0xa0)]());}(_0x42dd76);const _0x2afa74=_0x42dd76[_0x339819(0xba)][_0x339819(0xa8)],_0x4720bd=this[_0x339819(0x98)][_0x339819(0xb8)][_0x339819(0xa3)](_0x339819(0x9a));for(const _0x24bed5 of _0x2afa74[_0x339819(0xb7)]())for(const _0x12e009 of _0x24bed5[_0x339819(0x8f)]())if(_0x12e009['is'](_0x339819(0xa7))&&_0x4720bd[_0x339819(0x99)](_0x12e009[_0x339819(0xa9)]))return void(this[_0x339819(0x91)]=!0x1);this[_0x339819(0x91)]=!0x0;}[_0xbac85(0xb6)](_0x3f2d6c='',_0xd2d32d='',_0x90afc0=_0xbac85(0xb5)){const _0x2e099b=_0xbac85;this[_0x2e099b(0x98)][_0x2e099b(0xbb)][_0x2e099b(0xa3)](_0xabd815)[_0x2e099b(0xb0)](_0x3f2d6c,_0xd2d32d,_0x90afc0);}}function fs(_0x6736ce,_0x46886a){const _0x3e1e3b=_0xbac85,_0x293d13=new Set();for(const _0x434615 of _0x6736ce[_0x3e1e3b(0xbc)]())(_0x46886a||!0x1===_0x434615[_0x3e1e3b(0xa1)])&&_0x293d13[_0x3e1e3b(0xb4)](_0x434615['id']);return Array[_0x3e1e3b(0x95)](_0x293d13);}function _0x1974(){const _0x1b5b4f=['317208xZqjzp','document','plugins','values','getItems','length','isEnabled','_hasContext','130252MDCPLt','enabledCommandsIds','from','418iHEfmR','1208uKVrdE','editor','includes','ai.assistant.disabledElements','getSelectedBlocks','isEmpty','set','777320HGVuvw','model','getFirstRange','requiresContent','change:_hasContext','get','713004PsqcPp','45inNqXY','refresh','element','selection','name','1102910lEppqY','_commandDefinitions','isCollapsed','change:isEnabled','hasContent','32466bvVyAa','showUI','5jlMulo','148110vXoCAH','10ApsLhj','add','custom','execute','getRanges','config'];_0x1974=function(){return _0x1b5b4f;};return _0x1974();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2c8c93,_0x4cbb8a,_0x4408b2){const t=_0x2c8c93['t'];switch(_0x4cbb8a){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4408b2);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4408b2);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4408b2);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x4cbb8a;}}
23
+ export function getTranslation(_0x20a3cb,_0x3aac2f,_0x17e5a9){const t=_0x20a3cb['t'];switch(_0x3aac2f){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x17e5a9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x17e5a9);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x17e5a9);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x3aac2f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x51c911,_0xd49a57){const _0x1487f2=(0x0,_0xd49a57['t'])('Other');return _0x51c911['length']?'groupId'in _0x51c911[0x0]?_0x51c911:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1487f2,'order':0x1/0x0,'commands':_0x51c911}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1487f2,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x92fab0,_0x550ccd){const _0x40c37d=(0x0,_0x550ccd['t'])('Other');return _0x92fab0['length']?'groupId'in _0x92fab0[0x0]?_0x92fab0:[{'groupId':'_ungrouppedCommands','groupLabel':_0x40c37d,'order':0x1/0x0,'commands':_0x92fab0}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x40c37d,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xecb3e7=_0x3e1c;(function(_0x16e035,_0x3ed646){const _0x1f2640=_0x3e1c,_0x70dcd3=_0x16e035();while(!![]){try{const _0x156331=-parseInt(_0x1f2640(0x188))/0x1+-parseInt(_0x1f2640(0x18a))/0x2*(-parseInt(_0x1f2640(0x1b0))/0x3)+parseInt(_0x1f2640(0x18f))/0x4*(-parseInt(_0x1f2640(0x1a8))/0x5)+-parseInt(_0x1f2640(0x1a3))/0x6*(parseInt(_0x1f2640(0x199))/0x7)+parseInt(_0x1f2640(0x16b))/0x8*(-parseInt(_0x1f2640(0x19d))/0x9)+parseInt(_0x1f2640(0x171))/0xa+parseInt(_0x1f2640(0x19a))/0xb*(parseInt(_0x1f2640(0x155))/0xc);if(_0x156331===_0x3ed646)break;else _0x70dcd3['push'](_0x70dcd3['shift']());}catch(_0x5b9427){_0x70dcd3['push'](_0x70dcd3['shift']());}}}(_0x367f,0xf0996));import{ContextPlugin as _0x34d93a}from'ckeditor5/src/core.js';import{AIConnector as _0x2e8acf}from'../aicore/aiconnector.js';import{AIEditing as _0xed72c8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xc8d226,AIBalloonView as _0x250920}from'./ui/aiballoonview.js';function _0x3e1c(_0x28667b,_0x268a72){const _0x367fe9=_0x367f();return _0x3e1c=function(_0x3e1c28,_0x24d3d9){_0x3e1c28=_0x3e1c28-0x150;let _0x343c7b=_0x367fe9[_0x3e1c28];return _0x343c7b;},_0x3e1c(_0x28667b,_0x268a72);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1ac766}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1593c4,Rect as _0x17046d,scrollViewportToShowTarget as _0x4d619d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x268051}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xd90966}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4e1504}from'../aicore/utils/common-translations.js';function _0x367f(){const _0x10bd09=['Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','stopListening','8SrqPxe','once','headerView','delegate','markers','change','stopAutoScroll','render','ai-selection','mainView','33544PaDsly','33JkoQrX','listenTo','start','842121wSxOSf','_config','getChangedMarkers','updatePosition','iconView','_setupMarkerRemovalListener','834RMlDkQ','fire','_setupVisualSelection','label','ai-balloon','363985fFVuUv','setupRotator','plugins','ai-balloon-selection','view','value','width','_isUpdatingMarkers','3FJchom','max','top','open','root','ai.availableReplyActions','filter','show','ai-selection:','editing','locale','_cleanupMarkerRemovalListener','ai-balloon-','\x20ai-balloon-rotator','getIntersection','index','_calculateDialogPosition','pluginName','getMarkersGroup','config','7942548XMBFXt','get','length','round','title','showRotator','_calculateOptimalTopPosition','_updateBalloon','commands','document','getBoundingRect','_pendingRenderCallback','startAutoScroll','AIBalloon','requires','isOpen','showBlockingError','trackChanges','differ','dialogClosed','end','model','8slTKHW','isPremiumPlugin','context','ranges','icon','height','3110820txMtlk','isEqual','startsWith','balloonView','hideFakeVisualSelection','off','left','selectionRemoved','hide','updateContent','AIEditing','_getSelectionElements','close','window','content','rootName','getVisible','_showDialog','bind','aiBalloon','isTrackChangesOn','showFakeVisualSelection','isOfficialPlugin','1298851iMxxWC','bottom','1785754RKCxPI','$graveyard'];_0x367f=function(){return _0x10bd09;};return _0x367f();}export const AI_BALLOON_EVENT_NAMES=[..._0xc8d226,_0xecb3e7(0x168),_0xecb3e7(0x178)];const ut=0xa;export class AIBalloon extends _0x34d93a{static get[_0xecb3e7(0x163)](){return[_0x2e8acf,_0xed72c8];}static get[_0xecb3e7(0x152)](){const _0x178b13=_0xecb3e7;return _0x178b13(0x162);}static get[_0xecb3e7(0x187)](){return!0x0;}static get[_0xecb3e7(0x16c)](){return!0x0;}[_0xecb3e7(0x164)]=!0x1;[_0xecb3e7(0x19e)];[_0xecb3e7(0x1af)]=!0x1;[_0xecb3e7(0x160)]=null;[_0xecb3e7(0x1b3)](_0x40b0bf){const _0x25cb71=_0xecb3e7,_0x50771c=_0x268051(this[_0x25cb71(0x16d)]);if(this[_0x25cb71(0x19e)]=_0x40b0bf,this[_0x25cb71(0x164)])return void this[_0x25cb71(0x15c)](_0x40b0bf);const _0x117033=this[_0x25cb71(0x16d)][_0x25cb71(0x154)][_0x25cb71(0x156)](_0x25cb71(0x1b5))||[..._0xd90966],_0x10e788=_0x50771c?.[_0x25cb71(0x15d)][_0x25cb71(0x156)](_0x25cb71(0x166)),_0x44d3e7=_0x10e788?.[_0x25cb71(0x1ad)];this[_0x25cb71(0x174)]=new _0x250920(_0x50771c[_0x25cb71(0x1ba)],_0x40b0bf,_0x117033,!!_0x44d3e7),this[_0x25cb71(0x174)][_0x25cb71(0x192)](..._0xc8d226)['to'](this),_0x10e788&&this[_0x25cb71(0x174)][_0x25cb71(0x183)](_0x25cb71(0x185))['to'](_0x10e788,_0x25cb71(0x1ad)),this[_0x25cb71(0x182)](_0x40b0bf);}[_0xecb3e7(0x17d)](){const _0x5bf58c=_0xecb3e7;_0x268051(this[_0x5bf58c(0x16d)])[_0x5bf58c(0x1aa)][_0x5bf58c(0x156)](_0x5bf58c(0x18c))[_0x5bf58c(0x179)]();}[_0xecb3e7(0x161)](){const _0x25145e=_0xecb3e7;this[_0x25145e(0x174)]&&this[_0x25145e(0x174)][_0x25145e(0x161)]();}[_0xecb3e7(0x195)](){const _0x4ee71a=_0xecb3e7;this[_0x4ee71a(0x174)]&&this[_0x4ee71a(0x174)][_0x4ee71a(0x195)]();}[_0xecb3e7(0x15c)](_0x5df7c8){const _0x4b3106=_0xecb3e7,_0x4642e8=_0x268051(this[_0x4b3106(0x16d)]),_0x210637=_0x4642e8[_0x4b3106(0x1aa)][_0x4b3106(0x156)](_0x4b3106(0x18c));this[_0x4b3106(0x160)]&&(_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x176)](_0x4b3106(0x196),this[_0x4b3106(0x160)]),this[_0x4b3106(0x160)]=null),this[_0x4b3106(0x1af)]=!0x0,_0x210637[_0x4b3106(0x1ac)]?.[_0x4b3106(0x191)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a6)]=_0x5df7c8[_0x4b3106(0x159)],_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)]&&_0x5df7c8[_0x4b3106(0x16f)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)][_0x4b3106(0x17f)]=_0x5df7c8[_0x4b3106(0x16f)])),this[_0x4b3106(0x174)][_0x4b3106(0x17a)](_0x5df7c8[_0x4b3106(0x198)]),this[_0x4b3106(0x1a5)](_0x5df7c8[_0x4b3106(0x16e)],_0x5df7c8[_0x4b3106(0x150)]),this[_0x4b3106(0x160)]=()=>{const _0x5ce0f0=_0x4b3106;this[_0x5ce0f0(0x1af)]=!0x1,this[_0x5ce0f0(0x160)]=null,_0x210637[_0x5ce0f0(0x1ac)]&&_0x210637[_0x5ce0f0(0x1ac)][_0x5ce0f0(0x1a0)]();},_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x190)](_0x4b3106(0x196),this[_0x4b3106(0x160)]);}[_0xecb3e7(0x1a5)](_0x3c18b0,_0x44dc44){const _0x77f0e8=_0xecb3e7;this[_0x77f0e8(0x16d)][_0x77f0e8(0x1aa)][_0x77f0e8(0x156)](_0xed72c8)[_0x77f0e8(0x186)](_0x3c18b0,_0x77f0e8(0x1bc)+_0x44dc44,!0x0,!0x0);}[_0xecb3e7(0x182)](_0x5f379b){const _0x224953=_0xecb3e7,_0xaf92b9=_0x268051(this[_0x224953(0x16d)]);this[_0x224953(0x1a5)](_0x5f379b[_0x224953(0x16e)],_0x5f379b[_0x224953(0x150)]);const _0xb70ed0=this[_0x224953(0x17c)]();_0xb70ed0&&_0xb70ed0[0x0]&&_0x4d619d({'target':_0xb70ed0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xaf92b9[_0x224953(0x1aa)][_0x224953(0x156)](_0x224953(0x18c))[_0x224953(0x1b7)]({'title':_0x5f379b[_0x224953(0x159)],'icon':_0x5f379b[_0x224953(0x16f)],'hasCloseButton':!0x0,'id':_0x224953(0x184),'position':this[_0x224953(0x151)][_0x224953(0x183)](this),'className':_0x224953(0x1a7)+(_0x5f379b[_0x224953(0x15a)]?_0x224953(0x1bd):''),'content':this[_0x224953(0x174)],'onShow':_0x38c7fb=>{const _0x8dcf3e=_0x224953;_0x5f379b[_0x8dcf3e(0x15a)]&&this[_0x8dcf3e(0x174)][_0x8dcf3e(0x1a9)](_0x38c7fb),this[_0x8dcf3e(0x1a2)](),this[_0x8dcf3e(0x164)]=!0x0;},'onHide':()=>{const _0x49f8bf=_0x224953;this[_0x49f8bf(0x16d)][_0x49f8bf(0x1aa)][_0x49f8bf(0x156)](_0x49f8bf(0x17b))[_0x49f8bf(0x175)](_0x49f8bf(0x1bc)+this[_0x49f8bf(0x19e)][_0x49f8bf(0x150)]),this[_0x49f8bf(0x1bb)](),this[_0x49f8bf(0x1a4)](_0x49f8bf(0x168)),this[_0x49f8bf(0x164)]=!0x1;}});}[_0xecb3e7(0x151)](_0x567d64,_0xa37765){const _0x877832=_0xecb3e7;if(!_0xa37765)return null;const _0x4f814e=this[_0x877832(0x17c)]();if(!_0x4f814e||0x0===_0x4f814e[_0x877832(0x157)])return{'left':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),'top':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x1b2)]+_0xa37765[_0x877832(0x170)]/0x2-_0x567d64[_0x877832(0x170)]/0x2)};const _0x4d8fb3=Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),_0x1ce0c3=new _0x17046d(_0x4f814e[0x0]),_0x5d88af=new _0x17046d(_0x4f814e[_0x4f814e[_0x877832(0x157)]-0x1]),_0x5da642=_0x567d64[_0x877832(0x170)],_0x5a7e67=this[_0x877832(0x19e)][_0x877832(0x15a)]?0x8:0x0;return{'left':_0x4d8fb3,'top':this[_0x877832(0x15b)](_0x1ce0c3,_0x5d88af,_0x5da642,_0x5a7e67,_0xa37765)};}[_0xecb3e7(0x15b)](_0x438a05,_0x108fae,_0x5bf986,_0x3093c2=0x0,_0x311f27){const _0x292b62=_0xecb3e7,_0x3f0521=_0x5bf986+_0x3093c2,_0x2b4713=new _0x17046d(_0x1593c4[_0x292b62(0x17e)]),_0x4a5f94=[_0x438a05[_0x292b62(0x181)](),_0x108fae[_0x292b62(0x181)]()][_0x292b62(0x1b6)](_0x4f5c99=>_0x4f5c99),_0x3e3ce7=_0x17046d[_0x292b62(0x15f)](_0x4a5f94);if(!_0x3e3ce7)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x42e665=_0x2b4713[_0x292b62(0x1be)](_0x3e3ce7);if(!_0x42e665)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x26ac32=_0x311f27[_0x292b62(0x181)](),_0x37f3d9=_0x26ac32&&_0x3e3ce7[_0x292b62(0x170)]>_0x26ac32[_0x292b62(0x170)],_0x7c59e6=_0x42e665[_0x292b62(0x1b2)],_0x478994=_0x42e665[_0x292b62(0x189)];if(_0x37f3d9){const _0x2ce1b1=(_0x26ac32||_0x2b4713)[_0x292b62(0x170)]/0x2-_0x3f0521/0x2,_0x156f7e=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)],_0x2f360c=_0x311f27[_0x292b62(0x189)]-_0x478994-ut;return _0x156f7e>=_0x3f0521?Math[_0x292b62(0x1b1)](ut,_0x7c59e6-_0x3f0521-ut):_0x2f360c>=_0x3f0521?_0x478994+ut:Math[_0x292b62(0x1b1)](ut,_0x2ce1b1);}const _0x279810=_0x7c59e6-_0x3f0521,_0x4dcb30=_0x311f27[_0x292b62(0x189)]-_0x478994-ut,_0x3ec2ae=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)];let _0x2e7706;if(_0x4dcb30>=_0x3f0521)_0x2e7706=_0x478994+ut;else{if(_0x3ec2ae>=_0x3f0521)_0x2e7706=_0x279810-ut;else _0x2e7706=_0x7c59e6+_0x3e3ce7[_0x292b62(0x170)]/0x2-_0x3f0521/0x2;}return _0x2e7706;}[_0xecb3e7(0x1a2)](){const _0x5d273a=_0xecb3e7,_0xcd8819=_0x268051(this[_0x5d273a(0x16d)]);this[_0x5d273a(0x19b)](_0xcd8819[_0x5d273a(0x16a)][_0x5d273a(0x15e)],_0x5d273a(0x194),()=>{const _0x24a463=_0x5d273a;if(this[_0x24a463(0x1af)])return;for(const {name:_0x39aa5f,data:{newRange:_0x2906d5}}of _0xcd8819[_0x24a463(0x16a)][_0x24a463(0x15e)][_0x24a463(0x167)][_0x24a463(0x19f)]())if(_0x39aa5f[_0x24a463(0x173)](_0x24a463(0x1b8))&&(_0x2906d5&&(_0x2906d5[_0x24a463(0x19c)][_0x24a463(0x172)](_0x2906d5[_0x24a463(0x169)])||_0x24a463(0x18b)==_0x2906d5[_0x24a463(0x1b4)][_0x24a463(0x180)])||null==_0x2906d5)){const _0x2ab042=_0x4e1504(this[_0x24a463(0x16d)][_0x24a463(0x1ba)],_0x24a463(0x18d));this[_0x24a463(0x174)][_0x24a463(0x165)](_0x2ab042),this[_0x24a463(0x1a4)](_0x24a463(0x178));}});}[_0xecb3e7(0x1bb)](){const _0x254490=_0xecb3e7,_0x21b7a4=_0x268051(this[_0x254490(0x16d)]);this[_0x254490(0x18e)](_0x21b7a4[_0x254490(0x16a)][_0x254490(0x15e)]);}[_0xecb3e7(0x17c)](){const _0x208e8c=_0xecb3e7,_0x3b1eee=_0x268051(this[_0x208e8c(0x16d)]);return _0x1ac766(_0x3b1eee[_0x208e8c(0x1b9)],[..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x197)),..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x1ab))]);}}
23
+ const _0x2af3c4=_0x36e7;(function(_0x8f379c,_0x1fef1a){const _0x2431e6=_0x36e7,_0x58309f=_0x8f379c();while(!![]){try{const _0x216680=parseInt(_0x2431e6(0xf3))/0x1*(parseInt(_0x2431e6(0xef))/0x2)+parseInt(_0x2431e6(0x137))/0x3*(parseInt(_0x2431e6(0x118))/0x4)+-parseInt(_0x2431e6(0x12b))/0x5+-parseInt(_0x2431e6(0xd9))/0x6+-parseInt(_0x2431e6(0x12c))/0x7+parseInt(_0x2431e6(0xda))/0x8+-parseInt(_0x2431e6(0xdf))/0x9*(-parseInt(_0x2431e6(0x143))/0xa);if(_0x216680===_0x1fef1a)break;else _0x58309f['push'](_0x58309f['shift']());}catch(_0x43640c){_0x58309f['push'](_0x58309f['shift']());}}}(_0x74ee,0xa2083));import{ContextPlugin as _0x403328}from'ckeditor5/src/core.js';import{AIConnector as _0x1f3731}from'../aicore/aiconnector.js';function _0x36e7(_0x410e36,_0x40e54f){const _0x74eeaf=_0x74ee();return _0x36e7=function(_0x36e76,_0x459ee2){_0x36e76=_0x36e76-0xd8;let _0x283227=_0x74eeaf[_0x36e76];return _0x283227;},_0x36e7(_0x410e36,_0x40e54f);}import{AIEditing as _0x450285}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4a64df,AIBalloonView as _0x38bdb3}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x74ee(){const _0x1078fd=['1291131VLWEOj','document','_pendingRenderCallback','_setupMarkerRemovalListener','isOfficialPlugin','stopListening','fire','startsWith','end','requires','hide','Dialog','_getSelectionElements','ai-balloon-selection','length','getChangedMarkers','window','_setupVisualSelection','markers','hideFakeVisualSelection','top','AIEditing','_calculateDialogPosition','bind','isTrackChangesOn','icon','round','showFakeVisualSelection','pluginName','differ','ai-balloon-','left','isEqual','balloonView','_config','ai-balloon','once','1047972VPOwdV','ai-selection:','selectionRemoved','_updateBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','listenTo','updatePosition','ai.availableReplyActions','setupRotator','filter','getBoundingRect','get','index','_calculateOptimalTopPosition','root','_isUpdatingMarkers','getIntersection','title','headerView','6541445ksSEKe','7406959nZMynb','startAutoScroll','iconView','show','showBlockingError','dialogClosed','off','width','stopAutoScroll','isOpen','model','6DrboXT','locale','getMarkersGroup','render','ai-selection','updateContent','bottom','close','_cleanupMarkerRemovalListener','config','start','context','9230MTcYgF','commands','height','172062muZCfs','2927168agDCem','showRotator','getVisible','\x20ai-balloon-rotator','trackChanges','8559LPDYnh','isPremiumPlugin','plugins','_showDialog','AIBalloon','value','ranges','view','aiBalloon','$graveyard','rootName','content','open','change','max','editing','2cXTOCV','mainView','label','delegate'];_0x74ee=function(){return _0x1078fd;};return _0x74ee();}import{getAllMarkersDomElementsSorted as _0x429885}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x166334,Rect as _0x540e4d,scrollViewportToShowTarget as _0x48702c}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2e6b0b}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x51d904}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1e0357}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4a64df,_0x2af3c4(0x131),_0x2af3c4(0x11a)];const x=0xa;export class AIBalloon extends _0x403328{static get[_0x2af3c4(0xfc)](){return[_0x1f3731,_0x450285];}static get[_0x2af3c4(0x10f)](){const _0x3a6213=_0x2af3c4;return _0x3a6213(0xe3);}static get[_0x2af3c4(0xf7)](){return!0x0;}static get[_0x2af3c4(0xe0)](){return!0x0;}[_0x2af3c4(0x135)]=!0x1;[_0x2af3c4(0x115)];[_0x2af3c4(0x127)]=!0x1;[_0x2af3c4(0xf5)]=null;[_0x2af3c4(0xeb)](_0x47b9d9){const _0x24ce0e=_0x2af3c4,_0xe50cb7=_0x2e6b0b(this[_0x24ce0e(0x142)]);if(this[_0x24ce0e(0x115)]=_0x47b9d9,this[_0x24ce0e(0x135)])return void this[_0x24ce0e(0x11b)](_0x47b9d9);const _0x303ca8=this[_0x24ce0e(0x142)][_0x24ce0e(0x140)][_0x24ce0e(0x123)](_0x24ce0e(0x11f))||[..._0x51d904],_0x39feba=_0xe50cb7?.[_0x24ce0e(0x144)][_0x24ce0e(0x123)](_0x24ce0e(0xde)),_0x7861c0=_0x39feba?.[_0x24ce0e(0xe4)];this[_0x24ce0e(0x114)]=new _0x38bdb3(_0xe50cb7[_0x24ce0e(0x138)],_0x47b9d9,_0x303ca8,!!_0x7861c0),this[_0x24ce0e(0x114)][_0x24ce0e(0xf2)](..._0x4a64df)['to'](this),_0x39feba&&this[_0x24ce0e(0x114)][_0x24ce0e(0x10a)](_0x24ce0e(0x10b))['to'](_0x39feba,_0x24ce0e(0xe4)),this[_0x24ce0e(0xe2)](_0x47b9d9);}[_0x2af3c4(0x13e)](){const _0x57d48c=_0x2af3c4;_0x2e6b0b(this[_0x57d48c(0x142)])[_0x57d48c(0xe1)][_0x57d48c(0x123)](_0x57d48c(0xfe))[_0x57d48c(0xfd)]();}[_0x2af3c4(0x12d)](){const _0xdd349b=_0x2af3c4;this[_0xdd349b(0x114)]&&this[_0xdd349b(0x114)][_0xdd349b(0x12d)]();}[_0x2af3c4(0x134)](){const _0x4f897a=_0x2af3c4;this[_0x4f897a(0x114)]&&this[_0x4f897a(0x114)][_0x4f897a(0x134)]();}[_0x2af3c4(0x11b)](_0x22f50d){const _0x4e809f=_0x2af3c4,_0x178988=_0x2e6b0b(this[_0x4e809f(0x142)]),_0x2144a4=_0x178988[_0x4e809f(0xe1)][_0x4e809f(0x123)](_0x4e809f(0xfe));this[_0x4e809f(0xf5)]&&(_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x132)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]),this[_0x4e809f(0xf5)]=null),this[_0x4e809f(0x127)]=!0x0,_0x2144a4[_0x4e809f(0xe6)]?.[_0x4e809f(0x12a)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0xf1)]=_0x22f50d[_0x4e809f(0x129)],_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)]&&_0x22f50d[_0x4e809f(0x10c)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)][_0x4e809f(0xea)]=_0x22f50d[_0x4e809f(0x10c)])),this[_0x4e809f(0x114)][_0x4e809f(0x13c)](_0x22f50d[_0x4e809f(0xf0)]),this[_0x4e809f(0x104)](_0x22f50d[_0x4e809f(0xe5)],_0x22f50d[_0x4e809f(0x124)]),this[_0x4e809f(0xf5)]=()=>{const _0x475114=_0x4e809f;this[_0x475114(0x127)]=!0x1,this[_0x475114(0xf5)]=null,_0x2144a4[_0x475114(0xe6)]&&_0x2144a4[_0x475114(0xe6)][_0x475114(0x11e)]();},_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x117)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]);}[_0x2af3c4(0x104)](_0x3d363b,_0x53cb72){const _0x2e6c14=_0x2af3c4;this[_0x2e6c14(0x142)][_0x2e6c14(0xe1)][_0x2e6c14(0x123)](_0x450285)[_0x2e6c14(0x10e)](_0x3d363b,_0x2e6c14(0x111)+_0x53cb72,!0x0,!0x0);}[_0x2af3c4(0xe2)](_0xba2340){const _0x536ce2=_0x2af3c4,_0x2cea3a=_0x2e6b0b(this[_0x536ce2(0x142)]);this[_0x536ce2(0x104)](_0xba2340[_0x536ce2(0xe5)],_0xba2340[_0x536ce2(0x124)]);const _0x4b23ed=this[_0x536ce2(0xff)]();_0x4b23ed&&_0x4b23ed[0x0]&&_0x48702c({'target':_0x4b23ed[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2cea3a[_0x536ce2(0xe1)][_0x536ce2(0x123)](_0x536ce2(0xfe))[_0x536ce2(0x12f)]({'title':_0xba2340[_0x536ce2(0x129)],'icon':_0xba2340[_0x536ce2(0x10c)],'hasCloseButton':!0x0,'id':_0x536ce2(0xe7),'position':this[_0x536ce2(0x109)][_0x536ce2(0x10a)](this),'className':_0x536ce2(0x116)+(_0xba2340[_0x536ce2(0xdb)]?_0x536ce2(0xdd):''),'content':this[_0x536ce2(0x114)],'onShow':_0x731d45=>{const _0x302476=_0x536ce2;_0xba2340[_0x302476(0xdb)]&&this[_0x302476(0x114)][_0x302476(0x120)](_0x731d45),this[_0x302476(0xf6)](),this[_0x302476(0x135)]=!0x0;},'onHide':()=>{const _0x46930f=_0x536ce2;this[_0x46930f(0x142)][_0x46930f(0xe1)][_0x46930f(0x123)](_0x46930f(0x108))[_0x46930f(0x106)](_0x46930f(0x111)+this[_0x46930f(0x115)][_0x46930f(0x124)]),this[_0x46930f(0x13f)](),this[_0x46930f(0xf9)](_0x46930f(0x131)),this[_0x46930f(0x135)]=!0x1;}});}[_0x2af3c4(0x109)](_0x4c334f,_0x49f69b){const _0x77a22a=_0x2af3c4;if(!_0x49f69b)return null;const _0x54fd24=this[_0x77a22a(0xff)]();if(!_0x54fd24||0x0===_0x54fd24[_0x77a22a(0x101)])return{'left':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),'top':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x107)]+_0x49f69b[_0x77a22a(0xd8)]/0x2-_0x4c334f[_0x77a22a(0xd8)]/0x2)};const _0x2a0bec=Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),_0x5e9af8=new _0x540e4d(_0x54fd24[0x0]),_0x2ee1e5=new _0x540e4d(_0x54fd24[_0x54fd24[_0x77a22a(0x101)]-0x1]),_0x1f680d=_0x4c334f[_0x77a22a(0xd8)],_0x1dec5c=this[_0x77a22a(0x115)][_0x77a22a(0xdb)]?0x8:0x0;return{'left':_0x2a0bec,'top':this[_0x77a22a(0x125)](_0x5e9af8,_0x2ee1e5,_0x1f680d,_0x1dec5c,_0x49f69b)};}[_0x2af3c4(0x125)](_0x5ec4a1,_0x931860,_0x2f7996,_0x5c36ad=0x0,_0x215b5a){const _0x365a28=_0x2af3c4,_0x4ec4ec=_0x2f7996+_0x5c36ad,_0x363f3e=new _0x540e4d(_0x166334[_0x365a28(0x103)]),_0x33f8a2=[_0x5ec4a1[_0x365a28(0xdc)](),_0x931860[_0x365a28(0xdc)]()][_0x365a28(0x121)](_0x418af7=>_0x418af7),_0xf1e001=_0x540e4d[_0x365a28(0x122)](_0x33f8a2);if(!_0xf1e001)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x3c32ec=_0x363f3e[_0x365a28(0x128)](_0xf1e001);if(!_0x3c32ec)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x57e76f=_0x215b5a[_0x365a28(0xdc)](),_0x52797a=_0x57e76f&&_0xf1e001[_0x365a28(0xd8)]>_0x57e76f[_0x365a28(0xd8)],_0x327825=_0x3c32ec[_0x365a28(0x107)],_0x1085ee=_0x3c32ec[_0x365a28(0x13d)];if(_0x52797a){const _0x3999b6=(_0x57e76f||_0x363f3e)[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2,_0x1ec011=_0x327825-x-_0x215b5a[_0x365a28(0x107)],_0x917ba4=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x;return _0x1ec011>=_0x4ec4ec?Math[_0x365a28(0xed)](x,_0x327825-_0x4ec4ec-x):_0x917ba4>=_0x4ec4ec?_0x1085ee+x:Math[_0x365a28(0xed)](x,_0x3999b6);}const _0x66884=_0x327825-_0x4ec4ec,_0x158e82=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x,_0x171919=_0x327825-x-_0x215b5a[_0x365a28(0x107)];let _0x44a1b6;if(_0x158e82>=_0x4ec4ec)_0x44a1b6=_0x1085ee+x;else{if(_0x171919>=_0x4ec4ec)_0x44a1b6=_0x66884-x;else _0x44a1b6=_0x327825+_0xf1e001[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2;}return _0x44a1b6;}[_0x2af3c4(0xf6)](){const _0x802b51=_0x2af3c4,_0x98468e=_0x2e6b0b(this[_0x802b51(0x142)]);this[_0x802b51(0x11d)](_0x98468e[_0x802b51(0x136)][_0x802b51(0xf4)],_0x802b51(0xec),()=>{const _0x167e3c=_0x802b51;if(this[_0x167e3c(0x127)])return;for(const {name:_0x59db0d,data:{newRange:_0x321c3d}}of _0x98468e[_0x167e3c(0x136)][_0x167e3c(0xf4)][_0x167e3c(0x110)][_0x167e3c(0x102)]())if(_0x59db0d[_0x167e3c(0xfa)](_0x167e3c(0x119))&&(_0x321c3d&&(_0x321c3d[_0x167e3c(0x141)][_0x167e3c(0x113)](_0x321c3d[_0x167e3c(0xfb)])||_0x167e3c(0xe8)==_0x321c3d[_0x167e3c(0x126)][_0x167e3c(0xe9)])||null==_0x321c3d)){const _0x7a790=_0x1e0357(this[_0x167e3c(0x142)][_0x167e3c(0x138)],_0x167e3c(0x11c));this[_0x167e3c(0x114)][_0x167e3c(0x130)](_0x7a790),this[_0x167e3c(0xf9)](_0x167e3c(0x11a));}});}[_0x2af3c4(0x13f)](){const _0x537377=_0x2af3c4,_0x1db4ff=_0x2e6b0b(this[_0x537377(0x142)]);this[_0x537377(0xf8)](_0x1db4ff[_0x537377(0x136)][_0x537377(0xf4)]);}[_0x2af3c4(0xff)](){const _0x1a7d62=_0x2af3c4,_0x3463b5=_0x2e6b0b(this[_0x1a7d62(0x142)]);return _0x429885(_0x3463b5[_0x1a7d62(0xee)],[..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x13b)),..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x100))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x43a225,_0x46cf71){var _0x665c14=_0x2577,_0x17f7c6=_0x43a225();while(!![]){try{var _0xd804e7=parseInt(_0x665c14(0x1e6))/0x1+parseInt(_0x665c14(0x1e1))/0x2*(parseInt(_0x665c14(0x1df))/0x3)+parseInt(_0x665c14(0x1e5))/0x4+-parseInt(_0x665c14(0x1e7))/0x5*(-parseInt(_0x665c14(0x1e0))/0x6)+-parseInt(_0x665c14(0x1e4))/0x7*(parseInt(_0x665c14(0x1db))/0x8)+parseInt(_0x665c14(0x1d9))/0x9+-parseInt(_0x665c14(0x1de))/0xa;if(_0xd804e7===_0x46cf71)break;else _0x17f7c6['push'](_0x17f7c6['shift']());}catch(_0x280076){_0x17f7c6['push'](_0x17f7c6['shift']());}}}(_0x50b3,0x73264));function _0x50b3(){var _0xb287f2=['1089684DKnHKn','setTemplate','5232480wuVOXJ','div','ck-ai-balloon__disclaimer','12947870OPIkMx','129yHZDfn','2580AsHJlh','35946ABstEb','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer-content','7qFcvlk','1066204DocFQn','871743OrcNdq','4515mtHlVr'];_0x50b3=function(){return _0xb287f2;};return _0x50b3();}import{View as _0x138c81}from'ckeditor5/src/ui.js';function _0x2577(_0x381164,_0x3f24b2){var _0x50b380=_0x50b3();return _0x2577=function(_0x2577b8,_0x39086c){_0x2577b8=_0x2577b8-0x1d9;var _0x36893e=_0x50b380[_0x2577b8];return _0x36893e;},_0x2577(_0x381164,_0x3f24b2);}import{getTranslation as _0x8d4b33}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x138c81{constructor(_0x2198ac){var _0x1aecbe=_0x2577;super(_0x2198ac),this[_0x1aecbe(0x1da)]({'tag':_0x1aecbe(0x1dc),'attributes':{'class':['ck',_0x1aecbe(0x1dd)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1aecbe(0x1e3)]},'children':[{'text':_0x8d4b33(_0x2198ac,_0x1aecbe(0x1e2))}]}]});}}
23
+ (function(_0x4d1fdf,_0x20ae22){var _0x4d5eca=_0x8027,_0x907ad3=_0x4d1fdf();while(!![]){try{var _0x1ee9e4=-parseInt(_0x4d5eca(0x127))/0x1*(parseInt(_0x4d5eca(0x125))/0x2)+parseInt(_0x4d5eca(0x128))/0x3+parseInt(_0x4d5eca(0x12b))/0x4*(parseInt(_0x4d5eca(0x129))/0x5)+-parseInt(_0x4d5eca(0x124))/0x6*(parseInt(_0x4d5eca(0x12f))/0x7)+parseInt(_0x4d5eca(0x122))/0x8+parseInt(_0x4d5eca(0x121))/0x9+-parseInt(_0x4d5eca(0x126))/0xa*(parseInt(_0x4d5eca(0x12c))/0xb);if(_0x1ee9e4===_0x20ae22)break;else _0x907ad3['push'](_0x907ad3['shift']());}catch(_0x2b5a9a){_0x907ad3['push'](_0x907ad3['shift']());}}}(_0x35b4,0x599da));function _0x35b4(){var _0x323019=['setTemplate','2544NAoDvB','16cZqGDr','30uBYQjg','32108TDdSPu','924069fvsXMb','5fCvDIH','ck-ai-balloon__disclaimer-content','1326892uKXZHZ','1952687TPVHIv','div','ck-ai-balloon__disclaimer','8008vbgVmw','AI_DISCLAIMER_TEXT','3765564jIraya','4667160lSAxBl'];_0x35b4=function(){return _0x323019;};return _0x35b4();}import{View as _0x54c537}from'ckeditor5/src/ui.js';import{getTranslation as _0x487df2}from'../../aicore/utils/common-translations.js';function _0x8027(_0x2bcb8f,_0x24ef26){var _0x35b437=_0x35b4();return _0x8027=function(_0x802767,_0x2ffce5){_0x802767=_0x802767-0x121;var _0x20de58=_0x35b437[_0x802767];return _0x20de58;},_0x8027(_0x2bcb8f,_0x24ef26);}export class AIBalloonDisclaimerView extends _0x54c537{constructor(_0x95134b){var _0x3820d7=_0x8027;super(_0x95134b),this[_0x3820d7(0x123)]({'tag':_0x3820d7(0x12d),'attributes':{'class':['ck',_0x3820d7(0x12e)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3820d7(0x12a)]},'children':[{'text':_0x487df2(_0x95134b,_0x3820d7(0x130))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f4a9d=_0x579f;function _0x596b(){const _0x59c5d8=['AI_BALLOON_APPLY_BUTTON','isEnabled','176hgrtBY','185030RZZUuq','suggestButton','_createButton','15UtpLoc','10331919AWchYT','1544226JiKkpo','2RDfnKy','11931588vHfuFH','AI_BALLOON_SUGGEST_BUTTON','ck-ai-balloon__toolbar','items','1275541DzOzIs','extendTemplate','isLoading','applyButton','bind','set','2435536XpnGbF','319LqlqOt','14OTvsRE','79959vzPNGr','ck-ai-button-primary','locale','ck-ai-button-secondary','add'];_0x596b=function(){return _0x59c5d8;};return _0x596b();}(function(_0x370870,_0x5b1a18){const _0x254328=_0x579f,_0x34dbe6=_0x370870();while(!![]){try{const _0x3b3bb3=parseInt(_0x254328(0x182))/0x1*(-parseInt(_0x254328(0x17d))/0x2)+parseInt(_0x254328(0x16f))/0x3*(parseInt(_0x254328(0x176))/0x4)+-parseInt(_0x254328(0x17a))/0x5*(-parseInt(_0x254328(0x17c))/0x6)+-parseInt(_0x254328(0x16e))/0x7*(parseInt(_0x254328(0x16c))/0x8)+parseInt(_0x254328(0x17b))/0x9+parseInt(_0x254328(0x177))/0xa*(parseInt(_0x254328(0x16d))/0xb)+-parseInt(_0x254328(0x17e))/0xc;if(_0x3b3bb3===_0x5b1a18)break;else _0x34dbe6['push'](_0x34dbe6['shift']());}catch(_0x268a42){_0x34dbe6['push'](_0x34dbe6['shift']());}}}(_0x596b,0xb746b));import{ToolbarView as _0x14f351,ButtonView as _0x16a613}from'ckeditor5/src/ui.js';function _0x579f(_0xdaf68,_0x144f2a){const _0x596bf8=_0x596b();return _0x579f=function(_0x579f2d,_0x10ac2c){_0x579f2d=_0x579f2d-0x167;let _0x548b5d=_0x596bf8[_0x579f2d];return _0x548b5d;},_0x579f(_0xdaf68,_0x144f2a);}import{getTranslation as _0x374cac}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x14f351{constructor(_0x277373,_0x28f2c4=!0x0,_0x5cbf12=!0x0){const _0x1db2c6=_0x579f;super(_0x277373),this[_0x1db2c6(0x16b)](_0x1db2c6(0x168),!0x1),_0x28f2c4&&(this[_0x1db2c6(0x169)]=this[_0x1db2c6(0x179)](_0x374cac(_0x277373,_0x1db2c6(0x174)),_0x1db2c6(0x170)),this[_0x1db2c6(0x169)][_0x1db2c6(0x16a)](_0x1db2c6(0x175))['to'](this,_0x1db2c6(0x168),_0x55869d=>!_0x55869d),this[_0x1db2c6(0x181)][_0x1db2c6(0x173)](this[_0x1db2c6(0x169)])),_0x5cbf12&&(this[_0x1db2c6(0x178)]=this[_0x1db2c6(0x179)](_0x374cac(_0x277373,_0x1db2c6(0x17f)),_0x28f2c4?_0x1db2c6(0x172):_0x1db2c6(0x170)),this[_0x1db2c6(0x178)][_0x1db2c6(0x16a)](_0x1db2c6(0x175))['to'](this,_0x1db2c6(0x168),_0x3b45af=>!_0x3b45af),this[_0x1db2c6(0x181)][_0x1db2c6(0x173)](this[_0x1db2c6(0x178)])),this[_0x1db2c6(0x167)]({'attributes':{'class':[_0x1db2c6(0x180)]}});}[_0x3f4a9d(0x179)](_0x3e3151,_0x4d533d){const _0xa1ddf0=_0x3f4a9d,_0x4a6778=new _0x16a613(this[_0xa1ddf0(0x171)]);return _0x4a6778[_0xa1ddf0(0x16b)]({'label':_0x3e3151,'class':_0x4d533d||'','isVisible':!0x0,'withText':!0x0}),_0x4a6778;}}
23
+ const _0x549580=_0x3cb5;(function(_0x1a02ef,_0x5d4e54){const _0x363766=_0x3cb5,_0x175337=_0x1a02ef();while(!![]){try{const _0xd9ffc4=-parseInt(_0x363766(0x74))/0x1*(parseInt(_0x363766(0x6f))/0x2)+parseInt(_0x363766(0x66))/0x3*(-parseInt(_0x363766(0x7d))/0x4)+parseInt(_0x363766(0x72))/0x5+-parseInt(_0x363766(0x79))/0x6+-parseInt(_0x363766(0x65))/0x7*(parseInt(_0x363766(0x7a))/0x8)+parseInt(_0x363766(0x7e))/0x9*(-parseInt(_0x363766(0x75))/0xa)+-parseInt(_0x363766(0x6b))/0xb*(-parseInt(_0x363766(0x76))/0xc);if(_0xd9ffc4===_0x5d4e54)break;else _0x175337['push'](_0x175337['shift']());}catch(_0x412bb2){_0x175337['push'](_0x175337['shift']());}}}(_0x2990,0xc0363));import{ToolbarView as _0x37a976,ButtonView as _0x3d3d42}from'ckeditor5/src/ui.js';import{getTranslation as _0x58ada5}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x37a976{constructor(_0x3bf407,_0x455ce8=!0x0,_0x4e39fd=!0x0){const _0x458974=_0x3cb5;super(_0x3bf407),this[_0x458974(0x7c)](_0x458974(0x77),!0x1),_0x455ce8&&(this[_0x458974(0x6e)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x7b)),_0x458974(0x67)),this[_0x458974(0x6e)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x486a7d=>!_0x486a7d),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x6e)])),_0x4e39fd&&(this[_0x458974(0x69)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x6d)),_0x455ce8?_0x458974(0x7f):_0x458974(0x67)),this[_0x458974(0x69)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x37fc94=>!_0x37fc94),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x69)])),this[_0x458974(0x6a)]({'attributes':{'class':[_0x458974(0x6c)]}});}[_0x549580(0x68)](_0x198251,_0x3a859e){const _0x1fc60d=_0x549580,_0x3950f5=new _0x3d3d42(this[_0x1fc60d(0x80)]);return _0x3950f5[_0x1fc60d(0x7c)]({'label':_0x198251,'class':_0x3a859e||'','isVisible':!0x0,'withText':!0x0}),_0x3950f5;}}function _0x3cb5(_0x4282e9,_0x48ba00){const _0x29903c=_0x2990();return _0x3cb5=function(_0x3cb5ca,_0x1da667){_0x3cb5ca=_0x3cb5ca-0x65;let _0x5474bb=_0x29903c[_0x3cb5ca];return _0x5474bb;},_0x3cb5(_0x4282e9,_0x48ba00);}function _0x2990(){const _0x5558c2=['extendTemplate','11fosKHB','ck-ai-balloon__toolbar','AI_BALLOON_SUGGEST_BUTTON','applyButton','434136mLrOyR','isEnabled','add','524430HdlnGp','bind','2gSXNpM','2008810NxcjCc','54404124WMgCqS','isLoading','items','1566510QiaCdf','8UcZAfR','AI_BALLOON_APPLY_BUTTON','set','86332lReNfC','54smYWEI','ck-ai-button-secondary','locale','10331517fsnQnk','66gCRmcy','ck-ai-button-primary','_createButton','suggestButton'];_0x2990=function(){return _0x5558c2;};return _0x2990();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53398e=_0x5690;(function(_0x1bab9b,_0x4552fc){const _0x3f4013=_0x5690,_0x2a021e=_0x1bab9b();while(!![]){try{const _0x18abba=-parseInt(_0x3f4013(0x16c))/0x1+parseInt(_0x3f4013(0x136))/0x2*(parseInt(_0x3f4013(0x167))/0x3)+parseInt(_0x3f4013(0x126))/0x4+-parseInt(_0x3f4013(0x145))/0x5*(-parseInt(_0x3f4013(0x166))/0x6)+-parseInt(_0x3f4013(0x14d))/0x7*(-parseInt(_0x3f4013(0x137))/0x8)+-parseInt(_0x3f4013(0x161))/0x9+parseInt(_0x3f4013(0x135))/0xa*(parseInt(_0x3f4013(0x12f))/0xb);if(_0x18abba===_0x4552fc)break;else _0x2a021e['push'](_0x2a021e['shift']());}catch(_0x397467){_0x2a021e['push'](_0x2a021e['shift']());}}}(_0x34dc,0x6090f));function _0x34dc(){const _0x5ade5e=['getIndex','showPrevious','change:isTrackChangesOn','tab','isErrorVisible','_initializeScrollManager','keystrokes','set','stopAutoScroll','focusFirst','addMany','applyButton','element','20anxnYB','destroy','span','focus','_availableActions','isEnabled','_mainView','remove','1972439UshaYp','render','hideError','startAutoScroll','showApplyButton','execute','showBlockingError','setTemplate','listenTo','_focusables','locale','_createErrorView','clear','_getScrollableElement','_addToolbar','focusTracker','headerView','ai-balloon-error','_dialogContent','createCollection','6747273UztOxK','_createPreviousButtonView','add','applySuggestion','focusLast','380310EhWTDO','836409MAMJBm','bodyView','_addDisclaimerView','suggestButton','bind','530050DXKppc','focusCycler','AI_BALLOON_NEXT_TOOLTIP','div','AI_BALLOON_PREVIOUS_TOOLTIP','ai-balloon-content','errorMessage','toolbar','showNext','scrollManager','setLoading','showRecoverableError','children','fire','mainView','showSuggestButton','includes','_addContentView','isLoading','_createNextButtonView','start','ck-ai-suggestion__error','ck-ai-suggestion__error-text','174948gEeKso','disclaimerView','ck-hidden','setupRotator','showError','bindTemplate','updateContent','clearLoading','view','2825295WzKqWN','shift\x20+\x20tab','isTrackChangesOn','insertSuggestion','_errorView','stop','10BpqZCf','4hwTWRi','16Bgbjyw'];_0x34dc=function(){return _0x5ade5e;};return _0x34dc();}import{ButtonView as _0x59978e,View as _0x1d6c19,ViewCollection as _0x1435f9,FocusCycler as _0x5e6357}from'ckeditor5/src/ui.js';function _0x5690(_0x4c511d,_0x5d350e){const _0x34dc52=_0x34dc();return _0x5690=function(_0x569012,_0x354ddc){_0x569012=_0x569012-0x124;let _0x4447e4=_0x34dc52[_0x569012];return _0x4447e4;},_0x5690(_0x4c511d,_0x5d350e);}import{FocusTracker as _0x4778df,KeystrokeHandler as _0x3a4b57}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4cf69d,IconPreviousArrow as _0xef208a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x24dede}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x326686}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4763c7}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x29ec27}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1fdd68}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x53398e(0x164),_0x53398e(0x132),_0x53398e(0x174),_0x53398e(0x139)];export class AIBalloonView extends _0x1d6c19{[_0x53398e(0x15c)];[_0x53398e(0x13e)];[_0x53398e(0x16d)];[_0x53398e(0x149)];[_0x53398e(0x156)];[_0x53398e(0x133)];[_0x53398e(0x175)];constructor(_0x5c0e85,_0x366955,_0x5f0a32,_0x243b3c){const _0xac33f5=_0x53398e;super(_0x5c0e85),this[_0xac33f5(0x149)]=_0x5f0a32,this[_0xac33f5(0x13f)](_0xac33f5(0x17e),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x131),_0x243b3c),this[_0xac33f5(0x13f)](_0xac33f5(0x13c),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x172),''),this[_0xac33f5(0x15c)]=new _0x4778df(),this[_0xac33f5(0x13e)]=new _0x3a4b57(),this[_0xac33f5(0x156)]=this[_0xac33f5(0x160)](),this[_0xac33f5(0x16d)]=new _0x5e6357({'focusables':this[_0xac33f5(0x156)],'focusTracker':this[_0xac33f5(0x15c)],'keystrokeHandler':this[_0xac33f5(0x13e)],'actions':{'focusPrevious':_0xac33f5(0x130),'focusNext':_0xac33f5(0x13b)}}),this[_0xac33f5(0x15f)]=new _0x1435f9(),this[_0xac33f5(0x17d)](_0x366955[_0xac33f5(0x17a)]),this[_0xac33f5(0x169)](),this[_0xac33f5(0x15b)](_0x366955[_0xac33f5(0x151)],_0x366955[_0xac33f5(0x17b)]),this[_0xac33f5(0x173)][_0xac33f5(0x16b)](_0xac33f5(0x17e))['to'](this),this[_0xac33f5(0x156)][_0xac33f5(0x159)](),this[_0xac33f5(0x156)][_0xac33f5(0x142)]([this[_0xac33f5(0x173)]]),this[_0xac33f5(0x154)]({'tag':_0xac33f5(0x16f),'attributes':{'class':_0xac33f5(0x171)},'children':this[_0xac33f5(0x15f)]}),this['on'](_0xac33f5(0x13a),()=>{const _0x3c950b=_0xac33f5;this[_0x3c950b(0x15f)][_0x3c950b(0x14c)](this[_0x3c950b(0x173)]),this[_0x3c950b(0x15b)](_0x366955[_0x3c950b(0x151)],_0x366955[_0x3c950b(0x17b)]);});}[_0x53398e(0x14e)](){const _0x4725c8=_0x53398e;super[_0x4725c8(0x14e)]();for(const _0x32376c of this[_0x4725c8(0x156)])this[_0x4725c8(0x15c)][_0x4725c8(0x163)](_0x32376c[_0x4725c8(0x144)]);this[_0x4725c8(0x13e)][_0x4725c8(0x155)](this[_0x4725c8(0x144)]),this[_0x4725c8(0x13d)]();}[_0x53398e(0x146)](){const _0x550e0b=_0x53398e;super[_0x550e0b(0x146)](),this[_0x550e0b(0x175)]&&this[_0x550e0b(0x175)][_0x550e0b(0x146)]();}[_0x53398e(0x148)](_0x993203){const _0x11b393=_0x53398e;-0x1===_0x993203?this[_0x11b393(0x16d)][_0x11b393(0x165)]():this[_0x11b393(0x16d)][_0x11b393(0x141)]();}[_0x53398e(0x176)](){const _0x2a9638=_0x53398e;this[_0x2a9638(0x17e)]=!0x0;}[_0x53398e(0x12d)](){const _0x3854cd=_0x53398e;this[_0x3854cd(0x17e)]=!0x1;}[_0x53398e(0x12a)](_0x25ccb3){const _0x515ed1=_0x53398e;this[_0x515ed1(0x133)]||(this[_0x515ed1(0x133)]=this[_0x515ed1(0x158)](),this[_0x515ed1(0x15f)][_0x515ed1(0x142)]([this[_0x515ed1(0x133)]],0x0)),this[_0x515ed1(0x172)]=_0x25ccb3,this[_0x515ed1(0x13c)]=!0x0;}[_0x53398e(0x14f)](){const _0x1df447=_0x53398e;this[_0x1df447(0x13c)]=!0x1;}[_0x53398e(0x177)](_0x1198bf){const _0x58bbd9=_0x53398e;this[_0x58bbd9(0x12a)](_0x1198bf);}[_0x53398e(0x153)](_0x5a01b4){const _0x364703=_0x53398e;this[_0x364703(0x12a)](_0x5a01b4),this[_0x364703(0x173)]&&(this[_0x364703(0x173)][_0x364703(0x143)]&&(this[_0x364703(0x173)][_0x364703(0x143)][_0x364703(0x14a)]=!0x1),this[_0x364703(0x173)][_0x364703(0x16a)]&&(this[_0x364703(0x173)][_0x364703(0x16a)][_0x364703(0x14a)]=!0x1));}[_0x53398e(0x129)](_0x394c1b){const _0x366052=_0x53398e,_0x436e34=this[_0x366052(0x17f)](),_0x4da81f=this[_0x366052(0x162)]();_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x436e34,0x2),_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x4da81f,0x0),this[_0x366052(0x156)][_0x366052(0x142)]([_0x436e34,_0x4da81f]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x436e34[_0x366052(0x144)]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x4da81f[_0x366052(0x144)]);}[_0x53398e(0x17d)](_0x4cb175){const _0x439267=_0x53398e;this[_0x439267(0x14b)]=_0x4cb175,this[_0x439267(0x15f)][_0x439267(0x163)](this[_0x439267(0x14b)]);}[_0x53398e(0x12c)](_0x389823){const _0x4a9dab=_0x53398e,_0x22b1a7=this[_0x4a9dab(0x15f)][_0x4a9dab(0x138)](this[_0x4a9dab(0x14b)]);this[_0x4a9dab(0x15f)][_0x4a9dab(0x14c)](this[_0x4a9dab(0x14b)]),this[_0x4a9dab(0x14b)]=_0x389823,this[_0x4a9dab(0x15f)][_0x4a9dab(0x163)](this[_0x4a9dab(0x14b)],_0x22b1a7),this[_0x4a9dab(0x14f)](),this[_0x4a9dab(0x175)]&&this[_0x4a9dab(0x175)][_0x4a9dab(0x146)](),this[_0x4a9dab(0x13d)]();}[_0x53398e(0x169)](){const _0x164b61=_0x53398e;this[_0x164b61(0x127)]=new _0x326686(this[_0x164b61(0x157)]),this[_0x164b61(0x15f)][_0x164b61(0x163)](this[_0x164b61(0x127)]);}[_0x53398e(0x15b)](_0x53395a=!0x0,_0x5469a3=!0x0){const _0x1074de=_0x53398e;_0x53395a=_0x53395a&&!this[_0x1074de(0x131)]&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x164)),_0x5469a3=_0x5469a3&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x132)),this[_0x1074de(0x173)]=new _0x24dede(this[_0x1074de(0x157)],_0x53395a,_0x5469a3),this[_0x1074de(0x173)][_0x1074de(0x143)]?.['on'](_0x1074de(0x152),()=>{const _0x299757=_0x1074de;this[_0x299757(0x179)](_0x299757(0x164));}),this[_0x1074de(0x173)][_0x1074de(0x16a)]?.['on'](_0x1074de(0x152),()=>{const _0x13a8fa=_0x1074de;this[_0x13a8fa(0x179)](_0x13a8fa(0x132));}),this[_0x1074de(0x15f)][_0x1074de(0x163)](this[_0x1074de(0x173)]);}[_0x53398e(0x17f)](){const _0x3f135b=_0x53398e,_0x4c0a75=new _0x59978e(this[_0x3f135b(0x157)]);return _0x4c0a75[_0x3f135b(0x13f)]({'icon':_0x4cf69d,'tooltip':_0x4763c7(this[_0x3f135b(0x157)],_0x3f135b(0x16e))}),_0x4c0a75['on'](_0x3f135b(0x152),()=>{const _0x156752=_0x3f135b;this[_0x156752(0x179)](_0x156752(0x174));}),_0x4c0a75;}[_0x53398e(0x162)](){const _0x19c8c1=_0x53398e,_0x43ced7=new _0x59978e(this[_0x19c8c1(0x157)]);return _0x43ced7[_0x19c8c1(0x13f)]({'icon':_0xef208a,'tooltip':_0x4763c7(this[_0x19c8c1(0x157)],_0x19c8c1(0x170))}),_0x43ced7['on'](_0x19c8c1(0x152),()=>{const _0x328d6f=_0x19c8c1;this[_0x328d6f(0x179)](_0x328d6f(0x139));}),_0x43ced7;}[_0x53398e(0x158)](){const _0xc1fd50=_0x53398e,_0x5e7b35=new _0x1d6c19(this[_0xc1fd50(0x157)]),_0x49f4f7=new _0x1d6c19(this[_0xc1fd50(0x157)]);return _0x49f4f7[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x147),'attributes':{'class':['ck',_0xc1fd50(0x125)]},'children':[{'text':this[_0xc1fd50(0x12b)]['to'](_0xc1fd50(0x172))}]}),_0x5e7b35[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x16f),'attributes':{'class':['ck',_0xc1fd50(0x124),_0xc1fd50(0x15e),this[_0xc1fd50(0x12b)]['if'](_0xc1fd50(0x13c),_0xc1fd50(0x128),_0x1e2921=>!_0x1e2921)]},'children':[_0x49f4f7]}),_0x5e7b35;}[_0x53398e(0x150)](){const _0x4ba93a=_0x53398e;this[_0x4ba93a(0x13d)](),this[_0x4ba93a(0x175)]&&this[_0x4ba93a(0x175)][_0x4ba93a(0x180)]();}[_0x53398e(0x140)](){const _0x5d1e5c=_0x53398e;this[_0x5d1e5c(0x175)]&&this[_0x5d1e5c(0x175)][_0x5d1e5c(0x134)]();}[_0x53398e(0x13d)](){const _0x29bdfe=_0x53398e,_0x2de939=this[_0x29bdfe(0x15a)]();_0x2de939&&!this[_0x29bdfe(0x175)]&&(this[_0x29bdfe(0x175)]=new _0x29ec27(_0x2de939));}[_0x53398e(0x15a)](){const _0xef1c06=_0x53398e;return this[_0xef1c06(0x14b)]instanceof _0x1fdd68&&this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]?this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]:null;}}
23
+ const _0x1573e0=_0x19ac;function _0x19ac(_0x1ef5cf,_0x43509f){const _0x173296=_0x1732();return _0x19ac=function(_0x19acb9,_0x4f301f){_0x19acb9=_0x19acb9-0x188;let _0x1146fb=_0x173296[_0x19acb9];return _0x1146fb;},_0x19ac(_0x1ef5cf,_0x43509f);}(function(_0x53f496,_0x2176a3){const _0x86b532=_0x19ac,_0x274ce7=_0x53f496();while(!![]){try{const _0x26ab7f=parseInt(_0x86b532(0x1c2))/0x1*(parseInt(_0x86b532(0x197))/0x2)+-parseInt(_0x86b532(0x18a))/0x3+parseInt(_0x86b532(0x18d))/0x4*(-parseInt(_0x86b532(0x1ba))/0x5)+-parseInt(_0x86b532(0x1e3))/0x6*(parseInt(_0x86b532(0x1bb))/0x7)+-parseInt(_0x86b532(0x1ae))/0x8+-parseInt(_0x86b532(0x1dc))/0x9*(parseInt(_0x86b532(0x1a2))/0xa)+-parseInt(_0x86b532(0x191))/0xb*(-parseInt(_0x86b532(0x1bc))/0xc);if(_0x26ab7f===_0x2176a3)break;else _0x274ce7['push'](_0x274ce7['shift']());}catch(_0x3cedde){_0x274ce7['push'](_0x274ce7['shift']());}}}(_0x1732,0xbd2ac));import{ButtonView as _0x12c99f,View as _0x26ef86,ViewCollection as _0x1ec540,FocusCycler as _0x1bee75}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5da652,KeystrokeHandler as _0xfee0bc}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xffe363,IconPreviousArrow as _0xdda64d}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0xb064d3}from'./aiballoontoolbarview.js';function _0x1732(){const _0x301b84=['getIndex','198670onpYNR','189kPrryb','43691112bmlors','_addContentView','hideError','_dialogContent','setupRotator','stopAutoScroll','1RlNszv','AI_BALLOON_NEXT_TOOLTIP','_addToolbar','bind','applyButton','destroy','focusCycler','listenTo','showSuggestButton','errorMessage','render','createCollection','children','view','bindTemplate','disclaimerView','ck-hidden','isLoading','ai-balloon-content','shift\x20+\x20tab','showApplyButton','stop','focusTracker','_addDisclaimerView','execute','_createNextButtonView','18hhAgIY','change:isTrackChangesOn','locale','focus','toolbar','setTemplate','suggestButton','123996WdtjQP','scrollManager','showRecoverableError','showPrevious','ck-ai-suggestion__error-text','905922cZWISM','_availableActions','_mainView','48MynniV','remove','showNext','ai-balloon-error','11vCmvyL','isEnabled','set','clear','mainView','add','1252346GDrCgO','applySuggestion','_errorView','div','includes','showBlockingError','bodyView','setLoading','_focusables','_initializeScrollManager','_createErrorView','6840230bxiFlm','insertSuggestion','_getScrollableElement','focusLast','clearLoading','span','startAutoScroll','headerView','element','AI_BALLOON_PREVIOUS_TOOLTIP','keystrokes','showError','6299688lQUTNq','focusFirst','isTrackChangesOn','ck-ai-suggestion__error','updateContent','isErrorVisible','start','_createPreviousButtonView','tab','fire','addMany'];_0x1732=function(){return _0x301b84;};return _0x1732();}import{AIBalloonDisclaimerView as _0x592807}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4eff51}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x49e0ea}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0xd91d72}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1573e0(0x198),_0x1573e0(0x1a3),_0x1573e0(0x18f),_0x1573e0(0x188)];export class AIBalloonView extends _0x26ef86{[_0x1573e0(0x1d8)];[_0x1573e0(0x1ac)];[_0x1573e0(0x1c8)];[_0x1573e0(0x18b)];[_0x1573e0(0x19f)];[_0x1573e0(0x199)];[_0x1573e0(0x1e4)];constructor(_0x2018d9,_0x56a332,_0xe83fa2,_0x5da162){const _0x1f2b2c=_0x1573e0;super(_0x2018d9),this[_0x1f2b2c(0x18b)]=_0xe83fa2,this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1d3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b0),_0x5da162),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1cb),''),this[_0x1f2b2c(0x1d8)]=new _0x5da652(),this[_0x1f2b2c(0x1ac)]=new _0xfee0bc(),this[_0x1f2b2c(0x19f)]=this[_0x1f2b2c(0x1cd)](),this[_0x1f2b2c(0x1c8)]=new _0x1bee75({'focusables':this[_0x1f2b2c(0x19f)],'focusTracker':this[_0x1f2b2c(0x1d8)],'keystrokeHandler':this[_0x1f2b2c(0x1ac)],'actions':{'focusPrevious':_0x1f2b2c(0x1d5),'focusNext':_0x1f2b2c(0x1b6)}}),this[_0x1f2b2c(0x1bf)]=new _0x1ec540(),this[_0x1f2b2c(0x1bd)](_0x56a332[_0x1f2b2c(0x195)]),this[_0x1f2b2c(0x1d9)](),this[_0x1f2b2c(0x1c4)](_0x56a332[_0x1f2b2c(0x1d6)],_0x56a332[_0x1f2b2c(0x1ca)]),this[_0x1f2b2c(0x1e0)][_0x1f2b2c(0x1c5)](_0x1f2b2c(0x1d3))['to'](this),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x194)](),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x1b8)]([this[_0x1f2b2c(0x1e0)]]),this[_0x1f2b2c(0x1e1)]({'tag':_0x1f2b2c(0x19a),'attributes':{'class':_0x1f2b2c(0x1d4)},'children':this[_0x1f2b2c(0x1bf)]}),this['on'](_0x1f2b2c(0x1dd),()=>{const _0x261672=_0x1f2b2c;this[_0x261672(0x1bf)][_0x261672(0x18e)](this[_0x261672(0x1e0)]),this[_0x261672(0x1c4)](_0x56a332[_0x261672(0x1d6)],_0x56a332[_0x261672(0x1ca)]);});}[_0x1573e0(0x1cc)](){const _0x3d9994=_0x1573e0;super[_0x3d9994(0x1cc)]();for(const _0x2f1ae6 of this[_0x3d9994(0x19f)])this[_0x3d9994(0x1d8)][_0x3d9994(0x196)](_0x2f1ae6[_0x3d9994(0x1aa)]);this[_0x3d9994(0x1ac)][_0x3d9994(0x1c9)](this[_0x3d9994(0x1aa)]),this[_0x3d9994(0x1a0)]();}[_0x1573e0(0x1c7)](){const _0x341125=_0x1573e0;super[_0x341125(0x1c7)](),this[_0x341125(0x1e4)]&&this[_0x341125(0x1e4)][_0x341125(0x1c7)]();}[_0x1573e0(0x1df)](_0x48dfad){const _0x29b688=_0x1573e0;-0x1===_0x48dfad?this[_0x29b688(0x1c8)][_0x29b688(0x1a5)]():this[_0x29b688(0x1c8)][_0x29b688(0x1af)]();}[_0x1573e0(0x19e)](){const _0x578619=_0x1573e0;this[_0x578619(0x1d3)]=!0x0;}[_0x1573e0(0x1a6)](){const _0x3c069c=_0x1573e0;this[_0x3c069c(0x1d3)]=!0x1;}[_0x1573e0(0x1ad)](_0x4fd17b){const _0x1711d3=_0x1573e0;this[_0x1711d3(0x199)]||(this[_0x1711d3(0x199)]=this[_0x1711d3(0x1a1)](),this[_0x1711d3(0x1bf)][_0x1711d3(0x1b8)]([this[_0x1711d3(0x199)]],0x0)),this[_0x1711d3(0x1cb)]=_0x4fd17b,this[_0x1711d3(0x1b3)]=!0x0;}[_0x1573e0(0x1be)](){const _0x1c0af3=_0x1573e0;this[_0x1c0af3(0x1b3)]=!0x1;}[_0x1573e0(0x1e5)](_0x3a55da){const _0x4e1135=_0x1573e0;this[_0x4e1135(0x1ad)](_0x3a55da);}[_0x1573e0(0x19c)](_0xedcf7){const _0x3f0a84=_0x1573e0;this[_0x3f0a84(0x1ad)](_0xedcf7),this[_0x3f0a84(0x1e0)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)][_0x3f0a84(0x192)]=!0x1),this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)][_0x3f0a84(0x192)]=!0x1));}[_0x1573e0(0x1c0)](_0x20e3c9){const _0x37756e=_0x1573e0,_0xa9da45=this[_0x37756e(0x1db)](),_0x275182=this[_0x37756e(0x1b5)]();_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0xa9da45,0x2),_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0x275182,0x0),this[_0x37756e(0x19f)][_0x37756e(0x1b8)]([_0xa9da45,_0x275182]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0xa9da45[_0x37756e(0x1aa)]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0x275182[_0x37756e(0x1aa)]);}[_0x1573e0(0x1bd)](_0x23037b){const _0x25cbe7=_0x1573e0;this[_0x25cbe7(0x18c)]=_0x23037b,this[_0x25cbe7(0x1bf)][_0x25cbe7(0x196)](this[_0x25cbe7(0x18c)]);}[_0x1573e0(0x1b2)](_0x516742){const _0xda9279=_0x1573e0,_0x35e0eb=this[_0xda9279(0x1bf)][_0xda9279(0x1b9)](this[_0xda9279(0x18c)]);this[_0xda9279(0x1bf)][_0xda9279(0x18e)](this[_0xda9279(0x18c)]),this[_0xda9279(0x18c)]=_0x516742,this[_0xda9279(0x1bf)][_0xda9279(0x196)](this[_0xda9279(0x18c)],_0x35e0eb),this[_0xda9279(0x1be)](),this[_0xda9279(0x1e4)]&&this[_0xda9279(0x1e4)][_0xda9279(0x1c7)](),this[_0xda9279(0x1a0)]();}[_0x1573e0(0x1d9)](){const _0x3b2e36=_0x1573e0;this[_0x3b2e36(0x1d1)]=new _0x592807(this[_0x3b2e36(0x1de)]),this[_0x3b2e36(0x1bf)][_0x3b2e36(0x196)](this[_0x3b2e36(0x1d1)]);}[_0x1573e0(0x1c4)](_0x1e3525=!0x0,_0x520255=!0x0){const _0x32f3e4=_0x1573e0;_0x1e3525=_0x1e3525&&!this[_0x32f3e4(0x1b0)]&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x198)),_0x520255=_0x520255&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x1a3)),this[_0x32f3e4(0x1e0)]=new _0xb064d3(this[_0x32f3e4(0x1de)],_0x1e3525,_0x520255),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1c6)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x1ab830=_0x32f3e4;this[_0x1ab830(0x1b7)](_0x1ab830(0x198));}),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1e2)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x25bd8e=_0x32f3e4;this[_0x25bd8e(0x1b7)](_0x25bd8e(0x1a3));}),this[_0x32f3e4(0x1bf)][_0x32f3e4(0x196)](this[_0x32f3e4(0x1e0)]);}[_0x1573e0(0x1db)](){const _0x540eef=_0x1573e0,_0xe8a6b5=new _0x12c99f(this[_0x540eef(0x1de)]);return _0xe8a6b5[_0x540eef(0x193)]({'icon':_0xffe363,'tooltip':_0x4eff51(this[_0x540eef(0x1de)],_0x540eef(0x1c3))}),_0xe8a6b5['on'](_0x540eef(0x1da),()=>{const _0x24857b=_0x540eef;this[_0x24857b(0x1b7)](_0x24857b(0x18f));}),_0xe8a6b5;}[_0x1573e0(0x1b5)](){const _0x436ed7=_0x1573e0,_0x362510=new _0x12c99f(this[_0x436ed7(0x1de)]);return _0x362510[_0x436ed7(0x193)]({'icon':_0xdda64d,'tooltip':_0x4eff51(this[_0x436ed7(0x1de)],_0x436ed7(0x1ab))}),_0x362510['on'](_0x436ed7(0x1da),()=>{const _0x3811d0=_0x436ed7;this[_0x3811d0(0x1b7)](_0x3811d0(0x188));}),_0x362510;}[_0x1573e0(0x1a1)](){const _0x3af806=_0x1573e0,_0x38a87a=new _0x26ef86(this[_0x3af806(0x1de)]),_0x1617fd=new _0x26ef86(this[_0x3af806(0x1de)]);return _0x1617fd[_0x3af806(0x1e1)]({'tag':_0x3af806(0x1a7),'attributes':{'class':['ck',_0x3af806(0x189)]},'children':[{'text':this[_0x3af806(0x1d0)]['to'](_0x3af806(0x1cb))}]}),_0x38a87a[_0x3af806(0x1e1)]({'tag':_0x3af806(0x19a),'attributes':{'class':['ck',_0x3af806(0x1b1),_0x3af806(0x190),this[_0x3af806(0x1d0)]['if'](_0x3af806(0x1b3),_0x3af806(0x1d2),_0x3ff930=>!_0x3ff930)]},'children':[_0x1617fd]}),_0x38a87a;}[_0x1573e0(0x1a8)](){const _0x1b8ba1=_0x1573e0;this[_0x1b8ba1(0x1a0)](),this[_0x1b8ba1(0x1e4)]&&this[_0x1b8ba1(0x1e4)][_0x1b8ba1(0x1b4)]();}[_0x1573e0(0x1c1)](){const _0x519bdc=_0x1573e0;this[_0x519bdc(0x1e4)]&&this[_0x519bdc(0x1e4)][_0x519bdc(0x1d7)]();}[_0x1573e0(0x1a0)](){const _0x194b13=_0x1573e0,_0x1faa49=this[_0x194b13(0x1a4)]();_0x1faa49&&!this[_0x194b13(0x1e4)]&&(this[_0x194b13(0x1e4)]=new _0x49e0ea(_0x1faa49));}[_0x1573e0(0x1a4)](){const _0x1f3f6b=_0x1573e0;return this[_0x1f3f6b(0x18c)]instanceof _0xd91d72&&this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]?this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x15b0b2=_0x2ec6;function _0x2b9a(){var _0xc1e8b1=['1390323eZBfQL','36SrISKd','ai.chat.context','startConversation','968yDGRwj','context','config','focusPromptInput','87022EpXdCi','24KexdDF','plugins','647847nsHRzH','66094iTfXjH','sendMessage','addSelectionToChatContext','define','1hTuKlP','ai.chat.models','removeSelectionFromChatContext','isPremiumPlugin','150gLsBdC','isOfficialPlugin','AIChat','804770imeCsC','pluginName','requires','get','4234098EYTIls','5452120lRFuIj'];_0x2b9a=function(){return _0xc1e8b1;};return _0x2b9a();}(function(_0xa837ce,_0x33d9c2){var _0x5d9832=_0x2ec6,_0x3a848e=_0xa837ce();while(!![]){try{var _0x36faee=parseInt(_0x5d9832(0x16b))/0x1*(parseInt(_0x5d9832(0x163))/0x2)+parseInt(_0x5d9832(0x176))/0x3+parseInt(_0x5d9832(0x177))/0x4+parseInt(_0x5d9832(0x172))/0x5*(parseInt(_0x5d9832(0x164))/0x6)+parseInt(_0x5d9832(0x167))/0x7*(-parseInt(_0x5d9832(0x15f))/0x8)+parseInt(_0x5d9832(0x166))/0x9*(-parseInt(_0x5d9832(0x16f))/0xa)+-parseInt(_0x5d9832(0x178))/0xb*(parseInt(_0x5d9832(0x15c))/0xc);if(_0x36faee===_0x33d9c2)break;else _0x3a848e['push'](_0x3a848e['shift']());}catch(_0x264960){_0x3a848e['push'](_0x3a848e['shift']());}}}(_0x2b9a,0xd209d));import{ContextPlugin as _0x6ef463}from'ckeditor5/src/core.js';import{AIChatController as _0x22a124}from'./aichatcontroller.js';function _0x2ec6(_0x3caef9,_0x41b7dc){var _0x2b9a85=_0x2b9a();return _0x2ec6=function(_0x2ec656,_0xa97196){_0x2ec656=_0x2ec656-0x15c;var _0x364694=_0x2b9a85[_0x2ec656];return _0x364694;},_0x2ec6(_0x3caef9,_0x41b7dc);}import{AIEditing as _0xce254a}from'../aicore/aiediting.js';import{AIChatUI as _0x284c35}from'./aichatui.js';import{AIChatHistory as _0x190dc8}from'../aichathistory/aichathistory.js';export class AIChat extends _0x6ef463{static get[_0x15b0b2(0x174)](){return[_0x22a124,_0xce254a,_0x284c35,_0x190dc8];}static get[_0x15b0b2(0x173)](){var _0x294802=_0x15b0b2;return _0x294802(0x171);}static get[_0x15b0b2(0x170)](){return!0x0;}static get[_0x15b0b2(0x16e)](){return!0x0;}constructor(_0x16dbda){var _0x4afbe4=_0x15b0b2;super(_0x16dbda),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x15d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x4afbe4(0x160)][_0x4afbe4(0x161)][_0x4afbe4(0x16a)](_0x4afbe4(0x16c),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x15b0b2(0x169)](){var _0x43ed1d=_0x15b0b2;await this[_0x43ed1d(0x160)][_0x43ed1d(0x165)][_0x43ed1d(0x175)](_0x22a124)[_0x43ed1d(0x169)]();}async[_0x15b0b2(0x15e)](){var _0x450d02=_0x15b0b2;await this[_0x450d02(0x160)][_0x450d02(0x165)][_0x450d02(0x175)](_0x22a124)[_0x450d02(0x15e)]();}async[_0x15b0b2(0x168)]({message:_0x5e8498,quickActionData:_0x49f17d}){var _0x536fdb=_0x15b0b2;await this[_0x536fdb(0x160)][_0x536fdb(0x165)][_0x536fdb(0x175)](_0x22a124)[_0x536fdb(0x168)]({'message':_0x5e8498,'quickActionData':_0x49f17d});}[_0x15b0b2(0x16d)](){var _0x2c5937=_0x15b0b2;this[_0x2c5937(0x160)][_0x2c5937(0x165)][_0x2c5937(0x175)](_0x22a124)[_0x2c5937(0x16d)]();}[_0x15b0b2(0x162)](){var _0x212c85=_0x15b0b2;this[_0x212c85(0x160)][_0x212c85(0x165)][_0x212c85(0x175)](_0x22a124)[_0x212c85(0x162)]();}}
23
+ var _0x58b1a6=_0x1e2f;function _0x24b0(){var _0x5e8eb7=['AIChat','focusPromptInput','8264wEmaFi','91LOsWTn','ai.chat.context','get','isPremiumPlugin','removeSelectionFromChatContext','696ScpSAg','15126914KyZMuc','startConversation','9015htaPMd','318YKUOTY','ai.chat.models','8334684eNRlWX','2140BQHIko','requires','addSelectionToChatContext','1266euuFai','10nVLeQR','9459MEUNzF','context','plugins','sendMessage','isOfficialPlugin','187859wANmuw','196901okjvpw','config','define','pluginName'];_0x24b0=function(){return _0x5e8eb7;};return _0x24b0();}(function(_0x821c26,_0x52930d){var _0x1692e8=_0x1e2f,_0x2500ee=_0x821c26();while(!![]){try{var _0x62d359=-parseInt(_0x1692e8(0x11b))/0x1+-parseInt(_0x1692e8(0x113))/0x2*(parseInt(_0x1692e8(0x10c))/0x3)+-parseInt(_0x1692e8(0x109))/0x4*(parseInt(_0x1692e8(0x110))/0x5)+-parseInt(_0x1692e8(0x10d))/0x6*(parseInt(_0x1692e8(0x11a))/0x7)+parseInt(_0x1692e8(0x103))/0x8*(parseInt(_0x1692e8(0x115))/0x9)+parseInt(_0x1692e8(0x114))/0xa*(-parseInt(_0x1692e8(0x10a))/0xb)+parseInt(_0x1692e8(0x10f))/0xc*(parseInt(_0x1692e8(0x104))/0xd);if(_0x62d359===_0x52930d)break;else _0x2500ee['push'](_0x2500ee['shift']());}catch(_0x372152){_0x2500ee['push'](_0x2500ee['shift']());}}}(_0x24b0,0xee67d));import{ContextPlugin as _0x3a5c8b}from'ckeditor5/src/core.js';import{AIChatController as _0x50928a}from'./aichatcontroller.js';function _0x1e2f(_0x2c31ba,_0x179270){var _0x24b028=_0x24b0();return _0x1e2f=function(_0x1e2f51,_0x28dbc4){_0x1e2f51=_0x1e2f51-0xfe;var _0x3e9254=_0x24b028[_0x1e2f51];return _0x3e9254;},_0x1e2f(_0x2c31ba,_0x179270);}import{AIEditing as _0x5cf4d8}from'../aicore/aiediting.js';import{AIChatUI as _0x370704}from'./aichatui.js';import{AIChatHistory as _0x3f40f5}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3a5c8b{static get[_0x58b1a6(0x111)](){return[_0x50928a,_0x5cf4d8,_0x370704,_0x3f40f5];}static get[_0x58b1a6(0x100)](){var _0x578108=_0x58b1a6;return _0x578108(0x101);}static get[_0x58b1a6(0x119)](){return!0x0;}static get[_0x58b1a6(0x107)](){return!0x0;}constructor(_0x1b8b66){var _0x2e8242=_0x58b1a6;super(_0x1b8b66),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x105),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x10e),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x58b1a6(0x112)](){var _0x4bf8e3=_0x58b1a6;await this[_0x4bf8e3(0x116)][_0x4bf8e3(0x117)][_0x4bf8e3(0x106)](_0x50928a)[_0x4bf8e3(0x112)]();}async[_0x58b1a6(0x10b)](){var _0x2a2ea1=_0x58b1a6;await this[_0x2a2ea1(0x116)][_0x2a2ea1(0x117)][_0x2a2ea1(0x106)](_0x50928a)[_0x2a2ea1(0x10b)]();}async[_0x58b1a6(0x118)]({message:_0x214f60,quickActionData:_0x12a9ab}){var _0x2b7b64=_0x58b1a6;await this[_0x2b7b64(0x116)][_0x2b7b64(0x117)][_0x2b7b64(0x106)](_0x50928a)[_0x2b7b64(0x118)]({'message':_0x214f60,'quickActionData':_0x12a9ab});}[_0x58b1a6(0x108)](){var _0x15ef69=_0x58b1a6;this[_0x15ef69(0x116)][_0x15ef69(0x117)][_0x15ef69(0x106)](_0x50928a)[_0x15ef69(0x108)]();}[_0x58b1a6(0x102)](){var _0x4a7af2=_0x58b1a6;this[_0x4a7af2(0x116)][_0x4a7af2(0x117)][_0x4a7af2(0x106)](_0x50928a)[_0x4a7af2(0x102)]();}}