@ckeditor/ckeditor5-source-editing-enhanced 48.2.0-alpha.3 → 48.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x54acb9,PendingActions as _0x3db53b,Plugin as _0x29f5e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a1ddf,formatHtml as _0x7bc39d,env as _0x1ad144,uid as _0x364948}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x8550bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3adde5,ButtonView as _0xc2f1d5,MenuBarMenuListItemButtonView as _0x395623}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x2f5581,crosshairCursor as _0x39844b,drawSelection as _0x4143e1,dropCursor as _0x1eaef9,lineNumbers as _0x30c024,highlightActiveLine as _0x58f0db,highlightActiveLineGutter as _0x113eb0,highlightSpecialChars as _0x42f1f3,rectangularSelection as _0x49dc65,keymap as _0x12eff3}from'@codemirror/view';import{Compartment as _0x3b037f,Transaction as _0x3e55bc}from'@codemirror/state';import{bracketMatching as _0x169013,foldGutter as _0x372bf4,indentOnInput as _0x339358,syntaxHighlighting as _0x28d5a2,defaultHighlightStyle as _0x405372,foldKeymap as _0x1c2974}from'@codemirror/language';import{toggleTabFocusMode as _0x3143ed,history as _0x276c65,defaultKeymap as _0x32b59b,historyKeymap as _0x103623,indentLess as _0x58e279,indentMore as _0x8ca479,redo as _0x4a391d,undo as _0x4ceebc}from'@codemirror/commands';import{autocompletion as _0x29d1fb,closeBrackets as _0x3c0488,closeBracketsKeymap as _0x992e7b,completionKeymap as _0x5d7016}from'@codemirror/autocomplete';import{html as _0x21914c}from'@codemirror/lang-html';import{markdown as _0x53efb8}from'@codemirror/lang-markdown';import{oneDark as _0x1b1f7e}from'@codemirror/theme-one-dark';function q(_0x13d7d7,_0x4770d5){const t=_0x13d7d7['t'];switch(_0x4770d5){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 _0x4770d5;}}function H(_0x46f02f){const _0x373a62=_0x46f02f['editing']['view']['document']['roots'],_0x40d25f=_0x373a62['length'];if(0x0===_0x40d25f)throw new _0x4a1ddf('source-editing-enhanced-editor-no-root',_0x46f02f);if(0x1===_0x40d25f)return _0x373a62['first']['rootName'];return Array['from'](_0x46f02f['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x5b229e){return J(_0x5b229e['replace'](/^[\n\s]*/g,''))?_0x5b229e['replace'](/\s+/g,''):_0x5b229e;}function J(_0x1e1253){return _0x1e1253['startsWith']('<');}function G(_0x58770c){const _0x3d7386=[_0x2f5581['lineWrapping'],_0x29d1fb(),_0x169013(),_0x3c0488(),_0x39844b(),_0x4143e1(),_0x1eaef9(),_0x30c024(),_0x372bf4(),_0x58f0db(),_0x113eb0(),_0x42f1f3(),_0x276c65(),_0x339358(),_0x49dc65(),_0x28d5a2(_0x405372,{'fallback':!0x0})],_0x407d68=new _0x3b037f();_0x3d7386['push'](_0x407d68['of'](_0x2f5581['editable']['of'](!0x0))),'html'===_0x58770c['syntaxLanguage']?_0x3d7386['push'](_0x21914c()):_0x3d7386['push'](_0x53efb8());const _0x2469bb=function(_0x51bf44){if(_0x51bf44&&'default'!==_0x51bf44)return'dark'===_0x51bf44?_0x1b1f7e:_0x51bf44;return null;}(_0x58770c['theme']);_0x2469bb&&_0x3d7386['push'](_0x2469bb),_0x3d7386['push'](_0x12eff3['of']([..._0x992e7b,..._0x32b59b,..._0x103623,..._0x1c2974,..._0x5d7016,{'key':'Tab','run':_0x8ca479,'shift':_0x58e279,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x4a391d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x4a391d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x4ceebc,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x11abdd=new _0x2f5581({'extensions':_0x3d7386,'parent':_0x58770c['parent']});return _0x3143ed(_0x11abdd),{'focus':()=>{_0x11abdd['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x11abdd['focus']();},'getData':()=>_0x11abdd['state']['doc']['toString'](),'setData':_0x25dc58=>{_0x11abdd['dispatch']({'changes':{'from':0x0,'to':_0x11abdd['state']['doc']['length'],'insert':_0x25dc58},'annotations':_0x3e55bc['addToHistory']['of'](!0x1)});},'setReadOnly':_0x32cb3e=>{_0x11abdd['dispatch']({'effects':[_0x407d68['reconfigure'](_0x2f5581['editable']['of'](!_0x32cb3e))]});},'destroy':()=>{_0x11abdd['destroy']();},'instance':_0x11abdd};}class CodeEditorView extends _0x3adde5{['_codeEditorApi']=null;['_options'];constructor(_0x220081,_0xaddb27){super(_0x220081),this['_options']=_0xaddb27,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']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x510b24,_0x2e887a,_0xb79c96)=>{this['setReadOnly'](_0xb79c96);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x54e597){this['_codeEditorApi']['setData'](_0x54e597);}['setReadOnly'](_0xa2bf7a){this['_codeEditorApi']['setReadOnly'](_0xa2bf7a);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x54acb9{constructor(_0x25d2e9){super(_0x25d2e9),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x3db53b)['on']('change:hasAny',(_0x277257,_0x4f1654,_0x2453b4)=>{_0x2453b4?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x7b949f=this['editor'];for(const _0x559bad of _0x7b949f['commands']['names']())['replaceSource','editSource']['includes'](_0x559bad)||_0x7b949f['commands']['get'](_0x559bad)['forceDisabled'](Q);}['_enableCommands'](){const _0x2db1bd=this['editor'];for(const _0x32f1f0 of _0x2db1bd['commands']['commands']())_0x32f1f0['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b3faf=this['editor'],_0x20823d=_0x2b3faf['locale'],_0x436626=_0x2b3faf['plugins']['get']('Dialog'),_0x49ce63=H(_0x2b3faf),_0x43d44d=_0x2b3faf['data']['get']({'rootName':_0x49ce63}),_0xd1d17=J(_0x4bf925=_0x43d44d)?_0x7bc39d(_0x4bf925):_0x4bf925;var _0x4bf925;const _0x42ae07=new CodeEditorView(_0x20823d,{'syntaxLanguage':_0x2b3faf['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2b3faf['config']['get']('sourceEditingEnhanced.theme')});let _0x1964f9=!0x0;const _0x27554d=_0x5d4f0a=>{if(!_0x1964f9)return;return Z(_0x42ae07['getData']())!==Z(_0xd1d17)?window['confirm'](q(_0x20823d,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5d4f0a['stop']():void 0x0;};_0x436626['show']({'id':'sourceEditingEnhanced','title':q(_0x20823d,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x42ae07,'actionButtons':[{'label':q(_0x20823d,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x436626['hide']();}},{'label':q(_0x20823d,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x4e7b34=Z(_0x42ae07['getData']())!==Z(_0xd1d17);(_0x4e7b34&&_0x2b3faf['execute']('replaceSource',_0x42ae07['getData']()),_0x1964f9=!0x1,_0x436626['hide'](),_0x4e7b34&&'editables'in _0x2b3faf['ui']['view'])&&_0x2b3faf['ui']['view']['editables'][_0x49ce63]['element']['focus']();},'onCreate':_0x1018ab=>{_0x1018ab['set']('isEnabled',!_0x2b3faf['isReadOnly']),_0x1018ab['bind']('isEnabled')['to'](_0x2b3faf,'isReadOnly',this,'isEnabled',(_0x28f2a4,_0x50277f)=>!_0x28f2a4&&_0x50277f);}}],'onHide':()=>{this['_enableCommands'](),_0x436626['off']('hide',_0x27554d),_0x42ae07['destroy']();},'onShow':()=>{_0x42ae07['bind']('isReadOnly')['to'](_0x2b3faf,'isReadOnly',this,'isEnabled',(_0x37a55d,_0x48927c)=>_0x37a55d||!_0x48927c),_0x42ae07['setData'](_0xd1d17),_0x42ae07['focus'](),_0x436626['on']('hide',_0x27554d,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x29f5e3{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x3db53b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e77d2=this['editor'],_0x17aef3=_0x3e77d2['locale'],_0x5b0e06=new EditSourceCommand(_0x3e77d2);_0x3e77d2['commands']['add']('editSource',_0x5b0e06),_0x3e77d2['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x336a58=this['_createButton'](_0xc2f1d5,_0x5b0e06);return _0x336a58['set']({'label':q(_0x17aef3,'Source'),'icon':_0x8550bf,'tooltip':q(_0x17aef3,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x336a58;}),_0x3e77d2['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x41d989=this['_createButton'](_0x395623,_0x5b0e06,!0x0);return _0x41d989['set']({'label':q(_0x17aef3,'Edit\x20source\x20modal\x20label'),'icon':_0x8550bf,'role':'menuitemcheckbox'}),_0x41d989;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x56e49b){const _0x4b05dc=_0x7a5376([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x190fd6=0x5dba9314,_0x1ba39f=0x5dbd189c^_0x190fd6,_0x43f9c1=window[_0x7a5376([0x44,0x61,0x74,0x65])][_0x7a5376([0x6e,0x6f,0x77])](),_0x4c81c3=_0x56e49b[_0x7a5376([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c5d6f=new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bd9f5=>{_0x4c81c3[_0x7a5376([0x6f,0x6e,0x63,0x65])](_0x7a5376([0x72,0x65,0x61,0x64,0x79]),_0x5bd9f5);}),_0x295464={[_0x7a5376([0x6b,0x74,0x79])]:_0x7a5376([0x45,0x43]),[_0x7a5376([0x75,0x73,0x65])]:_0x7a5376([0x73,0x69,0x67]),[_0x7a5376([0x63,0x72,0x76])]:_0x7a5376([0x50,0x2d,0x32,0x35,0x36]),[_0x7a5376([0x78])]:_0x7a5376([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]),[_0x7a5376([0x79])]:_0x7a5376([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]),[_0x7a5376([0x61,0x6c,0x67])]:_0x7a5376([0x45,0x53,0x32,0x35,0x36])},_0x6ee48a=_0x4c81c3[_0x7a5376([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7a5376([0x67,0x65,0x74])](_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18c336(){let _0x917ae2,_0xc2055d=null,_0x4e2896=null;try{if(_0x6ee48a==_0x7a5376([0x47,0x50,0x4c]))return _0x7a5376([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x917ae2=_0x308071(),!_0x917ae2)return _0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x917ae2[_0x7a5376([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e2896=_0x868c7e(_0x917ae2[_0x7a5376([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x917ae2[_0x7a5376([0x6a,0x74,0x69])])),await _0x19777c()?_0x1258c2()?_0x160df2()?_0x7a5376([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdb8888()?(_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7a5376([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc2055d=_0x10c524(_0x7a5376([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0576()):_0x7a5376([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7a5376([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x160df2(){const _0x7ac27a=[_0x7a5376([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7a5376([0x74,0x72,0x69,0x61,0x6c])][_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43f9c1/0x3e8:0xe10*_0x1ba39f;return _0x917ae2[_0x7a5376([0x65,0x78,0x70])]<_0x7ac27a;}function _0x1258c2(){const _0x184822=_0x917ae2[_0x7a5376([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x184822&&(!!_0x184822[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x2a]))||!!_0x184822[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x53,0x45,0x45])));}function _0xdb8888(){const _0x20038a=_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20038a||0x0==_0x20038a[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x218703}=new URL(window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20038a[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218703))return!0x0;const _0x3d8f05=_0x218703[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e]));return _0x20038a[_0x7a5376([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x571483=>_0x571483[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x2a])))[_0x7a5376([0x6d,0x61,0x70])](_0x97fc7f=>_0x97fc7f[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e])))[_0x7a5376([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53a59e=>_0x53a59e[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d8f05[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7a5376([0x6d,0x61,0x70])](_0x51c87a=>Array(_0x3d8f05[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c87a[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7a5376([0x66,0x69,0x6c,0x6c])](_0x51c87a[0x0]===_0x7a5376([0x2a])?_0x7a5376([0x2a]):'')[_0x7a5376([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c87a))[_0x7a5376([0x73,0x6f,0x6d,0x65])](_0xd4d963=>_0x3d8f05[_0x7a5376([0x65,0x76,0x65,0x72,0x79])]((_0x36b519,_0x1c2bb2)=>_0xd4d963[_0x1c2bb2]===_0x36b519||_0xd4d963[_0x1c2bb2]===_0x7a5376([0x2a])));}function _0x2e0576(){return _0xc2055d&&_0x4e2896?new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d52d3,_0x509138)=>{_0xc2055d[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x5d52d3,_0x509138),_0x4e2896[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x45c783=>{_0x45c783!=_0x7a5376([0x56,0x61,0x6c,0x69,0x64])&&_0x5d52d3(_0x45c783);},_0x509138);}):_0xc2055d||_0x4e2896||_0x7a5376([0x56,0x61,0x6c,0x69,0x64]);}}function _0x868c7e(_0x263e95,_0x56e371){return new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597d8b=>{if(_0x351bcf())return _0x597d8b(_0x7a5376([0x56,0x61,0x6c,0x69,0x64]));_0x2ea314(),_0x4c81c3[_0x7a5376([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49e287=!0x1;const _0x3c4eae=_0x364948();function _0x3fd52b(_0x511cea){return!!_0x511cea&&(typeof _0x511cea===_0x7a5376([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x511cea===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x511cea[_0x7a5376([0x74,0x68,0x65,0x6e])]===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x511cea[_0x7a5376([0x63,0x61,0x74,0x63,0x68])]===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0cec(_0x387b66){_0x2969b4(_0x387b66)[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x4f7212=>{if(!_0x4f7212||_0x4f7212[_0x7a5376([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7a5376([0x6f,0x6b]))return _0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14b86a(_0x471116(_0x3c4eae+_0x56e371))!=_0x4f7212[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7a5376([0x56,0x61,0x6c,0x69,0x64]);})[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x4c8d75=>(_0x3600c1(),_0x4c8d75),()=>{const _0x3e84b6=_0x5e5fd1();return null==_0x3e84b6?(_0x3600c1(),_0x7a5376([0x56,0x61,0x6c,0x69,0x64])):_0x7a5376(_0x43f9c1-_0x3e84b6>(0x79b61714^_0x190fd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x597d8b)[_0x7a5376([0x63,0x61,0x74,0x63,0x68])](()=>{_0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c4afd=0x5d8c7d94^_0x190fd6;function _0x3600c1(){const _0x2e87c3=_0x7a5376([0x6c,0x6c,0x63,0x74,0x2d])+_0x14b86a(_0x471116(_0x263e95)),_0x3f74dd=_0x5a82cb(_0x14b86a(window[_0x7a5376([0x4d,0x61,0x74,0x68])][_0x7a5376([0x63,0x65,0x69,0x6c])](_0x43f9c1/_0x1c4afd)));window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7a5376([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e87c3,_0x3f74dd);}function _0x5e5fd1(){const _0x1d242c=_0x7a5376([0x6c,0x6c,0x63,0x74,0x2d])+_0x14b86a(_0x471116(_0x263e95)),_0x429d56=window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7a5376([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d242c);return _0x429d56?window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a82cb(_0x429d56),0x10)*_0x1c4afd:null;}function _0x2969b4(_0x44382e){return new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c1ee2,_0x3929a7)=>{_0x44382e[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x5c1ee2,_0x3929a7),window[_0x7a5376([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3929a7,0x5dbb47d4^_0x190fd6);});}}_0x4c81c3[_0x7a5376([0x6f,0x6e])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c787e,_0x3be05c)=>{if(_0x3be05c[0x0]!=_0x263e95)return _0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3be05c[0x1]={..._0x3be05c[0x1],[_0x7a5376([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c4eae};},{[_0x7a5376([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7a5376([0x68,0x69,0x67,0x68])}),_0x4c81c3[_0x7a5376([0x6f,0x6e])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e91d2=>{_0x3fd52b(_0x3e91d2[_0x7a5376([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49e287=!0x0,_0x5c0cec(_0x3e91d2[_0x7a5376([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7a5376([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7a5376([0x6c,0x6f,0x77])}),_0x2c5d6f[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>{_0x49e287||_0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x351bcf(){return _0x4c81c3[_0x7a5376([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a5376([0x76,0x69,0x65,0x77])][_0x7a5376([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7a5376([0x61,0x75,0x74,0x6f]);}function _0x2ea314(){_0x4c81c3[_0x7a5376([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a5376([0x76,0x69,0x65,0x77])][_0x7a5376([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7a5376([0x61,0x75,0x74,0x6f]);}}function _0x10c524(_0x5848e7){const _0x1c8ac8=[new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x103445=>setTimeout(_0x103445,0x5db3add8^_0x190fd6)),_0x2c5d6f[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x157271=>{let _0x2c3f2a=0x0;_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x6f,0x6e])](_0x7a5376([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b0488,_0x90f89c)=>{_0x90f89c[0x0][_0x7a5376([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c3f2a++,_0x2c3f2a==(0x5dba96fc^_0x190fd6)&&(_0x157271(),_0x3b0488[_0x7a5376([0x6f,0x66,0x66])]());});}))];return window[_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7a5376([0x72,0x61,0x63,0x65])](_0x1c8ac8)[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>_0x5848e7);}async function _0x2cc3ea(){await _0x2c5d6f,_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x355714,_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x355714,_0x4c81c3[_0x7a5376([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f9994(_0x126510){const _0x41268b=_0x357e90();_0x4c81c3[_0x41268b]=_0x7a5376([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])+_0x126510,_0x126510!=_0x7a5376([0x56,0x61,0x6c,0x69,0x64])&&_0x2cc3ea();}function _0x357e90(){const _0x2fad12=window[_0x7a5376([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7a5376([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7a5376([0x6e,0x6f,0x77])]())[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7a5376([0x2e]),'');let _0x57465d=_0x7a5376([0x4e]);for(let _0x2391f9=0x0;_0x2391f9<_0x2fad12[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2391f9+=0x2){let _0xd2e43d=window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fad12[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2391f9,_0x2391f9+0x2));_0xd2e43d>=_0x4b05dc[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd2e43d-=_0x4b05dc[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57465d+=_0x4b05dc[_0xd2e43d];}return _0x57465d;}function _0x308071(){const _0x2f0bec=_0x6ee48a[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e]));if(0x3!=_0x2f0bec[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f44bf(_0x2f0bec[0x1]);function _0x1f44bf(_0x376da0){const _0x2e1f41=_0x569ebb(_0x376da0);return _0x2e1f41&&_0x5110fb()?_0x2e1f41:null;function _0x5110fb(){const _0x46eb28=_0x2e1f41[_0x7a5376([0x6a,0x74,0x69])],_0xfbe5fc=window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46eb28[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46eb28[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32c6d9={..._0x2e1f41,[_0x7a5376([0x6a,0x74,0x69])]:_0x46eb28[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46eb28[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32c6d9[_0x7a5376([0x76,0x63])],_0x471116(_0x32c6d9)==_0xfbe5fc;}}}async function _0x19777c(){let _0x7301e9=!0x0;try{const _0x6e4408=_0x6ee48a[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e])),[_0x5a9204,_0x4db40a,_0x23de53]=_0x6e4408;return _0x16c5dc(_0x5a9204),await _0x576e21(_0x5a9204,_0x4db40a,_0x23de53),_0x7301e9;}catch{return!0x1;}function _0x16c5dc(_0xfa2baa){const _0x4cbba2=_0x569ebb(_0xfa2baa);_0x4cbba2&&_0x4cbba2[_0x7a5376([0x61,0x6c,0x67])]==_0x7a5376([0x45,0x53,0x32,0x35,0x36])||(_0x7301e9=!0x1);}async function _0x576e21(_0x324bd7,_0x56d2b2,_0x541c22){const _0x179e7c=window[_0x7a5376([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7a5376([0x66,0x72,0x6f,0x6d])](_0x528a85(_0x541c22),_0x3fd79d=>_0x3fd79d[_0x7a5376([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x62a6b6=new window[(_0x7a5376([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7a5376([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x324bd7+_0x7a5376([0x2e])+_0x56d2b2),_0x5717ac=window[_0x7a5376([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7a5376([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5717ac)return;const _0x1a3d0f=await _0x5717ac[_0x7a5376([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7a5376([0x6a,0x77,0x6b]),_0x295464,{[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x45,0x43,0x44,0x53,0x41]),[_0x7a5376([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7a5376([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5717ac[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x45,0x43,0x44,0x53,0x41]),[_0x7a5376([0x68,0x61,0x73,0x68])]:{[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3d0f,_0x179e7c,_0x62a6b6)||(_0x7301e9=!0x1);}}function _0x569ebb(_0x58229c){return _0x58229c[_0x7a5376([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7a5376([0x65,0x79]))?JSON[_0x7a5376([0x70,0x61,0x72,0x73,0x65])](_0x528a85(_0x58229c)):null;}function _0x528a85(_0x518f24){return window[_0x7a5376([0x61,0x74,0x6f,0x62])](_0x518f24[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7a5376([0x2b]))[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7a5376([0x2f])));}function _0x471116(_0x1980de){let _0x1c3709=0x1505;function _0x44e470(_0x4d262b){for(let _0x4f1c54=0x0;_0x4f1c54<_0x4d262b[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f1c54++){const _0x12fd9d=_0x4d262b[_0x7a5376([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f1c54);_0x1c3709=(_0x1c3709<<0x5)+_0x1c3709+_0x12fd9d,_0x1c3709&=_0x1c3709;}}function _0x5e81(_0x2bfcab){Array[_0x7a5376([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfcab)?_0x2bfcab[_0x7a5376([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e81):_0x2bfcab&&typeof _0x2bfcab==_0x7a5376([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7a5376([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfcab)[_0x7a5376([0x73,0x6f,0x72,0x74])]()[_0x7a5376([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x527e26,_0x2650b0])=>{_0x44e470(_0x527e26),_0x5e81(_0x2650b0);}):_0x44e470(window[_0x7a5376([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfcab));}return _0x5e81(_0x1980de),_0x1c3709>>>0x0;}function _0x14b86a(_0x54bdab){return _0x54bdab[_0x7a5376([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7a5376([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7a5376([0x30]));}function _0x5a82cb(_0x4275aa){return _0x4275aa[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7a5376([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7a5376([0x6a,0x6f,0x69,0x6e])]('');}function _0x355714(){}function _0x7a5376(_0x542625){return _0x542625['map'](_0x5729f0=>String['fromCharCode'](_0x5729f0))['join']('');}_0x2f9994(await _0x18c336());}(this);}['_createButton'](_0x239325,_0x25ffc3,_0x558dfc=!0x1){const _0x462815=new _0x239325(this['editor']['locale']);return _0x462815['set']({'withText':_0x558dfc,'isToggleable':!0x1}),_0x462815['bind']('isEnabled')['to'](_0x25ffc3,'isEnabled'),this['listenTo'](_0x462815,'execute',()=>_0x25ffc3['execute']()),_0x462815;}['_registerKeybindings'](){const _0x3b9a30=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3b9a30,'Source\x20Editing\x20Enhanced')});const _0x2a126b=_0x1ad144['isMac']||_0x1ad144['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3b9a30,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3b9a30,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3b9a30,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3b9a30,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3b9a30,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3b9a30,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3b9a30,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2a126b?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3b9a30,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3b9a30,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3b9a30,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3b9a30,'Select\x20line'),'keystroke':_0x2a126b?'Ctrl!+L':'Alt+L'},{'label':q(_0x3b9a30,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2a126b?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3b9a30,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3b9a30,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3b9a30,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3b9a30,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3b9a30,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2a126b?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x54acb9{constructor(_0x402964){super(_0x402964),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x1040e4,_0x4fe642){const _0xa0d7a3=this['editor'],_0x35f4e9=_0x4fe642?.['rootName']??H(_0xa0d7a3);_0xa0d7a3['data']['set']({[_0x35f4e9]:_0x1040e4},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x29f5e3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x5b98f8){super(_0x5b98f8),_0x5b98f8['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x399e24=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c0335;for(const _0x3a25b6 in _0x399e24){const _0x4f54b6=_0x3a25b6,_0x3046db=_0x399e24[_0x4f54b6];if('sourceEditingEnhancedLicenseKeyValid'==_0x3046db||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3046db||'sourceEditingEnhancedLicenseKeyExpired'==_0x3046db||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3046db||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3046db||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3046db||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3046db){delete _0x399e24[_0x4f54b6],_0x4c0335=_0x3046db,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x4c0335&&_0x399e24['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x4c0335&&_0x399e24['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4c0335&&_0x399e24['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4eef2f=this['editor'],_0x2c2869=_0x4eef2f['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x2c2869&&_0x4eef2f['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x4a1ddf('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x2c2869&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5d7702=>_0x4eef2f['plugins']['has'](_0x5d7702))&&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.'),_0x4eef2f['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{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x302856,PendingActions as _0x4bed36,Plugin as _0x1ace90}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x541de5,formatHtml as _0x419a9f,env as _0x2c44b6,uid as _0x572caf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x12a7ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x518bb8,ButtonView as _0x3ec11d,MenuBarMenuListItemButtonView as _0x2977a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5be353,crosshairCursor as _0x47b841,drawSelection as _0x685bbc,dropCursor as _0x53ddec,lineNumbers as _0x37d3a8,highlightActiveLine as _0x327913,highlightActiveLineGutter as _0x5d60ce,highlightSpecialChars as _0x3bcc7c,rectangularSelection as _0x5755b4,keymap as _0x57525b}from'@codemirror/view';import{Compartment as _0xae2240,Transaction as _0x514134}from'@codemirror/state';import{bracketMatching as _0x316572,foldGutter as _0x530c3d,indentOnInput as _0x173401,syntaxHighlighting as _0x1413a6,defaultHighlightStyle as _0x58a130,foldKeymap as _0x4c01d4}from'@codemirror/language';import{toggleTabFocusMode as _0x1f636e,history as _0x299336,defaultKeymap as _0x4a9b3d,historyKeymap as _0x3c9d59,indentLess as _0x20bb9a,indentMore as _0x3ca0f,redo as _0xe53e3c,undo as _0x2111f2}from'@codemirror/commands';import{autocompletion as _0x54eb53,closeBrackets as _0x7b1d00,closeBracketsKeymap as _0x4b9588,completionKeymap as _0x13b0ee}from'@codemirror/autocomplete';import{html as _0x28102d}from'@codemirror/lang-html';import{markdown as _0x4de516}from'@codemirror/lang-markdown';import{oneDark as _0x1f70bb}from'@codemirror/theme-one-dark';function q(_0x1014e6,_0x4b4e62){const t=_0x1014e6['t'];switch(_0x4b4e62){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 _0x4b4e62;}}function H(_0x37d0c3){const _0x3ac45d=_0x37d0c3['editing']['view']['document']['roots'],_0x43ee49=_0x3ac45d['length'];if(0x0===_0x43ee49)throw new _0x541de5('source-editing-enhanced-editor-no-root',_0x37d0c3);if(0x1===_0x43ee49)return _0x3ac45d['first']['rootName'];return Array['from'](_0x37d0c3['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x44f9c2){return J(_0x44f9c2['replace'](/^[\n\s]*/g,''))?_0x44f9c2['replace'](/\s+/g,''):_0x44f9c2;}function J(_0x18624d){return _0x18624d['startsWith']('<');}function G(_0x30b20a){const _0x4a071a=[_0x5be353['lineWrapping'],_0x54eb53(),_0x316572(),_0x7b1d00(),_0x47b841(),_0x685bbc(),_0x53ddec(),_0x37d3a8(),_0x530c3d(),_0x327913(),_0x5d60ce(),_0x3bcc7c(),_0x299336(),_0x173401(),_0x5755b4(),_0x1413a6(_0x58a130,{'fallback':!0x0})],_0x331ca0=new _0xae2240();_0x4a071a['push'](_0x331ca0['of'](_0x5be353['editable']['of'](!0x0))),'html'===_0x30b20a['syntaxLanguage']?_0x4a071a['push'](_0x28102d()):_0x4a071a['push'](_0x4de516());const _0x73e80c=function(_0x22025e){if(_0x22025e&&'default'!==_0x22025e)return'dark'===_0x22025e?_0x1f70bb:_0x22025e;return null;}(_0x30b20a['theme']);_0x73e80c&&_0x4a071a['push'](_0x73e80c),_0x4a071a['push'](_0x57525b['of']([..._0x4b9588,..._0x4a9b3d,..._0x3c9d59,..._0x4c01d4,..._0x13b0ee,{'key':'Tab','run':_0x3ca0f,'shift':_0x20bb9a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xe53e3c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xe53e3c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x2111f2,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x411dbe=new _0x5be353({'extensions':_0x4a071a,'parent':_0x30b20a['parent']});return _0x1f636e(_0x411dbe),{'focus':()=>{_0x411dbe['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x411dbe['focus']();},'getData':()=>_0x411dbe['state']['doc']['toString'](),'setData':_0x476105=>{_0x411dbe['dispatch']({'changes':{'from':0x0,'to':_0x411dbe['state']['doc']['length'],'insert':_0x476105},'annotations':_0x514134['addToHistory']['of'](!0x1)});},'setReadOnly':_0x2faf1b=>{_0x411dbe['dispatch']({'effects':[_0x331ca0['reconfigure'](_0x5be353['editable']['of'](!_0x2faf1b))]});},'destroy':()=>{_0x411dbe['destroy']();},'instance':_0x411dbe};}class CodeEditorView extends _0x518bb8{['_codeEditorApi']=null;['_options'];constructor(_0x27a61d,_0x2f391e){super(_0x27a61d),this['_options']=_0x2f391e,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']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x3d538b,_0x270ba6,_0x45cb5a)=>{this['setReadOnly'](_0x45cb5a);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x3a73ed){this['_codeEditorApi']['setData'](_0x3a73ed);}['setReadOnly'](_0x416164){this['_codeEditorApi']['setReadOnly'](_0x416164);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x302856{constructor(_0x48d8b7){super(_0x48d8b7),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x4bed36)['on']('change:hasAny',(_0x23d113,_0x67caec,_0x194564)=>{_0x194564?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x261c55=this['editor'];for(const _0x5b8d00 of _0x261c55['commands']['names']())['replaceSource','editSource']['includes'](_0x5b8d00)||_0x261c55['commands']['get'](_0x5b8d00)['forceDisabled'](Q);}['_enableCommands'](){const _0x370910=this['editor'];for(const _0x4acaa4 of _0x370910['commands']['commands']())_0x4acaa4['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x30bd97=this['editor'],_0x316a2b=_0x30bd97['locale'],_0x4ae575=_0x30bd97['plugins']['get']('Dialog'),_0x580176=H(_0x30bd97),_0x3badf9=_0x30bd97['data']['get']({'rootName':_0x580176}),_0x425cbf=J(_0x5c5537=_0x3badf9)?_0x419a9f(_0x5c5537):_0x5c5537;var _0x5c5537;const _0x4696a4=new CodeEditorView(_0x316a2b,{'syntaxLanguage':_0x30bd97['plugins']['has']('Markdown')?'markdown':'html','theme':_0x30bd97['config']['get']('sourceEditingEnhanced.theme')});let _0x4557a6=!0x0;const _0x23fea7=_0x4b90c6=>{if(!_0x4557a6)return;return Z(_0x4696a4['getData']())!==Z(_0x425cbf)?window['confirm'](q(_0x316a2b,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4b90c6['stop']():void 0x0;};_0x4ae575['show']({'id':'sourceEditingEnhanced','title':q(_0x316a2b,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x4696a4,'actionButtons':[{'label':q(_0x316a2b,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x4ae575['hide']();}},{'label':q(_0x316a2b,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2aae40=Z(_0x4696a4['getData']())!==Z(_0x425cbf);(_0x2aae40&&_0x30bd97['execute']('replaceSource',_0x4696a4['getData']()),_0x4557a6=!0x1,_0x4ae575['hide'](),_0x2aae40&&'editables'in _0x30bd97['ui']['view'])&&_0x30bd97['ui']['view']['editables'][_0x580176]['element']['focus']();},'onCreate':_0x2d56d2=>{_0x2d56d2['set']('isEnabled',!_0x30bd97['isReadOnly']),_0x2d56d2['bind']('isEnabled')['to'](_0x30bd97,'isReadOnly',this,'isEnabled',(_0x2468ea,_0x21fe73)=>!_0x2468ea&&_0x21fe73);}}],'onHide':()=>{this['_enableCommands'](),_0x4ae575['off']('hide',_0x23fea7),_0x4696a4['destroy']();},'onShow':()=>{_0x4696a4['bind']('isReadOnly')['to'](_0x30bd97,'isReadOnly',this,'isEnabled',(_0x158b17,_0x1deb03)=>_0x158b17||!_0x1deb03),_0x4696a4['setData'](_0x425cbf),_0x4696a4['focus'](),_0x4ae575['on']('hide',_0x23fea7,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x1ace90{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x4bed36];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x255b8b=this['editor'],_0xccef7e=_0x255b8b['locale'],_0xa67da0=new EditSourceCommand(_0x255b8b);_0x255b8b['commands']['add']('editSource',_0xa67da0),_0x255b8b['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3a21ff=this['_createButton'](_0x3ec11d,_0xa67da0);return _0x3a21ff['set']({'label':q(_0xccef7e,'Source'),'icon':_0x12a7ef,'tooltip':q(_0xccef7e,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3a21ff;}),_0x255b8b['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x562958=this['_createButton'](_0x2977a6,_0xa67da0,!0x0);return _0x562958['set']({'label':q(_0xccef7e,'Edit\x20source\x20modal\x20label'),'icon':_0x12a7ef,'role':'menuitemcheckbox'}),_0x562958;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x26a4a0){const _0x261298=_0x7111f8([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x317254=0x5dba9314,_0xea03eb=0x5dbd18ac^_0x317254,_0x50f8a1=window[_0x7111f8([0x44,0x61,0x74,0x65])][_0x7111f8([0x6e,0x6f,0x77])](),_0x44c245=_0x26a4a0[_0x7111f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c5611=new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25bc88=>{_0x44c245[_0x7111f8([0x6f,0x6e,0x63,0x65])](_0x7111f8([0x72,0x65,0x61,0x64,0x79]),_0x25bc88);}),_0x4f1d07={[_0x7111f8([0x6b,0x74,0x79])]:_0x7111f8([0x45,0x43]),[_0x7111f8([0x75,0x73,0x65])]:_0x7111f8([0x73,0x69,0x67]),[_0x7111f8([0x63,0x72,0x76])]:_0x7111f8([0x50,0x2d,0x32,0x35,0x36]),[_0x7111f8([0x78])]:_0x7111f8([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]),[_0x7111f8([0x79])]:_0x7111f8([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]),[_0x7111f8([0x61,0x6c,0x67])]:_0x7111f8([0x45,0x53,0x32,0x35,0x36])},_0x2d223e=_0x44c245[_0x7111f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7111f8([0x67,0x65,0x74])](_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b058e(){let _0xd31b2f,_0x157393=null,_0xa573cf=null;try{if(_0x2d223e==_0x7111f8([0x47,0x50,0x4c]))return _0x7111f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd31b2f=_0x3f7d89(),!_0xd31b2f)return _0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd31b2f[_0x7111f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa573cf=_0x576b63(_0xd31b2f[_0x7111f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd31b2f[_0x7111f8([0x6a,0x74,0x69])])),await _0x36100d()?_0x857ed()?_0xc94d65()?_0x7111f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f69d1()?(_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7111f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157393=_0x15df46(_0x7111f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f3dc7()):_0x7111f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7111f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc94d65(){const _0xc6e03c=[_0x7111f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7111f8([0x74,0x72,0x69,0x61,0x6c])][_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50f8a1/0x3e8:0xe10*_0xea03eb;return _0xd31b2f[_0x7111f8([0x65,0x78,0x70])]<_0xc6e03c;}function _0x857ed(){const _0x289415=_0xd31b2f[_0x7111f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x289415&&(!!_0x289415[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x2a]))||!!_0x289415[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x53,0x45,0x45])));}function _0x4f69d1(){const _0xe1ccb3=_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe1ccb3||0x0==_0xe1ccb3[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51a7d9}=new URL(window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe1ccb3[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a7d9))return!0x0;const _0x106508=_0x51a7d9[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e]));return _0xe1ccb3[_0x7111f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d399b=>_0x1d399b[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x2a])))[_0x7111f8([0x6d,0x61,0x70])](_0xbf3b24=>_0xbf3b24[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e])))[_0x7111f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1de39a=>_0x1de39a[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106508[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7111f8([0x6d,0x61,0x70])](_0x10596b=>Array(_0x106508[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10596b[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7111f8([0x66,0x69,0x6c,0x6c])](_0x10596b[0x0]===_0x7111f8([0x2a])?_0x7111f8([0x2a]):'')[_0x7111f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10596b))[_0x7111f8([0x73,0x6f,0x6d,0x65])](_0x307a76=>_0x106508[_0x7111f8([0x65,0x76,0x65,0x72,0x79])]((_0x126932,_0x2d437c)=>_0x307a76[_0x2d437c]===_0x126932||_0x307a76[_0x2d437c]===_0x7111f8([0x2a])));}function _0x5f3dc7(){return _0x157393&&_0xa573cf?new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x427afe,_0xc88fbd)=>{_0x157393[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x427afe,_0xc88fbd),_0xa573cf[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x531709=>{_0x531709!=_0x7111f8([0x56,0x61,0x6c,0x69,0x64])&&_0x427afe(_0x531709);},_0xc88fbd);}):_0x157393||_0xa573cf||_0x7111f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x576b63(_0x122061,_0x17fec8){return new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5dbd=>{if(_0x2b06c5())return _0x3e5dbd(_0x7111f8([0x56,0x61,0x6c,0x69,0x64]));_0x10ac10(),_0x44c245[_0x7111f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d4e08=!0x1;const _0x4b72e8=_0x572caf();function _0xc3cfe7(_0x536e3f){return!!_0x536e3f&&(typeof _0x536e3f===_0x7111f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x536e3f===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x536e3f[_0x7111f8([0x74,0x68,0x65,0x6e])]===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x536e3f[_0x7111f8([0x63,0x61,0x74,0x63,0x68])]===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23a6ee(_0x1adc8e){_0x44aea3(_0x1adc8e)[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x267c88=>{if(!_0x267c88||_0x267c88[_0x7111f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7111f8([0x6f,0x6b]))return _0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dbfe4(_0x3fe9e2(_0x4b72e8+_0x17fec8))!=_0x267c88[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7111f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x4351a0=>(_0x4eb462(),_0x4351a0),()=>{const _0x2a8c55=_0x35ba3c();return null==_0x2a8c55?(_0x4eb462(),_0x7111f8([0x56,0x61,0x6c,0x69,0x64])):_0x7111f8(_0x50f8a1-_0x2a8c55>(0x79b61714^_0x317254)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x3e5dbd)[_0x7111f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b2728=0x5d8c7d94^_0x317254;function _0x4eb462(){const _0x5e4515=_0x7111f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbfe4(_0x3fe9e2(_0x122061)),_0x5ec4bf=_0x3a1159(_0x1dbfe4(window[_0x7111f8([0x4d,0x61,0x74,0x68])][_0x7111f8([0x63,0x65,0x69,0x6c])](_0x50f8a1/_0x3b2728)));window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7111f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e4515,_0x5ec4bf);}function _0x35ba3c(){const _0x2ae1a9=_0x7111f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbfe4(_0x3fe9e2(_0x122061)),_0x1a4f19=window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7111f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae1a9);return _0x1a4f19?window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a1159(_0x1a4f19),0x10)*_0x3b2728:null;}function _0x44aea3(_0x3f515b){return new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x479c98,_0x5c19cb)=>{_0x3f515b[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x479c98,_0x5c19cb),window[_0x7111f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c19cb,0x5dbb47d4^_0x317254);});}}_0x44c245[_0x7111f8([0x6f,0x6e])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37a124,_0x8f5a84)=>{if(_0x8f5a84[0x0]!=_0x122061)return _0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f5a84[0x1]={..._0x8f5a84[0x1],[_0x7111f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b72e8};},{[_0x7111f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7111f8([0x68,0x69,0x67,0x68])}),_0x44c245[_0x7111f8([0x6f,0x6e])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36766b=>{_0xc3cfe7(_0x36766b[_0x7111f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d4e08=!0x0,_0x23a6ee(_0x36766b[_0x7111f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7111f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7111f8([0x6c,0x6f,0x77])}),_0x2c5611[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>{_0x3d4e08||_0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b06c5(){return _0x44c245[_0x7111f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7111f8([0x76,0x69,0x65,0x77])][_0x7111f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7111f8([0x61,0x75,0x74,0x6f]);}function _0x10ac10(){_0x44c245[_0x7111f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7111f8([0x76,0x69,0x65,0x77])][_0x7111f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7111f8([0x61,0x75,0x74,0x6f]);}}function _0x15df46(_0x1f5556){const _0x19f22b=[new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abd68=>setTimeout(_0x5abd68,0x5db3add8^_0x317254)),_0x2c5611[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1a84=>{let _0x71a526=0x0;_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x6f,0x6e])](_0x7111f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x456321,_0x2221de)=>{_0x2221de[0x0][_0x7111f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x71a526++,_0x71a526==(0x5dba96fc^_0x317254)&&(_0x3a1a84(),_0x456321[_0x7111f8([0x6f,0x66,0x66])]());});}))];return window[_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7111f8([0x72,0x61,0x63,0x65])](_0x19f22b)[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>_0x1f5556);}async function _0x302fa1(){await _0x2c5611,_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x349b75,_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x349b75,_0x44c245[_0x7111f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x573c5e(_0x8362cc){const _0x146f9b=_0x33c35a();_0x44c245[_0x146f9b]=_0x7111f8([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])+_0x8362cc,_0x8362cc!=_0x7111f8([0x56,0x61,0x6c,0x69,0x64])&&_0x302fa1();}function _0x33c35a(){const _0x1f7ce3=window[_0x7111f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7111f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7111f8([0x6e,0x6f,0x77])]())[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7111f8([0x2e]),'');let _0x22beee=_0x7111f8([0x4e]);for(let _0xa94394=0x0;_0xa94394<_0x1f7ce3[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa94394+=0x2){let _0x172e80=window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f7ce3[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa94394,_0xa94394+0x2));_0x172e80>=_0x261298[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x172e80-=_0x261298[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22beee+=_0x261298[_0x172e80];}return _0x22beee;}function _0x3f7d89(){const _0x12f405=_0x2d223e[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e]));if(0x3!=_0x12f405[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc74acc(_0x12f405[0x1]);function _0xc74acc(_0x1ef6f3){const _0x28ccd3=_0x13b59e(_0x1ef6f3);return _0x28ccd3&&_0x186551()?_0x28ccd3:null;function _0x186551(){const _0x4d1fac=_0x28ccd3[_0x7111f8([0x6a,0x74,0x69])],_0x254903=window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d1fac[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d1fac[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfca97d={..._0x28ccd3,[_0x7111f8([0x6a,0x74,0x69])]:_0x4d1fac[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d1fac[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfca97d[_0x7111f8([0x76,0x63])],_0x3fe9e2(_0xfca97d)==_0x254903;}}}async function _0x36100d(){let _0x3215b7=!0x0;try{const _0x445801=_0x2d223e[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e])),[_0xa15312,_0x3033ad,_0x52c88e]=_0x445801;return _0x5d0f2c(_0xa15312),await _0x3b9abf(_0xa15312,_0x3033ad,_0x52c88e),_0x3215b7;}catch{return!0x1;}function _0x5d0f2c(_0x56e8ae){const _0x232bdb=_0x13b59e(_0x56e8ae);_0x232bdb&&_0x232bdb[_0x7111f8([0x61,0x6c,0x67])]==_0x7111f8([0x45,0x53,0x32,0x35,0x36])||(_0x3215b7=!0x1);}async function _0x3b9abf(_0x486441,_0x4f4cd4,_0x581dac){const _0x476441=window[_0x7111f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7111f8([0x66,0x72,0x6f,0x6d])](_0x1549a5(_0x581dac),_0x2a1159=>_0x2a1159[_0x7111f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16a26d=new window[(_0x7111f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7111f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486441+_0x7111f8([0x2e])+_0x4f4cd4),_0x1cfadf=window[_0x7111f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7111f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1cfadf)return;const _0x409858=await _0x1cfadf[_0x7111f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7111f8([0x6a,0x77,0x6b]),_0x4f1d07,{[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x45,0x43,0x44,0x53,0x41]),[_0x7111f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7111f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1cfadf[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x45,0x43,0x44,0x53,0x41]),[_0x7111f8([0x68,0x61,0x73,0x68])]:{[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x409858,_0x476441,_0x16a26d)||(_0x3215b7=!0x1);}}function _0x13b59e(_0x5cc474){return _0x5cc474[_0x7111f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7111f8([0x65,0x79]))?JSON[_0x7111f8([0x70,0x61,0x72,0x73,0x65])](_0x1549a5(_0x5cc474)):null;}function _0x1549a5(_0x2e49de){return window[_0x7111f8([0x61,0x74,0x6f,0x62])](_0x2e49de[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7111f8([0x2b]))[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7111f8([0x2f])));}function _0x3fe9e2(_0x2690f8){let _0x27a3c9=0x1505;function _0x1c202a(_0x587902){for(let _0x1d824a=0x0;_0x1d824a<_0x587902[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d824a++){const _0x3d4202=_0x587902[_0x7111f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d824a);_0x27a3c9=(_0x27a3c9<<0x5)+_0x27a3c9+_0x3d4202,_0x27a3c9&=_0x27a3c9;}}function _0x44fbde(_0x4a2811){Array[_0x7111f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2811)?_0x4a2811[_0x7111f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44fbde):_0x4a2811&&typeof _0x4a2811==_0x7111f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7111f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2811)[_0x7111f8([0x73,0x6f,0x72,0x74])]()[_0x7111f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b41d5,_0x25e6ac])=>{_0x1c202a(_0x1b41d5),_0x44fbde(_0x25e6ac);}):_0x1c202a(window[_0x7111f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2811));}return _0x44fbde(_0x2690f8),_0x27a3c9>>>0x0;}function _0x1dbfe4(_0x15f56d){return _0x15f56d[_0x7111f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7111f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7111f8([0x30]));}function _0x3a1159(_0x5a8031){return _0x5a8031[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7111f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7111f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x349b75(){}function _0x7111f8(_0x1514ff){return _0x1514ff['map'](_0x300233=>String['fromCharCode'](_0x300233))['join']('');}_0x573c5e(await _0x5b058e());}(this);}['_createButton'](_0x42e6ec,_0x50b362,_0x4ee49f=!0x1){const _0x3da803=new _0x42e6ec(this['editor']['locale']);return _0x3da803['set']({'withText':_0x4ee49f,'isToggleable':!0x1}),_0x3da803['bind']('isEnabled')['to'](_0x50b362,'isEnabled'),this['listenTo'](_0x3da803,'execute',()=>_0x50b362['execute']()),_0x3da803;}['_registerKeybindings'](){const _0x3225c2=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3225c2,'Source\x20Editing\x20Enhanced')});const _0x2c9ebd=_0x2c44b6['isMac']||_0x2c44b6['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3225c2,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3225c2,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3225c2,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3225c2,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3225c2,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3225c2,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3225c2,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2c9ebd?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3225c2,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3225c2,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3225c2,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3225c2,'Select\x20line'),'keystroke':_0x2c9ebd?'Ctrl!+L':'Alt+L'},{'label':q(_0x3225c2,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2c9ebd?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3225c2,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3225c2,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3225c2,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3225c2,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3225c2,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2c9ebd?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x302856{constructor(_0x4a28b5){super(_0x4a28b5),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x22d9e2,_0x2b0e0a){const _0x4d5770=this['editor'],_0x2178e2=_0x2b0e0a?.['rootName']??H(_0x4d5770);_0x4d5770['data']['set']({[_0x2178e2]:_0x22d9e2},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x1ace90{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x12d27e){super(_0x12d27e),_0x12d27e['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19955a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1183fd;for(const _0x388cae in _0x19955a){const _0x1fe81a=_0x388cae,_0x4f587f=_0x19955a[_0x1fe81a];if('sourceEditingEnhancedLicenseKeyValid'==_0x4f587f||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4f587f||'sourceEditingEnhancedLicenseKeyExpired'==_0x4f587f||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4f587f||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4f587f||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4f587f||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4f587f){delete _0x19955a[_0x1fe81a],_0x1183fd=_0x4f587f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1183fd&&_0x19955a['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1183fd&&_0x19955a['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1183fd&&_0x19955a['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x49e06b=this['editor'],_0x788822=_0x49e06b['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x788822&&_0x49e06b['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x541de5('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x788822&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5901ee=>_0x49e06b['plugins']['has'](_0x5901ee))&&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.'),_0x49e06b['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{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dist/translations/*.umd.js"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
|
|
33
33
|
"@codemirror/autocomplete": "^6.7.1",
|
|
34
34
|
"@codemirror/commands": "6.8.1",
|
|
35
35
|
"@codemirror/lang-html": "^6.0.0",
|