@ckeditor/ckeditor5-ai 41.0.0 → 41.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/build/ai.js +6 -6
  2. package/build/translations/it.js +1 -1
  3. package/build/translations/pt.js +1 -1
  4. package/lang/translations/he.po +1 -1
  5. package/lang/translations/it.po +16 -16
  6. package/lang/translations/pt.po +4 -4
  7. package/package.json +4 -4
  8. package/src/adapters/aiadapter.js +1 -1
  9. package/src/adapters/aitextadapter.js +1 -1
  10. package/src/adapters/awstextadapter.js +1 -1
  11. package/src/adapters/openaitextadapter.js +1 -1
  12. package/src/aiassistant.js +1 -1
  13. package/src/aiassistantediting.d.ts +5 -0
  14. package/src/aiassistantediting.js +1 -1
  15. package/src/aiassistantui.d.ts +2 -1
  16. package/src/aiassistantui.js +1 -1
  17. package/src/augmentation.d.ts +1 -1
  18. package/src/index.js +1 -1
  19. package/src/ui/aiassistantcontroller.d.ts +1 -1
  20. package/src/ui/aiassistantcontroller.js +1 -1
  21. package/src/ui/dropdown/aicommandslistview.d.ts +11 -0
  22. package/src/ui/dropdown/aicommandslistview.js +1 -1
  23. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  24. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  25. package/src/ui/form/aiformcontentarea.js +1 -1
  26. package/src/ui/form/aiformerrorview.js +1 -1
  27. package/src/ui/form/aiformpromptview.js +1 -1
  28. package/src/ui/form/aiformtoolbarview.js +1 -1
  29. package/src/ui/form/aiformview.js +1 -1
  30. package/src/ui/form/aihistorylistitemview.js +1 -1
  31. package/src/ui/form/aihistorylistview.js +1 -1
  32. package/src/ui/form/prompthistory.js +1 -1
  33. package/src/ui/showaiassistantcommand.d.ts +12 -1
  34. package/src/ui/showaiassistantcommand.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/ai.css +4 -0
@@ -1 +1 @@
1
- !function(e){const i=e.it=e.it||{};i.dictionary=Object.assign(i.dictionary||{},{"AI Assistant":"Assistente AI","AI Commands":"Comandi AI","AI is writing...":"L'AI sta scrivendo...",AI_ERROR_CONTEXT_LENGTH:"Il contenuto selezionato è troppo lungo",AI_ERROR_FAILED:"Impossibile comunicare con il servizio AI",AI_ERROR_GET_HEADERS:"Impossibile preparare gli header della richiesta",AI_ERROR_GET_PARAMETERS:"La preparazione dei parametri della richiesta non è riuscita",AI_ERROR_MODERATION:"La query richiesta non supera le regole di moderazione",AI_ERROR_UNSUPPORTED_MODEL:'Il modello IA richiesto (" %0 ") non è supportato',AI_INSERT_CONTENT:"Inserisci",AI_REPLACE_CONTENT:"Sostituisci",Arabic:"Arabo","Ask AI and your prompts will be listed here for you to use later.":"Chiedi all'AI e le tue richieste saranno elencate qui per poterle utilizzare in seguito.","Ask AI to edit or generate":"Chiedi all'AI di modificare o generare","Ask AI to improve generated text":"Chiedi all'AI di migliorare il testo generato",Business:"Commerciale",Casual:"Informale","Change style":"Cambia lo stile","Change tone":"Cambia il tono",Confident:"Sicuro",Continue:"Continua",Copy:"Copia",Direct:"Diretto","Edit or review":"Modifica o controlla","Empty history":"Cronologia vuota",English:"Inglese",French:"francese",Friendly:"Amichevole","Generate from selection":"Genera dalla selezione",German:"Tedesco",Hindi:"hindi",History:"Cronologia","Improve writing":"Migliora la scrittura","Insert below":"Inserisci qui sotto",Journalism:"Giornalismo",Legal:"Legale","Make longer":"Estendi","Make shorter":"Abbrevia","No commands available":"Nessun comando disponibile","No commands found":"Nessun comando trovato",Poetic:"Poetico",Portuguese:"portoghese",Professional:"Professionale","Prompt history":"Cronologia richieste","Search AI command":"Cerca il comando AI","Simplified Chinese":"Cinese semplificato","Simplify language":"Semplifica il linguaggio",Spanish:"spagnolo",Stop:"Ferma",Submit:"Invia",Summarize:"Riassumi",Translate:"Tradurre","Translate to %0":"Traduci in %0","Try again":"Riprova"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(i){const e=i.it=i.it||{};e.dictionary=Object.assign(e.dictionary||{},{"AI Assistant":"Assistente IA","AI Commands":"Comandi IA","AI is writing...":"L'IA sta scrivendo...",AI_ERROR_CONTEXT_LENGTH:"Il contenuto selezionato è troppo lungo",AI_ERROR_FAILED:"Impossibile comunicare con il servizio dell'IA",AI_ERROR_GET_HEADERS:"La preparazione delle intestazioni della richiesta è fallita",AI_ERROR_GET_PARAMETERS:"La preparazione dei parametri della richiesta è fallita",AI_ERROR_MODERATION:"La query richiesta non supera le regole di moderazione",AI_ERROR_UNSUPPORTED_MODEL:'Il modello di IA richiesto (" %0 ") non è supportato',AI_INSERT_CONTENT:"Inserisci",AI_REPLACE_CONTENT:"Sostituisci",Arabic:"arabo","Ask AI and your prompts will be listed here for you to use later.":"Chiedi all'IA e le tue richieste saranno elencate qui per poterle utilizzare in seguito.","Ask AI to edit or generate":"Chiedi all'IA di modificare o generare","Ask AI to improve generated text":"Chiedi all'IA di migliorare il testo generato",Business:"Commerciale",Casual:"Informale","Change style":"Cambia lo stile","Change tone":"Cambia il tono",Confident:"Sicuro",Continue:"Continua",Copy:"Copia",Direct:"Diretto","Edit or review":"Modifica o controlla","Empty history":"Cronologia vuota",English:"inglese",French:"francese",Friendly:"Amichevole","Generate from selection":"Genera dalla selezione",German:"tedesco",Hindi:"hindi",History:"Cronologia","Improve writing":"Migliora la scrittura","Insert below":"Inserisci qui sotto",Journalism:"Giornalismo",Legal:"Legale","Make longer":"Estendi","Make shorter":"Abbrevia","No commands available":"Nessun comando disponibile","No commands found":"Nessun comando trovato",Poetic:"Poetico",Portuguese:"portoghese",Professional:"Professionale","Prompt history":"Cronologia richieste","Search AI command":"Cerca comando IA","Simplified Chinese":"cinese semplificato","Simplify language":"Semplifica il linguaggio",Spanish:"spagnolo",Stop:"Ferma",Submit:"Invia",Summarize:"Riassumi",Translate:"Traduci","Translate to %0":"Traduci in %0","Try again":"Riprova"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- !function(e){const o=e.pt=e.pt||{};o.dictionary=Object.assign(o.dictionary||{},{"AI Assistant":"Assistente de IA","AI Commands":"Comandos de IA","AI is writing...":"A IA está a escrever...",AI_ERROR_CONTEXT_LENGTH:"O conteúdo selecionado é muito longo",AI_ERROR_FAILED:"Falha ao comunicar com o serviço de IA",AI_ERROR_GET_HEADERS:"Não foi possível preparar os cabeçalhos personalizados",AI_ERROR_GET_PARAMETERS:"Falha ao preparar parâmetros de pedidos",AI_ERROR_MODERATION:"O pedido solicitado não cumpre as regras de moderação",AI_ERROR_UNSUPPORTED_MODEL:'O modelo de IA pedido ("%0") não é suportado',AI_INSERT_CONTENT:"Inserir",AI_REPLACE_CONTENT:"Substituir",Arabic:"Árabe","Ask AI and your prompts will be listed here for you to use later.":"Faça um pedido à IA e as suas instruções serão listadas aqui para poder usá-las posteriormente.","Ask AI to edit or generate":"Peça à IA para editar ou gerar","Ask AI to improve generated text":"Peça à IA para melhorar o texto gerado",Business:"Empresarial",Casual:"Informal","Change style":"Alterar estilo","Change tone":"Alterar tom",Confident:"Confiante",Continue:"Continuar",Copy:"Copiar",Direct:"Direto","Edit or review":"Editar ou rever","Empty history":"Histórico vazio",English:"Inglês",French:"Francês",Friendly:"Cordial","Generate from selection":"Gerar a partir da seleção",German:"Alemão",Hindi:"Hindi",History:"Histórico","Improve writing":"Melhorar a escrita","Insert below":"Inserir abaixo",Journalism:"Jornalístico",Legal:"Jurídico","Make longer":"Tornar mais extenso","Make shorter":"Tornar mais curto","No commands available":"Nenhum comando disponível","No commands found":"Nenhum comando encontrado",Poetic:"Poético",Portuguese:"Português",Professional:"Profissional","Prompt history":"Histórico de instruções","Search AI command":"Pesquisar comando de IA","Simplified Chinese":"Chinês Simplificado","Simplify language":"Simplificar a linguagem",Spanish:"Espanhol",Stop:"Parar",Submit:"Submeter",Summarize:"Resumir",Translate:"Traduzir","Translate to %0":"Traduzir para %0","Try again":"Tentar de novo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const o=e.pt=e.pt||{};o.dictionary=Object.assign(o.dictionary||{},{"AI Assistant":"Assistente de IA","AI Commands":"Comandos de IA","AI is writing...":"A IA está a escrever...",AI_ERROR_CONTEXT_LENGTH:"O conteúdo selecionado é muito longo",AI_ERROR_FAILED:"Falha ao comunicar com o serviço de IA",AI_ERROR_GET_HEADERS:"Falha ao preparar cabeçalhos de pedidos",AI_ERROR_GET_PARAMETERS:"Falha ao preparar parâmetros de pedidos",AI_ERROR_MODERATION:"O pedido solicitado não cumpre as regras de moderação",AI_ERROR_UNSUPPORTED_MODEL:'O modelo de IA pedido ("%0") não é suportado',AI_INSERT_CONTENT:"Inserir",AI_REPLACE_CONTENT:"Substituir",Arabic:"Árabe","Ask AI and your prompts will be listed here for you to use later.":"Faça um pedido à IA e as suas instruções serão listadas aqui para poder usá-las posteriormente.","Ask AI to edit or generate":"Pedir à IA para editar ou gerar","Ask AI to improve generated text":"Pedir à IA para melhorar o texto gerado",Business:"Empresarial",Casual:"Informal","Change style":"Alterar estilo","Change tone":"Alterar tom",Confident:"Confiante",Continue:"Continuar",Copy:"Copiar",Direct:"Direto","Edit or review":"Editar ou rever","Empty history":"Histórico vazio",English:"Inglês",French:"Francês",Friendly:"Cordial","Generate from selection":"Gerar a partir da seleção",German:"Alemão",Hindi:"Hindi",History:"Histórico","Improve writing":"Melhorar a escrita","Insert below":"Inserir abaixo",Journalism:"Jornalístico",Legal:"Jurídico","Make longer":"Tornar mais extenso","Make shorter":"Tornar mais curto","No commands available":"Nenhum comando disponível","No commands found":"Nenhum comando encontrado",Poetic:"Poético",Portuguese:"Português",Professional:"Profissional","Prompt history":"Histórico de instruções","Search AI command":"Comando de pesquisa IA","Simplified Chinese":"Chinês Simplificado","Simplify language":"Simplificar a linguagem",Spanish:"Espanhol",Stop:"Parar",Submit:"Submeter",Summarize:"Resumir",Translate:"Traduzir","Translate to %0":"Traduzir para %0","Try again":"Tentar de novo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n"
16
16
  "Language: he\n"
17
- "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: 2;\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
 
20
20
  msgctxt "AI command group label for editing and reviewing."
@@ -95,7 +95,7 @@ msgstr "Poetico"
95
95
 
96
96
  msgctxt "AI command group label for translating the content."
97
97
  msgid "Translate"
98
- msgstr "Tradurre"
98
+ msgstr "Traduci"
99
99
 
100
100
  msgctxt "Label for the AI command. Example: (Translate to) English"
101
101
  msgid "Translate to %0"
@@ -103,7 +103,7 @@ msgstr "Traduci in %0"
103
103
 
104
104
  msgctxt "Translate to (English)"
105
105
  msgid "English"
106
- msgstr "Inglese"
106
+ msgstr "inglese"
107
107
 
108
108
  msgctxt "Translate to (Spanish)"
109
109
  msgid "Spanish"
@@ -111,7 +111,7 @@ msgstr "spagnolo"
111
111
 
112
112
  msgctxt "Translate to (German)"
113
113
  msgid "German"
114
- msgstr "Tedesco"
114
+ msgstr "tedesco"
115
115
 
116
116
  msgctxt "Translate to (Portuguese)"
117
117
  msgid "Portuguese"
@@ -123,7 +123,7 @@ msgstr "francese"
123
123
 
124
124
  msgctxt "Translate to (Simplified Chinese)"
125
125
  msgid "Simplified Chinese"
126
- msgstr "Cinese semplificato"
126
+ msgstr "cinese semplificato"
127
127
 
128
128
  msgctxt "Translate to (Hindi)"
129
129
  msgid "Hindi"
@@ -131,23 +131,23 @@ msgstr "hindi"
131
131
 
132
132
  msgctxt "Translate to (Arabic)"
133
133
  msgid "Arabic"
134
- msgstr "Arabo"
134
+ msgstr "arabo"
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 "Assistente AI"
138
+ msgstr "Assistente IA"
139
139
 
140
140
  msgctxt "The toolbar button tooltip for the dropdown with predefined AI commands."
141
141
  msgid "AI Commands"
142
- msgstr "Comandi AI"
142
+ msgstr "Comandi 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 "Chiedi all'AI di modificare o generare"
146
+ msgstr "Chiedi all'IA di modificare o generare"
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 "Chiedi all'AI di migliorare il testo generato"
150
+ msgstr "Chiedi all'IA di migliorare il testo generato"
151
151
 
152
152
  msgctxt "The label for the button that copies the text from the textarea."
153
153
  msgid "Copy"
@@ -171,7 +171,7 @@ msgstr "Ferma"
171
171
 
172
172
  msgctxt "The label that indicates the AI is generating content."
173
173
  msgid "AI is writing..."
174
- msgstr "L'AI sta scrivendo..."
174
+ msgstr "L'IA sta scrivendo..."
175
175
 
176
176
  msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
177
177
  msgid "History"
@@ -183,7 +183,7 @@ msgstr "Cronologia vuota"
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 "Chiedi all'AI e le tue richieste saranno elencate qui per poterle utilizzare in seguito."
186
+ msgstr "Chiedi all'IA e le tue richieste saranno elencate qui per poterle utilizzare in seguito."
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"
@@ -191,7 +191,7 @@ msgstr "Cronologia richieste"
191
191
 
192
192
  msgctxt "The placeholder for the search input to filter the AI commands."
193
193
  msgid "Search AI command"
194
- msgstr "Cerca il comando AI"
194
+ msgstr "Cerca comando 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"
@@ -211,15 +211,15 @@ msgstr "Inserisci"
211
211
 
212
212
  msgctxt "Error message displayed when preparing request headers fails."
213
213
  msgid "AI_ERROR_GET_HEADERS"
214
- msgstr "Impossibile preparare gli header della richiesta"
214
+ msgstr "La preparazione delle intestazioni della richiesta è fallita"
215
215
 
216
216
  msgctxt "Error message displayed when preparing request parameters fails."
217
217
  msgid "AI_ERROR_GET_PARAMETERS"
218
- msgstr "La preparazione dei parametri della richiesta non è riuscita"
218
+ msgstr "La preparazione dei parametri della richiesta è fallita"
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 "Il modello IA richiesto (\" %0 \") non è supportato"
222
+ msgstr "Il modello di IA richiesto (\" %0 \") non è supportato"
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"
@@ -231,4 +231,4 @@ msgstr "La query richiesta non supera le regole di moderazione"
231
231
 
232
232
  msgctxt "Generic error message displayed when the request failed for unspecified reason."
233
233
  msgid "AI_ERROR_FAILED"
234
- msgstr "Impossibile comunicare con il servizio AI"
234
+ msgstr "Impossibile comunicare con il servizio dell'IA"
@@ -143,11 +143,11 @@ 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 "Peça à IA para editar ou gerar"
146
+ msgstr "Pedir à IA para editar ou gerar"
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 "Peça à IA para melhorar o texto gerado"
150
+ msgstr "Pedir à IA para melhorar o texto gerado"
151
151
 
152
152
  msgctxt "The label for the button that copies the text from the textarea."
153
153
  msgid "Copy"
@@ -191,7 +191,7 @@ msgstr "Histórico de instruções"
191
191
 
192
192
  msgctxt "The placeholder for the search input to filter the AI commands."
193
193
  msgid "Search AI command"
194
- msgstr "Pesquisar comando de IA"
194
+ msgstr "Comando de pesquisa 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"
@@ -211,7 +211,7 @@ msgstr "Inserir"
211
211
 
212
212
  msgctxt "Error message displayed when preparing request headers fails."
213
213
  msgid "AI_ERROR_GET_HEADERS"
214
- msgstr "Não foi possível preparar os cabeçalhos personalizados"
214
+ msgstr "Falha ao preparar cabeçalhos de pedidos"
215
215
 
216
216
  msgctxt "Error message displayed when preparing request parameters fails."
217
217
  msgid "AI_ERROR_GET_PARAMETERS"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.0.0",
3
+ "version": "41.2.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": "41.0.0",
27
- "ckeditor5-collaboration": "41.0.0",
26
+ "ckeditor5": "41.2.0",
27
+ "ckeditor5-collaboration": "41.2.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.0.0",
29
+ "@ckeditor/ckeditor5-ui": "41.2.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 _0x3a78=['AIRequestError','name','AIAdapter','pluginName','aiadapter-text-adapter-not-set'];(function(_0x382be6,_0x3a7886){var _0x3bbc89=function(_0x8064f4){while(--_0x8064f4){_0x382be6['push'](_0x382be6['shift']());}};_0x3bbc89(++_0x3a7886);}(_0x3a78,0x150));var _0x3bbc=function(_0x382be6,_0x3a7886){_0x382be6=_0x382be6-0x0;var _0x3bbc89=_0x3a78[_0x382be6];return _0x3bbc89;};import{Plugin as _0x23cd4a}from'ckeditor5/src/core.js';import{CKEditorError as _0x1bb56a}from'ckeditor5/src/utils.js';export default class I extends _0x23cd4a{static get[_0x3bbc('0x2')](){return _0x3bbc('0x1');}['afterInit'](){if(!this['textAdapter'])throw new _0x1bb56a(_0x3bbc('0x3'),null);}}export class AIRequestError extends Error{constructor(_0x5199d8){super(_0x5199d8),this[_0x3bbc('0x0')]=_0x3bbc('0x4');}}
23
+ var _0x1f58a6=_0x55ca;(function(_0x328169,_0x378155){var _0x2c19b4=_0x55ca,_0x386960=_0x328169();while(!![]){try{var _0x3803ae=parseInt(_0x2c19b4(0xb5))/0x1*(-parseInt(_0x2c19b4(0xb7))/0x2)+parseInt(_0x2c19b4(0xab))/0x3+-parseInt(_0x2c19b4(0xb2))/0x4+-parseInt(_0x2c19b4(0xb3))/0x5*(-parseInt(_0x2c19b4(0xa8))/0x6)+-parseInt(_0x2c19b4(0xad))/0x7+-parseInt(_0x2c19b4(0xb1))/0x8+parseInt(_0x2c19b4(0xae))/0x9;if(_0x3803ae===_0x378155)break;else _0x386960['push'](_0x386960['shift']());}catch(_0x54cf49){_0x386960['push'](_0x386960['shift']());}}}(_0x1c4b,0x980ef));import{Plugin as _0x447dbe}from'ckeditor5/src/core.js';import{CKEditorError as _0x3fad55}from'ckeditor5/src/utils.js';function _0x55ca(_0x2c9d29,_0x4d48af){var _0x1c4be7=_0x1c4b();return _0x55ca=function(_0x55ca6a,_0x210eb1){_0x55ca6a=_0x55ca6a-0xa8;var _0x214067=_0x1c4be7[_0x55ca6a];return _0x214067;},_0x55ca(_0x2c9d29,_0x4d48af);}function _0x1c4b(){var _0x3ad438=['1550006mdqpvv','13110lnhHDC','AIRequestError','afterInit','1581774EiZBqa','aiadapter-text-adapter-not-set','6848933jYxnju','21644703zUxGdU','textAdapter','pluginName','3184512WhZFhz','4153852drSjgQ','2015EgXUYS','AIAdapter','1QkvxHR','name'];_0x1c4b=function(){return _0x3ad438;};return _0x1c4b();}export default class g extends _0x447dbe{static get[_0x1f58a6(0xb0)](){var _0x15e66e=_0x1f58a6;return _0x15e66e(0xb4);}[_0x1f58a6(0xaa)](){var _0xcfb09d=_0x1f58a6;if(!this[_0xcfb09d(0xaf)])throw new _0x3fad55(_0xcfb09d(0xac),null);}}export class AIRequestError extends Error{constructor(_0x1d0188){var _0x180ef5=_0x1f58a6;super(_0x1d0188),this[_0x180ef5(0xb6)]=_0x180ef5(0xa9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ba8=['makeRequest','_prepareRequestParameters','init','aitextadapter-send-request-failed','sendRequest','locale','resolve','_prepareRequestHeaders','abortController','catch','object','application/json','reject','name','error','assign','plugins','signal','editor','aborted','get','AI_ERROR_GET_PARAMETERS','abort'];(function(_0x2e5222,_0x1ba8a1){const _0x5a7f64=function(_0x5b77dd){while(--_0x5b77dd){_0x2e5222['push'](_0x2e5222['shift']());}};_0x5a7f64(++_0x1ba8a1);}(_0x1ba8,0x126));const _0x5a7f=function(_0x2e5222,_0x1ba8a1){_0x2e5222=_0x2e5222-0x0;let _0x5a7f64=_0x1ba8[_0x2e5222];return _0x5a7f64;};import{Plugin as _0x35e9db}from'ckeditor5/src/core.js';import{CKEditorError as _0x8d0012}from'ckeditor5/src/utils.js';import{default as _0x5f2cc2,AIRequestError as _0x2f8655}from'./aiadapter.js';import{getTranslation as _0xea8bf0}from'../utils/common-translations.js';export default class _ extends _0x35e9db{static get['requires'](){return[_0x5f2cc2];}constructor(_0x4de12b){super(_0x4de12b),this[_0x5a7f('0xd')]=new AbortController();}[_0x5a7f('0x7')](){this[_0x5a7f('0x0')][_0x5a7f('0x15')][_0x5a7f('0x2')](_0x5f2cc2)['textAdapter']=this;}[_0x5a7f('0x4')](){this[_0x5a7f('0xd')][_0x5a7f('0x16')][_0x5a7f('0x1')]||(this[_0x5a7f('0xd')][_0x5a7f('0x4')](),this[_0x5a7f('0xd')]=new AbortController());}async[_0x5a7f('0x5')](_0x43eddd){return this[_0x5a7f('0x9')](_0x43eddd)[_0x5a7f('0xe')](_0x1cdf7a=>{if(_0x1cdf7a instanceof _0x2f8655)return Promise['reject'](_0x1cdf7a);if('AbortError'==_0x1cdf7a[_0x5a7f('0x12')])return Promise[_0x5a7f('0xb')]();throw console[_0x5a7f('0x13')](_0x1cdf7a),new _0x8d0012(_0x5a7f('0x8'),null);});}async[_0x5a7f('0xc')](_0x46ba52,_0x43d4cc){const _0x62c49a=this[_0x5a7f('0x0')][_0x5a7f('0xa')],_0x3b60d2={'Content-Type':_0x5a7f('0x10')};if(_0x5a7f('0xf')==typeof _0x46ba52)Object[_0x5a7f('0x14')](_0x3b60d2,_0x46ba52);else{if(_0x46ba52)try{const _0x398bda=await _0x46ba52(_0x43d4cc);Object[_0x5a7f('0x14')](_0x3b60d2,_0x398bda);}catch(_0x375d30){return Promise['reject'](new _0x2f8655(_0xea8bf0(_0x62c49a,'AI_ERROR_GET_HEADERS')));}}return _0x3b60d2;}async[_0x5a7f('0x6')](_0x164509,_0x409b60){const _0x205343=this[_0x5a7f('0x0')][_0x5a7f('0xa')];if(_0x5a7f('0xf')==typeof _0x164509)return _0x164509;try{return await _0x164509(_0x409b60);}catch(_0x3ba33c){return Promise[_0x5a7f('0x11')](new _0x2f8655(_0xea8bf0(_0x205343,_0x5a7f('0x3'))));}}}
23
+ const _0x4fae46=_0x4290;function _0x36b0(){const _0x2f5a1c=['signal','catch','textAdapter','init','4blBKus','2057FEGAvQ','AbortError','error','AI_ERROR_GET_PARAMETERS','application/json','781779TKxujB','sendRequest','abortController','aborted','6740ZPEZPC','170fqbFdv','abort','locale','_prepareRequestParameters','requires','assign','52158lcjIdL','editor','546237gSkvBn','get','AI_ERROR_GET_HEADERS','369120YOkXda','makeRequest','aitextadapter-send-request-failed','name','_prepareRequestHeaders','reject','49bPidNO','resolve','plugins','object','1662392oGZxTv','3573NgDUVV'];_0x36b0=function(){return _0x2f5a1c;};return _0x36b0();}(function(_0x11df68,_0x6952ee){const _0x1b7f25=_0x4290,_0x305ef8=_0x11df68();while(!![]){try{const _0x1cf7b3=parseInt(_0x1b7f25(0x1d2))/0x1*(parseInt(_0x1b7f25(0x1e2))/0x2)+-parseInt(_0x1b7f25(0x1dd))/0x3+-parseInt(_0x1b7f25(0x1d7))/0x4*(parseInt(_0x1b7f25(0x1c7))/0x5)+parseInt(_0x1b7f25(0x1e8))/0x6*(parseInt(_0x1b7f25(0x1cd))/0x7)+parseInt(_0x1b7f25(0x1d1))/0x8+parseInt(_0x1b7f25(0x1c4))/0x9+-parseInt(_0x1b7f25(0x1e1))/0xa*(parseInt(_0x1b7f25(0x1d8))/0xb);if(_0x1cf7b3===_0x6952ee)break;else _0x305ef8['push'](_0x305ef8['shift']());}catch(_0x55fe6a){_0x305ef8['push'](_0x305ef8['shift']());}}}(_0x36b0,0x2a231));import{Plugin as _0x3da6e0}from'ckeditor5/src/core.js';import{CKEditorError as _0x329eab}from'ckeditor5/src/utils.js';import{default as _0x40f3b0,AIRequestError as _0x2eb9a8}from'./aiadapter.js';import{getTranslation as _0x3b6c77}from'../utils/common-translations.js';function _0x4290(_0x694a11,_0x1cf615){const _0x36b07d=_0x36b0();return _0x4290=function(_0x429079,_0x17f99d){_0x429079=_0x429079-0x1c3;let _0x11a6d3=_0x36b07d[_0x429079];return _0x11a6d3;},_0x4290(_0x694a11,_0x1cf615);}export default class _ extends _0x3da6e0{static get[_0x4fae46(0x1e6)](){return[_0x40f3b0];}constructor(_0x15fbd7){const _0x834507=_0x4fae46;super(_0x15fbd7),this[_0x834507(0x1df)]=new AbortController();}[_0x4fae46(0x1d6)](){const _0x54b460=_0x4fae46;this[_0x54b460(0x1c3)][_0x54b460(0x1cf)][_0x54b460(0x1c5)](_0x40f3b0)[_0x54b460(0x1d5)]=this;}[_0x4fae46(0x1e3)](){const _0x49bdac=_0x4fae46;this[_0x49bdac(0x1df)][_0x49bdac(0x1d3)][_0x49bdac(0x1e0)]||(this[_0x49bdac(0x1df)][_0x49bdac(0x1e3)](),this[_0x49bdac(0x1df)]=new AbortController());}async[_0x4fae46(0x1c8)](_0x10bb01){const _0x51769c=_0x4fae46;return this[_0x51769c(0x1de)](_0x10bb01)[_0x51769c(0x1d4)](_0x33038d=>{const _0x13838b=_0x51769c;if(_0x33038d instanceof _0x2eb9a8)return Promise[_0x13838b(0x1cc)](_0x33038d);if(_0x13838b(0x1d9)==_0x33038d[_0x13838b(0x1ca)])return Promise[_0x13838b(0x1ce)]();throw console[_0x13838b(0x1da)](_0x33038d),new _0x329eab(_0x13838b(0x1c9),null);});}async[_0x4fae46(0x1cb)](_0x494f38,_0x35aba6){const _0x5f557a=_0x4fae46,_0x100107=this[_0x5f557a(0x1c3)][_0x5f557a(0x1e4)],_0x353d20={'Content-Type':_0x5f557a(0x1dc)};if(_0x5f557a(0x1d0)==typeof _0x494f38)Object[_0x5f557a(0x1e7)](_0x353d20,_0x494f38);else{if(_0x494f38)try{const _0x3c32e2=await _0x494f38(_0x35aba6);Object[_0x5f557a(0x1e7)](_0x353d20,_0x3c32e2);}catch(_0x1228e1){return Promise[_0x5f557a(0x1cc)](new _0x2eb9a8(_0x3b6c77(_0x100107,_0x5f557a(0x1c6))));}}return _0x353d20;}async[_0x4fae46(0x1e5)](_0x363831,_0x1667f9){const _0x404269=_0x4fae46,_0x5d15c9=this[_0x404269(0x1c3)][_0x404269(0x1e4)];if(_0x404269(0x1d0)==typeof _0x363831)return _0x363831;try{return await _0x363831(_0x1667f9);}catch(_0x4404b3){return Promise[_0x404269(0x1cc)](new _0x2eb9a8(_0x3b6c77(_0x5d15c9,_0x404269(0x1db))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49e3=['cohere.command','_apiUrl','split','ai.aws.requestParameters.anthropic_version','parse','preparePrompt','completions','read','json','meta.llama','_prepareRequestParameters','body','decode','join','pluginName','\x0a\x0aAssistant:','map','bytes','application/json','from','<<SYS>>\x0a','ai.aws.requestParameters.max_tokens_to_sample','chunk','bedrock-2023-05-31','editor','resolve','Instruction:\x0a','AWSTextAdapter','_processAWSRequest','data','startsWith','stringify','_readStreamableResponse','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.requestParameters.top_p','utf-8','_requestHeaders','_readStaticResponse','completion','_readAsyncIterableResponse','signal','utf8','text','_getGeneratedText','filter','getReader','\x0a<</SYS>>\x0a[INST]\x0a','test','getModelFamily','sendRequest','generations','_bedrockClientConfig','Human:\x0a','define','ai.aws.requestParameters.stream','config','POST','_requestParameters','anthropic.claude-v2','ai.aws.requestParameters.model','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.','_processProxyRequest','ai.aws.requestParameters.temperature','length','ai21.j2','locale','ai.aws.bedrockClientConfig','\x0a[/INST]','_prepareRequestHeaders','ai.aws.requestParameters','abortController','ai.aws.apiUrl'];(function(_0x829635,_0x49e348){const _0x12e164=function(_0x3af88b){while(--_0x3af88b){_0x829635['push'](_0x829635['shift']());}};_0x12e164(++_0x49e348);}(_0x49e3,0x86));const _0x12e1=function(_0x829635,_0x49e348){_0x829635=_0x829635-0x0;let _0x12e164=_0x49e3[_0x829635];return _0x12e164;};import{default as _0x4059f9}from'./aitextadapter.js';import{AIRequestError as _0x5dc193}from'./aiadapter.js';import{BedrockRuntimeClient as _0x359174,InvokeModelCommand as _0x32f221,InvokeModelWithResponseStreamCommand as _0x354837}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4eaf34}from'../utils/common-translations.js';export default class H extends _0x4059f9{static get[_0x12e1('0x1a')](){return _0x12e1('0x27');}constructor(_0x14a070){super(_0x14a070),_0x14a070[_0x12e1('0x44')]['get'](_0x12e1('0x9'))||(_0x14a070[_0x12e1('0x44')][_0x12e1('0x42')](_0x12e1('0x48'),_0x12e1('0x47')),_0x14a070[_0x12e1('0x44')]['define'](_0x12e1('0x21'),0x7d0),_0x14a070[_0x12e1('0x44')]['define'](_0x12e1('0x2'),0x1),_0x14a070['config'][_0x12e1('0x42')](_0x12e1('0x2f'),0x1),_0x14a070[_0x12e1('0x44')][_0x12e1('0x42')]('ai.aws.requestParameters.top_k',0xfa),_0x14a070['config'][_0x12e1('0x42')](_0x12e1('0xf'),_0x12e1('0x23')),_0x14a070[_0x12e1('0x44')][_0x12e1('0x42')](_0x12e1('0x43'),!0x0)),this[_0x12e1('0xd')]=_0x14a070[_0x12e1('0x44')][_0x12e1('0x2d')](_0x12e1('0xb')),this['_bedrockClientConfig']=_0x14a070[_0x12e1('0x44')]['get'](_0x12e1('0x6')),this[_0x12e1('0x31')]=_0x14a070[_0x12e1('0x44')][_0x12e1('0x2d')]('ai.aws.requestHeaders'),this[_0x12e1('0x46')]=_0x14a070[_0x12e1('0x44')]['get']('ai.aws.requestParameters');}async[_0x12e1('0x3e')]({query:_0x59c7b6,context:_0x4d2be0,onData:_0xf86a97,actionId:_0x32a69d}){const {model:_0x2de079,stream:_0x17641d,..._0x4fd126}=await this[_0x12e1('0x16')](this[_0x12e1('0x46')],_0x32a69d),_0x5a6709={'prompt':await this[_0x12e1('0x11')](_0x59c7b6,_0x4d2be0,_0x2de079,_0x32a69d),..._0x4fd126};this[_0x12e1('0xd')]?await this[_0x12e1('0x1')](_0x5a6709,_0x2de079,_0x17641d,_0xf86a97,_0x32a69d):await this['_processAWSRequest'](_0x5a6709,_0x2de079,_0x17641d,_0xf86a97);}async[_0x12e1('0x11')](_0x4d6bc5,_0x3a5dfe,_0x1c5f5e,_0x5b8fb3){let _0x1e2579,_0x2bb547;return _0x3a5dfe?(_0x1e2579='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.',_0x2bb547=_0x12e1('0x26')+_0x4d6bc5+_0x12e1('0x2e')+(_0x3a5dfe[_0x12e1('0x2a')]('<')?_0x3a5dfe:'<span>'+_0x3a5dfe+'</span>')):(_0x1e2579=_0x12e1('0x0'),_0x2bb547=_0x4d6bc5),'meta.llama'==this[_0x12e1('0x3d')](_0x1c5f5e)?_0x12e1('0x20')+_0x1e2579+_0x12e1('0x3b')+_0x2bb547+_0x12e1('0x7'):_0x12e1('0x41')+_0x1e2579+'\x0a'+_0x2bb547+_0x12e1('0x1b');}[_0x12e1('0x3d')](_0x566303){if(/^anthropic\.claude/[_0x12e1('0x3c')](_0x566303))return'anthropic.claude';if(/^ai21\.j2/[_0x12e1('0x3c')](_0x566303))return'ai21.j2';if(/^cohere\.command/[_0x12e1('0x3c')](_0x566303))return _0x12e1('0xc');if(/^meta\.llama/['test'](_0x566303))return _0x12e1('0x15');throw new _0x5dc193(_0x4eaf34(this[_0x12e1('0x24')][_0x12e1('0x5')],'AI_ERROR_UNSUPPORTED_MODEL',_0x566303));}async[_0x12e1('0x1')](_0x4c8dd5,_0x3b2d1b,_0xa5ec4a,_0x4b1161,_0xafca01){const _0x59a577={'method':_0x12e1('0x45'),'headers':await this[_0x12e1('0x8')](this[_0x12e1('0x31')],_0xafca01),'body':JSON[_0x12e1('0x2b')]({..._0x4c8dd5,'model':_0x3b2d1b,'stream':_0xa5ec4a}),'signal':this['abortController'][_0x12e1('0x35')]},_0x4f466b=await fetch(this['_apiUrl'],_0x59a577);_0xa5ec4a?await this[_0x12e1('0x2c')](_0x4f466b,_0x3b2d1b,_0x4b1161):await this[_0x12e1('0x32')](_0x4f466b,_0x3b2d1b,_0x4b1161);}async[_0x12e1('0x28')](_0x177038,_0x425a5e,_0x4ee445,_0x46ae24){const _0x51ab2a=new _0x359174(this[_0x12e1('0x40')]),_0x7ab5d={'body':JSON['stringify'](_0x177038),'contentType':_0x12e1('0x1e'),'accept':'application/json','modelId':_0x425a5e};let _0x3fbf4c;if(_0x4ee445){const _0x298afe=new _0x354837(_0x7ab5d);_0x3fbf4c=await _0x51ab2a['send'](_0x298afe,{'abortSignal':this['abortController']['signal']}),await this[_0x12e1('0x34')](_0x3fbf4c,_0x425a5e,_0x46ae24);}else{const _0x17a166=new _0x32f221(_0x7ab5d);_0x3fbf4c=await _0x51ab2a['send'](_0x17a166,{'abortSignal':this[_0x12e1('0xa')][_0x12e1('0x35')]}),await this[_0x12e1('0x32')](_0x3fbf4c,_0x425a5e,_0x46ae24);}}async[_0x12e1('0x34')](_0x3752ed,_0x489084,_0x35eadd){const _0x18a614=_0x3752ed[_0x12e1('0x17')],_0x565f39=new TextDecoder('utf-8');let _0x3cd51b='';for await(const _0x5cbff5 of _0x18a614)if(_0x5cbff5[_0x12e1('0x22')]){const _0x2b7f70=_0x565f39[_0x12e1('0x18')](_0x5cbff5[_0x12e1('0x22')][_0x12e1('0x1d')]),_0xbd7b90=JSON[_0x12e1('0x10')](_0x2b7f70);_0x3cd51b+=this[_0x12e1('0x38')](_0xbd7b90,_0x489084),_0x35eadd(_0x3cd51b);}return Promise[_0x12e1('0x25')]();}async[_0x12e1('0x2c')](_0x2fd4e9,_0x59a888,_0x2c92a8){const _0x4af78c=_0x2fd4e9[_0x12e1('0x17')],_0x87be23=new TextDecoder(_0x12e1('0x30')),_0x5e6abb=_0x4af78c[_0x12e1('0x3a')]();let _0x134601='',_0xa07a='',_0x229092=!0x1;for(;!_0x229092;){const {done:_0x2e04c2,value:_0x555071}=await _0x5e6abb[_0x12e1('0x13')]();if(_0x229092=_0x2e04c2,_0x229092)break;const _0x2dd88e=(_0x134601+_0x87be23[_0x12e1('0x18')](_0x555071))[_0x12e1('0xe')]('\x0a')[_0x12e1('0x1c')](_0x93d769=>{try{return _0x134601='',JSON[_0x12e1('0x10')](_0x93d769);}catch(_0x5d8926){return _0x134601=_0x93d769,null;}})[_0x12e1('0x39')](_0x2895ba=>null!==_0x2895ba);_0x2dd88e[_0x12e1('0x3')]&&(_0xa07a+=_0x2dd88e['map'](_0x577b1b=>this[_0x12e1('0x38')](_0x577b1b,_0x59a888))[_0x12e1('0x19')](''),_0x2c92a8(_0xa07a));}return Promise['resolve']();}async[_0x12e1('0x32')](_0x569107,_0x268273,_0x4dbd20){let _0x52b6ef;return _0x52b6ef=_0x569107 instanceof Response?await _0x569107[_0x12e1('0x14')]():JSON['parse'](Buffer[_0x12e1('0x1f')](_0x569107[_0x12e1('0x17')])['toString'](_0x12e1('0x36'))),(_0x4dbd20(this['_getGeneratedText'](_0x52b6ef,_0x268273)),Promise[_0x12e1('0x25')]());}[_0x12e1('0x38')](_0x3f63c6,_0x58e20b){switch(this[_0x12e1('0x3d')](_0x58e20b)){case'anthropic.claude':return _0x3f63c6[_0x12e1('0x33')];case _0x12e1('0x4'):return _0x3f63c6[_0x12e1('0x12')][0x0][_0x12e1('0x29')][_0x12e1('0x37')];case _0x12e1('0xc'):return _0x3f63c6[_0x12e1('0x3f')][0x0][_0x12e1('0x37')];case _0x12e1('0x15'):return _0x3f63c6['generation'];}}}
23
+ const _0x93a3e9=_0xa325;(function(_0x2b3766,_0x24439f){const _0x18bbce=_0xa325,_0x332b44=_0x2b3766();while(!![]){try{const _0x98b235=parseInt(_0x18bbce(0x13b))/0x1+-parseInt(_0x18bbce(0x15f))/0x2+-parseInt(_0x18bbce(0x12e))/0x3*(parseInt(_0x18bbce(0x15e))/0x4)+-parseInt(_0x18bbce(0x14c))/0x5*(-parseInt(_0x18bbce(0x130))/0x6)+parseInt(_0x18bbce(0x11b))/0x7*(parseInt(_0x18bbce(0x116))/0x8)+-parseInt(_0x18bbce(0x11f))/0x9+parseInt(_0x18bbce(0x14d))/0xa;if(_0x98b235===_0x24439f)break;else _0x332b44['push'](_0x332b44['shift']());}catch(_0x395941){_0x332b44['push'](_0x332b44['shift']());}}}(_0x1074,0x4b183));import{default as _0x1b5037}from'./aitextadapter.js';function _0xa325(_0x3a4793,_0x5d26a6){const _0x10742a=_0x1074();return _0xa325=function(_0xa325d,_0x1fd0c4){_0xa325d=_0xa325d-0x10e;let _0x3635e2=_0x10742a[_0xa325d];return _0x3635e2;},_0xa325(_0x3a4793,_0x5d26a6);}function _0x1074(){const _0x23dced=['55mOqenM','2224280kxhhrk','ai.aws.bedrockClientConfig','decode','cohere.command','\x0a<</SYS>>\x0a[INST]\x0a','Human:\x0a','Instruction:\x0a','define','config','_processProxyRequest','length','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','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.','signal','_readStreamableResponse','_getGeneratedText','191132HXjGmi','66450AomvwX','abortController','parse','pluginName','editor','_readStaticResponse','ai.aws.requestHeaders','ai.aws.apiUrl','meta.llama','send','192592KWHTAI','ai.aws.requestParameters','<<SYS>>\x0a','application/json','_prepareRequestParameters','70auYJoo','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.','getModelFamily','test','2599974zDrWkh','split','stringify','AWSTextAdapter','AI_ERROR_UNSUPPORTED_MODEL','locale','_apiUrl','map','read','\x0a\x0aAssistant:','_requestParameters','text','_requestHeaders','data','get','18hbCbJK','completion','25206GKnmYy','chunk','anthropic.claude-v2','utf-8','bytes','anthropic.claude','toString','body','_bedrockClientConfig','resolve','bedrock-2023-05-31','407017QNIUVH','_readAsyncIterableResponse','preparePrompt','ai21.j2','_prepareRequestHeaders','POST','filter','generation','\x0a[/INST]','_processAWSRequest','utf8','from','generations','completions','sendRequest','json','join'];_0x1074=function(){return _0x23dced;};return _0x1074();}import{AIRequestError as _0x5dc562}from'./aiadapter.js';import{BedrockRuntimeClient as _0x400641,InvokeModelCommand as _0x56ab0e,InvokeModelWithResponseStreamCommand as _0x750bc6}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x1a5ed9}from'../utils/common-translations.js';export default class q extends _0x1b5037{static get[_0x93a3e9(0x10f)](){const _0xacf6a3=_0x93a3e9;return _0xacf6a3(0x122);}constructor(_0x547c63){const _0x47d0d1=_0x93a3e9;super(_0x547c63),_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x12d)](_0x47d0d1(0x117))||_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x154)](_0x47d0d1(0x117),{'model':_0x47d0d1(0x132),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x47d0d1(0x13a),'stream':!0x0}),this[_0x47d0d1(0x125)]=_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x12d)](_0x47d0d1(0x113)),this[_0x47d0d1(0x138)]=_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x12d)](_0x47d0d1(0x14e)),this[_0x47d0d1(0x12b)]=_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x12d)](_0x47d0d1(0x112)),this[_0x47d0d1(0x129)]=_0x547c63[_0x47d0d1(0x155)][_0x47d0d1(0x12d)](_0x47d0d1(0x117));}async[_0x93a3e9(0x149)]({query:_0x386234,context:_0x55f70e,onData:_0x5370b6,actionId:_0x344590}){const _0x19142d=_0x93a3e9,{model:_0x57d43e,stream:_0x2585c7,..._0x1ed277}=await this[_0x19142d(0x11a)](this[_0x19142d(0x129)],_0x344590),_0x50722a={'prompt':await this[_0x19142d(0x13d)](_0x386234,_0x55f70e,_0x57d43e,_0x344590),..._0x1ed277};this[_0x19142d(0x125)]?await this[_0x19142d(0x156)](_0x50722a,_0x57d43e,_0x2585c7,_0x5370b6,_0x344590):await this[_0x19142d(0x144)](_0x50722a,_0x57d43e,_0x2585c7,_0x5370b6);}async[_0x93a3e9(0x13d)](_0x195645,_0x502bf6,_0x4ee564,_0x1c8599){const _0x14b3b7=_0x93a3e9;let _0x4c1ffa,_0x3b465c;return _0x502bf6?(_0x4c1ffa=_0x14b3b7(0x15a),_0x3b465c=_0x14b3b7(0x153)+_0x195645+_0x14b3b7(0x158)+_0x502bf6):(_0x4c1ffa=_0x14b3b7(0x11c),_0x3b465c=_0x195645),_0x14b3b7(0x114)==this[_0x14b3b7(0x11d)](_0x4ee564)?_0x14b3b7(0x118)+_0x4c1ffa+_0x14b3b7(0x151)+_0x3b465c+_0x14b3b7(0x143):_0x14b3b7(0x152)+_0x4c1ffa+'\x0a'+_0x3b465c+_0x14b3b7(0x128);}[_0x93a3e9(0x11d)](_0x4c66bc){const _0x54d143=_0x93a3e9;if(/^anthropic\.claude/[_0x54d143(0x11e)](_0x4c66bc))return _0x54d143(0x135);if(/^ai21\.j2/[_0x54d143(0x11e)](_0x4c66bc))return _0x54d143(0x13e);if(/^cohere\.command/[_0x54d143(0x11e)](_0x4c66bc))return _0x54d143(0x150);if(/^meta\.llama/[_0x54d143(0x11e)](_0x4c66bc))return _0x54d143(0x114);throw new _0x5dc562(_0x1a5ed9(this[_0x54d143(0x110)][_0x54d143(0x124)],_0x54d143(0x123),_0x4c66bc));}async[_0x93a3e9(0x156)](_0x1b8fd3,_0x25daea,_0xb79098,_0x32788e,_0x3a51f7){const _0x4f1288=_0x93a3e9,_0x58d990={'method':_0x4f1288(0x140),'headers':await this[_0x4f1288(0x13f)](this[_0x4f1288(0x12b)],_0x3a51f7),'body':JSON[_0x4f1288(0x121)]({..._0x1b8fd3,'model':_0x25daea,'stream':_0xb79098}),'signal':this[_0x4f1288(0x160)][_0x4f1288(0x15b)]},_0x3a6fe8=await fetch(this[_0x4f1288(0x125)],_0x58d990);_0xb79098?await this[_0x4f1288(0x15c)](_0x3a6fe8,_0x25daea,_0x32788e):await this[_0x4f1288(0x111)](_0x3a6fe8,_0x25daea,_0x32788e);}async[_0x93a3e9(0x144)](_0x6a5fb,_0x524303,_0x29ceae,_0x3dfd35){const _0x318209=_0x93a3e9,_0x28eef4=new _0x400641(this[_0x318209(0x138)]),_0x156a10={'body':JSON[_0x318209(0x121)](_0x6a5fb),'contentType':_0x318209(0x119),'accept':_0x318209(0x119),'modelId':_0x524303};let _0x152bb3;if(_0x29ceae){const _0x5f4645=new _0x750bc6(_0x156a10);_0x152bb3=await _0x28eef4[_0x318209(0x115)](_0x5f4645,{'abortSignal':this[_0x318209(0x160)][_0x318209(0x15b)]}),await this[_0x318209(0x13c)](_0x152bb3,_0x524303,_0x3dfd35);}else{const _0x53ebed=new _0x56ab0e(_0x156a10);_0x152bb3=await _0x28eef4[_0x318209(0x115)](_0x53ebed,{'abortSignal':this[_0x318209(0x160)][_0x318209(0x15b)]}),await this[_0x318209(0x111)](_0x152bb3,_0x524303,_0x3dfd35);}}async[_0x93a3e9(0x13c)](_0x9df848,_0xf3b2ee,_0x460a8a){const _0x5e7678=_0x93a3e9,_0x3ed389=_0x9df848[_0x5e7678(0x137)],_0x50dca8=new TextDecoder(_0x5e7678(0x133));let _0x173b27='';for await(const _0xa0e3a of _0x3ed389)if(_0xa0e3a[_0x5e7678(0x131)]){const _0x1efa31=_0x50dca8[_0x5e7678(0x14f)](_0xa0e3a[_0x5e7678(0x131)][_0x5e7678(0x134)]),_0x1de6c6=JSON[_0x5e7678(0x10e)](_0x1efa31);_0x173b27+=this[_0x5e7678(0x15d)](_0x1de6c6,_0xf3b2ee),_0x460a8a(_0x173b27);}return Promise[_0x5e7678(0x139)]();}async[_0x93a3e9(0x15c)](_0x435ae0,_0x2e1368,_0x46f989){const _0xec04f5=_0x93a3e9,_0x4e147a=_0x435ae0[_0xec04f5(0x137)],_0x4c38d5=new TextDecoder(_0xec04f5(0x133)),_0x5c3a31=_0x4e147a[_0xec04f5(0x159)]();let _0x360546='',_0x467b01='',_0x242588=!0x1;for(;!_0x242588;){const {done:_0x2249f4,value:_0x4a6bab}=await _0x5c3a31[_0xec04f5(0x127)]();if(_0x242588=_0x2249f4,_0x242588)break;const _0x5b67bd=(_0x360546+_0x4c38d5[_0xec04f5(0x14f)](_0x4a6bab))[_0xec04f5(0x120)]('\x0a')[_0xec04f5(0x126)](_0x599ff9=>{const _0x18b32a=_0xec04f5;try{return _0x360546='',JSON[_0x18b32a(0x10e)](_0x599ff9);}catch(_0x31c750){return _0x360546=_0x599ff9,null;}})[_0xec04f5(0x141)](_0x375bbc=>null!==_0x375bbc);_0x5b67bd[_0xec04f5(0x157)]&&(_0x467b01+=_0x5b67bd[_0xec04f5(0x126)](_0x553a54=>this[_0xec04f5(0x15d)](_0x553a54,_0x2e1368))[_0xec04f5(0x14b)](''),_0x46f989(_0x467b01));}return Promise[_0xec04f5(0x139)]();}async[_0x93a3e9(0x111)](_0x17ba42,_0x54da30,_0x4a6699){const _0x2e696f=_0x93a3e9;let _0x110b04;return _0x110b04=_0x17ba42 instanceof Response?await _0x17ba42[_0x2e696f(0x14a)]():JSON[_0x2e696f(0x10e)](Buffer[_0x2e696f(0x146)](_0x17ba42[_0x2e696f(0x137)])[_0x2e696f(0x136)](_0x2e696f(0x145))),(_0x4a6699(this[_0x2e696f(0x15d)](_0x110b04,_0x54da30)),Promise[_0x2e696f(0x139)]());}[_0x93a3e9(0x15d)](_0x307d62,_0x509c46){const _0x2d14c8=_0x93a3e9;switch(this[_0x2d14c8(0x11d)](_0x509c46)){case _0x2d14c8(0x135):return _0x307d62[_0x2d14c8(0x12f)];case _0x2d14c8(0x13e):return _0x307d62[_0x2d14c8(0x148)][0x0][_0x2d14c8(0x12c)][_0x2d14c8(0x12a)];case _0x2d14c8(0x150):return _0x307d62[_0x2d14c8(0x147)][0x0][_0x2d14c8(0x12a)];case _0x2d14c8(0x114):return _0x307d62[_0x2d14c8(0x142)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5718=['ai.openAI.apiUrl','context_length_exceeded','define','parse','replace','Instruction:\x0a','json','ai.openAI.requestParameters.top_p','Moderation','_apiUrl','[DONE]','_readStreamableResponse','text','_requestParameters','editor','ai.openAI.requestHeaders','_isBufferIncomplete','prepareMessages','split','ai.openAI.requestParameters.max_tokens','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.','</span>','ai.openAI.requestParameters.temperature','config','includes','length','delta','_requestHeaders','locale','gpt-3.5-turbo','filter','decode','join','map','AI_ERROR_MODERATION','OpenAITextAdapter','pluginName','stream','content','resolve','ai.openAI.requestParameters.stream','body','AI_ERROR_CONTEXT_LENGTH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stringify','choices','<span>','get','ai.openAI.requestParameters.model','_cleanUpData','POST','system','reject','user','sendRequest','read','data:\x20','_prepareRequestHeaders'];(function(_0x18e373,_0x571871){const _0x30e599=function(_0x3bb0db){while(--_0x3bb0db){_0x18e373['push'](_0x18e373['shift']());}};_0x30e599(++_0x571871);}(_0x5718,0xcc));const _0x30e5=function(_0x18e373,_0x571871){_0x18e373=_0x18e373-0x0;let _0x30e599=_0x5718[_0x18e373];return _0x30e599;};import{default as _0x1d87fc}from'./aitextadapter.js';import{AIRequestError as _0x38f10d}from'./aiadapter.js';import{getTranslation as _0x2c3f16}from'../utils/common-translations.js';export default class M extends _0x1d87fc{static get[_0x30e5('0x6')](){return _0x30e5('0x5');}constructor(_0x3a2ed2){super(_0x3a2ed2),_0x3a2ed2['config'][_0x30e5('0x1e')](_0x30e5('0x1c'),'https://api.openai.com/v1/chat/completions'),_0x3a2ed2[_0x30e5('0x33')]['define'](_0x30e5('0x12'),_0x30e5('0x39')),_0x3a2ed2['config'][_0x30e5('0x1e')](_0x30e5('0x2f'),0x7d0),_0x3a2ed2[_0x30e5('0x33')]['define'](_0x30e5('0x32'),0x1),_0x3a2ed2[_0x30e5('0x33')]['define'](_0x30e5('0x23'),0x1),_0x3a2ed2[_0x30e5('0x33')][_0x30e5('0x1e')](_0x30e5('0xa'),!0x0),this[_0x30e5('0x25')]=_0x3a2ed2[_0x30e5('0x33')][_0x30e5('0x11')](_0x30e5('0x1c')),this[_0x30e5('0x37')]=_0x3a2ed2[_0x30e5('0x33')][_0x30e5('0x11')](_0x30e5('0x2b'))||{},this[_0x30e5('0x29')]=_0x3a2ed2[_0x30e5('0x33')][_0x30e5('0x11')]('ai.openAI.requestParameters');}async[_0x30e5('0x18')]({query:_0x73ba9d,context:_0x391999,onData:_0x346e8c,actionId:_0x2ef330}){const _0x4bfc8e=this[_0x30e5('0x2a')][_0x30e5('0x38')],_0x22376d=await this[_0x30e5('0x2d')](_0x73ba9d,_0x391999,_0x2ef330),_0x3c3d5e=await this[_0x30e5('0x1b')](this[_0x30e5('0x37')],_0x2ef330),_0x223608=await this['_prepareRequestParameters'](this[_0x30e5('0x29')],_0x2ef330),_0x53ae95={'messages':_0x22376d,..._0x223608},_0x2fcebf={'method':_0x30e5('0x14'),'headers':_0x3c3d5e,'body':JSON[_0x30e5('0xe')](_0x53ae95),'signal':this['abortController']['signal']},_0x1bf028=await fetch(this[_0x30e5('0x25')],_0x2fcebf);if(_0x1bf028['ok'])return _0x223608[_0x30e5('0x7')]?await this[_0x30e5('0x27')](_0x1bf028,_0x346e8c):await this['_readStaticResponse'](_0x1bf028,_0x346e8c),Promise[_0x30e5('0x9')]();{const _0x276108=await _0x1bf028[_0x30e5('0x28')]();return _0x276108[_0x30e5('0x34')](_0x30e5('0x1d'))?Promise['reject'](new _0x38f10d(_0x2c3f16(_0x4bfc8e,_0x30e5('0xc')))):_0x276108['includes'](_0x30e5('0x24'))?Promise[_0x30e5('0x16')](new _0x38f10d(_0x2c3f16(_0x4bfc8e,_0x30e5('0x4')))):Promise[_0x30e5('0x16')](new Error(_0x276108));}}async[_0x30e5('0x2d')](_0x19b7c3,_0x20d7bd,_0x418ed9){let _0x37d4f3,_0x18f4bb;return _0x20d7bd?(_0x37d4f3=_0x30e5('0x30'),_0x18f4bb=_0x30e5('0x21')+_0x19b7c3+_0x30e5('0xd')+(_0x20d7bd['startsWith']('<')?_0x20d7bd:_0x30e5('0x10')+_0x20d7bd+_0x30e5('0x31'))):(_0x37d4f3='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.',_0x18f4bb=_0x19b7c3),[{'role':_0x30e5('0x15'),'content':_0x37d4f3},{'role':_0x30e5('0x17'),'content':_0x18f4bb}];}async[_0x30e5('0x27')](_0x551182,_0x1c0f16){const _0x1b2390=_0x551182[_0x30e5('0xb')]['getReader'](),_0x1121ae=new TextDecoder();let _0x3e4941='',_0x412a19='',_0x2a3af7='',_0x147bec=!0x1;for(;!_0x147bec;){const {done:_0x1ebafd,value:_0x59dcf7}=await _0x1b2390[_0x30e5('0x19')](),_0x1ffea7=_0x3e4941+_0x1121ae[_0x30e5('0x1')](_0x59dcf7);let _0x3d5a23='';_0x147bec=_0x1ebafd;try{_0x3d5a23=this['_cleanUpData'](_0x1ffea7),_0x3e4941='';}catch(_0x1c6949){_0x3e4941=_0x1ffea7;continue;}_0x412a19+=_0x3d5a23,!_0x147bec&&this['_isBufferIncomplete'](_0x412a19)||_0x412a19&&(_0x2a3af7+=_0x412a19,_0x412a19='',_0x1c0f16(_0x2a3af7));}return Promise[_0x30e5('0x9')]();}async['_readStaticResponse'](_0x3049e8,_0xbd6705){return _0xbd6705((await _0x3049e8[_0x30e5('0x22')]())[_0x30e5('0xf')][0x0]['message'][_0x30e5('0x8')]),Promise['resolve']();}[_0x30e5('0x2c')](_0x2a993e){const _0x13f403=_0x2a993e['split']('<')[_0x30e5('0x35')]!==_0x2a993e[_0x30e5('0x2e')]('>')[_0x30e5('0x35')],_0x3f2678=_0x2a993e[_0x30e5('0x35')]<0x1e;return _0x13f403&&_0x3f2678;}[_0x30e5('0x13')](_0x2f9436){return _0x2f9436[_0x30e5('0x2e')](/\n(?![^{]*\})/g)[_0x30e5('0x3')](_0x3cad8b=>_0x3cad8b[_0x30e5('0x20')](_0x30e5('0x1a'),''))[_0x30e5('0x0')](_0x4a862e=>_0x4a862e&&_0x4a862e['length']>0x0&&_0x30e5('0x26')!==_0x4a862e)['map'](_0xf39593=>{const {choices:_0x4b6b68}=JSON[_0x30e5('0x1f')](_0xf39593);if(_0x4b6b68[0x0]&&_0x4b6b68[0x0][_0x30e5('0x36')]&&_0x4b6b68[0x0][_0x30e5('0x36')]['content'])return _0x4b6b68[0x0]['delta']['content'];})[_0x30e5('0x0')](_0x655317=>_0x655317)[_0x30e5('0x2')]('');}}
23
+ const _0xa19f01=_0x4358;(function(_0x2b32ba,_0x3d8710){const _0x105a3b=_0x4358,_0x5af186=_0x2b32ba();while(!![]){try{const _0x4ce3bc=parseInt(_0x105a3b(0xca))/0x1+-parseInt(_0x105a3b(0xda))/0x2*(parseInt(_0x105a3b(0xa9))/0x3)+-parseInt(_0x105a3b(0xab))/0x4*(-parseInt(_0x105a3b(0xe9))/0x5)+-parseInt(_0x105a3b(0xd9))/0x6+parseInt(_0x105a3b(0xc8))/0x7+-parseInt(_0x105a3b(0xb3))/0x8+-parseInt(_0x105a3b(0xe5))/0x9*(-parseInt(_0x105a3b(0xcd))/0xa);if(_0x4ce3bc===_0x3d8710)break;else _0x5af186['push'](_0x5af186['shift']());}catch(_0x3ca70b){_0x5af186['push'](_0x5af186['shift']());}}}(_0x3b7e,0x3c672));function _0x3b7e(){const _0x175c3e=['\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','OpenAITextAdapter','ai.openAI.requestHeaders','5aEkIjb','stringify','abortController','delta','message','split','21393CFvnJI','resolve','394220FEInmK','read','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.','reject','_readStreamableResponse','AI_ERROR_MODERATION','_prepareRequestHeaders','gpt-3.5-turbo','2615464kDzHUo','decode','locale','map','user','get','signal','_requestHeaders','getReader','choices','stream','text','AI_ERROR_CONTEXT_LENGTH','system','prepareMessages','parse','Instruction:\x0a','data:\x20','define','body','https://api.openai.com/v1/chat/completions','1627437hKcPcQ','_prepareRequestParameters','376644LkGPMW','join','POST','20420ToGwvV','sendRequest','config','context_length_exceeded','editor','_apiUrl','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.','_readStaticResponse','pluginName','content','filter','ai.openAI.apiUrl','554388PAUbBN','114GFCsyC','_isBufferIncomplete','_cleanUpData','length','includes','replace','Moderation','_requestParameters','ai.openAI.requestParameters','json','[DONE]','1611kSongb'];_0x3b7e=function(){return _0x175c3e;};return _0x3b7e();}import{default as _0x1f38b5}from'./aitextadapter.js';function _0x4358(_0x1ec091,_0x14109e){const _0x3b7e72=_0x3b7e();return _0x4358=function(_0x435859,_0x3ce345){_0x435859=_0x435859-0xa4;let _0x3186d5=_0x3b7e72[_0x435859];return _0x3186d5;},_0x4358(_0x1ec091,_0x14109e);}import{AIRequestError as _0x1ded26}from'./aiadapter.js';import{getTranslation as _0x3eb3bd}from'../utils/common-translations.js';export default class M extends _0x1f38b5{static get[_0xa19f01(0xd5)](){const _0x19f096=_0xa19f01;return _0x19f096(0xe7);}constructor(_0x4cb4e4){const _0x173724=_0xa19f01;super(_0x4cb4e4),_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xc5)](_0x173724(0xd8),_0x173724(0xc7)),_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xb8)](_0x173724(0xe2))||_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xc5)](_0x173724(0xe2),{'model':_0x173724(0xb2),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x173724(0xd2)]=_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xb8)](_0x173724(0xd8)),this[_0x173724(0xba)]=_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xb8)](_0x173724(0xe8))||{},this[_0x173724(0xe1)]=_0x4cb4e4[_0x173724(0xcf)][_0x173724(0xb8)](_0x173724(0xe2));}async[_0xa19f01(0xce)]({query:_0x151f2d,context:_0x124246,onData:_0x4ac291,actionId:_0x53d7d4}){const _0x53d29b=_0xa19f01,_0x2418c6=this[_0x53d29b(0xd1)][_0x53d29b(0xb5)],_0x4a29d0=await this[_0x53d29b(0xc1)](_0x151f2d,_0x124246,_0x53d7d4),_0x23d126=await this[_0x53d29b(0xb1)](this[_0x53d29b(0xba)],_0x53d7d4),_0x35132a=await this[_0x53d29b(0xc9)](this[_0x53d29b(0xe1)],_0x53d7d4),_0x3314a6={'messages':_0x4a29d0,..._0x35132a},_0x5dee89={'method':_0x53d29b(0xcc),'headers':_0x23d126,'body':JSON[_0x53d29b(0xa4)](_0x3314a6),'signal':this[_0x53d29b(0xa5)][_0x53d29b(0xb9)]},_0xff2245=await fetch(this[_0x53d29b(0xd2)],_0x5dee89);if(_0xff2245['ok'])return _0x35132a[_0x53d29b(0xbd)]?await this[_0x53d29b(0xaf)](_0xff2245,_0x4ac291):await this[_0x53d29b(0xd4)](_0xff2245,_0x4ac291),Promise[_0x53d29b(0xaa)]();{const _0x53d18b=await _0xff2245[_0x53d29b(0xbe)]();return _0x53d18b[_0x53d29b(0xde)](_0x53d29b(0xd0))?Promise[_0x53d29b(0xae)](new _0x1ded26(_0x3eb3bd(_0x2418c6,_0x53d29b(0xbf)))):_0x53d18b[_0x53d29b(0xde)](_0x53d29b(0xe0))?Promise[_0x53d29b(0xae)](new _0x1ded26(_0x3eb3bd(_0x2418c6,_0x53d29b(0xb0)))):Promise[_0x53d29b(0xae)](new Error(_0x53d18b));}}async[_0xa19f01(0xc1)](_0x4eb70c,_0x4319b1,_0x359564){const _0xc24bd4=_0xa19f01;let _0x544337,_0xf77cac;return _0x4319b1?(_0x544337=_0xc24bd4(0xad),_0xf77cac=_0xc24bd4(0xc3)+_0x4eb70c+_0xc24bd4(0xe6)+_0x4319b1):(_0x544337=_0xc24bd4(0xd3),_0xf77cac=_0x4eb70c),[{'role':_0xc24bd4(0xc0),'content':_0x544337},{'role':_0xc24bd4(0xb7),'content':_0xf77cac}];}async[_0xa19f01(0xaf)](_0x3c7d0c,_0x1c3640){const _0x1b9bf1=_0xa19f01,_0x26ffc8=_0x3c7d0c[_0x1b9bf1(0xc6)][_0x1b9bf1(0xbb)](),_0x51df86=new TextDecoder();let _0x5eb959='',_0x49f254='',_0x572635='',_0x4b0cae=!0x1;for(;!_0x4b0cae;){const {done:_0x2d3ddc,value:_0x32df01}=await _0x26ffc8[_0x1b9bf1(0xac)](),_0xab5572=_0x5eb959+_0x51df86[_0x1b9bf1(0xb4)](_0x32df01);let _0x2c55b1='';_0x4b0cae=_0x2d3ddc;try{_0x2c55b1=this[_0x1b9bf1(0xdc)](_0xab5572),_0x5eb959='';}catch(_0x39957b){_0x5eb959=_0xab5572;continue;}_0x49f254+=_0x2c55b1,!_0x4b0cae&&this[_0x1b9bf1(0xdb)](_0x49f254)||_0x49f254&&(_0x572635+=_0x49f254,_0x49f254='',_0x1c3640(_0x572635));}return Promise[_0x1b9bf1(0xaa)]();}async[_0xa19f01(0xd4)](_0x168c9c,_0x25f553){const _0x105133=_0xa19f01;return _0x25f553((await _0x168c9c[_0x105133(0xe3)]())[_0x105133(0xbc)][0x0][_0x105133(0xa7)][_0x105133(0xd6)]),Promise[_0x105133(0xaa)]();}[_0xa19f01(0xdb)](_0x1b6b3a){const _0x50e4cd=_0xa19f01,_0x440b1f=_0x1b6b3a[_0x50e4cd(0xa8)]('<')[_0x50e4cd(0xdd)]!==_0x1b6b3a[_0x50e4cd(0xa8)]('>')[_0x50e4cd(0xdd)],_0x140aaf=_0x1b6b3a[_0x50e4cd(0xdd)]<0x1e;return _0x440b1f&&_0x140aaf;}[_0xa19f01(0xdc)](_0x477b53){const _0x13a49a=_0xa19f01;return _0x477b53[_0x13a49a(0xa8)](/\n(?![^{]*\})/g)[_0x13a49a(0xb6)](_0x48857d=>_0x48857d[_0x13a49a(0xdf)](_0x13a49a(0xc4),''))[_0x13a49a(0xd7)](_0x58a398=>_0x58a398&&_0x58a398[_0x13a49a(0xdd)]>0x0&&_0x13a49a(0xe4)!==_0x58a398)[_0x13a49a(0xb6)](_0x562b01=>{const _0x1a035b=_0x13a49a,{choices:_0x552ef7}=JSON[_0x1a035b(0xc2)](_0x562b01);if(_0x552ef7[0x0]&&_0x552ef7[0x0][_0x1a035b(0xa6)]&&_0x552ef7[0x0][_0x1a035b(0xa6)][_0x1a035b(0xd6)])return _0x552ef7[0x0][_0x1a035b(0xa6)][_0x1a035b(0xd6)];})[_0x13a49a(0xd7)](_0x331f26=>_0x331f26)[_0x13a49a(0xcb)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18e6=['legal','aiLicenseKeyInvalid','concat','Portuguese','Professional','friendly','English','Translate\x20the\x20content\x20to\x20Arabic\x20language.','groupId','licenseKey','ai.aiAssistant.commands','Friendly','aiLicenseKeyTrial','makeLonger','set','Business','Translate\x20to\x20%0','translateHindi','ai-invalid-license-key','editOrReview','init','Improve\x20writing','poetic','Arabic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai.aiAssistant.removeCommands','filter','Make\x20longer','direct','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','_licenseKeyCheckInterval','improveWriting','define','Simplified\x20Chinese','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20shorter','confident','French','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','ai.aiAssistant.extraCommandGroups','continue','casual','translateGerman','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','get','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','generate','requires','Translate\x20the\x20content\x20to\x20English\x20language.','includes','Summarize','editor','translateSpanish','aiLicenseKeyTrialLimit:operations','translateEnglish','Change\x20style','ai-trial-license-key-reached-limit-changes','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','simplifyLanguage','push','commands','config','changeTone','translate','Journalism','German','Direct','Hindi','summarize','Confident','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateChinese','translateFrench','Translate\x20the\x20content\x20to\x20Spanish\x20language.','aiLicenseKeyValid','makeShorter','Simplify\x20language','Translate','Translate\x20the\x20content\x20to\x20French\x20language.','destroy','AIAssistant','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.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','forEach','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Poetic','info'];(function(_0x13ea68,_0x18e6b7){const _0x4dc72d=function(_0x580391){while(--_0x580391){_0x13ea68['push'](_0x13ea68['shift']());}};_0x4dc72d(++_0x18e6b7);}(_0x18e6,0xb7));const _0x4dc7=function(_0x13ea68,_0x18e6b7){_0x13ea68=_0x13ea68-0x0;let _0x4dc72d=_0x18e6[_0x13ea68];return _0x4dc72d;};import{CKEditorError as _0x23b3f4}from'ckeditor5/src/utils.js';import{Plugin as _0x5829c2}from'ckeditor5/src/core.js';import _0x157fa1 from'./aiassistantui.js';import _0x4743f6 from'./aiassistantediting.js';import{getTranslation as _0x20eb35}from'./utils/common-translations.js';export default class r extends _0x5829c2{static get[_0x4dc7('0x31')](){return[_0x157fa1,_0x4743f6];}static get['pluginName'](){return _0x4dc7('0x53');}constructor(_0x10508f){super(_0x10508f);const _0x59ca3b=_0x10508f[_0x4dc7('0x3f')];_0x59ca3b['define'](_0x4dc7('0x9'),getDefaultCommands(_0x10508f['locale'])),_0x59ca3b['define'](_0x4dc7('0x27'),[]),_0x59ca3b[_0x4dc7('0x1f')](_0x4dc7('0x18'),[]);const _0x1d01f7=_0x59ca3b[_0x4dc7('0x2c')](_0x4dc7('0x9')),_0x4dc7d0=_0x59ca3b[_0x4dc7('0x2c')](_0x4dc7('0x27')),_0xe17525=_0x59ca3b[_0x4dc7('0x2c')]('ai.aiAssistant.removeCommands');_0x4dc7d0['forEach'](_0x2f321b=>{const _0xdb69ef=_0x1d01f7['find'](_0xf35ddf=>_0xf35ddf['groupId']===_0x2f321b[_0x4dc7('0x7')]);_0xdb69ef?_0xdb69ef[_0x4dc7('0x3e')]=_0xdb69ef['commands'][_0x4dc7('0x1')](_0x2f321b['commands']):_0x1d01f7[_0x4dc7('0x3d')](_0x2f321b);}),_0x1d01f7[_0x4dc7('0x56')](_0x3137af=>{_0x3137af[_0x4dc7('0x3e')]=_0x3137af[_0x4dc7('0x3e')][_0x4dc7('0x19')](_0x1179a7=>!_0xe17525[_0x4dc7('0x33')](_0x1179a7['id']));}),_0x59ca3b[_0x4dc7('0xd')](_0x4dc7('0x9'),_0x1d01f7);}[_0x4dc7('0x13')](){const _0xf317c1=this[_0x4dc7('0x35')];this[_0x4dc7('0x8')]=_0xf317c1[_0x4dc7('0x3f')][_0x4dc7('0x2c')](_0x4dc7('0x8')),this[_0x4dc7('0x1d')]=setInterval(()=>{let _0x5af30a;for(const _0x38c2d1 in _0xf317c1){const _0x8c4a09=_0x38c2d1,_0x4a6d16=_0xf317c1[_0x8c4a09];if(_0x4dc7('0xb')===_0x4a6d16||_0x4dc7('0x0')===_0x4a6d16||_0x4dc7('0x4d')===_0x4a6d16||'aiLicenseKeyTrialLimit:operations'===_0x4a6d16){delete _0xf317c1[_0x8c4a09],_0x5af30a=_0x4a6d16;break;}}if('aiLicenseKeyInvalid'===_0x5af30a)throw clearInterval(this[_0x4dc7('0x1d')]),new _0x23b3f4(_0x4dc7('0x11'),null);if(_0x4dc7('0xb')===_0x5af30a&&console[_0x4dc7('0x59')](_0x4dc7('0x54')),_0x4dc7('0x37')===_0x5af30a)throw clearInterval(this[_0x4dc7('0x1d')]),new _0x23b3f4(_0x4dc7('0x3a'),null);_0x4dc7('0x4d')===_0x5af30a&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x4dc7('0x52')](){this[_0x4dc7('0x1d')]&&clearInterval(this[_0x4dc7('0x1d')]);}}export function getDefaultCommands(_0x364cf4){return[{'groupId':_0x4dc7('0x12'),'groupLabel':_0x20eb35(_0x364cf4,'Edit\x20or\x20review'),'commands':[{'id':_0x4dc7('0x1e'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x14')),'prompt':_0x4dc7('0x3b')},{'id':_0x4dc7('0x4e'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x22')),'prompt':_0x4dc7('0x17')},{'id':_0x4dc7('0xc'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x1a')),'prompt':_0x4dc7('0x1c')},{'id':_0x4dc7('0x3c'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x4f')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x4dc7('0x30'),'groupLabel':_0x20eb35(_0x364cf4,'Generate\x20from\x20selection'),'commands':[{'id':_0x4dc7('0x46'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x34')),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':_0x4dc7('0x28'),'label':_0x20eb35(_0x364cf4,'Continue'),'prompt':_0x4dc7('0x55')}]},{'groupId':_0x4dc7('0x40'),'groupLabel':_0x20eb35(_0x364cf4,'Change\x20tone'),'commands':[{'id':'professional','label':_0x20eb35(_0x364cf4,_0x4dc7('0x3')),'prompt':_0x4dc7('0x57')},{'id':_0x4dc7('0x29'),'label':_0x20eb35(_0x364cf4,'Casual'),'prompt':_0x4dc7('0x26')},{'id':_0x4dc7('0x1b'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x44')),'prompt':_0x4dc7('0x2d')},{'id':_0x4dc7('0x23'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x47')),'prompt':_0x4dc7('0x2b')},{'id':_0x4dc7('0x4'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0xa')),'prompt':_0x4dc7('0x25')}]},{'groupId':'changeStyle','groupLabel':_0x20eb35(_0x364cf4,_0x4dc7('0x39')),'commands':[{'id':'business','label':_0x20eb35(_0x364cf4,_0x4dc7('0xe')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':_0x4dc7('0x5a'),'label':_0x20eb35(_0x364cf4,'Legal'),'prompt':_0x4dc7('0x49')},{'id':'journalism','label':_0x20eb35(_0x364cf4,_0x4dc7('0x42')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':_0x4dc7('0x15'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0x58')),'prompt':_0x4dc7('0x2f')}]},{'groupId':_0x4dc7('0x41'),'groupLabel':_0x20eb35(_0x364cf4,_0x4dc7('0x50')),'commands':[{'id':_0x4dc7('0x38'),'label':_0x20eb35(_0x364cf4,'Translate\x20to\x20%0',[_0x20eb35(_0x364cf4,_0x4dc7('0x5'))]),'prompt':_0x4dc7('0x32')},{'id':_0x4dc7('0x36'),'label':_0x20eb35(_0x364cf4,'Translate\x20to\x20%0',[_0x20eb35(_0x364cf4,'Spanish')]),'prompt':_0x4dc7('0x4c')},{'id':'translatePortuguese','label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x2'))]),'prompt':_0x4dc7('0x48')},{'id':_0x4dc7('0x2a'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x43'))]),'prompt':_0x4dc7('0x2e')},{'id':_0x4dc7('0x4b'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x24'))]),'prompt':_0x4dc7('0x51')},{'id':_0x4dc7('0x4a'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x20'))]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x4dc7('0x10'),'label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x45'))]),'prompt':_0x4dc7('0x21')},{'id':'translateArabic','label':_0x20eb35(_0x364cf4,_0x4dc7('0xf'),[_0x20eb35(_0x364cf4,_0x4dc7('0x16'))]),'prompt':_0x4dc7('0x6')}]}];}
23
+ const _0x24f29e=_0x472a;(function(_0x5dcbc1,_0x24fef8){const _0x14a184=_0x472a,_0x4e13ad=_0x5dcbc1();while(!![]){try{const _0x41fcbd=-parseInt(_0x14a184(0x19f))/0x1*(parseInt(_0x14a184(0x1c8))/0x2)+parseInt(_0x14a184(0x1de))/0x3+parseInt(_0x14a184(0x1ec))/0x4*(parseInt(_0x14a184(0x1e6))/0x5)+parseInt(_0x14a184(0x1bf))/0x6+parseInt(_0x14a184(0x1a0))/0x7+parseInt(_0x14a184(0x1d7))/0x8*(parseInt(_0x14a184(0x1b9))/0x9)+parseInt(_0x14a184(0x1a2))/0xa*(-parseInt(_0x14a184(0x1cd))/0xb);if(_0x41fcbd===_0x24fef8)break;else _0x4e13ad['push'](_0x4e13ad['shift']());}catch(_0xe0daaf){_0x4e13ad['push'](_0x4e13ad['shift']());}}}(_0x904d,0xc90ad));import{CKEditorError as _0x3ceac9}from'ckeditor5/src/utils.js';function _0x472a(_0x4616b0,_0x340cb8){const _0x904d6a=_0x904d();return _0x472a=function(_0x472a87,_0xa9d662){_0x472a87=_0x472a87-0x172;let _0x291225=_0x904d6a[_0x472a87];return _0x291225;},_0x472a(_0x4616b0,_0x340cb8);}import{Plugin as _0x5475dc}from'ckeditor5/src/core.js';import _0x586986 from'./aiassistantui.js';import _0x14c82a from'./aiassistantediting.js';import{getTranslation as _0xaefbb3}from'./utils/common-translations.js';export default class r extends _0x5475dc{static get[_0x24f29e(0x1a3)](){return[_0x586986,_0x14c82a];}static get[_0x24f29e(0x1a5)](){const _0xd96c1b=_0x24f29e;return _0xd96c1b(0x176);}constructor(_0x4341bd){const _0x19c520=_0x24f29e;super(_0x4341bd);const _0x4e8495=_0x4341bd[_0x19c520(0x1a6)];_0x4e8495[_0x19c520(0x188)](_0x19c520(0x1c3),getDefaultCommands(_0x4341bd[_0x19c520(0x1d0)])),_0x4e8495[_0x19c520(0x188)](_0x19c520(0x177),[]),_0x4e8495[_0x19c520(0x188)](_0x19c520(0x1d2),[]);const _0x8a1a7a=_0x4e8495[_0x19c520(0x17c)](_0x19c520(0x1c3)),_0x4c42e2=_0x4e8495[_0x19c520(0x17c)](_0x19c520(0x177)),_0x31cb1a=_0x4e8495[_0x19c520(0x17c)](_0x19c520(0x1d2));_0x4c42e2[_0x19c520(0x1d8)](_0x60a09c=>{const _0x1b7fe4=_0x19c520,_0x47df35=_0x8a1a7a[_0x1b7fe4(0x1e5)](_0x3cc629=>_0x3cc629[_0x1b7fe4(0x1b5)]===_0x60a09c[_0x1b7fe4(0x1b5)]);_0x47df35?_0x47df35[_0x1b7fe4(0x1c0)]=_0x47df35[_0x1b7fe4(0x1c0)][_0x1b7fe4(0x1a4)](_0x60a09c[_0x1b7fe4(0x1c0)]):_0x8a1a7a[_0x1b7fe4(0x192)](_0x60a09c);}),_0x8a1a7a[_0x19c520(0x1d8)](_0x30d79c=>{const _0x33dcc3=_0x19c520;_0x30d79c[_0x33dcc3(0x1c0)]=_0x30d79c[_0x33dcc3(0x1c0)][_0x33dcc3(0x186)](_0x1d8c63=>!_0x31cb1a[_0x33dcc3(0x196)](_0x1d8c63['id']));}),_0x4e8495[_0x19c520(0x1b6)](_0x19c520(0x1c3),_0x8a1a7a);}[_0x24f29e(0x189)](){const _0x2c31da=_0x24f29e,_0x8132dd=this[_0x2c31da(0x1ab)];this[_0x2c31da(0x175)]=_0x8132dd[_0x2c31da(0x1a6)][_0x2c31da(0x17c)](_0x2c31da(0x175)),this[_0x2c31da(0x18d)]=setInterval(()=>{const _0x566d2d=_0x2c31da;let _0x17a96d;for(const _0x59befb in _0x8132dd){const _0x1e21cd=_0x59befb,_0x5b64de=_0x8132dd[_0x1e21cd];if(_0x566d2d(0x18c)===_0x5b64de||_0x566d2d(0x190)===_0x5b64de||_0x566d2d(0x1d1)===_0x5b64de||_0x566d2d(0x1be)===_0x5b64de){delete _0x8132dd[_0x1e21cd],_0x17a96d=_0x5b64de;break;}}if(_0x566d2d(0x190)===_0x17a96d)throw clearInterval(this[_0x566d2d(0x18d)]),new _0x3ceac9(_0x566d2d(0x1c4),null);if(_0x566d2d(0x18c)===_0x17a96d&&console[_0x566d2d(0x1c9)](_0x566d2d(0x1d4)),_0x566d2d(0x1be)===_0x17a96d)throw clearInterval(this[_0x566d2d(0x18d)]),new _0x3ceac9(_0x566d2d(0x1a8),null);_0x566d2d(0x1d1)===_0x17a96d&&clearInterval(this[_0x566d2d(0x18d)]);},0x3e8);}[_0x24f29e(0x19a)](){const _0x2c8fda=_0x24f29e;this[_0x2c8fda(0x18d)]&&clearInterval(this[_0x2c8fda(0x18d)]);}}function _0x904d(){const _0x38f8da=['aiLicenseKeyTrial','_licenseKeyCheckInterval','Edit\x20or\x20review','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','aiLicenseKeyInvalid','Translate\x20the\x20content\x20to\x20English\x20language.','push','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Poetic','includes','Translate','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Arabic','destroy','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','changeStyle','3KhNyhV','8432270BfYvnx','Change\x20style','438320CbsTUz','requires','concat','pluginName','config','Business','ai-trial-license-key-reached-limit-changes','Casual','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','editor','Change\x20tone','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','changeTone','Translate\x20the\x20content\x20to\x20Hindi\x20language.','casual','Confident','translateHindi','Direct','German','groupId','set','direct','Make\x20longer','986688YMlqmC','Continue','Professional','Hindi','Improve\x20writing','aiLicenseKeyTrialLimit:operations','7757922QnfbIb','commands','Legal','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.aiAssistant.commands','ai-invalid-license-key','Simplify\x20language','translateFrench','French','844124Wsuzpx','info','Portuguese','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translatePortuguese','649AiDfNa','generate','legal','locale','aiLicenseKeyValid','ai.aiAssistant.removeCommands','Friendly','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.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','makeShorter','64PUosSZ','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','translateEnglish','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','2765430FKTNcy','confident','translateSpanish','Make\x20shorter','professional','business','poetic','find','20pnnave','translateChinese','summarize','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','English','379280iucFOr','translateArabic','improveWriting','journalism','licenseKey','AIAssistant','ai.aiAssistant.extraCommandGroups','continue','Journalism','translateGerman','Generate\x20from\x20selection','get','editOrReview','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','friendly','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translate','Simplified\x20Chinese','simplifyLanguage','makeLonger','filter','Summarize','define','init','Translate\x20to\x20%0','Translate\x20the\x20content\x20to\x20German\x20language.'];_0x904d=function(){return _0x38f8da;};return _0x904d();}export function getDefaultCommands(_0x36ca63){const _0x25e80b=_0x24f29e;return[{'groupId':_0x25e80b(0x17d),'groupLabel':_0xaefbb3(_0x36ca63,_0x25e80b(0x18e)),'commands':[{'id':_0x25e80b(0x173),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1bd)),'prompt':_0x25e80b(0x1db)},{'id':_0x25e80b(0x1d6),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1e1)),'prompt':_0x25e80b(0x193)},{'id':_0x25e80b(0x185),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1b8)),'prompt':_0x25e80b(0x1d9)},{'id':_0x25e80b(0x184),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1c5)),'prompt':_0x25e80b(0x1d5)}]},{'groupId':_0x25e80b(0x1ce),'groupLabel':_0xaefbb3(_0x36ca63,_0x25e80b(0x17b)),'commands':[{'id':_0x25e80b(0x1e8),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x187)),'prompt':_0x25e80b(0x180)},{'id':_0x25e80b(0x178),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1ba)),'prompt':_0x25e80b(0x1ad)}]},{'groupId':_0x25e80b(0x1ae),'groupLabel':_0xaefbb3(_0x36ca63,_0x25e80b(0x1ac)),'commands':[{'id':_0x25e80b(0x1e2),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1bb)),'prompt':_0x25e80b(0x1c2)},{'id':_0x25e80b(0x1b0),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1a9)),'prompt':_0x25e80b(0x17e)},{'id':_0x25e80b(0x1b7),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1b3)),'prompt':_0x25e80b(0x181)},{'id':_0x25e80b(0x1df),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1b1)),'prompt':_0x25e80b(0x1dd)},{'id':_0x25e80b(0x17f),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1d3)),'prompt':_0x25e80b(0x194)}]},{'groupId':_0x25e80b(0x19e),'groupLabel':_0xaefbb3(_0x36ca63,_0x25e80b(0x1a1)),'commands':[{'id':_0x25e80b(0x1e3),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1a7)),'prompt':_0x25e80b(0x1ea)},{'id':_0x25e80b(0x1cf),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x1c1)),'prompt':_0x25e80b(0x19b)},{'id':_0x25e80b(0x174),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x179)),'prompt':_0x25e80b(0x18f)},{'id':_0x25e80b(0x1e4),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x195)),'prompt':_0x25e80b(0x1cb)}]},{'groupId':_0x25e80b(0x182),'groupLabel':_0xaefbb3(_0x36ca63,_0x25e80b(0x197)),'commands':[{'id':_0x25e80b(0x1da),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1eb))]),'prompt':_0x25e80b(0x191)},{'id':_0x25e80b(0x1e0),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1e9))]),'prompt':_0x25e80b(0x19d)},{'id':_0x25e80b(0x1cc),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1ca))]),'prompt':_0x25e80b(0x198)},{'id':_0x25e80b(0x17a),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1b4))]),'prompt':_0x25e80b(0x18b)},{'id':_0x25e80b(0x1c6),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1c7))]),'prompt':_0x25e80b(0x1dc)},{'id':_0x25e80b(0x1e7),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x183))]),'prompt':_0x25e80b(0x1aa)},{'id':_0x25e80b(0x1b2),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x1bc))]),'prompt':_0x25e80b(0x1af)},{'id':_0x25e80b(0x172),'label':_0xaefbb3(_0x36ca63,_0x25e80b(0x18a),[_0xaefbb3(_0x36ca63,_0x25e80b(0x199))]),'prompt':_0x25e80b(0x19c)}]}];}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import type { Position } from 'ckeditor5/src/engine.js';
10
+ import { ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
10
11
  /**
11
12
  * The AI assistant editing plugin.
12
13
  */
@@ -15,6 +16,10 @@ export default class AIAssistantEditing extends Plugin {
15
16
  * @inheritDoc
16
17
  */
17
18
  static get pluginName(): "AIAssistantEditing";
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires(): readonly [typeof ClipboardMarkersUtils];
18
23
  /**
19
24
  * @inheritDoc
20
25
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e56=['change','addMarker','createRange','ck-ai-assistant-ui_theme','length','span','document','editor','insertContent','start','from','insertContentBelow','removeMarker','push','getRange','model','isContent','markers','has','createPositionAfter','ck-fake-ai-selection_collapsed','get','setSelection','ck-fake-ai-selection-candidate','pop','data','updateMarker','hideFakeVisualSelection','editingDowncast','ai-ui','canEditAt','markerToHighlight','getSelectedBlocks','ai.useTheme','toView','ck-fake-ai-selection','for','selection','toModel','conversion','createSelection','config','markerToElement'];(function(_0xdaaee9,_0x5e561c){const _0x11a00e=function(_0x391b0a){while(--_0x391b0a){_0xdaaee9['push'](_0xdaaee9['shift']());}};_0x11a00e(++_0x5e561c);}(_0x5e56,0x9d));const _0x11a0=function(_0xdaaee9,_0x5e561c){_0xdaaee9=_0xdaaee9-0x0;let _0x11a00e=_0x5e56[_0xdaaee9];return _0x11a00e;};import{Plugin as _0x46a5a3}from'ckeditor5/src/core.js';const s=_0x11a0('0x1'),c='ai-ui-candidate';export default class i extends _0x46a5a3{static get['pluginName'](){return'AIAssistantEditing';}['init'](){const {editor:_0x295906}=this,_0x2cc52e=['ck-fake-ai-selection'];_0x295906[_0x11a0('0xd')]['get'](_0x11a0('0x5'))&&_0x2cc52e[_0x11a0('0x1c')](_0x11a0('0x12')),_0x295906[_0x11a0('0xb')][_0x11a0('0x8')]('editingDowncast')[_0x11a0('0x3')]({'model':s,'view':{'classes':_0x2cc52e}}),_0x295906['conversion'][_0x11a0('0x8')](_0x11a0('0x0'))[_0x11a0('0xe')]({'model':s,'view':{'name':_0x11a0('0x14'),'classes':[_0x11a0('0x7'),_0x11a0('0x23')]}}),_0x295906[_0x11a0('0xb')][_0x11a0('0x8')]('editingDowncast')['markerToHighlight']({'model':c,'view':{'classes':[_0x11a0('0x26')]}}),_0x295906[_0x11a0('0xb')][_0x11a0('0x8')](_0x11a0('0x0'))[_0x11a0('0xe')]({'model':c,'view':{'name':'span','classes':['ck-fake-ai-selection-candidate',_0x11a0('0x23')]}});}['showFakeVisualSelection'](_0xacb97f){const _0x4b2a20=this['editor'][_0x11a0('0x1e')],_0xfb22fc=_0xacb97f?c:s;_0x4b2a20[_0x11a0('0xf')](_0x3b55fa=>{const _0x5ae606=_0x4b2a20[_0x11a0('0x15')][_0x11a0('0x9')]['getFirstRange']();if(_0x4b2a20[_0x11a0('0x20')][_0x11a0('0x21')](_0xfb22fc))_0x3b55fa[_0x11a0('0x29')](_0xfb22fc,{'range':_0x5ae606});else{if(_0x5ae606[_0x11a0('0x18')]['isAtEnd']){const _0x259cb4=_0x5ae606['start']['getLastMatchingPosition'](({item:_0x51bd87})=>!_0x4b2a20['schema'][_0x11a0('0x1f')](_0x51bd87),{'boundaries':_0x5ae606});_0x3b55fa[_0x11a0('0x10')](_0xfb22fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3b55fa[_0x11a0('0x11')](_0x259cb4,_0x5ae606['end'])});}else _0x3b55fa['addMarker'](_0xfb22fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5ae606});}});}[_0x11a0('0x2a')](_0x1e907b){const _0x32a1e5=this[_0x11a0('0x16')][_0x11a0('0x1e')],_0x1da1a5=_0x1e907b?c:s;_0x32a1e5['markers'][_0x11a0('0x21')](_0x1da1a5)&&_0x32a1e5[_0x11a0('0xf')](_0x50b4e2=>{_0x50b4e2[_0x11a0('0x1b')](_0x1da1a5);});}[_0x11a0('0x17')](_0x56e6cb,_0x1be2fd){const _0x5772a2=_0x1be2fd||this[_0x11a0('0x16')][_0x11a0('0x1e')][_0x11a0('0x20')][_0x11a0('0x24')](s)['getRange']();if(!this[_0x11a0('0x16')]['model'][_0x11a0('0x2')](_0x5772a2))return;const _0x42923b=this[_0x11a0('0x16')][_0x11a0('0x28')]['processor'][_0x11a0('0x6')](_0x56e6cb),_0x415520=this[_0x11a0('0x16')]['data'][_0x11a0('0xa')](_0x42923b);this[_0x11a0('0x16')]['model']['change'](_0x47deb1=>{this[_0x11a0('0x2a')]();const _0x3173cc=this[_0x11a0('0x16')][_0x11a0('0x1e')]['insertContent'](_0x415520,_0x5772a2);_0x3173cc&&_0x47deb1[_0x11a0('0x25')](_0x3173cc);});}[_0x11a0('0x1a')](_0x1577e4){const {model:_0x2ddfa0}=this['editor'],_0x32e744=Array[_0x11a0('0x19')](_0x2ddfa0[_0x11a0('0xc')](this['editor'][_0x11a0('0x1e')]['markers']['get'](s)[_0x11a0('0x1d')]())[_0x11a0('0x4')]()),_0x108d46=_0x32e744[_0x11a0('0x13')]?_0x2ddfa0[_0x11a0('0x22')](_0x32e744[_0x11a0('0x27')]()):_0x2ddfa0[_0x11a0('0x15')][_0x11a0('0x9')]['getLastPosition']();this[_0x11a0('0x17')](_0x1577e4,_0x108d46);}}
23
+ const _0x57cb62=_0x4c5b;(function(_0x2bcbb4,_0x2071ec){const _0x515fef=_0x4c5b,_0x1122a7=_0x2bcbb4();while(!![]){try{const _0x5e796d=parseInt(_0x515fef(0xf1))/0x1+-parseInt(_0x515fef(0x102))/0x2*(parseInt(_0x515fef(0xe0))/0x3)+-parseInt(_0x515fef(0xe3))/0x4*(parseInt(_0x515fef(0xe6))/0x5)+parseInt(_0x515fef(0xdb))/0x6*(parseInt(_0x515fef(0xe5))/0x7)+parseInt(_0x515fef(0xea))/0x8+parseInt(_0x515fef(0xf2))/0x9*(-parseInt(_0x515fef(0xc5))/0xa)+parseInt(_0x515fef(0xd7))/0xb*(parseInt(_0x515fef(0xe4))/0xc);if(_0x5e796d===_0x2071ec)break;else _0x1122a7['push'](_0x1122a7['shift']());}catch(_0x3eb346){_0x1122a7['push'](_0x1122a7['shift']());}}}(_0x5ebc,0x5d6fd));import{Plugin as _0x1fc25f}from'ckeditor5/src/core.js';function _0x5ebc(){const _0x159b00=['markerToElement','removeMarker','setSelection','length','37610SbCwic','conversion','document','isContent','get','createPositionAfter','insertContentBelow','ai-ui','ai-ui-candidate','AIAssistantEditing','for','addMarker','_setUniqueMarkerNamesInFragment','end','config','ck-fake-ai-selection','showFakeVisualSelection','ck-fake-ai-selection_collapsed','12329801PWExNi','editor','selection','toModel','6rCDehA','from','pluginName','getSelectedBlocks','span','405633JcKAZp','getFirstRange','model','32tbxZKf','12idCOds','264971sJgMKh','464205XCzZrL','markers','isAtEnd','toView','1678320cMfBvu','start','requires','insertContent','ck-fake-ai-selection-candidate','plugins','data','436727LIfdgT','9PTOKAs','pop','markerToHighlight','ai.useTheme','push','ck-ai-assistant-ui_theme','getLastMatchingPosition','hideFakeVisualSelection','processor','editingDowncast','createRange','getLastPosition','updateMarker','canEditAt','createSelection','getRange','10Fjhwoy','init','has','schema','change'];_0x5ebc=function(){return _0x159b00;};return _0x5ebc();}import{ClipboardMarkersUtils as _0x37ebff}from'ckeditor5/src/clipboard.js';const c=_0x57cb62(0xcc),l=_0x57cb62(0xcd);function _0x4c5b(_0x38b67b,_0x218feb){const _0x5ebce7=_0x5ebc();return _0x4c5b=function(_0x4c5b66,_0xdd3ae3){_0x4c5b66=_0x4c5b66-0xbf;let _0x197d50=_0x5ebce7[_0x4c5b66];return _0x197d50;},_0x4c5b(_0x38b67b,_0x218feb);}export default class i extends _0x1fc25f{static get[_0x57cb62(0xdd)](){const _0x1e21ca=_0x57cb62;return _0x1e21ca(0xce);}static get[_0x57cb62(0xec)](){return[_0x37ebff];}[_0x57cb62(0x103)](){const _0x3cfc6f=_0x57cb62,{editor:_0x2fd716}=this,_0x5cc8b7=[_0x3cfc6f(0xd4)];_0x2fd716[_0x3cfc6f(0xd3)][_0x3cfc6f(0xc9)](_0x3cfc6f(0xf5))&&_0x5cc8b7[_0x3cfc6f(0xf6)](_0x3cfc6f(0xf7)),_0x2fd716[_0x3cfc6f(0xc6)][_0x3cfc6f(0xcf)](_0x3cfc6f(0xfb))[_0x3cfc6f(0xf4)]({'model':c,'view':{'classes':_0x5cc8b7}}),_0x2fd716[_0x3cfc6f(0xc6)][_0x3cfc6f(0xcf)](_0x3cfc6f(0xfb))[_0x3cfc6f(0xc1)]({'model':c,'view':{'name':_0x3cfc6f(0xdf),'classes':[_0x3cfc6f(0xd4),_0x3cfc6f(0xd6)]}}),_0x2fd716[_0x3cfc6f(0xc6)][_0x3cfc6f(0xcf)](_0x3cfc6f(0xfb))[_0x3cfc6f(0xf4)]({'model':l,'view':{'classes':[_0x3cfc6f(0xee)]}}),_0x2fd716[_0x3cfc6f(0xc6)][_0x3cfc6f(0xcf)](_0x3cfc6f(0xfb))[_0x3cfc6f(0xc1)]({'model':l,'view':{'name':_0x3cfc6f(0xdf),'classes':[_0x3cfc6f(0xee),_0x3cfc6f(0xd6)]}});}[_0x57cb62(0xd5)](_0x7b0ac8){const _0x4839cf=_0x57cb62,_0x1d38c9=this[_0x4839cf(0xd8)][_0x4839cf(0xe2)],_0x46a7fb=_0x7b0ac8?l:c;_0x1d38c9[_0x4839cf(0xc0)](_0x2482be=>{const _0x1518cd=_0x4839cf,_0x1ddd35=_0x1d38c9[_0x1518cd(0xc7)][_0x1518cd(0xd9)][_0x1518cd(0xe1)]();if(_0x1d38c9[_0x1518cd(0xe7)][_0x1518cd(0x104)](_0x46a7fb))_0x2482be[_0x1518cd(0xfe)](_0x46a7fb,{'range':_0x1ddd35});else{if(_0x1ddd35[_0x1518cd(0xeb)][_0x1518cd(0xe8)]){const _0xaf187c=_0x1ddd35[_0x1518cd(0xeb)][_0x1518cd(0xf8)](({item:_0x3fb8f3})=>!_0x1d38c9[_0x1518cd(0xbf)][_0x1518cd(0xc8)](_0x3fb8f3),{'boundaries':_0x1ddd35});_0x2482be[_0x1518cd(0xd0)](_0x46a7fb,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2482be[_0x1518cd(0xfc)](_0xaf187c,_0x1ddd35[_0x1518cd(0xd2)])});}else _0x2482be[_0x1518cd(0xd0)](_0x46a7fb,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1ddd35});}});}[_0x57cb62(0xf9)](_0x196562){const _0x55ef2f=_0x57cb62,_0x344c74=this[_0x55ef2f(0xd8)][_0x55ef2f(0xe2)],_0x264e93=_0x196562?l:c;_0x344c74[_0x55ef2f(0xe7)][_0x55ef2f(0x104)](_0x264e93)&&_0x344c74[_0x55ef2f(0xc0)](_0x325cd5=>{const _0x329d88=_0x55ef2f;_0x325cd5[_0x329d88(0xc2)](_0x264e93);});}[_0x57cb62(0xed)](_0x1bd885,_0x3904ef){const _0x2f28ed=_0x57cb62,_0x3b5b7d=this[_0x2f28ed(0xd8)][_0x2f28ed(0xef)][_0x2f28ed(0xc9)](_0x37ebff),_0x154b71=_0x3904ef||this[_0x2f28ed(0xd8)][_0x2f28ed(0xe2)][_0x2f28ed(0xe7)][_0x2f28ed(0xc9)](c)[_0x2f28ed(0x101)]();if(!this[_0x2f28ed(0xd8)][_0x2f28ed(0xe2)][_0x2f28ed(0xff)](_0x154b71))return;const _0x3effa2=this[_0x2f28ed(0xd8)][_0x2f28ed(0xf0)][_0x2f28ed(0xfa)][_0x2f28ed(0xe9)](_0x1bd885),_0x28cd4f=this[_0x2f28ed(0xd8)][_0x2f28ed(0xf0)][_0x2f28ed(0xda)](_0x3effa2);_0x3b5b7d[_0x2f28ed(0xd1)](_0x28cd4f),this[_0x2f28ed(0xd8)][_0x2f28ed(0xe2)][_0x2f28ed(0xc0)](_0x27ee19=>{const _0x48bc07=_0x2f28ed;this[_0x48bc07(0xf9)]();const _0x20d25e=this[_0x48bc07(0xd8)][_0x48bc07(0xe2)][_0x48bc07(0xed)](_0x28cd4f,_0x154b71);_0x20d25e&&_0x27ee19[_0x48bc07(0xc3)](_0x20d25e);});}[_0x57cb62(0xcb)](_0x330a98){const _0x1115e3=_0x57cb62,{model:_0x56ca80}=this[_0x1115e3(0xd8)],_0x4f7bf5=Array[_0x1115e3(0xdc)](_0x56ca80[_0x1115e3(0x100)](this[_0x1115e3(0xd8)][_0x1115e3(0xe2)][_0x1115e3(0xe7)][_0x1115e3(0xc9)](c)[_0x1115e3(0x101)]())[_0x1115e3(0xde)]()),_0x119871=_0x4f7bf5[_0x1115e3(0xc4)]?_0x56ca80[_0x1115e3(0xca)](_0x4f7bf5[_0x1115e3(0xf3)]()):_0x56ca80[_0x1115e3(0xc7)][_0x1115e3(0xd9)][_0x1115e3(0xfd)]();this[_0x1115e3(0xed)](_0x330a98,_0x119871);}}
@@ -13,6 +13,7 @@ import AIAdapter from './adapters/aiadapter.js';
13
13
  import '../theme/ai.css';
14
14
  import '../theme/ai-dropdown.css';
15
15
  import '../theme/ai-form.css';
16
+ import { ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
16
17
  /**
17
18
  * The UI plugin of the AI assistant.
18
19
  */
@@ -24,7 +25,7 @@ export default class AIAssistantUI extends Plugin {
24
25
  /**
25
26
  * @inheritDoc
26
27
  */
27
- static get requires(): readonly [typeof AIAssistantEditing, typeof AIAdapter, typeof Dialog];
28
+ static get requires(): readonly [typeof ClipboardMarkersUtils, typeof AIAssistantEditing, typeof AIAdapter, typeof Dialog];
28
29
  /**
29
30
  * @inheritDoc
30
31
  */