@ckeditor/ckeditor5-ai 0.0.0-nightly-20240418.0 → 0.0.0-nightly-20240419.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "0.0.0-nightly-20240418.0",
3
+ "version": "0.0.0-nightly-20240419.0",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,10 +23,10 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "0.0.0-nightly-20240418.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240418.0",
26
+ "ckeditor5": "0.0.0-nightly-20240419.0",
27
+ "ckeditor5-collaboration": "0.0.0-nightly-20240419.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240418.0",
29
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240419.0",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x57966b=_0x4430;(function(_0x2e8b7b,_0x14fa2c){var _0x4e2430=_0x4430,_0x516383=_0x2e8b7b();while(!![]){try{var _0x9c7411=parseInt(_0x4e2430(0x149))/0x1+-parseInt(_0x4e2430(0x151))/0x2+parseInt(_0x4e2430(0x14e))/0x3+parseInt(_0x4e2430(0x14b))/0x4*(parseInt(_0x4e2430(0x14c))/0x5)+-parseInt(_0x4e2430(0x152))/0x6+parseInt(_0x4e2430(0x154))/0x7+parseInt(_0x4e2430(0x153))/0x8*(-parseInt(_0x4e2430(0x14f))/0x9);if(_0x9c7411===_0x14fa2c)break;else _0x516383['push'](_0x516383['shift']());}catch(_0x152c24){_0x516383['push'](_0x516383['shift']());}}}(_0xe27a,0xa8339));function _0xe27a(){var _0x50a545=['2472416fifqFZ','4815468GGikbe','1379736QGazke','7987532saFyVU','textAdapter','AIRequestError','AIAdapter','pluginName','1226715NabBYI','name','8MevtNR','2917610BIyFKt','afterInit','2235321HdSwkw','81oRkHNC','aiadapter-text-adapter-not-set'];_0xe27a=function(){return _0x50a545;};return _0xe27a();}import{Plugin as _0x55914b}from'ckeditor5/src/core.js';function _0x4430(_0x65a45,_0x31b433){var _0xe27ac2=_0xe27a();return _0x4430=function(_0x44302d,_0x354bec){_0x44302d=_0x44302d-0x145;var _0x32abc6=_0xe27ac2[_0x44302d];return _0x32abc6;},_0x4430(_0x65a45,_0x31b433);}import{CKEditorError as _0x4388f8}from'ckeditor5/src/utils.js';export default class y extends _0x55914b{static get[_0x57966b(0x148)](){var _0x39aaf9=_0x57966b;return _0x39aaf9(0x147);}[_0x57966b(0x14d)](){var _0x505303=_0x57966b;if(!this[_0x505303(0x145)])throw new _0x4388f8(_0x505303(0x150),null);}}export class AIRequestError extends Error{constructor(_0x52b982){var _0x2354c7=_0x57966b;super(_0x52b982),this[_0x2354c7(0x14a)]=_0x2354c7(0x146);}}
23
+ var _0x284071=_0x1e26;(function(_0x470108,_0xc96ac7){var _0x4be9b2=_0x1e26,_0x1435f6=_0x470108();while(!![]){try{var _0x1838fe=parseInt(_0x4be9b2(0xd7))/0x1+parseInt(_0x4be9b2(0xdc))/0x2+-parseInt(_0x4be9b2(0xdb))/0x3+-parseInt(_0x4be9b2(0xd8))/0x4*(-parseInt(_0x4be9b2(0xe1))/0x5)+parseInt(_0x4be9b2(0xdd))/0x6+-parseInt(_0x4be9b2(0xdf))/0x7+-parseInt(_0x4be9b2(0xe2))/0x8;if(_0x1838fe===_0xc96ac7)break;else _0x1435f6['push'](_0x1435f6['shift']());}catch(_0x58f212){_0x1435f6['push'](_0x1435f6['shift']());}}}(_0x2e04,0xa8f90));import{Plugin as _0x1c92ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x28e6b9}from'ckeditor5/src/utils.js';export default class y extends _0x1c92ad{static get[_0x284071(0xd5)](){var _0x1ec2bb=_0x284071;return _0x1ec2bb(0xda);}[_0x284071(0xd9)](){var _0x3380f4=_0x284071;if(!this[_0x3380f4(0xde)])throw new _0x28e6b9(_0x3380f4(0xe0),null);}}export class AIRequestError extends Error{constructor(_0xc4db8e){var _0x1a2e1f=_0x284071;super(_0xc4db8e),this[_0x1a2e1f(0xd4)]=_0x1a2e1f(0xd6);}}function _0x1e26(_0x36c7a6,_0x219f95){var _0x2e0426=_0x2e04();return _0x1e26=function(_0x1e264f,_0x440390){_0x1e264f=_0x1e264f-0xd4;var _0x276f3c=_0x2e0426[_0x1e264f];return _0x276f3c;},_0x1e26(_0x36c7a6,_0x219f95);}function _0x2e04(){var _0x26747d=['afterInit','AIAdapter','38454yIqFBY','2032932WSUjzf','7391256cvpyHy','textAdapter','7279503nMgZJC','aiadapter-text-adapter-not-set','15cOXsqU','12949288vRpiIy','name','pluginName','AIRequestError','996615PcqGlq','158084pHKNQR'];_0x2e04=function(){return _0x26747d;};return _0x2e04();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c96a2=_0x52af;(function(_0x1a50e2,_0x3e1e95){const _0x55c12a=_0x52af,_0x417a51=_0x1a50e2();while(!![]){try{const _0x262ebe=-parseInt(_0x55c12a(0x90))/0x1*(parseInt(_0x55c12a(0x84))/0x2)+parseInt(_0x55c12a(0x94))/0x3*(parseInt(_0x55c12a(0x87))/0x4)+-parseInt(_0x55c12a(0x8d))/0x5+parseInt(_0x55c12a(0x72))/0x6*(parseInt(_0x55c12a(0x91))/0x7)+-parseInt(_0x55c12a(0x74))/0x8+-parseInt(_0x55c12a(0x78))/0x9*(parseInt(_0x55c12a(0x75))/0xa)+parseInt(_0x55c12a(0x7b))/0xb;if(_0x262ebe===_0x3e1e95)break;else _0x417a51['push'](_0x417a51['shift']());}catch(_0x4d6a1b){_0x417a51['push'](_0x417a51['shift']());}}}(_0x22ba,0xb3fbb));function _0x22ba(){const _0x1b0f9a=['sendRequest','makeRequest','init','abortController','1870180hODRUF','textAdapter','object','565314rMbzjd','336fhGyBQ','locale','reject','49035HvbqBE','signal','name','resolve','77028jtLLZm','get','1799392aenUtN','1280sfclBk','requires','AbortError','61200eCYtwG','AI_ERROR_GET_HEADERS','error','15981086mNChWB','AI_ERROR_GET_PARAMETERS','catch','abort','aborted','_prepareRequestParameters','_prepareRequestHeaders','editor','aitextadapter-send-request-failed','2uxEGgg','application/json','plugins','172cVttRb','assign'];_0x22ba=function(){return _0x1b0f9a;};return _0x22ba();}import{Plugin as _0x3d2846}from'ckeditor5/src/core.js';import{CKEditorError as _0x39450e}from'ckeditor5/src/utils.js';function _0x52af(_0x4c598b,_0x3f64b8){const _0x22ba89=_0x22ba();return _0x52af=function(_0x52af16,_0x2e7df8){_0x52af16=_0x52af16-0x71;let _0x2d371d=_0x22ba89[_0x52af16];return _0x2d371d;},_0x52af(_0x4c598b,_0x3f64b8);}import{default as _0x467c41,AIRequestError as _0x42844b}from'./aiadapter.js';import{getTranslation as _0x29a90c}from'../utils/common-translations.js';export default class P extends _0x3d2846{static get[_0x4c96a2(0x76)](){return[_0x467c41];}constructor(_0x471ca4){const _0x2bea83=_0x4c96a2;super(_0x471ca4),this[_0x2bea83(0x8c)]=new AbortController();}[_0x4c96a2(0x8b)](){const _0x25ec9b=_0x4c96a2;this[_0x25ec9b(0x82)][_0x25ec9b(0x86)][_0x25ec9b(0x73)](_0x467c41)[_0x25ec9b(0x8e)]=this;}[_0x4c96a2(0x7e)](){const _0x4e7803=_0x4c96a2;this[_0x4e7803(0x8c)][_0x4e7803(0x95)][_0x4e7803(0x7f)]||(this[_0x4e7803(0x8c)][_0x4e7803(0x7e)](),this[_0x4e7803(0x8c)]=new AbortController());}async[_0x4c96a2(0x8a)](_0x5854e7){const _0x18ff2e=_0x4c96a2;return this[_0x18ff2e(0x89)](_0x5854e7)[_0x18ff2e(0x7d)](_0x40ba21=>{const _0x10cb05=_0x18ff2e;if(_0x40ba21 instanceof _0x42844b)return Promise[_0x10cb05(0x93)](_0x40ba21);if(_0x10cb05(0x77)==_0x40ba21[_0x10cb05(0x96)])return Promise[_0x10cb05(0x71)]();throw console[_0x10cb05(0x7a)](_0x40ba21),new _0x39450e(_0x10cb05(0x83),null);});}async[_0x4c96a2(0x81)](_0x5e18ad,_0x54db0d){const _0x3ebe90=_0x4c96a2,_0x1da321=this[_0x3ebe90(0x82)][_0x3ebe90(0x92)],_0x3d82f3={'Content-Type':_0x3ebe90(0x85)};if(_0x3ebe90(0x8f)==typeof _0x5e18ad)Object[_0x3ebe90(0x88)](_0x3d82f3,_0x5e18ad);else{if(_0x5e18ad)try{const _0x1059c0=await _0x5e18ad(_0x54db0d);Object[_0x3ebe90(0x88)](_0x3d82f3,_0x1059c0);}catch(_0x214b63){return Promise[_0x3ebe90(0x93)](new _0x42844b(_0x29a90c(_0x1da321,_0x3ebe90(0x79))));}}return _0x3d82f3;}async[_0x4c96a2(0x80)](_0x20d019,_0x160c07){const _0x17d5ef=_0x4c96a2,_0x10aba0=this[_0x17d5ef(0x82)][_0x17d5ef(0x92)];if(_0x17d5ef(0x8f)==typeof _0x20d019)return _0x20d019;try{return await _0x20d019(_0x160c07);}catch(_0x54ee61){return Promise[_0x17d5ef(0x93)](new _0x42844b(_0x29a90c(_0x10aba0,_0x17d5ef(0x7c))));}}}
23
+ function _0x2f4d(){const _0x18f691=['assign','2256485SEfomm','2290602zRtdXr','object','name','plugins','AI_ERROR_GET_HEADERS','signal','error','get','abort','editor','86945ydECQX','requires','locale','32340960eRibrN','reject','abortController','12184ccdrGA','application/json','init','47092cvURQJ','catch','AbortError','236AkJNWi','resolve','aborted','82056aeRUOl','_prepareRequestParameters','makeRequest','5643jmvfvv','AI_ERROR_GET_PARAMETERS','44xvkpMV','aitextadapter-send-request-failed','textAdapter','_prepareRequestHeaders','sendRequest'];_0x2f4d=function(){return _0x18f691;};return _0x2f4d();}const _0x306117=_0x5125;(function(_0x21156c,_0x443ceb){const _0x2055c0=_0x5125,_0x2f54e0=_0x21156c();while(!![]){try{const _0x5ef40a=-parseInt(_0x2055c0(0xfc))/0x1+parseInt(_0x2055c0(0x107))/0x2*(-parseInt(_0x2055c0(0x102))/0x3)+parseInt(_0x2055c0(0xff))/0x4*(-parseInt(_0x2055c0(0xf3))/0x5)+-parseInt(_0x2055c0(0x10e))/0x6+parseInt(_0x2055c0(0x10d))/0x7+parseInt(_0x2055c0(0xf9))/0x8*(-parseInt(_0x2055c0(0x105))/0x9)+parseInt(_0x2055c0(0xf6))/0xa;if(_0x5ef40a===_0x443ceb)break;else _0x2f54e0['push'](_0x2f54e0['shift']());}catch(_0xdbc0a7){_0x2f54e0['push'](_0x2f54e0['shift']());}}}(_0x2f4d,0x850d0));import{Plugin as _0x3b147f}from'ckeditor5/src/core.js';import{CKEditorError as _0x77d9da}from'ckeditor5/src/utils.js';function _0x5125(_0x8f88c,_0xfadba3){const _0x2f4d65=_0x2f4d();return _0x5125=function(_0x512588,_0x3ef555){_0x512588=_0x512588-0xf0;let _0x1e4b03=_0x2f4d65[_0x512588];return _0x1e4b03;},_0x5125(_0x8f88c,_0xfadba3);}import{default as _0x47e2ba,AIRequestError as _0x4da70a}from'./aiadapter.js';import{getTranslation as _0x3fe2d3}from'../utils/common-translations.js';export default class P extends _0x3b147f{static get[_0x306117(0xf4)](){return[_0x47e2ba];}constructor(_0x3b2d0d){const _0x5d5cd8=_0x306117;super(_0x3b2d0d),this[_0x5d5cd8(0xf8)]=new AbortController();}[_0x306117(0xfb)](){const _0x31ab67=_0x306117;this[_0x31ab67(0xf2)][_0x31ab67(0x111)][_0x31ab67(0xf0)](_0x47e2ba)[_0x31ab67(0x109)]=this;}[_0x306117(0xf1)](){const _0x3612c0=_0x306117;this[_0x3612c0(0xf8)][_0x3612c0(0x113)][_0x3612c0(0x101)]||(this[_0x3612c0(0xf8)][_0x3612c0(0xf1)](),this[_0x3612c0(0xf8)]=new AbortController());}async[_0x306117(0x104)](_0x3a76e4){const _0x577787=_0x306117;return this[_0x577787(0x10b)](_0x3a76e4)[_0x577787(0xfd)](_0x482b77=>{const _0xaecb40=_0x577787;if(_0x482b77 instanceof _0x4da70a)return Promise[_0xaecb40(0xf7)](_0x482b77);if(_0xaecb40(0xfe)==_0x482b77[_0xaecb40(0x110)])return Promise[_0xaecb40(0x100)]();throw console[_0xaecb40(0x114)](_0x482b77),new _0x77d9da(_0xaecb40(0x108),null);});}async[_0x306117(0x10a)](_0x235781,_0x544ead){const _0x3c00aa=_0x306117,_0x139b94=this[_0x3c00aa(0xf2)][_0x3c00aa(0xf5)],_0x3ed982={'Content-Type':_0x3c00aa(0xfa)};if(_0x3c00aa(0x10f)==typeof _0x235781)Object[_0x3c00aa(0x10c)](_0x3ed982,_0x235781);else{if(_0x235781)try{const _0x1f3da9=await _0x235781(_0x544ead);Object[_0x3c00aa(0x10c)](_0x3ed982,_0x1f3da9);}catch(_0x5b67c3){return Promise[_0x3c00aa(0xf7)](new _0x4da70a(_0x3fe2d3(_0x139b94,_0x3c00aa(0x112))));}}return _0x3ed982;}async[_0x306117(0x103)](_0x502d45,_0x4c8b59){const _0x1f2ca8=_0x306117,_0x1d1a7a=this[_0x1f2ca8(0xf2)][_0x1f2ca8(0xf5)];if(_0x1f2ca8(0x10f)==typeof _0x502d45)return _0x502d45;try{return await _0x502d45(_0x4c8b59);}catch(_0x545e4e){return Promise[_0x1f2ca8(0xf7)](new _0x4da70a(_0x3fe2d3(_0x1d1a7a,_0x1f2ca8(0x106))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5e6f(_0x31117f,_0x4dafed){const _0x14b350=_0x14b3();return _0x5e6f=function(_0x5e6f00,_0x2f5395){_0x5e6f00=_0x5e6f00-0xda;let _0x5bee98=_0x14b350[_0x5e6f00];return _0x5bee98;},_0x5e6f(_0x31117f,_0x4dafed);}const _0x2ee8db=_0x5e6f;(function(_0x16792e,_0x527c5e){const _0x3081e4=_0x5e6f,_0x41c599=_0x16792e();while(!![]){try{const _0x906a9a=parseInt(_0x3081e4(0x105))/0x1+-parseInt(_0x3081e4(0x118))/0x2*(parseInt(_0x3081e4(0x10b))/0x3)+parseInt(_0x3081e4(0xfd))/0x4+-parseInt(_0x3081e4(0x124))/0x5+parseInt(_0x3081e4(0xf9))/0x6+parseInt(_0x3081e4(0xfb))/0x7*(parseInt(_0x3081e4(0x116))/0x8)+-parseInt(_0x3081e4(0x102))/0x9;if(_0x906a9a===_0x527c5e)break;else _0x41c599['push'](_0x41c599['shift']());}catch(_0x3ed712){_0x41c599['push'](_0x41c599['shift']());}}}(_0x14b3,0x2cd40));import{default as _0x1b162f}from'./aitextadapter.js';import{AIRequestError as _0x4fde6d}from'./aiadapter.js';import{BedrockRuntimeClient as _0x114ec2,InvokeModelCommand as _0x3ce4e9,InvokeModelWithResponseStreamCommand as _0x402e80}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x3a5174}from'../utils/common-translations.js';export default class J extends _0x1b162f{static get[_0x2ee8db(0xe8)](){const _0x485d9b=_0x2ee8db;return _0x485d9b(0xe3);}constructor(_0x14ccd7){const _0x3c52a4=_0x2ee8db;super(_0x14ccd7),_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0x128)](_0x3c52a4(0x113))||_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0xe6)](_0x3c52a4(0x113),{'model':_0x3c52a4(0x10d),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3c52a4(0x11b),'stream':!0x0}),this[_0x3c52a4(0xf1)]=_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0x128)](_0x3c52a4(0xf3)),this[_0x3c52a4(0x125)]=_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0x128)](_0x3c52a4(0x101)),this[_0x3c52a4(0xe1)]=_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0x128)](_0x3c52a4(0x123)),this[_0x3c52a4(0xe9)]=_0x14ccd7[_0x3c52a4(0x103)][_0x3c52a4(0x128)](_0x3c52a4(0x113));}async[_0x2ee8db(0xdb)]({query:_0x2fa974,context:_0x10e576,onData:_0xc89d83,actionId:_0x19ad2b}){const _0x42c496=_0x2ee8db,{model:_0x16ea7d,stream:_0x823fc4,..._0x321aeb}=await this[_0x42c496(0x104)](this[_0x42c496(0xe9)],_0x19ad2b),_0x1391e0={'prompt':await this[_0x42c496(0x11e)](_0x2fa974,_0x10e576,_0x16ea7d,_0x19ad2b),..._0x321aeb};this[_0x42c496(0xf1)]?await this[_0x42c496(0x11d)](_0x1391e0,_0x16ea7d,_0x823fc4,_0xc89d83,_0x19ad2b):await this[_0x42c496(0x122)](_0x1391e0,_0x16ea7d,_0x823fc4,_0xc89d83);}async[_0x2ee8db(0x11e)](_0x4f4376,_0x3827d3,_0x13ad21,_0x20d053){const _0x158503=_0x2ee8db;let _0x3aae92,_0x2fc323;return _0x3827d3?(_0x3aae92=_0x158503(0x12a),_0x2fc323=_0x158503(0x111)+_0x4f4376+_0x158503(0x110)+_0x3827d3):(_0x3aae92=_0x158503(0xed),_0x2fc323=_0x4f4376),_0x158503(0xee)==this[_0x158503(0x106)](_0x13ad21)?_0x158503(0xea)+_0x3aae92+_0x158503(0xe5)+_0x2fc323+_0x158503(0x114):_0x158503(0x127)+_0x3aae92+'\x0a'+_0x2fc323+_0x158503(0xeb);}[_0x2ee8db(0x106)](_0x3a71ce){const _0x1ad5ad=_0x2ee8db;if(/^anthropic\.claude/[_0x1ad5ad(0x109)](_0x3a71ce))return _0x1ad5ad(0xe4);if(/^ai21\.j2/[_0x1ad5ad(0x109)](_0x3a71ce))return _0x1ad5ad(0x11a);if(/^cohere\.command/[_0x1ad5ad(0x109)](_0x3a71ce))return _0x1ad5ad(0xe2);if(/^meta\.llama/[_0x1ad5ad(0x109)](_0x3a71ce))return _0x1ad5ad(0xee);throw new _0x4fde6d(_0x3a5174(this[_0x1ad5ad(0xf6)][_0x1ad5ad(0xff)],_0x1ad5ad(0xdf),_0x3a71ce));}async[_0x2ee8db(0x11d)](_0x9cc37,_0x5a28c5,_0x19cf79,_0x3fdd61,_0x3bfa60){const _0x2e4e19=_0x2ee8db,_0x14e5f3={'method':_0x2e4e19(0xfc),'headers':await this[_0x2e4e19(0xda)](this[_0x2e4e19(0xe1)],_0x3bfa60),'body':JSON[_0x2e4e19(0xec)]({..._0x9cc37,'model':_0x5a28c5,'stream':_0x19cf79}),'signal':this[_0x2e4e19(0xdc)][_0x2e4e19(0xfe)]},_0x25ac47=await fetch(this[_0x2e4e19(0xf1)],_0x14e5f3);_0x19cf79?await this[_0x2e4e19(0x112)](_0x25ac47,_0x5a28c5,_0x3fdd61):await this[_0x2e4e19(0x107)](_0x25ac47,_0x5a28c5,_0x3fdd61);}async[_0x2ee8db(0x122)](_0x3eb50f,_0x53dc53,_0x3c7f84,_0xd0a0a){const _0x4916a9=_0x2ee8db,_0x3c6414=new _0x114ec2(this[_0x4916a9(0x125)]),_0xceb396={'body':JSON[_0x4916a9(0xec)](_0x3eb50f),'contentType':_0x4916a9(0xf2),'accept':_0x4916a9(0xf2),'modelId':_0x53dc53};let _0x425763;if(_0x3c7f84){const _0x2c52f8=new _0x402e80(_0xceb396);_0x425763=await _0x3c6414[_0x4916a9(0x11c)](_0x2c52f8,{'abortSignal':this[_0x4916a9(0xdc)][_0x4916a9(0xfe)]}),await this[_0x4916a9(0x121)](_0x425763,_0x53dc53,_0xd0a0a);}else{const _0x2423d8=new _0x3ce4e9(_0xceb396);_0x425763=await _0x3c6414[_0x4916a9(0x11c)](_0x2423d8,{'abortSignal':this[_0x4916a9(0xdc)][_0x4916a9(0xfe)]}),await this[_0x4916a9(0x107)](_0x425763,_0x53dc53,_0xd0a0a);}}async[_0x2ee8db(0x121)](_0x4b4a9b,_0x2a7402,_0x5b6c7e){const _0x37a9f9=_0x2ee8db,_0x528444=_0x4b4a9b[_0x37a9f9(0xf7)],_0x8867d6=new TextDecoder(_0x37a9f9(0x10f));let _0x4dd528='';for await(const _0x5de5a0 of _0x528444)if(_0x5de5a0[_0x37a9f9(0xf8)]){const _0x2a20fa=_0x8867d6[_0x37a9f9(0x119)](_0x5de5a0[_0x37a9f9(0xf8)][_0x37a9f9(0x117)]),_0x87e4db=JSON[_0x37a9f9(0x108)](_0x2a20fa);_0x4dd528+=this[_0x37a9f9(0xf0)](_0x87e4db,_0x2a7402),_0x5b6c7e(_0x4dd528);}return Promise[_0x37a9f9(0xfa)]();}async[_0x2ee8db(0x112)](_0x54b01e,_0x5c5816,_0xa82b7e){const _0x4cf198=_0x2ee8db,_0x113858=_0x54b01e[_0x4cf198(0xf7)],_0x37ac09=new TextDecoder(_0x4cf198(0x10f)),_0x466695=_0x113858[_0x4cf198(0xf4)]();let _0x3e1b6b='',_0x339b43='',_0x184e4d=!0x1;for(;!_0x184e4d;){const {done:_0x1d11c,value:_0x1bb072}=await _0x466695[_0x4cf198(0x10a)]();if(_0x184e4d=_0x1d11c,_0x184e4d)break;const _0xe91fde=(_0x3e1b6b+_0x37ac09[_0x4cf198(0x119)](_0x1bb072))[_0x4cf198(0x11f)]('\x0a')[_0x4cf198(0x12b)](_0x383581=>{const _0x1632b8=_0x4cf198;try{return _0x3e1b6b='',JSON[_0x1632b8(0x108)](_0x383581);}catch(_0x48edf0){return _0x3e1b6b=_0x383581,null;}})[_0x4cf198(0xe0)](_0x1b14a9=>null!==_0x1b14a9);_0xe91fde[_0x4cf198(0x126)]&&(_0x339b43+=_0xe91fde[_0x4cf198(0x12b)](_0x54a46e=>this[_0x4cf198(0xf0)](_0x54a46e,_0x5c5816))[_0x4cf198(0xef)](''),_0xa82b7e(_0x339b43));}return Promise[_0x4cf198(0xfa)]();}async[_0x2ee8db(0x107)](_0x5b2cfe,_0x59359c,_0x4752c6){const _0x21924a=_0x2ee8db;let _0xdb4b66;return _0xdb4b66=_0x5b2cfe instanceof Response?await _0x5b2cfe[_0x21924a(0xf5)]():JSON[_0x21924a(0x108)](Buffer[_0x21924a(0xde)](_0x5b2cfe[_0x21924a(0xf7)])[_0x21924a(0xdd)](_0x21924a(0x120))),(_0x4752c6(this[_0x21924a(0xf0)](_0xdb4b66,_0x59359c)),Promise[_0x21924a(0xfa)]());}[_0x2ee8db(0xf0)](_0x1f0f12,_0x17d832){const _0x436404=_0x2ee8db;switch(this[_0x436404(0x106)](_0x17d832)){case _0x436404(0xe4):return _0x1f0f12[_0x436404(0x10c)];case _0x436404(0x11a):return _0x1f0f12[_0x436404(0x100)][0x0][_0x436404(0x115)][_0x436404(0x129)];case _0x436404(0xe2):return _0x1f0f12[_0x436404(0x10e)][0x0][_0x436404(0x129)];case _0x436404(0xee):return _0x1f0f12[_0x436404(0xe7)];}}}function _0x14b3(){const _0x3e3d3d=['completion','anthropic.claude-v2','generations','utf-8','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','Instruction:\x0a','_readStreamableResponse','ai.aws.requestParameters','\x0a[/INST]','data','2627696PeKOyC','bytes','1530cCStEE','decode','ai21.j2','bedrock-2023-05-31','send','_processProxyRequest','preparePrompt','split','utf8','_readAsyncIterableResponse','_processAWSRequest','ai.aws.requestHeaders','310735Waeleq','_bedrockClientConfig','length','Human:\x0a','get','text','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','_prepareRequestHeaders','sendRequest','abortController','toString','from','AI_ERROR_UNSUPPORTED_MODEL','filter','_requestHeaders','cohere.command','AWSTextAdapter','anthropic.claude','\x0a<</SYS>>\x0a[INST]\x0a','define','generation','pluginName','_requestParameters','<<SYS>>\x0a','\x0a\x0aAssistant:','stringify','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.','meta.llama','join','_getGeneratedText','_apiUrl','application/json','ai.aws.apiUrl','getReader','json','editor','body','chunk','1524324SQiJQV','resolve','7JfiOFZ','POST','384812OuhUsD','signal','locale','completions','ai.aws.bedrockClientConfig','2835333mvrjMO','config','_prepareRequestParameters','203381hNQZMa','getModelFamily','_readStaticResponse','parse','test','read','1260fWpczs'];_0x14b3=function(){return _0x3e3d3d;};return _0x14b3();}
23
+ const _0x1ed7f4=_0x11f8;(function(_0x1549f7,_0x2ca1f6){const _0x2b710c=_0x11f8,_0x5e1006=_0x1549f7();while(!![]){try{const _0x430829=-parseInt(_0x2b710c(0x16e))/0x1+parseInt(_0x2b710c(0x15e))/0x2+parseInt(_0x2b710c(0x15d))/0x3*(-parseInt(_0x2b710c(0x17e))/0x4)+parseInt(_0x2b710c(0x163))/0x5*(parseInt(_0x2b710c(0x1a0))/0x6)+parseInt(_0x2b710c(0x153))/0x7+-parseInt(_0x2b710c(0x180))/0x8+parseInt(_0x2b710c(0x156))/0x9*(parseInt(_0x2b710c(0x19c))/0xa);if(_0x430829===_0x2ca1f6)break;else _0x5e1006['push'](_0x5e1006['shift']());}catch(_0x1caee5){_0x5e1006['push'](_0x5e1006['shift']());}}}(_0x21be,0xd83af));import{default as _0x4fd31}from'./aitextadapter.js';function _0x11f8(_0x2d55ba,_0x4fed7c){const _0x21bef5=_0x21be();return _0x11f8=function(_0x11f86e,_0x1189ee){_0x11f86e=_0x11f86e-0x153;let _0x771b9a=_0x21bef5[_0x11f86e];return _0x771b9a;},_0x11f8(_0x2d55ba,_0x4fed7c);}function _0x21be(){const _0x72df55=['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','ai.aws.apiUrl','ai.aws.requestHeaders','parse','locale','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.','_requestHeaders','editor','_getGeneratedText','length','sendRequest','<<SYS>>\x0a','map','stringify','config','AI_ERROR_UNSUPPORTED_MODEL','generations','_prepareRequestHeaders','filter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','get','_processProxyRequest','ai.aws.bedrockClientConfig','170cFZTzM','_apiUrl','bytes','utf8','18bsPIiE','AWSTextAdapter','_prepareRequestParameters','pluginName','chunk','test','2208913YwdTHl','json','_processAWSRequest','1160802FUiqAU','completion','abortController','POST','text','split','cohere.command','124314rRLfrx','70958Cxkdsa','_requestParameters','body','getReader','send','2807235rWYOPF','generation','ai21.j2','_bedrockClientConfig','bedrock-2023-05-31','anthropic.claude-v2','data','signal','ai.aws.requestParameters','anthropic.claude','join','1068838iHlapQ','\x0a\x0aAssistant:','_readStreamableResponse','\x0a[/INST]','decode','read','application/json','meta.llama','completions','toString','getModelFamily','from','\x0a<</SYS>>\x0a[INST]\x0a','utf-8','define','_readAsyncIterableResponse','52SurIRW','Instruction:\x0a','13878352bkhrko','_readStaticResponse','preparePrompt','resolve'];_0x21be=function(){return _0x72df55;};return _0x21be();}import{AIRequestError as _0x12c6f7}from'./aiadapter.js';import{BedrockRuntimeClient as _0x55d27a,InvokeModelCommand as _0x43f0f6,InvokeModelWithResponseStreamCommand as _0x241649}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5f3784}from'../utils/common-translations.js';export default class J extends _0x4fd31{static get[_0x1ed7f4(0x1a3)](){const _0x1d7fc4=_0x1ed7f4;return _0x1d7fc4(0x1a1);}constructor(_0x42fbdd){const _0x18594b=_0x1ed7f4;super(_0x42fbdd),_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b))||_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x17c)](_0x18594b(0x16b),{'model':_0x18594b(0x168),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x18594b(0x167),'stream':!0x0}),this[_0x18594b(0x19d)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x186)),this[_0x18594b(0x166)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x19b)),this[_0x18594b(0x18b)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x187)),this[_0x18594b(0x15f)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b));}async[_0x1ed7f4(0x18f)]({query:_0x4bec2c,context:_0x1e6cf6,onData:_0x475be9,actionId:_0x189520}){const _0x1b2c5b=_0x1ed7f4,{model:_0x2ae1cf,stream:_0x287ae1,..._0x19aad5}=await this[_0x1b2c5b(0x1a2)](this[_0x1b2c5b(0x15f)],_0x189520),_0x10e42b={'prompt':await this[_0x1b2c5b(0x182)](_0x4bec2c,_0x1e6cf6,_0x2ae1cf,_0x189520),..._0x19aad5};this[_0x1b2c5b(0x19d)]?await this[_0x1b2c5b(0x19a)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9,_0x189520):await this[_0x1b2c5b(0x155)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9);}async[_0x1ed7f4(0x182)](_0x32aca0,_0x57f7e5,_0x44b914,_0x5eae72){const _0x4ff636=_0x1ed7f4;let _0x24fa35,_0x2385ad;return _0x57f7e5?(_0x24fa35=_0x4ff636(0x184),_0x2385ad=_0x4ff636(0x17f)+_0x32aca0+_0x4ff636(0x198)+_0x57f7e5):(_0x24fa35=_0x4ff636(0x18a),_0x2385ad=_0x32aca0),_0x4ff636(0x175)==this[_0x4ff636(0x178)](_0x44b914)?_0x4ff636(0x190)+_0x24fa35+_0x4ff636(0x17a)+_0x2385ad+_0x4ff636(0x171):_0x4ff636(0x185)+_0x24fa35+'\x0a'+_0x2385ad+_0x4ff636(0x16f);}[_0x1ed7f4(0x178)](_0xc69ad8){const _0x49b86f=_0x1ed7f4;if(/^anthropic\.claude/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x16c);if(/^ai21\.j2/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x165);if(/^cohere\.command/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x15c);if(/^meta\.llama/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x175);throw new _0x12c6f7(_0x5f3784(this[_0x49b86f(0x18c)][_0x49b86f(0x189)],_0x49b86f(0x194),_0xc69ad8));}async[_0x1ed7f4(0x19a)](_0x462a61,_0x312824,_0x2c477f,_0x119749,_0x327351){const _0x2ba62d=_0x1ed7f4,_0x3bc241={'method':_0x2ba62d(0x159),'headers':await this[_0x2ba62d(0x196)](this[_0x2ba62d(0x18b)],_0x327351),'body':JSON[_0x2ba62d(0x192)]({..._0x462a61,'model':_0x312824,'stream':_0x2c477f}),'signal':this[_0x2ba62d(0x158)][_0x2ba62d(0x16a)]},_0x303076=await fetch(this[_0x2ba62d(0x19d)],_0x3bc241);_0x2c477f?await this[_0x2ba62d(0x170)](_0x303076,_0x312824,_0x119749):await this[_0x2ba62d(0x181)](_0x303076,_0x312824,_0x119749);}async[_0x1ed7f4(0x155)](_0x597d6d,_0x145976,_0x4aeb09,_0xd934ab){const _0x5f22a3=_0x1ed7f4,_0x29e56d=new _0x55d27a(this[_0x5f22a3(0x166)]),_0xe7bfdc={'body':JSON[_0x5f22a3(0x192)](_0x597d6d),'contentType':_0x5f22a3(0x174),'accept':_0x5f22a3(0x174),'modelId':_0x145976};let _0x5ade69;if(_0x4aeb09){const _0x272615=new _0x241649(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x272615,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x17d)](_0x5ade69,_0x145976,_0xd934ab);}else{const _0x7f657e=new _0x43f0f6(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x7f657e,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x181)](_0x5ade69,_0x145976,_0xd934ab);}}async[_0x1ed7f4(0x17d)](_0x3f6a41,_0x6d300d,_0x2e5f4a){const _0x14c3e3=_0x1ed7f4,_0x58cfb1=_0x3f6a41[_0x14c3e3(0x160)],_0x25152d=new TextDecoder(_0x14c3e3(0x17b));let _0x313263='';for await(const _0x2d615b of _0x58cfb1)if(_0x2d615b[_0x14c3e3(0x1a4)]){const _0x4ad62d=_0x25152d[_0x14c3e3(0x172)](_0x2d615b[_0x14c3e3(0x1a4)][_0x14c3e3(0x19e)]),_0x38ae48=JSON[_0x14c3e3(0x188)](_0x4ad62d);_0x313263+=this[_0x14c3e3(0x18d)](_0x38ae48,_0x6d300d),_0x2e5f4a(_0x313263);}return Promise[_0x14c3e3(0x183)]();}async[_0x1ed7f4(0x170)](_0x1af8b4,_0x59f710,_0x49141a){const _0x4d5232=_0x1ed7f4,_0x2dbf7e=_0x1af8b4[_0x4d5232(0x160)],_0xd183ad=new TextDecoder(_0x4d5232(0x17b)),_0x181296=_0x2dbf7e[_0x4d5232(0x161)]();let _0x1ae618='',_0x59414e='',_0x33f0d9=!0x1;for(;!_0x33f0d9;){const {done:_0x540f1b,value:_0x33e9ee}=await _0x181296[_0x4d5232(0x173)]();if(_0x33f0d9=_0x540f1b,_0x33f0d9)break;const _0x30f000=(_0x1ae618+_0xd183ad[_0x4d5232(0x172)](_0x33e9ee))[_0x4d5232(0x15b)]('\x0a')[_0x4d5232(0x191)](_0x311128=>{const _0x4c2640=_0x4d5232;try{return _0x1ae618='',JSON[_0x4c2640(0x188)](_0x311128);}catch(_0x44abe4){return _0x1ae618=_0x311128,null;}})[_0x4d5232(0x197)](_0x424193=>null!==_0x424193);_0x30f000[_0x4d5232(0x18e)]&&(_0x59414e+=_0x30f000[_0x4d5232(0x191)](_0x598e86=>this[_0x4d5232(0x18d)](_0x598e86,_0x59f710))[_0x4d5232(0x16d)](''),_0x49141a(_0x59414e));}return Promise[_0x4d5232(0x183)]();}async[_0x1ed7f4(0x181)](_0x52e12a,_0x46b812,_0x1ecead){const _0x3a4a0b=_0x1ed7f4;let _0x7d456e;return _0x7d456e=_0x52e12a instanceof Response?await _0x52e12a[_0x3a4a0b(0x154)]():JSON[_0x3a4a0b(0x188)](Buffer[_0x3a4a0b(0x179)](_0x52e12a[_0x3a4a0b(0x160)])[_0x3a4a0b(0x177)](_0x3a4a0b(0x19f))),(_0x1ecead(this[_0x3a4a0b(0x18d)](_0x7d456e,_0x46b812)),Promise[_0x3a4a0b(0x183)]());}[_0x1ed7f4(0x18d)](_0xac026d,_0x10b435){const _0xa4a0bf=_0x1ed7f4;switch(this[_0xa4a0bf(0x178)](_0x10b435)){case _0xa4a0bf(0x16c):return _0xac026d[_0xa4a0bf(0x157)];case _0xa4a0bf(0x165):return _0xac026d[_0xa4a0bf(0x176)][0x0][_0xa4a0bf(0x169)][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x15c):return _0xac026d[_0xa4a0bf(0x195)][0x0][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x175):return _0xac026d[_0xa4a0bf(0x164)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3cf4(){const _0x30ce70=['AI_ERROR_CONTEXT_LENGTH','resolve','_prepareRequestParameters','delta','1399830DWsKRI','sendRequest','_requestHeaders','_prepareRequestHeaders','get','user','editor','message','filter','body','join','data:\x20','3148320ZecnYo','decode','prepareMessages','replace','parse','system','OpenAITextAdapter','signal','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','pluginName','24XPSnAp','POST','stringify','_requestParameters','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','config','Moderation','Instruction:\x0a','_isBufferIncomplete','ai.openAI.requestParameters','ai.openAI.apiUrl','context_length_exceeded','gpt-3.5-turbo','split','AI_ERROR_MODERATION','16733592MBsqWL','700269SHCkNE','locale','_apiUrl','text','[DONE]','json','_readStreamableResponse','read','_readStaticResponse','_cleanUpData','define','choices','2644635sVhgTI','map','content','stream','504372CQeoFK','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','reject','ai.openAI.requestHeaders','abortController','https://api.openai.com/v1/chat/completions','797318jEDgeI','includes','length'];_0x3cf4=function(){return _0x30ce70;};return _0x3cf4();}const _0x1161c4=_0x216c;(function(_0x1fb5be,_0x10fc79){const _0x46a436=_0x216c,_0x39c43=_0x1fb5be();while(!![]){try{const _0x6d429a=parseInt(_0x46a436(0x1c7))/0x1+-parseInt(_0x46a436(0x199))/0x2+parseInt(_0x46a436(0x1d3))/0x3+parseInt(_0x46a436(0x1d7))/0x4+-parseInt(_0x46a436(0x1a0))/0x5*(-parseInt(_0x46a436(0x1b7))/0x6)+parseInt(_0x46a436(0x1ac))/0x7+-parseInt(_0x46a436(0x1c6))/0x8;if(_0x6d429a===_0x10fc79)break;else _0x39c43['push'](_0x39c43['shift']());}catch(_0x4ec8e9){_0x39c43['push'](_0x39c43['shift']());}}}(_0x3cf4,0xc02e5));import{default as _0x3efac6}from'./aitextadapter.js';import{AIRequestError as _0x3263f5}from'./aiadapter.js';import{getTranslation as _0x5e230a}from'../utils/common-translations.js';function _0x216c(_0x4abaf7,_0x38900c){const _0x3cf4c8=_0x3cf4();return _0x216c=function(_0x216cb9,_0x503600){_0x216cb9=_0x216cb9-0x194;let _0x3c3b82=_0x3cf4c8[_0x216cb9];return _0x3c3b82;},_0x216c(_0x4abaf7,_0x38900c);}export default class F extends _0x3efac6{static get[_0x1161c4(0x1b6)](){const _0x359403=_0x1161c4;return _0x359403(0x1b2);}constructor(_0x20105e){const _0x1dd954=_0x1161c4;super(_0x20105e),_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1d1)](_0x1dd954(0x1c1),_0x1dd954(0x198)),_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1a4)](_0x1dd954(0x1c0))||_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1d1)](_0x1dd954(0x1c0),{'model':_0x1dd954(0x1c3),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1dd954(0x1c9)]=_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1a4)](_0x1dd954(0x1c1)),this[_0x1dd954(0x1a2)]=_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1a4)](_0x1dd954(0x196))||{},this[_0x1dd954(0x1ba)]=_0x20105e[_0x1dd954(0x1bc)][_0x1dd954(0x1a4)](_0x1dd954(0x1c0));}async[_0x1161c4(0x1a1)]({query:_0x14684a,context:_0x249dad,onData:_0x3ce123,actionId:_0x23670f}){const _0x8ffcb7=_0x1161c4,_0x34036b=this[_0x8ffcb7(0x1a6)][_0x8ffcb7(0x1c8)],_0x1670a5=await this[_0x8ffcb7(0x1ae)](_0x14684a,_0x249dad,_0x23670f),_0x1ff13d=await this[_0x8ffcb7(0x1a3)](this[_0x8ffcb7(0x1a2)],_0x23670f),_0x317e5e=await this[_0x8ffcb7(0x19e)](this[_0x8ffcb7(0x1ba)],_0x23670f),_0x7ab8f3={'messages':_0x1670a5,..._0x317e5e},_0xe4f62c={'method':_0x8ffcb7(0x1b8),'headers':_0x1ff13d,'body':JSON[_0x8ffcb7(0x1b9)](_0x7ab8f3),'signal':this[_0x8ffcb7(0x197)][_0x8ffcb7(0x1b3)]},_0x4ff48e=await fetch(this[_0x8ffcb7(0x1c9)],_0xe4f62c);if(_0x4ff48e['ok'])return _0x317e5e[_0x8ffcb7(0x1d6)]?await this[_0x8ffcb7(0x1cd)](_0x4ff48e,_0x3ce123):await this[_0x8ffcb7(0x1cf)](_0x4ff48e,_0x3ce123),Promise[_0x8ffcb7(0x19d)]();{const _0x35b805=await _0x4ff48e[_0x8ffcb7(0x1ca)]();return _0x35b805[_0x8ffcb7(0x19a)](_0x8ffcb7(0x1c2))?Promise[_0x8ffcb7(0x195)](new _0x3263f5(_0x5e230a(_0x34036b,_0x8ffcb7(0x19c)))):_0x35b805[_0x8ffcb7(0x19a)](_0x8ffcb7(0x1bd))?Promise[_0x8ffcb7(0x195)](new _0x3263f5(_0x5e230a(_0x34036b,_0x8ffcb7(0x1c5)))):Promise[_0x8ffcb7(0x195)](new Error(_0x35b805));}}async[_0x1161c4(0x1ae)](_0x321b0f,_0x1d99bc,_0x3fdd3a){const _0x27b981=_0x1161c4;let _0x5b25c1,_0x4872b9;return _0x1d99bc?(_0x5b25c1=_0x27b981(0x194),_0x4872b9=_0x27b981(0x1be)+_0x321b0f+_0x27b981(0x1b5)+_0x1d99bc):(_0x5b25c1=_0x27b981(0x1bb),_0x4872b9=_0x321b0f),[{'role':_0x27b981(0x1b1),'content':_0x5b25c1},{'role':_0x27b981(0x1a5),'content':_0x4872b9}];}async[_0x1161c4(0x1cd)](_0x123fce,_0x325c65){const _0x14dde2=_0x1161c4,_0x5150c9=_0x123fce[_0x14dde2(0x1a9)][_0x14dde2(0x1b4)](),_0x394744=new TextDecoder();let _0x1d27a3='',_0x40d3e7='',_0x278ea1='',_0x574592=!0x1;for(;!_0x574592;){const {done:_0x15ba02,value:_0x5941eb}=await _0x5150c9[_0x14dde2(0x1ce)](),_0x38c6ff=_0x1d27a3+_0x394744[_0x14dde2(0x1ad)](_0x5941eb);let _0x657cf1='';_0x574592=_0x15ba02;try{_0x657cf1=this[_0x14dde2(0x1d0)](_0x38c6ff),_0x1d27a3='';}catch(_0x44d8b1){_0x1d27a3=_0x38c6ff;continue;}_0x40d3e7+=_0x657cf1,!_0x574592&&this[_0x14dde2(0x1bf)](_0x40d3e7)||_0x40d3e7&&(_0x278ea1+=_0x40d3e7,_0x40d3e7='',_0x325c65(_0x278ea1));}return Promise[_0x14dde2(0x19d)]();}async[_0x1161c4(0x1cf)](_0x1a0b41,_0x5cb6cb){const _0x163bdf=_0x1161c4;return _0x5cb6cb((await _0x1a0b41[_0x163bdf(0x1cc)]())[_0x163bdf(0x1d2)][0x0][_0x163bdf(0x1a7)][_0x163bdf(0x1d5)]),Promise[_0x163bdf(0x19d)]();}[_0x1161c4(0x1bf)](_0x1f9ec9){const _0x456c58=_0x1161c4,_0x226a4c=_0x1f9ec9[_0x456c58(0x1c4)]('<')[_0x456c58(0x19b)]!==_0x1f9ec9[_0x456c58(0x1c4)]('>')[_0x456c58(0x19b)],_0x339dbe=_0x1f9ec9[_0x456c58(0x19b)]<0x1e;return _0x226a4c&&_0x339dbe;}[_0x1161c4(0x1d0)](_0x3c5591){const _0x408956=_0x1161c4;return _0x3c5591[_0x408956(0x1c4)](/\n(?![^{]*\})/g)[_0x408956(0x1d4)](_0x2ca98f=>_0x2ca98f[_0x408956(0x1af)](_0x408956(0x1ab),''))[_0x408956(0x1a8)](_0x317ccf=>_0x317ccf&&_0x317ccf[_0x408956(0x19b)]>0x0&&_0x408956(0x1cb)!==_0x317ccf)[_0x408956(0x1d4)](_0x3b46a6=>{const _0x8d18c9=_0x408956,{choices:_0xf89f5b}=JSON[_0x8d18c9(0x1b0)](_0x3b46a6);if(_0xf89f5b[0x0]&&_0xf89f5b[0x0][_0x8d18c9(0x19f)]&&_0xf89f5b[0x0][_0x8d18c9(0x19f)][_0x8d18c9(0x1d5)])return _0xf89f5b[0x0][_0x8d18c9(0x19f)][_0x8d18c9(0x1d5)];})[_0x408956(0x1a8)](_0x2a6e7b=>_0x2a6e7b)[_0x408956(0x1aa)]('');}}
23
+ const _0x589a66=_0x3f02;(function(_0x45f2af,_0x39f557){const _0x8c7490=_0x3f02,_0x4620b7=_0x45f2af();while(!![]){try{const _0x1cee48=parseInt(_0x8c7490(0xa1))/0x1+parseInt(_0x8c7490(0xdd))/0x2*(-parseInt(_0x8c7490(0xad))/0x3)+-parseInt(_0x8c7490(0xa3))/0x4*(parseInt(_0x8c7490(0xc6))/0x5)+-parseInt(_0x8c7490(0xd3))/0x6+-parseInt(_0x8c7490(0xb2))/0x7+-parseInt(_0x8c7490(0x9d))/0x8+-parseInt(_0x8c7490(0xcd))/0x9*(-parseInt(_0x8c7490(0xd0))/0xa);if(_0x1cee48===_0x39f557)break;else _0x4620b7['push'](_0x4620b7['shift']());}catch(_0x2abeb5){_0x4620b7['push'](_0x4620b7['shift']());}}}(_0x2fd0,0x4c34c));import{default as _0x145a31}from'./aitextadapter.js';import{AIRequestError as _0x316979}from'./aiadapter.js';function _0x2fd0(){const _0x4b5bc3=['config','resolve','abortController','stream','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','_readStreamableResponse','replace','589335MkaMRe','gpt-3.5-turbo','get','text','editor','OpenAITextAdapter','_prepareRequestParameters','6472737dkbkfS','json','_readStaticResponse','10cesDzr','user','ai.openAI.requestHeaders','935916mLIENp','filter','AI_ERROR_MODERATION','context_length_exceeded','decode','includes','read','reject','body','data:\x20','4742eOwVOX','sendRequest','delta','parse','AI_ERROR_CONTEXT_LENGTH','POST','214080PytLZe','_cleanUpData','_prepareRequestHeaders','length','461982BHjzhl','content','20GQPmmv','_isBufferIncomplete','stringify','[DONE]','Moderation','Instruction:\x0a','locale','ai.openAI.requestParameters','https://api.openai.com/v1/chat/completions','ai.openAI.apiUrl','9tFgJUT','define','choices','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','map','628887DlTzjT','system','getReader','pluginName','prepareMessages','split','signal','message','_requestHeaders','join','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.','_apiUrl'];_0x2fd0=function(){return _0x4b5bc3;};return _0x2fd0();}function _0x3f02(_0x4ff593,_0x1032f1){const _0x2fd0b4=_0x2fd0();return _0x3f02=function(_0x3f02f1,_0x10f53e){_0x3f02f1=_0x3f02f1-0x9c;let _0x2a08d4=_0x2fd0b4[_0x3f02f1];return _0x2a08d4;},_0x3f02(_0x4ff593,_0x1032f1);}import{getTranslation as _0x23d101}from'../utils/common-translations.js';export default class F extends _0x145a31{static get[_0x589a66(0xb5)](){const _0x458c7b=_0x589a66;return _0x458c7b(0xcb);}constructor(_0x4709ea){const _0x36e584=_0x589a66;super(_0x4709ea),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xac),_0x36e584(0xab)),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa))||_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xaa),{'model':_0x36e584(0xc7),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x36e584(0xbd)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xac)),this[_0x36e584(0xba)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xd2))||{},this[_0x36e584(0xc3)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa));}async[_0x589a66(0xde)]({query:_0x34676a,context:_0x184809,onData:_0x1be902,actionId:_0x36d1be}){const _0x53777c=_0x589a66,_0x33eaab=this[_0x53777c(0xca)][_0x53777c(0xa9)],_0x4c4c39=await this[_0x53777c(0xb6)](_0x34676a,_0x184809,_0x36d1be),_0xe443cc=await this[_0x53777c(0x9f)](this[_0x53777c(0xba)],_0x36d1be),_0x183b84=await this[_0x53777c(0xcc)](this[_0x53777c(0xc3)],_0x36d1be),_0x3eb49d={'messages':_0x4c4c39,..._0x183b84},_0x374428={'method':_0x53777c(0x9c),'headers':_0xe443cc,'body':JSON[_0x53777c(0xa5)](_0x3eb49d),'signal':this[_0x53777c(0xc0)][_0x53777c(0xb8)]},_0x1920f0=await fetch(this[_0x53777c(0xbd)],_0x374428);if(_0x1920f0['ok'])return _0x183b84[_0x53777c(0xc1)]?await this[_0x53777c(0xc4)](_0x1920f0,_0x1be902):await this[_0x53777c(0xcf)](_0x1920f0,_0x1be902),Promise[_0x53777c(0xbf)]();{const _0x45fc74=await _0x1920f0[_0x53777c(0xc9)]();return _0x45fc74[_0x53777c(0xd8)](_0x53777c(0xd6))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xe1)))):_0x45fc74[_0x53777c(0xd8)](_0x53777c(0xa7))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xd5)))):Promise[_0x53777c(0xda)](new Error(_0x45fc74));}}async[_0x589a66(0xb6)](_0x1f667c,_0x33a8e7,_0x1bd994){const _0x348dba=_0x589a66;let _0xeb5dcf,_0x298d6e;return _0x33a8e7?(_0xeb5dcf=_0x348dba(0xc2),_0x298d6e=_0x348dba(0xa8)+_0x1f667c+_0x348dba(0xb0)+_0x33a8e7):(_0xeb5dcf=_0x348dba(0xbc),_0x298d6e=_0x1f667c),[{'role':_0x348dba(0xb3),'content':_0xeb5dcf},{'role':_0x348dba(0xd1),'content':_0x298d6e}];}async[_0x589a66(0xc4)](_0x496771,_0x1f045e){const _0x3b782f=_0x589a66,_0x2e28e3=_0x496771[_0x3b782f(0xdb)][_0x3b782f(0xb4)](),_0x3b26bc=new TextDecoder();let _0x470db3='',_0x166225='',_0x1bde13='',_0x545f31=!0x1;for(;!_0x545f31;){const {done:_0x2e499c,value:_0x42a94f}=await _0x2e28e3[_0x3b782f(0xd9)](),_0x45e3f1=_0x470db3+_0x3b26bc[_0x3b782f(0xd7)](_0x42a94f);let _0x12f473='';_0x545f31=_0x2e499c;try{_0x12f473=this[_0x3b782f(0x9e)](_0x45e3f1),_0x470db3='';}catch(_0x4e9658){_0x470db3=_0x45e3f1;continue;}_0x166225+=_0x12f473,!_0x545f31&&this[_0x3b782f(0xa4)](_0x166225)||_0x166225&&(_0x1bde13+=_0x166225,_0x166225='',_0x1f045e(_0x1bde13));}return Promise[_0x3b782f(0xbf)]();}async[_0x589a66(0xcf)](_0x43b67e,_0x50f824){const _0x20e63d=_0x589a66;return _0x50f824((await _0x43b67e[_0x20e63d(0xce)]())[_0x20e63d(0xaf)][0x0][_0x20e63d(0xb9)][_0x20e63d(0xa2)]),Promise[_0x20e63d(0xbf)]();}[_0x589a66(0xa4)](_0x27f205){const _0x4383b8=_0x589a66,_0x1cab53=_0x27f205[_0x4383b8(0xb7)]('<')[_0x4383b8(0xa0)]!==_0x27f205[_0x4383b8(0xb7)]('>')[_0x4383b8(0xa0)],_0x59f181=_0x27f205[_0x4383b8(0xa0)]<0x1e;return _0x1cab53&&_0x59f181;}[_0x589a66(0x9e)](_0x67ba76){const _0x385a4d=_0x589a66;return _0x67ba76[_0x385a4d(0xb7)](/\n(?![^{]*\})/g)[_0x385a4d(0xb1)](_0x11e058=>_0x11e058[_0x385a4d(0xc5)](_0x385a4d(0xdc),''))[_0x385a4d(0xd4)](_0x256047=>_0x256047&&_0x256047[_0x385a4d(0xa0)]>0x0&&_0x385a4d(0xa6)!==_0x256047)[_0x385a4d(0xb1)](_0x3009e1=>{const _0x4c7913=_0x385a4d,{choices:_0x328090}=JSON[_0x4c7913(0xe0)](_0x3009e1);if(_0x328090[0x0]&&_0x328090[0x0][_0x4c7913(0xdf)]&&_0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)])return _0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)];})[_0x385a4d(0xd4)](_0x247db1=>_0x247db1)[_0x385a4d(0xbb)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4db70b=_0x2360;(function(_0x1d3036,_0x99716e){const _0x5876d0=_0x2360,_0x132905=_0x1d3036();while(!![]){try{const _0x48d48b=parseInt(_0x5876d0(0x223))/0x1+-parseInt(_0x5876d0(0x1f3))/0x2+parseInt(_0x5876d0(0x21e))/0x3*(-parseInt(_0x5876d0(0x1f6))/0x4)+parseInt(_0x5876d0(0x22c))/0x5*(-parseInt(_0x5876d0(0x21a))/0x6)+parseInt(_0x5876d0(0x1fb))/0x7*(-parseInt(_0x5876d0(0x23d))/0x8)+parseInt(_0x5876d0(0x228))/0x9+-parseInt(_0x5876d0(0x22f))/0xa*(-parseInt(_0x5876d0(0x1dc))/0xb);if(_0x48d48b===_0x99716e)break;else _0x132905['push'](_0x132905['shift']());}catch(_0x217890){_0x132905['push'](_0x132905['shift']());}}}(_0x3791,0x3b1c8));function _0x2360(_0x1d8588,_0x47e855){const _0x3791cb=_0x3791();return _0x2360=function(_0x236080,_0x2b626f){_0x236080=_0x236080-0x1cb;let _0x4689c0=_0x3791cb[_0x236080];return _0x4689c0;},_0x2360(_0x1d8588,_0x47e855);}import{CKEditorError as _0x595f45}from'ckeditor5/src/utils.js';function _0x3791(){const _0x56c849=['direct','668dAFBjZ','Professional','editor','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Journalism','14zLraKr','AIAssistant','licenseKey','Change\x20tone','aiLicenseKeyTrial','poetic','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','changeStyle','ai.aiAssistant.commands','Make\x20shorter','includes','changeTone','French','find','translatePortuguese','Make\x20longer','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','locale','concat','ai-trial-license-key-reached-limit-changes','ai.aiAssistant.extraCommandGroups','translateEnglish','groupId','config','translateHindi','info','_licenseKeyCheckInterval','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','forEach','Simplify\x20language','642342JDkOzt','simplifyLanguage','destroy','Confident','3939cWtJHj','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.','set','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','336360usKnWX','translateFrench','Translate\x20to\x20%0','ai.aiAssistant.removeCommands','define','2512566hAIpZv','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Portuguese','confident','15GdsMoq','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Legal','60cjyZHK','Business','summarize','German','translate','Hindi','Spanish','journalism','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','aiLicenseKeyTrialLimit:operations','business','Translate','Translate\x20the\x20content\x20to\x20English\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','1609248UZqGXs','professional','improveWriting','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Casual','continue','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','generate','makeLonger','Simplified\x20Chinese','translateGerman','filter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Arabic','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','aiLicenseKeyInvalid','requires','aiLicenseKeyValid','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','commands','get','Summarize','1513512iAKYSb','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateSpanish','editOrReview','Friendly','init','Continue','translateChinese','pluginName','ai-invalid-license-key','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Generate\x20from\x20selection','casual','translateArabic','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Change\x20style','friendly','Improve\x20writing','push','Poetic','makeShorter','Edit\x20or\x20review','legal','512424idUIfR','Direct'];_0x3791=function(){return _0x56c849;};return _0x3791();}import{Plugin as _0x20db8a}from'ckeditor5/src/core.js';import _0x374875 from'./aiassistantui.js';import _0x260bd7 from'./aiassistantediting.js';import{getTranslation as _0x3e97dc}from'./utils/common-translations.js';export default class r extends _0x20db8a{static get[_0x4db70b(0x1d5)](){return[_0x374875,_0x260bd7];}static get[_0x4db70b(0x1e4)](){const _0xcb5796=_0x4db70b;return _0xcb5796(0x1fc);}constructor(_0x44c116){const _0x2a7d6f=_0x4db70b;super(_0x44c116);const _0x45ba60=_0x44c116[_0x2a7d6f(0x213)];_0x45ba60[_0x2a7d6f(0x227)](_0x2a7d6f(0x203),getDefaultCommands(_0x44c116[_0x2a7d6f(0x20d)])),_0x45ba60[_0x2a7d6f(0x227)](_0x2a7d6f(0x210),[]),_0x45ba60[_0x2a7d6f(0x227)](_0x2a7d6f(0x226),[]);const _0x21d1b5=_0x45ba60[_0x2a7d6f(0x1da)](_0x2a7d6f(0x203)),_0x4c7f94=_0x45ba60[_0x2a7d6f(0x1da)](_0x2a7d6f(0x210)),_0x1ec94b=_0x45ba60[_0x2a7d6f(0x1da)](_0x2a7d6f(0x226));_0x4c7f94[_0x2a7d6f(0x218)](_0x4ffb96=>{const _0x1a553f=_0x2a7d6f,_0x55b757=_0x21d1b5[_0x1a553f(0x208)](_0x47e9d7=>_0x47e9d7[_0x1a553f(0x212)]===_0x4ffb96[_0x1a553f(0x212)]);_0x55b757?_0x55b757[_0x1a553f(0x1d9)]=_0x55b757[_0x1a553f(0x1d9)][_0x1a553f(0x20e)](_0x4ffb96[_0x1a553f(0x1d9)]):_0x21d1b5[_0x1a553f(0x1ee)](_0x4ffb96);}),_0x21d1b5[_0x2a7d6f(0x218)](_0x159d05=>{const _0x173c49=_0x2a7d6f;_0x159d05[_0x173c49(0x1d9)]=_0x159d05[_0x173c49(0x1d9)][_0x173c49(0x1cd)](_0x203f76=>!_0x1ec94b[_0x173c49(0x205)](_0x203f76['id']));}),_0x45ba60[_0x2a7d6f(0x220)](_0x2a7d6f(0x203),_0x21d1b5);}[_0x4db70b(0x1e1)](){const _0x456688=_0x4db70b,_0x36e6f1=this[_0x456688(0x1f8)];this[_0x456688(0x1fd)]=_0x36e6f1[_0x456688(0x213)][_0x456688(0x1da)](_0x456688(0x1fd)),this[_0x456688(0x216)]=setInterval(()=>{const _0x28523c=_0x456688;let _0x5432d0;for(const _0x44b198 in _0x36e6f1){const _0x3370e5=_0x44b198,_0x7fde7f=_0x36e6f1[_0x3370e5];if(_0x28523c(0x1ff)===_0x7fde7f||_0x28523c(0x1d4)===_0x7fde7f||_0x28523c(0x1d6)===_0x7fde7f||_0x28523c(0x238)===_0x7fde7f){delete _0x36e6f1[_0x3370e5],_0x5432d0=_0x7fde7f;break;}}if(_0x28523c(0x1d4)===_0x5432d0)throw clearInterval(this[_0x28523c(0x216)]),new _0x595f45(_0x28523c(0x1e5),null);if(_0x28523c(0x1ff)===_0x5432d0&&console[_0x28523c(0x215)](_0x28523c(0x21f)),_0x28523c(0x238)===_0x5432d0)throw clearInterval(this[_0x28523c(0x216)]),new _0x595f45(_0x28523c(0x20f),null);_0x28523c(0x1d6)===_0x5432d0&&clearInterval(this[_0x28523c(0x216)]);},0x3e8);}[_0x4db70b(0x21c)](){const _0x34e8d5=_0x4db70b;this[_0x34e8d5(0x216)]&&clearInterval(this[_0x34e8d5(0x216)]);}}export function getDefaultCommands(_0x1989be){const _0x5a4ac9=_0x4db70b;return[{'groupId':_0x5a4ac9(0x1df),'groupLabel':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1f1)),'commands':[{'id':_0x5a4ac9(0x23f),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1ed)),'prompt':_0x5a4ac9(0x1d7)},{'id':_0x5a4ac9(0x1f0),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x204)),'prompt':_0x5a4ac9(0x20b)},{'id':_0x5a4ac9(0x245),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x20a)),'prompt':_0x5a4ac9(0x237)},{'id':_0x5a4ac9(0x21b),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x219)),'prompt':_0x5a4ac9(0x1e6)}]},{'groupId':_0x5a4ac9(0x244),'groupLabel':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1e7)),'commands':[{'id':_0x5a4ac9(0x231),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1db)),'prompt':_0x5a4ac9(0x1d1)},{'id':_0x5a4ac9(0x242),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1e2)),'prompt':_0x5a4ac9(0x201)}]},{'groupId':_0x5a4ac9(0x206),'groupLabel':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1fe)),'commands':[{'id':_0x5a4ac9(0x23e),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1f7)),'prompt':_0x5a4ac9(0x240)},{'id':_0x5a4ac9(0x1e8),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x241)),'prompt':_0x5a4ac9(0x243)},{'id':_0x5a4ac9(0x1f5),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1f4)),'prompt':_0x5a4ac9(0x1dd)},{'id':_0x5a4ac9(0x22b),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x21d)),'prompt':_0x5a4ac9(0x1d2)},{'id':_0x5a4ac9(0x1ec),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1e0)),'prompt':_0x5a4ac9(0x1d3)}]},{'groupId':_0x5a4ac9(0x202),'groupLabel':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1eb)),'commands':[{'id':_0x5a4ac9(0x239),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x230)),'prompt':_0x5a4ac9(0x22d)},{'id':_0x5a4ac9(0x1f2),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x22e)),'prompt':_0x5a4ac9(0x217)},{'id':_0x5a4ac9(0x236),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1fa)),'prompt':_0x5a4ac9(0x221)},{'id':_0x5a4ac9(0x200),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x1ef)),'prompt':_0x5a4ac9(0x23c)}]},{'groupId':_0x5a4ac9(0x233),'groupLabel':_0x3e97dc(_0x1989be,_0x5a4ac9(0x23a)),'commands':[{'id':_0x5a4ac9(0x211),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x1d8))]),'prompt':_0x5a4ac9(0x23b)},{'id':_0x5a4ac9(0x1de),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x235))]),'prompt':_0x5a4ac9(0x1cf)},{'id':_0x5a4ac9(0x209),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x22a))]),'prompt':_0x5a4ac9(0x1ce)},{'id':_0x5a4ac9(0x1cc),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x232))]),'prompt':_0x5a4ac9(0x222)},{'id':_0x5a4ac9(0x224),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x207))]),'prompt':_0x5a4ac9(0x20c)},{'id':_0x5a4ac9(0x1e3),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x1cb))]),'prompt':_0x5a4ac9(0x1f9)},{'id':_0x5a4ac9(0x214),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x234))]),'prompt':_0x5a4ac9(0x1ea)},{'id':_0x5a4ac9(0x1e9),'label':_0x3e97dc(_0x1989be,_0x5a4ac9(0x225),[_0x3e97dc(_0x1989be,_0x5a4ac9(0x1d0))]),'prompt':_0x5a4ac9(0x229)}]}];}
23
+ const _0x58a5ff=_0x27ac;(function(_0x4050ee,_0x359747){const _0x286320=_0x27ac,_0x6e6426=_0x4050ee();while(!![]){try{const _0x2a214a=-parseInt(_0x286320(0x22c))/0x1+-parseInt(_0x286320(0x1f5))/0x2+parseInt(_0x286320(0x1f3))/0x3*(parseInt(_0x286320(0x239))/0x4)+parseInt(_0x286320(0x22e))/0x5+parseInt(_0x286320(0x20e))/0x6*(parseInt(_0x286320(0x21d))/0x7)+parseInt(_0x286320(0x225))/0x8*(parseInt(_0x286320(0x232))/0x9)+-parseInt(_0x286320(0x1de))/0xa*(parseInt(_0x286320(0x1fb))/0xb);if(_0x2a214a===_0x359747)break;else _0x6e6426['push'](_0x6e6426['shift']());}catch(_0x17797f){_0x6e6426['push'](_0x6e6426['shift']());}}}(_0x5ae8,0xa762b));function _0x27ac(_0x2c603f,_0x22df28){const _0x5ae8e8=_0x5ae8();return _0x27ac=function(_0x27ac1b,_0x3eafc1){_0x27ac1b=_0x27ac1b-0x1d2;let _0x1c8a83=_0x5ae8e8[_0x27ac1b];return _0x1c8a83;},_0x27ac(_0x2c603f,_0x22df28);}function _0x5ae8(){const _0x2a3fb5=['Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateChinese','requires','continue','Professional','find','French','20gQFwfk','aiLicenseKeyValid','translateArabic','aiLicenseKeyTrial','translateSpanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Direct','ai-invalid-license-key','Translate','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Poetic','legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','confident','Simplified\x20Chinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','English','Legal','info','aiLicenseKeyTrialLimit:operations','66HVeIaU','Journalism','732524TqCDeI','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20English\x20language.','Change\x20style','translateEnglish','business','1111286flrKsN','friendly','Portuguese','translatePortuguese','Translate\x20the\x20content\x20to\x20Hindi\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.','ai.aiAssistant.commands','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Confident','Hindi','aiLicenseKeyInvalid','Translate\x20the\x20content\x20to\x20French\x20language.','changeTone','Generate\x20from\x20selection','simplifyLanguage','translateGerman','44502fAtnNe','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','professional','improveWriting','Improve\x20writing','Translate\x20the\x20content\x20to\x20German\x20language.','German','filter','commands','editor','makeLonger','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','editOrReview','concat','destroy','301YNoINv','poetic','licenseKey','_licenseKeyCheckInterval','ai.aiAssistant.extraCommandGroups','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','generate','711888LZJHQj','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.','forEach','AIAssistant','changeStyle','Make\x20longer','locale','547697CzxdPd','get','673045VZlNrR','define','Change\x20tone','translate','126ewJbIv','ai-trial-license-key-reached-limit-changes','Business','translateHindi','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','init','18596pVILXM','casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Simplify\x20language','Continue','Translate\x20to\x20%0','translateFrench','Make\x20shorter','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','Friendly','direct','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','groupId','Edit\x20or\x20review','Arabic','Spanish','summarize','makeShorter','journalism','includes','ai.aiAssistant.removeCommands','set'];_0x5ae8=function(){return _0x2a3fb5;};return _0x5ae8();}import{CKEditorError as _0x1b2877}from'ckeditor5/src/utils.js';import{Plugin as _0x1cf647}from'ckeditor5/src/core.js';import _0x1fb744 from'./aiassistantui.js';import _0x3bf569 from'./aiassistantediting.js';import{getTranslation as _0x2c6bb5}from'./utils/common-translations.js';export default class r extends _0x1cf647{static get[_0x58a5ff(0x1d9)](){return[_0x1fb744,_0x3bf569];}static get[_0x58a5ff(0x202)](){const _0x495352=_0x58a5ff;return _0x495352(0x228);}constructor(_0x16d51c){const _0x472e11=_0x58a5ff;super(_0x16d51c);const _0x105196=_0x16d51c[_0x472e11(0x204)];_0x105196[_0x472e11(0x22f)](_0x472e11(0x201),getDefaultCommands(_0x16d51c[_0x472e11(0x22b)])),_0x105196[_0x472e11(0x22f)](_0x472e11(0x221),[]),_0x105196[_0x472e11(0x22f)](_0x472e11(0x1d5),[]);const _0x451ba4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x201)),_0x27032c=_0x105196[_0x472e11(0x22d)](_0x472e11(0x221)),_0x5343a4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x1d5));_0x27032c[_0x472e11(0x227)](_0x150a40=>{const _0x2a8ebf=_0x472e11,_0xd7d527=_0x451ba4[_0x2a8ebf(0x1dc)](_0x25363c=>_0x25363c[_0x2a8ebf(0x248)]===_0x150a40[_0x2a8ebf(0x248)]);_0xd7d527?_0xd7d527[_0x2a8ebf(0x216)]=_0xd7d527[_0x2a8ebf(0x216)][_0x2a8ebf(0x21b)](_0x150a40[_0x2a8ebf(0x216)]):_0x451ba4[_0x2a8ebf(0x222)](_0x150a40);}),_0x451ba4[_0x472e11(0x227)](_0x1ffc9c=>{const _0x567a7e=_0x472e11;_0x1ffc9c[_0x567a7e(0x216)]=_0x1ffc9c[_0x567a7e(0x216)][_0x567a7e(0x215)](_0x38eb6c=>!_0x5343a4[_0x567a7e(0x1d4)](_0x38eb6c['id']));}),_0x105196[_0x472e11(0x1d6)](_0x472e11(0x201),_0x451ba4);}[_0x58a5ff(0x238)](){const _0x49e9a8=_0x58a5ff,_0x27744f=this[_0x49e9a8(0x217)];this[_0x49e9a8(0x21f)]=_0x27744f[_0x49e9a8(0x204)][_0x49e9a8(0x22d)](_0x49e9a8(0x21f)),this[_0x49e9a8(0x220)]=setInterval(()=>{const _0x5d4f26=_0x49e9a8;let _0x5e01eb;for(const _0x5cb777 in _0x27744f){const _0x2c4a97=_0x5cb777,_0x2c77d7=_0x27744f[_0x2c4a97];if(_0x5d4f26(0x1e1)===_0x2c77d7||_0x5d4f26(0x208)===_0x2c77d7||_0x5d4f26(0x1df)===_0x2c77d7||_0x5d4f26(0x1f2)===_0x2c77d7){delete _0x27744f[_0x2c4a97],_0x5e01eb=_0x2c77d7;break;}}if(_0x5d4f26(0x208)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x1e5),null);if(_0x5d4f26(0x1e1)===_0x5e01eb&&console[_0x5d4f26(0x1f1)](_0x5d4f26(0x226)),_0x5d4f26(0x1f2)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x233),null);_0x5d4f26(0x1df)===_0x5e01eb&&clearInterval(this[_0x5d4f26(0x220)]);},0x3e8);}[_0x58a5ff(0x21c)](){const _0x4a307d=_0x58a5ff;this[_0x4a307d(0x220)]&&clearInterval(this[_0x4a307d(0x220)]);}}export function getDefaultCommands(_0xa3b77b){const _0x57ace8=_0x58a5ff;return[{'groupId':_0x57ace8(0x21a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x249)),'commands':[{'id':_0x57ace8(0x211),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x212)),'prompt':_0x57ace8(0x203)},{'id':_0x57ace8(0x1d2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x242)),'prompt':_0x57ace8(0x243)},{'id':_0x57ace8(0x218),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x22a)),'prompt':_0x57ace8(0x236)},{'id':_0x57ace8(0x20c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23e)),'prompt':_0x57ace8(0x237)}]},{'groupId':_0x57ace8(0x224),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x20b)),'commands':[{'id':_0x57ace8(0x24c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x244)),'prompt':_0x57ace8(0x200)},{'id':_0x57ace8(0x1da),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23f)),'prompt':_0x57ace8(0x23b)}]},{'groupId':_0x57ace8(0x20a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x230)),'commands':[{'id':_0x57ace8(0x210),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1db)),'prompt':_0x57ace8(0x247)},{'id':_0x57ace8(0x23a),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23d)),'prompt':_0x57ace8(0x1d7)},{'id':_0x57ace8(0x246),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e4)),'prompt':_0x57ace8(0x1ee)},{'id':_0x57ace8(0x1eb),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x206)),'prompt':_0x57ace8(0x1e3)},{'id':_0x57ace8(0x1fc),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x245)),'prompt':_0x57ace8(0x1ed)}]},{'groupId':_0x57ace8(0x229),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f8)),'commands':[{'id':_0x57ace8(0x1fa),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x234)),'prompt':_0x57ace8(0x1e7)},{'id':_0x57ace8(0x1e9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f0)),'prompt':_0x57ace8(0x1f6)},{'id':_0x57ace8(0x1d3),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f4)),'prompt':_0x57ace8(0x205)},{'id':_0x57ace8(0x21e),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e8)),'prompt':_0x57ace8(0x23c)}]},{'groupId':_0x57ace8(0x231),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e6)),'commands':[{'id':_0x57ace8(0x1f9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ef))]),'prompt':_0x57ace8(0x1f7)},{'id':_0x57ace8(0x1e2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24b))]),'prompt':_0x57ace8(0x223)},{'id':_0x57ace8(0x1fe),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1fd))]),'prompt':_0x57ace8(0x219)},{'id':_0x57ace8(0x20d),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x214))]),'prompt':_0x57ace8(0x213)},{'id':_0x57ace8(0x241),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1dd))]),'prompt':_0x57ace8(0x209)},{'id':_0x57ace8(0x1d8),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ec))]),'prompt':_0x57ace8(0x20f)},{'id':_0x57ace8(0x235),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x207))]),'prompt':_0x57ace8(0x1ff)},{'id':_0x57ace8(0x1e0),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24a))]),'prompt':_0x57ace8(0x1ea)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x105360=_0x3543;(function(_0x47778d,_0x2bf7db){const _0xc26880=_0x3543,_0x364f70=_0x47778d();while(!![]){try{const _0x290844=parseInt(_0xc26880(0x1c4))/0x1+-parseInt(_0xc26880(0x1cc))/0x2+-parseInt(_0xc26880(0x1e1))/0x3*(-parseInt(_0xc26880(0x1ff))/0x4)+-parseInt(_0xc26880(0x1d1))/0x5+parseInt(_0xc26880(0x1dd))/0x6+-parseInt(_0xc26880(0x1d9))/0x7+parseInt(_0xc26880(0x1fb))/0x8;if(_0x290844===_0x2bf7db)break;else _0x364f70['push'](_0x364f70['shift']());}catch(_0x22dab6){_0x364f70['push'](_0x364f70['shift']());}}}(_0x5312,0xd5512));function _0x3543(_0x1a05ec,_0xe091ed){const _0x531225=_0x5312();return _0x3543=function(_0x3543b1,_0x3c1127){_0x3543b1=_0x3543b1-0x1c4;let _0x36db15=_0x531225[_0x3543b1];return _0x36db15;},_0x3543(_0x1a05ec,_0xe091ed);}import{Plugin as _0xbc2568}from'ckeditor5/src/core.js';const s=_0x105360(0x201),c=_0x105360(0x1d4);function _0x5312(){const _0x279f6a=['addMarker','insertContentBelow','AIAssistantEditing','createSelection','editor','end','createRange','change','data','setSelection','pluginName','start','processor','markerToElement','get','ck-fake-ai-selection_collapsed','schema','getLastMatchingPosition','for','ck-ai-assistant-ui_theme','ai.useTheme','pop','push','span','markers','9354056vyLfkY','hideFakeVisualSelection','config','from','18904DcEjUJ','isAtEnd','ai-ui','editingDowncast','696873dKDmvz','markerToHighlight','has','createPositionAfter','init','conversion','canEditAt','getFirstRange','1477748XOxCIj','updateMarker','getLastPosition','toView','selection','7801185EhQWuU','document','removeMarker','ai-ui-candidate','length','toModel','getSelectedBlocks','ck-fake-ai-selection-candidate','11706667gQBVJq','ck-fake-ai-selection','model','isContent','9594696ctUTMi','getRange','showFakeVisualSelection','insertContent','876hhVokp'];_0x5312=function(){return _0x279f6a;};return _0x5312();}export default class i extends _0xbc2568{static get[_0x105360(0x1ec)](){const _0x1b40b9=_0x105360;return _0x1b40b9(0x1e4);}[_0x105360(0x1c8)](){const _0x52be80=_0x105360,{editor:_0x11bbdf}=this,_0x1781ac=[_0x52be80(0x1da)];_0x11bbdf[_0x52be80(0x1fd)][_0x52be80(0x1f0)](_0x52be80(0x1f6))&&_0x1781ac[_0x52be80(0x1f8)](_0x52be80(0x1f5)),_0x11bbdf[_0x52be80(0x1c9)][_0x52be80(0x1f4)](_0x52be80(0x202))[_0x52be80(0x1c5)]({'model':s,'view':{'classes':_0x1781ac,'priority':0xc}}),_0x11bbdf[_0x52be80(0x1c9)][_0x52be80(0x1f4)](_0x52be80(0x202))[_0x52be80(0x1ef)]({'model':s,'view':{'name':_0x52be80(0x1f9),'classes':[_0x52be80(0x1da),_0x52be80(0x1f1)],'priority':0xc}}),_0x11bbdf[_0x52be80(0x1c9)][_0x52be80(0x1f4)](_0x52be80(0x202))[_0x52be80(0x1c5)]({'model':c,'view':{'classes':[_0x52be80(0x1d8)],'priority':0x19}}),_0x11bbdf[_0x52be80(0x1c9)][_0x52be80(0x1f4)](_0x52be80(0x202))[_0x52be80(0x1ef)]({'model':c,'view':{'name':_0x52be80(0x1f9),'classes':[_0x52be80(0x1d8),_0x52be80(0x1f1)],'priority':0x19}});}[_0x105360(0x1df)](_0x5ce547){const _0x40580b=_0x105360,_0x3478ed=this[_0x40580b(0x1e6)][_0x40580b(0x1db)],_0x3538d1=_0x5ce547?c:s;_0x3478ed[_0x40580b(0x1e9)](_0x7ef66a=>{const _0x173bca=_0x40580b,_0x38c3df=_0x3478ed[_0x173bca(0x1d2)][_0x173bca(0x1d0)][_0x173bca(0x1cb)]();if(_0x3478ed[_0x173bca(0x1fa)][_0x173bca(0x1c6)](_0x3538d1))_0x7ef66a[_0x173bca(0x1cd)](_0x3538d1,{'range':_0x38c3df});else{if(_0x38c3df[_0x173bca(0x1ed)][_0x173bca(0x200)]){const _0x34025b=_0x38c3df[_0x173bca(0x1ed)][_0x173bca(0x1f3)](({item:_0x1602ac})=>!_0x3478ed[_0x173bca(0x1f2)][_0x173bca(0x1dc)](_0x1602ac),{'boundaries':_0x38c3df});_0x7ef66a[_0x173bca(0x1e2)](_0x3538d1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x7ef66a[_0x173bca(0x1e8)](_0x34025b,_0x38c3df[_0x173bca(0x1e7)])});}else _0x7ef66a[_0x173bca(0x1e2)](_0x3538d1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x38c3df});}});}[_0x105360(0x1fc)](_0x4cd3c7){const _0x2b3ba0=_0x105360,_0x5a2a34=this[_0x2b3ba0(0x1e6)][_0x2b3ba0(0x1db)],_0x518727=_0x4cd3c7?c:s;_0x5a2a34[_0x2b3ba0(0x1fa)][_0x2b3ba0(0x1c6)](_0x518727)&&_0x5a2a34[_0x2b3ba0(0x1e9)](_0x4d0204=>{const _0x49e4ae=_0x2b3ba0;_0x4d0204[_0x49e4ae(0x1d3)](_0x518727);});}[_0x105360(0x1e0)](_0x4c74a9,_0x29a73a){const _0x2c8d95=_0x105360,_0x4aec8e=_0x29a73a||this[_0x2c8d95(0x1e6)][_0x2c8d95(0x1db)][_0x2c8d95(0x1fa)][_0x2c8d95(0x1f0)](s)[_0x2c8d95(0x1de)]();if(!this[_0x2c8d95(0x1e6)][_0x2c8d95(0x1db)][_0x2c8d95(0x1ca)](_0x4aec8e))return;const _0x3a7530=this[_0x2c8d95(0x1e6)][_0x2c8d95(0x1ea)][_0x2c8d95(0x1ee)][_0x2c8d95(0x1cf)](_0x4c74a9),_0x52efc3=this[_0x2c8d95(0x1e6)][_0x2c8d95(0x1ea)][_0x2c8d95(0x1d6)](_0x3a7530);this[_0x2c8d95(0x1e6)][_0x2c8d95(0x1db)][_0x2c8d95(0x1e9)](_0x40d01f=>{const _0x413250=_0x2c8d95;this[_0x413250(0x1fc)]();const _0x7052d=this[_0x413250(0x1e6)][_0x413250(0x1db)][_0x413250(0x1e0)](_0x52efc3,_0x4aec8e);_0x7052d&&_0x40d01f[_0x413250(0x1eb)](_0x7052d);});}[_0x105360(0x1e3)](_0x499bff){const _0x15c9f5=_0x105360,{model:_0x481d2c}=this[_0x15c9f5(0x1e6)],_0x59b54a=Array[_0x15c9f5(0x1fe)](_0x481d2c[_0x15c9f5(0x1e5)](this[_0x15c9f5(0x1e6)][_0x15c9f5(0x1db)][_0x15c9f5(0x1fa)][_0x15c9f5(0x1f0)](s)[_0x15c9f5(0x1de)]())[_0x15c9f5(0x1d7)]()),_0x33080f=_0x59b54a[_0x15c9f5(0x1d5)]?_0x481d2c[_0x15c9f5(0x1c7)](_0x59b54a[_0x15c9f5(0x1f7)]()):_0x481d2c[_0x15c9f5(0x1d2)][_0x15c9f5(0x1d0)][_0x15c9f5(0x1ce)]();this[_0x15c9f5(0x1e0)](_0x499bff,_0x33080f);}}
23
+ function _0x45a3(){const _0x124981=['from','editingDowncast','init','start','toModel','addMarker','canEditAt','12064217QHXStk','94lmUknq','ai.useTheme','ck-fake-ai-selection_collapsed','ck-ai-assistant-ui_theme','length','ai-ui-candidate','end','77272kqqgBF','ai-ui','span','getLastPosition','42CLBVEe','ck-fake-ai-selection','createRange','removeMarker','change','selection','push','markers','966965lxMeER','data','get','insertContentBelow','processor','has','720474CnUtwd','ck-fake-ai-selection-candidate','489486CPPvlF','hideFakeVisualSelection','getRange','schema','insertContent','pluginName','getSelectedBlocks','24JDAhVB','updateMarker','config','1080bSpoIM','pop','isContent','conversion','toView','getLastMatchingPosition','document','markerToHighlight','createSelection','11441930FkWLjV','markerToElement','setSelection','20799uVpuHS','for','isAtEnd','showFakeVisualSelection','editor','getFirstRange','model','AIAssistantEditing','12zSIkul','createPositionAfter'];_0x45a3=function(){return _0x124981;};return _0x45a3();}const _0xd85f82=_0x2402;function _0x2402(_0x1f8fdb,_0xd88c8d){const _0x45a370=_0x45a3();return _0x2402=function(_0x24022f,_0x32ef36){_0x24022f=_0x24022f-0x1e7;let _0x3a2591=_0x45a370[_0x24022f];return _0x3a2591;},_0x2402(_0x1f8fdb,_0xd88c8d);}(function(_0x246fc8,_0x16b6e9){const _0x533a47=_0x2402,_0x7e5d22=_0x246fc8();while(!![]){try{const _0x4233c9=-parseInt(_0x533a47(0x20e))/0x1+-parseInt(_0x533a47(0x1f3))/0x2*(parseInt(_0x533a47(0x224))/0x3)+-parseInt(_0x533a47(0x215))/0x4*(-parseInt(_0x533a47(0x206))/0x5)+parseInt(_0x533a47(0x20c))/0x6*(-parseInt(_0x533a47(0x1fe))/0x7)+-parseInt(_0x533a47(0x1fa))/0x8*(-parseInt(_0x533a47(0x218))/0x9)+parseInt(_0x533a47(0x221))/0xa+-parseInt(_0x533a47(0x1f2))/0xb*(parseInt(_0x533a47(0x1e9))/0xc);if(_0x4233c9===_0x16b6e9)break;else _0x7e5d22['push'](_0x7e5d22['shift']());}catch(_0x5c44c8){_0x7e5d22['push'](_0x7e5d22['shift']());}}}(_0x45a3,0xcae61));import{Plugin as _0x105ae9}from'ckeditor5/src/core.js';const s=_0xd85f82(0x1fb),c=_0xd85f82(0x1f8);export default class i extends _0x105ae9{static get[_0xd85f82(0x213)](){const _0x23cbcf=_0xd85f82;return _0x23cbcf(0x1e8);}[_0xd85f82(0x1ed)](){const _0x194260=_0xd85f82,{editor:_0x49a324}=this,_0x4e4cda=[_0x194260(0x1ff)];_0x49a324[_0x194260(0x217)][_0x194260(0x208)](_0x194260(0x1f4))&&_0x4e4cda[_0x194260(0x204)](_0x194260(0x1f6)),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':s,'view':{'classes':_0x4e4cda,'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':s,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x1ff),_0x194260(0x1f5)],'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':c,'view':{'classes':[_0x194260(0x20d)],'priority':0x19}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':c,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x20d),_0x194260(0x1f5)],'priority':0x19}});}[_0xd85f82(0x227)](_0x56b32a){const _0x38a7cb=_0xd85f82,_0x8906dd=this[_0x38a7cb(0x228)][_0x38a7cb(0x1e7)],_0x36da1a=_0x56b32a?c:s;_0x8906dd[_0x38a7cb(0x202)](_0x8ea6a0=>{const _0xa122e8=_0x38a7cb,_0x446523=_0x8906dd[_0xa122e8(0x21e)][_0xa122e8(0x203)][_0xa122e8(0x229)]();if(_0x8906dd[_0xa122e8(0x205)][_0xa122e8(0x20b)](_0x36da1a))_0x8ea6a0[_0xa122e8(0x216)](_0x36da1a,{'range':_0x446523});else{if(_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x226)]){const _0x26b98c=_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x21d)](({item:_0x437733})=>!_0x8906dd[_0xa122e8(0x211)][_0xa122e8(0x21a)](_0x437733),{'boundaries':_0x446523});_0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8ea6a0[_0xa122e8(0x200)](_0x26b98c,_0x446523[_0xa122e8(0x1f9)])});}else _0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x446523});}});}[_0xd85f82(0x20f)](_0x2a0c5f){const _0x1b9844=_0xd85f82,_0x2d4c37=this[_0x1b9844(0x228)][_0x1b9844(0x1e7)],_0xa2ce47=_0x2a0c5f?c:s;_0x2d4c37[_0x1b9844(0x205)][_0x1b9844(0x20b)](_0xa2ce47)&&_0x2d4c37[_0x1b9844(0x202)](_0x3b827b=>{const _0xa54be6=_0x1b9844;_0x3b827b[_0xa54be6(0x201)](_0xa2ce47);});}[_0xd85f82(0x212)](_0x5c5d18,_0x239997){const _0x5cbaca=_0xd85f82,_0x570547=_0x239997||this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x205)][_0x5cbaca(0x208)](s)[_0x5cbaca(0x210)]();if(!this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x1f1)](_0x570547))return;const _0xe7f91=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x20a)][_0x5cbaca(0x21c)](_0x5c5d18),_0x5e0813=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x1ef)](_0xe7f91);this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x202)](_0x2b55d8=>{const _0x5f325c=_0x5cbaca;this[_0x5f325c(0x20f)]();const _0x41b1c3=this[_0x5f325c(0x228)][_0x5f325c(0x1e7)][_0x5f325c(0x212)](_0x5e0813,_0x570547);_0x41b1c3&&_0x2b55d8[_0x5f325c(0x223)](_0x41b1c3);});}[_0xd85f82(0x209)](_0x382e9d){const _0x4b4d96=_0xd85f82,{model:_0x328848}=this[_0x4b4d96(0x228)],_0x4f8811=Array[_0x4b4d96(0x1eb)](_0x328848[_0x4b4d96(0x220)](this[_0x4b4d96(0x228)][_0x4b4d96(0x1e7)][_0x4b4d96(0x205)][_0x4b4d96(0x208)](s)[_0x4b4d96(0x210)]())[_0x4b4d96(0x214)]()),_0x371e7b=_0x4f8811[_0x4b4d96(0x1f7)]?_0x328848[_0x4b4d96(0x1ea)](_0x4f8811[_0x4b4d96(0x219)]()):_0x328848[_0x4b4d96(0x21e)][_0x4b4d96(0x203)][_0x4b4d96(0x1fd)]();this[_0x4b4d96(0x212)](_0x382e9d,_0x371e7b);}}