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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x40b347}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2791f2}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0xd96575,uid as _0x27acb6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x399f63,IconQuote as _0xa0eff2,IconBulletedList as _0xcea090,IconCodeBlock as _0x45be2f,IconBrowseFiles as _0x12a89a,IconEmoji as _0x383ae8,IconHeading1 as _0x2b7627,IconHeading2 as _0x499723,IconHeading3 as _0x343857,IconHeading4 as _0x4ac54a,IconHeading5 as _0x543c27,IconHeading6 as _0x52197d,IconHorizontalLine as _0x13ddbc,IconHtml as _0x17c88f,IconIndent as _0x4413bd,IconTable as _0x21c784,IconTableOfContents as _0xd2eb06,IconNumberedList as _0x48bf1f,IconOutdent as _0x26d561,IconParagraph as _0x92f39f,IconTodoList as _0x5e1ef1,IconFootnote as _0x3a303a,IconPlay as _0xcdb010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x392890,View as _0x19cbbd}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x40b347{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42de8d){super(_0x42de8d),this['_allowedCommands']=null;}['afterInit'](){const _0x352caa=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x1b6893=function(_0x24ac59){let _0x149985=['heading4','heading5','heading6'];if(_0x24ac59){const _0x19ac79=_0x24ac59['map'](_0x585449=>_0x585449['model']);_0x149985=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x47d5d9=>!_0x19ac79['includes'](_0x47d5d9));}return _0x149985;}(this['editor']['config']['get']('heading.options'));let _0x1978a4=this['getDefaultCommands']()['filter'](_0x16c228=>!_0x1b6893['includes'](_0x16c228['id']))['filter'](_0x218241=>!_0x352caa['includes'](_0x218241['commandName']));const _0x557656=this['editor']['config']['get']('slashCommand.extraCommands');_0x557656&&_0x557656['length']&&(_0x1978a4=_0x1978a4['concat'](_0x557656));const _0x25af90=this['editor']['config']['get']('template.definitions');_0x25af90&&_0x25af90['length']&&(_0x1978a4=_0x1978a4['concat'](function(_0x370db7){return _0x370db7['map'](_0x48c2cd=>{const {title:_0x2ecaae,icon:_0x28f22c,description:_0x5f4312,data:_0x3926a9}=_0x48c2cd,_0x567820={'id':O(_0x2ecaae,'template'),'commandName':'insertTemplate','execute':_0x47d354=>{_0x47d354['execute']('insertTemplate',_0x3926a9);},'description':_0x5f4312,'icon':_0x28f22c,'title':_0x2ecaae};return _0x28f22c&&(_0x567820['isIconColorInherited']=!0x1),_0x567820;});}(_0x25af90)));const _0x37fee2=this['editor']['config']['get']('style.definitions');_0x37fee2&&_0x37fee2['length']&&(_0x1978a4=_0x1978a4['concat'](function(_0x1e2ffd){return _0x1e2ffd['map'](_0x453893=>({'id':O(_0x453893['name'],'style'),'commandName':'style','execute':_0x3d677f=>{_0x3d677f['execute']('style',{'styleName':_0x453893['name']});},'isEnabled':_0x5404bf=>{const _0x15636b=_0x5404bf['commands']['get']('style');return _0x15636b['isEnabled']&&_0x15636b['enabledStyles']['includes'](_0x453893['name']);},'title':_0x453893['name']}));}(_0x37fee2)));const _0x1333d9=_0x1978a4['filter'](_0x53a8e7=>!_0x53a8e7['commandName']||void 0x0!==this['editor']['commands']['get'](_0x53a8e7['commandName'])),_0x1f4bcf=[];for(const _0x2afd7e of _0x1333d9)_0x1f4bcf['push']({'id':_0x2afd7e['id'],'commandName':_0x2afd7e['commandName'],'title':'function'==typeof _0x2afd7e['title']?_0x2afd7e['title'](this['editor']):_0x2afd7e['title'],'description':_0x2afd7e['description'],'icon':_0x2afd7e['icon'],'isIconColorInherited':_0x2afd7e['isIconColorInherited'],'aliases':_0x2afd7e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2afd7e),'execute':()=>this['_proxyExecute'](_0x2afd7e)});this['_allowedCommands']=_0x1f4bcf['sort'](S),async function(_0x214a20){const _0x222ef8=_0x4866f1([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]),_0x37ca02=0x305505ed,_0x20ab94=0x30528e65^_0x37ca02,_0x579abe=window[_0x4866f1([0x44,0x61,0x74,0x65])][_0x4866f1([0x6e,0x6f,0x77])](),_0x491129=_0x214a20[_0x4866f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f450f=new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545efe=>{_0x491129[_0x4866f1([0x6f,0x6e,0x63,0x65])](_0x4866f1([0x72,0x65,0x61,0x64,0x79]),_0x545efe);}),_0x4b3fce={[_0x4866f1([0x6b,0x74,0x79])]:_0x4866f1([0x45,0x43]),[_0x4866f1([0x75,0x73,0x65])]:_0x4866f1([0x73,0x69,0x67]),[_0x4866f1([0x63,0x72,0x76])]:_0x4866f1([0x50,0x2d,0x32,0x35,0x36]),[_0x4866f1([0x78])]:_0x4866f1([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]),[_0x4866f1([0x79])]:_0x4866f1([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]),[_0x4866f1([0x61,0x6c,0x67])]:_0x4866f1([0x45,0x53,0x32,0x35,0x36])},_0x55694f=_0x491129[_0x4866f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4866f1([0x67,0x65,0x74])](_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4501fc(){let _0x145594,_0x308d0c=null,_0x93651a=null;try{if(_0x55694f==_0x4866f1([0x47,0x50,0x4c]))return _0x4866f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x145594=_0x4af51d(),!_0x145594)return _0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x145594[_0x4866f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x93651a=_0xe01ec3(_0x145594[_0x4866f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x145594[_0x4866f1([0x6a,0x74,0x69])])),await _0x2fc4b2()?_0x42ee44()?_0x259bb3()?_0x4866f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd8bea1()?(_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4866f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x308d0c=_0x2e4769(_0x4866f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21d41e()):_0x4866f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4866f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x259bb3(){const _0xfec220=[_0x4866f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4866f1([0x74,0x72,0x69,0x61,0x6c])][_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x579abe/0x3e8:0xe10*_0x20ab94;return _0x145594[_0x4866f1([0x65,0x78,0x70])]<_0xfec220;}function _0x42ee44(){const _0x469ba8=_0x145594[_0x4866f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x469ba8&&(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x2a]))||(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x53,0x43]))||(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x50,0x50]))||!(!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4e4437()))));}function _0xd8bea1(){const _0x1b81e9=_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b81e9||0x0==_0x1b81e9[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232e83}=new URL(window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b81e9[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232e83))return!0x0;const _0x53f263=_0x232e83[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e]));return _0x1b81e9[_0x4866f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921164=>_0x921164[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x2a])))[_0x4866f1([0x6d,0x61,0x70])](_0x359bb1=>_0x359bb1[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e])))[_0x4866f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x882537=>_0x882537[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53f263[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4866f1([0x6d,0x61,0x70])](_0x4fb43d=>Array(_0x53f263[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fb43d[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4866f1([0x66,0x69,0x6c,0x6c])](_0x4fb43d[0x0]===_0x4866f1([0x2a])?_0x4866f1([0x2a]):'')[_0x4866f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fb43d))[_0x4866f1([0x73,0x6f,0x6d,0x65])](_0x817481=>_0x53f263[_0x4866f1([0x65,0x76,0x65,0x72,0x79])]((_0x5335ed,_0x4e02b7)=>_0x817481[_0x4e02b7]===_0x5335ed||_0x817481[_0x4e02b7]===_0x4866f1([0x2a])));}function _0x21d41e(){return _0x308d0c&&_0x93651a?new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3524,_0x54a3c5)=>{_0x308d0c[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x1a3524,_0x54a3c5),_0x93651a[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x3bc490=>{_0x3bc490!=_0x4866f1([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3524(_0x3bc490);},_0x54a3c5);}):_0x308d0c||_0x93651a||_0x4866f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe01ec3(_0x1c8424,_0x20c29d){return new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ae22=>{if(_0x4e6efd())return _0x48ae22(_0x4866f1([0x56,0x61,0x6c,0x69,0x64]));_0x2b8fc1(),_0x491129[_0x4866f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57763b=!0x1;const _0x36101e=_0x27acb6();function _0x3048c0(_0x375666){return!!_0x375666&&(typeof _0x375666===_0x4866f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x375666===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x375666[_0x4866f1([0x74,0x68,0x65,0x6e])]===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x375666[_0x4866f1([0x63,0x61,0x74,0x63,0x68])]===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34a138(_0x4c377d){_0x6ed040(_0x4c377d)[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x4be141=>{if(!_0x4be141||_0x4be141[_0x4866f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4866f1([0x6f,0x6b]))return _0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e2a0b(_0x5af9b6(_0x36101e+_0x20c29d))!=_0x4be141[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4866f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x121022=>(_0x159bbc(),_0x121022),()=>{const _0x3ba041=_0x141826();return null==_0x3ba041?(_0x159bbc(),_0x4866f1([0x56,0x61,0x6c,0x69,0x64])):_0x4866f1(_0x579abe-_0x3ba041>(0x145981ed^_0x37ca02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x48ae22)[_0x4866f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa29d3e=0x3063eb6d^_0x37ca02;function _0x159bbc(){const _0x54386d=_0x4866f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e2a0b(_0x5af9b6(_0x1c8424)),_0x13dc31=_0x38a4b6(_0x4e2a0b(window[_0x4866f1([0x4d,0x61,0x74,0x68])][_0x4866f1([0x63,0x65,0x69,0x6c])](_0x579abe/_0xa29d3e)));window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4866f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54386d,_0x13dc31);}function _0x141826(){const _0x5cd5c5=_0x4866f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e2a0b(_0x5af9b6(_0x1c8424)),_0x112acd=window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4866f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cd5c5);return _0x112acd?window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a4b6(_0x112acd),0x10)*_0xa29d3e:null;}function _0x6ed040(_0x13e877){return new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389cf6,_0x5dbc8a)=>{_0x13e877[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x389cf6,_0x5dbc8a),window[_0x4866f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dbc8a,0x3054d12d^_0x37ca02);});}}_0x491129[_0x4866f1([0x6f,0x6e])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb9e082,_0xea11dc)=>{if(_0xea11dc[0x0]!=_0x1c8424)return _0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xea11dc[0x1]={..._0xea11dc[0x1],[_0x4866f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36101e};},{[_0x4866f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4866f1([0x68,0x69,0x67,0x68])}),_0x491129[_0x4866f1([0x6f,0x6e])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53af64=>{_0x3048c0(_0x53af64[_0x4866f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57763b=!0x0,_0x34a138(_0x53af64[_0x4866f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4866f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4866f1([0x6c,0x6f,0x77])}),_0x3f450f[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>{_0x57763b||_0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e6efd(){return _0x491129[_0x4866f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4866f1([0x76,0x69,0x65,0x77])][_0x4866f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4866f1([0x61,0x75,0x74,0x6f]);}function _0x2b8fc1(){_0x491129[_0x4866f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4866f1([0x76,0x69,0x65,0x77])][_0x4866f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4866f1([0x61,0x75,0x74,0x6f]);}}function _0x2e4769(_0x7aa1d){const _0x5a64f8=[new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2671=>setTimeout(_0x3a2671,0x305c3b21^_0x37ca02)),_0x3f450f[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e83a7=>{let _0x576ac8=0x0;_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x6f,0x6e])](_0x4866f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dd5b6,_0x2a7d0b)=>{_0x2a7d0b[0x0][_0x4866f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x576ac8++,_0x576ac8==(0x30550005^_0x37ca02)&&(_0x5e83a7(),_0x4dd5b6[_0x4866f1([0x6f,0x66,0x66])]());});}))];return window[_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4866f1([0x72,0x61,0x63,0x65])](_0x5a64f8)[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>_0x7aa1d);}async function _0x50db9c(){await _0x3f450f,_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x144668,_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x144668,_0x491129[_0x4866f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4437(){return window[_0x4866f1([0x67,0x6c,0x6f,0x62])]&&window[_0x4866f1([0x67,0x6c,0x6f,0x62])][_0x4866f1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xb38464(_0x5698a5){const _0x434aad=_0x4265df();_0x491129[_0x434aad]=_0x4866f1([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5698a5,_0x5698a5!=_0x4866f1([0x56,0x61,0x6c,0x69,0x64])&&_0x50db9c();}function _0x4265df(){const _0x2a955b=window[_0x4866f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4866f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4866f1([0x6e,0x6f,0x77])]())[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4866f1([0x2e]),'');let _0x4cbc89=_0x4866f1([0x75]);for(let _0x5315a2=0x0;_0x5315a2<_0x2a955b[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5315a2+=0x2){let _0x18aa71=window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a955b[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5315a2,_0x5315a2+0x2));_0x18aa71>=_0x222ef8[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18aa71-=_0x222ef8[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cbc89+=_0x222ef8[_0x18aa71];}return _0x4cbc89;}function _0x4af51d(){const _0x4ae00a=_0x55694f[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e]));if(0x3!=_0x4ae00a[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31c569(_0x4ae00a[0x1]);function _0x31c569(_0x75b77f){const _0x4de012=_0x3bb4fa(_0x75b77f);return _0x4de012&&_0x15c911()?_0x4de012:null;function _0x15c911(){const _0x5f16f2=_0x4de012[_0x4866f1([0x6a,0x74,0x69])],_0x3e978d=window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f16f2[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f16f2[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e2fc2={..._0x4de012,[_0x4866f1([0x6a,0x74,0x69])]:_0x5f16f2[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f16f2[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e2fc2[_0x4866f1([0x76,0x63])],_0x5af9b6(_0x2e2fc2)==_0x3e978d;}}}async function _0x2fc4b2(){let _0x1bd9a8=!0x0;try{const _0x15869a=_0x55694f[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e])),[_0x5b9ead,_0x318de0,_0x1c5fb1]=_0x15869a;return _0x11eaeb(_0x5b9ead),await _0xc37b6c(_0x5b9ead,_0x318de0,_0x1c5fb1),_0x1bd9a8;}catch{return!0x1;}function _0x11eaeb(_0x235fb1){const _0x197491=_0x3bb4fa(_0x235fb1);_0x197491&&_0x197491[_0x4866f1([0x61,0x6c,0x67])]==_0x4866f1([0x45,0x53,0x32,0x35,0x36])||(_0x1bd9a8=!0x1);}async function _0xc37b6c(_0x1bd7c1,_0xe9b445,_0x39d9ff){const _0x53ac2a=window[_0x4866f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4866f1([0x66,0x72,0x6f,0x6d])](_0x55051d(_0x39d9ff),_0x3875d0=>_0x3875d0[_0x4866f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x484778=new window[(_0x4866f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4866f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bd7c1+_0x4866f1([0x2e])+_0xe9b445),_0x5f2894=window[_0x4866f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4866f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f2894)return;const _0x5ece81=await _0x5f2894[_0x4866f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4866f1([0x6a,0x77,0x6b]),_0x4b3fce,{[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x45,0x43,0x44,0x53,0x41]),[_0x4866f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4866f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f2894[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x45,0x43,0x44,0x53,0x41]),[_0x4866f1([0x68,0x61,0x73,0x68])]:{[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ece81,_0x53ac2a,_0x484778)||(_0x1bd9a8=!0x1);}}function _0x3bb4fa(_0xaa3edf){return _0xaa3edf[_0x4866f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4866f1([0x65,0x79]))?JSON[_0x4866f1([0x70,0x61,0x72,0x73,0x65])](_0x55051d(_0xaa3edf)):null;}function _0x55051d(_0x134430){return window[_0x4866f1([0x61,0x74,0x6f,0x62])](_0x134430[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4866f1([0x2b]))[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4866f1([0x2f])));}function _0x5af9b6(_0xa54f2e){let _0x5f0a4d=0x1505;function _0x44ff84(_0x3056a6){for(let _0x4bd828=0x0;_0x4bd828<_0x3056a6[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd828++){const _0xec31fd=_0x3056a6[_0x4866f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd828);_0x5f0a4d=(_0x5f0a4d<<0x5)+_0x5f0a4d+_0xec31fd,_0x5f0a4d&=_0x5f0a4d;}}function _0x1e7e23(_0x5951c0){Array[_0x4866f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5951c0)?_0x5951c0[_0x4866f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e7e23):_0x5951c0&&typeof _0x5951c0==_0x4866f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4866f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5951c0)[_0x4866f1([0x73,0x6f,0x72,0x74])]()[_0x4866f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x363cbc,_0x14be59])=>{_0x44ff84(_0x363cbc),_0x1e7e23(_0x14be59);}):_0x44ff84(window[_0x4866f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5951c0));}return _0x1e7e23(_0xa54f2e),_0x5f0a4d>>>0x0;}function _0x4e2a0b(_0x5c69a9){return _0x5c69a9[_0x4866f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4866f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4866f1([0x30]));}function _0x38a4b6(_0x29decf){return _0x29decf[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4866f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4866f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x144668(){}function _0x4866f1(_0x3f923b){return _0x3f923b['map'](_0x502c11=>String['fromCharCode'](_0x502c11))['join']('');}_0xb38464(await _0x4501fc());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x47b737=_0x2551e8=>function(_0x564c98,_0x432a43){const t=_0x564c98['t'],_0x1b2eae=_0x564c98['t'];switch(_0x432a43){case'AI\x20Assistant':return _0x1b2eae('AI\x20Assistant');case'Block\x20quote':return _0x1b2eae('Block\x20quote');case'Bulleted\x20List':return _0x1b2eae('Bulleted\x20List');case'Insert\x20code\x20block':return _0x1b2eae('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x1b2eae('Open\x20file\x20manager');case'Insert\x20image':return _0x1b2eae('Insert\x20image');case'Heading\x201':return _0x1b2eae('Heading\x201');case'Heading\x202':return _0x1b2eae('Heading\x202');case'Heading\x203':return _0x1b2eae('Heading\x203');case'Heading\x204':return _0x1b2eae('Heading\x204');case'Heading\x205':return _0x1b2eae('Heading\x205');case'Heading\x206':return _0x1b2eae('Heading\x206');case'Horizontal\x20line':return _0x1b2eae('Horizontal\x20line');case'Insert\x20HTML':return _0x1b2eae('Insert\x20HTML');case'Increase\x20indent':return _0x1b2eae('Increase\x20indent');case'Insert\x20table':return _0x1b2eae('Insert\x20table');case'Table\x20of\x20contents':return _0x1b2eae('Table\x20of\x20contents');case'Numbered\x20List':return _0x1b2eae('Numbered\x20List');case'Decrease\x20indent':return _0x1b2eae('Decrease\x20indent');case'Paragraph':return _0x1b2eae('Paragraph');case'To-do\x20List':return _0x1b2eae('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 _0x432a43;}}(this['editor']['locale'],_0x2551e8);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x399f63,'title':_0x47b737('AI\x20Assistant'),'description':_0x47b737('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4edfc2=>{setTimeout(()=>_0x4edfc2['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0xa0eff2,'title':_0x47b737('Block\x20quote'),'description':_0x47b737('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xcea090,'title':_0x47b737('Bulleted\x20List'),'description':_0x47b737('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x45be2f,'title':_0x47b737('Insert\x20code\x20block'),'description':_0x47b737('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x12a89a,'title':_0x47b737('Open\x20file\x20manager'),'description':_0x47b737('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x12a89a,'title':_0x47b737('Insert\x20image'),'description':_0x47b737('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x383ae8,'title':_0x47b737('Emoji'),'description':_0x47b737('Insert\x20an\x20emoji'),'execute':_0x18e235=>{setTimeout(()=>_0x18e235['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x2b7627,'title':_0x47b737('Heading\x201'),'description':_0x47b737('Create\x20a\x20heading\x20level\x201'),'execute':_0x575b6b=>{_0x575b6b['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x499723,'title':_0x47b737('Heading\x202'),'description':_0x47b737('Create\x20a\x20heading\x20level\x202'),'execute':_0x18074d=>{_0x18074d['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x343857,'title':_0x47b737('Heading\x203'),'description':_0x47b737('Create\x20a\x20heading\x20level\x203'),'execute':_0xae398=>{_0xae398['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4ac54a,'title':_0x47b737('Heading\x204'),'description':_0x47b737('Create\x20a\x20heading\x20level\x204'),'execute':_0x3f8c5f=>{_0x3f8c5f['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x543c27,'title':_0x47b737('Heading\x205'),'description':_0x47b737('Create\x20a\x20heading\x20level\x205'),'execute':_0x5fca0d=>{_0x5fca0d['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x52197d,'title':_0x47b737('Heading\x206'),'description':_0x47b737('Create\x20a\x20heading\x20level\x206'),'execute':_0x3f5115=>{_0x3f5115['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x13ddbc,'title':_0x47b737('Horizontal\x20line'),'description':_0x47b737('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x17c88f,'title':_0x47b737('Insert\x20HTML'),'description':_0x47b737('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x4413bd,'title':_0x47b737('Increase\x20indent'),'description':_0x47b737('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x47b737('Insert\x20Mermaid\x20diagram'),'description':_0x47b737('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x21c784,'title':_0x47b737('Insert\x20table'),'description':_0x47b737('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0xd2eb06,'title':_0x47b737('Table\x20of\x20contents'),'description':_0x47b737('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x48bf1f,'title':_0x47b737('Numbered\x20List'),'description':_0x47b737('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x26d561,'title':_0x47b737('Decrease\x20indent'),'description':_0x47b737('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x92f39f,'title':_0x47b737('Paragraph'),'description':_0x47b737('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x5e1ef1,'title':_0x47b737('To-do\x20List'),'description':_0x47b737('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x3a303a,'title':_0x47b737('Footnote'),'description':_0x47b737('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x51e882){return _0x51e882['isEnabled']?_0x51e882['isEnabled'](this['editor']):!_0x51e882['commandName']||this['editor']['commands']['get'](_0x51e882['commandName'])['isEnabled'];}['_proxyExecute'](_0x19ad88){if(_0x19ad88['execute'])_0x19ad88['execute'](this['editor']);else{if(!_0x19ad88['commandName'])throw new _0xd96575('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x19ad88});this['editor']['execute'](_0x19ad88['commandName']);}}}function S(_0x5d3cd1,_0xc323a5){return _0x5d3cd1['title']<_0xc323a5['title']?-0x1:_0x5d3cd1['title']>_0xc323a5['title']?0x1:0x0;}function O(_0x11a59b,_0x31ef43){return _0x31ef43+'-'+_0x11a59b['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x40b347{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x100da4){const _0x356e1f=_0x100da4&&_0x100da4['toLowerCase']();let _0x1fe3d8=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1fe3d8=_0x1fe3d8['filter'](_0x272f88=>_0x272f88['isEnabled']()),_0x356e1f){const _0xb2b3f8=[],_0x1321ee=[],_0xdc1f44=[],_0x3e9cbf=[];for(const _0x127756 of _0x1fe3d8)_0x127756['id']['toLowerCase']()['includes'](_0x356e1f)?_0xb2b3f8['push'](_0x127756):_0x127756['title']['toLowerCase']()['includes'](_0x356e1f)?_0x1321ee['push'](_0x127756):_0x127756['aliases']&&_0x127756['aliases']['some'](_0x14ddb1=>_0x14ddb1['toLowerCase']()['includes'](_0x356e1f))?_0xdc1f44['push'](_0x127756):_0x127756['description']&&_0x127756['description']['toLowerCase']()['includes'](_0x356e1f)&&_0x3e9cbf['push'](_0x127756);_0x1fe3d8=_0xb2b3f8['concat'](_0x1321ee,_0xdc1f44,_0x3e9cbf);}return _0x1fe3d8;}}class SlashCommandButtonView extends _0x392890{constructor(_0xc97d5d,_0x4092f1){super(_0xc97d5d),this['textPartView']=this['_createTextPartView'](_0xc97d5d,_0x4092f1),void 0x0!==_0x4092f1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4092f1['isIconColorInherited']),this['set']({'icon':_0x4092f1['icon']||_0xcdb010,'withText':!0x0,'label':_0x4092f1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x3f5caf,_0x35b218){const _0x3fec86=new _0x19cbbd(_0x3f5caf);return _0x3fec86['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x35b218['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x35b218['description']}]}]:[this['labelView']]}),_0x3fec86;}}class SlashCommandUI extends _0x40b347{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50bd32){super(_0x50bd32),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28d39b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x486fb3;for(const _0x5bae08 in _0x28d39b){const _0x28dccd=_0x5bae08,_0x1bb231=_0x28d39b[_0x28dccd];if('slashCommandLicenseKeyValid'==_0x1bb231||'slashCommandLicenseKeyInvalid'==_0x1bb231||'slashCommandLicenseKeyExpired'==_0x1bb231||'slashCommandLicenseKeyDomainLimit'==_0x1bb231||'slashCommandLicenseKeyNotAllowed'==_0x1bb231||'slashCommandLicenseKeyEvaluationLimit'==_0x1bb231||'slashCommandLicenseKeyUsageLimit'==_0x1bb231){delete _0x28d39b[_0x28dccd],_0x486fb3=_0x1bb231,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x486fb3&&_0x28d39b['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x486fb3&&_0x28d39b['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x486fb3&&_0x28d39b['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x2dfd4d=this['editor'],_0x1daa96=this['editor']['plugins']['get']('SlashCommandEditing'),_0x7fb221=_0x2dfd4d['config']['get']('mention.feeds');_0x7fb221['push']({'marker':'/','feed':_0x218e06=>_0x1daa96['getMatchingCommands'](_0x218e06),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x2dfd4d['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x2dfd4d['config']['set']('mention.feeds',_0x7fb221);}['_overrideMentionExecuteListener'](){const _0x5ca986=this['editor'];_0x5ca986['commands']['get']('mention')['on']('execute',(_0x4ab3e5,_0x1d5d88)=>{const _0x5db0dc=_0x1d5d88[0x0],_0x1b9035=_0x5ca986['model'];'/'===_0x5db0dc['marker']&&_0x1b9035['change'](_0x1b1602=>{_0x1b1602['remove'](_0x5db0dc['range']),_0x5db0dc['mention']['execute'](),_0x4ab3e5['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x90c62f){const _0x1df2c1=this['editor']['locale'],_0x2b61c0=new SlashCommandButtonView(_0x1df2c1,_0x90c62f);return _0x2b61c0['render'](),_0x2b61c0['element'];}}class SlashCommand extends _0x40b347{static get['requires'](){return[_0x2791f2,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 _0x5a2707}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2c271a}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x52e1ad,uid as _0x124a38}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0xff8171,IconQuote as _0x31c48a,IconBulletedList as _0x463b54,IconCodeBlock as _0x669f61,IconBrowseFiles as _0x28f0b0,IconEmoji as _0x38c46e,IconHeading1 as _0x595360,IconHeading2 as _0x2b4137,IconHeading3 as _0x55449f,IconHeading4 as _0x2abb01,IconHeading5 as _0x433d2f,IconHeading6 as _0x5bc8a7,IconHorizontalLine as _0x329a00,IconHtml as _0x55d51d,IconIndent as _0x5a837b,IconTable as _0x5e239a,IconTableOfContents as _0x124161,IconNumberedList as _0x22600b,IconOutdent as _0x32c3db,IconParagraph as _0x19bb4c,IconTodoList as _0x11a0d3,IconFootnote as _0x7b34a1,IconPlay as _0x120702}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3634b9,View as _0x39ac7a}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x5a2707{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31ce14){super(_0x31ce14),this['_allowedCommands']=null;}['afterInit'](){const _0x39f13c=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x3d791d=function(_0x48f103){let _0x9d2ece=['heading4','heading5','heading6'];if(_0x48f103){const _0x25ca90=_0x48f103['map'](_0x38bab6=>_0x38bab6['model']);_0x9d2ece=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x100009=>!_0x25ca90['includes'](_0x100009));}return _0x9d2ece;}(this['editor']['config']['get']('heading.options'));let _0x406019=this['getDefaultCommands']()['filter'](_0x28a0d1=>!_0x3d791d['includes'](_0x28a0d1['id']))['filter'](_0x1bbaed=>!_0x39f13c['includes'](_0x1bbaed['commandName']));const _0x4d56bc=this['editor']['config']['get']('slashCommand.extraCommands');_0x4d56bc&&_0x4d56bc['length']&&(_0x406019=_0x406019['concat'](_0x4d56bc));const _0x440996=this['editor']['config']['get']('template.definitions');_0x440996&&_0x440996['length']&&(_0x406019=_0x406019['concat'](function(_0x49f5a9){return _0x49f5a9['map'](_0x430ec1=>{const {title:_0x579824,icon:_0x486cce,description:_0x2e9e89,data:_0x129b2c}=_0x430ec1,_0x3b1b3c={'id':O(_0x579824,'template'),'commandName':'insertTemplate','execute':_0x37daac=>{_0x37daac['execute']('insertTemplate',_0x129b2c);},'description':_0x2e9e89,'icon':_0x486cce,'title':_0x579824};return _0x486cce&&(_0x3b1b3c['isIconColorInherited']=!0x1),_0x3b1b3c;});}(_0x440996)));const _0x46c220=this['editor']['config']['get']('style.definitions');_0x46c220&&_0x46c220['length']&&(_0x406019=_0x406019['concat'](function(_0x2d6af6){return _0x2d6af6['map'](_0x2cc320=>({'id':O(_0x2cc320['name'],'style'),'commandName':'style','execute':_0x1e0c87=>{_0x1e0c87['execute']('style',{'styleName':_0x2cc320['name']});},'isEnabled':_0x4b78f0=>{const _0xdef294=_0x4b78f0['commands']['get']('style');return _0xdef294['isEnabled']&&_0xdef294['enabledStyles']['includes'](_0x2cc320['name']);},'title':_0x2cc320['name']}));}(_0x46c220)));const _0x22b9a3=_0x406019['filter'](_0x123224=>!_0x123224['commandName']||void 0x0!==this['editor']['commands']['get'](_0x123224['commandName'])),_0x204cb3=[];for(const _0x4f1457 of _0x22b9a3)_0x204cb3['push']({'id':_0x4f1457['id'],'commandName':_0x4f1457['commandName'],'title':'function'==typeof _0x4f1457['title']?_0x4f1457['title'](this['editor']):_0x4f1457['title'],'description':_0x4f1457['description'],'icon':_0x4f1457['icon'],'isIconColorInherited':_0x4f1457['isIconColorInherited'],'aliases':_0x4f1457['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4f1457),'execute':()=>this['_proxyExecute'](_0x4f1457)});this['_allowedCommands']=_0x204cb3['sort'](S),async function(_0x49b626){const _0x1f4481=_0x49c57e([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]),_0x15c47b=0x305505ed,_0x4cee94=0x30528e4d^_0x15c47b,_0x5c90ac=window[_0x49c57e([0x44,0x61,0x74,0x65])][_0x49c57e([0x6e,0x6f,0x77])](),_0x3660a7=_0x49b626[_0x49c57e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x563a4d=new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4555d9=>{_0x3660a7[_0x49c57e([0x6f,0x6e,0x63,0x65])](_0x49c57e([0x72,0x65,0x61,0x64,0x79]),_0x4555d9);}),_0x568f6f={[_0x49c57e([0x6b,0x74,0x79])]:_0x49c57e([0x45,0x43]),[_0x49c57e([0x75,0x73,0x65])]:_0x49c57e([0x73,0x69,0x67]),[_0x49c57e([0x63,0x72,0x76])]:_0x49c57e([0x50,0x2d,0x32,0x35,0x36]),[_0x49c57e([0x78])]:_0x49c57e([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]),[_0x49c57e([0x79])]:_0x49c57e([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]),[_0x49c57e([0x61,0x6c,0x67])]:_0x49c57e([0x45,0x53,0x32,0x35,0x36])},_0x5702f2=_0x3660a7[_0x49c57e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49c57e([0x67,0x65,0x74])](_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d0dde(){let _0x5a288b,_0x36607b=null,_0x5380f5=null;try{if(_0x5702f2==_0x49c57e([0x47,0x50,0x4c]))return _0x49c57e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a288b=_0x24e928(),!_0x5a288b)return _0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a288b[_0x49c57e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5380f5=_0x57b4a0(_0x5a288b[_0x49c57e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a288b[_0x49c57e([0x6a,0x74,0x69])])),await _0xde5c16()?_0x1666b6()?_0x9aa84c()?_0x49c57e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43ca1e()?(_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49c57e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36607b=_0x147c06(_0x49c57e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29dde2()):_0x49c57e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49c57e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9aa84c(){const _0x39685b=[_0x49c57e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49c57e([0x74,0x72,0x69,0x61,0x6c])][_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c90ac/0x3e8:0xe10*_0x4cee94;return _0x5a288b[_0x49c57e([0x65,0x78,0x70])]<_0x39685b;}function _0x1666b6(){const _0x5251dc=_0x5a288b[_0x49c57e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5251dc&&(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x2a]))||(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x53,0x43]))||(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x50,0x50]))||!(!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5abe8d()))));}function _0x43ca1e(){const _0x3a2767=_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a2767||0x0==_0x3a2767[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5542c1}=new URL(window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a2767[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5542c1))return!0x0;const _0x524016=_0x5542c1[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e]));return _0x3a2767[_0x49c57e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40b02d=>_0x40b02d[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x2a])))[_0x49c57e([0x6d,0x61,0x70])](_0x4c900e=>_0x4c900e[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e])))[_0x49c57e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24e551=>_0x24e551[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x524016[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c57e([0x6d,0x61,0x70])](_0x52e8bf=>Array(_0x524016[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52e8bf[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c57e([0x66,0x69,0x6c,0x6c])](_0x52e8bf[0x0]===_0x49c57e([0x2a])?_0x49c57e([0x2a]):'')[_0x49c57e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52e8bf))[_0x49c57e([0x73,0x6f,0x6d,0x65])](_0x2853c2=>_0x524016[_0x49c57e([0x65,0x76,0x65,0x72,0x79])]((_0x58807c,_0x242634)=>_0x2853c2[_0x242634]===_0x58807c||_0x2853c2[_0x242634]===_0x49c57e([0x2a])));}function _0x29dde2(){return _0x36607b&&_0x5380f5?new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35db50,_0x382a1b)=>{_0x36607b[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x35db50,_0x382a1b),_0x5380f5[_0x49c57e([0x74,0x68,0x65,0x6e])](_0xa3f486=>{_0xa3f486!=_0x49c57e([0x56,0x61,0x6c,0x69,0x64])&&_0x35db50(_0xa3f486);},_0x382a1b);}):_0x36607b||_0x5380f5||_0x49c57e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57b4a0(_0x1f476e,_0x46e274){return new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a533=>{if(_0x4ce257())return _0x52a533(_0x49c57e([0x56,0x61,0x6c,0x69,0x64]));_0x494990(),_0x3660a7[_0x49c57e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x362913=!0x1;const _0x296626=_0x124a38();function _0x35662f(_0x4be98a){return!!_0x4be98a&&(typeof _0x4be98a===_0x49c57e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4be98a===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4be98a[_0x49c57e([0x74,0x68,0x65,0x6e])]===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4be98a[_0x49c57e([0x63,0x61,0x74,0x63,0x68])]===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525ddc(_0x55ba92){_0x2859dd(_0x55ba92)[_0x49c57e([0x74,0x68,0x65,0x6e])](_0xbf181f=>{if(!_0xbf181f||_0xbf181f[_0x49c57e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49c57e([0x6f,0x6b]))return _0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5b00(_0x15cba6(_0x296626+_0x46e274))!=_0xbf181f[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49c57e([0x56,0x61,0x6c,0x69,0x64]);})[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x3ac6c1=>(_0x6a69c1(),_0x3ac6c1),()=>{const _0x2f0cdd=_0x2c9bf3();return null==_0x2f0cdd?(_0x6a69c1(),_0x49c57e([0x56,0x61,0x6c,0x69,0x64])):_0x49c57e(_0x5c90ac-_0x2f0cdd>(0x145981ed^_0x15c47b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x52a533)[_0x49c57e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc5327c=0x3063eb6d^_0x15c47b;function _0x6a69c1(){const _0x5c2d45=_0x49c57e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5b00(_0x15cba6(_0x1f476e)),_0x3ec05c=_0x5b58ea(_0x4b5b00(window[_0x49c57e([0x4d,0x61,0x74,0x68])][_0x49c57e([0x63,0x65,0x69,0x6c])](_0x5c90ac/_0xc5327c)));window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c57e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c2d45,_0x3ec05c);}function _0x2c9bf3(){const _0x345a1b=_0x49c57e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5b00(_0x15cba6(_0x1f476e)),_0x4c3c40=window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c57e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345a1b);return _0x4c3c40?window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b58ea(_0x4c3c40),0x10)*_0xc5327c:null;}function _0x2859dd(_0x4604ff){return new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bc0d5,_0x4f36c1)=>{_0x4604ff[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x1bc0d5,_0x4f36c1),window[_0x49c57e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f36c1,0x3054d12d^_0x15c47b);});}}_0x3660a7[_0x49c57e([0x6f,0x6e])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x145fcb,_0x11b189)=>{if(_0x11b189[0x0]!=_0x1f476e)return _0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11b189[0x1]={..._0x11b189[0x1],[_0x49c57e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x296626};},{[_0x49c57e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c57e([0x68,0x69,0x67,0x68])}),_0x3660a7[_0x49c57e([0x6f,0x6e])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ac151=>{_0x35662f(_0x3ac151[_0x49c57e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x362913=!0x0,_0x525ddc(_0x3ac151[_0x49c57e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49c57e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c57e([0x6c,0x6f,0x77])}),_0x563a4d[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>{_0x362913||_0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ce257(){return _0x3660a7[_0x49c57e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c57e([0x76,0x69,0x65,0x77])][_0x49c57e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49c57e([0x61,0x75,0x74,0x6f]);}function _0x494990(){_0x3660a7[_0x49c57e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c57e([0x76,0x69,0x65,0x77])][_0x49c57e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49c57e([0x61,0x75,0x74,0x6f]);}}function _0x147c06(_0x40eeef){const _0x40b808=[new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417276=>setTimeout(_0x417276,0x305c3b21^_0x15c47b)),_0x563a4d[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63d69c=>{let _0x3c3bed=0x0;_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x6f,0x6e])](_0x49c57e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e771e,_0xb32e1e)=>{_0xb32e1e[0x0][_0x49c57e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c3bed++,_0x3c3bed==(0x30550005^_0x15c47b)&&(_0x63d69c(),_0x1e771e[_0x49c57e([0x6f,0x66,0x66])]());});}))];return window[_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49c57e([0x72,0x61,0x63,0x65])](_0x40b808)[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>_0x40eeef);}async function _0x1c880a(){await _0x563a4d,_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbcc,_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbcc,_0x3660a7[_0x49c57e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5abe8d(){return window[_0x49c57e([0x67,0x6c,0x6f,0x62])]&&window[_0x49c57e([0x67,0x6c,0x6f,0x62])][_0x49c57e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xfd4805(_0xb4325a){const _0x166d53=_0x5ae4b2();_0x3660a7[_0x166d53]=_0x49c57e([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb4325a,_0xb4325a!=_0x49c57e([0x56,0x61,0x6c,0x69,0x64])&&_0x1c880a();}function _0x5ae4b2(){const _0x3024f0=window[_0x49c57e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49c57e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49c57e([0x6e,0x6f,0x77])]())[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49c57e([0x2e]),'');let _0x4633bd=_0x49c57e([0x75]);for(let _0x2da04a=0x0;_0x2da04a<_0x3024f0[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da04a+=0x2){let _0x5cfe81=window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3024f0[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da04a,_0x2da04a+0x2));_0x5cfe81>=_0x1f4481[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cfe81-=_0x1f4481[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4633bd+=_0x1f4481[_0x5cfe81];}return _0x4633bd;}function _0x24e928(){const _0x836e53=_0x5702f2[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e]));if(0x3!=_0x836e53[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x376a77(_0x836e53[0x1]);function _0x376a77(_0x24734b){const _0x40906c=_0x4dee22(_0x24734b);return _0x40906c&&_0x5caa9e()?_0x40906c:null;function _0x5caa9e(){const _0x25f1e3=_0x40906c[_0x49c57e([0x6a,0x74,0x69])],_0x235840=window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f1e3[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25f1e3[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x533d2a={..._0x40906c,[_0x49c57e([0x6a,0x74,0x69])]:_0x25f1e3[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25f1e3[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x533d2a[_0x49c57e([0x76,0x63])],_0x15cba6(_0x533d2a)==_0x235840;}}}async function _0xde5c16(){let _0x5d0e3c=!0x0;try{const _0x4d7e4b=_0x5702f2[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e])),[_0x530d2b,_0x2b005a,_0x45b07c]=_0x4d7e4b;return _0x1ae4ca(_0x530d2b),await _0x3e300c(_0x530d2b,_0x2b005a,_0x45b07c),_0x5d0e3c;}catch{return!0x1;}function _0x1ae4ca(_0x4b2d3e){const _0x4451c8=_0x4dee22(_0x4b2d3e);_0x4451c8&&_0x4451c8[_0x49c57e([0x61,0x6c,0x67])]==_0x49c57e([0x45,0x53,0x32,0x35,0x36])||(_0x5d0e3c=!0x1);}async function _0x3e300c(_0x6450d5,_0x4be810,_0x37e3e0){const _0x5d8c5c=window[_0x49c57e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49c57e([0x66,0x72,0x6f,0x6d])](_0x16be0a(_0x37e3e0),_0x54ab05=>_0x54ab05[_0x49c57e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12247f=new window[(_0x49c57e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49c57e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6450d5+_0x49c57e([0x2e])+_0x4be810),_0x599928=window[_0x49c57e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49c57e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x599928)return;const _0x1a6768=await _0x599928[_0x49c57e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49c57e([0x6a,0x77,0x6b]),_0x568f6f,{[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x45,0x43,0x44,0x53,0x41]),[_0x49c57e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49c57e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x599928[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x45,0x43,0x44,0x53,0x41]),[_0x49c57e([0x68,0x61,0x73,0x68])]:{[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a6768,_0x5d8c5c,_0x12247f)||(_0x5d0e3c=!0x1);}}function _0x4dee22(_0x3f15ca){return _0x3f15ca[_0x49c57e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49c57e([0x65,0x79]))?JSON[_0x49c57e([0x70,0x61,0x72,0x73,0x65])](_0x16be0a(_0x3f15ca)):null;}function _0x16be0a(_0x52aaa5){return window[_0x49c57e([0x61,0x74,0x6f,0x62])](_0x52aaa5[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49c57e([0x2b]))[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49c57e([0x2f])));}function _0x15cba6(_0x2234e6){let _0x2444bf=0x1505;function _0x5c2206(_0x404be5){for(let _0x2b7af2=0x0;_0x2b7af2<_0x404be5[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b7af2++){const _0x1bb5db=_0x404be5[_0x49c57e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b7af2);_0x2444bf=(_0x2444bf<<0x5)+_0x2444bf+_0x1bb5db,_0x2444bf&=_0x2444bf;}}function _0x5d9888(_0x236ea9){Array[_0x49c57e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x236ea9)?_0x236ea9[_0x49c57e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d9888):_0x236ea9&&typeof _0x236ea9==_0x49c57e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49c57e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x236ea9)[_0x49c57e([0x73,0x6f,0x72,0x74])]()[_0x49c57e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40ea66,_0x455b0e])=>{_0x5c2206(_0x40ea66),_0x5d9888(_0x455b0e);}):_0x5c2206(window[_0x49c57e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x236ea9));}return _0x5d9888(_0x2234e6),_0x2444bf>>>0x0;}function _0x4b5b00(_0x53bab7){return _0x53bab7[_0x49c57e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49c57e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49c57e([0x30]));}function _0x5b58ea(_0xb6cc6c){return _0xb6cc6c[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49c57e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49c57e([0x6a,0x6f,0x69,0x6e])]('');}function _0x25dbcc(){}function _0x49c57e(_0x2fac98){return _0x2fac98['map'](_0x4c11dd=>String['fromCharCode'](_0x4c11dd))['join']('');}_0xfd4805(await _0x5d0dde());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x6985c7=_0x52b907=>function(_0x2af190,_0x2527ad){const t=_0x2af190['t'],_0x34ccbc=_0x2af190['t'];switch(_0x2527ad){case'AI\x20Assistant':return _0x34ccbc('AI\x20Assistant');case'Block\x20quote':return _0x34ccbc('Block\x20quote');case'Bulleted\x20List':return _0x34ccbc('Bulleted\x20List');case'Insert\x20code\x20block':return _0x34ccbc('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x34ccbc('Open\x20file\x20manager');case'Insert\x20image':return _0x34ccbc('Insert\x20image');case'Heading\x201':return _0x34ccbc('Heading\x201');case'Heading\x202':return _0x34ccbc('Heading\x202');case'Heading\x203':return _0x34ccbc('Heading\x203');case'Heading\x204':return _0x34ccbc('Heading\x204');case'Heading\x205':return _0x34ccbc('Heading\x205');case'Heading\x206':return _0x34ccbc('Heading\x206');case'Horizontal\x20line':return _0x34ccbc('Horizontal\x20line');case'Insert\x20HTML':return _0x34ccbc('Insert\x20HTML');case'Increase\x20indent':return _0x34ccbc('Increase\x20indent');case'Insert\x20table':return _0x34ccbc('Insert\x20table');case'Table\x20of\x20contents':return _0x34ccbc('Table\x20of\x20contents');case'Numbered\x20List':return _0x34ccbc('Numbered\x20List');case'Decrease\x20indent':return _0x34ccbc('Decrease\x20indent');case'Paragraph':return _0x34ccbc('Paragraph');case'To-do\x20List':return _0x34ccbc('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 _0x2527ad;}}(this['editor']['locale'],_0x52b907);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0xff8171,'title':_0x6985c7('AI\x20Assistant'),'description':_0x6985c7('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4f3d38=>{setTimeout(()=>_0x4f3d38['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x31c48a,'title':_0x6985c7('Block\x20quote'),'description':_0x6985c7('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x463b54,'title':_0x6985c7('Bulleted\x20List'),'description':_0x6985c7('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x669f61,'title':_0x6985c7('Insert\x20code\x20block'),'description':_0x6985c7('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x28f0b0,'title':_0x6985c7('Open\x20file\x20manager'),'description':_0x6985c7('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x28f0b0,'title':_0x6985c7('Insert\x20image'),'description':_0x6985c7('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x38c46e,'title':_0x6985c7('Emoji'),'description':_0x6985c7('Insert\x20an\x20emoji'),'execute':_0x3a6fbd=>{setTimeout(()=>_0x3a6fbd['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x595360,'title':_0x6985c7('Heading\x201'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x201'),'execute':_0x2705c1=>{_0x2705c1['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x2b4137,'title':_0x6985c7('Heading\x202'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x202'),'execute':_0x3f5d0a=>{_0x3f5d0a['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x55449f,'title':_0x6985c7('Heading\x203'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x203'),'execute':_0x174d2c=>{_0x174d2c['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x2abb01,'title':_0x6985c7('Heading\x204'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x204'),'execute':_0x111403=>{_0x111403['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x433d2f,'title':_0x6985c7('Heading\x205'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x205'),'execute':_0x1abf12=>{_0x1abf12['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5bc8a7,'title':_0x6985c7('Heading\x206'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x206'),'execute':_0x579575=>{_0x579575['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x329a00,'title':_0x6985c7('Horizontal\x20line'),'description':_0x6985c7('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x55d51d,'title':_0x6985c7('Insert\x20HTML'),'description':_0x6985c7('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x5a837b,'title':_0x6985c7('Increase\x20indent'),'description':_0x6985c7('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x6985c7('Insert\x20Mermaid\x20diagram'),'description':_0x6985c7('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x5e239a,'title':_0x6985c7('Insert\x20table'),'description':_0x6985c7('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x124161,'title':_0x6985c7('Table\x20of\x20contents'),'description':_0x6985c7('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x22600b,'title':_0x6985c7('Numbered\x20List'),'description':_0x6985c7('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x32c3db,'title':_0x6985c7('Decrease\x20indent'),'description':_0x6985c7('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x19bb4c,'title':_0x6985c7('Paragraph'),'description':_0x6985c7('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x11a0d3,'title':_0x6985c7('To-do\x20List'),'description':_0x6985c7('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x7b34a1,'title':_0x6985c7('Footnote'),'description':_0x6985c7('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x5eb584){return _0x5eb584['isEnabled']?_0x5eb584['isEnabled'](this['editor']):!_0x5eb584['commandName']||this['editor']['commands']['get'](_0x5eb584['commandName'])['isEnabled'];}['_proxyExecute'](_0x682c0){if(_0x682c0['execute'])_0x682c0['execute'](this['editor']);else{if(!_0x682c0['commandName'])throw new _0x52e1ad('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x682c0});this['editor']['execute'](_0x682c0['commandName']);}}}function S(_0x113fe0,_0xc63281){return _0x113fe0['title']<_0xc63281['title']?-0x1:_0x113fe0['title']>_0xc63281['title']?0x1:0x0;}function O(_0x2a67a0,_0x560de6){return _0x560de6+'-'+_0x2a67a0['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x5a2707{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x578e64){const _0x291817=_0x578e64&&_0x578e64['toLowerCase']();let _0x474359=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x474359=_0x474359['filter'](_0x1518e3=>_0x1518e3['isEnabled']()),_0x291817){const _0x12ef5a=[],_0x2e5224=[],_0x19ad9f=[],_0x5813a9=[];for(const _0x5dea78 of _0x474359)_0x5dea78['id']['toLowerCase']()['includes'](_0x291817)?_0x12ef5a['push'](_0x5dea78):_0x5dea78['title']['toLowerCase']()['includes'](_0x291817)?_0x2e5224['push'](_0x5dea78):_0x5dea78['aliases']&&_0x5dea78['aliases']['some'](_0xc62a18=>_0xc62a18['toLowerCase']()['includes'](_0x291817))?_0x19ad9f['push'](_0x5dea78):_0x5dea78['description']&&_0x5dea78['description']['toLowerCase']()['includes'](_0x291817)&&_0x5813a9['push'](_0x5dea78);_0x474359=_0x12ef5a['concat'](_0x2e5224,_0x19ad9f,_0x5813a9);}return _0x474359;}}class SlashCommandButtonView extends _0x3634b9{constructor(_0x7b7c46,_0x8f7e84){super(_0x7b7c46),this['textPartView']=this['_createTextPartView'](_0x7b7c46,_0x8f7e84),void 0x0!==_0x8f7e84['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x8f7e84['isIconColorInherited']),this['set']({'icon':_0x8f7e84['icon']||_0x120702,'withText':!0x0,'label':_0x8f7e84['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x493ee7,_0x1cb00f){const _0x28ea54=new _0x39ac7a(_0x493ee7);return _0x28ea54['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1cb00f['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1cb00f['description']}]}]:[this['labelView']]}),_0x28ea54;}}class SlashCommandUI extends _0x5a2707{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b029a){super(_0x3b029a),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x397d5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x207051;for(const _0x3c0c8b in _0x397d5c){const _0x619dcd=_0x3c0c8b,_0x3e872b=_0x397d5c[_0x619dcd];if('slashCommandLicenseKeyValid'==_0x3e872b||'slashCommandLicenseKeyInvalid'==_0x3e872b||'slashCommandLicenseKeyExpired'==_0x3e872b||'slashCommandLicenseKeyDomainLimit'==_0x3e872b||'slashCommandLicenseKeyNotAllowed'==_0x3e872b||'slashCommandLicenseKeyEvaluationLimit'==_0x3e872b||'slashCommandLicenseKeyUsageLimit'==_0x3e872b){delete _0x397d5c[_0x619dcd],_0x207051=_0x3e872b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x207051&&_0x397d5c['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x207051&&_0x397d5c['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x207051&&_0x397d5c['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x207051&&_0x397d5c['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x207051&&_0x397d5c['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x207051&&_0x397d5c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3f44ed=this['editor'],_0x2903e6=this['editor']['plugins']['get']('SlashCommandEditing'),_0x3e8cf2=_0x3f44ed['config']['get']('mention.feeds');_0x3e8cf2['push']({'marker':'/','feed':_0x1cfb0e=>_0x2903e6['getMatchingCommands'](_0x1cfb0e),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3f44ed['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3f44ed['config']['set']('mention.feeds',_0x3e8cf2);}['_overrideMentionExecuteListener'](){const _0x174e75=this['editor'];_0x174e75['commands']['get']('mention')['on']('execute',(_0x2886a3,_0x120a52)=>{const _0x2c789f=_0x120a52[0x0],_0x11a1b5=_0x174e75['model'];'/'===_0x2c789f['marker']&&_0x11a1b5['change'](_0x526f28=>{_0x526f28['remove'](_0x2c789f['range']),_0x2c789f['mention']['execute'](),_0x2886a3['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x48a056){const _0x175459=this['editor']['locale'],_0xa2f2ce=new SlashCommandButtonView(_0x175459,_0x48a056);return _0xa2f2ce['render'](),_0xa2f2ce['element'];}}class SlashCommand extends _0x5a2707{static get['requires'](){return[_0x2c271a,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.2.0-alpha.3",
3
+ "version": "48.2.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.2.0-alpha.3",
25
- "@ckeditor/ckeditor5-heading": "48.2.0-alpha.3",
26
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.3",
27
- "@ckeditor/ckeditor5-mention": "48.2.0-alpha.3",
28
- "@ckeditor/ckeditor5-style": "48.2.0-alpha.3",
29
- "@ckeditor/ckeditor5-template": "48.2.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.3",
31
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.3"
24
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
25
+ "@ckeditor/ckeditor5-heading": "48.2.0-alpha.4",
26
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
27
+ "@ckeditor/ckeditor5-mention": "48.2.0-alpha.4",
28
+ "@ckeditor/ckeditor5-style": "48.2.0-alpha.4",
29
+ "@ckeditor/ckeditor5-template": "48.2.0-alpha.4",
30
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
31
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
32
32
  },
33
33
  "files": [
34
34
  "dist",