@ckeditor/ckeditor5-slash-command 48.0.0-alpha.3 → 48.0.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.
- 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 _0x2660ee}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2cd2a1}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x4eff31,uid as _0x22367b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x51b94c,IconQuote as _0x5a23b5,IconBulletedList as _0x3a4f47,IconCodeBlock as _0x4a1be3,IconBrowseFiles as _0x5e5851,IconEmoji as _0x310473,IconHeading1 as _0x1eb3fc,IconHeading2 as _0x53a582,IconHeading3 as _0x21687d,IconHeading4 as _0x3e67aa,IconHeading5 as _0x54df1c,IconHeading6 as _0x27cb87,IconHorizontalLine as _0x15c506,IconHtml as _0x397f5c,IconIndent as _0x2e966b,IconTable as _0x1bf1f7,IconTableOfContents as _0x3c8696,IconNumberedList as _0x54f152,IconOutdent as _0x5150c8,IconParagraph as _0x5ba9f8,IconTodoList as _0xcb9937,IconFootnote as _0x3c2b3e,IconPlay as _0x48b1ce}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2e6bdd,View as _0x4187cf}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x2660ee{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x417f8a){super(_0x417f8a),this['_allowedCommands']=null;}['afterInit'](){const _0x123cb5=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x34f152=function(_0x17eac0){let _0x3bbe3d=['heading4','heading5','heading6'];if(_0x17eac0){const _0xfcdc8b=_0x17eac0['map'](_0x3b90e4=>_0x3b90e4['model']);_0x3bbe3d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x390524=>!_0xfcdc8b['includes'](_0x390524));}return _0x3bbe3d;}(this['editor']['config']['get']('heading.options'));let _0x419007=this['getDefaultCommands']()['filter'](_0x498027=>!_0x34f152['includes'](_0x498027['id']))['filter'](_0x590440=>!_0x123cb5['includes'](_0x590440['commandName']));const _0x357734=this['editor']['config']['get']('slashCommand.extraCommands');_0x357734&&_0x357734['length']&&(_0x419007=_0x419007['concat'](_0x357734));const _0x1091b4=this['editor']['config']['get']('template.definitions');_0x1091b4&&_0x1091b4['length']&&(_0x419007=_0x419007['concat'](function(_0x1cd324){return _0x1cd324['map'](_0x34620d=>{const {title:_0x57767b,icon:_0x8674a4,description:_0x3707cd,data:_0x5473e2}=_0x34620d,_0x312a1e={'id':K(_0x57767b,'template'),'commandName':'insertTemplate','execute':_0x5a4167=>{_0x5a4167['execute']('insertTemplate',_0x5473e2);},'description':_0x3707cd,'icon':_0x8674a4,'title':_0x57767b};return _0x8674a4&&(_0x312a1e['isIconColorInherited']=!0x1),_0x312a1e;});}(_0x1091b4)));const _0x34f83c=this['editor']['config']['get']('style.definitions');_0x34f83c&&_0x34f83c['length']&&(_0x419007=_0x419007['concat'](function(_0x20743e){return _0x20743e['map'](_0x4a717a=>({'id':K(_0x4a717a['name'],'style'),'commandName':'style','execute':_0x1e2ee8=>{_0x1e2ee8['execute']('style',{'styleName':_0x4a717a['name']});},'isEnabled':_0x1b7f61=>{const _0xb3a83c=_0x1b7f61['commands']['get']('style');return _0xb3a83c['isEnabled']&&_0xb3a83c['enabledStyles']['includes'](_0x4a717a['name']);},'title':_0x4a717a['name']}));}(_0x34f83c)));const _0x5275af=_0x419007['filter'](_0x5cd673=>!_0x5cd673['commandName']||void 0x0!==this['editor']['commands']['get'](_0x5cd673['commandName'])),_0x4f2e22=[];for(const _0xfae90d of _0x5275af)_0x4f2e22['push']({'id':_0xfae90d['id'],'commandName':_0xfae90d['commandName'],'title':'function'==typeof _0xfae90d['title']?_0xfae90d['title'](this['editor']):_0xfae90d['title'],'description':_0xfae90d['description'],'icon':_0xfae90d['icon'],'isIconColorInherited':_0xfae90d['isIconColorInherited'],'aliases':_0xfae90d['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xfae90d),'execute':()=>this['_proxyExecute'](_0xfae90d)});this['_allowedCommands']=_0x4f2e22['sort'](M),async function(_0x40532d){const _0x535068=_0x4e3b14([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]),_0x455781=0x305505ed,_0x5bc7aa=0x305280fd^_0x455781,_0x1bb607=window[_0x4e3b14([0x44,0x61,0x74,0x65])][_0x4e3b14([0x6e,0x6f,0x77])](),_0x3d3e28=_0x40532d[_0x4e3b14([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12df76=new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525a5d=>{_0x3d3e28[_0x4e3b14([0x6f,0x6e,0x63,0x65])](_0x4e3b14([0x72,0x65,0x61,0x64,0x79]),_0x525a5d);}),_0x17a676={[_0x4e3b14([0x6b,0x74,0x79])]:_0x4e3b14([0x45,0x43]),[_0x4e3b14([0x75,0x73,0x65])]:_0x4e3b14([0x73,0x69,0x67]),[_0x4e3b14([0x63,0x72,0x76])]:_0x4e3b14([0x50,0x2d,0x32,0x35,0x36]),[_0x4e3b14([0x78])]:_0x4e3b14([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]),[_0x4e3b14([0x79])]:_0x4e3b14([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]),[_0x4e3b14([0x61,0x6c,0x67])]:_0x4e3b14([0x45,0x53,0x32,0x35,0x36])},_0x22bc8e=_0x3d3e28[_0x4e3b14([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e3b14([0x67,0x65,0x74])](_0x4e3b14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x102e70(){let _0x53673b,_0x3a0e31=null,_0x376972=null;try{if(_0x22bc8e==_0x4e3b14([0x47,0x50,0x4c]))return _0x4e3b14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53673b=_0x10f26f(),!_0x53673b)return _0x4e3b14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53673b[_0x4e3b14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x376972=_0x605e10(_0x53673b[_0x4e3b14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53673b[_0x4e3b14([0x6a,0x74,0x69])])),await _0x42610c()?_0x431843()?_0x507de4()?_0x4e3b14([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cd4c6()?(_0x53673b[_0x4e3b14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e3b14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a0e31=_0x4b61e4(_0x4e3b14([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5deb58()):_0x4e3b14([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e3b14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e3b14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e3b14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x507de4(){const _0x1c125a=[_0x4e3b14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e3b14([0x74,0x72,0x69,0x61,0x6c])][_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53673b[_0x4e3b14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bb607/0x3e8:0xe10*_0x5bc7aa;return _0x53673b[_0x4e3b14([0x65,0x78,0x70])]<_0x1c125a;}function _0x431843(){const _0x1b9fe4=_0x53673b[_0x4e3b14([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b9fe4&&(!!_0x1b9fe4[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b14([0x2a]))||(!!_0x1b9fe4[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b14([0x53,0x43]))||(!!_0x1b9fe4[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b14([0x50,0x50]))||!(!_0x1b9fe4[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b14([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x15e43a()))));}function _0x2cd4c6(){const _0x3acc86=_0x53673b[_0x4e3b14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3acc86||0x0==_0x3acc86[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d2a76}=new URL(window[_0x4e3b14([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3acc86[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d2a76))return!0x0;const _0x3f172e=_0x3d2a76[_0x4e3b14([0x73,0x70,0x6c,0x69,0x74])](_0x4e3b14([0x2e]));return _0x3acc86[_0x4e3b14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37715b=>_0x37715b[_0x4e3b14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b14([0x2a])))[_0x4e3b14([0x6d,0x61,0x70])](_0x6c1579=>_0x6c1579[_0x4e3b14([0x73,0x70,0x6c,0x69,0x74])](_0x4e3b14([0x2e])))[_0x4e3b14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4859ce=>_0x4859ce[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f172e[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e3b14([0x6d,0x61,0x70])](_0x169228=>Array(_0x3f172e[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x169228[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e3b14([0x66,0x69,0x6c,0x6c])](_0x169228[0x0]===_0x4e3b14([0x2a])?_0x4e3b14([0x2a]):'')[_0x4e3b14([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x169228))[_0x4e3b14([0x73,0x6f,0x6d,0x65])](_0x46f1de=>_0x3f172e[_0x4e3b14([0x65,0x76,0x65,0x72,0x79])]((_0x274c88,_0x2b1ae2)=>_0x46f1de[_0x2b1ae2]===_0x274c88||_0x46f1de[_0x2b1ae2]===_0x4e3b14([0x2a])));}function _0x5deb58(){return _0x3a0e31&&_0x376972?new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x524edf,_0x9dc7dc)=>{_0x3a0e31[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x524edf,_0x9dc7dc),_0x376972[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x39ae7c=>{_0x39ae7c!=_0x4e3b14([0x56,0x61,0x6c,0x69,0x64])&&_0x524edf(_0x39ae7c);},_0x9dc7dc);}):_0x3a0e31||_0x376972||_0x4e3b14([0x56,0x61,0x6c,0x69,0x64]);}}function _0x605e10(_0x172489,_0x3fc237){return new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21ddab=>{if(_0x391a59())return _0x21ddab(_0x4e3b14([0x56,0x61,0x6c,0x69,0x64]));_0x1f4ce3(),_0x3d3e28[_0x4e3b14([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e3b14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fb2ce=!0x1;const _0x3be57d=_0x22367b();function _0x5527b5(_0x139b3e){return!!_0x139b3e&&(typeof _0x139b3e===_0x4e3b14([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x139b3e===_0x4e3b14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x139b3e[_0x4e3b14([0x74,0x68,0x65,0x6e])]===_0x4e3b14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x139b3e[_0x4e3b14([0x63,0x61,0x74,0x63,0x68])]===_0x4e3b14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15ba3d(_0x41a671){_0xaf5d98(_0x41a671)[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x331362=>{if(!_0x331362||_0x331362[_0x4e3b14([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e3b14([0x6f,0x6b]))return _0x4e3b14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf60085(_0x168162(_0x3be57d+_0x3fc237))!=_0x331362[_0x4e3b14([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e3b14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e3b14([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x49e32a=>(_0x14288e(),_0x49e32a),()=>{const _0x5b516e=_0x26afe6();return null==_0x5b516e?(_0x14288e(),_0x4e3b14([0x56,0x61,0x6c,0x69,0x64])):_0x4e3b14(_0x1bb607-_0x5b516e>(0x145981ed^_0x455781)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x21ddab)[_0x4e3b14([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21ddab(_0x4e3b14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4632d0=0x3063eb6d^_0x455781;function _0x14288e(){const _0x3f554f=_0x4e3b14([0x6c,0x6c,0x63,0x74,0x2d])+_0xf60085(_0x168162(_0x172489)),_0xfca0f=_0xb7f4ca(_0xf60085(window[_0x4e3b14([0x4d,0x61,0x74,0x68])][_0x4e3b14([0x63,0x65,0x69,0x6c])](_0x1bb607/_0x4632d0)));window[_0x4e3b14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e3b14([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f554f,_0xfca0f);}function _0x26afe6(){const _0x24a35=_0x4e3b14([0x6c,0x6c,0x63,0x74,0x2d])+_0xf60085(_0x168162(_0x172489)),_0x45d8ec=window[_0x4e3b14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e3b14([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24a35);return _0x45d8ec?window[_0x4e3b14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb7f4ca(_0x45d8ec),0x10)*_0x4632d0:null;}function _0xaf5d98(_0x2fd29e){return new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20e870,_0x2d292f)=>{_0x2fd29e[_0x4e3b14([0x74,0x68,0x65,0x6e])](_0x20e870,_0x2d292f),window[_0x4e3b14([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d292f,0x3054d12d^_0x455781);});}}_0x3d3e28[_0x4e3b14([0x6f,0x6e])](_0x4e3b14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1451a5,_0x604e5b)=>{if(_0x604e5b[0x0]!=_0x172489)return _0x21ddab(_0x4e3b14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x604e5b[0x1]={..._0x604e5b[0x1],[_0x4e3b14([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3be57d};},{[_0x4e3b14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e3b14([0x68,0x69,0x67,0x68])}),_0x3d3e28[_0x4e3b14([0x6f,0x6e])](_0x4e3b14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x471b50=>{_0x5527b5(_0x471b50[_0x4e3b14([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fb2ce=!0x0,_0x15ba3d(_0x471b50[_0x4e3b14([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e3b14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e3b14([0x6c,0x6f,0x77])}),_0x12df76[_0x4e3b14([0x74,0x68,0x65,0x6e])](()=>{_0x1fb2ce||_0x21ddab(_0x4e3b14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x391a59(){return _0x3d3e28[_0x4e3b14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e3b14([0x76,0x69,0x65,0x77])][_0x4e3b14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e3b14([0x61,0x75,0x74,0x6f]);}function _0x1f4ce3(){_0x3d3e28[_0x4e3b14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e3b14([0x76,0x69,0x65,0x77])][_0x4e3b14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e3b14([0x61,0x75,0x74,0x6f]);}}function _0x4b61e4(_0x2a7ec6){const _0x294ab6=[new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f7ad9=>setTimeout(_0x1f7ad9,0x305c3b21^_0x455781)),_0x12df76[_0x4e3b14([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cbe00=>{let _0x5b2244=0x0;_0x3d3e28[_0x4e3b14([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3b14([0x6f,0x6e])](_0x4e3b14([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1672f9,_0x28e9be)=>{_0x28e9be[0x0][_0x4e3b14([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b2244++,_0x5b2244==(0x30550005^_0x455781)&&(_0x5cbe00(),_0x1672f9[_0x4e3b14([0x6f,0x66,0x66])]());});}))];return window[_0x4e3b14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e3b14([0x72,0x61,0x63,0x65])](_0x294ab6)[_0x4e3b14([0x74,0x68,0x65,0x6e])](()=>_0x2a7ec6);}async function _0x188ef3(){await _0x12df76,_0x3d3e28[_0x4e3b14([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3b14([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xedc26c,_0x3d3e28[_0x4e3b14([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3b14([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xedc26c,_0x3d3e28[_0x4e3b14([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e3b14([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15e43a(){return window[_0x4e3b14([0x67,0x6c,0x6f,0x62])]&&window[_0x4e3b14([0x67,0x6c,0x6f,0x62])][_0x4e3b14([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x49aa7d(_0x15dafb){const _0xa40c30=_0x325295();_0x3d3e28[_0xa40c30]=_0x4e3b14([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15dafb,_0x15dafb!=_0x4e3b14([0x56,0x61,0x6c,0x69,0x64])&&_0x188ef3();}function _0x325295(){const _0x484a62=window[_0x4e3b14([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e3b14([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e3b14([0x6e,0x6f,0x77])]())[_0x4e3b14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e3b14([0x2e]),'');let _0x39079e=_0x4e3b14([0x75]);for(let _0x310551=0x0;_0x310551<_0x484a62[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x310551+=0x2){let _0x7271c=window[_0x4e3b14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x484a62[_0x4e3b14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x310551,_0x310551+0x2));_0x7271c>=_0x535068[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7271c-=_0x535068[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39079e+=_0x535068[_0x7271c];}return _0x39079e;}function _0x10f26f(){const _0x44efc4=_0x22bc8e[_0x4e3b14([0x73,0x70,0x6c,0x69,0x74])](_0x4e3b14([0x2e]));if(0x3!=_0x44efc4[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2520b3(_0x44efc4[0x1]);function _0x2520b3(_0x240dd5){const _0x2a2d51=_0x43de9c(_0x240dd5);return _0x2a2d51&&_0x2776fd()?_0x2a2d51:null;function _0x2776fd(){const _0x415368=_0x2a2d51[_0x4e3b14([0x6a,0x74,0x69])],_0x43a898=window[_0x4e3b14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x415368[_0x4e3b14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x415368[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2acbb0={..._0x2a2d51,[_0x4e3b14([0x6a,0x74,0x69])]:_0x415368[_0x4e3b14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x415368[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2acbb0[_0x4e3b14([0x76,0x63])],_0x168162(_0x2acbb0)==_0x43a898;}}}async function _0x42610c(){let _0x3ed795=!0x0;try{const _0x571471=_0x22bc8e[_0x4e3b14([0x73,0x70,0x6c,0x69,0x74])](_0x4e3b14([0x2e])),[_0x4faae8,_0xa9489d,_0x4f5bbd]=_0x571471;return _0x281c73(_0x4faae8),await _0x2d26f7(_0x4faae8,_0xa9489d,_0x4f5bbd),_0x3ed795;}catch{return!0x1;}function _0x281c73(_0x24582c){const _0x2c6675=_0x43de9c(_0x24582c);_0x2c6675&&_0x2c6675[_0x4e3b14([0x61,0x6c,0x67])]==_0x4e3b14([0x45,0x53,0x32,0x35,0x36])||(_0x3ed795=!0x1);}async function _0x2d26f7(_0x10a5eb,_0x508227,_0xb94079){const _0x4ed1ec=window[_0x4e3b14([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e3b14([0x66,0x72,0x6f,0x6d])](_0x1ffbc3(_0xb94079),_0x3b086c=>_0x3b086c[_0x4e3b14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46dde8=new window[(_0x4e3b14([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e3b14([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10a5eb+_0x4e3b14([0x2e])+_0x508227),_0x455b6e=window[_0x4e3b14([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e3b14([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x455b6e)return;const _0x3c78f6=await _0x455b6e[_0x4e3b14([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e3b14([0x6a,0x77,0x6b]),_0x17a676,{[_0x4e3b14([0x6e,0x61,0x6d,0x65])]:_0x4e3b14([0x45,0x43,0x44,0x53,0x41]),[_0x4e3b14([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e3b14([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e3b14([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x455b6e[_0x4e3b14([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e3b14([0x6e,0x61,0x6d,0x65])]:_0x4e3b14([0x45,0x43,0x44,0x53,0x41]),[_0x4e3b14([0x68,0x61,0x73,0x68])]:{[_0x4e3b14([0x6e,0x61,0x6d,0x65])]:_0x4e3b14([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c78f6,_0x4ed1ec,_0x46dde8)||(_0x3ed795=!0x1);}}function _0x43de9c(_0x5d8d82){return _0x5d8d82[_0x4e3b14([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e3b14([0x65,0x79]))?JSON[_0x4e3b14([0x70,0x61,0x72,0x73,0x65])](_0x1ffbc3(_0x5d8d82)):null;}function _0x1ffbc3(_0x48b43e){return window[_0x4e3b14([0x61,0x74,0x6f,0x62])](_0x48b43e[_0x4e3b14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e3b14([0x2b]))[_0x4e3b14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e3b14([0x2f])));}function _0x168162(_0x38cf8c){let _0x163fb6=0x1505;function _0x2646ca(_0x5493f3){for(let _0x1bafb4=0x0;_0x1bafb4<_0x5493f3[_0x4e3b14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bafb4++){const _0x2f7921=_0x5493f3[_0x4e3b14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bafb4);_0x163fb6=(_0x163fb6<<0x5)+_0x163fb6+_0x2f7921,_0x163fb6&=_0x163fb6;}}function _0x250360(_0x32197c){Array[_0x4e3b14([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32197c)?_0x32197c[_0x4e3b14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x250360):_0x32197c&&typeof _0x32197c==_0x4e3b14([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e3b14([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32197c)[_0x4e3b14([0x73,0x6f,0x72,0x74])]()[_0x4e3b14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f6dae,_0x384625])=>{_0x2646ca(_0x3f6dae),_0x250360(_0x384625);}):_0x2646ca(window[_0x4e3b14([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32197c));}return _0x250360(_0x38cf8c),_0x163fb6>>>0x0;}function _0xf60085(_0x43b41e){return _0x43b41e[_0x4e3b14([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e3b14([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e3b14([0x30]));}function _0xb7f4ca(_0x31f7e2){return _0x31f7e2[_0x4e3b14([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e3b14([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e3b14([0x6a,0x6f,0x69,0x6e])]('');}function _0xedc26c(){}function _0x4e3b14(_0xb5ab1e){return _0xb5ab1e['map'](_0x3bd105=>String['fromCharCode'](_0x3bd105))['join']('');}_0x49aa7d(await _0x102e70());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x2c4afc=_0xd2421d=>function(_0x5596f7,_0x575fd1){const t=_0x5596f7['t'],_0x27c5a9=_0x5596f7['t'];switch(_0x575fd1){case'AI\x20Assistant':return _0x27c5a9('AI\x20Assistant');case'Block\x20quote':return _0x27c5a9('Block\x20quote');case'Bulleted\x20list':return _0x27c5a9('Bulleted\x20list');case'Insert\x20code\x20block':return _0x27c5a9('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x27c5a9('Open\x20file\x20manager');case'Insert\x20image':return _0x27c5a9('Insert\x20image');case'Heading\x201':return _0x27c5a9('Heading\x201');case'Heading\x202':return _0x27c5a9('Heading\x202');case'Heading\x203':return _0x27c5a9('Heading\x203');case'Heading\x204':return _0x27c5a9('Heading\x204');case'Heading\x205':return _0x27c5a9('Heading\x205');case'Heading\x206':return _0x27c5a9('Heading\x206');case'Horizontal\x20line':return _0x27c5a9('Horizontal\x20line');case'Insert\x20HTML':return _0x27c5a9('Insert\x20HTML');case'Increase\x20indent':return _0x27c5a9('Increase\x20indent');case'Insert\x20table':return _0x27c5a9('Insert\x20table');case'Table\x20of\x20contents':return _0x27c5a9('Table\x20of\x20contents');case'Numbered\x20list':return _0x27c5a9('Numbered\x20list');case'Decrease\x20indent':return _0x27c5a9('Decrease\x20indent');case'Paragraph':return _0x27c5a9('Paragraph');case'To-do\x20list':return _0x27c5a9('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 _0x575fd1;}}(this['editor']['locale'],_0xd2421d);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x51b94c,'title':_0x2c4afc('AI\x20Assistant'),'description':_0x2c4afc('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x35aaaf=>{setTimeout(()=>_0x35aaaf['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5a23b5,'title':_0x2c4afc('Block\x20quote'),'description':_0x2c4afc('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x3a4f47,'title':_0x2c4afc('Bulleted\x20list'),'description':_0x2c4afc('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x4a1be3,'title':_0x2c4afc('Insert\x20code\x20block'),'description':_0x2c4afc('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5e5851,'title':_0x2c4afc('Open\x20file\x20manager'),'description':_0x2c4afc('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5e5851,'title':_0x2c4afc('Insert\x20image'),'description':_0x2c4afc('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x310473,'title':_0x2c4afc('Emoji'),'description':_0x2c4afc('Insert\x20an\x20emoji'),'execute':_0x3eba7e=>{setTimeout(()=>_0x3eba7e['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1eb3fc,'title':_0x2c4afc('Heading\x201'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x201'),'execute':_0x1e376c=>{_0x1e376c['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x53a582,'title':_0x2c4afc('Heading\x202'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x202'),'execute':_0xc8086f=>{_0xc8086f['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x21687d,'title':_0x2c4afc('Heading\x203'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x203'),'execute':_0x9b0c6e=>{_0x9b0c6e['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3e67aa,'title':_0x2c4afc('Heading\x204'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x204'),'execute':_0x4979ea=>{_0x4979ea['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x54df1c,'title':_0x2c4afc('Heading\x205'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x205'),'execute':_0x5e1387=>{_0x5e1387['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x27cb87,'title':_0x2c4afc('Heading\x206'),'description':_0x2c4afc('Create\x20a\x20heading\x20level\x206'),'execute':_0x45757a=>{_0x45757a['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x15c506,'title':_0x2c4afc('Horizontal\x20line'),'description':_0x2c4afc('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x397f5c,'title':_0x2c4afc('Insert\x20HTML'),'description':_0x2c4afc('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2e966b,'title':_0x2c4afc('Increase\x20indent'),'description':_0x2c4afc('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x2c4afc('Insert\x20Mermaid\x20diagram'),'description':_0x2c4afc('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x1bf1f7,'title':_0x2c4afc('Insert\x20table'),'description':_0x2c4afc('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x3c8696,'title':_0x2c4afc('Table\x20of\x20contents'),'description':_0x2c4afc('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x54f152,'title':_0x2c4afc('Numbered\x20list'),'description':_0x2c4afc('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x5150c8,'title':_0x2c4afc('Decrease\x20indent'),'description':_0x2c4afc('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x5ba9f8,'title':_0x2c4afc('Paragraph'),'description':_0x2c4afc('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xcb9937,'title':_0x2c4afc('To-do\x20list'),'description':_0x2c4afc('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x3c2b3e,'title':_0x2c4afc('Footnote'),'description':_0x2c4afc('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x2c0740){return _0x2c0740['isEnabled']?_0x2c0740['isEnabled'](this['editor']):!_0x2c0740['commandName']||this['editor']['commands']['get'](_0x2c0740['commandName'])['isEnabled'];}['_proxyExecute'](_0x56c0ed){if(_0x56c0ed['execute'])_0x56c0ed['execute'](this['editor']);else{if(!_0x56c0ed['commandName'])throw new _0x4eff31('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x56c0ed});this['editor']['execute'](_0x56c0ed['commandName']);}}}function M(_0x249482,_0x56f7c8){return _0x249482['title']<_0x56f7c8['title']?-0x1:_0x249482['title']>_0x56f7c8['title']?0x1:0x0;}function K(_0x2a41e1,_0x330b28){return _0x330b28+'-'+_0x2a41e1['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x2660ee{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2b60f3){const _0x1ccfc2=_0x2b60f3&&_0x2b60f3['toLowerCase']();let _0x17d5f7=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x17d5f7=_0x17d5f7['filter'](_0x5b238c=>_0x5b238c['isEnabled']()),_0x1ccfc2){const _0x8ad950=[],_0x1911c8=[],_0x3a77f0=[],_0x573cc4=[];for(const _0x4be194 of _0x17d5f7)_0x4be194['id']['toLowerCase']()['includes'](_0x1ccfc2)?_0x8ad950['push'](_0x4be194):_0x4be194['title']['toLowerCase']()['includes'](_0x1ccfc2)?_0x1911c8['push'](_0x4be194):_0x4be194['aliases']&&_0x4be194['aliases']['some'](_0x28c338=>_0x28c338['toLowerCase']()['includes'](_0x1ccfc2))?_0x3a77f0['push'](_0x4be194):_0x4be194['description']&&_0x4be194['description']['toLowerCase']()['includes'](_0x1ccfc2)&&_0x573cc4['push'](_0x4be194);_0x17d5f7=_0x8ad950['concat'](_0x1911c8,_0x3a77f0,_0x573cc4);}return _0x17d5f7;}}class E extends _0x2e6bdd{constructor(_0x299ddb,_0x3f597b){super(_0x299ddb),this['textPartView']=this['_createTextPartView'](_0x299ddb,_0x3f597b),void 0x0!==_0x3f597b['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x3f597b['isIconColorInherited']),this['set']({'icon':_0x3f597b['icon']||_0x48b1ce,'withText':!0x0,'label':_0x3f597b['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x4b10b,_0x38520c){const _0x216b4b=new _0x4187cf(_0x4b10b);return _0x216b4b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x38520c['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x38520c['description']}]}]:[this['labelView']]}),_0x216b4b;}}class j extends _0x2660ee{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47f6f0){super(_0x47f6f0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb267f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5670cb;for(const _0x306635 in _0xb267f3){const _0x61e825=_0x306635,_0x585a5f=_0xb267f3[_0x61e825];if('slashCommandLicenseKeyValid'==_0x585a5f||'slashCommandLicenseKeyInvalid'==_0x585a5f||'slashCommandLicenseKeyExpired'==_0x585a5f||'slashCommandLicenseKeyDomainLimit'==_0x585a5f||'slashCommandLicenseKeyNotAllowed'==_0x585a5f||'slashCommandLicenseKeyEvaluationLimit'==_0x585a5f||'slashCommandLicenseKeyUsageLimit'==_0x585a5f){delete _0xb267f3[_0x61e825],_0x5670cb=_0x585a5f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x5670cb&&_0xb267f3['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x5670cb&&_0xb267f3['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x5670cb&&_0xb267f3['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x5670cb&&_0xb267f3['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x5670cb&&_0xb267f3['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x5670cb&&_0xb267f3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x1606b1=this['editor'],_0x365601=this['editor']['plugins']['get']('SlashCommandEditing'),_0x24cf7a=_0x1606b1['config']['get']('mention.feeds');_0x24cf7a['push']({'marker':'/','feed':_0x3b4317=>_0x365601['getMatchingCommands'](_0x3b4317),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1606b1['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1606b1['config']['set']('mention.feeds',_0x24cf7a);}['_overrideMentionExecuteListener'](){const _0xb296fe=this['editor'];_0xb296fe['commands']['get']('mention')['on']('execute',(_0x159663,_0x2d3f80)=>{const _0x4e4914=_0x2d3f80[0x0],_0x4d96f0=_0xb296fe['model'];'/'===_0x4e4914['marker']&&_0x4d96f0['change'](_0x44904e=>{_0x44904e['remove'](_0x4e4914['range']),_0x4e4914['mention']['execute'](),_0x159663['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0xac1913){const _0x5086e5=this['editor']['locale'],_0x1c8431=new E(_0x5086e5,_0xac1913);return _0x1c8431['render'](),_0x1c8431['element'];}}class _ extends _0x2660ee{static get['requires'](){return[_0x2cd2a1,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 _0x454657}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x5856a8}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x402f96,uid as _0x331ec3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5291cf,IconQuote as _0x23b7ae,IconBulletedList as _0xf093aa,IconCodeBlock as _0x1fb015,IconBrowseFiles as _0x215d7a,IconEmoji as _0x5f235c,IconHeading1 as _0xa85510,IconHeading2 as _0x429a45,IconHeading3 as _0x2866b5,IconHeading4 as _0x50e234,IconHeading5 as _0x3ae237,IconHeading6 as _0x4a3c66,IconHorizontalLine as _0x8ea12c,IconHtml as _0x3fd541,IconIndent as _0x3550fd,IconTable as _0x47ddea,IconTableOfContents as _0xb27f4b,IconNumberedList as _0x5401bf,IconOutdent as _0x378bf8,IconParagraph as _0x23f661,IconTodoList as _0xb3b3bb,IconFootnote as _0xdce603,IconPlay as _0x3e49bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d81be,View as _0x31b384}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x454657{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56f5f0){super(_0x56f5f0),this['_allowedCommands']=null;}['afterInit'](){const _0xd5a74d=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x337508=function(_0x22af21){let _0x22caea=['heading4','heading5','heading6'];if(_0x22af21){const _0x4df037=_0x22af21['map'](_0x127e77=>_0x127e77['model']);_0x22caea=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x5c05c1=>!_0x4df037['includes'](_0x5c05c1));}return _0x22caea;}(this['editor']['config']['get']('heading.options'));let _0x56b81=this['getDefaultCommands']()['filter'](_0x291bf6=>!_0x337508['includes'](_0x291bf6['id']))['filter'](_0x2cc223=>!_0xd5a74d['includes'](_0x2cc223['commandName']));const _0x32b6f1=this['editor']['config']['get']('slashCommand.extraCommands');_0x32b6f1&&_0x32b6f1['length']&&(_0x56b81=_0x56b81['concat'](_0x32b6f1));const _0x4876ab=this['editor']['config']['get']('template.definitions');_0x4876ab&&_0x4876ab['length']&&(_0x56b81=_0x56b81['concat'](function(_0x81bee8){return _0x81bee8['map'](_0x3cfc14=>{const {title:_0x88726b,icon:_0x53d068,description:_0x1dd07b,data:_0x87719d}=_0x3cfc14,_0x321a2b={'id':K(_0x88726b,'template'),'commandName':'insertTemplate','execute':_0x5397c4=>{_0x5397c4['execute']('insertTemplate',_0x87719d);},'description':_0x1dd07b,'icon':_0x53d068,'title':_0x88726b};return _0x53d068&&(_0x321a2b['isIconColorInherited']=!0x1),_0x321a2b;});}(_0x4876ab)));const _0x3870e7=this['editor']['config']['get']('style.definitions');_0x3870e7&&_0x3870e7['length']&&(_0x56b81=_0x56b81['concat'](function(_0xb72333){return _0xb72333['map'](_0x245777=>({'id':K(_0x245777['name'],'style'),'commandName':'style','execute':_0x481b91=>{_0x481b91['execute']('style',{'styleName':_0x245777['name']});},'isEnabled':_0x4ea4d7=>{const _0x533701=_0x4ea4d7['commands']['get']('style');return _0x533701['isEnabled']&&_0x533701['enabledStyles']['includes'](_0x245777['name']);},'title':_0x245777['name']}));}(_0x3870e7)));const _0x52bf9e=_0x56b81['filter'](_0x1fe0f1=>!_0x1fe0f1['commandName']||void 0x0!==this['editor']['commands']['get'](_0x1fe0f1['commandName'])),_0x4ab92e=[];for(const _0x282bf2 of _0x52bf9e)_0x4ab92e['push']({'id':_0x282bf2['id'],'commandName':_0x282bf2['commandName'],'title':'function'==typeof _0x282bf2['title']?_0x282bf2['title'](this['editor']):_0x282bf2['title'],'description':_0x282bf2['description'],'icon':_0x282bf2['icon'],'isIconColorInherited':_0x282bf2['isIconColorInherited'],'aliases':_0x282bf2['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x282bf2),'execute':()=>this['_proxyExecute'](_0x282bf2)});this['_allowedCommands']=_0x4ab92e['sort'](M),async function(_0x567cfb){const _0x2e28cc=_0x5e365a([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]),_0x5d0972=0x305505ed,_0xba6a36=0x305280c5^_0x5d0972,_0x310541=window[_0x5e365a([0x44,0x61,0x74,0x65])][_0x5e365a([0x6e,0x6f,0x77])](),_0x10c7f9=_0x567cfb[_0x5e365a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c72b5=new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7c8d=>{_0x10c7f9[_0x5e365a([0x6f,0x6e,0x63,0x65])](_0x5e365a([0x72,0x65,0x61,0x64,0x79]),_0x1e7c8d);}),_0x45ec44={[_0x5e365a([0x6b,0x74,0x79])]:_0x5e365a([0x45,0x43]),[_0x5e365a([0x75,0x73,0x65])]:_0x5e365a([0x73,0x69,0x67]),[_0x5e365a([0x63,0x72,0x76])]:_0x5e365a([0x50,0x2d,0x32,0x35,0x36]),[_0x5e365a([0x78])]:_0x5e365a([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]),[_0x5e365a([0x79])]:_0x5e365a([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]),[_0x5e365a([0x61,0x6c,0x67])]:_0x5e365a([0x45,0x53,0x32,0x35,0x36])},_0x2deb34=_0x10c7f9[_0x5e365a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e365a([0x67,0x65,0x74])](_0x5e365a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55a716(){let _0x133908,_0x10dda1=null,_0x3d9246=null;try{if(_0x2deb34==_0x5e365a([0x47,0x50,0x4c]))return _0x5e365a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x133908=_0x2c8233(),!_0x133908)return _0x5e365a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x133908[_0x5e365a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d9246=_0x3fe5b3(_0x133908[_0x5e365a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x133908[_0x5e365a([0x6a,0x74,0x69])])),await _0x3f576a()?_0x2c3428()?_0x1dbd97()?_0x5e365a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8be358()?(_0x133908[_0x5e365a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e365a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10dda1=_0x2af27b(_0x5e365a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x331b64()):_0x5e365a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e365a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e365a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e365a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dbd97(){const _0x2293a1=[_0x5e365a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e365a([0x74,0x72,0x69,0x61,0x6c])][_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x133908[_0x5e365a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x310541/0x3e8:0xe10*_0xba6a36;return _0x133908[_0x5e365a([0x65,0x78,0x70])]<_0x2293a1;}function _0x2c3428(){const _0x3f4e15=_0x133908[_0x5e365a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f4e15&&(!!_0x3f4e15[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e365a([0x2a]))||(!!_0x3f4e15[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e365a([0x53,0x43]))||(!!_0x3f4e15[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e365a([0x50,0x50]))||!(!_0x3f4e15[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e365a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xc1ceec()))));}function _0x8be358(){const _0xa15668=_0x133908[_0x5e365a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa15668||0x0==_0xa15668[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f54fd}=new URL(window[_0x5e365a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa15668[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f54fd))return!0x0;const _0x217aa1=_0x2f54fd[_0x5e365a([0x73,0x70,0x6c,0x69,0x74])](_0x5e365a([0x2e]));return _0xa15668[_0x5e365a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4281fa=>_0x4281fa[_0x5e365a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e365a([0x2a])))[_0x5e365a([0x6d,0x61,0x70])](_0x8d7cc0=>_0x8d7cc0[_0x5e365a([0x73,0x70,0x6c,0x69,0x74])](_0x5e365a([0x2e])))[_0x5e365a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x159367=>_0x159367[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x217aa1[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e365a([0x6d,0x61,0x70])](_0xb445bd=>Array(_0x217aa1[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb445bd[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e365a([0x66,0x69,0x6c,0x6c])](_0xb445bd[0x0]===_0x5e365a([0x2a])?_0x5e365a([0x2a]):'')[_0x5e365a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb445bd))[_0x5e365a([0x73,0x6f,0x6d,0x65])](_0x2d5929=>_0x217aa1[_0x5e365a([0x65,0x76,0x65,0x72,0x79])]((_0x19dbdf,_0x451b5d)=>_0x2d5929[_0x451b5d]===_0x19dbdf||_0x2d5929[_0x451b5d]===_0x5e365a([0x2a])));}function _0x331b64(){return _0x10dda1&&_0x3d9246?new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cc5a7,_0x39b22c)=>{_0x10dda1[_0x5e365a([0x74,0x68,0x65,0x6e])](_0x5cc5a7,_0x39b22c),_0x3d9246[_0x5e365a([0x74,0x68,0x65,0x6e])](_0xa158e2=>{_0xa158e2!=_0x5e365a([0x56,0x61,0x6c,0x69,0x64])&&_0x5cc5a7(_0xa158e2);},_0x39b22c);}):_0x10dda1||_0x3d9246||_0x5e365a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fe5b3(_0x532f0d,_0x57c9d6){return new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b6f9d=>{if(_0x595e57())return _0x2b6f9d(_0x5e365a([0x56,0x61,0x6c,0x69,0x64]));_0x3b722b(),_0x10c7f9[_0x5e365a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e365a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc60268=!0x1;const _0x2b609b=_0x331ec3();function _0x3fdc97(_0x1e99d3){return!!_0x1e99d3&&(typeof _0x1e99d3===_0x5e365a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e99d3===_0x5e365a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e99d3[_0x5e365a([0x74,0x68,0x65,0x6e])]===_0x5e365a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e99d3[_0x5e365a([0x63,0x61,0x74,0x63,0x68])]===_0x5e365a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54cbd0(_0x2d0099){_0x8a18a1(_0x2d0099)[_0x5e365a([0x74,0x68,0x65,0x6e])](_0x152699=>{if(!_0x152699||_0x152699[_0x5e365a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e365a([0x6f,0x6b]))return _0x5e365a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2334e8(_0x161280(_0x2b609b+_0x57c9d6))!=_0x152699[_0x5e365a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e365a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e365a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e365a([0x74,0x68,0x65,0x6e])](_0x12ddee=>(_0x161397(),_0x12ddee),()=>{const _0x53d924=_0x33e435();return null==_0x53d924?(_0x161397(),_0x5e365a([0x56,0x61,0x6c,0x69,0x64])):_0x5e365a(_0x310541-_0x53d924>(0x145981ed^_0x5d0972)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e365a([0x74,0x68,0x65,0x6e])](_0x2b6f9d)[_0x5e365a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b6f9d(_0x5e365a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10799f=0x3063eb6d^_0x5d0972;function _0x161397(){const _0x501d26=_0x5e365a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2334e8(_0x161280(_0x532f0d)),_0x1a7279=_0x30e4f3(_0x2334e8(window[_0x5e365a([0x4d,0x61,0x74,0x68])][_0x5e365a([0x63,0x65,0x69,0x6c])](_0x310541/_0x10799f)));window[_0x5e365a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e365a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x501d26,_0x1a7279);}function _0x33e435(){const _0x42ede8=_0x5e365a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2334e8(_0x161280(_0x532f0d)),_0x2ac22d=window[_0x5e365a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e365a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42ede8);return _0x2ac22d?window[_0x5e365a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e4f3(_0x2ac22d),0x10)*_0x10799f:null;}function _0x8a18a1(_0x5e8278){return new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30da6c,_0x531ff9)=>{_0x5e8278[_0x5e365a([0x74,0x68,0x65,0x6e])](_0x30da6c,_0x531ff9),window[_0x5e365a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x531ff9,0x3054d12d^_0x5d0972);});}}_0x10c7f9[_0x5e365a([0x6f,0x6e])](_0x5e365a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x394127,_0x2e9665)=>{if(_0x2e9665[0x0]!=_0x532f0d)return _0x2b6f9d(_0x5e365a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e9665[0x1]={..._0x2e9665[0x1],[_0x5e365a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b609b};},{[_0x5e365a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e365a([0x68,0x69,0x67,0x68])}),_0x10c7f9[_0x5e365a([0x6f,0x6e])](_0x5e365a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c1ce0=>{_0x3fdc97(_0x4c1ce0[_0x5e365a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc60268=!0x0,_0x54cbd0(_0x4c1ce0[_0x5e365a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e365a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e365a([0x6c,0x6f,0x77])}),_0x2c72b5[_0x5e365a([0x74,0x68,0x65,0x6e])](()=>{_0xc60268||_0x2b6f9d(_0x5e365a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x595e57(){return _0x10c7f9[_0x5e365a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e365a([0x76,0x69,0x65,0x77])][_0x5e365a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e365a([0x61,0x75,0x74,0x6f]);}function _0x3b722b(){_0x10c7f9[_0x5e365a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e365a([0x76,0x69,0x65,0x77])][_0x5e365a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e365a([0x61,0x75,0x74,0x6f]);}}function _0x2af27b(_0x1993f0){const _0x32d72b=[new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbdc8a6=>setTimeout(_0xbdc8a6,0x305c3b21^_0x5d0972)),_0x2c72b5[_0x5e365a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192b7e=>{let _0x44bb97=0x0;_0x10c7f9[_0x5e365a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e365a([0x6f,0x6e])](_0x5e365a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b8a35,_0x1a4cc2)=>{_0x1a4cc2[0x0][_0x5e365a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44bb97++,_0x44bb97==(0x30550005^_0x5d0972)&&(_0x192b7e(),_0x4b8a35[_0x5e365a([0x6f,0x66,0x66])]());});}))];return window[_0x5e365a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e365a([0x72,0x61,0x63,0x65])](_0x32d72b)[_0x5e365a([0x74,0x68,0x65,0x6e])](()=>_0x1993f0);}async function _0x194873(){await _0x2c72b5,_0x10c7f9[_0x5e365a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e365a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4217,_0x10c7f9[_0x5e365a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e365a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4217,_0x10c7f9[_0x5e365a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e365a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc1ceec(){return window[_0x5e365a([0x67,0x6c,0x6f,0x62])]&&window[_0x5e365a([0x67,0x6c,0x6f,0x62])][_0x5e365a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x239350(_0x28c7d6){const _0x34ce06=_0x5a057c();_0x10c7f9[_0x34ce06]=_0x5e365a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28c7d6,_0x28c7d6!=_0x5e365a([0x56,0x61,0x6c,0x69,0x64])&&_0x194873();}function _0x5a057c(){const _0x3d40d6=window[_0x5e365a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e365a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e365a([0x6e,0x6f,0x77])]())[_0x5e365a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e365a([0x2e]),'');let _0x4014fb=_0x5e365a([0x75]);for(let _0x48c971=0x0;_0x48c971<_0x3d40d6[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48c971+=0x2){let _0x350a5c=window[_0x5e365a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d40d6[_0x5e365a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48c971,_0x48c971+0x2));_0x350a5c>=_0x2e28cc[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x350a5c-=_0x2e28cc[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4014fb+=_0x2e28cc[_0x350a5c];}return _0x4014fb;}function _0x2c8233(){const _0x2484e6=_0x2deb34[_0x5e365a([0x73,0x70,0x6c,0x69,0x74])](_0x5e365a([0x2e]));if(0x3!=_0x2484e6[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47b9eb(_0x2484e6[0x1]);function _0x47b9eb(_0x48844c){const _0x1611b2=_0x32f5be(_0x48844c);return _0x1611b2&&_0x30da76()?_0x1611b2:null;function _0x30da76(){const _0x1b41a0=_0x1611b2[_0x5e365a([0x6a,0x74,0x69])],_0x74aec=window[_0x5e365a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b41a0[_0x5e365a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b41a0[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58fb05={..._0x1611b2,[_0x5e365a([0x6a,0x74,0x69])]:_0x1b41a0[_0x5e365a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b41a0[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58fb05[_0x5e365a([0x76,0x63])],_0x161280(_0x58fb05)==_0x74aec;}}}async function _0x3f576a(){let _0x380600=!0x0;try{const _0x272008=_0x2deb34[_0x5e365a([0x73,0x70,0x6c,0x69,0x74])](_0x5e365a([0x2e])),[_0x2bea78,_0x41c5a2,_0x478fe1]=_0x272008;return _0x4b489a(_0x2bea78),await _0x47c3a9(_0x2bea78,_0x41c5a2,_0x478fe1),_0x380600;}catch{return!0x1;}function _0x4b489a(_0x3a4752){const _0x4edd0d=_0x32f5be(_0x3a4752);_0x4edd0d&&_0x4edd0d[_0x5e365a([0x61,0x6c,0x67])]==_0x5e365a([0x45,0x53,0x32,0x35,0x36])||(_0x380600=!0x1);}async function _0x47c3a9(_0x4e247e,_0x43768f,_0x5cfe19){const _0x2879f5=window[_0x5e365a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e365a([0x66,0x72,0x6f,0x6d])](_0x202145(_0x5cfe19),_0xec34b7=>_0xec34b7[_0x5e365a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31e501=new window[(_0x5e365a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e365a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e247e+_0x5e365a([0x2e])+_0x43768f),_0x283ca7=window[_0x5e365a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e365a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x283ca7)return;const _0x193d31=await _0x283ca7[_0x5e365a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e365a([0x6a,0x77,0x6b]),_0x45ec44,{[_0x5e365a([0x6e,0x61,0x6d,0x65])]:_0x5e365a([0x45,0x43,0x44,0x53,0x41]),[_0x5e365a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e365a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e365a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x283ca7[_0x5e365a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e365a([0x6e,0x61,0x6d,0x65])]:_0x5e365a([0x45,0x43,0x44,0x53,0x41]),[_0x5e365a([0x68,0x61,0x73,0x68])]:{[_0x5e365a([0x6e,0x61,0x6d,0x65])]:_0x5e365a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x193d31,_0x2879f5,_0x31e501)||(_0x380600=!0x1);}}function _0x32f5be(_0x2f2187){return _0x2f2187[_0x5e365a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e365a([0x65,0x79]))?JSON[_0x5e365a([0x70,0x61,0x72,0x73,0x65])](_0x202145(_0x2f2187)):null;}function _0x202145(_0x2d3391){return window[_0x5e365a([0x61,0x74,0x6f,0x62])](_0x2d3391[_0x5e365a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e365a([0x2b]))[_0x5e365a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e365a([0x2f])));}function _0x161280(_0x3f46ee){let _0x124b44=0x1505;function _0x427934(_0x12f208){for(let _0x1406fc=0x0;_0x1406fc<_0x12f208[_0x5e365a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1406fc++){const _0x2a8d4d=_0x12f208[_0x5e365a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1406fc);_0x124b44=(_0x124b44<<0x5)+_0x124b44+_0x2a8d4d,_0x124b44&=_0x124b44;}}function _0x18e5a2(_0x10191e){Array[_0x5e365a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10191e)?_0x10191e[_0x5e365a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18e5a2):_0x10191e&&typeof _0x10191e==_0x5e365a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e365a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10191e)[_0x5e365a([0x73,0x6f,0x72,0x74])]()[_0x5e365a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3607c4,_0x343626])=>{_0x427934(_0x3607c4),_0x18e5a2(_0x343626);}):_0x427934(window[_0x5e365a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10191e));}return _0x18e5a2(_0x3f46ee),_0x124b44>>>0x0;}function _0x2334e8(_0x30a599){return _0x30a599[_0x5e365a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e365a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e365a([0x30]));}function _0x30e4f3(_0x2b9a43){return _0x2b9a43[_0x5e365a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e365a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e365a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4217(){}function _0x5e365a(_0xbc7c94){return _0xbc7c94['map'](_0x45718f=>String['fromCharCode'](_0x45718f))['join']('');}_0x239350(await _0x55a716());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x30dcf2=_0x583e9a=>function(_0x30b6cb,_0x144b8c){const t=_0x30b6cb['t'],_0x4d2582=_0x30b6cb['t'];switch(_0x144b8c){case'AI\x20Assistant':return _0x4d2582('AI\x20Assistant');case'Block\x20quote':return _0x4d2582('Block\x20quote');case'Bulleted\x20list':return _0x4d2582('Bulleted\x20list');case'Insert\x20code\x20block':return _0x4d2582('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x4d2582('Open\x20file\x20manager');case'Insert\x20image':return _0x4d2582('Insert\x20image');case'Heading\x201':return _0x4d2582('Heading\x201');case'Heading\x202':return _0x4d2582('Heading\x202');case'Heading\x203':return _0x4d2582('Heading\x203');case'Heading\x204':return _0x4d2582('Heading\x204');case'Heading\x205':return _0x4d2582('Heading\x205');case'Heading\x206':return _0x4d2582('Heading\x206');case'Horizontal\x20line':return _0x4d2582('Horizontal\x20line');case'Insert\x20HTML':return _0x4d2582('Insert\x20HTML');case'Increase\x20indent':return _0x4d2582('Increase\x20indent');case'Insert\x20table':return _0x4d2582('Insert\x20table');case'Table\x20of\x20contents':return _0x4d2582('Table\x20of\x20contents');case'Numbered\x20list':return _0x4d2582('Numbered\x20list');case'Decrease\x20indent':return _0x4d2582('Decrease\x20indent');case'Paragraph':return _0x4d2582('Paragraph');case'To-do\x20list':return _0x4d2582('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 _0x144b8c;}}(this['editor']['locale'],_0x583e9a);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5291cf,'title':_0x30dcf2('AI\x20Assistant'),'description':_0x30dcf2('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4fb818=>{setTimeout(()=>_0x4fb818['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x23b7ae,'title':_0x30dcf2('Block\x20quote'),'description':_0x30dcf2('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xf093aa,'title':_0x30dcf2('Bulleted\x20list'),'description':_0x30dcf2('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1fb015,'title':_0x30dcf2('Insert\x20code\x20block'),'description':_0x30dcf2('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x215d7a,'title':_0x30dcf2('Open\x20file\x20manager'),'description':_0x30dcf2('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x215d7a,'title':_0x30dcf2('Insert\x20image'),'description':_0x30dcf2('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x5f235c,'title':_0x30dcf2('Emoji'),'description':_0x30dcf2('Insert\x20an\x20emoji'),'execute':_0x5accd8=>{setTimeout(()=>_0x5accd8['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0xa85510,'title':_0x30dcf2('Heading\x201'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x201'),'execute':_0x4e72fd=>{_0x4e72fd['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x429a45,'title':_0x30dcf2('Heading\x202'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x202'),'execute':_0x6e32d5=>{_0x6e32d5['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2866b5,'title':_0x30dcf2('Heading\x203'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x203'),'execute':_0x3826fe=>{_0x3826fe['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x50e234,'title':_0x30dcf2('Heading\x204'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x204'),'execute':_0x2ff8f6=>{_0x2ff8f6['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3ae237,'title':_0x30dcf2('Heading\x205'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x205'),'execute':_0x1e41b9=>{_0x1e41b9['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x4a3c66,'title':_0x30dcf2('Heading\x206'),'description':_0x30dcf2('Create\x20a\x20heading\x20level\x206'),'execute':_0x288b4b=>{_0x288b4b['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x8ea12c,'title':_0x30dcf2('Horizontal\x20line'),'description':_0x30dcf2('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3fd541,'title':_0x30dcf2('Insert\x20HTML'),'description':_0x30dcf2('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x3550fd,'title':_0x30dcf2('Increase\x20indent'),'description':_0x30dcf2('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x30dcf2('Insert\x20Mermaid\x20diagram'),'description':_0x30dcf2('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x47ddea,'title':_0x30dcf2('Insert\x20table'),'description':_0x30dcf2('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0xb27f4b,'title':_0x30dcf2('Table\x20of\x20contents'),'description':_0x30dcf2('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x5401bf,'title':_0x30dcf2('Numbered\x20list'),'description':_0x30dcf2('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x378bf8,'title':_0x30dcf2('Decrease\x20indent'),'description':_0x30dcf2('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x23f661,'title':_0x30dcf2('Paragraph'),'description':_0x30dcf2('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xb3b3bb,'title':_0x30dcf2('To-do\x20list'),'description':_0x30dcf2('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0xdce603,'title':_0x30dcf2('Footnote'),'description':_0x30dcf2('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x89b454){return _0x89b454['isEnabled']?_0x89b454['isEnabled'](this['editor']):!_0x89b454['commandName']||this['editor']['commands']['get'](_0x89b454['commandName'])['isEnabled'];}['_proxyExecute'](_0x2c6df0){if(_0x2c6df0['execute'])_0x2c6df0['execute'](this['editor']);else{if(!_0x2c6df0['commandName'])throw new _0x402f96('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2c6df0});this['editor']['execute'](_0x2c6df0['commandName']);}}}function M(_0x19a6fc,_0x77c077){return _0x19a6fc['title']<_0x77c077['title']?-0x1:_0x19a6fc['title']>_0x77c077['title']?0x1:0x0;}function K(_0x561f13,_0x1b64d0){return _0x1b64d0+'-'+_0x561f13['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x454657{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x22e3ca){const _0x1aa666=_0x22e3ca&&_0x22e3ca['toLowerCase']();let _0x38714e=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x38714e=_0x38714e['filter'](_0xb79b93=>_0xb79b93['isEnabled']()),_0x1aa666){const _0x3bbc02=[],_0xd3e81a=[],_0x160367=[],_0x2eeb39=[];for(const _0x557208 of _0x38714e)_0x557208['id']['toLowerCase']()['includes'](_0x1aa666)?_0x3bbc02['push'](_0x557208):_0x557208['title']['toLowerCase']()['includes'](_0x1aa666)?_0xd3e81a['push'](_0x557208):_0x557208['aliases']&&_0x557208['aliases']['some'](_0x4d9870=>_0x4d9870['toLowerCase']()['includes'](_0x1aa666))?_0x160367['push'](_0x557208):_0x557208['description']&&_0x557208['description']['toLowerCase']()['includes'](_0x1aa666)&&_0x2eeb39['push'](_0x557208);_0x38714e=_0x3bbc02['concat'](_0xd3e81a,_0x160367,_0x2eeb39);}return _0x38714e;}}class E extends _0x2d81be{constructor(_0x57a4dd,_0x4e0384){super(_0x57a4dd),this['textPartView']=this['_createTextPartView'](_0x57a4dd,_0x4e0384),void 0x0!==_0x4e0384['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4e0384['isIconColorInherited']),this['set']({'icon':_0x4e0384['icon']||_0x3e49bf,'withText':!0x0,'label':_0x4e0384['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x3de403,_0x5b6d8b){const _0x48ecc9=new _0x31b384(_0x3de403);return _0x48ecc9['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5b6d8b['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5b6d8b['description']}]}]:[this['labelView']]}),_0x48ecc9;}}class j extends _0x454657{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a4f9b){super(_0x5a4f9b),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c9f66=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1dbe46;for(const _0x5a6eb5 in _0x4c9f66){const _0x2ae93b=_0x5a6eb5,_0x3dc8ec=_0x4c9f66[_0x2ae93b];if('slashCommandLicenseKeyValid'==_0x3dc8ec||'slashCommandLicenseKeyInvalid'==_0x3dc8ec||'slashCommandLicenseKeyExpired'==_0x3dc8ec||'slashCommandLicenseKeyDomainLimit'==_0x3dc8ec||'slashCommandLicenseKeyNotAllowed'==_0x3dc8ec||'slashCommandLicenseKeyEvaluationLimit'==_0x3dc8ec||'slashCommandLicenseKeyUsageLimit'==_0x3dc8ec){delete _0x4c9f66[_0x2ae93b],_0x1dbe46=_0x3dc8ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1dbe46&&_0x4c9f66['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x465f33=this['editor'],_0x3fba55=this['editor']['plugins']['get']('SlashCommandEditing'),_0x1580a3=_0x465f33['config']['get']('mention.feeds');_0x1580a3['push']({'marker':'/','feed':_0xa3b9b7=>_0x3fba55['getMatchingCommands'](_0xa3b9b7),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x465f33['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x465f33['config']['set']('mention.feeds',_0x1580a3);}['_overrideMentionExecuteListener'](){const _0x1d987b=this['editor'];_0x1d987b['commands']['get']('mention')['on']('execute',(_0x14ab82,_0x247208)=>{const _0x312b18=_0x247208[0x0],_0x59e964=_0x1d987b['model'];'/'===_0x312b18['marker']&&_0x59e964['change'](_0xb2283c=>{_0xb2283c['remove'](_0x312b18['range']),_0x312b18['mention']['execute'](),_0x14ab82['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x375ee0){const _0x221fff=this['editor']['locale'],_0x130dce=new E(_0x221fff,_0x375ee0);return _0x130dce['render'](),_0x130dce['element'];}}class _ extends _0x454657{static get['requires'](){return[_0x5856a8,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.0.0-alpha.
|
|
3
|
+
"version": "48.0.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.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.4",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.0.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.0.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.0.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.4"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|