@ckeditor/ckeditor5-slash-command 48.1.0-alpha.4 → 48.1.0-alpha.5
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/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x374085}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x54fb50}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x26279d,uid as _0x56c489}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x1d8b4e,IconQuote as _0x5e0b55,IconBulletedList as _0x2f1c19,IconCodeBlock as _0x3682cb,IconBrowseFiles as _0x5c40d5,IconEmoji as _0xed25e,IconHeading1 as _0x527e4e,IconHeading2 as _0x3c036e,IconHeading3 as _0x2376fa,IconHeading4 as _0x51d7ee,IconHeading5 as _0x2b6521,IconHeading6 as _0x2d547c,IconHorizontalLine as _0x883fd4,IconHtml as _0x987c73,IconIndent as _0x171c53,IconTable as _0x10c103,IconTableOfContents as _0x3cfb58,IconNumberedList as _0x5bb190,IconOutdent as _0x2f8cc6,IconParagraph as _0x2a3edf,IconTodoList as _0x39445f,IconFootnote as _0x4cc756,IconPlay as _0x4b6e8d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a459c,View as _0x527028}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x374085{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19e0a7){super(_0x19e0a7),this['_allowedCommands']=null;}['afterInit'](){const _0x15be24=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x4703eb=function(_0x3fe0ec){let _0x6b71bf=['heading4','heading5','heading6'];if(_0x3fe0ec){const _0x2b15a8=_0x3fe0ec['map'](_0x46fe73=>_0x46fe73['model']);_0x6b71bf=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x207ba8=>!_0x2b15a8['includes'](_0x207ba8));}return _0x6b71bf;}(this['editor']['config']['get']('heading.options'));let _0x13c14b=this['getDefaultCommands']()['filter'](_0x32369d=>!_0x4703eb['includes'](_0x32369d['id']))['filter'](_0x18f75f=>!_0x15be24['includes'](_0x18f75f['commandName']));const _0x4fc458=this['editor']['config']['get']('slashCommand.extraCommands');_0x4fc458&&_0x4fc458['length']&&(_0x13c14b=_0x13c14b['concat'](_0x4fc458));const _0x363a2c=this['editor']['config']['get']('template.definitions');_0x363a2c&&_0x363a2c['length']&&(_0x13c14b=_0x13c14b['concat'](function(_0x493ebe){return _0x493ebe['map'](_0x3e3b28=>{const {title:_0x496e60,icon:_0x1637bd,description:_0x24f9bd,data:_0xdf2d61}=_0x3e3b28,_0x2c2bfd={'id':K(_0x496e60,'template'),'commandName':'insertTemplate','execute':_0x5f1b37=>{_0x5f1b37['execute']('insertTemplate',_0xdf2d61);},'description':_0x24f9bd,'icon':_0x1637bd,'title':_0x496e60};return _0x1637bd&&(_0x2c2bfd['isIconColorInherited']=!0x1),_0x2c2bfd;});}(_0x363a2c)));const _0x4fb8bd=this['editor']['config']['get']('style.definitions');_0x4fb8bd&&_0x4fb8bd['length']&&(_0x13c14b=_0x13c14b['concat'](function(_0x4f4cc4){return _0x4f4cc4['map'](_0x4de7e0=>({'id':K(_0x4de7e0['name'],'style'),'commandName':'style','execute':_0x4ee4f4=>{_0x4ee4f4['execute']('style',{'styleName':_0x4de7e0['name']});},'isEnabled':_0x3dc19d=>{const _0x167a21=_0x3dc19d['commands']['get']('style');return _0x167a21['isEnabled']&&_0x167a21['enabledStyles']['includes'](_0x4de7e0['name']);},'title':_0x4de7e0['name']}));}(_0x4fb8bd)));const _0x4c266e=_0x13c14b['filter'](_0x40f7f6=>!_0x40f7f6['commandName']||void 0x0!==this['editor']['commands']['get'](_0x40f7f6['commandName'])),_0x8697f2=[];for(const _0x56977e of _0x4c266e)_0x8697f2['push']({'id':_0x56977e['id'],'commandName':_0x56977e['commandName'],'title':'function'==typeof _0x56977e['title']?_0x56977e['title'](this['editor']):_0x56977e['title'],'description':_0x56977e['description'],'icon':_0x56977e['icon'],'isIconColorInherited':_0x56977e['isIconColorInherited'],'aliases':_0x56977e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x56977e),'execute':()=>this['_proxyExecute'](_0x56977e)});this['_allowedCommands']=_0x8697f2['sort'](M),async function(_0x18cd1d){const _0x543237=_0x231592([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]),_0x2988b6=0x305505ed,_0x495754=0x30528c45^_0x2988b6,_0x3de371=window[_0x231592([0x44,0x61,0x74,0x65])][_0x231592([0x6e,0x6f,0x77])](),_0x56726a=_0x18cd1d[_0x231592([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x583b98=new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ce386=>{_0x56726a[_0x231592([0x6f,0x6e,0x63,0x65])](_0x231592([0x72,0x65,0x61,0x64,0x79]),_0x6ce386);}),_0x8c7adc={[_0x231592([0x6b,0x74,0x79])]:_0x231592([0x45,0x43]),[_0x231592([0x75,0x73,0x65])]:_0x231592([0x73,0x69,0x67]),[_0x231592([0x63,0x72,0x76])]:_0x231592([0x50,0x2d,0x32,0x35,0x36]),[_0x231592([0x78])]:_0x231592([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]),[_0x231592([0x79])]:_0x231592([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]),[_0x231592([0x61,0x6c,0x67])]:_0x231592([0x45,0x53,0x32,0x35,0x36])},_0x1c4743=_0x56726a[_0x231592([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x231592([0x67,0x65,0x74])](_0x231592([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ded0(){let _0x77307c,_0x2e90c7=null,_0xd69858=null;try{if(_0x1c4743==_0x231592([0x47,0x50,0x4c]))return _0x231592([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x77307c=_0x58e09f(),!_0x77307c)return _0x231592([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x77307c[_0x231592([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd69858=_0x24a431(_0x77307c[_0x231592([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x77307c[_0x231592([0x6a,0x74,0x69])])),await _0x278191()?_0x21d28c()?_0x83e2f9()?_0x231592([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa98633()?(_0x77307c[_0x231592([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x231592([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e90c7=_0x2d2f7e(_0x231592([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d5884()):_0x231592([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x231592([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x231592([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x231592([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x83e2f9(){const _0x220958=[_0x231592([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x231592([0x74,0x72,0x69,0x61,0x6c])][_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77307c[_0x231592([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3de371/0x3e8:0xe10*_0x495754;return _0x77307c[_0x231592([0x65,0x78,0x70])]<_0x220958;}function _0x21d28c(){const _0x1af727=_0x77307c[_0x231592([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1af727&&(!!_0x1af727[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x231592([0x2a]))||(!!_0x1af727[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x231592([0x53,0x43]))||(!!_0x1af727[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x231592([0x50,0x50]))||!(!_0x1af727[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x231592([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4656cd()))));}function _0xa98633(){const _0xce86c3=_0x77307c[_0x231592([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xce86c3||0x0==_0xce86c3[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x580d14}=new URL(window[_0x231592([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xce86c3[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580d14))return!0x0;const _0x6c1539=_0x580d14[_0x231592([0x73,0x70,0x6c,0x69,0x74])](_0x231592([0x2e]));return _0xce86c3[_0x231592([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x305a1c=>_0x305a1c[_0x231592([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x231592([0x2a])))[_0x231592([0x6d,0x61,0x70])](_0x340b51=>_0x340b51[_0x231592([0x73,0x70,0x6c,0x69,0x74])](_0x231592([0x2e])))[_0x231592([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484eb5=>_0x484eb5[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6c1539[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x231592([0x6d,0x61,0x70])](_0x23ba4b=>Array(_0x6c1539[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23ba4b[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x231592([0x66,0x69,0x6c,0x6c])](_0x23ba4b[0x0]===_0x231592([0x2a])?_0x231592([0x2a]):'')[_0x231592([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23ba4b))[_0x231592([0x73,0x6f,0x6d,0x65])](_0x1a9753=>_0x6c1539[_0x231592([0x65,0x76,0x65,0x72,0x79])]((_0x4303a8,_0x561bb3)=>_0x1a9753[_0x561bb3]===_0x4303a8||_0x1a9753[_0x561bb3]===_0x231592([0x2a])));}function _0x4d5884(){return _0x2e90c7&&_0xd69858?new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20db07,_0x518523)=>{_0x2e90c7[_0x231592([0x74,0x68,0x65,0x6e])](_0x20db07,_0x518523),_0xd69858[_0x231592([0x74,0x68,0x65,0x6e])](_0x36efbf=>{_0x36efbf!=_0x231592([0x56,0x61,0x6c,0x69,0x64])&&_0x20db07(_0x36efbf);},_0x518523);}):_0x2e90c7||_0xd69858||_0x231592([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24a431(_0x1b7901,_0x5285c1){return new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2decd3=>{if(_0x294715())return _0x2decd3(_0x231592([0x56,0x61,0x6c,0x69,0x64]));_0x484f29(),_0x56726a[_0x231592([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x231592([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e6afb=!0x1;const _0x2729b5=_0x56c489();function _0x53f0c6(_0x307398){return!!_0x307398&&(typeof _0x307398===_0x231592([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x307398===_0x231592([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x307398[_0x231592([0x74,0x68,0x65,0x6e])]===_0x231592([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x307398[_0x231592([0x63,0x61,0x74,0x63,0x68])]===_0x231592([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3697d3(_0x5002b0){_0x5b6285(_0x5002b0)[_0x231592([0x74,0x68,0x65,0x6e])](_0x1202b9=>{if(!_0x1202b9||_0x1202b9[_0x231592([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x231592([0x6f,0x6b]))return _0x231592([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32f0a0(_0x2582bf(_0x2729b5+_0x5285c1))!=_0x1202b9[_0x231592([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x231592([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x231592([0x56,0x61,0x6c,0x69,0x64]);})[_0x231592([0x74,0x68,0x65,0x6e])](_0x2c5f2f=>(_0x3d7035(),_0x2c5f2f),()=>{const _0x1a10a2=_0xb6ba7a();return null==_0x1a10a2?(_0x3d7035(),_0x231592([0x56,0x61,0x6c,0x69,0x64])):_0x231592(_0x3de371-_0x1a10a2>(0x145981ed^_0x2988b6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x231592([0x74,0x68,0x65,0x6e])](_0x2decd3)[_0x231592([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2decd3(_0x231592([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27e403=0x3063eb6d^_0x2988b6;function _0x3d7035(){const _0x42ae75=_0x231592([0x6c,0x6c,0x63,0x74,0x2d])+_0x32f0a0(_0x2582bf(_0x1b7901)),_0xffcd2c=_0x2fd695(_0x32f0a0(window[_0x231592([0x4d,0x61,0x74,0x68])][_0x231592([0x63,0x65,0x69,0x6c])](_0x3de371/_0x27e403)));window[_0x231592([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x231592([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42ae75,_0xffcd2c);}function _0xb6ba7a(){const _0x2a05cd=_0x231592([0x6c,0x6c,0x63,0x74,0x2d])+_0x32f0a0(_0x2582bf(_0x1b7901)),_0x7f7c18=window[_0x231592([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x231592([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a05cd);return _0x7f7c18?window[_0x231592([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fd695(_0x7f7c18),0x10)*_0x27e403:null;}function _0x5b6285(_0x298ab0){return new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8618,_0x67ffef)=>{_0x298ab0[_0x231592([0x74,0x68,0x65,0x6e])](_0x1d8618,_0x67ffef),window[_0x231592([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x67ffef,0x3054d12d^_0x2988b6);});}}_0x56726a[_0x231592([0x6f,0x6e])](_0x231592([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x194ac7,_0x5d43c1)=>{if(_0x5d43c1[0x0]!=_0x1b7901)return _0x2decd3(_0x231592([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d43c1[0x1]={..._0x5d43c1[0x1],[_0x231592([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2729b5};},{[_0x231592([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x231592([0x68,0x69,0x67,0x68])}),_0x56726a[_0x231592([0x6f,0x6e])](_0x231592([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x715502=>{_0x53f0c6(_0x715502[_0x231592([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e6afb=!0x0,_0x3697d3(_0x715502[_0x231592([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x231592([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x231592([0x6c,0x6f,0x77])}),_0x583b98[_0x231592([0x74,0x68,0x65,0x6e])](()=>{_0x3e6afb||_0x2decd3(_0x231592([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x294715(){return _0x56726a[_0x231592([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x231592([0x76,0x69,0x65,0x77])][_0x231592([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x231592([0x61,0x75,0x74,0x6f]);}function _0x484f29(){_0x56726a[_0x231592([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x231592([0x76,0x69,0x65,0x77])][_0x231592([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x231592([0x61,0x75,0x74,0x6f]);}}function _0x2d2f7e(_0x444461){const _0x538ed4=[new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e756=>setTimeout(_0x53e756,0x305c3b21^_0x2988b6)),_0x583b98[_0x231592([0x74,0x68,0x65,0x6e])](()=>new window[(_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d330c=>{let _0x24ad6d=0x0;_0x56726a[_0x231592([0x6d,0x6f,0x64,0x65,0x6c])][_0x231592([0x6f,0x6e])](_0x231592([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5753b5,_0x1998ad)=>{_0x1998ad[0x0][_0x231592([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24ad6d++,_0x24ad6d==(0x30550005^_0x2988b6)&&(_0x4d330c(),_0x5753b5[_0x231592([0x6f,0x66,0x66])]());});}))];return window[_0x231592([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x231592([0x72,0x61,0x63,0x65])](_0x538ed4)[_0x231592([0x74,0x68,0x65,0x6e])](()=>_0x444461);}async function _0x53d477(){await _0x583b98,_0x56726a[_0x231592([0x6d,0x6f,0x64,0x65,0x6c])][_0x231592([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x320668,_0x56726a[_0x231592([0x6d,0x6f,0x64,0x65,0x6c])][_0x231592([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x320668,_0x56726a[_0x231592([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x231592([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4656cd(){return window[_0x231592([0x67,0x6c,0x6f,0x62])]&&window[_0x231592([0x67,0x6c,0x6f,0x62])][_0x231592([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1b4fd2(_0x5061db){const _0x275430=_0x42e00a();_0x56726a[_0x275430]=_0x231592([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5061db,_0x5061db!=_0x231592([0x56,0x61,0x6c,0x69,0x64])&&_0x53d477();}function _0x42e00a(){const _0xdc42e1=window[_0x231592([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x231592([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x231592([0x6e,0x6f,0x77])]())[_0x231592([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x231592([0x2e]),'');let _0x814575=_0x231592([0x75]);for(let _0x22cdba=0x0;_0x22cdba<_0xdc42e1[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22cdba+=0x2){let _0x16597a=window[_0x231592([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdc42e1[_0x231592([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22cdba,_0x22cdba+0x2));_0x16597a>=_0x543237[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16597a-=_0x543237[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x814575+=_0x543237[_0x16597a];}return _0x814575;}function _0x58e09f(){const _0x2e3191=_0x1c4743[_0x231592([0x73,0x70,0x6c,0x69,0x74])](_0x231592([0x2e]));if(0x3!=_0x2e3191[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16b640(_0x2e3191[0x1]);function _0x16b640(_0x596ca3){const _0x55dbf6=_0x179b9f(_0x596ca3);return _0x55dbf6&&_0x3b4a1d()?_0x55dbf6:null;function _0x3b4a1d(){const _0x2cae90=_0x55dbf6[_0x231592([0x6a,0x74,0x69])],_0x223b84=window[_0x231592([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cae90[_0x231592([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cae90[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cad43={..._0x55dbf6,[_0x231592([0x6a,0x74,0x69])]:_0x2cae90[_0x231592([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cae90[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cad43[_0x231592([0x76,0x63])],_0x2582bf(_0x3cad43)==_0x223b84;}}}async function _0x278191(){let _0x1146fd=!0x0;try{const _0x4e3c36=_0x1c4743[_0x231592([0x73,0x70,0x6c,0x69,0x74])](_0x231592([0x2e])),[_0x27b9f0,_0x392293,_0x473990]=_0x4e3c36;return _0x5cfcf5(_0x27b9f0),await _0x1d355d(_0x27b9f0,_0x392293,_0x473990),_0x1146fd;}catch{return!0x1;}function _0x5cfcf5(_0x58638c){const _0x197c95=_0x179b9f(_0x58638c);_0x197c95&&_0x197c95[_0x231592([0x61,0x6c,0x67])]==_0x231592([0x45,0x53,0x32,0x35,0x36])||(_0x1146fd=!0x1);}async function _0x1d355d(_0x2ce241,_0x1eedeb,_0xbc95cb){const _0x4df74f=window[_0x231592([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x231592([0x66,0x72,0x6f,0x6d])](_0x42fbff(_0xbc95cb),_0x4ad9ad=>_0x4ad9ad[_0x231592([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16809b=new window[(_0x231592([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x231592([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ce241+_0x231592([0x2e])+_0x1eedeb),_0xbc2285=window[_0x231592([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x231592([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbc2285)return;const _0x2c8c32=await _0xbc2285[_0x231592([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x231592([0x6a,0x77,0x6b]),_0x8c7adc,{[_0x231592([0x6e,0x61,0x6d,0x65])]:_0x231592([0x45,0x43,0x44,0x53,0x41]),[_0x231592([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x231592([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x231592([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbc2285[_0x231592([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x231592([0x6e,0x61,0x6d,0x65])]:_0x231592([0x45,0x43,0x44,0x53,0x41]),[_0x231592([0x68,0x61,0x73,0x68])]:{[_0x231592([0x6e,0x61,0x6d,0x65])]:_0x231592([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c8c32,_0x4df74f,_0x16809b)||(_0x1146fd=!0x1);}}function _0x179b9f(_0x155168){return _0x155168[_0x231592([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x231592([0x65,0x79]))?JSON[_0x231592([0x70,0x61,0x72,0x73,0x65])](_0x42fbff(_0x155168)):null;}function _0x42fbff(_0x2a65c0){return window[_0x231592([0x61,0x74,0x6f,0x62])](_0x2a65c0[_0x231592([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x231592([0x2b]))[_0x231592([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x231592([0x2f])));}function _0x2582bf(_0x26637f){let _0x406647=0x1505;function _0x6911c7(_0x3dde86){for(let _0x3375f3=0x0;_0x3375f3<_0x3dde86[_0x231592([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3375f3++){const _0x34dfde=_0x3dde86[_0x231592([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3375f3);_0x406647=(_0x406647<<0x5)+_0x406647+_0x34dfde,_0x406647&=_0x406647;}}function _0x5f3839(_0x4eee8e){Array[_0x231592([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eee8e)?_0x4eee8e[_0x231592([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f3839):_0x4eee8e&&typeof _0x4eee8e==_0x231592([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x231592([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eee8e)[_0x231592([0x73,0x6f,0x72,0x74])]()[_0x231592([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f6ea6,_0x4e4162])=>{_0x6911c7(_0x4f6ea6),_0x5f3839(_0x4e4162);}):_0x6911c7(window[_0x231592([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eee8e));}return _0x5f3839(_0x26637f),_0x406647>>>0x0;}function _0x32f0a0(_0x61469e){return _0x61469e[_0x231592([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x231592([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x231592([0x30]));}function _0x2fd695(_0x55d187){return _0x55d187[_0x231592([0x73,0x70,0x6c,0x69,0x74])]('')[_0x231592([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x231592([0x6a,0x6f,0x69,0x6e])]('');}function _0x320668(){}function _0x231592(_0x3c2f7a){return _0x3c2f7a['map'](_0x298e90=>String['fromCharCode'](_0x298e90))['join']('');}_0x1b4fd2(await _0x2ded0());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x58caff=_0x13c79d=>function(_0x2a4c92,_0x11c0b8){const t=_0x2a4c92['t'],_0xa7bb84=_0x2a4c92['t'];switch(_0x11c0b8){case'AI\x20Assistant':return _0xa7bb84('AI\x20Assistant');case'Block\x20quote':return _0xa7bb84('Block\x20quote');case'Bulleted\x20List':return _0xa7bb84('Bulleted\x20List');case'Insert\x20code\x20block':return _0xa7bb84('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0xa7bb84('Open\x20file\x20manager');case'Insert\x20image':return _0xa7bb84('Insert\x20image');case'Heading\x201':return _0xa7bb84('Heading\x201');case'Heading\x202':return _0xa7bb84('Heading\x202');case'Heading\x203':return _0xa7bb84('Heading\x203');case'Heading\x204':return _0xa7bb84('Heading\x204');case'Heading\x205':return _0xa7bb84('Heading\x205');case'Heading\x206':return _0xa7bb84('Heading\x206');case'Horizontal\x20line':return _0xa7bb84('Horizontal\x20line');case'Insert\x20HTML':return _0xa7bb84('Insert\x20HTML');case'Increase\x20indent':return _0xa7bb84('Increase\x20indent');case'Insert\x20table':return _0xa7bb84('Insert\x20table');case'Table\x20of\x20contents':return _0xa7bb84('Table\x20of\x20contents');case'Numbered\x20List':return _0xa7bb84('Numbered\x20List');case'Decrease\x20indent':return _0xa7bb84('Decrease\x20indent');case'Paragraph':return _0xa7bb84('Paragraph');case'To-do\x20List':return _0xa7bb84('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 _0x11c0b8;}}(this['editor']['locale'],_0x13c79d);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x1d8b4e,'title':_0x58caff('AI\x20Assistant'),'description':_0x58caff('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x5d2117=>{setTimeout(()=>_0x5d2117['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5e0b55,'title':_0x58caff('Block\x20quote'),'description':_0x58caff('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x2f1c19,'title':_0x58caff('Bulleted\x20List'),'description':_0x58caff('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3682cb,'title':_0x58caff('Insert\x20code\x20block'),'description':_0x58caff('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5c40d5,'title':_0x58caff('Open\x20file\x20manager'),'description':_0x58caff('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5c40d5,'title':_0x58caff('Insert\x20image'),'description':_0x58caff('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0xed25e,'title':_0x58caff('Emoji'),'description':_0x58caff('Insert\x20an\x20emoji'),'execute':_0x480e56=>{setTimeout(()=>_0x480e56['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x527e4e,'title':_0x58caff('Heading\x201'),'description':_0x58caff('Create\x20a\x20heading\x20level\x201'),'execute':_0x2c6f69=>{_0x2c6f69['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3c036e,'title':_0x58caff('Heading\x202'),'description':_0x58caff('Create\x20a\x20heading\x20level\x202'),'execute':_0x564ef3=>{_0x564ef3['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2376fa,'title':_0x58caff('Heading\x203'),'description':_0x58caff('Create\x20a\x20heading\x20level\x203'),'execute':_0x5520dd=>{_0x5520dd['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x51d7ee,'title':_0x58caff('Heading\x204'),'description':_0x58caff('Create\x20a\x20heading\x20level\x204'),'execute':_0x18a294=>{_0x18a294['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2b6521,'title':_0x58caff('Heading\x205'),'description':_0x58caff('Create\x20a\x20heading\x20level\x205'),'execute':_0x1832d1=>{_0x1832d1['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x2d547c,'title':_0x58caff('Heading\x206'),'description':_0x58caff('Create\x20a\x20heading\x20level\x206'),'execute':_0x1f9e73=>{_0x1f9e73['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x883fd4,'title':_0x58caff('Horizontal\x20line'),'description':_0x58caff('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x987c73,'title':_0x58caff('Insert\x20HTML'),'description':_0x58caff('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x171c53,'title':_0x58caff('Increase\x20indent'),'description':_0x58caff('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x58caff('Insert\x20Mermaid\x20diagram'),'description':_0x58caff('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x10c103,'title':_0x58caff('Insert\x20table'),'description':_0x58caff('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x3cfb58,'title':_0x58caff('Table\x20of\x20contents'),'description':_0x58caff('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x5bb190,'title':_0x58caff('Numbered\x20List'),'description':_0x58caff('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2f8cc6,'title':_0x58caff('Decrease\x20indent'),'description':_0x58caff('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2a3edf,'title':_0x58caff('Paragraph'),'description':_0x58caff('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x39445f,'title':_0x58caff('To-do\x20List'),'description':_0x58caff('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x4cc756,'title':_0x58caff('Footnote'),'description':_0x58caff('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x3abbd4){return _0x3abbd4['isEnabled']?_0x3abbd4['isEnabled'](this['editor']):!_0x3abbd4['commandName']||this['editor']['commands']['get'](_0x3abbd4['commandName'])['isEnabled'];}['_proxyExecute'](_0x2780fe){if(_0x2780fe['execute'])_0x2780fe['execute'](this['editor']);else{if(!_0x2780fe['commandName'])throw new _0x26279d('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2780fe});this['editor']['execute'](_0x2780fe['commandName']);}}}function M(_0x395b11,_0x5b3090){return _0x395b11['title']<_0x5b3090['title']?-0x1:_0x395b11['title']>_0x5b3090['title']?0x1:0x0;}function K(_0x40e5c6,_0x206038){return _0x206038+'-'+_0x40e5c6['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x374085{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x528197){const _0x59935b=_0x528197&&_0x528197['toLowerCase']();let _0xdd628b=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xdd628b=_0xdd628b['filter'](_0x11ce52=>_0x11ce52['isEnabled']()),_0x59935b){const _0x70c403=[],_0x1ad9fb=[],_0x49fed8=[],_0x1e0fa2=[];for(const _0x15a63e of _0xdd628b)_0x15a63e['id']['toLowerCase']()['includes'](_0x59935b)?_0x70c403['push'](_0x15a63e):_0x15a63e['title']['toLowerCase']()['includes'](_0x59935b)?_0x1ad9fb['push'](_0x15a63e):_0x15a63e['aliases']&&_0x15a63e['aliases']['some'](_0x127cfe=>_0x127cfe['toLowerCase']()['includes'](_0x59935b))?_0x49fed8['push'](_0x15a63e):_0x15a63e['description']&&_0x15a63e['description']['toLowerCase']()['includes'](_0x59935b)&&_0x1e0fa2['push'](_0x15a63e);_0xdd628b=_0x70c403['concat'](_0x1ad9fb,_0x49fed8,_0x1e0fa2);}return _0xdd628b;}}class E extends _0x2a459c{constructor(_0x2b6457,_0x113673){super(_0x2b6457),this['textPartView']=this['_createTextPartView'](_0x2b6457,_0x113673),void 0x0!==_0x113673['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x113673['isIconColorInherited']),this['set']({'icon':_0x113673['icon']||_0x4b6e8d,'withText':!0x0,'label':_0x113673['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x14aaae,_0x41c74d){const _0x24dffa=new _0x527028(_0x14aaae);return _0x24dffa['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x41c74d['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x41c74d['description']}]}]:[this['labelView']]}),_0x24dffa;}}class j extends _0x374085{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ee055){super(_0x1ee055),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d5522=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d8a6c;for(const _0x1544f2 in _0x5d5522){const _0x486987=_0x1544f2,_0xc05d7d=_0x5d5522[_0x486987];if('slashCommandLicenseKeyValid'==_0xc05d7d||'slashCommandLicenseKeyInvalid'==_0xc05d7d||'slashCommandLicenseKeyExpired'==_0xc05d7d||'slashCommandLicenseKeyDomainLimit'==_0xc05d7d||'slashCommandLicenseKeyNotAllowed'==_0xc05d7d||'slashCommandLicenseKeyEvaluationLimit'==_0xc05d7d||'slashCommandLicenseKeyUsageLimit'==_0xc05d7d){delete _0x5d5522[_0x486987],_0x3d8a6c=_0xc05d7d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x3d8a6c&&_0x5d5522['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4f6f6d=this['editor'],_0x5dbd63=this['editor']['plugins']['get']('SlashCommandEditing'),_0x1b3659=_0x4f6f6d['config']['get']('mention.feeds');_0x1b3659['push']({'marker':'/','feed':_0x5281fd=>_0x5dbd63['getMatchingCommands'](_0x5281fd),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4f6f6d['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4f6f6d['config']['set']('mention.feeds',_0x1b3659);}['_overrideMentionExecuteListener'](){const _0x3de355=this['editor'];_0x3de355['commands']['get']('mention')['on']('execute',(_0x46d869,_0x57af07)=>{const _0x5375bf=_0x57af07[0x0],_0x25f44c=_0x3de355['model'];'/'===_0x5375bf['marker']&&_0x25f44c['change'](_0x5728b1=>{_0x5728b1['remove'](_0x5375bf['range']),_0x5375bf['mention']['execute'](),_0x46d869['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x2d3274){const _0x4f3d6b=this['editor']['locale'],_0xd5ea7e=new E(_0x4f3d6b,_0x2d3274);return _0xd5ea7e['render'](),_0xd5ea7e['element'];}}class _ extends _0x374085{static get['requires'](){return[_0x54fb50,P,j];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as SlashCommand,O as SlashCommandConfig,P as SlashCommandEditing,j as SlashCommandUI};
|
|
23
|
+
import{Plugin as _0x4a0ab0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x1a3b59}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x217e75,uid as _0x14c24a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5459f3,IconQuote as _0x37662d,IconBulletedList as _0x21a13f,IconCodeBlock as _0x1a8c29,IconBrowseFiles as _0x111eb1,IconEmoji as _0x2f645a,IconHeading1 as _0x33e747,IconHeading2 as _0x401735,IconHeading3 as _0x48f83b,IconHeading4 as _0x1b5893,IconHeading5 as _0x3fda44,IconHeading6 as _0x1152b9,IconHorizontalLine as _0x3b6e45,IconHtml as _0x2c63f2,IconIndent as _0x1b2fad,IconTable as _0x4851ad,IconTableOfContents as _0x258b91,IconNumberedList as _0x4e949b,IconOutdent as _0x1564ae,IconParagraph as _0x3bf7c3,IconTodoList as _0x542bb7,IconFootnote as _0x28d2cb,IconPlay as _0x3acd6f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x440000,View as _0x4fae20}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x4a0ab0{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x490ab4){super(_0x490ab4),this['_allowedCommands']=null;}['afterInit'](){const _0x49d607=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x92ead=function(_0x3501da){let _0x30fe95=['heading4','heading5','heading6'];if(_0x3501da){const _0x2e9854=_0x3501da['map'](_0x445567=>_0x445567['model']);_0x30fe95=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x41250a=>!_0x2e9854['includes'](_0x41250a));}return _0x30fe95;}(this['editor']['config']['get']('heading.options'));let _0x13232f=this['getDefaultCommands']()['filter'](_0x46286f=>!_0x92ead['includes'](_0x46286f['id']))['filter'](_0x1e9343=>!_0x49d607['includes'](_0x1e9343['commandName']));const _0x412680=this['editor']['config']['get']('slashCommand.extraCommands');_0x412680&&_0x412680['length']&&(_0x13232f=_0x13232f['concat'](_0x412680));const _0x150ad6=this['editor']['config']['get']('template.definitions');_0x150ad6&&_0x150ad6['length']&&(_0x13232f=_0x13232f['concat'](function(_0x387290){return _0x387290['map'](_0x7adafe=>{const {title:_0x5015d0,icon:_0x3e44d,description:_0xd48ed3,data:_0x4e2211}=_0x7adafe,_0x3b1827={'id':K(_0x5015d0,'template'),'commandName':'insertTemplate','execute':_0x37aab9=>{_0x37aab9['execute']('insertTemplate',_0x4e2211);},'description':_0xd48ed3,'icon':_0x3e44d,'title':_0x5015d0};return _0x3e44d&&(_0x3b1827['isIconColorInherited']=!0x1),_0x3b1827;});}(_0x150ad6)));const _0x509795=this['editor']['config']['get']('style.definitions');_0x509795&&_0x509795['length']&&(_0x13232f=_0x13232f['concat'](function(_0x141b38){return _0x141b38['map'](_0x46bbff=>({'id':K(_0x46bbff['name'],'style'),'commandName':'style','execute':_0xd2d3b1=>{_0xd2d3b1['execute']('style',{'styleName':_0x46bbff['name']});},'isEnabled':_0x4e25a6=>{const _0x3a0177=_0x4e25a6['commands']['get']('style');return _0x3a0177['isEnabled']&&_0x3a0177['enabledStyles']['includes'](_0x46bbff['name']);},'title':_0x46bbff['name']}));}(_0x509795)));const _0x1c2d07=_0x13232f['filter'](_0x73d144=>!_0x73d144['commandName']||void 0x0!==this['editor']['commands']['get'](_0x73d144['commandName'])),_0x4654ba=[];for(const _0x2a9d2f of _0x1c2d07)_0x4654ba['push']({'id':_0x2a9d2f['id'],'commandName':_0x2a9d2f['commandName'],'title':'function'==typeof _0x2a9d2f['title']?_0x2a9d2f['title'](this['editor']):_0x2a9d2f['title'],'description':_0x2a9d2f['description'],'icon':_0x2a9d2f['icon'],'isIconColorInherited':_0x2a9d2f['isIconColorInherited'],'aliases':_0x2a9d2f['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2a9d2f),'execute':()=>this['_proxyExecute'](_0x2a9d2f)});this['_allowedCommands']=_0x4654ba['sort'](M),async function(_0x461881){const _0x135fb4=_0x349e80([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]),_0x348036=0x305505ed,_0x238c72=0x30528c2d^_0x348036,_0x3e493a=window[_0x349e80([0x44,0x61,0x74,0x65])][_0x349e80([0x6e,0x6f,0x77])](),_0x14ea30=_0x461881[_0x349e80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x357887=new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af22b=>{_0x14ea30[_0x349e80([0x6f,0x6e,0x63,0x65])](_0x349e80([0x72,0x65,0x61,0x64,0x79]),_0x5af22b);}),_0x5b95c8={[_0x349e80([0x6b,0x74,0x79])]:_0x349e80([0x45,0x43]),[_0x349e80([0x75,0x73,0x65])]:_0x349e80([0x73,0x69,0x67]),[_0x349e80([0x63,0x72,0x76])]:_0x349e80([0x50,0x2d,0x32,0x35,0x36]),[_0x349e80([0x78])]:_0x349e80([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]),[_0x349e80([0x79])]:_0x349e80([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]),[_0x349e80([0x61,0x6c,0x67])]:_0x349e80([0x45,0x53,0x32,0x35,0x36])},_0x24a133=_0x14ea30[_0x349e80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x349e80([0x67,0x65,0x74])](_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c4c7(){let _0x2931cd,_0x5b3782=null,_0x36a8a3=null;try{if(_0x24a133==_0x349e80([0x47,0x50,0x4c]))return _0x349e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2931cd=_0x1b44ec(),!_0x2931cd)return _0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2931cd[_0x349e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36a8a3=_0x2d0469(_0x2931cd[_0x349e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2931cd[_0x349e80([0x6a,0x74,0x69])])),await _0x2e7819()?_0x2deae9()?_0x2cc06()?_0x349e80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53a364()?(_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x349e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b3782=_0x57a7dd(_0x349e80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcaab68()):_0x349e80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x349e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cc06(){const _0x957170=[_0x349e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x349e80([0x74,0x72,0x69,0x61,0x6c])][_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e493a/0x3e8:0xe10*_0x238c72;return _0x2931cd[_0x349e80([0x65,0x78,0x70])]<_0x957170;}function _0x2deae9(){const _0xef2a9d=_0x2931cd[_0x349e80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xef2a9d&&(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x2a]))||(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x53,0x43]))||(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x50,0x50]))||!(!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1af03c()))));}function _0x53a364(){const _0x5dda6e=_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dda6e||0x0==_0x5dda6e[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x313303}=new URL(window[_0x349e80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5dda6e[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x313303))return!0x0;const _0xb28edd=_0x313303[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e]));return _0x5dda6e[_0x349e80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18c9a6=>_0x18c9a6[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x2a])))[_0x349e80([0x6d,0x61,0x70])](_0x49c006=>_0x49c006[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e])))[_0x349e80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ccc3a=>_0x5ccc3a[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb28edd[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x349e80([0x6d,0x61,0x70])](_0x22ba33=>Array(_0xb28edd[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ba33[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x349e80([0x66,0x69,0x6c,0x6c])](_0x22ba33[0x0]===_0x349e80([0x2a])?_0x349e80([0x2a]):'')[_0x349e80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ba33))[_0x349e80([0x73,0x6f,0x6d,0x65])](_0x4617d3=>_0xb28edd[_0x349e80([0x65,0x76,0x65,0x72,0x79])]((_0x1fca30,_0x13eb42)=>_0x4617d3[_0x13eb42]===_0x1fca30||_0x4617d3[_0x13eb42]===_0x349e80([0x2a])));}function _0xcaab68(){return _0x5b3782&&_0x36a8a3?new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dc06f,_0x1b4b9b)=>{_0x5b3782[_0x349e80([0x74,0x68,0x65,0x6e])](_0x2dc06f,_0x1b4b9b),_0x36a8a3[_0x349e80([0x74,0x68,0x65,0x6e])](_0x67b963=>{_0x67b963!=_0x349e80([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc06f(_0x67b963);},_0x1b4b9b);}):_0x5b3782||_0x36a8a3||_0x349e80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0469(_0x204e11,_0x1f8a73){return new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28396f=>{if(_0x2b7d07())return _0x28396f(_0x349e80([0x56,0x61,0x6c,0x69,0x64]));_0x537ddd(),_0x14ea30[_0x349e80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d7c67=!0x1;const _0x1e070c=_0x14c24a();function _0x877b56(_0x9a14d7){return!!_0x9a14d7&&(typeof _0x9a14d7===_0x349e80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9a14d7===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9a14d7[_0x349e80([0x74,0x68,0x65,0x6e])]===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9a14d7[_0x349e80([0x63,0x61,0x74,0x63,0x68])]===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x197248(_0x1cf56c){_0x3a310e(_0x1cf56c)[_0x349e80([0x74,0x68,0x65,0x6e])](_0x348a29=>{if(!_0x348a29||_0x348a29[_0x349e80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x349e80([0x6f,0x6b]))return _0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x156ad5(_0x567ef3(_0x1e070c+_0x1f8a73))!=_0x348a29[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x349e80([0x56,0x61,0x6c,0x69,0x64]);})[_0x349e80([0x74,0x68,0x65,0x6e])](_0x380c81=>(_0x37cab6(),_0x380c81),()=>{const _0x1b63ef=_0x37c23c();return null==_0x1b63ef?(_0x37cab6(),_0x349e80([0x56,0x61,0x6c,0x69,0x64])):_0x349e80(_0x3e493a-_0x1b63ef>(0x145981ed^_0x348036)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x349e80([0x74,0x68,0x65,0x6e])](_0x28396f)[_0x349e80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x207eb2=0x3063eb6d^_0x348036;function _0x37cab6(){const _0xf99b15=_0x349e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x156ad5(_0x567ef3(_0x204e11)),_0x28db64=_0x6be8ac(_0x156ad5(window[_0x349e80([0x4d,0x61,0x74,0x68])][_0x349e80([0x63,0x65,0x69,0x6c])](_0x3e493a/_0x207eb2)));window[_0x349e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x349e80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf99b15,_0x28db64);}function _0x37c23c(){const _0x42779b=_0x349e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x156ad5(_0x567ef3(_0x204e11)),_0x289302=window[_0x349e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x349e80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42779b);return _0x289302?window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6be8ac(_0x289302),0x10)*_0x207eb2:null;}function _0x3a310e(_0x12ed5e){return new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25e51f,_0x50a186)=>{_0x12ed5e[_0x349e80([0x74,0x68,0x65,0x6e])](_0x25e51f,_0x50a186),window[_0x349e80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50a186,0x3054d12d^_0x348036);});}}_0x14ea30[_0x349e80([0x6f,0x6e])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cb9d4,_0x1873a4)=>{if(_0x1873a4[0x0]!=_0x204e11)return _0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1873a4[0x1]={..._0x1873a4[0x1],[_0x349e80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e070c};},{[_0x349e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x349e80([0x68,0x69,0x67,0x68])}),_0x14ea30[_0x349e80([0x6f,0x6e])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb751ea=>{_0x877b56(_0xb751ea[_0x349e80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d7c67=!0x0,_0x197248(_0xb751ea[_0x349e80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x349e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x349e80([0x6c,0x6f,0x77])}),_0x357887[_0x349e80([0x74,0x68,0x65,0x6e])](()=>{_0x2d7c67||_0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b7d07(){return _0x14ea30[_0x349e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349e80([0x76,0x69,0x65,0x77])][_0x349e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x349e80([0x61,0x75,0x74,0x6f]);}function _0x537ddd(){_0x14ea30[_0x349e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349e80([0x76,0x69,0x65,0x77])][_0x349e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x349e80([0x61,0x75,0x74,0x6f]);}}function _0x57a7dd(_0x51a996){const _0x5afe78=[new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211ff6=>setTimeout(_0x211ff6,0x305c3b21^_0x348036)),_0x357887[_0x349e80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4537f6=>{let _0x39a6eb=0x0;_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x6f,0x6e])](_0x349e80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x740b1a,_0x1cd312)=>{_0x1cd312[0x0][_0x349e80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39a6eb++,_0x39a6eb==(0x30550005^_0x348036)&&(_0x4537f6(),_0x740b1a[_0x349e80([0x6f,0x66,0x66])]());});}))];return window[_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x349e80([0x72,0x61,0x63,0x65])](_0x5afe78)[_0x349e80([0x74,0x68,0x65,0x6e])](()=>_0x51a996);}async function _0x5141ac(){await _0x357887,_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51c9eb,_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51c9eb,_0x14ea30[_0x349e80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x349e80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1af03c(){return window[_0x349e80([0x67,0x6c,0x6f,0x62])]&&window[_0x349e80([0x67,0x6c,0x6f,0x62])][_0x349e80([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1becd7(_0x2601b2){const _0x42d075=_0x4dc37e();_0x14ea30[_0x42d075]=_0x349e80([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2601b2,_0x2601b2!=_0x349e80([0x56,0x61,0x6c,0x69,0x64])&&_0x5141ac();}function _0x4dc37e(){const _0x183ab7=window[_0x349e80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x349e80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x349e80([0x6e,0x6f,0x77])]())[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x349e80([0x2e]),'');let _0xf872a9=_0x349e80([0x75]);for(let _0x2492bd=0x0;_0x2492bd<_0x183ab7[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2492bd+=0x2){let _0x1e7bea=window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183ab7[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2492bd,_0x2492bd+0x2));_0x1e7bea>=_0x135fb4[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7bea-=_0x135fb4[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf872a9+=_0x135fb4[_0x1e7bea];}return _0xf872a9;}function _0x1b44ec(){const _0x4f5548=_0x24a133[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e]));if(0x3!=_0x4f5548[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ecfad(_0x4f5548[0x1]);function _0x1ecfad(_0x3406e3){const _0x495a22=_0x54278e(_0x3406e3);return _0x495a22&&_0x5237a9()?_0x495a22:null;function _0x5237a9(){const _0x2ccb5f=_0x495a22[_0x349e80([0x6a,0x74,0x69])],_0x5b29eb=window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ccb5f[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ccb5f[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dfd99={..._0x495a22,[_0x349e80([0x6a,0x74,0x69])]:_0x2ccb5f[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ccb5f[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dfd99[_0x349e80([0x76,0x63])],_0x567ef3(_0x1dfd99)==_0x5b29eb;}}}async function _0x2e7819(){let _0x490139=!0x0;try{const _0x3d4e60=_0x24a133[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e])),[_0x4ed6aa,_0x3d1ee4,_0x22694c]=_0x3d4e60;return _0x376446(_0x4ed6aa),await _0x11c30b(_0x4ed6aa,_0x3d1ee4,_0x22694c),_0x490139;}catch{return!0x1;}function _0x376446(_0x505d5c){const _0xecac13=_0x54278e(_0x505d5c);_0xecac13&&_0xecac13[_0x349e80([0x61,0x6c,0x67])]==_0x349e80([0x45,0x53,0x32,0x35,0x36])||(_0x490139=!0x1);}async function _0x11c30b(_0x30dcd3,_0x3eb6c4,_0x62ab97){const _0x1aea47=window[_0x349e80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x349e80([0x66,0x72,0x6f,0x6d])](_0x12ec2a(_0x62ab97),_0x5c461c=>_0x5c461c[_0x349e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fa1dc=new window[(_0x349e80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x349e80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30dcd3+_0x349e80([0x2e])+_0x3eb6c4),_0x2d2105=window[_0x349e80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x349e80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d2105)return;const _0x30c184=await _0x2d2105[_0x349e80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x349e80([0x6a,0x77,0x6b]),_0x5b95c8,{[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x45,0x43,0x44,0x53,0x41]),[_0x349e80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x349e80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d2105[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x45,0x43,0x44,0x53,0x41]),[_0x349e80([0x68,0x61,0x73,0x68])]:{[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30c184,_0x1aea47,_0x2fa1dc)||(_0x490139=!0x1);}}function _0x54278e(_0xcde82b){return _0xcde82b[_0x349e80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x349e80([0x65,0x79]))?JSON[_0x349e80([0x70,0x61,0x72,0x73,0x65])](_0x12ec2a(_0xcde82b)):null;}function _0x12ec2a(_0x5103eb){return window[_0x349e80([0x61,0x74,0x6f,0x62])](_0x5103eb[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x349e80([0x2b]))[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x349e80([0x2f])));}function _0x567ef3(_0x187b45){let _0x542390=0x1505;function _0x31943e(_0x2e603a){for(let _0x3ef75f=0x0;_0x3ef75f<_0x2e603a[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef75f++){const _0x8296b6=_0x2e603a[_0x349e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ef75f);_0x542390=(_0x542390<<0x5)+_0x542390+_0x8296b6,_0x542390&=_0x542390;}}function _0x4ed053(_0x2ec454){Array[_0x349e80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ec454)?_0x2ec454[_0x349e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ed053):_0x2ec454&&typeof _0x2ec454==_0x349e80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x349e80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ec454)[_0x349e80([0x73,0x6f,0x72,0x74])]()[_0x349e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b6440,_0x2a7e54])=>{_0x31943e(_0x5b6440),_0x4ed053(_0x2a7e54);}):_0x31943e(window[_0x349e80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ec454));}return _0x4ed053(_0x187b45),_0x542390>>>0x0;}function _0x156ad5(_0x1ba1a5){return _0x1ba1a5[_0x349e80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x349e80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x349e80([0x30]));}function _0x6be8ac(_0x4c7560){return _0x4c7560[_0x349e80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x349e80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x349e80([0x6a,0x6f,0x69,0x6e])]('');}function _0x51c9eb(){}function _0x349e80(_0x12c114){return _0x12c114['map'](_0x3b0d6e=>String['fromCharCode'](_0x3b0d6e))['join']('');}_0x1becd7(await _0x34c4c7());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x116e2b=_0x4be2b1=>function(_0x52fc28,_0x4d89b5){const t=_0x52fc28['t'],_0x1cf392=_0x52fc28['t'];switch(_0x4d89b5){case'AI\x20Assistant':return _0x1cf392('AI\x20Assistant');case'Block\x20quote':return _0x1cf392('Block\x20quote');case'Bulleted\x20List':return _0x1cf392('Bulleted\x20List');case'Insert\x20code\x20block':return _0x1cf392('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x1cf392('Open\x20file\x20manager');case'Insert\x20image':return _0x1cf392('Insert\x20image');case'Heading\x201':return _0x1cf392('Heading\x201');case'Heading\x202':return _0x1cf392('Heading\x202');case'Heading\x203':return _0x1cf392('Heading\x203');case'Heading\x204':return _0x1cf392('Heading\x204');case'Heading\x205':return _0x1cf392('Heading\x205');case'Heading\x206':return _0x1cf392('Heading\x206');case'Horizontal\x20line':return _0x1cf392('Horizontal\x20line');case'Insert\x20HTML':return _0x1cf392('Insert\x20HTML');case'Increase\x20indent':return _0x1cf392('Increase\x20indent');case'Insert\x20table':return _0x1cf392('Insert\x20table');case'Table\x20of\x20contents':return _0x1cf392('Table\x20of\x20contents');case'Numbered\x20List':return _0x1cf392('Numbered\x20List');case'Decrease\x20indent':return _0x1cf392('Decrease\x20indent');case'Paragraph':return _0x1cf392('Paragraph');case'To-do\x20List':return _0x1cf392('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 _0x4d89b5;}}(this['editor']['locale'],_0x4be2b1);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5459f3,'title':_0x116e2b('AI\x20Assistant'),'description':_0x116e2b('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2f0a44=>{setTimeout(()=>_0x2f0a44['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x37662d,'title':_0x116e2b('Block\x20quote'),'description':_0x116e2b('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x21a13f,'title':_0x116e2b('Bulleted\x20List'),'description':_0x116e2b('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1a8c29,'title':_0x116e2b('Insert\x20code\x20block'),'description':_0x116e2b('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x111eb1,'title':_0x116e2b('Open\x20file\x20manager'),'description':_0x116e2b('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x111eb1,'title':_0x116e2b('Insert\x20image'),'description':_0x116e2b('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x2f645a,'title':_0x116e2b('Emoji'),'description':_0x116e2b('Insert\x20an\x20emoji'),'execute':_0x14511f=>{setTimeout(()=>_0x14511f['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x33e747,'title':_0x116e2b('Heading\x201'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x201'),'execute':_0xfb3aa5=>{_0xfb3aa5['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x401735,'title':_0x116e2b('Heading\x202'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x202'),'execute':_0x387d83=>{_0x387d83['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x48f83b,'title':_0x116e2b('Heading\x203'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x203'),'execute':_0x40d0eb=>{_0x40d0eb['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1b5893,'title':_0x116e2b('Heading\x204'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x204'),'execute':_0x443b0f=>{_0x443b0f['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3fda44,'title':_0x116e2b('Heading\x205'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x205'),'execute':_0x5f5482=>{_0x5f5482['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x1152b9,'title':_0x116e2b('Heading\x206'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x206'),'execute':_0x3831fd=>{_0x3831fd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x3b6e45,'title':_0x116e2b('Horizontal\x20line'),'description':_0x116e2b('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2c63f2,'title':_0x116e2b('Insert\x20HTML'),'description':_0x116e2b('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x1b2fad,'title':_0x116e2b('Increase\x20indent'),'description':_0x116e2b('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x116e2b('Insert\x20Mermaid\x20diagram'),'description':_0x116e2b('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x4851ad,'title':_0x116e2b('Insert\x20table'),'description':_0x116e2b('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x258b91,'title':_0x116e2b('Table\x20of\x20contents'),'description':_0x116e2b('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4e949b,'title':_0x116e2b('Numbered\x20List'),'description':_0x116e2b('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x1564ae,'title':_0x116e2b('Decrease\x20indent'),'description':_0x116e2b('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x3bf7c3,'title':_0x116e2b('Paragraph'),'description':_0x116e2b('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x542bb7,'title':_0x116e2b('To-do\x20List'),'description':_0x116e2b('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x28d2cb,'title':_0x116e2b('Footnote'),'description':_0x116e2b('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x840c71){return _0x840c71['isEnabled']?_0x840c71['isEnabled'](this['editor']):!_0x840c71['commandName']||this['editor']['commands']['get'](_0x840c71['commandName'])['isEnabled'];}['_proxyExecute'](_0x2a4c65){if(_0x2a4c65['execute'])_0x2a4c65['execute'](this['editor']);else{if(!_0x2a4c65['commandName'])throw new _0x217e75('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2a4c65});this['editor']['execute'](_0x2a4c65['commandName']);}}}function M(_0x3ab09f,_0x4d6cb4){return _0x3ab09f['title']<_0x4d6cb4['title']?-0x1:_0x3ab09f['title']>_0x4d6cb4['title']?0x1:0x0;}function K(_0x373c5d,_0x23f0ef){return _0x23f0ef+'-'+_0x373c5d['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x4a0ab0{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2cbd39){const _0x5cbda0=_0x2cbd39&&_0x2cbd39['toLowerCase']();let _0x373cf1=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x373cf1=_0x373cf1['filter'](_0x760258=>_0x760258['isEnabled']()),_0x5cbda0){const _0x349ddf=[],_0x4badbf=[],_0x1c63cb=[],_0x41b462=[];for(const _0x366510 of _0x373cf1)_0x366510['id']['toLowerCase']()['includes'](_0x5cbda0)?_0x349ddf['push'](_0x366510):_0x366510['title']['toLowerCase']()['includes'](_0x5cbda0)?_0x4badbf['push'](_0x366510):_0x366510['aliases']&&_0x366510['aliases']['some'](_0x130cde=>_0x130cde['toLowerCase']()['includes'](_0x5cbda0))?_0x1c63cb['push'](_0x366510):_0x366510['description']&&_0x366510['description']['toLowerCase']()['includes'](_0x5cbda0)&&_0x41b462['push'](_0x366510);_0x373cf1=_0x349ddf['concat'](_0x4badbf,_0x1c63cb,_0x41b462);}return _0x373cf1;}}class E extends _0x440000{constructor(_0x2d90fe,_0x2cb1cc){super(_0x2d90fe),this['textPartView']=this['_createTextPartView'](_0x2d90fe,_0x2cb1cc),void 0x0!==_0x2cb1cc['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2cb1cc['isIconColorInherited']),this['set']({'icon':_0x2cb1cc['icon']||_0x3acd6f,'withText':!0x0,'label':_0x2cb1cc['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x31a571,_0x5acb39){const _0x1465a3=new _0x4fae20(_0x31a571);return _0x1465a3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5acb39['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5acb39['description']}]}]:[this['labelView']]}),_0x1465a3;}}class j extends _0x4a0ab0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7de4a3){super(_0x7de4a3),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54656d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x146aaa;for(const _0x18f8f0 in _0x54656d){const _0x12fa8e=_0x18f8f0,_0x396f8f=_0x54656d[_0x12fa8e];if('slashCommandLicenseKeyValid'==_0x396f8f||'slashCommandLicenseKeyInvalid'==_0x396f8f||'slashCommandLicenseKeyExpired'==_0x396f8f||'slashCommandLicenseKeyDomainLimit'==_0x396f8f||'slashCommandLicenseKeyNotAllowed'==_0x396f8f||'slashCommandLicenseKeyEvaluationLimit'==_0x396f8f||'slashCommandLicenseKeyUsageLimit'==_0x396f8f){delete _0x54656d[_0x12fa8e],_0x146aaa=_0x396f8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x146aaa&&_0x54656d['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x146aaa&&_0x54656d['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x146aaa&&_0x54656d['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3f8347=this['editor'],_0x245fb4=this['editor']['plugins']['get']('SlashCommandEditing'),_0x1b199d=_0x3f8347['config']['get']('mention.feeds');_0x1b199d['push']({'marker':'/','feed':_0x50d178=>_0x245fb4['getMatchingCommands'](_0x50d178),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3f8347['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3f8347['config']['set']('mention.feeds',_0x1b199d);}['_overrideMentionExecuteListener'](){const _0x3e2c11=this['editor'];_0x3e2c11['commands']['get']('mention')['on']('execute',(_0x41e0dd,_0x4e97ab)=>{const _0x269e00=_0x4e97ab[0x0],_0x495fad=_0x3e2c11['model'];'/'===_0x269e00['marker']&&_0x495fad['change'](_0x10e604=>{_0x10e604['remove'](_0x269e00['range']),_0x269e00['mention']['execute'](),_0x41e0dd['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4a1830){const _0x32033d=this['editor']['locale'],_0x4fb4e4=new E(_0x32033d,_0x4a1830);return _0x4fb4e4['render'](),_0x4fb4e4['element'];}}class _ extends _0x4a0ab0{static get['requires'](){return[_0x1a3b59,P,j];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as SlashCommand,O as SlashCommandConfig,P as SlashCommandEditing,j as SlashCommandUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.0-alpha.5",
|
|
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.1.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.1.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.1.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.1.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|