@ckeditor/ckeditor5-ai 0.0.0-nightly-20240410.0 → 0.0.0-nightly-20240412.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-20240410.0",
3
+ "version": "0.0.0-nightly-20240412.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-20240410.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240410.0",
26
+ "ckeditor5": "0.0.0-nightly-20240412.0",
27
+ "ckeditor5-collaboration": "0.0.0-nightly-20240412.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240410.0",
29
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240412.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
+ var _0x5a80ff=_0x53f4;(function(_0x48c1ee,_0x52fea5){var _0xe507fe=_0x53f4,_0x510f81=_0x48c1ee();while(!![]){try{var _0x196b1c=parseInt(_0xe507fe(0x1a4))/0x1+parseInt(_0xe507fe(0x1a6))/0x2+-parseInt(_0xe507fe(0x1a0))/0x3+-parseInt(_0xe507fe(0x1a3))/0x4+-parseInt(_0xe507fe(0x1a9))/0x5*(-parseInt(_0xe507fe(0x19e))/0x6)+parseInt(_0xe507fe(0x19d))/0x7*(parseInt(_0xe507fe(0x1a8))/0x8)+-parseInt(_0xe507fe(0x1a5))/0x9*(-parseInt(_0xe507fe(0x19a))/0xa);if(_0x196b1c===_0x52fea5)break;else _0x510f81['push'](_0x510f81['shift']());}catch(_0x3b0b7d){_0x510f81['push'](_0x510f81['shift']());}}}(_0x4fa3,0x9dcbd));import{Plugin as _0x4a200c}from'ckeditor5/src/core.js';function _0x4fa3(){var _0x36af4e=['7tzmsDD','42kSXqXQ','AIRequestError','3578223BdlzjQ','afterInit','textAdapter','3859608dCPfXb','1105346bbYLbr','2623338ExTJnB','1412020hiiwyq','pluginName','5177288oIINVz','38555NPtfsy','name','10xmjkuQ','aiadapter-text-adapter-not-set','AIAdapter'];_0x4fa3=function(){return _0x36af4e;};return _0x4fa3();}function _0x53f4(_0x5600ea,_0x35f69f){var _0x4fa3f7=_0x4fa3();return _0x53f4=function(_0x53f4b1,_0x336c57){_0x53f4b1=_0x53f4b1-0x19a;var _0x1bd645=_0x4fa3f7[_0x53f4b1];return _0x1bd645;},_0x53f4(_0x5600ea,_0x35f69f);}import{CKEditorError as _0x5572c0}from'ckeditor5/src/utils.js';export default class v extends _0x4a200c{static get[_0x5a80ff(0x1a7)](){var _0x23befd=_0x5a80ff;return _0x23befd(0x19c);}[_0x5a80ff(0x1a1)](){var _0x1fb4b1=_0x5a80ff;if(!this[_0x1fb4b1(0x1a2)])throw new _0x5572c0(_0x1fb4b1(0x19b),null);}}export class AIRequestError extends Error{constructor(_0x3bf064){var _0x569c47=_0x5a80ff;super(_0x3bf064),this[_0x569c47(0x1aa)]=_0x569c47(0x19f);}}
@@ -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
+ function _0x1f9f(_0x565f3,_0x3265d6){const _0x134e2f=_0x134e();return _0x1f9f=function(_0x1f9fa0,_0x1ca787){_0x1f9fa0=_0x1f9fa0-0x123;let _0x208c9c=_0x134e2f[_0x1f9fa0];return _0x208c9c;},_0x1f9f(_0x565f3,_0x3265d6);}const _0x262355=_0x1f9f;(function(_0x108b21,_0x2b072f){const _0xa9bd4b=_0x1f9f,_0xcd5f96=_0x108b21();while(!![]){try{const _0x384cc1=parseInt(_0xa9bd4b(0x136))/0x1+-parseInt(_0xa9bd4b(0x141))/0x2+-parseInt(_0xa9bd4b(0x124))/0x3*(parseInt(_0xa9bd4b(0x12a))/0x4)+parseInt(_0xa9bd4b(0x130))/0x5*(parseInt(_0xa9bd4b(0x12c))/0x6)+parseInt(_0xa9bd4b(0x12d))/0x7*(-parseInt(_0xa9bd4b(0x137))/0x8)+parseInt(_0xa9bd4b(0x140))/0x9*(-parseInt(_0xa9bd4b(0x142))/0xa)+-parseInt(_0xa9bd4b(0x128))/0xb*(-parseInt(_0xa9bd4b(0x12e))/0xc);if(_0x384cc1===_0x2b072f)break;else _0xcd5f96['push'](_0xcd5f96['shift']());}catch(_0x174897){_0xcd5f96['push'](_0xcd5f96['shift']());}}}(_0x134e,0x63b12));import{Plugin as _0x409fe4}from'ckeditor5/src/core.js';import{CKEditorError as _0x40407d}from'ckeditor5/src/utils.js';import{default as _0x56b753,AIRequestError as _0x106711}from'./aiadapter.js';import{getTranslation as _0x4fec34}from'../utils/common-translations.js';export default class P extends _0x409fe4{static get[_0x262355(0x126)](){return[_0x56b753];}constructor(_0x38c7d0){const _0x4e6d0b=_0x262355;super(_0x38c7d0),this[_0x4e6d0b(0x129)]=new AbortController();}[_0x262355(0x12f)](){const _0x3dc99f=_0x262355;this[_0x3dc99f(0x147)][_0x3dc99f(0x132)][_0x3dc99f(0x134)](_0x56b753)[_0x3dc99f(0x135)]=this;}[_0x262355(0x13f)](){const _0x4fcc7d=_0x262355;this[_0x4fcc7d(0x129)][_0x4fcc7d(0x13d)][_0x4fcc7d(0x133)]||(this[_0x4fcc7d(0x129)][_0x4fcc7d(0x13f)](),this[_0x4fcc7d(0x129)]=new AbortController());}async[_0x262355(0x13a)](_0x2d4870){const _0x103e08=_0x262355;return this[_0x103e08(0x123)](_0x2d4870)[_0x103e08(0x139)](_0x43d02a=>{const _0x1872aa=_0x103e08;if(_0x43d02a instanceof _0x106711)return Promise[_0x1872aa(0x145)](_0x43d02a);if(_0x1872aa(0x12b)==_0x43d02a[_0x1872aa(0x125)])return Promise[_0x1872aa(0x149)]();throw console[_0x1872aa(0x148)](_0x43d02a),new _0x40407d(_0x1872aa(0x13b),null);});}async[_0x262355(0x13c)](_0x56e7b4,_0x83a5be){const _0x14121f=_0x262355,_0x3d5080=this[_0x14121f(0x147)][_0x14121f(0x131)],_0x18b1a1={'Content-Type':_0x14121f(0x146)};if(_0x14121f(0x127)==typeof _0x56e7b4)Object[_0x14121f(0x143)](_0x18b1a1,_0x56e7b4);else{if(_0x56e7b4)try{const _0x25a649=await _0x56e7b4(_0x83a5be);Object[_0x14121f(0x143)](_0x18b1a1,_0x25a649);}catch(_0x1f2ed2){return Promise[_0x14121f(0x145)](new _0x106711(_0x4fec34(_0x3d5080,_0x14121f(0x13e))));}}return _0x18b1a1;}async[_0x262355(0x144)](_0x40acef,_0x74a361){const _0x2ce376=_0x262355,_0x8253cc=this[_0x2ce376(0x147)][_0x2ce376(0x131)];if(_0x2ce376(0x127)==typeof _0x40acef)return _0x40acef;try{return await _0x40acef(_0x74a361);}catch(_0x5ed5c6){return Promise[_0x2ce376(0x145)](new _0x106711(_0x4fec34(_0x8253cc,_0x2ce376(0x138))));}}}function _0x134e(){const _0x59f357=['textAdapter','238541OKginE','1477704lSJsDh','AI_ERROR_GET_PARAMETERS','catch','makeRequest','aitextadapter-send-request-failed','_prepareRequestHeaders','signal','AI_ERROR_GET_HEADERS','abort','45BDSEnn','865866KsgGkW','925030ezXDKC','assign','_prepareRequestParameters','reject','application/json','editor','error','resolve','sendRequest','117LZzbbL','name','requires','object','16182694EzTlwA','abortController','57540NHUXDy','AbortError','2994GTWcYM','7pmYXro','12WANQsw','init','3405XcFeaf','locale','plugins','aborted','get'];_0x134e=function(){return _0x59f357;};return _0x134e();}
@@ -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 _0x1cb1be=_0x56f4;(function(_0x3fe7ed,_0x4d95dd){const _0x3c6b20=_0x56f4,_0x53fc94=_0x3fe7ed();while(!![]){try{const _0x47d327=parseInt(_0x3c6b20(0x17c))/0x1+-parseInt(_0x3c6b20(0x161))/0x2+-parseInt(_0x3c6b20(0x152))/0x3*(parseInt(_0x3c6b20(0x168))/0x4)+-parseInt(_0x3c6b20(0x16c))/0x5*(-parseInt(_0x3c6b20(0x178))/0x6)+-parseInt(_0x3c6b20(0x15d))/0x7*(parseInt(_0x3c6b20(0x166))/0x8)+parseInt(_0x3c6b20(0x189))/0x9+parseInt(_0x3c6b20(0x163))/0xa*(-parseInt(_0x3c6b20(0x175))/0xb);if(_0x47d327===_0x4d95dd)break;else _0x53fc94['push'](_0x53fc94['shift']());}catch(_0x334bf5){_0x53fc94['push'](_0x53fc94['shift']());}}}(_0x57f9,0x2f931));import{default as _0x2031bb}from'./aitextadapter.js';function _0x57f9(){const _0x55677d=['307723BdzcLi','stringify','bytes','generations','send','_requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','body','define','_apiUrl','_prepareRequestParameters','getModelFamily','\x0a<</SYS>>\x0a[INST]\x0a','3225780lJsReo','ai.aws.requestHeaders','completion','editor','ai.aws.apiUrl','_bedrockClientConfig','config','bedrock-2023-05-31','_readStreamableResponse','AWSTextAdapter','toString','_getGeneratedText','text','filter','length','_processAWSRequest','signal','_processProxyRequest','POST','test','join','preparePrompt','application/json','\x0a\x0aAssistant:','_readAsyncIterableResponse','chunk','ai21.j2','anthropic.claude','split','60qihbew','sendRequest','read','Human:\x0a','get','json','resolve','map','_prepareRequestHeaders','data','_readStaticResponse','3262niEWeA','abortController','utf-8','ai.aws.requestParameters','377132VvinNV','AI_ERROR_UNSUPPORTED_MODEL','3350420aoVGTd','anthropic.claude-v2','\x0a[/INST]','376wUFDLv','Instruction:\x0a','280NyBInY','from','meta.llama','locale','3260IhGFxG','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestParameters','utf8','cohere.command','<<SYS>>\x0a','pluginName','parse','decode','11yntlhC','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.bedrockClientConfig','696tjwBXh','generation','getReader','completions'];_0x57f9=function(){return _0x55677d;};return _0x57f9();}function _0x56f4(_0xf96fa6,_0x5eebda){const _0x57f9c2=_0x57f9();return _0x56f4=function(_0x56f4c7,_0x223d42){_0x56f4c7=_0x56f4c7-0x144;let _0x319529=_0x57f9c2[_0x56f4c7];return _0x319529;},_0x56f4(_0xf96fa6,_0x5eebda);}import{AIRequestError as _0x5ee3ef}from'./aiadapter.js';import{BedrockRuntimeClient as _0x52f23f,InvokeModelCommand as _0x39774c,InvokeModelWithResponseStreamCommand as _0x568fa2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0xf7e75e}from'../utils/common-translations.js';export default class Y extends _0x2031bb{static get[_0x1cb1be(0x172)](){const _0x3fe92f=_0x1cb1be;return _0x3fe92f(0x192);}constructor(_0x81109a){const _0x4296f6=_0x1cb1be;super(_0x81109a),_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x160))||_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x184)](_0x4296f6(0x160),{'model':_0x4296f6(0x164),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4296f6(0x190),'stream':!0x0}),this[_0x4296f6(0x185)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x18d)),this[_0x4296f6(0x18e)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x177)),this[_0x4296f6(0x181)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x18a)),this[_0x4296f6(0x16e)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x160));}async[_0x1cb1be(0x153)]({query:_0x46c3eb,context:_0x1eeee1,onData:_0x1cdc0c,actionId:_0x28d185}){const _0x24d994=_0x1cb1be,{model:_0x2fc8fe,stream:_0x55e03a,..._0x2f3ae4}=await this[_0x24d994(0x186)](this[_0x24d994(0x16e)],_0x28d185),_0x50a2d9={'prompt':await this[_0x24d994(0x14a)](_0x46c3eb,_0x1eeee1,_0x2fc8fe,_0x28d185),..._0x2f3ae4};this[_0x24d994(0x185)]?await this[_0x24d994(0x146)](_0x50a2d9,_0x2fc8fe,_0x55e03a,_0x1cdc0c,_0x28d185):await this[_0x24d994(0x144)](_0x50a2d9,_0x2fc8fe,_0x55e03a,_0x1cdc0c);}async[_0x1cb1be(0x14a)](_0x457069,_0x577c19,_0x588cd8,_0xca6a28){const _0x41471f=_0x1cb1be;let _0x3e7c2d,_0x33c587;return _0x577c19?(_0x3e7c2d=_0x41471f(0x182),_0x33c587=_0x41471f(0x167)+_0x457069+_0x41471f(0x16d)+_0x577c19):(_0x3e7c2d=_0x41471f(0x176),_0x33c587=_0x457069),_0x41471f(0x16a)==this[_0x41471f(0x187)](_0x588cd8)?_0x41471f(0x171)+_0x3e7c2d+_0x41471f(0x188)+_0x33c587+_0x41471f(0x165):_0x41471f(0x155)+_0x3e7c2d+'\x0a'+_0x33c587+_0x41471f(0x14c);}[_0x1cb1be(0x187)](_0x15b1eb){const _0x2b8264=_0x1cb1be;if(/^anthropic\.claude/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x150);if(/^ai21\.j2/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x14f);if(/^cohere\.command/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x170);if(/^meta\.llama/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x16a);throw new _0x5ee3ef(_0xf7e75e(this[_0x2b8264(0x18c)][_0x2b8264(0x16b)],_0x2b8264(0x162),_0x15b1eb));}async[_0x1cb1be(0x146)](_0x3fe688,_0x52f6ee,_0x37fc4a,_0x49143d,_0xff6a57){const _0x48b073=_0x1cb1be,_0x319a27={'method':_0x48b073(0x147),'headers':await this[_0x48b073(0x15a)](this[_0x48b073(0x181)],_0xff6a57),'body':JSON[_0x48b073(0x17d)]({..._0x3fe688,'model':_0x52f6ee,'stream':_0x37fc4a}),'signal':this[_0x48b073(0x15e)][_0x48b073(0x145)]},_0x4b60f7=await fetch(this[_0x48b073(0x185)],_0x319a27);_0x37fc4a?await this[_0x48b073(0x191)](_0x4b60f7,_0x52f6ee,_0x49143d):await this[_0x48b073(0x15c)](_0x4b60f7,_0x52f6ee,_0x49143d);}async[_0x1cb1be(0x144)](_0x446677,_0x567fd4,_0x5112ce,_0x308e8d){const _0x251f3d=_0x1cb1be,_0x2424b0=new _0x52f23f(this[_0x251f3d(0x18e)]),_0x5e85a4={'body':JSON[_0x251f3d(0x17d)](_0x446677),'contentType':_0x251f3d(0x14b),'accept':_0x251f3d(0x14b),'modelId':_0x567fd4};let _0x3d8a44;if(_0x5112ce){const _0x5dc8d8=new _0x568fa2(_0x5e85a4);_0x3d8a44=await _0x2424b0[_0x251f3d(0x180)](_0x5dc8d8,{'abortSignal':this[_0x251f3d(0x15e)][_0x251f3d(0x145)]}),await this[_0x251f3d(0x14d)](_0x3d8a44,_0x567fd4,_0x308e8d);}else{const _0x4d4c5c=new _0x39774c(_0x5e85a4);_0x3d8a44=await _0x2424b0[_0x251f3d(0x180)](_0x4d4c5c,{'abortSignal':this[_0x251f3d(0x15e)][_0x251f3d(0x145)]}),await this[_0x251f3d(0x15c)](_0x3d8a44,_0x567fd4,_0x308e8d);}}async[_0x1cb1be(0x14d)](_0x1c153e,_0x544603,_0x51549a){const _0xf07c7a=_0x1cb1be,_0x2f8768=_0x1c153e[_0xf07c7a(0x183)],_0x4604d9=new TextDecoder(_0xf07c7a(0x15f));let _0x3ea28a='';for await(const _0xffe072 of _0x2f8768)if(_0xffe072[_0xf07c7a(0x14e)]){const _0x5f4f1f=_0x4604d9[_0xf07c7a(0x174)](_0xffe072[_0xf07c7a(0x14e)][_0xf07c7a(0x17e)]),_0x16001e=JSON[_0xf07c7a(0x173)](_0x5f4f1f);_0x3ea28a+=this[_0xf07c7a(0x194)](_0x16001e,_0x544603),_0x51549a(_0x3ea28a);}return Promise[_0xf07c7a(0x158)]();}async[_0x1cb1be(0x191)](_0x5c1ad4,_0x4c8b83,_0x49d4d9){const _0x457cbf=_0x1cb1be,_0x520b62=_0x5c1ad4[_0x457cbf(0x183)],_0x578eb3=new TextDecoder(_0x457cbf(0x15f)),_0x58f288=_0x520b62[_0x457cbf(0x17a)]();let _0x285d04='',_0x3840f5='',_0x34f46c=!0x1;for(;!_0x34f46c;){const {done:_0x5f06d5,value:_0x607e8d}=await _0x58f288[_0x457cbf(0x154)]();if(_0x34f46c=_0x5f06d5,_0x34f46c)break;const _0x12cbe5=(_0x285d04+_0x578eb3[_0x457cbf(0x174)](_0x607e8d))[_0x457cbf(0x151)]('\x0a')[_0x457cbf(0x159)](_0x587132=>{const _0x73a869=_0x457cbf;try{return _0x285d04='',JSON[_0x73a869(0x173)](_0x587132);}catch(_0x7fc46e){return _0x285d04=_0x587132,null;}})[_0x457cbf(0x196)](_0x5c560b=>null!==_0x5c560b);_0x12cbe5[_0x457cbf(0x197)]&&(_0x3840f5+=_0x12cbe5[_0x457cbf(0x159)](_0x160fa8=>this[_0x457cbf(0x194)](_0x160fa8,_0x4c8b83))[_0x457cbf(0x149)](''),_0x49d4d9(_0x3840f5));}return Promise[_0x457cbf(0x158)]();}async[_0x1cb1be(0x15c)](_0xece36e,_0x2e6d58,_0x20d6fd){const _0x6ecc7=_0x1cb1be;let _0xe8ab71;return _0xe8ab71=_0xece36e instanceof Response?await _0xece36e[_0x6ecc7(0x157)]():JSON[_0x6ecc7(0x173)](Buffer[_0x6ecc7(0x169)](_0xece36e[_0x6ecc7(0x183)])[_0x6ecc7(0x193)](_0x6ecc7(0x16f))),(_0x20d6fd(this[_0x6ecc7(0x194)](_0xe8ab71,_0x2e6d58)),Promise[_0x6ecc7(0x158)]());}[_0x1cb1be(0x194)](_0x168825,_0x6e4307){const _0x50e75b=_0x1cb1be;switch(this[_0x50e75b(0x187)](_0x6e4307)){case _0x50e75b(0x150):return _0x168825[_0x50e75b(0x18b)];case _0x50e75b(0x14f):return _0x168825[_0x50e75b(0x17b)][0x0][_0x50e75b(0x15b)][_0x50e75b(0x195)];case _0x50e75b(0x170):return _0x168825[_0x50e75b(0x17f)][0x0][_0x50e75b(0x195)];case _0x50e75b(0x16a):return _0x168825[_0x50e75b(0x179)];}}}
@@ -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
+ const _0x356b01=_0x59c1;(function(_0x3ef405,_0x4e0b48){const _0x3fc462=_0x59c1,_0x34d501=_0x3ef405();while(!![]){try{const _0x1736b8=parseInt(_0x3fc462(0x1a3))/0x1*(-parseInt(_0x3fc462(0x196))/0x2)+parseInt(_0x3fc462(0x1a9))/0x3+parseInt(_0x3fc462(0x1b1))/0x4+parseInt(_0x3fc462(0x1bd))/0x5+-parseInt(_0x3fc462(0x1bb))/0x6+parseInt(_0x3fc462(0x179))/0x7*(parseInt(_0x3fc462(0x1b0))/0x8)+-parseInt(_0x3fc462(0x19d))/0x9;if(_0x1736b8===_0x4e0b48)break;else _0x34d501['push'](_0x34d501['shift']());}catch(_0x553bbf){_0x34d501['push'](_0x34d501['shift']());}}}(_0x2ffb,0x20a26));import{default as _0x485ceb}from'./aitextadapter.js';function _0x59c1(_0x5ce518,_0xa9f295){const _0x2ffbd1=_0x2ffb();return _0x59c1=function(_0x59c15a,_0x1a6bef){_0x59c15a=_0x59c15a-0x179;let _0x215456=_0x2ffbd1[_0x59c15a];return _0x215456;},_0x59c1(_0x5ce518,_0xa9f295);}import{AIRequestError as _0xa5598c}from'./aiadapter.js';import{getTranslation as _0x2753ba}from'../utils/common-translations.js';function _0x2ffb(){const _0x2b4726=['1433916uCYXxG','filter','258180szfknr','14flaHtp','_readStreamableResponse','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.','get','_readStaticResponse','OpenAITextAdapter','json','Instruction:\x0a','editor','gpt-3.5-turbo','_requestHeaders','parse','user','split','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.','_prepareRequestParameters','map','stream','AI_ERROR_MODERATION','ai.openAI.requestHeaders','signal','message','includes','content','text','body','_isBufferIncomplete','getReader','stringify','4612UeBmFY','AI_ERROR_CONTEXT_LENGTH','config','length','data:\x20','define','_apiUrl','398565qsustf','join','sendRequest','choices','reject','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','22OjSkkn','_requestParameters','prepareMessages','decode','resolve','_cleanUpData','234783lUGvTv','context_length_exceeded','pluginName','[DONE]','system','ai.openAI.apiUrl','locale','636176fljqRW','714928jADzJm','Moderation','delta','https://api.openai.com/v1/chat/completions','replace','abortController','ai.openAI.requestParameters','POST','_prepareRequestHeaders','read'];_0x2ffb=function(){return _0x2b4726;};return _0x2ffb();}export default class J extends _0x485ceb{static get[_0x356b01(0x1ab)](){const _0x450331=_0x356b01;return _0x450331(0x17e);}constructor(_0x299c61){const _0x1efc1c=_0x356b01;super(_0x299c61),_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x19b)](_0x1efc1c(0x1ae),_0x1efc1c(0x1b4)),_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1b7))||_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x19b)](_0x1efc1c(0x1b7),{'model':_0x1efc1c(0x182),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1efc1c(0x19c)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1ae)),this[_0x1efc1c(0x183)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x18c))||{},this[_0x1efc1c(0x1a4)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1b7));}async[_0x356b01(0x19f)]({query:_0x9fdf0a,context:_0x4fec72,onData:_0x4956a7,actionId:_0x329f99}){const _0x1626a2=_0x356b01,_0x3522b6=this[_0x1626a2(0x181)][_0x1626a2(0x1af)],_0x1a7036=await this[_0x1626a2(0x1a5)](_0x9fdf0a,_0x4fec72,_0x329f99),_0x4332f9=await this[_0x1626a2(0x1b9)](this[_0x1626a2(0x183)],_0x329f99),_0x44d46f=await this[_0x1626a2(0x188)](this[_0x1626a2(0x1a4)],_0x329f99),_0xf6daa5={'messages':_0x1a7036,..._0x44d46f},_0x216ffb={'method':_0x1626a2(0x1b8),'headers':_0x4332f9,'body':JSON[_0x1626a2(0x195)](_0xf6daa5),'signal':this[_0x1626a2(0x1b6)][_0x1626a2(0x18d)]},_0x23597e=await fetch(this[_0x1626a2(0x19c)],_0x216ffb);if(_0x23597e['ok'])return _0x44d46f[_0x1626a2(0x18a)]?await this[_0x1626a2(0x17a)](_0x23597e,_0x4956a7):await this[_0x1626a2(0x17d)](_0x23597e,_0x4956a7),Promise[_0x1626a2(0x1a7)]();{const _0x1080f7=await _0x23597e[_0x1626a2(0x191)]();return _0x1080f7[_0x1626a2(0x18f)](_0x1626a2(0x1aa))?Promise[_0x1626a2(0x1a1)](new _0xa5598c(_0x2753ba(_0x3522b6,_0x1626a2(0x197)))):_0x1080f7[_0x1626a2(0x18f)](_0x1626a2(0x1b2))?Promise[_0x1626a2(0x1a1)](new _0xa5598c(_0x2753ba(_0x3522b6,_0x1626a2(0x18b)))):Promise[_0x1626a2(0x1a1)](new Error(_0x1080f7));}}async[_0x356b01(0x1a5)](_0x338682,_0x3de8a7,_0x4a6c0d){const _0x5a77b3=_0x356b01;let _0x5357e8,_0x107868;return _0x3de8a7?(_0x5357e8=_0x5a77b3(0x17b),_0x107868=_0x5a77b3(0x180)+_0x338682+_0x5a77b3(0x1a2)+_0x3de8a7):(_0x5357e8=_0x5a77b3(0x187),_0x107868=_0x338682),[{'role':_0x5a77b3(0x1ad),'content':_0x5357e8},{'role':_0x5a77b3(0x185),'content':_0x107868}];}async[_0x356b01(0x17a)](_0x509c65,_0x37382a){const _0x501f83=_0x356b01,_0xcdb650=_0x509c65[_0x501f83(0x192)][_0x501f83(0x194)](),_0x4f34af=new TextDecoder();let _0x24b7d0='',_0xc804f6='',_0x50701d='',_0x549890=!0x1;for(;!_0x549890;){const {done:_0x562817,value:_0x89783d}=await _0xcdb650[_0x501f83(0x1ba)](),_0x588e2d=_0x24b7d0+_0x4f34af[_0x501f83(0x1a6)](_0x89783d);let _0x4d551d='';_0x549890=_0x562817;try{_0x4d551d=this[_0x501f83(0x1a8)](_0x588e2d),_0x24b7d0='';}catch(_0x40b680){_0x24b7d0=_0x588e2d;continue;}_0xc804f6+=_0x4d551d,!_0x549890&&this[_0x501f83(0x193)](_0xc804f6)||_0xc804f6&&(_0x50701d+=_0xc804f6,_0xc804f6='',_0x37382a(_0x50701d));}return Promise[_0x501f83(0x1a7)]();}async[_0x356b01(0x17d)](_0x2b394b,_0x4bf3bd){const _0x1430b1=_0x356b01;return _0x4bf3bd((await _0x2b394b[_0x1430b1(0x17f)]())[_0x1430b1(0x1a0)][0x0][_0x1430b1(0x18e)][_0x1430b1(0x190)]),Promise[_0x1430b1(0x1a7)]();}[_0x356b01(0x193)](_0x31ace4){const _0x2fdd96=_0x356b01,_0x13777e=_0x31ace4[_0x2fdd96(0x186)]('<')[_0x2fdd96(0x199)]!==_0x31ace4[_0x2fdd96(0x186)]('>')[_0x2fdd96(0x199)],_0x40355d=_0x31ace4[_0x2fdd96(0x199)]<0x1e;return _0x13777e&&_0x40355d;}[_0x356b01(0x1a8)](_0x212110){const _0x4e23a2=_0x356b01;return _0x212110[_0x4e23a2(0x186)](/\n(?![^{]*\})/g)[_0x4e23a2(0x189)](_0x3c8016=>_0x3c8016[_0x4e23a2(0x1b5)](_0x4e23a2(0x19a),''))[_0x4e23a2(0x1bc)](_0x349415=>_0x349415&&_0x349415[_0x4e23a2(0x199)]>0x0&&_0x4e23a2(0x1ac)!==_0x349415)[_0x4e23a2(0x189)](_0x19ac2a=>{const _0x4816b8=_0x4e23a2,{choices:_0xc8946c}=JSON[_0x4816b8(0x184)](_0x19ac2a);if(_0xc8946c[0x0]&&_0xc8946c[0x0][_0x4816b8(0x1b3)]&&_0xc8946c[0x0][_0x4816b8(0x1b3)][_0x4816b8(0x190)])return _0xc8946c[0x0][_0x4816b8(0x1b3)][_0x4816b8(0x190)];})[_0x4e23a2(0x1bc)](_0x13564b=>_0x13564b)[_0x4e23a2(0x19e)]('');}}
@@ -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
+ const _0x4f56a5=_0x5521;function _0x2fae(){const _0x1566e4=['Business','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','20983730VFeVfr','Friendly','Translate\x20the\x20content\x20to\x20French\x20language.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Spanish','aiLicenseKeyValid','3968352RVwxos','AIAssistant','Casual','aiLicenseKeyTrial','translate','professional','commands','confident','direct','Direct','push','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.','translateEnglish','Continue','casual','get','Translate','_licenseKeyCheckInterval','config','Confident','Hindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','changeTone','editor','Legal','3320595avJdEt','417114wfEzIJ','info','Summarize','summarize','continue','set','changeStyle','Make\x20shorter','Professional','Change\x20tone','concat','includes','28SponUs','Edit\x20or\x20review','Simplify\x20language','translatePortuguese','aiLicenseKeyInvalid','groupId','translateSpanish','5gaOYSQ','translateHindi','Generate\x20from\x20selection','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','forEach','generate','ai.aiAssistant.commands','licenseKey','Journalism','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20style','find','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20German\x20language.','legal','French','Simplified\x20Chinese','makeShorter','ai.aiAssistant.removeCommands','ai-trial-license-key-reached-limit-changes','English','2251389pkuXvk','translateFrench','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','German','locale','requires','4MLHHbN','Improve\x20writing','ai.aiAssistant.extraCommandGroups','115904LkmvVs','friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','filter','improveWriting','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','destroy','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20to\x20%0','simplifyLanguage','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Portuguese','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','define','ai-invalid-license-key','editOrReview','230918EuMTXE','Make\x20longer','translateChinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','journalism','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','makeLonger','translateArabic','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','aiLicenseKeyTrialLimit:operations','init','business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateGerman','pluginName','Poetic'];_0x2fae=function(){return _0x1566e4;};return _0x2fae();}(function(_0x12e51b,_0x145cab){const _0x44494c=_0x5521,_0x8358ca=_0x12e51b();while(!![]){try{const _0xc55652=parseInt(_0x44494c(0x178))/0x1*(-parseInt(_0x44494c(0x131))/0x2)+parseInt(_0x44494c(0x18d))/0x3*(-parseInt(_0x44494c(0x193))/0x4)+-parseInt(_0x44494c(0x164))/0x5+-parseInt(_0x44494c(0x165))/0x6+parseInt(_0x44494c(0x171))/0x7*(-parseInt(_0x44494c(0x196))/0x8)+parseInt(_0x44494c(0x14b))/0x9+parseInt(_0x44494c(0x145))/0xa;if(_0xc55652===_0x145cab)break;else _0x8358ca['push'](_0x8358ca['shift']());}catch(_0x5dc4d6){_0x8358ca['push'](_0x8358ca['shift']());}}}(_0x2fae,0x66871));import{CKEditorError as _0x452701}from'ckeditor5/src/utils.js';function _0x5521(_0x136508,_0x91dfdc){const _0x2fae98=_0x2fae();return _0x5521=function(_0x552187,_0x358a9f){_0x552187=_0x552187-0x12d;let _0x528b7a=_0x2fae98[_0x552187];return _0x528b7a;},_0x5521(_0x136508,_0x91dfdc);}import{Plugin as _0x53f54d}from'ckeditor5/src/core.js';import _0x14efc9 from'./aiassistantui.js';import _0x4367db from'./aiassistantediting.js';import{getTranslation as _0x1e4fd9}from'./utils/common-translations.js';export default class r extends _0x53f54d{static get[_0x4f56a5(0x192)](){return[_0x14efc9,_0x4367db];}static get[_0x4f56a5(0x141)](){const _0x2f4b37=_0x4f56a5;return _0x2f4b37(0x14c);}constructor(_0x4a4ada){const _0x568db0=_0x4f56a5;super(_0x4a4ada);const _0x11c63a=_0x4a4ada[_0x568db0(0x15d)];_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x17e),getDefaultCommands(_0x4a4ada[_0x568db0(0x191)])),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x195),[]),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x18a),[]);const _0x5eb73d=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x17e)),_0x2789af=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x195)),_0x9a8b2e=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x18a));_0x2789af[_0x568db0(0x17c)](_0x5ecc84=>{const _0x3e6901=_0x568db0,_0x1ea9f5=_0x5eb73d[_0x3e6901(0x183)](_0x1a75e4=>_0x1a75e4[_0x3e6901(0x176)]===_0x5ecc84[_0x3e6901(0x176)]);_0x1ea9f5?_0x1ea9f5[_0x3e6901(0x151)]=_0x1ea9f5[_0x3e6901(0x151)][_0x3e6901(0x16f)](_0x5ecc84[_0x3e6901(0x151)]):_0x5eb73d[_0x3e6901(0x155)](_0x5ecc84);}),_0x5eb73d[_0x568db0(0x17c)](_0x187982=>{const _0x177d52=_0x568db0;_0x187982[_0x177d52(0x151)]=_0x187982[_0x177d52(0x151)][_0x177d52(0x199)](_0x10dd2d=>!_0x9a8b2e[_0x177d52(0x170)](_0x10dd2d['id']));}),_0x11c63a[_0x568db0(0x16a)](_0x568db0(0x17e),_0x5eb73d);}[_0x4f56a5(0x13b)](){const _0xda6f6=_0x4f56a5,_0x18f496=this[_0xda6f6(0x162)];this[_0xda6f6(0x17f)]=_0x18f496[_0xda6f6(0x15d)][_0xda6f6(0x15a)](_0xda6f6(0x17f)),this[_0xda6f6(0x15c)]=setInterval(()=>{const _0x2016b2=_0xda6f6;let _0x14cdb;for(const _0x41a756 in _0x18f496){const _0x24fb3d=_0x41a756,_0x75523d=_0x18f496[_0x24fb3d];if(_0x2016b2(0x14e)===_0x75523d||_0x2016b2(0x175)===_0x75523d||_0x2016b2(0x14a)===_0x75523d||_0x2016b2(0x13a)===_0x75523d){delete _0x18f496[_0x24fb3d],_0x14cdb=_0x75523d;break;}}if(_0x2016b2(0x175)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x12f),null);if(_0x2016b2(0x14e)===_0x14cdb&&console[_0x2016b2(0x166)](_0x2016b2(0x156)),_0x2016b2(0x13a)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x18b),null);_0x2016b2(0x14a)===_0x14cdb&&clearInterval(this[_0x2016b2(0x15c)]);},0x3e8);}[_0x4f56a5(0x1a0)](){const _0x55b1e8=_0x4f56a5;this[_0x55b1e8(0x15c)]&&clearInterval(this[_0x55b1e8(0x15c)]);}}export function getDefaultCommands(_0x5ea8c6){const _0xdd6bd0=_0x4f56a5;return[{'groupId':_0xdd6bd0(0x130),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x172)),'commands':[{'id':_0xdd6bd0(0x19a),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x194)),'prompt':_0xdd6bd0(0x17b)},{'id':_0xdd6bd0(0x189),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16c)),'prompt':_0xdd6bd0(0x19c)},{'id':_0xdd6bd0(0x137),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x132)),'prompt':_0xdd6bd0(0x181)},{'id':_0xdd6bd0(0x1a3),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x173)),'prompt':_0xdd6bd0(0x148)}]},{'groupId':_0xdd6bd0(0x17d),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x17a)),'commands':[{'id':_0xdd6bd0(0x168),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x167)),'prompt':_0xdd6bd0(0x136)},{'id':_0xdd6bd0(0x169),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x158)),'prompt':_0xdd6bd0(0x184)}]},{'groupId':_0xdd6bd0(0x161),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16e)),'commands':[{'id':_0xdd6bd0(0x150),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16d)),'prompt':_0xdd6bd0(0x134)},{'id':_0xdd6bd0(0x159),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x14d)),'prompt':_0xdd6bd0(0x13d)},{'id':_0xdd6bd0(0x153),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x154)),'prompt':_0xdd6bd0(0x1a4)},{'id':_0xdd6bd0(0x152),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15e)),'prompt':_0xdd6bd0(0x12d)},{'id':_0xdd6bd0(0x197),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x146)),'prompt':_0xdd6bd0(0x1a5)}]},{'groupId':_0xdd6bd0(0x16b),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x182)),'commands':[{'id':_0xdd6bd0(0x13c),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x143)),'prompt':_0xdd6bd0(0x19e)},{'id':_0xdd6bd0(0x186),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x163)),'prompt':_0xdd6bd0(0x144)},{'id':_0xdd6bd0(0x135),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x180)),'prompt':_0xdd6bd0(0x1a1)},{'id':_0xdd6bd0(0x19b),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x142)),'prompt':_0xdd6bd0(0x198)}]},{'groupId':_0xdd6bd0(0x14f),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15b)),'commands':[{'id':_0xdd6bd0(0x157),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x18c))]),'prompt':_0xdd6bd0(0x13e)},{'id':_0xdd6bd0(0x177),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x149))]),'prompt':_0xdd6bd0(0x19f)},{'id':_0xdd6bd0(0x174),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a6))]),'prompt':_0xdd6bd0(0x18f)},{'id':_0xdd6bd0(0x140),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x190))]),'prompt':_0xdd6bd0(0x185)},{'id':_0xdd6bd0(0x18e),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x187))]),'prompt':_0xdd6bd0(0x147)},{'id':_0xdd6bd0(0x133),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x188))]),'prompt':_0xdd6bd0(0x139)},{'id':_0xdd6bd0(0x179),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15f))]),'prompt':_0xdd6bd0(0x13f)},{'id':_0xdd6bd0(0x138),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x19d))]),'prompt':_0xdd6bd0(0x160)}]}];}