@ckeditor/ckeditor5-ai 41.3.1 → 41.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "41.3.
|
|
3
|
+
"version": "41.3.2",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "41.3.
|
|
27
|
-
"ckeditor5-collaboration": "41.3.
|
|
26
|
+
"ckeditor5": "41.3.2",
|
|
27
|
+
"ckeditor5-collaboration": "41.3.2",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.3.
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.3.2",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5f47aa=_0xf573;(function(_0x15c3ce,_0x1ec966){var _0x8ebced=_0xf573,_0x4d9619=_0x15c3ce();while(!![]){try{var _0x22d65=parseInt(_0x8ebced(0xcc))/0x1*(-parseInt(_0x8ebced(0xd5))/0x2)+-parseInt(_0x8ebced(0xd7))/0x3+parseInt(_0x8ebced(0xd4))/0x4+-parseInt(_0x8ebced(0xc9))/0x5*(-parseInt(_0x8ebced(0xd3))/0x6)+-parseInt(_0x8ebced(0xce))/0x7+parseInt(_0x8ebced(0xd6))/0x8*(-parseInt(_0x8ebced(0xd8))/0x9)+parseInt(_0x8ebced(0xd2))/0xa;if(_0x22d65===_0x1ec966)break;else _0x4d9619['push'](_0x4d9619['shift']());}catch(_0x21da6f){_0x4d9619['push'](_0x4d9619['shift']());}}}(_0x4f82,0x947ef));import{Plugin as _0x1f6d11}from'ckeditor5/src/core.js';function _0x4f82(){var _0x3ee722=['name','afterInit','textAdapter','15487600vPZQuh','109926OlXIVM','1315056AbYVGr','204626NjxEId','1063576irGUgO','3085383YmSUpg','45WAUsxY','aiadapter-text-adapter-not-set','270SRQrXi','AIAdapter','pluginName','3jXpZwR','AIRequestError','1809388pHsSZN'];_0x4f82=function(){return _0x3ee722;};return _0x4f82();}import{CKEditorError as _0x4ec8b9}from'ckeditor5/src/utils.js';export default class v extends _0x1f6d11{static get[_0x5f47aa(0xcb)](){var _0x37bdf3=_0x5f47aa;return _0x37bdf3(0xca);}[_0x5f47aa(0xd0)](){var _0x299903=_0x5f47aa;if(!this[_0x299903(0xd1)])throw new _0x4ec8b9(_0x299903(0xc8),null);}}function _0xf573(_0x1dd42b,_0x1c51bf){var _0x4f827f=_0x4f82();return _0xf573=function(_0xf57383,_0x32ca1a){_0xf57383=_0xf57383-0xc8;var _0x5d0235=_0x4f827f[_0xf57383];return _0x5d0235;},_0xf573(_0x1dd42b,_0x1c51bf);}export class AIRequestError extends Error{constructor(_0x285904){var _0x5c2d44=_0x5f47aa;super(_0x285904),this[_0x5c2d44(0xcf)]=_0x5c2d44(0xcd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19c753=_0x1846;(function(_0x5a8bab,_0x17fedb){const _0x50b178=_0x1846,_0xbd1f5d=_0x5a8bab();while(!![]){try{const _0x23cbf0=-parseInt(_0x50b178(0xbb))/0x1+-parseInt(_0x50b178(0xbd))/0x2*(parseInt(_0x50b178(0xa8))/0x3)+-parseInt(_0x50b178(0xc4))/0x4*(-parseInt(_0x50b178(0xca))/0x5)+-parseInt(_0x50b178(0xb9))/0x6+-parseInt(_0x50b178(0xae))/0x7*(parseInt(_0x50b178(0xac))/0x8)+parseInt(_0x50b178(0xc3))/0x9+-parseInt(_0x50b178(0xbc))/0xa*(-parseInt(_0x50b178(0xa9))/0xb);if(_0x23cbf0===_0x17fedb)break;else _0xbd1f5d['push'](_0xbd1f5d['shift']());}catch(_0x2a2eb0){_0xbd1f5d['push'](_0xbd1f5d['shift']());}}}(_0x5c23,0xca384));import{Plugin as _0x46597e}from'ckeditor5/src/core.js';import{CKEditorError as _0x5bc236}from'ckeditor5/src/utils.js';function _0x1846(_0x5556bd,_0x49136e){const _0x5c23dc=_0x5c23();return _0x1846=function(_0x184609,_0x512c9c){_0x184609=_0x184609-0xa7;let _0x49237c=_0x5c23dc[_0x184609];return _0x49237c;},_0x1846(_0x5556bd,_0x49136e);}function _0x5c23(){const _0x5abc41=['signal','3815xCMOKU','name','AI_ERROR_GET_PARAMETERS','catch','12EOTjJP','2189ersUjn','sendRequest','plugins','11367352EGKfLM','locale','7YhhIyF','requires','abortController','object','AbortError','editor','application/json','init','aborted','_prepareRequestHeaders','resolve','8576166dshvIl','AI_ERROR_GET_HEADERS','251212SOASqw','102450CmTqlL','386PUhuHk','abort','aitextadapter-send-request-failed','_prepareRequestParameters','get','error','3024396pYAqxT','8156ROupTB','textAdapter','reject','makeRequest','assign'];_0x5c23=function(){return _0x5abc41;};return _0x5c23();}import{default as _0x3f5cb6,AIRequestError as _0xa8bff0}from'./aiadapter.js';import{getTranslation as _0x1dfebc}from'../utils/common-translations.js';export default class P extends _0x46597e{static get[_0x19c753(0xaf)](){return[_0x3f5cb6];}constructor(_0x3a423f){const _0x19b7ec=_0x19c753;super(_0x3a423f),this[_0x19b7ec(0xb0)]=new AbortController();}[_0x19c753(0xb5)](){const _0x2b7a60=_0x19c753;this[_0x2b7a60(0xb3)][_0x2b7a60(0xab)][_0x2b7a60(0xc1)](_0x3f5cb6)[_0x2b7a60(0xc5)]=this;}[_0x19c753(0xbe)](){const _0x15a902=_0x19c753;this[_0x15a902(0xb0)][_0x15a902(0xc9)][_0x15a902(0xb6)]||(this[_0x15a902(0xb0)][_0x15a902(0xbe)](),this[_0x15a902(0xb0)]=new AbortController());}async[_0x19c753(0xc7)](_0x5d9095){const _0x2af867=_0x19c753;return this[_0x2af867(0xaa)](_0x5d9095)[_0x2af867(0xa7)](_0x4b76f4=>{const _0xcb40b6=_0x2af867;if(_0x4b76f4 instanceof _0xa8bff0)return Promise[_0xcb40b6(0xc6)](_0x4b76f4);if(_0xcb40b6(0xb2)==_0x4b76f4[_0xcb40b6(0xcb)])return Promise[_0xcb40b6(0xb8)]();throw console[_0xcb40b6(0xc2)](_0x4b76f4),new _0x5bc236(_0xcb40b6(0xbf),null);});}async[_0x19c753(0xb7)](_0x1789fd,_0x45ce31){const _0x53a7cd=_0x19c753,_0x2c9093=this[_0x53a7cd(0xb3)][_0x53a7cd(0xad)],_0x390c88={'Content-Type':_0x53a7cd(0xb4)};if(_0x53a7cd(0xb1)==typeof _0x1789fd)Object[_0x53a7cd(0xc8)](_0x390c88,_0x1789fd);else{if(_0x1789fd)try{const _0x248983=await _0x1789fd(_0x45ce31);Object[_0x53a7cd(0xc8)](_0x390c88,_0x248983);}catch(_0x4f33ba){return Promise[_0x53a7cd(0xc6)](new _0xa8bff0(_0x1dfebc(_0x2c9093,_0x53a7cd(0xba))));}}return _0x390c88;}async[_0x19c753(0xc0)](_0x82f422,_0xb59d74){const _0x57b0fd=_0x19c753,_0x28eed0=this[_0x57b0fd(0xb3)][_0x57b0fd(0xad)];if(_0x57b0fd(0xb1)==typeof _0x82f422)return _0x82f422;try{return await _0x82f422(_0xb59d74);}catch(_0x597eb0){return Promise[_0x57b0fd(0xc6)](new _0xa8bff0(_0x1dfebc(_0x28eed0,_0x57b0fd(0xcc))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41c0c6=_0x2e6f;(function(_0x59de33,_0xf5cbc7){const _0x4c327e=_0x2e6f,_0x3206b9=_0x59de33();while(!![]){try{const _0x35528e=parseInt(_0x4c327e(0x1c5))/0x1*(parseInt(_0x4c327e(0x1d5))/0x2)+-parseInt(_0x4c327e(0x1b6))/0x3+-parseInt(_0x4c327e(0x1ae))/0x4*(parseInt(_0x4c327e(0x1bb))/0x5)+parseInt(_0x4c327e(0x1d3))/0x6*(-parseInt(_0x4c327e(0x1ac))/0x7)+parseInt(_0x4c327e(0x1f4))/0x8+parseInt(_0x4c327e(0x1bc))/0x9+parseInt(_0x4c327e(0x1e6))/0xa*(parseInt(_0x4c327e(0x1e5))/0xb);if(_0x35528e===_0xf5cbc7)break;else _0x3206b9['push'](_0x3206b9['shift']());}catch(_0x468c55){_0x3206b9['push'](_0x3206b9['shift']());}}}(_0x368e,0x9ea62));import{default as _0x54b9e5}from'./aitextadapter.js';import{AIRequestError as _0x4095b4}from'./aiadapter.js';import{BedrockRuntimeClient as _0x27c289,InvokeModelCommand as _0x21e065,InvokeModelWithResponseStreamCommand as _0x5c0838}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x27e977}from'../utils/common-translations.js';function _0x368e(){const _0x5636db=['Human:\x0a','6snQxCP','AI_ERROR_UNSUPPORTED_MODEL','17230ZJhDJQ','ai.aws.requestHeaders','ai21.j2','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.','_prepareRequestParameters','parse','ai.aws.bedrockClientConfig','decode','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','getReader','test','<<SYS>>\x0a','locale','_requestParameters','stringify','11cdZLSb','19582770syMaaG','application/json','config','read','bedrock-2023-05-31','_requestHeaders','completion','_readAsyncIterableResponse','ai.aws.requestParameters','anthropic.claude-v2','\x0a[/INST]','send','toString','split','4882296JEzEXr','anthropic.claude','_readStaticResponse','preparePrompt','cohere.command','join','ai.aws.apiUrl','bytes','text','_bedrockClientConfig','length','_prepareRequestHeaders','8059247zClGrY','AWSTextAdapter','459184dLhqGA','\x0a<</SYS>>\x0a[INST]\x0a','utf8','abortController','POST','meta.llama','filter','generation','2510148DjxOwZ','chunk','_apiUrl','get','sendRequest','30tSQYOp','4108950DCNrrv','map','json','from','data','define','editor','_processAWSRequest','getModelFamily','35xPLGDn','signal','pluginName','_getGeneratedText','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_readStreamableResponse','utf-8','_processProxyRequest','resolve','generations','body','completions','\x0a\x0aAssistant:'];_0x368e=function(){return _0x5636db;};return _0x368e();}function _0x2e6f(_0xc13143,_0x5782dd){const _0x368ece=_0x368e();return _0x2e6f=function(_0x2e6f90,_0xba27e7){_0x2e6f90=_0x2e6f90-0x1a9;let _0x1fb5b1=_0x368ece[_0x2e6f90];return _0x1fb5b1;},_0x2e6f(_0xc13143,_0x5782dd);}export default class Y extends _0x54b9e5{static get[_0x41c0c6(0x1c7)](){const _0x47ae1a=_0x41c0c6;return _0x47ae1a(0x1ad);}constructor(_0x422b62){const _0x5e66ba=_0x41c0c6;super(_0x422b62),_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1b9)](_0x5e66ba(0x1ee))||_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1c1)](_0x5e66ba(0x1ee),{'model':_0x5e66ba(0x1ef),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5e66ba(0x1ea),'stream':!0x0}),this[_0x5e66ba(0x1b8)]=_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1b9)](_0x5e66ba(0x1fa)),this[_0x5e66ba(0x1a9)]=_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1b9)](_0x5e66ba(0x1db)),this[_0x5e66ba(0x1eb)]=_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1b9)](_0x5e66ba(0x1d6)),this[_0x5e66ba(0x1e3)]=_0x422b62[_0x5e66ba(0x1e8)][_0x5e66ba(0x1b9)](_0x5e66ba(0x1ee));}async[_0x41c0c6(0x1ba)]({query:_0x23f8e5,context:_0x3dc658,onData:_0x3785b1,actionId:_0x4622df}){const _0x37172d=_0x41c0c6,{model:_0x2b74dc,stream:_0x5cd35f,..._0x168cfc}=await this[_0x37172d(0x1d9)](this[_0x37172d(0x1e3)],_0x4622df),_0xe84c0f={'prompt':await this[_0x37172d(0x1f7)](_0x23f8e5,_0x3dc658,_0x2b74dc,_0x4622df),..._0x168cfc};this[_0x37172d(0x1b8)]?await this[_0x37172d(0x1cc)](_0xe84c0f,_0x2b74dc,_0x5cd35f,_0x3785b1,_0x4622df):await this[_0x37172d(0x1c3)](_0xe84c0f,_0x2b74dc,_0x5cd35f,_0x3785b1);}async[_0x41c0c6(0x1f7)](_0x2b7bfe,_0x9aae70,_0x131d80,_0x1a4a47){const _0x6beb12=_0x41c0c6;let _0x10e27a,_0x4453f4;return _0x9aae70?(_0x10e27a=_0x6beb12(0x1dd),_0x4453f4=_0x6beb12(0x1de)+_0x2b7bfe+_0x6beb12(0x1c9)+_0x9aae70):(_0x10e27a=_0x6beb12(0x1d8),_0x4453f4=_0x2b7bfe),_0x6beb12(0x1b3)==this[_0x6beb12(0x1c4)](_0x131d80)?_0x6beb12(0x1e1)+_0x10e27a+_0x6beb12(0x1af)+_0x4453f4+_0x6beb12(0x1f0):_0x6beb12(0x1d2)+_0x10e27a+'\x0a'+_0x4453f4+_0x6beb12(0x1d1);}[_0x41c0c6(0x1c4)](_0x2c8def){const _0x458a87=_0x41c0c6;if(/^anthropic\.claude/[_0x458a87(0x1e0)](_0x2c8def))return _0x458a87(0x1f5);if(/^ai21\.j2/[_0x458a87(0x1e0)](_0x2c8def))return _0x458a87(0x1d7);if(/^cohere\.command/[_0x458a87(0x1e0)](_0x2c8def))return _0x458a87(0x1f8);if(/^meta\.llama/[_0x458a87(0x1e0)](_0x2c8def))return _0x458a87(0x1b3);throw new _0x4095b4(_0x27e977(this[_0x458a87(0x1c2)][_0x458a87(0x1e2)],_0x458a87(0x1d4),_0x2c8def));}async[_0x41c0c6(0x1cc)](_0x2c665e,_0x51e586,_0x2c2b01,_0x76aec8,_0x97130d){const _0x400933=_0x41c0c6,_0x58998e={'method':_0x400933(0x1b2),'headers':await this[_0x400933(0x1ab)](this[_0x400933(0x1eb)],_0x97130d),'body':JSON[_0x400933(0x1e4)]({..._0x2c665e,'model':_0x51e586,'stream':_0x2c2b01}),'signal':this[_0x400933(0x1b1)][_0x400933(0x1c6)]},_0x21b865=await fetch(this[_0x400933(0x1b8)],_0x58998e);_0x2c2b01?await this[_0x400933(0x1ca)](_0x21b865,_0x51e586,_0x76aec8):await this[_0x400933(0x1f6)](_0x21b865,_0x51e586,_0x76aec8);}async[_0x41c0c6(0x1c3)](_0x41b898,_0x185c50,_0x3400da,_0x1c3757){const _0x4e4b98=_0x41c0c6,_0xe3869a=new _0x27c289(this[_0x4e4b98(0x1a9)]),_0x3710e9={'body':JSON[_0x4e4b98(0x1e4)](_0x41b898),'contentType':_0x4e4b98(0x1e7),'accept':_0x4e4b98(0x1e7),'modelId':_0x185c50};let _0x57c03d;if(_0x3400da){const _0x2ffb3d=new _0x5c0838(_0x3710e9);_0x57c03d=await _0xe3869a[_0x4e4b98(0x1f1)](_0x2ffb3d,{'abortSignal':this[_0x4e4b98(0x1b1)][_0x4e4b98(0x1c6)]}),await this[_0x4e4b98(0x1ed)](_0x57c03d,_0x185c50,_0x1c3757);}else{const _0x29b600=new _0x21e065(_0x3710e9);_0x57c03d=await _0xe3869a[_0x4e4b98(0x1f1)](_0x29b600,{'abortSignal':this[_0x4e4b98(0x1b1)][_0x4e4b98(0x1c6)]}),await this[_0x4e4b98(0x1f6)](_0x57c03d,_0x185c50,_0x1c3757);}}async[_0x41c0c6(0x1ed)](_0x5e5ed9,_0x4b4106,_0x2e3bea){const _0x32b1a9=_0x41c0c6,_0x504462=_0x5e5ed9[_0x32b1a9(0x1cf)],_0x1c0d37=new TextDecoder(_0x32b1a9(0x1cb));let _0x95b7dc='';for await(const _0x731bb9 of _0x504462)if(_0x731bb9[_0x32b1a9(0x1b7)]){const _0xc19dc6=_0x1c0d37[_0x32b1a9(0x1dc)](_0x731bb9[_0x32b1a9(0x1b7)][_0x32b1a9(0x1fb)]),_0x406c6e=JSON[_0x32b1a9(0x1da)](_0xc19dc6);_0x95b7dc+=this[_0x32b1a9(0x1c8)](_0x406c6e,_0x4b4106),_0x2e3bea(_0x95b7dc);}return Promise[_0x32b1a9(0x1cd)]();}async[_0x41c0c6(0x1ca)](_0x49daad,_0x94387b,_0x68bb0c){const _0xe78aab=_0x41c0c6,_0x293da2=_0x49daad[_0xe78aab(0x1cf)],_0x2ad546=new TextDecoder(_0xe78aab(0x1cb)),_0x76de10=_0x293da2[_0xe78aab(0x1df)]();let _0x48b374='',_0x414ce1='',_0x5ed611=!0x1;for(;!_0x5ed611;){const {done:_0x5ea4a7,value:_0x52c815}=await _0x76de10[_0xe78aab(0x1e9)]();if(_0x5ed611=_0x5ea4a7,_0x5ed611)break;const _0x32d9d1=(_0x48b374+_0x2ad546[_0xe78aab(0x1dc)](_0x52c815))[_0xe78aab(0x1f3)]('\x0a')[_0xe78aab(0x1bd)](_0x2bf206=>{const _0x3f3652=_0xe78aab;try{return _0x48b374='',JSON[_0x3f3652(0x1da)](_0x2bf206);}catch(_0xdab943){return _0x48b374=_0x2bf206,null;}})[_0xe78aab(0x1b4)](_0x2ed311=>null!==_0x2ed311);_0x32d9d1[_0xe78aab(0x1aa)]&&(_0x414ce1+=_0x32d9d1[_0xe78aab(0x1bd)](_0x1e02d3=>this[_0xe78aab(0x1c8)](_0x1e02d3,_0x94387b))[_0xe78aab(0x1f9)](''),_0x68bb0c(_0x414ce1));}return Promise[_0xe78aab(0x1cd)]();}async[_0x41c0c6(0x1f6)](_0x2c0b36,_0x16e541,_0x9c1217){const _0x32e312=_0x41c0c6;let _0x213449;return _0x213449=_0x2c0b36 instanceof Response?await _0x2c0b36[_0x32e312(0x1be)]():JSON[_0x32e312(0x1da)](Buffer[_0x32e312(0x1bf)](_0x2c0b36[_0x32e312(0x1cf)])[_0x32e312(0x1f2)](_0x32e312(0x1b0))),(_0x9c1217(this[_0x32e312(0x1c8)](_0x213449,_0x16e541)),Promise[_0x32e312(0x1cd)]());}[_0x41c0c6(0x1c8)](_0x4ca387,_0xce69fc){const _0x3109da=_0x41c0c6;switch(this[_0x3109da(0x1c4)](_0xce69fc)){case _0x3109da(0x1f5):return _0x4ca387[_0x3109da(0x1ec)];case _0x3109da(0x1d7):return _0x4ca387[_0x3109da(0x1d0)][0x0][_0x3109da(0x1c0)][_0x3109da(0x1fc)];case _0x3109da(0x1f8):return _0x4ca387[_0x3109da(0x1ce)][0x0][_0x3109da(0x1fc)];case _0x3109da(0x1b3):return _0x4ca387[_0x3109da(0x1b5)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1625(){const _0x1d7534=['_cleanUpData','Instruction:\x0a','8323728vlNUmU','length','pluginName','307446CMUWwQ','https://api.openai.com/v1/chat/completions','ai.openAI.apiUrl','content','body','context_length_exceeded','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.openAI.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','OpenAITextAdapter','abortController','AI_ERROR_CONTEXT_LENGTH','text','get','system','_apiUrl','resolve','106396HiILHG','gpt-3.5-turbo','prepareMessages','_prepareRequestHeaders','json','message','_requestHeaders','1536111grZIIw','delta','editor','filter','_readStreamableResponse','_isBufferIncomplete','replace','_requestParameters','define','stringify','ai.openAI.requestHeaders','config','12TpXGzf','3792940HGesQK','[DONE]','1083004ZeVlke','split','Moderation','145UMZtjL','user','signal','AI_ERROR_MODERATION','POST','getReader','parse','read','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.','includes','reject','decode','locale','_readStaticResponse','_prepareRequestParameters','32cvhbpN','data:\x20','choices','join','sendRequest','map','3456966zmQIoj'];_0x1625=function(){return _0x1d7534;};return _0x1625();}const _0x4e60ce=_0x10bf;(function(_0x3cef26,_0x2e2c1a){const _0x263d73=_0x10bf,_0x3733e4=_0x3cef26();while(!![]){try{const _0x4f7ff6=-parseInt(_0x263d73(0x10a))/0x1*(-parseInt(_0x263d73(0x11d))/0x2)+parseInt(_0x263d73(0xf3))/0x3+-parseInt(_0x263d73(0x120))/0x4+-parseInt(_0x263d73(0xdd))/0x5*(parseInt(_0x263d73(0xf9))/0x6)+parseInt(_0x263d73(0xf6))/0x7+-parseInt(_0x263d73(0xed))/0x8*(parseInt(_0x263d73(0x111))/0x9)+parseInt(_0x263d73(0x11e))/0xa;if(_0x4f7ff6===_0x2e2c1a)break;else _0x3733e4['push'](_0x3733e4['shift']());}catch(_0xf4a1bd){_0x3733e4['push'](_0x3733e4['shift']());}}}(_0x1625,0xe0858));import{default as _0x2fbcd3}from'./aitextadapter.js';import{AIRequestError as _0x13470f}from'./aiadapter.js';import{getTranslation as _0x3e5f12}from'../utils/common-translations.js';function _0x10bf(_0x5dff81,_0x4382dc){const _0x1625f7=_0x1625();return _0x10bf=function(_0x10bfc0,_0x3fa650){_0x10bfc0=_0x10bfc0-0xdd;let _0x5435a3=_0x1625f7[_0x10bfc0];return _0x5435a3;},_0x10bf(_0x5dff81,_0x4382dc);}export default class J extends _0x2fbcd3{static get[_0x4e60ce(0xf8)](){const _0x18d986=_0x4e60ce;return _0x18d986(0x102);}constructor(_0x41aa8b){const _0x54e798=_0x4e60ce;super(_0x41aa8b),_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x119)](_0x54e798(0xfb),_0x54e798(0xfa)),_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x106)](_0x54e798(0x100))||_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x119)](_0x54e798(0x100),{'model':_0x54e798(0x10b),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x54e798(0x108)]=_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x106)](_0x54e798(0xfb)),this[_0x54e798(0x110)]=_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x106)](_0x54e798(0x11b))||{},this[_0x54e798(0x118)]=_0x41aa8b[_0x54e798(0x11c)][_0x54e798(0x106)](_0x54e798(0x100));}async[_0x4e60ce(0xf1)]({query:_0x1acb89,context:_0x563513,onData:_0x469cd8,actionId:_0x4fbcb2}){const _0x4be5f4=_0x4e60ce,_0x56d4dd=this[_0x4be5f4(0x113)][_0x4be5f4(0xea)],_0x3e1254=await this[_0x4be5f4(0x10c)](_0x1acb89,_0x563513,_0x4fbcb2),_0x1f8458=await this[_0x4be5f4(0x10d)](this[_0x4be5f4(0x110)],_0x4fbcb2),_0x135c3c=await this[_0x4be5f4(0xec)](this[_0x4be5f4(0x118)],_0x4fbcb2),_0x56514b={'messages':_0x3e1254,..._0x135c3c},_0x235d3a={'method':_0x4be5f4(0xe1),'headers':_0x1f8458,'body':JSON[_0x4be5f4(0x11a)](_0x56514b),'signal':this[_0x4be5f4(0x103)][_0x4be5f4(0xdf)]},_0x5deeee=await fetch(this[_0x4be5f4(0x108)],_0x235d3a);if(_0x5deeee['ok'])return _0x135c3c[_0x4be5f4(0xe5)]?await this[_0x4be5f4(0x115)](_0x5deeee,_0x469cd8):await this[_0x4be5f4(0xeb)](_0x5deeee,_0x469cd8),Promise[_0x4be5f4(0x109)]();{const _0x3a7f84=await _0x5deeee[_0x4be5f4(0x105)]();return _0x3a7f84[_0x4be5f4(0xe7)](_0x4be5f4(0xfe))?Promise[_0x4be5f4(0xe8)](new _0x13470f(_0x3e5f12(_0x56d4dd,_0x4be5f4(0x104)))):_0x3a7f84[_0x4be5f4(0xe7)](_0x4be5f4(0x122))?Promise[_0x4be5f4(0xe8)](new _0x13470f(_0x3e5f12(_0x56d4dd,_0x4be5f4(0xe0)))):Promise[_0x4be5f4(0xe8)](new Error(_0x3a7f84));}}async[_0x4e60ce(0x10c)](_0x5c1530,_0x2abf9b,_0x51d2c0){const _0x80771a=_0x4e60ce;let _0x36d748,_0x2f0f74;return _0x2abf9b?(_0x36d748=_0x80771a(0xe6),_0x2f0f74=_0x80771a(0xf5)+_0x5c1530+_0x80771a(0x101)+_0x2abf9b):(_0x36d748=_0x80771a(0xff),_0x2f0f74=_0x5c1530),[{'role':_0x80771a(0x107),'content':_0x36d748},{'role':_0x80771a(0xde),'content':_0x2f0f74}];}async[_0x4e60ce(0x115)](_0x1755a2,_0x20ea56){const _0x23cf68=_0x4e60ce,_0x583432=_0x1755a2[_0x23cf68(0xfd)][_0x23cf68(0xe2)](),_0x9e9027=new TextDecoder();let _0x46037a='',_0x34a900='',_0x4527d8='',_0x12ffc3=!0x1;for(;!_0x12ffc3;){const {done:_0x209967,value:_0x21941d}=await _0x583432[_0x23cf68(0xe4)](),_0x380a78=_0x46037a+_0x9e9027[_0x23cf68(0xe9)](_0x21941d);let _0x33b86b='';_0x12ffc3=_0x209967;try{_0x33b86b=this[_0x23cf68(0xf4)](_0x380a78),_0x46037a='';}catch(_0x4a8e77){_0x46037a=_0x380a78;continue;}_0x34a900+=_0x33b86b,!_0x12ffc3&&this[_0x23cf68(0x116)](_0x34a900)||_0x34a900&&(_0x4527d8+=_0x34a900,_0x34a900='',_0x20ea56(_0x4527d8));}return Promise[_0x23cf68(0x109)]();}async[_0x4e60ce(0xeb)](_0x1933cd,_0x482208){const _0x4dd1a1=_0x4e60ce;return _0x482208((await _0x1933cd[_0x4dd1a1(0x10e)]())[_0x4dd1a1(0xef)][0x0][_0x4dd1a1(0x10f)][_0x4dd1a1(0xfc)]),Promise[_0x4dd1a1(0x109)]();}[_0x4e60ce(0x116)](_0x5c5b64){const _0x260aeb=_0x4e60ce,_0x43b490=_0x5c5b64[_0x260aeb(0x121)]('<')[_0x260aeb(0xf7)]!==_0x5c5b64[_0x260aeb(0x121)]('>')[_0x260aeb(0xf7)],_0x14855e=_0x5c5b64[_0x260aeb(0xf7)]<0x1e;return _0x43b490&&_0x14855e;}[_0x4e60ce(0xf4)](_0x43e708){const _0x2a289b=_0x4e60ce;return _0x43e708[_0x2a289b(0x121)](/\n(?![^{]*\})/g)[_0x2a289b(0xf2)](_0x415a61=>_0x415a61[_0x2a289b(0x117)](_0x2a289b(0xee),''))[_0x2a289b(0x114)](_0x1885c6=>_0x1885c6&&_0x1885c6[_0x2a289b(0xf7)]>0x0&&_0x2a289b(0x11f)!==_0x1885c6)[_0x2a289b(0xf2)](_0x12c01e=>{const _0x229203=_0x2a289b,{choices:_0x1cf219}=JSON[_0x229203(0xe3)](_0x12c01e);if(_0x1cf219[0x0]&&_0x1cf219[0x0][_0x229203(0x112)]&&_0x1cf219[0x0][_0x229203(0x112)][_0x229203(0xfc)])return _0x1cf219[0x0][_0x229203(0x112)][_0x229203(0xfc)];})[_0x2a289b(0x114)](_0x56ac26=>_0x56ac26)[_0x2a289b(0xf0)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1200b9=_0x28d2;(function(_0x1d6431,_0x357055){const _0x4f0ec7=_0x28d2,_0x16cb78=_0x1d6431();while(!![]){try{const _0x2cfbd9=parseInt(_0x4f0ec7(0x198))/0x1+-parseInt(_0x4f0ec7(0x1c7))/0x2+-parseInt(_0x4f0ec7(0x1a4))/0x3*(-parseInt(_0x4f0ec7(0x1bd))/0x4)+parseInt(_0x4f0ec7(0x185))/0x5*(-parseInt(_0x4f0ec7(0x19a))/0x6)+parseInt(_0x4f0ec7(0x19e))/0x7+parseInt(_0x4f0ec7(0x1a8))/0x8+parseInt(_0x4f0ec7(0x1a0))/0x9;if(_0x2cfbd9===_0x357055)break;else _0x16cb78['push'](_0x16cb78['shift']());}catch(_0x4b86e4){_0x16cb78['push'](_0x16cb78['shift']());}}}(_0x4273,0x3c739));import{CKEditorError as _0xfb9b8e}from'ckeditor5/src/utils.js';import{Plugin as _0x5bcb2e}from'ckeditor5/src/core.js';import _0x232d62 from'./aiassistantui.js';import _0x50041a from'./aiassistantediting.js';import{getTranslation as _0x4bd074}from'./utils/common-translations.js';function _0x28d2(_0x25a4b1,_0x52acd4){const _0x427366=_0x4273();return _0x28d2=function(_0x28d21b,_0x533477){_0x28d21b=_0x28d21b-0x17c;let _0x17f234=_0x427366[_0x28d21b];return _0x17f234;},_0x28d2(_0x25a4b1,_0x52acd4);}export default class r extends _0x5bcb2e{static get[_0x1200b9(0x17f)](){return[_0x232d62,_0x50041a];}static get[_0x1200b9(0x183)](){const _0x584cd1=_0x1200b9;return _0x584cd1(0x1cc);}constructor(_0x48b913){const _0x41f432=_0x1200b9;super(_0x48b913);const _0x309427=_0x48b913[_0x41f432(0x1c3)];_0x309427[_0x41f432(0x18b)](_0x41f432(0x1f4),getDefaultCommands(_0x48b913[_0x41f432(0x19b)])),_0x309427[_0x41f432(0x18b)](_0x41f432(0x1db),[]),_0x309427[_0x41f432(0x18b)](_0x41f432(0x19d),[]);const _0x17d08f=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1f4)),_0x3fa650=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1db)),_0x4883da=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x19d));_0x3fa650[_0x41f432(0x1d0)](_0x4182da=>{const _0x5a3466=_0x41f432,_0x105f3e=_0x17d08f[_0x5a3466(0x1bb)](_0x1bb1e3=>_0x1bb1e3[_0x5a3466(0x1be)]===_0x4182da[_0x5a3466(0x1be)]);_0x105f3e?_0x105f3e[_0x5a3466(0x190)]=_0x105f3e[_0x5a3466(0x190)][_0x5a3466(0x1e0)](_0x4182da[_0x5a3466(0x190)]):_0x17d08f[_0x5a3466(0x1c8)](_0x4182da);}),_0x17d08f[_0x41f432(0x1d0)](_0x2172b1=>{const _0x10d985=_0x41f432;_0x2172b1[_0x10d985(0x190)]=_0x2172b1[_0x10d985(0x190)][_0x10d985(0x1ec)](_0x22caa7=>!_0x4883da[_0x10d985(0x1b7)](_0x22caa7['id']));}),_0x309427[_0x41f432(0x1e3)](_0x41f432(0x1f4),_0x17d08f);}[_0x1200b9(0x18a)](){const _0x23a20a=_0x1200b9,_0x584e7c=this[_0x23a20a(0x197)];this[_0x23a20a(0x17e)]=_0x584e7c[_0x23a20a(0x1c3)][_0x23a20a(0x1ee)](_0x23a20a(0x17e)),this[_0x23a20a(0x1cd)]=setInterval(()=>{const _0x5b32f8=_0x23a20a;let _0x461e6d;for(const _0x5cc777 in _0x584e7c){const _0x4a415f=_0x5cc777,_0xaff745=_0x584e7c[_0x4a415f];if(_0x5b32f8(0x1b4)===_0xaff745||_0x5b32f8(0x1a6)===_0xaff745||_0x5b32f8(0x1e4)===_0xaff745||_0x5b32f8(0x187)===_0xaff745){delete _0x584e7c[_0x4a415f],_0x461e6d=_0xaff745;break;}}if(_0x5b32f8(0x1a6)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1d8),null);if(_0x5b32f8(0x1b4)===_0x461e6d&&console[_0x5b32f8(0x1ae)](_0x5b32f8(0x1c1)),_0x5b32f8(0x187)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1b3),null);_0x5b32f8(0x1e4)===_0x461e6d&&clearInterval(this[_0x5b32f8(0x1cd)]);},0x3e8);}[_0x1200b9(0x1a9)](){const _0x5bc6d0=_0x1200b9;this[_0x5bc6d0(0x1cd)]&&clearInterval(this[_0x5bc6d0(0x1cd)]);}}function _0x4273(){const _0x2395da=['translateArabic','93IQaeyb','changeStyle','aiLicenseKeyInvalid','direct','1695184qzUlqy','destroy','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','confident','French','info','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','Hindi','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrial','summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2932VGgGdX','groupId','translateSpanish','professional','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','improveWriting','config','translateEnglish','Direct','Spanish','345360CTAMNe','push','simplifyLanguage','Confident','Journalism','AIAssistant','_licenseKeyCheckInterval','casual','continue','forEach','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','Continue','Simplify\x20language','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','business','ai-invalid-license-key','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Arabic','poetic','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','concat','Change\x20style','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','set','aiLicenseKeyValid','makeShorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','German','Business','Improve\x20writing','Simplified\x20Chinese','filter','translateGerman','get','English','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.aiAssistant.commands','journalism','generate','licenseKey','requires','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','changeTone','pluginName','Generate\x20from\x20selection','11185DaPhDw','Make\x20longer','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20French\x20language.','init','define','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','commands','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Summarize','Legal','translateFrench','editor','92190KANjPr','Professional','942bLSDqD','locale','Make\x20shorter','ai.aiAssistant.removeCommands','1964732agVCEI','editOrReview','1476099evvYfo','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger'];_0x4273=function(){return _0x2395da;};return _0x4273();}export function getDefaultCommands(_0x36bdd8){const _0x2fc30f=_0x1200b9;return[{'groupId':_0x2fc30f(0x19f),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d6)),'commands':[{'id':_0x2fc30f(0x1c2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ea)),'prompt':_0x2fc30f(0x1d5)},{'id':_0x2fc30f(0x1e5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x19c)),'prompt':_0x2fc30f(0x1df)},{'id':_0x2fc30f(0x1a2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x186)),'prompt':_0x2fc30f(0x1b8)},{'id':_0x2fc30f(0x1c9),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d4)),'prompt':_0x2fc30f(0x180)}]},{'groupId':_0x2fc30f(0x17d),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x184)),'commands':[{'id':_0x2fc30f(0x1b5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x194)),'prompt':_0x2fc30f(0x1b9)},{'id':_0x2fc30f(0x1cf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d3)),'prompt':_0x2fc30f(0x1e2)}]},{'groupId':_0x2fc30f(0x182),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x18d)),'commands':[{'id':_0x2fc30f(0x1c0),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x199)),'prompt':_0x2fc30f(0x1f1)},{'id':_0x2fc30f(0x1ce),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x193)),'prompt':_0x2fc30f(0x18f)},{'id':_0x2fc30f(0x1a7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c5)),'prompt':_0x2fc30f(0x1d1)},{'id':_0x2fc30f(0x1ac),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ca)),'prompt':_0x2fc30f(0x1af)},{'id':_0x2fc30f(0x181),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d9)),'prompt':_0x2fc30f(0x1b6)}]},{'groupId':_0x2fc30f(0x1a5),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e1)),'commands':[{'id':_0x2fc30f(0x1d7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e9)),'prompt':_0x2fc30f(0x1da)},{'id':_0x2fc30f(0x1b1),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x195)),'prompt':_0x2fc30f(0x188)},{'id':_0x2fc30f(0x17c),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1cb)),'prompt':_0x2fc30f(0x18c)},{'id':_0x2fc30f(0x1dd),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e7)),'prompt':_0x2fc30f(0x192)}]},{'groupId':_0x2fc30f(0x18e),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ba)),'commands':[{'id':_0x2fc30f(0x1c4),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ef))]),'prompt':_0x2fc30f(0x1ab)},{'id':_0x2fc30f(0x1bf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c6))]),'prompt':_0x2fc30f(0x1bc)},{'id':_0x2fc30f(0x1aa),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1f0))]),'prompt':_0x2fc30f(0x1e6)},{'id':_0x2fc30f(0x1ed),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e8))]),'prompt':_0x2fc30f(0x1de)},{'id':_0x2fc30f(0x196),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ad))]),'prompt':_0x2fc30f(0x189)},{'id':_0x2fc30f(0x1d2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1eb))]),'prompt':_0x2fc30f(0x1b0)},{'id':_0x2fc30f(0x1f2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1b2))]),'prompt':_0x2fc30f(0x1a1)},{'id':_0x2fc30f(0x1a3),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1dc))]),'prompt':_0x2fc30f(0x1f3)}]}];}
|
|
23
|
+
const _0x153c3f=_0x1054;(function(_0x156b60,_0x185038){const _0x452c3b=_0x1054,_0x2c658a=_0x156b60();while(!![]){try{const _0x3fc740=-parseInt(_0x452c3b(0x1b8))/0x1*(-parseInt(_0x452c3b(0x1d9))/0x2)+-parseInt(_0x452c3b(0x1c0))/0x3+parseInt(_0x452c3b(0x1fa))/0x4*(-parseInt(_0x452c3b(0x1a2))/0x5)+-parseInt(_0x452c3b(0x1b6))/0x6+-parseInt(_0x452c3b(0x1cb))/0x7+-parseInt(_0x452c3b(0x1ea))/0x8+-parseInt(_0x452c3b(0x1bc))/0x9*(-parseInt(_0x452c3b(0x1a8))/0xa);if(_0x3fc740===_0x185038)break;else _0x2c658a['push'](_0x2c658a['shift']());}catch(_0x245ccb){_0x2c658a['push'](_0x2c658a['shift']());}}}(_0x2598,0x59a74));import{CKEditorError as _0x4b4f6e}from'ckeditor5/src/utils.js';import{Plugin as _0x5a56c1}from'ckeditor5/src/core.js';function _0x1054(_0x4ae817,_0x38483b){const _0x259890=_0x2598();return _0x1054=function(_0x105437,_0x53a08c){_0x105437=_0x105437-0x187;let _0x3b3dab=_0x259890[_0x105437];return _0x3b3dab;},_0x1054(_0x4ae817,_0x38483b);}import _0x55a7f0 from'./aiassistantui.js';import _0x5c75fc from'./aiassistantediting.js';import{getTranslation as _0x113ccc}from'./utils/common-translations.js';export default class r extends _0x5a56c1{static get[_0x153c3f(0x1ed)](){return[_0x55a7f0,_0x5c75fc];}static get[_0x153c3f(0x1d2)](){const _0x2bc293=_0x153c3f;return _0x2bc293(0x199);}constructor(_0x202ddd){const _0x106960=_0x153c3f;super(_0x202ddd);const _0x46c077=_0x202ddd[_0x106960(0x1a5)];_0x46c077[_0x106960(0x1cf)](_0x106960(0x1aa),getDefaultCommands(_0x202ddd[_0x106960(0x1fe)])),_0x46c077[_0x106960(0x1cf)](_0x106960(0x1ba),[]),_0x46c077[_0x106960(0x1cf)](_0x106960(0x1e9),[]);const _0xdd6ce2=_0x46c077[_0x106960(0x1f9)](_0x106960(0x1aa)),_0x42770a=_0x46c077[_0x106960(0x1f9)](_0x106960(0x1ba)),_0x4c79df=_0x46c077[_0x106960(0x1f9)](_0x106960(0x1e9));_0x42770a[_0x106960(0x1a6)](_0x413e32=>{const _0x25346a=_0x106960,_0x1ec8cd=_0xdd6ce2[_0x25346a(0x1d6)](_0x15b181=>_0x15b181[_0x25346a(0x1b3)]===_0x413e32[_0x25346a(0x1b3)]);_0x1ec8cd?_0x1ec8cd[_0x25346a(0x18c)]=_0x1ec8cd[_0x25346a(0x18c)][_0x25346a(0x192)](_0x413e32[_0x25346a(0x18c)]):_0xdd6ce2[_0x25346a(0x1b1)](_0x413e32);}),_0xdd6ce2[_0x106960(0x1a6)](_0x3838bc=>{const _0x40858e=_0x106960;_0x3838bc[_0x40858e(0x18c)]=_0x3838bc[_0x40858e(0x18c)][_0x40858e(0x1d1)](_0x3af7c9=>!_0x4c79df[_0x40858e(0x1b0)](_0x3af7c9['id']));}),_0x46c077[_0x106960(0x19e)](_0x106960(0x1aa),_0xdd6ce2);}[_0x153c3f(0x1c7)](){const _0x3867a0=_0x153c3f,_0x10373a=this[_0x3867a0(0x1a0)];this[_0x3867a0(0x1f5)]=_0x10373a[_0x3867a0(0x1a5)][_0x3867a0(0x1f9)](_0x3867a0(0x1f5)),this[_0x3867a0(0x1f2)]=setInterval(()=>{const _0x3f3197=_0x3867a0;let _0x46195a;for(const _0x20da2d in _0x10373a){const _0x2658b3=_0x20da2d,_0x4d251d=_0x10373a[_0x2658b3];if(_0x3f3197(0x1b9)===_0x4d251d||_0x3f3197(0x1ce)===_0x4d251d||_0x3f3197(0x1e8)===_0x4d251d||_0x3f3197(0x1be)===_0x4d251d){delete _0x10373a[_0x2658b3],_0x46195a=_0x4d251d;break;}}if(_0x3f3197(0x1ce)===_0x46195a)throw clearInterval(this[_0x3f3197(0x1f2)]),new _0x4b4f6e(_0x3f3197(0x1fd),null);if(_0x3f3197(0x1b9)===_0x46195a&&console[_0x3f3197(0x1f7)](_0x3f3197(0x1ac)),_0x3f3197(0x1be)===_0x46195a)throw clearInterval(this[_0x3f3197(0x1f2)]),new _0x4b4f6e(_0x3f3197(0x1ec),null);_0x3f3197(0x1e8)===_0x46195a&&clearInterval(this[_0x3f3197(0x1f2)]);},0x3e8);}[_0x153c3f(0x195)](){const _0x469be0=_0x153c3f;this[_0x469be0(0x1f2)]&&clearInterval(this[_0x469be0(0x1f2)]);}}function _0x2598(){const _0xfe185f=['makeLonger','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','improveWriting','translate','Translate','concat','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','destroy','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','poetic','Direct','AIAssistant','Friendly','translateChinese','business','Change\x20tone','set','Generate\x20from\x20selection','editor','editOrReview','1230qNuAXN','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','config','forEach','summarize','10HcXzpD','Hindi','ai.aiAssistant.commands','Improve\x20writing','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.','Make\x20shorter','translateFrench','Portuguese','includes','push','translateSpanish','groupId','Confident','Translate\x20to\x20%0','3590232bCymsD','Arabic','130414arERuj','aiLicenseKeyTrial','ai.aiAssistant.extraCommandGroups','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','22148622nKzAkc','changeStyle','aiLicenseKeyTrialLimit:operations','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','1894611oqsCFK','changeTone','Translate\x20the\x20content\x20to\x20French\x20language.','friendly','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','direct','init','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','4833185dINvfs','Business','Legal','aiLicenseKeyInvalid','define','Spanish','filter','pluginName','Journalism','generate','Translate\x20the\x20content\x20to\x20German\x20language.','find','Continue','makeShorter','8fuRyKV','journalism','simplifyLanguage','translateArabic','Translate\x20the\x20content\x20to\x20Hindi\x20language.','legal','continue','translateHindi','Edit\x20or\x20review','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','German','Poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','aiLicenseKeyValid','ai.aiAssistant.removeCommands','1189312MftpGz','translateGerman','ai-trial-license-key-reached-limit-changes','requires','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Professional','Summarize','French','_licenseKeyCheckInterval','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Make\x20longer','licenseKey','Simplified\x20Chinese','info','English','get','8884IsRnWB','confident','professional','ai-invalid-license-key','locale','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Change\x20style','translatePortuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','casual','Simplify\x20language','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','commands'];_0x2598=function(){return _0xfe185f;};return _0x2598();}export function getDefaultCommands(_0x10e913){const _0x3f906a=_0x153c3f;return[{'groupId':_0x3f906a(0x1a1),'groupLabel':_0x113ccc(_0x10e913,_0x3f906a(0x1e1)),'commands':[{'id':_0x3f906a(0x18f),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1ab)),'prompt':_0x3f906a(0x1e7)},{'id':_0x3f906a(0x1d8),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1ad)),'prompt':_0x3f906a(0x1ff)},{'id':_0x3f906a(0x18d),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1f4)),'prompt':_0x3f906a(0x18b)},{'id':_0x3f906a(0x1db),'label':_0x113ccc(_0x10e913,_0x3f906a(0x18a)),'prompt':_0x3f906a(0x1a3)}]},{'groupId':_0x3f906a(0x1d4),'groupLabel':_0x113ccc(_0x10e913,_0x3f906a(0x19f)),'commands':[{'id':_0x3f906a(0x1a7),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1f0)),'prompt':_0x3f906a(0x1ee)},{'id':_0x3f906a(0x1df),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1d7)),'prompt':_0x3f906a(0x1bf)}]},{'groupId':_0x3f906a(0x1c1),'groupLabel':_0x113ccc(_0x10e913,_0x3f906a(0x19d)),'commands':[{'id':_0x3f906a(0x1fc),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1ef)),'prompt':_0x3f906a(0x188)},{'id':_0x3f906a(0x189),'label':_0x113ccc(_0x10e913,_0x3f906a(0x194)),'prompt':_0x3f906a(0x1e6)},{'id':_0x3f906a(0x1c6),'label':_0x113ccc(_0x10e913,_0x3f906a(0x198)),'prompt':_0x3f906a(0x18e)},{'id':_0x3f906a(0x1fb),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b4)),'prompt':_0x3f906a(0x1e2)},{'id':_0x3f906a(0x1c3),'label':_0x113ccc(_0x10e913,_0x3f906a(0x19a)),'prompt':_0x3f906a(0x196)}]},{'groupId':_0x3f906a(0x1bd),'groupLabel':_0x113ccc(_0x10e913,_0x3f906a(0x200)),'commands':[{'id':_0x3f906a(0x19c),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1cc)),'prompt':_0x3f906a(0x1bb)},{'id':_0x3f906a(0x1de),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1cd)),'prompt':_0x3f906a(0x1e3)},{'id':_0x3f906a(0x1da),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1d3)),'prompt':_0x3f906a(0x1ca)},{'id':_0x3f906a(0x197),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1e5)),'prompt':_0x3f906a(0x193)}]},{'groupId':_0x3f906a(0x190),'groupLabel':_0x113ccc(_0x10e913,_0x3f906a(0x191)),'commands':[{'id':_0x3f906a(0x1c9),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1f8))]),'prompt':_0x3f906a(0x1c4)},{'id':_0x3f906a(0x1b2),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1d0))]),'prompt':_0x3f906a(0x1c8)},{'id':_0x3f906a(0x187),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1af))]),'prompt':_0x3f906a(0x1c5)},{'id':_0x3f906a(0x1eb),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1e4))]),'prompt':_0x3f906a(0x1d5)},{'id':_0x3f906a(0x1ae),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1f1))]),'prompt':_0x3f906a(0x1c2)},{'id':_0x3f906a(0x19b),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1f6))]),'prompt':_0x3f906a(0x1f3)},{'id':_0x3f906a(0x1e0),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1a9))]),'prompt':_0x3f906a(0x1dd)},{'id':_0x3f906a(0x1dc),'label':_0x113ccc(_0x10e913,_0x3f906a(0x1b5),[_0x113ccc(_0x10e913,_0x3f906a(0x1b7))]),'prompt':_0x3f906a(0x1a4)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18abec=_0x51fb;(function(_0x382d3e,_0x1d91f8){const _0xb96e4=_0x51fb,_0x4eed8a=_0x382d3e();while(!![]){try{const _0x1113ba=-parseInt(_0xb96e4(0xde))/0x1+-parseInt(_0xb96e4(0x10f))/0x2+-parseInt(_0xb96e4(0x107))/0x3+-parseInt(_0xb96e4(0xf3))/0x4*(-parseInt(_0xb96e4(0xe7))/0x5)+parseInt(_0xb96e4(0x106))/0x6*(-parseInt(_0xb96e4(0x116))/0x7)+parseInt(_0xb96e4(0xed))/0x8+parseInt(_0xb96e4(0x113))/0x9;if(_0x1113ba===_0x1d91f8)break;else _0x4eed8a['push'](_0x4eed8a['shift']());}catch(_0x49156c){_0x4eed8a['push'](_0x4eed8a['shift']());}}}(_0xb176,0x4fcbd));import{Plugin as _0x4ec36d}from'ckeditor5/src/core.js';function _0x51fb(_0x297d9a,_0x1362fa){const _0xb17650=_0xb176();return _0x51fb=function(_0x51fb7d,_0x77a5d){_0x51fb7d=_0x51fb7d-0xd9;let _0x1790be=_0xb17650[_0x51fb7d];return _0x1790be;},_0x51fb(_0x297d9a,_0x1362fa);}function _0xb176(){const _0x260c44=['addMarker','get','265085dXCslX','pop','canEditAt','pluginName','length','toModel','480400krJqiP','change','ai.useTheme','ck-fake-ai-selection','config','conversion','4AWLQGE','getFirstRange','for','span','insertContent','createPositionAfter','processor','schema','end','getRange','editor','showFakeVisualSelection','insertContentBelow','isAtEnd','from','has','editingDowncast','markerToElement','init','9558PKjCxk','512925dFdvEN','ck-fake-ai-selection_collapsed','getSelectedBlocks','ck-fake-ai-selection-candidate','selection','toView','setSelection','document','371464HtRGwl','getLastMatchingPosition','hideFakeVisualSelection','updateMarker','12094326HTIWoA','model','push','707QaDNgp','createRange','markerToHighlight','AIAssistantEditing','createSelection','start','ai-ui','removeMarker','612436sjRkQa','markers','ai-ui-candidate','ck-ai-assistant-ui_theme','isContent','data','getLastPosition'];_0xb176=function(){return _0x260c44;};return _0xb176();}const s=_0x18abec(0xdc),c=_0x18abec(0xe0);export default class i extends _0x4ec36d{static get[_0x18abec(0xea)](){const _0x28c621=_0x18abec;return _0x28c621(0xd9);}[_0x18abec(0x105)](){const _0x3f0e46=_0x18abec,{editor:_0x1c7c8c}=this,_0x169062=[_0x3f0e46(0xf0)];_0x1c7c8c[_0x3f0e46(0xf1)][_0x3f0e46(0xe6)](_0x3f0e46(0xef))&&_0x169062[_0x3f0e46(0x115)](_0x3f0e46(0xe1)),_0x1c7c8c[_0x3f0e46(0xf2)][_0x3f0e46(0xf5)](_0x3f0e46(0x103))[_0x3f0e46(0x118)]({'model':s,'view':{'classes':_0x169062,'priority':0xc}}),_0x1c7c8c[_0x3f0e46(0xf2)][_0x3f0e46(0xf5)](_0x3f0e46(0x103))[_0x3f0e46(0x104)]({'model':s,'view':{'name':_0x3f0e46(0xf6),'classes':[_0x3f0e46(0xf0),_0x3f0e46(0x108)],'priority':0xc}}),_0x1c7c8c[_0x3f0e46(0xf2)][_0x3f0e46(0xf5)](_0x3f0e46(0x103))[_0x3f0e46(0x118)]({'model':c,'view':{'classes':[_0x3f0e46(0x10a)],'priority':0x19}}),_0x1c7c8c[_0x3f0e46(0xf2)][_0x3f0e46(0xf5)](_0x3f0e46(0x103))[_0x3f0e46(0x104)]({'model':c,'view':{'name':_0x3f0e46(0xf6),'classes':[_0x3f0e46(0x10a),_0x3f0e46(0x108)],'priority':0x19}});}[_0x18abec(0xfe)](_0x508ec0){const _0x122379=_0x18abec,_0x17c123=this[_0x122379(0xfd)][_0x122379(0x114)],_0x2708a9=_0x508ec0?c:s;_0x17c123[_0x122379(0xee)](_0x48872a=>{const _0x354606=_0x122379,_0x1a6ce4=_0x17c123[_0x354606(0x10e)][_0x354606(0x10b)][_0x354606(0xf4)]();if(_0x17c123[_0x354606(0xdf)][_0x354606(0x102)](_0x2708a9))_0x48872a[_0x354606(0x112)](_0x2708a9,{'range':_0x1a6ce4});else{if(_0x1a6ce4[_0x354606(0xdb)][_0x354606(0x100)]){const _0x5d79de=_0x1a6ce4[_0x354606(0xdb)][_0x354606(0x110)](({item:_0x609804})=>!_0x17c123[_0x354606(0xfa)][_0x354606(0xe2)](_0x609804),{'boundaries':_0x1a6ce4});_0x48872a[_0x354606(0xe5)](_0x2708a9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x48872a[_0x354606(0x117)](_0x5d79de,_0x1a6ce4[_0x354606(0xfb)])});}else _0x48872a[_0x354606(0xe5)](_0x2708a9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1a6ce4});}});}[_0x18abec(0x111)](_0xfd97fe){const _0x2262cd=_0x18abec,_0x2fc4d1=this[_0x2262cd(0xfd)][_0x2262cd(0x114)],_0x4198fc=_0xfd97fe?c:s;_0x2fc4d1[_0x2262cd(0xdf)][_0x2262cd(0x102)](_0x4198fc)&&_0x2fc4d1[_0x2262cd(0xee)](_0x325731=>{const _0x1b29b2=_0x2262cd;_0x325731[_0x1b29b2(0xdd)](_0x4198fc);});}[_0x18abec(0xf7)](_0x47ff91,_0x50964b){const _0x2e3465=_0x18abec,_0x2d8bdd=_0x50964b||this[_0x2e3465(0xfd)][_0x2e3465(0x114)][_0x2e3465(0xdf)][_0x2e3465(0xe6)](s)[_0x2e3465(0xfc)]();if(!this[_0x2e3465(0xfd)][_0x2e3465(0x114)][_0x2e3465(0xe9)](_0x2d8bdd))return;const _0x338ec6=this[_0x2e3465(0xfd)][_0x2e3465(0xe3)][_0x2e3465(0xf9)][_0x2e3465(0x10c)](_0x47ff91),_0x44374c=this[_0x2e3465(0xfd)][_0x2e3465(0xe3)][_0x2e3465(0xec)](_0x338ec6);this[_0x2e3465(0xfd)][_0x2e3465(0x114)][_0x2e3465(0xee)](_0x2bd2bc=>{const _0xb8c44d=_0x2e3465;this[_0xb8c44d(0x111)]();const _0x169913=this[_0xb8c44d(0xfd)][_0xb8c44d(0x114)][_0xb8c44d(0xf7)](_0x44374c,_0x2d8bdd);_0x169913&&_0x2bd2bc[_0xb8c44d(0x10d)](_0x169913);});}[_0x18abec(0xff)](_0x3b8836){const _0x42cf77=_0x18abec,{model:_0x60eb30}=this[_0x42cf77(0xfd)],_0x2d48d6=Array[_0x42cf77(0x101)](_0x60eb30[_0x42cf77(0xda)](this[_0x42cf77(0xfd)][_0x42cf77(0x114)][_0x42cf77(0xdf)][_0x42cf77(0xe6)](s)[_0x42cf77(0xfc)]())[_0x42cf77(0x109)]()),_0xefee3e=_0x2d48d6[_0x42cf77(0xeb)]?_0x60eb30[_0x42cf77(0xf8)](_0x2d48d6[_0x42cf77(0xe8)]()):_0x60eb30[_0x42cf77(0x10e)][_0x42cf77(0x10b)][_0x42cf77(0xe4)]();this[_0x42cf77(0xf7)](_0x3b8836,_0xefee3e);}}
|