@ckeditor/ckeditor5-slash-command 48.8.1-alpha.1 → 48.8.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0xbd09bc}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3047db}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x4c6594,uid as _0x47ef15}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4c6457,IconQuote as _0x5b920c,IconBulletedList as _0x1b5468,IconCodeBlock as _0x36e9b3,IconBrowseFiles as _0x2843cf,IconEmoji as _0x4aca39,IconHeading1 as _0x25f9c8,IconHeading2 as _0x20e148,IconHeading3 as _0x1b9d10,IconHeading4 as _0x500a40,IconHeading5 as _0x5205d3,IconHeading6 as _0x3fe496,IconHorizontalLine as _0x2048fb,IconHtml as _0x355e9e,IconIndent as _0x32badf,IconTable as _0xcda14a,IconTableOfContents as _0x5e38af,IconNumberedList as _0xec6784,IconOutdent as _0x49d997,IconParagraph as _0x409cad,IconTodoList as _0x18d339,IconFootnote as _0x2429e3,IconPlay as _0x20f466}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x516fee,View as _0xbb769b}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0xbd09bc{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56452c){super(_0x56452c),this['_allowedCommands']=null;}['afterInit'](){const _0x56493f=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x7c12d8=function(_0x3624ed){let _0x26c22d=['heading4','heading5','heading6'];if(_0x3624ed){const _0x5804cf=_0x3624ed['map'](_0x40509b=>_0x40509b['model']);_0x26c22d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x28aa1e=>!_0x5804cf['includes'](_0x28aa1e));}return _0x26c22d;}(this['editor']['config']['get']('heading.options'));let _0xf0eb7=this['getDefaultCommands']()['filter'](_0x54324f=>!_0x7c12d8['includes'](_0x54324f['id']))['filter'](_0x31c9bc=>!_0x56493f['includes'](_0x31c9bc['commandName']));const _0x51e9d3=this['editor']['config']['get']('slashCommand.extraCommands');_0x51e9d3&&_0x51e9d3['length']&&(_0xf0eb7=_0xf0eb7['concat'](_0x51e9d3));const _0x4707a4=this['editor']['config']['get']('template.definitions');_0x4707a4&&_0x4707a4['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x3166f4){return _0x3166f4['map'](_0x2d34a5=>{const {title:_0x184ee2,icon:_0x3b4f39,description:_0x5c5840,data:_0x3d45e6}=_0x2d34a5,_0x32c71e={'id':O(_0x184ee2,'template'),'commandName':'insertTemplate','execute':_0x50f4e2=>{_0x50f4e2['execute']('insertTemplate',_0x3d45e6);},'description':_0x5c5840,'icon':_0x3b4f39,'title':_0x184ee2};return _0x3b4f39&&(_0x32c71e['isIconColorInherited']=!0x1),_0x32c71e;});}(_0x4707a4)));const _0x38fbfb=this['editor']['config']['get']('style.definitions');_0x38fbfb&&_0x38fbfb['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x2424ab){return _0x2424ab['map'](_0x456607=>({'id':O(_0x456607['name'],'style'),'commandName':'style','execute':_0x5d4068=>{_0x5d4068['execute']('style',{'styleName':_0x456607['name']});},'isEnabled':_0x31636d=>{const _0x2b54b8=_0x31636d['commands']['get']('style');return _0x2b54b8['isEnabled']&&_0x2b54b8['enabledStyles']['includes'](_0x456607['name']);},'title':_0x456607['name']}));}(_0x38fbfb)));const _0x262ed3=_0xf0eb7['filter'](_0x3cad69=>!_0x3cad69['commandName']||void 0x0!==this['editor']['commands']['get'](_0x3cad69['commandName'])),_0x426c12=[];for(const _0xcd562e of _0x262ed3)_0x426c12['push']({'id':_0xcd562e['id'],'commandName':_0xcd562e['commandName'],'title':'function'==typeof _0xcd562e['title']?_0xcd562e['title'](this['editor']):_0xcd562e['title'],'description':_0xcd562e['description'],'icon':_0xcd562e['icon'],'isIconColorInherited':_0xcd562e['isIconColorInherited'],'aliases':_0xcd562e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xcd562e),'execute':()=>this['_proxyExecute'](_0xcd562e)});this['_allowedCommands']=_0x426c12['sort'](S),async function(_0x102c46){const _0x1398e9=_0x3039c4([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]),_0x30ea8c=0x305505ed,_0x3e254a=0x30528fd5^_0x30ea8c,_0x49ac60=window[_0x3039c4([0x44,0x61,0x74,0x65])][_0x3039c4([0x6e,0x6f,0x77])](),_0x382b64=_0x102c46[_0x3039c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x131286=new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6e2c=>{_0x382b64[_0x3039c4([0x6f,0x6e,0x63,0x65])](_0x3039c4([0x72,0x65,0x61,0x64,0x79]),_0x2a6e2c);}),_0x48f433={[_0x3039c4([0x6b,0x74,0x79])]:_0x3039c4([0x45,0x43]),[_0x3039c4([0x75,0x73,0x65])]:_0x3039c4([0x73,0x69,0x67]),[_0x3039c4([0x63,0x72,0x76])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36]),[_0x3039c4([0x78])]:_0x3039c4([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]),[_0x3039c4([0x79])]:_0x3039c4([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]),[_0x3039c4([0x61,0x6c,0x67])]:_0x3039c4([0x45,0x53,0x32,0x35,0x36])},_0x73bbc6=_0x382b64[_0x3039c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039c4([0x67,0x65,0x74])](_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53f622(){let _0x4d504b,_0x37c90f=null,_0x313632=null;try{if(_0x73bbc6==_0x3039c4([0x47,0x50,0x4c]))return _0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d504b=_0x1b7080(),!_0x4d504b)return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x313632=_0x1c03a6(_0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d504b[_0x3039c4([0x6a,0x74,0x69])])),await _0x183d8c()?_0x2bce98()?_0x51f280()?_0x3039c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x217aed()?(_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c90f=_0x5b4222(_0x3039c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec911()):_0x3039c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51f280(){const _0x4088b6=[_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039c4([0x74,0x72,0x69,0x61,0x6c])][_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49ac60/0x3e8:0xe10*_0x3e254a;return _0x4d504b[_0x3039c4([0x65,0x78,0x70])]<_0x4088b6;}function _0x2bce98(){const _0x46dde4=_0x4d504b[_0x3039c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46dde4&&(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x53,0x43]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x50,0x50]))||!(!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x374450()))));}function _0x217aed(){const _0x2fab6d=_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fab6d||0x0==_0x2fab6d[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa9e8a1}=new URL(window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fab6d[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9e8a1))return!0x0;const _0x3dd2e9=_0xa9e8a1[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));return _0x2fab6d[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x60e52a=>_0x60e52a[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a])))[_0x3039c4([0x6d,0x61,0x70])](_0x55019a=>_0x55019a[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])))[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4da3e1=>_0x4da3e1[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x6d,0x61,0x70])](_0x21b7b2=>Array(_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21b7b2[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x66,0x69,0x6c,0x6c])](_0x21b7b2[0x0]===_0x3039c4([0x2a])?_0x3039c4([0x2a]):'')[_0x3039c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21b7b2))[_0x3039c4([0x73,0x6f,0x6d,0x65])](_0xef85ef=>_0x3dd2e9[_0x3039c4([0x65,0x76,0x65,0x72,0x79])]((_0x5263a3,_0x307bc3)=>_0xef85ef[_0x307bc3]===_0x5263a3||_0xef85ef[_0x307bc3]===_0x3039c4([0x2a])));}function _0x5ec911(){return _0x37c90f&&_0x313632?new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bb4e,_0x12996c)=>{_0x37c90f[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x30bb4e,_0x12996c),_0x313632[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x293ce8=>{_0x293ce8!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x30bb4e(_0x293ce8);},_0x12996c);}):_0x37c90f||_0x313632||_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c03a6(_0x2290ed,_0x288056){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7b3b=>{if(_0x9d0aec())return _0x4d7b3b(_0x3039c4([0x56,0x61,0x6c,0x69,0x64]));_0x44219f(),_0x382b64[_0x3039c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17c4b2=!0x1;const _0x14502a=_0x47ef15();function _0x4c007f(_0x3949ff){return!!_0x3949ff&&(typeof _0x3949ff===_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3949ff===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3949ff[_0x3039c4([0x74,0x68,0x65,0x6e])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3949ff[_0x3039c4([0x63,0x61,0x74,0x63,0x68])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x458a4f(_0x398894){_0x63d7b6(_0x398894)[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x23712d=>{if(!_0x23712d||_0x23712d[_0x3039c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039c4([0x6f,0x6b]))return _0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f102a(_0x62c433(_0x14502a+_0x288056))!=_0x23712d[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3209c4=>(_0x525b1c(),_0x3209c4),()=>{const _0x33bf2d=_0x211322();return null==_0x33bf2d?(_0x525b1c(),_0x3039c4([0x56,0x61,0x6c,0x69,0x64])):_0x3039c4(_0x49ac60-_0x33bf2d>(0x145981ed^_0x30ea8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x4d7b3b)[_0x3039c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ede1c=0x3063eb6d^_0x30ea8c;function _0x525b1c(){const _0x171a7d=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x53f49b=_0x544b51(_0x5f102a(window[_0x3039c4([0x4d,0x61,0x74,0x68])][_0x3039c4([0x63,0x65,0x69,0x6c])](_0x49ac60/_0x5ede1c)));window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171a7d,_0x53f49b);}function _0x211322(){const _0x4ed16e=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x18d3dc=window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ed16e);return _0x18d3dc?window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x544b51(_0x18d3dc),0x10)*_0x5ede1c:null;}function _0x63d7b6(_0x6944a3){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b655e,_0xac5265)=>{_0x6944a3[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3b655e,_0xac5265),window[_0x3039c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xac5265,0x3054d12d^_0x30ea8c);});}}_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a618f,_0x266828)=>{if(_0x266828[0x0]!=_0x2290ed)return _0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x266828[0x1]={..._0x266828[0x1],[_0x3039c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14502a};},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x68,0x69,0x67,0x68])}),_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd36ad7=>{_0x4c007f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17c4b2=!0x0,_0x458a4f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x6c,0x6f,0x77])}),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>{_0x17c4b2||_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9d0aec(){return _0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039c4([0x61,0x75,0x74,0x6f]);}function _0x44219f(){_0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039c4([0x61,0x75,0x74,0x6f]);}}function _0x5b4222(_0xbf85a1){const _0x1334e7=[new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5882d7=>setTimeout(_0x5882d7,0x305c3b21^_0x30ea8c)),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55311d=>{let _0x1bda00=0x0;_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x6f,0x6e])](_0x3039c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eb873,_0x2dc845)=>{_0x2dc845[0x0][_0x3039c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bda00++,_0x1bda00==(0x30550005^_0x30ea8c)&&(_0x55311d(),_0x2eb873[_0x3039c4([0x6f,0x66,0x66])]());});}))];return window[_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039c4([0x72,0x61,0x63,0x65])](_0x1334e7)[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>_0xbf85a1);}async function _0x52dff2(){await _0x131286,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x374450(){return window[_0x3039c4([0x67,0x6c,0x6f,0x62])]&&window[_0x3039c4([0x67,0x6c,0x6f,0x62])][_0x3039c4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2ba5cd(_0x58abe2){const _0x13b136=_0x577509();_0x382b64[_0x13b136]=_0x3039c4([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58abe2,_0x58abe2!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x52dff2();}function _0x577509(){const _0xd9d04a=window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039c4([0x6e,0x6f,0x77])]())[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039c4([0x2e]),'');let _0x44b1a6=_0x3039c4([0x75]);for(let _0x15ed8e=0x0;_0x15ed8e<_0xd9d04a[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ed8e+=0x2){let _0x380e17=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd9d04a[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ed8e,_0x15ed8e+0x2));_0x380e17>=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x380e17-=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44b1a6+=_0x1398e9[_0x380e17];}return _0x44b1a6;}function _0x1b7080(){const _0x36d937=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));if(0x3!=_0x36d937[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cbff0(_0x36d937[0x1]);function _0x2cbff0(_0x5de43c){const _0xaa23d7=_0x1bc6c2(_0x5de43c);return _0xaa23d7&&_0x48c0fd()?_0xaa23d7:null;function _0x48c0fd(){const _0x40424c=_0xaa23d7[_0x3039c4([0x6a,0x74,0x69])],_0x42166b=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42c3f8={..._0xaa23d7,[_0x3039c4([0x6a,0x74,0x69])]:_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42c3f8[_0x3039c4([0x76,0x63])],_0x62c433(_0x42c3f8)==_0x42166b;}}}async function _0x183d8c(){let _0x167983=!0x0;try{const _0x1db9ac=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])),[_0x3a06a9,_0x3fdccf,_0x3438d5]=_0x1db9ac;return _0x311379(_0x3a06a9),await _0x3f34f3(_0x3a06a9,_0x3fdccf,_0x3438d5),_0x167983;}catch{return!0x1;}function _0x311379(_0x556e32){const _0x1b0425=_0x1bc6c2(_0x556e32);_0x1b0425&&_0x1b0425[_0x3039c4([0x61,0x6c,0x67])]==_0x3039c4([0x45,0x53,0x32,0x35,0x36])||(_0x167983=!0x1);}async function _0x3f34f3(_0x282376,_0x334181,_0x264eeb){const _0xe01974=window[_0x3039c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039c4([0x66,0x72,0x6f,0x6d])](_0x5cc16f(_0x264eeb),_0x20442f=>_0x20442f[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x533fcf=new window[(_0x3039c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x282376+_0x3039c4([0x2e])+_0x334181),_0x2c8fba=window[_0x3039c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c8fba)return;const _0x1d4de4=await _0x2c8fba[_0x3039c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039c4([0x6a,0x77,0x6b]),_0x48f433,{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c8fba[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x68,0x61,0x73,0x68])]:{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4de4,_0xe01974,_0x533fcf)||(_0x167983=!0x1);}}function _0x1bc6c2(_0x24b4f3){return _0x24b4f3[_0x3039c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039c4([0x65,0x79]))?JSON[_0x3039c4([0x70,0x61,0x72,0x73,0x65])](_0x5cc16f(_0x24b4f3)):null;}function _0x5cc16f(_0x1180ff){return window[_0x3039c4([0x61,0x74,0x6f,0x62])](_0x1180ff[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039c4([0x2b]))[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039c4([0x2f])));}function _0x62c433(_0x513a97){let _0x122203=0x1505;function _0x46b363(_0xa283ab){for(let _0x5dcdd6=0x0;_0x5dcdd6<_0xa283ab[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcdd6++){const _0x5a6a62=_0xa283ab[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcdd6);_0x122203=(_0x122203<<0x5)+_0x122203+_0x5a6a62,_0x122203&=_0x122203;}}function _0x446055(_0x48ba84){Array[_0x3039c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48ba84)?_0x48ba84[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x446055):_0x48ba84&&typeof _0x48ba84==_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48ba84)[_0x3039c4([0x73,0x6f,0x72,0x74])]()[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c11f9,_0x5f4599])=>{_0x46b363(_0x3c11f9),_0x446055(_0x5f4599);}):_0x46b363(window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48ba84));}return _0x446055(_0x513a97),_0x122203>>>0x0;}function _0x5f102a(_0x342a08){return _0x342a08[_0x3039c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039c4([0x30]));}function _0x544b51(_0x3edba3){return _0x3edba3[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x37d95f(){}function _0x3039c4(_0xfee72e){return _0xfee72e['map'](_0x37e056=>String['fromCharCode'](_0x37e056))['join']('');}_0x2ba5cd(await _0x53f622());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3303a1=_0x2797ec=>function(_0x123206,_0x3903ee){const t=_0x123206['t'],_0x5be62d=_0x123206['t'];switch(_0x3903ee){case'AI\x20Assistant':return _0x5be62d('AI\x20Assistant');case'Block\x20quote':return _0x5be62d('Block\x20quote');case'Bulleted\x20List':return _0x5be62d('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5be62d('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5be62d('Open\x20file\x20manager');case'Insert\x20image':return _0x5be62d('Insert\x20image');case'Heading\x201':return _0x5be62d('Heading\x201');case'Heading\x202':return _0x5be62d('Heading\x202');case'Heading\x203':return _0x5be62d('Heading\x203');case'Heading\x204':return _0x5be62d('Heading\x204');case'Heading\x205':return _0x5be62d('Heading\x205');case'Heading\x206':return _0x5be62d('Heading\x206');case'Horizontal\x20line':return _0x5be62d('Horizontal\x20line');case'Insert\x20HTML':return _0x5be62d('Insert\x20HTML');case'Increase\x20indent':return _0x5be62d('Increase\x20indent');case'Insert\x20table':return _0x5be62d('Insert\x20table');case'Table\x20of\x20contents':return _0x5be62d('Table\x20of\x20contents');case'Numbered\x20List':return _0x5be62d('Numbered\x20List');case'Decrease\x20indent':return _0x5be62d('Decrease\x20indent');case'Paragraph':return _0x5be62d('Paragraph');case'To-do\x20List':return _0x5be62d('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 _0x3903ee;}}(this['editor']['locale'],_0x2797ec);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4c6457,'title':_0x3303a1('AI\x20Assistant'),'description':_0x3303a1('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4b9ba0=>{setTimeout(()=>_0x4b9ba0['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5b920c,'title':_0x3303a1('Block\x20quote'),'description':_0x3303a1('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1b5468,'title':_0x3303a1('Bulleted\x20List'),'description':_0x3303a1('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x36e9b3,'title':_0x3303a1('Insert\x20code\x20block'),'description':_0x3303a1('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2843cf,'title':_0x3303a1('Open\x20file\x20manager'),'description':_0x3303a1('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2843cf,'title':_0x3303a1('Insert\x20image'),'description':_0x3303a1('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x4aca39,'title':_0x3303a1('Emoji'),'description':_0x3303a1('Insert\x20an\x20emoji'),'execute':_0x4024ff=>{setTimeout(()=>_0x4024ff['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x25f9c8,'title':_0x3303a1('Heading\x201'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x201'),'execute':_0x33e4d4=>{_0x33e4d4['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x20e148,'title':_0x3303a1('Heading\x202'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x202'),'execute':_0x5a8471=>{_0x5a8471['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x1b9d10,'title':_0x3303a1('Heading\x203'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x203'),'execute':_0x58ca39=>{_0x58ca39['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x500a40,'title':_0x3303a1('Heading\x204'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x204'),'execute':_0xdf1ccc=>{_0xdf1ccc['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x5205d3,'title':_0x3303a1('Heading\x205'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x205'),'execute':_0x7c9cbf=>{_0x7c9cbf['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3fe496,'title':_0x3303a1('Heading\x206'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x206'),'execute':_0x522d13=>{_0x522d13['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2048fb,'title':_0x3303a1('Horizontal\x20line'),'description':_0x3303a1('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x355e9e,'title':_0x3303a1('Insert\x20HTML'),'description':_0x3303a1('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x32badf,'title':_0x3303a1('Increase\x20indent'),'description':_0x3303a1('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3303a1('Insert\x20Mermaid\x20diagram'),'description':_0x3303a1('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xcda14a,'title':_0x3303a1('Insert\x20table'),'description':_0x3303a1('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x5e38af,'title':_0x3303a1('Table\x20of\x20contents'),'description':_0x3303a1('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0xec6784,'title':_0x3303a1('Numbered\x20List'),'description':_0x3303a1('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x49d997,'title':_0x3303a1('Decrease\x20indent'),'description':_0x3303a1('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x409cad,'title':_0x3303a1('Paragraph'),'description':_0x3303a1('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18d339,'title':_0x3303a1('To-do\x20List'),'description':_0x3303a1('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x2429e3,'title':_0x3303a1('Footnote'),'description':_0x3303a1('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x35f59b){return _0x35f59b['isEnabled']?_0x35f59b['isEnabled'](this['editor']):!_0x35f59b['commandName']||this['editor']['commands']['get'](_0x35f59b['commandName'])['isEnabled'];}['_proxyExecute'](_0x3ec654){if(_0x3ec654['execute'])_0x3ec654['execute'](this['editor']);else{if(!_0x3ec654['commandName'])throw new _0x4c6594('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3ec654});this['editor']['execute'](_0x3ec654['commandName']);}}}function S(_0x457f15,_0x12d93d){return _0x457f15['title']<_0x12d93d['title']?-0x1:_0x457f15['title']>_0x12d93d['title']?0x1:0x0;}function O(_0x1da34d,_0x415d81){return _0x415d81+'-'+_0x1da34d['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0xbd09bc{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2d5633){const _0x584b4e=_0x2d5633&&_0x2d5633['toLowerCase']();let _0xecf43e=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xecf43e=_0xecf43e['filter'](_0x322979=>_0x322979['isEnabled']()),_0x584b4e){const _0x44b16b=[],_0x386190=[],_0x2cdf6a=[],_0x5c633e=[];for(const _0x3447a6 of _0xecf43e)_0x3447a6['id']['toLowerCase']()['includes'](_0x584b4e)?_0x44b16b['push'](_0x3447a6):_0x3447a6['title']['toLowerCase']()['includes'](_0x584b4e)?_0x386190['push'](_0x3447a6):_0x3447a6['aliases']&&_0x3447a6['aliases']['some'](_0x35053a=>_0x35053a['toLowerCase']()['includes'](_0x584b4e))?_0x2cdf6a['push'](_0x3447a6):_0x3447a6['description']&&_0x3447a6['description']['toLowerCase']()['includes'](_0x584b4e)&&_0x5c633e['push'](_0x3447a6);_0xecf43e=_0x44b16b['concat'](_0x386190,_0x2cdf6a,_0x5c633e);}return _0xecf43e;}}class SlashCommandButtonView extends _0x516fee{constructor(_0x3fc3a0,_0x82833f){super(_0x3fc3a0),this['textPartView']=this['_createTextPartView'](_0x3fc3a0,_0x82833f),void 0x0!==_0x82833f['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x82833f['isIconColorInherited']),this['set']({'icon':_0x82833f['icon']||_0x20f466,'withText':!0x0,'label':_0x82833f['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x14ca9b,_0x3409d9){const _0x290d6d=new _0xbb769b(_0x14ca9b);return _0x290d6d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x3409d9['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x3409d9['description']}]}]:[this['labelView']]}),_0x290d6d;}}class SlashCommandUI extends _0xbd09bc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196702){super(_0x196702),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x196cdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fdf49;for(const _0xe36a1f in _0x196cdf){const _0x164267=_0xe36a1f,_0x562b0a=_0x196cdf[_0x164267];if('slashCommandLicenseKeyValid'==_0x562b0a||'slashCommandLicenseKeyInvalid'==_0x562b0a||'slashCommandLicenseKeyExpired'==_0x562b0a||'slashCommandLicenseKeyDomainLimit'==_0x562b0a||'slashCommandLicenseKeyNotAllowed'==_0x562b0a||'slashCommandLicenseKeyEvaluationLimit'==_0x562b0a||'slashCommandLicenseKeyUsageLimit'==_0x562b0a){delete _0x196cdf[_0x164267],_0x1fdf49=_0x562b0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1fdf49&&_0x196cdf['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1fdf49&&_0x196cdf['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1fdf49&&_0x196cdf['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4089a3=this['editor'],_0x241878=this['editor']['plugins']['get']('SlashCommandEditing'),_0x195ea9=_0x4089a3['config']['get']('mention.feeds');_0x195ea9['push']({'marker':'/','feed':_0x17453c=>_0x241878['getMatchingCommands'](_0x17453c),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4089a3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4089a3['config']['set']('mention.feeds',_0x195ea9);}['_overrideMentionExecuteListener'](){const _0x2fb3f6=this['editor'];_0x2fb3f6['commands']['get']('mention')['on']('execute',(_0x3c243c,_0x217a9b)=>{const _0x2f644e=_0x217a9b[0x0],_0x1c69b0=_0x2fb3f6['model'];'/'===_0x2f644e['marker']&&_0x1c69b0['change'](_0x48ef97=>{_0x48ef97['remove'](_0x2f644e['range']),_0x2f644e['mention']['execute'](),_0x3c243c['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4c1d51){const _0xef01c1=this['editor']['locale'],_0xcd7e86=new SlashCommandButtonView(_0xef01c1,_0x4c1d51);return _0xcd7e86['render'](),_0xcd7e86['element'];}}class SlashCommand extends _0xbd09bc{static get['requires'](){return[_0x3047db,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
|
|
23
|
+
import{Plugin as _0x1621ab}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x41fe7e}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x455950,uid as _0x2a564b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x180f8b,IconQuote as _0x4c6759,IconBulletedList as _0x3d21fd,IconCodeBlock as _0x12ae03,IconBrowseFiles as _0x2151ab,IconEmoji as _0x37f51c,IconHeading1 as _0x3de418,IconHeading2 as _0x4d1c92,IconHeading3 as _0x151501,IconHeading4 as _0x3615ef,IconHeading5 as _0x3148e1,IconHeading6 as _0x166654,IconHorizontalLine as _0x42bf38,IconHtml as _0x3afdd2,IconIndent as _0x450a82,IconTable as _0xfb6cd9,IconTableOfContents as _0x12f569,IconNumberedList as _0x48798b,IconOutdent as _0x48771c,IconParagraph as _0x53fbe3,IconTodoList as _0x40b581,IconFootnote as _0x5ab836,IconPlay as _0x398f9d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc98a35,View as _0x25b200}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x1621ab{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x247518){super(_0x247518),this['_allowedCommands']=null;}['afterInit'](){const _0x15c25d=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x26598a=function(_0x4d2915){let _0xd17600=['heading4','heading5','heading6'];if(_0x4d2915){const _0x21a136=_0x4d2915['map'](_0x457586=>_0x457586['model']);_0xd17600=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4f026f=>!_0x21a136['includes'](_0x4f026f));}return _0xd17600;}(this['editor']['config']['get']('heading.options'));let _0x10e8ec=this['getDefaultCommands']()['filter'](_0x43facb=>!_0x26598a['includes'](_0x43facb['id']))['filter'](_0x1bf7ae=>!_0x15c25d['includes'](_0x1bf7ae['commandName']));const _0x494cd2=this['editor']['config']['get']('slashCommand.extraCommands');_0x494cd2&&_0x494cd2['length']&&(_0x10e8ec=_0x10e8ec['concat'](_0x494cd2));const _0x4222cb=this['editor']['config']['get']('template.definitions');_0x4222cb&&_0x4222cb['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x2ff126){return _0x2ff126['map'](_0x16792c=>{const {title:_0x17f9d9,icon:_0x3dce64,description:_0x214b60,data:_0x54975f}=_0x16792c,_0x23d888={'id':O(_0x17f9d9,'template'),'commandName':'insertTemplate','execute':_0x560ae7=>{_0x560ae7['execute']('insertTemplate',_0x54975f);},'description':_0x214b60,'icon':_0x3dce64,'title':_0x17f9d9};return _0x3dce64&&(_0x23d888['isIconColorInherited']=!0x1),_0x23d888;});}(_0x4222cb)));const _0x1cb5a9=this['editor']['config']['get']('style.definitions');_0x1cb5a9&&_0x1cb5a9['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x51315d){return _0x51315d['map'](_0x4c5076=>({'id':O(_0x4c5076['name'],'style'),'commandName':'style','execute':_0x4225a8=>{_0x4225a8['execute']('style',{'styleName':_0x4c5076['name']});},'isEnabled':_0x1f5b30=>{const _0x5bbf49=_0x1f5b30['commands']['get']('style');return _0x5bbf49['isEnabled']&&_0x5bbf49['enabledStyles']['includes'](_0x4c5076['name']);},'title':_0x4c5076['name']}));}(_0x1cb5a9)));const _0x13b36f=_0x10e8ec['filter'](_0x1b5e50=>!_0x1b5e50['commandName']||void 0x0!==this['editor']['commands']['get'](_0x1b5e50['commandName'])),_0x3a8346=[];for(const _0x2e2c68 of _0x13b36f)_0x3a8346['push']({'id':_0x2e2c68['id'],'commandName':_0x2e2c68['commandName'],'title':'function'==typeof _0x2e2c68['title']?_0x2e2c68['title'](this['editor']):_0x2e2c68['title'],'description':_0x2e2c68['description'],'icon':_0x2e2c68['icon'],'isIconColorInherited':_0x2e2c68['isIconColorInherited'],'aliases':_0x2e2c68['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2e2c68),'execute':()=>this['_proxyExecute'](_0x2e2c68)});this['_allowedCommands']=_0x3a8346['sort'](S),async function(_0x4b5cc3){const _0x4484b4=_0x52c6aa([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x5e5be9=0x305505ed,_0x5b5ef6=0x30528fbd^_0x5e5be9,_0x13ce30=window[_0x52c6aa([0x44,0x61,0x74,0x65])][_0x52c6aa([0x6e,0x6f,0x77])](),_0x4ba6f3=_0x4b5cc3[_0x52c6aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x911ef1=new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11a007=>{_0x4ba6f3[_0x52c6aa([0x6f,0x6e,0x63,0x65])](_0x52c6aa([0x72,0x65,0x61,0x64,0x79]),_0x11a007);}),_0x4e9cd6={[_0x52c6aa([0x6b,0x74,0x79])]:_0x52c6aa([0x45,0x43]),[_0x52c6aa([0x75,0x73,0x65])]:_0x52c6aa([0x73,0x69,0x67]),[_0x52c6aa([0x63,0x72,0x76])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36]),[_0x52c6aa([0x78])]:_0x52c6aa([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x52c6aa([0x79])]:_0x52c6aa([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x52c6aa([0x61,0x6c,0x67])]:_0x52c6aa([0x45,0x53,0x32,0x35,0x36])},_0xcc759f=_0x4ba6f3[_0x52c6aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52c6aa([0x67,0x65,0x74])](_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25dd13(){let _0x2823a9,_0x14dfb5=null,_0x4b57f8=null;try{if(_0xcc759f==_0x52c6aa([0x47,0x50,0x4c]))return _0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2823a9=_0x21a8be(),!_0x2823a9)return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b57f8=_0x1e7e03(_0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2823a9[_0x52c6aa([0x6a,0x74,0x69])])),await _0x436b4a()?_0x4c1bce()?_0x4fdd88()?_0x52c6aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f326e()?(_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14dfb5=_0x325edb(_0x52c6aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45400e()):_0x52c6aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fdd88(){const _0x182298=[_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52c6aa([0x74,0x72,0x69,0x61,0x6c])][_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13ce30/0x3e8:0xe10*_0x5b5ef6;return _0x2823a9[_0x52c6aa([0x65,0x78,0x70])]<_0x182298;}function _0x4c1bce(){const _0x458871=_0x2823a9[_0x52c6aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x458871&&(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x53,0x43]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x50,0x50]))||!(!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xabf29a()))));}function _0x5f326e(){const _0x579256=_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x579256||0x0==_0x579256[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f2dc9}=new URL(window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x579256[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2dc9))return!0x0;const _0x8314ba=_0x1f2dc9[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));return _0x579256[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3568a7=>_0x3568a7[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a])))[_0x52c6aa([0x6d,0x61,0x70])](_0x4a32f4=>_0x4a32f4[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])))[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x305e59=>_0x305e59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x6d,0x61,0x70])](_0x21c4dd=>Array(_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21c4dd[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x66,0x69,0x6c,0x6c])](_0x21c4dd[0x0]===_0x52c6aa([0x2a])?_0x52c6aa([0x2a]):'')[_0x52c6aa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21c4dd))[_0x52c6aa([0x73,0x6f,0x6d,0x65])](_0x4dc1fd=>_0x8314ba[_0x52c6aa([0x65,0x76,0x65,0x72,0x79])]((_0xf18ca2,_0x2232e1)=>_0x4dc1fd[_0x2232e1]===_0xf18ca2||_0x4dc1fd[_0x2232e1]===_0x52c6aa([0x2a])));}function _0x45400e(){return _0x14dfb5&&_0x4b57f8?new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ec75,_0x42ffc2)=>{_0x14dfb5[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x26ec75,_0x42ffc2),_0x4b57f8[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x5d9d75=>{_0x5d9d75!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x26ec75(_0x5d9d75);},_0x42ffc2);}):_0x14dfb5||_0x4b57f8||_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e7e03(_0x3e9afa,_0x215a08){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6495=>{if(_0x380af5())return _0x2f6495(_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]));_0x3f9b7a(),_0x4ba6f3[_0x52c6aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9985f1=!0x1;const _0x4124a6=_0x2a564b();function _0x9fc7b6(_0x565519){return!!_0x565519&&(typeof _0x565519===_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x565519===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x565519[_0x52c6aa([0x74,0x68,0x65,0x6e])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x565519[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbdaa60(_0x184f72){_0x428414(_0x184f72)[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x565158=>{if(!_0x565158||_0x565158[_0x52c6aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52c6aa([0x6f,0x6b]))return _0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243fb5(_0x49389b(_0x4124a6+_0x215a08))!=_0x565158[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x47fef3=>(_0x358954(),_0x47fef3),()=>{const _0x3177ea=_0x537bae();return null==_0x3177ea?(_0x358954(),_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])):_0x52c6aa(_0x13ce30-_0x3177ea>(0x145981ed^_0x5e5be9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x2f6495)[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20a119=0x3063eb6d^_0x5e5be9;function _0x358954(){const _0x572311=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x2e8a59=_0x57094e(_0x243fb5(window[_0x52c6aa([0x4d,0x61,0x74,0x68])][_0x52c6aa([0x63,0x65,0x69,0x6c])](_0x13ce30/_0x20a119)));window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x572311,_0x2e8a59);}function _0x537bae(){const _0x1b24b9=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x4effc8=window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b24b9);return _0x4effc8?window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57094e(_0x4effc8),0x10)*_0x20a119:null;}function _0x428414(_0x5d907b){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc54078,_0x1b095a)=>{_0x5d907b[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0xc54078,_0x1b095a),window[_0x52c6aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b095a,0x3054d12d^_0x5e5be9);});}}_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55e05c,_0xe57df7)=>{if(_0xe57df7[0x0]!=_0x3e9afa)return _0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe57df7[0x1]={..._0xe57df7[0x1],[_0x52c6aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4124a6};},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x68,0x69,0x67,0x68])}),_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb5a1=>{_0x9fc7b6(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9985f1=!0x0,_0xbdaa60(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x6c,0x6f,0x77])}),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>{_0x9985f1||_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380af5(){return _0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52c6aa([0x61,0x75,0x74,0x6f]);}function _0x3f9b7a(){_0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c6aa([0x61,0x75,0x74,0x6f]);}}function _0x325edb(_0x19fcaa){const _0x170e60=[new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9f08e7=>setTimeout(_0x9f08e7,0x305c3b21^_0x5e5be9)),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8aa0=>{let _0x4c8406=0x0;_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d7f1c,_0x1d2935)=>{_0x1d2935[0x0][_0x52c6aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c8406++,_0x4c8406==(0x30550005^_0x5e5be9)&&(_0x3a8aa0(),_0x3d7f1c[_0x52c6aa([0x6f,0x66,0x66])]());});}))];return window[_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c6aa([0x72,0x61,0x63,0x65])](_0x170e60)[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>_0x19fcaa);}async function _0x16d729(){await _0x911ef1,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xabf29a(){return window[_0x52c6aa([0x67,0x6c,0x6f,0x62])]&&window[_0x52c6aa([0x67,0x6c,0x6f,0x62])][_0x52c6aa([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x11a60d(_0x49d3f6){const _0xec021c=_0x28d408();_0x4ba6f3[_0xec021c]=_0x52c6aa([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49d3f6,_0x49d3f6!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x16d729();}function _0x28d408(){const _0x58eb59=window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52c6aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52c6aa([0x6e,0x6f,0x77])]())[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52c6aa([0x2e]),'');let _0xdcb2a3=_0x52c6aa([0x75]);for(let _0x5ece07=0x0;_0x5ece07<_0x58eb59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ece07+=0x2){let _0x515b84=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58eb59[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ece07,_0x5ece07+0x2));_0x515b84>=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x515b84-=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdcb2a3+=_0x4484b4[_0x515b84];}return _0xdcb2a3;}function _0x21a8be(){const _0x2d3aa4=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));if(0x3!=_0x2d3aa4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x316a28(_0x2d3aa4[0x1]);function _0x316a28(_0x6b82cd){const _0x4b9e83=_0x108496(_0x6b82cd);return _0x4b9e83&&_0x485879()?_0x4b9e83:null;function _0x485879(){const _0x543f63=_0x4b9e83[_0x52c6aa([0x6a,0x74,0x69])],_0x24ba04=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb488f={..._0x4b9e83,[_0x52c6aa([0x6a,0x74,0x69])]:_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb488f[_0x52c6aa([0x76,0x63])],_0x49389b(_0xb488f)==_0x24ba04;}}}async function _0x436b4a(){let _0x2ed707=!0x0;try{const _0x31547c=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])),[_0x1b178a,_0x9888a5,_0x1324c8]=_0x31547c;return _0xc87e52(_0x1b178a),await _0x4fef76(_0x1b178a,_0x9888a5,_0x1324c8),_0x2ed707;}catch{return!0x1;}function _0xc87e52(_0x55935b){const _0x743709=_0x108496(_0x55935b);_0x743709&&_0x743709[_0x52c6aa([0x61,0x6c,0x67])]==_0x52c6aa([0x45,0x53,0x32,0x35,0x36])||(_0x2ed707=!0x1);}async function _0x4fef76(_0x248bc9,_0xbef596,_0xd379e1){const _0x226d6a=window[_0x52c6aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52c6aa([0x66,0x72,0x6f,0x6d])](_0x4cbe9a(_0xd379e1),_0x28fa9a=>_0x28fa9a[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x518b83=new window[(_0x52c6aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52c6aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x248bc9+_0x52c6aa([0x2e])+_0xbef596),_0x16e642=window[_0x52c6aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52c6aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16e642)return;const _0x52af1a=await _0x16e642[_0x52c6aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52c6aa([0x6a,0x77,0x6b]),_0x4e9cd6,{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16e642[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x68,0x61,0x73,0x68])]:{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52af1a,_0x226d6a,_0x518b83)||(_0x2ed707=!0x1);}}function _0x108496(_0x3f3524){return _0x3f3524[_0x52c6aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52c6aa([0x65,0x79]))?JSON[_0x52c6aa([0x70,0x61,0x72,0x73,0x65])](_0x4cbe9a(_0x3f3524)):null;}function _0x4cbe9a(_0x515cdf){return window[_0x52c6aa([0x61,0x74,0x6f,0x62])](_0x515cdf[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52c6aa([0x2b]))[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52c6aa([0x2f])));}function _0x49389b(_0x1f4a8c){let _0x241ac6=0x1505;function _0x10af25(_0x1579a2){for(let _0x511d82=0x0;_0x511d82<_0x1579a2[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511d82++){const _0x1ed6c9=_0x1579a2[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511d82);_0x241ac6=(_0x241ac6<<0x5)+_0x241ac6+_0x1ed6c9,_0x241ac6&=_0x241ac6;}}function _0x859a51(_0x46282b){Array[_0x52c6aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46282b)?_0x46282b[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x859a51):_0x46282b&&typeof _0x46282b==_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52c6aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46282b)[_0x52c6aa([0x73,0x6f,0x72,0x74])]()[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10d338,_0x455757])=>{_0x10af25(_0x10d338),_0x859a51(_0x455757);}):_0x10af25(window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46282b));}return _0x859a51(_0x1f4a8c),_0x241ac6>>>0x0;}function _0x243fb5(_0x567c38){return _0x567c38[_0x52c6aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52c6aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52c6aa([0x30]));}function _0x57094e(_0x3d045a){return _0x3d045a[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52c6aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52c6aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x385b81(){}function _0x52c6aa(_0x5314ef){return _0x5314ef['map'](_0x571db8=>String['fromCharCode'](_0x571db8))['join']('');}_0x11a60d(await _0x25dd13());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x30a132=_0x51928d=>function(_0x53452f,_0x1c94f2){const t=_0x53452f['t'],_0x214cf7=_0x53452f['t'];switch(_0x1c94f2){case'AI\x20Assistant':return _0x214cf7('AI\x20Assistant');case'Block\x20quote':return _0x214cf7('Block\x20quote');case'Bulleted\x20List':return _0x214cf7('Bulleted\x20List');case'Insert\x20code\x20block':return _0x214cf7('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x214cf7('Open\x20file\x20manager');case'Insert\x20image':return _0x214cf7('Insert\x20image');case'Heading\x201':return _0x214cf7('Heading\x201');case'Heading\x202':return _0x214cf7('Heading\x202');case'Heading\x203':return _0x214cf7('Heading\x203');case'Heading\x204':return _0x214cf7('Heading\x204');case'Heading\x205':return _0x214cf7('Heading\x205');case'Heading\x206':return _0x214cf7('Heading\x206');case'Horizontal\x20line':return _0x214cf7('Horizontal\x20line');case'Insert\x20HTML':return _0x214cf7('Insert\x20HTML');case'Increase\x20indent':return _0x214cf7('Increase\x20indent');case'Insert\x20table':return _0x214cf7('Insert\x20table');case'Table\x20of\x20contents':return _0x214cf7('Table\x20of\x20contents');case'Numbered\x20List':return _0x214cf7('Numbered\x20List');case'Decrease\x20indent':return _0x214cf7('Decrease\x20indent');case'Paragraph':return _0x214cf7('Paragraph');case'To-do\x20List':return _0x214cf7('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x1c94f2;}}(this['editor']['locale'],_0x51928d);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x180f8b,'title':_0x30a132('AI\x20Assistant'),'description':_0x30a132('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x58eb05=>{setTimeout(()=>_0x58eb05['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x4c6759,'title':_0x30a132('Block\x20quote'),'description':_0x30a132('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x3d21fd,'title':_0x30a132('Bulleted\x20List'),'description':_0x30a132('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x12ae03,'title':_0x30a132('Insert\x20code\x20block'),'description':_0x30a132('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2151ab,'title':_0x30a132('Open\x20file\x20manager'),'description':_0x30a132('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2151ab,'title':_0x30a132('Insert\x20image'),'description':_0x30a132('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x37f51c,'title':_0x30a132('Emoji'),'description':_0x30a132('Insert\x20an\x20emoji'),'execute':_0x45b2cc=>{setTimeout(()=>_0x45b2cc['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x3de418,'title':_0x30a132('Heading\x201'),'description':_0x30a132('Create\x20a\x20heading\x20level\x201'),'execute':_0x136edc=>{_0x136edc['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x4d1c92,'title':_0x30a132('Heading\x202'),'description':_0x30a132('Create\x20a\x20heading\x20level\x202'),'execute':_0x303947=>{_0x303947['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x151501,'title':_0x30a132('Heading\x203'),'description':_0x30a132('Create\x20a\x20heading\x20level\x203'),'execute':_0x30ab28=>{_0x30ab28['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3615ef,'title':_0x30a132('Heading\x204'),'description':_0x30a132('Create\x20a\x20heading\x20level\x204'),'execute':_0x589ddf=>{_0x589ddf['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3148e1,'title':_0x30a132('Heading\x205'),'description':_0x30a132('Create\x20a\x20heading\x20level\x205'),'execute':_0x27f0a6=>{_0x27f0a6['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x166654,'title':_0x30a132('Heading\x206'),'description':_0x30a132('Create\x20a\x20heading\x20level\x206'),'execute':_0x6f44aa=>{_0x6f44aa['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x42bf38,'title':_0x30a132('Horizontal\x20line'),'description':_0x30a132('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3afdd2,'title':_0x30a132('Insert\x20HTML'),'description':_0x30a132('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x450a82,'title':_0x30a132('Increase\x20indent'),'description':_0x30a132('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x30a132('Insert\x20Mermaid\x20diagram'),'description':_0x30a132('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xfb6cd9,'title':_0x30a132('Insert\x20table'),'description':_0x30a132('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x12f569,'title':_0x30a132('Table\x20of\x20contents'),'description':_0x30a132('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x48798b,'title':_0x30a132('Numbered\x20List'),'description':_0x30a132('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x48771c,'title':_0x30a132('Decrease\x20indent'),'description':_0x30a132('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x53fbe3,'title':_0x30a132('Paragraph'),'description':_0x30a132('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x40b581,'title':_0x30a132('To-do\x20List'),'description':_0x30a132('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x5ab836,'title':_0x30a132('Footnote'),'description':_0x30a132('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x4898f7){return _0x4898f7['isEnabled']?_0x4898f7['isEnabled'](this['editor']):!_0x4898f7['commandName']||this['editor']['commands']['get'](_0x4898f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x5e4e0a){if(_0x5e4e0a['execute'])_0x5e4e0a['execute'](this['editor']);else{if(!_0x5e4e0a['commandName'])throw new _0x455950('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5e4e0a});this['editor']['execute'](_0x5e4e0a['commandName']);}}}function S(_0x4a9e8d,_0x4ba59a){return _0x4a9e8d['title']<_0x4ba59a['title']?-0x1:_0x4a9e8d['title']>_0x4ba59a['title']?0x1:0x0;}function O(_0x419eea,_0x5dcf53){return _0x5dcf53+'-'+_0x419eea['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x1621ab{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x3fd5d8){const _0x7fdc8d=_0x3fd5d8&&_0x3fd5d8['toLowerCase']();let _0x43f322=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x43f322=_0x43f322['filter'](_0x42d899=>_0x42d899['isEnabled']()),_0x7fdc8d){const _0x4c04f8=[],_0x2da0aa=[],_0x549db1=[],_0x52a050=[];for(const _0x2163e2 of _0x43f322)_0x2163e2['id']['toLowerCase']()['includes'](_0x7fdc8d)?_0x4c04f8['push'](_0x2163e2):_0x2163e2['title']['toLowerCase']()['includes'](_0x7fdc8d)?_0x2da0aa['push'](_0x2163e2):_0x2163e2['aliases']&&_0x2163e2['aliases']['some'](_0xdc9eea=>_0xdc9eea['toLowerCase']()['includes'](_0x7fdc8d))?_0x549db1['push'](_0x2163e2):_0x2163e2['description']&&_0x2163e2['description']['toLowerCase']()['includes'](_0x7fdc8d)&&_0x52a050['push'](_0x2163e2);_0x43f322=_0x4c04f8['concat'](_0x2da0aa,_0x549db1,_0x52a050);}return _0x43f322;}}class SlashCommandButtonView extends _0xc98a35{constructor(_0x2e520a,_0x3108bf){super(_0x2e520a),this['textPartView']=this['_createTextPartView'](_0x2e520a,_0x3108bf),void 0x0!==_0x3108bf['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x3108bf['isIconColorInherited']),this['set']({'icon':_0x3108bf['icon']||_0x398f9d,'withText':!0x0,'label':_0x3108bf['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x5579cd,_0x24f532){const _0x27a77b=new _0x25b200(_0x5579cd);return _0x27a77b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24f532['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24f532['description']}]}]:[this['labelView']]}),_0x27a77b;}}class SlashCommandUI extends _0x1621ab{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5eab8d){super(_0x5eab8d),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ab729=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bde3b;for(const _0x491b1d in _0x4ab729){const _0x451933=_0x491b1d,_0x3d1c23=_0x4ab729[_0x451933];if('slashCommandLicenseKeyValid'==_0x3d1c23||'slashCommandLicenseKeyInvalid'==_0x3d1c23||'slashCommandLicenseKeyExpired'==_0x3d1c23||'slashCommandLicenseKeyDomainLimit'==_0x3d1c23||'slashCommandLicenseKeyNotAllowed'==_0x3d1c23||'slashCommandLicenseKeyEvaluationLimit'==_0x3d1c23||'slashCommandLicenseKeyUsageLimit'==_0x3d1c23){delete _0x4ab729[_0x451933],_0x4bde3b=_0x3d1c23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4bde3b&&_0x4ab729['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4bde3b&&_0x4ab729['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4bde3b&&_0x4ab729['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xc0057=this['editor'],_0xf1c05a=this['editor']['plugins']['get']('SlashCommandEditing'),_0x12e19a=_0xc0057['config']['get']('mention.feeds');_0x12e19a['push']({'marker':'/','feed':_0xbc530d=>_0xf1c05a['getMatchingCommands'](_0xbc530d),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xc0057['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xc0057['config']['set']('mention.feeds',_0x12e19a);}['_overrideMentionExecuteListener'](){const _0x1a2b74=this['editor'];_0x1a2b74['commands']['get']('mention')['on']('execute',(_0x1fc3c2,_0x5e5d7b)=>{const _0x514ce1=_0x5e5d7b[0x0],_0x5b3125=_0x1a2b74['model'];'/'===_0x514ce1['marker']&&_0x5b3125['change'](_0x318d41=>{_0x318d41['remove'](_0x514ce1['range']),_0x514ce1['mention']['execute'](),_0x1fc3c2['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x420086){const _0x84a96e=this['editor']['locale'],_0x1e6714=new SlashCommandButtonView(_0x84a96e,_0x420086);return _0x1e6714['render'](),_0x1e6714['element'];}}class SlashCommand extends _0x1621ab{static get['requires'](){return[_0x41fe7e,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.2",
|
|
4
4
|
"description": "Slash command feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.8.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.8.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.8.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.2",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.8.1-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.8.1-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.8.1-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|