@ckeditor/ckeditor5-slash-command 48.2.0-alpha.7 → 48.3.0-alpha.0
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 _0x3e7a57}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x109bc8}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x1338d1,uid as _0x484ab7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x405558,IconQuote as _0x1abbfd,IconBulletedList as _0x44e07d,IconCodeBlock as _0x560931,IconBrowseFiles as _0xb1eab9,IconEmoji as _0x30ad20,IconHeading1 as _0x40d418,IconHeading2 as _0x51911a,IconHeading3 as _0x8586dd,IconHeading4 as _0x3d86eb,IconHeading5 as _0x258d9f,IconHeading6 as _0x727d01,IconHorizontalLine as _0x27561b,IconHtml as _0x26b0a2,IconIndent as _0x38814d,IconTable as _0x376fe8,IconTableOfContents as _0x530bd5,IconNumberedList as _0x162e2a,IconOutdent as _0x176759,IconParagraph as _0x31d01b,IconTodoList as _0xbd649,IconFootnote as _0x39c80b,IconPlay as _0xc25184}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x9e14e3,View as _0x5a1d47}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x3e7a57{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bb895){super(_0x2bb895),this['_allowedCommands']=null;}['afterInit'](){const _0x2af11b=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x574133=function(_0x24ad3f){let _0x3eaa39=['heading4','heading5','heading6'];if(_0x24ad3f){const _0x42cb72=_0x24ad3f['map'](_0x2c0e66=>_0x2c0e66['model']);_0x3eaa39=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x3defef=>!_0x42cb72['includes'](_0x3defef));}return _0x3eaa39;}(this['editor']['config']['get']('heading.options'));let _0x2a5e7f=this['getDefaultCommands']()['filter'](_0x58a5c4=>!_0x574133['includes'](_0x58a5c4['id']))['filter'](_0x2c6962=>!_0x2af11b['includes'](_0x2c6962['commandName']));const _0x506829=this['editor']['config']['get']('slashCommand.extraCommands');_0x506829&&_0x506829['length']&&(_0x2a5e7f=_0x2a5e7f['concat'](_0x506829));const _0x1ae908=this['editor']['config']['get']('template.definitions');_0x1ae908&&_0x1ae908['length']&&(_0x2a5e7f=_0x2a5e7f['concat'](function(_0x942de3){return _0x942de3['map'](_0x391af2=>{const {title:_0x29d842,icon:_0x4f8224,description:_0x3d74a7,data:_0x238c47}=_0x391af2,_0x100500={'id':O(_0x29d842,'template'),'commandName':'insertTemplate','execute':_0x213fa9=>{_0x213fa9['execute']('insertTemplate',_0x238c47);},'description':_0x3d74a7,'icon':_0x4f8224,'title':_0x29d842};return _0x4f8224&&(_0x100500['isIconColorInherited']=!0x1),_0x100500;});}(_0x1ae908)));const _0x39fdbb=this['editor']['config']['get']('style.definitions');_0x39fdbb&&_0x39fdbb['length']&&(_0x2a5e7f=_0x2a5e7f['concat'](function(_0x5a3ea9){return _0x5a3ea9['map'](_0x2f9e01=>({'id':O(_0x2f9e01['name'],'style'),'commandName':'style','execute':_0x1c7bf4=>{_0x1c7bf4['execute']('style',{'styleName':_0x2f9e01['name']});},'isEnabled':_0x5454c5=>{const _0x279088=_0x5454c5['commands']['get']('style');return _0x279088['isEnabled']&&_0x279088['enabledStyles']['includes'](_0x2f9e01['name']);},'title':_0x2f9e01['name']}));}(_0x39fdbb)));const _0x12b72a=_0x2a5e7f['filter'](_0x2517de=>!_0x2517de['commandName']||void 0x0!==this['editor']['commands']['get'](_0x2517de['commandName'])),_0x1d7359=[];for(const _0x4181b8 of _0x12b72a)_0x1d7359['push']({'id':_0x4181b8['id'],'commandName':_0x4181b8['commandName'],'title':'function'==typeof _0x4181b8['title']?_0x4181b8['title'](this['editor']):_0x4181b8['title'],'description':_0x4181b8['description'],'icon':_0x4181b8['icon'],'isIconColorInherited':_0x4181b8['isIconColorInherited'],'aliases':_0x4181b8['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4181b8),'execute':()=>this['_proxyExecute'](_0x4181b8)});this['_allowedCommands']=_0x1d7359['sort'](S),async function(_0x11b999){const _0x5942cb=_0x4e75a7([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]),_0x46ecfd=0x305505ed,_0x1b28a5=0x30528e3d^_0x46ecfd,_0x9ee4b9=window[_0x4e75a7([0x44,0x61,0x74,0x65])][_0x4e75a7([0x6e,0x6f,0x77])](),_0x4d6ce8=_0x11b999[_0x4e75a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x90de81=new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b1b42=>{_0x4d6ce8[_0x4e75a7([0x6f,0x6e,0x63,0x65])](_0x4e75a7([0x72,0x65,0x61,0x64,0x79]),_0x5b1b42);}),_0x1eddfd={[_0x4e75a7([0x6b,0x74,0x79])]:_0x4e75a7([0x45,0x43]),[_0x4e75a7([0x75,0x73,0x65])]:_0x4e75a7([0x73,0x69,0x67]),[_0x4e75a7([0x63,0x72,0x76])]:_0x4e75a7([0x50,0x2d,0x32,0x35,0x36]),[_0x4e75a7([0x78])]:_0x4e75a7([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]),[_0x4e75a7([0x79])]:_0x4e75a7([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]),[_0x4e75a7([0x61,0x6c,0x67])]:_0x4e75a7([0x45,0x53,0x32,0x35,0x36])},_0x25114e=_0x4d6ce8[_0x4e75a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e75a7([0x67,0x65,0x74])](_0x4e75a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46ba28(){let _0x258fa1,_0x3522bc=null,_0x766954=null;try{if(_0x25114e==_0x4e75a7([0x47,0x50,0x4c]))return _0x4e75a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x258fa1=_0x1e621f(),!_0x258fa1)return _0x4e75a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x258fa1[_0x4e75a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x766954=_0x1ee4fb(_0x258fa1[_0x4e75a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x258fa1[_0x4e75a7([0x6a,0x74,0x69])])),await _0x21257a()?_0x1f0fc5()?_0x6e4f33()?_0x4e75a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46491d()?(_0x258fa1[_0x4e75a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e75a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3522bc=_0xbf8534(_0x4e75a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e4928()):_0x4e75a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e75a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e75a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e75a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6e4f33(){const _0x273221=[_0x4e75a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e75a7([0x74,0x72,0x69,0x61,0x6c])][_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x258fa1[_0x4e75a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9ee4b9/0x3e8:0xe10*_0x1b28a5;return _0x258fa1[_0x4e75a7([0x65,0x78,0x70])]<_0x273221;}function _0x1f0fc5(){const _0x5b0037=_0x258fa1[_0x4e75a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b0037&&(!!_0x5b0037[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75a7([0x2a]))||(!!_0x5b0037[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75a7([0x53,0x43]))||(!!_0x5b0037[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75a7([0x50,0x50]))||!(!_0x5b0037[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75a7([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x20bc64()))));}function _0x46491d(){const _0x997089=_0x258fa1[_0x4e75a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x997089||0x0==_0x997089[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f3613}=new URL(window[_0x4e75a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x997089[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3613))return!0x0;const _0x2014a4=_0x1f3613[_0x4e75a7([0x73,0x70,0x6c,0x69,0x74])](_0x4e75a7([0x2e]));return _0x997089[_0x4e75a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50eeac=>_0x50eeac[_0x4e75a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75a7([0x2a])))[_0x4e75a7([0x6d,0x61,0x70])](_0x1179a2=>_0x1179a2[_0x4e75a7([0x73,0x70,0x6c,0x69,0x74])](_0x4e75a7([0x2e])))[_0x4e75a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3185=>_0x3e3185[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2014a4[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e75a7([0x6d,0x61,0x70])](_0x54b910=>Array(_0x2014a4[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54b910[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e75a7([0x66,0x69,0x6c,0x6c])](_0x54b910[0x0]===_0x4e75a7([0x2a])?_0x4e75a7([0x2a]):'')[_0x4e75a7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54b910))[_0x4e75a7([0x73,0x6f,0x6d,0x65])](_0x12caa3=>_0x2014a4[_0x4e75a7([0x65,0x76,0x65,0x72,0x79])]((_0x5ddf6e,_0x32e7ee)=>_0x12caa3[_0x32e7ee]===_0x5ddf6e||_0x12caa3[_0x32e7ee]===_0x4e75a7([0x2a])));}function _0x5e4928(){return _0x3522bc&&_0x766954?new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4670c0,_0x3b699c)=>{_0x3522bc[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x4670c0,_0x3b699c),_0x766954[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x16506e=>{_0x16506e!=_0x4e75a7([0x56,0x61,0x6c,0x69,0x64])&&_0x4670c0(_0x16506e);},_0x3b699c);}):_0x3522bc||_0x766954||_0x4e75a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ee4fb(_0x3d4e73,_0x17b106){return new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x292795=>{if(_0x116bb0())return _0x292795(_0x4e75a7([0x56,0x61,0x6c,0x69,0x64]));_0x377c14(),_0x4d6ce8[_0x4e75a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e75a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c37c=!0x1;const _0x1f6bc0=_0x484ab7();function _0x14d698(_0x38177b){return!!_0x38177b&&(typeof _0x38177b===_0x4e75a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38177b===_0x4e75a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38177b[_0x4e75a7([0x74,0x68,0x65,0x6e])]===_0x4e75a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38177b[_0x4e75a7([0x63,0x61,0x74,0x63,0x68])]===_0x4e75a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x66b1b(_0x3cdd6a){_0x176851(_0x3cdd6a)[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x275597=>{if(!_0x275597||_0x275597[_0x4e75a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e75a7([0x6f,0x6b]))return _0x4e75a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106ec2(_0x220915(_0x1f6bc0+_0x17b106))!=_0x275597[_0x4e75a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e75a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e75a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x3f30c0=>(_0x3d6e97(),_0x3f30c0),()=>{const _0x8e027c=_0x3d71c0();return null==_0x8e027c?(_0x3d6e97(),_0x4e75a7([0x56,0x61,0x6c,0x69,0x64])):_0x4e75a7(_0x9ee4b9-_0x8e027c>(0x145981ed^_0x46ecfd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x292795)[_0x4e75a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x292795(_0x4e75a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24db2e=0x3063eb6d^_0x46ecfd;function _0x3d6e97(){const _0x21abda=_0x4e75a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x106ec2(_0x220915(_0x3d4e73)),_0x3be2c2=_0x64038c(_0x106ec2(window[_0x4e75a7([0x4d,0x61,0x74,0x68])][_0x4e75a7([0x63,0x65,0x69,0x6c])](_0x9ee4b9/_0x24db2e)));window[_0x4e75a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e75a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21abda,_0x3be2c2);}function _0x3d71c0(){const _0x1a6ac7=_0x4e75a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x106ec2(_0x220915(_0x3d4e73)),_0x3b082d=window[_0x4e75a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e75a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a6ac7);return _0x3b082d?window[_0x4e75a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x64038c(_0x3b082d),0x10)*_0x24db2e:null;}function _0x176851(_0x5a8e76){return new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29f8d8,_0x1aee71)=>{_0x5a8e76[_0x4e75a7([0x74,0x68,0x65,0x6e])](_0x29f8d8,_0x1aee71),window[_0x4e75a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aee71,0x3054d12d^_0x46ecfd);});}}_0x4d6ce8[_0x4e75a7([0x6f,0x6e])](_0x4e75a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41aea3,_0x78e065)=>{if(_0x78e065[0x0]!=_0x3d4e73)return _0x292795(_0x4e75a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x78e065[0x1]={..._0x78e065[0x1],[_0x4e75a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f6bc0};},{[_0x4e75a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e75a7([0x68,0x69,0x67,0x68])}),_0x4d6ce8[_0x4e75a7([0x6f,0x6e])](_0x4e75a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43072f=>{_0x14d698(_0x43072f[_0x4e75a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c37c=!0x0,_0x66b1b(_0x43072f[_0x4e75a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e75a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e75a7([0x6c,0x6f,0x77])}),_0x90de81[_0x4e75a7([0x74,0x68,0x65,0x6e])](()=>{_0x42c37c||_0x292795(_0x4e75a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x116bb0(){return _0x4d6ce8[_0x4e75a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e75a7([0x76,0x69,0x65,0x77])][_0x4e75a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e75a7([0x61,0x75,0x74,0x6f]);}function _0x377c14(){_0x4d6ce8[_0x4e75a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e75a7([0x76,0x69,0x65,0x77])][_0x4e75a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e75a7([0x61,0x75,0x74,0x6f]);}}function _0xbf8534(_0x46cfa4){const _0x3c1d05=[new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a8781=>setTimeout(_0x2a8781,0x305c3b21^_0x46ecfd)),_0x90de81[_0x4e75a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41b9f9=>{let _0x1e7f83=0x0;_0x4d6ce8[_0x4e75a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75a7([0x6f,0x6e])](_0x4e75a7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9178a1,_0x5daa24)=>{_0x5daa24[0x0][_0x4e75a7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e7f83++,_0x1e7f83==(0x30550005^_0x46ecfd)&&(_0x41b9f9(),_0x9178a1[_0x4e75a7([0x6f,0x66,0x66])]());});}))];return window[_0x4e75a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e75a7([0x72,0x61,0x63,0x65])](_0x3c1d05)[_0x4e75a7([0x74,0x68,0x65,0x6e])](()=>_0x46cfa4);}async function _0x4a5d3a(){await _0x90de81,_0x4d6ce8[_0x4e75a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5161d8,_0x4d6ce8[_0x4e75a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5161d8,_0x4d6ce8[_0x4e75a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e75a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20bc64(){return window[_0x4e75a7([0x67,0x6c,0x6f,0x62])]&&window[_0x4e75a7([0x67,0x6c,0x6f,0x62])][_0x4e75a7([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x31f135(_0x35042b){const _0xaa172f=_0x2c5b2f();_0x4d6ce8[_0xaa172f]=_0x4e75a7([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35042b,_0x35042b!=_0x4e75a7([0x56,0x61,0x6c,0x69,0x64])&&_0x4a5d3a();}function _0x2c5b2f(){const _0x1d64b5=window[_0x4e75a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e75a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e75a7([0x6e,0x6f,0x77])]())[_0x4e75a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e75a7([0x2e]),'');let _0x5f46cc=_0x4e75a7([0x75]);for(let _0x3ca4b3=0x0;_0x3ca4b3<_0x1d64b5[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ca4b3+=0x2){let _0x58f0a7=window[_0x4e75a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d64b5[_0x4e75a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ca4b3,_0x3ca4b3+0x2));_0x58f0a7>=_0x5942cb[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58f0a7-=_0x5942cb[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f46cc+=_0x5942cb[_0x58f0a7];}return _0x5f46cc;}function _0x1e621f(){const _0x2ac765=_0x25114e[_0x4e75a7([0x73,0x70,0x6c,0x69,0x74])](_0x4e75a7([0x2e]));if(0x3!=_0x2ac765[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d24d9(_0x2ac765[0x1]);function _0x2d24d9(_0x576e5f){const _0x2405b4=_0x1d9ec6(_0x576e5f);return _0x2405b4&&_0x2ff5ec()?_0x2405b4:null;function _0x2ff5ec(){const _0x54a85e=_0x2405b4[_0x4e75a7([0x6a,0x74,0x69])],_0xa74abc=window[_0x4e75a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54a85e[_0x4e75a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54a85e[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4de27a={..._0x2405b4,[_0x4e75a7([0x6a,0x74,0x69])]:_0x54a85e[_0x4e75a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54a85e[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4de27a[_0x4e75a7([0x76,0x63])],_0x220915(_0x4de27a)==_0xa74abc;}}}async function _0x21257a(){let _0x53ee7a=!0x0;try{const _0x3eb576=_0x25114e[_0x4e75a7([0x73,0x70,0x6c,0x69,0x74])](_0x4e75a7([0x2e])),[_0x1126cc,_0x5f3b4a,_0xed8bac]=_0x3eb576;return _0x2242c7(_0x1126cc),await _0x4ea813(_0x1126cc,_0x5f3b4a,_0xed8bac),_0x53ee7a;}catch{return!0x1;}function _0x2242c7(_0x3c5b6c){const _0x10d7c0=_0x1d9ec6(_0x3c5b6c);_0x10d7c0&&_0x10d7c0[_0x4e75a7([0x61,0x6c,0x67])]==_0x4e75a7([0x45,0x53,0x32,0x35,0x36])||(_0x53ee7a=!0x1);}async function _0x4ea813(_0x3ff48a,_0x3f8fe3,_0x27579d){const _0x33a85d=window[_0x4e75a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e75a7([0x66,0x72,0x6f,0x6d])](_0x14927f(_0x27579d),_0xf39308=>_0xf39308[_0x4e75a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53ff4e=new window[(_0x4e75a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e75a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ff48a+_0x4e75a7([0x2e])+_0x3f8fe3),_0x2bc710=window[_0x4e75a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e75a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bc710)return;const _0x330a93=await _0x2bc710[_0x4e75a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e75a7([0x6a,0x77,0x6b]),_0x1eddfd,{[_0x4e75a7([0x6e,0x61,0x6d,0x65])]:_0x4e75a7([0x45,0x43,0x44,0x53,0x41]),[_0x4e75a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e75a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e75a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bc710[_0x4e75a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e75a7([0x6e,0x61,0x6d,0x65])]:_0x4e75a7([0x45,0x43,0x44,0x53,0x41]),[_0x4e75a7([0x68,0x61,0x73,0x68])]:{[_0x4e75a7([0x6e,0x61,0x6d,0x65])]:_0x4e75a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x330a93,_0x33a85d,_0x53ff4e)||(_0x53ee7a=!0x1);}}function _0x1d9ec6(_0x5f2e04){return _0x5f2e04[_0x4e75a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e75a7([0x65,0x79]))?JSON[_0x4e75a7([0x70,0x61,0x72,0x73,0x65])](_0x14927f(_0x5f2e04)):null;}function _0x14927f(_0x228ca1){return window[_0x4e75a7([0x61,0x74,0x6f,0x62])](_0x228ca1[_0x4e75a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e75a7([0x2b]))[_0x4e75a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e75a7([0x2f])));}function _0x220915(_0x477800){let _0x29d7dd=0x1505;function _0x2cd80c(_0x5bb63d){for(let _0x5ab1ee=0x0;_0x5ab1ee<_0x5bb63d[_0x4e75a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ab1ee++){const _0x4622d5=_0x5bb63d[_0x4e75a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ab1ee);_0x29d7dd=(_0x29d7dd<<0x5)+_0x29d7dd+_0x4622d5,_0x29d7dd&=_0x29d7dd;}}function _0x4f1f2c(_0x472bd9){Array[_0x4e75a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x472bd9)?_0x472bd9[_0x4e75a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f1f2c):_0x472bd9&&typeof _0x472bd9==_0x4e75a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e75a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x472bd9)[_0x4e75a7([0x73,0x6f,0x72,0x74])]()[_0x4e75a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48d315,_0x318698])=>{_0x2cd80c(_0x48d315),_0x4f1f2c(_0x318698);}):_0x2cd80c(window[_0x4e75a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x472bd9));}return _0x4f1f2c(_0x477800),_0x29d7dd>>>0x0;}function _0x106ec2(_0x26185e){return _0x26185e[_0x4e75a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e75a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e75a7([0x30]));}function _0x64038c(_0x29caa6){return _0x29caa6[_0x4e75a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e75a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e75a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5161d8(){}function _0x4e75a7(_0x1bb017){return _0x1bb017['map'](_0xae9b4=>String['fromCharCode'](_0xae9b4))['join']('');}_0x31f135(await _0x46ba28());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3dddcc=_0x28e406=>function(_0x1ccdc5,_0x1099b8){const t=_0x1ccdc5['t'],_0x5018a3=_0x1ccdc5['t'];switch(_0x1099b8){case'AI\x20Assistant':return _0x5018a3('AI\x20Assistant');case'Block\x20quote':return _0x5018a3('Block\x20quote');case'Bulleted\x20List':return _0x5018a3('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5018a3('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5018a3('Open\x20file\x20manager');case'Insert\x20image':return _0x5018a3('Insert\x20image');case'Heading\x201':return _0x5018a3('Heading\x201');case'Heading\x202':return _0x5018a3('Heading\x202');case'Heading\x203':return _0x5018a3('Heading\x203');case'Heading\x204':return _0x5018a3('Heading\x204');case'Heading\x205':return _0x5018a3('Heading\x205');case'Heading\x206':return _0x5018a3('Heading\x206');case'Horizontal\x20line':return _0x5018a3('Horizontal\x20line');case'Insert\x20HTML':return _0x5018a3('Insert\x20HTML');case'Increase\x20indent':return _0x5018a3('Increase\x20indent');case'Insert\x20table':return _0x5018a3('Insert\x20table');case'Table\x20of\x20contents':return _0x5018a3('Table\x20of\x20contents');case'Numbered\x20List':return _0x5018a3('Numbered\x20List');case'Decrease\x20indent':return _0x5018a3('Decrease\x20indent');case'Paragraph':return _0x5018a3('Paragraph');case'To-do\x20List':return _0x5018a3('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 _0x1099b8;}}(this['editor']['locale'],_0x28e406);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x405558,'title':_0x3dddcc('AI\x20Assistant'),'description':_0x3dddcc('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0xd11e17=>{setTimeout(()=>_0xd11e17['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1abbfd,'title':_0x3dddcc('Block\x20quote'),'description':_0x3dddcc('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x44e07d,'title':_0x3dddcc('Bulleted\x20List'),'description':_0x3dddcc('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x560931,'title':_0x3dddcc('Insert\x20code\x20block'),'description':_0x3dddcc('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0xb1eab9,'title':_0x3dddcc('Open\x20file\x20manager'),'description':_0x3dddcc('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0xb1eab9,'title':_0x3dddcc('Insert\x20image'),'description':_0x3dddcc('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x30ad20,'title':_0x3dddcc('Emoji'),'description':_0x3dddcc('Insert\x20an\x20emoji'),'execute':_0x354884=>{setTimeout(()=>_0x354884['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x40d418,'title':_0x3dddcc('Heading\x201'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x201'),'execute':_0x493a21=>{_0x493a21['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x51911a,'title':_0x3dddcc('Heading\x202'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x202'),'execute':_0x21c37f=>{_0x21c37f['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x8586dd,'title':_0x3dddcc('Heading\x203'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x203'),'execute':_0x270c54=>{_0x270c54['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3d86eb,'title':_0x3dddcc('Heading\x204'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x204'),'execute':_0x2add58=>{_0x2add58['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x258d9f,'title':_0x3dddcc('Heading\x205'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x205'),'execute':_0x5559fb=>{_0x5559fb['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x727d01,'title':_0x3dddcc('Heading\x206'),'description':_0x3dddcc('Create\x20a\x20heading\x20level\x206'),'execute':_0x3db730=>{_0x3db730['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x27561b,'title':_0x3dddcc('Horizontal\x20line'),'description':_0x3dddcc('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x26b0a2,'title':_0x3dddcc('Insert\x20HTML'),'description':_0x3dddcc('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x38814d,'title':_0x3dddcc('Increase\x20indent'),'description':_0x3dddcc('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3dddcc('Insert\x20Mermaid\x20diagram'),'description':_0x3dddcc('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x376fe8,'title':_0x3dddcc('Insert\x20table'),'description':_0x3dddcc('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x530bd5,'title':_0x3dddcc('Table\x20of\x20contents'),'description':_0x3dddcc('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x162e2a,'title':_0x3dddcc('Numbered\x20List'),'description':_0x3dddcc('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x176759,'title':_0x3dddcc('Decrease\x20indent'),'description':_0x3dddcc('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x31d01b,'title':_0x3dddcc('Paragraph'),'description':_0x3dddcc('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xbd649,'title':_0x3dddcc('To-do\x20List'),'description':_0x3dddcc('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x39c80b,'title':_0x3dddcc('Footnote'),'description':_0x3dddcc('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x113162){return _0x113162['isEnabled']?_0x113162['isEnabled'](this['editor']):!_0x113162['commandName']||this['editor']['commands']['get'](_0x113162['commandName'])['isEnabled'];}['_proxyExecute'](_0x4329d1){if(_0x4329d1['execute'])_0x4329d1['execute'](this['editor']);else{if(!_0x4329d1['commandName'])throw new _0x1338d1('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x4329d1});this['editor']['execute'](_0x4329d1['commandName']);}}}function S(_0x4f31aa,_0x4f26e4){return _0x4f31aa['title']<_0x4f26e4['title']?-0x1:_0x4f31aa['title']>_0x4f26e4['title']?0x1:0x0;}function O(_0x8e6fa1,_0x2875e1){return _0x2875e1+'-'+_0x8e6fa1['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x3e7a57{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2c1da5){const _0x139e4f=_0x2c1da5&&_0x2c1da5['toLowerCase']();let _0x3a8197=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x3a8197=_0x3a8197['filter'](_0x415148=>_0x415148['isEnabled']()),_0x139e4f){const _0x592e87=[],_0x28c21d=[],_0x1931a3=[],_0x5085c1=[];for(const _0x5bea5a of _0x3a8197)_0x5bea5a['id']['toLowerCase']()['includes'](_0x139e4f)?_0x592e87['push'](_0x5bea5a):_0x5bea5a['title']['toLowerCase']()['includes'](_0x139e4f)?_0x28c21d['push'](_0x5bea5a):_0x5bea5a['aliases']&&_0x5bea5a['aliases']['some'](_0xb812d2=>_0xb812d2['toLowerCase']()['includes'](_0x139e4f))?_0x1931a3['push'](_0x5bea5a):_0x5bea5a['description']&&_0x5bea5a['description']['toLowerCase']()['includes'](_0x139e4f)&&_0x5085c1['push'](_0x5bea5a);_0x3a8197=_0x592e87['concat'](_0x28c21d,_0x1931a3,_0x5085c1);}return _0x3a8197;}}class SlashCommandButtonView extends _0x9e14e3{constructor(_0x2f9d82,_0x526f1c){super(_0x2f9d82),this['textPartView']=this['_createTextPartView'](_0x2f9d82,_0x526f1c),void 0x0!==_0x526f1c['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x526f1c['isIconColorInherited']),this['set']({'icon':_0x526f1c['icon']||_0xc25184,'withText':!0x0,'label':_0x526f1c['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x222982,_0x38954a){const _0x4eb712=new _0x5a1d47(_0x222982);return _0x4eb712['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x38954a['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x38954a['description']}]}]:[this['labelView']]}),_0x4eb712;}}class SlashCommandUI extends _0x3e7a57{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446776){super(_0x446776),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54ab56=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c2fb1;for(const _0x21ea61 in _0x54ab56){const _0x29733d=_0x21ea61,_0x49c199=_0x54ab56[_0x29733d];if('slashCommandLicenseKeyValid'==_0x49c199||'slashCommandLicenseKeyInvalid'==_0x49c199||'slashCommandLicenseKeyExpired'==_0x49c199||'slashCommandLicenseKeyDomainLimit'==_0x49c199||'slashCommandLicenseKeyNotAllowed'==_0x49c199||'slashCommandLicenseKeyEvaluationLimit'==_0x49c199||'slashCommandLicenseKeyUsageLimit'==_0x49c199){delete _0x54ab56[_0x29733d],_0x4c2fb1=_0x49c199,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4c2fb1&&_0x54ab56['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x5159dc=this['editor'],_0x3ee276=this['editor']['plugins']['get']('SlashCommandEditing'),_0x526a5e=_0x5159dc['config']['get']('mention.feeds');_0x526a5e['push']({'marker':'/','feed':_0x15c8da=>_0x3ee276['getMatchingCommands'](_0x15c8da),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x5159dc['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x5159dc['config']['set']('mention.feeds',_0x526a5e);}['_overrideMentionExecuteListener'](){const _0x735c7c=this['editor'];_0x735c7c['commands']['get']('mention')['on']('execute',(_0x34b4ea,_0x31d220)=>{const _0x3bc03d=_0x31d220[0x0],_0x18d638=_0x735c7c['model'];'/'===_0x3bc03d['marker']&&_0x18d638['change'](_0x141583=>{_0x141583['remove'](_0x3bc03d['range']),_0x3bc03d['mention']['execute'](),_0x34b4ea['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x12fc3e){const _0x2cba5d=this['editor']['locale'],_0x4bdb4c=new SlashCommandButtonView(_0x2cba5d,_0x12fc3e);return _0x4bdb4c['render'](),_0x4bdb4c['element'];}}class SlashCommand extends _0x3e7a57{static get['requires'](){return[_0x109bc8,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 _0x1791db}from'@ckeditor/ckeditor5-core';import{Mention as _0x437adc}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x524e56,uid as _0x1a3fe8}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x469ff8,IconBulletedList as _0x1639b3,IconCodeBlock as _0x9d8de7,IconEmoji as _0x2cd4ed,IconFootnote as _0x58eb65,IconHeading1 as _0x1da821,IconHeading2 as _0x1c81b8,IconHeading3 as _0x2c6090,IconHeading4 as _0x383cc0,IconHeading5 as _0x830da,IconHeading6 as _0x42c71f,IconHorizontalLine as _0x2b6a9c,IconHtml as _0x53842a,IconIndent as _0x446e36,IconNumberedList as _0x5ea723,IconOutdent as _0x50cedf,IconParagraph as _0x3eae88,IconPlay as _0x4005e7,IconQuote as _0x288ec1,IconRobotPencil as _0x6daf74,IconTable as _0x16fe3e,IconTableOfContents as _0x5bf635,IconTodoList as _0x47e603}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x177d55,View as _0x56dd9b}from'@ckeditor/ckeditor5-ui';var O=class extends _0x1791db{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42232c){super(_0x42232c),this['_allowedCommands']=null;}['afterInit'](){const _0x4f0303=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x678c1c=function(_0xb89cf9){let _0xca8471=['heading4','heading5','heading6'];if(_0xb89cf9){const _0xeedee0=_0xb89cf9['map'](_0x4e85ac=>_0x4e85ac['model']);_0xca8471=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x13c315=>!_0xeedee0['includes'](_0x13c315));}return _0xca8471;}(this['editor']['config']['get']('heading.options'));let _0x257b1a=this['getDefaultCommands']()['filter'](_0x2a0aef=>!_0x678c1c['includes'](_0x2a0aef['id']))['filter'](_0x20f316=>!_0x4f0303['includes'](_0x20f316['commandName']));const _0x39cebd=this['editor']['config']['get']('slashCommand.extraCommands');_0x39cebd&&_0x39cebd['length']&&(_0x257b1a=_0x257b1a['concat'](_0x39cebd));const _0x2b40c4=this['editor']['config']['get']('template.definitions');_0x2b40c4&&_0x2b40c4['length']&&(_0x257b1a=_0x257b1a['concat'](function(_0x4a0806){return _0x4a0806['map'](_0x115926=>{const {title:_0x3547bb,icon:_0x4d1665,description:_0x420218,data:_0x1ee989}=_0x115926,_0x4b70c1={'id':P(_0x3547bb,'template'),'commandName':'insertTemplate','execute':_0x5c0373=>{_0x5c0373['execute']('insertTemplate',_0x1ee989);},'description':_0x420218,'icon':_0x4d1665,'title':_0x3547bb};return _0x4d1665&&(_0x4b70c1['isIconColorInherited']=!0x1),_0x4b70c1;});}(_0x2b40c4)));const _0x390fa7=this['editor']['config']['get']('style.definitions');_0x390fa7&&_0x390fa7['length']&&(_0x257b1a=_0x257b1a['concat'](function(_0x4eb8ed){return _0x4eb8ed['map'](_0x15311d=>({'id':P(_0x15311d['name'],'style'),'commandName':'style','execute':_0x30eb76=>{_0x30eb76['execute']('style',{'styleName':_0x15311d['name']});},'isEnabled':_0x36a4bf=>{const _0x102549=_0x36a4bf['commands']['get']('style');return _0x102549['isEnabled']&&_0x102549['enabledStyles']['includes'](_0x15311d['name']);},'title':_0x15311d['name']}));}(_0x390fa7)));const _0x25a38d=_0x257b1a['filter'](_0x494c68=>!_0x494c68['commandName']||void 0x0!==this['editor']['commands']['get'](_0x494c68['commandName'])),_0x31405f=[];for(const _0x5b2ae4 of _0x25a38d)_0x31405f['push']({'id':_0x5b2ae4['id'],'commandName':_0x5b2ae4['commandName'],'title':'function'==typeof _0x5b2ae4['title']?_0x5b2ae4['title'](this['editor']):_0x5b2ae4['title'],'description':_0x5b2ae4['description'],'icon':_0x5b2ae4['icon'],'isIconColorInherited':_0x5b2ae4['isIconColorInherited'],'aliases':_0x5b2ae4['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x5b2ae4),'execute':()=>this['_proxyExecute'](_0x5b2ae4)});this['_allowedCommands']=_0x31405f['sort'](E),async function(_0x4e67fc){const _0x37c092='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x55647a=0x78de0,_0x43354b=window['Date']['now'](),_0x3c8ed=_0x4e67fc['editor'],_0x37151b=new window['Promise'](_0xb01382=>{_0x3c8ed['once']('ready',_0xb01382);}),_0x40c6aa={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2360e0=_0x3c8ed['config']['get']('licenseKey');async function _0x517727(){let _0x2ae86a,_0x5cb3e2=null,_0x3d418c=null;try{return'GPL'==_0x2360e0?'NotAllowed':(_0x2ae86a=_0x44500c(),_0x2ae86a?(_0x2ae86a['usageEndpoint']&&(_0x3d418c=_0x53371e(_0x2ae86a['usageEndpoint'],_0x2ae86a['jti'])),await _0x3b8add()?_0x53eca6()?_0x4b21fb()?'Expired':_0x1d3df2()?('evaluation'==_0x2ae86a['licenseType']&&(_0x5cb3e2=_0x53df0e('EvaluationLimit')),await _0x7ae514()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4b21fb(){const _0x3abd4c=['evaluation','trial']['includes'](_0x2ae86a['licenseType'])?_0x43354b/0x3e8:0xe10*_0x55647a;return _0x2ae86a['exp']<_0x3abd4c;}function _0x53eca6(){const _0x26e0ad=_0x2ae86a['features'];return!!_0x26e0ad&&(!!_0x26e0ad['includes']('*')||(!!_0x26e0ad['includes']('SC')||(!!_0x26e0ad['includes']('PP')||!(!_0x26e0ad['includes']('TRILIUM')||!_0x3f64b8()))));}function _0x1d3df2(){const _0x43dac2=_0x2ae86a['licensedHosts'];if(!_0x43dac2||0x0==_0x43dac2['length'])return!0x0;const {hostname:_0x1af02c}=new URL(window['location']['href']);if(_0x43dac2['includes'](_0x1af02c))return!0x0;const _0x3e9f5d=_0x1af02c['split']('.');return _0x43dac2['filter'](_0xf4ec7=>_0xf4ec7['includes']('*'))['map'](_0xaf7a3e=>_0xaf7a3e['split']('.'))['filter'](_0x23b772=>_0x23b772['length']<=_0x3e9f5d['length'])['map'](_0x1aafd8=>Array(_0x3e9f5d['length']-_0x1aafd8['length'])['fill']('*'===_0x1aafd8[0x0]?'*':'')['concat'](_0x1aafd8))['some'](_0x1f458d=>_0x3e9f5d['every']((_0x60a84,_0xb55463)=>_0x1f458d[_0xb55463]===_0x60a84||'*'===_0x1f458d[_0xb55463]));}function _0x7ae514(){return _0x5cb3e2&&_0x3d418c?new window['Promise']((_0x4da04b,_0x2e3f86)=>{_0x5cb3e2['then'](_0x4da04b,_0x2e3f86),_0x3d418c['then'](_0x4a23b7=>{'Valid'!=_0x4a23b7&&_0x4da04b(_0x4a23b7);},_0x2e3f86);}):_0x5cb3e2||_0x3d418c||'Valid';}}function _0x53371e(_0x23b44f,_0x494d28){return new window['Promise'](_0x247a1b=>{if(_0x10a56e())return _0x247a1b('Valid');_0x1e5aa5(),_0x3c8ed['decorate']('_sendUsageRequest');let _0x24b904=!0x1;const _0x338c45=_0x1a3fe8();function _0xe0afda(_0x5efe9e){return!!_0x5efe9e&&('object'==typeof _0x5efe9e||'function'==typeof _0x5efe9e)&&'function'==typeof _0x5efe9e['then']&&'function'==typeof _0x5efe9e['catch'];}function _0x1056bf(_0x2c3d5f){_0x3a6fdd(_0x2c3d5f)['then'](_0x5e728b=>_0x5e728b&&'ok'==_0x5e728b['status']?_0x47507c(_0x5f2e73(_0x338c45+_0x494d28))!=_0x5e728b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2c1bae=>(_0x5c5f03(),_0x2c1bae),()=>{const _0x1afc8d=_0x9b7ac7();return null==_0x1afc8d?(_0x5c5f03(),'Valid'):_0x43354b-_0x1afc8d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x247a1b)['catch'](()=>{_0x247a1b('UsageLimit');});const _0x588d43=0x36ee80;function _0x5c5f03(){const _0x31f6be='llct-'+_0x47507c(_0x5f2e73(_0x23b44f)),_0x17e362=_0x27cfac(_0x47507c(window['Math']['ceil'](_0x43354b/_0x588d43)));window['localStorage']['setItem'](_0x31f6be,_0x17e362);}function _0x9b7ac7(){const _0x5f5036='llct-'+_0x47507c(_0x5f2e73(_0x23b44f)),_0x2d4101=window['localStorage']['getItem'](_0x5f5036);return _0x2d4101?window['parseInt'](_0x27cfac(_0x2d4101),0x10)*_0x588d43:null;}function _0x3a6fdd(_0x5b7bdf){return new window['Promise']((_0x22ab3a,_0x18df35)=>{_0x5b7bdf['then'](_0x22ab3a,_0x18df35),window['setTimeout'](_0x18df35,0x1d4c0);});}}_0x3c8ed['on']('_sendUsageRequest',(_0x1abd2c,_0x111ad6)=>{if(_0x111ad6[0x0]!=_0x23b44f)return _0x247a1b('UsageLimit');_0x111ad6[0x1]={..._0x111ad6[0x1],'requestId':_0x338c45};},{'priority':'high'}),_0x3c8ed['on']('_sendUsageRequest',_0x2125fc=>{_0xe0afda(_0x2125fc['return'])&&(_0x24b904=!0x0,_0x1056bf(_0x2125fc['return']));},{'priority':'low'}),_0x37151b['then'](()=>{_0x24b904||_0x247a1b('UsageLimit');});});function _0x10a56e(){return'auto'==_0x3c8ed['editing']['view']['_overlayModeHint'];}function _0x1e5aa5(){_0x3c8ed['editing']['view']['_overlayModeHint']='auto';}}function _0x53df0e(_0x474f8a){const _0x53b06f=[new window['Promise'](_0x36f0d0=>setTimeout(_0x36f0d0,0x93ecc)),_0x37151b['then'](()=>new window['Promise'](_0x139bb0=>{let _0x1de43e=0x0;_0x3c8ed['model']['on']('applyOperation',(_0x509285,_0x344399)=>{_0x344399[0x0]['isDocumentOperation']&&_0x1de43e++,0x5e8==_0x1de43e&&(_0x139bb0(),_0x509285['off']());});}))];return window['Promise']['race'](_0x53b06f)['then'](()=>_0x474f8a);}async function _0x394434(){await _0x37151b,_0x3c8ed['model']['change']=_0x2bbf43,_0x3c8ed['model']['enqueueChange']=_0x2bbf43,_0x3c8ed['enableReadOnlyMode']('model');}function _0x3f64b8(){return window['glob']&&window['glob']['triliumVersion'];}function _0x2def4b(_0x136417){const _0x4a199f=_0x261900();_0x3c8ed[_0x4a199f]='slashCommandLicenseKey'+_0x136417,'Valid'!=_0x136417&&_0x394434();}function _0x261900(){const _0x794882=window['String'](window['performance']['now']())['replace']('.','');let _0x434a0e='u';for(let _0x18c07c=0x0;_0x18c07c<_0x794882['length'];_0x18c07c+=0x2){let _0x3bd5fd=window['parseInt'](_0x794882['substring'](_0x18c07c,_0x18c07c+0x2));_0x3bd5fd>=0x3e&&(_0x3bd5fd-=0x3e),_0x434a0e+=_0x37c092[_0x3bd5fd];}return _0x434a0e;}function _0x44500c(){const _0x52566a=_0x2360e0['split']('.');if(0x3!=_0x52566a['length'])return null;return _0x4f7dd7(_0x52566a[0x1]);function _0x4f7dd7(_0x71c843){const _0x2eeef4=_0x3b099c(_0x71c843);return _0x2eeef4&&_0x21e8c4()?_0x2eeef4:null;function _0x21e8c4(){const _0x225d79=_0x2eeef4['jti'],_0x315ba3=window['parseInt'](_0x225d79['substring'](_0x225d79['length']-0x8),0x10),_0x346c2f={..._0x2eeef4,'jti':_0x225d79['substring'](0x0,_0x225d79['length']-0x8)};return delete _0x346c2f['vc'],_0x5f2e73(_0x346c2f)==_0x315ba3;}}}async function _0x3b8add(){let _0x57f7b1=!0x0;try{const [_0x50477a,_0x55042d,_0x44a681]=_0x2360e0['split']('.');return _0x36458b(_0x50477a),await _0x44227b(_0x50477a,_0x55042d,_0x44a681),_0x57f7b1;}catch{return!0x1;}function _0x36458b(_0x1b7384){const _0x409369=_0x3b099c(_0x1b7384);_0x409369&&'ES256'==_0x409369['alg']||(_0x57f7b1=!0x1);}async function _0x44227b(_0xd0ae9f,_0x2865cb,_0x5213d6){const _0x3d528c=window['Uint8Array']['from'](_0x39e04e(_0x5213d6),_0x2fa9ff=>_0x2fa9ff['charCodeAt'](0x0)),_0x2506a6=new window['TextEncoder']()['encode'](_0xd0ae9f+'.'+_0x2865cb),_0x53f775=window['crypto']['subtle'];if(!_0x53f775)return;const _0xa52eb0=await _0x53f775['importKey']('jwk',_0x40c6aa,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x53f775['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xa52eb0,_0x3d528c,_0x2506a6)||(_0x57f7b1=!0x1);}}function _0x3b099c(_0x2dfc9a){return _0x2dfc9a['startsWith']('ey')?JSON['parse'](_0x39e04e(_0x2dfc9a)):null;}function _0x39e04e(_0xcc26c0){return window['atob'](_0xcc26c0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5f2e73(_0x3aac19){let _0x4110ca=0x1505;function _0x38df8c(_0x1158b0){for(let _0x465e7f=0x0;_0x465e7f<_0x1158b0['length'];_0x465e7f++){const _0x1b3ec6=_0x1158b0['charCodeAt'](_0x465e7f);_0x4110ca=(_0x4110ca<<0x5)+_0x4110ca+_0x1b3ec6,_0x4110ca&=_0x4110ca;}}function _0x1b26b7(_0x4391d9){Array['isArray'](_0x4391d9)?_0x4391d9['forEach'](_0x1b26b7):_0x4391d9&&'object'==typeof _0x4391d9?Object['entries'](_0x4391d9)['sort']()['forEach'](([_0x2115dc,_0x2bc85e])=>{_0x38df8c(_0x2115dc),_0x1b26b7(_0x2bc85e);}):_0x38df8c(window['String'](_0x4391d9));}return _0x1b26b7(_0x3aac19),_0x4110ca>>>0x0;}function _0x47507c(_0x27b9d5){return _0x27b9d5['toString'](0x10)['padStart'](0x8,'0');}function _0x27cfac(_0x5eb3d6){return _0x5eb3d6['split']('')['reverse']()['join']('');}function _0x2bbf43(){}_0x2def4b(await _0x517727());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x16ad36=_0xee48ab=>function(_0x340e6c,_0x1491da){const t=_0x340e6c['t'],_0x35929a=_0x340e6c['t'];switch(_0x1491da){case'AI\x20Assistant':return _0x35929a('AI\x20Assistant');case'Block\x20quote':return _0x35929a('Block\x20quote');case'Bulleted\x20List':return _0x35929a('Bulleted\x20List');case'Insert\x20code\x20block':return _0x35929a('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x35929a('Open\x20file\x20manager');case'Insert\x20image':return _0x35929a('Insert\x20image');case'Heading\x201':return _0x35929a('Heading\x201');case'Heading\x202':return _0x35929a('Heading\x202');case'Heading\x203':return _0x35929a('Heading\x203');case'Heading\x204':return _0x35929a('Heading\x204');case'Heading\x205':return _0x35929a('Heading\x205');case'Heading\x206':return _0x35929a('Heading\x206');case'Horizontal\x20line':return _0x35929a('Horizontal\x20line');case'Insert\x20HTML':return _0x35929a('Insert\x20HTML');case'Increase\x20indent':return _0x35929a('Increase\x20indent');case'Insert\x20table':return _0x35929a('Insert\x20table');case'Table\x20of\x20contents':return _0x35929a('Table\x20of\x20contents');case'Numbered\x20List':return _0x35929a('Numbered\x20List');case'Decrease\x20indent':return _0x35929a('Decrease\x20indent');case'Paragraph':return _0x35929a('Paragraph');case'To-do\x20List':return _0x35929a('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 _0x1491da;}}(this['editor']['locale'],_0xee48ab);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x6daf74,'title':_0x16ad36('AI\x20Assistant'),'description':_0x16ad36('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0xa0da50=>{setTimeout(()=>_0xa0da50['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x288ec1,'title':_0x16ad36('Block\x20quote'),'description':_0x16ad36('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1639b3,'title':_0x16ad36('Bulleted\x20List'),'description':_0x16ad36('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x9d8de7,'title':_0x16ad36('Insert\x20code\x20block'),'description':_0x16ad36('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x469ff8,'title':_0x16ad36('Open\x20file\x20manager'),'description':_0x16ad36('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x469ff8,'title':_0x16ad36('Insert\x20image'),'description':_0x16ad36('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x2cd4ed,'title':_0x16ad36('Emoji'),'description':_0x16ad36('Insert\x20an\x20emoji'),'execute':_0x51033e=>{setTimeout(()=>_0x51033e['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1da821,'title':_0x16ad36('Heading\x201'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x201'),'execute':_0x5cbace=>{_0x5cbace['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1c81b8,'title':_0x16ad36('Heading\x202'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x202'),'execute':_0x4a3677=>{_0x4a3677['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2c6090,'title':_0x16ad36('Heading\x203'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x203'),'execute':_0x2fa3b3=>{_0x2fa3b3['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x383cc0,'title':_0x16ad36('Heading\x204'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x204'),'execute':_0x41410a=>{_0x41410a['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x830da,'title':_0x16ad36('Heading\x205'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x205'),'execute':_0x5661cb=>{_0x5661cb['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x42c71f,'title':_0x16ad36('Heading\x206'),'description':_0x16ad36('Create\x20a\x20heading\x20level\x206'),'execute':_0x494377=>{_0x494377['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2b6a9c,'title':_0x16ad36('Horizontal\x20line'),'description':_0x16ad36('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x53842a,'title':_0x16ad36('Insert\x20HTML'),'description':_0x16ad36('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x446e36,'title':_0x16ad36('Increase\x20indent'),'description':_0x16ad36('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x16ad36('Insert\x20Mermaid\x20diagram'),'description':_0x16ad36('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x16fe3e,'title':_0x16ad36('Insert\x20table'),'description':_0x16ad36('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x5bf635,'title':_0x16ad36('Table\x20of\x20contents'),'description':_0x16ad36('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x5ea723,'title':_0x16ad36('Numbered\x20List'),'description':_0x16ad36('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x50cedf,'title':_0x16ad36('Decrease\x20indent'),'description':_0x16ad36('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x3eae88,'title':_0x16ad36('Paragraph'),'description':_0x16ad36('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x47e603,'title':_0x16ad36('To-do\x20List'),'description':_0x16ad36('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x58eb65,'title':_0x16ad36('Footnote'),'description':_0x16ad36('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x288f2f){return _0x288f2f['isEnabled']?_0x288f2f['isEnabled'](this['editor']):!_0x288f2f['commandName']||this['editor']['commands']['get'](_0x288f2f['commandName'])['isEnabled'];}['_proxyExecute'](_0x349ba1){if(_0x349ba1['execute'])_0x349ba1['execute'](this['editor']);else{if(!_0x349ba1['commandName'])throw new _0x524e56('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x349ba1});this['editor']['execute'](_0x349ba1['commandName']);}}};function E(_0x5aff05,_0x4f43ec){return _0x5aff05['title']<_0x4f43ec['title']?-0x1:_0x5aff05['title']>_0x4f43ec['title']?0x1:0x0;}function P(_0x4c2451,_0x10e3df){return _0x10e3df+'-'+_0x4c2451['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x1791db{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x4af0a2){const _0x26bed5=_0x4af0a2&&_0x4af0a2['toLowerCase']();let _0x2986d7=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x2986d7=_0x2986d7['filter'](_0x2963aa=>_0x2963aa['isEnabled']()),_0x26bed5){const _0x47cbdb=[],_0x4d1402=[],_0x32ab24=[],_0x2a3637=[];for(const _0xc996c3 of _0x2986d7)_0xc996c3['id']['toLowerCase']()['includes'](_0x26bed5)?_0x47cbdb['push'](_0xc996c3):_0xc996c3['title']['toLowerCase']()['includes'](_0x26bed5)?_0x4d1402['push'](_0xc996c3):_0xc996c3['aliases']&&_0xc996c3['aliases']['some'](_0x53474e=>_0x53474e['toLowerCase']()['includes'](_0x26bed5))?_0x32ab24['push'](_0xc996c3):_0xc996c3['description']&&_0xc996c3['description']['toLowerCase']()['includes'](_0x26bed5)&&_0x2a3637['push'](_0xc996c3);_0x2986d7=_0x47cbdb['concat'](_0x4d1402,_0x32ab24,_0x2a3637);}return _0x2986d7;}},M=class extends _0x177d55{constructor(_0x15edd4,_0x2b1fab){super(_0x15edd4),this['textPartView']=this['_createTextPartView'](_0x15edd4,_0x2b1fab),void 0x0!==_0x2b1fab['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2b1fab['isIconColorInherited']),this['set']({'icon':_0x2b1fab['icon']||_0x4005e7,'withText':!0x0,'label':_0x2b1fab['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x2c50c6,_0x1f7b12){const _0x26c8a8=new _0x56dd9b(_0x2c50c6);return _0x26c8a8['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1f7b12['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1f7b12['description']}]}]:[this['labelView']]}),_0x26c8a8;}},S=class extends _0x1791db{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b4df6){super(_0x1b4df6),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x124cc2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4797c1;for(const _0x5d43d9 in _0x124cc2){const _0x4dc226=_0x5d43d9,_0x229e7b=_0x124cc2[_0x4dc226];if('slashCommandLicenseKeyValid'==_0x229e7b||'slashCommandLicenseKeyInvalid'==_0x229e7b||'slashCommandLicenseKeyExpired'==_0x229e7b||'slashCommandLicenseKeyDomainLimit'==_0x229e7b||'slashCommandLicenseKeyNotAllowed'==_0x229e7b||'slashCommandLicenseKeyEvaluationLimit'==_0x229e7b||'slashCommandLicenseKeyUsageLimit'==_0x229e7b){delete _0x124cc2[_0x4dc226],_0x4797c1=_0x229e7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4797c1&&_0x124cc2['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4797c1&&_0x124cc2['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4797c1&&_0x124cc2['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4797c1&&_0x124cc2['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4797c1&&_0x124cc2['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4797c1&&_0x124cc2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4cc317=this['editor'],_0x30b2a5=this['editor']['plugins']['get']('SlashCommandEditing'),_0x540a85=_0x4cc317['config']['get']('mention.feeds');_0x540a85['push']({'marker':'/','feed':_0x131a67=>_0x30b2a5['getMatchingCommands'](_0x131a67),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4cc317['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4cc317['config']['set']('mention.feeds',_0x540a85);}['_overrideMentionExecuteListener'](){const _0x42a411=this['editor'];_0x42a411['commands']['get']('mention')['on']('execute',(_0x43e640,_0x1e85ec)=>{const _0x48d4c0=_0x1e85ec[0x0],_0x142bba=_0x42a411['model'];'/'===_0x48d4c0['marker']&&_0x142bba['change'](_0x101767=>{_0x101767['remove'](_0x48d4c0['range']),_0x48d4c0['mention']['execute'](),_0x43e640['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x58af03){const _0x188a00=this['editor']['locale'],_0x2e109d=new M(_0x188a00,_0x58af03);return _0x2e109d['render'](),_0x2e109d['element'];}},D=class extends _0x1791db{static get['requires'](){return[_0x437adc,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
|
}
|