@ckeditor/ckeditor5-slash-command 48.1.0-alpha.3 → 48.1.0-alpha.4

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 _0x377714}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x50c706}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x17db41,uid as _0x5240cd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x24ed29,IconQuote as _0x39df87,IconBulletedList as _0x4a3ec8,IconCodeBlock as _0x3a1f23,IconBrowseFiles as _0x26e66b,IconEmoji as _0x1e03d7,IconHeading1 as _0x1608ab,IconHeading2 as _0x32b7f0,IconHeading3 as _0x3fde66,IconHeading4 as _0x4b5392,IconHeading5 as _0x3566b7,IconHeading6 as _0x38d96e,IconHorizontalLine as _0xebf0b0,IconHtml as _0x3d33f4,IconIndent as _0x349f10,IconTable as _0x21dd23,IconTableOfContents as _0x232b99,IconNumberedList as _0x3d0944,IconOutdent as _0x4dddcc,IconParagraph as _0x536969,IconTodoList as _0xc650b7,IconFootnote as _0x5ec169,IconPlay as _0x11289c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x38ad7c,View as _0x5846f6}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x377714{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x275fd5){super(_0x275fd5),this['_allowedCommands']=null;}['afterInit'](){const _0x2b7bb1=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2fe771=function(_0x4f4319){let _0x244e30=['heading4','heading5','heading6'];if(_0x4f4319){const _0x1f8b9a=_0x4f4319['map'](_0x3e5d57=>_0x3e5d57['model']);_0x244e30=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x1a36cf=>!_0x1f8b9a['includes'](_0x1a36cf));}return _0x244e30;}(this['editor']['config']['get']('heading.options'));let _0x4f26b3=this['getDefaultCommands']()['filter'](_0x3d116e=>!_0x2fe771['includes'](_0x3d116e['id']))['filter'](_0x7f8c2c=>!_0x2b7bb1['includes'](_0x7f8c2c['commandName']));const _0x43f444=this['editor']['config']['get']('slashCommand.extraCommands');_0x43f444&&_0x43f444['length']&&(_0x4f26b3=_0x4f26b3['concat'](_0x43f444));const _0x31d1c2=this['editor']['config']['get']('template.definitions');_0x31d1c2&&_0x31d1c2['length']&&(_0x4f26b3=_0x4f26b3['concat'](function(_0x22a296){return _0x22a296['map'](_0x2f316e=>{const {title:_0x443e93,icon:_0x19ddcc,description:_0x5ada1a,data:_0x2fc493}=_0x2f316e,_0x580c7a={'id':K(_0x443e93,'template'),'commandName':'insertTemplate','execute':_0x4d5a42=>{_0x4d5a42['execute']('insertTemplate',_0x2fc493);},'description':_0x5ada1a,'icon':_0x19ddcc,'title':_0x443e93};return _0x19ddcc&&(_0x580c7a['isIconColorInherited']=!0x1),_0x580c7a;});}(_0x31d1c2)));const _0x4eb1e6=this['editor']['config']['get']('style.definitions');_0x4eb1e6&&_0x4eb1e6['length']&&(_0x4f26b3=_0x4f26b3['concat'](function(_0x17cda9){return _0x17cda9['map'](_0x238597=>({'id':K(_0x238597['name'],'style'),'commandName':'style','execute':_0x3d7b00=>{_0x3d7b00['execute']('style',{'styleName':_0x238597['name']});},'isEnabled':_0x4c6c1e=>{const _0x101577=_0x4c6c1e['commands']['get']('style');return _0x101577['isEnabled']&&_0x101577['enabledStyles']['includes'](_0x238597['name']);},'title':_0x238597['name']}));}(_0x4eb1e6)));const _0x535a72=_0x4f26b3['filter'](_0x4e4a6b=>!_0x4e4a6b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x4e4a6b['commandName'])),_0x381c5a=[];for(const _0x33b030 of _0x535a72)_0x381c5a['push']({'id':_0x33b030['id'],'commandName':_0x33b030['commandName'],'title':'function'==typeof _0x33b030['title']?_0x33b030['title'](this['editor']):_0x33b030['title'],'description':_0x33b030['description'],'icon':_0x33b030['icon'],'isIconColorInherited':_0x33b030['isIconColorInherited'],'aliases':_0x33b030['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x33b030),'execute':()=>this['_proxyExecute'](_0x33b030)});this['_allowedCommands']=_0x381c5a['sort'](M),async function(_0x4f4a14){const _0x1460f4=_0x51326c([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]),_0x563ce2=0x305505ed,_0x466f44=0x30528c7d^_0x563ce2,_0x32c2a7=window[_0x51326c([0x44,0x61,0x74,0x65])][_0x51326c([0x6e,0x6f,0x77])](),_0x5811b0=_0x4f4a14[_0x51326c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32f0f5=new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483a17=>{_0x5811b0[_0x51326c([0x6f,0x6e,0x63,0x65])](_0x51326c([0x72,0x65,0x61,0x64,0x79]),_0x483a17);}),_0x265226={[_0x51326c([0x6b,0x74,0x79])]:_0x51326c([0x45,0x43]),[_0x51326c([0x75,0x73,0x65])]:_0x51326c([0x73,0x69,0x67]),[_0x51326c([0x63,0x72,0x76])]:_0x51326c([0x50,0x2d,0x32,0x35,0x36]),[_0x51326c([0x78])]:_0x51326c([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]),[_0x51326c([0x79])]:_0x51326c([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]),[_0x51326c([0x61,0x6c,0x67])]:_0x51326c([0x45,0x53,0x32,0x35,0x36])},_0x579a4c=_0x5811b0[_0x51326c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51326c([0x67,0x65,0x74])](_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5be340(){let _0x155be3,_0x2779c4=null,_0x266d9b=null;try{if(_0x579a4c==_0x51326c([0x47,0x50,0x4c]))return _0x51326c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x155be3=_0x2e04cf(),!_0x155be3)return _0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x155be3[_0x51326c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266d9b=_0xb0c379(_0x155be3[_0x51326c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x155be3[_0x51326c([0x6a,0x74,0x69])])),await _0x4243d5()?_0x445810()?_0x3d26ff()?_0x51326c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x183d53()?(_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51326c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2779c4=_0x50bda2(_0x51326c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x495460()):_0x51326c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51326c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d26ff(){const _0x3204ca=[_0x51326c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51326c([0x74,0x72,0x69,0x61,0x6c])][_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32c2a7/0x3e8:0xe10*_0x466f44;return _0x155be3[_0x51326c([0x65,0x78,0x70])]<_0x3204ca;}function _0x445810(){const _0x14578f=_0x155be3[_0x51326c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14578f&&(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x2a]))||(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x53,0x43]))||(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x50,0x50]))||!(!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2068a8()))));}function _0x183d53(){const _0x497a27=_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x497a27||0x0==_0x497a27[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59bc2b}=new URL(window[_0x51326c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x497a27[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bc2b))return!0x0;const _0x19bce5=_0x59bc2b[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e]));return _0x497a27[_0x51326c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x444e00=>_0x444e00[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x2a])))[_0x51326c([0x6d,0x61,0x70])](_0x33fcb1=>_0x33fcb1[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e])))[_0x51326c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4254d9=>_0x4254d9[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19bce5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51326c([0x6d,0x61,0x70])](_0x5c204a=>Array(_0x19bce5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c204a[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51326c([0x66,0x69,0x6c,0x6c])](_0x5c204a[0x0]===_0x51326c([0x2a])?_0x51326c([0x2a]):'')[_0x51326c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c204a))[_0x51326c([0x73,0x6f,0x6d,0x65])](_0x188ac4=>_0x19bce5[_0x51326c([0x65,0x76,0x65,0x72,0x79])]((_0x431d6b,_0x58c1a4)=>_0x188ac4[_0x58c1a4]===_0x431d6b||_0x188ac4[_0x58c1a4]===_0x51326c([0x2a])));}function _0x495460(){return _0x2779c4&&_0x266d9b?new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498d8b,_0x239402)=>{_0x2779c4[_0x51326c([0x74,0x68,0x65,0x6e])](_0x498d8b,_0x239402),_0x266d9b[_0x51326c([0x74,0x68,0x65,0x6e])](_0x588248=>{_0x588248!=_0x51326c([0x56,0x61,0x6c,0x69,0x64])&&_0x498d8b(_0x588248);},_0x239402);}):_0x2779c4||_0x266d9b||_0x51326c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb0c379(_0x9cd618,_0x10ca5a){return new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133cf6=>{if(_0x22c8d3())return _0x133cf6(_0x51326c([0x56,0x61,0x6c,0x69,0x64]));_0x290434(),_0x5811b0[_0x51326c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13656e=!0x1;const _0x156320=_0x5240cd();function _0x6f6172(_0x3aa740){return!!_0x3aa740&&(typeof _0x3aa740===_0x51326c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aa740===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aa740[_0x51326c([0x74,0x68,0x65,0x6e])]===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aa740[_0x51326c([0x63,0x61,0x74,0x63,0x68])]===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18d605(_0x5073d6){_0x433b0a(_0x5073d6)[_0x51326c([0x74,0x68,0x65,0x6e])](_0x546bda=>{if(!_0x546bda||_0x546bda[_0x51326c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51326c([0x6f,0x6b]))return _0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x271ab9(_0x304b84(_0x156320+_0x10ca5a))!=_0x546bda[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51326c([0x56,0x61,0x6c,0x69,0x64]);})[_0x51326c([0x74,0x68,0x65,0x6e])](_0x396a32=>(_0x1fa14f(),_0x396a32),()=>{const _0x5970a3=_0x128dbb();return null==_0x5970a3?(_0x1fa14f(),_0x51326c([0x56,0x61,0x6c,0x69,0x64])):_0x51326c(_0x32c2a7-_0x5970a3>(0x145981ed^_0x563ce2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51326c([0x74,0x68,0x65,0x6e])](_0x133cf6)[_0x51326c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12d11d=0x3063eb6d^_0x563ce2;function _0x1fa14f(){const _0x5b5f51=_0x51326c([0x6c,0x6c,0x63,0x74,0x2d])+_0x271ab9(_0x304b84(_0x9cd618)),_0x280330=_0x1ac33e(_0x271ab9(window[_0x51326c([0x4d,0x61,0x74,0x68])][_0x51326c([0x63,0x65,0x69,0x6c])](_0x32c2a7/_0x12d11d)));window[_0x51326c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51326c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5f51,_0x280330);}function _0x128dbb(){const _0x226781=_0x51326c([0x6c,0x6c,0x63,0x74,0x2d])+_0x271ab9(_0x304b84(_0x9cd618)),_0x37c086=window[_0x51326c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51326c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x226781);return _0x37c086?window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac33e(_0x37c086),0x10)*_0x12d11d:null;}function _0x433b0a(_0x990e85){return new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b1a2,_0x57a131)=>{_0x990e85[_0x51326c([0x74,0x68,0x65,0x6e])](_0x18b1a2,_0x57a131),window[_0x51326c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57a131,0x3054d12d^_0x563ce2);});}}_0x5811b0[_0x51326c([0x6f,0x6e])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ee580,_0x3cfe3d)=>{if(_0x3cfe3d[0x0]!=_0x9cd618)return _0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cfe3d[0x1]={..._0x3cfe3d[0x1],[_0x51326c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x156320};},{[_0x51326c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51326c([0x68,0x69,0x67,0x68])}),_0x5811b0[_0x51326c([0x6f,0x6e])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e6222=>{_0x6f6172(_0x5e6222[_0x51326c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13656e=!0x0,_0x18d605(_0x5e6222[_0x51326c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51326c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51326c([0x6c,0x6f,0x77])}),_0x32f0f5[_0x51326c([0x74,0x68,0x65,0x6e])](()=>{_0x13656e||_0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22c8d3(){return _0x5811b0[_0x51326c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51326c([0x76,0x69,0x65,0x77])][_0x51326c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51326c([0x61,0x75,0x74,0x6f]);}function _0x290434(){_0x5811b0[_0x51326c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51326c([0x76,0x69,0x65,0x77])][_0x51326c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51326c([0x61,0x75,0x74,0x6f]);}}function _0x50bda2(_0x1b5811){const _0x528d6c=[new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502a6b=>setTimeout(_0x502a6b,0x305c3b21^_0x563ce2)),_0x32f0f5[_0x51326c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517931=>{let _0x303235=0x0;_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x6f,0x6e])](_0x51326c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37c2be,_0x3519ec)=>{_0x3519ec[0x0][_0x51326c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x303235++,_0x303235==(0x30550005^_0x563ce2)&&(_0x517931(),_0x37c2be[_0x51326c([0x6f,0x66,0x66])]());});}))];return window[_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51326c([0x72,0x61,0x63,0x65])](_0x528d6c)[_0x51326c([0x74,0x68,0x65,0x6e])](()=>_0x1b5811);}async function _0x4f2dd6(){await _0x32f0f5,_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51c6b8,_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51c6b8,_0x5811b0[_0x51326c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51326c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2068a8(){return window[_0x51326c([0x67,0x6c,0x6f,0x62])]&&window[_0x51326c([0x67,0x6c,0x6f,0x62])][_0x51326c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x380e7a(_0x519598){const _0x3800eb=_0x328ea3();_0x5811b0[_0x3800eb]=_0x51326c([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519598,_0x519598!=_0x51326c([0x56,0x61,0x6c,0x69,0x64])&&_0x4f2dd6();}function _0x328ea3(){const _0x54b932=window[_0x51326c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51326c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51326c([0x6e,0x6f,0x77])]())[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51326c([0x2e]),'');let _0x100e7a=_0x51326c([0x75]);for(let _0x509f40=0x0;_0x509f40<_0x54b932[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509f40+=0x2){let _0x205d89=window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b932[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509f40,_0x509f40+0x2));_0x205d89>=_0x1460f4[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x205d89-=_0x1460f4[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x100e7a+=_0x1460f4[_0x205d89];}return _0x100e7a;}function _0x2e04cf(){const _0x49e9f5=_0x579a4c[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e]));if(0x3!=_0x49e9f5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a96ab(_0x49e9f5[0x1]);function _0x5a96ab(_0x253c82){const _0x599181=_0x34ab6d(_0x253c82);return _0x599181&&_0x1ddc85()?_0x599181:null;function _0x1ddc85(){const _0x166a9d=_0x599181[_0x51326c([0x6a,0x74,0x69])],_0x3c4bfa=window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166a9d[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166a9d[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29e431={..._0x599181,[_0x51326c([0x6a,0x74,0x69])]:_0x166a9d[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x166a9d[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29e431[_0x51326c([0x76,0x63])],_0x304b84(_0x29e431)==_0x3c4bfa;}}}async function _0x4243d5(){let _0x15f2d8=!0x0;try{const _0x45ef92=_0x579a4c[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e])),[_0x646f5b,_0x1c79b1,_0x33ba8b]=_0x45ef92;return _0x513cfa(_0x646f5b),await _0x32fd6e(_0x646f5b,_0x1c79b1,_0x33ba8b),_0x15f2d8;}catch{return!0x1;}function _0x513cfa(_0x31c075){const _0x87e1a0=_0x34ab6d(_0x31c075);_0x87e1a0&&_0x87e1a0[_0x51326c([0x61,0x6c,0x67])]==_0x51326c([0x45,0x53,0x32,0x35,0x36])||(_0x15f2d8=!0x1);}async function _0x32fd6e(_0x3a5ad2,_0x3e20b9,_0xda92b8){const _0x20f5e6=window[_0x51326c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51326c([0x66,0x72,0x6f,0x6d])](_0x53dd3d(_0xda92b8),_0x7f7189=>_0x7f7189[_0x51326c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ad2d=new window[(_0x51326c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51326c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a5ad2+_0x51326c([0x2e])+_0x3e20b9),_0x345864=window[_0x51326c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51326c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x345864)return;const _0x3aef12=await _0x345864[_0x51326c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51326c([0x6a,0x77,0x6b]),_0x265226,{[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x45,0x43,0x44,0x53,0x41]),[_0x51326c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51326c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x345864[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x45,0x43,0x44,0x53,0x41]),[_0x51326c([0x68,0x61,0x73,0x68])]:{[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aef12,_0x20f5e6,_0x17ad2d)||(_0x15f2d8=!0x1);}}function _0x34ab6d(_0x1ef6c7){return _0x1ef6c7[_0x51326c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51326c([0x65,0x79]))?JSON[_0x51326c([0x70,0x61,0x72,0x73,0x65])](_0x53dd3d(_0x1ef6c7)):null;}function _0x53dd3d(_0x2d7abe){return window[_0x51326c([0x61,0x74,0x6f,0x62])](_0x2d7abe[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51326c([0x2b]))[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51326c([0x2f])));}function _0x304b84(_0x2890e3){let _0x4703d6=0x1505;function _0x2a8c90(_0xf6c2ae){for(let _0x18c4d1=0x0;_0x18c4d1<_0xf6c2ae[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18c4d1++){const _0xf4168c=_0xf6c2ae[_0x51326c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18c4d1);_0x4703d6=(_0x4703d6<<0x5)+_0x4703d6+_0xf4168c,_0x4703d6&=_0x4703d6;}}function _0x84efac(_0x4a2e21){Array[_0x51326c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2e21)?_0x4a2e21[_0x51326c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x84efac):_0x4a2e21&&typeof _0x4a2e21==_0x51326c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51326c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2e21)[_0x51326c([0x73,0x6f,0x72,0x74])]()[_0x51326c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6da5ae,_0x2cfad1])=>{_0x2a8c90(_0x6da5ae),_0x84efac(_0x2cfad1);}):_0x2a8c90(window[_0x51326c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2e21));}return _0x84efac(_0x2890e3),_0x4703d6>>>0x0;}function _0x271ab9(_0x300665){return _0x300665[_0x51326c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51326c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51326c([0x30]));}function _0x1ac33e(_0x517d3d){return _0x517d3d[_0x51326c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51326c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51326c([0x6a,0x6f,0x69,0x6e])]('');}function _0x51c6b8(){}function _0x51326c(_0x2a3f05){return _0x2a3f05['map'](_0x51d33d=>String['fromCharCode'](_0x51d33d))['join']('');}_0x380e7a(await _0x5be340());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x8669fe=_0x353592=>function(_0x25e79f,_0x2ae374){const t=_0x25e79f['t'],_0x4ff7af=_0x25e79f['t'];switch(_0x2ae374){case'AI\x20Assistant':return _0x4ff7af('AI\x20Assistant');case'Block\x20quote':return _0x4ff7af('Block\x20quote');case'Bulleted\x20List':return _0x4ff7af('Bulleted\x20List');case'Insert\x20code\x20block':return _0x4ff7af('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x4ff7af('Open\x20file\x20manager');case'Insert\x20image':return _0x4ff7af('Insert\x20image');case'Heading\x201':return _0x4ff7af('Heading\x201');case'Heading\x202':return _0x4ff7af('Heading\x202');case'Heading\x203':return _0x4ff7af('Heading\x203');case'Heading\x204':return _0x4ff7af('Heading\x204');case'Heading\x205':return _0x4ff7af('Heading\x205');case'Heading\x206':return _0x4ff7af('Heading\x206');case'Horizontal\x20line':return _0x4ff7af('Horizontal\x20line');case'Insert\x20HTML':return _0x4ff7af('Insert\x20HTML');case'Increase\x20indent':return _0x4ff7af('Increase\x20indent');case'Insert\x20table':return _0x4ff7af('Insert\x20table');case'Table\x20of\x20contents':return _0x4ff7af('Table\x20of\x20contents');case'Numbered\x20List':return _0x4ff7af('Numbered\x20List');case'Decrease\x20indent':return _0x4ff7af('Decrease\x20indent');case'Paragraph':return _0x4ff7af('Paragraph');case'To-do\x20List':return _0x4ff7af('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 _0x2ae374;}}(this['editor']['locale'],_0x353592);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x24ed29,'title':_0x8669fe('AI\x20Assistant'),'description':_0x8669fe('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3a5dc4=>{setTimeout(()=>_0x3a5dc4['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x39df87,'title':_0x8669fe('Block\x20quote'),'description':_0x8669fe('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x4a3ec8,'title':_0x8669fe('Bulleted\x20List'),'description':_0x8669fe('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3a1f23,'title':_0x8669fe('Insert\x20code\x20block'),'description':_0x8669fe('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x26e66b,'title':_0x8669fe('Open\x20file\x20manager'),'description':_0x8669fe('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x26e66b,'title':_0x8669fe('Insert\x20image'),'description':_0x8669fe('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x1e03d7,'title':_0x8669fe('Emoji'),'description':_0x8669fe('Insert\x20an\x20emoji'),'execute':_0x20066d=>{setTimeout(()=>_0x20066d['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1608ab,'title':_0x8669fe('Heading\x201'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x201'),'execute':_0x51cd66=>{_0x51cd66['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x32b7f0,'title':_0x8669fe('Heading\x202'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x202'),'execute':_0x539c2c=>{_0x539c2c['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3fde66,'title':_0x8669fe('Heading\x203'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x203'),'execute':_0x166df1=>{_0x166df1['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4b5392,'title':_0x8669fe('Heading\x204'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x204'),'execute':_0x1004d1=>{_0x1004d1['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3566b7,'title':_0x8669fe('Heading\x205'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x205'),'execute':_0x4ad36f=>{_0x4ad36f['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x38d96e,'title':_0x8669fe('Heading\x206'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x206'),'execute':_0x33851a=>{_0x33851a['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0xebf0b0,'title':_0x8669fe('Horizontal\x20line'),'description':_0x8669fe('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3d33f4,'title':_0x8669fe('Insert\x20HTML'),'description':_0x8669fe('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x349f10,'title':_0x8669fe('Increase\x20indent'),'description':_0x8669fe('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x8669fe('Insert\x20Mermaid\x20diagram'),'description':_0x8669fe('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x21dd23,'title':_0x8669fe('Insert\x20table'),'description':_0x8669fe('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x232b99,'title':_0x8669fe('Table\x20of\x20contents'),'description':_0x8669fe('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3d0944,'title':_0x8669fe('Numbered\x20List'),'description':_0x8669fe('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x4dddcc,'title':_0x8669fe('Decrease\x20indent'),'description':_0x8669fe('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x536969,'title':_0x8669fe('Paragraph'),'description':_0x8669fe('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xc650b7,'title':_0x8669fe('To-do\x20List'),'description':_0x8669fe('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x5ec169,'title':_0x8669fe('Footnote'),'description':_0x8669fe('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x23b6f7){return _0x23b6f7['isEnabled']?_0x23b6f7['isEnabled'](this['editor']):!_0x23b6f7['commandName']||this['editor']['commands']['get'](_0x23b6f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x509ffe){if(_0x509ffe['execute'])_0x509ffe['execute'](this['editor']);else{if(!_0x509ffe['commandName'])throw new _0x17db41('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x509ffe});this['editor']['execute'](_0x509ffe['commandName']);}}}function M(_0x277ef0,_0x4b5c45){return _0x277ef0['title']<_0x4b5c45['title']?-0x1:_0x277ef0['title']>_0x4b5c45['title']?0x1:0x0;}function K(_0x5a2eab,_0x401b46){return _0x401b46+'-'+_0x5a2eab['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x377714{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x127745){const _0x1413b6=_0x127745&&_0x127745['toLowerCase']();let _0x5c04b5=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x5c04b5=_0x5c04b5['filter'](_0x4b26e5=>_0x4b26e5['isEnabled']()),_0x1413b6){const _0x3a7db0=[],_0x3ae5e1=[],_0x25267d=[],_0x4a2bdb=[];for(const _0x5cf4f8 of _0x5c04b5)_0x5cf4f8['id']['toLowerCase']()['includes'](_0x1413b6)?_0x3a7db0['push'](_0x5cf4f8):_0x5cf4f8['title']['toLowerCase']()['includes'](_0x1413b6)?_0x3ae5e1['push'](_0x5cf4f8):_0x5cf4f8['aliases']&&_0x5cf4f8['aliases']['some'](_0x2e1dfd=>_0x2e1dfd['toLowerCase']()['includes'](_0x1413b6))?_0x25267d['push'](_0x5cf4f8):_0x5cf4f8['description']&&_0x5cf4f8['description']['toLowerCase']()['includes'](_0x1413b6)&&_0x4a2bdb['push'](_0x5cf4f8);_0x5c04b5=_0x3a7db0['concat'](_0x3ae5e1,_0x25267d,_0x4a2bdb);}return _0x5c04b5;}}class E extends _0x38ad7c{constructor(_0x4f2ee6,_0x1575dd){super(_0x4f2ee6),this['textPartView']=this['_createTextPartView'](_0x4f2ee6,_0x1575dd),void 0x0!==_0x1575dd['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x1575dd['isIconColorInherited']),this['set']({'icon':_0x1575dd['icon']||_0x11289c,'withText':!0x0,'label':_0x1575dd['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x53a14b,_0x4c0fff){const _0x169554=new _0x5846f6(_0x53a14b);return _0x169554['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x4c0fff['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x4c0fff['description']}]}]:[this['labelView']]}),_0x169554;}}class j extends _0x377714{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6909){super(_0x1d6909),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x475e9e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5df5b7;for(const _0x17c31d in _0x475e9e){const _0xee3205=_0x17c31d,_0x7693fc=_0x475e9e[_0xee3205];if('slashCommandLicenseKeyValid'==_0x7693fc||'slashCommandLicenseKeyInvalid'==_0x7693fc||'slashCommandLicenseKeyExpired'==_0x7693fc||'slashCommandLicenseKeyDomainLimit'==_0x7693fc||'slashCommandLicenseKeyNotAllowed'==_0x7693fc||'slashCommandLicenseKeyEvaluationLimit'==_0x7693fc||'slashCommandLicenseKeyUsageLimit'==_0x7693fc){delete _0x475e9e[_0xee3205],_0x5df5b7=_0x7693fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x5df5b7&&_0x475e9e['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x5df5b7&&_0x475e9e['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x5df5b7&&_0x475e9e['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3da8b3=this['editor'],_0xfbece7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x51d532=_0x3da8b3['config']['get']('mention.feeds');_0x51d532['push']({'marker':'/','feed':_0x2a330e=>_0xfbece7['getMatchingCommands'](_0x2a330e),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3da8b3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3da8b3['config']['set']('mention.feeds',_0x51d532);}['_overrideMentionExecuteListener'](){const _0x4f968f=this['editor'];_0x4f968f['commands']['get']('mention')['on']('execute',(_0x584aec,_0xa87e67)=>{const _0xc2f725=_0xa87e67[0x0],_0x70c9db=_0x4f968f['model'];'/'===_0xc2f725['marker']&&_0x70c9db['change'](_0x43dc74=>{_0x43dc74['remove'](_0xc2f725['range']),_0xc2f725['mention']['execute'](),_0x584aec['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x3a8979){const _0x400a28=this['editor']['locale'],_0x4c033f=new E(_0x400a28,_0x3a8979);return _0x4c033f['render'](),_0x4c033f['element'];}}class _ extends _0x377714{static get['requires'](){return[_0x50c706,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 _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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.4",
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.3",
25
- "@ckeditor/ckeditor5-heading": "48.1.0-alpha.3",
26
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
27
- "@ckeditor/ckeditor5-mention": "48.1.0-alpha.3",
28
- "@ckeditor/ckeditor5-style": "48.1.0-alpha.3",
29
- "@ckeditor/ckeditor5-template": "48.1.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
31
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3"
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
25
+ "@ckeditor/ckeditor5-heading": "48.1.0-alpha.4",
26
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
27
+ "@ckeditor/ckeditor5-mention": "48.1.0-alpha.4",
28
+ "@ckeditor/ckeditor5-style": "48.1.0-alpha.4",
29
+ "@ckeditor/ckeditor5-template": "48.1.0-alpha.4",
30
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
31
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4"
32
32
  },
33
33
  "files": [
34
34
  "dist",