@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1

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 (623) hide show
  1. package/LICENSE.md +18 -5
  2. package/README.md +10 -9
  3. package/build/ai.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/ckeditor5-metadata.json +24 -3
  77. package/dist/index-content.css +0 -1
  78. package/dist/index-editor.css +2742 -0
  79. package/dist/index.css +3141 -0
  80. package/dist/index.js +4 -2
  81. package/dist/translations/af.js +1 -1
  82. package/dist/translations/af.umd.js +1 -1
  83. package/dist/translations/ar.js +1 -1
  84. package/dist/translations/ar.umd.js +1 -1
  85. package/dist/translations/ast.js +1 -1
  86. package/dist/translations/ast.umd.js +1 -1
  87. package/dist/translations/az.js +1 -1
  88. package/dist/translations/az.umd.js +1 -1
  89. package/dist/translations/be.js +1 -1
  90. package/dist/translations/be.umd.js +1 -1
  91. package/dist/translations/bg.js +1 -1
  92. package/dist/translations/bg.umd.js +1 -1
  93. package/dist/translations/bn.js +1 -1
  94. package/dist/translations/bn.umd.js +1 -1
  95. package/dist/translations/bs.js +1 -1
  96. package/dist/translations/bs.umd.js +1 -1
  97. package/dist/translations/ca.js +1 -1
  98. package/dist/translations/ca.umd.js +1 -1
  99. package/dist/translations/cs.js +1 -1
  100. package/dist/translations/cs.umd.js +1 -1
  101. package/dist/translations/da.js +1 -1
  102. package/dist/translations/da.umd.js +1 -1
  103. package/dist/translations/de-ch.js +1 -1
  104. package/dist/translations/de-ch.umd.js +1 -1
  105. package/dist/translations/de.js +1 -1
  106. package/dist/translations/de.umd.js +1 -1
  107. package/dist/translations/el.js +1 -1
  108. package/dist/translations/el.umd.js +1 -1
  109. package/dist/translations/en-au.js +1 -1
  110. package/dist/translations/en-au.umd.js +1 -1
  111. package/dist/translations/en-gb.js +1 -1
  112. package/dist/translations/en-gb.umd.js +1 -1
  113. package/dist/translations/en.js +1 -1
  114. package/dist/translations/en.umd.js +1 -1
  115. package/dist/translations/eo.js +1 -1
  116. package/dist/translations/eo.umd.js +1 -1
  117. package/dist/translations/es-co.js +1 -1
  118. package/dist/translations/es-co.umd.js +1 -1
  119. package/dist/translations/es.js +1 -1
  120. package/dist/translations/es.umd.js +1 -1
  121. package/dist/translations/et.js +1 -1
  122. package/dist/translations/et.umd.js +1 -1
  123. package/dist/translations/eu.js +1 -1
  124. package/dist/translations/eu.umd.js +1 -1
  125. package/dist/translations/fa.js +1 -1
  126. package/dist/translations/fa.umd.js +1 -1
  127. package/dist/translations/fi.js +1 -1
  128. package/dist/translations/fi.umd.js +1 -1
  129. package/dist/translations/fr.js +1 -1
  130. package/dist/translations/fr.umd.js +1 -1
  131. package/dist/translations/gl.js +1 -1
  132. package/dist/translations/gl.umd.js +1 -1
  133. package/dist/translations/gu.js +1 -1
  134. package/dist/translations/gu.umd.js +1 -1
  135. package/dist/translations/he.js +1 -1
  136. package/dist/translations/he.umd.js +1 -1
  137. package/dist/translations/hi.js +1 -1
  138. package/dist/translations/hi.umd.js +1 -1
  139. package/dist/translations/hr.js +1 -1
  140. package/dist/translations/hr.umd.js +1 -1
  141. package/dist/translations/hu.js +1 -1
  142. package/dist/translations/hu.umd.js +1 -1
  143. package/dist/translations/hy.js +1 -1
  144. package/dist/translations/hy.umd.js +1 -1
  145. package/dist/translations/id.js +1 -1
  146. package/dist/translations/id.umd.js +1 -1
  147. package/dist/translations/it.js +1 -1
  148. package/dist/translations/it.umd.js +1 -1
  149. package/dist/translations/ja.js +1 -1
  150. package/dist/translations/ja.umd.js +1 -1
  151. package/dist/translations/jv.js +1 -1
  152. package/dist/translations/jv.umd.js +1 -1
  153. package/dist/translations/kk.js +1 -1
  154. package/dist/translations/kk.umd.js +1 -1
  155. package/dist/translations/km.js +1 -1
  156. package/dist/translations/km.umd.js +1 -1
  157. package/dist/translations/kn.js +1 -1
  158. package/dist/translations/kn.umd.js +1 -1
  159. package/dist/translations/ko.js +1 -1
  160. package/dist/translations/ko.umd.js +1 -1
  161. package/dist/translations/ku.js +1 -1
  162. package/dist/translations/ku.umd.js +1 -1
  163. package/dist/translations/lt.js +1 -1
  164. package/dist/translations/lt.umd.js +1 -1
  165. package/dist/translations/lv.js +1 -1
  166. package/dist/translations/lv.umd.js +1 -1
  167. package/dist/translations/ms.js +1 -1
  168. package/dist/translations/ms.umd.js +1 -1
  169. package/dist/translations/nb.js +1 -1
  170. package/dist/translations/nb.umd.js +1 -1
  171. package/dist/translations/ne.js +1 -1
  172. package/dist/translations/ne.umd.js +1 -1
  173. package/dist/translations/nl.js +1 -1
  174. package/dist/translations/nl.umd.js +1 -1
  175. package/dist/translations/no.js +1 -1
  176. package/dist/translations/no.umd.js +1 -1
  177. package/dist/translations/oc.js +1 -1
  178. package/dist/translations/oc.umd.js +1 -1
  179. package/dist/translations/pl.js +1 -1
  180. package/dist/translations/pl.umd.js +1 -1
  181. package/dist/translations/pt-br.js +1 -1
  182. package/dist/translations/pt-br.umd.js +1 -1
  183. package/dist/translations/pt.js +1 -1
  184. package/dist/translations/pt.umd.js +1 -1
  185. package/dist/translations/ro.js +1 -1
  186. package/dist/translations/ro.umd.js +1 -1
  187. package/dist/translations/ru.js +1 -1
  188. package/dist/translations/ru.umd.js +1 -1
  189. package/dist/translations/si.js +1 -1
  190. package/dist/translations/si.umd.js +1 -1
  191. package/dist/translations/sk.js +1 -1
  192. package/dist/translations/sk.umd.js +1 -1
  193. package/dist/translations/sl.js +1 -1
  194. package/dist/translations/sl.umd.js +1 -1
  195. package/dist/translations/sq.js +1 -1
  196. package/dist/translations/sq.umd.js +1 -1
  197. package/dist/translations/sr-latn.js +1 -1
  198. package/dist/translations/sr-latn.umd.js +1 -1
  199. package/dist/translations/sr.js +1 -1
  200. package/dist/translations/sr.umd.js +1 -1
  201. package/dist/translations/sv.js +1 -1
  202. package/dist/translations/sv.umd.js +1 -1
  203. package/dist/translations/th.js +1 -1
  204. package/dist/translations/th.umd.js +1 -1
  205. package/dist/translations/ti.js +1 -1
  206. package/dist/translations/ti.umd.js +1 -1
  207. package/dist/translations/tk.js +1 -1
  208. package/dist/translations/tk.umd.js +1 -1
  209. package/dist/translations/tr.js +1 -1
  210. package/dist/translations/tr.umd.js +1 -1
  211. package/dist/translations/tt.js +1 -1
  212. package/dist/translations/tt.umd.js +1 -1
  213. package/dist/translations/ug.js +1 -1
  214. package/dist/translations/ug.umd.js +1 -1
  215. package/dist/translations/uk.js +1 -1
  216. package/dist/translations/uk.umd.js +1 -1
  217. package/dist/translations/ur.js +1 -1
  218. package/dist/translations/ur.umd.js +1 -1
  219. package/dist/translations/uz.js +1 -1
  220. package/dist/translations/uz.umd.js +1 -1
  221. package/dist/translations/vi.js +1 -1
  222. package/dist/translations/vi.umd.js +1 -1
  223. package/dist/translations/zh-cn.js +1 -1
  224. package/dist/translations/zh-cn.umd.js +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/contexts.json +163 -1
  228. package/lang/translations/af.po +612 -0
  229. package/lang/translations/ar.po +628 -0
  230. package/lang/translations/ast.po +612 -0
  231. package/lang/translations/az.po +612 -0
  232. package/lang/translations/be.po +616 -0
  233. package/lang/translations/bg.po +612 -0
  234. package/lang/translations/bn.po +612 -0
  235. package/lang/translations/bs.po +616 -0
  236. package/lang/translations/ca.po +612 -0
  237. package/lang/translations/cs.po +616 -0
  238. package/lang/translations/da.po +612 -0
  239. package/lang/translations/de-ch.po +612 -0
  240. package/lang/translations/de.po +612 -0
  241. package/lang/translations/el.po +612 -0
  242. package/lang/translations/en-au.po +612 -0
  243. package/lang/translations/en-gb.po +612 -0
  244. package/lang/translations/en.po +612 -0
  245. package/lang/translations/eo.po +612 -0
  246. package/lang/translations/es-co.po +612 -0
  247. package/lang/translations/es.po +612 -0
  248. package/lang/translations/et.po +612 -0
  249. package/lang/translations/eu.po +612 -0
  250. package/lang/translations/fa.po +608 -0
  251. package/lang/translations/fi.po +612 -0
  252. package/lang/translations/fr.po +612 -0
  253. package/lang/translations/gl.po +612 -0
  254. package/lang/translations/gu.po +612 -0
  255. package/lang/translations/he.po +612 -0
  256. package/lang/translations/hi.po +612 -0
  257. package/lang/translations/hr.po +616 -0
  258. package/lang/translations/hu.po +612 -0
  259. package/lang/translations/hy.po +612 -0
  260. package/lang/translations/id.po +608 -0
  261. package/lang/translations/it.po +612 -0
  262. package/lang/translations/ja.po +608 -0
  263. package/lang/translations/jv.po +612 -0
  264. package/lang/translations/kk.po +612 -0
  265. package/lang/translations/km.po +608 -0
  266. package/lang/translations/kn.po +612 -0
  267. package/lang/translations/ko.po +608 -0
  268. package/lang/translations/ku.po +612 -0
  269. package/lang/translations/lt.po +616 -0
  270. package/lang/translations/lv.po +616 -0
  271. package/lang/translations/ms.po +608 -0
  272. package/lang/translations/nb.po +612 -0
  273. package/lang/translations/ne.po +612 -0
  274. package/lang/translations/nl.po +612 -0
  275. package/lang/translations/no.po +612 -0
  276. package/lang/translations/oc.po +612 -0
  277. package/lang/translations/pl.po +616 -0
  278. package/lang/translations/pt-br.po +612 -0
  279. package/lang/translations/pt.po +612 -0
  280. package/lang/translations/ro.po +616 -0
  281. package/lang/translations/ru.po +616 -0
  282. package/lang/translations/si.po +612 -0
  283. package/lang/translations/sk.po +616 -0
  284. package/lang/translations/sl.po +620 -0
  285. package/lang/translations/sq.po +612 -0
  286. package/lang/translations/sr-latn.po +616 -0
  287. package/lang/translations/sr.po +616 -0
  288. package/lang/translations/sv.po +612 -0
  289. package/lang/translations/th.po +608 -0
  290. package/lang/translations/ti.po +612 -0
  291. package/lang/translations/tk.po +612 -0
  292. package/lang/translations/tr.po +612 -0
  293. package/lang/translations/tt.po +608 -0
  294. package/lang/translations/ug.po +608 -0
  295. package/lang/translations/uk.po +616 -0
  296. package/lang/translations/ur.po +612 -0
  297. package/lang/translations/uz.po +612 -0
  298. package/lang/translations/vi.po +608 -0
  299. package/lang/translations/zh-cn.po +608 -0
  300. package/lang/translations/zh.po +608 -0
  301. package/package.json +23 -11
  302. package/src/aiactions/aiactions.d.ts +48 -0
  303. package/src/aiactions/aiactions.js +23 -0
  304. package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
  305. package/src/aiactions/model/aiactionsinteraction.js +23 -0
  306. package/src/aiactions/model/aiactionsreply.d.ts +15 -0
  307. package/src/aiactions/model/aiactionsreply.js +23 -0
  308. package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
  309. package/src/aiassistant/adapters/aiadapter.js +23 -0
  310. package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
  311. package/src/aiassistant/adapters/aitextadapter.js +23 -0
  312. package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
  313. package/src/aiassistant/adapters/awstextadapter.js +23 -0
  314. package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
  315. package/src/aiassistant/adapters/openaitextadapter.js +23 -0
  316. package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
  317. package/src/aiassistant/aiassistant.js +23 -0
  318. package/src/aiassistant/aiassistantediting.js +23 -0
  319. package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
  320. package/src/aiassistant/aiassistantui.js +23 -0
  321. package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
  322. package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
  323. package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
  324. package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
  325. package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
  326. package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
  327. package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
  328. package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
  329. package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
  330. package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
  331. package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
  332. package/src/aiassistant/ui/form/aiformview.js +23 -0
  333. package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
  334. package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
  335. package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
  336. package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
  337. package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
  338. package/src/aiassistant/ui/form/prompthistory.js +23 -0
  339. package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
  340. package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
  341. package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
  342. package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
  343. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
  344. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
  345. package/src/aiballoon/aiballoon.d.ts +72 -0
  346. package/src/aiballoon/aiballoon.js +23 -0
  347. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
  348. package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
  349. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
  350. package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
  351. package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
  352. package/src/aiballoon/ui/aiballoonview.js +23 -0
  353. package/src/aichat/aichat.d.ts +79 -0
  354. package/src/aichat/aichat.js +23 -0
  355. package/src/aichat/aichatcontroller.d.ts +68 -0
  356. package/src/aichat/aichatcontroller.js +23 -0
  357. package/src/aichat/aichatui.d.ts +297 -0
  358. package/src/aichat/aichatui.js +23 -0
  359. package/src/aichat/model/aichatcontext.d.ts +360 -0
  360. package/src/aichat/model/aichatcontext.js +23 -0
  361. package/src/aichat/model/aichatconversation.d.ts +270 -0
  362. package/src/aichat/model/aichatconversation.js +23 -0
  363. package/src/aichat/model/aichatinteraction.d.ts +46 -0
  364. package/src/aichat/model/aichatinteraction.js +23 -0
  365. package/src/aichat/model/aichatmodels.d.ts +77 -0
  366. package/src/aichat/model/aichatmodels.js +23 -0
  367. package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
  368. package/src/aichat/ui/aichatcontrolsview.js +23 -0
  369. package/src/aichat/ui/aichatfeedview.d.ts +114 -0
  370. package/src/aichat/ui/aichatfeedview.js +23 -0
  371. package/src/aichat/ui/aichatheaderview.d.ts +29 -0
  372. package/src/aichat/ui/aichatheaderview.js +23 -0
  373. package/src/aichat/ui/aichatview.d.ts +37 -0
  374. package/src/aichat/ui/aichatview.js +23 -0
  375. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
  376. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
  377. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
  378. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
  379. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
  380. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
  381. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
  382. package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
  383. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
  384. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
  385. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
  386. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
  387. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
  388. package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
  389. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
  390. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
  391. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
  392. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
  393. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
  394. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
  395. package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
  396. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
  397. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
  398. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
  399. package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
  400. package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
  401. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
  402. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
  403. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
  404. package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
  405. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
  406. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
  407. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
  408. package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
  409. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
  410. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
  411. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
  412. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
  413. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
  414. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
  415. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
  416. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
  417. package/src/aichat/utils/eventnames.d.ts +5 -0
  418. package/src/aichat/utils/eventnames.js +23 -0
  419. package/src/aichat/utils/promisequeue.d.ts +32 -0
  420. package/src/aichat/utils/promisequeue.js +23 -0
  421. package/src/aichat/utils/scrollmanager.d.ts +23 -0
  422. package/src/aichat/utils/scrollmanager.js +23 -0
  423. package/src/aichathistory/aichathistory.d.ts +30 -0
  424. package/src/aichathistory/aichathistory.js +23 -0
  425. package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
  426. package/src/aichathistory/aichathistorycontroller.js +23 -0
  427. package/src/aichathistory/aichathistoryui.d.ts +112 -0
  428. package/src/aichathistory/aichathistoryui.js +23 -0
  429. package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
  430. package/src/aichathistory/model/aichathistoryconversations.js +23 -0
  431. package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
  432. package/src/aichathistory/model/aichathistoryitem.js +23 -0
  433. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
  434. package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
  435. package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
  436. package/src/aichathistory/ui/aichathistorylistview.js +23 -0
  437. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
  438. package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
  439. package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
  440. package/src/aichathistory/ui/aichathistoryview.js +23 -0
  441. package/src/aiconfig.d.ts +92 -30
  442. package/src/aicore/aiconnector.d.ts +302 -0
  443. package/src/aicore/aiconnector.js +23 -0
  444. package/src/aicore/aiediting.d.ts +61 -0
  445. package/src/aicore/aiediting.js +23 -0
  446. package/src/aicore/model/aicapabilities.d.ts +55 -0
  447. package/src/aicore/model/aicapabilities.js +23 -0
  448. package/src/aicore/model/aicontext.d.ts +53 -0
  449. package/src/aicore/model/aicontext.js +23 -0
  450. package/src/aicore/model/aiinteraction.d.ts +135 -0
  451. package/src/aicore/model/aiinteraction.js +23 -0
  452. package/src/aicore/model/aireply.d.ts +178 -0
  453. package/src/aicore/model/aireply.js +23 -0
  454. package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
  455. package/src/aicore/pipeline/airesponseapplier.js +24 -0
  456. package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
  457. package/src/aicore/pipeline/airesponseparser.js +24 -0
  458. package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
  459. package/src/aicore/ui/aidisclaimerview.js +23 -0
  460. package/src/aicore/ui/aiskeleton.d.ts +37 -0
  461. package/src/aicore/ui/aiskeleton.js +23 -0
  462. package/src/aicore/ui/aispinner.d.ts +14 -0
  463. package/src/aicore/ui/aispinner.js +23 -0
  464. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
  465. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
  466. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
  467. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
  468. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
  469. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
  470. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
  471. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
  472. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
  473. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
  474. package/src/aicore/utils/common-translations.d.ts +9 -0
  475. package/src/aicore/utils/common-translations.js +23 -0
  476. package/src/aicore/utils/createresizebutton.d.ts +12 -0
  477. package/src/aicore/utils/createresizebutton.js +23 -0
  478. package/src/aicore/utils/documentposition.d.ts +41 -0
  479. package/src/aicore/utils/documentposition.js +23 -0
  480. package/src/aicore/utils/documentrange.d.ts +46 -0
  481. package/src/aicore/utils/documentrange.js +23 -0
  482. package/src/aicore/utils/eventnames.d.ts +9 -0
  483. package/src/aicore/utils/eventnames.js +23 -0
  484. package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
  485. package/src/aicore/utils/geteditorfromcontext.js +23 -0
  486. package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
  487. package/src/aicore/utils/getoperationsfromreply.js +23 -0
  488. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
  489. package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
  490. package/src/aicore/utils/htmlparser.d.ts +35 -0
  491. package/src/aicore/utils/htmlparser.js +23 -0
  492. package/src/aicore/utils/htmlstreamer.d.ts +123 -0
  493. package/src/aicore/utils/htmlstreamer.js +23 -0
  494. package/src/aiquickactions/aiquickactions.d.ts +41 -0
  495. package/src/aiquickactions/aiquickactions.js +23 -0
  496. package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
  497. package/src/aiquickactions/aiquickactionscommand.js +23 -0
  498. package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
  499. package/src/aiquickactions/aiquickactionsediting.js +23 -0
  500. package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
  501. package/src/aiquickactions/aiquickactionsui.js +23 -0
  502. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
  503. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
  504. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
  505. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
  506. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
  507. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
  508. package/src/aiquickactions/utils/common-translations.d.ts +9 -0
  509. package/src/aiquickactions/utils/common-translations.js +23 -0
  510. package/src/aireviewmode/aireviewmode.d.ts +30 -0
  511. package/src/aireviewmode/aireviewmode.js +23 -0
  512. package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
  513. package/src/aireviewmode/aireviewmodecontroller.js +23 -0
  514. package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
  515. package/src/aireviewmode/aireviewmodeediting.js +23 -0
  516. package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
  517. package/src/aireviewmode/aireviewmodeui.js +23 -0
  518. package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
  519. package/src/aireviewmode/model/aireviewcheck.js +23 -0
  520. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
  521. package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
  522. package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
  523. package/src/aireviewmode/model/aireviewchecklist.js +23 -0
  524. package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
  525. package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
  526. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
  527. package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
  528. package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
  529. package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
  530. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
  531. package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
  532. package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
  533. package/src/aireviewmode/model/aireviewmodels.js +23 -0
  534. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
  535. package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
  536. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
  537. package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
  538. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
  539. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
  540. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
  541. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
  542. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
  543. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
  544. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
  545. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
  546. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
  547. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
  548. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
  549. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
  550. package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
  551. package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
  552. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
  553. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
  554. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
  555. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
  556. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
  557. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
  558. package/src/aireviewmode/utils/common-translations.d.ts +9 -0
  559. package/src/aireviewmode/utils/common-translations.js +23 -0
  560. package/src/aitabs/aitabs.d.ts +92 -0
  561. package/src/aitabs/aitabs.js +23 -0
  562. package/src/aitabs/aitabsmainview.d.ts +45 -0
  563. package/src/aitabs/aitabsmainview.js +23 -0
  564. package/src/aitabs/tabs/aitabsview.d.ts +147 -0
  565. package/src/aitabs/tabs/aitabsview.js +23 -0
  566. package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
  567. package/src/aitabs/tabs/tabbuttonview.js +23 -0
  568. package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
  569. package/src/aitabs/tabs/tabpanelview.js +23 -0
  570. package/src/augmentation.d.ts +22 -6
  571. package/src/index.d.ts +40 -9
  572. package/src/index.js +1 -1
  573. package/theme/aiballoon/aiballoon.css +207 -0
  574. package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
  575. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
  576. package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
  577. package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
  578. package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
  579. package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
  580. package/theme/aichat/aichat-controls/prompt-input.css +55 -0
  581. package/theme/aichat/aichat-controls.css +154 -0
  582. package/theme/aichat/aichat.css +68 -0
  583. package/theme/aichat/aichatfeed.css +376 -0
  584. package/theme/aichat/aichathistory.css +235 -0
  585. package/theme/aichat/aiminitoolbar.css +94 -0
  586. package/theme/aichat/aisuggestioncontainer.css +203 -0
  587. package/theme/aiquickactions/aiquickactions.css +43 -0
  588. package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
  589. package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
  590. package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
  591. package/theme/aireviewmode/aireviewmode.css +73 -0
  592. package/theme/aitabs/aitabsview.css +64 -0
  593. package/theme/aitabs/tabs/tabbuttonview.css +74 -0
  594. package/theme/aitabs/tabs/tabsview.css +78 -0
  595. package/theme/common/aibutton.css +145 -0
  596. package/theme/common/aichaterror.css +61 -0
  597. package/theme/common/aidisclaimer.css +29 -0
  598. package/theme/common/aiheader.css +88 -0
  599. package/theme/common/aiskeleton.css +54 -0
  600. package/theme/common/aispinner.css +58 -0
  601. package/src/adapters/aiadapter.js +0 -23
  602. package/src/adapters/aitextadapter.js +0 -23
  603. package/src/adapters/awstextadapter.js +0 -23
  604. package/src/adapters/openaitextadapter.js +0 -23
  605. package/src/aiassistant.js +0 -23
  606. package/src/aiassistantediting.js +0 -23
  607. package/src/aiassistantui.js +0 -23
  608. package/src/ui/aiassistantcontroller.js +0 -24
  609. package/src/ui/form/aiformcontentarea.js +0 -23
  610. package/src/ui/form/aiformerrorview.js +0 -23
  611. package/src/ui/form/aiformpromptview.js +0 -23
  612. package/src/ui/form/aiformtoolbarview.js +0 -23
  613. package/src/ui/form/aiformview.js +0 -23
  614. package/src/ui/form/aihistorylistitemview.js +0 -23
  615. package/src/ui/form/aihistorylistview.js +0 -23
  616. package/src/ui/form/prompthistory.js +0 -23
  617. package/src/ui/showaiassistantcommand.js +0 -23
  618. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  619. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  620. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  621. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  622. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  623. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,54 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
+ */
9
+
10
+ :root {
11
+ --ai-skeleton-z-index: calc( var(--ck-z-default) + 1 );
12
+ --ck-ai-skeleton-item-background: linear-gradient(90deg, hsl(0, 0.00%, 98.00%) 0%, hsl(0, 0.00%, 94.10%) 50%, hsl(0, 0.00%, 98.00%) 100%);
13
+ --ck-ai-skeleton-animation-duration: 1s;
14
+ --ck-ai-skeleton-gap: var(--ck-spacing-extra-large);
15
+ }
16
+
17
+ .ck.ck-ai-skeleton {
18
+ position: absolute;
19
+ inset: 0;
20
+ z-index: var(--ai-skeleton-z-index);
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: flex-end;
24
+ gap: var(--ck-ai-skeleton-gap) 0;
25
+ padding: var(--ck-spacing-extra-large) var(--ck-spacing-large) var(--ck-spacing-large);
26
+ width: 100%;
27
+ height: 100%;
28
+ background-color: var(--ck-color-base-background);
29
+ opacity: 1;
30
+ transition: opacity .4s, display .4s allow-discrete;
31
+ transition-delay: 350ms;
32
+
33
+ &.ck-hidden {
34
+ transition-delay: 0ms;
35
+ opacity: 0;
36
+ }
37
+
38
+ @starting-style {
39
+ opacity: 0;
40
+ }
41
+
42
+ & > .ck.ck-ai-skeleton__item {
43
+ background: var(--ck-ai-skeleton-item-background);
44
+ background-size: 200% 100%;
45
+ animation: var(--ck-ai-skeleton-animation-duration) ck-ai-skeleton-shine linear infinite;
46
+ width: 100%;
47
+ }
48
+ }
49
+
50
+ @keyframes ck-ai-skeleton-shine {
51
+ to {
52
+ background-position-x: -200%;
53
+ }
54
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
+ */
9
+
10
+ :root {
11
+ --ck-ai-spinner-size: var(--ck-toolbar-spinner-size);
12
+ --ck-ai-spinner-background: linear-gradient(to right, hsl(0, 0%, 100%), hsl(0, 0%, 58%));
13
+ --ck-ai-spinner-mask: radial-gradient(farthest-side, transparent 66%, hsl(0, 0%, 0%) 61%);
14
+ --ck-ai-spinner-animation-duration: 1s;
15
+ }
16
+
17
+ .ck.ck-spinner-container {
18
+ &.ck-ai-spinner {
19
+ display: inline-block;
20
+ width: var(--ck-ai-spinner-size);
21
+ height: var(--ck-ai-spinner-size);
22
+ margin: 0;
23
+ flex-shrink: 0;
24
+ animation-duration: var(--ck-ai-spinner-animation-duration);
25
+
26
+ & .ck-spinner {
27
+ width: var(--ck-ai-spinner-size);
28
+ height: var(--ck-ai-spinner-size);
29
+
30
+ border: none;
31
+
32
+ background: var(--ck-ai-spinner-background);
33
+ -webkit-mask: var(--ck-ai-spinner-mask);
34
+ mask: var(--ck-ai-spinner-mask);
35
+
36
+ box-sizing: border-box;
37
+ }
38
+
39
+ &.ck-ai-spinner_small {
40
+ --ck-ai-spinner-size: 1em;
41
+ }
42
+
43
+ &.ck-ai-spinner_tiny {
44
+ --ck-ai-spinner-size: 12px;
45
+ }
46
+ }
47
+
48
+ &.ck-hidden {
49
+ display: none;
50
+ animation: none;
51
+ }
52
+ }
53
+
54
+ @keyframes ck-spin {
55
+ to {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x13ace0=_0x1107;function _0x1107(_0x3a8794,_0x2ad851){var _0x127ca6=_0x127c();return _0x1107=function(_0x110742,_0x3ecca9){_0x110742=_0x110742-0x120;var _0x439115=_0x127ca6[_0x110742];return _0x439115;},_0x1107(_0x3a8794,_0x2ad851);}(function(_0x740eb8,_0x43e424){var _0x5ae8da=_0x1107,_0x584a51=_0x740eb8();while(!![]){try{var _0x1d6109=-parseInt(_0x5ae8da(0x133))/0x1*(-parseInt(_0x5ae8da(0x12d))/0x2)+parseInt(_0x5ae8da(0x12c))/0x3*(-parseInt(_0x5ae8da(0x131))/0x4)+parseInt(_0x5ae8da(0x127))/0x5*(-parseInt(_0x5ae8da(0x134))/0x6)+parseInt(_0x5ae8da(0x12b))/0x7*(-parseInt(_0x5ae8da(0x124))/0x8)+parseInt(_0x5ae8da(0x132))/0x9+-parseInt(_0x5ae8da(0x123))/0xa*(parseInt(_0x5ae8da(0x12f))/0xb)+-parseInt(_0x5ae8da(0x12e))/0xc*(-parseInt(_0x5ae8da(0x125))/0xd);if(_0x1d6109===_0x43e424)break;else _0x584a51['push'](_0x584a51['shift']());}catch(_0x321cb0){_0x584a51['push'](_0x584a51['shift']());}}}(_0x127c,0x651cb));import{Plugin as _0x4ab1d0}from'ckeditor5/src/core.js';function _0x127c(){var _0x137810=['49uoirxn','6uSSgks','AIRequestError','isPremiumPlugin','isOfficialPlugin','aiadapter-text-adapter-not-set','20hxgsJr','6672hrwMsy','793DKQHvv','afterInit','2902490tFzRYM','AIAdapter','name','textAdapter','14ocxxCG','16110vaYkwd','23294vjUcfd','52620iPEXeQ','1056902bqdvNV','pluginName','4LFxBhH','3201003tHxYzh'];_0x127c=function(){return _0x137810;};return _0x127c();}import{CKEditorError as _0x4df38a}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x4ab1d0{static get[_0x13ace0(0x130)](){var _0x69aa65=_0x13ace0;return _0x69aa65(0x128);}static get[_0x13ace0(0x121)](){return!0x0;}static get[_0x13ace0(0x120)](){return!0x0;}[_0x13ace0(0x126)](){var _0x5c63e1=_0x13ace0;if(!this[_0x5c63e1(0x12a)])throw new _0x4df38a(_0x5c63e1(0x122),null);}}export class AIRequestError extends Error{constructor(_0x4a5f8f){var _0x128c1e=_0x13ace0;super(_0x4a5f8f),this[_0x128c1e(0x129)]=_0x128c1e(0x135);}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x480edb=_0x59cb;function _0x59cb(_0x150553,_0x1847db){const _0x192215=_0x1922();return _0x59cb=function(_0x59cbe5,_0x30f831){_0x59cbe5=_0x59cbe5-0x102;let _0x500a7e=_0x192215[_0x59cbe5];return _0x500a7e;},_0x59cb(_0x150553,_0x1847db);}(function(_0x1e93e9,_0x314377){const _0x1083cb=_0x59cb,_0x3afa7d=_0x1e93e9();while(!![]){try{const _0x5ec48b=parseInt(_0x1083cb(0x103))/0x1*(parseInt(_0x1083cb(0x121))/0x2)+-parseInt(_0x1083cb(0x118))/0x3+-parseInt(_0x1083cb(0x10b))/0x4+parseInt(_0x1083cb(0x10d))/0x5+-parseInt(_0x1083cb(0x11f))/0x6*(-parseInt(_0x1083cb(0x10e))/0x7)+-parseInt(_0x1083cb(0x11c))/0x8+parseInt(_0x1083cb(0x105))/0x9*(-parseInt(_0x1083cb(0x11b))/0xa);if(_0x5ec48b===_0x314377)break;else _0x3afa7d['push'](_0x3afa7d['shift']());}catch(_0x234917){_0x3afa7d['push'](_0x3afa7d['shift']());}}}(_0x1922,0x97e6f));import{Plugin as _0x3d6b67}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f6d83}from'ckeditor5/src/utils.js';import{AIAdapter as _0x1ba28d,AIRequestError as _0x1b7f85}from'./aiadapter.js';import{getTranslation as _0xfe6dee}from'../utils/common-translations.js';export class AITextAdapter extends _0x3d6b67{[_0x480edb(0x110)];static get[_0x480edb(0x111)](){return[_0x1ba28d];}constructor(_0x43dec4){const _0x1186e5=_0x480edb;super(_0x43dec4),this[_0x1186e5(0x110)]=new AbortController();}[_0x480edb(0x107)](){const _0x119228=_0x480edb;this[_0x119228(0x113)][_0x119228(0x10a)][_0x119228(0x11a)](_0x1ba28d)[_0x119228(0x125)]=this;}[_0x480edb(0x112)](){const _0x46a11e=_0x480edb;this[_0x46a11e(0x110)][_0x46a11e(0x10f)][_0x46a11e(0x10c)]||(this[_0x46a11e(0x110)][_0x46a11e(0x112)](),this[_0x46a11e(0x110)]=new AbortController());}async[_0x480edb(0x104)](_0x4c0fce){const _0x198aef=_0x480edb;return this[_0x198aef(0x123)](_0x4c0fce)[_0x198aef(0x116)](_0x30115a=>{const _0x26708d=_0x198aef;if(_0x30115a instanceof _0x1b7f85)return Promise[_0x26708d(0x119)](_0x30115a);if(_0x26708d(0x126)==_0x30115a[_0x26708d(0x102)])return Promise[_0x26708d(0x106)]();throw console[_0x26708d(0x11d)](_0x30115a),new _0x3f6d83(_0x26708d(0x109),null);});}async[_0x480edb(0x11e)](_0xcab676,_0x23c2c9){const _0x192572=_0x480edb,_0x25e92a=this[_0x192572(0x113)][_0x192572(0x114)],_0x3375ab={'Content-Type':_0x192572(0x108)};if(_0x192572(0x120)==typeof _0xcab676)Object[_0x192572(0x115)](_0x3375ab,_0xcab676);else{if(_0xcab676)try{const _0xc25292=await _0xcab676(_0x23c2c9);Object[_0x192572(0x115)](_0x3375ab,_0xc25292);}catch{return Promise[_0x192572(0x119)](new _0x1b7f85(_0xfe6dee(_0x25e92a,_0x192572(0x124))));}}return _0x3375ab;}async[_0x480edb(0x117)](_0x56093f,_0x37769a){const _0x2d88c7=_0x480edb,_0x40b5f4=this[_0x2d88c7(0x113)][_0x2d88c7(0x114)];if(_0x2d88c7(0x120)==typeof _0x56093f)return _0x56093f;try{return await _0x56093f(_0x37769a);}catch{return Promise[_0x2d88c7(0x119)](new _0x1b7f85(_0xfe6dee(_0x40b5f4,_0x2d88c7(0x122))));}}}function _0x1922(){const _0x4a4d83=['catch','_prepareRequestParameters','3578679uEUvIC','reject','get','3300130jJfrjz','6486696ITTsHg','error','_prepareRequestHeaders','1758UYcUXW','object','6GnbvAi','AI_ERROR_GET_PARAMETERS','sendRequest','AI_ERROR_GET_HEADERS','textAdapter','AbortError','name','396917pKvJVP','makeRequest','9Vaxldb','resolve','init','application/json','aitextadapter-send-request-failed','plugins','471104OBKDML','aborted','4152515sABveF','25144eiVajX','signal','abortController','requires','abort','editor','locale','assign'];_0x1922=function(){return _0x4a4d83;};return _0x1922();}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x4073(_0x2c1c63,_0x3a27e1){const _0xdfcfa2=_0xdfcf();return _0x4073=function(_0x407339,_0x43efb3){_0x407339=_0x407339-0x174;let _0x328d25=_0xdfcfa2[_0x407339];return _0x328d25;},_0x4073(_0x2c1c63,_0x3a27e1);}const _0x2704a4=_0x4073;(function(_0x5ae2ca,_0x6bb0ae){const _0x46f6f1=_0x4073,_0x5d1946=_0x5ae2ca();while(!![]){try{const _0x3d80d9=parseInt(_0x46f6f1(0x1c3))/0x1*(parseInt(_0x46f6f1(0x198))/0x2)+parseInt(_0x46f6f1(0x1b2))/0x3+parseInt(_0x46f6f1(0x18b))/0x4*(parseInt(_0x46f6f1(0x1b1))/0x5)+parseInt(_0x46f6f1(0x191))/0x6*(-parseInt(_0x46f6f1(0x177))/0x7)+-parseInt(_0x46f6f1(0x199))/0x8*(-parseInt(_0x46f6f1(0x1bc))/0x9)+-parseInt(_0x46f6f1(0x1b7))/0xa*(-parseInt(_0x46f6f1(0x1a9))/0xb)+-parseInt(_0x46f6f1(0x186))/0xc*(parseInt(_0x46f6f1(0x1b9))/0xd);if(_0x3d80d9===_0x6bb0ae)break;else _0x5d1946['push'](_0x5d1946['shift']());}catch(_0x3e509f){_0x5d1946['push'](_0x5d1946['shift']());}}}(_0xdfcf,0x50610));import{AITextAdapter as _0x25df7b}from'./aitextadapter.js';import{AIRequestError as _0x495666}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2ca9df,InvokeModelCommand as _0x4d6395,InvokeModelWithResponseStreamCommand as _0x549fcc}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x477c91}from'../utils/common-translations.js';function _0xdfcf(){const _0x13842f=['config','POST','349548EjbVgE','test','preparePrompt','Instruction:\x0a','parse','4fWahme','ai21.j2','_processProxyRequest','split','application/json','signal','2466QQOQXE','get','\x0a\x0aAssistant:','ai.aws.requestParameters','decode','_readAsyncIterableResponse','stringify','2MQsRNh','1784PvsVTF','ai.aws.bedrockClientConfig','resolve','<<SYS>>\x0a','map','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a<</SYS>>\x0a[INST]\x0a','bytes','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_apiUrl','text','anthropic.claude','pluginName','abortController','getModelFamily','_readStaticResponse','3949rEOGKl','editor','ai.aws.apiUrl','anthropic.claude-v2','_requestParameters','\x0a[/INST]','sendRequest','completion','2624485pTADbk','1897860YfGUvV','filter','join','_prepareRequestParameters','define','15550aNknAt','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','832IQKitU','generations','_processAWSRequest','21339ciLgFy','completions','_prepareRequestHeaders','getReader','_readStreamableResponse','_getGeneratedText','json','466442kHWNZt','generation','bedrock-2023-05-31','cohere.command','send','body','AWSTextAdapter','8813gKiKrI','length','read','AI_ERROR_UNSUPPORTED_MODEL','_requestHeaders','Human:\x0a','chunk','data','ai.aws.requestHeaders','locale','meta.llama','_bedrockClientConfig','utf-8'];_0xdfcf=function(){return _0x13842f;};return _0xdfcf();}export class AWSTextAdapter extends _0x25df7b{[_0x2704a4(0x1a2)];[_0x2704a4(0x17b)];[_0x2704a4(0x182)];[_0x2704a4(0x1ad)];static get[_0x2704a4(0x1a5)](){const _0x5280bc=_0x2704a4;return _0x5280bc(0x176);}constructor(_0x50ac7e){const _0x4062b2=_0x2704a4;super(_0x50ac7e),_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x192)](_0x4062b2(0x194))||_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x1b6)](_0x4062b2(0x194),{'model':_0x4062b2(0x1ac),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4062b2(0x1c5),'stream':!0x0}),this[_0x4062b2(0x1a2)]=_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x192)](_0x4062b2(0x1ab)),this[_0x4062b2(0x182)]=_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x192)](_0x4062b2(0x19a)),this[_0x4062b2(0x17b)]=_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x192)](_0x4062b2(0x17f)),this[_0x4062b2(0x1ad)]=_0x50ac7e[_0x4062b2(0x184)][_0x4062b2(0x192)](_0x4062b2(0x194));}async[_0x2704a4(0x1af)]({query:_0x46134a,context:_0x1a9b61,onData:_0x423798,actionId:_0x54fc8e}){const _0x4270cf=_0x2704a4,{model:_0x481df7,stream:_0x2f505f,..._0x5ae264}=await this[_0x4270cf(0x1b5)](this[_0x4270cf(0x1ad)],_0x54fc8e),_0x3489dd={'prompt':await this[_0x4270cf(0x188)](_0x46134a,_0x1a9b61,_0x481df7,_0x54fc8e),..._0x5ae264};this[_0x4270cf(0x1a2)]?await this[_0x4270cf(0x18d)](_0x3489dd,_0x481df7,_0x2f505f,_0x423798,_0x54fc8e):await this[_0x4270cf(0x1bb)](_0x3489dd,_0x481df7,_0x2f505f,_0x423798);}async[_0x2704a4(0x188)](_0x1074a4,_0x266f8c,_0x3df7d0,_0x5af820){const _0x30b60a=_0x2704a4;let _0x881a81,_0x328d3b;return _0x266f8c?(_0x881a81=_0x30b60a(0x19e),_0x328d3b=_0x30b60a(0x189)+_0x1074a4+_0x30b60a(0x1a1)+_0x266f8c):(_0x881a81=_0x30b60a(0x1b8),_0x328d3b=_0x1074a4),_0x30b60a(0x181)==this[_0x30b60a(0x1a7)](_0x3df7d0)?_0x30b60a(0x19c)+_0x881a81+_0x30b60a(0x19f)+_0x328d3b+_0x30b60a(0x1ae):_0x30b60a(0x17c)+_0x881a81+'\x0a'+_0x328d3b+_0x30b60a(0x193);}[_0x2704a4(0x1a7)](_0xec357){const _0x1405d7=_0x2704a4;if(/^anthropic\.claude/[_0x1405d7(0x187)](_0xec357))return _0x1405d7(0x1a4);if(/^ai21\.j2/[_0x1405d7(0x187)](_0xec357))return _0x1405d7(0x18c);if(/^cohere\.command/[_0x1405d7(0x187)](_0xec357))return _0x1405d7(0x1c6);if(/^meta\.llama/[_0x1405d7(0x187)](_0xec357))return _0x1405d7(0x181);throw new _0x495666(_0x477c91(this[_0x1405d7(0x1aa)][_0x1405d7(0x180)],_0x1405d7(0x17a),_0xec357));}async[_0x2704a4(0x18d)](_0x4ffe47,_0xeaa1c8,_0x4b6092,_0x4b549a,_0x12d68e){const _0x5182f4=_0x2704a4,_0x59d7fb={'method':_0x5182f4(0x185),'headers':await this[_0x5182f4(0x1be)](this[_0x5182f4(0x17b)],_0x12d68e),'body':JSON[_0x5182f4(0x197)]({..._0x4ffe47,'model':_0xeaa1c8,'stream':_0x4b6092}),'signal':this[_0x5182f4(0x1a6)][_0x5182f4(0x190)]},_0x47cb54=await fetch(this[_0x5182f4(0x1a2)],_0x59d7fb);_0x4b6092?await this[_0x5182f4(0x1c0)](_0x47cb54,_0xeaa1c8,_0x4b549a):await this[_0x5182f4(0x1a8)](_0x47cb54,_0xeaa1c8,_0x4b549a);}async[_0x2704a4(0x1bb)](_0x39f9b4,_0x4bd142,_0x330104,_0x35e14f){const _0x4b97a8=_0x2704a4,_0x57ca99=new _0x2ca9df(this[_0x4b97a8(0x182)]),_0x13580d={'body':JSON[_0x4b97a8(0x197)](_0x39f9b4),'contentType':_0x4b97a8(0x18f),'accept':_0x4b97a8(0x18f),'modelId':_0x4bd142};let _0x3d9f48;if(_0x330104){const _0x397caa=new _0x549fcc(_0x13580d);_0x3d9f48=await _0x57ca99[_0x4b97a8(0x174)](_0x397caa,{'abortSignal':this[_0x4b97a8(0x1a6)][_0x4b97a8(0x190)]}),await this[_0x4b97a8(0x196)](_0x3d9f48,_0x4bd142,_0x35e14f);}else{const _0x1c1d69=new _0x4d6395(_0x13580d);_0x3d9f48=await _0x57ca99[_0x4b97a8(0x174)](_0x1c1d69,{'abortSignal':this[_0x4b97a8(0x1a6)][_0x4b97a8(0x190)]}),await this[_0x4b97a8(0x1a8)](_0x3d9f48,_0x4bd142,_0x35e14f);}}async[_0x2704a4(0x196)](_0x5cec5d,_0x47e843,_0xb1ac6d){const _0x1afec7=_0x2704a4,_0x648e5e=_0x5cec5d[_0x1afec7(0x175)],_0x43b017=new TextDecoder(_0x1afec7(0x183));let _0x13e442='';for await(const _0x1d6764 of _0x648e5e)if(_0x1d6764[_0x1afec7(0x17d)]){const _0x2bd560=_0x43b017[_0x1afec7(0x195)](_0x1d6764[_0x1afec7(0x17d)][_0x1afec7(0x1a0)]),_0x3c8803=JSON[_0x1afec7(0x18a)](_0x2bd560);_0x13e442+=this[_0x1afec7(0x1c1)](_0x3c8803,_0x47e843),_0xb1ac6d(_0x13e442);}return Promise[_0x1afec7(0x19b)]();}async[_0x2704a4(0x1c0)](_0x1ad35c,_0x13f6bd,_0x21a7ae){const _0x5842dc=_0x2704a4,_0x35bcd4=_0x1ad35c[_0x5842dc(0x175)],_0x2b0501=new TextDecoder(_0x5842dc(0x183)),_0x471d29=_0x35bcd4[_0x5842dc(0x1bf)]();let _0x17eabf='',_0x470222='',_0x119e0e=!0x1;for(;!_0x119e0e;){const {done:_0x263f85,value:_0x1193a9}=await _0x471d29[_0x5842dc(0x179)]();if(_0x119e0e=_0x263f85,_0x119e0e)break;const _0x212095=(_0x17eabf+_0x2b0501[_0x5842dc(0x195)](_0x1193a9))[_0x5842dc(0x18e)]('\x0a')[_0x5842dc(0x19d)](_0x547bc4=>{const _0x3289c2=_0x5842dc;try{return _0x17eabf='',JSON[_0x3289c2(0x18a)](_0x547bc4);}catch{return _0x17eabf=_0x547bc4,null;}})[_0x5842dc(0x1b3)](_0x1b7256=>null!==_0x1b7256);_0x212095[_0x5842dc(0x178)]&&(_0x470222+=_0x212095[_0x5842dc(0x19d)](_0x3e0978=>this[_0x5842dc(0x1c1)](_0x3e0978,_0x13f6bd))[_0x5842dc(0x1b4)](''),_0x21a7ae(_0x470222));}return Promise[_0x5842dc(0x19b)]();}async[_0x2704a4(0x1a8)](_0x5af2e1,_0x50ceb7,_0x544ab9){const _0x516269=_0x2704a4;let _0x453e3d;return _0x453e3d=_0x5af2e1 instanceof Response?await _0x5af2e1[_0x516269(0x1c2)]():JSON[_0x516269(0x18a)](new TextDecoder(_0x516269(0x183))[_0x516269(0x195)](_0x5af2e1[_0x516269(0x175)])),(_0x544ab9(this[_0x516269(0x1c1)](_0x453e3d,_0x50ceb7)),Promise[_0x516269(0x19b)]());}[_0x2704a4(0x1c1)](_0x1ff783,_0x5c461a){const _0x553ebe=_0x2704a4;switch(this[_0x553ebe(0x1a7)](_0x5c461a)){case _0x553ebe(0x1a4):return _0x1ff783[_0x553ebe(0x1b0)];case _0x553ebe(0x18c):return _0x1ff783[_0x553ebe(0x1bd)][0x0][_0x553ebe(0x17e)][_0x553ebe(0x1a3)];case _0x553ebe(0x1c6):return _0x1ff783[_0x553ebe(0x1ba)][0x0][_0x553ebe(0x1a3)];case _0x553ebe(0x181):return _0x1ff783[_0x553ebe(0x1c4)];}}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x18c57d=_0x3d65;(function(_0x10d60b,_0x2f704f){const _0x34f68f=_0x3d65,_0x124198=_0x10d60b();while(!![]){try{const _0x35de77=-parseInt(_0x34f68f(0x185))/0x1*(parseInt(_0x34f68f(0x179))/0x2)+parseInt(_0x34f68f(0x16e))/0x3+-parseInt(_0x34f68f(0x14a))/0x4+parseInt(_0x34f68f(0x16a))/0x5+-parseInt(_0x34f68f(0x170))/0x6*(parseInt(_0x34f68f(0x143))/0x7)+parseInt(_0x34f68f(0x153))/0x8*(-parseInt(_0x34f68f(0x175))/0x9)+parseInt(_0x34f68f(0x169))/0xa*(parseInt(_0x34f68f(0x172))/0xb);if(_0x35de77===_0x2f704f)break;else _0x124198['push'](_0x124198['shift']());}catch(_0x110b9f){_0x124198['push'](_0x124198['shift']());}}}(_0x1474,0x28d32));function _0x3d65(_0x4ad8ca,_0x3c7630){const _0x14746d=_0x1474();return _0x3d65=function(_0x3d6529,_0x4ed211){_0x3d6529=_0x3d6529-0x142;let _0x4362e6=_0x14746d[_0x3d6529];return _0x4362e6;},_0x3d65(_0x4ad8ca,_0x3c7630);}function _0x1474(){const _0x15292c=['77nByOrH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','editor','44964ySZjKA','OpenAITextAdapter','_cleanUpData','sendRequest','272688RdgrCX','choices','delta','join','Instruction:\x0a','prepareMessages','replace','decode','json','length','system','parse','1aiULQp','get','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','body','gpt-4o','7sJOiwx','_isBufferIncomplete','ai.openAI.requestHeaders','stringify','message','ai.openAI.requestParameters','data:\x20','915216THWixa','_requestHeaders','AI_ERROR_MODERATION','filter','AI_ERROR_CONTEXT_LENGTH','includes','context_length_exceeded','https://api.openai.com/v1/chat/completions','resolve','8nXxPwd','_apiUrl','ai.openAI.apiUrl','_requestParameters','signal','define','_readStreamableResponse','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','_prepareRequestParameters','Moderation','reject','text','[DONE]','POST','split','getReader','_readStaticResponse','content','_prepareRequestHeaders','read','user','349730okWCNC','1161650KZMFkx','locale','pluginName','config','409332tYVyYm','abortController','457338muPTPW','stream'];_0x1474=function(){return _0x15292c;};return _0x1474();}import{AITextAdapter as _0x209a08}from'./aitextadapter.js';import{AIRequestError as _0x20ee39}from'./aiadapter.js';import{getTranslation as _0x30e42e}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x209a08{[_0x18c57d(0x154)];[_0x18c57d(0x14b)];[_0x18c57d(0x156)];static get[_0x18c57d(0x16c)](){const _0x5e07b4=_0x18c57d;return _0x5e07b4(0x176);}constructor(_0xce976f){const _0x490021=_0x18c57d;super(_0xce976f),_0xce976f[_0x490021(0x16d)][_0x490021(0x158)](_0x490021(0x155),_0x490021(0x151)),_0xce976f[_0x490021(0x16d)][_0x490021(0x186)](_0x490021(0x148))||_0xce976f[_0x490021(0x16d)][_0x490021(0x158)](_0x490021(0x148),{'model':_0x490021(0x142),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x490021(0x154)]=_0xce976f[_0x490021(0x16d)][_0x490021(0x186)](_0x490021(0x155)),this[_0x490021(0x14b)]=_0xce976f[_0x490021(0x16d)][_0x490021(0x186)](_0x490021(0x145))||{},this[_0x490021(0x156)]=_0xce976f[_0x490021(0x16d)][_0x490021(0x186)](_0x490021(0x148));}async[_0x18c57d(0x178)]({query:_0xaee187,context:_0x13e5b8,onData:_0x24fb01,actionId:_0x166612}){const _0x5f5d00=_0x18c57d,_0x14d56f=this[_0x5f5d00(0x174)][_0x5f5d00(0x16b)],_0xbc8ae2=await this[_0x5f5d00(0x17e)](_0xaee187,_0x13e5b8,_0x166612),_0x5c2c9b=await this[_0x5f5d00(0x166)](this[_0x5f5d00(0x14b)],_0x166612),_0x17e6db=await this[_0x5f5d00(0x15c)](this[_0x5f5d00(0x156)],_0x166612),_0x398b8f={'messages':_0xbc8ae2,..._0x17e6db},_0xbae4bb={'method':_0x5f5d00(0x161),'headers':_0x5c2c9b,'body':JSON[_0x5f5d00(0x146)](_0x398b8f),'signal':this[_0x5f5d00(0x16f)][_0x5f5d00(0x157)]},_0x387258=await fetch(this[_0x5f5d00(0x154)],_0xbae4bb);if(_0x387258['ok'])return _0x17e6db[_0x5f5d00(0x171)]?await this[_0x5f5d00(0x159)](_0x387258,_0x24fb01):await this[_0x5f5d00(0x164)](_0x387258,_0x24fb01),Promise[_0x5f5d00(0x152)]();{const _0x5c8733=await _0x387258[_0x5f5d00(0x15f)]();return _0x5c8733[_0x5f5d00(0x14f)](_0x5f5d00(0x150))?Promise[_0x5f5d00(0x15e)](new _0x20ee39(_0x30e42e(_0x14d56f,_0x5f5d00(0x14e)))):_0x5c8733[_0x5f5d00(0x14f)](_0x5f5d00(0x15d))?Promise[_0x5f5d00(0x15e)](new _0x20ee39(_0x30e42e(_0x14d56f,_0x5f5d00(0x14c)))):Promise[_0x5f5d00(0x15e)](new Error(_0x5c8733));}}async[_0x18c57d(0x17e)](_0x5853dd,_0x4c1fb6,_0x34f91e){const _0x4bbf9b=_0x18c57d;let _0x5c0afd,_0x2a7f33;return _0x4c1fb6?(_0x5c0afd=_0x4bbf9b(0x187),_0x2a7f33=_0x4bbf9b(0x17d)+_0x5853dd+_0x4bbf9b(0x173)+_0x4c1fb6):(_0x5c0afd=_0x4bbf9b(0x15a),_0x2a7f33=_0x5853dd),[{'role':_0x4bbf9b(0x183),'content':_0x5c0afd},{'role':_0x4bbf9b(0x168),'content':_0x2a7f33}];}async[_0x18c57d(0x159)](_0x520839,_0x3ffaa4){const _0x41724e=_0x18c57d,_0x4379fc=_0x520839[_0x41724e(0x188)][_0x41724e(0x163)](),_0x159119=new TextDecoder();let _0x3aaba4='',_0x1845d8='',_0x152a4a='',_0x23172b=!0x1;for(;!_0x23172b;){const {done:_0x57c3d5,value:_0x111b2a}=await _0x4379fc[_0x41724e(0x167)](),_0x4b03ca=_0x3aaba4+_0x159119[_0x41724e(0x180)](_0x111b2a);let _0x4ef7bb='';_0x23172b=_0x57c3d5;try{_0x4ef7bb=this[_0x41724e(0x177)](_0x4b03ca),_0x3aaba4='';}catch{_0x3aaba4=_0x4b03ca;continue;}_0x1845d8+=_0x4ef7bb,!_0x23172b&&this[_0x41724e(0x144)](_0x1845d8)||_0x1845d8&&(_0x152a4a+=_0x1845d8,_0x1845d8='',_0x3ffaa4(_0x152a4a));}return Promise[_0x41724e(0x152)]();}async[_0x18c57d(0x164)](_0x5067e8,_0x4fc46a){const _0x2fdac1=_0x18c57d;return _0x4fc46a((await _0x5067e8[_0x2fdac1(0x181)]())[_0x2fdac1(0x17a)][0x0][_0x2fdac1(0x147)][_0x2fdac1(0x165)]),Promise[_0x2fdac1(0x152)]();}[_0x18c57d(0x144)](_0x1b4eb1){const _0x2cd30e=_0x18c57d,_0x540088=_0x1b4eb1[_0x2cd30e(0x162)]('<')[_0x2cd30e(0x182)]!==_0x1b4eb1[_0x2cd30e(0x162)]('>')[_0x2cd30e(0x182)],_0x2152ce=_0x1b4eb1[_0x2cd30e(0x182)]<0x1e;return _0x540088&&_0x2152ce;}[_0x18c57d(0x177)](_0x188220){const _0x12296e=_0x18c57d;return _0x188220[_0x12296e(0x162)](/\n(?![^{]*\})/g)[_0x12296e(0x15b)](_0x2ad29d=>_0x2ad29d[_0x12296e(0x17f)](_0x12296e(0x149),''))[_0x12296e(0x14d)](_0x51d609=>_0x51d609&&_0x51d609[_0x12296e(0x182)]>0x0&&_0x12296e(0x160)!==_0x51d609)[_0x12296e(0x15b)](_0x59445e=>{const _0x17dfc0=_0x12296e,{choices:_0x27d2c3}=JSON[_0x17dfc0(0x184)](_0x59445e);if(_0x27d2c3[0x0]?.[_0x17dfc0(0x17b)]?.[_0x17dfc0(0x165)])return _0x27d2c3[0x0][_0x17dfc0(0x17b)][_0x17dfc0(0x165)];})[_0x12296e(0x14d)](_0xb1c914=>_0xb1c914)[_0x12296e(0x17c)]('');}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x5bd129=_0x44a7;(function(_0x26352e,_0x1417c7){const _0x310847=_0x44a7,_0x424620=_0x26352e();while(!![]){try{const _0x2b12a4=parseInt(_0x310847(0x197))/0x1*(parseInt(_0x310847(0x1ce))/0x2)+-parseInt(_0x310847(0x19e))/0x3*(-parseInt(_0x310847(0x1c5))/0x4)+-parseInt(_0x310847(0x1d7))/0x5*(parseInt(_0x310847(0x1ec))/0x6)+parseInt(_0x310847(0x1c4))/0x7+parseInt(_0x310847(0x1ab))/0x8+parseInt(_0x310847(0x1c6))/0x9+-parseInt(_0x310847(0x18e))/0xa;if(_0x2b12a4===_0x1417c7)break;else _0x424620['push'](_0x424620['shift']());}catch(_0x77eec3){_0x424620['push'](_0x424620['shift']());}}}(_0x5e39,0x8535e));function _0x44a7(_0x38ea63,_0x105cbd){const _0x5e39af=_0x5e39();return _0x44a7=function(_0x44a7e5,_0x596787){_0x44a7e5=_0x44a7e5-0x181;let _0x293b96=_0x5e39af[_0x44a7e5];return _0x293b96;},_0x44a7(_0x38ea63,_0x105cbd);}import{Plugin as _0x24b27c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x6ce8e9}from'./aiassistantui.js';import{AIAssistantEditing as _0x5f0324}from'./aiassistantediting.js';function _0x5e39(){const _0x3bfbcc=['Casual','locale','Change\x20style','ai.aiAssistant.commands','forEach','translateChinese','improveWriting','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','groupId','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Continue','generate','business','changeTone','2873220ImNyiY','Translate\x20the\x20content\x20to\x20Arabic\x20language.','push','German','friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translate','Simplify\x20language','Legal','Friendly','simplifyLanguage','makeLonger','casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','get','Translate\x20the\x20content\x20to\x20German\x20language.','French','5773570jodmaI','Summarize','English','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Make\x20shorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','requires','isOfficialPlugin','14987qCbmrP','AIAssistant','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Spanish','changeStyle','Poetic','summarize','18lYYnZQ','Confident','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.removeCommands','professional','Change\x20tone','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','direct','ai.aiAssistant.extraCommandGroups','commands','translateArabic','confident','config','1518128HpYhcf','Translate','translateEnglish','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','continue','poetic','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Direct','Improve\x20writing','Simplified\x20Chinese','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','pluginName','translateFrench','makeShorter','isPremiumPlugin','journalism','Translate\x20the\x20content\x20to\x20French\x20language.','translateSpanish','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Professional','define','filter','Arabic','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','6897072QqAnnj','13560HUDQcj','3388329uJAktV','find','Translate\x20the\x20content\x20to\x20English\x20language.','Hindi','Make\x20longer','set','translatePortuguese','Edit\x20or\x20review','4gtgpfk','Generate\x20from\x20selection','Journalism','editOrReview','translateGerman','ai.aiAssistant.preserveComments','legal','concat','includes','5TKDFhD','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Business','Portuguese','translateHindi','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'];_0x5e39=function(){return _0x3bfbcc;};return _0x5e39();}import{getTranslation as _0x21ae89}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x201ae8}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x24b27c{static get[_0x5bd129(0x195)](){return[_0x6ce8e9,_0x5f0324];}static get[_0x5bd129(0x1b7)](){const _0x50f1f4=_0x5bd129;return _0x50f1f4(0x198);}static get[_0x5bd129(0x196)](){return!0x0;}static get[_0x5bd129(0x1ba)](){return!0x0;}constructor(_0x496958){const _0x5d00a9=_0x5bd129;super(_0x496958);const _0xe448d=_0x496958[_0x5d00a9(0x1aa)],_0x1b915b=_0x496958[_0x5d00a9(0x1df)];_0xe448d[_0x5d00a9(0x1c0)](_0x5d00a9(0x1d3),!0x0),_0xe448d[_0x5d00a9(0x1c0)](_0x5d00a9(0x1e1),getDefaultAICommands(_0x1b915b)),_0xe448d[_0x5d00a9(0x1c0)](_0x5d00a9(0x1a6),[]),_0xe448d[_0x5d00a9(0x1c0)](_0x5d00a9(0x1a1),[]);let _0x20ca00=_0x201ae8(_0xe448d[_0x5d00a9(0x18b)](_0x5d00a9(0x1e1)),_0x1b915b);const _0x13d70a=_0xe448d[_0x5d00a9(0x18b)](_0x5d00a9(0x1a6)),_0x295351=_0xe448d[_0x5d00a9(0x18b)](_0x5d00a9(0x1a1));_0x13d70a[_0x5d00a9(0x1e2)](_0x243263=>{const _0x61d0ea=_0x5d00a9,_0x499f6b=_0x20ca00[_0x61d0ea(0x1c7)](_0x4a309d=>_0x4a309d[_0x61d0ea(0x1e6)]===_0x243263[_0x61d0ea(0x1e6)]);_0x499f6b?_0x499f6b[_0x61d0ea(0x1a7)]=_0x499f6b[_0x61d0ea(0x1a7)][_0x61d0ea(0x1d5)](_0x243263[_0x61d0ea(0x1a7)]):_0x20ca00[_0x61d0ea(0x1ee)](_0x243263);}),_0x20ca00=_0x20ca00[_0x5d00a9(0x1c1)](_0x54cdc6=>!_0x295351[_0x5d00a9(0x1d6)](_0x54cdc6[_0x5d00a9(0x1e6)])),_0x20ca00[_0x5d00a9(0x1e2)](_0x58ed1a=>{const _0x7451e2=_0x5d00a9;_0x58ed1a[_0x7451e2(0x1a7)]=_0x58ed1a[_0x7451e2(0x1a7)][_0x7451e2(0x1c1)](_0x24e7a6=>!_0x295351[_0x7451e2(0x1d6)](_0x24e7a6['id']));}),_0xe448d[_0x5d00a9(0x1cb)](_0x5d00a9(0x1e1),_0x20ca00);}}export function getDefaultAICommands(_0x1e0ee5){const _0x5bd6c3=_0x5bd129;return[{'groupId':_0x5bd6c3(0x1d1),'groupLabel':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1cd)),'commands':[{'id':_0x5bd6c3(0x1e4),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1b4)),'prompt':_0x5bd6c3(0x1b2)},{'id':_0x5bd6c3(0x1b9),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x193)),'prompt':_0x5bd6c3(0x1be)},{'id':_0x5bd6c3(0x188),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1ca)),'prompt':_0x5bd6c3(0x1a0)},{'id':_0x5bd6c3(0x187),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x184)),'prompt':_0x5bd6c3(0x1b6)}]},{'groupId':_0x5bd6c3(0x1e9),'groupLabel':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1cf)),'commands':[{'id':_0x5bd6c3(0x19d),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x18f)),'prompt':_0x5bd6c3(0x199)},{'id':_0x5bd6c3(0x1b0),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1e8)),'prompt':_0x5bd6c3(0x1c3)}]},{'groupId':_0x5bd6c3(0x1eb),'groupLabel':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1a3)),'commands':[{'id':_0x5bd6c3(0x1a2),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1bf)),'prompt':_0x5bd6c3(0x191)},{'id':_0x5bd6c3(0x189),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1de)),'prompt':_0x5bd6c3(0x1a4)},{'id':_0x5bd6c3(0x1a5),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1b3)),'prompt':_0x5bd6c3(0x1e7)},{'id':_0x5bd6c3(0x1a9),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x19f)),'prompt':_0x5bd6c3(0x192)},{'id':_0x5bd6c3(0x181),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x186)),'prompt':_0x5bd6c3(0x1e5)}]},{'groupId':_0x5bd6c3(0x19b),'groupLabel':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1e0)),'commands':[{'id':_0x5bd6c3(0x1ea),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1d9)),'prompt':_0x5bd6c3(0x182)},{'id':_0x5bd6c3(0x1d4),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x185)),'prompt':_0x5bd6c3(0x18a)},{'id':_0x5bd6c3(0x1bb),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1d0)),'prompt':_0x5bd6c3(0x1af)},{'id':_0x5bd6c3(0x1b1),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x19c)),'prompt':_0x5bd6c3(0x1dd)}]},{'groupId':_0x5bd6c3(0x183),'groupLabel':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1ac)),'commands':[{'id':_0x5bd6c3(0x1ad),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x190)),'prompt':_0x5bd6c3(0x1c8)},{'id':_0x5bd6c3(0x1bd),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x19a)),'prompt':_0x5bd6c3(0x1d8)},{'id':_0x5bd6c3(0x1cc),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1da)),'prompt':_0x5bd6c3(0x194)},{'id':_0x5bd6c3(0x1d2),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1ef)),'prompt':_0x5bd6c3(0x18c)},{'id':_0x5bd6c3(0x1b8),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x18d)),'prompt':_0x5bd6c3(0x1bc)},{'id':_0x5bd6c3(0x1e3),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1b5)),'prompt':_0x5bd6c3(0x1dc)},{'id':_0x5bd6c3(0x1db),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1c9)),'prompt':_0x5bd6c3(0x1ae)},{'id':_0x5bd6c3(0x1a8),'label':_0x21ae89(_0x1e0ee5,_0x5bd6c3(0x1c2)),'prompt':_0x5bd6c3(0x1ed)}]}];}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x1f1314=_0x484b;function _0x3117(){const _0x2330c3=['AIAssistantEditing','has','getSelectedBlocks','model','2796342RGxKUW','isContent','hideFakeVisualSelection','pop','forEach','getRanges','last','first','TableUtils','DataTransfer','element','join','getChild','getChildren','insertContentBelow','updateMarker','getMarkersGroup','createPositionAfter','deleteContent','push','findAncestor','_createEmptyTableRows','markers','13475sSDQxq','end','markerToElement','from','config','data','for','getRowIndexes','ai-ui','addClass','once','1188783XuRAaT','get','3599637fDOHRz','fromCharCode','ck-fake-ai-selection','markerRange','_prepareTableInsertBelowPosition','document','getFirstRange','table','change','schema','isAtEnd','editingDowncast','isPremiumPlugin','pluginName','fire','_getTableRowCountFromContent','markerToHighlight','getRange','off','_resetContentOfSelectedTableCells','selection','createSelection','editing','54iyhEaU','init','start','ai.useTheme','plugins','isOfficialPlugin','text/html','showFakeVisualSelection','7750498yNYFMV','paste','getLastMatchingPosition','isCollapsed','href','_getDefaultInsertBelowPosition','getColumnIndexes','length','editor','afterInit','setData','1052xTvziQ','span','getSelectedTableCells','insertContent','map','ck-fake-ai-selection_collapsed','addMarker','parse','lowest','4123686dYVOBA','setSelection','getRows','contentInsertion','filter','getLastPosition','createUIElement','insertRows','createPositionAt','removeMarker','createRange','canEditAt','ck-ai-assistant-ui_theme','resultRange','conversion','4801240aqymGn','_pasteHTMLUsingClipboard','_getAISelection'];_0x3117=function(){return _0x2330c3;};return _0x3117();}(function(_0x56f5df,_0x47595f){const _0xf07e5f=_0x484b,_0x38f11e=_0x56f5df();while(!![]){try{const _0xfba190=-parseInt(_0xf07e5f(0x7f))/0x1+-parseInt(_0xf07e5f(0xca))/0x2+-parseInt(_0xf07e5f(0x81))/0x3+-parseInt(_0xf07e5f(0xab))/0x4*(parseInt(_0xf07e5f(0xe1))/0x5)+parseInt(_0xf07e5f(0xb4))/0x6+parseInt(_0xf07e5f(0xa0))/0x7+parseInt(_0xf07e5f(0xc3))/0x8*(parseInt(_0xf07e5f(0x98))/0x9);if(_0xfba190===_0x47595f)break;else _0x38f11e['push'](_0x38f11e['shift']());}catch(_0x222968){_0x38f11e['push'](_0x38f11e['shift']());}}}(_0x3117,0xdbadf));import{uid as _0x1fe575}from'ckeditor5/src/utils.js';import{Plugin as _0x4e91cb}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2305c6}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x3c12c8,ViewDataTransfer as _0x869f3f}from'ckeditor5/src/engine.js';const l=globalThis[_0x1f1314(0xd3)],w=_0x1f1314(0x7c);function _0x484b(_0xc6bf63,_0x4eef9a){const _0x31178c=_0x3117();return _0x484b=function(_0x484b06,_0xf63e64){_0x484b06=_0x484b06-0x78;let _0x5ec1b5=_0x31178c[_0x484b06];return _0x5ec1b5;},_0x484b(_0xc6bf63,_0x4eef9a);}export class AIAssistantEditing extends _0x4e91cb{static get[_0x1f1314(0x8e)](){const _0x10dc20=_0x1f1314;return _0x10dc20(0xc6);}static get[_0x1f1314(0x9d)](){return!0x0;}static get[_0x1f1314(0x8d)](){return!0x0;}[_0x1f1314(0x99)](){const _0x5240f4=_0x1f1314,{editor:_0x41b903}=this,_0x11b23e=[_0x5240f4(0x83)];_0x41b903[_0x5240f4(0x78)][_0x5240f4(0x80)](_0x5240f4(0x9b))&&_0x11b23e[_0x5240f4(0xdd)](_0x5240f4(0xc0)),_0x41b903[_0x5240f4(0xc2)][_0x5240f4(0x7a)](_0x5240f4(0x8c))[_0x5240f4(0x91)]({'model':w,'view':{'classes':_0x11b23e,'priority':0xc}}),_0x41b903[_0x5240f4(0xc2)][_0x5240f4(0x7a)](_0x5240f4(0x8c))[_0x5240f4(0xe3)]({'model':w,'view':(_0x1829ea,{writer:_0xbfc94e})=>{const _0x8223f0=_0x5240f4;if(!_0x1829ea[_0x8223f0(0x84)][_0x8223f0(0xa3)])return null;const _0x5196f7=_0xbfc94e[_0x8223f0(0xba)](_0x8223f0(0xac));return _0xbfc94e[_0x8223f0(0x7d)]([_0x8223f0(0x83),_0x8223f0(0xb0)],_0x5196f7),_0x5196f7;}});}[_0x1f1314(0xa9)](){!async function(_0x5c17e9){const _0x1ef3c3=_0x43a76b([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x42251e=0x3dffc4e1,_0x44c8ed=0x3df8b791^_0x42251e,_0x350a3c=window[_0x43a76b([0x44,0x61,0x74,0x65])][_0x43a76b([0x6e,0x6f,0x77])](),_0x3161e4=_0x5c17e9[_0x43a76b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d3c3f=new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x789f27=>{_0x3161e4[_0x43a76b([0x6f,0x6e,0x63,0x65])](_0x43a76b([0x72,0x65,0x61,0x64,0x79]),_0x789f27);}),_0x1ec19d={[_0x43a76b([0x6b,0x74,0x79])]:_0x43a76b([0x45,0x43]),[_0x43a76b([0x75,0x73,0x65])]:_0x43a76b([0x73,0x69,0x67]),[_0x43a76b([0x63,0x72,0x76])]:_0x43a76b([0x50,0x2d,0x32,0x35,0x36]),[_0x43a76b([0x78])]:_0x43a76b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x43a76b([0x79])]:_0x43a76b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x43a76b([0x61,0x6c,0x67])]:_0x43a76b([0x45,0x53,0x32,0x35,0x36])},_0xa2161f=_0x3161e4[_0x43a76b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43a76b([0x67,0x65,0x74])](_0x43a76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x452abe(){let _0x4072d6,_0x369901=null,_0x559fc6=null;try{if(_0xa2161f==_0x43a76b([0x47,0x50,0x4c]))return _0x43a76b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4072d6=_0x45e84e(),!_0x4072d6)return _0x43a76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4072d6[_0x43a76b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x559fc6=_0x3164e9(_0x4072d6[_0x43a76b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4072d6[_0x43a76b([0x6a,0x74,0x69])])),await _0x59b75d()?_0x29adb0()?_0x23cbf1()?_0x43a76b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ea5b7()?(_0x4072d6[_0x43a76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43a76b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x369901=_0x5b5d41(_0x43a76b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4072d6[_0x43a76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43a76b([0x74,0x72,0x69,0x61,0x6c])&&(_0x369901=_0x5b5d41(_0x43a76b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdbb37a()):_0x43a76b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43a76b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43a76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x43a76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23cbf1(){const _0x2f1545=[_0x43a76b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43a76b([0x74,0x72,0x69,0x61,0x6c])][_0x43a76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4072d6[_0x43a76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x350a3c/0x3e8:0xe10*_0x44c8ed;return _0x4072d6[_0x43a76b([0x65,0x78,0x70])]<_0x2f1545;}function _0x29adb0(){const _0x18fd6b=_0x4072d6[_0x43a76b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18fd6b&&(!!_0x18fd6b[_0x43a76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a76b([0x2a]))||!!_0x18fd6b[_0x43a76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a76b([0x41,0x49])));}function _0x1ea5b7(){const _0x54ce65=_0x484b,_0x49af9a=_0x4072d6[_0x43a76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49af9a||0x0==_0x49af9a[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x195caf}=new URL(window[_0x43a76b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x54ce65(0xa4)]);if(_0x49af9a[_0x43a76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195caf))return!0x0;const _0x5b857a=_0x195caf[_0x43a76b([0x73,0x70,0x6c,0x69,0x74])](_0x43a76b([0x2e]));return _0x49af9a[_0x43a76b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc7bd08=>_0xc7bd08[_0x43a76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a76b([0x2a])))[_0x43a76b([0x6d,0x61,0x70])](_0x23d07b=>_0x23d07b[_0x43a76b([0x73,0x70,0x6c,0x69,0x74])](_0x43a76b([0x2e])))[_0x43a76b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45d4e8=>_0x45d4e8[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b857a[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43a76b([0x6d,0x61,0x70])](_0x231115=>Array(_0x5b857a[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x231115[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43a76b([0x66,0x69,0x6c,0x6c])](_0x231115[0x0]===_0x43a76b([0x2a])?_0x43a76b([0x2a]):'')[_0x43a76b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x231115))[_0x43a76b([0x73,0x6f,0x6d,0x65])](_0x13f855=>_0x5b857a[_0x43a76b([0x65,0x76,0x65,0x72,0x79])]((_0x4abaa6,_0x43c6e4)=>_0x13f855[_0x43c6e4]===_0x4abaa6||_0x13f855[_0x43c6e4]===_0x43a76b([0x2a])));}function _0xdbb37a(){return _0x369901&&_0x559fc6?new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27f9f4,_0x55f57f)=>{_0x369901[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x27f9f4,_0x55f57f),_0x559fc6[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x1a91e6=>{_0x1a91e6!=_0x43a76b([0x56,0x61,0x6c,0x69,0x64])&&_0x27f9f4(_0x1a91e6);},_0x55f57f);}):_0x369901||_0x559fc6||_0x43a76b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3164e9(_0x4212a4,_0x49c28b){return new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58fd23=>{if(_0x734f53())return _0x58fd23(_0x43a76b([0x56,0x61,0x6c,0x69,0x64]));_0x44240d(),_0x3161e4[_0x43a76b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43a76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6f4c94=!0x1;const _0x8c0f3=_0x1fe575();function _0x46806e(_0x525bfb){return!!_0x525bfb&&(typeof _0x525bfb===_0x43a76b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x525bfb===_0x43a76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x525bfb[_0x43a76b([0x74,0x68,0x65,0x6e])]===_0x43a76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x525bfb[_0x43a76b([0x63,0x61,0x74,0x63,0x68])]===_0x43a76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1830(_0x243c62){_0x4ae715(_0x243c62)[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x535519=>{if(!_0x535519||_0x535519[_0x43a76b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43a76b([0x6f,0x6b]))return _0x43a76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2444bf(_0x2e9b6e(_0x8c0f3+_0x49c28b))!=_0x535519[_0x43a76b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43a76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43a76b([0x56,0x61,0x6c,0x69,0x64]);})[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x2020fc=>(_0x107700(),_0x2020fc),()=>{const _0x4085f7=_0x360d61();return null==_0x4085f7?(_0x107700(),_0x43a76b([0x56,0x61,0x6c,0x69,0x64])):_0x43a76b(_0x350a3c-_0x4085f7>(0x19f340e1^_0x42251e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x58fd23)[_0x43a76b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58fd23(_0x43a76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x420711=0x3dc92a61^_0x42251e;function _0x107700(){const _0x1dace8=_0x43a76b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2444bf(_0x2e9b6e(_0x4212a4)),_0x422114=_0x5da12c(_0x2444bf(window[_0x43a76b([0x4d,0x61,0x74,0x68])][_0x43a76b([0x63,0x65,0x69,0x6c])](_0x350a3c/_0x420711)));window[_0x43a76b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43a76b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dace8,_0x422114);}function _0x360d61(){const _0x18f4fb=_0x43a76b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2444bf(_0x2e9b6e(_0x4212a4)),_0x35318d=window[_0x43a76b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43a76b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f4fb);return _0x35318d?window[_0x43a76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5da12c(_0x35318d),0x10)*_0x420711:null;}function _0x4ae715(_0x3762d7){return new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x427789,_0x49bc50)=>{_0x3762d7[_0x43a76b([0x74,0x68,0x65,0x6e])](_0x427789,_0x49bc50),window[_0x43a76b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49bc50,0x3dfe1021^_0x42251e);});}}_0x3161e4[_0x43a76b([0x6f,0x6e])](_0x43a76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x228a19,_0x2f68a9)=>{if(_0x2f68a9[0x0]!=_0x4212a4)return _0x58fd23(_0x43a76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68a9[0x1]={..._0x2f68a9[0x1],[_0x43a76b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8c0f3};},{[_0x43a76b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43a76b([0x68,0x69,0x67,0x68])}),_0x3161e4[_0x43a76b([0x6f,0x6e])](_0x43a76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c3360=>{_0x46806e(_0x1c3360[_0x43a76b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6f4c94=!0x0,_0x1f1830(_0x1c3360[_0x43a76b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43a76b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43a76b([0x6c,0x6f,0x77])}),_0x2d3c3f[_0x43a76b([0x74,0x68,0x65,0x6e])](()=>{_0x6f4c94||_0x58fd23(_0x43a76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x734f53(){return _0x3161e4[_0x43a76b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43a76b([0x76,0x69,0x65,0x77])][_0x43a76b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43a76b([0x61,0x75,0x74,0x6f]);}function _0x44240d(){_0x3161e4[_0x43a76b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43a76b([0x76,0x69,0x65,0x77])][_0x43a76b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43a76b([0x61,0x75,0x74,0x6f]);}}function _0x5b5d41(_0x33d528){const _0xcff86=[new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ef15d=>setTimeout(_0x1ef15d,0x3df6fa2d^_0x42251e)),_0x2d3c3f[_0x43a76b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47daeb=>{let _0x6ff054=0x0;_0x3161e4[_0x43a76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a76b([0x6f,0x6e])](_0x43a76b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x518e0d,_0x3f5bb0)=>{_0x3f5bb0[0x0][_0x43a76b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6ff054++,_0x6ff054==(0x3dffc519^_0x42251e)&&(_0x47daeb(),_0x518e0d[_0x43a76b([0x6f,0x66,0x66])]());});}))];return window[_0x43a76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43a76b([0x72,0x61,0x63,0x65])](_0xcff86)[_0x43a76b([0x74,0x68,0x65,0x6e])](()=>_0x33d528);}async function _0x330c49(){await _0x2d3c3f,_0x3161e4[_0x43a76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a76b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5450c0,_0x3161e4[_0x43a76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a76b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5450c0,_0x3161e4[_0x43a76b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43a76b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x220167(_0x1bbcc2){const _0x4ebc12=_0x55d78c();_0x3161e4[_0x4ebc12]=_0x43a76b([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bbcc2,_0x1bbcc2!=_0x43a76b([0x56,0x61,0x6c,0x69,0x64])&&_0x330c49();}function _0x55d78c(){const _0x113217=window[_0x43a76b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43a76b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43a76b([0x6e,0x6f,0x77])]())[_0x43a76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43a76b([0x2e]),'');let _0x568ce2=_0x43a76b([0x6e]);for(let _0x4bd6fb=0x0;_0x4bd6fb<_0x113217[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd6fb+=0x2){let _0xa6364e=window[_0x43a76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x113217[_0x43a76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bd6fb,_0x4bd6fb+0x2));_0xa6364e>=_0x1ef3c3[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa6364e-=_0x1ef3c3[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568ce2+=_0x1ef3c3[_0xa6364e];}return _0x568ce2;}function _0x45e84e(){const _0x36cc71=_0xa2161f[_0x43a76b([0x73,0x70,0x6c,0x69,0x74])](_0x43a76b([0x2e]));if(0x3!=_0x36cc71[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x426ff9(_0x36cc71[0x1]);function _0x426ff9(_0x4fcd66){const _0x3e3d41=_0x1cbcf1(_0x4fcd66);return _0x3e3d41&&_0xc5127()?_0x3e3d41:null;function _0xc5127(){const _0xc2f30f=_0x3e3d41[_0x43a76b([0x6a,0x74,0x69])],_0x200939=window[_0x43a76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc2f30f[_0x43a76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc2f30f[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x313272={..._0x3e3d41,[_0x43a76b([0x6a,0x74,0x69])]:_0xc2f30f[_0x43a76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc2f30f[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x313272[_0x43a76b([0x76,0x63])],_0x2e9b6e(_0x313272)==_0x200939;}}}async function _0x59b75d(){let _0x3e7d90=!0x0;try{const _0x3f0811=_0xa2161f[_0x43a76b([0x73,0x70,0x6c,0x69,0x74])](_0x43a76b([0x2e])),[_0x5a266b,_0x6a14e6,_0x4036e5]=_0x3f0811;return _0x584ce8(_0x5a266b),await _0x2b321d(_0x5a266b,_0x6a14e6,_0x4036e5),_0x3e7d90;}catch{return!0x1;}function _0x584ce8(_0x2879ac){const _0x3c5140=_0x1cbcf1(_0x2879ac);_0x3c5140&&_0x3c5140[_0x43a76b([0x61,0x6c,0x67])]==_0x43a76b([0x45,0x53,0x32,0x35,0x36])||(_0x3e7d90=!0x1);}async function _0x2b321d(_0x9b135c,_0xff0b6a,_0x5aa9b1){const _0x295fe=window[_0x43a76b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43a76b([0x66,0x72,0x6f,0x6d])](_0x58539a(_0x5aa9b1),_0x19f540=>_0x19f540[_0x43a76b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x474589=new window[(_0x43a76b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43a76b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9b135c+_0x43a76b([0x2e])+_0xff0b6a),_0x4f68ad=window[_0x43a76b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43a76b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f68ad)return;const _0x2a7ccb=await _0x4f68ad[_0x43a76b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43a76b([0x6a,0x77,0x6b]),_0x1ec19d,{[_0x43a76b([0x6e,0x61,0x6d,0x65])]:_0x43a76b([0x45,0x43,0x44,0x53,0x41]),[_0x43a76b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43a76b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43a76b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f68ad[_0x43a76b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43a76b([0x6e,0x61,0x6d,0x65])]:_0x43a76b([0x45,0x43,0x44,0x53,0x41]),[_0x43a76b([0x68,0x61,0x73,0x68])]:{[_0x43a76b([0x6e,0x61,0x6d,0x65])]:_0x43a76b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a7ccb,_0x295fe,_0x474589)||(_0x3e7d90=!0x1);}}function _0x1cbcf1(_0x368fad){return _0x368fad[_0x43a76b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43a76b([0x65,0x79]))?JSON[_0x43a76b([0x70,0x61,0x72,0x73,0x65])](_0x58539a(_0x368fad)):null;}function _0x58539a(_0x3b2099){return window[_0x43a76b([0x61,0x74,0x6f,0x62])](_0x3b2099[_0x43a76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43a76b([0x2b]))[_0x43a76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43a76b([0x2f])));}function _0x2e9b6e(_0x2659a5){let _0x1f9db8=0x1505;function _0x22ca61(_0x56ce15){for(let _0xd3e004=0x0;_0xd3e004<_0x56ce15[_0x43a76b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd3e004++){const _0x2e54f7=_0x56ce15[_0x43a76b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd3e004);_0x1f9db8=(_0x1f9db8<<0x5)+_0x1f9db8+_0x2e54f7,_0x1f9db8&=_0x1f9db8;}}function _0x462bdf(_0x2e6ece){Array[_0x43a76b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e6ece)?_0x2e6ece[_0x43a76b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x462bdf):_0x2e6ece&&typeof _0x2e6ece==_0x43a76b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43a76b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e6ece)[_0x43a76b([0x73,0x6f,0x72,0x74])]()[_0x43a76b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d57b8,_0x1b4b12])=>{_0x22ca61(_0x3d57b8),_0x462bdf(_0x1b4b12);}):_0x22ca61(window[_0x43a76b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e6ece));}return _0x462bdf(_0x2659a5),_0x1f9db8>>>0x0;}function _0x2444bf(_0x3257f3){return _0x3257f3[_0x43a76b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43a76b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43a76b([0x30]));}function _0x5da12c(_0x13b473){return _0x13b473[_0x43a76b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43a76b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43a76b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5450c0(){}function _0x43a76b(_0x2236db){const _0x3985e0=_0x484b;return _0x2236db[_0x3985e0(0xaf)](_0x5dbd07=>String[_0x3985e0(0x82)](_0x5dbd07))[_0x3985e0(0xd5)]('');}_0x220167(await _0x452abe());}(this);}[_0x1f1314(0x9f)](){const _0x3f921c=_0x1f1314,_0x4deac9=this[_0x3f921c(0xa8)][_0x3f921c(0xc9)];_0x4deac9[_0x3f921c(0x89)](_0x3f8f9b=>{const _0x27cb2d=_0x3f921c,_0x146887=_0x4deac9[_0x27cb2d(0x86)][_0x27cb2d(0x95)][_0x27cb2d(0xcf)]();let _0x203bc5=0x0;for(const _0x434193 of _0x146887){const _0x1d9825=w+':'+_0x203bc5;if(_0x4deac9[_0x27cb2d(0xe0)][_0x27cb2d(0xc7)](_0x1d9825))_0x3f8f9b[_0x27cb2d(0xd9)](_0x1d9825,{'range':_0x434193});else{if(_0x434193[_0x27cb2d(0x9a)][_0x27cb2d(0x8b)]){const _0xd44d43=_0x434193[_0x27cb2d(0x9a)][_0x27cb2d(0xa2)](({item:_0x2b6250})=>!_0x4deac9[_0x27cb2d(0x8a)][_0x27cb2d(0xcb)](_0x2b6250),{'boundaries':_0x434193});_0x3f8f9b[_0x27cb2d(0xb1)](_0x1d9825,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f8f9b[_0x27cb2d(0xbe)](_0xd44d43,_0x434193[_0x27cb2d(0xe2)])});}else _0x3f8f9b[_0x27cb2d(0xb1)](_0x1d9825,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x434193});}_0x203bc5++;}});}[_0x1f1314(0xcc)](){const _0xb27351=_0x1f1314,_0x27f16a=this[_0xb27351(0xa8)][_0xb27351(0xc9)],_0x4fe3f8=Array[_0xb27351(0xe4)](this[_0xb27351(0xa8)][_0xb27351(0xc9)][_0xb27351(0xe0)][_0xb27351(0xda)](w));_0x4fe3f8[_0xb27351(0xa7)]&&_0x27f16a[_0xb27351(0x89)](_0x404aa3=>{const _0x178122=_0xb27351;_0x4fe3f8[_0x178122(0xce)](_0x2dcf33=>{const _0x29e0e8=_0x178122;_0x404aa3[_0x29e0e8(0xbd)](_0x2dcf33);});});}[_0x1f1314(0xae)](_0x1bee58,_0x383fd2){const _0x2577dd=_0x1f1314,_0x3d41c0=this[_0x2577dd(0xc5)](),_0x267ce7=_0x383fd2||_0x3d41c0[_0x2577dd(0x87)]();this[_0x2577dd(0xa8)][_0x2577dd(0xc9)][_0x2577dd(0xbf)](_0x267ce7)&&this[_0x2577dd(0xa8)][_0x2577dd(0xc9)][_0x2577dd(0x89)](_0x32e5f7=>{const _0x1f56a4=_0x2577dd;this[_0x1f56a4(0xcc)](),_0x383fd2||this[_0x1f56a4(0x94)](_0x32e5f7,_0x3d41c0),this[_0x1f56a4(0xc4)]({'insertAt':_0x267ce7,'writer':_0x32e5f7,'html':_0x1bee58});});}[_0x1f1314(0xd8)](_0x35139b){const _0x20f64f=_0x1f1314,{model:_0x29f8f9}=this[_0x20f64f(0xa8)],_0x50562b=this[_0x20f64f(0xc5)]();_0x29f8f9[_0x20f64f(0x89)](()=>{const _0xd8c5b5=_0x20f64f,_0x30ff94=this[_0xd8c5b5(0x85)](_0x35139b,_0x50562b)||this[_0xd8c5b5(0xa5)](_0x50562b);this[_0xd8c5b5(0xae)](_0x35139b,_0x30ff94);});}[_0x1f1314(0xc5)](){const _0x2529e1=_0x1f1314,_0x3c565b=this[_0x2529e1(0xa8)][_0x2529e1(0xc9)],_0x267290=Array[_0x2529e1(0xe4)](_0x3c565b[_0x2529e1(0xe0)][_0x2529e1(0xda)](w))[_0x2529e1(0xaf)](_0x5ee868=>_0x5ee868[_0x2529e1(0x92)]());return _0x3c565b[_0x2529e1(0x96)](_0x267290);}[_0x1f1314(0xc4)]({writer:_0x2d89a1,html:_0x1df7d3,insertAt:_0x26d9bd}){const _0x24fa63=_0x1f1314,{view:_0x1f86d5}=this[_0x24fa63(0xa8)][_0x24fa63(0x97)],_0x3c0371=this[_0x24fa63(0xa8)][_0x24fa63(0x9c)][_0x24fa63(0x80)](_0x2305c6),_0x38e9a5=new l();_0x38e9a5[_0x24fa63(0xaa)](_0x24fa63(0x9e),_0x1df7d3);const _0x46e543=new ClipboardEvent(_0x24fa63(0xa1),{'clipboardData':_0x38e9a5}),_0x49d280=new _0x3c12c8(_0x1f86d5,_0x46e543,{'dataTransfer':new _0x869f3f(_0x38e9a5)});_0x2d89a1[_0x24fa63(0xb5)](_0x26d9bd);const _0x4d3478=(_0xb1a3b6,_0x4b6b3a)=>{const _0x182d30=_0x24fa63;_0x4b6b3a[_0x182d30(0xc1)]&&_0x2d89a1[_0x182d30(0xb5)](_0x4b6b3a[_0x182d30(0xc1)]);};_0x3c0371[_0x24fa63(0x7e)](_0x24fa63(0xb7),_0x4d3478,{'priority':_0x24fa63(0xb3)}),_0x1f86d5[_0x24fa63(0x86)][_0x24fa63(0x8f)](_0x24fa63(0xa1),_0x49d280),_0x3c0371[_0x24fa63(0x93)](_0x24fa63(0xb7),_0x4d3478);}[_0x1f1314(0xa5)](_0x9a2d73){const _0x101b9c=_0x1f1314,{model:_0x3ac148}=this[_0x101b9c(0xa8)],_0x209ebc=Array[_0x101b9c(0xe4)](_0x9a2d73[_0x101b9c(0xc8)]());return _0x209ebc[_0x101b9c(0xa7)]?_0x3ac148[_0x101b9c(0xdb)](_0x209ebc[_0x101b9c(0xcd)]()):_0x9a2d73[_0x101b9c(0xb9)]();}[_0x1f1314(0x85)](_0x5dd24f,_0x4cb30e){const _0x310979=_0x1f1314,{model:_0x3a962d,plugins:_0x198d4}=this[_0x310979(0xa8)];if(_0x198d4[_0x310979(0xc7)](_0x310979(0xd2))){const _0x54b2ac=_0x198d4[_0x310979(0x80)](_0x310979(0xd2))[_0x310979(0xad)](_0x4cb30e);if(_0x54b2ac[_0x310979(0xa7)]){const _0x51a41a=this[_0x310979(0x90)](_0x5dd24f),_0x563e19=this[_0x310979(0xdf)](_0x54b2ac,_0x51a41a);return _0x3a962d[_0x310979(0xbc)](_0x563e19,0x0);}}return null;}[_0x1f1314(0x90)](_0xff000d){const _0x3f352=_0x1f1314,_0x464e17=this[_0x3f352(0xa8)][_0x3f352(0x9c)][_0x3f352(0x80)](_0x3f352(0xd2)),_0x1d8cb3=this[_0x3f352(0xa8)][_0x3f352(0x79)][_0x3f352(0xb2)](_0xff000d),_0x349541=Array[_0x3f352(0xe4)](_0x1d8cb3[_0x3f352(0xd7)]())[_0x3f352(0xb8)](_0x13b81a=>_0x13b81a['is'](_0x3f352(0xd4),_0x3f352(0x88)));let _0x34b5b5=0x0;return _0x349541[_0x3f352(0xce)](_0x333cd1=>{const _0x2a4da0=_0x3f352;_0x34b5b5+=_0x464e17[_0x2a4da0(0xb6)](_0x333cd1);}),_0x34b5b5;}[_0x1f1314(0xdf)](_0x2de413,_0x41215b){const _0x335a69=_0x1f1314,_0xd07198=this[_0x335a69(0xa8)][_0x335a69(0x9c)][_0x335a69(0x80)](_0x335a69(0xd2)),_0x4425df=_0xd07198[_0x335a69(0x7b)](_0x2de413),_0x47b272=_0xd07198[_0x335a69(0xa6)](_0x2de413),_0x28a86f=_0x4425df[_0x335a69(0xd0)]+0x1,_0x5adb5e=_0x47b272[_0x335a69(0xd1)],_0x92fc4e=_0x2de413[0x0][_0x335a69(0xde)](_0x335a69(0x88));for(let _0x291c26=0x0;_0x291c26<_0x41215b;_0x291c26++)_0xd07198[_0x335a69(0xbb)](_0x92fc4e,{'at':_0x28a86f});return _0x92fc4e[_0x335a69(0xd6)](_0x28a86f)[_0x335a69(0xd6)](_0x5adb5e);}[_0x1f1314(0x94)](_0x448eef,_0x424f4b){const _0x1b6ef6=_0x1f1314,{plugins:_0x144879}=this[_0x1b6ef6(0xa8)],{model:_0x3e708c}=_0x448eef;if(!_0x144879[_0x1b6ef6(0xc7)](_0x1b6ef6(0xd2)))return;_0x144879[_0x1b6ef6(0x80)](_0x1b6ef6(0xd2))[_0x1b6ef6(0xad)](_0x424f4b)[_0x1b6ef6(0xa7)]&&_0x3e708c[_0x1b6ef6(0xdc)](_0x424f4b);}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x5426a0=_0x33a5;(function(_0x5d6483,_0x5436d8){const _0xeec4a2=_0x33a5,_0x40874f=_0x5d6483();while(!![]){try{const _0x25aea2=-parseInt(_0xeec4a2(0x1f7))/0x1*(parseInt(_0xeec4a2(0x1f1))/0x2)+-parseInt(_0xeec4a2(0x1c4))/0x3*(parseInt(_0xeec4a2(0x17d))/0x4)+parseInt(_0xeec4a2(0x183))/0x5+parseInt(_0xeec4a2(0x1af))/0x6+-parseInt(_0xeec4a2(0x196))/0x7+-parseInt(_0xeec4a2(0x18f))/0x8+parseInt(_0xeec4a2(0x1b0))/0x9*(parseInt(_0xeec4a2(0x200))/0xa);if(_0x25aea2===_0x5436d8)break;else _0x40874f['push'](_0x40874f['shift']());}catch(_0x77d7d7){_0x40874f['push'](_0x40874f['shift']());}}}(_0xa5bb,0x31521));import{Plugin as _0x2a3991}from'ckeditor5/src/core.js';import{IconMagicWand as _0x4c0a0b,IconRobotPencil as _0x1e2d81}from'ckeditor5/src/icons.js';import{first as _0x356077,CKEditorError as _0x37918c}from'ckeditor5/src/utils.js';import{createDropdown as _0x2f52cb,addMenuToDropdown as _0x1a815f,ButtonView as _0xe3c951,MenuBarMenuListItemButtonView as _0x20b754,Dialog as _0x5971e2,DialogViewPosition as _0x1070a2,MenuBarMenuView as _0x1b0b27,MenuBarMenuListView as _0x452bc6,MenuBarMenuListItemView as _0x5a24f9}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x4f8b0e,UNGROUPED_COMMANDS_GROUP_ID as _0x2e7f98}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x1b47f6}from'./aiassistantediting.js';import{AIAdapter as _0x3bf4e4}from'./adapters/aiadapter.js';import{getTranslation as _0x342412}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x5b7f95}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x42ef3d}from'./ui/aiassistantcontroller.js';import{AIFormView as _0xe4c09e}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x17ae2d}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';function _0xa5bb(){const _0x2e9142=['map','showFakeVisualSelection','errorView','EDITOR_TOP_SIDE','bind','execute','focus','updateView','AIAssistantUI','<p>','_commandDefinitions','media','order','isPremiumPlugin','hideUI','showAIAssistant','get','replaceContent','model','values','reset','getLimitElement','locale','menuitemcheckbox','editing','view','isCollapsed','REPLACE','menuView','change','ck-ai-assistant-ui','isOfficialPlugin','polite','forEach','render','rawHtml','ck-ai-assistant-button\x20','editor','listenTo','show','_licenseKeyCheckInterval','items','fieldView','includes','36QyxoMW','fire','replace','trim','aiLicenseKeyValid','Error\x20during\x20AI\x20content\x20generation:\x20%0','82545BkEnqA','aiAssistant','label','usageLimit','buttons','queryView','text','set','ai-commands-config-order-collision','evaluationLimit','sort','_formView','488960goZtHq','ai.aiAssistant.disabledElements','text/html','groupId','isFlat','aiCommands','children','967988akxQTD','change:enabledCommandsIds','aiLicenseKeyUsageLimit','panelView','groupLabel','_initView','setSelection','INSERT','aiLicenseKeyExpired','menuBar:aiAssistant','delegate','DataTransfer','addMany','getSelectedBlocks','splice','licenseKey','document','custom','textAdapter','buttonView','requiresContent','aiLicenseKeyNotAllowed','_onExecute','change:isError','insertContent','1429764ClTAoN','9BQzBoK','_forceMarkersCopy','hide','currentContext','_showLicenseError','Generated\x20content:\x20%0','_getMenuBarGroupButtons','update','wasMoved','_aiAssistantController','featureNotAllowed','isEnabled','filter','announce','_createAIAssistantUIButton','selection','getData','plugins','from','aiLicenseKeyEvaluationLimit','15327IOPwTb','enabledCommandsIds','aiLicenseKeyInvalid','requires','\x20ck-ai-assistant-ui_theme','expired','contentArea','destroy','push','commands','promptView','change:value','menuBar:aiCommands','aiLicenseKeyDomainLimit','once','source','command:','</p>','_getResolvedCommandsDefinitions','AI\x20is\x20writing','config','insertContentBelow','ai.aiAssistant.contentAreaCssClass','showUI','copy','getRanges','AIAssistant','updatePosition','tableOfContents','invalid','_initAriaAiStatusChangeAnnouncements','trialLimit','getSelectedElement','aiLicenseKeyTrialLimit','define','isOn','add','_populateMenuBarMenu','length','_aiAdapter','change:isProcessing','_uiCssClasses','menuPanelClass','AI\x20Assistant','body','136bmCaLC','ck-ai-commands-dropdown\x20','_dialog','prompt','comment','componentFactory','1877fSWCQW','pluginName','init','ai.aiAssistant.commands','domainLimit','schema','ai.useTheme','hideFakeVisualSelection','AI\x20Commands','3202350hGZHym'];_0xa5bb=function(){return _0x2e9142;};return _0xa5bb();}const l=globalThis[_0x5426a0(0x1a1)];import{ClipboardMarkersUtils as _0x524eb7}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x41d50a,ViewDataTransfer as _0x423d52}from'ckeditor5/src/engine.js';function _0x33a5(_0xdd3b19,_0xb0b2de){const _0xa5bba1=_0xa5bb();return _0x33a5=function(_0x33a523,_0x5e668b){_0x33a523=_0x33a523-0x166;let _0x31dcbf=_0xa5bba1[_0x33a523];return _0x31dcbf;},_0x33a5(_0xdd3b19,_0xb0b2de);}export class AIAssistantUI extends _0x2a3991{[_0x5426a0(0x1a5)];[_0x5426a0(0x179)];[_0x5426a0(0x1f3)];[_0x5426a0(0x18e)];[_0x5426a0(0x1eb)];[_0x5426a0(0x1b9)];[_0x5426a0(0x1ed)]='';static get[_0x5426a0(0x1f8)](){const _0x298ec4=_0x5426a0;return _0x298ec4(0x209);}static get[_0x5426a0(0x170)](){return!0x0;}static get[_0x5426a0(0x20e)](){return!0x0;}static get[_0x5426a0(0x1c7)](){return[_0x524eb7,_0x1b47f6,_0x3bf4e4,_0x5971e2];}constructor(_0x3378c8){const _0x26aad3=_0x5426a0;super(_0x3378c8),_0x3378c8[_0x26aad3(0x1d8)][_0x26aad3(0x1e6)](_0x26aad3(0x190),[_0x26aad3(0x20c),_0x26aad3(0x174),_0x26aad3(0x1e0)]),_0x3378c8[_0x26aad3(0x1d8)][_0x26aad3(0x1e6)](_0x26aad3(0x1da),''),_0x3378c8[_0x26aad3(0x1d8)][_0x26aad3(0x1e6)](_0x26aad3(0x1fd),!0x0),this[_0x26aad3(0x1ed)]=_0x26aad3(0x16f)+(_0x3378c8[_0x26aad3(0x1d8)][_0x26aad3(0x211)](_0x26aad3(0x1fd))?_0x26aad3(0x1c8):'');}[_0x5426a0(0x1f9)](){const _0x3930aa=_0x5426a0,{editor:_0xd54d8b}=this;this[_0x3930aa(0x1eb)]=_0xd54d8b[_0x3930aa(0x1c1)][_0x3930aa(0x211)](_0x3bf4e4),this[_0x3930aa(0x1f3)]=_0xd54d8b[_0x3930aa(0x1c1)][_0x3930aa(0x211)](_0x5971e2),this[_0x3930aa(0x18e)]=null,this[_0x3930aa(0x20b)]=this[_0x3930aa(0x1d6)]();const _0x5b5448=new _0x5b7f95(_0xd54d8b,Array[_0x3930aa(0x1c2)](this[_0x3930aa(0x20b)][_0x3930aa(0x214)]()));_0xd54d8b[_0x3930aa(0x1cd)][_0x3930aa(0x1e8)](_0x3930aa(0x210),_0x5b5448),_0xd54d8b['ui'][_0x3930aa(0x1f6)][_0x3930aa(0x1e8)](_0x3930aa(0x194),_0x495f2a=>{const _0x36bce3=_0x3930aa,_0x4326d3=_0x2f52cb(_0x495f2a);return _0x4326d3[_0x36bce3(0x18a)]({'class':_0x36bce3(0x1f2)+this[_0x36bce3(0x1ed)]}),_0x4326d3[_0x36bce3(0x1a9)][_0x36bce3(0x18a)]({'label':_0x342412(_0x495f2a,_0x36bce3(0x1ff)),'icon':_0x4c0a0b,'tooltip':!0x0}),_0x4326d3['on'](_0x36bce3(0x206),_0x43b4d6=>this[_0x36bce3(0x1ac)](_0x43b4d6[_0x36bce3(0x1d3)]['id'])),_0x1a815f(_0x4326d3,_0xd54d8b['ui'][_0x36bce3(0x16a)][_0x36bce3(0x1f0)],function(_0xd2a6fc){const _0x1a0997=_0x36bce3,_0x181f1c=_0x4f8b0e(_0xd2a6fc[_0x1a0997(0x1d8)][_0x1a0997(0x211)](_0x1a0997(0x1fa)),_0xd2a6fc[_0x1a0997(0x167)]),_0x85c746=U(_0xd2a6fc,_0x181f1c)[_0x1a0997(0x1bc)](_0x313d78=>_0x313d78[_0x1a0997(0x1cd)][_0x1a0997(0x1ea)]);if(0x1===_0x85c746[_0x1a0997(0x1ea)])return U(_0xd2a6fc,_0x85c746[0x0][_0x1a0997(0x1cd)])[_0x1a0997(0x201)](_0x3f04c6=>({'id':_0x3f04c6['id'],'label':_0x3f04c6[_0x1a0997(0x185)]}));return _0x85c746[_0x1a0997(0x201)](_0x16f3f7=>{const _0x592ce1=_0x1a0997,{groupId:_0x26bbab,groupLabel:_0x56c81d,commands:_0x30e2e1}=_0x16f3f7,_0xee2213=U(_0xd2a6fc,_0x30e2e1)[_0x592ce1(0x201)](_0x4c382f=>({'id':_0x4c382f['id'],'label':_0x4c382f[_0x592ce1(0x185)]}));return{'id':_0x26bbab,'menu':_0x56c81d||_0x26bbab,'children':_0xee2213};});}(_0xd54d8b),{'ariaLabel':_0x342412(_0x495f2a,_0x36bce3(0x1ff))}),_0x4326d3[_0x36bce3(0x16d)][_0x36bce3(0x1ee)]=_0x36bce3(0x1f2)+this[_0x36bce3(0x1ed)],_0x5b5448['on'](_0x36bce3(0x197),_0x33405c),_0x4326d3[_0x36bce3(0x16d)][_0x36bce3(0x1d2)](_0x36bce3(0x173),_0x33405c),_0x4326d3;function _0x33405c(){const _0x3cc1cd=_0x36bce3;_0x4326d3[_0x3cc1cd(0x1bb)]=_0x5b5448[_0x3cc1cd(0x1c5)][_0x3cc1cd(0x1ea)]>0x0;for(const _0x21bd90 of _0x4326d3[_0x3cc1cd(0x16d)][_0x3cc1cd(0x187)])_0x21bd90[_0x3cc1cd(0x1bb)]=_0x5b5448[_0x3cc1cd(0x1c5)][_0x3cc1cd(0x17c)](_0x21bd90['id']);}}),_0xd54d8b['ui'][_0x3930aa(0x1f6)][_0x3930aa(0x1e8)](_0x3930aa(0x1d0),_0x55acf0=>{const _0x2754ad=_0x3930aa,_0x17ecb3=new _0x1b0b27(_0x55acf0);_0x17ecb3[_0x2754ad(0x1a9)][_0x2754ad(0x18a)]({'label':_0x342412(_0x55acf0,_0x2754ad(0x1ff)),'icon':_0x4c0a0b}),_0x17ecb3[_0x2754ad(0x205)](_0x2754ad(0x1bb))['to'](_0x5b5448,_0x2754ad(0x1c5),_0x221673=>_0x221673[_0x2754ad(0x1ea)]>0x0);const _0x103f1b=_0x4f8b0e(_0xd54d8b[_0x2754ad(0x1d8)][_0x2754ad(0x211)](_0x2754ad(0x1fa)),_0x55acf0);return this[_0x2754ad(0x1e9)](_0x5b5448,_0x17ecb3,_0x103f1b,_0x61d8a6=>this[_0x2754ad(0x1ac)](_0x61d8a6)),_0x17ecb3;}),_0xd54d8b['ui'][_0x3930aa(0x1f6)][_0x3930aa(0x1e8)](_0x3930aa(0x184),()=>{const _0x1d36d9=_0x3930aa,_0x41bb97=this[_0x1d36d9(0x1be)](_0xe3c951);return _0x41bb97[_0x1d36d9(0x18a)]({'tooltip':!0x0,'class':_0x1d36d9(0x175)+this[_0x1d36d9(0x1ed)]}),_0x41bb97;}),_0xd54d8b['ui'][_0x3930aa(0x1f6)][_0x3930aa(0x1e8)](_0x3930aa(0x19f),()=>{const _0x462238=_0x3930aa,_0x427846=this[_0x462238(0x1be)](_0x20b754);return _0x427846[_0x462238(0x18a)]({'role':_0x462238(0x168)}),_0x427846;}),this[_0x3930aa(0x1a5)]=this[_0x3930aa(0x176)][_0x3930aa(0x1d8)][_0x3930aa(0x211)](_0x3930aa(0x1a5));const _0x4b12fc=this[_0x3930aa(0x176)];this[_0x3930aa(0x179)]=setInterval(()=>{const _0x1d9814=_0x3930aa;let _0x548782;for(const _0x26ec3a in _0x4b12fc){const _0x369d3e=_0x26ec3a,_0x3e52b7=_0x4b12fc[_0x369d3e];if(_0x1d9814(0x181)==_0x3e52b7||_0x1d9814(0x1c6)==_0x3e52b7||_0x1d9814(0x19e)==_0x3e52b7||_0x1d9814(0x1d1)==_0x3e52b7||_0x1d9814(0x1ab)==_0x3e52b7||_0x1d9814(0x1c3)==_0x3e52b7||_0x1d9814(0x1e5)==_0x3e52b7||_0x1d9814(0x198)==_0x3e52b7){delete _0x4b12fc[_0x369d3e],_0x548782=_0x3e52b7,clearInterval(this[_0x1d9814(0x179)]),this[_0x1d9814(0x179)]=void 0x0;break;}}_0x1d9814(0x1c6)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x1e1)),_0x1d9814(0x19e)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x1c9)),_0x1d9814(0x1d1)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x1fb)),_0x1d9814(0x1ab)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x1ba),_0x1d9814(0x1de)),_0x1d9814(0x1c3)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x18c)),_0x1d9814(0x1e5)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x1e3)),_0x1d9814(0x198)==_0x548782&&_0x4b12fc[_0x1d9814(0x1b4)](_0x1d9814(0x186));},0x3e8);}[_0x5426a0(0x1cb)](){const _0x2548d6=_0x5426a0;super[_0x2548d6(0x1cb)](),this[_0x2548d6(0x179)]&&clearInterval(this[_0x2548d6(0x179)]);}[_0x5426a0(0x1db)](_0x288a50='',_0xae931a='',_0x58878e=_0x5426a0(0x1a7)){const _0x3028d5=_0x5426a0,_0x3c2849=this[_0x3028d5(0x176)],_0x304fbd=_0x3c2849[_0x3028d5(0x169)][_0x3028d5(0x16a)],_0x251202=_0x3c2849[_0x3028d5(0x1c1)][_0x3028d5(0x211)](_0x1b47f6),_0x46d758=_0x3c2849[_0x3028d5(0x1c1)][_0x3028d5(0x211)](_0x524eb7);_0x251202[_0x3028d5(0x202)]();const _0x4328cd=new l(),_0x3c735a=new ClipboardEvent(_0x3028d5(0x1dc),{'clipboardData':_0x4328cd}),_0xdd7718=new _0x423d52(_0x4328cd),_0x23d88f=new _0x41d50a(_0x304fbd,_0x3c735a,{'dataTransfer':_0xdd7718});_0x46d758[_0x3028d5(0x1b1)](_0x3028d5(0x1f5),()=>{const _0x152bf1=_0x3028d5;_0x304fbd[_0x152bf1(0x1a6)][_0x152bf1(0x17e)](_0x152bf1(0x1dc),_0x23d88f);}),this[_0x3028d5(0x18e)]||(this[_0x3028d5(0x19b)](),this[_0x3028d5(0x1b9)]=new _0x42ef3d(_0x3c2849,this[_0x3028d5(0x1eb)][_0x3028d5(0x1a8)],this[_0x3028d5(0x18e)]));let _0x16d088=_0xdd7718[_0x3028d5(0x1c0)](_0x3028d5(0x191));const _0x3023c4=_0x3c2849[_0x3028d5(0x213)][_0x3028d5(0x1a6)][_0x3028d5(0x1bf)],_0x2aedb0=Array[_0x3028d5(0x1c2)](_0x3023c4[_0x3028d5(0x1dd)]());0x1===_0x2aedb0[_0x3028d5(0x1ea)]&&_0x2aedb0[0x0][_0x3028d5(0x193)]&&!_0x3023c4[_0x3028d5(0x1e4)]()&&''!==_0x16d088[_0x3028d5(0x17f)](/&nbsp;/g,'')[_0x3028d5(0x180)]()&&(_0x16d088=_0x3028d5(0x20a)+_0x16d088+_0x3028d5(0x1d5)),this[_0x3028d5(0x1b9)][_0x3028d5(0x208)]({'actionId':_0x58878e,'query':_0x288a50,'htmlContent':_0x16d088,'label':_0xae931a,'mainActionLabel':_0x17ae2d[_0x3c2849[_0x3028d5(0x213)][_0x3028d5(0x1a6)][_0x3028d5(0x1bf)][_0x3028d5(0x16b)]?_0x3028d5(0x19d):_0x3028d5(0x16c)]}),_0x3028d5(0x184)!==this[_0x3028d5(0x1f3)]['id']?this[_0x3028d5(0x1f3)][_0x3028d5(0x178)]({'id':_0x3028d5(0x184),'icon':_0x1e2d81,'title':_0x342412(this[_0x3028d5(0x176)][_0x3028d5(0x167)],_0x3028d5(0x1ef)),'content':this[_0x3028d5(0x18e)],'position':_0x1070a2[_0x3028d5(0x204)],'onShow':()=>{const _0x542e1b=_0x3028d5;this[_0x542e1b(0x18e)][_0x542e1b(0x207)]();},'onHide':()=>{const _0x477487=_0x3028d5;this[_0x477487(0x1b9)][_0x477487(0x215)](),_0x251202[_0x477487(0x1fe)]();}}):this[_0x3028d5(0x1f3)][_0x3028d5(0x16a)][_0x3028d5(0x1b8)]||this[_0x3028d5(0x1f3)][_0x3028d5(0x16a)][_0x3028d5(0x1df)]();}[_0x5426a0(0x20f)](){const _0x343e31=_0x5426a0;this[_0x343e31(0x1f3)][_0x343e31(0x1b2)]();}[_0x5426a0(0x1d6)](){const _0x1fb16f=_0x5426a0,_0x4b2ca8=new Map(),_0x5025c6=_0x4f8b0e(this[_0x1fb16f(0x176)][_0x1fb16f(0x1d8)][_0x1fb16f(0x211)](_0x1fb16f(0x1fa)),this[_0x1fb16f(0x176)][_0x1fb16f(0x167)]);for(const _0x6d427a of _0x5025c6)for(const _0x2e3b82 of _0x6d427a[_0x1fb16f(0x1cd)])_0x4b2ca8[_0x1fb16f(0x18a)](_0x2e3b82['id'],{..._0x2e3b82,'groupId':_0x6d427a[_0x1fb16f(0x192)],'groupLabel':_0x6d427a[_0x1fb16f(0x19a)]||_0x6d427a[_0x1fb16f(0x192)]});return _0x4b2ca8;}[_0x5426a0(0x1be)](_0x142a61){const _0x30bf29=_0x5426a0,_0x5ee3a1=this[_0x30bf29(0x176)],_0x57e1a1=_0x5ee3a1[_0x30bf29(0x1cd)][_0x30bf29(0x211)](_0x30bf29(0x210)),_0x398302=new _0x142a61(_0x5ee3a1[_0x30bf29(0x167)]);return _0x398302[_0x30bf29(0x18a)]({'label':_0x342412(_0x5ee3a1[_0x30bf29(0x167)],_0x30bf29(0x1ef)),'icon':_0x1e2d81,'isToggleable':!0x0}),_0x398302[_0x30bf29(0x205)](_0x30bf29(0x1bb))['to'](_0x57e1a1),_0x398302[_0x30bf29(0x205)](_0x30bf29(0x1e7))['to'](this[_0x30bf29(0x1f3)],'id',_0x5a116b=>_0x30bf29(0x184)===_0x5a116b),this[_0x30bf29(0x177)](_0x398302,_0x30bf29(0x206),()=>{const _0x1338f0=_0x30bf29;_0x398302[_0x1338f0(0x1e7)]?this[_0x1338f0(0x20f)]():_0x57e1a1[_0x1338f0(0x206)]();}),_0x398302;}[_0x5426a0(0x19b)](){const _0x5b52d3=_0x5426a0,_0x2aed37=this[_0x5b52d3(0x176)][_0x5b52d3(0x1c1)][_0x5b52d3(0x211)](_0x1b47f6);this[_0x5b52d3(0x18e)]=new _0xe4c09e(this[_0x5b52d3(0x176)][_0x5b52d3(0x167)],this[_0x5b52d3(0x1ed)],this[_0x5b52d3(0x176)][_0x5b52d3(0x1d8)][_0x5b52d3(0x211)](_0x5b52d3(0x1da))),this[_0x5b52d3(0x18e)]['on'](_0x5b52d3(0x1cf),()=>{const _0x52413a=_0x5b52d3;this[_0x52413a(0x1f3)][_0x52413a(0x16a)][_0x52413a(0x1b8)]||this[_0x52413a(0x1f3)][_0x52413a(0x16a)][_0x52413a(0x1df)]();}),this[_0x5b52d3(0x18e)][_0x5b52d3(0x1ce)][_0x5b52d3(0x188)][_0x5b52d3(0x17b)]['on'](_0x5b52d3(0x1b7),()=>{const _0x409c12=_0x5b52d3;this[_0x409c12(0x1f3)][_0x409c12(0x16a)][_0x409c12(0x1b8)]||this[_0x409c12(0x1f3)][_0x409c12(0x16a)][_0x409c12(0x1df)]();}),this[_0x5b52d3(0x177)](this[_0x5b52d3(0x18e)],_0x5b52d3(0x212),()=>{const _0x215b7a=_0x5b52d3;_0x2aed37[_0x215b7a(0x1ae)](this[_0x215b7a(0x1b9)][_0x215b7a(0x1b3)]),this[_0x215b7a(0x20f)]();}),this[_0x5b52d3(0x177)](this[_0x5b52d3(0x18e)],_0x5b52d3(0x1d9),()=>{const _0x3b3d0f=_0x5b52d3;_0x2aed37[_0x3b3d0f(0x1d9)](this[_0x3b3d0f(0x1b9)][_0x3b3d0f(0x1b3)]),this[_0x3b3d0f(0x20f)]();}),this[_0x5b52d3(0x1e2)]();}[_0x5426a0(0x1e2)](){const _0x48af15=_0x5426a0,{locale:_0x4cd2d2,ui:{ariaLiveAnnouncer:_0x5267f5}}=this[_0x48af15(0x176)];this[_0x48af15(0x18e)][_0x48af15(0x1ca)]['on'](_0x48af15(0x1ec),(_0x3d9d11,_0x54e552,_0x34c255)=>{const _0x49b49=_0x48af15,_0x1e364a=this[_0x49b49(0x1b9)][_0x49b49(0x1b3)];_0x34c255?_0x5267f5[_0x49b49(0x1bd)](_0x342412(_0x4cd2d2,_0x49b49(0x1d7))):_0x1e364a&&_0x5267f5[_0x49b49(0x1bd)](_0x342412(_0x4cd2d2,_0x49b49(0x1b5),_0x1e364a),{'politeness':_0x49b49(0x171),'isUnsafeHTML':!0x0});}),this[_0x48af15(0x18e)]['on'](_0x48af15(0x1ad),(_0x575fbf,_0x26e6c9,_0x26d49c)=>{const _0x3647c5=_0x48af15;if(_0x26d49c){const _0x561f9b=this[_0x3647c5(0x18e)][_0x3647c5(0x203)][_0x3647c5(0x189)];_0x5267f5[_0x3647c5(0x1bd)](_0x342412(_0x4cd2d2,_0x3647c5(0x182),_0x561f9b));}});}[_0x5426a0(0x1ac)](_0x382ac4){const _0x3df713=_0x5426a0,_0x3ecefd=this[_0x3df713(0x20b)][_0x3df713(0x211)](_0x382ac4),_0x52f771=this[_0x3df713(0x176)],_0x28ad5b=_0x52f771[_0x3df713(0x213)][_0x3df713(0x1a6)][_0x3df713(0x1bf)],_0x30ff9f=_0x52f771[_0x3df713(0x1cd)][_0x3df713(0x211)](_0x3df713(0x210)),_0x293430=_0x52f771[_0x3df713(0x1c1)][_0x3df713(0x211)](_0x1b47f6),_0x2a339b=''+(_0x3ecefd[_0x3df713(0x192)]!==_0x2e7f98?_0x3ecefd[_0x3df713(0x19a)]+':\x20':'')+_0x3ecefd[_0x3df713(0x185)];if(!0x1!==_0x3ecefd[_0x3df713(0x1aa)]&&_0x28ad5b[_0x3df713(0x16b)]){const _0xc9f3e2=_0x356077(_0x28ad5b[_0x3df713(0x1a3)]())||_0x52f771[_0x3df713(0x213)][_0x3df713(0x1fc)][_0x3df713(0x166)](_0x28ad5b);_0x52f771[_0x3df713(0x213)][_0x3df713(0x16e)](_0x2a95ea=>{const _0x17be85=_0x3df713;_0x2a95ea[_0x17be85(0x19c)](_0xc9f3e2,'in');});}_0x293430[_0x3df713(0x202)](),_0x30ff9f[_0x3df713(0x206)](_0x3ecefd[_0x3df713(0x1f4)],_0x2a339b,_0x3df713(0x1d4)+_0x382ac4);}[_0x5426a0(0x1e9)](_0x38465d,_0x8b3bb,_0x3733af,_0x14e3ff){const _0x4c7eb1=_0x5426a0,_0x510231=this[_0x4c7eb1(0x176)],_0x597661=_0x510231[_0x4c7eb1(0x167)],_0xf95423=new _0x452bc6(_0x597661),_0x100226=U(_0x510231,_0x3733af)[_0x4c7eb1(0x1bc)](_0x2a6d7b=>_0x2a6d7b[_0x4c7eb1(0x1cd)][_0x4c7eb1(0x1ea)]);0x1===_0x100226[_0x4c7eb1(0x1ea)]?this[_0x4c7eb1(0x1b6)]({'command':_0x38465d,'commands':_0x100226[0x0][_0x4c7eb1(0x1cd)],'parentMenuView':_0x8b3bb,'onExecute':_0x14e3ff})[_0x4c7eb1(0x172)](_0x48f365=>_0xf95423[_0x4c7eb1(0x17a)][_0x4c7eb1(0x1e8)](_0x48f365)):_0x100226[_0x4c7eb1(0x172)](({groupId:_0x4cb883,groupLabel:_0x345e90,commands:_0x121b7d})=>{const _0x339934=_0x4c7eb1,_0x3b6249=new _0x5a24f9(_0x597661,_0x8b3bb),_0xc9943e=new _0x1b0b27(_0x597661),_0x5b1605=new _0x452bc6(_0x597661),_0x59090b=this[_0x339934(0x1b6)]({'command':_0x38465d,'commands':_0x121b7d,'parentMenuView':_0xc9943e,'onExecute':_0x14e3ff});_0xc9943e[_0x339934(0x1a9)][_0x339934(0x18a)]({'label':_0x345e90||_0x4cb883}),_0xc9943e[_0x339934(0x1a0)](_0x339934(0x206))['to'](_0x8b3bb),_0x5b1605[_0x339934(0x17a)][_0x339934(0x1a2)](_0x59090b),_0xc9943e[_0x339934(0x199)][_0x339934(0x195)][_0x339934(0x1e8)](_0x5b1605),_0x3b6249[_0x339934(0x195)][_0x339934(0x1e8)](_0xc9943e),_0xf95423[_0x339934(0x17a)][_0x339934(0x1e8)](_0x3b6249);}),_0x8b3bb[_0x4c7eb1(0x199)][_0x4c7eb1(0x195)][_0x4c7eb1(0x1e8)](_0xf95423);}[_0x5426a0(0x1b6)]({command:_0x5a7b80,commands:_0x4a3bb3,parentMenuView:_0x2a64ff,onExecute:_0x1ed1bf}){const _0x3e1891=_0x5426a0,_0x28832d=this[_0x3e1891(0x176)],_0x450c80=_0x28832d[_0x3e1891(0x167)];return U(_0x28832d,_0x4a3bb3)[_0x3e1891(0x201)](_0x854089=>{const _0x91e0a7=_0x3e1891,_0x41ada1=new _0x5a24f9(_0x450c80,_0x2a64ff),_0x1a396c=new _0x20b754(_0x450c80);return _0x1a396c[_0x91e0a7(0x18a)]({'label':_0x854089[_0x91e0a7(0x185)]}),_0x1a396c[_0x91e0a7(0x1a0)](_0x91e0a7(0x206))['to'](_0x2a64ff),_0x1a396c['on'](_0x91e0a7(0x206),()=>_0x1ed1bf(_0x854089['id'])),_0x1a396c[_0x91e0a7(0x205)](_0x91e0a7(0x1bb))['to'](_0x5a7b80,_0x91e0a7(0x1c5),_0x11a8fd=>_0x11a8fd[_0x91e0a7(0x17c)](_0x854089['id'])),_0x41ada1[_0x91e0a7(0x195)][_0x91e0a7(0x1e8)](_0x1a396c),_0x41ada1;});}}function T(_0x44bde6,_0x16f35c){const _0x39f6a2=_0x5426a0;return void 0x0!==_0x44bde6[_0x39f6a2(0x20d)]&&void 0x0===_0x16f35c[_0x39f6a2(0x20d)]?0x1:void 0x0===_0x44bde6[_0x39f6a2(0x20d)]&&void 0x0!==_0x16f35c[_0x39f6a2(0x20d)]?-0x1:void 0x0!==_0x44bde6[_0x39f6a2(0x20d)]&&void 0x0!==_0x16f35c[_0x39f6a2(0x20d)]?_0x44bde6[_0x39f6a2(0x20d)]-_0x16f35c[_0x39f6a2(0x20d)]:0x0;}function U(_0x2d64ec,_0x3cafcf){const _0x48ee17=_0x5426a0;_0x3cafcf[_0x48ee17(0x18d)](T);const _0x2ede31={},_0x139c07=[];for(const _0xeb356c of _0x3cafcf)if(void 0x0!==_0xeb356c[_0x48ee17(0x20d)]){if(_0xeb356c[_0x48ee17(0x20d)]in _0x2ede31)throw new _0x37918c(_0x48ee17(0x18b),_0x2d64ec,{'conflictingDefinitions':[_0xeb356c,_0x2ede31[_0xeb356c[_0x48ee17(0x20d)]]]});_0x2ede31[_0xeb356c[_0x48ee17(0x20d)]]=_0xeb356c,_0x139c07[_0x48ee17(0x1a4)](_0xeb356c[_0x48ee17(0x20d)],0x0,_0xeb356c);}else _0x139c07[_0x48ee17(0x1cc)](_0xeb356c);return _0x139c07;}
@@ -1,24 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x47daee=_0x194b;(function(_0x38e2ff,_0x53ebc1){const _0x5a803f=_0x194b,_0x248b06=_0x38e2ff();while(!![]){try{const _0xe4e02f=parseInt(_0x5a803f(0xba))/0x1+parseInt(_0x5a803f(0xe3))/0x2+-parseInt(_0x5a803f(0x109))/0x3*(-parseInt(_0x5a803f(0xed))/0x4)+-parseInt(_0x5a803f(0xe9))/0x5*(-parseInt(_0x5a803f(0xf2))/0x6)+-parseInt(_0x5a803f(0xfa))/0x7*(parseInt(_0x5a803f(0x101))/0x8)+-parseInt(_0x5a803f(0xd9))/0x9+-parseInt(_0x5a803f(0xfd))/0xa*(-parseInt(_0x5a803f(0x115))/0xb);if(_0xe4e02f===_0x53ebc1)break;else _0x248b06['push'](_0x248b06['shift']());}catch(_0xe03da){_0x248b06['push'](_0x248b06['shift']());}}}(_0x3ef6,0x2da84));function _0x194b(_0x428799,_0x4ee18a){const _0x3ef606=_0x3ef6();return _0x194b=function(_0x194b48,_0x1de4f9){_0x194b48=_0x194b48-0xb9;let _0x88960b=_0x3ef606[_0x194b48];return _0x88960b;},_0x194b(_0x428799,_0x4ee18a);}import{ObservableMixin as _0x9be882}from'ckeditor5/src/utils.js';function _0x3ef6(){const _0x37e67=['body','set:currentContext','ai.aiAssistant.preserveComments','67616PACRbO','config','initialContext','previousQuery','processor','2214XHIzHv','domConverter','_xmlSerializer','custom','match','createElement','_stripMarkdownSyntax','data','17829PUjvoM','_normalizeResponseHeadings','catch','6200vFkatn','previousActionId','name','value','528FjtznR','querySelector','currentContext','toView','once','abort','innerHTML','finishProcessing','6GVrRVP','view','prompt','get','finally','stopListening','_parseAndNormalizeContent','exec','editing','text/html','startProcessing','_sanitizationContainer','2156cgwWsG','element','toModel','_sanitizeHTML','updateView','previousContext','ELEMENT_NODE','div','makeRequest','startsWith','171844rPbZtT','nodeType','markers','tryAgainEvent','set','isRendered','<h1></h1>','trim','reset','remove','length','reverse','editor','parseFromString','currentResponse','viewToDom','_isH1TagSupportEnabled','serializeToString','```','clear','childNodes','message','htmlProcessor','destroy','push','from','mainAction','endsWith','_domParser','render','isProcessing','1376316FVkbKX','textAdapter','previousLabel','handleError','stopProcessing','```html','submitPrompt','substring','_handleQuery','rename','211918oDQeHa','document','listenTo','setContentOf','then','stringify','1015HufMaW'];_0x3ef6=function(){return _0x37e67;};return _0x3ef6();}import{AIRequestError as _0x5cadfb}from'../adapters/aiadapter.js';import{Matcher as _0x1a0359,ViewUpcastWriter as _0x16a4ae}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x9be882(){[_0x47daee(0xc6)];[_0x47daee(0xda)];[_0x47daee(0x10a)];[_0x47daee(0x114)];[_0x47daee(0xd6)];[_0x47daee(0xf4)];constructor(_0x6322ad,_0xb589d,_0x5a83e1){const _0xc7f9ff=_0x47daee;super(),this[_0xc7f9ff(0xc6)]=_0x6322ad,this[_0xc7f9ff(0xda)]=_0xb589d,this[_0xc7f9ff(0x114)]=document[_0xc7f9ff(0xf7)](_0xc7f9ff(0x11c)),this[_0xc7f9ff(0xd6)]=new DOMParser(),this[_0xc7f9ff(0xf4)]=new XMLSerializer(),this[_0xc7f9ff(0x10a)]=_0x5a83e1,this[_0xc7f9ff(0xbe)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xc7f9ff(0xeb),(_0x20607d,_0xf571c2,_0x2ac24d)=>{const _0x3937a2=_0xc7f9ff;this[_0x3937a2(0x10a)][_0x3937a2(0x100)]=this[_0x3937a2(0x118)](_0x2ac24d);}),this[_0xc7f9ff(0xe5)](this[_0xc7f9ff(0x10a)],_0xc7f9ff(0xdf),(_0x5f4ddc,_0x2718a0)=>{const _0x541864=_0xc7f9ff,_0x23eb27=this[_0x541864(0x103)]||this[_0x541864(0xef)];this[_0x541864(0xe1)](_0x2718a0,_0x23eb27,_0x541864(0xf5));}),this[_0xc7f9ff(0xe5)](this[_0xc7f9ff(0x10a)],_0xc7f9ff(0xbd),()=>{const _0x2e2d65=_0xc7f9ff;this[_0x2e2d65(0x10a)][_0x2e2d65(0x10b)]=this[_0x2e2d65(0xdb)],this[_0x2e2d65(0xe1)](this[_0x2e2d65(0xf0)],this[_0x2e2d65(0x11a)],this[_0x2e2d65(0xfe)],this[_0x2e2d65(0xdb)]);}),this[_0xc7f9ff(0xe5)](this[_0xc7f9ff(0x10a)],_0xc7f9ff(0xdd),()=>{const _0x19715e=_0xc7f9ff;this[_0x19715e(0xdd)]();});}[_0x47daee(0xd1)](){const _0x165766=_0x47daee;this[_0x165766(0x10e)]();}async[_0x47daee(0x119)]({actionId:_0xf194e0,query:_0x576db7,htmlContent:_0x403f1b,label:_0x3984dc,mainActionLabel:_0x2f106b}){const _0x1f9d35=_0x47daee;this[_0x1f9d35(0x10a)][_0x1f9d35(0x10b)]=_0x3984dc,this[_0x1f9d35(0x10a)][_0x1f9d35(0xd4)]=_0x2f106b,this[_0x1f9d35(0xef)]=_0x403f1b,_0x576db7&&(this[_0x1f9d35(0x10a)][_0x1f9d35(0xbf)]?this[_0x1f9d35(0xe1)](_0x576db7,_0x403f1b,_0xf194e0,_0x3984dc):this[_0x1f9d35(0x10a)][_0x1f9d35(0x105)](_0x1f9d35(0xd7),()=>{const _0x5259d4=_0x1f9d35;this[_0x5259d4(0xe1)](_0x576db7,_0x403f1b,_0xf194e0,_0x3984dc);}));}[_0x47daee(0xdd)](){const _0x219841=_0x47daee;this[_0x219841(0xd8)]&&(this[_0x219841(0xd8)]=!0x1,this[_0x219841(0x10a)][_0x219841(0x108)](),this[_0x219841(0xda)][_0x219841(0x106)]());}[_0x47daee(0xc2)](){const _0x4844a4=_0x47daee;this[_0x4844a4(0xef)]='',this[_0x4844a4(0x103)]='',this[_0x4844a4(0xc8)]='',this[_0x4844a4(0x11a)]='',this[_0x4844a4(0xf0)]='',this[_0x4844a4(0xdb)]='',this[_0x4844a4(0xfe)]=void 0x0,this[_0x4844a4(0x10a)][_0x4844a4(0xc2)](),this[_0x4844a4(0xdd)]();}async[_0x47daee(0xe1)](_0x341e80,_0x41229e,_0x4e093d,_0x17c222){const _0x218005=_0x47daee;return this[_0x218005(0xd8)]=!0x0,this[_0x218005(0x10a)][_0x218005(0x113)](),this[_0x218005(0x11a)]=_0x41229e,this[_0x218005(0xf0)]=_0x341e80,this[_0x218005(0xdb)]=_0x17c222||_0x341e80,this[_0x218005(0xfe)]=_0x4e093d,new Promise(_0x4188bf=>{const _0x45b809=_0x218005;this[_0x45b809(0xda)][_0x45b809(0x11d)]({'query':_0x341e80,'context':_0x41229e,'onData':_0x1d0ebf=>{const _0x32c2bd=_0x45b809;this[_0x32c2bd(0xc8)]=_0x1d0ebf,this[_0x32c2bd(0x103)]=this[_0x32c2bd(0x10f)](this[_0x32c2bd(0xc8)]);},'actionId':_0x4e093d})[_0x45b809(0xe7)](()=>{const _0x1344d2=_0x45b809;!this[_0x1344d2(0x103)]&&this[_0x1344d2(0xc8)]&&(this[_0x1344d2(0x103)]=this[_0x1344d2(0x10f)](this[_0x1344d2(0xc8)],!0x0));})[_0x45b809(0xfc)](_0x6ef3da=>{const _0x8eeddd=_0x45b809;_0x6ef3da instanceof _0x5cadfb?this[_0x8eeddd(0x10a)][_0x8eeddd(0xdc)](_0x6ef3da[_0x8eeddd(0xcf)]):this[_0x8eeddd(0x10a)][_0x8eeddd(0xdc)](),_0x4188bf();})[_0x45b809(0x10d)](()=>{const _0x37e965=_0x45b809;this[_0x37e965(0xdd)](),_0x4188bf();});});}[_0x47daee(0x10f)](_0x2011ba,_0x170601=!0x1){const _0x5a7b7c=_0x47daee,_0x1ba280=Q[_0x5a7b7c(0x110)](_0x2011ba);_0x2011ba=_0x1ba280?_0x2011ba[_0x5a7b7c(0xe0)](_0x1ba280[0x1][_0x5a7b7c(0xc4)]):_0x2011ba[_0x5a7b7c(0xc4)]<0x64&&!_0x170601?'':this[_0x5a7b7c(0xf8)](_0x2011ba);const _0x1bdc39=this[_0x5a7b7c(0xd6)][_0x5a7b7c(0xc7)](_0x2011ba,_0x5a7b7c(0x112));if(_0x1ba280){const _0x57767d=Array[_0x5a7b7c(0xd3)](_0x1bdc39[_0x5a7b7c(0xea)][_0x5a7b7c(0xce)]);_0x57767d[_0x5a7b7c(0xc5)]();for(const _0x4a3ddb of _0x57767d){if(_0x4a3ddb[_0x5a7b7c(0xbb)]==Node[_0x5a7b7c(0x11b)])break;_0x4a3ddb[_0x5a7b7c(0xc3)]();}}const _0x3f3cd3=this[_0x5a7b7c(0xc6)][_0x5a7b7c(0xf9)][_0x5a7b7c(0xf1)][_0x5a7b7c(0x104)](this[_0x5a7b7c(0xf4)][_0x5a7b7c(0xcb)](_0x1bdc39[_0x5a7b7c(0xea)]));this[_0x5a7b7c(0xca)]()||this[_0x5a7b7c(0xfb)](_0x3f3cd3);const _0xf1e2af=this[_0x5a7b7c(0xc6)][_0x5a7b7c(0xee)][_0x5a7b7c(0x10c)](_0x5a7b7c(0xec)),_0x31735d=this[_0x5a7b7c(0xc6)][_0x5a7b7c(0xf9)][_0x5a7b7c(0x117)](_0x3f3cd3);return _0xf1e2af||_0x31735d[_0x5a7b7c(0xbc)][_0x5a7b7c(0xcd)](),this[_0x5a7b7c(0xc6)][_0x5a7b7c(0xf9)][_0x5a7b7c(0xe8)](_0x31735d);}[_0x47daee(0xfb)](_0x18ebc1){const _0x24a13f=_0x47daee,_0x3fa7fc=new _0x16a4ae(this[_0x24a13f(0xc6)][_0x24a13f(0x111)][_0x24a13f(0x10a)][_0x24a13f(0xe4)]),_0x44a292=new _0x1a0359({'name':/^h[1-5]$/}),_0x2b1c9a=[];let _0x1b888e=!0x1;for(const _0x4ea46d of _0x18ebc1)_0x4ea46d['is'](_0x24a13f(0x116))&&_0x44a292[_0x24a13f(0xf6)](_0x4ea46d)&&(_0x2b1c9a[_0x24a13f(0xd2)](_0x4ea46d),'h1'==_0x4ea46d[_0x24a13f(0xff)]&&(_0x1b888e=!0x0));if(_0x1b888e){for(const _0x3ff517 of _0x2b1c9a)_0x3fa7fc[_0x24a13f(0xe2)]('h'+(parseInt(_0x3ff517[_0x24a13f(0xff)][0x1])+0x1),_0x3ff517);}}[_0x47daee(0xca)](){const _0x49e1c8=_0x47daee,{data:_0x502bbe,editing:_0x5751a5}=this[_0x49e1c8(0xc6)],_0x1f32c6=_0x502bbe[_0x49e1c8(0xd0)][_0x49e1c8(0x104)](_0x49e1c8(0xc0)),_0x526e7e=_0x502bbe[_0x49e1c8(0x104)](_0x502bbe[_0x49e1c8(0x117)](_0x1f32c6));return!!_0x5751a5[_0x49e1c8(0x10a)][_0x49e1c8(0xf3)][_0x49e1c8(0xc9)](_0x526e7e)[_0x49e1c8(0x102)]('h1');}[_0x47daee(0x118)](_0x767bb9){const _0x51febd=_0x47daee;return this[_0x51febd(0xc6)][_0x51febd(0x111)][_0x51febd(0x10a)][_0x51febd(0xf3)][_0x51febd(0xe6)](this[_0x51febd(0x114)],_0x767bb9),this[_0x51febd(0x114)][_0x51febd(0x107)];}[_0x47daee(0xf8)](_0x237942){const _0x15cbbe=_0x47daee,_0x402fe9=_0x237942[_0x15cbbe(0xc1)]();return _0x402fe9[_0x15cbbe(0xb9)](_0x15cbbe(0xde))?_0x402fe9[_0x15cbbe(0xd5)](_0x15cbbe(0xcc))?_0x402fe9[_0x15cbbe(0xe0)](0x7,_0x402fe9[_0x15cbbe(0xc4)]-0x3):_0x402fe9[_0x15cbbe(0xe0)](0x7):_0x237942;}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x2d44e8=_0x48ad;(function(_0x22c6d6,_0x2cd454){const _0x511c16=_0x48ad,_0x424b2c=_0x22c6d6();while(!![]){try{const _0x40d3b0=-parseInt(_0x511c16(0x193))/0x1*(-parseInt(_0x511c16(0x1c9))/0x2)+parseInt(_0x511c16(0x1cf))/0x3+parseInt(_0x511c16(0x1ab))/0x4+-parseInt(_0x511c16(0x1cc))/0x5*(-parseInt(_0x511c16(0x1bf))/0x6)+-parseInt(_0x511c16(0x19f))/0x7*(parseInt(_0x511c16(0x1a8))/0x8)+-parseInt(_0x511c16(0x1d4))/0x9*(parseInt(_0x511c16(0x1b0))/0xa)+-parseInt(_0x511c16(0x1af))/0xb*(-parseInt(_0x511c16(0x195))/0xc);if(_0x40d3b0===_0x2cd454)break;else _0x424b2c['push'](_0x424b2c['shift']());}catch(_0x18a36b){_0x424b2c['push'](_0x424b2c['shift']());}}}(_0x46bd,0xc65da));import{global as _0x474387}from'ckeditor5/src/utils.js';import{View as _0x8eacc6,ButtonView as _0x4219ec,SpinnerView as _0x3ccb12}from'ckeditor5/src/ui.js';import{IconCheck as _0x505fae,IconCopy as _0x15e74f}from'ckeditor5/src/icons.js';function _0x46bd(){const _0xf12ce=['3144UkfCBN','<span>[</span>','bind','isVisible','ck-content','textContent','appendChild','write','_copyHTMLToClipboard','ck-reset_all-excluded','2upZZCC','position','ck-ai-form__copy-button-wrapper','13305ODhbRs','createRange','ck-ai-form__content-field','2470800scQbCh','ck-ai-form__loader','text/html','text/plain','locale','1237869owGptO','Copy','_createCopyButton','clipboard','querySelector','removeAllRanges','isEnabled','setContent','execute','setEndBefore','smooth','createElement','style','addRange','absolute','ck-ai-form__content-area-wrapper','AI\x20is\x20writing...','set','copy','element','contentFieldView','loaderView','527099QSvVUV','\x20ck-ai-form__copy-button--copied','8118012xTzpJX','change:isProcessing','listenTo','remove','setStartAfter','mousedown','copyButtonView','appendLoader','-9999px','render','72737yNMPLg','.ck-ai-form__loader','scrollTo','scrollHeight','body','value','<span>]</span>','lastElementChild','change:value','1136WpFAYE','ck-ai-form__content-area--processing','bindTemplate','967496juLwHW','ck-ai-form__content-area','getSelection','ck-hidden','11HCgdOV','100zCDxCB','class','left','icon','ck-ai-form__copy-button','_createLoader','wheel','innerHTML','setTemplate','div','execCommand','focus','ClipboardItem','firstElementChild','isProcessing'];_0x46bd=function(){return _0xf12ce;};return _0x46bd();}function _0x48ad(_0x542248,_0x564802){const _0x46bd68=_0x46bd();return _0x48ad=function(_0x48ad27,_0x222295){_0x48ad27=_0x48ad27-0x18a;let _0x5d63f0=_0x46bd68[_0x48ad27];return _0x5d63f0;},_0x48ad(_0x542248,_0x564802);}import{getTranslation as _0x2ad7c3}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x8eacc6{[_0x2d44e8(0x191)];[_0x2d44e8(0x19b)];constructor(_0xed6892,_0x496b03=''){const _0x15a147=_0x2d44e8;super(_0xed6892),this[_0x15a147(0x18e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x31ed73=this[_0x15a147(0x1aa)];this[_0x15a147(0x191)]=new ContentFieldView(_0xed6892,_0x496b03),this[_0x15a147(0x19b)]=this[_0x15a147(0x1d6)](),this[_0x15a147(0x1b8)]({'tag':_0x15a147(0x1b9),'attributes':{'class':['ck',_0x15a147(0x18c),_0x31ed73['if'](_0x15a147(0x1c2),_0x15a147(0x1ae),_0x405823=>!_0x405823)],'tabindex':'-1'},'children':[{'tag':_0x15a147(0x1b9),'attributes':{'class':['ck',_0x15a147(0x1ac),_0x31ed73['if'](_0x15a147(0x1be),_0x15a147(0x1a9))]},'children':[this[_0x15a147(0x191)],{'tag':_0x15a147(0x1b9),'attributes':{'class':['ck',_0x15a147(0x1cb)]},'children':[this[_0x15a147(0x19b)]]}]}]});}[_0x2d44e8(0x19e)](){const _0x13bd5d=_0x2d44e8;super[_0x13bd5d(0x19e)](),this[_0x13bd5d(0x1a4)]&&this[_0x13bd5d(0x191)][_0x13bd5d(0x1db)](this[_0x13bd5d(0x1a4)]);let _0x42efdb=!0x1;this['on'](_0x13bd5d(0x1a7),(_0x39b2f1,_0xa06468,_0x3f53ea)=>{const _0x3789ae=_0x13bd5d,_0x380389=!this[_0x3789ae(0x191)][_0x3789ae(0x190)][_0x3789ae(0x1d8)](_0x3789ae(0x1a0));this[_0x3789ae(0x191)][_0x3789ae(0x1db)](_0x3f53ea),this[_0x3789ae(0x1be)]&&_0x380389&&!_0x42efdb&&this[_0x3789ae(0x190)][_0x3789ae(0x1a1)]({'top':this[_0x3789ae(0x190)][_0x3789ae(0x1a2)],'behavior':_0x3789ae(0x1de)});}),this['on'](_0x13bd5d(0x196),(_0x64c821,_0x53df66,_0x1b0499)=>{const _0x29ae1f=_0x13bd5d;_0x42efdb=!0x1,_0x1b0499?(this[_0x29ae1f(0x1a4)]=null,this[_0x29ae1f(0x191)][_0x29ae1f(0x19c)]()):this[_0x29ae1f(0x1a4)]||this[_0x29ae1f(0x191)][_0x29ae1f(0x1db)]('');}),this[_0x13bd5d(0x197)](this[_0x13bd5d(0x190)],_0x13bd5d(0x1b6),()=>{_0x42efdb=!0x0;}),this[_0x13bd5d(0x197)](this[_0x13bd5d(0x190)],_0x13bd5d(0x19a),()=>{_0x42efdb=!0x0;});}[_0x2d44e8(0x1bb)](){const _0x1df0df=_0x2d44e8;this[_0x1df0df(0x190)][_0x1df0df(0x1bb)]();}[_0x2d44e8(0x1d6)](){const _0x841b75=_0x2d44e8,_0x59820a=this[_0x841b75(0x1d3)],_0x3808e3=new _0x4219ec(this[_0x841b75(0x1d3)]),_0x248807=_0x841b75(0x1b4);return _0x3808e3[_0x841b75(0x18e)]({'label':_0x2ad7c3(_0x59820a,_0x841b75(0x1d5)),'icon':_0x15e74f,'class':_0x248807,'tooltip':!0x0}),_0x3808e3[_0x841b75(0x1c1)](_0x841b75(0x1c2))['to'](this,_0x841b75(0x1a4),_0xb6b07e=>!!_0xb6b07e),_0x3808e3[_0x841b75(0x1c1)](_0x841b75(0x1da))['to'](this,_0x841b75(0x1be),_0x16c17c=>!_0x16c17c),_0x3808e3['on'](_0x841b75(0x1dc),()=>{const _0x4a3cef=_0x841b75;this[_0x4a3cef(0x1c7)](this[_0x4a3cef(0x191)][_0x4a3cef(0x190)]),_0x3808e3[_0x4a3cef(0x1b3)]=_0x505fae,_0x3808e3[_0x4a3cef(0x1b1)]=_0x248807+_0x4a3cef(0x194),this[_0x4a3cef(0x1bb)](),setTimeout(()=>{const _0x1771f9=_0x4a3cef;_0x3808e3[_0x1771f9(0x1b3)]=_0x15e74f,_0x3808e3[_0x1771f9(0x1b1)]=_0x248807;},0x3e8);}),_0x3808e3;}[_0x2d44e8(0x1c7)](_0x3a814f){const _0xb03e9f=_0x2d44e8,{window:_0x54d492,document:_0x355333}=_0x474387;if(_0x54d492[_0xb03e9f(0x1bc)]){const {Blob:_0x297450,ClipboardItem:_0x528c12}=_0x54d492,_0x594446=[new _0x528c12({'text/html':new _0x297450([_0x3a814f[_0xb03e9f(0x1b7)]],{'type':_0xb03e9f(0x1d1)}),'text/plain':new _0x297450([_0x3a814f[_0xb03e9f(0x1c4)]||''],{'type':_0xb03e9f(0x1d2)})})];navigator[_0xb03e9f(0x1d7)][_0xb03e9f(0x1c6)](_0x594446);}else{const _0x277895=_0x355333[_0xb03e9f(0x1df)](_0xb03e9f(0x1b9));_0x277895[_0xb03e9f(0x1e0)][_0xb03e9f(0x1ca)]=_0xb03e9f(0x18b),_0x277895[_0xb03e9f(0x1e0)][_0xb03e9f(0x1b2)]=_0xb03e9f(0x19d),_0x277895[_0xb03e9f(0x1b7)]=_0xb03e9f(0x1c0)+_0x3a814f[_0xb03e9f(0x1b7)]+_0xb03e9f(0x1a5),_0x355333[_0xb03e9f(0x1a3)][_0xb03e9f(0x1c5)](_0x277895);const _0xa3a209=_0x355333[_0xb03e9f(0x1cd)]();_0xa3a209[_0xb03e9f(0x199)](_0x277895[_0xb03e9f(0x1bd)]),_0xa3a209[_0xb03e9f(0x1dd)](_0x277895[_0xb03e9f(0x1a6)]);const _0x131fae=_0x54d492[_0xb03e9f(0x1ad)]();_0x131fae[_0xb03e9f(0x1d9)](),_0x131fae[_0xb03e9f(0x18a)](_0xa3a209),_0x355333[_0xb03e9f(0x1ba)](_0xb03e9f(0x18f)),_0x277895[_0xb03e9f(0x198)]();}}}export class ContentFieldView extends _0x8eacc6{constructor(_0x462ed7,_0x238986=''){const _0x3e9b23=_0x2d44e8;super(_0x462ed7),this[_0x3e9b23(0x192)]=this[_0x3e9b23(0x1b5)](),this[_0x3e9b23(0x1b8)]({'tag':_0x3e9b23(0x1b9),'attributes':{'class':['ck',_0x3e9b23(0x1c3),_0x238986,_0x3e9b23(0x1c8),_0x3e9b23(0x1ce)]}});}[_0x2d44e8(0x1db)](_0x4acdaf){const _0x494f99=_0x2d44e8;this[_0x494f99(0x190)][_0x494f99(0x1b7)]=_0x4acdaf;}[_0x2d44e8(0x19c)](){const _0x522142=_0x2d44e8;this[_0x522142(0x190)][_0x522142(0x1c5)](this[_0x522142(0x192)][_0x522142(0x190)]);}[_0x2d44e8(0x1b5)](){const _0x344c44=_0x2d44e8,_0x3c0d70=new _0x8eacc6(),_0x15f187=this[_0x344c44(0x1d3)],_0x426c11=new _0x3ccb12();return _0x426c11[_0x344c44(0x1c2)]=!0x0,_0x3c0d70[_0x344c44(0x1b8)]({'tag':_0x344c44(0x1b9),'attributes':{'class':['ck',_0x344c44(0x1d0)]},'children':[_0x426c11,{'text':_0x2ad7c3(_0x15f187,_0x344c44(0x18d))}]}),_0x3c0d70[_0x344c44(0x19e)](),_0x3c0d70;}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x393a0e,_0x131d4f){const _0x497730=_0x5e4c,_0x205ee9=_0x393a0e();while(!![]){try{const _0x20cfc0=parseInt(_0x497730(0x136))/0x1+parseInt(_0x497730(0x131))/0x2*(-parseInt(_0x497730(0x133))/0x3)+-parseInt(_0x497730(0x13c))/0x4+-parseInt(_0x497730(0x130))/0x5+parseInt(_0x497730(0x13a))/0x6+parseInt(_0x497730(0x12f))/0x7*(-parseInt(_0x497730(0x13b))/0x8)+parseInt(_0x497730(0x132))/0x9*(parseInt(_0x497730(0x138))/0xa);if(_0x20cfc0===_0x131d4f)break;else _0x205ee9['push'](_0x205ee9['shift']());}catch(_0x7e3a98){_0x205ee9['push'](_0x205ee9['shift']());}}}(_0x8ecf,0x8665b));import{IconError as _0x6653d0}from'ckeditor5/src/icons.js';function _0x8ecf(){const _0x48ee2a=['18IUZmoL','7089jgeMJY','div','setTemplate','218913qESJjC','text','2363780kwfRrF','content','4937166cZVlgU','338536deMObE','1293184VANNjN','set','bindTemplate','ck-ai-form__error','42UGHWFa','929930OibCWI','170BQwosq'];_0x8ecf=function(){return _0x48ee2a;};return _0x8ecf();}function _0x5e4c(_0x40bcdb,_0x496761){const _0x8ecf16=_0x8ecf();return _0x5e4c=function(_0x5e4cea,_0x951d9e){_0x5e4cea=_0x5e4cea-0x12d;let _0x1cd8a7=_0x8ecf16[_0x5e4cea];return _0x1cd8a7;},_0x5e4c(_0x40bcdb,_0x496761);}import{View as _0x5d8c0a,IconView as _0x59a7fa}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x5d8c0a{constructor(_0x118954,_0x278f94=''){const _0x333f49=_0x5e4c;super(_0x118954);const _0x1ba1fb=new _0x59a7fa(),_0x1895cb=this[_0x333f49(0x12d)];this[_0x333f49(0x13d)](_0x333f49(0x137),_0x278f94),_0x1ba1fb[_0x333f49(0x139)]=_0x6653d0,this[_0x333f49(0x135)]({'tag':_0x333f49(0x134),'attributes':{'class':['ck',_0x333f49(0x12e)]},'children':[_0x1ba1fb,{'text':_0x1895cb['to'](_0x333f49(0x137))}]});}}