@ckeditor/ckeditor5-ai 0.0.0-nightly-20240417.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-20240417.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-20240417.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240417.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-20240417.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
- function _0xdd7b(){var _0x43e093=['3725415iWIxqt','pluginName','226bWGxVt','1573xTpRvQ','233464WCPLso','AIRequestError','42NBYGjF','2882590XNdcIe','aiadapter-text-adapter-not-set','afterInit','name','26916tJZvDL','AIAdapter','textAdapter','930003bsjbLd','358001ehrLPD','180xxgduV'];_0xdd7b=function(){return _0x43e093;};return _0xdd7b();}var _0x92e66d=_0x3b19;(function(_0x38fbd1,_0x1b358f){var _0x5aeec=_0x3b19,_0x4455db=_0x38fbd1();while(!![]){try{var _0x18e0fb=-parseInt(_0x5aeec(0x77))/0x1*(parseInt(_0x5aeec(0x76))/0x2)+-parseInt(_0x5aeec(0x71))/0x3+-parseInt(_0x5aeec(0x6e))/0x4*(-parseInt(_0x5aeec(0x73))/0x5)+-parseInt(_0x5aeec(0x7a))/0x6*(-parseInt(_0x5aeec(0x72))/0x7)+-parseInt(_0x5aeec(0x78))/0x8+parseInt(_0x5aeec(0x74))/0x9+-parseInt(_0x5aeec(0x6a))/0xa;if(_0x18e0fb===_0x1b358f)break;else _0x4455db['push'](_0x4455db['shift']());}catch(_0x54d1d6){_0x4455db['push'](_0x4455db['shift']());}}}(_0xdd7b,0x3305c));import{Plugin as _0x536c4e}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d9300}from'ckeditor5/src/utils.js';export default class y extends _0x536c4e{static get[_0x92e66d(0x75)](){var _0x10c40e=_0x92e66d;return _0x10c40e(0x6f);}[_0x92e66d(0x6c)](){var _0x51aade=_0x92e66d;if(!this[_0x51aade(0x70)])throw new _0x2d9300(_0x51aade(0x6b),null);}}function _0x3b19(_0x1155e1,_0x176e3d){var _0xdd7b74=_0xdd7b();return _0x3b19=function(_0x3b1987,_0x221962){_0x3b1987=_0x3b1987-0x6a;var _0x18f358=_0xdd7b74[_0x3b1987];return _0x18f358;},_0x3b19(_0x1155e1,_0x176e3d);}export class AIRequestError extends Error{constructor(_0x40daab){var _0x492f41=_0x92e66d;super(_0x40daab),this[_0x492f41(0x6d)]=_0x492f41(0x79);}}
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 _0x2e5fd7=_0x58a8;(function(_0x296538,_0x3fd437){const _0x14660b=_0x58a8,_0x341435=_0x296538();while(!![]){try{const _0x23cca6=parseInt(_0x14660b(0x1bc))/0x1+-parseInt(_0x14660b(0x19c))/0x2*(-parseInt(_0x14660b(0x1b4))/0x3)+-parseInt(_0x14660b(0x1b0))/0x4+parseInt(_0x14660b(0x1a0))/0x5*(-parseInt(_0x14660b(0x1b7))/0x6)+-parseInt(_0x14660b(0x1ac))/0x7+-parseInt(_0x14660b(0x1a2))/0x8*(-parseInt(_0x14660b(0x1a4))/0x9)+parseInt(_0x14660b(0x1be))/0xa*(parseInt(_0x14660b(0x19a))/0xb);if(_0x23cca6===_0x3fd437)break;else _0x341435['push'](_0x341435['shift']());}catch(_0x3c6ff8){_0x341435['push'](_0x341435['shift']());}}}(_0x1460,0xc2edc));function _0x1460(){const _0x5803cb=['abortController','50OjcIje','get','5300933JTcKWD','AI_ERROR_GET_HEADERS','2RRUeCt','AI_ERROR_GET_PARAMETERS','editor','plugins','84310WuDYbt','signal','1466224DDxsyZ','abort','36wnbBJI','init','aitextadapter-send-request-failed','AbortError','textAdapter','sendRequest','makeRequest','error','10616158MGOwcl','_prepareRequestHeaders','application/json','catch','1162416VUBHZx','object','aborted','name','838062vbCLkq','reject','assign','312FdjzUG','_prepareRequestParameters','requires','locale','resolve','60469Fcladr'];_0x1460=function(){return _0x5803cb;};return _0x1460();}import{Plugin as _0x2fad7c}from'ckeditor5/src/core.js';import{CKEditorError as _0x198812}from'ckeditor5/src/utils.js';import{default as _0x5c433a,AIRequestError as _0x4f18f4}from'./aiadapter.js';function _0x58a8(_0x5c50d4,_0x37b59f){const _0x146086=_0x1460();return _0x58a8=function(_0x58a882,_0x1ee48a){_0x58a882=_0x58a882-0x19a;let _0x18cae2=_0x146086[_0x58a882];return _0x18cae2;},_0x58a8(_0x5c50d4,_0x37b59f);}import{getTranslation as _0x4e57a6}from'../utils/common-translations.js';export default class P extends _0x2fad7c{static get[_0x2e5fd7(0x1b9)](){return[_0x5c433a];}constructor(_0x290c15){const _0x685bd1=_0x2e5fd7;super(_0x290c15),this[_0x685bd1(0x1bd)]=new AbortController();}[_0x2e5fd7(0x1a5)](){const _0x3d5941=_0x2e5fd7;this[_0x3d5941(0x19e)][_0x3d5941(0x19f)][_0x3d5941(0x1bf)](_0x5c433a)[_0x3d5941(0x1a8)]=this;}[_0x2e5fd7(0x1a3)](){const _0x4e3de8=_0x2e5fd7;this[_0x4e3de8(0x1bd)][_0x4e3de8(0x1a1)][_0x4e3de8(0x1b2)]||(this[_0x4e3de8(0x1bd)][_0x4e3de8(0x1a3)](),this[_0x4e3de8(0x1bd)]=new AbortController());}async[_0x2e5fd7(0x1aa)](_0x20d3a1){const _0x4a90eb=_0x2e5fd7;return this[_0x4a90eb(0x1a9)](_0x20d3a1)[_0x4a90eb(0x1af)](_0x3130e4=>{const _0x4ebd36=_0x4a90eb;if(_0x3130e4 instanceof _0x4f18f4)return Promise[_0x4ebd36(0x1b5)](_0x3130e4);if(_0x4ebd36(0x1a7)==_0x3130e4[_0x4ebd36(0x1b3)])return Promise[_0x4ebd36(0x1bb)]();throw console[_0x4ebd36(0x1ab)](_0x3130e4),new _0x198812(_0x4ebd36(0x1a6),null);});}async[_0x2e5fd7(0x1ad)](_0x23a873,_0x15c5dd){const _0x3257b1=_0x2e5fd7,_0x43e6f4=this[_0x3257b1(0x19e)][_0x3257b1(0x1ba)],_0x3db1ff={'Content-Type':_0x3257b1(0x1ae)};if(_0x3257b1(0x1b1)==typeof _0x23a873)Object[_0x3257b1(0x1b6)](_0x3db1ff,_0x23a873);else{if(_0x23a873)try{const _0x5a1529=await _0x23a873(_0x15c5dd);Object[_0x3257b1(0x1b6)](_0x3db1ff,_0x5a1529);}catch(_0x4eb5d8){return Promise[_0x3257b1(0x1b5)](new _0x4f18f4(_0x4e57a6(_0x43e6f4,_0x3257b1(0x19b))));}}return _0x3db1ff;}async[_0x2e5fd7(0x1b8)](_0x1210ff,_0x45874c){const _0x1e6bf3=_0x2e5fd7,_0x14c465=this[_0x1e6bf3(0x19e)][_0x1e6bf3(0x1ba)];if(_0x1e6bf3(0x1b1)==typeof _0x1210ff)return _0x1210ff;try{return await _0x1210ff(_0x45874c);}catch(_0x305489){return Promise[_0x1e6bf3(0x1b5)](new _0x4f18f4(_0x4e57a6(_0x14c465,_0x1e6bf3(0x19d))));}}}
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
- const _0x374b85=_0x37e6;(function(_0x52f1a1,_0x4e6adf){const _0x1d4869=_0x37e6,_0x466e3e=_0x52f1a1();while(!![]){try{const _0x4be552=-parseInt(_0x1d4869(0x1a2))/0x1*(-parseInt(_0x1d4869(0x1b1))/0x2)+parseInt(_0x1d4869(0x19a))/0x3+parseInt(_0x1d4869(0x185))/0x4+-parseInt(_0x1d4869(0x1b4))/0x5*(-parseInt(_0x1d4869(0x18e))/0x6)+parseInt(_0x1d4869(0x1b8))/0x7+parseInt(_0x1d4869(0x18a))/0x8+-parseInt(_0x1d4869(0x1a1))/0x9*(parseInt(_0x1d4869(0x181))/0xa);if(_0x4be552===_0x4e6adf)break;else _0x466e3e['push'](_0x466e3e['shift']());}catch(_0xac6778){_0x466e3e['push'](_0x466e3e['shift']());}}}(_0x2146,0x6b453));import{default as _0x29963e}from'./aitextadapter.js';function _0x2146(){const _0x1e6bd9=['application/json','\x0a[/INST]','utf-8','stringify','getModelFamily','split','anthropic.claude','10fvDTCa','signal','_requestHeaders','_requestParameters','3159052SzBexm','AWSTextAdapter','pluginName','_readStaticResponse','ai.aws.apiUrl','3040936cWFluv','_prepareRequestHeaders','utf8','completions','36wzXThS','parse','bedrock-2023-05-31','from','define','data','read','send','meta.llama','_processProxyRequest','AI_ERROR_UNSUPPORTED_MODEL','_processAWSRequest','2355348lfvrwM','getReader','text','chunk','Human:\x0a','preparePrompt','ai.aws.requestHeaders','28707678SuMZkH','527CRpXSY','map','\x0a\x0aAssistant:','anthropic.claude-v2','POST','body','_apiUrl','cohere.command','generation','ai.aws.requestParameters','sendRequest','ai21.j2','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','generations','2158KFFLos','config','test','581150rDMVaf','locale','<<SYS>>\x0a','bytes','2856784JoxDyv','_readStreamableResponse','filter','ai.aws.bedrockClientConfig','get','_getGeneratedText','decode','\x0a<</SYS>>\x0a[INST]\x0a','editor','abortController','toString','completion','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.','Instruction:\x0a','join','length','_prepareRequestParameters','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.','_readAsyncIterableResponse','_bedrockClientConfig','json'];_0x2146=function(){return _0x1e6bd9;};return _0x2146();}import{AIRequestError as _0x4421e8}from'./aiadapter.js';import{BedrockRuntimeClient as _0x389ec3,InvokeModelCommand as _0xc65c08,InvokeModelWithResponseStreamCommand as _0x3de1fd}from'@aws-sdk/client-bedrock-runtime';function _0x37e6(_0x5cb151,_0x1aaca8){const _0x2146cc=_0x2146();return _0x37e6=function(_0x37e6a3,_0x4d8656){_0x37e6a3=_0x37e6a3-0x16c;let _0x41601c=_0x2146cc[_0x37e6a3];return _0x41601c;},_0x37e6(_0x5cb151,_0x1aaca8);}import{getTranslation as _0x135a29}from'../utils/common-translations.js';export default class J extends _0x29963e{static get[_0x374b85(0x187)](){const _0x45b949=_0x374b85;return _0x45b949(0x186);}constructor(_0x573971){const _0x255164=_0x374b85;super(_0x573971),_0x573971[_0x255164(0x1b2)][_0x255164(0x1bc)](_0x255164(0x1ab))||_0x573971[_0x255164(0x1b2)][_0x255164(0x192)](_0x255164(0x1ab),{'model':_0x255164(0x1a5),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x255164(0x190),'stream':!0x0}),this[_0x255164(0x1a8)]=_0x573971[_0x255164(0x1b2)][_0x255164(0x1bc)](_0x255164(0x189)),this[_0x255164(0x178)]=_0x573971[_0x255164(0x1b2)][_0x255164(0x1bc)](_0x255164(0x1bb)),this[_0x255164(0x183)]=_0x573971[_0x255164(0x1b2)][_0x255164(0x1bc)](_0x255164(0x1a0)),this[_0x255164(0x184)]=_0x573971[_0x255164(0x1b2)][_0x255164(0x1bc)](_0x255164(0x1ab));}async[_0x374b85(0x1ac)]({query:_0x5623eb,context:_0x330a0b,onData:_0x4366c1,actionId:_0x4ef9f6}){const _0x3b81e5=_0x374b85,{model:_0x109975,stream:_0x3f75fa,..._0x27b104}=await this[_0x3b81e5(0x175)](this[_0x3b81e5(0x184)],_0x4ef9f6),_0x55474d={'prompt':await this[_0x3b81e5(0x19f)](_0x5623eb,_0x330a0b,_0x109975,_0x4ef9f6),..._0x27b104};this[_0x3b81e5(0x1a8)]?await this[_0x3b81e5(0x197)](_0x55474d,_0x109975,_0x3f75fa,_0x4366c1,_0x4ef9f6):await this[_0x3b81e5(0x199)](_0x55474d,_0x109975,_0x3f75fa,_0x4366c1);}async[_0x374b85(0x19f)](_0x215f2c,_0x11f24e,_0x4401d6,_0x5de31d){const _0x5c9b89=_0x374b85;let _0x44aebd,_0x3241b1;return _0x11f24e?(_0x44aebd=_0x5c9b89(0x171),_0x3241b1=_0x5c9b89(0x172)+_0x215f2c+_0x5c9b89(0x1ae)+_0x11f24e):(_0x44aebd=_0x5c9b89(0x176),_0x3241b1=_0x215f2c),_0x5c9b89(0x196)==this[_0x5c9b89(0x17e)](_0x4401d6)?_0x5c9b89(0x1b6)+_0x44aebd+_0x5c9b89(0x16c)+_0x3241b1+_0x5c9b89(0x17b):_0x5c9b89(0x19e)+_0x44aebd+'\x0a'+_0x3241b1+_0x5c9b89(0x1a4);}[_0x374b85(0x17e)](_0x568b08){const _0x275f6c=_0x374b85;if(/^anthropic\.claude/[_0x275f6c(0x1b3)](_0x568b08))return _0x275f6c(0x180);if(/^ai21\.j2/[_0x275f6c(0x1b3)](_0x568b08))return _0x275f6c(0x1ad);if(/^cohere\.command/[_0x275f6c(0x1b3)](_0x568b08))return _0x275f6c(0x1a9);if(/^meta\.llama/[_0x275f6c(0x1b3)](_0x568b08))return _0x275f6c(0x196);throw new _0x4421e8(_0x135a29(this[_0x275f6c(0x16d)][_0x275f6c(0x1b5)],_0x275f6c(0x198),_0x568b08));}async[_0x374b85(0x197)](_0x3c14ff,_0xe78651,_0x109a35,_0x7025fa,_0x43a747){const _0x138fa1=_0x374b85,_0x199b86={'method':_0x138fa1(0x1a6),'headers':await this[_0x138fa1(0x18b)](this[_0x138fa1(0x183)],_0x43a747),'body':JSON[_0x138fa1(0x17d)]({..._0x3c14ff,'model':_0xe78651,'stream':_0x109a35}),'signal':this[_0x138fa1(0x16e)][_0x138fa1(0x182)]},_0x2ad73c=await fetch(this[_0x138fa1(0x1a8)],_0x199b86);_0x109a35?await this[_0x138fa1(0x1b9)](_0x2ad73c,_0xe78651,_0x7025fa):await this[_0x138fa1(0x188)](_0x2ad73c,_0xe78651,_0x7025fa);}async[_0x374b85(0x199)](_0x3be9e1,_0x7c1742,_0x3d85b0,_0xca1b8a){const _0x41ef3a=_0x374b85,_0x2e0ac1=new _0x389ec3(this[_0x41ef3a(0x178)]),_0x176df5={'body':JSON[_0x41ef3a(0x17d)](_0x3be9e1),'contentType':_0x41ef3a(0x17a),'accept':_0x41ef3a(0x17a),'modelId':_0x7c1742};let _0x34768e;if(_0x3d85b0){const _0x35aedb=new _0x3de1fd(_0x176df5);_0x34768e=await _0x2e0ac1[_0x41ef3a(0x195)](_0x35aedb,{'abortSignal':this[_0x41ef3a(0x16e)][_0x41ef3a(0x182)]}),await this[_0x41ef3a(0x177)](_0x34768e,_0x7c1742,_0xca1b8a);}else{const _0x50f674=new _0xc65c08(_0x176df5);_0x34768e=await _0x2e0ac1[_0x41ef3a(0x195)](_0x50f674,{'abortSignal':this[_0x41ef3a(0x16e)][_0x41ef3a(0x182)]}),await this[_0x41ef3a(0x188)](_0x34768e,_0x7c1742,_0xca1b8a);}}async[_0x374b85(0x177)](_0x184d87,_0x3cd922,_0x1ad09a){const _0x25345d=_0x374b85,_0x22ae44=_0x184d87[_0x25345d(0x1a7)],_0x6f3f5d=new TextDecoder(_0x25345d(0x17c));let _0x53ba0a='';for await(const _0x3d6aaa of _0x22ae44)if(_0x3d6aaa[_0x25345d(0x19d)]){const _0x51af2f=_0x6f3f5d[_0x25345d(0x1be)](_0x3d6aaa[_0x25345d(0x19d)][_0x25345d(0x1b7)]),_0x1d5d2a=JSON[_0x25345d(0x18f)](_0x51af2f);_0x53ba0a+=this[_0x25345d(0x1bd)](_0x1d5d2a,_0x3cd922),_0x1ad09a(_0x53ba0a);}return Promise[_0x25345d(0x1af)]();}async[_0x374b85(0x1b9)](_0x2eee70,_0x5e78a3,_0x2eb4ec){const _0x46ee06=_0x374b85,_0x3f5ea1=_0x2eee70[_0x46ee06(0x1a7)],_0x1714c7=new TextDecoder(_0x46ee06(0x17c)),_0x1a4b11=_0x3f5ea1[_0x46ee06(0x19b)]();let _0x51ebd='',_0x358111='',_0x59383a=!0x1;for(;!_0x59383a;){const {done:_0x448b9b,value:_0x118c72}=await _0x1a4b11[_0x46ee06(0x194)]();if(_0x59383a=_0x448b9b,_0x59383a)break;const _0x45da3e=(_0x51ebd+_0x1714c7[_0x46ee06(0x1be)](_0x118c72))[_0x46ee06(0x17f)]('\x0a')[_0x46ee06(0x1a3)](_0x403988=>{const _0x26fcb7=_0x46ee06;try{return _0x51ebd='',JSON[_0x26fcb7(0x18f)](_0x403988);}catch(_0x235d32){return _0x51ebd=_0x403988,null;}})[_0x46ee06(0x1ba)](_0x34a0bb=>null!==_0x34a0bb);_0x45da3e[_0x46ee06(0x174)]&&(_0x358111+=_0x45da3e[_0x46ee06(0x1a3)](_0xdceba9=>this[_0x46ee06(0x1bd)](_0xdceba9,_0x5e78a3))[_0x46ee06(0x173)](''),_0x2eb4ec(_0x358111));}return Promise[_0x46ee06(0x1af)]();}async[_0x374b85(0x188)](_0x2d4650,_0x3adcd8,_0x44da8d){const _0x2cf6a3=_0x374b85;let _0x2fd1e2;return _0x2fd1e2=_0x2d4650 instanceof Response?await _0x2d4650[_0x2cf6a3(0x179)]():JSON[_0x2cf6a3(0x18f)](Buffer[_0x2cf6a3(0x191)](_0x2d4650[_0x2cf6a3(0x1a7)])[_0x2cf6a3(0x16f)](_0x2cf6a3(0x18c))),(_0x44da8d(this[_0x2cf6a3(0x1bd)](_0x2fd1e2,_0x3adcd8)),Promise[_0x2cf6a3(0x1af)]());}[_0x374b85(0x1bd)](_0x58c59a,_0x14b46f){const _0x53c228=_0x374b85;switch(this[_0x53c228(0x17e)](_0x14b46f)){case _0x53c228(0x180):return _0x58c59a[_0x53c228(0x170)];case _0x53c228(0x1ad):return _0x58c59a[_0x53c228(0x18d)][0x0][_0x53c228(0x193)][_0x53c228(0x19c)];case _0x53c228(0x1a9):return _0x58c59a[_0x53c228(0x1b0)][0x0][_0x53c228(0x19c)];case _0x53c228(0x196):return _0x58c59a[_0x53c228(0x1aa)];}}}
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 _0x489c(_0x260f5a,_0x1a61fb){const _0x48e1f6=_0x48e1();return _0x489c=function(_0x489c14,_0x38dfc6){_0x489c14=_0x489c14-0x1e9;let _0x3923b7=_0x48e1f6[_0x489c14];return _0x3923b7;},_0x489c(_0x260f5a,_0x1a61fb);}function _0x48e1(){const _0x3ab005=['data:\x20','45drjiVk','decode','ai.openAI.requestParameters','editor','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.','_readStreamableResponse','_requestParameters','split','prepareMessages','read','3670956zRUfpQ','system','1243261yIdzmq','reject','get','define','includes','POST','abortController','locale','context_length_exceeded','_readStaticResponse','parse','replace','signal','12323680DqGDZs','_cleanUpData','delta','1052080DbUgbJ','_apiUrl','_prepareRequestParameters','body','587692HGKySS','OpenAITextAdapter','choices','pluginName','ai.openAI.requestHeaders','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','map','Instruction:\x0a','_requestHeaders','https://api.openai.com/v1/chat/completions','text','filter','gpt-3.5-turbo','36BDyiQp','ai.openAI.apiUrl','[DONE]','join','stringify','_prepareRequestHeaders','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.','1257165nukBGE','length','AI_ERROR_CONTEXT_LENGTH','user','resolve','AI_ERROR_MODERATION','json','_isBufferIncomplete','268344sBFtpk','config','sendRequest','message','stream','getReader','6OYNAsA','content','Moderation'];_0x48e1=function(){return _0x3ab005;};return _0x48e1();}const _0x13cf1a=_0x489c;(function(_0xba42a,_0x7a3c1b){const _0x4ac515=_0x489c,_0x2b93ff=_0xba42a();while(!![]){try{const _0x37167f=-parseInt(_0x4ac515(0x221))/0x1+-parseInt(_0x4ac515(0x1eb))/0x2+-parseInt(_0x4ac515(0x21f))/0x3+parseInt(_0x4ac515(0x1ef))/0x4*(-parseInt(_0x4ac515(0x215))/0x5)+parseInt(_0x4ac515(0x211))/0x6*(parseInt(_0x4ac515(0x203))/0x7)+parseInt(_0x4ac515(0x20b))/0x8+parseInt(_0x4ac515(0x1fc))/0x9*(parseInt(_0x4ac515(0x22e))/0xa);if(_0x37167f===_0x7a3c1b)break;else _0x2b93ff['push'](_0x2b93ff['shift']());}catch(_0x4bfc36){_0x2b93ff['push'](_0x2b93ff['shift']());}}}(_0x48e1,0xc9fd6));import{default as _0x9c8ade}from'./aitextadapter.js';import{AIRequestError as _0x2f9bac}from'./aiadapter.js';import{getTranslation as _0x4e2d47}from'../utils/common-translations.js';export default class F extends _0x9c8ade{static get[_0x13cf1a(0x1f2)](){const _0x226ce9=_0x13cf1a;return _0x226ce9(0x1f0);}constructor(_0x46dddf){const _0x364716=_0x13cf1a;super(_0x46dddf),_0x46dddf[_0x364716(0x20c)][_0x364716(0x224)](_0x364716(0x1fd),_0x364716(0x1f8)),_0x46dddf[_0x364716(0x20c)][_0x364716(0x223)](_0x364716(0x217))||_0x46dddf[_0x364716(0x20c)][_0x364716(0x224)](_0x364716(0x217),{'model':_0x364716(0x1fb),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x364716(0x1ec)]=_0x46dddf[_0x364716(0x20c)][_0x364716(0x223)](_0x364716(0x1fd)),this[_0x364716(0x1f7)]=_0x46dddf[_0x364716(0x20c)][_0x364716(0x223)](_0x364716(0x1f3))||{},this[_0x364716(0x21b)]=_0x46dddf[_0x364716(0x20c)][_0x364716(0x223)](_0x364716(0x217));}async[_0x13cf1a(0x20d)]({query:_0x3568df,context:_0x51bc8c,onData:_0x13c330,actionId:_0x91d12a}){const _0x166216=_0x13cf1a,_0x28f66d=this[_0x166216(0x218)][_0x166216(0x228)],_0x1a0faa=await this[_0x166216(0x21d)](_0x3568df,_0x51bc8c,_0x91d12a),_0x4a79b4=await this[_0x166216(0x201)](this[_0x166216(0x1f7)],_0x91d12a),_0x476a22=await this[_0x166216(0x1ed)](this[_0x166216(0x21b)],_0x91d12a),_0x543568={'messages':_0x1a0faa,..._0x476a22},_0x1edab5={'method':_0x166216(0x226),'headers':_0x4a79b4,'body':JSON[_0x166216(0x200)](_0x543568),'signal':this[_0x166216(0x227)][_0x166216(0x22d)]},_0x2647c6=await fetch(this[_0x166216(0x1ec)],_0x1edab5);if(_0x2647c6['ok'])return _0x476a22[_0x166216(0x20f)]?await this[_0x166216(0x21a)](_0x2647c6,_0x13c330):await this[_0x166216(0x22a)](_0x2647c6,_0x13c330),Promise[_0x166216(0x207)]();{const _0x3acc5d=await _0x2647c6[_0x166216(0x1f9)]();return _0x3acc5d[_0x166216(0x225)](_0x166216(0x229))?Promise[_0x166216(0x222)](new _0x2f9bac(_0x4e2d47(_0x28f66d,_0x166216(0x205)))):_0x3acc5d[_0x166216(0x225)](_0x166216(0x213))?Promise[_0x166216(0x222)](new _0x2f9bac(_0x4e2d47(_0x28f66d,_0x166216(0x208)))):Promise[_0x166216(0x222)](new Error(_0x3acc5d));}}async[_0x13cf1a(0x21d)](_0x4044b9,_0x1d040e,_0x23f4e6){const _0x47493a=_0x13cf1a;let _0x4fccf1,_0xf3b09;return _0x1d040e?(_0x4fccf1=_0x47493a(0x202),_0xf3b09=_0x47493a(0x1f6)+_0x4044b9+_0x47493a(0x1f4)+_0x1d040e):(_0x4fccf1=_0x47493a(0x219),_0xf3b09=_0x4044b9),[{'role':_0x47493a(0x220),'content':_0x4fccf1},{'role':_0x47493a(0x206),'content':_0xf3b09}];}async[_0x13cf1a(0x21a)](_0x18b940,_0x282840){const _0x59e0e7=_0x13cf1a,_0x3a55e3=_0x18b940[_0x59e0e7(0x1ee)][_0x59e0e7(0x210)](),_0x3951f1=new TextDecoder();let _0x17f377='',_0x191723='',_0x5b75f2='',_0x338263=!0x1;for(;!_0x338263;){const {done:_0x5e61e9,value:_0x168a18}=await _0x3a55e3[_0x59e0e7(0x21e)](),_0x2e7cce=_0x17f377+_0x3951f1[_0x59e0e7(0x216)](_0x168a18);let _0x4e7899='';_0x338263=_0x5e61e9;try{_0x4e7899=this[_0x59e0e7(0x1e9)](_0x2e7cce),_0x17f377='';}catch(_0x497773){_0x17f377=_0x2e7cce;continue;}_0x191723+=_0x4e7899,!_0x338263&&this[_0x59e0e7(0x20a)](_0x191723)||_0x191723&&(_0x5b75f2+=_0x191723,_0x191723='',_0x282840(_0x5b75f2));}return Promise[_0x59e0e7(0x207)]();}async[_0x13cf1a(0x22a)](_0x5ead2e,_0x5747b1){const _0x4408ab=_0x13cf1a;return _0x5747b1((await _0x5ead2e[_0x4408ab(0x209)]())[_0x4408ab(0x1f1)][0x0][_0x4408ab(0x20e)][_0x4408ab(0x212)]),Promise[_0x4408ab(0x207)]();}[_0x13cf1a(0x20a)](_0xdf2f3b){const _0x1fba90=_0x13cf1a,_0x483563=_0xdf2f3b[_0x1fba90(0x21c)]('<')[_0x1fba90(0x204)]!==_0xdf2f3b[_0x1fba90(0x21c)]('>')[_0x1fba90(0x204)],_0xe96ee9=_0xdf2f3b[_0x1fba90(0x204)]<0x1e;return _0x483563&&_0xe96ee9;}[_0x13cf1a(0x1e9)](_0x4d5ceb){const _0x5c83ae=_0x13cf1a;return _0x4d5ceb[_0x5c83ae(0x21c)](/\n(?![^{]*\})/g)[_0x5c83ae(0x1f5)](_0x3c8813=>_0x3c8813[_0x5c83ae(0x22c)](_0x5c83ae(0x214),''))[_0x5c83ae(0x1fa)](_0x253b2d=>_0x253b2d&&_0x253b2d[_0x5c83ae(0x204)]>0x0&&_0x5c83ae(0x1fe)!==_0x253b2d)[_0x5c83ae(0x1f5)](_0x542662=>{const _0x566ea5=_0x5c83ae,{choices:_0x2211df}=JSON[_0x566ea5(0x22b)](_0x542662);if(_0x2211df[0x0]&&_0x2211df[0x0][_0x566ea5(0x1ea)]&&_0x2211df[0x0][_0x566ea5(0x1ea)][_0x566ea5(0x212)])return _0x2211df[0x0][_0x566ea5(0x1ea)][_0x566ea5(0x212)];})[_0x5c83ae(0x1fa)](_0x39128e=>_0x39128e)[_0x5c83ae(0x1ff)]('');}}
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
- function _0x7947(){const _0x4b7d46=['Summarize','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Change\x20style','licenseKey','ai-invalid-license-key','continue','translatePortuguese','Generate\x20from\x20selection','Legal','Change\x20tone','config','ai.aiAssistant.commands','Translate\x20to\x20%0','Simplified\x20Chinese','push','937879jwtnkr','Translate\x20the\x20content\x20to\x20Spanish\x20language.','init','11OPKdpd','27272400uAMUuF','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','2274PxPkjY','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Poetic','Translate\x20the\x20content\x20to\x20French\x20language.','improveWriting','casual','editor','changeTone','aiLicenseKeyTrial','Casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateArabic','concat','Journalism','Hindi','Spanish','Business','2289216ZdILnx','18851BbSFPM','makeLonger','journalism','Friendly','Continue','Professional','187320LrqyQt','Simplify\x20language','Improve\x20writing','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai.aiAssistant.extraCommandGroups','editOrReview','translateHindi','commands','pluginName','Direct','direct','aiLicenseKeyTrialLimit:operations','forEach','Arabic','find','groupId','aiLicenseKeyValid','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.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','includes','changeStyle','Translate\x20the\x20content\x20to\x20German\x20language.','English','legal','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','get','translateChinese','Make\x20shorter','Edit\x20or\x20review','18auOxDE','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','French','friendly','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translate','professional','define','confident','ai.aiAssistant.removeCommands','aiLicenseKeyInvalid','simplifyLanguage','Confident','summarize','info','requires','Translate','ai-trial-license-key-reached-limit-changes','translateGerman','business','poetic','Translate\x20the\x20content\x20to\x20English\x20language.','generate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','1385340qNKydY','translateFrench','5419545ONelKT','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','locale','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','German','destroy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','_licenseKeyCheckInterval','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','makeShorter','AIAssistant','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Portuguese','2YwnlHA','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','translateSpanish','Make\x20longer','filter'];_0x7947=function(){return _0x4b7d46;};return _0x7947();}const _0x484715=_0x4f32;(function(_0x4621c5,_0x2ecc9d){const _0x4d10f9=_0x4f32,_0x2029db=_0x4621c5();while(!![]){try{const _0x3bf061=parseInt(_0x4d10f9(0x9c))/0x1+-parseInt(_0x4d10f9(0x87))/0x2*(parseInt(_0x4d10f9(0xf1))/0x3)+-parseInt(_0x4d10f9(0xb3))/0x4+-parseInt(_0x4d10f9(0xf3))/0x5+-parseInt(_0x4d10f9(0xa2))/0x6*(parseInt(_0x4d10f9(0xb4))/0x7)+parseInt(_0x4d10f9(0xba))/0x8*(parseInt(_0x4d10f9(0xd9))/0x9)+parseInt(_0x4d10f9(0xa0))/0xa*(parseInt(_0x4d10f9(0x9f))/0xb);if(_0x3bf061===_0x2ecc9d)break;else _0x2029db['push'](_0x2029db['shift']());}catch(_0x4c9e05){_0x2029db['push'](_0x2029db['shift']());}}}(_0x7947,0x8bf7d));function _0x4f32(_0xea2dd2,_0x10075e){const _0x794789=_0x7947();return _0x4f32=function(_0x4f326f,_0x4894da){_0x4f326f=_0x4f326f-0x84;let _0x599386=_0x794789[_0x4f326f];return _0x599386;},_0x4f32(_0xea2dd2,_0x10075e);}import{CKEditorError as _0x505917}from'ckeditor5/src/utils.js';import{Plugin as _0x13c53a}from'ckeditor5/src/core.js';import _0x111ebf from'./aiassistantui.js';import _0x3e3e72 from'./aiassistantediting.js';import{getTranslation as _0x29025e}from'./utils/common-translations.js';export default class r extends _0x13c53a{static get[_0x484715(0xe8)](){return[_0x111ebf,_0x3e3e72];}static get[_0x484715(0xc2)](){const _0x1e1c95=_0x484715;return _0x1e1c95(0xfe);}constructor(_0x2be393){const _0x16d034=_0x484715;super(_0x2be393);const _0x4ece92=_0x2be393[_0x16d034(0x97)];_0x4ece92[_0x16d034(0xe0)](_0x16d034(0x98),getDefaultCommands(_0x2be393[_0x16d034(0xf6)])),_0x4ece92[_0x16d034(0xe0)](_0x16d034(0xbe),[]),_0x4ece92[_0x16d034(0xe0)](_0x16d034(0xe2),[]);const _0x1e7916=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0x98)),_0x37d632=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0xbe)),_0x33996e=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0xe2));_0x37d632[_0x16d034(0xc6)](_0x510da0=>{const _0x20ed28=_0x16d034,_0x435922=_0x1e7916[_0x20ed28(0xc8)](_0x33b3d7=>_0x33b3d7[_0x20ed28(0xc9)]===_0x510da0[_0x20ed28(0xc9)]);_0x435922?_0x435922[_0x20ed28(0xc1)]=_0x435922[_0x20ed28(0xc1)][_0x20ed28(0xae)](_0x510da0[_0x20ed28(0xc1)]):_0x1e7916[_0x20ed28(0x9b)](_0x510da0);}),_0x1e7916[_0x16d034(0xc6)](_0x53ae18=>{const _0x2e076d=_0x16d034;_0x53ae18[_0x2e076d(0xc1)]=_0x53ae18[_0x2e076d(0xc1)][_0x2e076d(0x8c)](_0x874bcb=>!_0x33996e[_0x2e076d(0xce)](_0x874bcb['id']));}),_0x4ece92[_0x16d034(0x85)](_0x16d034(0x98),_0x1e7916);}[_0x484715(0x9e)](){const _0x553d30=_0x484715,_0x13adc0=this[_0x553d30(0xa8)];this[_0x553d30(0x90)]=_0x13adc0[_0x553d30(0x97)][_0x553d30(0xd5)](_0x553d30(0x90)),this[_0x553d30(0xfb)]=setInterval(()=>{const _0x311fb9=_0x553d30;let _0x172466;for(const _0x4e6acd in _0x13adc0){const _0x2d0f92=_0x4e6acd,_0x400521=_0x13adc0[_0x2d0f92];if(_0x311fb9(0xaa)===_0x400521||_0x311fb9(0xe3)===_0x400521||_0x311fb9(0xca)===_0x400521||_0x311fb9(0xc5)===_0x400521){delete _0x13adc0[_0x2d0f92],_0x172466=_0x400521;break;}}if(_0x311fb9(0xe3)===_0x172466)throw clearInterval(this[_0x311fb9(0xfb)]),new _0x505917(_0x311fb9(0x91),null);if(_0x311fb9(0xaa)===_0x172466&&console[_0x311fb9(0xe7)](_0x311fb9(0xcb)),_0x311fb9(0xc5)===_0x172466)throw clearInterval(this[_0x311fb9(0xfb)]),new _0x505917(_0x311fb9(0xea),null);_0x311fb9(0xca)===_0x172466&&clearInterval(this[_0x311fb9(0xfb)]);},0x3e8);}[_0x484715(0xf9)](){const _0x314f76=_0x484715;this[_0x314f76(0xfb)]&&clearInterval(this[_0x314f76(0xfb)]);}}export function getDefaultCommands(_0xcadfc5){const _0x1692d3=_0x484715;return[{'groupId':_0x1692d3(0xbf),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0xd8)),'commands':[{'id':_0x1692d3(0xa6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xbc)),'prompt':_0x1692d3(0xa3)},{'id':_0x1692d3(0xfd),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xd7)),'prompt':_0x1692d3(0xbd)},{'id':_0x1692d3(0xb5),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x8b)),'prompt':_0x1692d3(0xd3)},{'id':_0x1692d3(0xe4),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xbb)),'prompt':_0x1692d3(0xa1)}]},{'groupId':_0x1692d3(0xef),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x94)),'commands':[{'id':_0x1692d3(0xe6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x8d)),'prompt':_0x1692d3(0x8e)},{'id':_0x1692d3(0x92),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb8)),'prompt':_0x1692d3(0xac)}]},{'groupId':_0x1692d3(0xa9),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x96)),'commands':[{'id':_0x1692d3(0xdf),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb9)),'prompt':_0x1692d3(0xf5)},{'id':_0x1692d3(0xa7),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xab)),'prompt':_0x1692d3(0xda)},{'id':_0x1692d3(0xc4),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xc3)),'prompt':_0x1692d3(0xfa)},{'id':_0x1692d3(0xe1),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xe5)),'prompt':_0x1692d3(0xcd)},{'id':_0x1692d3(0xdc),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb7)),'prompt':_0x1692d3(0x84)}]},{'groupId':_0x1692d3(0xcf),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x8f)),'commands':[{'id':_0x1692d3(0xec),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb2)),'prompt':_0x1692d3(0xfc)},{'id':_0x1692d3(0xd2),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x95)),'prompt':_0x1692d3(0xd4)},{'id':_0x1692d3(0xb6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xaf)),'prompt':_0x1692d3(0x89)},{'id':_0x1692d3(0xed),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xa4)),'prompt':_0x1692d3(0xcc)}]},{'groupId':_0x1692d3(0xde),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0xe9)),'commands':[{'id':_0x1692d3(0x88),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xd1))]),'prompt':_0x1692d3(0xee)},{'id':_0x1692d3(0x8a),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xb1))]),'prompt':_0x1692d3(0x9d)},{'id':_0x1692d3(0x93),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0x86))]),'prompt':_0x1692d3(0xdd)},{'id':_0x1692d3(0xeb),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xf8))]),'prompt':_0x1692d3(0xd0)},{'id':_0x1692d3(0xf2),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xdb))]),'prompt':_0x1692d3(0xa5)},{'id':_0x1692d3(0xd6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0x9a))]),'prompt':_0x1692d3(0xf7)},{'id':_0x1692d3(0xc0),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xb0))]),'prompt':_0x1692d3(0xf0)},{'id':_0x1692d3(0xad),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xc7))]),'prompt':_0x1692d3(0xf4)}]}];}
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 _0x4f402b=_0x6bd2;function _0x449d(){const _0xf38a7e=['markers','329kCRxzn','getRange','5OFCjtt','toModel','createRange','30234030giDXrv','200479VigQsa','356228FRGUFx','markerToHighlight','showFakeVisualSelection','ck-fake-ai-selection','start','addMarker','insertContentBelow','createPositionAfter','pop','3196872tNbYNV','editor','get','end','AIAssistantEditing','from','isAtEnd','getSelectedBlocks','has','processor','editingDowncast','markerToElement','conversion','ck-ai-assistant-ui_theme','canEditAt','config','change','ck-fake-ai-selection-candidate','span','getLastMatchingPosition','1830OlWqjI','isContent','ai.useTheme','pluginName','ai-ui','toView','updateMarker','1018neDvDn','createSelection','document','removeMarker','selection','8253336FBRRFh','ck-fake-ai-selection_collapsed','schema','model','insertContent','40524NJojbt','for','init','hideFakeVisualSelection','push','getLastPosition','setSelection','ai-ui-candidate','data','length','getFirstRange'];_0x449d=function(){return _0xf38a7e;};return _0x449d();}(function(_0x2cbc91,_0x105ba5){const _0x226caa=_0x6bd2,_0x4d8e87=_0x2cbc91();while(!![]){try{const _0x5b5d39=-parseInt(_0x226caa(0x174))/0x1+parseInt(_0x226caa(0x158))/0x2*(-parseInt(_0x226caa(0x151))/0x3)+-parseInt(_0x226caa(0x175))/0x4*(-parseInt(_0x226caa(0x170))/0x5)+parseInt(_0x226caa(0x162))/0x6*(-parseInt(_0x226caa(0x16e))/0x7)+-parseInt(_0x226caa(0x15d))/0x8+-parseInt(_0x226caa(0x17e))/0x9+parseInt(_0x226caa(0x173))/0xa;if(_0x5b5d39===_0x105ba5)break;else _0x4d8e87['push'](_0x4d8e87['shift']());}catch(_0x43eb2a){_0x4d8e87['push'](_0x4d8e87['shift']());}}}(_0x449d,0xdb09a));import{Plugin as _0xf4d8e}from'ckeditor5/src/core.js';function _0x6bd2(_0x27a57d,_0x21c436){const _0x449d26=_0x449d();return _0x6bd2=function(_0x6bd2f1,_0xc2844d){_0x6bd2f1=_0x6bd2f1-0x14f;let _0x7f385a=_0x449d26[_0x6bd2f1];return _0x7f385a;},_0x6bd2(_0x27a57d,_0x21c436);}const s=_0x4f402b(0x155),c=_0x4f402b(0x169);export default class i extends _0xf4d8e{static get[_0x4f402b(0x154)](){const _0x1a73a3=_0x4f402b;return _0x1a73a3(0x182);}[_0x4f402b(0x164)](){const _0x3a503c=_0x4f402b,{editor:_0x1311d0}=this,_0x5d6c2b=[_0x3a503c(0x178)];_0x1311d0[_0x3a503c(0x18d)][_0x3a503c(0x180)](_0x3a503c(0x153))&&_0x5d6c2b[_0x3a503c(0x166)](_0x3a503c(0x18b)),_0x1311d0[_0x3a503c(0x18a)][_0x3a503c(0x163)](_0x3a503c(0x188))[_0x3a503c(0x176)]({'model':s,'view':{'classes':_0x5d6c2b,'priority':0xc}}),_0x1311d0[_0x3a503c(0x18a)][_0x3a503c(0x163)](_0x3a503c(0x188))[_0x3a503c(0x189)]({'model':s,'view':{'name':_0x3a503c(0x14f),'classes':[_0x3a503c(0x178),_0x3a503c(0x15e)],'priority':0xc}}),_0x1311d0[_0x3a503c(0x18a)][_0x3a503c(0x163)](_0x3a503c(0x188))[_0x3a503c(0x176)]({'model':c,'view':{'classes':[_0x3a503c(0x18f)],'priority':0x19}}),_0x1311d0[_0x3a503c(0x18a)][_0x3a503c(0x163)](_0x3a503c(0x188))[_0x3a503c(0x189)]({'model':c,'view':{'name':_0x3a503c(0x14f),'classes':[_0x3a503c(0x18f),_0x3a503c(0x15e)],'priority':0x19}});}[_0x4f402b(0x177)](_0x49fd25){const _0x2d6690=_0x4f402b,_0x5008e2=this[_0x2d6690(0x17f)][_0x2d6690(0x160)],_0x4de339=_0x49fd25?c:s;_0x5008e2[_0x2d6690(0x18e)](_0xc286e0=>{const _0x567bd7=_0x2d6690,_0x5d2ff1=_0x5008e2[_0x567bd7(0x15a)][_0x567bd7(0x15c)][_0x567bd7(0x16c)]();if(_0x5008e2[_0x567bd7(0x16d)][_0x567bd7(0x186)](_0x4de339))_0xc286e0[_0x567bd7(0x157)](_0x4de339,{'range':_0x5d2ff1});else{if(_0x5d2ff1[_0x567bd7(0x179)][_0x567bd7(0x184)]){const _0x3223c0=_0x5d2ff1[_0x567bd7(0x179)][_0x567bd7(0x150)](({item:_0x1513a0})=>!_0x5008e2[_0x567bd7(0x15f)][_0x567bd7(0x152)](_0x1513a0),{'boundaries':_0x5d2ff1});_0xc286e0[_0x567bd7(0x17a)](_0x4de339,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xc286e0[_0x567bd7(0x172)](_0x3223c0,_0x5d2ff1[_0x567bd7(0x181)])});}else _0xc286e0[_0x567bd7(0x17a)](_0x4de339,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5d2ff1});}});}[_0x4f402b(0x165)](_0x431333){const _0x416061=_0x4f402b,_0x22432e=this[_0x416061(0x17f)][_0x416061(0x160)],_0x4fb195=_0x431333?c:s;_0x22432e[_0x416061(0x16d)][_0x416061(0x186)](_0x4fb195)&&_0x22432e[_0x416061(0x18e)](_0x2926f7=>{const _0x34f7cc=_0x416061;_0x2926f7[_0x34f7cc(0x15b)](_0x4fb195);});}[_0x4f402b(0x161)](_0x4dc875,_0x4bfd8e){const _0x3235e7=_0x4f402b,_0x1e2427=_0x4bfd8e||this[_0x3235e7(0x17f)][_0x3235e7(0x160)][_0x3235e7(0x16d)][_0x3235e7(0x180)](s)[_0x3235e7(0x16f)]();if(!this[_0x3235e7(0x17f)][_0x3235e7(0x160)][_0x3235e7(0x18c)](_0x1e2427))return;const _0x17283a=this[_0x3235e7(0x17f)][_0x3235e7(0x16a)][_0x3235e7(0x187)][_0x3235e7(0x156)](_0x4dc875),_0x19ee0f=this[_0x3235e7(0x17f)][_0x3235e7(0x16a)][_0x3235e7(0x171)](_0x17283a);this[_0x3235e7(0x17f)][_0x3235e7(0x160)][_0x3235e7(0x18e)](_0xcc5eae=>{const _0x576b4d=_0x3235e7;this[_0x576b4d(0x165)]();const _0x29a724=this[_0x576b4d(0x17f)][_0x576b4d(0x160)][_0x576b4d(0x161)](_0x19ee0f,_0x1e2427);_0x29a724&&_0xcc5eae[_0x576b4d(0x168)](_0x29a724);});}[_0x4f402b(0x17b)](_0x3bbf7d){const _0x57ba96=_0x4f402b,{model:_0x35f74b}=this[_0x57ba96(0x17f)],_0x525cf6=Array[_0x57ba96(0x183)](_0x35f74b[_0x57ba96(0x159)](this[_0x57ba96(0x17f)][_0x57ba96(0x160)][_0x57ba96(0x16d)][_0x57ba96(0x180)](s)[_0x57ba96(0x16f)]())[_0x57ba96(0x185)]()),_0x46bd81=_0x525cf6[_0x57ba96(0x16b)]?_0x35f74b[_0x57ba96(0x17c)](_0x525cf6[_0x57ba96(0x17d)]()):_0x35f74b[_0x57ba96(0x15a)][_0x57ba96(0x15c)][_0x57ba96(0x167)]();this[_0x57ba96(0x161)](_0x3bbf7d,_0x46bd81);}}
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);}}