@ckeditor/ckeditor5-ai 0.0.0-nightly-20240409.0 → 0.0.0-nightly-20240411.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.
@@ -1 +1 @@
1
- !function(e){const i=e["es-co"]=e["es-co"]||{};i.dictionary=Object.assign(i.dictionary||{},{"AI Assistant":"","AI Commands":"","AI is writing...":"",AI_ERROR_CONTEXT_LENGTH:"",AI_ERROR_FAILED:"",AI_ERROR_GET_HEADERS:"",AI_ERROR_GET_PARAMETERS:"",AI_ERROR_MODERATION:"",AI_ERROR_UNSUPPORTED_MODEL:"",AI_INSERT_CONTENT:"",AI_REPLACE_CONTENT:"",Arabic:"","Ask AI and your prompts will be listed here for you to use later.":"","Ask AI to edit or generate":"","Ask AI to improve generated text":"",Business:"",Casual:"","Change style":"","Change tone":"",Confident:"",Continue:"",Copy:"",Direct:"","Edit or review":"","Empty history":"",English:"",French:"",Friendly:"","Generate from selection":"",German:"",Hindi:"",History:"","Improve writing":"","Insert below":"",Journalism:"",Legal:"","Make longer":"","Make shorter":"","No commands available":"","No commands found":"",Poetic:"",Portuguese:"",Professional:"","Prompt history":"","Search AI command":"","Simplified Chinese":"","Simplify language":"",Spanish:"",Stop:"",Submit:"Enviar",Summarize:"",Translate:"","Translate to %0":"","Try again":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const a=e["es-co"]=e["es-co"]||{};a.dictionary=Object.assign(a.dictionary||{},{"AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","AI is writing...":"IA está escribiendo...",AI_ERROR_CONTEXT_LENGTH:"El contenido seleccionado es demasiado largo.",AI_ERROR_FAILED:"No se puede comunicar con el servicio de IA",AI_ERROR_GET_HEADERS:"Error al preparar los encabezados de la petición",AI_ERROR_GET_PARAMETERS:"Error al preparar los parámetros de la petición",AI_ERROR_MODERATION:"La consulta solicitada no cumple las reglas de moderación",AI_ERROR_UNSUPPORTED_MODEL:'El modelo de IA solicitado ("%0") no es compatible',AI_INSERT_CONTENT:"Insertar",AI_REPLACE_CONTENT:"Reemplazar",Arabic:"Árabe","Ask AI and your prompts will be listed here for you to use later.":"Pregúntale a IA y tus prompts se listarán aquí para que puedas usarlas posteriormente.","Ask AI to edit or generate":"Pídale a IA que edite o genere","Ask AI to improve generated text":"Pídale a IA que mejore el texto generado",Business:"Negocios",Casual:"Casual","Change style":"Cambiar estilo","Change tone":"Cambiar tono",Confident:"En confianza",Continue:"Continuar",Copy:"Copiar",Direct:"Directo","Edit or review":"Editar o revisar","Empty history":"Historial vacío",English:"Inglés",French:"Francés",Friendly:"Amigable","Generate from selection":"Generar de la selección",German:"Alemán",Hindi:"Hindi",History:"Historial","Improve writing":"Mejorar escritura","Insert below":"Insertar abajo",Journalism:"Periodístico",Legal:"Legal","Make longer":"Extender","Make shorter":"Acortar","No commands available":"No hay comandos disponibles","No commands found":"No se encontraron comandos",Poetic:"Poético",Portuguese:"Portugués",Professional:"Profesional","Prompt history":"Historial de prompts","Search AI command":"Comando para buscar por IA","Simplified Chinese":"Chino simplificado","Simplify language":"Simplificar lenguaje",Spanish:"Español",Stop:"Detener",Submit:"Enviar",Summarize:"Resumir",Translate:"Traducir","Translate to %0":"Traducir al %0","Try again":"Intente nuevamente"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -19,139 +19,139 @@ msgstr ""
19
19
 
20
20
  msgctxt "AI command group label for editing and reviewing."
21
21
  msgid "Edit or review"
22
- msgstr ""
22
+ msgstr "Editar o revisar"
23
23
 
24
24
  msgctxt "Label for the AI command to improve the writing of content."
25
25
  msgid "Improve writing"
26
- msgstr ""
26
+ msgstr "Mejorar escritura"
27
27
 
28
28
  msgctxt "Label for the AI command to make the content shorter."
29
29
  msgid "Make shorter"
30
- msgstr ""
30
+ msgstr "Acortar"
31
31
 
32
32
  msgctxt "Label for the AI command to make the content longer."
33
33
  msgid "Make longer"
34
- msgstr ""
34
+ msgstr "Extender"
35
35
 
36
36
  msgctxt "Label for the AI command to simplify the language of content."
37
37
  msgid "Simplify language"
38
- msgstr ""
38
+ msgstr "Simplificar lenguaje"
39
39
 
40
40
  msgctxt "AI command group label for generating content from selection."
41
41
  msgid "Generate from selection"
42
- msgstr ""
42
+ msgstr "Generar de la selección"
43
43
 
44
44
  msgctxt "Label for the AI command to provide a summary of content."
45
45
  msgid "Summarize"
46
- msgstr ""
46
+ msgstr "Resumir"
47
47
 
48
48
  msgctxt "Label for the AI command to continue the content."
49
49
  msgid "Continue"
50
- msgstr ""
50
+ msgstr "Continuar"
51
51
 
52
52
  msgctxt "AI command group label for changing the tone of content."
53
53
  msgid "Change tone"
54
- msgstr ""
54
+ msgstr "Cambiar tono"
55
55
 
56
56
  msgctxt "Label for the AI command to rewrite content in a professional tone."
57
57
  msgid "Professional"
58
- msgstr ""
58
+ msgstr "Profesional"
59
59
 
60
60
  msgctxt "Label for the AI command to rewrite content in a casual tone."
61
61
  msgid "Casual"
62
- msgstr ""
62
+ msgstr "Casual"
63
63
 
64
64
  msgctxt "Label for the AI command to rewrite content in a direct manner."
65
65
  msgid "Direct"
66
- msgstr ""
66
+ msgstr "Directo"
67
67
 
68
68
  msgctxt "Label for the AI command to rewrite content in a confident tone."
69
69
  msgid "Confident"
70
- msgstr ""
70
+ msgstr "En confianza"
71
71
 
72
72
  msgctxt "Label for the AI command to rewrite content in a friendly tone."
73
73
  msgid "Friendly"
74
- msgstr ""
74
+ msgstr "Amigable"
75
75
 
76
76
  msgctxt "AI command group label for changing the style of content."
77
77
  msgid "Change style"
78
- msgstr ""
78
+ msgstr "Cambiar estilo"
79
79
 
80
80
  msgctxt "Label for the AI command to rewrite content in a business style."
81
81
  msgid "Business"
82
- msgstr ""
82
+ msgstr "Negocios"
83
83
 
84
84
  msgctxt "Label for the AI command to rewrite content in a legal style."
85
85
  msgid "Legal"
86
- msgstr ""
86
+ msgstr "Legal"
87
87
 
88
88
  msgctxt "Label for the AI command to rewrite content in a journalistic style."
89
89
  msgid "Journalism"
90
- msgstr ""
90
+ msgstr "Periodístico"
91
91
 
92
92
  msgctxt "Label for the AI command to rewrite content poetically."
93
93
  msgid "Poetic"
94
- msgstr ""
94
+ msgstr "Poético"
95
95
 
96
96
  msgctxt "AI command group label for translating the content."
97
97
  msgid "Translate"
98
- msgstr ""
98
+ msgstr "Traducir"
99
99
 
100
100
  msgctxt "Label for the AI command. Example: (Translate to) English"
101
101
  msgid "Translate to %0"
102
- msgstr ""
102
+ msgstr "Traducir al %0"
103
103
 
104
104
  msgctxt "Translate to (English)"
105
105
  msgid "English"
106
- msgstr ""
106
+ msgstr "Inglés"
107
107
 
108
108
  msgctxt "Translate to (Spanish)"
109
109
  msgid "Spanish"
110
- msgstr ""
110
+ msgstr "Español"
111
111
 
112
112
  msgctxt "Translate to (German)"
113
113
  msgid "German"
114
- msgstr ""
114
+ msgstr "Alemán"
115
115
 
116
116
  msgctxt "Translate to (Portuguese)"
117
117
  msgid "Portuguese"
118
- msgstr ""
118
+ msgstr "Portugués"
119
119
 
120
120
  msgctxt "Translate to (French)"
121
121
  msgid "French"
122
- msgstr ""
122
+ msgstr "Francés"
123
123
 
124
124
  msgctxt "Translate to (Simplified Chinese)"
125
125
  msgid "Simplified Chinese"
126
- msgstr ""
126
+ msgstr "Chino simplificado"
127
127
 
128
128
  msgctxt "Translate to (Hindi)"
129
129
  msgid "Hindi"
130
- msgstr ""
130
+ msgstr "Hindi"
131
131
 
132
132
  msgctxt "Translate to (Arabic)"
133
133
  msgid "Arabic"
134
- msgstr ""
134
+ msgstr "Árabe"
135
135
 
136
136
  msgctxt "The heading element name displayed in the AI dialog and the button tooltip that opens the dialog."
137
137
  msgid "AI Assistant"
138
- msgstr ""
138
+ msgstr "Asistente de IA"
139
139
 
140
140
  msgctxt "The toolbar button tooltip for the dropdown with predefined AI commands."
141
141
  msgid "AI Commands"
142
- msgstr ""
142
+ msgstr "Comandos de IA"
143
143
 
144
144
  msgctxt "The placeholder for the prompt input to obtain new content."
145
145
  msgid "Ask AI to edit or generate"
146
- msgstr ""
146
+ msgstr "Pídale a IA que edite o genere"
147
147
 
148
148
  msgctxt "The placeholder for the prompt input to improve the generated content."
149
149
  msgid "Ask AI to improve generated text"
150
- msgstr ""
150
+ msgstr "Pídale a IA que mejore el texto generado"
151
151
 
152
152
  msgctxt "The label for the button that copies the text from the textarea."
153
153
  msgid "Copy"
154
- msgstr ""
154
+ msgstr "Copiar"
155
155
 
156
156
  msgctxt "The label for the button that submits the entered AI prompt."
157
157
  msgid "Submit"
@@ -159,76 +159,76 @@ msgstr "Enviar"
159
159
 
160
160
  msgctxt "The label for the button that inserts the generated AI response below the current selection."
161
161
  msgid "Insert below"
162
- msgstr ""
162
+ msgstr "Insertar abajo"
163
163
 
164
164
  msgctxt "The label for the button that repeats the request to AI."
165
165
  msgid "Try again"
166
- msgstr ""
166
+ msgstr "Intente nuevamente"
167
167
 
168
168
  msgctxt "The label for the button that stops the generating of the content by AI."
169
169
  msgid "Stop"
170
- msgstr ""
170
+ msgstr "Detener"
171
171
 
172
172
  msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
- msgstr ""
174
+ msgstr "IA está escribiendo..."
175
175
 
176
176
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
177
  msgid "History"
178
- msgstr ""
178
+ msgstr "Historial"
179
179
 
180
180
  msgctxt "The primary information text displayed when the prompt history is empty."
181
181
  msgid "Empty history"
182
- msgstr ""
182
+ msgstr "Historial vacío"
183
183
 
184
184
  msgctxt "The secondary information text displayed when the prompt history is empty."
185
185
  msgid "Ask AI and your prompts will be listed here for you to use later."
186
- msgstr ""
186
+ msgstr "Pregúntale a IA y tus prompts se listarán aquí para que puedas usarlas posteriormente."
187
187
 
188
188
  msgctxt "The label of the list group that hosts historical user prompts in the AI dialog."
189
189
  msgid "Prompt history"
190
- msgstr ""
190
+ msgstr "Historial de prompts"
191
191
 
192
192
  msgctxt "The placeholder for the search input to filter the AI commands."
193
193
  msgid "Search AI command"
194
- msgstr ""
194
+ msgstr "Comando para buscar por IA"
195
195
 
196
196
  msgctxt "The message displayed when the commands search input does not match any AI commands."
197
197
  msgid "No commands found"
198
- msgstr ""
198
+ msgstr "No se encontraron comandos"
199
199
 
200
200
  msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
201
201
  msgid "No commands available"
202
- msgstr ""
202
+ msgstr "No hay comandos disponibles"
203
203
 
204
204
  msgctxt "The label for the button that replaces the selected content by the generated AI response."
205
205
  msgid "AI_REPLACE_CONTENT"
206
- msgstr ""
206
+ msgstr "Reemplazar"
207
207
 
208
208
  msgctxt "The label for the button that inserts the generated AI response."
209
209
  msgid "AI_INSERT_CONTENT"
210
- msgstr ""
210
+ msgstr "Insertar"
211
211
 
212
212
  msgctxt "Error message displayed when preparing request headers fails."
213
213
  msgid "AI_ERROR_GET_HEADERS"
214
- msgstr ""
214
+ msgstr "Error al preparar los encabezados de la petición"
215
215
 
216
216
  msgctxt "Error message displayed when preparing request parameters fails."
217
217
  msgid "AI_ERROR_GET_PARAMETERS"
218
- msgstr ""
218
+ msgstr "Error al preparar los parámetros de la petición"
219
219
 
220
220
  msgctxt "Error message displayed when the requested AI model is not supported."
221
221
  msgid "AI_ERROR_UNSUPPORTED_MODEL"
222
- msgstr ""
222
+ msgstr "El modelo de IA solicitado (\"%0\") no es compatible"
223
223
 
224
224
  msgctxt "Error message displayed when the content selected for AI processing is too long"
225
225
  msgid "AI_ERROR_CONTEXT_LENGTH"
226
- msgstr ""
226
+ msgstr "El contenido seleccionado es demasiado largo."
227
227
 
228
228
  msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
229
229
  msgid "AI_ERROR_MODERATION"
230
- msgstr ""
230
+ msgstr "La consulta solicitada no cumple las reglas de moderación"
231
231
 
232
232
  msgctxt "Generic error message displayed when the request failed for unspecified reason."
233
233
  msgid "AI_ERROR_FAILED"
234
- msgstr ""
234
+ msgstr "No se puede comunicar con el servicio de IA"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "0.0.0-nightly-20240409.0",
3
+ "version": "0.0.0-nightly-20240411.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,10 +23,10 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "0.0.0-nightly-20240409.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240409.0",
26
+ "ckeditor5": "0.0.0-nightly-20240411.0",
27
+ "ckeditor5-collaboration": "0.0.0-nightly-20240411.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240409.0",
29
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240411.0",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x218c27=_0x5cb1;function _0x5cb1(_0xcb2a7b,_0x34d066){var _0x354b05=_0x354b();return _0x5cb1=function(_0x5cb1e2,_0x48762f){_0x5cb1e2=_0x5cb1e2-0x1ad;var _0x2fc193=_0x354b05[_0x5cb1e2];return _0x2fc193;},_0x5cb1(_0xcb2a7b,_0x34d066);}(function(_0x758321,_0xaa4dfb){var _0x3e8c99=_0x5cb1,_0x224f6c=_0x758321();while(!![]){try{var _0x227c39=-parseInt(_0x3e8c99(0x1b1))/0x1*(parseInt(_0x3e8c99(0x1af))/0x2)+parseInt(_0x3e8c99(0x1c0))/0x3*(-parseInt(_0x3e8c99(0x1bf))/0x4)+-parseInt(_0x3e8c99(0x1bd))/0x5*(-parseInt(_0x3e8c99(0x1b9))/0x6)+parseInt(_0x3e8c99(0x1ae))/0x7+-parseInt(_0x3e8c99(0x1ba))/0x8*(-parseInt(_0x3e8c99(0x1b7))/0x9)+parseInt(_0x3e8c99(0x1ad))/0xa*(parseInt(_0x3e8c99(0x1b6))/0xb)+-parseInt(_0x3e8c99(0x1bc))/0xc*(-parseInt(_0x3e8c99(0x1b2))/0xd);if(_0x227c39===_0xaa4dfb)break;else _0x224f6c['push'](_0x224f6c['shift']());}catch(_0x3da825){_0x224f6c['push'](_0x224f6c['shift']());}}}(_0x354b,0x8007f));import{Plugin as _0x2eb6a4}from'ckeditor5/src/core.js';import{CKEditorError as _0x323f38}from'ckeditor5/src/utils.js';export default class v extends _0x2eb6a4{static get[_0x218c27(0x1b4)](){var _0x58f46c=_0x218c27;return _0x58f46c(0x1b5);}[_0x218c27(0x1be)](){var _0x531152=_0x218c27;if(!this[_0x531152(0x1b8)])throw new _0x323f38(_0x531152(0x1b3),null);}}function _0x354b(){var _0x406b7d=['6610981JDJMrl','aiadapter-text-adapter-not-set','pluginName','AIAdapter','8110619qSFZWM','162NDNVob','textAdapter','4044gpGCep','193304XKfqSQ','name','12dGMFuR','705SRcDDi','afterInit','3326396mcFzZM','3kQwZAR','10lcBzqW','1980531yzaWgA','24658ahzWHq','AIRequestError','57TGAjAv'];_0x354b=function(){return _0x406b7d;};return _0x354b();}export class AIRequestError extends Error{constructor(_0x582172){var _0x5a04e1=_0x218c27;super(_0x582172),this[_0x5a04e1(0x1bb)]=_0x5a04e1(0x1b0);}}
23
+ function _0xbc6c(_0x256c94,_0x349841){var _0x472f7f=_0x472f();return _0xbc6c=function(_0xbc6cd1,_0x585b12){_0xbc6cd1=_0xbc6cd1-0x135;var _0x3ee20b=_0x472f7f[_0xbc6cd1];return _0x3ee20b;},_0xbc6c(_0x256c94,_0x349841);}var _0x51400a=_0xbc6c;function _0x472f(){var _0xee590e=['afterInit','pluginName','1241694sYTAwy','2364pYZkcZ','AIAdapter','131065wIPkhe','name','AIRequestError','447TEjYvv','5715450KVPWlX','1563858KjVrhe','textAdapter','3112620fTNKUi','351992XTKXzH','24ADlZOF','aiadapter-text-adapter-not-set','42fybZUg'];_0x472f=function(){return _0xee590e;};return _0x472f();}(function(_0x1b6366,_0x4d8692){var _0x41fe26=_0xbc6c,_0x3252fc=_0x1b6366();while(!![]){try{var _0x30edee=parseInt(_0x41fe26(0x141))/0x1*(-parseInt(_0x41fe26(0x13c))/0x2)+parseInt(_0x41fe26(0x13b))/0x3+parseInt(_0x41fe26(0x135))/0x4+-parseInt(_0x41fe26(0x13e))/0x5*(parseInt(_0x41fe26(0x138))/0x6)+parseInt(_0x41fe26(0x145))/0x7+-parseInt(_0x41fe26(0x136))/0x8*(parseInt(_0x41fe26(0x143))/0x9)+parseInt(_0x41fe26(0x142))/0xa;if(_0x30edee===_0x4d8692)break;else _0x3252fc['push'](_0x3252fc['shift']());}catch(_0x120f0a){_0x3252fc['push'](_0x3252fc['shift']());}}}(_0x472f,0x4592a));import{Plugin as _0x28f143}from'ckeditor5/src/core.js';import{CKEditorError as _0x2061b4}from'ckeditor5/src/utils.js';export default class v extends _0x28f143{static get[_0x51400a(0x13a)](){var _0x4dd953=_0x51400a;return _0x4dd953(0x13d);}[_0x51400a(0x139)](){var _0x3c3199=_0x51400a;if(!this[_0x3c3199(0x144)])throw new _0x2061b4(_0x3c3199(0x137),null);}}export class AIRequestError extends Error{constructor(_0x9d903b){var _0x34ed5d=_0x51400a;super(_0x9d903b),this[_0x34ed5d(0x13f)]=_0x34ed5d(0x140);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a9ab0=_0x1982;function _0x4ef2(){const _0x23da6d=['161bYWsez','textAdapter','name','error','2483176lFdipY','aborted','abort','4967490GzyyAQ','3511848iulZic','abortController','4StmSGB','makeRequest','catch','209816TAXAXS','requires','locale','resolve','signal','AI_ERROR_GET_HEADERS','_prepareRequestHeaders','6193845bROQVl','application/json','3ktGQGb','object','editor','_prepareRequestParameters','assign','reject','AbortError','AI_ERROR_GET_PARAMETERS','get','222088csVjGe','sendRequest','9837675GfYPtm','init','aitextadapter-send-request-failed','plugins'];_0x4ef2=function(){return _0x23da6d;};return _0x4ef2();}(function(_0x27c345,_0x254f4d){const _0x5541c3=_0x1982,_0x5c8cfd=_0x27c345();while(!![]){try{const _0x1008f5=-parseInt(_0x5541c3(0x90))/0x1*(parseInt(_0x5541c3(0x8d))/0x2)+-parseInt(_0x5541c3(0x99))/0x3*(parseInt(_0x5541c3(0x87))/0x4)+parseInt(_0x5541c3(0x97))/0x5+parseInt(_0x5541c3(0x8b))/0x6+parseInt(_0x5541c3(0x83))/0x7*(-parseInt(_0x5541c3(0x7d))/0x8)+parseInt(_0x5541c3(0x7f))/0x9+-parseInt(_0x5541c3(0x8a))/0xa;if(_0x1008f5===_0x254f4d)break;else _0x5c8cfd['push'](_0x5c8cfd['shift']());}catch(_0x47ceb3){_0x5c8cfd['push'](_0x5c8cfd['shift']());}}}(_0x4ef2,0xb5062));import{Plugin as _0x48d534}from'ckeditor5/src/core.js';function _0x1982(_0xc66ca8,_0x4639a8){const _0x4ef211=_0x4ef2();return _0x1982=function(_0x198269,_0x386108){_0x198269=_0x198269-0x7d;let _0x30d705=_0x4ef211[_0x198269];return _0x30d705;},_0x1982(_0xc66ca8,_0x4639a8);}import{CKEditorError as _0x352d36}from'ckeditor5/src/utils.js';import{default as _0xeb9c64,AIRequestError as _0x1d0f86}from'./aiadapter.js';import{getTranslation as _0x1c8c87}from'../utils/common-translations.js';export default class P extends _0x48d534{static get[_0x1a9ab0(0x91)](){return[_0xeb9c64];}constructor(_0x118ec5){const _0x23cd04=_0x1a9ab0;super(_0x118ec5),this[_0x23cd04(0x8c)]=new AbortController();}[_0x1a9ab0(0x80)](){const _0xac7da4=_0x1a9ab0;this[_0xac7da4(0x9b)][_0xac7da4(0x82)][_0xac7da4(0xa1)](_0xeb9c64)[_0xac7da4(0x84)]=this;}[_0x1a9ab0(0x89)](){const _0x956e49=_0x1a9ab0;this[_0x956e49(0x8c)][_0x956e49(0x94)][_0x956e49(0x88)]||(this[_0x956e49(0x8c)][_0x956e49(0x89)](),this[_0x956e49(0x8c)]=new AbortController());}async[_0x1a9ab0(0x8e)](_0x209370){const _0x5d2643=_0x1a9ab0;return this[_0x5d2643(0x7e)](_0x209370)[_0x5d2643(0x8f)](_0x15a0e4=>{const _0x2511ff=_0x5d2643;if(_0x15a0e4 instanceof _0x1d0f86)return Promise[_0x2511ff(0x9e)](_0x15a0e4);if(_0x2511ff(0x9f)==_0x15a0e4[_0x2511ff(0x85)])return Promise[_0x2511ff(0x93)]();throw console[_0x2511ff(0x86)](_0x15a0e4),new _0x352d36(_0x2511ff(0x81),null);});}async[_0x1a9ab0(0x96)](_0x1e2fab,_0x209b4a){const _0x2827e4=_0x1a9ab0,_0x2af52e=this[_0x2827e4(0x9b)][_0x2827e4(0x92)],_0x5ee8cd={'Content-Type':_0x2827e4(0x98)};if(_0x2827e4(0x9a)==typeof _0x1e2fab)Object[_0x2827e4(0x9d)](_0x5ee8cd,_0x1e2fab);else{if(_0x1e2fab)try{const _0x5cc70d=await _0x1e2fab(_0x209b4a);Object[_0x2827e4(0x9d)](_0x5ee8cd,_0x5cc70d);}catch(_0x4564d7){return Promise[_0x2827e4(0x9e)](new _0x1d0f86(_0x1c8c87(_0x2af52e,_0x2827e4(0x95))));}}return _0x5ee8cd;}async[_0x1a9ab0(0x9c)](_0x56dfc3,_0x4620a0){const _0x29977c=_0x1a9ab0,_0x2ceb62=this[_0x29977c(0x9b)][_0x29977c(0x92)];if(_0x29977c(0x9a)==typeof _0x56dfc3)return _0x56dfc3;try{return await _0x56dfc3(_0x4620a0);}catch(_0x48cdf4){return Promise[_0x29977c(0x9e)](new _0x1d0f86(_0x1c8c87(_0x2ceb62,_0x29977c(0xa0))));}}}
23
+ const _0x13e0e9=_0x5687;(function(_0x36e040,_0x6ea4f7){const _0x5457b7=_0x5687,_0x3f728d=_0x36e040();while(!![]){try{const _0x1d449e=parseInt(_0x5457b7(0x104))/0x1+parseInt(_0x5457b7(0xee))/0x2+parseInt(_0x5457b7(0x10a))/0x3*(-parseInt(_0x5457b7(0xf0))/0x4)+-parseInt(_0x5457b7(0xf8))/0x5+parseInt(_0x5457b7(0xf9))/0x6*(-parseInt(_0x5457b7(0x10b))/0x7)+-parseInt(_0x5457b7(0xf6))/0x8*(parseInt(_0x5457b7(0xf2))/0x9)+parseInt(_0x5457b7(0xff))/0xa;if(_0x1d449e===_0x6ea4f7)break;else _0x3f728d['push'](_0x3f728d['shift']());}catch(_0x17e074){_0x3f728d['push'](_0x3f728d['shift']());}}}(_0x273b,0x9478e));function _0x5687(_0x252f0c,_0x39ff48){const _0x273b90=_0x273b();return _0x5687=function(_0x568777,_0x3802ae){_0x568777=_0x568777-0xed;let _0x55c15d=_0x273b90[_0x568777];return _0x55c15d;},_0x5687(_0x252f0c,_0x39ff48);}import{Plugin as _0x4f1034}from'ckeditor5/src/core.js';import{CKEditorError as _0x402083}from'ckeditor5/src/utils.js';import{default as _0x5645b8,AIRequestError as _0x4a1832}from'./aiadapter.js';function _0x273b(){const _0x1a12a5=['object','name','textAdapter','application/json','463393iyrPPD','abort','error','makeRequest','aborted','signal','3kVYBDw','2105327BSNRzF','editor','assign','resolve','_prepareRequestHeaders','sendRequest','aitextadapter-send-request-failed','abortController','907232xvLyCs','plugins','860OqnUJE','reject','601767UaYlNm','get','requires','AI_ERROR_GET_PARAMETERS','16YhyzTt','locale','3565630RrBxgy','12MBLcdM','AbortError','init','AI_ERROR_GET_HEADERS','_prepareRequestParameters','catch','11397220LmOqFP'];_0x273b=function(){return _0x1a12a5;};return _0x273b();}import{getTranslation as _0x44b507}from'../utils/common-translations.js';export default class P extends _0x4f1034{static get[_0x13e0e9(0xf4)](){return[_0x5645b8];}constructor(_0x516d37){const _0x210311=_0x13e0e9;super(_0x516d37),this[_0x210311(0xed)]=new AbortController();}[_0x13e0e9(0xfb)](){const _0x2fba4d=_0x13e0e9;this[_0x2fba4d(0x10c)][_0x2fba4d(0xef)][_0x2fba4d(0xf3)](_0x5645b8)[_0x2fba4d(0x102)]=this;}[_0x13e0e9(0x105)](){const _0x39533c=_0x13e0e9;this[_0x39533c(0xed)][_0x39533c(0x109)][_0x39533c(0x108)]||(this[_0x39533c(0xed)][_0x39533c(0x105)](),this[_0x39533c(0xed)]=new AbortController());}async[_0x13e0e9(0x107)](_0x407c7c){const _0x20f326=_0x13e0e9;return this[_0x20f326(0x110)](_0x407c7c)[_0x20f326(0xfe)](_0x3f9693=>{const _0x3656bd=_0x20f326;if(_0x3f9693 instanceof _0x4a1832)return Promise[_0x3656bd(0xf1)](_0x3f9693);if(_0x3656bd(0xfa)==_0x3f9693[_0x3656bd(0x101)])return Promise[_0x3656bd(0x10e)]();throw console[_0x3656bd(0x106)](_0x3f9693),new _0x402083(_0x3656bd(0x111),null);});}async[_0x13e0e9(0x10f)](_0x28b33a,_0x43bc6d){const _0x3e6232=_0x13e0e9,_0x158a1a=this[_0x3e6232(0x10c)][_0x3e6232(0xf7)],_0x374c4c={'Content-Type':_0x3e6232(0x103)};if(_0x3e6232(0x100)==typeof _0x28b33a)Object[_0x3e6232(0x10d)](_0x374c4c,_0x28b33a);else{if(_0x28b33a)try{const _0x1ee4e8=await _0x28b33a(_0x43bc6d);Object[_0x3e6232(0x10d)](_0x374c4c,_0x1ee4e8);}catch(_0xddd54b){return Promise[_0x3e6232(0xf1)](new _0x4a1832(_0x44b507(_0x158a1a,_0x3e6232(0xfc))));}}return _0x374c4c;}async[_0x13e0e9(0xfd)](_0x8b0405,_0x516998){const _0x3efc27=_0x13e0e9,_0x5a7e53=this[_0x3efc27(0x10c)][_0x3efc27(0xf7)];if(_0x3efc27(0x100)==typeof _0x8b0405)return _0x8b0405;try{return await _0x8b0405(_0x516998);}catch(_0x13c3f7){return Promise[_0x3efc27(0xf1)](new _0x4a1832(_0x44b507(_0x5a7e53,_0x3efc27(0xf5))));}}}
@@ -135,6 +135,7 @@ export interface AWSTextAdapterConfig {
135
135
  requestHeaders?: RequestHeaders;
136
136
  /**
137
137
  * Additional configuration parameters for the AI service request. Use it to customize how the AI service generates responses.
138
+ * Note that the value you will set here will fully overwrite the default value.
138
139
  *
139
140
  * The exact configuration (available parameters) depends on the used model. Keep in mind that some properties are not supported by some
140
141
  * models.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1eba4b=_0x484d;(function(_0x1e6eee,_0x43d35c){const _0x49a8f7=_0x484d,_0x2a71bd=_0x1e6eee();while(!![]){try{const _0x2018e1=-parseInt(_0x49a8f7(0x179))/0x1+-parseInt(_0x49a8f7(0x19d))/0x2*(parseInt(_0x49a8f7(0x19e))/0x3)+parseInt(_0x49a8f7(0x19c))/0x4*(-parseInt(_0x49a8f7(0x16d))/0x5)+parseInt(_0x49a8f7(0x19a))/0x6*(parseInt(_0x49a8f7(0x16b))/0x7)+parseInt(_0x49a8f7(0x174))/0x8+parseInt(_0x49a8f7(0x185))/0x9+parseInt(_0x49a8f7(0x15e))/0xa*(parseInt(_0x49a8f7(0x186))/0xb);if(_0x2018e1===_0x43d35c)break;else _0x2a71bd['push'](_0x2a71bd['shift']());}catch(_0x130c9d){_0x2a71bd['push'](_0x2a71bd['shift']());}}}(_0x1f48,0x2a173));function _0x1f48(){const _0x5e332c=['getReader','Instruction:\x0a','_readStreamableResponse','abortController','AWSTextAdapter','resolve','locale','_requestParameters','2000916flxGBf','534369BCPSzM','application/json','signal','utf-8','preparePrompt','json','config','read','_prepareRequestParameters','completions','generations','completion','generation','\x0a\x0aAssistant:','ai.aws.bedrockClientConfig','send','editor','_readAsyncIterableResponse','toString','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','2616fmyXGr','pluginName','36QsFAPZ','4iLTtIn','432027fPaHiS','stringify','_processProxyRequest','ai.aws.requestHeaders','\x0a[/INST]','filter','Human:\x0a','text','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.','split','decode','chunk','ai.aws.requestParameters','get','<<SYS>>\x0a','sendRequest','cohere.command','_bedrockClientConfig','meta.llama','length','50wfPUUm','anthropic.claude-v2','anthropic.claude','bytes','data','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.aws.apiUrl','map','\x0a<</SYS>>\x0a[INST]\x0a','_getGeneratedText','getModelFamily','_requestHeaders','_processAWSRequest','2884qPiXot','join','185695CwQNYz','POST','body','_readStaticResponse','_prepareRequestHeaders','bedrock-2023-05-31','utf8','2180680jhvzpd','ai21.j2','from','define','_apiUrl','122764pTnyCF','test','AI_ERROR_UNSUPPORTED_MODEL','parse'];_0x1f48=function(){return _0x5e332c;};return _0x1f48();}import{default as _0x3e43e9}from'./aitextadapter.js';function _0x484d(_0x53adfd,_0x29d669){const _0x1f4815=_0x1f48();return _0x484d=function(_0x484d4f,_0x268e7d){_0x484d4f=_0x484d4f-0x152;let _0x3bb49e=_0x1f4815[_0x484d4f];return _0x3bb49e;},_0x484d(_0x53adfd,_0x29d669);}import{AIRequestError as _0x5818c1}from'./aiadapter.js';import{BedrockRuntimeClient as _0x519041,InvokeModelCommand as _0x4774e4,InvokeModelWithResponseStreamCommand as _0x175fe7}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5600d4}from'../utils/common-translations.js';export default class Y extends _0x3e43e9{static get[_0x1eba4b(0x19b)](){const _0x53ec5f=_0x1eba4b;return _0x53ec5f(0x181);}constructor(_0x4daae8){const _0x14f09d=_0x1eba4b;super(_0x4daae8),_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x157)](_0x14f09d(0x156))||_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x177)](_0x14f09d(0x156),{'model':_0x14f09d(0x15f),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x14f09d(0x172),'stream':!0x0}),this[_0x14f09d(0x178)]=_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x157)](_0x14f09d(0x164)),this[_0x14f09d(0x15b)]=_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x157)](_0x14f09d(0x194)),this[_0x14f09d(0x169)]=_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x157)](_0x14f09d(0x1a1)),this[_0x14f09d(0x184)]=_0x4daae8[_0x14f09d(0x18c)][_0x14f09d(0x157)](_0x14f09d(0x156));}async[_0x1eba4b(0x159)]({query:_0x47291b,context:_0x14f07f,onData:_0x5851b6,actionId:_0x4e785d}){const _0x163462=_0x1eba4b,{model:_0x18a59b,stream:_0x34ea9b,..._0x42b588}=await this[_0x163462(0x18e)](this[_0x163462(0x184)],_0x4e785d),_0x147df4={'prompt':await this[_0x163462(0x18a)](_0x47291b,_0x14f07f,_0x18a59b,_0x4e785d),..._0x42b588};this[_0x163462(0x178)]?await this[_0x163462(0x1a0)](_0x147df4,_0x18a59b,_0x34ea9b,_0x5851b6,_0x4e785d):await this[_0x163462(0x16a)](_0x147df4,_0x18a59b,_0x34ea9b,_0x5851b6);}async[_0x1eba4b(0x18a)](_0x1ef681,_0x435647,_0x5c0e3b,_0xe22b3b){const _0x1e7283=_0x1eba4b;let _0x1fede7,_0x2d43c3;return _0x435647?(_0x1fede7=_0x1e7283(0x152),_0x2d43c3=_0x1e7283(0x17e)+_0x1ef681+_0x1e7283(0x199)+_0x435647):(_0x1fede7=_0x1e7283(0x163),_0x2d43c3=_0x1ef681),_0x1e7283(0x15c)==this[_0x1e7283(0x168)](_0x5c0e3b)?_0x1e7283(0x158)+_0x1fede7+_0x1e7283(0x166)+_0x2d43c3+_0x1e7283(0x1a2):_0x1e7283(0x1a4)+_0x1fede7+'\x0a'+_0x2d43c3+_0x1e7283(0x193);}[_0x1eba4b(0x168)](_0x2c806d){const _0x5c9f33=_0x1eba4b;if(/^anthropic\.claude/[_0x5c9f33(0x17a)](_0x2c806d))return _0x5c9f33(0x160);if(/^ai21\.j2/[_0x5c9f33(0x17a)](_0x2c806d))return _0x5c9f33(0x175);if(/^cohere\.command/[_0x5c9f33(0x17a)](_0x2c806d))return _0x5c9f33(0x15a);if(/^meta\.llama/[_0x5c9f33(0x17a)](_0x2c806d))return _0x5c9f33(0x15c);throw new _0x5818c1(_0x5600d4(this[_0x5c9f33(0x196)][_0x5c9f33(0x183)],_0x5c9f33(0x17b),_0x2c806d));}async[_0x1eba4b(0x1a0)](_0x1aa5ae,_0x4b49c8,_0x365cb9,_0x3b2929,_0x490629){const _0x4d8ad3=_0x1eba4b,_0x1b0201={'method':_0x4d8ad3(0x16e),'headers':await this[_0x4d8ad3(0x171)](this[_0x4d8ad3(0x169)],_0x490629),'body':JSON[_0x4d8ad3(0x19f)]({..._0x1aa5ae,'model':_0x4b49c8,'stream':_0x365cb9}),'signal':this[_0x4d8ad3(0x180)][_0x4d8ad3(0x188)]},_0x353997=await fetch(this[_0x4d8ad3(0x178)],_0x1b0201);_0x365cb9?await this[_0x4d8ad3(0x17f)](_0x353997,_0x4b49c8,_0x3b2929):await this[_0x4d8ad3(0x170)](_0x353997,_0x4b49c8,_0x3b2929);}async[_0x1eba4b(0x16a)](_0x272963,_0x30f709,_0xbd2996,_0x3ffd8c){const _0x207fad=_0x1eba4b,_0x26cb9c=new _0x519041(this[_0x207fad(0x15b)]),_0xe3170d={'body':JSON[_0x207fad(0x19f)](_0x272963),'contentType':_0x207fad(0x187),'accept':_0x207fad(0x187),'modelId':_0x30f709};let _0x5ac758;if(_0xbd2996){const _0x27e0bc=new _0x175fe7(_0xe3170d);_0x5ac758=await _0x26cb9c[_0x207fad(0x195)](_0x27e0bc,{'abortSignal':this[_0x207fad(0x180)][_0x207fad(0x188)]}),await this[_0x207fad(0x197)](_0x5ac758,_0x30f709,_0x3ffd8c);}else{const _0xbdea21=new _0x4774e4(_0xe3170d);_0x5ac758=await _0x26cb9c[_0x207fad(0x195)](_0xbdea21,{'abortSignal':this[_0x207fad(0x180)][_0x207fad(0x188)]}),await this[_0x207fad(0x170)](_0x5ac758,_0x30f709,_0x3ffd8c);}}async[_0x1eba4b(0x197)](_0x4e97e4,_0x3d2d96,_0x7bfd07){const _0xfc1600=_0x1eba4b,_0x438e3f=_0x4e97e4[_0xfc1600(0x16f)],_0x5f5c28=new TextDecoder(_0xfc1600(0x189));let _0x5d4d14='';for await(const _0x12d950 of _0x438e3f)if(_0x12d950[_0xfc1600(0x155)]){const _0x162bce=_0x5f5c28[_0xfc1600(0x154)](_0x12d950[_0xfc1600(0x155)][_0xfc1600(0x161)]),_0x329642=JSON[_0xfc1600(0x17c)](_0x162bce);_0x5d4d14+=this[_0xfc1600(0x167)](_0x329642,_0x3d2d96),_0x7bfd07(_0x5d4d14);}return Promise[_0xfc1600(0x182)]();}async[_0x1eba4b(0x17f)](_0x518d23,_0x362f0f,_0x2732c9){const _0x5d0510=_0x1eba4b,_0x58a8b0=_0x518d23[_0x5d0510(0x16f)],_0x264927=new TextDecoder(_0x5d0510(0x189)),_0x3d8c8a=_0x58a8b0[_0x5d0510(0x17d)]();let _0x5a339a='',_0x32d5b4='',_0x3f3a67=!0x1;for(;!_0x3f3a67;){const {done:_0x10fa1,value:_0x326168}=await _0x3d8c8a[_0x5d0510(0x18d)]();if(_0x3f3a67=_0x10fa1,_0x3f3a67)break;const _0x43768c=(_0x5a339a+_0x264927[_0x5d0510(0x154)](_0x326168))[_0x5d0510(0x153)]('\x0a')[_0x5d0510(0x165)](_0x5bb7bb=>{const _0xe1ab5e=_0x5d0510;try{return _0x5a339a='',JSON[_0xe1ab5e(0x17c)](_0x5bb7bb);}catch(_0x22399a){return _0x5a339a=_0x5bb7bb,null;}})[_0x5d0510(0x1a3)](_0x1a0334=>null!==_0x1a0334);_0x43768c[_0x5d0510(0x15d)]&&(_0x32d5b4+=_0x43768c[_0x5d0510(0x165)](_0x58822c=>this[_0x5d0510(0x167)](_0x58822c,_0x362f0f))[_0x5d0510(0x16c)](''),_0x2732c9(_0x32d5b4));}return Promise[_0x5d0510(0x182)]();}async[_0x1eba4b(0x170)](_0x26728f,_0x2cb210,_0x2ae3ae){const _0x1f6c2f=_0x1eba4b;let _0x1b5137;return _0x1b5137=_0x26728f instanceof Response?await _0x26728f[_0x1f6c2f(0x18b)]():JSON[_0x1f6c2f(0x17c)](Buffer[_0x1f6c2f(0x176)](_0x26728f[_0x1f6c2f(0x16f)])[_0x1f6c2f(0x198)](_0x1f6c2f(0x173))),(_0x2ae3ae(this[_0x1f6c2f(0x167)](_0x1b5137,_0x2cb210)),Promise[_0x1f6c2f(0x182)]());}[_0x1eba4b(0x167)](_0x2a5ee8,_0x1b9c25){const _0x56a210=_0x1eba4b;switch(this[_0x56a210(0x168)](_0x1b9c25)){case _0x56a210(0x160):return _0x2a5ee8[_0x56a210(0x191)];case _0x56a210(0x175):return _0x2a5ee8[_0x56a210(0x18f)][0x0][_0x56a210(0x162)][_0x56a210(0x1a5)];case _0x56a210(0x15a):return _0x2a5ee8[_0x56a210(0x190)][0x0][_0x56a210(0x1a5)];case _0x56a210(0x15c):return _0x2a5ee8[_0x56a210(0x192)];}}}
23
+ const _0x1224d2=_0x1bde;(function(_0xcbf1cc,_0x35f0e9){const _0x5a71f6=_0x1bde,_0x14cf81=_0xcbf1cc();while(!![]){try{const _0x50731f=parseInt(_0x5a71f6(0x1cb))/0x1*(-parseInt(_0x5a71f6(0x1f3))/0x2)+parseInt(_0x5a71f6(0x1cd))/0x3+-parseInt(_0x5a71f6(0x1fb))/0x4*(parseInt(_0x5a71f6(0x203))/0x5)+-parseInt(_0x5a71f6(0x1eb))/0x6*(-parseInt(_0x5a71f6(0x210))/0x7)+parseInt(_0x5a71f6(0x20d))/0x8+parseInt(_0x5a71f6(0x1e7))/0x9+-parseInt(_0x5a71f6(0x1cc))/0xa;if(_0x50731f===_0x35f0e9)break;else _0x14cf81['push'](_0x14cf81['shift']());}catch(_0x160a3b){_0x14cf81['push'](_0x14cf81['shift']());}}}(_0x26f4,0x7bd01));import{default as _0x5f3d31}from'./aitextadapter.js';import{AIRequestError as _0x42cba4}from'./aiadapter.js';import{BedrockRuntimeClient as _0x10dce7,InvokeModelCommand as _0x3202e7,InvokeModelWithResponseStreamCommand as _0xd89001}from'@aws-sdk/client-bedrock-runtime';function _0x1bde(_0x5634,_0x56f5e0){const _0x26f4e5=_0x26f4();return _0x1bde=function(_0x1bde1c,_0x54484b){_0x1bde1c=_0x1bde1c-0x1c1;let _0x1b730e=_0x26f4e5[_0x1bde1c];return _0x1b730e;},_0x1bde(_0x5634,_0x56f5e0);}import{getTranslation as _0x2325e5}from'../utils/common-translations.js';export default class Y extends _0x5f3d31{static get[_0x1224d2(0x1da)](){const _0x2d6cd3=_0x1224d2;return _0x2d6cd3(0x1dd);}constructor(_0x1cef38){const _0x243326=_0x1224d2;super(_0x1cef38),_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x206))||_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1e1)](_0x243326(0x206),{'model':_0x243326(0x1cf),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x243326(0x1ec),'stream':!0x0}),this[_0x243326(0x1e4)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x20f)),this[_0x243326(0x1ea)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x204)),this[_0x243326(0x1d3)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x1ff)),this[_0x243326(0x1e0)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x206));}async[_0x1224d2(0x1c3)]({query:_0x39547f,context:_0x33eb28,onData:_0x6426c7,actionId:_0x503f16}){const _0x488703=_0x1224d2,{model:_0x3e3872,stream:_0x1d2534,..._0x336a10}=await this[_0x488703(0x1f6)](this[_0x488703(0x1e0)],_0x503f16),_0x48c9ae={'prompt':await this[_0x488703(0x1ce)](_0x39547f,_0x33eb28,_0x3e3872,_0x503f16),..._0x336a10};this[_0x488703(0x1e4)]?await this[_0x488703(0x202)](_0x48c9ae,_0x3e3872,_0x1d2534,_0x6426c7,_0x503f16):await this[_0x488703(0x212)](_0x48c9ae,_0x3e3872,_0x1d2534,_0x6426c7);}async[_0x1224d2(0x1ce)](_0x3e9d89,_0x40722c,_0x315b40,_0x57c905){const _0x3392ad=_0x1224d2;let _0x51adff,_0x559c5c;return _0x40722c?(_0x51adff=_0x3392ad(0x1f9),_0x559c5c=_0x3392ad(0x1e9)+_0x3e9d89+_0x3392ad(0x1c6)+_0x40722c):(_0x51adff=_0x3392ad(0x1f7),_0x559c5c=_0x3e9d89),_0x3392ad(0x20a)==this[_0x3392ad(0x200)](_0x315b40)?_0x3392ad(0x1d8)+_0x51adff+_0x3392ad(0x1c9)+_0x559c5c+_0x3392ad(0x1df):_0x3392ad(0x1f0)+_0x51adff+'\x0a'+_0x559c5c+_0x3392ad(0x1c2);}[_0x1224d2(0x200)](_0x440c9b){const _0x2a8249=_0x1224d2;if(/^anthropic\.claude/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1d2);if(/^ai21\.j2/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1ed);if(/^cohere\.command/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1ee);if(/^meta\.llama/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x20a);throw new _0x42cba4(_0x2325e5(this[_0x2a8249(0x1f4)][_0x2a8249(0x1fd)],_0x2a8249(0x20e),_0x440c9b));}async[_0x1224d2(0x202)](_0x508439,_0x530c21,_0x59c85f,_0x2d15dc,_0x2fd2f3){const _0x303f7c=_0x1224d2,_0x1a2db6={'method':_0x303f7c(0x1f1),'headers':await this[_0x303f7c(0x1fc)](this[_0x303f7c(0x1d3)],_0x2fd2f3),'body':JSON[_0x303f7c(0x211)]({..._0x508439,'model':_0x530c21,'stream':_0x59c85f}),'signal':this[_0x303f7c(0x1c5)][_0x303f7c(0x20b)]},_0x1afe1b=await fetch(this[_0x303f7c(0x1e4)],_0x1a2db6);_0x59c85f?await this[_0x303f7c(0x1fe)](_0x1afe1b,_0x530c21,_0x2d15dc):await this[_0x303f7c(0x1ca)](_0x1afe1b,_0x530c21,_0x2d15dc);}async[_0x1224d2(0x212)](_0x174ec2,_0x248451,_0xd5af1f,_0xe83efa){const _0xcc9c7b=_0x1224d2,_0x137fde=new _0x10dce7(this[_0xcc9c7b(0x1ea)]),_0x127bba={'body':JSON[_0xcc9c7b(0x211)](_0x174ec2),'contentType':_0xcc9c7b(0x1e5),'accept':_0xcc9c7b(0x1e5),'modelId':_0x248451};let _0xfc0db0;if(_0xd5af1f){const _0x5d345f=new _0xd89001(_0x127bba);_0xfc0db0=await _0x137fde[_0xcc9c7b(0x1e6)](_0x5d345f,{'abortSignal':this[_0xcc9c7b(0x1c5)][_0xcc9c7b(0x20b)]}),await this[_0xcc9c7b(0x1f5)](_0xfc0db0,_0x248451,_0xe83efa);}else{const _0x143d7d=new _0x3202e7(_0x127bba);_0xfc0db0=await _0x137fde[_0xcc9c7b(0x1e6)](_0x143d7d,{'abortSignal':this[_0xcc9c7b(0x1c5)][_0xcc9c7b(0x20b)]}),await this[_0xcc9c7b(0x1ca)](_0xfc0db0,_0x248451,_0xe83efa);}}async[_0x1224d2(0x1f5)](_0x571b2f,_0x4daa6b,_0x33d2d4){const _0x4069a7=_0x1224d2,_0x249483=_0x571b2f[_0x4069a7(0x1d0)],_0x33c246=new TextDecoder(_0x4069a7(0x1c1));let _0x170c57='';for await(const _0x4a212d of _0x249483)if(_0x4a212d[_0x4069a7(0x1e3)]){const _0x5236b4=_0x33c246[_0x4069a7(0x205)](_0x4a212d[_0x4069a7(0x1e3)][_0x4069a7(0x1db)]),_0x209bf5=JSON[_0x4069a7(0x1fa)](_0x5236b4);_0x170c57+=this[_0x4069a7(0x208)](_0x209bf5,_0x4daa6b),_0x33d2d4(_0x170c57);}return Promise[_0x4069a7(0x201)]();}async[_0x1224d2(0x1fe)](_0x2fc6d1,_0x3a61db,_0x42da9c){const _0xa6652=_0x1224d2,_0x18cdf3=_0x2fc6d1[_0xa6652(0x1d0)],_0x36ab82=new TextDecoder(_0xa6652(0x1c1)),_0x3f394d=_0x18cdf3[_0xa6652(0x1d1)]();let _0x6e7fab='',_0x35d1eb='',_0x455a14=!0x1;for(;!_0x455a14;){const {done:_0xa08e0c,value:_0x186ac3}=await _0x3f394d[_0xa6652(0x1e2)]();if(_0x455a14=_0xa08e0c,_0x455a14)break;const _0x214423=(_0x6e7fab+_0x36ab82[_0xa6652(0x205)](_0x186ac3))[_0xa6652(0x20c)]('\x0a')[_0xa6652(0x209)](_0x1b6112=>{const _0x224cb8=_0xa6652;try{return _0x6e7fab='',JSON[_0x224cb8(0x1fa)](_0x1b6112);}catch(_0x774818){return _0x6e7fab=_0x1b6112,null;}})[_0xa6652(0x1f2)](_0x20dcfa=>null!==_0x20dcfa);_0x214423[_0xa6652(0x1d5)]&&(_0x35d1eb+=_0x214423[_0xa6652(0x209)](_0x5dc35b=>this[_0xa6652(0x208)](_0x5dc35b,_0x3a61db))[_0xa6652(0x213)](''),_0x42da9c(_0x35d1eb));}return Promise[_0xa6652(0x201)]();}async[_0x1224d2(0x1ca)](_0x15a951,_0x30f623,_0x5df1a3){const _0x543003=_0x1224d2;let _0x36e5fe;return _0x36e5fe=_0x15a951 instanceof Response?await _0x15a951[_0x543003(0x1d9)]():JSON[_0x543003(0x1fa)](Buffer[_0x543003(0x1c8)](_0x15a951[_0x543003(0x1d0)])[_0x543003(0x1d6)](_0x543003(0x1e8))),(_0x5df1a3(this[_0x543003(0x208)](_0x36e5fe,_0x30f623)),Promise[_0x543003(0x201)]());}[_0x1224d2(0x208)](_0x5b17ac,_0x1a88d5){const _0x240678=_0x1224d2;switch(this[_0x240678(0x200)](_0x1a88d5)){case _0x240678(0x1d2):return _0x5b17ac[_0x240678(0x1de)];case _0x240678(0x1ed):return _0x5b17ac[_0x240678(0x207)][0x0][_0x240678(0x1c4)][_0x240678(0x1c7)];case _0x240678(0x1ee):return _0x5b17ac[_0x240678(0x1dc)][0x0][_0x240678(0x1c7)];case _0x240678(0x20a):return _0x5b17ac[_0x240678(0x1ef)];}}}function _0x26f4(){const _0x580dda=['ai.aws.requestParameters','completions','_getGeneratedText','map','meta.llama','signal','split','3939152NSEqgy','AI_ERROR_UNSUPPORTED_MODEL','ai.aws.apiUrl','1332191kSujuP','stringify','_processAWSRequest','join','utf-8','\x0a\x0aAssistant:','sendRequest','data','abortController','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','text','from','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','5jOrfgq','2606020CETvvX','1044747SBOcrR','preparePrompt','anthropic.claude-v2','body','getReader','anthropic.claude','_requestHeaders','get','length','toString','test','<<SYS>>\x0a','json','pluginName','bytes','generations','AWSTextAdapter','completion','\x0a[/INST]','_requestParameters','define','read','chunk','_apiUrl','application/json','send','2325555ugvRYl','utf8','Instruction:\x0a','_bedrockClientConfig','30REmCip','bedrock-2023-05-31','ai21.j2','cohere.command','generation','Human:\x0a','POST','filter','112118afZZEa','editor','_readAsyncIterableResponse','_prepareRequestParameters','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.','config','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.','parse','4ZxSsBB','_prepareRequestHeaders','locale','_readStreamableResponse','ai.aws.requestHeaders','getModelFamily','resolve','_processProxyRequest','5012845YRYJTu','ai.aws.bedrockClientConfig','decode'];_0x26f4=function(){return _0x580dda;};return _0x26f4();}
@@ -139,6 +139,7 @@ export interface OpenAITextAdapterConfig {
139
139
  requestHeaders?: RequestHeaders;
140
140
  /**
141
141
  * Additional configuration parameters for the AI service request. Use it to customize how the AI service generates responses.
142
+ * Note that the value you will set here will fully overwrite the default value.
142
143
  *
143
144
  * See [OpenAI API reference](https://platform.openai.com/docs/api-reference/chat/create) to learn more about available parameters.
144
145
  *
@@ -160,7 +161,8 @@ export interface OpenAITextAdapterConfig {
160
161
  * model: 'gpt-3.5-turbo',
161
162
  * max_tokens: 2000,
162
163
  * temperature: 1,
163
- * top_p: 1
164
+ * top_p: 1,
165
+ * stream: true
164
166
  * }
165
167
  * ```
166
168
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b382f=_0x3233;(function(_0x2663d9,_0x31b78b){const _0x5b2333=_0x3233,_0x3e2836=_0x2663d9();while(!![]){try{const _0x522fbc=parseInt(_0x5b2333(0xd2))/0x1*(parseInt(_0x5b2333(0xd1))/0x2)+-parseInt(_0x5b2333(0xab))/0x3*(parseInt(_0x5b2333(0xc3))/0x4)+parseInt(_0x5b2333(0x9c))/0x5+parseInt(_0x5b2333(0x9e))/0x6*(-parseInt(_0x5b2333(0xdd))/0x7)+-parseInt(_0x5b2333(0xc2))/0x8+-parseInt(_0x5b2333(0xdb))/0x9+-parseInt(_0x5b2333(0xa9))/0xa*(-parseInt(_0x5b2333(0xa3))/0xb);if(_0x522fbc===_0x31b78b)break;else _0x3e2836['push'](_0x3e2836['shift']());}catch(_0x21db50){_0x3e2836['push'](_0x3e2836['shift']());}}}(_0x2618,0x64572));import{default as _0x1cf557}from'./aitextadapter.js';function _0x3233(_0x5ad18f,_0x40dbe0){const _0x26187d=_0x2618();return _0x3233=function(_0x323366,_0x40f7ba){_0x323366=_0x323366-0x9c;let _0xc7067f=_0x26187d[_0x323366];return _0xc7067f;},_0x3233(_0x5ad18f,_0x40dbe0);}function _0x2618(){const _0x48e4d7=['resolve','sendRequest','_prepareRequestParameters','gpt-3.5-turbo','data:\x20','editor','_apiUrl','join','reject','_requestHeaders','1240766gHfMFP','1CZOgjL','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.','content','[DONE]','parse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','length','_isBufferIncomplete','_readStaticResponse','6867432GdFFgL','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.','63algklQ','replace','AI_ERROR_CONTEXT_LENGTH','delta','context_length_exceeded','_readStreamableResponse','3550160gqQgtl','pluginName','133302VqaWlK','signal','map','filter','ai.openAI.requestParameters','176cDjLoG','decode','AI_ERROR_MODERATION','_requestParameters','_prepareRequestHeaders','OpenAITextAdapter','666650psvysB','ai.openAI.requestHeaders','39UALMTQ','prepareMessages','stringify','split','get','choices','POST','includes','message','Moderation','https://api.openai.com/v1/chat/completions','text','stream','json','body','getReader','config','Instruction:\x0a','define','read','ai.openAI.apiUrl','abortController','system','4357696QxOkZP','147184msQulA','_cleanUpData','user','locale'];_0x2618=function(){return _0x48e4d7;};return _0x2618();}import{AIRequestError as _0x43132e}from'./aiadapter.js';import{getTranslation as _0x229244}from'../utils/common-translations.js';export default class J extends _0x1cf557{static get[_0x5b382f(0x9d)](){const _0x3e52e8=_0x5b382f;return _0x3e52e8(0xa8);}constructor(_0x568b90){const _0x34283a=_0x5b382f;super(_0x568b90),_0x568b90[_0x34283a(0xbb)][_0x34283a(0xbd)](_0x34283a(0xbf),_0x34283a(0xb5)),_0x568b90[_0x34283a(0xbb)][_0x34283a(0xaf)](_0x34283a(0xa2))||_0x568b90[_0x34283a(0xbb)][_0x34283a(0xbd)](_0x34283a(0xa2),{'model':_0x34283a(0xca),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x34283a(0xcd)]=_0x568b90[_0x34283a(0xbb)][_0x34283a(0xaf)](_0x34283a(0xbf)),this[_0x34283a(0xd0)]=_0x568b90[_0x34283a(0xbb)][_0x34283a(0xaf)](_0x34283a(0xaa))||{},this[_0x34283a(0xa6)]=_0x568b90[_0x34283a(0xbb)][_0x34283a(0xaf)](_0x34283a(0xa2));}async[_0x5b382f(0xc8)]({query:_0x580de7,context:_0x11aa45,onData:_0x1933bf,actionId:_0x3305bb}){const _0x592b3f=_0x5b382f,_0x90b786=this[_0x592b3f(0xcc)][_0x592b3f(0xc6)],_0x5c3ab1=await this[_0x592b3f(0xac)](_0x580de7,_0x11aa45,_0x3305bb),_0x12cab7=await this[_0x592b3f(0xa7)](this[_0x592b3f(0xd0)],_0x3305bb),_0x2b2ffd=await this[_0x592b3f(0xc9)](this[_0x592b3f(0xa6)],_0x3305bb),_0x542e70={'messages':_0x5c3ab1,..._0x2b2ffd},_0x33d846={'method':_0x592b3f(0xb1),'headers':_0x12cab7,'body':JSON[_0x592b3f(0xad)](_0x542e70),'signal':this[_0x592b3f(0xc0)][_0x592b3f(0x9f)]},_0x4a71d4=await fetch(this[_0x592b3f(0xcd)],_0x33d846);if(_0x4a71d4['ok'])return _0x2b2ffd[_0x592b3f(0xb7)]?await this[_0x592b3f(0xe2)](_0x4a71d4,_0x1933bf):await this[_0x592b3f(0xda)](_0x4a71d4,_0x1933bf),Promise[_0x592b3f(0xc7)]();{const _0x4de0f9=await _0x4a71d4[_0x592b3f(0xb6)]();return _0x4de0f9[_0x592b3f(0xb2)](_0x592b3f(0xe1))?Promise[_0x592b3f(0xcf)](new _0x43132e(_0x229244(_0x90b786,_0x592b3f(0xdf)))):_0x4de0f9[_0x592b3f(0xb2)](_0x592b3f(0xb4))?Promise[_0x592b3f(0xcf)](new _0x43132e(_0x229244(_0x90b786,_0x592b3f(0xa5)))):Promise[_0x592b3f(0xcf)](new Error(_0x4de0f9));}}async[_0x5b382f(0xac)](_0x5781ce,_0xeb0036,_0x45cb9f){const _0x429a70=_0x5b382f;let _0xe6e7cb,_0x238067;return _0xeb0036?(_0xe6e7cb=_0x429a70(0xdc),_0x238067=_0x429a70(0xbc)+_0x5781ce+_0x429a70(0xd7)+_0xeb0036):(_0xe6e7cb=_0x429a70(0xd3),_0x238067=_0x5781ce),[{'role':_0x429a70(0xc1),'content':_0xe6e7cb},{'role':_0x429a70(0xc5),'content':_0x238067}];}async[_0x5b382f(0xe2)](_0x584873,_0x434f90){const _0x4a644b=_0x5b382f,_0x5aa44e=_0x584873[_0x4a644b(0xb9)][_0x4a644b(0xba)](),_0x133408=new TextDecoder();let _0x231579='',_0x30ae9d='',_0x44b7d2='',_0x59ebba=!0x1;for(;!_0x59ebba;){const {done:_0x2e9115,value:_0x5d4f2e}=await _0x5aa44e[_0x4a644b(0xbe)](),_0xd0a981=_0x231579+_0x133408[_0x4a644b(0xa4)](_0x5d4f2e);let _0x45c1d8='';_0x59ebba=_0x2e9115;try{_0x45c1d8=this[_0x4a644b(0xc4)](_0xd0a981),_0x231579='';}catch(_0x35b77e){_0x231579=_0xd0a981;continue;}_0x30ae9d+=_0x45c1d8,!_0x59ebba&&this[_0x4a644b(0xd9)](_0x30ae9d)||_0x30ae9d&&(_0x44b7d2+=_0x30ae9d,_0x30ae9d='',_0x434f90(_0x44b7d2));}return Promise[_0x4a644b(0xc7)]();}async[_0x5b382f(0xda)](_0x11cd23,_0xf81fdb){const _0x300130=_0x5b382f;return _0xf81fdb((await _0x11cd23[_0x300130(0xb8)]())[_0x300130(0xb0)][0x0][_0x300130(0xb3)][_0x300130(0xd4)]),Promise[_0x300130(0xc7)]();}[_0x5b382f(0xd9)](_0x269e88){const _0x5778fd=_0x5b382f,_0x3d5c35=_0x269e88[_0x5778fd(0xae)]('<')[_0x5778fd(0xd8)]!==_0x269e88[_0x5778fd(0xae)]('>')[_0x5778fd(0xd8)],_0x1d977b=_0x269e88[_0x5778fd(0xd8)]<0x1e;return _0x3d5c35&&_0x1d977b;}[_0x5b382f(0xc4)](_0x32feb6){const _0x22ab41=_0x5b382f;return _0x32feb6[_0x22ab41(0xae)](/\n(?![^{]*\})/g)[_0x22ab41(0xa0)](_0x2ad6ef=>_0x2ad6ef[_0x22ab41(0xde)](_0x22ab41(0xcb),''))[_0x22ab41(0xa1)](_0x3df85f=>_0x3df85f&&_0x3df85f[_0x22ab41(0xd8)]>0x0&&_0x22ab41(0xd5)!==_0x3df85f)[_0x22ab41(0xa0)](_0x54dd0f=>{const _0x39762a=_0x22ab41,{choices:_0x3d91d4}=JSON[_0x39762a(0xd6)](_0x54dd0f);if(_0x3d91d4[0x0]&&_0x3d91d4[0x0][_0x39762a(0xe0)]&&_0x3d91d4[0x0][_0x39762a(0xe0)][_0x39762a(0xd4)])return _0x3d91d4[0x0][_0x39762a(0xe0)][_0x39762a(0xd4)];})[_0x22ab41(0xa1)](_0x4e6bf2=>_0x4e6bf2)[_0x22ab41(0xce)]('');}}
23
+ function _0x5635(_0x365b80,_0xf95649){const _0x3a29f7=_0x3a29();return _0x5635=function(_0x56359b,_0xb2b56a){_0x56359b=_0x56359b-0x74;let _0x497a6b=_0x3a29f7[_0x56359b];return _0x497a6b;},_0x5635(_0x365b80,_0xf95649);}const _0x2fc2f6=_0x5635;(function(_0x4b7bb7,_0x21aa03){const _0x1a9991=_0x5635,_0x218b00=_0x4b7bb7();while(!![]){try{const _0x42b323=-parseInt(_0x1a9991(0xaf))/0x1+parseInt(_0x1a9991(0xa9))/0x2+parseInt(_0x1a9991(0x8d))/0x3*(parseInt(_0x1a9991(0x91))/0x4)+-parseInt(_0x1a9991(0x9b))/0x5*(parseInt(_0x1a9991(0xb6))/0x6)+-parseInt(_0x1a9991(0x95))/0x7+parseInt(_0x1a9991(0x93))/0x8+-parseInt(_0x1a9991(0x79))/0x9*(-parseInt(_0x1a9991(0x98))/0xa);if(_0x42b323===_0x21aa03)break;else _0x218b00['push'](_0x218b00['shift']());}catch(_0x10de36){_0x218b00['push'](_0x218b00['shift']());}}}(_0x3a29,0x5f5ce));import{default as _0x36f11a}from'./aitextadapter.js';import{AIRequestError as _0x41cc33}from'./aiadapter.js';function _0x3a29(){const _0x42092f=['includes','_readStreamableResponse','2598aGkFOV','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.openAI.requestHeaders','568OMoyxR','_apiUrl','5574480HcVsPw','replace','1354409FuUdCY','stream','data:\x20','2890DmPFEj','_prepareRequestHeaders','sendRequest','109485tiAvFR','filter','Moderation','text','stringify','[DONE]','join','resolve','config','delta','get','_readStaticResponse','OpenAITextAdapter','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.','523962BUwLNO','_isBufferIncomplete','AI_ERROR_MODERATION','gpt-3.5-turbo','parse','context_length_exceeded','720698ROXUso','abortController','https://api.openai.com/v1/chat/completions','split','system','ai.openAI.requestParameters','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.','174nCuvGe','length','ai.openAI.apiUrl','getReader','_requestParameters','editor','message','Instruction:\x0a','prepareMessages','26721ffmYZl','map','body','POST','reject','choices','pluginName','_prepareRequestParameters','_requestHeaders','read','user','define','signal','content','locale','_cleanUpData','json','AI_ERROR_CONTEXT_LENGTH'];_0x3a29=function(){return _0x42092f;};return _0x3a29();}import{getTranslation as _0x596137}from'../utils/common-translations.js';export default class J extends _0x36f11a{static get[_0x2fc2f6(0x7f)](){const _0xb37e61=_0x2fc2f6;return _0xb37e61(0xa7);}constructor(_0x3cb0a0){const _0x3788bb=_0x2fc2f6;super(_0x3cb0a0),_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0x84)](_0x3788bb(0xb8),_0x3788bb(0xb1)),_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb4))||_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0x84)](_0x3788bb(0xb4),{'model':_0x3788bb(0xac),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3788bb(0x92)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb8)),this[_0x3788bb(0x81)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0x90))||{},this[_0x3788bb(0x74)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb4));}async[_0x2fc2f6(0x9a)]({query:_0x2f4024,context:_0x21dfbf,onData:_0x3826b2,actionId:_0x267537}){const _0x1be2f6=_0x2fc2f6,_0x13ef50=this[_0x1be2f6(0x75)][_0x1be2f6(0x87)],_0x2912f2=await this[_0x1be2f6(0x78)](_0x2f4024,_0x21dfbf,_0x267537),_0x2ca1cb=await this[_0x1be2f6(0x99)](this[_0x1be2f6(0x81)],_0x267537),_0x2e965b=await this[_0x1be2f6(0x80)](this[_0x1be2f6(0x74)],_0x267537),_0x59914b={'messages':_0x2912f2,..._0x2e965b},_0x68924={'method':_0x1be2f6(0x7c),'headers':_0x2ca1cb,'body':JSON[_0x1be2f6(0x9f)](_0x59914b),'signal':this[_0x1be2f6(0xb0)][_0x1be2f6(0x85)]},_0x1c95b9=await fetch(this[_0x1be2f6(0x92)],_0x68924);if(_0x1c95b9['ok'])return _0x2e965b[_0x1be2f6(0x96)]?await this[_0x1be2f6(0x8c)](_0x1c95b9,_0x3826b2):await this[_0x1be2f6(0xa6)](_0x1c95b9,_0x3826b2),Promise[_0x1be2f6(0xa2)]();{const _0x2f9697=await _0x1c95b9[_0x1be2f6(0x9e)]();return _0x2f9697[_0x1be2f6(0x8b)](_0x1be2f6(0xae))?Promise[_0x1be2f6(0x7d)](new _0x41cc33(_0x596137(_0x13ef50,_0x1be2f6(0x8a)))):_0x2f9697[_0x1be2f6(0x8b)](_0x1be2f6(0x9d))?Promise[_0x1be2f6(0x7d)](new _0x41cc33(_0x596137(_0x13ef50,_0x1be2f6(0xab)))):Promise[_0x1be2f6(0x7d)](new Error(_0x2f9697));}}async[_0x2fc2f6(0x78)](_0x212c6e,_0x3db8ed,_0x373aea){const _0x161b8e=_0x2fc2f6;let _0x53a36b,_0x36127b;return _0x3db8ed?(_0x53a36b=_0x161b8e(0xb5),_0x36127b=_0x161b8e(0x77)+_0x212c6e+_0x161b8e(0x8f)+_0x3db8ed):(_0x53a36b=_0x161b8e(0xa8),_0x36127b=_0x212c6e),[{'role':_0x161b8e(0xb3),'content':_0x53a36b},{'role':_0x161b8e(0x83),'content':_0x36127b}];}async[_0x2fc2f6(0x8c)](_0x30493d,_0xfcff74){const _0x5033a5=_0x2fc2f6,_0x20286b=_0x30493d[_0x5033a5(0x7b)][_0x5033a5(0xb9)](),_0x5c60a5=new TextDecoder();let _0x4264e7='',_0x2f1122='',_0x41707b='',_0x1fd1ce=!0x1;for(;!_0x1fd1ce;){const {done:_0x5e28ba,value:_0x4caff0}=await _0x20286b[_0x5033a5(0x82)](),_0x2f86f5=_0x4264e7+_0x5c60a5[_0x5033a5(0x8e)](_0x4caff0);let _0x29d687='';_0x1fd1ce=_0x5e28ba;try{_0x29d687=this[_0x5033a5(0x88)](_0x2f86f5),_0x4264e7='';}catch(_0x4fc3b0){_0x4264e7=_0x2f86f5;continue;}_0x2f1122+=_0x29d687,!_0x1fd1ce&&this[_0x5033a5(0xaa)](_0x2f1122)||_0x2f1122&&(_0x41707b+=_0x2f1122,_0x2f1122='',_0xfcff74(_0x41707b));}return Promise[_0x5033a5(0xa2)]();}async[_0x2fc2f6(0xa6)](_0x200b6,_0x28e945){const _0x219bfe=_0x2fc2f6;return _0x28e945((await _0x200b6[_0x219bfe(0x89)]())[_0x219bfe(0x7e)][0x0][_0x219bfe(0x76)][_0x219bfe(0x86)]),Promise[_0x219bfe(0xa2)]();}[_0x2fc2f6(0xaa)](_0x372840){const _0x264aea=_0x2fc2f6,_0x4131c7=_0x372840[_0x264aea(0xb2)]('<')[_0x264aea(0xb7)]!==_0x372840[_0x264aea(0xb2)]('>')[_0x264aea(0xb7)],_0x5da453=_0x372840[_0x264aea(0xb7)]<0x1e;return _0x4131c7&&_0x5da453;}[_0x2fc2f6(0x88)](_0x19c031){const _0x5e707b=_0x2fc2f6;return _0x19c031[_0x5e707b(0xb2)](/\n(?![^{]*\})/g)[_0x5e707b(0x7a)](_0xae0409=>_0xae0409[_0x5e707b(0x94)](_0x5e707b(0x97),''))[_0x5e707b(0x9c)](_0xe1f339=>_0xe1f339&&_0xe1f339[_0x5e707b(0xb7)]>0x0&&_0x5e707b(0xa0)!==_0xe1f339)[_0x5e707b(0x7a)](_0x3ea468=>{const _0xcfc64f=_0x5e707b,{choices:_0x36e6a6}=JSON[_0xcfc64f(0xad)](_0x3ea468);if(_0x36e6a6[0x0]&&_0x36e6a6[0x0][_0xcfc64f(0xa4)]&&_0x36e6a6[0x0][_0xcfc64f(0xa4)][_0xcfc64f(0x86)])return _0x36e6a6[0x0][_0xcfc64f(0xa4)][_0xcfc64f(0x86)];})[_0x5e707b(0x9c)](_0x3d4831=>_0x3d4831)[_0x5e707b(0xa1)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1152(_0x3482b0,_0x391485){const _0x456a9b=_0x456a();return _0x1152=function(_0x11528b,_0x2486df){_0x11528b=_0x11528b-0x1c6;let _0x24adcf=_0x456a9b[_0x11528b];return _0x24adcf;},_0x1152(_0x3482b0,_0x391485);}const _0x36df8c=_0x1152;(function(_0x4c1775,_0x72f68){const _0x532b21=_0x1152,_0x4ed7ca=_0x4c1775();while(!![]){try{const _0x176a2e=-parseInt(_0x532b21(0x210))/0x1*(-parseInt(_0x532b21(0x21e))/0x2)+-parseInt(_0x532b21(0x232))/0x3*(-parseInt(_0x532b21(0x1d5))/0x4)+parseInt(_0x532b21(0x1f7))/0x5*(-parseInt(_0x532b21(0x1e7))/0x6)+-parseInt(_0x532b21(0x224))/0x7*(-parseInt(_0x532b21(0x233))/0x8)+parseInt(_0x532b21(0x225))/0x9*(parseInt(_0x532b21(0x1e9))/0xa)+-parseInt(_0x532b21(0x22d))/0xb*(-parseInt(_0x532b21(0x23d))/0xc)+-parseInt(_0x532b21(0x209))/0xd;if(_0x176a2e===_0x72f68)break;else _0x4ed7ca['push'](_0x4ed7ca['shift']());}catch(_0x324baf){_0x4ed7ca['push'](_0x4ed7ca['shift']());}}}(_0x456a,0x8cbdc));import{CKEditorError as _0x47077c}from'ckeditor5/src/utils.js';import{Plugin as _0x35a6fd}from'ckeditor5/src/core.js';import _0x81b79b from'./aiassistantui.js';import _0x549832 from'./aiassistantediting.js';import{getTranslation as _0x52a1a6}from'./utils/common-translations.js';function _0x456a(){const _0x242341=['Legal','Friendly','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.','Change\x20style','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','requires','translatePortuguese','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','6430NxLlGe','makeShorter','Business','aiLicenseKeyTrial','commands','Professional','groupId','info','Translate\x20the\x20content\x20to\x20French\x20language.','Direct','locale','translateSpanish','Journalism','generate','improveWriting','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Edit\x20or\x20review','45118125oNmmLd','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.','English','Translate\x20the\x20content\x20to\x20English\x20language.','Portuguese','filter','French','793WhzQVt','includes','Continue','Arabic','init','poetic','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','forEach','define','friendly','aiLicenseKeyValid','Translate\x20the\x20content\x20to\x20Spanish\x20language.','changeStyle','destroy','1846SotFZS','Translate\x20to\x20%0','get','translateChinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','7acHYzG','4941099YWyLuw','translateGerman','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Generate\x20from\x20selection','professional','confident','Change\x20tone','22MZzDTN','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateHindi','Summarize','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3424665cvxNps','8725928CaFQXV','casual','licenseKey','editOrReview','Translate','set','aiLicenseKeyTrialLimit:operations','Hindi','Simplify\x20language','Make\x20longer','1637448fBUStU','ai.aiAssistant.removeCommands','changeTone','journalism','Spanish','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','concat','Improve\x20writing','Casual','continue','find','aiLicenseKeyInvalid','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','makeLonger','editor','ai.aiAssistant.extraCommandGroups','Poetic','direct','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','4pewCwa','business','ai.aiAssistant.commands','Translate\x20the\x20content\x20to\x20German\x20language.','Make\x20shorter','_licenseKeyCheckInterval','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','simplifyLanguage','legal','translateEnglish','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','German','translate','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai-trial-license-key-reached-limit-changes','Confident','pluginName','1344vGlqxu','AIAssistant','20oPLDpf','translateFrench','Simplified\x20Chinese','push','summarize'];_0x456a=function(){return _0x242341;};return _0x456a();}export default class r extends _0x35a6fd{static get[_0x36df8c(0x1f4)](){return[_0x81b79b,_0x549832];}static get[_0x36df8c(0x1e6)](){const _0x36469f=_0x36df8c;return _0x36469f(0x1e8);}constructor(_0x3815f6){const _0x12dc73=_0x36df8c;super(_0x3815f6);const _0x368f0a=_0x3815f6[_0x12dc73(0x1db)];_0x368f0a[_0x12dc73(0x218)](_0x12dc73(0x1d7),getDefaultCommands(_0x3815f6[_0x12dc73(0x201)])),_0x368f0a[_0x12dc73(0x218)](_0x12dc73(0x1d1),[]),_0x368f0a[_0x12dc73(0x218)](_0x12dc73(0x23e),[]);const _0x18f163=_0x368f0a[_0x12dc73(0x220)](_0x12dc73(0x1d7)),_0x3d305d=_0x368f0a[_0x12dc73(0x220)](_0x12dc73(0x1d1)),_0x499d94=_0x368f0a[_0x12dc73(0x220)](_0x12dc73(0x23e));_0x3d305d[_0x12dc73(0x217)](_0x173545=>{const _0x268a61=_0x12dc73,_0x356e3c=_0x18f163[_0x268a61(0x1ca)](_0x10853f=>_0x10853f[_0x268a61(0x1fd)]===_0x173545[_0x268a61(0x1fd)]);_0x356e3c?_0x356e3c[_0x268a61(0x1fb)]=_0x356e3c[_0x268a61(0x1fb)][_0x268a61(0x1c6)](_0x173545[_0x268a61(0x1fb)]):_0x18f163[_0x268a61(0x1ec)](_0x173545);}),_0x18f163[_0x12dc73(0x217)](_0x40eacb=>{const _0x4bc7a7=_0x12dc73;_0x40eacb[_0x4bc7a7(0x1fb)]=_0x40eacb[_0x4bc7a7(0x1fb)][_0x4bc7a7(0x20e)](_0x154006=>!_0x499d94[_0x4bc7a7(0x211)](_0x154006['id']));}),_0x368f0a[_0x12dc73(0x238)](_0x12dc73(0x1d7),_0x18f163);}[_0x36df8c(0x214)](){const _0xe3bf95=_0x36df8c,_0x76d1fc=this[_0xe3bf95(0x1d0)];this[_0xe3bf95(0x235)]=_0x76d1fc[_0xe3bf95(0x1db)][_0xe3bf95(0x220)](_0xe3bf95(0x235)),this[_0xe3bf95(0x1da)]=setInterval(()=>{const _0x1915f2=_0xe3bf95;let _0x1cbb51;for(const _0x1adc21 in _0x76d1fc){const _0x592466=_0x1adc21,_0x4dcba5=_0x76d1fc[_0x592466];if(_0x1915f2(0x1fa)===_0x4dcba5||_0x1915f2(0x1cb)===_0x4dcba5||_0x1915f2(0x21a)===_0x4dcba5||_0x1915f2(0x239)===_0x4dcba5){delete _0x76d1fc[_0x592466],_0x1cbb51=_0x4dcba5;break;}}if(_0x1915f2(0x1cb)===_0x1cbb51)throw clearInterval(this[_0x1915f2(0x1da)]),new _0x47077c(_0x1915f2(0x1cc),null);if(_0x1915f2(0x1fa)===_0x1cbb51&&console[_0x1915f2(0x1fe)](_0x1915f2(0x20a)),_0x1915f2(0x239)===_0x1cbb51)throw clearInterval(this[_0x1915f2(0x1da)]),new _0x47077c(_0x1915f2(0x1e4),null);_0x1915f2(0x21a)===_0x1cbb51&&clearInterval(this[_0x1915f2(0x1da)]);},0x3e8);}[_0x36df8c(0x21d)](){const _0x4d6007=_0x36df8c;this[_0x4d6007(0x1da)]&&clearInterval(this[_0x4d6007(0x1da)]);}}export function getDefaultCommands(_0x559f2c){const _0x579934=_0x36df8c;return[{'groupId':_0x579934(0x236),'groupLabel':_0x52a1a6(_0x559f2c,_0x579934(0x208)),'commands':[{'id':_0x579934(0x205),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1c7)),'prompt':_0x579934(0x242)},{'id':_0x579934(0x1f8),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1d9)),'prompt':_0x579934(0x227)},{'id':_0x579934(0x1cf),'label':_0x52a1a6(_0x559f2c,_0x579934(0x23c)),'prompt':_0x579934(0x1f0)},{'id':_0x579934(0x1dd),'label':_0x52a1a6(_0x559f2c,_0x579934(0x23b)),'prompt':_0x579934(0x1f1)}]},{'groupId':_0x579934(0x204),'groupLabel':_0x52a1a6(_0x559f2c,_0x579934(0x229)),'commands':[{'id':_0x579934(0x1ed),'label':_0x52a1a6(_0x559f2c,_0x579934(0x230)),'prompt':_0x579934(0x1d4)},{'id':_0x579934(0x1c9),'label':_0x52a1a6(_0x559f2c,_0x579934(0x212)),'prompt':_0x579934(0x216)}]},{'groupId':_0x579934(0x23f),'groupLabel':_0x52a1a6(_0x559f2c,_0x579934(0x22c)),'commands':[{'id':_0x579934(0x22a),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1fc)),'prompt':_0x579934(0x231)},{'id':_0x579934(0x234),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1c8)),'prompt':_0x579934(0x1f3)},{'id':_0x579934(0x1d3),'label':_0x52a1a6(_0x559f2c,_0x579934(0x200)),'prompt':_0x579934(0x1f6)},{'id':_0x579934(0x22b),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1e5)),'prompt':_0x579934(0x22e)},{'id':_0x579934(0x219),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1ef)),'prompt':_0x579934(0x222)}]},{'groupId':_0x579934(0x21c),'groupLabel':_0x52a1a6(_0x559f2c,_0x579934(0x1f2)),'commands':[{'id':_0x579934(0x1d6),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1f9)),'prompt':_0x579934(0x223)},{'id':_0x579934(0x1de),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1ee)),'prompt':_0x579934(0x1e3)},{'id':_0x579934(0x240),'label':_0x52a1a6(_0x559f2c,_0x579934(0x203)),'prompt':_0x579934(0x1dc)},{'id':_0x579934(0x215),'label':_0x52a1a6(_0x559f2c,_0x579934(0x1d2)),'prompt':_0x579934(0x207)}]},{'groupId':_0x579934(0x1e2),'groupLabel':_0x52a1a6(_0x559f2c,_0x579934(0x237)),'commands':[{'id':_0x579934(0x1df),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x20b))]),'prompt':_0x579934(0x20c)},{'id':_0x579934(0x202),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x241))]),'prompt':_0x579934(0x21b)},{'id':_0x579934(0x1f5),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x20d))]),'prompt':_0x579934(0x228)},{'id':_0x579934(0x226),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x1e1))]),'prompt':_0x579934(0x1d8)},{'id':_0x579934(0x1ea),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x20f))]),'prompt':_0x579934(0x1ff)},{'id':_0x579934(0x221),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x1eb))]),'prompt':_0x579934(0x1e0)},{'id':_0x579934(0x22f),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x23a))]),'prompt':_0x579934(0x1cd)},{'id':_0x579934(0x206),'label':_0x52a1a6(_0x559f2c,_0x579934(0x21f),[_0x52a1a6(_0x559f2c,_0x579934(0x213))]),'prompt':_0x579934(0x1ce)}]}];}
23
+ function _0x3634(){const _0x1a4450=['_licenseKeyCheckInterval','translateHindi','translateChinese','ai-trial-license-key-reached-limit-changes','Journalism','set','push','Direct','English','destroy','Improve\x20writing','changeTone','groupId','5213625tSvdQM','casual','translateFrench','Arabic','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','8031141jRRIAV','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','init','7549297eVtBjs','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','162cKORBA','Make\x20shorter','4292EzdGKk','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Simplified\x20Chinese','109900iNbgbb','journalism','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Summarize','AIAssistant','Generate\x20from\x20selection','Continue','includes','French','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Change\x20style','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.commands','29320960pTNyHw','Hindi','makeLonger','translatePortuguese','business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','licenseKey','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','3813440sZRrri','translateEnglish','continue','ai.aiAssistant.extraCommandGroups','improveWriting','requires','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20Hindi\x20language.','forEach','confident','ai.aiAssistant.removeCommands','translateGerman','translateArabic','aiLicenseKeyInvalid','Change\x20tone','info','summarize','Translate\x20the\x20content\x20to\x20English\x20language.','aiLicenseKeyTrialLimit:operations','Portuguese','6YTEGGi','Friendly','German','friendly','Business','Legal','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','simplifyLanguage','changeStyle','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Professional','Translate','aiLicenseKeyValid','legal','concat','Translate\x20the\x20content\x20to\x20Arabic\x20language.','makeShorter','editor','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','editOrReview','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','122YnFGXD','generate','define','translate','aiLicenseKeyTrial','get','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','filter','ai-invalid-license-key','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.','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','find','translateSpanish','Simplify\x20language','professional','Confident','config','Make\x20longer','locale','Spanish','commands','Poetic','Casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'];_0x3634=function(){return _0x1a4450;};return _0x3634();}const _0xd9c485=_0x350f;(function(_0x2bf3cb,_0x2c869c){const _0x1dfd3e=_0x350f,_0x3e3fd5=_0x2bf3cb();while(!![]){try{const _0x591cb2=-parseInt(_0x1dfd3e(0x11c))/0x1*(-parseInt(_0x1dfd3e(0xd6))/0x2)+-parseInt(_0x1dfd3e(0xd4))/0x3*(parseInt(_0x1dfd3e(0xd9))/0x4)+parseInt(_0x1dfd3e(0xc9))/0x5*(-parseInt(_0x1dfd3e(0x105))/0x6)+-parseInt(_0x1dfd3e(0xd2))/0x7+parseInt(_0x1dfd3e(0xf1))/0x8+parseInt(_0x1dfd3e(0xcf))/0x9+parseInt(_0x1dfd3e(0xe9))/0xa;if(_0x591cb2===_0x2c869c)break;else _0x3e3fd5['push'](_0x3e3fd5['shift']());}catch(_0x5f455b){_0x3e3fd5['push'](_0x3e3fd5['shift']());}}}(_0x3634,0xe9e8b));function _0x350f(_0x48bf5c,_0x137e39){const _0x363421=_0x3634();return _0x350f=function(_0x350fd4,_0x538139){_0x350fd4=_0x350fd4-0xc3;let _0x4a730e=_0x363421[_0x350fd4];return _0x4a730e;},_0x350f(_0x48bf5c,_0x137e39);}import{CKEditorError as _0x1234f9}from'ckeditor5/src/utils.js';import{Plugin as _0xd8c7a7}from'ckeditor5/src/core.js';import _0x451a2a from'./aiassistantui.js';import _0xef44a1 from'./aiassistantediting.js';import{getTranslation as _0x1d54fd}from'./utils/common-translations.js';export default class r extends _0xd8c7a7{static get[_0xd9c485(0xf6)](){return[_0x451a2a,_0xef44a1];}static get[_0xd9c485(0xe4)](){const _0x2d6ddc=_0xd9c485;return _0x2d6ddc(0xde);}constructor(_0x27dcf6){const _0x3b2f91=_0xd9c485;super(_0x27dcf6);const _0x5e2f6d=_0x27dcf6[_0x3b2f91(0x12e)];_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xe8),getDefaultCommands(_0x27dcf6[_0x3b2f91(0x130)])),_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xf4),[]),_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xfb),[]);const _0x3cea89=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xe8)),_0x564e7c=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xf4)),_0x2bdede=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xfb));_0x564e7c[_0x3b2f91(0xf9)](_0x5dc309=>{const _0x395cc4=_0x3b2f91,_0x1fbd87=_0x3cea89[_0x395cc4(0x129)](_0x4283f4=>_0x4283f4[_0x395cc4(0xc8)]===_0x5dc309[_0x395cc4(0xc8)]);_0x1fbd87?_0x1fbd87[_0x395cc4(0x132)]=_0x1fbd87[_0x395cc4(0x132)][_0x395cc4(0x114)](_0x5dc309[_0x395cc4(0x132)]):_0x3cea89[_0x395cc4(0x13c)](_0x5dc309);}),_0x3cea89[_0x3b2f91(0xf9)](_0x114172=>{const _0x541101=_0x3b2f91;_0x114172[_0x541101(0x132)]=_0x114172[_0x541101(0x132)][_0x541101(0x123)](_0x227d68=>!_0x2bdede[_0x541101(0xe1)](_0x227d68['id']));}),_0x5e2f6d[_0x3b2f91(0x13b)](_0x3b2f91(0xe8),_0x3cea89);}[_0xd9c485(0xd1)](){const _0x48656b=_0xd9c485,_0x3a08c5=this[_0x48656b(0x117)];this[_0x48656b(0xef)]=_0x3a08c5[_0x48656b(0x12e)][_0x48656b(0x121)](_0x48656b(0xef)),this[_0x48656b(0x136)]=setInterval(()=>{const _0x8c8d53=_0x48656b;let _0x4ab2e6;for(const _0x14f259 in _0x3a08c5){const _0x42bbe7=_0x14f259,_0x3af805=_0x3a08c5[_0x42bbe7];if(_0x8c8d53(0x120)===_0x3af805||_0x8c8d53(0xfe)===_0x3af805||_0x8c8d53(0x112)===_0x3af805||_0x8c8d53(0x103)===_0x3af805){delete _0x3a08c5[_0x42bbe7],_0x4ab2e6=_0x3af805;break;}}if(_0x8c8d53(0xfe)===_0x4ab2e6)throw clearInterval(this[_0x8c8d53(0x136)]),new _0x1234f9(_0x8c8d53(0x124),null);if(_0x8c8d53(0x120)===_0x4ab2e6&&console[_0x8c8d53(0x100)](_0x8c8d53(0x125)),_0x8c8d53(0x103)===_0x4ab2e6)throw clearInterval(this[_0x8c8d53(0x136)]),new _0x1234f9(_0x8c8d53(0x139),null);_0x8c8d53(0x112)===_0x4ab2e6&&clearInterval(this[_0x8c8d53(0x136)]);},0x3e8);}[_0xd9c485(0xc5)](){const _0x2e3e1b=_0xd9c485;this[_0x2e3e1b(0x136)]&&clearInterval(this[_0x2e3e1b(0x136)]);}}export function getDefaultCommands(_0x558e92){const _0x5a4f38=_0xd9c485;return[{'groupId':_0x5a4f38(0x119),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xf7)),'commands':[{'id':_0x5a4f38(0xf5),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xc6)),'prompt':_0x5a4f38(0x118)},{'id':_0x5a4f38(0x116),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xd5)),'prompt':_0x5a4f38(0xce)},{'id':_0x5a4f38(0xeb),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12f)),'prompt':_0x5a4f38(0xe7)},{'id':_0x5a4f38(0x10d),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12b)),'prompt':_0x5a4f38(0xee)}]},{'groupId':_0x5a4f38(0x11d),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xdf)),'commands':[{'id':_0x5a4f38(0x101),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xdd)),'prompt':_0x5a4f38(0xd0)},{'id':_0x5a4f38(0xf3),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xe0)),'prompt':_0x5a4f38(0x135)}]},{'groupId':_0x5a4f38(0xc7),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xff)),'commands':[{'id':_0x5a4f38(0x12c),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x110)),'prompt':_0x5a4f38(0x122)},{'id':_0x5a4f38(0xca),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x134)),'prompt':_0x5a4f38(0x10b)},{'id':_0x5a4f38(0x128),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xc3)),'prompt':_0x5a4f38(0xe5)},{'id':_0x5a4f38(0xfa),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12d)),'prompt':_0x5a4f38(0x10f)},{'id':_0x5a4f38(0x108),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x106)),'prompt':_0x5a4f38(0x10c)}]},{'groupId':_0x5a4f38(0x10e),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xe6)),'commands':[{'id':_0x5a4f38(0xed),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x109)),'prompt':_0x5a4f38(0xf0)},{'id':_0x5a4f38(0x113),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x10a)),'prompt':_0x5a4f38(0x127)},{'id':_0x5a4f38(0xda),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x13a)),'prompt':_0x5a4f38(0xd3)},{'id':_0x5a4f38(0xcd),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x133)),'prompt':_0x5a4f38(0xe3)}]},{'groupId':_0x5a4f38(0x11f),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0x111)),'commands':[{'id':_0x5a4f38(0xf2),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xc4))]),'prompt':_0x5a4f38(0x102)},{'id':_0x5a4f38(0x12a),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x131))]),'prompt':_0x5a4f38(0xdc)},{'id':_0x5a4f38(0xec),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x104))]),'prompt':_0x5a4f38(0xdb)},{'id':_0x5a4f38(0xfc),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x107))]),'prompt':_0x5a4f38(0x11a)},{'id':_0x5a4f38(0xcb),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xe2))]),'prompt':_0x5a4f38(0x11b)},{'id':_0x5a4f38(0x138),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xd8))]),'prompt':_0x5a4f38(0xd7)},{'id':_0x5a4f38(0x137),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xea))]),'prompt':_0x5a4f38(0xf8)},{'id':_0x5a4f38(0xfd),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xcc))]),'prompt':_0x5a4f38(0x115)}]}];}