@ckeditor/ckeditor5-source-editing-enhanced 48.1.0-alpha.3 → 48.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3a9a0e,PendingActions as _0x552e53,Plugin as _0x5d082f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fa971,formatHtml as _0x44ef9c,env as _0x1fd41f,uid as _0x2ee657}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xe93b31}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3e61bf,ButtonView as _0x4bf664,MenuBarMenuListItemButtonView as _0x289b2d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4a1776,crosshairCursor as _0x5e99fc,drawSelection as _0x506624,dropCursor as _0x452dcf,lineNumbers as _0x4c3c32,highlightActiveLine as _0xc1e156,highlightActiveLineGutter as _0x83052e,highlightSpecialChars as _0x1c6a5c,rectangularSelection as _0x3b6bcc,keymap as _0x4c8e4a}from'@codemirror/view';import{Compartment as _0x626692,Transaction as _0x25f689}from'@codemirror/state';import{bracketMatching as _0x555b9e,foldGutter as _0x2db502,indentOnInput as _0x54e6ac,syntaxHighlighting as _0x54f0f8,defaultHighlightStyle as _0x2927b5,foldKeymap as _0x33532f}from'@codemirror/language';import{toggleTabFocusMode as _0x26693e,history as _0x2e8f65,defaultKeymap as _0x11ceac,historyKeymap as _0x36decd,indentLess as _0x16fbf6,indentMore as _0x5d36c7,redo as _0x592536,undo as _0x496980}from'@codemirror/commands';import{autocompletion as _0x4fb824,closeBrackets as _0x3a9286,closeBracketsKeymap as _0x2f6bde,completionKeymap as _0x17426d}from'@codemirror/autocomplete';import{html as _0x1affd8}from'@codemirror/lang-html';import{markdown as _0x5dfd24}from'@codemirror/lang-markdown';import{oneDark as _0x2445d7}from'@codemirror/theme-one-dark';function H(_0x248552,_0x55257d){const t=_0x248552['t'];switch(_0x55257d){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 _0x55257d;}}function V(_0x6f5687){const _0x202341=_0x6f5687['editing']['view']['document']['roots'],_0x227d56=_0x202341['length'];if(0x0===_0x227d56)throw new _0x3fa971('source-editing-enhanced-editor-no-root',_0x6f5687);if(0x1===_0x227d56)return _0x202341['first']['rootName'];return Array['from'](_0x6f5687['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x26235f){return J(_0x26235f['replace'](/^[\n\s]*/g,''))?_0x26235f['replace'](/\s+/g,''):_0x26235f;}function J(_0x3febe6){return _0x3febe6['startsWith']('<');}function G(_0x477ea4){const _0xb8b2f4=[_0x4a1776['lineWrapping'],_0x4fb824(),_0x555b9e(),_0x3a9286(),_0x5e99fc(),_0x506624(),_0x452dcf(),_0x4c3c32(),_0x2db502(),_0xc1e156(),_0x83052e(),_0x1c6a5c(),_0x2e8f65(),_0x54e6ac(),_0x3b6bcc(),_0x54f0f8(_0x2927b5,{'fallback':!0x0})],_0x2e34f5=new _0x626692();_0xb8b2f4['push'](_0x2e34f5['of'](_0x4a1776['editable']['of'](!0x0))),'html'===_0x477ea4['syntaxLanguage']?_0xb8b2f4['push'](_0x1affd8()):_0xb8b2f4['push'](_0x5dfd24());const _0x220614=function(_0x23f9ce){if(_0x23f9ce&&'default'!==_0x23f9ce)return'dark'===_0x23f9ce?_0x2445d7:_0x23f9ce;return null;}(_0x477ea4['theme']);_0x220614&&_0xb8b2f4['push'](_0x220614),_0xb8b2f4['push'](_0x4c8e4a['of']([..._0x2f6bde,..._0x11ceac,..._0x36decd,..._0x33532f,..._0x17426d,{'key':'Tab','run':_0x5d36c7,'shift':_0x16fbf6,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x592536,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x592536,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x496980,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3f978f=new _0x4a1776({'extensions':_0xb8b2f4,'parent':_0x477ea4['parent']});return _0x26693e(_0x3f978f),{'focus':()=>{_0x3f978f['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3f978f['focus']();},'getData':()=>_0x3f978f['state']['doc']['toString'](),'setData':_0x3d7cb5=>{_0x3f978f['dispatch']({'changes':{'from':0x0,'to':_0x3f978f['state']['doc']['length'],'insert':_0x3d7cb5},'annotations':_0x25f689['addToHistory']['of'](!0x1)});},'setReadOnly':_0x46f06e=>{_0x3f978f['dispatch']({'effects':[_0x2e34f5['reconfigure'](_0x4a1776['editable']['of'](!_0x46f06e))]});},'destroy':()=>{_0x3f978f['destroy']();},'instance':_0x3f978f};}class Q extends _0x3e61bf{['_codeEditorApi']=null;['_options'];constructor(_0x5c89c5,_0x13b237){super(_0x5c89c5),this['_options']=_0x13b237,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',(_0x142507,_0x1e15e1,_0x238bc3)=>{this['setReadOnly'](_0x238bc3);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x27796b){this['_codeEditorApi']['setData'](_0x27796b);}['setReadOnly'](_0x1f1b6a){this['_codeEditorApi']['setReadOnly'](_0x1f1b6a);}}const W='SourceEditingEnhancedMode';class X extends _0x3a9a0e{constructor(_0x11e587){super(_0x11e587),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x552e53)['on']('change:hasAny',(_0xbc9834,_0x3f7a95,_0x3d6c5a)=>{_0x3d6c5a?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x2dbf4b=this['editor'];for(const _0x54dd6a of _0x2dbf4b['commands']['names']())['replaceSource','editSource']['includes'](_0x54dd6a)||_0x2dbf4b['commands']['get'](_0x54dd6a)['forceDisabled'](W);}['_enableCommands'](){const _0x3243ab=this['editor'];for(const _0x2b3f6e of _0x3243ab['commands']['commands']())_0x2b3f6e['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b706f=this['editor'],_0x204439=_0x2b706f['locale'],_0x311654=_0x2b706f['plugins']['get']('Dialog'),_0x1b3682=V(_0x2b706f),_0x4a0f38=_0x2b706f['data']['get']({'rootName':_0x1b3682}),_0x2f1109=J(_0x458fd8=_0x4a0f38)?_0x44ef9c(_0x458fd8):_0x458fd8;var _0x458fd8;const _0x14014a=new Q(_0x204439,{'syntaxLanguage':_0x2b706f['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2b706f['config']['get']('sourceEditingEnhanced.theme')});let _0x30311a=!0x0;const _0x2f53ff=_0x2d6731=>{if(!_0x30311a)return;return Z(_0x14014a['getData']())!==Z(_0x2f1109)?window['confirm'](H(_0x204439,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x2d6731['stop']():void 0x0;};_0x311654['show']({'id':'sourceEditingEnhanced','title':H(_0x204439,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x14014a,'actionButtons':[{'label':H(_0x204439,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x311654['hide']();}},{'label':H(_0x204439,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x396c90=Z(_0x14014a['getData']())!==Z(_0x2f1109);(_0x396c90&&_0x2b706f['execute']('replaceSource',_0x14014a['getData']()),_0x30311a=!0x1,_0x311654['hide'](),_0x396c90&&'editables'in _0x2b706f['ui']['view'])&&_0x2b706f['ui']['view']['editables'][_0x1b3682]['element']['focus']();},'onCreate':_0x208fda=>{_0x208fda['set']('isEnabled',!_0x2b706f['isReadOnly']),_0x208fda['bind']('isEnabled')['to'](_0x2b706f,'isReadOnly',this,'isEnabled',(_0x472173,_0x1856a9)=>!_0x472173&&_0x1856a9);}}],'onHide':()=>{this['_enableCommands'](),_0x311654['off']('hide',_0x2f53ff),_0x14014a['destroy']();},'onShow':()=>{_0x14014a['bind']('isReadOnly')['to'](_0x2b706f,'isReadOnly',this,'isEnabled',(_0x3ecb71,_0x128387)=>_0x3ecb71||!_0x128387),_0x14014a['setData'](_0x2f1109),_0x14014a['focus'](),_0x311654['on']('hide',_0x2f53ff,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x5d082f{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x552e53];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b81a4=this['editor'],_0x35cfca=_0x2b81a4['locale'],_0x30d183=new X(_0x2b81a4);_0x2b81a4['commands']['add']('editSource',_0x30d183),_0x2b81a4['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x475596=this['_createButton'](_0x4bf664,_0x30d183);return _0x475596['set']({'label':H(_0x35cfca,'Source'),'icon':_0xe93b31,'tooltip':H(_0x35cfca,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x475596;}),_0x2b81a4['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x998e04=this['_createButton'](_0x289b2d,_0x30d183,!0x0);return _0x998e04['set']({'label':H(_0x35cfca,'Edit\x20source\x20modal\x20label'),'icon':_0xe93b31,'role':'menuitemcheckbox'}),_0x998e04;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2f026b){const _0x28452e=_0x51a380([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]),_0x245620=0x5dba9314,_0x3a3328=0x5dbd1a84^_0x245620,_0x49e734=window[_0x51a380([0x44,0x61,0x74,0x65])][_0x51a380([0x6e,0x6f,0x77])](),_0x354171=_0x2f026b[_0x51a380([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbc8a04=new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e712a=>{_0x354171[_0x51a380([0x6f,0x6e,0x63,0x65])](_0x51a380([0x72,0x65,0x61,0x64,0x79]),_0x5e712a);}),_0x185389={[_0x51a380([0x6b,0x74,0x79])]:_0x51a380([0x45,0x43]),[_0x51a380([0x75,0x73,0x65])]:_0x51a380([0x73,0x69,0x67]),[_0x51a380([0x63,0x72,0x76])]:_0x51a380([0x50,0x2d,0x32,0x35,0x36]),[_0x51a380([0x78])]:_0x51a380([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]),[_0x51a380([0x79])]:_0x51a380([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]),[_0x51a380([0x61,0x6c,0x67])]:_0x51a380([0x45,0x53,0x32,0x35,0x36])},_0x24a254=_0x354171[_0x51a380([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51a380([0x67,0x65,0x74])](_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x217e56(){let _0xdde920,_0x3a10ea=null,_0x25114a=null;try{if(_0x24a254==_0x51a380([0x47,0x50,0x4c]))return _0x51a380([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdde920=_0x163d19(),!_0xdde920)return _0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdde920[_0x51a380([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25114a=_0x27b573(_0xdde920[_0x51a380([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdde920[_0x51a380([0x6a,0x74,0x69])])),await _0xebfe08()?_0x5df672()?_0x3a8613()?_0x51a380([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18457e()?(_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51a380([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a10ea=_0x44511c(_0x51a380([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c1c32()):_0x51a380([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51a380([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a8613(){const _0x2561ae=[_0x51a380([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51a380([0x74,0x72,0x69,0x61,0x6c])][_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49e734/0x3e8:0xe10*_0x3a3328;return _0xdde920[_0x51a380([0x65,0x78,0x70])]<_0x2561ae;}function _0x5df672(){const _0x1fcb78=_0xdde920[_0x51a380([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1fcb78&&(!!_0x1fcb78[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x2a]))||!!_0x1fcb78[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x53,0x45,0x45])));}function _0x18457e(){const _0x4da66c=_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4da66c||0x0==_0x4da66c[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ea920}=new URL(window[_0x51a380([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4da66c[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea920))return!0x0;const _0x40268f=_0x3ea920[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e]));return _0x4da66c[_0x51a380([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aa21e=>_0x1aa21e[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x2a])))[_0x51a380([0x6d,0x61,0x70])](_0x82bb2b=>_0x82bb2b[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e])))[_0x51a380([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bf96c=>_0x1bf96c[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40268f[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51a380([0x6d,0x61,0x70])](_0x35a4fc=>Array(_0x40268f[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35a4fc[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51a380([0x66,0x69,0x6c,0x6c])](_0x35a4fc[0x0]===_0x51a380([0x2a])?_0x51a380([0x2a]):'')[_0x51a380([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35a4fc))[_0x51a380([0x73,0x6f,0x6d,0x65])](_0x2fd276=>_0x40268f[_0x51a380([0x65,0x76,0x65,0x72,0x79])]((_0x422b37,_0x424b54)=>_0x2fd276[_0x424b54]===_0x422b37||_0x2fd276[_0x424b54]===_0x51a380([0x2a])));}function _0x3c1c32(){return _0x3a10ea&&_0x25114a?new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563d2f,_0x53dd79)=>{_0x3a10ea[_0x51a380([0x74,0x68,0x65,0x6e])](_0x563d2f,_0x53dd79),_0x25114a[_0x51a380([0x74,0x68,0x65,0x6e])](_0x25cf8c=>{_0x25cf8c!=_0x51a380([0x56,0x61,0x6c,0x69,0x64])&&_0x563d2f(_0x25cf8c);},_0x53dd79);}):_0x3a10ea||_0x25114a||_0x51a380([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27b573(_0x1141cf,_0x1e3a4f){return new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39d1fb=>{if(_0x4b5f70())return _0x39d1fb(_0x51a380([0x56,0x61,0x6c,0x69,0x64]));_0x16572a(),_0x354171[_0x51a380([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x580657=!0x1;const _0x25cf46=_0x2ee657();function _0x1005c0(_0x5265a8){return!!_0x5265a8&&(typeof _0x5265a8===_0x51a380([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5265a8===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5265a8[_0x51a380([0x74,0x68,0x65,0x6e])]===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5265a8[_0x51a380([0x63,0x61,0x74,0x63,0x68])]===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bb5fe(_0x3214d8){_0x24cab0(_0x3214d8)[_0x51a380([0x74,0x68,0x65,0x6e])](_0x381ee5=>{if(!_0x381ee5||_0x381ee5[_0x51a380([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51a380([0x6f,0x6b]))return _0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x308530(_0x1321f7(_0x25cf46+_0x1e3a4f))!=_0x381ee5[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51a380([0x56,0x61,0x6c,0x69,0x64]);})[_0x51a380([0x74,0x68,0x65,0x6e])](_0x707226=>(_0xef460a(),_0x707226),()=>{const _0x5efb99=_0x432ebe();return null==_0x5efb99?(_0xef460a(),_0x51a380([0x56,0x61,0x6c,0x69,0x64])):_0x51a380(_0x49e734-_0x5efb99>(0x79b61714^_0x245620)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51a380([0x74,0x68,0x65,0x6e])](_0x39d1fb)[_0x51a380([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f3f57=0x5d8c7d94^_0x245620;function _0xef460a(){const _0x3cf8a3=_0x51a380([0x6c,0x6c,0x63,0x74,0x2d])+_0x308530(_0x1321f7(_0x1141cf)),_0x3e32b6=_0x4d70bc(_0x308530(window[_0x51a380([0x4d,0x61,0x74,0x68])][_0x51a380([0x63,0x65,0x69,0x6c])](_0x49e734/_0x4f3f57)));window[_0x51a380([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51a380([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cf8a3,_0x3e32b6);}function _0x432ebe(){const _0x2f5bc1=_0x51a380([0x6c,0x6c,0x63,0x74,0x2d])+_0x308530(_0x1321f7(_0x1141cf)),_0x1f05ab=window[_0x51a380([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51a380([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f5bc1);return _0x1f05ab?window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d70bc(_0x1f05ab),0x10)*_0x4f3f57:null;}function _0x24cab0(_0xd4f082){return new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3763db,_0x5e283f)=>{_0xd4f082[_0x51a380([0x74,0x68,0x65,0x6e])](_0x3763db,_0x5e283f),window[_0x51a380([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e283f,0x5dbb47d4^_0x245620);});}}_0x354171[_0x51a380([0x6f,0x6e])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26e7dc,_0x47e2f7)=>{if(_0x47e2f7[0x0]!=_0x1141cf)return _0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47e2f7[0x1]={..._0x47e2f7[0x1],[_0x51a380([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25cf46};},{[_0x51a380([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51a380([0x68,0x69,0x67,0x68])}),_0x354171[_0x51a380([0x6f,0x6e])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x423000=>{_0x1005c0(_0x423000[_0x51a380([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x580657=!0x0,_0x2bb5fe(_0x423000[_0x51a380([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51a380([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51a380([0x6c,0x6f,0x77])}),_0xbc8a04[_0x51a380([0x74,0x68,0x65,0x6e])](()=>{_0x580657||_0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b5f70(){return _0x354171[_0x51a380([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51a380([0x76,0x69,0x65,0x77])][_0x51a380([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51a380([0x61,0x75,0x74,0x6f]);}function _0x16572a(){_0x354171[_0x51a380([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51a380([0x76,0x69,0x65,0x77])][_0x51a380([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51a380([0x61,0x75,0x74,0x6f]);}}function _0x44511c(_0x12cd94){const _0x3a9696=[new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f098=>setTimeout(_0x24f098,0x5db3add8^_0x245620)),_0xbc8a04[_0x51a380([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2372a2=>{let _0x938cfa=0x0;_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x6f,0x6e])](_0x51a380([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15fc55,_0x4a445a)=>{_0x4a445a[0x0][_0x51a380([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x938cfa++,_0x938cfa==(0x5dba96fc^_0x245620)&&(_0x2372a2(),_0x15fc55[_0x51a380([0x6f,0x66,0x66])]());});}))];return window[_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51a380([0x72,0x61,0x63,0x65])](_0x3a9696)[_0x51a380([0x74,0x68,0x65,0x6e])](()=>_0x12cd94);}async function _0x1dc863(){await _0xbc8a04,_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53d9c9,_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53d9c9,_0x354171[_0x51a380([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51a380([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x186576(_0x4fd090){const _0x3ea01d=_0x1e6974();_0x354171[_0x3ea01d]=_0x51a380([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])+_0x4fd090,_0x4fd090!=_0x51a380([0x56,0x61,0x6c,0x69,0x64])&&_0x1dc863();}function _0x1e6974(){const _0x4d9bb1=window[_0x51a380([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51a380([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51a380([0x6e,0x6f,0x77])]())[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51a380([0x2e]),'');let _0x3a4496=_0x51a380([0x4e]);for(let _0x2da6c8=0x0;_0x2da6c8<_0x4d9bb1[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da6c8+=0x2){let _0x504f30=window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d9bb1[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da6c8,_0x2da6c8+0x2));_0x504f30>=_0x28452e[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x504f30-=_0x28452e[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4496+=_0x28452e[_0x504f30];}return _0x3a4496;}function _0x163d19(){const _0x2586dd=_0x24a254[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e]));if(0x3!=_0x2586dd[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9cfa8e(_0x2586dd[0x1]);function _0x9cfa8e(_0x47e09f){const _0x154746=_0x4dec91(_0x47e09f);return _0x154746&&_0x17e496()?_0x154746:null;function _0x17e496(){const _0x29a16a=_0x154746[_0x51a380([0x6a,0x74,0x69])],_0x7998cb=window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a16a[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29a16a[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37ddd1={..._0x154746,[_0x51a380([0x6a,0x74,0x69])]:_0x29a16a[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29a16a[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37ddd1[_0x51a380([0x76,0x63])],_0x1321f7(_0x37ddd1)==_0x7998cb;}}}async function _0xebfe08(){let _0x13a6f1=!0x0;try{const _0x3f61b6=_0x24a254[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e])),[_0x32368e,_0x5d57a7,_0x106f36]=_0x3f61b6;return _0x41256d(_0x32368e),await _0x4772af(_0x32368e,_0x5d57a7,_0x106f36),_0x13a6f1;}catch{return!0x1;}function _0x41256d(_0x23d57f){const _0x4c8a65=_0x4dec91(_0x23d57f);_0x4c8a65&&_0x4c8a65[_0x51a380([0x61,0x6c,0x67])]==_0x51a380([0x45,0x53,0x32,0x35,0x36])||(_0x13a6f1=!0x1);}async function _0x4772af(_0x2f6463,_0x255c4a,_0x461e4b){const _0x37f078=window[_0x51a380([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51a380([0x66,0x72,0x6f,0x6d])](_0x3dcbce(_0x461e4b),_0xffe993=>_0xffe993[_0x51a380([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x249242=new window[(_0x51a380([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51a380([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f6463+_0x51a380([0x2e])+_0x255c4a),_0x144276=window[_0x51a380([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51a380([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x144276)return;const _0x22ef7a=await _0x144276[_0x51a380([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51a380([0x6a,0x77,0x6b]),_0x185389,{[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x45,0x43,0x44,0x53,0x41]),[_0x51a380([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51a380([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x144276[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x45,0x43,0x44,0x53,0x41]),[_0x51a380([0x68,0x61,0x73,0x68])]:{[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22ef7a,_0x37f078,_0x249242)||(_0x13a6f1=!0x1);}}function _0x4dec91(_0x32f926){return _0x32f926[_0x51a380([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51a380([0x65,0x79]))?JSON[_0x51a380([0x70,0x61,0x72,0x73,0x65])](_0x3dcbce(_0x32f926)):null;}function _0x3dcbce(_0x25802d){return window[_0x51a380([0x61,0x74,0x6f,0x62])](_0x25802d[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51a380([0x2b]))[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51a380([0x2f])));}function _0x1321f7(_0x3fc369){let _0x1f7037=0x1505;function _0x384880(_0xb79dd0){for(let _0x520658=0x0;_0x520658<_0xb79dd0[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x520658++){const _0x586ca2=_0xb79dd0[_0x51a380([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x520658);_0x1f7037=(_0x1f7037<<0x5)+_0x1f7037+_0x586ca2,_0x1f7037&=_0x1f7037;}}function _0x47ae16(_0x12db67){Array[_0x51a380([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12db67)?_0x12db67[_0x51a380([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47ae16):_0x12db67&&typeof _0x12db67==_0x51a380([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51a380([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12db67)[_0x51a380([0x73,0x6f,0x72,0x74])]()[_0x51a380([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e5be7,_0x132445])=>{_0x384880(_0x5e5be7),_0x47ae16(_0x132445);}):_0x384880(window[_0x51a380([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12db67));}return _0x47ae16(_0x3fc369),_0x1f7037>>>0x0;}function _0x308530(_0x110a91){return _0x110a91[_0x51a380([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51a380([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51a380([0x30]));}function _0x4d70bc(_0x2ad6d4){return _0x2ad6d4[_0x51a380([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51a380([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51a380([0x6a,0x6f,0x69,0x6e])]('');}function _0x53d9c9(){}function _0x51a380(_0x2f5269){return _0x2f5269['map'](_0x449c05=>String['fromCharCode'](_0x449c05))['join']('');}_0x186576(await _0x217e56());}(this);}['_createButton'](_0x4c5f0a,_0x5ce8d7,_0x2616df=!0x1){const _0x40218f=new _0x4c5f0a(this['editor']['locale']);return _0x40218f['set']({'withText':_0x2616df,'isToggleable':!0x1}),_0x40218f['bind']('isEnabled')['to'](_0x5ce8d7,'isEnabled'),this['listenTo'](_0x40218f,'execute',()=>_0x5ce8d7['execute']()),_0x40218f;}['_registerKeybindings'](){const _0x22d913=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x22d913,'Source\x20Editing\x20Enhanced')});const _0x7d575d=_0x1fd41f['isMac']||_0x1fd41f['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x22d913,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x22d913,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x22d913,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x22d913,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x22d913,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x22d913,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x22d913,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x7d575d?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x22d913,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x22d913,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x22d913,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x22d913,'Select\x20line'),'keystroke':_0x7d575d?'Ctrl!+L':'Alt+L'},{'label':H(_0x22d913,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x7d575d?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x22d913,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x22d913,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x22d913,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x22d913,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x22d913,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x7d575d?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x3a9a0e{constructor(_0x45220f){super(_0x45220f),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x4125ca,_0x2b82ae){const _0x698eeb=this['editor'],_0x554335=_0x2b82ae?.['rootName']??V(_0x698eeb);_0x698eeb['data']['set']({[_0x554335]:_0x4125ca},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x5d082f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x2cbb46){super(_0x2cbb46),_0x2cbb46['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x303802=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa36570;for(const _0x128838 in _0x303802){const _0x4007d9=_0x128838,_0x9d6917=_0x303802[_0x4007d9];if('sourceEditingEnhancedLicenseKeyValid'==_0x9d6917||'sourceEditingEnhancedLicenseKeyInvalid'==_0x9d6917||'sourceEditingEnhancedLicenseKeyExpired'==_0x9d6917||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x9d6917||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x9d6917||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x9d6917||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x9d6917){delete _0x303802[_0x4007d9],_0xa36570=_0x9d6917,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0xa36570&&_0x303802['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0xa36570&&_0x303802['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0xa36570&&_0x303802['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0xa36570&&_0x303802['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0xa36570&&_0x303802['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0xa36570&&_0x303802['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5daf51=this['editor'],_0x5bd1d4=_0x5daf51['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x5bd1d4&&_0x5daf51['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x3fa971('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x5bd1d4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3feb57=>_0x5daf51['plugins']['has'](_0x3feb57))&&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.'),_0x5daf51['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
23
+ import{Command as _0x9d1ce8,PendingActions as _0x246140,Plugin as _0x38621c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x17a76c,formatHtml as _0xde0a48,env as _0x297549,uid as _0x243abc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xa33907}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x44937d,ButtonView as _0x5313b0,MenuBarMenuListItemButtonView as _0x22162b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x174743,crosshairCursor as _0x497196,drawSelection as _0x14ad0a,dropCursor as _0xdff6ab,lineNumbers as _0x58c944,highlightActiveLine as _0x222a38,highlightActiveLineGutter as _0x54a6e0,highlightSpecialChars as _0x4519cb,rectangularSelection as _0x190d87,keymap as _0x4a1c16}from'@codemirror/view';import{Compartment as _0x48b29b,Transaction as _0x4e6bcd}from'@codemirror/state';import{bracketMatching as _0x497a0b,foldGutter as _0x5e90e8,indentOnInput as _0x5265d8,syntaxHighlighting as _0x46a8fa,defaultHighlightStyle as _0x2b80f7,foldKeymap as _0x270c78}from'@codemirror/language';import{toggleTabFocusMode as _0x1bb3c8,history as _0x598212,defaultKeymap as _0x481771,historyKeymap as _0x470c37,indentLess as _0x2d721a,indentMore as _0x1230bd,redo as _0xd7d84,undo as _0x51b40d}from'@codemirror/commands';import{autocompletion as _0x11d488,closeBrackets as _0x37c87d,closeBracketsKeymap as _0x221ac0,completionKeymap as _0xac54fb}from'@codemirror/autocomplete';import{html as _0x5613b1}from'@codemirror/lang-html';import{markdown as _0x2def80}from'@codemirror/lang-markdown';import{oneDark as _0x5bbc73}from'@codemirror/theme-one-dark';function H(_0x1abf66,_0x5f0e5a){const t=_0x1abf66['t'];switch(_0x5f0e5a){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 _0x5f0e5a;}}function V(_0x5488a4){const _0x13ce20=_0x5488a4['editing']['view']['document']['roots'],_0xc17fed=_0x13ce20['length'];if(0x0===_0xc17fed)throw new _0x17a76c('source-editing-enhanced-editor-no-root',_0x5488a4);if(0x1===_0xc17fed)return _0x13ce20['first']['rootName'];return Array['from'](_0x5488a4['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x364afc){return J(_0x364afc['replace'](/^[\n\s]*/g,''))?_0x364afc['replace'](/\s+/g,''):_0x364afc;}function J(_0x2517e7){return _0x2517e7['startsWith']('<');}function G(_0x5e4ea6){const _0x358cd2=[_0x174743['lineWrapping'],_0x11d488(),_0x497a0b(),_0x37c87d(),_0x497196(),_0x14ad0a(),_0xdff6ab(),_0x58c944(),_0x5e90e8(),_0x222a38(),_0x54a6e0(),_0x4519cb(),_0x598212(),_0x5265d8(),_0x190d87(),_0x46a8fa(_0x2b80f7,{'fallback':!0x0})],_0x1d01b3=new _0x48b29b();_0x358cd2['push'](_0x1d01b3['of'](_0x174743['editable']['of'](!0x0))),'html'===_0x5e4ea6['syntaxLanguage']?_0x358cd2['push'](_0x5613b1()):_0x358cd2['push'](_0x2def80());const _0x2a453b=function(_0x124f15){if(_0x124f15&&'default'!==_0x124f15)return'dark'===_0x124f15?_0x5bbc73:_0x124f15;return null;}(_0x5e4ea6['theme']);_0x2a453b&&_0x358cd2['push'](_0x2a453b),_0x358cd2['push'](_0x4a1c16['of']([..._0x221ac0,..._0x481771,..._0x470c37,..._0x270c78,..._0xac54fb,{'key':'Tab','run':_0x1230bd,'shift':_0x2d721a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xd7d84,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xd7d84,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x51b40d,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x35d56f=new _0x174743({'extensions':_0x358cd2,'parent':_0x5e4ea6['parent']});return _0x1bb3c8(_0x35d56f),{'focus':()=>{_0x35d56f['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x35d56f['focus']();},'getData':()=>_0x35d56f['state']['doc']['toString'](),'setData':_0x39c02f=>{_0x35d56f['dispatch']({'changes':{'from':0x0,'to':_0x35d56f['state']['doc']['length'],'insert':_0x39c02f},'annotations':_0x4e6bcd['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4e8fed=>{_0x35d56f['dispatch']({'effects':[_0x1d01b3['reconfigure'](_0x174743['editable']['of'](!_0x4e8fed))]});},'destroy':()=>{_0x35d56f['destroy']();},'instance':_0x35d56f};}class Q extends _0x44937d{['_codeEditorApi']=null;['_options'];constructor(_0x4a3391,_0x414375){super(_0x4a3391),this['_options']=_0x414375,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',(_0x4ec24c,_0x2ba33e,_0x2f6fdb)=>{this['setReadOnly'](_0x2f6fdb);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x2d3cd8){this['_codeEditorApi']['setData'](_0x2d3cd8);}['setReadOnly'](_0x3cdc4c){this['_codeEditorApi']['setReadOnly'](_0x3cdc4c);}}const W='SourceEditingEnhancedMode';class X extends _0x9d1ce8{constructor(_0xc859b1){super(_0xc859b1),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x246140)['on']('change:hasAny',(_0x3f7685,_0x2da425,_0x1e5957)=>{_0x1e5957?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x590aea=this['editor'];for(const _0x9ee7fc of _0x590aea['commands']['names']())['replaceSource','editSource']['includes'](_0x9ee7fc)||_0x590aea['commands']['get'](_0x9ee7fc)['forceDisabled'](W);}['_enableCommands'](){const _0xcf19e4=this['editor'];for(const _0x4e9557 of _0xcf19e4['commands']['commands']())_0x4e9557['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e559e=this['editor'],_0x3934a5=_0x1e559e['locale'],_0x432c07=_0x1e559e['plugins']['get']('Dialog'),_0x3467e3=V(_0x1e559e),_0x570164=_0x1e559e['data']['get']({'rootName':_0x3467e3}),_0x3e3891=J(_0x12836a=_0x570164)?_0xde0a48(_0x12836a):_0x12836a;var _0x12836a;const _0x1adceb=new Q(_0x3934a5,{'syntaxLanguage':_0x1e559e['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1e559e['config']['get']('sourceEditingEnhanced.theme')});let _0x2ff5d8=!0x0;const _0x4d34c2=_0x5e9409=>{if(!_0x2ff5d8)return;return Z(_0x1adceb['getData']())!==Z(_0x3e3891)?window['confirm'](H(_0x3934a5,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5e9409['stop']():void 0x0;};_0x432c07['show']({'id':'sourceEditingEnhanced','title':H(_0x3934a5,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1adceb,'actionButtons':[{'label':H(_0x3934a5,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x432c07['hide']();}},{'label':H(_0x3934a5,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2bc3ac=Z(_0x1adceb['getData']())!==Z(_0x3e3891);(_0x2bc3ac&&_0x1e559e['execute']('replaceSource',_0x1adceb['getData']()),_0x2ff5d8=!0x1,_0x432c07['hide'](),_0x2bc3ac&&'editables'in _0x1e559e['ui']['view'])&&_0x1e559e['ui']['view']['editables'][_0x3467e3]['element']['focus']();},'onCreate':_0x24e79f=>{_0x24e79f['set']('isEnabled',!_0x1e559e['isReadOnly']),_0x24e79f['bind']('isEnabled')['to'](_0x1e559e,'isReadOnly',this,'isEnabled',(_0x5843df,_0x5cd1e0)=>!_0x5843df&&_0x5cd1e0);}}],'onHide':()=>{this['_enableCommands'](),_0x432c07['off']('hide',_0x4d34c2),_0x1adceb['destroy']();},'onShow':()=>{_0x1adceb['bind']('isReadOnly')['to'](_0x1e559e,'isReadOnly',this,'isEnabled',(_0x1e3e68,_0x1d65a6)=>_0x1e3e68||!_0x1d65a6),_0x1adceb['setData'](_0x3e3891),_0x1adceb['focus'](),_0x432c07['on']('hide',_0x4d34c2,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x38621c{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x246140];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x365dce=this['editor'],_0x19420d=_0x365dce['locale'],_0x55f700=new X(_0x365dce);_0x365dce['commands']['add']('editSource',_0x55f700),_0x365dce['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x349cfb=this['_createButton'](_0x5313b0,_0x55f700);return _0x349cfb['set']({'label':H(_0x19420d,'Source'),'icon':_0xa33907,'tooltip':H(_0x19420d,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x349cfb;}),_0x365dce['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x5d4192=this['_createButton'](_0x22162b,_0x55f700,!0x0);return _0x5d4192['set']({'label':H(_0x19420d,'Edit\x20source\x20modal\x20label'),'icon':_0xa33907,'role':'menuitemcheckbox'}),_0x5d4192;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x3e0e99){const _0x2aa12e=_0x219440([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]),_0xf727f3=0x5dba9314,_0x46d2d7=0x5dbd1abc^_0xf727f3,_0x51adfe=window[_0x219440([0x44,0x61,0x74,0x65])][_0x219440([0x6e,0x6f,0x77])](),_0xd6df78=_0x3e0e99[_0x219440([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cdcc9=new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4164af=>{_0xd6df78[_0x219440([0x6f,0x6e,0x63,0x65])](_0x219440([0x72,0x65,0x61,0x64,0x79]),_0x4164af);}),_0x4c81ed={[_0x219440([0x6b,0x74,0x79])]:_0x219440([0x45,0x43]),[_0x219440([0x75,0x73,0x65])]:_0x219440([0x73,0x69,0x67]),[_0x219440([0x63,0x72,0x76])]:_0x219440([0x50,0x2d,0x32,0x35,0x36]),[_0x219440([0x78])]:_0x219440([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]),[_0x219440([0x79])]:_0x219440([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]),[_0x219440([0x61,0x6c,0x67])]:_0x219440([0x45,0x53,0x32,0x35,0x36])},_0x2b23bd=_0xd6df78[_0x219440([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x219440([0x67,0x65,0x74])](_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcbb291(){let _0x9704bc,_0x542bc4=null,_0x2c10d0=null;try{if(_0x2b23bd==_0x219440([0x47,0x50,0x4c]))return _0x219440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9704bc=_0x563f97(),!_0x9704bc)return _0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9704bc[_0x219440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c10d0=_0x2e8bf1(_0x9704bc[_0x219440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9704bc[_0x219440([0x6a,0x74,0x69])])),await _0x2e747f()?_0x11e7e3()?_0x2352f4()?_0x219440([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57a52b()?(_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x219440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x542bc4=_0x388631(_0x219440([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf939e7()):_0x219440([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x219440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2352f4(){const _0x30c45e=[_0x219440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x219440([0x74,0x72,0x69,0x61,0x6c])][_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51adfe/0x3e8:0xe10*_0x46d2d7;return _0x9704bc[_0x219440([0x65,0x78,0x70])]<_0x30c45e;}function _0x11e7e3(){const _0x3f5d71=_0x9704bc[_0x219440([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f5d71&&(!!_0x3f5d71[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x2a]))||!!_0x3f5d71[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x53,0x45,0x45])));}function _0x57a52b(){const _0x151c15=_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x151c15||0x0==_0x151c15[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10b01c}=new URL(window[_0x219440([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x151c15[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b01c))return!0x0;const _0x2f153b=_0x10b01c[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e]));return _0x151c15[_0x219440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547233=>_0x547233[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x2a])))[_0x219440([0x6d,0x61,0x70])](_0x1fbb2f=>_0x1fbb2f[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e])))[_0x219440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x528731=>_0x528731[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f153b[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x219440([0x6d,0x61,0x70])](_0x1cfcc2=>Array(_0x2f153b[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cfcc2[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x219440([0x66,0x69,0x6c,0x6c])](_0x1cfcc2[0x0]===_0x219440([0x2a])?_0x219440([0x2a]):'')[_0x219440([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cfcc2))[_0x219440([0x73,0x6f,0x6d,0x65])](_0x36525c=>_0x2f153b[_0x219440([0x65,0x76,0x65,0x72,0x79])]((_0x5d5311,_0x2073bf)=>_0x36525c[_0x2073bf]===_0x5d5311||_0x36525c[_0x2073bf]===_0x219440([0x2a])));}function _0xf939e7(){return _0x542bc4&&_0x2c10d0?new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ad0b3,_0x43ac14)=>{_0x542bc4[_0x219440([0x74,0x68,0x65,0x6e])](_0x5ad0b3,_0x43ac14),_0x2c10d0[_0x219440([0x74,0x68,0x65,0x6e])](_0x1b1195=>{_0x1b1195!=_0x219440([0x56,0x61,0x6c,0x69,0x64])&&_0x5ad0b3(_0x1b1195);},_0x43ac14);}):_0x542bc4||_0x2c10d0||_0x219440([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e8bf1(_0x26a2e2,_0x3f62e6){return new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb9e1=>{if(_0x1545b9())return _0x3eb9e1(_0x219440([0x56,0x61,0x6c,0x69,0x64]));_0x5442e6(),_0xd6df78[_0x219440([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2a8d=!0x1;const _0x3536ab=_0x243abc();function _0x295d8a(_0x1b7eb9){return!!_0x1b7eb9&&(typeof _0x1b7eb9===_0x219440([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b7eb9===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b7eb9[_0x219440([0x74,0x68,0x65,0x6e])]===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b7eb9[_0x219440([0x63,0x61,0x74,0x63,0x68])]===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11a337(_0x49ebc0){_0x29bf6f(_0x49ebc0)[_0x219440([0x74,0x68,0x65,0x6e])](_0x1ca954=>{if(!_0x1ca954||_0x1ca954[_0x219440([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x219440([0x6f,0x6b]))return _0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43091d(_0x25c9c3(_0x3536ab+_0x3f62e6))!=_0x1ca954[_0x219440([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x219440([0x56,0x61,0x6c,0x69,0x64]);})[_0x219440([0x74,0x68,0x65,0x6e])](_0x313146=>(_0x47c04d(),_0x313146),()=>{const _0x321d77=_0x250d2();return null==_0x321d77?(_0x47c04d(),_0x219440([0x56,0x61,0x6c,0x69,0x64])):_0x219440(_0x51adfe-_0x321d77>(0x79b61714^_0xf727f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x219440([0x74,0x68,0x65,0x6e])](_0x3eb9e1)[_0x219440([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e13ff=0x5d8c7d94^_0xf727f3;function _0x47c04d(){const _0x362fc8=_0x219440([0x6c,0x6c,0x63,0x74,0x2d])+_0x43091d(_0x25c9c3(_0x26a2e2)),_0x1dd33c=_0x4a7e99(_0x43091d(window[_0x219440([0x4d,0x61,0x74,0x68])][_0x219440([0x63,0x65,0x69,0x6c])](_0x51adfe/_0x1e13ff)));window[_0x219440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x219440([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x362fc8,_0x1dd33c);}function _0x250d2(){const _0x45edee=_0x219440([0x6c,0x6c,0x63,0x74,0x2d])+_0x43091d(_0x25c9c3(_0x26a2e2)),_0x9f4c65=window[_0x219440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x219440([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45edee);return _0x9f4c65?window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7e99(_0x9f4c65),0x10)*_0x1e13ff:null;}function _0x29bf6f(_0x4b9d0f){return new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59c5e5,_0x5c915c)=>{_0x4b9d0f[_0x219440([0x74,0x68,0x65,0x6e])](_0x59c5e5,_0x5c915c),window[_0x219440([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c915c,0x5dbb47d4^_0xf727f3);});}}_0xd6df78[_0x219440([0x6f,0x6e])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x702d9f,_0x2c9844)=>{if(_0x2c9844[0x0]!=_0x26a2e2)return _0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c9844[0x1]={..._0x2c9844[0x1],[_0x219440([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3536ab};},{[_0x219440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x219440([0x68,0x69,0x67,0x68])}),_0xd6df78[_0x219440([0x6f,0x6e])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfe78b0=>{_0x295d8a(_0xfe78b0[_0x219440([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2a8d=!0x0,_0x11a337(_0xfe78b0[_0x219440([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x219440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x219440([0x6c,0x6f,0x77])}),_0x5cdcc9[_0x219440([0x74,0x68,0x65,0x6e])](()=>{_0x2c2a8d||_0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1545b9(){return _0xd6df78[_0x219440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219440([0x76,0x69,0x65,0x77])][_0x219440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x219440([0x61,0x75,0x74,0x6f]);}function _0x5442e6(){_0xd6df78[_0x219440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219440([0x76,0x69,0x65,0x77])][_0x219440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x219440([0x61,0x75,0x74,0x6f]);}}function _0x388631(_0x1d8936){const _0x1bcd27=[new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf0ac=>setTimeout(_0x4cf0ac,0x5db3add8^_0xf727f3)),_0x5cdcc9[_0x219440([0x74,0x68,0x65,0x6e])](()=>new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79b5cc=>{let _0x1ef8ff=0x0;_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x6f,0x6e])](_0x219440([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x279636,_0x3b5288)=>{_0x3b5288[0x0][_0x219440([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ef8ff++,_0x1ef8ff==(0x5dba96fc^_0xf727f3)&&(_0x79b5cc(),_0x279636[_0x219440([0x6f,0x66,0x66])]());});}))];return window[_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x219440([0x72,0x61,0x63,0x65])](_0x1bcd27)[_0x219440([0x74,0x68,0x65,0x6e])](()=>_0x1d8936);}async function _0x179b28(){await _0x5cdcc9,_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e13e8,_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e13e8,_0xd6df78[_0x219440([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x219440([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515715(_0x591e41){const _0x2ad4e6=_0x3dc808();_0xd6df78[_0x2ad4e6]=_0x219440([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])+_0x591e41,_0x591e41!=_0x219440([0x56,0x61,0x6c,0x69,0x64])&&_0x179b28();}function _0x3dc808(){const _0x56a7e5=window[_0x219440([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x219440([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x219440([0x6e,0x6f,0x77])]())[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x219440([0x2e]),'');let _0x55993b=_0x219440([0x4e]);for(let _0x35af54=0x0;_0x35af54<_0x56a7e5[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35af54+=0x2){let _0x19106a=window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56a7e5[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35af54,_0x35af54+0x2));_0x19106a>=_0x2aa12e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19106a-=_0x2aa12e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55993b+=_0x2aa12e[_0x19106a];}return _0x55993b;}function _0x563f97(){const _0x55c28e=_0x2b23bd[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e]));if(0x3!=_0x55c28e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33205d(_0x55c28e[0x1]);function _0x33205d(_0x4c5b20){const _0x528a75=_0x246137(_0x4c5b20);return _0x528a75&&_0x2588ff()?_0x528a75:null;function _0x2588ff(){const _0x4d179d=_0x528a75[_0x219440([0x6a,0x74,0x69])],_0x10b93c=window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d179d[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d179d[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bfdff={..._0x528a75,[_0x219440([0x6a,0x74,0x69])]:_0x4d179d[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d179d[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bfdff[_0x219440([0x76,0x63])],_0x25c9c3(_0x5bfdff)==_0x10b93c;}}}async function _0x2e747f(){let _0x57954e=!0x0;try{const _0x504f9d=_0x2b23bd[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e])),[_0x2cc2fd,_0x4eab08,_0x3abf76]=_0x504f9d;return _0x2c0665(_0x2cc2fd),await _0x4c8aa1(_0x2cc2fd,_0x4eab08,_0x3abf76),_0x57954e;}catch{return!0x1;}function _0x2c0665(_0x1d0738){const _0x5c1e73=_0x246137(_0x1d0738);_0x5c1e73&&_0x5c1e73[_0x219440([0x61,0x6c,0x67])]==_0x219440([0x45,0x53,0x32,0x35,0x36])||(_0x57954e=!0x1);}async function _0x4c8aa1(_0x310b53,_0x26d67f,_0x2cf849){const _0x14f055=window[_0x219440([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x219440([0x66,0x72,0x6f,0x6d])](_0x20d193(_0x2cf849),_0x3ba7b8=>_0x3ba7b8[_0x219440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1e89=new window[(_0x219440([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x219440([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x310b53+_0x219440([0x2e])+_0x26d67f),_0x286e93=window[_0x219440([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x219440([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x286e93)return;const _0x2db2f5=await _0x286e93[_0x219440([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x219440([0x6a,0x77,0x6b]),_0x4c81ed,{[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x45,0x43,0x44,0x53,0x41]),[_0x219440([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x219440([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x219440([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x286e93[_0x219440([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x45,0x43,0x44,0x53,0x41]),[_0x219440([0x68,0x61,0x73,0x68])]:{[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db2f5,_0x14f055,_0x4c1e89)||(_0x57954e=!0x1);}}function _0x246137(_0x32cf40){return _0x32cf40[_0x219440([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x219440([0x65,0x79]))?JSON[_0x219440([0x70,0x61,0x72,0x73,0x65])](_0x20d193(_0x32cf40)):null;}function _0x20d193(_0x3e0e5b){return window[_0x219440([0x61,0x74,0x6f,0x62])](_0x3e0e5b[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x219440([0x2b]))[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x219440([0x2f])));}function _0x25c9c3(_0x39ad78){let _0x75ecb2=0x1505;function _0x127aa6(_0x149584){for(let _0x3519a2=0x0;_0x3519a2<_0x149584[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3519a2++){const _0x5917da=_0x149584[_0x219440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3519a2);_0x75ecb2=(_0x75ecb2<<0x5)+_0x75ecb2+_0x5917da,_0x75ecb2&=_0x75ecb2;}}function _0x31319b(_0x3e8f48){Array[_0x219440([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e8f48)?_0x3e8f48[_0x219440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31319b):_0x3e8f48&&typeof _0x3e8f48==_0x219440([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x219440([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e8f48)[_0x219440([0x73,0x6f,0x72,0x74])]()[_0x219440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x633643,_0x19537e])=>{_0x127aa6(_0x633643),_0x31319b(_0x19537e);}):_0x127aa6(window[_0x219440([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e8f48));}return _0x31319b(_0x39ad78),_0x75ecb2>>>0x0;}function _0x43091d(_0x5ea1be){return _0x5ea1be[_0x219440([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x219440([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x219440([0x30]));}function _0x4a7e99(_0x5157b0){return _0x5157b0[_0x219440([0x73,0x70,0x6c,0x69,0x74])]('')[_0x219440([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x219440([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e13e8(){}function _0x219440(_0x3ccecc){return _0x3ccecc['map'](_0x1b1b47=>String['fromCharCode'](_0x1b1b47))['join']('');}_0x515715(await _0xcbb291());}(this);}['_createButton'](_0x36e1cf,_0x2e4201,_0x5f4c75=!0x1){const _0x77aa5d=new _0x36e1cf(this['editor']['locale']);return _0x77aa5d['set']({'withText':_0x5f4c75,'isToggleable':!0x1}),_0x77aa5d['bind']('isEnabled')['to'](_0x2e4201,'isEnabled'),this['listenTo'](_0x77aa5d,'execute',()=>_0x2e4201['execute']()),_0x77aa5d;}['_registerKeybindings'](){const _0x421dc6=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x421dc6,'Source\x20Editing\x20Enhanced')});const _0x6fae86=_0x297549['isMac']||_0x297549['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x421dc6,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x421dc6,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x421dc6,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x421dc6,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x421dc6,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x421dc6,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x421dc6,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x6fae86?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x421dc6,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x421dc6,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x421dc6,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x421dc6,'Select\x20line'),'keystroke':_0x6fae86?'Ctrl!+L':'Alt+L'},{'label':H(_0x421dc6,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x6fae86?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x421dc6,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x421dc6,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x421dc6,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x421dc6,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x421dc6,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x6fae86?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x9d1ce8{constructor(_0x1e28ed){super(_0x1e28ed),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x470eea,_0x3f1fbe){const _0x190da7=this['editor'],_0x4b9bcd=_0x3f1fbe?.['rootName']??V(_0x190da7);_0x190da7['data']['set']({[_0x4b9bcd]:_0x470eea},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x38621c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x31677c){super(_0x31677c),_0x31677c['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xce5fca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x147de2;for(const _0x138e5c in _0xce5fca){const _0x4ccd2f=_0x138e5c,_0x4c4c53=_0xce5fca[_0x4ccd2f];if('sourceEditingEnhancedLicenseKeyValid'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyExpired'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4c4c53){delete _0xce5fca[_0x4ccd2f],_0x147de2=_0x4c4c53,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x147de2&&_0xce5fca['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x147de2&&_0xce5fca['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x147de2&&_0xce5fca['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x1ff38e=this['editor'],_0x49c3b4=_0x1ff38e['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x49c3b4&&_0x1ff38e['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x17a76c('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x49c3b4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3ea1af=>_0x1ff38e['plugins']['has'](_0x3ea1af))&&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.'),_0x1ff38e['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.4",
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.1.0-alpha.3",
29
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
30
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
31
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3",
28
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
29
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
30
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
31
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",