@ckeditor/ckeditor5-slash-command 48.8.1-alpha.0 → 48.8.1-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x309d15}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0xc35a8b}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x440e2a,uid as _0x3fa968}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x16b87a,IconQuote as _0x126ba4,IconBulletedList as _0x31b61c,IconCodeBlock as _0x15632c,IconBrowseFiles as _0x5bd611,IconEmoji as _0x3405b8,IconHeading1 as _0x17a76d,IconHeading2 as _0xbe3678,IconHeading3 as _0x69113c,IconHeading4 as _0x231a94,IconHeading5 as _0x492633,IconHeading6 as _0x5e3575,IconHorizontalLine as _0xb640bb,IconHtml as _0x384412,IconIndent as _0x562ce2,IconTable as _0x22dfc2,IconTableOfContents as _0x8c8c49,IconNumberedList as _0x23cad8,IconOutdent as _0x5e68f5,IconParagraph as _0x247ba9,IconTodoList as _0xe9605b,IconFootnote as _0x26ee66,IconPlay as _0x472119}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x219e65,View as _0x4cb0cc}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x309d15{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cfe95){super(_0x5cfe95),this['_allowedCommands']=null;}['afterInit'](){const _0x416b75=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x4bdaa4=function(_0x4b412f){let _0x5cd058=['heading4','heading5','heading6'];if(_0x4b412f){const _0x4a699c=_0x4b412f['map'](_0x3852af=>_0x3852af['model']);_0x5cd058=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x38fc48=>!_0x4a699c['includes'](_0x38fc48));}return _0x5cd058;}(this['editor']['config']['get']('heading.options'));let _0x57fec4=this['getDefaultCommands']()['filter'](_0x2f6b6a=>!_0x4bdaa4['includes'](_0x2f6b6a['id']))['filter'](_0x48148c=>!_0x416b75['includes'](_0x48148c['commandName']));const _0x2a5a12=this['editor']['config']['get']('slashCommand.extraCommands');_0x2a5a12&&_0x2a5a12['length']&&(_0x57fec4=_0x57fec4['concat'](_0x2a5a12));const _0x396b46=this['editor']['config']['get']('template.definitions');_0x396b46&&_0x396b46['length']&&(_0x57fec4=_0x57fec4['concat'](function(_0x2bd168){return _0x2bd168['map'](_0x552fae=>{const {title:_0x2fdb31,icon:_0xae3a3c,description:_0x1c1a6e,data:_0x4691f0}=_0x552fae,_0x5197b8={'id':O(_0x2fdb31,'template'),'commandName':'insertTemplate','execute':_0x28e0cc=>{_0x28e0cc['execute']('insertTemplate',_0x4691f0);},'description':_0x1c1a6e,'icon':_0xae3a3c,'title':_0x2fdb31};return _0xae3a3c&&(_0x5197b8['isIconColorInherited']=!0x1),_0x5197b8;});}(_0x396b46)));const _0x5c018a=this['editor']['config']['get']('style.definitions');_0x5c018a&&_0x5c018a['length']&&(_0x57fec4=_0x57fec4['concat'](function(_0x29007d){return _0x29007d['map'](_0x411810=>({'id':O(_0x411810['name'],'style'),'commandName':'style','execute':_0x4a9428=>{_0x4a9428['execute']('style',{'styleName':_0x411810['name']});},'isEnabled':_0x4e3239=>{const _0x48987b=_0x4e3239['commands']['get']('style');return _0x48987b['isEnabled']&&_0x48987b['enabledStyles']['includes'](_0x411810['name']);},'title':_0x411810['name']}));}(_0x5c018a)));const _0x29c707=_0x57fec4['filter'](_0x5d5054=>!_0x5d5054['commandName']||void 0x0!==this['editor']['commands']['get'](_0x5d5054['commandName'])),_0x34e392=[];for(const _0x2cb065 of _0x29c707)_0x34e392['push']({'id':_0x2cb065['id'],'commandName':_0x2cb065['commandName'],'title':'function'==typeof _0x2cb065['title']?_0x2cb065['title'](this['editor']):_0x2cb065['title'],'description':_0x2cb065['description'],'icon':_0x2cb065['icon'],'isIconColorInherited':_0x2cb065['isIconColorInherited'],'aliases':_0x2cb065['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2cb065),'execute':()=>this['_proxyExecute'](_0x2cb065)});this['_allowedCommands']=_0x34e392['sort'](S),async function(_0x939235){const _0x137c7e=_0xb9d739([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x91a742=0x305505ed,_0x4bff1c=0x30528fcd^_0x91a742,_0x11040a=window[_0xb9d739([0x44,0x61,0x74,0x65])][_0xb9d739([0x6e,0x6f,0x77])](),_0x1d5140=_0x939235[_0xb9d739([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4863c=new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f445=>{_0x1d5140[_0xb9d739([0x6f,0x6e,0x63,0x65])](_0xb9d739([0x72,0x65,0x61,0x64,0x79]),_0x18f445);}),_0x469ae1={[_0xb9d739([0x6b,0x74,0x79])]:_0xb9d739([0x45,0x43]),[_0xb9d739([0x75,0x73,0x65])]:_0xb9d739([0x73,0x69,0x67]),[_0xb9d739([0x63,0x72,0x76])]:_0xb9d739([0x50,0x2d,0x32,0x35,0x36]),[_0xb9d739([0x78])]:_0xb9d739([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xb9d739([0x79])]:_0xb9d739([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xb9d739([0x61,0x6c,0x67])]:_0xb9d739([0x45,0x53,0x32,0x35,0x36])},_0x2d516c=_0x1d5140[_0xb9d739([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb9d739([0x67,0x65,0x74])](_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c8fa5(){let _0x594d7d,_0x1978a4=null,_0x16e97d=null;try{if(_0x2d516c==_0xb9d739([0x47,0x50,0x4c]))return _0xb9d739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x594d7d=_0x25bf6d(),!_0x594d7d)return _0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x594d7d[_0xb9d739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16e97d=_0x3aa72b(_0x594d7d[_0xb9d739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x594d7d[_0xb9d739([0x6a,0x74,0x69])])),await _0x293992()?_0x1a2b39()?_0x2881a7()?_0xb9d739([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x160a66()?(_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb9d739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1978a4=_0x399518(_0xb9d739([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5942dc()):_0xb9d739([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb9d739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2881a7(){const _0x5121c6=[_0xb9d739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb9d739([0x74,0x72,0x69,0x61,0x6c])][_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11040a/0x3e8:0xe10*_0x4bff1c;return _0x594d7d[_0xb9d739([0x65,0x78,0x70])]<_0x5121c6;}function _0x1a2b39(){const _0x2f9a2e=_0x594d7d[_0xb9d739([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f9a2e&&(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x2a]))||(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x53,0x43]))||(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x50,0x50]))||!(!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x20d21a()))));}function _0x160a66(){const _0x4ffa65=_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ffa65||0x0==_0x4ffa65[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29a39b}=new URL(window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ffa65[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a39b))return!0x0;const _0x35de0d=_0x29a39b[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e]));return _0x4ffa65[_0xb9d739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x410c14=>_0x410c14[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x2a])))[_0xb9d739([0x6d,0x61,0x70])](_0xaccb2a=>_0xaccb2a[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e])))[_0xb9d739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x443234=>_0x443234[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35de0d[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9d739([0x6d,0x61,0x70])](_0x4f0342=>Array(_0x35de0d[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f0342[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9d739([0x66,0x69,0x6c,0x6c])](_0x4f0342[0x0]===_0xb9d739([0x2a])?_0xb9d739([0x2a]):'')[_0xb9d739([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f0342))[_0xb9d739([0x73,0x6f,0x6d,0x65])](_0x24deac=>_0x35de0d[_0xb9d739([0x65,0x76,0x65,0x72,0x79])]((_0x38084f,_0x3fd14b)=>_0x24deac[_0x3fd14b]===_0x38084f||_0x24deac[_0x3fd14b]===_0xb9d739([0x2a])));}function _0x5942dc(){return _0x1978a4&&_0x16e97d?new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548c03,_0x2c0e9f)=>{_0x1978a4[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x548c03,_0x2c0e9f),_0x16e97d[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x4bf896=>{_0x4bf896!=_0xb9d739([0x56,0x61,0x6c,0x69,0x64])&&_0x548c03(_0x4bf896);},_0x2c0e9f);}):_0x1978a4||_0x16e97d||_0xb9d739([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3aa72b(_0x197c46,_0x2f7522){return new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a6fbc=>{if(_0x60f568())return _0x5a6fbc(_0xb9d739([0x56,0x61,0x6c,0x69,0x64]));_0x572aab(),_0x1d5140[_0xb9d739([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x64c850=!0x1;const _0xf6b9f7=_0x3fa968();function _0x4e3f8b(_0x2ca832){return!!_0x2ca832&&(typeof _0x2ca832===_0xb9d739([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ca832===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ca832[_0xb9d739([0x74,0x68,0x65,0x6e])]===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ca832[_0xb9d739([0x63,0x61,0x74,0x63,0x68])]===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39225e(_0x30afab){_0x2269ed(_0x30afab)[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x4408ce=>{if(!_0x4408ce||_0x4408ce[_0xb9d739([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb9d739([0x6f,0x6b]))return _0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x375642(_0x3fd9ed(_0xf6b9f7+_0x2f7522))!=_0x4408ce[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb9d739([0x56,0x61,0x6c,0x69,0x64]);})[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x1cac67=>(_0x2e94d7(),_0x1cac67),()=>{const _0x455374=_0x20ac75();return null==_0x455374?(_0x2e94d7(),_0xb9d739([0x56,0x61,0x6c,0x69,0x64])):_0xb9d739(_0x11040a-_0x455374>(0x145981ed^_0x91a742)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x5a6fbc)[_0xb9d739([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x391b29=0x3063eb6d^_0x91a742;function _0x2e94d7(){const _0x14da8b=_0xb9d739([0x6c,0x6c,0x63,0x74,0x2d])+_0x375642(_0x3fd9ed(_0x197c46)),_0x365275=_0x1bceb9(_0x375642(window[_0xb9d739([0x4d,0x61,0x74,0x68])][_0xb9d739([0x63,0x65,0x69,0x6c])](_0x11040a/_0x391b29)));window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9d739([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14da8b,_0x365275);}function _0x20ac75(){const _0xa9a683=_0xb9d739([0x6c,0x6c,0x63,0x74,0x2d])+_0x375642(_0x3fd9ed(_0x197c46)),_0xb62dc6=window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9d739([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa9a683);return _0xb62dc6?window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bceb9(_0xb62dc6),0x10)*_0x391b29:null;}function _0x2269ed(_0x1d7e3a){return new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d17e0,_0x43038b)=>{_0x1d7e3a[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x2d17e0,_0x43038b),window[_0xb9d739([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43038b,0x3054d12d^_0x91a742);});}}_0x1d5140[_0xb9d739([0x6f,0x6e])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30520d,_0x2d74e0)=>{if(_0x2d74e0[0x0]!=_0x197c46)return _0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d74e0[0x1]={..._0x2d74e0[0x1],[_0xb9d739([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf6b9f7};},{[_0xb9d739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9d739([0x68,0x69,0x67,0x68])}),_0x1d5140[_0xb9d739([0x6f,0x6e])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x453e12=>{_0x4e3f8b(_0x453e12[_0xb9d739([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x64c850=!0x0,_0x39225e(_0x453e12[_0xb9d739([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb9d739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9d739([0x6c,0x6f,0x77])}),_0xc4863c[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>{_0x64c850||_0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x60f568(){return _0x1d5140[_0xb9d739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9d739([0x76,0x69,0x65,0x77])][_0xb9d739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb9d739([0x61,0x75,0x74,0x6f]);}function _0x572aab(){_0x1d5140[_0xb9d739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9d739([0x76,0x69,0x65,0x77])][_0xb9d739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb9d739([0x61,0x75,0x74,0x6f]);}}function _0x399518(_0x2d321f){const _0x14cfa6=[new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124207=>setTimeout(_0x124207,0x305c3b21^_0x91a742)),_0xc4863c[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3dc5=>{let _0x40597c=0x0;_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x6f,0x6e])](_0xb9d739([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c1303,_0x3b4c56)=>{_0x3b4c56[0x0][_0xb9d739([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40597c++,_0x40597c==(0x30550005^_0x91a742)&&(_0x1b3dc5(),_0x1c1303[_0xb9d739([0x6f,0x66,0x66])]());});}))];return window[_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb9d739([0x72,0x61,0x63,0x65])](_0x14cfa6)[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>_0x2d321f);}async function _0x2483ef(){await _0xc4863c,_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3edf1d,_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3edf1d,_0x1d5140[_0xb9d739([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20d21a(){return window[_0xb9d739([0x67,0x6c,0x6f,0x62])]&&window[_0xb9d739([0x67,0x6c,0x6f,0x62])][_0xb9d739([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x446ecc(_0x41953f){const _0x42d504=_0x2e92dd();_0x1d5140[_0x42d504]=_0xb9d739([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41953f,_0x41953f!=_0xb9d739([0x56,0x61,0x6c,0x69,0x64])&&_0x2483ef();}function _0x2e92dd(){const _0x265dd7=window[_0xb9d739([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb9d739([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb9d739([0x6e,0x6f,0x77])]())[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb9d739([0x2e]),'');let _0x952e0c=_0xb9d739([0x75]);for(let _0x57e701=0x0;_0x57e701<_0x265dd7[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57e701+=0x2){let _0xac336a=window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x265dd7[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57e701,_0x57e701+0x2));_0xac336a>=_0x137c7e[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xac336a-=_0x137c7e[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x952e0c+=_0x137c7e[_0xac336a];}return _0x952e0c;}function _0x25bf6d(){const _0x3bece1=_0x2d516c[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e]));if(0x3!=_0x3bece1[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aa081(_0x3bece1[0x1]);function _0x3aa081(_0x499d8d){const _0x14276d=_0x423102(_0x499d8d);return _0x14276d&&_0x59acb0()?_0x14276d:null;function _0x59acb0(){const _0x1f5088=_0x14276d[_0xb9d739([0x6a,0x74,0x69])],_0x14aae0=window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f5088[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f5088[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38c085={..._0x14276d,[_0xb9d739([0x6a,0x74,0x69])]:_0x1f5088[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f5088[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38c085[_0xb9d739([0x76,0x63])],_0x3fd9ed(_0x38c085)==_0x14aae0;}}}async function _0x293992(){let _0x42bc0a=!0x0;try{const _0x2445c9=_0x2d516c[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e])),[_0x579492,_0xbeb285,_0x5169ef]=_0x2445c9;return _0x5b9625(_0x579492),await _0x457d3f(_0x579492,_0xbeb285,_0x5169ef),_0x42bc0a;}catch{return!0x1;}function _0x5b9625(_0x4cbc77){const _0x40c55d=_0x423102(_0x4cbc77);_0x40c55d&&_0x40c55d[_0xb9d739([0x61,0x6c,0x67])]==_0xb9d739([0x45,0x53,0x32,0x35,0x36])||(_0x42bc0a=!0x1);}async function _0x457d3f(_0x21e901,_0x2ca04e,_0x18ebbb){const _0x40ad1e=window[_0xb9d739([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb9d739([0x66,0x72,0x6f,0x6d])](_0x5d21f1(_0x18ebbb),_0xd5824f=>_0xd5824f[_0xb9d739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11fd98=new window[(_0xb9d739([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb9d739([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21e901+_0xb9d739([0x2e])+_0x2ca04e),_0x188d33=window[_0xb9d739([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb9d739([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x188d33)return;const _0x5c9b7d=await _0x188d33[_0xb9d739([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb9d739([0x6a,0x77,0x6b]),_0x469ae1,{[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x45,0x43,0x44,0x53,0x41]),[_0xb9d739([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb9d739([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x188d33[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x45,0x43,0x44,0x53,0x41]),[_0xb9d739([0x68,0x61,0x73,0x68])]:{[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c9b7d,_0x40ad1e,_0x11fd98)||(_0x42bc0a=!0x1);}}function _0x423102(_0x12463a){return _0x12463a[_0xb9d739([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb9d739([0x65,0x79]))?JSON[_0xb9d739([0x70,0x61,0x72,0x73,0x65])](_0x5d21f1(_0x12463a)):null;}function _0x5d21f1(_0x4e72e8){return window[_0xb9d739([0x61,0x74,0x6f,0x62])](_0x4e72e8[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb9d739([0x2b]))[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb9d739([0x2f])));}function _0x3fd9ed(_0x810d6a){let _0x1d98ab=0x1505;function _0x2274d3(_0x41944c){for(let _0x2eed77=0x0;_0x2eed77<_0x41944c[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eed77++){const _0x4f2982=_0x41944c[_0xb9d739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2eed77);_0x1d98ab=(_0x1d98ab<<0x5)+_0x1d98ab+_0x4f2982,_0x1d98ab&=_0x1d98ab;}}function _0x850f42(_0x4d1fce){Array[_0xb9d739([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1fce)?_0x4d1fce[_0xb9d739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x850f42):_0x4d1fce&&typeof _0x4d1fce==_0xb9d739([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb9d739([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1fce)[_0xb9d739([0x73,0x6f,0x72,0x74])]()[_0xb9d739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a81a0,_0x376068])=>{_0x2274d3(_0x1a81a0),_0x850f42(_0x376068);}):_0x2274d3(window[_0xb9d739([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1fce));}return _0x850f42(_0x810d6a),_0x1d98ab>>>0x0;}function _0x375642(_0x4419ff){return _0x4419ff[_0xb9d739([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb9d739([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb9d739([0x30]));}function _0x1bceb9(_0x570b5a){return _0x570b5a[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb9d739([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb9d739([0x6a,0x6f,0x69,0x6e])]('');}function _0x3edf1d(){}function _0xb9d739(_0x145634){return _0x145634['map'](_0x36a83a=>String['fromCharCode'](_0x36a83a))['join']('');}_0x446ecc(await _0x5c8fa5());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x473f3e=_0x13b042=>function(_0x3910e7,_0xea5435){const t=_0x3910e7['t'],_0x5526f1=_0x3910e7['t'];switch(_0xea5435){case'AI\x20Assistant':return _0x5526f1('AI\x20Assistant');case'Block\x20quote':return _0x5526f1('Block\x20quote');case'Bulleted\x20List':return _0x5526f1('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5526f1('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5526f1('Open\x20file\x20manager');case'Insert\x20image':return _0x5526f1('Insert\x20image');case'Heading\x201':return _0x5526f1('Heading\x201');case'Heading\x202':return _0x5526f1('Heading\x202');case'Heading\x203':return _0x5526f1('Heading\x203');case'Heading\x204':return _0x5526f1('Heading\x204');case'Heading\x205':return _0x5526f1('Heading\x205');case'Heading\x206':return _0x5526f1('Heading\x206');case'Horizontal\x20line':return _0x5526f1('Horizontal\x20line');case'Insert\x20HTML':return _0x5526f1('Insert\x20HTML');case'Increase\x20indent':return _0x5526f1('Increase\x20indent');case'Insert\x20table':return _0x5526f1('Insert\x20table');case'Table\x20of\x20contents':return _0x5526f1('Table\x20of\x20contents');case'Numbered\x20List':return _0x5526f1('Numbered\x20List');case'Decrease\x20indent':return _0x5526f1('Decrease\x20indent');case'Paragraph':return _0x5526f1('Paragraph');case'To-do\x20List':return _0x5526f1('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0xea5435;}}(this['editor']['locale'],_0x13b042);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x16b87a,'title':_0x473f3e('AI\x20Assistant'),'description':_0x473f3e('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x7fb62e=>{setTimeout(()=>_0x7fb62e['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x126ba4,'title':_0x473f3e('Block\x20quote'),'description':_0x473f3e('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x31b61c,'title':_0x473f3e('Bulleted\x20List'),'description':_0x473f3e('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x15632c,'title':_0x473f3e('Insert\x20code\x20block'),'description':_0x473f3e('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5bd611,'title':_0x473f3e('Open\x20file\x20manager'),'description':_0x473f3e('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5bd611,'title':_0x473f3e('Insert\x20image'),'description':_0x473f3e('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3405b8,'title':_0x473f3e('Emoji'),'description':_0x473f3e('Insert\x20an\x20emoji'),'execute':_0x50f7ce=>{setTimeout(()=>_0x50f7ce['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x17a76d,'title':_0x473f3e('Heading\x201'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x201'),'execute':_0x37d51e=>{_0x37d51e['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0xbe3678,'title':_0x473f3e('Heading\x202'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x202'),'execute':_0x59da7e=>{_0x59da7e['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x69113c,'title':_0x473f3e('Heading\x203'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x203'),'execute':_0xbda1b2=>{_0xbda1b2['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x231a94,'title':_0x473f3e('Heading\x204'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x204'),'execute':_0x10270c=>{_0x10270c['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x492633,'title':_0x473f3e('Heading\x205'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x205'),'execute':_0x5141fa=>{_0x5141fa['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5e3575,'title':_0x473f3e('Heading\x206'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x206'),'execute':_0x5b86fa=>{_0x5b86fa['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0xb640bb,'title':_0x473f3e('Horizontal\x20line'),'description':_0x473f3e('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x384412,'title':_0x473f3e('Insert\x20HTML'),'description':_0x473f3e('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x562ce2,'title':_0x473f3e('Increase\x20indent'),'description':_0x473f3e('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x473f3e('Insert\x20Mermaid\x20diagram'),'description':_0x473f3e('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x22dfc2,'title':_0x473f3e('Insert\x20table'),'description':_0x473f3e('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x8c8c49,'title':_0x473f3e('Table\x20of\x20contents'),'description':_0x473f3e('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x23cad8,'title':_0x473f3e('Numbered\x20List'),'description':_0x473f3e('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x5e68f5,'title':_0x473f3e('Decrease\x20indent'),'description':_0x473f3e('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x247ba9,'title':_0x473f3e('Paragraph'),'description':_0x473f3e('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xe9605b,'title':_0x473f3e('To-do\x20List'),'description':_0x473f3e('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x26ee66,'title':_0x473f3e('Footnote'),'description':_0x473f3e('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x146148){return _0x146148['isEnabled']?_0x146148['isEnabled'](this['editor']):!_0x146148['commandName']||this['editor']['commands']['get'](_0x146148['commandName'])['isEnabled'];}['_proxyExecute'](_0x5d48df){if(_0x5d48df['execute'])_0x5d48df['execute'](this['editor']);else{if(!_0x5d48df['commandName'])throw new _0x440e2a('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5d48df});this['editor']['execute'](_0x5d48df['commandName']);}}}function S(_0x177dd9,_0x16e731){return _0x177dd9['title']<_0x16e731['title']?-0x1:_0x177dd9['title']>_0x16e731['title']?0x1:0x0;}function O(_0x2f8d28,_0x36155b){return _0x36155b+'-'+_0x2f8d28['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x309d15{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x533627){const _0x5c136d=_0x533627&&_0x533627['toLowerCase']();let _0xbb860f=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xbb860f=_0xbb860f['filter'](_0x52f42f=>_0x52f42f['isEnabled']()),_0x5c136d){const _0x416792=[],_0x1f82b6=[],_0x4bec9e=[],_0x4cb877=[];for(const _0x4e9b8e of _0xbb860f)_0x4e9b8e['id']['toLowerCase']()['includes'](_0x5c136d)?_0x416792['push'](_0x4e9b8e):_0x4e9b8e['title']['toLowerCase']()['includes'](_0x5c136d)?_0x1f82b6['push'](_0x4e9b8e):_0x4e9b8e['aliases']&&_0x4e9b8e['aliases']['some'](_0x5ab43d=>_0x5ab43d['toLowerCase']()['includes'](_0x5c136d))?_0x4bec9e['push'](_0x4e9b8e):_0x4e9b8e['description']&&_0x4e9b8e['description']['toLowerCase']()['includes'](_0x5c136d)&&_0x4cb877['push'](_0x4e9b8e);_0xbb860f=_0x416792['concat'](_0x1f82b6,_0x4bec9e,_0x4cb877);}return _0xbb860f;}}class SlashCommandButtonView extends _0x219e65{constructor(_0x38d0a3,_0x58d1d6){super(_0x38d0a3),this['textPartView']=this['_createTextPartView'](_0x38d0a3,_0x58d1d6),void 0x0!==_0x58d1d6['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x58d1d6['isIconColorInherited']),this['set']({'icon':_0x58d1d6['icon']||_0x472119,'withText':!0x0,'label':_0x58d1d6['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x35c2f6,_0x315e9c){const _0xe5916a=new _0x4cb0cc(_0x35c2f6);return _0xe5916a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x315e9c['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x315e9c['description']}]}]:[this['labelView']]}),_0xe5916a;}}class SlashCommandUI extends _0x309d15{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18fc40){super(_0x18fc40),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x459793=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1be786;for(const _0x48c1ce in _0x459793){const _0x31fcd8=_0x48c1ce,_0x39bfb5=_0x459793[_0x31fcd8];if('slashCommandLicenseKeyValid'==_0x39bfb5||'slashCommandLicenseKeyInvalid'==_0x39bfb5||'slashCommandLicenseKeyExpired'==_0x39bfb5||'slashCommandLicenseKeyDomainLimit'==_0x39bfb5||'slashCommandLicenseKeyNotAllowed'==_0x39bfb5||'slashCommandLicenseKeyEvaluationLimit'==_0x39bfb5||'slashCommandLicenseKeyUsageLimit'==_0x39bfb5){delete _0x459793[_0x31fcd8],_0x1be786=_0x39bfb5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1be786&&_0x459793['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1be786&&_0x459793['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1be786&&_0x459793['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1be786&&_0x459793['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1be786&&_0x459793['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1be786&&_0x459793['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xb96dfe=this['editor'],_0x5d436c=this['editor']['plugins']['get']('SlashCommandEditing'),_0x49270f=_0xb96dfe['config']['get']('mention.feeds');_0x49270f['push']({'marker':'/','feed':_0x329daa=>_0x5d436c['getMatchingCommands'](_0x329daa),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xb96dfe['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xb96dfe['config']['set']('mention.feeds',_0x49270f);}['_overrideMentionExecuteListener'](){const _0x475f9e=this['editor'];_0x475f9e['commands']['get']('mention')['on']('execute',(_0x87c5f2,_0x196563)=>{const _0x9876f1=_0x196563[0x0],_0x537d9b=_0x475f9e['model'];'/'===_0x9876f1['marker']&&_0x537d9b['change'](_0x32f1fb=>{_0x32f1fb['remove'](_0x9876f1['range']),_0x9876f1['mention']['execute'](),_0x87c5f2['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x56b2c1){const _0x26f06d=this['editor']['locale'],_0x4e545c=new SlashCommandButtonView(_0x26f06d,_0x56b2c1);return _0x4e545c['render'](),_0x4e545c['element'];}}class SlashCommand extends _0x309d15{static get['requires'](){return[_0xc35a8b,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
23
+ import{Plugin as _0x1621ab}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x41fe7e}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x455950,uid as _0x2a564b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x180f8b,IconQuote as _0x4c6759,IconBulletedList as _0x3d21fd,IconCodeBlock as _0x12ae03,IconBrowseFiles as _0x2151ab,IconEmoji as _0x37f51c,IconHeading1 as _0x3de418,IconHeading2 as _0x4d1c92,IconHeading3 as _0x151501,IconHeading4 as _0x3615ef,IconHeading5 as _0x3148e1,IconHeading6 as _0x166654,IconHorizontalLine as _0x42bf38,IconHtml as _0x3afdd2,IconIndent as _0x450a82,IconTable as _0xfb6cd9,IconTableOfContents as _0x12f569,IconNumberedList as _0x48798b,IconOutdent as _0x48771c,IconParagraph as _0x53fbe3,IconTodoList as _0x40b581,IconFootnote as _0x5ab836,IconPlay as _0x398f9d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc98a35,View as _0x25b200}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x1621ab{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x247518){super(_0x247518),this['_allowedCommands']=null;}['afterInit'](){const _0x15c25d=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x26598a=function(_0x4d2915){let _0xd17600=['heading4','heading5','heading6'];if(_0x4d2915){const _0x21a136=_0x4d2915['map'](_0x457586=>_0x457586['model']);_0xd17600=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4f026f=>!_0x21a136['includes'](_0x4f026f));}return _0xd17600;}(this['editor']['config']['get']('heading.options'));let _0x10e8ec=this['getDefaultCommands']()['filter'](_0x43facb=>!_0x26598a['includes'](_0x43facb['id']))['filter'](_0x1bf7ae=>!_0x15c25d['includes'](_0x1bf7ae['commandName']));const _0x494cd2=this['editor']['config']['get']('slashCommand.extraCommands');_0x494cd2&&_0x494cd2['length']&&(_0x10e8ec=_0x10e8ec['concat'](_0x494cd2));const _0x4222cb=this['editor']['config']['get']('template.definitions');_0x4222cb&&_0x4222cb['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x2ff126){return _0x2ff126['map'](_0x16792c=>{const {title:_0x17f9d9,icon:_0x3dce64,description:_0x214b60,data:_0x54975f}=_0x16792c,_0x23d888={'id':O(_0x17f9d9,'template'),'commandName':'insertTemplate','execute':_0x560ae7=>{_0x560ae7['execute']('insertTemplate',_0x54975f);},'description':_0x214b60,'icon':_0x3dce64,'title':_0x17f9d9};return _0x3dce64&&(_0x23d888['isIconColorInherited']=!0x1),_0x23d888;});}(_0x4222cb)));const _0x1cb5a9=this['editor']['config']['get']('style.definitions');_0x1cb5a9&&_0x1cb5a9['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x51315d){return _0x51315d['map'](_0x4c5076=>({'id':O(_0x4c5076['name'],'style'),'commandName':'style','execute':_0x4225a8=>{_0x4225a8['execute']('style',{'styleName':_0x4c5076['name']});},'isEnabled':_0x1f5b30=>{const _0x5bbf49=_0x1f5b30['commands']['get']('style');return _0x5bbf49['isEnabled']&&_0x5bbf49['enabledStyles']['includes'](_0x4c5076['name']);},'title':_0x4c5076['name']}));}(_0x1cb5a9)));const _0x13b36f=_0x10e8ec['filter'](_0x1b5e50=>!_0x1b5e50['commandName']||void 0x0!==this['editor']['commands']['get'](_0x1b5e50['commandName'])),_0x3a8346=[];for(const _0x2e2c68 of _0x13b36f)_0x3a8346['push']({'id':_0x2e2c68['id'],'commandName':_0x2e2c68['commandName'],'title':'function'==typeof _0x2e2c68['title']?_0x2e2c68['title'](this['editor']):_0x2e2c68['title'],'description':_0x2e2c68['description'],'icon':_0x2e2c68['icon'],'isIconColorInherited':_0x2e2c68['isIconColorInherited'],'aliases':_0x2e2c68['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2e2c68),'execute':()=>this['_proxyExecute'](_0x2e2c68)});this['_allowedCommands']=_0x3a8346['sort'](S),async function(_0x4b5cc3){const _0x4484b4=_0x52c6aa([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x5e5be9=0x305505ed,_0x5b5ef6=0x30528fbd^_0x5e5be9,_0x13ce30=window[_0x52c6aa([0x44,0x61,0x74,0x65])][_0x52c6aa([0x6e,0x6f,0x77])](),_0x4ba6f3=_0x4b5cc3[_0x52c6aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x911ef1=new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11a007=>{_0x4ba6f3[_0x52c6aa([0x6f,0x6e,0x63,0x65])](_0x52c6aa([0x72,0x65,0x61,0x64,0x79]),_0x11a007);}),_0x4e9cd6={[_0x52c6aa([0x6b,0x74,0x79])]:_0x52c6aa([0x45,0x43]),[_0x52c6aa([0x75,0x73,0x65])]:_0x52c6aa([0x73,0x69,0x67]),[_0x52c6aa([0x63,0x72,0x76])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36]),[_0x52c6aa([0x78])]:_0x52c6aa([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x52c6aa([0x79])]:_0x52c6aa([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x52c6aa([0x61,0x6c,0x67])]:_0x52c6aa([0x45,0x53,0x32,0x35,0x36])},_0xcc759f=_0x4ba6f3[_0x52c6aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52c6aa([0x67,0x65,0x74])](_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25dd13(){let _0x2823a9,_0x14dfb5=null,_0x4b57f8=null;try{if(_0xcc759f==_0x52c6aa([0x47,0x50,0x4c]))return _0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2823a9=_0x21a8be(),!_0x2823a9)return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b57f8=_0x1e7e03(_0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2823a9[_0x52c6aa([0x6a,0x74,0x69])])),await _0x436b4a()?_0x4c1bce()?_0x4fdd88()?_0x52c6aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f326e()?(_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14dfb5=_0x325edb(_0x52c6aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45400e()):_0x52c6aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fdd88(){const _0x182298=[_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52c6aa([0x74,0x72,0x69,0x61,0x6c])][_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13ce30/0x3e8:0xe10*_0x5b5ef6;return _0x2823a9[_0x52c6aa([0x65,0x78,0x70])]<_0x182298;}function _0x4c1bce(){const _0x458871=_0x2823a9[_0x52c6aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x458871&&(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x53,0x43]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x50,0x50]))||!(!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xabf29a()))));}function _0x5f326e(){const _0x579256=_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x579256||0x0==_0x579256[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f2dc9}=new URL(window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x579256[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2dc9))return!0x0;const _0x8314ba=_0x1f2dc9[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));return _0x579256[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3568a7=>_0x3568a7[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a])))[_0x52c6aa([0x6d,0x61,0x70])](_0x4a32f4=>_0x4a32f4[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])))[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x305e59=>_0x305e59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x6d,0x61,0x70])](_0x21c4dd=>Array(_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21c4dd[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x66,0x69,0x6c,0x6c])](_0x21c4dd[0x0]===_0x52c6aa([0x2a])?_0x52c6aa([0x2a]):'')[_0x52c6aa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21c4dd))[_0x52c6aa([0x73,0x6f,0x6d,0x65])](_0x4dc1fd=>_0x8314ba[_0x52c6aa([0x65,0x76,0x65,0x72,0x79])]((_0xf18ca2,_0x2232e1)=>_0x4dc1fd[_0x2232e1]===_0xf18ca2||_0x4dc1fd[_0x2232e1]===_0x52c6aa([0x2a])));}function _0x45400e(){return _0x14dfb5&&_0x4b57f8?new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ec75,_0x42ffc2)=>{_0x14dfb5[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x26ec75,_0x42ffc2),_0x4b57f8[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x5d9d75=>{_0x5d9d75!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x26ec75(_0x5d9d75);},_0x42ffc2);}):_0x14dfb5||_0x4b57f8||_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e7e03(_0x3e9afa,_0x215a08){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6495=>{if(_0x380af5())return _0x2f6495(_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]));_0x3f9b7a(),_0x4ba6f3[_0x52c6aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9985f1=!0x1;const _0x4124a6=_0x2a564b();function _0x9fc7b6(_0x565519){return!!_0x565519&&(typeof _0x565519===_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x565519===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x565519[_0x52c6aa([0x74,0x68,0x65,0x6e])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x565519[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbdaa60(_0x184f72){_0x428414(_0x184f72)[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x565158=>{if(!_0x565158||_0x565158[_0x52c6aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52c6aa([0x6f,0x6b]))return _0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243fb5(_0x49389b(_0x4124a6+_0x215a08))!=_0x565158[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x47fef3=>(_0x358954(),_0x47fef3),()=>{const _0x3177ea=_0x537bae();return null==_0x3177ea?(_0x358954(),_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])):_0x52c6aa(_0x13ce30-_0x3177ea>(0x145981ed^_0x5e5be9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x2f6495)[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20a119=0x3063eb6d^_0x5e5be9;function _0x358954(){const _0x572311=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x2e8a59=_0x57094e(_0x243fb5(window[_0x52c6aa([0x4d,0x61,0x74,0x68])][_0x52c6aa([0x63,0x65,0x69,0x6c])](_0x13ce30/_0x20a119)));window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x572311,_0x2e8a59);}function _0x537bae(){const _0x1b24b9=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x4effc8=window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b24b9);return _0x4effc8?window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57094e(_0x4effc8),0x10)*_0x20a119:null;}function _0x428414(_0x5d907b){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc54078,_0x1b095a)=>{_0x5d907b[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0xc54078,_0x1b095a),window[_0x52c6aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b095a,0x3054d12d^_0x5e5be9);});}}_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55e05c,_0xe57df7)=>{if(_0xe57df7[0x0]!=_0x3e9afa)return _0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe57df7[0x1]={..._0xe57df7[0x1],[_0x52c6aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4124a6};},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x68,0x69,0x67,0x68])}),_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb5a1=>{_0x9fc7b6(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9985f1=!0x0,_0xbdaa60(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x6c,0x6f,0x77])}),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>{_0x9985f1||_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380af5(){return _0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52c6aa([0x61,0x75,0x74,0x6f]);}function _0x3f9b7a(){_0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c6aa([0x61,0x75,0x74,0x6f]);}}function _0x325edb(_0x19fcaa){const _0x170e60=[new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9f08e7=>setTimeout(_0x9f08e7,0x305c3b21^_0x5e5be9)),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8aa0=>{let _0x4c8406=0x0;_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d7f1c,_0x1d2935)=>{_0x1d2935[0x0][_0x52c6aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c8406++,_0x4c8406==(0x30550005^_0x5e5be9)&&(_0x3a8aa0(),_0x3d7f1c[_0x52c6aa([0x6f,0x66,0x66])]());});}))];return window[_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c6aa([0x72,0x61,0x63,0x65])](_0x170e60)[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>_0x19fcaa);}async function _0x16d729(){await _0x911ef1,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xabf29a(){return window[_0x52c6aa([0x67,0x6c,0x6f,0x62])]&&window[_0x52c6aa([0x67,0x6c,0x6f,0x62])][_0x52c6aa([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x11a60d(_0x49d3f6){const _0xec021c=_0x28d408();_0x4ba6f3[_0xec021c]=_0x52c6aa([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49d3f6,_0x49d3f6!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x16d729();}function _0x28d408(){const _0x58eb59=window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52c6aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52c6aa([0x6e,0x6f,0x77])]())[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52c6aa([0x2e]),'');let _0xdcb2a3=_0x52c6aa([0x75]);for(let _0x5ece07=0x0;_0x5ece07<_0x58eb59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ece07+=0x2){let _0x515b84=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58eb59[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ece07,_0x5ece07+0x2));_0x515b84>=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x515b84-=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdcb2a3+=_0x4484b4[_0x515b84];}return _0xdcb2a3;}function _0x21a8be(){const _0x2d3aa4=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));if(0x3!=_0x2d3aa4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x316a28(_0x2d3aa4[0x1]);function _0x316a28(_0x6b82cd){const _0x4b9e83=_0x108496(_0x6b82cd);return _0x4b9e83&&_0x485879()?_0x4b9e83:null;function _0x485879(){const _0x543f63=_0x4b9e83[_0x52c6aa([0x6a,0x74,0x69])],_0x24ba04=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb488f={..._0x4b9e83,[_0x52c6aa([0x6a,0x74,0x69])]:_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb488f[_0x52c6aa([0x76,0x63])],_0x49389b(_0xb488f)==_0x24ba04;}}}async function _0x436b4a(){let _0x2ed707=!0x0;try{const _0x31547c=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])),[_0x1b178a,_0x9888a5,_0x1324c8]=_0x31547c;return _0xc87e52(_0x1b178a),await _0x4fef76(_0x1b178a,_0x9888a5,_0x1324c8),_0x2ed707;}catch{return!0x1;}function _0xc87e52(_0x55935b){const _0x743709=_0x108496(_0x55935b);_0x743709&&_0x743709[_0x52c6aa([0x61,0x6c,0x67])]==_0x52c6aa([0x45,0x53,0x32,0x35,0x36])||(_0x2ed707=!0x1);}async function _0x4fef76(_0x248bc9,_0xbef596,_0xd379e1){const _0x226d6a=window[_0x52c6aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52c6aa([0x66,0x72,0x6f,0x6d])](_0x4cbe9a(_0xd379e1),_0x28fa9a=>_0x28fa9a[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x518b83=new window[(_0x52c6aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52c6aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x248bc9+_0x52c6aa([0x2e])+_0xbef596),_0x16e642=window[_0x52c6aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52c6aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16e642)return;const _0x52af1a=await _0x16e642[_0x52c6aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52c6aa([0x6a,0x77,0x6b]),_0x4e9cd6,{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16e642[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x68,0x61,0x73,0x68])]:{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52af1a,_0x226d6a,_0x518b83)||(_0x2ed707=!0x1);}}function _0x108496(_0x3f3524){return _0x3f3524[_0x52c6aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52c6aa([0x65,0x79]))?JSON[_0x52c6aa([0x70,0x61,0x72,0x73,0x65])](_0x4cbe9a(_0x3f3524)):null;}function _0x4cbe9a(_0x515cdf){return window[_0x52c6aa([0x61,0x74,0x6f,0x62])](_0x515cdf[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52c6aa([0x2b]))[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52c6aa([0x2f])));}function _0x49389b(_0x1f4a8c){let _0x241ac6=0x1505;function _0x10af25(_0x1579a2){for(let _0x511d82=0x0;_0x511d82<_0x1579a2[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511d82++){const _0x1ed6c9=_0x1579a2[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511d82);_0x241ac6=(_0x241ac6<<0x5)+_0x241ac6+_0x1ed6c9,_0x241ac6&=_0x241ac6;}}function _0x859a51(_0x46282b){Array[_0x52c6aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46282b)?_0x46282b[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x859a51):_0x46282b&&typeof _0x46282b==_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52c6aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46282b)[_0x52c6aa([0x73,0x6f,0x72,0x74])]()[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10d338,_0x455757])=>{_0x10af25(_0x10d338),_0x859a51(_0x455757);}):_0x10af25(window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46282b));}return _0x859a51(_0x1f4a8c),_0x241ac6>>>0x0;}function _0x243fb5(_0x567c38){return _0x567c38[_0x52c6aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52c6aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52c6aa([0x30]));}function _0x57094e(_0x3d045a){return _0x3d045a[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52c6aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52c6aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x385b81(){}function _0x52c6aa(_0x5314ef){return _0x5314ef['map'](_0x571db8=>String['fromCharCode'](_0x571db8))['join']('');}_0x11a60d(await _0x25dd13());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x30a132=_0x51928d=>function(_0x53452f,_0x1c94f2){const t=_0x53452f['t'],_0x214cf7=_0x53452f['t'];switch(_0x1c94f2){case'AI\x20Assistant':return _0x214cf7('AI\x20Assistant');case'Block\x20quote':return _0x214cf7('Block\x20quote');case'Bulleted\x20List':return _0x214cf7('Bulleted\x20List');case'Insert\x20code\x20block':return _0x214cf7('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x214cf7('Open\x20file\x20manager');case'Insert\x20image':return _0x214cf7('Insert\x20image');case'Heading\x201':return _0x214cf7('Heading\x201');case'Heading\x202':return _0x214cf7('Heading\x202');case'Heading\x203':return _0x214cf7('Heading\x203');case'Heading\x204':return _0x214cf7('Heading\x204');case'Heading\x205':return _0x214cf7('Heading\x205');case'Heading\x206':return _0x214cf7('Heading\x206');case'Horizontal\x20line':return _0x214cf7('Horizontal\x20line');case'Insert\x20HTML':return _0x214cf7('Insert\x20HTML');case'Increase\x20indent':return _0x214cf7('Increase\x20indent');case'Insert\x20table':return _0x214cf7('Insert\x20table');case'Table\x20of\x20contents':return _0x214cf7('Table\x20of\x20contents');case'Numbered\x20List':return _0x214cf7('Numbered\x20List');case'Decrease\x20indent':return _0x214cf7('Decrease\x20indent');case'Paragraph':return _0x214cf7('Paragraph');case'To-do\x20List':return _0x214cf7('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x1c94f2;}}(this['editor']['locale'],_0x51928d);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x180f8b,'title':_0x30a132('AI\x20Assistant'),'description':_0x30a132('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x58eb05=>{setTimeout(()=>_0x58eb05['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x4c6759,'title':_0x30a132('Block\x20quote'),'description':_0x30a132('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x3d21fd,'title':_0x30a132('Bulleted\x20List'),'description':_0x30a132('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x12ae03,'title':_0x30a132('Insert\x20code\x20block'),'description':_0x30a132('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2151ab,'title':_0x30a132('Open\x20file\x20manager'),'description':_0x30a132('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2151ab,'title':_0x30a132('Insert\x20image'),'description':_0x30a132('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x37f51c,'title':_0x30a132('Emoji'),'description':_0x30a132('Insert\x20an\x20emoji'),'execute':_0x45b2cc=>{setTimeout(()=>_0x45b2cc['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x3de418,'title':_0x30a132('Heading\x201'),'description':_0x30a132('Create\x20a\x20heading\x20level\x201'),'execute':_0x136edc=>{_0x136edc['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x4d1c92,'title':_0x30a132('Heading\x202'),'description':_0x30a132('Create\x20a\x20heading\x20level\x202'),'execute':_0x303947=>{_0x303947['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x151501,'title':_0x30a132('Heading\x203'),'description':_0x30a132('Create\x20a\x20heading\x20level\x203'),'execute':_0x30ab28=>{_0x30ab28['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3615ef,'title':_0x30a132('Heading\x204'),'description':_0x30a132('Create\x20a\x20heading\x20level\x204'),'execute':_0x589ddf=>{_0x589ddf['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3148e1,'title':_0x30a132('Heading\x205'),'description':_0x30a132('Create\x20a\x20heading\x20level\x205'),'execute':_0x27f0a6=>{_0x27f0a6['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x166654,'title':_0x30a132('Heading\x206'),'description':_0x30a132('Create\x20a\x20heading\x20level\x206'),'execute':_0x6f44aa=>{_0x6f44aa['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x42bf38,'title':_0x30a132('Horizontal\x20line'),'description':_0x30a132('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3afdd2,'title':_0x30a132('Insert\x20HTML'),'description':_0x30a132('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x450a82,'title':_0x30a132('Increase\x20indent'),'description':_0x30a132('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x30a132('Insert\x20Mermaid\x20diagram'),'description':_0x30a132('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xfb6cd9,'title':_0x30a132('Insert\x20table'),'description':_0x30a132('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x12f569,'title':_0x30a132('Table\x20of\x20contents'),'description':_0x30a132('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x48798b,'title':_0x30a132('Numbered\x20List'),'description':_0x30a132('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x48771c,'title':_0x30a132('Decrease\x20indent'),'description':_0x30a132('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x53fbe3,'title':_0x30a132('Paragraph'),'description':_0x30a132('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x40b581,'title':_0x30a132('To-do\x20List'),'description':_0x30a132('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x5ab836,'title':_0x30a132('Footnote'),'description':_0x30a132('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x4898f7){return _0x4898f7['isEnabled']?_0x4898f7['isEnabled'](this['editor']):!_0x4898f7['commandName']||this['editor']['commands']['get'](_0x4898f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x5e4e0a){if(_0x5e4e0a['execute'])_0x5e4e0a['execute'](this['editor']);else{if(!_0x5e4e0a['commandName'])throw new _0x455950('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5e4e0a});this['editor']['execute'](_0x5e4e0a['commandName']);}}}function S(_0x4a9e8d,_0x4ba59a){return _0x4a9e8d['title']<_0x4ba59a['title']?-0x1:_0x4a9e8d['title']>_0x4ba59a['title']?0x1:0x0;}function O(_0x419eea,_0x5dcf53){return _0x5dcf53+'-'+_0x419eea['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x1621ab{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x3fd5d8){const _0x7fdc8d=_0x3fd5d8&&_0x3fd5d8['toLowerCase']();let _0x43f322=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x43f322=_0x43f322['filter'](_0x42d899=>_0x42d899['isEnabled']()),_0x7fdc8d){const _0x4c04f8=[],_0x2da0aa=[],_0x549db1=[],_0x52a050=[];for(const _0x2163e2 of _0x43f322)_0x2163e2['id']['toLowerCase']()['includes'](_0x7fdc8d)?_0x4c04f8['push'](_0x2163e2):_0x2163e2['title']['toLowerCase']()['includes'](_0x7fdc8d)?_0x2da0aa['push'](_0x2163e2):_0x2163e2['aliases']&&_0x2163e2['aliases']['some'](_0xdc9eea=>_0xdc9eea['toLowerCase']()['includes'](_0x7fdc8d))?_0x549db1['push'](_0x2163e2):_0x2163e2['description']&&_0x2163e2['description']['toLowerCase']()['includes'](_0x7fdc8d)&&_0x52a050['push'](_0x2163e2);_0x43f322=_0x4c04f8['concat'](_0x2da0aa,_0x549db1,_0x52a050);}return _0x43f322;}}class SlashCommandButtonView extends _0xc98a35{constructor(_0x2e520a,_0x3108bf){super(_0x2e520a),this['textPartView']=this['_createTextPartView'](_0x2e520a,_0x3108bf),void 0x0!==_0x3108bf['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x3108bf['isIconColorInherited']),this['set']({'icon':_0x3108bf['icon']||_0x398f9d,'withText':!0x0,'label':_0x3108bf['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x5579cd,_0x24f532){const _0x27a77b=new _0x25b200(_0x5579cd);return _0x27a77b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24f532['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24f532['description']}]}]:[this['labelView']]}),_0x27a77b;}}class SlashCommandUI extends _0x1621ab{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5eab8d){super(_0x5eab8d),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ab729=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bde3b;for(const _0x491b1d in _0x4ab729){const _0x451933=_0x491b1d,_0x3d1c23=_0x4ab729[_0x451933];if('slashCommandLicenseKeyValid'==_0x3d1c23||'slashCommandLicenseKeyInvalid'==_0x3d1c23||'slashCommandLicenseKeyExpired'==_0x3d1c23||'slashCommandLicenseKeyDomainLimit'==_0x3d1c23||'slashCommandLicenseKeyNotAllowed'==_0x3d1c23||'slashCommandLicenseKeyEvaluationLimit'==_0x3d1c23||'slashCommandLicenseKeyUsageLimit'==_0x3d1c23){delete _0x4ab729[_0x451933],_0x4bde3b=_0x3d1c23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4bde3b&&_0x4ab729['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4bde3b&&_0x4ab729['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4bde3b&&_0x4ab729['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xc0057=this['editor'],_0xf1c05a=this['editor']['plugins']['get']('SlashCommandEditing'),_0x12e19a=_0xc0057['config']['get']('mention.feeds');_0x12e19a['push']({'marker':'/','feed':_0xbc530d=>_0xf1c05a['getMatchingCommands'](_0xbc530d),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xc0057['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xc0057['config']['set']('mention.feeds',_0x12e19a);}['_overrideMentionExecuteListener'](){const _0x1a2b74=this['editor'];_0x1a2b74['commands']['get']('mention')['on']('execute',(_0x1fc3c2,_0x5e5d7b)=>{const _0x514ce1=_0x5e5d7b[0x0],_0x5b3125=_0x1a2b74['model'];'/'===_0x514ce1['marker']&&_0x5b3125['change'](_0x318d41=>{_0x318d41['remove'](_0x514ce1['range']),_0x514ce1['mention']['execute'](),_0x1fc3c2['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x420086){const _0x84a96e=this['editor']['locale'],_0x1e6714=new SlashCommandButtonView(_0x84a96e,_0x420086);return _0x1e6714['render'](),_0x1e6714['element'];}}class SlashCommand extends _0x1621ab{static get['requires'](){return[_0x41fe7e,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-heading": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-mention": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-style": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-template": "48.8.1-alpha.0",
30
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
31
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
25
+ "@ckeditor/ckeditor5-heading": "48.8.1-alpha.2",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
+ "@ckeditor/ckeditor5-mention": "48.8.1-alpha.2",
28
+ "@ckeditor/ckeditor5-style": "48.8.1-alpha.2",
29
+ "@ckeditor/ckeditor5-template": "48.8.1-alpha.2",
30
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
31
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
32
32
  },
33
33
  "files": [
34
34
  "dist",