@ckeditor/ckeditor5-slash-command 48.2.0 → 48.3.0-alpha.1
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/augmentation.d.ts +19 -19
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/slashcommand.d.ts +33 -33
- package/dist/slashcommandconfig.d.ts +248 -248
- package/dist/slashcommandediting.d.ts +31 -31
- package/dist/slashcommandeditorconfig.d.ts +91 -91
- package/dist/slashcommandui.d.ts +36 -36
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/slashcommandbuttonview.d.ts +26 -26
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +9 -9
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
|
|
12
|
+
*/
|
|
13
|
+
slashCommand?: SlashCommandEditorConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[SlashCommand.pluginName]: SlashCommand;
|
|
17
|
+
[SlashCommandConfig.pluginName]: SlashCommandConfig;
|
|
18
|
+
[SlashCommandEditing.pluginName]: SlashCommandEditing;
|
|
19
|
+
[SlashCommandUI.pluginName]: SlashCommandUI;
|
|
20
|
+
}
|
|
21
21
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { SlashCommand } from
|
|
9
|
-
export { SlashCommandConfig } from
|
|
10
|
-
export { SlashCommandEditing } from
|
|
11
|
-
export { SlashCommandUI } from
|
|
12
|
-
export type { SlashCommandEditorConfig } from
|
|
13
|
-
export type { SlashCommandDefinition } from
|
|
14
|
-
import
|
|
6
|
+
* @module slash-command
|
|
7
|
+
*/
|
|
8
|
+
export { SlashCommand } from "./slashcommand.js";
|
|
9
|
+
export { SlashCommandConfig } from "./slashcommandconfig.js";
|
|
10
|
+
export { SlashCommandEditing } from "./slashcommandediting.js";
|
|
11
|
+
export { SlashCommandUI } from "./slashcommandui.js";
|
|
12
|
+
export type { SlashCommandEditorConfig } from "./slashcommandeditorconfig.js";
|
|
13
|
+
export type { SlashCommandDefinition } from "./slashcommandconfig.js";
|
|
14
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4989a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x10ef34}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x412f9a,uid as _0x121f0e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x126756,IconQuote as _0x30951a,IconBulletedList as _0x74b1c6,IconCodeBlock as _0x1bb1a2,IconBrowseFiles as _0x91c387,IconEmoji as _0x3939d2,IconHeading1 as _0x28ae1f,IconHeading2 as _0x3d54be,IconHeading3 as _0x15a596,IconHeading4 as _0x162536,IconHeading5 as _0x2d9641,IconHeading6 as _0x22f9df,IconHorizontalLine as _0x3e509f,IconHtml as _0x3d3b72,IconIndent as _0x2122da,IconTable as _0x40643a,IconTableOfContents as _0x21bff9,IconNumberedList as _0x34d17c,IconOutdent as _0x56321d,IconParagraph as _0xfec976,IconTodoList as _0x4e417e,IconFootnote as _0x51c582,IconPlay as _0x2c0cb2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x55dc90,View as _0x324ddb}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x4989a0{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x219fd5){super(_0x219fd5),this['_allowedCommands']=null;}['afterInit'](){const _0x566e35=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x6fd775=function(_0x52be4d){let _0x3baabb=['heading4','heading5','heading6'];if(_0x52be4d){const _0x3a7fc4=_0x52be4d['map'](_0x6ae010=>_0x6ae010['model']);_0x3baabb=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x470015=>!_0x3a7fc4['includes'](_0x470015));}return _0x3baabb;}(this['editor']['config']['get']('heading.options'));let _0x4a57b0=this['getDefaultCommands']()['filter'](_0x35be0a=>!_0x6fd775['includes'](_0x35be0a['id']))['filter'](_0x58ecae=>!_0x566e35['includes'](_0x58ecae['commandName']));const _0x4962dd=this['editor']['config']['get']('slashCommand.extraCommands');_0x4962dd&&_0x4962dd['length']&&(_0x4a57b0=_0x4a57b0['concat'](_0x4962dd));const _0x2c68ca=this['editor']['config']['get']('template.definitions');_0x2c68ca&&_0x2c68ca['length']&&(_0x4a57b0=_0x4a57b0['concat'](function(_0x14b934){return _0x14b934['map'](_0xf99ecf=>{const {title:_0x50738d,icon:_0xbe20ec,description:_0x309e23,data:_0x2ece78}=_0xf99ecf,_0x46f70c={'id':O(_0x50738d,'template'),'commandName':'insertTemplate','execute':_0x484e0f=>{_0x484e0f['execute']('insertTemplate',_0x2ece78);},'description':_0x309e23,'icon':_0xbe20ec,'title':_0x50738d};return _0xbe20ec&&(_0x46f70c['isIconColorInherited']=!0x1),_0x46f70c;});}(_0x2c68ca)));const _0x44ade2=this['editor']['config']['get']('style.definitions');_0x44ade2&&_0x44ade2['length']&&(_0x4a57b0=_0x4a57b0['concat'](function(_0x19011e){return _0x19011e['map'](_0x43743d=>({'id':O(_0x43743d['name'],'style'),'commandName':'style','execute':_0x1ea809=>{_0x1ea809['execute']('style',{'styleName':_0x43743d['name']});},'isEnabled':_0x131e92=>{const _0x1441a2=_0x131e92['commands']['get']('style');return _0x1441a2['isEnabled']&&_0x1441a2['enabledStyles']['includes'](_0x43743d['name']);},'title':_0x43743d['name']}));}(_0x44ade2)));const _0x413501=_0x4a57b0['filter'](_0x5bee86=>!_0x5bee86['commandName']||void 0x0!==this['editor']['commands']['get'](_0x5bee86['commandName'])),_0x28b8d3=[];for(const _0xe2df4d of _0x413501)_0x28b8d3['push']({'id':_0xe2df4d['id'],'commandName':_0xe2df4d['commandName'],'title':'function'==typeof _0xe2df4d['title']?_0xe2df4d['title'](this['editor']):_0xe2df4d['title'],'description':_0xe2df4d['description'],'icon':_0xe2df4d['icon'],'isIconColorInherited':_0xe2df4d['isIconColorInherited'],'aliases':_0xe2df4d['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xe2df4d),'execute':()=>this['_proxyExecute'](_0xe2df4d)});this['_allowedCommands']=_0x28b8d3['sort'](S),async function(_0x378ab5){const _0x252361=_0x8a922f([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]),_0x40a6aa=0x305505ed,_0x3a9c60=0x30528e3d^_0x40a6aa,_0x233724=window[_0x8a922f([0x44,0x61,0x74,0x65])][_0x8a922f([0x6e,0x6f,0x77])](),_0x4bd4fd=_0x378ab5[_0x8a922f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b1490=new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x623bdc=>{_0x4bd4fd[_0x8a922f([0x6f,0x6e,0x63,0x65])](_0x8a922f([0x72,0x65,0x61,0x64,0x79]),_0x623bdc);}),_0x57cad1={[_0x8a922f([0x6b,0x74,0x79])]:_0x8a922f([0x45,0x43]),[_0x8a922f([0x75,0x73,0x65])]:_0x8a922f([0x73,0x69,0x67]),[_0x8a922f([0x63,0x72,0x76])]:_0x8a922f([0x50,0x2d,0x32,0x35,0x36]),[_0x8a922f([0x78])]:_0x8a922f([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]),[_0x8a922f([0x79])]:_0x8a922f([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]),[_0x8a922f([0x61,0x6c,0x67])]:_0x8a922f([0x45,0x53,0x32,0x35,0x36])},_0x5392f4=_0x4bd4fd[_0x8a922f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8a922f([0x67,0x65,0x74])](_0x8a922f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcc4b28(){let _0x2d9bdd,_0x16d24e=null,_0x27c89a=null;try{if(_0x5392f4==_0x8a922f([0x47,0x50,0x4c]))return _0x8a922f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d9bdd=_0xa7712c(),!_0x2d9bdd)return _0x8a922f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d9bdd[_0x8a922f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27c89a=_0x1314ea(_0x2d9bdd[_0x8a922f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d9bdd[_0x8a922f([0x6a,0x74,0x69])])),await _0x38e769()?_0x2b1abe()?_0x28befc()?_0x8a922f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31fcc2()?(_0x2d9bdd[_0x8a922f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8a922f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16d24e=_0x4f7961(_0x8a922f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x158589()):_0x8a922f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8a922f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8a922f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8a922f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28befc(){const _0x23d391=[_0x8a922f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8a922f([0x74,0x72,0x69,0x61,0x6c])][_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9bdd[_0x8a922f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x233724/0x3e8:0xe10*_0x3a9c60;return _0x2d9bdd[_0x8a922f([0x65,0x78,0x70])]<_0x23d391;}function _0x2b1abe(){const _0x5f4be6=_0x2d9bdd[_0x8a922f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f4be6&&(!!_0x5f4be6[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a922f([0x2a]))||(!!_0x5f4be6[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a922f([0x53,0x43]))||(!!_0x5f4be6[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a922f([0x50,0x50]))||!(!_0x5f4be6[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a922f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x55ed1f()))));}function _0x31fcc2(){const _0x3be0ce=_0x2d9bdd[_0x8a922f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3be0ce||0x0==_0x3be0ce[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5603d7}=new URL(window[_0x8a922f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3be0ce[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5603d7))return!0x0;const _0x43fa13=_0x5603d7[_0x8a922f([0x73,0x70,0x6c,0x69,0x74])](_0x8a922f([0x2e]));return _0x3be0ce[_0x8a922f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15e8de=>_0x15e8de[_0x8a922f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a922f([0x2a])))[_0x8a922f([0x6d,0x61,0x70])](_0x2187ae=>_0x2187ae[_0x8a922f([0x73,0x70,0x6c,0x69,0x74])](_0x8a922f([0x2e])))[_0x8a922f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dfd7d=>_0x1dfd7d[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43fa13[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8a922f([0x6d,0x61,0x70])](_0x1bb3e3=>Array(_0x43fa13[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bb3e3[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8a922f([0x66,0x69,0x6c,0x6c])](_0x1bb3e3[0x0]===_0x8a922f([0x2a])?_0x8a922f([0x2a]):'')[_0x8a922f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bb3e3))[_0x8a922f([0x73,0x6f,0x6d,0x65])](_0x3c25a2=>_0x43fa13[_0x8a922f([0x65,0x76,0x65,0x72,0x79])]((_0x58e6e0,_0x3e2b70)=>_0x3c25a2[_0x3e2b70]===_0x58e6e0||_0x3c25a2[_0x3e2b70]===_0x8a922f([0x2a])));}function _0x158589(){return _0x16d24e&&_0x27c89a?new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54effe,_0x2a75c0)=>{_0x16d24e[_0x8a922f([0x74,0x68,0x65,0x6e])](_0x54effe,_0x2a75c0),_0x27c89a[_0x8a922f([0x74,0x68,0x65,0x6e])](_0x276ec1=>{_0x276ec1!=_0x8a922f([0x56,0x61,0x6c,0x69,0x64])&&_0x54effe(_0x276ec1);},_0x2a75c0);}):_0x16d24e||_0x27c89a||_0x8a922f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1314ea(_0x5b269d,_0x16e1ec){return new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6ed3=>{if(_0x2442ec())return _0x4f6ed3(_0x8a922f([0x56,0x61,0x6c,0x69,0x64]));_0x22cb10(),_0x4bd4fd[_0x8a922f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8a922f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e4111=!0x1;const _0x254575=_0x121f0e();function _0x438023(_0x249e51){return!!_0x249e51&&(typeof _0x249e51===_0x8a922f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x249e51===_0x8a922f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x249e51[_0x8a922f([0x74,0x68,0x65,0x6e])]===_0x8a922f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x249e51[_0x8a922f([0x63,0x61,0x74,0x63,0x68])]===_0x8a922f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e32de(_0x162b29){_0x1ef758(_0x162b29)[_0x8a922f([0x74,0x68,0x65,0x6e])](_0xd9ff47=>{if(!_0xd9ff47||_0xd9ff47[_0x8a922f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8a922f([0x6f,0x6b]))return _0x8a922f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x449f17(_0x2ec351(_0x254575+_0x16e1ec))!=_0xd9ff47[_0x8a922f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8a922f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8a922f([0x56,0x61,0x6c,0x69,0x64]);})[_0x8a922f([0x74,0x68,0x65,0x6e])](_0x488c41=>(_0x239efd(),_0x488c41),()=>{const _0x1d4439=_0x13843b();return null==_0x1d4439?(_0x239efd(),_0x8a922f([0x56,0x61,0x6c,0x69,0x64])):_0x8a922f(_0x233724-_0x1d4439>(0x145981ed^_0x40a6aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8a922f([0x74,0x68,0x65,0x6e])](_0x4f6ed3)[_0x8a922f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f6ed3(_0x8a922f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40d183=0x3063eb6d^_0x40a6aa;function _0x239efd(){const _0x2123bb=_0x8a922f([0x6c,0x6c,0x63,0x74,0x2d])+_0x449f17(_0x2ec351(_0x5b269d)),_0xf68602=_0x1e9125(_0x449f17(window[_0x8a922f([0x4d,0x61,0x74,0x68])][_0x8a922f([0x63,0x65,0x69,0x6c])](_0x233724/_0x40d183)));window[_0x8a922f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8a922f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2123bb,_0xf68602);}function _0x13843b(){const _0x253647=_0x8a922f([0x6c,0x6c,0x63,0x74,0x2d])+_0x449f17(_0x2ec351(_0x5b269d)),_0xaa9906=window[_0x8a922f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8a922f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253647);return _0xaa9906?window[_0x8a922f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e9125(_0xaa9906),0x10)*_0x40d183:null;}function _0x1ef758(_0x3bfd50){return new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4419fc,_0x1d1c0a)=>{_0x3bfd50[_0x8a922f([0x74,0x68,0x65,0x6e])](_0x4419fc,_0x1d1c0a),window[_0x8a922f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d1c0a,0x3054d12d^_0x40a6aa);});}}_0x4bd4fd[_0x8a922f([0x6f,0x6e])](_0x8a922f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15185e,_0x89ab1b)=>{if(_0x89ab1b[0x0]!=_0x5b269d)return _0x4f6ed3(_0x8a922f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x89ab1b[0x1]={..._0x89ab1b[0x1],[_0x8a922f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x254575};},{[_0x8a922f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8a922f([0x68,0x69,0x67,0x68])}),_0x4bd4fd[_0x8a922f([0x6f,0x6e])](_0x8a922f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x542165=>{_0x438023(_0x542165[_0x8a922f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e4111=!0x0,_0x1e32de(_0x542165[_0x8a922f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8a922f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8a922f([0x6c,0x6f,0x77])}),_0x1b1490[_0x8a922f([0x74,0x68,0x65,0x6e])](()=>{_0x3e4111||_0x4f6ed3(_0x8a922f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2442ec(){return _0x4bd4fd[_0x8a922f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8a922f([0x76,0x69,0x65,0x77])][_0x8a922f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8a922f([0x61,0x75,0x74,0x6f]);}function _0x22cb10(){_0x4bd4fd[_0x8a922f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8a922f([0x76,0x69,0x65,0x77])][_0x8a922f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8a922f([0x61,0x75,0x74,0x6f]);}}function _0x4f7961(_0x2f955d){const _0x50f263=[new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235f02=>setTimeout(_0x235f02,0x305c3b21^_0x40a6aa)),_0x1b1490[_0x8a922f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591117=>{let _0x3a8933=0x0;_0x4bd4fd[_0x8a922f([0x6d,0x6f,0x64,0x65,0x6c])][_0x8a922f([0x6f,0x6e])](_0x8a922f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x526c4c,_0x4c13c1)=>{_0x4c13c1[0x0][_0x8a922f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a8933++,_0x3a8933==(0x30550005^_0x40a6aa)&&(_0x591117(),_0x526c4c[_0x8a922f([0x6f,0x66,0x66])]());});}))];return window[_0x8a922f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8a922f([0x72,0x61,0x63,0x65])](_0x50f263)[_0x8a922f([0x74,0x68,0x65,0x6e])](()=>_0x2f955d);}async function _0x2412e8(){await _0x1b1490,_0x4bd4fd[_0x8a922f([0x6d,0x6f,0x64,0x65,0x6c])][_0x8a922f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5870cc,_0x4bd4fd[_0x8a922f([0x6d,0x6f,0x64,0x65,0x6c])][_0x8a922f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5870cc,_0x4bd4fd[_0x8a922f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8a922f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55ed1f(){return window[_0x8a922f([0x67,0x6c,0x6f,0x62])]&&window[_0x8a922f([0x67,0x6c,0x6f,0x62])][_0x8a922f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xf615f4(_0x3f9c4e){const _0x54e015=_0x24bd2a();_0x4bd4fd[_0x54e015]=_0x8a922f([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f9c4e,_0x3f9c4e!=_0x8a922f([0x56,0x61,0x6c,0x69,0x64])&&_0x2412e8();}function _0x24bd2a(){const _0x398b1a=window[_0x8a922f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8a922f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8a922f([0x6e,0x6f,0x77])]())[_0x8a922f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8a922f([0x2e]),'');let _0x1437ef=_0x8a922f([0x75]);for(let _0x8e634d=0x0;_0x8e634d<_0x398b1a[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8e634d+=0x2){let _0x1c8958=window[_0x8a922f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x398b1a[_0x8a922f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8e634d,_0x8e634d+0x2));_0x1c8958>=_0x252361[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c8958-=_0x252361[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1437ef+=_0x252361[_0x1c8958];}return _0x1437ef;}function _0xa7712c(){const _0x2d658d=_0x5392f4[_0x8a922f([0x73,0x70,0x6c,0x69,0x74])](_0x8a922f([0x2e]));if(0x3!=_0x2d658d[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20b810(_0x2d658d[0x1]);function _0x20b810(_0x37580f){const _0x17b957=_0x20274c(_0x37580f);return _0x17b957&&_0x1ae76c()?_0x17b957:null;function _0x1ae76c(){const _0x21af08=_0x17b957[_0x8a922f([0x6a,0x74,0x69])],_0x2dc99a=window[_0x8a922f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21af08[_0x8a922f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21af08[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x505416={..._0x17b957,[_0x8a922f([0x6a,0x74,0x69])]:_0x21af08[_0x8a922f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21af08[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x505416[_0x8a922f([0x76,0x63])],_0x2ec351(_0x505416)==_0x2dc99a;}}}async function _0x38e769(){let _0x3b4b4d=!0x0;try{const _0x3a39d6=_0x5392f4[_0x8a922f([0x73,0x70,0x6c,0x69,0x74])](_0x8a922f([0x2e])),[_0x462fd3,_0x31d0e8,_0x292ac3]=_0x3a39d6;return _0x5aebe8(_0x462fd3),await _0x37c5ef(_0x462fd3,_0x31d0e8,_0x292ac3),_0x3b4b4d;}catch{return!0x1;}function _0x5aebe8(_0x9a32e3){const _0x4d73f2=_0x20274c(_0x9a32e3);_0x4d73f2&&_0x4d73f2[_0x8a922f([0x61,0x6c,0x67])]==_0x8a922f([0x45,0x53,0x32,0x35,0x36])||(_0x3b4b4d=!0x1);}async function _0x37c5ef(_0x36d1eb,_0x36f3d4,_0x5ba284){const _0x341db5=window[_0x8a922f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8a922f([0x66,0x72,0x6f,0x6d])](_0x32f89b(_0x5ba284),_0x57d155=>_0x57d155[_0x8a922f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x81e3fb=new window[(_0x8a922f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8a922f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36d1eb+_0x8a922f([0x2e])+_0x36f3d4),_0x2b2ea1=window[_0x8a922f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8a922f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b2ea1)return;const _0x31a441=await _0x2b2ea1[_0x8a922f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8a922f([0x6a,0x77,0x6b]),_0x57cad1,{[_0x8a922f([0x6e,0x61,0x6d,0x65])]:_0x8a922f([0x45,0x43,0x44,0x53,0x41]),[_0x8a922f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8a922f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8a922f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b2ea1[_0x8a922f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8a922f([0x6e,0x61,0x6d,0x65])]:_0x8a922f([0x45,0x43,0x44,0x53,0x41]),[_0x8a922f([0x68,0x61,0x73,0x68])]:{[_0x8a922f([0x6e,0x61,0x6d,0x65])]:_0x8a922f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31a441,_0x341db5,_0x81e3fb)||(_0x3b4b4d=!0x1);}}function _0x20274c(_0x57a772){return _0x57a772[_0x8a922f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8a922f([0x65,0x79]))?JSON[_0x8a922f([0x70,0x61,0x72,0x73,0x65])](_0x32f89b(_0x57a772)):null;}function _0x32f89b(_0x4f72ee){return window[_0x8a922f([0x61,0x74,0x6f,0x62])](_0x4f72ee[_0x8a922f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8a922f([0x2b]))[_0x8a922f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8a922f([0x2f])));}function _0x2ec351(_0x18347e){let _0x11461e=0x1505;function _0x420b7d(_0x39e122){for(let _0x3d42de=0x0;_0x3d42de<_0x39e122[_0x8a922f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d42de++){const _0x4710be=_0x39e122[_0x8a922f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d42de);_0x11461e=(_0x11461e<<0x5)+_0x11461e+_0x4710be,_0x11461e&=_0x11461e;}}function _0x444d57(_0x1b938d){Array[_0x8a922f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b938d)?_0x1b938d[_0x8a922f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x444d57):_0x1b938d&&typeof _0x1b938d==_0x8a922f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8a922f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b938d)[_0x8a922f([0x73,0x6f,0x72,0x74])]()[_0x8a922f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e3e7f,_0x1e404c])=>{_0x420b7d(_0x5e3e7f),_0x444d57(_0x1e404c);}):_0x420b7d(window[_0x8a922f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b938d));}return _0x444d57(_0x18347e),_0x11461e>>>0x0;}function _0x449f17(_0x382303){return _0x382303[_0x8a922f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8a922f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8a922f([0x30]));}function _0x1e9125(_0x18219f){return _0x18219f[_0x8a922f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8a922f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8a922f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5870cc(){}function _0x8a922f(_0x586152){return _0x586152['map'](_0x482176=>String['fromCharCode'](_0x482176))['join']('');}_0xf615f4(await _0xcc4b28());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x4b0e1e=_0x43ab4e=>function(_0x1af38a,_0x28add8){const t=_0x1af38a['t'],_0x43cacd=_0x1af38a['t'];switch(_0x28add8){case'AI\x20Assistant':return _0x43cacd('AI\x20Assistant');case'Block\x20quote':return _0x43cacd('Block\x20quote');case'Bulleted\x20List':return _0x43cacd('Bulleted\x20List');case'Insert\x20code\x20block':return _0x43cacd('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x43cacd('Open\x20file\x20manager');case'Insert\x20image':return _0x43cacd('Insert\x20image');case'Heading\x201':return _0x43cacd('Heading\x201');case'Heading\x202':return _0x43cacd('Heading\x202');case'Heading\x203':return _0x43cacd('Heading\x203');case'Heading\x204':return _0x43cacd('Heading\x204');case'Heading\x205':return _0x43cacd('Heading\x205');case'Heading\x206':return _0x43cacd('Heading\x206');case'Horizontal\x20line':return _0x43cacd('Horizontal\x20line');case'Insert\x20HTML':return _0x43cacd('Insert\x20HTML');case'Increase\x20indent':return _0x43cacd('Increase\x20indent');case'Insert\x20table':return _0x43cacd('Insert\x20table');case'Table\x20of\x20contents':return _0x43cacd('Table\x20of\x20contents');case'Numbered\x20List':return _0x43cacd('Numbered\x20List');case'Decrease\x20indent':return _0x43cacd('Decrease\x20indent');case'Paragraph':return _0x43cacd('Paragraph');case'To-do\x20List':return _0x43cacd('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 _0x28add8;}}(this['editor']['locale'],_0x43ab4e);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x126756,'title':_0x4b0e1e('AI\x20Assistant'),'description':_0x4b0e1e('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x5ce676=>{setTimeout(()=>_0x5ce676['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x30951a,'title':_0x4b0e1e('Block\x20quote'),'description':_0x4b0e1e('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x74b1c6,'title':_0x4b0e1e('Bulleted\x20List'),'description':_0x4b0e1e('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1bb1a2,'title':_0x4b0e1e('Insert\x20code\x20block'),'description':_0x4b0e1e('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x91c387,'title':_0x4b0e1e('Open\x20file\x20manager'),'description':_0x4b0e1e('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x91c387,'title':_0x4b0e1e('Insert\x20image'),'description':_0x4b0e1e('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3939d2,'title':_0x4b0e1e('Emoji'),'description':_0x4b0e1e('Insert\x20an\x20emoji'),'execute':_0x39f7f2=>{setTimeout(()=>_0x39f7f2['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x28ae1f,'title':_0x4b0e1e('Heading\x201'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x201'),'execute':_0x1a02b6=>{_0x1a02b6['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3d54be,'title':_0x4b0e1e('Heading\x202'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x202'),'execute':_0x30e27a=>{_0x30e27a['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x15a596,'title':_0x4b0e1e('Heading\x203'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x203'),'execute':_0x44c6ec=>{_0x44c6ec['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x162536,'title':_0x4b0e1e('Heading\x204'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x204'),'execute':_0x4c8fca=>{_0x4c8fca['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2d9641,'title':_0x4b0e1e('Heading\x205'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x205'),'execute':_0xab1768=>{_0xab1768['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x22f9df,'title':_0x4b0e1e('Heading\x206'),'description':_0x4b0e1e('Create\x20a\x20heading\x20level\x206'),'execute':_0x590840=>{_0x590840['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x3e509f,'title':_0x4b0e1e('Horizontal\x20line'),'description':_0x4b0e1e('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3d3b72,'title':_0x4b0e1e('Insert\x20HTML'),'description':_0x4b0e1e('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2122da,'title':_0x4b0e1e('Increase\x20indent'),'description':_0x4b0e1e('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x4b0e1e('Insert\x20Mermaid\x20diagram'),'description':_0x4b0e1e('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x40643a,'title':_0x4b0e1e('Insert\x20table'),'description':_0x4b0e1e('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x21bff9,'title':_0x4b0e1e('Table\x20of\x20contents'),'description':_0x4b0e1e('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x34d17c,'title':_0x4b0e1e('Numbered\x20List'),'description':_0x4b0e1e('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x56321d,'title':_0x4b0e1e('Decrease\x20indent'),'description':_0x4b0e1e('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0xfec976,'title':_0x4b0e1e('Paragraph'),'description':_0x4b0e1e('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x4e417e,'title':_0x4b0e1e('To-do\x20List'),'description':_0x4b0e1e('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x51c582,'title':_0x4b0e1e('Footnote'),'description':_0x4b0e1e('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x12486a){return _0x12486a['isEnabled']?_0x12486a['isEnabled'](this['editor']):!_0x12486a['commandName']||this['editor']['commands']['get'](_0x12486a['commandName'])['isEnabled'];}['_proxyExecute'](_0x48f722){if(_0x48f722['execute'])_0x48f722['execute'](this['editor']);else{if(!_0x48f722['commandName'])throw new _0x412f9a('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x48f722});this['editor']['execute'](_0x48f722['commandName']);}}}function S(_0x2c662f,_0x241836){return _0x2c662f['title']<_0x241836['title']?-0x1:_0x2c662f['title']>_0x241836['title']?0x1:0x0;}function O(_0x280df8,_0x2b83e1){return _0x2b83e1+'-'+_0x280df8['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x4989a0{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x500293){const _0x37fae2=_0x500293&&_0x500293['toLowerCase']();let _0x36748b=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x36748b=_0x36748b['filter'](_0x27692f=>_0x27692f['isEnabled']()),_0x37fae2){const _0x32ba4e=[],_0x191c3c=[],_0x1e8c54=[],_0x4ee6ee=[];for(const _0x74a764 of _0x36748b)_0x74a764['id']['toLowerCase']()['includes'](_0x37fae2)?_0x32ba4e['push'](_0x74a764):_0x74a764['title']['toLowerCase']()['includes'](_0x37fae2)?_0x191c3c['push'](_0x74a764):_0x74a764['aliases']&&_0x74a764['aliases']['some'](_0xcd5db6=>_0xcd5db6['toLowerCase']()['includes'](_0x37fae2))?_0x1e8c54['push'](_0x74a764):_0x74a764['description']&&_0x74a764['description']['toLowerCase']()['includes'](_0x37fae2)&&_0x4ee6ee['push'](_0x74a764);_0x36748b=_0x32ba4e['concat'](_0x191c3c,_0x1e8c54,_0x4ee6ee);}return _0x36748b;}}class SlashCommandButtonView extends _0x55dc90{constructor(_0x5a02cd,_0x2bfef9){super(_0x5a02cd),this['textPartView']=this['_createTextPartView'](_0x5a02cd,_0x2bfef9),void 0x0!==_0x2bfef9['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2bfef9['isIconColorInherited']),this['set']({'icon':_0x2bfef9['icon']||_0x2c0cb2,'withText':!0x0,'label':_0x2bfef9['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0xebe058,_0x574a94){const _0x40ea2d=new _0x324ddb(_0xebe058);return _0x40ea2d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x574a94['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x574a94['description']}]}]:[this['labelView']]}),_0x40ea2d;}}class SlashCommandUI extends _0x4989a0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd3f773){super(_0xd3f773),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2546b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a781d;for(const _0x3b8500 in _0x2546b6){const _0x19512e=_0x3b8500,_0x1f7b7b=_0x2546b6[_0x19512e];if('slashCommandLicenseKeyValid'==_0x1f7b7b||'slashCommandLicenseKeyInvalid'==_0x1f7b7b||'slashCommandLicenseKeyExpired'==_0x1f7b7b||'slashCommandLicenseKeyDomainLimit'==_0x1f7b7b||'slashCommandLicenseKeyNotAllowed'==_0x1f7b7b||'slashCommandLicenseKeyEvaluationLimit'==_0x1f7b7b||'slashCommandLicenseKeyUsageLimit'==_0x1f7b7b){delete _0x2546b6[_0x19512e],_0x2a781d=_0x1f7b7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x2a781d&&_0x2546b6['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x2a781d&&_0x2546b6['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x2a781d&&_0x2546b6['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x2a781d&&_0x2546b6['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x2a781d&&_0x2546b6['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x2a781d&&_0x2546b6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3d99d7=this['editor'],_0x1379bf=this['editor']['plugins']['get']('SlashCommandEditing'),_0x1380a7=_0x3d99d7['config']['get']('mention.feeds');_0x1380a7['push']({'marker':'/','feed':_0x4cceaf=>_0x1379bf['getMatchingCommands'](_0x4cceaf),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3d99d7['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3d99d7['config']['set']('mention.feeds',_0x1380a7);}['_overrideMentionExecuteListener'](){const _0x34fd45=this['editor'];_0x34fd45['commands']['get']('mention')['on']('execute',(_0x37eea1,_0x356fd1)=>{const _0x2be599=_0x356fd1[0x0],_0x222105=_0x34fd45['model'];'/'===_0x2be599['marker']&&_0x222105['change'](_0x94222d=>{_0x94222d['remove'](_0x2be599['range']),_0x2be599['mention']['execute'](),_0x37eea1['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x5808b4){const _0x3fb050=this['editor']['locale'],_0x4d90b3=new SlashCommandButtonView(_0x3fb050,_0x5808b4);return _0x4d90b3['render'](),_0x4d90b3['element'];}}class SlashCommand extends _0x4989a0{static get['requires'](){return[_0x10ef34,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 _0x585af2}from'@ckeditor/ckeditor5-core';import{Mention as _0x340f62}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x4aee0f,uid as _0xd0bf72}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x2c7f75,IconBulletedList as _0x9eb4a8,IconCodeBlock as _0x1e7af7,IconEmoji as _0x4d041c,IconFootnote as _0x486a11,IconHeading1 as _0x231a0b,IconHeading2 as _0x3b0cb6,IconHeading3 as _0x788608,IconHeading4 as _0x220951,IconHeading5 as _0x51e598,IconHeading6 as _0x5376d9,IconHorizontalLine as _0x20c0ca,IconHtml as _0x25751d,IconIndent as _0x4b5fef,IconNumberedList as _0x595c61,IconOutdent as _0x3a605e,IconParagraph as _0x63298f,IconPlay as _0x49bb3c,IconQuote as _0x461789,IconRobotPencil as _0x1c85d5,IconTable as _0x46b6bc,IconTableOfContents as _0xb71f31,IconTodoList as _0xc37455}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x1225c1,View as _0xe51416}from'@ckeditor/ckeditor5-ui';var O=class extends _0x585af2{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3925d7){super(_0x3925d7),this['_allowedCommands']=null;}['afterInit'](){const _0x3f5deb=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x18085a=function(_0x4c4147){let _0x13fd60=['heading4','heading5','heading6'];if(_0x4c4147){const _0x3ba12b=_0x4c4147['map'](_0x5c25e1=>_0x5c25e1['model']);_0x13fd60=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4b960b=>!_0x3ba12b['includes'](_0x4b960b));}return _0x13fd60;}(this['editor']['config']['get']('heading.options'));let _0x1d726b=this['getDefaultCommands']()['filter'](_0x25e81b=>!_0x18085a['includes'](_0x25e81b['id']))['filter'](_0x5da565=>!_0x3f5deb['includes'](_0x5da565['commandName']));const _0x2d1474=this['editor']['config']['get']('slashCommand.extraCommands');_0x2d1474&&_0x2d1474['length']&&(_0x1d726b=_0x1d726b['concat'](_0x2d1474));const _0x36d343=this['editor']['config']['get']('template.definitions');_0x36d343&&_0x36d343['length']&&(_0x1d726b=_0x1d726b['concat'](function(_0x19bc8d){return _0x19bc8d['map'](_0x4276d0=>{const {title:_0x392322,icon:_0x4858e4,description:_0x15d278,data:_0x1fc2ea}=_0x4276d0,_0x1e70f0={'id':P(_0x392322,'template'),'commandName':'insertTemplate','execute':_0x24cac3=>{_0x24cac3['execute']('insertTemplate',_0x1fc2ea);},'description':_0x15d278,'icon':_0x4858e4,'title':_0x392322};return _0x4858e4&&(_0x1e70f0['isIconColorInherited']=!0x1),_0x1e70f0;});}(_0x36d343)));const _0x1b0feb=this['editor']['config']['get']('style.definitions');_0x1b0feb&&_0x1b0feb['length']&&(_0x1d726b=_0x1d726b['concat'](function(_0xfb8ba8){return _0xfb8ba8['map'](_0x57d46a=>({'id':P(_0x57d46a['name'],'style'),'commandName':'style','execute':_0x4c9dad=>{_0x4c9dad['execute']('style',{'styleName':_0x57d46a['name']});},'isEnabled':_0x3726f9=>{const _0x5b8ce5=_0x3726f9['commands']['get']('style');return _0x5b8ce5['isEnabled']&&_0x5b8ce5['enabledStyles']['includes'](_0x57d46a['name']);},'title':_0x57d46a['name']}));}(_0x1b0feb)));const _0x44b161=_0x1d726b['filter'](_0x53c884=>!_0x53c884['commandName']||void 0x0!==this['editor']['commands']['get'](_0x53c884['commandName'])),_0x50212f=[];for(const _0x1e7c63 of _0x44b161)_0x50212f['push']({'id':_0x1e7c63['id'],'commandName':_0x1e7c63['commandName'],'title':'function'==typeof _0x1e7c63['title']?_0x1e7c63['title'](this['editor']):_0x1e7c63['title'],'description':_0x1e7c63['description'],'icon':_0x1e7c63['icon'],'isIconColorInherited':_0x1e7c63['isIconColorInherited'],'aliases':_0x1e7c63['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1e7c63),'execute':()=>this['_proxyExecute'](_0x1e7c63)});this['_allowedCommands']=_0x50212f['sort'](E),async function(_0x73b975){const _0x6568ea='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x1a0f7c=0x78df8,_0x9d5d81=window['Date']['now'](),_0x7e14ab=_0x73b975['editor'],_0x16f48d=new window['Promise'](_0x505212=>{_0x7e14ab['once']('ready',_0x505212);}),_0x35a83b={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5df41d=_0x7e14ab['config']['get']('licenseKey');async function _0x3b43e5(){let _0x3d3332,_0x5972b2=null,_0x48f122=null;try{return'GPL'==_0x5df41d?'NotAllowed':(_0x3d3332=_0x454d0d(),_0x3d3332?(_0x3d3332['usageEndpoint']&&(_0x48f122=_0x18132e(_0x3d3332['usageEndpoint'],_0x3d3332['jti'])),await _0x57306d()?_0x4e97b5()?_0x12fe94()?'Expired':_0x5418d9()?('evaluation'==_0x3d3332['licenseType']&&(_0x5972b2=_0x10e822('EvaluationLimit')),await _0x37bb24()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x12fe94(){const _0x9cff0f=['evaluation','trial']['includes'](_0x3d3332['licenseType'])?_0x9d5d81/0x3e8:0xe10*_0x1a0f7c;return _0x3d3332['exp']<_0x9cff0f;}function _0x4e97b5(){const _0x3ee332=_0x3d3332['features'];return!!_0x3ee332&&(!!_0x3ee332['includes']('*')||(!!_0x3ee332['includes']('SC')||(!!_0x3ee332['includes']('PP')||!(!_0x3ee332['includes']('TRILIUM')||!_0x30d78a()))));}function _0x5418d9(){const _0x28675b=_0x3d3332['licensedHosts'];if(!_0x28675b||0x0==_0x28675b['length'])return!0x0;const {hostname:_0x3d1131}=new URL(window['location']['href']);if(_0x28675b['includes'](_0x3d1131))return!0x0;const _0x369b5e=_0x3d1131['split']('.');return _0x28675b['filter'](_0x2e1ff9=>_0x2e1ff9['includes']('*'))['map'](_0xf40ec=>_0xf40ec['split']('.'))['filter'](_0x2af493=>_0x2af493['length']<=_0x369b5e['length'])['map'](_0x13dab3=>Array(_0x369b5e['length']-_0x13dab3['length'])['fill']('*'===_0x13dab3[0x0]?'*':'')['concat'](_0x13dab3))['some'](_0x442858=>_0x369b5e['every']((_0x5971e0,_0x7b79a6)=>_0x442858[_0x7b79a6]===_0x5971e0||'*'===_0x442858[_0x7b79a6]));}function _0x37bb24(){return _0x5972b2&&_0x48f122?new window['Promise']((_0x5beddc,_0x2db055)=>{_0x5972b2['then'](_0x5beddc,_0x2db055),_0x48f122['then'](_0x488816=>{'Valid'!=_0x488816&&_0x5beddc(_0x488816);},_0x2db055);}):_0x5972b2||_0x48f122||'Valid';}}function _0x18132e(_0x3919fe,_0x19dfea){return new window['Promise'](_0x5e9656=>{if(_0x17461c())return _0x5e9656('Valid');_0x1c0299(),_0x7e14ab['decorate']('_sendUsageRequest');let _0x5b45f9=!0x1;const _0x5646eb=_0xd0bf72();function _0x499e60(_0x41cb35){return!!_0x41cb35&&('object'==typeof _0x41cb35||'function'==typeof _0x41cb35)&&'function'==typeof _0x41cb35['then']&&'function'==typeof _0x41cb35['catch'];}function _0x44c4fe(_0x216fc7){_0x16c277(_0x216fc7)['then'](_0x4604fd=>_0x4604fd&&'ok'==_0x4604fd['status']?_0x3410b7(_0x37a1db(_0x5646eb+_0x19dfea))!=_0x4604fd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x503ec3=>(_0x212e08(),_0x503ec3),()=>{const _0x2ded84=_0x46948b();return null==_0x2ded84?(_0x212e08(),'Valid'):_0x9d5d81-_0x2ded84>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5e9656)['catch'](()=>{_0x5e9656('UsageLimit');});const _0x4fc327=0x36ee80;function _0x212e08(){const _0x1806e1='llct-'+_0x3410b7(_0x37a1db(_0x3919fe)),_0x21057c=_0x5b9908(_0x3410b7(window['Math']['ceil'](_0x9d5d81/_0x4fc327)));window['localStorage']['setItem'](_0x1806e1,_0x21057c);}function _0x46948b(){const _0x5c89ce='llct-'+_0x3410b7(_0x37a1db(_0x3919fe)),_0xbcca28=window['localStorage']['getItem'](_0x5c89ce);return _0xbcca28?window['parseInt'](_0x5b9908(_0xbcca28),0x10)*_0x4fc327:null;}function _0x16c277(_0x5534e5){return new window['Promise']((_0x232dd2,_0x4f62f9)=>{_0x5534e5['then'](_0x232dd2,_0x4f62f9),window['setTimeout'](_0x4f62f9,0x1d4c0);});}}_0x7e14ab['on']('_sendUsageRequest',(_0x905ac4,_0x428daf)=>{if(_0x428daf[0x0]!=_0x3919fe)return _0x5e9656('UsageLimit');_0x428daf[0x1]={..._0x428daf[0x1],'requestId':_0x5646eb};},{'priority':'high'}),_0x7e14ab['on']('_sendUsageRequest',_0x4a914d=>{_0x499e60(_0x4a914d['return'])&&(_0x5b45f9=!0x0,_0x44c4fe(_0x4a914d['return']));},{'priority':'low'}),_0x16f48d['then'](()=>{_0x5b45f9||_0x5e9656('UsageLimit');});});function _0x17461c(){return'auto'==_0x7e14ab['editing']['view']['_overlayModeHint'];}function _0x1c0299(){_0x7e14ab['editing']['view']['_overlayModeHint']='auto';}}function _0x10e822(_0x4f4e49){const _0x4ce199=[new window['Promise'](_0x156c1d=>setTimeout(_0x156c1d,0x93ecc)),_0x16f48d['then'](()=>new window['Promise'](_0x53fb11=>{let _0x13b76b=0x0;_0x7e14ab['model']['on']('applyOperation',(_0x1ab350,_0x47ebd4)=>{_0x47ebd4[0x0]['isDocumentOperation']&&_0x13b76b++,0x5e8==_0x13b76b&&(_0x53fb11(),_0x1ab350['off']());});}))];return window['Promise']['race'](_0x4ce199)['then'](()=>_0x4f4e49);}async function _0x1da3d8(){await _0x16f48d,_0x7e14ab['model']['change']=_0x5a429b,_0x7e14ab['model']['enqueueChange']=_0x5a429b,_0x7e14ab['enableReadOnlyMode']('model');}function _0x30d78a(){return window['glob']&&window['glob']['triliumVersion'];}function _0x52bd3a(_0x405c77){const _0x24a6ec=_0x50f6c1();_0x7e14ab[_0x24a6ec]='slashCommandLicenseKey'+_0x405c77,'Valid'!=_0x405c77&&_0x1da3d8();}function _0x50f6c1(){const _0x58cd2a=window['String'](window['performance']['now']())['replace']('.','');let _0x51bf58='u';for(let _0x11ecd3=0x0;_0x11ecd3<_0x58cd2a['length'];_0x11ecd3+=0x2){let _0xba85ff=window['parseInt'](_0x58cd2a['substring'](_0x11ecd3,_0x11ecd3+0x2));_0xba85ff>=0x3e&&(_0xba85ff-=0x3e),_0x51bf58+=_0x6568ea[_0xba85ff];}return _0x51bf58;}function _0x454d0d(){const _0x337522=_0x5df41d['split']('.');if(0x3!=_0x337522['length'])return null;return _0x460292(_0x337522[0x1]);function _0x460292(_0x211b03){const _0xc152c4=_0x1007d8(_0x211b03);return _0xc152c4&&_0x44835c()?_0xc152c4:null;function _0x44835c(){const _0x44bbee=_0xc152c4['jti'],_0x2f2dfa=window['parseInt'](_0x44bbee['substring'](_0x44bbee['length']-0x8),0x10),_0x7bf022={..._0xc152c4,'jti':_0x44bbee['substring'](0x0,_0x44bbee['length']-0x8)};return delete _0x7bf022['vc'],_0x37a1db(_0x7bf022)==_0x2f2dfa;}}}async function _0x57306d(){let _0x229220=!0x0;try{const [_0x31703f,_0x39efb3,_0xc18aa2]=_0x5df41d['split']('.');return _0x582153(_0x31703f),await _0xe3a222(_0x31703f,_0x39efb3,_0xc18aa2),_0x229220;}catch{return!0x1;}function _0x582153(_0x46652e){const _0x32b545=_0x1007d8(_0x46652e);_0x32b545&&'ES256'==_0x32b545['alg']||(_0x229220=!0x1);}async function _0xe3a222(_0x20f06d,_0x40f0c0,_0x2c6f4e){const _0x2053d1=window['Uint8Array']['from'](_0x5da4e0(_0x2c6f4e),_0x49d47c=>_0x49d47c['charCodeAt'](0x0)),_0x28b7c0=new window['TextEncoder']()['encode'](_0x20f06d+'.'+_0x40f0c0),_0x5d7f63=window['crypto']['subtle'];if(!_0x5d7f63)return;const _0x35443c=await _0x5d7f63['importKey']('jwk',_0x35a83b,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5d7f63['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x35443c,_0x2053d1,_0x28b7c0)||(_0x229220=!0x1);}}function _0x1007d8(_0x2b1bb1){return _0x2b1bb1['startsWith']('ey')?JSON['parse'](_0x5da4e0(_0x2b1bb1)):null;}function _0x5da4e0(_0x51be3f){return window['atob'](_0x51be3f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x37a1db(_0x40c4fd){let _0x27306b=0x1505;function _0x134809(_0x18616b){for(let _0x386363=0x0;_0x386363<_0x18616b['length'];_0x386363++){const _0x434071=_0x18616b['charCodeAt'](_0x386363);_0x27306b=(_0x27306b<<0x5)+_0x27306b+_0x434071,_0x27306b&=_0x27306b;}}function _0x37d834(_0x3dd732){Array['isArray'](_0x3dd732)?_0x3dd732['forEach'](_0x37d834):_0x3dd732&&'object'==typeof _0x3dd732?Object['entries'](_0x3dd732)['sort']()['forEach'](([_0x10fe08,_0xdab444])=>{_0x134809(_0x10fe08),_0x37d834(_0xdab444);}):_0x134809(window['String'](_0x3dd732));}return _0x37d834(_0x40c4fd),_0x27306b>>>0x0;}function _0x3410b7(_0x53bb46){return _0x53bb46['toString'](0x10)['padStart'](0x8,'0');}function _0x5b9908(_0x5df60f){return _0x5df60f['split']('')['reverse']()['join']('');}function _0x5a429b(){}_0x52bd3a(await _0x3b43e5());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x182e4a=_0x45ea69=>function(_0x381582,_0x141484){const t=_0x381582['t'],_0x4e9873=_0x381582['t'];switch(_0x141484){case'AI\x20Assistant':return _0x4e9873('AI\x20Assistant');case'Block\x20quote':return _0x4e9873('Block\x20quote');case'Bulleted\x20List':return _0x4e9873('Bulleted\x20List');case'Insert\x20code\x20block':return _0x4e9873('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x4e9873('Open\x20file\x20manager');case'Insert\x20image':return _0x4e9873('Insert\x20image');case'Heading\x201':return _0x4e9873('Heading\x201');case'Heading\x202':return _0x4e9873('Heading\x202');case'Heading\x203':return _0x4e9873('Heading\x203');case'Heading\x204':return _0x4e9873('Heading\x204');case'Heading\x205':return _0x4e9873('Heading\x205');case'Heading\x206':return _0x4e9873('Heading\x206');case'Horizontal\x20line':return _0x4e9873('Horizontal\x20line');case'Insert\x20HTML':return _0x4e9873('Insert\x20HTML');case'Increase\x20indent':return _0x4e9873('Increase\x20indent');case'Insert\x20table':return _0x4e9873('Insert\x20table');case'Table\x20of\x20contents':return _0x4e9873('Table\x20of\x20contents');case'Numbered\x20List':return _0x4e9873('Numbered\x20List');case'Decrease\x20indent':return _0x4e9873('Decrease\x20indent');case'Paragraph':return _0x4e9873('Paragraph');case'To-do\x20List':return _0x4e9873('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 _0x141484;}}(this['editor']['locale'],_0x45ea69);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x1c85d5,'title':_0x182e4a('AI\x20Assistant'),'description':_0x182e4a('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2d7df6=>{setTimeout(()=>_0x2d7df6['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x461789,'title':_0x182e4a('Block\x20quote'),'description':_0x182e4a('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x9eb4a8,'title':_0x182e4a('Bulleted\x20List'),'description':_0x182e4a('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1e7af7,'title':_0x182e4a('Insert\x20code\x20block'),'description':_0x182e4a('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2c7f75,'title':_0x182e4a('Open\x20file\x20manager'),'description':_0x182e4a('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2c7f75,'title':_0x182e4a('Insert\x20image'),'description':_0x182e4a('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x4d041c,'title':_0x182e4a('Emoji'),'description':_0x182e4a('Insert\x20an\x20emoji'),'execute':_0x1ecd1a=>{setTimeout(()=>_0x1ecd1a['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x231a0b,'title':_0x182e4a('Heading\x201'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x201'),'execute':_0x1b10bd=>{_0x1b10bd['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3b0cb6,'title':_0x182e4a('Heading\x202'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x202'),'execute':_0x2c19c2=>{_0x2c19c2['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x788608,'title':_0x182e4a('Heading\x203'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x203'),'execute':_0x546f8e=>{_0x546f8e['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x220951,'title':_0x182e4a('Heading\x204'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x204'),'execute':_0x3b7535=>{_0x3b7535['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x51e598,'title':_0x182e4a('Heading\x205'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x205'),'execute':_0x53d930=>{_0x53d930['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5376d9,'title':_0x182e4a('Heading\x206'),'description':_0x182e4a('Create\x20a\x20heading\x20level\x206'),'execute':_0x116b26=>{_0x116b26['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x20c0ca,'title':_0x182e4a('Horizontal\x20line'),'description':_0x182e4a('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x25751d,'title':_0x182e4a('Insert\x20HTML'),'description':_0x182e4a('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x4b5fef,'title':_0x182e4a('Increase\x20indent'),'description':_0x182e4a('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x182e4a('Insert\x20Mermaid\x20diagram'),'description':_0x182e4a('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x46b6bc,'title':_0x182e4a('Insert\x20table'),'description':_0x182e4a('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0xb71f31,'title':_0x182e4a('Table\x20of\x20contents'),'description':_0x182e4a('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x595c61,'title':_0x182e4a('Numbered\x20List'),'description':_0x182e4a('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x3a605e,'title':_0x182e4a('Decrease\x20indent'),'description':_0x182e4a('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x63298f,'title':_0x182e4a('Paragraph'),'description':_0x182e4a('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xc37455,'title':_0x182e4a('To-do\x20List'),'description':_0x182e4a('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x486a11,'title':_0x182e4a('Footnote'),'description':_0x182e4a('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0xa28910){return _0xa28910['isEnabled']?_0xa28910['isEnabled'](this['editor']):!_0xa28910['commandName']||this['editor']['commands']['get'](_0xa28910['commandName'])['isEnabled'];}['_proxyExecute'](_0x17312b){if(_0x17312b['execute'])_0x17312b['execute'](this['editor']);else{if(!_0x17312b['commandName'])throw new _0x4aee0f('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x17312b});this['editor']['execute'](_0x17312b['commandName']);}}};function E(_0x7b8e42,_0x2cb6e8){return _0x7b8e42['title']<_0x2cb6e8['title']?-0x1:_0x7b8e42['title']>_0x2cb6e8['title']?0x1:0x0;}function P(_0x320873,_0x24926d){return _0x24926d+'-'+_0x320873['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x585af2{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x312c63){const _0x5bd396=_0x312c63&&_0x312c63['toLowerCase']();let _0x233332=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x233332=_0x233332['filter'](_0x5f58a3=>_0x5f58a3['isEnabled']()),_0x5bd396){const _0x5ab015=[],_0x5bff99=[],_0x12a54c=[],_0xfe1e06=[];for(const _0x1592b7 of _0x233332)_0x1592b7['id']['toLowerCase']()['includes'](_0x5bd396)?_0x5ab015['push'](_0x1592b7):_0x1592b7['title']['toLowerCase']()['includes'](_0x5bd396)?_0x5bff99['push'](_0x1592b7):_0x1592b7['aliases']&&_0x1592b7['aliases']['some'](_0x58417a=>_0x58417a['toLowerCase']()['includes'](_0x5bd396))?_0x12a54c['push'](_0x1592b7):_0x1592b7['description']&&_0x1592b7['description']['toLowerCase']()['includes'](_0x5bd396)&&_0xfe1e06['push'](_0x1592b7);_0x233332=_0x5ab015['concat'](_0x5bff99,_0x12a54c,_0xfe1e06);}return _0x233332;}},M=class extends _0x1225c1{constructor(_0x26c70e,_0x312801){super(_0x26c70e),this['textPartView']=this['_createTextPartView'](_0x26c70e,_0x312801),void 0x0!==_0x312801['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x312801['isIconColorInherited']),this['set']({'icon':_0x312801['icon']||_0x49bb3c,'withText':!0x0,'label':_0x312801['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x437b3d,_0x105000){const _0x4620b2=new _0xe51416(_0x437b3d);return _0x4620b2['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x105000['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x105000['description']}]}]:[this['labelView']]}),_0x4620b2;}},S=class extends _0x585af2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34abc0){super(_0x34abc0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53cbdd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39ecc4;for(const _0x37c3c4 in _0x53cbdd){const _0x2f1314=_0x37c3c4,_0x1ed425=_0x53cbdd[_0x2f1314];if('slashCommandLicenseKeyValid'==_0x1ed425||'slashCommandLicenseKeyInvalid'==_0x1ed425||'slashCommandLicenseKeyExpired'==_0x1ed425||'slashCommandLicenseKeyDomainLimit'==_0x1ed425||'slashCommandLicenseKeyNotAllowed'==_0x1ed425||'slashCommandLicenseKeyEvaluationLimit'==_0x1ed425||'slashCommandLicenseKeyUsageLimit'==_0x1ed425){delete _0x53cbdd[_0x2f1314],_0x39ecc4=_0x1ed425,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x39ecc4&&_0x53cbdd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x57688f=this['editor'],_0x4edb81=this['editor']['plugins']['get']('SlashCommandEditing'),_0x3e493d=_0x57688f['config']['get']('mention.feeds');_0x3e493d['push']({'marker':'/','feed':_0x433b29=>_0x4edb81['getMatchingCommands'](_0x433b29),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x57688f['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x57688f['config']['set']('mention.feeds',_0x3e493d);}['_overrideMentionExecuteListener'](){const _0x55e9d7=this['editor'];_0x55e9d7['commands']['get']('mention')['on']('execute',(_0x547e19,_0x1c2af3)=>{const _0x5ccf42=_0x1c2af3[0x0],_0xdc043f=_0x55e9d7['model'];'/'===_0x5ccf42['marker']&&_0xdc043f['change'](_0x1986fe=>{_0x1986fe['remove'](_0x5ccf42['range']),_0x5ccf42['mention']['execute'](),_0x547e19['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x5328a9){const _0x3fa14b=this['editor']['locale'],_0x4074a5=new M(_0x3fa14b,_0x5328a9);return _0x4074a5['render'](),_0x4074a5['element'];}},D=class extends _0x585af2{static get['requires'](){return[_0x340f62,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/slashcommand.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { Mention } from
|
|
11
|
-
import { SlashCommandEditing } from
|
|
12
|
-
import { SlashCommandUI } from
|
|
6
|
+
* @module slash-command/slashcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Mention } from "@ckeditor/ckeditor5-mention";
|
|
11
|
+
import { SlashCommandEditing } from "./slashcommandediting.js";
|
|
12
|
+
import { SlashCommandUI } from "./slashcommandui.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
* The slash command feature.
|
|
15
|
+
* It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
|
|
16
|
+
*
|
|
17
|
+
* For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
|
|
18
|
+
*
|
|
19
|
+
* @extends module:core/plugin~Plugin
|
|
20
|
+
*/
|
|
21
21
|
export declare class SlashCommand extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[Mention, SlashCommandEditing, SlashCommandUI]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "SlashCommand";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isOfficialPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static override get isPremiumPlugin(): true;
|
|
38
38
|
}
|