@ckeditor/ckeditor5-ai 41.3.0 → 41.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.3.0",
3
+ "version": "41.3.1",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,10 +23,10 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "41.3.0",
27
- "ckeditor5-collaboration": "41.3.0",
26
+ "ckeditor5": "41.3.1",
27
+ "ckeditor5-collaboration": "41.3.1",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.3.0",
29
+ "@ckeditor/ckeditor5-ui": "41.3.1",
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 _0x4ea116=_0x14b1;(function(_0x2a5570,_0x54de47){var _0x3dff64=_0x14b1,_0x27e4cd=_0x2a5570();while(!![]){try{var _0x3253d9=parseInt(_0x3dff64(0xeb))/0x1*(-parseInt(_0x3dff64(0xde))/0x2)+-parseInt(_0x3dff64(0xe6))/0x3*(-parseInt(_0x3dff64(0xec))/0x4)+-parseInt(_0x3dff64(0xdd))/0x5*(-parseInt(_0x3dff64(0xe3))/0x6)+-parseInt(_0x3dff64(0xe8))/0x7+-parseInt(_0x3dff64(0xdf))/0x8+parseInt(_0x3dff64(0xea))/0x9*(parseInt(_0x3dff64(0xe7))/0xa)+parseInt(_0x3dff64(0xe1))/0xb*(parseInt(_0x3dff64(0xe2))/0xc);if(_0x3253d9===_0x54de47)break;else _0x27e4cd['push'](_0x27e4cd['shift']());}catch(_0x2a07e0){_0x27e4cd['push'](_0x27e4cd['shift']());}}}(_0x555c,0x209f6));import{Plugin as _0x5c7d91}from'ckeditor5/src/core.js';import{CKEditorError as _0x279425}from'ckeditor5/src/utils.js';function _0x14b1(_0x19b64c,_0x2d6a12){var _0x555ce0=_0x555c();return _0x14b1=function(_0x14b176,_0x2f6cb2){_0x14b176=_0x14b176-0xdd;var _0x179e41=_0x555ce0[_0x14b176];return _0x179e41;},_0x14b1(_0x19b64c,_0x2d6a12);}function _0x555c(){var _0x3c9b48=['5CfJcLU','2PdbSTc','1448008apHSVu','textAdapter','66kesmQM','805092EsBTez','1447962gYcHOS','name','AIAdapter','1338vDdqPQ','20NfMnWj','1541925JtsGaX','aiadapter-text-adapter-not-set','214506rqkvzv','252533fQagrc','860lCVDkc','AIRequestError','pluginName','afterInit'];_0x555c=function(){return _0x3c9b48;};return _0x555c();}export default class v extends _0x5c7d91{static get[_0x4ea116(0xee)](){var _0x48d770=_0x4ea116;return _0x48d770(0xe5);}[_0x4ea116(0xef)](){var _0x3ccf5c=_0x4ea116;if(!this[_0x3ccf5c(0xe0)])throw new _0x279425(_0x3ccf5c(0xe9),null);}}export class AIRequestError extends Error{constructor(_0x50249c){var _0x101bb3=_0x4ea116;super(_0x50249c),this[_0x101bb3(0xe4)]=_0x101bb3(0xed);}}
23
+ function _0x4890(_0x283565,_0x4afb65){var _0x5db129=_0x5db1();return _0x4890=function(_0x48909a,_0x5bcaef){_0x48909a=_0x48909a-0xd7;var _0x31b875=_0x5db129[_0x48909a];return _0x31b875;},_0x4890(_0x283565,_0x4afb65);}function _0x5db1(){var _0x58d053=['8bAQLQQ','aiadapter-text-adapter-not-set','pluginName','17749980EQzpZF','438105XnYYHg','2513HMbpca','577606DjJZPK','2613351caZbkB','207ILCHKZ','39008QfUxVd','AIAdapter','textAdapter','AIRequestError','5Creope','afterInit','36nwdmjc','13306018motQSa','name','19104PauCOG'];_0x5db1=function(){return _0x58d053;};return _0x5db1();}var _0xb40bde=_0x4890;(function(_0x2e1659,_0x1d1a3e){var _0x11245d=_0x4890,_0x18c4e9=_0x2e1659();while(!![]){try{var _0x21b0f9=-parseInt(_0x11245d(0xe8))/0x1*(-parseInt(_0x11245d(0xe1))/0x2)+-parseInt(_0x11245d(0xe2))/0x3+-parseInt(_0x11245d(0xdb))/0x4*(parseInt(_0x11245d(0xdf))/0x5)+-parseInt(_0x11245d(0xda))/0x6*(parseInt(_0x11245d(0xe0))/0x7)+-parseInt(_0x11245d(0xe4))/0x8*(parseInt(_0x11245d(0xe3))/0x9)+-parseInt(_0x11245d(0xde))/0xa+parseInt(_0x11245d(0xd8))/0xb*(parseInt(_0x11245d(0xd7))/0xc);if(_0x21b0f9===_0x1d1a3e)break;else _0x18c4e9['push'](_0x18c4e9['shift']());}catch(_0x150945){_0x18c4e9['push'](_0x18c4e9['shift']());}}}(_0x5db1,0xf3410));import{Plugin as _0x3b310b}from'ckeditor5/src/core.js';import{CKEditorError as _0x163675}from'ckeditor5/src/utils.js';export default class v extends _0x3b310b{static get[_0xb40bde(0xdd)](){var _0x2453d4=_0xb40bde;return _0x2453d4(0xe5);}[_0xb40bde(0xe9)](){var _0x1f21da=_0xb40bde;if(!this[_0x1f21da(0xe6)])throw new _0x163675(_0x1f21da(0xdc),null);}}export class AIRequestError extends Error{constructor(_0x49fa78){var _0x6eb0b1=_0xb40bde;super(_0x49fa78),this[_0x6eb0b1(0xd9)]=_0x6eb0b1(0xe7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xa5ef(_0x46bdc2,_0x732d9){const _0x1a20db=_0x1a20();return _0xa5ef=function(_0xa5ef75,_0x498e77){_0xa5ef75=_0xa5ef75-0xf0;let _0xa05d89=_0x1a20db[_0xa5ef75];return _0xa05d89;},_0xa5ef(_0x46bdc2,_0x732d9);}const _0x119a77=_0xa5ef;(function(_0x13a53c,_0x2391d9){const _0x4a35eb=_0xa5ef,_0x4820c5=_0x13a53c();while(!![]){try{const _0x1b0a26=-parseInt(_0x4a35eb(0x107))/0x1*(-parseInt(_0x4a35eb(0x105))/0x2)+parseInt(_0x4a35eb(0xf8))/0x3*(parseInt(_0x4a35eb(0x114))/0x4)+parseInt(_0x4a35eb(0xfc))/0x5*(parseInt(_0x4a35eb(0xf5))/0x6)+parseInt(_0x4a35eb(0x118))/0x7*(-parseInt(_0x4a35eb(0xf1))/0x8)+-parseInt(_0x4a35eb(0x10a))/0x9*(parseInt(_0x4a35eb(0xf0))/0xa)+-parseInt(_0x4a35eb(0xf9))/0xb*(parseInt(_0x4a35eb(0x103))/0xc)+parseInt(_0x4a35eb(0xf2))/0xd*(parseInt(_0x4a35eb(0x116))/0xe);if(_0x1b0a26===_0x2391d9)break;else _0x4820c5['push'](_0x4820c5['shift']());}catch(_0x3ef285){_0x4820c5['push'](_0x4820c5['shift']());}}}(_0x1a20,0x3eba8));import{Plugin as _0x407fad}from'ckeditor5/src/core.js';import{CKEditorError as _0xfa40c1}from'ckeditor5/src/utils.js';import{default as _0x579e28,AIRequestError as _0xd5db09}from'./aiadapter.js';function _0x1a20(){const _0x909f67=['textAdapter','name','2768fgcCXF','init','6402746Euabvg','sendRequest','7rbGhlo','4039640wTBZSQ','979528wmTHzy','13AOXSVV','reject','error','1970064sNMGzo','aitextadapter-send-request-failed','get','816OVKUWc','184228tGtPhP','_prepareRequestHeaders','AbortError','5AEPGJm','abort','aborted','plugins','_prepareRequestParameters','requires','object','216OOenMC','assign','244JLcweO','catch','909ljKFfF','signal','resolve','9OwNiKS','abortController','editor','application/json','AI_ERROR_GET_HEADERS','locale','makeRequest','AI_ERROR_GET_PARAMETERS'];_0x1a20=function(){return _0x909f67;};return _0x1a20();}import{getTranslation as _0x4ad78c}from'../utils/common-translations.js';export default class P extends _0x407fad{static get[_0x119a77(0x101)](){return[_0x579e28];}constructor(_0x4fe773){const _0x2d2b49=_0x119a77;super(_0x4fe773),this[_0x2d2b49(0x10b)]=new AbortController();}[_0x119a77(0x115)](){const _0x5c3820=_0x119a77;this[_0x5c3820(0x10c)][_0x5c3820(0xff)][_0x5c3820(0xf7)](_0x579e28)[_0x5c3820(0x112)]=this;}[_0x119a77(0xfd)](){const _0x5652dd=_0x119a77;this[_0x5652dd(0x10b)][_0x5652dd(0x108)][_0x5652dd(0xfe)]||(this[_0x5652dd(0x10b)][_0x5652dd(0xfd)](),this[_0x5652dd(0x10b)]=new AbortController());}async[_0x119a77(0x110)](_0x8ffbcd){const _0x3ba962=_0x119a77;return this[_0x3ba962(0x117)](_0x8ffbcd)[_0x3ba962(0x106)](_0x164ec8=>{const _0x128655=_0x3ba962;if(_0x164ec8 instanceof _0xd5db09)return Promise[_0x128655(0xf3)](_0x164ec8);if(_0x128655(0xfb)==_0x164ec8[_0x128655(0x113)])return Promise[_0x128655(0x109)]();throw console[_0x128655(0xf4)](_0x164ec8),new _0xfa40c1(_0x128655(0xf6),null);});}async[_0x119a77(0xfa)](_0x57d473,_0x1ee62a){const _0x3d3d4e=_0x119a77,_0xfaaa2d=this[_0x3d3d4e(0x10c)][_0x3d3d4e(0x10f)],_0xf11c6={'Content-Type':_0x3d3d4e(0x10d)};if(_0x3d3d4e(0x102)==typeof _0x57d473)Object[_0x3d3d4e(0x104)](_0xf11c6,_0x57d473);else{if(_0x57d473)try{const _0x4d633a=await _0x57d473(_0x1ee62a);Object[_0x3d3d4e(0x104)](_0xf11c6,_0x4d633a);}catch(_0x2f3755){return Promise[_0x3d3d4e(0xf3)](new _0xd5db09(_0x4ad78c(_0xfaaa2d,_0x3d3d4e(0x10e))));}}return _0xf11c6;}async[_0x119a77(0x100)](_0xceacfa,_0x1c834c){const _0x58b208=_0x119a77,_0x36deec=this[_0x58b208(0x10c)][_0x58b208(0x10f)];if(_0x58b208(0x102)==typeof _0xceacfa)return _0xceacfa;try{return await _0xceacfa(_0x1c834c);}catch(_0x3acc7c){return Promise[_0x58b208(0xf3)](new _0xd5db09(_0x4ad78c(_0x36deec,_0x58b208(0x111))));}}}
23
+ const _0x5dcf64=_0x4921;function _0x33ef(){const _0x3e7fd7=['resolve','error','requires','makeRequest','14140xaIuNt','AI_ERROR_GET_PARAMETERS','catch','init','1277264yiSngk','name','75418XUEENe','aborted','1744mXPVqk','get','plugins','abortController','1895532DZomQc','abort','AI_ERROR_GET_HEADERS','application/json','aitextadapter-send-request-failed','15505HObjhq','sendRequest','signal','assign','object','reject','1506RdQbFu','_prepareRequestHeaders','1467lptquk','55oDeXoA','66SSkdWm','locale','editor','textAdapter','940709IgzLEB','_prepareRequestParameters','AbortError','4BYJqPj'];_0x33ef=function(){return _0x3e7fd7;};return _0x33ef();}(function(_0xb10f4e,_0x53f74e){const _0x318c5c=_0x4921,_0x193d97=_0xb10f4e();while(!![]){try{const _0x41046e=-parseInt(_0x318c5c(0x86))/0x1*(parseInt(_0x318c5c(0x7b))/0x2)+-parseInt(_0x318c5c(0x70))/0x3*(parseInt(_0x318c5c(0x88))/0x4)+parseInt(_0x318c5c(0x91))/0x5*(-parseInt(_0x318c5c(0x74))/0x6)+parseInt(_0x318c5c(0x78))/0x7+-parseInt(_0x318c5c(0x84))/0x8+-parseInt(_0x318c5c(0x72))/0x9*(parseInt(_0x318c5c(0x80))/0xa)+parseInt(_0x318c5c(0x73))/0xb*(parseInt(_0x318c5c(0x8c))/0xc);if(_0x41046e===_0x53f74e)break;else _0x193d97['push'](_0x193d97['shift']());}catch(_0x135c09){_0x193d97['push'](_0x193d97['shift']());}}}(_0x33ef,0x1fcb9));function _0x4921(_0x543e96,_0x3638fb){const _0x33ef54=_0x33ef();return _0x4921=function(_0x4921f3,_0x112cf4){_0x4921f3=_0x4921f3-0x70;let _0x1e3a88=_0x33ef54[_0x4921f3];return _0x1e3a88;},_0x4921(_0x543e96,_0x3638fb);}import{Plugin as _0x29b59d}from'ckeditor5/src/core.js';import{CKEditorError as _0x3828b9}from'ckeditor5/src/utils.js';import{default as _0x195c66,AIRequestError as _0x55ca6}from'./aiadapter.js';import{getTranslation as _0x14a340}from'../utils/common-translations.js';export default class P extends _0x29b59d{static get[_0x5dcf64(0x7e)](){return[_0x195c66];}constructor(_0x522bec){const _0x2f94e6=_0x5dcf64;super(_0x522bec),this[_0x2f94e6(0x8b)]=new AbortController();}[_0x5dcf64(0x83)](){const _0x4f3745=_0x5dcf64;this[_0x4f3745(0x76)][_0x4f3745(0x8a)][_0x4f3745(0x89)](_0x195c66)[_0x4f3745(0x77)]=this;}[_0x5dcf64(0x8d)](){const _0x1c6760=_0x5dcf64;this[_0x1c6760(0x8b)][_0x1c6760(0x93)][_0x1c6760(0x87)]||(this[_0x1c6760(0x8b)][_0x1c6760(0x8d)](),this[_0x1c6760(0x8b)]=new AbortController());}async[_0x5dcf64(0x7f)](_0x287bdc){const _0x1a2aa7=_0x5dcf64;return this[_0x1a2aa7(0x92)](_0x287bdc)[_0x1a2aa7(0x82)](_0x3ea821=>{const _0x106eb4=_0x1a2aa7;if(_0x3ea821 instanceof _0x55ca6)return Promise[_0x106eb4(0x96)](_0x3ea821);if(_0x106eb4(0x7a)==_0x3ea821[_0x106eb4(0x85)])return Promise[_0x106eb4(0x7c)]();throw console[_0x106eb4(0x7d)](_0x3ea821),new _0x3828b9(_0x106eb4(0x90),null);});}async[_0x5dcf64(0x71)](_0x2f809f,_0x39dbd2){const _0x4ecf8f=_0x5dcf64,_0x4f0d12=this[_0x4ecf8f(0x76)][_0x4ecf8f(0x75)],_0x259c08={'Content-Type':_0x4ecf8f(0x8f)};if(_0x4ecf8f(0x95)==typeof _0x2f809f)Object[_0x4ecf8f(0x94)](_0x259c08,_0x2f809f);else{if(_0x2f809f)try{const _0x3a8b13=await _0x2f809f(_0x39dbd2);Object[_0x4ecf8f(0x94)](_0x259c08,_0x3a8b13);}catch(_0x2f816e){return Promise[_0x4ecf8f(0x96)](new _0x55ca6(_0x14a340(_0x4f0d12,_0x4ecf8f(0x8e))));}}return _0x259c08;}async[_0x5dcf64(0x79)](_0x3ffc4f,_0x4c4bc9){const _0x29f773=_0x5dcf64,_0x3650c9=this[_0x29f773(0x76)][_0x29f773(0x75)];if(_0x29f773(0x95)==typeof _0x3ffc4f)return _0x3ffc4f;try{return await _0x3ffc4f(_0x4c4bc9);}catch(_0x2db88b){return Promise[_0x29f773(0x96)](new _0x55ca6(_0x14a340(_0x3650c9,_0x29f773(0x81))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41a277=_0x22c6;function _0x22c6(_0x3688aa,_0x25670e){const _0x2be54e=_0x2be5();return _0x22c6=function(_0x22c6f0,_0x165fcc){_0x22c6f0=_0x22c6f0-0x91;let _0x140081=_0x2be54e[_0x22c6f0];return _0x140081;},_0x22c6(_0x3688aa,_0x25670e);}(function(_0x4f46bc,_0x51c235){const _0x4bcbbd=_0x22c6,_0xd0bc14=_0x4f46bc();while(!![]){try{const _0x109aa6=parseInt(_0x4bcbbd(0xc8))/0x1+-parseInt(_0x4bcbbd(0xd0))/0x2*(parseInt(_0x4bcbbd(0xda))/0x3)+parseInt(_0x4bcbbd(0xcd))/0x4+-parseInt(_0x4bcbbd(0x94))/0x5*(parseInt(_0x4bcbbd(0xc9))/0x6)+-parseInt(_0x4bcbbd(0xd8))/0x7*(parseInt(_0x4bcbbd(0xa4))/0x8)+-parseInt(_0x4bcbbd(0xb0))/0x9+parseInt(_0x4bcbbd(0x9b))/0xa;if(_0x109aa6===_0x51c235)break;else _0xd0bc14['push'](_0xd0bc14['shift']());}catch(_0x967b97){_0xd0bc14['push'](_0xd0bc14['shift']());}}}(_0x2be5,0xa7068));import{default as _0x24c764}from'./aitextadapter.js';import{AIRequestError as _0x2b3df4}from'./aiadapter.js';function _0x2be5(){const _0x93e1d6=['json','\x0a\x0aAssistant:','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.','completion','map','ai.aws.bedrockClientConfig','ai21.j2','config','_processAWSRequest','\x0a<</SYS>>\x0a[INST]\x0a','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','stringify','529040mJzxxS','6TqNKXF','chunk','define','_readStreamableResponse','4457124sPTksR','parse','_prepareRequestParameters','2nyDFrU','toString','decode','bytes','POST','completions','meta.llama','join','4564819kYwczH','split','3784824YxVssk','getModelFamily','utf-8','filter','_readAsyncIterableResponse','body','ai.aws.requestParameters','editor','read','_readStaticResponse','send','Instruction:\x0a','anthropic.claude-v2','4965710vfXexQ','_bedrockClientConfig','anthropic.claude','signal','_apiUrl','length','resolve','28170050kAverr','_requestParameters','generations','_prepareRequestHeaders','Human:\x0a','from','bedrock-2023-05-31','data','abortController','8gSWBYb','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','application/json','<<SYS>>\x0a','AWSTextAdapter','locale','ai.aws.apiUrl','utf8','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.','_processProxyRequest','get','generation','7823907RuZEGn','test','preparePrompt','text','getReader','pluginName','\x0a[/INST]','sendRequest','_requestHeaders','cohere.command','_getGeneratedText'];_0x2be5=function(){return _0x93e1d6;};return _0x2be5();}import{BedrockRuntimeClient as _0xf22cb,InvokeModelCommand as _0x210f01,InvokeModelWithResponseStreamCommand as _0x504fce}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x40b85d}from'../utils/common-translations.js';export default class Y extends _0x24c764{static get[_0x41a277(0xb5)](){const _0x42ee1f=_0x41a277;return _0x42ee1f(0xa8);}constructor(_0x4d58a5){const _0x263c8c=_0x41a277;super(_0x4d58a5),_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0))||_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xcb)](_0x263c8c(0xe0),{'model':_0x263c8c(0x93),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x263c8c(0xa1),'stream':!0x0}),this[_0x263c8c(0x98)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xaa)),this[_0x263c8c(0x95)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc0)),this[_0x263c8c(0xb8)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc5)),this[_0x263c8c(0x9c)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0));}async[_0x41a277(0xb7)]({query:_0x3fa7a9,context:_0x1366f7,onData:_0x2b9518,actionId:_0x383f70}){const _0x52c1ea=_0x41a277,{model:_0x176c5f,stream:_0x2f8f2e,..._0x4a2915}=await this[_0x52c1ea(0xcf)](this[_0x52c1ea(0x9c)],_0x383f70),_0x387f15={'prompt':await this[_0x52c1ea(0xb2)](_0x3fa7a9,_0x1366f7,_0x176c5f,_0x383f70),..._0x4a2915};this[_0x52c1ea(0x98)]?await this[_0x52c1ea(0xad)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518,_0x383f70):await this[_0x52c1ea(0xc3)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518);}async[_0x41a277(0xb2)](_0x202ed3,_0x39138e,_0x22e58d,_0x10b04b){const _0x2b9e8c=_0x41a277;let _0xfa0803,_0x47cfa1;return _0x39138e?(_0xfa0803=_0x2b9e8c(0xac),_0x47cfa1=_0x2b9e8c(0x92)+_0x202ed3+_0x2b9e8c(0xa5)+_0x39138e):(_0xfa0803=_0x2b9e8c(0xbd),_0x47cfa1=_0x202ed3),_0x2b9e8c(0xd6)==this[_0x2b9e8c(0xdb)](_0x22e58d)?_0x2b9e8c(0xa7)+_0xfa0803+_0x2b9e8c(0xc4)+_0x47cfa1+_0x2b9e8c(0xb6):_0x2b9e8c(0x9f)+_0xfa0803+'\x0a'+_0x47cfa1+_0x2b9e8c(0xbc);}[_0x41a277(0xdb)](_0x4afb08){const _0x3e0e3b=_0x41a277;if(/^anthropic\.claude/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0x96);if(/^ai21\.j2/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xc1);if(/^cohere\.command/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xb9);if(/^meta\.llama/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xd6);throw new _0x2b3df4(_0x40b85d(this[_0x3e0e3b(0xe1)][_0x3e0e3b(0xa9)],_0x3e0e3b(0xc6),_0x4afb08));}async[_0x41a277(0xad)](_0x309e58,_0x5b599a,_0x120ddf,_0x547839,_0x5e3fcd){const _0x3409b1=_0x41a277,_0x2b5866={'method':_0x3409b1(0xd4),'headers':await this[_0x3409b1(0x9e)](this[_0x3409b1(0xb8)],_0x5e3fcd),'body':JSON[_0x3409b1(0xc7)]({..._0x309e58,'model':_0x5b599a,'stream':_0x120ddf}),'signal':this[_0x3409b1(0xa3)][_0x3409b1(0x97)]},_0x29faf7=await fetch(this[_0x3409b1(0x98)],_0x2b5866);_0x120ddf?await this[_0x3409b1(0xcc)](_0x29faf7,_0x5b599a,_0x547839):await this[_0x3409b1(0xe3)](_0x29faf7,_0x5b599a,_0x547839);}async[_0x41a277(0xc3)](_0x493760,_0x6b9e1b,_0x12a501,_0x408230){const _0x4daecf=_0x41a277,_0x765f29=new _0xf22cb(this[_0x4daecf(0x95)]),_0x2b7fa9={'body':JSON[_0x4daecf(0xc7)](_0x493760),'contentType':_0x4daecf(0xa6),'accept':_0x4daecf(0xa6),'modelId':_0x6b9e1b};let _0x4592b9;if(_0x12a501){const _0x1ddf29=new _0x504fce(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0x1ddf29,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xde)](_0x4592b9,_0x6b9e1b,_0x408230);}else{const _0xcca695=new _0x210f01(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0xcca695,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xe3)](_0x4592b9,_0x6b9e1b,_0x408230);}}async[_0x41a277(0xde)](_0x4cf666,_0x1e02b9,_0x2feca5){const _0x2bb4ba=_0x41a277,_0x407635=_0x4cf666[_0x2bb4ba(0xdf)],_0x9d6a02=new TextDecoder(_0x2bb4ba(0xdc));let _0x31be7d='';for await(const _0x532d2d of _0x407635)if(_0x532d2d[_0x2bb4ba(0xca)]){const _0x35bb18=_0x9d6a02[_0x2bb4ba(0xd2)](_0x532d2d[_0x2bb4ba(0xca)][_0x2bb4ba(0xd3)]),_0x5a7585=JSON[_0x2bb4ba(0xce)](_0x35bb18);_0x31be7d+=this[_0x2bb4ba(0xba)](_0x5a7585,_0x1e02b9),_0x2feca5(_0x31be7d);}return Promise[_0x2bb4ba(0x9a)]();}async[_0x41a277(0xcc)](_0x2d4a4e,_0x19ea3d,_0xcf3ac9){const _0x382a20=_0x41a277,_0xf80d83=_0x2d4a4e[_0x382a20(0xdf)],_0x3b05a6=new TextDecoder(_0x382a20(0xdc)),_0x1d1ffe=_0xf80d83[_0x382a20(0xb4)]();let _0x1dce4e='',_0x4cc217='',_0x43b90c=!0x1;for(;!_0x43b90c;){const {done:_0x5dd48c,value:_0x47e850}=await _0x1d1ffe[_0x382a20(0xe2)]();if(_0x43b90c=_0x5dd48c,_0x43b90c)break;const _0x31ce3b=(_0x1dce4e+_0x3b05a6[_0x382a20(0xd2)](_0x47e850))[_0x382a20(0xd9)]('\x0a')[_0x382a20(0xbf)](_0x2e6530=>{const _0x4bb586=_0x382a20;try{return _0x1dce4e='',JSON[_0x4bb586(0xce)](_0x2e6530);}catch(_0x28eb13){return _0x1dce4e=_0x2e6530,null;}})[_0x382a20(0xdd)](_0x1fbceb=>null!==_0x1fbceb);_0x31ce3b[_0x382a20(0x99)]&&(_0x4cc217+=_0x31ce3b[_0x382a20(0xbf)](_0x77f010=>this[_0x382a20(0xba)](_0x77f010,_0x19ea3d))[_0x382a20(0xd7)](''),_0xcf3ac9(_0x4cc217));}return Promise[_0x382a20(0x9a)]();}async[_0x41a277(0xe3)](_0x3a14e6,_0x3d0371,_0x389885){const _0x224468=_0x41a277;let _0x10fccb;return _0x10fccb=_0x3a14e6 instanceof Response?await _0x3a14e6[_0x224468(0xbb)]():JSON[_0x224468(0xce)](Buffer[_0x224468(0xa0)](_0x3a14e6[_0x224468(0xdf)])[_0x224468(0xd1)](_0x224468(0xab))),(_0x389885(this[_0x224468(0xba)](_0x10fccb,_0x3d0371)),Promise[_0x224468(0x9a)]());}[_0x41a277(0xba)](_0x46898e,_0x5476d5){const _0x15739d=_0x41a277;switch(this[_0x15739d(0xdb)](_0x5476d5)){case _0x15739d(0x96):return _0x46898e[_0x15739d(0xbe)];case _0x15739d(0xc1):return _0x46898e[_0x15739d(0xd5)][0x0][_0x15739d(0xa2)][_0x15739d(0xb3)];case _0x15739d(0xb9):return _0x46898e[_0x15739d(0x9d)][0x0][_0x15739d(0xb3)];case _0x15739d(0xd6):return _0x46898e[_0x15739d(0xaf)];}}}
23
+ const _0x244c43=_0x92e2;(function(_0x17f7d1,_0x20933c){const _0x34193c=_0x92e2,_0x19d42d=_0x17f7d1();while(!![]){try{const _0x1e745f=parseInt(_0x34193c(0x16d))/0x1*(-parseInt(_0x34193c(0x178))/0x2)+parseInt(_0x34193c(0x1a8))/0x3+parseInt(_0x34193c(0x179))/0x4+-parseInt(_0x34193c(0x1a1))/0x5*(-parseInt(_0x34193c(0x1a0))/0x6)+parseInt(_0x34193c(0x16c))/0x7*(-parseInt(_0x34193c(0x181))/0x8)+parseInt(_0x34193c(0x172))/0x9*(-parseInt(_0x34193c(0x17c))/0xa)+parseInt(_0x34193c(0x188))/0xb*(parseInt(_0x34193c(0x1ae))/0xc);if(_0x1e745f===_0x20933c)break;else _0x19d42d['push'](_0x19d42d['shift']());}catch(_0x1224bd){_0x19d42d['push'](_0x19d42d['shift']());}}}(_0x3727,0xc0089));import{default as _0x15f73e}from'./aitextadapter.js';import{AIRequestError as _0x2d1a9d}from'./aiadapter.js';function _0x3727(){const _0xb5febb=['_processAWSRequest','1640022SHEQCz','5qPaaaA','toString','signal','_processProxyRequest','read','generations','get','2555208LKztzt','AWSTextAdapter','join','_prepareRequestHeaders','config','parse','20424tcmyNA','completions','_getGeneratedText','application/json','ai.aws.requestParameters','send','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.','sendRequest','filter','Human:\x0a','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.bedrockClientConfig','meta.llama','POST','length','body','anthropic.claude-v2','data','preparePrompt','8950718kOMRIU','1481UyMuYF','locale','getReader','_bedrockClientConfig','ai.aws.requestHeaders','82791QzilvT','define','getModelFamily','ai21.j2','bytes','ai.aws.apiUrl','186sahcdP','5768704CugKeX','split','_readAsyncIterableResponse','470gjKQTf','bedrock-2023-05-31','pluginName','AI_ERROR_UNSUPPORTED_MODEL','Instruction:\x0a','8BxmrOZ','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','\x0a[/INST]','_prepareRequestParameters','_readStreamableResponse','440TDPiZp','\x0a\x0aAssistant:','from','abortController','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_requestParameters','editor','resolve','completion','json','decode','text','generation','utf8','chunk','_requestHeaders','<<SYS>>\x0a','map','anthropic.claude','_apiUrl','cohere.command','test','stringify'];_0x3727=function(){return _0xb5febb;};return _0x3727();}function _0x92e2(_0x43a2e4,_0xb8f280){const _0x372760=_0x3727();return _0x92e2=function(_0x92e2f,_0x5c4b77){_0x92e2f=_0x92e2f-0x167;let _0x5d4126=_0x372760[_0x92e2f];return _0x5d4126;},_0x92e2(_0x43a2e4,_0xb8f280);}import{BedrockRuntimeClient as _0x423077,InvokeModelCommand as _0x381b8f,InvokeModelWithResponseStreamCommand as _0x4c5066}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x44d52a}from'../utils/common-translations.js';export default class Y extends _0x15f73e{static get[_0x244c43(0x17e)](){const _0x31fbd=_0x244c43;return _0x31fbd(0x1a9);}constructor(_0x245586){const _0x372221=_0x244c43;super(_0x245586),_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2))||_0x245586[_0x372221(0x1ac)][_0x372221(0x173)](_0x372221(0x1b2),{'model':_0x372221(0x169),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x372221(0x17d),'stream':!0x0}),this[_0x372221(0x19b)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x177)),this[_0x372221(0x170)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b9)),this[_0x372221(0x197)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x171)),this[_0x372221(0x18d)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2));}async[_0x244c43(0x1b5)]({query:_0x35f619,context:_0x1fa0c4,onData:_0x5830cd,actionId:_0x21a538}){const _0x1b677b=_0x244c43,{model:_0x48094c,stream:_0x191480,..._0x337482}=await this[_0x1b677b(0x186)](this[_0x1b677b(0x18d)],_0x21a538),_0x5d8108={'prompt':await this[_0x1b677b(0x16b)](_0x35f619,_0x1fa0c4,_0x48094c,_0x21a538),..._0x337482};this[_0x1b677b(0x19b)]?await this[_0x1b677b(0x1a4)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd,_0x21a538):await this[_0x1b677b(0x19f)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd);}async[_0x244c43(0x16b)](_0x3b0007,_0x25a089,_0x12fbb9,_0x5c3046){const _0x1aa45b=_0x244c43;let _0x54c6b3,_0x1ae852;return _0x25a089?(_0x54c6b3=_0x1aa45b(0x1b4),_0x1ae852=_0x1aa45b(0x180)+_0x3b0007+_0x1aa45b(0x1b8)+_0x25a089):(_0x54c6b3=_0x1aa45b(0x18c),_0x1ae852=_0x3b0007),_0x1aa45b(0x1ba)==this[_0x1aa45b(0x174)](_0x12fbb9)?_0x1aa45b(0x198)+_0x54c6b3+_0x1aa45b(0x183)+_0x1ae852+_0x1aa45b(0x185):_0x1aa45b(0x1b7)+_0x54c6b3+'\x0a'+_0x1ae852+_0x1aa45b(0x189);}[_0x244c43(0x174)](_0x4a4d41){const _0x2d43c4=_0x244c43;if(/^anthropic\.claude/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19a);if(/^ai21\.j2/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x175);if(/^cohere\.command/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19c);if(/^meta\.llama/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x1ba);throw new _0x2d1a9d(_0x44d52a(this[_0x2d43c4(0x18e)][_0x2d43c4(0x16e)],_0x2d43c4(0x17f),_0x4a4d41));}async[_0x244c43(0x1a4)](_0x3bc5af,_0x217332,_0x4c9443,_0xa040b5,_0x36e79b){const _0x56d589=_0x244c43,_0x90a180={'method':_0x56d589(0x1bb),'headers':await this[_0x56d589(0x1ab)](this[_0x56d589(0x197)],_0x36e79b),'body':JSON[_0x56d589(0x19e)]({..._0x3bc5af,'model':_0x217332,'stream':_0x4c9443}),'signal':this[_0x56d589(0x18b)][_0x56d589(0x1a3)]},_0x3da64c=await fetch(this[_0x56d589(0x19b)],_0x90a180);_0x4c9443?await this[_0x56d589(0x187)](_0x3da64c,_0x217332,_0xa040b5):await this[_0x56d589(0x184)](_0x3da64c,_0x217332,_0xa040b5);}async[_0x244c43(0x19f)](_0x3510f6,_0x18cdb9,_0x3cca76,_0x3b1fad){const _0x65ccf2=_0x244c43,_0x21d6c9=new _0x423077(this[_0x65ccf2(0x170)]),_0x4985fa={'body':JSON[_0x65ccf2(0x19e)](_0x3510f6),'contentType':_0x65ccf2(0x1b1),'accept':_0x65ccf2(0x1b1),'modelId':_0x18cdb9};let _0x31454a;if(_0x3cca76){const _0x293f19=new _0x4c5066(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x293f19,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x17b)](_0x31454a,_0x18cdb9,_0x3b1fad);}else{const _0x15474b=new _0x381b8f(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x15474b,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x184)](_0x31454a,_0x18cdb9,_0x3b1fad);}}async[_0x244c43(0x17b)](_0x22db5f,_0x17336c,_0x4527d2){const _0x493ad7=_0x244c43,_0x3a33fb=_0x22db5f[_0x493ad7(0x168)],_0x583999=new TextDecoder(_0x493ad7(0x182));let _0xf23c44='';for await(const _0x4a97fc of _0x3a33fb)if(_0x4a97fc[_0x493ad7(0x196)]){const _0x1d800f=_0x583999[_0x493ad7(0x192)](_0x4a97fc[_0x493ad7(0x196)][_0x493ad7(0x176)]),_0x93127d=JSON[_0x493ad7(0x1ad)](_0x1d800f);_0xf23c44+=this[_0x493ad7(0x1b0)](_0x93127d,_0x17336c),_0x4527d2(_0xf23c44);}return Promise[_0x493ad7(0x18f)]();}async[_0x244c43(0x187)](_0x28746a,_0x5a26ba,_0x441d0a){const _0x371d4c=_0x244c43,_0x4ee60c=_0x28746a[_0x371d4c(0x168)],_0x4c80bb=new TextDecoder(_0x371d4c(0x182)),_0x254bdb=_0x4ee60c[_0x371d4c(0x16f)]();let _0x8e2381='',_0x1ea0da='',_0x5c3735=!0x1;for(;!_0x5c3735;){const {done:_0x2c56bc,value:_0x3ea015}=await _0x254bdb[_0x371d4c(0x1a5)]();if(_0x5c3735=_0x2c56bc,_0x5c3735)break;const _0x2234dc=(_0x8e2381+_0x4c80bb[_0x371d4c(0x192)](_0x3ea015))[_0x371d4c(0x17a)]('\x0a')[_0x371d4c(0x199)](_0x361050=>{const _0x14afb3=_0x371d4c;try{return _0x8e2381='',JSON[_0x14afb3(0x1ad)](_0x361050);}catch(_0xf86fdb){return _0x8e2381=_0x361050,null;}})[_0x371d4c(0x1b6)](_0x49ca3a=>null!==_0x49ca3a);_0x2234dc[_0x371d4c(0x167)]&&(_0x1ea0da+=_0x2234dc[_0x371d4c(0x199)](_0x3dadf6=>this[_0x371d4c(0x1b0)](_0x3dadf6,_0x5a26ba))[_0x371d4c(0x1aa)](''),_0x441d0a(_0x1ea0da));}return Promise[_0x371d4c(0x18f)]();}async[_0x244c43(0x184)](_0x1498e2,_0x59cde9,_0x4da43d){const _0x41985b=_0x244c43;let _0x534155;return _0x534155=_0x1498e2 instanceof Response?await _0x1498e2[_0x41985b(0x191)]():JSON[_0x41985b(0x1ad)](Buffer[_0x41985b(0x18a)](_0x1498e2[_0x41985b(0x168)])[_0x41985b(0x1a2)](_0x41985b(0x195))),(_0x4da43d(this[_0x41985b(0x1b0)](_0x534155,_0x59cde9)),Promise[_0x41985b(0x18f)]());}[_0x244c43(0x1b0)](_0x30cade,_0x33afd9){const _0x4c3ae8=_0x244c43;switch(this[_0x4c3ae8(0x174)](_0x33afd9)){case _0x4c3ae8(0x19a):return _0x30cade[_0x4c3ae8(0x190)];case _0x4c3ae8(0x175):return _0x30cade[_0x4c3ae8(0x1af)][0x0][_0x4c3ae8(0x16a)][_0x4c3ae8(0x193)];case _0x4c3ae8(0x19c):return _0x30cade[_0x4c3ae8(0x1a6)][0x0][_0x4c3ae8(0x193)];case _0x4c3ae8(0x1ba):return _0x30cade[_0x4c3ae8(0x194)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c5cf6=_0x29fb;(function(_0x53a11d,_0x3a5537){const _0x1635bf=_0x29fb,_0x29e98a=_0x53a11d();while(!![]){try{const _0x57b34d=-parseInt(_0x1635bf(0x132))/0x1+-parseInt(_0x1635bf(0x167))/0x2+-parseInt(_0x1635bf(0x164))/0x3+parseInt(_0x1635bf(0x141))/0x4+-parseInt(_0x1635bf(0x13b))/0x5*(-parseInt(_0x1635bf(0x151))/0x6)+parseInt(_0x1635bf(0x147))/0x7*(-parseInt(_0x1635bf(0x14f))/0x8)+parseInt(_0x1635bf(0x15d))/0x9;if(_0x57b34d===_0x3a5537)break;else _0x29e98a['push'](_0x29e98a['shift']());}catch(_0x1850b3){_0x29e98a['push'](_0x29e98a['shift']());}}}(_0x1d0a,0xf1b5b));import{default as _0x3c13da}from'./aitextadapter.js';function _0x29fb(_0x619b63,_0x4180d5){const _0x1d0aaa=_0x1d0a();return _0x29fb=function(_0x29fbd3,_0xddf0fd){_0x29fbd3=_0x29fbd3-0x12c;let _0x12ffae=_0x1d0aaa[_0x29fbd3];return _0x12ffae;},_0x29fb(_0x619b63,_0x4180d5);}function _0x1d0a(){const _0x2d1d3d=['_readStaticResponse','_cleanUpData','_prepareRequestHeaders','ai.openAI.requestHeaders','AI_ERROR_CONTEXT_LENGTH','resolve','join','_requestParameters','system','_isBufferIncomplete','data:\x20','gpt-3.5-turbo','signal','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.','https://api.openai.com/v1/chat/completions','91598PLLSBT','_prepareRequestParameters','decode','json','sendRequest','filter','replace','_requestHeaders','ai.openAI.requestParameters','5EkfmVR','ai.openAI.apiUrl','[DONE]','AI_ERROR_MODERATION','map','get','4828208pDSJZU','getReader','read','choices','config','length','2627275CIHlhf','stringify','locale','_apiUrl','body','prepareMessages','Instruction:\x0a','delta','8WwShcS','user','1644462mYZZhF','Moderation','split','parse','abortController','POST','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stream','OpenAITextAdapter','includes','reject','context_length_exceeded','15017553SkMoZr','editor','define','message','content','text','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.','1959846RFtqNL','_readStreamableResponse','pluginName','2078996rhhDdT'];_0x1d0a=function(){return _0x2d1d3d;};return _0x1d0a();}import{AIRequestError as _0x4698fc}from'./aiadapter.js';import{getTranslation as _0x1923d0}from'../utils/common-translations.js';export default class J extends _0x3c13da{static get[_0x3c5cf6(0x166)](){const _0x5e209d=_0x3c5cf6;return _0x5e209d(0x159);}constructor(_0x342998){const _0x5808b4=_0x3c5cf6;super(_0x342998),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13c),_0x5808b4(0x131)),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a))||_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13a),{'model':_0x5808b4(0x12e),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5808b4(0x14a)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13c)),this[_0x5808b4(0x139)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x16b))||{},this[_0x5808b4(0x16f)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a));}async[_0x3c5cf6(0x136)]({query:_0x1c4867,context:_0x4bef4e,onData:_0x11422a,actionId:_0x20090d}){const _0x425068=_0x3c5cf6,_0x12aad7=this[_0x425068(0x15e)][_0x425068(0x149)],_0x3e2703=await this[_0x425068(0x14c)](_0x1c4867,_0x4bef4e,_0x20090d),_0x5d833b=await this[_0x425068(0x16a)](this[_0x425068(0x139)],_0x20090d),_0x380439=await this[_0x425068(0x133)](this[_0x425068(0x16f)],_0x20090d),_0x28fc41={'messages':_0x3e2703,..._0x380439},_0x506aeb={'method':_0x425068(0x156),'headers':_0x5d833b,'body':JSON[_0x425068(0x148)](_0x28fc41),'signal':this[_0x425068(0x155)][_0x425068(0x12f)]},_0x473670=await fetch(this[_0x425068(0x14a)],_0x506aeb);if(_0x473670['ok'])return _0x380439[_0x425068(0x158)]?await this[_0x425068(0x165)](_0x473670,_0x11422a):await this[_0x425068(0x168)](_0x473670,_0x11422a),Promise[_0x425068(0x16d)]();{const _0x298e83=await _0x473670[_0x425068(0x162)]();return _0x298e83[_0x425068(0x15a)](_0x425068(0x15c))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x16c)))):_0x298e83[_0x425068(0x15a)](_0x425068(0x152))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x13e)))):Promise[_0x425068(0x15b)](new Error(_0x298e83));}}async[_0x3c5cf6(0x14c)](_0x3da497,_0x3053a5,_0x3330ce){const _0x18950d=_0x3c5cf6;let _0x2a9fa5,_0x5813c8;return _0x3053a5?(_0x2a9fa5=_0x18950d(0x130),_0x5813c8=_0x18950d(0x14d)+_0x3da497+_0x18950d(0x157)+_0x3053a5):(_0x2a9fa5=_0x18950d(0x163),_0x5813c8=_0x3da497),[{'role':_0x18950d(0x170),'content':_0x2a9fa5},{'role':_0x18950d(0x150),'content':_0x5813c8}];}async[_0x3c5cf6(0x165)](_0x57a9a6,_0x3d7804){const _0x45f9d6=_0x3c5cf6,_0xb8eea7=_0x57a9a6[_0x45f9d6(0x14b)][_0x45f9d6(0x142)](),_0x38a1b3=new TextDecoder();let _0x3e0b5c='',_0x1b46d7='',_0x18c698='',_0x24a03b=!0x1;for(;!_0x24a03b;){const {done:_0x442818,value:_0x20187c}=await _0xb8eea7[_0x45f9d6(0x143)](),_0x52e03e=_0x3e0b5c+_0x38a1b3[_0x45f9d6(0x134)](_0x20187c);let _0x567265='';_0x24a03b=_0x442818;try{_0x567265=this[_0x45f9d6(0x169)](_0x52e03e),_0x3e0b5c='';}catch(_0x1104ae){_0x3e0b5c=_0x52e03e;continue;}_0x1b46d7+=_0x567265,!_0x24a03b&&this[_0x45f9d6(0x12c)](_0x1b46d7)||_0x1b46d7&&(_0x18c698+=_0x1b46d7,_0x1b46d7='',_0x3d7804(_0x18c698));}return Promise[_0x45f9d6(0x16d)]();}async[_0x3c5cf6(0x168)](_0x5e17d5,_0x7be3e5){const _0x28d21c=_0x3c5cf6;return _0x7be3e5((await _0x5e17d5[_0x28d21c(0x135)]())[_0x28d21c(0x144)][0x0][_0x28d21c(0x160)][_0x28d21c(0x161)]),Promise[_0x28d21c(0x16d)]();}[_0x3c5cf6(0x12c)](_0x1ab25d){const _0x3c78e8=_0x3c5cf6,_0x191ca3=_0x1ab25d[_0x3c78e8(0x153)]('<')[_0x3c78e8(0x146)]!==_0x1ab25d[_0x3c78e8(0x153)]('>')[_0x3c78e8(0x146)],_0x39191c=_0x1ab25d[_0x3c78e8(0x146)]<0x1e;return _0x191ca3&&_0x39191c;}[_0x3c5cf6(0x169)](_0x32cf6e){const _0x676c8a=_0x3c5cf6;return _0x32cf6e[_0x676c8a(0x153)](/\n(?![^{]*\})/g)[_0x676c8a(0x13f)](_0x4ee395=>_0x4ee395[_0x676c8a(0x138)](_0x676c8a(0x12d),''))[_0x676c8a(0x137)](_0x2aae7d=>_0x2aae7d&&_0x2aae7d[_0x676c8a(0x146)]>0x0&&_0x676c8a(0x13d)!==_0x2aae7d)[_0x676c8a(0x13f)](_0x480db8=>{const _0x3116b3=_0x676c8a,{choices:_0xd5e13a}=JSON[_0x3116b3(0x154)](_0x480db8);if(_0xd5e13a[0x0]&&_0xd5e13a[0x0][_0x3116b3(0x14e)]&&_0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)])return _0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)];})[_0x676c8a(0x137)](_0x2d4396=>_0x2d4396)[_0x676c8a(0x16e)]('');}}
23
+ function _0x19d6(){const _0x4ef518=['5063049hdqLOZ','[DONE]','read','filter','json','4921384fOxjiH','locale','4qshiKK','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_MODERATION','OpenAITextAdapter','map','system','includes','32169kvyNiN','pluginName','body','config','stream','split','reject','user','parse','context_length_exceeded','_prepareRequestHeaders','decode','message','_requestHeaders','AI_ERROR_CONTEXT_LENGTH','gpt-3.5-turbo','ai.openAI.requestHeaders','get','Moderation','editor','choices','signal','https://api.openai.com/v1/chat/completions','replace','_readStreamableResponse','POST','7537166oQZehh','abortController','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','_apiUrl','647686ricEFp','join','sendRequest','1652514PsWRpy','_prepareRequestParameters','ai.openAI.apiUrl','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.','_requestParameters','delta','stringify','length','data:\x20','content','prepareMessages','_cleanUpData','_readStaticResponse','define','resolve','ai.openAI.requestParameters','708380NbObiy','32nagUfZ','Instruction:\x0a','text'];_0x19d6=function(){return _0x4ef518;};return _0x19d6();}const _0xec09ca=_0x4fbb;(function(_0x11fbf6,_0xb4b9b0){const _0x4461f1=_0x4fbb,_0x48898d=_0x11fbf6();while(!![]){try{const _0x47538c=-parseInt(_0x4461f1(0xe2))/0x1+-parseInt(_0x4461f1(0xbb))/0x2*(parseInt(_0x4461f1(0xc2))/0x3)+-parseInt(_0x4461f1(0xf6))/0x4*(-parseInt(_0x4461f1(0xf5))/0x5)+parseInt(_0x4461f1(0xe5))/0x6+parseInt(_0x4461f1(0xdc))/0x7+-parseInt(_0x4461f1(0xfe))/0x8+-parseInt(_0x4461f1(0xf9))/0x9;if(_0x47538c===_0xb4b9b0)break;else _0x48898d['push'](_0x48898d['shift']());}catch(_0x4c17f7){_0x48898d['push'](_0x48898d['shift']());}}}(_0x19d6,0x9beeb));import{default as _0x40184e}from'./aitextadapter.js';import{AIRequestError as _0x5f5527}from'./aiadapter.js';function _0x4fbb(_0xce578a,_0x321261){const _0x19d64a=_0x19d6();return _0x4fbb=function(_0x4fbb17,_0x176fc6){_0x4fbb17=_0x4fbb17-0xbb;let _0x10c7dd=_0x19d64a[_0x4fbb17];return _0x10c7dd;},_0x4fbb(_0xce578a,_0x321261);}import{getTranslation as _0x1b969f}from'../utils/common-translations.js';export default class J extends _0x40184e{static get[_0xec09ca(0xc3)](){const _0x30d27b=_0xec09ca;return _0x30d27b(0xbe);}constructor(_0xa2476a){const _0x1b00a4=_0xec09ca;super(_0xa2476a),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xe7),_0x1b00a4(0xd8)),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4))||_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xf4),{'model':_0x1b00a4(0xd1),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1b00a4(0xe1)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xe7)),this[_0x1b00a4(0xcf)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xd2))||{},this[_0x1b00a4(0xe9)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4));}async[_0xec09ca(0xe4)]({query:_0x2a5f5b,context:_0x8051a9,onData:_0x1aef71,actionId:_0x485ef5}){const _0x2eb98b=_0xec09ca,_0x176347=this[_0x2eb98b(0xd5)][_0x2eb98b(0xff)],_0x86fd8e=await this[_0x2eb98b(0xef)](_0x2a5f5b,_0x8051a9,_0x485ef5),_0x2deaea=await this[_0x2eb98b(0xcc)](this[_0x2eb98b(0xcf)],_0x485ef5),_0x192b4a=await this[_0x2eb98b(0xe6)](this[_0x2eb98b(0xe9)],_0x485ef5),_0x5e418e={'messages':_0x86fd8e,..._0x192b4a},_0xb7307f={'method':_0x2eb98b(0xdb),'headers':_0x2deaea,'body':JSON[_0x2eb98b(0xeb)](_0x5e418e),'signal':this[_0x2eb98b(0xdd)][_0x2eb98b(0xd7)]},_0x2a83a0=await fetch(this[_0x2eb98b(0xe1)],_0xb7307f);if(_0x2a83a0['ok'])return _0x192b4a[_0x2eb98b(0xc6)]?await this[_0x2eb98b(0xda)](_0x2a83a0,_0x1aef71):await this[_0x2eb98b(0xf1)](_0x2a83a0,_0x1aef71),Promise[_0x2eb98b(0xf3)]();{const _0x134b6f=await _0x2a83a0[_0x2eb98b(0xf8)]();return _0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xcb))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xd0)))):_0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xd4))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xbd)))):Promise[_0x2eb98b(0xc8)](new Error(_0x134b6f));}}async[_0xec09ca(0xef)](_0x580f32,_0x165124,_0x530539){const _0x3a4972=_0xec09ca;let _0x561ef4,_0x52f5b7;return _0x165124?(_0x561ef4=_0x3a4972(0xe8),_0x52f5b7=_0x3a4972(0xf7)+_0x580f32+_0x3a4972(0xdf)+_0x165124):(_0x561ef4=_0x3a4972(0xbc),_0x52f5b7=_0x580f32),[{'role':_0x3a4972(0xc0),'content':_0x561ef4},{'role':_0x3a4972(0xc9),'content':_0x52f5b7}];}async[_0xec09ca(0xda)](_0x113f23,_0x448bcd){const _0x4c8074=_0xec09ca,_0x666add=_0x113f23[_0x4c8074(0xc4)][_0x4c8074(0xde)](),_0x205bff=new TextDecoder();let _0x37cd27='',_0x4db665='',_0x32d910='',_0x4f00f9=!0x1;for(;!_0x4f00f9;){const {done:_0x3eac3f,value:_0x56a4ed}=await _0x666add[_0x4c8074(0xfb)](),_0x49e8a0=_0x37cd27+_0x205bff[_0x4c8074(0xcd)](_0x56a4ed);let _0x19f898='';_0x4f00f9=_0x3eac3f;try{_0x19f898=this[_0x4c8074(0xf0)](_0x49e8a0),_0x37cd27='';}catch(_0x3e1e55){_0x37cd27=_0x49e8a0;continue;}_0x4db665+=_0x19f898,!_0x4f00f9&&this[_0x4c8074(0xe0)](_0x4db665)||_0x4db665&&(_0x32d910+=_0x4db665,_0x4db665='',_0x448bcd(_0x32d910));}return Promise[_0x4c8074(0xf3)]();}async[_0xec09ca(0xf1)](_0x4c67d4,_0x4b9935){const _0x435e0b=_0xec09ca;return _0x4b9935((await _0x4c67d4[_0x435e0b(0xfd)]())[_0x435e0b(0xd6)][0x0][_0x435e0b(0xce)][_0x435e0b(0xee)]),Promise[_0x435e0b(0xf3)]();}[_0xec09ca(0xe0)](_0x20ce88){const _0x25a4b4=_0xec09ca,_0x22b2b1=_0x20ce88[_0x25a4b4(0xc7)]('<')[_0x25a4b4(0xec)]!==_0x20ce88[_0x25a4b4(0xc7)]('>')[_0x25a4b4(0xec)],_0x6423d0=_0x20ce88[_0x25a4b4(0xec)]<0x1e;return _0x22b2b1&&_0x6423d0;}[_0xec09ca(0xf0)](_0xa39ca5){const _0x3ac87f=_0xec09ca;return _0xa39ca5[_0x3ac87f(0xc7)](/\n(?![^{]*\})/g)[_0x3ac87f(0xbf)](_0x37d102=>_0x37d102[_0x3ac87f(0xd9)](_0x3ac87f(0xed),''))[_0x3ac87f(0xfc)](_0x482878=>_0x482878&&_0x482878[_0x3ac87f(0xec)]>0x0&&_0x3ac87f(0xfa)!==_0x482878)[_0x3ac87f(0xbf)](_0x9f3e6a=>{const _0x1338f3=_0x3ac87f,{choices:_0x26f792}=JSON[_0x1338f3(0xca)](_0x9f3e6a);if(_0x26f792[0x0]&&_0x26f792[0x0][_0x1338f3(0xea)]&&_0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)])return _0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)];})[_0x3ac87f(0xfc)](_0x2cdf3d=>_0x2cdf3d)[_0x3ac87f(0xe3)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb84113=_0x106c;(function(_0x4c5119,_0x37e155){const _0xb01826=_0x106c,_0x47c1d1=_0x4c5119();while(!![]){try{const _0x23e158=parseInt(_0xb01826(0x25a))/0x1+parseInt(_0xb01826(0x259))/0x2+-parseInt(_0xb01826(0x202))/0x3+-parseInt(_0xb01826(0x1f5))/0x4+-parseInt(_0xb01826(0x217))/0x5*(-parseInt(_0xb01826(0x24f))/0x6)+-parseInt(_0xb01826(0x226))/0x7+-parseInt(_0xb01826(0x23d))/0x8*(-parseInt(_0xb01826(0x256))/0x9);if(_0x23e158===_0x37e155)break;else _0x47c1d1['push'](_0x47c1d1['shift']());}catch(_0x52b479){_0x47c1d1['push'](_0x47c1d1['shift']());}}}(_0x1654,0x97f1f));import{CKEditorError as _0xb67b1d}from'ckeditor5/src/utils.js';import{Plugin as _0x2d3938}from'ckeditor5/src/core.js';function _0x1654(){const _0xe677f7=['Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate','Arabic','changeStyle','Confident','aiLicenseKeyTrial','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateChinese','info','pluginName','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translate','aiLicenseKeyInvalid','Direct','continue','Translate\x20the\x20content\x20to\x20English\x20language.','translateGerman','7365nEIXMH','destroy','English','ai.aiAssistant.extraCommandGroups','German','requires','summarize','Continue','define','translateSpanish','push','legal','Improve\x20writing','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','2202284liUGrv','business','direct','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','_licenseKeyCheckInterval','casual','Change\x20tone','find','Translate\x20to\x20%0','Edit\x20or\x20review','Business','Poetic','config','Change\x20style','groupId','Generate\x20from\x20selection','get','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Legal','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','56VbgDVz','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Journalism','Simplified\x20Chinese','changeTone','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','journalism','editOrReview','translatePortuguese','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.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Professional','confident','translateArabic','makeShorter','licenseKey','Hindi','2844jybIJL','Portuguese','translateEnglish','poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20German\x20language.','1047636XdAabi','Make\x20longer','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','1916842qwIkce','267395EvBlOe','forEach','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','commands','ai.aiAssistant.commands','professional','init','improveWriting','AIAssistant','Spanish','ai-trial-license-key-reached-limit-changes','concat','editor','translateHindi','locale','Make\x20shorter','Translate\x20the\x20content\x20to\x20Arabic\x20language.','set','simplifyLanguage','4679844zMxedq','French','ai.aiAssistant.removeCommands','aiLicenseKeyValid','ai-invalid-license-key','Casual','filter','generate','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','includes','makeLonger','friendly','Friendly','1895718avrhAl','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Simplify\x20language'];_0x1654=function(){return _0xe677f7;};return _0x1654();}import _0x220d18 from'./aiassistantui.js';function _0x106c(_0x25be7a,_0x1b7a77){const _0x1654fd=_0x1654();return _0x106c=function(_0x106c8f,_0x24c9cf){_0x106c8f=_0x106c8f-0x1e9;let _0x5ae804=_0x1654fd[_0x106c8f];return _0x5ae804;},_0x106c(_0x25be7a,_0x1b7a77);}import _0x15e8fd from'./aiassistantediting.js';import{getTranslation as _0x4f581c}from'./utils/common-translations.js';export default class r extends _0x2d3938{static get[_0xb84113(0x21c)](){return[_0x220d18,_0x15e8fd];}static get[_0xb84113(0x20f)](){const _0x2d9d6d=_0xb84113;return _0x2d9d6d(0x1ea);}constructor(_0x40ff16){const _0x1b4b6d=_0xb84113;super(_0x40ff16);const _0x1e78ec=_0x40ff16[_0x1b4b6d(0x233)];_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x25f),getDefaultCommands(_0x40ff16[_0x1b4b6d(0x1f0)])),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x21a),[]),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x1f7),[]);const _0x28f64e=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x25f)),_0x3ee190=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x21a)),_0x55a083=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x1f7));_0x3ee190[_0x1b4b6d(0x25b)](_0x755add=>{const _0x1ed86a=_0x1b4b6d,_0xff30e8=_0x28f64e[_0x1ed86a(0x22e)](_0x3c4994=>_0x3c4994[_0x1ed86a(0x235)]===_0x755add[_0x1ed86a(0x235)]);_0xff30e8?_0xff30e8[_0x1ed86a(0x25e)]=_0xff30e8[_0x1ed86a(0x25e)][_0x1ed86a(0x1ed)](_0x755add[_0x1ed86a(0x25e)]):_0x28f64e[_0x1ed86a(0x221)](_0x755add);}),_0x28f64e[_0x1b4b6d(0x25b)](_0x28043c=>{const _0x4f054d=_0x1b4b6d;_0x28043c[_0x4f054d(0x25e)]=_0x28043c[_0x4f054d(0x25e)][_0x4f054d(0x1fb)](_0x434676=>!_0x55a083[_0x4f054d(0x1fe)](_0x434676['id']));}),_0x1e78ec[_0x1b4b6d(0x1f3)](_0x1b4b6d(0x25f),_0x28f64e);}[_0xb84113(0x261)](){const _0x16caf1=_0xb84113,_0x4d7ad0=this[_0x16caf1(0x1ee)];this[_0x16caf1(0x24d)]=_0x4d7ad0[_0x16caf1(0x233)][_0x16caf1(0x237)](_0x16caf1(0x24d)),this[_0x16caf1(0x22b)]=setInterval(()=>{const _0x242200=_0x16caf1;let _0x1e2b02;for(const _0x563eb7 in _0x4d7ad0){const _0x19d565=_0x563eb7,_0x3a1ac7=_0x4d7ad0[_0x19d565];if(_0x242200(0x20b)===_0x3a1ac7||_0x242200(0x212)===_0x3a1ac7||_0x242200(0x1f8)===_0x3a1ac7||_0x242200(0x254)===_0x3a1ac7){delete _0x4d7ad0[_0x19d565],_0x1e2b02=_0x3a1ac7;break;}}if(_0x242200(0x212)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1f9),null);if(_0x242200(0x20b)===_0x1e2b02&&console[_0x242200(0x20e)](_0x242200(0x247)),_0x242200(0x254)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1ec),null);_0x242200(0x1f8)===_0x1e2b02&&clearInterval(this[_0x242200(0x22b)]);},0x3e8);}[_0xb84113(0x218)](){const _0x2bc952=_0xb84113;this[_0x2bc952(0x22b)]&&clearInterval(this[_0x2bc952(0x22b)]);}}export function getDefaultCommands(_0x2d6f64){const _0x4b77da=_0xb84113;return[{'groupId':_0x4b77da(0x245),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x230)),'commands':[{'id':_0x4b77da(0x1e9),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x223)),'prompt':_0x4b77da(0x243)},{'id':_0x4b77da(0x24c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1f1)),'prompt':_0x4b77da(0x203)},{'id':_0x4b77da(0x1ff),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x257)),'prompt':_0x4b77da(0x248)},{'id':_0x4b77da(0x1f4),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x205)),'prompt':_0x4b77da(0x1fd)}]},{'groupId':_0x4b77da(0x1fc),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x236)),'commands':[{'id':_0x4b77da(0x21d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x25c)),'prompt':_0x4b77da(0x258)},{'id':_0x4b77da(0x214),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x21e)),'prompt':_0x4b77da(0x22a)}]},{'groupId':_0x4b77da(0x241),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x22d)),'commands':[{'id':_0x4b77da(0x260),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x249)),'prompt':_0x4b77da(0x23e)},{'id':_0x4b77da(0x22c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1fa)),'prompt':_0x4b77da(0x23a)},{'id':_0x4b77da(0x228),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x213)),'prompt':_0x4b77da(0x210)},{'id':_0x4b77da(0x24a),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x20a)),'prompt':_0x4b77da(0x20c)},{'id':_0x4b77da(0x200),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x201)),'prompt':_0x4b77da(0x25d)}]},{'groupId':_0x4b77da(0x209),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x234)),'commands':[{'id':_0x4b77da(0x227),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x231)),'prompt':_0x4b77da(0x253)},{'id':_0x4b77da(0x222),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23b)),'prompt':_0x4b77da(0x242)},{'id':_0x4b77da(0x244),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23f)),'prompt':_0x4b77da(0x239)},{'id':_0x4b77da(0x252),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x232)),'prompt':_0x4b77da(0x229)}]},{'groupId':_0x4b77da(0x211),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x207)),'commands':[{'id':_0x4b77da(0x251),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x219))]),'prompt':_0x4b77da(0x215)},{'id':_0x4b77da(0x220),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1eb))]),'prompt':_0x4b77da(0x204)},{'id':_0x4b77da(0x246),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x250))]),'prompt':_0x4b77da(0x23c)},{'id':_0x4b77da(0x216),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x21b))]),'prompt':_0x4b77da(0x255)},{'id':_0x4b77da(0x238),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1f6))]),'prompt':_0x4b77da(0x225)},{'id':_0x4b77da(0x20d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x240))]),'prompt':_0x4b77da(0x224)},{'id':_0x4b77da(0x1ef),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x24e))]),'prompt':_0x4b77da(0x206)},{'id':_0x4b77da(0x24b),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x208))]),'prompt':_0x4b77da(0x1f2)}]}];}
23
+ const _0x1200b9=_0x28d2;(function(_0x1d6431,_0x357055){const _0x4f0ec7=_0x28d2,_0x16cb78=_0x1d6431();while(!![]){try{const _0x2cfbd9=parseInt(_0x4f0ec7(0x198))/0x1+-parseInt(_0x4f0ec7(0x1c7))/0x2+-parseInt(_0x4f0ec7(0x1a4))/0x3*(-parseInt(_0x4f0ec7(0x1bd))/0x4)+parseInt(_0x4f0ec7(0x185))/0x5*(-parseInt(_0x4f0ec7(0x19a))/0x6)+parseInt(_0x4f0ec7(0x19e))/0x7+parseInt(_0x4f0ec7(0x1a8))/0x8+parseInt(_0x4f0ec7(0x1a0))/0x9;if(_0x2cfbd9===_0x357055)break;else _0x16cb78['push'](_0x16cb78['shift']());}catch(_0x4b86e4){_0x16cb78['push'](_0x16cb78['shift']());}}}(_0x4273,0x3c739));import{CKEditorError as _0xfb9b8e}from'ckeditor5/src/utils.js';import{Plugin as _0x5bcb2e}from'ckeditor5/src/core.js';import _0x232d62 from'./aiassistantui.js';import _0x50041a from'./aiassistantediting.js';import{getTranslation as _0x4bd074}from'./utils/common-translations.js';function _0x28d2(_0x25a4b1,_0x52acd4){const _0x427366=_0x4273();return _0x28d2=function(_0x28d21b,_0x533477){_0x28d21b=_0x28d21b-0x17c;let _0x17f234=_0x427366[_0x28d21b];return _0x17f234;},_0x28d2(_0x25a4b1,_0x52acd4);}export default class r extends _0x5bcb2e{static get[_0x1200b9(0x17f)](){return[_0x232d62,_0x50041a];}static get[_0x1200b9(0x183)](){const _0x584cd1=_0x1200b9;return _0x584cd1(0x1cc);}constructor(_0x48b913){const _0x41f432=_0x1200b9;super(_0x48b913);const _0x309427=_0x48b913[_0x41f432(0x1c3)];_0x309427[_0x41f432(0x18b)](_0x41f432(0x1f4),getDefaultCommands(_0x48b913[_0x41f432(0x19b)])),_0x309427[_0x41f432(0x18b)](_0x41f432(0x1db),[]),_0x309427[_0x41f432(0x18b)](_0x41f432(0x19d),[]);const _0x17d08f=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1f4)),_0x3fa650=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1db)),_0x4883da=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x19d));_0x3fa650[_0x41f432(0x1d0)](_0x4182da=>{const _0x5a3466=_0x41f432,_0x105f3e=_0x17d08f[_0x5a3466(0x1bb)](_0x1bb1e3=>_0x1bb1e3[_0x5a3466(0x1be)]===_0x4182da[_0x5a3466(0x1be)]);_0x105f3e?_0x105f3e[_0x5a3466(0x190)]=_0x105f3e[_0x5a3466(0x190)][_0x5a3466(0x1e0)](_0x4182da[_0x5a3466(0x190)]):_0x17d08f[_0x5a3466(0x1c8)](_0x4182da);}),_0x17d08f[_0x41f432(0x1d0)](_0x2172b1=>{const _0x10d985=_0x41f432;_0x2172b1[_0x10d985(0x190)]=_0x2172b1[_0x10d985(0x190)][_0x10d985(0x1ec)](_0x22caa7=>!_0x4883da[_0x10d985(0x1b7)](_0x22caa7['id']));}),_0x309427[_0x41f432(0x1e3)](_0x41f432(0x1f4),_0x17d08f);}[_0x1200b9(0x18a)](){const _0x23a20a=_0x1200b9,_0x584e7c=this[_0x23a20a(0x197)];this[_0x23a20a(0x17e)]=_0x584e7c[_0x23a20a(0x1c3)][_0x23a20a(0x1ee)](_0x23a20a(0x17e)),this[_0x23a20a(0x1cd)]=setInterval(()=>{const _0x5b32f8=_0x23a20a;let _0x461e6d;for(const _0x5cc777 in _0x584e7c){const _0x4a415f=_0x5cc777,_0xaff745=_0x584e7c[_0x4a415f];if(_0x5b32f8(0x1b4)===_0xaff745||_0x5b32f8(0x1a6)===_0xaff745||_0x5b32f8(0x1e4)===_0xaff745||_0x5b32f8(0x187)===_0xaff745){delete _0x584e7c[_0x4a415f],_0x461e6d=_0xaff745;break;}}if(_0x5b32f8(0x1a6)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1d8),null);if(_0x5b32f8(0x1b4)===_0x461e6d&&console[_0x5b32f8(0x1ae)](_0x5b32f8(0x1c1)),_0x5b32f8(0x187)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1b3),null);_0x5b32f8(0x1e4)===_0x461e6d&&clearInterval(this[_0x5b32f8(0x1cd)]);},0x3e8);}[_0x1200b9(0x1a9)](){const _0x5bc6d0=_0x1200b9;this[_0x5bc6d0(0x1cd)]&&clearInterval(this[_0x5bc6d0(0x1cd)]);}}function _0x4273(){const _0x2395da=['translateArabic','93IQaeyb','changeStyle','aiLicenseKeyInvalid','direct','1695184qzUlqy','destroy','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','confident','French','info','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','Hindi','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrial','summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2932VGgGdX','groupId','translateSpanish','professional','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.','improveWriting','config','translateEnglish','Direct','Spanish','345360CTAMNe','push','simplifyLanguage','Confident','Journalism','AIAssistant','_licenseKeyCheckInterval','casual','continue','forEach','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','Continue','Simplify\x20language','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','business','ai-invalid-license-key','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Arabic','poetic','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','concat','Change\x20style','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','set','aiLicenseKeyValid','makeShorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','German','Business','Improve\x20writing','Simplified\x20Chinese','filter','translateGerman','get','English','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.aiAssistant.commands','journalism','generate','licenseKey','requires','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','changeTone','pluginName','Generate\x20from\x20selection','11185DaPhDw','Make\x20longer','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20French\x20language.','init','define','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','commands','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Summarize','Legal','translateFrench','editor','92190KANjPr','Professional','942bLSDqD','locale','Make\x20shorter','ai.aiAssistant.removeCommands','1964732agVCEI','editOrReview','1476099evvYfo','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger'];_0x4273=function(){return _0x2395da;};return _0x4273();}export function getDefaultCommands(_0x36bdd8){const _0x2fc30f=_0x1200b9;return[{'groupId':_0x2fc30f(0x19f),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d6)),'commands':[{'id':_0x2fc30f(0x1c2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ea)),'prompt':_0x2fc30f(0x1d5)},{'id':_0x2fc30f(0x1e5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x19c)),'prompt':_0x2fc30f(0x1df)},{'id':_0x2fc30f(0x1a2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x186)),'prompt':_0x2fc30f(0x1b8)},{'id':_0x2fc30f(0x1c9),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d4)),'prompt':_0x2fc30f(0x180)}]},{'groupId':_0x2fc30f(0x17d),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x184)),'commands':[{'id':_0x2fc30f(0x1b5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x194)),'prompt':_0x2fc30f(0x1b9)},{'id':_0x2fc30f(0x1cf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d3)),'prompt':_0x2fc30f(0x1e2)}]},{'groupId':_0x2fc30f(0x182),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x18d)),'commands':[{'id':_0x2fc30f(0x1c0),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x199)),'prompt':_0x2fc30f(0x1f1)},{'id':_0x2fc30f(0x1ce),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x193)),'prompt':_0x2fc30f(0x18f)},{'id':_0x2fc30f(0x1a7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c5)),'prompt':_0x2fc30f(0x1d1)},{'id':_0x2fc30f(0x1ac),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ca)),'prompt':_0x2fc30f(0x1af)},{'id':_0x2fc30f(0x181),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d9)),'prompt':_0x2fc30f(0x1b6)}]},{'groupId':_0x2fc30f(0x1a5),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e1)),'commands':[{'id':_0x2fc30f(0x1d7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e9)),'prompt':_0x2fc30f(0x1da)},{'id':_0x2fc30f(0x1b1),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x195)),'prompt':_0x2fc30f(0x188)},{'id':_0x2fc30f(0x17c),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1cb)),'prompt':_0x2fc30f(0x18c)},{'id':_0x2fc30f(0x1dd),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e7)),'prompt':_0x2fc30f(0x192)}]},{'groupId':_0x2fc30f(0x18e),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ba)),'commands':[{'id':_0x2fc30f(0x1c4),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ef))]),'prompt':_0x2fc30f(0x1ab)},{'id':_0x2fc30f(0x1bf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c6))]),'prompt':_0x2fc30f(0x1bc)},{'id':_0x2fc30f(0x1aa),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1f0))]),'prompt':_0x2fc30f(0x1e6)},{'id':_0x2fc30f(0x1ed),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e8))]),'prompt':_0x2fc30f(0x1de)},{'id':_0x2fc30f(0x196),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ad))]),'prompt':_0x2fc30f(0x189)},{'id':_0x2fc30f(0x1d2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1eb))]),'prompt':_0x2fc30f(0x1b0)},{'id':_0x2fc30f(0x1f2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1b2))]),'prompt':_0x2fc30f(0x1a1)},{'id':_0x2fc30f(0x1a3),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1dc))]),'prompt':_0x2fc30f(0x1f3)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d7e46=_0x3707;(function(_0x175ca2,_0x94f1c5){const _0x24a31a=_0x3707,_0x77aa77=_0x175ca2();while(!![]){try{const _0x4b1b96=parseInt(_0x24a31a(0x9f))/0x1*(parseInt(_0x24a31a(0xb1))/0x2)+parseInt(_0x24a31a(0xc5))/0x3+parseInt(_0x24a31a(0xb8))/0x4+-parseInt(_0x24a31a(0xa8))/0x5+-parseInt(_0x24a31a(0xc9))/0x6+parseInt(_0x24a31a(0xa0))/0x7*(-parseInt(_0x24a31a(0xd7))/0x8)+parseInt(_0x24a31a(0xbb))/0x9;if(_0x4b1b96===_0x94f1c5)break;else _0x77aa77['push'](_0x77aa77['shift']());}catch(_0x19e961){_0x77aa77['push'](_0x77aa77['shift']());}}}(_0x3eda,0xeaf5c));function _0x3707(_0x697853,_0x41c0d7){const _0x3eda83=_0x3eda();return _0x3707=function(_0x370730,_0x25d753){_0x370730=_0x370730-0x98;let _0x14f81d=_0x3eda83[_0x370730];return _0x14f81d;},_0x3707(_0x697853,_0x41c0d7);}import{Plugin as _0x4d10e8}from'ckeditor5/src/core.js';function _0x3eda(){const _0x4dd71f=['data','ck-fake-ai-selection-candidate','getLastPosition','addMarker','conversion','end','createPositionAfter','createRange','4202034bVdTij','start','markerToHighlight','editingDowncast','2760972KbmUgQ','schema','markers','createSelection','markerToElement','ck-ai-assistant-ui_theme','processor','getLastMatchingPosition','ai.useTheme','get','ai-ui','isContent','change','pluginName','93768CNCsAA','getSelectedBlocks','showFakeVisualSelection','getFirstRange','isAtEnd','selection','removeMarker','model','9rSsvzQ','791WZxcjn','insertContent','toModel','editor','from','ai-ui-candidate','span','document','6098585HptjDD','init','pop','setSelection','has','config','push','AIAssistantEditing','canEditAt','13452LmddoK','hideFakeVisualSelection','insertContentBelow','getRange','updateMarker','length','ck-fake-ai-selection','174220JByQzs','ck-fake-ai-selection_collapsed','for','22157829Vtzcus','toView'];_0x3eda=function(){return _0x4dd71f;};return _0x3eda();}const s=_0x5d7e46(0xd3),c=_0x5d7e46(0xa5);export default class i extends _0x4d10e8{static get[_0x5d7e46(0xd6)](){const _0xe16eb6=_0x5d7e46;return _0xe16eb6(0xaf);}[_0x5d7e46(0xa9)](){const _0x266c41=_0x5d7e46,{editor:_0x282631}=this,_0x4b6e49=[_0x266c41(0xb7)];_0x282631[_0x266c41(0xad)][_0x266c41(0xd2)](_0x266c41(0xd1))&&_0x4b6e49[_0x266c41(0xae)](_0x266c41(0xce)),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xc7)]({'model':s,'view':{'classes':_0x4b6e49,'priority':0xc}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xcd)]({'model':s,'view':{'name':_0x266c41(0xa6),'classes':[_0x266c41(0xb7),_0x266c41(0xb9)],'priority':0xc}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xc7)]({'model':c,'view':{'classes':[_0x266c41(0xbe)],'priority':0x19}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xcd)]({'model':c,'view':{'name':_0x266c41(0xa6),'classes':[_0x266c41(0xbe),_0x266c41(0xb9)],'priority':0x19}});}[_0x5d7e46(0x99)](_0x267e20){const _0x154b08=_0x5d7e46,_0x339112=this[_0x154b08(0xa3)][_0x154b08(0x9e)],_0x54d61c=_0x267e20?c:s;_0x339112[_0x154b08(0xd5)](_0x4fca53=>{const _0x1a59a8=_0x154b08,_0x2160ba=_0x339112[_0x1a59a8(0xa7)][_0x1a59a8(0x9c)][_0x1a59a8(0x9a)]();if(_0x339112[_0x1a59a8(0xcb)][_0x1a59a8(0xac)](_0x54d61c))_0x4fca53[_0x1a59a8(0xb5)](_0x54d61c,{'range':_0x2160ba});else{if(_0x2160ba[_0x1a59a8(0xc6)][_0x1a59a8(0x9b)]){const _0x308c50=_0x2160ba[_0x1a59a8(0xc6)][_0x1a59a8(0xd0)](({item:_0x56cf54})=>!_0x339112[_0x1a59a8(0xca)][_0x1a59a8(0xd4)](_0x56cf54),{'boundaries':_0x2160ba});_0x4fca53[_0x1a59a8(0xc0)](_0x54d61c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4fca53[_0x1a59a8(0xc4)](_0x308c50,_0x2160ba[_0x1a59a8(0xc2)])});}else _0x4fca53[_0x1a59a8(0xc0)](_0x54d61c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2160ba});}});}[_0x5d7e46(0xb2)](_0x43ba31){const _0x5d76ac=_0x5d7e46,_0xfa1c4=this[_0x5d76ac(0xa3)][_0x5d76ac(0x9e)],_0x48ee0a=_0x43ba31?c:s;_0xfa1c4[_0x5d76ac(0xcb)][_0x5d76ac(0xac)](_0x48ee0a)&&_0xfa1c4[_0x5d76ac(0xd5)](_0x38b92a=>{const _0x40eef5=_0x5d76ac;_0x38b92a[_0x40eef5(0x9d)](_0x48ee0a);});}[_0x5d7e46(0xa1)](_0xa0dd8d,_0x5e8ed7){const _0x382087=_0x5d7e46,_0x24161a=_0x5e8ed7||this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xcb)][_0x382087(0xd2)](s)[_0x382087(0xb4)]();if(!this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xb0)](_0x24161a))return;const _0x2403db=this[_0x382087(0xa3)][_0x382087(0xbd)][_0x382087(0xcf)][_0x382087(0xbc)](_0xa0dd8d),_0x5e5f8e=this[_0x382087(0xa3)][_0x382087(0xbd)][_0x382087(0xa2)](_0x2403db);this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xd5)](_0x3f29af=>{const _0x5591ff=_0x382087;this[_0x5591ff(0xb2)]();const _0x2d398b=this[_0x5591ff(0xa3)][_0x5591ff(0x9e)][_0x5591ff(0xa1)](_0x5e5f8e,_0x24161a);_0x2d398b&&_0x3f29af[_0x5591ff(0xab)](_0x2d398b);});}[_0x5d7e46(0xb3)](_0x586441){const _0x3ac770=_0x5d7e46,{model:_0x100803}=this[_0x3ac770(0xa3)],_0x3ec5e1=Array[_0x3ac770(0xa4)](_0x100803[_0x3ac770(0xcc)](this[_0x3ac770(0xa3)][_0x3ac770(0x9e)][_0x3ac770(0xcb)][_0x3ac770(0xd2)](s)[_0x3ac770(0xb4)]())[_0x3ac770(0x98)]()),_0x44b68d=_0x3ec5e1[_0x3ac770(0xb6)]?_0x100803[_0x3ac770(0xc3)](_0x3ec5e1[_0x3ac770(0xaa)]()):_0x100803[_0x3ac770(0xa7)][_0x3ac770(0x9c)][_0x3ac770(0xbf)]();this[_0x3ac770(0xa1)](_0x586441,_0x44b68d);}}
23
+ const _0x910cf9=_0x915e;function _0x915e(_0x4fdad9,_0xdb7876){const _0x527205=_0x5272();return _0x915e=function(_0x915eaa,_0x567291){_0x915eaa=_0x915eaa-0x7b;let _0x358996=_0x527205[_0x915eaa];return _0x358996;},_0x915e(_0x4fdad9,_0xdb7876);}(function(_0x437299,_0x9cc344){const _0x1c4ad7=_0x915e,_0x419e12=_0x437299();while(!![]){try{const _0x145f62=-parseInt(_0x1c4ad7(0xa9))/0x1*(parseInt(_0x1c4ad7(0xbd))/0x2)+parseInt(_0x1c4ad7(0xb1))/0x3*(parseInt(_0x1c4ad7(0xa6))/0x4)+parseInt(_0x1c4ad7(0xa2))/0x5*(-parseInt(_0x1c4ad7(0x8f))/0x6)+parseInt(_0x1c4ad7(0x84))/0x7*(parseInt(_0x1c4ad7(0xac))/0x8)+-parseInt(_0x1c4ad7(0x9c))/0x9*(-parseInt(_0x1c4ad7(0xae))/0xa)+-parseInt(_0x1c4ad7(0xb0))/0xb+-parseInt(_0x1c4ad7(0xa3))/0xc*(parseInt(_0x1c4ad7(0x80))/0xd);if(_0x145f62===_0x9cc344)break;else _0x419e12['push'](_0x419e12['shift']());}catch(_0x4b1e83){_0x419e12['push'](_0x419e12['shift']());}}}(_0x5272,0x789c8));import{Plugin as _0x4c492b}from'ckeditor5/src/core.js';const s=_0x910cf9(0x9d),c=_0x910cf9(0x99);export default class i extends _0x4c492b{static get[_0x910cf9(0x92)](){const _0x5d577c=_0x910cf9;return _0x5d577c(0xb4);}[_0x910cf9(0xaa)](){const _0x45bfda=_0x910cf9,{editor:_0x5f5b62}=this,_0x65c835=[_0x45bfda(0xa7)];_0x5f5b62[_0x45bfda(0xa5)][_0x45bfda(0x7f)](_0x45bfda(0x7c))&&_0x65c835[_0x45bfda(0xad)](_0x45bfda(0x88)),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0xb6)]({'model':s,'view':{'classes':_0x65c835,'priority':0xc}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0x95)]({'model':s,'view':{'name':_0x45bfda(0xbc),'classes':[_0x45bfda(0xa7),_0x45bfda(0xba)],'priority':0xc}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0xb6)]({'model':c,'view':{'classes':[_0x45bfda(0x8d)],'priority':0x19}}),_0x5f5b62[_0x45bfda(0x97)][_0x45bfda(0xa0)](_0x45bfda(0x94))[_0x45bfda(0x95)]({'model':c,'view':{'name':_0x45bfda(0xbc),'classes':[_0x45bfda(0x8d),_0x45bfda(0xba)],'priority':0x19}});}[_0x910cf9(0x7e)](_0x198e60){const _0x3bda50=_0x910cf9,_0x1251a5=this[_0x3bda50(0xaf)][_0x3bda50(0xab)],_0x3298e8=_0x198e60?c:s;_0x1251a5[_0x3bda50(0x85)](_0x50df05=>{const _0x1f0f91=_0x3bda50,_0x289def=_0x1251a5[_0x1f0f91(0x82)][_0x1f0f91(0x8a)][_0x1f0f91(0x96)]();if(_0x1251a5[_0x1f0f91(0x8b)][_0x1f0f91(0x8e)](_0x3298e8))_0x50df05[_0x1f0f91(0x86)](_0x3298e8,{'range':_0x289def});else{if(_0x289def[_0x1f0f91(0x93)][_0x1f0f91(0xb3)]){const _0x5b2d54=_0x289def[_0x1f0f91(0x93)][_0x1f0f91(0x8c)](({item:_0x43ba81})=>!_0x1251a5[_0x1f0f91(0x9f)][_0x1f0f91(0x83)](_0x43ba81),{'boundaries':_0x289def});_0x50df05[_0x1f0f91(0x81)](_0x3298e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x50df05[_0x1f0f91(0xa1)](_0x5b2d54,_0x289def[_0x1f0f91(0x91)])});}else _0x50df05[_0x1f0f91(0x81)](_0x3298e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x289def});}});}[_0x910cf9(0xb2)](_0x23da93){const _0x40b1ed=_0x910cf9,_0x4c2572=this[_0x40b1ed(0xaf)][_0x40b1ed(0xab)],_0x4b183d=_0x23da93?c:s;_0x4c2572[_0x40b1ed(0x8b)][_0x40b1ed(0x8e)](_0x4b183d)&&_0x4c2572[_0x40b1ed(0x85)](_0x3e3e65=>{const _0x46604b=_0x40b1ed;_0x3e3e65[_0x46604b(0xa4)](_0x4b183d);});}[_0x910cf9(0x9e)](_0xb757d0,_0x43a1f4){const _0x8b6e3e=_0x910cf9,_0x54b90a=_0x43a1f4||this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x8b)][_0x8b6e3e(0x7f)](s)[_0x8b6e3e(0xbb)]();if(!this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x87)](_0x54b90a))return;const _0x21ac24=this[_0x8b6e3e(0xaf)][_0x8b6e3e(0x90)][_0x8b6e3e(0xb7)][_0x8b6e3e(0x7b)](_0xb757d0),_0x5462b2=this[_0x8b6e3e(0xaf)][_0x8b6e3e(0x90)][_0x8b6e3e(0xbe)](_0x21ac24);this[_0x8b6e3e(0xaf)][_0x8b6e3e(0xab)][_0x8b6e3e(0x85)](_0x23e170=>{const _0x16c7aa=_0x8b6e3e;this[_0x16c7aa(0xb2)]();const _0x13f9e1=this[_0x16c7aa(0xaf)][_0x16c7aa(0xab)][_0x16c7aa(0x9e)](_0x5462b2,_0x54b90a);_0x13f9e1&&_0x23e170[_0x16c7aa(0x98)](_0x13f9e1);});}[_0x910cf9(0xb8)](_0x535ff4){const _0x306849=_0x910cf9,{model:_0x114e97}=this[_0x306849(0xaf)],_0x4ba056=Array[_0x306849(0x9a)](_0x114e97[_0x306849(0x89)](this[_0x306849(0xaf)][_0x306849(0xab)][_0x306849(0x8b)][_0x306849(0x7f)](s)[_0x306849(0xbb)]())[_0x306849(0x7d)]()),_0x29d4ed=_0x4ba056[_0x306849(0xa8)]?_0x114e97[_0x306849(0xb5)](_0x4ba056[_0x306849(0xb9)]()):_0x114e97[_0x306849(0x82)][_0x306849(0x8a)][_0x306849(0x9b)]();this[_0x306849(0x9e)](_0x535ff4,_0x29d4ed);}}function _0x5272(){const _0xd5e712=['2402742beugvc','data','end','pluginName','start','editingDowncast','markerToElement','getFirstRange','conversion','setSelection','ai-ui-candidate','from','getLastPosition','9qzkzDX','ai-ui','insertContent','schema','for','createRange','5craXBE','24DLAsWb','removeMarker','config','1052ucxOgF','ck-fake-ai-selection','length','267911KUmRaV','init','model','8IiUUlF','push','9581630ZzAtTV','editor','7584203NBrLTI','9537rxGELC','hideFakeVisualSelection','isAtEnd','AIAssistantEditing','createPositionAfter','markerToHighlight','processor','insertContentBelow','pop','ck-fake-ai-selection_collapsed','getRange','span','2gwIkpn','toModel','toView','ai.useTheme','getSelectedBlocks','showFakeVisualSelection','get','2224469NEfONT','addMarker','document','isContent','2798957SakASL','change','updateMarker','canEditAt','ck-ai-assistant-ui_theme','createSelection','selection','markers','getLastMatchingPosition','ck-fake-ai-selection-candidate','has'];_0x5272=function(){return _0xd5e712;};return _0x5272();}