@ckeditor/ckeditor5-ai 44.3.0 → 45.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/ai.js +1 -1
- package/build/translations/be.js +1 -0
- package/ckeditor5-metadata.json +2 -2
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/be.po +228 -0
- package/package.json +10 -10
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.d.ts +1 -4
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
- package/theme/icons/copy.svg +0 -1
- package/theme/icons/error.svg +0 -1
- package/theme/icons/magic-wand.svg +0 -1
- package/theme/icons/submit.svg +0 -1
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
+
#
|
|
5
|
+
# Check out the official contributor's guide:
|
|
6
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
+
#
|
|
8
|
+
msgid ""
|
|
9
|
+
msgstr ""
|
|
10
|
+
"Language: be\n"
|
|
11
|
+
"Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
|
|
12
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
+
|
|
14
|
+
msgctxt "AI command group label for editing and reviewing."
|
|
15
|
+
msgid "Edit or review"
|
|
16
|
+
msgstr ""
|
|
17
|
+
|
|
18
|
+
msgctxt "Label for the AI command to improve the writing of content."
|
|
19
|
+
msgid "Improve writing"
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
msgctxt "Label for the AI command to make the content shorter."
|
|
23
|
+
msgid "Make shorter"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
msgctxt "Label for the AI command to make the content longer."
|
|
27
|
+
msgid "Make longer"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
msgctxt "Label for the AI command to simplify the language of content."
|
|
31
|
+
msgid "Simplify language"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
msgctxt "AI command group label for generating content from selection."
|
|
35
|
+
msgid "Generate from selection"
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
msgctxt "Label for the AI command to provide a summary of content."
|
|
39
|
+
msgid "Summarize"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
42
|
+
msgctxt "Label for the AI command to continue the content."
|
|
43
|
+
msgid "Continue"
|
|
44
|
+
msgstr ""
|
|
45
|
+
|
|
46
|
+
msgctxt "AI command group label for changing the tone of content."
|
|
47
|
+
msgid "Change tone"
|
|
48
|
+
msgstr ""
|
|
49
|
+
|
|
50
|
+
msgctxt "Label for the AI command to rewrite content in a professional tone."
|
|
51
|
+
msgid "Professional"
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
54
|
+
msgctxt "Label for the AI command to rewrite content in a casual tone."
|
|
55
|
+
msgid "Casual"
|
|
56
|
+
msgstr ""
|
|
57
|
+
|
|
58
|
+
msgctxt "Label for the AI command to rewrite content in a direct manner."
|
|
59
|
+
msgid "Direct"
|
|
60
|
+
msgstr ""
|
|
61
|
+
|
|
62
|
+
msgctxt "Label for the AI command to rewrite content in a confident tone."
|
|
63
|
+
msgid "Confident"
|
|
64
|
+
msgstr ""
|
|
65
|
+
|
|
66
|
+
msgctxt "Label for the AI command to rewrite content in a friendly tone."
|
|
67
|
+
msgid "Friendly"
|
|
68
|
+
msgstr ""
|
|
69
|
+
|
|
70
|
+
msgctxt "AI command group label for changing the style of content."
|
|
71
|
+
msgid "Change style"
|
|
72
|
+
msgstr ""
|
|
73
|
+
|
|
74
|
+
msgctxt "Label for the AI command to rewrite content in a business style."
|
|
75
|
+
msgid "Business"
|
|
76
|
+
msgstr ""
|
|
77
|
+
|
|
78
|
+
msgctxt "Label for the AI command to rewrite content in a legal style."
|
|
79
|
+
msgid "Legal"
|
|
80
|
+
msgstr ""
|
|
81
|
+
|
|
82
|
+
msgctxt "Label for the AI command to rewrite content in a journalistic style."
|
|
83
|
+
msgid "Journalism"
|
|
84
|
+
msgstr ""
|
|
85
|
+
|
|
86
|
+
msgctxt "Label for the AI command to rewrite content poetically."
|
|
87
|
+
msgid "Poetic"
|
|
88
|
+
msgstr ""
|
|
89
|
+
|
|
90
|
+
msgctxt "AI command group label for translating the content."
|
|
91
|
+
msgid "Translate"
|
|
92
|
+
msgstr ""
|
|
93
|
+
|
|
94
|
+
msgctxt "Translate to (English)"
|
|
95
|
+
msgid "English"
|
|
96
|
+
msgstr ""
|
|
97
|
+
|
|
98
|
+
msgctxt "Translate to (Spanish)"
|
|
99
|
+
msgid "Spanish"
|
|
100
|
+
msgstr ""
|
|
101
|
+
|
|
102
|
+
msgctxt "Translate to (German)"
|
|
103
|
+
msgid "German"
|
|
104
|
+
msgstr ""
|
|
105
|
+
|
|
106
|
+
msgctxt "Translate to (Portuguese)"
|
|
107
|
+
msgid "Portuguese"
|
|
108
|
+
msgstr ""
|
|
109
|
+
|
|
110
|
+
msgctxt "Translate to (French)"
|
|
111
|
+
msgid "French"
|
|
112
|
+
msgstr ""
|
|
113
|
+
|
|
114
|
+
msgctxt "Translate to (Simplified Chinese)"
|
|
115
|
+
msgid "Simplified Chinese"
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
msgctxt "Translate to (Hindi)"
|
|
119
|
+
msgid "Hindi"
|
|
120
|
+
msgstr ""
|
|
121
|
+
|
|
122
|
+
msgctxt "Translate to (Arabic)"
|
|
123
|
+
msgid "Arabic"
|
|
124
|
+
msgstr ""
|
|
125
|
+
|
|
126
|
+
msgctxt "The heading element name displayed in the AI dialog and the button tooltip that opens the dialog."
|
|
127
|
+
msgid "AI Assistant"
|
|
128
|
+
msgstr ""
|
|
129
|
+
|
|
130
|
+
msgctxt "The toolbar button tooltip for the dropdown with predefined AI commands."
|
|
131
|
+
msgid "AI Commands"
|
|
132
|
+
msgstr ""
|
|
133
|
+
|
|
134
|
+
msgctxt "The placeholder for the prompt input to obtain new content."
|
|
135
|
+
msgid "Ask AI to edit or generate"
|
|
136
|
+
msgstr ""
|
|
137
|
+
|
|
138
|
+
msgctxt "The placeholder for the prompt input to improve the generated content."
|
|
139
|
+
msgid "Ask AI to improve generated text"
|
|
140
|
+
msgstr ""
|
|
141
|
+
|
|
142
|
+
msgctxt "The label for the button that copies the text from the textarea."
|
|
143
|
+
msgid "Copy"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
msgctxt "The label for the button that submits the entered AI prompt."
|
|
147
|
+
msgid "Submit"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
msgctxt "The label for the button that inserts the generated AI response below the current selection."
|
|
151
|
+
msgid "Insert below"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
msgctxt "The label for the button that repeats the request to AI."
|
|
155
|
+
msgid "Try again"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
msgctxt "The label for the button that stops the generating of the content by AI."
|
|
159
|
+
msgid "Stop"
|
|
160
|
+
msgstr ""
|
|
161
|
+
|
|
162
|
+
msgctxt "The label that indicates the AI is generating content."
|
|
163
|
+
msgid "AI is writing..."
|
|
164
|
+
msgstr ""
|
|
165
|
+
|
|
166
|
+
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
167
|
+
msgid "AI is writing"
|
|
168
|
+
msgstr ""
|
|
169
|
+
|
|
170
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
171
|
+
msgid "Generated content: %0"
|
|
172
|
+
msgstr ""
|
|
173
|
+
|
|
174
|
+
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]'."
|
|
175
|
+
msgid "Error during AI content generation: %0"
|
|
176
|
+
msgstr ""
|
|
177
|
+
|
|
178
|
+
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
179
|
+
msgid "History"
|
|
180
|
+
msgstr ""
|
|
181
|
+
|
|
182
|
+
msgctxt "The primary information text displayed when the prompt history is empty."
|
|
183
|
+
msgid "Empty history"
|
|
184
|
+
msgstr ""
|
|
185
|
+
|
|
186
|
+
msgctxt "The secondary information text displayed when the prompt history is empty."
|
|
187
|
+
msgid "Ask AI and your prompts will be listed here for you to use later."
|
|
188
|
+
msgstr ""
|
|
189
|
+
|
|
190
|
+
msgctxt "The label of the list group that hosts historical user prompts in the AI dialog."
|
|
191
|
+
msgid "Prompt history"
|
|
192
|
+
msgstr ""
|
|
193
|
+
|
|
194
|
+
msgctxt "The default label of the \"ungrouped\" commands group in the AI Commands list."
|
|
195
|
+
msgid "Other"
|
|
196
|
+
msgstr ""
|
|
197
|
+
|
|
198
|
+
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
199
|
+
msgid "AI_REPLACE_CONTENT"
|
|
200
|
+
msgstr ""
|
|
201
|
+
|
|
202
|
+
msgctxt "The label for the button that inserts the generated AI response."
|
|
203
|
+
msgid "AI_INSERT_CONTENT"
|
|
204
|
+
msgstr ""
|
|
205
|
+
|
|
206
|
+
msgctxt "Error message displayed when preparing request headers fails."
|
|
207
|
+
msgid "AI_ERROR_GET_HEADERS"
|
|
208
|
+
msgstr ""
|
|
209
|
+
|
|
210
|
+
msgctxt "Error message displayed when preparing request parameters fails."
|
|
211
|
+
msgid "AI_ERROR_GET_PARAMETERS"
|
|
212
|
+
msgstr ""
|
|
213
|
+
|
|
214
|
+
msgctxt "Error message displayed when the requested AI model is not supported."
|
|
215
|
+
msgid "AI_ERROR_UNSUPPORTED_MODEL"
|
|
216
|
+
msgstr ""
|
|
217
|
+
|
|
218
|
+
msgctxt "Error message displayed when the content selected for AI processing is too long"
|
|
219
|
+
msgid "AI_ERROR_CONTEXT_LENGTH"
|
|
220
|
+
msgstr ""
|
|
221
|
+
|
|
222
|
+
msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
|
|
223
|
+
msgid "AI_ERROR_MODERATION"
|
|
224
|
+
msgstr ""
|
|
225
|
+
|
|
226
|
+
msgctxt "Generic error message displayed when the request failed for unspecified reason."
|
|
227
|
+
msgid "AI_ERROR_FAILED"
|
|
228
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.0.0-alpha.1",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-sdk/client-bedrock-runtime": "3.621.0",
|
|
27
|
-
"@ckeditor/ckeditor5-clipboard": "
|
|
28
|
-
"@ckeditor/ckeditor5-core": "
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "
|
|
30
|
-
"@ckeditor/ckeditor5-
|
|
31
|
-
"@ckeditor/ckeditor5-
|
|
32
|
-
"@ckeditor/ckeditor5-
|
|
33
|
-
"ckeditor5": "
|
|
34
|
-
"ckeditor5
|
|
35
|
-
"
|
|
27
|
+
"@ckeditor/ckeditor5-clipboard": "45.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-core": "45.0.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "45.0.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-table": "45.0.0-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.1",
|
|
34
|
+
"ckeditor5": "45.0.0-alpha.1",
|
|
35
|
+
"es-toolkit": "1.32.0"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
38
|
"main": "src/index.js",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2e1f10=_0x4339;function _0x2c22(){var _0x3dbdb3=['645654jeMeSK','pluginName','2135698AhDcfa','2104EWPlwe','afterInit','name','isOfficialPlugin','49ITVjYx','aiadapter-text-adapter-not-set','isPremiumPlugin','1832600NLPCgg','5580468RsjrZW','textAdapter','3201SZWGcE','AIAdapter','802130RYAjML','674170LfAGMS','AIRequestError','20HHnWLf'];_0x2c22=function(){return _0x3dbdb3;};return _0x2c22();}(function(_0x5e9295,_0x5eea1d){var _0x263a7c=_0x4339,_0x4cc464=_0x5e9295();while(!![]){try{var _0x268596=-parseInt(_0x263a7c(0x141))/0x1+parseInt(_0x263a7c(0x147))/0x2+parseInt(_0x263a7c(0x13f))/0x3*(parseInt(_0x263a7c(0x135))/0x4)+parseInt(_0x263a7c(0x142))/0x5+parseInt(_0x263a7c(0x145))/0x6*(parseInt(_0x263a7c(0x139))/0x7)+parseInt(_0x263a7c(0x13c))/0x8+-parseInt(_0x263a7c(0x13d))/0x9*(parseInt(_0x263a7c(0x144))/0xa);if(_0x268596===_0x5eea1d)break;else _0x4cc464['push'](_0x4cc464['shift']());}catch(_0x156859){_0x4cc464['push'](_0x4cc464['shift']());}}}(_0x2c22,0xabe1d));import{Plugin as _0x2cc6d3}from'ckeditor5/src/core.js';import{CKEditorError as _0x38e506}from'ckeditor5/src/utils.js';function _0x4339(_0x4f3359,_0x293643){var _0x2c227f=_0x2c22();return _0x4339=function(_0x433972,_0x4788ae){_0x433972=_0x433972-0x135;var _0x47d5b8=_0x2c227f[_0x433972];return _0x47d5b8;},_0x4339(_0x4f3359,_0x293643);}export default class E extends _0x2cc6d3{static get[_0x2e1f10(0x146)](){var _0x5ed468=_0x2e1f10;return _0x5ed468(0x140);}static get[_0x2e1f10(0x138)](){return!0x0;}static get[_0x2e1f10(0x13b)](){return!0x0;}[_0x2e1f10(0x136)](){var _0x380237=_0x2e1f10;if(!this[_0x380237(0x13e)])throw new _0x38e506(_0x380237(0x13a),null);}}export class AIRequestError extends Error{constructor(_0x11ba7d){var _0x8cbc2f=_0x2e1f10;super(_0x11ba7d),this[_0x8cbc2f(0x137)]=_0x8cbc2f(0x143);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x103753=_0x4e27;(function(_0x504a27,_0x1b4f5b){const _0x5af40e=_0x4e27,_0x196b7e=_0x504a27();while(!![]){try{const _0x13b1d9=parseInt(_0x5af40e(0x17a))/0x1+-parseInt(_0x5af40e(0x193))/0x2*(-parseInt(_0x5af40e(0x192))/0x3)+parseInt(_0x5af40e(0x18f))/0x4*(parseInt(_0x5af40e(0x18b))/0x5)+parseInt(_0x5af40e(0x17e))/0x6+parseInt(_0x5af40e(0x199))/0x7+-parseInt(_0x5af40e(0x177))/0x8+-parseInt(_0x5af40e(0x18c))/0x9;if(_0x13b1d9===_0x1b4f5b)break;else _0x196b7e['push'](_0x196b7e['shift']());}catch(_0x46d09e){_0x196b7e['push'](_0x196b7e['shift']());}}}(_0x15d5,0xe9a08));function _0x15d5(){const _0x4547ad=['get','AI_ERROR_GET_PARAMETERS','abort','editor','2435170RTKGJc','18648450DeDhMU','textAdapter','_prepareRequestHeaders','4bSgrjB','error','aborted','21DIMJKR','215674fAhwri','sendRequest','assign','plugins','aitextadapter-send-request-failed','application/json','4727289gxAbly','requires','10271672XzhzwB','AI_ERROR_GET_HEADERS','_prepareRequestParameters','1555764bavyTi','init','AbortError','reject','5039766FZvfeO','resolve','locale','name','catch','object','makeRequest','abortController','signal'];_0x15d5=function(){return _0x4547ad;};return _0x15d5();}import{Plugin as _0x1c8dde}from'ckeditor5/src/core.js';import{CKEditorError as _0x471d2c}from'ckeditor5/src/utils.js';function _0x4e27(_0x4f6ba2,_0x42c8ce){const _0x15d51d=_0x15d5();return _0x4e27=function(_0x4e27f2,_0x4c8875){_0x4e27f2=_0x4e27f2-0x177;let _0x582dcb=_0x15d51d[_0x4e27f2];return _0x582dcb;},_0x4e27(_0x4f6ba2,_0x42c8ce);}import{default as _0x1bc040,AIRequestError as _0x4385d2}from'./aiadapter.js';import{getTranslation as _0x60463a}from'../utils/common-translations.js';export default class P extends _0x1c8dde{[_0x103753(0x185)];static get[_0x103753(0x19a)](){return[_0x1bc040];}constructor(_0x5c8420){const _0x3fa340=_0x103753;super(_0x5c8420),this[_0x3fa340(0x185)]=new AbortController();}[_0x103753(0x17b)](){const _0x244662=_0x103753;this[_0x244662(0x18a)][_0x244662(0x196)][_0x244662(0x187)](_0x1bc040)[_0x244662(0x18d)]=this;}[_0x103753(0x189)](){const _0x5b62f1=_0x103753;this[_0x5b62f1(0x185)][_0x5b62f1(0x186)][_0x5b62f1(0x191)]||(this[_0x5b62f1(0x185)][_0x5b62f1(0x189)](),this[_0x5b62f1(0x185)]=new AbortController());}async[_0x103753(0x184)](_0x671c20){const _0x441fa6=_0x103753;return this[_0x441fa6(0x194)](_0x671c20)[_0x441fa6(0x182)](_0x81c7a5=>{const _0x41beee=_0x441fa6;if(_0x81c7a5 instanceof _0x4385d2)return Promise[_0x41beee(0x17d)](_0x81c7a5);if(_0x41beee(0x17c)==_0x81c7a5[_0x41beee(0x181)])return Promise[_0x41beee(0x17f)]();throw console[_0x41beee(0x190)](_0x81c7a5),new _0x471d2c(_0x41beee(0x197),null);});}async[_0x103753(0x18e)](_0x178012,_0x43568e){const _0x1b06bc=_0x103753,_0x2b56b9=this[_0x1b06bc(0x18a)][_0x1b06bc(0x180)],_0x3027c0={'Content-Type':_0x1b06bc(0x198)};if(_0x1b06bc(0x183)==typeof _0x178012)Object[_0x1b06bc(0x195)](_0x3027c0,_0x178012);else{if(_0x178012)try{const _0x43a498=await _0x178012(_0x43568e);Object[_0x1b06bc(0x195)](_0x3027c0,_0x43a498);}catch(_0x449d70){return Promise[_0x1b06bc(0x17d)](new _0x4385d2(_0x60463a(_0x2b56b9,_0x1b06bc(0x178))));}}return _0x3027c0;}async[_0x103753(0x179)](_0x3bee42,_0x5f5d35){const _0x2ed2a9=_0x103753,_0x341850=this[_0x2ed2a9(0x18a)][_0x2ed2a9(0x180)];if(_0x2ed2a9(0x183)==typeof _0x3bee42)return _0x3bee42;try{return await _0x3bee42(_0x5f5d35);}catch(_0x2b2354){return Promise[_0x2ed2a9(0x17d)](new _0x4385d2(_0x60463a(_0x341850,_0x2ed2a9(0x188))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3389c9=_0x21d0;(function(_0x3f881a,_0xfd6be0){const _0xc571cf=_0x21d0,_0x291259=_0x3f881a();while(!![]){try{const _0xf55f29=parseInt(_0xc571cf(0x1da))/0x1*(parseInt(_0xc571cf(0x19e))/0x2)+-parseInt(_0xc571cf(0x1b3))/0x3+parseInt(_0xc571cf(0x196))/0x4+-parseInt(_0xc571cf(0x1b8))/0x5*(parseInt(_0xc571cf(0x1d5))/0x6)+-parseInt(_0xc571cf(0x191))/0x7*(-parseInt(_0xc571cf(0x1b5))/0x8)+parseInt(_0xc571cf(0x195))/0x9*(parseInt(_0xc571cf(0x1a2))/0xa)+-parseInt(_0xc571cf(0x1ce))/0xb;if(_0xf55f29===_0xfd6be0)break;else _0x291259['push'](_0x291259['shift']());}catch(_0x390d65){_0x291259['push'](_0x291259['shift']());}}}(_0x4683,0xd07f8));import{default as _0x115782}from'./aitextadapter.js';import{AIRequestError as _0x2773cc}from'./aiadapter.js';function _0x4683(){const _0x80bddf=['getReader','ai.aws.requestParameters','_requestParameters','20661916DpPkmO','completion','cohere.command','read','bedrock-2023-05-31','\x0a[/INST]','Human:\x0a','30yMtqpH','utf-8','ai21.j2','\x0a\x0aAssistant:','_apiUrl','3tblpnN','map','from','_processAWSRequest','sendRequest','editor','_bedrockClientConfig','_getGeneratedText','test','toString','anthropic.claude','1029539rImcIg','<<SYS>>\x0a','AWSTextAdapter','ai.aws.apiUrl','63747MOVAro','1025276JkqppQ','signal','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.','\x0a<</SYS>>\x0a[INST]\x0a','_processProxyRequest','get','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','1123420kgufZq','join','application/json','body','1310BEZVQM','preparePrompt','length','config','generations','Instruction:\x0a','pluginName','decode','data','ai.aws.bedrockClientConfig','locale','ai.aws.requestHeaders','_prepareRequestHeaders','_readStreamableResponse','split','parse','getModelFamily','361824otKopF','define','40VSRzbx','filter','AI_ERROR_UNSUPPORTED_MODEL','751735rVgCwT','stringify','completions','_readStaticResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','text','json','_readAsyncIterableResponse','bytes','chunk','generation','_prepareRequestParameters','meta.llama','utf8','_requestHeaders','POST','anthropic.claude-v2','send'];_0x4683=function(){return _0x80bddf;};return _0x4683();}import{BedrockRuntimeClient as _0x6eac8e,InvokeModelCommand as _0x167b4c,InvokeModelWithResponseStreamCommand as _0x14de0d}from'@aws-sdk/client-bedrock-runtime';function _0x21d0(_0x4a6083,_0x35c32e){const _0x46837c=_0x4683();return _0x21d0=function(_0x21d0cb,_0x2b5e07){_0x21d0cb=_0x21d0cb-0x18e;let _0x403c75=_0x46837c[_0x21d0cb];return _0x403c75;},_0x21d0(_0x4a6083,_0x35c32e);}import{getTranslation as _0xff018d}from'../utils/common-translations.js';export default class D extends _0x115782{[_0x3389c9(0x1d9)];[_0x3389c9(0x1c7)];[_0x3389c9(0x1e0)];[_0x3389c9(0x1cd)];static get[_0x3389c9(0x1a8)](){const _0x2418be=_0x3389c9;return _0x2418be(0x193);}constructor(_0xe4d945){const _0x16a641=_0x3389c9;super(_0xe4d945),_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x19c)](_0x16a641(0x1cc))||_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x1b4)](_0x16a641(0x1cc),{'model':_0x16a641(0x1c9),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x16a641(0x1d2),'stream':!0x0}),this[_0x16a641(0x1d9)]=_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x19c)](_0x16a641(0x194)),this[_0x16a641(0x1e0)]=_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x19c)](_0x16a641(0x1ab)),this[_0x16a641(0x1c7)]=_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x19c)](_0x16a641(0x1ad)),this[_0x16a641(0x1cd)]=_0xe4d945[_0x16a641(0x1a5)][_0x16a641(0x19c)](_0x16a641(0x1cc));}async[_0x3389c9(0x1de)]({query:_0x9ead35,context:_0x166fa8,onData:_0x5dd487,actionId:_0x3a5e73}){const _0x24dab0=_0x3389c9,{model:_0x47b768,stream:_0x5b40b5,..._0x2fac43}=await this[_0x24dab0(0x1c4)](this[_0x24dab0(0x1cd)],_0x3a5e73),_0x49cdaf={'prompt':await this[_0x24dab0(0x1a3)](_0x9ead35,_0x166fa8,_0x47b768,_0x3a5e73),..._0x2fac43};this[_0x24dab0(0x1d9)]?await this[_0x24dab0(0x19b)](_0x49cdaf,_0x47b768,_0x5b40b5,_0x5dd487,_0x3a5e73):await this[_0x24dab0(0x1dd)](_0x49cdaf,_0x47b768,_0x5b40b5,_0x5dd487);}async[_0x3389c9(0x1a3)](_0x21cd23,_0x3a957,_0x115a78,_0x55d9ad){const _0xf1b5f3=_0x3389c9;let _0x2928f3,_0x28347a;return _0x3a957?(_0x2928f3=_0xf1b5f3(0x19d),_0x28347a=_0xf1b5f3(0x1a7)+_0x21cd23+_0xf1b5f3(0x1bc)+_0x3a957):(_0x2928f3=_0xf1b5f3(0x199),_0x28347a=_0x21cd23),_0xf1b5f3(0x1c5)==this[_0xf1b5f3(0x1b2)](_0x115a78)?_0xf1b5f3(0x192)+_0x2928f3+_0xf1b5f3(0x19a)+_0x28347a+_0xf1b5f3(0x1d3):_0xf1b5f3(0x1d4)+_0x2928f3+'\x0a'+_0x28347a+_0xf1b5f3(0x1d8);}[_0x3389c9(0x1b2)](_0x4defc6){const _0x586a80=_0x3389c9;if(/^anthropic\.claude/[_0x586a80(0x18e)](_0x4defc6))return _0x586a80(0x190);if(/^ai21\.j2/[_0x586a80(0x18e)](_0x4defc6))return _0x586a80(0x1d7);if(/^cohere\.command/[_0x586a80(0x18e)](_0x4defc6))return _0x586a80(0x1d0);if(/^meta\.llama/[_0x586a80(0x18e)](_0x4defc6))return _0x586a80(0x1c5);throw new _0x2773cc(_0xff018d(this[_0x586a80(0x1df)][_0x586a80(0x1ac)],_0x586a80(0x1b7),_0x4defc6));}async[_0x3389c9(0x19b)](_0x3a4eb5,_0x54e067,_0x27f3dc,_0x41e6e3,_0x135daf){const _0x255cbc=_0x3389c9,_0x3a9c0b={'method':_0x255cbc(0x1c8),'headers':await this[_0x255cbc(0x1ae)](this[_0x255cbc(0x1c7)],_0x135daf),'body':JSON[_0x255cbc(0x1b9)]({..._0x3a4eb5,'model':_0x54e067,'stream':_0x27f3dc}),'signal':this[_0x255cbc(0x198)][_0x255cbc(0x197)]},_0x407f20=await fetch(this[_0x255cbc(0x1d9)],_0x3a9c0b);_0x27f3dc?await this[_0x255cbc(0x1af)](_0x407f20,_0x54e067,_0x41e6e3):await this[_0x255cbc(0x1bb)](_0x407f20,_0x54e067,_0x41e6e3);}async[_0x3389c9(0x1dd)](_0x13d652,_0x201ca6,_0x5b97eb,_0x2383bc){const _0x16b68e=_0x3389c9,_0x296f73=new _0x6eac8e(this[_0x16b68e(0x1e0)]),_0x41ddd3={'body':JSON[_0x16b68e(0x1b9)](_0x13d652),'contentType':_0x16b68e(0x1a0),'accept':_0x16b68e(0x1a0),'modelId':_0x201ca6};let _0x3760d1;if(_0x5b97eb){const _0x46e5c7=new _0x14de0d(_0x41ddd3);_0x3760d1=await _0x296f73[_0x16b68e(0x1ca)](_0x46e5c7,{'abortSignal':this[_0x16b68e(0x198)][_0x16b68e(0x197)]}),await this[_0x16b68e(0x1c0)](_0x3760d1,_0x201ca6,_0x2383bc);}else{const _0x40bf26=new _0x167b4c(_0x41ddd3);_0x3760d1=await _0x296f73[_0x16b68e(0x1ca)](_0x40bf26,{'abortSignal':this[_0x16b68e(0x198)][_0x16b68e(0x197)]}),await this[_0x16b68e(0x1bb)](_0x3760d1,_0x201ca6,_0x2383bc);}}async[_0x3389c9(0x1c0)](_0x317d9e,_0x508506,_0x5ea926){const _0xc057c1=_0x3389c9,_0x511ac7=_0x317d9e[_0xc057c1(0x1a1)],_0x2006f9=new TextDecoder(_0xc057c1(0x1d6));let _0x396f67='';for await(const _0xb8cf0b of _0x511ac7)if(_0xb8cf0b[_0xc057c1(0x1c2)]){const _0x44b32f=_0x2006f9[_0xc057c1(0x1a9)](_0xb8cf0b[_0xc057c1(0x1c2)][_0xc057c1(0x1c1)]),_0x147746=JSON[_0xc057c1(0x1b1)](_0x44b32f);_0x396f67+=this[_0xc057c1(0x1e1)](_0x147746,_0x508506),_0x5ea926(_0x396f67);}return Promise[_0xc057c1(0x1bd)]();}async[_0x3389c9(0x1af)](_0x468ef7,_0x2b81bc,_0x178076){const _0x16f215=_0x3389c9,_0x204c43=_0x468ef7[_0x16f215(0x1a1)],_0x299669=new TextDecoder(_0x16f215(0x1d6)),_0x18c793=_0x204c43[_0x16f215(0x1cb)]();let _0x5a0015='',_0x522a88='',_0x5d2f4a=!0x1;for(;!_0x5d2f4a;){const {done:_0x4dfff9,value:_0x1bdc3d}=await _0x18c793[_0x16f215(0x1d1)]();if(_0x5d2f4a=_0x4dfff9,_0x5d2f4a)break;const _0x3fb757=(_0x5a0015+_0x299669[_0x16f215(0x1a9)](_0x1bdc3d))[_0x16f215(0x1b0)]('\x0a')[_0x16f215(0x1db)](_0x2ed261=>{const _0x1ded38=_0x16f215;try{return _0x5a0015='',JSON[_0x1ded38(0x1b1)](_0x2ed261);}catch(_0x14d759){return _0x5a0015=_0x2ed261,null;}})[_0x16f215(0x1b6)](_0xfd464a=>null!==_0xfd464a);_0x3fb757[_0x16f215(0x1a4)]&&(_0x522a88+=_0x3fb757[_0x16f215(0x1db)](_0x4fa154=>this[_0x16f215(0x1e1)](_0x4fa154,_0x2b81bc))[_0x16f215(0x19f)](''),_0x178076(_0x522a88));}return Promise[_0x16f215(0x1bd)]();}async[_0x3389c9(0x1bb)](_0x4e9e23,_0x1d6e47,_0x5ddb93){const _0x5d54a6=_0x3389c9;let _0x471b94;return _0x471b94=_0x4e9e23 instanceof Response?await _0x4e9e23[_0x5d54a6(0x1bf)]():JSON[_0x5d54a6(0x1b1)](Buffer[_0x5d54a6(0x1dc)](_0x4e9e23[_0x5d54a6(0x1a1)])[_0x5d54a6(0x18f)](_0x5d54a6(0x1c6))),(_0x5ddb93(this[_0x5d54a6(0x1e1)](_0x471b94,_0x1d6e47)),Promise[_0x5d54a6(0x1bd)]());}[_0x3389c9(0x1e1)](_0x507462,_0x335b6e){const _0x40879c=_0x3389c9;switch(this[_0x40879c(0x1b2)](_0x335b6e)){case _0x40879c(0x190):return _0x507462[_0x40879c(0x1cf)];case _0x40879c(0x1d7):return _0x507462[_0x40879c(0x1ba)][0x0][_0x40879c(0x1aa)][_0x40879c(0x1be)];case _0x40879c(0x1d0):return _0x507462[_0x40879c(0x1a6)][0x0][_0x40879c(0x1be)];case _0x40879c(0x1c5):return _0x507462[_0x40879c(0x1c3)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1961af=_0x48c0;function _0x48c0(_0x160060,_0x5d9ff0){const _0x29435a=_0x2943();return _0x48c0=function(_0x48c00a,_0x248ea5){_0x48c00a=_0x48c00a-0xa2;let _0x3c8c08=_0x29435a[_0x48c00a];return _0x3c8c08;},_0x48c0(_0x160060,_0x5d9ff0);}(function(_0x1253ed,_0x4ba748){const _0x3b9f42=_0x48c0,_0x2d2adf=_0x1253ed();while(!![]){try{const _0x41fa60=-parseInt(_0x3b9f42(0xa9))/0x1*(-parseInt(_0x3b9f42(0xab))/0x2)+-parseInt(_0x3b9f42(0xc6))/0x3+-parseInt(_0x3b9f42(0xd1))/0x4*(-parseInt(_0x3b9f42(0xaa))/0x5)+-parseInt(_0x3b9f42(0xa3))/0x6*(-parseInt(_0x3b9f42(0xb2))/0x7)+parseInt(_0x3b9f42(0xe4))/0x8+-parseInt(_0x3b9f42(0xd4))/0x9+-parseInt(_0x3b9f42(0xc0))/0xa;if(_0x41fa60===_0x4ba748)break;else _0x2d2adf['push'](_0x2d2adf['shift']());}catch(_0x9f1ac8){_0x2d2adf['push'](_0x2d2adf['shift']());}}}(_0x2943,0x2de8a));import{default as _0x42fb31}from'./aitextadapter.js';import{AIRequestError as _0x420680}from'./aiadapter.js';import{getTranslation as _0x5a43c8}from'../utils/common-translations.js';function _0x2943(){const _0x54c9b8=['ai.openAI.apiUrl','OpenAITextAdapter','define','3693090ZkinUL','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.','content','abortController','Moderation','AI_ERROR_MODERATION','274971YibZjI','POST','_isBufferIncomplete','stream','stringify','text','_cleanUpData','Instruction:\x0a','read','reject','decode','2228HzjSmO','_readStaticResponse','_prepareRequestHeaders','1398249rCFSAS','join','parse','_prepareRequestParameters','data:\x20','pluginName','user','get','ai.openAI.requestHeaders','ai.openAI.requestParameters','message','length','editor','locale','[DONE]','getReader','290536bgcyOu','filter','gpt-3.5-turbo','https://api.openai.com/v1/chat/completions','_readStreamableResponse','30030fDOSpV','delta','resolve','choices','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_CONTEXT_LENGTH','348887fMPoyK','2325GuPYzL','2opFIvZ','system','includes','_requestParameters','replace','body','signal','224VZZcLT','split','_apiUrl','json','config','prepareMessages','sendRequest','map','_requestHeaders','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'];_0x2943=function(){return _0x54c9b8;};return _0x2943();}export default class O extends _0x42fb31{[_0x1961af(0xb4)];[_0x1961af(0xba)];[_0x1961af(0xae)];static get[_0x1961af(0xd9)](){const _0x4a128e=_0x1961af;return _0x4a128e(0xbe);}constructor(_0x34ddc7){const _0x4a7b57=_0x1961af;super(_0x34ddc7),_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xbf)](_0x4a7b57(0xbd),_0x4a7b57(0xe7)),_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xdb)](_0x4a7b57(0xdd))||_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xbf)](_0x4a7b57(0xdd),{'model':_0x4a7b57(0xe6),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4a7b57(0xb4)]=_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xdb)](_0x4a7b57(0xbd)),this[_0x4a7b57(0xba)]=_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xdb)](_0x4a7b57(0xdc))||{},this[_0x4a7b57(0xae)]=_0x34ddc7[_0x4a7b57(0xb6)][_0x4a7b57(0xdb)](_0x4a7b57(0xdd));}async[_0x1961af(0xb8)]({query:_0x5c11ee,context:_0x59444b,onData:_0x10e121,actionId:_0x8d1a77}){const _0x280ff8=_0x1961af,_0x359144=this[_0x280ff8(0xe0)][_0x280ff8(0xe1)],_0x315938=await this[_0x280ff8(0xb7)](_0x5c11ee,_0x59444b,_0x8d1a77),_0x3ab95b=await this[_0x280ff8(0xd3)](this[_0x280ff8(0xba)],_0x8d1a77),_0x46bed9=await this[_0x280ff8(0xd7)](this[_0x280ff8(0xae)],_0x8d1a77),_0x14e707={'messages':_0x315938,..._0x46bed9},_0x58db69={'method':_0x280ff8(0xc7),'headers':_0x3ab95b,'body':JSON[_0x280ff8(0xca)](_0x14e707),'signal':this[_0x280ff8(0xc3)][_0x280ff8(0xb1)]},_0x5373c6=await fetch(this[_0x280ff8(0xb4)],_0x58db69);if(_0x5373c6['ok'])return _0x46bed9[_0x280ff8(0xc9)]?await this[_0x280ff8(0xa2)](_0x5373c6,_0x10e121):await this[_0x280ff8(0xd2)](_0x5373c6,_0x10e121),Promise[_0x280ff8(0xa5)]();{const _0x2b766a=await _0x5373c6[_0x280ff8(0xcb)]();return _0x2b766a[_0x280ff8(0xad)](_0x280ff8(0xbb))?Promise[_0x280ff8(0xcf)](new _0x420680(_0x5a43c8(_0x359144,_0x280ff8(0xa8)))):_0x2b766a[_0x280ff8(0xad)](_0x280ff8(0xc4))?Promise[_0x280ff8(0xcf)](new _0x420680(_0x5a43c8(_0x359144,_0x280ff8(0xc5)))):Promise[_0x280ff8(0xcf)](new Error(_0x2b766a));}}async[_0x1961af(0xb7)](_0x24b55a,_0x4d823e,_0x13eb43){const _0x3dc6b4=_0x1961af;let _0x4ddd92,_0x4b9bfd;return _0x4d823e?(_0x4ddd92=_0x3dc6b4(0xc1),_0x4b9bfd=_0x3dc6b4(0xcd)+_0x24b55a+_0x3dc6b4(0xbc)+_0x4d823e):(_0x4ddd92=_0x3dc6b4(0xa7),_0x4b9bfd=_0x24b55a),[{'role':_0x3dc6b4(0xac),'content':_0x4ddd92},{'role':_0x3dc6b4(0xda),'content':_0x4b9bfd}];}async[_0x1961af(0xa2)](_0x3c1080,_0x28026b){const _0x23faf4=_0x1961af,_0x4a9d96=_0x3c1080[_0x23faf4(0xb0)][_0x23faf4(0xe3)](),_0x54a97a=new TextDecoder();let _0x13ed53='',_0x3c4b3b='',_0x3f43c9='',_0x520185=!0x1;for(;!_0x520185;){const {done:_0x1f6721,value:_0x47eda0}=await _0x4a9d96[_0x23faf4(0xce)](),_0x24677d=_0x13ed53+_0x54a97a[_0x23faf4(0xd0)](_0x47eda0);let _0x132318='';_0x520185=_0x1f6721;try{_0x132318=this[_0x23faf4(0xcc)](_0x24677d),_0x13ed53='';}catch(_0x167226){_0x13ed53=_0x24677d;continue;}_0x3c4b3b+=_0x132318,!_0x520185&&this[_0x23faf4(0xc8)](_0x3c4b3b)||_0x3c4b3b&&(_0x3f43c9+=_0x3c4b3b,_0x3c4b3b='',_0x28026b(_0x3f43c9));}return Promise[_0x23faf4(0xa5)]();}async[_0x1961af(0xd2)](_0x3cf8b9,_0x10dd1e){const _0x29d9b8=_0x1961af;return _0x10dd1e((await _0x3cf8b9[_0x29d9b8(0xb5)]())[_0x29d9b8(0xa6)][0x0][_0x29d9b8(0xde)][_0x29d9b8(0xc2)]),Promise[_0x29d9b8(0xa5)]();}[_0x1961af(0xc8)](_0x53fa52){const _0x595f80=_0x1961af,_0x3e92fe=_0x53fa52[_0x595f80(0xb3)]('<')[_0x595f80(0xdf)]!==_0x53fa52[_0x595f80(0xb3)]('>')[_0x595f80(0xdf)],_0x1ac874=_0x53fa52[_0x595f80(0xdf)]<0x1e;return _0x3e92fe&&_0x1ac874;}[_0x1961af(0xcc)](_0x4d2b4e){const _0x4e945c=_0x1961af;return _0x4d2b4e[_0x4e945c(0xb3)](/\n(?![^{]*\})/g)[_0x4e945c(0xb9)](_0x42b758=>_0x42b758[_0x4e945c(0xaf)](_0x4e945c(0xd8),''))[_0x4e945c(0xe5)](_0x327cc4=>_0x327cc4&&_0x327cc4[_0x4e945c(0xdf)]>0x0&&_0x4e945c(0xe2)!==_0x327cc4)[_0x4e945c(0xb9)](_0x38306e=>{const _0x4dabcb=_0x4e945c,{choices:_0x1ee9ef}=JSON[_0x4dabcb(0xd6)](_0x38306e);if(_0x1ee9ef[0x0]?.[_0x4dabcb(0xa4)]?.[_0x4dabcb(0xc2)])return _0x1ee9ef[0x0][_0x4dabcb(0xa4)][_0x4dabcb(0xc2)];})[_0x4e945c(0xe5)](_0x432922=>_0x432922)[_0x4e945c(0xd5)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x415b(){const _0xffd69f=['Generate\x20from\x20selection','improveWriting','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','legal','locale','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Arabic','friendly','changeStyle','6REibRL','Translate\x20the\x20content\x20to\x20German\x20language.','Simplified\x20Chinese','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','forEach','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20English\x20language.','translate','translatePortuguese','makeShorter','Change\x20style','groupId','Edit\x20or\x20review','AIAssistant','Journalism','6361230Ujutae','Simplify\x20language','commands','Professional','Legal','includes','push','ai.aiAssistant.removeCommands','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','define','set','2362653JmoYaB','ai.aiAssistant.commands','casual','makeLonger','translateArabic','10mYNHRb','get','Casual','ai.aiAssistant.preserveComments','Friendly','poetic','Confident','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Hindi','summarize','config','1jJkZxZ','editOrReview','Portuguese','find','158946NERAth','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Change\x20tone','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','changeTone','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','business','Improve\x20writing','Translate\x20the\x20content\x20to\x20French\x20language.','Make\x20longer','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Summarize','5126805lMbfsd','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','journalism','Translate\x20the\x20content\x20to\x20Arabic\x20language.','isPremiumPlugin','2976239gvscxI','confident','Business','translateSpanish','professional','Direct','pluginName','translateFrench','English','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','German','continue','1040972PjyRPJ','6849880sjgHaP','translateChinese','French','direct','translateGerman','requires','generate','translateHindi','simplifyLanguage','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateEnglish','isOfficialPlugin','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate','Poetic','Make\x20shorter','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Continue','concat','Spanish'];_0x415b=function(){return _0xffd69f;};return _0x415b();}const _0x14ac53=_0x53ad;(function(_0x331606,_0x423d28){const _0x1b25e2=_0x53ad,_0x3adc4d=_0x331606();while(!![]){try{const _0x183860=parseInt(_0x1b25e2(0x1cc))/0x1*(-parseInt(_0x1b25e2(0x1d0))/0x2)+parseInt(_0x1b25e2(0x210))/0x3*(parseInt(_0x1b25e2(0x1f1))/0x4)+parseInt(_0x1b25e2(0x1e0))/0x5+-parseInt(_0x1b25e2(0x220))/0x6+-parseInt(_0x1b25e2(0x1e5))/0x7+parseInt(_0x1b25e2(0x1f2))/0x8+parseInt(_0x1b25e2(0x1bc))/0x9*(-parseInt(_0x1b25e2(0x1c1))/0xa);if(_0x183860===_0x423d28)break;else _0x3adc4d['push'](_0x3adc4d['shift']());}catch(_0x305d74){_0x3adc4d['push'](_0x3adc4d['shift']());}}}(_0x415b,0x8c4f6));import{Plugin as _0x1933e8}from'ckeditor5/src/core.js';import _0x11fbd2 from'./aiassistantui.js';import _0x1a1824 from'./aiassistantediting.js';function _0x53ad(_0x47e35d,_0x3d036a){const _0x415be7=_0x415b();return _0x53ad=function(_0x53ad67,_0x5eafeb){_0x53ad67=_0x53ad67-0x1b2;let _0x21aea8=_0x415be7[_0x53ad67];return _0x21aea8;},_0x53ad(_0x47e35d,_0x3d036a);}import{getTranslation as _0x4a1f0e}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x49c311}from'./utils/normalizecommandsconfig.js';export default class r extends _0x1933e8{static get[_0x14ac53(0x1f7)](){return[_0x11fbd2,_0x1a1824];}static get[_0x14ac53(0x1eb)](){const _0x230cc8=_0x14ac53;return _0x230cc8(0x21e);}static get[_0x14ac53(0x1fd)](){return!0x0;}static get[_0x14ac53(0x1e4)](){return!0x0;}constructor(_0x2a1f65){const _0x3ae5ff=_0x14ac53;super(_0x2a1f65);const _0x3707b0=_0x2a1f65[_0x3ae5ff(0x1cb)],_0x3864ad=_0x2a1f65[_0x3ae5ff(0x20b)];_0x3707b0[_0x3ae5ff(0x1ba)](_0x3ae5ff(0x1c4),!0x0),_0x3707b0[_0x3ae5ff(0x1ba)](_0x3ae5ff(0x1bd),getDefaultCommands(_0x3864ad)),_0x3707b0[_0x3ae5ff(0x1ba)](_0x3ae5ff(0x1d6),[]),_0x3707b0[_0x3ae5ff(0x1ba)](_0x3ae5ff(0x1b8),[]);let _0x185df2=_0x49c311(_0x3707b0[_0x3ae5ff(0x1c2)](_0x3ae5ff(0x1bd)),_0x3864ad);const _0xf435ff=_0x3707b0[_0x3ae5ff(0x1c2)](_0x3ae5ff(0x1d6)),_0x4e4994=_0x3707b0[_0x3ae5ff(0x1c2)](_0x3ae5ff(0x1b8));_0xf435ff[_0x3ae5ff(0x215)](_0x3bd313=>{const _0x1dac3b=_0x3ae5ff,_0x471357=_0x185df2[_0x1dac3b(0x1cf)](_0x5cba93=>_0x5cba93[_0x1dac3b(0x21c)]===_0x3bd313[_0x1dac3b(0x21c)]);_0x471357?_0x471357[_0x1dac3b(0x1b3)]=_0x471357[_0x1dac3b(0x1b3)][_0x1dac3b(0x205)](_0x3bd313[_0x1dac3b(0x1b3)]):_0x185df2[_0x1dac3b(0x1b7)](_0x3bd313);}),_0x185df2=_0x185df2[_0x3ae5ff(0x213)](_0x22b6e4=>!_0x4e4994[_0x3ae5ff(0x1b6)](_0x22b6e4[_0x3ae5ff(0x21c)])),_0x185df2[_0x3ae5ff(0x215)](_0x5259ab=>{const _0x524e9d=_0x3ae5ff;_0x5259ab[_0x524e9d(0x1b3)]=_0x5259ab[_0x524e9d(0x1b3)][_0x524e9d(0x213)](_0x35cc37=>!_0x4e4994[_0x524e9d(0x1b6)](_0x35cc37['id']));}),_0x3707b0[_0x3ae5ff(0x1bb)](_0x3ae5ff(0x1bd),_0x185df2);}}export function getDefaultCommands(_0x35926b){const _0x51b7f8=_0x14ac53;return[{'groupId':_0x51b7f8(0x1cd),'groupLabel':_0x4a1f0e(_0x35926b,_0x51b7f8(0x21d)),'commands':[{'id':_0x51b7f8(0x208),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1d9)),'prompt':_0x51b7f8(0x1c8)},{'id':_0x51b7f8(0x21a),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x201)),'prompt':_0x51b7f8(0x216)},{'id':_0x51b7f8(0x1bf),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1db)),'prompt':_0x51b7f8(0x1dd)},{'id':_0x51b7f8(0x1fa),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1b2)),'prompt':_0x51b7f8(0x1de)}]},{'groupId':_0x51b7f8(0x1f8),'groupLabel':_0x4a1f0e(_0x35926b,_0x51b7f8(0x207)),'commands':[{'id':_0x51b7f8(0x1ca),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1df)),'prompt':_0x51b7f8(0x1fb)},{'id':_0x51b7f8(0x1f0),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x204)),'prompt':_0x51b7f8(0x203)}]},{'groupId':_0x51b7f8(0x1d4),'groupLabel':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1d2)),'commands':[{'id':_0x51b7f8(0x1e9),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1b4)),'prompt':_0x51b7f8(0x1fe)},{'id':_0x51b7f8(0x1be),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1c3)),'prompt':_0x51b7f8(0x214)},{'id':_0x51b7f8(0x1f5),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1ea)),'prompt':_0x51b7f8(0x1e1)},{'id':_0x51b7f8(0x1e6),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1c7)),'prompt':_0x51b7f8(0x209)},{'id':_0x51b7f8(0x20e),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1c5)),'prompt':_0x51b7f8(0x1d1)}]},{'groupId':_0x51b7f8(0x20f),'groupLabel':_0x4a1f0e(_0x35926b,_0x51b7f8(0x21b)),'commands':[{'id':_0x51b7f8(0x1d8),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1e7)),'prompt':_0x51b7f8(0x1d5)},{'id':_0x51b7f8(0x20a),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1b5)),'prompt':_0x51b7f8(0x1d3)},{'id':_0x51b7f8(0x1e2),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x21f)),'prompt':_0x51b7f8(0x1b9)},{'id':_0x51b7f8(0x1c6),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x200)),'prompt':_0x51b7f8(0x202)}]},{'groupId':_0x51b7f8(0x218),'groupLabel':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1ff)),'commands':[{'id':_0x51b7f8(0x1fc),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1ed)),'prompt':_0x51b7f8(0x217)},{'id':_0x51b7f8(0x1e8),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x206)),'prompt':_0x51b7f8(0x1dc)},{'id':_0x51b7f8(0x219),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1ce)),'prompt':_0x51b7f8(0x1ee)},{'id':_0x51b7f8(0x1f6),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1ef)),'prompt':_0x51b7f8(0x211)},{'id':_0x51b7f8(0x1ec),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1f4)),'prompt':_0x51b7f8(0x1da)},{'id':_0x51b7f8(0x1f3),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x212)),'prompt':_0x51b7f8(0x1d7)},{'id':_0x51b7f8(0x1f9),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x1c9)),'prompt':_0x51b7f8(0x20c)},{'id':_0x51b7f8(0x1c0),'label':_0x4a1f0e(_0x35926b,_0x51b7f8(0x20d)),'prompt':_0x51b7f8(0x1e3)}]}];}
|