@ckeditor/ckeditor5-source-editing-enhanced 0.0.0-nightly-next-20250216.0 → 0.0.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.
@@ -1,18 +0,0 @@
1
- {
2
- "plugins": [
3
- {
4
- "name": "Source editing enhanced",
5
- "className": "SourceEditingEnhanced",
6
- "description": "Allows for viewing and editing the source of the document.",
7
- "docs": "features/source-editing/source-editing-enhanced.html",
8
- "path": "src/sourceeditingenhanced.js",
9
- "uiComponents": [
10
- {
11
- "type": "Button",
12
- "name": "sourceEditingEnhanced",
13
- "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/source.svg"
14
- }
15
- ]
16
- }
17
- ]
18
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
-
@@ -1,34 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- :root{
6
- --ck-source-editing-enhanced-height:calc(
7
- var(--ck-dialog-max-height)
8
- - var(--ck-form-header-height)
9
- - 2 * var(--ck-spacing-large)
10
- - var(--ck-ui-component-min-height)
11
- - 2 * var(--ck-spacing-tiny) );
12
- --ck-source-editing-enhanced-width:min(80vw, 1200px);
13
- }
14
-
15
- .ck.ck-code-editor{
16
- display:flex;
17
- align-items:stretch;
18
- flex-direction:row;
19
- justify-content:flex-start;
20
- white-space:initial;
21
- margin:0 auto;
22
- border-bottom:1px solid var(--ck-color-base-border);
23
- height:var(--ck-source-editing-enhanced-height);
24
- width:var(--ck-source-editing-enhanced-width);
25
- }
26
-
27
- .ck.ck-code-editor .cm-editor{
28
- flex-grow:1;
29
- width:100%;
30
- }
31
-
32
- .ck.ck-code-editor .cm-editor.cm-focused{
33
- outline:var(--ck-focus-ring);
34
- }
package/dist/index.css DELETED
@@ -1,56 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /*
6
- * What you're currently looking at is the source code of a legally protected, proprietary software.
7
- * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
8
- * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
9
- *
10
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
11
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
12
- */
13
-
14
- /*
15
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
16
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
17
- */
18
-
19
- /**
20
- * A visual style of focused element's border.
21
- */
22
-
23
- :root {
24
- /* Keep the editor as big as possible within the limits of the dialog system geometry. */
25
- --ck-source-editing-enhanced-height: calc(
26
- var(--ck-dialog-max-height) /* ─▶ Total max height of the dialog */
27
- - var(--ck-form-header-height) /* ─▶ Height of the dialog header */
28
- - 2 * var(--ck-spacing-large) /* ─┐ */
29
- - var(--ck-ui-component-min-height) /* ├─▶ Height of the dialog actions bar */
30
- - 2 * var(--ck-spacing-tiny) /* ─┘ */
31
- );
32
- --ck-source-editing-enhanced-width: min(80vw, 1200px);
33
- }
34
-
35
- .ck.ck-code-editor {
36
- display: flex;
37
- align-items: stretch;
38
- flex-direction: row;
39
- justify-content: flex-start;
40
- white-space: initial;
41
- margin: 0 auto;
42
- border-bottom: 1px solid var(--ck-color-base-border);
43
- height: var(--ck-source-editing-enhanced-height);
44
- width: var(--ck-source-editing-enhanced-width);
45
-
46
- /* Styles of the CodeMirror editor */
47
- }
48
-
49
- .ck.ck-code-editor .cm-editor {
50
- flex-grow: 1;
51
- width: 100%;
52
- }
53
-
54
- .ck.ck-code-editor .cm-editor.cm-focused {
55
- outline: var(--ck-focus-ring);
56
- }
package/dist/index.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Command as _0x52aa6d,PendingActions as _0x324fd9,Plugin as _0x5f364e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36f19b,env as _0xd894d7,uid as _0x32642e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x13b58e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x11da59,ButtonView as _0x58f79c,MenuBarMenuListItemButtonView as _0x35a73f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x33de19,crosshairCursor as _0x1572e0,drawSelection as _0x1a6ce3,dropCursor as _0x28ea3c,lineNumbers as _0x26e754,highlightActiveLine as _0x3050e3,highlightActiveLineGutter as _0x52b704,highlightSpecialChars as _0x400015,rectangularSelection as _0xe43687,keymap as _0xaee57c}from'@codemirror/view';import{Compartment as _0x314b92,Transaction as _0x53ba98}from'@codemirror/state';import{bracketMatching as _0x53cd68,foldGutter as _0x512b7a,indentOnInput as _0x4051dc,syntaxHighlighting as _0x43411f,defaultHighlightStyle as _0x209eb6,foldKeymap as _0x58a932}from'@codemirror/language';import{history as _0x405ea9,defaultKeymap as _0x264ffd,historyKeymap as _0x1707fd,redo as _0x19df8f}from'@codemirror/commands';import{autocompletion as _0xd7b595,closeBrackets as _0x252ac1,closeBracketsKeymap as _0x1e8c93,completionKeymap as _0x419545}from'@codemirror/autocomplete';import{html as _0x21ce43}from'@codemirror/lang-html';import{markdown as _0x1156d2}from'@codemirror/lang-markdown';function f(_0x52b861,_0x15886d){const t=_0x52b861['t'];switch(_0x15886d){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x15886d;}}function s(_0x5013d9){const _0x1cf330=_0x5013d9['editing']['view']['document']['roots'],_0x50aafd=_0x1cf330['length'];if(0x0===_0x50aafd)throw new _0x36f19b('source-editing-enhanced-editor-no-root',_0x5013d9);if(0x1===_0x50aafd)return _0x1cf330['first']['rootName'];return Array['from'](_0x5013d9['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x5865a3){return $(_0x5865a3)?function(_0x15fcc4){const _0x35b53c=[{'name':'address','isVoid':!0x1},{'name':'article','isVoid':!0x1},{'name':'aside','isVoid':!0x1},{'name':'blockquote','isVoid':!0x1},{'name':'details','isVoid':!0x1},{'name':'dialog','isVoid':!0x1},{'name':'dd','isVoid':!0x1},{'name':'div','isVoid':!0x1},{'name':'dl','isVoid':!0x1},{'name':'dt','isVoid':!0x1},{'name':'fieldset','isVoid':!0x1},{'name':'figcaption','isVoid':!0x1},{'name':'figure','isVoid':!0x1},{'name':'footer','isVoid':!0x1},{'name':'form','isVoid':!0x1},{'name':'h1','isVoid':!0x1},{'name':'h2','isVoid':!0x1},{'name':'h3','isVoid':!0x1},{'name':'h4','isVoid':!0x1},{'name':'h5','isVoid':!0x1},{'name':'h6','isVoid':!0x1},{'name':'header','isVoid':!0x1},{'name':'hgroup','isVoid':!0x1},{'name':'hr','isVoid':!0x0},{'name':'li','isVoid':!0x1},{'name':'main','isVoid':!0x1},{'name':'nav','isVoid':!0x1},{'name':'ol','isVoid':!0x1},{'name':'p','isVoid':!0x1},{'name':'section','isVoid':!0x1},{'name':'table','isVoid':!0x1},{'name':'tbody','isVoid':!0x1},{'name':'td','isVoid':!0x1},{'name':'th','isVoid':!0x1},{'name':'thead','isVoid':!0x1},{'name':'tr','isVoid':!0x1},{'name':'ul','isVoid':!0x1}],_0x2b1d43=_0x35b53c['map'](_0x54016d=>_0x54016d['name'])['join']('|'),_0x312dc1=_0x15fcc4['replace'](new RegExp('</?('+_0x2b1d43+')(\x20.*?)?>','g'),'\x0a$&\x0a')['replace'](/<br[^>]*>/g,'$&\x0a')['split']('\x0a');let _0x13e9c0=0x0,_0x247652=!0x1;return _0x312dc1['filter'](_0x16c0e0=>_0x16c0e0['length'])['map'](_0x527f7f=>(_0x247652=function(_0x5a8adf,_0x477b00){return new RegExp('<pre(\x20.*?)?>')['test'](_0x5a8adf)?'first':new RegExp('</pre>')['test'](_0x5a8adf)?'last':('first'===_0x477b00||'middle'===_0x477b00)&&'middle';}(_0x527f7f,_0x247652),function(_0x2fd5eb,_0x30a9e5){return _0x30a9e5['some'](_0x14456b=>!_0x14456b['isVoid']&&!!new RegExp('<'+_0x14456b['name']+'(\x20.*?)?>')['test'](_0x2fd5eb));}(_0x527f7f,_0x35b53c)?X(_0x527f7f,_0x13e9c0++):function(_0x4e950f,_0x55fb7e){return _0x55fb7e['some'](_0x10a845=>new RegExp('</'+_0x10a845['name']+'>')['test'](_0x4e950f));}(_0x527f7f,_0x35b53c)?X(_0x527f7f,--_0x13e9c0):'middle'===_0x247652||'last'===_0x247652?_0x527f7f:X(_0x527f7f,_0x13e9c0)))['join']('\x0a');}(_0x5865a3):_0x5865a3;}function E(_0x499567){return $(_0x499567['replace'](/^[\n\s]*/g,''))?_0x499567['replace'](/\s+/g,''):_0x499567;}function $(_0x5f593b){return _0x5f593b['startsWith']('<');}function X(_0x285063,_0x2507e6,_0x19a62d='\x20\x20\x20\x20'){return''+_0x19a62d['repeat'](Math['max'](0x0,_0x2507e6))+_0x285063;}function p(_0x17ee53){const _0x31c2dc=[_0x33de19['lineWrapping'],_0xd7b595(),_0x53cd68(),_0x252ac1(),_0x1572e0(),_0x1a6ce3(),_0x28ea3c(),_0x26e754(),_0x512b7a(),_0x3050e3(),_0x52b704(),_0x400015(),_0x405ea9(),_0x4051dc(),_0xe43687(),_0x43411f(_0x209eb6,{'fallback':!0x0})],_0x4aba13=new _0x314b92();_0x31c2dc['push'](_0x4aba13['of'](_0x33de19['editable']['of'](!0x0))),'html'===_0x17ee53['syntaxLanguage']?_0x31c2dc['push'](_0x21ce43()):_0x31c2dc['push'](_0x1156d2()),_0x17ee53['theme']&&_0x31c2dc['push'](_0x17ee53['theme']),_0x31c2dc['push'](_0xaee57c['of']([..._0x1e8c93,..._0x264ffd,..._0x1707fd,..._0x58a932,..._0x419545,{'key':'Ctrl-Shift-z','mac':'Cmd-y','run':_0x19df8f,'preventDefault':!0x0}]));const _0x1519f9=new _0x33de19({'extensions':_0x31c2dc,'parent':_0x17ee53['parent']});return{'focus':()=>{_0x1519f9['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x1519f9['focus']();},'getData':()=>_0x1519f9['state']['doc']['toString'](),'setData':_0xd2d260=>{_0x1519f9['dispatch']({'changes':{'from':0x0,'to':_0x1519f9['state']['doc']['length'],'insert':_0xd2d260},'annotations':_0x53ba98['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4fecc5=>{_0x1519f9['dispatch']({'effects':[_0x4aba13['reconfigure'](_0x33de19['editable']['of'](!_0x4fecc5))]});},'destroy':()=>{_0x1519f9['destroy']();}};}class m extends _0x11da59{['_codeEditorApi']=null;['_options'];constructor(_0x137c0e,_0x838550){super(_0x137c0e),this['_options']=_0x838550,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=p({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x20eff7,_0x444107,_0x5aa828)=>{this['setReadOnly'](_0x5aa828);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x137db8){this['_codeEditorApi']['setData'](_0x137db8);}['setReadOnly'](_0x46fc4a){this['_codeEditorApi']['setReadOnly'](_0x46fc4a);}}class d extends _0x52aa6d{constructor(_0x2aace7){super(_0x2aace7),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x324fd9)['on']('change:hasAny',(_0x1898f2,_0x547ed2,_0x316f06)=>{_0x316f06?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x158e71=this['editor'],_0xe59276=_0x158e71['locale'],_0x1aeb93=_0x158e71['plugins']['get']('Dialog'),_0x4b1619=s(_0x158e71),_0xd4e950=g(_0x158e71['data']['get']({'rootName':_0x4b1619})),_0x9e2bd8=new m(_0xe59276,{'syntaxLanguage':_0x158e71['plugins']['has']('Markdown')?'markdown':'html','theme':_0x158e71['config']['get']('sourceEditingEnhanced.theme')});let _0x32de36=!0x0;const _0x51f102=_0x30dcad=>{if(!_0x32de36)return;return E(_0x9e2bd8['getData']())!==E(_0xd4e950)?window['confirm'](f(_0xe59276,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x30dcad['stop']():void 0x0;};_0x1aeb93['show']({'id':'sourceEditingEnhanced','title':f(_0xe59276,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x9e2bd8,'actionButtons':[{'label':f(_0xe59276,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x1aeb93['hide']();}},{'label':f(_0xe59276,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x4e9f22=E(_0x9e2bd8['getData']())!==E(_0xd4e950);(_0x4e9f22&&_0x158e71['execute']('replaceSource',_0x9e2bd8['getData']()),_0x32de36=!0x1,_0x1aeb93['hide'](),_0x4e9f22&&'editables'in _0x158e71['ui']['view'])&&_0x158e71['ui']['view']['editables'][_0x4b1619]['element']['focus']();},'onCreate':_0x4a47fe=>{_0x4a47fe['set']('isEnabled',!_0x158e71['isReadOnly']),_0x4a47fe['bind']('isEnabled')['to'](_0x158e71,'isReadOnly',this,'isEnabled',(_0x3b4f,_0x15a158)=>!_0x3b4f&&_0x15a158);}}],'onHide':()=>{_0x1aeb93['off']('hide',_0x51f102),_0x9e2bd8['destroy']();},'onShow':()=>{_0x9e2bd8['bind']('isReadOnly')['to'](_0x158e71,'isReadOnly',this,'isEnabled',(_0x439f45,_0x4ac68f)=>_0x439f45||!_0x4ac68f),_0x9e2bd8['setData'](_0xd4e950),_0x9e2bd8['focus'](),_0x1aeb93['on']('hide',_0x51f102,{'priority':'highest'});}});}}class a extends _0x5f364e{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x324fd9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3a612c=this['editor'],_0x56ce42=_0x3a612c['locale'],_0x59c878=new d(_0x3a612c);_0x3a612c['commands']['add']('editSource',_0x59c878),_0x3a612c['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x5d8dc1=this['_createButton'](_0x58f79c,_0x59c878);return _0x5d8dc1['set']({'label':f(_0x56ce42,'Source'),'icon':_0x13b58e,'tooltip':f(_0x56ce42,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x5d8dc1;}),_0x3a612c['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x469318=this['_createButton'](_0x35a73f,_0x59c878,!0x0);return _0x469318['set']({'label':f(_0x56ce42,'Edit\x20source\x20modal\x20label'),'icon':_0x13b58e,'role':'menuitemcheckbox'}),_0x469318;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x356c8a){const _0x3721a1=_0x5974af([0x5a,0x7a,0x51,0x46,0x33,0x6e,0x32,0x56,0x71,0x66,0x77,0x6c,0x30,0x67,0x4a,0x6d,0x45,0x4d,0x59,0x68,0x54,0x79,0x48,0x6b,0x36,0x74,0x35,0x58,0x70,0x4c,0x4b,0x78,0x31,0x73,0x47,0x63,0x61,0x52,0x75,0x41,0x42,0x55,0x4e,0x76,0x4f,0x53,0x39,0x65,0x6f,0x37,0x69,0x49,0x43,0x62,0x72,0x57,0x50,0x38,0x6a,0x34,0x64,0x44]),_0x3c3f78=0x444edad8,_0x7170b8=0x44498570^_0x3c3f78,_0x51d69c=window[_0x5974af([0x44,0x61,0x74,0x65])][_0x5974af([0x6e,0x6f,0x77])](),_0x23f3c9=_0x356c8a[_0x5974af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34bf56=new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8865a7=>{_0x23f3c9[_0x5974af([0x6f,0x6e,0x63,0x65])](_0x5974af([0x72,0x65,0x61,0x64,0x79]),_0x8865a7);}),_0x392c71={[_0x5974af([0x6b,0x74,0x79])]:_0x5974af([0x45,0x43]),[_0x5974af([0x75,0x73,0x65])]:_0x5974af([0x73,0x69,0x67]),[_0x5974af([0x63,0x72,0x76])]:_0x5974af([0x50,0x2d,0x32,0x35,0x36]),[_0x5974af([0x78])]:_0x5974af([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]),[_0x5974af([0x79])]:_0x5974af([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]),[_0x5974af([0x61,0x6c,0x67])]:_0x5974af([0x45,0x53,0x32,0x35,0x36])},_0x5d2dc6=_0x23f3c9[_0x5974af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5974af([0x67,0x65,0x74])](_0x5974af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x346bdf(){let _0x185340,_0x19d6cf=null,_0x17f967=null;try{if(_0x5d2dc6==_0x5974af([0x47,0x50,0x4c]))return _0x5974af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x185340=_0x18d17c(),!_0x185340)return _0x5974af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x185340[_0x5974af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17f967=_0x303943(_0x185340[_0x5974af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x185340[_0x5974af([0x6a,0x74,0x69])])),await _0x4aa7b0()?_0x5771fe()?_0x24438c()?_0x5974af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37f87a()?(_0x185340[_0x5974af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5974af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19d6cf=_0x18b1df(_0x5974af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x185340[_0x5974af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5974af([0x74,0x72,0x69,0x61,0x6c])&&(_0x19d6cf=_0x18b1df(_0x5974af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d1d83()):_0x5974af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5974af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5974af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a51d1){return _0x5974af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24438c(){const _0x46d75b=[_0x5974af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5974af([0x74,0x72,0x69,0x61,0x6c])][_0x5974af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x185340[_0x5974af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51d69c/0x3e8:0xe10*_0x7170b8;return _0x185340[_0x5974af([0x65,0x78,0x70])]<_0x46d75b;}function _0x5771fe(){const _0x5ad19a=_0x185340[_0x5974af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad19a&&(!!_0x5ad19a[_0x5974af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5974af([0x2a]))||!!_0x5ad19a[_0x5974af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5974af([0x53,0x45,0x45])));}function _0x37f87a(){const _0x57f3c5=_0x185340[_0x5974af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57f3c5||0x0==_0x57f3c5[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1256e9}=new URL(window[_0x5974af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57f3c5[_0x5974af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1256e9))return!0x0;const _0x21819f=_0x1256e9[_0x5974af([0x73,0x70,0x6c,0x69,0x74])](_0x5974af([0x2e]));return _0x57f3c5[_0x5974af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b0709=>_0x3b0709[_0x5974af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5974af([0x2a])))[_0x5974af([0x6d,0x61,0x70])](_0x478d49=>_0x478d49[_0x5974af([0x73,0x70,0x6c,0x69,0x74])](_0x5974af([0x2e])))[_0x5974af([0x73,0x6f,0x6d,0x65])](_0xc31756=>_0x21819f[_0x5974af([0x65,0x76,0x65,0x72,0x79])]((_0x47149b,_0x45b3b2)=>_0xc31756[_0x45b3b2]===_0x47149b||_0xc31756[_0x45b3b2]===_0x5974af([0x2a])));}function _0x4d1d83(){return _0x19d6cf&&_0x17f967?new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbde737,_0x220073)=>{_0x19d6cf[_0x5974af([0x74,0x68,0x65,0x6e])](_0xbde737,_0x220073),_0x17f967[_0x5974af([0x74,0x68,0x65,0x6e])](_0xfec100=>{_0xfec100!=_0x5974af([0x56,0x61,0x6c,0x69,0x64])&&_0xbde737(_0xfec100);},_0x220073);}):_0x19d6cf||_0x17f967||_0x5974af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x303943(_0x1ca474,_0x4c6124){return new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54289d=>{if(_0x32590a())return _0x54289d(_0x5974af([0x56,0x61,0x6c,0x69,0x64]));_0x2ab3ed(),_0x23f3c9[_0x5974af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5974af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34cc66=!0x1;const _0x23db11=_0x32642e();function _0x32cb12(_0x479b0f){return!!_0x479b0f&&(typeof _0x479b0f===_0x5974af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x479b0f===_0x5974af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x479b0f[_0x5974af([0x74,0x68,0x65,0x6e])]===_0x5974af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x479b0f[_0x5974af([0x63,0x61,0x74,0x63,0x68])]===_0x5974af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x367fc2(_0x51d23d){_0x43f4b2(_0x51d23d)[_0x5974af([0x74,0x68,0x65,0x6e])](_0x271064=>{if(!_0x271064||_0x271064[_0x5974af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5974af([0x6f,0x6b]))return _0x5974af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x503f45(_0x1fba71(_0x23db11+_0x4c6124))!=_0x271064[_0x5974af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5974af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5974af([0x56,0x61,0x6c,0x69,0x64]);})[_0x5974af([0x74,0x68,0x65,0x6e])](_0x5155ae=>(_0x33633e(),_0x5155ae),()=>{const _0x300cf8=_0x25d9a4();return null==_0x300cf8?(_0x33633e(),_0x5974af([0x56,0x61,0x6c,0x69,0x64])):_0x5974af(_0x51d69c-_0x300cf8>(0x60425ed8^_0x3c3f78)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5974af([0x74,0x68,0x65,0x6e])](_0x54289d)[_0x5974af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54289d(_0x5974af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a4be3=0x44783458^_0x3c3f78;function _0x33633e(){const _0x333977=_0x5974af([0x6c,0x6c,0x63,0x74,0x2d])+_0x503f45(_0x1fba71(_0x1ca474)),_0x54bc6b=_0x5c2134(_0x503f45(window[_0x5974af([0x4d,0x61,0x74,0x68])][_0x5974af([0x63,0x65,0x69,0x6c])](_0x51d69c/_0x1a4be3)));window[_0x5974af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5974af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x333977,_0x54bc6b);}function _0x25d9a4(){const _0x1249fc=_0x5974af([0x6c,0x6c,0x63,0x74,0x2d])+_0x503f45(_0x1fba71(_0x1ca474)),_0x8fd4bc=window[_0x5974af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5974af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1249fc);return _0x8fd4bc?window[_0x5974af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2134(_0x8fd4bc),0x10)*_0x1a4be3:null;}function _0x43f4b2(_0x597335){return new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22b059,_0x11733a)=>{_0x597335[_0x5974af([0x74,0x68,0x65,0x6e])](_0x22b059,_0x11733a),window[_0x5974af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11733a,0x444f0e18^_0x3c3f78);});}}_0x23f3c9[_0x5974af([0x6f,0x6e])](_0x5974af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e91f0,_0x3b30bf)=>{if(_0x3b30bf[0x0]!=_0x1ca474)return _0x54289d(_0x5974af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b30bf[0x1]={..._0x3b30bf[0x1],[_0x5974af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23db11};},{[_0x5974af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5974af([0x68,0x69,0x67,0x68])}),_0x23f3c9[_0x5974af([0x6f,0x6e])](_0x5974af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9db188=>{_0x32cb12(_0x9db188[_0x5974af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34cc66=!0x0,_0x367fc2(_0x9db188[_0x5974af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5974af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5974af([0x6c,0x6f,0x77])}),_0x34bf56[_0x5974af([0x74,0x68,0x65,0x6e])](()=>{_0x34cc66||_0x54289d(_0x5974af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32590a(){return _0x23f3c9[_0x5974af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5974af([0x76,0x69,0x65,0x77])][_0x5974af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5974af([0x61,0x75,0x74,0x6f]);}function _0x2ab3ed(){_0x23f3c9[_0x5974af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5974af([0x76,0x69,0x65,0x77])][_0x5974af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5974af([0x61,0x75,0x74,0x6f]);}}function _0x18b1df(_0x1e045f){const _0x2acd63=[new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40bb11=>setTimeout(_0x40bb11,0x4447e414^_0x3c3f78)),_0x34bf56[_0x5974af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46cb8d=>{let _0x588eff=0x0;_0x23f3c9[_0x5974af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5974af([0x6f,0x6e])](_0x5974af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb10945,_0x1269be)=>{_0x1269be[0x0][_0x5974af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x588eff++,_0x588eff==(0x444edb20^_0x3c3f78)&&(_0x46cb8d(),_0xb10945[_0x5974af([0x6f,0x66,0x66])]());});}))];return window[_0x5974af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5974af([0x72,0x61,0x63,0x65])](_0x2acd63)[_0x5974af([0x74,0x68,0x65,0x6e])](()=>_0x1e045f);}async function _0x12b5de(){await _0x34bf56,_0x23f3c9[_0x5974af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5974af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31aa4c,_0x23f3c9[_0x5974af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5974af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31aa4c,_0x23f3c9[_0x5974af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5974af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x163cec(_0x21b614){const _0x2c42a5=_0x405599();_0x23f3c9[_0x2c42a5]=_0x5974af([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21b614,_0x21b614!=_0x5974af([0x56,0x61,0x6c,0x69,0x64])&&_0x12b5de();}function _0x405599(){const _0x28ccc0=window[_0x5974af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5974af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5974af([0x6e,0x6f,0x77])]())[_0x5974af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5974af([0x2e]),'');let _0x1bd7d7=_0x5974af([0x5a]);for(let _0x2bcc51=0x0;_0x2bcc51<_0x28ccc0[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bcc51+=0x2){let _0x4e6033=window[_0x5974af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ccc0[_0x5974af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bcc51,_0x2bcc51+0x2));_0x4e6033>=_0x3721a1[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e6033-=_0x3721a1[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bd7d7+=_0x3721a1[_0x4e6033];}return _0x1bd7d7;}function _0x18d17c(){const _0x31f49f=_0x5d2dc6[_0x5974af([0x73,0x70,0x6c,0x69,0x74])](_0x5974af([0x2e]));if(0x3!=_0x31f49f[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2edf22(_0x31f49f[0x1]);function _0x2edf22(_0x4ae91e){const _0x5c970d=_0x32f9dd(_0x4ae91e);return _0x5c970d&&_0x1597ef()?_0x5c970d:null;function _0x1597ef(){const _0x30ba31=_0x5c970d[_0x5974af([0x6a,0x74,0x69])],_0x3836e3=window[_0x5974af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ba31[_0x5974af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ba31[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x596838={..._0x5c970d,[_0x5974af([0x6a,0x74,0x69])]:_0x30ba31[_0x5974af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30ba31[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x596838[_0x5974af([0x76,0x63])],_0x1fba71(_0x596838)==_0x3836e3;}}}async function _0x4aa7b0(){let _0x418de3=!0x0;try{const _0x146931=_0x5d2dc6[_0x5974af([0x73,0x70,0x6c,0x69,0x74])](_0x5974af([0x2e])),[_0x3f0284,_0x4b95e2,_0x21c952]=_0x146931;return _0x7ede62(_0x3f0284),await _0x2ffdb0(_0x3f0284,_0x4b95e2,_0x21c952),_0x418de3;}catch(_0xbe48bb){return!0x1;}function _0x7ede62(_0x54e25a){const _0x4b9c0b=_0x32f9dd(_0x54e25a);_0x4b9c0b&&_0x4b9c0b[_0x5974af([0x61,0x6c,0x67])]==_0x5974af([0x45,0x53,0x32,0x35,0x36])||(_0x418de3=!0x1);}async function _0x2ffdb0(_0x377683,_0x2c7342,_0x3a72fd){const _0x498623=window[_0x5974af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5974af([0x66,0x72,0x6f,0x6d])](_0x45b490(_0x3a72fd),_0x3a4363=>_0x3a4363[_0x5974af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x139df3=new window[(_0x5974af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5974af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x377683+_0x5974af([0x2e])+_0x2c7342),_0x113ef5=window[_0x5974af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5974af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x113ef5)return;const _0x1a8a01=await _0x113ef5[_0x5974af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5974af([0x6a,0x77,0x6b]),_0x392c71,{[_0x5974af([0x6e,0x61,0x6d,0x65])]:_0x5974af([0x45,0x43,0x44,0x53,0x41]),[_0x5974af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5974af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5974af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x113ef5[_0x5974af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5974af([0x6e,0x61,0x6d,0x65])]:_0x5974af([0x45,0x43,0x44,0x53,0x41]),[_0x5974af([0x68,0x61,0x73,0x68])]:{[_0x5974af([0x6e,0x61,0x6d,0x65])]:_0x5974af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a8a01,_0x498623,_0x139df3)||(_0x418de3=!0x1);}}function _0x32f9dd(_0x13cb18){return _0x13cb18[_0x5974af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5974af([0x65,0x79]))?JSON[_0x5974af([0x70,0x61,0x72,0x73,0x65])](_0x45b490(_0x13cb18)):null;}function _0x45b490(_0x3fc08e){return window[_0x5974af([0x61,0x74,0x6f,0x62])](_0x3fc08e[_0x5974af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5974af([0x2b]))[_0x5974af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5974af([0x2f])));}function _0x1fba71(_0x5d7c78){let _0x544e62=0x1505;function _0x485f54(_0x13575e){for(let _0x8ce6d7=0x0;_0x8ce6d7<_0x13575e[_0x5974af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8ce6d7++){const _0x17194b=_0x13575e[_0x5974af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8ce6d7);_0x544e62=(_0x544e62<<0x5)+_0x544e62+_0x17194b,_0x544e62&=_0x544e62;}}function _0x3c98f9(_0x338a1e){Array[_0x5974af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x338a1e)?_0x338a1e[_0x5974af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c98f9):_0x338a1e&&typeof _0x338a1e==_0x5974af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5974af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x338a1e)[_0x5974af([0x73,0x6f,0x72,0x74])]()[_0x5974af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fed4c,_0x514299])=>{_0x485f54(_0x3fed4c),_0x3c98f9(_0x514299);}):_0x485f54(window[_0x5974af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x338a1e));}return _0x3c98f9(_0x5d7c78),_0x544e62>>>0x0;}function _0x503f45(_0x4496a0){return _0x4496a0[_0x5974af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5974af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5974af([0x30]));}function _0x5c2134(_0x44aa31){return _0x44aa31[_0x5974af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5974af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5974af([0x6a,0x6f,0x69,0x6e])]('');}function _0x31aa4c(){}function _0x5974af(_0x1bb3fe){return _0x1bb3fe['map'](_0x57d48c=>String['fromCharCode'](_0x57d48c))['join']('');}_0x163cec(await _0x346bdf());}(this);}['_createButton'](_0x52eb87,_0x4c2813,_0x1a0011=!0x1){const _0x5124e9=new _0x52eb87(this['editor']['locale']);return _0x5124e9['set']({'withText':_0x1a0011,'isToggleable':!0x1}),_0x5124e9['bind']('isEnabled')['to'](_0x4c2813,'isEnabled'),this['listenTo'](_0x5124e9,'execute',()=>_0x4c2813['execute']()),_0x5124e9;}['_registerKeybindings'](){const _0x2b4536=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':f(_0x2b4536,'Source\x20Editing\x20Enhanced')});const _0x5df036=_0xd894d7['isMac']||_0xd894d7['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':f(_0x2b4536,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':f(_0x2b4536,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':f(_0x2b4536,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':f(_0x2b4536,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':f(_0x2b4536,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':f(_0x2b4536,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':f(_0x2b4536,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5df036?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':f(_0x2b4536,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':f(_0x2b4536,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':f(_0x2b4536,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':f(_0x2b4536,'Select\x20line'),'keystroke':_0x5df036?'Ctrl!+L':'Alt+L'},{'label':f(_0x2b4536,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5df036?'Alt+Shift+M':'Ctrl+M'},{'label':f(_0x2b4536,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':f(_0x2b4536,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':f(_0x2b4536,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':f(_0x2b4536,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':f(_0x2b4536,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5df036?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class e extends _0x52aa6d{constructor(_0x4ff2d8){super(_0x4ff2d8),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x38d26b,_0x4bb087){const _0x1441f3=this['editor'],_0x552753=_0x4bb087?.['rootName']??s(_0x1441f3);_0x1441f3['data']['set']({[_0x552753]:_0x38d26b},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class c extends _0x5f364e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x5c535b){super(_0x5c535b),_0x5c535b['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new e(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc97b14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47786c;for(const _0x3ce906 in _0xc97b14){const _0xb20490=_0x3ce906,_0x3d28dc=_0xc97b14[_0xb20490];if('sourceEditingEnhancedLicenseKeyValid'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyExpired'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x3d28dc||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3d28dc){delete _0xc97b14[_0xb20490],_0x47786c=_0x3d28dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x47786c&&_0xc97b14['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x47786c&&_0xc97b14['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x47786c&&_0xc97b14['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x47786c&&_0xc97b14['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x47786c&&_0xc97b14['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x47786c&&_0xc97b14['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x47786c&&_0xc97b14['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x3ac00d=this['editor'],_0x2343a3=_0x3ac00d['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x2343a3&&_0x3ac00d['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x36f19b('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x2343a3&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x10fd14=>_0x3ac00d['plugins']['has'](_0x10fd14))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x3ac00d['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{d as EditSourceCommand,e as ReplaceSourceCommand,c as SourceEditingEnhanced};
@@ -1,22 +0,0 @@
1
- {
2
- "Edit source modal label": "The accessible label of the toolbar button and menu bar button that open editor modal with editable, raw source (HTML). Additionally used as this modal title.",
3
- "Source Editing Enhanced": "The label of Source Editing Enhanced keystrokes category in Accessibility help dialog.",
4
- "Copy line down": "The label of \"Copy line down\" keyboard shortcut in Accessibility help dialog.",
5
- "Copy line up": "The label of \"Copy line up\" keyboard shortcut in Accessibility help dialog.",
6
- "Delete line": "The label of \"Delete line\" keyboard shortcut in Accessibility help dialog.",
7
- "Indent less": "The label of \"Indent less\" keyboard shortcut in Accessibility help dialog.",
8
- "Indent more": "The label of \"Indent more\" keyboard shortcut in Accessibility help dialog.",
9
- "Fold all": "The label of \"Fold all\" keyboard shortcut in Accessibility help dialog.",
10
- "Fold code (current level)": "The label of \"Fold code (current level)\" keyboard shortcut in Accessibility help dialog.",
11
- "Move line down": "The label of \"Move line down\" keyboard shortcut in Accessibility help dialog.",
12
- "Move line up": "The label of \"Move line up\" keyboard shortcut in Accessibility help dialog.",
13
- "Redo (keystroke)": "The label of \"Redo\" keyboard shortcut in Accessibility help dialog.",
14
- "Select line": "The label of \"Select line\" keyboard shortcut in Accessibility help dialog.",
15
- "Switch between \"focus with tab\" and \"indent with tab\" mode": "The label of \"Switch between 'focus with tab' and 'indent with tab' mode\" keyboard shortcut in Accessibility help dialog.",
16
- "Toggle block comment": "The label of \"Toggle block comment\" keyboard shortcut in Accessibility help dialog.",
17
- "Toggle comment": "The label of \"Toggle comment\" keyboard shortcut in Accessibility help dialog.",
18
- "Undo (keystroke)": "The label of \"Undo\" keyboard shortcut in Accessibility help dialog.",
19
- "Unfold all": "The label of \"Unfold all\" keyboard shortcut in Accessibility help dialog.",
20
- "Unfold code (current level)": "The label of \"Unfold code (current level)\" keyboard shortcut in Accessibility help dialog.",
21
- "Are you sure you want to discard your changes? This action cannot be undone.": "The warning message displayed when attempting to close the Enhanced Source Code Editing modal with unsaved changes."
22
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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 { SourceEditingEnhanced, SourceEditingEnhancedConfig, ReplaceSourceCommand, EditSourceCommand } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the source editing enhanced feature.
10
- *
11
- * Read more in {@link module:source-editing-enhanced/sourceeditingenhancedconfig~SourceEditingEnhancedConfig}.
12
- */
13
- sourceEditingEnhanced?: SourceEditingEnhancedConfig;
14
- }
15
- interface PluginsMap {
16
- [SourceEditingEnhanced.pluginName]: SourceEditingEnhanced;
17
- }
18
- interface CommandsMap {
19
- replaceSource: ReplaceSourceCommand;
20
- editSource: EditSourceCommand;
21
- }
22
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- export{};
package/src/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module source-editing-enhanced
7
- */
8
- export { default as SourceEditingEnhanced } from './sourceeditingenhanced.js';
9
- export { default as ReplaceSourceCommand } from './replacesourcecommand.js';
10
- export { default as EditSourceCommand } from './ui/editsourcecommand.js';
11
- export type { SourceEditingEnhancedConfig } from './sourceeditingenhancedconfig.js';
12
- import './augmentation.js';
package/src/index.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0xa91c66,_0x12359b){var _0x382d30=_0x48a0,_0x466a14=_0xa91c66();while(!![]){try{var _0x3020b3=-parseInt(_0x382d30(0x190))/0x1+-parseInt(_0x382d30(0x191))/0x2*(-parseInt(_0x382d30(0x18e))/0x3)+-parseInt(_0x382d30(0x18f))/0x4*(parseInt(_0x382d30(0x18b))/0x5)+-parseInt(_0x382d30(0x18c))/0x6+parseInt(_0x382d30(0x18d))/0x7+-parseInt(_0x382d30(0x18a))/0x8+parseInt(_0x382d30(0x192))/0x9;if(_0x3020b3===_0x12359b)break;else _0x466a14['push'](_0x466a14['shift']());}catch(_0x233545){_0x466a14['push'](_0x466a14['shift']());}}}(_0x429a,0x67208));export{default as SourceEditingEnhanced}from'./sourceeditingenhanced.js';export{default as ReplaceSourceCommand}from'./replacesourcecommand.js';function _0x48a0(_0xadd34e,_0x332f1a){var _0x429a26=_0x429a();return _0x48a0=function(_0x48a01c,_0x2f50f3){_0x48a01c=_0x48a01c-0x18a;var _0x126cec=_0x429a26[_0x48a01c];return _0x126cec;},_0x48a0(_0xadd34e,_0x332f1a);}function _0x429a(){var _0x269ef2=['95870ivHXTT','2194fjywue','4076847oeBALm','1112432dKxexP','6145EADwCL','1510590ALpxGz','3675518JNhFEx','450mfnBQV','760kstMFz'];_0x429a=function(){return _0x269ef2;};return _0x429a();}export{default as EditSourceCommand}from'./ui/editsourcecommand.js';import'./augmentation.js';
@@ -1,28 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module source-editing-enhanced/replacesourcecommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- /**
11
- * The command replaces editor active root content with the provided data.
12
- */
13
- export default class ReplaceSourceCommand extends Command {
14
- /**
15
- * @inheritDoc
16
- */
17
- constructor(editor: Editor);
18
- /**
19
- * @inheritDoc
20
- */
21
- refresh(): void;
22
- /**
23
- * Executes the command.
24
- */
25
- execute(data: string, options?: {
26
- rootName: string | null;
27
- }): void;
28
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x227a19=_0x4590;(function(_0x5574a6,_0x486ca1){const _0xf95872=_0x4590,_0x1d2996=_0x5574a6();while(!![]){try{const _0x5d6cad=parseInt(_0xf95872(0x17c))/0x1+-parseInt(_0xf95872(0x175))/0x2*(-parseInt(_0xf95872(0x16c))/0x3)+parseInt(_0xf95872(0x178))/0x4+parseInt(_0xf95872(0x177))/0x5+parseInt(_0xf95872(0x16b))/0x6*(parseInt(_0xf95872(0x16e))/0x7)+-parseInt(_0xf95872(0x16a))/0x8*(parseInt(_0xf95872(0x16f))/0x9)+parseInt(_0xf95872(0x171))/0xa*(-parseInt(_0xf95872(0x172))/0xb);if(_0x5d6cad===_0x486ca1)break;else _0x1d2996['push'](_0x1d2996['shift']());}catch(_0x33c3f3){_0x1d2996['push'](_0x1d2996['shift']());}}}(_0x1d0c,0x8f491));import{Command as _0x2625a1}from'ckeditor5/src/core.js';import{getActiveRootName as _0x58c927}from'./utils/getactiverootname.js';export default class e extends _0x2625a1{constructor(_0x3ec32e){const _0x64498=_0x4590;super(_0x3ec32e),this[_0x64498(0x176)]();}[_0x227a19(0x176)](){const _0x286511=_0x227a19;this[_0x286511(0x17b)]=!this[_0x286511(0x174)][_0x286511(0x173)];}[_0x227a19(0x17a)](_0x32c687,_0x5d01f8){const _0x37bd36=_0x227a19,_0x45c74c=this[_0x37bd36(0x174)],_0x353ba0=_0x5d01f8?.[_0x37bd36(0x170)]??_0x58c927(_0x45c74c);_0x45c74c[_0x37bd36(0x16d)][_0x37bd36(0x179)]({[_0x353ba0]:_0x32c687},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}function _0x4590(_0x510d13,_0x473719){const _0x1d0cbe=_0x1d0c();return _0x4590=function(_0x45908a,_0x30f651){_0x45908a=_0x45908a-0x16a;let _0x1b8e75=_0x1d0cbe[_0x45908a];return _0x1b8e75;},_0x4590(_0x510d13,_0x473719);}function _0x1d0c(){const _0xae3b16=['3390vyThQD','2424645doOsDW','data','3563kStvwp','6066693jzFwog','rootName','26728160vKoyiq','11IGiEyH','isReadOnly','editor','2mtVHEZ','refresh','4669375hTWnsI','4075140tNRTKg','set','execute','isEnabled','885330PdMFlI','8ePTsFP'];_0x1d0c=function(){return _0xae3b16;};return _0x1d0c();}
@@ -1,47 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module source-editing-enhanced/sourceeditingenhanced
7
- * @publicApi
8
- */
9
- import { type Editor, Plugin } from 'ckeditor5/src/core.js';
10
- import SourceEditingEnhancedUI from './sourceeditingenhancedui.js';
11
- import '../theme/sourceeditingenhanced.css';
12
- /**
13
- * The source editing enhanced feature.
14
- *
15
- * It provides the possibility to view and edit the source of the document in the modal window.
16
- *
17
- * For a detailed overview, check the
18
- * {@glink features/source-editing/source-editing-enhanced source editing enhanced feature documentation} and the
19
- * {@glink api/source-editing-enhanced package page}.
20
- */
21
- export default class SourceEditingEnhanced extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "SourceEditingEnhanced";
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- static get requires(): readonly [typeof SourceEditingEnhancedUI];
38
- /**
39
- * @inheritDoc
40
- */
41
- constructor(editor: Editor);
42
- /**
43
- * @inheritDoc
44
- */
45
- init(): void;
46
- destroy(): void;
47
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x4e50a3=_0xf334;function _0xf334(_0x2db374,_0x826982){const _0x434716=_0x4347();return _0xf334=function(_0xf3349f,_0x15c56d){_0xf3349f=_0xf3349f-0x118;let _0x29d643=_0x434716[_0xf3349f];return _0x29d643;},_0xf334(_0x2db374,_0x826982);}(function(_0x3abcc2,_0x32b0fe){const _0x380f58=_0xf334,_0x179a98=_0x3abcc2();while(!![]){try{const _0x48bbc0=-parseInt(_0x380f58(0x121))/0x1+-parseInt(_0x380f58(0x12d))/0x2+-parseInt(_0x380f58(0x133))/0x3*(parseInt(_0x380f58(0x129))/0x4)+-parseInt(_0x380f58(0x131))/0x5*(parseInt(_0x380f58(0x134))/0x6)+parseInt(_0x380f58(0x135))/0x7+parseInt(_0x380f58(0x136))/0x8+parseInt(_0x380f58(0x123))/0x9*(parseInt(_0x380f58(0x13b))/0xa);if(_0x48bbc0===_0x32b0fe)break;else _0x179a98['push'](_0x179a98['shift']());}catch(_0x356bca){_0x179a98['push'](_0x179a98['shift']());}}}(_0x4347,0x25402));function _0x4347(){const _0x46a8c4=['has','sourceEditingEnhancedLicenseKeyNotAllowed','config','You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.','trialLimit','plugins','154952vefbwz','_showLicenseError','4725DNqvtR','get','sourceEditingEnhancedLicenseKeyExpired','sourceEditingEnhancedLicenseKeyDomainLimit','sourceEditingEnhancedLicenseKeyValid','featureNotAllowed','4azqUtA','evaluationLimit','RevisionHistory','source-editing-enhanced-incompatible-with-real-time-collaboration','424908zQYFQy','some','add','TrackChangesEditing','5UzPMmF','RealTimeCollaborativeEditing','272364xjSnbd','563646pCpBsD','1114078JfUZFd','2428272TpgeWE','_licenseKeyCheckInterval','destroy','SourceEditingEnhanced','CommentsEditing','4610BkQUny','requires','domainLimit','_checkCompatibility','replaceSource','define','sourceEditingEnhancedLicenseKeyInvalid','editor','sourceEditingEnhancedLicenseKeyTrialLimit','sourceEditingEnhanced.allowCollaborationFeatures','expired','init','You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.','pluginName','isOfficialPlugin','RestrictedEditingModeEditing','usageLimit','warn','sourceEditingEnhancedLicenseKeyEvaluationLimit','sourceEditingEnhancedLicenseKeyUsageLimit','isPremiumPlugin','commands','invalid','licenseKey'];_0x4347=function(){return _0x46a8c4;};return _0x4347();}import{Plugin as _0x4533fe}from'ckeditor5/src/core.js';import{CKEditorError as _0xfbcc64}from'ckeditor5/src/utils.js';import _0x1fad56 from'./sourceeditingenhancedui.js';import _0xacf031 from'./replacesourcecommand.js';import'../theme/sourceeditingenhanced.css';export default class c extends _0x4533fe{[_0x4e50a3(0x11a)];[_0x4e50a3(0x137)];static get[_0x4e50a3(0x148)](){const _0x4860a2=_0x4e50a3;return _0x4860a2(0x139);}static get[_0x4e50a3(0x149)](){return!0x0;}static get[_0x4e50a3(0x14f)](){return!0x0;}static get[_0x4e50a3(0x13c)](){return[_0x1fad56];}constructor(_0x210637){const _0x5199f8=_0x4e50a3;super(_0x210637),_0x210637[_0x5199f8(0x11d)][_0x5199f8(0x140)](_0x5199f8(0x144),!0x1);}[_0x4e50a3(0x146)](){const _0x18af6c=_0x4e50a3;this[_0x18af6c(0x13e)](),this[_0x18af6c(0x142)][_0x18af6c(0x118)][_0x18af6c(0x12f)](_0x18af6c(0x13f),new _0xacf031(this[_0x18af6c(0x142)])),this[_0x18af6c(0x11a)]=this[_0x18af6c(0x142)][_0x18af6c(0x11d)][_0x18af6c(0x124)](_0x18af6c(0x11a));const _0x1d17f5=this[_0x18af6c(0x142)];this[_0x18af6c(0x137)]=setInterval(()=>{const _0xc1b3de=_0x18af6c;let _0x48df1b;for(const _0x310897 in _0x1d17f5){const _0x253ff2=_0x310897,_0x4512da=_0x1d17f5[_0x253ff2];if(_0xc1b3de(0x127)==_0x4512da||_0xc1b3de(0x141)==_0x4512da||_0xc1b3de(0x125)==_0x4512da||_0xc1b3de(0x126)==_0x4512da||_0xc1b3de(0x11c)==_0x4512da||_0xc1b3de(0x14d)==_0x4512da||_0xc1b3de(0x143)==_0x4512da||_0xc1b3de(0x14e)==_0x4512da){delete _0x1d17f5[_0x253ff2],_0x48df1b=_0x4512da,clearInterval(this[_0xc1b3de(0x137)]),this[_0xc1b3de(0x137)]=void 0x0;break;}}_0xc1b3de(0x141)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x119)),_0xc1b3de(0x125)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x145)),_0xc1b3de(0x126)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x13d)),_0xc1b3de(0x11c)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x128),_0xc1b3de(0x139)),_0xc1b3de(0x14d)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x12a)),_0xc1b3de(0x143)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x11f)),_0xc1b3de(0x14e)==_0x48df1b&&_0x1d17f5[_0xc1b3de(0x122)](_0xc1b3de(0x14b));},0x3e8);}[_0x4e50a3(0x138)](){const _0x571e31=_0x4e50a3;this[_0x571e31(0x137)]&&clearInterval(this[_0x571e31(0x137)]);}[_0x4e50a3(0x13e)](){const _0x47333a=_0x4e50a3,_0x542c29=this[_0x47333a(0x142)],_0x41be66=_0x542c29[_0x47333a(0x11d)][_0x47333a(0x124)](_0x47333a(0x144));if(!_0x41be66&&_0x542c29[_0x47333a(0x120)][_0x47333a(0x11b)](_0x47333a(0x132)))throw new _0xfbcc64(_0x47333a(0x12c),null);!_0x41be66&&[_0x47333a(0x13a),_0x47333a(0x130),_0x47333a(0x12b)][_0x47333a(0x12e)](_0x50e245=>_0x542c29[_0x47333a(0x120)][_0x47333a(0x11b)](_0x50e245))&&console[_0x47333a(0x14c)](_0x47333a(0x11e)),_0x542c29[_0x47333a(0x120)][_0x47333a(0x11b)](_0x47333a(0x14a))&&console[_0x47333a(0x14c)](_0x47333a(0x147));}}
@@ -1,42 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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 { Extension } from '@codemirror/state';
6
- /**
7
- * @module source-editing-enhanced/sourceeditingenhancedconfig
8
- * @publicApi
9
- */
10
- /**
11
- * The configuration of the source editing enhanced feature.
12
- *
13
- * ```ts
14
- * ClassicEditor
15
- * .create( {
16
- * sourceEditingEnhanced: {
17
- * allowCollaborationFeatures: true
18
- * }
19
- * } )
20
- * .then( ... )
21
- * .catch( ... );
22
- * ```
23
- *
24
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
25
- */
26
- export interface SourceEditingEnhancedConfig {
27
- /**
28
- * Set to `true` to enable source editing feature for real-time collaboration.
29
- *
30
- * Please note that source editing feature is not fully compatible with real-time collaboration and using it may lead to data loss.
31
- * {@glink features/source-editing/source-editing-enhanced#limitations-and-incompatibilities Read more}.
32
- *
33
- * @default false
34
- */
35
- allowCollaborationFeatures?: boolean;
36
- /**
37
- * The theme of the source editor.
38
- *
39
- * {@glink features/source-editing/source-editing-enhanced#themes Read more} about themes configuration.
40
- */
41
- theme?: Extension;
42
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- export{};
@@ -1,40 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module source-editing-enhanced/sourceeditingenhancedui
7
- */
8
- import { Plugin, PendingActions } from 'ckeditor5/src/core.js';
9
- import '../theme/sourceeditingenhanced.css';
10
- /**
11
- * The source editing enhanced UI feature.
12
- *
13
- * It introduces 'Source' button in toolbar and menu bar that opens a modal window with the source code of the document.
14
- */
15
- export default class SourceEditingEnhancedUI extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "SourceEditingEnhancedUI";
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): readonly [typeof PendingActions];
24
- /**
25
- * @inheritDoc
26
- */
27
- static get isOfficialPlugin(): true;
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isPremiumPlugin(): true;
32
- /**
33
- * @inheritDoc
34
- */
35
- init(): void;
36
- /**
37
- * @inheritDoc
38
- */
39
- afterInit(): void;
40
- }