@ckeditor/ckeditor5-source-editing-enhanced 48.8.1-alpha.1 → 48.8.1-alpha.3

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 _0x2848c0,PendingActions as _0x267c18,Plugin as _0x2faf23}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x313882,formatHtml as _0x773197,env as _0x41e7ef,uid as _0x17f982}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x247aef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3a82e6,ButtonView as _0x58ebc0,MenuBarMenuListItemButtonView as _0x19aec6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5f3f57,crosshairCursor as _0x339298,drawSelection as _0xdc0fda,dropCursor as _0x1dfc11,lineNumbers as _0x6028b5,highlightActiveLine as _0x21e51d,highlightActiveLineGutter as _0xf523c2,highlightSpecialChars as _0x1a541b,rectangularSelection as _0x21277e,keymap as _0x5d81ba}from'@codemirror/view';import{Compartment as _0xff87b4,Transaction as _0x489ba6}from'@codemirror/state';import{bracketMatching as _0xa42894,foldGutter as _0x328ce4,indentOnInput as _0x25454e,syntaxHighlighting as _0x4e9cc3,defaultHighlightStyle as _0x3478a6,foldKeymap as _0x19ca94}from'@codemirror/language';import{toggleTabFocusMode as _0x57a974,history as _0x293ead,defaultKeymap as _0x429e90,historyKeymap as _0x29bf9a,indentLess as _0x3248de,indentMore as _0x23a682,redo as _0x159087,undo as _0x59fe38}from'@codemirror/commands';import{autocompletion as _0x6922c8,closeBrackets as _0x2fe5b1,closeBracketsKeymap as _0x59e2ce,completionKeymap as _0x257855}from'@codemirror/autocomplete';import{html as _0x4b59eb}from'@codemirror/lang-html';import{markdown as _0x4c9c76}from'@codemirror/lang-markdown';import{oneDark as _0x25218e}from'@codemirror/theme-one-dark';function q(_0x3b0944,_0x4075f9){const t=_0x3b0944['t'];switch(_0x4075f9){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 _0x4075f9;}}function H(_0xeb3498){const _0x1a6c4a=_0xeb3498['editing']['view']['document']['roots'],_0x40476d=_0x1a6c4a['length'];if(0x0===_0x40476d)throw new _0x313882('source-editing-enhanced-editor-no-root',_0xeb3498);if(0x1===_0x40476d)return _0x1a6c4a['first']['rootName'];return Array['from'](_0xeb3498['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x189f82){return J(_0x189f82['replace'](/^[\n\s]*/g,''))?_0x189f82['replace'](/\s+/g,''):_0x189f82;}function J(_0x3bd516){return _0x3bd516['startsWith']('<');}function G(_0x49e295){const _0x392e12=[_0x5f3f57['lineWrapping'],_0x6922c8(),_0xa42894(),_0x2fe5b1(),_0x339298(),_0xdc0fda(),_0x1dfc11(),_0x6028b5(),_0x328ce4(),_0x21e51d(),_0xf523c2(),_0x1a541b(),_0x293ead(),_0x25454e(),_0x21277e(),_0x4e9cc3(_0x3478a6,{'fallback':!0x0})],_0x244d31=new _0xff87b4();_0x392e12['push'](_0x244d31['of'](_0x5f3f57['editable']['of'](!0x0))),'html'===_0x49e295['syntaxLanguage']?_0x392e12['push'](_0x4b59eb()):_0x392e12['push'](_0x4c9c76());const _0x590e0f=function(_0x4ed64e){if(_0x4ed64e&&'default'!==_0x4ed64e)return'dark'===_0x4ed64e?_0x25218e:_0x4ed64e;return null;}(_0x49e295['theme']);_0x590e0f&&_0x392e12['push'](_0x590e0f),_0x392e12['push'](_0x5d81ba['of']([..._0x59e2ce,..._0x429e90,..._0x29bf9a,..._0x19ca94,..._0x257855,{'key':'Tab','run':_0x23a682,'shift':_0x3248de,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x59fe38,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3e668e=new _0x5f3f57({'extensions':_0x392e12,'parent':_0x49e295['parent']});return _0x57a974(_0x3e668e),{'focus':()=>{_0x3e668e['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3e668e['focus']();},'getData':()=>_0x3e668e['state']['doc']['toString'](),'setData':_0x909267=>{_0x3e668e['dispatch']({'changes':{'from':0x0,'to':_0x3e668e['state']['doc']['length'],'insert':_0x909267},'annotations':_0x489ba6['addToHistory']['of'](!0x1)});},'setReadOnly':_0x454fa0=>{_0x3e668e['dispatch']({'effects':[_0x244d31['reconfigure'](_0x5f3f57['editable']['of'](!_0x454fa0))]});},'destroy':()=>{_0x3e668e['destroy']();},'instance':_0x3e668e};}class CodeEditorView extends _0x3a82e6{['_codeEditorApi']=null;['_options'];constructor(_0xfd555e,_0xcdb323){super(_0xfd555e),this['_options']=_0xcdb323,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',(_0x1178e5,_0x3597c6,_0x557e0e)=>{this['setReadOnly'](_0x557e0e);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x347694){this['_codeEditorApi']['setData'](_0x347694);}['setReadOnly'](_0x16d3d5){this['_codeEditorApi']['setReadOnly'](_0x16d3d5);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x2848c0{constructor(_0x2d7479){super(_0x2d7479),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x267c18)['on']('change:hasAny',(_0x47d26e,_0x348879,_0x399197)=>{_0x399197?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x412e7c=this['editor'];for(const _0x17c1f4 of _0x412e7c['commands']['names']())['replaceSource','editSource']['includes'](_0x17c1f4)||_0x412e7c['commands']['get'](_0x17c1f4)['forceDisabled'](Q);}['_enableCommands'](){const _0x293a80=this['editor'];for(const _0x5bd29d of _0x293a80['commands']['commands']())_0x5bd29d['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3d6733=this['editor'],_0x1a8d71=_0x3d6733['locale'],_0x550c22=_0x3d6733['plugins']['get']('Dialog'),_0x530ee5=H(_0x3d6733),_0xeafae3=_0x3d6733['data']['get']({'rootName':_0x530ee5}),_0x17657f=J(_0x4add77=_0xeafae3)?_0x773197(_0x4add77):_0x4add77;var _0x4add77;const _0x3ee15a=new CodeEditorView(_0x1a8d71,{'syntaxLanguage':_0x3d6733['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3d6733['config']['get']('sourceEditingEnhanced.theme')});let _0xa8fb49=!0x0;const _0x403e70=_0x1d52f6=>{if(!_0xa8fb49)return;return Z(_0x3ee15a['getData']())!==Z(_0x17657f)?window['confirm'](q(_0x1a8d71,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1d52f6['stop']():void 0x0;};_0x550c22['show']({'id':'sourceEditingEnhanced','title':q(_0x1a8d71,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3ee15a,'actionButtons':[{'label':q(_0x1a8d71,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x550c22['hide']();}},{'label':q(_0x1a8d71,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x179ec6=Z(_0x3ee15a['getData']())!==Z(_0x17657f);(_0x179ec6&&_0x3d6733['execute']('replaceSource',_0x3ee15a['getData']()),_0xa8fb49=!0x1,_0x550c22['hide'](),_0x179ec6&&'editables'in _0x3d6733['ui']['view'])&&_0x3d6733['ui']['view']['editables'][_0x530ee5]['element']['focus']();},'onCreate':_0x42c8cf=>{_0x42c8cf['set']('isEnabled',!_0x3d6733['isReadOnly']),_0x42c8cf['bind']('isEnabled')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x4349a8,_0x305c22)=>!_0x4349a8&&_0x305c22);}}],'onHide':()=>{this['_enableCommands'](),_0x550c22['off']('hide',_0x403e70),_0x3ee15a['destroy']();},'onShow':()=>{_0x3ee15a['bind']('isReadOnly')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x47b0a6,_0x479020)=>_0x47b0a6||!_0x479020),_0x3ee15a['setData'](_0x17657f),_0x3ee15a['focus'](),_0x550c22['on']('hide',_0x403e70,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x2faf23{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x267c18];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x185cd9=this['editor'],_0x21e14b=_0x185cd9['locale'],_0x2e8a29=new EditSourceCommand(_0x185cd9);_0x185cd9['commands']['add']('editSource',_0x2e8a29),_0x185cd9['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x1122ab=this['_createButton'](_0x58ebc0,_0x2e8a29);return _0x1122ab['set']({'label':q(_0x21e14b,'Source'),'icon':_0x247aef,'tooltip':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x1122ab;}),_0x185cd9['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x42c696=this['_createButton'](_0x19aec6,_0x2e8a29,!0x0);return _0x42c696['set']({'label':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'icon':_0x247aef,'role':'menuitemcheckbox'}),_0x42c696;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x278513){const _0x44fd1d=_0x5856ad([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]),_0x907db=0x5dba9314,_0x42d582=0x5dbd192c^_0x907db,_0x56b54c=window[_0x5856ad([0x44,0x61,0x74,0x65])][_0x5856ad([0x6e,0x6f,0x77])](),_0x28af48=_0x278513[_0x5856ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d1891=new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2083c0=>{_0x28af48[_0x5856ad([0x6f,0x6e,0x63,0x65])](_0x5856ad([0x72,0x65,0x61,0x64,0x79]),_0x2083c0);}),_0x1cb619={[_0x5856ad([0x6b,0x74,0x79])]:_0x5856ad([0x45,0x43]),[_0x5856ad([0x75,0x73,0x65])]:_0x5856ad([0x73,0x69,0x67]),[_0x5856ad([0x63,0x72,0x76])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36]),[_0x5856ad([0x78])]:_0x5856ad([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]),[_0x5856ad([0x79])]:_0x5856ad([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]),[_0x5856ad([0x61,0x6c,0x67])]:_0x5856ad([0x45,0x53,0x32,0x35,0x36])},_0xebb514=_0x28af48[_0x5856ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5856ad([0x67,0x65,0x74])](_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bbacd(){let _0x5dac7a,_0x50b2a6=null,_0x51acb6=null;try{if(_0xebb514==_0x5856ad([0x47,0x50,0x4c]))return _0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dac7a=_0x59a670(),!_0x5dac7a)return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51acb6=_0x2513d5(_0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dac7a[_0x5856ad([0x6a,0x74,0x69])])),await _0x168d16()?_0x2e98d4()?_0x3ea6bb()?_0x5856ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52836e()?(_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b2a6=_0xf97bd(_0x5856ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f2188()):_0x5856ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ea6bb(){const _0x3f940f=[_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5856ad([0x74,0x72,0x69,0x61,0x6c])][_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56b54c/0x3e8:0xe10*_0x42d582;return _0x5dac7a[_0x5856ad([0x65,0x78,0x70])]<_0x3f940f;}function _0x2e98d4(){const _0x55ab53=_0x5dac7a[_0x5856ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55ab53&&(!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a]))||!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x53,0x45,0x45])));}function _0x52836e(){const _0x25af6e=_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25af6e||0x0==_0x25af6e[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x322fbe}=new URL(window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25af6e[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x322fbe))return!0x0;const _0x2c9f03=_0x322fbe[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));return _0x25af6e[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cdae0=>_0x3cdae0[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a])))[_0x5856ad([0x6d,0x61,0x70])](_0x404513=>_0x404513[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])))[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cddc3=>_0x3cddc3[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x6d,0x61,0x70])](_0x11c8cd=>Array(_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11c8cd[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x66,0x69,0x6c,0x6c])](_0x11c8cd[0x0]===_0x5856ad([0x2a])?_0x5856ad([0x2a]):'')[_0x5856ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11c8cd))[_0x5856ad([0x73,0x6f,0x6d,0x65])](_0x258d9a=>_0x2c9f03[_0x5856ad([0x65,0x76,0x65,0x72,0x79])]((_0x2d26a3,_0x5f3350)=>_0x258d9a[_0x5f3350]===_0x2d26a3||_0x258d9a[_0x5f3350]===_0x5856ad([0x2a])));}function _0x4f2188(){return _0x50b2a6&&_0x51acb6?new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x267f24,_0x22db2e)=>{_0x50b2a6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x267f24,_0x22db2e),_0x51acb6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x49f19e=>{_0x49f19e!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x267f24(_0x49f19e);},_0x22db2e);}):_0x50b2a6||_0x51acb6||_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2513d5(_0x5acad3,_0x1ce3b4){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2f08=>{if(_0x4767d3())return _0xd2f08(_0x5856ad([0x56,0x61,0x6c,0x69,0x64]));_0xd92c97(),_0x28af48[_0x5856ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d8cfd=!0x1;const _0x66112c=_0x17f982();function _0x36ae7c(_0x169e3c){return!!_0x169e3c&&(typeof _0x169e3c===_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x169e3c===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x169e3c[_0x5856ad([0x74,0x68,0x65,0x6e])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x169e3c[_0x5856ad([0x63,0x61,0x74,0x63,0x68])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5779e2(_0x1b7626){_0x58654e(_0x1b7626)[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x518434=>{if(!_0x518434||_0x518434[_0x5856ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5856ad([0x6f,0x6b]))return _0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b5499(_0x2f0d9c(_0x66112c+_0x1ce3b4))!=_0x518434[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x2ef3b6=>(_0x521ee8(),_0x2ef3b6),()=>{const _0x4354b4=_0x2c078f();return null==_0x4354b4?(_0x521ee8(),_0x5856ad([0x56,0x61,0x6c,0x69,0x64])):_0x5856ad(_0x56b54c-_0x4354b4>(0x79b61714^_0x907db)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0xd2f08)[_0x5856ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x538978=0x5d8c7d94^_0x907db;function _0x521ee8(){const _0x374e43=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x26cfc2=_0x27b986(_0x1b5499(window[_0x5856ad([0x4d,0x61,0x74,0x68])][_0x5856ad([0x63,0x65,0x69,0x6c])](_0x56b54c/_0x538978)));window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x374e43,_0x26cfc2);}function _0x2c078f(){const _0x387691=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x50fa1f=window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387691);return _0x50fa1f?window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b986(_0x50fa1f),0x10)*_0x538978:null;}function _0x58654e(_0x2050b9){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b15ca,_0xe5ec2b)=>{_0x2050b9[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x3b15ca,_0xe5ec2b),window[_0x5856ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe5ec2b,0x5dbb47d4^_0x907db);});}}_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ee66c,_0x36c5cd)=>{if(_0x36c5cd[0x0]!=_0x5acad3)return _0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36c5cd[0x1]={..._0x36c5cd[0x1],[_0x5856ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x66112c};},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x68,0x69,0x67,0x68])}),_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3933d2=>{_0x36ae7c(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d8cfd=!0x0,_0x5779e2(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x6c,0x6f,0x77])}),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>{_0x4d8cfd||_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4767d3(){return _0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5856ad([0x61,0x75,0x74,0x6f]);}function _0xd92c97(){_0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5856ad([0x61,0x75,0x74,0x6f]);}}function _0xf97bd(_0x19279f){const _0x4ef95f=[new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x61fcfa=>setTimeout(_0x61fcfa,0x5db3add8^_0x907db)),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd003=>{let _0x4fa14d=0x0;_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x6f,0x6e])](_0x5856ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42ad81,_0xf0314f)=>{_0xf0314f[0x0][_0x5856ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fa14d++,_0x4fa14d==(0x5dba96fc^_0x907db)&&(_0x3dd003(),_0x42ad81[_0x5856ad([0x6f,0x66,0x66])]());});}))];return window[_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5856ad([0x72,0x61,0x63,0x65])](_0x4ef95f)[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>_0x19279f);}async function _0x1ae69f(){await _0x1d1891,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8f3afa(_0x434383){const _0x58ceff=_0xa6f3c0();_0x28af48[_0x58ceff]=_0x5856ad([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])+_0x434383,_0x434383!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x1ae69f();}function _0xa6f3c0(){const _0x2f392d=window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5856ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5856ad([0x6e,0x6f,0x77])]())[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5856ad([0x2e]),'');let _0x4839a7=_0x5856ad([0x4e]);for(let _0x50a532=0x0;_0x50a532<_0x2f392d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50a532+=0x2){let _0x1bbc0f=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f392d[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a532,_0x50a532+0x2));_0x1bbc0f>=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bbc0f-=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4839a7+=_0x44fd1d[_0x1bbc0f];}return _0x4839a7;}function _0x59a670(){const _0x33b911=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));if(0x3!=_0x33b911[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43eccd(_0x33b911[0x1]);function _0x43eccd(_0x4f8877){const _0x45b099=_0x537159(_0x4f8877);return _0x45b099&&_0x13bd1a()?_0x45b099:null;function _0x13bd1a(){const _0x53befe=_0x45b099[_0x5856ad([0x6a,0x74,0x69])],_0x1367f5=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c842f={..._0x45b099,[_0x5856ad([0x6a,0x74,0x69])]:_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c842f[_0x5856ad([0x76,0x63])],_0x2f0d9c(_0x5c842f)==_0x1367f5;}}}async function _0x168d16(){let _0x320ad5=!0x0;try{const _0x3cccd1=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])),[_0x432ae6,_0x459052,_0x3bc066]=_0x3cccd1;return _0x33fc6d(_0x432ae6),await _0x1079dc(_0x432ae6,_0x459052,_0x3bc066),_0x320ad5;}catch{return!0x1;}function _0x33fc6d(_0xb3b56b){const _0x520583=_0x537159(_0xb3b56b);_0x520583&&_0x520583[_0x5856ad([0x61,0x6c,0x67])]==_0x5856ad([0x45,0x53,0x32,0x35,0x36])||(_0x320ad5=!0x1);}async function _0x1079dc(_0x13a42a,_0x2a0044,_0x16b27b){const _0xd1922a=window[_0x5856ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5856ad([0x66,0x72,0x6f,0x6d])](_0x3b6d55(_0x16b27b),_0x2136b9=>_0x2136b9[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dd562=new window[(_0x5856ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5856ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13a42a+_0x5856ad([0x2e])+_0x2a0044),_0x3cc900=window[_0x5856ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5856ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cc900)return;const _0x34e4f7=await _0x3cc900[_0x5856ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5856ad([0x6a,0x77,0x6b]),_0x1cb619,{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cc900[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x68,0x61,0x73,0x68])]:{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34e4f7,_0xd1922a,_0x1dd562)||(_0x320ad5=!0x1);}}function _0x537159(_0xd52524){return _0xd52524[_0x5856ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5856ad([0x65,0x79]))?JSON[_0x5856ad([0x70,0x61,0x72,0x73,0x65])](_0x3b6d55(_0xd52524)):null;}function _0x3b6d55(_0x3093f2){return window[_0x5856ad([0x61,0x74,0x6f,0x62])](_0x3093f2[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5856ad([0x2b]))[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5856ad([0x2f])));}function _0x2f0d9c(_0x50d4c4){let _0x52dcaa=0x1505;function _0x29c548(_0x428e82){for(let _0x1d2ffe=0x0;_0x1d2ffe<_0x428e82[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d2ffe++){const _0x106020=_0x428e82[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d2ffe);_0x52dcaa=(_0x52dcaa<<0x5)+_0x52dcaa+_0x106020,_0x52dcaa&=_0x52dcaa;}}function _0x534aee(_0x258639){Array[_0x5856ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x258639)?_0x258639[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x534aee):_0x258639&&typeof _0x258639==_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5856ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x258639)[_0x5856ad([0x73,0x6f,0x72,0x74])]()[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbe56b1,_0x756364])=>{_0x29c548(_0xbe56b1),_0x534aee(_0x756364);}):_0x29c548(window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x258639));}return _0x534aee(_0x50d4c4),_0x52dcaa>>>0x0;}function _0x1b5499(_0x415617){return _0x415617[_0x5856ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5856ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5856ad([0x30]));}function _0x27b986(_0x409a6e){return _0x409a6e[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5856ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5856ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x5eb7d1(){}function _0x5856ad(_0x279dd8){return _0x279dd8['map'](_0x2f714a=>String['fromCharCode'](_0x2f714a))['join']('');}_0x8f3afa(await _0x6bbacd());}(this);}['_createButton'](_0x5852f2,_0x28e358,_0x4d5529=!0x1){const _0x4767fc=new _0x5852f2(this['editor']['locale']);return _0x4767fc['set']({'withText':_0x4d5529,'isToggleable':!0x1}),_0x4767fc['bind']('isEnabled')['to'](_0x28e358,'isEnabled'),this['listenTo'](_0x4767fc,'execute',()=>_0x28e358['execute']()),_0x4767fc;}['_registerKeybindings'](){const _0x3e8217=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3e8217,'Source\x20Editing\x20Enhanced')});const _0x395c63=_0x41e7ef['isMac']||_0x41e7ef['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3e8217,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3e8217,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3e8217,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3e8217,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3e8217,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3e8217,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3e8217,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3e8217,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3e8217,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3e8217,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3e8217,'Select\x20line'),'keystroke':_0x395c63?'Ctrl!+L':'Alt+L'},{'label':q(_0x3e8217,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x395c63?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3e8217,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3e8217,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3e8217,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3e8217,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3e8217,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x2848c0{constructor(_0x227646){super(_0x227646),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x7d7a4a,_0x31ae49){const _0x1973ba=this['editor'],_0x262bd5=_0x31ae49?.['rootName']??H(_0x1973ba);_0x1973ba['data']['set']({[_0x262bd5]:_0x7d7a4a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x2faf23{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x58fed2){super(_0x58fed2),_0x58fed2['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41cd33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x484aa5;for(const _0x582100 in _0x41cd33){const _0x4b8ab4=_0x582100,_0x10db52=_0x41cd33[_0x4b8ab4];if('sourceEditingEnhancedLicenseKeyValid'==_0x10db52||'sourceEditingEnhancedLicenseKeyInvalid'==_0x10db52||'sourceEditingEnhancedLicenseKeyExpired'==_0x10db52||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x10db52||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x10db52){delete _0x41cd33[_0x4b8ab4],_0x484aa5=_0x10db52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x484aa5&&_0x41cd33['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x484aa5&&_0x41cd33['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x484aa5&&_0x41cd33['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0xae17ac=this['editor'],_0x393b36=_0xae17ac['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x393b36&&_0xae17ac['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x313882('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x393b36&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x49ce31=>_0xae17ac['plugins']['has'](_0x49ce31))&&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.'),_0xae17ac['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
23
+ import{Command as _0x3938a2,PendingActions as _0x477d2b,Plugin as _0x526623}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x593c24,formatHtml as _0x41b898,env as _0x2a7bf1,uid as _0x44e934}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x14432a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x5cf402,ButtonView as _0x44a85a,MenuBarMenuListItemButtonView as _0x473721}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x48bca3,crosshairCursor as _0x4ab89e,drawSelection as _0x49bcf0,dropCursor as _0x41d240,lineNumbers as _0x291871,highlightActiveLine as _0x44663c,highlightActiveLineGutter as _0x3c8a2b,highlightSpecialChars as _0x1465a1,rectangularSelection as _0x211a18,keymap as _0x15bc69}from'@codemirror/view';import{Compartment as _0x5a577d,Transaction as _0x2adace}from'@codemirror/state';import{bracketMatching as _0xc008cb,foldGutter as _0x22a23d,indentOnInput as _0xe17946,syntaxHighlighting as _0x39079a,defaultHighlightStyle as _0x39fecf,foldKeymap as _0x293acd}from'@codemirror/language';import{toggleTabFocusMode as _0x529d8b,history as _0x54a6cc,defaultKeymap as _0x99b0f3,historyKeymap as _0x4b8c2b,indentLess as _0xffa263,indentMore as _0x1e3671,redo as _0x5130d4,undo as _0x5831d1}from'@codemirror/commands';import{autocompletion as _0x19e6b8,closeBrackets as _0x64cd12,closeBracketsKeymap as _0x40ac96,completionKeymap as _0x5ecd4a}from'@codemirror/autocomplete';import{html as _0x1dc834}from'@codemirror/lang-html';import{markdown as _0x11a421}from'@codemirror/lang-markdown';import{oneDark as _0x37385c}from'@codemirror/theme-one-dark';function q(_0x4f7cb3,_0x2094f1){const t=_0x4f7cb3['t'];switch(_0x2094f1){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 _0x2094f1;}}function H(_0x4a019d){const _0x593fe2=_0x4a019d['editing']['view']['document']['roots'],_0x291d08=_0x593fe2['length'];if(0x0===_0x291d08)throw new _0x593c24('source-editing-enhanced-editor-no-root',_0x4a019d);if(0x1===_0x291d08)return _0x593fe2['first']['rootName'];return Array['from'](_0x4a019d['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x25381a){return J(_0x25381a['replace'](/^[\n\s]*/g,''))?_0x25381a['replace'](/\s+/g,''):_0x25381a;}function J(_0x4e64c1){return _0x4e64c1['startsWith']('<');}function G(_0x6031d6){const _0x3554da=[_0x48bca3['lineWrapping'],_0x19e6b8(),_0xc008cb(),_0x64cd12(),_0x4ab89e(),_0x49bcf0(),_0x41d240(),_0x291871(),_0x22a23d(),_0x44663c(),_0x3c8a2b(),_0x1465a1(),_0x54a6cc(),_0xe17946(),_0x211a18(),_0x39079a(_0x39fecf,{'fallback':!0x0})],_0x11c6b5=new _0x5a577d();_0x3554da['push'](_0x11c6b5['of'](_0x48bca3['editable']['of'](!0x0))),'html'===_0x6031d6['syntaxLanguage']?_0x3554da['push'](_0x1dc834()):_0x3554da['push'](_0x11a421());const _0x95a11=function(_0x46a039){if(_0x46a039&&'default'!==_0x46a039)return'dark'===_0x46a039?_0x37385c:_0x46a039;return null;}(_0x6031d6['theme']);_0x95a11&&_0x3554da['push'](_0x95a11),_0x3554da['push'](_0x15bc69['of']([..._0x40ac96,..._0x99b0f3,..._0x4b8c2b,..._0x293acd,..._0x5ecd4a,{'key':'Tab','run':_0x1e3671,'shift':_0xffa263,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x5130d4,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x5130d4,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5831d1,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x483dc8=new _0x48bca3({'extensions':_0x3554da,'parent':_0x6031d6['parent']});return _0x529d8b(_0x483dc8),{'focus':()=>{_0x483dc8['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x483dc8['focus']();},'getData':()=>_0x483dc8['state']['doc']['toString'](),'setData':_0x29cf3f=>{_0x483dc8['dispatch']({'changes':{'from':0x0,'to':_0x483dc8['state']['doc']['length'],'insert':_0x29cf3f},'annotations':_0x2adace['addToHistory']['of'](!0x1)});},'setReadOnly':_0x5096f6=>{_0x483dc8['dispatch']({'effects':[_0x11c6b5['reconfigure'](_0x48bca3['editable']['of'](!_0x5096f6))]});},'destroy':()=>{_0x483dc8['destroy']();},'instance':_0x483dc8};}class CodeEditorView extends _0x5cf402{['_codeEditorApi']=null;['_options'];constructor(_0x4286a5,_0x110513){super(_0x4286a5),this['_options']=_0x110513,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',(_0x1cf55e,_0x23f97b,_0x1625f0)=>{this['setReadOnly'](_0x1625f0);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x13d570){this['_codeEditorApi']['setData'](_0x13d570);}['setReadOnly'](_0x53cc0a){this['_codeEditorApi']['setReadOnly'](_0x53cc0a);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x3938a2{constructor(_0x520ad6){super(_0x520ad6),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x477d2b)['on']('change:hasAny',(_0xb6f76,_0x2ed2a6,_0x589b2e)=>{_0x589b2e?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x12625f=this['editor'];for(const _0xe20d6a of _0x12625f['commands']['names']())['replaceSource','editSource']['includes'](_0xe20d6a)||_0x12625f['commands']['get'](_0xe20d6a)['forceDisabled'](Q);}['_enableCommands'](){const _0x480e0b=this['editor'];for(const _0x1e5014 of _0x480e0b['commands']['commands']())_0x1e5014['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b872a=this['editor'],_0x153f46=_0x2b872a['locale'],_0x52412e=_0x2b872a['plugins']['get']('Dialog'),_0x50ea89=H(_0x2b872a),_0x58dc26=_0x2b872a['data']['get']({'rootName':_0x50ea89}),_0x5b9776=J(_0x22f69d=_0x58dc26)?_0x41b898(_0x22f69d):_0x22f69d;var _0x22f69d;const _0x20a7b3=new CodeEditorView(_0x153f46,{'syntaxLanguage':_0x2b872a['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2b872a['config']['get']('sourceEditingEnhanced.theme')});let _0x243374=!0x0;const _0x4e7159=_0xc55ead=>{if(!_0x243374)return;return Z(_0x20a7b3['getData']())!==Z(_0x5b9776)?window['confirm'](q(_0x153f46,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0xc55ead['stop']():void 0x0;};_0x52412e['show']({'id':'sourceEditingEnhanced','title':q(_0x153f46,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x20a7b3,'actionButtons':[{'label':q(_0x153f46,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x52412e['hide']();}},{'label':q(_0x153f46,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2adf45=Z(_0x20a7b3['getData']())!==Z(_0x5b9776);(_0x2adf45&&_0x2b872a['execute']('replaceSource',_0x20a7b3['getData']()),_0x243374=!0x1,_0x52412e['hide'](),_0x2adf45&&'editables'in _0x2b872a['ui']['view'])&&_0x2b872a['ui']['view']['editables'][_0x50ea89]['element']['focus']();},'onCreate':_0x142f30=>{_0x142f30['set']('isEnabled',!_0x2b872a['isReadOnly']),_0x142f30['bind']('isEnabled')['to'](_0x2b872a,'isReadOnly',this,'isEnabled',(_0x2b4268,_0x2f98a2)=>!_0x2b4268&&_0x2f98a2);}}],'onHide':()=>{this['_enableCommands'](),_0x52412e['off']('hide',_0x4e7159),_0x20a7b3['destroy']();},'onShow':()=>{_0x20a7b3['bind']('isReadOnly')['to'](_0x2b872a,'isReadOnly',this,'isEnabled',(_0x363ac4,_0x55fddb)=>_0x363ac4||!_0x55fddb),_0x20a7b3['setData'](_0x5b9776),_0x20a7b3['focus'](),_0x52412e['on']('hide',_0x4e7159,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x526623{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x477d2b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1fac70=this['editor'],_0x364c09=_0x1fac70['locale'],_0x4915d4=new EditSourceCommand(_0x1fac70);_0x1fac70['commands']['add']('editSource',_0x4915d4),_0x1fac70['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x1e1daf=this['_createButton'](_0x44a85a,_0x4915d4);return _0x1e1daf['set']({'label':q(_0x364c09,'Source'),'icon':_0x14432a,'tooltip':q(_0x364c09,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x1e1daf;}),_0x1fac70['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x941092=this['_createButton'](_0x473721,_0x4915d4,!0x0);return _0x941092['set']({'label':q(_0x364c09,'Edit\x20source\x20modal\x20label'),'icon':_0x14432a,'role':'menuitemcheckbox'}),_0x941092;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x233fb4){const _0x4c0b49=_0x42c301([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]),_0x9c2139=0x5dba9314,_0x1d36b2=0x5dbd197c^_0x9c2139,_0x5be6df=window[_0x42c301([0x44,0x61,0x74,0x65])][_0x42c301([0x6e,0x6f,0x77])](),_0x28af16=_0x233fb4[_0x42c301([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33e745=new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x426c51=>{_0x28af16[_0x42c301([0x6f,0x6e,0x63,0x65])](_0x42c301([0x72,0x65,0x61,0x64,0x79]),_0x426c51);}),_0x1195af={[_0x42c301([0x6b,0x74,0x79])]:_0x42c301([0x45,0x43]),[_0x42c301([0x75,0x73,0x65])]:_0x42c301([0x73,0x69,0x67]),[_0x42c301([0x63,0x72,0x76])]:_0x42c301([0x50,0x2d,0x32,0x35,0x36]),[_0x42c301([0x78])]:_0x42c301([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]),[_0x42c301([0x79])]:_0x42c301([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]),[_0x42c301([0x61,0x6c,0x67])]:_0x42c301([0x45,0x53,0x32,0x35,0x36])},_0x188da8=_0x28af16[_0x42c301([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42c301([0x67,0x65,0x74])](_0x42c301([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2591e1(){let _0x555c07,_0x2c0f93=null,_0x4e65ae=null;try{if(_0x188da8==_0x42c301([0x47,0x50,0x4c]))return _0x42c301([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x555c07=_0x563c77(),!_0x555c07)return _0x42c301([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x555c07[_0x42c301([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e65ae=_0x5bacb6(_0x555c07[_0x42c301([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x555c07[_0x42c301([0x6a,0x74,0x69])])),await _0x274a28()?_0x1f52ec()?_0x3859f9()?_0x42c301([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23e13f()?(_0x555c07[_0x42c301([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c301([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c0f93=_0x597ada(_0x42c301([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b40e()):_0x42c301([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42c301([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42c301([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42c301([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3859f9(){const _0x3b487c=[_0x42c301([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42c301([0x74,0x72,0x69,0x61,0x6c])][_0x42c301([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x555c07[_0x42c301([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5be6df/0x3e8:0xe10*_0x1d36b2;return _0x555c07[_0x42c301([0x65,0x78,0x70])]<_0x3b487c;}function _0x1f52ec(){const _0x1f6c0a=_0x555c07[_0x42c301([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f6c0a&&(!!_0x1f6c0a[_0x42c301([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c301([0x2a]))||!!_0x1f6c0a[_0x42c301([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c301([0x53,0x45,0x45])));}function _0x23e13f(){const _0x2227a8=_0x555c07[_0x42c301([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2227a8||0x0==_0x2227a8[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d1fbd}=new URL(window[_0x42c301([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2227a8[_0x42c301([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1fbd))return!0x0;const _0x263b0c=_0x3d1fbd[_0x42c301([0x73,0x70,0x6c,0x69,0x74])](_0x42c301([0x2e]));return _0x2227a8[_0x42c301([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x168d79=>_0x168d79[_0x42c301([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c301([0x2a])))[_0x42c301([0x6d,0x61,0x70])](_0x391a53=>_0x391a53[_0x42c301([0x73,0x70,0x6c,0x69,0x74])](_0x42c301([0x2e])))[_0x42c301([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5365ea=>_0x5365ea[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x263b0c[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42c301([0x6d,0x61,0x70])](_0x1d4822=>Array(_0x263b0c[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d4822[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42c301([0x66,0x69,0x6c,0x6c])](_0x1d4822[0x0]===_0x42c301([0x2a])?_0x42c301([0x2a]):'')[_0x42c301([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d4822))[_0x42c301([0x73,0x6f,0x6d,0x65])](_0x5a7974=>_0x263b0c[_0x42c301([0x65,0x76,0x65,0x72,0x79])]((_0x4cf7d3,_0x48f22c)=>_0x5a7974[_0x48f22c]===_0x4cf7d3||_0x5a7974[_0x48f22c]===_0x42c301([0x2a])));}function _0x4b40e(){return _0x2c0f93&&_0x4e65ae?new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17b6ec,_0x3b5ebf)=>{_0x2c0f93[_0x42c301([0x74,0x68,0x65,0x6e])](_0x17b6ec,_0x3b5ebf),_0x4e65ae[_0x42c301([0x74,0x68,0x65,0x6e])](_0x42487a=>{_0x42487a!=_0x42c301([0x56,0x61,0x6c,0x69,0x64])&&_0x17b6ec(_0x42487a);},_0x3b5ebf);}):_0x2c0f93||_0x4e65ae||_0x42c301([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5bacb6(_0x45dae2,_0x547cd3){return new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afe6d=>{if(_0x2edb00())return _0x4afe6d(_0x42c301([0x56,0x61,0x6c,0x69,0x64]));_0x1d50f8(),_0x28af16[_0x42c301([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42c301([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ad459=!0x1;const _0x4d5eb5=_0x44e934();function _0x34d1bb(_0x5d00fd){return!!_0x5d00fd&&(typeof _0x5d00fd===_0x42c301([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d00fd===_0x42c301([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d00fd[_0x42c301([0x74,0x68,0x65,0x6e])]===_0x42c301([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d00fd[_0x42c301([0x63,0x61,0x74,0x63,0x68])]===_0x42c301([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c390(_0x1ffb54){_0x49a204(_0x1ffb54)[_0x42c301([0x74,0x68,0x65,0x6e])](_0x1472ba=>{if(!_0x1472ba||_0x1472ba[_0x42c301([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42c301([0x6f,0x6b]))return _0x42c301([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x76e3e9(_0x349840(_0x4d5eb5+_0x547cd3))!=_0x1472ba[_0x42c301([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42c301([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42c301([0x56,0x61,0x6c,0x69,0x64]);})[_0x42c301([0x74,0x68,0x65,0x6e])](_0x2a5d48=>(_0x12e099(),_0x2a5d48),()=>{const _0x886a2a=_0x500f51();return null==_0x886a2a?(_0x12e099(),_0x42c301([0x56,0x61,0x6c,0x69,0x64])):_0x42c301(_0x5be6df-_0x886a2a>(0x79b61714^_0x9c2139)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42c301([0x74,0x68,0x65,0x6e])](_0x4afe6d)[_0x42c301([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4afe6d(_0x42c301([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x188339=0x5d8c7d94^_0x9c2139;function _0x12e099(){const _0x4edac6=_0x42c301([0x6c,0x6c,0x63,0x74,0x2d])+_0x76e3e9(_0x349840(_0x45dae2)),_0x548fb6=_0x1c7319(_0x76e3e9(window[_0x42c301([0x4d,0x61,0x74,0x68])][_0x42c301([0x63,0x65,0x69,0x6c])](_0x5be6df/_0x188339)));window[_0x42c301([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c301([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4edac6,_0x548fb6);}function _0x500f51(){const _0x44a15f=_0x42c301([0x6c,0x6c,0x63,0x74,0x2d])+_0x76e3e9(_0x349840(_0x45dae2)),_0x9f2f5e=window[_0x42c301([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c301([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44a15f);return _0x9f2f5e?window[_0x42c301([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c7319(_0x9f2f5e),0x10)*_0x188339:null;}function _0x49a204(_0x16bca8){return new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1447ff,_0x50d8d7)=>{_0x16bca8[_0x42c301([0x74,0x68,0x65,0x6e])](_0x1447ff,_0x50d8d7),window[_0x42c301([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50d8d7,0x5dbb47d4^_0x9c2139);});}}_0x28af16[_0x42c301([0x6f,0x6e])](_0x42c301([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c9038,_0x2e1bb4)=>{if(_0x2e1bb4[0x0]!=_0x45dae2)return _0x4afe6d(_0x42c301([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e1bb4[0x1]={..._0x2e1bb4[0x1],[_0x42c301([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d5eb5};},{[_0x42c301([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c301([0x68,0x69,0x67,0x68])}),_0x28af16[_0x42c301([0x6f,0x6e])](_0x42c301([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x179c8b=>{_0x34d1bb(_0x179c8b[_0x42c301([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ad459=!0x0,_0x27c390(_0x179c8b[_0x42c301([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42c301([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c301([0x6c,0x6f,0x77])}),_0x33e745[_0x42c301([0x74,0x68,0x65,0x6e])](()=>{_0x3ad459||_0x4afe6d(_0x42c301([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2edb00(){return _0x28af16[_0x42c301([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c301([0x76,0x69,0x65,0x77])][_0x42c301([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42c301([0x61,0x75,0x74,0x6f]);}function _0x1d50f8(){_0x28af16[_0x42c301([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c301([0x76,0x69,0x65,0x77])][_0x42c301([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42c301([0x61,0x75,0x74,0x6f]);}}function _0x597ada(_0x29a912){const _0x41ae36=[new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1314=>setTimeout(_0x3a1314,0x5db3add8^_0x9c2139)),_0x33e745[_0x42c301([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475c0f=>{let _0x101ce6=0x0;_0x28af16[_0x42c301([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c301([0x6f,0x6e])](_0x42c301([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33ad31,_0x5e18db)=>{_0x5e18db[0x0][_0x42c301([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x101ce6++,_0x101ce6==(0x5dba96fc^_0x9c2139)&&(_0x475c0f(),_0x33ad31[_0x42c301([0x6f,0x66,0x66])]());});}))];return window[_0x42c301([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42c301([0x72,0x61,0x63,0x65])](_0x41ae36)[_0x42c301([0x74,0x68,0x65,0x6e])](()=>_0x29a912);}async function _0x5a617a(){await _0x33e745,_0x28af16[_0x42c301([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c301([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bad06,_0x28af16[_0x42c301([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c301([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bad06,_0x28af16[_0x42c301([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42c301([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24f72c(_0x1e39f3){const _0xe42ec0=_0x409de2();_0x28af16[_0xe42ec0]=_0x42c301([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])+_0x1e39f3,_0x1e39f3!=_0x42c301([0x56,0x61,0x6c,0x69,0x64])&&_0x5a617a();}function _0x409de2(){const _0x4b3ead=window[_0x42c301([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42c301([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42c301([0x6e,0x6f,0x77])]())[_0x42c301([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42c301([0x2e]),'');let _0x546311=_0x42c301([0x4e]);for(let _0x17c786=0x0;_0x17c786<_0x4b3ead[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17c786+=0x2){let _0x537c39=window[_0x42c301([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b3ead[_0x42c301([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17c786,_0x17c786+0x2));_0x537c39>=_0x4c0b49[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x537c39-=_0x4c0b49[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x546311+=_0x4c0b49[_0x537c39];}return _0x546311;}function _0x563c77(){const _0x20def4=_0x188da8[_0x42c301([0x73,0x70,0x6c,0x69,0x74])](_0x42c301([0x2e]));if(0x3!=_0x20def4[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e5c97(_0x20def4[0x1]);function _0x5e5c97(_0x5b593c){const _0x50e1dc=_0x3c6bfe(_0x5b593c);return _0x50e1dc&&_0x1ff430()?_0x50e1dc:null;function _0x1ff430(){const _0x198241=_0x50e1dc[_0x42c301([0x6a,0x74,0x69])],_0x9a7642=window[_0x42c301([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x198241[_0x42c301([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x198241[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2eadaf={..._0x50e1dc,[_0x42c301([0x6a,0x74,0x69])]:_0x198241[_0x42c301([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x198241[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2eadaf[_0x42c301([0x76,0x63])],_0x349840(_0x2eadaf)==_0x9a7642;}}}async function _0x274a28(){let _0x70976c=!0x0;try{const _0x550608=_0x188da8[_0x42c301([0x73,0x70,0x6c,0x69,0x74])](_0x42c301([0x2e])),[_0xac5efe,_0x544cc7,_0x2b0ec8]=_0x550608;return _0x361900(_0xac5efe),await _0x584ee8(_0xac5efe,_0x544cc7,_0x2b0ec8),_0x70976c;}catch{return!0x1;}function _0x361900(_0x541b9e){const _0x495645=_0x3c6bfe(_0x541b9e);_0x495645&&_0x495645[_0x42c301([0x61,0x6c,0x67])]==_0x42c301([0x45,0x53,0x32,0x35,0x36])||(_0x70976c=!0x1);}async function _0x584ee8(_0x18b672,_0x33cc32,_0x3aa035){const _0xc91089=window[_0x42c301([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42c301([0x66,0x72,0x6f,0x6d])](_0x5c4e49(_0x3aa035),_0x458adc=>_0x458adc[_0x42c301([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30a904=new window[(_0x42c301([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42c301([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18b672+_0x42c301([0x2e])+_0x33cc32),_0x17e244=window[_0x42c301([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42c301([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17e244)return;const _0x476af7=await _0x17e244[_0x42c301([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42c301([0x6a,0x77,0x6b]),_0x1195af,{[_0x42c301([0x6e,0x61,0x6d,0x65])]:_0x42c301([0x45,0x43,0x44,0x53,0x41]),[_0x42c301([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42c301([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42c301([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17e244[_0x42c301([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42c301([0x6e,0x61,0x6d,0x65])]:_0x42c301([0x45,0x43,0x44,0x53,0x41]),[_0x42c301([0x68,0x61,0x73,0x68])]:{[_0x42c301([0x6e,0x61,0x6d,0x65])]:_0x42c301([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x476af7,_0xc91089,_0x30a904)||(_0x70976c=!0x1);}}function _0x3c6bfe(_0x217f68){return _0x217f68[_0x42c301([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42c301([0x65,0x79]))?JSON[_0x42c301([0x70,0x61,0x72,0x73,0x65])](_0x5c4e49(_0x217f68)):null;}function _0x5c4e49(_0x340f77){return window[_0x42c301([0x61,0x74,0x6f,0x62])](_0x340f77[_0x42c301([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42c301([0x2b]))[_0x42c301([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42c301([0x2f])));}function _0x349840(_0x5ef0eb){let _0x4da369=0x1505;function _0x1c43b4(_0x28820b){for(let _0x4d8cbf=0x0;_0x4d8cbf<_0x28820b[_0x42c301([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d8cbf++){const _0x9e94e3=_0x28820b[_0x42c301([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d8cbf);_0x4da369=(_0x4da369<<0x5)+_0x4da369+_0x9e94e3,_0x4da369&=_0x4da369;}}function _0x13aed9(_0x1726c1){Array[_0x42c301([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1726c1)?_0x1726c1[_0x42c301([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13aed9):_0x1726c1&&typeof _0x1726c1==_0x42c301([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42c301([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1726c1)[_0x42c301([0x73,0x6f,0x72,0x74])]()[_0x42c301([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ea440,_0x4d2917])=>{_0x1c43b4(_0x2ea440),_0x13aed9(_0x4d2917);}):_0x1c43b4(window[_0x42c301([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1726c1));}return _0x13aed9(_0x5ef0eb),_0x4da369>>>0x0;}function _0x76e3e9(_0x2edbd7){return _0x2edbd7[_0x42c301([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42c301([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42c301([0x30]));}function _0x1c7319(_0x3f1782){return _0x3f1782[_0x42c301([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42c301([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42c301([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bad06(){}function _0x42c301(_0x6834c8){return _0x6834c8['map'](_0x22f1fa=>String['fromCharCode'](_0x22f1fa))['join']('');}_0x24f72c(await _0x2591e1());}(this);}['_createButton'](_0x18a283,_0x1c5cc6,_0x3a5a25=!0x1){const _0xb774a2=new _0x18a283(this['editor']['locale']);return _0xb774a2['set']({'withText':_0x3a5a25,'isToggleable':!0x1}),_0xb774a2['bind']('isEnabled')['to'](_0x1c5cc6,'isEnabled'),this['listenTo'](_0xb774a2,'execute',()=>_0x1c5cc6['execute']()),_0xb774a2;}['_registerKeybindings'](){const _0x254df6=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x254df6,'Source\x20Editing\x20Enhanced')});const _0x22332f=_0x2a7bf1['isMac']||_0x2a7bf1['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x254df6,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x254df6,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x254df6,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x254df6,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x254df6,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x254df6,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x254df6,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x22332f?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x254df6,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x254df6,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x254df6,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x254df6,'Select\x20line'),'keystroke':_0x22332f?'Ctrl!+L':'Alt+L'},{'label':q(_0x254df6,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x22332f?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x254df6,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x254df6,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x254df6,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x254df6,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x254df6,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x22332f?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x3938a2{constructor(_0x1d5554){super(_0x1d5554),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x813f7b,_0x33d5b8){const _0x2d6cc4=this['editor'],_0x569bd5=_0x33d5b8?.['rootName']??H(_0x2d6cc4);_0x2d6cc4['data']['set']({[_0x569bd5]:_0x813f7b},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x526623{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x42ba50){super(_0x42ba50),_0x42ba50['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1caf48=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d9102;for(const _0x6c1af5 in _0x1caf48){const _0x27a56c=_0x6c1af5,_0x3b69a2=_0x1caf48[_0x27a56c];if('sourceEditingEnhancedLicenseKeyValid'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyExpired'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3b69a2||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3b69a2){delete _0x1caf48[_0x27a56c],_0x3d9102=_0x3b69a2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x3d9102&&_0x1caf48['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x3d9102&&_0x1caf48['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3d9102&&_0x1caf48['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3d9102&&_0x1caf48['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3d9102&&_0x1caf48['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3d9102&&_0x1caf48['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x125b0a=this['editor'],_0x1c62fa=_0x125b0a['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x1c62fa&&_0x125b0a['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x593c24('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x1c62fa&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x54a749=>_0x125b0a['plugins']['has'](_0x54a749))&&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.'),_0x125b0a['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.8.1-alpha.1",
3
+ "version": "48.8.1-alpha.3",
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.8.1-alpha.1",
29
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
30
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
31
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
32
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
28
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
29
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
30
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
31
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
32
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",