@ckeditor/ckeditor5-source-editing-enhanced 48.0.0-alpha.10 → 48.0.0-alpha.11

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 _0x53bcad,PendingActions as _0x3821c7,Plugin as _0x7d1f1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xf47587,formatHtml as _0x401eb2,env as _0x212de5,uid as _0x1873bb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x15767d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x280476,ButtonView as _0x5871d6,MenuBarMenuListItemButtonView as _0x5413c8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x59a8f5,crosshairCursor as _0x2305ae,drawSelection as _0x1a4beb,dropCursor as _0xc73a9d,lineNumbers as _0x5d4f80,highlightActiveLine as _0x4d6de2,highlightActiveLineGutter as _0x2fc73f,highlightSpecialChars as _0x24d593,rectangularSelection as _0x46feb2,keymap as _0x31b853}from'@codemirror/view';import{Compartment as _0x4cba46,Transaction as _0x825b51}from'@codemirror/state';import{bracketMatching as _0x4e7c5a,foldGutter as _0x49f0ff,indentOnInput as _0x14495b,syntaxHighlighting as _0x3e731d,defaultHighlightStyle as _0x271099,foldKeymap as _0x2731ee}from'@codemirror/language';import{toggleTabFocusMode as _0x200bf5,history as _0x204174,defaultKeymap as _0x630937,historyKeymap as _0x4dc5b0,indentLess as _0x2444c9,indentMore as _0x33af98,redo as _0x2702d5,undo as _0x237e8c}from'@codemirror/commands';import{autocompletion as _0x5b64aa,closeBrackets as _0xebaa46,closeBracketsKeymap as _0x14d6cf,completionKeymap as _0x26c82c}from'@codemirror/autocomplete';import{html as _0x18cfba}from'@codemirror/lang-html';import{markdown as _0x3f3160}from'@codemirror/lang-markdown';import{oneDark as _0x1575e8}from'@codemirror/theme-one-dark';function H(_0x220997,_0x2ce71b){const t=_0x220997['t'];switch(_0x2ce71b){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 _0x2ce71b;}}function V(_0x2eac27){const _0x5bdb4d=_0x2eac27['editing']['view']['document']['roots'],_0x480c01=_0x5bdb4d['length'];if(0x0===_0x480c01)throw new _0xf47587('source-editing-enhanced-editor-no-root',_0x2eac27);if(0x1===_0x480c01)return _0x5bdb4d['first']['rootName'];return Array['from'](_0x2eac27['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x4f3210){return J(_0x4f3210['replace'](/^[\n\s]*/g,''))?_0x4f3210['replace'](/\s+/g,''):_0x4f3210;}function J(_0x19024d){return _0x19024d['startsWith']('<');}function G(_0x269366){const _0x1f5dc4=[_0x59a8f5['lineWrapping'],_0x5b64aa(),_0x4e7c5a(),_0xebaa46(),_0x2305ae(),_0x1a4beb(),_0xc73a9d(),_0x5d4f80(),_0x49f0ff(),_0x4d6de2(),_0x2fc73f(),_0x24d593(),_0x204174(),_0x14495b(),_0x46feb2(),_0x3e731d(_0x271099,{'fallback':!0x0})],_0x469c01=new _0x4cba46();_0x1f5dc4['push'](_0x469c01['of'](_0x59a8f5['editable']['of'](!0x0))),'html'===_0x269366['syntaxLanguage']?_0x1f5dc4['push'](_0x18cfba()):_0x1f5dc4['push'](_0x3f3160());const _0x381f3b=function(_0x5a5074){if(_0x5a5074&&'default'!==_0x5a5074)return'dark'===_0x5a5074?_0x1575e8:_0x5a5074;return null;}(_0x269366['theme']);_0x381f3b&&_0x1f5dc4['push'](_0x381f3b),_0x1f5dc4['push'](_0x31b853['of']([..._0x14d6cf,..._0x630937,..._0x4dc5b0,..._0x2731ee,..._0x26c82c,{'key':'Tab','run':_0x33af98,'shift':_0x2444c9,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x2702d5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x2702d5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x237e8c,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x14c77a=new _0x59a8f5({'extensions':_0x1f5dc4,'parent':_0x269366['parent']});return _0x200bf5(_0x14c77a),{'focus':()=>{_0x14c77a['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x14c77a['focus']();},'getData':()=>_0x14c77a['state']['doc']['toString'](),'setData':_0xb407c2=>{_0x14c77a['dispatch']({'changes':{'from':0x0,'to':_0x14c77a['state']['doc']['length'],'insert':_0xb407c2},'annotations':_0x825b51['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4c4cb9=>{_0x14c77a['dispatch']({'effects':[_0x469c01['reconfigure'](_0x59a8f5['editable']['of'](!_0x4c4cb9))]});},'destroy':()=>{_0x14c77a['destroy']();},'instance':_0x14c77a};}class Q extends _0x280476{['_codeEditorApi']=null;['_options'];constructor(_0x18c7d6,_0x1c26c3){super(_0x18c7d6),this['_options']=_0x1c26c3,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',(_0x418468,_0x1bb897,_0x2cab0b)=>{this['setReadOnly'](_0x2cab0b);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x358ef5){this['_codeEditorApi']['setData'](_0x358ef5);}['setReadOnly'](_0x3127a3){this['_codeEditorApi']['setReadOnly'](_0x3127a3);}}const W='SourceEditingEnhancedMode';class X extends _0x53bcad{constructor(_0x28f7b5){super(_0x28f7b5),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x3821c7)['on']('change:hasAny',(_0x3c48a2,_0x667309,_0x28700b)=>{_0x28700b?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x2ecb6a=this['editor'];for(const _0x2ad11c of _0x2ecb6a['commands']['names']())['replaceSource','editSource']['includes'](_0x2ad11c)||_0x2ecb6a['commands']['get'](_0x2ad11c)['forceDisabled'](W);}['_enableCommands'](){const _0x4539c3=this['editor'];for(const _0x1d34b3 of _0x4539c3['commands']['commands']())_0x1d34b3['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2c1d2d=this['editor'],_0xb877e=_0x2c1d2d['locale'],_0x20b32b=_0x2c1d2d['plugins']['get']('Dialog'),_0x52842a=V(_0x2c1d2d),_0x2c34bb=_0x2c1d2d['data']['get']({'rootName':_0x52842a}),_0x21a7c2=J(_0x176424=_0x2c34bb)?_0x401eb2(_0x176424):_0x176424;var _0x176424;const _0x176d43=new Q(_0xb877e,{'syntaxLanguage':_0x2c1d2d['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2c1d2d['config']['get']('sourceEditingEnhanced.theme')});let _0x3dfc1a=!0x0;const _0x44b6d3=_0x5da9a8=>{if(!_0x3dfc1a)return;return Z(_0x176d43['getData']())!==Z(_0x21a7c2)?window['confirm'](H(_0xb877e,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5da9a8['stop']():void 0x0;};_0x20b32b['show']({'id':'sourceEditingEnhanced','title':H(_0xb877e,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x176d43,'actionButtons':[{'label':H(_0xb877e,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x20b32b['hide']();}},{'label':H(_0xb877e,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x3c4ea7=Z(_0x176d43['getData']())!==Z(_0x21a7c2);(_0x3c4ea7&&_0x2c1d2d['execute']('replaceSource',_0x176d43['getData']()),_0x3dfc1a=!0x1,_0x20b32b['hide'](),_0x3c4ea7&&'editables'in _0x2c1d2d['ui']['view'])&&_0x2c1d2d['ui']['view']['editables'][_0x52842a]['element']['focus']();},'onCreate':_0x403f2b=>{_0x403f2b['set']('isEnabled',!_0x2c1d2d['isReadOnly']),_0x403f2b['bind']('isEnabled')['to'](_0x2c1d2d,'isReadOnly',this,'isEnabled',(_0x191ae4,_0x21d8c2)=>!_0x191ae4&&_0x21d8c2);}}],'onHide':()=>{this['_enableCommands'](),_0x20b32b['off']('hide',_0x44b6d3),_0x176d43['destroy']();},'onShow':()=>{_0x176d43['bind']('isReadOnly')['to'](_0x2c1d2d,'isReadOnly',this,'isEnabled',(_0x38b2b4,_0xd13412)=>_0x38b2b4||!_0xd13412),_0x176d43['setData'](_0x21a7c2),_0x176d43['focus'](),_0x20b32b['on']('hide',_0x44b6d3,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x7d1f1b{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x3821c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2fd8c6=this['editor'],_0x4556fd=_0x2fd8c6['locale'],_0x531642=new X(_0x2fd8c6);_0x2fd8c6['commands']['add']('editSource',_0x531642),_0x2fd8c6['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3130e3=this['_createButton'](_0x5871d6,_0x531642);return _0x3130e3['set']({'label':H(_0x4556fd,'Source'),'icon':_0x15767d,'tooltip':H(_0x4556fd,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3130e3;}),_0x2fd8c6['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2395cf=this['_createButton'](_0x5413c8,_0x531642,!0x0);return _0x2395cf['set']({'label':H(_0x4556fd,'Edit\x20source\x20modal\x20label'),'icon':_0x15767d,'role':'menuitemcheckbox'}),_0x2395cf;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x16a6e4){const _0x5be26e=_0x3a10f9([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]),_0x25d05b=0x5dba9314,_0x318738=0x5dbd16ac^_0x25d05b,_0x2ca347=window[_0x3a10f9([0x44,0x61,0x74,0x65])][_0x3a10f9([0x6e,0x6f,0x77])](),_0x519f8a=_0x16a6e4[_0x3a10f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x392de1=new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bf265=>{_0x519f8a[_0x3a10f9([0x6f,0x6e,0x63,0x65])](_0x3a10f9([0x72,0x65,0x61,0x64,0x79]),_0x5bf265);}),_0x535753={[_0x3a10f9([0x6b,0x74,0x79])]:_0x3a10f9([0x45,0x43]),[_0x3a10f9([0x75,0x73,0x65])]:_0x3a10f9([0x73,0x69,0x67]),[_0x3a10f9([0x63,0x72,0x76])]:_0x3a10f9([0x50,0x2d,0x32,0x35,0x36]),[_0x3a10f9([0x78])]:_0x3a10f9([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]),[_0x3a10f9([0x79])]:_0x3a10f9([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]),[_0x3a10f9([0x61,0x6c,0x67])]:_0x3a10f9([0x45,0x53,0x32,0x35,0x36])},_0x45f61e=_0x519f8a[_0x3a10f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a10f9([0x67,0x65,0x74])](_0x3a10f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x227393(){let _0x5820e3,_0x26f8da=null,_0x3f5a1c=null;try{if(_0x45f61e==_0x3a10f9([0x47,0x50,0x4c]))return _0x3a10f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5820e3=_0x120692(),!_0x5820e3)return _0x3a10f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5820e3[_0x3a10f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f5a1c=_0x12bbd2(_0x5820e3[_0x3a10f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5820e3[_0x3a10f9([0x6a,0x74,0x69])])),await _0xabe7b8()?_0x23fbfb()?_0x4ededc()?_0x3a10f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39ed84()?(_0x5820e3[_0x3a10f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a10f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26f8da=_0x1d1000(_0x3a10f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1573b3()):_0x3a10f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a10f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a10f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a10f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ededc(){const _0x3c322a=[_0x3a10f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a10f9([0x74,0x72,0x69,0x61,0x6c])][_0x3a10f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5820e3[_0x3a10f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ca347/0x3e8:0xe10*_0x318738;return _0x5820e3[_0x3a10f9([0x65,0x78,0x70])]<_0x3c322a;}function _0x23fbfb(){const _0x17e07c=_0x5820e3[_0x3a10f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17e07c&&(!!_0x17e07c[_0x3a10f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a10f9([0x2a]))||!!_0x17e07c[_0x3a10f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a10f9([0x53,0x45,0x45])));}function _0x39ed84(){const _0x5642b4=_0x5820e3[_0x3a10f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5642b4||0x0==_0x5642b4[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f6a74}=new URL(window[_0x3a10f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5642b4[_0x3a10f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6a74))return!0x0;const _0x52eab0=_0x1f6a74[_0x3a10f9([0x73,0x70,0x6c,0x69,0x74])](_0x3a10f9([0x2e]));return _0x5642b4[_0x3a10f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c70c3=>_0x4c70c3[_0x3a10f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a10f9([0x2a])))[_0x3a10f9([0x6d,0x61,0x70])](_0x1b41df=>_0x1b41df[_0x3a10f9([0x73,0x70,0x6c,0x69,0x74])](_0x3a10f9([0x2e])))[_0x3a10f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3845fd=>_0x3845fd[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x52eab0[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a10f9([0x6d,0x61,0x70])](_0x1cedf3=>Array(_0x52eab0[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cedf3[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a10f9([0x66,0x69,0x6c,0x6c])](_0x1cedf3[0x0]===_0x3a10f9([0x2a])?_0x3a10f9([0x2a]):'')[_0x3a10f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cedf3))[_0x3a10f9([0x73,0x6f,0x6d,0x65])](_0x67c6bf=>_0x52eab0[_0x3a10f9([0x65,0x76,0x65,0x72,0x79])]((_0x4c75e8,_0x264e99)=>_0x67c6bf[_0x264e99]===_0x4c75e8||_0x67c6bf[_0x264e99]===_0x3a10f9([0x2a])));}function _0x1573b3(){return _0x26f8da&&_0x3f5a1c?new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2524a8,_0x1e1806)=>{_0x26f8da[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x2524a8,_0x1e1806),_0x3f5a1c[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x34d541=>{_0x34d541!=_0x3a10f9([0x56,0x61,0x6c,0x69,0x64])&&_0x2524a8(_0x34d541);},_0x1e1806);}):_0x26f8da||_0x3f5a1c||_0x3a10f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12bbd2(_0x18ba71,_0x344fec){return new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x200526=>{if(_0x43cab5())return _0x200526(_0x3a10f9([0x56,0x61,0x6c,0x69,0x64]));_0x353d7a(),_0x519f8a[_0x3a10f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a10f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ca827=!0x1;const _0x58c1da=_0x1873bb();function _0x584bd9(_0x2b11cb){return!!_0x2b11cb&&(typeof _0x2b11cb===_0x3a10f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b11cb===_0x3a10f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b11cb[_0x3a10f9([0x74,0x68,0x65,0x6e])]===_0x3a10f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b11cb[_0x3a10f9([0x63,0x61,0x74,0x63,0x68])]===_0x3a10f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc27c7f(_0x45d099){_0x1e2d84(_0x45d099)[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x29df13=>{if(!_0x29df13||_0x29df13[_0x3a10f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a10f9([0x6f,0x6b]))return _0x3a10f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x593a86(_0x2ddd4a(_0x58c1da+_0x344fec))!=_0x29df13[_0x3a10f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a10f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a10f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x47b35b=>(_0x1f090e(),_0x47b35b),()=>{const _0x418520=_0x1c2107();return null==_0x418520?(_0x1f090e(),_0x3a10f9([0x56,0x61,0x6c,0x69,0x64])):_0x3a10f9(_0x2ca347-_0x418520>(0x79b61714^_0x25d05b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x200526)[_0x3a10f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x200526(_0x3a10f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d3ee8=0x5d8c7d94^_0x25d05b;function _0x1f090e(){const _0x16a9d6=_0x3a10f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x593a86(_0x2ddd4a(_0x18ba71)),_0x33679c=_0x120852(_0x593a86(window[_0x3a10f9([0x4d,0x61,0x74,0x68])][_0x3a10f9([0x63,0x65,0x69,0x6c])](_0x2ca347/_0x5d3ee8)));window[_0x3a10f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a10f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16a9d6,_0x33679c);}function _0x1c2107(){const _0x131e76=_0x3a10f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x593a86(_0x2ddd4a(_0x18ba71)),_0x51ace4=window[_0x3a10f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a10f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131e76);return _0x51ace4?window[_0x3a10f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x120852(_0x51ace4),0x10)*_0x5d3ee8:null;}function _0x1e2d84(_0x166ad5){return new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x382e0b,_0x4cfd95)=>{_0x166ad5[_0x3a10f9([0x74,0x68,0x65,0x6e])](_0x382e0b,_0x4cfd95),window[_0x3a10f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cfd95,0x5dbb47d4^_0x25d05b);});}}_0x519f8a[_0x3a10f9([0x6f,0x6e])](_0x3a10f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e01e2,_0x40beb8)=>{if(_0x40beb8[0x0]!=_0x18ba71)return _0x200526(_0x3a10f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40beb8[0x1]={..._0x40beb8[0x1],[_0x3a10f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58c1da};},{[_0x3a10f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a10f9([0x68,0x69,0x67,0x68])}),_0x519f8a[_0x3a10f9([0x6f,0x6e])](_0x3a10f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x421045=>{_0x584bd9(_0x421045[_0x3a10f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ca827=!0x0,_0xc27c7f(_0x421045[_0x3a10f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a10f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a10f9([0x6c,0x6f,0x77])}),_0x392de1[_0x3a10f9([0x74,0x68,0x65,0x6e])](()=>{_0x5ca827||_0x200526(_0x3a10f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43cab5(){return _0x519f8a[_0x3a10f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a10f9([0x76,0x69,0x65,0x77])][_0x3a10f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a10f9([0x61,0x75,0x74,0x6f]);}function _0x353d7a(){_0x519f8a[_0x3a10f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a10f9([0x76,0x69,0x65,0x77])][_0x3a10f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a10f9([0x61,0x75,0x74,0x6f]);}}function _0x1d1000(_0x24985a){const _0x55c387=[new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92fcd=>setTimeout(_0x92fcd,0x5db3add8^_0x25d05b)),_0x392de1[_0x3a10f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176fdb=>{let _0x50fd37=0x0;_0x519f8a[_0x3a10f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a10f9([0x6f,0x6e])](_0x3a10f9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a252c,_0x187a7c)=>{_0x187a7c[0x0][_0x3a10f9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50fd37++,_0x50fd37==(0x5dba96fc^_0x25d05b)&&(_0x176fdb(),_0x1a252c[_0x3a10f9([0x6f,0x66,0x66])]());});}))];return window[_0x3a10f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a10f9([0x72,0x61,0x63,0x65])](_0x55c387)[_0x3a10f9([0x74,0x68,0x65,0x6e])](()=>_0x24985a);}async function _0x98107e(){await _0x392de1,_0x519f8a[_0x3a10f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a10f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378d3d,_0x519f8a[_0x3a10f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a10f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378d3d,_0x519f8a[_0x3a10f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a10f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fdabe(_0x8f57f5){const _0x584a77=_0x24f98c();_0x519f8a[_0x584a77]=_0x3a10f9([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])+_0x8f57f5,_0x8f57f5!=_0x3a10f9([0x56,0x61,0x6c,0x69,0x64])&&_0x98107e();}function _0x24f98c(){const _0x18fe21=window[_0x3a10f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a10f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a10f9([0x6e,0x6f,0x77])]())[_0x3a10f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a10f9([0x2e]),'');let _0x2fd02a=_0x3a10f9([0x4e]);for(let _0x5db3db=0x0;_0x5db3db<_0x18fe21[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5db3db+=0x2){let _0x26ec49=window[_0x3a10f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18fe21[_0x3a10f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5db3db,_0x5db3db+0x2));_0x26ec49>=_0x5be26e[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26ec49-=_0x5be26e[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fd02a+=_0x5be26e[_0x26ec49];}return _0x2fd02a;}function _0x120692(){const _0x14e00f=_0x45f61e[_0x3a10f9([0x73,0x70,0x6c,0x69,0x74])](_0x3a10f9([0x2e]));if(0x3!=_0x14e00f[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x311de3(_0x14e00f[0x1]);function _0x311de3(_0xfb2dda){const _0xe79a1f=_0x386b93(_0xfb2dda);return _0xe79a1f&&_0x238e85()?_0xe79a1f:null;function _0x238e85(){const _0x5dcddf=_0xe79a1f[_0x3a10f9([0x6a,0x74,0x69])],_0x177998=window[_0x3a10f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dcddf[_0x3a10f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dcddf[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe0d595={..._0xe79a1f,[_0x3a10f9([0x6a,0x74,0x69])]:_0x5dcddf[_0x3a10f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dcddf[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe0d595[_0x3a10f9([0x76,0x63])],_0x2ddd4a(_0xe0d595)==_0x177998;}}}async function _0xabe7b8(){let _0x4e6735=!0x0;try{const _0x5c4770=_0x45f61e[_0x3a10f9([0x73,0x70,0x6c,0x69,0x74])](_0x3a10f9([0x2e])),[_0x42ae97,_0x4fd61f,_0x3cd605]=_0x5c4770;return _0x236063(_0x42ae97),await _0xc5bfe9(_0x42ae97,_0x4fd61f,_0x3cd605),_0x4e6735;}catch{return!0x1;}function _0x236063(_0x3d69ff){const _0x59703b=_0x386b93(_0x3d69ff);_0x59703b&&_0x59703b[_0x3a10f9([0x61,0x6c,0x67])]==_0x3a10f9([0x45,0x53,0x32,0x35,0x36])||(_0x4e6735=!0x1);}async function _0xc5bfe9(_0xde7884,_0x4de46b,_0x46ef01){const _0x52cf1e=window[_0x3a10f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a10f9([0x66,0x72,0x6f,0x6d])](_0x38018e(_0x46ef01),_0x2d8f7e=>_0x2d8f7e[_0x3a10f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb323d4=new window[(_0x3a10f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a10f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xde7884+_0x3a10f9([0x2e])+_0x4de46b),_0x412c4f=window[_0x3a10f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a10f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x412c4f)return;const _0xa0b024=await _0x412c4f[_0x3a10f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a10f9([0x6a,0x77,0x6b]),_0x535753,{[_0x3a10f9([0x6e,0x61,0x6d,0x65])]:_0x3a10f9([0x45,0x43,0x44,0x53,0x41]),[_0x3a10f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a10f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a10f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x412c4f[_0x3a10f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a10f9([0x6e,0x61,0x6d,0x65])]:_0x3a10f9([0x45,0x43,0x44,0x53,0x41]),[_0x3a10f9([0x68,0x61,0x73,0x68])]:{[_0x3a10f9([0x6e,0x61,0x6d,0x65])]:_0x3a10f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa0b024,_0x52cf1e,_0xb323d4)||(_0x4e6735=!0x1);}}function _0x386b93(_0x3f71fc){return _0x3f71fc[_0x3a10f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a10f9([0x65,0x79]))?JSON[_0x3a10f9([0x70,0x61,0x72,0x73,0x65])](_0x38018e(_0x3f71fc)):null;}function _0x38018e(_0x4c09b7){return window[_0x3a10f9([0x61,0x74,0x6f,0x62])](_0x4c09b7[_0x3a10f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a10f9([0x2b]))[_0x3a10f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a10f9([0x2f])));}function _0x2ddd4a(_0x4e231b){let _0x13b934=0x1505;function _0x3bb0a6(_0x1f3e57){for(let _0x426804=0x0;_0x426804<_0x1f3e57[_0x3a10f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x426804++){const _0x528b7e=_0x1f3e57[_0x3a10f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x426804);_0x13b934=(_0x13b934<<0x5)+_0x13b934+_0x528b7e,_0x13b934&=_0x13b934;}}function _0x3012fc(_0x2ab5d1){Array[_0x3a10f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ab5d1)?_0x2ab5d1[_0x3a10f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3012fc):_0x2ab5d1&&typeof _0x2ab5d1==_0x3a10f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a10f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ab5d1)[_0x3a10f9([0x73,0x6f,0x72,0x74])]()[_0x3a10f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x441575,_0x2b21aa])=>{_0x3bb0a6(_0x441575),_0x3012fc(_0x2b21aa);}):_0x3bb0a6(window[_0x3a10f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ab5d1));}return _0x3012fc(_0x4e231b),_0x13b934>>>0x0;}function _0x593a86(_0xfbf5a8){return _0xfbf5a8[_0x3a10f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a10f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a10f9([0x30]));}function _0x120852(_0x12f799){return _0x12f799[_0x3a10f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a10f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a10f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x378d3d(){}function _0x3a10f9(_0x4ed224){return _0x4ed224['map'](_0x4daefa=>String['fromCharCode'](_0x4daefa))['join']('');}_0x2fdabe(await _0x227393());}(this);}['_createButton'](_0x26ca34,_0x28cfb3,_0x28ec63=!0x1){const _0x342d75=new _0x26ca34(this['editor']['locale']);return _0x342d75['set']({'withText':_0x28ec63,'isToggleable':!0x1}),_0x342d75['bind']('isEnabled')['to'](_0x28cfb3,'isEnabled'),this['listenTo'](_0x342d75,'execute',()=>_0x28cfb3['execute']()),_0x342d75;}['_registerKeybindings'](){const _0x2c7e23=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x2c7e23,'Source\x20Editing\x20Enhanced')});const _0x18644b=_0x212de5['isMac']||_0x212de5['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x2c7e23,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x2c7e23,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x2c7e23,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x2c7e23,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x2c7e23,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x2c7e23,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x2c7e23,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x18644b?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x2c7e23,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x2c7e23,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x2c7e23,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x2c7e23,'Select\x20line'),'keystroke':_0x18644b?'Ctrl!+L':'Alt+L'},{'label':H(_0x2c7e23,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x18644b?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x2c7e23,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x2c7e23,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x2c7e23,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x2c7e23,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x2c7e23,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x18644b?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x53bcad{constructor(_0x16b935){super(_0x16b935),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x5d3ff0,_0x342fa4){const _0x32d663=this['editor'],_0x2b3248=_0x342fa4?.['rootName']??V(_0x32d663);_0x32d663['data']['set']({[_0x2b3248]:_0x5d3ff0},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x7d1f1b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x1bef59){super(_0x1bef59),_0x1bef59['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 _0x5a78da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b6a91;for(const _0x3d64e0 in _0x5a78da){const _0x380737=_0x3d64e0,_0x380697=_0x5a78da[_0x380737];if('sourceEditingEnhancedLicenseKeyValid'==_0x380697||'sourceEditingEnhancedLicenseKeyInvalid'==_0x380697||'sourceEditingEnhancedLicenseKeyExpired'==_0x380697||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x380697||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x380697||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x380697||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x380697){delete _0x5a78da[_0x380737],_0x1b6a91=_0x380697,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1b6a91&&_0x5a78da['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1b6a91&&_0x5a78da['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1b6a91&&_0x5a78da['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1b6a91&&_0x5a78da['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1b6a91&&_0x5a78da['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1b6a91&&_0x5a78da['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x783029=this['editor'],_0x2ee07d=_0x783029['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x2ee07d&&_0x783029['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0xf47587('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x2ee07d&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x2b8b87=>_0x783029['plugins']['has'](_0x2b8b87))&&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.'),_0x783029['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 _0x3977d4,PendingActions as _0x4409c7,Plugin as _0x595eaa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x8aa593,formatHtml as _0x39c289,env as _0x4ff084,uid as _0x94a60c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xcdaf33}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3e9022,ButtonView as _0x6adcef,MenuBarMenuListItemButtonView as _0x1f28c4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x3f815f,crosshairCursor as _0x1fb54a,drawSelection as _0x233c87,dropCursor as _0x32bc03,lineNumbers as _0x91fffd,highlightActiveLine as _0x279cb1,highlightActiveLineGutter as _0x52a976,highlightSpecialChars as _0x38fb41,rectangularSelection as _0x954e93,keymap as _0x4f9f4b}from'@codemirror/view';import{Compartment as _0x43e8b5,Transaction as _0x4704da}from'@codemirror/state';import{bracketMatching as _0x1f9272,foldGutter as _0x1737c7,indentOnInput as _0xf31e0,syntaxHighlighting as _0x1291f1,defaultHighlightStyle as _0x21e710,foldKeymap as _0x5c6fa0}from'@codemirror/language';import{toggleTabFocusMode as _0x3dc00c,history as _0x455793,defaultKeymap as _0x40d7bb,historyKeymap as _0x463070,indentLess as _0x8c0d10,indentMore as _0x3cc86a,redo as _0x157db3,undo as _0x2fe695}from'@codemirror/commands';import{autocompletion as _0x2f2b35,closeBrackets as _0x27df5c,closeBracketsKeymap as _0x33e603,completionKeymap as _0x3692a2}from'@codemirror/autocomplete';import{html as _0x1763e9}from'@codemirror/lang-html';import{markdown as _0x40f3a8}from'@codemirror/lang-markdown';import{oneDark as _0x45b4b6}from'@codemirror/theme-one-dark';function H(_0x1d38c2,_0x1dc943){const t=_0x1d38c2['t'];switch(_0x1dc943){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 _0x1dc943;}}function V(_0x4be0cf){const _0x3cf9af=_0x4be0cf['editing']['view']['document']['roots'],_0x1b4ebc=_0x3cf9af['length'];if(0x0===_0x1b4ebc)throw new _0x8aa593('source-editing-enhanced-editor-no-root',_0x4be0cf);if(0x1===_0x1b4ebc)return _0x3cf9af['first']['rootName'];return Array['from'](_0x4be0cf['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x578a6d){return J(_0x578a6d['replace'](/^[\n\s]*/g,''))?_0x578a6d['replace'](/\s+/g,''):_0x578a6d;}function J(_0x2922c1){return _0x2922c1['startsWith']('<');}function G(_0x1d646e){const _0xeefa36=[_0x3f815f['lineWrapping'],_0x2f2b35(),_0x1f9272(),_0x27df5c(),_0x1fb54a(),_0x233c87(),_0x32bc03(),_0x91fffd(),_0x1737c7(),_0x279cb1(),_0x52a976(),_0x38fb41(),_0x455793(),_0xf31e0(),_0x954e93(),_0x1291f1(_0x21e710,{'fallback':!0x0})],_0x17a90e=new _0x43e8b5();_0xeefa36['push'](_0x17a90e['of'](_0x3f815f['editable']['of'](!0x0))),'html'===_0x1d646e['syntaxLanguage']?_0xeefa36['push'](_0x1763e9()):_0xeefa36['push'](_0x40f3a8());const _0x3152e6=function(_0x1b4bc5){if(_0x1b4bc5&&'default'!==_0x1b4bc5)return'dark'===_0x1b4bc5?_0x45b4b6:_0x1b4bc5;return null;}(_0x1d646e['theme']);_0x3152e6&&_0xeefa36['push'](_0x3152e6),_0xeefa36['push'](_0x4f9f4b['of']([..._0x33e603,..._0x40d7bb,..._0x463070,..._0x5c6fa0,..._0x3692a2,{'key':'Tab','run':_0x3cc86a,'shift':_0x8c0d10,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x157db3,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x157db3,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x2fe695,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x2f9f37=new _0x3f815f({'extensions':_0xeefa36,'parent':_0x1d646e['parent']});return _0x3dc00c(_0x2f9f37),{'focus':()=>{_0x2f9f37['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x2f9f37['focus']();},'getData':()=>_0x2f9f37['state']['doc']['toString'](),'setData':_0x46818a=>{_0x2f9f37['dispatch']({'changes':{'from':0x0,'to':_0x2f9f37['state']['doc']['length'],'insert':_0x46818a},'annotations':_0x4704da['addToHistory']['of'](!0x1)});},'setReadOnly':_0xf9b635=>{_0x2f9f37['dispatch']({'effects':[_0x17a90e['reconfigure'](_0x3f815f['editable']['of'](!_0xf9b635))]});},'destroy':()=>{_0x2f9f37['destroy']();},'instance':_0x2f9f37};}class Q extends _0x3e9022{['_codeEditorApi']=null;['_options'];constructor(_0x1cabc4,_0x30f57a){super(_0x1cabc4),this['_options']=_0x30f57a,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',(_0x49ea46,_0x319415,_0x376331)=>{this['setReadOnly'](_0x376331);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x7980dc){this['_codeEditorApi']['setData'](_0x7980dc);}['setReadOnly'](_0x396072){this['_codeEditorApi']['setReadOnly'](_0x396072);}}const W='SourceEditingEnhancedMode';class X extends _0x3977d4{constructor(_0x303f2c){super(_0x303f2c),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x4409c7)['on']('change:hasAny',(_0x497970,_0x488b93,_0x530421)=>{_0x530421?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4807e9=this['editor'];for(const _0x19c486 of _0x4807e9['commands']['names']())['replaceSource','editSource']['includes'](_0x19c486)||_0x4807e9['commands']['get'](_0x19c486)['forceDisabled'](W);}['_enableCommands'](){const _0x257e31=this['editor'];for(const _0x34144a of _0x257e31['commands']['commands']())_0x34144a['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ec333=this['editor'],_0x5180d7=_0x1ec333['locale'],_0x332120=_0x1ec333['plugins']['get']('Dialog'),_0x26a8a8=V(_0x1ec333),_0x339a70=_0x1ec333['data']['get']({'rootName':_0x26a8a8}),_0x379605=J(_0x13fdfa=_0x339a70)?_0x39c289(_0x13fdfa):_0x13fdfa;var _0x13fdfa;const _0x18e8b5=new Q(_0x5180d7,{'syntaxLanguage':_0x1ec333['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1ec333['config']['get']('sourceEditingEnhanced.theme')});let _0x48e0b4=!0x0;const _0x74fc9c=_0x16f57f=>{if(!_0x48e0b4)return;return Z(_0x18e8b5['getData']())!==Z(_0x379605)?window['confirm'](H(_0x5180d7,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x16f57f['stop']():void 0x0;};_0x332120['show']({'id':'sourceEditingEnhanced','title':H(_0x5180d7,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x18e8b5,'actionButtons':[{'label':H(_0x5180d7,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x332120['hide']();}},{'label':H(_0x5180d7,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x46e738=Z(_0x18e8b5['getData']())!==Z(_0x379605);(_0x46e738&&_0x1ec333['execute']('replaceSource',_0x18e8b5['getData']()),_0x48e0b4=!0x1,_0x332120['hide'](),_0x46e738&&'editables'in _0x1ec333['ui']['view'])&&_0x1ec333['ui']['view']['editables'][_0x26a8a8]['element']['focus']();},'onCreate':_0x460918=>{_0x460918['set']('isEnabled',!_0x1ec333['isReadOnly']),_0x460918['bind']('isEnabled')['to'](_0x1ec333,'isReadOnly',this,'isEnabled',(_0x47480b,_0x157272)=>!_0x47480b&&_0x157272);}}],'onHide':()=>{this['_enableCommands'](),_0x332120['off']('hide',_0x74fc9c),_0x18e8b5['destroy']();},'onShow':()=>{_0x18e8b5['bind']('isReadOnly')['to'](_0x1ec333,'isReadOnly',this,'isEnabled',(_0x12a26e,_0xdad9fe)=>_0x12a26e||!_0xdad9fe),_0x18e8b5['setData'](_0x379605),_0x18e8b5['focus'](),_0x332120['on']('hide',_0x74fc9c,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x595eaa{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x4409c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b9ff9=this['editor'],_0x4fa679=_0x2b9ff9['locale'],_0x98aa66=new X(_0x2b9ff9);_0x2b9ff9['commands']['add']('editSource',_0x98aa66),_0x2b9ff9['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x40848f=this['_createButton'](_0x6adcef,_0x98aa66);return _0x40848f['set']({'label':H(_0x4fa679,'Source'),'icon':_0xcdaf33,'tooltip':H(_0x4fa679,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x40848f;}),_0x2b9ff9['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x4d1005=this['_createButton'](_0x1f28c4,_0x98aa66,!0x0);return _0x4d1005['set']({'label':H(_0x4fa679,'Edit\x20source\x20modal\x20label'),'icon':_0xcdaf33,'role':'menuitemcheckbox'}),_0x4d1005;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x56e351){const _0x40daf8=_0x4980da([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]),_0x34d09f=0x5dba9314,_0x32256c=0x5dbd16c4^_0x34d09f,_0x3ad347=window[_0x4980da([0x44,0x61,0x74,0x65])][_0x4980da([0x6e,0x6f,0x77])](),_0x3ad240=_0x56e351[_0x4980da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54fde4=new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ccca2=>{_0x3ad240[_0x4980da([0x6f,0x6e,0x63,0x65])](_0x4980da([0x72,0x65,0x61,0x64,0x79]),_0x1ccca2);}),_0x1cea97={[_0x4980da([0x6b,0x74,0x79])]:_0x4980da([0x45,0x43]),[_0x4980da([0x75,0x73,0x65])]:_0x4980da([0x73,0x69,0x67]),[_0x4980da([0x63,0x72,0x76])]:_0x4980da([0x50,0x2d,0x32,0x35,0x36]),[_0x4980da([0x78])]:_0x4980da([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]),[_0x4980da([0x79])]:_0x4980da([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]),[_0x4980da([0x61,0x6c,0x67])]:_0x4980da([0x45,0x53,0x32,0x35,0x36])},_0x30803f=_0x3ad240[_0x4980da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4980da([0x67,0x65,0x74])](_0x4980da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10e1eb(){let _0x30b4b5,_0x2955bf=null,_0xc39313=null;try{if(_0x30803f==_0x4980da([0x47,0x50,0x4c]))return _0x4980da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30b4b5=_0x2e7cd5(),!_0x30b4b5)return _0x4980da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30b4b5[_0x4980da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc39313=_0x25437e(_0x30b4b5[_0x4980da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30b4b5[_0x4980da([0x6a,0x74,0x69])])),await _0x392e37()?_0x45cc2a()?_0x1deb2c()?_0x4980da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb703a9()?(_0x30b4b5[_0x4980da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4980da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2955bf=_0x418d49(_0x4980da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf70ad4()):_0x4980da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4980da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4980da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4980da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1deb2c(){const _0xe58e00=[_0x4980da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4980da([0x74,0x72,0x69,0x61,0x6c])][_0x4980da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b4b5[_0x4980da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ad347/0x3e8:0xe10*_0x32256c;return _0x30b4b5[_0x4980da([0x65,0x78,0x70])]<_0xe58e00;}function _0x45cc2a(){const _0x169170=_0x30b4b5[_0x4980da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x169170&&(!!_0x169170[_0x4980da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4980da([0x2a]))||!!_0x169170[_0x4980da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4980da([0x53,0x45,0x45])));}function _0xb703a9(){const _0x3f59c6=_0x30b4b5[_0x4980da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f59c6||0x0==_0x3f59c6[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e4025}=new URL(window[_0x4980da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f59c6[_0x4980da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e4025))return!0x0;const _0x2945e8=_0x4e4025[_0x4980da([0x73,0x70,0x6c,0x69,0x74])](_0x4980da([0x2e]));return _0x3f59c6[_0x4980da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cc39e=>_0x4cc39e[_0x4980da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4980da([0x2a])))[_0x4980da([0x6d,0x61,0x70])](_0x503151=>_0x503151[_0x4980da([0x73,0x70,0x6c,0x69,0x74])](_0x4980da([0x2e])))[_0x4980da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d23b1=>_0x5d23b1[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2945e8[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4980da([0x6d,0x61,0x70])](_0x27d9f8=>Array(_0x2945e8[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27d9f8[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4980da([0x66,0x69,0x6c,0x6c])](_0x27d9f8[0x0]===_0x4980da([0x2a])?_0x4980da([0x2a]):'')[_0x4980da([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27d9f8))[_0x4980da([0x73,0x6f,0x6d,0x65])](_0x20440b=>_0x2945e8[_0x4980da([0x65,0x76,0x65,0x72,0x79])]((_0x5683a3,_0x42923c)=>_0x20440b[_0x42923c]===_0x5683a3||_0x20440b[_0x42923c]===_0x4980da([0x2a])));}function _0xf70ad4(){return _0x2955bf&&_0xc39313?new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b9e39,_0x64b4c3)=>{_0x2955bf[_0x4980da([0x74,0x68,0x65,0x6e])](_0x3b9e39,_0x64b4c3),_0xc39313[_0x4980da([0x74,0x68,0x65,0x6e])](_0x4b8a1e=>{_0x4b8a1e!=_0x4980da([0x56,0x61,0x6c,0x69,0x64])&&_0x3b9e39(_0x4b8a1e);},_0x64b4c3);}):_0x2955bf||_0xc39313||_0x4980da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25437e(_0x2f884b,_0x32eabd){return new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x238ee9=>{if(_0x18b3f())return _0x238ee9(_0x4980da([0x56,0x61,0x6c,0x69,0x64]));_0x1d9298(),_0x3ad240[_0x4980da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4980da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d9a27=!0x1;const _0x22f092=_0x94a60c();function _0x33bf08(_0x49e4fc){return!!_0x49e4fc&&(typeof _0x49e4fc===_0x4980da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49e4fc===_0x4980da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49e4fc[_0x4980da([0x74,0x68,0x65,0x6e])]===_0x4980da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49e4fc[_0x4980da([0x63,0x61,0x74,0x63,0x68])]===_0x4980da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3dc5b8(_0x50ebff){_0x3accd2(_0x50ebff)[_0x4980da([0x74,0x68,0x65,0x6e])](_0x3e36a3=>{if(!_0x3e36a3||_0x3e36a3[_0x4980da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4980da([0x6f,0x6b]))return _0x4980da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4afca7(_0x1da866(_0x22f092+_0x32eabd))!=_0x3e36a3[_0x4980da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4980da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4980da([0x56,0x61,0x6c,0x69,0x64]);})[_0x4980da([0x74,0x68,0x65,0x6e])](_0x8a3296=>(_0x55bc8c(),_0x8a3296),()=>{const _0x3fd21d=_0x42ebef();return null==_0x3fd21d?(_0x55bc8c(),_0x4980da([0x56,0x61,0x6c,0x69,0x64])):_0x4980da(_0x3ad347-_0x3fd21d>(0x79b61714^_0x34d09f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4980da([0x74,0x68,0x65,0x6e])](_0x238ee9)[_0x4980da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x238ee9(_0x4980da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x520f26=0x5d8c7d94^_0x34d09f;function _0x55bc8c(){const _0x50b670=_0x4980da([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afca7(_0x1da866(_0x2f884b)),_0x21a115=_0x9d82c5(_0x4afca7(window[_0x4980da([0x4d,0x61,0x74,0x68])][_0x4980da([0x63,0x65,0x69,0x6c])](_0x3ad347/_0x520f26)));window[_0x4980da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4980da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50b670,_0x21a115);}function _0x42ebef(){const _0x202361=_0x4980da([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afca7(_0x1da866(_0x2f884b)),_0xccd042=window[_0x4980da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4980da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x202361);return _0xccd042?window[_0x4980da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9d82c5(_0xccd042),0x10)*_0x520f26:null;}function _0x3accd2(_0x27c63c){return new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e9f17,_0x3dd6cf)=>{_0x27c63c[_0x4980da([0x74,0x68,0x65,0x6e])](_0x4e9f17,_0x3dd6cf),window[_0x4980da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dd6cf,0x5dbb47d4^_0x34d09f);});}}_0x3ad240[_0x4980da([0x6f,0x6e])](_0x4980da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x594261,_0x27552c)=>{if(_0x27552c[0x0]!=_0x2f884b)return _0x238ee9(_0x4980da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27552c[0x1]={..._0x27552c[0x1],[_0x4980da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22f092};},{[_0x4980da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4980da([0x68,0x69,0x67,0x68])}),_0x3ad240[_0x4980da([0x6f,0x6e])](_0x4980da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15097e=>{_0x33bf08(_0x15097e[_0x4980da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d9a27=!0x0,_0x3dc5b8(_0x15097e[_0x4980da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4980da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4980da([0x6c,0x6f,0x77])}),_0x54fde4[_0x4980da([0x74,0x68,0x65,0x6e])](()=>{_0x2d9a27||_0x238ee9(_0x4980da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18b3f(){return _0x3ad240[_0x4980da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4980da([0x76,0x69,0x65,0x77])][_0x4980da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4980da([0x61,0x75,0x74,0x6f]);}function _0x1d9298(){_0x3ad240[_0x4980da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4980da([0x76,0x69,0x65,0x77])][_0x4980da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4980da([0x61,0x75,0x74,0x6f]);}}function _0x418d49(_0x1fc99b){const _0x4af463=[new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c6675=>setTimeout(_0x7c6675,0x5db3add8^_0x34d09f)),_0x54fde4[_0x4980da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee9b1=>{let _0x44d513=0x0;_0x3ad240[_0x4980da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4980da([0x6f,0x6e])](_0x4980da([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55f60d,_0x1ce604)=>{_0x1ce604[0x0][_0x4980da([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44d513++,_0x44d513==(0x5dba96fc^_0x34d09f)&&(_0x1ee9b1(),_0x55f60d[_0x4980da([0x6f,0x66,0x66])]());});}))];return window[_0x4980da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4980da([0x72,0x61,0x63,0x65])](_0x4af463)[_0x4980da([0x74,0x68,0x65,0x6e])](()=>_0x1fc99b);}async function _0x15a2e0(){await _0x54fde4,_0x3ad240[_0x4980da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4980da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x419a99,_0x3ad240[_0x4980da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4980da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x419a99,_0x3ad240[_0x4980da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4980da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d86df(_0x3afafd){const _0x2828d7=_0xcf0043();_0x3ad240[_0x2828d7]=_0x4980da([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])+_0x3afafd,_0x3afafd!=_0x4980da([0x56,0x61,0x6c,0x69,0x64])&&_0x15a2e0();}function _0xcf0043(){const _0x54103b=window[_0x4980da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4980da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4980da([0x6e,0x6f,0x77])]())[_0x4980da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4980da([0x2e]),'');let _0x5de689=_0x4980da([0x4e]);for(let _0x26a2d0=0x0;_0x26a2d0<_0x54103b[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26a2d0+=0x2){let _0x342fed=window[_0x4980da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54103b[_0x4980da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26a2d0,_0x26a2d0+0x2));_0x342fed>=_0x40daf8[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x342fed-=_0x40daf8[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5de689+=_0x40daf8[_0x342fed];}return _0x5de689;}function _0x2e7cd5(){const _0x30d773=_0x30803f[_0x4980da([0x73,0x70,0x6c,0x69,0x74])](_0x4980da([0x2e]));if(0x3!=_0x30d773[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x457f64(_0x30d773[0x1]);function _0x457f64(_0x2c4225){const _0xa1aafd=_0x55d14e(_0x2c4225);return _0xa1aafd&&_0x17e88()?_0xa1aafd:null;function _0x17e88(){const _0x18e22d=_0xa1aafd[_0x4980da([0x6a,0x74,0x69])],_0x47ce6d=window[_0x4980da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e22d[_0x4980da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18e22d[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38416f={..._0xa1aafd,[_0x4980da([0x6a,0x74,0x69])]:_0x18e22d[_0x4980da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18e22d[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38416f[_0x4980da([0x76,0x63])],_0x1da866(_0x38416f)==_0x47ce6d;}}}async function _0x392e37(){let _0x16d20a=!0x0;try{const _0x422114=_0x30803f[_0x4980da([0x73,0x70,0x6c,0x69,0x74])](_0x4980da([0x2e])),[_0xcf845,_0x340cd2,_0x474e53]=_0x422114;return _0xc1726d(_0xcf845),await _0x158da5(_0xcf845,_0x340cd2,_0x474e53),_0x16d20a;}catch{return!0x1;}function _0xc1726d(_0x30ab4e){const _0x328f96=_0x55d14e(_0x30ab4e);_0x328f96&&_0x328f96[_0x4980da([0x61,0x6c,0x67])]==_0x4980da([0x45,0x53,0x32,0x35,0x36])||(_0x16d20a=!0x1);}async function _0x158da5(_0x32a28b,_0x3cd8bb,_0x4617c1){const _0x501c46=window[_0x4980da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4980da([0x66,0x72,0x6f,0x6d])](_0x5ddd68(_0x4617c1),_0x24945f=>_0x24945f[_0x4980da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x494b0d=new window[(_0x4980da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4980da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32a28b+_0x4980da([0x2e])+_0x3cd8bb),_0x5e51a7=window[_0x4980da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4980da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e51a7)return;const _0x22118c=await _0x5e51a7[_0x4980da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4980da([0x6a,0x77,0x6b]),_0x1cea97,{[_0x4980da([0x6e,0x61,0x6d,0x65])]:_0x4980da([0x45,0x43,0x44,0x53,0x41]),[_0x4980da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4980da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4980da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e51a7[_0x4980da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4980da([0x6e,0x61,0x6d,0x65])]:_0x4980da([0x45,0x43,0x44,0x53,0x41]),[_0x4980da([0x68,0x61,0x73,0x68])]:{[_0x4980da([0x6e,0x61,0x6d,0x65])]:_0x4980da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22118c,_0x501c46,_0x494b0d)||(_0x16d20a=!0x1);}}function _0x55d14e(_0x117380){return _0x117380[_0x4980da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4980da([0x65,0x79]))?JSON[_0x4980da([0x70,0x61,0x72,0x73,0x65])](_0x5ddd68(_0x117380)):null;}function _0x5ddd68(_0x1ae4b9){return window[_0x4980da([0x61,0x74,0x6f,0x62])](_0x1ae4b9[_0x4980da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4980da([0x2b]))[_0x4980da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4980da([0x2f])));}function _0x1da866(_0x40c2bb){let _0x1685f5=0x1505;function _0x562210(_0x46692d){for(let _0x33c073=0x0;_0x33c073<_0x46692d[_0x4980da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33c073++){const _0x31791f=_0x46692d[_0x4980da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33c073);_0x1685f5=(_0x1685f5<<0x5)+_0x1685f5+_0x31791f,_0x1685f5&=_0x1685f5;}}function _0x17b2a9(_0xb7c2b3){Array[_0x4980da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb7c2b3)?_0xb7c2b3[_0x4980da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17b2a9):_0xb7c2b3&&typeof _0xb7c2b3==_0x4980da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4980da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb7c2b3)[_0x4980da([0x73,0x6f,0x72,0x74])]()[_0x4980da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x515a55,_0x5047c9])=>{_0x562210(_0x515a55),_0x17b2a9(_0x5047c9);}):_0x562210(window[_0x4980da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb7c2b3));}return _0x17b2a9(_0x40c2bb),_0x1685f5>>>0x0;}function _0x4afca7(_0x2226ad){return _0x2226ad[_0x4980da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4980da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4980da([0x30]));}function _0x9d82c5(_0x399c14){return _0x399c14[_0x4980da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4980da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4980da([0x6a,0x6f,0x69,0x6e])]('');}function _0x419a99(){}function _0x4980da(_0x1f96c9){return _0x1f96c9['map'](_0x52023d=>String['fromCharCode'](_0x52023d))['join']('');}_0x1d86df(await _0x10e1eb());}(this);}['_createButton'](_0x3bcbde,_0x421193,_0x37c2dc=!0x1){const _0x5dac93=new _0x3bcbde(this['editor']['locale']);return _0x5dac93['set']({'withText':_0x37c2dc,'isToggleable':!0x1}),_0x5dac93['bind']('isEnabled')['to'](_0x421193,'isEnabled'),this['listenTo'](_0x5dac93,'execute',()=>_0x421193['execute']()),_0x5dac93;}['_registerKeybindings'](){const _0x2e3f20=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x2e3f20,'Source\x20Editing\x20Enhanced')});const _0x2976d8=_0x4ff084['isMac']||_0x4ff084['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x2e3f20,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x2e3f20,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x2e3f20,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x2e3f20,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x2e3f20,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x2e3f20,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x2e3f20,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2976d8?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x2e3f20,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x2e3f20,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x2e3f20,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x2e3f20,'Select\x20line'),'keystroke':_0x2976d8?'Ctrl!+L':'Alt+L'},{'label':H(_0x2e3f20,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2976d8?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x2e3f20,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x2e3f20,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x2e3f20,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x2e3f20,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x2e3f20,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2976d8?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x3977d4{constructor(_0x2167ab){super(_0x2167ab),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x9a8d81,_0x4c2786){const _0x231de2=this['editor'],_0x50157a=_0x4c2786?.['rootName']??V(_0x231de2);_0x231de2['data']['set']({[_0x50157a]:_0x9a8d81},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x595eaa{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x12203f){super(_0x12203f),_0x12203f['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 _0x36e238=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x171a04;for(const _0x2f84fd in _0x36e238){const _0x5bedbb=_0x2f84fd,_0x312479=_0x36e238[_0x5bedbb];if('sourceEditingEnhancedLicenseKeyValid'==_0x312479||'sourceEditingEnhancedLicenseKeyInvalid'==_0x312479||'sourceEditingEnhancedLicenseKeyExpired'==_0x312479||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x312479||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x312479||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x312479||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x312479){delete _0x36e238[_0x5bedbb],_0x171a04=_0x312479,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x171a04&&_0x36e238['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x171a04&&_0x36e238['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x171a04&&_0x36e238['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x171a04&&_0x36e238['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x171a04&&_0x36e238['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x171a04&&_0x36e238['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x18d970=this['editor'],_0x11c4f4=_0x18d970['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x11c4f4&&_0x18d970['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x8aa593('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x11c4f4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3fc4b4=>_0x18d970['plugins']['has'](_0x3fc4b4))&&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.'),_0x18d970['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.0-alpha.10",
3
+ "version": "48.0.0-alpha.11",
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.0-alpha.10",
29
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.10",
31
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.10",
32
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.10",
28
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.11",
29
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.11",
30
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.11",
31
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.11",
32
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.11",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",