@ckeditor/ckeditor5-ai 41.3.0-alpha.2 → 41.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':
|
|
23
|
+
export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x59e7a1=>0x0}};
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x42a5a2=>0x0}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "41.3.0-alpha.
|
|
3
|
+
"version": "41.3.0-alpha.4",
|
|
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.3.0-alpha.
|
|
27
|
-
"ckeditor5-collaboration": "41.3.0-alpha.
|
|
26
|
+
"ckeditor5": "41.3.0-alpha.4",
|
|
27
|
+
"ckeditor5-collaboration": "41.3.0-alpha.4",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.3.0-alpha.
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.3.0-alpha.4",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x49c0a5=_0x2721;function _0x237b(){var _0x533c42=['4ChRfwZ','6739992TJCyYL','18kGkpxs','1033878GIGgJP','textAdapter','6490840sCivqA','4kzXjap','pluginName','42weOEqY','3393731oiwfwj','AIAdapter','aiadapter-text-adapter-not-set','AIRequestError','228612SfvChH','2384840QilKmR','afterInit','509691wZCMLe','name'];_0x237b=function(){return _0x533c42;};return _0x237b();}function _0x2721(_0x49c500,_0x40f90c){var _0x237b04=_0x237b();return _0x2721=function(_0x2721f9,_0x216049){_0x2721f9=_0x2721f9-0x74;var _0x18c505=_0x237b04[_0x2721f9];return _0x18c505;},_0x2721(_0x49c500,_0x40f90c);}(function(_0x3c90c5,_0xdce47a){var _0x115c2f=_0x2721,_0x49f34f=_0x3c90c5();while(!![]){try{var _0x4d895b=parseInt(_0x115c2f(0x79))/0x1+parseInt(_0x115c2f(0x76))/0x2*(-parseInt(_0x115c2f(0x83))/0x3)+parseInt(_0x115c2f(0x7c))/0x4*(parseInt(_0x115c2f(0x84))/0x5)+-parseInt(_0x115c2f(0x7e))/0x6*(parseInt(_0x115c2f(0x74))/0x7)+parseInt(_0x115c2f(0x77))/0x8+parseInt(_0x115c2f(0x78))/0x9*(-parseInt(_0x115c2f(0x7b))/0xa)+parseInt(_0x115c2f(0x7f))/0xb;if(_0x4d895b===_0xdce47a)break;else _0x49f34f['push'](_0x49f34f['shift']());}catch(_0x567d2b){_0x49f34f['push'](_0x49f34f['shift']());}}}(_0x237b,0xab49f));import{Plugin as _0x1af316}from'ckeditor5/src/core.js';import{CKEditorError as _0x3852cb}from'ckeditor5/src/utils.js';export default class I extends _0x1af316{static get[_0x49c0a5(0x7d)](){var _0x91187f=_0x49c0a5;return _0x91187f(0x80);}[_0x49c0a5(0x85)](){var _0x442efd=_0x49c0a5;if(!this[_0x442efd(0x7a)])throw new _0x3852cb(_0x442efd(0x81),null);}}export class AIRequestError extends Error{constructor(_0x259731){var _0xcd85ba=_0x49c0a5;super(_0x259731),this[_0xcd85ba(0x75)]=_0xcd85ba(0x82);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124d1b=_0x5cae;function _0x5cae(_0x3351aa,_0xe57fe3){const _0x5a5af8=_0x5a5a();return _0x5cae=function(_0x5cae1f,_0x31e7ce){_0x5cae1f=_0x5cae1f-0x116;let _0x1e9330=_0x5a5af8[_0x5cae1f];return _0x1e9330;},_0x5cae(_0x3351aa,_0xe57fe3);}(function(_0x5c483f,_0x17b2af){const _0x3cbae8=_0x5cae,_0x242679=_0x5c483f();while(!![]){try{const _0x23866b=-parseInt(_0x3cbae8(0x11b))/0x1*(-parseInt(_0x3cbae8(0x125))/0x2)+parseInt(_0x3cbae8(0x13a))/0x3+-parseInt(_0x3cbae8(0x12c))/0x4*(parseInt(_0x3cbae8(0x12f))/0x5)+-parseInt(_0x3cbae8(0x118))/0x6*(parseInt(_0x3cbae8(0x11a))/0x7)+parseInt(_0x3cbae8(0x132))/0x8*(-parseInt(_0x3cbae8(0x122))/0x9)+-parseInt(_0x3cbae8(0x138))/0xa*(parseInt(_0x3cbae8(0x127))/0xb)+parseInt(_0x3cbae8(0x12a))/0xc;if(_0x23866b===_0x17b2af)break;else _0x242679['push'](_0x242679['shift']());}catch(_0xf71eec){_0x242679['push'](_0x242679['shift']());}}}(_0x5a5a,0x58f2e));import{Plugin as _0xf29f8a}from'ckeditor5/src/core.js';function _0x5a5a(){const _0x3523e8=['locale','sendRequest','10EbbZSd','error','1391352XEongb','makeRequest','name','AbortError','requires','6FCsVGa','_prepareRequestParameters','760739dZzpyG','3650nBPvOq','init','_prepareRequestHeaders','resolve','aborted','abort','abortController','19368fdNwbx','AI_ERROR_GET_HEADERS','AI_ERROR_GET_PARAMETERS','266XAqgza','get','2894573jJleUQ','object','signal','7339308sjDEej','assign','4ohLJJk','plugins','reject','1347365XGRrry','catch','aitextadapter-send-request-failed','2064zPcIEI','application/json','textAdapter','editor'];_0x5a5a=function(){return _0x3523e8;};return _0x5a5a();}import{CKEditorError as _0x14489e}from'ckeditor5/src/utils.js';import{default as _0x4bdc6b,AIRequestError as _0x30e548}from'./aiadapter.js';import{getTranslation as _0x54e3c1}from'../utils/common-translations.js';export default class _ extends _0xf29f8a{static get[_0x124d1b(0x117)](){return[_0x4bdc6b];}constructor(_0x1ef50a){const _0x3c8b72=_0x124d1b;super(_0x1ef50a),this[_0x3c8b72(0x121)]=new AbortController();}[_0x124d1b(0x11c)](){const _0x1c6e9d=_0x124d1b;this[_0x1c6e9d(0x135)][_0x1c6e9d(0x12d)][_0x1c6e9d(0x126)](_0x4bdc6b)[_0x1c6e9d(0x134)]=this;}[_0x124d1b(0x120)](){const _0x11b5f1=_0x124d1b;this[_0x11b5f1(0x121)][_0x11b5f1(0x129)][_0x11b5f1(0x11f)]||(this[_0x11b5f1(0x121)][_0x11b5f1(0x120)](),this[_0x11b5f1(0x121)]=new AbortController());}async[_0x124d1b(0x13b)](_0x34d8c5){const _0x586843=_0x124d1b;return this[_0x586843(0x137)](_0x34d8c5)[_0x586843(0x130)](_0x38cb20=>{const _0xfef302=_0x586843;if(_0x38cb20 instanceof _0x30e548)return Promise[_0xfef302(0x12e)](_0x38cb20);if(_0xfef302(0x116)==_0x38cb20[_0xfef302(0x13c)])return Promise[_0xfef302(0x11e)]();throw console[_0xfef302(0x139)](_0x38cb20),new _0x14489e(_0xfef302(0x131),null);});}async[_0x124d1b(0x11d)](_0x4dcf1d,_0x218679){const _0xec449a=_0x124d1b,_0x18bfc5=this[_0xec449a(0x135)][_0xec449a(0x136)],_0x74b9eb={'Content-Type':_0xec449a(0x133)};if(_0xec449a(0x128)==typeof _0x4dcf1d)Object[_0xec449a(0x12b)](_0x74b9eb,_0x4dcf1d);else{if(_0x4dcf1d)try{const _0x57798=await _0x4dcf1d(_0x218679);Object[_0xec449a(0x12b)](_0x74b9eb,_0x57798);}catch(_0x2c26c5){return Promise[_0xec449a(0x12e)](new _0x30e548(_0x54e3c1(_0x18bfc5,_0xec449a(0x123))));}}return _0x74b9eb;}async[_0x124d1b(0x119)](_0x140392,_0x39b233){const _0x21d18a=_0x124d1b,_0x4413d3=this[_0x21d18a(0x135)][_0x21d18a(0x136)];if(_0x21d18a(0x128)==typeof _0x140392)return _0x140392;try{return await _0x140392(_0x39b233);}catch(_0xc8b893){return Promise[_0x21d18a(0x12e)](new _0x30e548(_0x54e3c1(_0x4413d3,_0x21d18a(0x124))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b79f6=_0x2b17;(function(_0x3f4463,_0x9c3cb){const _0x4bb40f=_0x2b17,_0x4817ed=_0x3f4463();while(!![]){try{const _0x5ba867=-parseInt(_0x4bb40f(0x1e7))/0x1+parseInt(_0x4bb40f(0x1ef))/0x2*(-parseInt(_0x4bb40f(0x1dc))/0x3)+-parseInt(_0x4bb40f(0x1c7))/0x4*(parseInt(_0x4bb40f(0x1d8))/0x5)+parseInt(_0x4bb40f(0x1b1))/0x6+-parseInt(_0x4bb40f(0x1cb))/0x7*(parseInt(_0x4bb40f(0x1b3))/0x8)+-parseInt(_0x4bb40f(0x1ba))/0x9*(-parseInt(_0x4bb40f(0x1e9))/0xa)+-parseInt(_0x4bb40f(0x1ed))/0xb*(-parseInt(_0x4bb40f(0x1d2))/0xc);if(_0x5ba867===_0x9c3cb)break;else _0x4817ed['push'](_0x4817ed['shift']());}catch(_0x5b1a62){_0x4817ed['push'](_0x4817ed['shift']());}}}(_0x188e,0x86c75));import{default as _0x555d41}from'./aitextadapter.js';import{AIRequestError as _0x3ed823}from'./aiadapter.js';function _0x188e(){const _0xd5ee4b=['AI_ERROR_UNSUPPORTED_MODEL','utf-8','abortController','decode','body','_readStreamableResponse','548838GbiyTE','POST','120330yufEIW','read','_processProxyRequest','_readStaticResponse','55mJOEnj','preparePrompt','53530NXJmpg','_prepareRequestParameters','_processAWSRequest','\x0a[/INST]','completion','data','_apiUrl','generations','test','generation','_getGeneratedText','utf8','from','_bedrockClientConfig','get','completions','<<SYS>>\x0a','anthropic.claude','\x0a\x0aAssistant:','stringify','cohere.command','_requestHeaders','map','6046848dfFjpf','bedrock-2023-05-31','47624YkKoIO','ai21.j2','sendRequest','define','bytes','AWSTextAdapter','length','333vflNKO','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','locale','anthropic.claude-v2','_prepareRequestHeaders','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.','toString','join','\x0a<</SYS>>\x0a[INST]\x0a','_readAsyncIterableResponse','Instruction:\x0a','144GoIYZN','getModelFamily','application/json','editor','1099PSEChj','ai.aws.apiUrl','config','send','signal','filter','json','4084560lKTeHj','getReader','parse','pluginName','chunk','ai.aws.requestHeaders','77410MbvzbG','text','ai.aws.requestParameters','ai.aws.bedrockClientConfig','63bYFCNk','_requestParameters','meta.llama','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.','Human:\x0a'];_0x188e=function(){return _0xd5ee4b;};return _0x188e();}import{BedrockRuntimeClient as _0x2576aa,InvokeModelCommand as _0x139653,InvokeModelWithResponseStreamCommand as _0x3134c1}from'@aws-sdk/client-bedrock-runtime';function _0x2b17(_0x4abf50,_0x51d09e){const _0x188e4c=_0x188e();return _0x2b17=function(_0x2b177f,_0x5ba5c3){_0x2b177f=_0x2b177f-0x1ac;let _0x331559=_0x188e4c[_0x2b177f];return _0x331559;},_0x2b17(_0x4abf50,_0x51d09e);}import{getTranslation as _0x5f1f9f}from'../utils/common-translations.js';export default class q extends _0x555d41{static get[_0x4b79f6(0x1d5)](){const _0x3ea098=_0x4b79f6;return _0x3ea098(0x1b8);}constructor(_0x5e1911){const _0x5e12df=_0x4b79f6;super(_0x5e1911),_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da))||_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1b6)](_0x5e12df(0x1da),{'model':_0x5e12df(0x1be),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5e12df(0x1b2),'stream':!0x0}),this[_0x5e12df(0x1f5)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1cc)),this[_0x5e12df(0x1fc)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1db)),this[_0x5e12df(0x1af)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1d7)),this[_0x5e12df(0x1dd)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da));}async[_0x4b79f6(0x1b5)]({query:_0x3ac809,context:_0x2b729f,onData:_0x2ff626,actionId:_0x29dcf1}){const _0x2c823a=_0x4b79f6,{model:_0x51ff1b,stream:_0x19c2de,..._0x1c24c1}=await this[_0x2c823a(0x1f0)](this[_0x2c823a(0x1dd)],_0x29dcf1),_0x271024={'prompt':await this[_0x2c823a(0x1ee)](_0x3ac809,_0x2b729f,_0x51ff1b,_0x29dcf1),..._0x1c24c1};this[_0x2c823a(0x1f5)]?await this[_0x2c823a(0x1eb)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626,_0x29dcf1):await this[_0x2c823a(0x1f1)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626);}async[_0x4b79f6(0x1ee)](_0x5be093,_0x5c44ac,_0x2d5a78,_0x1559c8){const _0x26d2bc=_0x4b79f6;let _0x5555d1,_0x27b417;return _0x5c44ac?(_0x5555d1=_0x26d2bc(0x1df),_0x27b417=_0x26d2bc(0x1c6)+_0x5be093+_0x26d2bc(0x1bb)+_0x5c44ac):(_0x5555d1=_0x26d2bc(0x1c1),_0x27b417=_0x5be093),_0x26d2bc(0x1de)==this[_0x26d2bc(0x1c8)](_0x2d5a78)?_0x26d2bc(0x1ff)+_0x5555d1+_0x26d2bc(0x1c4)+_0x27b417+_0x26d2bc(0x1f2):_0x26d2bc(0x1e0)+_0x5555d1+'\x0a'+_0x27b417+_0x26d2bc(0x1ac);}[_0x4b79f6(0x1c8)](_0x1cb72d){const _0x3d967b=_0x4b79f6;if(/^anthropic\.claude/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x200);if(/^ai21\.j2/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1b4);if(/^cohere\.command/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1ae);if(/^meta\.llama/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1de);throw new _0x3ed823(_0x5f1f9f(this[_0x3d967b(0x1ca)][_0x3d967b(0x1bd)],_0x3d967b(0x1e1),_0x1cb72d));}async[_0x4b79f6(0x1eb)](_0x201b10,_0x59d775,_0x47c168,_0x4908e6,_0x4349a0){const _0xffbe1b=_0x4b79f6,_0x211b02={'method':_0xffbe1b(0x1e8),'headers':await this[_0xffbe1b(0x1bf)](this[_0xffbe1b(0x1af)],_0x4349a0),'body':JSON[_0xffbe1b(0x1ad)]({..._0x201b10,'model':_0x59d775,'stream':_0x47c168}),'signal':this[_0xffbe1b(0x1e3)][_0xffbe1b(0x1cf)]},_0x34dfe3=await fetch(this[_0xffbe1b(0x1f5)],_0x211b02);_0x47c168?await this[_0xffbe1b(0x1e6)](_0x34dfe3,_0x59d775,_0x4908e6):await this[_0xffbe1b(0x1ec)](_0x34dfe3,_0x59d775,_0x4908e6);}async[_0x4b79f6(0x1f1)](_0x40001b,_0xf559cc,_0x5655d5,_0xdebe9b){const _0x2fe16a=_0x4b79f6,_0x415da6=new _0x2576aa(this[_0x2fe16a(0x1fc)]),_0x3ef54c={'body':JSON[_0x2fe16a(0x1ad)](_0x40001b),'contentType':_0x2fe16a(0x1c9),'accept':_0x2fe16a(0x1c9),'modelId':_0xf559cc};let _0xbfe3d4;if(_0x5655d5){const _0x466250=new _0x3134c1(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x466250,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1c5)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}else{const _0x411a1b=new _0x139653(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x411a1b,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1ec)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}}async[_0x4b79f6(0x1c5)](_0x47ad13,_0x7893d4,_0x2760b1){const _0x5957b3=_0x4b79f6,_0x2a2b61=_0x47ad13[_0x5957b3(0x1e5)],_0x3e993a=new TextDecoder(_0x5957b3(0x1e2));let _0x15a77d='';for await(const _0x44ca3b of _0x2a2b61)if(_0x44ca3b[_0x5957b3(0x1d6)]){const _0x2d98c7=_0x3e993a[_0x5957b3(0x1e4)](_0x44ca3b[_0x5957b3(0x1d6)][_0x5957b3(0x1b7)]),_0x78046d=JSON[_0x5957b3(0x1d4)](_0x2d98c7);_0x15a77d+=this[_0x5957b3(0x1f9)](_0x78046d,_0x7893d4),_0x2760b1(_0x15a77d);}return Promise[_0x5957b3(0x1bc)]();}async[_0x4b79f6(0x1e6)](_0x3d2d34,_0x42869c,_0x2edbfd){const _0x274ea4=_0x4b79f6,_0x43bea5=_0x3d2d34[_0x274ea4(0x1e5)],_0x1ebfe6=new TextDecoder(_0x274ea4(0x1e2)),_0x11bdcd=_0x43bea5[_0x274ea4(0x1d3)]();let _0x42996f='',_0x1b9cfd='',_0x2735de=!0x1;for(;!_0x2735de;){const {done:_0x18182e,value:_0x3d16dc}=await _0x11bdcd[_0x274ea4(0x1ea)]();if(_0x2735de=_0x18182e,_0x2735de)break;const _0x30cdbd=(_0x42996f+_0x1ebfe6[_0x274ea4(0x1e4)](_0x3d16dc))[_0x274ea4(0x1c0)]('\x0a')[_0x274ea4(0x1b0)](_0x351027=>{const _0x6b5465=_0x274ea4;try{return _0x42996f='',JSON[_0x6b5465(0x1d4)](_0x351027);}catch(_0x2dbfca){return _0x42996f=_0x351027,null;}})[_0x274ea4(0x1d0)](_0x56807e=>null!==_0x56807e);_0x30cdbd[_0x274ea4(0x1b9)]&&(_0x1b9cfd+=_0x30cdbd[_0x274ea4(0x1b0)](_0x1a3dc4=>this[_0x274ea4(0x1f9)](_0x1a3dc4,_0x42869c))[_0x274ea4(0x1c3)](''),_0x2edbfd(_0x1b9cfd));}return Promise[_0x274ea4(0x1bc)]();}async[_0x4b79f6(0x1ec)](_0x7f4ba2,_0x49f2ba,_0x12d376){const _0x52fb93=_0x4b79f6;let _0x1b04d4;return _0x1b04d4=_0x7f4ba2 instanceof Response?await _0x7f4ba2[_0x52fb93(0x1d1)]():JSON[_0x52fb93(0x1d4)](Buffer[_0x52fb93(0x1fb)](_0x7f4ba2[_0x52fb93(0x1e5)])[_0x52fb93(0x1c2)](_0x52fb93(0x1fa))),(_0x12d376(this[_0x52fb93(0x1f9)](_0x1b04d4,_0x49f2ba)),Promise[_0x52fb93(0x1bc)]());}[_0x4b79f6(0x1f9)](_0x275005,_0x4f67ba){const _0x572196=_0x4b79f6;switch(this[_0x572196(0x1c8)](_0x4f67ba)){case _0x572196(0x200):return _0x275005[_0x572196(0x1f3)];case _0x572196(0x1b4):return _0x275005[_0x572196(0x1fe)][0x0][_0x572196(0x1f4)][_0x572196(0x1d9)];case _0x572196(0x1ae):return _0x275005[_0x572196(0x1f6)][0x0][_0x572196(0x1d9)];case _0x572196(0x1de):return _0x275005[_0x572196(0x1f8)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x17de(){const _0x260475=['config','20hZEKxq','context_length_exceeded','473408eVLMTn','getReader','19817380jyTdmJ','define','includes','_prepareRequestParameters','data:\x20','_readStaticResponse','_cleanUpData','reject','abortController','replace','OpenAITextAdapter','delta','1237425lksbSZ','AI_ERROR_CONTEXT_LENGTH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestParameters','decode','4VmUEgi','8100846QNlHHb','4497372zkTaQv','3242510sJqoJd','choices','POST','join','json','ai.openAI.requestHeaders','map','_apiUrl','body','ai.openAI.apiUrl','AI_ERROR_MODERATION','gpt-3.5-turbo','read','length','Moderation','stream','Instruction:\x0a','_requestHeaders','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.','_isBufferIncomplete','locale','3GwzPxx','https://api.openai.com/v1/chat/completions','get','text','ai.openAI.requestParameters','_prepareRequestHeaders','content','prepareMessages','[DONE]','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.','filter','sendRequest','user','editor','2201412YpgWjR','message','stringify','signal','system','split','parse','pluginName','resolve','8nCZyBj','_readStreamableResponse'];_0x17de=function(){return _0x260475;};return _0x17de();}const _0x2385c5=_0x5050;(function(_0x3194ff,_0x300b75){const _0x192b21=_0x5050,_0x29c5cf=_0x3194ff();while(!![]){try{const _0x38d173=-parseInt(_0x192b21(0x111))/0x1+parseInt(_0x192b21(0x103))/0x2*(-parseInt(_0x192b21(0xf5))/0x3)+parseInt(_0x192b21(0x124))/0x4*(-parseInt(_0x192b21(0x127))/0x5)+-parseInt(_0x192b21(0x125))/0x6+parseInt(_0x192b21(0x11f))/0x7*(parseInt(_0x192b21(0x10c))/0x8)+parseInt(_0x192b21(0x126))/0x9+-parseInt(_0x192b21(0x10f))/0xa*(-parseInt(_0x192b21(0x113))/0xb);if(_0x38d173===_0x300b75)break;else _0x29c5cf['push'](_0x29c5cf['shift']());}catch(_0x66f1e){_0x29c5cf['push'](_0x29c5cf['shift']());}}}(_0x17de,0xac946));function _0x5050(_0x360f5b,_0x5317ef){const _0x17de88=_0x17de();return _0x5050=function(_0x505089,_0x10d689){_0x505089=_0x505089-0xef;let _0x3507c0=_0x17de88[_0x505089];return _0x3507c0;},_0x5050(_0x360f5b,_0x5317ef);}import{default as _0x485840}from'./aitextadapter.js';import{AIRequestError as _0x89767d}from'./aiadapter.js';import{getTranslation as _0x34d1b5}from'../utils/common-translations.js';export default class M extends _0x485840{static get[_0x2385c5(0x10a)](){const _0x271185=_0x2385c5;return _0x271185(0x11d);}constructor(_0x5186c1){const _0x3c6942=_0x2385c5;super(_0x5186c1),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0x130),_0x3c6942(0xf6)),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9))||_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0xf9),{'model':_0x3c6942(0x132),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3c6942(0x12e)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x130)),this[_0x3c6942(0xf1)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x12c))||{},this[_0x3c6942(0x122)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9));}async[_0x2385c5(0x100)]({query:_0x59d549,context:_0x48b7ce,onData:_0xeb9dad,actionId:_0x31b9bc}){const _0x51ef80=_0x2385c5,_0x48dd01=this[_0x51ef80(0x102)][_0x51ef80(0xf4)],_0x8190dc=await this[_0x51ef80(0xfc)](_0x59d549,_0x48b7ce,_0x31b9bc),_0x216370=await this[_0x51ef80(0xfa)](this[_0x51ef80(0xf1)],_0x31b9bc),_0x22dac9=await this[_0x51ef80(0x116)](this[_0x51ef80(0x122)],_0x31b9bc),_0x593515={'messages':_0x8190dc,..._0x22dac9},_0x1ebcb7={'method':_0x51ef80(0x129),'headers':_0x216370,'body':JSON[_0x51ef80(0x105)](_0x593515),'signal':this[_0x51ef80(0x11b)][_0x51ef80(0x106)]},_0x18fa90=await fetch(this[_0x51ef80(0x12e)],_0x1ebcb7);if(_0x18fa90['ok'])return _0x22dac9[_0x51ef80(0xef)]?await this[_0x51ef80(0x10d)](_0x18fa90,_0xeb9dad):await this[_0x51ef80(0x118)](_0x18fa90,_0xeb9dad),Promise[_0x51ef80(0x10b)]();{const _0x42d9d3=await _0x18fa90[_0x51ef80(0xf8)]();return _0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x110))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x120)))):_0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x135))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x131)))):Promise[_0x51ef80(0x11a)](new Error(_0x42d9d3));}}async[_0x2385c5(0xfc)](_0x11491b,_0xaac1e5,_0x4a8080){const _0x23b592=_0x2385c5;let _0x487a9e,_0x2a69b5;return _0xaac1e5?(_0x487a9e=_0x23b592(0xfe),_0x2a69b5=_0x23b592(0xf0)+_0x11491b+_0x23b592(0x121)+_0xaac1e5):(_0x487a9e=_0x23b592(0xf2),_0x2a69b5=_0x11491b),[{'role':_0x23b592(0x107),'content':_0x487a9e},{'role':_0x23b592(0x101),'content':_0x2a69b5}];}async[_0x2385c5(0x10d)](_0x581763,_0x360240){const _0x40860a=_0x2385c5,_0x5c36c8=_0x581763[_0x40860a(0x12f)][_0x40860a(0x112)](),_0x1cd0b2=new TextDecoder();let _0x491c32='',_0x39753b='',_0x313e90='',_0x25f3e4=!0x1;for(;!_0x25f3e4;){const {done:_0x2e36ba,value:_0x5092c7}=await _0x5c36c8[_0x40860a(0x133)](),_0x502d68=_0x491c32+_0x1cd0b2[_0x40860a(0x123)](_0x5092c7);let _0x2fa640='';_0x25f3e4=_0x2e36ba;try{_0x2fa640=this[_0x40860a(0x119)](_0x502d68),_0x491c32='';}catch(_0x3180c2){_0x491c32=_0x502d68;continue;}_0x39753b+=_0x2fa640,!_0x25f3e4&&this[_0x40860a(0xf3)](_0x39753b)||_0x39753b&&(_0x313e90+=_0x39753b,_0x39753b='',_0x360240(_0x313e90));}return Promise[_0x40860a(0x10b)]();}async[_0x2385c5(0x118)](_0x27fe1c,_0x47d9e8){const _0x7303c6=_0x2385c5;return _0x47d9e8((await _0x27fe1c[_0x7303c6(0x12b)]())[_0x7303c6(0x128)][0x0][_0x7303c6(0x104)][_0x7303c6(0xfb)]),Promise[_0x7303c6(0x10b)]();}[_0x2385c5(0xf3)](_0x38ec15){const _0x45ba5a=_0x2385c5,_0x4a9e2e=_0x38ec15[_0x45ba5a(0x108)]('<')[_0x45ba5a(0x134)]!==_0x38ec15[_0x45ba5a(0x108)]('>')[_0x45ba5a(0x134)],_0x5cd07d=_0x38ec15[_0x45ba5a(0x134)]<0x1e;return _0x4a9e2e&&_0x5cd07d;}[_0x2385c5(0x119)](_0x148c26){const _0x112e63=_0x2385c5;return _0x148c26[_0x112e63(0x108)](/\n(?![^{]*\})/g)[_0x112e63(0x12d)](_0x216850=>_0x216850[_0x112e63(0x11c)](_0x112e63(0x117),''))[_0x112e63(0xff)](_0x1f331b=>_0x1f331b&&_0x1f331b[_0x112e63(0x134)]>0x0&&_0x112e63(0xfd)!==_0x1f331b)[_0x112e63(0x12d)](_0x46f44f=>{const _0x4c4a27=_0x112e63,{choices:_0x55e2ed}=JSON[_0x4c4a27(0x109)](_0x46f44f);if(_0x55e2ed[0x0]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)])return _0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)];})[_0x112e63(0xff)](_0x110448=>_0x110448)[_0x112e63(0x12a)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe303db=_0x4d9d;(function(_0x536b95,_0x46e1d4){const _0x5d5aa4=_0x4d9d,_0x559d10=_0x536b95();while(!![]){try{const _0x1590f0=-parseInt(_0x5d5aa4(0x22d))/0x1+-parseInt(_0x5d5aa4(0x1f9))/0x2+parseInt(_0x5d5aa4(0x1ea))/0x3*(parseInt(_0x5d5aa4(0x23d))/0x4)+parseInt(_0x5d5aa4(0x1f0))/0x5+parseInt(_0x5d5aa4(0x21a))/0x6+-parseInt(_0x5d5aa4(0x1e2))/0x7+parseInt(_0x5d5aa4(0x22c))/0x8;if(_0x1590f0===_0x46e1d4)break;else _0x559d10['push'](_0x559d10['shift']());}catch(_0x2c3764){_0x559d10['push'](_0x559d10['shift']());}}}(_0xdf38,0xe30c2));import{CKEditorError as _0x5368a9}from'ckeditor5/src/utils.js';function _0xdf38(){const _0x2d9de2=['Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','aiLicenseKeyTrial','changeTone','Make\x20shorter','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','12MMAbav','Poetic','aiLicenseKeyTrialLimit:operations','Confident','ai.aiAssistant.commands','Friendly','4454745CnfJja','pluginName','English','destroy','forEach','makeLonger','editor','journalism','translate','2116390zHOUXm','translateHindi','translateSpanish','legal','Change\x20tone','casual','Translate\x20to\x20%0','requires','licenseKey','ai-trial-license-key-reached-limit-changes','poetic','translateEnglish','locale','info','Translate','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.','confident','Professional','translatePortuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','find','Improve\x20writing','Change\x20style','init','Translate\x20the\x20content\x20to\x20Arabic\x20language.','AIAssistant','Continue','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','get','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','groupId','set','7300698UJoqeT','aiLicenseKeyValid','business','Translate\x20the\x20content\x20to\x20English\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Casual','French','direct','config','define','editOrReview','translateArabic','Business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','makeShorter','changeStyle','aiLicenseKeyInvalid','German','10953352CeXTzN','1266091mPigzb','concat','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','_licenseKeyCheckInterval','includes','translateChinese','commands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','generate','Hindi','Translate\x20the\x20content\x20to\x20French\x20language.','filter','ai-invalid-license-key','Generate\x20from\x20selection','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','professional','1454308Umdgku','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','friendly','Translate\x20the\x20content\x20to\x20German\x20language.','Simplify\x20language','Journalism','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Make\x20longer','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','continue','summarize','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','Portuguese','Spanish','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateGerman','Summarize','ai.aiAssistant.removeCommands','Arabic','simplifyLanguage','ai.aiAssistant.extraCommandGroups','Direct','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','improveWriting','Simplified\x20Chinese','11738559LXBKLj','Legal','push'];_0xdf38=function(){return _0x2d9de2;};return _0xdf38();}import{Plugin as _0x4f8922}from'ckeditor5/src/core.js';import _0x1f7c5a from'./aiassistantui.js';function _0x4d9d(_0xe0a2bc,_0x14ebf3){const _0xdf382a=_0xdf38();return _0x4d9d=function(_0x4d9d08,_0x55f6c8){_0x4d9d08=_0x4d9d08-0x1c9;let _0x5e6100=_0xdf382a[_0x4d9d08];return _0x5e6100;},_0x4d9d(_0xe0a2bc,_0x14ebf3);}import _0x185b2b from'./aiassistantediting.js';import{getTranslation as _0x5afc58}from'./utils/common-translations.js';export default class r extends _0x4f8922{static get[_0xe303db(0x200)](){return[_0x1f7c5a,_0x185b2b];}static get[_0xe303db(0x1f1)](){const _0x233488=_0xe303db;return _0x233488(0x213);}constructor(_0x11963f){const _0x13f6ab=_0xe303db;super(_0x11963f);const _0x4ea40c=_0x11963f[_0x13f6ab(0x222)];_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1ee),getDefaultCommands(_0x11963f[_0x13f6ab(0x205)])),_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1dc),[]),_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1d9),[]);const _0x49f99a=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1ee)),_0x53e3bd=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1dc)),_0x149af4=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1d9));_0x53e3bd[_0x13f6ab(0x1f4)](_0x43aa8f=>{const _0x18da6f=_0x13f6ab,_0x5efde7=_0x49f99a[_0x18da6f(0x20e)](_0x49a5ed=>_0x49a5ed[_0x18da6f(0x218)]===_0x43aa8f[_0x18da6f(0x218)]);_0x5efde7?_0x5efde7[_0x18da6f(0x233)]=_0x5efde7[_0x18da6f(0x233)][_0x18da6f(0x22e)](_0x43aa8f[_0x18da6f(0x233)]):_0x49f99a[_0x18da6f(0x1e4)](_0x43aa8f);}),_0x49f99a[_0x13f6ab(0x1f4)](_0x2f7a28=>{const _0x246485=_0x13f6ab;_0x2f7a28[_0x246485(0x233)]=_0x2f7a28[_0x246485(0x233)][_0x246485(0x238)](_0x4fe540=>!_0x149af4[_0x246485(0x231)](_0x4fe540['id']));}),_0x4ea40c[_0x13f6ab(0x219)](_0x13f6ab(0x1ee),_0x49f99a);}[_0xe303db(0x211)](){const _0x5dc64a=_0xe303db,_0x3447c1=this[_0x5dc64a(0x1f6)];this[_0x5dc64a(0x201)]=_0x3447c1[_0x5dc64a(0x222)][_0x5dc64a(0x216)](_0x5dc64a(0x201)),this[_0x5dc64a(0x230)]=setInterval(()=>{const _0xb65089=_0x5dc64a;let _0x19bba5;for(const _0x470935 in _0x3447c1){const _0x51ea96=_0x470935,_0x5f207a=_0x3447c1[_0x51ea96];if(_0xb65089(0x1e6)===_0x5f207a||_0xb65089(0x22a)===_0x5f207a||_0xb65089(0x21b)===_0x5f207a||_0xb65089(0x1ec)===_0x5f207a){delete _0x3447c1[_0x51ea96],_0x19bba5=_0x5f207a;break;}}if(_0xb65089(0x22a)===_0x19bba5)throw clearInterval(this[_0xb65089(0x230)]),new _0x5368a9(_0xb65089(0x239),null);if(_0xb65089(0x1e6)===_0x19bba5&&console[_0xb65089(0x206)](_0xb65089(0x208)),_0xb65089(0x1ec)===_0x19bba5)throw clearInterval(this[_0xb65089(0x230)]),new _0x5368a9(_0xb65089(0x202),null);_0xb65089(0x21b)===_0x19bba5&&clearInterval(this[_0xb65089(0x230)]);},0x3e8);}[_0xe303db(0x1f3)](){const _0x85bfa=_0xe303db;this[_0x85bfa(0x230)]&&clearInterval(this[_0x85bfa(0x230)]);}}export function getDefaultCommands(_0x2a2657){const _0x33bec8=_0xe303db;return[{'groupId':_0x33bec8(0x224),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x1d3)),'commands':[{'id':_0x33bec8(0x1e0),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x20f)),'prompt':_0x33bec8(0x1d2)},{'id':_0x33bec8(0x228),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1e8)),'prompt':_0x33bec8(0x1e5)},{'id':_0x33bec8(0x1f5),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1cd)),'prompt':_0x33bec8(0x20d)},{'id':_0x33bec8(0x1db),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1c9)),'prompt':_0x33bec8(0x234)}]},{'groupId':_0x33bec8(0x235),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x23a)),'commands':[{'id':_0x33bec8(0x1d1),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1d8)),'prompt':_0x33bec8(0x23b)},{'id':_0x33bec8(0x1d0),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x214)),'prompt':_0x33bec8(0x22f)}]},{'groupId':_0x33bec8(0x1e7),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x1fd)),'commands':[{'id':_0x33bec8(0x23c),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x20a)),'prompt':_0x33bec8(0x20c)},{'id':_0x33bec8(0x1fe),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x21f)),'prompt':_0x33bec8(0x227)},{'id':_0x33bec8(0x221),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1dd)),'prompt':_0x33bec8(0x1e9)},{'id':_0x33bec8(0x209),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ed)),'prompt':_0x33bec8(0x23e)},{'id':_0x33bec8(0x23f),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ef)),'prompt':_0x33bec8(0x215)}]},{'groupId':_0x33bec8(0x229),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x210)),'commands':[{'id':_0x33bec8(0x21c),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x226)),'prompt':_0x33bec8(0x217)},{'id':_0x33bec8(0x1fc),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1e3)),'prompt':_0x33bec8(0x1cc)},{'id':_0x33bec8(0x1f7),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ca)),'prompt':_0x33bec8(0x21e)},{'id':_0x33bec8(0x203),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1eb)),'prompt':_0x33bec8(0x1df)}]},{'groupId':_0x33bec8(0x1f8),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x207)),'commands':[{'id':_0x33bec8(0x204),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1f2))]),'prompt':_0x33bec8(0x21d)},{'id':_0x33bec8(0x1fb),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1d5))]),'prompt':_0x33bec8(0x1d6)},{'id':_0x33bec8(0x20b),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1d4))]),'prompt':_0x33bec8(0x1cf)},{'id':_0x33bec8(0x1d7),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x22b))]),'prompt':_0x33bec8(0x240)},{'id':_0x33bec8(0x1de),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x220))]),'prompt':_0x33bec8(0x237)},{'id':_0x33bec8(0x232),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1e1))]),'prompt':_0x33bec8(0x1ce)},{'id':_0x33bec8(0x1fa),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x236))]),'prompt':_0x33bec8(0x1cb)},{'id':_0x33bec8(0x225),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1da))]),'prompt':_0x33bec8(0x212)}]}];}
|
|
23
|
+
const _0x5c4a98=_0x5737;(function(_0x36129d,_0x1a2074){const _0x15e031=_0x5737,_0x24a416=_0x36129d();while(!![]){try{const _0x595d10=parseInt(_0x15e031(0x15d))/0x1*(parseInt(_0x15e031(0x116))/0x2)+-parseInt(_0x15e031(0x16f))/0x3*(parseInt(_0x15e031(0x102))/0x4)+parseInt(_0x15e031(0x142))/0x5+-parseInt(_0x15e031(0x12c))/0x6+-parseInt(_0x15e031(0x13b))/0x7+-parseInt(_0x15e031(0x156))/0x8+-parseInt(_0x15e031(0x175))/0x9*(-parseInt(_0x15e031(0x140))/0xa);if(_0x595d10===_0x1a2074)break;else _0x24a416['push'](_0x24a416['shift']());}catch(_0x264dcb){_0x24a416['push'](_0x24a416['shift']());}}}(_0x2c3c,0x379da));import{CKEditorError as _0x548db8}from'ckeditor5/src/utils.js';import{Plugin as _0x4b379e}from'ckeditor5/src/core.js';function _0x5737(_0x31183b,_0x2f092c){const _0x2c3cf7=_0x2c3c();return _0x5737=function(_0x573742,_0x20fb77){_0x573742=_0x573742-0xfc;let _0x47d2f9=_0x2c3cf7[_0x573742];return _0x47d2f9;},_0x5737(_0x31183b,_0x2f092c);}import _0x536c48 from'./aiassistantui.js';import _0x455b08 from'./aiassistantediting.js';import{getTranslation as _0x3dccb1}from'./utils/common-translations.js';export default class r extends _0x4b379e{static get[_0x5c4a98(0x170)](){return[_0x536c48,_0x455b08];}static get[_0x5c4a98(0x10a)](){const _0x3d6595=_0x5c4a98;return _0x3d6595(0x14b);}constructor(_0x44e449){const _0x4dec4c=_0x5c4a98;super(_0x44e449);const _0x12ba3e=_0x44e449[_0x4dec4c(0x11e)];_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x159),getDefaultCommands(_0x44e449[_0x4dec4c(0x114)])),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x149),[]),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x163),[]);const _0x5257db=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x159)),_0x5a7443=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x149)),_0x3becfc=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x163));_0x5a7443[_0x4dec4c(0x121)](_0x1f26b3=>{const _0x5ee201=_0x4dec4c,_0x2a81e3=_0x5257db[_0x5ee201(0x15b)](_0x546897=>_0x546897[_0x5ee201(0x12b)]===_0x1f26b3[_0x5ee201(0x12b)]);_0x2a81e3?_0x2a81e3[_0x5ee201(0x129)]=_0x2a81e3[_0x5ee201(0x129)][_0x5ee201(0x11b)](_0x1f26b3[_0x5ee201(0x129)]):_0x5257db[_0x5ee201(0x15e)](_0x1f26b3);}),_0x5257db[_0x4dec4c(0x121)](_0x428ed7=>{const _0x4a59c5=_0x4dec4c;_0x428ed7[_0x4a59c5(0x129)]=_0x428ed7[_0x4a59c5(0x129)][_0x4a59c5(0x100)](_0xe0b010=>!_0x3becfc[_0x4a59c5(0x162)](_0xe0b010['id']));}),_0x12ba3e[_0x4dec4c(0x13e)](_0x4dec4c(0x159),_0x5257db);}[_0x5c4a98(0x157)](){const _0x39884a=_0x5c4a98,_0xd689ef=this[_0x39884a(0x128)];this[_0x39884a(0x146)]=_0xd689ef[_0x39884a(0x11e)][_0x39884a(0x138)](_0x39884a(0x146)),this[_0x39884a(0x122)]=setInterval(()=>{const _0x181f43=_0x39884a;let _0x20c458;for(const _0x416050 in _0xd689ef){const _0x3d8105=_0x416050,_0x15852c=_0xd689ef[_0x3d8105];if(_0x181f43(0x158)===_0x15852c||_0x181f43(0x150)===_0x15852c||_0x181f43(0x110)===_0x15852c||_0x181f43(0x164)===_0x15852c){delete _0xd689ef[_0x3d8105],_0x20c458=_0x15852c;break;}}if(_0x181f43(0x150)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x14e),null);if(_0x181f43(0x158)===_0x20c458&&console[_0x181f43(0x169)](_0x181f43(0x104)),_0x181f43(0x164)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x144),null);_0x181f43(0x110)===_0x20c458&&clearInterval(this[_0x181f43(0x122)]);},0x3e8);}[_0x5c4a98(0x14c)](){const _0x570544=_0x5c4a98;this[_0x570544(0x122)]&&clearInterval(this[_0x570544(0x122)]);}}export function getDefaultCommands(_0x2ff80c){const _0x481b97=_0x5c4a98;return[{'groupId':_0x481b97(0x14d),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x125)),'commands':[{'id':_0x481b97(0x108),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10c)),'prompt':_0x481b97(0x13f)},{'id':_0x481b97(0x148),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x166)),'prompt':_0x481b97(0x15c)},{'id':_0x481b97(0x173),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x145)),'prompt':_0x481b97(0x101)},{'id':_0x481b97(0x123),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10f)),'prompt':_0x481b97(0x160)}]},{'groupId':_0x481b97(0x15a),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x126)),'commands':[{'id':_0x481b97(0x168),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10d)),'prompt':_0x481b97(0xfe)},{'id':_0x481b97(0x127),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x135)),'prompt':_0x481b97(0x165)}]},{'groupId':_0x481b97(0x151),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x113)),'commands':[{'id':_0x481b97(0x152),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x115)),'prompt':_0x481b97(0x153)},{'id':_0x481b97(0x137),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x14f)),'prompt':_0x481b97(0x16e)},{'id':_0x481b97(0x117),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x154)),'prompt':_0x481b97(0x143)},{'id':_0x481b97(0x12a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x134)),'prompt':_0x481b97(0x119)},{'id':_0x481b97(0x106),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x161)),'prompt':_0x481b97(0x103)}]},{'groupId':_0x481b97(0x155),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x132)),'commands':[{'id':_0x481b97(0xfc),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x13d)),'prompt':_0x481b97(0xfd)},{'id':_0x481b97(0x16b),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x12d)),'prompt':_0x481b97(0x107)},{'id':_0x481b97(0x112),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16d)),'prompt':_0x481b97(0xff)},{'id':_0x481b97(0x130),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16a)),'prompt':_0x481b97(0x15f)}]},{'groupId':_0x481b97(0x109),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x11f)),'commands':[{'id':_0x481b97(0x10e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x12f))]),'prompt':_0x481b97(0x136)},{'id':_0x481b97(0x139),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x118))]),'prompt':_0x481b97(0x10b)},{'id':_0x481b97(0x12e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x111))]),'prompt':_0x481b97(0x11d)},{'id':_0x481b97(0x11a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x105))]),'prompt':_0x481b97(0x120)},{'id':_0x481b97(0x124),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x133))]),'prompt':_0x481b97(0x131)},{'id':_0x481b97(0x171),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x167))]),'prompt':_0x481b97(0x147)},{'id':_0x481b97(0x11c),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x14a))]),'prompt':_0x481b97(0x13c)},{'id':_0x481b97(0x13a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x172))]),'prompt':_0x481b97(0x141)}]}];}function _0x2c3c(){const _0x175125=['Portuguese','journalism','Change\x20tone','locale','Professional','180470hopIDP','direct','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateGerman','concat','translateHindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','config','Translate','Translate\x20the\x20content\x20to\x20German\x20language.','forEach','_licenseKeyCheckInterval','simplifyLanguage','translateFrench','Edit\x20or\x20review','Generate\x20from\x20selection','continue','editor','commands','confident','groupId','500706Xgtecc','Legal','translatePortuguese','English','poetic','Translate\x20the\x20content\x20to\x20French\x20language.','Change\x20style','French','Confident','Continue','Translate\x20the\x20content\x20to\x20English\x20language.','casual','get','translateSpanish','translateArabic','3047905gmJXvR','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Business','set','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','1255110uoJStg','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1470825xHQmXy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','ai-trial-license-key-reached-limit-changes','Make\x20longer','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','makeShorter','ai.aiAssistant.extraCommandGroups','Hindi','AIAssistant','destroy','editOrReview','ai-invalid-license-key','Casual','aiLicenseKeyInvalid','changeTone','professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Direct','changeStyle','977864EZWZfV','init','aiLicenseKeyTrial','ai.aiAssistant.commands','generate','find','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','1fABAGG','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Friendly','includes','ai.aiAssistant.removeCommands','aiLicenseKeyTrialLimit:operations','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Make\x20shorter','Simplified\x20Chinese','summarize','info','Poetic','legal','Translate\x20to\x20%0','Journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','1182228mcaoAV','requires','translateChinese','Arabic','makeLonger','define','63oBFhDV','business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','4MVvoaG','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','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.','German','friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','improveWriting','translate','pluginName','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20writing','Summarize','translateEnglish','Simplify\x20language','aiLicenseKeyValid'];_0x2c3c=function(){return _0x175125;};return _0x2c3c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x391b(){const _0x542a6c=['schema','7422653gkFxAb','has','10079886iTVKot','start','6PvfIcM','markerToElement','config','pop','pluginName','toModel','AIAssistantEditing','ck-fake-ai-selection','processor','85911DlNFJM','end','removeMarker','ck-fake-ai-selection-candidate','getSelectedBlocks','for','markers','setSelection','ck-ai-assistant-ui_theme','updateMarker','createSelection','isContent','hideFakeVisualSelection','getLastPosition','toView','createRange','length','ai-ui-candidate','showFakeVisualSelection','insertContentBelow','ai.useTheme','push','1258150SJxVJT','canEditAt','from','selection','5rjAMoD','isAtEnd','document','981562ytlenk','editingDowncast','ck-fake-ai-selection_collapsed','createPositionAfter','getRange','markerToHighlight','span','model','get','editor','14454856UCTKsG','getLastMatchingPosition','change','171IyyQjd','init','conversion','5221812NYQgHA','insertContent','addMarker','getFirstRange','ai-ui','data'];_0x391b=function(){return _0x542a6c;};return _0x391b();}const _0x550dae=_0x1ad8;function _0x1ad8(_0x5e3088,_0x6822a6){const _0x391b15=_0x391b();return _0x1ad8=function(_0x1ad82f,_0x428f73){_0x1ad82f=_0x1ad82f-0x152;let _0x2121af=_0x391b15[_0x1ad82f];return _0x2121af;},_0x1ad8(_0x5e3088,_0x6822a6);}(function(_0x14f874,_0x14b3df){const _0x50eca3=_0x1ad8,_0x417b1c=_0x14f874();while(!![]){try{const _0x203491=parseInt(_0x50eca3(0x174))/0x1+-parseInt(_0x50eca3(0x18f))/0x2*(parseInt(_0x50eca3(0x157))/0x3)+parseInt(_0x50eca3(0x184))/0x4+parseInt(_0x50eca3(0x171))/0x5*(-parseInt(_0x50eca3(0x18d))/0x6)+parseInt(_0x50eca3(0x18b))/0x7+parseInt(_0x50eca3(0x17e))/0x8+-parseInt(_0x50eca3(0x181))/0x9*(parseInt(_0x50eca3(0x16d))/0xa);if(_0x203491===_0x14b3df)break;else _0x417b1c['push'](_0x417b1c['shift']());}catch(_0x5a6f2f){_0x417b1c['push'](_0x417b1c['shift']());}}}(_0x391b,0xf39f2));import{Plugin as _0xf2e562}from'ckeditor5/src/core.js';const s=_0x550dae(0x188),c=_0x550dae(0x168);export default class i extends _0xf2e562{static get[_0x550dae(0x152)](){const _0x59a8cd=_0x550dae;return _0x59a8cd(0x154);}[_0x550dae(0x182)](){const _0x1e060a=_0x550dae,{editor:_0x26e3f4}=this,_0x53f6ad=[_0x1e060a(0x155)];_0x26e3f4[_0x1e060a(0x191)][_0x1e060a(0x17c)](_0x1e060a(0x16b))&&_0x53f6ad[_0x1e060a(0x16c)](_0x1e060a(0x15f)),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':s,'view':{'classes':_0x53f6ad,'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':s,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x155),_0x1e060a(0x176)],'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':c,'view':{'classes':[_0x1e060a(0x15a)],'priority':0x19}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':c,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x15a),_0x1e060a(0x176)],'priority':0x19}});}[_0x550dae(0x169)](_0x310829){const _0xc2e454=_0x550dae,_0x491ff5=this[_0xc2e454(0x17d)][_0xc2e454(0x17b)],_0x4d34f4=_0x310829?c:s;_0x491ff5[_0xc2e454(0x180)](_0x329eda=>{const _0x167f32=_0xc2e454,_0xa0cbc=_0x491ff5[_0x167f32(0x173)][_0x167f32(0x170)][_0x167f32(0x187)]();if(_0x491ff5[_0x167f32(0x15d)][_0x167f32(0x18c)](_0x4d34f4))_0x329eda[_0x167f32(0x160)](_0x4d34f4,{'range':_0xa0cbc});else{if(_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x172)]){const _0x31c62c=_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x17f)](({item:_0x541c40})=>!_0x491ff5[_0x167f32(0x18a)][_0x167f32(0x162)](_0x541c40),{'boundaries':_0xa0cbc});_0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x329eda[_0x167f32(0x166)](_0x31c62c,_0xa0cbc[_0x167f32(0x158)])});}else _0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xa0cbc});}});}[_0x550dae(0x163)](_0x16d184){const _0xf1b277=_0x550dae,_0x4359ab=this[_0xf1b277(0x17d)][_0xf1b277(0x17b)],_0x535406=_0x16d184?c:s;_0x4359ab[_0xf1b277(0x15d)][_0xf1b277(0x18c)](_0x535406)&&_0x4359ab[_0xf1b277(0x180)](_0x354001=>{const _0x423266=_0xf1b277;_0x354001[_0x423266(0x159)](_0x535406);});}[_0x550dae(0x185)](_0x53beef,_0x52addf){const _0x3d4ca6=_0x550dae,_0xd6ec98=_0x52addf||this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x15d)][_0x3d4ca6(0x17c)](s)[_0x3d4ca6(0x178)]();if(!this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x16e)](_0xd6ec98))return;const _0x3b90e4=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x156)][_0x3d4ca6(0x165)](_0x53beef),_0x16a74e=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x153)](_0x3b90e4);this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x180)](_0xb6a88c=>{const _0x14b27e=_0x3d4ca6;this[_0x14b27e(0x163)]();const _0x1293e6=this[_0x14b27e(0x17d)][_0x14b27e(0x17b)][_0x14b27e(0x185)](_0x16a74e,_0xd6ec98);_0x1293e6&&_0xb6a88c[_0x14b27e(0x15e)](_0x1293e6);});}[_0x550dae(0x16a)](_0x2be4ac){const _0x415fea=_0x550dae,{model:_0x56801f}=this[_0x415fea(0x17d)],_0x3f6793=Array[_0x415fea(0x16f)](_0x56801f[_0x415fea(0x161)](this[_0x415fea(0x17d)][_0x415fea(0x17b)][_0x415fea(0x15d)][_0x415fea(0x17c)](s)[_0x415fea(0x178)]())[_0x415fea(0x15b)]()),_0x1eea07=_0x3f6793[_0x415fea(0x167)]?_0x56801f[_0x415fea(0x177)](_0x3f6793[_0x415fea(0x192)]()):_0x56801f[_0x415fea(0x173)][_0x415fea(0x170)][_0x415fea(0x164)]();this[_0x415fea(0x185)](_0x2be4ac,_0x1eea07);}}
|