@ckeditor/ckeditor5-source-editing-enhanced 48.0.1-alpha.0 → 48.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x4c19ab,PendingActions as _0x509863,Plugin as _0x50b84f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x680325,formatHtml as _0x5e5695,env as _0x3705ad,uid as _0x32fbab}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x35bbe3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3c0caf,ButtonView as _0x169110,MenuBarMenuListItemButtonView as _0x1b3d78}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0xf7cd09,crosshairCursor as _0x4bb6f4,drawSelection as _0x2029ac,dropCursor as _0x3589fa,lineNumbers as _0x58f8d6,highlightActiveLine as _0x4c4821,highlightActiveLineGutter as _0x11df5d,highlightSpecialChars as _0x526d24,rectangularSelection as _0x1618ab,keymap as _0x139510}from'@codemirror/view';import{Compartment as _0x3a9d07,Transaction as _0x2bea05}from'@codemirror/state';import{bracketMatching as _0x38ca93,foldGutter as _0x3d72bc,indentOnInput as _0x560437,syntaxHighlighting as _0x5337ab,defaultHighlightStyle as _0x4b457b,foldKeymap as _0x1c9deb}from'@codemirror/language';import{toggleTabFocusMode as _0x370ff6,history as _0x231a59,defaultKeymap as _0x44020b,historyKeymap as _0x228df5,indentLess as _0x410086,indentMore as _0x40cf7d,redo as _0x2efd46,undo as _0x5a604b}from'@codemirror/commands';import{autocompletion as _0x3d26ee,closeBrackets as _0x1d275c,closeBracketsKeymap as _0x12fd7d,completionKeymap as _0x514ca3}from'@codemirror/autocomplete';import{html as _0x5d3320}from'@codemirror/lang-html';import{markdown as _0x896536}from'@codemirror/lang-markdown';import{oneDark as _0x1f2865}from'@codemirror/theme-one-dark';function H(_0x42947c,_0x728eb){const t=_0x42947c['t'];switch(_0x728eb){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 _0x728eb;}}function V(_0x30ac52){const _0x2bfb10=_0x30ac52['editing']['view']['document']['roots'],_0x24c3b2=_0x2bfb10['length'];if(0x0===_0x24c3b2)throw new _0x680325('source-editing-enhanced-editor-no-root',_0x30ac52);if(0x1===_0x24c3b2)return _0x2bfb10['first']['rootName'];return Array['from'](_0x30ac52['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0xe37f28){return J(_0xe37f28['replace'](/^[\n\s]*/g,''))?_0xe37f28['replace'](/\s+/g,''):_0xe37f28;}function J(_0x28373e){return _0x28373e['startsWith']('<');}function G(_0x16a785){const _0x2e6c54=[_0xf7cd09['lineWrapping'],_0x3d26ee(),_0x38ca93(),_0x1d275c(),_0x4bb6f4(),_0x2029ac(),_0x3589fa(),_0x58f8d6(),_0x3d72bc(),_0x4c4821(),_0x11df5d(),_0x526d24(),_0x231a59(),_0x560437(),_0x1618ab(),_0x5337ab(_0x4b457b,{'fallback':!0x0})],_0x4610e2=new _0x3a9d07();_0x2e6c54['push'](_0x4610e2['of'](_0xf7cd09['editable']['of'](!0x0))),'html'===_0x16a785['syntaxLanguage']?_0x2e6c54['push'](_0x5d3320()):_0x2e6c54['push'](_0x896536());const _0x5a37a1=function(_0x2fc5c3){if(_0x2fc5c3&&'default'!==_0x2fc5c3)return'dark'===_0x2fc5c3?_0x1f2865:_0x2fc5c3;return null;}(_0x16a785['theme']);_0x5a37a1&&_0x2e6c54['push'](_0x5a37a1),_0x2e6c54['push'](_0x139510['of']([..._0x12fd7d,..._0x44020b,..._0x228df5,..._0x1c9deb,..._0x514ca3,{'key':'Tab','run':_0x40cf7d,'shift':_0x410086,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x2efd46,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x2efd46,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5a604b,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3a0fd6=new _0xf7cd09({'extensions':_0x2e6c54,'parent':_0x16a785['parent']});return _0x370ff6(_0x3a0fd6),{'focus':()=>{_0x3a0fd6['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3a0fd6['focus']();},'getData':()=>_0x3a0fd6['state']['doc']['toString'](),'setData':_0x2eb0d5=>{_0x3a0fd6['dispatch']({'changes':{'from':0x0,'to':_0x3a0fd6['state']['doc']['length'],'insert':_0x2eb0d5},'annotations':_0x2bea05['addToHistory']['of'](!0x1)});},'setReadOnly':_0x375360=>{_0x3a0fd6['dispatch']({'effects':[_0x4610e2['reconfigure'](_0xf7cd09['editable']['of'](!_0x375360))]});},'destroy':()=>{_0x3a0fd6['destroy']();},'instance':_0x3a0fd6};}class Q extends _0x3c0caf{['_codeEditorApi']=null;['_options'];constructor(_0x373570,_0x5db87c){super(_0x373570),this['_options']=_0x5db87c,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',(_0x22703d,_0x4cbadb,_0x590501)=>{this['setReadOnly'](_0x590501);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x1e568c){this['_codeEditorApi']['setData'](_0x1e568c);}['setReadOnly'](_0x4d5138){this['_codeEditorApi']['setReadOnly'](_0x4d5138);}}const W='SourceEditingEnhancedMode';class X extends _0x4c19ab{constructor(_0x25983e){super(_0x25983e),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x509863)['on']('change:hasAny',(_0x172c27,_0x35695b,_0x50163e)=>{_0x50163e?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x1025ab=this['editor'];for(const _0x4b9600 of _0x1025ab['commands']['names']())['replaceSource','editSource']['includes'](_0x4b9600)||_0x1025ab['commands']['get'](_0x4b9600)['forceDisabled'](W);}['_enableCommands'](){const _0x1695ed=this['editor'];for(const _0x1f1b25 of _0x1695ed['commands']['commands']())_0x1f1b25['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x57dcd8=this['editor'],_0x4dd9a2=_0x57dcd8['locale'],_0x4e0fd0=_0x57dcd8['plugins']['get']('Dialog'),_0x1d880c=V(_0x57dcd8),_0x1c2393=_0x57dcd8['data']['get']({'rootName':_0x1d880c}),_0x2d9568=J(_0x261305=_0x1c2393)?_0x5e5695(_0x261305):_0x261305;var _0x261305;const _0x36d926=new Q(_0x4dd9a2,{'syntaxLanguage':_0x57dcd8['plugins']['has']('Markdown')?'markdown':'html','theme':_0x57dcd8['config']['get']('sourceEditingEnhanced.theme')});let _0x59dc63=!0x0;const _0x46d6b5=_0x11516d=>{if(!_0x59dc63)return;return Z(_0x36d926['getData']())!==Z(_0x2d9568)?window['confirm'](H(_0x4dd9a2,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x11516d['stop']():void 0x0;};_0x4e0fd0['show']({'id':'sourceEditingEnhanced','title':H(_0x4dd9a2,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x36d926,'actionButtons':[{'label':H(_0x4dd9a2,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x4e0fd0['hide']();}},{'label':H(_0x4dd9a2,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x1f157d=Z(_0x36d926['getData']())!==Z(_0x2d9568);(_0x1f157d&&_0x57dcd8['execute']('replaceSource',_0x36d926['getData']()),_0x59dc63=!0x1,_0x4e0fd0['hide'](),_0x1f157d&&'editables'in _0x57dcd8['ui']['view'])&&_0x57dcd8['ui']['view']['editables'][_0x1d880c]['element']['focus']();},'onCreate':_0x4bbf61=>{_0x4bbf61['set']('isEnabled',!_0x57dcd8['isReadOnly']),_0x4bbf61['bind']('isEnabled')['to'](_0x57dcd8,'isReadOnly',this,'isEnabled',(_0xd62dd2,_0x5d2be6)=>!_0xd62dd2&&_0x5d2be6);}}],'onHide':()=>{this['_enableCommands'](),_0x4e0fd0['off']('hide',_0x46d6b5),_0x36d926['destroy']();},'onShow':()=>{_0x36d926['bind']('isReadOnly')['to'](_0x57dcd8,'isReadOnly',this,'isEnabled',(_0x2493fa,_0x481bd0)=>_0x2493fa||!_0x481bd0),_0x36d926['setData'](_0x2d9568),_0x36d926['focus'](),_0x4e0fd0['on']('hide',_0x46d6b5,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x50b84f{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x509863];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xf74191=this['editor'],_0x377fa6=_0xf74191['locale'],_0x3933cf=new X(_0xf74191);_0xf74191['commands']['add']('editSource',_0x3933cf),_0xf74191['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3ec5d2=this['_createButton'](_0x169110,_0x3933cf);return _0x3ec5d2['set']({'label':H(_0x377fa6,'Source'),'icon':_0x35bbe3,'tooltip':H(_0x377fa6,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3ec5d2;}),_0xf74191['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3150a6=this['_createButton'](_0x1b3d78,_0x3933cf,!0x0);return _0x3150a6['set']({'label':H(_0x377fa6,'Edit\x20source\x20modal\x20label'),'icon':_0x35bbe3,'role':'menuitemcheckbox'}),_0x3150a6;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x4e1fcd){const _0xc6b1b=_0x110557([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]),_0x59d225=0x5dba9314,_0x50a2f8=0x5dbd14f4^_0x59d225,_0x16add5=window[_0x110557([0x44,0x61,0x74,0x65])][_0x110557([0x6e,0x6f,0x77])](),_0x2f7b64=_0x4e1fcd[_0x110557([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38f12a=new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a160d=>{_0x2f7b64[_0x110557([0x6f,0x6e,0x63,0x65])](_0x110557([0x72,0x65,0x61,0x64,0x79]),_0x5a160d);}),_0x35ef59={[_0x110557([0x6b,0x74,0x79])]:_0x110557([0x45,0x43]),[_0x110557([0x75,0x73,0x65])]:_0x110557([0x73,0x69,0x67]),[_0x110557([0x63,0x72,0x76])]:_0x110557([0x50,0x2d,0x32,0x35,0x36]),[_0x110557([0x78])]:_0x110557([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]),[_0x110557([0x79])]:_0x110557([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]),[_0x110557([0x61,0x6c,0x67])]:_0x110557([0x45,0x53,0x32,0x35,0x36])},_0x5473df=_0x2f7b64[_0x110557([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x110557([0x67,0x65,0x74])](_0x110557([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x521b60(){let _0x568174,_0x201411=null,_0x5af193=null;try{if(_0x5473df==_0x110557([0x47,0x50,0x4c]))return _0x110557([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x568174=_0x39da65(),!_0x568174)return _0x110557([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x568174[_0x110557([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5af193=_0xbbcc3(_0x568174[_0x110557([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x568174[_0x110557([0x6a,0x74,0x69])])),await _0x8f6963()?_0x354cc2()?_0x392493()?_0x110557([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aa5f7()?(_0x568174[_0x110557([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x110557([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x201411=_0x507b24(_0x110557([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fd877()):_0x110557([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x110557([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x110557([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x110557([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x392493(){const _0x4d4cd0=[_0x110557([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x110557([0x74,0x72,0x69,0x61,0x6c])][_0x110557([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568174[_0x110557([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16add5/0x3e8:0xe10*_0x50a2f8;return _0x568174[_0x110557([0x65,0x78,0x70])]<_0x4d4cd0;}function _0x354cc2(){const _0x473bf1=_0x568174[_0x110557([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x473bf1&&(!!_0x473bf1[_0x110557([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110557([0x2a]))||!!_0x473bf1[_0x110557([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110557([0x53,0x45,0x45])));}function _0x1aa5f7(){const _0x20de92=_0x568174[_0x110557([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20de92||0x0==_0x20de92[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d188f}=new URL(window[_0x110557([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20de92[_0x110557([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d188f))return!0x0;const _0x47fc18=_0x2d188f[_0x110557([0x73,0x70,0x6c,0x69,0x74])](_0x110557([0x2e]));return _0x20de92[_0x110557([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1680be=>_0x1680be[_0x110557([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110557([0x2a])))[_0x110557([0x6d,0x61,0x70])](_0x41478e=>_0x41478e[_0x110557([0x73,0x70,0x6c,0x69,0x74])](_0x110557([0x2e])))[_0x110557([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17123b=>_0x17123b[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47fc18[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x110557([0x6d,0x61,0x70])](_0xb2450b=>Array(_0x47fc18[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb2450b[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x110557([0x66,0x69,0x6c,0x6c])](_0xb2450b[0x0]===_0x110557([0x2a])?_0x110557([0x2a]):'')[_0x110557([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb2450b))[_0x110557([0x73,0x6f,0x6d,0x65])](_0x388ad5=>_0x47fc18[_0x110557([0x65,0x76,0x65,0x72,0x79])]((_0x52c873,_0x40a3f5)=>_0x388ad5[_0x40a3f5]===_0x52c873||_0x388ad5[_0x40a3f5]===_0x110557([0x2a])));}function _0x2fd877(){return _0x201411&&_0x5af193?new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59b78e,_0x41b841)=>{_0x201411[_0x110557([0x74,0x68,0x65,0x6e])](_0x59b78e,_0x41b841),_0x5af193[_0x110557([0x74,0x68,0x65,0x6e])](_0x4a0835=>{_0x4a0835!=_0x110557([0x56,0x61,0x6c,0x69,0x64])&&_0x59b78e(_0x4a0835);},_0x41b841);}):_0x201411||_0x5af193||_0x110557([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbbcc3(_0x1a031e,_0x1dd2fa){return new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407033=>{if(_0xbde875())return _0x407033(_0x110557([0x56,0x61,0x6c,0x69,0x64]));_0x595712(),_0x2f7b64[_0x110557([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x110557([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e2b53=!0x1;const _0x23c647=_0x32fbab();function _0x45d489(_0x4a9711){return!!_0x4a9711&&(typeof _0x4a9711===_0x110557([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a9711===_0x110557([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a9711[_0x110557([0x74,0x68,0x65,0x6e])]===_0x110557([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a9711[_0x110557([0x63,0x61,0x74,0x63,0x68])]===_0x110557([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f2a06(_0x1eb233){_0x1aeae0(_0x1eb233)[_0x110557([0x74,0x68,0x65,0x6e])](_0x3b240a=>{if(!_0x3b240a||_0x3b240a[_0x110557([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x110557([0x6f,0x6b]))return _0x110557([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25b611(_0x4a4cd7(_0x23c647+_0x1dd2fa))!=_0x3b240a[_0x110557([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x110557([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x110557([0x56,0x61,0x6c,0x69,0x64]);})[_0x110557([0x74,0x68,0x65,0x6e])](_0x765479=>(_0x4633bf(),_0x765479),()=>{const _0x19c635=_0x4c77cb();return null==_0x19c635?(_0x4633bf(),_0x110557([0x56,0x61,0x6c,0x69,0x64])):_0x110557(_0x16add5-_0x19c635>(0x79b61714^_0x59d225)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x110557([0x74,0x68,0x65,0x6e])](_0x407033)[_0x110557([0x63,0x61,0x74,0x63,0x68])](()=>{_0x407033(_0x110557([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f8a21=0x5d8c7d94^_0x59d225;function _0x4633bf(){const _0x1445cb=_0x110557([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b611(_0x4a4cd7(_0x1a031e)),_0x34c8c0=_0x523ee2(_0x25b611(window[_0x110557([0x4d,0x61,0x74,0x68])][_0x110557([0x63,0x65,0x69,0x6c])](_0x16add5/_0x3f8a21)));window[_0x110557([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x110557([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1445cb,_0x34c8c0);}function _0x4c77cb(){const _0x49a1d8=_0x110557([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b611(_0x4a4cd7(_0x1a031e)),_0x69146f=window[_0x110557([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x110557([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49a1d8);return _0x69146f?window[_0x110557([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x523ee2(_0x69146f),0x10)*_0x3f8a21:null;}function _0x1aeae0(_0x401a30){return new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3509a4,_0x5bf8cc)=>{_0x401a30[_0x110557([0x74,0x68,0x65,0x6e])](_0x3509a4,_0x5bf8cc),window[_0x110557([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bf8cc,0x5dbb47d4^_0x59d225);});}}_0x2f7b64[_0x110557([0x6f,0x6e])](_0x110557([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x331ad4,_0x5b76cf)=>{if(_0x5b76cf[0x0]!=_0x1a031e)return _0x407033(_0x110557([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b76cf[0x1]={..._0x5b76cf[0x1],[_0x110557([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23c647};},{[_0x110557([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x110557([0x68,0x69,0x67,0x68])}),_0x2f7b64[_0x110557([0x6f,0x6e])](_0x110557([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46b2c5=>{_0x45d489(_0x46b2c5[_0x110557([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e2b53=!0x0,_0x3f2a06(_0x46b2c5[_0x110557([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x110557([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x110557([0x6c,0x6f,0x77])}),_0x38f12a[_0x110557([0x74,0x68,0x65,0x6e])](()=>{_0x2e2b53||_0x407033(_0x110557([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbde875(){return _0x2f7b64[_0x110557([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x110557([0x76,0x69,0x65,0x77])][_0x110557([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x110557([0x61,0x75,0x74,0x6f]);}function _0x595712(){_0x2f7b64[_0x110557([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x110557([0x76,0x69,0x65,0x77])][_0x110557([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x110557([0x61,0x75,0x74,0x6f]);}}function _0x507b24(_0x54489b){const _0x50471e=[new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c81af=>setTimeout(_0x5c81af,0x5db3add8^_0x59d225)),_0x38f12a[_0x110557([0x74,0x68,0x65,0x6e])](()=>new window[(_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30340d=>{let _0x2f3f3e=0x0;_0x2f7b64[_0x110557([0x6d,0x6f,0x64,0x65,0x6c])][_0x110557([0x6f,0x6e])](_0x110557([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a5ae3,_0x31d80e)=>{_0x31d80e[0x0][_0x110557([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f3f3e++,_0x2f3f3e==(0x5dba96fc^_0x59d225)&&(_0x30340d(),_0x5a5ae3[_0x110557([0x6f,0x66,0x66])]());});}))];return window[_0x110557([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x110557([0x72,0x61,0x63,0x65])](_0x50471e)[_0x110557([0x74,0x68,0x65,0x6e])](()=>_0x54489b);}async function _0x4dacc(){await _0x38f12a,_0x2f7b64[_0x110557([0x6d,0x6f,0x64,0x65,0x6c])][_0x110557([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x335be1,_0x2f7b64[_0x110557([0x6d,0x6f,0x64,0x65,0x6c])][_0x110557([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x335be1,_0x2f7b64[_0x110557([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x110557([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4610e5(_0x360181){const _0x317a7d=_0x4d8495();_0x2f7b64[_0x317a7d]=_0x110557([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])+_0x360181,_0x360181!=_0x110557([0x56,0x61,0x6c,0x69,0x64])&&_0x4dacc();}function _0x4d8495(){const _0x46e52a=window[_0x110557([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x110557([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x110557([0x6e,0x6f,0x77])]())[_0x110557([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x110557([0x2e]),'');let _0x3f9f0d=_0x110557([0x4e]);for(let _0xf7b342=0x0;_0xf7b342<_0x46e52a[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf7b342+=0x2){let _0x18d72c=window[_0x110557([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46e52a[_0x110557([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf7b342,_0xf7b342+0x2));_0x18d72c>=_0xc6b1b[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18d72c-=_0xc6b1b[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f9f0d+=_0xc6b1b[_0x18d72c];}return _0x3f9f0d;}function _0x39da65(){const _0x5d6f63=_0x5473df[_0x110557([0x73,0x70,0x6c,0x69,0x74])](_0x110557([0x2e]));if(0x3!=_0x5d6f63[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x209d39(_0x5d6f63[0x1]);function _0x209d39(_0x435205){const _0x5264b7=_0x134a1b(_0x435205);return _0x5264b7&&_0x109b04()?_0x5264b7:null;function _0x109b04(){const _0x13fd33=_0x5264b7[_0x110557([0x6a,0x74,0x69])],_0x4ca5e3=window[_0x110557([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13fd33[_0x110557([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13fd33[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5518e8={..._0x5264b7,[_0x110557([0x6a,0x74,0x69])]:_0x13fd33[_0x110557([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13fd33[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5518e8[_0x110557([0x76,0x63])],_0x4a4cd7(_0x5518e8)==_0x4ca5e3;}}}async function _0x8f6963(){let _0x37c07f=!0x0;try{const _0x11eab3=_0x5473df[_0x110557([0x73,0x70,0x6c,0x69,0x74])](_0x110557([0x2e])),[_0x975b94,_0x289fab,_0x51ae7d]=_0x11eab3;return _0x31d8d4(_0x975b94),await _0x4df6e5(_0x975b94,_0x289fab,_0x51ae7d),_0x37c07f;}catch{return!0x1;}function _0x31d8d4(_0x3ef817){const _0x126634=_0x134a1b(_0x3ef817);_0x126634&&_0x126634[_0x110557([0x61,0x6c,0x67])]==_0x110557([0x45,0x53,0x32,0x35,0x36])||(_0x37c07f=!0x1);}async function _0x4df6e5(_0xc8d668,_0x18186e,_0x936d97){const _0x38d627=window[_0x110557([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x110557([0x66,0x72,0x6f,0x6d])](_0x3fac06(_0x936d97),_0xc5086c=>_0xc5086c[_0x110557([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53e115=new window[(_0x110557([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x110557([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc8d668+_0x110557([0x2e])+_0x18186e),_0x1d86e2=window[_0x110557([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x110557([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d86e2)return;const _0x928de=await _0x1d86e2[_0x110557([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x110557([0x6a,0x77,0x6b]),_0x35ef59,{[_0x110557([0x6e,0x61,0x6d,0x65])]:_0x110557([0x45,0x43,0x44,0x53,0x41]),[_0x110557([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x110557([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x110557([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d86e2[_0x110557([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x110557([0x6e,0x61,0x6d,0x65])]:_0x110557([0x45,0x43,0x44,0x53,0x41]),[_0x110557([0x68,0x61,0x73,0x68])]:{[_0x110557([0x6e,0x61,0x6d,0x65])]:_0x110557([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x928de,_0x38d627,_0x53e115)||(_0x37c07f=!0x1);}}function _0x134a1b(_0x5960f1){return _0x5960f1[_0x110557([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x110557([0x65,0x79]))?JSON[_0x110557([0x70,0x61,0x72,0x73,0x65])](_0x3fac06(_0x5960f1)):null;}function _0x3fac06(_0xe26d21){return window[_0x110557([0x61,0x74,0x6f,0x62])](_0xe26d21[_0x110557([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x110557([0x2b]))[_0x110557([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x110557([0x2f])));}function _0x4a4cd7(_0x500200){let _0x2f4016=0x1505;function _0x1ed857(_0x5c47a1){for(let _0x189324=0x0;_0x189324<_0x5c47a1[_0x110557([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x189324++){const _0x15112a=_0x5c47a1[_0x110557([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x189324);_0x2f4016=(_0x2f4016<<0x5)+_0x2f4016+_0x15112a,_0x2f4016&=_0x2f4016;}}function _0x1a8204(_0x39c889){Array[_0x110557([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39c889)?_0x39c889[_0x110557([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a8204):_0x39c889&&typeof _0x39c889==_0x110557([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x110557([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39c889)[_0x110557([0x73,0x6f,0x72,0x74])]()[_0x110557([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35136a,_0x53039b])=>{_0x1ed857(_0x35136a),_0x1a8204(_0x53039b);}):_0x1ed857(window[_0x110557([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39c889));}return _0x1a8204(_0x500200),_0x2f4016>>>0x0;}function _0x25b611(_0xa59470){return _0xa59470[_0x110557([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x110557([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x110557([0x30]));}function _0x523ee2(_0x4b0ea2){return _0x4b0ea2[_0x110557([0x73,0x70,0x6c,0x69,0x74])]('')[_0x110557([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x110557([0x6a,0x6f,0x69,0x6e])]('');}function _0x335be1(){}function _0x110557(_0x36ba2c){return _0x36ba2c['map'](_0x3b5f9e=>String['fromCharCode'](_0x3b5f9e))['join']('');}_0x4610e5(await _0x521b60());}(this);}['_createButton'](_0x22cd0f,_0x2b3c93,_0x5b4fc4=!0x1){const _0x3a3a9d=new _0x22cd0f(this['editor']['locale']);return _0x3a3a9d['set']({'withText':_0x5b4fc4,'isToggleable':!0x1}),_0x3a3a9d['bind']('isEnabled')['to'](_0x2b3c93,'isEnabled'),this['listenTo'](_0x3a3a9d,'execute',()=>_0x2b3c93['execute']()),_0x3a3a9d;}['_registerKeybindings'](){const _0xe630c9=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0xe630c9,'Source\x20Editing\x20Enhanced')});const _0x216b7a=_0x3705ad['isMac']||_0x3705ad['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0xe630c9,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0xe630c9,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0xe630c9,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0xe630c9,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0xe630c9,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0xe630c9,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0xe630c9,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x216b7a?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0xe630c9,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0xe630c9,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0xe630c9,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0xe630c9,'Select\x20line'),'keystroke':_0x216b7a?'Ctrl!+L':'Alt+L'},{'label':H(_0xe630c9,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x216b7a?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0xe630c9,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0xe630c9,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0xe630c9,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0xe630c9,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0xe630c9,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x216b7a?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x4c19ab{constructor(_0x2f7371){super(_0x2f7371),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x22e628,_0xda3795){const _0x16f062=this['editor'],_0x54d59b=_0xda3795?.['rootName']??V(_0x16f062);_0x16f062['data']['set']({[_0x54d59b]:_0x22e628},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x50b84f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x3212e4){super(_0x3212e4),_0x3212e4['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 _0xf6cb14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x545b6e;for(const _0x2c3ddb in _0xf6cb14){const _0x9d5183=_0x2c3ddb,_0x5c234a=_0xf6cb14[_0x9d5183];if('sourceEditingEnhancedLicenseKeyValid'==_0x5c234a||'sourceEditingEnhancedLicenseKeyInvalid'==_0x5c234a||'sourceEditingEnhancedLicenseKeyExpired'==_0x5c234a||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x5c234a||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x5c234a||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x5c234a||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x5c234a){delete _0xf6cb14[_0x9d5183],_0x545b6e=_0x5c234a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x545b6e&&_0xf6cb14['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x545b6e&&_0xf6cb14['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x545b6e&&_0xf6cb14['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x545b6e&&_0xf6cb14['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x545b6e&&_0xf6cb14['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x545b6e&&_0xf6cb14['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x42f2ee=this['editor'],_0x950dc8=_0x42f2ee['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x950dc8&&_0x42f2ee['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x680325('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x950dc8&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x4a6c97=>_0x42f2ee['plugins']['has'](_0x4a6c97))&&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.'),_0x42f2ee['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 _0x1a4f53,PendingActions as _0x50159d,Plugin as _0x42a3b9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x213d27,formatHtml as _0x1882a1,env as _0x3c2bb5,uid as _0x20e5e8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x2985bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x293b77,ButtonView as _0x51715d,MenuBarMenuListItemButtonView as _0x9f9436}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x3a5182,crosshairCursor as _0x1ce376,drawSelection as _0x297966,dropCursor as _0x283546,lineNumbers as _0x5cdcaf,highlightActiveLine as _0x4ea8b1,highlightActiveLineGutter as _0x2ed8e4,highlightSpecialChars as _0x42f512,rectangularSelection as _0x1f758d,keymap as _0x205f91}from'@codemirror/view';import{Compartment as _0x50f08f,Transaction as _0x4f65b1}from'@codemirror/state';import{bracketMatching as _0xb4412,foldGutter as _0x5e988d,indentOnInput as _0x4688b8,syntaxHighlighting as _0x46753e,defaultHighlightStyle as _0x27fa95,foldKeymap as _0x26bf8a}from'@codemirror/language';import{toggleTabFocusMode as _0x4d927b,history as _0x3d07f0,defaultKeymap as _0x2e277c,historyKeymap as _0x7323c4,indentLess as _0xa83d56,indentMore as _0x9ce965,redo as _0x5e4005,undo as _0x3459f7}from'@codemirror/commands';import{autocompletion as _0x4d9851,closeBrackets as _0x607415,closeBracketsKeymap as _0x1f7bb3,completionKeymap as _0x1dce19}from'@codemirror/autocomplete';import{html as _0x528d29}from'@codemirror/lang-html';import{markdown as _0x4e3653}from'@codemirror/lang-markdown';import{oneDark as _0x51fa9b}from'@codemirror/theme-one-dark';function H(_0x1408f8,_0xe8f10){const t=_0x1408f8['t'];switch(_0xe8f10){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 _0xe8f10;}}function V(_0x13ffd0){const _0x45d4d1=_0x13ffd0['editing']['view']['document']['roots'],_0x33c2e5=_0x45d4d1['length'];if(0x0===_0x33c2e5)throw new _0x213d27('source-editing-enhanced-editor-no-root',_0x13ffd0);if(0x1===_0x33c2e5)return _0x45d4d1['first']['rootName'];return Array['from'](_0x13ffd0['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x474af3){return J(_0x474af3['replace'](/^[\n\s]*/g,''))?_0x474af3['replace'](/\s+/g,''):_0x474af3;}function J(_0xa327d1){return _0xa327d1['startsWith']('<');}function G(_0x4848b0){const _0xbf9a6f=[_0x3a5182['lineWrapping'],_0x4d9851(),_0xb4412(),_0x607415(),_0x1ce376(),_0x297966(),_0x283546(),_0x5cdcaf(),_0x5e988d(),_0x4ea8b1(),_0x2ed8e4(),_0x42f512(),_0x3d07f0(),_0x4688b8(),_0x1f758d(),_0x46753e(_0x27fa95,{'fallback':!0x0})],_0x27c4be=new _0x50f08f();_0xbf9a6f['push'](_0x27c4be['of'](_0x3a5182['editable']['of'](!0x0))),'html'===_0x4848b0['syntaxLanguage']?_0xbf9a6f['push'](_0x528d29()):_0xbf9a6f['push'](_0x4e3653());const _0x3a2894=function(_0x5418eb){if(_0x5418eb&&'default'!==_0x5418eb)return'dark'===_0x5418eb?_0x51fa9b:_0x5418eb;return null;}(_0x4848b0['theme']);_0x3a2894&&_0xbf9a6f['push'](_0x3a2894),_0xbf9a6f['push'](_0x205f91['of']([..._0x1f7bb3,..._0x2e277c,..._0x7323c4,..._0x26bf8a,..._0x1dce19,{'key':'Tab','run':_0x9ce965,'shift':_0xa83d56,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x5e4005,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x5e4005,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x3459f7,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x5c0f6f=new _0x3a5182({'extensions':_0xbf9a6f,'parent':_0x4848b0['parent']});return _0x4d927b(_0x5c0f6f),{'focus':()=>{_0x5c0f6f['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x5c0f6f['focus']();},'getData':()=>_0x5c0f6f['state']['doc']['toString'](),'setData':_0x1a8707=>{_0x5c0f6f['dispatch']({'changes':{'from':0x0,'to':_0x5c0f6f['state']['doc']['length'],'insert':_0x1a8707},'annotations':_0x4f65b1['addToHistory']['of'](!0x1)});},'setReadOnly':_0x3f0daa=>{_0x5c0f6f['dispatch']({'effects':[_0x27c4be['reconfigure'](_0x3a5182['editable']['of'](!_0x3f0daa))]});},'destroy':()=>{_0x5c0f6f['destroy']();},'instance':_0x5c0f6f};}class Q extends _0x293b77{['_codeEditorApi']=null;['_options'];constructor(_0x2d3584,_0x353ce1){super(_0x2d3584),this['_options']=_0x353ce1,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',(_0x4090d6,_0x1693c6,_0x221519)=>{this['setReadOnly'](_0x221519);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x588a27){this['_codeEditorApi']['setData'](_0x588a27);}['setReadOnly'](_0xd7d1b1){this['_codeEditorApi']['setReadOnly'](_0xd7d1b1);}}const W='SourceEditingEnhancedMode';class X extends _0x1a4f53{constructor(_0xc0be4f){super(_0xc0be4f),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x50159d)['on']('change:hasAny',(_0x18a645,_0xef8e9b,_0x388b3a)=>{_0x388b3a?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x51c70e=this['editor'];for(const _0x336696 of _0x51c70e['commands']['names']())['replaceSource','editSource']['includes'](_0x336696)||_0x51c70e['commands']['get'](_0x336696)['forceDisabled'](W);}['_enableCommands'](){const _0x36a97a=this['editor'];for(const _0x4bb46d of _0x36a97a['commands']['commands']())_0x4bb46d['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x546b4c=this['editor'],_0x22ef03=_0x546b4c['locale'],_0x1901cc=_0x546b4c['plugins']['get']('Dialog'),_0x8ea50d=V(_0x546b4c),_0x2a0fda=_0x546b4c['data']['get']({'rootName':_0x8ea50d}),_0x3efd36=J(_0x1b8618=_0x2a0fda)?_0x1882a1(_0x1b8618):_0x1b8618;var _0x1b8618;const _0x4d48d2=new Q(_0x22ef03,{'syntaxLanguage':_0x546b4c['plugins']['has']('Markdown')?'markdown':'html','theme':_0x546b4c['config']['get']('sourceEditingEnhanced.theme')});let _0x53a51f=!0x0;const _0xef8ceb=_0x246319=>{if(!_0x53a51f)return;return Z(_0x4d48d2['getData']())!==Z(_0x3efd36)?window['confirm'](H(_0x22ef03,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x246319['stop']():void 0x0;};_0x1901cc['show']({'id':'sourceEditingEnhanced','title':H(_0x22ef03,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x4d48d2,'actionButtons':[{'label':H(_0x22ef03,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x1901cc['hide']();}},{'label':H(_0x22ef03,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x3fd95b=Z(_0x4d48d2['getData']())!==Z(_0x3efd36);(_0x3fd95b&&_0x546b4c['execute']('replaceSource',_0x4d48d2['getData']()),_0x53a51f=!0x1,_0x1901cc['hide'](),_0x3fd95b&&'editables'in _0x546b4c['ui']['view'])&&_0x546b4c['ui']['view']['editables'][_0x8ea50d]['element']['focus']();},'onCreate':_0x1bba37=>{_0x1bba37['set']('isEnabled',!_0x546b4c['isReadOnly']),_0x1bba37['bind']('isEnabled')['to'](_0x546b4c,'isReadOnly',this,'isEnabled',(_0x30a039,_0x4400c7)=>!_0x30a039&&_0x4400c7);}}],'onHide':()=>{this['_enableCommands'](),_0x1901cc['off']('hide',_0xef8ceb),_0x4d48d2['destroy']();},'onShow':()=>{_0x4d48d2['bind']('isReadOnly')['to'](_0x546b4c,'isReadOnly',this,'isEnabled',(_0x4d59e9,_0x297179)=>_0x4d59e9||!_0x297179),_0x4d48d2['setData'](_0x3efd36),_0x4d48d2['focus'](),_0x1901cc['on']('hide',_0xef8ceb,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x42a3b9{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x50159d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x288a23=this['editor'],_0x3b0596=_0x288a23['locale'],_0x43bac8=new X(_0x288a23);_0x288a23['commands']['add']('editSource',_0x43bac8),_0x288a23['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x49e89b=this['_createButton'](_0x51715d,_0x43bac8);return _0x49e89b['set']({'label':H(_0x3b0596,'Source'),'icon':_0x2985bf,'tooltip':H(_0x3b0596,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x49e89b;}),_0x288a23['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x92c76f=this['_createButton'](_0x9f9436,_0x43bac8,!0x0);return _0x92c76f['set']({'label':H(_0x3b0596,'Edit\x20source\x20modal\x20label'),'icon':_0x2985bf,'role':'menuitemcheckbox'}),_0x92c76f;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x13d5d8){const _0x32e296=_0x2eb0a5([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]),_0x4ba503=0x5dba9314,_0x17e9f7=0x5dbd14ec^_0x4ba503,_0x5ab6bb=window[_0x2eb0a5([0x44,0x61,0x74,0x65])][_0x2eb0a5([0x6e,0x6f,0x77])](),_0x1ba2b7=_0x13d5d8[_0x2eb0a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe5ae44=new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x588993=>{_0x1ba2b7[_0x2eb0a5([0x6f,0x6e,0x63,0x65])](_0x2eb0a5([0x72,0x65,0x61,0x64,0x79]),_0x588993);}),_0x8c1091={[_0x2eb0a5([0x6b,0x74,0x79])]:_0x2eb0a5([0x45,0x43]),[_0x2eb0a5([0x75,0x73,0x65])]:_0x2eb0a5([0x73,0x69,0x67]),[_0x2eb0a5([0x63,0x72,0x76])]:_0x2eb0a5([0x50,0x2d,0x32,0x35,0x36]),[_0x2eb0a5([0x78])]:_0x2eb0a5([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]),[_0x2eb0a5([0x79])]:_0x2eb0a5([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]),[_0x2eb0a5([0x61,0x6c,0x67])]:_0x2eb0a5([0x45,0x53,0x32,0x35,0x36])},_0x2fc3a1=_0x1ba2b7[_0x2eb0a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2eb0a5([0x67,0x65,0x74])](_0x2eb0a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12b93c(){let _0x18dfa2,_0x1976e5=null,_0x22332e=null;try{if(_0x2fc3a1==_0x2eb0a5([0x47,0x50,0x4c]))return _0x2eb0a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18dfa2=_0x21d167(),!_0x18dfa2)return _0x2eb0a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18dfa2[_0x2eb0a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22332e=_0x464832(_0x18dfa2[_0x2eb0a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18dfa2[_0x2eb0a5([0x6a,0x74,0x69])])),await _0x4e5bfd()?_0x3eb872()?_0x5ae1b5()?_0x2eb0a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43766d()?(_0x18dfa2[_0x2eb0a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eb0a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1976e5=_0x19ce23(_0x2eb0a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38ec8c()):_0x2eb0a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2eb0a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2eb0a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2eb0a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ae1b5(){const _0x382fed=[_0x2eb0a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2eb0a5([0x74,0x72,0x69,0x61,0x6c])][_0x2eb0a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18dfa2[_0x2eb0a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ab6bb/0x3e8:0xe10*_0x17e9f7;return _0x18dfa2[_0x2eb0a5([0x65,0x78,0x70])]<_0x382fed;}function _0x3eb872(){const _0x52500a=_0x18dfa2[_0x2eb0a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52500a&&(!!_0x52500a[_0x2eb0a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb0a5([0x2a]))||!!_0x52500a[_0x2eb0a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb0a5([0x53,0x45,0x45])));}function _0x43766d(){const _0x22499b=_0x18dfa2[_0x2eb0a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22499b||0x0==_0x22499b[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2743ed}=new URL(window[_0x2eb0a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22499b[_0x2eb0a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2743ed))return!0x0;const _0x35b90e=_0x2743ed[_0x2eb0a5([0x73,0x70,0x6c,0x69,0x74])](_0x2eb0a5([0x2e]));return _0x22499b[_0x2eb0a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1020be=>_0x1020be[_0x2eb0a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb0a5([0x2a])))[_0x2eb0a5([0x6d,0x61,0x70])](_0x1958c3=>_0x1958c3[_0x2eb0a5([0x73,0x70,0x6c,0x69,0x74])](_0x2eb0a5([0x2e])))[_0x2eb0a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ca6e=>_0x18ca6e[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35b90e[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eb0a5([0x6d,0x61,0x70])](_0x1ae76c=>Array(_0x35b90e[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ae76c[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eb0a5([0x66,0x69,0x6c,0x6c])](_0x1ae76c[0x0]===_0x2eb0a5([0x2a])?_0x2eb0a5([0x2a]):'')[_0x2eb0a5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ae76c))[_0x2eb0a5([0x73,0x6f,0x6d,0x65])](_0x5c7968=>_0x35b90e[_0x2eb0a5([0x65,0x76,0x65,0x72,0x79])]((_0x5e0066,_0x5105fa)=>_0x5c7968[_0x5105fa]===_0x5e0066||_0x5c7968[_0x5105fa]===_0x2eb0a5([0x2a])));}function _0x38ec8c(){return _0x1976e5&&_0x22332e?new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e8c36,_0x5d97f8)=>{_0x1976e5[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0x2e8c36,_0x5d97f8),_0x22332e[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0xd9942=>{_0xd9942!=_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64])&&_0x2e8c36(_0xd9942);},_0x5d97f8);}):_0x1976e5||_0x22332e||_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x464832(_0x408cc6,_0x3a0e3a){return new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523e0c=>{if(_0x1ec706())return _0x523e0c(_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64]));_0x508b21(),_0x1ba2b7[_0x2eb0a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2eb0a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a22be=!0x1;const _0x586f46=_0x20e5e8();function _0x1eccdb(_0x3b128e){return!!_0x3b128e&&(typeof _0x3b128e===_0x2eb0a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b128e===_0x2eb0a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b128e[_0x2eb0a5([0x74,0x68,0x65,0x6e])]===_0x2eb0a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b128e[_0x2eb0a5([0x63,0x61,0x74,0x63,0x68])]===_0x2eb0a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b04d8(_0xa4a0f8){_0x208aad(_0xa4a0f8)[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0x364a15=>{if(!_0x364a15||_0x364a15[_0x2eb0a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2eb0a5([0x6f,0x6b]))return _0x2eb0a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17de82(_0x3513cc(_0x586f46+_0x3a0e3a))!=_0x364a15[_0x2eb0a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2eb0a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0x37f10c=>(_0x2dc997(),_0x37f10c),()=>{const _0x494586=_0x1fbd3a();return null==_0x494586?(_0x2dc997(),_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64])):_0x2eb0a5(_0x5ab6bb-_0x494586>(0x79b61714^_0x4ba503)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0x523e0c)[_0x2eb0a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x523e0c(_0x2eb0a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x210a0e=0x5d8c7d94^_0x4ba503;function _0x2dc997(){const _0x273b13=_0x2eb0a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x17de82(_0x3513cc(_0x408cc6)),_0x359ed8=_0x5701a1(_0x17de82(window[_0x2eb0a5([0x4d,0x61,0x74,0x68])][_0x2eb0a5([0x63,0x65,0x69,0x6c])](_0x5ab6bb/_0x210a0e)));window[_0x2eb0a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eb0a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x273b13,_0x359ed8);}function _0x1fbd3a(){const _0x553160=_0x2eb0a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x17de82(_0x3513cc(_0x408cc6)),_0xbfb1ec=window[_0x2eb0a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eb0a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x553160);return _0xbfb1ec?window[_0x2eb0a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5701a1(_0xbfb1ec),0x10)*_0x210a0e:null;}function _0x208aad(_0x31fe1f){return new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x254bf2,_0x43d9cf)=>{_0x31fe1f[_0x2eb0a5([0x74,0x68,0x65,0x6e])](_0x254bf2,_0x43d9cf),window[_0x2eb0a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43d9cf,0x5dbb47d4^_0x4ba503);});}}_0x1ba2b7[_0x2eb0a5([0x6f,0x6e])](_0x2eb0a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42b762,_0x341ed9)=>{if(_0x341ed9[0x0]!=_0x408cc6)return _0x523e0c(_0x2eb0a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x341ed9[0x1]={..._0x341ed9[0x1],[_0x2eb0a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586f46};},{[_0x2eb0a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eb0a5([0x68,0x69,0x67,0x68])}),_0x1ba2b7[_0x2eb0a5([0x6f,0x6e])](_0x2eb0a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15fce5=>{_0x1eccdb(_0x15fce5[_0x2eb0a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a22be=!0x0,_0x5b04d8(_0x15fce5[_0x2eb0a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2eb0a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eb0a5([0x6c,0x6f,0x77])}),_0xe5ae44[_0x2eb0a5([0x74,0x68,0x65,0x6e])](()=>{_0x4a22be||_0x523e0c(_0x2eb0a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ec706(){return _0x1ba2b7[_0x2eb0a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eb0a5([0x76,0x69,0x65,0x77])][_0x2eb0a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2eb0a5([0x61,0x75,0x74,0x6f]);}function _0x508b21(){_0x1ba2b7[_0x2eb0a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eb0a5([0x76,0x69,0x65,0x77])][_0x2eb0a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2eb0a5([0x61,0x75,0x74,0x6f]);}}function _0x19ce23(_0x48079c){const _0x5d4bc7=[new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205658=>setTimeout(_0x205658,0x5db3add8^_0x4ba503)),_0xe5ae44[_0x2eb0a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a9359=>{let _0xd1a819=0x0;_0x1ba2b7[_0x2eb0a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eb0a5([0x6f,0x6e])](_0x2eb0a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc49b4f,_0x52dcb0)=>{_0x52dcb0[0x0][_0x2eb0a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd1a819++,_0xd1a819==(0x5dba96fc^_0x4ba503)&&(_0x1a9359(),_0xc49b4f[_0x2eb0a5([0x6f,0x66,0x66])]());});}))];return window[_0x2eb0a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2eb0a5([0x72,0x61,0x63,0x65])](_0x5d4bc7)[_0x2eb0a5([0x74,0x68,0x65,0x6e])](()=>_0x48079c);}async function _0x2eca48(){await _0xe5ae44,_0x1ba2b7[_0x2eb0a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eb0a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b37cc,_0x1ba2b7[_0x2eb0a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eb0a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b37cc,_0x1ba2b7[_0x2eb0a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2eb0a5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x547d9c(_0x5ce026){const _0x4d3542=_0x843a9b();_0x1ba2b7[_0x4d3542]=_0x2eb0a5([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])+_0x5ce026,_0x5ce026!=_0x2eb0a5([0x56,0x61,0x6c,0x69,0x64])&&_0x2eca48();}function _0x843a9b(){const _0x579f85=window[_0x2eb0a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2eb0a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2eb0a5([0x6e,0x6f,0x77])]())[_0x2eb0a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2eb0a5([0x2e]),'');let _0x4c32cd=_0x2eb0a5([0x4e]);for(let _0x539fdb=0x0;_0x539fdb<_0x579f85[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x539fdb+=0x2){let _0x2178b6=window[_0x2eb0a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x579f85[_0x2eb0a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x539fdb,_0x539fdb+0x2));_0x2178b6>=_0x32e296[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2178b6-=_0x32e296[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c32cd+=_0x32e296[_0x2178b6];}return _0x4c32cd;}function _0x21d167(){const _0xd4e11=_0x2fc3a1[_0x2eb0a5([0x73,0x70,0x6c,0x69,0x74])](_0x2eb0a5([0x2e]));if(0x3!=_0xd4e11[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bbc41(_0xd4e11[0x1]);function _0x4bbc41(_0x1f675c){const _0x4c74fe=_0x3832e4(_0x1f675c);return _0x4c74fe&&_0x5b0749()?_0x4c74fe:null;function _0x5b0749(){const _0x2d98d8=_0x4c74fe[_0x2eb0a5([0x6a,0x74,0x69])],_0xa38843=window[_0x2eb0a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d98d8[_0x2eb0a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d98d8[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5084bc={..._0x4c74fe,[_0x2eb0a5([0x6a,0x74,0x69])]:_0x2d98d8[_0x2eb0a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d98d8[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5084bc[_0x2eb0a5([0x76,0x63])],_0x3513cc(_0x5084bc)==_0xa38843;}}}async function _0x4e5bfd(){let _0x1df482=!0x0;try{const _0x31b4af=_0x2fc3a1[_0x2eb0a5([0x73,0x70,0x6c,0x69,0x74])](_0x2eb0a5([0x2e])),[_0x17e68b,_0x49ff2e,_0x491711]=_0x31b4af;return _0x2fbfe1(_0x17e68b),await _0x279bb9(_0x17e68b,_0x49ff2e,_0x491711),_0x1df482;}catch{return!0x1;}function _0x2fbfe1(_0x1e3d80){const _0xa109a8=_0x3832e4(_0x1e3d80);_0xa109a8&&_0xa109a8[_0x2eb0a5([0x61,0x6c,0x67])]==_0x2eb0a5([0x45,0x53,0x32,0x35,0x36])||(_0x1df482=!0x1);}async function _0x279bb9(_0x3048b4,_0x65b2de,_0x38209e){const _0x387a6a=window[_0x2eb0a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2eb0a5([0x66,0x72,0x6f,0x6d])](_0x13956e(_0x38209e),_0x3212ce=>_0x3212ce[_0x2eb0a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ccec=new window[(_0x2eb0a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2eb0a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3048b4+_0x2eb0a5([0x2e])+_0x65b2de),_0x409c62=window[_0x2eb0a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2eb0a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x409c62)return;const _0x254071=await _0x409c62[_0x2eb0a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2eb0a5([0x6a,0x77,0x6b]),_0x8c1091,{[_0x2eb0a5([0x6e,0x61,0x6d,0x65])]:_0x2eb0a5([0x45,0x43,0x44,0x53,0x41]),[_0x2eb0a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2eb0a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2eb0a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x409c62[_0x2eb0a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2eb0a5([0x6e,0x61,0x6d,0x65])]:_0x2eb0a5([0x45,0x43,0x44,0x53,0x41]),[_0x2eb0a5([0x68,0x61,0x73,0x68])]:{[_0x2eb0a5([0x6e,0x61,0x6d,0x65])]:_0x2eb0a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x254071,_0x387a6a,_0x34ccec)||(_0x1df482=!0x1);}}function _0x3832e4(_0x396340){return _0x396340[_0x2eb0a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2eb0a5([0x65,0x79]))?JSON[_0x2eb0a5([0x70,0x61,0x72,0x73,0x65])](_0x13956e(_0x396340)):null;}function _0x13956e(_0x9fb17c){return window[_0x2eb0a5([0x61,0x74,0x6f,0x62])](_0x9fb17c[_0x2eb0a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2eb0a5([0x2b]))[_0x2eb0a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2eb0a5([0x2f])));}function _0x3513cc(_0x3d4e41){let _0x44629c=0x1505;function _0x820fe2(_0x7b2549){for(let _0x3840dc=0x0;_0x3840dc<_0x7b2549[_0x2eb0a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3840dc++){const _0x5c1952=_0x7b2549[_0x2eb0a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3840dc);_0x44629c=(_0x44629c<<0x5)+_0x44629c+_0x5c1952,_0x44629c&=_0x44629c;}}function _0x41d5b9(_0x5f3782){Array[_0x2eb0a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f3782)?_0x5f3782[_0x2eb0a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41d5b9):_0x5f3782&&typeof _0x5f3782==_0x2eb0a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2eb0a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f3782)[_0x2eb0a5([0x73,0x6f,0x72,0x74])]()[_0x2eb0a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x123d29,_0x2bef1d])=>{_0x820fe2(_0x123d29),_0x41d5b9(_0x2bef1d);}):_0x820fe2(window[_0x2eb0a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f3782));}return _0x41d5b9(_0x3d4e41),_0x44629c>>>0x0;}function _0x17de82(_0x313aa2){return _0x313aa2[_0x2eb0a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2eb0a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2eb0a5([0x30]));}function _0x5701a1(_0x23c10d){return _0x23c10d[_0x2eb0a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2eb0a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2eb0a5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b37cc(){}function _0x2eb0a5(_0x443658){return _0x443658['map'](_0x5a0c3f=>String['fromCharCode'](_0x5a0c3f))['join']('');}_0x547d9c(await _0x12b93c());}(this);}['_createButton'](_0x52d7c0,_0x332d70,_0x247a2e=!0x1){const _0x995946=new _0x52d7c0(this['editor']['locale']);return _0x995946['set']({'withText':_0x247a2e,'isToggleable':!0x1}),_0x995946['bind']('isEnabled')['to'](_0x332d70,'isEnabled'),this['listenTo'](_0x995946,'execute',()=>_0x332d70['execute']()),_0x995946;}['_registerKeybindings'](){const _0x4c6294=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x4c6294,'Source\x20Editing\x20Enhanced')});const _0x31412e=_0x3c2bb5['isMac']||_0x3c2bb5['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x4c6294,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x4c6294,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x4c6294,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x4c6294,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x4c6294,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x4c6294,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x4c6294,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x31412e?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x4c6294,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x4c6294,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x4c6294,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x4c6294,'Select\x20line'),'keystroke':_0x31412e?'Ctrl!+L':'Alt+L'},{'label':H(_0x4c6294,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x31412e?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x4c6294,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x4c6294,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x4c6294,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x4c6294,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x4c6294,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x31412e?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x1a4f53{constructor(_0x40a5b6){super(_0x40a5b6),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x169380,_0x180188){const _0x4dd2f8=this['editor'],_0x543f96=_0x180188?.['rootName']??V(_0x4dd2f8);_0x4dd2f8['data']['set']({[_0x543f96]:_0x169380},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x42a3b9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x519d70){super(_0x519d70),_0x519d70['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 _0x51810b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x519a54;for(const _0x176ff2 in _0x51810b){const _0x425e80=_0x176ff2,_0x183e1a=_0x51810b[_0x425e80];if('sourceEditingEnhancedLicenseKeyValid'==_0x183e1a||'sourceEditingEnhancedLicenseKeyInvalid'==_0x183e1a||'sourceEditingEnhancedLicenseKeyExpired'==_0x183e1a||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x183e1a||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x183e1a||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x183e1a||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x183e1a){delete _0x51810b[_0x425e80],_0x519a54=_0x183e1a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x519a54&&_0x51810b['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x519a54&&_0x51810b['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x519a54&&_0x51810b['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x519a54&&_0x51810b['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x519a54&&_0x51810b['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x519a54&&_0x51810b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x18891c=this['editor'],_0x377da4=_0x18891c['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x377da4&&_0x18891c['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x213d27('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x377da4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3762e8=>_0x18891c['plugins']['has'](_0x3762e8))&&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.'),_0x18891c['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.0.1-alpha.0",
3
+ "version": "48.0.1-alpha.1",
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.0.1-alpha.0",
29
- "@ckeditor/ckeditor5-engine": "48.0.1-alpha.0",
30
- "@ckeditor/ckeditor5-icons": "48.0.1-alpha.0",
31
- "@ckeditor/ckeditor5-ui": "48.0.1-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "48.0.1-alpha.0",
28
+ "@ckeditor/ckeditor5-core": "48.0.1-alpha.1",
29
+ "@ckeditor/ckeditor5-engine": "48.0.1-alpha.1",
30
+ "@ckeditor/ckeditor5-icons": "48.0.1-alpha.1",
31
+ "@ckeditor/ckeditor5-ui": "48.0.1-alpha.1",
32
+ "@ckeditor/ckeditor5-utils": "48.0.1-alpha.1",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",