@ckeditor/ckeditor5-ai 41.3.1 → 41.4.0

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 (323) hide show
  1. package/README.md +1 -1
  2. package/build/ai.js +7 -7
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de-ch.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es-co.js +1 -1
  16. package/build/translations/es.js +1 -1
  17. package/build/translations/et.js +1 -1
  18. package/build/translations/fa.js +1 -1
  19. package/build/translations/fi.js +1 -1
  20. package/build/translations/fr.js +1 -1
  21. package/build/translations/gl.js +1 -1
  22. package/build/translations/he.js +1 -1
  23. package/build/translations/hi.js +1 -1
  24. package/build/translations/hr.js +1 -1
  25. package/build/translations/hu.js +1 -1
  26. package/build/translations/id.js +1 -1
  27. package/build/translations/it.js +1 -1
  28. package/build/translations/ja.js +1 -1
  29. package/build/translations/jv.js +1 -1
  30. package/build/translations/ko.js +1 -1
  31. package/build/translations/lt.js +1 -1
  32. package/build/translations/lv.js +1 -1
  33. package/build/translations/ms.js +1 -1
  34. package/build/translations/nl.js +1 -1
  35. package/build/translations/no.js +1 -1
  36. package/build/translations/pl.js +1 -1
  37. package/build/translations/pt-br.js +1 -1
  38. package/build/translations/pt.js +1 -1
  39. package/build/translations/ro.js +1 -1
  40. package/build/translations/ru.js +1 -1
  41. package/build/translations/sk.js +1 -1
  42. package/build/translations/sr-latn.js +1 -1
  43. package/build/translations/sr.js +1 -1
  44. package/build/translations/sv.js +1 -1
  45. package/build/translations/th.js +1 -1
  46. package/build/translations/ti.js +1 -0
  47. package/build/translations/tk.js +1 -1
  48. package/build/translations/tr.js +1 -1
  49. package/build/translations/ug.js +1 -1
  50. package/build/translations/uk.js +1 -1
  51. package/build/translations/ur.js +1 -1
  52. package/build/translations/uz.js +1 -1
  53. package/build/translations/vi.js +1 -1
  54. package/build/translations/zh-cn.js +1 -1
  55. package/build/translations/zh.js +1 -1
  56. package/dist/index-content.css +4 -0
  57. package/dist/index-editor.css +267 -0
  58. package/dist/index.css +396 -0
  59. package/dist/index.js +23 -0
  60. package/dist/translations/af.d.ts +8 -0
  61. package/dist/translations/af.js +23 -0
  62. package/dist/translations/af.umd.js +23 -0
  63. package/dist/translations/ar.d.ts +8 -0
  64. package/dist/translations/ar.js +23 -0
  65. package/dist/translations/ar.umd.js +23 -0
  66. package/dist/translations/bg.d.ts +8 -0
  67. package/dist/translations/bg.js +23 -0
  68. package/dist/translations/bg.umd.js +23 -0
  69. package/dist/translations/bn.d.ts +8 -0
  70. package/dist/translations/bn.js +23 -0
  71. package/dist/translations/bn.umd.js +23 -0
  72. package/dist/translations/bs.d.ts +8 -0
  73. package/dist/translations/bs.js +23 -0
  74. package/dist/translations/bs.umd.js +23 -0
  75. package/dist/translations/ca.d.ts +8 -0
  76. package/dist/translations/ca.js +23 -0
  77. package/dist/translations/ca.umd.js +23 -0
  78. package/dist/translations/cs.d.ts +8 -0
  79. package/dist/translations/cs.js +23 -0
  80. package/dist/translations/cs.umd.js +23 -0
  81. package/dist/translations/da.d.ts +8 -0
  82. package/dist/translations/da.js +23 -0
  83. package/dist/translations/da.umd.js +23 -0
  84. package/dist/translations/de-ch.d.ts +8 -0
  85. package/dist/translations/de-ch.js +23 -0
  86. package/dist/translations/de-ch.umd.js +23 -0
  87. package/dist/translations/de.d.ts +8 -0
  88. package/dist/translations/de.js +23 -0
  89. package/dist/translations/de.umd.js +23 -0
  90. package/dist/translations/el.d.ts +8 -0
  91. package/dist/translations/el.js +23 -0
  92. package/dist/translations/el.umd.js +23 -0
  93. package/dist/translations/en-au.d.ts +8 -0
  94. package/dist/translations/en-au.js +23 -0
  95. package/dist/translations/en-au.umd.js +23 -0
  96. package/dist/translations/en.d.ts +8 -0
  97. package/dist/translations/en.js +23 -0
  98. package/dist/translations/en.umd.js +23 -0
  99. package/dist/translations/es-co.d.ts +8 -0
  100. package/dist/translations/es-co.js +23 -0
  101. package/dist/translations/es-co.umd.js +23 -0
  102. package/dist/translations/es.d.ts +8 -0
  103. package/dist/translations/es.js +23 -0
  104. package/dist/translations/es.umd.js +23 -0
  105. package/dist/translations/et.d.ts +8 -0
  106. package/dist/translations/et.js +23 -0
  107. package/dist/translations/et.umd.js +23 -0
  108. package/dist/translations/fa.d.ts +8 -0
  109. package/dist/translations/fa.js +23 -0
  110. package/dist/translations/fa.umd.js +23 -0
  111. package/dist/translations/fi.d.ts +8 -0
  112. package/dist/translations/fi.js +23 -0
  113. package/dist/translations/fi.umd.js +23 -0
  114. package/dist/translations/fr.d.ts +8 -0
  115. package/dist/translations/fr.js +23 -0
  116. package/dist/translations/fr.umd.js +23 -0
  117. package/dist/translations/gl.d.ts +8 -0
  118. package/dist/translations/gl.js +23 -0
  119. package/dist/translations/gl.umd.js +23 -0
  120. package/dist/translations/he.d.ts +8 -0
  121. package/dist/translations/he.js +23 -0
  122. package/dist/translations/he.umd.js +23 -0
  123. package/dist/translations/hi.d.ts +8 -0
  124. package/dist/translations/hi.js +23 -0
  125. package/dist/translations/hi.umd.js +23 -0
  126. package/dist/translations/hr.d.ts +8 -0
  127. package/dist/translations/hr.js +23 -0
  128. package/dist/translations/hr.umd.js +23 -0
  129. package/dist/translations/hu.d.ts +8 -0
  130. package/dist/translations/hu.js +23 -0
  131. package/dist/translations/hu.umd.js +23 -0
  132. package/dist/translations/id.d.ts +8 -0
  133. package/dist/translations/id.js +23 -0
  134. package/dist/translations/id.umd.js +23 -0
  135. package/dist/translations/it.d.ts +8 -0
  136. package/dist/translations/it.js +23 -0
  137. package/dist/translations/it.umd.js +23 -0
  138. package/dist/translations/ja.d.ts +8 -0
  139. package/dist/translations/ja.js +23 -0
  140. package/dist/translations/ja.umd.js +23 -0
  141. package/dist/translations/jv.d.ts +8 -0
  142. package/dist/translations/jv.js +23 -0
  143. package/dist/translations/jv.umd.js +23 -0
  144. package/dist/translations/ko.d.ts +8 -0
  145. package/dist/translations/ko.js +23 -0
  146. package/dist/translations/ko.umd.js +23 -0
  147. package/dist/translations/lt.d.ts +8 -0
  148. package/dist/translations/lt.js +23 -0
  149. package/dist/translations/lt.umd.js +23 -0
  150. package/dist/translations/lv.d.ts +8 -0
  151. package/dist/translations/lv.js +23 -0
  152. package/dist/translations/lv.umd.js +23 -0
  153. package/dist/translations/ms.d.ts +8 -0
  154. package/dist/translations/ms.js +23 -0
  155. package/dist/translations/ms.umd.js +23 -0
  156. package/dist/translations/nl.d.ts +8 -0
  157. package/dist/translations/nl.js +23 -0
  158. package/dist/translations/nl.umd.js +23 -0
  159. package/dist/translations/no.d.ts +8 -0
  160. package/dist/translations/no.js +23 -0
  161. package/dist/translations/no.umd.js +23 -0
  162. package/dist/translations/pl.d.ts +8 -0
  163. package/dist/translations/pl.js +23 -0
  164. package/dist/translations/pl.umd.js +23 -0
  165. package/dist/translations/pt-br.d.ts +8 -0
  166. package/dist/translations/pt-br.js +23 -0
  167. package/dist/translations/pt-br.umd.js +23 -0
  168. package/dist/translations/pt.d.ts +8 -0
  169. package/dist/translations/pt.js +23 -0
  170. package/dist/translations/pt.umd.js +23 -0
  171. package/dist/translations/ro.d.ts +8 -0
  172. package/dist/translations/ro.js +23 -0
  173. package/dist/translations/ro.umd.js +23 -0
  174. package/dist/translations/ru.d.ts +8 -0
  175. package/dist/translations/ru.js +23 -0
  176. package/dist/translations/ru.umd.js +23 -0
  177. package/dist/translations/sk.d.ts +8 -0
  178. package/dist/translations/sk.js +23 -0
  179. package/dist/translations/sk.umd.js +23 -0
  180. package/dist/translations/sr-latn.d.ts +8 -0
  181. package/dist/translations/sr-latn.js +23 -0
  182. package/dist/translations/sr-latn.umd.js +23 -0
  183. package/dist/translations/sr.d.ts +8 -0
  184. package/dist/translations/sr.js +23 -0
  185. package/dist/translations/sr.umd.js +23 -0
  186. package/dist/translations/sv.d.ts +8 -0
  187. package/dist/translations/sv.js +23 -0
  188. package/dist/translations/sv.umd.js +23 -0
  189. package/dist/translations/th.d.ts +8 -0
  190. package/dist/translations/th.js +23 -0
  191. package/dist/translations/th.umd.js +23 -0
  192. package/dist/translations/ti.d.ts +8 -0
  193. package/dist/translations/ti.js +23 -0
  194. package/dist/translations/ti.umd.js +23 -0
  195. package/dist/translations/tk.d.ts +8 -0
  196. package/dist/translations/tk.js +23 -0
  197. package/dist/translations/tk.umd.js +23 -0
  198. package/dist/translations/tr.d.ts +8 -0
  199. package/dist/translations/tr.js +23 -0
  200. package/dist/translations/tr.umd.js +23 -0
  201. package/dist/translations/ug.d.ts +8 -0
  202. package/dist/translations/ug.js +23 -0
  203. package/dist/translations/ug.umd.js +23 -0
  204. package/dist/translations/uk.d.ts +8 -0
  205. package/dist/translations/uk.js +23 -0
  206. package/dist/translations/uk.umd.js +23 -0
  207. package/dist/translations/ur.d.ts +8 -0
  208. package/dist/translations/ur.js +23 -0
  209. package/dist/translations/ur.umd.js +23 -0
  210. package/dist/translations/uz.d.ts +8 -0
  211. package/dist/translations/uz.js +23 -0
  212. package/dist/translations/uz.umd.js +23 -0
  213. package/dist/translations/vi.d.ts +8 -0
  214. package/dist/translations/vi.js +23 -0
  215. package/dist/translations/vi.umd.js +23 -0
  216. package/dist/translations/zh-cn.d.ts +8 -0
  217. package/dist/translations/zh-cn.js +23 -0
  218. package/dist/translations/zh-cn.umd.js +23 -0
  219. package/dist/translations/zh.d.ts +8 -0
  220. package/dist/translations/zh.js +23 -0
  221. package/dist/translations/zh.umd.js +23 -0
  222. package/dist/types/adapters/aiadapter.d.ts +52 -0
  223. package/dist/types/adapters/aitextadapter.d.ts +150 -0
  224. package/dist/types/adapters/awstextadapter.d.ts +183 -0
  225. package/dist/types/adapters/openaitextadapter.d.ts +187 -0
  226. package/dist/types/aiassistant.d.ts +390 -0
  227. package/dist/types/aiassistantediting.d.ts +50 -0
  228. package/dist/types/aiassistantui.d.ts +57 -0
  229. package/dist/types/aiconfig.d.ts +73 -0
  230. package/dist/types/augmentation.d.ts +31 -0
  231. package/dist/types/index.d.ts +17 -0
  232. package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
  233. package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
  234. package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
  235. package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
  236. package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
  237. package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
  238. package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
  239. package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
  240. package/dist/types/ui/form/aiformview.d.ts +145 -0
  241. package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
  242. package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
  243. package/dist/types/ui/form/prompthistory.d.ts +24 -0
  244. package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
  245. package/dist/types/utils/common-translations.d.ts +13 -0
  246. package/lang/contexts.json +4 -0
  247. package/lang/translations/af.po +16 -0
  248. package/lang/translations/ar.po +16 -0
  249. package/lang/translations/bg.po +16 -0
  250. package/lang/translations/bn.po +16 -0
  251. package/lang/translations/bs.po +16 -0
  252. package/lang/translations/ca.po +16 -0
  253. package/lang/translations/cs.po +16 -0
  254. package/lang/translations/da.po +16 -0
  255. package/lang/translations/de-ch.po +16 -0
  256. package/lang/translations/de.po +16 -0
  257. package/lang/translations/el.po +16 -0
  258. package/lang/translations/en-au.po +16 -0
  259. package/lang/translations/en.po +16 -0
  260. package/lang/translations/es-co.po +16 -0
  261. package/lang/translations/es.po +16 -0
  262. package/lang/translations/et.po +16 -0
  263. package/lang/translations/fa.po +16 -0
  264. package/lang/translations/fi.po +16 -0
  265. package/lang/translations/fr.po +16 -0
  266. package/lang/translations/gl.po +16 -0
  267. package/lang/translations/he.po +16 -0
  268. package/lang/translations/hi.po +16 -0
  269. package/lang/translations/hr.po +16 -0
  270. package/lang/translations/hu.po +16 -0
  271. package/lang/translations/id.po +16 -0
  272. package/lang/translations/it.po +16 -0
  273. package/lang/translations/ja.po +16 -0
  274. package/lang/translations/jv.po +16 -0
  275. package/lang/translations/ko.po +16 -0
  276. package/lang/translations/lt.po +16 -0
  277. package/lang/translations/lv.po +16 -0
  278. package/lang/translations/ms.po +16 -0
  279. package/lang/translations/nl.po +16 -0
  280. package/lang/translations/no.po +16 -0
  281. package/lang/translations/pl.po +16 -0
  282. package/lang/translations/pt-br.po +16 -0
  283. package/lang/translations/pt.po +16 -0
  284. package/lang/translations/ro.po +16 -0
  285. package/lang/translations/ru.po +16 -0
  286. package/lang/translations/sk.po +16 -0
  287. package/lang/translations/sr-latn.po +16 -0
  288. package/lang/translations/sr.po +16 -0
  289. package/lang/translations/sv.po +16 -0
  290. package/lang/translations/th.po +16 -0
  291. package/lang/translations/ti.po +250 -0
  292. package/lang/translations/tk.po +16 -0
  293. package/lang/translations/tr.po +16 -0
  294. package/lang/translations/ug.po +16 -0
  295. package/lang/translations/uk.po +16 -0
  296. package/lang/translations/ur.po +16 -0
  297. package/lang/translations/uz.po +16 -0
  298. package/lang/translations/vi.po +16 -0
  299. package/lang/translations/zh-cn.po +16 -0
  300. package/lang/translations/zh.po +16 -0
  301. package/package.json +5 -4
  302. package/src/adapters/aiadapter.js +1 -1
  303. package/src/adapters/aitextadapter.js +1 -1
  304. package/src/adapters/awstextadapter.js +1 -1
  305. package/src/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant.js +1 -1
  307. package/src/aiassistantediting.js +1 -1
  308. package/src/aiassistantui.js +1 -1
  309. package/src/index.js +1 -1
  310. package/src/ui/aiassistantcontroller.js +1 -1
  311. package/src/ui/dropdown/aicommandslistview.js +1 -1
  312. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  313. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  314. package/src/ui/form/aiformcontentarea.js +1 -1
  315. package/src/ui/form/aiformerrorview.js +1 -1
  316. package/src/ui/form/aiformpromptview.js +1 -1
  317. package/src/ui/form/aiformtoolbarview.js +1 -1
  318. package/src/ui/form/aiformview.js +1 -1
  319. package/src/ui/form/aihistorylistitemview.js +1 -1
  320. package/src/ui/form/aihistorylistview.js +1 -1
  321. package/src/ui/form/prompthistory.js +1 -1
  322. package/src/ui/showaiassistantcommand.js +1 -1
  323. package/src/utils/common-translations.js +1 -1
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
174
  msgstr ""
175
175
 
176
+ msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
177
+ msgid "AI is writing"
178
+ msgstr ""
179
+
180
+ msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
181
+ msgid "Generated content: %0"
182
+ msgstr ""
183
+
184
+ msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
185
+ msgid "Error during AI content generation: %0"
186
+ msgstr ""
187
+
176
188
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
189
  msgid "History"
178
190
  msgstr ""
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
201
213
  msgid "No commands available"
202
214
  msgstr ""
203
215
 
216
+ msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
217
+ msgid "%0 commands found"
218
+ msgstr ""
219
+
204
220
  msgctxt "The label for the button that replaces the selected content by the generated AI response."
205
221
  msgid "AI_REPLACE_CONTENT"
206
222
  msgstr ""
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
174
  msgstr "AI đang viết..."
175
175
 
176
+ msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
177
+ msgid "AI is writing"
178
+ msgstr "AI đang viết"
179
+
180
+ msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
181
+ msgid "Generated content: %0"
182
+ msgstr "Nội dung đã tạo: %0"
183
+
184
+ msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
185
+ msgid "Error during AI content generation: %0"
186
+ msgstr "Xảy ra lỗi trong quá trình tạo nội dung AI: %0"
187
+
176
188
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
189
  msgid "History"
178
190
  msgstr "Lịch sử"
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
201
213
  msgid "No commands available"
202
214
  msgstr "Không có lệnh nào khả dụng"
203
215
 
216
+ msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
217
+ msgid "%0 commands found"
218
+ msgstr "Đã tìm thấy %0 lệnh"
219
+
204
220
  msgctxt "The label for the button that replaces the selected content by the generated AI response."
205
221
  msgid "AI_REPLACE_CONTENT"
206
222
  msgstr "Thay thế"
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
174
  msgstr "AI 正在撰写……"
175
175
 
176
+ msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
177
+ msgid "AI is writing"
178
+ msgstr "人工智能正在写作"
179
+
180
+ msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
181
+ msgid "Generated content: %0"
182
+ msgstr "生成的内容:%0"
183
+
184
+ msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
185
+ msgid "Error during AI content generation: %0"
186
+ msgstr "人工智能生成内容时出错:%0"
187
+
176
188
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
189
  msgid "History"
178
190
  msgstr "历史记录"
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
201
213
  msgid "No commands available"
202
214
  msgstr "没有可用的命令"
203
215
 
216
+ msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
217
+ msgid "%0 commands found"
218
+ msgstr "找到 %0 个命令"
219
+
204
220
  msgctxt "The label for the button that replaces the selected content by the generated AI response."
205
221
  msgid "AI_REPLACE_CONTENT"
206
222
  msgstr "替换"
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
174
  msgstr "AI 撰寫中..."
175
175
 
176
+ msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
177
+ msgid "AI is writing"
178
+ msgstr "AI 撰寫中"
179
+
180
+ msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
181
+ msgid "Generated content: %0"
182
+ msgstr "生成的內容:%0"
183
+
184
+ msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
185
+ msgid "Error during AI content generation: %0"
186
+ msgstr "AI 內容生成期間發生錯誤:%0"
187
+
176
188
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
189
  msgid "History"
178
190
  msgstr "紀錄"
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
201
213
  msgid "No commands available"
202
214
  msgstr "無可用指令"
203
215
 
216
+ msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
217
+ msgid "%0 commands found"
218
+ msgstr "已找到 %0 個指令"
219
+
204
220
  msgctxt "The label for the button that replaces the selected content by the generated AI response."
205
221
  msgid "AI_REPLACE_CONTENT"
206
222
  msgstr "取代"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.3.1",
3
+ "version": "41.4.0",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,15 +23,16 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "41.3.1",
27
- "ckeditor5-collaboration": "41.3.1",
26
+ "ckeditor5": "41.4.0",
27
+ "ckeditor5-collaboration": "41.4.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.3.1",
29
+ "@ckeditor/ckeditor5-ui": "41.4.0",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "files": [
35
+ "dist",
35
36
  "lang",
36
37
  "src/**/*.js",
37
38
  "src/**/*.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4890(_0x283565,_0x4afb65){var _0x5db129=_0x5db1();return _0x4890=function(_0x48909a,_0x5bcaef){_0x48909a=_0x48909a-0xd7;var _0x31b875=_0x5db129[_0x48909a];return _0x31b875;},_0x4890(_0x283565,_0x4afb65);}function _0x5db1(){var _0x58d053=['8bAQLQQ','aiadapter-text-adapter-not-set','pluginName','17749980EQzpZF','438105XnYYHg','2513HMbpca','577606DjJZPK','2613351caZbkB','207ILCHKZ','39008QfUxVd','AIAdapter','textAdapter','AIRequestError','5Creope','afterInit','36nwdmjc','13306018motQSa','name','19104PauCOG'];_0x5db1=function(){return _0x58d053;};return _0x5db1();}var _0xb40bde=_0x4890;(function(_0x2e1659,_0x1d1a3e){var _0x11245d=_0x4890,_0x18c4e9=_0x2e1659();while(!![]){try{var _0x21b0f9=-parseInt(_0x11245d(0xe8))/0x1*(-parseInt(_0x11245d(0xe1))/0x2)+-parseInt(_0x11245d(0xe2))/0x3+-parseInt(_0x11245d(0xdb))/0x4*(parseInt(_0x11245d(0xdf))/0x5)+-parseInt(_0x11245d(0xda))/0x6*(parseInt(_0x11245d(0xe0))/0x7)+-parseInt(_0x11245d(0xe4))/0x8*(parseInt(_0x11245d(0xe3))/0x9)+-parseInt(_0x11245d(0xde))/0xa+parseInt(_0x11245d(0xd8))/0xb*(parseInt(_0x11245d(0xd7))/0xc);if(_0x21b0f9===_0x1d1a3e)break;else _0x18c4e9['push'](_0x18c4e9['shift']());}catch(_0x150945){_0x18c4e9['push'](_0x18c4e9['shift']());}}}(_0x5db1,0xf3410));import{Plugin as _0x3b310b}from'ckeditor5/src/core.js';import{CKEditorError as _0x163675}from'ckeditor5/src/utils.js';export default class v extends _0x3b310b{static get[_0xb40bde(0xdd)](){var _0x2453d4=_0xb40bde;return _0x2453d4(0xe5);}[_0xb40bde(0xe9)](){var _0x1f21da=_0xb40bde;if(!this[_0x1f21da(0xe6)])throw new _0x163675(_0x1f21da(0xdc),null);}}export class AIRequestError extends Error{constructor(_0x49fa78){var _0x6eb0b1=_0xb40bde;super(_0x49fa78),this[_0x6eb0b1(0xd9)]=_0x6eb0b1(0xe7);}}
23
+ var _0x6e2234=_0x476c;(function(_0x23eba1,_0x2cf6a0){var _0xd63633=_0x476c,_0x492dd3=_0x23eba1();while(!![]){try{var _0x1e382e=parseInt(_0xd63633(0x97))/0x1+parseInt(_0xd63633(0x8f))/0x2+parseInt(_0xd63633(0x96))/0x3+-parseInt(_0xd63633(0x8b))/0x4*(-parseInt(_0xd63633(0x8e))/0x5)+-parseInt(_0xd63633(0x9a))/0x6*(-parseInt(_0xd63633(0x99))/0x7)+-parseInt(_0xd63633(0x92))/0x8*(parseInt(_0xd63633(0x8d))/0x9)+parseInt(_0xd63633(0x9b))/0xa*(-parseInt(_0xd63633(0x94))/0xb);if(_0x1e382e===_0x2cf6a0)break;else _0x492dd3['push'](_0x492dd3['shift']());}catch(_0x1b711d){_0x492dd3['push'](_0x492dd3['shift']());}}}(_0x32bf,0x1dd51));import{Plugin as _0x453bca}from'ckeditor5/src/core.js';function _0x476c(_0x51b1e9,_0x29ae60){var _0x32bf9c=_0x32bf();return _0x476c=function(_0x476c7b,_0x2bd585){_0x476c7b=_0x476c7b-0x8b;var _0x1b2f51=_0x32bf9c[_0x476c7b];return _0x1b2f51;},_0x476c(_0x51b1e9,_0x29ae60);}function _0x32bf(){var _0x34d9c6=['9630POoCCn','1113425iIPCuM','402554GUecPp','aiadapter-text-adapter-not-set','AIAdapter','24RHWKqf','name','71335ywzQin','pluginName','544401AImFCv','53547SkTUTg','textAdapter','56HBCFDr','32694SYRjlA','890IfInAW','afterInit','4IZgUIH','AIRequestError'];_0x32bf=function(){return _0x34d9c6;};return _0x32bf();}import{CKEditorError as _0x242ea8}from'ckeditor5/src/utils.js';export default class y extends _0x453bca{static get[_0x6e2234(0x95)](){var _0x4b2992=_0x6e2234;return _0x4b2992(0x91);}[_0x6e2234(0x9c)](){var _0x2ad01a=_0x6e2234;if(!this[_0x2ad01a(0x98)])throw new _0x242ea8(_0x2ad01a(0x90),null);}}export class AIRequestError extends Error{constructor(_0x143c6e){var _0x19e518=_0x6e2234;super(_0x143c6e),this[_0x19e518(0x93)]=_0x19e518(0x8c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dcf64=_0x4921;function _0x33ef(){const _0x3e7fd7=['resolve','error','requires','makeRequest','14140xaIuNt','AI_ERROR_GET_PARAMETERS','catch','init','1277264yiSngk','name','75418XUEENe','aborted','1744mXPVqk','get','plugins','abortController','1895532DZomQc','abort','AI_ERROR_GET_HEADERS','application/json','aitextadapter-send-request-failed','15505HObjhq','sendRequest','signal','assign','object','reject','1506RdQbFu','_prepareRequestHeaders','1467lptquk','55oDeXoA','66SSkdWm','locale','editor','textAdapter','940709IgzLEB','_prepareRequestParameters','AbortError','4BYJqPj'];_0x33ef=function(){return _0x3e7fd7;};return _0x33ef();}(function(_0xb10f4e,_0x53f74e){const _0x318c5c=_0x4921,_0x193d97=_0xb10f4e();while(!![]){try{const _0x41046e=-parseInt(_0x318c5c(0x86))/0x1*(parseInt(_0x318c5c(0x7b))/0x2)+-parseInt(_0x318c5c(0x70))/0x3*(parseInt(_0x318c5c(0x88))/0x4)+parseInt(_0x318c5c(0x91))/0x5*(-parseInt(_0x318c5c(0x74))/0x6)+parseInt(_0x318c5c(0x78))/0x7+-parseInt(_0x318c5c(0x84))/0x8+-parseInt(_0x318c5c(0x72))/0x9*(parseInt(_0x318c5c(0x80))/0xa)+parseInt(_0x318c5c(0x73))/0xb*(parseInt(_0x318c5c(0x8c))/0xc);if(_0x41046e===_0x53f74e)break;else _0x193d97['push'](_0x193d97['shift']());}catch(_0x135c09){_0x193d97['push'](_0x193d97['shift']());}}}(_0x33ef,0x1fcb9));function _0x4921(_0x543e96,_0x3638fb){const _0x33ef54=_0x33ef();return _0x4921=function(_0x4921f3,_0x112cf4){_0x4921f3=_0x4921f3-0x70;let _0x1e3a88=_0x33ef54[_0x4921f3];return _0x1e3a88;},_0x4921(_0x543e96,_0x3638fb);}import{Plugin as _0x29b59d}from'ckeditor5/src/core.js';import{CKEditorError as _0x3828b9}from'ckeditor5/src/utils.js';import{default as _0x195c66,AIRequestError as _0x55ca6}from'./aiadapter.js';import{getTranslation as _0x14a340}from'../utils/common-translations.js';export default class P extends _0x29b59d{static get[_0x5dcf64(0x7e)](){return[_0x195c66];}constructor(_0x522bec){const _0x2f94e6=_0x5dcf64;super(_0x522bec),this[_0x2f94e6(0x8b)]=new AbortController();}[_0x5dcf64(0x83)](){const _0x4f3745=_0x5dcf64;this[_0x4f3745(0x76)][_0x4f3745(0x8a)][_0x4f3745(0x89)](_0x195c66)[_0x4f3745(0x77)]=this;}[_0x5dcf64(0x8d)](){const _0x1c6760=_0x5dcf64;this[_0x1c6760(0x8b)][_0x1c6760(0x93)][_0x1c6760(0x87)]||(this[_0x1c6760(0x8b)][_0x1c6760(0x8d)](),this[_0x1c6760(0x8b)]=new AbortController());}async[_0x5dcf64(0x7f)](_0x287bdc){const _0x1a2aa7=_0x5dcf64;return this[_0x1a2aa7(0x92)](_0x287bdc)[_0x1a2aa7(0x82)](_0x3ea821=>{const _0x106eb4=_0x1a2aa7;if(_0x3ea821 instanceof _0x55ca6)return Promise[_0x106eb4(0x96)](_0x3ea821);if(_0x106eb4(0x7a)==_0x3ea821[_0x106eb4(0x85)])return Promise[_0x106eb4(0x7c)]();throw console[_0x106eb4(0x7d)](_0x3ea821),new _0x3828b9(_0x106eb4(0x90),null);});}async[_0x5dcf64(0x71)](_0x2f809f,_0x39dbd2){const _0x4ecf8f=_0x5dcf64,_0x4f0d12=this[_0x4ecf8f(0x76)][_0x4ecf8f(0x75)],_0x259c08={'Content-Type':_0x4ecf8f(0x8f)};if(_0x4ecf8f(0x95)==typeof _0x2f809f)Object[_0x4ecf8f(0x94)](_0x259c08,_0x2f809f);else{if(_0x2f809f)try{const _0x3a8b13=await _0x2f809f(_0x39dbd2);Object[_0x4ecf8f(0x94)](_0x259c08,_0x3a8b13);}catch(_0x2f816e){return Promise[_0x4ecf8f(0x96)](new _0x55ca6(_0x14a340(_0x4f0d12,_0x4ecf8f(0x8e))));}}return _0x259c08;}async[_0x5dcf64(0x79)](_0x3ffc4f,_0x4c4bc9){const _0x29f773=_0x5dcf64,_0x3650c9=this[_0x29f773(0x76)][_0x29f773(0x75)];if(_0x29f773(0x95)==typeof _0x3ffc4f)return _0x3ffc4f;try{return await _0x3ffc4f(_0x4c4bc9);}catch(_0x2db88b){return Promise[_0x29f773(0x96)](new _0x55ca6(_0x14a340(_0x3650c9,_0x29f773(0x81))));}}}
23
+ const _0x4d4cfa=_0x4fc9;(function(_0x23906d,_0x5be4db){const _0x330454=_0x4fc9,_0x46388a=_0x23906d();while(!![]){try{const _0x5cc9b8=-parseInt(_0x330454(0xda))/0x1*(-parseInt(_0x330454(0xf9))/0x2)+parseInt(_0x330454(0xea))/0x3*(parseInt(_0x330454(0xdf))/0x4)+-parseInt(_0x330454(0xec))/0x5*(-parseInt(_0x330454(0xed))/0x6)+-parseInt(_0x330454(0xe3))/0x7*(parseInt(_0x330454(0xeb))/0x8)+-parseInt(_0x330454(0xe8))/0x9+-parseInt(_0x330454(0xf0))/0xa*(parseInt(_0x330454(0xdd))/0xb)+parseInt(_0x330454(0xf7))/0xc*(parseInt(_0x330454(0xe5))/0xd);if(_0x5cc9b8===_0x5be4db)break;else _0x46388a['push'](_0x46388a['shift']());}catch(_0x3efd90){_0x46388a['push'](_0x46388a['shift']());}}}(_0x4b71,0xf05ae));function _0x4b71(){const _0x2c1a81=['_prepareRequestParameters','_prepareRequestHeaders','3900EnlJpL','object','292848bfNRaC','abort','resolve','get','aborted','signal','plugins','reject','makeRequest','3ngOAWm','init','abortController','11XPjgsD','aitextadapter-send-request-failed','192FJzTOM','AI_ERROR_GET_HEADERS','assign','editor','11867527QgXadf','error','77324FrvBrY','sendRequest','application/json','1634238WQqFiU','AbortError','25611wPcRHJ','8czKtHK','3940veHZNj','7428OrMhuT','catch','requires','8962550IoQsWp','locale','AI_ERROR_GET_PARAMETERS','textAdapter','name'];_0x4b71=function(){return _0x2c1a81;};return _0x4b71();}import{Plugin as _0x47a3dd}from'ckeditor5/src/core.js';import{CKEditorError as _0x4ec94e}from'ckeditor5/src/utils.js';import{default as _0x2f0656,AIRequestError as _0x1487f6}from'./aiadapter.js';import{getTranslation as _0x2c3f99}from'../utils/common-translations.js';function _0x4fc9(_0x8ec79b,_0x4e2af3){const _0x4b71c6=_0x4b71();return _0x4fc9=function(_0x4fc9fe,_0x2d9f4a){_0x4fc9fe=_0x4fc9fe-0xd5;let _0x308fdb=_0x4b71c6[_0x4fc9fe];return _0x308fdb;},_0x4fc9(_0x8ec79b,_0x4e2af3);}export default class P extends _0x47a3dd{static get[_0x4d4cfa(0xef)](){return[_0x2f0656];}constructor(_0x4d3445){const _0x493482=_0x4d4cfa;super(_0x4d3445),this[_0x493482(0xdc)]=new AbortController();}[_0x4d4cfa(0xdb)](){const _0x437536=_0x4d4cfa;this[_0x437536(0xe2)][_0x437536(0xd7)][_0x437536(0xfc)](_0x2f0656)[_0x437536(0xf3)]=this;}[_0x4d4cfa(0xfa)](){const _0x76e54d=_0x4d4cfa;this[_0x76e54d(0xdc)][_0x76e54d(0xd6)][_0x76e54d(0xd5)]||(this[_0x76e54d(0xdc)][_0x76e54d(0xfa)](),this[_0x76e54d(0xdc)]=new AbortController());}async[_0x4d4cfa(0xd9)](_0x4a1a81){const _0x10e4d0=_0x4d4cfa;return this[_0x10e4d0(0xe6)](_0x4a1a81)[_0x10e4d0(0xee)](_0xd5ba21=>{const _0x120865=_0x10e4d0;if(_0xd5ba21 instanceof _0x1487f6)return Promise[_0x120865(0xd8)](_0xd5ba21);if(_0x120865(0xe9)==_0xd5ba21[_0x120865(0xf4)])return Promise[_0x120865(0xfb)]();throw console[_0x120865(0xe4)](_0xd5ba21),new _0x4ec94e(_0x120865(0xde),null);});}async[_0x4d4cfa(0xf6)](_0x359bc0,_0x6ea32d){const _0x5df99c=_0x4d4cfa,_0x3b700b=this[_0x5df99c(0xe2)][_0x5df99c(0xf1)],_0x353853={'Content-Type':_0x5df99c(0xe7)};if(_0x5df99c(0xf8)==typeof _0x359bc0)Object[_0x5df99c(0xe1)](_0x353853,_0x359bc0);else{if(_0x359bc0)try{const _0x140615=await _0x359bc0(_0x6ea32d);Object[_0x5df99c(0xe1)](_0x353853,_0x140615);}catch(_0x4f42cd){return Promise[_0x5df99c(0xd8)](new _0x1487f6(_0x2c3f99(_0x3b700b,_0x5df99c(0xe0))));}}return _0x353853;}async[_0x4d4cfa(0xf5)](_0x59c597,_0x3ec8c8){const _0x483d13=_0x4d4cfa,_0x15317d=this[_0x483d13(0xe2)][_0x483d13(0xf1)];if(_0x483d13(0xf8)==typeof _0x59c597)return _0x59c597;try{return await _0x59c597(_0x3ec8c8);}catch(_0x2142c0){return Promise[_0x483d13(0xd8)](new _0x1487f6(_0x2c3f99(_0x15317d,_0x483d13(0xf2))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x244c43=_0x92e2;(function(_0x17f7d1,_0x20933c){const _0x34193c=_0x92e2,_0x19d42d=_0x17f7d1();while(!![]){try{const _0x1e745f=parseInt(_0x34193c(0x16d))/0x1*(-parseInt(_0x34193c(0x178))/0x2)+parseInt(_0x34193c(0x1a8))/0x3+parseInt(_0x34193c(0x179))/0x4+-parseInt(_0x34193c(0x1a1))/0x5*(-parseInt(_0x34193c(0x1a0))/0x6)+parseInt(_0x34193c(0x16c))/0x7*(-parseInt(_0x34193c(0x181))/0x8)+parseInt(_0x34193c(0x172))/0x9*(-parseInt(_0x34193c(0x17c))/0xa)+parseInt(_0x34193c(0x188))/0xb*(parseInt(_0x34193c(0x1ae))/0xc);if(_0x1e745f===_0x20933c)break;else _0x19d42d['push'](_0x19d42d['shift']());}catch(_0x1224bd){_0x19d42d['push'](_0x19d42d['shift']());}}}(_0x3727,0xc0089));import{default as _0x15f73e}from'./aitextadapter.js';import{AIRequestError as _0x2d1a9d}from'./aiadapter.js';function _0x3727(){const _0xb5febb=['_processAWSRequest','1640022SHEQCz','5qPaaaA','toString','signal','_processProxyRequest','read','generations','get','2555208LKztzt','AWSTextAdapter','join','_prepareRequestHeaders','config','parse','20424tcmyNA','completions','_getGeneratedText','application/json','ai.aws.requestParameters','send','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.','sendRequest','filter','Human:\x0a','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.bedrockClientConfig','meta.llama','POST','length','body','anthropic.claude-v2','data','preparePrompt','8950718kOMRIU','1481UyMuYF','locale','getReader','_bedrockClientConfig','ai.aws.requestHeaders','82791QzilvT','define','getModelFamily','ai21.j2','bytes','ai.aws.apiUrl','186sahcdP','5768704CugKeX','split','_readAsyncIterableResponse','470gjKQTf','bedrock-2023-05-31','pluginName','AI_ERROR_UNSUPPORTED_MODEL','Instruction:\x0a','8BxmrOZ','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','\x0a[/INST]','_prepareRequestParameters','_readStreamableResponse','440TDPiZp','\x0a\x0aAssistant:','from','abortController','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.','_requestParameters','editor','resolve','completion','json','decode','text','generation','utf8','chunk','_requestHeaders','<<SYS>>\x0a','map','anthropic.claude','_apiUrl','cohere.command','test','stringify'];_0x3727=function(){return _0xb5febb;};return _0x3727();}function _0x92e2(_0x43a2e4,_0xb8f280){const _0x372760=_0x3727();return _0x92e2=function(_0x92e2f,_0x5c4b77){_0x92e2f=_0x92e2f-0x167;let _0x5d4126=_0x372760[_0x92e2f];return _0x5d4126;},_0x92e2(_0x43a2e4,_0xb8f280);}import{BedrockRuntimeClient as _0x423077,InvokeModelCommand as _0x381b8f,InvokeModelWithResponseStreamCommand as _0x4c5066}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x44d52a}from'../utils/common-translations.js';export default class Y extends _0x15f73e{static get[_0x244c43(0x17e)](){const _0x31fbd=_0x244c43;return _0x31fbd(0x1a9);}constructor(_0x245586){const _0x372221=_0x244c43;super(_0x245586),_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2))||_0x245586[_0x372221(0x1ac)][_0x372221(0x173)](_0x372221(0x1b2),{'model':_0x372221(0x169),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x372221(0x17d),'stream':!0x0}),this[_0x372221(0x19b)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x177)),this[_0x372221(0x170)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b9)),this[_0x372221(0x197)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x171)),this[_0x372221(0x18d)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2));}async[_0x244c43(0x1b5)]({query:_0x35f619,context:_0x1fa0c4,onData:_0x5830cd,actionId:_0x21a538}){const _0x1b677b=_0x244c43,{model:_0x48094c,stream:_0x191480,..._0x337482}=await this[_0x1b677b(0x186)](this[_0x1b677b(0x18d)],_0x21a538),_0x5d8108={'prompt':await this[_0x1b677b(0x16b)](_0x35f619,_0x1fa0c4,_0x48094c,_0x21a538),..._0x337482};this[_0x1b677b(0x19b)]?await this[_0x1b677b(0x1a4)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd,_0x21a538):await this[_0x1b677b(0x19f)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd);}async[_0x244c43(0x16b)](_0x3b0007,_0x25a089,_0x12fbb9,_0x5c3046){const _0x1aa45b=_0x244c43;let _0x54c6b3,_0x1ae852;return _0x25a089?(_0x54c6b3=_0x1aa45b(0x1b4),_0x1ae852=_0x1aa45b(0x180)+_0x3b0007+_0x1aa45b(0x1b8)+_0x25a089):(_0x54c6b3=_0x1aa45b(0x18c),_0x1ae852=_0x3b0007),_0x1aa45b(0x1ba)==this[_0x1aa45b(0x174)](_0x12fbb9)?_0x1aa45b(0x198)+_0x54c6b3+_0x1aa45b(0x183)+_0x1ae852+_0x1aa45b(0x185):_0x1aa45b(0x1b7)+_0x54c6b3+'\x0a'+_0x1ae852+_0x1aa45b(0x189);}[_0x244c43(0x174)](_0x4a4d41){const _0x2d43c4=_0x244c43;if(/^anthropic\.claude/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19a);if(/^ai21\.j2/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x175);if(/^cohere\.command/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19c);if(/^meta\.llama/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x1ba);throw new _0x2d1a9d(_0x44d52a(this[_0x2d43c4(0x18e)][_0x2d43c4(0x16e)],_0x2d43c4(0x17f),_0x4a4d41));}async[_0x244c43(0x1a4)](_0x3bc5af,_0x217332,_0x4c9443,_0xa040b5,_0x36e79b){const _0x56d589=_0x244c43,_0x90a180={'method':_0x56d589(0x1bb),'headers':await this[_0x56d589(0x1ab)](this[_0x56d589(0x197)],_0x36e79b),'body':JSON[_0x56d589(0x19e)]({..._0x3bc5af,'model':_0x217332,'stream':_0x4c9443}),'signal':this[_0x56d589(0x18b)][_0x56d589(0x1a3)]},_0x3da64c=await fetch(this[_0x56d589(0x19b)],_0x90a180);_0x4c9443?await this[_0x56d589(0x187)](_0x3da64c,_0x217332,_0xa040b5):await this[_0x56d589(0x184)](_0x3da64c,_0x217332,_0xa040b5);}async[_0x244c43(0x19f)](_0x3510f6,_0x18cdb9,_0x3cca76,_0x3b1fad){const _0x65ccf2=_0x244c43,_0x21d6c9=new _0x423077(this[_0x65ccf2(0x170)]),_0x4985fa={'body':JSON[_0x65ccf2(0x19e)](_0x3510f6),'contentType':_0x65ccf2(0x1b1),'accept':_0x65ccf2(0x1b1),'modelId':_0x18cdb9};let _0x31454a;if(_0x3cca76){const _0x293f19=new _0x4c5066(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x293f19,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x17b)](_0x31454a,_0x18cdb9,_0x3b1fad);}else{const _0x15474b=new _0x381b8f(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x15474b,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x184)](_0x31454a,_0x18cdb9,_0x3b1fad);}}async[_0x244c43(0x17b)](_0x22db5f,_0x17336c,_0x4527d2){const _0x493ad7=_0x244c43,_0x3a33fb=_0x22db5f[_0x493ad7(0x168)],_0x583999=new TextDecoder(_0x493ad7(0x182));let _0xf23c44='';for await(const _0x4a97fc of _0x3a33fb)if(_0x4a97fc[_0x493ad7(0x196)]){const _0x1d800f=_0x583999[_0x493ad7(0x192)](_0x4a97fc[_0x493ad7(0x196)][_0x493ad7(0x176)]),_0x93127d=JSON[_0x493ad7(0x1ad)](_0x1d800f);_0xf23c44+=this[_0x493ad7(0x1b0)](_0x93127d,_0x17336c),_0x4527d2(_0xf23c44);}return Promise[_0x493ad7(0x18f)]();}async[_0x244c43(0x187)](_0x28746a,_0x5a26ba,_0x441d0a){const _0x371d4c=_0x244c43,_0x4ee60c=_0x28746a[_0x371d4c(0x168)],_0x4c80bb=new TextDecoder(_0x371d4c(0x182)),_0x254bdb=_0x4ee60c[_0x371d4c(0x16f)]();let _0x8e2381='',_0x1ea0da='',_0x5c3735=!0x1;for(;!_0x5c3735;){const {done:_0x2c56bc,value:_0x3ea015}=await _0x254bdb[_0x371d4c(0x1a5)]();if(_0x5c3735=_0x2c56bc,_0x5c3735)break;const _0x2234dc=(_0x8e2381+_0x4c80bb[_0x371d4c(0x192)](_0x3ea015))[_0x371d4c(0x17a)]('\x0a')[_0x371d4c(0x199)](_0x361050=>{const _0x14afb3=_0x371d4c;try{return _0x8e2381='',JSON[_0x14afb3(0x1ad)](_0x361050);}catch(_0xf86fdb){return _0x8e2381=_0x361050,null;}})[_0x371d4c(0x1b6)](_0x49ca3a=>null!==_0x49ca3a);_0x2234dc[_0x371d4c(0x167)]&&(_0x1ea0da+=_0x2234dc[_0x371d4c(0x199)](_0x3dadf6=>this[_0x371d4c(0x1b0)](_0x3dadf6,_0x5a26ba))[_0x371d4c(0x1aa)](''),_0x441d0a(_0x1ea0da));}return Promise[_0x371d4c(0x18f)]();}async[_0x244c43(0x184)](_0x1498e2,_0x59cde9,_0x4da43d){const _0x41985b=_0x244c43;let _0x534155;return _0x534155=_0x1498e2 instanceof Response?await _0x1498e2[_0x41985b(0x191)]():JSON[_0x41985b(0x1ad)](Buffer[_0x41985b(0x18a)](_0x1498e2[_0x41985b(0x168)])[_0x41985b(0x1a2)](_0x41985b(0x195))),(_0x4da43d(this[_0x41985b(0x1b0)](_0x534155,_0x59cde9)),Promise[_0x41985b(0x18f)]());}[_0x244c43(0x1b0)](_0x30cade,_0x33afd9){const _0x4c3ae8=_0x244c43;switch(this[_0x4c3ae8(0x174)](_0x33afd9)){case _0x4c3ae8(0x19a):return _0x30cade[_0x4c3ae8(0x190)];case _0x4c3ae8(0x175):return _0x30cade[_0x4c3ae8(0x1af)][0x0][_0x4c3ae8(0x16a)][_0x4c3ae8(0x193)];case _0x4c3ae8(0x19c):return _0x30cade[_0x4c3ae8(0x1a6)][0x0][_0x4c3ae8(0x193)];case _0x4c3ae8(0x1ba):return _0x30cade[_0x4c3ae8(0x194)];}}}
23
+ const _0x8908cd=_0x56c2;(function(_0x150a17,_0x570222){const _0x2f29d5=_0x56c2,_0xa86c43=_0x150a17();while(!![]){try{const _0x55b5ed=-parseInt(_0x2f29d5(0x1f8))/0x1+parseInt(_0x2f29d5(0x1ea))/0x2+parseInt(_0x2f29d5(0x1d2))/0x3+parseInt(_0x2f29d5(0x209))/0x4*(-parseInt(_0x2f29d5(0x211))/0x5)+-parseInt(_0x2f29d5(0x1da))/0x6*(parseInt(_0x2f29d5(0x201))/0x7)+-parseInt(_0x2f29d5(0x1d5))/0x8+parseInt(_0x2f29d5(0x1cd))/0x9;if(_0x55b5ed===_0x570222)break;else _0xa86c43['push'](_0xa86c43['shift']());}catch(_0x490328){_0xa86c43['push'](_0xa86c43['shift']());}}}(_0x31ba,0x48159));function _0x56c2(_0x5dd280,_0x512836){const _0x31ba30=_0x31ba();return _0x56c2=function(_0x56c25b,_0x509ddd){_0x56c25b=_0x56c25b-0x1c6;let _0x4646da=_0x31ba30[_0x56c25b];return _0x4646da;},_0x56c2(_0x5dd280,_0x512836);}import{default as _0x39d03d}from'./aitextadapter.js';function _0x31ba(){const _0x49d372=['\x0a<</SYS>>\x0a[INST]\x0a','generation','utf8','_readAsyncIterableResponse','4IExzrP','preparePrompt','bedrock-2023-05-31','getModelFamily','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','map','editor','2104015rHLNDe','toString','test','define','application/json','chunk','from','json','Human:\x0a','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.','send','abortController','data','getReader','11020473pBUVTF','_processAWSRequest','sendRequest','generations','text','244647IygtOO','anthropic.claude','ai.aws.apiUrl','635096WwsBum','join','_processProxyRequest','anthropic.claude-v2','ai.aws.requestParameters','6LJGccy','<<SYS>>\x0a','_bedrockClientConfig','_readStreamableResponse','ai.aws.bedrockClientConfig','read','_prepareRequestParameters','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','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.','AWSTextAdapter','get','utf-8','_requestParameters','meta.llama','_requestHeaders','591238JUREVM','filter','config','length','\x0a\x0aAssistant:','cohere.command','parse','split','Instruction:\x0a','ai21.j2','_prepareRequestHeaders','pluginName','signal','completion','388151tvxtum','POST','_readStaticResponse','_apiUrl','bytes','resolve','stringify','body','completions','2926469jCoGjB','\x0a[/INST]','_getGeneratedText','locale'];_0x31ba=function(){return _0x49d372;};return _0x31ba();}import{AIRequestError as _0x5a91a6}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1c1291,InvokeModelCommand as _0x246e66,InvokeModelWithResponseStreamCommand as _0x32c1f4}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4f0163}from'../utils/common-translations.js';export default class J extends _0x39d03d{static get[_0x8908cd(0x1f5)](){const _0x547cd4=_0x8908cd;return _0x547cd4(0x1e4);}constructor(_0x2c6f53){const _0x345e94=_0x8908cd;super(_0x2c6f53),_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d9))||_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x214)](_0x345e94(0x1d9),{'model':_0x345e94(0x1d8),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x345e94(0x20b),'stream':!0x0}),this[_0x345e94(0x1fb)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d4)),this[_0x345e94(0x1dc)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1de)),this[_0x345e94(0x1e9)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x20d)),this[_0x345e94(0x1e7)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d9));}async[_0x8908cd(0x1cf)]({query:_0x49dd0a,context:_0x2bf8a4,onData:_0x597fb9,actionId:_0x57a74d}){const _0x585f11=_0x8908cd,{model:_0x381848,stream:_0x3ae512,..._0x3a5cea}=await this[_0x585f11(0x1e0)](this[_0x585f11(0x1e7)],_0x57a74d),_0xb4429b={'prompt':await this[_0x585f11(0x20a)](_0x49dd0a,_0x2bf8a4,_0x381848,_0x57a74d),..._0x3a5cea};this[_0x585f11(0x1fb)]?await this[_0x585f11(0x1d7)](_0xb4429b,_0x381848,_0x3ae512,_0x597fb9,_0x57a74d):await this[_0x585f11(0x1ce)](_0xb4429b,_0x381848,_0x3ae512,_0x597fb9);}async[_0x8908cd(0x20a)](_0x5c17a1,_0x3e361a,_0x16f2ad,_0xbae05b){const _0x20084c=_0x8908cd;let _0x5a719b,_0x25b670;return _0x3e361a?(_0x5a719b=_0x20084c(0x1e3),_0x25b670=_0x20084c(0x1f2)+_0x5c17a1+_0x20084c(0x1e2)+_0x3e361a):(_0x5a719b=_0x20084c(0x1c8),_0x25b670=_0x5c17a1),_0x20084c(0x1e8)==this[_0x20084c(0x20c)](_0x16f2ad)?_0x20084c(0x1db)+_0x5a719b+_0x20084c(0x205)+_0x25b670+_0x20084c(0x202):_0x20084c(0x1c7)+_0x5a719b+'\x0a'+_0x25b670+_0x20084c(0x1ee);}[_0x8908cd(0x20c)](_0x4cd929){const _0x171c6c=_0x8908cd;if(/^anthropic\.claude/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1d3);if(/^ai21\.j2/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1f3);if(/^cohere\.command/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1ef);if(/^meta\.llama/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1e8);throw new _0x5a91a6(_0x4f0163(this[_0x171c6c(0x210)][_0x171c6c(0x204)],_0x171c6c(0x20e),_0x4cd929));}async[_0x8908cd(0x1d7)](_0x208be4,_0x51469d,_0x23b041,_0x1c2abf,_0x28163b){const _0x58a2e3=_0x8908cd,_0x45d0d6={'method':_0x58a2e3(0x1f9),'headers':await this[_0x58a2e3(0x1f4)](this[_0x58a2e3(0x1e9)],_0x28163b),'body':JSON[_0x58a2e3(0x1fe)]({..._0x208be4,'model':_0x51469d,'stream':_0x23b041}),'signal':this[_0x58a2e3(0x1ca)][_0x58a2e3(0x1f6)]},_0x4ff18b=await fetch(this[_0x58a2e3(0x1fb)],_0x45d0d6);_0x23b041?await this[_0x58a2e3(0x1dd)](_0x4ff18b,_0x51469d,_0x1c2abf):await this[_0x58a2e3(0x1fa)](_0x4ff18b,_0x51469d,_0x1c2abf);}async[_0x8908cd(0x1ce)](_0x3de3a7,_0xa84d34,_0x31e9f2,_0x23976d){const _0x8aa214=_0x8908cd,_0x305aa1=new _0x1c1291(this[_0x8aa214(0x1dc)]),_0x3f9b07={'body':JSON[_0x8aa214(0x1fe)](_0x3de3a7),'contentType':_0x8aa214(0x215),'accept':_0x8aa214(0x215),'modelId':_0xa84d34};let _0x523540;if(_0x31e9f2){const _0x58d3bd=new _0x32c1f4(_0x3f9b07);_0x523540=await _0x305aa1[_0x8aa214(0x1c9)](_0x58d3bd,{'abortSignal':this[_0x8aa214(0x1ca)][_0x8aa214(0x1f6)]}),await this[_0x8aa214(0x208)](_0x523540,_0xa84d34,_0x23976d);}else{const _0x45b5ed=new _0x246e66(_0x3f9b07);_0x523540=await _0x305aa1[_0x8aa214(0x1c9)](_0x45b5ed,{'abortSignal':this[_0x8aa214(0x1ca)][_0x8aa214(0x1f6)]}),await this[_0x8aa214(0x1fa)](_0x523540,_0xa84d34,_0x23976d);}}async[_0x8908cd(0x208)](_0x2164cf,_0x59c55e,_0x2447fd){const _0x49d39e=_0x8908cd,_0x411056=_0x2164cf[_0x49d39e(0x1ff)],_0x4ebea7=new TextDecoder(_0x49d39e(0x1e6));let _0x1cd9f6='';for await(const _0x4b447c of _0x411056)if(_0x4b447c[_0x49d39e(0x216)]){const _0xc704f1=_0x4ebea7[_0x49d39e(0x1e1)](_0x4b447c[_0x49d39e(0x216)][_0x49d39e(0x1fc)]),_0x29332c=JSON[_0x49d39e(0x1f0)](_0xc704f1);_0x1cd9f6+=this[_0x49d39e(0x203)](_0x29332c,_0x59c55e),_0x2447fd(_0x1cd9f6);}return Promise[_0x49d39e(0x1fd)]();}async[_0x8908cd(0x1dd)](_0x200706,_0x9271c6,_0x1b9fa9){const _0x3dd434=_0x8908cd,_0x1f8ffd=_0x200706[_0x3dd434(0x1ff)],_0x4bc2ba=new TextDecoder(_0x3dd434(0x1e6)),_0x4f386f=_0x1f8ffd[_0x3dd434(0x1cc)]();let _0x4de960='',_0x6abcd4='',_0x256296=!0x1;for(;!_0x256296;){const {done:_0x4c2d0c,value:_0x3849fe}=await _0x4f386f[_0x3dd434(0x1df)]();if(_0x256296=_0x4c2d0c,_0x256296)break;const _0x4d0cf4=(_0x4de960+_0x4bc2ba[_0x3dd434(0x1e1)](_0x3849fe))[_0x3dd434(0x1f1)]('\x0a')[_0x3dd434(0x20f)](_0x28d888=>{const _0x511cce=_0x3dd434;try{return _0x4de960='',JSON[_0x511cce(0x1f0)](_0x28d888);}catch(_0x5569f5){return _0x4de960=_0x28d888,null;}})[_0x3dd434(0x1eb)](_0x3c15f6=>null!==_0x3c15f6);_0x4d0cf4[_0x3dd434(0x1ed)]&&(_0x6abcd4+=_0x4d0cf4[_0x3dd434(0x20f)](_0x4a3db4=>this[_0x3dd434(0x203)](_0x4a3db4,_0x9271c6))[_0x3dd434(0x1d6)](''),_0x1b9fa9(_0x6abcd4));}return Promise[_0x3dd434(0x1fd)]();}async[_0x8908cd(0x1fa)](_0x1e7991,_0x5e8563,_0x30159c){const _0x40e4ca=_0x8908cd;let _0x414c1b;return _0x414c1b=_0x1e7991 instanceof Response?await _0x1e7991[_0x40e4ca(0x1c6)]():JSON[_0x40e4ca(0x1f0)](Buffer[_0x40e4ca(0x217)](_0x1e7991[_0x40e4ca(0x1ff)])[_0x40e4ca(0x212)](_0x40e4ca(0x207))),(_0x30159c(this[_0x40e4ca(0x203)](_0x414c1b,_0x5e8563)),Promise[_0x40e4ca(0x1fd)]());}[_0x8908cd(0x203)](_0xd9ee98,_0xf4b2f3){const _0x7f5bb6=_0x8908cd;switch(this[_0x7f5bb6(0x20c)](_0xf4b2f3)){case _0x7f5bb6(0x1d3):return _0xd9ee98[_0x7f5bb6(0x1f7)];case _0x7f5bb6(0x1f3):return _0xd9ee98[_0x7f5bb6(0x200)][0x0][_0x7f5bb6(0x1cb)][_0x7f5bb6(0x1d1)];case _0x7f5bb6(0x1ef):return _0xd9ee98[_0x7f5bb6(0x1d0)][0x0][_0x7f5bb6(0x1d1)];case _0x7f5bb6(0x1e8):return _0xd9ee98[_0x7f5bb6(0x206)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x19d6(){const _0x4ef518=['5063049hdqLOZ','[DONE]','read','filter','json','4921384fOxjiH','locale','4qshiKK','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.','AI_ERROR_MODERATION','OpenAITextAdapter','map','system','includes','32169kvyNiN','pluginName','body','config','stream','split','reject','user','parse','context_length_exceeded','_prepareRequestHeaders','decode','message','_requestHeaders','AI_ERROR_CONTEXT_LENGTH','gpt-3.5-turbo','ai.openAI.requestHeaders','get','Moderation','editor','choices','signal','https://api.openai.com/v1/chat/completions','replace','_readStreamableResponse','POST','7537166oQZehh','abortController','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','_apiUrl','647686ricEFp','join','sendRequest','1652514PsWRpy','_prepareRequestParameters','ai.openAI.apiUrl','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.','_requestParameters','delta','stringify','length','data:\x20','content','prepareMessages','_cleanUpData','_readStaticResponse','define','resolve','ai.openAI.requestParameters','708380NbObiy','32nagUfZ','Instruction:\x0a','text'];_0x19d6=function(){return _0x4ef518;};return _0x19d6();}const _0xec09ca=_0x4fbb;(function(_0x11fbf6,_0xb4b9b0){const _0x4461f1=_0x4fbb,_0x48898d=_0x11fbf6();while(!![]){try{const _0x47538c=-parseInt(_0x4461f1(0xe2))/0x1+-parseInt(_0x4461f1(0xbb))/0x2*(parseInt(_0x4461f1(0xc2))/0x3)+-parseInt(_0x4461f1(0xf6))/0x4*(-parseInt(_0x4461f1(0xf5))/0x5)+parseInt(_0x4461f1(0xe5))/0x6+parseInt(_0x4461f1(0xdc))/0x7+-parseInt(_0x4461f1(0xfe))/0x8+-parseInt(_0x4461f1(0xf9))/0x9;if(_0x47538c===_0xb4b9b0)break;else _0x48898d['push'](_0x48898d['shift']());}catch(_0x4c17f7){_0x48898d['push'](_0x48898d['shift']());}}}(_0x19d6,0x9beeb));import{default as _0x40184e}from'./aitextadapter.js';import{AIRequestError as _0x5f5527}from'./aiadapter.js';function _0x4fbb(_0xce578a,_0x321261){const _0x19d64a=_0x19d6();return _0x4fbb=function(_0x4fbb17,_0x176fc6){_0x4fbb17=_0x4fbb17-0xbb;let _0x10c7dd=_0x19d64a[_0x4fbb17];return _0x10c7dd;},_0x4fbb(_0xce578a,_0x321261);}import{getTranslation as _0x1b969f}from'../utils/common-translations.js';export default class J extends _0x40184e{static get[_0xec09ca(0xc3)](){const _0x30d27b=_0xec09ca;return _0x30d27b(0xbe);}constructor(_0xa2476a){const _0x1b00a4=_0xec09ca;super(_0xa2476a),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xe7),_0x1b00a4(0xd8)),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4))||_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xf4),{'model':_0x1b00a4(0xd1),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1b00a4(0xe1)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xe7)),this[_0x1b00a4(0xcf)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xd2))||{},this[_0x1b00a4(0xe9)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4));}async[_0xec09ca(0xe4)]({query:_0x2a5f5b,context:_0x8051a9,onData:_0x1aef71,actionId:_0x485ef5}){const _0x2eb98b=_0xec09ca,_0x176347=this[_0x2eb98b(0xd5)][_0x2eb98b(0xff)],_0x86fd8e=await this[_0x2eb98b(0xef)](_0x2a5f5b,_0x8051a9,_0x485ef5),_0x2deaea=await this[_0x2eb98b(0xcc)](this[_0x2eb98b(0xcf)],_0x485ef5),_0x192b4a=await this[_0x2eb98b(0xe6)](this[_0x2eb98b(0xe9)],_0x485ef5),_0x5e418e={'messages':_0x86fd8e,..._0x192b4a},_0xb7307f={'method':_0x2eb98b(0xdb),'headers':_0x2deaea,'body':JSON[_0x2eb98b(0xeb)](_0x5e418e),'signal':this[_0x2eb98b(0xdd)][_0x2eb98b(0xd7)]},_0x2a83a0=await fetch(this[_0x2eb98b(0xe1)],_0xb7307f);if(_0x2a83a0['ok'])return _0x192b4a[_0x2eb98b(0xc6)]?await this[_0x2eb98b(0xda)](_0x2a83a0,_0x1aef71):await this[_0x2eb98b(0xf1)](_0x2a83a0,_0x1aef71),Promise[_0x2eb98b(0xf3)]();{const _0x134b6f=await _0x2a83a0[_0x2eb98b(0xf8)]();return _0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xcb))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xd0)))):_0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xd4))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xbd)))):Promise[_0x2eb98b(0xc8)](new Error(_0x134b6f));}}async[_0xec09ca(0xef)](_0x580f32,_0x165124,_0x530539){const _0x3a4972=_0xec09ca;let _0x561ef4,_0x52f5b7;return _0x165124?(_0x561ef4=_0x3a4972(0xe8),_0x52f5b7=_0x3a4972(0xf7)+_0x580f32+_0x3a4972(0xdf)+_0x165124):(_0x561ef4=_0x3a4972(0xbc),_0x52f5b7=_0x580f32),[{'role':_0x3a4972(0xc0),'content':_0x561ef4},{'role':_0x3a4972(0xc9),'content':_0x52f5b7}];}async[_0xec09ca(0xda)](_0x113f23,_0x448bcd){const _0x4c8074=_0xec09ca,_0x666add=_0x113f23[_0x4c8074(0xc4)][_0x4c8074(0xde)](),_0x205bff=new TextDecoder();let _0x37cd27='',_0x4db665='',_0x32d910='',_0x4f00f9=!0x1;for(;!_0x4f00f9;){const {done:_0x3eac3f,value:_0x56a4ed}=await _0x666add[_0x4c8074(0xfb)](),_0x49e8a0=_0x37cd27+_0x205bff[_0x4c8074(0xcd)](_0x56a4ed);let _0x19f898='';_0x4f00f9=_0x3eac3f;try{_0x19f898=this[_0x4c8074(0xf0)](_0x49e8a0),_0x37cd27='';}catch(_0x3e1e55){_0x37cd27=_0x49e8a0;continue;}_0x4db665+=_0x19f898,!_0x4f00f9&&this[_0x4c8074(0xe0)](_0x4db665)||_0x4db665&&(_0x32d910+=_0x4db665,_0x4db665='',_0x448bcd(_0x32d910));}return Promise[_0x4c8074(0xf3)]();}async[_0xec09ca(0xf1)](_0x4c67d4,_0x4b9935){const _0x435e0b=_0xec09ca;return _0x4b9935((await _0x4c67d4[_0x435e0b(0xfd)]())[_0x435e0b(0xd6)][0x0][_0x435e0b(0xce)][_0x435e0b(0xee)]),Promise[_0x435e0b(0xf3)]();}[_0xec09ca(0xe0)](_0x20ce88){const _0x25a4b4=_0xec09ca,_0x22b2b1=_0x20ce88[_0x25a4b4(0xc7)]('<')[_0x25a4b4(0xec)]!==_0x20ce88[_0x25a4b4(0xc7)]('>')[_0x25a4b4(0xec)],_0x6423d0=_0x20ce88[_0x25a4b4(0xec)]<0x1e;return _0x22b2b1&&_0x6423d0;}[_0xec09ca(0xf0)](_0xa39ca5){const _0x3ac87f=_0xec09ca;return _0xa39ca5[_0x3ac87f(0xc7)](/\n(?![^{]*\})/g)[_0x3ac87f(0xbf)](_0x37d102=>_0x37d102[_0x3ac87f(0xd9)](_0x3ac87f(0xed),''))[_0x3ac87f(0xfc)](_0x482878=>_0x482878&&_0x482878[_0x3ac87f(0xec)]>0x0&&_0x3ac87f(0xfa)!==_0x482878)[_0x3ac87f(0xbf)](_0x9f3e6a=>{const _0x1338f3=_0x3ac87f,{choices:_0x26f792}=JSON[_0x1338f3(0xca)](_0x9f3e6a);if(_0x26f792[0x0]&&_0x26f792[0x0][_0x1338f3(0xea)]&&_0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)])return _0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)];})[_0x3ac87f(0xfc)](_0x2cdf3d=>_0x2cdf3d)[_0x3ac87f(0xe3)]('');}}
23
+ function _0x2b58(_0x21fcd8,_0x2f4b48){const _0x17725f=_0x1772();return _0x2b58=function(_0x2b5801,_0x55fe74){_0x2b5801=_0x2b5801-0xa8;let _0x5110c2=_0x17725f[_0x2b5801];return _0x5110c2;},_0x2b58(_0x21fcd8,_0x2f4b48);}const _0xedf4fd=_0x2b58;(function(_0x189790,_0x8f9f60){const _0x127d09=_0x2b58,_0x407537=_0x189790();while(!![]){try{const _0x1e96b6=-parseInt(_0x127d09(0xbb))/0x1+-parseInt(_0x127d09(0xbd))/0x2*(-parseInt(_0x127d09(0xab))/0x3)+-parseInt(_0x127d09(0xd5))/0x4*(-parseInt(_0x127d09(0xd1))/0x5)+parseInt(_0x127d09(0xb3))/0x6*(-parseInt(_0x127d09(0xb4))/0x7)+parseInt(_0x127d09(0xcd))/0x8+-parseInt(_0x127d09(0xc4))/0x9+parseInt(_0x127d09(0xc7))/0xa*(-parseInt(_0x127d09(0xa8))/0xb);if(_0x1e96b6===_0x8f9f60)break;else _0x407537['push'](_0x407537['shift']());}catch(_0x5e70f1){_0x407537['push'](_0x407537['shift']());}}}(_0x1772,0x9d6cb));import{default as _0x31ae4e}from'./aitextadapter.js';import{AIRequestError as _0xa99b60}from'./aiadapter.js';function _0x1772(){const _0x35483f=['split','parse','OpenAITextAdapter','read','AI_ERROR_CONTEXT_LENGTH','624248golPPp','AI_ERROR_MODERATION','7132JXaSsJ','resolve','map','_isBufferIncomplete','_prepareRequestParameters','Instruction:\x0a','sendRequest','5813865tXpbJn','[DONE]','define','260YKoIHh','system','gpt-3.5-turbo','config','includes','ai.openAI.requestHeaders','8391296WWXQOq','editor','signal','context_length_exceeded','1576895ltMWTP','stream','ai.openAI.requestParameters','abortController','16EzICit','delta','replace','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','text','get','_requestParameters','content','filter','pluginName','decode','choices','prepareMessages','user','data:\x20','_prepareRequestHeaders','json','_requestHeaders','body','_cleanUpData','Moderation','reject','getReader','message','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.','208681JiuAVN','locale','https://api.openai.com/v1/chat/completions','1065mJjJwU','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.','_readStaticResponse','_apiUrl','stringify','join','ai.openAI.apiUrl','length','1752102XevCLV','28DVTaiu','_readStreamableResponse'];_0x1772=function(){return _0x35483f;};return _0x1772();}import{getTranslation as _0x54d8b2}from'../utils/common-translations.js';export default class F extends _0x31ae4e{static get[_0xedf4fd(0xdf)](){const _0xad617c=_0xedf4fd;return _0xad617c(0xb8);}constructor(_0xf5122a){const _0x4f1c54=_0xedf4fd;super(_0xf5122a),_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xc6)](_0x4f1c54(0xb1),_0x4f1c54(0xaa)),_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xd3))||_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xc6)](_0x4f1c54(0xd3),{'model':_0x4f1c54(0xc9),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4f1c54(0xae)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xb1)),this[_0x4f1c54(0xe7)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xcc))||{},this[_0x4f1c54(0xdc)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xd3));}async[_0xedf4fd(0xc3)]({query:_0x50dfcc,context:_0x59e736,onData:_0x1dabe6,actionId:_0x170c74}){const _0x540fcf=_0xedf4fd,_0x4dde30=this[_0x540fcf(0xce)][_0x540fcf(0xa9)],_0x2d2b18=await this[_0x540fcf(0xe2)](_0x50dfcc,_0x59e736,_0x170c74),_0x19d794=await this[_0x540fcf(0xe5)](this[_0x540fcf(0xe7)],_0x170c74),_0x5d9819=await this[_0x540fcf(0xc1)](this[_0x540fcf(0xdc)],_0x170c74),_0x5e9b99={'messages':_0x2d2b18,..._0x5d9819},_0x3dd254={'method':_0x540fcf(0xd9),'headers':_0x19d794,'body':JSON[_0x540fcf(0xaf)](_0x5e9b99),'signal':this[_0x540fcf(0xd4)][_0x540fcf(0xcf)]},_0x1126cd=await fetch(this[_0x540fcf(0xae)],_0x3dd254);if(_0x1126cd['ok'])return _0x5d9819[_0x540fcf(0xd2)]?await this[_0x540fcf(0xb5)](_0x1126cd,_0x1dabe6):await this[_0x540fcf(0xad)](_0x1126cd,_0x1dabe6),Promise[_0x540fcf(0xbe)]();{const _0x506750=await _0x1126cd[_0x540fcf(0xda)]();return _0x506750[_0x540fcf(0xcb)](_0x540fcf(0xd0))?Promise[_0x540fcf(0xeb)](new _0xa99b60(_0x54d8b2(_0x4dde30,_0x540fcf(0xba)))):_0x506750[_0x540fcf(0xcb)](_0x540fcf(0xea))?Promise[_0x540fcf(0xeb)](new _0xa99b60(_0x54d8b2(_0x4dde30,_0x540fcf(0xbc)))):Promise[_0x540fcf(0xeb)](new Error(_0x506750));}}async[_0xedf4fd(0xe2)](_0x2a89d2,_0x3c7c86,_0x58a983){const _0x45f6d2=_0xedf4fd;let _0x58adde,_0x4f1a38;return _0x3c7c86?(_0x58adde=_0x45f6d2(0xac),_0x4f1a38=_0x45f6d2(0xc2)+_0x2a89d2+_0x45f6d2(0xd8)+_0x3c7c86):(_0x58adde=_0x45f6d2(0xee),_0x4f1a38=_0x2a89d2),[{'role':_0x45f6d2(0xc8),'content':_0x58adde},{'role':_0x45f6d2(0xe3),'content':_0x4f1a38}];}async[_0xedf4fd(0xb5)](_0x166749,_0x512220){const _0x42000e=_0xedf4fd,_0x32e9b4=_0x166749[_0x42000e(0xe8)][_0x42000e(0xec)](),_0x2d2f20=new TextDecoder();let _0x35d0b1='',_0x5c72ab='',_0x2c7d0e='',_0x3103d4=!0x1;for(;!_0x3103d4;){const {done:_0x29e428,value:_0x13eafc}=await _0x32e9b4[_0x42000e(0xb9)](),_0x4e0d32=_0x35d0b1+_0x2d2f20[_0x42000e(0xe0)](_0x13eafc);let _0x1bac7c='';_0x3103d4=_0x29e428;try{_0x1bac7c=this[_0x42000e(0xe9)](_0x4e0d32),_0x35d0b1='';}catch(_0x423288){_0x35d0b1=_0x4e0d32;continue;}_0x5c72ab+=_0x1bac7c,!_0x3103d4&&this[_0x42000e(0xc0)](_0x5c72ab)||_0x5c72ab&&(_0x2c7d0e+=_0x5c72ab,_0x5c72ab='',_0x512220(_0x2c7d0e));}return Promise[_0x42000e(0xbe)]();}async[_0xedf4fd(0xad)](_0x2be07b,_0x43e76a){const _0x894ddd=_0xedf4fd;return _0x43e76a((await _0x2be07b[_0x894ddd(0xe6)]())[_0x894ddd(0xe1)][0x0][_0x894ddd(0xed)][_0x894ddd(0xdd)]),Promise[_0x894ddd(0xbe)]();}[_0xedf4fd(0xc0)](_0x3d4608){const _0x2aa91c=_0xedf4fd,_0x19e4e1=_0x3d4608[_0x2aa91c(0xb6)]('<')[_0x2aa91c(0xb2)]!==_0x3d4608[_0x2aa91c(0xb6)]('>')[_0x2aa91c(0xb2)],_0x471b34=_0x3d4608[_0x2aa91c(0xb2)]<0x1e;return _0x19e4e1&&_0x471b34;}[_0xedf4fd(0xe9)](_0xad9804){const _0xf3645=_0xedf4fd;return _0xad9804[_0xf3645(0xb6)](/\n(?![^{]*\})/g)[_0xf3645(0xbf)](_0x4690a8=>_0x4690a8[_0xf3645(0xd7)](_0xf3645(0xe4),''))[_0xf3645(0xde)](_0x198641=>_0x198641&&_0x198641[_0xf3645(0xb2)]>0x0&&_0xf3645(0xc5)!==_0x198641)[_0xf3645(0xbf)](_0x536dbf=>{const _0x3118d3=_0xf3645,{choices:_0xb15e8f}=JSON[_0x3118d3(0xb7)](_0x536dbf);if(_0xb15e8f[0x0]&&_0xb15e8f[0x0][_0x3118d3(0xd6)]&&_0xb15e8f[0x0][_0x3118d3(0xd6)][_0x3118d3(0xdd)])return _0xb15e8f[0x0][_0x3118d3(0xd6)][_0x3118d3(0xdd)];})[_0xf3645(0xde)](_0xd2281d=>_0xd2281d)[_0xf3645(0xb0)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1200b9=_0x28d2;(function(_0x1d6431,_0x357055){const _0x4f0ec7=_0x28d2,_0x16cb78=_0x1d6431();while(!![]){try{const _0x2cfbd9=parseInt(_0x4f0ec7(0x198))/0x1+-parseInt(_0x4f0ec7(0x1c7))/0x2+-parseInt(_0x4f0ec7(0x1a4))/0x3*(-parseInt(_0x4f0ec7(0x1bd))/0x4)+parseInt(_0x4f0ec7(0x185))/0x5*(-parseInt(_0x4f0ec7(0x19a))/0x6)+parseInt(_0x4f0ec7(0x19e))/0x7+parseInt(_0x4f0ec7(0x1a8))/0x8+parseInt(_0x4f0ec7(0x1a0))/0x9;if(_0x2cfbd9===_0x357055)break;else _0x16cb78['push'](_0x16cb78['shift']());}catch(_0x4b86e4){_0x16cb78['push'](_0x16cb78['shift']());}}}(_0x4273,0x3c739));import{CKEditorError as _0xfb9b8e}from'ckeditor5/src/utils.js';import{Plugin as _0x5bcb2e}from'ckeditor5/src/core.js';import _0x232d62 from'./aiassistantui.js';import _0x50041a from'./aiassistantediting.js';import{getTranslation as _0x4bd074}from'./utils/common-translations.js';function _0x28d2(_0x25a4b1,_0x52acd4){const _0x427366=_0x4273();return _0x28d2=function(_0x28d21b,_0x533477){_0x28d21b=_0x28d21b-0x17c;let _0x17f234=_0x427366[_0x28d21b];return _0x17f234;},_0x28d2(_0x25a4b1,_0x52acd4);}export default class r extends _0x5bcb2e{static get[_0x1200b9(0x17f)](){return[_0x232d62,_0x50041a];}static get[_0x1200b9(0x183)](){const _0x584cd1=_0x1200b9;return _0x584cd1(0x1cc);}constructor(_0x48b913){const _0x41f432=_0x1200b9;super(_0x48b913);const _0x309427=_0x48b913[_0x41f432(0x1c3)];_0x309427[_0x41f432(0x18b)](_0x41f432(0x1f4),getDefaultCommands(_0x48b913[_0x41f432(0x19b)])),_0x309427[_0x41f432(0x18b)](_0x41f432(0x1db),[]),_0x309427[_0x41f432(0x18b)](_0x41f432(0x19d),[]);const _0x17d08f=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1f4)),_0x3fa650=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1db)),_0x4883da=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x19d));_0x3fa650[_0x41f432(0x1d0)](_0x4182da=>{const _0x5a3466=_0x41f432,_0x105f3e=_0x17d08f[_0x5a3466(0x1bb)](_0x1bb1e3=>_0x1bb1e3[_0x5a3466(0x1be)]===_0x4182da[_0x5a3466(0x1be)]);_0x105f3e?_0x105f3e[_0x5a3466(0x190)]=_0x105f3e[_0x5a3466(0x190)][_0x5a3466(0x1e0)](_0x4182da[_0x5a3466(0x190)]):_0x17d08f[_0x5a3466(0x1c8)](_0x4182da);}),_0x17d08f[_0x41f432(0x1d0)](_0x2172b1=>{const _0x10d985=_0x41f432;_0x2172b1[_0x10d985(0x190)]=_0x2172b1[_0x10d985(0x190)][_0x10d985(0x1ec)](_0x22caa7=>!_0x4883da[_0x10d985(0x1b7)](_0x22caa7['id']));}),_0x309427[_0x41f432(0x1e3)](_0x41f432(0x1f4),_0x17d08f);}[_0x1200b9(0x18a)](){const _0x23a20a=_0x1200b9,_0x584e7c=this[_0x23a20a(0x197)];this[_0x23a20a(0x17e)]=_0x584e7c[_0x23a20a(0x1c3)][_0x23a20a(0x1ee)](_0x23a20a(0x17e)),this[_0x23a20a(0x1cd)]=setInterval(()=>{const _0x5b32f8=_0x23a20a;let _0x461e6d;for(const _0x5cc777 in _0x584e7c){const _0x4a415f=_0x5cc777,_0xaff745=_0x584e7c[_0x4a415f];if(_0x5b32f8(0x1b4)===_0xaff745||_0x5b32f8(0x1a6)===_0xaff745||_0x5b32f8(0x1e4)===_0xaff745||_0x5b32f8(0x187)===_0xaff745){delete _0x584e7c[_0x4a415f],_0x461e6d=_0xaff745;break;}}if(_0x5b32f8(0x1a6)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1d8),null);if(_0x5b32f8(0x1b4)===_0x461e6d&&console[_0x5b32f8(0x1ae)](_0x5b32f8(0x1c1)),_0x5b32f8(0x187)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1b3),null);_0x5b32f8(0x1e4)===_0x461e6d&&clearInterval(this[_0x5b32f8(0x1cd)]);},0x3e8);}[_0x1200b9(0x1a9)](){const _0x5bc6d0=_0x1200b9;this[_0x5bc6d0(0x1cd)]&&clearInterval(this[_0x5bc6d0(0x1cd)]);}}function _0x4273(){const _0x2395da=['translateArabic','93IQaeyb','changeStyle','aiLicenseKeyInvalid','direct','1695184qzUlqy','destroy','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','confident','French','info','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','Hindi','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrial','summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2932VGgGdX','groupId','translateSpanish','professional','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','improveWriting','config','translateEnglish','Direct','Spanish','345360CTAMNe','push','simplifyLanguage','Confident','Journalism','AIAssistant','_licenseKeyCheckInterval','casual','continue','forEach','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','Continue','Simplify\x20language','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','business','ai-invalid-license-key','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Arabic','poetic','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','concat','Change\x20style','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','set','aiLicenseKeyValid','makeShorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','German','Business','Improve\x20writing','Simplified\x20Chinese','filter','translateGerman','get','English','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.aiAssistant.commands','journalism','generate','licenseKey','requires','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','changeTone','pluginName','Generate\x20from\x20selection','11185DaPhDw','Make\x20longer','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20French\x20language.','init','define','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','commands','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Summarize','Legal','translateFrench','editor','92190KANjPr','Professional','942bLSDqD','locale','Make\x20shorter','ai.aiAssistant.removeCommands','1964732agVCEI','editOrReview','1476099evvYfo','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger'];_0x4273=function(){return _0x2395da;};return _0x4273();}export function getDefaultCommands(_0x36bdd8){const _0x2fc30f=_0x1200b9;return[{'groupId':_0x2fc30f(0x19f),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d6)),'commands':[{'id':_0x2fc30f(0x1c2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ea)),'prompt':_0x2fc30f(0x1d5)},{'id':_0x2fc30f(0x1e5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x19c)),'prompt':_0x2fc30f(0x1df)},{'id':_0x2fc30f(0x1a2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x186)),'prompt':_0x2fc30f(0x1b8)},{'id':_0x2fc30f(0x1c9),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d4)),'prompt':_0x2fc30f(0x180)}]},{'groupId':_0x2fc30f(0x17d),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x184)),'commands':[{'id':_0x2fc30f(0x1b5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x194)),'prompt':_0x2fc30f(0x1b9)},{'id':_0x2fc30f(0x1cf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d3)),'prompt':_0x2fc30f(0x1e2)}]},{'groupId':_0x2fc30f(0x182),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x18d)),'commands':[{'id':_0x2fc30f(0x1c0),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x199)),'prompt':_0x2fc30f(0x1f1)},{'id':_0x2fc30f(0x1ce),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x193)),'prompt':_0x2fc30f(0x18f)},{'id':_0x2fc30f(0x1a7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c5)),'prompt':_0x2fc30f(0x1d1)},{'id':_0x2fc30f(0x1ac),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ca)),'prompt':_0x2fc30f(0x1af)},{'id':_0x2fc30f(0x181),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d9)),'prompt':_0x2fc30f(0x1b6)}]},{'groupId':_0x2fc30f(0x1a5),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e1)),'commands':[{'id':_0x2fc30f(0x1d7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e9)),'prompt':_0x2fc30f(0x1da)},{'id':_0x2fc30f(0x1b1),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x195)),'prompt':_0x2fc30f(0x188)},{'id':_0x2fc30f(0x17c),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1cb)),'prompt':_0x2fc30f(0x18c)},{'id':_0x2fc30f(0x1dd),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e7)),'prompt':_0x2fc30f(0x192)}]},{'groupId':_0x2fc30f(0x18e),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ba)),'commands':[{'id':_0x2fc30f(0x1c4),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ef))]),'prompt':_0x2fc30f(0x1ab)},{'id':_0x2fc30f(0x1bf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c6))]),'prompt':_0x2fc30f(0x1bc)},{'id':_0x2fc30f(0x1aa),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1f0))]),'prompt':_0x2fc30f(0x1e6)},{'id':_0x2fc30f(0x1ed),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e8))]),'prompt':_0x2fc30f(0x1de)},{'id':_0x2fc30f(0x196),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ad))]),'prompt':_0x2fc30f(0x189)},{'id':_0x2fc30f(0x1d2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1eb))]),'prompt':_0x2fc30f(0x1b0)},{'id':_0x2fc30f(0x1f2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1b2))]),'prompt':_0x2fc30f(0x1a1)},{'id':_0x2fc30f(0x1a3),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1dc))]),'prompt':_0x2fc30f(0x1f3)}]}];}
23
+ const _0x1fc75c=_0xf0a7;(function(_0x123733,_0x28447d){const _0x176c42=_0xf0a7,_0x504c88=_0x123733();while(!![]){try{const _0x3a3cb4=parseInt(_0x176c42(0x85))/0x1*(-parseInt(_0x176c42(0x9b))/0x2)+parseInt(_0x176c42(0xc7))/0x3+-parseInt(_0x176c42(0x81))/0x4+-parseInt(_0x176c42(0x91))/0x5*(-parseInt(_0x176c42(0xb2))/0x6)+parseInt(_0x176c42(0xa8))/0x7*(-parseInt(_0x176c42(0x9c))/0x8)+-parseInt(_0x176c42(0xba))/0x9+-parseInt(_0x176c42(0x96))/0xa*(-parseInt(_0x176c42(0xb4))/0xb);if(_0x3a3cb4===_0x28447d)break;else _0x504c88['push'](_0x504c88['shift']());}catch(_0x41e62b){_0x504c88['push'](_0x504c88['shift']());}}}(_0x5bf3,0x4203f));import{CKEditorError as _0x3739f9}from'ckeditor5/src/utils.js';import{Plugin as _0x59c808}from'ckeditor5/src/core.js';import _0x203030 from'./aiassistantui.js';import _0x4177b8 from'./aiassistantediting.js';import{getTranslation as _0x34fb2e}from'./utils/common-translations.js';export default class r extends _0x59c808{static get[_0x1fc75c(0xf9)](){return[_0x203030,_0x4177b8];}static get[_0x1fc75c(0xcc)](){const _0x49f702=_0x1fc75c;return _0x49f702(0xe1);}constructor(_0x3d54bc){const _0xc4243=_0x1fc75c;super(_0x3d54bc);const _0x5df3dc=_0x3d54bc[_0xc4243(0xaf)];_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0x8b),getDefaultCommands(_0x3d54bc[_0xc4243(0xa1)])),_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0x87),[]),_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0xe5),[]);const _0x4331e5=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0x8b)),_0x4973e2=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0x87)),_0x33f027=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0xe5));_0x4973e2[_0xc4243(0xc9)](_0x11bc9f=>{const _0x57773c=_0xc4243,_0x32e3b0=_0x4331e5[_0x57773c(0xdf)](_0x159a0a=>_0x159a0a[_0x57773c(0xb3)]===_0x11bc9f[_0x57773c(0xb3)]);_0x32e3b0?_0x32e3b0[_0x57773c(0xd0)]=_0x32e3b0[_0x57773c(0xd0)][_0x57773c(0xd8)](_0x11bc9f[_0x57773c(0xd0)]):_0x4331e5[_0x57773c(0xde)](_0x11bc9f);}),_0x4331e5[_0xc4243(0xc9)](_0x17f3b1=>{const _0x4498f5=_0xc4243;_0x17f3b1[_0x4498f5(0xd0)]=_0x17f3b1[_0x4498f5(0xd0)][_0x4498f5(0xc2)](_0x400b56=>!_0x33f027[_0x4498f5(0x9a)](_0x400b56['id']));}),_0x5df3dc[_0xc4243(0xd7)](_0xc4243(0x8b),_0x4331e5);}[_0x1fc75c(0xee)](){const _0x563b09=_0x1fc75c,_0x55bae4=this[_0x563b09(0x95)];this[_0x563b09(0xd4)]=_0x55bae4[_0x563b09(0xaf)][_0x563b09(0x9d)](_0x563b09(0xd4)),this[_0x563b09(0x8c)]=setInterval(()=>{const _0x5773a9=_0x563b09;let _0x56a1fb;for(const _0x8baf6f in _0x55bae4){const _0x4c5fb5=_0x8baf6f,_0x16327f=_0x55bae4[_0x4c5fb5];if(_0x5773a9(0xf3)===_0x16327f||_0x5773a9(0x92)===_0x16327f||_0x5773a9(0x88)===_0x16327f||_0x5773a9(0xac)===_0x16327f){delete _0x55bae4[_0x4c5fb5],_0x56a1fb=_0x16327f;break;}}if(_0x5773a9(0x92)===_0x56a1fb)throw clearInterval(this[_0x5773a9(0x8c)]),new _0x3739f9(_0x5773a9(0xa3),null);if(_0x5773a9(0xf3)===_0x56a1fb&&console[_0x5773a9(0xe8)](_0x5773a9(0xb1)),_0x5773a9(0xac)===_0x56a1fb)throw clearInterval(this[_0x5773a9(0x8c)]),new _0x3739f9(_0x5773a9(0xfa),null);_0x5773a9(0x88)===_0x56a1fb&&clearInterval(this[_0x5773a9(0x8c)]);},0x3e8);}[_0x1fc75c(0xa7)](){const _0x4fcf72=_0x1fc75c;this[_0x4fcf72(0x8c)]&&clearInterval(this[_0x4fcf72(0x8c)]);}}function _0xf0a7(_0x5a7e68,_0x4edc5f){const _0x5bf33b=_0x5bf3();return _0xf0a7=function(_0xf0a78f,_0xd92450){_0xf0a78f=_0xf0a78f-0x80;let _0x1ba79=_0x5bf33b[_0xf0a78f];return _0x1ba79;},_0xf0a7(_0x5a7e68,_0x4edc5f);}export function getDefaultCommands(_0x3764ae){const _0x4b2693=_0x1fc75c;return[{'groupId':_0x4b2693(0xe0),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xe2)),'commands':[{'id':_0x4b2693(0x99),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0x94)),'prompt':_0x4b2693(0x90)},{'id':_0x4b2693(0xe6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0x97)),'prompt':_0x4b2693(0xbd)},{'id':_0x4b2693(0xf1),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xeb)),'prompt':_0x4b2693(0x9f)},{'id':_0x4b2693(0xdd),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd3)),'prompt':_0x4b2693(0xf8)}]},{'groupId':_0x4b2693(0xbb),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xc8)),'commands':[{'id':_0x4b2693(0x84),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xe9)),'prompt':_0x4b2693(0xea)},{'id':_0x4b2693(0xe4),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xdb)),'prompt':_0x4b2693(0xc0)}]},{'groupId':_0x4b2693(0xc4),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xa2)),'commands':[{'id':_0x4b2693(0xc6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xb5)),'prompt':_0x4b2693(0x9e)},{'id':_0x4b2693(0xef),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xa6)),'prompt':_0x4b2693(0xbf)},{'id':_0x4b2693(0xcf),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xc3)),'prompt':_0x4b2693(0xf7)},{'id':_0x4b2693(0x82),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xcb)),'prompt':_0x4b2693(0x8e)},{'id':_0x4b2693(0xaa),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf0)),'prompt':_0x4b2693(0xa0)}]},{'groupId':_0x4b2693(0xf5),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xca)),'commands':[{'id':_0x4b2693(0xb6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf6)),'prompt':_0x4b2693(0xd2)},{'id':_0x4b2693(0x86),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf4)),'prompt':_0x4b2693(0xe3)},{'id':_0x4b2693(0xdc),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xec)),'prompt':_0x4b2693(0xe7)},{'id':_0x4b2693(0x8d),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xc5)),'prompt':_0x4b2693(0x89)}]},{'groupId':_0x4b2693(0xbe),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xd9)),'commands':[{'id':_0x4b2693(0x93),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xda))]),'prompt':_0x4b2693(0xad)},{'id':_0x4b2693(0xf2),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xcd))]),'prompt':_0x4b2693(0xb8)},{'id':_0x4b2693(0xa9),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xb0))]),'prompt':_0x4b2693(0xce)},{'id':_0x4b2693(0xb7),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x98))]),'prompt':_0x4b2693(0xa5)},{'id':_0x4b2693(0xae),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x8a))]),'prompt':_0x4b2693(0xa4)},{'id':_0x4b2693(0x83),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x80))]),'prompt':_0x4b2693(0xd5)},{'id':_0x4b2693(0xb9),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xed))]),'prompt':_0x4b2693(0xc1)},{'id':_0x4b2693(0xd1),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x8f))]),'prompt':_0x4b2693(0xab)}]}];}function _0x5bf3(){const _0x9fbf73=['Change\x20tone','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20German\x20language.','Casual','destroy','791SonBSh','translatePortuguese','friendly','Translate\x20the\x20content\x20to\x20Arabic\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20English\x20language.','translateFrench','config','Portuguese','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','6VOzzLh','groupId','15983bWInOe','Professional','business','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateHindi','795564FzvzTo','generate','define','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','filter','Direct','changeTone','Poetic','professional','1348191wppxpa','Generate\x20from\x20selection','forEach','Change\x20style','Confident','pluginName','Spanish','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','direct','commands','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Simplify\x20language','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20to\x20%0','set','concat','Translate','English','Continue','journalism','simplifyLanguage','push','find','editOrReview','AIAssistant','Edit\x20or\x20review','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','continue','ai.aiAssistant.removeCommands','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','info','Summarize','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Make\x20longer','Journalism','Hindi','init','casual','Friendly','makeLonger','translateSpanish','aiLicenseKeyTrial','Legal','changeStyle','Business','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','requires','ai-trial-license-key-reached-limit-changes','Simplified\x20Chinese','228360yTVbIm','confident','translateChinese','summarize','254314nSvQgm','legal','ai.aiAssistant.extraCommandGroups','aiLicenseKeyValid','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','French','ai.aiAssistant.commands','_licenseKeyCheckInterval','poetic','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Arabic','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','914075Oecsel','aiLicenseKeyInvalid','translateEnglish','Improve\x20writing','editor','2420IjKczT','Make\x20shorter','German','improveWriting','includes','4dFApdo','4200BSefTw','get','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','locale'];_0x5bf3=function(){return _0x9fbf73;};return _0x5bf3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x910cf9=_0x915e;function _0x915e(_0x4fdad9,_0xdb7876){const _0x527205=_0x5272();return _0x915e=function(_0x915eaa,_0x567291){_0x915eaa=_0x915eaa-0x7b;let _0x358996=_0x527205[_0x915eaa];return _0x358996;},_0x915e(_0x4fdad9,_0xdb7876);}(function(_0x437299,_0x9cc344){const _0x1c4ad7=_0x915e,_0x419e12=_0x437299();while(!![]){try{const _0x145f62=-parseInt(_0x1c4ad7(0xa9))/0x1*(parseInt(_0x1c4ad7(0xbd))/0x2)+parseInt(_0x1c4ad7(0xb1))/0x3*(parseInt(_0x1c4ad7(0xa6))/0x4)+parseInt(_0x1c4ad7(0xa2))/0x5*(-parseInt(_0x1c4ad7(0x8f))/0x6)+parseInt(_0x1c4ad7(0x84))/0x7*(parseInt(_0x1c4ad7(0xac))/0x8)+-parseInt(_0x1c4ad7(0x9c))/0x9*(-parseInt(_0x1c4ad7(0xae))/0xa)+-parseInt(_0x1c4ad7(0xb0))/0xb+-parseInt(_0x1c4ad7(0xa3))/0xc*(parseInt(_0x1c4ad7(0x80))/0xd);if(_0x145f62===_0x9cc344)break;else _0x419e12['push'](_0x419e12['shift']());}catch(_0x4b1e83){_0x419e12['push'](_0x419e12['shift']());}}}(_0x5272,0x789c8));import{Plugin as _0x4c492b}from'ckeditor5/src/core.js';const s=_0x910cf9(0x9d),c=_0x910cf9(0x99);export default class i extends _0x4c492b{static get[_0x910cf9(0x92)](){const _0x5d577c=_0x910cf9;return _0x5d577c(0xb4);}[_0x910cf9(0xaa)](){const _0x45bfda=_0x910cf9,{editor:_0x5f5b62}=this,_0x65c835=[_0x45bfda(0xa7)];_0x5f5b62[_0x45bfda(0xa5)][_0x45bfda(0x7f)](_0x45bfda(0x7c))&&_0x65c835[_0x45bfda(0xad)](_0x45bfda(0x88)),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0xb6)]({'model':s,'view':{'classes':_0x65c835,'priority':0xc}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0x95)]({'model':s,'view':{'name':_0x45bfda(0xbc),'classes':[_0x45bfda(0xa7),_0x45bfda(0xba)],'priority':0xc}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0xb6)]({'model':c,'view':{'classes':[_0x45bfda(0x8d)],'priority':0x19}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0x95)]({'model':c,'view':{'name':_0x45bfda(0xbc),'classes':[_0x45bfda(0x8d),_0x45bfda(0xba)],'priority':0x19}});}[_0x910cf9(0x7e)](_0x198e60){const _0x3bda50=_0x910cf9,_0x1251a5=this[_0x3bda50(0xaf)][_0x3bda50(0xab)],_0x3298e8=_0x198e60?c:s;_0x1251a5[_0x3bda50(0x85)](_0x50df05=>{const _0x1f0f91=_0x3bda50,_0x289def=_0x1251a5[_0x1f0f91(0x82)][_0x1f0f91(0x8a)][_0x1f0f91(0x96)]();if(_0x1251a5[_0x1f0f91(0x8b)][_0x1f0f91(0x8e)](_0x3298e8))_0x50df05[_0x1f0f91(0x86)](_0x3298e8,{'range':_0x289def});else{if(_0x289def[_0x1f0f91(0x93)][_0x1f0f91(0xb3)]){const _0x5b2d54=_0x289def[_0x1f0f91(0x93)][_0x1f0f91(0x8c)](({item:_0x43ba81})=>!_0x1251a5[_0x1f0f91(0x9f)][_0x1f0f91(0x83)](_0x43ba81),{'boundaries':_0x289def});_0x50df05[_0x1f0f91(0x81)](_0x3298e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x50df05[_0x1f0f91(0xa1)](_0x5b2d54,_0x289def[_0x1f0f91(0x91)])});}else _0x50df05[_0x1f0f91(0x81)](_0x3298e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x289def});}});}[_0x910cf9(0xb2)](_0x23da93){const _0x40b1ed=_0x910cf9,_0x4c2572=this[_0x40b1ed(0xaf)][_0x40b1ed(0xab)],_0x4b183d=_0x23da93?c:s;_0x4c2572[_0x40b1ed(0x8b)][_0x40b1ed(0x8e)](_0x4b183d)&&_0x4c2572[_0x40b1ed(0x85)](_0x3e3e65=>{const _0x46604b=_0x40b1ed;_0x3e3e65[_0x46604b(0xa4)](_0x4b183d);});}[_0x910cf9(0x9e)](_0xb757d0,_0x43a1f4){const _0x8b6e3e=_0x910cf9,_0x54b90a=_0x43a1f4||this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x8b)][_0x8b6e3e(0x7f)](s)[_0x8b6e3e(0xbb)]();if(!this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x87)](_0x54b90a))return;const _0x21ac24=this[_0x8b6e3e(0xaf)][_0x8b6e3e(0x90)][_0x8b6e3e(0xb7)][_0x8b6e3e(0x7b)](_0xb757d0),_0x5462b2=this[_0x8b6e3e(0xaf)][_0x8b6e3e(0x90)][_0x8b6e3e(0xbe)](_0x21ac24);this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x85)](_0x23e170=>{const _0x16c7aa=_0x8b6e3e;this[_0x16c7aa(0xb2)]();const _0x13f9e1=this[_0x16c7aa(0xaf)][_0x16c7aa(0xab)][_0x16c7aa(0x9e)](_0x5462b2,_0x54b90a);_0x13f9e1&&_0x23e170[_0x16c7aa(0x98)](_0x13f9e1);});}[_0x910cf9(0xb8)](_0x535ff4){const _0x306849=_0x910cf9,{model:_0x114e97}=this[_0x306849(0xaf)],_0x4ba056=Array[_0x306849(0x9a)](_0x114e97[_0x306849(0x89)](this[_0x306849(0xaf)][_0x306849(0xab)][_0x306849(0x8b)][_0x306849(0x7f)](s)[_0x306849(0xbb)]())[_0x306849(0x7d)]()),_0x29d4ed=_0x4ba056[_0x306849(0xa8)]?_0x114e97[_0x306849(0xb5)](_0x4ba056[_0x306849(0xb9)]()):_0x114e97[_0x306849(0x82)][_0x306849(0x8a)][_0x306849(0x9b)]();this[_0x306849(0x9e)](_0x535ff4,_0x29d4ed);}}function _0x5272(){const _0xd5e712=['2402742beugvc','data','end','pluginName','start','editingDowncast','markerToElement','getFirstRange','conversion','setSelection','ai-ui-candidate','from','getLastPosition','9qzkzDX','ai-ui','insertContent','schema','for','createRange','5craXBE','24DLAsWb','removeMarker','config','1052ucxOgF','ck-fake-ai-selection','length','267911KUmRaV','init','model','8IiUUlF','push','9581630ZzAtTV','editor','7584203NBrLTI','9537rxGELC','hideFakeVisualSelection','isAtEnd','AIAssistantEditing','createPositionAfter','markerToHighlight','processor','insertContentBelow','pop','ck-fake-ai-selection_collapsed','getRange','span','2gwIkpn','toModel','toView','ai.useTheme','getSelectedBlocks','showFakeVisualSelection','get','2224469NEfONT','addMarker','document','isContent','2798957SakASL','change','updateMarker','canEditAt','ck-ai-assistant-ui_theme','createSelection','selection','markers','getLastMatchingPosition','ck-fake-ai-selection-candidate','has'];_0x5272=function(){return _0xd5e712;};return _0x5272();}
23
+ const _0x135a0a=_0x5599;(function(_0x217a21,_0x978ef1){const _0x549df7=_0x5599,_0x527983=_0x217a21();while(!![]){try{const _0x5ebbe0=-parseInt(_0x549df7(0xd1))/0x1*(parseInt(_0x549df7(0xef))/0x2)+parseInt(_0x549df7(0xe7))/0x3+parseInt(_0x549df7(0xe5))/0x4*(-parseInt(_0x549df7(0xd0))/0x5)+-parseInt(_0x549df7(0xcf))/0x6*(-parseInt(_0x549df7(0xf8))/0x7)+parseInt(_0x549df7(0xd8))/0x8*(parseInt(_0x549df7(0xf2))/0x9)+parseInt(_0x549df7(0xc4))/0xa+-parseInt(_0x549df7(0xc6))/0xb*(parseInt(_0x549df7(0xbe))/0xc);if(_0x5ebbe0===_0x978ef1)break;else _0x527983['push'](_0x527983['shift']());}catch(_0xd5355c){_0x527983['push'](_0x527983['shift']());}}}(_0x331a,0xa839f));function _0x331a(){const _0x40cd31=['addMarker','ai-ui','setSelection','insertContentBelow','35sSQjGx','push','model','for','pop','has','getSelectedBlocks','from','length','3564RjOZKI','toModel','start','ai.useTheme','insertContent','markerToElement','6161710kiIVrI','ck-ai-assistant-ui_theme','49291GrhSgK','processor','ai-ui-candidate','removeMarker','schema','markerToHighlight','AIAssistantEditing','span','change','1133250OlvvpD','5AFCTLW','253570mRLRTl','data','pluginName','canEditAt','createRange','toView','get','112iBQnOo','editingDowncast','ck-fake-ai-selection','ck-fake-ai-selection_collapsed','ck-fake-ai-selection-candidate','getRange','showFakeVisualSelection','updateMarker','getLastPosition','isAtEnd','editor','createSelection','document','2677132PPSXTk','hideFakeVisualSelection','3559959pnsadB','selection','getFirstRange','markers','isContent','getLastMatchingPosition','createPositionAfter','config','2JiHbXs','conversion','end','125721gwrZkw','init'];_0x331a=function(){return _0x40cd31;};return _0x331a();}function _0x5599(_0x1c9493,_0x30bc1d){const _0x331a1d=_0x331a();return _0x5599=function(_0x559904,_0x56223){_0x559904=_0x559904-0xb8;let _0x504e29=_0x331a1d[_0x559904];return _0x504e29;},_0x5599(_0x1c9493,_0x30bc1d);}import{Plugin as _0x111741}from'ckeditor5/src/core.js';const s=_0x135a0a(0xf5),c=_0x135a0a(0xc8);export default class i extends _0x111741{static get[_0x135a0a(0xd3)](){const _0x565c16=_0x135a0a;return _0x565c16(0xcc);}[_0x135a0a(0xf3)](){const _0x4c15aa=_0x135a0a,{editor:_0x790ae0}=this,_0xe7de12=[_0x4c15aa(0xda)];_0x790ae0[_0x4c15aa(0xee)][_0x4c15aa(0xd7)](_0x4c15aa(0xc1))&&_0xe7de12[_0x4c15aa(0xf9)](_0x4c15aa(0xc5)),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xcb)]({'model':s,'view':{'classes':_0xe7de12,'priority':0xc}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xc3)]({'model':s,'view':{'name':_0x4c15aa(0xcd),'classes':[_0x4c15aa(0xda),_0x4c15aa(0xdb)],'priority':0xc}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xcb)]({'model':c,'view':{'classes':[_0x4c15aa(0xdc)],'priority':0x19}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xc3)]({'model':c,'view':{'name':_0x4c15aa(0xcd),'classes':[_0x4c15aa(0xdc),_0x4c15aa(0xdb)],'priority':0x19}});}[_0x135a0a(0xde)](_0x1230b6){const _0x2d9db0=_0x135a0a,_0x13892a=this[_0x2d9db0(0xe2)][_0x2d9db0(0xfa)],_0x249216=_0x1230b6?c:s;_0x13892a[_0x2d9db0(0xce)](_0x590a15=>{const _0x2b260d=_0x2d9db0,_0xb9f43=_0x13892a[_0x2b260d(0xe4)][_0x2b260d(0xe8)][_0x2b260d(0xe9)]();if(_0x13892a[_0x2b260d(0xea)][_0x2b260d(0xba)](_0x249216))_0x590a15[_0x2b260d(0xdf)](_0x249216,{'range':_0xb9f43});else{if(_0xb9f43[_0x2b260d(0xc0)][_0x2b260d(0xe1)]){const _0x4737d0=_0xb9f43[_0x2b260d(0xc0)][_0x2b260d(0xec)](({item:_0x326991})=>!_0x13892a[_0x2b260d(0xca)][_0x2b260d(0xeb)](_0x326991),{'boundaries':_0xb9f43});_0x590a15[_0x2b260d(0xf4)](_0x249216,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x590a15[_0x2b260d(0xd5)](_0x4737d0,_0xb9f43[_0x2b260d(0xf1)])});}else _0x590a15[_0x2b260d(0xf4)](_0x249216,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xb9f43});}});}[_0x135a0a(0xe6)](_0x43584a){const _0x1a35ee=_0x135a0a,_0x8485eb=this[_0x1a35ee(0xe2)][_0x1a35ee(0xfa)],_0x3eb91a=_0x43584a?c:s;_0x8485eb[_0x1a35ee(0xea)][_0x1a35ee(0xba)](_0x3eb91a)&&_0x8485eb[_0x1a35ee(0xce)](_0x27b65f=>{const _0x3b8d5b=_0x1a35ee;_0x27b65f[_0x3b8d5b(0xc9)](_0x3eb91a);});}[_0x135a0a(0xc2)](_0x5e9430,_0x133c41){const _0x102ad7=_0x135a0a,_0x536f2b=_0x133c41||this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xea)][_0x102ad7(0xd7)](s)[_0x102ad7(0xdd)]();if(!this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xd4)](_0x536f2b))return;const _0x4fddf1=this[_0x102ad7(0xe2)][_0x102ad7(0xd2)][_0x102ad7(0xc7)][_0x102ad7(0xd6)](_0x5e9430),_0x206a45=this[_0x102ad7(0xe2)][_0x102ad7(0xd2)][_0x102ad7(0xbf)](_0x4fddf1);this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xce)](_0x2843fb=>{const _0xbb9e88=_0x102ad7;this[_0xbb9e88(0xe6)]();const _0x2da29e=this[_0xbb9e88(0xe2)][_0xbb9e88(0xfa)][_0xbb9e88(0xc2)](_0x206a45,_0x536f2b);_0x2da29e&&_0x2843fb[_0xbb9e88(0xf6)](_0x2da29e);});}[_0x135a0a(0xf7)](_0x3dd47e){const _0x465894=_0x135a0a,{model:_0x3118db}=this[_0x465894(0xe2)],_0x2e3f12=Array[_0x465894(0xbc)](_0x3118db[_0x465894(0xe3)](this[_0x465894(0xe2)][_0x465894(0xfa)][_0x465894(0xea)][_0x465894(0xd7)](s)[_0x465894(0xdd)]())[_0x465894(0xbb)]()),_0x88175a=_0x2e3f12[_0x465894(0xbd)]?_0x3118db[_0x465894(0xed)](_0x2e3f12[_0x465894(0xb9)]()):_0x3118db[_0x465894(0xe4)][_0x465894(0xe8)][_0x465894(0xe0)]();this[_0x465894(0xc2)](_0x3dd47e,_0x88175a);}}