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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ad4d7=_0x33a8;(function(_0x34cb47,_0x3fbf16){const _0x490186=_0x33a8,_0x389ce9=_0x34cb47();while(!![]){try{const _0x4b5be0=-parseInt(_0x490186(0x1de))/0x1+parseInt(_0x490186(0x1ef))/0x2*(-parseInt(_0x490186(0x1d7))/0x3)+parseInt(_0x490186(0x1b3))/0x4*(parseInt(_0x490186(0x1e1))/0x5)+parseInt(_0x490186(0x1d6))/0x6*(parseInt(_0x490186(0x1e0))/0x7)+parseInt(_0x490186(0x1ab))/0x8+-parseInt(_0x490186(0x1f4))/0x9+-parseInt(_0x490186(0x19d))/0xa*(parseInt(_0x490186(0x1e2))/0xb);if(_0x4b5be0===_0x3fbf16)break;else _0x389ce9['push'](_0x389ce9['shift']());}catch(_0x15ae70){_0x389ce9['push'](_0x389ce9['shift']());}}}(_0x1221,0x76872));function _0x1221(){const _0x37e7a0=['_stripMarkdownSyntax','reverse','domConverter','custom','substring','markers','querySelector','handleError','serializeToString','ELEMENT_NODE','listenTo','remove','7142328SpequB','toView','previousLabel','then','destroy','updateView','editing','toModel','220VfRiHc','currentResponse','prompt','reset','tryAgainEvent','once','finally','_parseAndNormalizeContent','set:currentContext','textAdapter','stringify','rename','from','currentContext','stopProcessing','length','finishProcessing','_sanitizeHTML','createElement','value','startProcessing','initialContext','mainAction','endsWith','startsWith','```','<h1></h1>','childNodes','previousContext','innerHTML','_sanitizationContainer','previousQuery','get','viewToDom','ai.assistant.preserveComments','495462DcOCWK','15UFesYV','parseFromString','body','data','makeRequest','catch','processor','25948JECIEF','_handleQuery','7nhgggC','78040RUVwQL','11BpxwkF','view','_xmlSerializer','isProcessing','submitPrompt','isRendered','render','setContentOf','element','set','```html','_isH1TagSupportEnabled','_normalizeResponseHeadings','212486cSgTkx','div','clear','exec','match','1263078FftjXo','trim','editor','htmlProcessor','message','previousActionId','name','nodeType','config','text/html','push','_domParser','stopListening','document','6508130YOIYiq','abort'];_0x1221=function(){return _0x37e7a0;};return _0x1221();}import{ObservableMixin as _0x12e020}from'ckeditor5/src/utils.js';import{AIRequestError as _0x573894}from'../adapters/aiadapter.js';import{Matcher as _0x4b95fd,ViewUpcastWriter as _0x163c41}from'ckeditor5/src/engine.js';function _0x33a8(_0x31ca62,_0x398aa4){const _0x122192=_0x1221();return _0x33a8=function(_0x33a83c,_0x1371e7){_0x33a83c=_0x33a83c-0x195;let _0x452f34=_0x122192[_0x33a83c];return _0x452f34;},_0x33a8(_0x31ca62,_0x398aa4);}const ns=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x12e020(){[_0x2ad4d7(0x1f6)];[_0x2ad4d7(0x1bc)];[_0x2ad4d7(0x1e3)];[_0x2ad4d7(0x1d1)];[_0x2ad4d7(0x19a)];[_0x2ad4d7(0x1e4)];constructor(_0x5045e7,_0x55bfaf,_0x28fe4b){const _0x1c5068=_0x2ad4d7;super(),this[_0x1c5068(0x1f6)]=_0x5045e7,this[_0x1c5068(0x1bc)]=_0x55bfaf,this[_0x1c5068(0x1d1)]=document[_0x1c5068(0x1c5)](_0x1c5068(0x1f0)),this[_0x1c5068(0x19a)]=new DOMParser(),this[_0x1c5068(0x1e4)]=new XMLSerializer(),this[_0x1c5068(0x1e3)]=_0x28fe4b,this[_0x1c5068(0x1eb)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x1c5068(0x1bb),(_0x1971f7,_0x5ca814,_0x5986fb)=>{const _0x12e7d9=_0x1c5068;this[_0x12e7d9(0x1e3)][_0x12e7d9(0x1c6)]=this[_0x12e7d9(0x1c4)](_0x5986fb);}),this[_0x1c5068(0x1a9)](this[_0x1c5068(0x1e3)],_0x1c5068(0x1e6),(_0x1e8ef8,_0x45bd4e)=>{const _0x35eeae=_0x1c5068,_0x3cd8f7=this[_0x35eeae(0x1c0)]||this[_0x35eeae(0x1c8)];this[_0x35eeae(0x1df)](_0x45bd4e,_0x3cd8f7,_0x35eeae(0x1a2));}),this[_0x1c5068(0x1a9)](this[_0x1c5068(0x1e3)],_0x1c5068(0x1b7),()=>{const _0x317aec=_0x1c5068;this[_0x317aec(0x1e3)][_0x317aec(0x1b5)]=this[_0x317aec(0x1ad)],this[_0x317aec(0x1df)](this[_0x317aec(0x1d2)],this[_0x317aec(0x1cf)],this[_0x317aec(0x1f9)],this[_0x317aec(0x1ad)]);}),this[_0x1c5068(0x1a9)](this[_0x1c5068(0x1e3)],_0x1c5068(0x1c1),()=>{const _0x2d9995=_0x1c5068;this[_0x2d9995(0x1c1)]();});}[_0x2ad4d7(0x1af)](){const _0x11e6d4=_0x2ad4d7;this[_0x11e6d4(0x19b)]();}async[_0x2ad4d7(0x1b0)]({actionId:_0x463c94,query:_0x28068e,htmlContent:_0x3f753b,label:_0x186925,mainActionLabel:_0x19166f}){const _0xe1ab8c=_0x2ad4d7;this[_0xe1ab8c(0x1e3)][_0xe1ab8c(0x1b5)]=_0x186925,this[_0xe1ab8c(0x1e3)][_0xe1ab8c(0x1c9)]=_0x19166f,this[_0xe1ab8c(0x1c8)]=_0x3f753b,_0x28068e&&(this[_0xe1ab8c(0x1e3)][_0xe1ab8c(0x1e7)]?this[_0xe1ab8c(0x1df)](_0x28068e,_0x3f753b,_0x463c94,_0x186925):this[_0xe1ab8c(0x1e3)][_0xe1ab8c(0x1b8)](_0xe1ab8c(0x1e8),()=>{const _0x39dad4=_0xe1ab8c;this[_0x39dad4(0x1df)](_0x28068e,_0x3f753b,_0x463c94,_0x186925);}));}[_0x2ad4d7(0x1c1)](){const _0x24dbc1=_0x2ad4d7;this[_0x24dbc1(0x1e5)]&&(this[_0x24dbc1(0x1e5)]=!0x1,this[_0x24dbc1(0x1e3)][_0x24dbc1(0x1c3)](),this[_0x24dbc1(0x1bc)][_0x24dbc1(0x19e)]());}[_0x2ad4d7(0x1b6)](){const _0x1ea565=_0x2ad4d7;this[_0x1ea565(0x1c8)]='',this[_0x1ea565(0x1c0)]='',this[_0x1ea565(0x1b4)]='',this[_0x1ea565(0x1cf)]='',this[_0x1ea565(0x1d2)]='',this[_0x1ea565(0x1ad)]='',this[_0x1ea565(0x1f9)]=void 0x0,this[_0x1ea565(0x1e3)][_0x1ea565(0x1b6)](),this[_0x1ea565(0x1c1)]();}async[_0x2ad4d7(0x1df)](_0xd0ed24,_0x55ec94,_0x28b856,_0x54a7e2){const _0x68bca3=_0x2ad4d7;return this[_0x68bca3(0x1e5)]=!0x0,this[_0x68bca3(0x1e3)][_0x68bca3(0x1c7)](),this[_0x68bca3(0x1cf)]=_0x55ec94,this[_0x68bca3(0x1d2)]=_0xd0ed24,this[_0x68bca3(0x1ad)]=_0x54a7e2||_0xd0ed24,this[_0x68bca3(0x1f9)]=_0x28b856,new Promise(_0x10ec37=>{const _0x503c0f=_0x68bca3;this[_0x503c0f(0x1bc)][_0x503c0f(0x1db)]({'query':_0xd0ed24,'context':_0x55ec94,'onData':_0x2ac664=>{const _0x3d75c4=_0x503c0f;this[_0x3d75c4(0x1b4)]=_0x2ac664,this[_0x3d75c4(0x1c0)]=this[_0x3d75c4(0x1ba)](this[_0x3d75c4(0x1b4)]);},'actionId':_0x28b856})[_0x503c0f(0x1ae)](()=>{const _0x52ed07=_0x503c0f;!this[_0x52ed07(0x1c0)]&&this[_0x52ed07(0x1b4)]&&(this[_0x52ed07(0x1c0)]=this[_0x52ed07(0x1ba)](this[_0x52ed07(0x1b4)],!0x0));})[_0x503c0f(0x1dc)](_0x5007fe=>{const _0x28939a=_0x503c0f;_0x5007fe instanceof _0x573894?this[_0x28939a(0x1e3)][_0x28939a(0x1a6)](_0x5007fe[_0x28939a(0x1f8)]):this[_0x28939a(0x1e3)][_0x28939a(0x1a6)](),_0x10ec37();})[_0x503c0f(0x1b9)](()=>{const _0x5c2be0=_0x503c0f;this[_0x5c2be0(0x1c1)](),_0x10ec37();});});}[_0x2ad4d7(0x1ba)](_0x40d440,_0x31a41b=!0x1){const _0x47695f=_0x2ad4d7,_0x53ad43=ns[_0x47695f(0x1f2)](_0x40d440);_0x40d440=_0x53ad43?_0x40d440[_0x47695f(0x1a3)](_0x53ad43[0x1][_0x47695f(0x1c2)]):_0x40d440[_0x47695f(0x1c2)]<0x64&&!_0x31a41b?'':this[_0x47695f(0x19f)](_0x40d440);const _0x2d4bfc=this[_0x47695f(0x19a)][_0x47695f(0x1d8)](_0x40d440,_0x47695f(0x198));if(_0x53ad43){const _0x37ce0e=Array[_0x47695f(0x1bf)](_0x2d4bfc[_0x47695f(0x1d9)][_0x47695f(0x1ce)]);_0x37ce0e[_0x47695f(0x1a0)]();for(const _0x205f35 of _0x37ce0e){if(_0x205f35[_0x47695f(0x196)]==Node[_0x47695f(0x1a8)])break;_0x205f35[_0x47695f(0x1aa)]();}}const _0x4be861=this[_0x47695f(0x1f6)][_0x47695f(0x1da)][_0x47695f(0x1dd)][_0x47695f(0x1ac)](this[_0x47695f(0x1e4)][_0x47695f(0x1a7)](_0x2d4bfc[_0x47695f(0x1d9)]));this[_0x47695f(0x1ed)]()||this[_0x47695f(0x1ee)](_0x4be861);const _0xf42de2=this[_0x47695f(0x1f6)][_0x47695f(0x197)][_0x47695f(0x1d3)](_0x47695f(0x1d5)),_0x4f8cd3=this[_0x47695f(0x1f6)][_0x47695f(0x1da)][_0x47695f(0x1b2)](_0x4be861);return _0xf42de2||_0x4f8cd3[_0x47695f(0x1a4)][_0x47695f(0x1f1)](),this[_0x47695f(0x1f6)][_0x47695f(0x1da)][_0x47695f(0x1bd)](_0x4f8cd3);}[_0x2ad4d7(0x1ee)](_0x2b711d){const _0x2cf97b=_0x2ad4d7,_0x4085cc=new _0x163c41(this[_0x2cf97b(0x1f6)][_0x2cf97b(0x1b1)][_0x2cf97b(0x1e3)][_0x2cf97b(0x19c)]),_0x18ce03=new _0x4b95fd({'name':/^h[1-5]$/}),_0x496271=[];let _0x525d21=!0x1;for(const _0x43ce63 of _0x2b711d)_0x43ce63['is'](_0x2cf97b(0x1ea))&&_0x18ce03[_0x2cf97b(0x1f3)](_0x43ce63)&&(_0x496271[_0x2cf97b(0x199)](_0x43ce63),'h1'==_0x43ce63[_0x2cf97b(0x195)]&&(_0x525d21=!0x0));if(_0x525d21){for(const _0x4c4900 of _0x496271)_0x4085cc[_0x2cf97b(0x1be)]('h'+(parseInt(_0x4c4900[_0x2cf97b(0x195)][0x1])+0x1),_0x4c4900);}}[_0x2ad4d7(0x1ed)](){const _0x1ff333=_0x2ad4d7,{data:_0x7f8be6,editing:_0x5637d9}=this[_0x1ff333(0x1f6)],_0xa9030e=_0x7f8be6[_0x1ff333(0x1f7)][_0x1ff333(0x1ac)](_0x1ff333(0x1cd)),_0x133d1f=_0x7f8be6[_0x1ff333(0x1ac)](_0x7f8be6[_0x1ff333(0x1b2)](_0xa9030e));return!!_0x5637d9[_0x1ff333(0x1e3)][_0x1ff333(0x1a1)][_0x1ff333(0x1d4)](_0x133d1f)[_0x1ff333(0x1a5)]('h1');}[_0x2ad4d7(0x1c4)](_0x1856cd){const _0x2fb48c=_0x2ad4d7;return this[_0x2fb48c(0x1f6)][_0x2fb48c(0x1b1)][_0x2fb48c(0x1e3)][_0x2fb48c(0x1a1)][_0x2fb48c(0x1e9)](this[_0x2fb48c(0x1d1)],_0x1856cd),this[_0x2fb48c(0x1d1)][_0x2fb48c(0x1d0)];}[_0x2ad4d7(0x19f)](_0xae48dc){const _0x5d0fc8=_0x2ad4d7,_0x3bd748=_0xae48dc[_0x5d0fc8(0x1f5)]();return _0x3bd748[_0x5d0fc8(0x1cb)](_0x5d0fc8(0x1ec))?_0x3bd748[_0x5d0fc8(0x1ca)](_0x5d0fc8(0x1cc))?_0x3bd748[_0x5d0fc8(0x1a3)](0x7,_0x3bd748[_0x5d0fc8(0x1c2)]-0x3):_0x3bd748[_0x5d0fc8(0x1a3)](0x7):_0xae48dc;}}
23
+ const _0x174339=_0x19fa;(function(_0x2240be,_0x5ed022){const _0x1f0f4b=_0x19fa,_0x46f158=_0x2240be();while(!![]){try{const _0x5013b3=-parseInt(_0x1f0f4b(0xd9))/0x1*(-parseInt(_0x1f0f4b(0xdb))/0x2)+parseInt(_0x1f0f4b(0xb5))/0x3+parseInt(_0x1f0f4b(0xf5))/0x4*(parseInt(_0x1f0f4b(0x107))/0x5)+parseInt(_0x1f0f4b(0xfc))/0x6+-parseInt(_0x1f0f4b(0x101))/0x7*(parseInt(_0x1f0f4b(0xb3))/0x8)+-parseInt(_0x1f0f4b(0xab))/0x9+parseInt(_0x1f0f4b(0xf1))/0xa*(-parseInt(_0x1f0f4b(0xfa))/0xb);if(_0x5013b3===_0x5ed022)break;else _0x46f158['push'](_0x46f158['shift']());}catch(_0x41b964){_0x46f158['push'](_0x46f158['shift']());}}}(_0x9b41,0xdaaf5));function _0x19fa(_0x4eb3fe,_0x2ba8ec){const _0x9b41e6=_0x9b41();return _0x19fa=function(_0x19faba,_0x35b370){_0x19faba=_0x19faba-0xab;let _0x4fe850=_0x9b41e6[_0x19faba];return _0x4fe850;},_0x19fa(_0x4eb3fe,_0x2ba8ec);}function _0x9b41(){const _0x354114=['8413014yjMQSq','data','tryAgainEvent','processor','updateView','3904411mxHGIq','catch','substring','toModel','stopProcessing','previousActionId','231210DekGMd','startProcessing','currentResponse','textAdapter','stringify','parseFromString','<h1></h1>','submitPrompt','set:currentContext','12828636wtqoca','markers','set','finishProcessing','destroy','previousQuery','viewToDom','mainAction','16mhFkCd','match','3949647NIjxjR','ai.assistant.preserveComments','```','stopListening','isRendered','value','listenTo','_isH1TagSupportEnabled','domConverter','endsWith','clear','once','setContentOf','serializeToString','element','then','push','name','_stripMarkdownSyntax','config','_domParser','editing','rename','```html','_xmlSerializer','editor','from','finally','previousContext','prompt','render','currentContext','previousLabel','_sanitizationContainer','initialContext','message','94LkMTrU','get','15710XWfNvY','reset','startsWith','createElement','body','ELEMENT_NODE','document','exec','makeRequest','text/html','_parseAndNormalizeContent','_handleQuery','custom','querySelector','isProcessing','_sanitizeHTML','remove','nodeType','innerHTML','abort','div','htmlProcessor','590PsnnCS','view','trim','childNodes','48JlxgVa','handleError','_normalizeResponseHeadings','toView','reverse','107261kHQqVI','length'];_0x9b41=function(){return _0x354114;};return _0x9b41();}import{ObservableMixin as _0x23d53d}from'ckeditor5/src/utils.js';import{AIRequestError as _0x39514b}from'../adapters/aiadapter.js';import{Matcher as _0x513089,ViewUpcastWriter as _0x3eb01a}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x23d53d(){[_0x174339(0xce)];[_0x174339(0x10a)];[_0x174339(0xf2)];[_0x174339(0xd6)];[_0x174339(0xc9)];[_0x174339(0xcd)];constructor(_0x326ebe,_0x16cfcd,_0x165f3c){const _0x605eb5=_0x174339;super(),this[_0x605eb5(0xce)]=_0x326ebe,this[_0x605eb5(0x10a)]=_0x16cfcd,this[_0x605eb5(0xd6)]=document[_0x605eb5(0xde)](_0x605eb5(0xef)),this[_0x605eb5(0xc9)]=new DOMParser(),this[_0x605eb5(0xcd)]=new XMLSerializer(),this[_0x605eb5(0xf2)]=_0x165f3c,this[_0x605eb5(0xad)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x605eb5(0x10f),(_0x299a09,_0x5df636,_0x363d7f)=>{const _0x27cc9f=_0x605eb5;this[_0x27cc9f(0xf2)][_0x27cc9f(0xba)]=this[_0x27cc9f(0xea)](_0x363d7f);}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0x10e),(_0x4399f8,_0x39b4a2)=>{const _0x505e28=_0x605eb5,_0x4c7ad8=this[_0x505e28(0xd4)]||this[_0x505e28(0xd7)];this[_0x505e28(0xe6)](_0x39b4a2,_0x4c7ad8,_0x505e28(0xe7));}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0xfe),()=>{const _0x1e76dd=_0x605eb5;this[_0x1e76dd(0xf2)][_0x1e76dd(0xd2)]=this[_0x1e76dd(0xd5)],this[_0x1e76dd(0xe6)](this[_0x1e76dd(0xb0)],this[_0x1e76dd(0xd1)],this[_0x1e76dd(0x106)],this[_0x1e76dd(0xd5)]);}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0x105),()=>{const _0x110a2a=_0x605eb5;this[_0x110a2a(0x105)]();});}[_0x174339(0xaf)](){const _0x1d6a86=_0x174339;this[_0x1d6a86(0xb8)]();}async[_0x174339(0x100)]({actionId:_0x5207f6,query:_0x2da57f,htmlContent:_0x1cd824,label:_0x2c5442,mainActionLabel:_0x28d0de}){const _0x560644=_0x174339;this[_0x560644(0xf2)][_0x560644(0xd2)]=_0x2c5442,this[_0x560644(0xf2)][_0x560644(0xb2)]=_0x28d0de,this[_0x560644(0xd7)]=_0x1cd824,_0x2da57f&&(this[_0x560644(0xf2)][_0x560644(0xb9)]?this[_0x560644(0xe6)](_0x2da57f,_0x1cd824,_0x5207f6,_0x2c5442):this[_0x560644(0xf2)][_0x560644(0xc0)](_0x560644(0xd3),()=>{const _0x250d01=_0x560644;this[_0x250d01(0xe6)](_0x2da57f,_0x1cd824,_0x5207f6,_0x2c5442);}));}[_0x174339(0x105)](){const _0x70e70f=_0x174339;this[_0x70e70f(0xe9)]&&(this[_0x70e70f(0xe9)]=!0x1,this[_0x70e70f(0xf2)][_0x70e70f(0xae)](),this[_0x70e70f(0x10a)][_0x70e70f(0xee)]());}[_0x174339(0xdc)](){const _0x1b27a6=_0x174339;this[_0x1b27a6(0xd7)]='',this[_0x1b27a6(0xd4)]='',this[_0x1b27a6(0x109)]='',this[_0x1b27a6(0xd1)]='',this[_0x1b27a6(0xb0)]='',this[_0x1b27a6(0xd5)]='',this[_0x1b27a6(0x106)]=void 0x0,this[_0x1b27a6(0xf2)][_0x1b27a6(0xdc)](),this[_0x1b27a6(0x105)]();}async[_0x174339(0xe6)](_0x4e5525,_0x112909,_0x1939e2,_0x414928){const _0x370325=_0x174339;return this[_0x370325(0xe9)]=!0x0,this[_0x370325(0xf2)][_0x370325(0x108)](),this[_0x370325(0xd1)]=_0x112909,this[_0x370325(0xb0)]=_0x4e5525,this[_0x370325(0xd5)]=_0x414928||_0x4e5525,this[_0x370325(0x106)]=_0x1939e2,new Promise(_0x273955=>{const _0x38e392=_0x370325;this[_0x38e392(0x10a)][_0x38e392(0xe3)]({'query':_0x4e5525,'context':_0x112909,'onData':_0x4ba803=>{const _0x1b8404=_0x38e392;this[_0x1b8404(0x109)]=_0x4ba803,this[_0x1b8404(0xd4)]=this[_0x1b8404(0xe5)](this[_0x1b8404(0x109)]);},'actionId':_0x1939e2})[_0x38e392(0xc4)](()=>{const _0x53918c=_0x38e392;!this[_0x53918c(0xd4)]&&this[_0x53918c(0x109)]&&(this[_0x53918c(0xd4)]=this[_0x53918c(0xe5)](this[_0x53918c(0x109)],!0x0));})[_0x38e392(0x102)](_0x32c05a=>{const _0x4b2282=_0x38e392;_0x32c05a instanceof _0x39514b?this[_0x4b2282(0xf2)][_0x4b2282(0xf6)](_0x32c05a[_0x4b2282(0xd8)]):this[_0x4b2282(0xf2)][_0x4b2282(0xf6)](),_0x273955();})[_0x38e392(0xd0)](()=>{const _0xd8eb6e=_0x38e392;this[_0xd8eb6e(0x105)](),_0x273955();});});}[_0x174339(0xe5)](_0x48f383,_0x51643f=!0x1){const _0x2632a5=_0x174339,_0x4dc19b=hs[_0x2632a5(0xe2)](_0x48f383);_0x48f383=_0x4dc19b?_0x48f383[_0x2632a5(0x103)](_0x4dc19b[0x1][_0x2632a5(0xfb)]):_0x48f383[_0x2632a5(0xfb)]<0x64&&!_0x51643f?'':this[_0x2632a5(0xc7)](_0x48f383);const _0x305d7e=this[_0x2632a5(0xc9)][_0x2632a5(0x10c)](_0x48f383,_0x2632a5(0xe4));if(_0x4dc19b){const _0x20f8fc=Array[_0x2632a5(0xcf)](_0x305d7e[_0x2632a5(0xdf)][_0x2632a5(0xf4)]);_0x20f8fc[_0x2632a5(0xf9)]();for(const _0x2210c0 of _0x20f8fc){if(_0x2210c0[_0x2632a5(0xec)]==Node[_0x2632a5(0xe0)])break;_0x2210c0[_0x2632a5(0xeb)]();}}const _0x287fa6=this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0xff)][_0x2632a5(0xf8)](this[_0x2632a5(0xcd)][_0x2632a5(0xc2)](_0x305d7e[_0x2632a5(0xdf)]));this[_0x2632a5(0xbc)]()||this[_0x2632a5(0xf7)](_0x287fa6);const _0x5da465=this[_0x2632a5(0xce)][_0x2632a5(0xc8)][_0x2632a5(0xda)](_0x2632a5(0xb6)),_0x3657f2=this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0x104)](_0x287fa6);return _0x5da465||_0x3657f2[_0x2632a5(0xac)][_0x2632a5(0xbf)](),this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0x10b)](_0x3657f2);}[_0x174339(0xf7)](_0xc91d9f){const _0x3c409e=_0x174339,_0x8c31fc=new _0x3eb01a(this[_0x3c409e(0xce)][_0x3c409e(0xca)][_0x3c409e(0xf2)][_0x3c409e(0xe1)]),_0x433c44=new _0x513089({'name':/^h[1-5]$/}),_0x328223=[];let _0x8577e5=!0x1;for(const _0x24b0da of _0xc91d9f)_0x24b0da['is'](_0x3c409e(0xc3))&&_0x433c44[_0x3c409e(0xb4)](_0x24b0da)&&(_0x328223[_0x3c409e(0xc5)](_0x24b0da),'h1'==_0x24b0da[_0x3c409e(0xc6)]&&(_0x8577e5=!0x0));if(_0x8577e5){for(const _0x2e924c of _0x328223)_0x8c31fc[_0x3c409e(0xcb)]('h'+(parseInt(_0x2e924c[_0x3c409e(0xc6)][0x1])+0x1),_0x2e924c);}}[_0x174339(0xbc)](){const _0x232abb=_0x174339,{data:_0x33615d,editing:_0x152702}=this[_0x232abb(0xce)],_0x5cc45a=_0x33615d[_0x232abb(0xf0)][_0x232abb(0xf8)](_0x232abb(0x10d)),_0x7e9641=_0x33615d[_0x232abb(0xf8)](_0x33615d[_0x232abb(0x104)](_0x5cc45a));return!!_0x152702[_0x232abb(0xf2)][_0x232abb(0xbd)][_0x232abb(0xb1)](_0x7e9641)[_0x232abb(0xe8)]('h1');}[_0x174339(0xea)](_0x3344ab){const _0x40b6da=_0x174339;return this[_0x40b6da(0xce)][_0x40b6da(0xca)][_0x40b6da(0xf2)][_0x40b6da(0xbd)][_0x40b6da(0xc1)](this[_0x40b6da(0xd6)],_0x3344ab),this[_0x40b6da(0xd6)][_0x40b6da(0xed)];}[_0x174339(0xc7)](_0x544abf){const _0xa3e002=_0x174339,_0x32f75d=_0x544abf[_0xa3e002(0xf3)]();return _0x32f75d[_0xa3e002(0xdd)](_0xa3e002(0xcc))?_0x32f75d[_0xa3e002(0xbe)](_0xa3e002(0xb7))?_0x32f75d[_0xa3e002(0x103)](0x7,_0x32f75d[_0xa3e002(0xfb)]-0x3):_0x32f75d[_0xa3e002(0x103)](0x7):_0x544abf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6329=_0x3517;(function(_0xe9f8b7,_0x28745a){const _0x33a071=_0x3517,_0x3094f5=_0xe9f8b7();while(!![]){try{const _0x934008=parseInt(_0x33a071(0x14b))/0x1+-parseInt(_0x33a071(0x156))/0x2+-parseInt(_0x33a071(0x16c))/0x3+-parseInt(_0x33a071(0x17c))/0x4+-parseInt(_0x33a071(0x16e))/0x5+-parseInt(_0x33a071(0x167))/0x6+parseInt(_0x33a071(0x16d))/0x7;if(_0x934008===_0x28745a)break;else _0x3094f5['push'](_0x3094f5['shift']());}catch(_0x412288){_0x3094f5['push'](_0x3094f5['shift']());}}}(_0x27ad,0xbbba7));import{global as _0x191a84}from'ckeditor5/src/utils.js';import{View as _0x20d400,ButtonView as _0xf614cb,SpinnerView as _0x5e3df0}from'ckeditor5/src/ui.js';function _0x3517(_0x1d4807,_0x5ebe93){const _0x27ad7f=_0x27ad();return _0x3517=function(_0x3517ee,_0x46312c){_0x3517ee=_0x3517ee-0x12f;let _0x31e184=_0x27ad7f[_0x3517ee];return _0x31e184;},_0x3517(_0x1d4807,_0x5ebe93);}import{IconCheck as _0x562667,IconCopy as _0x5b5aaa}from'ckeditor5/src/icons.js';import{getTranslation as _0x180045}from'../../utils/common-translations.js';function _0x27ad(){const _0x637bb=['ck-hidden','AI\x20is\x20writing...','copy','isProcessing','smooth','execCommand','ClipboardItem','div','text/plain','element','change:value','ck-ai-form__content-area','querySelector','mousedown','getSelection','locale','position','appendLoader','972417nBEbNp','isVisible','loaderView','copyButtonView','setEndBefore','render','ck-reset_all-excluded','text/html','contentFieldView','removeAllRanges','style','556424Oqmazc','_createCopyButton','remove','lastElementChild','ck-ai-form__copy-button-wrapper','ck-ai-form__copy-button','_copyHTMLToClipboard','clipboard','set','icon','listenTo','<span>]</span>','execute','<span>[</span>','.ck-ai-form__loader','\x20ck-ai-form__copy-button--copied','isEnabled','7418214SLSIjj','class','ck-ai-form__content-field','change:isProcessing','left','3608316qMXJoP','20071485GzihGk','885805rbEDzJ','setStartAfter','_createLoader','wheel','ck-ai-form__loader','addRange','setContent','absolute','focus','scrollTo','createElement','setTemplate','scrollHeight','firstElementChild','705292yoHpmx','Copy','createRange','-9999px','innerHTML','textContent','value','write','appendChild','ck-content','body','bind','bindTemplate','ck-ai-form__content-area--processing','ck-ai-form__content-area-wrapper'];_0x27ad=function(){return _0x637bb;};return _0x27ad();}export class AIFormContentArea extends _0x20d400{[_0x6329(0x153)];[_0x6329(0x14e)];constructor(_0x1c9ba7,_0x20e5a7=''){const _0x2b2175=_0x6329;super(_0x1c9ba7),this[_0x2b2175(0x15e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3192d5=this[_0x2b2175(0x136)];this[_0x2b2175(0x153)]=new ContentFieldView(_0x1c9ba7,_0x20e5a7),this[_0x2b2175(0x14e)]=this[_0x2b2175(0x157)](),this[_0x2b2175(0x179)]({'tag':_0x2b2175(0x140),'attributes':{'class':['ck',_0x2b2175(0x138),_0x3192d5['if'](_0x2b2175(0x14c),_0x2b2175(0x139),_0x4dda19=>!_0x4dda19)],'tabindex':'-1'},'children':[{'tag':_0x2b2175(0x140),'attributes':{'class':['ck',_0x2b2175(0x144),_0x3192d5['if'](_0x2b2175(0x13c),_0x2b2175(0x137))]},'children':[this[_0x2b2175(0x153)],{'tag':_0x2b2175(0x140),'attributes':{'class':['ck',_0x2b2175(0x15a)]},'children':[this[_0x2b2175(0x14e)]]}]}]});}[_0x6329(0x150)](){const _0x35bdd3=_0x6329;super[_0x35bdd3(0x150)](),this[_0x35bdd3(0x130)]&&this[_0x35bdd3(0x153)][_0x35bdd3(0x174)](this[_0x35bdd3(0x130)]);let _0x53b923=!0x1;this['on'](_0x35bdd3(0x143),(_0xcbd2dc,_0x2ea861,_0x5bad72)=>{const _0x5ce1cb=_0x35bdd3,_0x52398d=!this[_0x5ce1cb(0x153)][_0x5ce1cb(0x142)][_0x5ce1cb(0x145)](_0x5ce1cb(0x164));this[_0x5ce1cb(0x153)][_0x5ce1cb(0x174)](_0x5bad72),this[_0x5ce1cb(0x13c)]&&_0x52398d&&!_0x53b923&&this[_0x5ce1cb(0x142)][_0x5ce1cb(0x177)]({'top':this[_0x5ce1cb(0x142)][_0x5ce1cb(0x17a)],'behavior':_0x5ce1cb(0x13d)});}),this['on'](_0x35bdd3(0x16a),(_0x1e1149,_0x1ff1aa,_0x41e8e9)=>{const _0x5c6473=_0x35bdd3;_0x53b923=!0x1,_0x41e8e9?(this[_0x5c6473(0x130)]=null,this[_0x5c6473(0x153)][_0x5c6473(0x14a)]()):this[_0x5c6473(0x130)]||this[_0x5c6473(0x153)][_0x5c6473(0x174)]('');}),this[_0x35bdd3(0x160)](this[_0x35bdd3(0x142)],_0x35bdd3(0x171),()=>{_0x53b923=!0x0;}),this[_0x35bdd3(0x160)](this[_0x35bdd3(0x142)],_0x35bdd3(0x146),()=>{_0x53b923=!0x0;});}[_0x6329(0x176)](){const _0x5291fe=_0x6329;this[_0x5291fe(0x142)][_0x5291fe(0x176)]();}[_0x6329(0x157)](){const _0x523f0f=_0x6329,_0x4b6e4a=this[_0x523f0f(0x148)],_0x12566d=new _0xf614cb(this[_0x523f0f(0x148)]),_0x3c875d=_0x523f0f(0x15b);return _0x12566d[_0x523f0f(0x15e)]({'label':_0x180045(_0x4b6e4a,_0x523f0f(0x17d)),'icon':_0x5b5aaa,'class':_0x3c875d,'tooltip':!0x0}),_0x12566d[_0x523f0f(0x135)](_0x523f0f(0x14c))['to'](this,_0x523f0f(0x130),_0x4d7dc0=>!!_0x4d7dc0),_0x12566d[_0x523f0f(0x135)](_0x523f0f(0x166))['to'](this,_0x523f0f(0x13c),_0x25d34c=>!_0x25d34c),_0x12566d['on'](_0x523f0f(0x162),()=>{const _0x54313d=_0x523f0f;this[_0x54313d(0x15c)](this[_0x54313d(0x153)][_0x54313d(0x142)]),_0x12566d[_0x54313d(0x15f)]=_0x562667,_0x12566d[_0x54313d(0x168)]=_0x3c875d+_0x54313d(0x165),this[_0x54313d(0x176)](),setTimeout(()=>{const _0x394efe=_0x54313d;_0x12566d[_0x394efe(0x15f)]=_0x5b5aaa,_0x12566d[_0x394efe(0x168)]=_0x3c875d;},0x3e8);}),_0x12566d;}[_0x6329(0x15c)](_0x34a860){const _0x1af9e1=_0x6329,{window:_0x490d6,document:_0x3b61d9}=_0x191a84;if(_0x490d6[_0x1af9e1(0x13f)]){const {Blob:_0x376509,ClipboardItem:_0x44b4f9}=_0x490d6,_0x23ef3e=[new _0x44b4f9({'text/html':new _0x376509([_0x34a860[_0x1af9e1(0x180)]],{'type':_0x1af9e1(0x152)}),'text/plain':new _0x376509([_0x34a860[_0x1af9e1(0x12f)]||''],{'type':_0x1af9e1(0x141)})})];navigator[_0x1af9e1(0x15d)][_0x1af9e1(0x131)](_0x23ef3e);}else{const _0x5e31c4=_0x3b61d9[_0x1af9e1(0x178)](_0x1af9e1(0x140));_0x5e31c4[_0x1af9e1(0x155)][_0x1af9e1(0x149)]=_0x1af9e1(0x175),_0x5e31c4[_0x1af9e1(0x155)][_0x1af9e1(0x16b)]=_0x1af9e1(0x17f),_0x5e31c4[_0x1af9e1(0x180)]=_0x1af9e1(0x163)+_0x34a860[_0x1af9e1(0x180)]+_0x1af9e1(0x161),_0x3b61d9[_0x1af9e1(0x134)][_0x1af9e1(0x132)](_0x5e31c4);const _0x4dc2b5=_0x3b61d9[_0x1af9e1(0x17e)]();_0x4dc2b5[_0x1af9e1(0x16f)](_0x5e31c4[_0x1af9e1(0x17b)]),_0x4dc2b5[_0x1af9e1(0x14f)](_0x5e31c4[_0x1af9e1(0x159)]);const _0x18b0eb=_0x490d6[_0x1af9e1(0x147)]();_0x18b0eb[_0x1af9e1(0x154)](),_0x18b0eb[_0x1af9e1(0x173)](_0x4dc2b5),_0x3b61d9[_0x1af9e1(0x13e)](_0x1af9e1(0x13b)),_0x5e31c4[_0x1af9e1(0x158)]();}}}export class ContentFieldView extends _0x20d400{constructor(_0x33625e,_0x5f19a5=''){const _0x2821e5=_0x6329;super(_0x33625e),this[_0x2821e5(0x14d)]=this[_0x2821e5(0x170)](),this[_0x2821e5(0x179)]({'tag':_0x2821e5(0x140),'attributes':{'class':['ck',_0x2821e5(0x133),_0x5f19a5,_0x2821e5(0x151),_0x2821e5(0x169)]}});}[_0x6329(0x174)](_0x3930d1){const _0x2201a6=_0x6329;this[_0x2201a6(0x142)][_0x2201a6(0x180)]=_0x3930d1;}[_0x6329(0x14a)](){const _0x4695d2=_0x6329;this[_0x4695d2(0x142)][_0x4695d2(0x132)](this[_0x4695d2(0x14d)][_0x4695d2(0x142)]);}[_0x6329(0x170)](){const _0x1e8972=_0x6329,_0x4d334d=new _0x20d400(),_0x5bfb3d=this[_0x1e8972(0x148)],_0x53cb46=new _0x5e3df0();return _0x53cb46[_0x1e8972(0x14c)]=!0x0,_0x4d334d[_0x1e8972(0x179)]({'tag':_0x1e8972(0x140),'attributes':{'class':['ck',_0x1e8972(0x172)]},'children':[_0x53cb46,{'text':_0x180045(_0x5bfb3d,_0x1e8972(0x13a))}]}),_0x4d334d[_0x1e8972(0x150)](),_0x4d334d;}}
23
+ const _0x4e6c39=_0x5e21;(function(_0x5a776c,_0x43cabc){const _0x5c5c37=_0x5e21,_0x2ed2b8=_0x5a776c();while(!![]){try{const _0x2c86cf=-parseInt(_0x5c5c37(0x219))/0x1+parseInt(_0x5c5c37(0x224))/0x2*(-parseInt(_0x5c5c37(0x21e))/0x3)+-parseInt(_0x5c5c37(0x214))/0x4+-parseInt(_0x5c5c37(0x22e))/0x5+parseInt(_0x5c5c37(0x1fe))/0x6+parseInt(_0x5c5c37(0x217))/0x7*(parseInt(_0x5c5c37(0x237))/0x8)+-parseInt(_0x5c5c37(0x223))/0x9*(-parseInt(_0x5c5c37(0x1f2))/0xa);if(_0x2c86cf===_0x43cabc)break;else _0x2ed2b8['push'](_0x2ed2b8['shift']());}catch(_0x39646a){_0x2ed2b8['push'](_0x2ed2b8['shift']());}}}(_0x413b,0xdc59c));import{global as _0xfd288d}from'ckeditor5/src/utils.js';import{View as _0x1283c2,ButtonView as _0x546b5b,SpinnerView as _0x542d7b}from'ckeditor5/src/ui.js';function _0x5e21(_0x5df8e6,_0x270233){const _0x413b48=_0x413b();return _0x5e21=function(_0x5e2128,_0x1d0fb1){_0x5e2128=_0x5e2128-0x1ec;let _0xd1b5b1=_0x413b48[_0x5e2128];return _0xd1b5b1;},_0x5e21(_0x5df8e6,_0x270233);}import{IconCheck as _0x3b4e0c,IconCopy as _0xe6bf91}from'ckeditor5/src/icons.js';import{getTranslation as _0x824fa}from'../../utils/common-translations.js';function _0x413b(){const _0x4620e0=['460ZFbpxu','ck-content','ck-reset_all-excluded','mousedown','text/plain','createElement','-9999px','body','setEndBefore','querySelector','div','isProcessing','4195494lrMJpm','render','lastElementChild','ck-ai-form__content-area-wrapper','ck-ai-form__loader','<span>[</span>','addRange','getSelection','setContent','scrollHeight','ck-ai-form__copy-button','_createCopyButton','focus','execute','textContent','isVisible','change:isProcessing','execCommand','Copy','setStartAfter','icon','AI\x20is\x20writing...','3801504SJnsER','position','contentFieldView','2904482JJHtAM','\x20ck-ai-form__copy-button--copied','1411557iCGCix','clipboard','setTemplate','scrollTo','_createLoader','352098AWHmEV','bind','ck-hidden','text/html','copy','567855cnFEQr','4vTyVBX','locale','ck-ai-form__content-area','appendChild','bindTemplate','class','write','loaderView','value','style','8810510mpiumR','removeAllRanges','remove','wheel','element','change:value','left','ck-ai-form__content-field','isEnabled','32eXczlv','createRange','copyButtonView','firstElementChild','ck-ai-form__content-area--processing','.ck-ai-form__loader','appendLoader','ClipboardItem','<span>]</span>','smooth','listenTo','ck-ai-form__copy-button-wrapper','absolute','_copyHTMLToClipboard','set','innerHTML'];_0x413b=function(){return _0x4620e0;};return _0x413b();}export class AIFormContentArea extends _0x1283c2{[_0x4e6c39(0x216)];[_0x4e6c39(0x239)];constructor(_0x4747eb,_0xd91978=''){const _0x477eae=_0x4e6c39;super(_0x4747eb),this[_0x477eae(0x1f0)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x11aece=this[_0x477eae(0x228)];this[_0x477eae(0x216)]=new ContentFieldView(_0x4747eb,_0xd91978),this[_0x477eae(0x239)]=this[_0x477eae(0x209)](),this[_0x477eae(0x21b)]({'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x201),_0x11aece['if'](_0x477eae(0x20d),_0x477eae(0x220),_0x2920ba=>!_0x2920ba)],'tabindex':'-1'},'children':[{'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x226),_0x11aece['if'](_0x477eae(0x1fd),_0x477eae(0x23b))]},'children':[this[_0x477eae(0x216)],{'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x1ed)]},'children':[this[_0x477eae(0x239)]]}]}]});}[_0x4e6c39(0x1ff)](){const _0x1216e8=_0x4e6c39;super[_0x1216e8(0x1ff)](),this[_0x1216e8(0x22c)]&&this[_0x1216e8(0x216)][_0x1216e8(0x206)](this[_0x1216e8(0x22c)]);let _0x31499d=!0x1;this['on'](_0x1216e8(0x233),(_0x5cd16f,_0x41290a,_0x16e8f1)=>{const _0x53a499=_0x1216e8,_0x1a618b=!this[_0x53a499(0x216)][_0x53a499(0x232)][_0x53a499(0x1fb)](_0x53a499(0x23c));this[_0x53a499(0x216)][_0x53a499(0x206)](_0x16e8f1),this[_0x53a499(0x1fd)]&&_0x1a618b&&!_0x31499d&&this[_0x53a499(0x232)][_0x53a499(0x21c)]({'top':this[_0x53a499(0x232)][_0x53a499(0x207)],'behavior':_0x53a499(0x240)});}),this['on'](_0x1216e8(0x20e),(_0x4c4e30,_0xcbe08d,_0x23b598)=>{const _0x255d4c=_0x1216e8;_0x31499d=!0x1,_0x23b598?(this[_0x255d4c(0x22c)]=null,this[_0x255d4c(0x216)][_0x255d4c(0x23d)]()):this[_0x255d4c(0x22c)]||this[_0x255d4c(0x216)][_0x255d4c(0x206)]('');}),this[_0x1216e8(0x1ec)](this[_0x1216e8(0x232)],_0x1216e8(0x231),()=>{_0x31499d=!0x0;}),this[_0x1216e8(0x1ec)](this[_0x1216e8(0x232)],_0x1216e8(0x1f5),()=>{_0x31499d=!0x0;});}[_0x4e6c39(0x20a)](){const _0x15053a=_0x4e6c39;this[_0x15053a(0x232)][_0x15053a(0x20a)]();}[_0x4e6c39(0x209)](){const _0x3b76c6=_0x4e6c39,_0x5bcaaf=this[_0x3b76c6(0x225)],_0x204162=new _0x546b5b(this[_0x3b76c6(0x225)]),_0x41ad68=_0x3b76c6(0x208);return _0x204162[_0x3b76c6(0x1f0)]({'label':_0x824fa(_0x5bcaaf,_0x3b76c6(0x210)),'icon':_0xe6bf91,'class':_0x41ad68,'tooltip':!0x0}),_0x204162[_0x3b76c6(0x21f)](_0x3b76c6(0x20d))['to'](this,_0x3b76c6(0x22c),_0x862bba=>!!_0x862bba),_0x204162[_0x3b76c6(0x21f)](_0x3b76c6(0x236))['to'](this,_0x3b76c6(0x1fd),_0x1b8d7d=>!_0x1b8d7d),_0x204162['on'](_0x3b76c6(0x20b),()=>{const _0x3b4200=_0x3b76c6;this[_0x3b4200(0x1ef)](this[_0x3b4200(0x216)][_0x3b4200(0x232)]),_0x204162[_0x3b4200(0x212)]=_0x3b4e0c,_0x204162[_0x3b4200(0x229)]=_0x41ad68+_0x3b4200(0x218),this[_0x3b4200(0x20a)](),setTimeout(()=>{const _0x5201fc=_0x3b4200;_0x204162[_0x5201fc(0x212)]=_0xe6bf91,_0x204162[_0x5201fc(0x229)]=_0x41ad68;},0x3e8);}),_0x204162;}[_0x4e6c39(0x1ef)](_0x33a1c5){const _0x5265ad=_0x4e6c39,{window:_0x1a408e,document:_0x5c9aa2}=_0xfd288d;if(_0x1a408e[_0x5265ad(0x23e)]){const {Blob:_0x492a5b,ClipboardItem:_0x13f15a}=_0x1a408e,_0x37ba35=[new _0x13f15a({'text/html':new _0x492a5b([_0x33a1c5[_0x5265ad(0x1f1)]],{'type':_0x5265ad(0x221)}),'text/plain':new _0x492a5b([_0x33a1c5[_0x5265ad(0x20c)]||''],{'type':_0x5265ad(0x1f6)})})];navigator[_0x5265ad(0x21a)][_0x5265ad(0x22a)](_0x37ba35);}else{const _0xeba47b=_0x5c9aa2[_0x5265ad(0x1f7)](_0x5265ad(0x1fc));_0xeba47b[_0x5265ad(0x22d)][_0x5265ad(0x215)]=_0x5265ad(0x1ee),_0xeba47b[_0x5265ad(0x22d)][_0x5265ad(0x234)]=_0x5265ad(0x1f8),_0xeba47b[_0x5265ad(0x1f1)]=_0x5265ad(0x203)+_0x33a1c5[_0x5265ad(0x1f1)]+_0x5265ad(0x23f),_0x5c9aa2[_0x5265ad(0x1f9)][_0x5265ad(0x227)](_0xeba47b);const _0x12120d=_0x5c9aa2[_0x5265ad(0x238)]();_0x12120d[_0x5265ad(0x211)](_0xeba47b[_0x5265ad(0x23a)]),_0x12120d[_0x5265ad(0x1fa)](_0xeba47b[_0x5265ad(0x200)]);const _0x3a2631=_0x1a408e[_0x5265ad(0x205)]();_0x3a2631[_0x5265ad(0x22f)](),_0x3a2631[_0x5265ad(0x204)](_0x12120d),_0x5c9aa2[_0x5265ad(0x20f)](_0x5265ad(0x222)),_0xeba47b[_0x5265ad(0x230)]();}}}export class ContentFieldView extends _0x1283c2{constructor(_0x54a3a1,_0x44f324=''){const _0x173aad=_0x4e6c39;super(_0x54a3a1),this[_0x173aad(0x22b)]=this[_0x173aad(0x21d)](),this[_0x173aad(0x21b)]({'tag':_0x173aad(0x1fc),'attributes':{'class':['ck',_0x173aad(0x1f3),_0x44f324,_0x173aad(0x1f4),_0x173aad(0x235)]}});}[_0x4e6c39(0x206)](_0x437887){const _0x43c1f3=_0x4e6c39;this[_0x43c1f3(0x232)][_0x43c1f3(0x1f1)]=_0x437887;}[_0x4e6c39(0x23d)](){const _0x1be018=_0x4e6c39;this[_0x1be018(0x232)][_0x1be018(0x227)](this[_0x1be018(0x22b)][_0x1be018(0x232)]);}[_0x4e6c39(0x21d)](){const _0xe377f9=_0x4e6c39,_0x297239=new _0x1283c2(),_0x4406a1=this[_0xe377f9(0x225)],_0x8053f6=new _0x542d7b();return _0x8053f6[_0xe377f9(0x20d)]=!0x0,_0x297239[_0xe377f9(0x21b)]({'tag':_0xe377f9(0x1fc),'attributes':{'class':['ck',_0xe377f9(0x202)]},'children':[_0x8053f6,{'text':_0x824fa(_0x4406a1,_0xe377f9(0x213))}]}),_0x297239[_0xe377f9(0x1ff)](),_0x297239;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4b79(_0x33e956,_0x3d204c){const _0x1ff45a=_0x1ff4();return _0x4b79=function(_0x4b791e,_0x589227){_0x4b791e=_0x4b791e-0x18b;let _0x4c23ec=_0x1ff45a[_0x4b791e];return _0x4c23ec;},_0x4b79(_0x33e956,_0x3d204c);}(function(_0x4b17a0,_0x2669a6){const _0x4e5f84=_0x4b79,_0x5480eb=_0x4b17a0();while(!![]){try{const _0x5847ea=-parseInt(_0x4e5f84(0x18f))/0x1*(parseInt(_0x4e5f84(0x19a))/0x2)+-parseInt(_0x4e5f84(0x18b))/0x3*(parseInt(_0x4e5f84(0x18e))/0x4)+-parseInt(_0x4e5f84(0x18c))/0x5+-parseInt(_0x4e5f84(0x198))/0x6+-parseInt(_0x4e5f84(0x197))/0x7*(parseInt(_0x4e5f84(0x199))/0x8)+parseInt(_0x4e5f84(0x18d))/0x9*(parseInt(_0x4e5f84(0x19c))/0xa)+parseInt(_0x4e5f84(0x196))/0xb;if(_0x5847ea===_0x2669a6)break;else _0x5480eb['push'](_0x5480eb['shift']());}catch(_0x5c8b87){_0x5480eb['push'](_0x5480eb['shift']());}}}(_0x1ff4,0x80071));function _0x1ff4(){const _0x496455=['bindTemplate','set','ck-ai-form__error','text','34889481mjwwtl','110047ionDwE','2609028azwtel','240lOwzac','6NzLhyc','div','60axUfnp','11079esipyD','2542240DsiliQ','611343Dewcwq','772QUvpet','309089bCAxsg','setTemplate','content'];_0x1ff4=function(){return _0x496455;};return _0x1ff4();}import{IconError as _0x5c586d}from'ckeditor5/src/icons.js';import{View as _0x20e780,IconView as _0x168da4}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x20e780{constructor(_0x5b6997,_0x46e0ee=''){const _0x24e58b=_0x4b79;super(_0x5b6997);const _0x1acb5e=new _0x168da4(),_0x1be989=this[_0x24e58b(0x192)];this[_0x24e58b(0x193)](_0x24e58b(0x195),_0x46e0ee),_0x1acb5e[_0x24e58b(0x191)]=_0x5c586d,this[_0x24e58b(0x190)]({'tag':_0x24e58b(0x19b),'attributes':{'class':['ck',_0x24e58b(0x194)]},'children':[_0x1acb5e,{'text':_0x1be989['to'](_0x24e58b(0x195))}]});}}
23
+ (function(_0x5eedfd,_0x30dce6){const _0x3529e0=_0x2d72,_0x17d737=_0x5eedfd();while(!![]){try{const _0x4c3d7d=-parseInt(_0x3529e0(0xc0))/0x1+parseInt(_0x3529e0(0xc7))/0x2+parseInt(_0x3529e0(0xbd))/0x3*(parseInt(_0x3529e0(0xc5))/0x4)+-parseInt(_0x3529e0(0xcb))/0x5+-parseInt(_0x3529e0(0xc8))/0x6*(-parseInt(_0x3529e0(0xcc))/0x7)+parseInt(_0x3529e0(0xbf))/0x8+parseInt(_0x3529e0(0xc9))/0x9*(-parseInt(_0x3529e0(0xbe))/0xa);if(_0x4c3d7d===_0x30dce6)break;else _0x17d737['push'](_0x17d737['shift']());}catch(_0x3199cc){_0x17d737['push'](_0x17d737['shift']());}}}(_0x3136,0x74edb));import{IconError as _0x430019}from'ckeditor5/src/icons.js';function _0x3136(){const _0xfe2c56=['1655385bDJwQe','7VvPZNP','ck-ai-form__error','60069WnYTFq','10JvFJTc','6023152GhfGZW','218773uovmdC','content','div','set','setTemplate','188NVLHJz','bindTemplate','1281990svnBFg','3673260geKiHg','17265519TihapE','text'];_0x3136=function(){return _0xfe2c56;};return _0x3136();}import{View as _0x93a224,IconView as _0x685884}from'ckeditor5/src/ui.js';function _0x2d72(_0x2a8769,_0x2dc7bf){const _0x31361a=_0x3136();return _0x2d72=function(_0x2d7284,_0x33f104){_0x2d7284=_0x2d7284-0xbc;let _0x289baf=_0x31361a[_0x2d7284];return _0x289baf;},_0x2d72(_0x2a8769,_0x2dc7bf);}export class AIFormErrorView extends _0x93a224{constructor(_0xcb3871,_0x263277=''){const _0x1923f6=_0x2d72;super(_0xcb3871);const _0x230368=new _0x685884(),_0x13e840=this[_0x1923f6(0xc6)];this[_0x1923f6(0xc3)](_0x1923f6(0xca),_0x263277),_0x230368[_0x1923f6(0xc1)]=_0x430019,this[_0x1923f6(0xc4)]({'tag':_0x1923f6(0xc2),'attributes':{'class':['ck',_0x1923f6(0xbc)]},'children':[_0x230368,{'text':_0x13e840['to'](_0x1923f6(0xca))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3225e6=_0x4ca2;function _0x2b0a(){const _0x26e05b=['width','queryView','isEmpty','Submit','minRows','9396212FwQZfh','add','focusCycler','submit','focusLast','focus','maxRows','1765798CGTjUG','bind','rtl','312488UuCjzu','locale','execute','filteredView','update','excludeScrollbarsAndBorders','ck-ai-form__toggle-history','children','enter','right','fieldView','resultsView','isEnabled','target','1crnySD','element','isVisible','5308072ROWqvF','submitButtonView','style','value','window','uiLanguageDirection','set','_createShowHistoryButton','_createSubmitButton','6qrTppJ','focusableChildren','5918540kbZXlj','keystrokes','focusFirst','5369553hYjkQW','ck-ai-form__submit','isOn','History','render','requestAnimationFrame','fire','5230272CJkOfs','fieldWrapperChildren','left','showHistoryButtonView'];_0x2b0a=function(){return _0x26e05b;};return _0x2b0a();}(function(_0x80ac55,_0x988c7b){const _0x3f5903=_0x4ca2,_0x59d49b=_0x80ac55();while(!![]){try{const _0x496ab4=parseInt(_0x3f5903(0x177))/0x1*(parseInt(_0x3f5903(0x166))/0x2)+-parseInt(_0x3f5903(0x183))/0x3*(parseInt(_0x3f5903(0x169))/0x4)+parseInt(_0x3f5903(0x185))/0x5+-parseInt(_0x3f5903(0x18f))/0x6+-parseInt(_0x3f5903(0x15f))/0x7+parseInt(_0x3f5903(0x17a))/0x8+parseInt(_0x3f5903(0x188))/0x9;if(_0x496ab4===_0x988c7b)break;else _0x59d49b['push'](_0x59d49b['shift']());}catch(_0x36edb5){_0x59d49b['push'](_0x59d49b['shift']());}}}(_0x2b0a,0xe982d));import{Rect as _0x241e18,global as _0x20f511,isVisible as _0x129050}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x3441db,IconSubmit as _0x341fce}from'ckeditor5/src/icons.js';function _0x4ca2(_0x43df82,_0x1fa71c){const _0x2b0a5b=_0x2b0a();return _0x4ca2=function(_0x4ca29c,_0x20b18b){_0x4ca29c=_0x4ca29c-0x15d;let _0x5c2f10=_0x2b0a5b[_0x4ca29c];return _0x5c2f10;},_0x4ca2(_0x43df82,_0x1fa71c);}import{AutocompleteView as _0x2ee5ec,ButtonView as _0x181ce1}from'ckeditor5/src/ui.js';import{getTranslation as _0x16bd40}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2ee5ec{[_0x3225e6(0x17b)];[_0x3225e6(0x192)];constructor(_0x1907a5,_0x233988){const _0x5099af=_0x3225e6;super(_0x1907a5,_0x233988),this[_0x5099af(0x194)][_0x5099af(0x173)][_0x5099af(0x15e)]=0x1,this[_0x5099af(0x194)][_0x5099af(0x173)][_0x5099af(0x165)]=0x3,this[_0x5099af(0x17b)]=this[_0x5099af(0x182)](),this[_0x5099af(0x192)]=this[_0x5099af(0x181)](),this[_0x5099af(0x184)][_0x5099af(0x160)](this[_0x5099af(0x192)],0x1),this[_0x5099af(0x184)][_0x5099af(0x160)](this[_0x5099af(0x17b)]);}[_0x3225e6(0x18c)](){const _0x406a96=_0x3225e6;super[_0x406a96(0x18c)](),this[_0x406a96(0x194)][_0x406a96(0x190)][_0x406a96(0x160)](this[_0x406a96(0x192)]),this[_0x406a96(0x170)][_0x406a96(0x160)](this[_0x406a96(0x17b)]),this[_0x406a96(0x186)][_0x406a96(0x180)](_0x406a96(0x171),(_0x882719,_0x235a21)=>{const _0x211e57=_0x406a96;_0x882719[_0x211e57(0x176)]==this[_0x211e57(0x194)][_0x211e57(0x173)][_0x211e57(0x178)]&&(this[_0x211e57(0x162)](),_0x235a21());});}[_0x3225e6(0x182)](){const _0xcc1b93=_0x3225e6,_0x5591f6=new _0x181ce1(this[_0xcc1b93(0x16a)]),_0x52b548=this[_0xcc1b93(0x16a)];return _0x5591f6[_0xcc1b93(0x180)]({'icon':_0x341fce,'label':_0x16bd40(_0x52b548,_0xcc1b93(0x15d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xcc1b93(0x189)}),_0x5591f6['on'](_0xcc1b93(0x16b),()=>{const _0x3e565e=_0xcc1b93;this[_0x3e565e(0x162)]();}),_0x5591f6[_0xcc1b93(0x167)](_0xcc1b93(0x175))['to'](this[_0xcc1b93(0x194)][_0xcc1b93(0x173)],_0xcc1b93(0x195),this,_0xcc1b93(0x175),(_0x857dba,_0x37f7f5)=>!_0x857dba&&_0x37f7f5),_0x5591f6;}[_0x3225e6(0x181)](){const _0x518a8c=_0x3225e6,_0x2d88cd=new _0x181ce1(this[_0x518a8c(0x16a)]),_0x2aad1c=this[_0x518a8c(0x174)],_0x471de8=this[_0x518a8c(0x16a)];_0x2d88cd[_0x518a8c(0x180)]({'label':_0x16bd40(_0x471de8,_0x518a8c(0x18b)),'withText':!0x1,'icon':_0x3441db,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x518a8c(0x16f)}),_0x2d88cd[_0x518a8c(0x167)](_0x518a8c(0x18a))['to'](_0x2aad1c,_0x518a8c(0x179)),_0x2d88cd[_0x518a8c(0x167)](_0x518a8c(0x175))['to'](this,_0x518a8c(0x175)),_0x2d88cd['on'](_0x518a8c(0x16b),()=>{const _0xb106e4=_0x518a8c;_0x2aad1c[_0xb106e4(0x179)]=!_0x2aad1c[_0xb106e4(0x179)],_0x2aad1c[_0xb106e4(0x179)]?this[_0xb106e4(0x16c)][_0xb106e4(0x164)]():this[_0xb106e4(0x164)]();});const _0x173cdd=()=>{const _0x41aaf2=_0x518a8c;_0x20f511[_0x41aaf2(0x17e)][_0x41aaf2(0x18d)](()=>{const _0x274acb=_0x41aaf2;if(_0x129050(this[_0x274acb(0x178)])){const _0x5ada50=new _0x241e18(this[_0x274acb(0x194)][_0x274acb(0x173)][_0x274acb(0x178)]),_0x28fce2=_0x5ada50[_0x274acb(0x193)],_0x516ec5=_0x274acb(0x168)===_0x471de8[_0x274acb(0x17f)]?_0x274acb(0x191):_0x274acb(0x172);_0x5ada50[_0x274acb(0x16e)](),_0x2d88cd[_0x274acb(0x178)][_0x274acb(0x17c)][_0x516ec5]=_0x28fce2-_0x5ada50[_0x274acb(0x193)]+0x1+'px';}});};return this[_0x518a8c(0x194)][_0x518a8c(0x173)]['on'](_0x518a8c(0x16d),_0x173cdd),this['on'](_0x518a8c(0x18c),_0x173cdd),_0x2d88cd;}[_0x3225e6(0x162)](){const _0x43316c=_0x3225e6,_0x2ae1ff=this[_0x43316c(0x194)][_0x43316c(0x173)][_0x43316c(0x178)][_0x43316c(0x17d)];this[_0x43316c(0x18e)](_0x43316c(0x162),_0x2ae1ff);}[_0x3225e6(0x164)](_0x98aebe){const _0x3abcf5=_0x3225e6;-0x1===_0x98aebe?this[_0x3abcf5(0x161)][_0x3abcf5(0x163)]():this[_0x3abcf5(0x161)][_0x3abcf5(0x187)]();}}
23
+ const _0x2be55f=_0x307a;(function(_0x4de7c6,_0x353ba5){const _0x8553df=_0x307a,_0x11e027=_0x4de7c6();while(!![]){try{const _0x5c49c7=-parseInt(_0x8553df(0x8a))/0x1*(-parseInt(_0x8553df(0xa8))/0x2)+-parseInt(_0x8553df(0x96))/0x3+parseInt(_0x8553df(0x9f))/0x4+-parseInt(_0x8553df(0x91))/0x5*(-parseInt(_0x8553df(0xa1))/0x6)+parseInt(_0x8553df(0x97))/0x7+parseInt(_0x8553df(0x7a))/0x8+-parseInt(_0x8553df(0xa3))/0x9;if(_0x5c49c7===_0x353ba5)break;else _0x11e027['push'](_0x11e027['shift']());}catch(_0x5be0a2){_0x11e027['push'](_0x11e027['shift']());}}}(_0x219c,0x6d4bd));import{Rect as _0x10ad2a,global as _0x3c13ef,isVisible as _0x544a7b}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x180dbd,IconSubmit as _0x288cf0}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4bb12d,ButtonView as _0x51d11c}from'ckeditor5/src/ui.js';function _0x307a(_0x1db9df,_0x4fa141){const _0x219cb9=_0x219c();return _0x307a=function(_0x307a67,_0x1e196d){_0x307a67=_0x307a67-0x71;let _0x1dc3c2=_0x219cb9[_0x307a67];return _0x1dc3c2;},_0x307a(_0x1db9df,_0x4fa141);}import{getTranslation as _0x2dfe31}from'../../utils/common-translations.js';function _0x219c(){const _0x1a1141=['focusableChildren','children','4nIfTFh','style','requestAnimationFrame','fire','isEmpty','width','isEnabled','submitButtonView','locale','value','minRows','954864ZxBpoQ','rtl','filteredView','add','ck-ai-form__submit','focus','showHistoryButtonView','focusFirst','History','submit','maxRows','right','fieldView','focusLast','Submit','ck-ai-form__toggle-history','140339VVZnNm','_createSubmitButton','focusCycler','_createShowHistoryButton','left','window','element','3542090xovHkN','set','uiLanguageDirection','target','execute','1390824dkZAVt','3182704SJSKpM','update','render','fieldWrapperChildren','excludeScrollbarsAndBorders','bind','isOn','isVisible','1783620WjmQaj','queryView','6tlcGsV','resultsView','9879714ltGBfA','keystrokes','enter'];_0x219c=function(){return _0x1a1141;};return _0x219c();}export class AIFormPromptView extends _0x4bb12d{[_0x2be55f(0x76)];[_0x2be55f(0x80)];constructor(_0x231e30,_0x55ce19){const _0x4c2e02=_0x2be55f;super(_0x231e30,_0x55ce19),this[_0x4c2e02(0xa0)][_0x4c2e02(0x86)][_0x4c2e02(0x79)]=0x1,this[_0x4c2e02(0xa0)][_0x4c2e02(0x86)][_0x4c2e02(0x84)]=0x3,this[_0x4c2e02(0x76)]=this[_0x4c2e02(0x8b)](),this[_0x4c2e02(0x80)]=this[_0x4c2e02(0x8d)](),this[_0x4c2e02(0xa6)][_0x4c2e02(0x7d)](this[_0x4c2e02(0x80)],0x1),this[_0x4c2e02(0xa6)][_0x4c2e02(0x7d)](this[_0x4c2e02(0x76)]);}[_0x2be55f(0x99)](){const _0x2ab685=_0x2be55f;super[_0x2ab685(0x99)](),this[_0x2ab685(0xa0)][_0x2ab685(0x9a)][_0x2ab685(0x7d)](this[_0x2ab685(0x80)]),this[_0x2ab685(0xa7)][_0x2ab685(0x7d)](this[_0x2ab685(0x76)]),this[_0x2ab685(0xa4)][_0x2ab685(0x92)](_0x2ab685(0xa5),(_0x130972,_0x2226cf)=>{const _0x12c33b=_0x2ab685;_0x130972[_0x12c33b(0x94)]==this[_0x12c33b(0xa0)][_0x12c33b(0x86)][_0x12c33b(0x90)]&&(this[_0x12c33b(0x83)](),_0x2226cf());});}[_0x2be55f(0x8b)](){const _0x57553c=_0x2be55f,_0x19292b=new _0x51d11c(this[_0x57553c(0x77)]),_0x286255=this[_0x57553c(0x77)];return _0x19292b[_0x57553c(0x92)]({'icon':_0x288cf0,'label':_0x2dfe31(_0x286255,_0x57553c(0x88)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x57553c(0x7e)}),_0x19292b['on'](_0x57553c(0x95),()=>{const _0x28cff6=_0x57553c;this[_0x28cff6(0x83)]();}),_0x19292b[_0x57553c(0x9c)](_0x57553c(0x75))['to'](this[_0x57553c(0xa0)][_0x57553c(0x86)],_0x57553c(0x73),this,_0x57553c(0x75),(_0x31d7c3,_0x6d1c02)=>!_0x31d7c3&&_0x6d1c02),_0x19292b;}[_0x2be55f(0x8d)](){const _0x334796=_0x2be55f,_0x22bc1d=new _0x51d11c(this[_0x334796(0x77)]),_0x32feea=this[_0x334796(0xa2)],_0x53b509=this[_0x334796(0x77)];_0x22bc1d[_0x334796(0x92)]({'label':_0x2dfe31(_0x53b509,_0x334796(0x82)),'withText':!0x1,'icon':_0x180dbd,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x334796(0x89)}),_0x22bc1d[_0x334796(0x9c)](_0x334796(0x9d))['to'](_0x32feea,_0x334796(0x9e)),_0x22bc1d[_0x334796(0x9c)](_0x334796(0x75))['to'](this,_0x334796(0x75)),_0x22bc1d['on'](_0x334796(0x95),()=>{const _0x46c835=_0x334796;_0x32feea[_0x46c835(0x9e)]=!_0x32feea[_0x46c835(0x9e)],_0x32feea[_0x46c835(0x9e)]?this[_0x46c835(0x7c)][_0x46c835(0x7f)]():this[_0x46c835(0x7f)]();});const _0xda5245=()=>{const _0x5d73c3=_0x334796;_0x3c13ef[_0x5d73c3(0x8f)][_0x5d73c3(0x71)](()=>{const _0x61a3d7=_0x5d73c3;if(_0x544a7b(this[_0x61a3d7(0x90)])){const _0xc5ef03=new _0x10ad2a(this[_0x61a3d7(0xa0)][_0x61a3d7(0x86)][_0x61a3d7(0x90)]),_0x377ce9=_0xc5ef03[_0x61a3d7(0x74)],_0x404d77=_0x61a3d7(0x7b)===_0x53b509[_0x61a3d7(0x93)]?_0x61a3d7(0x8e):_0x61a3d7(0x85);_0xc5ef03[_0x61a3d7(0x9b)](),_0x22bc1d[_0x61a3d7(0x90)][_0x61a3d7(0xa9)][_0x404d77]=_0x377ce9-_0xc5ef03[_0x61a3d7(0x74)]+0x1+'px';}});};return this[_0x334796(0xa0)][_0x334796(0x86)]['on'](_0x334796(0x98),_0xda5245),this['on'](_0x334796(0x99),_0xda5245),_0x22bc1d;}[_0x2be55f(0x83)](){const _0x580a4e=_0x2be55f,_0x407a61=this[_0x580a4e(0xa0)][_0x580a4e(0x86)][_0x580a4e(0x90)][_0x580a4e(0x78)];this[_0x580a4e(0x72)](_0x580a4e(0x83),_0x407a61);}[_0x2be55f(0x7f)](_0x354b55){const _0x487df6=_0x2be55f;-0x1===_0x354b55?this[_0x487df6(0x8c)][_0x487df6(0x87)]():this[_0x487df6(0x8c)][_0x487df6(0x81)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ae1(_0x551e25,_0x3cb410){const _0x4c088f=_0x4c08();return _0x2ae1=function(_0x2ae1c4,_0x2aab13){_0x2ae1c4=_0x2ae1c4-0xe3;let _0xf5946b=_0x4c088f[_0x2ae1c4];return _0xf5946b;},_0x2ae1(_0x551e25,_0x3cb410);}const _0x17c6c8=_0x2ae1;(function(_0x50b134,_0xf2936a){const _0x1cd08f=_0x2ae1,_0x1ab021=_0x50b134();while(!![]){try{const _0x367e48=parseInt(_0x1cd08f(0x105))/0x1*(parseInt(_0x1cd08f(0xe6))/0x2)+parseInt(_0x1cd08f(0xe3))/0x3*(-parseInt(_0x1cd08f(0xf0))/0x4)+parseInt(_0x1cd08f(0xfc))/0x5+-parseInt(_0x1cd08f(0x106))/0x6+parseInt(_0x1cd08f(0x100))/0x7*(parseInt(_0x1cd08f(0x102))/0x8)+-parseInt(_0x1cd08f(0xea))/0x9*(-parseInt(_0x1cd08f(0xf8))/0xa)+-parseInt(_0x1cd08f(0xf5))/0xb;if(_0x367e48===_0xf2936a)break;else _0x1ab021['push'](_0x1ab021['shift']());}catch(_0x4d497d){_0x1ab021['push'](_0x1ab021['shift']());}}}(_0x4c08,0x324ef));import{ToolbarView as _0x45f491,ButtonView as _0x10d227}from'ckeditor5/src/ui.js';function _0x4c08(){const _0x17a7ab=['isVisible','52044oiXNxq','addMany','label','AI_','Stop','6777760BrLreo','extendTemplate','set','172120tGxUjG','mainAction','items','locale','911280VXzGFv','ck-hidden','replace','ck-ai-form__toolbar','14yDEzkU','Insert\x20below','879016iVWfpV','toUpperCase','replaceButton','107737OjWhiT','262890NzhqGt','ck-button-action','insertButton','30sQHwqD','_CONTENT','tryAgainButton','4iCjbZn','REPLACE','Try\x20again','bind','198ZfUUmN','stopButton','insert','_createButton','bindTemplate'];_0x4c08=function(){return _0x17a7ab;};return _0x4c08();}import{getTranslation as _0x106b5c}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x17c6c8(0xfe),'INSERT':_0x17c6c8(0xec)};export class AIFormToolbarView extends _0x45f491{constructor(_0x544d2d){const _0x19c677=_0x17c6c8;super(_0x544d2d),this[_0x19c677(0xf7)](_0x19c677(0xef),!0x1),this[_0x19c677(0xf7)](_0x19c677(0xf9),AIFormToolbarViewMainActionLabel[_0x19c677(0xe7)]),this[_0x19c677(0x104)]=this[_0x19c677(0xed)]('',_0x19c677(0x107)),this[_0x19c677(0x104)][_0x19c677(0xe9)](_0x19c677(0xf2))['to'](this,_0x19c677(0xf9),_0x4e7282=>_0x106b5c(_0x544d2d,_0x19c677(0xf3)+_0x4e7282[_0x19c677(0x103)]()+_0x19c677(0xe4))),this[_0x19c677(0x108)]=this[_0x19c677(0xed)](_0x106b5c(_0x544d2d,_0x19c677(0x101))),this[_0x19c677(0xe5)]=this[_0x19c677(0xed)](_0x106b5c(_0x544d2d,_0x19c677(0xe8))),this[_0x19c677(0xeb)]=this[_0x19c677(0xed)](_0x106b5c(_0x544d2d,_0x19c677(0xf4)));const _0xa19344=this[_0x19c677(0xee)];this[_0x19c677(0xf6)]({'attributes':{'class':[_0x19c677(0xff),_0xa19344['if'](_0x19c677(0xef),_0x19c677(0xfd),_0x76eb66=>!_0x76eb66)]}}),this[_0x19c677(0xfa)][_0x19c677(0xf1)]([this[_0x19c677(0x104)],this[_0x19c677(0x108)],this[_0x19c677(0xe5)],this[_0x19c677(0xeb)]]);}[_0x17c6c8(0xed)](_0x18451a,_0x290077){const _0x9a6243=_0x17c6c8,_0x62fe11=new _0x10d227(this[_0x9a6243(0xfb)]);return _0x62fe11[_0x9a6243(0xf7)]({'label':_0x18451a,'class':_0x290077||'','isVisible':!0x0,'withText':!0x0}),_0x62fe11;}}
23
+ const _0x28d226=_0x5c12;function _0x3b4c(){const _0x38a633=['Insert\x20below','227029FMatdK','34456mpggRM','4DBICQM','_createButton','extendTemplate','Stop','tryAgainButton','ck-ai-form__toolbar','ck-hidden','locale','isVisible','AI_','items','mainAction','set','_CONTENT','5QNdIGL','toUpperCase','2mcJEHJ','774bsCwFU','Try\x20again','bind','4265196BtWcdo','insertButton','24WpPcSw','REPLACE','586024vqvYfq','replace','stopButton','replaceButton','4886500wowDSP','insert','ck-button-action','3230124mnKqKR','11310929yESVVi','label','addMany','bindTemplate'];_0x3b4c=function(){return _0x38a633;};return _0x3b4c();}(function(_0x535fd8,_0x52235c){const _0x3f9ba4=_0x5c12,_0x14d01f=_0x535fd8();while(!![]){try{const _0x60e509=-parseInt(_0x3f9ba4(0x110))/0x1*(parseInt(_0x3f9ba4(0x108))/0x2)+parseInt(_0x3f9ba4(0x117))/0x3*(-parseInt(_0x3f9ba4(0x11f))/0x4)+parseInt(_0x3f9ba4(0x106))/0x5*(parseInt(_0x3f9ba4(0x10c))/0x6)+parseInt(_0x3f9ba4(0x118))/0x7+-parseInt(_0x3f9ba4(0x11e))/0x8*(parseInt(_0x3f9ba4(0x109))/0x9)+parseInt(_0x3f9ba4(0x114))/0xa+parseInt(_0x3f9ba4(0x11d))/0xb*(parseInt(_0x3f9ba4(0x10e))/0xc);if(_0x60e509===_0x52235c)break;else _0x14d01f['push'](_0x14d01f['shift']());}catch(_0xf38b7b){_0x14d01f['push'](_0x14d01f['shift']());}}}(_0x3b4c,0xc90d3));function _0x5c12(_0x3e8305,_0x374612){const _0x3b4c72=_0x3b4c();return _0x5c12=function(_0x5c12af,_0xa9ed4b){_0x5c12af=_0x5c12af-0x106;let _0x1dfc9f=_0x3b4c72[_0x5c12af];return _0x1dfc9f;},_0x5c12(_0x3e8305,_0x374612);}import{ToolbarView as _0xe0263f,ButtonView as _0xcb5211}from'ckeditor5/src/ui.js';import{getTranslation as _0x51dd20}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x28d226(0x111),'INSERT':_0x28d226(0x115)};export class AIFormToolbarView extends _0xe0263f{constructor(_0x1eb552){const _0x28cda8=_0x28d226;super(_0x1eb552),this[_0x28cda8(0x12b)](_0x28cda8(0x127),!0x1),this[_0x28cda8(0x12b)](_0x28cda8(0x12a),AIFormToolbarViewMainActionLabel[_0x28cda8(0x10f)]),this[_0x28cda8(0x113)]=this[_0x28cda8(0x120)]('',_0x28cda8(0x116)),this[_0x28cda8(0x113)][_0x28cda8(0x10b)](_0x28cda8(0x119))['to'](this,_0x28cda8(0x12a),_0x1c13fd=>_0x51dd20(_0x1eb552,_0x28cda8(0x128)+_0x1c13fd[_0x28cda8(0x107)]()+_0x28cda8(0x12c))),this[_0x28cda8(0x10d)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x11c))),this[_0x28cda8(0x123)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x10a))),this[_0x28cda8(0x112)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x122)));const _0xc2d0e8=this[_0x28cda8(0x11b)];this[_0x28cda8(0x121)]({'attributes':{'class':[_0x28cda8(0x124),_0xc2d0e8['if'](_0x28cda8(0x127),_0x28cda8(0x125),_0x20be8b=>!_0x20be8b)]}}),this[_0x28cda8(0x129)][_0x28cda8(0x11a)]([this[_0x28cda8(0x113)],this[_0x28cda8(0x10d)],this[_0x28cda8(0x123)],this[_0x28cda8(0x112)]]);}[_0x28d226(0x120)](_0x2df413,_0x37e10e){const _0x2a8dd8=_0x28d226,_0x13121c=new _0xcb5211(this[_0x2a8dd8(0x126)]);return _0x13121c[_0x2a8dd8(0x12b)]({'label':_0x2df413,'class':_0x37e10e||'','isVisible':!0x0,'withText':!0x0}),_0x13121c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d32c7=_0x1745;(function(_0x2c275f,_0x245c8d){const _0x22f9d1=_0x1745,_0x46c871=_0x2c275f();while(!![]){try{const _0x55767b=parseInt(_0x22f9d1(0x1bb))/0x1+parseInt(_0x22f9d1(0x1a8))/0x2+-parseInt(_0x22f9d1(0x1c7))/0x3*(-parseInt(_0x22f9d1(0x189))/0x4)+-parseInt(_0x22f9d1(0x181))/0x5+parseInt(_0x22f9d1(0x1c5))/0x6*(-parseInt(_0x22f9d1(0x196))/0x7)+parseInt(_0x22f9d1(0x1a9))/0x8+parseInt(_0x22f9d1(0x18c))/0x9*(-parseInt(_0x22f9d1(0x184))/0xa);if(_0x55767b===_0x245c8d)break;else _0x46c871['push'](_0x46c871['shift']());}catch(_0x1cddfa){_0x46c871['push'](_0x46c871['shift']());}}}(_0xa56d,0xa7bf5));import{FocusTracker as _0x14b49e,KeystrokeHandler as _0x40d069}from'ckeditor5/src/utils.js';import{View as _0x7e98c2,FocusCycler as _0x4000bf,createLabeledTextarea as _0x289d91}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x26efe7,AIFormToolbarViewMainActionLabel as _0x8662ff}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x295f62}from'./aiformcontentarea.js';import{AIFormErrorView as _0x115bdf}from'./aiformerrorview.js';import{AIFormPromptView as _0x16e129}from'./aiformpromptview.js';function _0x1745(_0x2a3cc0,_0x1db161){const _0xa56de2=_0xa56d();return _0x1745=function(_0x1745be,_0x8b37c7){_0x1745be=_0x1745be-0x17a;let _0x3dc0b4=_0xa56de2[_0x1745be];return _0x3dc0b4;},_0x1745(_0x2a3cc0,_0x1db161);}import{AIHistoryListView as _0x351eb3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x97744}from'./aihistorylistitemview.js';import{PromptHistory as _0x40c842}from'./prompthistory.js';import{getTranslation as _0x45206a}from'../../utils/common-translations.js';function _0xa56d(){const _0x464810=['contentArea','locale','chain','_focusables','_createPromptView','shift\x20+\x20tab','copyButtonView','isProcessing','clearHistory','4918755paFSbQ','text','toolbar','977950cvcyYd','ck-hidden','fieldView','fire','keystrokes','8KfxALj','delegate','isVisible','63znTIFj','insertContentBelow','Empty\x20history','focus','listenTo','replaceContent','execute','tryAgainButton','focusTracker','stopButton','532nCqvXs','promptView','reset','_createToolbar','queryView','startProcessing','insertButton','historyGroupView','element','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-ai-form-content','createCollection','isEnabled','set','_promptHistory','replaceButton','isError','value','548958dwKSEZ','6733880HowGtK','finishProcessing','setTemplate','bindTo','high','AI_ERROR_FAILED','items','prompt','div','search','tab','bind','handleError','label','clear','stopProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submit','1026749sCSbbU','tryAgainEvent','focusFirst','Ask\x20AI\x20to\x20edit\x20or\x20generate','add','bindTemplate','ck-ai-form','focusCycler','errorView','REPLACE','19038NsKZYl','_createHistoryView','680391faxHBE','trim','focusLast','mainAction','submitPrompt','render'];_0xa56d=function(){return _0x464810;};return _0xa56d();}import{escape as _0x3a1709}from'es-toolkit/compat';export class AIFormView extends _0x7e98c2{[_0x2d32c7(0x194)];[_0x2d32c7(0x188)];[_0x2d32c7(0x1cd)];[_0x2d32c7(0x183)];[_0x2d32c7(0x197)];[_0x2d32c7(0x1c3)];[_0x2d32c7(0x17b)];[_0x2d32c7(0x1c2)];[_0x2d32c7(0x1a4)];constructor(_0x1a21f1,_0x1ac542,_0x1f71ce=''){const _0x304904=_0x2d32c7;super(_0x1a21f1),this[_0x304904(0x1a3)](_0x304904(0x1a2),!0x0),this[_0x304904(0x1a3)](_0x304904(0x17f),!0x1),this[_0x304904(0x1a3)](_0x304904(0x1b0),''),this[_0x304904(0x1a3)](_0x304904(0x1a7),''),this[_0x304904(0x1a3)](_0x304904(0x1a6),!0x1),this[_0x304904(0x1a3)](_0x304904(0x1ca),_0x8662ff[_0x304904(0x1c4)]),this[_0x304904(0x1a4)]=new _0x40c842(),this[_0x304904(0x1c3)]=new _0x115bdf(_0x1a21f1),this[_0x304904(0x1cd)]=new _0x295f62(_0x1a21f1,_0x1f71ce),this[_0x304904(0x1cd)][_0x304904(0x1b4)](_0x304904(0x17f))['to'](this),this[_0x304904(0x1cd)][_0x304904(0x1b4)](_0x304904(0x1a7))['to'](this),this[_0x304904(0x183)]=this[_0x304904(0x199)](),this[_0x304904(0x183)][_0x304904(0x1b4)](_0x304904(0x1ca))['to'](this),this[_0x304904(0x197)]=this[_0x304904(0x17c)](),this[_0x304904(0x194)]=new _0x14b49e(),this[_0x304904(0x188)]=new _0x40d069(),this[_0x304904(0x17b)]=this[_0x304904(0x1a1)]([this[_0x304904(0x1cd)],this[_0x304904(0x1cd)][_0x304904(0x17e)],this[_0x304904(0x183)],this[_0x304904(0x197)]]),this[_0x304904(0x1c2)]=new _0x4000bf({'focusables':this[_0x304904(0x17b)],'focusTracker':this[_0x304904(0x194)],'keystrokeHandler':this[_0x304904(0x188)],'actions':{'focusPrevious':_0x304904(0x17d),'focusNext':_0x304904(0x1b3)}}),this[_0x304904(0x1c2)][_0x304904(0x17a)](this[_0x304904(0x197)][_0x304904(0x1c2)]),this[_0x304904(0x197)][_0x304904(0x19a)][_0x304904(0x186)][_0x304904(0x1b4)](_0x304904(0x1a7))['to'](this,_0x304904(0x1b0));const _0x1e837d=this[_0x304904(0x1c0)];this[_0x304904(0x1ab)]({'tag':_0x304904(0x1b1),'attributes':{'class':['ck',_0x304904(0x1c1),_0x1ac542],'tabindex':'-1'},'children':[{'tag':_0x304904(0x1b1),'attributes':{'class':['ck',_0x304904(0x1a0)]},'children':[{'tag':_0x304904(0x1b1),'attributes':{'class':[_0x1e837d['if'](_0x304904(0x1a6),_0x304904(0x185),_0x294c39=>!_0x294c39)]},'children':[this[_0x304904(0x1c3)]]},this[_0x304904(0x1cd)],this[_0x304904(0x183)],this[_0x304904(0x197)]]}]});}[_0x2d32c7(0x1cc)](){const _0xb0ab33=_0x2d32c7;super[_0xb0ab33(0x1cc)](),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x1cd)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x1cd)][_0xb0ab33(0x17e)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x183)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x197)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x188)][_0xb0ab33(0x190)](this[_0xb0ab33(0x19e)]);}[_0x2d32c7(0x18f)](_0x39d63a=0x1){const _0x1621cc=_0x2d32c7;-0x1===_0x39d63a?this[_0x1621cc(0x1c2)][_0x1621cc(0x1c9)]():this[_0x1621cc(0x1c2)][_0x1621cc(0x1bd)]();}[_0x2d32c7(0x198)](){const _0x20d70e=_0x2d32c7;this[_0x20d70e(0x1b0)]='',this[_0x20d70e(0x1a7)]='',this[_0x20d70e(0x1a6)]=!0x1,this[_0x20d70e(0x197)][_0x20d70e(0x198)](),this[_0x20d70e(0x1cd)][_0x20d70e(0x18b)]=!0x1,this[_0x20d70e(0x183)][_0x20d70e(0x18b)]=!0x1;}[_0x2d32c7(0x17c)](){const _0x2a5ebd=_0x2d32c7,_0x57877a=this[_0x2a5ebd(0x1ce)],_0x321dea=new _0x16e129(_0x57877a,{'queryView':{'label':_0x45206a(_0x57877a,_0x2a5ebd(0x1be)),'creator':_0x289d91,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x45206a(_0x57877a,_0x2a5ebd(0x18e)),'secondary':_0x45206a(_0x57877a,_0x2a5ebd(0x1b9))}}},'filteredView':this[_0x2a5ebd(0x1c6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x321dea[_0x2a5ebd(0x1b4)](_0x2a5ebd(0x1a2))['to'](this,_0x2a5ebd(0x1a2),this,_0x2a5ebd(0x17f),(_0x1fcfad,_0x1b66be)=>_0x1fcfad&&!_0x1b66be),this[_0x2a5ebd(0x190)](_0x321dea,_0x2a5ebd(0x1ba),(_0x35861a,_0x323a66)=>{const _0xb45343=_0x2a5ebd;this[_0xb45343(0x1b0)]=_0x323a66;const _0x2e05ef=_0x3a1709(_0x323a66);this[_0xb45343(0x187)](_0xb45343(0x1cb),_0x2e05ef),_0x323a66[_0xb45343(0x1c8)]()&&this[_0xb45343(0x1a4)][_0xb45343(0x1bf)]({'prompt':_0x2e05ef},0x0);},{'priority':_0x2a5ebd(0x1ad)}),_0x321dea;}[_0x2d32c7(0x1c6)](){const _0x39e16c=_0x2d32c7,_0x341d14=new _0x351eb3(this[_0x39e16c(0x1ce)]);return _0x341d14[_0x39e16c(0x19d)][_0x39e16c(0x1af)][_0x39e16c(0x1ac)](this[_0x39e16c(0x1a4)])['as'](_0x97744),_0x341d14['on'](_0x39e16c(0x180),()=>{const _0x246c21=_0x39e16c;this[_0x246c21(0x1a4)][_0x246c21(0x1b7)](),this[_0x246c21(0x197)][_0x246c21(0x1b2)](''),this[_0x246c21(0x197)][_0x246c21(0x18f)]();}),_0x341d14;}[_0x2d32c7(0x199)](){const _0x4ac99b=_0x2d32c7,_0x4b1b7c=new _0x26efe7(this[_0x4ac99b(0x1ce)]);return _0x4b1b7c[_0x4ac99b(0x1a5)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),this,_0x4ac99b(0x1a7),(_0x1cffa3,_0xdcadf,_0x345a45)=>_0x1cffa3&&!_0xdcadf&&!!_0x345a45),_0x4b1b7c[_0x4ac99b(0x1a5)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x191)),_0x4b1b7c[_0x4ac99b(0x19c)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),this,_0x4ac99b(0x1a7),(_0x44e414,_0x6d5e,_0x29bf98)=>_0x44e414&&!_0x6d5e&&!!_0x29bf98),_0x4b1b7c[_0x4ac99b(0x19c)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x18d)),_0x4b1b7c[_0x4ac99b(0x193)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),(_0x3ab00f,_0x354772)=>_0x3ab00f&&!_0x354772),_0x4b1b7c[_0x4ac99b(0x193)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x1bc)),_0x4b1b7c[_0x4ac99b(0x195)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x17f)),_0x4b1b7c[_0x4ac99b(0x195)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x1b8)),_0x4b1b7c;}[_0x2d32c7(0x19b)](){const _0x33296c=_0x2d32c7;this[_0x33296c(0x1a7)]='',this[_0x33296c(0x1a6)]=!0x1,this[_0x33296c(0x17f)]=!0x0,this[_0x33296c(0x1cd)][_0x33296c(0x18b)]=!0x0,this[_0x33296c(0x183)][_0x33296c(0x18b)]=!0x0,this[_0x33296c(0x1cd)][_0x33296c(0x18f)]();}[_0x2d32c7(0x1aa)](){const _0x4b3a7a=_0x2d32c7,_0x19b6ed=this[_0x4b3a7a(0x1ce)];this[_0x4b3a7a(0x17f)]=!0x1,this[_0x4b3a7a(0x1b0)]='',this[_0x4b3a7a(0x197)][_0x4b3a7a(0x198)](),this[_0x4b3a7a(0x1a7)]&&(this[_0x4b3a7a(0x197)][_0x4b3a7a(0x19a)][_0x4b3a7a(0x1b6)]=_0x45206a(_0x19b6ed,_0x4b3a7a(0x19f)));}[_0x2d32c7(0x1b5)](_0x4c1f10){const _0x977930=_0x2d32c7,_0x4d6743=this[_0x977930(0x1ce)];this[_0x977930(0x1aa)](),this[_0x977930(0x1a6)]=!0x0,this[_0x977930(0x1c3)][_0x977930(0x182)]=_0x4c1f10||_0x45206a(_0x4d6743,_0x977930(0x1ae)),this[_0x977930(0x1a7)]||(this[_0x977930(0x1cd)][_0x977930(0x18b)]=!0x1);}}
23
+ const _0x29dd19=_0x5c47;function _0xddb9(){const _0x670f56=['464IPVwBo','fire','toolbar','tab','prompt','bindTo','listenTo','focusTracker','replaceContent','contentArea','high','copyButtonView','search','bindTemplate','mainAction','value','element','submit','reset','text','isEnabled','_createHistoryView','focusLast','replaceButton','setTemplate','isError','focus','ck-hidden','startProcessing','handleError','shift\x20+\x20tab','isProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','errorView','AI_ERROR_FAILED','_createToolbar','div','label','Empty\x20history','set','items','focusCycler','insertButton','clear','promptView','render','trim','3757152zfbwcW','ck-ai-form-content','keystrokes','execute','696381AZjgcl','tryAgainEvent','stopProcessing','1602nYDgGD','focusFirst','chain','fieldView','bind','8113945XKPQYE','_promptHistory','add','finishProcessing','_createPromptView','queryView','locale','stopButton','clearHistory','18678RPDIps','createCollection','isVisible','ck-ai-form','REPLACE','109218vGoWCW','17448foLbgW','9050736TqOQuV','submitPrompt','Ask\x20AI\x20to\x20edit\x20or\x20generate','_focusables','delegate','historyGroupView','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','tryAgainButton'];_0xddb9=function(){return _0x670f56;};return _0xddb9();}(function(_0x344476,_0x1906af){const _0x33ed75=_0x5c47,_0x18e13f=_0x344476();while(!![]){try{const _0x1f8c02=parseInt(_0x33ed75(0x12a))/0x1+parseInt(_0x33ed75(0x140))/0x2+parseInt(_0x33ed75(0x13b))/0x3*(-parseInt(_0x33ed75(0x14b))/0x4)+-parseInt(_0x33ed75(0x132))/0x5+parseInt(_0x33ed75(0x142))/0x6+parseInt(_0x33ed75(0x126))/0x7+-parseInt(_0x33ed75(0x141))/0x8*(-parseInt(_0x33ed75(0x12d))/0x9);if(_0x1f8c02===_0x1906af)break;else _0x18e13f['push'](_0x18e13f['shift']());}catch(_0x5e3906){_0x18e13f['push'](_0x18e13f['shift']());}}}(_0xddb9,0xccee3));import{FocusTracker as _0x547078,KeystrokeHandler as _0x19c8bf}from'ckeditor5/src/utils.js';import{View as _0x33c349,FocusCycler as _0x1ea6c8,createLabeledTextarea as _0x4c7526}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2b3fa8,AIFormToolbarViewMainActionLabel as _0x195cab}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1d371d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x36ebde}from'./aiformerrorview.js';import{AIFormPromptView as _0x13f752}from'./aiformpromptview.js';function _0x5c47(_0x4e805a,_0x4f4047){const _0xddb9c1=_0xddb9();return _0x5c47=function(_0x5c47e4,_0x465471){_0x5c47e4=_0x5c47e4-0x122;let _0x1dd87c=_0xddb9c1[_0x5c47e4];return _0x1dd87c;},_0x5c47(_0x4e805a,_0x4f4047);}import{AIHistoryListView as _0x1ac165}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x563b5e}from'./aihistorylistitemview.js';import{PromptHistory as _0x3a2435}from'./prompthistory.js';import{getTranslation as _0x29d0d8}from'../../utils/common-translations.js';import{escape as _0xf49f62}from'es-toolkit/compat';export class AIFormView extends _0x33c349{[_0x29dd19(0x152)];[_0x29dd19(0x128)];[_0x29dd19(0x154)];[_0x29dd19(0x14d)];[_0x29dd19(0x123)];[_0x29dd19(0x16c)];[_0x29dd19(0x145)];[_0x29dd19(0x174)];[_0x29dd19(0x133)];constructor(_0x4fb91f,_0x4591db,_0x4548d2=''){const _0x2c0be5=_0x29dd19;super(_0x4fb91f),this[_0x2c0be5(0x172)](_0x2c0be5(0x15f),!0x0),this[_0x2c0be5(0x172)](_0x2c0be5(0x16a),!0x1),this[_0x2c0be5(0x172)](_0x2c0be5(0x14f),''),this[_0x2c0be5(0x172)](_0x2c0be5(0x15a),''),this[_0x2c0be5(0x172)](_0x2c0be5(0x164),!0x1),this[_0x2c0be5(0x172)](_0x2c0be5(0x159),_0x195cab[_0x2c0be5(0x13f)]),this[_0x2c0be5(0x133)]=new _0x3a2435(),this[_0x2c0be5(0x16c)]=new _0x36ebde(_0x4fb91f),this[_0x2c0be5(0x154)]=new _0x1d371d(_0x4fb91f,_0x4548d2),this[_0x2c0be5(0x154)][_0x2c0be5(0x131)](_0x2c0be5(0x16a))['to'](this),this[_0x2c0be5(0x154)][_0x2c0be5(0x131)](_0x2c0be5(0x15a))['to'](this),this[_0x2c0be5(0x14d)]=this[_0x2c0be5(0x16e)](),this[_0x2c0be5(0x14d)][_0x2c0be5(0x131)](_0x2c0be5(0x159))['to'](this),this[_0x2c0be5(0x123)]=this[_0x2c0be5(0x136)](),this[_0x2c0be5(0x152)]=new _0x547078(),this[_0x2c0be5(0x128)]=new _0x19c8bf(),this[_0x2c0be5(0x145)]=this[_0x2c0be5(0x13c)]([this[_0x2c0be5(0x154)],this[_0x2c0be5(0x154)][_0x2c0be5(0x156)],this[_0x2c0be5(0x14d)],this[_0x2c0be5(0x123)]]),this[_0x2c0be5(0x174)]=new _0x1ea6c8({'focusables':this[_0x2c0be5(0x145)],'focusTracker':this[_0x2c0be5(0x152)],'keystrokeHandler':this[_0x2c0be5(0x128)],'actions':{'focusPrevious':_0x2c0be5(0x169),'focusNext':_0x2c0be5(0x14e)}}),this[_0x2c0be5(0x174)][_0x2c0be5(0x12f)](this[_0x2c0be5(0x123)][_0x2c0be5(0x174)]),this[_0x2c0be5(0x123)][_0x2c0be5(0x137)][_0x2c0be5(0x130)][_0x2c0be5(0x131)](_0x2c0be5(0x15a))['to'](this,_0x2c0be5(0x14f));const _0x14a034=this[_0x2c0be5(0x158)];this[_0x2c0be5(0x163)]({'tag':_0x2c0be5(0x16f),'attributes':{'class':['ck',_0x2c0be5(0x13e),_0x4591db],'tabindex':'-1'},'children':[{'tag':_0x2c0be5(0x16f),'attributes':{'class':['ck',_0x2c0be5(0x127)]},'children':[{'tag':_0x2c0be5(0x16f),'attributes':{'class':[_0x14a034['if'](_0x2c0be5(0x164),_0x2c0be5(0x166),_0x2d9c7a=>!_0x2d9c7a)]},'children':[this[_0x2c0be5(0x16c)]]},this[_0x2c0be5(0x154)],this[_0x2c0be5(0x14d)],this[_0x2c0be5(0x123)]]}]});}[_0x29dd19(0x124)](){const _0x161678=_0x29dd19;super[_0x161678(0x124)](),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x154)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x154)][_0x161678(0x156)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x14d)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x123)][_0x161678(0x15b)]),this[_0x161678(0x128)][_0x161678(0x151)](this[_0x161678(0x15b)]);}[_0x29dd19(0x165)](_0x2c5315=0x1){const _0x157643=_0x29dd19;-0x1===_0x2c5315?this[_0x157643(0x174)][_0x157643(0x161)]():this[_0x157643(0x174)][_0x157643(0x12e)]();}[_0x29dd19(0x15d)](){const _0x3e6f24=_0x29dd19;this[_0x3e6f24(0x14f)]='',this[_0x3e6f24(0x15a)]='',this[_0x3e6f24(0x164)]=!0x1,this[_0x3e6f24(0x123)][_0x3e6f24(0x15d)](),this[_0x3e6f24(0x154)][_0x3e6f24(0x13d)]=!0x1,this[_0x3e6f24(0x14d)][_0x3e6f24(0x13d)]=!0x1;}[_0x29dd19(0x136)](){const _0x6bdd3b=_0x29dd19,_0x1bbfbf=this[_0x6bdd3b(0x138)],_0x4d1789=new _0x13f752(_0x1bbfbf,{'queryView':{'label':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x144)),'creator':_0x4c7526,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x171)),'secondary':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x16b))}}},'filteredView':this[_0x6bdd3b(0x160)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4d1789[_0x6bdd3b(0x131)](_0x6bdd3b(0x15f))['to'](this,_0x6bdd3b(0x15f),this,_0x6bdd3b(0x16a),(_0x4e3aca,_0x9da61)=>_0x4e3aca&&!_0x9da61),this[_0x6bdd3b(0x151)](_0x4d1789,_0x6bdd3b(0x15c),(_0xbd393c,_0x21c100)=>{const _0x16ea0d=_0x6bdd3b;this[_0x16ea0d(0x14f)]=_0x21c100;const _0x76e3ec=_0xf49f62(_0x21c100);this[_0x16ea0d(0x14c)](_0x16ea0d(0x143),_0x76e3ec),_0x21c100[_0x16ea0d(0x125)]()&&this[_0x16ea0d(0x133)][_0x16ea0d(0x134)]({'prompt':_0x76e3ec},0x0);},{'priority':_0x6bdd3b(0x155)}),_0x4d1789;}[_0x29dd19(0x160)](){const _0x13bb08=_0x29dd19,_0x18df93=new _0x1ac165(this[_0x13bb08(0x138)]);return _0x18df93[_0x13bb08(0x147)][_0x13bb08(0x173)][_0x13bb08(0x150)](this[_0x13bb08(0x133)])['as'](_0x563b5e),_0x18df93['on'](_0x13bb08(0x13a),()=>{const _0x35c44c=_0x13bb08;this[_0x35c44c(0x133)][_0x35c44c(0x122)](),this[_0x35c44c(0x123)][_0x35c44c(0x157)](''),this[_0x35c44c(0x123)][_0x35c44c(0x165)]();}),_0x18df93;}[_0x29dd19(0x16e)](){const _0x10c5f4=_0x29dd19,_0x3a2f78=new _0x2b3fa8(this[_0x10c5f4(0x138)]);return _0x3a2f78[_0x10c5f4(0x162)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),this,_0x10c5f4(0x15a),(_0x209e24,_0x2c59de,_0x4d4b6e)=>_0x209e24&&!_0x2c59de&&!!_0x4d4b6e),_0x3a2f78[_0x10c5f4(0x162)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x153)),_0x3a2f78[_0x10c5f4(0x175)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),this,_0x10c5f4(0x15a),(_0x4ac192,_0x5dd90d,_0x40fc20)=>_0x4ac192&&!_0x5dd90d&&!!_0x40fc20),_0x3a2f78[_0x10c5f4(0x175)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x149)),_0x3a2f78[_0x10c5f4(0x14a)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),(_0x5bd22c,_0x8aaca7)=>_0x5bd22c&&!_0x8aaca7),_0x3a2f78[_0x10c5f4(0x14a)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x12b)),_0x3a2f78[_0x10c5f4(0x139)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x16a)),_0x3a2f78[_0x10c5f4(0x139)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x12c)),_0x3a2f78;}[_0x29dd19(0x167)](){const _0x3a978c=_0x29dd19;this[_0x3a978c(0x15a)]='',this[_0x3a978c(0x164)]=!0x1,this[_0x3a978c(0x16a)]=!0x0,this[_0x3a978c(0x154)][_0x3a978c(0x13d)]=!0x0,this[_0x3a978c(0x14d)][_0x3a978c(0x13d)]=!0x0,this[_0x3a978c(0x154)][_0x3a978c(0x165)]();}[_0x29dd19(0x135)](){const _0x5b0a92=_0x29dd19,_0x1c9ef6=this[_0x5b0a92(0x138)];this[_0x5b0a92(0x16a)]=!0x1,this[_0x5b0a92(0x14f)]='',this[_0x5b0a92(0x123)][_0x5b0a92(0x15d)](),this[_0x5b0a92(0x15a)]&&(this[_0x5b0a92(0x123)][_0x5b0a92(0x137)][_0x5b0a92(0x170)]=_0x29d0d8(_0x1c9ef6,_0x5b0a92(0x148)));}[_0x29dd19(0x168)](_0x1b2ef9){const _0x33d3f1=_0x29dd19,_0x124d50=this[_0x33d3f1(0x138)];this[_0x33d3f1(0x135)](),this[_0x33d3f1(0x164)]=!0x0,this[_0x33d3f1(0x16c)][_0x33d3f1(0x15e)]=_0x1b2ef9||_0x29d0d8(_0x124d50,_0x33d3f1(0x16d)),this[_0x33d3f1(0x15a)]||(this[_0x33d3f1(0x154)][_0x33d3f1(0x13d)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b35(){const _0x3a37a1=['fire','474KdqGFT','11BZAPeq','set','add','2720070RPpyGJ','9TfKDwM','children','954020HPJChp','prompt','6OdAjzG','1104467PRexSL','197380dwSazl','124840Htfbbv','locale','execute','1710024nUyRRp','3545vszfep'];_0x3b35=function(){return _0x3a37a1;};return _0x3b35();}(function(_0x54aa92,_0x3e51a5){const _0xd45b67=_0x140f,_0x157fad=_0x54aa92();while(!![]){try{const _0x32e386=-parseInt(_0xd45b67(0x198))/0x1+parseInt(_0xd45b67(0x199))/0x2*(-parseInt(_0xd45b67(0x196))/0x3)+-parseInt(_0xd45b67(0x194))/0x4+-parseInt(_0xd45b67(0x18b))/0x5*(-parseInt(_0xd45b67(0x18d))/0x6)+parseInt(_0xd45b67(0x197))/0x7+-parseInt(_0xd45b67(0x18a))/0x8*(-parseInt(_0xd45b67(0x192))/0x9)+-parseInt(_0xd45b67(0x191))/0xa*(-parseInt(_0xd45b67(0x18e))/0xb);if(_0x32e386===_0x3e51a5)break;else _0x157fad['push'](_0x157fad['shift']());}catch(_0x1cb4d2){_0x157fad['push'](_0x157fad['shift']());}}}(_0x3b35,0x21e4b));function _0x140f(_0x4057a8,_0x1b78ce){const _0x3b3541=_0x3b35();return _0x140f=function(_0x140f68,_0x112373){_0x140f68=_0x140f68-0x18a;let _0x497ab6=_0x3b3541[_0x140f68];return _0x497ab6;},_0x140f(_0x4057a8,_0x1b78ce);}import{ListItemView as _0x183b50,ButtonView as _0x397bed,ButtonLabelView as _0x204b7e}from'ckeditor5/src/ui.js';import{unescape as _0x26ff13}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x183b50{constructor(_0x4b5ac8){const _0x2dc2ea=_0x140f;super();const _0x27ca14=new _0x204b7e(),_0x32ef93=new _0x397bed(this[_0x2dc2ea(0x19a)],_0x27ca14);this[_0x2dc2ea(0x193)][_0x2dc2ea(0x190)](_0x32ef93),_0x32ef93[_0x2dc2ea(0x18f)]({'label':_0x4b5ac8[_0x2dc2ea(0x195)],'withText':!0x0}),_0x32ef93['on'](_0x2dc2ea(0x19b),()=>{const _0x398d75=_0x2dc2ea;this[_0x398d75(0x18c)](_0x398d75(0x19b),{'value':_0x26ff13(_0x4b5ac8[_0x398d75(0x195)])});});}}
23
+ function _0x5693(_0x1e1846,_0xa09b7c){const _0x491ab3=_0x491a();return _0x5693=function(_0x569317,_0x291bfa){_0x569317=_0x569317-0xc8;let _0x477974=_0x491ab3[_0x569317];return _0x477974;},_0x5693(_0x1e1846,_0xa09b7c);}function _0x491a(){const _0x247818=['children','set','fire','locale','1HiAAsl','add','execute','210yRfqBU','322994DJMLPU','1747056ueoFna','3431826vvhKkx','prompt','2989756pNVwnw','427560jtLOis','16ChgXND','31508kUdfUL','430780dVemdn'];_0x491a=function(){return _0x247818;};return _0x491a();}(function(_0x488f69,_0x21a6d6){const _0x24044b=_0x5693,_0x1fb190=_0x488f69();while(!![]){try{const _0x4abc71=-parseInt(_0x24044b(0xcb))/0x1*(parseInt(_0x24044b(0xcf))/0x2)+parseInt(_0x24044b(0xce))/0x3*(parseInt(_0x24044b(0xd6))/0x4)+parseInt(_0x24044b(0xd4))/0x5+parseInt(_0x24044b(0xd0))/0x6+parseInt(_0x24044b(0xd3))/0x7+-parseInt(_0x24044b(0xd5))/0x8*(parseInt(_0x24044b(0xd1))/0x9)+-parseInt(_0x24044b(0xd7))/0xa;if(_0x4abc71===_0x21a6d6)break;else _0x1fb190['push'](_0x1fb190['shift']());}catch(_0x5e8782){_0x1fb190['push'](_0x1fb190['shift']());}}}(_0x491a,0x5eb8f));import{ListItemView as _0x5853d1,ButtonView as _0x56e1d0,ButtonLabelView as _0x217e19}from'ckeditor5/src/ui.js';import{unescape as _0x3a8dad}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x5853d1{constructor(_0x47c3c6){const _0xc4aa7=_0x5693;super();const _0x3e2194=new _0x217e19(),_0x210c32=new _0x56e1d0(this[_0xc4aa7(0xca)],_0x3e2194);this[_0xc4aa7(0xd8)][_0xc4aa7(0xcc)](_0x210c32),_0x210c32[_0xc4aa7(0xc8)]({'label':_0x47c3c6[_0xc4aa7(0xd2)],'withText':!0x0}),_0x210c32['on'](_0xc4aa7(0xcd),()=>{const _0x25b5e9=_0xc4aa7;this[_0x25b5e9(0xc9)](_0x25b5e9(0xcd),{'value':_0x3a8dad(_0x47c3c6[_0x25b5e9(0xd2)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3baf1d=_0x49c5;(function(_0x79d60e,_0x2ea7f9){const _0x4c5dd8=_0x49c5,_0x34a953=_0x79d60e();while(!![]){try{const _0x2badff=-parseInt(_0x4c5dd8(0x116))/0x1+-parseInt(_0x4c5dd8(0x11d))/0x2*(parseInt(_0x4c5dd8(0x10c))/0x3)+parseInt(_0x4c5dd8(0x120))/0x4+parseInt(_0x4c5dd8(0x123))/0x5+parseInt(_0x4c5dd8(0x10f))/0x6+-parseInt(_0x4c5dd8(0x11e))/0x7*(parseInt(_0x4c5dd8(0x10a))/0x8)+-parseInt(_0x4c5dd8(0x10d))/0x9*(-parseInt(_0x4c5dd8(0x115))/0xa);if(_0x2badff===_0x2ea7f9)break;else _0x34a953['push'](_0x34a953['shift']());}catch(_0x223b43){_0x34a953['push'](_0x34a953['shift']());}}}(_0x1f36,0x29d2a));function _0x1f36(){const _0xa68a7=['118993URvDRf','_createClearHistoryButton','818444jrgCmp','length','historyGroupView','1080280JGgvVf','items','16AIkSBc','delegate','103485ZzYIVU','45VjcnYP','clearHistory','575196bNhHMR','execute','clearHistoryButton','Prompt\x20history','add','Clear','85190OujFBl','250339rePFaf','filter','fire','set','locale','label','children','6ctxVYX'];_0x1f36=function(){return _0xa68a7;};return _0x1f36();}function _0x49c5(_0x4b3f1f,_0x115ac6){const _0x1f3610=_0x1f36();return _0x49c5=function(_0x49c590,_0x517f52){_0x49c590=_0x49c590-0x109;let _0x28ece9=_0x1f3610[_0x49c590];return _0x28ece9;},_0x49c5(_0x4b3f1f,_0x115ac6);}import{ListView as _0x10f288,ListItemGroupView as _0x25dfba,ButtonView as _0x3ef77c}from'ckeditor5/src/ui.js';import{getTranslation as _0x2fb84b}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x10f288{[_0x3baf1d(0x122)];[_0x3baf1d(0x111)];constructor(_0x538148){const _0x10ca83=_0x3baf1d;super(_0x538148),this[_0x10ca83(0x111)]=this[_0x10ca83(0x11f)](),this[_0x10ca83(0x122)]=new _0x25dfba(),this[_0x10ca83(0x122)][_0x10ca83(0x11c)][_0x10ca83(0x113)](this[_0x10ca83(0x111)],0x1),this[_0x10ca83(0x122)][_0x10ca83(0x11b)]=_0x2fb84b(_0x538148,_0x10ca83(0x112)),this[_0x10ca83(0x122)][_0x10ca83(0x109)][_0x10ca83(0x10b)](_0x10ca83(0x110))['to'](this),this[_0x10ca83(0x109)][_0x10ca83(0x113)](this[_0x10ca83(0x122)]);}[_0x3baf1d(0x117)](){const _0x366fe5=_0x3baf1d;let _0x120515=0x0;for(const _0x15554a of this[_0x366fe5(0x109)])_0x120515+=_0x15554a[_0x366fe5(0x109)][_0x366fe5(0x121)];return{'resultsCount':_0x120515,'totalItemsCount':_0x120515};}[_0x3baf1d(0x11f)](){const _0x31f789=_0x3baf1d,_0x32021f=this[_0x31f789(0x11a)],_0x4b7eb1=new _0x3ef77c(this[_0x31f789(0x11a)]);return _0x4b7eb1[_0x31f789(0x119)]({'label':'('+_0x2fb84b(_0x32021f,_0x31f789(0x114))+')','withText':!0x0}),_0x4b7eb1['on'](_0x31f789(0x110),()=>this[_0x31f789(0x118)](_0x31f789(0x10e))),_0x4b7eb1;}}
23
+ const _0x2a7b08=_0x2a43;(function(_0x1627a1,_0x178447){const _0x3c4bd9=_0x2a43,_0x2370d1=_0x1627a1();while(!![]){try{const _0x73cec8=-parseInt(_0x3c4bd9(0x119))/0x1*(-parseInt(_0x3c4bd9(0x125))/0x2)+parseInt(_0x3c4bd9(0x12d))/0x3+parseInt(_0x3c4bd9(0x115))/0x4*(-parseInt(_0x3c4bd9(0x120))/0x5)+parseInt(_0x3c4bd9(0x113))/0x6*(-parseInt(_0x3c4bd9(0x11c))/0x7)+-parseInt(_0x3c4bd9(0x11e))/0x8*(parseInt(_0x3c4bd9(0x114))/0x9)+-parseInt(_0x3c4bd9(0x117))/0xa*(parseInt(_0x3c4bd9(0x126))/0xb)+parseInt(_0x3c4bd9(0x12e))/0xc;if(_0x73cec8===_0x178447)break;else _0x2370d1['push'](_0x2370d1['shift']());}catch(_0x22ec7f){_0x2370d1['push'](_0x2370d1['shift']());}}}(_0x2866,0x93ff3));function _0x2866(){const _0x2d5098=['children','7MFciFu','_createClearHistoryButton','34856mmPzwV','items','17705QEjYUH','locale','clearHistory','Prompt\x20history','execute','88768EaEryq','517ikcHHG','add','label','set','fire','length','Clear','3016794NcwKFK','9369744YmsVIK','clearHistoryButton','1615656QFwdIC','1953RPAYsz','12gpzyjk','filter','37610Ucrcbt','historyGroupView','5ruklEn','delegate'];_0x2866=function(){return _0x2d5098;};return _0x2866();}function _0x2a43(_0x2de865,_0x311943){const _0x2866be=_0x2866();return _0x2a43=function(_0x2a4342,_0x5c0e01){_0x2a4342=_0x2a4342-0x113;let _0x417ba5=_0x2866be[_0x2a4342];return _0x417ba5;},_0x2a43(_0x2de865,_0x311943);}import{ListView as _0x3e1fbc,ListItemGroupView as _0x1b264d,ButtonView as _0x304e1d}from'ckeditor5/src/ui.js';import{getTranslation as _0xdd0bc2}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3e1fbc{[_0x2a7b08(0x118)];[_0x2a7b08(0x12f)];constructor(_0x3ff719){const _0x285680=_0x2a7b08;super(_0x3ff719),this[_0x285680(0x12f)]=this[_0x285680(0x11d)](),this[_0x285680(0x118)]=new _0x1b264d(),this[_0x285680(0x118)][_0x285680(0x11b)][_0x285680(0x127)](this[_0x285680(0x12f)],0x1),this[_0x285680(0x118)][_0x285680(0x128)]=_0xdd0bc2(_0x3ff719,_0x285680(0x123)),this[_0x285680(0x118)][_0x285680(0x11f)][_0x285680(0x11a)](_0x285680(0x124))['to'](this),this[_0x285680(0x11f)][_0x285680(0x127)](this[_0x285680(0x118)]);}[_0x2a7b08(0x116)](){const _0x59298c=_0x2a7b08;let _0x3ae1ef=0x0;for(const _0x12969b of this[_0x59298c(0x11f)])_0x3ae1ef+=_0x12969b[_0x59298c(0x11f)][_0x59298c(0x12b)];return{'resultsCount':_0x3ae1ef,'totalItemsCount':_0x3ae1ef};}[_0x2a7b08(0x11d)](){const _0x5de2da=_0x2a7b08,_0x5726c6=this[_0x5de2da(0x121)],_0x54324b=new _0x304e1d(this[_0x5de2da(0x121)]);return _0x54324b[_0x5de2da(0x129)]({'label':'('+_0xdd0bc2(_0x5726c6,_0x5de2da(0x12c))+')','withText':!0x0}),_0x54324b['on'](_0x5de2da(0x124),()=>this[_0x5de2da(0x12a)](_0x5de2da(0x122))),_0x54324b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa042b4=_0x2b4a;(function(_0xcbc93e,_0x58e5df){const _0x83123a=_0x2b4a,_0x2b38ae=_0xcbc93e();while(!![]){try{const _0x1cc80d=-parseInt(_0x83123a(0x120))/0x1*(-parseInt(_0x83123a(0x12a))/0x2)+parseInt(_0x83123a(0x129))/0x3*(parseInt(_0x83123a(0x125))/0x4)+-parseInt(_0x83123a(0x131))/0x5*(-parseInt(_0x83123a(0x128))/0x6)+parseInt(_0x83123a(0x12e))/0x7+-parseInt(_0x83123a(0x13a))/0x8*(-parseInt(_0x83123a(0x138))/0x9)+parseInt(_0x83123a(0x132))/0xa+parseInt(_0x83123a(0x134))/0xb*(-parseInt(_0x83123a(0x122))/0xc);if(_0x1cc80d===_0x58e5df)break;else _0x2b38ae['push'](_0x2b38ae['shift']());}catch(_0x56652a){_0x2b38ae['push'](_0x2b38ae['shift']());}}}(_0x2dbb,0x3028f));import{Collection as _0x2b01a4}from'ckeditor5/src/utils.js';const So=_0xa042b4(0x139);function _0x2b4a(_0x3819f9,_0x2ba167){const _0x2dbb4f=_0x2dbb();return _0x2b4a=function(_0x2b4aad,_0xfc3e0c){_0x2b4aad=_0x2b4aad-0x11f;let _0xbc20f1=_0x2dbb4f[_0x2b4aad];return _0xbc20f1;},_0x2b4a(_0x3819f9,_0x2ba167);}export class PromptHistory extends _0x2b01a4{constructor(){const _0xf313ca=_0xa042b4;super(),this[_0xf313ca(0x136)](),this['on'](_0xf313ca(0x133),(_0x4b0b91,_0xc76900)=>{const _0x3620fe=_0xf313ca,_0x3696d8=fo(_0xc76900[_0x3620fe(0x12b)]);for(const _0x4bdabb of this)if(_0x4bdabb!=_0xc76900&&fo(_0x4bdabb[_0x3620fe(0x12b)])===_0x3696d8){this[_0x3620fe(0x12f)](_0x4bdabb);break;}this[_0x3620fe(0x130)]>0x14&&this[_0x3620fe(0x12f)](this[_0x3620fe(0x121)]),this[_0x3620fe(0x127)]();}),this['on'](_0xf313ca(0x12f),()=>{const _0x30f8aa=_0xf313ca;this[_0x30f8aa(0x127)]();});}[_0xa042b4(0x136)](){const _0x4b1166=_0xa042b4,_0x5c019d=sessionStorage[_0x4b1166(0x135)](So)||'[]';this[_0x4b1166(0x12c)](JSON[_0x4b1166(0x123)](_0x5c019d));}[_0xa042b4(0x127)](){const _0xe6a4a2=_0xa042b4;sessionStorage[_0xe6a4a2(0x11f)](So,JSON[_0xe6a4a2(0x124)](this[_0xe6a4a2(0x12d)](_0x3b6a00=>_0x3b6a00)));}}function fo(_0x3fe9ff){const _0x37934f=_0xa042b4;return _0x3fe9ff[_0x37934f(0x137)]()[_0x37934f(0x126)]();}function _0x2dbb(){const _0x360344=['204pGssBr','prompt','addMany','map','1468362urKCRS','remove','length','25DcFJgG','3497940scSBcD','add','12388387gkDyuR','getItem','_loadFromSessionStorage','toLowerCase','651645ySbXHR','CKEditor/AIFormView/PromptHistory','24jMhhIF','setItem','814RszjWl','last','12IsBUcx','parse','stringify','16JliCoD','trim','_saveToSessionStorage','161166hjupQG','247029wZvLCx'];_0x2dbb=function(){return _0x360344;};return _0x2dbb();}
23
+ function _0x3e9d(_0x14f425,_0xc002b4){const _0x218a6e=_0x218a();return _0x3e9d=function(_0x3e9d9c,_0x362c28){_0x3e9d9c=_0x3e9d9c-0x1ba;let _0x27a7af=_0x218a6e[_0x3e9d9c];return _0x27a7af;},_0x3e9d(_0x14f425,_0xc002b4);}const _0x3704d3=_0x3e9d;(function(_0xbdcf06,_0x3bd4b0){const _0x1360c4=_0x3e9d,_0x47f39c=_0xbdcf06();while(!![]){try{const _0x1e0d56=-parseInt(_0x1360c4(0x1ce))/0x1+-parseInt(_0x1360c4(0x1bf))/0x2*(-parseInt(_0x1360c4(0x1cc))/0x3)+-parseInt(_0x1360c4(0x1c7))/0x4+parseInt(_0x1360c4(0x1ba))/0x5*(parseInt(_0x1360c4(0x1c1))/0x6)+parseInt(_0x1360c4(0x1c8))/0x7*(parseInt(_0x1360c4(0x1cf))/0x8)+-parseInt(_0x1360c4(0x1ca))/0x9*(parseInt(_0x1360c4(0x1c3))/0xa)+parseInt(_0x1360c4(0x1c5))/0xb*(parseInt(_0x1360c4(0x1c9))/0xc);if(_0x1e0d56===_0x3bd4b0)break;else _0x47f39c['push'](_0x47f39c['shift']());}catch(_0x48e215){_0x47f39c['push'](_0x47f39c['shift']());}}}(_0x218a,0x40ed4));import{Collection as _0x255224}from'ckeditor5/src/utils.js';function _0x218a(){const _0x115cf9=['parse','prompt','getItem','length','155RohYDM','trim','_loadFromSessionStorage','remove','last','37270yAOyqI','toLowerCase','61242XTdGDV','_saveToSessionStorage','2203780YZUjnq','map','1147509inOXaN','setItem','593012roAEIl','154EHFiNM','60mJnNYo','18VDTkby','addMany','66KfGkvs','stringify','404649CbuKJA','4224AByZvq','add','CKEditor/AIFormView/PromptHistory'];_0x218a=function(){return _0x115cf9;};return _0x218a();}const So=_0x3704d3(0x1d1);export class PromptHistory extends _0x255224{constructor(){const _0x4d715c=_0x3704d3;super(),this[_0x4d715c(0x1bc)](),this['on'](_0x4d715c(0x1d0),(_0x1744c3,_0x135c3b)=>{const _0x5a2e8f=_0x4d715c,_0x1c1103=fo(_0x135c3b[_0x5a2e8f(0x1d3)]);for(const _0x13e84a of this)if(_0x13e84a!=_0x135c3b&&fo(_0x13e84a[_0x5a2e8f(0x1d3)])===_0x1c1103){this[_0x5a2e8f(0x1bd)](_0x13e84a);break;}this[_0x5a2e8f(0x1d5)]>0x14&&this[_0x5a2e8f(0x1bd)](this[_0x5a2e8f(0x1be)]),this[_0x5a2e8f(0x1c2)]();}),this['on'](_0x4d715c(0x1bd),()=>{const _0x23032e=_0x4d715c;this[_0x23032e(0x1c2)]();});}[_0x3704d3(0x1bc)](){const _0x44d269=_0x3704d3,_0x2642b7=sessionStorage[_0x44d269(0x1d4)](So)||'[]';this[_0x44d269(0x1cb)](JSON[_0x44d269(0x1d2)](_0x2642b7));}[_0x3704d3(0x1c2)](){const _0x2f381f=_0x3704d3;sessionStorage[_0x2f381f(0x1c6)](So,JSON[_0x2f381f(0x1cd)](this[_0x2f381f(0x1c4)](_0x4b254f=>_0x4b254f)));}}function fo(_0x48f319){const _0x4e6df2=_0x3704d3;return _0x48f319[_0x4e6df2(0x1c0)]()[_0x4e6df2(0x1bb)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x119d4a=_0x4827;function _0x3c89(){const _0x5b6100=['isCollapsed','showUI','execute','model','selection','document','set','hasContent','change:_hasContext','ai.assistant.disabledElements','from','name','change:isEnabled','1929955pPpFqv','_commandDefinitions','plugins','element','12pesirO','isEmpty','getItems','1675884VrXenZ','2842704JZgUWc','enabledCommandsIds','config','add','requiresContent','getRanges','4738405WKaxyV','getSelectedBlocks','editor','732768YMPLiW','getFirstRange','get','11114912PlpNye','length','860270wjctAN','refresh','isEnabled','includes','custom','_hasContext','values'];_0x3c89=function(){return _0x5b6100;};return _0x3c89();}(function(_0x16a272,_0x575128){const _0x2c1095=_0x4827,_0x4d6cce=_0x16a272();while(!![]){try{const _0x518d8d=-parseInt(_0x2c1095(0x184))/0x1+-parseInt(_0x2c1095(0x189))/0x2+-parseInt(_0x2c1095(0x1a4))/0x3+-parseInt(_0x2c1095(0x1a5))/0x4+parseInt(_0x2c1095(0x19d))/0x5*(parseInt(_0x2c1095(0x1a1))/0x6)+parseInt(_0x2c1095(0x181))/0x7+parseInt(_0x2c1095(0x187))/0x8;if(_0x518d8d===_0x575128)break;else _0x4d6cce['push'](_0x4d6cce['shift']());}catch(_0x2942a2){_0x4d6cce['push'](_0x4d6cce['shift']());}}}(_0x3c89,0x63226));function _0x4827(_0x375b2c,_0x1fb83b){const _0x3c893e=_0x3c89();return _0x4827=function(_0x4827d7,_0x1ed848){_0x4827d7=_0x4827d7-0x17e;let _0x6ecb2a=_0x3c893e[_0x4827d7];return _0x6ecb2a;},_0x4827(_0x375b2c,_0x1fb83b);}import{Command as _0x48cc25}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x184f95}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x48cc25{[_0x119d4a(0x19e)];constructor(_0x29f082,_0x2f4503){const _0x5bab85=_0x119d4a;super(_0x29f082),this[_0x5bab85(0x19e)]=_0x2f4503,this[_0x5bab85(0x196)](_0x5bab85(0x1a6),[]),this['on'](_0x5bab85(0x198),(_0xcf9ca3,_0x52ddfb,_0x2d3dc5)=>{const _0x127428=_0x5bab85;this[_0x127428(0x18b)]&&(this[_0x127428(0x1a6)]=os(this[_0x127428(0x19e)],_0x2d3dc5));}),this[_0x5bab85(0x196)](_0x5bab85(0x18e),!0x1),this['on'](_0x5bab85(0x19c),(_0x5357c8,_0x578ecf,_0x44eb46)=>{const _0x2b0ee4=_0x5bab85;this[_0x2b0ee4(0x1a6)]=_0x44eb46?os(this[_0x2b0ee4(0x19e)],this[_0x2b0ee4(0x18e)]):[];});}[_0x119d4a(0x18a)](){const _0x2196b4=_0x119d4a,_0xdf64e3=this[_0x2196b4(0x183)][_0x2196b4(0x193)];this[_0x2196b4(0x18e)]=function(_0x107719){const _0xb19cfd=_0x2196b4,_0x5712b8=_0x107719[_0xb19cfd(0x195)][_0xb19cfd(0x194)];return _0x5712b8[_0xb19cfd(0x190)]?0x0!==[..._0x5712b8[_0xb19cfd(0x182)]()][_0xb19cfd(0x188)]&&![..._0x5712b8[_0xb19cfd(0x182)]()][0x0][_0xb19cfd(0x1a2)]:!!_0x107719[_0xb19cfd(0x197)](_0x5712b8[_0xb19cfd(0x185)]());}(_0xdf64e3);const _0x19bbf0=_0xdf64e3[_0x2196b4(0x195)][_0x2196b4(0x194)],_0x146488=this[_0x2196b4(0x183)][_0x2196b4(0x1a7)][_0x2196b4(0x186)](_0x2196b4(0x199));for(const _0x4428e6 of _0x19bbf0[_0x2196b4(0x180)]())for(const _0x138366 of _0x4428e6[_0x2196b4(0x1a3)]())if(_0x138366['is'](_0x2196b4(0x1a0))&&_0x146488[_0x2196b4(0x18c)](_0x138366[_0x2196b4(0x19b)]))return void(this[_0x2196b4(0x18b)]=!0x1);this[_0x2196b4(0x18b)]=!0x0;}[_0x119d4a(0x192)](_0x29808f='',_0x25762e='',_0x396c2e=_0x119d4a(0x18d)){const _0x10ccf1=_0x119d4a;this[_0x10ccf1(0x183)][_0x10ccf1(0x19f)][_0x10ccf1(0x186)](_0x184f95)[_0x10ccf1(0x191)](_0x29808f,_0x25762e,_0x396c2e);}}function os(_0x3d220d,_0xe8e557){const _0x4dbb24=_0x119d4a,_0x8f0bb3=new Set();for(const _0x5d36fd of _0x3d220d[_0x4dbb24(0x18f)]())(_0xe8e557||!0x1===_0x5d36fd[_0x4dbb24(0x17f)])&&_0x8f0bb3[_0x4dbb24(0x17e)](_0x5d36fd['id']);return Array[_0x4dbb24(0x19a)](_0x8f0bb3);}
23
+ function _0x13bf(_0xd27b82,_0x1731a3){const _0x18c040=_0x18c0();return _0x13bf=function(_0x13bf83,_0x440438){_0x13bf83=_0x13bf83-0x199;let _0xcb51c4=_0x18c040[_0x13bf83];return _0xcb51c4;},_0x13bf(_0xd27b82,_0x1731a3);}const _0xbffc46=_0x13bf;(function(_0x1aafdd,_0x137daf){const _0x1508c2=_0x13bf,_0x18f0bd=_0x1aafdd();while(!![]){try{const _0xde29ef=-parseInt(_0x1508c2(0x1ba))/0x1*(parseInt(_0x1508c2(0x199))/0x2)+-parseInt(_0x1508c2(0x1a6))/0x3+-parseInt(_0x1508c2(0x1c0))/0x4+-parseInt(_0x1508c2(0x19b))/0x5+parseInt(_0x1508c2(0x1a0))/0x6*(-parseInt(_0x1508c2(0x1a9))/0x7)+parseInt(_0x1508c2(0x1b0))/0x8+-parseInt(_0x1508c2(0x1c2))/0x9*(-parseInt(_0x1508c2(0x1ab))/0xa);if(_0xde29ef===_0x137daf)break;else _0x18f0bd['push'](_0x18f0bd['shift']());}catch(_0x26d8e5){_0x18f0bd['push'](_0x18f0bd['shift']());}}}(_0x18c0,0x44e48));import{Command as _0xf95007}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x8f39b1}from'../aiassistantui.js';function _0x18c0(){const _0x3adda2=['get','217940SkzYGg','change:isEnabled','change:_hasContext','add','set','3279168NPSUUP','enabledCommandsIds','getRanges','element','isEnabled','length','document','ai.assistant.disabledElements','getSelectedBlocks','refresh','7382DdBWhW','hasContent','model','requiresContent','isEmpty','custom','1144960zCkdvW','showUI','405atMvKK','name','_hasContext','28zBpPdK','values','1053170zoNxUZ','execute','getFirstRange','isCollapsed','config','42raeyyT','editor','_commandDefinitions','plugins','from','selection','132738dKbUpY','includes','getItems','463974VOFCMO'];_0x18c0=function(){return _0x3adda2;};return _0x18c0();}export class ShowAIAssistantCommand extends _0xf95007{[_0xbffc46(0x1a2)];constructor(_0x555f79,_0x218780){const _0x3de225=_0xbffc46;super(_0x555f79),this[_0x3de225(0x1a2)]=_0x218780,this[_0x3de225(0x1af)](_0x3de225(0x1b1),[]),this['on'](_0x3de225(0x1ad),(_0x435496,_0xd76e24,_0x2af7ca)=>{const _0x48daf3=_0x3de225;this[_0x48daf3(0x1b4)]&&(this[_0x48daf3(0x1b1)]=ns(this[_0x48daf3(0x1a2)],_0x2af7ca));}),this[_0x3de225(0x1af)](_0x3de225(0x1c4),!0x1),this['on'](_0x3de225(0x1ac),(_0x3cbb5a,_0x35a629,_0x203574)=>{const _0x316c22=_0x3de225;this[_0x316c22(0x1b1)]=_0x203574?ns(this[_0x316c22(0x1a2)],this[_0x316c22(0x1c4)]):[];});}[_0xbffc46(0x1b9)](){const _0x232493=_0xbffc46,_0x3ee53a=this[_0x232493(0x1a1)][_0x232493(0x1bc)];this[_0x232493(0x1c4)]=function(_0x167bcd){const _0x58f775=_0x232493,_0x1b6379=_0x167bcd[_0x58f775(0x1b6)][_0x58f775(0x1a5)];return _0x1b6379[_0x58f775(0x19e)]?0x0!==[..._0x1b6379[_0x58f775(0x1b8)]()][_0x58f775(0x1b5)]&&![..._0x1b6379[_0x58f775(0x1b8)]()][0x0][_0x58f775(0x1be)]:!!_0x167bcd[_0x58f775(0x1bb)](_0x1b6379[_0x58f775(0x19d)]());}(_0x3ee53a);const _0x128d73=_0x3ee53a[_0x232493(0x1b6)][_0x232493(0x1a5)],_0x3994c3=this[_0x232493(0x1a1)][_0x232493(0x19f)][_0x232493(0x1aa)](_0x232493(0x1b7));for(const _0x26e81 of _0x128d73[_0x232493(0x1b2)]())for(const _0x27e986 of _0x26e81[_0x232493(0x1a8)]())if(_0x27e986['is'](_0x232493(0x1b3))&&_0x3994c3[_0x232493(0x1a7)](_0x27e986[_0x232493(0x1c3)]))return void(this[_0x232493(0x1b4)]=!0x1);this[_0x232493(0x1b4)]=!0x0;}[_0xbffc46(0x19c)](_0x4b1db3='',_0x4d7d63='',_0x4a443=_0xbffc46(0x1bf)){const _0x2e2a03=_0xbffc46;this[_0x2e2a03(0x1a1)][_0x2e2a03(0x1a3)][_0x2e2a03(0x1aa)](_0x8f39b1)[_0x2e2a03(0x1c1)](_0x4b1db3,_0x4d7d63,_0x4a443);}}function ns(_0x48aecd,_0x4a615a){const _0x114926=_0xbffc46,_0x5eb3b0=new Set();for(const _0x4fc221 of _0x48aecd[_0x114926(0x19a)]())(_0x4a615a||!0x1===_0x4fc221[_0x114926(0x1bd)])&&_0x5eb3b0[_0x114926(0x1ae)](_0x4fc221['id']);return Array[_0x114926(0x1a4)](_0x5eb3b0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4f594a,_0x4defc1,_0x594aa0){const t=_0x4f594a['t'];switch(_0x4defc1){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',_0x594aa0);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x594aa0);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'},_0x594aa0);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 _0x4defc1;}}
23
+ export function getTranslation(_0xbc01fe,_0x2d6ed0,_0x4897b1){const t=_0xbc01fe['t'];switch(_0x2d6ed0){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',_0x4897b1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4897b1);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'},_0x4897b1);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 _0x2d6ed0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x3c1f0d,_0x238298){const _0x39b378=(0x0,_0x238298['t'])('Other');return _0x3c1f0d['length']?'groupId'in _0x3c1f0d[0x0]?_0x3c1f0d:[{'groupId':'_ungrouppedCommands','groupLabel':_0x39b378,'order':0x1/0x0,'commands':_0x3c1f0d}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x39b378,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x803cab,_0xf31101){const _0x1d07c7=(0x0,_0xf31101['t'])('Other');return _0x803cab['length']?'groupId'in _0x803cab[0x0]?_0x803cab:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d07c7,'order':0x1/0x0,'commands':_0x803cab}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d07c7,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x15a5(_0x4856f7,_0x2c310e){const _0x43b345=_0x43b3();return _0x15a5=function(_0x15a5a7,_0x44c6aa){_0x15a5a7=_0x15a5a7-0x78;let _0x6ad0cd=_0x43b345[_0x15a5a7];return _0x6ad0cd;},_0x15a5(_0x4856f7,_0x2c310e);}const _0x1d91cd=_0x15a5;(function(_0x2f8218,_0x146c2b){const _0x37c6b4=_0x15a5,_0x1b12dd=_0x2f8218();while(!![]){try{const _0xda67b6=-parseInt(_0x37c6b4(0xde))/0x1*(parseInt(_0x37c6b4(0xb4))/0x2)+-parseInt(_0x37c6b4(0xd8))/0x3*(parseInt(_0x37c6b4(0x97))/0x4)+parseInt(_0x37c6b4(0xd9))/0x5*(parseInt(_0x37c6b4(0x90))/0x6)+-parseInt(_0x37c6b4(0xc5))/0x7+-parseInt(_0x37c6b4(0xb5))/0x8+-parseInt(_0x37c6b4(0xaa))/0x9+-parseInt(_0x37c6b4(0x91))/0xa*(-parseInt(_0x37c6b4(0xab))/0xb);if(_0xda67b6===_0x146c2b)break;else _0x1b12dd['push'](_0x1b12dd['shift']());}catch(_0x1a3f37){_0x1b12dd['push'](_0x1b12dd['shift']());}}}(_0x43b3,0x872d9));import{ContextPlugin as _0x15dc63}from'ckeditor5/src/core.js';import{AIConnector as _0x112393}from'../aicore/aiconnector.js';import{AIEditing as _0x86949d}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x21226a,AIBalloonView as _0xc09b77}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x43b3(){const _0x6c19ba=['showFakeVisualSelection','once','length','AI_ACTIONS_SELECTION_REMOVED_ERROR','markers','index','bottom','ai-selection','ai.availableReplyActions','7137186TnjWiu','ranges','isOfficialPlugin','_pendingRenderCallback','setupRotator','config','showBlockingError','locale','getIntersection','render','updatePosition','isOpen','balloonView','model','context','AIBalloon','differ','startsWith','bind','153eWWrOr','302935BPXKPL','_setupVisualSelection','ai-balloon-selection','icon','requires','18FExGxw','_showDialog','document','isEqual','hide','pluginName','height','_config','getMarkersGroup','rootName','headerView','_isUpdatingMarkers','editing','updateContent','aiBalloon','round','max','ai-balloon-','isPremiumPlugin','AIEditing','stopAutoScroll','getVisible','_calculateDialogPosition','left','window','\x20ai-balloon-rotator','_calculateOptimalTopPosition','commands','change','Dialog','off','delegate','102KaGAAD','30TYeaxZ','trackChanges','root','start','value','getChangedMarkers','61168DEhyDR','ai-balloon','_cleanupMarkerRemovalListener','fire','$graveyard','isTrackChangesOn','iconView','plugins','listenTo','_getSelectionElements','view','ai-selection:','end','_updateBalloon','show','showRotator','startAutoScroll','selectionRemoved','mainView','9050598ZWcYeN','12591689YvkgoU','label','open','getBoundingRect','close','top','content','title','hideFakeVisualSelection','29658XDCoUM','6706824mIerJF','width','_setupMarkerRemovalListener','stopListening','dialogClosed','filter','get'];_0x43b3=function(){return _0x6c19ba;};return _0x43b3();}import{getAllMarkersDomElementsSorted as _0xd2e375}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2fe053,Rect as _0x1886d0,scrollViewportToShowTarget as _0x2ed5d4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xcf8872}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x28a520}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xc1c6c2}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x21226a,_0x1d91cd(0xb9),_0x1d91cd(0xa8)];const lt=0xa;export class AIBalloon extends _0x15dc63{static get[_0x1d91cd(0xdd)](){return[_0x112393,_0x86949d];}static get[_0x1d91cd(0xe3)](){const _0x1c4fe5=_0x1d91cd;return _0x1c4fe5(0xd4);}static get[_0x1d91cd(0xc7)](){return!0x0;}static get[_0x1d91cd(0x82)](){return!0x0;}[_0x1d91cd(0xd0)]=!0x1;[_0x1d91cd(0xe5)];[_0x1d91cd(0x7b)]=!0x1;[_0x1d91cd(0xc8)]=null;[_0x1d91cd(0xad)](_0x60cb8c){const _0x126970=_0x1d91cd,_0x27d531=_0xcf8872(this[_0x126970(0xd3)]);if(this[_0x126970(0xe5)]=_0x60cb8c,this[_0x126970(0xd0)])return void this[_0x126970(0xa4)](_0x60cb8c);const _0x30864a=this[_0x126970(0xd3)][_0x126970(0xca)][_0x126970(0xbb)](_0x126970(0xc4))||[..._0x28a520],_0x47e21b=_0x27d531?.[_0x126970(0x8b)][_0x126970(0xbb)](_0x126970(0x92)),_0x5382f0=_0x47e21b?.[_0x126970(0x95)];this[_0x126970(0xd1)]=new _0xc09b77(_0x27d531[_0x126970(0xcc)],_0x60cb8c,_0x30864a,!!_0x5382f0),this[_0x126970(0xd1)][_0x126970(0x8f)](..._0x21226a)['to'](this),_0x47e21b&&this[_0x126970(0xd1)][_0x126970(0xd7)](_0x126970(0x9c))['to'](_0x47e21b,_0x126970(0x95)),this[_0x126970(0xdf)](_0x60cb8c);}[_0x1d91cd(0xaf)](){const _0x5f3cd7=_0x1d91cd;_0xcf8872(this[_0x5f3cd7(0xd3)])[_0x5f3cd7(0x9e)][_0x5f3cd7(0xbb)](_0x5f3cd7(0x8d))[_0x5f3cd7(0xe2)]();}[_0x1d91cd(0xa7)](){const _0x46bcd1=_0x1d91cd;this[_0x46bcd1(0xd1)]&&this[_0x46bcd1(0xd1)][_0x46bcd1(0xa7)]();}[_0x1d91cd(0x84)](){const _0x85480=_0x1d91cd;this[_0x85480(0xd1)]&&this[_0x85480(0xd1)][_0x85480(0x84)]();}[_0x1d91cd(0xa4)](_0x5a8e77){const _0x4762f7=_0x1d91cd,_0x19d46e=_0xcf8872(this[_0x4762f7(0xd3)]),_0x2de298=_0x19d46e[_0x4762f7(0x9e)][_0x4762f7(0xbb)](_0x4762f7(0x8d));this[_0x4762f7(0xc8)]&&(_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0x8e)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]),this[_0x4762f7(0xc8)]=null),this[_0x4762f7(0x7b)]=!0x0,_0x2de298[_0x4762f7(0xa1)]?.[_0x4762f7(0x7a)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0xac)]=_0x5a8e77[_0x4762f7(0xb2)],_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)]&&_0x5a8e77[_0x4762f7(0xdc)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)][_0x4762f7(0xb1)]=_0x5a8e77[_0x4762f7(0xdc)])),this[_0x4762f7(0xd1)][_0x4762f7(0x7d)](_0x5a8e77[_0x4762f7(0xa9)]),this[_0x4762f7(0xda)](_0x5a8e77[_0x4762f7(0xc6)],_0x5a8e77[_0x4762f7(0xc1)]),this[_0x4762f7(0xc8)]=()=>{const _0x4f855c=_0x4762f7;this[_0x4f855c(0x7b)]=!0x1,this[_0x4f855c(0xc8)]=null,_0x2de298[_0x4f855c(0xa1)]&&_0x2de298[_0x4f855c(0xa1)][_0x4f855c(0xcf)]();},_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0xbd)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]);}[_0x1d91cd(0xda)](_0x48a7c3,_0x2f3093){const _0x4a6cac=_0x1d91cd;this[_0x4a6cac(0xd3)][_0x4a6cac(0x9e)][_0x4a6cac(0xbb)](_0x86949d)[_0x4a6cac(0xbc)](_0x48a7c3,_0x4a6cac(0x81)+_0x2f3093,!0x0,!0x0);}[_0x1d91cd(0xdf)](_0x4cf91a){const _0xf1afc0=_0x1d91cd,_0x45add2=_0xcf8872(this[_0xf1afc0(0xd3)]);this[_0xf1afc0(0xda)](_0x4cf91a[_0xf1afc0(0xc6)],_0x4cf91a[_0xf1afc0(0xc1)]);const _0x597a57=this[_0xf1afc0(0xa0)]();_0x597a57&&_0x597a57[0x0]&&_0x2ed5d4({'target':_0x597a57[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x45add2[_0xf1afc0(0x9e)][_0xf1afc0(0xbb)](_0xf1afc0(0x8d))[_0xf1afc0(0xa5)]({'title':_0x4cf91a[_0xf1afc0(0xb2)],'icon':_0x4cf91a[_0xf1afc0(0xdc)],'hasCloseButton':!0x0,'id':_0xf1afc0(0x7e),'position':this[_0xf1afc0(0x86)][_0xf1afc0(0xd7)](this),'className':_0xf1afc0(0x98)+(_0x4cf91a[_0xf1afc0(0xa6)]?_0xf1afc0(0x89):''),'content':this[_0xf1afc0(0xd1)],'onShow':_0x2444f6=>{const _0x5f1591=_0xf1afc0;_0x4cf91a[_0x5f1591(0xa6)]&&this[_0x5f1591(0xd1)][_0x5f1591(0xc9)](_0x2444f6),this[_0x5f1591(0xb7)](),this[_0x5f1591(0xd0)]=!0x0;},'onHide':()=>{const _0x30decc=_0xf1afc0;this[_0x30decc(0xd3)][_0x30decc(0x9e)][_0x30decc(0xbb)](_0x30decc(0x83))[_0x30decc(0xb3)](_0x30decc(0x81)+this[_0x30decc(0xe5)][_0x30decc(0xc1)]),this[_0x30decc(0x99)](),this[_0x30decc(0x9a)](_0x30decc(0xb9)),this[_0x30decc(0xd0)]=!0x1;}});}[_0x1d91cd(0x86)](_0x288190,_0x2c682e){const _0x3ea84e=_0x1d91cd;if(!_0x2c682e)return null;const _0x764b9e=this[_0x3ea84e(0xa0)]();if(!_0x764b9e||0x0===_0x764b9e[_0x3ea84e(0xbe)])return{'left':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),'top':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0xb0)]+_0x2c682e[_0x3ea84e(0xe4)]/0x2-_0x288190[_0x3ea84e(0xe4)]/0x2)};const _0x26cf25=Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),_0x307c47=new _0x1886d0(_0x764b9e[0x0]),_0x5a83bd=new _0x1886d0(_0x764b9e[_0x764b9e[_0x3ea84e(0xbe)]-0x1]),_0x1655dc=_0x288190[_0x3ea84e(0xe4)],_0x45cd4e=this[_0x3ea84e(0xe5)][_0x3ea84e(0xa6)]?0x8:0x0;return{'left':_0x26cf25,'top':this[_0x3ea84e(0x8a)](_0x307c47,_0x5a83bd,_0x1655dc,_0x45cd4e,_0x2c682e)};}[_0x1d91cd(0x8a)](_0x2f523d,_0x781523,_0x1a707c,_0x339d33=0x0,_0x4888d2){const _0x18ebea=_0x1d91cd,_0x27947c=_0x1a707c+_0x339d33,_0x15e546=new _0x1886d0(_0x2fe053[_0x18ebea(0x88)]),_0x1669c8=[_0x2f523d[_0x18ebea(0x85)](),_0x781523[_0x18ebea(0x85)]()][_0x18ebea(0xba)](_0x39479d=>_0x39479d),_0x38f3bc=_0x1886d0[_0x18ebea(0xae)](_0x1669c8);if(!_0x38f3bc)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0xfa03b5=_0x15e546[_0x18ebea(0xcd)](_0x38f3bc);if(!_0xfa03b5)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0x76772=_0x4888d2[_0x18ebea(0x85)](),_0x1f5ca2=_0x76772&&_0x38f3bc[_0x18ebea(0xe4)]>_0x76772[_0x18ebea(0xe4)],_0x29ae0=_0xfa03b5[_0x18ebea(0xb0)],_0x2520ff=_0xfa03b5[_0x18ebea(0xc2)];if(_0x1f5ca2){const _0x5db8b6=(_0x76772||_0x15e546)[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2,_0x16e014=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)],_0x3c49e9=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt;return _0x16e014>=_0x27947c?Math[_0x18ebea(0x80)](lt,_0x29ae0-_0x27947c-lt):_0x3c49e9>=_0x27947c?_0x2520ff+lt:Math[_0x18ebea(0x80)](lt,_0x5db8b6);}const _0x2afc40=_0x29ae0-_0x27947c,_0x18e559=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt,_0x46fb5f=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)];let _0x4edeb5;if(_0x18e559>=_0x27947c)_0x4edeb5=_0x2520ff+lt;else{if(_0x46fb5f>=_0x27947c)_0x4edeb5=_0x2afc40-lt;else _0x4edeb5=_0x29ae0+_0x38f3bc[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2;}return _0x4edeb5;}[_0x1d91cd(0xb7)](){const _0x9117c9=_0x1d91cd,_0x1b03e1=_0xcf8872(this[_0x9117c9(0xd3)]);this[_0x9117c9(0x9f)](_0x1b03e1[_0x9117c9(0xd2)][_0x9117c9(0xe0)],_0x9117c9(0x8c),()=>{const _0x57bafa=_0x9117c9;if(this[_0x57bafa(0x7b)])return;for(const {name:_0x424c33,data:{newRange:_0x5778ec}}of _0x1b03e1[_0x57bafa(0xd2)][_0x57bafa(0xe0)][_0x57bafa(0xd5)][_0x57bafa(0x96)]())if(_0x424c33[_0x57bafa(0xd6)](_0x57bafa(0xa2))&&(_0x5778ec&&(_0x5778ec[_0x57bafa(0x94)][_0x57bafa(0xe1)](_0x5778ec[_0x57bafa(0xa3)])||_0x57bafa(0x9b)==_0x5778ec[_0x57bafa(0x93)][_0x57bafa(0x79)])||null==_0x5778ec)){const _0x195128=_0xc1c6c2(this[_0x57bafa(0xd3)][_0x57bafa(0xcc)],_0x57bafa(0xbf));this[_0x57bafa(0xd1)][_0x57bafa(0xcb)](_0x195128),this[_0x57bafa(0x9a)](_0x57bafa(0xa8));}});}[_0x1d91cd(0x99)](){const _0x14cc28=_0x1d91cd,_0x508a67=_0xcf8872(this[_0x14cc28(0xd3)]);this[_0x14cc28(0xb8)](_0x508a67[_0x14cc28(0xd2)][_0x14cc28(0xe0)]);}[_0x1d91cd(0xa0)](){const _0x28c4e7=_0x1d91cd,_0x137478=_0xcf8872(this[_0x28c4e7(0xd3)]);return _0xd2e375(_0x137478[_0x28c4e7(0x7c)],[..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xc3)),..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xdb))]);}}
23
+ const _0x16c24=_0x5a47;(function(_0x5189ac,_0x52fd95){const _0x59c99e=_0x5a47,_0x5e4d21=_0x5189ac();while(!![]){try{const _0x3d001e=-parseInt(_0x59c99e(0x1b6))/0x1*(parseInt(_0x59c99e(0x1ab))/0x2)+-parseInt(_0x59c99e(0x1fc))/0x3+parseInt(_0x59c99e(0x1cf))/0x4+-parseInt(_0x59c99e(0x1b4))/0x5*(parseInt(_0x59c99e(0x1ef))/0x6)+-parseInt(_0x59c99e(0x1e4))/0x7*(-parseInt(_0x59c99e(0x201))/0x8)+parseInt(_0x59c99e(0x1aa))/0x9+parseInt(_0x59c99e(0x1ad))/0xa;if(_0x3d001e===_0x52fd95)break;else _0x5e4d21['push'](_0x5e4d21['shift']());}catch(_0x2bf281){_0x5e4d21['push'](_0x5e4d21['shift']());}}}(_0x50b6,0x4b3d4));import{ContextPlugin as _0x1e7e70}from'ckeditor5/src/core.js';import{AIConnector as _0x183cf1}from'../aicore/aiconnector.js';import{AIEditing as _0x465d98}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfa1061,AIBalloonView as _0x5ee291}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x948e32}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4cb6bf,Rect as _0x2be817,scrollViewportToShowTarget as _0x5a331e}from'ckeditor5/src/utils.js';function _0x5a47(_0x39ac69,_0x551594){const _0x50b674=_0x50b6();return _0x5a47=function(_0x5a47de,_0x3cd1f9){_0x5a47de=_0x5a47de-0x19c;let _0x2f0940=_0x50b674[_0x5a47de];return _0x2f0940;},_0x5a47(_0x39ac69,_0x551594);}import{getEditorFromContext as _0x2ce5b7}from'../aicore/utils/geteditorfromcontext.js';function _0x50b6(){const _0x46463c=['close','locale','stopListening','getIntersection','left','998588EyLIit','startAutoScroll','getVisible','ranges','editing','stopAutoScroll','bottom','ai-selection','height','showFakeVisualSelection','model','value','getChangedMarkers','markers','ai-selection:','window','isOpen','_getSelectionElements','updateContent','$graveyard','startsWith','14OJfvyw','_cleanupMarkerRemovalListener','get','\x20ai-balloon-rotator','open','headerView','getMarkersGroup','top','index','hideFakeVisualSelection','icon','579786nOfIMU','pluginName','selectionRemoved','end','ai-balloon-selection','_setupVisualSelection','ai-balloon-','trackChanges','AI_ACTIONS_SELECTION_REMOVED_ERROR','balloonView','AIEditing','context','change','1170270OCtXDv','_calculateOptimalTopPosition','commands','dialogClosed','requires','1107160NbLsHP','aiBalloon','once','showBlockingError','iconView','AIBalloon','_updateBalloon','getBoundingRect','_pendingRenderCallback','start','setupRotator','width','isOfficialPlugin','_isUpdatingMarkers','view','listenTo','delegate','bind','render','isPremiumPlugin','ai.availableReplyActions','filter','4913442hmbphF','398QfmzDK','isTrackChangesOn','7927310kZaflK','root','_config','Dialog','content','_showDialog','_calculateDialogPosition','30hSnYTk','fire','2950ZSvCOs','off','hide','rootName','mainView','round','length','_setupMarkerRemovalListener','isEqual','ai-balloon','document','differ','label','config','plugins','show','max','showRotator','updatePosition','title'];_0x50b6=function(){return _0x46463c;};return _0x50b6();}import{AI_REPLY_ACTIONS as _0x2bd733}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4819ab}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfa1061,_0x16c24(0x1ff),_0x16c24(0x1f1)];const z=0xa;export class AIBalloon extends _0x1e7e70{static get[_0x16c24(0x200)](){return[_0x183cf1,_0x465d98];}static get[_0x16c24(0x1f0)](){const _0x2ef6ae=_0x16c24;return _0x2ef6ae(0x206);}static get[_0x16c24(0x1a0)](){return!0x0;}static get[_0x16c24(0x1a7)](){return!0x0;}[_0x16c24(0x1df)]=!0x1;[_0x16c24(0x1af)];[_0x16c24(0x1a1)]=!0x1;[_0x16c24(0x19c)]=null;[_0x16c24(0x1e8)](_0x3b36b7){const _0x155f5f=_0x16c24,_0x13bb80=_0x2ce5b7(this[_0x155f5f(0x1fa)]);if(this[_0x155f5f(0x1af)]=_0x3b36b7,this[_0x155f5f(0x1df)])return void this[_0x155f5f(0x207)](_0x3b36b7);const _0x1f26ae=this[_0x155f5f(0x1fa)][_0x155f5f(0x1c3)][_0x155f5f(0x1e6)](_0x155f5f(0x1a8))||[..._0x2bd733],_0x17c1b9=_0x13bb80?.[_0x155f5f(0x1fe)][_0x155f5f(0x1e6)](_0x155f5f(0x1f6)),_0x3f3be1=_0x17c1b9?.[_0x155f5f(0x1da)];this[_0x155f5f(0x1f8)]=new _0x5ee291(_0x13bb80[_0x155f5f(0x1cb)],_0x3b36b7,_0x1f26ae,!!_0x3f3be1),this[_0x155f5f(0x1f8)][_0x155f5f(0x1a4)](..._0xfa1061)['to'](this),_0x17c1b9&&this[_0x155f5f(0x1f8)][_0x155f5f(0x1a5)](_0x155f5f(0x1ac))['to'](_0x17c1b9,_0x155f5f(0x1da)),this[_0x155f5f(0x1b2)](_0x3b36b7);}[_0x16c24(0x1ca)](){const _0x3bba4a=_0x16c24;_0x2ce5b7(this[_0x3bba4a(0x1fa)])[_0x3bba4a(0x1c4)][_0x3bba4a(0x1e6)](_0x3bba4a(0x1b0))[_0x3bba4a(0x1b8)]();}[_0x16c24(0x1d0)](){const _0x2d4de7=_0x16c24;this[_0x2d4de7(0x1f8)]&&this[_0x2d4de7(0x1f8)][_0x2d4de7(0x1d0)]();}[_0x16c24(0x1d4)](){const _0xde7007=_0x16c24;this[_0xde7007(0x1f8)]&&this[_0xde7007(0x1f8)][_0xde7007(0x1d4)]();}[_0x16c24(0x207)](_0x313f16){const _0x5b3598=_0x16c24,_0x39ceb2=_0x2ce5b7(this[_0x5b3598(0x1fa)]),_0x1619f9=_0x39ceb2[_0x5b3598(0x1c4)][_0x5b3598(0x1e6)](_0x5b3598(0x1b0));this[_0x5b3598(0x19c)]&&(_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x1b7)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]),this[_0x5b3598(0x19c)]=null),this[_0x5b3598(0x1a1)]=!0x0,_0x1619f9[_0x5b3598(0x1a2)]?.[_0x5b3598(0x1e9)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x1c2)]=_0x313f16[_0x5b3598(0x1c9)],_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)]&&_0x313f16[_0x5b3598(0x1ee)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)][_0x5b3598(0x1b1)]=_0x313f16[_0x5b3598(0x1ee)])),this[_0x5b3598(0x1f8)][_0x5b3598(0x1e1)](_0x313f16[_0x5b3598(0x1ba)]),this[_0x5b3598(0x1f4)](_0x313f16[_0x5b3598(0x1d2)],_0x313f16[_0x5b3598(0x1ec)]),this[_0x5b3598(0x19c)]=()=>{const _0x12986e=_0x5b3598;this[_0x12986e(0x1a1)]=!0x1,this[_0x12986e(0x19c)]=null,_0x1619f9[_0x12986e(0x1a2)]&&_0x1619f9[_0x12986e(0x1a2)][_0x12986e(0x1c8)]();},_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x203)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]);}[_0x16c24(0x1f4)](_0x205756,_0x17cbdc){const _0x3a1e84=_0x16c24;this[_0x3a1e84(0x1fa)][_0x3a1e84(0x1c4)][_0x3a1e84(0x1e6)](_0x465d98)[_0x3a1e84(0x1d8)](_0x205756,_0x3a1e84(0x1f5)+_0x17cbdc,!0x0,!0x0);}[_0x16c24(0x1b2)](_0x392837){const _0x589a64=_0x16c24,_0x2ae398=_0x2ce5b7(this[_0x589a64(0x1fa)]);this[_0x589a64(0x1f4)](_0x392837[_0x589a64(0x1d2)],_0x392837[_0x589a64(0x1ec)]);const _0x1c51e3=this[_0x589a64(0x1e0)]();_0x1c51e3&&_0x1c51e3[0x0]&&_0x5a331e({'target':_0x1c51e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2ae398[_0x589a64(0x1c4)][_0x589a64(0x1e6)](_0x589a64(0x1b0))[_0x589a64(0x1c5)]({'title':_0x392837[_0x589a64(0x1c9)],'icon':_0x392837[_0x589a64(0x1ee)],'hasCloseButton':!0x0,'id':_0x589a64(0x202),'position':this[_0x589a64(0x1b3)][_0x589a64(0x1a5)](this),'className':_0x589a64(0x1bf)+(_0x392837[_0x589a64(0x1c7)]?_0x589a64(0x1e7):''),'content':this[_0x589a64(0x1f8)],'onShow':_0x9c78f4=>{const _0x34b74b=_0x589a64;_0x392837[_0x34b74b(0x1c7)]&&this[_0x34b74b(0x1f8)][_0x34b74b(0x19e)](_0x9c78f4),this[_0x34b74b(0x1bd)](),this[_0x34b74b(0x1df)]=!0x0;},'onHide':()=>{const _0x2e15d4=_0x589a64;this[_0x2e15d4(0x1fa)][_0x2e15d4(0x1c4)][_0x2e15d4(0x1e6)](_0x2e15d4(0x1f9))[_0x2e15d4(0x1ed)](_0x2e15d4(0x1f5)+this[_0x2e15d4(0x1af)][_0x2e15d4(0x1ec)]),this[_0x2e15d4(0x1e5)](),this[_0x2e15d4(0x1b5)](_0x2e15d4(0x1ff)),this[_0x2e15d4(0x1df)]=!0x1;}});}[_0x16c24(0x1b3)](_0x2c69cb,_0xd2cde5){const _0x44ee04=_0x16c24;if(!_0xd2cde5)return null;const _0x25279b=this[_0x44ee04(0x1e0)]();if(!_0x25279b||0x0===_0x25279b[_0x44ee04(0x1bc)])return{'left':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),'top':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1eb)]+_0xd2cde5[_0x44ee04(0x1d7)]/0x2-_0x2c69cb[_0x44ee04(0x1d7)]/0x2)};const _0x396366=Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),_0x280edf=new _0x2be817(_0x25279b[0x0]),_0x51d868=new _0x2be817(_0x25279b[_0x25279b[_0x44ee04(0x1bc)]-0x1]),_0x4ec5c6=_0x2c69cb[_0x44ee04(0x1d7)],_0x265736=this[_0x44ee04(0x1af)][_0x44ee04(0x1c7)]?0x8:0x0;return{'left':_0x396366,'top':this[_0x44ee04(0x1fd)](_0x280edf,_0x51d868,_0x4ec5c6,_0x265736,_0xd2cde5)};}[_0x16c24(0x1fd)](_0x22a6f0,_0x30cc2b,_0x1610ad,_0x403349=0x0,_0x5a3b02){const _0x39f91f=_0x16c24,_0x3d4709=_0x1610ad+_0x403349,_0x46b0ae=new _0x2be817(_0x4cb6bf[_0x39f91f(0x1de)]),_0x225114=[_0x22a6f0[_0x39f91f(0x1d1)](),_0x30cc2b[_0x39f91f(0x1d1)]()][_0x39f91f(0x1a9)](_0x28f1cc=>_0x28f1cc),_0xaaf492=_0x2be817[_0x39f91f(0x208)](_0x225114);if(!_0xaaf492)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x171150=_0x46b0ae[_0x39f91f(0x1cd)](_0xaaf492);if(!_0x171150)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x2f47d0=_0x5a3b02[_0x39f91f(0x1d1)](),_0x41440d=_0x2f47d0&&_0xaaf492[_0x39f91f(0x1d7)]>_0x2f47d0[_0x39f91f(0x1d7)],_0x3df6e7=_0x171150[_0x39f91f(0x1eb)],_0x276744=_0x171150[_0x39f91f(0x1d5)];if(_0x41440d){const _0x2aa47a=(_0x2f47d0||_0x46b0ae)[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2,_0x16fb5f=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)],_0x1488c7=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z;return _0x16fb5f>=_0x3d4709?Math[_0x39f91f(0x1c6)](z,_0x3df6e7-_0x3d4709-z):_0x1488c7>=_0x3d4709?_0x276744+z:Math[_0x39f91f(0x1c6)](z,_0x2aa47a);}const _0x2d4f1e=_0x3df6e7-_0x3d4709,_0x47184e=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z,_0x4f59b5=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)];let _0x10a700;if(_0x47184e>=_0x3d4709)_0x10a700=_0x276744+z;else{if(_0x4f59b5>=_0x3d4709)_0x10a700=_0x2d4f1e-z;else _0x10a700=_0x3df6e7+_0xaaf492[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2;}return _0x10a700;}[_0x16c24(0x1bd)](){const _0x3cf975=_0x16c24,_0x4cc44a=_0x2ce5b7(this[_0x3cf975(0x1fa)]);this[_0x3cf975(0x1a3)](_0x4cc44a[_0x3cf975(0x1d9)][_0x3cf975(0x1c0)],_0x3cf975(0x1fb),()=>{const _0x3f740a=_0x3cf975;if(this[_0x3f740a(0x1a1)])return;for(const {name:_0x5c4e17,data:{newRange:_0x515bbb}}of _0x4cc44a[_0x3f740a(0x1d9)][_0x3f740a(0x1c0)][_0x3f740a(0x1c1)][_0x3f740a(0x1db)]())if(_0x5c4e17[_0x3f740a(0x1e3)](_0x3f740a(0x1dd))&&(_0x515bbb&&(_0x515bbb[_0x3f740a(0x19d)][_0x3f740a(0x1be)](_0x515bbb[_0x3f740a(0x1f2)])||_0x3f740a(0x1e2)==_0x515bbb[_0x3f740a(0x1ae)][_0x3f740a(0x1b9)])||null==_0x515bbb)){const _0x21bca4=_0x4819ab(this[_0x3f740a(0x1fa)][_0x3f740a(0x1cb)],_0x3f740a(0x1f7));this[_0x3f740a(0x1f8)][_0x3f740a(0x204)](_0x21bca4),this[_0x3f740a(0x1b5)](_0x3f740a(0x1f1));}});}[_0x16c24(0x1e5)](){const _0x10def7=_0x16c24,_0x29efd9=_0x2ce5b7(this[_0x10def7(0x1fa)]);this[_0x10def7(0x1cc)](_0x29efd9[_0x10def7(0x1d9)][_0x10def7(0x1c0)]);}[_0x16c24(0x1e0)](){const _0x1fb326=_0x16c24,_0x5e47f5=_0x2ce5b7(this[_0x1fb326(0x1fa)]);return _0x948e32(_0x5e47f5[_0x1fb326(0x1d3)],[..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1d6)),..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1f3))]);}}